Papers

SLA:无需训练的解码方法提升 Text-to-SQL 多解释覆盖

Semantic-aware Decoding for Diverse Text-to-SQL under Schema Ambiguity

Why we picked it

做 Text-to-SQL 系统的朋友可以看看这篇:不用微调、不改模型,只在解码时按 schema 语义相似度调 logits,就能让 top-k 结果覆盖多种解读。相比靠 prompt 堆推理的方案,推理开销小很多,工程上接进来也方便。

arXiv 论文 2611.30873 提出 Semantic-aware Logit Adjustment(SLA),一种无需训练的解码方法,用于解决真实场景 Text-to-SQL 中的 schema 歧义问题——同一个自然语言问题可能对应多个合理的表名或字段。

Body

传统 LLM 解码输出高度偏斜,top-k 预测往往只覆盖单一解释,导致下游消歧环节缺少候选。SLA 的做法是在解码时根据 schema 元素之间的语义相似度直接调整 token logits,从而在 top-k 生成中引入多样化的 SQL 解释,不依赖推理密集的 prompt 或任务特定微调。

实验显示 SLA 在解释覆盖率上稳定优于标准解码,与现有多样性方法效果相当,但推理成本显著更低,且对模型无侵入、易于部署。

Original · arXiv cs.AI

Semantic-aware Decoding for Diverse Text-to-SQL under Schema Ambiguity

Real-world text-to-SQL systems often face schema ambiguity, where a question can map to multiple plausible schema elements. To support downstream disambiguation, SQL generation systems should include diverse interpretations among their top-k predictions. However, large language models (LLMs) typically favor a single interpretation, producing highly skewed outputs. We propose Semantic-aware Logit Adjustment (SLA), a training-free decoding method that promotes diverse SQL generation by adjusting token logits based on semantic similarity between schema elements. Unlike prior approaches that rely on reasoning-intensive prompting or task-specific fine-tuning, SLA is efficient, model-agnostic, and easy to deploy. Experiments show that SLA consistently improves interpretation coverage over standard decoding and remains competitive with existing diversity-oriented methods at substantially lower inference cost.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Text-to-SQL, SLA, LLM, schema.

Source attribution: curated from arXiv cs.AI (@Yuxuan Jiang, Anna Mitsopoulou, Apostolos Koukouvinis, Yannis Velegrakis, Georgia Koutrika).