arXiv:2610.20108cs.LGOct 2026

Manuscript Offprint

arXiv:2610.20108

Exhaustive Canonical Skeletons Generation: A Formal Dataset for Decomposable Symbolic Regression

Giorgio Morales, Anikó Ekárt

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Giorgio Morales and Anikó Ekárt

Aston Centre for Artificial Intelligence Research and Application, Aston University, Birmingham, UK

Abstract—Neural symbolic regression (SR) models require diverse datasets of mathematical expressions for robust training. However, existing datasets rely predominantly on stochastic sampling methods, which suffer from high structural redundancy and incomplete functional coverage. To address this, we introduce an exhaustive dataset of univariate canonical skeletons generated via a deterministic constrained context-free grammar. A canonical skeleton acts as a generic structural representation that subsumes more specific functional forms, eliminating redundant expressions and avoiding repeated computational efforts. Although our dataset consists of univariate skeletons, it is designed to support the decomposable SR paradigm to solve multivariate SR problems without assuming linear separability. Furthermore, we pair this dataset with a sampling strategy that generates clean numerical data without triggering numerical instabilities or relying on artificial protected operators. Canonicalizing two existing neural SR datasets reveals that our dataset is substantially more compact, eliminates structural repetitions, and achieves a uniform operator distribution free of simplicity bias. Finally, we establish a benchmark of 150 SR problems across three tiers, on which state-of-the-art SR methods are shown to struggle significantly. 1^{1}

Index Terms—Neural symbolic regression; Symbolic skeletons; Explainable artificial intelligence.

I. INTRODUCTION

Symbolic regression (SR) aims to uncover explicit, human-interpretable mathematical expressions that describe underlying patterns in numerical data. In recent years, neural SR models (i.e., deep generative models and Transformers) [1]–[4] have made significant advances by framing equation discovery as a sequence-to-sequence translation task. However, the generalization capability of neural SR models is tied to the quality, diversity, and structural validity of their training datasets.

To construct these datasets, existing approaches rely on stochastic tree sampling, templates, or heuristics [1]–[3], [5]–[7] (see Supplementary Materials (S.M.) A for a review). While these methods allow the generation of large datasets, they remain probabilistic explorations of an exponentially growing search space. Thus, they suffer from severe structural redundancy: distinct derivation paths frequently collapse into functionally identical expressions after simplification (e.g., x⋅1x \cdot 1 vs. x+0x + 0), over-exposing models to a narrow subset of simple forms. Even when constrained by templates [2], sampling weights [6], or probabilistic grammars [7], these pipelines rely on arbitrary heuristics and fail to guarantee exhaustive and non-redundant coverage of valid functional structures.

To overcome these limitations, our first contribution is an Exhaustive dataset of Canonical Univariate Skeletons (ExCaUS), coupled with a principled sampling strategy. A symbolic skeleton replaces specific numeric parameters with constant placeholders. We extend this concept by defining a canonical skeleton as a generic structural representation that subsumes more specific instantiated representations. By formalizing explicit closure rules, canonical skeletons eliminate functional collisions and prevent repeated generation efforts.

While our dataset consists of univariate skeletons, its utility is not restricted to univariate SR problems. Instead, it is designed to serve as the foundation for training SR models under a decomposable SR paradigm [4]. As detailed in Sec. II, complex multivariate systems can be solved by first identifying the isolated functional relationship between individual variables and the system's response in the form of univariate skeletons. These skeletons are then merged into multivariate expressions through progressive structural composition.

To construct our dataset, we establish a formal recursive structural decomposition mapped directly to a Context-Free Grammar (CFG). Unlike stochastic generation methods, our grammar-based approach provides a deterministic framework for exhaustive enumeration. Furthermore, we pair this dataset with a robust data sampling strategy designed to generate clean numerical data without triggering numerical instabilities or relying on protected operators. To validate our approach, we compared our canonical dataset against two existing datasets used by previous neural SR methods, which we canonicalized to ensure a fair evaluation. The comparison reveals that the baseline approaches present severe skewness and redundancy, while our dataset is substantially more compact and entirely free of structural duplicates. Additionally, it displays a more uniform distribution of unary operators, successfully avoiding the common bias toward overly simplistic functional forms.

Our second contribution is a rigorous SR benchmark, ExCaUS-Bench. We generated 150 problems, split into three tiers, to evaluate a suite of SR methods. Exhaustive tuning and testing show that most SR methods struggle significantly to recover the underlying functions in these problems. Unlike standard benchmarks that evaluate models over narrow intervals, our benchmark utilizes extended domain ranges, substantially increasing the difficulty of the regression.