HeBA: Heterogeneous Bottleneck Adapters for Robust Vision-Language Models
Organizations: Department of Electrical and Electronic Engineering, Bangladesh University of Engineering and Technology, Dhaka, Bangladesh
Abstract
Adapting large-scale Vision-Language Models (VLMs) like CLIP to downstream tasks often suffers from a "one-size-fits-all" architectural approach, where visual and textual tokens are processed uniformly by wide, generic adapters. We argue that this homogeneity ignores the distinct structural nature of the modalities -- spatial locality in images versus semantic density in text. To address this, we propose HeBA (Heterogeneous Bottleneck Adapter), a unified architectural framework that introduces modality-specific structural inductive biases. HeBA departs from conventional designs through three key architectural innovations: (1) Heterogeneity: It processes visual tokens via 2D depthwise-separable convolutions to preserve spatial correlations, while distinctively processing text tokens via dense linear projections to capture semantic relationships; (2) Bottleneck Regularization: Unlike standard expanding adapters, HeBA employs a compression bottleneck (D -> D/4) that explicitly forces the model to learn compact, robust features and acts as a structural regularizer; and (3) Active Gradient Initialization: We challenge the restrictive zero-initialization paradigm, utilizing a Kaiming initialization strategy that ensures sufficient initial gradient flow to accelerate convergence without compromising the frozen backbone's pre-trained knowledge. Extensive experiments demonstrate that HeBA's architecturally specialized design achieves superior stability and accuracy, establishing a new state-of-the-art on 11 few-shot benchmarks. Code is available at https://github.com/Jahid12012021/VLM-HeBA.
Figures & tables
| Method | Year | Average (11) | ImageNet | Caltech101 | Oxford Pets | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Base | Novel | HM | Base | Novel | HM | Base | Novel | HM | Base | Novel | HM | ||
| CLIP | 2021 | 69.34 | 74.22 | 71.70 | 72.43 | 68.14 | 70.22 | 96.84 | 94.00 | 95.40 | 91.17 | 97.26 | 94.12 |
| CoOp | 2022 | 82.69 | 63.22 | 71.66 | 76.47 | 67.88 | 71.92 | 98.00 | 89.81 | 93.73 | 93.67 | 95.29 | 94.47 |
| CoOpOp | 2022 | 80.47 | 71.69 | 75.83 | 75.98 | 70.43 | 73.10 | 97.96 | 93.81 | 95.84 | 95.20 | 97.69 | 96.43 |
| ProDA | 2022 | 81.56 | 72.30 | 76.65 | 75.40 | 70.23 | 72.72 | 98.27 | 93.23 | 95.68 | 95.43 | 97.83 | 96.62 |
| KgCoOp | 2023 | 80.73 | 73.60 | 77.00 | 75.83 | 69.96 | 72.78 | 97.72 | 94.39 | 96.03 | 94.65 | 97.76 | 96.18 |
| Method | Year | ImageNet | Caltech101 | OxfordPets | StanfordCars | Flowers102 | Food101 | FGVCAircraft | SUN397 | DTD | EuroSAT | UCF101 | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CLIP [ 27 ] | 2021 | 66.72 | 92.98 | 89.13 | 65.29 | 71.30 | 86.11 | 24.90 | 62.59 | 44.56 | 47.84 | 66.83 | 65.15 |
| CoOp [ 42 ] | 2022 | 71.51 | 93.70 | 89.14 | 64.51 | 68.71 | 85.30 | 18.47 | 64.15 | 41.92 | 46.39 | 66.55 | 63.88 |
| CoCoOp [ 41 ] | 2022 | 71.02 | 94.43 | 90.14 | 65.32 | 71.88 | 86.06 | 22.94 | 67.36 | 45.73 | 45.37 | 68.21 | 65.74 |
| MaPLe [ 18 ] | 2023 | 70.72 | 93.53 | 90.49 | 65.57 | 72.23 | 86.20 | 24.74 | 67.01 | 46.49 | 48.06 | 68.69 | 66.30 |
| P-SRC [ 19 ] | 2023 | 71.27 | 93.60 | 90.25 | 65.70 | 70.25 | 86.15 | 23.90 | 67.10 | 46.87 | 45.50 | 68.75 | 65.81 |
| HPT [ 33 ] | 2024 | 71.72 | 94.20 | 92.63 | 66.33 | 74.84 | 86.21 | 25.68 | 68.75 | 50.87 | 47.36 | 70.50 | 67.74 |
| Method | Year | ImageNet | -V2 | -S | -A | -R | Average |
|---|---|---|---|---|---|---|---|
| CLIP [ 27 ] | 2021 | 66.73 | 60.83 | 46.15 | 47.77 | 73.96 | 57.18 |
| CoOp [ 42 ] | 2022 | 71.51 | 64.20 | 47.99 | 49.71 | 75.21 | 59.28 |
| CoCoOp [ 41 ] | 2022 | 71.02 | 64.07 | 48.75 | 50.63 | 76.18 | 59.91 |
| MaPLe [ 18 ] | 2023 | 70.72 | 64.07 | 49.15 | 50.90 | 76.98 | 60.27 |
| PromptSRC [ 19 ] | 2023 | 71.27 | 64.35 | 49.55 | 50.90 | 77.80 | 60.65 |
| HPT [ 33 ] | 2024 | 71.72 | 65.25 | 49.36 | 50.85 | 77.38 | 60.71 |
| Configuration | Base | Novel | HM |
|---|---|---|---|
| HeBA (Full) | 84.29 | 78.62 | 81.35 |
| w/ Zero-Initialization | 84.11 | 78.63 | 81.28 |
| w/o Spatial Bias (1D) | 84.04 | 78.63 | 81.25 |
| w/o Depthwise Conv | 83.96 | 78.63 | 81.20 |
| Cross-Dataset | Domain Gen. | ||
|---|---|---|---|
| Avg Acc (%) | Avg Acc (%) | ||
| 0.05 | 0.075 | 68.26 | 60.62 |
| 0.05 | 0.050 | 68.60 | 60.67 |
| 0.05 | 0.025 | 68.71 | 60.26 |
| 0.05 | 0.0125 | 68.66 | 59.86 |