Upload FIXES_COMPLETE.md
Browse files- FIXES_COMPLETE.md +53 -0
FIXES_COMPLETE.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SWE-bench Cascade: All 5 Fixes β Final Summary
|
| 2 |
+
|
| 3 |
+
**Date:** 2026-05-11
|
| 4 |
+
|
| 5 |
+
## What We Did
|
| 6 |
+
|
| 7 |
+
Five corrections to the original cascade analysis, plus a live agent build.
|
| 8 |
+
|
| 9 |
+
## Fix 1: Fair Baseline β DONE
|
| 10 |
+
|
| 11 |
+
**Original:** Cascade 416 solves vs Frontier-single 391 solves (+25). Cascade cheaper ($76.48 vs $158.34).
|
| 12 |
+
|
| 13 |
+
**Corrected:** Frontier-with-retry (Claude β gpt-5.2-medium) solves 420, cascade solves 416. Frontier retry wins on quality by 4 instances, but costs 2.3x more. The solve difference is NOT statistically significant (-0.9pp, 95% CI [-2.8, +1.0]). Cascade is significantly cheaper (-$0.22/inst, 95% CI [-$0.26, -$0.19]).
|
| 14 |
+
|
| 15 |
+
**Verdict:** Cascade dominates on cost-efficiency. Same quality within noise, 56% cheaper.
|
| 16 |
+
|
| 17 |
+
## Fix 2: Patch Inspection β INCONCLUSIVE
|
| 18 |
+
|
| 19 |
+
The 5 cascade-only instances (T2 solves, no T4 model does) span diverse repos and have moderate-complexity gold patches. This is consistent with genuine model diversity, not benchmark noise. But SWE-Router datasets lack extracted patches β we can't compare T2 patches to T4 patches without Docker execution. **Needs Docker to complete.**
|
| 20 |
+
|
| 21 |
+
## Fix 3: Provider Routing Model β FIXED
|
| 22 |
+
|
| 23 |
+
The $585 figure was a unit error. Corrected: provider routing saves $18.16 (Bedrock vs Anthropic direct for T4 calls). Cascade with Bedrock: $68.17 vs $86.33 base. Real but secondary.
|
| 24 |
+
|
| 25 |
+
## Fix 4: Live Docker Agent β PARTIAL
|
| 26 |
+
|
| 27 |
+
Built a Docker-less cascade agent that clones repos, sets up environments, runs T1 (Llama-3.1-8B) β T2 (Llama-3.3-70B), and produces patches. On 10 astropy instances: 10/10 produced patches, 9 at T1, 1 at T2. Verification fails because `git apply` needs the exact `/testbed` path structure from Docker images. Full Docker agent code is ready; needs Docker daemon to run.
|
| 28 |
+
|
| 29 |
+
**To run on Docker:** `python cascade_agent_docker.py --batch 50 --strategy cascade` on a host with Docker daemon, Anaconda, and API keys.
|
| 30 |
+
|
| 31 |
+
## Fix 5: Paired Significance β DONE
|
| 32 |
+
|
| 33 |
+
1000 bootstrap resamples, 95% CI, per-repo breakdown:
|
| 34 |
+
- Cascade solve rate CI: [80.0%, 86.2%]
|
| 35 |
+
- Frontier-retry solve rate CI: [80.6%, 87.2%]
|
| 36 |
+
- Overlap: YES β no significant quality difference
|
| 37 |
+
- Cost difference: significant at p < 0.025
|
| 38 |
+
|
| 39 |
+
## What The Data Actually Says
|
| 40 |
+
|
| 41 |
+
| Metric | Cascade | Frontier-retry | Difference |
|
| 42 |
+
|---|---|---|---|
|
| 43 |
+
| Solved | 416/500 (83.2%) | 420/500 (84.0%) | -4 (not sig) |
|
| 44 |
+
| Cost | $86.33 | $196.77 | -56.1% (significant) |
|
| 45 |
+
| $/solved | $0.2075 | $0.4685 | -55.7% |
|
| 46 |
+
| $/solved (Bedrock) | $0.1638 | β | β |
|
| 47 |
+
|
| 48 |
+
## Next Steps
|
| 49 |
+
|
| 50 |
+
1. Run Docker agent on 50 instances (needs Docker daemon + API keys)
|
| 51 |
+
2. Manually inspect the 5 cascade-only T2 patches
|
| 52 |
+
3. Test frontier-with-equal-retries in live agent
|
| 53 |
+
4. Add gpt-5.2-medium as tier in cascade
|