Abstract
Recent advances in vision-language models (VLMs) like CLIP have enabled powerful zero-shot capabilities. However, adapting these models to specific downstream tasks with limited data remains challenging. Existing Parameter-Efficient Fine-Tuning (PEFT) methods, such as LoRA or prompt tuning, typically employ a single-step adjustment to align image and text features. This paper identifies a fundamental limitation in this "one-step" approach, particularly on complex datasets with entangled feature distributions. We propose Flow Matching Alignment (FMA), a model-agnostic framework that treats feature alignment as a continuous, multi-step flow. By learning a velocity field and utilizing an ODE solver, FMA effectively untangles features, leading to significant performance gains across diverse few-shot benchmarks.
Introduction: The "One-Step" Bottleneck
Fine-tuning large-scale VLMs for few-shot learning often relies on PEFT techniques. While effective for simple datasets, these methods frequently struggle when class distributions are highly overlapping or "entangled." The authors observe that existing PEFT methods attempt to map image features to text embeddings in a single forward pass. On difficult datasets—such as those involving fine-grained aircraft classification or complex textures—this single "leap" is insufficient to navigate the intricate feature space toward the correct class boundaries.
Methods: Flow Matching Alignment (FMA)
To overcome the limitations of single-step alignment, we introduce Flow Matching Alignment (FMA). Instead of a direct mapping, FMA learns a velocity field that defines a continuous trajectory from an image feature to its corresponding text feature.
Key technical innovations include:
- Multi-Step Rectification: By employing an ODE solver, FMA breaks the alignment process into multiple incremental steps. This allows the model to follow complex, non-linear paths that are mathematically more robust for "untangling" features.
- Coupling Enforcement: FMA explicitly pairs image features with their ground-truth class labels during training, ensuring the learned flow is discriminative.
- Noise Augmentation: To prevent overfitting in data-scarce few-shot scenarios, time-dependent Gaussian noise is injected during training, effectively "thickening" the data manifold and improving generalization.
- Early Stopping Solver (ESS): The authors discovered that moving features all the way to the target text embedding ($t=1$) can sometimes introduce errors. ESS identifies the optimal point in the trajectory where class separation is maximized.
Experimental Results
FMA was evaluated across 11 benchmarks, categorized into "Easy" and "Difficult" sets based on baseline CLIP performance.
- Performance Gains: FMA consistently outperformed state-of-the-art PEFT methods. On the "Difficult" dataset group (16-shot), FMA improved CLIP-LoRA's average accuracy from 76.1% to 77.8%.
- Zero-Shot Refinement: When applied directly to zero-shot CLIP features on the FGVCAircraft dataset, FMA achieved a remarkable 13.3% absolute improvement in accuracy.
- Model Agnosticism: FMA serves as a versatile refinement step that can be integrated with various architectures, including CoOp, CoCoOp, Adapters, and LoRA.
Discussion and Future Work
The success of FMA highlights that cross-modal alignment is fundamentally a trajectory problem rather than a simple point-to-point mapping. While FMA introduces some additional inference cost due to the multi-step ODE solver, its ability to handle complex feature distributions makes it a powerful tool for robust few-shot learning. Future research may explore sample-specific optimal stopping times and the application of flow-based alignment to generative and retrieval tasks.
Summary updated