Stealing the Decoding Algorithms of Language Models
Ali Naseh, Kalpesh Krishna, Mohit Iyyer, Amir Houmansadr
摘要
A key component of generating text from modern language models (LM) is the selection and tuning of decoding algorithms. These algorithms determine how to generate text from the internal probability distribution generated by the LM. The process of choosing a decoding algorithm and tuning its hyperparameters takes significant time, manual effort, and computation, and it also requires extensive human evaluation. Therefore, the identity and hyperparameters of such decoding algorithms are considered to be extremely valuable to their owners. In this work, we show, for the first time, that an adversary with typical API access to an LM can steal the type and hyperparameters of its decoding algorithms at very low monetary costs. Our attack is effective against popular LMs used in text generation APIs, including GPT-2, GPT-3 and GPT-Neo. We demonstrate the feasibility of stealing such information with only a few dollars, e.g., 0.8, 1, 4, and 40 for the four versions of GPT-3.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Membership Inference Attacks Against Machine Learning Models 引用了 Stealing Machine Learning Models via Prediction APIs
- No Free Lunch in LLM Watermarking: Trade-offs in Watermarking Design Choices 引用了 Language Models are Few-Shot Learners
- Chasing Shadows: Pitfalls in LLM Security Research 引用了 Language Models are Few-Shot Learners
- Chasing Shadows: Pitfalls in LLM Security Research 引用了 PLeak: Prompt Leaking Attacks against Large Language Model Applications
- Language Models are Few-Shot Learners 引用了 The Curious Case of Neural Text Degeneration
- Model Stealing for Any Low-Rank Language Model 引用了 Stealing Machine Learning Models via Prediction APIs
- PLeak: Prompt Leaking Attacks against Large Language Model Applications 引用了 Stealing Machine Learning Models via Prediction APIs
- PLeak: Prompt Leaking Attacks against Large Language Model Applications 引用了 Language Models are Few-Shot Learners
- PLeak: Prompt Leaking Attacks against Large Language Model Applications 引用了 Extracting Training Data from Large Language Models
- PLeak: Prompt Leaking Attacks against Large Language Model Applications 引用了 The Curious Case of Neural Text Degeneration
- Extracting Training Data from Large Language Models 引用了 Membership Inference Attacks Against Machine Learning Models
- Extracting Training Data from Large Language Models 引用了 Language Models are Few-Shot Learners
- Extracting Training Data from Large Language Models 引用了 The Curious Case of Neural Text Degeneration
引用它的顶会 Paper6
- No Free Lunch in LLM Watermarking: Trade-offs in Watermarking Design ChoicesQi Pang, Shengyuan Hu, Wenting Zheng, Virginia SmithNeurIPS 2024 · 56 次引用
- PLeak: Prompt Leaking Attacks against Large Language Model ApplicationsBo Hui, Haolin Yuan, Neil Gong, Philippe Burlina 等CCS 2024 · 28 次引用
- Chasing Shadows: Pitfalls in LLM Security ResearchJonathan Evertz, Niklas Risse, Nicolai Neuer, Andreas Müller 等NDSS 2026 · 17 次引用
- Transferable Embedding Inversion Attack: Uncovering Privacy Risks in Text Embeddings without Model QueriesYu-Hsiang Huang, Yu-Che Tsai, Hsiang Hsiao, Hong-Yi Lin 等ACL 2024 · 5 次引用
- Model Stealing for Any Low-Rank Language ModelAllen Liu, Ankur MoitraSTOC 2025 · 1 次引用
它引用的 Paper18
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 次引用
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski 等USENIX Security 2021 · 2,866 次引用
- Stealing Machine Learning Models via Prediction APIsFlorian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter 等USENIX Security 2016 · 2,088 次引用
相关 Paper
- Stealing part of a production language modelNicholas Carlini, Daniel Paleka, Krishnamurthy Dj Dvijotham, Thomas Steinke 等ICML 2024 · 157 次引用
- Prompt Stealing Attacks Against Text-to-Image Generation ModelsXinyue Shen, Yiting Qu, Michael Backes, Yang ZhangUSENIX Security 2024 · 65 次引用
- Stealing Hyperparameters in Machine LearningBinghui Wang, Neil Zhenqiang GongS&P 2018 · 504 次引用
- The Janus Interface: How Fine-Tuning in Large Language Models Amplifies the Privacy RisksXiaoyi Chen, Siyuan Tang, Rui Zhu, Shijun Yan 等CCS 2024 · 18 次引用
- Black-Box Detection of Language Model WatermarksThibaud Gloaguen, Nikola Jovanovic, Robin Staab, Martin T. VechevICLR 2025
