Preserve and Sculpt: Manifold-Aligned Fine-tuning of Vision-Language Models for Few-Shot Learning

Dexia Chen, Qianjie Zhu, Weibing Li, Yue Yu, Tong Zhang, Ruixuan Wang

TL;DR

Fine-tuning vision-language models (VLMs) like CLIP on tiny datasets often destroys the rich, pre-trained semantic relationships that make them so powerful. MPS-Tuning solves this by "preserving" the original data geometry using Gram matrix alignment (linked to the Gromov-Wasserstein distance) and "sculpting" the feature space to make classes more distinct across both final and intermediate layers.

The Challenge: Semantic Structure Collapse

Vision-Language Models (VLMs) like CLIP are famous for their "common sense" embedding space—where the vector for a "cat" is naturally close to "feline" but far from "truck." However, when we try to adapt these models to specific new tasks using only a few examples (few-shot learning), we run into a major hurdle: semantic structure collapse.

Standard fine-tuning often causes the model to "forget" the global geometric relationships it learned during massive pre-training. Current fixes usually involve restricting the number of tunable parameters (Parameter-Efficient Fine-Tuning, or PEFT) or forcing individual samples to stay consistent with their original versions. The authors argue these are merely "point-wise" fixes that ignore the "manifold"—the overall shape and structure of the data distribution. Without considering the manifold, the model might learn the new task but lose its ability to generalize or maintain a logical semantic space.

Comparison of fine-tuning paradigms, highlighting the proposed Manifold Regularization approach.

Methods: Preserve and Sculpt

The authors introduce Manifold-Preserving and Sculpting Tuning (MPS-Tuning), which tackles the problem through two primary components:

1. Manifold Alignment Regularization (MAR)

This is the "Preserve" step. Instead of just looking at individual data points, MAR looks at the relationships between points. It uses Gram matrices (which capture pairwise similarities) at two levels:

  • Global: Aligning relationships between different images in a batch.
  • Local: Aligning relationships between different parts (tokens) of the same image.

The "Aha" Math: The authors theoretically prove that minimizing the difference between these Gram matrices provides an upper bound for the Gromov-Wasserstein (GW) distance, a powerful metric for comparing different geometric shapes.

2. Hierarchical Manifold Sculpting (HMS)

This is the "Sculpt" step. It uses a multimodal contrastive loss to actively push features of the same category together and pull different categories apart.

  • Pseudo-Forward Projection: To make this work in the middle of the model (where features aren't yet "text-compatible"), they use a clever trick to skip the attention layers and project intermediate features directly into the final output space for optimization.
Architecture of MPS-Tuning featuring Manifold Alignment Regularization (MAR) and Hierarchical Manifold Sculpting (HMS).

Key Insights and Ideas

  • Geometry over Points: The core philosophy is that the relative positions of data points (the manifold) are more important than their absolute coordinates. By preserving the Gram matrix, you preserve the "soul" of the pre-trained model.
  • The Semantic Hierarchy: The paper acknowledges that neural networks learn hierarchically. By applying "sculpting" to the last few layers rather than just the output, they allow the model to refine class-specific features while keeping earlier, more generic features intact.
  • Flexible Constraints: Unlike rigid "consistency" losses that demand a model's output never change, MAR allows the manifold to shift and adapt as long as the underlying topological structure remains consistent. This provides a better balance between learning new things and remembering old ones.

Datasets and Key Results

The researchers put MPS-Tuning through a rigorous gauntlet of 11 benchmark datasets, covering general objects (ImageNet, Caltech101), fine-grained categories (OxfordPets, StanfordCars, Flowers102, Food101, FGVCAircraft), and specialized domains (SUN397, DTD, EuroSAT, UCF101). They also tested domain generalization on ImageNet-V2 and ImageNet-Sketch.

MPS-Tuning consistently outperformed state-of-the-art methods like CoOp and PromptSRC across the board:

  • Accuracy Gains: On average across 11 datasets, it improved accuracy by 0.88% in 1-shot settings and 2.51% in 16-shot settings over the strongest baselines.
  • Domain Generalization: When trained on ImageNet and tested on "out-of-distribution" versions (like sketches), MPS-Tuning showed superior robustness, proving that preserving the manifold helps the model handle visual shifts.
  • Efficiency: Despite the extra math, the training speed (FPS) remains comparable to existing high-performance tuning methods, making it practical for real-world use.

Limitations and Future Work

The authors identify a specific weakness: extreme data scarcity. In 1-shot and 2-shot scenarios on certain datasets, MPS-Tuning occasionally falls slightly behind specialized SOTA methods. They attribute this to the fact that Gram matrix alignment needs a certain "critical mass" of data to accurately capture the manifold structure.

Future Directions: The team suggests exploring the use of unlabeled external data or generative models to "fill in the gaps" of the manifold when training data is nearly non-existent. This could help the "Preserve" step work even when the model has only seen a single example of a new class.

Summary updated

BibTeX
@inproceedings{chen2026preserve,
  author = {Dexia Chen and Qianjie Zhu and Weibing Li and Yue Yu and Tong Zhang and Ruixuan Wang},
  title = {{Preserve and Sculpt: Manifold-Aligned Fine-tuning of Vision-Language Models for Few-Shot Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ZGJJF1e2u0},
}
Figure