Fixed-site inverse fitting of power-diagram weights from pairwise separator data
Abstract
Local estimates of where selected pairs of objects should be separated need not define a consistent spatial partition. We develop a reproducible framework for fitting such data with a power (Laguerre) diagram, whose cells are determined by fixed points, called sites, and one adjustable weight per site. Each observed separator position specifies a weight difference. We characterize when the observations admit an exact fit and which weight differences they determine, and reconcile inconsistent data by weighted least squares.
A fitted separator need not form a shared cell face. We therefore check whether cells share a face and whether it contains the separator’s intersection with the line through their sites. For an interior intersection point, its in-plane distance to the face boundary defines centered clearance. The framework is implemented in the Python package pyvoro2.
Synthetic experiments recover identifiable weight differences from exact compatible data and examine missing and noisy observations. For 100 molecules, we fit separators predicted from atomic density profiles and compare them with reference separator positions and atom pairs derived from the Quantum Theory of Atoms in Molecules. The experiments show that improved fitting need not improve agreement with an independent reference. Among nonbonded pairs passing the local face test, centered clearance ranks reference pairs better than pair distance or face area in the pooled benchmark.
ivan.chernyshoff@gmail.com Keywords: Power diagrams, inverse problems, pairwise separators, graph Laplacians, geometric realization
MSC2020: Primary 65D18; Secondary 52C22, 65F20
Acknowledgments. The author thanks Chris H. Rycroft for feedback that improved the exposition and his mother for unconditional support during a difficult period.
Author contributions. Ivan Yu. Chernyshov (ORCID: 0000-0002-4452-2025) conceived the study, developed the software, performed the analyses, and wrote the manuscript.
1 Introduction
Spatial partitions represent physical structures by assigning regions to their constituent objects. In polycrystalline materials, these regions describe grain shapes and neighbor relations (Spettl et al., 2016; Bourne et al., 2025). In molecular structures, atomic regions are used to estimate volumes and packing (Richards, 1974), or to assign electron populations (Bader, 1990). Simple geometric models describe these regions through a small set of parameters, which must be chosen from the available information about the structure.
A simple and widely used model is the ordinary Voronoi diagram (Okabe et al., 2000). Given distinct points in Euclidean space , called sites, the cell of each site consists of the points no farther from it than from any other site. For two sites, their boundary is the set of equidistant points, forming the hyperplane perpendicular to the segment joining them at its midpoint. With more sites, shared faces are portions of these bisecting planes. Once the sites are fixed, the division is therefore fixed.
A power diagram, also called a Laguerre diagram, allows the boundaries to move by adding one real scalar weight to each site (Aurenhammer, 1987). It assigns each point to a site that minimizes the power distance
Equal weights recover the ordinary Voronoi diagram. When two power distances are equated, the quadratic terms cancel, leaving a hyperplane with the same orientation as the Voronoi bisector. We call this plane the pairwise separator. Changing the weight difference translates it along the line through the sites, as Figure 1 illustrates. Cell boundaries remain piecewise planar.
To represent a measured or prescribed structure, the parameters must be inferred from the available data. The resulting inverse problems differ in their inputs. A supplied Laguerre tessellation can be inverted to recover a generating representation (Duan et al., 2014), while segmented images provide interfaces to which a Laguerre approximation can be fitted (Spettl et al., 2016). Aggregate constraints offer another route: cell volumes can be prescribed at fixed sites (Aurenhammer et al., 1998; Bourne et al., 2020), or combined with centroid data to recover or fit a tessellation (Bourne et al., 2025). Mesh-construction methods instead start from prescribed elements, such as edges or triangles. Alexa (2020) adjusts weights at fixed sites to enforce the required cell intersections, when feasible. Bogiokas et al. (2025) allow additional sites so that prescribed elements can be represented as unions of smaller ones.
In this work, the inputs are fixed sites and scalar dividing positions for selected pairs. Each position is a coordinate on the full line through its pair of sites and specifies a target location for their pairwise separator. These coordinates may be predicted independently, even when no global partition has been observed or defined. For example, atomic density profiles can predict a dividing position along the line through two nuclei without assigning the rest of space to either atom. The nuclear coordinates specify the molecular geometry, so retaining them is part of the modeling task. We seek one power diagram that reconciles the supplied local divisions; observations may be missing, repeated or noisy.
We first ask which site weights, if any, are consistent with these local positions. Each coordinate specifies a desired weight difference, but a site’s single weight enters every observation involving it. The requirements can therefore conflict. Representing sites as graph vertices and observations as edges makes their compatibility explicit: signed differences must sum to zero around every closed chain. Compatible observations determine relative weights within each connected component; if all sites are connected, the remaining common shift leaves the diagram unchanged. For inconsistent observations, weighted least squares reconciles the targets through a classical graph-Laplacian problem (Jiang et al., 2011). For interface samples projected onto the site lines, this quadratic fit is the fixed-site form of the objective of Spettl et al. (2016).
The second question concerns the geometry realized by the fitted weights. Equality of two power distances does not make them minimal among all sites, so a fitted separator may contribute no shared face (Spettl et al., 2016). We therefore check both whether the cells share a face and whether that face contains the fitted separator’s intersection with the site line. We call the second check a local membership test. For projected interface samples, this is distinct from checking whether the original sample points belong to the shared face. When the intersection point lies in the face’s interior within the separator plane, its distance to the face boundary defines centered clearance, measuring how far the face extends in every direction around it.
Together, these analyses provide a way to construct a power diagram from local targets and distinguish what the observations determine from what the resulting geometry supports. The formulation accommodates noisy data and hard bounds on separator positions. For finite nonperiodic configurations, with the observation graph and fitting weights fixed, perturbation bounds for unconstrained least-squares fits give sufficient conditions for preserving the local membership classification under observation errors. A reproducible workflow combines fitting, diagram construction and face checking, including periodic systems, and is implemented in pyvoro2 (Chernyshov, 2026b).
We test this construction on synthetic data and in an application to 100 molecules. The synthetic tests examine exact recovery, missing observations, noise and model mismatch. The molecular application compares predictions from atomic density profiles, their fitted separators and the resulting cell adjacencies with a reference derived from the Quantum Theory of Atoms in Molecules (QTAIM) (Bader, 1990). These experiments show that a better fit to the supplied separator positions does not necessarily produce closer agreement with an independent reference. Among faces passing the local membership test for pairs of nonbonded atoms, clearance helps distinguish reference adjacencies. The molecular tests assess separator positions and pair adjacencies without reconstructing complete atomic basins.
Sections 2–4 develop the observation model, fitting and geometry; Section 5 presents the workflow. Sections 6 and 7 report synthetic and molecular experiments, followed by discussion and conclusions. Supporting arguments and protocols appear in the appendices.
2 Pairwise separator observations
We now express each observed or predicted dividing position as a target difference of site weights. For distinct fixed sites , let be real weights with squared-length units. We use the power-distance convention introduced above (Aurenhammer, 1987):
| (1) |
For an ordered pair , let be the pairwise separator defined by .
Set and . The full affine line through the two sites is their connector line. Its intersection with is , where coordinates and correspond to and . Equating the two power distances gives
and hence
| (2) |
The coordinate is defined on the full connector line and need not lie in .
An observed or predicted coordinate gives the target difference
| (3) |
Matching this position requires ; the individual weights remain undetermined. For the displaced separator in Figure 1, take and . Its location gives and , consistent with the displayed weights .
Other forms of data lead to the same target difference. A signed distance measured from toward gives . A supplied point gives the coordinate by orthogonal projection onto the connector:
| (4) |
The associated target plane is perpendicular to the connector and passes through . Only the longitudinal component enters Eq. (3); the point’s transverse displacement has no effect on the target.
Several measurements or predictions may refer to the same pair and yield different targets. We therefore index observations, rather than just pairs, by . Let denote the ordered site pair and the supplied normalized coordinate or signed distance. Let denote the discrepancy between and the prediction for a candidate weight vector, in the units of . Both conventions have the affine form
| (5) | ||||
| (6) |
where in the nonperiodic case. Each observation supplies the target difference .
The same model applies to periodic systems once the selected images are specified. Let and let the columns of form a linearly independent basis of a fixed translation lattice. Observation specifies a shift , selecting relative to . It replaces in the connector, so , while retaining the base-site weight .
We require and , excluding observations between images of the same base site and coincident selected endpoints. Different shifts label distinct geometric observations even when they constrain the same two weight variables. Coincident unselected images are discussed in B.4.
The next section determines when these target differences can be satisfied simultaneously and how to reconcile them otherwise. Whether the fitted pairwise planes contribute actual shared cell faces is a separate geometric question, treated in Section 4.
3 Compatibility and inverse fitting on observation graphs
3.1 Observation graph, compatibility, and identifiability
For a single set of weights to reproduce all observed pairwise separators, their implied weight differences must be mutually compatible.
Consider, for example, three sites with target differences
| (7) |
The first two equations imply , contradicting the third. Thus, no weight vector can satisfy all three observations simultaneously.
We represent the observations by a graph whose vertices are the sites and whose oriented edges carry the target differences . Repeated observations of the same pair correspond to parallel edges. In periodic systems, the vertices remain the base sites: observations with different image shifts are distinct edges even when they involve the same two weight variables. Let be the incidence matrix of this graph, where is the number of observations and column is , with the th standard basis vector. The exact fitting conditions become
| (8) |
This is a standard graph-potential representation of pairwise differences (Jiang et al., 2011).
Figure 2 shows the signed cycle sum for this example. For any weight vector, the corresponding sum of differences must vanish by telescoping. This gives the general compatibility condition below.
Let be the observation multigraph with incidence matrix and target differences . A weight vector satisfying exists if and only if the signed sum of target differences vanishes around every cycle of the underlying undirected multigraph:
| (9) |
Here when the cycle traverses edge in its assigned orientation and otherwise. Cycles formed by two parallel edges are included.
If , each target difference equals the difference of its endpoint weights. Summing these differences around any cycle gives zero by telescoping.
Conversely, choose a spanning forest of and assign an arbitrary weight to one root in each connected component. The observations on the forest edges uniquely determine the remaining weights within each component. Every edge outside the forest closes a cycle with the corresponding forest path. By the assumed cycle condition, its target difference agrees with the difference already determined along that path. Thus, all observations are satisfied. ∎
In particular, repeated observations of the same pair must have identical targets after accounting for their orientations. The construction also leaves one arbitrary additive constant per connected component, leading to the identifiability question considered next.
Let the observation graph have connected components , including isolated vertices. If the observations are compatible and is one solution of , then every solution has the form
| (10) |
where is the indicator vector of component . Consequently, the difference is uniquely determined by the observations if and only if sites and belong to the same connected component. Equivalently, .
The difference between any two solutions belongs to , so it must be constant across every observed edge, and hence within each connected component. Conversely, adding an arbitrary constant to the weights in any component leaves all observed differences unchanged. ∎
This ambiguity in the observations must be distinguished from a symmetry of the power diagram itself. Adding the same constant to every site weight leaves all power-distance comparisons unchanged and therefore preserves the complete diagram. In contrast, shifting the weights of disconnected observation components independently can change the competition between their cells. Thus, fixing one additive constant per component selects a particular solution, but may also select a particular geometry among several that are equally consistent with the observations.
3.2 Fitting inconsistent observations
When the cycle-compatibility conditions of Section 3.1 are violated, no weight vector can satisfy all observations exactly. We therefore seek weights that minimize the discrepancies between the observed separator positions and their predictions under the power model.
For each observation , let be the weight assigned to its squared residual in the original measurement units. Using the affine observation model from Section 2, we minimize
| (11) |
With the target differences , the same objective becomes
| (12) |
This transformation preserves the objective but changes the weights assigned to individual residuals. Since depends on the observation type and connector length, equal weights in the original measurement units do not generally imply equal weights on the inferred differences.
Let . Using the incidence matrix from Section 3.1, we can write the objective as
| (13) |
Differentiation gives
| (14) |
Since the objective is convex, its minimizers are characterized by the normal equations
| (15) |
Here is the weighted graph Laplacian, as in classical graph-potential least squares (Jiang et al., 2011). For any ,
| (16) |
Since all , this also shows that , the space of vectors that are constant on each connected component of the observation graph. Moreover, is orthogonal to this nullspace and hence belongs to the range of . Thus, the normal equations have a solution for every , even when the target differences are incompatible. Their solutions differ only by componentwise additive constants. Fixing these unobservable constants selects one representative; we call this a gauge convention.
For the inconsistent three-site example in Fig. 2, with equal fitting weights and the gauge , the least-squares solution is
| (17) |
The residuals follow the order of the three observations. Each therefore has magnitude : the fit balances the conflicting observations rather than selecting one to discard.
For fixed generator positions, this quadratic structure also follows from the interface discrepancy of Spettl et al. (2016). For a point assigned to pair , identifying squared generator radii with the weights gives
Summing these terms yields a weighted difference fit of the form above, up to an overall positive normalization. For multiple points assigned to one pair, the corresponding terms combine into a single quadratic term with their mean target and total fitting weight, plus an additive constant independent of . This reduction assumes fixed generator positions; the published method also optimizes those positions. The additive constant records the spread of the projected sample positions. Replacing the samples by their mean preserves the optimal weights, but agreement with that mean need not imply a small error over the sampled interface. Thus, data sufficient to determine the weights need not suffice to assess the approximation of an entire boundary.
The quadratic loss is not essential to the observation model. When large residuals should have less influence, the squared penalties can be replaced by convex losses such as the Huber loss, which is quadratic near zero and linear beyond a residual threshold (Huber, 1964). The resulting fixed-observation problem remains convex, although its minimizer is generally no longer obtained from a linear Laplacian system.
3.3 Hard separator constraints
Some separator requirements must be satisfied exactly rather than treated as approximate targets. We allow a separate set of hard restrictions, which may involve site pairs absent from the observations used for fitting. For each , let be the ordered site pair, and let specify an admissible interval in one of the measurement conventions of Section 2. With the corresponding coefficients and , the restriction reads
| (18) |
This is equivalent to the bounds
| (19) |
where
| (20) |
An exact separator requirement is the special case . Unlike residuals in the least-squares objective, these restrictions must be satisfied by the fitted weights.
Their joint feasibility is described by a directed graph of difference constraints: each inequality is represented by an arc with cost . This constraint graph differs from the observation multigraph used for fitting. The standard negative-cycle criterion (Cormen et al., 2009, Sec. 24.4) takes the following form in our sign convention.
Consider a finite collection of restrictions
| (21) |
with finite real bounds . Construct a directed weighted multigraph on the sites by adding, for each restriction , an arc with cost and an arc with cost .
There exists a weight vector satisfying all restrictions if and only if this graph contains no directed cycle with negative total cost.
Summing the inequalities represented by arcs around any directed cycle cancels the site weights, so every cycle must have nonnegative total cost.
Conversely, suppose there are no negative directed cycles. Add an auxiliary source connected to every vertex by a zero-cost arc, and let be the shortest-path distance from this source to vertex . These distances are finite and satisfy
| (22) |
for every arc . Therefore, setting satisfies every difference constraint. ∎
The criterion can be checked using standard shortest-path algorithms, such as Bellman–Ford (Bellman, 1958). A negative cycle certifies infeasibility of the prescribed restrictions, independently of any least-squares objective.
When hard restrictions are feasible, they can be imposed on the least-squares fit. Let
| (23) |
The resulting optimization problem is
| (24) |
This is a convex quadratic program. Whenever is nonempty, the minimum is attained, as proved in A.1. Any two minimizers differ by constants on the connected components of the observation graph, but only shifts that preserve remain admissible. In particular, hard restrictions connecting different components may constrain their relative offsets, so independently fixing one constant per component is no longer an arbitrary gauge choice. A common shift of all site weights remains free.
Algebraic compatibility, optimal fitting, and feasibility of hard restrictions do not guarantee that the corresponding site pairs share actual faces in the resulting power diagram. We address geometric realization in the next section.
4 Geometric realization and local diagnostics
4.1 Pairwise separators and realized faces
For a finite nonperiodic configuration, the power cell of site consists of all points at which its power distance is minimal among the sites (Aurenhammer, 1987). For two distinct sites and , we distinguish their pairwise bisector , where their power distances are equal, from their common cell intersection , where both sites attain the minimum power distance. Explicitly,
| (25) | ||||
| (26) | ||||
| (27) |
While the position of depends only on the weight difference , the existence and extent of depend on the competing sites and their weights. In particular, may be empty even when the pairwise separator is fitted exactly. Moreover, a nonempty intersection need not form a full -dimensional face: the two cells may meet only in a lower-dimensional set.
Recall that Section 2 describes the position of a pairwise separator by its coordinate along the line through the two sites. For fitted weights, this identifies a particular point on the pairwise bisector,
| (28) |
This gives a second geometric question beyond the existence of a shared face: does this particular point belong to the common cell intersection ? The condition is stronger than , since a shared face may lie elsewhere on the bisector. The following example illustrates both distinctions.
Consider four sites in the plane,
| (29) |
with . The pairwise bisector of sites 1 and 2 is always , and its intersection with the line through the two sites is , regardless of the weights assigned to sites 3 and 4. The conditions imposed by these competing sites give
| (30) |
Figure 3 shows how changing only the competing weights makes the shared face disappear, moves it away from the connector, or places the connector point inside it.
Since lies in the -dimensional hyperplane , it contains a full -dimensional portion precisely when
| (31) |
where denotes interior within the entire bisector hyperplane. Equivalently, must contain a nonempty open ball measured within . When both power cells are themselves full-dimensional, such an intersection is a shared facet of the two cells.
The distinction is visible in the four-site example. With , the bounds defining meet at , leaving only the point . The cells intersect, but they do not share an edge.
Further degeneracies are discussed in B.1. We next test connector membership using power-distance comparisons.
4.2 Connector visibility
The fitted separator coordinate fixes , so testing checks geometric support at that location without searching for another witness on the bisector.
To perform this test, we compare the power distances of the pair with those of the competing sites at . For each , define the competitor gap
| (32) |
Since , the point belongs to both power cells exactly when no competitor has a smaller power distance. Thus,
| (33) |
We refer to this as weak connector visibility. Strict positivity of every competitor gap provides a stronger certificate: for a finite configuration, the inequalities remain satisfied in a neighborhood of within the bisector. Consequently,
| (34) |
Strict competitor inequalities also persist in a small ambient neighborhood of . On opposite sides of the bisector near that point, sites and , respectively, are the unique power minimizers. Thus strict visibility certifies a genuine local facet between two full-dimensional cells.
When all site weights are equal, is the midpoint, and strict positivity of the gaps means that every other site lies outside the closed ball with diameter . This is the strict form of the classical Gabriel edge condition. Its weighted counterpart uses the full affine connector line, so the witness may lie outside the site segment (Alexa, 2020, Sec. 2). The all-strict test above is therefore a weighted Gabriel edge certificate. We use weak connector visibility separately for the non-strict condition , which permits boundary contacts and persistent ties and does not by itself certify a genuine facet; see B.1.
The competitor gaps can be expressed directly in terms of the fitted weights. Writing and , expansion of the squared distances gives
| (35) |
Since is affine in , each competitor gap is an affine function of the site weights for fixed site positions. It is also invariant under adding a common constant to all weights.
For a pair , we summarize the competitor inequalities by the minimum signed gap
| (36) |
When there are no competing sites, we set . Otherwise, is a continuous, piecewise-affine function of the weights. The weak connector-visibility condition is equivalent to , while guarantees strict visibility and a full-dimensional shared face near . A negative value only establishes that the selected connector point is not on the shared face; it does not exclude a face elsewhere on the bisector.
In Fig. 3(a–c), the values of are respectively , , and . The same negative score occurs both when the face is absent and when it lies away from the connector.
4.3 Connector-centered clearance
A strictly positive minimum signed gap places the connector point in the interior of within the bisector. The gap has units of squared length, however, and does not directly describe the geometric extent of this interior neighborhood.
When , we define the connector-centered clearance as the supremum of radii for which the in-bisector Euclidean ball
| (37) |
is contained in . This is a ball of dimension , with the Euclidean metric inherited from , and its center is fixed at .
Let be the component of perpendicular to the site connector:
| (38) |
For any displacement within the bisector, the difference of power distances becomes
| (39) |
The smallest value of this expression over is . Thus, the entire ball is contained in the common cell intersection exactly when
| (40) |
It follows that, for ,
| (41) |
The minimum over an empty set is , corresponding to . Under strict visibility, competitors with impose no restriction on motion within the bisector.
In Fig. 3(c), both competitor gaps and both projected distances equal . Hence , the marked distance from to an endpoint of the shared edge.
The formula should not be extended to negative gaps by simply allowing a negative clearance. When , the connector point lies outside , so no centered ball, not even one of radius zero, is contained in the common cell intersection. Moreover, a negative value of the expression above describes a violation of an individual competitor inequality, whereas the distance to the actual face depends on satisfying all inequalities simultaneously. The face may even be empty.
For a nonempty face, the appropriate exterior measure is instead the Euclidean distance from to , measured within the bisector. In B.2, we derive its computation as a convex projection problem and illustrate why a negative extension of Eq. (41) does not generally give this distance. The zero-gap clearance formula is treated in B.2; persistent ties are discussed in B.1.
4.4 Stability of geometric support
The diagnostics above refer to a particular set of fitted weights. Errors in separator observations can perturb these weights, so we ask when the resulting connector-visibility classification remains stable.
We first consider a fixed finite, nonperiodic site configuration. For a pair and competitor , define the dimensionless coefficient
| (42) |
This is the coordinate of the orthogonal projection of onto the affine line through . From the affine expression for the competitor gap in Section 4.2, a weight perturbation gives the exact identity
| (43) |
Consequently, defining
| (44) |
we obtain
| (45) |
Here the competitor set is assumed nonempty. The bound follows because each competitor gap satisfies the corresponding estimate and taking the minimum cannot increase the largest absolute change.
In particular, if and
| (46) |
then . Thus, the pair retains strict connector visibility, and its common face remains full-dimensional near the perturbed connector point.
The same argument preserves a negative sign when the perturbation bound is smaller than . This only certifies that the connector point remains outside the shared face; it does not establish that the face is absent. At zero margin, the bound provides no sign-preservation guarantee.
Because the competitor gaps are invariant under a common shift of all site weights, the perturbation bound may also be expressed using the smallest infinity norm after subtracting such a shift. The result concerns the connector-visibility status of the selected pair, not the topology of the entire power diagram.
The preceding bound concerns perturbations of the site weights. To relate it to errors in the observed separators, consider the unconstrained quadratic fit of Section 3 with a fixed observation graph and fixed positive fitting weights.
Let be a reference vector of target differences, not necessarily compatible, and let be a perturbed observation vector. Denote their least-squares solutions by and , respectively, using the same fixed linear convention for the undetermined component offsets. For this fixed fitting problem, the solution depends linearly on the targets. Writing this dependence as , we obtain
| (47) |
Combining this identity with the geometric perturbation bound gives
| (48) |
If the right-hand side is smaller than , the connector-visibility score keeps its sign.
The conclusion concerns the visibility classification of the reference least-squares fit. It does not automatically establish agreement with an independently specified physical weight vector: any difference between that vector and the reference fit must also be accounted for. Moreover, when the observation graph is disconnected, the chosen component offsets affect the geometry, so the comparison requires a consistent convention. The reduced-Laplacian response and error bounds are given in C.2; the additional bias when comparing with independent physical reference weights is treated in C.3.
Clipping and periodic images
The preceding stability results concern a fixed finite set of sites in an unbounded nonperiodic domain. Clipping and periodicity require additional geometric qualifications.
For a diagram restricted to a convex box , the relevant common cell intersection is
| (49) |
Strictly positive competitor gaps alone do not guarantee that the connector point belongs to this clipped intersection: the point must also belong to . If and , then a neighborhood of within the bisector belongs to . The corresponding connector-centered clearance is
| (50) |
where is the largest radius of an in-bisector ball centered at and contained in . Intersections confined to the domain boundary require additional care, since an intersection of positive dimension within the bisector need not represent an interface between two full-dimensional cells inside the domain.
For periodic diagrams, the pairwise separator is associated with two selected site images, rather than merely their base-site indices. Every other image can act as a competitor, including other images of either selected base site. The power-gap and clearance constructions remain applicable to these image instances, but their evaluation requires the relevant competing images to be identified correctly. In particular, neither an arbitrary finite image cutoff nor the finite-competitor stability bound derived above is automatically valid for the complete periodic diagram.
See B.3 for clipping and B.4 for image-aware geometry. Further limitations on periodic perturbation bounds are recorded in C.4.
These diagnostics characterize local geometric support of fitted separators. They complement, rather than replace, an explicit examination of the realized power diagram, which forms part of the computational workflow described next.
5 Computational workflow
A one-pass calculation fits all supplied observations and checks which requested faces its diagram realizes (Fig. 4). When neighbor assignments in the supplied pair list are uncertain, some separator predictions may concern pairs that do not share a face in the fitted diagram. Optional refinement repeats the fit on an active subset of these candidate observations. Each observation supplies one row of the fitting problem; the active mask records which observations enter the current fit. Requested-image face matches determine which candidates remain active, while every original candidate remains available for matching and possible re-entry. The implementation described here is pyvoro2 0.6.3 (Chernyshov, 2026b).
5.1 Resolving observations and fitting a fixed set
The inputs are fixed site positions, numerical separator observations, and their assigned fitting weights. A domain is also needed for periodic image resolution or geometric evaluation. Each fitting call uses one measurement convention from Section 2: normalized coordinates or signed distances. An observation retains its ordered pair , target , and selected image shift in periodic calculations. These choices determine the connector length and affine coefficients . A supplied periodic shift is part of the observation’s identity; when shifts are not supplied, a separate image-selection policy resolves them before fitting. Different shifts for one base pair can label distinct observations while constraining the same weight difference.
For a fixed observation set, the ordinary quadratic fit minimizes the weighted measurement-space residuals of Section 3. With the positive fitting weights assumed there, the implementation solves separately on the observation-graph components using dense linear algebra. Since additive component offsets leave the fitted differences unchanged, the solver must choose a representative weight vector on each component. These choices can affect the geometry when several components share a diagram; the version-specific conventions are given in D.2.
The solver also supports a Huber loss in the original measurement units and hard measurement bounds. A hard restriction applies one common interval or fixed value to every supplied row in those units; this is narrower than the independently indexed restrictions of Section 3.3. Nonquadratic terms or hard restrictions use an iterative solver, and infeasible hard difference bounds are detected by a graph precheck. The Huber threshold is expressed in the selected measurement units, so its equivalent threshold in weight-difference units depends on . Predictions are returned as normalized coordinates or signed distances, together with residuals, connectivity warnings, and fitting status. We use the term fixed-observation fit to distinguish the rows supplied to the estimator from the faces ultimately realized by the tessellation.
5.2 Constructing and matching realized faces
A fitted weight vector defines a power diagram but does not guarantee that its observed pairs share actual faces. The three-dimensional backend is Voro++ (Rycroft, 2009); two-dimensional calculations use the separately bundled backend exposed by pyvoro2.planar (Chernyshov, 2026b). The implementation uses a common shift such that and passes radii . The shift changes none of the power comparisons. Within the chosen two- or three-dimensional domain, the computed cells supply the internal edges or faces that are subsequently matched to the resolved observation rows.
For a periodic observation requesting , the matching step checks that the specified image shift occurs among the realized boundaries. The flag realized records a boundary at any shift. An exact requested-image match is marked realized_same_shift; if the requested shift is absent but another image is realized, realized_other_shift is set. Reversing the pair orientation reverses the shift.
Additional diagnostics flag empty endpoint cells and realized base-site pairs absent from the supplied candidate list, recording the realized shifts of those extra pairs. Boundary length in two dimensions or face area in three dimensions may also be recorded; its image-selection convention is specified in D.2. Realization here means a boundary reported by the numerical tessellation in the chosen domain.
Requested-image matching examines the actual boundary, whereas the connector tests of Section 4 examine support at a particular point. A realized face can therefore fail connector visibility, as in Fig. 3(b). Neither property is certified by a small fitting residual.
5.3 Optional refinement of the observation set
For optional candidate observations, refinement retains a fixed collection of resolved rows and starts from a Boolean active mask , initially all ones unless specified otherwise. At iteration , only rows with , together with their hard measurement bounds, are supplied to the inner solve. Dropping a row therefore also drops its bound.
For every fit after the first, the weights are aligned component by component with the preceding evaluated weights. Alignment adds a common constant to all weights in each current fitting component, making their mean equal to the preceding mean over the same sites. A relaxation factor then blends the aligned fit with the preceding iterate before the diagram is constructed; the initial fit is used without blending. For unregularized fits, alignment preserves the fitting objective while carrying forward component offsets that the pair data do not determine. The optional weight regularizer adds a quadratic penalty for departure from a reference vector. With positive regularization strength, the implementation still aligns the components, which can change the regularized objective; see D.2 for the version-specific regularization and alignment conventions.
The diagram is then evaluated against every original candidate row, not only those currently active. For , let
| (51) |
The realized-face mask drives the update. A present face increments that row’s addition streak and resets its removal streak; an absent face does the reverse. For fixed positive integer thresholds and , an inactive row is added after consecutive realized evaluations, while an active row is removed after consecutive absent evaluations. Until the respective threshold is reached, its membership is unchanged. Thus previously dropped rows can re-enter a later fit, but no candidate pair is created and no supplied image shift is silently changed.
Proposition 3 shows that consecutive executed mask updates with an unchanged realized-face mask suffice for the active mask to agree with it. This conditional bookkeeping result does not show that the realized-face mask becomes stationary or that the coupled fit–tessellation iteration converges.
5.4 Stopping and interpretation of the returned result
The outer stopping label, the final fitting status, and the geometric diagnostics answer different questions. In particular, a final refit can change the geometry after the last evaluated iteration.
The outer procedure reports self_consistent when the proposed active mask is unchanged, that mask coincides with the requested-image realization mask, and the change in the evaluated weights has Euclidean norm at most a prescribed tolerance. The label does not by itself certify convergence of the inner numerical solver. Other outcomes include an outer-iteration limit, an infeasible active-row problem, and numerical failure. The cycle_detected status records a repeated active mask; it does not establish a periodic orbit of the weights and streak counters.
After a normal loop stop, the implementation attempts a final, unrelaxed fit on the final active rows. If it returns weights, their component offsets are aligned to the preceding evaluated weights and the resulting diagram is matched again. The final fitting status and weight availability must be checked alongside the outer stopping label: if no weights are returned, the stored realization diagnostics describe the preceding evaluation. The precise stopping and failure conventions are given in D.2.
When final weights are available, residuals are reported both over all original candidates and over the final active subset. Both root mean square (RMS) summaries are unweighted and expressed in the selected measurement units; D.2 identifies the corresponding output fields. A small residual does not certify a shared face, while an active row need not be realized in the final tessellation.
6 Synthetic numerical experiments
For the recovery and geometric tests, we generate separator observations from known sites and weights. The generating power diagram supplies both separator positions and a reference set of neighboring pairs. We first ask which weight information can be recovered from these observations. Exact data provide a numerical control; separate experiments then remove observations or corrupt their values. This separates information that is absent from information that is present but noisy (Section 6.1).
We next test two situations in which agreement with separator data can give an incomplete picture of the geometry. Periodic observations may specify the wrong site images, and deliberately altered separator positions may fail to admit a common set of weights. We examine image identity and realized adjacency alongside numerical error (Section 6.2). Finally, we add candidate pairs to the generating neighbor graph and test whether the optional refinement of Section 5.3 improves the fitted separators or the selection of pairs (Section 6.3).
These comparisons use different references for different questions. Error against clean generating separators measures recovery from corrupted data; error against deliberately imposed targets measures agreement with those targets. Geometric scores compare either all realized adjacencies or the selected candidate observations, as specified below. The fitting and tessellation calculations use pyvoro2 0.6.3 (Chernyshov, 2026b). The scripts, configurations and numerical results are available in the powerfit version 2.0.0 archive (Chernyshov, 2026a). The experiment labels A–H identify its records; detailed configurations and evaluation conventions are collected in D.3.
6.1 Recovery from exact, incomplete, and noisy observations
We begin with compatible observations extracted from a power diagram (Experiment A). Sixteen tests cover two and three dimensions, periodic and nonperiodic domains, and connected and disconnected observation graphs. The largest recorded separator root mean square error (RMSE) is in normalized-coordinate units. Thus the observed weight differences are recovered to numerical precision. When the observation graph is disconnected, however, the relative offsets of its components remain undetermined. Choosing these offsets can change competition between cells in different components, even while preserving every observed difference. The archived tests include a case in which some requested faces are consequently absent from the reconstructed diagram.
Experiment C examines this loss of information by randomly deleting observations without adding noise. Within each remaining connected component, the observations still determine all relative weights. What is lost is the relation between different components. We display this distinction using two errors against the known generating weights. The globally aligned error removes one common additive shift, whereas the componentwise aligned error removes a separate shift on each observed component. Componentwise alignment uses the generating weights for evaluation; it does not recover the missing offsets from the retained observations.
Figure 5 shows the resulting profiles for 128 sites in each dimension, selected from the 2,470 archived runs. As observations are removed, the componentwise error remains near numerical precision even where the graphs are disconnected. In the two-dimensional tests retaining half the observations, for example, all ten graphs are disconnected: the median globally aligned weight RMSE is , while its componentwise counterpart is . A small error on the information retained within components therefore coexists with uncertainty in the full weight vector. The connected fraction provides the corresponding diagnostic for global identifiability.
Observation error introduces a different difficulty even when the correct pair graph is known. Experiment B compares quadratic and Huber fitting under three noise conditions: Gaussian perturbations, Laplace perturbations, and sparse outliers on a Gaussian background. Accuracy is measured against the untouched generating separators, rather than against the corrupted fitting targets. The tested outlier cases show a modest benefit from Huber fitting. For example, in the two-dimensional setting with a nominal outlier fraction, the mean clean-reference separator RMSE is for quadratic fitting and for Huber fitting, in normalized-coordinate units. The benefit is not uniform across the Gaussian and Laplace settings; the noise levels, threshold and complete configuration are given in D.3.2.
Hard restrictions raise a separate question: can they be satisfied simultaneously? As a short control, Experiment D correctly classifies all 30 generated three-observation cases as feasible or contradictory. It uses a dedicated experimental difference-constraint checker, distinct from the production fitting precheck; its construction is described in D.3.1.
6.2 Separator agreement and geometric realization
A separator observation in a periodic system identifies both a site pair and a particular image. Experiment F asks what happens when that image information is wrong. In the noiseless control with the generating image shifts supplied, separator errors are near numerical precision and all requested faces are realized. Deliberately incorrect supplied shifts remain fixed during fitting: adjusting the weights does not revise the observation’s image identity. A realized face at another image can therefore expose a mismatch that the fitted separator value alone does not resolve.
F also tests a separate image-selection procedure. It removes the image labels, chooses nearest images, and optionally revises them using uniquely realized shifts. In the three-dimensional tests, the revised choices all agree with their realized-image diagnostics, but only a fraction agree with the generating shifts. Geometric self-consistency is therefore insufficient to establish the correct periodic-image identity. This image-selection procedure is separate from the optional observation-set refinement, which retains the supplied shifts. Repeated stripped-label inputs and the exact scoring conventions are documented in D.3.3.
Experiment G instead keeps the generating diagram’s neighbor pairs and alters their separator targets. Structured pair-dependent changes are added with amplitude ; the resulting targets need not be representable by one weight per site. The type-cycle law encodes cyclic preferences among three site types, while the local-context law uses contrasts in local neighbor spacing; their definitions are given in D.3.4. We fit those targets and then compare the entire realized adjacency graph with the generating graph. This tests whether closer agreement with local separator positions also preserves the reference neighbor relations. We summarize pair agreement by F1, the harmonic mean of precision (the fraction of realized pairs belonging to the reference) and recall (the fraction of reference pairs realized).
Figure 6 compares fitting accuracy and geometric recovery throughout the tested range of structured perturbations. The fit has lower error against the imposed separator targets than the ordinary Voronoi midpoint baseline at every tested amplitude. At , when the targets come from a generating power diagram, the fitted diagrams have higher mean realized-graph F1; as the imposed targets are perturbed, this mean advantage reverses for both perturbation laws. The data at different amplitudes use independent configurations, so the trends are not trajectories of individual diagrams or universal mismatch thresholds.
At , all 24 configuration groups have lower mean target RMSE after fitting, but also lower mean realized-graph F1. For example, among 60 two-dimensional type-cycle runs, the mean target RMSE is for the fit versus for midpoints, while mean realized-graph F1 is versus . These are means of per-run scores. The midpoint baseline is itself an admissible equal-weight fit, and the same imposed targets enter both fitting and its error evaluation; lower in-sample target error therefore does not establish better recovery of the generating geometry. The perturbation laws and numerical protocol are detailed in D.3.4.
6.3 Optional refinement: benefits and failures
In the previous tests, the generating neighbor pairs are known. Experiments E and H add other pairs as candidates and ask whether the optional refinement can identify a more useful subset of observations. Every candidate set contains all generating neighbor pairs. In E, their targets receive small random errors, while the additional candidates receive approximate midpoint targets. H combines the enlarged candidate set with structured separator changes of the kind used in G.
We compare a one-pass fit using every candidate observation with the refined fit. For pair selection, the one-pass result selects candidates whose requested faces are realized; refinement selects the observations in its returned active set. Precision, recall and F1 compare these selections with the fixed set of generating neighbor pairs. Thus the scores concern selection among the candidates, rather than all adjacencies of the final diagram. Separator RMSE is evaluated on that same fixed reference-pair set, against clean generating separators in E and the imposed, potentially incompatible targets in H. All separator errors are in normalized-coordinate units.
| Study | Score | One pass | Refined | Better | Tied | Worse |
|---|---|---|---|---|---|---|
| E (20) | RMSE | 0.00790 | 0.00385 | 19 | 0 | 1 |
| F1 | 0.99253 | 0.99479 | 4 | 15 | 1 | |
| H (, 72) | RMSE | 0.13118 | 0.13422 | 70 | 0 | 2 |
| F1 | 0.96755 | 0.96701 | 19 | 32 | 21 |
In E, refinement approximately halves the mean error against clean separators, while the already high mean pair-selection F1 changes little (Table 1). All 20 refinements reach the implemented self-consistency condition. The main benefit in these instances is therefore more accurate separator positions; it is not a substantial improvement in pair selection.
H shows why frequent improvements and a favorable mean need not coincide. Error decreases in 70 of the 72 positive-mismatch comparisons, yet its mean increases because of a severe adverse case. One run worsens from to with unchanged pair-selection F1 and stops after a previously seen active set recurs. Across all 96 H refinements, including zero mismatch, 85 stop on the implemented self-consistency test and 11 after an active set recurs. The recorded final inner fits have optimal status, but the recurrence of an active set does not establish convergence of the outer updates. The error, selected pairs and stopping outcome must therefore be assessed separately.
7 A molecular application
Atomic systems are a natural application of space partitions: the nuclei supply fixed sites, and cells assign a region of space to each atom. Voronoi-based constructions have long been used to study atomic volumes and molecular packing (Richards, 1974). Ordinary Voronoi cells place each pairwise dividing plane halfway between the nuclei, independently of their species or electronic environment. Radius-dependent radical, or power, diagrams allow unequal atomic sizes (Gellatly and Finney, 1982); more recent work also optimizes their radii using electron-density integrals and fluctuations of atomic and molecular charges (Brehm and Thomas, 2021). The question for an inverse construction is therefore which physical observations should determine the weights.
The Quantum Theory of Atoms in Molecules (QTAIM) supplies a physically motivated reference partition. It divides the electron density into basins whose gradient-ascent paths lead to the same attractor, usually associated with a nucleus (Bader et al., 1980; Bader, 1990). Along their boundaries the density gradient has zero normal component. This zero-flux condition has a quantum-mechanical justification in the formulation of atoms as open subsystems by Bader (1994). Basin integrals give atomic electron populations and charges, while the density’s gradient-path network describes relations between atomic regions (Bader, 1990). Thus this partition provides both integral quantities and local geometric information to approximate.
Here we ask how much of that local information a power diagram can represent while keeping the nuclei fixed. Related inverse problems use cell volumes and centroids as data (Bourne et al., 2025). Our aim is instead to locate selected interatomic separators and examine which pairs acquire shared faces. Approximating the full curved boundaries would require more extensive boundary information, such as surface samples, and a specified measure of discrepancy. We use a simpler available observation: a bond critical point (BCP), a density saddle on an interatomic boundary from which two gradient-ascent branches lead toward the neighboring atomic attractors (Bader et al., 1980).
For the connector-normal plane family fixed by the nuclear positions, a BCP specifies one target offset. Its orthogonal projection onto the connector defines a target plane that also passes through the original point. Fitting these offsets reconciles local boundary landmarks into one set of atomic weights; it need not preserve every target exactly. Nor does a plane through a landmark necessarily give the best approximation to a whole curved interface. Figure 7 illustrates the projection and the curved boundary; E gives the physical background and experimental protocols.
The benchmark contains 100 molecules and 3,975 BCP-supported reference pairs (Experiment J1). Of these, 3,703 are bonded and 272 nonbonded, where bonded means adjacency in the explicit-hydrogen RDKit molecular graph (Landrum et al., 2026). Both groups contain BCPs; their names refer to this separate connectivity convention. We report them separately because pooled scores are dominated by the bonded pairs. The experiments first examine separator accuracy on the known reference pairs, then replace that input with distance-selected candidates, and finally assess the information supplied by local geometric diagnostics. Their measured outputs are separator locations and pair labels, rather than complete QTAIM basin shapes or volumes.
7.1 Separator fitting on known atom pairs
Experiment J2 assumes that the QTAIM-supported pair graph is known. We compare ordinary midpoints with a local proatomic prediction, which locates a minimum of the sum of two radial atomic density profiles along the nuclear connector for unlike atoms and uses the midpoint for homonuclear pairs. A one-pass weight fit reconciles these proatomic observations using a single weight per atom. A separate QTAIM-target reference fit instead fits the projected BCP coordinates directly, testing how those landmarks can be represented on the same known pair graph.
Both fits minimize squared error in normalized separator coordinates, using unit observation weights, no weight regularization and no hard measurement restrictions. They are performed separately on each molecule’s full reference graph. Table 2 evaluates all four models on the original reference pairs, without filtering by face realization. Errors are measured in Å and pooled over the individual pairs in each stated subset. The displayed length errors and subset errors therefore differ from the quantities minimized in fitting. Further predictor and aggregation details are in E.3.
| Subset | Midpoint | Proatomic | Proatomic fit | QTAIM-target fit |
|---|---|---|---|---|
| All | 0.1332 | 0.0452 | 0.0473 | 0.0169 |
| Bonded | 0.1317 | 0.0457 | 0.0461 | 0.0062 |
| Nonbonded | 0.1528 | 0.0372 | 0.0619 | 0.0605 |
The local proatomic predictor has substantially smaller RMSE than midpoint prediction. The fitted proatomic model has a slightly larger overall RMSE than the local predictor, with a more marked difference on nonbonded pairs ( versus Å). Both fitted models realize every requested reference pair, so the deterioration is not caused by losing difficult pairs from the evaluation. The direct QTAIM-target fit also leaves a larger nonbonded than bonded error. These results distinguish the accuracy of a local predictor from the accuracy retained when its outputs are reconciled into one power diagram. Because the QTAIM-target fit minimizes normalized-coordinate error over each molecule’s full reference graph, its nonbonded RMSE should not be interpreted as a lower bound on attainable length error for that subset.
7.2 Fitting from candidate pairs
Experiment J3 removes the assumption that the reference pairs are known during fitting. Candidate pairs are selected by distance, with cutoffs of , and Å, and receive proatomic separator predictions. The one-pass weight fit uses the same squared loss and fitting settings as in J2, now on each molecule’s full candidate graph. Each cutoff contains all 3,975 reference pairs. Increasing the cutoff therefore adds other observations without increasing reference coverage. The reference-pair RMSE of the resulting fit rises from to Å between the smallest and largest cutoff. All reference pairs are realized and included in these errors. The complete cutoff comparison is given in Table 4.
We then examine which realized pairs agree with the QTAIM reference. This evaluation uses the entire realized adjacency graph, including pairs outside the input candidate set. Connector visibility is applied afterwards as a geometric filter, using the tolerance-inclusive membership test on clipped faces specified in E.4. At the Å cutoff, it retains 5,703 pairs, including 3,973 of the 3,975 reference pairs: visible precision is and recall is . The aggregate result conceals a substantial difference between pair classes. Bonded recovery is nearly exact (F1 approximately ); among the retained nonbonded pairs, only belong to the reference set. Thus almost all reference pairs are retained, but many additional nonbonded pairs remain. These additional pairs are absent from the adopted BCP-supported reference set; that label alone does not determine whether a contact has chemical significance.
J3 uses one-pass fitting followed by geometric filtering. It does not update the fitted observation set through the optional refinement of Section 5.3. The next experiment asks whether clearance provides information beyond the binary visibility decision.
7.3 Geometric diagnostics for nonbonded contacts
A visible connector point may lie near the boundary of its clipped face or well inside it. Experiment J4b tests whether the clipped connector-centered clearance from Eq. (50) helps distinguish QTAIM-supported from additional pairs among the already visible nonbonded faces. Clearance and face area are measured in the reference box, formed by padding the atomic-coordinate bounding box by Å. We rank faces by larger clearance, shorter pair distance or larger face area. Average precision (AP) summarizes how well each ranking places reference pairs ahead of additional pairs; its definition and eligible populations are specified in E.5.
Table 3 pools eligible faces across molecules, separately for an ordinary Voronoi diagram and the J3 power fit at Å. Within each population, clearance has higher AP than distance or area. For the fitted-power population, median clearance is Å on reference pairs and Å on additional pairs. The two models have different eligible populations, so the comparisons among ranking variables are made within each row of the table.
| Model | Visible pairs | QTAIM+ | Clearance AP | Short-dist. AP | Area AP |
|---|---|---|---|---|---|
| Voronoi | 2,269 | 258 | 0.707 | 0.641 | 0.150 |
| Power fit | 1,998 | 270 | 0.830 | 0.636 | 0.161 |
Checks on the recorded realized faces also confirm agreement between the analytic visibility and clipped-clearance calculations and the tessellation-based diagnostics (J4a; E.5). The ranking result is a pooled comparison, rather than a statement about every individual molecule. It shows that clearance supplies additional discriminatory information within these visible-face populations, where binary visibility alone retains many nonbonded pairs outside the reference.
8 Discussion
Applying the fixed-site separator model begins with deciding what the observations represent. A measured interface point and a numerical prediction can supply the same kind of offset while carrying different uncertainties and biases. The sites fix the plane’s orientation, so fitting its offset alone does not establish agreement with the orientation or curvature of a physical interface. Measurement units and fitting weights should therefore reflect the intended discrepancy. Pair assignments require the same care: in periodic problems, a selected image is part of an observation’s identity. The image tests in Section 6.2 show that selected images may be realized in the fitted diagram even when they do not match the generating images.
Incomplete observations leave ambiguities that improved numerical accuracy cannot resolve. The deletion experiment in Figure 5 preserves accurate relative weights within each connected component while leaving the weight offsets between components undetermined. Choosing the missing offsets selects a diagram; additional observations or suitable constraints are needed to restrict those choices. Even with a connected observation graph, sensitivity to noise depends on its structure and fitting weights. The deterministic estimates in C describe that response for a fixed fitting problem, but do not supply a statistical uncertainty model for a new source of observations.
Fitting error also answers a different question from agreement with an independent reference. In Figure 6, closer agreement with altered separator targets accompanies poorer recovery of the generating adjacency graph. In the molecular comparison, reconciling local proatomic predictions increases the pooled nonbonded separator RMSE from to Å, although every requested reference pair remains realized (Table 2). The fitting objective uses normalized coordinates on each molecule’s full reference graph, whereas the reported RMSE is a pooled length error for the nonbonded subset. This comparison therefore does not isolate an unavoidable loss due to compatibility alone. These examples make independent evaluation essential: neither a smaller fitting residual nor successful face realization establishes fidelity to the intended reference geometry.
Local support needs a similarly specific interpretation. Connector membership checks whether a face contains the separator’s intersection with the line through its sites; it does not assess the entire face’s agreement with a physical boundary. In the molecular experiments, the test uses clipped faces and a tolerance that admits boundary cases beyond strict positive-margin visibility. It retains almost all reference pairs but also many additional nonbonded pairs. Among the visible nonbonded faces, clearance helps distinguish reference pairs within each model’s evaluated population (Table 3), yet supplies neither a universal selection threshold nor a chemical interpretation of every additional pair. Domain clipping and periodic competitors must likewise enter the geometric checks in other applications.
Optional refinement introduces a further empirical choice. Its face-driven changes to the fitted observation set improve separator accuracy in the clean-reference comparison of Section 6.3. With structured mismatch, error against the imposed targets decreases in most paired comparisons, yet its mean increases because of a severe adverse case. Refinement therefore requires evaluation of the returned errors, selected observations and final geometry alongside the stopping outcome. Optimality of a final inner fit does not establish convergence of the outer updates, and recurrence of an observation set serves only as an implemented stopping criterion. The one-pass construction provides the baseline for assessing this optional step.
Other sources of local separator information, such as sampled interfaces or landmarks of physical fields, can be treated through the same observation model when pair assignments and fixed plane orientations are meaningful. Each application still needs its own criterion for assessing the resulting partition against the geometry or physical quantities it is intended to represent.
9 Conclusions
This work provides a reproducible method for fitting power diagrams to selected numerical separator observations at fixed sites. The affine relation between separator positions and weight differences reduces exact compatibility and identifiability to graph conditions, and unconstrained quadratic fitting to a weighted graph-Laplacian problem. Compatible observations determine relative weights within each connected component; a connected observation graph determines all weights up to a common shift that leaves the diagram unchanged. Synthetic tests with exact compatible data recover these observable differences to numerical precision and show how missing observations limit reconstruction.
Geometric assessment asks whether the cells share a face and whether it contains the fitted plane’s intersection with the line through the sites. When this point lies inside the face, centered clearance measures its in-plane distance to the boundary. For finite nonperiodic configurations, a strict power-distance advantage of the pair over all competing sites at this point certifies a shared face containing an in-plane neighborhood of that point. The perturbation bounds give sufficient conditions for retaining this local advantage. Clipping and periodicity require the corresponding domain and image checks.
The experiments show that agreement with supplied separators and with an independent reference can diverge. In synthetic tests, better target fitting can accompany poorer recovery of reference adjacencies. In the 100-molecule application, fits using the known reference pairs realize all their requested faces, although reconciling local predictions from atomic density profiles does not necessarily improve separator accuracy against electron-density landmarks. With distance-selected candidates, connector-visibility filtering retains 3,973 of the 3,975 reference pairs, together with additional nonbonded pairs. Centered clearance adds further information: among visible nonbonded faces, it ranks QTAIM-supported reference pairs more effectively than distance or face area within each model’s evaluated population. These findings concern local separator positions and pair relations; complete QTAIM basins have not been reconstructed or validated.
Optional face-driven refinement improves accuracy in some tests and degrades it in others, and its stopping diagnostics do not establish general convergence. The main outcome is a method for turning incomplete local separator information into a global power diagram whose identifiable weight information, realized faces and local geometric support can each be examined explicitly.
Statements and Declarations
Funding
This research received no external funding.
Competing interests
The author develops and maintains pyvoro2, the open-source software used and evaluated in this work. The author declares no other competing interests.
Code, data, and manuscript availability
Declaration of generative AI and AI-assisted technologies
During the preparation of this work, the author used ChatGPT and Codex (OpenAI, using multiple GPT model versions) to assist with manuscript planning, drafting and editing, mathematical and editorial review, source-code inspection and development, and verification and interpretation of archived computational results. All seven figures were rendered programmatically with Matplotlib 3.10.8 using code developed with AI assistance; no direct AI image generation was used. The figure-generation code and underlying experimental records are available in the versioned archive cited above. The resulting figures and calculations were reviewed against their source code, mathematical definitions and archived numerical evidence. The author remains responsible for the research design, scientific claims, numerical evidence, figures and conclusions.
References
- Alexa (2020) Alexa, M.: Conforming weighted Delaunay triangulations. ACM Transactions on Graphics 39(6), 248 (2020) https://doi.org/10.1145/3414685.3417776
- Aurenhammer (1987) Aurenhammer, F.: Power diagrams: Properties, algorithms and applications. SIAM Journal on Computing 16(1), 78–96 (1987) https://doi.org/10.1137/0216006
- Aurenhammer et al. (1998) Aurenhammer, F., Hoffmann, F., Aronov, B.: Minkowski-type theorems and least-squares clustering. Algorithmica 20, 61–76 (1998) https://doi.org/10.1007/PL00009187
- Bader (1990) Bader, R.F.W.: Atoms in Molecules: A Quantum Theory. Oxford University Press, Oxford (1990)
- Bader (1994) Bader, R.F.W.: Principle of stationary action and the definition of a proper open system. Physical Review B 49(19), 13348–13356 (1994) https://doi.org/10.1103/PhysRevB.49.13348
- Bader et al. (1980) Bader, R.F.W., Tal, Y., Anderson, S.G., Nguyen-Dang, T.T.: Quantum topology: Theory of molecular structure and its change. Israel Journal of Chemistry 19(1–4), 8–29 (1980) https://doi.org/10.1002/ijch.198000003
- Becke (1993) Becke, A.D.: Density-functional thermochemistry. III. the role of exact exchange. The Journal of Chemical Physics 98(7), 5648–5652 (1993) https://doi.org/10.1063/1.464913
- Bellman (1958) Bellman, R.: On a routing problem. Quarterly of Applied Mathematics 16(1), 87–90 (1958) https://doi.org/10.1090/qam/102435
- Bogiokas et al. (2025) Bogiokas, D., Finnendahl, U., Seidelmann, T., Alexa, M.: Sums of wedges: Conforming weighted Delaunay triangulations are polynomial in fixed dimension. ACM Transactions on Graphics 44(6), 248 (2025) https://doi.org/10.1145/3763368
- Bourne et al. (2020) Bourne, D.P., Kok, P.J.J., Roper, S.M., Spanjer, W.D.T.: Laguerre tessellations and polycrystalline microstructures: A fast algorithm for generating grains of given volumes. Philosophical Magazine 100(21), 2677–2707 (2020) https://doi.org/10.1080/14786435.2020.1790053
- Bourne et al. (2025) Bourne, D.P., Pearce, M., Roper, S.M.: Inverting Laguerre tessellations: Recovering tessellations from the volumes and centroids of their cells using optimal transport. ESAIM: Mathematical Modelling and Numerical Analysis 59(2), 841–871 (2025) https://doi.org/10.1051/m2an/2025004
- Boyd et al. (2011) Boyd, S., Parikh, N., Chu, E., Peleato, B., Eckstein, J.: Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends in Machine Learning 3(1), 1–122 (2011) https://doi.org/10.1561/2200000016
- Boys (1950) Boys, S.F.: Electronic wave functions. I. A general method of calculation for the stationary states of any molecular system. Proceedings of the Royal Society of London. Series A 200(1063), 542–554 (1950) https://doi.org/10.1098/rspa.1950.0036
- Brehm and Thomas (2021) Brehm, M., Thomas, M.: Optimized atomic partial charges and radii defined by radical Voronoi tessellation of bulk phase simulations. Molecules 26(7), 1875 (2021) https://doi.org/10.3390/molecules26071875
- Chernyshov (2026a) Chernyshov, I.Y.: powerfit: reproducibility materials for inverse fitting of power-diagram weights. Zenodo. Version 2.0.0; revised manuscript and reproducibility materials (2026a). https://doi.org/10.5281/zenodo.24047266
- Chernyshov (2026b) Chernyshov, I.Y.: pyvoro2: 2D/3D Voronoi and power/Laguerre tessellations with periodic topology and inverse power fitting. Zenodo. Version 0.6.3 (2026b). https://doi.org/10.5281/zenodo.19143984
- Cormen et al. (2009) Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 3rd edn. The MIT Press, Cambridge, MA (2009)
- Duan et al. (2014) Duan, Q., Kroese, D.P., Brereton, T., Spettl, A., Schmidt, V.: Inverting Laguerre tessellations. The Computer Journal 57(9), 1431–1440 (2014) https://doi.org/10.1093/comjnl/bxu029
- Gellatly and Finney (1982) Gellatly, B.J., Finney, J.L.: Characterisation of models of multicomponent amorphous metals: The radical alternative to the Voronoi polyhedron. Journal of Non-Crystalline Solids 50(3), 313–329 (1982) https://doi.org/10.1016/0022-3093(82)90093-X
- Huber (1964) Huber, P.J.: Robust estimation of a location parameter. The Annals of Mathematical Statistics 35(1), 73–101 (1964) https://doi.org/10.1214/aoms/1177703732
- Jiang et al. (2011) Jiang, X., Lim, L.-H., Yao, Y., Ye, Y.: Statistical ranking and combinatorial Hodge theory. Mathematical Programming 127(1), 203–244 (2011) https://doi.org/10.1007/s10107-010-0419-x
- Kim et al. (2025) Kim, S., Chen, J., Cheng, T., Gindulyte, A., He, J., He, S., Li, Q., Shoemaker, B.A., Thiessen, P.A., Yu, B., Zaslavsky, L., Zhang, J., Bolton, E.E.: PubChem 2025 update. Nucleic Acids Research 53(D1) (2025) https://doi.org/10.1093/nar/gkae1059 . pp. D1516–D1525
- Landrum et al. (2026) Landrum, G., et al.: rdkit/rdkit: 2026_03_1 (Q1 2026) Release. Zenodo. Version Release_2026_03_1 (2026). https://doi.org/10.5281/zenodo.19250388
- Lu (2024) Lu, T.: A comprehensive electron wavefunction analysis toolbox for chemists, Multiwfn. The Journal of Chemical Physics 161(8), 082503 (2024) https://doi.org/10.1063/5.0216272
- Lu and Chen (2012) Lu, T., Chen, F.: Multiwfn: A multifunctional wavefunction analyzer. Journal of Computational Chemistry 33(5), 580–592 (2012) https://doi.org/10.1002/jcc.22885
- Okabe et al. (2000) Okabe, A., Boots, B., Sugihara, K., Chiu, S.N.: Spatial Tessellations: Concepts and Applications of Voronoi Diagrams, 2nd edn. John Wiley & Sons, Chichester (2000). https://doi.org/10.1002/9780470317013
- Richards (1974) Richards, F.M.: The interpretation of protein structures: Total volume, group volume distributions and packing density. Journal of Molecular Biology 82(1), 1–14 (1974) https://doi.org/10.1016/0022-2836(74)90570-1
- Rockafellar (1970) Rockafellar, R.T.: Convex Analysis. Princeton Mathematical Series, vol. 28. Princeton University Press, Princeton, NJ (1970)
- Rycroft (2009) Rycroft, C.H.: VORO++: A three-dimensional Voronoi cell library in C++. Chaos: An Interdisciplinary Journal of Nonlinear Science 19(4), 041111 (2009) https://doi.org/10.1063/1.3215722
- Spettl et al. (2016) Spettl, A., Brereton, T., Duan, Q., Werz, T., Krill, C.E. III, Kroese, D.P., Schmidt, V.: Fitting Laguerre tessellation approximations to tomographic image data. Philosophical Magazine 96(2), 166–189 (2016) https://doi.org/10.1080/14786435.2015.1125540
- Stephens et al. (1994) Stephens, P.J., Devlin, F.J., Chabalowski, C.F., Frisch, M.J.: Ab initio calculation of vibrational absorption and circular dichroism spectra using density functional force fields. The Journal of Physical Chemistry 98(45), 11623–11627 (1994) https://doi.org/10.1021/j100096a001
- Sun et al. (2020) Sun, Q., Zhang, X., Banerjee, S., Bao, P., Barbry, M., Blunt, N.S., Bogdanov, N.A., Booth, G.H., Chen, J., Cui, Z.-H., Eriksen, J.J., Gao, Y., Guo, S., Hermann, J., Hermes, M.R., Koh, K., Koval, P., Lehtola, S., Li, Z., Liu, J., Mardirossian, N., McClain, J.D., Motta, M., Mussard, B., Pham, H.Q., Pulkin, A., Purwanto, W., Robinson, P.J., Ronca, E., Sayfutyarova, E.R., Scheurer, M., Schurkus, H.F., Smith, J.E.T., Sun, C., Sun, S.-N., Upadhyay, S., Wagner, L.K., Wang, X., White, A., Whitfield, J.D., Williamson, M.J., Wouters, S., Yang, J., Yu, J.M., Zhu, T., Berkelbach, T.C., Sharma, S., Sokolov, A.Y., Chan, G.K.-L.: Recent developments in the PySCF program package. The Journal of Chemical Physics 153(2), 024109 (2020) https://doi.org/10.1063/5.0006074
- Wang and Song (2016) Wang, L.-P., Song, C.: Geometry optimization made simple with translation and rotation coordinates. The Journal of Chemical Physics 144(21), 214108 (2016) https://doi.org/10.1063/1.4952956
- Weigend and Ahlrichs (2005) Weigend, F., Ahlrichs, R.: Balanced basis sets of split valence, triple zeta valence and quadruple zeta valence quality for H to Rn: Design and assessment of accuracy. Physical Chemistry Chemical Physics 7(18), 3297–3305 (2005) https://doi.org/10.1039/B508541A
Appendix A Supplementary graph and optimization arguments
Here we prove that the constrained quadratic fit in Eq. (24) attains its minimum and describe all its minimizers.
A.1 Attainment of the constrained quadratic fit
Assume is positive diagonal and the hard-feasible set in Eq. (23) is nonempty. Put and . Then the objective is . Since is a polyhedron, its linear image is also a polyhedron (Rockafellar, 1970, Theorem 19.3) and hence a nonempty closed convex subset of . The Euclidean projection of onto exists. Every point of has a feasible preimage by its definition, so choosing one preimage of this projection gives a minimizer of Eq. (24). To characterize all minimizers, let be one of them. The Euclidean projection onto is unique, so another feasible weight vector minimizes the same objective if and only if . Since is positive diagonal, . Consequently,
| (52) |
Thus, hard restrictions can limit the componentwise offsets between fitting minimizers, while a common additive shift of all site weights always remains possible. ∎
Appendix B Geometric support, degeneracies, and domains
We first examine how ties affect connector visibility and face dimension, then distinguish clearance at a connector point inside the face from distance to the face when that point lies outside it. The last two subsections explain how clipping and selected periodic images affect these checks.
B.1 Weak visibility, persistent ties, and face dimension
Consider a finite set of distinct sites in with finite real weights. Fix , and let and be the pairwise connector point and bisector defined in Section 4. Every point can be written with . As in Eq. (39), the competing-site inequalities restricted to are
| (53) |
Thus the common cell intersection is a (possibly empty or unbounded) closed convex polyhedron within .
Weak connector visibility, for all , is exactly the condition ; it need not imply that lies in the interior within the full -dimensional hyperplane . Conversely, strict positivity of every competitor gap suffices for such interior membership, but is not necessary in the presence of persistent ties.
In particular, when , inequality (53) is constant throughout . If , it excludes the entire bisector; if , it imposes no restriction on the face; if , it is an equality throughout and does not reduce the extent of within the bisector. In contrast, when and , the corresponding halfspace boundary within passes through . No ball of positive radius centered at within can then be contained in .
For an explicit persistent tie, take , , and . At every point of , all three power distances agree. Consequently and , yet identically. Here and are full-dimensional cells sharing a facet, but site , whose cell is degenerate, also attains the minimum power distance there. Thus interior membership does not exclude a third minimizing site or imply strict visibility. If instead the selected pair is , then while has empty ambient interior; full-dimensionality of the intersection within its bisector does not by itself certify that both selected cells are full-dimensional.
We always use , the interior relative to the entire pairwise bisector, not the ordinary relative interior within . The latter is nonempty for every nonempty convex face, including a singleton, and would fail to distinguish full-dimensional interfaces.
B.2 Centered clearance and exterior distance to a face
The gap inequalities (53) also describe the distance to a realized face when the connector point itself is not feasible. Define
| (54) |
Then
| (55) |
The set is a closed convex polyhedron, possibly empty.
Interior clearance
If , the largest radius of a closed Euclidean ball within centered at and contained in satisfies
| (56) |
with the minimum of an empty set interpreted as . Indeed, the minimum of each affine gap over the centered ball of radius is ; all these values must be nonnegative. The same argument works when , not only when it is positive. A zero gap with nonzero forces ; a zero gap with imposes no in-bisector restriction. When no constraint has a nonzero projected normal and , the whole bisector is contained in the face and . Redundant halfspaces do not affect this derivation.
Exterior distance
If but , define its exterior face distance as the inherited Euclidean distance within the bisector,
| (57) |
Using (55), this distance is computed by the convex quadratic program
| (58) |
For a nonempty face the minimum is attained at a unique point: this is Euclidean projection onto a nonempty closed convex set. If the inequalities are infeasible, and the standard distance-to-set convention gives ; there is then no nearest point. The quantity measures distance to the specified pair’s face, not to the closest face of any site pair in the full diagram.
Why negative clearance ratios are not exterior distances
Consider the formal algebraic extension
| (59) |
For a violated inequality with nonzero projected normal, the positive quantity is the distance from to the feasible halfspace for that single inequality. The full face is the intersection of all halfspaces, so its distance from can exceed each individual halfspace distance, and the intersection itself may be empty. Constant violated inequalities () are another obstruction: they make the whole face empty without appearing in (59).
An explicit example with a nonempty face occurs in . Take
| (60) |
Here , , and the two competitor inequalities require and . The face is the nonempty quadrant , so
| (61) |
In the four-site configuration of Eq. (29) with , the face is instead empty despite a finite negative formal ratio. Hence a negative continuation of the centered-clearance formula cannot be identified with a signed distance to the true face. The centered interior radius and the distance to a realized face are therefore distinct geometric quantities.
B.3 Clipping to a convex box
For a convex box or, more generally, a fixed convex polytope
| (62) |
the clipped intersection is . Each domain inequality restricted to takes the form
| (63) |
Let be orthogonal projection onto . When , the largest radius of a centered in-bisector ball contained in is
| (64) |
with empty minimum ; a constraint with zero projected normal has no effect on motion within when already satisfied at .
If , the centered radius of the clipped intersection is exactly by the two families of halfspace inequalities. The strict-visibility and interior-domain hypotheses in Section 4.4 guarantee that this value is positive; at the boundary, ties and domain-wall coincidences require explicit attention.
When a domain wall coincides with , a clipped intersection may have nonempty -dimensional interior within without forming an interface between two full-dimensional cells inside . An interior-domain strict witness is a sufficient way to exclude this boundary-only behavior, but not a necessary condition for every useful clipped geometric intersection. No analogous finite halfspace formula is claimed here for arbitrary nonconvex clipping domains.
B.4 Selected periodic images and competitor scope
For a fixed lattice with translations , a geometric site instance has position and retains base weight . A periodic pair observation specifies two selected instances, such as and . The bisector and its connector point are computed for those instances; their competitors are all other instances. In particular, other copies of base sites or must not be discarded merely because their base indices match one of the endpoints. Distinct base sites may be equivalent modulo the lattice: a coincident unselected image produces a constant competitor power-gap inequality, which is redundant, excludes the selected cell, or creates a persistent tie depending on its sign. The observed selected endpoints must still be distinct as required in Section 2.
The same affine pointwise power inequalities and in-bisector projection arguments apply to each selected instance and competitor. However, an infinite collection of image inequalities is not automatically a finite polyhedron, and an arbitrary neighbor-image stencil does not establish a complete exact realization test or a uniform finite stability constant. An exact finite reduction requires a justified region of interest and relevant-image bound.
Let and let denote orthogonal projection onto . For every in the power cell of the selected instance , competition with the other images of site confines to the compact lattice Voronoi region in . For images of any competing base site, the component of squared distance is independent of the shift, and all images share the same weight. Thus, for each competing base site, its nearest image depends only on , and finitely many shifts suffice over the compact projected region even when the nonperiodic directions are unbounded. This supplies a route to a finite relevant-image reduction for selected cells and their faces under fixed partial periodicity.
It does not justify an arbitrary fixed image stencil or a uniform competitor set for connector points that move without restriction as weights change. Changing lattice geometry also requires separate control. Section 4 therefore does not extend its finite-competitor stability estimate to an unrestricted periodic theorem.
Appendix C Perturbation estimates for fitted weights and geometric diagnostics
We begin with the response of signed competitor gaps to weight perturbations, then propagate observation errors through a fixed least-squares fit. The remaining subsections account for discrepancies between the reference fit and independently specified weights, and state the competitor assumptions needed in periodic domains.
C.1 Fixed-site signed-gap stability
For a fixed finite competitor set, Eq. (43) gives an exact affine change in each gap with coefficient sum zero, so a common global shift of the weights leaves all gaps invariant. The minimum-gap bound (45) follows from the elementary inequality .
Invariance under a common weight shift sharpens the bound to
| (65) |
Only the global constant may be removed here: shifting disconnected components of the fitting graph separately need not preserve the full power diagram or its gaps. If the competitor set is empty, by convention and the ordinary finite Lipschitz inequality is not applied.
For a finite competitor set, any nonzero reference gap with perturbation bound smaller than its absolute value retains its sign. This is a certificate for the chosen connector-visibility diagnostic, not a statement that all faces or all combinatorial adjacencies of the power diagram persist.
C.2 Sensitivity of a fixed weighted least-squares fit
Let be the incidence matrix of a fixed observation graph, let have strictly positive entries, and put . Suppose , where is the number of observation-graph connected components. Let have orthonormal columns spanning . Choosing this subspace is equivalent to a zero-mean convention within each observation component.
On this identifiable subspace, the reduced matrix is positive definite. For a target vector , the unique least-squares solution with zero mean in each observation component is
| (66) |
For a reference target (possibly incompatible) and perturbed target , define and . The exact response identity is
| (67) |
This statement does not identify with an arbitrary independently chosen vector of true physical weights. It relates two minimizers of the same fixed quadratic fitting problem evaluated at different target vectors, with the same component-offset convention. Other fixed linear gauges admit analogous expressions. A convention with fixed nonzero component offsets adds a constant vector to but does not alter the response to .
Write for the Laplacian seminorm. The fitted difference perturbation is a weighted orthogonal projection of onto the column space of , giving
| (68) |
To see this, put . The vector is the orthogonal projection of onto , and therefore cannot have larger Euclidean norm.
If the observations are perturbed by in their original measurement units, then and imply
| (69) |
This identity is deterministic and requires no statistical error assumptions.
With , the spectral inequality on the chosen subspace yields
| (70) |
For the orthogonal component-centered convention, this minimum eigenvalue is the smallest positive eigenvalue of . For a different chosen gauge, a reduced operator must be specified; the full Laplacian’s smallest positive eigenvalue must not be used indiscriminately for every pinned representation.
If has rank zero, there are no identifiable differences from the fitting objective. The response vanishes under the zero-component-mean convention, but the geometry still depends on whatever intercomponent offsets are supplied by other modeling choices.
C.3 Reference-fit qualification and conditional sign identification
Let be any independently specified reference weight vector, with its global additive constant aligned for comparison. The reference fitted solution need not equal , even in the absence of measurement noise. By the triangle inequality,
| (71) |
The second term is a deterministic model/reference-fit bias, which may include unconstrained component-offset choices. A common global shift in either weight vector is immaterial to the power diagram, whereas independently shifting components is generally not.
For a fixed finite competitor set, a sufficient condition for the perturbed fit to have the same sign of connector score as the physical reference is
| (72) |
provided the reference score is nonzero. The sufficient sign-preservation condition in Section 4.4 is the special case in which the comparison is made to itself, so the deterministic bias term is absent. This condition remains valid even for incompatible .
These implications concern preservation of the sign of a nonzero connector score, not the identification of all actual power faces. In particular, they do not imply one-step recovery of a prescribed topology, nor convergence of an outer iteration in which the observation mask, fitting weights, or realization diagnostic are updated. With hard constraints, the fitted response need not be globally linear, so a single fixed operator cannot be used without further analysis.
C.4 Scope of periodic perturbation bounds
For a fixed finite set of selected periodic image instances, the same affine competitor-gap calculation applies, with base-site weight variables repeated across image copies and the geometry held fixed. The resulting coefficients must be assembled for the actual image-labelled selected pair and competitor list.
For the complete infinite periodic configuration, no universal finite constant of the form (44) is asserted without a justified finite relevant-image reduction or other uniform control on the competitors over the weight neighborhood of interest. Likewise, clipping introduces the additional domain-wall margin described in B.3; weight-gap stability alone does not imply a positive clipped clearance. Neither caveat alters the exact finite, nonperiodic argument.
Appendix D Algorithmic and experimental details
We first analyze the streak-based update of Section 5.3. Its hysteresis requires consecutive consistent diagnostics before changing a row’s membership. We then specify the implementation conventions and document the synthetic protocols and evaluation populations used in Section 6.
D.1 Conditional rowwise hysteresis stabilization
Let be the active observation mask before evaluation , and let be its requested-image realized-face diagnostic. Each row has nonnegative integer add/drop streak counters, with fixed thresholds . An incoming one increases its add counter and resets its drop counter; an incoming zero does the reverse. The update to activates an inactive row once its add counter reaches , and deactivates an active row once its drop counter reaches .
Set . Suppose that consecutive rowwise updates are actually executed and their incoming diagnostic masks satisfy
for one fixed . Then , regardless of the preceding active mask and streak counters. If subsequent evaluated masks also equal , active-mask agreement persists for those subsequent updates.
Fix a row . If , each update in the specified window increments the add streak and resets the drop streak. After at most updates the row is active, and it cannot be dropped while that incoming value remains one. If , the analogous argument with the drop streak makes the row inactive after at most updates, and it cannot be added while the incoming value remains zero. This holds independently for each row and therefore for the whole mask. ∎
This is a property of the Boolean update conditional on executed mask updates with a stationary incoming mask. It neither proves that the fit and tessellation generate such a stationary mask nor guarantees that the loop survives its other stopping tests for updates. In particular, it supplies no convergence theorem for the outer solver. Stability of a connector-visibility sign under a fixed-site weight perturbation, proved in Section 4.4, does not establish stability of the requested-image realized-face predicate used here.
D.2 Implementation scope and final-state conventions
The conventions below describe pyvoro2 0.6.3, source snapshot eaffdcb (Chernyshov, 2026b).
Inputs and image diagnostics
The realization procedure operates on resolved observations in two or three spatial dimensions. The observation confidences are the fitting weights ; the implementation allows them to be zero. A fitting call selects one measurement convention, and any hard restriction applies the same interval or fixed value in those units to every supplied row. Subsetting removes the restrictions on omitted rows. Supplied periodic shifts are preserved; missing shifts are resolved before fitting by the selected input policy, not by the mask update.
Requested-row matching distinguishes exact image identity from realization at another shift. The separate unaccounted-pair diagnostic instead checks whether an unordered base-site pair is absent from the candidate list. It excludes same-base image pairs and does not count additional shifts of an already represented base pair as unaccounted; it records the realized shifts of wholly absent base pairs. For each candidate row, the optional boundary measure refers to the requested image when that image is realized. Otherwise, if another image of the base pair is realized, the measure refers to the lexicographically first realized shift in the row’s orientation; with no realized image, the measure is unavailable.
Weight regularization
The declared and reported weight penalty in version 0.6.3 is
where is the supplied reference vector, or zero when none is supplied. Its strength is independent of the observation confidences. For squared mismatch, the implementation uses , where is the affine prediction from Eq. (5), without the factor used in Eq. (11). The analytic quadratic solver is consistent with this reported mismatch-plus-regularization objective. The frozen weight update in the alternating direction method of multipliers (ADMM) (Boyd et al., 2011), however, uses the effective penalty , while the objective reporter retains the coefficient . At positive regularization strength, ADMM convergence therefore does not certify minimization of the reported objective. The benchmark fits in Sections 6 and 7 use zero weight-regularization strength.
Component representatives
For mismatch-only fitting, the effective graph contains the positive-confidence rows. If hard restrictions or any additional penalties are configured, all supplied rows are included. With nonempty observations and zero weight-regularization strength, the standalone component solves pin one site per nontrivial component. A connected effective graph retains that pinned representative. For a disconnected effective graph, each component is subsequently shifted to zero mean, or to the mean of a supplied reference vector on that component even when its regularization strength is zero. Thus the raw connected output need not equal the component-centered representative of C.2. With no observations, the standalone solver returns the reference vector if supplied, and otherwise zeros; the same convention applies to singleton effective components when all observation confidences are zero and no restrictions or additional penalties are configured.
Positive weight regularization removes the need for the internal anchors, and the standalone solver does not subsequently center its result. The outer procedure nevertheless aligns every current effective component to the preceding evaluated weights whenever such a vector exists, including during final refitting. For an unregularized objective this changes only its component representatives. With positive regularization, it can change the regularization term after the inner solve; the stored inner fitting status is retained after alignment. For example, an empty active set has a regularization-only solution equal to the reference, but alignment of its singleton components restores the previous evaluated weights. Component offsets must therefore be interpreted as a continuation convention, not as new information recovered from absent pair data.
Stopping and finalization
The self-consistency test requires equality of the current, proposed, and requested-image realization masks, together with an evaluated-weight step at most the tolerance. The first step is defined as zero. An inner iterative fit that reaches its iteration limit can still supply weights to this test, so outer self-consistency does not certify inner convergence. After the self-consistency test, a changed proposed mask is checked against previous recorded mask entries. The initial mask is recorded at iteration zero, and timestamps are updated only on mask changes. The cycle window measures outer iterations since a recorded entry; iterations without a mask change do not refresh its timestamp. No full-state periodic orbit is certified, and an outer-iteration limit has no implied self-consistency.
An inner failure that returns no weights exits the loop immediately, with all-false realization flags and unavailable predictions rather than diagnostics from a constructed tessellation. After a normal loop stop, the updated active mask is used for a final unrelaxed fitting attempt. Returned weights are aligned and rematched, so the final diagram can differ from the last relaxed intermediate diagram. Final numerical failure replaces the outer label by numerical_failure and clears the outer convergence flag. Final hard infeasibility is recorded as infeasible_hard_constraints in the nested fit and need not replace the preceding outer label. If the final fit returns no weights, the realization diagnostics are retained from the preceding evaluation and all-candidate predictions are unavailable (stored as NaN). The nested fit status and weight availability must therefore be checked before treating those diagnostics as a newly fitted diagram.
Residual populations
For available final weights, the returned residual fields have distinct populations:
| Residual fields | Population |
|---|---|
| fit.residuals, fit.rms_residual, fit.max_residual | Final active rows |
| diagnostics.residuals, rms_residual_all, max_residual_all | All original candidate rows |
Both RMS summaries are the square root of the unweighted arithmetic mean of squared residuals in the selected measurement units, irrespective of the confidence weights used in fitting. An empty population is assigned zero. The iteration history and path summary describe the evaluated outer-loop path; the final refit and rematching do not add another outer-iteration record.
D.3 Synthetic experimental protocols and evaluation populations
The powerfit version 2.0.0 archive (Chernyshov, 2026a) contains the experiment code, configurations, and numerical outputs. These experimental materials are unchanged from version 1.0.0. The files experiments/registry/README.md and results/README.md map the labels A–H to their scripts and result directories. The Experiment C results reported here use the dense sweep in results/missing_data_manuscript/.
D.3.1 Exact recovery, missing observations, and hard feasibility
Experiment A contains eight configurations with two runs each: two or three dimensions, periodic or nonperiodic domains, and either the full realized-pair graph or an observation subgraph with two components. The site counts are 16 in two dimensions and 24 in three. Requested-image face recall is the fraction of supplied observations whose specified pair and image share a face after fitting. In the nonperiodic three-dimensional two-component configuration, its mean over the two runs is . This population comprises the supplied observations, rather than every adjacency of the generating diagram.
Experiment C contains 2,470 noiseless runs, with ten independently generated instances at each dimension, site count and requested retention level. The requested fractions range from to in steps of . A connected generating pair graph is sampled for each instance; the number of retained observations is the requested fraction times the original count, rounded to an integer and bounded between one and the original count. Different retention levels therefore use independent instances, rather than nested removals from one common diagram. Requested and actual retained fractions can differ slightly because of rounding.
Both weight errors average over all sites. Global alignment subtracts the mean fitted-to-generating weight difference once, while componentwise alignment subtracts that mean separately within each observed component. The latter uses the known generating weights; it is an oracle evaluation convention, not an estimator of unidentified intercomponent offsets. Figure 5 uses in both dimensions. At each requested fraction, the median per-run weight RMSE is taken before applying the display floor , so its logarithmic ordinate corresponds to , not the median of log errors. The connected fraction is empirical across the ten runs and does not specify a universal connectivity threshold.
Experiment D applies a separate experiment-side difference-bound feasibility checker to 30 generated three-observation cycles. Its individual observations admit separate bounds, unlike the common measurement restriction in the fitting interface described in Section 5.1. In the between-points contradiction, one observation is restricted to while the other two retain exact equality targets; the interval alone is not asserted to make a complete cycle infeasible. The experiment-side Bellman–Ford implementation correctly classifies these controlled instances. It does not exercise the production hard-bound precheck or establish its behavior on arbitrary numerical inputs.
D.3.2 Observation noise and outliers
Experiment B contains 144 runs on nonperiodic generating diagrams, with 16 sites in two dimensions and 24 in three. There are six replicates for each method, dimension and noise condition. Gaussian and Laplace errors have standard deviations or in normalized separator coordinates; the Laplace scale is the specified standard deviation divided by . The sparse-outlier conditions instead use a Gaussian background of standard deviation and add independently signed offsets of magnitude to nominal fractions or of the observations. For observations, distinct rows are sampled without replacement, so the realized contamination fraction need not equal .
The quadratic fit uses the analytic solver. The Huber fit uses a threshold of in normalized-coordinate units and is solved by ADMM (Boyd et al., 2011), with the archived limit of 5,000 iterations and ADMM penalty parameter . Clean-reference separator RMSE is evaluated on the original generating pair observations against their uncorrupted targets. In the two-dimensional nominal outlier condition, the mean of the six per-run RMSE values is for quadratic fitting and for Huber fitting. Together with the comparison in Section 6.1, these are results for the specified outlier conditions; the Gaussian and Laplace comparisons do not establish uniform Huber superiority.
D.3.3 Periodic image choices
Experiment F contains 132 archived result records based on six generating instances per dimension, with 16 sites in two dimensions and 24 in three. The scenarios include correct supplied images, a correct-image control with Gaussian noise of standard deviation in normalized separator coordinates, deliberately incorrect supplied images, nearest-image inference after removing the labels, and a separate realized-shift refinement of the inferred images. Nominal image corruption fractions are , and .
In the supplied-label scenario, the selected shifts are authoritative: weight fitting preserves them. At nominal corruption in three dimensions, the mean fraction of labels agreeing with the generating shifts is , whereas the mean fraction of rows with a positive realized_other_shift diagnostic is approximately . The first compares input choices with known truth; the second detects another image in the fitted geometry. Each is calculated on the supplied rows within a run and then averaged over the six instances.
For the separate inference scenarios, removing the image labels produces identical inputs across the three nominal corruption fractions for a given generating instance. Those repeated records are not independent corruption-sweep results. The realized-shift procedure starts from nearest images and permits up to three rounds of reassignment using uniquely realized shifts. In the three-dimensional cases its mean correct-image fraction is , despite a requested-image realization rate of one and an other-image diagnostic rate of zero. It revises inferred shifts on the stripped-label input; it neither repairs the authoritative labels in the other scenario nor tests the face-driven active-observation update of Section 5.3.
D.3.4 Structured mismatch and optional refinement
Perturbation laws and graph comparison
Experiments G and H add to exact normalized separator coordinates . For the type-cycle law, assign three site types and use a preference matrix with , and zero diagonal:
where is the median distance among the supplied pairs. G also uses a local-context law
where is the negative mean distance to the four nearest sites, standardized over sites to zero mean and unit variance. The generator sets all to zero if the unstandardized standard deviation is at most . In both laws, the perturbed target is clipped to ; thus exact targets outside the nominal clipping interval are preserved when .
G keeps the generating diagram’s true pair graph as its observation set. Its 2,280 runs combine random geometries with a minimum site separation and perturbed lattices, two dimensions with , three dimensions with , and ten replicates per configuration. Besides the exact control, each perturbation law uses amplitudes , , , , , , , and . Separator error compares the fit or midpoint prediction with the imposed targets used in fitting. Graph precision, recall and F1 instead compare all unordered realized adjacency pairs with the generating pair graph.
At , the two geometries, two dimensions, three sizes per dimension and two laws give 24 groups with ten runs each. Relative to the midpoint baseline, realized-graph F1 decreases in 193 of these 240 runs, increases in 36 and is unchanged in 11; fitted target RMSE decreases in all 240. The representative 60-run averages in Section 6.2 combine both geometries and all three sizes for the two-dimensional type-cycle cases. They are arithmetic means of per-run RMSE and F1 values, rather than RMSE pooled over observations or F1 pooled over graph-edge counts.
Candidate sets, fitting settings and evaluation populations
E and H use 16 sites in two dimensions and 24 in three. Their candidate sets unite all generating true pairs with either a symmetric nearest-neighbor graph ( in two dimensions and in three) or pairs within four times the median nearest-neighbor distance. Candidate recall is therefore one by construction. E applies independent Gaussian noise of standard deviation to the normalized separator coordinates of true pairs and assigns midpoint-centered Gaussian surrogate targets of standard deviation to additional pairs. H applies the type-cycle law to the normalized separator coordinates of all candidate pairs at .
Both studies use analytic inner fits. The outer settings are addition threshold one, removal threshold two, relaxation one, at most 25 outer iterations, an eight-iteration mask-history window and weight-step tolerance . These runs do not test under-relaxation. E has 20 paired instances; H has 96, of which 72 have positive mismatch. The E/H table excludes H’s 24 zero-mismatch comparisons, while its stopping counts include them.
For the one-pass fit, selection uses the realized_same_shift diagnostic. Refinement instead returns the final active observation mask. Selected-pair precision, recall and F1 compare these masks with the fixed generating true-pair mask on the original candidate set. They do not score the entire realized adjacency graph, and a retained observation need not be realized after the final refit. Both methods’ separator errors use the same fixed generating true-pair subset, without filtering by either selection: E compares with clean generating-power separators, whereas H compares with the imposed, potentially incompatible targets. The table reports arithmetic means of per-run scores and paired change counts, not pooled-row errors.
All 20 E refinements stop as self_consistent. Across all 96 H refinements, the outer labels are 85 self_consistent and 11 cycle_detected, while the recorded final inner fits have optimal status. The final optimal status does not establish optimality of earlier inner fits or convergence of the outer updates. A repeated active mask is distinct from an infeasible difference-constraint cycle and does not establish a periodic orbit of the full numerical state.
Appendix E Molecular background and experimental details
We first describe the QTAIM partition and the conversion of a boundary landmark into a separator observation. The remaining subsections document the molecular dataset and predictors, the candidate-pair comparison, and the populations and limits of the auxiliary geometric checks. The background in E.1 and E.2 can be read before the results in Section 7.
E.1 Atomic regions and the density-based reference
A molecule has identifiable nuclei but a continuous electron density shared throughout space. In calculations with atom-centered Gaussian basis sets, the molecular orbitals are expanded in functions centered on the nuclei (Boys, 1950; Weigend and Ahlrichs, 2005). These basis functions are built from Gaussians multiplied by polynomial factors. In a real basis , the density has the form
where is the density matrix in that basis. Products involving different centers contribute to the density between atoms. The result is a molecular density, rather than a sum of independent spherical atomic densities; the locations of the basis centers do not prescribe its basin boundaries.
QTAIM defines those basins from the gradient field of the total density: points whose gradient-ascent paths end at the same attractor belong to one basin, with attractors usually associated with nuclei (Bader et al., 1980; Bader, 1990). At regular points of an interatomic boundary with normal , the field is tangent to the boundary:
Integrating over an atomic basin gives its electron population; subtracting this population from the nuclear charge gives the atomic charge in units of the elementary charge (Bader, 1990).
The zero-flux condition also has a physical role. Bader (1994) connects it to a generalization of Schwinger’s principle of stationary action for open quantum subsystems. An atom defined in this way remains an interacting part of the molecule. The condition concerns the gradient of the density, not an electronic current or isolation from the other atoms. This connection to subsystem quantum mechanics motivates QTAIM as a reference beyond a purely geometric division of space.
The basin boundaries need not be planar or perpendicular to nuclear connectors. A nondegenerate bond critical point (BCP) is a stationary point of with two negative and one positive Hessian eigenvalues. Its two ascending branches are tangent at the BCP to the positive-curvature eigenvector. They lead toward neighboring atomic attractors and together form a bond path (Bader et al., 1980; Bader, 1990). The BCP lies on the intervening basin boundary and supplies a local landmark associated with that atom pair. The experiments use these landmarks to assess separator positions and pair relations; they do not compare complete basin surfaces, electron populations or atomic charges.
E.2 From a critical point to a separator observation
Let be the BCP associated with nuclei , and retain the notation and . Its normalized connector coordinate and projected point are
| (73) |
The connector-normal target plane through is
Since , this plane also passes through . Projection therefore preserves all offset information that the BCP can provide for this fixed-normal family. In particular, the transverse displacement is neither a longitudinal separator error nor, by itself, evidence that the observation is incompatible with a power diagram.
For fitted weights , the pairwise plane has the same normal but may have a different offset. Its distance from the original BCP is exactly
| (74) |
Equation (74) explains the length error used for the fitted models. It concerns the infinite pairwise plane. Even zero distance does not place on the actual shared face: the other atoms may dominate the power distance there, as in the general distinction of Section 4.1.
Nor does a plane through one boundary point necessarily approximate the whole boundary well. Its normal is constrained by the nuclear connector, while the physical boundary can have a different tangent plane and nonzero curvature (Figure 7). The boundary’s intersection with the connector need not be . A best plane approximation to a surface patch would require a choice of patch and error criterion, which is not part of these experiments. In addition, offsets from different BCPs can violate the cycle compatibility condition of Section 3. These are separate limitations of the chosen geometric family and the available observations.
E.3 Dataset, predictors and error aggregation
The J1 benchmark contains 100 neutral singlet molecules, with 50 acyclic and 50 cyclic structures containing H, C, N, O, F, S and Cl. The dataset was assembled through deterministic PubChem searches (Kim et al., 2025), followed by RDKit filtering and deduplication by molecular connectivity (Landrum et al., 2026). The selection records and final molecule manifest are in data/qtaim_main/ of the powerfit version 2.0.0 archive (Chernyshov, 2026a). Its scripts/qtaim/README.md describes the calculation pipeline, and results/qtaim_main/README.md locates the J1–J4 result records.
Geometry optimization used geomeTRIC (Wang and Song, 2016) with PySCF energies and gradients; the subsequent single-point calculations also used PySCF (Sun et al., 2020). Both used the B3LYP functional (Becke, 1993; Stephens et al., 1994) and def2-SVP basis (Weigend and Ahlrichs, 2005). Multiwfn supplies the critical points and their reported atom-pair associations (Lu and Chen, 2012; Lu, 2024); the reference graph uses those associations, deduplicated as unordered pairs. A separate explicit-hydrogen RDKit graph supplies the bonded label: two atoms are bonded precisely when their graph distance is one. Thus both bonded and nonbonded reference pairs can have a BCP.
The archive’s reproduction environment is specified in environments/requirements-lock-py313.txt. It includes PySCF 2.12.1, geomeTRIC 1.1 and RDKit 2026.3.1.
J1 also records the BCP distance from the nuclear connector. A distance at most Å occurs for 3,637 of the 3,703 bonded reference pairs (), but only 3 of the 272 nonbonded pairs (). This describes the landmarks’ spatial distribution; by Eq. (73), off-axis displacement alone does not create a separator-offset error.
The proatomic inputs are spherically averaged radial electron-density profiles of isolated neutral ground-state atoms, computed with PySCF at B3LYP/def2-SVP and exported through Multiwfn. For unlike atoms separated by , a bounded scalar minimization locates a minimum of
The radial profiles use piecewise cubic Hermite interpolation. Homonuclear pairs are assigned . The lookup covers separations from to Å at Å spacing. At application time, it linearly interpolates the position and the normalized fraction separately as functions of . Consequently need not equal between tabulated distances. The raw proatomic length error uses the former; the fitted model takes the latter as its observations.
All J2 and J3 fits minimize squared mismatch to their normalized separator targets, separately for each molecule. They use unit observation weights, zero weight-regularization strength and no hard measurement restrictions. J2 uses the full reference graph, whereas J3 uses the distance-selected candidate graph.
For an evaluated subset of pairs pooled across molecules, the reported length error is
| (75) |
where for a fitted model and for the raw proatomic prediction. The midpoint error is . These are not means of per-molecule RMSE; molecules with more evaluated pairs contribute more terms. For J2’s direct BCP-target reference fit, the normalized-coordinate objective weights by in length-error notation and does not separately minimize the nonbonded subset error.
E.4 Candidate graphs and realized pairs
The nonperiodic molecular diagrams use atom-coordinate bounding boxes padded by Å in the reference calculations. The distance cutoffs selecting J3’s input pairs are a separate choice.
| Cutoff (Å) | Candidates | Realized | Visible | RMSE | Visible precision | Visible recall |
|---|---|---|---|---|---|---|
| 4.0 | 27,178 | 19,472 | 5,704 | 0.0746 | 0.6965 | 0.9995 |
| 4.5 | 32,991 | 19,463 | 5,700 | 0.0770 | 0.6970 | 0.9995 |
| 5.0 | 39,054 | 19,468 | 5,703 | 0.0786 | 0.6967 | 0.9995 |
A realized pair is counted as visible when the connector-line intersection belongs to its clipped face under the archived polygon-membership test (Chernyshov, 2026b). This numerical convention includes boundary points rather than requiring a strictly positive analytic gap. In orthonormal face coordinates measured in Å, the test treats oriented edge cross products of magnitude at most Å2 as zero. The resulting intersection_inside flag supplies the visibility filter in J3 and the eligible-face selection in J4b.
Table 4 collects the three cutoff settings. Every setting contains and realizes all 3,975 reference pairs, which are evaluated before visibility filtering. The visible subset retains 3,973 reference pairs in each setting.
Pairs outside the candidate set account for 2,360, 1,660 and 1,059 of the realized pairs at cutoffs , and Å, respectively; after visibility filtering, the corresponding counts are 21, 3 and 0. These counts illustrate why a score restricted to input pairs can differ from J3’s whole-diagram pair evaluation. Visibility is a post hoc filter here and does not trigger a new fit.
E.5 Local diagnostics and limits of the auxiliary checks
J4a compares the analytic formulas with diagnostics computed from the tessellation in the reference box. The visibility decisions agree on all 38,746 recorded faces. On the 11,677 visible faces, the maximum clipped-clearance discrepancy is Å. The population consists of faces already reported by the tessellation; this check does not test detection of missing faces.
For J4b, eligible faces are realized, connector-visible under the convention of E.4, and nonbonded under the RDKit convention. Faces from all molecules are pooled separately for the ordinary Voronoi model and the J3 power fit at the Å cutoff. The ranked clearance is from Eq. (50); both clearance and face area refer to the clipped reference-box diagrams. Each population is ranked by decreasing clearance, decreasing face area, or increasing pair distance. Writing for the QTAIM-reference label at rank and , the archived average precision is
It is the mean precision at the ranks occupied by positive reference pairs. The archived stable sort preserves record order for equal scores. This calculation is performed once on each pooled population, rather than averaging molecule-level AP values. The exploratory clearance cutoff of Å in the source archive is not a calibrated classification rule.
The additional J4c molecular illustrations use fits to projected BCP targets, not J3’s proatomic candidate observations. They are therefore not used here as evidence for that prediction pipeline. J4d varies box margins over , , and Å. Voronoi geometries are recomputed, giving 18,798, 19,278, 19,605 and 19,830 realized-pair records. In contrast, all 19,468 records for the fitted power diagrams are reused unchanged at each margin. These repetitions do not independently establish robustness of the fitted diagrams to a changed clipping box.