TRANSMISSION // 2612.02874v1

A cache aims to cut Transformer inference costs

Source published

MLP Cache uses compact local predictors to approximate recurring inputs to frozen Transformer MLPs. The abstract reports faster decoding in specified tests, alongside accuracy changes that depend on the cache setting.

AI-generated conceptual illustration for A cache aims to cut Transformer inference costs
AI-generated conceptual illustration; not documentary evidence.

Transformer MLPs can be costly because they apply high-capacity transformations to tokens. MLP Cache is a post-hoc method that predicts MLP outputs for inputs in recurring regions, without retraining the backbone.

Predicting outputs for recurring inputs

Transformer multilayer perceptrons (MLPs) apply high-capacity transformations to token representations and contribute to inference costs. The authors’ starting point is that deployed workloads revisit regions of an MLP’s input space. Rather than retrieve an output computed earlier for an identical input, MLP Cache uses a local predictor to approximate the MLP’s output for inputs in a region.

The method stores compact predictors for regions of a frozen MLP’s input space and is designed to work without retraining the Transformer backbone. Its resource-allocation challenge is choosing region sizes and predictor capacities: broad regions can cover more inputs but may need larger predictors, while finer regions may be easier to approximate but require more entries.

The authors build a coarse-to-fine hierarchy using shared graph-spectral coordinates. Coordinate signs define candidate regions, and continuous coordinate values serve as features for region-specific predictors. A tree dynamic-programming procedure selects region-predictor pairs to maximize workload coverage under memory and approximation-error budgets. These budgets guide the design; the abstract does not establish a general guarantee of output quality in use.

Reported results and trade-offs

The abstract reports tests with frozen Qwen3.5-9B on MME-Coarse and MMStar-Coarse. In the layers where caching was applied, MLP Cache replaced 24–28% of MLP calls. This percentage concerns calls in cached layers, not all computation in the model.

A cache hit saves time only when the avoided work outweighs the fixed cost of routing and lookup. The authors say the gain is largest in batch-one decoding, where a hit skips the layer’s weight reads. On an Apple M5 Pro, a cache holding 1.2 GiB made decoding 1.20 times as fast, with a reported 0.56-point change in MME-Coarse accuracy; the abstract does not specify the direction of that change. A cache of about 8 GiB made decoding 1.38 times as fast, at a reported cost of about 3 accuracy points. With this larger cache, decoding stayed faster up to batch 8.

On an A100, the authors report batch-one decoding 1.09–1.15 times as fast against a baseline that ran each decode step as one CUDA graph. A controlled single-MLP benchmark found that the gain grew with MLP size. These results are specific to the stated tests and hardware; the abstract does not establish that the same gains apply to other models or workloads.

What the evidence can show

The results describe a trade-off among cache memory, approximation error and routing overhead. Whether the method helps depends on how often workload inputs are covered and whether the cost of predicting outputs is less than the MLP work avoided. The abstract reports results for one frozen model and named benchmarks, alongside hardware-specific decoding tests; it does not demonstrate broader generalization.

This account is based on the abstract of arXiv version 1, not an examination of the full paper. The source is a preprint, so the findings should be read as reported results rather than as independently established conclusions.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.