Abstract
Predicting properties from coordinate-category data -- sets of vectors paired with categorical information -- is fundamental to computational science. In materials science, this challenge manifests as predicting properties like formation energies or elastic moduli from crystal structures comprising atomic positions (vectors) and element types (categorical information). While large language models (LLMs) have increasingly been applied to such tasks, with researchers encoding structural data as text, optimal strategies for achieving reliable predictions remain elusive. Here, we report fundamental limitations in LLM's ability to learn from coordinate information in coordinate-category data. Through systematic experiments using synthetic datasets with tunable coordinate and category contributions, combined with a comprehensive benchmarking framework (MatText) spanning multiple representations and model scales, we find that LLMs consistently fail to capture coordinate information while excelling at category patterns. This geometric blindness persists regardless of model size (up to 70B parameters), dataset scale (up to 2M structures), or text representation strategy. Our findings suggest immediate practical implications: for materials property prediction tasks dominated by structural effects, specialized geometric architectures consistently outperform LLMs by significant margins, as evidenced by a clear "GNN-LM wall" in performance benchmarks. Based on our analysis, we provide concrete guidelines for architecture selection in scientific machine learning, while highlighting the critical importance of understanding model inductive biases when tackling scientific prediction problems.
Introduction
The application of Large Language Models (LLMs) to scientific domains has sparked significant interest, particularly in materials science where crystal structures are treated as text sequences. However, a critical question remains: do LLMs truly "understand" the 3D physics of these structures, or are they merely performing sophisticated pattern matching on chemical formulas? This research identifies a fundamental "geometric blindness" in LLMs. Despite their success in recognizing chemical compositions, LLMs struggle to integrate 3D atomic coordinates, leading to a performance ceiling known as the "GNN-LM wall."
Methodology
To investigate this phenomenon, we employed a multi-pronged experimental approach centered on the interaction between coordinate and categorical data.
Synthetic "Tunable" Datasets
We created physics-inspired potential functions where the target property is a weighted mixture of composition (categorical) and geometry (coordinate). By adjusting a parameter ($\alpha$), we generated datasets ranging from purely composition-dependent to purely geometry-dependent.
The MatText Framework
We developed the MatText framework to systematically convert crystal structures into nine different text representations, such as CIF, SLICES, and Z-matrix. This allowed us to determine if the specific method of describing geometry to an LLM could mitigate geometric blindness.
Metrics and Scaling
We introduced the Coordinate-Category Cliff (CC-Cliff) to quantify the performance gap. A high CC-Cliff indicates a model that performs well on composition but fails when spatial coordinates are required. Our analysis spanned models from small BERT variants to Llama-2 70B, with training data scaled up to 2 million structures.
Key Results and Insights
The Geometric Blindness of LLMs
Our findings confirm that LLMs are effectively "blind" to 3D geometry. Attention analysis revealed that models focus heavily on element symbols (e.g., "Li", "Fe") while largely ignoring the numerical tokens representing coordinates. Consequently, LLM behavior on these tasks almost perfectly mirrors simple $n$-gram models, suggesting a reliance on "token counting" rather than a deep understanding of physical space.
The Coordinate-Category Cliff
All tested LLMs exhibited a positive CC-Cliff. As the task dependency shifted from categorical patterns to coordinate information, model error increased significantly across all tested datasets.
The "GNN-LM Wall"
On standard materials science benchmarks (MatBench), specialized geometric architectures like Graph Neural Networks (GNNs) consistently outperformed LLMs by significant margins on structure-dependent tasks. Interestingly, adding more structural detail to the text (e.g., using a full CIF file instead of just a chemical formula) often resulted in stagnant or even worse performance, as the extra "noise" of coordinates confused the models.
Discussion and Practical Implications
The results suggest that scaling model parameters or dataset size is not a panacea for geometric blindness. The current "text-only" paradigm for scientific LLMs is fundamentally limited by its inability to natively process continuous 3D data.
Based on our analysis, we offer the following guidelines for architecture selection:
- Composition-Dominated Tasks: LLMs are highly effective for problems where chemical composition is the primary driver of the property.
- Structure-Dominated Tasks: Specialized geometric models (e.g., GNNs) remain the gold standard for tasks where 3D arrangement is critical.
Future work should explore hybrid architectures that combine the linguistic reasoning of LLMs with the geometric inductive biases of GNNs, alongside new tokenization strategies designed for continuous spatial data.
Summary updated