Inference efficiency

Quantization, distillation, pruning and serving work aimed at the same accuracy for less memory, latency and money.

7,962 stories · RSS feed

arXiv Computation and Language
Nov 4

Order-Only On-Policy Distillation

The paper introduces Order-Only On-Policy Distillation (O$^{3}$PD), a method that trains a student language model to match only the teacher’s token ordering rather than the full probability distribution. By focusing on the ranking of the teacher’s top‑K tokens, O$^{3}$PD eliminates sensitivity to teacher temperature and removes the need for temperature tuning. Experiments on six teacher–student pairs show that O$^{3}$PD consistently outperforms traditional on‑policy distillation across multiple benchmarks, achieving up to 2.9‑point gains overall and 5.6 points on AIME25.

By Guangzeng Han, Yu Wu, Xiaolei Huang
arXiv Computation and Language
Nov 4

Quantizing Recurrent Language Models Is Easier Than You Think

The paper investigates how to quantize recurrent language models, which use linear recurrences instead of softmax attention. It distinguishes between extra‑state quantization (weights and activations outside the recurrent state) and intra‑state quantization (the recurrent state itself during decoding). The authors introduce LoReS, a quantization pipeline that applies value‑axis scale grouping, decay‑based mixed precision, and stochastic rounding, enabling robust 8‑bit state quantization for large models such as Qwen‑3.5, Nemotron‑H, and Kimi‑Linear, and achieving decode speedups when integrated into vLLM.

By Philipp Nazari, Neehal Tumma, Daniela Rus, T. Konstantin Rusch
arXiv Computation and Language
Nov 4

Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime

The paper introduces Library of Layers (LoL), an architecture that dynamically orders transformer layers during inference, allowing a single model to adapt its computation to the task at hand. LoL’s single hyperparameter—the size of its global library of transformer blocks—enables a smooth transition between parameter reuse and sparsity, unifying dense, depth‑recurrent, and mixture‑of‑experts trade‑offs. Experiments show LoL matches or exceeds these baselines on text, synthetic Sudoku and maze tasks, and demonstrates task‑specific routing in multilingual and safety‑focused settings.

By Abdellah Rahmani, Sean McLeish, Ang Li, Sanae Lotfi, Pascal Frossard, Micah Goldblum
arXiv Computation and Language
Nov 4

Enhancing Language Model Reasoning with Structured Multi-Level Modeling

The paper introduces Multi-Level Reasoning (MLR), a two-level stochastic framework that separates long chain-of-thought generation into a high-level planner producing structured step descriptors and a low-level executor generating detailed reasoning. MLR replaces single-policy reinforcement learning with an iterative Step‑DPO preference optimization that uses Twisted Sequential Monte Carlo for scalable, stepwise supervision, improving training stability and accuracy. Experiments on math, science, and logic benchmarks show that MLR outperforms both supervised fine‑tuning and strong RL baselines while maintaining robustness over extended reasoning horizons.

By Siheng Xiong, Ali Payani, Faramarz Fekri
arXiv Computation and Language
Nov 4

What Breaks and What Comes Back: Capability Damage and Recovery in Depth-Pruned Small Language Models

Depth pruning removes entire Transformer blocks to shrink and speed up language models, but the resulting damage is uneven across capabilities. In a study of four 1.2–1.7 B instruction‑tuned models, function calling and mathematical reasoning collapsed in every case, while other skills varied in order of degradation. Fine‑tuning a short ‘healing’ run can restore some abilities, with the choice of which blocks to retrain and the allocation of a limited token budget influencing recovery outcomes.

By Piyush Dhoka, Vedant Pandhare, Varun Inamdar, Aadarsh Pathre, Pavitha Nooji
arXiv Computation and Language
Nov 4

Label Smoothing in Disguise? Gated Knowledge Distillation for Low-Resource Bangla Generation

The paper investigates gated knowledge distillation (KD) for low‑resource Bangla generation, testing two gating strategies—EWAD and CHAD—to selectively trust teacher signals. Across six Bangla tasks and multiple student models, neither gate improves over plain KD, and KD generally underperforms cross‑entropy fine‑tuning on gold outputs. The primary advantage of KD is regularisation, with teacher‑free label smoothing narrowing the performance gap, though gating only modestly alters this effect.

By Dipto Sumit, Zobeida Zaman Chowdhury, Syeda Fabiayee Jahan, Farig Sadeque
arXiv Computation and Language
Nov 4

DepthGraft: Structural Regularization through Hierarchical Cross-Layer KV Reconstruction

DepthGraft introduces a hierarchical KV‑sharing architecture that reconstructs deep‑layer key‑value pairs from stride‑aligned shallow‑middle source pairs, thereby providing efficient cross‑layer connectivity without extra computation or memory. This design creates direct gradient paths from deep layers to source KV projections, acting as an implicit structural regularizer that sharpens retrieval directions and enriches value content. Experiments on models ranging from 0.5B to 16B parameters show consistent downstream gains, including a 7.0% absolute improvement on MMLU‑Pro for a 16B MoE model.

By Xiaohan Qin, Xiangdong Zhang, Yu Wang, Huaijin Wu, Zhuo Xia, Yebin Yang, Junchi Yan
arXiv Computation and Language
Nov 4

Unlearning by Extrapolating a Shrink-and-Heal Lookahead

The paper introduces SHIFT, a method for unlearning in large language models that avoids explicit forgetting targets by shrinking a fine‑tuned model toward its pre‑fine‑tuning weights and briefly relearning the retain set. In the linearized regime, this shrink‑and‑heal lookahead moves the model a fixed fraction toward the retrained model, and SHIFT extrapolates these per‑token changes into distillation targets for iterative refinement. Evaluated against eleven baselines under the OpenUnlearning protocol, SHIFT achieves the highest aggregate score across all TOFU settings, aligns 3.7× closer to the oracle than the next best method, and preserves the most retain knowledge on MUSE, maintaining proximity to the oracle even under larger optimization budgets and relearning attacks.

By Hoang-Chau Luong, Lingwei Chen
arXiv Computation and Language
Nov 4

Steer, Don't Tell: Breaking Reasoning Plateaus with Reachability-Aligned Self-Distillation

The paper introduces Self‑Steered Reasoner (SSR), a method that aligns self‑distillation with the reasoning actions a large language model can actually reach. SSR projects privileged teacher trajectories onto locally reachable actions, filters for correct paths, and iteratively refines sampling using diagnostic guidance. Experiments show that SSR recovers learnable trajectories on hard problems and boosts accuracy by 4.9 percentage points on benchmark datasets.

By Zijian Wu, Lingkai Kong, Lin Yang, Haiteng Zhao, Kuikun Liu, Kai Chen, Dahua Lin, Wenwei Zhang
arXiv Computation and Language
Nov 4

FlyWheel: Attention Kernels Built for the TPU

FlyWheel introduces optimized TPU kernels for softmax and linear attention, reducing vector work and improving matrix operand reuse. By overlapping independent computations, FlyWheel achieves up to 4.14× speedups over the RPA kernel and 1.80× over Splash Attention, reaching 81% of peak BF16 throughput on TPU v6e. It also boosts Gated DeltaNet prefill by up to 3.61× and enhances vLLM serving of Qwen3.8-27B prefill throughput by up to 1.56× while preserving accuracy.

By Zishuo Bao, Zeshen Zhang, Linkun Chen, Yucheng Lu
arXiv Computation and Language
Nov 4

Train the Sampler You Run: Few-Step Masked Diffusion Language Models via Mixture-Likelihood Fine-Tuning

The paper introduces Mixture‑Likelihood Fine‑Tuning (Mix‑FT), a method that fine‑tunes a pretrained masked diffusion language model on an importance‑weighted bound of its own sampler’s likelihood, without altering the architecture or requiring a teacher. Experiments on LLaDA‑8B and a 110M‑parameter block diffusion model show that Mix‑FT outperforms continued cross‑entropy, Alpha diffusion, and SDTT distillation across various step counts, yielding higher‑quality continuations and better scores from multiple human judges.

By Amin Najafgholizadeh
arXiv Computation and Language
Nov 4

SWE-Opt: A Benchmark for Evaluating LLMs on Performance-Oriented Repository-Level Optimization

SWE-Opt is a new benchmark that evaluates large language models (LLMs) on repository‑level software performance optimization. It is built from 102 expert‑written optimizations from open‑source projects and measures runtime, peak memory, and Time‑Weighted Memory Usage (TWMU) under varied input data, execution conditions, and noise‑aware measurements. The study finds that current LLMs achieve few runtime gains and almost no memory improvements, whereas expert implementations deliver a 15.5× speedup and 171.3× memory reduction.

By Ezgi Sar{\i}kayak, Wenchao Gu, Hesham Ghonim, Chunyang Chen
arXiv Computation and Language
Nov 4

MedPsy: State-of-the-Art Small Medical Language Models for Efficient Edge Deployment

MedPsy introduces a family of 1.7B and 4B text‑only medical language models optimized for edge deployment, combining synthetic medical data, chain‑of‑thought targets from a 235B teacher, and a four‑stage post‑training curriculum. On seven closed‑ended medical benchmarks, MedPsy‑4B outperforms MedGemma‑27B while being 6.75× smaller, and MedPsy‑1.7B surpasses MedGemma‑1.5‑4B by 11.42 points despite being less than half its size. The models also reduce response length, disk footprint, and end‑to‑end latency on real‑device inference, keeping peak RAM below 5 GB on laptops and smartphones.

By Davide Vitabile, Alexandro Buffa, Akshay Nambiar, Amril Nazir
arXiv Computation and Language
Nov 4

Step-dLLM: Adaptive Step-aware Sparse Attention for Efficient Diffusion LLM Inference

Step-dLLM introduces an adaptive, step-aware sparse attention mechanism for diffusion large language models (dLLMs). It refreshes a block-sparse mask at specific anchor steps along the denoising trajectory and applies a head-adaptive global sparsity budget, allowing efficient reuse of attention patterns within locally consistent intervals. The method, implemented with a fused IO-aware Triton kernel, achieves a 2.78× speedup over dense FlashAttention on LLaDA-1.5 while improving the accuracy‑latency trade‑off compared to prior sparse‑attention approaches.

By Zhichen Zeng, Xichong Zhang, Junpan Wu, Yifei Zuo, Chi-Chih Chang, Jiayi Wang, Maohua Nie, Ji Liu, Ang Li, Banghua Zhu
arXiv Computation and Language
Nov 4

Better Answers, Weaker Evidence Control: Evidence Bypass in On-Policy Distillation

The paper studies how on‑policy distillation (OPD) can improve answer accuracy while reducing a model’s reliance on supporting evidence. Through matched document interventions, the authors identify an "evidence bypass" phenomenon where a student model keeps an originally correct answer even after the supporting document is changed. They propose Evidence‑Paired OPD (EP‑OPD), which uses matched documents and an answer‑level margin to recover most of the counterfactual accuracy lost by standard OPD while preserving much of its original‑document accuracy gains.

By Ruoran Xu, Yilun Zhao, Ziyu Chen, Xiaoqiang kang, Arman Cohan