LightShark: Actively Secure Machine-Learning Inference Based on Lightweight Authenticated Distributed Comparison Function
Chenkai Zeng, Qi Feng, Debiao He, Min Luo
Abstract
Recently, Shark (S&P'25) considered the problem of actively twoparty secure machine learning inference using an authenticated distributed comparison function (DCF). This is the state-of-the-art work in this setting. On the other hand, Grotto (CCS'23) built a variant DCF with the key size half that of classic DCF. Unfortunately, as Shark states, it is not known how to extend Grotto to the malicious setting. In this paper, we present the first actively secure Grotto-style DCF scheme. Our authenticated DCF is deliberately designed on the correlated GGM tree and maintains the key-size advantage of semi-honest Grotto. We further implement an actively secure ML inference framework, named LightShark, which supports efficient primitives (e.g., ReLU, spline, and truncation) and ML models (e.g., VGG-16, GPT, BERT). Compared with Shark, our LightShark outperforms by 1.49× ∼ 2.69× and reduces communication costs by 66.7% for Bert-base inference. Surprisingly, for larger LLM models, the experimental evaluation demonstrates that our framework works vastly well. CCS Concepts • Theory of computation → Cryptographic protocols; • Security and privacy → Privacy-preserving protocols.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 334d62ec-74c0-4979-ae8b-c7f1f5a92e21Builds on30
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- SecureML: A System for Scalable Privacy-Preserving Machine LearningPayman Mohassel, Yupeng ZhangS&P 2017 · 2,107 citations
- MASCOT: Faster Malicious Arithmetic Secure Computation with Oblivious TransferMarcel Keller, Emmanuela Orsini, Peter SchollCCS 2016 · 487 citations
- Function Secret Sharing: Improvements and ExtensionsElette Boyle, Niv Gilboa, Yuval IshaiCCS 2016 · 404 citations
- ABY2.0: Improved Mixed-Protocol Secure Two-Party ComputationArpita Patra, Thomas Schneider, Ajith Suresh, Hossein YalameUSENIX Security 2021 · 307 citations
Related papers
- SHARK: Actively Secure Inference Using Function Secret SharingKanav Gupta, Nishanth Chandran, Divya Gupta, Jonathan Katz et al.S&P 2025
- Mosformer: Maliciously Secure Three-Party Inference Framework for Large TransformersKe Cheng, Yuheng Xia, Anxiao Song, Jiaxuan Fu et al.CCS 2025
- CRISP: An Efficient Cryptographic Framework for ML Inference Against Malicious ClientsXiaoyu Fang, Shihui Zheng, Lize GuNDSS 2026
- Grotto: Screaming fast (2+1)-PC or ℤ2n via (2, 2)-DPFsKyle Storrier, Adithya Vadapalli, Allan Lyons, Ryan HenryCCS 2023 · 14 citations
- CAVERN: Efficient Honest-Majority Maliciously Secure (2+1)-PC for via DPFYang Liu, Liang Feng ZhangS&P 2026
