# GRACE: Parallel Best-of-N Multi-Agent Analysis of Closed-Form Questions over Dataframes with Guardrail Selection and Adaptive Retry

GRACE：ガードレール選択と適応的リトライを備えたデータフレーム上の閉形式質問に対する並列Best-of-N多エージェント分析

Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale · arXiv · 2026年11月16日

- **課題** LLMエージェントがデータフレームへの質問に単一のコード実行で答えると、誤った結果もそのまま受け入れられてしまいます。既存の多数決は、すべての候補が誤っている場合でも答えを出さなければなりません。
- **手法** N個のエージェントが出力契約を守りながら並列にコードを作成し、トーナメントとguardrailが実行結果を判定して1つを選ぶか、プール全体を拒否します。

## 単一ロールアウトのデータフレームエージェントの限界

大規模言語モデルのエージェントは、表形式のデータフレームに対する閉形式の質問に答えるため、Pythonコードを書いて実行します。しかし多くのシステムは、解釈、スクリプト、結果をそれぞれ1つずつ作り、その結果を比較せずに受け入れます。一部のパイプラインは複数の候補を作りますが、候補の答えが一致する数を数える多数決で1つを選びます。この手法は、すべての候補が誤っていても必ず1つの答えを返すため、答えを保留することができません。

この論文は、この2つの前提、すなわち単一の軌跡でのみ答えることと、結果を無条件に確定することを変えようとしています。評価指標のある検証セットや正解に基づくスコアがない状況でも候補を選べる必要があり、選択の対象はスカラー値ではなく、実行された結果のデータフレームとその生成コードです。

## GRACEの3段階パイプライン

GRACEは、入力のデータフレームと自然言語のタスクを受け取り、1つの結果データフレームを作ります。まず、データフレーム説明エージェントが冒頭20行を見て、列の意味と型を含むdf\_infoスキーマを作成します。このスキーマは以降のすべてのプロンプトで再利用されます。次に、N個のコード生成エージェントが同時に独立してPythonスクリプトを書き、サンドボックスで実行します。実行エラーが発生した場合、エージェントは自分のコードを内部で1回修正できます。それでも失敗すると、そのスロットは候補を出さずに終わります。したがって、選択段階の候補はすべて実行されており、出力契約を満たした結果です。

出力契約は、単一項目の辞書であり、値がpandasのDataFrameであること、任意のチャートアーティファクトの接続条件、ユーザーにとって意味のあるデータフレーム名という条件から成ります。この契約により、スカラー値の漏れや空のフレームといった構造的な失敗はほぼなくなり、残る主な失敗は意味の誤りになります。

## トーナメントとguardrailによる選択と拒否

選択段階は2つの部分から成ります。Nが3以上の場合、まず単一敗退トーナメントが行われ、候補が2名の決勝進出者に絞られます。各対戦で判定者は、2つの候補のコードと結果プレビューを比較し、勝者と理由、そして敗者に渡す短い批評をJSONで出力します。トーナメントはN−2回の判定呼び出しを行い、Nが2以下の場合は迂回されます。

その後、guardrailが最大2つの候補を受け取って判断します。正解の候補が1つでもあれば、最も欠陥の少ない候補を選び、業務で使う言葉で書かれた結果説明を作成します。正解の候補がなければ、全体の根本原因に関する助言と決勝進出者ごとの批評を出し、プール全体を拒否します。拒否されたプールは同じ予算の範囲内で再生成されます。リトライのたびに温度スケジュールとペルソナ回転が適用され、各候補は自分に届いた批評を受け取ります。著者らは、リトライでは既存コードの表面だけを修正することを禁じ、新しい不変条件やアサーションを追加するよう求めると説明しています。

## DAEvalにおけるエージェント数とリトライの代替関係

主な実験では、Qwen3.6-35B-A3Bをバックボーンとして、DAEvalの246問で、並列エージェント数Nを1、2、4に、リトライ予算rを0、4、10に変えて、答えの一致率を測定しました。すべてのセルで同じ質問集合と順序を共有し、対応のあるブートストラップとBenjamini–Hochberg補正で差を検定しました。

![Table 2: Answer-match rate across the 3×3 sweep, where 𝑁 is the number of parallel code-generation](https://refivu.com/papers/4c0246c8-5ab8-438c-9f8c-5b30e61374e1/figures/figure-ca0da7dc7f3ce823cc7697d736612390.png?thumb=512)

**Table 2** : Answer-match rate across the 3×3 sweep, where 𝑁 is the number of parallel code-generation

[出典](https://arxiv.org/abs/2611.20983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale · GRACE: Parallel Best-of-N Multi-Agent Analysis of Closed-Form Questions over Dataframes with Guardrail Selection and Adaptive Retry · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。

この結果から、著者らは2つの資源がおおむね互いに代替可能だと解釈しています。リトライはN=1のときに最も大きく効き、エージェントはr=0のときに最も大きく効きました。どちらか一方が十分に与えられると、もう一方を増やしても差は小さくなりました。同じ比較条件で9B密バックボーンを使った実験では、並列エージェントはリトライ予算が十分でも効果を持ち続け、2つの資源が完全に代替し合うわけではないことを示しました。

![Figure 2: Single-factor simple effects on DAEval (𝑀=246) under the paired-bootstrap + BH protocol](https://refivu.com/papers/4c0246c8-5ab8-438c-9f8c-5b30e61374e1/figures/figure-5ffea151abbbabb6049fa9de00610a50.png?thumb=512)

**Figure 2** : Single-factor simple effects on DAEval (𝑀=246) under the paired-bootstrap + BH protocol

[出典](https://arxiv.org/abs/2611.20983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale · GRACE: Parallel Best-of-N Multi-Agent Analysis of Closed-Form Questions over Dataframes with Guardrail Selection and Adaptive Retry · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

## 選択品質と答え保留の限界

選択器を単独で見るため、DAEvalでN=4、r=4の設定を別に実行し、263件の選択の決定を正解と照合しました。同じ候補プールで、トーナメントとguardrailは66.9%で正解し、多数決投票は63.1%、ランダム選択は62.9%でした。トーナメントとguardrailは2つのベースラインより約3.8pp高かったものの、投票とランダムの差は統計的には区別されませんでした。この比較は同じ候補プールに対する選択品質の比較であり、判定呼び出しが加わるため、総推論コストをそろえた比較ではありません。

![Table 3: Selection quality on DAEval (𝑁=4, 𝑟=4; 263 decisions), each conditioned on whether the pool](https://refivu.com/papers/4c0246c8-5ab8-438c-9f8c-5b30e61374e1/figures/figure-2a2cd53a75fa97afbf7034324d89bdab.png?thumb=512)

**Table 3** : Selection quality on DAEval (𝑁=4, 𝑟=4; 263 decisions), each conditioned on whether the pool

[出典](https://arxiv.org/abs/2611.20983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale · GRACE: Parallel Best-of-N Multi-Agent Analysis of Closed-Form Questions over Dataframes with Guardrail Selection and Adaptive Retry · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

一方、すべての候補が誤っているプールでは、guardrailが拒否したのは10.2%のみで、大部分は誤った答えを受け入れていました。著者らは、この点は答えを保留する能力が弱いことを意味し、モデルが正解の候補を選ぶ能力よりも、擁護できる候補がないと判断する力のほうが弱いと見ています。

## DataBenchでの再現

同じ3×3の構成を、DataBenchの400問の部分集合で再実行しました。すべての非ベースラインのセルが、ベースラインを有意に上回りました。

DataBenchは事実ベースの質問が多いため、単一ロールアウトのベースラインがDAEvalよりはるかに高くなっています。そのため、同じ方向の改善であっても、DAEvalでの難易度の差と合わせて読む必要があります。両方のベンチマークで、最良セルから大きな改善が得られましたが、高性能域内の差は、DataBenchでは同等性検定を通過しない部分もありました。

## 限界

第一に、DAEvalは各質問のCSVを正確な固定入力として与えるため、実際の運用で起こりうる上流のデータエラーは結果に反映されていません。第二に、ベースラインと多エージェント・リトライ構成は総推論コストをそろえた比較ではないため、反復サンプリングや一般的な自己改善より優れているという結論は得られません。第三に、ペルソナ、回転、温度、不変条件の強制、トーナメントの個別の寄与を切り分けるアブレーション実験は実施していません。第四に、回答一致率は、近い誤答と完全な失敗を区別しません。

## 論文情報

- **著者**: Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月16日
- **登録日**: 2026年11月17日
- **更新日**: 2026年11月16日
- **バージョン**: v1
- **arXiv**: 2611.20983
- **カテゴリ**: cs.AI · cs.LG
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

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

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

LLM agents answer closed-form questions over a tabular dataframe by writing and executing Python, almost always as a single rollout: one interpretation, one script, one result, accepted without comparison. The few pipelines that produce several candidates reconcile them by answer-agreement voting, which needs a single comparable scalar and always returns one, even when every candidate is wrong. We present GRACE (Generative, Ranked, Adaptive Code Ensemble), a production-oriented pipeline that instead runs parallel best-of-N selection specialised to dataframe code. N agents run concurrently under a strict, machine-checkable output contract, diversified by persona hints, per-retry rotation, and a two-regime temperature schedule. Rather than vote, GRACE judges the executed artefacts: a pairwise tournament pre-filters the pool and a domain-specialised guardrail either selects the best candidate or, when none is defensible, rejects the whole pool and abstains with a diagnosis (an option voting structurally lacks), which in turn drives an adaptive retry with per-agent feedback. On InfiAgent-DABench (DAEval, M = 246), using Qwen3.6-35B-A3B as the backbone, GRACE raises answer match from 39% for a single-rollout baseline to 71% (+32 pp, 1.8x), recovering 53% of previously wrong answers. On the same DAEval task, the smaller dense Qwen3.5-9B lifts answer match from 38% to 63% (+25 pp, 1.7x). A controlled 3 x 3 study that sweeps the number of parallel agents against the retry budget finds, on the 35B backbone, the two levers largely substitutable: once either one is generous, the other adds little, identifying a cheap operating point for deployment. The same directional pattern replicates on the independent DataBench benchmark, again on the Qwen3.6-35B-A3B backbone, where answer match rises by 15 percentage points (from 70% to 85%) across 400 sampled questions.

## この論文を引用

Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale (2026). GRACE: Parallel Best-of-N Multi-Agent Analysis of Closed-Form Questions over Dataframes with Guardrail Selection and Adaptive Retry. arXiv:2611.20983v1. https://arxiv.org/abs/2611.20983v1

**BibTeX**

```
@misc{picariello2026grace,
  title = {{GRACE: Parallel Best-of-N Multi-Agent Analysis of Closed-Form Questions over Dataframes with Guardrail Selection and Adaptive Retry}},
  author = {Fabio Picariello and Salvatore Cipolla and Susanna Bonura and Vito Morreale},
  year = {2026},
  eprint = {2611.20983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20983v1}
}
```

## この論文の用語

- [paired bootstrap](https://refivu.com/ja/terms/63f3236bc607-paired-bootstrap)
- [Qwen3.5-9B](https://refivu.com/ja/terms/a283434b9c30-qwen3-5-9b)
- [LLM-as-Judge](https://refivu.com/ja/terms/2b0403781168-llm-as-judge)
- [GRACE](https://refivu.com/ja/terms/355f521161e0-grace)
- [abstention](https://refivu.com/ja/terms/1e93a0a1c8d8-abstention)

## ほかの論文解説

- [Navital Gym: Rule-Graded Agent Environments for Indian Workflows](https://refivu.com/ja/papers/14524c7c-bc42-4225-92b0-86688747deeb-navital-gym-rule-graded-agent-environments-for-indian.md)
- [Experience Rot: Experienced Agents Fail Where Novices Succeed](https://refivu.com/ja/papers/4f680630-ec46-4983-9967-76eafdd6997f-experience-rot-experienced-agents-fail-where-novices-succeed.md)
- [AdMem: Expectation-Grounded Procedural Memory for Long-Horizon Task-Solving Agents](https://refivu.com/ja/papers/38393e75-1ceb-46fa-abaa-bc11cb447cee-admem-expectation-grounded-procedural-memory-for-long.md)
- [ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents](https://refivu.com/ja/papers/c86b8c10-1fa4-4795-ab5c-6d8fbed7450e-toolgraph-as-a-q-function-for-test-time.md)
- [Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures](https://refivu.com/ja/papers/bd28a6a6-5402-4777-8dd7-6c8f089fb4ba-invariant-aware-harness-enforcement-to-protect-llm-agents.md)
- [CRAFT: A Robot-Agent Harness with Scope-Aware Adaptation](https://refivu.com/ja/papers/c797340e-3e38-4c1f-9503-2964c92d5483-craft-a-robot-agent-harness-with-scope-aware.md)
- [Breaking feature collapse in self-supervised time series encoders](https://refivu.com/ja/papers/819f640a-5ad8-4d90-8850-3c039f21f3d1-breaking-feature-collapse-in-self-supervised-time-series.md)
- [Adaptive-Elbow Graph Traversal for Schema Retrieval in Text-to-SQL](https://refivu.com/ja/papers/1d3e708c-277f-497f-9bbf-8b12de718d99-adaptive-elbow-graph-traversal-for-schema-retrieval-in.md)
- [FARCH: A Functional ARCH Model for Calibrated Prediction Bands](https://refivu.com/ja/papers/803c6002-d508-4e87-b0e9-4d6db420de66-farch-a-functional-arch-model-for-calibrated-prediction.md)
- [A Convergence Analysis of the Random Feature Method for Linear PDEs](https://refivu.com/ja/papers/e23ddbbe-6639-473b-8f15-06395434c589-a-convergence-analysis-of-the-random-feature-method.md)
- [Markov-Equivalent Conditional Independence Graphs on Path Spaces](https://refivu.com/ja/papers/84d16c51-6617-4e77-bae7-fc57345e114e-markov-equivalent-conditional-independence-graphs-on-path.md)
- [It Depends on the Task: Rethinking Rhetorical Segmentation of Dutch Judicial Decisions](https://refivu.com/ja/papers/783edff2-a49b-485b-af5d-d4d1c8c741f2-it-depends-on-the-task-rethinking-rhetorical-segmentation.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/4c0246c8-5ab8-438c-9f8c-5b30e61374e1-grace-parallel-best-of-n-multi-agent-analysis)
