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 Machine Learning
Oct 23

MoEZip: Routing-Aware KV Cache Compression for Sparse Mixture-of-Experts LLMs

MoEZip is a routing‑aware key‑value (KV) cache compression technique designed for sparse Mixture‑of‑Experts (MoE) language models. It introduces a Fisher‑information‑based metric to assess how sensitive expert routing is to cache perturbations, and combines this with attention weights to score contexts for eviction. Experiments demonstrate that, even with only 10% of the KV cache retained, MoEZip outperforms state‑of‑the‑art baselines by significant margins on LongBench and RULER benchmarks.

By Minsang Kim, Seungjun Baek
arXiv AI
Oct 23

An Exact 93-Move Solution to a Nonlocal Crystal-Exchange Puzzle

The paper presents an exact 93‑move solution to a nonlocal crystal‑exchange puzzle on an 11×11 board, where a command swaps the player with the nearest crystal in a chosen row or column. The authors prove that no shorter solution exists by performing a cost‑bounded breadth‑first search that explores over 1.8 billion states, using a compressed core abstraction and several pruning conditions. The study includes a detailed description of the reductions, pruning rules, storage scheme, and provides source code, execution logs, and a reproduction driver.

By Zilai Wang
arXiv Machine Learning
Oct 23

Gandalf: Flash Shall Not Die! Increasing Flash Storage Lifetime for KV Cache Offloading in LLM Serving

Gandalf is a flash‑based KV cache offloading system designed to extend SSD lifetime in large language model serving. It prioritizes full‑attention KV cache entries for SSD admission, using attention type and historical access patterns to reduce write traffic without lowering cache hit rates. Experiments show a 7.3× increase in SSD lifespan with negligible impact on hit rate across diverse workloads and hardware configurations.

By Maharani A. P. Irawan, Kuntai Du, Jiayi Yao, Dongjoo Seo, Yuyang Huang, Haryadi S. Gunawi, Junchen Jiang
arXiv Computation and Language
Oct 23

RIFT: KV Cache Compression for Draft Models with Complementary Compressibility Training

RIFT introduces selection‑based KV cache compression strategies that balance prefill information with recently generated tokens to mitigate decode staleness in speculative decoding. By refreshing the KV cache selection during token generation and employing an adaptive refresh strategy, RIFT improves drafter quality while managing decode latency. A compressibility‑driven drafter training phase further enhances performance, enabling Qwen3.5‑4B to retain over 98% of its full‑cache acceptance length within an 8K‑token KV cache budget on long‑context inputs.

By Dor Tsur, Maor Ashkenazi, Maximilian Golub, Peter Hicks, Yaniv Galron, Talor Abramovich, Yoav Miron, Tiyasa Mitra, Bita Darvish Rouhani, Ran Zilberstein
arXiv Computation and Language
Oct 23

Context-Aware Subtitle Translation on CPU: Deployment-Driven Training, Evaluation, and Latency Design

The paper presents a study on English‑to‑Traditional‑Chinese subtitle translation for a free browser extension that must run on a viewer’s CPU within about 500 ms per subtitle. Two models based on the LMT‑60 architecture, Sotto‑1.7B and a smaller Sotto‑0.6B, were trained with task‑specific vocabulary, continued pretraining, supervised fine‑tuning, weight interpolation, logit distillation, and on‑policy preference optimization. Evaluation via pairwise comparison against Google Translate shows Sotto‑1.7B achieving a 0.576 win rate and outperforming four open translation models, while latency optimizations such as idle‑time prefill and a compact vocabulary reduce end‑to‑end latency by 31% and 28% respectively, keeping the deployed model within the 500 ms target.

By Tsz-To Wong, Shyang-En Weng
arXiv Computer Vision
Oct 23

An Attribute-Based Measure of Video Complexity

The paper introduces Video Attribute-Based Complexity (VideoABC), a non‑parametric framework that estimates the likelihood of failure for video‑LLMs on video‑question pairs. VideoABC projects reference videos into a space defined by a pre‑defined vocabulary of video attributes (e.g., scene complexity, event speed), quantizes this space, and computes expected complexity values for each quantization cell. To handle small reference datasets, it combines a k‑means quantizer for in‑distribution samples with a universal lattice quantizer for out‑of‑distribution generalization, and uses a synthetic video generation procedure to populate lattice cells during training. Experiments demonstrate that VideoABC outperforms methods like ‘video‑LLM as judge’ while requiring fewer resources, and its attribute‑based scores provide interpretable insights into benchmark complexity.

By Aditya Sarkar, Yi Li, Zihao Wang, Hao Yuan, Sai Vidyaranya Nuthalapati, Aashu Singh, Jiacheng Cheng, Ang Li, Shlok Kumar Mishra, David Jacobs, Nuno Vasconcelos
arXiv Computation and Language
Oct 23

Low-Bit N-Gram Embeddings for Language Models

The paper investigates reducing memory usage of n‑gram embedding tables in open‑weight language models by storing them in low precision. Experiments on nanochat, Llama, and GPT‑2 families show that four‑bit tables cut table memory by about 75% while retaining over 99% of the validation‑loss improvement. The study also demonstrates that re‑allocating the saved memory to larger tables can surpass the performance of full‑precision tables, and that similar savings are achievable in large models like DeepSeek‑V4.1‑Flash and Qwen3.8‑Flash‑Next with minimal impact on perplexity and downstream tasks.

By Stephen Chung, Wenyu Du
arXiv Machine Learning
Oct 23

Same molecule, Different Knowledge: Cross-Identifier Binding Failures in LLMs For chemistry

The paper introduces a benchmark that demonstrates that large language models (LLMs) fail to consistently retrieve the same chemical facts when presented with different co‑referring identifiers such as trivial names, IUPAC names, or SMILES. Across models ranging from 7B to 72B parameters, including chemistry‑specialized ones, the authors find that knowledge is not uniformly bound to each identifier, a failure they call cross‑identifier binding failure. They further analyze internal representations and propose a mitigation called Binding Self‑Distillation that transfers knowledge from name‑based to structure‑based routes, enabling direct factual retrieval from SMILES without retraining the model.

By Khouloud Saadi, Di Wang
arXiv Machine Learning
Oct 23

Drift Says When, Budget Says How Much: Rate-Controlled KV Re-selection for Long-Form Multimodal Generation

The paper introduces Rate‑Controlled Refresh (RCR), a method for re‑selecting key‑value (KV) cache entries during long‑form multimodal generation. RCR lets attention drift determine when and where to refresh, while a per‑sample controller limits how often this occurs, and a low‑rank drift detector keeps the process GPU‑resident. Across multiple models and tasks, RCR outperforms the per‑step retrieval method InfiniGen by up to 3.8 ROUGE‑L points and remains close to exact per‑step re‑selection, with reduced data movement and a smaller GPU‑resident detector.

By Bin Hu, Yingbo Xiao
arXiv Machine Learning
Oct 23

ATTUNE: Agentic Throughput Tuning for LLM Training

ATTUNE is a coding agent that automatically tunes large‑language‑model training recipes within a GPU‑hour budget, adjusting one lever at a time guided by search rules, scripts, and past tuning lessons. It includes a correctness gate that blocks any configuration known to alter the training objective. In Amazon’s production, ATTUNE raises throughput by an average of 1.7× on H100, H200, and B200 clusters and outperforms NVIDIA’s AutoModel benchmark recipes and other automated tuners, achieving up to 2.6× improvement on MiniMax‑M2 and more than four times the best alternative on GLM‑4.5.

By Leo Fan, Hongyang Wang, Wenbo Chen, Jingguo Liu, Xian Li, Xuan Wang, Ruochen Wen, Yiming Yan, Hao Wu, Yichuan Li, Qian Qu, Zheshen Wang, Benoit Dumoulin
arXiv Machine Learning
Oct 23

When to Follow the Teacher: Advantage-Based On-Policy Distillation

The paper introduces Advantage-Based On-Policy Distillation (AOPD), a method that selectively weights teacher actions during online policy distillation by their counterfactual advantage to the student. Unlike standard OPD, which follows the teacher at every state, AOPD reinforces only those teacher actions that improve the student's expected outcome, using an estimator that relies solely on standard student rollouts and terminal rewards. Experiments on math, coding, and Medqa tasks demonstrate that AOPD outperforms both distillation and reinforcement learning baselines in external-teacher and self-distillation settings.

By Mahdi Sabbaghi, George Pappas, Hamed Hassani, Adel Javanmard
arXiv Machine Learning
Oct 23

Benchmarking Model Compression Techniques Across Heterogeneous Edge Platforms: A Predictive Maintenance Use Case for Rotating Machinery

The paper evaluates four advanced model compression methods on a high‑performance convolutional neural network for predictive maintenance of rotating machinery. Using a real‑world dataset, the authors benchmarked the compressed models on nine diverse edge devices, balancing classification accuracy, inference speed, and compression ratio. Knowledge distillation emerged as the most effective technique, delivering over 90% speedup, a 98.9% size reduction, and only a minor drop in balanced F‑score (91.22%) compared to the uncompressed model.

By Matheus Calheira Guimar\~aes de Oliveira, Marco Aur\'elio da Silva Cruz, Regis Cardoso, Lucas Cambuim, Rafael Macieira, Arthur Paim, Helaine Neves, Alex Santos, Lilian Guarieiro, Jean Schmith, Prashant Kumar, Erick G. Sperandio Nascimento
arXiv Computation and Language
Oct 23

A Systematic Comparison of Search Space Complexity and Efficiency for Time-Synchronous End-to-End ASR Models

The paper compares the search space complexity and efficiency of Connectionist Temporal Classification (CTC) and neural transducer models in time‑synchronous end‑to‑end ASR. It evaluates different pruning strategies and language model configurations, finding that while these models typically operate with a small search space, they experience large temporary peaks in hypothesis count during uncertain periods. Score‑based pruning is shown to adapt the search dynamically to model uncertainty, significantly reducing the Real‑Time Factor (RTF).

By Simon Berger, Larissa Kleppel, Ralf Schl\"uter