논문 해설
Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$
Pdb or Not to Be: Pass$_{X}$@$k$로 디버깅 인터페이스 비교
- 연구 문제 디버거 에이전트의 효과가 도구 추가나 다중 에이전트 구성과 얽혀 있고, 단일 실행 비교는 반복 샘플링의 분산을 드러내지 못합니다.
- 연구 방법 bash-agent와 pdb-agent를 같은 하네스에서 비교하고, 여러 실행을 결합하는 교차 pass@k 추정량인 passX@k로 비교합니다.
- 주요 결과 두 bash 실행의 passX@2가 bash와 pdb 실행 한 개씩의 결합보다 높았고, 단일 실행의 상보성은 주로 실행 간 분산으로 설명됩니다.
디버거 인터페이스 비교의 문제
코딩 에이전트는 대부분 print 문, 테스트 스크립트, 셸 명령으로 이루어진 편집-실행-관찰 루프에 의존합니다. 라이브 디버거는 스택 프레임, 변수 값, 단계 실행 같은 실행 중 상태에 직접 접근하게 해 주지만, 기존 연구에서는 디버거를 추가 도구나 하위 에이전트로 붙이는 경우가 많았습니다. 이 방식에서는 디버거가 준 실행 증거의 효과와 도구 추가가 정책 전체에 주는 영향을 분리하기 어렵습니다. 또 기존 비교는 대부분 단일 롤아웃의 성능을 보고하는데, 같은 구조라도 반복 샘플링 때 해결하는 과제 집합이 크게 달라질 수 있습니다. 이 논문은 이러한 혼란을 줄이려고 셸 없는 디버거 에이전트와 셸 기반 에이전트를 같은 하네스에서 비교합니다.
bash-agent와 pdb-agent의 구성
두 구성은 같은 모델, 프롬프트, 예산, 샌드박스, 저장소 스냅샷과 공유 도구 집합을 쓰고 실행 인터페이스만 다릅니다. bash-agent는 run_bash로 임의의 셸 명령을 실행하지만 관찰 후 편집을 요청하는 프롬프트를 하네스에서 강제하지는 않습니다. pdb-agent는 셸 접근이 없고 제한된 Python 실행기와 지속적인 디버거 세션을 사용합니다. pdb-agent에서는 replace_text 편집 도구가 현재 relay에서 디버거 명령이 한 번 성공하기 전까지 잠겨 있습니다. 이 편집 게이트는 파일럿 실행에서 에이전트가 상태를 확인하지 않고 맹목적으로 편집하다 예산을 소진하는 실패를 줄이기 위해 추가되었습니다.
한 롤아웃은 최대 10개의 relay로 나뉘고 각 relay는 최대 50번의 에이전트 턴을 가집니다.

Figure 1 : Controlled execution interface comparison. The two upper bands are identical across arms: models, sampling, prompts, relay and turn budgets, sandbox, repository snapshot, and a shared substrate of navigation, testing, and editing tools. Only the execution interface differs. The bash-agent runs arbitrary shell commands. The pdb-agent trades the shell for a debugger session plus a scoped script runner for setup, and its edit tools stay locked until one debugger command succeeds in the current relay. The gate is the one enforced constraint in the study, added after pilot runs showed the pdb arm editing blindly without ever inspecting state.
원문 · CC BY 4.0 · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$ · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.passX@k 추정량
passX@k는 여러 에이전트의 실행을 하나의 결합 추정량으로 바꾼 교차 에이전트 pass@k입니다. 각 에이전트 m과 과제 j에 대해 성공한 실행 수를 c_jm으로 두면, 원문 식은 passX@k = 1 − (1/n^k) ∏_{m=1}^{k} (n − c_jm)입니다. 이 식의 ∏ 안에서 빼는 값은 각 에이전트가 실패한 실행 수이고, 전체 결합 값은 모든 에이전트가 동시에 실패할 확률을 1에서 뺀 값입니다. 분모 n^k는 에이전트별 n개 실행을 한 번씩 고르는 조합의 총수에 대응합니다. 이 논문은 두 에이전트와 에이전트당 세 번의 실행을 사용하므로 n=3, k=2로 두고 교차 추정량을 pass@2 형태로 계산합니다.
이 추정은 각 에이전트 내 실행이 iid이고 에이전트 간 실행 묶음이 상호 독립일 때 비편향이라고 논문이 증명합니다.

Figure 3 : Cumulative solve rate as a function of relay budget. Dotted curves are pass@1, with the shaded envelope spanning the three seeds. Solid curves are pass@2. Two bash rollouts (solid red) dominate the passX@2 of one bash + one pdb rollout (green, dashed) at every relay threshold. The oracle reranker (gray, dotted) unions all six runs at3×the budget and is plotted as a ceiling.
원문 · CC BY 4.0 · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$ · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.모델별 성능과 실행 간 분산
GPT-OSS-120B 설정에서 bash-agent의 pass@1은 56.7±0.6이고 pdb-agent는 40.3±0.8입니다. 같은 설정에서 bash-agent 두 번의 pass@2는 64.7이고, bash와 pdb 실행 한 번씩을 결합한 passX@2는 60.0입니다. Nemotron-3-Ultra 설정에서는 bash-agent의 pass@1 56.7±1.2, pdb-agent의 pass@1 49.6±1.4가 보고되며 두 번의 bash 실행 pass@2는 62.7, 교차 조합 passX@2는 60.3입니다. 저자들은 단일 실행에서 보이는 pdb 고유 해결이 주로 실행 간 분산에서 나온다고 해석합니다.
이 해석은 세 번의 실행을 모은 그림 4의 합집합 비교에 근거합니다.

Table 1 : Correctness rates by model and architecture, averaged over the entire dataset and with a maximum budget of10relays. For pass@1(i.e. the mean over three runs), we also report st. dev.
원문 · CC BY 4.0 · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$ · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Figure 4 : Who solved it. Top row: what a single-seed comparison sees (mean over all nine pairings). Bottom row: comparing the unions of the full three runs per architecture.
원문 · CC BY 4.0 · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$ · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.셸과 디버거를 함께 쓰는 부가 실험
부가 실험에서는 bash-agent의 run_bash를 유지하고 pdb 세션을 더한 pdb_shell 구성을 같은 조건의 세 시드로 평가합니다. 이 구성에서는 편집 게이트를 강제하지 않습니다. 원문에 따르면 pdb_shell의 pass@1은 Nemotron-3-Ultra에서 58.1, GPT-OSS-120B에서 57.9로, 두 모델 모두 bash-agent의 56.7과 약 1.5점 이내입니다. 따라서 디버거를 추가하는 설정에서는 pass@1 변화가 크지 않았습니다. 교차 pass@2는 두 모델 모두 두 bash 실행보다 약간 높지만, 이 차이는 1점 안팎이며 relay 예산 r≤2에서는 두 bash 실행보다 낮습니다.

Figure 8 : Who solved it, bash versus pdb_shell, same construction as Figure 4. Top row: mean over the nine bash×pdb_shell seed pairings. Bottom row: union of all three runs per architecture. Unlike the substitution comparison, the exclusive-solve bars are symmetric between arms (union: 4.2% bash-only vs. 6.4% pdb_shell-only for Nemotron; 5.8% vs. 5.2% for GPT-OSS-120B) and both shrink between rows, consistent with two arms of equal strength sampled independently.
원문 · CC BY 4.0 · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$ · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.
Figure 9 : Cumulative solve rate as a function of relay budget r for the additive pdb_shell arm against bash-agent, same construction as Figure 3. Dotted curves are pass@1 with the 3-seed envelope; solid red and blue are intra-architecture pass@2 (Eq. (4)); green is the cross-architecture pass@2 of one bash run and one pdb_shell run (Eq. (5)). With the shell retained, pdb_shell pass@1 matches bash pass@1 within about 1.5 points, and the mixed pair edges out both intra-architecture pairs at the full budget by roughly one point while trailing two bash runs at r ≤ 2.
원문 · CC BY 4.0 · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$ · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.범위와 한계
연구는 두 개의 개방형 가중치 추론 모델과 하나의 디버거 구성에 한정됩니다. 따라서 다른 모델이나 다른 디버깅 인터페이스에서는 곡선이 달라질 수 있습니다. 또한 Nemotron-3-Ultra 기술 보고서가 SWE-bench Verified를 에이전트 post-training 시드 세트에 포함한다고 밝히므로, bash 익숙도 일부가 인스턴스 특정적일 수 있습니다. SWE-bench Verified는 Python 전용이므로 장기적이고 상태 의존적인 실패를 충분히 담지 못할 수 있습니다. 복잡도 층에서 3개 이상 파일 구간은 n=22, 100줄 초과 구간은 n=8이어서 고난도 구간에 대한 강한 결론은 어렵습니다.

Figure 5 : Pass rate by gold-patch complexity (files touched). Both interfaces decline in parallel; the debugger’s deficit is roughly constant across buckets rather than shrinking on harder instances. The changed-lines stratification gives the same picture (Figure 6).
원문 · CC BY 4.0 · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$ · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.
Figure 6 : Pass rate by gold-patch complexity (changed lines). As with the files-touched stratification (Figure 5), both interfaces decline in parallel as patches grow. The pdb–bash deficit is roughly stable through 100 lines and vanishes in the >100-line bucket under both models, but that bucket is too small to draw general conclusions,n=8.
원문 · CC BY 4.0 · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$ · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- Ryan Magnuson, Ellie Kitanidis, Ariel Lee
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 11월 5일
- 등록일
- 2026년 11월 9일
- 수정일
- 2026년 11월 5일
- 버전
- v1
- arXiv
- 2611.08666
- 분류
- cs.AI · cs.SE
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
Interactive debuggers are indispensable to human software development, yet coding agents overwhelmingly rely on edit-execute-observe loops, using common bash tools, test scripts, and print statements to debug via repeated shell commands. Stepping through a debugger provides live access to runtime state, which may enable different problem-solving capabilities. However, prior work typically introduces the debugger as an additional tool or through a new subagent, making its individual contribution difficult to isolate from the associated scaffold changes. To address this, we compare a debugger-only agent against a bash-only agent on all 500 SWE-bench Verified instances, holding the rest of the scaffold fixed. We evaluate both architectures on two models, GPT-OSS-120B and Nemotron-3-Ultra-550B, with three independent runs per architecture $\times$ model configuration. Crucially, to distinguish interface specialization from expanded coverage under repeated sampling, we introduce pass$_X$@$k$, a cross-agent pass@$k$ that provides an unbiased estimator of the probability that at least one of $k$ agents is successful. Although the bash and debugger agents solve partially disjoint subsets of the benchmark in any single pair of runs, our pass$_X$@$2$ estimator reveals that this is largely due to run-to-run variance rather than tool complementarity. Across both models, we find that two bash rollouts outperform the combination of one bash and one debugger rollout. Our findings highlight the importance of accounting for stochastic variance in evaluating agent and tool diversity, and we hope that pass$_X$@$k$ will serve as a useful framework for the community.
원문 인용
Ryan Magnuson, Ellie Kitanidis, Ariel Lee (2026). Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$. arXiv:2611.08666v1. https://arxiv.org/abs/2611.08666v1
BibTeX
@misc{magnuson2026comparing,
title = {{Pdb or Not to Be: Comparing Debugging Interfaces With Pass$_{X}$@$k$}},
author = {Ryan Magnuson and Ellie Kitanidis and Ariel Lee},
year = {2026},
eprint = {2611.08666},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.08666v1}
}