Manuscript Offprint
arXiv:2610.32492Accordion: Elastic-Depth Inference via Fixed-Prefix Layer Looping
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Accordion
Tsinghua University Baidu Inc.
btzhangyudong@gmail.com teresading999@gmail.com zhengkl18@163.com
dingyuchen@baidu.com zhangzhenyu07@baidu.com
Abstract
Large language models serve applications with diverse inference budgets, but training and maintaining separate models for each budget incurs substantial costs. Recent Looped Transformers enable flexible inference computation through parameter reuse, but maintaining strong performance across different inference budgets remains an open challenge. We introduce Accordion, a mixture-of-experts-based model that supports five inference budgets through fixed-prefix layer looping. Each budget follows a pre-defined execution path, while the minimum budget retains the unlooped model. Joint pretraining samples one budget per micro-batch and optimizes its next-token prediction loss without additional cross-budget consistency objectives. We further preserve these inference budgets through supervised fine-tuning and reinforcement learning, where parameter-group merging and budget-matched multi-teacher on-policy distillation integrate three domain experts into one model. After 3.6T tokens of pretraining, increasing inference depth improves Accordion-6B-A0.5B's five-category macro-average across 37 tasks by 3.01 percentage points, with the middle budget capturing 89% of this gain using half as many additional layer executions. The final model surpasses each domain expert on its corresponding task-and-budget average, while achieving strong instruction-following performance across all budgets and retaining depth-dependent gains in mathematical reasoning and code generation.
Models: Accordion-Base Accordion-Base-32K Accordion-Instruct Accordion-RL
Website: Project website
Train One Model for Five Depths
Layer executed once

Low
24 layer executions

Medium
27 layer executions
Same layer executed twice

High
30 layer executions

XHigh
33 layer executions
Ultra
36 layer executions
Figure 1: Elastic-depth inference with fixed budget paths. One set of weights serves five budgets by repeating a prefix of layers 7–18. Blue folds execute once; cream/gold pairs execute the same layer twice.
Correspondence: Zhenyu Zhang (zhangzhenyu07@baidu.com)
1 Introduction
Language-model applications require different inference budgets, but training and maintaining separate models for each budget incurs substantial costs. Elastic inference aims to address this challenge by supporting multiple compute choices within a single model. Existing approaches achieve this flexibility through nested architectures and subnetworks (Devvrit et al., 2023; Cai et al., 2024; Taghibakhshi et al., 2025, 2026), reduced execution depth (Fan et al., 2019; Schuster et al., 2022; Elhoushi et al., 2024), or input-dependent computation allocation (Raposo et al., 2024; Bae et al., 2025).
Looped Transformers provide another approach to elastic inference by repeatedly applying shared parameters to increase effective depth (Dehghani et al., 2018; Lan et al., 2019; Giannou et al., 2023). Recent work explores recurrence structures and training strategies for flexible inference computation (Geiping et al., 2025; Zhu et al., 2025; Alabdulmohsin and Zhai, 2025; Bae et al., 2025; Prairie et al., 2026). However, jointly optimizing multiple inference depths can compromise shallow-path performance, as highlighted by the one-loop tax problem (Ladhak et al., 2026). Moreover, practical language models require supervised fine-tuning and reinforcement learning, so elastic inference should remain effective throughout the training pipeline.
To address these challenges, we introduce Accordion, a mixture-of-experts (MoE) Transformer with five fixed inference paths sharing one set of weights (Figure 1). Building on layer looping from Loopie (Gao et al., 2026), Accordion repeats selected Transformer layers consecutively rather than repeating an entire model. Each budget repeats a fixed prefix within a middle window, concentrating training on the inference paths. Larger budgets add layer executions; the minimum budget retains the unlooped path. Zero-initialized residual gates control the repeated computations. During pretraining, each micro-batch uniformly samples one budget and optimizes its corresponding path with next-token prediction, without additional cross-budget consistency objectives.
We further extend Accordion to supervised fine-tuning (SFT) and reinforcement learning (RL). SFT continues to jointly optimize the same five inference budgets. For RL, we train three domain experts for instruction following, mathematical reasoning, and code generation, each supporting all five budgets. Parameter-group merging combines their updates, then multi-teacher on-policy distillation matches each teacher to the student's task domain and inference budget.
In controlled experiments with 80B training tokens, fixed-prefix layer selection achieves the lowest observed validation loss at all four looped budgets among eight evaluated strategies. Compared with independently trained budget-specific specialists, Accordion achieves validation losses within 0.003 nats at all three evaluated budgets under equal training tokens, including the unlooped configuration. We further scale Accordion to a 6B-A0.5B MoE model with 3.6T tokens of pretraining at 8K context. Increasing inference depth improves 36 of 37 benchmark scores and raises the five-category average by 3.01 percentage points. The middle budget captures 89% of this gain with half as many additional layer executions. A further 50B tokens produce Accordion-Base-32K for long-context use ( ); its full benchmark table appears in Appendix B.7.
Accordion-Instruct retains positive depth-dependent gains on most conversational benchmarks. After domain-specific RL and expert integration, Accordion-RL exceeds each domain expert on its corresponding task-and-budget average. The final model also achieves strong instruction-following performance across all five budgets, outperforming four evaluated public reference models on IFEval. Additional depth continues to improve mathematical reasoning and code generation, although the optimal budget varies across tasks.
Our contributions are:
• One model, five inference budgets. We introduce Accordion, an elastic-depth MoE Transformer that supports five inference budgets through fixed-prefix layer looping. Under equal training tokens, it closely matches budget-specific specialists at three evaluated budgets, including the unlooped path.
• Depth gains from pretraining through RL. We extend elastic-depth inference through SFT and RL, integrating three domain experts via parameter-group merging and budget-matched multi-teacher on-policy distillation. Additional depth improves base-model quality and retains benefits in mathematics and code after post-training.
• A public-data recipe at scale. We develop Accordion-Base, Accordion-Instruct and Accordion-RL using public datasets across the training pipeline, with detailed data accounting and comprehensive task-level evaluations.
Fixed Budget Paths
Budget k repeats the first k layers of the middle window (7–18).

Figure 2: Fixed budget paths with gated layer looping. Budgets select a prefix of layers 7–18 for a second execution. Both passes share weights; zero-initialized channel gates scale the second pass before residual addition. Training samples one budget per micro-batch. Inference fixes one budget per request. Blue denotes one execution; cream/gold pairs denote two.
2 Accordion
2.1 Architecture
Consider a pre-norm MoE transformer with physical layers and hidden dimension . Let be an ordered, contiguous middle window, with , and let be the budget menu. Budget repeats the prefix , with . Its path executes layer exactly
times before moving to layer . Each budget therefore defines a deterministic path with layer executions. We use , , and ; the corresponding execution counts appear in Table 44. Layers outside the window always run once, and is an ordinary unlooped MoE. The menu size and prefix mapping are evaluated in §2.2.2 and §2.2.1, respectively; the same formulation supports other predefined budget menus.
At each training micro-batch , we sample and run only for all sequences in that micro-batch. The sampled budget is shared across all data-parallel and expert-parallel workers. For the main model, each optimizer step contains one micro-batch per data-parallel worker, so one budget is shared by the entire global batch. All data-parallel and expert-parallel workers derive from a common random seed and micro-batch counter. This synchronized sampling follows Huginn (Geiping et al., 2025) and keeps MoE all-to-all communication aligned across workers without an additional synchronization message. For prediction targets, its next-token loss is
where contains the shared model weights and gates. Together with the sequence-level MoE balancing term described below, the training objective is
Here . Uniform sampling gives every supported path equal probability during training. One forward and backward pass through the sampled path provides a stochastic estimate of the joint objective, without evaluating the other paths on that micro-batch.
Each selected layer executes twice in succession, following the layer-looping structure of Loopie (Figure 2). The repeated unit is an individual layer, rather than a multi-layer block or the full model stack (Appendix Figure 19). Let , , , and denote attention, MoE, and their respective pre-normalizations. We write for the shared MoE applied to with the balancing bias of pass . For layer input , the first pass is
(4)
If , the layer returns . Otherwise, it immediately applies a second pass:
(5)
The layer returns . Its per-channel gates , are initialized to zero and excluded from weight decay. At initialization, trainable gates make the second pass an identity map. The hyperbolic tangent bounds the magnitude of each gate by one and has unit derivative at zero. Attention, experts, normalizations, and the learned router are shared across passes and budgets; gates are layer-specific and shared across budgets. We use no second-pass embedding or budget-conditioned normalization. Appendix C analyzes second-pass computation, and §2.2.4 evaluates budget-conditioned parameter variants.
The two passes apply the same learned routing function to their respective hidden states and may select overlapping sets of experts. Following the auxiliary-loss-free balancing mechanism of DeepSeek-V3 (DeepSeek-AI, 2024), we maintain separate expert-load statistics and balancing biases for the first and second passes. These pass-specific balancing states are distinct from the shared learned router weights. We retain the small sequence-level loss in Equation 3 to encourage balanced expert usage within each sequence. This term is computed for routing on both the first pass and any executed second pass within the sampled path, and requires no comparison across budgets. Routing variants are reported in §2.2.3, and budget-conditioned variants in §2.2.4. Activation recomputation uses the original sampled path and the corresponding first- or second-pass balancing state.
The user selects for each request, and every token follows the corresponding trained path with the same model weights. Each budget has a static execution graph, so depth remains fixed throughout the request. The five settings are called Low, Medium, High, XHigh, and Ultra, respectively.
Looping creates no copies of layer weights; relative to the underlying MoE, the gates add only 2md effective learned parameters, independent of the selected budget. Checkpoints allocate 2Ld gate entries across all physical layers, but gates outside the loopable window remain zero and are never used. For equal-shaped layers at a fixed sequence length, neglecting the small gating overhead, floating-point operations (FLOPs) are approximately
(6) where includes non-repeated embedding and output work. The same affine dependence applies to model training FLOPs when forward and backward costs are included at a fixed sequence length. Our uniform menu gives and hence 30 expected layer executions per micro-batch; the arithmetic cost follows Equation 6. §2.2.5 uses this expectation to match training computation to budget-specific specialists, separately from matching training tokens. During autoregressive inference, the second attention pass maintains a separate key-value (KV) cache built from its own activations. Consequently, for our equal-shaped layers, KV storage scales as relative to : at and at . The analytical costs of Accordion-6B-A0.5B are given in Table 44; measured runtime also depends on communication and kernel efficiency.
We use the fixed budget paths defined above with top-8 expert routing and a reduced-vocabulary DeepSeek-V3 tokenizer with 128,000 entries and untied input and output embeddings. Attention uses query-key layer normalization. The router applies sigmoid scores and normalizes the selected top-eight weights; pass-specific balancing biases use an update rate of .
2.2 Designing Strong Shared Paths
We use a 1.61B-parameter MoE to choose how layers and parameters should be shared across inference budgets, then test how closely one shared model matches separately trained specialists. The design comparisons address four choices: which layers to repeat, how many budgets to train, whether to share the router across passes, and whether to give each budget its own scaling parameters. All comparisons below use validation loss on the same held-out web set. Each configuration is trained once; the comparisons report its held-out validation loss. Shared models receive 80B tokens of non-repeated Nemotron-CC-v2 web data, with budgets sampled uniformly unless stated otherwise. Specialists receive the same token budget in the equal-token comparison; their token counts change only for the FLOPs-matched comparison in §2.2.5. Appendix Table 19 gives the complete architecture, optimization settings and hardware for these design studies.
2.2.1 Layer Selection
We test whether shared inference paths benefit from a fixed layer-selection rule during training or from randomizing the repeated layers across steps. The eight strategies comprise four fixed and four randomized selection rules, all evaluated at . They have the same expected training depth of 30 layer executions. At inference, fixed strategies retain their own selection rules, whereas all randomized strategies use the prefix paths of window 7–18. The comparison therefore evaluates each training rule together with its specified inference paths. Fixed selection. The fixed rules compare the location of the repeated segment. Within window 7–18, fixed prefix, fixed center and fixed suffix repeat the first, central or last k layers, respectively. Fixed center uses layers 11–13, 10–15 and 8–16 at , respectively. A fourth rule, fixed prefix (4–15), moves the window earlier while retaining prefix selection.
Randomized selection. All four randomized rules use window 7–18. Random layers uniformly samples k individual layers; random segment samples a prefix, center or suffix of length k; random blocks selects k/3 of four disjoint three-layer blocks, which need not be adjacent. These three rules repeat exactly k layers after sampling the budget. Layerwise coin uses the unlooped and fully looped paths with probability 30% each; on the remaining 40% of steps, each window layer is independently repeated with probability 0.5. This changes the training-budget distribution while preserving the same expected depth. Fixed prefix (7–18) achieves the lowest observed validation loss at all four looped budgets and the lowest five-budget mean (Figure 3). Its mean advantage over the alternatives is approximately 0.0025–0.0041 nats. This consistent ranking motivates the fixed-prefix paths used by Accordion.
2.2.2 Number of Training Budgets
We next test whether offering more inference budgets compromises the quality of the shared paths. Using the fixed-prefix rule in window 7–18, we train models with three, four or five budgets (Table 1). All three budget sets have , keeping expected training computation fixed. We compare all models at the shared endpoints, and , and compare the three- and five-budget models at ; the four-budget model is not trained at .

Figure 3: Comparison of eight layer-selection strategies. Accordion's fixed prefix over layers 7–18 is highlighted in blue. Strategies are compared at matched inference budgets.
The five-budget model has the lowest observed loss at both shared endpoints and lower loss at than the three-budget model. We therefore use five budgets to provide finer inference control at the same expected training computation.
Table 1: Comparison of training-budget sets. Validation losses are in nats; the mean uses the common endpoints . The four-budget model was not trained at . Bold marks the lowest loss in each column.
| Model | Training budgets | Mean | |||
|---|---|---|---|---|---|
| Five-budget model | |||||
| Three-budget model | |||||
| Four-budget model |
2.2.3 Router Sharing
We test whether the second pass needs a separately learned router to select experts from its updated hidden states. We compare a shared router, a separate second-pass router, and a separate router that excludes routed experts selected in the first pass. All three configurations share expert parameters and retain their respective routing rules during evaluation. The shared router achieves the lowest five-budget mean loss, improving on separate routing by 0.0013 nats and on separate routing with exclusion by 0.0017 nats (Table 2). A shared router therefore serves every pass and inference budget in Accordion.
Table 2: Second-pass routing variants. Configurations are rows and inference budgets are columns. Validation losses are in nats; bold identifies the lowest loss within each column.
| Routing | Mean | |||||
|---|---|---|---|---|---|---|
| Shared router | ||||||
| Separate router | ||||||
| Separate router + exclusion |
2.2.4 Budget-Conditioned Parameters
We test whether different inference budgets benefit from their own parameters for scaling the second-pass updates. The baseline shares both gates and normalization parameters across budgets. Two alternatives condition either the gates or the normalization scales on , leaving the other parameter type budget-independent (Table 3). Budget-conditioned gates let each budget learn its own attention and MoE residual-update scaling: becomes for . Budget-conditioned normalization scales instead multiply second-pass root-mean-square normalization (RMSNorm) outputs by . These scales start at , and the original gates are retained. The baseline with shared gates and normalization parameters achieves the lowest observed loss at every evaluated budget. We therefore retain a single budget-independent parameterization for Accordion.
Table 3: Comparison of budget-conditioned parameters. Each row identifies which parameter type is budget-conditioned; the other type remains budget-independent. Validation loss is in nats (lower is better). Bold marks the lowest loss within each column.
| Configuration | Mean | |||||
|---|---|---|---|---|---|---|
| Budget-independent gates and norms | 2.5793 | 2.5731 | 2.5703 | 2.5698 | 2.5696 | 2.5724 |
| Budget-conditioned gates | 2.5814 | 2.5761 | 2.5731 | 2.5723 | 2.5721 | 2.5750 |
| Budget-conditioned norm scales | 2.5830 | 2.5769 | 2.5735 | 2.5724 | 2.5722 | 2.5756 |
2.2.5 Comparison with Budget-Specific Specialists
We finally test how closely one shared model matches a separate model trained for each inference budget. The specialists are trained independently at fixed . At each budget, the shared model and its corresponding specialist use the same inference graph. We compare them under two resource constraints: equal training tokens hold data exposure fixed, while equal training FLOPs hold modeled training computation fixed (Figure 4). A further equal-token control tests whether allocating more training examples to the unlooped path improves its validation loss.


Accordion ♦ Specialists △·15% coverage □ Synchronous weighting
Figure 4: Shared models and budget-specific specialists. Accordion uses uniform budget sampling. Comparisons match training tokens (80B, left) or training FLOPs (right). Each specialist is trained for a single budget. The left panel also includes two controls with increased unlooped-path exposure, defined below.
Equal training tokens. Each model receives 80B training tokens. Under this constraint, Accordion achieves validation losses within 0.0030 nats of the specialists at all three evaluated budgets (Figure 4, left). One set of weights thus approximates three specialist operating points while preserving the unlooped path's quality in this comparison. The comparison addresses the one-loop tax discussed by Ladhak et al. (2026), where training for recurrent computation degrades single-pass performance. To test whether the unlooped path needs additional training exposure, a control reserves 15% of data-parallel replicas for that path. The synchronous-weighting control instead samples one common budget for all replicas, with probabilities 0.32/0.17/0.17/0.17/0.17 for , matching the coverage control's expected marginal distribution. Both controls are token-matched and average 29.1 layer executions, compared with 30 under uniform budget sampling. Uniform budget sampling yields a mean validation loss lower by 0.0067 nats than the replica-coverage control, while retaining single-pass performance without the reserved replicas.
Equal training FLOPs. Here we keep the shared model's 80B-token training run fixed and adjust the number of tokens seen by each specialist to match its expected training FLOPs. A shallower specialist can therefore receive more tokens, while a deeper specialist receives fewer. Let denote training FLOPs per token at budget . Under the approximately affine cost model in Equation 6, uniform sampling over the five budgets gives an expected cost of per token. The specialist at budget receives approximately 80B tokens. The specialist satisfies both resource constraints and is reused in the two comparisons. At this middle budget, the shared model remains close to the specialist under both matching conditions. At the largest budget, it improves on the FLOPs-matched specialist by 0.0068 nats.
2.3 Training Pipeline
Accordion-6B-A0.5B retains the same five budget paths throughout pretraining and post-training (Figure 5). General pretraining and mid-training with annealing produce Accordion-Base at 8K context; a subsequent context-extension stage produces Accordion-Base-32K (§3). Post-training comprises supervised fine-tuning (SFT) and reinforcement learning (RL) (§4). SFT produces Accordion-Instruct from Accordion-Base-32K. RL trains independent instruction-following, mathematics and code experts from Accordion-Instruct, then combines them through model merging and budget-matched multi-teacher distillation. Sections 3.2 and 4.2.2 describe stage-specific optimization, including the expert update and distillation rules.

Figure 5: Training pipeline for Accordion-6B-A0.5B. Accordion-Base is exported after 3.6T tokens at 8K context; another 50B tokens produce Accordion-Base-32K. SFT and RL continue from this extended model and retain all five budget paths. RL combines three domain experts through parameter merging and budget-matched multi-teacher distillation.
3 Pretraining
Accordion-Base turns additional layer executions into broad capability gains, with the middle budget capturing most of the improvement. We describe the training curriculum and evaluate these gains across tasks, inference costs and context lengths.
3.1 Data
We construct the pretraining curriculum from publicly released datasets covering web text, mathematics, code and reasoning. The corpus combines Nemotron pretraining collections (Su et al., 2024), MegaMath (Zhou et al., 2025), FineMath (Ben Allal et al., 2025), InfiMM-WebMath (Han et al., 2024) and StarCoder data (Li et al., 2023). The selected training pool contains 835 shards and approximately 4.68T tokens, from which we sample the 3.6T-token curriculum. Within each source category, shards are sampled across document-length strata; smaller sources are shared across stages with different data seeds. Appendix Table 11 lists source weights and expected consumption, with accounting details in Appendix B. We tokenize the data as specified in §2.1. Reasoning collections are rendered as plain text without role markers, retaining reasoning traces and their delimiters. Held-out web (Nemotron-CC v2 HQ), mathematics (FineMath-3+) and code (StarCoder Python) shards are excluded from training.
Pretraining sources

| Web (34.9%) | |
|---|---|
| Nemotron-CC HQ | (774B) |
| Nemotron-CC MQ | (481.5B) |
| Synthetic web (20.5%) | |
| Nemotron rephrasings | (739.5B) |
| Mathematics (12.3%) | |
| Nemotron-CC-Math | (134.2B) |
| MegaMath web | (165B) |
| MegaMath synthetic | (30B) |
| FineMath + InfiWebMath | (88.5B) |
| Nemotron math textbooks | (25.5B) |
|---|---|
| Reasoning (11.4%) | |
| Diverse-QA + HQ-DQA | (228B) |
| Nemotron Specialized | (118.5B) |
| Nemotron reasoning | (63B) |
| Code (20.9%) | |
| StarCoder | (238.5B) |
| Nemotron-CC-Code | (246B) |
| Nemotron Code-v2 | (255B) |
| Nemotron code concepts | (12.8B) |
Domain mix across training stages

Figure 6: Pretraining data composition and curriculum. Estimated token consumption by domain and source across the 3.6T-token curriculum, followed by 50B-token context extension. Stage bars are normalized to their token budgets; labels are rounded billions of tokens. Exact source quantities appear in Table 11.
The 3.6T-token curriculum progressively increases exposure to mathematics, code and reasoning (Figure 6). General pretraining uses 3.0T tokens, followed by 150B tokens of mid-training and 450B tokens of annealing. Mid-training introduces the Nemotron reasoning collection (Math-v2, Competitive-Programming and PrismMath) and removes the MegaMath synthetic component. Annealing keeps these source choices, shifts more weight toward mathematics, code and reasoning, and decays the learning rate. Table 11 gives the source-level proportions at each stage. The stage comparisons in §3.3.3 describe this combined curriculum and optimization schedule. The largest ratio of expected token consumption to available source tokens is approximately 1.67, excluding context-extension replay.
An additional 50B tokens extend the training context to 32K while maintaining exposure to the annealing distribution. Half of this budget comes from publicly released long documents of length 16K–128K, covering web text, code, reasoning and mathematical web text. The other half replays the annealing mixture. Appendix Table 12 gives the allocations and resulting domain proportions.
3.2 Hyperparameters
Model configuration. Our main model, Accordion-6B-A0.5B, has 6.03B total and 0.54B active parameters. Active counts describe the transformer layers in one unlooped pass and exclude the input embedding and output head; including the output head raises the active count to 0.74B. Table 5 gives its complete architecture and training configuration.
Optimization. All stages train the same five paths using the single-trajectory objective and uniform micro-batch budget sampling defined in §2.1. We optimize all model weights with AdamW (Loshchilov and Hutter, 2019), excluding second-pass gates from weight decay. The peak learning rate is , chosen from the 1.61B-parameter design studies. Table 4 details the stage-specific schedules. Training uses our layer-looping extension of Megatron-LM (Shoeybi et al., 2019), with expert parallelism within each eight-GPU node. The first three stages use 8K context and 1,024 sequences per global batch, continuing the optimizer state and step counter across stage boundaries.
Table 4: Pretraining hyperparameters by stage. All stages use 8,388,608 tokens per global batch on 512 H800 GPUs. Token budgets are nominal, warmup is measured in optimizer steps, and arrows indicate linear learning-rate decay after warmup.
| Stage | Tokens (B) | Cumulative | Context | Learning rate | Warmup / optimizer |
|---|---|---|---|---|---|
| General | 3,000 | 3.00T | 8K | , constant | 2,000 / initialize |
| Mid-training | 150 | 3.15T | 8K | , constant | 0 / continue |
| Annealing | 450 | 3.60T | 8K | 0 / continue | |
| Context extension | 50 | 3.65T | 32K | 200 / reset |
Table 5: Architecture and training configuration of Accordion-6B-A0.5B. Active parameters refer to a single unlooped forward pass and exclude the input embedding and output head. Training settings describe the 3.6T-token, 8K curriculum; Table 4 details the stage schedules and subsequent 32K context extension. WSD denotes warmup-stable-decay.
| Setting | Value |
|---|---|
| Layers / hidden size / Q / KV / head dim | 24 / 1536 / 12 / 4 / 128 |
| Routed / shared / active experts; intermediate size | 128 / 1 / 8; 384 |
| Total / active parameters; vocabulary | 6.03B / 0.54B; 128,000 |
| Loopable window / budgets | 7–18 / {0, 3, 6, 9, 12} |
| Training tokens / context / tokens per step | 3.6T / 8K / 8.39M |
| Peak LR / final LR / schedule | / 10% of peak / WSD |
| Warmup / decay | 2,000 steps / final 12.5% |
| AdamW / weight decay / gradient clipping | (0.9, 0.95) / 0.1 / 1.0 |
| Weight initialization | std. 0.006, truncated at |
| Gates | zero initialization, no weight decay |
| MoE balancing | per-pass bias; sequence auxiliary loss |
| Precision / GPUs | bfloat16 / 512× H800 |
Context-extension settings. Context extension starts from the annealing weights but resets the optimizer and step counter. With the budget-sampling seed unchanged, resetting the counter also restarts the budget sequence used at the beginning of pretraining. It retains RoPE (Su et al., 2021) base 500,000 and uses context parallelism of degree 2, one sequence per micro-batch and 256 sequences per global batch. The run lasts 5,960 updates under the schedule in Table 4. Appendix Table 44 separates calculated compute and KV costs from measured latency, throughput and peak memory at every inference budget.
3.3 Evaluation
We evaluate all five budgets on the same 37 tasks, using identical configurations and examples. The primary aggregate groups all tasks into five categories: knowledge and QA, common sense, reasoning, mathematics and code. For task score , task set in category , and category set , we compute
Thus each category receives equal weight, regardless of its number of tasks. The summary in Figure 7 applies this definition to the displayed scores of all 37 tasks in Table 6. Training trajectories and paired uncertainty estimates use the original 18-task core suite; Appendix Table 14 defines its task membership and the auxiliary 34-task scope.
We use the Language Model Evaluation Harness (Gao et al., 2023) (version 0.4.13) with a Hugging Face backend adapted to layer looping. Scoring uses strict matching for BBH, mathematical-equivalence checking for mathematics
Table 6: Base-model comparison across all 37 benchmarks. All models follow the protocol in Appendix B.2. Accordion-Base uses the 3.6T-token, 8K checkpoint. Category and overall scores appear in Figure 7.
| Benchmark | Accordion-Base | Qwen3 | Qwen3 | OLMoE | Ouro | ||||
|---|---|---|---|---|---|---|---|---|---|
| k=0 | k=3 | k=6 | k=9 | k=12 | 0.6B | 1.7B | 0125 | 1.4B | |
| Pretraining tokens | 3.6T | 36T | 36T | 5.1T | 7.7T | ||||
| Knowledge and QA | |||||||||
| MMLU | 58.2 | 59.8 | 60.9 | 60.8 | 60.9 | 52.5 | 62.7 | 55.2 | 67.5 |
| TriviaQA | 51.9 | 52.4 | 52.4 | 52.3 | 52.4 | 20.0 | 36.3 | 62.7 | 43.8 |
| Natural Questions | 19.1 | 19.3 | 19.6 | 19.5 | 19.6 | 7.5 | 13.8 | 25.8 | 17.2 |
| SciQ | 95.5 | 95.4 | 95.5 | 95.7 | 95.6 | 93.6 | 96.1 | 93.9 | 95.8 |
| MMLU (cloze)† | 43.8 | 44.9 | 45.2 | 45.3 | 45.4 | 36.6 | 43.5 | 43.7 | 45.1 |
| MMLU-Pro† | 32.3 | 34.1 | 35.7 | 35.8 | 36.0 | 25.7 | 37.5 | 18.3 | 48.9 |
| DROP | 4.5 | 4.6 | 4.7 | 4.8 | 4.8 | 4.6 | 15.3 | 32.1 | 4.7 |
| SQuAD | 56.1 | 56.6 | 57.4 | 57.2 | 57.2 | 56.5 | 59.3 | 42.9 | 57.1 |
| CoQA | 77.5 | 78.9 | 78.9 | 79.3 | 79.4 | 73.9 | 79.1 | 71.8 | 81.5 |
| RACE | 38.9 | 37.0 | 37.8 | 37.2 | 37.8 | 35.1 | 39.5 | 37.9 | 38.3 |
| LAMBADA | 63.9 | 64.7 | 65.5 | 65.8 | 65.9 | 53.8 | 63.1 | 70.5 | 65.1 |
| Common sense | |||||||||
| ARC-C | 58.7 | 58.5 | 59.5 | 59.9 | 60.2 | 45.0 | 55.4 | 58.2 | 60.0 |
| ARC-E | 83.5 | 83.9 | 84.0 | 83.9 | 84.1 | 74.7 | 82.2 | 82.5 | 84.0 |
| CommonsenseQA | 63.3 | 65.7 | 66.9 | 67.0 | 66.8 | 62.9 | 75.6 | 65.6 | 77.0 |
| HellaSwag | 74.3 | 74.9 | 75.3 | 75.3 | 75.3 | 53.6 | 67.1 | 79.7 | 74.4 |
| WinoGrande | 68.3 | 69.1 | 69.1 | 69.5 | 69.4 | 59.8 | 66.1 | 71.9 | 70.8 |
| OpenBookQA | 41.4 | 42.4 | 43.2 | 43.6 | 43.6 | 34.2 | 38.4 | 44.4 | 41.4 |
| BoolQ | 78.1 | 78.2 | 79.1 | 79.1 | 79.1 | 69.6 | 78.9 | 70.2 | 79.9 |
| PIQA | 77.8 | 78.0 | 78.7 | 78.6 | 78.3 | 69.9 | 75.8 | 79.7 | 78.6 |
| Social IQa | 44.7 | 45.1 | 45.9 | 45.8 | 45.9 | 43.3 | 48.5 | 47.2 | 42.9 |
| Reasoning | |||||||||
| BBH | 54.8 | 58.6 | 60.0 | 61.0 | 60.8 | 40.8 | 53.3 | 32.6 | 70.8 |
| MuSR | 37.2 | 36.9 | 38.6 | 38.8 | 40.2 | 34.7 | 44.3 | 35.5 | 39.0 |
| AGIEval-en | 25.5 | 26.7 | 27.6 | 27.8 | 27.9 | 26.2 | 32.5 | 25.5 | 34.9 |
| Mathematics | |||||||||
| GSM8K | 53.1 | 58.0 | 59.4 | 61.7 | 61.3 | 59.2 | 71.3 | 51.1 | 78.6 |
| MATH (5,000) | 39.8 | 41.0 | 42.2 | 42.2 | 42.4 | 28.5 | 38.9 | 16.9 | 22.0 |
| MATH500† | 38.2 | 40.8 | 41.4 | 40.2 | 40.6 | 31.8 | 39.4 | 17.2 | 21.4 |
| GSM8K-Platinum | 57.6 | 62.5 | 65.8 | 66.6 | 65.6 | 62.5 | 75.8 | 53.1 | 80.9 |
| GSM-Plus-mini | 37.7 | 38.3 | 41.1 | 41.5 | 41.5 | 33.2 | 50.4 | 33.8 | 54.9 |
| MathQA | 46.7 | 47.4 | 48.1 | 48.0 | 48.0 | 36.8 | 45.2 | 28.0 | 49.8 |
| Multi-digit arithmetic | 23.3 | 28.9 | 31.5 | 29.3 | 28.6 | 87.3 | 96.5 | 43.7 | 92.2 |
| ASDiv | 9.8 | 11.2 | 11.7 | 12.7 | 12.2 | 0.0 | 7.9 | 0.4 | 2.6 |
| Code | |||||||||
| HumanEval | 48.8 | 50.0 | 51.2 | 53.7 | 53.1 | 28.7 | 50.6 | 11.6 | 35.37 |
| HumanEval+ | 43.9 | 45.1 | 46.3 | 48.8 | 47.0 | 22.6 | 43.9 | 11.0 | 32.32 |
| MBPP | 46.6 | 50.2 | 50.2 | 50.4 | 51.8 | 39.0 | 55.6 | 21.0 | 58.0 |
| MBPP+ | 60.6 | 64.8 | 66.1 | 66.1 | 66.4 | 54.5 | 70.6 | 29.9 | 76.7 |
| CRUXEval output | 23.1 | 24.8 | 25.1 | 25.4 | 25.3 | 16.1 | 21.8 | 13.1 | 27.5 |
| CRUXEval input | 34.9 | 38.6 | 41.3 | 40.9 | 40.6 | 29.1 | 34.3 | 19.4 | 41.8 |
Bold/underlining: row best/second-best; fills mark Accordion ranks (ties included). Diagnostics. MATH variants remain separate. Ouro HumanEval/HumanEval+: trailing prompt whitespace removed; corrected scores used throughout.
and greedy pass@1 for code, whose tests run in isolated CPU subprocesses. Appendix Table 13 specifies prompting and scoring for each task. Appendix B.2 gives the ranking conventions and statistical interpretation.
A source-level overlap audit identifies potential benchmark contamination in Diverse-QA. Reported scores retain the full test sets, including flagged questions; Appendix B gives the audit criteria, counts and limits.
3.3.1 General Capabilities and Model Comparison
Across all five inference budgets, Accordion-Base outperforms all four evaluated references on full MATH and ASDiv, with peak margins of 3.5 and 4.8 percentage points, respectively (Table 6). Increasing the budget from k = 0 to k = 12 also improves all five category averages (Figure 7). The largest gains occur in code, reasoning and mathematics. Accordion ranks second in knowledge and QA and common sense at k = 12, and first in code at k = 9 (Figure 7).
The reference models cover complementary parameter scales and architectures. Qwen3-0.6B is a nearby dense reference in active size, whereas OLMoE-0125 is closer in total size and shares the MoE architecture. We reevaluate Qwen3-0.6B/1.7B (Qwen Team, 2025), OLMoE-0125 (Muennighoff et al., 2024) and Ouro-1.4B (Zhu et al., 2025) on the complete suite. Accordion reaches these operating points after 3.6T pretraining tokens; Qwen3-1.7B uses 36T. Training exposure for all models is documented in Table 17, with Accordion's computational costs in Appendix F.1. Post-trained models are evaluated separately against four conversational references in Tables 7 and 9.

Common sense
Knowledge and QA
Reasoning

Mathematics
Code

Figure 7: Overall and category-level performance of Accordion-Base. All five budgets and four references follow Appendix B.2; Ouro’s corrected HumanEval scores enter both Code and Overall. Category scores average all benchmarks in their corresponding table group; Overall equally weights the five category means, following Equation 7. Blue bars denote Accordion-Base at k = 0, 3, 6, 9, 12; gray bars denote Qwen3-0.6B, Qwen3-1.7B, OLMoE-1B-7B-0125 and Ouro-1.4B, from left to right. Panels use separate y-axis ranges; break marks indicate omitted zero baselines. Table 6 retains the complete benchmark results.
3.3.2 Effect of the Inference Budget
With model weights, evaluation tasks and examples fixed, increasing the loop budget from k = 0 to k = 12 raises the 37-task aggregate from 47.05 to 50.06 (+3.01 percentage points) and improves 36 of 37 task scores. The gains are largest in reasoning, mathematics and code (Figure 9). The intermediate budget retains 89% of the endpoint gain, while time per output token increases by approximately 21–24% across measured workloads. This budget offers most of the quality improvement at a smaller inference cost (Figure 8); complete runtime measurements appear in Table 44.

8K / batch 1 16K / batch 1 32K / batch 1
8K / batch 8 16K / batch 8 32K / batch 8

Figure 8: Quality and inference cost across six workloads. The quality panel uses the 37-task five-category aggregate versus time per output token; other panels report time to first token, batch decoding throughput and peak allocated GPU memory. Runtime uses Accordion-RL on one H800, averaging two nodes' measurements; quality is evaluated separately. TTFT and throughput use logarithmic axes; memory uses separate batch-1 and batch-8 ranges. Measurement details appear in Table 44.
Paired uncertainty estimates for the original 18-task core suite are reported separately in Appendix Table 18. The five budgets provide distinct operating points for different workloads (Figure 9). Both HumanEval variants peak at k = 9, as does GSM8K, whereas MBPP+ reaches its highest score at k = 12.
Additional depth also improves next-token prediction on held-out web text, mathematics and Python code. Loss decreases monotonically across all five budgets, with capturing 89–90% of the endpoint reduction (Appendix Table 15). These matched-token evaluations use the same Accordion-Base checkpoint as the benchmark comparison; Appendix B.3 gives the protocol.
3.3.3 How Budget Gains Develop during Training
The advantage of looping emerges before post-training and persists across the pretraining curriculum. All four looped budgets outperform k = 0 at every evaluated checkpoint (Figure 10). On this 18-task core aggregate, the endpoint advantage grows from 1.53 points early in training to 3.74 points at the end of annealing. Annealing improves all paths while preserving the benefit of additional inference computation.
3.3.4 Long-Context Performance
On Accordion-Base-32K, additional depth yields larger gains on longer contexts. On the RULER (Hsieh et al., 2024) mean, increasing the budget from k = 0 to k = 12 adds 0.72 points at 4K and 5.47 points at 32K (Figure 11). At 32K, variable tracking and multi-key retrieval benefit most from the added computation (Appendix Table 25). The five-budget interface adapts to context-dependent compute needs. At 16K, k = 3 captures nearly all of the endpoint gain; at 32K, larger budgets unlock further gains through k = 9. Appendix Tables 23–25 provide complete scores, paired gains and task-level results. The evaluation protocol and consistency checks are described in Appendix B.
The complete general-capability benchmark results for Accordion-Base-32K appear in Appendix Table 21.
Loop budget
| Knowledge / QA | 3 | 6 | 9 | 12 |
|---|---|---|---|---|
| MMLU | +1.5 | +2.7 | +2.5 | +2.6 |
| TriviaQA | +0.5 | +0.6 | +0.4 | +0.6 |
| Natural Questions | +0.2 | +0.5 | +0.4 | +0.5 |
| SciQ | -0.1 | 0.0 | +0.2 | +0.1 |
| MMLU (cloze)† | +1.1 | +1.4 | +1.5 | +1.6 |
| MMLU-Pro† | +1.8 | +3.4 | +3.5 | +3.7 |
| DROP | +0.1 | +0.2 | +0.3 | +0.3 |
| SQuAD | +0.5 | +1.3 | +1.1 | +1.1 |
| CoQA | +1.4 | +1.5 | +1.8 | +1.9 |
| RACE | -1.8 | -1.1 | -1.6 | -1.1 |
| LAMBADA | +0.8 | +1.6 | +1.9 | +2.0 |
Loop budget
| Reasoning | 3 | 6 | 9 | 12 |
|---|---|---|---|---|
| BBH | +3.8 | +5.1 | +6.2 | +6.0 |
| MuSR | -0.3 | +1.4 | +1.6 | +3.0 |
| AGIEval-en | +1.2 | +2.1 | +2.3 | +2.4 |
| Mathematics | 3 | 6 | 9 | 12 |
|---|---|---|---|---|
| GSM8K | +4.9 | +6.4 | +8.6 | +8.3 |
| MATH (5,000) | +1.2 | +2.4 | +2.4 | +2.6 |
| MATH500† | +2.6 | +3.2 | +2.0 | +2.4 |
| GSM8K-Platinum | +4.9 | +8.3 | +9.0 | +8.0 |
| GSM-Plus-mini | +0.6 | +3.4 | +3.8 | +3.8 |
| MathQA | +0.8 | +1.4 | +1.3 | +1.3 |
| Multi-digit arithmetic | +5.6 | +8.1 | +5.9 | +5.3 |
| ASDiv | +1.4 | +2.0 | +3.0 | +2.4 |
| Common sense | 3 | 6 | 9 | 12 |
|---|---|---|---|---|
| ARC-C | -0.2 | +0.8 | +1.2 | +1.4 |
| ARC-E | +0.4 | +0.5 | +0.4 | +0.6 |
| CommonsenseQA | +2.4 | +3.6 | +3.7 | +3.5 |
| HellaSwag | +0.6 | +1.0 | +1.0 | +1.0 |
| WinoGrande | +0.8 | +0.8 | +1.3 | +1.1 |
| OpenBookQA | +1.0 | +1.8 | +2.2 | +2.2 |
| BoolQ | +0.1 | +1.0 | +1.0 | +1.0 |
| PIQA | +0.2 | +0.9 | +0.8 | +0.5 |
| Social IQa | +0.5 | +1.2 | +1.1 | +1.2 |
| Code | 3 | 6 | 9 | 12 |
|---|---|---|---|---|
| HumanEval | +1.2 | +2.4 | +4.9 | +4.3 |
| HumanEval+ | +1.2 | +2.4 | +4.9 | +3.1 |
| MBPP | +3.6 | +3.6 | +3.8 | +5.2 |
| MBPP+ | +4.2 | +5.6 | +5.6 | +5.8 |
| CRUXEval output | +1.6 | +2.0 | +2.3 | +2.1 |
| CRUXEval input | +3.7 | +6.4 | +6.0 | +5.7 |

Figure 9: Benchmark gains across inference budgets. Accordion-Base gains over , in percentage points, for all 37 benchmarks. The baseline column is identically zero and omitted. All four non-baseline budgets share one linear color scale; marks report-only tasks. Absolute scores appear in Table 6; category means appear in Figure 7.
General capabilities

Within-checkpoint gains

Figure 10: Performance and budget gains across training. 18-task core aggregates through the 8K curriculum (left) and gains over each checkpoint's score (right). Checkpoints are equally spaced, with cumulative token counts labeled; horizontal distance does not represent token exposure. Gains use rounded scores.


Figure 11: Long-context performance of Accordion-Base-32K on RULER. Scores average 13 tasks with 500 examples per task and context length. Gains over k = 0 use task-stratified paired bootstrap 95% confidence intervals (10,000 resamples). Full scores and endpoint intervals appear in Table 23.
4 Post-Training
Post-training equips Accordion with conversational reasoning and stronger instruction following while preserving all five inference budgets. Supervised fine-tuning (SFT) produces Accordion-Instruct; domain-specific reinforcement learning (RL) and expert consolidation produce Accordion-RL.
4.1 Supervised Fine-Tuning
Accordion-Instruct supports conversational reasoning at all five inference budgets. Under the primary sampled evaluation, increasing the budget from k = 0 to k = 12 improves nine of ten task scores, with the largest gains on competition mathematics and code generation. The same SFT weights support every budget and initialize all three RL experts.
4.1.1 Data
We fine-tune Accordion-Base-32K on publicly released datasets, with an emphasis on mathematics and code. Training consumes 71.7B input tokens, of which 68.5B contribute to the masked training loss. Mathematics and code examples receive one epoch; dialogue, instruction-following, Exercism/SQL and safety examples receive two. Figure 12 summarizes the mixture, and Table 32 gives source-level token counts and epoch allocations. The sources include Nemotron-SFT-Math-v3 (NVIDIA, 2026), Nemotron-SFT-Competitive-Programming-v2 (NVIDIA, 2025f), and Nemotron instruction-following/chat (NVIDIA, 2025e,b) and safety (NVIDIA, 2025g) collections. We also use OpenR1-Math-220k (Open R1 Team, 2025), chain-of-thought traces from OpenMathReasoning (Moshkov et al., 2025), code examples from AceReason-1.1-SFT (Liu et al., 2025), and correct solutions from Dolci-Think-SFT-Python (Team Olmo et al., 2025).
We exclude solutions requiring tool execution and sequences longer than 32K tokens, while retaining multiple solutions to the same problem. Reasoning examples continue the format introduced by the Nemotron reasoning data during mid-training: <think> and </think> enclose the reasoning trace before the final answer. Conversations without reasoning receive a /no_think system instruction. We pack conversations into 32K-token sequences without truncation; Appendix D describes packing and token accounting. To reduce benchmark overlap, we filter conversations against GSM8K, full MATH, HumanEval, MBPP and AIME 2024. A conversation is removed when its user messages match at least 20% of a test question's non-template 13-grams, removing approximately 19,000 conversations in total. We reserve 0.5% of examples for validation using a split by problem hash, so different solutions to the same problem cannot appear in both training and validation.

Figure 12: SFT data composition. Category and source shares use packed input tokens after applying training epochs, totaling 71.734B; 68.5B carry training loss. Validation is excluded. B/M denote billion/million tokens. Exact source counts appear in Table 32.
4.1.2 Hyperparameters
SFT starts from Accordion-Base-32K and trains all five paths using the uniform micro-batch budget sampling defined in §2.1. The global batch contains 256 packed 32K-token sequences. Loss is averaged over assistant tokens, including the final end-of-sequence (EOS) token. Training runs for 8,614 steps. The learning rate rises to over 200 warmup steps, then follows a cosine schedule to . Appendix D gives the batch and loss configuration.
4.1.3 Evaluation
We evaluate Accordion-Instruct on ten benchmarks at all five inference budgets, using a common conversational protocol that also supports the matched RL comparison. Eight tasks have public-model comparisons (Table 7); the full suite additionally includes IFBench and LiveCodeBench (Jain et al., 2024). The primary evaluation uses vLLM with temperature and top-p = 0.95. We generate one response per problem, except for AIME (Mathematical Association of America, n.d.), which averages 16 sampled responses per problem. Appendix D specifies the common response limits and a matched comparison with greedy decoding. For responses containing a reasoning block, we score the text after the last closing </think> tag; a missing closing tag receives zero. Responses without reasoning are scored in full. IFEval (Zhou et al., 2023) and IFBench (Pyatkin et al., 2025) use strict prompt-level accuracy, MMLU-Redux (Gema et al., 2024) uses answer-letter accuracy, and code tasks use pass@1. IFEval is scored serially, with language detection and Python randomness seeded to zero.
Additional depth improves Accordion-Instruct’s mathematical reasoning and code generation, with the largest gains on competition mathematics and LiveCodeBench (Figure 13). The complete sampled results appear alongside the matched RL results in Appendix Table 38. Appendix Table 34 includes greedy decoding and paired uncertainty intervals for the change from k = 0 to k = 12. Accordion-Instruct exceeds Qwen3-1.7B on HumanEval+ at k = 12, MBPP+ at k = 6 and AIME 2025 at k = 9 (Table 7). On HumanEval+, the margin is 2.44 percentage points. The AIME 2025 comparison also illustrates how a larger budget can change a model’s relative standing while keeping its weights fixed. All models use their native chat templates with the common sampling and scoring settings; OLMoE retains its native 4K context limit, while the others use 32K. Appendix D specifies the reference checkpoints, training stages and common evaluation protocol.
The five paths offer task-specific operating points: AIME 2024 reaches its highest sampled score at k = 12, AIME 2025 at k = 9 and MBPP+ at k = 6 (Figure 13). Appendix D compares greedy and sampled decoding and reports response-completion diagnostics.
Table 7: Accordion-Instruct comparison with public post-trained models (%). Reference checkpoints (left to right): Qwen3-0.6B/1.7B, OLMoE-1B-7B-0125-SFT and Ouro-1.4B-Thinking. Bold/underlining identify best/second-best among the nine settings in each row, including ties; category-colored fills highlight Accordion's first/second places. All models use the common sampling and scoring protocol with native chat templates; OLMoE uses 4K context and the others 32K. AIME averages 16 responses per problem; code uses pass@1.
| Benchmark | Accordion-Instruct | Qwen3 0.6B | Qwen3 1.7B | OLMoE SFT | Ouro 1.4B | ||||
|---|---|---|---|---|---|---|---|---|---|
| Knowledge and instruction following | |||||||||
| IFEval | 62.11 | 64.88 | 65.99 | 63.40 | 60.07 | 62.85 | 71.35 | 55.64 | 48.24 |
| MMLU-Redux | 60.88 | 63.47 | 65.82 | 66.17 | 65.16 | 57.69 | 74.84 | 14.02 | 70.28 |
| Mathematics | |||||||||
| GSM8K | 83.40 | 85.67 | 88.78 | 87.72 | 88.63 | 79.45 | 90.14 | 35.86 | 92.42 |
| MATH500 | 83.40 | 84.80 | 87.40 | 86.80 | 89.20 | 72.80 | 89.20 | 13.60 | 91.20 |
| AIME 2024 | 30.00 | 34.79 | 39.58 | 43.54 | 43.75 | 12.08 | 44.58 | 0.21 | 52.08 |
| AIME 2025 | 26.88 | 28.96 | 32.92 | 36.88 | 31.88 | 16.25 | 34.58 | 0.21 | 41.25 |
| Code | |||||||||
| HumanEval+ | 79.88 | 78.05 | 79.27 | 79.88 | 81.71 | 46.34 | 79.27 | 33.54 | 85.98 |
| MBPP+ | 69.58 | 67.72 | 73.02 | 70.90 | 72.75 | 43.65 | 70.90 | 30.42 | 75.40 |


Loop budget
Figure 13: SFT gains over the unlooped budget. Score differences from under the sampled conversational protocol. AIME averages 16 responses per problem; other tasks use one. Absolute scores and paired intervals appear in Table 34.
4.2 Reinforcement Learning
Accordion-RL improves instruction following at every inference budget and combines the capabilities of three domain experts. It exceeds all four evaluated public references on IFEval at every budget and exceeds each of its own teachers on the corresponding domain average. Training proceeds through domain-specific RL, model merging and budget-matched multi-teacher on-policy distillation (MOPD).
4.2.1 Data
We prepare separate instruction-following, mathematics and code pools for expert training, then sample equally from these pools for distillation. All sources are publicly released problem collections (Appendix Table 35). Instruc-tion following (IF) combines Nemotron-Cascade-RL-Instruction-Following, Nemotron-RL-instruction_following and its structured-output collection (NVIDIA, 2025a,c,d). Mathematics combines the OpenMathReasoning RL release, OpenR1-Math-220k (Open R1 Team, 2025), AceReason-Math, the AoPS subset of Nemotron-Math-v2 and Nemotron-Cascade-RL-Math. Code uses the competitive-coding and OpenCodeReasoning subsets of Nemotron-RL-coding-competitive_coding. We normalize and deduplicate prompts, remove evaluation overlap, filter by difficulty and verify code examples. Table 8 gives the resulting expert pools and the balanced distillation sample. During MOPD, the student generates its own responses to the sampled prompts; the corresponding RL expert supplies token-level supervision.
Table 8: Expert training pools and balanced MOPD sampling. Counts are prompts. MOPD samples equally from the three final expert pools; the student generates its own responses under domain- and budget-matched expert supervision.
| Domain | Expert pool (prompts) | MOPD sample (prompts) | MOPD share |
|---|---|---|---|
| Mathematics | 181,405 | 19,200 | 1/3 |
| Code | 21,679 | 19,200 | 1/3 |
| Instruction following | 80,291 | 19,200 | 1/3 |
| Total | 283,375 | 57,600 | 1 |
4.2.2 Hyperparameters
The RL pipeline first trains three domain experts, then merges their parameter updates to initialize one student, and finally distills their predictions into that student. Every expert and the final student retain all five inference paths.
Expert training. The three branches start from Accordion-Instruct and optimize instruction following, mathematics and code with group relative policy optimization (GRPO) and DAPO-style training (Shao et al., 2024; Yu et al., 2025). Each prompt group is assigned a budget from {0, 3, 6, 9, 12} by hashing its identifier (MD5 modulo five), giving an approximately uniform allocation. All responses in the group use that budget. A rollout batch can contain all five budgets; groups are partitioned by budget and each nonempty partition receives a separate optimizer update, with the budget order shuffled each training step. Expert-balancing biases remain frozen. The IF branch uses an 8,192-token response limit and a soft overlength penalty; mathematics and code allow 28,672 response tokens within the 32K context window.
Model merging. We use task arithmetic (Ilharco et al., 2023) to combine expert parameter changes relative to the shared SFT initialization, with coefficients that vary by parameter group:
where indexes the three training domains and indexes a parameter group. For attention, shared MoE experts, loop gates and normalization, we use coefficient 1 for the IF expert and 0.5 for each of the code and mathematics experts. The remaining trainable parameters use unit coefficients, while balancing biases stay fixed at their SFT values. The resulting initializes the student; §4.2.4 compares merge variants.
Budget-matched distillation. MOPD trains the merged student on its own generated responses, using a domain expert's token probabilities as supervision. For each response, the teacher is chosen by prompt domain and evaluated at the same loop budget as the student. Only the token-level distillation signal contributes to the objective; task reward is monitored during training. Appendix E.5 gives the rollout configuration, training signal and clipping settings.
Training dynamics and model selection. Expert selection uses held-out domain validation and entropy-based stopping; Appendix Table 36 reports the selected steps and validation scores. The final student, Accordion-RL, is


IF training reward
MOPD task reward

Distillation objective
Figure 14: Expert training improves validation scores; distillation reduces teacher–student discrepancy. Top row: expert validation with two responses per problem at T = 0.6 (512 IF/math problems; 387 code problems). Bottom row: IF training reward, MOPD task reward and distillation loss. For IF training reward, solid curves are trailing five-step means over faint raw observations. Dotted lines mark the selected IF/math/code steps 130/30/32 and final MOPD step 10. Each curve represents one run.
selected after ten distillation steps using downstream comparisons with later steps. Appendix E.5 specifies checkpoint selection and the corresponding uncertainty estimates. All subsequent evaluations use the same Accordion-RL weights at every inference budget. Expert training and distillation contribute complementary improvements (Figure 14): expert training raises held-out domain validation scores, while token-level distillation reduces teacher–student discrepancy and raises monitored task reward. Appendix Table 37 summarizes these changes.
4.2.3 Evaluation
To measure the change from SFT to RL at each inference budget, we evaluate the same ten benchmarks with the same examples, generation settings and scoring procedures used for the sampled SFT evaluation in §4.1.3. The selected Accordion-RL checkpoint uses this protocol at all five budgets. Appendix E.3 provides the complete matched scores and group-mean changes.
Accordion-RL exceeds the four evaluated public references on IFEval at every inference budget, with a margin of at least 16.64 percentage points over the strongest reference (Table 9). It also achieves the highest HumanEval+ score among the evaluated settings at k = 6 and narrowly exceeds Qwen3-1.7B on MATH500 at k = 12. Relative to matched SFT, instruction-following and knowledge gains persist across the entire budget range: all 15 task–budget comparisons on IFEval, IFBench and MMLU-Redux show higher scores after RL (Appendix Table 38).
The largest average gains over SFT occur on IFBench and IFEval, followed by MMLU-Redux. Figure 15 compares the matched SFT and RL scores across all five budgets; Appendix Table 38 gives the exact values. Beyond instruction following, RL improves AIME 2025 at k = 12 and both HumanEval+ and LiveCodeBench at k = 6.
Table 9: RL comparison with public post-trained models (%). Reference checkpoints (left to right): Qwen3-0.6B/1.7B, OLMoE-1B-7B-0125-SFT and Ouro-1.4B-Thinking. Bold/underlining identify best/second-best among the nine settings in each row, including ties; category-colored fills highlight Accordion's first/second places. All models use the common sampling and scoring protocol with native chat templates; OLMoE uses 4K context and the others 32K. AIME averages 16 responses per problem; code uses pass@1.
| Benchmark | Accordion-RL | Qwen3 | Qwen3 | OLMoE | Ouro | ||||
|---|---|---|---|---|---|---|---|---|---|
| k=0 | k=3 | k=6 | k=9 | k=12 | 0.6B | 1.7B | SFT | 1.4B | |
| Knowledge and instruction following | |||||||||
| IFEval | 87.99 | 88.91 | 89.83 | 89.83 | 89.83 | 62.85 | 71.35 | 55.64 | 48.24 |
| MMLU-Redux | 70.98 | 73.68 | 74.13 | 75.18 | 74.77 | 57.69 | 74.84 | 14.02 | 70.28 |
| Mathematics | |||||||||
| GSM8K | 84.15 | 87.34 | 88.63 | 89.54 | 89.16 | 79.45 | 90.14 | 35.86 | 92.42 |
| MATH500 | 83.80 | 84.80 | 88.60 | 89.60 | 89.80 | 72.80 | 89.20 | 13.60 | 91.20 |
| AIME 2024 | 34.58 | 39.79 | 40.83 | 45.21 | 45.21 | 12.08 | 44.58 | 0.21 | 52.08 |
| AIME 2025 | 27.92 | 32.71 | 36.88 | 35.83 | 36.67 | 16.25 | 34.58 | 0.21 | 41.25 |
| Code | |||||||||
| HumanEval+ | 79.88 | 78.05 | 86.59 | 82.93 | 84.15 | 46.34 | 79.27 | 33.54 | 85.98 |
| MBPP+ | 69.58 | 71.43 | 71.43 | 72.49 | 73.81 | 43.65 | 70.90 | 30.42 | 75.40 |
LiveCodeBench also has substantially fewer truncated responses after RL. Appendix Figure 23 distinguishes this change from accuracy among completed responses.

Figure 15: SFT and RL performance across inference budgets. Accordion-Instruct and Accordion-RL use matched sampling and scoring on all ten tasks. Exact scores appear in Appendix Table 38.
Increasing Accordion-RL's budget from to improves all four mathematics tasks and all three code tasks. Paired endpoint intervals also support gains on GSM8K, MATH500, MBPP+, LiveCodeBench and MMLU-Redux (Appendix Table 39). Budget selection exposes task-specific operating points: LiveCodeBench peaks at , IFBench at and MATH500 at (Appendix Table 38). A single model therefore supports several useful quality-cost choices.
4.2.4 Discussion
Accordion-RL consolidates the three experts into one model and surpasses each teacher on its corresponding domain average, with paired 95% intervals excluding zero (Figure 16; Appendix Table 42). Each comparison averages task differences equally within each budget and then across all five budgets.

Figure 16: One student exceeds each domain expert. Blue bars identify the final Accordion-RL model after grouped merging and MOPD. Gains average task differences relative to each domain expert, then average over budgets; error bars are paired bootstrap 95% intervals. IF, code and mathematics contain two, three and four tasks; MMLU-Redux is excluded.
Model merging and distillation make complementary contributions to expert consolidation. Scaling the code and mathematics updates in shared components improves mathematics relative to unit-weight merging while retaining gains over the instruction-following and code experts. Budget-matched distillation adds a further 2.30 points to the mathematics average over this grouped initialization, yielding gains over all three domain experts. Appendix E.4 compares the merge variants and reports the integration gains; Appendix E.5 specifies distillation and model selection.
5 What Changes in the Second Pass?
Accordion reuses weights while changing both the experts selected and the residual updates written into the hidden state. The effects of these updates also depend on which neighboring repetitions remain. Activation measurements and paired interventions show how shared parameters support distinct computations along the elastic-depth paths.
We probe Accordion-Base-32K at on 1,800 held-out documents, equally divided among web text, mathematics and code, with 1,024 targets per document. An intervention changes second-pass computation and recomputes all downstream activations. We report ; a positive value means worse prediction on the same targets. Appendix C gives the controls, complete layerwise results and statistical protocol.
5.1 Shared Weights Support Input-Dependent Expert Selection
The second pass selects substantially different experts at specific layers. Layer 9 retains only 1.52 of its eight routed experts on average, and most tokens share at most one expert between passes. Layers 7, 8 and 11 also switch extensively, whereas the remaining repeated layers largely reuse their first-pass selections (Figure 17).
The updated input drives this change. Changing the balancing bias alone largely preserves expert selection; changing the input with the first-pass bias reproduces actual overlap to within 0.20 experts. At layer 9, fixing the second-pass expert set to its first-pass selection incurs nearly the same NLL penalty as removing the entire second-pass MoE write.



Figure 17: Input-driven expert switching contributes to prediction. Left, mean overlap under actual routing, input-only and bias-only controls; independent uniform top-eight draws from 128 experts have expected overlap 0.5. Center, token-level overlap distributions for all twelve layers. Right, fixing first-pass expert sets versus removing second-pass MoE writes. Counts exclude the shared expert. Curves show point estimates; definitions and selected intervals are in Appendix C.
5.2 Repeated Layers Write Distinct Updates
Repeated layers preserve the residual-stream direction while producing substantial, differently directed updates. In layers 7–12, gated second-pass MoE writes remain comparable in size to first-pass writes but are nearly orthogonal to them (Figure 18). Attention writes also change direction, while residual-stream cosines stay above 0.967 across the repeated window.


Figure 18: Shared parameters produce distinct residual updates. Left, second-pass write norms relative to first-pass norms, with second-pass gates applied; the dashed line denotes equal magnitude. Right, cross-pass cosines of attention writes, MoE writes and residual streams. Residual streams remain closely aligned while attention and MoE writes change direction. Measurements average per-token quantities within each document and then across documents. Accordion-Base-32K, k = 12.
Even tokens routed to the same eight experts across passes receive distinct outputs, showing that expert reuse also supports input-dependent computation. Appendix C.1 gives the conditional measurements and sampling definition.
Expert reselection and distinct second-pass writes persist through SFT and RL. Removing all second-pass writes increases NLL at each stage, measured relative to that stage’s own baseline (Appendix C.2).
5.3 The Effects of Repeated Layers Do Not Simply Add Up
Distinct second-pass updates need not make independent contributions to prediction. Work on the Hydra effect shows that ablating one language-model component can change downstream computations, including compensatory responses (McGrath et al., 2023). This motivates testing whether the effect of removing several repetitions can be predicted by adding their individual removal effects.
For each three-layer set, we compare three separate interventions, each starting from the intact model and removing one layer's second-pass attention and MoE writes, with one intervention removing all three together. All effects use the same intact baseline, and downstream activations are recomputed after each intervention. For layers 7–9, the three individual NLL increases sum to 24.65 millinats/token, whereas joint removal increases NLL by only 8.07. Across all four tested adjacent triplets, joint removal costs 15–33% of the summed individual effects; for the four spaced triplets, it costs 96–103% (Table 10).
Table 10: Removing adjacent repetitions together costs less than the sum of separate removals. All eight tested three-layer sets. “Sum of singles” adds NLL increases from three separate interventions; “Joint effect” measures one intervention removing all three layers’ second-pass attention and MoE writes. Values are in millinats/token relative to the intact model. First-pass execution remains intact. A ratio of one means the two quantities agree. Complete results and uncertainty estimates are in Appendix C.3.
| Removed layers | Adjacent layers | Spaced layers | ||||||
|---|---|---|---|---|---|---|---|---|
| 7–9 | 10–12 | 13–15 | 16–18 | 7, 11, 15 | 8, 12, 16 | 9, 13, 17 | 10, 14, 18 | |
| Sum of singles | 24.65 | 19.79 | 8.00 | 0.86 | 16.32 | 15.27 | 12.15 | 9.56 |
| Joint effect | 8.07 | 3.61 | 1.23 | 0.25 | 16.49 | 15.81 | 12.19 | 9.13 |
| Joint / sum | 0.33 | 0.18 | 0.15 | 0.29 | 1.01 | 1.03 | 1.00 | 0.96 |
The sum combines effects measured on different modified paths: each single-layer removal leaves the other repetitions active. Joint removal evaluates a different path, so its loss increase need not equal that sum. The observed discrepancy establishes that single-layer removal effects cannot be treated as independent contributions; it does not by itself identify a compensation mechanism. Removing all second-pass writes likewise costs 13.38 millinats/token, compared with a sum of 53.30 for individual removals. For Accordion, this means that the benefit of extra depth must be assessed on the complete budget path; adding single-layer ablation effects would overestimate the endpoint NLL gain. Appendix C.3 gives further group comparisons and interpretation details.
6 Related Work
6.1 Looped Transformers
Looped Transformers increase effective depth by repeatedly applying layers with shared weights (Dehghani et al., 2018; Lan et al., 2019). This family includes latent recurrent language models, which refine hidden states before predicting each token. The repeated unit can be a whole stack (Zhu et al., 2025; Nanbeige Lab et al., 2026), an internal block (Geiping et al., 2025; Wang et al., 2026), or an individual layer (Gao et al., 2026). Stack and block recurrence pass representations through multiple layers per iteration; layer looping reuses each layer locally before advancing. Accordion builds on local layer reuse, assigning each budget a fixed prefix of a middle window while retaining the unlooped path.
6.2 Elastic Inference
Elastic inference requires shared weights to support several execution paths, implemented through nested subnetworks (Devvrit et al., 2023; Cai et al., 2024; Taghibakhshi et al., 2025, 2026), reduced depth (Fan et al., 2019;
Schuster et al., 2022; Elhoushi et al., 2024), or sampled recurrence depths (Geiping et al., 2025). Recurrence can also be introduced into pretrained models with frozen weights through damped updates (Chen et al., 2026).
For jointly trained recurrent depths, the central challenge is preserving shallow-path quality while benefiting from deeper computation. LoopFormer aligns trajectories through shortcut consistency (Jeddi et al., 2026). Stochastic RINS improves unlooped inference through recurrence dropout and budget-specific adapters (Alabdulmohsin and Zhai, 2025), while Elastic Latent Recurrence (ELR) addresses the one-loop tax through gated updates and within-update depth mixing, with loop conditioning supporting deeper budgets (Ladhak et al., 2026). Accordion addresses this trade-off through path design: fixed-prefix paths share gates across budgets and are trained by uniformly sampling one path per pretraining micro-batch. Budget selection is a separate choice: learned routing allocates depth per token (Raposo et al., 2024; Bae et al., 2025; Yu et al., 2026; You et al., 2026). Accordion exposes depth as a caller-selected budget, using one fixed path for every token in a request.
7 Conclusion
Accordion makes inference depth a selectable property of a single model. Fixed-prefix layer looping supports five trained execution paths, and joint training preserves these choices through pretraining, SFT and RL. The base model obtains most of its additional-depth gain at the middle budget; its 32K extension retains depth gains on long-context tasks. Budget-matched multi-teacher distillation combines three domain experts into a student that exceeds each expert on its domain's task-and-budget average. The resulting model outperforms the four evaluated public references on IFEval at every budget and retains depth-dependent gains in mathematical reasoning and code generation. Mechanistic probes show that repeated layers reselect experts and write distinct updates, with prediction effects that depend on neighboring repetitions. Together, these results establish a training recipe based on public data for combining adjustable inference depth with domain expertise in one set of weights.
References
Ibrahim Alabdulmohsin and Xiaohua Zhai. Recursive Inference Scaling: A Winning Path to Scalable Inference in Language and Multimodal Systems. arXiv preprint arXiv:2502.07503, 2025. URL https://arxiv.org/abs/2502.07503.
Aida Amini, Saadia Gabriel, Peter Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannaneh Hajishirzi. MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms. arXiv preprint arXiv:1905.13319, 2019. URL https://arxiv.org/abs/1905.13319.
Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, et al. Program Synthesis with Large Language Models. arXiv preprint arXiv:2108.07732, 2021. URL https://arxiv.org/abs/2108.07732.
Sangmin Bae, Yujin Kim, Reza Bayat, Sungnyun Kim, Jiyoun Ha, Tal Schuster, Adam Fisch, Hrayr Harutyunyan, Ziwei Ji, Aaron Courville, et al. Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation. arXiv preprint arXiv:2507.10524, 2025. URL https://arxiv.org/abs/2507.10524.
Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Gabriel Martín Blázquez, Guilherme Penedo, Lewis Tunstall, Andrés Marafioti, Hynek Kydlíček, Agustín Piqueres Lajarín, Vaibhav Srivastav, et al. SmolLM2: When Smol Goes Big – Data-Centric Training of a Small Language Model. arXiv preprint arXiv:2502.02737, 2025. URL https://arxiv.org/abs/2502.02737.
BIG-bench authors. Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/forum?id=uyTL5Bvosj.
Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: Reasoning about Physical Commonsense in Natural Language. arXiv preprint arXiv:1911.11641, 2019. URL https://arxiv.org/abs/1911.11641.
Ruisi Cai, Saurav Muralidharan, Greg Heinrich, Hongxu Yin, Zhangyang Wang, Jan Kautz, and Pavlo Molchanov. Flextron: Many-in-One Flexible Large Language Model. arXiv preprint arXiv:2406.10260, 2024. URL https://arxiv.org/abs/2406.10260.
Lizhang Chen, Jonathan Li, Chen Liang, Ni Lao, and Qiang Liu. Training-Free Looped Transformers. arXiv preprint arXiv:2605.23872, 2026. URL https://arxiv.org/abs/2605.23872.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, et al. Evaluating Large Language Models Trained on Code. arXiv preprint arXiv:2107.03374, 2021. URL https://arxiv.org/abs/2107.03374.
Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions. arXiv preprint arXiv:1905.10044, 2019. URL https://arxiv.org/abs/1905.10044.
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 preprint arXiv:1803.05457, 2018. URL https://arxiv.org/abs/1803.05457.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, et al. Training Verifiers to Solve Math Word Problems. arXiv preprint arXiv:2110.14168, 2021. URL https://arxiv.org/abs/2110.14168.
DeepSeek-AI. DeepSeek-V3 Technical Report. arXiv preprint arXiv:2412.19437, 2024. URL https://arxiv.org/abs/2412.19437.
Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser. Universal Transformers. arXiv preprint arXiv:1807.03819, 2018. URL https://arxiv.org/abs/1807.03819.
Devvrit, Sneha Kudugunta, Aditya Kusupati, Tim Dettmers, Kaifeng Chen, Inderjit Dhillon, Yulia Tsvetkov, Hannaneh Hajishirzi, Sham Kakade, Ali Farhadi, et al. MatFormer: Nested Transformer for Elastic Inference. arXiv preprint arXiv:2310.07707, 2023. URL https://arxiv.org/abs/2310.07707.
Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphs. arXiv preprint arXiv:1903.00161, 2019. URL https://arxiv.org/abs/1903.00161.
Mostafa Elhoushi, Akshat Shrivastava, Diana Liskovich, Basil Hosmer, Bram Wasti, Liangzhen Lai, Anas Mahmoud, Bilge Acun, Saurabh Agarwal, Ahmed Roman, et al. LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding. arXiv preprint arXiv:2404.16710, 2024. URL https://arxiv.org/abs/2404.16710.
Angela Fan, Edouard Grave, and Armand Joulin. Reducing Transformer Depth on Demand with Structured Dropout. arXiv preprint arXiv:1909.11556, 2019. URL https://arxiv.org/abs/1909.11556.
Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, et al. A Framework for Few-Shot Language Model Evaluation, 2023. URL https://github.com/EleutherAI/lm-evaluation-harness.
Zitian Gao, Yilong Chen, Yihao Xiao, Xinyu Yang, Ran Tao, Joey Zhou, and Bryan Dai. Loop the Loopies! arXiv preprint arXiv:2607.16051, 2026. URL https://arxiv.org/abs/2607.16051.
Jonas Geiping, Sean McLeish, Neel Jain, John Kirchenbauer, Siddharth Singh, Brian R. Bartoldson, Bhavya Kailkhura, Abhinav Bhatele, and Tom Goldstein. Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach. arXiv preprint arXiv:2502.05171, 2025. URL https://arxiv.org/abs/2502.05171.
Aryo Pradipta Gema, Joshua Ong Jun Leang, Giwon Hong, Alessio Devoto, Alberto Carlo Maria Mancino, Rohit Saxena, et al. Are We Done with MMLU? arXiv preprint arXiv:2406.04127, 2024. URL https://arxiv.org/abs/2406.04127.
Angeliki Giannou, Shashank Rajput, Jy yong Sohn, Kangwook Lee, Jason D. Lee, and Dimitris Papailiopoulos. Looped Transformers as Programmable Computers. arXiv preprint arXiv:2301.13196, 2023. URL https://arxiv.org/abs/2301.13196.
Alex Gu, Baptiste Rozière, Hugh Leather, Armando Solar-Lezama, Gabriel Synnaeve, and Sida I. Wang. CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution. arXiv preprint arXiv:2401.03065, 2024. URL https://arxiv.org/abs/2401.03065.
Xiaotian Han, Yiren Jian, Xuefeng Hu, Haogeng Liu, Yiqi Wang, Qihang Fan, Yuang Ai, Huaibo Huang, Ran He, Zhenheng Yang, et al. InfiMM-WebMath-40B: Advancing Multimodal Pre-Training for Enhanced Mathematical Reasoning. arXiv preprint arXiv:2409.12568, 2024. URL https://arxiv.org/abs/2409.12568.
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring Massive Multitask Language Understanding. In International Conference on Learning Representations, 2021a. URL https://arxiv.org/abs/2009.03300.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring Mathematical Problem Solving With the MATH Dataset. arXiv preprint arXiv:2103.03874, 2021b. URL https://arxiv.org/abs/2103.03874.
Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. RULER: What's the Real Context Size of Your Long-Context Language Models? arXiv preprint arXiv:2404.06654, 2024. URL https://arxiv.org/abs/2404.06654.
Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Suchin Gururangan, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi. Editing models with task arithmetic, 2023. URL https://arxiv.org/abs/2212.04089.
Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code. arXiv preprint arXiv:2403.07974, 2024. URL https://arxiv.org/abs/2403.07974.
Ahmadreza Jeddi, Marco Ciccone, and Babak Taati. LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulation. arXiv preprint arXiv:2602.11451, 2026. URL https://arxiv.org/abs/2602.11451.
Mandar Joshi, Eunsol Choi, Daniel S. Weld, and Luke Zettlemoyer. TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension. arXiv preprint arXiv:1705.03551, 2017. URL https://arxiv.org/abs/1705.03551.
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, et al. Natural Questions: A Benchmark for Question Answering Research. Transactions of the Association for Computational Linguistics, 7:452–466, 2019. doi: 10.1162/tacl_a_00276. URL https://aclanthology.org/Q19-1026/.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient Memory Management for Large Language Model Serving with PagedAttention. arXiv preprint arXiv:2309.06180, 2023. URL https://arxiv.org/abs/2309.06180.
Faisal Ladhak, Shantanu Acharya, Santiago Akle Serano, Simeng Sun, Boris Ginsburg, and Krishna C Puvvada. One Model to Loop Them All: Elastic Latent Recurrence for Language Models. arXiv preprint arXiv:2610.12582, 2026. URL https://arxiv.org/abs/2610.12582.
Guokun Lai, Qizhe Xie, Hanxiao Liu, Yiming Yang, and Eduard Hovy. RACE: Large-scale ReAding Comprehension Dataset From Examinations. arXiv preprint arXiv:1704.04683, 2017. URL https://arxiv.org/abs/1704.04683.
Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. ALBERT: A Lite BERT for Self-supervised Learning of Language Representations. arXiv preprint arXiv:1909.11942, 2019. URL https://arxiv.org/abs/1909.11942.
Qintong Li, Leyang Cui, Xueliang Zhao, Lingpeng Kong, and Wei Bi. GSM-Plus: A Comprehensive Benchmark for Evaluating the Robustness of LLMs as Mathematical Problem Solvers. arXiv preprint arXiv:2402.19255, 2024. URL https://arxiv.org/abs/2402.19255.
Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, et al. StarCoder: may the source be with you! arXiv preprint arXiv:2305.06161, 2023. URL https://arxiv.org/abs/2305.06161.
Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's Verify Step by Step. arXiv preprint arXiv:2305.20050, 2023. URL https://arxiv.org/abs/2305.20050.
Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation. arXiv preprint arXiv:2305.01210, 2023. URL https://arxiv.org/abs/2305.01210.
Zihan Liu, Zhuolin Yang, Yang Chen, Chankyu Lee, Mohammad Shoeybi, Bryan Catanzaro, and Wei Ping. AceReason-Nemotron 1.1: Advancing Math and Code Reasoning through SFT and RL Synergy. arXiv preprint arXiv:2506.13284, 2025. URL https://arxiv.org/abs/2506.13284.
Ilya Loshchilov and Frank Hutter. Decoupled Weight Decay Regularization. In International Conference on Learning Representations, 2019. URL https://arxiv.org/abs/1711.05101.
Mathematical Association of America. American Invitational Mathematics Examination (AIME). American Mathematics Competitions, n.d. URL https://maa.org/student-programs/amc/. Accessed October 20, 2026.
Thomas McGrath, Matthew Rahtz, Janos Kramar, Vladimir Mikulik, and Shane Legg. The Hydra Effect: Emergent Self-repair in Language Model Computations. arXiv preprint arXiv:2307.15771, 2023. URL https://arxiv.org/abs/2307.15771.
Shen-yun Miao, Chao-Chun Liang, and Keh-Yih Su. A Diverse Corpus for Evaluating and Developing English Math Word Problem Solvers. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 975–984, 2020. doi: 10.18653/v1/2020.acl-main.92. URL https://aclanthology.org/2020.acl-main.92/.
Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answering. arXiv preprint arXiv:1809.02789, 2018. URL https://arxiv.org/abs/1809.02789.
Ivan Moshkov, Darragh Hanley, Ivan Sorokin, Shubham Toshniwal, Christof Henkel, Benedikt Schifferer, Wei Du, and Igor Gitman. AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning dataset. arXiv preprint arXiv:2504.16891, 2025. URL https://arxiv.org/abs/2504.16891.
Niklas Muennighoff, Luca Soldaini, Dirk Groeneveld, Kyle Lo, Jacob Morrison, Sewon Min, et al. OLMoE: Open mixture-of-experts language models. arXiv preprint arXiv:2409.02060, 2024. URL https://arxiv.org/abs/2409.02060.
Nanbeige Lab, Chen Yang, Chengrui Huang, Fufeng Lan, Hanhui Chen, Hao Zhou, Huatong Song, Jiaqi Cao, Jiaying Zhu, Jinlin Niu, Kai Wang, Lisheng Huang, Qiliang Liang, Ran Le, Ruixiang Feng, Shuang Sun, Tao Gu, Tao Zhang, Tianyu Luo, Yang Song, Yun Xing, Yuntao Wen, Ziyao Xu, Zongchao Chen, and Zongqiang Li. Nanbeige4.2-3B: Unlocking Agentic Capabilities in a Compact Model. arXiv preprint arXiv:2607.22083, 2026. URL https://arxiv.org/abs/2607.22083.
NVIDIA. Nemotron-Cascade-RL-Instruction-Following. Hugging Face dataset, 2025a. URL https://huggingface.co/datasets/nvidia/Nemotron-Cascade-RL-Instruction-Following.
NVIDIA. Nemotron-Instruction-Following-Chat-v1. Hugging Face dataset, 2025b. URL https://huggingface.co/datasets/nvidia/Nemotron-Instruction-Following-Chat-v1.
NVIDIA. Nemotron-RL-instruction_following. Hugging Face dataset, 2025c. URL https://huggingface.co/datasets/nvidia/Nemotron-RL-instruction_following.
NVIDIA. Nemotron-RL-instruction_following-structured_outputs. Hugging Face dataset, 2025d. URL https://huggingface.co/datasets/nvidia/Nemotron-RL-instruction_following-structured_outputs.
NVIDIA. Nemotron-SFT-Instruction-Following-Chat-v2. Hugging Face dataset, 2025e. URL https://huggingface.co/datasets/nvidia/Nemotron-SFT-Instruction-Following-Chat-v2.
NVIDIA. Nemotron-SFT-Competitive-Programming-v2. Hugging Face dataset, 2025f. URL https://huggingface.co/datasets/nvidia/Nemotron-SFT-Competitive-Programming-v2.
NVIDIA. Nemotron-SFT-Safety-v1. Hugging Face dataset, 2025g. URL https://huggingface.co/datasets/nvidia/Nemotron-SFT-Safety-v1.
NVIDIA. Nemotron-SFT-Math-v3. Hugging Face dataset, 2026. URL https://huggingface.co/datasets/nvidia/Nemotron-SFT-Math-v3.
Open R1 Team. OpenR1-Math-220k. Hugging Face dataset, 2025. URL https://huggingface.co/datasets/open-r1/OpenR1-Math-220k.
Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Quan Ngoc Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernández. The LAMBADA dataset: Word prediction requiring a broad discourse context. arXiv preprint arXiv:1606.06031, 2016. URL https://arxiv.org/abs/1606.06031.
Hayden Prairie, Zachary Novack, Taylor Berg-Kirkpatrick, and Daniel Y. Fu. Parcae: Scaling Laws For Stable Looped Language Models. arXiv preprint arXiv:2604.12946, 2026. URL https://arxiv.org/abs/2604.12946.
Valentina Pyatkin, Saumya Malik, Victoria Graf, Hamish Ivison, Shengyi Huang, Pradeep Dasigi, Nathan Lambert, and Hannaneh Hajishirzi. Generalizing Verifiable Instruction Following. arXiv preprint arXiv:2507.02833, 2025. URL https://arxiv.org/abs/2507.02833.
Qwen Team. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. URL https://arxiv.org/abs/2505.09388.
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: 100,000+ Questions for Machine Comprehension of Text. arXiv preprint arXiv:1606.05250, 2016. URL https://arxiv.org/abs/1606.05250.
David Raposo, Sam Ritter, Blake Richards, Timothy Lillicrap, Peter Conway Humphreys, and Adam Santoro. Mixture-of-Depths: Dynamically allocating compute in transformer-based language models. arXiv preprint arXiv:2404.02258, 2024. URL https://arxiv.org/abs/2404.02258.
Siva Reddy, Danqi Chen, and Christopher D. Manning. CoQA: A Conversational Question Answering Challenge. Transactions of the Association for Computational Linguistics, 7:249–266, 2019. doi: 10.1162/tacl_a_00266. URL https://aclanthology.org/Q19-1016/.
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. WinoGrande: An Adversarial Winograd Schema Challenge at Scale. arXiv preprint arXiv:1907.10641, 2019. URL https://arxiv.org/abs/1907.10641.
Maarten Sap, Hannah Rashkin, Derek Chen, Ronan LeBras, and Yejin Choi. SocialIQA: Commonsense Reasoning about Social Interactions. arXiv preprint arXiv:1904.09728, 2019. URL https://arxiv.org/abs/1904.09728.
Tal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani, Dara Bahri, Vinh Q. Tran, Yi Tay, and Donald Metzler. Confident Adaptive Language Modeling. arXiv preprint arXiv:2207.07061, 2022. URL https://arxiv.org/abs/2207.07061.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, et al. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300, 2024. URL https://arxiv.org/abs/2402.03300.
Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A Flexible and Efficient RLHF Framework. arXiv preprint arXiv:2409.19256, 2024. URL https://arxiv.org/abs/2409.19256.
Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism. arXiv preprint arXiv:1909.08053, 2019. URL https://arxiv.org/abs/1909.08053.
Zayne Sprague, Xi Ye, Kaj Bostrom, Swarat Chaudhuri, and Greg Durrett. MuSR: Testing the Limits of Chain-of-thought with Multistep Soft Reasoning. arXiv preprint arXiv:2310.16049, 2023. URL https://arxiv.org/abs/2310.16049.
Dan Su, Kezhi Kong, Ying Lin, Joseph Jennings, Brandon Norick, Markus Kliegl, Mostofa Patwary, Mohammad Shoeybi, and Bryan Catanzaro. Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Dataset. arXiv preprint arXiv:2412.02595, 2024. URL https://arxiv.org/abs/2412.02595.
Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu. RoFormer: Enhanced Transformer with Rotary Position Embedding. arXiv preprint arXiv:2104.09864, 2021. URL https://arxiv.org/abs/2104.09864.
Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, et al. Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them. arXiv preprint arXiv:2210.09261, 2022. URL https://arxiv.org/abs/2210.09261.
Ali Taghibakhshi, Sharath Turuvekere Sreenivas, Saurav Muralidharan, Ruisi Cai, Marcin Chochowski, Ameya Sunil Mahabaleshwarkar, Yoshi Suhara, Oluwatobi Olabiyi, Daniel Korzekwa, Mostofa Patwary, et al. Nemotron Elastic: Towards Efficient Many-in-One Reasoning LLMs. arXiv preprint arXiv:2511.16664, 2025. URL https://arxiv.org/abs/2511.16664.
Ali Taghibakhshi, Ruisi Cai, Saurav Muralidharan, Sharath Turuvekere Sreenivas, Aditya Vavre, Ameya Sunil Mahabaleshwarkar, Bilal Kartal, Sheldon Liang, Marcin Chochowski, Zijia Chen, et al. Star Elastic: Many-in-One Reasoning LLMs with Efficient Budget Control. arXiv preprint arXiv:2605.07182, 2026. URL https://arxiv.org/abs/2605.07182.
Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4149–4158, 2019. doi: 10.18653/v1/N19-1421. URL https://aclanthology.org/N19-1421/.
Team Olmo, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, et al. Olmo 3. arXiv preprint arXiv:2512.13961, 2025. URL https://arxiv.org/abs/2512.13961.
Joshua Vendrow, Edward Vendrow, Sara Beery, and Aleksander Madry. Do Large Language Model Benchmarks Test Reliability? arXiv preprint arXiv:2502.03461, 2025. URL https://arxiv.org/abs/2502.03461.
Shaowen Wang, Ge Zhang, Kairong Luo, Yuhao Wu, Shaofan Liu, Jiaheng Liu, Wenhao Huang, Shen Yan, and Jian Li. SMELT: Scaling Laws for Compute-Matched MoE Looped Transformers. arXiv preprint arXiv:2609.01343, 2026. URL https://arxiv.org/abs/2609.01343.
Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, et al. MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark. arXiv preprint arXiv:2406.01574, 2024. URL https://arxiv.org/abs/2406.01574.
Johannes Welbl, Nelson F. Liu, and Matt Gardner. Crowdsourcing Multiple Choice Science Questions. arXiv preprint arXiv:1707.06209, 2017. URL https://arxiv.org/abs/1707.06209.
Yichen You, Tianyu Fu, Aosong Feng, Xingtai Lv, Xuefei Ning, Ning Ding, and Yu Wang. Improving Test-Time Scaling with Adaptive Looped Transformers. arXiv preprint arXiv:2609.35748, 2026. URL https://arxiv.org/abs/2609.35748.
Mingqian Yu, Wenpeng Zhang, Shaobo Cui, and Peilin Zhao. T-LoopFormer: Token-Level Elastic-Depth Looped Transformers with Dynamic Routing. arXiv preprint arXiv:2609.15160, 2026. URL https://arxiv.org/abs/2609.15160.
Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, et al. DAPO: An Open-Source LLM Reinforcement Learning System at Scale. arXiv preprint arXiv:2503.14476, 2025. URL https://arxiv.org/abs/2503.14476.
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a Machine Really Finish Your Sentence? arXiv preprint arXiv:1905.07830, 2019. URL https://arxiv.org/abs/1905.07830.
Wanjun Zhong, Ruixiang Cui, Yiduo Guo, Yaobo Liang, Shuai Lu, Yanlin Wang, Amin Saied, Weizhu Chen, and Nan Duan. AGIEval: A Human-Centric Benchmark for Evaluating Foundation Models. arXiv preprint arXiv:2304.06364, 2023. URL https://arxiv.org/abs/2304.06364.
Fan Zhou, Zengzhi Wang, Nikhil Ranjan, Zhoujun Cheng, Liping Tang, Guowei He, Zhengzhong Liu, and Eric P. Xing. MegaMath: Pushing the Limits of Open Math Corpora. arXiv preprint arXiv:2504.02807, 2025. URL https://arxiv.org/abs/2504.02807.
Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-Following Evaluation for Large Language Models. arXiv preprint arXiv:2311.07911, 2023. URL https://arxiv.org/abs/2311.07911.
Rui-Jie Zhu, Zixuan Wang, Kai Hua, Tianyu Zhang, Ziniu Li, Haoran Que, Boyi Wei, Zixin Wen, Fan Yin, He Xing, et al. Scaling Latent Reasoning via Looped Language Models. arXiv preprint arXiv:2510.25741, 2025. URL https://arxiv.org/abs/2510.25741.
A Comparison of Execution Structures
Looped language models differ in the unit of repeated computation: Huginn repeats a shared core (Geiping et al., 2025), Ouro repeats the full stack (Zhu et al., 2025), and Loopie repeats individual layers (Gao et al., 2026) (Figure 19). Accordion adopts local layer looping and jointly trains a fixed set of prefix paths (Figure 2).

Figure 19: Execution structures for depth reuse. Execution proceeds bottom to top. Accordion repeats a middle-layer prefix (k = 6 shown); Huginn repeats a core; Ouro repeats the full stack; Loopie repeats each MoE layer. R denotes recurrence count. Blue denotes single execution and cream/gold repeated execution. Peer layer counts are schematic.
B Pretraining Data and Evaluation Details
Accordion-Base is the 8K model obtained after 3.6T training tokens. A further 50B tokens over 5,960 updates produce Accordion-Base-32K, which initializes SFT. Both models have complete results on the same 37 general-capability benchmarks at all five budgets. The main benchmark comparison reports Accordion-Base. Section 3.3.4 reports long-context results for Accordion-Base-32K; Appendix B.7 gives its full benchmark table and detailed evaluation protocol.
B.1 Data Accounting
Available tokens in Table 11 denote approximate source-pool sizes. Expected consumption sums each stage's token budget weighted by its source sampling fraction; expected repetitions express this consumption in source-pool equivalents. The source pools total approximately 9.57T tokens under the rounded quantities listed here, while the selected 835 shards contain approximately 4.68T tokens. The 3.6T training budget samples from the selected shards; stage-specific seeds 1234/1235/1236 change document order for shared sources. Within each source category, shards are stratified by average document length. We reserve one source shard each from Nemotron-CC v2 HQ, FineMath-3+ and StarCoder Python for validation, excluding these shards from training. Context extension combines selected long documents with replay from the annealing distribution. Table 12 specifies the target domain sampling proportions for this 50B-token stage.
Table 11: Source-level mixture for the 3.6T/8K stages. Available pools, expected consumption and repetitions use the documented rounded source quantities. General/mid/anneal columns each sum to 100%; consumed tokens sum to 3,600B. The separate 50B context-extension mixture is excluded from consumption and repetition estimates.
| Source | Available (B tokens) | General 3,000B | Mid 150B | Anneal 450B | Expected used (B) | Expected repetitions |
|---|---|---|---|---|---|---|
| Nemotron-CC web, high quality (v2/v2.1) | 1,243 | 23% | 17% | 13% | 774 | 0.62 |
| Nemotron-CC web, medium quality (v2/v2.1) | 2,161 | 15.25% | 7% | 3% | 481.5 | 0.22 |
| Nemotron-CC synthetic rephrasings | 3,503 | 22% | 17% | 12% | 739.5 | 0.21 |
| Nemotron-CC Diverse-QA + HQ-DQA | 679 | 6.5% | 7% | 5% | 228 | 0.34 |
| Nemotron Specialized (RQA, STEM-SFT, InfiniByte) | 228 | 2.5% | 5% | 8% | 118.5 | 0.52 |
| Nemotron reasoning (Math-v2, Comp.-Prog., PrismMath) | 102 | 0% | 6% | 12% | 63 | 0.62 |
| Nemotron-CC-Math | 195 | 3.5% | 4.5% | 5% | 134.25 | 0.69 |
| MegaMath web | 231 | 4.5% | 5% | 5% | 165 | 0.71 |
| MegaMath synthetic | 52 | 1% | 0% | 0% | 30 | 0.58 |
| FineMath-3+ and InfiWebMath-3+ | 53 | 2% | 4% | 5% | 88.5 | 1.67 |
| Math textbooks (Nemotron Specialized) | 24 | 0.5% | 1% | 2% | 25.5 | 1.06 |
| StarCoder data | 228 | 5.5% | 10% | 13% | 238.5 | 1.05 |
| Nemotron-CC-Code | 410 | 7% | 6% | 6% | 246 | 0.60 |
| Nemotron code synthetic (Code-v2) | 450 | 6.5% | 10% | 10% | 255 | 0.57 |
| Code concepts (Nemotron Specialized v1.1) | 9 | 0.25% | 0.5% | 1% | 12.75 | 1.42 |
Table 12: Context-extension data allocation. Long-document and replay allocations each total 25B tokens. Domain shares combine both components; replay allocations follow the annealing mixture.
| Metric | Web | Synthetic web | Reasoning | Mathematics | Code |
|---|---|---|---|---|---|
| Long documents (B tokens) | 8 | 0 | 5 | 5 | 7 |
| Replay (B tokens) | 4 | 3 | 6.25 | 4.25 | 7.5 |
| Share (%) | 24 | 6 | 22.5 | 18.5 | 29 |
The audit cited in §3.3 scans the 302B-token Diverse-QA source pool with the training tokenizer, excluding 13-grams shared by multiple questions within a benchmark. This pool is the Diverse-QA component of the combined 679B-token Diverse-QA + HQ-DQA row in Table 11. The reported high-overlap threshold requires coverage of at least 50% of a question's non-template 13-grams. It flags 73 of 1,319 GSM8K questions and 3 of 500 MATH500 questions. These counts characterize overlap in the source pool; actual exposure depends on the sampled training stream. Reported benchmark scores include the flagged questions and are computed on the full evaluation sets.
B.2 Evaluation Protocol and Aggregation
Accordion-Base and the public reference models are evaluated on the same 37 tasks, with Accordion retaining all five inference budgets (Table 6). Table 13 gives the core prompting and scoring settings. For Ouro-1.4B only, we remove trailing whitespace from HumanEval/HumanEval+ prompts before generation; all other settings are unchanged, and these corrected scores enter all benchmark tables and aggregates. The extended suite includes SciQ (Welbl et al., 2017), SocialIQA (Sap et al., 2019), MuSR (Sprague et al., 2023), AGIEval (Zhong et al., 2023), GSM8K-Platinum (Vendrow et al., 2025), GSM-Plus (Li et al., 2024), MathQA (Amini et al., 2019), ASDiv (Miao et al., 2020) and both CRUXEval tasks (Gu et al., 2024). The reading tasks are DROP (Dua et al., 2019), SQuAD (Rajpurkar et al., 2016), CoQA (Reddy et al., 2019), RACE (Lai et al., 2017) and LAMBADA (Paperno et al., 2016); the report-only MMLU-Pro task follows Wang et al. (2024). The three summary scopes are specified in Table 14. ASDiv and arithmetic remain in the secondary suite; MATH500, cloze MMLU and MMLU-Pro are reported individually and enter only the full-table summary.
Table 13: Core evaluation protocol for Accordion-Base and public references. All five budgets use identical tasks, prompts and scoring. Shot counts specify in-context examples; CoT denotes chain-of-thought prompting. Evaluation includes full MATH (Hendrycks et al., 2021b) with 5,000 problems and a separately reported MATH500 (Lightman et al., 2023) score.
| Category | Tasks and prompting | Scoring |
|---|---|---|
| Knowledge | MMLU (Hendrycks et al., 2021a) (5-shot)TriviaQA (Joshi et al., 2017)Natural Questions (Kwiatkowski et al., 2019) (5-shot) | Multiple-choice accuracyClosed-book exact match |
| Common sense | ARC-C / ARC-E (Clark et al., 2018) (25-/8-shot)CommonsenseQA (Talmor et al., 2019)HellaSwag (Zellers et al., 2019) (10-shot)WinoGrande (Sakaguchi et al., 2019) (5-shot)OpenBookQA (Mihaylov et al., 2018)BoolQ (Clark et al., 2019), PIQA (Bisk et al., 2019) (0-shot) | Task-specific harness scoring |
| Reasoning | BBH (Suzgun et al., 2022) (3-shot CoT) | Strict answer matchingaggregate over subtasks |
| Mathematics | GSM8K (Cobbe et al., 2021) (3-shot CoT)Full MATH (4-shot) | Flexible answer extractionMathematical-equivalence checking |
| Code | HumanEval (Chen et al., 2021) / HumanEval+ (Liu et al., 2023) (0-shot)MBPP (Austin et al., 2021) / MBPP+ (3-shot) | Greedy pass@1CPU subprocess test execution |
Table 14: Task and category scopes of the pretraining summaries. All three use the equal-category averaging rule in Equation 7. The core aggregate is used for training trajectories.
| Summary | Tasks | Category scope |
|---|---|---|
| Core aggregate | 18 | Five: knowledge, common sense, reasoning, mathematics and code. |
| Secondary aggregate | 34 | Six: the core categories plus reading, with 16 additional tasks overall. |
| Full-table summary | 37 | Five display groups; knowledge and reading are combined under Knowledge and QA. Every displayed task is included. |
MBPP and MBPP+ score different program sets (500 and 378 programs, respectively). Their absolute scores therefore reflect both test strength and the composition of the scored sets. The reference-model category scores use the same evaluation suite as Accordion. Tasks marked are excluded from the 18-task and 34-task aggregates. The 37-task summary in Figure 7 uses the displayed benchmark scores and includes every row in each display group; its Overall is calculated from the five category means before rounding. Core and secondary aggregates follow the fixed category definitions in Table 14. Paired endpoint intervals use the 18-task core scope; the 37-task aggregate and its 89% gain-retention estimate are descriptive summaries of the full-suite scores. Benchmark scores use one decimal place (two for corrected Ouro HumanEval/HumanEval+); source data retain original precision.
Across performance tables, bold identifies the best distinct displayed value within the comparison group specified in each caption. The second-best value is underlined when the group contains at least four available candidates; missing scores do not count. Ties at the displayed precision share the same marking. In public-model comparisons, fills in the corresponding category color highlight Accordion's first and second places, with a stronger tint for first place. These descriptive ranks do not indicate statistical significance; unavailable results, counts and confidence intervals are not ranked.
B.3 Held-Out Language-Modeling Loss
Increasing inference depth monotonically reduces held-out loss in web text, mathematics and code on identical validation tokens (Table 15). Each domain uses the held-out source shard specified above and the same validation indices as during pretraining; Table 16 gives the evaluation settings. These losses use Accordion-Base before context extension; Accordion-Base-32K is reported separately in Appendix B.7. Token, target and loss-mask checksums agree across budgets and with a repeated evaluation of the annealing model. All 15 repeated losses match the original annealing results at the reported precision, confirming consistency of the evaluation inputs and reported losses.
Table 15: Held-out validation loss of Accordion-Base. Lower is better. Each domain uses identical validation tokens across budgets. Values are batch-mean point estimates rounded to four decimal places; sequence-level records for paired intervals are unavailable. The endpoint reductions reported in §3.3.2 use unrounded records. Bold and underlining mark the lowest and second-lowest loss in each row.
| Domain | Accordion-Base | ||||
|---|---|---|---|---|---|
| Web | 2.3059 | 2.2976 | 2.2935 | ||
| Math | 1.3505 | 1.3419 | 1.3379 | ||
| Code | 0.8693 | 0.8629 | 0.8596 | ||
Table 16: Held-out loss evaluation settings. The same settings and validation sequences are used for all five inference budgets in each domain.
| Setting | Value | Setting | Value |
|---|---|---|---|
| Sequences per domain | 1,400 | Expert parallelism degree | 1 |
| Tokens per sequence | 8,192 | Micro-batch / global batch (sequences) | 4 / 28 |
| Loss tokens per domain | 11,468,800 | Evaluation iterations | 50 |
| GPUs | 7 | Random seed | 1234 |
B.4 Common-Protocol Model Specifications
The comparison uses Accordion-Base, Qwen3-0.6B/1.7B, OLMoE-0125 and Ouro-1.4B under the protocol in Appendix B.2. The OLMoE training configuration combines 5,033B first-stage tokens with a 100B-token annealing stage, for approximately 5.1T tokens. Ouro-1.4B is configured for four recurrent steps with early exit at the third step. It uses unfused attention, with one example per batch on generation tasks.
Table 17: Base-model comparison specifications. Parameter counts are in billions and retain source conventions. Active shared weights are not multiplied by recurrence count. Accordion's active count includes its output head (0.54B without it) and describes an unlooped pass. Training exposure excludes subsequent SFT/RL.
| Property | Accordion-Base | Qwen3-0.6B | Qwen3-1.7B | OLMoE-0125 | Ouro-1.4B |
|---|---|---|---|---|---|
| Architecture | Layer-loop MoE | Dense | Dense | MoE | LoopLM |
| Total parameters (B) | 6.03 | 0.6 | 1.7 | 6.9 | 1.4 |
| Active parameters (B) | 0.74 | 0.6 | 1.7 | 1.3 | 1.4 |
| Training tokens | 3.6T | 36T | 36T | ~5.1T | 7.7T |
| Execution | 1 pass | 1 pass | 1 pass | R=4 |
B.5 Paired Evidence for Depth Gains
Additional depth improves all 18 core-task point estimates, with paired 95% intervals excluding zero for 12 tasks (Table 18). The core aggregate increases from 52.49 at to 56.23 at (+3.74 points; paired 95% interval [3.17, 4.34]). Within this scope, retains 83% of the endpoint gain as a descriptive ratio.
Table 18: Paired endpoint gains on the core suite. Accordion-Base differences between and (percentage points), with paired bootstrap 95% confidence intervals reflecting evaluation-sample uncertainty.
| Task | Gain | 95% CI | Task | Gain | 95% CI |
|---|---|---|---|---|---|
| MMLU | +2.63 | BoolQ | +0.98 | ||
| TriviaQA | +0.55 | PIQA | +0.49 | ||
| Natural Questions | +0.50 | BBH | +6.01 | ||
| ARC-C | +1.45 | GSM8K | +8.26 | ||
| ARC-E | +0.59 | Full MATH | +2.64 | ||
| CommonsenseQA | +3.52 | HumanEval | +4.27 | ||
| HellaSwag | +0.97 | HumanEval+ | +3.05 | ||
| WinoGrande | +1.10 | MBPP | +5.20 | ||
| OpenBookQA | +2.20 | MBPP+ | +5.82 |
B.6 Model-Design Study Configuration
The model-design ablations in §2.2 evaluate shared-path design choices in a 1.61B-parameter configuration trained on 80B tokens. Table 19 specifies this experimental configuration; §3 specifies the main Accordion model.
Table 19: Configuration for the 1.61B-parameter design studies. Active parameters refer to a single unlooped forward pass and exclude the input embedding and output head. WSD denotes warmup–stable–decay.
| Setting | Value |
|---|---|
| Layers / hidden size / Q / KV / head dim | |
| Routed / shared / active experts; intermediate size | |
| Total / active parameters; vocabulary | |
| Loopable window / budgets | |
| Training tokens / context / tokens per step | |
| Peak LR / final LR / schedule | |
| Warmup / decay | |
| AdamW / weight decay / gradient clipping | |
| Weight initialization | std. , truncated at |
| Gates | zero initialization, no weight decay |
| MoE balancing | per-pass bias; sequence auxiliary loss |
| Precision / GPUs | bfloat16 / H800 |
B.7 Accordion-Base-32K Evaluation
Accordion-Base-32K retains the five-budget interface after context extension. Table 21 reports all 185 task scores; Table 20 summarizes the five capability categories. Table 22 reports held-out losses on the same 8K sequences used for Accordion-Base. Long-context results are discussed in §3.3.4, with the full protocol and task scores below.
Table 20: Category-level performance of Accordion-Base-32K. Categories average the displayed scores in Table 21, including the Ouro correction. Reference columns follow the main-text order.
| Category | Accordion-Base-32K | Qwen3 | OLMoE | Ouro | |||||
|---|---|---|---|---|---|---|---|---|---|
| Knowledge and QA | |||||||||
| Common sense | |||||||||
| Reasoning | |||||||||
| Mathematics | |||||||||
| Code | |||||||||
Table 21: Base-model comparison across all 37 benchmarks. All models follow the protocol in Appendix B.2. Accordion-Base-32K uses 3.65T training tokens, including 50B for context extension. Category scores appear in Table 20.
| Benchmark | Accordion-Base-32K | Qwen3 | Qwen3 | OLMoE | Ouro | ||||
|---|---|---|---|---|---|---|---|---|---|
| k=0 | k=3 | k=6 | k=9 | k=12 | 0.6B | 1.7B | 0125 | 1.4B | |
| Pretraining tokens | 3.65T | 36T | 36T | 5.1T | 7.7T | ||||
| Knowledge and QA | |||||||||
| MMLU | 58.4 | 60.3 | 61.1 | 61.3 | 61.4 | 52.5 | 62.7 | 55.2 | 67.5 |
| TriviaQA | 52.1 | 52.8 | 52.7 | 52.6 | 52.7 | 20.0 | 36.3 | 62.7 | 43.8 |
| Natural Questions | 19.2 | 19.8 | 20.0 | 19.9 | 20.1 | 7.5 | 13.8 | 25.8 | 17.2 |
| SciQ | 95.8 | 95.9 | 95.8 | 95.7 | 95.6 | 93.6 | 96.1 | 93.9 | 95.8 |
| MMLU (cloze) | 43.9 | 44.7 | 45.4 | 45.5 | 45.5 | 36.6 | 43.5 | 43.7 | 45.1 |
| MMLU-Pro | 31.8 | 34.9 | 35.4 | 36.0 | 36.0 | 25.7 | 37.5 | 18.3 | 48.9 |
| DROP | 4.4 | 4.5 | 4.6 | 4.7 | 4.7 | 4.6 | 15.3 | 32.1 | 4.7 |
| SQuAD | 57.1 | 56.8 | 57.9 | 57.7 | 58.3 | 56.5 | 59.3 | 42.9 | 57.1 |
| CoQA | 78.1 | 78.9 | 79.2 | 79.3 | 79.7 | 73.9 | 79.1 | 71.8 | 81.5 |
| RACE | 37.3 | 36.3 | 36.5 | 36.8 | 36.9 | 35.1 | 39.5 | 37.9 | 38.3 |
| LAMBADA | 63.9 | 64.4 | 65.1 | 65.2 | 65.1 | 53.8 | 63.1 | 70.5 | 65.1 |
| Common sense | |||||||||
| ARC-C | 57.9 | 58.9 | 59.0 | 60.0 | 59.9 | 45.0 | 55.4 | 58.2 | 60.0 |
| ARC-E | 82.2 | 83.0 | 82.8 | 82.9 | 83.1 | 74.7 | 82.2 | 82.5 | 84.0 |
| CommonsenseQA | 64.1 | 66.2 | 68.0 | 67.1 | 67.3 | 62.9 | 75.6 | 65.6 | 77.0 |
| HellaSwag | 74.3 | 75.0 | 75.4 | 75.4 | 75.4 | 53.6 | 67.1 | 79.7 | 74.4 |
| WinoGrande | 66.6 | 67.8 | 69.2 | 68.4 | 68.7 | 59.8 | 66.1 | 71.9 | 70.8 |
| OpenBookQA | 41.6 | 42.8 | 42.8 | 43.4 | 42.8 | 34.2 | 38.4 | 44.4 | 41.4 |
| BoolQ | 78.7 | 79.9 | 79.8 | 79.6 | 79.9 | 69.6 | 78.9 | 70.2 | 79.9 |
| PIQA | 77.6 | 77.4 | 77.8 | 78.0 | 78.2 | 69.9 | 75.8 | 79.7 | 78.6 |
| Social IQa | 44.5 | 44.6 | 44.7 | 44.2 | 44.3 | 43.3 | 48.5 | 47.2 | 42.9 |
| Reasoning | |||||||||
| BBH | 54.8 | 58.2 | 61.0 | 61.3 | 61.3 | 40.8 | 53.3 | 32.6 | 70.8 |
| MuSR | 36.9 | 37.6 | 38.0 | 37.7 | 38.1 | 34.7 | 44.3 | 35.5 | 39.0 |
| AGIEval-en | 25.7 | 26.0 | 27.9 | 28.3 | 28.3 | 26.2 | 32.5 | 25.5 | 34.9 |
| Mathematics | |||||||||
| GSM8K | 55.5 | 60.0 | 61.5 | 62.6 | 62.8 | 59.2 | 71.3 | 51.1 | 78.6 |
| MATH (5,000) | 39.7 | 39.9 | 41.1 | 42.3 | 42.3 | 28.5 | 38.9 | 16.9 | 22.0 |
| MATH500 | 40.0 | 41.8 | 41.6 | 42.6 | 42.4 | 31.8 | 39.4 | 17.2 | 21.4 |
| GSM8K-Platinum | 58.2 | 62.0 | 65.1 | 65.6 | 65.3 | 62.5 | 75.8 | 53.1 | 80.9 |
| GSM-Plus-mini | 38.5 | 38.5 | 41.5 | 42.2 | 41.8 | 33.2 | 50.4 | 33.8 | 54.9 |
| MathQA | 46.4 | 47.2 | 47.9 | 47.7 | 48.0 | 36.8 | 45.2 | 28.0 | 49.8 |
| Multi-digit arithmetic | 32.2 | 32.0 | 35.8 | 33.0 | 32.2 | 87.3 | 96.5 | 43.7 | 92.2 |
| ASDiv | 11.5 | 13.2 | 12.7 | 14.8 | 14.5 | 0.0 | 7.9 | 0.4 | 2.6 |
| Code | |||||||||
| HumanEval | 38.4 | 42.7 | 42.7 | 44.5 | 43.3 | 28.7 | 50.6 | 11.6 | 35.37 |
| HumanEval+ | 36.0 | 39.0 | 39.6 | 40.2 | 39.6 | 22.6 | 43.9 | 11.0 | 32.32 |
| MBPP | 48.6 | 51.6 | 51.8 | 53.8 | 53.4 | 39.0 | 55.6 | 21.0 | 58.0 |
| MBPP+ | 63.0 | 64.8 | 66.4 | 66.9 | 67.2 | 54.5 | 70.6 | 29.9 | 76.7 |
| CRUXEval output | 23.3 | 23.5 | 25.6 | 25.0 | 25.5 | 16.1 | 21.8 | 13.1 | 27.5 |
| CRUXEval input | 35.9 | 39.5 | 39.1 | 39.3 | 38.9 | 29.1 | 34.3 | 19.4 | 41.8 |
Bold/underlining: row best/second-best; fills mark Accordion ranks (ties included). Diagnostics. MATH variants remain separate. Ouro HumanEval/HumanEval+: trailing prompt whitespace removed; corrected scores used throughout.
Table 22: Accordion-Base-32K held-out loss. The 8K evaluation settings match Table 15; lower is better.
| Domain | k = 0 | k = 3 | k = 6 | k = 9 | k = 12 |
|---|---|---|---|---|---|
| Web | 2.3007 | 2.2923 | 2.2883 | 2.2869 | 2.2867 |
| Math | 1.3436 | 1.3347 | 1.3308 | 1.3296 | 1.3295 |
| Code | 0.8681 | 0.8618 | 0.8586 | 0.8576 | 0.8574 |
B.7.1 Long-Context Evaluation Protocol
Tasks and generation. We evaluate 13 RULER tasks: eight needle-retrieval tasks, variable tracking, two word-aggregation tasks and two QA tasks. Inputs use the training tokenizer at 4K, 8K, 16K and 32K, with greedy generation. The scorer measures the fraction of reference targets recovered for retrieval, tracking and aggregation; QA receives credit when any reference answer is found. Scores are averaged equally across the 13 tasks. Accordion-Base-32K uses 500 examples per task and context length at all five budgets , with budget contrasts paired on identical examples.
Table 23: RULER for Accordion-Base-32K. Scores average 13 tasks (%), using 500 examples per task and context length. The last column gives the paired to gain [95% CI] in percentage points. Bold and underline mark the highest and second-highest scores within each row.
| Context | [95% CI] | |||||
|---|---|---|---|---|---|---|
| 4K | 86.52 | 86.29 | 86.87 | +0.72 [0.24, 1.20] | ||
| 8K | 78.15 | 79.18 | 79.44 | +1.79 [1.17, 2.40] | ||
| 16K | 70.10 | 73.94 | +3.93 [3.16, 4.66] | |||
| 32K | 49.49 | 51.80 | 54.58 | +5.47 [4.69, 6.23] |
Paired uncertainty estimates. Confidence intervals use task-stratified paired bootstrap with 10,000 resamples: examples are resampled within each task, the same indices are used for both budgets, and the 13 task gains are averaged equally. Gains are calculated before rounding. Intervals quantify evaluation-sample uncertainty conditional on the trained checkpoint. The scorer matches reference answers anywhere in the generated continuation after lowercasing and control-character normalization. Context and output together can exceed the nominal sequence length by approximately 50 tokens.
Endpoint-gain intervals exclude zero at all four context lengths (Table 23). At 32K, the improvement from to is concentrated in variable tracking and multi-key retrieval. Tables 24 and 25 retain all task scores.
Table 24: Complete RULER task scores at 4K and 8K. Scores are percentages over 500 examples per task and budget. S: single-needle; MK: multi-key; MQ: multi-query; MV: multi-value; VT: variable tracking; CWE/FWE: common/frequent-word extraction; QA1/2: SQuAD/HotpotQA. Bold/underline mark the highest/second-highest scores per row, including ties.
| Task | 4K context | ||||
|---|---|---|---|---|---|
| S1 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| S2 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| S3 | 97.20 | 93.20 | 95.00 | 95.40 | 95.40 |
| MK1 | 95.60 | 96.60 | 96.40 | 96.60 | 96.00 |
| MK2 | 99.40 | 99.80 | 100.00 | 100.00 | 100.00 |
| MK3 | 97.20 | 99.20 | 99.60 | 99.80 | 99.80 |
| MQ | 94.55 | 95.45 | 94.30 | 94.40 | 94.65 |
| MV | 95.40 | 92.05 | 91.55 | 91.95 | 91.85 |
| VT | 89.92 | 92.08 | 93.04 | 94.40 | 94.52 |
| CWE | 60.28 | 58.04 | 58.46 | 59.40 | 59.50 |
| FWE | 84.20 | 78.53 | 84.93 | 86.00 | 85.53 |
| QA1 | 67.00 | 70.80 | 70.60 | 70.80 | 71.20 |
| QA2 | 44.00 | 46.00 | 45.40 | 45.80 | 45.60 |
| Task | 8K context | ||||
|---|---|---|---|---|---|
| S1 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| S2 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| S3 | 88.40 | 83.40 | 83.00 | 83.60 | 83.60 |
| MK1 | 87.20 | 91.60 | 93.80 | 94.80 | 95.00 |
| MK2 | 97.60 | 99.20 | 99.40 | 99.00 | 98.80 |
| MK3 | 90.00 | 96.00 | 94.40 | 95.60 | 95.80 |
| MQ | 90.00 | 92.10 | 90.70 | 91.15 | 91.35 |
| MV | 88.20 | 86.75 | 86.65 | 85.75 | 86.35 |
| VT | 68.48 | 73.08 | 78.28 | 81.52 | 80.28 |
| CWE | 42.40 | 44.54 | 43.46 | 43.60 | 43.40 |
| FWE | 72.73 | 69.07 | 69.07 | 69.13 | 69.13 |
| QA1 | 47.80 | 50.40 | 50.40 | 51.00 | 50.60 |
| QA2 | 43.20 | 43.20 | 43.60 | 44.40 | 45.00 |
Table 25: Complete RULER task scores at 16K and 32K. The protocol, task abbreviations and ranking marks follow Table 24. Each task and budget uses 500 examples.
| Task | 16K context | ||||
|---|---|---|---|---|---|
| S1 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| S2 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| S3 | 97.80 | 97.80 | 97.40 | 97.60 | 97.80 |
| MK1 | 69.20 | 72.20 | 77.80 | 78.80 | 79.20 |
| MK2 | 86.80 | 91.60 | 93.80 | 92.80 | 93.20 |
| MK3 | 69.00 | 81.00 | 79.20 | 80.00 | 77.80 |
| MQ | 76.70 | 83.25 | 83.20 | 81.70 | 82.95 |
| MV | 81.95 | 87.80 | 87.65 | 86.40 | 86.20 |
| VT | 35.88 | 52.00 | 52.64 | 50.16 | 47.76 |
| CWE | 35.02 | 36.36 | 33.24 | 32.88 | 33.02 |
| FWE | 73.33 | 72.87 | 72.27 | 73.60 | 73.67 |
| QA1 | 48.60 | 47.80 | 50.20 | 50.40 | 50.60 |
| QA2 | 37.00 | 38.60 | 39.60 | 39.60 | 40.20 |
| Task | 32K context | ||||
|---|---|---|---|---|---|
| S1 | 99.00 | 95.20 | 95.40 | 95.20 | 95.20 |
| S2 | 91.20 | 92.00 | 93.60 | 93.40 | 93.00 |
| S3 | 95.00 | 92.80 | 94.80 | 95.40 | 95.60 |
| MK1 | 52.00 | 49.80 | 57.80 | 57.00 | 56.80 |
| MK2 | 41.80 | 57.00 | 63.80 | 61.40 | 60.80 |
| MK3 | 18.20 | 29.00 | 28.00 | 29.20 | 28.60 |
| MQ | 56.55 | 59.55 | 60.60 | 62.65 | 63.45 |
| MV | 51.10 | 53.75 | 57.80 | 57.65 | 58.10 |
| VT | 9.20 | 16.48 | 30.76 | 33.80 | 33.88 |
| CWE | 12.86 | 14.90 | 9.94 | 8.10 | 8.40 |
| FWE | 58.40 | 52.73 | 53.20 | 56.27 | 55.93 |
| QA1 | 25.20 | 27.80 | 30.20 | 29.40 | 30.60 |
| QA2 | 32.80 | 32.40 | 33.60 | 34.20 | 34.00 |
Evaluation consistency. All budgets use the same Accordion-Base-32K weights, tokenizer, examples and scoring rule, with exact agreement in example identities verified across budgets. A cross-implementation check repeats the unlooped evaluation on three 4K tasks using identical examples and the original batch partition; verbatim prediction agreement is 488/500 for multi-value retrieval, 477/500 for common-word extraction and 498/500 for variable tracking; absolute task-score differences are at most 0.25 points. Budgets use a revised inference implementation. The earlier implementation used for the other budgets was not archived, and cross-implementation validation is restricted to the three reported 4K tasks.
C Second-Pass Mechanism and Supporting Probes
C.1 Probe Protocol and Internal Representations
We probe Accordion-Base-32K at on 1,800 held-out documents, with 600 each from web text, mathematics and code. Documents have 1,024–15,999 tokens, are sampled without replacement and are deduplicated on their first 1,024 tokens. Each contributes those targets after an end-of-document token. Expert overlap counts the intersection of the two top-eight routed sets, excluding the shared expert. The routing and attention diagnostics adapt SMELT (Wang et al., 2026) to in-place layer repetition.
Interventions edit second-pass writes, preserve first-pass execution and recompute downstream activations. We compare teacher-forced NLL with the intact baseline using matched bf16 execution and fixed expert summation order. Intervals use 2,000 paired document bootstrap resamples, stratified by domain, with 95% percentile bounds. Recording preserves logits; removing all second-pass writes exactly recovers , and suffix removals recover intermediate budgets. Fixed-prefix execution makes a repeated layer's upstream computation identical across budgets that include it. Documents were split by a deterministic hash into exploration and confirmation halves; whole-layer removal effects differ by at most 0.3 millinats/token between halves. These probes measure inference-time sensitivity within one training run.
Input-only routing changes the input while retaining the first-pass bias; bias-only routing changes the bias while retaining the first-pass input (Figure 17). Fixing expert sets preserves second-pass inputs and recomputes mixture weights from second-pass scores. Fixing sets and weights additionally copies first-pass mixture weights.


Figure 20: Attention readouts change despite similar target selection. Left, cross-pass cosines before gating: normalized input (X), queries (Q), keys (K), values (V), attention-weighted values (PV) and output projection (O). Right, top-eight target overlap for the same head across passes (Same head), and within-pass controls using another head in the same or a different KV group (Same KV / Other KV), at query positions at least 64.
Even with identical routed sets, ranges from 0.39 to 0.87 across layers, where is the routed-expert output before gating. These conditional groups range from 861 tokens at layer 9 to 256,756 at layer 14. Their means weight tokens within each group; both inputs and mixture weights can change despite identical expert sets.
Mean gate magnitudes are 0.36–0.69 in layers 7–12 and 0.06–0.11 in layers 16–18, with second-pass training exposures of 60–80% and 20%, respectively. Position, gate magnitude and exposure covary under fixed-prefix training.
Write-norm ratios are computed per token using its first-pass write norm plus , then averaged within and across documents; no first-pass write has zero norm.
Attention readouts change despite similar target selection (Figure 20). Queries and keys retain cosines of 0.92–0.98, while output-projection cosines span -0.07–0.88. The same head retains 72% of its top-eight targets, versus 42% for another KV group and 53% for the same KV group.
Mean attention mass on the initial EOD token increases by 0.137 in the second pass across the twelve layers. Changed readouts thus coexist with similar target selection and increased attention to this sink position.
C.2 Write Interventions and Persistence through Post-Training
Layerwise interventions localize prediction sensitivity across the twelve repeated layers and test the learned write magnitude (Table 26). In layers 7–12, both attenuation and amplification raise NLL for attention, MoE and combined writes. Scaling multiplies the already gated second-pass write by ; the intact model has . At layer 9, fixing the expert set costs 6.08 [5.78, 6.38] millinats/token, versus 6.73 [6.42, 7.06] for removing the MoE write (95% intervals).
Second-pass computation contributes to prediction across domains and through post-training. Removing all writes from Accordion-Base-32K costs 14.25, 15.26 and 10.63 millinats/token in web text, mathematics and code, respectively.
Across Base-32K, Instruct and RL, removal increases NLL by 13.38, 9.66 and 7.22 millinats/token, with positive 95% intervals at every stage (Table 27). Common raw-text inputs provide a shared reference for comparing these computations. The largest cross-stage layerwise differences are 0.37 shared experts and 0.12 in MoE norm ratio. Within this persistent profile, removing layer 13's combined write costs 4.3, 8.3 and 6.8 millinats/token, respectively.
Table 26: Complete layerwise intervention effects. in millinats/token. “Both” always refers to second-pass attention and MoE writes, with first-pass execution preserved. The lower block of each panel gives scaling factors.
| Edit / layer | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|
| Remove attention | 1.86 | 3.11 | 2.71 | 2.34 | 2.45 | 1.98 |
| Remove MoE | 5.32 | 10.23 | 6.73 | 3.03 | 7.80 | 5.62 |
| Remove both writes | 7.94 | 9.07 | 7.64 | 7.28 | 6.86 | 5.66 |
| Fix expert set | 0.57 | 3.23 | 6.08 | 0.08 | 1.93 | 0.21 |
| Fix set and weights | 1.03 | 4.08 | 5.95 | 0.21 | 2.13 | 0.26 |
| Attention, 0.5 | 0.32 | 0.50 | 0.54 | 0.54 | 0.53 | 0.25 |
| Attention, 1.5 | 0.87 | 1.12 | 0.55 | 0.50 | 0.66 | 0.82 |
| MoE, 0.5 | 1.23 | 1.80 | 1.59 | 0.83 | 2.02 | 1.19 |
| MoE, 1.5 | 2.48 | 6.85 | 1.02 | 0.29 | 1.35 | 1.27 |
| Both, 0.5 | 1.46 | 1.84 | 1.91 | 1.79 | 1.96 | 1.26 |
| Both, 1.5 | 7.38 | 8.65 | 1.73 | 1.04 | 2.83 | 2.48 |
| Edit / layer | 13 | 14 | 15 | 16 | 17 | 18 |
|---|---|---|---|---|---|---|
| Remove attention | 0.44 | 0.05 | 0.30 | 0.28 | 0.01 | 0.01 |
| Remove MoE | 2.55 | 2.44 | 1.45 | 0.07 | 0.22 | 0.09 |
| Remove both writes | 4.28 | 2.19 | 1.52 | 0.54 | 0.23 | 0.09 |
| Fix expert set | 0.06 | 0.07 | 0.09 | -0.02 | -0.04 | -0.01 |
| Fix set and weights | 0.10 | 0.12 | 0.18 | -0.02 | 0.00 | 0.00 |
| Attention, 0.5 | 0.10 | -0.15 | 0.04 | 0.09 | -0.01 | -0.10 |
| Attention, 1.5 | 0.11 | 0.42 | 0.12 | -0.03 | 0.00 | 0.04 |
| MoE, 0.5 | 0.74 | 0.45 | 0.35 | 0.00 | 0.03 | 0.00 |
| MoE, 1.5 | 0.18 | 0.67 | 0.30 | -0.01 | 0.06 | -0.01 |
| Both, 0.5 | 1.13 | 0.30 | 0.33 | 0.14 | -0.01 | -0.05 |
| Both, 1.5 | 0.35 | 1.17 | 0.41 | -0.02 | 0.06 | 0.09 |
Table 27: Second-pass computation remains useful across training stages. Baseline NLL is in nats/token; intervention effects and their 95% document bootstrap intervals are in millinats/token. Each stage uses its own intact baseline on the same raw documents, without chat templates.
| Measurement | Base-32K | Instruct | RL |
|---|---|---|---|
| Baseline NLL | 1.5674 | 1.6974 | 1.7046 |
| Remove all writes | 13.38 [12.92, 13.87] | 9.66 [8.92, 10.41] | 7.22 [6.44, 7.97] |
| Remove all MoE | 38.23 [37.28, 39.18] | 43.04 [41.76, 44.30] | 47.20 [45.87, 48.53] |
| Remove all attention | 16.94 [16.38, 17.52] | 29.79 [28.82, 30.70] | 29.65 [28.68, 30.56] |
| Fix all expert sets | 12.58 [12.10, 13.06] | 17.98 [17.22, 18.71] | 19.56 [18.78, 20.33] |
C.3 Layer-Group Structure of Nonadditive Effects
Fifteen group interventions compare contiguous and spaced removals to characterize how layer arrangement shapes joint effects (Table 28), including the equal-size triplets in Table 10. For a removed set , the additive reference is ; the joint/sum ratio divides the measured joint effect by this reference. Ratios below one indicate subadditivity. All values use the same paired baseline.
Table 28: Joint effects for every tested three-, six- and nine-layer set. Effects and intervals are in millinats/token. Sums use unrounded single-layer estimates. Ratio intervals resample the joint and single-layer effects on the same documents.
| Removed layers | 16–18 | 13–15 | 10–12 | 7–9 | 7, 11, 15 |
|---|---|---|---|---|---|
| Joint effect | 0.25 | 1.23 | 3.61 | 8.07 | 16.49 |
| 95% interval | [0.18, 0.32] | [1.09, 1.37] | [3.37, 3.84] | [7.72, 8.46] | [15.98, 17.04] |
| Sum of singles | 0.86 | 8.00 | 19.79 | 24.65 | 16.32 |
| Joint / sum | 0.29 | 0.15 | 0.18 | 0.33 | 1.01 |
| Ratio 95% interval | [0.23, 0.36] | [0.14, 0.17] | [0.17, 0.19] | [0.32, 0.34] | [1.00, 1.03] |
| Removed layers | 8, 12, 16 | 9, 13, 17 | 10, 14, 18 | 13–18 | 10–15 |
|---|---|---|---|---|---|
| Joint effect | 15.81 | 12.19 | 9.13 | 1.45 | 4.82 |
| 95% interval | [15.28, 16.37] | [11.78, 12.64] | [8.76, 9.53] | [1.30, 1.59] | [4.56, 5.08] |
| Sum of singles | 15.27 | 12.15 | 9.56 | 8.86 | 27.79 |
| Joint / sum | 1.03 | 1.00 | 0.96 | 0.16 | 0.17 |
| Ratio 95% interval | [1.02, 1.05] | [0.99, 1.02] | [0.94, 0.97] | [0.15, 0.18] | [0.17, 0.18] |
| Removed layers | 7–12 | 7, 9, 1113, 15, 17 | 8, 10, 1214, 16, 18 | 10–18 | 7–15 |
|---|---|---|---|---|---|
| Joint effect | 11.89 | 23.83 | 23.20 | 5.01 | 13.18 |
| 95% interval | [11.44, 12.36] | [23.19, 24.57] | [22.52, 23.96] | [4.74, 5.28] | [12.73, 13.65] |
| Sum of singles | 44.44 | 28.47 | 24.83 | 28.65 | 52.44 |
| Joint / sum | 0.27 | 0.84 | 0.93 | 0.17 | 0.25 |
| Ratio 95% interval | [0.26, 0.27] | [0.83, 0.85] | [0.92, 0.95] | [0.17, 0.18] | [0.24, 0.26] |
All adjacent triplet ratio intervals lie below one; spaced triplet point estimates remain close to one. Contiguous six- and nine-layer sets yield ratios of 0.16–0.27, versus 0.84 and 0.93 for the two spaced six-layer sets. The tested sets include both suffixes and interior segments.
Table 29: Pair effects depend on layer identity. Seven layer-pair interventions quantify variation in joint effects, with 95% document bootstrap intervals. Joint ΔNLL is in millinats/token.
| Removed layers | 7, 8 | 8, 9 | 8, 11 | 9, 10 | 9, 11 | 10, 11 | 12, 13 |
|---|---|---|---|---|---|---|---|
| Joint effect | 8.78 | 12.91 | 16.60 | 14.45 | 16.56 | 6.70 | 8.61 |
| 95% interval | [8.43, 9.16] | [12.45, 13.43] | [16.07, 17.18] | [13.97, 14.98] | [16.04, 17.13] | [6.40, 7.01] | [8.28, 8.93] |
| Sum of singles | 17.02 | 16.71 | 15.93 | 14.91 | 14.49 | 14.13 | 9.94 |
| Joint / sum | 0.52 | 0.77 | 1.04 | 0.97 | 1.14 | 0.47 | 0.87 |
| Ratio 95% interval | [0.50, 0.53] | [0.76, 0.79] | [1.03, 1.05] | [0.95, 0.98] | [1.13, 1.16] | [0.46, 0.49] | [0.85, 0.88] |
Pair interventions refine the group-level finding (Table 29): layers 10+11 have a joint/sum ratio of 0.47, whereas the adjacent pair 9+10 has a ratio of 0.97. Nonadditivity also occurs within a layer: removing layer 8’s MoE write costs 10.23 millinats/token, compared with 9.07 for removing both writes. The effect of a write depends on the remaining computation.
These comparisons characterize the tested layer sets: adjacent and spaced groups contain different layers, so they do not isolate layer distance as the cause of the difference. Many internal removals also produce paths outside the five trained prefixes. The results therefore describe sensitivity to these interventions rather than establish why fixed-prefix training outperforms other path designs.
Second-pass writes at layers 7, 8, 10 and 11 oppose the next layer’s first-pass write (cosines -0.45--0.38, versus -0.04-0.03 at k = 0). These alignments characterize update direction along the intact path; the Hydra effect (McGrath et al., 2023) concerns downstream write changes induced by ablation. Identifying such compensation here would require measuring the downstream response to removal; neither intact-path alignment nor the joint/sum ratio alone establishes it.
C.4 Length Dependence and Structured Prediction
The following behavioral probes connect additional depth to input structure. They complement the internal measurements with controlled length bins and a structured answer task. The length analysis uses 7,863 held-out documents from the same three domains, divided into nine bins up to 8K, following the length-binned diagnostic in SMELT (Wang et al., 2026). Within each bin, the gain is the token-weighted reduction on complete documents.
Table 30: Length preference across all nonzero budgets. Long/short gain ratios for Accordion-Base-32K. Long bins end at 512–4,096 tokens; short bins at 32–256 tokens. The ratio compares unweighted means of the four bin-level gains in each group. Intervals are 95% document bootstrap intervals.
| Measurement | ||||
|---|---|---|---|---|
| Long / short gain | ||||
| 95% interval | [0.97, 1.43] | [1.10, 1.57] | [1.23, 1.73] | [1.23, 1.73] |
Depth gains in the five longer bins remain within 13.2–15.1 millinats/token across checkpoints, while the shortest-bin gain decreases from 20.0 to 4.5. The length and position profiles appear in Figure 21, and Table 30 reports the ratios at all four nonzero budgets. At , the long/short gain ratio consequently rises from 0.85 at 2.01T tokens to 1.14 at 3T and 1.44 for Accordion-Base-32K: longer-bin gains persist as short-input gains decrease. This within-8K analysis complements the 32K retrieval evaluation in Appendix B.


Figure 21: Depth gains across input lengths and positions. Accordion-Base-32K, versus . All nine bins are shown; whiskers give 95% document bootstrap intervals. The final bin ends at 8,191 tokens.
Bracket completion. Additional depth improves structured answer prediction on 400 newly generated prompts in the BIG-bench Dyck Languages format (BIG-bench authors, 2023), each with 32 demonstrations. The task predicts the closing sequence for unmatched opening brackets. Teacher-forced exact match requires every target bracket to be the argmax when conditioned on the gold preceding sequence; answer NLL sums the target-bracket losses.
Table 31: Depth improves bracket completion with long demonstrations. All five budgets on the same 400 prompts with 32 demonstrations. Exact match is teacher-forced, and answer NLL changes are nats per answer relative to . At all tested positive demonstration counts below 32, paired exact-match gain intervals include zero.
| Metric | |||||
|---|---|---|---|---|---|
| Exact match (%) | |||||
| Answer NLL change |
With 32 demonstrations, additional depth raises teacher-forced exact match (Table 31) from 8.5% to 12.0% (+3.5 points; 95% question-bootstrap interval [1.25, 5.75]) and reduces answer NLL by 0.259 nats at , demonstrating a structured-prediction benefit under long-demonstration inputs.
Depth gains without demonstrations. A nine-task sweep (excluding MMLU) measures depth gains at zero and sixteen demonstrations: 1.45 and 0.95 points, respectively. Paired intervals for the change across shot counts include zero. The positive zero-shot point estimate locates a depth benefit without demonstrations.
D Supervised Fine-Tuning Details
Accordion-Instruct is trained for 8,614 steps from Accordion-Base-32K, with all five inference budgets sharing the resulting weights. The common conversational evaluation protocol supports paired comparisons with Accordion-RL at each budget.
D.1 Data Sources and Packing
Training-token counts account for the number of epochs assigned to each of the 12 data components (Table 32). Single-pass counts measure packed input tokens, including multiple retained solutions per problem. The resulting training set contains 71.734B input tokens, of which 68.5B contribute to the loss. The source-level counts in Table 32 separate mathematics, code, and instruction/other data.
Table 32: SFT training data by source. All 12 packed training components, with input tokens in billions before and after applying the indicated epochs. Category shading identifies mathematics, code, and instruction/other data. Validation is excluded; the 68.5B loss-bearing tokens are a subset of the 71.734B training input tokens. Totals use unrounded counts.
| Category | Dataset / retained subset | Single pass (B) | Epochs | Training (B) |
|---|---|---|---|---|
| Mathematics | Nemotron-SFT-Math-v3 | 18.098 | 1 | 18.098 |
| OpenMathReasoning (CoT) | 23.592 | 1 | 23.592 | |
| OpenR1-Math-220k | 1.028 | 1 | 1.028 | |
| Code | Nemotron-SFT-Comp.-Prog.-v2 (Python) | 1.985 | 1 | 1.985 |
| Nemotron-SFT-Comp.-Prog.-v2 (C++) | 2.014 | 1 | 2.014 | |
| AceReason-1.1-SFT (code) | 9.529 | 1 | 9.529 | |
| Dolci-Think-SFT-Python (correct solutions) | 3.867 | 1 | 3.867 | |
| Instruction and other | Nemotron instruction/chat-v2 (think) | 2.304 | 2 | 4.608 |
| Nemotron instruction/chat-v2 (direct) | 1.320 | 2 | 2.639 | |
| Nemotron chat-v1 | 1.662 | 2 | 3.323 | |
| Nemotron Comp.-Prog.-v2 (exercism / SQL) | 0.496 | 2 | 0.993 | |
| Nemotron safety-v1 | 0.029 | 2 | 0.058 | |
| Total | 71.734 |
D.2 Optimization
The SFT recipe resets the optimizer state and uses a global batch of 256 packed sequences of length 32,768, corresponding to a nominal 8,388,608 input tokens per update. The iteration counter also resets; with the budget-sampling seed unchanged, SFT restarts the budget sequence used at the beginning of pretraining. Micro-batch size is one sequence, with context parallelism of two and data parallelism of 256 across 512 GPUs. Packed conversations have separate attention boundaries and reset position indices. Consumed-token counts reflect actual pack occupancy within the nominal batch capacity.
D.3 Generation and Scoring Protocol
Evaluation uses vLLM with bfloat16 precision and identical task-specific prompts, response limits and scorers for SFT and RL. Table 33 groups tasks by their output-token limits. Sampling and deterministic IFEval scoring follow §4.1.3; the greedy comparison changes only the decoding policy for the eight non-AIME tasks. Paired percentile intervals resample problems after averaging repeated responses within each problem. Table 34 specifies the SFT bootstrap settings; the RL endpoint intervals in Table 39 use 2,000 resamples with Python random.Random(0). The incomplete-response rate counts answers without a closing reasoning tag; it is distinct from reaching the token limit.
The gains from additional depth persist under both decoding policies (Figure 22). All eight non-AIME tasks improve between and under greedy decoding, and seven improve under sampling. Under each policy, five of these task gains have paired intervals excluding zero. Both AIME tasks use the same sampled evaluation in
Table 33: Output-token limits for the common post-training evaluation. The matched SFT and RL comparison uses the same limits. Public references request these limits, capped by their remaining context space as specified in Appendix D.4.
| Tasks | Maximum output tokens |
|---|---|
| GSM8K, IFEval, IFBench, MMLU-Redux | 8,192 |
| MATH500, HumanEval+, MBPP+ | 16,384 |
| AIME 2024, AIME 2025, LiveCodeBench | 30,000 |
Table 34: SFT decoding policies across all five budgets. vLLM scores (%), endpoint differences and paired intervals (percentage points). Differences are calculated before rounding. Intervals use NumPy default_rng(0); the resample count is unrecorded in the archived evaluation. Sampled scores serve as the SFT baseline in Table 38; the greedy comparison tests depth gains across decoding policies. AIME has one 16-response sampled evaluation. Ranks compare the five budgets within each task and decoding-policy row.
| Task | k = 0 | k = 3 | k = 6 | k = 9 | k = 12 | 95% CI | |
|---|---|---|---|---|---|---|---|
| Greedy (one response per problem) | |||||||
| GSM8K | 75.82 | 79.76 | 81.20 | 82.26 | 81.27 | +5.46 | [+3.26, +7.58] |
| MATH500 | 69.40 | 76.60 | 77.60 | 78.40 | 82.20 | +12.80 | [+8.80, +16.60] |
| HumanEval+ | 65.24 | 63.41 | 70.12 | 68.29 | 65.85 | +0.61 | [-6.10, +6.71] |
| MBPP+ | 60.05 | 62.17 | 66.40 | 66.14 | 66.67 | +6.61 | [+2.38, +10.85] |
| LiveCodeBench | 18.94 | 23.79 | 27.97 | 26.65 | 26.21 | +7.27 | [+4.19, +10.35] |
| IFEval | 52.31 | 54.34 | 57.67 | 56.01 | 54.16 | +1.85 | [-2.59, +6.47] |
| IFBench | 16.00 | 18.67 | 20.00 | 18.33 | 18.67 | +2.67 | [-1.67, +7.33] |
| MMLU-Redux | 53.26 | 62.27 | 64.32 | 62.74 | 63.10 | +9.83 | [+8.44, +11.37] |
| Sampling (T = 0.6, top-p = 0.95; AIME averages 16 responses) | |||||||
| GSM8K | 83.40 | 85.67 | 88.78 | 87.72 | 88.63 | +5.23 | [+3.26, +7.13] |
| MATH500 | 83.40 | 84.80 | 87.40 | 86.80 | 89.20 | +5.80 | [+2.60, +8.80] |
| AIME 2024 | 30.00 | 34.79 | 39.58 | 43.54 | 43.75 | +13.75 | [+8.54, +19.17] |
| AIME 2025 | 26.88 | 28.96 | 32.92 | 36.88 | 31.88 | +5.00 | [+1.46, +8.96] |
| HumanEval+ | 79.88 | 78.05 | 79.27 | 79.88 | 81.71 | +1.83 | [-4.27, +7.32] |
| MBPP+ | 69.58 | 67.72 | 73.02 | 70.90 | 72.75 | +3.17 | [-1.06, +7.14] |
| LiveCodeBench | 26.65 | 31.94 | 34.58 | 36.34 | 37.89 | +11.23 | [+7.49, +14.98] |
| IFEval | 62.11 | 64.88 | 65.99 | 63.40 | 60.07 | -2.03 | [-6.47, +2.40] |
| IFBench | 17.33 | 20.33 | 20.33 | 19.33 | 23.00 | +5.67 | [+1.00, +10.67] |
| MMLU-Redux | 60.88 | 63.47 | 65.82 | 66.17 | 65.16 | +4.28 | [+2.80, +5.67] |
the two comparisons and also have positive endpoint intervals. Sampled LiveCodeBench improves monotonically across the five budgets, whereas sampled IFEval peaks at . These differences favor selecting the budget for the target workload; Table 34 provides all scores and intervals.
D.4 Common-Protocol Public Post-Training Comparison
Reference configurations. The reference models are Qwen3-0.6B, Qwen3-1.7B, OLMoE-1B-7B-0125-SFT and Ouro-1.4B-Thinking. Each model uses its native chat template. Qwen3 enables thinking; OLMoE uses its native direct-answer mode. Ouro uses four total recurrent steps with early exit at step three and preserves special tokens. Generation uses vLLM 0.24 in bfloat16 with no system prompt. Sampling, reasoning-block extraction and deterministic IFEval scoring follow the common protocol in §4.1.3 for all references, SFT and RL. Requested output limits are those in Table 33. The realized cap is the smaller of that limit and remaining context space. OLMoE's native context is 4,096, giving realized limits of 3,088–4,069; other references use 32,768.
Primary scores and diagnostics. All primary scores use the common task-specific answer extractors. Alternative code-block and MMLU letter-extraction scores characterize extraction sensitivity. The model names and context limits identify the reference configurations used in Tables 7 and 9. Budget gains reflect both answer quality and whether the reasoning trace reaches a final answer. On MATH500, sampling raises accuracy from to and reduces responses without a closing reasoning tag from to . Additional depth raises sampled

Figure 22: SFT budget response under greedy and sampled decoding. Sampling uses , top- and one response per problem. Output limits are held fixed within each task. Complete scores and paired intervals appear in Table 34.
accuracy to 89.2%, yielding a 5.80-point endpoint gain alongside the 12.80-point gain under greedy decoding. On sampled LiveCodeBench, this incomplete-response fraction falls from 36.8% to 21.1% as increases from 0 to 12. These completion statistics accompany the matched decoding-policy comparisons in Table 34.
E Reinforcement-Learning Details
E.1 Data Sources
Expert training draws on public collections of instruction-following, mathematics and code problems. Source-level counts before difficulty and code-verifier filtering appear in Table 35; the final expert pools and balanced distillation sample appear in Table 8.
Table 35: Public sources for RL. Counts describe the deduplicated and decontaminated source pools before difficulty and code-verifier filtering. The final expert pool sizes are reported in the text. Mathematics counts sum to 207,156, IF to 152,608 and code to 22,016. Dataset names link to their public releases where separately identifiable.
| Domain | Public dataset / subset | Prompts |
|---|---|---|
| Instruction following | Nemotron-Cascade-RL-Instruction-Following | 98,092 |
| Nemotron-RL-instruction_following | 45,079 | |
| Nemotron-RL instruction following (structured outputs) | 9,437 | |
| Mathematics | Nemotron-RL-math-OpenMathReasoning | 81,277 |
| OpenR1-Math-220k | 59,703 | |
| AceReason-Math | 46,280 | |
| Nemotron-Math-v2 (AoPS subset) | 17,479 | |
| Nemotron-Cascade-RL-Math | 2,417 | |
| Code | Nemotron-RL-coding-competitive_coding (competitive problems) | 14,170 |
| Same release (filtered OpenCodeReasoning-25k subset) | 7,846 |
E.2 Expert Training and Model Selection
Accordion-RL is obtained after ten distillation steps from a weighted merge of the three RL experts. All experts share Accordion-Instruct as their initialization. Their selected training steps and stopping criteria are summarized in Table 36.
Expert training uses the filtered domain pools in §4.2.1 and the prompt-group budget assignment and per-budget updates in §4.2.2. Response generation and policy evaluation use the same budget. The soft overlength penalty is disabled for mathematics and code. Prompts contain up to 2,048 tokens for mathematics and code, and 4,096
Table 36: Expert selection and entropy-based stopping. Steps count domain-specific rollout/training iterations, each containing up to five per-budget optimizer updates; hardware allocations are reported below. The learning-rate scheduler advances once per training step. Validation scores average all five budgets. Training stops when entropy exceeds the domain-specific threshold. The selected experts are merged to initialize the student, selected after ten distillation training steps.
| Expert | Selected step | Validation score (%) | Stopping step | Entropy at stopping | Entropy threshold |
|---|---|---|---|---|---|
| IF | 130 | 81.11 | 133 | 1.811 | 1.8 |
| Mathematics | 30 | 47.89 | 45 | 1.533 | 1.5 |
| Code | 32 | 70.85 | 35 | 1.527 | 1.5 |
tokens for instruction following, within the 32,768-token context window. The mathematics branch uses 24 nodes and code 40 nodes; the IF branch uses 24 nodes at stopping. Training uses verl (Sheng et al., 2024), FSDP2 and vLLM (Kwon et al., 2023).
Validation samples two responses per problem at across all five budgets. The IF and mathematics validation sets each contain 512 problems; the code set contains 387. AIME's 60 problems are additionally monitored for mathematics but do not enter expert stopping decisions. A new checkpoint must improve over the current best by more than one paired standard error to replace it; the plateau rule stops after three evaluations without such improvement. In all three runs, the entropy threshold is reached before the validation plateau rule would stop training (Table 36). The paired one-standard-error selection rule retains the step-30 mathematics expert: the subsequent 0.51-point increase at step 40 is below its 0.61-point paired standard error (Table 37).
Merge and student selection. The grouped merge is selected from the parameter-group alternatives in Table 41. Student selection compares downstream evaluations of MOPD steps 10, 20, 30, 40 and 50 and selects step 10. Candidates after step 10 use an added task-reward term and a lower learning rate. Reported paired intervals quantify evaluation-sample uncertainty conditional on the selected models, without adjustment for checkpoint or merge selection.
Learning signals. During the ten-step distillation run, token distillation loss falls from 0.0708 to 0.0074, while monitored task reward rises from 0.466 to 0.649 under a distillation-only objective. Table 37 places these signals alongside expert training gains and the mathematics selection statistics.
Table 37: Expert learning, distillation progress and selection statistics. Expert validation averages the five budgets. The ten-step distillation objective uses teacher supervision; task reward is monitored separately. The lower block reports the paired mathematics checkpoint-selection comparison.
| Quantity | Value or change |
|---|---|
| IF mean training reward, first 50 recorded steps | |
| Mathematics validation gain over initial evaluation (pp) | |
| Code validation gain over initial evaluation (pp) | |
| MOPD task reward, ten-step run | |
| MOPD token distillation loss, ten-step run | |
| Mathematics validation at step 40 (%) | |
| Step 40 improvement over selected step 30 (pp) | |
| Paired standard error of that improvement (pp) |
E.3 Full Matched Final-Model Evaluation
The matched comparison evaluates Accordion-RL and Accordion-Instruct on the same problems at each budget. Table 38 reports all scores and the equal-task mean RL–SFT change within each displayed group: knowledge/instruction following (three tasks), mathematics (four) and code (three). IFEval uses the deterministic scoring procedure in §4.1.3. The matched generation and scoring protocol is specified there and in Appendix D.
Table 38: Complete matched SFT and RL evaluation. Benchmark cells give Accordion-Instruct / Accordion-RL scores (%). Mean rows average the displayed RL–SFT differences equally over tasks within each group, in percentage points. Bold and underlining identify the best and second-best of the ten model–budget scores per benchmark; group changes are not ranked.
| Benchmark | Accordion-Instruct / Accordion-RL | ||||
|---|---|---|---|---|---|
| IFEval | |||||
| IFBench | |||||
| MMLU-Redux | |||||
| Knowledge / IF mean | |||||
| GSM8K | |||||
| MATH500 | |||||
| AIME 2024 | |||||
| AIME 2025 | |||||
| Mathematics mean | |||||
| HumanEval+ | |||||
| MBPP+ | |||||
| LiveCodeBench | |||||
| Code mean | |||||
RL reduces the response-level truncation rate on LiveCodeBench from 21.4–37.7% under SFT to 1.3–2.6% across budgets. On the full matched problem set, accuracy at rises from 34.58% to 39.87%; Table 38 reports all five budgets. Figure 23 separates response completion from accuracy conditional on completion.


Figure 23: Response completion and conditional accuracy on LiveCodeBench. RL and SFT use matched generation settings. Conditional scores characterize each model's own nontruncated subset, with RL–SFT differences of -14.83 to -5.18 points across these different subsets. Overall accuracy in Table 38 uses the full paired problem set.
Table 39: Accordion-RL gains from additional depth. Differences compare with , in percentage points, and are calculated before rounding. Paired 95% percentile intervals use 2,000 problem-level resamples with Python random.Random(0); a dash indicates that no interval is reported here.
| Task | 95% CI | Task | 95% CI | ||
|---|---|---|---|---|---|
| GSM8K | +5.00 | [3.18, 6.82] | HumanEval+ | +4.27 | - |
| MATH500 | +6.00 | [3.00, 9.00] | MBPP+ | +4.23 | [0.53, 7.94] |
| AIME 2024 | +10.63 | - | LiveCodeBench | +6.61 | [3.08, 10.35] |
| AIME 2025 | +8.75 | - | MMLU-Redux | +3.79 | [2.57, 4.99] |
E.4 Model Merging
All expert deltas are defined relative to the common SFT initialization and combined using the merge rule in §4.2.2. Table 40 specifies the coefficients and tensor counts for each parameter group. Expert-comparison domain summaries average task differences equally within each budget and then average the five budgets; MMLU-Redux is excluded. Their 95% intervals use paired problem-bootstrap resampling, averaging repeated AIME responses within each problem, without adjustment across comparisons. Merging uses single-precision arithmetic on corresponding tensors with matching shapes, preserving the shared architecture and the frozen SFT balancing biases.
Table 40: Parameter groups in the selected RL merge. Coefficients multiply expert deltas relative to SFT. The first row defines the 289 shared-component tensors referred to in the merge comparisons. Frozen balancing biases are copied, not merged.
| Parameter group | Tensors | IF | Code | Math |
|---|---|---|---|---|
| Attention projections and attention normalization; shared MoE experts; loop gates; layer normalization, including the final norm | 289 | 1 | 0.5 | 0.5 |
| Routed expert projections; routers; embeddings; language-model head | 74 | 1 | 1 | 1 |
| Frozen balancing biases | 48 | Copied from SFT | ||
| Total | 411 | - | - | - |
Scaling code and mathematics deltas in shared components improves the mathematics-domain difference by 3.99 points relative to unit-weight merging, while retaining positive gains over the instruction-following and code experts (Table 41). These merge controls test the parameter grouping used to initialize three-domain distillation. After distillation, the student exceeds the corresponding specialist by 1.65 points in instruction following, 1.37 in mathematics and 2.04 in code, with all three paired 95% intervals above zero (Table 42). These equal-task, equal-budget domain averages establish integration of the three specialists in one checkpoint.
Table 41: Merge variants relative to the corresponding domain expert. Entries are equal-task, equal-budget mean gains [paired 95% intervals], in percentage points. Omitted domains in pairwise merges have coefficient zero; unspecified included coefficients are one. “Shared” denotes the 289 tensors in Table 40. A mathematics-domain interval is unavailable for the IF–code merge.
| Variant | Instruction following | Code | Mathematics |
|---|---|---|---|
| IF + code | +1.76 [+0.35,+3.11] | +0.47 [-0.77,+1.62] | - |
| IF + math | +1.93 [+0.51,+3.28] | +2.03 [+0.83,+3.21] | -0.52 [-1.34,+0.32] |
| Code + math | -24.67 [-26.44,-22.91] | +1.97 [+0.85,+3.13] | -0.06 [-0.84,+0.69] |
| Unit weights | +1.85 [+0.47,+3.21] | +0.44 [-0.76,+1.66] | -4.92 [-5.95,-3.93] |
| Math 0.5 throughout | +2.69 [+1.31,+4.11] | +1.17 [+0.12,+2.27] | -2.24 [-3.03,-1.44] |
| Shared code/math 0.5 | +2.36 [+0.90,+3.79] | +1.78 [+0.64,+2.98] | -0.93 [-1.75,-0.10] |
| Remaining code/math 0.5 | +1.97 [+0.65,+3.38] | +1.11 [-0.06,+2.29] | -3.18 [-4.14,-2.23] |
| Shared code 0.5 | +2.04 [+0.63,+3.44] | +1.31 [+0.22,+2.40] | -2.00 [-2.84,-1.17] |
| Shared IF 0.5 | -3.41 [-4.78,-1.99] | +1.52 [+0.41,+2.67] | -1.73 [-2.57,-0.92] |
Table 42: Domain-level gains after merging and distillation. Differences are percentage points, averaging tasks equally within each budget and then averaging the five budgets. Intervals use paired problem-bootstrap resampling.
| Comparison | Mean gain | 95% CI |
|---|---|---|
| Student versus IF expert, instruction following | +1.65 | [0.30, 3.03] |
| Student versus mathematics expert, mathematics | +1.37 | [0.65, 2.11] |
| Student versus code expert, code | +2.04 | [0.82, 3.21] |
| Student versus grouped merge, mathematics | +2.30 | [1.46, 3.14] |
E.5 Multi-Teacher On-Policy Distillation
Teacher matching. MOPD initializes the student from the grouped merge and selects one of the three expert teachers according to each prompt’s domain. The teacher uses the student’s loop budget and scores the same response generated by the student. For a student response y to prompt x from domain j, let denote the token context. The token-level training signal is
Both probabilities therefore score the same token and prefix at the same budget. This signal is used as a token-level advantage with proximal policy optimization (PPO) clipping at 0.2 and token-level importance weights correcting rollout/training discrepancies. The first ten training steps optimize distillation alone, with coefficient one; task rewards are logged but do not enter this objective.
Sampling and updates. Distillation samples equally from the three domain pools in §4.2.1. It uses the same identifier-based budget assignment and separate per-budget optimizer updates as expert training (§4.2.2). The learning-rate scheduler advances once per training step, which can contain up to five optimizer updates. Teacher inference instances serve fixed domain–budget combinations, ensuring that supervision matches the student's domain and budget. The generation, optimization and hardware settings are listed in Table 43.
Table 43: Multi-teacher on-policy distillation settings. The student generates its own responses, and each domain expert evaluates them at the student's inference budget.
| Setting | Value | Setting | Value |
|---|---|---|---|
| Training pool (prompts) | 57,600 | Warmup (training steps) | 10 |
| Prompts per rollout batch | 576 | Peak learning rate | |
| Responses per prompt | 8 | Student nodes | 36 |
| Responses per rollout batch | 4,608 | Additional teacher nodes | 4 |
| Max. prompt tokens | 2,048 | GPUs per node | 8 H800 |
| Max. response tokens | 28,672 | Teacher inference instances | 32 |
| Context limit (tokens) | 32,768 |
Domain-matched teachers and budget-matched supervision preserve the five inference paths during expert integration. The resulting domain-average improvements are reported in Table 42.
F Computational Details
F.1 Computational Cost
Uniform budget sampling jointly trains five inference paths in one checkpoint, with an average calculated training cost of approximately the unlooped path per token at 8K (a 20.2% increase). Estimates include forward and backward attention and active-parameter computation, excluding communication and activation recomputation. KV storage assumes bf16 values, four 128-dimensional heads and separate caches for repeated layers (Table 44). Latency grows approximately with execution count, while additional memory closely follows KV storage. Table 44 includes the 95th-percentile end-to-end latency across timed iterations.
We measure inference cost across all budgets using one 80 GB H800 with vLLM 0.24.0 (Kwon et al., 2023) and PyTorch 2.11. Weights and activations use bf16, with FlashAttention, fused MoE kernels, graph compilation and CUDA graphs. Each layer execution has a separate KV cache. Chunked prefill processes up to 32,768 tokens per step; prefix caching is disabled, and the KV pool is sized for each workload. Prompts are contiguous held-out web spans. Measurements use Accordion-RL, whose architecture is unchanged by post-training. Table 44 specifies prompt lengths and batch sizes.
Greedy decoding ignores the end-of-sequence marker. Let denote the synchronized latency to generate output tokens in one iteration. We measure and and compute
Five warm-up iterations precede 20 timed iterations. Reported latencies average two hosts' medians, with budget order reversed between hosts. The largest discrepancy is 7.7% relative to the smaller measurement. Peak allocated
GPU memory includes weights (approximately 11 GiB), the KV pool and CUDA-graph buffers. At the 32K workload with batch size eight, peak allocated memory ranges from 24.90 to 30.90 GiB across the five budgets on one 80 GB H800.
Table 44: Calculated model costs and measured inference cost. The first block is analytical. In the runtime block, each metric cell gives batch 1 / batch 8, measured on one H800 with 128 output tokens per sequence. Throughput counts tokens across the batch; latency covers the batch. Prompt lengths group all five budgets, with 32,640 prompt tokens per sequence for the 32K workload. Measurement settings appear above.
| Calculated model costs at 8K | ||||||
|---|---|---|---|---|---|---|
| Layer executions | 24 | 27 | 30 | 33 | 36 | |
| Rel. train FLOPs | 1.000 | 1.101 | 1.202 | 1.303 | 1.404 | |
| KV/token (KiB) | 48 | 54 | 60 | 66 | 72 | |
| Prompt tokens | Prefill (tok/s) | TTFT (ms) | Decode (tok/s) | TPOT (ms) | p95 (ms) | Peak (GiB) | KV (GiB) | |
|---|---|---|---|---|---|---|---|---|
| 8,192 | 0 | 198.3k / 216.9k | 41.3 / 302.2 | 379 / 1,310 | 2.64 / 6.11 | 391 / 1,080 | 12.17 / 15.94 | 0.38 / 3.00 |
| 3 | 176.7k / 192.0k | 46.4 / 341.3 | 342 / 1,191 | 2.93 / 6.72 | 420 / 1,223 | 12.22 / 16.33 | 0.42 / 3.38 | |
| 6 | 159.6k / 172.7k | 51.3 / 379.4 | 309 / 1,073 | 3.24 / 7.45 | 478 / 1,343 | 12.27 / 16.71 | 0.47 / 3.75 | |
| 9 | 144.2k / 157.2k | 56.8 / 416.9 | 275 / 944 | 3.64 / 8.48 | 523 / 1,499 | 12.31 / 17.09 | 0.52 / 4.13 | |
| 12 | 133.3k / 144.0k | 61.4 / 455.1 | 252 / 887 | 3.96 / 9.02 | 567 / 1,640 | 12.36 / 17.47 | 0.56 / 4.50 | |
| 16,384 | 0 | 179.8k / 178.7k | 91.1 / 733.6 | 343 / 1,083 | 2.92 / 7.38 | 463 / 1,685 | 12.91 / 18.94 | 0.75 / 6.00 |
| 3 | 158.1k / 158.2k | 103.6 / 828.6 | 330 / 990 | 3.03 / 8.08 | 502 / 1,869 | 13.01 / 19.70 | 0.84 / 6.75 | |
| 6 | 142.4k / 140.4k | 115.0 / 933.4 | 281 / 895 | 3.56 / 8.94 | 569 / 2,088 | 13.10 / 20.46 | 0.94 / 7.50 | |
| 9 | 129.7k / 126.7k | 126.3 / 1,034.2 | 257 / 818 | 3.89 / 9.78 | 622 / 2,296 | 13.20 / 21.21 | 1.03 / 8.25 | |
| 12 | 118.2k / 116.3k | 138.6 / 1,127.0 | 246 / 764 | 4.07 / 10.47 | 674 / 2,480 | 13.29 / 21.97 | 1.13 / 9.00 | |
| 32,640 | 0 | 134.5k / 130.5k | 242.7 / 2,001.0 | 314 / 876 | 3.19 / 9.14 | 648 / 3,167 | 14.39 / 24.90 | 1.49 / 11.95 |
| 3 | 118.8k / 115.8k | 274.7 / 2,254.4 | 293 / 781 | 3.42 / 10.24 | 724 / 3,560 | 14.57 / 26.40 | 1.68 / 13.45 | |
| 6 | 107.3k / 104.4k | 304.2 / 2,501.0 | 256 / 709 | 3.91 / 11.29 | 802 / 3,952 | 14.76 / 27.90 | 1.87 / 14.94 | |
| 9 | 97.4k / 95.0k | 335.1 / 2,749.1 | 235 / 645 | 4.25 / 12.41 | 877 / 4,336 | 14.95 / 29.40 | 2.05 / 16.44 | |
| 12 | 89.3k / 86.9k | 365.7 / 3,004.6 | 217 / 590 | 4.61 / 13.57 | 954 / 4,733 | 15.14 / 30.90 | 2.24 / 17.93 |