{"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/subspace-networks-for-few-shot-classification","title":"Regression Networks for Meta-Learning Few-Shot Classification","arxiv_id":"1905.13613","date":"2019-05-31","proceeding":null,"authors":["Arnout Devos","Matthias Grossglauser"],"abstract":"We propose regression networks for the problem of few-shot classification, where a classifier must generalize to new classes not seen in the training set, given only a small number of examples of each class. In high dimensional embedding spaces the direction of data generally contains richer information than magnitude. Next to this, state-of-the-art few-shot metric methods that compare distances with aggregated class representations, have shown superior performance. Combining these two insights, we propose to meta-learn classification of embedded points by regressing the closest approximation in every class subspace while using the regression error as a distance metric. Similarly to recent approaches for few-shot learning, regression networks reflect a simple inductive bias that is beneficial in this limited-data regime and they achieve excellent results, especially when more aggregate class representations can be formed with multiple shots.","url_abs":"https://arxiv.org/abs/1905.13613v2","url_pdf":"https://arxiv.org/pdf/1905.13613v2.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":"subspace-networks-for-few-shot-classification","repo_url":"https://github.com/ArnoutDevos/RegressionNet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"inductive-bias","task_name":"Inductive Bias"},{"task_slug":"meta-learning","task_name":"Meta-Learning"},{"task_slug":"metric-learning","task_name":"Metric Learning"},{"task_slug":"regression-1","task_name":"regression"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1905.13613","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1905.13613"}},"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/ArnoutDevos/RegressionNet","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"ran_draft_wrong":1,"unverified":7},"by_repo_kind":{"official":{"samples":11,"ran":4,"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":"c43e6e5f82ef6a4c","entry":"DBindex","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"methods/baselinetrain.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/methods/baselinetrain.py","link_basis":"plan_row","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":"c43e6e5f82ef6a4c"}},{"code_sha256_prefix":"4dd319c45d372246","entry":"euclidean_dist","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"methods/protonet.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/methods/protonet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4dd319c45d372246"}},{"code_sha256_prefix":"400a8db2fb9b1633","entry":"get_assigned_file","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"io_utils.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/io_utils.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"400a8db2fb9b1633"}},{"code_sha256_prefix":"989c91edb537cd8f","entry":"to_variable","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"methods/r2d2.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/methods/r2d2.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"989c91edb537cd8f"}},{"code_sha256_prefix":"2582452f5ccbebc2","entry":"ResNet10","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"backbone.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/backbone.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":"2582452f5ccbebc2"}},{"code_sha256_prefix":"d58f228480b8a193","entry":"ResNet18","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"backbone.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/backbone.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":"d58f228480b8a193"}},{"code_sha256_prefix":"ff6c4f8a05abb1d3","entry":"ResNet34","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"backbone.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/backbone.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":"ff6c4f8a05abb1d3"}},{"code_sha256_prefix":"f384eef54c9d7670","entry":"euclidean_dist","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"methods/regressionnet.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/methods/regressionnet.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":"f384eef54c9d7670"}},{"code_sha256_prefix":"4bd64c34ba45e089","entry":"get_resume_file","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"io_utils.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/io_utils.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":"4bd64c34ba45e089"}},{"code_sha256_prefix":"73f677f8fc81903f","entry":"make_float_label","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"methods/r2d2.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/methods/r2d2.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":"73f677f8fc81903f"}},{"code_sha256_prefix":"f7e86eb630fa9075","entry":"parse_args","repo":"ArnoutDevos/RegressionNet","repo_kind":"official","path":"io_utils.py","file_url":"https://github.com/ArnoutDevos/RegressionNet/blob/HEAD/io_utils.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":"f7e86eb630fa9075"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}