매일 아침, 어제의 AI를 한 통으로 정리해 보내드립니다메일로 받아보기

METAL LAB

Reliable Financial Named Entity Recognition under Domain Shift

arXiv:2608.195582026-08-21

금융 AI가 서류체 문장에서 배운 자신감은 트위터로 가면 거짓말이 된다

금융 문서(SEC 신고서)로 학습시킨 개체명 인식 AI를 뉴스, 소셜미디어로 옮겨 테스트하니 정확도뿐 아니라 AI가 스스로 매기는 확신도(신뢰도)까지 무너졌다. 특히 문장 전체 확률로 매긴 자신감은 도메인이 바뀌면 믿을 수 없게 되고, 개체명 부분만 본 확률이나 같은 입력을 여러 번 생성해 일치하는 정도(자기일관성)가 더 안정적이었다. 다만 소셜미디어처럼 아주 다른 도메인에서는 어떤 신뢰도 지표도 안전하게 자동 처리할 문장을 골라내지 못했다.

무엇을 했나

  1. SEC 신고서로 학습한 BERT 태거와 소형 언어모델(Qwen2.5 0.5B/1.5B, LoRA로 미세조정)을 신고서-금융뉴스-일반 트위터 3단계로 테스트
  2. 다섯 가지 추론 시점 신뢰도 신호(문장 전체 확률, 토큰 확률, 개체명 확률, 유형 확률, 자기일관성)를 비교하고 3개 시드와 부트스트랩 신뢰구간으로 검증
  3. 도메인 내에서는 문장 전체 확률이 오류 탐지에 가장 강했지만 도메인이 바뀌면 성능이 급락, 개체명 확률과 자기일관성이 더 견고했고 특히 자기일관성은 별도 보정 없이도 신뢰도 수치 자체가 더 정확했음
  4. 가장 확신하는 상위 40% 문장만 자동 처리하게 하면 도메인 내 문장 오류율이 34.3%에서 2% 미만으로 급감, 금융뉴스에서도 효과 있었지만 일반 트위터 데이터에서는 어떤 임계값으로도 쓸만한 안전 구간을 찾지 못함
  5. 이를 바탕으로 먼저 입력이 원래 도메인과 얼마나 다른지 감지한 뒤에만 신뢰도 기반 자동/보류 판단을 적용하는 단계적 배포 전략을 제안
Fig. 1: Reliability diagrams for self-consistency confidence (0.5B, pooled seeds). Near-diagonal in-domain; on both shifted tiers the top-confidence bin inverts.
Fig. 1: Reliability diagrams for self-consistency confidence (0.5B, pooled seeds). Near-diagonal in-domain; on both shifted tiers the top-confidence bin inverts.
TABLE I: Dataset statistics after harmonization and filtering.
SplitDomainSent.Ent.PERORGLOC
TrainFIN (filings) [27]1014980648175157
ValidFIN (filings) [27]150177976812
TestFIN (filings) [27]2992952015638
TestFiNER-ORD (news) [28]3003227815193
TestTweetNER7 (tweets) [30]300619381135103
Fig. 2: Sentence-level risk–coverage (Qwen2.5-0.5B; line = 3-seed mean, band = seed range; lower is better). Abstention sharply reduces risk in-domain and on news, but cannot rescue the far-shift tier.
Fig. 2: Sentence-level risk–coverage (Qwen2.5-0.5B; line = 3-seed mean, band = seed range; lower is better). Abstention sharply reduces risk in-domain and on news, but cannot rescue the far-shift tier.
TABLE II: Main results (%; mean±std over 3 seeds; Qwen2.5-1.5B is a single-seed scale check).
ModelDomainPRF1Halluc.%ECE
BERT-baseFIN66.7±2.374.2±1.470.3±1.50.102±0.016
BERT-baseFiNER-ORD39.1±0.337.6±2.338.3±1.10.071±0.017
BERT-baseTweetNER735.2±5.218.4±1.724.1±2.50.074±0.007
Qwen-0.5BFIN40.5±0.434.7±2.137.4±1.33.6±2.40.362±0.009
Qwen-0.5BFiNER-ORD30.7±1.318.0±4.422.6±3.88.2±0.70.407±0.005
Qwen-0.5BTweetNER730.8±0.723.7±4.226.7±2.85.6±1.10.370±0.007
Qwen-1.5BFIN47.744.746.24.30.322
Qwen-1.5BFiNER-ORD56.348.452.13.60.227
Qwen-1.5BTweetNER744.950.947.76.80.358
TABLE III: Error-detection AUROC and ECE per confidence signal (Qwen2.5-0.5B; mean±std over 3 seeds), by test domain.
SignalFINFiNER-ORDTweetNER7
AUROCECEAUROCECEAUROCECE
Sequence prob.0.839±0.0140.512±0.0050.661±0.0150.593±0.0110.626±0.0190.586±0.006
Token prob.0.823±0.0120.531±0.0040.666±0.0190.615±0.0130.605±0.0180.611±0.006
Span prob.0.801±0.0040.362±0.0090.690±0.0300.407±0.0050.721±0.0110.370±0.007
Type prob.0.492±0.0190.506±0.0040.536±0.0220.533±0.0190.511±0.0100.573±0.002
Self-consistency0.690±0.0190.116±0.0290.671±0.0480.120±0.0150.682±0.0170.100±0.008
TABLE IV: Scale check: error-detection AUROC by signal and domain for Qwen2.5-0.5B (3-seed mean) vs. Qwen2.5-1.5B (single seed).
Signal0.5B (3 seeds)1.5B (1 seed)
FINFiNERTweetFINFiNERTweet
Sequence prob.0.8390.6610.6260.7640.7200.637
Span prob.0.8010.6900.7210.8190.7290.638
Self-consistency0.6900.6710.6820.7350.7440.663
TABLE V: Entity-level selective precision (%) at 100/80/60% coverage (Qwen2.5-0.5B; mean±std over 3 seeds).
DomainSignalP@100%P@80%P@60%
FINSeq. prob.40.5±0.449.0±0.858.4±0.6
FINSpan prob.40.5±0.449.2±0.356.4±0.6
FINSelf-consistency40.5±0.447.7±0.452.8±1.0
FiNERSeq. prob.30.7±1.334.9±3.040.1±1.3
FiNERSpan prob.30.7±1.335.3±1.740.8±2.6
FiNERSelf-consist.30.7±1.334.9±3.041.4±2.3
TweetSeq. prob.30.8±0.734.2±1.036.8±2.9
TweetSpan prob.30.8±0.736.6±1.142.7±1.1
TweetSelf-consist.30.8±0.735.5±1.740.5±1.5
TABLE VI: TweetNER7 filtering sensitivity, main (drop-sentence) vs. relaxed (ignore-entity) protocol. Encoder: 3-seed mean; Qwen: seed 42.
FilteredRelaxed
Sentences dropped (of 2807)21790
Evaluated (cap 300)300300
Gold PER/ORG/LOC619443
Ignored entities0488
Encoder F124.1±2.519.5±1.0
Encoder MSP AUROC0.615±0.0540.650±0.047
Qwen-0.5B F129.729.1
Qwen-0.5B span AUROC0.7250.715

왜 중요한가

금융 규제·리스크 관리처럼 오류가 실제 피해로 이어지는 분야에서는 AI 정확도 숫자만으로는 언제 결과를 믿고 자동화해도 되는지 알 수 없다. 이 연구는 입력 데이터의 성격이 바뀔 때 AI의 자신감 표시 자체가 오작동할 수 있음을 보여주고, 어떤 신뢰도 지표를 언제 써야 하는지에 대한 구체적 근거를 제공한다.

이 논문의 용어

  • 개체명 인식(NER) · 문장에서 사람, 회사, 지역 같은 고유명사를 찾아 분류하는 AI 작업
  • 도메인 변화(distribution shift) · AI가 학습한 데이터와 실제 사용 환경의 문장 스타일·주제가 달라지는 현상
  • 선택적 예측(selective prediction) · AI가 확신 없는 입력은 답을 내지 않고 사람 검토로 넘기는 방식
  • 자기일관성(self-consistency) · 같은 입력에 대해 AI가 여러 번 답을 생성했을 때 얼마나 같은 답이 나오는지로 신뢰도를 재는 방법
  • LoRA · 거대 언어모델 전체를 다시 학습시키지 않고 일부 작은 파라미터만 추가로 학습시키는 효율적 미세조정 기법
  • AUROC / ECE · AUROC는 신뢰도가 실제 오류를 얼마나 잘 구분하는지, ECE는 AI가 말하는 확신 수치가 실제 정답률과 얼마나 잘 맞는지(보정 정도)를 나타내는 지표

논문 원문 초록 (영문)

Financial AI systems often train information extractors on one textual register and deploy them across filings, news, and user-generated content, while standard F1 scores do not indicate which predictions remain safe to automate when the input distribution changes. We study confidence estimation and selective prediction for financial named entity recognition (NER) on a three-tier stress test spanning SEC filings, financial news, and general-topic social media as an extreme out-of-domain condition. We evaluate a BERT tagger and LoRA-tuned Qwen2.5-0.5B/1.5B models using five inference-time confidence signals, three training seeds, and bootstrap intervals. Confidence rankings themselves change under distribution shift: whole-output probability is the strongest in-domain error detector but deteriorates out of domain, whereas entity-span probability and self-consistency are more robust; self-consistency is also better calibrated without post-hoc fitting. Abstention reduces sentence error from 34.3% to below 2% on the highest-confidence 40% of in-domain inputs and remains useful on financial news, but recovers no usefully large clean subset under the extreme social-media shift. These results motivate a staged deployment strategy that detects severe distribution shift upstream before applying prediction-level confidence gating.

저자 · Zihao Zheng, Baichuan Li, Junyi Yao, Jiayu Long

arXiv에서 원문 보기

최신 논문

논문 전체 보기 →

METAL LAB 최신 기사

그림 출처: Zihao Zheng et al., arXiv:2608.19558, arxiv-nonexclusive