Scalable LLM Math Reasoning Acceleration with Low-rank Distillation
Harry Dong, Bilge Acun, Beidi Chen, Yuejie Chi
TL;DR
This work tackles the latency of mathematical reasoning in LLMs under efficient inference. It introduces Caprese, a low-rank residual distillation approach that learns compact corrections to FF outputs with a small inner dimension (e.g., $r=256$) and trains on a modest dataset of 20K synthetic math problems while keeping original FF weights intact. Caprese recovers most or all math performance lost due to sparse FF methods and preserves language-task performance, functioning with baselines like GRIFFIN and CATS and delivering substantial latency reductions. The method scales across instruct and thinking models, requires only about 1% additional parameters, and achieves practical gains in coverage and response brevity, advancing degradation-free efficient LLM inference for complex reasoning tasks.
Abstract
Due to long generations, large language model (LLM) math reasoning demands significant computational resources and time. While many existing efficient inference methods have been developed with excellent performance preservation on language tasks, they often severely degrade math performance. In this paper, we propose Caprese, a resource-efficient distillation method to recover lost capabilities from deploying efficient inference methods, focused primarily in feedforward blocks. With original weights unperturbed, roughly 1% of additional parameters, and only 20K synthetic training samples, we are able to recover much if not all of the math capabilities lost from efficient inference for thinking LLMs and without harm to language tasks for instruct LLMs. Moreover, Caprese slashes the number of active parameters (~2B cut for Gemma 2 9B and Llama 3.1 8B) and integrates cleanly into existing model layers to reduce latency (>16% time-to-next-token reduction) while encouraging response brevity (up to 8.5% fewer tokens).
