Skip to main content
QUICK REVIEW

[Paper Review] MathBERT: A Pre-trained Language Model for General NLP Tasks in Mathematics Education

Jia Shen, Michiharu Yamashita|arXiv (Cornell University)|Jun 1, 2021
Intelligent Tutoring Systems and Adaptive LearningComputer Science32 citations
TL;DR

MathBERT pre-trains BASE BERT on a large mathematical corpus and introduces a math-specific vocabulary, outperforming BASE BERT and prior methods on three math education NLP tasks, with public release.

ABSTRACT

Since the introduction of the original BERT (i.e., BASE BERT), researchers have developed various customized BERT models with improved performance for specific domains and tasks by exploiting the benefits of transfer learning. Due to the nature of mathematical texts, which often use domain specific vocabulary along with equations and math symbols, we posit that the development of a new BERT model for mathematics would be useful for many mathematical downstream tasks. In this resource paper, we introduce our multi-institutional effort (i.e., two learning platforms and three academic institutions in the US) toward this need: MathBERT, a model created by pre-training the BASE BERT model on a large mathematical corpus ranging from pre-kindergarten (pre-k), to high-school, to college graduate level mathematical content. In addition, we select three general NLP tasks that are often used in mathematics education: prediction of knowledge component, auto-grading open-ended Q&A, and knowledge tracing, to demonstrate the superiority of MathBERT over BASE BERT. Our experiments show that MathBERT outperforms prior best methods by 1.2-22% and BASE BERT by 2-8% on these tasks. In addition, we build a mathematics specific vocabulary 'mathVocab' to train with MathBERT. We discover that MathBERT pre-trained with 'mathVocab' outperforms MathBERT trained with the BASE BERT vocabulary (i.e., 'origVocab'). MathBERT is currently being adopted at the participated leaning platforms: Stride, Inc, a commercial educational resource provider, and ASSISTments.org, a free online educational platform. We release MathBERT for public usage at: https://github.com/tbs17/MathBERT.

Motivation & Objective

  • Motivate the need for a domain-specific BERT model in mathematics due to domain vocabulary and equations.
  • Pre-train BASE BERT on diverse math corpora from pre-k to graduate level.
  • Introduce a math-specific vocabulary (mathVocab) and compare it with the original BERT vocabulary.
  • Evaluate MathBERT on three math education NLP tasks and compare to baselines.
  • Release MathBERT publicly and outline adoption in learning platforms.

Proposed method

  • Pre-train BASE BERT on ~100M tokens from diverse math corpora (pre-k to college) including text and equations.
  • Create a custom mathematics vocabulary (mathVocab) of 30,522 tokens and compare with origVocab.
  • Train MathBERT using MLM objective with 512 sequence length and 5e-5 learning rate on TPU-based infrastructure.
  • Fine-tune and evaluate on three math education tasks: KC prediction (213 labels), auto-grading (5 labels), and KT correctness (2 labels) using datasets from ASSISTments.
  • Compare MathBERT with BASE BERT, TAPT, and MathBERT + TAPT across five random seeds with statistical significance testing.

Experimental results

Research questions

  • RQ1Does MathBERT improve performance on knowledge component prediction, auto-grading, and knowledge tracing compared with BASE BERT and prior methods?
  • RQ2Does the math-specific vocabulary (mathVocab) enhance MathBERT performance over the original BERT vocabulary (origVocab)?
  • RQ3How do TAPT and MathBERT + TAPT variants compare to MathBERT in the three math education NLP tasks?
  • RQ4What are the practical adoption and release aspects of MathBERT for educational platforms?

Key findings

  • MathBERT outperforms prior best methods by 1.2-22% and BASE BERT by 2-8% across the three tasks.
  • MathBERT with mathVocab generally yields better results than MathBERT with origVocab.
  • MathBERT and MathBERT + TAPT often achieve top performance, with MathBERT + TAPT showing strong KT results in particular.
  • MathBERT variants outperform TAPT alone by small margins across tasks with statistical significance in several metrics.
  • The authors publicly release MathBERT and note adoption by ASSISTments and K12.com.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.