cs.CLNov 23, 2026

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

Authors: Yuxuan Jiang, Anna Mitsopoulou, Apostolos Koukouvinis, Yannis Velegrakis, Georgia Koutrika

Organizations: ATHENA Research Center, Greece · Utrecht University, Netherlands

Abstract

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.

Figures & tables

Explore similar work

CardsList
  1. DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation

    Aug 12, 2026Anik Pramanik, Murat Kantarcioglu, Vincent Oria +1LLM PromptingSchema Linking

  2. DecoSearch: Complexity-Aware Routing and Plan-Level Repair for Text-to-SQL

    Jun 16, 2026Esteban Schafir, Xu Zheng, Hojat Allah Salehi +4Schema LinkingQuestion Decomposition