LAR

NeurIPS 2026  ·  arXiv:2605.18597

Latent Action Reparameterization for Efficient Agent Inference

Wenhao Huang1,8,*, Qingwen Zeng2,10,*, Qiyue Chen2, Zijie Guo3, Yu Sun9, Cheng Yang10, Siru Ouyang4, Jiri Gesi5, Fang Wu6, Jiayi Zhang7,10, Huaming Chen2, Bang Liu1,8,†, Xiangru Tang9,†, Chenglin Wu10,†

1Université de Montréal 2The University of Sydney 3Fudan University 4University of Illinois Urbana-Champaign 5Amazon Science 6Stanford University 7HKUST (Guangzhou) 8Mila – Quebec AI Institute 9Yale University 10DeepWisdom

* Equal contribution; author order determined randomly    † Corresponding authors

One agent trajectory, two action spaces

Each cell is roughly one token of the TriviaQA case study from the paper, with a latent vocabulary mined live in your browser. LAR folds recurring, low-entropy scaffolding into single latent actions z and keeps the search query and answer explicit.

– tokens
 
Prompt & question Observation Ot Reasoning Rt Action At Latent action zt

Point at a cell to read its token. Latent cells show the segment they replace.

−27.1%

action tokens on TriviaQA with Qwen3-8B, while accuracy rises to 80.09 (ReAct: 77.84)

0.1%

of parameters trained: a LoRA adapter (r = 8) plus embeddings for the new latent actions

0overhead

at decoding time: latent actions are ordinary vocabulary tokens, so no expansion step is needed

+27% EM

on the OpenClaw agent runtime after reparameterizing just 6.7% of its static prompt

Abstract

Large language model (LLM) agents often rely on long sequences of low-level textual actions, resulting in large effective decision horizons and high inference cost. While prior work has focused on improving inference efficiency through system-level optimizations or prompt engineering, we argue that a key bottleneck lies in the representation of the action space itself. We propose Latent Action Reparameterization (LAR), a framework that learns a compact latent action space in which each latent action corresponds to a multi-step semantic behavior. By reparameterizing agent actions into latent units, LAR enables decision making over a shorter effective horizon while preserving the expressiveness of the original action space.

Unlike hand-crafted macros or hierarchical controllers, latent actions are learned from agent trajectories and integrated directly into the model, allowing both planning and execution to operate over abstract action representations. Across a range of LLM-based agent benchmarks, LAR significantly reduces the effective action horizon and improves inference efficiency under fixed compute budgets. As a consequence, our approach achieves substantial reductions in action tokens and corresponding wall-clock inference time, while maintaining or improving task success rates. These results suggest that action representation learning is a critical and underexplored factor in scaling efficient LLM agent inference, complementary to advances in model architecture and hardware.

Methodology

Change the unit of decision, not just the length of the text

An agent's effective horizon is the number of generation decisions it makes, Heff(τ) = Σt |at|. Much of that budget goes to scaffolding the model regenerates on every step: tool syntax, output formats, reasoning templates. LAR learns which segments are transition-equivalent (their effect does not depend on the surrounding history) and gives each one a single vocabulary symbol. Anything that binds a parameter, such as a search query, an entity or a code identifier, stays in explicit tokens so the action remains executable.

Overview of LAR. Transition-equivalent action segments collapse into executable latent actions, which shortens the decision horizon. Low-entropy structure is abstracted; high-entropy, parameter-binding content stays explicit.
STAGE 1

Find transition-equivalent segments

Mine word n-grams inside sentence boundaries from rollouts. Next-token entropy is a tractable surrogate for transition equivalence.

H(s)=−∑w∈Vsp(w∣s) log⁡2p(w∣s)H(s) = -\sum_{w \in V_s} p(w \mid s)\,\log_2 p(w \mid s)
STAGE 2

Build the latent action vocabulary

Keep segments with freq ≥ fmin and H ≤ Hmax, rank them, drop overlaps (ρ = 0.7), keep the top K as new symbols <seg_k>.

score⁡(s)=freq⁡(s)H(s)+1\operatorname{score}(s) = \frac{\operatorname{freq}(s)}{H(s) + 1}
STAGE 3

Pair each trajectory with its reparameterized twin

Longest-first matching replaces vocabulary segments with their symbols. The original τ\tau is the teacher input; the reparameterized τ^\hat{\tau} is the student input.

r=∑i=1N∣τ^i∣∑i=1N∣τi∣r = \frac{\sum_{i=1}^{N} \lvert \hat{\tau}_i \rvert}{\sum_{i=1}^{N} \lvert \tau_i \rvert}
STAGE 4

Distill the teacher into latent embeddings

A frozen teacher reads τ\tau; the student (LoRA r = 8, α = 16 on q/k/v/o, plus new embeddings) reads τ^\hat{\tau}. KL is taken only on positions with identical text, so the new embeddings must carry what they replaced.

LKL=1∣M∣∑i∈MDKL ⁣(softmax⁡(ziT/τ) ∥ softmax⁡(ziS/τ))\mathcal{L}_{\mathrm{KL}} = \frac{1}{\lvert M \rvert} \sum_{i \in M} D_{\mathrm{KL}}\!\big(\operatorname{softmax}(z_i^{T}/\tau)\,\big\|\,\operatorname{softmax}(z_i^{S}/\tau)\big)

At inference a latent action is looked up and run through the transformer like any other token. Token-level compression therefore turns directly into savings in prefill compute, KV-cache memory and latency, with no decoding or post-processing step.

Main experiments

Fewer action tokens, equal or better task success

LAR is compared with prompting baselines and with efficiency methods that act on tokens (TokenSkip, ConciseHint) or on context (ACON), using Qwen3-8B and Llama-3.1-8B-Instruct on reasoning-heavy retrieval (TriviaQA), structured code generation (KodCode) and tool-using web navigation (Mind2Web).

Main results

Task performance; parentheses give the relative change in action tokens vs. Vanilla. Bold marks the best score per backbone and benchmark.

Newer and larger backbones

The same pipeline on Qwen3.5-9B and the mixture-of-experts Qwen3.5-35B-A3B. LAR cuts action tokens by 7.2% to 47.2% while staying broadly comparable to the uncompressed baselines. Bold marks the best score per backbone and benchmark.

Held-out benchmarks, no retraining

Latent actions learned on TriviaQA (QA) or KodCode (code) and applied unchanged to Musique, HumanEval and MBPP.

System-level efficiency

Token throughput (TT, tokens/s, higher is better) and peak GPU memory (PG, GB, lower is better), ReAct vs. LAR on the same hardware.

Analysis

Where abstraction helps, and where it stops

Accuracy rises with the reparameterization rate, peaks, then collapses

Abstracting low-entropy scaffolding improves accuracy up to a boundary near 27%. Beyond it, queries and entity references start to be absorbed, environment-facing actions break, and accuracy drops sharply.

Moderate abstraction Abstraction boundary Excessive abstraction No reparameterization

More stable reinforcement learning with GRPO

Training scores under GRPO for the vanilla backbone and the model after LAR training. With Llama, LAR converges faster; with Qwen3, it is as stable as the vanilla model.

LAR Vanilla

Citation

@misc{huang2026latentactionreparameterizationefficient,
      title={Latent Action Reparameterization for Efficient Agent Inference},
      author={Wenhao Huang and Qingwen Zeng and Qiyue Chen and Zijie Guo and Yu Sun and Cheng Yang and Siru Ouyang and Jiri Gesi and Fang Wu and Jiayi Zhang and Huaming Chen and Bang Liu and Xiangru Tang and Chenglin Wu},
      year={2026},
      eprint={2605.18597},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2605.18597},
}