{"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/epida-an-easy-plug-in-data-augmentation","title":"EPiDA: An Easy Plug-in Data Augmentation Framework for High Performance Text Classification","arxiv_id":"2204.11205","date":"2022-04-24","proceeding":"NAACL 2022 7","authors":["Minyi Zhao","Lu Zhang","Yi Xu","Jiandong Ding","Jihong Guan","Shuigeng Zhou"],"abstract":"Recent works have empirically shown the effectiveness of data augmentation (DA) in NLP tasks, especially for those suffering from data scarcity. Intuitively, given the size of generated data, their diversity and quality are crucial to the performance of targeted tasks. However, to the best of our knowledge, most existing methods consider only either the diversity or the quality of augmented data, thus cannot fully mine the potential of DA for NLP. In this paper, we present an easy and plug-in data augmentation framework EPiDA to support effective text classification. EPiDA employs two mechanisms: relative entropy maximization (REM) and conditional entropy minimization (CEM) to control data generation, where REM is designed to enhance the diversity of augmented data while CEM is exploited to ensure their semantic consistency. EPiDA can support efficient and continuous data generation for effective classifier training. Extensive experiments show that EPiDA outperforms existing SOTA methods in most cases, though not using any agent networks or pre-trained generation networks, and it works well with various DA algorithms and classification models. Code is available at https://github.com/zhaominyiz/EPiDA.","url_abs":"https://arxiv.org/abs/2204.11205v1","url_pdf":"https://arxiv.org/pdf/2204.11205v1.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":"epida-an-easy-plug-in-data-augmentation","repo_url":"https://github.com/zhaominyiz/epida","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"text-classification","task_name":"Text Classification"},{"task_slug":"text-classification-1","task_name":"text-classification"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"dqn","method_name":"DQN"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"q-learning","method_name":"Q-Learning"},{"method_slug":"rem","method_name":"REM"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.11205","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.11205"}},"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/zhaominyiz/EPiDA","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":6},"by_repo_kind":{"official":{"samples":6,"ran":0,"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":"2ebd35ce58fdc414","entry":"get_only_chars","repo":"zhaominyiz/EPiDA","repo_kind":"official","path":"eda.py","file_url":"https://github.com/zhaominyiz/EPiDA/blob/HEAD/eda.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2ebd35ce58fdc414"}},{"code_sha256_prefix":"317446c69f198e49","entry":"get_only_chars","repo":"zhaominyiz/EPiDA","repo_kind":"official","path":"nlp_aug.py","file_url":"https://github.com/zhaominyiz/EPiDA/blob/HEAD/nlp_aug.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"317446c69f198e49"}},{"code_sha256_prefix":"461078e5a822e755","entry":"get_synonyms","repo":"zhaominyiz/EPiDA","repo_kind":"official","path":"eda.py","file_url":"https://github.com/zhaominyiz/EPiDA/blob/HEAD/eda.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"461078e5a822e755"}},{"code_sha256_prefix":"8df75b97b2ebb4b3","entry":"move_to_device","repo":"zhaominyiz/EPiDA","repo_kind":"official","path":"train_irony_epida_eda.py","file_url":"https://github.com/zhaominyiz/EPiDA/blob/HEAD/train_irony_epida_eda.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8df75b97b2ebb4b3"}},{"code_sha256_prefix":"d6b2ee8d2d614e51","entry":"reduce_loss_dict","repo":"zhaominyiz/EPiDA","repo_kind":"official","path":"train_irony_epida_eda.py","file_url":"https://github.com/zhaominyiz/EPiDA/blob/HEAD/train_irony_epida_eda.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d6b2ee8d2d614e51"}},{"code_sha256_prefix":"56366bd6ff30a29a","entry":"synonym_replacement","repo":"zhaominyiz/EPiDA","repo_kind":"official","path":"nlp_aug.py","file_url":"https://github.com/zhaominyiz/EPiDA/blob/HEAD/nlp_aug.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"56366bd6ff30a29a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}