atlas

Research map / Large language models / Language, safety and interpretability

OpenWebMath: An Open Dataset of High-Quality Mathematical Web Text

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Data and evaluation methodology · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces OpenWebMath, a 14.7B-token dataset of English mathematical web pages extracted from Common Crawl with LaTeX-preserving extraction, filtering, and deduplication, and shows 1.4B models trained on it outperform models trained on far more general tokens on math perplexity and accuracy.

Problem

Public web datasets strip or mangle mathematical notation (LaTeX), so the benefits of large-scale math web pretraining seen in Minerva are unavailable to the open research community.

Approach

A custom pipeline that recovers LaTeX from MathJax delimiters, alttext, images and MathML in Common Crawl HTML, combined with a fastText-based MathScore classifier trained on LaTeX-stripped text, language-ID and perplexity filters, and SimHash deduplication to produce an open math web corpus.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train on OpenWebMath instead of The Pile (300B tokens)1.4B language model · GSM8kperplexity: 1.9430 -> 1.9075Helped
Train on a 50/50 ProofPile and OpenWebMath mixture instead of OpenWebMath alone1.4B language model · GSM8kperplexity: 1.9075 -> 1.8968Helped
Train on OpenWebMath instead of The Pile (300B tokens)1.4B language model · MATHperplexity: 1.7117 -> 1.6285; 1.7560 -> 1.6503; 1.6358 -> 1.5949; 1.6359 -> 1.6002; 1.7460 -> 1.6894; 1.5191 -> 1.4542; 1.7252 -> 1.Helped
Train on a 50/50 ProofPile and OpenWebMath mixture instead of OpenWebMath alone1.4B language model · MATHperplexity: 1.6285 -> 1.6055; 1.6503 -> 1.6190; 1.5949 -> 1.5301; 1.6002 -> 1.5719; 1.6894 -> 1.6607; 1.4542 -> 1.4119; 1.5748 -> 1.Helped
Train on OpenWebMath instead of The Pile (300B tokens)1.4B language model · MATH Algebra-Easyaccuracy: 3.93% -> 5.62%Helped
Train on a 50/50 ProofPile and OpenWebMath mixture instead of OpenWebMath alone1.4B language model · MATH Algebra-Easy maj@16accuracy: 9.55% -> 10.11%Helped
Train on OpenWebMath instead of The Pile (300B tokens)1.4B language model · LILA multiarithaccuracy: 21.80% -> 16.67%Hurt
Train on a 50/50 ProofPile and OpenWebMath mixture instead of OpenWebMath alone1.4B language model · LILA multiarithaccuracy: 16.67% -> 13.22%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Common Crawl The Pile ProofPile MATH GSM8k LILA multiarith

Benchmarks: GSM8k perplexity MATH perplexity MATH Algebra-Easy LILA multiarith

Metrics: perplexity accuracy maj@16 accuracy

Baselines: The Pile ProofPile Pythia 1.4B

Builds on: Minerva The Pile ProofPile Resiliparse Pythia

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy