mlsanityData to 7 Oct 2026

How Proficient Are Large Language Models in Formal Languages? An In-Depth Insight for Knowledge Base Question Answering

arXiv 2401.05777 ↗First posted 11 Jan 2024cs.CLcited by 5

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  7. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  8. 2019Language Models as Knowledge Bases?cited by 1,922
  9. 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
  10. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  11. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  12. 2019How Can We Know What Language Models Know?cited by 953
27 more
  1. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
  2. 2018The Web as a Knowledge-base for Answering Complex Questionscited by 409
  3. 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
  4. 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 339
  5. 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
  6. 2019PullNet: Open Domain Question Answering with Iterative Retrieval on Knowledge Bases and Textcited by 182
  7. 2020Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Basescited by 169
  8. 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
  9. 2022UniKGQA: Unified Retrieval and Reasoning for Solving Multi-hop Question Answering Over Knowledge Graphcited by 100
  10. 2022Subgraph Retrieval Enhanced Model for Multi-hop Knowledge Base Question Answeringcited by 93
  11. 2021RnG-KBQA: Generation Augmented Iterative Ranking for Knowledge Base Question Answeringcited by 86
  12. 2023KoLA: Carefully Benchmarking World Knowledge of Large Language Modelscited by 85
  13. 2022DecAF: Joint Decoding of Answers and Logical Forms for Question Answering over Knowledge Basescited by 83
  14. 2020KQA Pro: A Dataset with Explicit Compositional Programs for Complex Question Answering over Knowledge Basecited by 76
  15. 2021TransferNet: An Effective and Transparent Framework for Multi-hop Question Answering over Relation Graphcited by 60
  16. 2022Don't Generate, Discriminate: A Proposal for Grounding Language Models to Real-World Environmentscited by 57
  17. 2022Discovering Latent Concepts Learned in BERTcited by 56
  18. 2020Investigating Entity Knowledge in BERT with Simple Neural End-To-End Entity Linkingcited by 49
  19. 2021Program Transfer for Answering Complex Questions over Knowledge Basescited by 34
  20. 2019Semantic Parsing with Dual Learningcited by 28
  21. 2013Lambda Dependency-Based Compositional Semanticscited by 26
  22. 2020Toward Subgraph-Guided Knowledge Graph Question Generation with Graph Neural Networkscited by 25
  23. 2023Prompting Large Language Models with Chain-of-Thought for Few-Shot Knowledge Base Question Generationcited by 21
  24. 2018Zero-Shot Question Generation from Knowledge Graphs for Unseen Predicates and Entity Typescited by 17
  25. 2023Bridging the KB-Text Gap: Leveraging Structured Knowledge-aware Pre-training for KBQAcited by 17
  26. 2016Knowledge Questions from Knowledge Graphscited by 15
  27. 2022GraphQ IR: Unifying the Semantic Parsing of Graph Query Languages with One Intermediate Representationcited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 1.

5 papers.