NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Answer Extraction as Sequence Tagging with Tree Edit Distance

Xuchen Yao, Benjamin Van Durme, Chris Callison-Burch, Peter ClarkNAACL 2013

Abstract

Our goal is to extract answers from preretrieved sentences for Question Answering (QA). We construct a linear-chain Conditional Random Field based on pairs of questions and their possible answer sentences, learning the association between questions and answer types. This casts answer extraction as an answer sequence tagging problem for the first time, where knowledge of shared structure between question and source sentence is incorporated through features based on Tree Edit Distance (TED). Our model is free of manually created question and answer templates, fast to run (processing 200 QA pairs per second excluding parsing time), and yields an F1 of 63.3% on a new public dataset based on prior TREC QA evaluations. The developed system is open-source, and includes an implementation of the TED model that is state of the art in the task of ranking QA pairs.

Introduction

In the field of Question Answering (QA), the process is typically divided into two stages: ranking (finding the relevant sentence) and extraction (identifying the exact answer string). While significant progress has been made in ranking, extraction remains a bottleneck. Traditional extraction methods often rely on rigid, manually crafted templates that struggle to generalize across linguistic variations and different question types.

This paper addresses the "error propagation" problem, where inaccuracies in upstream NLP tools (like part-of-speech taggers or named entity recognizers) lead to failures in the final extraction. The authors propose a robust model that learns to identify answers by treating extraction as a sequence tagging problem, utilizing structural relationships between questions and candidate sentences.

Methodology

Sequence Tagging with CRFs

The core innovation of this work is casting answer extraction as a tagging task using the BIO (Beginning, Inside, Outside) labeling scheme. A linear-chain Conditional Random Field (CRF) is trained to label each word in a candidate sentence. This represents the first application of CRFs specifically for the extraction of exact answer strings, allowing the model to learn contextual dependencies between tokens.

Tree Edit Distance (TED) Features

To capture the syntactic relationship between a question and a potential answer sentence, the authors employ Tree Edit Distance (TED). TED measures the minimum cost of transformation operations (insertions, deletions, and renames) required to turn the dependency tree of the question into the tree of the answer sentence. These transformation steps are then used as features for the CRF, enabling the model to recognize structural alignments.

Syntactic alignment between question and answer trees using Tree Edit Distance.

Semantic Matching and WordNet

To handle lexical variations, the model integrates WordNet for "fuzzy" matching. This allows the system to recognize semantic relationships, such as identifying that "tennis" in an answer sentence is a valid match for the word "sport" in a question.

Experimental Setup

The study utilized benchmarks derived from the Text REtrieval Conference (TREC) QA evaluations, including TREC 8-12 for training and TREC 13 for development and testing. The authors also released a cleaned, manually corrected version of these datasets to facilitate future research in the field.

Key Results and Insights

Extraction and Ranking Performance

The system demonstrated high accuracy and efficiency. The model achieved an F1 score of 63.3% on the test set, outperforming baseline models. In the preliminary task of ranking sentences, the TED-based model achieved a Mean Reciprocal Rank (MRR) of 0.7477, establishing a new state-of-the-art for the task at the time of publication.

Feature Impact and Robustness

Ablation studies highlighted the importance of structural features. Adding TED features provided a nearly 10% boost in F1 score over traditional "chunking" features alone. Furthermore, the CRF proved capable of compensating for consistent errors in upstream tools; for instance, if an NER tool consistently mislabels a specific entity type, the CRF can learn to associate that incorrect tag with the correct answer type for specific questions.

Performance improvement (F1 score) across different feature sets and model configurations.

Computational Efficiency

The system is highly optimized for real-time applications, capable of processing 200 QA pairs per second on standard hardware (excluding dependency parsing time). This speed makes it suitable for integration into larger, production-ready QA pipelines.

Conclusion

By treating answer extraction as a sequence tagging problem and incorporating Tree Edit Distance features, this research provides a fast, robust, and template-free approach to Question Answering. While the system relies on initial syntactic parsing, its ability to learn from structural alignments and semantic relationships sets a new benchmark for the field. Future work may involve tighter integration of ranker confidence scores into the CRF decision-making process.

Summary updated

BibTeX
@inproceedings{yao2013answer,
  author = {Xuchen Yao and Benjamin Van Durme and Chris Callison-Burch and Peter Clark},
  title = {{Answer Extraction as Sequence Tagging with Tree Edit Distance}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2013},
  url = {https://openreview.net/forum?id=By-AWXbdZB},
}
Figure