{"id":8936,"date":"2024-05-02T14:01:01","date_gmt":"2024-05-02T06:01:01","guid":{"rendered":""},"modified":"2024-05-02T14:01:01","modified_gmt":"2024-05-02T06:01:01","slug":"\u57fa\u4e8eTensorFlow Encrypted (TFE)\u7684\u9690\u79c1\u8ba1\u7b97benchmark","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8936.html","title":{"rendered":"\u57fa\u4e8eTensorFlow Encrypted (TFE)\u7684\u9690\u79c1\u8ba1\u7b97benchmark"},"content":{"rendered":"

\u76ee\u524d\u4e1a\u754c\u5e38\u63d0\u5230\u7684\u201c\u9690\u79c1\u8ba1\u7b97\u201d\uff0c\u5176\u5b9e\u662f\u201c\u9690\u79c1\u4fdd\u62a4\u8ba1\u7b97\u201d\uff0c\u5373\u5b89\u5168\u591a\u65b9\u8ba1\u7b97\uff08MPC\uff09\u3001\u540c\u6001\u52a0\u5bc6\u3001\u8054\u90a6\u5b66\u4e60\u3001\u53ef\u4fe1\u6267\u884c\u73af\u5883\u7b49\u4e00\u7cfb\u5217\u6280\u672f\u7684\u7edf\u79f0\u3002\u548c\u4f20\u7edf\u7684\u52a0\u5bc6\u3001\u8131\u654f\u7b49\u9759\u6001\u6570\u636e\u4fdd\u62a4\u65b9\u6848\u4e0d\u540c\uff0c\u9690\u79c1\u8ba1\u7b97\u6280\u672f\u53ef\u4ee5\u5b9e\u73b0\u6570\u636e\u4f7f\u7528\u4e2d\u7684\u52a8\u6001\u4fdd\u62a4\uff0c\u5b9e\u73b0\u201c\u6570\u636e\u53ef\u7528\u4e0d\u53ef\u89c1\u201d\uff0c\u7ed9\u6570\u636e\u8981\u7d20\u7684\u5b89\u5168\u6d41\u901a\u5e26\u6765\u4e86\u4f17\u591a\u60f3\u8c61\u4e0e\u53ef\u80fd\uff0c\u56e0\u6b64\u4e5f\u83b7\u5f97\u4e86\u4ea7\u4e1a\u754c\u548c\u8d44\u672c\u7684\u683c\u5916\u9752\u7750\u3002<\/p>\n<\/p>\n

\u76f8\u6bd4\u76f4\u63a5\u5728\u539f\u59cb\u6570\u636e\u4e0a\u8ba1\u7b97\uff0c\u9690\u79c1\u8ba1\u7b97\u9700\u8981\u5f15\u5165\u989d\u5916\u7684\u8ba1\u7b97\u548c\u901a\u4fe1\u4ee3\u4ef7\uff0c\u56e0\u6b64\u5176\u8fd0\u884c\u6548\u7387\u53d7\u5230\u5ba2\u6237\u91cd\u70b9\u5173\u6ce8\u3002\u4f46\u662f\u76ee\u524d\u4e1a\u754c\u5bf9\u9690\u79c1\u8ba1\u7b97\u6548\u7387\u7684\u8bc4\u4f30\uff0c\u5f80\u5f80\u7b80\u5355\u7684\u63cf\u8ff0\u6210\u201c\u6bd4\u660e\u6587\u6162XX\u500d\u201d\uff0c\u5404\u4e2a\u5382\u5546\u7684\u6587\u6848\u4e2d\uff0c\u6162\u5343\u500d\u8005\u6709\u4e4b\uff0c\u6162\u5341\u500d\u8005\u4e5f\u6709\u4e4b\uff0c\u516b\u4ed9\u8fc7\u6d77\uff0c\u5ba2\u6237\u4e5f\u7ecf\u5e38\u8499\u5708\u4e0d\u77e5\u9053\u5982\u4f55\u6bd4\u8f83\uff0c\u751a\u81f3\u8fde\u56fd\u5185\u8f83\u6743\u5a01\u7684\u9690\u79c1\u8ba1\u7b97\u6027\u80fd\u6d4b\u8bc4\u90fd\u5f88\u96be\u63cf\u8ff0\u6e05\u695a\u3002<\/p>\n<\/p>\n

\u8be6\u7ec6\u9690\u79c1\u8ba1\u7b97\u6027\u80fd\u8bc4\u6d4b\u6587\u7ae0\u53c2\u89c1\uff1a<\/p>\n

https:\/\/openmpc.com\/article\/182<\/p>\n<\/p>\n

\u5b9e\u9645\u4e0a\uff0c\u9690\u79c1\u8ba1\u7b97\u7684\u6027\u80fd\u7a76\u7adf\u6bd4\u660e\u6587\u6162\u591a\u5c11\u500d\uff0c\u8fd9\u662f\u548c\u591a\u79cd\u56e0\u7d20\u6709\u5173\u7684\uff0c\u4f8b\u5982\u5bf9\u4e8e\u540c\u4e00\u4e2a\u9700\u6c42\u573a\u666f\uff0c\u6709\u4e25\u8c28\u5b89\u5168\u6a21\u578b\u7684\u65b9\u6848\uff0c\u80af\u5b9a\u6bd4\u65e0\u4e25\u8c28\u5b89\u5168\u6a21\u578b\u7684\u65b9\u6848\u8981\u6162\uff1b\u540c\u4e00\u4e2a\u65b9\u6848\uff0c\u4f4e\u5e26\u5bbd\u4e0b\u80af\u5b9a\u6bd4\u9ad8\u5e26\u5bbd\u6162\uff1b\u5fc5\u987b\u8bf4\u6e05\u695a\u573a\u666f\u548c\u5b89\u5168\u6027\uff0c\u6bd4\u8f83\u201c\u6bd4\u660e\u6587\u6162XX\u500d\u201d\u624d\u6709\u610f\u4e49\u3002<\/p>\n<\/p>\n

\u4e3a\u4e86\u5398\u6e05\u8fd9\u4e9b\u95ee\u9898\uff0c\u7ed9\u7528\u6237\u4e00\u4e2a\u5173\u4e8e\u9690\u79c1\u8ba1\u7b97\u6548\u7387\u65b9\u9762\u660e\u786e\u7684\u8ba4\u8bc6\uff0c\u6211\u4eec\u5236\u4f5c\u4e86\u4e00\u4e2a\u9690\u79c1\u8ba1\u7b97benchmark\uff0c\u8bbe\u7f6e\u4e86\u6bd4\u8f83\u3001\u6392\u5e8f\u3001LR\u3001NN\u7b49\u591a\u79cd\u8ba1\u7b97\uff0c\u5206\u4e3a\u5c40\u57df\u7f51\u9ad8\u5e26\u5bbd\u3001\u5e7f\u57df\u7f51\u4f4e\u5e26\u5bbd\u4e24\u79cd\u4e0d\u540c\u7684\u7f51\u7edc\u73af\u5883\uff0c\u5e76\u5728\u4e25\u8c28\u7684MPC\u5b89\u5168\u6a21\u578b\u4e0b\u7ed9\u51fa\u4e86\u8fd9\u4e9b\u573a\u666f\u4e0b\u5bf9\u5e94\u7684\u6027\u80fd\u6570\u636e\u548c\u4ee3\u7801\u5b9e\u73b0\u4f5c\u4e3a\u53c2\u8003\u3002<\/p>\n<\/p>\n

\u9690\u79c1\u8ba1\u7b97benchmark\u5730\u5740\u5982\u4e0b\uff1a<\/p>\n

https:\/\/github.com\/tf-encrypted\/tf-encrypted\/tree\/master\/examples\/benchmark<\/p>\n<\/p>\n

TF-Encrypted\uff08TFE\uff09\u7b80\u4ecb<\/strong><\/p>\n

\u8fd9\u4e2abenchmark\u57fa\u4e8e TFE \u6846\u67b6\u6765\u5b9e\u73b0\uff0c\u8fd9\u91cc\u5bf9\u8be5\u6846\u67b6\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u4ecb\u7ecd\u3002TFE \u662f\u5728 TensorFlow \u4e0a\u6784\u5efa\u7684\u9690\u79c1\u8ba1\u7b97\u6846\u67b6\uff0c\u5145\u5206\u5229\u7528\u4e86 TF \u4e2d\u5df2\u6709\u7684\u56fe\u8ba1\u7b97\u4f18\u5316\u3001\u7f51\u7edc\u901a\u4fe1\u548c\u4f18\u5316\u7b49\u7279\u70b9\uff0c\u8ba9\u5f00\u53d1\u8005\u4ec5\u9700\u5173\u6ce8\u9690\u79c1\u8ba1\u7b97\u534f\u8bae\u7684\u529f\u80fd\u5c42\u548c\u5e94\u7528\u5c42\uff0c\u662f\u6700\u65e9\u51fa\u73b0\u7684\u4e00\u6279\u652f\u6301\u5b89\u5168\u591a\u65b9\u8ba1\u7b97+\u673a\u5668\u5b66\u4e60\u7684\u9690\u79c1\u8ba1\u7b97\u6846\u67b6\u4e4b\u4e00\uff0c\u5176\u5f00\u6e90\u5b9e\u73b0\u4e5f\u5f71\u54cd\u4e86\u540e\u7eed\u5174\u8d77\u7684\u591a\u4e2a\u76f8\u5173\u6846\u67b6\u3002TFE\u7684\u521b\u59cb\u6210\u5458\u6765\u81eaCape Privacy\uff0c\u4f46\u76ee\u524d\u4e3b\u529b\u7ef4\u62a4\u5de5\u4f5c\u4e3b\u8981\u7531\u963f\u91cc\u5df4\u5df4\u5b89\u5168\u90e8\u53cc\u5b50\u5ea7\u5b9e\u9a8c\u5ba4 \u627f\u62c5\u3002\u6b22\u8fce\u5404\u4f4d\u5f00\u53d1\u8005\u548c\u76f8\u5173\u7814\u7a76\u4eba\u5458\u52a0\u5165\u4e00\u8d77\u5f00\u6e90\u8d21\u732e\uff0c\u6709\u95ee\u9898\u53ef\u4ee5\u54a8\u8be2\u963f\u91cc\u5df4\u5df4\u53cc\u5b50\u5ea7\u5b9e\u9a8c\u5ba4 \u3002<\/p>\n<\/p>\n

\u963f\u91cc\u5df4\u5df4\u53cc\u5b50\u5ea7\u5b9e\u9a8c\u5ba4\u5b98\u7f51\uff1a<\/p>\n

https:\/\/alibaba-gemini-lab.github.io\/<\/p>\n<\/p>\n

TFE \u76ee\u524d\u652f\u6301\u57fa\u4e8e secret sharing\uff08\u79d8\u5bc6\u5206\u4eab\uff09\u6280\u672f\u7684\u591a\u4e2aMPC\u534f\u8bae\uff0c\u5305\u62ec server-aided Pond\u3001server-aided SecureNN\u3001replicated secret sharing\uff08RSS\uff09\u7b49\u3002\u8fd9\u4e9b\u534f\u8bae\u5747\u662fsemi-honest\u3001honest majority\u7684\u5b89\u5168\u4e09\u65b9\u8ba1\u7b97\u534f\u8bae\uff0c\u6211\u4eec\u7684\u7b2c\u4e00\u7248benchmark\u76ee\u524d\u4e5f\u96c6\u4e2d\u8ba8\u8bba\u8fd9\u7c7b\u5b89\u5168\u4e09\u65b9\u8ba1\u7b97\u7684\u6027\u80fd\u3002<\/p>\n<\/p>\n

Replicated Secret Sharing (RSS) \u7b80\u4ecb<\/strong><\/p>\n

\u8bba\u6587 ABY3 \u63d0\u51fa\u4e86\u4e00\u79cd\u57fa\u4e8e RSS \u7684\u4e09\u65b9\u8ba1\u7b97\u6846\u67b6\uff0c\u53ef\u4ee5\u5b89\u5168\u5730\u5b9e\u73b0\u673a\u5668\u5b66\u4e60\u7b49\u5e94\u7528\u4e2d\u6d89\u53ca\u7684\u5927\u90e8\u5206\u8ba1\u7b97\u64cd\u4f5c\u3002<\/p>\n<\/p>\n

\u5728RSS\u4e2d\uff0c\u4e00\u4e2a\u539f\u59cb\u6570\u503c  \u4f1a\u88ab\u62c6\u5206\u6210\u4e0b\u5217\u8868\u793a\u5f62\u5f0f\uff1a<\/p>\n

\u4e14  (\u9700\u8981<\/p>\n","protected":false},"excerpt":{"rendered":"\u57fa\u4e8eTensorFlow Encrypted (TFE)\u7684\u9690\u79c1\u8ba1\u7b97benchmarkTFE\u662f\u5728TensorFlow\u4e0a\u6784\u5efa\u7684\u9690\u79c1\u8ba1\u7b97\u6846\u67b6\uff0c\u5145\u5206\u5229\u7528\u4e86TF\u4e2d\u5df2\u6709\u7684\u56fe\u8ba1\u7b97\u4f18...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8936"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8936"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8936\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}