[1]\fnmSatoshi \surKanno
[1] \orgdivQuantum Information Technology Department, Quantum Technology Division, Product Research and Development Division, \orgnameSoftBank Corp., \orgaddress \street1-7-1 Kaigan, \cityMinato-ku, \postcode105-7529, \stateTokyo, \countryJapan
Hodge Spectral Surrogates for Topology-Constrained Optimization
Abstract
Topological information is widely used in data analysis, network design, and machine learning, and topological constraints naturally arise when optimizing or generating objects with prescribed homological structure. However, directly controlling Betti numbers and persistent homology is difficult because they are discrete and combinatorial. We propose a differentiable framework for topology-constrained optimization based on Hodge-spectral relaxations of homological constraints and low-pass spectral filters. From soft graphs and soft clique complexes, we construct Hodge-Laplacian-type spectral relaxations that unify graph clique complexes and Vietoris–Rips filtrations of point clouds. In the hard limit, the penalty-regularized ambient operator recovers the ordinary Hodge Laplacian on the active subcomplex, while in the soft regime it serves as a differentiable low-frequency spectral surrogate. Homological information is represented by zero and near-zero modes, and differentiable topological objectives are defined using heat filters, resolvent filters, and polynomial Laplacian moments. For point clouds, we show that the proposed Hodge spectral-filter losses yield more spatially distributed gradients, smoother scale-normalized behavior under persistence-pairing changes, and geometry-aware update directions than persistent-homology-based losses. For graph clique complexes, Laplacian moments control normalized first-Betti-type quantities and can be combined with ordinary graph-feature objectives. We also discuss connections to trace-based normalized Betti-number estimation, polynomial spectral methods, and possible quantum trace estimation.
keywords:
Applied and computational topology, Topological data analysis, Hodge Laplacian, Spectral filters, Topology-constrained optimization1 Introduction
Understanding the shape of data is a fundamental problem in applied mathematics, data analysis, network science, and machine learning. In particular, the interaction between topology and artificial intelligence has become an important theme in applied and computational topology. Data such as point clouds, images, graphs, and time series often contain not only local metric information but also global structural information, including connected components, holes, loops, and higher-order relations. Homological invariants, such as Betti numbers and persistent homology ([edelsbrunner2002topological, zomorodian2004computing, cohen2005stability, edelsbrunner2008persistent, otter2017roadmap]), provide mathematical tools for describing such global structures and have been widely used as topological descriptors and features in artificial-intelligence and machine-learning pipelines (see [adams2017persistence, hofer2017deep, bubenik2020persistence, chazal2014stochastic, kalivsnik2019tropical]). Such topological features can improve representations or regularization when the underlying data distribution has nontrivial geometric or topological structure.
Topology is also important not only as a descriptor but also as a quantity to be controlled in optimization through loss functions or regularizers (see [moor2020topological, vandaele2021topologically, gabrielsson2020topology]). In many applications, one would like the output of a model or an optimization procedure to satisfy prescribed topological constraints. For example, in image segmentation, controlling the topology of predicted regions can reduce spurious connected components or undesired holes(see [clough2020topological, hu2019topology]). In graph and network design, the Betti numbers of clique complexes describe higher-order connectivity, redundancy, and cyclic structure, which are related to robustness and alternative pathways in networks. Thus, differentiable control of persistent homology and Betti numbers is relevant to topology-constrained optimization in a broad applied-mathematical sense. In this prescriptive setting, topology is optimized rather than only observed: the aim is to deform, generate, or regularize an object so that its homological structure satisfies a desired condition.
Persistent homology provides a natural mechanism for such topological control. Since a persistence diagram or barcode records the birth and death of homology classes across a filtration, one can define losses that penalize undesired bars, preserve selected bars, or match a target barcode. These barcode-based losses make it possible to incorporate persistent homology directly into optimization and learning procedures. However, directly controlling topological quantities is difficult because they are inherently discrete and combinatorial. Betti numbers of clique complexes depend on simplex inclusion and ranks of boundary operators. Even when graph edges are relaxed into continuous weights or probabilities, the resulting clique complex and its Betti numbers remain governed by combinatorial conditions.
For persistent homology, differentiable losses based on barcode or persistence-diagram representations have been studied, and such losses are useful when the desired constraint is naturally expressed in terms of persistent features. However, when topology is used as an optimization signal, such losses have several limitations: gradients may tend to be localized on a small number of critical simplices (see [nigmetov2024topological, nigmetov2024topological_2]), persistence-pairing changes may cause abrupt changes in gradient directions, and barcode representations may compress away geometric and spectral information that could provide smoother and more spatially distributed update directions.
We emphasize that our goal is not to replace persistent homology as a descriptor. Persistent homology remains the appropriate object when one wants stable barcode-level summaries of multiscale topology. Our focus is different: we study topology as a differentiable loss or constraint inside an optimization loop. In this setting, a smooth Hodge-spectral surrogate can be useful because it provides gradients through low-frequency spectral structure rather than only through selected birth–death simplices.
In this work, we address these difficulties by representing homology through the zero modes of Hodge Laplacians. For a simplicial complex, the -th Betti number is equal to the dimension of the kernel of the -th Hodge Laplacian. Instead of directly counting zero eigenvalues, we introduce smooth low-pass spectral filters that emphasize zero and near-zero eigenmodes. These filters provide differentiable spectral surrogates for topological information and allow homological information to be used as a continuous optimization signal.
More specifically, we construct Hodge-Laplacian-type spectral relaxations from soft graphs and soft clique complexes. This gives a unified formulation for two standard sources of finite simplicial complexes: graph data and Vietoris–Rips filtrations of point clouds. In the point-cloud setting, soft edge activations are defined from pairwise distances and scale parameters. In the graph setting, edge probabilities induce soft simplex weights and hence soft clique complexes. In both cases, topological losses are defined by applying low-pass spectral filters, such as heat filters, resolvent filters, and polynomial moment filters, to the corresponding Hodge-Laplacian-type spectral relaxations. In the hard limit, the proposed ambient operator recovers the ordinary Hodge Laplacian on the active subcomplex and hence retains the standard homological interpretation. In the soft regime, the same construction should be interpreted as a differentiable low-frequency spectral surrogate for homological structure.
The Laplacian-based formulation also connects naturally with polynomial spectral methods and trace estimation. In particular, trace-type quantities such as
can be interpreted as low-frequency spectral masses and, in the hard ordinary-complex setting, as smooth surrogates for normalized Betti numbers, since zero modes contribute one to the trace while nonzero modes are suppressed by the polynomial filter. This structure is closely related to stochastic trace estimation and polynomial approximations of spectral projectors. It also has a structural connection to quantum trace-estimation approaches for normalized Betti numbers, which often formulate Betti numbers through the null space of combinatorial Laplacians. However, this paper does not implement a quantum algorithm and does not claim quantum advantage. We therefore treat the quantum connection as a possible computational direction rather than as a main contribution (see [lloyd2016quantum, akhalwaya2024comparing, gyurik2022towards, yamauchi2025quantum]).
The contributions of this work are summarized as follows.
-
1.
We construct an ambient Hodge-spectral relaxation for finite simplicial complexes. In the hard limit, the penalty-regularized ambient operator recovers the ordinary Hodge Laplacian on the active subcomplex and hence the corresponding Betti number.
-
2.
We define differentiable topological losses using heat filters, resolvent filters, and polynomial Laplacian moments. These objectives include spectral-filter matching losses and trace-type Betti surrogates.
-
3.
For Vietoris–Rips filtrations of point clouds, we numerically compare the proposed Hodge spectral-filter losses with persistent-homology-based losses and show that they provide more spatially distributed gradients, smoother scale-normalized behavior under persistence-pairing changes, and update directions that better reflect surrounding geometry.
-
4.
For graph clique complexes, we use Laplacian moments to control normalized first-Betti-type quantities and show that the proposed topological loss can be combined with ordinary graph-feature objectives.
-
5.
We discuss computational trade-offs and identify polynomial filtering, Chebyshev approximation, and trace-estimation-based implementations as possible routes toward larger-scale applications.
In summary, this work presents a Hodge-spectral framework for controlling homological constraints in point clouds and graphs. By replacing discrete topological quantities with smooth low-pass spectral surrogates, the proposed method enables topology to be treated not only as a descriptor of data, but also as a controllable object in optimization, network design, machine learning, and future quantum-assisted topological computation.
2 Preliminaries and Problem Setting
In this section, we summarize the topological quantities considered in this work and the difficulties that arise when using them as loss functions. We first introduce the Betti numbers of clique complexes constructed from graphs, and describe why it is difficult to directly use them as loss functions. We then introduce persistent homology for point-cloud data and loss functions based on barcode diagrams. Finally, we discuss three issues of barcode-based loss functions: gradient localization, discontinuity caused by changes in persistence pairings, and loss of geometric and spectral information.
2.1 Clique Complexes and Betti Numbers
We first introduce the Betti numbers of clique complexes as topological quantities for graph data. Let be a graph, where is the set of vertices and is the set of edges. The clique complex of is a simplicial complex obtained by regarding each clique in the graph as a simplex. That is, a subset of vertices
is a -simplex if, for any distinct ,
holds. Equivalently, must form a -clique. Therefore, the clique complex is defined as
Let be the -th chain group of , and let
be the boundary operator. The -th homology group is defined by
The dimension of this homology group, is called the -th Betti number. In particular, represents the number of connected components, while represents the number of independent one-dimensional cycles, namely loops that are not filled by triangles or higher-dimensional simplices.
The Betti numbers of clique complexes capture higher-order connectivity and cyclic structures of graphs. Therefore, controlling the Betti numbers of clique complexes in graph generation or network design is meaningful for controlling redundancy and robustness of graph structures.
2.2 Difficulties in Using Betti Numbers as Loss Functions
Suppose that we want to optimize a graph so that the Betti number of its clique complex approaches a target value. For example, for a target Betti number , one may consider the loss function
This formulation is natural from an intuitive viewpoint. However, it is difficult to optimize this loss function using standard gradient-based methods.
The reason is that the map
is combinatorial and discrete. A small change in the presence or absence of edges can discontinuously change the set of simplices contained in the clique complex. As a result, the ranks of boundary operators and the dimensions of homology groups can also change discontinuously.
2.3 Persistent Homology
Next, we introduce persistent homology[edelsbrunner2002topological, zomorodian2004computing, cohen2005stability, edelsbrunner2008persistent, otter2017roadmap] as a topological quantity for point-cloud data and related data types. Suppose that, from data , we construct a sequence of simplicial complexes
according to a scale parameter. Such a nested sequence of simplicial complexes is called a filtration. For example, for point-cloud data, one can construct a filtration using Vietoris–Rips complexes indexed by a distance scale .
At each scale , the -th homology group is
Persistent homology tracks when homology classes are born and when they die along the filtration. For a homology class , let its birth time be and its death time be . Then the -th persistence diagram is represented as
The persistence of is defined by .
Persistence diagrams and barcode diagrams provide compact summaries of the multiscale topological structure of data. Homology classes with long persistence are often interpreted as reflecting essential structures of the data rather than noise. For this reason, persistent homology is widely used for shape analysis of point clouds, images, time-series data, and related objects.
2.4 Loss Functions Based on Barcode Diagrams
One way to incorporate persistent homology into machine learning is to construct loss functions from barcode diagrams or persistence diagrams. In general, given a target persistence diagram , one may define a loss function for input data as
For example, if the goal is to remove undesired homology classes, let be the set of undesired classes. Then one can use a loss of the form
This loss acts to shorten the lifetimes of undesired homology classes.
On the other hand, if the goal is to preserve specific homology classes, let be the set of classes to be preserved, and let be the target persistence. Then one can consider the loss function
Such barcode-based loss functions can be differentiated through birth and death values. The birth and death of each homology class are determined by certain critical simplices. That is, one can write
where is the simplex that determines the birth, is the simplex that determines the death, and is the function assigning filtration values to simplices.
Then the gradient of the loss function can formally be written as
Thus, in barcode-based loss functions, gradients can be computed through the critical simplices that determine birth and death values.
2.5 Issues of Barcode-Based Loss Functions
This property makes it possible to use persistent homology as a loss function. However, this formulation has the following three important issues.
2.5.1 Gradient Localization
The first issue is that gradients tend to be localized on a small number of critical simplices(see [nigmetov2024topological, nigmetov2024topological_2]).
As described above, in barcode-based loss functions, the birth and death of each homology class are determined by critical simplices and . Therefore, the gradient of the loss mainly flows through
In other words, the actual updates tend to be concentrated on the vertices contained in these critical simplices and their neighborhoods.
However, topological structures are inherently determined by the global configuration of the data. For example, when a point cloud forms a large loop, the birth or death of the loop may be represented by a small number of critical simplices, but geometrically the shape of the entire loop is important. Nevertheless, barcode-based losses concentrate gradients on a small number of simplices and may fail to provide smooth update directions for the entire data set.
Such gradient localization can make optimization unstable and may prevent geometrically natural deformations.
2.5.2 Discontinuity of Gradients Caused by Pairing Changes
The second issue is that gradients can change discontinuously when persistence pairings change due to small perturbations of filtration values.
In persistent homology, each homology class is associated with a birth–death pair of simplices
However, when a small perturbation is added to the input data , the ordering of filtration values of simplices may change. As a result, the persistence pairing may change as
In this case, even if the persistence diagram itself remains stable, the simplices through which gradients flow switch from
Consequently, even if the value of the loss function does not change significantly, the gradient direction may change discontinuously.
This issue is important from the viewpoint of optimization. Gradient-based methods update parameters using local changes of the loss function. If the gradient direction changes discontinuously under small perturbations, stable optimization becomes difficult.
2.5.3 Loss of Geometric and Spectral Information
The third issue is that barcode diagrams are representations specialized for birth–death information of homology classes, and they do not sufficiently preserve surrounding geometric and spectral information.
A persistence diagram is obtained from input data through the map
This representation compactly summarizes the scales at which each homology class is born and dies. However, in this process, much information is compressed, including the geometric locations supporting the homology classes, the surrounding neighborhood structure, and spectral information such as eigenvectors and low-frequency modes of Laplacians.
For example, two homology classes may have the same persistence, but they may be arranged differently in the data space, may have different degrees of geometric smoothness as cycles, or may contain different near-closed structures. Barcode diagrams do not sufficiently distinguish such differences.
Therefore, while barcode-based loss functions are effective for controlling topological summary quantities, they may be insufficient for providing geometrically natural and smooth update directions for the entire data.
2.6 Problem Addressed in This Work
The preceding subsections identify two related but distinct uses of topology in data analysis and optimization. The first is descriptive: one computes Betti numbers, persistent homology, or barcode diagrams of a fixed data set in order to describe its global structure. The second is prescriptive: one seeks to optimize a point cloud, graph, or model output so that its topology satisfies a desired condition. This paper focuses on the second use.
The difficulty is that the topological quantities considered above do not directly provide smooth optimization signals. For clique complexes of graphs, the map
is combinatorial, because the set of simplices and the ranks of the boundary operators can change discontinuously when edges are added or removed. For Vietoris–Rips filtrations, barcode-based losses make persistent homology differentiable through birth and death values, but the resulting gradients may be localized on critical simplices, may change abruptly when persistence pairings switch, and may discard geometric and spectral information that could be useful for optimization.
Our goal is therefore not merely to compute topological summaries, but to construct differentiable objectives that retain a clear relationship with homology while providing smoother and more spatially distributed optimization signals. We use the Hodge-theoretic identity between homology and zero modes of the combinatorial Laplacian as the starting point. For a fixed finite simplicial complex , the kernel of the -th Hodge Laplacian is naturally isomorphic to , and hence .
The main question is how to use this identity when the simplicial complex itself changes with continuous parameters. In the next section, we address this question by embedding changing complexes into a fixed ambient chain space, separating inactive simplex directions by a penalty term, and then replacing hard simplex indicators with soft simplex weights. This leads to a Hodge-Laplacian-type spectral relaxation that recovers the ordinary Hodge-theoretic interpretation in the hard limit and provides differentiable low-frequency spectral quantities in the soft regime.
3 Construction of Hodge-Laplacian-type spectral relaxation
In this section, we introduce ambient Hodge-spectral relaxations as the basic objects for constructing differentiable topological losses for both point-cloud data and graph data. The construction is exact in the hard simplicial-complex limit and is used as a smooth spectral surrogate in the soft regime.
The basic idea of this work is to represent both point-cloud data and graph data as soft graphs and then construct soft clique complexes from them. In graph generation, edge logits are used as optimization variables. In Vietoris–Rips filtrations, edge logits are defined from pairwise distances and a scale parameter. Therefore, both settings can be described by the common sequence
Here, denotes an edge logit, denotes a soft edge activation, denotes a simplex activation, and denotes a penalty-regularized Hodge-Laplacian-type spectral relaxation.
The terminology is important: for hard simplex indicators, the construction recovers an ordinary Hodge Laplacian on the active subcomplex. For soft simplex weights, the same formula should be interpreted as a differentiable Hodge-spectral surrogate rather than as the Hodge Laplacian of an exact chain complex.
For the ordinary Hodge Laplacian, zero modes correspond to homology classes, and the dimension of the kernel of the -th Hodge Laplacian is equal to the -th Betti number. However, when the simplicial complex changes according to input data or model parameters, the dimension and basis of the corresponding chain space may also change. Therefore, it is difficult to directly treat the ordinary Hodge Laplacian as a differentiable object on a fixed vector space.
To address this issue, we introduce a fixed ambient chain space containing all candidate simplices. On this space, we construct a hard Hodge Laplacian using projections and a penalty term so that the number of zero modes agrees with the Betti number of the active subcomplex. We then relax the projections using simplex activations obtained from a soft graph, yielding a Hodge-Laplacian-type spectral relaxation that depends smoothly on the parameters and recovers the ordinary Hodge-theoretic interpretation in the hard limit.
3.1 Ambient Chain Spaces and Boundary Operators
Let be a finite fixed ambient simplicial complex containing all candidate simplices that may appear during optimization. For example, given a candidate edge set , one may define the maximum candidate graph
and use its clique complex as the ambient complex.
For each dimension , define the ambient -chain space by
This is a finite-dimensional real vector space generated by all oriented -simplices in . After fixing orientations and equipping it with the standard inner product, can be regarded as a finite-dimensional Hilbert space.
Let be the ambient boundary operator of the fixed complex . For an oriented simplex ,
and the matrix representation of this operator is . Since the boundary of a boundary is zero, we have .
Suppose that a hard subcomplex is determined by a parameter . For each -simplex , define the activity indicator by
The orthogonal projection onto the active -simplex directions is defined by
Then the -chain space of is embedded as
Since is a simplicial complex, every face of an active simplex is also active. Hence,
or equivalently,
We define the hard restricted boundary operator on the ambient space by
On the active subspace , this agrees with the ordinary boundary map of the subcomplex .
3.2 Penalty-Regularized Hard Ambient Hodge Laplacian
A naive Hodge operator on the fixed ambient space would be
However, since this operator acts on the entire ambient space, inactive simplex directions may remain as spurious zero modes that do not correspond to homology classes of the active subcomplex. To remove them, we add an inactive-direction penalty. For , define
The last term assigns energy to inactive -simplex directions and removes them from the low-eigenvalue region.
With respect to the orthogonal decomposition
we have
Therefore,
Hence,
Thus, the number of zero modes of the penalty-regularized hard ambient Hodge Laplacian agrees with the -th Betti number of the active subcomplex.
Proposition 1 (Hard-limit consistency of the ambient Hodge Laplacian).
Let be an active subcomplex and let be the penalty-regularized hard ambient Hodge Laplacian defined above. Then, with respect to the orthogonal decomposition
one has
Consequently,
Proof.
On the active subspace , the projected boundary operators coincide with the ordinary boundary operators of the subcomplex , because is closed under taking faces. On the inactive orthogonal complement, the projected boundary terms vanish and the penalty term acts as multiplication by . Thus the operator decomposes as
The statement follows from the finite-dimensional Hodge decomposition, which identifies with . ∎
3.3 Soft Graphs and Hodge-Laplacian-type spectral relaxation
We now relax the hard projection using a soft graph and construct a differentiable spectral relaxation of the hard ambient operator. Let be the vertex set, and let be the set of candidate edges. For each candidate edge , define an edge logit , and define the corresponding soft edge activation by
We call a soft graph.
The activation or soft weight of a simplex is defined as the product of the activations of its constituent edges:
Vertices are assumed to always exist, so . In particular, for an edge , , and for a triangle ,
In the hard limit , we have
Thus, this construction is a continuous relaxation of the ordinary clique complex at the level of simplex indicators.
For each dimension , define
Using these matrices, define the weighted boundary-type operator by
In components,
Thus, the boundary relation between a simplex and its face is smoothly weighted by their activations.
Remark 1 (Soft weighted boundaries).
For hard simplex indicators, the projected boundary operators recover the ordinary boundary maps of the active subcomplex. For soft weights, however, the matrices
do not generally satisfy
Thus, in the soft regime, these matrices should not be interpreted as boundary maps of an exact chain complex. They are instead boundary-inspired weighted operators used to define a smooth Hodge-Laplacian-type spectral relaxation. The exact homological interpretation is recovered in the hard limit.
We define the -th penalty-regularized Hodge-Laplacian-type spectral relaxation by
The first term is the lower Laplacian-type term, the second term is the upper Laplacian-type term, and the third term is the inactive-direction penalty.
If , the penalty has almost no effect on the corresponding direction. If , the direction receives approximately energy . In the hard limit , we have
Therefore, is a differentiable Hodge-spectral relaxation of the hard Hodge Laplacian that recovers the Betti-number interpretation in the hard limit. Away from the hard limit, its low-frequency spectrum should be interpreted as a spectral surrogate for homological structure rather than as an exact Betti-number representation.
Proposition 2 (Convergence to the hard ambient operator).
Let be a sequence of simplex weights converging to hard activity indicators for all simplices of . Let be the corresponding penalty-regularized Hodge-Laplacian-type spectral relaxation. Then
in operator norm, where
Proof.
The ambient boundary matrices are fixed finite matrices. The diagonal matrices converge entrywise to , and the square-root matrices converge entrywise to . Since all matrices are finite-dimensional, entrywise convergence implies convergence in operator norm. Therefore,
and the corresponding lower, upper, and penalty terms converge to those of . ∎
3.4 Logit Parameterization for Graph Clique Complexes
In graph generation or graph-structured optimization, the optimization variables are the edge logits
Then and
Thus, the Hodge-Laplacian-type spectral relaxation is obtained through
For controlling one-dimensional cyclic structure, which is measured by the first Betti number in the hard clique-complex limit, we use and define
This operator acts on the fixed ambient edge space . Hence, graph optimization or graph-structured topology control can be performed in a fixed-dimensional Hilbert space, even though the underlying hard clique complex changes combinatorially.
3.5 Soft-Graph Representation of Vietoris–Rips Filtrations
We next represent Vietoris–Rips filtrations of point-cloud data within the same soft-graph and Hodge-spectral framework. Let
be a point cloud. In the ordinary Vietoris–Rips complex at scale , an edge is present when .
To relax this condition smoothly, define the stabilized distance with a small numerical parameter
and define the Vietoris–Rips edge logit by
Here, controls the softness of the threshold. The corresponding soft edge activation is
This value is close to one when , and close to zero when . In the hard-threshold limit ,
The activation of a simplex is defined by
In the hard limit,
because the Vietoris–Rips condition is equivalent to requiring all edges in to have length at most , namely . Thus, the soft clique construction recovers the ordinary Vietoris–Rips complex at each fixed scale in the hard-threshold limit.
Thus, the Vietoris–Rips filtration can be represented as the soft clique complex of a soft graph whose edge logits are
For each scale , we obtain the sequence
More explicitly, define
and
Then
This is the Vietoris–Rips instance of the Hodge-Laplacian-type spectral relaxation defined above. For controlling one-dimensional homology, we use .
3.6 Multi-Scale Vietoris–Rips Construction
Persistent homology describes the birth and death of homology classes across scales. Therefore, instead of using a single scale, we consider a sequence
For each scale , define
This yields a Hodge-Laplacian-type spectral relaxation
at each scale. The family
can be regarded as a Hodge-spectral smooth relaxation of the Vietoris–Rips filtration. In the next section, we apply low-pass spectral filters to these operators and define differentiable topological objectives for controlling Betti-type and persistent-homological structures.
4 Topological Objectives via Low-Pass Hodge Spectral Filters
In this section, we define differentiable topological objectives using the penalty-regularized Hodge-Laplacian-type spectral relaxation constructed in the previous section.
The basic idea is to regard homology as the zero modes of the Hodge Laplacian and to extract zero and near-zero modes using smooth low-pass spectral filters. For an ordinary simplicial complex , the -th Betti number satisfies
However, directly counting zero eigenvalues, namely the map , is discontinuous and is not suitable for gradient-based optimization. Therefore, we use a smooth function that emphasizes the low-eigenvalue region and use
as differentiable spectral surrogates for topological information. In the hard ordinary-complex case, these quantities approximate information about the kernel of the Hodge Laplacian. In the soft regime, they should be interpreted as low-frequency spectral quantities associated with the Hodge-Laplacian-type relaxation, rather than as exact Betti numbers.
We first introduce low-pass spectral filters and define two types of losses: spectral-filter matching losses and trace-type spectral-mass Betti surrogate losses. We then formulate normalized first-Betti-type control for graph clique complexes and topology control for Vietoris–Rips filtrations of point clouds within the same framework. All losses introduced in this section are differentiable with respect to . Since is constructed from soft-graph edge logits, gradients can be propagated analytically to the edge logits. In the Vietoris–Rips setting, the edge logits are functions of point coordinates through pairwise distances, and hence gradients can also be propagated to the point-cloud coordinates. In this section, we focus on the definitions and roles of the objectives; the detailed backward computation and gradient formulas are given in the Appendix.
4.1 Low-Pass Spectral Filters
Let
be the Hodge-Laplacian-type spectral relaxation, and let
be its eigendecomposition. In the hard ordinary-complex case, homological modes correspond to zero eigenvalues. In addition, near-zero modes with small positive eigenvalues may reflect geometrically meaningful structures such as almost-closed cycles, weakly filled holes, or unstable higher-order structures. Thus, it is useful to treat not only exact zero modes but also the low-eigenvalue region smoothly.
We call a smooth function a low-pass spectral filter if it emphasizes low eigenvalues and suppresses high eigenvalues. The corresponding matrix function is defined by
In this work, we use the following representative filters.
The heat filter is defined by
where is a temperature parameter. It preserves zero modes and exponentially suppresses high-eigenvalue modes.
The resolvent filter is defined by
where . It also emphasizes low-eigenvalue modes, but its decay is rational rather than exponential.
The polynomial moment filter is defined by
where and . A zero mode contributes one, while high-eigenvalue modes are suppressed under suitable choices of and . More precisely, this polynomial behaves as a low-pass filter only when the positive spectrum is mapped inside the unit disk; this condition is made explicit below. Since this filter is expressed as a polynomial of the Laplacian, it does not require eigendecomposition and is compatible with matrix-vector products, stochastic trace estimation, and structural connections to possible quantum or quantum–classical hybrid computation.
As a more stable polynomial approximation, one may also use a Chebyshev polynomial filter. After normalizing the Laplacian by an upper bound or estimate of its largest eigenvalue, for example
so that its spectrum is approximately contained in , define
where is the -th Chebyshev polynomial, are coefficients approximating a desired low-pass function, and is the polynomial degree. This filter can be computed recursively without eigendecomposition and is useful for approximating low-frequency spectral quantities in large-scale problems.
4.2 Spectral-Filter Matching Loss
One way to use a low-pass filter is to compare low-energy subspaces themselves. Let be a target parameter and define
For a low-pass filter , we define the spectral-filter matching loss by
This loss compares not only the number of zero modes but also the orientation and distribution of the low-eigenvalue subspace. Therefore, compared with barcode-based losses, it can use richer geometric and spectral information.
For the heat and resolvent filters, this gives
and
These losses act to move the current structure toward the low-energy subspace of the target structure. Although the heat and resolvent filters approximate the spectral projector onto the kernel in suitable parameter limits, they are not idempotent projectors for finite parameter values. For this reason, we refer to these objectives as spectral-filter matching losses rather than projector losses.
4.3 Trace-Type Spectral-Mass Betti Surrogate Loss
Another way to use a low-pass filter is to construct a smooth low-frequency spectral-mass surrogate for Betti-type information from its trace. For a low-pass filter , define
If and for high eigenvalues, then approximates the number of zero and low-eigenvalue modes and can be regarded as a smooth surrogate for in the hard ordinary-complex setting, and as a low-frequency spectral mass in the soft setting.
Proposition 3 (Trace approximation of Betti numbers).
Let be a finite simplicial complex and let the eigenvalues of the ordinary Hodge Laplacian be
Let satisfy , and define
Then
Proof.
Since has eigenvalues , we have
Taking absolute values gives the stated bound. ∎
Given a target spectral-mass value , define
In particular, for the polynomial moment filter, set
and define
For an ordinary hard complex, if
then
Thus, the parameters and should be chosen together with an appropriate spectral scaling of the Laplacian. This loss moves the low-frequency spectral mass toward the target value without explicitly counting Betti numbers.
4.4 Normalized Spectral-Moment Betti Surrogate
When graph sizes or ambient chain-space dimensions differ, directly comparing trace values introduces scale dependence due to the number of simplices. Therefore, let
and define the normalized moment
In the hard ordinary-complex setting, this normalization corresponds to comparing a Betti-type quantity per -simplex. In the soft ambient setting, it should be interpreted as normalized low-frequency spectral mass. Given a target normalized value , define
This normalization yields topological losses that are more comparable across graphs or ambient complexes of different sizes.
4.5 Normalized First-Betti-Type Control in Graph Clique Complexes
In graph generation or graph-structured topology control, the optimization variables are the edge logits
The edge activations define a soft clique complex and hence a Hodge-Laplacian-type spectral relaxation . To control one-dimensional cyclic structures in the hard clique-complex limit, we take and use
Define the Laplacian moment and its normalized version by
where . The quantity can be regarded as a normalized -type surrogate in the hard-limit sense, and as a normalized low-frequency -type spectral mass in the soft setting. Given a target normalized spectral-mass value , define the graph topological loss by
In practical graph-generation tasks, one may combine this topological loss with ordinary graph objectives such as edge density, degree distribution, clustering coefficient, or task-dependent losses. If such a base loss is denoted by , the total loss is
where controls the strength of topological regularization. This formulation allows one to optimize ordinary graph-structural objectives while controlling cyclic structures corresponding to of the clique complex. The ambient normalization above is the abstract formulation used in this section. In the numerical graph experiments below, we use an ordinary-complex or weighted-current-complex implementation and normalize by an effective edge count; the relation between these choices is discussed in Section 6.
4.6 Topology Control for Vietoris–Rips Filtrations
Let
be a point cloud, and let
be a sequence of scales. For each scale , define the edge logits by
These logits define a soft graph, a soft clique complex, and a Hodge-Laplacian-type spectral relaxation
at each scale. Since persistent homology describes the birth and death of homology classes across scales, the corresponding Laplacian-based losses are defined as sums over scales.
4.6.1 Trace-Type Vietoris–Rips Loss
Barcode-based losses often reduce undesired homology by penalizing persistence, for example
In the Laplacian-based formulation, we instead use the low-frequency spectral mass at each scale,
To suppress -dimensional homology, one can minimize
where are scale weights.
Conversely, to preserve or generate a prescribed topological structure, one can specify target low-frequency spectral masses and define
This loss can be interpreted as a smooth Laplacian-based approximation of the low-frequency -type spectral mass present at each scale. In the hard limit and with sufficiently sharp filters, this quantity is related to the Betti profile across scales, but it is not itself a persistence-diagram loss.
4.6.2 Spectral-Filter Matching Vietoris–Rips Loss
When a target point cloud is given, we can match low-energy subspaces at each scale. Define
Then
For the heat and resolvent filters, this gives
and
Unlike barcode-based losses, which compare birth–death pairs, this loss compares low-energy subspaces at each scale. Therefore, it is designed to reduce gradient localization on critical simplices and to provide update directions that retain more geometric and spectral information. Since the Vietoris–Rips edge logits are functions of the point-cloud coordinates, these losses are differentiable with respect to the point coordinates.
4.7 Practical Choice of Objectives
The objectives above are intended for different uses. Spectral-filter matching losses are appropriate when a target point cloud, graph, or simplicial complex is available and one wants to align low-frequency Hodge spectral structure with that target. Trace-type spectral-mass losses are appropriate when the goal is to control the amount of -dimensional topological structure without specifying a target low-eigenvalue subspace. Normalized moment losses are useful when comparing complexes with different numbers of simplices or when controlling graph clique complexes.
| Goal | Suggested objective | Interpretation |
|---|---|---|
| Match a target point cloud or target complex | Spectral-filter matching loss | Aligns low-frequency Hodge spectral structure with that of a target object. |
| Control the amount of -dimensional topology | Trace-type spectral-mass loss | Moves the low-frequency spectral mass toward a prescribed value. |
| Control a Betti-type profile across scales | Scale-wise Vietoris–Rips spectral loss | Controls low-frequency -type structure over selected scales. |
| Control cyclic structure in graph clique complexes | Normalized polynomial moment loss | Controls a normalized -type spectral quantity. |
| Scale to larger complexes | Polynomial, Chebyshev, or trace-estimation-based filters | Avoids full eigendecomposition and uses matrix-vector or trace-estimation routines. |
This table also clarifies the numerical experiments below. The Vietoris–Rips experiments examine whether spectral-filter losses provide useful gradients for point-cloud topology control, while the graph experiments examine whether normalized polynomial moments can control first-Betti-type quantities of clique complexes.
5 Numerical Experiments on Vietoris–Rips Topology Control
In this section, we compare topology control based on persistent homology with the proposed Hodge spectral-filter losses on Vietoris–Rips filtrations. The purpose of these experiments is to examine whether the proposed Hodge-spectral losses can control -type structures without explicitly optimizing barcode diagrams, and whether they alleviate some of the characteristic difficulties of persistence-diagram losses, such as gradient localization and sensitivity to persistence-pairing changes. These experiments are intended to study the behavior of the optimization signals rather than to replace persistent homology as a topological descriptor.
5.1 Experimental Setup
Let
be a point cloud. For each scale , we consider the Vietoris–Rips complex
In the persistent-homology baseline, the loss is defined directly from the barcode. For example, to suppress or control one-dimensional homological features, we use losses based on the persistence values
of bars.
For the proposed Hodge-based losses, we construct a Hodge-Laplacian-type spectral relaxation
for each scale , and then apply a low-pass spectral filter. We mainly use the heat filter
and the resolvent filter
For multi-scale objectives, we sum these quantities over a finite set of scales
The Hodge spectral-filter losses are combined with mild geometric regularization terms to avoid degenerate point configurations such as excessive collapse or excessive spreading. These regularization terms are used only to keep the point-cloud geometry numerically well behaved; the topological signal itself is provided by the Hodge spectral filters.
5.2 Multi-Scale Topology Control from Random Point Clouds
We first test whether the Hodge spectral-filter losses can induce low-frequency -type structures across multiple Vietoris–Rips scales. We initialize points in the square , and use the scale interval
We compare a persistent-homology baseline, the Hodge heat objective, and the Hodge resolvent objective.
Figure 1 shows the initial point cloud and the optimized point clouds after 10 epochs. The Hodge objectives, especially the resolvent objective, produce point clouds with more pronounced loop-like structures than the PH baseline in this example.
We evaluate the exact Betti number over the scale interval by
This quantity is used as an exact Betti-profile diagnostic of the optimized point cloud; it is not the differentiable objective optimized by the Hodge spectral-filter losses. The initial point cloud has value , the PH baseline reaches , the Hodge heat objective reaches , and the Hodge resolvent objective reaches . Thus, the Hodge spectral-filter losses increase low-frequency -type spectral structure across the selected scale range without directly optimizing persistence diagrams. This result should be interpreted as a scale-wise Hodge-spectral effect rather than as direct optimization of a persistence diagram.
5.3 Gradient Localization
Next, we compare the localization of gradients for PH losses and Hodge spectral-filter losses. The PH loss is based on the squared sum of finite persistence values, while the Hodge losses are based on heat and resolvent trace sums over the selected scales.
Figure 2 visualizes the gradient directions for an input point cloud. The PH squared-sum gradient is concentrated on a small number of points, whereas the Hodge heat and Hodge resolvent gradients are distributed more globally around the point cloud for this input.
losses.
To quantify this behavior, we compute the entropy of the gradient norm distribution and the mass carried by the top of points with largest gradient norms. The results are shown in Figure 3. The PH squared-sum loss has gradient entropy and top- mass . The Hodge heat trace-sum loss has entropy and top- mass . The Hodge resolvent trace-sum loss has entropy and top- mass .
These results are consistent with the interpretation that PH losses tend to concentrate gradients around critical simplices, while Hodge spectral-filter losses provide more spatially distributed update directions. The comparison concerns the spatial distribution of gradient norms in these experiments, not a general dominance statement for all PH-based objectives.
5.4 Pairing Instability Stress Test
We next examine sensitivity to persistence-pairing changes. We construct a point cloud with two similar loop-like structures and vary a parameter , which changes the relative sizes of the two loops. Representative point clouds for , , and are shown in Figure 4.
For the PH baseline, we use a loss based on the largest persistence value. Around , the two dominant bars can exchange their order, causing a sharp change in which bar is selected by the loss. For the Hodge method, we use an interval Hodge spectral-filter loss over the scale interval .
Figure 5 shows the normalized losses and their derivatives with respect to . The PH loss has a sharp derivative jump near the pairing switch, whereas the interval Hodge spectral-filter loss changes more smoothly after normalization by the loss range.
Quantitatively, the maximum raw derivative jump is for the PH loss and for the interval Hodge spectral-filter loss. Thus, the Hodge loss is not uniformly smoother in raw scale. However, the absolute magnitudes and dynamic ranges of the two losses are different. After normalization by the loss range, the maximum derivative jump is for the PH loss and for the Hodge loss. Therefore, in this experiment, the Hodge interval loss exhibits a substantially smaller derivative jump relative to its own scale. This supports the interpretation that the Hodge-spectral objective provides a smoother optimization signal in a scale-normalized sense.
5.5 Shape Synthesis by Analytic Gradients
We next test whether the analytic gradients of the losses can guide point-cloud shape synthesis. We parameterize a radial point cloud by
where the angles are fixed and the radii are optimized. The target shape is a wavy ring. We compare PH gradient updates, Hodge heat filter gradient updates, and Hodge resolvent filter gradient updates.
Figure 6 shows the recovered radial profiles and the mean RMSE with respect to the target radial profile. The PH gradient update gives final RMSE
whereas the Hodge heat projector gives
and the Hodge resolvent projector gives
Thus, the Hodge spectral-filter gradients recover the target shape more accurately in this controlled radial-shape experiment.
.
Figure 7 visualizes the initial circle, target wavy shape, and the results obtained by the three update rules. The Hodge heat and resolvent filter updates follow the target deformation more closely than the PH update.
We also compute the cosine similarity between the first update direction and the desired target deformation direction. The PH gradient has mean cosine similarity , the Hodge heat filter has , and the Hodge resolvent filter has . This indicates that the resolvent filter provides an initial update direction strongly aligned with the desired geometric deformation in this experiment.
The first-gradient entropy is for PH, for Hodge heat, and for Hodge resolvent. Again, the Hodge spectral-filter gradients are less localized and more globally distributed according to this entropy metric.
5.6 Runtime Comparison
Finally, we compare the cost of one loss-gradient evaluation. We vary the number of points as
For each , we measure the runtime of one gradient step for PH, Hodge heat, and Hodge resolvent losses. The results are shown in Figure 8.
At , the PH gradient evaluation takes
the Hodge heat gradient evaluation takes
and the Hodge resolvent gradient evaluation takes
Thus, at this scale, Hodge heat is about times slower than PH, and Hodge resolvent is about times slower.
This increased cost is expected because the Hodge spectral-filter losses use richer spectral information. In the current implementation, dense matrix operations are used, and the number of ambient edges and triangles grows rapidly with . Therefore, applying the Hodge spectral-filter losses to larger problems will require more scalable implementations, such as sparse linear algebra, Chebyshev polynomial approximation, and stochastic trace estimation. Possible quantum or quantum–classical trace-estimation approaches are a separate future direction and are not used in the present experiments.
6 Normalized First-Betti-Type Control on Graph Clique Complexes via Laplacian Moments
In this section, we apply the Laplacian-moment topological loss introduced in Section 4 to normalized first-Betti-type control in graph clique complexes. In particular, we focus on the first homology of the clique complex of a graph and control a quantity corresponding to the normalized Betti number
where denotes the set of -simplices, namely the set of edges, in the clique complex. In the soft optimization problem below, this hard normalized Betti number is used as an evaluation quantity, while the differentiable loss is applied to a calibrated soft spectral moment.
In the theoretical formulation developed in the previous sections, we constructed a Hodge-Laplacian-type spectral relaxation on a fixed ambient chain space and introduced a penalty term to remove inactive directions. However, in the numerical experiments in this section, we do not use the full ambient penalty-regularized operator. Instead, we use a weighted-current-complex implementation: the edge and triangle spaces are represented by the current soft graph weights, weighted boundary matrices are assembled from these weights, and the moment is computed without adding an inactive ambient block. For sampled hard graphs, this construction reduces to the ordinary Hodge Laplacian on the sampled clique complex. In this case, the chain space itself corresponds to the current weighted or sampled clique complex, and inactive simplex directions do not exist as a separate ambient block. Therefore, no penalty term is required to push inactive directions away from the low-energy region.
We first explain why the Laplacian moment based on the ordinary Hodge Laplacian can be theoretically justified as a surrogate for the normalized Betti number in the hard-complex setting. We then discuss the relation between the ordinary-complex computation, the ambient formulation, and polynomial trace estimation. Finally, we present the results of our numerical experiments.
6.1 Normalized Betti Surrogate Based on the Ordinary Hodge Laplacian for Hard Clique Complexes
Let be a graph, and let its clique complex be . Let be the -th chain space, and let be the boundary operator. The ordinary -th Hodge Laplacian is defined by
By the Hodge decomposition,
Therefore, . In particular, for , .
The important point is that is defined not on an ambient space but on the actual chain space of the clique complex . Hence, the inactive simplex directions that appear in the ambient formulation do not exist in this space. Therefore, when using the ordinary Hodge Laplacian, zero modes directly correspond to homology classes, and the penalty term
for removing inactive directions is unnecessary.
This subsection serves as the hard-complex reference. In the soft optimization experiments below, the differentiable objective is evaluated using weighted boundary matrices. The final topological evaluation is then performed by sampling hard graphs from the optimized edge probabilities and computing the ordinary Betti number of the sampled clique complexes.
6.2 Laplacian Moments and Normalized Betti Numbers
To treat normalized Betti numbers as differentiable objectives in the hard ordinary-complex setting, we use the polynomial moment filter
where and .
For the ordinary Hodge Laplacian , define the Laplacian moment by
We then normalize this quantity by the number of -simplices,
and define
Let the eigenvalues of be
Then
The contribution from each zero eigenvalue is equal to one. Therefore,
If is chosen so that
then
Therefore, for the normalized quantity,
Thus, when is sufficiently small,
In particular, for ,
In this sense, the Laplacian moment based on the ordinary Hodge Laplacian is a theoretically justified surrogate for the normalized Betti number when the spectrum is scaled so that the positive eigenvalues are suppressed by the polynomial filter.
6.3 Relation to the Ambient Formulation
In the theoretical formulation of the previous sections, the Hodge-Laplacian-type spectral relaxation was defined on an ambient chain space containing all candidate simplices. In that setting, inactive simplex directions remain as ambient basis directions, and a penalty term is needed to exclude them from the low-energy region.
In the hard limit, the penalty-regularized ambient Hodge Laplacian decomposes as
Here, is the ordinary Hodge Laplacian on the active complex, and is the block acting on inactive directions.
For the Laplacian moment, we obtain
Therefore, if and are chosen so that
then the forward contribution from the inactive block is negligible.
Moreover, the derivative of the moment filter is
Thus, the backward contribution from inactive directions is controlled by
Therefore, if
then inactive directions also have negligible influence on the gradient.
In particular, when
the inactive block contributes almost nothing to either the forward or backward computation of the Laplacian moment. In this sense, the numerical computation in this section using the ordinary Hodge Laplacian can be viewed as the limit of the ambient formulation in which inactive directions are completely removed, or as the regime in which their contribution is negligible.
Lemma 4 (Ambient-to-ordinary reduction for polynomial moments).
Suppose that, in the hard limit, the ambient operator decomposes as
Let . Then
Moreover,
Thus, if and are small, both the forward moment contribution and the local filter derivative associated with the inactive block are negligible. In this regime, the polynomial moment of the ambient operator reduces to the ordinary-complex moment up to a negligible inactive-block contribution.
6.4 Relation to Polynomial Trace Estimation
The Laplacian moment
has the same general form as polynomial trace quantities used in normalized Betti-number estimation. Since zero modes contribute one and suitably filtered nonzero modes are suppressed, such traces can approximate normalized kernel dimensions when the spectrum is properly scaled. This connection is useful computationally because polynomial filters can be evaluated by matrix-vector products and can be combined with stochastic trace estimation.
This viewpoint is closely related to recent trace-estimation approaches for estimating normalized Betti numbers of clique complexes [lloyd2016quantum, akhalwaya2024comparing, gyurik2022towards]. In such approaches, Betti numbers are represented through the null space of a combinatorial Laplacian or a related reflected operator, and polynomial traces are used to approximate the normalized dimension of this null space. The polynomial moment used in this paper has the same mathematical form, but here it is used as a differentiable objective inside a graph optimization loop.
The same polynomial-trace structure is also compatible with quantum trace-estimation viewpoints. However, this paper does not implement a quantum algorithm and does not claim quantum advantage. We therefore treat the quantum connection only as a structural observation and a possible future direction. The main contribution of this section is the use of Laplacian moments as differentiable first-Betti-type objectives for graph clique complexes.
6.5 Numerical Results
In the numerical experiments, each candidate edge is assigned an edge logit . The edge probability is defined by
For a triangle , the weight is defined by
This gives a weighted clique complex from a soft graph. We then compute the weighted-current-complex version of the first Hodge Laplacian.
Let
Since vertex weights are fixed to one, we use
The soft weighted first Hodge-Laplian-type operator used in the experiments is
Unlike the ambient operator in Section 3, this implementation does not include the inactive-direction penalty term.
We define and compute the Laplacian moment
For normalization, we use the effective edge count , and define
Here is the soft analogue of the number of active edges , and is a small numerical stabilizer. Given a fixed soft moment target , the soft spectral-moment Betti loss is
Here, is the target used in the differentiable soft optimization. It should be distinguished from the hard normalized Betti target , which is used to evaluate sampled hard graphs after optimization.
Soft and hard targets.
The soft moment target and the hard normalized Betti target are conceptually different quantities. The loss above optimizes the differentiable soft moment toward . After optimization, we sample hard graphs from the final edge probabilities and compute the ordinary normalized Betti number of their clique complexes. This sampled hard value is then compared with the hard target .
In the present proof-of-concept experiments, the soft target values are specified before optimization and kept fixed during each run. We do not claim an analytic or universal conversion rule from to . Instead, the experiments test whether optimizing the prescribed soft spectral moment induces sampled hard graphs whose normalized first Betti numbers move toward the desired hard target. The soft targets used in each experiment are reported explicitly in the tables.
In the experiments, we used as the basic setting, and mainly used .
The edge logits were optimized using an Adam-type update, and both forward and backward computations were performed using the ordinary Hodge Laplacian.
6.5.1 Convergence of the Path-Integral Estimator
We first compare the path-integral estimator with the exact value of the trace-gradient
for a fixed soft graph and a fixed direction . In this experiment, the number of nodes is set to , and the moment order is set to . The number of Monte Carlo samples is varied over
and the estimator is evaluated multiple times for each sample size.
Figure 9 compares the mean and standard deviation of the path-integral estimator with the exact trace-gradient. The dashed line represents the exact value, the blue curve represents the mean of the path-integral estimator, and the error bars represent the standard deviation. When the number of samples is small, the variance is large and the estimator deviates significantly from the exact value. As increases, the estimator approaches the exact value, and in particular, at , it reaches the neighborhood of the exact value.
Figure 9 shows the mean absolute error with respect to the exact value. The mean absolute errors are for , for , for , for , and for .
| Mean absolute error | |
|---|---|
| 100 | 1.2014 |
| 300 | 0.4782 |
| 1000 | 0.6399 |
| 3000 | 0.2626 |
| 10000 | 0.1518 |
At , the error temporarily increases. This is due to the variance caused by a finite number of Monte Carlo trials. For larger sample sizes, the error decreases again, confirming the tendency of the path-integral estimator to approach the exact trace-gradient. These results show that the proposed path-integral backward estimator functions as a Monte Carlo estimator of the trace-gradient.
6.5.2 Convergence of Betti Loss Optimization
Next, we verify whether the proposed Betti loss can actually be minimized. In this experiment, the number of nodes is set to , the hard normalized Betti target is set to , and the soft moment target used in the differentiable loss is fixed to . The optimization is performed using the exact coordinate gradient and is terminated when the improvement of the loss reaches a plateau.
Figure 10 shows the evolution of the Betti loss over optimization steps. The loss rapidly decreases in the early stage and then converges near zero with small oscillations. This result shows that the proposed soft projector Betti loss provides an effective learning signal for the edge logits.
Figure 10 shows the corresponding trajectory of the soft Betti moment. The dotted line represents the fixed soft moment target . The soft moment initially decreases below the target, then oscillates and returns toward the target, eventually stabilizing in its neighborhood. This behavior demonstrates that the Betti loss directly controls the soft moment toward the prescribed soft target.
In this experiment, the optimization reaches a plateau after 45 steps. The final loss is , the final soft spectral moment is , and the fixed soft target is . Thus, the absolute error with respect to the soft target is reduced to .
| Quantity | Value |
|---|---|
| Number of steps | 45 |
| Final loss | |
| Final soft spectral moment | 3.0763 |
| Fixed soft target | 3.0717 |
| Soft target error | 0.0047 |
| Sampled hard normalized mean | 0.1014 |
| Sampled hard normalized std | 0.0904 |
| Hard target | 0.1000 |
| Hard target error | 0.0014 |
| Sampled edge density mean | 0.2564 |
These results confirm that minimizing the soft spectral-moment Betti loss drives the soft moment very close to the fixed soft target. Moreover, when hard graphs are sampled from the final soft graph, the mean ordinary hard normalized of the sampled clique complexes is , yielding an error of only with respect to the hard target . Therefore, in this example, the minimization of the soft Betti loss is reflected in the topology of the sampled hard graphs.
On the other hand, the hard of a single thresholded graph is . This is because converting a soft graph into a hard graph by a single threshold is a discrete operation and is sensitive to the threshold value. Therefore, in these experiments, we evaluate the final hard topology by sampling multiple hard graphs from the edge probabilities and computing the mean normalized Betti number. This evaluation better reflects the probabilistic output of the soft generative model.
6.5.3 Topology-Controlled Graph Generation
We next examine whether the generated graph topology follows different hard target normalized Betti values. In this experiment, the number of nodes is set to , and the hard target values are chosen as
For each hard target, we specify a fixed soft moment target used in the differentiable loss. These soft targets are reported in Table 4. For all targets, optimization is initialized from the same soft graph.
Figure 11 shows the relationship between the target normalized Betti value and the sampled hard normalized after optimization. The black dashed line indicates , the orange dotted line indicates the mean of the shared initial graph, and the green points with error bars indicate the mean and standard deviation of the sampled hard after optimization.
The mean sampled hard normalized of the initial graph is , with standard deviation . Therefore, for targets and , the optimization must decrease , while for target , it must increase . As shown in Figure 11, the optimized sampled hard increases monotonically with the target and moves from the initial graph value toward each target.
The final results are shown in Table 4.
| Target | Steps | Soft mom. | Soft target | Soft err. | Hard mean | Hard std | Hard err. | Density |
|---|---|---|---|---|---|---|---|---|
| 0.02 | 176 | 0.2562 | 0.2492 | 0.0070 | 0.0068 | 0.0135 | 0.0132 | 0.5671 |
| 0.05 | 43 | 0.8180 | 0.8878 | 0.0699 | 0.0447 | 0.0457 | 0.0053 | 0.4713 |
| 0.10 | 50 | 1.3477 | 1.3480 | 0.0002 | 0.1173 | 0.0744 | 0.0173 | 0.3978 |
| 0.20 | 59 | 2.4705 | 2.4937 | 0.0231 | 0.1999 | 0.0831 | 0.0001 | 0.2997 |
Figure 12 compares the soft target error and the hard target error for each target. The soft error is relatively large for target , but the hard error remains small overall. In particular, for target , the hard error is almost zero. This indicates that the proposed method can generate graphs close to the desired target not only in terms of the prescribed soft moment but also in terms of the hard topology after sampling.
These results confirm that the final sampled hard normalized generally increases as the target increases. In particular, for targets and , the hard target errors are and , respectively, indicating that graphs very close to the target topology are generated. For target , the mean hard is , with an error of , but it still moves from the initial value toward the target. For target , the final mean is , which slightly underestimates the target, but the optimization successfully reduces significantly from the initial value.
The sampled edge density decreases as the target increases, taking values , , , and . This is because, when the edge density is too high, loops are more likely to be filled by triangles, reducing the first Betti number. Therefore, the proposed method does not merely increase or decrease edges. Rather, it controls through the balance between loops and filling triangles in the clique complex.
These results show that topology-controlled graph generation with different hard target normalized Betti values can be achieved using the soft spectral-moment Betti loss together with fixed soft moment targets.
6.5.4 Combination with Graph Feature Loss
Finally, we examine whether the soft spectral-moment Betti loss can be combined with another graph feature loss. As an independent graph feature, we use the soft degree variance. The objective function is defined as the sum of the soft spectral-moment Betti loss and the degree variance loss. The target hard normalized is fixed to , while the degree variance target is varied over , , and . For each condition, we run experiments with five random seeds.
As a baseline, we use a variance-only optimization method, which optimizes only the degree variance. This baseline approaches the degree variance target but does not use the Betti loss. Therefore, it serves as a control experiment to check whether the Betti topology is preserved.
Figure 13 shows the sampled hard normalized for the variance-only baseline and the joint optimization. The dashed horizontal line indicates the Betti target . In the variance-only baseline, the hard remains around for all variance targets, deviating significantly from the Betti target. In contrast, the joint optimization keeps the hard around , close to the target .
Figure 13 shows the achieved soft degree variance. The dashed line indicates the degree variance target. Both the variance-only baseline and the joint optimization follow the degree variance target well. In particular, the joint optimization does not significantly degrade the control of degree variance.
The numerical results are shown in Table 5.
| Var. target | Method | Var. mean | Var. std | Hard mean | Hard std | Hard err. |
|---|---|---|---|---|---|---|
| 0.41 | Variance-only | 0.4036 | 0.0079 | 0.1692 | 0.0121 | 0.0692 |
| 0.41 | Joint | 0.4112 | 0.0030 | 0.1100 | 0.0076 | 0.0108 |
| 0.45 | Variance-only | 0.4556 | 0.0158 | 0.1627 | 0.0106 | 0.0627 |
| 0.45 | Joint | 0.4504 | 0.0034 | 0.1125 | 0.0067 | 0.0125 |
| 0.49 | Variance-only | 0.4987 | 0.0172 | 0.1596 | 0.0089 | 0.0596 |
| 0.49 | Joint | 0.4892 | 0.0043 | 0.1088 | 0.0090 | 0.0102 |
The variance-only baseline achieves values close to the degree variance target, but the sampled hard remains around , far from the target . The hard error ranges from approximately to .
In contrast, the joint optimization achieves values close to the degree variance target while keeping the sampled hard in the range from to . The hard error is approximately between and , which is much smaller than that of the variance-only baseline.
These results show that the Betti loss is not merely a special regularization term that conflicts with other graph feature objectives. Rather, it functions as a topology-aware objective that can be combined with ordinary graph statistics. In other words, the proposed method can control a standard graph feature such as degree variance while simultaneously keeping the first-order topology of the clique complex near the target value.
7 Summary and Discussion
In this work, we proposed a framework for differentiably controlling homological constraints on finite simplicial complexes using the low-frequency spectrum of Hodge-Laplacian-type spectral relaxations. The central idea is not to treat Betti numbers or persistent homology directly as discrete quantities, but instead to extract zero and near-zero modes, which correspond to homological structures in the hard ordinary-complex limit, using smooth spectral filters. In the soft regime, these quantities should be interpreted as low-frequency Hodge-spectral surrogates rather than as exact homological invariants.
The main contributions of this work can be summarized as follows. First, we introduced an ambient Hodge-spectral relaxation on a fixed chain space and showed that, in the hard limit, the penalty-regularized operator recovers the ordinary Hodge Laplacian on the active subcomplex and hence the corresponding Betti number. Second, using low-pass spectral filters such as heat filters, resolvent filters, and polynomial moment filters, we defined spectral-filter matching losses and trace-type spectral-mass losses. Third, we applied these objectives to Vietoris–Rips complexes of point clouds and compared their optimization signals with persistence-diagram-based losses. Fourth, we used polynomial Laplacian moments to control normalized first-Betti-type quantities of graph clique complexes and showed that this topological objective can be combined with ordinary graph-feature objectives.
It is important to distinguish this contribution from the use of persistent homology as a descriptor. Persistent homology remains the appropriate object when the goal is to compute stable barcode-level summaries of multiscale topology. The proposed Hodge-spectral objectives are complementary: they are designed for optimization settings in which topology must provide a differentiable signal. In such settings, exact barcode information is not always the most convenient optimization object, and low-frequency spectral quantities can provide more distributed and geometry-aware gradients.
In the experiments on Vietoris–Rips filtrations, we observed that Hodge spectral-filter losses have properties different from persistent-homology-based losses. Hodge spectral-filter losses do not act only on birth–death pairs, but instead provide gradients through low-energy subspaces at each scale. As a result, compared with PH losses, the gradients were less localized around a small number of critical simplices and were more broadly distributed over the point cloud in the gradient-localization experiments. In the pairing-instability stress test, PH losses showed sharp changes when the maximal persistence bar switched, whereas the Hodge interval loss exhibited relatively smoother behavior after normalization by the loss range. In the shape synthesis experiment, Hodge spectral-filter gradients provided update directions more aligned with the target geometry and achieved lower reconstruction error than PH gradients in the controlled radial-shape setting.
In the graph clique-complex experiments, we used the Laplacian moment
to control a normalized first-Betti-type spectral quantity. When the ordinary Hodge Laplacian is used on a hard clique complex, the chain space consists only of active simplices. Therefore, unlike the ambient formulation, no inactive-direction penalty is required. In the soft numerical implementation, the moment is computed using a weighted-current-complex operator, and the normalized soft spectral moment is evaluated against a fixed soft target. The resulting sampled hard graphs are then evaluated using the ordinary normalized Betti number
The numerical experiments showed that, for both a single target and multiple targets, optimizing edge logits with the soft spectral-moment Betti loss moves the sampled hard normalized Betti number toward the prescribed hard target value. We also confirmed that the soft spectral-moment Betti loss can be combined with ordinary graph-feature losses such as degree variance, enabling simultaneous control of graph statistics and topological quantities.
These results suggest that the low-frequency spectrum of Hodge-Laplacian-type operators provides an effective continuous representation for topology-constrained optimization. In particular, unlike barcode representations, the proposed Hodge-based losses are sensitive not only to the existence of homology classes but also to the surrounding spectral and geometric structure. Therefore, they can induce more geometrically natural deformations and updates, rather than merely matching topological summary statistics in the settings studied here. This should not be interpreted as a general dominance statement over barcode-based objectives; rather, the two approaches emphasize different information and are useful for different purposes.
At the same time, the proposed method has clear computational limitations. Hodge spectral-filter losses use richer spectral information than PH losses, but this also increases the computational cost. As the size of a point cloud or graph grows, the number of simplices can increase rapidly, and constructing the Hodge-Laplacian-type operator and evaluating spectral filters become expensive. In our experiments, dense matrix computations were used, and the runtime per gradient step for Hodge losses was larger than that for PH losses. Applying the method to larger datasets will require scalable implementations based on sparse linear algebra, low-rank approximation, Chebyshev approximation, stochastic trace estimation, and related techniques. Thus, the present experiments should be viewed as proof-of-concept demonstrations of the optimization behavior rather than as optimized large-scale implementations.
Another important point is that trace-type losses should be interpreted as low-frequency spectral masses rather than exact Betti numbers in the soft regime. This is both a limitation and an advantage. By including near-zero modes, the loss can respond not only to exact homology classes but also to weakly closed cycles, unstable holes, and approximate topological structures. This yields smoother and more geometry-aware update directions. On the other hand, hyperparameters such as filter temperature, moment degree, scale set, spectral scaling, and regularization strength affect the resulting optimization behavior. For polynomial moment filters, in particular, the choice of and must be coordinated with the spectrum of the Laplacian so that positive eigenvalues are actually suppressed. A more systematic theoretical and empirical understanding of these parameters remains an important topic for future work.
The polynomial trace form of the moment loss also suggests possible connections with scalable trace-estimation methods. Classical stochastic trace estimation and polynomial filtering can reduce the need for full eigendecomposition, and they are natural candidates for scaling Hodge-spectral objectives to larger complexes. Quantum trace-estimation methods for normalized Betti numbers have a related mathematical structure, because they also represent Betti information through traces of polynomial functions of Laplacian-related operators. However, this work does not implement a quantum algorithm and does not claim quantum advantage. A careful study of block encodings, state preparation costs, sampling error, and gradient estimation would be required before making algorithmic claims in that direction.
On the application side, the proposed framework can be extended to many problems where topological constraints are important. Hodge spectral-filter losses for point clouds and images may be useful for medical image segmentation, shape interpolation, and geometric generative modeling. Normalized spectral-moment Betti losses for graphs may be useful for communication networks, molecular graphs, material structures, and social networks, where higher-order loops and redundancy affect functionality. In particular, Betti numbers of clique complexes describe higher-order graph structures that cannot be fully captured by degree distributions or clustering coefficients, and therefore may serve as useful objectives for controlling network robustness and higher-order connectivity. Developing such applications will require task-specific choices of filtrations, spectral filters, target quantities, and geometric or structural regularization terms.
In summary, this work presented a framework for treating topology not merely as an external descriptor computed after the fact, but as an object that can be directly optimized as a loss function. By using the low-frequency spectrum of Hodge-Laplacian-type spectral relaxations, discrete homological information can be embedded into smooth optimization problems, yielding a common mathematical structure across Vietoris–Rips complexes of point clouds and clique complexes of graphs. Further development of scalable spectral approximations and trace-estimation methods may enable the control of larger and more complex topological structures.
Statements and Declarations
Funding
The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.
Competing interests
The authors have no relevant financial or non-financial interests to disclose.
Author contributions
S.K. conceived the study, developed the theoretical framework, and carried out the numerical computations. Y.S. made significant contributions through extensive discussions with S.K. and provided important guidance for refining the direction of the study. All authors reviewed and approved the final manuscript.
Data availability
The datasets generated and analyzed during the current study are available from the corresponding author upon reasonable request.
Code availability
The code used for the numerical experiments is available from the corresponding author upon reasonable request.
Ethics approval
Not applicable.
Consent to participate
Not applicable.
Consent for publication
Not applicable.
Appendix A Details of Backward Computation
In this appendix, we derive the backward computation for the low-pass spectral losses defined in the main text. The basic flow is as follows. First, from a loss function
we compute the gradient with respect to the Hodge-Laplacian-type spectral relaxation:
Then, using the structure of , we propagate the gradient to the weighted boundary operators, simplex weights, edge probabilities, and edge logits. In the Vietoris–Rips setting, since the edge logits are defined as functions of point-cloud coordinates, the gradients are further propagated to the point coordinates.
Throughout this appendix, for a variable , we denote the gradient of with respect to by
For example,
Here, denotes the square root of the simplex weight :
A.1 Notation and Overall Computational Path
For a fixed degree , we write the Hodge-Laplacian-type spectral relaxation as
Let the loss function be
The matrix gradient obtained from the spectral loss is denoted by
Since is symmetric, in numerical implementations one may symmetrize this gradient as
The Hodge-Laplacian-type spectral relaxation is defined by
For simplicity, we write
Then
Each weighted boundary operator is defined by
where
In the soft clique complex, the simplex weights are given by
and each edge probability is defined by
Therefore, the backward computational path is
In the Vietoris–Rips setting, we further have
Thus, gradients are further propagated through
A.2 From Spectral Losses to
We first compute
for representative low-pass spectral losses used in the main text.
A.2.1 Heat Projector Matching Loss
Let the heat projector be
Let the target projector be
The loss function is
Define
Then
Let the eigendecomposition of be
Define
Then
By the Fréchet derivative of a matrix function,
where denotes the Hadamard product, and the Loewner matrix is given by
For the heat filter,
Therefore,
Using the inner-product property of the Hadamard product,
Furthermore, using
we obtain
Thus, for the heat projector matching loss,
A.2.2 Resolvent Projector Matching Loss
Let the resolvent projector be
Let the target projector be
The loss function is
Define
Also define
Then
Using the differential formula for the inverse matrix,
Since
we have
The differential of the loss is
Therefore,
By cyclicity of the trace,
When , , and are symmetric,
Thus,
Equivalently,
A.2.3 Moment Trace Loss
Let the moment surrogate be
Define
Then
We first compute
By the product rule,
Therefore,
By cyclicity of the trace,
Hence,
Since
we have
Therefore,
Thus,
If is symmetric, then is also symmetric, and hence
For the loss function
the chain rule gives
Therefore,
When using the normalized moment surrogate
the loss function is
In this case,
A.3 From the Hodge-Laplacian-type spectral relaxation to Weighted Boundaries
We now assume that
has already been computed, and propagate it to the weighted boundary operators.
Recall that
where
Taking the differential, we obtain
The first two terms are
and
Thus,
The differential of the loss is
First, consider the terms involving :
Using properties of the Frobenius inner product,
and
Since is symmetrized,
Therefore,
Hence,
Next, consider the terms involving :
Similarly,
and
Since ,
Thus,
We also compute the contribution from the penalty term
The differential of this term is
Therefore,
Since is diagonal,
we have
Thus,
Hence, the direct gradient contribution from the penalty term to a -simplex weight is
A.4 From Weighted Boundaries to Square-Root Weights
We next propagate the gradient through the weighted boundary
to the square-root weights .
Recall that
Let
In components,
where
First, consider the contribution to for a -simplex . We have
Therefore,
In vector form, the contribution from to is
Next, consider the contribution to for a -simplex . We have
Therefore,
In vector form, the contribution from to is
A key point is that the same appears in two weighted boundaries. It appears on the right side of
and on the left side of
Therefore, the total gradient with respect to is the sum of the two contributions.
Thus, for a general degree , the full gradient with respect to is
where terms corresponding to non-existent boundary operators at the ends of the complex are omitted.
For the most important case , we have
Then
The gradient with respect to the square-root weights of edges, , is
The gradient with respect to the square-root weights of triangles, , is
The vertex weights are usually fixed, and hence gradients with respect to are not used for optimization.
A.5 From Square-Root Weights to Simplex Weights
We now compute the derivative from
to
Since
we have
Therefore, the gradient contribution from the weighted boundaries to the simplex weight is
If , then the penalty contribution
must be added. Therefore,
For a -simplex with , there is no direct penalty contribution, and hence
Numerically, when is very small, also becomes very small and instability may occur. In such cases, one may use
Then
A.6 From Simplex Weights to Edge Probabilities
In the soft clique complex, simplex weights are defined by
If an edge is contained in , then
Equivalently,
If
then
Therefore, the gradient with respect to the edge probability is the sum of the contributions from all simplices containing :
Thus,
For numerical stability when is very small, one may use
A.7 From Edge Probabilities to Edge Logits
The edge probability is defined from the edge logit by
The derivative of the logistic function is
Therefore,
Substituting the result from the previous subsection gives
When , this can be simplified as
However, for numerical stability, it is safer to use
Thus, gradients of arbitrary low-pass spectral losses can be propagated analytically to the edge logits
A.8 Backward Computation for Graph Generation
In graph generation, the optimization variables are the edge logits
Thus, the final output of the backward computation is
The computation proceeds as follows.
First, compute edge probabilities from edge logits:
Next, compute simplex weights:
Then construct
Next, compute
from the loss function. For example, for the normalized Laplacian moment loss
where
define
Then
Using this , compute
and
Then compute
using the formula in the previous subsection. In particular, for ,
Then compute
Next compute
Finally compute
This gives
Therefore, the edge logits can be updated by gradient-based optimization.
A.9 From Vietoris–Rips Edge Logits to Distances
In the Vietoris–Rips setting, edge logits are defined from point-cloud coordinates. At scale ,
where
Assume that the gradient with respect to each edge logit has already been computed:
We now propagate this gradient to the distance .
Since
we have
Therefore,
A.10 From Distances to Point-Cloud Coordinates
We next differentiate the stabilized distance
with respect to the point-cloud coordinates.
Since
we have
and
At a single scale , the gradient with respect to a point is the sum of the contributions from all candidate edges incident to :
Substituting
we obtain
Furthermore, using
we obtain
For numerical stability, one may replace
by
A.11 Multi-Scale Vietoris–Rips Backward Computation
In a Vietoris–Rips filtration, we use multiple scales
Suppose that the loss function is
For each scale , first compute
Then, following the procedure above, compute
The edge logit at scale is
The distance does not depend on the scale, whereas the edge-logit gradient
does depend on the scale.
The gradient of the total loss with respect to is the weighted sum of the contributions from all scales:
Therefore,
Writing explicitly, we have
This shows that the multi-scale Vietoris–Rips loss is analytically differentiable with respect to the point-cloud coordinates .
A.12 Summary of Backward Computation
The backward computation derived in this appendix can be summarized as follows.
First, compute
from the spectral loss.
Next, using
compute
and
For a general degree , the gradient with respect to is
where non-existent boundary terms are omitted.
Then, since
compute
For , add the penalty contribution:
Next, using the soft clique relation
compute
Finally, since
compute
In graph generation, this
is the gradient with respect to the optimization variable.
In the Vietoris–Rips setting, using
and
we obtain the point-coordinate gradient
Thus, all low-pass spectral losses introduced in the main text are analytically differentiable through the Hodge-Laplacian-type spectral relaxation, soft simplex weights, edge probabilities, edge logits, and, in the Vietoris–Rips setting, point-cloud coordinates.