Salvato in:
Dettagli Bibliografici
Autori principali: Li, Sifan, Chen, Hongkai, Cai, Yujun, Chen, Liyang, Ye, Qingwen, Wang, Yiwei
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:https://arxiv.org/abs/2601.13695
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908778546331648
author Li, Sifan
Chen, Hongkai
Cai, Yujun
Chen, Liyang
Ye, Qingwen
Wang, Yiwei
author_facet Li, Sifan
Chen, Hongkai
Cai, Yujun
Chen, Liyang
Ye, Qingwen
Wang, Yiwei
contents Executable SQL generation is typically studied in text-to-SQL settings, where tables are provided as fully linearized textual schemas and contents. While effective, this formulation assumes access to structured text and incurs substantial token overhead, which is misaligned with many real-world scenarios where tables appear as visual artifacts in documents or webpages. We investigate whether compact optical representations can serve as an efficient interface for executable semantic parsing. We present OptiSQL, a vision-driven framework that generates executable SQL directly from table images and natural language questions using compact optical tokens. OptiSQL leverages an OCR-oriented visual encoder to compress table structure and content into a small set of optical tokens and fine-tunes a pretrained decoder for SQL generation while freezing the encoder to isolate representation sufficiency. Experiments on a visualized version of Spider 2.0-Snow show that OptiSQL retains strong execution accuracy while reducing table input tokens by an order of magnitude. Robustness analyses further demonstrate that optical tokens preserve essential structural information under visual perturbations.
format Preprint
id arxiv_https___arxiv_org_abs_2601_13695
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle OptiSQL: Executable SQL Generation from Optical Tokens
Li, Sifan
Chen, Hongkai
Cai, Yujun
Chen, Liyang
Ye, Qingwen
Wang, Yiwei
Computation and Language
Executable SQL generation is typically studied in text-to-SQL settings, where tables are provided as fully linearized textual schemas and contents. While effective, this formulation assumes access to structured text and incurs substantial token overhead, which is misaligned with many real-world scenarios where tables appear as visual artifacts in documents or webpages. We investigate whether compact optical representations can serve as an efficient interface for executable semantic parsing. We present OptiSQL, a vision-driven framework that generates executable SQL directly from table images and natural language questions using compact optical tokens. OptiSQL leverages an OCR-oriented visual encoder to compress table structure and content into a small set of optical tokens and fine-tunes a pretrained decoder for SQL generation while freezing the encoder to isolate representation sufficiency. Experiments on a visualized version of Spider 2.0-Snow show that OptiSQL retains strong execution accuracy while reducing table input tokens by an order of magnitude. Robustness analyses further demonstrate that optical tokens preserve essential structural information under visual perturbations.
title OptiSQL: Executable SQL Generation from Optical Tokens
topic Computation and Language
url https://arxiv.org/abs/2601.13695