Manuscript Offprint
arXiv:2610.08069Detecting a Shift Is Not Enough: Exact Minimax Limits of Linear Representation Repair
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
A mean shift between two data sources can be easy to detect but hard to remove without substantially changing their representations. We cast its removal as a statistical decision problem: from noisy differences between paired calibration measurements in , learn one linear map, applied to both sources under a hard distortion budget, that leaves as little of the shift as possible on fresh data. We derive the exact finite-sample minimax risk over all such maps, with , where the budget allows deleting directions and is the calibration signal-to-noise ratio. Projecting out the mean calibration difference attains it without knowing or the noise scale. This exposes a detection-repair gap: detecting the shift needs only , whereas removing a fixed fraction of it at constant distortion needs , as for estimating its direction. Standard linear concept erasers (MP, SAL, LEACE) remove the same calibration difference, so the formula gives, before fitting, exactly how much shift they leave on fresh data and how much calibration a target requires. The limit is robust: pairing keeps it exact for non-Gaussian shared content, the projection keeps its guarantee under anisotropic noise, and selective abstention cannot close the gap. On paired clinical and wearable sleep EEG, where differences between participants act as calibration noise, the formula predicts the device shift left in new participants, and more recordings per person soon stop helping. Together, these results tell whether a correction that falls short needs a better method, more recordings, or more participants.
1 INTRODUCTION
If the direction of a mean shift between two data sources were known, removing it would be simple: an orthogonal projection deletes it exactly. In practice the direction must be estimated from finite, noisy data, and it stays uncertain even when the shift itself is easy to detect. Projecting out an inaccurately estimated direction removes ordinary variation while preserving much of the shift, so a correction that falls short may reflect an inadequate rule or simply too little information to learn a better one.
Paired measurements make this concrete: the same session recorded by two EEG devices, the same participant scanned at two sites (Yamashita et al., 2019), or the same input with a spurious attribute changed (Bai et al., 2025). Each pair shares its content, so the difference within a pair isolates the shift. From such pairs we learn an editor: one linear map shared by both sources and held to a hard distortion budget, and on new data we measure the share of the source separation that remains. Without pairs, the same problem is linear concept erasure. This raises three questions: how much of the shift can any such correction remove at best, what do standard erasers achieve, and what kind of calibration helps?
How much any linear correction can remove. Theorem 2 answers the first question exactly. Over all shared linear editors whose budget allows deleting directions, the minimax risk, which we call the frontier, is with and the calibration signal-to-noise ratio. The simplest editor attains it: project out the mean paired difference. The estimated direction keeps the noise share of the calibration energy, which Equation (8) shows is the optimal residual up to , whereas a test only needs the signal to rise above the noise fluctuation (Figure 1b). Detection therefore succeeds long before repair: at and , a level-0.05 test detects the shift with probability 0.999, yet the best editor allowed to delete
(a) The gap widens with dimension

(b) Repair keeps the noise share
Figure 1: Detecting a shift is not enough to repair it. (a) Detection needs and repair , so the wedge of shifts that are detectable but not repairable widens with dimension. Detection is a test of “no shift” at the 5% significance level, and repair uses the best linear map that deletes one direction. (b) At , the squared length of the normalized mean calibration difference has expected value : noise (grey) plus signal (blue). The test needs only the total to clear the dashed threshold, whereas editing leaves about the grey share of the bar (orange). The star marks the same setting in both panels. All values are exact.
one direction leaves about two thirds of the squared separation (Figure 1a). These two scales are familiar from detecting and estimating a spike (Johnstone and Lu, 2009; Berthet and Rigollet, 2013; Cai et al., 2013). What is new is the reduction that makes the limit bind every shared linear editor under the budget rather than one estimator, and its exact finite-sample value.
What existing erasers pay. Mean projection (MP; Haghighatkhah et al., 2022), centered rank-one SAL (Shao et al., 2023) and binary LEACE (Belrose et al., 2023) all delete the empirical mean difference (Theorem 4), so the frontier is their exact behavior. They erase that difference completely on the calibration sample yet leave the frontier's residual on new data, an effect recently observed empirically (Jin et al., 2026). The calibration a target requires can therefore be computed in advance: at d = 64 and a signal-to-noise ratio of one per pair, a residual of 1/2 needs 63 calibration pairs. For any other fitted subspace, Theorem 5 adds an explicit excess: one step of iterative nullspace projection (INLP; Ravfogel et al., 2020) falls visibly short of the frontier, while fixed-rank R-LACE (Ravfogel et al., 2022) reaches it.
What kind of calibration helps. Real calibration comes in clusters, such as participants with many recordings each. The guarantee depends only on the total noise of the averaged calibration difference, so more recordings from the same units stall at a cap that only more units lift, and Theorem 8 tells how to split a budget between the two. On a public dataset in which 100 people slept in a clinical polysomnograph and a wearable headband at once, the formula predicts, from calibration participants alone, how much device shift survives in new participants (Section 7.2): even 128 epochs from one participant leave about 0.7 of the shift, whereas adding people keeps reducing it.
The limit stays exact for non-Gaussian shared content under pairing (Section 4), the projection keeps its guarantee under anisotropic noise (Section 6), and acting only after favorable fits cannot close the gap (Section 5). When the shift strength is unknown, certified rules decide when to act (Section 5.2). Simulations, a semisynthetic experiment with real represented content, and two real device pairs confirm the predictions. Together, these answers separate three reasons a correction can fall short: a suboptimal editor, too little calibration, or calibration collected on the wrong unit.
Linear erasure from finite samples. Linear erasers fit a projection or affine map to data (Haghighatkhah et al., 2022; Ravfogel et al., 2020, 2022; Belrose et al., 2023; Shao et al., 2023), and related work studies what erasure preserves or leaves behind (Holsteger et al., 2025; Chowdhury et al., 2025; Akbari et al., 2025). Fitted on finite samples, they leave concept information on fresh data that population erasers would remove (Jin et al.,
2026), and an estimated erasure subspace generalizes differently from the probe that tests it (Naowarat et al., 2026). Theorem 4 gives this residual for MP, SAL and LEACE, whose binary-label equivalence Belrose et al. (2023) noted, and Theorem 5 gives the excess of any other fitted subspace.
Paired and clustered calibration. Paired data isolate a shift from shared content, in travelling-subject harmonization (Yamashita et al., 2019), simultaneous wearable and clinical EEG (López-Larraz et al., 2026; Esparza-Iaizzo et al., 2026), and counterfactual pairs, from which noisy counterfactual matching (NCM) and GRIT estimate a spurious subspace and bound the out-of-distribution error of a predictor restricted to its complement, GRIT at rate in the number of pairs N (Bai et al., 2025, 2026). These are upper bounds for a particular estimator and predictor, whereas our limit is exact and holds for every shared linear editor. When pairs come in clusters, splitting a budget between participants and pairs is the two-stage allocation problem (Cochran, 1977), and the same allocation minimizes a bound on the residual of an eraser (Theorem 8).
3 STATISTICAL EXPERIMENT AND LOSS
We formalize a shared linear correction learned from paired calibration and evaluated on independent fresh observations. We assume isotropic within-source variation and calibration noise, so that no shift direction is easier to estimate or cheaper to delete than another.
Let and let be a unit vector in . The unknown source shift is , where . A fresh representation is
(1)
An independent calibration sample consists of contrasts
(2)
Here and is the total calibration signal-to-noise ratio. Initially is known; Theorem 11 and Section I address an unknown isotropic scale. The contrasts can arise from same-content paired views with independent measurement noise (Section A).
What an editor may use. A rule chooses from the calibration sample and an independent random seed. The chosen matrix is then fixed, shared between sources, and known to the evaluator. At known s, X contains all information about u in the full contrast sample. Extra observations are allowed if their conditional law given X is independent of u (Section B).
A hard, source-neutral cost. The cost is how far the editor moves a fresh representation on average, and it must stay within budget on every fit and seed:
Deleting one unit-variance direction costs one and deleting everything costs d. The budget is total rather than per coordinate (average budgets: Section 5.1).
A covariance-adjusted source residual. We score an editor by how much of the shift remains visible after editing, relative to the spread of the edited data. The edited means differ by and the within-source covariance is . Write for the orthogonal projector onto a subspace K, and row(M), ker M for the row space and kernel. With + the Moore–Penrose inverse, define
The numerator is squared Mahalanobis separation on the output support, so invertible rescaling leaves L unchanged: a downstream classifier can undo any such rescaling, so shrinkage alone removes nothing. By the second expression, , with 0 denoting complete source removal and 1 denoting no reduction of optimal Gaussian discriminability. Section A gives the Gaussian KL and Bayes-error interpretations. Because the residual and the cost are both covariance-adjusted, whitening turns an anisotropic within-source covariance into anisotropic calibration noise, which Section 6 treats.
The hard-budget minimax risk at fixed is
The expectation is over the calibration sample and the seed used to fit the shared editor.
4 THE EXACT COST OF FINITE CALIBRATION
Under the loss Equation (4), only the deleted subspace can help, and each deleted direction costs at least one.
Lemma 1 (Repair is subspace estimation). For every and ,
and has the same residual for every at cost exactly (Section B).
The lemma covers asymmetric matrices, contractions, and nonorthogonal maps; a nonsingular shrinkage has , however small its singular values. It turns the search over all shared linear editors into the choice of a subspace to delete. With one deletion, the residual is the squared sine of the angle between the shift and the deleted direction, so the question becomes how well the calibration points at it. From there, the exact value follows from the posterior of a direction on the sphere and a randomization that equalizes the risk over directions. The reduction is what makes the limit bind every editor rather than one estimator.
Theorem 2 (Exact all-linear frontier). Set and let . Then
For , an attaining editor is , where , , and is a uniformly sampled -dimensional subspace of . It has constant risk over and cost on every fit.
Why this is optimal. By Equation (6), the hard budget permits at most deleted directions. Put a uniform prior on . Given , the posterior of is a von Mises–Fisher law centred at , with density proportional to . It treats all directions orthogonal to alike, so its second-moment matrix has its largest eigenvalue along and equal eigenvalues on . The Bayes action therefore deletes and any orthogonal directions (Eaton, 1989; Mardia and Jupp, 2000; Fourdrinier and Marchand, 2010; Besson et al., 2011). Choosing those directions uniformly at random makes the frequentist risk the same for every , so the Bayes risk is also the minimax risk.
The value has a simple form. Rotate to the first coordinate, so that with standard normal. Deleting leaves the share of off the signal axis, . The numerator is , and the signal coordinate is an independent noncentral . The standard Poisson mixture for this ratio gives Equation (7) (Marchand, 1997). Section B gives the details.
What the formula says. For and , Jensen's and the Cauchy–Schwarz inequalities give (Section B)
For one deletion, the two bounds have an energy reading. The lower bound is the expected off-axis energy over the expected total. The upper bound , the noise share of Figure 1b, also counts the noise on the signal axis. They differ by exactly . Hence, at cost one, an expected residual at most requires and is guaranteed by . At a general budget it requires deleted directions.
The ratio governs the risk: as with and fixed , the risk tends to , so the cost of directional uncertainty persists at constant signal per coordinate (other regimes: Section B). With known u, by contrast, cost one gives zero residual for every . Two features make the attaining editor robust. Its upper bound uses only the mean and covariance of the contrasts, so it holds under non-Gaussian and anisotropic calibration noise at the mean noise level (Theorem 7). It uses only the direction of , so for it stays minimax when the noise scale is unknown, with the same risk at fixed (Theorem 11).
Detection and repair live at different scales. Testing against an unknown direction at strength requires no estimate of that direction. The level- radial test rejects when , the quantile of the central distribution. It has exact power , with a survival function, and is minimax among level- tests at a fixed radius.
Corollary 3 (A detection–repair gap). As with fixed , no level- test has minimum power over directions exceeding when ; the radial test has power tending to one when . If simultaneously , every fixed hard budget b has minimax repair risk tending to one. In that regime, achieving expected residual at most a fixed requires deleting at least directions.
The detection rate is classical (Baraud, 2002; Collier et al., 2017), and the point is its contrast with Equation (7).
Non-Gaussian shared content. The shared content of a pair need not be Gaussian. Suppose each pair consists of shared content drawn from any fixed law with mean zero and covariance , plus independent Gaussian measurement noise on each endpoint, so that each view has identity covariance. The contrast of the pair cancels the content, and its midpoint carries no information about the shift direction. A shared affine editor then costs , since a common offset adds cost but leaves the source separation unchanged. This gives an exact extension: the whole frontier, with its calibration and deletion requirements, holds for every such content law, and the editor of Theorem 2 attains it without knowledge of the law (Theorem 9 in Section A.2).
4.1 A consequence for empirical concept erasers
An empirical eraser removes exactly the mean difference it sees. That difference is the true shift plus calibration noise, so the eraser deletes a noisy direction and leaves population separation behind. For methods that delete the empirical direction, the frontier is this residual.
Corollary 4 (Expected residual of one-direction empirical erasure). In the calibration experiment Equation (2), suppose a fitted shared affine editor satisfies and almost surely. For every true direction ,
Proof. Almost surely , so the two conditions give ; Equation (6) gives the pointwise identity, and the cost-one case of Theorem 2 gives its expectation. The common affine offset does not change source separation.
For balanced paired observations, the empirical source means differ by . MP (Haghighatkhah et al., 2022), centered binary SAL with one direction removed (Shao et al., 2023) and exact binary LEACE (Belrose et al., 2023) all have kernel span{ } almost surely, including LEACE with a singular empirical covariance (Section C). Equation (9) is therefore their exact population residual, for every content law allowed by Theorem 9, and Equation (8) gives their calibration needs. The three methods share the residual but not the distortion. MP and SAL cost exactly one, LEACE's oblique map can cost more, and a mean-restoring offset adds to any of them. Because their residual is known before fitting, Equation (9) can be inverted in N at specified , which gives the smallest calibration size with expected residual at most . At and , the targets 1/2 and 1/4 require and 190 pairs (Section M.2). The excess for any other fitted subspace is the part of the empirical direction it leaves undeleted, weighted by how informative the calibration was.
Corollary 5 (Excess residual of a fitted deleted subspace). In Equation (2), fix and an integer , and let satisfy almost surely, where the fitted editor may use the full allowed calibration information and independent fitting randomness. Write for expectation with U uniform on followed by calibration and fitting at direction U, and set , , and , the fraction of the empirical direction outside K. Then
(10)
where and is the posterior second moment along w in Equation (19). The identity also holds for every content law Q allowed by Theorem 9.
Proof (Section C.5). Given the data, a kernel K has expected residual , where is the posterior second-moment matrix Equation (19).
The first term in Equation (10) is the unavoidable direction-averaged residual at k deleted directions. The second vanishes whenever K contains w. Hence every fixed-k rule that deletes w has direction-averaged risk , however it chooses its other directions. Each deletion beyond the empirical direction thus removes only of the residual left by the first, so a larger budget cannot substitute for more calibration.
Application to iterative and adversarial erasers. An INLP iterate (Ravfogel et al., 2020) or an R-LACE projection (Ravfogel et al., 2022) at a fixed number of deletions is a fitted kernel, and Theorem 5 applies to it whatever the method optimizes. At equal kernel dimension, and hence equal orthogonal cost, it splits the residual into the statistical limit and the excess of the returned subspace, which gives a quantitative reading of the comparisons of INLP steps with random projections in Haghighatkhah et al. (2022). Because depends on , the excess is a diagnostic under the model, not a certificate computed from data alone.
Controlled illustration. We fit MP, SAL, LEACE, fixed-step INLP, and a fixed-budget R-LACE variant to the same paired endpoints and evaluate their actual maps against the simulated shift (Section O). At and one deletion, one-step INLP leaves mean residual , against for MP ( Monte Carlo SE). Its predicted excess 0.181 matches the observed paired excess over MP, and at four deletions the predicted 0.012 matches . The fitted R-LACE subspaces nearly contain w throughout the grid, and their mean residuals follow the fixed-rank frontier (Figure 2a).
Unpaired class samples. With unpaired Gaussian observations per source, the class-mean difference is and is independent of the centered residuals, whose law is free of u. The three erasers again delete it, so Theorem 2, Theorems 4 and 5 and apply with . For two classes of size n this is , against for N pairs, so at equal sample size pairing multiplies by
. Theorem 9, by contrast, needs pairs to cancel the content.
Correcting with the source label. A correction that knows the source can subtract an estimate of the shift from one of them instead of deleting a direction from both. Subtracting itself leaves the share , which exceeds one when ; the shrunken leaves . No estimate does much better: over all , even with and known, the minimax share left lies between and , which differ by at most (Theorem 10). The source label therefore saves the deleted direction, not the calibration: repair still needs .
5 CHOOSING WHEN TO ACT
5.1 The oracle limit of selective repair
The frontier averages over calibration fits, and some fits are more informative than others. Can a rule beat the limit by correcting only after favorable fits? We allow rules that, on each fit, either delete one direction w at cost one or abstain and return the identity, and that act with probability at least p at every shift direction. Let be the smallest worst-case expected residual given that the rule acts, the risk-coverage criterion of selective prediction (El-Yaniv and Wiener, 2010) with coverage taken over calibration samples (Section E).
Theorem 6 (Exact selective frontier). Let satisfy , and let . Then
It is attained by and , which acts with probability exactly at every direction.
Acting on the largest calibration energies is optimal because the larger , the more reliable the empirical direction: its posterior residual decreases with . It lowers the residual, but not enough: when , the best conditional residual still tends to one at any action frequency bounded away from zero (Theorem 12, Section E), so selection cannot close the detection–repair gap. Under a budget that holds only on average over fits, the exact optimum instead spends complete deletion on the least informative fits, where one deletion barely helps (Theorem 13, Section F).
5.2 Certified action without the shift strength
The oracle threshold uses , which an observable rule does not know. We instead require that the mean-direction editor , , applied on an event , rarely both acts and misses a residual target , uniformly over all shifts:
The guarantee is joint because the conditional error among accepted edits cannot be bounded uniformly: as , the residual of any action is -distributed whatever is. A confidence ball around the calibration mean gives one valid rule (Theorem 14), but it rarely acts: at and , where detection is near certain, it acts with probability about . The Poisson representation behind the frontier gives a less conservative one. Given the Poisson component, the calibration energy and the residual are independent, so controlling bad action within each component controls it for every at once. The resulting finite-mixture certificate acts strictly more often than the confidence ball at every shift strength (Theorem 15), also with an estimated noise scale (Section I). As , all these rules switch from almost never to almost always acting at , exactly where the oracle conditional residual crosses the target (Theorem 18).
6 ANISOTROPIC AND CLUSTERED CALIBRATION
Real calibration noise is rarely isotropic, and pairs often come in clusters, such as participants with several epochs each. Clustering is a special case of anisotropic noise, and the guarantee of the attaining editor needs only two moments, so one proposition covers both.
Proposition 7 (Bounds under anisotropic noise). Let the contrasts be i.i.d. with mean and covariance in coordinates where the within-source covariance is , with eigenvalues , and set .
(i) Gaussian or not, the editor of Theorem 2 satisfies for every and .
(ii) If the contrasts are Gaussian, every editor within the hard budget , with , has , whether or not is known.
Proof idea (Section K). For (i), the Cauchy–Schwarz inequality bounds from below by using only the mean and covariance of . For (ii), restricting to the noisiest directions leaves a problem no easier than the isotropic one at noise level . For , part (i) is the upper bound in Equation (8) and part (ii) at is Theorem 2.
Two-level calibration. Let P participants contribute n pairs each. If participant j has shift with , and its pair contrasts vary around it with covariance , the participant means are independent contrasts with mean and covariance . More pairs per participant shrink only the second term.
Corollary 8 (Two-level calibration). In whitened coordinates, the mean-direction erasers have mean residual for the population shift at most , with
If a participant costs as much as c pairs, then at a fixed total cost the bound is smallest at pairs per participant.
Proof. Apply Theorem 7(i) with and ; at fixed cost, is largest when is smallest, which gives , the classical allocation of two-stage sampling (Cochran, 1977).
The calibration strength is therefore capped at however many pairs each participant gives, and only more participants raise the cap. The residual itself is the expectation of under the law of . We evaluate it by plug-in Monte Carlo and call it the two-level prediction, to which the bound is close unless the noise spectrum is steep.
7 SIMULATIONS AND REAL DEVICE SHIFTS
7.1 Simulations and a semisynthetic check
Simulations of the Gaussian experiment reproduce the exact formulas of Sections 4 and 5 within Monte Carlo error (Table 1 and Figure 3 in Section L). For instance, the cost-one residual at is against the exact 0.6652. Real represented content gives the same agreement, as Theorem 9 predicts. We take three fixed pools of EEG features from a public paired-recording dataset (Williams et al., 2020), inject shift and noise as in Equation (16), and fit MP, SAL and LEACE. Over 120 conditions the residuals deviate from the predictions by 0.004 in root mean square, and at the budgets all three pools land on their targets (Section M.2). Selection and certification behave as Section 5 predicts. At and , acting on only a fraction of fits lowers the optimal conditional residual from 0.661 to 0.549 (Figure 4). Without certification, acting whenever the radial test rejects would, at (256, 128), act and miss the target with probability 0.9986. The certified finite-mixture threshold is lower than the confidence ball's, 559.4 against 588.6 at (Figure 6).
7.2 A wearable versus a clinical recording
In the BOAS dataset (López-Larraz et al., 2026), 100 healthy participants slept in a clinical polysomnograph and a forehead EEG headband at once. For each participant we take one night, drawn with a fixed seed before any analysis. We pair log-power spectra (0.5–30 Hz, 0.5 Hz bins) of the two headband channels with those of the nearest polysomnograph channels in the same 30-s N2 epoch, so each epoch gives one calibration pair and d = 118. A channel-quality rule leaves 85 participants (Section N). The participant is the calibration unit. We split participants at random into a calibration pool of 43 and a test set of 42, whiten with the pool's within-source covariance, and estimate , and from the pool alone. We then draw P calibration participants with n epochs each, fit the erasers, and measure on the test participants how much of the population mean shift remains, over 20 random splits.
The two-level prediction of Section 6 matches the observed residual across the grid , (Figure 2b): the root-mean-square deviation over 80 cells is 0.016, and the closed-form bound is never exceeded by more than 1.96 standard errors. The agreement holds without the channel-quality rule, for all sleep stages, for d from 28 to 236, and for the actual MP, SAL and LEACE maps, whose kernels coincide (Section N). On the 16 participants of the Neuroscan/Flex N170 recordings (Williams et al., 2020), a second device pair, the deviation is 0.005 (Section N.1).
The number of participants limits the correction. All epochs of one participant share that participant's shift. One participant caps at , so even 128 of its epochs leave 0.69 of the shift, whereas four participants leave about half and 32 leave 0.125. Because , a participant who costs as much as 100 epochs is best recorded for about 33 epochs, or 17 minutes of N2 sleep, a split that a pilot of eight nights already recovers (Section N).
Detection again comes first (Figure 2c): with eight participants and eight epochs each, the shift is detected in 97% of draws, yet half of it remains. The gap widens with dimension, as Theorem 3 leads one to expect: at n = 8, half detection power needs about four participants for every d from 28 to 236, while halving the shift needs about 4, 6, 8 and 12 participants at d = 28, 58, 118 and 236. Subtracting the unshrunk mean difference with the known device label does worse than the erasers at every calibration size, and worse than no correction for fewer than 12 participants at n = 8, as its share predicts. Shrinkage removes this failure, but in the isotropic model no subtraction leaves less than the one-direction frontier (Theorem 10).
(a) Fitted erasers at

(b) Wearable vs. clinical EEG,
(c) Detected long before repaired
Figure 2: What the frontier predicts for fitted erasers and for a real device shift. (a) Simulation at with : share of the shift left in the population against median distortion cost, over 256 calibrations ( Monte Carlo SE). No shared linear editor can go below the exact frontier (line). Methods on the line are calibration-limited: four times the budget lowers the frontier only from 0.49 to 0.44. The orange arrow is the excess of one-step INLP predicted from its fitted kernel (Equation (10)), and the grey arrow is LEACE's extra distortion at the same kernel. (b, c) BOAS: share of the shift left in held-out participants (points, SE over 20 random splits of the same participants, which understates the uncertainty from the choice of people) and its prediction from the calibration pool alone (lines). (b) Dotted levels are the limits as . (c) At , the shift is detected (grey) long before the erasers remove it (blue).
8 DISCUSSION
Within this model, the exact frontier is a benchmark for a correction that falls short. As lower bounds, its limits also bind any larger model class containing this Gaussian experiment under the same constraints. The frontier separates three reasons: the editor may be suboptimal (Theorem 5), the calibration may be too small for the budget (Theorem 2), or the calibration may be collected on the wrong unit (Theorem 8). Evaluating representation repair should therefore report the achieved reduction, its distortion, and its frequency of application, rather than treating source detection as evidence that repair is already possible.
Using the frontier in practice. The frontier plays the role of a power analysis for repair. Before any calibration is collected, it gives the calibration signal-to-noise that a target residual requires. With repeated recordings per unit, such as participants or sites, three numbers fix : the size of the shift , its variation between units tr , and the noise within a unit tr . A small pilot estimates them, and Equation (13) turns them into how many units to record and how many recordings per unit. It also warns when more recordings from the same units cannot reach the target. After fitting, the certificates of Section 5 decide, in the isotropic model, whether to apply the edit or to leave the data unchanged.
Limitations. The exact results assume independent calibration, isotropic Gaussian contrasts, a single shift direction, shared linear or affine editing, and the covariance-adjusted residual and distortion. With pairs, the frontier stays exact for any shared content (Theorem 9). Like every linear eraser, including LEACE, the editors remove only the first-moment difference. Second-moment differences, which can be substantial between devices (Section N), are beyond any linear correction (Chowdhury et al., 2025; Akbari et al., 2025). All recordings are public and de-identified, and no new data were collected. Neither source decodability nor a reduction in source separation alone establishes a downstream benefit: editing can remove useful information even when a residual target is met, so whether removal is desirable, in fairness, privacy, or prediction, must be evaluated in the application (Ravichander et al., 2021; Elazar et al., 2021; Kumar et al., 2022).
What remains open. Under anisotropic noise the minimax value is only bracketed (Theorem 7), and weighting the direction estimate by the noise may beat the empirical one when the spectrum is steep. Shifts spread over several directions, or more than two sources, call for a subspace version of the frontier. Correcting one person means targeting their own shift rather than the population mean, which would combine both levels of Equation (13). Calibrating until a certificate passes needs a sequential version of the guarantees. Finally, the distortion cost treats all directions alike, whereas one that charges more for deleting task-relevant directions would trade the residual against downstream utility.
Code and saved results for every figure and table: https://github.com/sneddy/shift-repair-frontier
AI use statement
Generative artificial intelligence (AI) tools assisted code cleaning and refactoring, preliminary literature search, and manuscript text polishing. All AI-assisted code was reviewed and tested by the authors. The authors retain full responsibility for the final content.
Acknowledgements
We would like to acknowledge support from the MBZUAI Startup Fund.
References
Akbari, R., Afshari, M., and Boddeti, V. N. (2025). Obliviator reveals the cost of nonlinear guardedness in concept erasure. In Advances in Neural Information Processing Systems, volume 38.
Angelopoulos, A. N., Bates, S., Candès, E. J., Jordan, M. I., and Lei, L. (2025). Learn then test: Calibrating predictive algorithms to achieve risk control. The Annals of Applied Statistics, 19(2):1641–1662.
Bai, R., Ji, Y., Kim, M., Currie, E., Zhou, Z., and Inouye, D. I. (2026). Provable robustness to spurious correlations via invariant data for robust finetuning. In Causality in the Age of AI Scaling (CauScale), Workshop at AISTATS. Non-archival workshop paper.
Bai, R., Ji, Y., Zhou, Z., and Inouye, D. I. (2025). From invariant representations to invariant data: Provable robustness to spurious correlations via noisy counterfactual matching. arXiv:2505.24843.
Baraud, Y. (2002). Non-asymptotic minimax rates of testing in signal detection. Bernoulli, 8(5):577–606.
Belrose, N., Schneider-Joseph, D., Ravfogel, S., Cotterell, R., Raff, E., and Biderman, S. (2023). LEACE: Perfect linear concept erasure in closed form. In Advances in Neural Information Processing Systems, volume 36.
Berthet, Q. and Rigollet, P. (2013). Optimal detection of sparse principal components in high dimension. The Annals of Statistics, 41(4):1780–1815.
Besson, O., Dobigeon, N., and Tourneret, J.-Y. (2011). Minimum mean square distance estimation of a subspace. IEEE Transactions on Signal Processing, 59(12):5709–5720.
Box, G. E. P. and Draper, N. R. (1987). Empirical Model-Building and Response Surfaces. Wiley, New York.
Cai, T. T., Ma, Z., and Wu, Y. (2013). Sparse PCA: Optimal rates and adaptive estimation. The Annals of Statistics, 41(6):3074–3110.
Chowdhury, S. B. R., Dubey, K. A., Beirami, A., Kidambi, R., Monath, N., Ahmed, A., and Chaturvedi, S. (2025). Fundamental limits of perfect concept erasure. In Proceedings of the 28th International Conference on Artificial Intelligence and Statistics, volume 258 of Proceedings of Machine Learning Research, pages 901–909. PMLR.
Cochran, W. G. (1977). Sampling Techniques. Wiley, New York, third edition.
Collier, O., Comminges, L., and Tsybakov, A. B. (2017). Minimax estimation of linear and quadratic functionals on sparsity classes. The Annals of Statistics, 45(3):923–958.
Eaton, M. L. (1989). Group Invariance Applications in Statistics, volume 1 of Regional Conference Series in Probability and Statistics. Institute of Mathematical Statistics.
El-Yaniv, R. and Wiener, Y. (2010). On the foundations of noise-free selective classification. Journal of Machine Learning Research, 11:1605–1641.
Elazar, Y., Ravfogel, S., Jacovi, A., and Goldberg, Y. (2021). Amnesic probing: Behavioral explanation with amnesic counterfactuals. Transactions of the Association for Computational Linguistics, 9:160–175.
Esparza-Iaizzo, M., Sierra-Torralba, M., Klinzing, J. G., Minguez, J., Montesano, L., and López-Larraz, E. (2026). Automatic sleep scoring for real-time monitoring and stimulation in individuals with and without sleep apnea. Computers in Biology and Medicine, 205:111560.
Fourdrinier, D. and Marchand, É. (2010). On Bayes estimators with uniform priors on spheres and their comparative performance with maximum likelihood estimators for estimating bounded multivariate normal means. Journal of Multivariate Analysis, 101(6):1390–1399.
Haghighatkhah, P., Fokkens, A., Sommerauer, P., Speckmann, B., and Verbeek, K. (2022). Better hit the nail on the head than beat around the bush: Removing protected attributes with a single projection. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8395–8416. Association for Computational Linguistics.
Herrera-Esposito, D. and Burge, J. (2025). Projected normal distribution: Moment approximations and generalizations. arXiv:2506.17461.
Holsteger, F., Ravfogel, S., and Wouters, B. (2025). Preserving task-relevant information under linear concept removal. In Advances in Neural Information Processing Systems, volume 38.
Jin, T., Dong, S., Li, H., and Chou, C.-H. (2026). Iterative erasure count is not an affine-invariant concept dimension. arXiv:2608.10566.
Johnstone, I. M. and Lu, A. Y. (2009). On consistency and sparsity for principal components analysis in high dimensions. Journal of the American Statistical Association, 104(486):682–693.
Kumar, A., Tan, C., and Sharma, A. (2022). Probing classifiers are unreliable for concept removal and detection. In Advances in Neural Information Processing Systems, volume 35.
López-Larraz, E., Sierra-Torralba, M., Clemente, S., Fierro, G., Oriol, D., Minguez, J., Montesano, L., and Klinzing, J. G. (2026). The Bitbrain open access sleep (BOAS) dataset. OpenNeuro, dataset ds005555, version 1.1.3.
Marchand, É. (1997). On moments of beta mixtures, the noncentral beta distribution, and the coefficient of determination. Journal of Statistical Computation and Simulation, 59(2):161–178.
Mardia, K. V. and Jupp, P. E. (2000). Directional Statistics. Wiley Series in Probability and Statistics. John Wiley & Sons.
Mergny, P. and Zdeborová, L. (2026). Spectral thresholds in correlated spiked models and fundamental limits of partial least squares. In Proceedings of The 29th International Conference on Artificial Intelligence and Statistics, volume 300 of Proceedings of Machine Learning Research, pages 3925–3933.
Naowarat, B., Tang, H., and Goldwater, S. (2026). A framework for analyzing concept representations in neural models. In Proceedings of the 30th Conference on Computational Natural Language Learning, pages 574–587.
Rabanser, S., Günnemann, S., and Lipton, Z. C. (2019). Failing loudly: An empirical study of methods for detecting dataset shift. In Advances in Neural Information Processing Systems, volume 32, pages 1394–1406.
Ravfogel, S., Elazar, Y., Gonen, H., Twiton, M., and Goldberg, Y. (2020). Null it out: Guarding protected attributes by iterative nullspace projection. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7237–7256. Association for Computational Linguistics.
Ravfogel, S., Twiton, M., Goldberg, Y., and Cotterell, R. D. (2022). Linear adversarial concept erasure. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 18400–18421. PMLR.
Ravichander, A., Belinkov, Y., and Hovy, E. (2021). Probing the probing paradigm: Does probing accuracy entail task relevance? In Proceedings of the 16th
Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 3363–3377.
Shao, S., Ziser, Y., and Cohen, S. B. (2023). Gold doesn't always glitter: Spectral removal of linear and nonlinear guarded attribute information. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 1611–1622.
Williams, N. S., McArthur, G. M., de Wit, B., Ibrahim, G., and Badcock, N. A. (2020). A validation of emotiv EPOC flex saline for EEG and ERP research. PeerJ, 8:e9713.
Yamashita, A., Yahata, N., Itahashi, T., Lisi, G., Yamada, T., Ichikawa, N., Takamura, M., Yoshihara, Y., Kunimatsu, A., Okada, N., Yamagata, H., Matsuo, K., Hashimoto, R., Okada, G., Sakai, Y., Morimoto, J., Narumoto, J., Shimada, Y., Kasai, K., Kato, N., Takahashi, H., Okamoto, Y., Tanaka, S. C., Kawato, M., Yamashita, O., and Imamizu, H. (2019). Harmonization of resting-state functional MRI data across multiple imaging sites via the separation of site differences into sampling bias and measurement bias. PLOS Biology, 17(4):e3000042.
Detecting a Shift Is Not Enough: Exact Minimax Limits of Linear Representation Repair Supplementary Materials
Roadmap. Sections A to D prove the results of Sections 3 and 4, Sections E to J prove those of Section 5 on when to act, and Section K proves Theorem 7 of Section 6. Section L reports the simulations of the theory, Section M fitted MP, SAL and LEACE on Gaussian and real content, Section N the wearable-versus-clinical EEG analysis with its Neuroscan/Flex replication, Section O INLP and R-LACE at fixed rank, and Section P a check under anisotropic content.
A MODEL DETAILS AND THE PAIRED REALIZATION
A.1 A paired realization with unchanged content
This appendix gives a paired construction that realizes the calibration experiment Equation (2) and interprets the residual. Both sources have positive probability, and their proportions do not enter the residual.
One realization of Equation (2) uses, for ,
where and are independent. Each view has within-source covariance and . The midpoint is independent of the difference and its law does not involve at fixed , so observing the full pair adds no directional information at known . Inference can therefore be based on the contrasts alone. Any is allowed there, while the paired construction above needs . With a single contrast would identify and make cost-one repair exact, which is a different experiment. When is unknown, observations whose law depends on could sharpen the scale estimate and with it the power of a certificate, and Section I builds the estimated-scale certificates from the contrasts and their residuals.
Gaussian interpretation of the residual. The numerator in Equation (4) is twice the KL divergence between the two edited Gaussian source distributions. For equal source probabilities the Bayes classification error is , where is the standard normal distribution function. In both readings the edited sources share the covariance , and when deletes directions the two quantities are computed on its output support.
A.2 Arbitrary shared content
Fix , , , , and let the shared content have any fixed law on with
where does not depend on the unknown shift. For each calibration pair, draw and , mutually independently and independently across pairs, and set
Fresh observations use independent draws with , where , , and are independent. The editor may know and use the full calibration pairs and independent fitting randomness, but is fixed before observing fresh evaluation draws.
Corollary 9 (The frontier with arbitrary shared content). Under Equations (15) and (16), the source-neutral cost of a shared affine editor equals , and its normalized covariance-adjusted squared mean separation equals of Equation (4). For every hard budget , the minimax expected loss over fitted editors satisfying on every fit and seed, with the worst case over , equals with . The orthogonal editor of Theorem 2, with zero offset, attains this value without knowledge of .
Proof. The fresh variation has and , so expanding the quadratic distortion gives the cost identity; the edited source means differ by with common covariance , so Equation (6) gives the loss identity; only the moments of enter.
Next write each pair as its difference and midpoint, and . The Gaussian noise difference and noise average have zero cross-covariance and hence are independent, and both are independent of . Thus , and the midpoints are independent of the contrasts with a law that does not involve ; the same holds jointly across the pairs, and at fixed the centered contrast residuals are likewise independent of with a -free law. Since the endpoints and determine each other, all directional information in the full pairs is contained in of Equation (2); the remaining observations can serve only as fitting randomness, which Theorem 2 already allows. Together with the two identities, this is the decision problem Equation (5), which gives the lower bound; an offset leaves the loss unchanged and adds nonnegative cost. The attaining orthogonal editor depends only on and independent completion, so it has the same cost and risk here, proving equality.
B PROOF OF THEOREM 2
B.1 Reduction to subspace estimation
For Equation (6), an SVD identifies as the projector onto , and in an orthonormal basis beginning with ker each kernel vector contributes one to while the remaining contributions are nonnegative. Hence any matrix with kernel is weakly dominated in cost, at identical loss for all , by . If , enlarging to dimension weakly decreases the loss while remaining within budget. It is therefore enough to consider rank- orthogonal projectors in
When , every feasible matrix is invertible and . When , the zero editor attains zero loss. The remaining case is .
By Gaussian sufficiency, the likelihood of the contrasts factors into the density of X and a law of the centered residuals that does not depend on u. Every variable whose conditional law given X does not involve u, such as the residuals, can be simulated from X and an independent seed. It therefore suffices to consider randomized rules that use the data only through X.
B.2 Posterior eigenspaces under a spherical prior
Put a uniform prior on . Conditional on , let and . The posterior density is
Rotations fixing w leave this density invariant, so
To see that , let for uniform on the sphere. Symmetry gives
Both and are nondecreasing functions of . For any scalar random variable and nondecreasing , with an independent copy. Thus .
A rule that deletes captures the posterior expected signal . The matrix has its largest eigenvalue on and a common smaller eigenvalue on , so any that contains maximizes this signal, and the remaining directions in can be chosen freely.
B.3 From the Bayes action to a minimax action
Choose the extra dimensional subspace uniformly in , conditionally independently given . This rule is rotationally equivariant in distribution. For every orthogonal , the observation under parameter has the distribution of under , and the selected kernel transforms as . Since , the frequentist risk is constant on the sphere. Its common risk equals the uniform-prior Bayes risk, which lower-bounds the maximum risk of every rule, including nonequivariant rules. The rule therefore attains the minimax risk. For no fitting randomization is needed. Random completion is chosen once when fitting, and the evaluator observes the resulting matrix. On the probability-zero event , any fixed -dimensional may be chosen.
B.4 Evaluation by a noncentral-beta moment
It remains to evaluate the risk of the attaining rule. Rotate u to . For define
Deleting leaves loss . Given , uniform completion captures the fraction of the remaining squared direction, in expectation. Its expected residual is consequently
Use with . Conditional on , the independent chi-square variables give
This proves Equation (7). The scalar expectation is also the orthogonal coefficient of the exact isotropic projected-normal second moment derived by Herrera-Esposito and Burge (2025). The same calculation shows that, given , the ratio and total are independent, which proves Equation (44).
B.5 Bounds and limiting regimes
An integral form useful for both analysis and numerical cross-checking is
Jensen's inequality gives , the lower bound in Equation (8). For the upper bound, let and recall that the cost-one editor has expected residual . By the Cauchy-Schwarz inequality, ; since and , we get , that is, . Multiplying by proves the upper bound in Equation (8); only the mean and second moment of were used. Two further bounds are sharper at the extremes. Monotonicity of the denominator gives , and since , replacing by one gives . They improve on Equation (8) only when or . The low-signal limit follows from in probability and bounded convergence. For and , in probability, so . For fixed and , substitute in Equation (24) and apply dominated convergence to obtain .
Affine maps and alternative budgets. For an affine editor , the common offset leaves source separation unchanged. Its cost on centered is , so it cannot improve the frontier. If the cost were normalized by , the same result would hold with replaced by . A fractional budget
cannot help. By Equation (6) the loss depends only on the kernel, and any map with a -dimensional kernel costs at least , whether it is orthogonal or oblique. The same argument applies to a covariance-weighted distortion such as LEACE's, with the weighted norm in place of the Frobenius norm. The exact solution when the budget is imposed only in expectation is Theorem 13, proved in Section F.
B.6 Subtraction with a known source label
Proposition 10 (Source-aware subtraction). In the experiment Equation (2), let a correction subtract from one source an estimate of the shift that may depend on the calibration sample, an independent seed, and s. With under the uniform prior of Equation (19),
and the two ends differ by at most . The upper bound is the risk of .
Proof. Subtraction leaves the within-source covariance unchanged, so the share of squared separation left is with . The loss is convex in and is sufficient for at known , so we may take to be a function of . Under the uniform prior, rotations fixing leave the posterior density invariant, so , and the posterior expected loss of any is at least , with equality at . This rule is equivariant under rotations, so its risk does not depend on and equals its Bayes risk ; a Bayes rule with constant risk is minimax, which gives the equality. Jensen's inequality gives . Since is the Bayes risk of deleting in Theorem 2, this proves the lower bound. For the upper bound, gives , which equals at . Finally, Equation (8) gives .
B.7 Unknown noise scale
Corollary 11 (The hard-budget optimum with unknown noise scale). For , fix and parameterize . Even with unknown,
The editor in Theorem 2 attains this risk without knowing the shift strength or the noise scale.
Proof. Restrict the parameter space to any fixed and reveal to the procedure. This can only lower the minimax risk, and the known-scale lower bound is Equation (7). Conversely, the editor of Theorem 2 depends on the sample mean only through its direction, and its random completion uses no unknown parameter. At each , , so its risk equals Equation (7) at every . This proves equality.
The statement holds fixed, so and s vary together: with and N fixed, more noise lowers and raises the risk.
C KERNELS OF MP, SAL AND LEACE (COROLLARY 4)
This section proves the method-specific conditions in Theorem 4. The projection and erasure formulas are existing constructions, and Theorem 2 supplies their finite-calibration population risk in the stated Gaussian experiment. Computationally, MP and centered rank-one SAL need only the mean difference, which takes time and memory. LEACE also needs the pooled covariance and its whitening, which take time and memory. The action rules of Section 5.2 need only and a scalar threshold.
C.1 Balanced paired moments
Let , be the pairs from Section A, with source labels , and differences . Write and define the centered pooled moments
Both source endpoints are observed for each calibration pair, so this experiment has N pairs and 2N labeled representations. The full-pair construction keeps the within-source fresh covariance equal to and makes the midpoint ancillary for the direction at fixed noise scale. Consequently these fitted editors are also admissible with respect to the information restriction in Section 3, although their cost must still be checked separately. The residual identity itself only requires the stated kernel and the distribution of , regardless of how other fitted quantities are obtained.
C.2 MP and centered rank-one SAL
For MP (Haghighatkhah et al., 2022), let and set . Its kernel is span . For SAL (Shao et al., 2023), use the centered representation–label cross-covariance and remove its nonzero left singular direction. With a scalar binary label this cross-covariance is . With centered two-class one-hot labels its two columns are opposite multiples of . In either case it has rank one almost surely, and the retained map is again . The statement concerns centered binary SAL that removes exactly one direction. Other variants are covered by Theorem 5, which applies to any fitted kernel. The scalar-binary equivalence of MP and SAL is also identified in Appendix D of Belrose et al. (2023). If either map is applied about the fitted pooled mean, its offset is . The offset leaves the residual unchanged but adds to the distortion.
C.3 Binary LEACE, including singular empirical covariance
Let be the matrix whose columns are the centered endpoints. Then and for the vector of source labels . Therefore . Since almost surely, even if is singular. The exact binary LEACE map can be written
This is the usual whiten-project-unwhiten expression (Belrose et al., 2023): with , its removed map is , using . As , we have . Conversely, implies , so its kernel is exactly span . The covariance and offset can vary across fits without changing this kernel or the residual in Equation (9).
The linear and affine reference costs are, respectively,
The inequality follows from and Cauchy–Schwarz. The empirical LEACE distortion objective uses its fitted data moments and need not coincide with the population reference cost Equation (3). Neither an observed cost on one fit nor its empirical average establishes the deterministic budget required by Theorem 2.
C.4 Residual law and certificates
By Theorem 4 these erasers have the same residual on each calibration sample, and the calculation in Section B gives its law, with . Hence a certificate for the mean-direction projection computed from the same contrasts (Sections G to I) controls the identical residual of these erasers under Equation (12). Their method-specific distortion is not covered by the hard budget.
C.5 Proof of Corollary 5
Let include all calibration observations and the fitting seed. By the factorization of the experiment, the conditional law of given equals that given , whose second-moment matrix is by Equation (19). Since and ,
The posterior ordering in Equation (19) gives , and the frontier calculation gives ; taking expectations and using Equation (7) proves Equation (10). The full-pair extension has the same posterior by the midpoint–contrast factorization in Section A.2.
D PROOF OF COROLLARY 3
D.1 The radial test is minimax at a fixed radius
Let be uniform on the sphere and its Gaussian mixture. Relative to , its likelihood ratio is
By symmetry the last expectation equals with . It therefore depends only on and increases in , because is even and increasing on . The Neyman–Pearson test for this mixture rejects at large . It maximizes average power under the uniform mixture and has equal power at every direction. Average power upper-bounds minimum power for every competing test, proving the minimax claim.
D.2 Lower and upper detection scales
For independent uniform ,
For completeness, has the law of the first coordinate of a uniform sphere point and
expanding the exponential proves Equation (33). If , the total variation distance tends to zero by the chi-square bound. No level- test can then have minimum power above .
Under the alternative, has mean and variance . For fixed , its null critical value is . If , the excess mean over this threshold dominates the alternative standard deviation, so Chebyshev's inequality gives power tending to one. Finally, for fixed and , . For the risk equals one at every . Rearranging the same lower bound gives the deletion requirement in Theorem 3.
E PROOF OF THEOREM 6
Corollary 12 (Abstention cannot close the gap at a fixed frequency). For every ,
If and is bounded below by a positive constant, the best conditional residual tends to one.
The attaining selective rule, returning the identity on abstention, has unconditional risk , which rearranges to Equation (35). Thus the detection–repair gap persists when a rule may choose when to act but must keep its action frequency bounded away from zero as dimension grows. The frontier extends continuously to by .
Keep fixed and use the uniform prior over . By Equation (19), the minimum posterior residual among rank-one deletions is at , attained by deleting . It is strictly decreasing for . To prove this, set for a uniform sphere point and let denote expectation under the density tilted by . Differentiation under the bounded integral gives
Both and are strictly increasing in Y. Since Y is nondegenerate, the covariance argument of Section B shows that their covariance is strictly positive.
For any feasible rule, set , , and . Since , the worst conditional residual obeys
The second inequality conditions on the fit, including its random seed: none of those extra variables changes the posterior of u given X under the experiment's factorization assumption. The selected direction therefore cannot have posterior residual below .
For a fixed average action probability , the last numerator is minimized by taking the largest norms. For an explicit argument, let have probability under the prior predictive law, and write . Pointwise,
Its expectation and imply . This remains valid for randomized actions by conditioning on . The tail average is nondecreasing in , since enlarging the accepted tail adds only larger values of . Therefore Equation (37) is at least .
The mean-direction rule with is rotationally equivariant, so it has probability and the same conditional residual at every . It attains the posterior bound and the tail rearrangement bound, hence attains . The ratio of the first-moment and probability identities in Equation (44) gives Equation (11). This proves Theorem 6. Theorem 12 follows from applying Theorem 2 to this rule including its identity action on abstention.
As , dominated convergence recovers the ungated rank-one risk. As , and the posterior density concentrates on the mean direction, so . Since , the selective frontier tends to zero at fixed . The latter limit permits arbitrarily rare actions and does not contradict the fixed-frequency asymptotic lower bound.
F THE AVERAGE-BUDGET FRONTIER
An average budget lets the distortion depend on how informative the calibration fit is. At known scale and oracle-known , define
The expectation in the constraint is over calibration and fitting randomness.
Theorem 13 (Exact average-budget frontier). For known scale, fixed , and ,
The endpoint risks are one at and zero at . For , delete the mean direction on the largest-norm tail of probability and otherwise return the identity. For , delete the entire representation on the smallest-norm tail of probability , and otherwise delete only the mean direction. These rules have expected cost exactly at every .
The attaining rules use the known scale and oracle knowledge of .
F.1 Proof and the optimal allocation
Let under the uniform-sphere prior. For any fitted , the factorization assumption gives , and the cost of is at least dim ker . For every , therefore,
where replaces negative eigenvalues by zero. Integrating the expected-cost constraint against gives , so every feasible rule satisfies
This lower bound applies directly to all matrices and all fitting randomization.
Write , , and . The eigenvalues of are on the mean direction and with multiplicity on its orthogonal complement. For and , ; strictly increases from to one while strictly decreases from to zero. The distribution of is continuous and does not depend on .
If , choose so that and take . The positive eigenspace of is empty below and consists only of the mean direction above . Thus the stated identity-or-rank-one rule attains equality in Equation (41) and has expected cost . By rotational equivariance its cost and risk are constant over , attaining the lower bound Equation (42). Its risk is .
If , set and choose with . Take . The mean direction always has a positive coefficient, while all remaining directions have positive coefficients exactly when . The optimal kernel is therefore the entire space below and the mean direction above it. Expected cost is , and the risk is . Again both are constant over , and equality in the lower bound proves optimality. At , choose and always delete only the mean direction. At only the identity has zero cost, so the risk is one. At the zero matrix is affordable and removes the whole shift.
The optimum therefore differs from mixing adjacent hard-budget ranks, which would randomize the deletion rank independently of the fit. Above cost one it spends the additional deletions on the least informative, low-norm fits (Figure 5). At the posterior is isotropic and the frontier tends to , the value of random deletion.
G THE CONFIDENCE-BALL RULE AND EXACT ACTION LAWS
Theorem 14 (Confidence-ball action rule). Let , , and act exactly when
The mean-direction editor satisfies Equation (12) for every nonzero . At , its probability of taking action is at most . For nonzero , its exact action probability is .
The ball's tangent cone is the classical directional confidence cone (Box and Draper, 1987), and its angular width bounds the error of the estimated direction.
G.1 Geometry of a confidence ball
Since , the event has probability exactly at every shift. Consider a ball with center and radius . For any nonzero inside the ball, the line spanned by intersects the ball, so its distance to is at most . That distance squared is . Therefore the largest squared sine from the center direction is at most ; equality is attained at a tangent direction. Taking and proves Theorem 14 on . On the action event , so the ball does not contain zero. A bad action can therefore occur only when the ball misses the true shift, and its joint probability is at most at every nonzero shift. That depends on the data does not affect this argument, because coverage is a statement about the whole ball. At the null, the action event is contained in and therefore has probability at most . The noncentral chi-square law of gives the exact action probability stated in the theorem.
G.2 Exact laws for a radial action rule
For the mean-direction editor and any , set , write , and let . Under a fixed direction, the variables of Section B give and , independently given ; conditioning on and applying the event therefore gives, with ,
(44)
Thus the mean residual among actions is . Counting abstention as the identity, the total expected residual is . The ball rule can be highly conservative: for , , and , its action probability is about despite near-certain detection. The probability of failure among actions is
which is different from the unconditional joint probability in Equation (12). At and , the confidence-ball rule acts with probability , yet its conditional mean residual is 0.56, above the target 0.5. Controlling the joint bad-action probability therefore does not guarantee the target residual among accepted corrections. All action probabilities are positive for finite thresholds in this Gaussian model, though they may be extremely small. The guarantee assumes a prespecified and a single decision. Repeatedly testing growing calibration samples, or choosing the reported target after inspecting the data, needs an additional simultaneous or sequential argument.
H THE FINITE-MIXTURE RULE
This section lowers the confidence-ball threshold by controlling the bad-action probability separately in each Poisson component of the noncentral chi-square law. For , define
The sequence decreases to zero, so is finite. Write for the upper-tail quantile, and take a maximum over an empty set as zero.
Theorem 15 (Finite-mixture action certificate). For , let
Act with the mean-direction editor when . For every nonzero , the joint bad-action probability in Equation (12) is at most ; null action is also at most . Moreover,
Thus its action probability is strictly larger than the confidence-ball rule's at every finite .
H.1 A finite family of componentwise constraints
Condition on the exact Poisson representation from Section B. Given , let and be independent. The total is independent of . Consequently the conditional joint bad-action probability at threshold is
The actual probability at any fixed noncentrality is . This is the exact law at the true and involves no prior on it.
To show that decreases to zero, construct with independent and the same . Then almost surely, with a strict decrease in each nontrivial tail probability. Moreover, Markov's inequality gives the explicit bound
Only the finite set can impose a nontrivial constraint: if , then for every nonnegative threshold. For , the constraint is exactly , because the chi-square survival function is continuous and strictly decreasing. Adding for null control proves both the validity and the componentwise minimality of Equation (47).
H.2 Strict improvement over a confidence ball
For every , the event implies . Thus
All component constraints are satisfied by . The extra null constraint therefore gives Equation (48). The strict final inequality follows from and . The latter follows by coupling a variable as an independent plus , both with positive densities on their support. Since the noncentral chi-square distribution has positive density at every positive finite argument, reducing the threshold strictly increases action probability at every finite . This proves Theorem 15.
The threshold is the smallest satisfying the componentwise sufficient constraints together with null control. These constraints can be conservative for the original joint bound: the Poisson weights cannot place all their mass on an arbitrary positive , so may exceed , and is minimal for the componentwise scheme rather than for the joint bound itself.
I CERTIFICATES WITH AN ESTIMATED NOISE SCALE
I. 1 The estimated-scale confidence-ball rule
Suppose is unknown and . The full contrast sample estimates it through
Pooling over coordinates is valid because the noise is isotropic and Gaussian.
Theorem 16 (Confidence-ball action with estimated scale). For , let be the quantile of the central distribution with degrees of freedom ; denotes its noncentral version. The rule that acts with the mean-direction editor exactly when satisfies Equation (12) uniformly over and , and takes action at the null with probability at most . Its exact action probability is
I. 2 Proof of Theorem 16
An orthogonal transformation of the samples in each coordinate separates their normalized mean from centered Gaussian coordinates. Summing residual squares over coordinates gives
Hence
The ball has exact coverage at every and . On , it excludes zero and its tangent bound is at most . The joint and null guarantees in Theorem 16 follow exactly as for known scale. The noncentral law proves Equation (53).
I. 3 A finite-mixture improvement with estimated scale
Corollary 17 (A stronger certificate with estimated scale). With , from Equation (46), let and
The rule has joint bad-action and null action probabilities at most , uniformly over unknown . It satisfies and therefore strictly increases action probability over the confidence-ball rule at every finite .
The proof conditions on the same Poisson component and uses the independent residual variance.
Let be independent of . At threshold for , the conditional joint probability is
The same finite component argument yields Equation (56) and its joint guarantee; gives null control. For the domination bound, a bad action implies . Consequently all components are controlled if
Thus
For strictness, couple the two numerators with a shared independent denominator . Then almost surely under the additive coupling, implying the strict quantile inequality . Because the noncentral density is positive, the lower threshold strictly increases the action probability. The thresholds depend only on , , and , so the rule needs neither nor .
The counterpart of Equation (44) with quantiles follows by the same conditioning on and the independent denominator . For fixed and it recovers the known-scale rule and its action law.
J PROOF OF COROLLARY 18
Corollary 18 (A sharp constant-strength action boundary). Suppose , , and . Then uniformly over such . For fixed , the known-scale and rules, both confidence-ball and finite-mixture versions, have action probabilities tending to one when and to zero when . The result permits any sequence , including fixed .
Rotate u to and suppose . In the direct Gaussian representation,
in probability. Hence in probability and, because it is bounded, in . For any event with probability at least ,
Apply this to the exact selective attaining rules for all to prove the first part of Theorem 18 uniformly over action frequencies.
For fixed , concentration gives . When , and the central distribution concentrates at one, so . The observed normalized energies satisfy and . The ball thresholds, normalized as and , both tend to . This proves their action limits strictly above and below the boundary.
The mixture thresholds satisfy the same limits:
The domination bounds prove the upper limits. For the lower limits, suppose along a subsequence one of these normalized thresholds stays at most for some . Choose with and use . Under this sequence the proposed action probability tends to one, but , so joint bad action tends to one. This contradicts the finite-dimensional uniform bound . Thus Equation (62) holds, and the same comparison of statistic and threshold proves the mixture action limits. At the ratio limit alone does not determine the action limit: second-order deviations of and quantile fluctuations can affect it.
K PROOF OF PROPOSITION 7
Proof. (i) Let , with set to zero when . By the Cauchy–Schwarz inequality, . Since and , we get . Given , uniform completion in multiplies the residual by in expectation, as in Section B. Only the mean and covariance of were used.
(ii) By Equation (6), it suffices to consider rules that choose a deleted subspace of dimension at most . Fix and let be spanned by eigenvectors of the largest eigenvalues of ; the maximum risk over is at least that over unit . For such , the coordinates of the contrasts outside are Gaussian, independent of those inside, and have a law free of , so they act only as fitting randomness. For the captured fraction is with , which satisfies and . Such an is a convex combination of orthogonal projectors of rank at most inside , each dominated by a rank- projector inside , so a randomized rank- deletion inside has no larger loss at every . Inside the noise covariance of dominates , so the observation can be simulated from one with noise covariance exactly by adding independent Gaussian noise; the restricted problem is therefore no easier than the isotropic -dimensional problem, whose minimax risk is by Theorem 2. Revealing cannot increase the minimax risk, so the bound also holds when is unknown.
For steep spectra (ii) can be loose: for the participant-level noise spectrum of the BOAS experiment (Section N) it gives 0.30 at , against 0.52 from (i). A noise-weighted direction does not close this gap. Even with tuned on the test participants of splits other than those in Table 2, it lowers the erasers’ residual by at most 0.065 over the grid and by 0.005 at .
L SIMULATION PROTOCOL AND CHECKS
The studies below simulate the Gaussian experiment with and . Seeds, grids and code are in the code repository (https://github.com/sneddy/shift-repair-frontier). All analyses ran on the CPU of a single laptop (Apple M3 Pro, 36 GB RAM), except the one-time extraction of the frozen EEGPT features, which used its integrated GPU. Excluding the downloads and feature extraction of the EEG recordings, the complete set of analyses takes well under an hour. Probability error bars are exact 95% binomial intervals, mean error bars are Monte Carlo standard errors, and rules being compared share the same draws. A displayed zero means that no event occurred among the draws, as for the confidence-ball rule at , (Section G).
L.1 Hard-budget and selective frontiers
The frontier grid uses , , deletion ranks and 8,192 draws per cell. For the sampler multiplies the rank-one residual by the beta-distributed fraction that random orthogonal completion leaves (Section B).
The selective curves use , and action frequencies from to 1. They are checked against the Bessel-ratio form of the posterior residual,
integrated against the noncentral radial density on the accepted tail, where is the modified Bessel function of the first kind.
Table 1: Exact predictions against Monte Carlo estimates. Means carry Monte Carlo SE (8,192 draws for the frontier, 512 fits per eraser cell, 256 calibrations for INLP), and probabilities carry exact binomial intervals. Real-content rows list the three pools at , each with one value shared by MP, SAL and LEACE. Device rows give the share of the population mean shift left in held-out participants, as mean SE over random splits of the same participants (20 for BOAS, 40 for Flex), and its prediction from the calibration pool (Sections N and N.1).
| Quantity | Setting | Predicted | Observed |
|---|---|---|---|
| Cost-one residual | 0.6652 | ||
| Cost-one residual | 0.3326 | ||
| Eraser residual, Gaussian content | 0.4961 | ||
| Eraser residual, real content | 0.5000 | 0.504, 0.501, 0.503 () | |
| Eraser residual, real content | 0.2495 | 0.251, 0.247, 0.248 () | |
| INLP excess over MP | 0.181 | ||
| INLP excess over MP | 0.012 | ||
| Action prob., confidence ball | 0.0289 | 0.026 [0.023, 0.030] | |
| Action prob., finite mixture | 0.1152 | 0.114 [0.107, 0.121] | |
| Wearable shift (BOAS), one participant | 0.757 | ||
| Wearable shift (BOAS) | 0.501 | ||
| Wearable shift (BOAS) | 0.101 | ||
| Detection (BOAS) | 0.95 | 0.97 | |
| Device shift (Flex) | 0.508 |

Figure 3: Detection, deletion, and certified action are different quantities. At , lines are exact formulas and points use 8,192 draws per strength. (a) Detection power, confidence-ball action probability, and the optimal cost-one expected residual. (b) The hard-budget frontier for three deletion dimensions.

Figure 4: Conditional improvement has an action-frequency cost. Exact selective frontiers at . Open circles mark the ungated limits, and diamonds the confidence-ball rule's action probability and conditional mean residual. The dashed line is . A diamond may lie above it, because the certificate controls joint bad action. The oracle curves fix , whereas the confidence-ball rule does not know it.
L.2 Optimal allocation under an average budget
At and , 131,072 shared calibration draws cover budgets from 0 to 16, and a direct numerical optimization over rules reproduces Equation (40). At the average-budget risk is 0.499 (simulated at mean cost ), against 0.514 under the hard budget: the optimal rule deletes one direction on four fifths of the fits and all sixteen on the rest (Figure 5).

Figure 5: An average budget rewards adaptive deletion rank. Left: exact hard-budget, adjacent-rank mixing, and optimal average-budget risks at , , with points from 131,072 shared draws. Right: at average cost four the optimal rule deletes one direction with probability 0.8 and all sixteen with probability 0.2. Black points with exact 95% binomial intervals check these probabilities.
L.3 Action certificates with known and estimated scale
The known-scale rules are evaluated at . The estimated-scale rules use a grid of , and , with 4,096 draws per cell. A numerical check confirms that components beyond the cutoff never constrain the mixture threshold. The null action rate stays at or below up to Monte Carlo error, and on the same draws the mixture rule never acts less often than the confidence-ball rule (Figure 6).

Figure 6: More frequent action under the same uniform joint-error guarantee. At : (a) exact action probabilities of the confidence-ball and finite-mixture rules with known scale (solid) and with the noise scale estimated from pairs (dash-dotted), Monte Carlo estimates on shared draws (points), and the power of the radial test (dotted). (b) The exact joint probability of acting and missing the target, which every rule keeps below at all strengths. Thin lines repeat the known-scale rules at .
M FITTED ERASERS ON GAUSSIAN AND REAL CONTENT
These experiments apply Theorems 4 and 9 to fitted MP, SAL and LEACE maps, first with Gaussian content, then with real represented content.
M.1 Gaussian content
For and we fit MP, centered rank-one SAL and binary LEACE (Section C) to 512 calibration samples of the paired construction of Section A with . The three kernels coincide on every fit, and the mean residuals follow Equation (9) (Table 1). The methods differ only in distortion: at , LEACE's median linear cost is 2.13 against one for MP and SAL, and it grows sharply near the pooled-covariance rank transition .
M.2 Real content pools and the semisynthetic check
Let be a frozen real representation pool, with
Choose a -dimensional positive-eigenvalue subspace, with eigenvectors and eigenvalues , set , and draw
Conditional on the pool, this law satisfies Equation (15) exactly, and independent pool indices and endpoint noises give independent calibration pairs. The content comes from real recordings, while the shift and the measurement noise are synthetic.
Pools. The three pools come from the paired Neuroscan/Flex recordings of Williams et al. (2020) (Section N.1). Two of them describe the same N170 events, once by temporal features and once by frozen EEGPT features. The third holds 5,330 MMN events from 15 of the 16 participants. Each content vector is the midpoint of the paired device representations, reduced to its first 16 or 64 principal coordinates and whitened over the pool. Whitening keeps the non-Gaussian structure: the radial fourth moment of the MMN features is 1.27 times its Gaussian value at d = 16 and 1.19 times at d = 64.
Design. We set and cross the three pools with , and . At and for each target we also use the calibration sizes , and , where
is the smallest calibration size with expected residual at most . It is well defined because the risk decreases in . Each of the 120 cells has 512 calibration samples.
Results. The loss is evaluated from the row space of each fitted matrix under the exact population covariance of the construction, so it carries no test-sample noise (Figure 7). Cell means deviate from the predictions by 0.004 in root mean square and at most 0.015. At the calibration sizes all three pools land on their targets: 0.501–0.504 for the target at , and 0.247–0.251 for the target at . Because the shared content cancels from each paired contrast, the three pools are indistinguishable, as Theorem 9 predicts.
N WEARABLE VERSUS CLINICAL EEG (BOAS)
This appendix gives the protocol and results of Section 7.2 and repeats the analysis on a second device pair. Preprocessing details and code are in the code repository.
Data and features. The Bitbrain Open Access Sleep dataset (OpenNeuro ds005555, v1.1.3, CC0; López-Larraz et al., 2026) contains 128 nights of 100 healthy adults recorded simultaneously by a clinical polysomnograph and a forehead EEG headband, with consensus expert staging in 30-s epochs (Esparza-Iaizzo et al., 2026). The study was approved by the ethics committee of Aragón (C.I. PI24/046), and no new data were recorded. We take one night per participant, drawn with a fixed seed before any data were downloaded. The two headband channels are paired with the nearest polysomnograph sites on the same side (F3, F4). Each artifact-free N2 epoch is described by log Welch power in 0.5 Hz bins over 0.5–30 Hz, so (other bin widths give , 58 and 236). The contrast is the polysomnograph feature minus the headband feature of the same epoch. A night is excluded when, for either channel pair, the median correlation of the paired 0.5–4 Hz signals over 5-min windows falls below 0.5, which flags a defective headband channel in 14 of the 100 nights. One further participant is excluded for having fewer than 128 N2 epochs. The remaining 85 participants contribute 325 to 752 N2 epochs each.

Figure 7: An illustration of the non-Gaussian-content extension. Lines are exact predictions, and points are fitted-map population residuals averaged over 512 calibration samples ( Monte Carlo SE). MP, SAL and LEACE share the residual at every fit, so each estimate is shown once. Markers distinguish the three pools of real represented content. Shift and noise are synthetic.
Design. Each of 20 random splits divides the participants into a calibration pool of 43 and a test set of 42. Coordinates are whitened by the pool's within-source covariance, estimated from about 24,000 epochs per device (some 200 per dimension at ). From the pool alone we estimate the shift and, from off-diagonal products of participant means as in Equation (67) below, its squared length. The within-participant covariance is averaged over participants. The between-participant covariance is the covariance of participant means minus the average of , with negative eigenvalues set to zero. A calibration draw takes pool participants with random epochs each and averages their means into . MP, SAL and LEACE fitted to these draws share the same kernel. The prediction is the erasers' residual under , and the closed-form bound is at most 0.031 above it. Detection uses the radial statistic with its null law under the same estimated covariance.
Statistic. The observed residual uses only the test participants. Let be the mean contrast of test participant in the whitened coordinates, with test participants. For a fitted map , let be its row-space projector and define
Products of different participants omit the noise of each participant's own mean, so for independent participants estimates the squared projected population mean contrast without bias. The ratio is not clipped, so test noise can take it outside . For the subtraction of , the same products of give the remaining separation.
Results. Table 2 lists a subset of the grid and Table 3 the agreement under other choices. Here , and , so one participant caps at about 35. Since , Theorem 8 gives epochs per participant when a participant costs as much as epochs. The largest deviations are for one participant with many epochs, where the prediction is pessimistic (0.76 against 0.69), and for 32 participants with 128 epochs, where it is optimistic (0.10 against ). With a single participant or four epochs or fewer in total, the radial test detects more often than predicted (0.16 to 0.27 against 0.07 to 0.16), consistent with heavier-than-Gaussian epochs. At , the cell of Section 7.2, observed and predicted detection are 0.97 and 0.95. Contiguous blocks of epochs leave more shift than random epochs because neighbouring epochs are correlated (0.56 against 0.51 at ), and the covariance of block means accounts for most of this (Table 3).
How much of the device difference is a mean shift. Linear erasers act only on the mean difference, so we measure how much of the divergence between the two devices' features is a mean shift. The Jeffreys divergence between Gaussian fits splits into a mean part and a covariance part. From each part we subtract its value under random within-pair swaps of the devices. Within a single participant's night, the mean part accounts for a median of 0.76 of the total (10th–90th percentile 0.36–0.91), so there the devices differ mostly by a shift. Pooled over the 85 participants, its share is 0.31. This is consistent with shifts that vary across participants, which the two-level law captures through .
Table 2: BOAS, N2 epochs, , 85 participants. The eraser columns give the share of the population mean shift left in held-out participants after MP, SAL and LEACE, observed (mean SE over 20 random splits of the same participants) and predicted from the calibration pool by the plug-in two-level prediction and by the frontier formula at . Detection is the rejection probability of the level-0.05 radial test. The last two columns give the separation left by subtracting , relative to no correction.
| Erasers | Detection | Subtract | ||||||
|---|---|---|---|---|---|---|---|---|
| Observed | Plug-in | At | Obs. | Pred. | Obs. | Pred. | ||
| 1 | 1 | |||||||
| 1 | 8 | |||||||
| 1 | 128 | |||||||
| 4 | 1 | |||||||
| 4 | 8 | |||||||
| 4 | 128 | |||||||
| 8 | 1 | |||||||
| 8 | 8 | |||||||
| 8 | 128 | |||||||
| 32 | 1 | |||||||
| 32 | 8 | |||||||
| 32 | 128 | |||||||
Table 3: BOAS: agreement between observed and predicted eraser residual over the 80 cells of the grid under other analysis choices. The last column is the one-participant cap .
| Setting | Participants | RMS deviation | Max. deviation | Within 0.03 | Cap | |
|---|---|---|---|---|---|---|
| N2, (main) | 85 | 118 | ||||
| N2, no channel rule | 97 | 118 | ||||
| All stages | 86 | 118 | ||||
| N2, | 85 | 28 | ||||
| N2, | 85 | 58 | ||||
| N2, | 85 | 236 | ||||
| N2, contiguous blocks | 85 | 118 |
Planning from a pilot. The two-level law needs only , and . To check whether a small pilot gives them, each of 20 splits divides the participants into three disjoint sets. The recordings of 20 participants give the whitening, with each device used separately and without pairing. Another 35 form the calibration set, and the remaining 30 are the test set. A pilot consists of calibration participants with their full N2 nights. The three scalars are estimated from the pilot alone, and the prediction is the frontier formula at . With eight pilot nights, the one-participant cap has a median of 29 against 28 from all 35 calibration participants, and it stays below in every pilot. At the pilots give a median of 31 epochs. Their predicted residual deviates from the observed one by a median of 0.10 in root mean square (0.05–0.20), against 0.08 with the scalars of all 35 calibration participants, so most of the error comes from the finite test set. The number of participants that leaves half the shift at is predicted as 9 (6–23), against about 10 observed. Pilots of three or four nights still put the cap below in at least 95% of cases.
N.1 A second device pair: Neuroscan/Flex recordings
Each of the 2,291 simultaneously recorded Neuroscan/Flex N170 pairs from the 16 participants of Williams et al. (2020) is described by fifteen 50-ms averages of 16 common-average-referenced channels. Removing the dependency introduced by the common reference leaves coordinates (details in the code repository). Participants contribute 24 to 250 pairs. The recordings are public on the Open Science Framework (https://osf.io/zj3f5/). The original study was approved by the Macquarie University Human Research Ethics Committee (Ref. 5201831203493), and all participants gave written informed consent.
Design. Each of 40 random splits divides the participants into a calibration pool and a test set of 8 each. As for BOAS, the coordinates are whitened by the pool, the two-level prediction uses the pool's estimates of , and , and the observed residual is Equation (67) on the test participants. We draw calibration participants with pairs each, ten times per split. The grid stops at because the smallest participant has 24 pairs.
Result. Over the 30 cells, the prediction deviates from the observed residual by 0.005 in root mean square and at most 0.011. One participant caps the calibration strength at about 99 in , and eight participants with 16 pairs each leave of the shift against the predicted 0.508. Subtracting leaves more separation than no correction in every cell.
O INLP AND R-LACE AT FIXED RANK
This experiment illustrates Theorem 5 with fitted kernels that need not contain the empirical contrast. The number of deletions is fixed in advance. If a method chose its rank from the data, Equation (31) would still hold at the realized rank and give the lower bound whenever , but not the fixed-rank identity.
Design. Each replicate draws uniformly on and pairs with , so that , each source has covariance , and . The grid has , and , with 256 calibrations per cell. Every method receives the same labelled endpoints. MP, SAL and LEACE are evaluated at , and the frontier reference deletes and uniform directions orthogonal to it. Fixed-step INLP fits an -regularized logistic classifier () to the successively projected endpoints and removes its coefficient direction, keeping the first and fourth iterates. Fixed-budget R-LACE follows the authors' alternating updates, Fantope projection and final rounding (Ravfogel et al., 2022) for 2,000 full-batch iterations and returns an orthogonal projection with exactly deletions.
Evaluation and prediction. The loss is computed from the row space of each returned matrix, and from the empirical direction. With , the Bessel-ratio form Equation (63) gives
and the conditional prediction is . To check the excess on the same calibrations, let be the loss of MP with random completion. Its conditional mean is , so . We compare the observed mean of with the predicted mean of through the standard error of their paired difference.
Results. Table 4 reports every cell. Over the 32 INLP and R-LACE cells, observed and predicted excess differ by 0.004 in root mean square and by at most 2.2 paired standard errors. The fitted R-LACE subspaces nearly contain , whereas one-step INLP leaves a visible excess that its fitted subspace explains. Four INLP steps shrink this excess at four times the cost of one step. At , LEACE's median linear cost is 2.09 against one for the orthogonal maps, which is the arrow in Figure 2a.
Table 4: Complete controlled grid. The frontier is . Observed excess is the paired mean residual above MP plus random completion, with its Monte Carlo standard error over 256 calibrations. Predicted excess is the mean of , which is below for R-LACE in every row.
| Frontier | INLP excess Observed SE | Predicted | R-LACE excess Observed SE | |||
|---|---|---|---|---|---|---|
| 16 | 8 | 1 | 0.6423 | 0.0737 | ||
| 16 | 8 | 4 | 0.5138 | 0.0030 | ||
| 16 | 16 | 1 | 0.4838 | 0.1399 | ||
| 16 | 16 | 4 | 0.3871 | 0.0049 | ||
| 16 | 32 | 1 | 0.3216 | 0.1471 | ||
| 16 | 32 | 4 | 0.2572 | 0.0013 | ||
| 16 | 64 | 1 | 0.1914 | 0.1078 | ||
| 16 | 64 | 4 | 0.1531 | 0.0002 | ||
| 32 | 16 | 1 | 0.6548 | 0.1071 | ||
| 32 | 16 | 4 | 0.5914 | 0.0124 | ||
| 32 | 32 | 1 | 0.4921 | 0.1807 | ||
| 32 | 32 | 4 | 0.4444 | 0.0122 | ||
| 32 | 64 | 1 | 0.3275 | 0.1673 | ||
| 32 | 64 | 4 | 0.2958 | 0.0025 | ||
| 32 | 128 | 1 | 0.1957 | 0.1149 | ||
| 32 | 128 | 4 | 0.1768 | 0.0003 |
P ANISOTROPIC CONTENT: A NUMERICAL CHECK
The main results assume isotropic within-source variation and calibration noise, and this appendix checks the residual of the empirical-direction editor under anisotropic content.
The content covariance has eigenvalues proportional to or at , the noise level is , and the shift points along a random direction or along the top or bottom content eigenvector. After whitening, the contrast noise has effective dimension 49 to 60. Over 30 cells with 4,000 calibrations each, the frontier Equation (7) at the whitened , with the mean whitened noise variance, matches the residual of the empirical-direction editor to 0.006 in root mean square and 0.015 at most: anisotropy enters mainly through . The check concerns the empirical-direction editor and therefore the erasers that share its kernel. Over all editors, Theorem 7 only brackets the minimax value, and a noise-weighted direction estimate may do better.