- Rating
- 4
- Clarity
- 4
- Confidence
- 5
- Originality
- 3
- Quality
- 3
- Significance
- 4
Read review
Summary
This paper studies how to train a diagnostic SQL verifier that can assess LLM-generated SQL outputs by providing (i) a binary correctness judgment, (ii) a set of specific error types, and (iii) corresponding reasoning explanations. The proposed method is motivated by two empirical observations. First, when training Qwen3-8B with sequence-level rewards such as binary correctness (0/1) or F1 scores, the true positive rate increases slowly while the false positive rate continuously rises. Second, a log-lift analysis of errors in the NL2SQL-Bugs dataset reveals that certain error types, such as Table Missing and Join Condition Mismatch, co-occur significantly more frequently than expected under random chance. Based on these observations, the authors propose DiagSQL, which consists of two key components: FTRA (Fine-grained Token-level Reward Allocation), which redistributes rewards at the token level according to JSON spans, and CORS (Co-occurrence-aware Reward Shaping), which incorporates an error co-occurrence matrix into reward design. The model is trained using a two-stage pipeline of SFT warm-up followed by an enhanced GRPO algorithm.
Strengths and weaknesses
Strengths
- The paper follows a clear empirical research paradigm of “observation → hypothesis → algorithm → validation,” which makes the work easy to follow. In particular, Figure 1 provides compelling visual evidence of hallucination amplification during diagnostic reinforcement learning, offering independent value to researchers working on related topics.
- The evaluation protocol considers both the intrinsic performance of the diagnostic model itself (Table 1) and its downstream utility when integrated into a verifier-based refinement pipeline (Table 2). This provides a relatively comprehensive assessment of the proposed approach.
- The ablation studies are comprehensive and carefully designed, allowing the contributions of FTRA, CORS, the overall enhanced GRPO framework, and training data scale to be isolated and evaluated independently.
Weaknesses
- Stability of experimental results. The main results are reported based on single runs. The paper does not provide robustness analyses across multiple random seeds, nor does it report statistical significance tests. Given the stochastic nature of RL training, such analyses would strengthen the credibility of the reported gains.
- Cross-dataset consistency of the co-occurrence matrix. The co-occurrence matrix used by CORS is constructed from NL2SQL-Bugs, while downstream evaluations are performed on BIRD and Spider. It would be valuable to analyze the correlation between the empirical co-occurrence patterns observed in BIRD/Spider and those learned from NL2SQL-Bugs. The paper currently lacks discussion on the transferability of these co-occurrence statistics across datasets.
- Interaction with execution feedback. Many recent Text-to-SQL refinement approaches directly leverage SQL execution results as supervision signals. It would be informative to compare: (i) execution feedback alone, (ii) DiagSQL's structural diagnosis alone, and (iii) their combination. Such experiments would clarify whether DiagSQL should be viewed as complementary to, or competitive with, execution-based feedback mechanisms.
Questions
- Evaluation protocol and sample support in Table 1. Several categories in Table 1 (e.g., Window Functions and Partial Query) exhibit extreme values such as 0%. However, the paper does not report the number of supporting examples for each category. Furthermore, it is unclear whether the reported “Overall” score is computed using macro averaging, micro averaging, or a weighted aggregation scheme. The absence of these details makes comparisons between methods less reliable.
- Analysis of JSON parsing failures. The proposed framework relies heavily on the model generating outputs that conform to a strict JSON schema. What is the JSON parsing failure rate during inference? How are samples with schema violations handled during FTRA reward allocation? Additional analysis would help clarify the robustness of the framework.
- Presentation and formulation details. Equation (5) elegantly unifies the associative bonus, cascading penalty, and illogical combination penalty within a single formulation. However, the paper does not discuss the degenerate case where both b_v and \hat b_v are all zeros. Clarifying the behavior of the reward function under this condition would improve the completeness of the presentation.
Limitations
Yes
Paper formatting concerns
no issues
Meta-review
The paper presents a highly motivated and clean methodological contribution to structured-output reinforcement learning. While there are some valid concerns regarding evaluation baselines and the robustness of the co-occurrence matrix, the core framework is novel, and the empirical motivations are exceptionally solid. If the authors address the evaluation gaps during the discussion period, this paper should be accepted.
DiagSQL targets the open-loop limitation of LLM-based Text-to-SQL generation by proposing a dedicated diagnostic verifier. The paper identifies two key structural failures in standard Reinforcement Learning (specifically GRPO) when applied to SQL:
Credit Assignment Failure: Sequence-level rewards uniformly reinforce incorrect reasoning along with correct sub-answers, leading to hallucination amplification.
Syntax-Independence Assumption: Standard RL treats error types as independent events, neglecting natural SQL syntax co-occurrence patterns.
To resolve these, the paper introduces:
Fine-grained Token-level Reward Allocation (FTRA): Parses structured JSON outputs into semantic spans to assign localized token advantages.
Co-occurrence-aware Reward Shaping (CORS): Employs a pre-computed log-Lift co-occurrence matrix to shape token-level rewards based on syntactical error relationships.
The authors must address the following critical concerns in their rebuttal:
Co-occurrence Robustness: Provide a sensitivity analysis of the CORS co-occurrence matrix (e.g., adding Gaussian noise or pruning top-K links). Address how well these statistics transfer across different datasets.
SOTA Comparisons: Include comparative results against modern SOTA baselines on BIRD and Spider benchmarks, and clarify how DiagSQL performs on highly complex SQL syntax.
Statistical Significance: Report means and standard deviations across multiple random seeds for key training runs to prove RL training stability.
Execution Feedback Synergy: Discuss how DiagSQL interacts with execution-based feedback (e.g., execution results vs. structural diagnostic feedback).