arXiv:2610.08069cs.LGOct 2026

Manuscript Offprint

arXiv:2610.08069

Detecting a Shift Is Not Enough: Exact Minimax Limits of Linear Representation Repair

Anuar Aimoldin, Yankai Chen, Ayana Mussabayeva, Xue Liu

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 RdR^d, 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, (d−k)E[1/(d+2J)](d-k)\mathbb{E}[1/(d+2J)] with J∼Pois(κ/2)J \sim \text{Pois}(\kappa/2), where the budget allows deleting kk directions and κ\kappa is the calibration signal-to-noise ratio. Projecting out the mean calibration difference attains it without knowing κ\kappa or the noise scale. This exposes a detection-repair gap: detecting the shift needs only κ≫d\kappa \gg \sqrt{d}, whereas removing a fixed fraction of it at constant distortion needs κ≍d\kappa \asymp d, 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 bb allows deleting k≥1k \geq 1 directions, the minimax risk, which we call the frontier, is Rd∗(b,κ)=(d−k)E[1/(d+2J)]\mathcal{R}_d^*(b, \kappa) = (d - k) \mathbb{E}[1/(d + 2J)] with J∼Pois(κ/2)J \sim \text{Pois}(\kappa/2) and κ\kappa the calibration signal-to-noise ratio. The simplest editor attains it: project out the mean paired difference. The estimated direction keeps the noise share d/(d+κ)d/(d + \kappa) of the calibration energy, which Equation (8) shows is the optimal residual up to 1/(d+κ)1/(d + \kappa), whereas a test only needs the signal to rise above the O(d)O(\sqrt{d}) noise fluctuation (Figure 1b). Detection therefore succeeds long before repair: at d=256d = 256 and κ=128\kappa = 128, 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

Figure

(b) Repair keeps the noise share

Figure 1: Detecting a shift is not enough to repair it. (a) Detection needs κ∝d\kappa \propto \sqrt{d} and repair κ∝d\kappa \propto d, 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 d=256d = 256, the squared length ∥X∥2\|X\|^2 of the normalized mean calibration difference has expected value d+κd + \kappa: noise dd (grey) plus signal κ\kappa (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.

References (33)