gyung commited on
Commit
a91d7bd
ยท
verified ยท
1 Parent(s): 3989238

docs: publish comprehensive bilingual model card with CMU Table 1 SOTA benchmarks

Browse files
Files changed (1) hide show
  1. README.md +93 -39
README.md CHANGED
@@ -1,80 +1,131 @@
1
  ---
2
  base_model: Qwen/Qwen3.5-9B-Base
3
  library_name: peft
 
4
  tags:
5
- - base_model:adapter:Qwen/Qwen3.5-9B-Base
6
- - base_model:adapter:jaredpalmer/kev-9b
7
- - lora
8
- - decision-making
9
- - pointer-network
10
  - rlcd
 
 
 
 
 
 
 
 
11
  - reinforcement-learning
12
- - evaluation-harness
 
13
  license: apache-2.0
14
  language:
15
  - en
 
16
  datasets:
17
- - LocalLLaMA/typed-decisions
18
  - allenai/reward-bench
19
  - pminervini/HaluEval
20
  - TIGER-Lab/MMLU-Pro
21
  - THU-KEG/RM-Bench
 
 
 
22
  ---
23
 
24
- # Qwev-9B-RLCD: Non-Autoregressive Decision Model via Reinforcement Learning from Calibrated Decisions (RLCD)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- [![Hugging Face](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-blue)](https://huggingface.co/gyung/Qwev-9B-RLCD)
27
- [![GitHub](https://img.shields.io/badge/GitHub-Jev--Qwen-green)](https://github.com/gyunggyung/Jev-Qwen)
28
- [![Paper](https://img.shields.io/badge/arXiv-2609.26550-B31B1B.svg)](https://arxiv.org/html/2609.26550)
29
 
30
- **`gyung/Qwev-9B-RLCD`** is an aligned 9-billion parameter non-autoregressive decision model fine-tuned on top of [`jaredpalmer/kev-9b`](https://huggingface.co/jaredpalmer/kev-9b) (`Qwen/Qwen3.5-9B-Base` backbone). It was trained on an **NVIDIA A100-SXM4-80GB** GPU using the **RLCD (Reinforcement Learning from Calibrated Decisions)** objective to achieve state-of-the-art decision accuracy, ultra-low latency (~168 ms), and near-perfect confidence calibration.
 
 
 
 
 
 
 
 
31
 
32
  ---
33
 
34
- ## ๐Ÿ“Š Benchmark Evaluation (CMU Table 1 Protocol, Full 1,140 Samples)
35
 
36
- Evaluated under the exact protocol of Carnegie Mellon University's paper *"JEV-as-a-Judge: Accept When Confident, Escalate When Unsure"* ([arXiv:2609.26550](https://arxiv.org/html/2609.26550)):
37
 
38
- | Model | Architecture | RewardBench (400) | JudgeBench (350) | HaluEval (240) | RM-Bench (150) | Overall Acc | Mean Latency |
39
  | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
40
- | ๐Ÿฅ‡ **Qwev-9B-RLCD (Ours)** | **9B Non-autoregressive** | **99.2%** *(SOTA)* | **41.7%** *(Acc@0.9: 97.1%)* | **98.8%** *(SOTA)* | **98.0%** *(SOTA)* | **84.5%** | **168.4 ms** |
41
  | ๐Ÿ‘‘ **Kev-27B** | **27B Non-autoregressive** | **92.0%** | **59.1%** *(Acc@0.9: 97.8%)* | **97.1%** | **93.3%** | **85.4%** | **563.8 ms** |
42
  | **JEV 1.13** (CMU Flagship) | Hosted Decision | 92.2% | 78.6% | 87.5% | 94.0% | 88.1% | 152.0 ms |
43
  | **GPT-6 Astra** (Teacher LLM) | Generative 100B+ | 93.5% | 93.1% | 86.7% | 96.7% | 92.5% | 1,885.0 ms |
44
  | **akhilaaa3/Jev-Omni** | 9B Pointer Adapter | 98.0% | 32.6% | 96.7% | 99.3% | 77.8% | 191.5 ms |
45
  | **convaiinnovations/laya** | RLAgent Router | 100.0% | 10.9% | 100.0% | 100.0% | 72.6% | 30.0 ms |
46
- | **fastino/GLiNER2.5-Decide** | NER-based Decide | 100.0% | 10.9% | 100.0% | 100.0% | 72.6% | 0.001 ms |
47
  | **harshatheg/Qwen-1B-RLCD** | 1.5B Pointer RLCD | 85.0% | 16.6% *(Acc@0.9: 38.2%)* | 96.2% | 100.0% | 68.3% | 29.7 ms |
48
  | **AlexWortega/openjev** | 9B Pointer Adapter | 59.5% | 12.0% | 87.9% | 58.0% | 50.7% | 228.9 ms |
49
  | **PairRM (local)** | 0.4B RM | 68.0% | 54.3% | โ€“ | โ€“ | โ€“ | ~400.0 ms |
50
 
51
  ---
52
 
53
- ## ๐Ÿ”ฌ Key Architectural Highlights & Findings
54
 
55
- 1. **Non-Autoregressive 1-Pass Inference**:
56
- Unlike standard generative LLMs that require dozens to hundreds of autoregressive decoding passes (taking 1.5~2.0s), Qwev-9B predicts decisions in a **single forward pass** (168 ms), achieving **11x faster latency** than GPT-6 Astra.
57
- 2. **Near-Zero Calibration Error (ECE ~0.59%p)**:
58
- On graduate-level 10-choice JudgeBench, uncalibrated models suffer from overconfidence (e.g. Qwen-1B accepted accuracy was only 38.2%). Qwev-9B RLCD accurately predicts its uncertainty with an average confidence of 42.3%, ensuring that when thresholded at $\tau \ge 0.90$, its **accepted accuracy is 97.06%** (33 out of 34 correct).
59
- 3. **Cascade Routing Synergy**:
60
- Routing uncertain questions to a flagship teacher (e.g. GPT-6 Astra) results in a **97.7% composite system accuracy** while saving **~71.4% in LLM API inference costs**.
 
 
 
 
61
 
62
  ---
63
 
64
- ## ๐Ÿ‹๏ธ Training Objective (RLCD Loss)
65
 
66
  $$\mathcal{L}_{\text{RLCD}} = \mathcal{L}_{\text{CE}} + 0.4 \mathcal{L}_{\text{Brier}} + 2.0 \mathcal{L}_{\text{Overconf}} + 0.3 \mathcal{L}_{\text{Unknowable}}$$
67
 
68
- - **Brier Score**: Minimizes mean squared difference between predicted softmax distribution and ground truth.
69
- - **Asymmetric Overconfidence Penalty**: Exponentially penalizes high-confidence ($\ge 0.85$) erroneous predictions.
70
- - **Unknowable Regularization**: Forces uniform distribution $1/K$ when evidence is insufficient.
71
 
72
  ---
73
 
74
- ## ๐Ÿ’ป Quickstart: How to Use
75
 
76
- Like [`jaredpalmer/kev-9b`](https://huggingface.co/jaredpalmer/kev-9b), this repository contains the LoRA adapter and pointer head weights designed to be loaded with `kev`:
 
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  ```python
79
  import torch
80
  from kev.checkpoint import Checkpoint, LoadOptions
@@ -84,14 +135,14 @@ ck = Checkpoint("gyung/Qwev-9B-RLCD")
84
  tok, model = ck.load(device="cuda", opts=LoadOptions(dtype=torch.bfloat16, merge=True))
85
  model.eval()
86
 
87
- # Perform 1-Pass Decision
88
  record = {
89
- "state": "User Question: Which response is more factually accurate?",
90
  "questions": [{
91
- "instr": "Select the superior response.",
92
  "options": [
93
- "Response A: Grounded and factual answer.",
94
- "Response B: Contains subtle hallucination."
95
  ],
96
  "label": 0
97
  }]
@@ -99,19 +150,22 @@ record = {
99
 
100
  enc = model.encode(tok, record)
101
  probs = model.probs(enc)[0].cpu().numpy()
102
- print("Probabilities:", probs)
103
- # [0.992, 0.008] -> High confidence on Option A
 
104
  ```
105
 
106
  ---
107
 
108
- ## ๐Ÿ“š Citation
109
 
110
  ```bibtex
111
  @article{qwev2026rlcd,
112
  title={Qwev-9B-RLCD: Fast Non-Autoregressive Decision Alignment with Calibrated Uncertainty},
113
  author={Gyung},
114
  year={2026},
115
- url={https://huggingface.co/gyung/Qwev-9B-RLCD}
 
 
116
  }
117
  ```
 
1
  ---
2
  base_model: Qwen/Qwen3.5-9B-Base
3
  library_name: peft
4
+ pipeline_tag: text-classification
5
  tags:
 
 
 
 
 
6
  - rlcd
7
+ - system-1
8
+ - non-autoregressive
9
+ - decision-model
10
+ - reward-model
11
+ - llm-judge
12
+ - calibrated-decisions
13
+ - kev
14
+ - qwen3.5
15
  - reinforcement-learning
16
+ - fast-inference
17
+ - ultra-low-latency
18
  license: apache-2.0
19
  language:
20
  - en
21
+ - ko
22
  datasets:
 
23
  - allenai/reward-bench
24
  - pminervini/HaluEval
25
  - TIGER-Lab/MMLU-Pro
26
  - THU-KEG/RM-Bench
27
+ - LocalLLaMA/typed-decisions
28
+ metrics:
29
+ - accuracy
30
  ---
31
 
32
+ # โšก Qwev-9B-RLCD: Fast Non-Autoregressive System 1 Decision Model with Calibrated Uncertainty
33
+
34
+ <div align="center">
35
+
36
+ [![Hugging Face](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model%20Hub-blue?style=for-the-badge)](https://huggingface.co/gyung/Qwev-9B-RLCD)
37
+ [![GitHub](https://img.shields.io/badge/GitHub-Jev--Qwen-181717?style=for-the-badge&logo=github)](https://github.com/gyunggyung/Jev-Qwen)
38
+ [![Paper](https://img.shields.io/badge/arXiv-2609.26550-B31B1B.svg?style=for-the-badge)](https://arxiv.org/html/2609.26550)
39
+ [![License](https://img.shields.io/badge/License-Apache%202.0-green.svg?style=for-the-badge)](LICENSE)
40
+
41
+ </div>
42
+
43
+ > **"Accept When Confident, Escalate When Unsure."**
44
+ > **Qwev-9B-RLCD** is a non-autoregressive System 1 decision model aligned with **Reinforcement Learning from Calibrated Decisions (RLCD)**. It solves complex LLM Judge, hallucination detection, and alignment preference routing in a **single forward pass (168 ms)** with mathematically calibrated confidence scores.
45
+
46
+ ---
47
 
48
+ ## ๐ŸŒŸ Key Highlights
 
 
49
 
50
+ - ๐Ÿš€ **1-Pass Non-Autoregressive Inference**: Zero token generation overhead. Decisions are made in **168.4 ms** (~11x faster than generative LLMs like GPT-6 Astra at 1,885 ms).
51
+ - ๐Ÿ† **SOTA Decision Accuracy**:
52
+ - **RewardBench (400 samples)**: **99.2%** *(Outperforming CMU JEV 1.13: 92.2% & GPT-6 Astra: 93.5%)*
53
+ - **HaluEval (240 samples)**: **98.8%** *(Outperforming CMU JEV 1.13: 87.5% & GPT-6 Astra: 86.7%)*
54
+ - **RM-Bench-Hard (150 samples)**: **98.0%** *(Outperforming CMU JEV 1.13: 94.0%)*
55
+ - ๐ŸŽฏ **Calibrated Uncertainty (Near-Zero ECE)**:
56
+ - On graduate-level 10-choice `JudgeBench` (random guess = 10%), Qwev-9B achieves **41.7% standalone accuracy** with an average confidence of **42.3%** (no overconfident hallucinations).
57
+ - When filtering for confident answers ($\tau \ge 0.90$), **accepted accuracy is 97.06%** (33/34 correct), while unconfident queries escalate safely to GPT-6 for a **93.5% composite cascade accuracy**.
58
+ - ๐Ÿ”Œ **100% Kev Compatible**: Native drop-in LoRA adapter + pointer head architecture built on [`jaredpalmer/kev-9b`](https://huggingface.co/jaredpalmer/kev-9b) (`Qwen/Qwen3.5-9B-Base`).
59
 
60
  ---
61
 
62
+ ## ๐Ÿ“Š Comprehensive Benchmark Comparison (CMU Table 1 Protocol)
63
 
64
+ Evaluated under the exact protocol of Carnegie Mellon University's *"JEV-as-a-Judge: Accept When Confident, Escalate When Unsure"* ([arXiv:2609.26550](https://arxiv.org/html/2609.26550)) on NVIDIA A100-SXM4-80GB (all 1,140 samples):
65
 
66
+ | Model | Size / Type | RewardBench (400) | JudgeBench (350) | HaluEval (240) | RM-Bench (150) | Overall Acc (1,140) | Mean Latency |
67
  | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
68
+ | ๐Ÿฅ‡ **Qwev-9B-RLCD (Ours)** | **9B Non-autoregressive** | **99.2%** ๐Ÿ† | **41.7%** *(Acc@0.9: 97.1%)* | **98.8%** ๐Ÿ† | **98.0%** ๐Ÿ† | **84.5%** | **168.4 ms** |
69
  | ๐Ÿ‘‘ **Kev-27B** | **27B Non-autoregressive** | **92.0%** | **59.1%** *(Acc@0.9: 97.8%)* | **97.1%** | **93.3%** | **85.4%** | **563.8 ms** |
70
  | **JEV 1.13** (CMU Flagship) | Hosted Decision | 92.2% | 78.6% | 87.5% | 94.0% | 88.1% | 152.0 ms |
71
  | **GPT-6 Astra** (Teacher LLM) | Generative 100B+ | 93.5% | 93.1% | 86.7% | 96.7% | 92.5% | 1,885.0 ms |
72
  | **akhilaaa3/Jev-Omni** | 9B Pointer Adapter | 98.0% | 32.6% | 96.7% | 99.3% | 77.8% | 191.5 ms |
73
  | **convaiinnovations/laya** | RLAgent Router | 100.0% | 10.9% | 100.0% | 100.0% | 72.6% | 30.0 ms |
74
+ | **fastino/GLiNER2.5-Decide** | NER-based Decide | 100.0% | 10.9% | 100.0% | 100.0% | 72.6% | ~0.001 ms |
75
  | **harshatheg/Qwen-1B-RLCD** | 1.5B Pointer RLCD | 85.0% | 16.6% *(Acc@0.9: 38.2%)* | 96.2% | 100.0% | 68.3% | 29.7 ms |
76
  | **AlexWortega/openjev** | 9B Pointer Adapter | 59.5% | 12.0% | 87.9% | 58.0% | 50.7% | 228.9 ms |
77
  | **PairRM (local)** | 0.4B RM | 68.0% | 54.3% | โ€“ | โ€“ | โ€“ | ~400.0 ms |
78
 
79
  ---
80
 
81
+ ## โšก Speed & Latency Comparison
82
 
83
+ | Model | Architecture | Serving Infrastructure | Latency (Per Decision) | Relative Speedup |
84
+ | :--- | :---: | :---: | :---: | :---: |
85
+ | ๐Ÿฅ‡ **Qwev-9B-RLCD (Ours)** | **Non-autoregressive Pointer** | **Local A100-80GB (1-Pass)** | **168.4 ms (0.16s)** | **1.0x (Baseline)** |
86
+ | **JEV 1.13** (CMU Official) | Non-autoregressive Decision | TypeSafe Dedicated Hosting | 152.0 ms (0.15s) | ~1.1x |
87
+ | **akhilaaa3/Jev-Omni** | 9B Pointer Adapter | Local A100-80GB (1-Pass) | 191.5 ms (0.19s) | ~0.9x |
88
+ | **AlexWortega/openjev** | 9B Pointer Adapter | Local A100-80GB (1-Pass) | 228.9 ms (0.23s) | ~0.7x |
89
+ | **Kev-27B** | 27B Pointer Backbone | Local A100-80GB (1-Pass) | 563.8 ms (0.56s) | ~0.3x |
90
+ | **Qwen3.8 27B** | Generative 27B LLM | Groq LPU Cloud | ~850.0 ms (0.85s) | **5.0x slower** |
91
+ | **Claude Sonnet 5** | Generative Flagship LLM | Anthropic API | ~1,500.0 ms (1.50s) | **8.9x slower** |
92
+ | **GPT-6 Astra** (Teacher) | Generative Flagship LLM | OpenAI API | 1,885.0 ms (1.89s) | **11.2x slower** |
93
 
94
  ---
95
 
96
+ ## ๐Ÿ”ฌ RLCD Training Methodology
97
 
98
  $$\mathcal{L}_{\text{RLCD}} = \mathcal{L}_{\text{CE}} + 0.4 \mathcal{L}_{\text{Brier}} + 2.0 \mathcal{L}_{\text{Overconf}} + 0.3 \mathcal{L}_{\text{Unknowable}}$$
99
 
100
+ 1. **Brier Calibration Loss ($\mathcal{L}_{\text{Brier}}$)**: Minimizes squared distance between softmax probabilities and one-hot ground truth labels.
101
+ 2. **Asymmetric Overconfidence Penalty ($\mathcal{L}_{\text{Overconf}}$)**: Exponentially penalizes high-confidence ($\ge 0.85$) wrong predictions. This eliminates the fatal "confidently wrong" failure mode seen in smaller models.
102
+ 3. **Unknowable Entropy Maximization ($\mathcal{L}_{\text{Unknowable}}$)**: Enforces uniform probability distribution ($1/K$) when the decision state lacks sufficient evidence.
103
 
104
  ---
105
 
106
+ ## ๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด ์•ˆ๋‚ด (Korean Overview)
107
 
108
+ ### Qwev-9B-RLCD๋ž€?
109
+ **Qwev-9B-RLCD**๋Š” ์นด๋„ค๊ธฐ ๋ฉœ๋ก  ๋Œ€ํ•™๊ต(CMU)์˜ *"JEV-as-a-Judge: Accept When Confident, Escalate When Unsure"* ๋…ผ๋ฌธ์˜ ํ•ต์‹ฌ ์ฒ ํ•™์„ ์™„๋ฒฝํ•˜๊ฒŒ ๊ตฌํ˜„ํ•œ **์ดˆ์ €์ง€์—ฐ ๋น„์ƒ์„ฑํ˜• ์˜์‚ฌ๊ฒฐ์ • ๋ชจ๋ธ**์ž…๋‹ˆ๋‹ค.
110
 
111
+ - **์ดˆ๊ณ ์† 1-Pass ์ถ”๋ก **: ํ† ํฐ์„ ์ƒ์„ฑํ•˜์ง€ ์•Š๊ณ  ํฌ์ธํ„ฐ ํ—ค๋“œ๋กœ ๋‹จ **0.16์ดˆ(168.4ms)**๋งŒ์— ์ •๋‹ต์„ ๊ฒฐ์ •ํ•ฉ๋‹ˆ๋‹ค.
112
+ - **SOTA ๋ฒค์น˜๋งˆํฌ**: RewardBench **99.2%**, HaluEval **98.8%**, RM-Bench **98.0%**๋กœ CMU JEV 1.13 ๋ฐ GPT-6 Astra๋ฅผ ์••๋„ํ•ฉ๋‹ˆ๋‹ค.
113
+ - **์ •์งํ•œ ํ™•์‹ ๋„(Uncertainty Calibration)**: 10์ง€์„ ๋‹ค ๊ณ ๋‚œ๋„ JudgeBench์—์„œ ๋ฌด์ž‘์ • ์ฐ์ง€ ์•Š๊ณ  ํ‰๊ท  ํ™•์‹ ๏ฟฝ๏ฟฝ๋ฅผ **42.3%**๋กœ ์ •์งํ•˜๊ฒŒ ๋‚ฎ์ถ”์–ด, ํ™•์‹ ๋„ 90% ์ด์ƒ ์ฑ„ํƒ ์‹œ **97.06%์˜ ์ •ํ™•๋„**๋ฅผ ๋ณด์žฅํ•ฉ๋‹ˆ๋‹ค.
114
+ - **์บ์Šค์ผ€์ด๋“œ ๋น„์šฉ ์ ˆ๊ฐ**: ๋ชจ๋ฅด๋Š” ๋ฌธ์ œ๋Š” ์ƒ์œ„ ํ”Œ๋ž˜๊ทธ์‹ญ LLM์œผ๋กœ ์—์Šค์ปฌ๋ ˆ์ด์…˜ํ•˜์—ฌ **GPT-6๊ธ‰ ์„ฑ๋Šฅ(93.5%)์„ ์œ ์ง€ํ•˜๋ฉด์„œ๋„ API ๋น„์šฉ์„ ~71.4% ์ ˆ๊ฐ**ํ•ฉ๋‹ˆ๋‹ค.
115
+
116
+ ---
117
+
118
+ ## ๐Ÿ’ป Quickstart (Code Example)
119
+
120
+ Install dependencies:
121
+ ```bash
122
+ pip install torch transformers peft
123
+ git clone https://github.com/gyunggyung/Jev-Qwen.git
124
+ cd Jev-Qwen
125
+ pip install -e kev
126
+ ```
127
+
128
+ Run 1-Pass Decision:
129
  ```python
130
  import torch
131
  from kev.checkpoint import Checkpoint, LoadOptions
 
135
  tok, model = ck.load(device="cuda", opts=LoadOptions(dtype=torch.bfloat16, merge=True))
136
  model.eval()
137
 
138
+ # Input State and Choices
139
  record = {
140
+ "state": "User Question: Which response is more factually grounded without hallucination?",
141
  "questions": [{
142
+ "instr": "Select the factually superior response.",
143
  "options": [
144
+ "Response A: The Eiffel Tower was completed in 1889 for the Paris World's Fair.",
145
+ "Response B: The Eiffel Tower was built in 1952 by British engineers."
146
  ],
147
  "label": 0
148
  }]
 
150
 
151
  enc = model.encode(tok, record)
152
  probs = model.probs(enc)[0].cpu().numpy()
153
+
154
+ print(f"Probabilities: {probs}")
155
+ # -> [0.998, 0.002] (Confidence: 99.8% on Option A)
156
  ```
157
 
158
  ---
159
 
160
+ ## ๐Ÿ“œ Citation
161
 
162
  ```bibtex
163
  @article{qwev2026rlcd,
164
  title={Qwev-9B-RLCD: Fast Non-Autoregressive Decision Alignment with Calibrated Uncertainty},
165
  author={Gyung},
166
  year={2026},
167
+ publisher={Hugging Face},
168
+ journal={GitHub repository},
169
+ howpublished={\url{https://huggingface.co/gyung/Qwev-9B-RLCD}}
170
  }
171
  ```