Knowledge Tagging with Large Language Model Based Multi-Agent System

Hang Li, Tianlong Xu, Ethan Chang, Qingsong Wen

Abstract

Knowledge tagging—the process of mapping educational content to specific curriculum concepts—is a critical component of Intelligent Tutoring Systems (ITS). Traditional manual tagging is labor-intensive, while single Large Language Model (LLM) approaches often struggle with complex definitions and strict numerical constraints. This paper introduces a Multi-Agent System (MAS) that employs a "divide and conquer" strategy to improve tagging precision. By utilizing specialized agents for task planning, semantic analysis, and numerical verification via code execution, the proposed system significantly outperforms standard LLM inference. Deployment in a real-world industrial setting demonstrated substantial cost savings and improved scalability.

Introduction

In personalized learning environments, the accuracy of knowledge tagging determines the effectiveness of student diagnostics and content recommendations. For instance, a question testing "addition of two-digit numbers with a sum under 100" must be precisely identified to ensure a student is practicing the correct skill level. However, automating this process is challenging because knowledge definitions often involve multi-layered semantic and numerical rules. Single-prompt LLM solutions frequently suffer from hallucinations or logical failures when required to simultaneously satisfy multiple constraints, particularly in mathematical domains.

Methodology: A Multi-Agent Approach

To address the limitations of monolithic LLM inference, we propose a Multi-Agent System (MAS) that decomposes the tagging task into independent sub-problems. The architecture consists of four specialized agents working in concert:

Architecture of the Multi-Agent System (MAS) for knowledge tagging.
  1. Task Planner: Analyzes the target knowledge definition and breaks it down into discrete sub-constraints (e.g., topic relevance vs. numerical range).
  2. Question Solver: Generates a detailed, step-by-step solution for the input question, providing necessary context for subsequent evaluation.
  3. Semantic Judger: Employs few-shot learning to verify if the question's intent and topic align with the conceptual definition.
  4. Numerical Judger: Unlike standard LLMs that "guess" numerical validity, this agent extracts relevant values and generates a Python script to programmatically verify constraints.

The final tagging decision is determined by a logical AND operator; a tag is only applied if all agents confirm that their respective constraints are met. This design explicitly prioritizes precision, reducing the risk of "false positive" tags that could disrupt a student's learning path.

Experimental Setup and Dataset

The system was evaluated using MathKnowCT, a dataset specifically curated to test fine-grained knowledge tagging in primary school mathematics (Grades 1-3).

Statistics of the MathKnowCT dataset used for evaluation.

The dataset includes 24 distinct math concepts with expert-annotated questions. A key characteristic of MathKnowCT is its 1:4 matching-to-mismatching ratio, which mirrors the real-world difficulty of identifying precise matches within large question banks.

Results and Discussion

The MAS framework demonstrated significant performance gains across various LLM backbones, including GPT, Llama, and Mixtral models.

  • Performance Gains: For the Llama-3-Base model, accuracy rose from 67.08% to 74.91% when transitioning from single-LLM inference to the MAS approach. Similarly, the Mixtral-Base model saw a precision increase from 59.74% to 68.17%.
  • Closing the Model Size Gap: A notable finding was that the MAS architecture allowed smaller "Base" models (e.g., Llama-3-8B) to achieve performance levels comparable to much larger "Large" models. This suggests that architectural decomposition can compensate for lower individual model capacity.
  • Industrial Impact: The system was successfully integrated into the Squirrel AI Learning platform, covering approximately 4,000 knowledge points. This deployment resulted in an estimated $306,750 reduction in manual labeling costs and tripled the volume of the validated question pool.

Conclusion

The Multi-Agent System provides a robust and scalable solution for high-precision knowledge tagging. By offloading numerical verification to code and enforcing unanimous agent agreement, the system mitigates common LLM failure modes. While the current "AND" logic can lead to lower recall, future work will explore more flexible voting mechanisms and the application of this framework to non-mathematical subjects where constraints are more qualitative.

Summary updated

BibTeX
@inproceedings{li2025knowledge,
  author = {Hang Li and Tianlong Xu and Ethan Chang and Qingsong Wen},
  title = {{Knowledge Tagging with Large Language Model Based Multi-Agent System}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i28.35141},
}
Figure