Papers for

llm engineers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Belief based method cuts reasoning steps in large language models

Same Beliefs, Different Policies: Learning Reusable Representations for Early Stopping in LLM Reasoning

Abstract: Reasoning LLMs often continue reasoning after reaching a correct answer, wasting computation and sometimes replacing it with an incorrect one. Deciding when to stop is a metareasoning problem: the model must weigh what further reasoning could achieve against its cost, given what it can already answer. Direct utility training learns a stopping representation at a chosen token price; supporting new prices can require additional controller training. We introduce BELT (BELief-based Termination), which separates outcome prediction from stopping control. It learns beliefs about current and future answers from a frozen LLM's hidden states, then fits a linear stopping policy on the frozen features. The prediction targets are independent of token price, so one probe supports different accuracy-cost trade-offs through CPU policy refitting or threshold adjustment. Averaged over five out-of-distribution (OOD) math benchmarks, BELT reduces generated tokens by 41% on Qwen3-1.7B and 51% on OLMo-3-7B-Think without loss of accuracy. The same math-trained BELT transfers to coding and agentic tasks without training on code or agentic data. In all three domains, its accuracy-cost trade-offs are competitive with or better than those of end-to-end controllers. On OLMo3, its probe has 21.2x fewer parameters than one checkpoint of the strongest baseline, OS-Pruner, and needs 55x fewer training GPU-hours than OS-Pruner's five price-specific checkpoints.

Wed 21 OctArtificial IntelligenceMachine Learning
The gist
Large language models (LLMs) that solve problems often keep thinking even after finding the right answer, which wastes time and computing power. The authors present a new method called BELT that helps the model decide when to stop reasoning by predicting if continuing will improve the answer. BELT learns from the model’s internal signals and can adapt to different trade-offs between accuracy and cost without retraining. This approach reduces the number of reasoning steps by about half without losing accuracy, and it works across different problem types like math, coding, and agent tasks.
Open → 2610.30450v1

Prism attention speeds up long context decoding in large language models

Prism Attention: Proposal-Refined Index Sharing Mechanism for Efficient LLMs Inference

Abstract: Long-context decoding in large language models (LLMs) is increasingly bottlenecked by the memory and computation required to attend over an ever-growing Key-Value (KV) cache at each autoregressive step. Although token-level sparse attention reduces this burden by restricting computation to a small subset of relevant past tokens, its practical gains are often offset by repeatedly recomputing layer-wise sparse indices as the context grows. A common remedy is to share sparse indices across layers by computing them only at designated anchor layers, but such static reuse ignores the layer-wise evolution of attention patterns, causing the reused indices to progressively deviate from the layer-specific optima and incur substantial attention loss. By revisiting cross-layer sparsity from the perspective of attention dynamics, we find that inter-layer salient token shift is highly localized: although the exact top-$κ$ indices differ across layers, the core high-attention tokens remain stable, with changes concentrated near the expanded boundary of previously selected regions. Motivated by this, we propose Prism Attention, a proposal-refined sparse attention framework. It replaces rigid cross-layer index reuse with a coarse-to-fine strategy, preserving layer-wise adaptability while retaining the efficiency benefits of cross-layer sharing. Extensive experiments show that Prism Attention achieves state-of-the-art performance among mainstream sparse attention methods on both reasoning and long-context benchmarks, while attaining a $3.4\times$ end-to-end decoding speedup over FlashAttention at 128K context length.

Fri 16 OctComputation and LanguageArtificial Intelligence
The gist
Large language models take a lot of time and memory to handle very long conversations or texts because they have to look back at many previous words during each step. The authors found that simply sharing which words to pay attention to across all layers causes errors because attention changes as the model processes the text. They created Prism Attention, a new way to share and refine these important word choices for each layer more efficiently. This method keeps the accuracy high while making the model run much faster, especially on very long texts.
Open → 2610.22985v1

Maple framework reveals varied effects of knowledge extraction methods

MAPLE: A Multi-Axis Parametric Knowledge Extraction Lens for LLM Evaluation

Abstract: LLMs absorb vast knowledge from training data, yet their inherently probabilistic nature offers no guarantee that this knowledge will surface in their outputs. To bridge this gap, Knowledge Extraction Enhancement (KEE) techniques such as activation steering, decoding adjustments, and prompting modify inference, potentially reinforcing existing predictions or surfacing less accessible answers. Yet their evaluations centered on aggregate accuracy, which obscures diverse effects by collapsing recovered failures and disrupted successes into a single score. We introduce MAPLE, a unified framework for characterizing how KEE techniques affect parametric knowledge extraction. Its diagnostic metrics disentangle these effects at the surface, probability, and beyond-sampling levels by measuring answer recovery and disruption, gold-token rank shifts on unrecovered failures, and recovery of answers missed by fixed-budget sampling. We evaluate six KEE techniques spanning decoding, activation steering, and prompting across three model families: OLMo2, Qwen2.5, and Llama3. Our analysis reveals distinct effects and trade-offs across techniques, highlighting the value of MAPLE for understanding and comparing KEE beyond aggregate accuracy.

Wed 14 OctMachine LearningComputation and Language
The gist
Large language models (LLMs) store a lot of information, but it's not always clear how well this information comes out when you ask them questions. Researchers developed MAPLE, a way to better understand how different techniques can help get information out of these models by measuring various detailed effects beyond just getting the right answer. MAPLE looks at how some methods help recover missed answers or cause disruptions in others, providing a clearer picture of each technique’s strengths and weaknesses. They tested MAPLE on several popular LLMs and found important differences between techniques that simpler scores would miss.
Open → 2610.19827v1

Llm unlearning method improves nearby benign reasoning without losing utility

RA$^2$: Retain-Anchored Attraction Preserves Forget-Adjacent Utility in LLM Unlearning

Abstract: Large Language Model (LLM) unlearning is often evaluated primarily by target suppression and clean retain utility. These metrics can miss a local failure mode: a model may perform well on standard retain prompts, yet degrade on benign reasoning when prompts lie near the forgotten domain. This phenomenon is termed forget-adjacent utility loss. A fundamental question is: where should forget representations go after they leave the removed behavior? Successful unlearning depends not only on whether forget-conditioned representations depart from the harmful computation, but also on the direction in which they are redirected afterward. We propose RA$^2$ (Retain-Anchored Attraction), a latent-space unlearning method that redirects forget-token states toward nearby retain-supported representations while preserving higher-layer behavior on retain data. On WMDP and MUSE, RA$^2$ yields higher forget-adjacent utility than strong unlearning baselines at similar broad-utility levels. These results show that the migration direction of forget representations materially affects benign behavior near the forget boundary. Our code is available at https://github.com/ZacLing/retain_anchored_attraction.

Wed 14 OctMachine Learning
The gist
Large language models sometimes need to 'forget' certain behaviors, but after forgetting, nearby reasoning by the model can still become worse. The authors found that not just forgetting but where the model directs the forgotten parts in its internal space matters for keeping good reasoning nearby. They came up with a method called RA² that moves these forgotten parts toward safe areas in the model’s memory, preserving helpful responses close to the forgotten topics. Their method performed better at keeping this nearby utility than other strong unlearning methods.
Open → 2610.19385v1

Pid gates improve prompt updates under noisy feedback

PID-Gated Continual Prompt Adaptation Under Noisy Feedback

Abstract: Deploying LLM agents in non-stationary environments requires continually revising their instructions as the task drifts, yet rewriting after every reported mistake can turn noisy feedback into persistent errors. This raises an often-overlooked scheduling question in prompt adaptation: when should feedback trigger a lasting instruction update, and at what editor-call cost? Taking inspiration from proportional-integral-derivative (PID) control, we introduce a family of lightweight gates that react to the current error, accumulate evidence over time, and roll back deterioration after an edit. We benchmark these gates against both simple baselines and advanced prompt optimizers (TextGrad and GEPA), over a diverse suite of drifting tasks, LLM parameter sizes, feedback-noise levels, and random seeds. PID-gated continual prompt adaptation yields a more favorable Pareto trade-off between task performance (high accuracy, low error) and editor-call budget than the baselines considered, pointing to control-theoretic scheduling as a simple, general tool for robust prompt adaptation under unreliable feedback.

Mon 12 OctMachine LearningArtificial IntelligenceComputation and Language
The gist
Large language models (LLMs) need to update their instructions as tasks change, but relying on every single correction can cause mistakes to stick, especially if those corrections are noisy or wrong. The authors propose using control theory ideas from PID controllers that help decide when to update instructions based on error, accumulated evidence, and ability to undo bad changes. Their approach, called PID-gated prompt adaptation, balances making accurate updates while limiting costly edits, performing better than simpler or more complex alternatives in varied noisy scenarios.
Open → 2610.16129v1

Optimizer effects on selecting data improve large language model training

OptiSelect: How does the Optimizer Shape Data Curriculum?

Abstract: Online data selection has demonstrated substantial efficiency gains for LLM pretraining by training on the most valuable candidates within each batch. Since a candidate's value is realized through its effective model update, principled selection should account for the optimizer step, which reshapes the raw gradient before it updates model parameters. We formalize this optimizer-aware selection paradigm as OptiSelect and present the first systematic study of how the optimizer shapes data selection. Our theory establishes a selection gain principle in which the advantage of online selection is governed by the discriminability of the optimizer-induced utility scores. We prove that sign-based and polar-tangential preconditioners of Lion and Muon would suffer from a discriminability collapse which caps attainable gains from OptiSelect, whereas diagonal-adaptive optimizers such as AdamW and Sophia admit strictly better upper bounds. The proposed principle also yields a quantitative derivation of the optimal candidate oversampling ratio. Pretraining experiments on 124M and 720M models are consistent with our theoretical analysis and show that AdamW's diagonal-adaptive scoring geometry remains the strongest scoring geometry even with Muon as optimizer. We further demonstrate that OptiSelect retains its benefits under data rephrasing, a technique used in modern data processing pipelines. Our findings provide theoretical foundations and practical guidance for co-designing optimizers and data selection in LLM pretraining.

Fri 2 OctMachine LearningArtificial Intelligence
The gist
Training large language models involves choosing the best data examples to learn from in each batch, which speeds up learning. The authors studied how the part of the training called the optimizer changes which data examples are most helpful. They found certain optimizers make it harder to tell which data is best, limiting gains, while others keep this distinction clear and improve results. Their experiments confirm these insights and offer advice on combining optimizers with smart data choices to train models more efficiently.
Open → 2610.03432v1

Large language model layers show varying tree-like structures in hidden states

A Hyperbolicity Atlas of Large Language Model Hidden States

Abstract: LLM hidden states are ordinary vectors, but the distances among those vectors may still show hierarchical structure. To our knowledge, this paper is the first systematic study of whether prompt-token hidden states in contemporary LLMs exhibit Gromov Hyperbolicity (GH), a distance-based measure of tree-likeness. Using 818,904 sample-layer measurements from ten open-weight models across MATH500, HumanEval, WinoGrande, and TruthfulQA, we build a GH map over four axes: parameter scale, layer depth, model family, and input domain. The clearest pattern is depth, not scale: middle layers usually form a high-relative-hyperbolicity plateau, while final layers often become substantially more tree-like. Scale effects are weak and non-monotonic, matched 7/8B model families differ strongly, and domains interact with model specialization. These findings make GH useful as a practical diagnostic: it shows where hierarchical distance structure appears, how specialization changes it, and which model-layer-domain comparisons deserve closer analysis.

Mon 7 SeptComputation and Language
The gist
The paper studies how the hidden layers inside large language models arrange information like a tree, even though the data is stored as regular vectors. The researchers measured this tree-like quality across different model sizes, layers, types, and tasks using a special mathematical way called Gromov Hyperbolicity. They found that the middle and final layers often show more clear tree structures, while size has less impact. This helps reveal how models organize knowledge internally and which parts might need closer study.
Open → 2609.07053v1