{"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/crypten-secure-multi-party-computation-meets","title":"CrypTen: Secure Multi-Party Computation Meets Machine Learning","arxiv_id":"2109.00984","date":"2021-09-02","proceeding":"NeurIPS 2021 12","authors":["Brian Knott","Shobha Venkataraman","Awni Hannun","Shubho Sengupta","Mark Ibrahim","Laurens van der Maaten"],"abstract":"Secure multi-party computation (MPC) allows parties to perform computations on data while keeping that data private. This capability has great potential for machine-learning applications: it facilitates training of machine-learning models on private data sets owned by different parties, evaluation of one party's private model using another party's private data, etc. Although a range of studies implement machine-learning models via secure MPC, such implementations are not yet mainstream. Adoption of secure MPC is hampered by the absence of flexible software frameworks that \"speak the language\" of machine-learning researchers and engineers. To foster adoption of secure MPC in machine learning, we present CrypTen: a software framework that exposes popular secure MPC primitives via abstractions that are common in modern machine-learning frameworks, such as tensor computations, automatic differentiation, and modular neural networks. This paper describes the design of CrypTen and measure its performance on state-of-the-art models for text classification, speech recognition, and image classification. Our benchmarks show that CrypTen's GPU support and high-performance communication between (an arbitrary number of) parties allows it to perform efficient private evaluation of modern machine-learning models under a semi-honest threat model. For example, two parties using CrypTen can securely predict phonemes in speech recordings using Wav2Letter faster than real-time. We hope that CrypTen will spur adoption of secure MPC in the machine-learning community.","url_abs":"https://arxiv.org/abs/2109.00984v2","url_pdf":"https://arxiv.org/pdf/2109.00984v2.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":"crypten-secure-multi-party-computation-meets","repo_url":"https://github.com/facebookresearch/CrypTen","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"machine-learning","task_name":"BIG-bench Machine Learning"},{"task_slug":null,"task_name":"GPU"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"speech-recognition","task_name":"Speech Recognition"},{"task_slug":"text-classification","task_name":"Text Classification"},{"task_slug":"image-classification","task_name":"image-classification"},{"task_slug":"speech-recognition-1","task_name":"speech-recognition"},{"task_slug":"text-classification-1","task_name":"text-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2109.00984","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2109.00984"}},"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/facebookresearch/CrypTen","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":7},"by_repo_kind":{"listed":{"samples":7,"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":7,"samples":[{"code_sha256_prefix":"3eb29942e193df62","entry":"chebyshev_series","repo":"facebookresearch/CrypTen","repo_kind":"listed","path":"crypten/common/util.py","file_url":"https://github.com/facebookresearch/CrypTen/blob/HEAD/crypten/common/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"3eb29942e193df62"}},{"code_sha256_prefix":"8d4bd8826da4ae94","entry":"count_wraps","repo":"facebookresearch/CrypTen","repo_kind":"listed","path":"crypten/common/util.py","file_url":"https://github.com/facebookresearch/CrypTen/blob/HEAD/crypten/common/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"8d4bd8826da4ae94"}},{"code_sha256_prefix":"06f034d7d38722a0","entry":"get_grad_fn","repo":"facebookresearch/CrypTen","repo_kind":"listed","path":"crypten/gradients.py","file_url":"https://github.com/facebookresearch/CrypTen/blob/HEAD/crypten/gradients.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"06f034d7d38722a0"}},{"code_sha256_prefix":"29f432b96da99bd3","entry":"get_source_lines_and_file","repo":"facebookresearch/CrypTen","repo_kind":"listed","path":"crypten/common/serial.py","file_url":"https://github.com/facebookresearch/CrypTen/blob/HEAD/crypten/common/serial.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"29f432b96da99bd3"}},{"code_sha256_prefix":"e83dfc104fc25cf5","entry":"nearest_integer_division","repo":"facebookresearch/CrypTen","repo_kind":"listed","path":"crypten/encoder.py","file_url":"https://github.com/facebookresearch/CrypTen/blob/HEAD/crypten/encoder.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"e83dfc104fc25cf5"}},{"code_sha256_prefix":"e3b92b7216ba770e","entry":"register_function","repo":"facebookresearch/CrypTen","repo_kind":"listed","path":"crypten/gradients.py","file_url":"https://github.com/facebookresearch/CrypTen/blob/HEAD/crypten/gradients.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"e3b92b7216ba770e"}},{"code_sha256_prefix":"b99c96107bb92b78","entry":"restricted_loads","repo":"facebookresearch/CrypTen","repo_kind":"listed","path":"crypten/common/serial.py","file_url":"https://github.com/facebookresearch/CrypTen/blob/HEAD/crypten/common/serial.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"b99c96107bb92b78"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}