ADMUS: A Progressive Question Answering Framework Adaptable to Multiple Knowledge Sources

Yirui Zhan, Yanzeng Li, Minhao Zhang, Lei ZouarXiv 2023 · DOI

Abstract

Knowledge Base Question Answering (KBQA) systems traditionally suffer from a "rigidity" problem, where models are tightly coupled to specific datasets and schemas. This paper introduces ADMUS (ADaptable to MUltiple knowledge Sources), a modular framework that decouples dataset-specific tasks from a core reasoning engine using a microservice architecture. By employing a three-stage progressive strategy—transitioning from exact SPARQL queries to approximate matches and finally to Large Language Model (LLM) fallbacks—ADMUS provides a multi-tenant solution capable of adapting to new datasets and languages without expensive retraining. Our evaluation across three diverse datasets (birdDB, filmDB, and DBpedia2016) demonstrates the framework's scalability and cross-lingual capabilities.

Introduction

Knowledge Base Question Answering (KBQA) systems are essential for converting natural language questions into structured queries, such as SPARQL, to retrieve precise and explainable answers from structured databases. Despite their accuracy, state-of-the-art KBQA systems are often difficult to generalize. Adapting a system trained on one domain (e.g., cinema) to another (e.g., medicine) typically requires significant effort in retraining models and redeploying pipelines.

This lack of flexibility prevents the development of multi-tenant platforms where users can integrate diverse knowledge sources seamlessly. Furthermore, traditional systems often fail to provide any response if a question does not perfectly align with the database schema. ADMUS addresses these challenges by separating the dataset-dependent components from the logical backbone and introducing a fallback mechanism to ensure user queries are always addressed.

Methodology

Modular Microservice Architecture

ADMUS breaks the standard KBQA pipeline into two distinct layers to facilitate "effortless integration":

  1. Dataset-Related Microservices: These components act as interchangeable "plugs." They handle Node Extraction (NE), identifying entities and types (e.g., "Keanu Reeves" or "film"), and Relation Extraction (RE), identifying the semantic links between entities. By isolating these tasks into microservices, users can support new datasets simply by swapping these small, targeted components.
  2. Dataset-Independent Backbone: This serves as the system's core reasoning engine. It manages Query Graph Generation (QGG) and SPARQL Generation. Because this logic is decoupled from the underlying data schema, it remains constant regardless of the knowledge source's domain or language.

Three-Stage Progressive Framework

To mitigate the "no results found" problem common in semantic parsing, ADMUS implements a progressive execution strategy:

  • Stage 1: Exact Query: The system attempts to generate and execute a precise SPARQL query. This stage is prioritized as it offers the highest reliability and grounding in the database.
  • Stage 2: Approximate Query: If the exact query fails to return results, the system rewrites the query using broader terms—for example, utilizing FILTER CONTAINS logic in SPARQL—to identify near-matches.
  • Stage 3: LLM Query: If the knowledge base remains exhausted, the system falls back to a Large Language Model (LLM). This acts as a safety net for open-domain questions that may fall outside the specific scope of the integrated database, ensuring the user receives a helpful response.

Datasets and Evaluation

The flexibility of ADMUS was demonstrated using three datasets varying in language, scale, and domain:

  • birdDB: A small-scale Chinese dataset (17,607 triples) focused on ornithology.
  • filmDB: A medium-scale Chinese dataset (4.5 million triples) centered on the movie industry.
  • DBpedia2016: A large-scale English dataset (198 million triples) covering general knowledge.

The framework successfully processed queries across these disparate sources within a single interface, proving its language-agnostic and scale-independent design.

Key Insights

Decoupling and Integration

By treating Node and Relation extraction as external services, ADMUS removes the "retraining wall." Integrating a new dataset becomes a matter of configuration rather than a resource-intensive machine learning project. This architecture is particularly suited for enterprise environments where multiple knowledge bases must be queried through a unified interface.

Reliability vs. Usability

While KBQA systems are more trustworthy than LLMs due to their lack of hallucination, LLMs provide a superior user experience by always offering an answer. ADMUS balances these strengths by prioritizing the "ground truth" of the database while using the LLM to prevent user frustration from null responses.

Explainability

Unlike pure LLM-based chatbots, ADMUS maintains a traceable path. Even during the approximate query stage, the system can display the generated query graph, preserving the transparency and explainability that make semantic parsing valuable for professional and research applications.

Conclusion and Future Work

ADMUS represents a significant step toward scalable, multi-tenant KBQA systems. It successfully handles datasets ranging from thousands to hundreds of millions of triples without architectural changes. Future work will focus on refining the backbone's ability to handle more complex syntactic structures and exploring the use of LLMs within the microservices themselves to perform few-shot Node and Relation extraction. Additionally, the team aims to further stress-test the framework's adaptability across even more diverse and specialized datasets.

Summary updated

BibTeX
@misc{zhan2023admus,
  author = {Yirui Zhan and Yanzeng Li and Minhao Zhang and Lei Zou},
  title = {{ADMUS: A Progressive Question Answering Framework Adaptable to Multiple Knowledge Sources}},
  year = {2023},
  eprint = {2308.04800},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.04800},
}
Figure