HARE makes SQL history measurable—and finds that combining old queries is still the hard part
MEM-SQL raises mean execution accuracy from 37.1% to 50.0% across six backbones, but the benchmark’s strongest warning is a collapse on requests that must compose several verified queries.
A new benchmark asks a practical question that Spider and BIRD largely leave aside: if an organization has already verified hundreds of SQL queries, how much should a text-to-SQL system gain by remembering them?
The HARE paper reports a meaningful gain, but also draws a sharp boundary around it. Across six language-model backbones, direct generation without history averages 37.1% execution accuracy on HARE’s full 1,600-request set. MEM-SQL, which stores whole-query templates, reusable SQL blocks and schema concepts, averages 50.0%. The paper reports that this 12.9-point gain comes with 76.6% fewer input tokens and 68.8% lower latency on average.
What HARE actually measures
HARE is not another independent-question leaderboard. Its 1,600 requests are derived from a fixed pool of 823 verified queries drawn from Spider, BIRD, Spider 2.0 and BEAVER. The benchmark labels six primitive reuse patterns—including rephrasing, parameter changes, structural changes, shared joins and shared concepts—plus six composite categories. Of the requests, 1,300 use one category and 300 combine two.
That design matters because it separates copying a familiar query shape from composing several pieces of prior work. MEM-SQL performs best when the request preserves substantial historical structure. The paper says whole-query templates are the most important memory layer: removing them costs 5.3 execution-accuracy points on average. Reusable components matter disproportionately for composite requests, where removing them costs 3.7 points, versus 1.1 points on single-category requests.
The headline gain hides a composition failure
The difficult cases are not simply retrieval misses. Across methods, accuracy falls from 56.7% on single-source requests to 29.7% on multi-source requests. For structural-change questions, MEM-SQL retrieves all sources for 90.8% of multi-source requests yet reaches only 9.9% accuracy. On the parameter-change-plus-shared-join category, accuracy still drops from 81.5% to 46.7% even when every source is retrieved.
That is the benchmark’s most useful result: finding the old SQL is not equivalent to assembling it correctly. The error analysis points in the same direction. Aggregation is the largest error class for MEM-SQL at 36.1% of wrong answers, while execution failures rise to 10.8%, versus 3.2% for the A-MEM baseline.
There are also limits to how broadly these numbers travel. HARE is constructed from existing benchmark queries rather than production query logs; candidate requests were generated with GLM5.3-Flash and validated with automated checks plus Claude Opus 5.5. Its source mix is uneven—755 requests come from BIRD, 365 from BEAVER, 268 from Spider 2.0 and 212 from Spider—and the paper reports small mean losses for MEM-SQL on Spider and Spider 2.0 even as it gains on BIRD and BEAVER.
HARE therefore supports a narrower conclusion than “memory solves text-to-SQL.” Verified history is highly useful when a new request resembles one known computation. The next benchmark frontier is whether systems can combine several verified computations without losing their semantics.
sources
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026