Query-Conditioned Prototype Adaptation for Cross-Domain Few-Shot Learning: Single-Query Inference, Controlled Comparisons, and Failure Modes
Abstract
Cross-domain few-shot learning requires adapting a classifier to a new visual domain from very few labelled examples without target-time parameter updates. We isolate one question: under a fixed global representation, what does joint query-support adaptation contribute to prototype construction? The Within-Instance Prototypical Transformer (WIPT) implements single-query test-time prototype adaptation by jointly transforming one unlabelled query and the labelled support embeddings, then forming query-specific class means. Using a shared frozen ViT-S/16 encoder, miniImageNet source training, and CUB, EuroSAT and ISIC targets, we replicate the key comparisons across five independent training seeds. In 1-shot evaluation, WIPT improves frozen ProtoNet in every run on CUB (+0.21 percentage points) and EuroSAT (+2.07), but decreases ISIC (-0.22). In 5-shot evaluation, ProtoNet remains strongest overall, while WIPT consistently improves a capacity-matched support-only Transformer on ISIC (+0.99). Joint processing of up to five queries yields no reliable accuracy gain; in a head-only 5-shot benchmark, g = 5 reduces analytical attention-token pairs by 73% and peak allocated memory by 29% relative to g = 1, although latency is non-monotonic. Across all target/shot conditions, WIPT changes uncertain ProtoNet decisions far more than confident ones, and rescue/break decomposition accounts for the observed gains and losses. Source-shift and scorer controls further show that the benefit is not universal. Overall, WIPT provides a streaming-compatible form of test-time prototype adaptation that can improve difficult low-shot cross-domain decisions without target-time optimization.
Create a lesson
Metadata
- Categories
- cs.CV, cs.LG
Related papers
Cross-Domain Few-Shot Writer Adaptation for Real-World Handwritten Mathematical Expression Recognition
Shared title terminologycs.CVPaulo Grane Gabriel Silva, Lorenz Bernard Marqueses, Joel Ilao
Multimodal LLMs Outperform Pathology Foundation Models in Cross-Domain Histological Similarity
Shared title terminologycs.CVYishu Zhang, Yun Li, Daiwei Zhang
How Far Can INRs Go? Cross-Domain Parameter-efficient INR-Based Semantic Segmentation for Brain MRI
Shared title terminologycs.CVZiyao Shang, Pouya Sadeghi, Letian Jiang et al.
The Shape of Events: Edge-Based Inductive Biases via Cross-Domain Distillation
Shared title terminologycs.CVSoshun Kihara, Shunsuke Yasuki, Masato Taki
HSTTA: Hierarchical Selective Test-Time Adaptation for Label-Free Cross-Subject EEG-to-Image Retrieval
Shared title terminologycs.CVHongzhou Chen, Yuhao Wei, Lianghua He et al.
FoMNet: Adaptive Kernels Meet Contextual Matching for Cross-Modal Homography Estimation
Shared title terminologycs.CVZhuoran Yang, Zhenyu Yi, Runmin Zhang et al.