Pith. sign in

REVIEW 2 cited by

Code-Style In-Context Learning for Knowledge-Based Question Answering

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2309.04695 v2 pith:GUR2HUNF submitted 2023-09-09 cs.CL cs.AI

classification cs.CLcs.AI
keywords llmsformsin-contextkbqalearninglogicquestionanswering
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Current methods for Knowledge-Based Question Answering (KBQA) usually rely on complex training techniques and model frameworks, leading to many limitations in practical applications. Recently, the emergence of In-Context Learning (ICL) capabilities in Large Language Models (LLMs) provides a simple and training-free semantic parsing paradigm for KBQA: Given a small number of questions and their labeled logical forms as demo examples, LLMs can understand the task intent and generate the logic form for a new question. However, current powerful LLMs have little exposure to logic forms during pre-training, resulting in a high format error rate. To solve this problem, we propose a code-style in-context learning method for KBQA, which converts the generation process of unfamiliar logical form into the more familiar code generation process for LLMs. Experimental results on three mainstream datasets show that our method dramatically mitigated the formatting error problem in generating logic forms while realizing a new SOTA on WebQSP, GrailQA, and GraphQ under the few-shot setting. The code and supplementary files are released at https://github.com/Arthurizijar/KB-Coder .

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. TARGA: Targeted Synthetic Data Generation for Practical Reasoning over Structured Data

    cs.CL 2024-12 conditional novelty 6.0 of 10

    TARGA creates on-the-fly synthetic query demonstrations from the knowledge graph around each test question, and this is enough to beat non-fine-tuned KBQA baselines without any manual annotation.

  2. Thinking with Knowledge Graphs: Enhancing LLM Reasoning Through Structured Data

    cs.CL 2024-12 conditional novelty 3.0 of 10

    Representing knowledge graph triples as Python code improved LLM multi-hop reasoning accuracy over text and JSON in this study, though the effect is modest and possibly due to explicit inference steps in the code.

Pith tools