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

Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale · arXiv · 2026-11-16

- **Problem** Single-trajectory dataframe agents return one script's result without comparing alternatives or declining when that result is wrong.
- **Method** GRACE runs N diversified code agents in parallel, filters them with a pairwise tournament and a guardrail that can reject the whole pool, and retries with per-agent critiques.
- **Results** On DAEval with Qwen3.6-35B-A3B, answer match rises from 39% for the single-rollout baseline to 71%, with 53% of initially wrong answers recovered.

![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

[Original paper](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 · Original paper figure · Extracted the figure area from page 10 of the original PDF.

## Why single trajectories fall short

Agents that answer a closed-form question over a dataframe usually produce one script, run it, and return its output as the answer. That habit rests on two choices: one reading of an under-specified question is never checked against alternatives, and the result is returned even when no candidate is defensible. Abstaining with a diagnosis, instead of giving a confident wrong answer, is therefore absent from these pipelines.

Inference-time selection among several candidates is a strong lever for code and reasoning, yet it has seen little systematic use for closed-form dataframe questions.

## How GRACE builds and selects its candidate pool

GRACE begins with a dataframe-description agent that previews the first twenty rows and writes a semantic description for each column.

An agent may repair its own failing code before its slot is marked failed, so the selection stage only sees candidates that ran and satisfied the output contract. Structural failures become easy to detect, which leaves semantic error as the main residual failure mode.

When N is at least three, a single-elimination bracket of pairwise judge matches narrows the pool to two finalists. Each match requires the judge to name concrete defects in both candidates before choosing a winner, and each eliminated candidate keeps a loser critique for later routing. The bracket takes N minus 2 judge calls, so both finalists remain available to the guardrail.

## Diversity and retries after rejection

Agents are perturbed along three axes so the pool does not collapse onto one interpretation of the question. Agent 1 is a neutral anchor with no persona, which keeps the single-rollout answer in the pool, and each later agent receives one of four fixed persona preambles.

Temperature follows a two-regime schedule: 0.65 for the initial attempt and 1.0 from the second attempt on. The authors justify the diversity principle as motivated design and state that they do not validate it here, nor isolate each lever's contribution.

Rejection routes feedback by tournament outcome: finalists receive their own critiques, eliminated candidates receive the loser critique from the match that removed them, and global advice goes to every agent.

If the retry budget runs out without an approved result, a failure-analysis agent returns a diagnostic narrative covering what each agent tried, the root cause and how the attempts evolved.

## What the sweep varies and how it is scored

Evaluation uses DAEval from InfiAgent-DABench, and the metric is answer match. A prediction counts as a match when all expected values agree within a 1% relative or 0.01 absolute tolerance, with case-insensitive string comparison.

The primary backbone is Qwen3.6-35B-A3B, a mixture-of-experts model with 35B total and 3B active parameters per token, shared by all agents and the judge. A dense Qwen3.5-9B model was run through the same DAEval sweep as a downscaling probe, not as a full cross-model comparison.

The 3×3 grid varies N over 1, 2 and 4 and the retry budget r over 0, 4 and 10, on the 246 DAEval questions with well-formed gold answers. The cell with N=1 and r=0 is the minimal single-rollout baseline.

To separate generation from selection, the selectors are compared on identical candidate pools, though the tournament and guardrail still add judge calls.

The DataBench replication uses a fixed subset of 400 questions drawn from 80 tables, while the full 1,829-question set was not used. A full 3×3 grid on DataBench would need a further 3,600 question-level executions, which was outside the computational scope of the study.

Match-rate differences use a paired bootstrap with 10,000 resamples and percentile confidence intervals, and multiple comparisons are corrected by Benjamini–Hochberg at q=0.1. Equivalence for the plateau comparisons is tested with two one-sided tests, using margins of ±5.7 pp for DAEval and ±3.75 pp for DataBench.

## Scaling agents and retries on DAEval

Every non-baseline configuration significantly outperforms the baseline after multiple-comparison correction. Of the 150 questions the baseline got wrong, the best cell recovers 79, and of the 96 it got right, 95 are kept. Retries recover 53% of initially wrong answers in this configuration.

Figure 2a shows the two levers are largely substitutable: agents matter most when retries are unavailable, retries matter most with a single agent, and once either is sufficiently available the other adds only minor differences. The equivalence analysis supports this reading for all four plateau comparisons.

The authors read the remaining errors as mostly semantic misreadings, because the output contract has already removed structural failures.

## A smaller dense backbone keeps gaining from agents

The 9B baseline is close to the 35B baseline, and the gap between the backbones appears once agents and retries are added. The dense model reaches 63% against 71% for the MoE backbone.

Unlike the 35B model, the 9B model keeps benefiting from additional parallel agents even when retries are available.

## DataBench replication and cost frontier

On DataBench with the 35B backbone, answer match rises from about 70% to 85%. All non-baseline configurations significantly outperform the baseline, and retries are most useful with a single agent.

The authors partly attribute DataBench's higher baseline to a floor effect of typed answers, which they tie to its categorical questions. DataBench's questions are fact-oriented and answerable by simpler column operations, with correlation and machine learning largely absent.

Equivalence holds for two of the four plateau comparisons, while the remaining differences cannot be declared equivalent under the stricter 3.75 pp margin.

On DAEval, two agents with the same retry budget reach the highest accuracy at about twice the baseline cost, and latency stays close to baseline because agents run concurrently.

## Selection versus voting on identical pools

The authors grade every candidate at N=4 and r=4 on DAEval, which yields 263 selection decisions from 246 questions because retries re-enter selection. Each pool holds 3.66 valid candidates on average, of which 2.32 are correct, though candidates rarely produce equivalent artefacts.

On the same 263 pools, the tournament plus guardrail is correct on 66.9% of decisions, against 63.1% for majority answer-agreement voting and 62.9% for a random pick. The oracle ceiling, where a correct candidate is present, is 77.6%.

The gain over voting is +3.8 pp, with a paired-bootstrap 95% CI of \[+0.3,+7.3\] and p=0.03. The gain over a random pick is +4.0 pp, with p=0.02.

Table 3 splits the outcomes by whether the pool held a correct candidate: the selector chose it in 86.3% of such pools, but rejected only 10.2% of pools with no correct candidate. Abstention is therefore much weaker than selection.

Retried questions often reach a correct final answer, with almost half eventually correct, though this rests on a small number of rejections.

## Why the levers substitute and where abstention falls short

The 9B result sharpens this picture: a smaller model's single reading is less often right, so extra interpretations from more agents add value that retries cannot supply. At 35B the first reading is usually right, so that benefit mostly disappears and the two levers become substitutes.

Abstention is the axis the authors want to sharpen next, since all-wrong pools are usually false-accepted while a correct rejection would open another retry.

## Limitations

DAEval supplies each question's source CSV as a fixed, correct input, so the numbers isolate the analytical stage. In deployment the dataframe can be a fallible upstream output, which the benchmark does not exercise, and end-to-end evaluation is left to future work.

The baseline and the multi-agent and retry configurations are not compute-matched, so the comparison measures inference scaling, not superiority over repeated sampling or generic self-refinement. The same-pool analysis partly controls for this, but the tournament and guardrail still add judge calls.

The sweep does not isolate personas, rotation, temperature, invariant forcing or the pairwise tournament, and per-component ablations are left to future work.

The authors plan a qualitative error analysis that separates interpretation, computation, formatting and abstention failures.

The recommended operating point, N=2 with r=4, is tied to clean single-CSV closed-form questions, and more complex dataframes might reward N=4.

## Paper info

- **Authors**: Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-16
- **Added**: 2026-11-17
- **Updated**: 2026-11-16
- **Version**: v1
- **arXiv**: 2611.20983
- **Category**: cs.AI · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.20983v1) · [PDF ↗](https://arxiv.org/pdf/2611.20983v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

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.

## Quote from the paper

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}
}
```

## Other paper commentary

- [AdMem: Expectation-Grounded Procedural Memory for Long-Horizon Task-Solving Agents](https://refivu.com/en/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/en/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/en/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/en/papers/c797340e-3e38-4c1f-9503-2964c92d5483-craft-a-robot-agent-harness-with-scope-aware.md)
- [Guiding AI Agents to Generate Conjectures by Encoding How Theorems Build on One Another](https://refivu.com/en/papers/62af4783-da20-4330-8ead-89401a9e5c42-guiding-ai-agents-to-generate-conjectures-by-encoding.md)
- [Agent Authenticator: Passkey-Grade, Hardware-Bound Authentication for AI Agents](https://refivu.com/en/papers/c6881b60-4466-4f78-874b-a41bdd696c71-agent-authenticator-passkey-grade-hardware-bound.md)
- [Breaking feature collapse in self-supervised time series encoders](https://refivu.com/en/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/en/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/en/papers/803c6002-d508-4e87-b0e9-4d6db420de66-farch-a-functional-arch-model-for-calibrated-prediction.md)
- [artist: A Python package for differentiable ray tracing and gradient-based optimization of solar tower power plant operation](https://refivu.com/en/papers/a8477da3-259a-4054-b2b2-437e7f633956-artist-a-python-package-for-differentiable-ray-tracing.md)
- [CuRSE-Bench: A Benchmark for Probing Cultural Blind Spots in Text-to-Image Safety Evaluation](https://refivu.com/en/papers/14858f44-8b22-4e70-b216-d95d26cb0017-curse-bench-a-benchmark-for-probing-cultural-blind.md)
- [ForeSay: Tell the Future in Words, Branch the Details in Noise for Precipitation Nowcasting](https://refivu.com/en/papers/5e5cff0c-adcc-4227-ad35-550dcec16179-foresay-tell-the-future-in-words-branch-the.md)

## Terms in this paper

- [self-consistency](https://refivu.com/en/terms/17628c043f6d-self-consistency)
- [LLM-as-judge](https://refivu.com/en/terms/2b0403781168-llm-as-judge)
- [abstention](https://refivu.com/en/terms/1e93a0a1c8d8-abstention)
- [GRACE](https://refivu.com/en/terms/355f521161e0-grace)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/4c0246c8-5ab8-438c-9f8c-5b30e61374e1-grace-parallel-best-of-n-multi-agent-analysis)
