# Recalibrating a Typed-Decision Model in an Afternoon: A Hands-On Recipe for Laya's Confidence Scores

Laya의 신뢰도 점수를 위한 실습 레시피: 오후 한나절에 타입 결정 모델 재보정하기

Mohammed Nayeem Khan, Aliyas Ahmad Misri · arXiv · 2026년 11월 12일

- **연구 문제** 풀링 ECE는 0.073으로 양호해 보이지만 버킷별 macro-ECE는 0.143이어서, 과신과 과소신이 상쇄되어 가려집니다.
- **연구 방법** 버킷별 온도 배율을 교차 적합으로 맞추고 Platt, 히스토그램, 등장 보정과 비교했습니다.
- **주요 결과** 버킷별 온도 보정은 macro-ECE를 0.073으로 낮췄고, 단일 전역 온도는 pooled ECE를 0.173으로 높였습니다.

## 풀링 ECE가 가리는 버킷별 과신과 과소신

typed-decision 모델은 확률을 반환하지만, 그 확률을 임계값에 따라 답변·보류·에스컬레이션 규칙에 쓰면 신뢰도가 확률로서 맞는지가 중요합니다. 이 논문은 Laya의 체크포인트에서 전체를 합친 pooled ECE가 0.073으로 양호해 보여도 질문 유형과 선택지 수로 나눈 버킷별 macro-ECE는 0.143으로 약 두 배 크다는 점을 짚습니다. 그래서 전체 평균만 보면 보정 문제가 드러나지 않습니다.

## 버킷별 온도 보정의 계산 방식

Laya는 선택지마다 로짓을 만들고, 버킷별로 저장된 온도로 나눈 뒤 확률을 냅니다. 이 논문은 저장된 온도를 그대로 믿지 않고, 공개된 확률 p를 1/T 제곱한 뒤 재정규화하는 방식으로 버킷마다 배율 T를 맞춥니다. 온도 보정은 로짓을 양수로 나누는 연산이므로 선택지의 순위는 바뀌지 않고 신뢰도만 바뀝니다. 이 방식은 Platt, 히스토그램, 등장 보정과 비교되며, 신뢰도 값만 있을 때에는 이들을 쓸 수 있습니다. 로그 음수 손실 NLL을 최소화하는 T를 격자에서 찾는 것이 핵심이며, 이 논문은 버킷마다 독립적으로 이 배율을 맞췄습니다.

## 교차 적합과 방법 비교

보정 맵은 맞춘 데이터에서 과적합될 수 있으므로, 1,065개 항목을 다섯 폴드로 나누어 다른 폴드에서 맞춘 맵을 각 항목에 적용하는 교차 적합을 사용했습니다. 이 방식에서 버킷별 온도는 macro-ECE를 0.073으로 낮추었고, 10회 폴드 배정의 평균은 0.078이었습니다. 같은 비교에서 단일 전역 온도는 pooled ECE를 0.073에서 0.173으로 높였습니다. 다만 한 번의 폴드 배정에서는 히스토그램이 0.059로 가장 낮았고, 10회 반복에서는 Platt이 0.046으로 가장 낮았습니다. 소규모 버킷에서는 이런 순위가 흔들렸으므로 방법 간 차이는 시드별 표준편차와 함께 읽어야 합니다.

## 재학습 체크포인트와 보정 표의 한계

이 연구에서 재학습된 30개 체크포인트는 버킷별 온도 표를 하나도 저장하지 않았습니다. 25개는 choice 온도가 상한 5.0에 있었습니다. 이는 이 학습 설정과 이 데이터에 한정된 관찰이며, 학습기 전반에 대한 주장으로 확대하지 않습니다.

## 논문 정보

- **저자**: Mohammed Nayeem Khan, Aliyas Ahmad Misri
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 12일
- **등록일**: 2026년 11월 13일
- **수정일**: 2026년 11월 12일
- **버전**: v1
- **arXiv**: 2611.16499
- **분류**: cs.AI · cs.SE
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.16499v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.16499v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

A typed-decision model such as Laya reads a text and a list of options that the caller defines, for example ticket categories, and returns a probability for each option. Code around it compares the top probability with a threshold to answer, abstain or escalate to a person. Earlier work reports, for a Turkish model, that temperature scaling can raise held-out calibration error (ECE). This tutorial gives a five-step recipe (measure, diagnose, fit, validate, deploy) in 130 lines of numpy with standard methods, none new. On 1,065 synthetic, LLM-labelled items the released Laya checkpoint has a pooled ECE of 0.073 but a bucket-macro ECE of 0.143 (0.127-0.184), the mean over buckets (questions grouped by type and option count): the 12-option bucket is over-confident by +0.22, the three-to-five-option bucket under-confident by 0.05, and they cancel. One global temperature makes pooled ECE worse (0.173); a cross-fitted temperature per bucket brings macro-ECE to 0.073 (0.078 over 10 fold assignments) and reaches 0.089 with 10 labelled items per bucket, but holding out one of seven evaluation sets gives 0.099. After the refit, a gate aimed at 10% error answers 46.3% of items (10.5% wrong) against 6.9% on the published confidences, but one cut-off per bucket on the published confidences answers 45.4%, so most of the gain comes from separating buckets. Confidence-only maps (Platt, histogram, isotonic) need 20 or more labelled items per bucket to approach the temperature; with 320 per bucket the lowest macro-ECE belongs to Platt. In these files the retrained checkpoints store no per-bucket table and the stored 12-option value 0.1006 is clamped to 0.5 at runtime; the refit helps 31 of 33 checkpoints on random folds and 21 with a set held out. Fit and test share one generator and LLM labels, so these are findings about these checkpoints and this data.

## 원문 인용

Mohammed Nayeem Khan, Aliyas Ahmad Misri (2026). Recalibrating a Typed-Decision Model in an Afternoon: A Hands-On Recipe for Laya's Confidence Scores. arXiv:2611.16499v1. https://arxiv.org/abs/2611.16499v1

**BibTeX**

```
@misc{khan2026recalibrating,
  title = {{Recalibrating a Typed-Decision Model in an Afternoon: A Hands-On Recipe for Laya's Confidence Scores}},
  author = {Mohammed Nayeem Khan and Aliyas Ahmad Misri},
  year = {2026},
  eprint = {2611.16499},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16499v1}
}
```

## 이 논문의 용어

- [Brier score](https://refivu.com/terms/5fd6d59d3a08-brier-score)
- [expected calibration error](https://refivu.com/terms/5989f8ad43cb-expected-calibration-error)
- [temperature scaling](https://refivu.com/terms/f06bf589474e-temperature-scaling)
- [cross-ﬁtting](https://refivu.com/terms/58603061149e-cross-fitting)
- [Platt scaling](https://refivu.com/terms/1ada8f49f3f0-platt-scaling)
- [histogram binning](https://refivu.com/terms/76e43990758c-histogram-binning)
- [Reliability diagram](https://refivu.com/terms/bf7c4a2cf791-reliability-diagram)
- [risk-coverage curve](https://refivu.com/terms/c0fd43f6c0a9-risk-coverage-curve)

## 다른 논문 해설

- [ORCHID-SAGE: Fully Reproducible CALPHAD Assessment from Evidence to Phase Diagram](https://refivu.com/papers/7bdc6793-f96c-4909-866a-faa678245608-orchid-sage-fully-reproducible-calphad-assessment-from.md)
- [A Sensitivity Framework for Assessing External Validity](https://refivu.com/papers/21950225-6379-406e-8119-a682680084fa-a-sensitivity-framework-for-assessing-external-validity.md)
- ["It's Just a Small Weapon": What Rewarding Misbehavior During RL Does to Character-Trained Models](https://refivu.com/papers/ff82eb4f-09a9-4988-85f7-9aec117b7142-it-s-just-a-small-weapon-what-rewarding.md)
- [Owned Edits to a Shared Decision Rule: Learning Private Exceptions as Typed, Gated, Withdrawable Weight Edits](https://refivu.com/papers/18df3a28-3d2d-426c-aa2a-34fe0ab029b2-owned-edits-to-a-shared-decision-rule-learning.md)
- [Controlling the Probability of Unknown Unknowns in Pre-Deployment Testing of AI Systems](https://refivu.com/papers/3f5fec17-327a-4b7d-af9c-53d8145effe8-controlling-the-probability-of-unknown-unknowns-in-pre.md)
- [A Mechanistic Interpretability Study of an Astronomy Foundation Model](https://refivu.com/papers/5e797f9b-473e-491d-82f9-9afe128c2455-a-mechanistic-interpretability-study-of-an-astronomy.md)
- [Eliciting and Mitigating Specification Satisficing in Coding Agents](https://refivu.com/papers/cfe84310-98d7-4917-8b3c-5b23d97305e8-eliciting-and-mitigating-specification-satisficing-in-coding.md)
- [ReSID: Rethinking Long-Tail Retrieval in Generative Recommendation through Item Reachability](https://refivu.com/papers/d76f3e52-72f0-4e84-ac25-890b832b4bc0-resid-rethinking-long-tail-retrieval-in-generative.md)
- [RICapBench: A Fine-Grained Visual Understanding Benchmark Dataset for Vision-Language Models in Remote Sensing](https://refivu.com/papers/c872f032-3186-451e-99a1-b0da1513908b-ricapbench-a-fine-grained-visual-understanding-benchmark.md)
- [Causals: An Open Knowledge Graph for Research on Causal Reasoning](https://refivu.com/papers/8af2faca-2268-43d6-b554-fd473adf02dc-causals-an-open-knowledge-graph-for-research-on.md)
- [Data-Efficient LLM Safety Alignment Guided by Interpretable Features](https://refivu.com/papers/d514fbae-eb94-4527-90e2-8212403262b6-data-efficient-llm-safety-alignment-guided-by-interpretable.md)
- [Indic-Task Gains and Regressions after Reinforcement Learning](https://refivu.com/papers/8e75a357-8237-4f0f-8a8b-05cabcb3f839-indic-task-gains-and-regressions-after-reinforcement.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/17bdb555-a961-43b5-b278-cc57e21b0f2e-recalibrating-a-typed-decision-model-in-an-afternoon)
