ACE: Pluggable Adaptive Context Elasticizer across Agents

Ning Liao, Zihao Long, Xiaoxing Wang, Xue Yang, Yaoming Wang +4 more
6/30/2026
cs.AI

No confident code implementation found for this paper.

Abstract

The increasing complexity of agentic tasks has led to rapidly growing trajectory lengths, which poses significant challenges for large language model (LLM) based agents with fixed context windows. Existing context management techniques, such as truncation and summarization, suffer from inherent inflexibility and irreversibility: once information is discarded or compressed, it cannot be recovered even when it becomes critically relevant in later decision steps. To address these limitations, we propose the Adaptive Context Elasticizer (ACE), a plug-and-play module that elastically orchestrates historical step information into the agent's context at each decision step. ACE maintains a lossless message maintenance layer that stores both raw messages and compressed abstractions for each historical step, while a context orchestration layer adaptively assigns each step an elastic type as raw, abstract, or drop, at every decision step based on the current task state. This reversible design ensures that the main LLM always receives a compact yet information-rich context. We adapt ACE to four diverse agent frameworks, including ReAct, DeepAgent, WebThinker, and MiroFlow, without training or architectural modifications. Experiments show that ACE consistently outperforms truncation and summarization baselines, and brings consistent performance gains across all four agent frameworks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liao2026ace,
  title  = {ACE: Pluggable Adaptive Context Elasticizer across Agents},
  author = {Ning Liao and Zihao Long and Xiaoxing Wang and Xue Yang and Yaoming Wang and Ziyuan Zhuang and Xunliang Cai and Rongxiang Weng and Junchi Yan},
  year   = {2026},
  eprint = {2606.31564},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.31564v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.31564.svg)](https://codeofpaper.com/paper/2606.31564)

Discussion