Diverse In-Context Example Selection After Decomposing Programs and Aligned Utterances Improves Semantic Parsing
원문 초록
LLMs are increasingly used as seq2seq translators from natural language utterances to structured programs, a process called semantic interpretation. Unlike atomic labels or token sequences, programs are naturally represented as abstract syntax trees (ASTs). Such structured representation raises novel issues related to the design and selection of in-context examples (ICEs) presented to the LLM. We focus on decomposing the pool of available ICE trees into fragments, some of which may be better suited to solving the test instance. Next, we propose how to use (additional invocations of) an LLM with prompted syntax constraints to automatically map the fragments to corresponding utterances. Finally, we adapt and extend a recent method for diverse ICE selection to work with whole and fragmented ICE instances. We evaluate our system, SCUD4ICL, on popular diverse semantic parsing benchmarks, showing visible accuracy gains from our proposed decomposed diverse demonstration method. Benefits are particularly notable for smaller LLMs, ICE pools having larger labeled trees, and programs in lower resource languages.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Where, What, Why: Towards Explainable Driver Attention Prediction
Sigma: A dataset for text-to-code semantic parsing with statistical analysis
Disambiguate First Parse Later: Generating Interpretations for Ambiguity Resolution in Semantic Parsing
LP-LM: No Hallucinations in Question Answering with Logic Programming
Ontology-Guided, Hybrid Prompt Learning for Generalization in Knowledge Graph Question Answering
Semantic Captioning: Benchmark Dataset and Graph-Aware Few-Shot In-Context Learning for SQL2Text
토론
이 논문과 연결된 포럼 글이 아직 없습니다.