arXiv:2610.32147stat.MLOct 2026

Manuscript Offprint

arXiv:2610.32147

Implicit Neural Representations for Variational Problems on Graphons

Taeyoung Kim, Jineon Baek, Joonkyung Lee, Hongseok Yang

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

Abstract

We propose a neural exploratory framework for variational problems over graphons 1^{1}, i.e., symmetric measurable functions [0,1]2→[0,1][0,1]^{2} \to [0,1], that arise as limits of dense graph sequences. Such problems are central to two parts of the mathematical literature: extremal graph theory, which studies graph parameter optimisation under given restrictions, often for those graphs with a large number of vertices, and the large deviation theory of dense random graphs, which characterises the structure of rare events through constrained graphon optimisation. We represent graphons by implicit neural networks and optimise graphon objectives by gradient descent. Our design combines three ingredients: a multi-scale sinusoidal residual architecture biased toward sharp, step-like graphons; an embedded solver that enforces a single empirical density constraint and is differentiated by implicit differentiation; and symmetry-aware Monte Carlo estimators. On generalised Turán problems that previously required substantial human effort, our framework rediscovers known optimal graphons without human intervention. Applied to open instances, it produces candidate optima, including a previously unreported family of extremal structures. Applied to the variational problems from the large deviation theory of Erdős–Rényi random graphs, the framework produces new candidate optimal graphons across both upper- and lower-tail regimes for multiple pattern graphs; for the case of the triangle graph and the upper-tail regime, these candidates improve upon the best-known reference construction of Lubetzky and Zhao. The structures found by our framework have also led to new theorems on the optimal graphons for both families of problems.

1 Introduction

Machine learning is opening new directions in mathematical discovery. Recent work spans automatic provers and autoformalisation for Olympiad-style or research-level problems [Polu et al., 2023, Trinh et al., 2024, Jiang et al., 2023, Wu et al., 2022, Hubert et al., 2026, Huang and Yang, 2025, Alexeev et al., 2026], neural search for combinatorial constructions [Wagner, 2021, Charton et al., 2024, Romera-Paredes et al., 2024, Novikov et al., 2025], and pattern-driven progress on long-standing conjectures in pure mathematics [Davies et al., 2021, He et al., 2025]. In this paper, we extend this line of research to a class of continuous optimisation problems over graphons, with two motivating problem families drawn from extremal graph theory and the large deviation theory of dense random graphs.

1^{1}A variational problem is an optimisation problem over a function space, in which the objective and constraints are expressed by means of functionals, i.e., mappings from the function space to R\mathbb{R}.

A central object in extremal graph theory is the homomorphism density t(H,G)t(H, G) between finite undirected simple graphs H and G: the probability that a uniformly random map from V(H)V(H) to V(G)V(G) is a graph homomorphism. As a basic example, the constrained optimisation problem

max⁡Gt(K2,G)subjecttot(K3,G)=0∧∣V(G)∣=n(1)\max_{G}t(K_{2},G)\quad subject to\quad t(K_{3},G)=0\land|V(G)|=n \tag{1}

asks for an n-vertex triangle-free graph that maximises the edge density. Here KmK_m denotes the complete graph on m vertices, so K2K_2 and K3K_3 represent an edge and a triangle, respectively. Although the answer is given by the classical theorem of Mantel [Mantel, 1907], a large family of similar problems involving homomorphism densities remains open [Sidorenko, 1993, Borgs et al., 2006].

A standard approach to such problems is to study their asymptotic counterparts, taking n→∞n \to \infty and analysing the limit of the optimum. These asymptotic problems can often be reformulated as continuous optimisation over graphons, i.e., symmetric measurable functions [0,1]2→[0,1][0,1]^{2} \to [0,1], that arise as limit objects of dense graph sequences [Lovász and Szegedy, 2006, Lovász, 2012]. Another source of graphon optimisation problems comes from the large deviation theory of dense random graphs [Chatterjee and Varadhan, 2011], where the limiting structure of an Erdős–Rényi graph conditioned on an unusually large or small homomorphism density is itself characterised by a constrained optimisation over graphons. In both settings, the objective and constraints are integrals against the graphon W (homomorphism densities or pointwise relative entropy), and known or conjectured optima are step-like.

We attack these graphon-optimisation problems directly with deep learning, representing a graphon W as a neural network in the spirit of implicit neural representations [Park et al., 2019, Mescheder et al., 2019, Chen and Zhang, 2019] and minimising the objective by gradient descent on the network parameters. Three recurring challenges shape our design. First, known and conjectured optima are typically step-like, and standard architectures struggle with such targets because of their bias toward smooth functions. We address this with a multi-scale sinusoidal residual architecture that injects sinusoidal encodings of growing frequency into successive layers, biasing the model toward sharp, step-like solutions. Second, the problems often carry a single scalar density constraint (a fixed homomorphism density) that is poorly handled by penalty terms; we embed a numerical solver for an empirical version of the constraint into the forward pass and backpropagate through it via implicit differentiation, as in deep equilibrium models [Bai et al., 2019]. Third, both the objective and the constraints are graphon integrals that must be estimated from samples, including the high-dimensional homomorphism-density integrals; we use symmetry-aware Monte Carlo estimators.

We demonstrate our framework on two families of graphon optimisation problems: (P1) generalised Turán problems from extremal graph theory, minimising a homomorphism density under a fixed edge-density constraint; and (P2) the variational problems from the large deviation theory of dense random graphs [Chatterjee and Varadhan, 2011], minimising a relative-entropy functional under a fixed homomorphism-density constraint. On (P1), our framework rediscovers nontrivial known optima that previously required substantial human effort [Goodman, 1959, Bollobás, 1976, Lovász and Simonovits, 1983, Fisher, 1989, Razborov, 2008], produces candidate minimisers for open instances such as minimisation of C7C_{7}-homomorphism density, and through a systematic sweep over small graphs, uncovers, for a six-vertex graph, a previously unreported family of extremal structures that do not match the complete k-partite pattern of classical examples. Applied to (P2), the framework produces new candidate optimal graphons, in the cases where the optimal structure is not fully understood, for four pattern graphs in the upper-tail regime and K3K_{3} in the lower-tail regime. For K3K_{3}, these candidates consistently improve upon the reference construction of Lubetzky and Zhao [2015] in the upper-tail regime. We view the framework as a flexible exploratory tool that complements rigorous lower-bound techniques such as flag algebras [Razborov, 2007, Falgas-Ravry and Vaughan, 2013]: it produces candidate upper bounds, concrete candidate minimisers, and structural conjectures that can be inspected, refined, or subsequently certified. The structures found by our method have also led to new theorems (§D). For problems of (P1), the balanced complete k-partite graphon minimises the density of every odd cycle at p=1−1/kp = 1 - 1/k for every k≥3k \geq 3, and that of every connected chordal graph whose maximal cliques have a common size r≥3r \geq 3 at p=1−1/kp = 1 - 1/k for every k≥rk \geq r. For problems of (P2), close to the boundary of the region where the constant graphon is optimal, the upper-tail problem for regular graphs has a unique optimal graphon, which is bipodal.

References (80)