cs.NESep 25, 2026

SNIP++: Fine-Grained Symbolic-Numerical Alignment for Symbolic Regression

Authors: Benjamin Léger, Shubham Gupta, Samy Mammeri, Kazem Meidani, Cem Subakan, Christian Gagné

Organizations: Université Laval · Mila · Department of Mechanical Engineering, Carnegie Mellon University · Canada CIFAR AI Chair

Abstract

Mathematical expressions and the numerical behavior they produce are two views of the same underlying function, and connecting them is central to scientific discovery. Symbolic Regression (SR) relies on this connection directly: it searches for an expression that reproduces a given behavior. Recent multi-modal models learn this connection by embedding symbolic expressions and their numerical behavior in a shared representation space. We show that this embedding space is only globally aligned: complete expressions correspond to complete behaviors, but the contribution of individual parts of an expression is not represented. This granularity gap leaves the model unable to tell how a local edit to an expression changes its behavior, the central operation in SR. We introduce a compositional alignment method that closes this gap: a structural positional encoding exposes the substructure of an expression to the encoder, and a multi-granularity contrastive objective grounds each subexpression in the behavior it produces before propagating this grounding to the full expression. The resulting representations close much of the modality gap between symbolic and numerical embeddings, reliably distinguish the effects of local edits that the original alignment cannot, and transfer to external SR corpora.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Multi-Modal Learning meets Genetic Programming: Analyzing Alignment in Latent Space Optimization

    Apr 9, 2026Benjamin Léger, Kazem Meidani, Christian GagnéLatent Space OptimizationSymbolic Regression

  2. Improving Neural Symbolic Regression with a Diverse Prior and Post-training Alignment

    Oct 13, 2026David Otte, Jörg K. H. Franke, Frank HutterSymbolic RegressionSynthetic Data Pretraining

  3. Symbolic Regression via Latent Iterative Refinement

    May 26, 2026Xieting Chu, Sriram Vishwanath, Vijay GaneshLatent Variable ModelsAmortized Inference