How Proficient Are Large Language Models in Formal Languages? An In-Depth Insight for Knowledge Base Question Answering
Not on the map. Why?
Abstract (arXiv)
Knowledge Base Question Answering (KBQA) aims to answer natural language questions based on facts in knowledge bases. A typical approach to KBQA is semantic parsing, which translates a question into an executable logical form in a formal language. Recent works leverage the capabilities of large language models (LLMs) for logical form generation to improve performance. However, although it is validated that LLMs are capable of solving some KBQA problems, there has been little discussion on the differences in LLMs' proficiency in formal languages used in semantic parsing. In this work, we propose to evaluate the understanding and generation ability of LLMs to deal with differently structured logical forms by examining the inter-conversion of natural and formal language through in-context learning of LLMs. Extensive experiments with models of different sizes show that state-of-the-art LLMs can understand formal languages as well as humans, but generating correct logical forms given a few examples remains a challenge. Most importantly, our results also indicate that LLMs exhibit considerable sensitivity. In general, the formal language with a lower formalization level, i.e., the more similar it is to natural language, is more friendly to LLMs.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 39 of its 62 references that are in the map. First posted on arXiv 11 Jan 2024.
Builds on
39 of 62 references.
References · 39
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019How Can We Know What Language Models Know?cited by 953
27 more
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2018The Web as a Knowledge-base for Answering Complex Questionscited by 409
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
- 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 339
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2019PullNet: Open Domain Question Answering with Iterative Retrieval on Knowledge Bases and Textcited by 182
- 2020Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Basescited by 169
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
- 2022UniKGQA: Unified Retrieval and Reasoning for Solving Multi-hop Question Answering Over Knowledge Graphcited by 100
- 2022Subgraph Retrieval Enhanced Model for Multi-hop Knowledge Base Question Answeringcited by 93
- 2021RnG-KBQA: Generation Augmented Iterative Ranking for Knowledge Base Question Answeringcited by 86
- 2023KoLA: Carefully Benchmarking World Knowledge of Large Language Modelscited by 85
- 2022DecAF: Joint Decoding of Answers and Logical Forms for Question Answering over Knowledge Basescited by 83
- 2020KQA Pro: A Dataset with Explicit Compositional Programs for Complex Question Answering over Knowledge Basecited by 76
- 2021TransferNet: An Effective and Transparent Framework for Multi-hop Question Answering over Relation Graphcited by 60
- 2022Don't Generate, Discriminate: A Proposal for Grounding Language Models to Real-World Environmentscited by 57
- 2022Discovering Latent Concepts Learned in BERTcited by 56
- 2020Investigating Entity Knowledge in BERT with Simple Neural End-To-End Entity Linkingcited by 49
- 2021Program Transfer for Answering Complex Questions over Knowledge Basescited by 34
- 2019Semantic Parsing with Dual Learningcited by 28
- 2013Lambda Dependency-Based Compositional Semanticscited by 26
- 2020Toward Subgraph-Guided Knowledge Graph Question Generation with Graph Neural Networkscited by 25
- 2023Prompting Large Language Models with Chain-of-Thought for Few-Shot Knowledge Base Question Generationcited by 21
- 2018Zero-Shot Question Generation from Knowledge Graphs for Unseen Predicates and Entity Typescited by 17
- 2023Bridging the KB-Text Gap: Leveraging Structured Knowledge-aware Pre-training for KBQAcited by 17
- 2016Knowledge Questions from Knowledge Graphscited by 15
- 2022GraphQ IR: Unifying the Semantic Parsing of Graph Query Languages with One Intermediate Representationcited by 13
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 1.
5 papers.
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injectioncited by 5
- 2024Regular-pattern-sensitive CRFs for Distant Label Interactionscited by 0
- 2025Investigating the (De)Composition Capabilities of Large Language Models in Natural-to-Formal Language Conversioncited by 0
- 2025Intermediate Languages Matter: Formal Languages and LLMs affect Neurosymbolic Reasoningcited by 0
- 2026Improving Answer Extraction in Context-based Question Answering Systems Using LLMscited by 0
- 2026Improving Answer Extraction in Context-based Question Answering Systems Using LLMs4 Jun 2026
- 2025Intermediate Languages Matter: Formal Languages and LLMs affect Neurosymbolic Reasoning4 Sep 2025
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injection18 Jul 2025
- 2025Investigating the (De)Composition Capabilities of Large Language Models in Natural-to-Formal Language Conversion24 Jan 2025
- 2024Regular-pattern-sensitive CRFs for Distant Label Interactions19 Nov 2024