Skip to content
English

Switch theme

arXiv 2611.18338 · cs.DB · 2026-11-13

MEM-SQL: Memory-Empowered Text-to-SQL

Xiaoqi Wang, Wenqi Pei, Shizheng Hou, Yilai Liu, Han Chen, Boyan Li, Yuyu Luo, Hongyang Du

The University of Hong Kong

In latest · #338 Added on 2026-11-16

One-line takeaway

MEM-SQL improves text-to-SQL accuracy and efficiency by leveraging historical query memory and dynamic schema access, demonstrating the value of query reuse under specific conditions.

MEM-SQL通过存储查询模板和可复用SQL块,结合历史查询记忆与动态schema访问,在保持准确性的同时显著降低输入token和生成延迟,验证了历史查询复用对文本到SQL性能的提升作用。

Key points

Text-to-SQL systems often fail to leverage historical query results due to isolated evaluation. HARE introduces a benchmark measuring query adaptation across database interactions. MEM-SQL stores reusable query templates and schema mappings, using a layered matching strategy. It only accesses the schema when necessary via On-demand Schema Linking (OSL), reducing both token cost and latency. Performance gains are significant but depend on how well historical components align with new query structures.

  • Traditional text-to-SQL benchmarks ignore historical query reuse, limiting real-world effectiveness assessment.
  • MEM-SQL stores query templates, reusable SQL blocks, and concept-schema mappings to enable structured history utilization.
  • On HARE, MEM-SQL achieves 50.0% accuracy (vs. 37.1%) with 76.6% fewer tokens and 68.8% lower latency than direct generation.
  • Reuse performance drops sharply when historical components must be restructured or combined in new joins, highlighting alignment dependency.

Written only from the official arXiv abstract by an open-source model, then checked automatically (every number and name must appear in the abstract). The paper is authoritative.

20HF upvotes
–GitHub stars
0Citations (Semantic Scholar)
33.7Buzz score

Read on arXiv PDF Hugging Face discussion

Related papers

About this data

Metadata from the arXiv API (verified); upvotes from Hugging Face Daily Papers; citations from Semantic Scholar. Last refreshed 2026-11-30.

The takeaway is written by AIMap from the abstract; the abstract itself is not reproduced — read the original.

Data updated: Latest AI papers(UTC+8)