SDAM: Structure-Difference-Aware Memory Evolution for Complex Text-to-SQL

Authors: Keyan Xu, Dingzirui Wang, Xuanliang Zhang, Qingfu Zhu, Wanxiang Che

Abstract

Text-to-SQL aims to convert natural language questions into executable SQL queries. While memory-based agent system improves complex SQL generation, existing memory design neglect historical experience and suffer from weak structure analysis, shallow semantic understanding, and poor schema alignment. To address these challenges, we propose SDAM. Specifically, SDAM identifies potential errors via a structure-difference aware reasoning tree, extracts deep semantic rules through contradiction-aware reflection, and enhances structural consistency using a schema-grounded memory evolution mechanism to bind memory with database schemas. We integrate SDAM into a Text-to-SQL framework named SDAM-SQL. Experiment shows that SDAM-SQL achieves 2.0 and 0.4 improvement on BIRD-dev and Spider-test compared with mainstream Text-to-SQL methods, showing the effectiveness of SDAM-SQL.

Find similar papers with AI

Copy this prompt into your assistant

Using Paperlist, find papers similar to "SDAM: Structure-Difference-Aware Memory Evolution for Complex Text-to-SQL" (id: 76965, arXiv 2026).
set up https://paperlist.ai/SKILL.md

MCP setupCLI