# Pdb or Not to Be: Comparing Debugging Interfaces With Pass$\_{X}$@$k$

Pdb or Not to Be：Pass$\_{X}$@$k$によるデバッグインターフェースの比較

Ryan Magnuson, Ellie Kitanidis, Ariel Lee · arXiv · 2026年11月5日

- **課題** ツールの追加や複数エージェント構成と、デバッガエージェントの効果が絡み合っています。単一実行の比較では、反復サンプリングによる分散が見えません。
- **手法** bash-agentとpdb-agentを同じハーネスで比較し、複数の実行を組み合わせる交差pass@k推定量であるpassX@kで比べます。
- **結果** bash実行2回のpassX@2が、bashとpdbの実行を1回ずつ組み合わせた値を上回りました。単一実行の相補性は、主に実行間の分散で説明されます。

## デバッガインターフェース比較の課題

コーディングエージェントの多くは、print文、テストスクリプト、シェルコマンドからなる編集・実行・観察のループに依存しています。ライブデバッガを使うと、スタックフレーム、変数の値、ステップ実行といった実行中の状態に直接アクセスできます。しかし既存研究では、デバッガを追加ツールやサブエージェントとして組み込む例が多くありました。この方式では、デバッガが与える実行の証拠による効果と、ツールを追加したことがポリシー全体に与える影響を切り分けにくいです。また既存の比較の多くは単一ロールアウトの性能を報告していますが、同じ構造でも反復サンプリングの際に解ける課題の集合は大きく変わりえます。この論文は、こうした混乱を減らすために、シェルを持たないデバッガエージェントとシェルベースのエージェントを同じハーネスで比較しています。

## bash-agentとpdb-agentの構成

両方の構成は、同じモデル、プロンプト、予算、サンドボックス、リポジトリのスナップショット、共有ツール集合を使い、違うのは実行インターフェースだけです。bash-agentはrun\_bashで任意のシェルコマンドを実行しますが、観察後に編集を求めるプロンプトをハーネスで強制することはしていません。pdb-agentにはシェルアクセスがなく、制限付きのPython実行器と持続的なデバッガセッションを使います。pdb-agentでは、現在のrelayでデバッガコマンドが一度成功するまで、replace\_textの編集ツールがロックされています。この編集ゲートは、パイロット実行で、エージェントが状態を確認せずに盲目的に編集して予算を使い切る失敗を減らすために追加されました。

1回のロールアウトは最大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…](https://refivu.com/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b/figures/figure-3310c75941061b0c9e9ea4bf3570cb82.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.08666v1) · [CC BY 4.0](https://creativecommons.org/licenses/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個の実行から1つずつ選ぶ組み合わせの総数に対応します。この論文では2つのエージェントとエージェントごとに3回の実行を使うため、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 pa…](https://refivu.com/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b/figures/figure-80e3d0b66643f998004cecc71e41775f.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.08666v1) · [CC BY 4.0](https://creativecommons.org/licenses/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-agent2回分のpass@2は64.7、bashとpdbの実行を1回ずつ結合したpassX@2は60.0でした。Nemotron-3-Ultra設定では、bash-agentのpass@1が56.7±1.2、pdb-agentのpass@1が49.6±1.4と報告されており、bash実行2回のpass@2は62.7、交差組み合わせのpassX@2は60.3です。著者らは、単一実行で見られるpdb固有の解決は、主に実行間の分散から生じると解釈しています。

この解釈は、3回の実行をまとめた図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 thre…](https://refivu.com/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b/figures/figure-4432cc9c3056bd3a66916da9e0948caf.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.08666v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b/figures/figure-9f3341e278ac51b8446be9d972435719.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.08666v1) · [CC BY 4.0](https://creativecommons.org/licenses/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構成を、同じ条件の3つのシードで評価しています。この構成では編集ゲートを強制していません。論文によると、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実行2回分よりわずかに高いものの、その差は1点前後で、relay予算r≤2の場合はbash実行2回分より低くなります。

![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…](https://refivu.com/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b/figures/figure-c277cba396bcbf3a4dd5d4f099e207f4.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.08666v1) · [CC BY 4.0](https://creativecommons.org/licenses/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 curve…](https://refivu.com/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b/figures/figure-7e2871f542c231a8850431fd130d8c4a.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.08666v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ryan Magnuson, Ellie Kitanidis, Ariel Lee · Pdb or Not to Be: Comparing Debugging Interfaces With Pass$\_{X}$@$k$ · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

## 対象範囲と限界

この研究は、2つのオープンウェイト推論モデルと1つのデバッガ構成に限られています。そのため、別のモデルや別のデバッグインターフェースでは曲線が変わる可能性があります。また、Nemotron-3-Ultraの技術報告書は、SWE-bench Verifiedがエージェントの後学習のシードセットに含まれると明らかにしているため、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 ra…](https://refivu.com/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b/figures/figure-f072a7f74da12cfafc241e82bbfb5233.png?thumb=512)

**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).

[出典](https://arxiv.org/abs/2611.08666v1) · [CC BY 4.0](https://creativecommons.org/licenses/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 patch…](https://refivu.com/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b/figures/figure-f6beb3231a99be4e93e7f7626b901686.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.08666v1) · [CC BY 4.0](https://creativecommons.org/licenses/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](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.08666v1) · [PDF ↗](https://arxiv.org/pdf/2611.08666v1)

この解説は、Refivuの韓国語解説を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}
}
```

## この論文の用語

- [pass@k](https://refivu.com/ja/terms/c162514bd507-pass-k)
- [SWE-bench Verified](https://refivu.com/ja/terms/54503683119b-swe-bench-verified)

## ほかの論文解説

- [A survey on datasets for fairness-aware machine learning](https://refivu.com/ja/papers/4f1a54fa-7a1e-43ea-87ef-e54be6347d15-a-survey-on-datasets-for-fairness-aware-machine.md)
- [Deep Learning-Enabled Semantic Communication Systems with Task-Unaware Transmitter and Dynamic Data](https://refivu.com/ja/papers/ebc873df-6d28-4b2d-ac6c-575f5c818afc-deep-learning-enabled-semantic-communication-systems-with.md)
- [Deep Partial Multi-View Learning](https://refivu.com/ja/papers/b5d21a74-e2a9-402e-bdd6-20653bb21d8b-deep-partial-multi-view-learning.md)
- [FuXi: A cascade machine learning forecasting system for 15-day global weather forecast](https://refivu.com/ja/papers/22238201-8e26-4b50-bb73-ade13aa387ac-fuxi-a-cascade-machine-learning-forecasting-system-for.md)
- [Machine Learning Advances for Time Series Forecasting](https://refivu.com/ja/papers/b577b23e-c68c-4e83-81bd-b145dfbcd066-machine-learning-advances-for-time-series-forecasting.md)
- [A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning](https://refivu.com/ja/papers/08306129-4598-48b6-baf3-9d1af09e03a6-a-reduction-of-imitation-learning-and-structured-prediction.md)
- [Off-Policy Deep Reinforcement Learning without Exploration](https://refivu.com/ja/papers/997f4405-73fe-49b5-a89f-243df2c90604-off-policy-deep-reinforcement-learning-without-exploration.md)
- [Large Scale GAN Training for High Fidelity Natural Image Synthesis](https://refivu.com/ja/papers/93f6ad29-8cca-4630-9a3b-d12f9ad91854-large-scale-gan-training-for-high-fidelity-natural.md)
- [Decoupled Weight Decay Regularization](https://refivu.com/ja/papers/19eca1c5-1291-475b-a58c-daedbe769654-decoupled-weight-decay-regularization.md)
- [Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models](https://refivu.com/ja/papers/7e2537c1-771a-440a-8d0f-51287b1afd57-deep-reinforcement-learning-in-a-handful-of-trials.md)
- [Dream to Control: Learning Behaviors by Latent Imagination](https://refivu.com/ja/papers/20a4d063-3ef9-48fc-88cb-307287206e29-dream-to-control-learning-behaviors-by-latent-imagination.md)
- [Natural TTS Synthesis by Conditioning WaveNet on Mel Spectrogram Predictions](https://refivu.com/ja/papers/596b5353-6c04-4ada-a92e-25d0fee13147-natural-tts-synthesis-by-conditioning-wavenet-on-mel.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/0f80704e-6120-4778-ae4c-07fb45b0ea3b-pdb-or-not-to-be-comparing-debugging-interfaces)
