{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/revisiting-local-descriptor-based-image-to","title":"Revisiting Local Descriptor based Image-to-Class Measure for Few-shot Learning","arxiv_id":"1903.12290","date":"2019-03-28","proceeding":"CVPR 2019 6","authors":["Wenbin Li","Lei Wang","Jinglin Xu","Jing Huo","Yang Gao","Jiebo Luo"],"abstract":"Few-shot learning in image classification aims to learn a classifier to\nclassify images when only few training examples are available for each class.\nRecent work has achieved promising classification performance, where an\nimage-level feature based measure is usually used. In this paper, we argue that\na measure at such a level may not be effective enough in light of the scarcity\nof examples in few-shot learning. Instead, we think a local descriptor based\nimage-to-class measure should be taken, inspired by its surprising success in\nthe heydays of local invariant features. Specifically, building upon the recent\nepisodic training mechanism, we propose a Deep Nearest Neighbor Neural Network\n(DN4 in short) and train it in an end-to-end manner. Its key difference from\nthe literature is the replacement of the image-level feature based measure in\nthe final layer by a local descriptor based image-to-class measure. This\nmeasure is conducted online via a $k$-nearest neighbor search over the deep\nlocal descriptors of convolutional feature maps. The proposed DN4 not only\nlearns the optimal deep local descriptors for the image-to-class measure, but\nalso utilizes the higher efficiency of such a measure in the case of example\nscarcity, thanks to the exchangeability of visual patterns across the images in\nthe same class. Our work leads to a simple, effective, and computationally\nefficient framework for few-shot learning. Experimental study on benchmark\ndatasets consistently shows its superiority over the related state-of-the-art,\nwith the largest absolute improvement of $17\\%$ over the next best. The source\ncode can be available from \\UrlFont{https://github.com/WenbinLee/DN4.git}.","url_abs":"http://arxiv.org/abs/1903.12290v2","url_pdf":"http://arxiv.org/pdf/1903.12290v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"revisiting-local-descriptor-based-image-to","repo_url":"https://github.com/WenbinLee/DN4","is_official":0,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"few-shot-image-classification","task_name":"Few-Shot Image Classification"},{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/few-shot-image-classification-on-cub-200-5-1","task":"Few-Shot Image Classification","dataset":"CUB 200 5-way 1-shot","model":"DN4-DA (k=1)","rank_in_archive_order":35,"of":36,"metrics":{"Accuracy":"53.15"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-cub-200-5","task":"Few-Shot Image Classification","dataset":"CUB 200 5-way 5-shot","model":"DN4-DA (k=1)","rank_in_archive_order":29,"of":32,"metrics":{"Accuracy":"81.9"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-mini-2","task":"Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (1-shot)","model":"DN4 (k=3)","rank_in_archive_order":96,"of":105,"metrics":{"Accuracy":"51.24"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-mini-3","task":"Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (5-shot)","model":"DN4 (k=3)","rank_in_archive_order":80,"of":95,"metrics":{"Accuracy":"71.02"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-stanford-2","task":"Few-Shot Image Classification","dataset":"Stanford Cars 5-way (1-shot)","model":"DN4-DA (k=1)","rank_in_archive_order":3,"of":6,"metrics":{"Accuracy":"61.51"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-stanford-3","task":"Few-Shot Image Classification","dataset":"Stanford Cars 5-way (5-shot)","model":"DN4-DA (k=1)","rank_in_archive_order":3,"of":6,"metrics":{"Accuracy":"89.6"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-stanford","task":"Few-Shot Image Classification","dataset":"Stanford Dogs 5-way (1-shot)","model":"DN4-DA (k=1)","rank_in_archive_order":3,"of":3,"metrics":{"Accuracy":"45.73"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-stanford-1","task":"Few-Shot Image Classification","dataset":"Stanford Dogs 5-way (5-shot)","model":"DN4-DA (k=1)","rank_in_archive_order":3,"of":6,"metrics":{"Accuracy":"66.33"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/1903.12290","atlas_url":"https://app.syntology.ai/?focus=1903.12290","mcp":null,"developers":"https://syntology.ai/developers","held":true,"reason":"arxiv_id_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"agent_calls":[{"tool":"get_citation_path","arguments":{"paper_1":"1903.12290"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"1903.12290\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"1903.12290"},"call":"get_concepts_for_paper(arxiv_id=\"1903.12290\")"}],"by_repo":[{"repo":"WenbinLee/DN4","kind":"named_in_paper","samples":0,"ran":0,"instrument":0,"unverified":0}],"by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":null,"arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"50385d7038485968afb544b0ffb68d9ed7b059eee609ae0f50ae92a309da02bf","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}