Papers › LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations

LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations

2 Jun 2021ACL 2021 5arXiv:2106.01093archive 2025-07-28

Ruisheng Cao, Lu Chen, Zhi Chen, Yanbin Zhao, Su Zhu, Kai Yu

This work aims to tackle the challenging heterogeneous graph encoding problem in the text-to-SQL task. Previous methods are typically node-centric and merely utilize different weight matrices to parameterize edge types, which 1) ignore the rich semantics embedded in the topological structure of edges, and 2) fail to distinguish local and non-local relations for each node. To this end, we propose a Line Graph Enhanced Text-to-SQL (LGESQL) model to mine the underlying relational features without constructing meta-paths. By virtue of the line graph, messages propagate more efficiently through not only connections between nodes, but also the topology of directed edges. Furthermore, both local and non-local relations are integrated distinctively during the graph iteration. We also design an auxiliary task called graph pruning to improve the discriminative capability of the encoder. Our framework achieves state-of-the-art results (62.8% with Glove, 72.0% with Electra) on the cross-domain text-to-SQL benchmark Spider at the time of writing.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2106.01093")

Code

Syntology Ran 5 of 11 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · violated contract; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rhythmcao/text2sql-lgesql officialmentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 5 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · violated contract
2ran
6unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from rhythmcao/text2sql-lgesql. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

condition_has_like rhythmcao/text2sql-lgesql/evaluation.py official repository ran · violated contract Apache-2.0 (permissive) · 8231e3fdffa9c8ee · report
condition_has_or rhythmcao/text2sql-lgesql/evaluation.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · f2d76234528d3b57 · report
condition_has_sql rhythmcao/text2sql-lgesql/evaluation.py official repository ran · violated contract Apache-2.0 (permissive) · 954c76e256cc7220 · report
get_schema rhythmcao/text2sql-lgesql/process_sql.py official repository ran fingerprinted Apache-2.0 (permissive) · 0992d2a47ae733fa · report
get_schema_from_json rhythmcao/text2sql-lgesql/process_sql.py official repository ran Apache-2.0 (permissive) · c4dcaf29b663a364 · report
clones rhythmcao/text2sql-lgesql/model/model_utils.py official repository unverified Apache-2.0 (permissive) · 25c42ad079e7167e · report
cumsoftmax rhythmcao/text2sql-lgesql/model/decoder/onlstm.py official repository unverified Apache-2.0 (permissive) · b54d0a53e495106f · report
lens2mask rhythmcao/text2sql-lgesql/model/model_utils.py official repository unverified Apache-2.0 (permissive) · dfc4442988bf7e23 · report
mask2matrix rhythmcao/text2sql-lgesql/model/model_utils.py official repository unverified Apache-2.0 (permissive) · 9bbd7187f61c565a · report
remove_comment rhythmcao/text2sql-lgesql/asdl/asdl.py official repository unverified Apache-2.0 (permissive) · 212773f9c186f66c · report
tokenize rhythmcao/text2sql-lgesql/process_sql.py official repository unverified Apache-2.0 (permissive) · a906f5de1f5971b0 · report

Tasks

Text to SQLText-To-SQL

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Pruning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections