{"about":{"site":"https://codewithpapers.app","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.","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"},"url":"/paper/context-aware-meta-learning","title":"Context-Aware Meta-Learning","arxiv_id":"2310.10971","date":"2023-10-17","proceeding":null,"authors":["Christopher Fifty","Dennis Duan","Ronald G. Junkins","Ehsan Amid","Jure Leskovec","Christopher Re","Sebastian Thrun"],"abstract":"Large Language Models like ChatGPT demonstrate a remarkable capacity to learn new concepts during inference without any fine-tuning. However, visual models trained to detect new objects during inference have been unable to replicate this ability, and instead either perform poorly or require meta-training and/or fine-tuning on similar objects. In this work, we propose a meta-learning algorithm that emulates Large Language Models by learning new visual concepts during inference without fine-tuning. Our approach leverages a frozen pre-trained feature extractor, and analogous to in-context learning, recasts visual meta-learning as sequence modeling over datapoints with known labels and a test datapoint with an unknown label. On 8 out of 11 meta-learning benchmarks, our approach -- without meta-training or fine-tuning -- exceeds or matches the state-of-the-art algorithm, P>M>F, which is meta-trained on these benchmarks. Our code is available at https://github.com/cfifty/CAML.","url_abs":"https://arxiv.org/abs/2310.10971v2","url_pdf":"https://arxiv.org/pdf/2310.10971v2.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":"context-aware-meta-learning","repo_url":"https://github.com/cfifty/CAML","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"few-shot-image-classification","task_name":"Few-Shot Image Classification"},{"task_slug":"in-context-learning","task_name":"In-Context Learning"},{"task_slug":"meta-learning","task_name":"Meta-Learning"},{"task_slug":"universal-meta-learning","task_name":"universal meta-learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/few-shot-image-classification-on-cifar-fs-5","task":"Few-Shot Image Classification","dataset":"CIFAR-FS 5-way (1-shot)","model":"CAML [Laion-2b]","rank_in_archive_order":11,"of":38,"metrics":{"Accuracy":"83.3"},"uses_additional_data":true},{"leaderboard":"/sota/few-shot-image-classification-on-cifar-fs-5-1","task":"Few-Shot Image Classification","dataset":"CIFAR-FS 5-way (5-shot)","model":"CAML [Laion-2b]","rank_in_archive_order":1,"of":39,"metrics":{"Accuracy":"93.5"},"uses_additional_data":true},{"leaderboard":"/sota/few-shot-image-classification-on-cub-200-5-1","task":"Few-Shot Image Classification","dataset":"CUB 200 5-way 1-shot","model":"CAML [Laion-2b]","rank_in_archive_order":2,"of":36,"metrics":{"Accuracy":"95.8"},"uses_additional_data":true},{"leaderboard":"/sota/few-shot-image-classification-on-cub-200-5","task":"Few-Shot Image Classification","dataset":"CUB 200 5-way 5-shot","model":"CAML [Laion-2b]","rank_in_archive_order":1,"of":32,"metrics":{"Accuracy":"98.7"},"uses_additional_data":true},{"leaderboard":"/sota/few-shot-image-classification-on-mini-2","task":"Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (1-shot)","model":"CAML [Laion-2b]","rank_in_archive_order":2,"of":105,"metrics":{"Accuracy":"96.2"},"uses_additional_data":true},{"leaderboard":"/sota/few-shot-image-classification-on-mini-3","task":"Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (5-shot)","model":"CAML [Laion-2b]","rank_in_archive_order":2,"of":95,"metrics":{"Accuracy":"98.6"},"uses_additional_data":true},{"leaderboard":"/sota/few-shot-image-classification-on-tiered","task":"Few-Shot Image Classification","dataset":"Tiered ImageNet 5-way (1-shot)","model":"CAML [Laion-2b]","rank_in_archive_order":1,"of":49,"metrics":{"Accuracy":"96.8"},"uses_additional_data":true},{"leaderboard":"/sota/few-shot-image-classification-on-tiered-1","task":"Few-Shot Image Classification","dataset":"Tiered ImageNet 5-way (5-shot)","model":"CAML [Laion-2b]","rank_in_archive_order":1,"of":51,"metrics":{"Accuracy":"98.8"},"uses_additional_data":true}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.10971","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.10971"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/cfifty/CAML","reach":null}],"summary":{"ran":4,"ran_honours":1,"unverified":11},"by_repo_kind":{"official":{"samples":16,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"cd267ef17647aeed","entry":"Encoder","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cd267ef17647aeed"}},{"code_sha256_prefix":"8535c1852720eb4f","entry":"EncoderBlock","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8535c1852720eb4f"}},{"code_sha256_prefix":"b84a0725c820a2b0","entry":"SetEncoderBlock","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b84a0725c820a2b0"}},{"code_sha256_prefix":"eb55a438e50a2e46","entry":"TransformerEncoder","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eb55a438e50a2e46"}},{"code_sha256_prefix":"830737289ffd5884","entry":"get_elmes","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"830737289ffd5884"}},{"code_sha256_prefix":"e7e8fd6df86f5ec3","entry":"CAML","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e7e8fd6df86f5ec3"}},{"code_sha256_prefix":"1a58cef63acb709c","entry":"base_32","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1a58cef63acb709c"}},{"code_sha256_prefix":"3a60030568395b7b","entry":"convnext_32","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3a60030568395b7b"}},{"code_sha256_prefix":"e4950f6c71b41722","entry":"get_encoder","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e4950f6c71b41722"}},{"code_sha256_prefix":"dae200e21d75ed1c","entry":"huge_32","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dae200e21d75ed1c"}},{"code_sha256_prefix":"b62532f1578c6349","entry":"laion_2b","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b62532f1578c6349"}},{"code_sha256_prefix":"4adc2669a82da781","entry":"large_32","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4adc2669a82da781"}},{"code_sha256_prefix":"82a2c08a2ff36ab1","entry":"resnet34","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"82a2c08a2ff36ab1"}},{"code_sha256_prefix":"709e0900c6c9f092","entry":"short_32","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"709e0900c6c9f092"}},{"code_sha256_prefix":"acb6adf58d32e776","entry":"small_32","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"acb6adf58d32e776"}},{"code_sha256_prefix":"23be00ca58b700f4","entry":"tiny_32","repo":"cfifty/CAML","repo_kind":"official","path":"src/models/CAML.py","file_url":"https://github.com/cfifty/CAML/blob/HEAD/src/models/CAML.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"23be00ca58b700f4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}