Inference for Reasoning Models: Practical Lessons from Evaluation and Serving
Abstract
Running a language model involves more than its trained weights. The same model can receive very different benchmark scores, produce different answers, or cost more to serve depending on how it is evaluated and run. In one experiment in this book, changing only the maximum response length moved accuracy on a math benchmark from 0.08% to 93.18%. This book explains how inference settings shape the results we report and the systems we deploy. We begin with evaluation, including generation limits, answer extraction, scoring methods, and quantization. We then examine why outputs can change across batches, attention backends, and caching, even when sampling is disabled. The next chapters cover serving performance, including batching, memory capacity, latency, throughput, and cost. We also study structured outputs, tool calls, reasoning budgets, and long-context tasks, showing what these controls and benchmarks do and do not establish. The book concludes with practical guidance for recording inference runs, checking evaluations, estimating capacity, and comparing systems fairly. Written for researchers and engineers working with language models, it aims to make inference results easier to understand, reproduce, and trust.
Create a lesson
Related papers
SLP-Bench: Evaluating and Improving Acoustic Claims of Reasoning Audio Language Models on Clinical Speech
Shared title terminology · Côme Hosxe, Rachid Riad, Quentin Spinat
F3-AGI v4.0: Bioenergetically-Gated Active Inference, Metaplastic Preconditioning, and Residual Program Synthesis for Sample-Efficient Abstract Reasoning
Shared title terminology · Henrique Oliveira
What Broke & Why: Practical Lessons from Reinforcement Learning Post-Training
Shared title terminology · Luv Verma
Rethinking Closed-Ended Medical VLM Evaluation: From Stable Wrongness to Counterfactual Answer Sensitivity
Shared title terminology · Qi Wu, Xiaoyu Liu, Ao Wang et al.
SAE-Audit: Clinical-Trial Prediction via Inference-Time Optimization of Black-Box LLMs Audited by Sparse Autoencoder Evidence
Shared title terminology · Junbo Shen
When Wrong Answers Remain Unsettled: Failure Dynamics in Recurrent Reasoners
Shared title terminology · Jiucheng Zang, Congkai Peng, Yankai Wei