Where You Backpropagate Matters: Token Hypothesis for Memory-Efficient Fine-Tuning

Md Kowsher, Chen ChenNeurIPS 2026

TL;DR

When fine-tuning large transformers, storing intermediate activations for the backward pass eats up massive amounts of GPU memory—often more than the model weights themselves. The authors introduce the Token Hypothesis, proving mathematically that you don't need to backpropagate through every token in a sequence to get full fine-tuning performance. By running the forward pass on everything, but only sending gradients backward through a tiny, architecturally dictated subset of tokens (like the final few tokens in a causal LLM), you can slash activation memory and speed up training without sacrificing accuracy.

What Problem Does This Paper Address?

If you have ever hit a dreaded "CUDA Out of Memory" error while fine-tuning a model on long sequences, you’ve met the activation bottleneck. GPU memory during training goes to three places: model parameters, optimizer states/gradients, and intermediate activations. Popular Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA brilliantly shrink the parameter and optimizer footprint, yet they leave activations completely untouched. Because activation memory scales linearly with sequence length ($T$), fine-tuning an 8B model at a modest sequence length of 2,048 still devours over 100 GB in activations alone.

Recent work tried to dodge this by backpropagating through only a fraction of tokens, using complex, heuristic pre-scoring stages to guess which tokens are "important." The authors argue this skips a much more fundamental question: How much learning capacity does a single token position actually hold, and how does the model's attention architecture distribute that capacity?

Methods

To answer this without guesswork, the authors analyze fine-tuning through the lens of the Neural Tangent Kernel (NTK)—a mathematical framework where fine-tuning a massive pretrained network behaves like linear kernel regression over its initial features, since weights barely drift from initialization.

Figure 1: The Token Hypothesis and our training procedure. (a) Three theorems and a corollary characterize how fine-tuning signal is distributed across token positions: capacity per position is bounded, equal across positions in bidirectional models, and monotonically increasing in causal models—so a small subset M ≪T of positions suffices to match full fine-tuning. (b) We select M trainable positions, group them against the non-trainable ones, and reorder the sequence so that only the trainable group receives gradients while the rest pass forward without storing activations. (c) Attention masks for four selection strategies, shown after reordering tokens so trainable positions are contiguous: (i) Random selects M positions uniformly at random each epoch; (ii) Last-M selects the final M positions of the sequence (optimal for causal models); (iii) First-M selects the initial M positions (baseline for causal models); (iv) Any subset selects any M positions in bidirectional models, where all positions are interchangeable. Darker rows mark trainable queries.

Using this theory, they design a remarkably clean training recipe:

  1. Architecture-Driven Selection: Given a sequence of $T$ tokens, pick $M \ll T$ trainable positions. For bidirectional models (like RoBERTa or ViT), where every token sees the whole sequence, pick any random subset of $M$ tokens per epoch. For causal models (like LLaMA), where attention flows strictly left-to-right, simply pick the last $M$ tokens.
  2. Split-Graph Execution: Run the standard forward pass across all $T$ tokens so context representations stay 100% intact. However, group and route the $T - M$ non-trainable positions inside a no_grad context. Their intermediate activations are never saved to the computation graph, cutting peak activation memory by $1 - M/T$.
  3. Seamless Composition & Zero Overhead: If using LoRA or DoRA, adapter updates are applied only to the $M$ trainable positions. At inference time, the gradient-splitting scaffolding vanishes, leaving a standard model with zero latency overhead.

Datasets

No new benchmarks were introduced; instead, the authors stress-tested their method across six diverse task families using established datasets:

  • Commonsense Reasoning: ARC-Challenge, ARC-Easy, BoolQ, HellaSwag, OpenBookQA, and WinoGrande.
  • Language Understanding: The GLUE benchmark.
  • Multimodal & Vision: Visual Question Answering (including SafeTag, MMK12, and M3CoT), Video Question Answering (including VideoMathQA), Mathematical Reasoning, and Image Classification. (Note: Exhaustive lists of individual datasets for Math, VQA, and Image Classification are deferred to the paper's appendix).

Key Insights and Ideas

  • Every token is a tiny bottleneck: Regardless of whether your model has 125 million or 8 billion parameters, training through a single token position restricts weight updates to a tiny subspace. Empirically, its "effective rank" (the number of gradient directions carrying real signal) sits between just 1.5 and 5.2.
  • Causal attention acts like a funnel: Because token $t+1$ attends to everything token $t$ saw plus one new step, fine-tuning capacity increases monotonically along causal sequences. Later tokens mathematically dominate earlier ones—meaning the final tokens already carry the gradient signal from earlier, high-importance tokens without you having to backpropagate through them directly!
Image-space and rank saturation comparing forward (L2R) vs. reverse (R2L) token ordering in a causal model.
  • Less training, less catastrophic forgetting: Because restricting gradients to $M$ positions confines weight updates to a tidy, low-dimensional slice of the pretrained tangent space, the model breaks fewer of its existing skills—reducing forgetting on untrained benchmarks by roughly $4\times$ compared to full fine-tuning.

Key Results

Evaluated across five backbones (LLaMA-3-8B, Qwen3-VL-8B, LLaVA-OneVision-7B, RoBERTa-base, and ViT-L/16), training on just $M = 50\text{--}100$ tokens (bidirectional) or $M = 100\text{--}500$ tokens (causal) matches or beats full-sequence fine-tuning in nearly all settings:

  • Memory & Speed: On VQA with Qwen3-VL-8B, training at $M=10$ to $300$ cuts total GPU memory by up to ~19% (~28–33 GB saved) while exceeding full-sequence accuracy (0.739 at $M=300$ vs. 0.728 baseline). Fixing $M=50$ decouples memory from context length, adding only 2–3 GB as $T$ scales from 100 to 2,048, and enables up to $3.6\times$ larger batch sizes.
  • Beating Heuristics: On LLaMA-3.2-3B commonsense tasks, the simple last-M rule crushes random token selection at tight budgets (+0.34 accuracy on HellaSwag at $M=10$) and matches or beats complex scoring methods like TokenSeek—without needing expensive pre-scoring passes.

Limitations and Future Work

  • Theory vs. Optimization Dynamics: The NTK theory characterizes capacity at infinite-step convergence, predicting that even $M^*=1$ (the very last token) spans the full causal prediction space. In practice, finite-step SGD prefers well-conditioned matrices, meaning $M$ remains a practical hyperparameter (typically 100–500) that grows with the length of the supervised reasoning span.
  • Struggles on Video + LoRA: While full fine-tuning on video tasks exceeded the baseline at $M=500$, pairing Video QA with LoRA fell slightly short across all $M$ budgets (peaking at 0.563 vs. 0.579 baseline, dragged down by heavy multi-step reasoning in VideoMathQA).
  • Future work directions are not explicitly discussed in the main text.

Summary updated

Abstract

Fine-tuning large transformers routes gradients through every token position, paying the cost in activation memory that scales linearly with sequence length and dominates the GPU budget. Existing efficient methods reduce the parameter side---low-rank adapters, prefix tuning, weight-decomposed updates---but leave the activation footprint untouched. We present the Token Hypothesis, a memory-efficient fine-tuning procedure motivated by a Neural Tangent Kernel analysis of how fine-tuning signal is distributed across token positions. We prove that every position is a low-dimensional capacity bottleneck whose width does not grow with the model, that positions with aligned hidden-state geometry are interchangeable in bidirectional models, and that causal positions form a monotone capacity chain in which later positions strictly dominate earlier ones. The analysis pins down how many positions are needed and which ones, both computable from forward passes alone: any subset suffices in bidirectional models, while the last few positions suffice in causal ones. We translate this into a procedure that backpropagates through only a small subset of positions while running the full forward pass over the rest. Empirically, the procedure matches or exceeds full-sequence fine-tuning across six task families---commonsense reasoning, mathematical reasoning, visual question answering, video question answering, GLUE, and image classification---and five backbones spanning bidirectional and causal architectures. It reduces activation memory substantially, translating to up to ∼ 19% lower total GPU memory (∼ 31 GB) on visual question answering while exceeding full-sequence accuracy, and composes cleanly with parameter-efficient methods such as LoRA and DoRA.
BibTeX
@inproceedings{kowsher2026where,
  author = {Md Kowsher and Chen Chen},
  title = {{Where You Backpropagate Matters: Token Hypothesis for Memory-Efficient Fine-Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=8D8sa1Nuh0},
}
Figure