TL;DR
ADAMAB is a sample-efficient embedding calibration framework designed to boost few-shot implicit pattern recognition in vision and language models. By training lightweight, embedder-agnostic calibrators on top of frozen models and using a Multi-Armed Bandit (MAB) to adaptively guide synthetic data generation, it achieves up to a 40% accuracy improvement with fewer than 5 initial samples per class.
What Problem Does This Paper Address?
While modern foundation models (LLMs and VLMs) excel at general tasks, they frequently stumble when recognizing implicit or long-tail patterns (e.g., identifying fine-grained visual categories or detecting subtle textual nuances like policy violations). This shortfall happens because task-specific knowledge is often missing from pre-training data, and generation-oriented training optimizes models for predicting the likelihood of text ($P(X|Y)$) rather than the posterior probability for classification ($P(Y|X)$).
Fixing this usually requires fine-tuning, but full fine-tuning is computationally expensive and impossible for closed-source models accessed via APIs. Standard data augmentation can help, but randomly generating data introduces high variance in few-shot settings—a phenomenon known as gradient shifting, where the empirical gradient of a tiny dataset heavily biases the true data distribution gradient.
Methods
The authors introduce ADAMAB (Adaptive Data Augmentation with Multi-armed Bandit) to calibrate fixed embedding models without accessing their internal parameters. The framework consists of two main components:
- Light-weight Embedding Calibrators: Instead of altering the foundation model, ADAMAB adds two small, three-layer feed-forward residual networks on top of the frozen query and label embedders. These calibrators map the original embeddings into a shared space optimized for calculating matching scores via cross-entropy loss.
- Adaptive Data Augmentation via MAB: To combat gradient shifting without human labeling, ADAMAB uses a Multi-Armed Bandit mechanism to decide which class most urgently needs data augmentation at each training epoch.
Instead of a standard Upper Confidence Bound (UCB) algorithm—which shrinks its exploration window too quickly in data-sparse environments—ADAMAB utilizes a confidence-relaxed UCB strategy. By scaling the exploration bound, it encourages broader exploration in the early stages, ensuring a more uniform data distribution and providing a theoretical guarantee of convergence.
Datasets
The authors evaluated ADAMAB across both text and image classification tasks using six distinct datasets:
- Textual Datasets:
- MultiWD: Reddit posts mapped to 6 Wellness Dimensions.
- Forbidden Question Set (FQS): 390 safety-violating questions across 13 forbidden topics.
- TREC: Question classification dataset filtered to 30 second-level classes.
- Visual Datasets:
- OxfordIIITPet: Fine-grained images of 37 cat and dog breeds.
- Flowers102: 102 fine-grained categories of flowers.
- CUB-200-2011: 200 distinct species of birds.
Key Insights and Ideas
- Generative Models vs. Calibrated Embeddings: Interestingly, the calibrated embeddings can achieve higher classification accuracy than the generative models (like GPT-4o-mini) used to create the synthetic data. This is because the calibrator distills and restructures the foundation model's latent knowledge specifically for classification, shifting the focus from generation likelihood to classification posteriors.
- The Danger of Over-Augmentation: More data isn't always better. The authors observed that generating too many synthetic samples eventually causes accuracy to decline. Because small generative models produce somewhat homogeneous data, excessive augmentation leads to overfitting.
- Why Standard UCB Fails in Few-Shot Settings: In few-shot scenarios, empirical gradient shifting has a massive bias. A standard greedy or tight UCB algorithm suffers from high regret due to these noisy estimates. Relaxing the confidence bound forces the system to explore underrepresented classes, stabilizing convergence.
Key Results
ADAMAB consistently outperformed zero-shot and few-shot in-context learning baselines, re-rankers, and uniform random data augmentation.
- Accuracy Boost: On the QWen-3-emb-06b model, ADAMAB improved zero-shot accuracy on the MultiWD dataset by 21.59% and on the TREC dataset by 27.62%.
- Sample Efficiency: As shown in the evaluation curves, the framework reaches peak performance rapidly, often requiring an average of fewer than 15 to 20 total augmented samples per class to hit optimal convergence.
Limitations and Future Work
The primary limitation identified in the paper is the homogeneity of synthetic data. When using smaller generative models (like GPT-4o-mini or GPT-Image-1-mini), the generated samples lack diversity despite prompt tuning. This limits how much data can be safely added before the calibrator overfits.
Future work could explore integrating more diverse, state-of-the-art generative models or developing advanced prompting strategies to inject greater variance into the synthesized datasets.
Summary updated