NeurIPS 2026QuestionsPapersAreasAboutMarkdown

From History to State: Constant-Context Skill Learning for LLM Agents

Haoyang Xie, Xinyuan Wang, Yancheng Wang, Puda Zhao, Feng Ju

NeurIPS page · Open on the map

Category: LLM Agents, Evals & Benchmarks › Skill Management for LLM Agents · Type: new method · Keywords: LLM agents, context-to-weights, skill learning, personal assistants, reinforcement learning, prompt optimization

Areas: LLM Reasoning › Agentic Reasoning › Skill-Augmented Reasoning; Memory › Agent Memory Systems › Memory-Augmented Agents; AI Agents › Agent Capabilities › Skill Evolution for Agents; RL for LLMs & Agents › Language Model Agents › LLM Agent Skills

Summary

Constant-context skill learning learns reusable procedures in lightweight task-family modules and uses a compact state block to reduce prompt tokens while achieving strong performance across multiple agent environments.

Explained to a 5-year-old

Imagine you have a helpful robot that can do many computer jobs, like looking up information or fixing code. Sometimes you use a robot that lives on the internet, which is very smart but tells everyone what it’s doing. Other times you use a robot that lives on your own computer, which keeps your secrets safe but sometimes makes mistakes. The new idea helps both kinds of robots by teaching them small, reusable skills instead of giving them long instructions every time. It creates a tiny memory that tracks what the robot is trying to do, so it knows where it left off.

Explained to a 5-year-old, longer

Imagine you have a helpful robot that can do many computer jobs, like looking up information or fixing code. Sometimes you use a robot that lives on the internet, which is very smart but tells everyone what it’s doing. Other times you use a robot that lives on your own computer, which keeps your secrets safe but sometimes makes mistakes. The new idea helps both kinds of robots by teaching them small, reusable skills instead of giving them long instructions every time. It creates a tiny memory that tracks what the robot is trying to do, so it knows where it left off. The robot learns by watching many examples and getting small rewards for each step it gets right. This way, the robot can work faster, uses less computer power, and doesn’t need to share your private information with the internet. It also costs less because it doesn’t have to send huge amounts of text back and forth. The robot can handle many different tasks, like browsing websites, organizing files, or solving science problems. It works well on different types of robot brains, like Qwen3 and Llama models. The result is a robot that is both smart and private, making personal assistants more useful and safer. This approach also saves money for companies because they need less computing resources. Overall, it makes robot helpers more reliable, cheaper, and more respectful of your privacy.

For a technical reader

The paper tackles the privacy-cost-capability trade-off in LLM-based personal assistants by moving procedural context from prompts into lightweight, reusable modules. A deterministic tracker maintains a compact state block that captures task progress, enabling step-level supervised fine-tuning and online reinforcement learning for each module. This context-to-weights scheme reduces prompt tokens per turn by 2-7× while achieving competitive performance on ALFWorld, WebShop, and SciWorld across Qwen3 and Llama models. The result is a more efficient, privacy-friendly assistant that requires less computation and fewer external API calls.

Problem

Personal agents must balance privacy, cost, and capability: cloud models are capable but expose sensitive intermediate context, while local models protect privacy but are less reliable, and both incur repeated costs from long prompts and histories.

Method

The approach learns reusable procedures in lightweight task-family modules, uses a deterministic tracker to maintain a compact state block from task progress, and trains each module with step-level supervised fine-tuning and refines it via online reinforcement learning.

Results

The approach achieves 89.6% unseen success on ALFWorld, 76.8% on WebShop, and 66.4% on SciWorld with Qwen3-8B, matching or exceeding prior results while cutting prompt tokens per turn by 2-7× compared to ReAct baselines.

Contributions

The paper introduces a context-to-weights framework that moves procedural context from prompts into lightweight modules, employs a deterministic state tracker for compact state representation, and demonstrates strong performance across multiple agent environments while reducing prompt overhead.

Practical relevance

Enables privacy-preserving personal assistants that are both capable and cost-effective by reducing reliance on long prompts and external API context.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction