Views
No views yet
1This paper was released on April 16, 2026.
2
3This paper argues that the main bottleneck in test-time scaling for agentic coding is not simply generating more attempts, but representing, selecting, and reusing prior agent experience effectively. It converts long rollout trajectories into compact structured summaries that capture key hypotheses, progress, and failure modes. Using these summaries, it combines Recursive Tournament Voting (RTV) for parallel selection with Parallel-Distill-Refine (PDR) for sequential improvement. The method consistently improves frontier coding agents on SWE-Bench Verified and Terminal-Bench v2.0. Overall, the paper frames long-horizon agent scaling as a problem of representation, selection, and reuse.As far as I know, there is no public implementation of this paper yet.git clone https://github.com/genji970/facebook-paper_harness-inference-scale-agentcd your/path/facebook-paper_harness-inference-scale-agentchange gemini_api_key value in below code, GEMINI_API_KEY= & gemini_api_key= pip install -r requirements.txtlitellm --model gemini/gemini-3.1-pro --port 40001source .env
2
3MSWEA_MODEL_NAME="gemini/gemini-3-pro-preview" \
4GEMINI_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxx" \
5python experiment/run.py \
6 --provider "gemini" \
7 --gemini_api_key "xxxxxxxxxxxxxxxxxxxxxxxx" \
8 --dataset_name "princeton-nlp/SWE-bench_Verified" \
9 --train_split "test" \
10 --max_dataset_samples 1 \
11 --start_sample_index 0 \
12 --end_sample_index 1 \
13 --num_rollouts 2 \
14 --num_iterations 2 \
15 --top_k 1 \
16 --group_size 2 \
17 --vote_count 1 \
18 --max_steps_per_rollout 10 \
19 --agent_max_steps 1 \
20 --pdr_max_summary_chars 4000 \
21 --pdr_max_context_chars 16000 \
22 --mini_swe_agent_extra_args="--yolo" \
23 --swebench_prepare_workspace \
24 --swebench_enabled \
25 --swebench_dry_run \
26 --swebench_max_workers 1 \
27 --swebench_cache_level env \
28 --continue_on_error \
29 --experiment_output_path "outputs/pdr_rtv_results.jsonl" \
30 --experiment_summary_path "outputs/pdr_rtv_summary.json"1# docker install & start
2apt-get update
3apt-get install -y docker.io
4
5service docker start
6
7docker version
8docker info
9
10# SWE-bench harness install
11python -m pip install --upgrade pip
12python -m pip install swebench
13
14#Public SWE-bench eval run
15python -m swebench.harness.run_evaluation \
16 --dataset_name princeton-nlp/SWE-bench_Verified \
17 --split test \
18 --predictions_path outputs/swebench_predictions.jsonl \
19 --max_workers 1 \
20 --run_id gemini_3_pro_pdr_rtv_eval \
21 --cache_level envhttps://arxiv.org/abs/2604.16529v1