Papers › Transductive Decoupled Variational Inference for Few-Shot Classification

Transductive Decoupled Variational Inference for Few-Shot Classification

22 Aug 2022arXiv:2208.10559archive 2025-07-28

Anuj Singh, Hadi Jamali-Rad

The versatility to learn from a handful of samples is the hallmark of human intelligence. Few-shot learning is an endeavour to transcend this capability down to machines. Inspired by the promise and power of probabilistic deep learning, we propose a novel variational inference network for few-shot classification (coined as TRIDENT) to decouple the representation of an image into semantic and label latent variables, and simultaneously infer them in an intertwined fashion. To induce task-awareness, as part of the inference mechanics of TRIDENT, we exploit information across both query and support images of a few-shot task using a novel built-in attention-based transductive feature extraction module (we call AttFEX). Our extensive experimental results corroborate the efficacy of TRIDENT and demonstrate that, using the simplest of backbones, it sets a new state-of-the-art in the most commonly adopted datasets miniImageNet and tieredImageNet (offering up to 4% and 5% improvements, respectively), as well as for the recent challenging cross-domain miniImagenet --> CUB scenario offering a significant margin (up to 20% improvement) beyond the best existing cross-domain baselines. Code and experimentation can be found in our GitHub repository: https://github.com/anujinho/trident

PaperPDFCodeCode 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="2208.10559")

Code

Syntology Ran 2 of 8 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it.

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

anujinho/trident officialmentioned in papermentioned on GitHubpytorchMIT 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

8 samples harvested; 2 ran; 0 honoured the contract we drafted; 6 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.

1ran · our draft was wrong
1ran · fixture could not drive it
6unverified

Licence: 0 of the 8 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 anujinho/trident. “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.

accuracy anujinho/trident/src/zoo/trident_utils.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · d41eb4e2f3bebbf1 · report
conv3x3 anujinho/trident/src/zoo/archs.py official repository ran · our draft was wrong MIT (permissive) · dd1114865f06f0fd · report
fc_init_ anujinho/trident/src/zoo/archs.py official repository unverified MIT (permissive) · e4fd98cb709b9877 · report
inner_adapt_maml anujinho/trident/src/zoo/.ipynb_checkpoints/maml_utils-checkpoint.py official repository unverified MIT (permissive) · dda893612717d91c · report
kl_div anujinho/trident/src/zoo/trident_utils.py official repository unverified MIT (permissive) · ad36b715c4f5a533 · report
logits anujinho/trident/src/zoo/.ipynb_checkpoints/matching_nets_utils-checkpoint.py official repository unverified MIT (permissive) · 3ba35d9b7a8cf5f0 · report
logits anujinho/trident/src/zoo/.ipynb_checkpoints/proto_utils-checkpoint.py official repository unverified MIT (permissive) · 59c8a7bdf206417a · report
truncated_normal_ anujinho/trident/src/zoo/archs.py official repository unverified MIT (permissive) · 11a97a6c9d7fbf5d · report

Tasks

ClassificationFew-Shot Image ClassificationFew-Shot LearningProbabilistic Deep LearningVariational Inference

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Image Classification Mini-ImageNet-CUB 5-way (1-shot) TRIDENT Accuracy 84.61 #1 of 12 Archive leaderboard report
Few-Shot Image Classification Mini-ImageNet-CUB 5-way (5-shot) TRIDENT Accuracy 80.74 #1 of 8 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 5-way (1-shot) TRIDENT Accuracy 86.11 #4 of 105 Archive leaderboard report
Few-Shot Image Classification Mini-Imagenet 5-way (5-shot) TRIDENT Accuracy 95.95 #4 of 95 Archive leaderboard report
Few-Shot Image Classification Tiered ImageNet 5-way (1-shot) TRIDENT Accuracy 86.97 #2 of 49 Archive leaderboard report
Few-Shot Image Classification Tiered ImageNet 5-way (5-shot) TRIDENT Accuracy 96.57 #2 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.

Methods

Variational Inference

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