OccamNet
Neural network that samples sparse symbolic expressions and learns which ones fit the data.
142 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
- 326
- Operations
- 142
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2020
- Cited by
- 34 (as of 18 November 2026)
- Authors
- Owen Dugan, Rumen Dangovski, Allan Costa and others
- 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
- m18968
- Graph hash
- add1e8851ec118f42236ebbac6df90be8e2aad1b621269e0d06a29b6e15775c1
- Skeleton hash
- add1e8851ec118f42236ebbac6df90be8e2aad1b621269e0d06a29b6e15775c1
- Architecture hash
- 447d22284d3d6ea8d9a91466a3b1ff6106d31548d2014c672926b6bbe0205ce9
- Diagram SHA-256
- 1efc49ff003af83fe28edbfb59bac18a204773621abdb2999bd0fae4ae9902d1
- 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
OccamNet is a neural network for symbolic regression: instead of a black-box fit, it searches for a compact symbolic expression that describes the data. The paper sets this against complex neural networks, which it says often extrapolate poorly beyond the domain of the training dataset.
The network resembles a stack of fully connected layers with two changes: each neuron holds a learned probability distribution over the neurons of the preceding layer in place of linear weights, and the non-linearities are symbolic expressions. Selecting one incoming edge per node through temperature-controlled softmax layers yields a sparse directed acyclic graph that specifies a single function. Training samples functions and shifts probability toward the ones that fit better. Because sampling avoids backpropagating through the activation functions, the primitives can include non-differentiable and fast-growing functions. The layers also use skip connections that concatenate each layer's outputs with those of later layers.
In the paper's experiments on analytic functions, every other compared method scored zero on at least one function, while OccamNet had non-zero accuracy on all of them. The paper also states that the method fits complicated functions in minutes on a single CPU.
Key idea. OccamNet defines a probability distribution over symbolic functions and trains it by sampling functions and shifting probability toward those that fit the data better.
- OccamNet
- symbolic regression
- interpretable neural network
- equation discovery
- symbolic fits
- Occam's razor
- probability distribution over functions
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{dugan2023occamnetfastneuralmodel,
title={OccamNet: A Fast Neural Model for Symbolic Regression at Scale},
author={Owen Dugan and Rumen Dangovski and Allan Costa and Samuel Kim and Pawan Goyal and Joseph Jacobson and Marin Soljačić},
year={2023},
eprint={2007.10784},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2007.10784},
}