AI
New Tool Speeds Up Conversion of Math Formulas to Computer Code Using AI
MioFFAn, an open-source annotation platform, helps researchers translate mathematical expressions from scientific papers into symbolic code with LLM assistance.
Researchers have released MioFFAn, a new software framework that streamlines the process of converting mathematical formulas found in scientific literature into executable computer code. The platform addresses a fundamental challenge in machine learning and computational science: the lack of large, reliable datasets needed to train AI systems for this specialized task.
The Problem: Converting Math to Code#
Translating mathematical expressions into formal symbolic representations has historically been a bottleneck for automated systems. Scientific papers contain countless equations written in natural mathematical notation, but converting these into code that computers can execute remains difficult without human expert knowledge. The shortage of high-quality annotated examples has made it hard for researchers to build and train effective AI models for this work.
How MioFFAn Works#
Built on the MioGatto architecture, MioFFAn is customizable and document-focused, enabling teams to rapidly label and annotate mathematical content. The platform offers several key capabilities:
- Flexible taxonomy configuration — Users can define custom categories and properties tailored to different scientific domains
- Equation selection — Researchers identify which mathematical expressions matter most for their work
- Symbol specification — The framework helps map mathematical symbols to their executable code equivalents
- LLM integration — The tool incorporates automation through large language models, breaking complex tasks into smaller, measurable sub-tasks
A Human-in-the-Loop Approach#
Rather than attempting full automation, MioFFAn takes a collaborative stance. Researchers can set up automated processes that generate candidate outputs, then review and refine them using standard NLP evaluation metrics. Early testing shows this strategy effectively balances efficiency with accuracy, letting teams iteratively improve automation strategies without sacrificing data quality.
The platform's modularity means that competing approaches can be tested and compared systematically across different scientific fields, from physics to chemistry to engineering.

