aiqbench analysis
This research introduces PCC-SQL, a method that deterministically enforces column-level access policies in Text-to-SQL systems by masking logits based on semantic query roles rather than stochastic refusal. By aligning policy constraints directly with grammar productions, the approach achieves zero data leakage while maintaining high answer coverage and minimal computational overhead. This advancement addresses critical security gaps in deploying generative AI models across trust boundaries where precise data governance is required.
Policy-Conditioned Constrained Decoding for Column-Level Access Control in Text-to-SQL
arXiv:2607.12341v2 Announce Type: replace 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. 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.
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. 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.
Computation and Language (cs.CL); Cryptography and Security (cs.CR); Databases (cs.DB)
arXiv:2607.12341 [cs.CL]
(or arXiv:2607.12341v2 [cs.CL] for this version)
https://doi.org/10.48550/arXiv.2607.12341 Focus to learn more arXiv-issued DOI via DataCite
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Full text under the publisher's open licence · 260 words
Related coverage

[AINews] not much happened today
Latent Space · Oct 3, 2026

Can Cloudflare CEO Matthew Prince save the web from AI?
The Verge · Sep 26, 2026

The Entangled Dimensions of Decision Theory
LessWrong · Jul 30, 2026

Build a Physical AI model factory with NVIDIA Cosmos 3 on SageMaker HyperPod
AWS · Sep 4, 2026