Less is More: Data-Efficient Complex Question Answering Over Knowledge Bases

Yuncheng Hua, Yuan-Fang Li, Guilin Qi, Wei Wu, Jingyao Zhang, Daiqing Qi

TL;DR

The researchers introduce NS-CQA (Neural-Symbolic Complex Question Answering), a framework that solves difficult, multi-step questions over knowledge bases using only 1% of the available training data. By combining a neural "generator" with a symbolic "executor" and a clever curriculum-based reward system, the model outperforms existing state-of-the-art systems while being significantly more data-efficient.

What Problem Does This Paper Address?

Answering complex questions like "How many rivers flow through India and China?" requires more than just a simple database lookup. A system must perform multiple steps: identify the entities (India, China), find the relationship (flow through), intersect the results, and finally count them.

Current Knowledge Base Question Answering (KBQA) systems face three major hurdles:

  1. Sparse Rewards: In Reinforcement Learning (RL), a model usually only gets a "point" if it gets the final answer exactly right. In the beginning, it almost always fails, leaving it with no feedback to learn from.
  2. Data Inefficiency: Most RL models require thousands of examples to learn even simple patterns.
  3. Massive Search Spaces: Large knowledge bases like Wikidata contain millions of entities and relations, making it nearly impossible for a decoder to "guess" the right tokens from scratch.

Methods

The authors propose a Neural-Symbolic approach. A neural network (the generator) translates a natural language question into a sequence of "primitive actions" (like Select, Inter, Count), which a symbolic engine (the executor) then runs against the knowledge base.

To solve the challenges mentioned above, they introduced several novel techniques:

  • Masking and Copy Mechanisms: Instead of trying to learn every entity name, the model replaces them with placeholders (e.g., <ENTITY1>). It then uses a "copy" mechanism to pull the specific entity from the question into the action sequence. This reduces the model's vocabulary from millions of items to just 17 primitive actions.
  • Memory Buffer: The model stores "pseudo-gold" programs—sequences that successfully led to a correct answer in the past—to prevent forgetting and to guide future searches.
  • Curriculum-Guided Reward Bonus: To fix the "sparse reward" problem, they created a dense feedback loop. The model receives a bonus based on:
  • Proximity: How similar is this trial to a known successful one in the memory buffer?
  • Novelty: Is the model exploring a new, diverse part of the search space?
  • Adaptive Reward Function (ARF): Instead of a binary right/wrong, the model gets partial credit based on the answer type (e.g., F1-score for sets of entities, or edit distance for Boolean answers).

Datasets

The model was evaluated on two major benchmarks:

  1. CQA: A massive dataset of 944,000 training pairs featuring seven categories of complexity, ranging from simple lookups to logical and quantitative reasoning.
  2. WebQuestionsSP: A popular multi-hop question-answering dataset that requires traversing multiple "triples" in a knowledge base to find an answer.

Key Insights and Ideas

  • Logic Over Memorization: The most striking finding was that masking was the most critical component. By hiding specific entity names, the model was forced to learn the logical structure of questions. Because the logic of a "counting" question is the same whether you are counting rivers in India or cities in France, the model became incredibly data-efficient.
  • Dense Feedback is Key: By rewarding "proximity" to known good answers, the authors turned a needle-in-a-haystack search into a guided climb. This allowed the model to learn from "failed" trials that were at least heading in the right direction.
  • The 1% Threshold: The authors found that performance plateaus at around 1% of the training data. Adding the other 99% of the data provided diminishing returns, proving that "less is more" when your model architecture is sufficiently constrained by symbolic logic.

Key Results

  • SOTA Performance: On the CQA dataset, NS-CQA achieved a Macro F1 of 71.01%, significantly beating the previous state-of-the-art (NSM at 62.39% and CIPITR at 19.82%).
  • Hard Categories: The model showed massive gains in the most difficult categories, such as "Quantitative Reasoning" (jumping from 41.89% to 56.28%).
  • Efficiency: The model achieved these results using only 1% of the training samples (roughly 10,000 samples out of nearly a million).
  • Ablation Study: Removing the masking mechanism caused the largest performance drop (37.1%), highlighting its importance in reducing search space.

Limitations and Future Work

Despite its success, the authors noted a few areas for improvement:

  • The Linking Problem: The model sometimes struggles with "entity linking"—for example, confusing a "street" relation with a "terrain feature" relation if they have similar names in the knowledge base.
  • Infeasible Actions: Occasionally, the model generates redundant steps, such as trying to "union" a set with itself.
  • Approximation: For questions involving "almost" or "around" a certain number, the model relies on ad-hoc rules that aren't always robust.
  • Argument Order: The model can sometimes get confused about the order of arguments in a function (e.g., identifying the "child of" relationship in the wrong direction).

Future work will likely focus on incorporating better positional information and more sophisticated semantic linking to resolve these edge cases.

Summary updated

BibTeX
@article{hua2020less,
  author = {Yuncheng Hua and Yuan-Fang Li and Guilin Qi and Wei Wu and Jingyao Zhang and Daiqing Qi},
  title = {{Less is More: Data-Efficient Complex Question Answering Over Knowledge Bases}},
  journal = {J. Web Semant.},
  year = {2020},
  doi = {10.1016/j.websem.2020.100612},
}
Figure