arXiv Computation and Language

RidgeFill: Training-Free Late-Layer Cache Fill for Faster Prefill

RidgeFill is a training‑free technique that speeds up the prefill phase of large language models by skipping most upper‑layer computations. It uses a ridge‑regression‑derived map, fitted once from calibration text, to predict the inputs of later layers and writes their cache from these predictions, while the lower layers run normally. Experiments on models such as Llama‑3.1‑8B and Qwen3.8‑27B show up to 1.5× faster first‑token times with minimal impact on accuracy metrics like RULER and LongBench.

arXiv Machine Learning
Aug 20

Learned, Then Lost: A Measured Single-Example Counterfactual in Pre-training

The study measured the impact of a single training example on a GPT‑2 model by running 24 counterfactual experiments. 32 models were trained from scratch on OpenWebText, and at a specific training step a single batch row was replaced with a 194‑token passage under three conditions (fluent prose, fabricated subject, random characters) or left unchanged. Results showed that the passage was learned from one exposure and decayed, with measurable differences in cross‑entropy up to 50 steps after injection but no lasting effect at the final step.

By Zachary Speck, Asa Shepard
arXiv Machine Learning
5d ago

Toaster: Nonlinear Memory from Cascaded Linear Memories and Target Propagation

The paper introduces Toaster, a two‑layer nonlinear memory that combines two linear memory modules with an activation function and uses target propagation to update the hidden layer. By approximating cross‑layer signals once per chunk, each layer can run on a standard delta‑rule kernel, achieving lower loss than KDA and Titans across multiple model sizes on C4 and PG19 datasets. In hybrid setups with global attention, Toaster attains the lowest perplexity among tested hybrids and demonstrates competitive or superior performance in length extrapolation and training efficiency.

By Zeman Li, Ali Behrouz, Yuan Deng, Praneeth Kacham, Rami Al-Rfou, Meisam Razaviyayn, Vahab Mirrokni
arXiv Computer Vision
5d ago

Let a Small Model Read First: Faster Prefill for Long Interleaved Image-Text Inputs

The paper introduces SkimPrefill, a technique that uses a small hybrid model to quickly read and rank whole units (images or paragraphs) of long interleaved image‑text inputs. By pruning the input to only the top units identified by a single attention head at an early layer, SkimPrefill reduces the prefill time for large vision‑language models. Experiments on MMLongBench show that keeping just 10% of the tokens speeds up prefill for several large models by up to 11.6× while preserving accuracy.

By Xiaolin Lin, Kai-Chiang Wu, Bing Li, Grace Li Zhang
arXiv AI
Oct 31

TableTune: Measured, Self-Correcting Draft-Length Tables for Dynamic Speculative Decoding

TableTune is a system that automatically measures and corrects draft-length tables for speculative decoding in large language model serving. It profiles decoding performance across batch sizes and draft lengths, generates an optimized table in minutes, and a controller plugin continuously updates the table based on live traffic. Experiments on H100 GPUs show that TableTune consistently achieves at least 94% of the best fixed draft-length throughput, outperforms other speculative control methods, and can recover up to 96% of performance lost by stale tables, delivering significant speedups in real deployments.

By Abhishek Malvankar, Paul Castro, Nick Mitchell, Lionel Villard
arXiv Machine Learning
Oct 23

Delta N-gram: Forward-Only Continual Writing into a Language Model's Native N-gram Memory

Delta N-gram introduces a forward‑only write path into a language model’s native hashed N‑gram table, preserving the pretrained table while adding evidence through a sparse patch Δ. The method uses a 4.1 M‑parameter writer that emits gated targets per event and applies a block‑averaged delta rule to keep each row a convex combination of its old value and the new targets. Experiments on a 0.6 B prototype and Qwen3.8‑Flash‑Next show that the delta writer maintains more document‑specific memory and reduces drift compared to online gradient writes, achieving stable performance over thousands of writes. whyItMatters":"The approach allows continual updates to a language model’s memory without altering its pretrained parameters, enabling efficient, stable, and document‑specific knowledge retention during inference."

By Hao Wu
arXiv Machine Learning
Nov 5

Shallow Encoding Emits Deep Memories

The paper introduces SEED, a method that reduces the computational burden of hybrid language models by making both the prefill and decode phases shallow. SEED exploits two key properties of trained hybrids: (1) deep layer memories can be written efficiently from shallower layers, and (2) recurrent states contain a dominant rank‑one component that can be stored compactly. By freezing the original weights and compressing recurrent states into a sink plus low‑rank factors, SEED achieves near‑lossless performance on large models while boosting per‑GPU throughput by 1.2–1.4× on NVIDIA GB300 GPUs.

By Mingyuan Ma, Yangmin Li, Harris Nover, Zheyu Fu, Po-Han Huang, Alex Settle, Ashwin Nanjappa
arXiv Machine Learning
Oct 28

BellowsKV: One Latent for Many Layers, Expanded on Demand

BellowsKV introduces a training‑free approach that maps the hidden states of multiple adjacent layers in a large language model to a single shared latent representation per token, allowing each layer to retrieve its own keys and values via a layer‑specific projection. The method retains the latent at full dimension and offers two compression strategies: BellowsKV‑Quant, which stores the latent at low precision, and BellowsKV‑Evict, which makes a shared eviction decision per block. Experiments on Llama‑3.1‑8B, Mistral‑7B, and Qwen2.5‑7B show that BellowsKV‑Quant preserves about 99% of full‑cache accuracy at 3.6× compression and 97‑98% at 13‑14×, outperforming existing cross‑layer methods that drop to at most 84% accuracy at 16× compression.

By Jiamu Zhang, Hanjie Chen
arXiv Computation and Language
Oct 1

Learning Functional Subspaces for Neural Network Compression

arXiv:2609.40127v1 Announce Type: cross Abstract: Modern transformers pair impressive capabilities with substantial memory and compute demands. Low-rank weight factorization reduces both while keepin...

By Massimo Bini, Anders Christensen, Stephan Alaniz, Judah Goldfeder, Ole Winther, Yann LeCun, Ravid Shwartz-Ziv, Zeynep Akata
arXiv Computation and Language
Nov 4

Who Should Score the Cache? Mid-Depth Layers Are the Best Judges of KV-Cache Eviction

The study investigates which transformer layer should score tokens for key‑value cache eviction, finding that mid‑depth layers (roughly 40–75% of the model depth) consistently yield the best long‑context retrieval accuracy across 21 models ranging from 0.5 B to 109 B parameters. By modeling eviction as a top‑k cut and using calibration prompts, the authors identify an optimal scoring layer that outperforms the default per‑layer scoring on most models, especially those below 14 B, and improves performance on tight‑budget scenarios and financial‑filing tasks. The research also explains performance penalties in shared‑cache architectures and notes that for open‑book question answering, the mid‑depth advantage does not materialize.

By Ekaterina Seregina
arXiv Machine Learning
Sep 25

Task-Aware Spectral Pruning: A Mixture-of-Masks Framework for Efficient LLM Inference

Task-Aware Spectral Pruning (TASP) is a post‑training framework that tailors sparse masks to specific tasks by calibrating module‑level spectral descriptors against task‑specific ablation effects. It constructs masks that close grouped‑query‑attention and SwiGLU dependencies, routing each user turn to a single compiled mask that remains fixed during prefill and decoding. In experiments, TASP achieves a 43% active‑FLOP reduction while preserving 97.7% of the dense BF16 performance on Llama‑3‑70B, and delivers a 1.44× speedup on an A100 80GB with INT8‑weight/BF16‑compute, reducing decode latency from 45.2 to 31.3 ms/token.

By Ibne Farabi Shihab, Fariya Afrin, Sanjeda Akter, Anuj Sharma