에이전트는 페이지네이션을 하지 않는다: LLM 도구 응답을 위한 첫 번째 청크 선택
Agents Don't Paginate: First-Chunk Selection for LLM Tool Responses
한국어 초록
Claude Code, Cursor, OpenAI Codex, GitHub Copilot, Aider와 같은 대규모 언어 모델(LLM) 기반 코딩 에이전트는 턴당 토큰 예산을 일상적으로 초과하는 도구 응답을 받는다. 표준적인 해결책인 페이지네이션(pagination)은 이러한 응답을 생성한 모든 프로토콜에서 사용할 수 있다. 그러나 공개된 Model Context Protocol 미들웨어의 세션 로그 코퍼스 전반에서 에이전트가 두 번째 청크를 요청한 사례는 하나도 관찰되지 않았다. 에이전트가 읽는 것은 첫 번째 청크이므로, 정답 항목(에이전트가 필요로 하는 항목)이 그 청크의 첫 번째 위치에 놓이는 빈도, 즉 precision-at-1 비율 $p_1$을 살펴본다. 통제된 오프라인 벤치마크에서 첫 번째 청크 선택을 0/1 배낭 문제(knapsack)로 다루고, SWE-bench Verified의 500개 과제에서 여섯 가지 가치 함수를 비교한다. 이어서 다섯 개 언어 모델에 대한 단일 턴 파일 위치 특정(file-localisation) 프로브(4,800회의 LLM 호출이며, 엔드 투 엔드 해결률 테스트는 아님)로 $p_1$이 실제로 중요한지 검증한다. 사전 등록한 두 가설은 성립하지 않았으며, 이것이 본 연구의 주요 발견이다. 핵심 발견은 부정적이다. $p_1$을 높인다고 해서 하위 작업의 정확도가 체계적으로 높아지지는 않는다. 모델별 차이는 3퍼센트포인트(p.p.) 미만이고, 부호가 일관되지 않으며, 통계적으로 유의한 모델은 없다. 에이전트는 청크 내 어느 위치에서든 정답을 찾아내므로, 에이전트의 답변에 영향을 미치는 것은 정답의 청크 내 순위가 아니라 첫 번째 청크에 포함되었는지 여부이다. 두 번째 발견은 키워드 스코어러에 파일 메타데이터 신호 네 가지를 추가하면 $p_1$이 4.8 p.p. 하락한다는 것이다(쌍체 유의성 검정, $p = 0.001$). 반면 매개변수가 없는 키워드 스코어러는 $p_1$을 24.2%의 기준선에서 35.0%로 높이며(+10.8 p.p., 우연으로 보기에는 훨씬 큰 수준; $p = 3.9 \times 10^{-8}$), 키워드가 일치하지 않을 때 도구의 기본 정렬 순서로 되돌아가는 폴백을 적용하면 35.8%까지 높아진다. 그러나 핵심 발견에 따르면 이는 1위 순위(rank-1)의 향상이며, 1위 순위는 에이전트의 답변에 도달하지 않는 부분이다. 따라서 하위 작업의 정확도는 변하지 않는다.
원문 초록
Coding agents built on large language models (LLMs), such as Claude Code, Cursor, OpenAI Codex, GitHub Copilot, and Aider, receive tool responses that routinely exceed the agent's per-turn token budget. The standard remedy, pagination, is available in every protocol that produced these responses; yet across the corpus of session logs from a public Model Context Protocol middleware we observed no agent-initiated requests for a second chunk. The first chunk is what the agent reads, so we ask how often the gold item (the one the agent needs) is placed first in it: the precision-at-1 rate $p_1$. In a controlled offline benchmark we treat first-chunk selection as a 0/1 knapsack and compare six value functions on 500 SWE-bench Verified tasks, then test whether $p_1$ matters with a single-turn file-localisation probe on five language models (4,800 LLM calls; not an end-to-end resolve-rate test). Two pre-registered hypotheses did not hold and are our main findings. The central one is negative: raising $p_1$ does not systematically raise downstream accuracy. Per-model deltas stay under three percentage points (p.p.), are not consistently signed, and no model is significant; the agent recovers the gold from anywhere in the chunk, so what reaches its answer is first-chunk inclusion, not the gold's rank within it. The second: adding four file-metadata signals to a keyword scorer hurts $p_1$ by 4.8 p.p. (paired significance test, $p = 0.001$). A parameter-free keyword scorer does raise $p_1$, from a 24.2% baseline to 35.0% (+10.8 p.p., far beyond chance; $p = 3.9 \times 10^{-8}$), and to 35.8% with a fallback to the tool's native ordering when no keyword matches. But by our central finding this is a rank-1 gain, and rank-1 is the part that does not reach the agent's answer: downstream accuracy does not move.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.26130v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.