Quartet of Experts: Multi-Aspect Semantic Guidance for Few-Shot Learning
Abstract
Few-shot learning (FSL) often fails when the support set provides weak or noisy visual evidence. While prior work shows that semantic guidance can strengthen prototypes, most approaches rely on a single textual description per class, limiting coverage and robustness. We introduce Quartet of Experts (4E), a lightweight, prototype-based method that integrates multi-aspect semantics from four complementary experts: general prior, color, shape, and texture. We further propose a Semantic Builder that automatically produces high-quality, expert-specific semantic descriptions per class. Concretely, each expert produces a FiLM-based (feature-wise linear modulation) proposal of the support embedding and the attention module forms a per-sample consensus that weights each expert's proposal. We add a Semantic Margin Loss (SML) that penalizes semantically similar negatives in the logit space. 4E adds few parameters on top of a frozen backbone and avoids heavy multimodal models. Across standard FSL benchmarks, 4E delivers strong accuracy and, on several datasets, state-of-the-art results showing that compact multi-aspect semantics can outperform substantially more complex pipelines.
Motivation
Metric-based few-shot classifiers build one prototype per class from a handful of support images. Occlusions, unusual viewpoints or background clutter in those few images move the prototype and hurt the whole episode. Text has been used to correct this, but almost always as a single sentence or class name per category.
That single view misses the fact that the cue that separates two classes changes from case to case. Shape and texture separate a dog from a wolf better than a generic description does; in another scene, color may be the deciding cue. 4E starts from the hypothesis that several aspect-specific descriptions cover the space of discriminative cues better than one.
Method
Semantic Builder
An LLM writes four short descriptions per class (general, color, shape, texture), each with an "expert knowledge" focus and a "to avoid" clause so the experts stay complementary. They are encoded with CLIP.
Expert-wise FiLM
Each expert predicts a per-channel scale and shift for every support feature, producing its own modulated version of that feature.
Expert consensus
A softmax over the alignment of each modulated feature with the original one decides, per image, how much each expert contributes.
Semantic Margin Loss
A training-only margin pushes apart classes whose descriptions are similar. It is removed at test time, so evaluation stays standard.
Semantic Builder
Expert-wise FiLM modulation
For a support feature \(v\) and the text embedding \(x_e\) of expert \(e\), a small MLP predicts a scale \(\gamma_e\) and a shift \(\beta_e\). The modulated feature keeps a residual connection to the original:
$$\gamma_e,\ \beta_e = \mathrm{MLP}_e(x_e, v), \qquad \tilde v_e = \mathrm{LN}\big(v + \alpha\,((1+\gamma_e)\odot v + \beta_e)\big).$$Expert consensus
Each expert is scored by how well its proposal stays aligned with the visual evidence, and the proposals are combined with softmax weights:
$$s_e = \tilde v_e^\top v, \qquad a_e = \frac{\exp(s_e)}{\sum_{e'} \exp(s_{e'})}, \qquad \tilde v = \frac{\sum_e a_e \tilde v_e}{\big\|\sum_e a_e \tilde v_e\big\|_2}.$$Class prototypes average the fused support features and are blended with plain visual prototypes through a single scalar \(k\) chosen on validation episodes: \(p_c = \mathrm{norm}(k\,p_c^{\text{raw}} + (1-k)\,p_c^{4E})\). Queries are classified by cosine similarity.
Semantic Margin Loss (training only)
Each class gets a semantic vector \(e_c\) (the mean of its four expert embeddings). Negatives that are semantically close to the true class receive a larger margin on their logits, which makes the model work harder on the confusions that matter:
$$M_{ij} = \alpha_m\, e_i^\top e_j + \beta_m \ (i\neq j), \qquad \tilde y(q,c) = y(q,c) + M_{y_q, c}.$$Only the FiLM heads and the consensus are trained. The vision backbone (ResNet-12 or Swin-T) and the CLIP text encoder stay frozen.
Results
5-way accuracy (%) on miniImageNet and tieredImageNet
| Method | Backbone | mini 1-shot | mini 5-shot | tiered 1-shot | tiered 5-shot |
|---|---|---|---|---|---|
| FewTURE (NeurIPS'22) | Swin-T | 72.40 | 86.38 | 76.32 | 89.96 |
| SP-CLIP (CVPR'23) | Visformer-T | 72.31 | 83.42 | 78.03 | 88.55 |
| SemFew* (CVPR'24) | ResNet-12 | 76.10 | 81.72 | 78.22 | 83.46 |
| SemFew-Trans* (CVPR'24) | Swin-T | 78.15 | 85.88 | 81.38 | 88.74 |
| 4E-Res (ours) | ResNet-12 | 77.02 | 82.44 | 77.56 | 84.34 |
| 4E-Swin (ours) | Swin-T | 78.56 | 86.63 | 80.19 | 89.08 |
5-way accuracy (%) on CIFAR-FS and FC100
| Method | Backbone | CIFAR-FS 1-shot | CIFAR-FS 5-shot | FC100 1-shot | FC100 5-shot |
|---|---|---|---|---|---|
| FewTURE (NeurIPS'22) | Swin-T | 77.76 | 88.90 | 47.68 | 63.81 |
| SP-CLIP (CVPR'23) | Visformer-T | 82.18 | 88.24 | 48.53 | 61.55 |
| SemFew* (CVPR'24) | ResNet-12 | 82.48 | 87.04 | 51.15 | 61.04 |
| SemFew-Trans* (CVPR'24) | Swin-T | 84.04 | 89.11 | 53.49 | 64.97 |
| 4E-Res (ours) | ResNet-12 | 85.89 | 88.54 | 53.73 | 61.35 |
| 4E-Swin (ours) | Swin-T | 86.42 | 89.46 | 54.07 | 64.21 |
* Re-run with the released SemFew code. Full tables with confidence intervals and more baselines are in the paper.
What the ablations show
- Every expert helps, and they complement each other. Each single expert improves over the semantic baseline, the general prior is the strongest alone, and using all four gives the best accuracy (85.89% on CIFAR-FS, 78.87% on miniImageNet, 1-shot, ResNet-12).
- Per-image weighting beats averaging. Going from an unweighted mean of experts to the consensus weights, and then adding SML, improves CIFAR-FS 1-shot from 84.55% to 85.08% to 85.89%.
- The text side matters. CLIP text encoders clearly beat BERT (85.89% vs. 83.01% on CIFAR-FS 1-shot), and concise descriptions from GPT-4o-mini worked better than those from GPT-4o, Qwen2 or BLIP.
Presentation
Presentation slides, ICPR 2026, Lyon. Download the PowerPoint file.
Poster
BibTeX
@inproceedings{rodenas2026quartet,
title = {Quartet of Experts: Multi-Aspect Semantic Guidance for Few-Shot Learning},
author = {R{\'o}denas, Javier and Aguilar, Eduardo and Radeva, Petia},
booktitle = {International Conference on Pattern Recognition (ICPR)},
series = {Lecture Notes in Computer Science},
publisher = {Springer},
pages = {232--247},
year = {2026},
doi = {10.1007/978-3-032-31927-2_16}
}