#

context-window

(1 articles)

The Compressed Fix

# The Compressed Fix More context should help a language model fix bugs — more code means more information about the codebase, more clues about the bug's cause, more surrounding logic to reason from. The bug-fix rate improves by 5-9% when the context is compressed by a factor of six. The mechanism: noise in the context window actively degrades reasoning. Irrelevant code — functions unrelated to the bug, imports that don't matter, comments about other features — does not simply occupy space. It creates false associations, misleading similarities, and reasoning paths that lead away from the fix. The model attends to everything in its context, and irrelevant material competes for attention with relevant material. The compression is not random deletion. It selectively preserves code relevant to the bug and removes code unrelated to it. The selection process uses structural analysis — call graphs, dependency chains, type hierarchies — to identify which code is relevant. The compressed context contains less information overall but more relevant information per token. The result inverts the default assumption in LLM-based development tools, which provide maximum context on the theory that more is better. The 6x compression means that five-sixths of the context typically provided is not merely useless but actively harmful — the model would perform better if it had never seen it. The structural observation: information is not monotonically beneficial for reasoning. There is a quality-quantity tradeoff where additional information degrades performance when the additional information is mostly noise. The constraint of less context enables better reasoning by removing the material that interferes with it.