{"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/dp-nmt-scalable-differentially-private","title":"DP-NMT: Scalable Differentially-Private Machine Translation","arxiv_id":"2311.14465","date":"2023-11-24","proceeding":null,"authors":["Timour Igamberdiev","Doan Nam Long Vu","Felix Künnecke","Zhuo Yu","Jannik Holmer","Ivan Habernal"],"abstract":"Neural machine translation (NMT) is a widely popular text generation task, yet there is a considerable research gap in the development of privacy-preserving NMT models, despite significant data privacy concerns for NMT systems. Differentially private stochastic gradient descent (DP-SGD) is a popular method for training machine learning models with concrete privacy guarantees; however, the implementation specifics of training a model with DP-SGD are not always clarified in existing models, with differing software libraries used and code bases not always being public, leading to reproducibility issues. To tackle this, we introduce DP-NMT, an open-source framework for carrying out research on privacy-preserving NMT with DP-SGD, bringing together numerous models, datasets, and evaluation metrics in one systematic software package. Our goal is to provide a platform for researchers to advance the development of privacy-preserving NMT systems, keeping the specific details of the DP-SGD algorithm transparent and intuitive to implement. We run a set of experiments on datasets from both general and privacy-related domains to demonstrate our framework in use. We make our framework publicly available and welcome feedback from the community.","url_abs":"https://arxiv.org/abs/2311.14465v2","url_pdf":"https://arxiv.org/pdf/2311.14465v2.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":"dp-nmt-scalable-differentially-private","repo_url":"https://github.com/trusthlt/dp-nmt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"machine-translation","task_name":"Machine Translation"},{"task_slug":"nmt","task_name":"NMT"},{"task_slug":"privacy-preserving","task_name":"Privacy Preserving"},{"task_slug":"text-generation","task_name":"Text Generation"},{"task_slug":"translation","task_name":"Translation"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.14465","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.14465"}},"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/trusthlt/dp-nmt","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":4,"ran_violates":1},"by_repo_kind":{"official":{"samples":5,"ran":5,"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":"eced2545684e00aa","entry":"decode_postprocess_text","repo":"trusthlt/dp-nmt","repo_kind":"official","path":"utils.py","file_url":"https://github.com/trusthlt/dp-nmt/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eced2545684e00aa"}},{"code_sha256_prefix":"2d04dae1de533b58","entry":"numpy_collate","repo":"trusthlt/dp-nmt","repo_kind":"official","path":"utils.py","file_url":"https://github.com/trusthlt/dp-nmt/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2d04dae1de533b58"}},{"code_sha256_prefix":"94bee6b69f7ebc31","entry":"sacre_bleu_postprocess_text","repo":"trusthlt/dp-nmt","repo_kind":"official","path":"utils.py","file_url":"https://github.com/trusthlt/dp-nmt/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"94bee6b69f7ebc31"}},{"code_sha256_prefix":"387318c7a376d775","entry":"str2bool","repo":"trusthlt/dp-nmt","repo_kind":"official","path":"settings.py","file_url":"https://github.com/trusthlt/dp-nmt/blob/HEAD/settings.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"387318c7a376d775"}},{"code_sha256_prefix":"1f6e34e8d7e65cec","entry":"wrap_collate_with_empty","repo":"trusthlt/dp-nmt","repo_kind":"official","path":"dataloader.py","file_url":"https://github.com/trusthlt/dp-nmt/blob/HEAD/dataloader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1f6e34e8d7e65cec"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}