\documentclass[submission, Phys]{SciPost} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath,latexsym,graphicx} \usepackage[bitstream-charter]{mathdesign} \usepackage[dvipsnames]{xcolor} \usepackage{anyfontsize,authblk} \hypersetup{ colorlinks=true, urlcolor={blue!50!black}, citecolor={blue!50!black}, filecolor={blue!50!black}, linkcolor={blue!50!black} } \title{ On the topology of solutions to random continuous constraint satisfaction problems } \author{Jaron Kent-Dobias\footnote{\url{jaron.kent-dobias@roma1.infn.it}}} \affil{Istituto Nazionale di Fisica Nucleare, Sezione di Roma I, Italy} \begin{document} \maketitle \begin{abstract} We consider the set of solutions to $M$ random polynomial equations with independent Gaussian coefficients on the $(N-1)$-sphere. When solutions exist, they form a manifold. We compute the average Euler characteristic of this manifold in the limit of large $N$, and find different behavior depending on the ratio $\alpha=M/N$. When $\alpha<\alpha_\text{onset}$, the average characteristic is 2 and there is a single connected component, while for $\alpha_\text{onset}<\alpha<\alpha_\text{shatter}$ a large connected component coexists with many disconnected components. When $\alpha>\alpha_\text{shatter}$ the large connected component vanishes, and the entire manifold vanishes for $\alpha>\alpha_\text{\textsc{sat}}$. In the limit $\alpha\to0$ there is a correspondence between this problem and the topology of constant-energy level sets in the spherical spin glasses. We conjecture that the energy $E_\text{shatter}$ associated with the vanishing of the large connected component corresponds to the asymptotic limit of gradient descent from a random initial condition. \end{abstract} \tableofcontents \section{Introduction} Constraint satisfaction problems seek configurations that simultaneously satisfy a set of equations, and form a basis for thinking about problems as diverse as neural networks \cite{Mezard_2009_Constraint}, granular materials \cite{Franz_2017_Universality}, ecosystems \cite{Altieri_2019_Constraint}, and confluent tissues \cite{Urbani_2023_A}. All but the last of these examples deal with sets of inequalities, while the last considers a set of equality constraints. Inequality constraints are familiar in situations like zero-cost solutions in neural networks with ReLu activations and stable equilibrium in the forces between physical objects. Equality constraints naturally appear in the zero-gradient solutions to overparameterized smooth neural networks and in vertex models of tissues. In such problems, there is great interest in characterizing structure in the set of solutions, which can be influential in how algorithms behave when trying to solve them \cite{Baldassi_2016_Unreasonable, Baldassi_2019_Properties, Beneventano_2023_On}. Here, we show how \emph{topological} information about the set of solutions can be calculated in a simple model of satisfying random nonlinear equalities. This allows us to reason about the connectivity of this solution set. The topological properties revealed by this calculation yield surprising results for the well-studied spherical spin glasses, where a topological transition thought to occur at a threshold energy $E_\text{th}$ where marginal minima are dominant is shown to occur at a different energy $E_\text{shatter}$. We conjecture that this difference resolves an outstanding problem in gradient descent dynamics in these systems. We consider the problem of finding configurations $\mathbf x\in\mathbb R^N$ lying on the $(N-1)$-sphere $\|\mathbf x\|^2=N$ that simultaneously satisfy $M$ nonlinear constraints $V_k(\mathbf x)=V_0$ for $1\leq k\leq M$ and some constant $V_0\in\mathbb R$. The nonlinear constraints are taken to be centered Gaussian random functions with covariance \begin{equation} \label{eq:covariance} \overline{V_i(\mathbf x)V_j(\mathbf x')} =\delta_{ij}f\left(\frac{\mathbf x\cdot\mathbf x'}N\right) \end{equation} for some choice of function $f$. When the covariance function $f$ is polynomial, the $V_k$ are also polynomial, with a term of degree $p$ in $f$ corresponding to all possible terms of degree $p$ in $V_k$. In particular, taking \begin{equation} V_k(\mathbf x) =\sum_{p=0}^\infty\frac1{p!}\sqrt{\frac{f^{(p)}(0)}{N^p}} \sum_{i_1\cdots i_p}^NJ^{(k,p)}_{i_1\cdots i_p}x_{i_1}\cdots x_{i_p} \end{equation} with the elements of the tensors $J^{(k,p)}$ as independently distributed unit normal random variables satisfies \eqref{eq:covariance}. The size of the series coefficients of $f$ therefore control the variances in the coefficients of random polynomial constraints. When $M=1$, this problem corresponds to the level set of a spherical spin glass with energy density $E=\sqrt{N}V_0$. This problem or small variations thereof have attracted attention recently for their resemblance to encryption, optimization, and vertex models of confluent tissues \cite{Fyodorov_2019_A, Fyodorov_2020_Counting, Fyodorov_2022_Optimization, Urbani_2023_A, Kamali_2023_Dynamical, Kamali_2023_Stochastic, Urbani_2024_Statistical, Montanari_2023_Solving, Montanari_2024_On, Kent-Dobias_2024_Conditioning, Kent-Dobias_2024_Algorithm-independent}. In each of these cases, the authors studied properties of the cost function \begin{equation} \label{eq:cost} \mathcal C(\mathbf x)=\frac12\sum_{k=1}^MV_k(\mathbf x)^2 \end{equation} which achieves zero only for configurations that satisfy all the constraints. Here we dispense with the cost function and study the set of solutions directly. This set can be written as \begin{equation} \Omega=\big\{\mathbf x\in\mathbb R^N\mid \|\mathbf x\|^2=N,V_k(\mathbf x)=V_0 \;\forall\;k=1,\ldots,M\big\} \end{equation} Because the constraints are all smooth functions, $\Omega$ is almost always a manifold without singular points.\footnote{The conditions for a singular point are that $0=\frac\partial{\partial\mathbf x}V_k(\mathbf x)$ for all $k$. This is equivalent to asking that the constraints $V_k$ all have a stationary point at the same place. When the $V_k$ are independent and random, this is vanishingly unlikely, requiring $NM+1$ independent equations to be simultaneously satisfied. This means that different connected components of the set of solutions do not intersect, nor are there self-intersections, without extraordinary fine-tuning.} We study the topology of the manifold $\Omega$ by two related means: its average Euler characteristic, and the average number of stationary points of a linear height function restricted to the manifold. These measures tell us complementary pieces of information, respectively the alternating sum and direct sum of the Betti numbers of $\Omega$. We find that for the varied cases we study, these two always coincide at the largest exponential order in $N$, putting strong constraints on the resulting topology and geometry. \section{Results} \subsection{Topology of solutions to many equations and the satisfiability transition} \begin{figure} \includegraphics[width=0.245\textwidth]{figs/connected.pdf} \includegraphics[width=0.245\textwidth]{figs/coexist.pdf} \includegraphics[width=0.245\textwidth]{figs/shattered.pdf} \includegraphics[width=0.245\textwidth]{figs/gone.pdf} \includegraphics{figs/bar.pdf} \caption{ Cartoon of the topology of the solution manifold implied by our calculation. The arrow shows the vector $\mathbf x_0$ defining the height function. For $V_0 q_1 \end{cases} \] \[ 0=\hat\omega_1r_d-\omega_1d_d \qquad \omega_1=\hat\omega_1\frac{r_d}{d_d} \] \[ \log\chi =-\hat\omega_1 E +\frac12\hat\omega_1^2r_d^2/d_df'(1) +\frac12\int_0^1dq\,\left[ \hat\omega_1^2f''(q)\chi(q) +\frac1{\chi(q)+r_d^2/d_d} \right] -\frac12\log r_d^2 \] \[ 0=-\frac{\hat\omega_1^2f'(1)}{d_d}+\int_0^1dq\,\frac1{(r_d^2/d_d+\chi(q))^2} \] \[ d_d=-\frac{1+r_d}{\int dq\,\chi(q)}r_d \] \paragraph{Acknowledgements} The authors thank Pierfrancesco Urbani for helpful conversations on these topics. \paragraph{Funding information} JK-D is supported by a \textsc{DynSysMath} Specific Initiative of the INFN. \appendix \section{Calculation of the prefactor of the average Euler characteristic} \label{sec:prefactor} \section{The quenched shattering energy in {\oldstylenums 1}\textsc{frsb} models} \label{sec:1frsb} \bibliography{topology} \end{document}