计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260200060-1063.doi: 10.11896/jsjkx.260200060
齐梓彤, 张登科, 于卓函, 易秀双
QI Zitong, ZHANG Dengke, YU Zhuohan, YI Xiushuang
摘要: 随着大模型在医疗、金融、军事等高敏感行业的广泛应用,安全推理成为数据模型隐私保护领域的重要研究方向。安全推理旨在解决隐私保护与模型性能损失之间的矛盾,现有聚焦于非线性层的研究存在高耗时问题。针对该问题,已有的研究大多采用友好近似非线性函数来缩短安全推理时间,却未考虑特定分布数据集下的性能鲁棒性较差的问题。针对这一挑战,提出了基于实时分布感知的非线性层动态安全推理。该方法实现了一种面向分布变化的非线性层动态安全推理,设计了新型隐私保护技术框架,该框架引入实时分布感知处理,并进行了极端值优化。方法验证表明,NLR-BDA的数值计算结果与明文计算表现几乎一致。在基准模型上的实验数据进一步证实,在可控开销的约束下,较当前主流方法,该方法将性能衰减程度进一步降低了1.05~1.10倍,显著增强了模型在复杂数据环境下的稳健性。方法验证和实验结果表明,NLR-BDA在保障隐私安全的同时,在性能保持方面优于现有的主流方法。
中图分类号:
| [1] ZHANG L,WANG S,YUANF,et al.Lifelong language learning with adaptive uncertainty regularization[J].Information Sciences,2023,622:794-807. [2] DOSOVITSKIY A,BEYER L,KOLESNIKOV A,et al.Animage is worth 16x16 words:Transformers for image recognition at scale[J].arXiv:2010.11929,2020. [3] CHEN P,LI Q,ZHANG D Z,et al.Review of multimodal lear-ning methods [J].Chinese Journal of Engineering,2020,42(5):557-569. [4] PROSERPIO D,GOLDBERG S,MCSHERRY F.Calibratingdata to sensitivity in private data analysis[J].arXiv:1203.3453,2012. [5] RIVEST R L,ADLEMAN L,DERTOUZOSM L.On data banks and privacy homomorphisms[J].Foundations of Secure Computation,1978,4(11):169-180. [6] BRAKERSKI Z,GENTRY C,VAIKUNTANATHAN V.(Le-veled)fully homomorphic encryption without bootstrapping[J].ACM Transactions on Computation Theory,2014,6(3):1-36. [7] BRAKERSKI Z,VAIKUNTANATHAN V.Efficient fully homomorphic encryption from(standard) LWE[J].SIAM Journal on Computing,2014,43(2):831-871. [8] MICALI S,GOLDREICH O,WIGDERSON A.How to play any mental game[C]//Proceedings of the Nineteenth ACM Symp.on Theory of Computing,STOC.New York:ACM,1987:218-229. [9] HAO M,LI H,CHEN H,et al.Iron:Private inference on transformers[J].Advances in Neural Information Processing Systems,2022,35:15718-15731. [10] CHEN T,BAO H,HUANG S,et al.The-x:Privacy-preserving transformer inference with homomorphic encryption[C]//Fin-dings of the association for computational linguistics:ACL 2022.2022:3510-3520. [11] LIU X,LIU Z.Llms can understand encrypted prompt:Towards privacy-computing friendly transformers[J].arXiv:2305.18396,2023. [12] LI D,SHAO R,WANG H,et al.Mpcformer:fast,performant and private transformer inference with mpc[J].arXiv:2211.01452,2022. [13] ZIMERMAN I,BARUCH M,DRUCKER N,et al.Converting transformers to polynomial form for secure inference over homomorphic encryption[C]//Forty-first International Conference on Machine Learning.2024. [14] EGIDI N,FATONE L,MISICI L.A new remez-type algorithm for best polynomial approximation[C]//International Confe-rence on Numerical Computations:Theory and Algorithms.Cham:Springer International Publishing,2019:56-69. [15] XU X,ZHANG Q,NING R,et al.Comet:A communication-efficient and performant approximation for private transformer inference[J].arXiv:2405.17485,2024. [16] MOON J,YOO D,JIANG X,et al.THOR:Secure transformer inference with homomorphic encryption[C]//Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security.2025:3765-3779. [17] PATERSON M S,STOCKMEYER L J.On the number of nonscalar multiplications necessary to evaluate polynomials[J].SIAM Journal on Computing,1973,2(1):60-66. [18] DONG Y,LU W,ZHENG Y,et al.Puma:Secure inference ofllama-7b in five minutes[J].Security and Safety,2025,4:2025014. [19] PANG Q,ZHU J,MÖLLERING H,et al.Bolt:Privacy-preserving,accurate and efficient inference for transformers[C]//2024 IEEE Symposium on Security and Privacy(SP).IEEE,2024:4753-4771. [20] LU W,HUANG Z,GU Z,et al.Bumblebee:Secure two-partyinference framework for large transformers[C]//Network and Distributed System Security Symposium.2025. [21] HOU X,LIU J,LI J,et al.Ciphergpt:Secure two-party gpt inference[J].IEEE Transactions on Dependable and Secure Computing,2026,23(3):6748-6762. [22] LI Z,YANG K,TAN J,et al.Nimbus:Secure and efficient two-party inference for transformers[J].Advances in Neural Information Processing Systems,2024,37:21572-21600. [23] VASWANI A,SHAZEER N,PARMAR N,et al.Attention isall you need[J].Advances in Neural Information Processing Systems,2017. [24] ZHANG C,SHEN T,BAI F,et al.Secformer:privacy-preser-ving atomic-level componentized transformer-like model with MPC[J].Digital Communications and Networks,2026,12(1):86-100. [25] ZHANG L,WANG X,SIM J J,et al.MOAI:Module-optimizing architecture for non-interactive secure transformer inference[C]//The Fourteenth International Conference on Learning Representations.2025. [26] GAO X,FU S,LIU L,et al.Euston:Efficient and User-Friendly Secure Transformer Inference with Non-Interactivity[C]//2026 IEEE Symposium on Security and Privacy.IEEE,2026:1443-1462. [27] MA J,ZHENG Y,FENG J,et al.{SecretFlow-SPU}:A performant and {User-Friendly} framework for {Privacy-Preserving} machine learning[C]//2023 USENIX Annual Technical Confe-rence(USENIX ATC 23).2023:17-33. |
|
||