UniSymNet: A Unified Symbolic Network Guided by Transformer
Xinxin Li, Juan Zhang, Da Li, Xingyu Liu, Jin Xu, Junping Yin
TL;DR
This paper tackles the challenge of interpretable and scalable Symbolic Regression by introducing UniSymNet, a Unified Symbolic Network that rewrites nonlinear binary operators using nested unary operators via $\ln$ and $\exp$, enabling multivariate interactions with reduced depth and node count. A Transformer-based framework with a novel label-encoding guides structure discovery, while objective-specific optimization (including Gumbel-Softmax sampling, risk-seeking policy gradients, and BFGS) tunes both structure and parameters. The method demonstrates strong fitting accuracy, high symbolic-solution rates, and favorable expression complexity on low-dimensional Standard Benchmarks and high-dimensional SRBench, with ablations showing the value of structure encoding, pruning, and optimization choices. The work advances interpretability and extrapolation in SR, offering a scalable approach that blends learned structure with principled optimization to discover compact, accurate mathematical expressions across diverse domains.
Abstract
Symbolic Regression (SR) is a powerful technique for automatically discovering mathematical expressions from input data. Mainstream SR algorithms search for the optimal symbolic tree in a vast function space, but the increasing complexity of the tree structure limits their performance. Inspired by neural networks, symbolic networks have emerged as a promising new paradigm. However, most existing symbolic networks still face certain challenges: binary nonlinear operators $\{\times, ÷\}$ cannot be naturally extended to multivariate operators, and training with fixed architecture often leads to higher complexity and overfitting. In this work, we propose a Unified Symbolic Network that unifies nonlinear binary operators into nested unary operators and define the conditions under which UniSymNet can reduce complexity. Moreover, we pre-train a Transformer model with a novel label encoding method to guide structural selection, and adopt objective-specific optimization strategies to learn the parameters of the symbolic network. UniSymNet shows high fitting accuracy, excellent symbolic solution rate, and relatively low expression complexity, achieving competitive performance on low-dimensional Standard Benchmarks and high-dimensional SRBench.
