Metraipolis › archive › dc_4f6f85e5d168

The Hidden Costs of Forgetting: A Study of Trajectory Deletion in Software Engineering Agents — arXiv:2610.35496

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.35496
License (as archived)
CC0-1.0
Archived
2026-10-27T08:03:13.588Z
SHA-256 of the archived text
d421d785f56761c9b32dd28ff4f9c9d79b4736e11f634927aa635f31125452a6
Stable URL of this page
https://metraipolis.com/documento/dc_4f6f85e5d168

How to cite

The Hidden Costs of Forgetting: A Study of Trajectory Deletion in Software Engineering Agents — arXiv:2610.35496 — arXiv (en), https://arxiv.org/abs/2610.35496 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_4f6f85e5d168 (Metraipolis archive dc_4f6f85e5d168, sha256 d421d785f56761c9b32dd28ff4f9c9d79b4736e11f634927aa635f31125452a6)
BibTeX
@misc{dc4f6f85e5d168,
  title = {The Hidden Costs of Forgetting: A Study of Trajectory Deletion in Software Engineering Agents — arXiv:2610.35496},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.35496},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_4f6f85e5d168; sha256 d421d785f56761c9b32dd28ff4f9c9d79b4736e11f634927aa635f31125452a6},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.35496. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Software engineering agents resend their entire trajectory to an LLM at every turn, motivating online trajectory reduction. Prior work shows that randomly deleting 75% of tokens in old turns may preserve agent effectiveness, but it remains unclear why, how agents compensate for missing content, and whether it actually reduces costs. This paper presents an empirical study of 42 trajectory-reduction configurations, focusing on effectiveness, agent behavior, and cost. We systematically explore deleting content from old turns by varying the scope, granularity, amount, and timing of deletion across 9,400 runs with two state-of-the-art agents on SWE-bench Verified. We find deleting large amounts of trajectory content (e.g., up to 100% of reasoning text) can preserve overall effectiveness. Importantly, such deletion must be applied with a delay, as immediate deletion tends to significantly degrade effectiveness. Agents often compensate for deleted content by re-fetching it, increasing both the number of turns taken and the input/output tokens. Whether trajectory reduction reduces costs depends on the pricing model: Under a flat pricing model, estimated costs fall in 26 of 42 evaluations. Surprisingly, under a caching-aware pricing model, zero evaluations yield lower costs, since reducing the trajectory breaks the cached prefix billed at a lower rate. Our findings have three implications: First, token counts alone are misleading; trajectory reduction techniques must consider overall costs under a realistic pricing model. Second, analyzing trajectories is crucial to understand agent behavior, as end-to-end effectiveness hides differences such as excessive re-fetching. Finally, these results highlight the need for future work on memory management to reduce costs without sacrificing effectiveness.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2610.35496 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-27T07:55:30.991Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).