arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.04110cs.CLcs.AI
收藏

基于结构化案例推理的文本到SQL解析器推理时自适应

Structured Case-based Reasoning for Inference-time Adaptation of Text-to-SQL parsers

Indian Institute of Technology Bombay(印度理工学院孟买分校)

Abhijeet Awasthi, Soumen Chakrabarti, Sunita Sarawagi

摘要:

用于语义解析的推理时自适应方法对于利用来自新观察到的域的示例而无需重复微调是有用的。现有方法通常通过简单地在Seq-to-Seq模型中在编码器的输入处级联来自新域的输入-输出示例对(情况)来使解码器偏置。这种方法不能充分利用案例中逻辑形式的结构。我们提出了StructCBR,一个结构化的基于案例的推理方法,它利用子树级的逻辑形式的情况下,候选输出之间的相似性,从而更好的解码器的决定。对于适应文本到SQL模型看不见的模式的任务,我们表明,开发的情况下,通过StructCBR的结构化方式的例子提供了一致的性能改进,在五个不同的数据库之前的推理时间适应方法。据我们所知,我们是第一个尝试文本到SQL模型的推理时间适应,并利用子查询之间的可训练结构化相似性。

英文摘要:

Inference-time adaptation methods for semantic parsing are useful for leveraging examples from newly-observed domains without repeated fine-tuning. Existing approaches typically bias the decoder by simply concatenating input-output example pairs (cases) from the new domain at the encoder's input in a Seq-to-Seq model. Such methods cannot adequately leverage the structure of logical forms in the case examples. We propose StructCBR, a structured case-based reasoning approach, which leverages subtree-level similarity between logical forms of cases and candidate outputs, resulting in better decoder decisions. For the task of adapting Text-to-SQL models to unseen schemas, we show that exploiting case examples in a structured manner via StructCBR offers consistent performance improvements over prior inference-time adaptation methods across five different databases. To the best of our knowledge, we are the first to attempt inference-time adaptation of Text-to-SQL models, and harness trainable structured similarity between subqueries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑