Policy-Conditioned Constrained Decoding for Column-Level Access Control in Text-to-SQL

Ryoto Miyamoto, Xin Fan, Hayato Yamana
7/14/2026
cs.CLcs.CRcs.DB

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Text-to-SQL is increasingly deployed across trust boundaries between data providers and users. Such deployment must balance three competing requirements: policy compliance, answer coverage, and bounded cost.

Show full abstract

Existing approaches typically decide refusal based on which columns a query mentions and enforce it stochastically. Whether a query is compliant, however, depends not only on which columns appear but on how they are used, and stochastic enforcement cannot deterministically rule out violations. We formalize this requirement as a column-use policy over semantic use: output, filter condition, and aggregation argument. We integrate the policy by aligning each role with grammar productions tracked by the decoder. The resulting system, PCC-SQL, applies a per-token logits mask that deterministically eliminates single-query column-use violations on the supported SQL fragment in a single decoding pass. Across three benchmarks and three open-source models, PCC-SQL achieves 0% Leakage Rate and Coverage up to 88.7% on Spider-CU, while staying within +10% tokens of direct prompting. We additionally assess semantic alignment with execution accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{miyamoto2026policyconditioned,
  title  = {Policy-Conditioned Constrained Decoding for Column-Level Access Control in Text-to-SQL},
  author = {Ryoto Miyamoto and Xin Fan and Hayato Yamana},
  year   = {2026},
  eprint = {2607.12341},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.12341v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.12341.svg)](https://codeofpaper.com/paper/2607.12341)

Discussion