Efficient Test-Time Adaptation with Cache-based Dynamic Adapter
Course project for "Trends and Applications in Computer Vision" @ UniTN
π Official Paper:
Efficient Test-Time Adaptation of Vision-Language Models
π§ Authors: Adilbek Karmanov, Dayan Guan, Shijian Lu, Abdulmotaleb El Saddik, Eric Xing
π This project was developed as part of the βTrends and Applications in Computer Visionβ course taught by Prof. M. Mancini and G. Boato.
π Overview
This repository extends the official implementation of TDA (Test-Time Adaptation) by exploring its efficiency, robustness, and flexibility in different real-world scenarios.
π Resources:
- π Final Presentation
- π Related Works Report
- π₯οΈ Related Works Slides
π₯ Project by:
Juan Camacho Mohedano β’
Andrea De Carlo β’
Samuele Bolotta
For setup and base implementation details, refer to the original README_official.md
π Our Contributions
π 1. Benchmarking on Diverse Datasets
We evaluated TDA on:
- Class Distribution Shifts (CD)
- Out-of-Distribution (OOD) test cases
Example:
CIFAR-10-C (non-iid stream) results:
π Code: tda_cd_benchmark.ipynb
βοΈ 2. Hyperparameter Sensitivity under Budget Constraints
Performance analysis across:
- Adaptation budgets
- Stream orderings
π Code: tda_runner_experiments.py
π§© 3. Waiting List Strategy
Added Waiting List to improve robustness:
- Helped on ImageNet
- Less effective on CIFAR10-C
π Code: tda_runner_with_waiting.py
π Files Added
| File | Purpose |
|---|---|
tda_cd_benchmark.ipynb | Benchmarking on class-distribution shifts |
tda_runner_experiments.py | Hyperparameter tuning |
tda_runner_with_waiting.py | Waiting list enhancement |
π Notes
- Experiments are reproducible and tested under realistic compute constraints.
- Visualizations and explanations are in the Final Presentation.
π¬ Contact
For inquiries, feel free to reach out to any of us on LinkedIn.
β If you found this useful, consider checking out the official paper and citing it!