Computer Science ›› 2026, Vol. 53 ›› Issue (11A): 260200060-1063.doi: 10.11896/jsjkx.260200060

• Information Security • Previous Articles     Next Articles

Real-time Distribution-aware Dynamic Secure Inference

QI Zitong, ZHANG Dengke, YU Zhuohan, YI Xiushuang   

  1. School of Computer Science and Engineering,Northeastern University,Shenyang 110819,China
  • Online:2026-11-16 Published:2026-11-16
  • About author:QI Zitong,born in 2002,postgraduate,is a member of CCF(No.A35007G).Her main research interest is large model security.
    ZHANG Dengke,born in 1981,Ph.D candidate,is a member of CCF(No.20577M).His main research interests include network design and optimization of hyperscale data center and spectral graph theory.
  • Supported by:
    This work was supported by the Key Program of the National Natural Science Foundation of China(6213204) and Research on Theory and Algorithms for Latency-Sensitive End-to-End Transmission(ZX20220035).

Abstract: With the rapid adoption of large models in high-stakes domains such as healthcare,finance,and defense,secure infe-rence has become an important research topic in privacy-preserving machine learning.It aims to balance data privacy protection and model performance.Existing studies on nonlinear layers often suffer from high computational cost.To reduce this cost,many methods use approximation-friendly nonlinear functions.However,they often ignore the lack of robustness under dataset-specific distribution shifts.To address this issue,a dynamic secure inference method for nonlinear layers based on real-time distribution awareness is proposed.The proposed method adapts nonlinear computation to input distribution changes.A new privacy-preserving framework is designed,which includes real-time distribution perception and extreme value optimization.Experimental results show that the numerical outputs of NLR-BDA are nearly identical to plaintext computation.Further experiments on benchmark models show that,under controlled overhead,the proposed method reduces performance degradation by a factor of 1.05~1.10 compared with mainstream methods.It also improves robustness under complex data conditions.The results indicate that NLR-BDA preserves privacy while achieving better performance retention than existing methods.

Key words: Large language models, Dynamic secure inference, Real-time distribution awareness

CLC Number: 

  • TP309
[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.
[1] HE Jiaojun, LI Xin. Review of Graph Learning Based on Large Language Models:Methods,Benchmarks and Advances [J]. Computer Science, 2026, 53(9): 1-15.
[2] LI Luozheng, LI Lingbo, YUAN Quan. Survey of Chinese Datasets for LLM Safety Alignment:Landscape and Prospects [J]. Computer Science, 2026, 53(9): 16-23.
[3] ZHANG Rongjie, PANG Xiongwen, WANG Fengling. Review of Large Language Model-based Time Series Modeling via Fine-tuning and AgentArchitecture [J]. Computer Science, 2026, 53(9): 55-70.
[4] GUO Yuyang, SHI Lei, LIU Huan, DONG Yixiang, LI Rui. Domain-adapted and Dynamically Retrieval-augmented Approach for Large-scale History Discipline Model Construction [J]. Computer Science, 2026, 53(9): 92-100.
[5] LI Zhennan, QIAN Jiayan, WANG Xinzhi, ZHANG Hui. Technology Risk Structure Recognition Based on Multi-granularity Semantic Dual Reflection [J]. Computer Science, 2026, 53(9): 395-404.
[6] LIU Jing. Review of Music Artificial Intelligence Driven by Large Language Models [J]. Computer Science, 2026, 53(8): 229-244.
[7] ZHANG Haoran, HAO Wenning, JIN Dawei, CHENG Kai, LIU Junyang. Agentic Retrieval Augmented Generation Framework Based on Retrieval Task Planning and Reflection Mechanism [J]. Computer Science, 2026, 53(8): 285-297.
[8] CHEN Zhixiang, XIE Zhipeng. Event Causal Data Augmentation Method Based on Large Language Model [J]. Computer Science, 2026, 53(7): 125-131.
[9] XU Rui, LIU Jin, LIU Xudong, GUAN Jian, DONG Wei. Exploring the Generalization Ability of Prompt-based Large Language Models for TextClassification [J]. Computer Science, 2026, 53(6A): 250400092-7.
[10] WEI Qing, ZHANG Yupeng, LIU Shaoxun, ZHANG Jinfeng, ZHANG Yuezhong, CHEN Haoyang. Fuzzing Driver Generation Based on Large Language Models [J]. Computer Science, 2026, 53(6A): 250400113-8.
[11] ZHANG Yongyu, GUO Chenjuan, FEI Xueqin, LI Feng. Study on Financial Text Sentiment Analysis Method Based on Large Language Models with Market Feedback Supervision [J]. Computer Science, 2026, 53(6A): 250500073-14.
[12] SHI Hongxu, LIU Yi, LIU Kun. Survey of Recommendation Systems Based on Large Language Models [J]. Computer Science, 2026, 53(6): 281-303.
[13] WANG Shenghui, LI Teng. Innovative Automated Scoring Based on Large Language Models [J]. Computer Science, 2026, 53(5): 90-98.
[14] HU Junjie, CHEN Yujie, HU Yikun, WEN Cheng, CAO Jialun, MA Zhi, SU Jie, SUN Weidi, TIAN Cong, QIN Shengchao. Formal Theorem Proving Empowered by Large Language Model:Survey and Perspectives [J]. Computer Science, 2026, 53(4): 1-23.
[15] LIU Suyi, LIU Qi, GAO Weibo. Agent4Stu:Efficient LLM-based Student Answer Behavior Simulation Agent [J]. Computer Science, 2026, 53(4): 347-355.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!