Papers › Relational Embedding for Few-Shot Classification

Relational Embedding for Few-Shot Classification

22 Aug 2021ICCV 2021 10arXiv:2108.09666archive 2025-07-28

Dahyun Kang, Heeseung Kwon, Juhong Min, Minsu Cho

We propose to address the problem of few-shot classification by meta-learning "what to observe" and "where to attend" in a relational perspective. Our method leverages relational patterns within and between images via self-correlational representation (SCR) and cross-correlational attention (CCA). Within each image, the SCR module transforms a base feature map into a self-correlation tensor and learns to extract structural patterns from the tensor. Between the images, the CCA module computes cross-correlation between two image representations and learns to produce co-attention between them. Our Relational Embedding Network (RENet) combines the two relational modules to learn relational embedding in an end-to-end manner. In experimental evaluation, it achieves consistent improvements over state-of-the-art methods on four widely used few-shot classification benchmarks of miniImageNet, tieredImageNet, CUB-200-2011, and CIFAR-FS.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2108.09666")

Code

Syntology Ran 11 of 13 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

dahyun-kang/renet officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 11 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11ran
2unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from dahyun-kang/renet. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BasicBlock dahyun-kang/renet/models/renet.py official repository ran MIT (permissive) · 787b6dd2a9e7fd5f · report
CCA dahyun-kang/renet/models/renet.py official repository ran MIT (permissive) · 8dfb4696654ccd80 · report
LocalSelfAttention dahyun-kang/renet/models/renet.py official repository ran fingerprinted MIT (permissive) · 1afd66dd6f430733 · report
NonLocalSelfAttention dahyun-kang/renet/models/renet.py official repository ran fingerprinted MIT (permissive) · 59712e06ae5ef67a · report
ResNet dahyun-kang/renet/models/renet.py official repository ran MIT (permissive) · a10a7a52f9a716c5 · report
SCR dahyun-kang/renet/models/renet.py official repository ran MIT (permissive) · 7a4dc6352af900be · report
SelfCorrelationComputation dahyun-kang/renet/models/renet.py official repository ran fingerprinted MIT (permissive) · 940f7fc92d43bd6b · report
SepConv4d dahyun-kang/renet/models/renet.py official repository ran MIT (permissive) · 1918416e245ad9ec · report
SpatialContextEncoder dahyun-kang/renet/models/renet.py official repository ran MIT (permissive) · b7d9b901d831391d · report
SqueezeExcitation dahyun-kang/renet/models/renet.py official repository ran MIT (permissive) · 69a6ee2a7d2fa7d0 · report
_NonLocalBlockND dahyun-kang/renet/models/renet.py official repository ran fingerprinted MIT (permissive) · bc50a9e63a0a4bac · report
RENet dahyun-kang/renet/models/renet.py official repository unverified MIT (permissive) · 308987ecf3cefaf5 · report
generate_spatial_descriptor dahyun-kang/renet/models/renet.py official repository unverified MIT (permissive) · 3bff9928c8e6cb97 · report

Tasks

ClassificationFew-Shot Image ClassificationMeta-Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Image Classification CIFAR-FS 5-way (1-shot) RENet Accuracy 74.51 #28 of 38 Archive leaderboard report
Few-Shot Image Classification CIFAR-FS 5-way (5-shot) RENet Accuracy 86.60 #28 of 39 Archive leaderboard report
Few-Shot Image Classification CUB 200 5-way 1-shot RENet Accuracy 79.49 #20 of 36 Archive leaderboard report
Few-Shot Image Classification CUB 200 5-way 5-shot RENet Accuracy 91.11 #17 of 32 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 5-way (1-shot) RENet Accuracy 67.60 #44 of 105 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 5-way (5-shot) RENet Accuracy 82.58 #39 of 95 Archive leaderboard report
Few-Shot Image Classification Tiered ImageNet 5-way (1-shot) RENet Accuracy 71.61 #28 of 49 Archive leaderboard report
Few-Shot Image Classification Tiered ImageNet 5-way (5-shot) RENet Accuracy 85.28 #32 of 51 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections