TrunkFish: Making Model Width Incrementally Refinable

Owen M Dugan, Liam Dugan, Aaryan Singhal, Christopher De Sa, Christopher ReNeurIPS 2026

TL;DR

When a small language model isn't smart enough to answer a prompt, escalating to a wider model normally forces you to throw away your work and start the computation over from scratch. Trunkfish restructures the Transformer so that smaller models are exact mathematical prefixes of larger ones—meaning you can seamlessly "widen" a model mid-flight by computing only the newly added capacity. This turns a collection of separate model sizes into a single nested object that trains all widths in one pass and slashes redundant compute during adaptive inference.

What Problem Does This Paper Address?

Modern AI scales compute along three main axes: sequence length, depth (layers), and width (hidden dimension size). Two of these already support incremental refinement—meaning if you invest a little compute and realize you need more, you can build on what you already have. Sequence length does this via causal masking and KV caches; depth increasingly does it via early-exit or looped layers.

Width has been the missing piece. Even in clever "elastic-width" architectures (like MatFormer) where multiple model sizes share weights, width is merely selectable, not refinable. Because standard MLPs, attention projections, and normalization layers mix all hidden coordinates together, activating wider dimensions alters the math of the narrower ones. Consequently, if you run a narrow model during inference and decide a token needs a wider model, you have to discard your activations and pay the full price of the larger model from scratch.

Methods

Trunkfish makes width incrementally refinable by partitioning the hidden dimension into ordered chunks and enforcing two strict architectural invariants:

  1. Width-Causality: New width can read old width, but old width can never read new width. Just as causal attention prevents past tokens from seeing future tokens, Trunkfish replaces standard dense layers with block lower-triangular or stricter block-diagonal maps. Normalization is also made chunk-local (computing RMSNorm per chunk so adding new coordinates doesn't shift the statistics of earlier ones).
  2. Cumulative Prefix Readout: Each hidden chunk projects its own contribution to the vocabulary logits. The final prediction for a size-$k$ model is simply the sum of the logits from chunks $1$ through $k$.
Figure 1: TRUNKFISH makes transformer width incrementally refinable. (a) A block lower-triangular map is width-causal: newly added width can depend on old width but cannot change it. (b) A block- diagonal map is a stricter width-causal primitive in which each output chunk reads only its matching input chunk. (c) A decoder-only TRUNKFISH transformer breaks the hidden dimension into chunks and replaces all operations with either block-triangular or block-diagonal variants.

Because smaller models are now exact sub-computations of larger ones, two new algorithms fall right out of the math:

  • Schooling (Training): A single forward and backward pass of the widest model exposes the exact logits and exact gradients for every smaller prefix model simultaneously, supervising an entire model family in one pass.
  • Restart-Free Cascades (Inference): Using a transient Trunkfish cache (which stores prefix activations at attention and MLP boundaries), a token processed at a small width can dynamically expand to a larger width by computing only the missing suffix chunks.

Datasets

No new benchmarks are introduced. The authors use established datasets:

  • FineWeb: Tokenized with the Llama-2 tokenizer ($V = 32,000$) for next-token prediction pretraining and in-distribution evaluation.
  • WikiText-103: Used (validation split) to evaluate token-level inference cascades out-of-distribution.

Key Insights and Ideas

  • Time-causality works for space, too: Treating hidden dimensions like a causal timeline guarantees that smaller-width states never go "out of sync" inside larger runs.
  • Block-diagonal layers keep caches tiny: Making specific projections (Values, Output, and MLP Up/Down) strictly block-diagonal—meaning chunks don't even look at earlier chunks there—shrinks the Trunkfish cache by ~3.5$\times$ (down to roughly 4 KV-cache tokens of temporary memory for a Llama-3-8B-scale layout) without hurting language modeling quality, and can be discarded as soon as a token's width is finalized.
  • Even psychic routers lose if they have to restart: In a theoretical toy model with a free, perfect verifier that knows immediately whether a model succeeded, standard restart cascades still pay up to $4\times$ higher worst-case costs (for unknown difficulty) or $2\times$ higher expected costs (for uniform difficulty) compared to refinable architectures because failed guesses accumulate rather than telescope.

Key Results

  • Better hierarchies for fewer FLOPs: Across 8-width Transformer hierarchies ($128$ to $1024$ hidden dimensions), full-width schooling matches the FineWeb evaluation loss of independently trained standard models using roughly $2\times$ fewer active parameters while consuming only 81% of the training FLOPs. A "prefix-heavy" cyclic schedule uses just 54% of the FLOPs and achieves up to $3\times$ parameter savings on the smallest widths.
  • Outperforming shared-weight baselines: On 4-width hierarchies with matched parameter, token, and compute budgets, Trunkfish Pareto-dominates MatFormer, lowering FineWeb loss by $0.027\text{--}0.121$ (up to $\sim 2\times$ parameter efficiency at matched loss) thanks to simultaneous multi-prefix supervision.
Figure 2: TRUNKFISH improves the FineWeb evaluation-loss/active-parameter frontier. (a) Eight- width TRUNKFISH schedules Pareto-dominate the independent hierarchy’s loss–parameter frontier over the overlapping loss ranges, often by 2× parameter efficiency, while using 54% (prefix-heavy) and 81% (full-width) of its 6ND training FLOPs. (b) Four-width TRUNKFISH hierarchies Pareto- dominate MatFormer hierarchies over the overlapping parameter range with approximately matched parameters, tokens, and training FLOPs, using up to nearly 2× fewer parameters at matched loss.
  • Cheaper adaptive inference: In token-level cascades on WikiText-103, Trunkfish's exact expansion achieves matched validation loss with up to $3.8\times$ lower active-parameter traffic than standard restart cascades using learned MLP routers (and up to $3.24\times$ lower under an oracle router).

Limitations and Future Work

  • Not drop-in for existing checkpoints: Width-causality is a structural invariant, so converting an existing dense pretrained LLM into a Trunkfish hierarchy requires retraining or distillation.
  • New hyperparameter trade-offs: Chunk sizes, masking patterns, and schooling loss weights must be tuned carefully to prevent capacity interference between small prefixes and the full-width model.
  • Systems engineering required: Realizing theoretical FLOP and traffic savings as actual wall-clock speedups requires custom sparse/chunked kernels and fused cumulative readouts so hardware only executes newly activated chunks. Finally, while Trunkfish makes escalating cheap, practical deployment still relies on having good routers to decide when to escalate.

Summary updated

Abstract

Width is a central axis for scaling LLM families, but widening a standard transformer typically changes the hidden representation rather than continuing the smaller-width computation. We introduce Trunkfish, a recipe for converting model architectures into a hierarchy of models with incrementally refinable width (a Trunkfish hierarchy) by enforcing *width-causality* and *cumulative prefix readout*: new width may depend on old width, but old width may not depend on new width. This enables *schooling*, which trains all models in a hierarchy from forward/backward passes of only the largest model, and restart-free cascades, which enable adaptively scaling up inference compute without wasting compute already spent on smaller models. On 8-width language-modeling hierarchies, Trunkfish improves the evaluation-loss/active-parameter frontier over independently trained standard hierarchies by approximately $2\times$ over the overlapping loss range while using only $81$% of the hierarchy-training FLOPs. Similarly, Trunkfish Pareto-dominates MatFormer hierarchies over the overlapping parameter range when trained with matched parameter, token, and compute budgets. Cascade simulations show up to $3.8\times$ lower matched-loss active-parameter traffic.
BibTeX
@inproceedings{dugan2026trunkfish,
  author = {Owen M Dugan and Liam Dugan and Aaryan Singhal and Christopher De Sa and Christopher Re},
  title = {{TrunkFish: Making Model Width Incrementally Refinable}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xy4Di1S8IP},
}
Figure