{"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/robust-meta-representation-learning-via","title":"Robust Meta-Representation Learning via Global Label Inference and Classification","arxiv_id":"2212.11702","date":"2022-12-22","proceeding":null,"authors":["Ruohan Wang","Isak Falk","Massimiliano Pontil","Carlo Ciliberto"],"abstract":"Few-shot learning (FSL) is a central problem in meta-learning, where learners must efficiently learn from few labeled examples. Within FSL, feature pre-training has recently become an increasingly popular strategy to significantly improve generalization performance. However, the contribution of pre-training is often overlooked and understudied, with limited theoretical understanding of its impact on meta-learning performance. Further, pre-training requires a consistent set of global labels shared across training tasks, which may be unavailable in practice. In this work, we address the above issues by first showing the connection between pre-training and meta-learning. We discuss why pre-training yields more robust meta-representation and connect the theoretical analysis to existing works and empirical results. Secondly, we introduce Meta Label Learning (MeLa), a novel meta-learning algorithm that learns task relations by inferring global labels across tasks. This allows us to exploit pre-training for FSL even when global labels are unavailable or ill-defined. Lastly, we introduce an augmented pre-training procedure that further improves the learned meta-representation. Empirically, MeLa outperforms existing methods across a diverse range of benchmarks, in particular under a more challenging setting where the number of training tasks is limited and labels are task-specific. We also provide extensive ablation study to highlight its key properties.","url_abs":"https://arxiv.org/abs/2212.11702v2","url_pdf":"https://arxiv.org/pdf/2212.11702v2.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":"robust-meta-representation-learning-via","repo_url":"https://github.com/isakfalk/mela","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"},{"task_slug":"meta-learning","task_name":"Meta-Learning"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2212.11702","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2212.11702"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/isakfalk/mela","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":1,"ran_draft_wrong":1,"unverified":10},"by_repo_kind":{"official":{"samples":12,"ran":2,"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":"0928f497e20fb443","entry":"mean","repo":"isakfalk/mela","repo_kind":"official","path":"meta_learner.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/meta_learner.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":2,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0928f497e20fb443"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"isakfalk/mela","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"2d767b957c53695a","entry":"create_LR_object","repo":"isakfalk/mela","repo_kind":"official","path":"biased_logistic.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/biased_logistic.py","link_basis":"harvester_set","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":"2d767b957c53695a"}},{"code_sha256_prefix":"8d67ddb99f4a8418","entry":"embed_mask","repo":"isakfalk/mela","repo_kind":"official","path":"meta_learner.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/meta_learner.py","link_basis":"harvester_set","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":"8d67ddb99f4a8418"}},{"code_sha256_prefix":"d60f4aea00e02742","entry":"loss_and_grad","repo":"isakfalk/mela","repo_kind":"official","path":"biased_logistic.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/biased_logistic.py","link_basis":"harvester_set","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":"d60f4aea00e02742"}},{"code_sha256_prefix":"c5358d7283fb3dd6","entry":"mean_confidence_interval","repo":"isakfalk/mela","repo_kind":"official","path":"eval_util.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/eval_util.py","link_basis":"harvester_set","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":"c5358d7283fb3dd6"}},{"code_sha256_prefix":"77694265ac899228","entry":"normalize","repo":"isakfalk/mela","repo_kind":"official","path":"eval_util.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/eval_util.py","link_basis":"harvester_set","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":"77694265ac899228"}},{"code_sha256_prefix":"b7c8dd5734ffd532","entry":"normalize","repo":"isakfalk/mela","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/models/resnet.py","link_basis":"harvester_set","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":"b7c8dd5734ffd532"}},{"code_sha256_prefix":"db37353f9668a274","entry":"np_normalize","repo":"isakfalk/mela","repo_kind":"official","path":"eval_util.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/eval_util.py","link_basis":"harvester_set","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":"db37353f9668a274"}},{"code_sha256_prefix":"5525f08d433d3a03","entry":"resfc","repo":"isakfalk/mela","repo_kind":"official","path":"models/resfc.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/models/resfc.py","link_basis":"harvester_set","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":"5525f08d433d3a03"}},{"code_sha256_prefix":"8172da2e9953c358","entry":"resnet12","repo":"isakfalk/mela","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/models/resnet.py","link_basis":"harvester_set","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":"8172da2e9953c358"}},{"code_sha256_prefix":"9e371e629b48bfee","entry":"solve_LR","repo":"isakfalk/mela","repo_kind":"official","path":"biased_logistic.py","file_url":"https://github.com/isakfalk/mela/blob/HEAD/biased_logistic.py","link_basis":"harvester_set","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":"9e371e629b48bfee"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}