You CAN Teach an Old Model New Tricks: Domain Adaptation via Complementary Subspace Expansion

Donghoon Han, SungHyun Moon, SeungJae LeeNeurIPS 2026

TL;DR

When you fine-tune a deployed search model for a specialized domain like medical imaging, you normally ruin its general knowledge and invalidate your massive, pre-computed vector database. Complementary Subspace Expansion (CoSE) sidesteps this painful trade-off by keeping the original model strictly frozen and gluing a small, domain-adapted vector channel right onto the side of its output. At search time, a simple dial lets you smoothly blend general and specialized knowledge—or snap straight back to your exact legacy system without retraining.

What Problem Does This Paper Address?

Modern multimodal search engines map text and images into a shared mathematical space—creating lists of numbers called embeddings—and store them in massive vector indices. In production, this index is often your heaviest asset; re-embedding a billion documents can burn weeks of GPU time.

Suppose you want your general-purpose model to get better at reading satellite imagery or radiology scans. Standard adaptation methods (like LoRA) tweak the model's internal weights. That creates two headaches: the model forgets general concepts ("catastrophic forgetting"), and its new embeddings no longer match the old ones, forcing a costly re-indexing migration. Other methods try to approximately match the old space via distillation, or add side-networks that still alter the final numbers. The authors ask: can we teach an old model new tricks without touching its original outputs at all, guaranteeing exact backward compatibility by construction?

Methods

Instead of overwriting the existing embedding space, CoSE expands it. Using a frozen vision-language backbone (primarily Qwen3-VL-Embedding-2B), CoSE runs two parallel pathways on the same input:

  1. Pass 1 (Legacy): Runs through the untouched, frozen model to produce the exact original embedding, $\mathbf{z}_{\text{old}}$.
  2. Pass 2 (Domain): Runs through a side-branch equipped with lightweight LoRA adapters on the attention projections to produce a new, domain-specialized embedding, $\mathbf{z}_{\text{new}}$.
Figure 2: CoSE architecture. Pass 1 runs the frozen encoder and produces the preserved legacy embedding zold. Pass 2 is a trainable side-branch LoRA pathway that produces the complementary embedding znew. The final representation is Fθ = [zold ; znew]. Shared weights act separately on each pathway; MRL supervises truncated blends and is used only on HAN in the main experiments.

Rather than adding these vectors together, CoSE concatenates them side-by-side: $[\mathbf{z}_{\text{old}} \parallel \mathbf{z}_{\text{new}}]$. Because $\mathbf{z}_{\text{old}}$ sits untouched in the first $d$ coordinates, legacy search scores are preserved down to floating-point precision.

What is novel here is how they train and serve this chimera:

  • Joint Contrastive Supervision: Using a directional contrastive loss, CoSE simultaneously trains the 50/50 blended vector and the standalone $\mathbf{z}_{\text{new}}$ channel, ensuring both work cleanly together or apart.
  • Inference-Time $\alpha$-Blending: At query time, a scalar $\alpha \in [0, 1]$ weights the similarity scores between the old and new channels. Setting $\alpha = 1$ gives exact legacy behavior; $\alpha = 0.5$ gives a balanced blend—no retraining required.
  • Cost Knobs: To save storage and compute, CoSE supports Matryoshka Representation Learning (allowing you to chop $\mathbf{z}_{\text{new}}$ down from 2048 to, say, 256 dimensions) and partial branching (sharing early transformer layers before splitting off the LoRA pass).

Datasets

  • Domain Adaptation (Training & Eval): Four specialized image-text datasets: HAN extended (Korean broadcast/cultural media, featuring newly extended captions over an AIHub base), ROCO (medical radiology), SemArt (fine art paintings), and RSICD (satellite remote sensing).
  • General Preservation (Zero-shot Eval): Flickr30K, COCO 2017 val, and ImageNet-1k to measure whether adapting to a niche domain degrades everyday visual-linguistic retrieval.

Key Insights and Ideas

  • Exact Compatibility Requires Expansion: The authors point out a neat linear algebra truth: if your document matrix has full column rank, you mathematically cannot change a query vector within the same dimensions while keeping every legacy similarity score identical. Expanding the vector space via concatenation isn't just a hack—it's structurally necessary for exact score preservation.
  • Standalone Supervision Anchors the Blend: In ablations, training only the concatenated vector caused low-$\alpha$ performance to collapse (Recall@1 on HAN dropped from 0.503 to 0.187 at $\alpha=0.1$) and degraded general retention. Explicitly training $\mathbf{z}_{\text{new}}$ to stand on its own feet makes the whole dial usable.
  • Never Blend Half-Migrated Indices: CoSE still requires backfilling $\mathbf{z}_{\text{new}}$ across your corpus to get domain gains. Testing partial backfills (e.g., 25% coverage) revealed severe "coverage bias"—the search engine unfairly favors migrated documents, tanking accuracy. The safe play is serving the $\alpha=1$ frozen endpoint until backfill is 100% finished, then flipping the switch atomically.

Key Results

Across four domains and three random seeds—training just 6.4M parameters (0.30% of the 2B base)—CoSE hits a sweet spot between adaptation and retention:

Figure 1: Domain quality and general preservation after full corpus migration. x: domain R@1 gain over Frozen, avg(i2t,t2i); y: number of general benchmarks within 5pp of Frozen. Points use Table 1 results and each method’s populated corpus representation; SemArt/RSICD LoRA general coverage uses seed 0, while its domain gain averages three seeds. The red segment connects CoSE’s fixed and validation-selected blends from the same checkpoint family; it is not a measured intermediate trajectory.
  • Strong Adaptation with Safe Retention: At the tuning-free default ($\alpha = 0.5$), CoSE boosts domain Recall@1 (R@1) over the frozen base across the board—jumping from 0.320 to 0.433 on HAN, 0.142 to 0.353 on ROCO, 0.204 to 0.470 on SemArt, and 0.088 to 0.159 on RSICD—while keeping all general benchmark means within 4.8 percentage points of the frozen model. Tuning $\alpha^*$ for pure domain performance pushes domain R@1 even higher (e.g., 0.490 on SemArt), though it can exceed the 5pp general-retention budget.
  • Compact Storage: Truncating $\mathbf{z}_{\text{new}}$ from 2048 down to 256 dimensions ([2048||256]) retains most of ROCO's domain gain (0.338 vs. 0.355 full-width i2t R@1) while adding only ~12% to the projected 100k-document HNSW index size (949 MB vs. 846 MB Frozen).
  • Serving Overhead: Running two passes isn't free. On an H200 GPU, full CoSE query encoding takes 1.67$\times$ Frozen latency at batch size 1 (27.9ms vs. 16.6ms) and 2.1–2.2$\times$ at saturated batches, though sharing half the prefix layers cuts that cost to 1.58$\times$.

Limitations and Future Work

The authors are refreshingly candid about deployment boundaries:

  • Domain-Competitive, Not Always Domain-Best: Pure LoRA often scores slightly higher on the target domain (at the cost of wrecking general retrieval and the index). Furthermore, if you know whether incoming traffic is domain-specific or general, maintaining two separate tables (Frozen + LoRA) with hard routing beats CoSE's single-index $\alpha=0.5$ blend on mixed-traffic accuracy.
  • Compute, Backfill, and Rollback Nuances: CoSE doesn't eliminate background corpus backfilling, increases query encoding compute, and struggles with small contrastive batch sizes. Also, while frozen math scores are exact at $\alpha=1$, Approximate Nearest Neighbor (HNSW) graph traversal over an expanded index only overlaps 98.4% with a legacy graph—exact ANN rollback requires keeping the old graph around.
  • Future Directions: Supporting multiple domain branches concurrently currently grows vector width linearly ($d + \sum m_k$). Tackling concurrent multi-domain adaptation and learning adaptive per-query $\alpha$ blending remain open avenues for future work.

Summary updated

BibTeX
@inproceedings{han2026you,
  author = {Donghoon Han and SungHyun Moon and SeungJae Lee},
  title = {{You CAN Teach an Old Model New Tricks: Domain Adaptation via Complementary Subspace Expansion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=sA9M7Ut7pf},
}
Figure