Categorizing Mathematical Concepts with LLM Voting Ensembles in Mathswitch

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, extended

Summary

Mathswitch, an open-source project, connects mathematical concepts across diverse resources like Wikidata, Wikipedia, and MathWorld. It addresses data noise from Wikidata's collaboratively edited graph by employing a voting ensemble of three locally-hosted LLM judges (DeepSeek-R1 14B, Gemma-3 12B, Qwen-2.5 14B) to filter non-mathematical or ambiguous items. Evaluated on a 1000-item MathWorld-backed sample from an April 2026 Wikidata import, the ensemble achieved 98.2% apparent accuracy. The system processes 16,385 items, using SPARQL queries, Wikipedia API for article text, and spaCy for keyword extraction. Disagreements with MathWorld labels were categorized into degenerate descriptions, narrow scope bias (Gemma-3), and editorial-scope mismatches, informing pipeline improvements.

Key takeaway

For Research Scientists or ML Engineers building knowledge graphs from diverse, collaboratively edited sources, this work demonstrates a robust method for data cleansing. You should consider implementing a heterogeneous LLM voting ensemble to filter noisy or ambiguous entries, especially when ground truth is scarce. Analyzing model disagreements can reveal critical upstream data quality issues, such as degenerate descriptions, guiding targeted data enrichment or pre-filtering strategies to enhance overall system reliability.

Key insights

LLM voting ensembles effectively filter noisy mathematical concept data from collaborative knowledge graphs like Wikidata.

Principles

Method

Mathswitch uses SPARQL queries, fetches Wikipedia articles, extracts keywords with spaCy, then sends item metadata to a configurable LLM ensemble for yes/no classification with confidence scores. Majority votes update SPARQL exclusion lists.

In practice

Topics

Code references

Best for: NLP Engineer, AI Scientist, Machine Learning Engineer, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.