A research proposal from Apple Machine Learning Research would let language-model agents decide for themselves when and how to compress long traces. It addresses a problem that arises as agent histories of reasoning and tool calls accumulate stale material and eventually exceed the available context window.
According to the description, existing approaches compact these histories at fixed intervals, once a token threshold is reached. They do not account for the structure of the task, so compaction can discard partial results in the middle of a derivation or search.
The proposed method, SELFCOMPACT, adds a compaction tool that the model can invoke to summarize the accumulated trace. The available source excerpt does not explain the full mechanism or report evaluation results. The original source provides further detail on the approach: Apple Machine Learning Research
🇬🇧 https://machinelearning.apple.com/research/self-compacting-language-agents