paper-with-me

홈 › Papers

Self-Compacting Language Model Agents

2026-06-22 · Tianjian Li, Jingyu Zhang, William Jurayj, Xi Wang, Chuanyang Jin, Mehrdad Farajtabar, Eric Nalisnick, Daniel Khashabi arxiv

Long agent traces composed of chains of thought and tool calls accumulate stale content that anchor subsequent generations, and eventually outgrow the context window. Existing scaffolds mitigate it with fixed-interval compaction triggered at a token threshold. Such triggers pay no heed to trajectory structure, risking discard of partial results mid-derivation or mid-search. We propose SelfCompact, a scaffold that allows the model itself to decide when and how to compact. Specifically, it pairs two inference-time elements: (i) a compaction tool the model invokes to summarize the accumulated context, and (ii) a lightweight rubric specifying when to fire (a sub-task has resolved, or the trajectory is converging) and when to suppress (mid-derivation, or when stuck). Both are needed. The tool alone is unevenly used across open-weight models, often invoked at unhelpful moments or not at all; the rubric alone cannot act. Together, they elicit effective adaptive compaction without any fine-tuning or external supervision. We present empirical results on six benchmarks (competitive math and agentic search) and seven models. Our results show that SelfCompact matches or exceeds fixed-interval summarization at a fraction of the token cost, improving over a no-summarization baseline by up to 18.1 points on math and 5-9 points on agentic search at 30-70% lower per-question cost. Our results expose a meta-cognitive gap: although unprompted models cannot reliably tell when their own context is rotting, a lightweight rubric closes this gap, reframing when to compact as a capability that scaffolds can supply without training.

📄 PDF Abstract BibTeX arXiv:2606.23525

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Compacting Deep Neural Networks for Internet of Things: Methods and Applications

2021-03-20 · Ke Zhang, Hanbo Ying, Hong-Ning Dai, Lin Li 외

Deep Neural Networks (DNNs) have shown great success in completing complex tasks. However, DNNs inevitably bring high computational cost and storage consumption due to the complexity of hierarchical structures, thereby h…

DiversityKnowledge DistillationModel Compression

Agentic Context Management: Solving Agent Memory and Cost by Treating Them as Lifecycle and Architecture Problems

2026-07-23 · Gaurav Dadhich arxiv

Production AI agents' failures are less often due to an inability to reason well and more often because they cannot manage what is in their reasoning context: conversation histories, large prompts, large tool definitions…

Gradually Compacting Large Language Models for Reasoning Like a Boiling Frog

2026-02-04 · Yiran Zhao, Shengyang Zhou, Zijian Wu, Tongyan Hu 외 arxiv

Large Language Models (LLMs) have demonstrated impressive reasoning capabilities, but their substantial size often demands significant computational resources. To reduce resource consumption and accelerate inference, it …

Reinforcement LearningMathematical ReasoningCode Generation

PRANC: Pseudo RAndom Networks for Compacting deep models

2022-06-16 · ICCV 2023 1 · Parsa Nooralinejad, Ali Abbasi, Soroush Abbasi Koohpayegani, Kossar Pourahmadi Meibodi 외

We demonstrate that a deep model can be reparametrized as a linear combination of several randomly initialized and frozen deep models in the weight space. During training, we seek local minima that reside within the subs…

image-classificationImage Classification

Novelty-Prepared Few-Shot Classification

2020-03-01 · Chao Wang, Ruo-Ze Liu, Han-Jia Ye, Yang Yu

Few-shot classification algorithms can alleviate the data scarceness issue, which is vital in many real-world problems, by adopting models pre-trained from abundant data in other domains. However, the pre-training proces…

ClassificationGeneral Classification