arXiv:2610.10807cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10807

Symbolic Density Estimators for Unnormalized Distributions

Vikas Kanaujia, Riyansha Singh, Shashank Sharma, Vipul Arora

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

Vikas Kanaujia

Department of Electrical Engineering

IIT Kanpur

kvikas@iitk.ac.in

Riyansha Singh

Department of Computer Science and Engineering

IIT Kanpur

riyansha@cse.iitk.ac.in

Shashank Sharma

Department of Physics

IIT Kanpur

ssharma23@iitk.ac.in

Vipul Arora

Department of Electrical Engineering

KU Leuven

vipul.arora@kuleuven.be

Reviewed on OpenReview: https://openreview.net/forum?id=3VRaDoUX3g

Abstract

Estimating the symbolic or analytical form of probability density functions (PDFs) from observed samples is a fundamental challenge in statistical and computational modelling. This process is critical for deriving interpretable and generalizable relationships characterizing the underlying phenomenon. Traditionally, this estimation depends strongly on domain expertise and prior field-specific knowledge, with experts selecting appropriate functional forms or parametric families based on empirical evidence and theoretical understanding. The coefficients of these forms are then typically determined through parameter estimation. In this paper, we develop a framework for estimating symbolic expressions of unnormalized distributions from observed samples using domain-specific prior knowledge, such as the range of interactions and a predefined set of primitive functions. We integrate deep generative models with symbolic regression (SR), incorporating inductive biases, such as factorizing large distributions, to keep the problem tractable. The deep generative models we examine include likelihood-based models, viz., flow models, and score-based models. Experiments show the effectiveness of the proposed framework for estimating density functions for multivariate toy distributions as well as lattices from computational physics, namely, XY model and ϕ4\phi^{4} theory. When applied to the renormalization problem in ϕ4\phi^{4} theory, the proposed framework estimates compact symbolic approximations of the hamiltonian function at different scales directly from samples, yielding expressions that may be challenging to derive using traditional perturbative or analytic approaches in nonperturbative settings.

1 Introduction

In the physical sciences, understanding complex phenomena fundamentally depends on modelling the underlying system dynamics. The probability distributions that characterize these dynamics, as Hamiltonian or energy in a Boltzmann distribution, are traditionally formulated by domain experts, often in an analytical form with a set of parameters. These parameters can be estimated from the data using regression or data-fitting techniques (Shanahan et al., 2018). While effective, this process is labor-intensive and is heavily reliant on expert intuition. Consequently, the problem of automatically inferring an analytical or symbolic representation of a probability density function directly from observed data presents a significant challenge (Tohme et al., 2024). Addressing this problem lies at the intersection of machine learning and physics, offering the potential to automate model discovery and to enhance our understanding of complex physical systems. This problem is analogous to the system identification problem, widely studied in mechanical and control systems (Sahoo et al., 2018), where the system dynamics is modeled in differential form (using differential equations) instead of an integral form (using Hamiltonian formulation).

Boltzmann distributions are abundantly used in physical sciences (Akhound-Sadegh et al., 2024; Midgley et al., 2023; Hasenfratz & Niedermayer, 1994). They have the form p(x)∝exp⁡(−H(x))p(\mathbf{x}) \propto \exp(-H(\mathbf{x})), where H(x)H(\mathbf{x}) is a scalar denoting energy of the system in state x\mathbf{x}. Popular deep generative approaches to model these distributions include likelihood-based approaches, such as normalizing flows (Dinh et al., 2017) and autoregressive models (Uria et al., 2016; Van Den Oord et al., 2016), and energy-based approaches, such as score matching (Hyvärinen, 2005; Song & Ermon, 2019). These methods are able to generate samples from the target distribution while also providing information about the model likelihood i.e., log likelihood in case of likelihood based approaches and the gradient thereof in case of score matching approaches. However, these models are black box estimators. On the other hand, Symbolic regression (SR) methods are used to estimate the equations of the input-output relations in a supervised way. Popular approaches for SR include genetic algorithms (Schmidt & Lipson, 2009; La Cava et al., 2016; Pal & Wang, 2017; La Cava et al., 2019; Cranmer, 2023), symbolic neural networks (Martius & Lampert, 2017; Sahoo et al., 2018; Kim et al., 2021) and large pre-trained networks (Biggio et al., 2021; Kamienny et al., 2022; Vastl et al., 2024), which work well for a small number of variables (typically up to 10). There are a few approaches (Cranmer et al., 2020) to combine SR with deep learning methods, which scale well with the number of variables, to simplify the SR task. While a few approaches (Tohme et al., 2024), attempt to recover expressions for low-dimensional unnormalized distributions, they rely on assuming the distribution's form.

In this paper, we propose a framework to integrate deep generative modelling with SR to estimate the density functions as symbolic expressions. We consider flow-based and score-based models for density estimation, and subsequently use SR methods, including genetic algorithms (Cranmer, 2023) and EQL-based approaches (Kim et al., 2021), to estimate the symbolic density function while incorporating task-specific inductive biases. The effectiveness of SR methods deteriorates notably with an increase in the number of variables or the dimensionality of the data, often leading to inaccurately estimated expressions (Cranmer et al., 2020; Biggio et al., 2021). For this, we employ a density factorization approach that leverages local dependencies within the distribution. This strategy effectively reduces the number of variables, thereby enabling more efficient and accurate expression estimation. Deep generative models sample from high density regions of p(x)p(x), but effective SR needs samples from both high and low density regions; therefore, we introduce noisy perturbation of samples.

We apply this framework to general density functions, such as multi-variate Gaussian and many-well distributions, as well as to problems in computational Physics, such as XY model (Kosterlitz & Thouless, 1973) and scalar ϕ4\phi^{4} theory (Singha et al., 2023; Albergo et al., 2019), and estimate the energy functions, H(x)H(\mathbf{x}). We also estimate the effective Hamiltonian arising from the renormalization of the strongly coupled ϕ4\phi^{4} theory, for which an analytical derivation is challenging in the non-perturbative setting. These experiments highlight the broader applicability of the proposed framework.

We emphasize that the primary contribution of this work is not the development of a new symbolic regression (SR) algorithm. Instead, we propose a framework that integrates deep generative modeling with symbolic regression to estimate interpretable energy functions or Hamiltonians from samples of unnormalized distributions, incorporating physically motivated inductive biases. The central idea is to convert an unsupervised density estimation problem into a supervised symbolic regression problem by leveraging quantities obtained from learned flow-based and score-based models, such as log-likelihoods and score fields. Standard SR methods can then be directly applied as modular components to obtain analytical approximations of the underlying energy landscape.

Within this framework, we introduce three key components that improve symbolic estimation in practice. First, we employ a local factorization of the Hamiltonian, exploiting spatial locality in many-body sys-

Figure

(A)

(B)

(C)

Figure 1: Block diagram of the proposed framework. (A) Flow-based estimation. (B) Score-based estimation. (C) Integration-free score-based estimation.

tems to reduce the effective dimensionality of the symbolic search space and enable scalable estimation in high-dimensional settings. Second, we incorporate task-specific inductive biases through the choice of SR primitives and structural constraints, which encode prior knowledge about the underlying physical system. Third, we introduce a multi-scale perturbation strategy that augments samples from high-density regions produced by generative models with controlled noise, thereby improving coverage of low-density regions that are critical for stable symbolic estimation.

Overall, the proposed framework is complementary to existing advances in symbolic regression and symbolic distillation, and is designed to be compatible with a wide range of SR backends, including genetic-programming-based methods such as PySR and neural symbolic approaches such as EQL.

References (74)