We lifted 4 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| deep-symbolic-mathematics/TPSR | canonical | 3 of 3 |
| facebookresearch/symbolicregression | canonical | 1 of 1 |
| Function | Status | Where it lives |
|---|---|---|
| Embedding | Ran | deep-symbolic-mathematics/TPSR/symbolicregression/model/transformer.py code served (permissive licence) · get_code("a3e27bd1e8b628ed") |
| get_masks | Ran | deep-symbolic-mathematics/TPSR/symbolicregression/model/transformer.py code served (permissive licence) · get_code("b2470f4f0c09db41") |
| read_file | Ran | facebookresearch/symbolicregression/evaluate.py code served (permissive licence) · get_code("40b1a20fe12de364") |
| top_k_top_p_filtering | Ran | deep-symbolic-mathematics/TPSR/symbolicregression/model/transformer.py code served (permissive licence) · get_code("f434565e2011ab22") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Symbolic regression, the task of predicting the mathematical expression of a function from the observation of its values, is a difficult task which usually involves a two-step procedure: predicting the "skeleton" of the expression up to the choice of numerical constants, then fitting the constants by optimizing a non-convex loss function. The dominant approach is genetic programming, which evolves candidates by iterating this subroutine a large number of times. Neural networks have recently been tasked to predict the correct skeleton in a single try, but remain much less powerful. In this paper, we challenge this two-step procedure, and task a Transformer to directly predict the full mathematical expression, constants included. One can subsequently refine the predicted constants by feeding them to the non-convex optimizer as an informed initialization. We present ablations to show that this end-to-end approach yields better results, sometimes even without the refinement step. We evaluate our model on problems from the SRBench benchmark and show that our model approaches the performance of state-of-the-art genetic programming with several orders of magnitude faster inference.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2204.10532")
get_code_for_paper("2204.10532")
have("2204.10532")
Connect an agent — have() is free.