The Promises and Pitfalls of Language Models for Structured Numerical Data
Abstract
Autoregressive language models are increasingly capable of processing non-text data, such as images or audio. Are language models also a natural choice for numerical data, such as the 3D structure of molecules? In this work, we use quantum chemistry simulations as a case study in the challenges of applying language models to numerical data, building up a set of simple subproblems that can shed light on key design decisions. We show that language models lag behind domain-specific models on prediction tasks and provide evidence for and against different hypotheses that explain their failure. Many commonly identified pitfalls such as difficulty performing arithmetic operations and choice of discrete vocabulary fall short of explaining the behavior. In contrast, we show that capturing invariance properties exhibits a strong correlation with predictive performance. Finally, we provide a comparison of language models trained from scratch on numerical data with models pretrained on text. We show that text pretraining often provides a surprisingly limited advantage on prediction tasks, and can even hurt performance, despite prior work showing that text-pretraining can offer advantages.
BibTeX
@misc{gruver2025promises,
author = {Nate Gruver and Marc Anton Finzi and Dylan Sam and J Zico Kolter and Ben Athiwaratkun and Andrew Gordon Wilson},
title = {{The Promises and Pitfalls of Language Models for Structured Numerical Data}},
year = {2025},
url = {https://openreview.net/forum?id=SZpygmv3G1},
howpublished = {OpenReview},
note = {Submitted to ICLR 2025},
}Ask Althea to put this paper to the test.