data_transfer / bbflow_base /docs /covariance_matching_problem.md
hanghang214's picture
Add files using upload-large-folder tool
24599ef verified
|
Raw History Blame Contribute Delete
10.1 kB
# Matching covariances in high dimension under a small-sample constraint
Self-contained. Stated entirely in terms of probability measures on a Euclidean space,
their second moments, and estimators thereof. No application background is needed.
## 1. Setting
Fix `d`, with `d` ranging over `[3·10², 2·10³]` across instances.
Let `P` be an index set, `|P| = 82`. For each `p ∈ P` there is an unknown probability
measure `ν_p` on `R^d` with finite second moment; write `Σ_p = Cov(ν_p)`. Available:
`N ≈ 10⁴` i.i.d. draws from each `ν_p`.
A parametric family `(P_θ)` of measures on `R^d` is available together with a sampler.
Write `Ĉ_p(θ) = Cov(P_θ^{(p)})`. Available at evaluation time: `n = 250` draws per `p`.
**Discrepancy.** Let `V_p ∈ R^{d×k}`, `k = 10`, have as columns the leading `k`
eigenvectors of `Σ_p` (orthonormal). Put
```
A_p = V_pᵀ Ĉ_p V_p , B_p = V_pᵀ Σ_p V_p (k×k, PSD)
D_p = W₂( N(0,A_p), N(0,B_p) ) / (tr B_p)^{1/2}
= [ tr A + tr B − 2 tr( (B^{1/2} A B^{1/2})^{1/2} ) ]^{1/2} / (tr B)^{1/2}
```
the Bures–Wasserstein distance, made dimensionless by the reference scale.
**Objective.** Choose `θ` minimising `D̄(θ) = (1/82) Σ_p D_p(θ)`.
**Optimisation constraint.** During minimisation `D_p` is not available. What is available
at each step is `G = 8` draws from `P_θ^{(p)}` and `G` matched draws from `ν_p`, for one
`p` at a time. Any objective must be a function of those `2G` points.
**Structure of the family.** A draw from `P_θ^{(p)}` has the form
```
x = μ_p + U_p(θ) c + ε , c ~ q_θ^{(p)} on R^K , K = 8 , ε ⊥ c
```
with `U_p(θ) ∈ R^{d×K}`. Hence
```
Ĉ_p(θ) = U_p Γ U_pᵀ + Ψ_p , Γ = Cov(c) ⪰ 0 , Ψ_p = Cov(ε) ⪰ 0
```
so the part of `Ĉ_p` controlled by `Γ` has rank at most `K = 8`, while `D_p` is measured
on a `k = 10` dimensional subspace. Both `U_p` and `q_θ` are functions of `θ`; `Ψ_p` is
the covariance of the sampler's residual noise and is not directly parametrised.
## 2. Measurements
At one particular `θ`, over the 82 instances. `T_s` denotes the dilation
`x ↦ x₀ + s(x − x₀)`; `O(k)` acts on `A` by conjugation.
```
D̄(θ) = 0.5846
min over one common s>0 of D̄(T_s # P_θ) = 0.5819 ( 0.4% )
mean_p min_{s>0} D_p(T_s # P_θ) = 0.5193 (11.2% )
mean_p min_{Q∈O(k)} D_p(Q A_p Qᵀ) = 0.3817 (34.7% )
```
The third line is an oracle: the minimising `s` differs per instance, median `1.175`,
interquartile range `[1.000, 1.563]`, full range `[0.626, 3.368]`. The fourth line uses the
exact identity `min_{Q∈O(k)} W₂²(QAQᵀ, B) = Σ_i (√α_i − √β_i)²` on the sorted spectra
`α` of `A` and `β` of `B`.
Median over `p` of `[min_Q W₂²] / [W₂²]` is `0.42`. Hence **58% of the squared discrepancy
is attributable to misalignment of eigenvectors and 42% to the eigenvalues**, while
dilation accounts for 11%.
The slope of `log α_i` regressed on `log β_i` has median `1.12` over instances, with
per-instance values from `0.68` to `1.59`: the eigenvalue error is not a systematic
flattening or steepening.
**A surrogate that failed.** A functional `ρ(P, ν)` — the Pearson correlation between
corresponding entries of the two covariance matrices, restricted to an index set of
widely separated coordinate pairs — was used as the optimisation signal. It satisfies
`ρ(T_s # P, ν) = ρ(P, ν)` identically (verified numerically to `0.00e+00` on all 82
instances at `s = 2`), while `D` varies freely along that orbit. Across instances at
fixed `θ`, `ρ` rank-correlates `−0.600` with `D`. Optimising `ρ` improved it by a factor
of 9 and held for 26 optimisation epochs while `D` did not improve.
## 3. Questions
### Q1. The floor imposed by the family
Let `U ∈ R^{d×K}` and `V ∈ R^{d×k}` have orthonormal columns, `K = 8 < k = 10`. Put
`M = VᵀU ∈ R^{k×K}`, whose singular values are the cosines of the principal angles
`φ_1 ≤ … ≤ φ_K` between `span(U)` and `span(V)`. For `Ψ ⪰ 0` fixed,
```
A(Γ) = Vᵀ( U Γ Uᵀ + Ψ ) V = M Γ Mᵀ + VᵀΨV , Γ ⪰ 0
```
> Determine
> ```
> F = inf_{Γ ⪰ 0} D( A(Γ), B )
> ```
> as a function of `{φ_i}`, the spectrum of `B`, and `VᵀΨV`. Closed form, or a bound
> tight enough to evaluate numerically at `k = 10`.
>
> The case `Ψ = 0` reduces to: what is the Bures distance from `B` to the set
> `{ M Γ Mᵀ : Γ ⪰ 0 }`, i.e. to the PSD matrices whose column space lies in `range(M)`?
`F` depends only on the family and the target, not on the choice of objective function.
Both `U` and `V` are computable in the application, so a formula for `F` is directly
evaluable.
### Q2. Which statistics are admissible as optimisation targets
A functional `S(P, ν)` used as an optimisation target induces a group
```
Γ_S = { g : S(g#P, ν) = S(P, ν) for all P }.
```
Minimising `S` places no constraint on the `Γ_S`-orbit of `P`. The failure recorded in
§2 is the case `Γ_S ⊇ { T_s }` with the minimising trajectory travelling along that orbit.
> Characterise the functionals of `(Cov P, Cov ν)` that are
> **(i)** estimable from `G` samples per side with bias `o(1)` and variance `O(1/G)`, and
> **(ii)** satisfy `Γ_S ∩ { g : D(g#P, ν) ≢ D(P, ν) } = {id}`.
>
> Is (ii) achievable at all under (i)? Every scale-sensitive statistic requires estimating
> a magnitude, whose relative error from `G` samples is `Θ(1/√G)`; every scale-free
> statistic has the dilation group in its kernel. Quantify the trade-off: for a target
> accuracy `ε` in `D`, what is the minimum `G`?
>
> A criterion applicable to a candidate `S` *before* any minimisation is run would be the
> most useful form of answer.
**Sub-question (the regime `G < k`).** The empirical covariance of `G = 8` points in `R^d`
has rank `≤ 7`, against `k = 10`, so the sample `Â` is singular.
> Give the bias of `tr( (Σ̂^{1/2} Ĉ Σ̂^{1/2})^{1/2} )` to first order in `1/n`, `1/m`,
> for `Ĉ`, `Σ̂` Wishart with `n`, `m` degrees of freedom in dimension `k`, and construct a
> debiased estimator. Does a useful estimator exist when `n < k`, or must the objective be
> restricted to `R ≤ n − 1` dimensions?
**Sub-question (eigenvector information at small `G`).** In the spiked model
`Σ = I + Σ_j h_j u_j u_jᵀ`, the leading sample eigenvector `û` from `n` samples satisfies,
as `d, n → ∞` with `d/n → γ`,
```
|⟨û, u⟩|² → 0 if h ≤ √γ
|⟨û, u⟩|² → (1 − γ/h²)/(1 + γ/h) if h > √γ
```
Here `γ = d/G ≈ 40` to `250`, so `√γ ≈ 6` to `16`. This is an asymptotic statement; the
regime of interest has `n = G = 8` fixed and small.
> For `n = G` fixed and small, determine whether *any* statistic of the two `G`-sample
> empirical covariances carries information about the angle between the population
> eigenvectors, and if so give the minimax rate. Equivalently: is there a function `f` of
> `2G` points in `R^d` with `E f > 0` when the population leading eigenvectors are aligned
> and `E f = 0` when they are orthogonal, whose variance does not swamp the gap at
> `G = 8`, `d ≈ 500`?
### Q3. Power of the comparison
Six parameter values `θ_1 … θ_6` were compared by their reported aggregate. The reported
values span a range of about `0.26` in the units of the reported metric, with a bootstrap
standard error of about `0.03` on each; the three best lie within one standard error of
each other.
> **(a)** Give `Var(D̂_p)` for `D̂_p` built from `n = 250` draws of `P_θ` and `m ≈ 10⁴`
> draws of `ν_p`, and `Var(D̄̂)` for the mean over 82 instances.
>
> **(b)** The comparisons across `θ` are currently made on the aggregate, unpaired.
> Consider instead the paired differences `Δ_p = D_p(θ) − D_p(θ′)`. Since `D_p` is
> expected to be strongly correlated across `θ` (instance difficulty dominating the
> variance), `Var(Δ) ≪ 2 Var(D_p)`. Give the minimum detectable difference for both the
> paired and unpaired comparison at 82 instances, and state which of the observed
> differences are resolvable under each.
## 4. Known unknowns
Two things are **not** established and should not be assumed by a reader:
1. **Normalisation consistency.** The quantity `D̄ = 0.5846` in §2 is normalised by
`(tr B)^{1/2}`. The six aggregate values referred to in Q3 come from a separate
evaluation routine and lie in the range `1.31`–`1.57`. These cannot be the same
functional. Whether the 58% / 42% / 11% decomposition of §2 transfers to the quantity
used in Q3 has not been verified. Q1 and Q3 are individually well posed regardless;
only a claim linking them would require this to be settled first.
2. **Which `θ` the §2 measurements were taken at.** The decomposition in §2 was computed at
one parameter value. Whether it is stable across the six `θ` in Q3 has not been checked.
## 5. Form of a useful answer
In descending order of what it would settle:
1. **Q1 with a formula for `F`.** Evaluating it on the available `U` and `V` decides
whether the family or the objective is the binding constraint. This is the only
question whose answer immediately changes what is worth attempting.
2. **Q2, the eigenvector sub-question, negative.** If no statistic of `2G` points
constrains eigenvector angle at `d ≈ 500`, then no objective computable from groups of
8 can address the 58% term, and `G` rather than the choice of functional is the binding
constraint.
3. **Q2, the eigenvector sub-question, positive with a required `G`.** Gives the group
size at which the construction becomes viable.
4. **Q2, the admissibility criterion.** A test applicable to any proposed statistic before
any minimisation is run.
5. **Q3.** Determines whether the observed differences between parameter values are real,
and hence whether the comparisons made so far carry information at all.
6. **Q2, the `G < k` estimator sub-question.** Needed to design a replacement objective,
but only after the eigenvector sub-question says one can exist.