Javier Ródenas
ICPR 2026

Quartet of Experts: Multi-Aspect Semantic Guidance for Few-Shot Learning

Javier Ródenas1 Eduardo Aguilar2 Petia Radeva1,3
1AIBA, Universitat de Barcelona 2Universidad Católica del Norte 3Institute of Neuroscience, Universitat de Barcelona
Four semantic experts describing the same class from complementary aspects: general, color, shape and texture.
Instead of one generic description per class, 4E consults four experts that each describe a different visual aspect: a general prior, color, shape and texture.
TL;DR. When a few-shot support set gives weak visual evidence, a single text description per class is not enough. 4E asks four textual "experts" (general, color, shape, texture) to modulate each support feature, lets an attention-based consensus decide which expert to trust for each image, and widens margins against semantically similar classes during training. It adds only a small head on top of frozen encoders.

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

4E pipeline: Semantic Builder, text encoder, expert consensus, prototypes and semantic margin.
4E pipeline. A frozen vision encoder \(G\) encodes support and query images. Four textual experts, encoded by a frozen text encoder \(T\), modulate the support features through per-channel FiLM. A similarity-based consensus fuses the expert outputs into class prototypes. The semantic margin \(M\) is applied only during training.
01

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.

02

Expert-wise FiLM

Each expert predicts a per-channel scale and shift for every support feature, producing its own modulated version of that feature.

03

Expert consensus

A softmax over the alignment of each modulated feature with the original one decides, per image, how much each expert contributes.

04

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

Semantic Builder prompts for the general, color, shape and texture experts.
For each class, one prompt per expert produces a description of at most 60 words. The "To Avoid" clause discourages overlap between experts.

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

86.42%
CIFAR-FS 1-shot (new SOTA)
86.63%
miniImageNet 5-shot (new SOTA)
+3.41
pts over SemFew, CIFAR-FS 1-shot (ResNet-12)
54.07%
FC100 1-shot (best)

5-way accuracy (%) on miniImageNet and tieredImageNet

MethodBackbonemini 1-shotmini 5-shottiered 1-shottiered 5-shot
FewTURE (NeurIPS'22)Swin-T72.4086.3876.3289.96
SP-CLIP (CVPR'23)Visformer-T72.3183.4278.0388.55
SemFew* (CVPR'24)ResNet-1276.1081.7278.2283.46
SemFew-Trans* (CVPR'24)Swin-T78.1585.8881.3888.74
4E-Res (ours)ResNet-1277.0282.4477.5684.34
4E-Swin (ours)Swin-T78.5686.6380.1989.08

5-way accuracy (%) on CIFAR-FS and FC100

MethodBackboneCIFAR-FS 1-shotCIFAR-FS 5-shotFC100 1-shotFC100 5-shot
FewTURE (NeurIPS'22)Swin-T77.7688.9047.6863.81
SP-CLIP (CVPR'23)Visformer-T82.1888.2448.5361.55
SemFew* (CVPR'24)ResNet-1282.4887.0451.1561.04
SemFew-Trans* (CVPR'24)Swin-T84.0489.1153.4964.97
4E-Res (ours)ResNet-1285.8988.5453.7361.35
4E-Swin (ours)Swin-T86.4289.4654.0764.21

* Re-run with the released SemFew code. Full tables with confidence intervals and more baselines are in the paper.

What the ablations show

Presentation

Presentation slides, ICPR 2026, Lyon. Download the PowerPoint file.

Poster

ICPR 2026 poster for Quartet of Experts.
Poster presented at ICPR 2026. Click to open the full-resolution PDF.

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}
}