{"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/factmix-using-a-few-labeled-in-domain","title":"FactMix: Using a Few Labeled In-domain Examples to Generalize to Cross-domain Named Entity Recognition","arxiv_id":"2208.11464","date":"2022-08-24","proceeding":"COLING 2022 10","authors":["Linyi Yang","Lifan Yuan","Leyang Cui","Wenyang Gao","Yue Zhang"],"abstract":"Few-shot Named Entity Recognition (NER) is imperative for entity tagging in limited resource domains and thus received proper attention in recent years. Existing approaches for few-shot NER are evaluated mainly under in-domain settings. In contrast, little is known about how these inherently faithful models perform in cross-domain NER using a few labeled in-domain examples. This paper proposes a two-step rationale-centric data augmentation method to improve the model's generalization ability. Results on several datasets show that our model-agnostic method significantly improves the performance of cross-domain NER tasks compared to previous state-of-the-art methods, including the data augmentation and prompt-tuning methods. Our codes are available at https://github.com/lifan-yuan/FactMix.","url_abs":"https://arxiv.org/abs/2208.11464v3","url_pdf":"https://arxiv.org/pdf/2208.11464v3.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":"factmix-using-a-few-labeled-in-domain","repo_url":"https://github.com/lifan-yuan/factmix","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"cross-domain-named-entity-recognition","task_name":"Cross-Domain Named Entity Recognition"},{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"few-shot-ner","task_name":"Few-shot NER"},{"task_slug":"named-entity-recognition-1","task_name":"Named Entity Recognition"},{"task_slug":"named-entity-recognition-ner","task_name":"Named Entity Recognition (NER)"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2208.11464","atlas_url":"https://app.syntology.ai/?focus=2208.11464","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2208.11464"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/lifan-yuan/factmix","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3},"by_repo_kind":{"official":{"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":0,"samples":[{"code_sha256_prefix":"8d44e37e16020525","entry":"collate_fn","repo":"lifan-yuan/factmix","repo_kind":"official","path":"process_data.py","file_url":"https://github.com/lifan-yuan/factmix/blob/HEAD/process_data.py","link_basis":"harvester_set","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":"8d44e37e16020525"}},{"code_sha256_prefix":"4c0941ef29ca8ed3","entry":"read_data","repo":"lifan-yuan/factmix","repo_kind":"official","path":"process_data.py","file_url":"https://github.com/lifan-yuan/factmix/blob/HEAD/process_data.py","link_basis":"harvester_set","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":"4c0941ef29ca8ed3"}},{"code_sha256_prefix":"d57e1fc9b24d799e","entry":"sampling","repo":"lifan-yuan/factmix","repo_kind":"official","path":"process_data.py","file_url":"https://github.com/lifan-yuan/factmix/blob/HEAD/process_data.py","link_basis":"harvester_set","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":"d57e1fc9b24d799e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}