Shift by Analogy for Compositional Zero-Shot Learning
Organizations: School of Artificial Intelligence, Beihang University, Beijing, China
Abstract
Compositional zero-shot learning recognizes attribute-object pairs absent from training. An unseen pair has a semantic description but lacks an observed visual reference. We propose Shift by Analogy (SBA) to make unseen compositions visually seen through a shift-then-match process. Its core add-subtract-add rule transfers an attribute change between two seen image-text residuals on a source object to a reference residual on the target object. This shifts the target's own text feature toward its visual center; learned refinement produces a proxy for matching query images. During training, each target is excluded from its supports, and recognition is learned using references constructed from other pairs. An analogy library and same-object attention extend this construction across candidates, while joint learning integrates proxy matching with semantic and primitive evidence. Visual-center analysis confirms substantially improved correspondence for unseen compositions. Experiments across three standard benchmarks show that SBA consistently outperforms strong CZSL baselines under both closed- and open-world evaluation.
Figures & tables
| C-GQA | MIT-States | UT-Zappos | |||||||||||
| Method | Venue | S | U | HM | AUC | S | U | HM | AUC | S | U | HM | AUC |
| Closed-world results | |||||||||||||
| CLIP [ 22 ] | ICML 2021 | 7.5 | 25.0 | 8.6 | 1.4 | 30.2 | 46.0 | 26.1 | 11.0 | 15.8 | 49.1 | 15.6 | 5.0 |
| CSP [ 19 ] | ICLR 2023 | 28.8 | 26.8 | 20.5 | 6.2 | 46.6 | 49.9 | 36.3 | 19.4 | 64.2 | 66.2 | 46.6 | 33.0 |
| DFSP [ 14 ] | CVPR 2023 | 38.2 | 32.0 | 27.1 | 10.5 | 46.9 | 52.0 | 37.3 | 20.6 | 66.7 | 71.7 | 47.2 | 36.0 |
| DLM [ 7 ] | AAAI 2024 | 32.4 | 28.5 | 21.9 | 7.3 | 46.3 | 49.8 | 37.4 | 20.0 | 67.1 | 72.5 | 52.0 | 39.6 |
| Configuration | HM | AUC | AUC |
|---|---|---|---|
| w/o cross-object | 40.9 | 24.2 | -0.1 |
| w/o same-object | 40.8 | 23.9 | -0.4 |
| Uniform gate | 41.1 | 24.2 | -0.1 |
| w/o primitive loss | 40.7 | 23.9 | -0.4 |
| w/o residual input | 40.9 | 24.2 | 0.0 |
| SBA | 40.9 | 24.3 | — |
| All images | Unseen images | |||
|---|---|---|---|---|
| Model | Attr. | Obj. | Attr. | Obj. |
| w/o primitive loss | 17.7 | 28.1 | 17.1 | 27.1 |
| SBA | 31.1 | 50.6 | 27.1 | 47.6 |
| Dataset | Parameters | SBA (ms) | Encoder (ms) |
|---|---|---|---|
| C-GQA | 6.2M | 12.0 | — |
| MIT-States | 5.7M | 11.8 | 11.7 |
| UT-Zappos | 5.4M | 11.7 | 11.6 |
Zero-Shot Learning
Zero-shot learning lets models recognize classes or solve tasks absent from task-specific training examples by using semantic descriptions or pretrained knowledge.
See all 200 papers