Views
No views yet
🆕 후속 버전 ko-hallucheck-v3 공개 — 아래 독립 실측에서 드러난 약점(hard 0.521, 문체 휴리스틱)을 수리해 Standard 0.882 / Hard 0.758 / 교차생성기 0.704. 신규 사용은 v3를 권장합니다.
0 = HALLUCINATED, 1 = SUPPORTED| 평가셋 | acc | AUROC | 환각탐지 recall (intrinsic / extrinsic) |
|---|---|---|---|
| in-dist test (위키 기반 문장형, n=1002) | 0.938 | 0.980 | 0.83 / 1.00 |
| span형 held-out (KorQuAD 위키, n=688) | 0.988 | 0.997 | 0.99 / 1.00 |
| cross-source OOD (KLUE-MRC 뉴스 span, n=1500) | 0.966 | 0.979 | 0.99 / 0.99 |
| 셋 | acc | AUROC | 해석 |
|---|---|---|---|
| Standard (982) | 0.780 | 0.851 | 아래 '성능'의 룰 기반 OOD 0.966은 과대평가였습니다 (같은 룰 패밀리 전이) |
| Hard (380) | 0.521 | 0.542 | chance 수준. 환각 recall 0.958 + 충실 오탐 0.916 = 고난도 구간에서 본 모델은 사실검증이 아니라 문체 휴리스틱(재구성·단정 문체→환각 판정)으로 동작합니다 |
1import torch
2from transformers import AutoTokenizer, AutoModelForSequenceClassification
3
4repo = "jismsy/ko-hallucheck-v1"
5tok = AutoTokenizer.from_pretrained(repo)
6model = AutoModelForSequenceClassification.from_pretrained(repo).eval()
7
8context = "농심의 첫 회사명은 롯데공업사였다. 1978년 사명을 농심으로 변경했다."
9answer = "농심은 1965년 삼양식품으로 창립되었다."
10
11enc = tok(context, answer, truncation="longest_first", max_length=512, return_tensors="pt")
12with torch.no_grad():
13 prob_supported = torch.softmax(model(**enc).logits, -1)[0, 1].item()
14print(f"SUPPORTED 확률: {prob_supported:.3f}") # 0.5 미만 → 환각 판정@misc{ko-hallucheck-2026,
title={ko-hallucheck: Korean Faithfulness / Hallucination Detection Cross-Encoder},
author={ianwoo},
year={2026},
url={https://huggingface.co/jismsy/ko-hallucheck-v1}
}