Instead of fixing one batch composition for every dataset, MINER estimates two error sources online and allocates the same batch budget to where it matters most.
Invariance errorToo few cross-outfit examples per identity means the model under-learns outfit invariance.within-person term ∝ tr Σ_W / (2n)
↔
Discrimination errorToo few identities per batch means the model sees too few look-alike negatives.between-person term ∝ tr Σ_B / m
Estimate
Compute online traces for the within-person and between-person gradient variance terms from the mined batch.
risk(m,n) = tr Σ_B / m + tr Σ_W / (2n)
subject to 2mn = B_max
Infer the prior
The ratio between the two estimators reveals whether the current dataset prefers more identities or more examples per identity.
ρ = 2 tr Σ_B / tr Σ_W
ρ small → favor n
ρ large → favor m
Update analytically
The controller solves for the new allocation in closed form under the fixed memory budget.
m* = √(B_max · tr Σ_B / tr Σ_W)
n* = √(B_max · tr Σ_W / 4 tr Σ_B)
No Grid-SearchNo RLNo multi-armed banditNo extra learner
Why this matters: MINER does not balance these tradeoffs with an additional learning policy. It estimates the two variance terms online and updates the allocation directly, which keeps the controller lightweight, interpretable, and easy to reproduce.