Skip to content
AI News HubLIVE
Original source3 min read

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

Summary

This paper proposes constant-context skill learning, a framework that moves reusable procedures into lightweight modules, reducing prompt tokens by 2-7x while achieving strong performance on multiple benchmarks.

SourcearXiv AIAuthor: Haoyang Xie, Xinyuan Wang, Yancheng Wang, Puda Zhao, Feng Ju
From History to State: Constant-Context Skill Learning for LLM Agents
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

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

Skip to main content

Learn about arXiv becoming an independent nonprofit.

We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate

> cs > arXiv:2605.05413

Help | Advanced Search

All fields Title Author Abstract Comments Journal reference ACM classification MSC classification Report number arXiv identifier DOI ORCID arXiv author ID Help pages Full text

Search

GO

quick links

Login

Help Pages

About

-->

Computer Science > Artificial Intelligence

arXiv:2605.05413 (cs)

[Submitted on 6 May 2026]

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

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

View a PDF of the paper titled From History to State: Constant-Context Skill Learning for LLM Agents, by Haoyang Xie and 4 other authors

View PDF HTML (experimental)

Abstract:Large language model (LLM) agents are increasingly used to operate browsers, files, code and tools, making personal assistants a natural deployment target. Yet personal agents face a privacy-cost-capability tension: cloud models execute multi-step workflows well but expose sensitive intermediate context to external APIs, while local models preserve privacy but remain less reliable. Both settings also pay repeatedly for long skill prompts and growing histories. We propose constant-context skill learning, a context-to-weights framework for recurring agent workflows: reusable procedures are learned in lightweight task-family modules, while inference conditions only on the current observation and a compact state block. A deterministic tracker renders this state block from task progress and supplies aligned subgoal rewards, so each module can be trained with step-level SFT and refined through online RL. Across ALFWorld, WebShop, and SciWorld, our agents achieve strong performance across Qwen3-4B, Qwen3-8B and Llama-3.1-8B. With Qwen3-8B, SFT+RL reaches 89.6\% unseen success on ALFWorld, 76.8\% success on WebShop, and 66.4\% unseen success on SciWorld. They match or exceed strong published agent-training results while reducing prompt tokens per turn by 2--7$\times$ relative to controlled ReAct prompting baselines, showing that procedural context can be moved from prompts into weights.

Subjects:

Artificial Intelligence (cs.AI)

Cite as: arXiv:2605.05413 [cs.AI]

(or arXiv:2605.05413v1 [cs.AI] for this version)

https://doi.org/10.48550/arXiv.2605.05413

Focus to learn more

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Haoyang Xie [view email] [v1] Wed, 6 May 2026 20:13:42 UTC (6,874 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled From History to State: Constant-Context Skill Learning for LLM Agents, by Haoyang Xie and 4 other authors

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.AI

new | recent | 2026-05

Change to browse by:

cs

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

export BibTeX citation Loading...

BibTeX formatted citation

×

loading...

Data provided by:

Bookmark

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

About

Help

contact arXivClick here to contact arXiv Contact

subscribe to arXiv mailingsClick here to subscribe Subscribe

Copyright

Privacy Policy

Web Accessibility Assistance

arXiv Operational Status

Key points and analysis

Article intelligence

EngineersIntermediate

Key points

  • Proposes constant-context skill learning to encode reusable procedures into lightweight modules
  • Uses a deterministic tracker to produce state block and subgoal rewards
  • Achieves strong results on ALFWorld, WebShop, and SciWorld
  • Reduces per-turn prompt tokens by 2-7x compared to ReAct

Highlights and analysis are generated automatically and may contain errors. Check the original source.