Introduction
Researchers from Tel-Aviv University have developed PReasM, a language model pre-trained on millions of synthetic reasoning examples automatically generated from Wikipedia tables. By using "error-driven sampling" to focus on the skills the model finds most difficult, PReasM significantly outperforms standard models like T5 on complex reading comprehension tasks involving math, dates, and logical composition.
While Large Language Models (LLMs) like GPT-4 or T5 possess vast world knowledge, they often stumble on tasks requiring multi-step reasoning—such as comparing numbers, calculating date differences, or combining multiple facts to reach a conclusion. The challenge is that high-quality, human-annotated data for these specific reasoning skills is scarce and expensive to produce. This paper asks: Can we use the inherent structure of web tables to automatically generate a massive, diverse training set that teaches models how to reason?
Methods
The authors propose a three-stage pipeline to bridge the reasoning gap:
- Synthetic Data Generation: They crawled over 176,000 Wikipedia tables and developed 16 "Example Generators" (EGs). Each EG uses templates to create question-context-answer triplets. For example, a table about a football season is used to generate a question like "Which round had a higher attendance: QF or QFR?" The "context" is a set of facts extracted from the table and converted into "pseudo-language".
- Error-Driven & Momentum Sampling: Instead of training on all 4.8 million synthetic examples equally, the authors used dynamic sampling. Error-driven sampling prioritizes tasks where the model currently has low accuracy. They also introduced Momentum sampling, which prioritizes tasks where the model is showing the fastest rate of improvement.
- Pre-training and Fine-tuning: They took a standard T5 model and added a pre-training step on this synthetic data ($D_{syn}$) before fine-tuning it on target benchmarks.
Datasets
The model was evaluated across several challenging benchmarks:
- Synthetic ($D_{syn}$): 4.8 million questions covering 16 reasoning skills derived from Wikipedia.
- DROP: A benchmark requiring Discrete Reasoning Over Paragraphs.
- IIRC: A dataset requiring following links from Wikipedia paragraphs to find missing information.
- MMQA: A multi-modal dataset involving text, tables, and images.
Key Insights
- Tables as Reasoning Blueprints: Tables are "semi-structured," making them easier for machines to parse than raw text while maintaining factual density. This allows for the programmatic generation of "gold" answers for complex logic.
- Pseudo-language Transfer: Training on facts phrased in template-like "pseudo-language" effectively teaches the underlying logic needed to solve human-written questions in natural language.
- The Efficiency of Struggle: Uniformly sampling tasks is wasteful. By forcing the model to spend more time on "hard" skills like date differences and arithmetic addition, the model gains specialized skills much faster.
Key Results
PReasM-Large demonstrated substantial gains over the baseline T5-Large. Notably, on the DROP benchmark, it improved by 7.6 F1 points, and on IIRC (Oracle setting), it improved by 7.9 F1 points, achieving a new state-of-the-art.
On specific difficult reasoning types, the gains were even more dramatic. For example, on date difference questions, PReasM improved performance by roughly 40 F1 points compared to T5. As shown in the accuracy plots, error-driven and momentum sampling strategies allowed the model to reach higher accuracy levels with significantly fewer training steps than uniform sampling.
Limitations and Future Work
While PReasM shows great promise, it faces limitations such as template rigidity. Future work could involve using LLMs to paraphrase these templates into more natural language. Additionally, while PReasM beats standard T5, it still trails behind models with specialized numerical architectures on some leaderboards. Extending this reasoning capability to multi-modal contexts (images and charts) remains an open challenge.
Summary updated