Stealing Part of a Production Language Model

Auteurs : Nicholas Carlini, Daniel Paleka, Krishnamurthy Dj Dvijotham, Thomas Steinke, Jonathan Hayase, A. Feder Cooper, Katherine Lee, Matthew Jagielski, Milad Nasr, Arthur Conmy, Eric Wallace, David Rolnick, Florian Tramèr

Soumis à arXiv le 11 Mar. 2024
Résumé scientifique

We introduce the first model-stealing attack that extracts precise, nontrivial information from black-box production language models like OpenAI's ChatGPT or Google's PaLM-2. Specifically, our attack recovers the embedding projection layer (up to symmetries) of a transformer model, given typical API access. For under \$20 USD, our attack extracts the entire projection matrix of OpenAI's Ada and Babbage language models. We thereby confirm, for the first time, that these black-box models have a hidden dimension of 1024 and 2048, respectively. We also recover the exact hidden dimension size of the gpt-3.5-turbo model, and estimate it would cost under \$2,000 in queries to recover the entire projection matrix. We conclude with potential defenses and mitigations, and discuss the implications of possible future work that could extend our attack.

Les articles autour de lui, par date et par proximité

Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article

Comment lire cette carte ? Guide illustré

Les articles les plus proches Les travaux antérieurs sur lesquels il s’appuie Les articles qui le citent

Les articles autour de celui-ci

Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.

Les articles les plus proches

  1. Proche Autre approche du problème
    Model Leeching: An Extraction Attack Targeting LLMs
    Lewis Birch, William Hackett, Stefan Trawicki et al. · 2023 · CAMLIS · cité 38 fois · Pas encore résumé

    Model Leeching distille des capacités de ChatGPT-3.5-Turbo dans un modèle réduit, tandis que ce papier extrait une couche de projection par requêtes API.

    Résumé scientifique

    Model Leeching is a novel extraction attack targeting Large Language Models (LLMs), capable of distilling task-specific knowledge from a target LLM into a reduced parameter model. We demonstrate the effectiveness of our attack by extracting task capability from ChatGPT-3.5-Turbo, achieving 73% Exact Match (EM) similarity, and SQuAD EM and F1 accuracy scores of 75% and 87%, respectively for only $50 in API cost. We further demonstrate the feasibility of adversarial attack transferability from an extracted model extracted via Model Leeching to perform ML attack staging against a target LLM, resulting in an 11% increase to attack success rate when applied to ChatGPT-3.5-Turbo.

  2. Proche Contexte plus large
    Extracting Training Data from Large Language Models
    Nicholas Carlini, Florian Tramer, Eric Wallace et al. · 2020 · Cryptography and Security · cité 3 548 fois · Résumé IA disponible

    Extracting Training Data recouvre des exemples mémorisés dans GPT-2, alors que ce papier récupère des paramètres de modèles de production.

    Résumé scientifique

    It has become common to publish large (billion parameter) language models that have been trained on private datasets. This paper demonstrates that in such settings, an adversary can perform a training data extraction attack to recover individual training examples by querying the language model. We demonstrate our attack on GPT-2, a language model trained on scrapes of the public Internet, and are able to extract hundreds of verbatim text sequences from the model's training data. These extracted examples include (public) personally identifiable information (names, phone numbers, and email addresses), IRC conversations, code, and 128-bit UUIDs. Our attack is possible even though each of the ab…

  3. Proche Même question Cité par cet article Cite cet article Utilisé en profondeur par cet article
    Logits of API-Protected LLMs Leak Proprietary Information
    Matthew Finlayson, Xiang Ren, S. Swayamdipta · 2024 · arXiv.org · preprint, non relu par les pairs · cité 58 fois · Pas encore résumé

    Logits of API-Protected LLMs révèle des informations internes de LLM via leurs sorties API, comme l’extraction de couche de projection étudiée ici.

    Résumé scientifique

    Large language model (LLM) providers often hide the architectural details and parameters of their proprietary models by restricting public access to a limited API. In this work we show that, with only a conservative assumption about the model architecture, it is possible to learn a surprisingly large amount of non-public information about an API-protected LLM from a relatively small number of API queries (e.g., costing under $1000 USD for OpenAI's gpt-3.5-turbo). Our findings are centered on one key observation: most modern LLMs suffer from a softmax bottleneck, which restricts the model outputs to a linear subspace of the full output space. We exploit this fact to unlock several capabilitie…

  4. Proche Contexte plus large
    Scalable Extraction of Training Data from (Production) Language Models
    Milad Nasr, Nicholas Carlini, Jonathan Hayase et al. · 2023 · Machine Learning · preprint, non relu par les pairs · cité 642 fois · Résumé IA disponible

    Scalable Extraction extrait des textes d’entraînement mémorisés dans des modèles de production, plutôt que leurs paramètres comme dans ce papier.

    Résumé scientifique

    This paper studies extractable memorization: training data that an adversary can efficiently extract by querying a machine learning model without prior knowledge of the training dataset. We show an adversary can extract gigabytes of training data from open-source language models like Pythia or GPT-Neo, semi-open models like LLaMA or Falcon, and closed models like ChatGPT. Existing techniques from the literature suffice to attack unaligned models; in order to attack the aligned ChatGPT, we develop a new divergence attack that causes the model to diverge from its chatbot-style generations and emit training data at a rate 150x higher than when behaving properly. Our methods show practical attac…

  5. Proche Contexte plus large
    RatGPT: Turning online LLMs into Proxies for Malware Attacks
    Mika Beckerich, Laura Plein, Sergio Coronado · 2023 · Cryptography and Security · preprint, non relu par les pairs · cité 45 fois · Résumé IA disponible

    RatGPT utilise ChatGPT comme relais pour diffuser des attaques de logiciels malveillants, sans chercher à extraire les paramètres du modèle.

    Résumé scientifique

    The evolution of Generative AI and the capabilities of the newly released Large Language Models (LLMs) open new opportunities in software engineering. However, they also lead to new challenges in cybersecurity. Recently, researchers have shown the possibilities of using LLMs such as ChatGPT to generate malicious content that can directly be exploited or guide inexperienced hackers to weaponize tools and code. These studies covered scenarios that still require the attacker to be in the middle of the loop. In this study, we leverage openly available plugins and use an LLM as proxy between the attacker and the victim. We deliver a proof-of-concept where ChatGPT is used for the dissemination of …

  6. Proche Contexte plus large
    PAL: Proxy-Guided Black-Box Attack on Large Language Models
    Chawin Sitawarin, Norman Mu, David A. Wagner et al. · 2024 · arXiv.org · preprint, non relu par les pairs · cité 61 fois · Pas encore résumé

    PAL optimise des prompts nuisibles par requêtes à des LLM boîte noire, tandis que ce papier exploite l’API pour extraire des paramètres.

    Résumé scientifique

    Large Language Models (LLMs) have surged in popularity in recent months, but they have demonstrated concerning capabilities to generate harmful content when manipulated. While techniques like safety fine-tuning aim to minimize harmful use, recent works have shown that LLMs remain vulnerable to attacks that elicit toxic responses. In this work, we introduce the Proxy-Guided Attack on LLMs (PAL), the first optimization-based attack on LLMs in a black-box query-only setting. In particular, it relies on a surrogate model to guide the optimization and a sophisticated loss designed for real-world LLM APIs. Our attack achieves 84% attack success rate (ASR) on GPT-3.5-Turbo and 48% on Llama-2-7B, co…

  7. Proche Contexte plus large Cité par cet article Une méthode qu’il utilise
    Query-Based Adversarial Prompt Generation
    J. Hayase, Ema Borevković, Nicholas Carlini et al. · 2024 · Neural Information Processing Systems · cité 74 fois · Pas encore résumé

    Query-Based Adversarial Prompt Generation construit des prompts qui déclenchent des sorties nuisibles via API, et non une extraction des paramètres.

    Résumé scientifique

    Recent work has shown it is possible to construct adversarial examples that cause an aligned language model to emit harmful strings or perform harmful behavior. Existing attacks work either in the white-box setting (with full access to the model weights), or through transferability: the phenomenon that adversarial examples crafted on one model often remain effective on other models. We improve on prior work with a query-based attack that leverages API access to a remote language model to construct adversarial examples that cause the model to emit harmful strings with (much) higher probability than with transfer-only attacks. We validate our attack on GPT-3.5 and OpenAI's safety classifier; w…

  8. Proche Prolonge cet article Cite cet article Utilise cet article en profondeur
    Can Watermarking Techniques Help Prevent LLM Model Stealing?
    Elette Boyle, M. Hajiaghayi, Keivan Rezaei et al. · 2026 · arXiv.org · preprint, non relu par les pairs · Pas encore résumé

    Can Watermarking Techniques propose des perturbations des logits pour défendre les modèles contre l’attaque d’extraction décrite dans ce papier.

    Résumé scientifique

    Model stealing attacks have recently been introduced, enabling the extraction of precise information from black-box commercial language models. In this work, we propose defense methods against a recent attack of \cite{carlini2024stealing} and extensions for extracting the hidden layer dimension of production language models. Our methods are inspired by watermarking techniques that perturb the logits layer of these models to prevent such attacks. We provide empirical experiments demonstrating the effectiveness of the proposed defense versus model quality degradation across various configurations, and propose an effective defense against such attacks while preserving model utility.

Les travaux antérieurs sur lesquels il s’appuie

  1. Proche Base de cet article
    PRADA: Protecting Against DNN Model Stealing Attacks
    Mika Juuti, Sebastian Szyller, Samuel Marchal et al. · 2018 · European Symposium on Security and Privacy · cité 561 fois · Pas encore résumé

    PRADA étudie l’extraction de modèles par API de prédiction et propose des requêtes synthétiques, antécédent général à l’attaque présentée ici.

    Résumé scientifique

    Machine learning (ML) applications are increasingly prevalent. Protecting the confidentiality of ML models becomes paramount for two reasons: (a) a model can be a business advantage to its owner, and (b) an adversary may use a stolen model to find transferable adversarial examples that can evade classification by the original model. Access to the model can be restricted to be only via well-defined prediction APIs. Nevertheless, prediction APIs still provide enough information to allow an adversary to mount model extraction attacks by sending repeated queries via the prediction API. In this paper, we describe new model extraction attacks using novel approaches for generating synthetic queries…

  2. Proche Contexte plus large
    Leaky DNN: Stealing Deep-Learning Model Secret with GPU Context-Switching Side-Channel
    Junyin Wei, Yi-Cheng Zhang, Zhe Zhou et al. · 2020 · Dependable Systems and Networks · cité 131 fois · Pas encore résumé

    Leaky DNN infère la structure d’un réseau via un canal latéral GPU partagé, contrairement à l’extraction par API de ce papier.

    Résumé scientifique

    Machine learning has been attracting strong interests in recent years. Numerous companies have invested great efforts and resources to develop customized deep-learning models, which are their key intellectual properties. In this work, we investigate to what extent the secret of deep-learning models can be inferred by attackers. In particular, we focus on the scenario that a model developer and an adversary share the same GPU when training a Deep Neural Network (DNN) model. We exploit the GPU side-channel based on context-switching penalties. This side-channel allows us to extract the fine-grained structural secret of a DNN model, including its layer composition and hyper-parameters. Leveragi…

  3. Proche Base de cet article
    Cryptanalytic Extraction of Neural Network Models
    Nicholas Carlini, Matthew Jagielski, Ilya Mironov · 2020 · Annual International Cryptology Conference · cité 182 fois · Pas encore résumé

    Cryptanalytic Extraction récupère les paramètres d’un réseau par requêtes à un oracle, établissant une approche antérieure d’extraction en boîte noire.

    Résumé scientifique

    We argue that the machine learning problem of model extraction is actually a cryptanalytic problem in disguise, and should be studied as such. Given oracle access to a neural network, we introduce a differential attack that can efficiently steal the parameters of the remote model up to floating point precision. Our attack relies on the fact that ReLU neural networks are piecewise linear functions, and thus queries at the critical points reveal information about the model parameters. We evaluate our attack on multiple neural network models and extract models that are 2^20 times more precise and require 100x fewer queries than prior work. For example, we extract a 100,000 parameter neural netw…

  4. Apparenté Base de cet article
    High Accuracy and High Fidelity Extraction of Neural Networks
    Matthew Jagielski, Nicholas Carlini, David Berthelot et al. · 2019 · USENIX Security Symposium · cité 515 fois · Pas encore résumé

    High Accuracy and High Fidelity Extraction examine l’extraction de modèles depuis des prédictions distantes, en distinguant fidélité et exactitude.

    Résumé scientifique

    In a model extraction attack, an adversary steals a copy of a remotely deployed machine learning model, given oracle prediction access. We taxonomize model extraction attacks around two objectives: *accuracy*, i.e., performing well on the underlying learning task, and *fidelity*, i.e., matching the predictions of the remote victim classifier on any input. To extract a high-accuracy model, we develop a learning-based attack exploiting the victim to supervise the training of an extracted model. Through analytical and empirical arguments, we then explain the inherent limitations that prevent any learning-based strategy from extracting a truly high-fidelity model---i.e., extracting a functionall…

  5. Apparenté Base de cet article
    Stealing Machine Learning Models via Prediction APIs
    Florian Tramèr, Fan Zhang, A. Juels et al. · 2016 · USENIX Security Symposium · cité 2 282 fois · Pas encore résumé

    Stealing Machine Learning Models via Prediction APIs étudie la copie de modèles confidentiels par accès boîte noire à une API de prédiction.

    Résumé scientifique

    Machine learning (ML) models may be deemed confidential due to their sensitive training data, commercial value, or use in security applications. Increasingly often, confidential ML models are being deployed with publicly accessible query interfaces. ML-as-a-service ("predictive analytics") systems are an example: Some allow users to train models on potentially sensitive data and charge others for access on a pay-per-query basis. The tension between model confidentiality and public access motivates our investigation of model extraction attacks. In such attacks, an adversary with black-box access, but no prior knowledge of an ML model's parameters or training data, aims to duplicate the functi…

Les articles qui le citent

  1. Proche Prolonge cet article Utilise cet article en profondeur
    The Geometry of Last-Layer Model Stealing
    Snigdha Chandan Khilar · 2026 · arXiv.org · preprint, non relu par les pairs · cité 1 fois · Pas encore résumé

    The Geometry of Last-Layer Model Stealing analyse les conditions de copie de la dernière couche d’un transformeur et les limites de reconstruction, en s’appuyant sur ce papier.

    Résumé scientifique

    This paper uses geometry to explain how a machine learning model can be stolen using an already existing well-known method. The author has shown the exact conditions required to perfectly copy the final layer of a transformer network. When looking deeper into the hidden layers the author has explained clear limits. The author has also demonstrated that a hidden network cannot be fully reverse engineered just by looking at the final results. The research clearly maps out what can and cannot be stolen from a model.

  2. Proche Prolonge cet article Utilise cet article en profondeur
    Clone What You Can't Steal: Black-Box LLM Replication via Logit Leakage and Distillation
    Kanchon Gharami, H. Aluvihare, S. Moni et al. · 2025 · International Conference on Trust, Privacy and Security in Intelligent Systems and Applications · cité 3 fois · Pas encore résumé

    Clone What You Can't Steal combine fuite de logits et distillation pour répliquer un LLM, en prolongeant les travaux sur l’extraction de la projection.

    Résumé scientifique

    Large Language Models (LLMs) are increasingly deployed in mission-critical systems, facilitating tasks such as satellite operations, command-and-control, military decision support, and cyber defense. Many of these systems are accessed through application programming interfaces (APIs). When such APIs lack robust access controls, they can expose full or top $k$ logits, creating a significant and often overlooked attack surface. Prior art has mainly focused on reconstructing the output projection layer or distilling surface-level behaviors. However, regenerating a black-box model under tight query constraints remains underexplored. We address that gap by introducing a constrained replication pi…

  3. Proche Contexte plus large
    Pandora's White-Box: Precise Training Data Detection and Extraction in Large Language Models
    Jeffrey G. Wang, Jason Z Wang, Marvin Li et al. · 2024 · cité 12 fois · Pas encore résumé

    Pandora's White-Box détecte et extrait des données d’entraînement de LLM, alors que ce papier vise les dimensions et paramètres internes.

    Résumé scientifique

    In this paper we develop state-of-the-art privacy attacks against Large Language Models (LLMs), where an adversary with some access to the model tries to learn something about the underlying training data. Our headline results are new membership inference attacks (MIAs) against pretrained LLMs that perform hundreds of times better than baseline attacks, and a pipeline showing that over 50% (!) of the fine-tuning dataset can be extracted from a fine-tuned LLM in natural settings. We consider varying degrees of access to the underlying model, pretraining and fine-tuning data, and both MIAs and training data extraction. For pretraining data, we propose two new MIAs: a supervised neural network …

  4. Proche Base de cet article
    From Counterfactuals to Trees: Competitive Analysis of Model Extraction Attacks
    A. Khouna, Julien Ferry, Thibaut Vidal · 2025 · Neural Information Processing Systems · cité 4 fois · Pas encore résumé

    From Counterfactuals to Trees formalise le coût en requêtes de l’extraction de modèles, dans le cadre général des attaques par oracle.

    Résumé scientifique

    The advent of Machine Learning as a Service (MLaaS) has heightened the trade-off between model explainability and security. In particular, explainability techniques, such as counterfactual explanations, inadvertently increase the risk of model extraction attacks, enabling unauthorized replication of proprietary models. In this paper, we formalize and characterize the risks and inherent complexity of model reconstruction, focusing on the"oracle''queries required for faithfully inferring the underlying prediction function. We present the first formal analysis of model extraction attacks through the lens of competitive analysis, establishing a foundational framework to evaluate their efficiency…

  5. Proche Contexte plus large
    Kraken: Higher-order EM Side-Channel Attacks on DNNs in Near and Far Field
    Péter Horváth, Ilia Shumailov, Lukasz Chmielewski et al. · 2026 · 2026 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML) · cité 3 fois · Pas encore résumé

    Kraken extrait des paramètres de réseaux via des canaux électromagnétiques GPU, plutôt que par les requêtes API étudiées ici.

    Résumé scientifique

    The multi-million dollar investment required for modern machine learning (ML) has made large ML models a prime target for theft. In response, the field of model stealing has emerged. Attacks based on physical side-channel information have shown that DNN model extraction is feasible, even on CUDA Cores in a GPU. For the first time, our work demonstrates parameter extraction on the specialized GPU’s Tensor Core units, most commonly used GPU units nowadays due to their superior performance, via near-field physical side-channel attacks. Previous work targeted only the general-purpose CUDA Cores in the GPU, the functional units that have been part of the GPU since its inception. Our method is tai…

Comment ces articles sont-ils trouvés ?

Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.

Mis à jour le 3 novembre 2026.

Le guide illustré des articles autour d’un article