Manuscript Offprint
arXiv:2610.20995The Komlós Problem in Matrix-Multiplication Time
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We give a randomized algorithm that, for an matrix whose columns have Euclidean norm at most one, finds a signing with discrepancy below 99 in expected bit operations, where is the input encoding length and is the exponent of matrix multiplication. The previous fastest algorithm with a constant discrepancy bound, due to Li [Li26], is deterministic and uses arithmetic operations. We build on the spectral signing framework of Guo, Fang, and Lu [GFL26a] and of Li [Li26], which rounds a single fractional coloring while one spectral potential controls every row. Li's potential tracks a top eigenvalue, and the gap below that eigenvalue, which can be of order , limits the length of every step. We replace it with a resolvent potential that is smooth without any gap condition, and we draw step signs at random, so that the potential only needs to be concave while progress is measured separately. Our key insight is to reuse a single subspace of directions throughout a batch of steps, thereby using only one spectral computation, so that the more expensive linear algebraic operations are paid for only polylogarithmically often at each scale. Within a batch, we sample directions from a Gaussian completion matrix whose inverse we maintain under rank-one row replacements [van21]. Finally, we use a finite-precision analysis to prove stability of the algorithm and attain the bit-complexity bound.
1 Introduction
The Komlós problem asks how well we can balance vectors in the Euclidean unit ball by assigning signs of [Spe87]. For a matrix , its signing discrepancy is
Given the promise that for all , the Komlós problem asks whether an absolute constant bounds independently of both dimensions. In the Beck–Fiala setting [BF81], each element of a universe belongs to at most sets, so dividing the incidence matrix by normalizes its columns to Euclidean norm at most 1, and a constant Komlós bound gives an imbalance of in every set. Vector balancing also has natural applications to rounding: the theorem of Lovász, Spencer, and Vesztergombi [LSV86] rounds any to some with , so a bound on each column's Euclidean norm controls the error in every linear measurement, independently of the number of variables and measurements. Furthermore vector balancing has seen a number of applications in machine learning and statistics such as coresets for large datasets [LAK26], attention approximation [KSH 26], covariate balance in experimental design [HSSZ24], and distribution thinning [CGS 25] where balancing a set of vectors in two parts allows one to approximate the whole by some carefully chosen subset. The Komlós problem was a longstanding conjecture in discrepancy theory until it was recently resolved by Guo, Fang, and Lu [GFL26b]. In this work, we study the time needed to find a signing.
Algorithmic discrepancy theory offers several starting points. The earliest algorithms, due to Bansal [Ban10], used semidefinite programs to correlate the increments of a random walk and obtained algorithmic counterparts of entropy-method bounds. Lovett and Meka [LM15] replaced this optimization step by a walk in the subspace orthogonal to nearly tight constraints; their partial-coloring algorithm illustrates a principle that also guides our construction, namely to protect a small collection of constraints while the remaining dimensions make progress. For vector balancing, Banaszczyk's Gaussian-measure theorem [Ban98] gives discrepancy under normalized column norms. Dadush, Garg, Lovett, and Nikolov [DGLN19] connected that theorem to subgaussian distributions over signed sums, which the Gram–Schmidt walk [BDGL19] samples efficiently. Guo, Fang, and Lu [GFL26b] proved that the constant suffices (see also the shorter proof of Karingula and Lovett [KL26], with constant 36), and introduced a polynomial-time spectral signing algorithm [GFL26a]. Li [Li26] developed this framework into a deterministic algorithm with discrepancy below 99 and arithmetic cost .
Theorem 1.1. There exists a randomized algorithm that takes any with column norms at most 1, and returns with in expected bit operations.
Remark 1.2. For real-valued inputs, the idealized algorithm uses operations in a model that assigns unit cost to field operations, comparisons, square roots, and scalar Gaussian samples, and the finite-bit algorithm approximates these normalizations and gives Gaussian digits from random bits [Kar16]. For rational entries of at most B bits, the input term becomes .
1.2 Proof Overview
We begin by reviewing the spectral signing approach of [GFL26a, Li26]. Spectral signing moves a fractional coloring from the origin to a vertex of the cube. Every medium row carries two concave barriers, one for each sign of its discrepancy, and rows near their barriers are protected so that, by concavity, their barriers cannot increase. The barrier weights enter an entrywise nonnegative Gram matrix , and bounding its top eigenvalue bounds and hence the number of protected rows. Li's algorithm [Li26] tracks this eigenvalue, slightly regularized, with a potential that is both the safety device and the progress clock: each full step chooses the better of and lowers the potential by a definite amount. That requires the top eigenvalue to be smooth along the step, hence a gap below it, and Li's regularizer guarantees a gap of only order at the start. Steps must therefore be tiny, and the algorithm makes updates, each paying for a fresh round of dense matrix computations. Li observes that a faster algorithm needs a potential that, like the top eigenvalue, controls the averages of the Gram matrix over every set of active coordinates, while being smooth at a coarser scale [Li26, Section 12]. We keep Li's barriers, affine row representations, and final constant, and change three things: the potential, the way steps are signed, and how often the spectral computation is paid for. Two smaller departures are the retirement of rows with tiny mass and a rational weight function, which we describe in further detail in Section 2.1.
In an ambient space of s active coordinates, we use the resolvent potential
(1.2) where M is PSD and entrywise nonnegative, with . It is a barrier for : finite and nonnegative on that region, it blows up as increases to b, so along a path that starts inside the region a bounded potential keeps the top eigenvalue below b, and Li's count of nearly tight rows still applies. Its Neumann series has nonnegative terms, so decreases when entries of decrease or a coordinate is fixed, which is the property Li asks for. Unlike the top eigenvalue, it is a rational function of on the whole region, so repeated or crossing eigenvalues cost nothing.
Each step first exposes a proposal, a direction and a length clipped so that both stay in the cube, and only then draws a fair sign . If is concave on the segment, then , so the potential is a supermartingale and Doob's inequality keeps it below a cap. Here, we measure progress separately by the coordinate energy , which grows by in expectation (Theorem 3.1). The step length is therefore set, up to a logarithmic factor needed for concentration, by the inverse-polylogarithmic radius of the region where concavity is certified, and the walk takes steps instead of Li's .
However, recomputing a curvature subspace at every step would still cost , and dynamic inverse maintenance does not help directly, since a step changes every row weight and hence changes M by a matrix of high rank. Therefore, we instead compute a subspace at an anchor and reuse it for a batch of steps. Theorem 2.1 finds a subspace of dimension at least on which the Hessian of satisfies , a margin measured against the barriers' own concavity, and shows that this certificate survives a trust window of inverse-polylogarithmic radius once nearly tight rows and rows of large load are frozen (Section 2.2). Each direction's normal is added as a constraint, so directions within a batch are nearly orthogonal and, with the fair signs, the walk stays in its window. A batch ends after about constraints, so an epoch, which ends when the number of active coordinates halves, contains only polylogarithmically many anchors. Within a batch, directions come from a square Gaussian completion matrix whose rows are the constraints so far, hidden Gaussian rows, and one reference row. The vector is annihilated by every row except the reference row, and since the common kernel of Gaussian rows in dimensions is a uniformly random line, it yields a nearly isotropic feasible direction (Theorem 4.1). Adding a constraint overwrites one hidden row, in a predetermined order, which gives the setting of van den Brand, Nanongkai, and Saranurak [vNS19], and amortized work per operation (Theorem 5.1).
Finally, we note that retiring rows of tiny mass leaves rows per anchor, so each epoch costs , and the geometrically shrinking epochs sum to . Section 6 implements the algorithm with polylogarithmic-bit numbers, using gap-free approximate diagonalization [Sha24] at anchors and dithered rounding that couples the sampler to an exact reference process. From here, independently restarting the process yields the expected-time bound.
1.3 Related Work
Bansal's semidefinite-programming algorithm [Ban10] and the Lovett-Meka walk [LM15] made classical discrepancy bounds constructive. Levy, Ramadas, and Rothvoss [LRR17] obtained deterministic algorithms through multiplicative weights. Bansal and Garg [BG17] controlled the full rounding trajectory to avoid the accumulation of partial-coloring errors, while Bansal [Ban24] combined iterated rounding with concentration. The stochastic framework of Bansal, Laddha, and Vempala [BLV22] and the regularization framework of Pesenti and Vladu [PV23] give broader ways to design walks and discrepancy potentials. Banaszczyk's Gaussian-measure theorem [Ban98] gives an Komlós bound. Bansal, Dadush, and Garg [BDG19] made this bound algorithmic. Dadush, Garg, Lovett, and Nikolov [DGLN19] related vector balancing to subgaussian signed sums, and the Gram-Schmidt walk [BDGL19] efficiently constructs such distributions. More recently,
Bansal and Jiang [BJ26] improved the Komlós bound to through affine spectral independence. Guillen and Kobzar [GK26] proved a constant bound when signs may be arbitrary complex numbers of unit modulus. Their concave energy barriers are among the precursors of the spectral signing framework used here. On the other hand, fast implementations pose a separate problem. The self-balancing walk of Alweiss, Liu, and Sawhney [ALS21] gives logarithmic Komlós bounds in linear time, and Larsen [Lar23] gives faster algorithms with hereditary guarantees. Our analysis instead combines an absolute discrepancy bound with nearly matrix-multiplication time. Its computational tools come from dynamic inverse maintenance [vNS19] and the matrix-formula framework [van21]. Stable fast linear algebra [DDH07] and the bit-complexity analysis of dynamic algebraic formulas [AvGZ24] address numerical implementation. These tools become useful here after the geometric analysis limits how often the walk rebuilds its curvature subspace.
1.4 Notation
We use Euclidean vector norms and operator matrix norms unless a subscript indicates otherwise. Matrices are bold. For quadratic forms, means . Matrix inequalities use the Loewner order unless we explicitly specify entrywise comparison, and denotes the all-ones vector. We write . Several objects come from Li [Li26], sometimes under different names; for example, Li's , , and are our , , and , and Li's is a top eigenvalue. Symbols introduced inside a proof in the appendices are local to that proof.
The potential is (which we shorten to in Appendices B, C, and F where is fixed). The calligraphic is the set of frozen rows when it is an index set (Section 2.2) and the exposed history in conditional expectations, and the italic is the feasible subspace in Section 4 and Appendix D. Besides the spectral level (or in epoch ) and the coefficient vectors , counts constraint slots in Section 4. The index ranges over coordinates, except in , , , where it indexes epochs. and are caps, and is a curvature matrix. We let , where is the augmented completion matrix. We use to index steps, to be a step length, and to be a load. Then, bounds , in Theorem 5.1 and Appendix E and abbreviates in Appendix A. Inside proofs in Appendices D and E, may name a local quantity; elsewhere . Finally, is the energy of row and the coordinate energy; unqualified “energy” in Section 3 and Appendix F means the latter. (Li uses that name for .)
2 The batched signing algorithm
We begin by recalling the framework we use from Li (Section 2.1), which gives the new batch certificate (Section 2.2), and assembles the algorithm.
2.1 The framework from Li
The walk maintains a fractional coloring , starting at . A coordinate is fixed once it reaches , and denotes the set of active coordinates. This subsection follows Li [Li26, Section 3], except for the retirement of rows with very small mass and a rational weight function. Rows with , whose discrepancy never exceeds one, are discarded first, and fewer than rows remain (Appendix A), at a cost of arithmetic operations.
Row is represented by an affine function with tracked value . Initially, we have and . Moving the term into the offset leaves unchanged and removes coordinate from the row's future motion. This costs nothing if is fixed. If is active, the true and tracked rows later differ by , at most , and Appendix A adds up these defects at the final signing. Now, define the squared coefficients , the mass , and the energy , which measures how much the row can still move. Because the columns of have norm at most one, we have , , and , while . Set . A nonretired row is large if , medium if , and completed if . Here, large rows are held in place: their tracked values stay zero until they become medium. Li achieves this by repairing offsets. In our algorithm, all directions satisfy for every large row. Since , there are fewer than large rows.
At each anchor, fixed-column entries are transferred to the offsets, and medium-row entries with are deleted, that is, transferred even though their coordinate is active, in a fixed order. Large rows undergo no deletions, mass never increases, and every surviving medium row satisfies the spread condition . Each medium row also has a nonincreasing rational scale with and , where ; Appendix A gives a choice using rational comparisons. Li avoids evaluating every row at every step by means of a weak charge on the tracked values and a motion clock. Instead of this approach, we stop tracking rows whose mass is tiny. Choose for a sufficiently small absolute . After transfers and deletions, rows with are retired from spectral and derivative calculations: record and , transfer to , and set . The later discrepancy of a retired row is a small random error (Theorem 3.2), and since , at most nonempty rows remain.
Algorithm 1 collects these updates. It runs at every anchor, after the frozen weights of the preceding batch are released (Section 2.2), and the spectral matrices are built afterward.
Algorithm 1 Updating affine rows at an anchor
Require: Coloring x, active set V, remaining affine rows, cached masses and coefficient trees, existing scales, and cutoff .
1: for each remaining row i do
2: Transfer fixed-column entries to the offset, subtract their original squared coefficients from , update
3: their tree entries, and classify row i.
4: while and some do
5: Transfer the first eligible entry to the offset, subtract its original squared coefficient from , and
6: update its tree entry.
7: Complete row i if , or update by the scale rule if .
8: If , record , set and , and mark the row retired.
Each medium row carries two signed barriers, one for each direction of its discrepancy. Set the discrepancy threshold , and normalize each medium row's squared coefficients as . For sign , the barrier is
The energy term reserves room for fluctuations the row has not yet seen, and it makes the barrier concave in . Nonpositive barriers give for both signs, hence . At fixed representation and scale, and , so
In particular, a step orthogonal to can only lower the barrier, which is how protected rows are kept safe. Spread gives and . Hence , so
and . Also, , so at most one signed barrier per row lies in . With , retirement bounds the load across both signs by .
Li combines the barriers through a weighted Gram matrix whose weights grow as the barriers approach zero, and its weights are exponential. As our second departure, we use the rational weight with fixed degree , defined for all by
It approaches as grows, and it uses only field operations and integer powers. Medium rows contribute weighted rank-one terms, and large rows contribute diagonal deposits for their later transition to medium. Set and . Define the spectral matrix with
These matrices are PSD and entrywise nonnegative, with . For row updates, express each signed contribution as . Appendix A shows that initialization gives with all medium barriers below -20. Later row updates preserve tracked sums. Deletion and scale reduction decrease contributions entrywise, deposit replacement and retirement decrease them in Loewner order, and removing fixed coordinates takes a principal submatrix. An entrywise decrease need not be a Loewner decrease, so both comparisons are used below.
As in Li, the final constant is the barrier threshold plus the total deletion defect , which stay below 31673/320 < 99 (Theorem A.1). Li controls M through its top eigenvalue; we use the resolvent potential of (1.2) instead, which the monotonicity facts above make nonincreasing under row updates (Theorem B.1).
2.2 A subspace for an entire batch
This subsection contains the main new ingredient. At an anchor, we find many directions along which the resolvent potential is concave, and then show that the same directions remain valid throughout a batch of steps. Fix the row representations and scales at an anchor . For a signed medium row , write , , and . An anchor is admissible when , , and every . Write
We use the potential in (1.2). The resolvent is entrywise nonnegative, and at an admissible anchor.
Suppose that and . Set , , and . The load of row is . Protect every row with , and select heavy rows, each with , so that every remaining row has load at most . Let be the protected or heavy signed rows and the others. Form from the large-row vectors and the gradients for . Changes in ker preserve large-row sums and keep the fixed rows' barriers at most their anchor values. Fix the weights in at their anchor values.
Each kind of frozen row is frozen for its own reason. Protected rows are frozen so that every light row starts at least one unit below its threshold, and therefore stays negative throughout the window defined below. Heavy rows are frozen because the stability argument compares the resolvent vector at x with the one at , and a light row's influence on that vector is proportional to its load. Bounding every light load by is what keeps the constant polylogarithmic. Freezing is cheap: the counting in Appendix B shows that protected and heavy rows remove only a small fraction of the dimensions. With the frozen weights fixed, the batch matrix is
Its curvature splits into a positive term P and a diagonal negative term D:
(2.6)
Where , the Hessian is ; Appendix B gives the calculation. The subscript 0 denotes an evaluation at . To bound coordinate changes in the light barriers, we use the convex window
The certificate below asks for on a subspace, rather than only , which would already give concavity at . The margin is the slack that absorbs the drift of and as the walk moves through the window, and it is what lets one computation at serve a whole batch.
Proposition 2.1 (A valid subspace throughout a batch). At an admissible anchor with the row invariants above and the stated load and resolvent bounds, there exists a subspace with and for all . Here, one may choose any -dimensional nonpositive subspace of restricted to . For a universal , choose . Then, throughout , the batch matrix satisfies , fixed weights majorize their true weights, light barriers are negative, and for all , we have that
So, is concave on this set. If belong to it, where and , then an independent fair sign satisfies , and the step size may depend on and before choosing .
We include the proof in Appendix B.
2.3 Batched Spectral Signing
The algorithm chooses a subspace at each anchor. During the batch that follows, only the coloring and the completion sampler change; row representations, scales, and the anchor spectral matrices stay fixed. Set and . Choose the potential caps and , and the retirement cutoff . These give the load parameters , , and . The radius and step length satisfy and . Choose a dyadic within a factor two of this value and a power-of-two in this interval. Choose , sufficiently large and , sufficiently small for the bounds below. Replacing the logarithm in the cutoff from Section 2.1 by makes it rational and changes only . Epoch starts with active coordinates and uses the spectral barrier , ending when
Algorithm 2 Batched spectral signing with exact verification
Require: Rational with column norms at most 1.
Ensure: A signing with .
1: Round toward zero with .
2: Discard rows of with norm at most one.
3: if or no rows remain then return any signing in .
4: loop ▷ Each iteration is an independent trial.
5: Initialize , , and
6: Initialize cached masses and coefficient trees, , , and exposure count 0.
7: Apply Algorithm 1 and form , including the large-row deposits.
8: while do
9: if then
10: Set and , use barrier , and reset the exposure count.
11: if the exposure count reaches its cap then restart trial.
12: Construct the anchor and sampler below, then run Algorithm 3.
13: Reset the fixed majorants, apply Alg 1, and remove fixed coordinates from the ambient matrices.
14: Form by nearest-sign rounding, with a fixed tie rule at zero, and evaluate exactly.
15: if then return .
at most coordinates are active. Its exposure cap is , and its anchor potential cap is . A trial also restarts on the finite-precision failures described in Section 6.
Every signing that Algorithm 2 returns therefore satisfies
Discarded rows obey the same bound with 1 in place of 98.99. Section 3 proves that each capped trial succeeds with constant probability.
We now explain how to build an anchor. At an anchor , compute the row statistics, , and its resolvent. Protect each signed row with , and mark a row heavy when its load is at least ; any rule under which heavy rows have load at least and the others at most would do. Form from the large-row vectors and the gradients of protected or heavy rows, and fix these rows' weights at their anchor values. Compute a subspace of dimension as in Theorem 2.1, that is, a nonpositive subspace of restricted to ker , and obtain its sampling basis by the small Gaussian perturbation of Section 4. Give the batch constraint slots, with insertion count initially zero. For , choose an orthonormal basis of the batch span, sample with , and end the batch after one proposal. Otherwise form the hidden rows and initialize the augmented inverse from (4.5). In Section 6, we explain how these steps can be carried out in finite precision.
Fixed coordinates are removed from the ambient matrices at the next anchor.
3 Analysis of the walk
The analysis must show three things: coordinates reach within few steps, each batch stays in the region where its subspace is valid, and the potential stays bounded. This section treats the walk in exact arithmetic, assuming the anchor and sampler guarantees; numerical errors are handled in Section 6. We analyze a capped trial, stopping at the first invalid proposal and setting all later increments to zero.
Algorithm 3 One batch of coloring moves
Require: The current coloring, epoch counters, and the anchor and sampler.
Ensure: An updated coloring and epoch counters, or trial failure.
1: loop
2: Obtain unit by isotropic sampling in the batch span or (4.2), together with .
3: Quantize independently to ; set and mask fixed coordinates.
4: Set , draw a fresh fair sign , and move to .
5: Round the new point to the nearest dyadic point, preserving attained values .
6: Update , record newly fixed coordinates , set , and increment the exposure count.
7: Abort if the exposure cap is reached before the epoch ends.
8: return if the epoch ends, , sampling is explicit, or fewer than insertion slots remain.
9: for the self-normal , then each , with in increasing order do
10: Refresh the reference row, replace the next hidden row, and increment the insertion count.
11: return if no insertion slots remain.
Throughout, the endpoint sign of a step is drawn independently, after its direction and clipping length have been exposed. This order is essential. Midpoint concavity and every martingale bound below require the sign to be independent of the step it signs. The clipping length treats both endpoints symmetrically, so it can be computed before the sign is known.
Theorem 2.1 gives a subspace whose concavity persists throughout the batch window. We now bound the number of steps and show that the walk stays in this window.
3.1 Progress and batch counts
A symmetric move increases the expected squared distance from the origin, and when clipping shortens a move, at least one endpoint fixes a coordinate. Together, these two facts bound the number of queries.
Lemma 3.1 (Progress with clipped symmetric steps). Start with at most N active coordinates. Use directions in E with norm in that vanish on fixed coordinates, and independent fair endpoint signs. Stop at epoch completion or failure. Then, we have that
For an absolute , the probability that the epoch needs more than queries is at most .
Proof. Count all initial coordinates, including those fixed later. Conditional on the history and exposed direction, the expected energy is , which lies in . We sum the stopped identity over a bounded number of steps and apply monotone convergence for (3.1). Full steps contribute at least , giving (3.2). A short step has a clipping minimizer that at least one endpoint fixes. Let indicate a short step and count newly fixed coordinates. Then and , so , proving (3.3) for any clipped step length. From any later history, this also bounds expected remaining queries by . For and query count , conditional Markov bounds give and . Take and increase for the progress lemma.
Starting dimensions decrease geometrically, so the capped trial uses direction queries. In an epoch of initial size , exposures use at most slots: one self-normal per exposure and at most coordinate normals. Ordinary batches consume slots. If a coordinate group would exceed the remaining slots, charge that batch's termination to the group. Therefore
For explicit one-direction batches, and imply , so their count is at most . Thus each capped epoch has batches. There are at most epochs, giving batches per capped trial.
3.2 Concentration and final discrepancy
Self-constraints make successive directions nearly orthogonal within a batch. If , their Gram bound controls every coordinate and barrier gradient at once (see (C.1)). Adding each direction as a constraint is what yields this bound, and it is a single operator-norm bound covering all functionals at once, so the same estimate handles coordinates, barrier gradients, and retired rows, which the algorithm never examines. Concavity then makes the spectral potential a supermartingale, and the small norm of a retired row limits its later fluctuation even across many batches. The inner window is ; the step length keeps both proposed endpoints in the outer window.
Proposition 3.2 (Trial guarantees). The following hold jointly for the stopped capped walk with probability at least : every batch stays in its inner trust window. In epochs of initial size , every query state satisfies and , where is the active dimension before the query. The first bound also holds at the terminal endpoint before row updates. Every row's error after retirement is at most , including nearest-sign rounding of the last fewer than 64 coordinates.
Appendix C proves the proposition. The window bound uses the batch Gram inequality and independent endpoint signs. In a valid window the potential is concave, and row updates and epoch barrier increases cannot increase it, so Doob's inequality controls every epoch. For a retired row, the squared projections sum to over the capped trial, so sufficiently small proves the error bound. Proposition A.1 combines these guarantees with the barrier invariant to bound the final discrepancy. Section 6 adds numerical error and assembles the constant probability of passing exact verification.
4 Adaptive completion sampling
The walk needs directions that vanish on newly fixed coordinates and are almost orthogonal to earlier directions, so that cumulative motion remains controlled. Recomputing a feasible basis after every step would be costly. Instead, we impose each new constraint by replacing one row of a Gaussian completion matrix and obtain the next direction from an inverse column. Within each batch, fix satisfying and
We sample in through coefficient coordinates. Each exposed direction is added back as a constraint, which we call a self-constraint, alongside the constraints for newly fixed coordinates.
Form the first rows of as for independent in one matrix product. Its last, reference row is an independent , refreshed with scalar samples. Replace Gaussian rows in fixed order, calling the survivors hidden. For invertible , annihilates its first rows. The reference row orients and scales on their null line. With , we normalize by
In exact arithmetic one may take and . In finite precision, the dyadic rounder of Section 6 uses independent dithers to produce and with and . The self-constraint has physical normal , satisfying . Following Algorithm 3's insertion order and capacity check, each real insertion independently refreshes the reference row and replaces the next hidden row. Let be the common kernel of the real constraint normals, and write for the exposed history. This history contains directions, quantized outputs, walk decisions, and real constraints. It excludes hidden rows, raw reference rows, unnormalized outputs , and other inverse entries used internally. Stop before the first dependent real insertion, as determined by this history. Each earlier insertion removes one hidden row and one feasible dimension, leaving dim hidden rows. If , a self-normal cannot cause the first dependence: lies in the current feasible space , previous real normals are orthogonal to , and . So only a coordinate insertion can cause the stop.
Perturb the anchor basis , whose singular values lie in , using :
Set within the anchor's allowed error, condition on , and draw an independent hidden completion. For large constants , set . Choose so that and , with . Every nonexplicit batch then inserts at most constraints. This cap comes from the sampler, not from the trust window: the window argument uses only the Gram bound, which depends on the batch length only through , a negligible quantity because is inverse polynomial. The sampler needs the feasible dimension to stay at least , so that directions remain nearly isotropic, and its union bounds over sets of coordinates need to be smaller than by a logarithmic factor.
Theorem 4.1 (Completion-sampler guarantees). Fix and a polynomial upper bound on sampler operations in a trial. Choose the preceding constants sufficiently large and set with sufficiently large . For a basis satisfying (4.1), every query of the stopped process, with , satisfies for predictable
where is the orthogonal projection onto and the first bound is trivial for . With probability at least over the smoothed basis and sampler randomness, the basis satisfies (4.1), no real insertion is dependent, and every query matrix and every intermediate matrix after a reference refresh or real insertion satisfies for a fixed constant . The conditional estimates use only the exposed history, without conditioning on this high-probability event.
Proof idea. Exposing directions destroys Gaussian independence, but preserves a rotationally invariant law after a well-conditioned change of coordinates. Small self-normal errors change this conditioning only quadratically. Smoothing separates coordinate constraints from self-normals, and the remaining hidden rows have a quadratic singular-value lower tail. These bounds give a polynomially bounded right inverse for the first rows. The independent reference row resolves their null line by a Gaussian small-ball bound. Appendix D gives the proof.
In the explicit branch, use the isotropic direction specified in Section 2. Orthonormalization and one query cost , which is polylogarithmic because and . Return and without extra dense matrix-vector products by stacking . Let be the block lower-triangular matrix with diagonal blocks and and lower-left block . Its inverse gives all three outputs in one column:
Its dimension is and its norms remain polynomial because . Section 5 maintains this augmentation and includes its construction and all sampler operations in the run time.
5 Dynamic matrix formula maintenance and running time
Transpose (4.5) to turn row replacements into column updates and inverse-column requests into full-row queries [van21], returning y, z, w together. Because constraint slots are filled in a predetermined order, the data structure has weak index lookahead [vNS19]. The finite-precision theorem of [AvGZ24] assumes an offline index sequence, so Appendix E extends its additive Woodbury error analysis to these candidate sets. Given , and , the block identities give
The near-isometry of Z gives .
Each operation replaces a row or requests an inverse column, and it touches only the reference slot or the next constraint slot . Since increases by at most one per operation, the next operations use , which has at most indices. For and , and , so . Fixing several coordinates uses separate operations, meeting the condition of [vNS19, Def 6.3 and Thm 6.8].
Theorem 5.1 (Augmented inverse maintenance). Fix with , and assume update and query indices have nested candidate sets of size , available at the start of each horizon . Suppose throughout the operations that , and . For , a data structure returns the three unnormalized vectors in (4.5) with entrywise error at most in
bit operations. With exact arithmetic the data structure uses arithmetic operations.
Appendix E proves the theorem using a hierarchy of candidate inverse rows and additive backward-error control. Theorem 4.1 proves the norm hypothesis even between a reference refresh and the following insertion, with adaptive row values.
Running time. Each exposure or insertion uses dynamic operations and scalar work in Algorithm 3. By Section 2.1, there are at most live rows, since and . Including both signs gives signed rows since . We maintain incidence lists and permanent contributions, and update each mass by subtracting the squared coefficient whenever an entry is removed. At trial initialization, we build a segment tree on each row's list of nonzero entries in its fixed deletion order. Each node stores the largest surviving squared coefficient in its interval. Descending through intervals whose maximum exceeds finds the first eligible entry in work, deletion updates the tree in the same time. We remove fixed coordinates at batch boundaries, since their constraints force zero increments until then. Each input incidence leaves its list once, through fixing, coefficient deletion, or retirement. The trees take linear incidence work to build once per trial, and processing all removals therefore costs arithmetic operations.
Theorem 3.2 and final verification handle retired rows. We reconstruct live values, gradients, and weights at the next anchor in work. The light-row contribution to and fixed-row majorants are weighted Gram products. In (2.6), is another weighted Gram product, is a mixed product, and is a diagonal row sum. Each product has summands, so dividing it into blocks of costs . Forming , inverting the spectral matrix, extracting the curvature subspace, and initializing the augmented sampler have the same cost. Polynomial norm bounds add only logarithmic factors in finite precision. Within a batch, weight changes can amount to a rank- update of ; Theorem 2.1 lets us defer it to the next anchor, while the completion matrix changes only by rank-one row replacements.
For an epoch starting with active coordinates, queries have and polynomial norm bounds on the sampler's good event. Equation (3.4) gives anchors. The exposure and slot counts of Section 3.1 give dynamic operations, including reference refreshes, constraint insertions, and direction requests. Hence
The epoch sizes satisfy , so the total is . Incidence updates and verification cost , with for dense encoding. For sparse encoding, they cost its nonzero encoding length, plus to write the output.
6 Finite-bit Implementation and Stability
This section implements the algorithm with numbers of polylogarithmically many bits. Similarly to [AvC26], we focus on the analysis of a randomized discrepancy algorithm under approximate arithmetic; however, our techniques here are far simpler as we are not concerned with a distributional guarantee such as subgaussianity [BDGL19, HSSZ24], and can appeal to a coupling with an ideal run of the algorithm.
Two tools do most of the work for this. First, the anchor subspace is computed from a penalty matrix by an approximate eigendecomposition that needs no spectral gap (Theorem F.1). Second, every stored output is rounded with an independent random dither. This couples the finite algorithm to an idealized reference process that uses exact Gaussians: with high probability the two store exactly the same outputs, so the success probabilities proved for the reference carry over.
Fix exponents , such that bounds the number of exposures, row replacements, and inverse-column requests in a trial, and bounds . Scalar Gaussian draws and output coordinates have separate polynomial bounds. We first round each input entry toward zero on a dyadic grid of spacing , where , obtaining . Column normalization persists, since , and every signing satisfies
This reduction costs and leaves bits per entry; the row reduction of Section 2.1 is applied afterward. Appendix F.1 bounds the errors in assembling the anchor matrices and in smoothing the basis.
Proposition 6.1 (Finite implementation). Let the continuous-Gaussian reference make at most scalar output roundings and stop only on conditions measurable in its exposed history. Let be a reference event on which all Gaussian magnitudes are polynomially bounded and at every query and intermediate state, with constant slack in any finite numerical guard. In explicit batches, also require for a fixed .
(i) For any fixed , inverse-polynomial tolerances couple the two processes with the same dyadic anchor bases and output rules. On , all stored constraint rows and directions agree outside an event of unconditional probability at most .
(ii) Local errors at most cause additional potential drift and deterministic discrepancy error at most . The reference batch concentration bounds persist after changing absolute constants, and (i) transfers their success probabilities to the finite algorithm. Conditional estimates concern the reference's original exposed history, without conditioning on G. Each direction and clipping length is exposed before drawing the independent fair endpoint sign, and each dither is independent of its scalar conditional on the preceding transcript.
Independent dithers make identical stored outputs likely even when queries are approximate. Agreement keeps errors local: an error in one output is not fed into later adaptive constraints. Appendix F.2 proves this coupling.
The rounding rule. Choose polynomially small dyadic and a power of two with and . We then query and normalize using (4.2) to scalar error at most . For each approximate normalized scalar , independently draw uniform and set . Abort the trial if . Otherwise store . From the rounded outputs , set , with norm in , then zero its fixed coordinates as in Algorithm 3. Return . Store the coloring on a dyadic grid of spacing , with fixed coordinates exactly . Clip using exact cross multiplication and round the chosen endpoint to this grid inside the cube, preserving attained endpoints. Let be the local error after amplification.
Appendix F.3 bounds polynomial error amplification and cumulative drift, preserving the negative barriers and deposit margin. Fix a total implementation allowance and choose the effective error to satisfy
We choose the anchor, smoothing, evaluation, and quantization tolerances polynomially smaller still. Each inverse tolerance has logarithm , and stable linear algebra needs guard bits. These choices depend only on n and universal constants, and make no spectral-gap assumptions.
At an anchor, the construction of Section 2 is carried out with the following changes. Estimate every load to error and mark a row heavy when the estimate reaches . Normalize the gradients that form , fix the frozen rows' weights at , and recompute the anchor matrices and guards. Here , where bounds batch exposures and is the amplified local error above. This buffer makes the fixed weights dominate the true weights despite constraint errors. The tolerance choices keep every shifted barrier argument negative. Apply the verified construction of Lemma F.1 to and , with at most independent attempts. Restart the trial on exhaustion; otherwise obtain approximate basis directions. Add the Gaussian perturbation and dyadic rounding from Section 4 to obtain .
At every anchor, interval evaluation checks a dyadic vector with , entrywise, and . These conditions imply and . The guard costs and has constant slack under the smaller potential cap enforced by increasing . Repeat it after buffering the fixed weights. Appendix B gives the comparisons, and completion queries use the sampler's conditioning guarantee. On the good event, the direction in Algorithm 3 has norm in . We use the inverse-polynomial tolerances of this section and restart after an undefined operation, overflow, or failed guard.
Proof of Theorem 1.1. Round the input as in (6.1). Initial row reductions give . At each anchor, Proposition 2.1 and Lemma F.1 give approximate basis directions, with smoothing and rounding errors small enough for Proposition 6.1. Near-spherical directions and approximate orthogonality allow the progress, window, resolvent, and retirement bounds. Choose constants making each of four groups of bad events have probability at most 1/16: potential and work caps, trust windows and retirement, verified anchor construction and conditioning, and finite-query disagreement. For guard passage, use the smaller potential cap from Appendix B, obtained by increasing . The polynomial operation cap permits a union bound in the last two groups, with compatible inverse-polynomial tolerances. On the joint good event, affine discrepancy and numerical error give
A trial passes exact verification with probability at least 3/4. Equation (2.8) guarantees discrepancy below 99 for every accepted output, including outside this event. Section 5 bounds all epochs by bit operations after input preprocessing. Input reduction, incidence updates, and verification add . Independent restarts need at most 4/3 expected trials, proving the bit complexity.
AI Disclosure and Acknowledgements
We acknowledge an extended conversation with OpenAI's GPT-6 Astra model about the arguments in [Li26] and possible ways to batch the walk to exploit recent results in dynamic matrix inversion. We also used Cognition's Devin agent with the SWE-2 model as well as Claude Opus 5.5 to improve the presentation, and in https://github.com/emiletimothy/komlos-omega-lean, we document our efforts in providing a formal Lean certificate. Finally, we thank Abhishek Shetty, Jan van den Brand, and Ijay Narang for helpful comments. EA's research is supported by NSF Grant CCF 2338816.
References
[ALS21] Ryan Alweiss, Yang P. Liu, and Mehtaab Sawhney. Discrepancy minimization via a self-balancing walk. In 53rd Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 14–20, 2021.
[AvC26] Emile Anand, Jan van den Brand, and Peter Chen. Finite-precision Gram–Schmidt walks, 2026. arXiv:2610.08562.
[AvGZ24] Emile Anand, Jan van den Brand, Mehrdad Ghadiri, and Daniel J. Zhang. The bit complexity of dynamic algebraic formulas and their determinants. In 51st International Colloquium on Automata, Languages, and Programming (ICALP), volume 297 of Leibniz International Proceedings in Informatics, pages 10:1–10:20, 2024.
[Ban98] Wojciech Banaszczyk. Balancing vectors and Gaussian measures of n-dimensional convex bodies. Random Structures & Algorithms, 12(4):351–360, 1998.
[Ban10] Nikhil Bansal. Constructive algorithms for discrepancy minimization. In 51st Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 3–10, 2010.
[Ban24] Nikhil Bansal. On a generalization of iterated and randomized rounding. Theory of Computing, 20(6):1–23, 2024.
[BDG19] Nikhil Bansal, Daniel Dadush, and Shashwat Garg. An algorithm for Komlós conjecture matching Banaszczyk's bound. SIAM Journal on Computing, 48(2):534–553, 2019.
[BDGL19] Nikhil Bansal, Daniel Dadush, Shashwat Garg, and Shachar Lovett. The Gram–Schmidt walk: A cure for the Banaszczyk blues. Theory of Computing, 15(21):1–27, 2019.
[BF81] József Beck and Tibor Fiala. “integer-making” theorems. Discrete Applied Mathematics, 3(1):1–8, 1981.
[BG17] Nikhil Bansal and Shashwat Garg. Algorithmic discrepancy beyond partial coloring. In 49th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 914–926, 2017.
[BJ26] Nikhil Bansal and Haotian Jiang. Decoupling via affine spectral-independence: Beck–Fiala and Komlós bounds beyond Banaszczyk. In 58th Annual ACM Symposium on Theory of Computing (STOC), pages 432–442, 2026.
[BLV22] Nikhil Bansal, Aditi Laddha, and Santosh Vempala. A unified approach to discrepancy minimization. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM), volume 245 of Leibniz International Proceedings in Informatics, pages 1:1–1:22, 2022.
[CGS 25] Annabelle Michael Carrell, Albert Gong, Abhishek Shetty, Raaz Dwivedi, and Lester Mackey. Low-rank thinning. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 6811–6848. PMLR, 2025.
[DDH07] James Demmel, Ioana Dumitriu, and Olga Holtz. Fast linear algebra is stable. Numerische Mathematik, 108(1):59–91, 2007.
[DGLN19] Daniel Dadush, Shashwat Garg, Shachar Lovett, and Aleksandar Nikolov. Towards a constructive version of Banaszczyk's vector balancing theorem. Theory of Computing, 15(15):1–58, 2019.
[GFL26a] Shengtao Guo, Ethan X. Fang, and Junwei Lu. Vector balancing in polynomial time, 2026.
[GFL26b] Shengtao Guo, Ethan X. Fang, and Junwei Lu. Vector balancing via directional total variation, 2026.
[GK26] Nestor Guillen and Vladimir A. Kobzar. The Komlós conjecture for complex discrepancy, 2026.
[HSSZ24] Christopher Harshaw, Fredrik Sävje, Daniel A. Spielman, and Peng Zhang. Balancing covariates in randomized experiments with the gram-schmidt walk design. Journal of the American Statistical Association, 119(548):2934–2946, 2024.
[Kar16] Charles F. F. Karney. Sampling exactly from the normal distribution. ACM Transactions on Mathematical Software, 42(1):3:1–3:14, 2016.
[KL26] Sankeerth Rao Karingula and Shachar Lovett. An elementary proof of the Komlós conjecture, 2026.
[KSH 26] Ekaterina Kochetkova, Kshiteej Sheth, Insu Han, Amir Zandieh, and Michael Kapralov. Streaming attention approximation via discrepancy theory, 2026.
[LAK26] Edo Liberty, Alexandr Andoni, and Eldar Kleiner. Nearly optimal attention coresets, 2026.
[Lar23] Kasper Green Larsen. Fast discrepancy minimization with hereditary guarantees. In ACM-SIAM Symposium on Discrete Algorithms (SODA), 2023.
[Li26] Xiaoyu Li. Fast spectral signing for vector balancing, 2026.
[LM15] Shachar Lovett and Raghu Meka. Constructive discrepancy minimization by walking on the edges. SIAM Journal on Computing, 44(5):1573–1582, 2015.
[LRR17] Avi Levy, Harishchandra Ramadas, and Thomas Rothvoss. Deterministic discrepancy minimization via the multiplicative weight update method. In Integer Programming and Combinatorial Optimization (IPCO), volume 10328 of Lecture Notes in Computer Science, pages 380–391, 2017.
[LSV86] László Lovász, Joel Spencer, and Katalin Vesztergombi. Discrepancy of set-systems and matrices. European Journal of Combinatorics, 7(2):151–160, 1986.
[PV23] Lucas Pesenti and Adrian Vladu. Discrepancy minimization via regularization. In ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1734–1758, 2023.
[Sha24] Rikhav Shah. Fast Hermitian diagonalization with nearly optimal precision, 2024.
[Spe87] Joel Spencer. Ten Lectures on the Probabilistic Method, volume 52 of CBMS-NSF Regional Conference Series in Applied Mathematics. Society for Industrial and Applied Mathematics, 1987.
[van21] Jan van den Brand. Unifying matrix data structures: Simplifying and speeding up iterative algorithms. In Symposium on Simplicity in Algorithms (SOSA), pages 1–13, 2021.
[vNS19] Jan van den Brand, Danupon Nanongkai, and Thatchaphol Saranurak. Dynamic matrix inverse: Improved algorithms and matching conditional lower bounds. In 60th IEEE Symposium on Foundations of Computer Science (FOCS), pages 456–480, 2019.
A Row representations and discrepancy reduction
Write in the proofs. Cauchy-Schwarz gives for each remaining row, so column normalization bounds their number by . For the rational scale, let and choose the least integer with , where . Set , omitting the previous scale if none exists. Each candidate is at least , and by minimality, including when . Thus is non-increasing, , and . Since , the choice takes rational comparisons. Differentiating (2.3) gives , , and for . For every fixed nonnegative integer ,
Integrating the log derivative shows that changing a non-positive barrier by at most changes , , and by factors at most .
Verification of row updates. We prove the row-update guarantees stated in Section 2.1. Initially, and when a large row becomes medium, . Since and , both barriers satisfy . We show that
For nonnegative with , Cauchy-Schwarz gives . Together with , this reduces (A.2) to bounding . For , , so . The exact comparison
proves the margin: multiplying the 25 summands by and summing their floors gives 23634835. Summing (A.2) and the large-row deposits, column normalization gives the initialization bound.
Transfers preserve . At fixed scale, deletion decreases and coordinatewise, hence decreases the barrier, scalar weight, and rank-one contribution entrywise. For scale reduction, hold fixed with and . Differentiation gives
Thus decreasing keeps nonpositive and decreases both and , since . Equation (A.2) handles newly medium rows. Fixed-coordinate transfers preserve energy because , and their removal takes a principal submatrix. Retirement removes two PSD, entrywise nonnegative terms.
A.1 Final discrepancy
For a representation change at , define the anchor jump . Each change satisfies . Telescoping from the initial representation over changes indexed by at anchors gives
A fixed-entry transfer contributes , which vanishes at later colorings. A deletion has the same form, bounded in magnitude by on the cube. Retirement contributes , and an offset-only repair contributes . Moving or rounding causes no defect at a fixed representation. Adjusting the offset to round the tracked sum creates an anchor jump.
Proposition A.1 (Deterministic discrepancy reduction). Suppose the walk completes Algorithm 1 with s < 64. Round remaining coordinates to their nearest signs, choosing +1 at zero. Assume every nonretired medium barrier stayed nonpositive. At this signing, suppose retirement defects have magnitude at most , each row's total offset-only defect has magnitude at most , and every row that was never medium had tracked value of magnitude at most at its last anchor. Then
Proof. Deletion requires , so rationalizing the decrease in row norm gives
Deletions begin with row norm at most , which never increases. Telescoping its decreases bounds the total absolute value of deleted coefficients by , hence their defect by twice this amount throughout the cube. No medium row survives the final update: and implies , contradicting spread. For the last deletion, use the preceding positive scale: the transfer preserves and decreases , so both barriers stay nonpositive. The completed row therefore has a constant representation of magnitude below , even though no new scale is needed at . Equation (A.3) gives . Since , , proving the first term in (A.4). A still-large row has undergone no deletion or retirement. Rounding changes at most 63 coordinates by at most one each, giving the second term in (A.4) because . This also covers rows that passed directly from large to completed. Discarded input rows have discrepancy at most one.
B Curvature and stability
Use the notation of Section 2.2 and set . The row invariants give , , and for every nonempty medium row.
Lemma B.1 (Positivity, monotonicity, and a ground-state identity). Suppose is symmetric and entrywise nonnegative, and . Then is entrywise nonnegative, entrywise, and . For every ,
The potential is nonincreasing when b increases, when M decreases in Loewner order or entrywise while remaining nonnegative, or under principal deletion with the corresponding reduction in s.
Proof. The convergent Neumann series gives
The series gives positivity and monotonicity in and the entries of . Principal deletion removes nonnegative terms. Loewner monotonicity follows from whenever . Substituting into and pairing the terms indexed by and gives (B.1). Finally, symmetry and nonnegativity give .
Proof of Proposition 2.1. For the batch matrix (2.5) and curvature matrices (2.6), differentiation along gives , , , and . So,
via and , with the barrier derivatives from (2.2).
Anchor dimension. Following Li [Li26], we bound the dimension loss from the constraints and the two positive terms of . Large rows cost fewer than dimensions because . Nearly tight rows cost fewer than , since
and each such row contributes more than . Heavy rows cost at most dimensions: and . For the existence argument, let project onto the eigenspaces of with eigenvalues at least . Because and the rows are spread,
Impose , which costs at most this many dimensions. Let and , at the anchor. Then , , and . Conjugating the matrix comparison by gives
Also, the weight identities and gradient bound imply
If and diagonal satisfy , the coordinates with have zero rows in . On the other coordinates, congruence by shows that has at most positive eigenvalues. Intersecting its nonpositive spectral subspace with the previous constraints therefore loses at most more dimensions. Apply this with and in place of . The five losses give a subspace with and , where
Thus at least nonpositive directions exist. The stability argument below uses only the anchor inequality, so any such subspace of in ker works.
Stability. Write and . On the window (2.7), fixed rows satisfy , so their fixed weights majorize their true weights. Light rows start below -1 and change by at most when , so they stay negative. By (A.1), change by factors .
Since light loads are at most and their weights at most 119, entrywise. Weighted Cauchy–Schwarz gives ; hence Lemma B.1 implies
For , relative light-weight changes give both and entrywise. The first comparison keeps positive definite when and bounds its inverse in Loewner order. The second, with entrywise, gives
Thus, with universal constants,
These estimates also justify continuation from along every segment in the convex window: the slack stays uniformly positive before any possible first exit. Fix . Since and ,
The triangle inequality for the vector gives
For , slack domination also gives . Let , where
The weight identities and (B.6) bound , so
The triangle inequality for , together with , gives
Here absorbs the multiplicative inverse error, and squaring uses sufficiently small. Together with (B.5) and the anchor margin,
when for a sufficiently small universal . The same estimates cover , in which case all these quadratic forms vanish. The Hessian identity proves concavity. Midpoint concavity gives whenever both endpoints are in the window and the fair sign is chosen after .
Buffered weights. The proof also allows any fixed weight , including when . The nearly tight count needs only this lower bound, the trace comparison uses nonnegative coefficients, and the light-row Gram matrix stays below the anchor matrix. The finite-bit analysis bounds the buffer's potential cost.
Additive anchor error. Suppose a fixed subspace instead satisfies , with . Set . Then on , while and in Loewner order. Repeating the stability argument with margin gives for all ,
Anchor guards. The guards in Section 6 are checked by interval products in work. Since and , diagonal similarity by gives row sums below , hence . Multiplying by the nonnegative inverse gives and . If and , an accurate dyadic approximation to passes with constant slack. Increasing enforces this smaller cap with the same constant success probability. Repeat the guard after buffering the fixed weights.
C Probability bounds for the capped walk
Proof of Proposition 3.2. Use the stopped process from Section 3. Directions and clipping lengths are exposed before drawing the independent fair endpoint signs. For each batch, the sampler and rounding estimates in Sections 4 and 6 give
A common concentration estimate. Let be exposed before the fair sign , and suppose on the stopped process. Since , the exponential supermartingale and its version with give
The same estimate holds conditional on any starting history.
Trust windows. Fix a vector at the batch anchor and take . Equation (C.1) gives . Apply (C.2) to the coordinate normals and at most signed barrier gradients, whose norms are at most two. With and , each failure probability is at most . There are polynomially many forms in a capped trial, so all batches stay in their inner windows with probability at least , after choosing the absolute constants. The quadratic identity (2.2) bounds barrier motion by . Fixed rows never exceed their anchor barriers, and light rows start below and stay below . Both proposed endpoints remain in the outer window, where Proposition 2.1 applies.
The potential and resolvent. Within a valid window, concavity gives . Lemma B.1 and the row-update comparisons in Appendix A extend this inequality across batch boundaries and epoch barrier increases. Stop at the first window or cap failure. At the initial anchor,
gives . At epoch , and give and at its start. Doob's inequality yields
For the batch's ambient dimension , a query state has . Hence
The potential bound includes the terminal endpoint before row updates. Also . Retirement. Condition on a row's retirement history. Its remaining coefficients satisfy , and retirement occurs between batches. Within each later batch , restrict to its ambient coordinates, giving of norm at most . Directions vanish on newly fixed coordinates, so the later active restrictions satisfy . The Gram bound and (3.4) therefore imply
Apply (C.2) to , stopping at a proposal violates the Gram or cap bounds:
Nearest-sign rounding of the last fewer than 64 coordinates adds at most . Take and choose so this rounding contributes at most 1/400 and the displayed probability is at most . Over fewer than rows, the failure probability is at most . The stochastic error and final rounding use at most 3/400, leaving 1/400 for the drift in Section 6. Combining the three failure probabilities proves the proposition.
D Adaptive Gaussian sampling proofs
Use the completion protocol and exposed history from Section 4, stopping before the first dependent real insertion. A nonnegative on PSD matrices is spectral increasing if it depends only on eigenvalues and whenever . Normalizing constants below are finite.
Lemma D.1 (Adaptive radial law and regularity). At initialization or immediately after a real insertion, let . In orthonormal coordinates, the projected hidden rows have conditional density
where is PD and is spectral increasing. Initially . Predetermined hidden-row deletion and predictable coordinate restriction preserve this class and its extreme scale bounds. Exposing the null line and inserting a self-normal whose projection into has angle to that line preserve it, with
After at most self-normal insertions with error at most , ensures and . The unit null vector has representation
(D.3) with a fair orientation, and satisfies (4.4). For and , for every .
Proof. Preserving the radial law. Whiten by , whose density is proportional to . For a matrix with rows, extend to its column Gram by evaluating it on the largest eigenvalues, including zeros. This agrees with the row Gram. Row deletion adds to the surviving column Gram, and column restriction adds to the surviving row Gram. For either Gram , the radial factor becomes
Rotational invariance and pointwise comparison make spectral increasing. The deletion and restriction are predictable. For with orthonormal columns, has orthonormal columns. The same calculation for gives scale and preserves the extreme eigenvalue bounds. For , thin QR gives volume factor and the Gram map has Jacobian . Thus has density on the positive definite cone: its determinant exponent is . Right orthogonal invariance makes the null line uniform and independent of . With an orthonormal basis of its orthogonal complement, write , where . Then
The square Gram map has determinant exponent , explaining the increasing factor in (D.5). For the physical unit null vector , the whitened null vector is proportional to . The scale has support and the Schur complement gives inverse:
Its nonzero eigenvalues lie between the extreme eigenvalues of . Normalize the self-normal's projection into to . Projection from to has singular values and preserves the whitened radial factor, transforming the scale by congruence, giving (D.2). Deleting the next hidden row restores the rectangular dimensions. Initially and . The self-normal precedes coordinate constraints, so this comparison applies in 's sampling space and completes the induction.
Angular bounds. Projection of the self-normal into , followed by normalization, gives . Thus the recursion yields and ; coordinate restrictions preserve these bounds. Right invariance gives (D.3), and the independent symmetric reference row chooses a fair orientation. For , the denominator bound gives for a sphere coordinate . Its even moments satisfy , so
The same denominator bound and give the covariance estimate in (4.4).
The hidden-matrix lower tail. Translation by qI in the Gram density above and monotonicity give
Since , take to obtain the claimed bound from .
Proof of Theorem 4.1. Lemma D.1 gives the conditional direction bounds. For the high-probability bounds, choose so that per batch sums to at most . Choose sufficiently large depending on and sufficiently small. Nonexplicit batches have .
Real constraints: coordinate rows. For fixed of size , let have orthonormal columns spanning ker , of dimension . Then , where has independent standard Gaussian entries. bounds on a -net of at most points put every in , except with probability . Net extension gives . Right projection decreases the row Gram matrix, so rounding gives . Gaussian norm bounds ensure (4.1) except with probability .
Separation from self-normals. Condition only on the smoothed basis. Let collect the ideal directions whose self-normals were inserted, and those physical normals. Later directions are orthogonal to earlier self-normals, so for and
Let be the th query direction, or zero if it never occurs. Occurrence is predictable, and a query without insertion ends the batch, so the first queries include every inserted self-normal. At every actual query, . For fixed unit , (4.4) and the tower property give, inductively, . Markov's inequality then gives
This also bounds every prefix sum. For , take a 1/4-net of at most unit vectors. Summing over coordinate sets bounds the coordinate and angular failure probabilities, respectively, by and . Net extension gives for every and prefix. With ,
Combining the constraints. In orthonormal coordinates on , let have rows for . Coordinate conditioning gives , while (D.7) gives a constant lower bound for . Separation implies
The combined smallest singular value is at least , omitting empty blocks. Thus no coordinate insertion is dependent. Returning to coefficient coordinates changes the bound by at most two, so every nonempty real constraint matrix has smallest singular value at least , for a fixed constant. The three failure bounds sum to per batch.
Completion matrices. In orthonormal coordinates on E, collect the real rows in C and hidden rows in G. Decomposing E into C's row span and kernel gives
X has one fewer row than column, and the preceding bound gives invertible with . In the original exposed filtration, Lemma D.1 gives across polynomially many states with probability at least for large , before intersecting with the real-constraint event. Each hidden row's norm is bounded by its original ambient Gaussian, so Gaussian norm bounds give across all batches. For right-hand side , solve and . This right inverse has norm at most , so and dim ker . Between exposure and self-normal insertion the prefix's previous bound applies. Self-normal insertion restores the rectangular density, and coordinate insertions preserve it. Coefficient coordinates change bounds by constant factors. For unit and independent Gaussian , conditionally on , and
The refreshed reference row is independent of both the pre-insertion and post-insertion prefixes. Gaussian norm bounds and give and across polynomially many operations with the required probability. The row norms bound ; the inverse bound converts to Frobenius norm.
E Matrix formula maintenance
Proof of Theorem 5.1. Apply the row-query structure to , of order , with levels. Level rebuilds every operations, and the top level recomputes the full inverse every operations. Perform simultaneous rebuilds from the top down. At a level- rebuild at time , its parent snapshot has time or . Store the inverse rows indexed by together with the columns changed between and . The parent stores , which contains the child candidates by nesting and every changed column by the lookahead property. Thus every required parent row is available, and each level stores only rows. At the top level all rows are available. For parent snapshot and child , combine repeated updates into at most changed columns . Their coordinate vectors form , and their net differences form . The small matrix governs the inverse correction. For containing and the child candidate set, Woodbury gives
(\mathbf{B}^{\prime}^{-1})_{I,:}=(\mathbf{B}^{-1})_{I,:}-(\mathbf{B}^{-1})_{I,:}\mathbf{U}\mathbf{D}^{-1}(\mathbf{B}^{-1})_{J,:}. \tag{E.1}Let be the cost of multiplying and matrices. Splitting the long dimensions into square blocks, with for constant , gives the recomputation and amortized costs
(E.2)
Initialization costs . Let be a sufficiently large fixed power of bounding endpoint matrices and update factors. It also bounds the small inverse, since and .
Although [AvGZ24, Theorem A.1(4)] assumes an offline index sequence, its Woodbury error analysis depends only on the norm bounds, not on advance knowledge of the indices. We apply this analysis to the selected rows made available by the preceding hierarchy. Woodbury maps to . An inverse-rounding error with produces , where
, provided . Polynomial factor bounds permit local tolerances with . Complete the selected rows virtually with the exact uncomputed rows of the same Woodbury expression. This full inverse has the same Frobenius error bound, and every child uses rows of this common parent. Induction through at most levels from rebuild to answer gives
Choose . Then, stable products and inversion need only polylogarithmic guard bits beyond . [AvGZ24] uses bit operations per arithmetic operation.
F Finite-precision proofs
Use the global caps , V and local error from Section 6.
F.1 Computing the anchor subspace
Lemma F.1. Let , let have at most normalized rows, and suppose a -dimensional subspace satisfies for every . Assume . For , one can compute a dyadic matrix satisfying , , and in expected bit operations whenever .
Proof. Set and . Since on , min-max gives . Compute with increasing, , and . Round the first columns of with operator error at most to obtain . For analysis only, set and take the orthogonal polar factor . Since and , . Weyl's inequality gives , so . The rounding bound gives , hence and . For , the remaining conclusions follow from
Assembly errors and perturb by at most . Choose and , and include these errors in the decomposition residual. Since , all norms and inverse tolerances need bits.
We use a real symmetric version of Shah’s gap-free diagonalization [Sha24], with the following modification to its Gaussian deflation. For an matrix of independent real standard Gaussians, implies that some column is within of the span of the others: choose a unit minimizing vector and a coordinate of magnitude at least . Conditional on the other columns, this distance has the law , hence . For a real matrix of rank with right singular basis , orthogonal invariance makes such a matrix. If has size , set and . With failure probability at most , and . Approximate the Gaussian matrix to operator error at most ; on this event , so this is sufficiently small for the deflation estimate, for a universal . The deterministic deflation estimate in [Sha24, Section 3] then gives subspace error at most when its input error satisfies
For spectral projectors, both singular values in this expression equal one. Allocate to each of the at most deflations, and choose the real spectral shifts with total failure probability at most . The recursive error allowances are inverse polynomial, so the smaller requires only additional bits and polylogarithmic factors in the iteration count. Use real matrix products and real QR [DDH07], and symmetrize every intended symmetric intermediate matrix. Symmetrization preserves operator error before rounding; its rounding error has polynomial amplification. Real shifts, polynomial matrix-sign iterations, transposes, and recursive products therefore give real U and D.
Accept only when Frobenius upper bounds for the stored residual and orthogonality defect, including assembly error, imply the required bounds. Requesting smaller operator errors gives verification slack; stable products [DDH07] and dyadic summation cost . Cap each attempt's arithmetic at its successful-run bound and Gaussian digit generation at a constant multiple of its mean cost. Markov's inequality bounds the latter failure by 1/8, so independent attempts succeed with probability at least 1/2. Repetition gives expected work. With at most attempts, sufficiently large makes exhaustion probability at most for any fixed . Abort the trial on exhaustion; verification prevents an incorrect basis from being used, including for small .
Apply the lemma to with normalized nonzero large-row and protected or heavy-row normals. The grid and spread condition give and , so
Large-row normals have norm greater than , so normalization needs bits. Using , , , and in (2.6) gives . For and a perturbation with , the inverse identity gives and . Gradient normalization amplifies errors by at most . The at most row terms, , and the bounds on and inverses give polynomial amplification in , , , , . Divide scalar tolerances by this factor before assembling the anchor matrices. The sampler then perturbs by independent Gaussians and rounds it. For with ,
Choose polynomially smaller than . The smoothed basis satisfies twice the original tolerances. Fixed dyadic grids keep summation growth to bits and prevent denominator growth. The scale rule in Appendix A and the fixed-degree weights also need bits. Exact clipping needs temporary bits for p-bit coordinates and preserves attained endpoints.
F.2 Transcript coupling
Proof of Proposition 6.1(i). For the quantizer of Section 6, and, for every fixed and ,
Use a reference with continuous Gaussians, exact normalized outputs, and the same dithers, endpoint signs, dyadic coloring rules, and shared dyadic anchor bases. Include smoothing approximation and rounding errors in in (4.3). Public geometric, dependence, work-cap, or dither-boundary conditions may stop it. Its history excludes hidden conditioning and magnitude-guard outcomes. Apply the conditional sampler estimates in this history. For success, intersect with the unconditional event G of successful reference execution and polynomial Gaussian and matrix bounds with guard slack. No estimate conditions on G.
Approximate the reference Gaussian coefficients within using the same lazy random-bit streams. On G, until the first stored-output disagreement, constraint rows agree, so
provided . Unconditional Gaussian tails bound magnitude-guard failures; they do not truncate the reference law. On , near-isometry gives , making normalization polynomially Lipschitz. Taking and the dynamic-inverse error polynomially smaller than bounds every output error by . For an explicit batch, compute the orthonormal basis by stable Gram-Schmidt or QR on the near-isometric . The reference uses the exact orthonormalization of the shared dyadic basis. Since , increasing makes all explicit normalization denominators inverse polynomial with the required probability. The same polynomial error control then applies. The perturbation estimate, with the bounded output blocks , gives polynomial norms for the rounded augmented matrix and its inverse, so the finite guards pass by their slack.
Let be the event that some executed reference scalar satisfies . Each new dither is independent of this exact scalar conditional on the preceding transcript, so (F.1) and the choices in Section 6 give
On , the finite scalar differs from the exact scalar by at most , so its boundary check passes and both processes store the same dyadic value. Induction gives identical colorings, newly fixed coordinates, constraint rows, insertion choices, and public stopping decisions. Thus the finite trial succeeds whenever the reference succeeds on this event, and
The physical normal associated with obeys and . Projection into the feasible space gives angular error . Masking fixed coordinates cannot increase the error, since the exact direction vanishes there. The comparison above transfers the reference success bounds to the finite algorithm with fixed precision and an operation cap. Karney's sampler [Kar16] generates Gaussian digits in expected time linear in their number. Choose tolerances giving Euclidean error at most per contribution after amplification.
F.3 Propagation of numerical errors
Proof of Proposition 6.1(ii). For a protected signed row, the hard constraint and local errors give . Use the quadratic identity (2.2) with and sum at most exposures:
The fixed weight , where , therefore dominates the actual weight throughout the batch without row scans. For , . Small error allowances make buffering change weights by a relative factor at most . The resulting nonnegative matrix increment satisfies and . For ,
Before buffering, approximate to error at most and fix rows with . Selected rows have , preserving the count, while unselected rows have . The entrywise resolvent identity and bound the resolvent vector's growth by . Choose the error allowance so this factor is at most . The remaining light rows then satisfy , as curvature transport requires. For potential drift, (B.11) bounds the Hessian on the anchor span by times the identity throughout the enlarged window. Directions within of this span add at most . The resolvent formulas bound and . Since and , the first two matrix derivatives have constant bounds. Each inverse derivative adds at most one factor .
Condition on the direction before drawing the fair sign. Symmetric Taylor expansion then gives , where includes anchor error. Endpoint rounding adds at most . Summing exposure and buffer costs over total batch capacity gives drift at most . Adding the remaining error allowance restores a nonnegative supermartingale and the potential bound's constant success probability. The condition has slack. Newly medium rows begin far below -1. Unprotected rows start each batch below -1, and the enlarged window raises their barriers by at most 1/4. Across consecutive protected batches, (F.2) bounds the cumulative increase. Rows leaving protection are again below -1, so keeps each protected episode below -1/2. Downward row reductions preserve this margin. Buffered barriers stay negative, avoiding decisions at . For large rows, normalized hard constraints limit drift to per exposure, so before the row becomes medium. Choose . The scalar comparison proving (A.2), with replaced by , remains increasing in . Its largest deposit ratio is therefore at most . Deposit replacement still decreases the majorant in Loewner order, and negative barriers permit the same subsequent scale reductions. Let contain all unit query directions in a batch, including the final query if it has no insertion, and let contain their scaled, rounded proposals. The pairwise argument of (D.7) gives .
Each exact direction vanishes on the coordinates fixed before its query, so masking its rounded proposal changes only its error. Summing these row errors gives , even though the masks vary. Thus , preserving the window proof's squared-projection bound. Coordinate rounding adds at most to any unit linear functional. Expose each direction and clipping length before drawing its independent fair endpoint sign, and stop before a proposal violates the Gram or cap bounds. The sign-only argument of Proposition 3.2 then gives (C.4), with changed absolute constants. Coordinate rounding adds drift at most . For sufficiently small , preserves the retirement failure allowance over fewer than rows. Endpoint rounding changes energy by at most per exposure. The norm and clipping bounds persist, so Lemma 3.1 applies with energy allowance .