Manuscript Offprint
arXiv:2610.17175FunDM: Cheap & Label-Free Decision Models from Frozen Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Decision models such as Jev score candidate answers or actions. A small decision head trained label-free can recover about 99% of a frozen language model's multiple-choice accuracy while using only two-thirds of its transformer layers. It learns the full model's answer probabilities with KL divergence, without correct-answer labels for training. One backbone pass reads the question and all options together; the head returns probabilities for every option. We call this model FunDM (Fun Decision Model). Using 24 of Qwen3-8B's 36 layers and skipping the LM head, its +1T variant reaches 75.0% mean accuracy over eight benchmarks, versus 75.7% for the full model. On MMLU-Pro, both heads achieve 1.56 to 1.57× batched vLLM throughput with about one-third lower peak GPU allocator memory. Both heads score higher than released Contrastive Language Models (CLM), fine-tuned CLM, and CLM-shaped heads trained from scratch on the eight multiple-choice benchmarks and coding-agent selection. Separately trained agent heads learn judge probabilities without pass/fail labels and select passing runs for 74.4 to 74.6 of 100 held-out tasks on average, versus 74 for the full-model judge and 52.0 for a CLM-shaped action-trained head. Code is available at: https://github.com/Ujjawal-K-Panchal/FunDM.
1 Introduction
A capable pretrained language model already knows how to choose among answers, solutions, and agent runs. We reuse this capability by training a small head on the frozen model's answer probabilities, without retraining the backbone or collecting correct-answer labels for head fitting.
Models that score candidate answers or actions given a question or state are widely called Decision Models (DMs). TypeSafe AI's Jev [1] and Contrastive Language Models (CLM) [19] are examples. FunDM (Fun Decision Model) reuses the decision capability of pretrained open-weights language models. Like CLM, it uses a frozen Qwen3-8B backbone [37].
Unlike CLM, FunDM reads the question and all options together; a single forward pass through the backbone and head produces a score for each candidate option. Each option state sees the question and preceding options; the final answer state sees the whole list. Two learned projections score the options. FunDM+1T adds a bidirectional transformer layer so earlier option states can attend to later ones inside the head. Shared scoring weights support a variable number of options, provided the prompt fits the context window (Figure 1).
We cache full-model letter probabilities and backbone states, then train the head by teacher-only knowledge distillation (KD). Both FunDM and FunDM+1T use 24 of Qwen3-8B's 36 layers as a fixed two-thirds early-exit depth. This tests how much decision capability a backbone prefix retains.
while skipping 12 layers and the LM head. Section 7.3 examines other budgets, including layer 32, which skips only four layers.
CLM encodes the question and each option separately, allowing option vectors to be cached. Our supervised cross-entropy (CE) baselines examine encoding and head architecture. Correct-answer labels support evaluation, a training-pool prompt comparison, and these ablations; they do not fit the main FunDM heads or select their checkpoints.
Our contributions are:
• Cheap, label-free decision training. Only a 1.05M- or 5.38M-parameter head is trained. Caching teacher probabilities and states at five depths on 38k rows takes about 16 minutes on one DGX Spark; each head fits in under 30 seconds.
• Recovering pretrained decision capability. At 24 layers, FunDM+1T retains 99.2% of the teacher's mean accuracy over eight benchmarks. Separately trained agent heads show comparable selection performance; we report five-seed results and paired uncertainty.
• Inference efficiency and component analysis. The 24-layer heads provide 1.56–1.57× batched vLLM throughput and about 33% lower peak GPU allocator memory on MMLU-Pro. Ablations examine training targets, encoding, head architecture, exit depth, data scale, and prompt format.
Distillation and Intermediate-Layer Readouts. Knowledge distillation trains a student on a teacher's probabilities [15]. Tuned Lens uses KL to train affine maps from intermediate states to the full model's next-token predictions [5]. Our head scores a variable number of options using their states and the answer-position state. Probing work studies the gap between knowledge in hidden states and model outputs [27, 31].
Early-exit methods include DeeBERT, Depth-Adaptive Transformer, and CALM [36, 11, 29]. LayerSkip trains the backbone for early exits [12]. Pruning studies remove deeper layers [13, 23]. We use a fixed exit depth and train only the small choice head.
Judges and Verifiers. Verifiers rank sampled math solutions and coding-agent runs [9, 26]. Prompted language models can also judge outputs directly [39]. We distill a prompted run judge into our option head without outcome labels. The task is to select among existing runs; we do not change how the runs are generated.
3 Method
FunDM scores internal representations, called states, from a frozen backbone. Figure 1 contrasts its joint encoding and teacher-only training with CLM's separate encoding.
(a) CLM
separate sequences

(b) Full-model teacher
One joint causal prompt
Options see only their own text.
Option vectors can be cached.

Full model: 8.19B parameters.
Targets need no correct-answer labels.
Frozen model
Trained head
Option vectors
(c) FunDM: layer 24
One joint causal prompt
Training: minimize .
Only the scoring head is trained.
Skipped at inference
Figure 1: (a) CLM uses separate encoding and scaled cosine similarity; option vectors can be cached. (b) The frozen full model supplies letter probabilities . (c) FunDM matches with KL divergence using normalized joint states at layer 24. stacks option states for ; feeds . Remaining layers and the LM head are skipped. Optional FunDM+1T mixes these readouts bidirectionally before the projections; its transformer layer is not shown.
3.1 Joint Encoding
For a question and options , we form one prompt containing the question, lettered options, and an answer cue. At a chosen layer , we take one state at each option end and one at the answer position. The backbone is causal: an option state sees the question and options up to that point, while the answer state sees the whole prompt.
We normalize each state by its root mean square. Denote the option states by and the answer state by . These states are the head's only inputs; in Figure 1 denotes the stack of option states. Appendix A.2 gives the prompt and extraction details.
3.2 Scoring Mechanism
Two learned projections map the answer state to a query and each option state to a key :
A scaled dot product scores each option; softmax gives its probability:
(2)
The head produces one score per option, so increasing K increases the number of scores without changing the head's parameter count. We choose the option with the highest probability. The base head has 1.05M trainable parameters, while FunDM+1T has 5.38M (5,383,168).
FunDM+1T first maps all states to 512 dimensions, then mixes them with one bidirectional transformer layer. Each selected state can attend to all the others, while the backbone remains causal. The updated option and answer states use the same scoring rule, with (Appendix A).
3.3 Head Training
Teacher-Probability Training. The teacher is the same frozen backbone run at full depth with its original language-model head. It shares the head's multi-line, lettered prompt, which asks for an option letter. Appendix A.2 gives this format and the validation comparison that motivated its choice.
At the answer position, the teacher provides next-token log-probabilities for the option letters. We normalize over these letters to obtain and train the head to match it:
This teacher-only distillation retains probabilities for all choices [15], with no CE term against correct-answer labels. For a fixed teacher, it has the same gradients as cross-entropy with soft targets. One full backbone pass per MCQ row caches probabilities and states at all tested layers; only the head is updated thereafter. Validation KL selects the checkpoint (Section 4).
Inference Procedure. FunDM runs backbone layers 1 through ( in our case), then applies the head to produce option probabilities and selects the most probable option. The remaining backbone layers and language-model head are skipped.
4 Experimental Setup
All experiments use a single NVIDIA DGX Spark (GB10 GPU). Code and reproduction scripts are available at: https://github.com/Ujjawal-K-Panchal/FunDM.
Data and Checkpoint Selection. Our 38,067-row MCQ pool uses ARC, SciQ, and MedMCQA [8, 35, 25]. About half the rows add distractors from other questions, giving up to ten options. A question-grouped split gives 36,164 training and 1,903 validation rows. Validation KL selects FunDM checkpoints, without correct-answer labels for fitting or selection. Results use seed 0 unless stated. Appendix A gives fitting, prompt, and data details.
Baselines. The full-model reference uses all 36 Qwen3-8B layers and its LM head to choose an option letter. Released CLM-v0.1-8B, fine-tuned CLM, and CLM-shaped heads trained from scratch all use the same frozen backbone. Released and fine-tuned CLM use the authors' input formats, encoding the question and each option separately (Appendix C.1). The from-scratch controls use separate encoding and CE on our rows (Section 7.2). For fine-tuning, the authors' script updates released CLM's two MLP heads and learned cosine scale with bidirectional in-batch InfoNCE. Its random 90/10 row split gives 34,260 fitting rows; validation accuracy selects the checkpoint. We average seeds 0–2. Appendix C.1 details comparison and reproduction limits.
| Set | CLM | CLM ft. | CLM-shaped | FunDM | FunDM+1T | Teacher |
|---|---|---|---|---|---|---|
| MMLU-Pro | 0.180 | 0.182 | 0.157 | 0.426 | 0.443 | 0.451 |
| MMLU | 0.358 | 0.368 | 0.299 | 0.684 | 0.685 | 0.706 |
| OpenBookQA | 0.338 | 0.386 | 0.288 | 0.834 | 0.834 | 0.856 |
| CommonsenseQA | 0.389 | 0.426 | 0.237 | 0.799 | 0.796 | 0.792 |
| PIQA | 0.609 | 0.610 | 0.595 | 0.849 | 0.856 | 0.854 |
| HellaSwag | 0.423 | 0.423 | 0.399 | 0.833 | 0.840 | 0.827 |
| WinoGrande | 0.482 | 0.499 | 0.505 | 0.682 | 0.680 | 0.696 |
| BoolQ | 0.764 | 0.819 | 0.378 | 0.865 | 0.869 | 0.870 |
| Mean | 0.443 | 0.464 | 0.357 | 0.747 | 0.750 | 0.757 |
| Total parameters | 7.59B | 7.59B | 7.59B | 5.25B | 5.26B | 8.19B |
| Trainable parameters | 18.9M | 18.9M | 18.9M | 1.05M | 5.38M | 0 |
| Layers run (of 36) | 36 | 36 | 36 | 24 | 24 | 36 + LM head |
Table 1: Eight-benchmark accuracy. CLM ft. fine-tunes released CLM on our rows (three-seed mean); CLM-shaped trains its architecture from scratch on our rows with separate encoding (Table 5). CLM-shaped and FunDM heads use seed 0. The teacher uses full-model letter probabilities. Total parameters include the inference backbone and head. Bold/underlining mark the best/second-best non-teacher scores; ties share a rank.
We also evaluate FunDM-CE and FunDM-CE+1T, supervised variants of the base and +1T head architectures trained with CE on correct-answer labels. Their original MCQ recipe uses all 36 layers and a single-line prompt (Appendix B.1).
Evaluation. We evaluate non-thinking option-letter selection on MMLU-Pro's 12,032 questions and seven other benchmarks: MMLU, OpenBookQA, CommonsenseQA, PIQA, HellaSwag, Wino-Grande, and BoolQ [34, 14, 24, 30, 6, 38, 28, 7]. We report accuracy and an equally weighted eight-benchmark mean. The main MCQ and agent heads use the same fixed layer-24 budget; parameter and decoder-layer savings are architectural estimates.
5 Results
5.1 Multiple-Choice Performance
Both FunDM variants outperform released, fine-tuned, and from-scratch CLM-shaped heads on every benchmark (Table 1). Their mean accuracies exceed fine-tuned CLM's by 28.3 and 28.6 percentage points. At 24 layers, FunDM and FunDM+1T score 0.747 and 0.750 versus the teacher's 0.757, retaining and of its mean accuracy. The teacher itself already exceeds fine-tuned CLM's 0.464.
Both heads are within 2.5 percentage points of the teacher on each benchmark. Lower negative log-likelihood (NLL) means more probability on correct answers; FunDM+1T has lower NLL on six of eight sets, including MMLU-Pro (1.98 versus 2.22). Similar accuracy does not imply identical answers: mean teacher agreement is about , and MMLU-Pro agreement is about . Section 7 examines training targets and supervised encoding.
5.2 Inference Efficiency
We compare six models in vLLM on the same 500 MMLU-Pro questions, with up to ten options each. All return option probabilities; the full model uses LM-head letter probabilities. Table 2 measures batched throughput, batch-one first-decision latency, and peak GPU allocator memory.
| Model | Layers | Params | Peak (GiB) | Questions/s | First decision (ms) | Speedup |
|---|---|---|---|---|---|---|
| CLM (released) | 36 | 7.59B | 19.3 | 16.8 | 216.7 | 0.69× |
| Full model + LM head | 36 | 8.19B | 20.5 | 24.5 | 93.7 | 1.00× |
| FunDM | 24 | 5.25B | 13.8 | 38.4 | 57.6 | 1.57× |
| FunDM+1T | 24 | 5.26B | 13.8 | 38.2 | 58.3 | 1.56× |
| FunDM-CE | 36 | 7.57B | 19.8 | 29.5 | 84.5 | 1.20× |
| FunDM-CE+1T | 36 | 7.57B | 19.6 | 29.5 | 86.9 | 1.20× |
Table 2: BF16 vLLM inference on 500 MMLU-Pro questions with a 32,768-token KV pool: 16 active sequences for throughput, batch-one requests for latency. Speedup is relative to the full model. CE denotes training with correct-answer labels. Peak is whole-workload CUDA allocator reserved memory, excluding non-PyTorch allocations/context. Teacher/FunDM share a prompt; CE retains its original prompt (Appendix E).
The 24-layer heads achieve 1.56–1.57× throughput, reduce latency from 93.7 to 57.6–58.3 ms, and reduce peak memory from 20.5 to 13.8 GiB (about 33%).
These gains combine one joint backbone pass, a compact readout, and reduced depth. Shared weights score a variable number of options without increasing head parameters. Scoring only supplied candidates replaces the full-vocabulary LM head; skipping it and 12 layers reduces total inference parameters by about 36%. CLM also supports a variable number of options, but encodes them separately. With caches initially empty on each pass, this workload has 0% vector-cache and 0.82% prefix-cache hits.
A separate PyTorch experiment gives 24-layer FunDM 1.50× the teacher's throughput across eight benchmarks. Preloading all 500 MMLU-Pro option vectors raises CLM from 14.1 to 31.7 questions/s (2.25×), above the teacher (14.0) and FunDM (21.0) in that run. This assumes known candidates and excludes their encoding cost; it is separate from vLLM (Appendix E).
6 Agentic Selection
We distill a judge that selects among existing coding-agent runs. This best-of-N selection is useful when an agent generates several solutions but must return one, as in CodeMonkeys [10].
CoderForge-Preview records coding attempts and test outcomes [3]. We use its SWE-rebench subset of GitHub issues, repository environments, and tests [4]. Unlike the fixed SWE-bench set, SWE-rebench also maintains a rolling benchmark of fresh issues [17, 4]. Qwen3-Coder-480B generated these runs using OpenHands, a framework for inspecting files, editing code, and executing commands [3, 33]; each run records actions and observations from one attempt.
We select one run for each of 100 held-out tasks with 799 runs: eight per task, except one with seven. Every task has passing and failing runs. Random selection solves 54.9 tasks in expectation; a perfect selector solves 100.
Judge Distillation. The full model reads the task and recent run text and predicts whether the final changes will pass hidden tests. Normalizing yes/no probabilities gives ; selecting the highest solves 74 tasks. The student reads the same task and run with lettered yes/no options, learns the judge probabilities with KL, and ranks runs by its yes-minus-no logit. Pass/fail labels only evaluate these heads. Appendix C.2 specifies prompts and text limits. Action-trained CLM baselines instead score actions against preceding run text and aggregate scores.
| Selector | Total params | Head params | Tasks solved | AUC |
|---|---|---|---|---|
| Released CLM, no training | 7.59B | 18.9M | 44.0 | 0.458 |
| Released CLM, fine-tuned | 7.59B | 18.9M | ||
| CLM-shaped, action-trained | 7.59B | 18.9M | ||
| FunDM, layer 24 | 5.25B | 1.05M | ||
| FunDM+1T, layer 24 | 5.26B | 5.38M | ||
| Full-model judge (teacher) | 8.19B | 0 | 74 | 0.760 |
Table 3: CoderForge selection on 100 tasks; AUC is within-task. Trained heads report five-seed means ± sample standard deviations. Total parameters include the backbone and head. Bold/underlining mark the best/second-best non-teacher means. †Released CLM uses its authors' mean-cosine scoring rule, before/after fine-tuning on 200 training tasks; random choice solves 54.9 tasks.
Training and Performance. From 1,600 runs on 200 training tasks, each seed reserves ten tasks for validation; validation KL selects the checkpoint. Table 3 reports five-seed results at layer 24. AUC measures how often a passing run outscores a failing run within a task. The 5.25B-parameter backbone prefix uses 67% of full-model decoder-layer operations for equal-length inputs.
Both heads select passing runs at rates comparable to the judge, without establishing superiority or statistical equivalence. Their 95% paired task-bootstrap intervals for differences include zero; for FunDM+1T, they span -8.0 to +8.8 tasks and -0.059 to +0.033 AUC. Heads choose different runs from the judge on 60–69 tasks. Seed deviations in the table do not measure task-sampling uncertainty.
The judge already solves 74 tasks versus the action-trained CLM-shaped head's 52.0. Released CLM before/after fine-tuning solves 44.0/58.2 using its authors' mean-cosine scoring rule. These comparisons change inputs, supervision, and run scoring. Section 7.3 examines agent exit depth; Appendix D tests CE heads on released separate DeepSWE embeddings.
7 Ablations
We examine targets, encoding, head architecture, exit depth, data, and prompts. The matched target study uses the layer-24 FunDM recipe; encoding and architecture studies use the original final-layer CE recipe. Appendix B gives supporting diagnostics and Appendix A.2 covers prompts.
7.1 Effect of the Training Target
Table 4 fixes the prompt, layer-24 states, head, and fitting, changing only targets. Each run selects its checkpoint by validation loss under its target. Full teacher probabilities give the highest observed mean accuracy: 0.747/0.751 for the two heads, versus 0.735/0.740 for teacher top-choice labels and 0.713/0.734 for correct-option labels.
Supervised CE Recipe. Our original FunDM-CE and FunDM-CE+1T baselines use all 36 layers, a single-line ::-delimited prompt, final-layer normalized states, and one-hot correct-option labels:
Validation NLL selects checkpoints. Their prompt, readout, normalization, and depth differ from FunDM, so that gap does not isolate the target. Appendix B.1 retains the full MCQ results, head diagram, and action-trained agent results.
| Target (layer 24, FunDM prompt) | FunDM | FunDM+1T |
|---|---|---|
| Correct-option labels | ||
| Teacher's top choice | ||
| Teacher probabilities (FunDM) | ||
| Full model (teacher), 36 layers | 0.757 | |
Table 4: Mean accuracy over eight benchmarks when only the training target changes; states, prompt, head, and fitting are fixed. Means ± sample standard deviations over seeds 0–2. Bold marks the best target per column; underlining, the second best.
| Head architecture | Head params | Option only (CLM format) | Question + option | Full list |
|---|---|---|---|---|
| FunDM-CE | 1.05M | |||
| FunDM-CE+1T | 5.38M | |||
| CLM-shaped MLPs | 18.9M | |||
| Released CLM (pretrained) | 18.9M | 0.180 | - | - |
Table 5: MMLU-Pro CE accuracy, means ± sample standard deviations over seeds 0–2. Option only: separate question and option embeddings from CLM's vLLM path. Question + option: each pair in its own sequence. Full list: the question and all options together. The last two read final-layer option-delimiter states. Bold/underlining mark the best/second-best accuracy per row. Released CLM is an externally trained reference.
7.2 Encoding Strategies under Cross-Entropy Training
Table 5 compares option-only, question-plus-option, and full-list encoding under CE. Joint reading improves mean MMLU-Pro accuracy over option-only by 15.7, 17.3, and 16.4 percentage points for FunDM-CE, FunDM-CE+1T, and CLM-shaped MLPs. Question plus option scores higher still (0.342/0.366/0.369 versus 0.317/0.332/0.327). Question context supplies the main accuracy gain; joint reading saves computation. A joint MMLU-Pro list uses 180 tokens per question versus 10.5 passes and 842 tokens for question plus option, which repeatedly reads the question.
Question plus option and full list share extraction and readout; option only uses CLM's. FunDM-CE+1T mixes options inside its head in every column. These CE results do not establish the same encoding effect under teacher-only training.
Head Architecture. With identical joint CE states, FunDM-CE+1T has the highest single-seed accuracy, while CLM-shaped MLPs have the lowest NLL and expected calibration error (ECE; confidence-accuracy mismatch). Small accuracy differences should be read alongside seed variation (Table 8, Appendix B.2).
7.3 Effect of Exit Depth
Multiple-Choice Selection. Table 6 shows the accuracy–budget tradeoff. At 28 layers, mean accuracies reach 0.756/0.757; at 20 and 16, heads retain 94–95% and 75–76% of teacher accuracy. The heads differ by at most one percentage point at any tested depth. Later validation KL need not improve test accuracy (Appendix B.3).
Per-Exit Depth Benchmark Performance. At layer 20, MMLU-Pro retains only 86–88% of teacher accuracy versus 94–95% for the eight-benchmark mean. Figure 2 shows this variation across benchmarks and depths.
| Layers run (of 36) | Parameters | Layers used | Mean of 8 sets ↑ FunDM | FunDM+1T |
|---|---|---|---|---|
| 16 | 3.71B (45%) | 44% | 0.579 | 0.569 |
| 20 | 4.48B (55%) | 56% | 0.708 | 0.716 |
| 24 (two-thirds) | 5.25B (64%) | 67% | 0.747 | 0.750 |
| 28 | 6.02B (74%) | 78% | 0.756 | 0.757 |
| 32 | 6.80B (83%) | 89% | 0.753 | 0.755 |
| 36 + LM head (teacher) | 8.19B (100%) | 100% | 0.757 | |
Table 6: Equal-weight eight-benchmark accuracy by exit depth (seed 0). Student counts include the embedding and retained decoder layers, excluding scoring heads; the teacher includes its LM head. Parameter and layer percentages are relative to the full model.


Figure 2: Teacher-relative accuracy by benchmark and depth (seed 0): 100× student accuracy divided by teacher accuracy, computed from three-decimal scores. Both panels share the same color scale, without clipping values above 100%. Black outlines mark fixed layer 24. Per-benchmark scores are in the reproduction data.
Agent Selection. Solved-task means stay between 74.4 and 76.4 across layers 16–32 (Figure 3). AUC peaks at layer 20 and falls to 0.72–0.73 at layer 16: selecting one passing run can remain effective despite a less accurate overall ranking. The main configuration is fixed at layer 24; its paired uncertainty analysis does not cover other exits.
Training Data and Exit Depth. Adding 84,757 rows from RACE, MathQA, Cosmos QA, QASC, and LogiQA [20, 2, 16, 18, 22] expands the pool to 123k. At layer 24, mean accuracy rises by 0.2/0.1 percentage points for FunDM/FunDM+1T; at layer 20, by 1.1/1.0. At layer 16, FunDM loses about 1.4 points and FunDM+1T gains about 3.6. Neither 16- nor 20-layer heads match the teacher. This single-seed comparison also changes the data sources and validation splits, so it does not isolate the effect of adding more data (Table 10, Appendix B.4).
8 Conclusion
FunDM reuses pretrained decision capability with a small head trained on teacher probabilities, without correct-answer labels for fitting or checkpoint selection. At 24 layers, FunDM+1T retains 99.2% of the full model's mean MCQ accuracy; separately trained agent heads show comparable run selection. Skipping 12 layers and the LM head reduces compute and the layers requiring KV
(a) Passing-run selection

(b) Within-task ranking
--- Full-model judge (36 layers + 1m_head)
Figure 3: CoderForge exit-depth sweep: five-seed means ± sample standard deviations, not task-sampling confidence intervals. Dashed lines show the full-model judge (74 tasks; AUC 0.760). Shading marks fixed layer 24.
storage. On MMLU-Pro, the heads provide vLLM throughput, about 33% lower peak GPU allocator memory, and 38% lower first-decision latency. Future work could test other backbones and workloads.
Limitations
FunDM recovers much of the full model's performance at several fixed exit depths. We have tested only Qwen3-8B, but the provided recipe can be adapted to other open-weights language models. Future work could evaluate larger models, adaptive exits, and more training seeds, and select alternative exit depths on development data.
Our distillation ablation compares teacher probabilities with teacher top-choice and correct-option targets, but not with Tuned Lens-style objectives.
For agent selection, teacher probabilities are often close to zero or one, and task-bootstrap confidence intervals are wide.
The separate DeepSWE comparison in Appendix D uses CLM's released embeddings without run text [19]. It tests FunDM-CE and FunDM-CE+1T with separate reading, but cannot test joint encoding or teacher-based KD. Regenerating CLM's full corpus exceeds our budget and would not reproduce its stochastic runs exactly; Appendix D gives the corpus details.
Efficiency is measured on one GPU. The memory and first-decision results cover one multiple-choice workload and engine calls; production queueing, HTTP overhead, and non-PyTorch GPU memory are outside these measurements.
Ethical Considerations
FunDM learns from the frozen teacher's predictions and may inherit its errors and biases; benchmark accuracy does not establish reliability for consequential decisions. In coding-agent selection, a highly ranked run may still contain an incorrect or insecure change and requires further testing and review.
before deployment. We measured lower inference resource use for one workload but did not measure total energy use or emissions, including teacher caching and training.
Acknowledgements
The author thanks Bertrand Serlet, Greg Gilley, Insop Song, and Manny Ko for their valuable reviews and advice.
References
[1] Diogo Almeida. Introducing System One Models & Jev. TypeSafe AI blog, September 15, 2026. https://typesafe.ai/blog/introducing-system-one-models-and-jev.
[2] Aida Amini et al. MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms. arXiv:1905.13319, 2019. https://arxiv.org/abs/1905.13319.
[3] Alpay Ariyak et al. CoderForge-Preview: SOTA Open Dataset for Training Efficient Coding Agents. Together AI, February 25, 2026. https://www.together.ai/blog/coderforge-preview.
[4] Ibragim Badertdinov et al. SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents. arXiv:2505.20411, 2025. https://arxiv.org/abs/2505.20411.
[5] Nora Belrose et al. Eliciting Latent Predictions from Transformers with the Tuned Lens. arXiv:2303.08112, 2023. https://arxiv.org/abs/2303.08112.
[6] Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: Reasoning about Physical Commonsense in Natural Language. In AAAI Conference on Artificial Intelligence, 2020. https://arxiv.org/abs/1911.11641.
[7] Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions. In Conference of the North American Chapter of the Association for Computational Linguistics, 2019. https://arxiv.org/abs/1905.10044.
[8] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge. arXiv:1803.05457, 2018. https://arxiv.org/abs/1803.05457.
[9] Karl Cobbe et al. Training Verifiers to Solve Math Word Problems. arXiv:2110.14168, 2021. https://arxiv.org/abs/2110.14168.
[10] Ryan Ehrlich et al. CodeMonkeys: Scaling Test-Time Compute for Software Engineering. arXiv:2501.14723, 2025. https://arxiv.org/abs/2501.14723.
[11] Maha Elbayad, Jiatao Gu, Edouard Grave, and Michael Auli. Depth-Adaptive Transformer. In International Conference on Learning Representations, 2020. https://arxiv.org/abs/1910.10073.
[12] Mostafa Elhoushi et al. LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding. arXiv:2404.16710, 2024. https://arxiv.org/abs/2404.16710.
[13] Andrey Gromov, Kushal Tirumala, Hassan Shapourian, Paolo Glorioso, and Daniel A. Roberts. The Unreasonable Ineffectiveness of the Deeper Layers. arXiv:2403.17887, 2024. https://arxiv.org/abs/2403.17887.
[14] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring Massive Multitask Language Understanding. arXiv:2009.03300, 2020. https://arxiv.org/abs/2009.03300.
[15] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the Knowledge in a Neural Network. arXiv:1503.02531, 2015. https://arxiv.org/abs/1503.02531.
[16] Lifu Huang et al. Cosmos QA: Machine Reading Comprehension with Contextual Commonsense Reasoning. arXiv:1909.00277, 2019. https://arxiv.org/abs/1909.00277.
[17] Carlos E. Jimenez et al. SWE-bench: Can Language Models Resolve Real-World GitHub Issues? In International Conference on Learning Representations, 2024. https://arxiv.org/abs/2310.06770.
[18] Tushar Khot et al. QASC: A Dataset for Question Answering via Sentence Composition. arXiv:1910.11473, 2019. https://arxiv.org/abs/1910.11473.
[19] Jacky Kwok, Hangoo Kang, Tarun Suresh, Jon Saad-Falcon, Marco Pavone, Christopher Ré, and Azalia Mirhoseini. Contrastive Language Models: A System One Model for Fast and Generalizable Decision-Making. Technical blog and software release, 2026. https://github.com/Contrastive-LM/CLM.
[20] Guokun Lai et al. RACE: Large-scale ReAding Comprehension Dataset From Examinations. arXiv:1704.04683, 2017. https://arxiv.org/abs/1704.04683.
[21] Yinheng Li and Justin Wagle. LLM2Jev: LLMs Are Already Jev-Style Decision Models – When and How to Fine-Tune Them. arXiv:2610.02076, 2026. https://arxiv.org/abs/2610.02076.
[22] Jian Liu et al. LogiQA: A Challenge Dataset for Machine Reading Comprehension with Logical Reasoning. arXiv:2007.08124, 2020. https://arxiv.org/abs/2007.08124.
[23] Xin Men et al. ShortGPT: Layers in Large Language Models are More Redundant Than You Expect. arXiv:2403.03853, 2024. https://arxiv.org/abs/2403.03853.
[24] Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answering. In Conference on Empirical Methods in Natural Language Processing, 2018. https://arxiv.org/abs/1809.02789.
[25] Ankit Pal, Logesh Kumar Umapathi, and Malaikannan Sankarasubbu. MedMCQA: A Large-scale Multi-Subject Multi-Choice Dataset for Medical domain Question Answering. In Conference on Health, Inference, and Learning, 2022. https://arxiv.org/abs/2203.14371.
[26] Jiayi Pan et al. Training Software Engineering Agents and Verifiers with SWE-Gym. arXiv:2412.21139, 2024. https://arxiv.org/abs/2412.21139.
[27] Yoonah Park, Haesung Pyun, and Yohan Jo. Bridging the Knowledge-Prediction Gap in LLMs on Multiple-Choice Questions. arXiv:2509.23782, 2025. https://arxiv.org/abs/2509.23782.
[28] Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. WinoGrande: An Adversarial Winograd Schema Challenge at Scale. In AAAI Conference on Artificial Intelligence, 2020. https://arxiv.org/abs/1907.10641.
[29] Tal Schuster et al. Confident Adaptive Language Modeling. In Advances in Neural Information Processing Systems, 2022. https://arxiv.org/abs/2207.07061.
[30] Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledge. In Conference of the North American Chapter of the Association for Computational Linguistics, 2019. https://arxiv.org/abs/1811.00937.
[31] Gnaneswar Villuri, Hashmath Shaik, and Alex Doboli. When Do Internal Probes Beat Reading the Answer? Miscalibrated Readouts and Behavior-Concealed Knowledge in Language Models. arXiv:2609.04582, 2026. https://arxiv.org/abs/2609.04582.
[32] Feng Wang, Yuqing Li, and Han Xiao. jina-reranker-v3: Last but Not Late Interaction for Listwise Document Reranking. arXiv:2509.25085, 2025. https://arxiv.org/abs/2509.25085.
[33] Xingyao Wang et al. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. arXiv:2407.16741, 2024. https://arxiv.org/abs/2407.16741.
[34] Yubo Wang et al. MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2024. https://arxiv.org/abs/2406.01574.
[35] Johannes Welbl, Nelson F. Liu, and Matt Gardner. Crowdsourcing Multiple Choice Science Questions. In Workshop on Noisy User-generated Text, 2017. https://arxiv.org/abs/1707.06209.
[36] Ji Xin, Raphael Tang, Jaejun Lee, Yaoliang Yu, and Jimmy Lin. DeeBERT: Dynamic Early Exiting for Accelerating BERT Inference. In Annual Meeting of the Association for Computational Linguistics, 2020. https://arxiv.org/abs/2004.12993.
[37] An Yang et al. Qwen3 Technical Report. arXiv:2505.09388, 2025. https://arxiv.org/abs/2505.09388.
[38] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a Machine Really Finish Your Sentence? In Annual Meeting of the Association for Computational Linguistics, 2019. https://arxiv.org/abs/1905.07830.
[39] Lianmin Zheng et al. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. arXiv:2306.05685, 2023. https://arxiv.org/abs/2306.05685.
A Implementation and Training
A.1 Artifact Release and Licenses
The planned release contains our code, figures, aggregate results, and task/run identifiers. It does not redistribute model weights, benchmark questions, coding-agent trajectories, or embeddings; scripts obtain these inputs from their original hosts. Qwen3-8B and CLM are released under Apache License 2.0 by their creators [37, 19]. The CLM code is linked as an upstream submodule with its license and attribution retained. Our original code is also released under Apache License 2.0. The release repository is https://github.com/Ujjawal-K-Panchal/FunDM.
A.2 Prompt Formats and State Extraction
The teacher and both FunDM variants use the multi-line prompt below because it gives the frozen model 0.744 accuracy on 1,903 held-out validation rows (chance 0.194), versus 0.570 with the initial single-line prompt. The difference is 17.4 percentage points (95% bootstrap interval 15.4 to 19.5).
The following is a multiple choice question. Answer with the letter of the correct option. Question: <question> Options: A. <option 1> ... Answer:
The two instruction sentences are joined by a space. The initial single-line teacher prompt was (wrapped here for display):
<question> answer options: (a) <option 1> (b) <option 2> ... :: answer in option character only (without brackets): (
Under this prompt, the teacher predicts a-j after the final open parenthesis. Option labels, instructions, and delimiters change together, so this comparison tests the prompt recipe, not any one change.
For FunDM, are single tokens. The teacher reads the final normalized state at the last colon; option letters hold 51% of token probability on MMLU-Pro and 77–96% on other sets before renormalization. We locate option ends by character offsets (verified on 500 MMLU-Pro rows), store layer outputs in bfloat16, and normalize student states by their root mean square.
FunDM-CE and FunDM-CE+1T were trained using final-layer normalized states at the closing delimiters and final colon of this single-line prompt:
<question> rubric: <option 1> :: ... :: <option K> :: answer:
We verify that the delimiter :: tokenizes to a single token. Recorded boundaries avoid mistaking delimiters inside options for option ends. Padded options have logits of . For MCQ evaluation and training, no FunDM row exceeds 4,096 tokens, no CE row exceeds 2,048, and no rows are dropped. BoolQ places its passage and question together, with “no” and “yes” options.
As a prompt sensitivity check, the teacher scores 45.2% on MMLU-Pro with the original option order and 45.1% with shuffled options. This check does not test whether student predictions are robust to option order.
| Benchmark | FunDM-CE, original layer-36 recipe | Full-model reference |
|---|---|---|
| MMLU-Pro | 0.304 | 0.451 |
| MMLU | 0.543 | 0.706 |
| OpenBookQA | 0.580 | 0.856 |
| CommonsenseQA | 0.616 | 0.792 |
| PIQA | 0.643 | 0.854 |
| HellaSwag | 0.490 | 0.827 |
| WinoGrande | 0.506 | 0.696 |
| BoolQ | 0.685 | 0.870 |
| Mean | 0.546 | 0.757 |
Table 7: Eight-benchmark accuracy of the original supervised CE recipe (seed 0). The full-model reference uses the FunDM prompt. This is not a matched training-target comparison; Table 4 provides that ablation.
A.3 Architecture and Optimization
FunDM+1T uses 512-dimensional states, option/answer type embeddings, and one pre-norm, 8-head bidirectional transformer layer with a 2,048-dimensional GELU feed-forward block and dropout 0.1. A final layer norm precedes the 128-dimensional scoring projections; no positional encoding is added. MCQ heads train for ten epochs in batches of 256 with AdamW (weight decay 0.01) and a one-cycle schedule, using the first 5% of steps for warmup. Peak learning rates are for the base head and for +1T and CLM-shaped CE heads. Validation NLL selects CE checkpoints; validation KL selects FunDM checkpoints. Trainable parameter counts are given in Section 3.
A.4 Data Splits and Overlap
For the expanded pool, we first remove 18 source questions sharing a 13-word span with an evaluation question. Added rows are split by dataset ID; 664 validation rows share question text with training, including one identical full prompt. Evaluation uses test splits for MMLU-Pro, MMLU, and OpenBookQA, and validation splits for CommonsenseQA, PIQA, HellaSwag, WinoGrande, and BoolQ. No evaluation split is used for checkpoint selection.
Normalized exact matching finds one MMLU question in the original training pool and none from the other evaluations; paraphrases and backbone/CLM pretraining overlap are not checked. Dataset revisions, source counts, and construction details will accompany the public implementation.
B Additional Ablation Results
B.1 Original Supervised CE Recipe
The original FunDM-CE baseline introduced in Section 4 uses all 36 layers, final-layer normalized states, and the single-line prompt in Appendix A.2, with 7.57B total and 1.05M trainable parameters. Table 7 reports accuracy and Figure 4 shows the joint CE heads; timing is in Section 5.2 and Appendix E. The full-model reference uses the FunDM prompt. Because prompt, readout, normalization, and depth differ, Table 4 provides the matched target comparison.
On CoderForge, action-trained FunDM-CE solves tasks with AUC ; FunDM-CE+1T solves with AUC over five seeds. These heads learn from passing actions, whereas FunDM learns whole-run judge probabilities; inputs, targets, and run scoring differ.
(a) FunDM-CE
One joint causal prompt

has read the question, A and B, not C.
Frozen model
Trained head
(b) FunDM-CE+1T
One joint causal prompt

Selected states attend to each other in the head.
Option vectors
Figure 4: These joint-encoding heads use correct-option labels, categorical cross-entropy, and final-layer contextual states. (a) FunDM-CE projects readouts directly. (b) FunDM-CE+1T first mixes all readouts bidirectionally. stacks option states for the shared ; the answer state feeds .
| Head (same joint states) | Params | Acc. ↑ | NLL ↓ | ECE ↓ |
|---|---|---|---|---|
| FunDM-CE (seed 0) | 1.05M | |||
| FunDM-CE (seeds 0, 1, 2) | 1.05M | |||
| FunDM-CE+1T | 5.38M | |||
| CLM-shaped MLPs (joint) | 18.9M |
Table 8: MMLU-Pro accuracy, NLL, and ECE of heads trained with one-hot CE on the same joint final-layer states, including the CLM-shaped MLPs. Seed 0 unless stated; NLL/ECE use raw probabilities. Bold compares single-seed results.
B.2 Head Architecture Diagnostics
Table 8 compares heads on identical joint final-layer states. Lower NLL gives more probability to correct answers; lower ECE means confidence better matches accuracy. FunDM-CE+1T has the highest single-seed accuracy, while CLM-shaped MLPs have the lowest NLL and ECE. FunDM-CE averages over three seeds, so small accuracy gaps should be read alongside seed variation.
B.3 Validation KL by Exit Depth
Later layers reduce validation KL without consistently improving test accuracy (Tables 9 and 6). At layer 24, FunDM+1T has higher KL than FunDM (0.103 versus 0.091) yet slightly higher accuracy. At layer 32, it has lower KL (0.034 versus 0.060).
B.4 Expanded Training Pool
Table 10 compares the 38k and 123k pools across exit depths. This single-seed comparison changes sources and validation splits as well as size, so it does not isolate data quantity.
| Readout layer | 16 | 20 | 24 | 28 | 32 |
|---|---|---|---|---|---|
| FunDM | 0.551 | 0.190 | 0.091 | 0.061 | 0.060 |
| FunDM+1T | 0.474 | 0.176 | 0.103 | 0.039 | 0.034 |
Table 9: Validation KL () by exit depth on 1,903 rows from the training pool (seed 0). Accuracy for these heads is in Table 6.
| Layers run (of 36) | FunDM | FunDM+1T | ||
|---|---|---|---|---|
| 38k | 123k | 38k | 123k | |
| 16 | 0.579 | 0.564 | 0.569 | 0.605 |
| 20 | 0.708 | 0.719 | 0.716 | 0.726 |
| 24 | 0.747 | 0.749 | 0.750 | 0.751 |
| 28 | 0.756 | 0.759 | 0.757 | 0.756 |
| 32 | 0.753 | 0.756 | 0.755 | 0.756 |
| 36 + LM head (teacher) | 0.757 | |||
Table 10: Equal-weight eight-benchmark accuracy with the 38k/123k pools (seed 0); the teacher is the last row. Table values are rounded; text differences use unrounded scores.
C Baselines and Agent Evaluation
C.1 CLM Baselines
Released CLM uses separately encoded, L2-normalized states and normalized MLP outputs, with cosine scale capped at 100.
We fine-tune the released CLM heads with the backbone frozen, using the authors' script: AdamW, batches of 256, peak learning rate , zero weight decay, gradient clipping at 1.0, and up to 20 epochs with patience 5. The one-cycle schedule warms up for 10% of steps. Its 90/10 row split and bidirectional in-batch InfoNCE differ from our 95/5 question split and per-question CE controls. Validation accuracy selects the checkpoint, including the initialization.
All methods use raw probabilities and top-option confidence for ECE (15 equal-width bins).
C.2 Teacher-Judge Protocol and Uncertainty
The judge uses thinking-disabled Qwen3-8B chat without a system prompt. Its 8,191-token budget reserves the final turn and assistant prefix, keeps up to 2,048 task tokens, and fills the rest with recent run text. The final user turn is (wrapped for display):
Above is an AI agent's attempt to resolve the issue.
Will the repository's hidden tests pass with the agent's final changes?
Answer with yes or no.
We combine yes/Yes and no/No probabilities and renormalize. The student uses the same budget with shuffled, lettered yes/no options; its answer state is the last assistant-prefix token after the empty thinking block.
The lettered prompt provides option states for the student. With this prompt, the full model selects passing runs on 74 tasks with AUC 0.769, versus 74 and 0.760 for the yes/no judge. The judge says yes to 94% of runs, and its top run has probability above 0.999 in every task.
FunDM agent-selection heads train for 30 epochs, holding out ten tasks per seed.
Paired 95% intervals resample 100 test tasks 10,000 times, comparing the head's five-seed mean with the judge on the same tasks (Section 6).
| Selector | Tasks solved | Success rate |
|---|---|---|
| Random | 28.0 | 73.7% |
| CLM-shaped, from scratch | 29.6±1.3 | 77.9% |
| FunDM-CE (read separately) | 30.2±0.4 | 79.5% |
| FunDM-CE+1T (read separately) | 29.4±0.9 | 77.4% |
| CLM, released DeepSWE head [19] | 31 | 81.6% |
| Oracle | 34 | 89.5% |
Table 11: DeepSWE selection on 38 tasks using released separate state/action embeddings. From-scratch heads learn one-hot action CE and report five-seed means ± sample standard deviations. Released CLM solves 31 tasks in both its authors' report and our reproduction. Model names denote head architectures with separate reading.
D DeepSWE Evaluation with Separate Embeddings
We evaluate CLM's published DeepSWE held-out split: 38 tasks and 151 Opus 5 runs, four per task except one with three. The release supplies separate state/action embeddings and metadata, but no run text. All heads in Table 11, including FunDM-CE and FunDM-CE+1T, use these embeddings; this tests separate reading, while the missing text prevents joint encoding and teacher-based KD.
Our heads train from scratch with one-hot action cross-entropy on passing-run embeddings: 20,117 steps for fitting and 2,459 for validation. Each training row has its own action, 15 same-task actions, and 16 random actions. Test rows use the own action and 31 fixed training-pool references.
We score runs by averaging own-action log-probabilities over the final 12 steps. The released CLM DeepSWE head uses its fine-tuned checkpoint and averages cosine scores. Losses and training histories also differ, so this comparison does not isolate architecture or pretraining.
All runs pass on 21 tasks and fail on four, leaving 13 tasks that can distinguish selectors. One task changes the success rate by 2.6 percentage points; seed variation reaches 1.3 tasks. Table 11 reports each selector's score.
CLM's released corpus spans 24 models and more than 450,000 agent steps. Regenerating it would be costly and would produce different stochastic runs.
E Inference Efficiency Protocols
Native vLLM. Table 2 uses vLLM 0.22.1 and PyTorch 2.11.0 with CUDA 13.0. Each model runs in a fresh process, with BF16 backbone weights, FP32 heads, no CPU offload, and eager execution. The causal pooling engine runs the four FunDM variants and the full teacher; the teacher applies its original full-vocabulary LM head to the answer state and normalizes over valid option letters. Chunked prefill is disabled; the teacher and FunDM variants also disable prefix reuse. All models have capacity for 32,768 KV tokens, a 4,096-token context limit, 16 active sequences, and a 16,384-token batch budget. CE retains all 36 decoder layers and uses its original prompt and readout. CLM uses its authors' Engine, embedding cache, and a 64-MiB vector cache, with a native vLLM encoder. Prefix caching is enabled. The embedding, vector, and prefix caches start empty for each timed pass. Vector-cache hits are zero and prefix hits are 0.82% on this workload; within-pass deduplication remains enabled. Its GPU footprint includes both the encoder worker and the head/cache process.
We shuffle the MMLU-Pro rows with seed 0 and take 500 whose FunDM and CE prompts fit the context limit. After a full untimed pass, we record three timed passes. First-decision latency
Repository: tarsur385/deepswe-prm-embeddings-8k.
| Method | Layers | MMLU-Pro | MMLU | OBQA | CSQA | PIQA | HellaSwag | WinoG. | BoolQ |
|---|---|---|---|---|---|---|---|---|---|
| CLM, all texts batched | 36 | 15.2 | 22.4 | 54.3 | 55.3 | 37.1 | 18.3 | 55.0 | 15.5 |
| CLM | 36 | 14.1 | 20.5 | 51.3 | 56.5 | 31.0 | 17.0 | 94.1 | 15.8 |
| CLM, options prepared | 36 | 31.7 | 35.1 | 103.9 | 107.6 | 140.3 | 53.7 | 107.3 | 19.6 |
| FunDM-CE | 36 | 16.2 | 25.7 | 66.2 | 84.6 | 37.3 | 18.5 | 93.9 | 19.5 |
| Full model (teacher) | 36 + LM head | 14.0 | 22.1 | 49.8 | 53.1 | 32.2 | 16.6 | 62.4 | 17.2 |
| FunDM | 32 | 15.8 | 25.0 | 56.1 | 59.9 | 36.4 | 18.7 | 70.5 | 19.4 |
| FunDM | 28 | 18.0 | 28.5 | 64.1 | 68.4 | 41.5 | 21.3 | 80.5 | 22.2 |
| FunDM | 24 | 21.0 | 33.2 | 74.9 | 79.8 | 48.3 | 24.9 | 93.9 | 25.9 |
| FunDM | 20 | 25.2 | 39.8 | 89.6 | 95.6 | 58.0 | 29.8 | 112.4 | 31.0 |
| FunDM | 16 | 31.5 | 49.8 | 112.1 | 119.5 | 72.4 | 37.3 | 140.9 | 38.7 |
Table 12: PyTorch throughput in questions/s on one DGX Spark (500 questions per benchmark). “All texts batched”: length-packed question/options without caching. “CLM”: embedding/vector caches start empty; within-pass deduplication is enabled. “Options prepared”: option vectors are preloaded, with preparation cost excluded. FunDM uses the first L decoder layers.
uses 50 sequential batch-one requests. The worker resets CUDA allocator peaks after warmup. The measured peak includes weights, KV tensors, activations, workspaces, and reserved slack; it excludes non-PyTorch allocations and the CUDA context. Tokenization, HTTP, and queueing are outside timing. The raw measurements and sample IDs are in assets/serving-data.json.
Before timing, 20 rows are checked against the Hugging Face feature cache. Head decisions agree on 19–20 rows; released CLM agrees with its saved Engine reference on all 20. The teacher agrees on 18 rows under strict argmax and on all 20 when its two exact reference ties are allowed. Its mean and maximum probability differences are 0.003 and 0.057. Accuracy tables use the Hugging Face evaluations; these checks validate the native readout.
For equal-length inputs, 24 of 36 layers save one third of decoder-layer operations and potential KV storage. These are architectural estimates; measured memory is the CUDA allocator footprint on the Spark's shared CPU/GPU memory. Parameter counts are reported in Table 6 and Section 3.
PyTorch Throughput. We time backbone and head execution in one session on the same DGX Spark GB10, with Qwen3-8B, BF16 precision, and 500 questions per benchmark (Table 12), sampled with seed 0. All methods use a common PyTorch backbone; this replaces CLM's vLLM encoder, so the measurements do not test vLLM serving or prefix caching. Inputs are tokenized before timing and packed by length with a 16,384-token batch budget. CUDA synchronization brackets each timed pass. After an untimed pass, methods run in interleaved order for two timed repetitions; we report their median. Timing uses untrained FunDM heads with the same architectures as the fitted heads. The original per-repeat report is archived with the code as assets/timing-data.json.
CLM's embedding and vector caches start empty for each timed pass. "Options prepared" precomputes question-independent option vectors for all 500 questions; timing covers question encoding and scoring against those cached vectors. It excludes option preparation and assumes known candidates, so it does not measure end-to-end cost for previously unseen options.
FunDM and the teacher share a prompt, averaging 216 tokens on MMLU-Pro versus 182 for CE. FunDM+1T throughput is within of FunDM. FunDM reaches and the teacher's throughput at 24 and 20 layers. On MMLU-Pro, layer 32 gives 15.8 questions/s ( the teacher). Averaging each benchmark's throughput ratio over the eight benchmarks gives for full-depth FunDM-CE and for 24-layer FunDM, relative to CLM with initially empty caches.