Retrieval Within the Procrustes Solution Set: A Provable Way to Align Frozen Encoders

A cheap way to build a shared space for two modalities is to freeze a pretrained audio model and a pretrained vision model and learn one linear map between their embeddings from a small set of matched pairs. The standard recipe is orthogonal Procrustes, which finds the rotation that best maps one set of anchor embeddings onto the other and is solved in closed form with one singular value decomposition. Rotations preserve the geometry inside each model. But when anchors are scarce relative to embedding dimension (a few hundred pairs against 768 or 1024 dimensions), the anchors pin down the map only on the directions they span. Every other direction is left to chance or to ill-conditioned noise. A second problem is that pure rotations retrieve poorly across modalities. On audio-to-vision retrieval between HuBERT and DINOv2, Multi-Way Representation Alignment reports about 15% accuracy for Generalized Procrustes, rising to 29% with its post-hoc correction step.

We propose to treat this as a lexicographic problem, meaning one with a strict priority order. First, fit the trusted anchors as well as any near-isometric map can. Then, only among maps that achieve that fit, choose the one that ranks a larger and noisier pool of weak pairs best. This is a "simple bilevel" problem: an objective minimized over the solution set of another problem. After a convex relaxation it has convex upper and lower levels. That lets us use recent finite-time (non-asymptotic) convergence theory for such problems. The resulting guarantee is explicit about how the number and conditioning of anchors control convergence, and the algorithm never needs a manually tuned weight between fidelity and retrieval.

Core Claim

Let $A, B \in \mathbb{R}^{d \times k}$ hold the $k$ trusted anchor embeddings from the two frozen encoders, one per column, centered and normalized. Let $\mathcal{B} = \{Q : \|Q\|_{op} \le 1\}$ be the set of linear maps that never stretch any direction, which is the convex hull of the orthogonal group. Let $F(Q)$ be the symmetric InfoNCE loss over a pool of $n \gg k$ weakly paired examples, with the embeddings fixed and $Q$ applied to one side. InfoNCE is the standard contrastive loss: a log-sum-exp over pairwise similarities. Because it is a log-sum-exp of functions linear in $Q$, $F$ is convex and smooth in $Q$. We solve

$$\min_{Q \in \mathcal{B}} F(Q) \quad \text{s.t.} \quad Q \in \arg\min_{Q' \in \mathcal{B}} G(Q'), \qquad G(Q') = \|Q'A - B\|_F^2 .$$

The lower level is relaxed Procrustes. When $A$ has full rank and is well conditioned, its solution set shrinks to essentially the Procrustes rotation, and the method reduces to the approach of Canonicalizing Multimodal Contrastive Representation Learning. When $k < d$ or $A$ is ill conditioned, the solution set is a large flat face of $\mathcal{B}$, and retrieval chooses how the map behaves on the directions the anchors leave free.

This formulation also resolves the disagreement between the two alignment papers in the file. Canonicalizing argues for strict isometries. Multi-Way argues that strict isometry is suboptimal for retrieval and nudges the map afterwards with a trust-region correction. In our formulation both are regimes of one program, and the regime is determined by anchor conditioning rather than chosen by the practitioner. The claim is falsifiable. Our method should beat Procrustes by a margin that grows as $k/d$ shrinks and vanishes when anchors are plentiful. It should match or beat the Multi-Way correction on retrieval without giving up any anchor fit.

Why the Bilevel Structure Is Forced, and What the Theory Delivers

The usual bilevel tools, iterative differentiation (backpropagating through unrolled inner steps) and approximate implicit differentiation (solving a linear system with the inner Hessian), assume the inner problem has a unique, smoothly moving solution. Examples include the analyses of Ji et al. and the two-timescale scheme of Hong et al.. Here the inner Hessian is $AA^\top \otimes I$. It is exactly singular when $k<d$ and nearly singular when anchors are redundant. So the scarce-anchor regime is precisely where those tools break.

Simple bilevel methods are built for set-valued inner solutions. They minimize a sequence $\sigma_t F + G$ with $\sigma_t \to 0$ on a schedule the analysis dictates. We supply the method from Conditional Gradient Methods with Standard LMO for Stochastic Simple Bilevel Optimization. That paper proves $\tilde{\mathcal{O}}(t^{-1/2})$ rates for convex finite-sum problems (IR-FSCG) and $\tilde{\mathcal{O}}(t^{-1/4})$ for the one-sample stochastic setting (IR-SCG), using variance reduction. One honest adjustment is needed. Their selling point is avoiding projections, but projecting onto $\mathcal{B}$ costs one SVD, which is the same as its linear minimization oracle. We therefore run the projected analogue with the same regularization schedule and variance reduction. We do not claim a speedup from being projection-free.

The theoretical contribution is sharpening these generic rates for this problem. Chen et al. show how a Hölderian error bound, an inequality that lower-bounds the inner suboptimality by a power of the distance to the inner solution set, converts inner-gap guarantees into distance-to-solution guarantees. For the unconstrained quadratic $G$, the growth constant is the smallest nonzero eigenvalue $\lambda_+$ of $AA^\top$, the curvature of $G$ away from its minimizers. We will try to prove that quadratic growth survives the spectral-norm constraint and derive bounds whose constants scale with $1/\lambda_+$. If the proof fails, we fall back on a weaker exponent. The result would be a rate stated in the quantity practitioners actually control, namely how many anchors they have and how diverse those anchors are.

We deliberately work with the convex relaxation rather than directly on the manifold of orthogonal matrices. Riemannian Bilevel Optimization gives finite-time rates on manifolds, but it assumes a well-behaved inner problem, carries curvature-dependent constants, and was tested only on small positive-definite matrix problems. The relaxation buys global guarantees. Whether it costs accuracy is tested by rounding the final map to its nearest rotation (its polar factor) as an ablation.

Research Program

The work has three parts. The first is the theory above: a rate for the relaxed problem, with explicit dependence on $\lambda_+$, on the InfoNCE temperature (which sets the smoothness of $F$), and on pool size in the stochastic case. The second is the algorithm, which runs on cached embeddings, so each step is a mini-batch InfoNCE gradient, an anchor residual gradient, and one $d \times d$ SVD. The third is an empirical study of when lexicographic priority matters.

The motivating setting is common but rarely formalized: a few hundred curated pairs plus a large pool of cheap, noisy pairs. For audio-vision, the pool is VGGSound, where a video frame and its audio clip are only weakly matched because off-screen sounds are common. A small hand-verified subset serves as anchors. We also inject controlled mismatches into the pool at 0–50% to vary noise. For image-text, we pair DINOv2 with a frozen unimodal text encoder on Flickr30K and MSCOCO, using a small caption subset as anchors and the remainder as the pool. We follow the HuBERT–DINOv2 protocol of Multi-Way to anchor comparability with its reported numbers.

This differs from existing bilevel work in multimodal learning. Facilitating Multimodal Classification via Dynamically Learning Modality Gap learns one scalar weight between contrastive and classification losses through bilevel optimization, without convergence rates. Efficient Cross-Modal Video Retrieval with Meta-Optimized Frames uses unrolled meta-gradients for frame selection and is sensitive to its meta step size. Neither optimizes the alignment map itself, and neither has a set-valued inner problem.

Baselines

The do-nothing reference is retrieval with mean-centered embeddings and the best-fitting unconstrained least-squares map on anchors alone. It shows what anchors buy without any geometric prior. It also absorbs the naive centroid shift discussed in Mind the Gap, which improved CIFAR-10 zero-shot accuracy from 0.9013 to 0.9081 in CLIP.

The first isometric baseline is closed-form orthogonal Procrustes on anchors, as in Canonicalizing. A second variant fits Procrustes on anchors plus the whole noisy pool, which tests whether simply adding data does as well as prioritizing trusted data.

The strongest existing method is GCPA from Multi-Way: Generalized Procrustes followed by a trust-region directional correction. It reports 29% HuBERT-to-DINOv2 retrieval accuracy against about 15% for plain Generalized Procrustes. We rerun GCPA from its description on identical cached embeddings and anchor/pool splits, giving its trust-region radius the same validation budget of 20 settings that every tuned method receives. Multi-Way also notes that canonical correlation analysis (CCA), which finds the linear projections of each modality that are maximally correlated, typically wins at retrieval, so regularized CCA on anchors plus pool is included with the same tuning budget. For Flickr30K, MSCOCO and VGGSound under frozen-unimodal alignment, no reported result was found on Lacuna, so all numbers there come from our own reruns.

Beating GCPA means higher Recall@1 and Recall@10 at equal or lower anchor residual. It also means the margin persists at 30% pool noise, where we expect pooled methods to degrade.

Three ablations isolate the key ingredient. The first is the weighted sum $\lambda F + G$ over $\mathcal{B}$, with $\lambda$ swept over the same 20-setting budget. The second is a ridge-regularized inner problem made strongly convex, so that stochastic implicit differentiation in the style of stocBiO becomes applicable. The third replaces the relaxed map with its polar rounding.

Why not just…?

Why not just use closed-form Procrustes? It is the right answer when anchors fully determine the map, and our method provably collapses to it in that regime. With scarce anchors, though, Procrustes leaves the unconstrained directions arbitrary. The Multi-Way retrieval numbers (about 15% for plain Generalized Procrustes) show that isometric fitting alone retrieves poorly. The anchor-count sweep, $k/d$ from 0.1 to 4, will show whether our gains track anchor scarcity as predicted. If they do not, the core claim is wrong.

Why not just tune a weight between retrieval loss and anchor fit? This is the real threat. At the right $\lambda$, a weighted sum can approximate the lexicographic solution, and our regularization schedule is in a sense a principled path through $\lambda$ values. We settle it directly. If the tuned weighted sum matches our retrieval and anchor residual across noise levels at equal budget, the empirical contribution shrinks to removing one hyperparameter while adding a guarantee. We would report exactly that. We expect a real gap under heavy pool noise. There, any fixed $\lambda$ that exploits the pool also lets noise pull the map off the anchor solution set, whereas the lexicographic solution cannot trade anchor fit for ranking.

Why not just use CCA or GCPA's correction? Both trade anchor fidelity for agreement in ways the user controls only indirectly, through a regularizer or trust-region radius. Neither is framed as optimizing retrieval subject to exact fidelity. They are our strongest baselines, and the plot of anchor residual against retrieval recall will show whether our solution lies outside the curve they trace.

Why not just use standard implicit differentiation or unrolling? The inner Hessian is singular when $k<d$, so implicit differentiation is undefined without added ridge. Unrolling through an SVD-based solver is exactly the fragile, step-size-sensitive regime reported for meta-optimized frames. The ridge-plus-stocBiO ablation tests whether regularizing the degeneracy away is good enough in practice.

Decisive Checks

The first check is the anchor-scarcity curve. The improvement over Procrustes should shrink toward zero as $k/d$ grows and the anchors become well conditioned. The second is lexicographic fidelity: at convergence, our anchor residual should equal the Procrustes optimum to within the certified bound, while GCPA's and CCA's should not. The third is noise robustness: from 0% to 50% pool corruption, our Recall@10 should degrade more slowly than pooled Procrustes and the tuned weighted sum. The fourth is theory against practice: measured iterations to a fixed inner and outer gap should scale with $1/\lambda_+$ when we vary anchor diversity at fixed $k$. If they do not, the error-bound analysis is not capturing the true dependence.