BDC-Adapter: Brownian Distance Covariance for Better Vision-Language Reasoning

Yi Zhang, Ce Zhang, Zihan Liao, Yushun Tang, Zhihai He

Abstract

Large-scale pre-trained Vision-Language Models (VLMs), such as CLIP and ALIGN, have introduced a new paradigm for learning transferable visual representations. Recently, there has been a surge of interest among researchers in developing lightweight fine-tuning techniques to adapt these models to downstream visual tasks. We recognize that current state-of-the-art fine-tuning methods, such as Tip-Adapter, simply consider the covariance between the query image feature and features of support few-shot training samples, which only captures linear relations and potentially instigates a deceptive perception of independence. To address this issue, in this work, we innovatively introduce Brownian Distance Covariance (BDC) to the field of vision-language reasoning. The BDC metric can model all possible relations, providing a robust metric for measuring feature dependence. Based on this, we present a novel method called BDC-Adapter, which integrates BDC prototype similarity reasoning and multi-modal reasoning network prediction to perform classification tasks. Our extensive experimental results show that the proposed BDC-Adapter can freely handle non-linear relations and fully characterize independence, outperforming the current state-of-the-art methods by large margins.

Introduction: Beyond Linear Dependencies

Pre-trained Vision-Language Models (VLMs) like CLIP have revolutionized computer vision by providing robust, transferable representations. However, adapting these massive models to specific downstream tasks remains a challenge. Lightweight "adapters"—small layers added to a frozen VLM—have emerged as a popular solution.

Despite their success, current state-of-the-art adapters like Tip-Adapter suffer from a fundamental limitation: they rely on standard covariance or cosine similarity. These metrics are restricted to capturing linear relationships. In complex visual tasks, feature dependencies are often non-linear. When these metrics fail to detect such relationships, the model may "deceptively" perceive features as independent, leading to suboptimal reasoning, particularly in few-shot scenarios where data is scarce.

The BDC-Adapter Framework

To overcome the "linear trap," we introduce BDC-Adapter. This method leverages Brownian Distance Covariance (BDC), a metric that is zero if and only if the random variables are truly independent. This allows the model to capture the full joint distribution of features, including complex non-linear dependencies.

Methodology Overview

The BDC-Adapter employs a dual-pathway approach for classification:

  1. Multi-Modal Reasoning Network: A lightweight linear network trained on concatenated image and text features to provide a baseline prediction.
  2. BDC Prototype Reasoning: This core component replaces standard pooling with a BDC Module. It represents images as BDC matrices that characterize the dependence between feature channels. Class "prototypes" are generated by averaging these matrices from few-shot training samples.
The BDC-Adapter framework consists of (a) multi-modal learning, (b) class-specific prototype generation, and (c) the final inference process combining both pathways.

BDC Module vs. Traditional Pooling

Unlike traditional attention-based pooling which focuses on linear feature aggregation, the BDC module captures higher-order statistics. By calculating the Brownian distance covariance between feature channels, it creates a richer "fingerprint" of the visual content, ensuring that non-linear dependencies are not ignored.

Comparison between traditional Attention Pooling (left) and the proposed BDC Module (right) for generating image features and prototypes.

Experimental Evaluation

We evaluated BDC-Adapter across 11 diverse classification datasets, domain generalization benchmarks, and the Bongard-HOI visual reasoning task.

  • State-of-the-Art Performance: BDC-Adapter consistently outperformed Tip-Adapter-F. On 16-shot ImageNet, it achieved an accuracy of 66.46%.
  • Robustness to Distribution Shift: The model showed superior performance on ImageNet-V2, Sketch, and Adversarial sets, indicating that BDC captures more fundamental, robust features than linear methods.
  • Abstract Reasoning: On the Bongard-HOI benchmark, which tests the identification of abstract Human-Object Interactions, BDC-Adapter significantly outperformed CLIP-based baselines like TPT.
  • Efficiency: Training is remarkably fast; the model reaches peak performance on 16-shot ImageNet in just 2 minutes on a single RTX 3090, whereas prompt-tuning methods like CoOp can take up to 15 hours.

Conclusion

BDC-Adapter demonstrates that accounting for non-linear feature dependencies is crucial for effective VLM adaptation. By integrating Brownian Distance Covariance, we provide a more "honest" metric for feature similarity that is both highly accurate and computationally efficient. Future work will explore applying BDC to broader tasks such as object detection and segmentation.

Summary updated

BibTeX
@inproceedings{zhang2023bdc,
  author = {Yi Zhang and Ce Zhang and Zihan Liao and Yushun Tang and Zhihai He},
  title = {{BDC-Adapter: Brownian Distance Covariance for Better Vision-Language Reasoning}},
  booktitle = {BMVC},
  year = {2023},
  url = {https://openreview.net/forum?id=xF7p_HHP4Vs},
}
Figure