# Template-based Question Answering using Recursive Neural Networks

arXiv: https://arxiv.org/abs/2004.13843 · HTML: https://mlsanity.com/paper/2004.13843/

## Key facts

- Cited by 5 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 3 Apr 2020.

## Built on by (most cited first, 5 of 5)

- [Modern Baselines for SPARQL Semantic Parsing](https://mlsanity.com/paper/2204.12793/) (2022)
- [Structured Context and High-Coverage Grammar for Conversational Question Answering over Knowledge Graphs](https://mlsanity.com/paper/2109.00269/) (2021)
- [Knowledge Graph Question Answering using Graph-Pattern Isomorphism](https://mlsanity.com/paper/2103.06752/) (2021)
- [Crake: Causal-Enhanced Table-Filler for Question Answering over Large Scale Knowledge Base](https://mlsanity.com/paper/2207.03680/) (2022)
- [Lexicalization Is All You Need: Examining the Impact of Lexical Knowledge in a Compositional QALD System](https://mlsanity.com/paper/2411.03906/) (2024)

## Abstract (arXiv)

We propose a neural network-based approach to automatically learn and classify natural language questions into its corresponding template using recursive neural networks. An obvious advantage of using neural networks is the elimination of the need for laborious feature engineering that can be cumbersome and error-prone. The input question is encoded into a vector representation. The model is trained and evaluated on the LC-QuAD dataset (Large-scale Complex Question Answering Dataset). The LC-QuAD queries are annotated based on 38 unique templates that the model attempts to classify. The resulting model is evaluated against both the LC-QuAD dataset and the 7th Question Answering Over Linked Data (QALD-7) dataset. The recursive neural network achieves template classification accuracy of 0.828 on the LC-QuAD dataset and an accuracy of 0.618 on the QALD-7 dataset. When the top-2 most likely templates were considered the model achieves an accuracy of 0.945 on the LC-QuAD dataset and 0.786 on the QALD-7 dataset. After slot filling, the overall system achieves a macro F-score 0.419 on the LC-QuAD dataset and a macro F-score of 0.417 on the QALD-7 dataset.
