SNIP: Bridging Mathematical Symbolic and Numeric Realms with Unified Pre-training
Kazem Meidani, Parshin Shojaee, Chandan K. Reddy, Amir Barati Farimani
TL;DR
SNIP introduces Symbolic-Numeric Integrated Pre-training with dual Transformer encoders for symbolic and numeric data, trained via a symmetric contrastive objective to align cross-modal embeddings expressed as $\bm{Z}_S$ and $\bm{Z}_V$. Pre-training on about $60$ million synthetic paired examples enables cross-modal property prediction and symbolic regression by leveraging a latent space that encodes both symbolic structure and numeric behavior. The approach yields strong performance in low-data regimes, interpretable latent spaces, and a generative latent space that supports latent-space optimization for symbolic discovery on SRBench. This work provides a scalable foundation for bridging symbolic mathematics with numeric observations, enabling cross-modal reasoning and efficient symbolic regression through pre-trained shared representations.
Abstract
In an era where symbolic mathematical equations are indispensable for modeling complex natural phenomena, scientific inquiry often involves collecting observations and translating them into mathematical expressions. Recently, deep learning has emerged as a powerful tool for extracting insights from data. However, existing models typically specialize in either numeric or symbolic domains, and are usually trained in a supervised manner tailored to specific tasks. This approach neglects the substantial benefits that could arise from a task-agnostic multi-modal understanding between symbolic equations and their numeric counterparts. To bridge the gap, we introduce SNIP, a Symbolic-Numeric Integrated Pre-training model, which employs contrastive learning between symbolic and numeric domains, enhancing their mutual similarities in the embeddings. By performing latent space analysis, we observe that SNIP provides cross-domain insights into the representations, revealing that symbolic supervision enhances the embeddings of numeric data and vice versa. We evaluate SNIP across diverse tasks, including symbolic-to-numeric mathematical property prediction and numeric-to-symbolic equation discovery, commonly known as symbolic regression. Results show that SNIP effectively transfers to various tasks, consistently outperforming fully supervised baselines and competing strongly with established task-specific methods, especially in the low data regime scenarios where available data is limited. Code and model are available at: https://github.com/deep-symbolic-mathematics/Multimodal-Math-Pretraining
