Papers › Universal Few-shot Learning of Dense Prediction Tasks with Visual Token Matching

Universal Few-shot Learning of Dense Prediction Tasks with Visual Token Matching

27 Mar 2023arXiv:2303.14969archive 2025-07-28

Donggyun Kim, Jinwoo Kim, Seongwoong Cho, Chong Luo, Seunghoon Hong

Dense prediction tasks are a fundamental class of problems in computer vision. As supervised methods suffer from high pixel-wise labeling cost, a few-shot learning solution that can learn any dense task from a few labeled images is desired. Yet, current few-shot learning methods target a restricted set of tasks such as semantic segmentation, presumably due to challenges in designing a general and unified model that is able to flexibly and efficiently adapt to arbitrary tasks of unseen semantics. We propose Visual Token Matching (VTM), a universal few-shot learner for arbitrary dense prediction tasks. It employs non-parametric matching on patch-level embedded tokens of images and labels that encapsulates all tasks. Also, VTM flexibly adapts to any task with a tiny amount of task-specific parameters that modulate the matching algorithm. We implement VTM as a powerful hierarchical encoder-decoder architecture involving ViT backbones where token matching is performed at multiple feature hierarchies. We experiment VTM on a challenging variant of Taskonomy dataset and observe that it robustly few-shot learns various unseen dense prediction tasks. Surprisingly, it is competitive with fully supervised baselines using only 10 labeled examples of novel tasks (0.004% of full supervision) and sometimes outperforms using 0.1% of full supervision. Codes are available at https://github.com/GitGyun/visual_token_matching.

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="2303.14969")

Code

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

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

gitgyun/visual_token_matching officialmentioned in paperpytorchMIT 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

12 samples harvested; 3 ran; 0 honoured the contract we drafted; 9 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.

3ran
9unverified

Licence: 0 of the 12 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 gitgyun/visual_token_matching. “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.

linear_sample gitgyun/visual_token_matching/dataset/augmentation.py official repository ran fingerprinted MIT (permissive) · 02a0579731cda8c1 · report
log_sample gitgyun/visual_token_matching/dataset/augmentation.py official repository ran fingerprinted MIT (permissive) · 98a7bede28cc1c47 · report
normalize gitgyun/visual_token_matching/dataset/augmentation.py official repository ran fingerprinted MIT (permissive) · f1aba098ff5cbc05 · report
create_label_backbone gitgyun/visual_token_matching/model/model_factory.py official repository unverified MIT (permissive) · b52cdf4b0a27435f · report
forward_6d_as_4d gitgyun/visual_token_matching/model/reshape.py official repository unverified MIT (permissive) · 7fcd0270b2c5d231 · report
get_eval_loader gitgyun/visual_token_matching/dataset/dataloader_factory.py official repository unverified MIT (permissive) · 7ca5be9c02fa2823 · report
get_reshaper gitgyun/visual_token_matching/model/reshape.py official repository unverified MIT (permissive) · 48da6c70a0c5a1f0 · report
get_train_loader gitgyun/visual_token_matching/dataset/dataloader_factory.py official repository unverified MIT (permissive) · a11b29bac73f5967 · report
get_validation_loaders gitgyun/visual_token_matching/dataset/dataloader_factory.py official repository unverified MIT (permissive) · 7ece316758a7a07d · report
parse_BTN gitgyun/visual_token_matching/model/reshape.py official repository unverified MIT (permissive) · ad4fc7ecfc06e15f · report
resize gitgyun/visual_token_matching/dataset/resize_buildings.py official repository unverified MIT (permissive) · 8a5e2f2172266d78 · report
str2bool gitgyun/visual_token_matching/args.py official repository unverified MIT (permissive) · 0d5ccf3e418960d3 · report

Tasks

DecoderFew-Shot LearningSemantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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