{"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/robustness-to-programmable-string","title":"Robustness to Programmable String Transformations via Augmented Abstract Training","arxiv_id":"2002.09579","date":"2020-02-22","proceeding":"ICML 2020 1","authors":["Yuhao Zhang","Aws Albarghouthi","Loris D'Antoni"],"abstract":"Deep neural networks for natural language processing tasks are vulnerable to adversarial input perturbations. In this paper, we present a versatile language for programmatically specifying string transformations -- e.g., insertions, deletions, substitutions, swaps, etc. -- that are relevant to the task at hand. We then present an approach to adversarially training models that are robust to such user-defined string transformations. Our approach combines the advantages of search-based techniques for adversarial training with abstraction-based techniques. Specifically, we show how to decompose a set of user-defined string transformations into two component specifications, one that benefits from search and another from abstraction. We use our technique to train models on the AG and SST2 datasets and show that the resulting models are robust to combinations of user-defined transformations mimicking spelling mistakes and other meaning-preserving transformations.","url_abs":"https://arxiv.org/abs/2002.09579v4","url_pdf":"https://arxiv.org/pdf/2002.09579v4.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":"robustness-to-programmable-string","repo_url":"https://github.com/ForeverZyh/A3T","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2002.09579","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2002.09579"}},"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/ForeverZyh/A3T","reach":null}],"summary":{"ran":4,"ran_draft_wrong":4,"ran_honours":1,"unverified":6},"by_repo_kind":{"official":{"samples":15,"ran":9,"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":"4a8ba3c0a0dbf4f8","entry":"InferModule","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","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":"4a8ba3c0a0dbf4f8"}},{"code_sha256_prefix":"120ad26e7756dc6c","entry":"ListDomain","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","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":"120ad26e7756dc6c"}},{"code_sha256_prefix":"d624c2aa339ece92","entry":"ReduceToZono","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","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":"d624c2aa339ece92"}},{"code_sha256_prefix":"c8434411c069784c","entry":"Zonotope","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","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":"c8434411c069784c"}},{"code_sha256_prefix":"d23a030e4337de7e","entry":"catNonNullErrors","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d23a030e4337de7e"}},{"code_sha256_prefix":"2ffd2a5fcf348d30","entry":"creluBoxy","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2ffd2a5fcf348d30"}},{"code_sha256_prefix":"d61a7573dc44b067","entry":"ifThenElse","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d61a7573dc44b067"}},{"code_sha256_prefix":"eb7dd779a62b7538","entry":"msum","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eb7dd779a62b7538"}},{"code_sha256_prefix":"92e628e2d5712cd5","entry":"product","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"92e628e2d5712cd5"}},{"code_sha256_prefix":"8bb459fbe0df5eeb","entry":"MaxTypes","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.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":"8bb459fbe0df5eeb"}},{"code_sha256_prefix":"91824b771e51d588","entry":"TaggedDomain","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.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":"91824b771e51d588"}},{"code_sha256_prefix":"1b9317ae6adf1d20","entry":"cudify","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.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":"1b9317ae6adf1d20"}},{"code_sha256_prefix":"779dcec4a5be25f9","entry":"getEi","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.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":"779dcec4a5be25f9"}},{"code_sha256_prefix":"bfd82e9e809aad36","entry":"one_hot","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.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":"bfd82e9e809aad36"}},{"code_sha256_prefix":"0a31eb9cb910ab65","entry":"preDomRes","repo":"ForeverZyh/A3T","repo_kind":"official","path":"a3t/diffai/components.py","file_url":"https://github.com/ForeverZyh/A3T/blob/HEAD/a3t/diffai/components.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":"0a31eb9cb910ab65"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}