Neural Symbolic Regression that Scales
A Set Transformer encoder and Transformer decoder pre-trained to predict equation skeletons from input-output pairs.
1,116 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 26.4M
- Operations
- 1,116
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2021
- Cited by
- 51 (as of 28 October 2026)
- Authors
- Luca Biggio, Tommaso Bendinelli, Alexander Neitz and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18838
- Graph hash
- 2f2190f1f0f5846df51085d98981dbcb053d0eeb69335c489b98751924b397e7
- Skeleton hash
- de9f355923133d5c48c2ecf37f9c29d38ff6448ae98d0294d2ddf56cc3d1e86e
- Architecture hash
- c982b1069443be0fcb0af98ec0c510fd03e1ee77f75bfe2cf5ef3a8f7dbd5110
- Diagram SHA-256
- f0b02dfb16ab196ef9527771b969e85d5db75ac99afefba5f07ef07b7f25f4ca
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
NeSymReS is a Transformer that performs symbolic regression, the task of discovering the underlying equation from a set of input-output pairs. It is pre-trained on procedurally generated equations to predict the symbolic equation from a corresponding set of input-output pairs.
The model is a set-to-sequence network with an encoder and a decoder. The encoder is a Set Transformer, preferred to the standard Transformer encoder because its computation scales as O(nm) and not quadratically in the number n of input-output pairs. The number of learnable inducing points is kept constant at m = 50. The decoder is a regular Transformer decoder, and the paper reports 11 and 13 million parameters for the encoder and decoder respectively. The decoder generates the skeleton of the equation, in which numerical constants are replaced by placeholders. Encoder and decoder are trained jointly to minimize the cross-entropy loss between the ground truth skeleton and the predicted skeleton.
At test time the points are fed into the encoder, and beam search samples candidate skeletons from the decoder. BFGS then recovers the values of the constants by minimizing the squared loss between the original outputs and the output from the predicted equations. It reports that the performance of NeSymReS steadily improves as the size of the pre-training dataset increases. The released code offers two pretrained models, one trained with 10 million datasets and one with 100 million.
Key idea. The paper pre-trains a Transformer on procedurally generated equations to predict equation skeletons from input-output pairs, then fits the numerical constants at test time.
- nesymres
- neural symbolic regression that scales
- symbolic regression
- equation discovery
- equation skeleton
- large scale pre-training
- set-to-sequence model
- procedurally generated equations
- constant fitting
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{biggio2021neuralsymbolicregressionscales,
title={Neural Symbolic Regression that Scales},
author={Luca Biggio and Tommaso Bendinelli and Alexander Neitz and Aurelien Lucchi and Giambattista Parascandolo},
year={2021},
eprint={2106.06427},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2106.06427},
}