atlas

Research map / Label-efficient and robust learning / Domain adaptation and generalization

A Closer Look at the CLS Token for Cross-Domain Few-Shot Learning

NeurIPS 2024 · Label-efficient and robust learning › Domain adaptation and generalization · approach: Cross-domain few-shot with transformers · 9 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Finds that leaving the ViT CLS token randomly initialized rather than loading source-trained weights improves cross-domain few-shot performance, explains this via CLS absorbing low-frequency domain information, and proposes CD-CLS to decouple domain information with domain tokens.

Problem

Cross-domain few-shot learning with ViT transfers poorly because source-trained parameters carry domain-specific information, and the role of the CLS token in this transfer was previously unexamined.

Approach

The CLS token, placed at the input layer and shared across all patches, absorbs low-frequency (domain) information. The method fixes the CLS token at random initialization during source training, adds pseudo-domain tokens (one per source class) to absorb domain information, and then finetunes the CLS token alone on the target domain.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
not load the source-trained CLS token for target-domain evaluation (ablation)baseline CDFSL · CropDisease, EuroSAT, ISIC2018, ChestX; 5-way 1-shotaccuracy: +1.32, +0.94, +0.01, +0.06Mixed
add CLS decoupling during source-domain training (ablation)ViT-S CDFSL · four target datasets, 5-way 5-shot averageaccuracy: 63.89±0.14 -> 65.66±0.15Helped
add the orthogonal loss to CLS decoupling (ablation)ViT-S CDFSL · four target datasets, 5-way 5-shot averageaccuracy: 65.66±0.15 -> 66.10±0.17Helped
load the DINO-pretrained CLS token instead of random initialization (ablation)ViT-S CDFSL · four target datasets, 5-way 5-shot averageaccuracy: 66.10±0.17 -> 64.46±0.14Hurt
make the CLS token learnable during source-domain training (ablation)ViT-S CDFSL · four target datasets, 5-way 5-shot averageaccuracy: 66.10±0.17 -> 64.83±0.15Hurt
remove domain tokens (ablation)ViT-S CDFSL · four target datasets, 5-way 5-shot averageaccuracy: 66.10±0.17 -> 64.50±0.16Hurt
fix domain tokens at random initialization instead of learning them (ablation)ViT-S CDFSL · four target datasets, 5-way 5-shot averageaccuracy: 66.10±0.17 -> 65.37±0.15Hurt
randomly assign domain tokens to samples (ablation)ViT-S CDFSL · four target datasets, 5-way 5-shot averageaccuracy: 66.10±0.17 -> 64.38±0.15Hurt
decouple by prompt instead of the proposed domain-token method (ablation)ViT-S CDFSL · four target datasets, 5-way 5-shot averageaccuracy: 66.10±0.17 -> 64.50±0.14Hurt
finetune the CLS token on the target domain rather than fixing it (ablation)ViT-S CDFSL · four target datasets, 5-way 1-shot averageaccuracy: 54.24±0.11 -> 54.62±0.13Helped
apply CLS decoupling during target-domain finetuning (ablation)ViT-S CDFSL · four target datasets, 5-way 1-shot averageaccuracy: 54.62±0.13 -> 51.77±0.12Hurt
re-initialize the CLS token during source-domain training (ablation)CD-CLS · four target datasets, 5-way 5-shot averageaccuracy: 65.66 -> 65.31Hurt

Surprising findings

Limitations

Experimental setup

Datasets: miniImageNet CropDiseases EuroSAT ISIC2018 ChestX

Benchmarks: CropDiseases EuroSAT ISIC2018 ChestX

Metrics: 5-way 1-shot accuracy 5-way 5-shot accuracy CKA similarity

Baselines: MEM-FS StyleAdv MICM SDT FLoR PMF LDP-net GNN+AFA RDC MEM-FS+RDA

Builds on: DINO StyleAdv FLoR ProtoNet CKA similarity

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy