EditFlowSR: Revisable Expression Generation for Symbolic Regression
Abstract
Symbolic regression (SR) aims to discover mathematical expressions from data. Existing methods based on evolutionary search or autoregressive decoding leave structural refinement to indirect fitness selection or regeneration. We propose EditFlowSR, a pretraining framework that reframes symbolic regression as constructing expressions through iterative edits to an evolving symbolic sequence. We use dual-trajectory supervision to train this editing process jointly for equation discovery and structural refinement. One trajectory recovers expressions from random sequences conditioned on observed data, while the other transforms structurally redundant expressions into equivalent compact forms. Both trajectories use a shared editor and are optimized under a unified objective. Across the standard SRBench, EditFlowSR reaches the first Pareto front in predictive accuracy, expression complexity, and inference time. These results establish edit-based generation as a principled and effective paradigm for end-to-end symbolic regression. Code is available at https://github.com/SCUT-EIPI/EditFlowSR.