RADC: Risk-Aware Dual Caching for Vision-Language Test-Time Adaptation
Organizations: Tsinghua Shenzhen International Graduate School, Tsinghua University, Shenzhen, China · Pengcheng Laboratory, Shenzhen, China · School of Intelligent Systems Engineering, Sun Yat-sen University, Shenzhen, China
Abstract
Cache-based test-time adaptation (TTA) for vision-language models is often hindered by background bias in global representations and unreliable entropy-based cache admission under representation variations. To address these limitations, we propose RADC, which enhances prototype learning through reliable dual caching. RADC introduces a Semantic Foreground Cache that aggregates category-consistent spatial evidence from CLIP representations, yielding foreground prototypes that complement the global cache while mitigating background interference. To reliably manage both caches, Gaussian Risk Admission models multi-view representations as diagonal Gaussian distributions and jointly considers class separation and feature uncertainty to prioritize reliable cache candidates. RADC integrates zero-shot logits with complementary global- and foreground-cache predictions for robust inference. Extensive experiments on cross-domain and out-of-distribution benchmarks demonstrate consistent state-of-the-art performance.
Figures & tables
| Method | Aircraft | Caltech | Cars | DTD | EuroSAT | Flowers102 | Food101 | Pets | SUN397 | UCF101 | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|
| CLIP-RN50 [ 18 ] | 15.66 | 85.88 | 55.70 | 40.37 | 23.69 | 61.75 | 73.97 | 83.57 | 58.80 | 58.84 | 55.82 |
| CoOp [ 30 ] | 15.12 | 86.53 | 55.32 | 37.29 | 26.20 | 61.55 | 75.59 | 87.00 | 58.15 | 59.05 | 56.18 |
| TPT [ 20 ] | 17.58 | 87.02 | 58.46 | 40.84 | 28.33 | 62.69 | 74.88 | 84.49 | 61.46 | 60.82 | 57.66 |
| DiffTPT [ 5 ] | 17.60 | 86.89 | 60.71 | 40.72 | 41.04 | 63.53 | 79.21 | 83.40 | 62.72 | 62.67 | 59.85 |
| DMN-ZS [ 29 ] | 22.77 | 90.14 | 60.02 | 50.41 | 48.72 | 67.93 | 76.70 | 86.78 | 64.39 | 65.34 | 63.32 |
| TDA [ 12 ] | 17.61 | 89.70 | 57.78 | 43.74 | 42.11 | 68.74 | 77.75 | 86.18 | 62.53 | 64.18 | 61.03 |
| Method | ImageNet | ImageNet-A | ImageNet-V2 | ImageNet-R | ImageNet-S | Average | OOD Average |
|---|---|---|---|---|---|---|---|
| CLIP-RN50 [ 18 ] | 58.16 | 21.83 | 51.41 | 56.15 | 33.37 | 44.18 | 40.69 |
| CoOp [ 30 ] | 63.33 | 23.06 | 55.40 | 56.60 | 34.67 | 46.61 | 42.43 |
| TPT [ 20 ] | 60.74 | 26.67 | 54.70 | 59.11 | 35.09 | 47.26 | 43.89 |
| DiffTPT [ 5 ] | 60.80 | 31.06 | 55.80 | 58.80 | 37.10 | 48.71 | 45.69 |
| DMN-ZS [ 29 ] | 63.87 | 28.57 | 56.12 | 61.44 | 39.84 | 49.97 | 46.49 |
| TDA [ 12 ] | 61.35 | 30.29 | 55.54 | 62.58 | 38.12 | 49.58 | 46.63 |
| Backbone | SFC | GRA | Flowers102 | Pets | Cars | Average |
|---|---|---|---|---|---|---|
| RN50 | – | – | 67.60 | 85.97 | 59.26 | 70.94 |
| – | 69.43 | 87.90 | 62.34 | 73.22 | ||
| – | 69.75 | 87.54 | 61.97 | 73.09 | ||
| 69.91 | 88.01 | 62.72 | 73.55 | |||
| ViT-B/16 | – | – | 75.07 | 86.17 | 67.31 | 76.18 |
| – | 78.12 | 92.40 | 70.41 | 80.31 |
| Method | Time | Memory | Accuracy | Gain |
|---|---|---|---|---|
| CLIP-ViT-B/16 [ 18 ] | 1.13 min | 1122 MiB | 47.87 | 0 |
| DPE [ 25 ] | 19.40 min | 6466 MiB | 59.63 | +11.76 |
| SCA [ 7 ] | 7.14 min | 988 MiB | 60.33 | +12.46 |
| RADC (Ours) | 12.26 min | 2084 MiB | 64.63 | +16.76 |
Test-Time Adaptation of VLMs
Test-time adaptation of vision-language models uses unlabeled deployment data to improve predictions under domain shifts without retraining.
See all 79 papers