{"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/human-few-shot-learning-of-compositional","title":"Human few-shot learning of compositional instructions","arxiv_id":"1901.04587","date":"2019-01-14","proceeding":null,"authors":["Brenden M. Lake","Tal Linzen","Marco Baroni"],"abstract":"People learn in fast and flexible ways that have not been emulated by machines. Once a person learns a new verb \"dax,\" he or she can effortlessly understand how to \"dax twice,\" \"walk and dax,\" or \"dax vigorously.\" There have been striking recent improvements in machine learning for natural language processing, yet the best algorithms require vast amounts of experience and struggle to generalize new concepts in compositional ways. To better understand these distinctively human abilities, we study the compositional skills of people through language-like instruction learning tasks. Our results show that people can learn and use novel functional concepts from very few examples (few-shot learning), successfully applying familiar functions to novel inputs. People can also compose concepts in complex ways that go beyond the provided demonstrations. Two additional experiments examined the assumptions and inductive biases that people make when solving these tasks, revealing three biases: mutual exclusivity, one-to-one mappings, and iconic concatenation. We discuss the implications for cognitive modeling and the potential for building machines with more human-like language learning capabilities.","url_abs":"https://arxiv.org/abs/1901.04587v2","url_pdf":"https://arxiv.org/pdf/1901.04587v2.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":"human-few-shot-learning-of-compositional","repo_url":"https://github.com/arkilpatel/compositional-generalization-seq2seq","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"human-few-shot-learning-of-compositional","repo_url":"https://github.com/jacobandreas/geca","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=1901.04587","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1901.04587"}},"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/arkilpatel/compositional-generalization-seq2seq","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jacobandreas/geca","reach":null}],"summary":{"ran_fixture":3},"by_repo_kind":{"listed":{"samples":3,"ran":3,"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":3,"samples":[{"code_sha256_prefix":"66fa03e87e55a1f5","entry":"t_replace","repo":"jacobandreas/geca","repo_kind":"listed","path":"data/builder.py","file_url":"https://github.com/jacobandreas/geca/blob/HEAD/data/builder.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"66fa03e87e55a1f5"}},{"code_sha256_prefix":"d51173c4cc7532ce","entry":"t_replace_all","repo":"jacobandreas/geca","repo_kind":"listed","path":"data/builder.py","file_url":"https://github.com/jacobandreas/geca/blob/HEAD/data/builder.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d51173c4cc7532ce"}},{"code_sha256_prefix":"d6b0268448dc0304","entry":"t_subseq","repo":"jacobandreas/geca","repo_kind":"listed","path":"data/builder.py","file_url":"https://github.com/jacobandreas/geca/blob/HEAD/data/builder.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d6b0268448dc0304"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}