Introduction
In the evolving landscape of educational technology, the ability to efficiently tag content with descriptive metadata is crucial for personalized learning. This case study, presented at the 2023 CEUR Workshop, investigates the application of Large Language Models (LLMs) to automate the categorization of middle school algebra questions. Researchers from OpenStax and Rice University demonstrate that models like GPT-3.5 and GPT-4 can effectively identify problem contexts and extract key vocabulary, offering a scalable and cost-effective alternative to manual human coding.
The Metadata Challenge
In learning sciences, metadata—labels describing a question's difficulty, concept, or context—is essential for understanding student performance. For example, a student's struggle with a word problem might stem from reading comprehension challenges rather than a lack of mathematical proficiency. Traditionally, creating this metadata requires Subject Matter Experts (SMEs) to manually tag thousands of questions—a process that is slow, expensive, and difficult to maintain as content evolves.
The study focused on two primary metadata types:
- Context: Classifying problems as purely symbolic (equations), real-world scenarios (word problems), or "School Math" (hybrid scenarios involving hypothetical students).
- Math Vocabulary: Identifying key terms (e.g., "linear," "quadratic") that may represent linguistic barriers for students.
Methodology and Dataset
The researchers utilized an assessment bank of 339 middle school algebra questions. The context dataset included 109 real-world, 224 symbolic, and 6 school math questions. To evaluate performance, LLM-generated tags were compared against a "gold standard" dataset manually coded by a human SME.
The technical implementation involved integrating OpenAI’s GPT-3.5 and GPT-4 into Google Sheets via the GPTforWork.com extension. The core of the approach was iterative prompt engineering. A significant finding was the LLMs' tendency to solve math problems rather than simply tagging them. This was addressed by adding explicit constraints such as "Do not solve the math problem."
For complex classifications, a two-step prompting strategy was employed. For instance, to distinguish "School Math" from "Symbolic" math, researchers first separated "Real-World" from "Symbolic" questions. They then applied a second prompt to the symbolic subset to detect person names or hypothetical scenarios, effectively isolating the "School Math" category.
Key Insights: The "Benign" False Positive
A notable observation during vocabulary extraction was the occurrence of "benign" false positives. The LLMs often identified relevant terms that the human coder had overlooked, such as "data" or "bacteria." While these were technically false positives relative to the human baseline, they actually enhanced the metadata by providing a more comprehensive list of potentially challenging words for students.
Performance Results
The models demonstrated high reliability, particularly in context extraction:
- Context Extraction (GPT-3.5): Achieved an impressive 0.92 recall and 0.92 precision, showing high accuracy in distinguishing word problems from symbolic equations.
- Math Vocabulary (GPT-3.5): Reached 0.75 recall, identifying three-quarters of the terms flagged by humans.
- Math Vocabulary (GPT-4): Improved significantly to 0.82 recall. This performance level approaches the typical inter-rater reliability between two human experts.
Precision for vocabulary was generally lower (ranging from 0.63 to 0.66) because the models were more "liberal" in their selections, often including real-world terms like "softball team" or "scarves" alongside technical math terms.
Limitations and Future Directions
Despite the promising results, several limitations were identified:
- Multimodality: The study was limited to text-based questions. Problems relying on images, graphs, or tables often caused the models to fail or request more information.
- Formatting: Models occasionally included extraneous text or punctuation, necessitating post-processing cleanup.
Future work will focus on expanding metadata tags to include "real-world vocabulary" as a distinct category and refining automated cleaning processes. Ultimately, the study concludes that the significant time and labor savings offered by LLMs—especially for large-scale assessment banks—far outweigh the minor discrepancies in accuracy compared to human experts.
Summary updated