Retour aux articles
IAOpenAI News

The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions

Today's LLMs are susceptible to prompt injections, jailbreaks, and other attacks that allow adversaries to overwrite a model's original instructions with their own malicious prompts.

Le flux RSS ne fournissait qu'un extrait. FlowMarket a récupéré le contenu public disponible depuis la page originale, sans contourner les contenus réservés.

April 19, 2024

The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions

An abstract image with soft, flowing brushstrokes in warm beige, light brown, and pale blue. The smooth blending of colors creates a calming, fluid composition, evoking a sense of movement and serenity.

Abstract

Today's LLMs are susceptible to prompt injections, jailbreaks, and other attacks that allow adversaries to overwrite a model's original instructions with their own malicious prompts. In this work, we argue that one of the primary vulnerabilities underlying these attacks is that LLMs often consider system prompts (e.g., text from an application developer) to be the same priority as text from untrusted users and third parties. To address this, we propose an instruction hierarchy that explicitly defines how models should behave when instructions of different priorities conflict. We then propose a data generation method to demonstrate this hierarchical instruction following behavior, which teaches LLMs to selectively ignore lower-privileged instructions. We apply this method to GPT‑3.5, showing that it drastically increases robustness -- even for attack types not seen during training -- while imposing minimal degradations on standard capabilities.

  • GPT
  • Language
  • Reasonings & Policy
  • Ethics & Safety

Authors

Eric Wallace ⁠ (opens in a new window)

Kai Xiao ⁠ (opens in a new window)

Reimar Leike ⁠ (opens in a new window)

Lilian Weng ⁠ (opens in a new window)

Johannes Heidecke ⁠ (opens in a new window)

Alex Beutel ⁠ (opens in a new window)

Besoin d'un workflow n8n ou d'aide pour l'installer ?

Après la veille, passez à l'action : trouvez un template n8n ou un créateur capable de l'adapter à vos outils.

Source

OpenAI News - openai.com

Voir la publication originale