hep-thMar 11, 2026

Learning to Unscramble: Simplifying Symbolic Expressions via Self-Supervised Oracle Trajectories

Authors: David Shih

Organizations: NHETC, Dept. of Physics and Astronomy, Rutgers University, Piscataway, NJ 08854, USA

Abstract

We present a new self-supervised machine learning approach for symbolic simplification of complex mathematical expressions. Training data is generated by scrambling simple expressions and recording the inverse operations, creating oracle trajectories that provide both goal states and explicit paths to reach them. A permutation-equivariant, transformer-based policy network is then trained on this data step-wise to predict the oracle action given the input expression. We demonstrate this approach on two problems in high-energy physics: dilogarithm reduction and spinor-helicity scattering amplitude simplification. In both cases, our trained policy network achieves near perfect solve rates across a wide range of difficulty levels, substantially outperforming prior approaches based on reinforcement learning and end-to-end regression. When combined with contrastive grouping and beam search, our model achieves a 100% full simplification rate on a representative selection of 5-point gluon tree-level amplitudes in Yang-Mills theory, including expressions with over 200 initial terms.

Figures & tables

Explore similar work

CardsList
  1. Machine learning modularity

    Jan 5, 2026Yi Fan, Vishnu Jejjala, Yang LeiSymbolic Reasoning

  2. Learning to Unscramble Feynman Loop Integrals with SAILIR

    Apr 6, 2026David ShihScientific MLMemory-Efficient Inference

  3. Learning the S-matrix from data: Rediscovering gravity from gauge theory via symbolic regression

    Feb 16, 2026Nathan MoynihanHigh-Energy PhysicsSymbolic Regression