Abstract
Traditional question answering (QA) systems often rely on rigid, manually constructed ontologies that struggle with linguistic ambiguity and high maintenance costs. This paper introduces an instance-based framework that replaces static hierarchies with dynamic models learned from clusters of similar questions. By projecting questions into a high-dimensional feature space and identifying neighboring instances, the system generates cluster-specific answer, query, and extraction models. Evaluated on temporal questions from TREC datasets, the approach achieves a Mean Reciprocal Rank (MRR) of 0.447, demonstrating that fully automated, data-driven methods can compete with heavily engineered, knowledge-intensive systems.
Introduction
Standard QA architectures typically employ a pipeline that begins with a hard classification step: assigning a question to a specific category in a fixed ontology (e.g., "Person," "Location," or "Date"). However, this approach is fundamentally brittle. Rigid hierarchies struggle with ambiguity—for instance, a question about the "corpus callosum" requires an answer that is both a location and a body part. Furthermore, ontologies vary significantly between systems, complicating cross-system integration and requiring substantial manual effort to adapt to new domains or languages.
To address these limitations, we propose an instance-based approach. Instead of relying on a master rulebook, the system determines how to answer a new question by analyzing how similar questions were handled in the past.
The Instance-Based Framework
The core of the proposed system is the dynamic generation of models based on the local "neighborhood" of a query. The process involves three primary stages:
- Feature Space Projection: Every question is converted into a set of features, including n-grams, part-of-speech (POS) tags, and parse trees.
- Neighborhood Clustering: For a new test question, the system identifies neighboring questions in the training data that share similar features. These neighbors are grouped into clusters of varying granularity.
- Cluster-Specific Model Generation: For each identified cluster, the system dynamically builds specialized models to handle different aspects of the QA task.
Cluster-Specific Models
Unlike traditional systems that use global rules, our framework trains three distinct models for every cluster discovered in the neighborhood of a query:
- Answer Model ($A_i$): Rather than assigning a single label, this model learns a probability distribution over answer types. It calculates the likelihood of an answer type based on the proximity and frequency of neighbors, allowing for greater flexibility during final ranking.
- Query Content Model ($U_i$): This model identifies automated "hints" or context features (such as paraphrases) that improve document retrieval. For example, it might learn that the phrase "was hired by" is a strong indicator of relevance for questions regarding employment starts.
- Extraction Model ($E_i$): A Support Vector Machine (SVM) classifier trained to identify if a specific text snippet contains the correct answer based on features like keyword density and the distance between terms.
Experimental Evaluation
The system was evaluated using a temporal subset of the TREC 9-12 datasets, comprising 296 questions and their corresponding NIST-provided answer patterns. Document retrieval was performed using the Google API to fetch the top 100 documents for each query.
Using leave-one-out cross-validation, the system achieved a Mean Reciprocal Rank (MRR) of 0.447. Furthermore, the Top-5 Accuracy reached 61.5%, meaning a correct answer was found within the first five candidates for the majority of questions. These results consistently outperformed the sixth-highest scores in the original TREC competitions, proving that a data-driven approach can match the performance of knowledge-intensive, manually tuned systems.
Conclusion
By treating answer types as distributions and learning strategies from local clusters, the instance-based approach provides a flexible alternative to rigid ontologies. While the method is data-hungry and computationally intensive at runtime, its ability to be easily re-trained for new domains makes it a robust solution for modern QA challenges. Future work will focus on expanding the system to non-temporal questions and leveraging unsupervised data acquisition to mitigate data sparsity in less common question types.
Summary updated