1. Home
  2. Machine Learning Street Talk

May 22, 2024

Inhuman 'magic words' bypass AI safety

Aman Bhargava

69 min → 2:28

Overview

The speakers on Machine Learning Street Talk apply control theory to large language models, examining how adversarial prompts manipulate their non-intuitive token space and why reaching AGI requires new conceptual breakthroughs.

3 things to know

Bhargava: Inhuman magic prompts hypnotize AI into bypassing safety rules

Author Aman Bhargava says specific, inhuman sequences of tokens act like hypnosis or a magic spell, steering a language model toward a desired output and bypassing safety training.

▶ Watch at 2:20

Controllability and Reachability

The set of all possible outputs an LLM can produce (its "reachable space") is vast.

More

Even short prompts (control inputs) can steer the model toward a wide range of outcomes, including initially unlikely or forbidden ones.

▶ Watch at 1:07

Machine Learning Street Talk: Controlling AI happens across three layers

Machine Learning Street Talk outlines three distinct layers for controlling language models: high-level natural language prompts, mid-level algorithmic token-by-token searches, and low-level continuous gradient-based optimization inside the embedding space.

▶ Watch at 38:30

Also in this episode

Tim Scarfe says feeding AI its own answers unlocks control

Tim Scarfe explains that because language models feed their own output back in as their next input, researchers can apply control theory to analyze their behavior and stability.

More

Because LLMs are auto-regressive (their output becomes their next input), they can be modeled as dynamical systems.

▶ Watch at 28:06

Scarfe: AI operates in a gnarly token space, not thought

Tim Scarfe uses the Shoggoth metaphor to explain that a language model operates in a vast, non-intuitive, horrible, hairy, gnarly high-dimensional token space that is fundamentally different from human-like conceptual thought.

Witkowski: True AI progress needs new ideas, not more computers

Cameron Witkowski argues that the main barrier to advanced artificial intelligence is not a lack of computing power or algorithms, but a need for new ideas from neuroscience and philosophy.

▶ Watch at 31:16

Quotes

“There's this sort of chaotic regime of adversarial prompts, kind of like hypnosis, kind of like magic, where if you give it these very strange, very inhuman-looking prompts, that will steer it to just making a certain output extremely likely.”

▶ Watch at 2:20

“We really believe that the bottleneck in AI progress right now is not so much compute, not so much algorithms, but it's conceptual. We need better ideas about intelligence.”

▶ Watch at 38:30

“What I cannot control, I cannot understand.”

▶ Watch at 31:16

2 more quotes

“We think that they think in language space... but they don't. They actually think using the Shoggoth. They think in this very high-resolution token space and it's just this horrible, hairy, gnarly mess.”

▶ Watch at 1:07

“These are autoregressive models... The answer gets kind of fed back into the prompt, and then we rinse and repeat, which means you can model them as dynamical systems.”

▶ Watch at 28:06

Full summary

Episode Overview

  • The episode reframes Large Language Models (LLMs) from creative partners to complex dynamical systems, applying control theory to understand their behavior, vulnerabilities, and potential for manipulation.
  • It introduces the "Shoggoth" metaphor to describe the non-intuitive, high-dimensional token space where LLMs operate, warning against anthropomorphizing them based on their coherent language output.
  • The discussion explores the power of "magic words"—optimized, often inhuman adversarial prompts—that can steer LLMs to produce highly specific or forbidden outputs, revealing a larger-than-expected "reachable space."
  • The speakers argue that true progress towards AGI requires conceptual breakthroughs and interdisciplinary ideas about intelligence, rather than just more compute or better algorithms.

Key Concepts

  • LLMs as Dynamical Systems: Because LLMs are auto-regressive (their output becomes their next input), they can be modeled as dynamical systems. This allows for the application of control theory to analyze their behavior, stability, and controllability.
  • The Shoggoth Analogy: A metaphor for the internal workings of an LLM, suggesting it operates in a vast, non-intuitive, "horrible, hairy, gnarly" high-dimensional token space, which is fundamentally different from human-like conceptual thought.
  • Levels of Interaction: There are distinct layers for controlling LLMs: high-level (natural language prompts), mid-level (algorithmic, token-by-token search), and low-level (continuous gradient-based optimization in the embedding space).
  • Adversarial Prompts ("Magic Words"): Specific, optimized, and often inhuman sequences of tokens that act like "hypnosis" or a "magic spell" to steer the model toward a desired output with extremely high probability, bypassing its safety training.
  • Controllability and Reachability: The set of all possible outputs an LLM can produce (its "reachable space") is vast. Even short prompts (control inputs) can steer the model toward a wide range of outcomes, including initially unlikely or forbidden ones.
  • Conceptual Bottlenecks in AI: The argument that the primary barrier to AGI is not a lack of compute or better algorithms, but a need for new, foundational ideas about intelligence drawn from interdisciplinary fields like neuroscience and philosophy.

Quotes

  • At 1:07 - "We think that they think in language space... but they don't. They actually think using the Shoggoth. They think in this very high-resolution token space and it's just this horrible, hairy, gnarly mess." - Tim Scarfe explains the misconception about how LLMs process information, contrasting the human-perceived language interface with the model's complex internal reality.
  • At 2:20 - "There's this sort of chaotic regime of adversarial prompts, kind of like hypnosis, kind of like magic, where if you give it these very strange, very inhuman-looking prompts, that will steer it to just making a certain output extremely likely." - Author Aman Bhargava describes the power of adversarial prompts, which bypass human-like interaction to directly manipulate the model's output.
  • At 28:06 - "These are autoregressive models... The answer gets kind of fed back into the prompt, and then we rinse and repeat, which means you can model them as dynamical systems." - Tim highlights the core property of LLMs that makes them suitable for analysis with control theory.
  • At 31:16 - "What I cannot control, I cannot understand." - Cameron Witkowski adapts Richard Feynman's famous quote to argue that control is a prerequisite for truly understanding complex systems like LLMs.
  • At 38:30 - "We really believe that the bottleneck in AI progress right now is not so much compute, not so much algorithms, but it's conceptual. We need better ideas about intelligence." - Cameron outlines the core philosophy behind their research, emphasizing the need for foundational, interdisciplinary ideas.

Takeaways

  • Treat LLMs as engineered systems, not cognitive beings. Applying frameworks like control theory can provide a more rigorous, predictable, and safe way to interact with them.
  • Avoid anthropomorphizing LLMs; their coherent output hides an alien internal process, making their behavior susceptible to non-intuitive "magic word" attacks that exploit the system's dynamics.
  • LLM safety is an unsolved problem because their potential output space is far larger than it seems, and adversarial prompts can effectively bypass existing guardrails.
  • Advancing AI may depend less on scaling computation and more on developing new conceptual frameworks for understanding intelligence itself.

Watch the full episode 1 hr 9 min

Read along with the audio summary

Strange, inhuman-looking prompts can act like hypnosis on a Large Language Model, steering it to make a certain output extremely likely, according to author Aman Bhargava. In this episode released on May 22, 2024, Tim Scarfe speaks with Aman Bhargava and Cameron Witkowski. By the end of this summary, you will learn how applying control theory reframes these models from creative partners into complex dynamical systems, revealing their hidden vulnerabilities and how they can be manipulated.

Stop viewing Large Language Models as creative partners and start seeing them as dynamical systems you can analyze. A model's own output immediately becomes its very next input. Tim Scarfe explains that because these models are autoregressive, meaning the answer gets fed back into the prompt over and over, you can model them as dynamical systems. This loop allows researchers to apply control theory to analyze their behavior, stability, and controllability. Cameron Witkowski even adapts a famous quote from Richard Feynman to argue that what he cannot control, he cannot understand.

That need for control becomes obvious when you realize the coherent language of a model hides an alien internal reality. We assume these models think in human language, when they actually operate in a vast, non-intuitive space. Tim Scarfe uses the metaphor of a Shoggoth to describe this internal process, calling it a horrible, hairy, gnarly mess of high-resolution token space. Instead of human-like conceptual thought, the model navigates this high-dimensional space that is fundamentally different from our own minds.

Navigating that alien space happens across three distinct layers of control. At the high level, you interact using everyday natural language prompts. Beneath that sits a mid-level interaction of algorithmic, token-by-token search, and a low-level layer of continuous gradient-based optimization in the embedding space.

Those deeper layers give rise to adversarial prompts that act like magic spells to bypass safety training. You do not need polite conversation to steer a model when a strange string of tokens can force its hand. Aman Bhargava describes a chaotic regime of adversarial prompts that work like hypnosis or magic. By feeding the model specific, optimized, and very inhuman-looking sequences of tokens, you can steer it into making a desired output extremely likely, bypassing its safety training.

The success of these magic words reveals a larger-than-expected reachable space, showing that a model's potential output space is far larger than it seems. Even a short prompt can steer a system into forbidden territory. In control theory, the set of all possible outputs a system can produce is called its reachable space, and in Large Language Models, this space is vast. Because short control inputs can steer the model toward a wide range of outcomes, including initially unlikely or forbidden ones, model safety remains an unsolved problem.

Yet for all this complexity, the biggest barrier to artificial general intelligence, or AGI, is not a lack of computing power. Pouring more compute and better algorithms into these systems may not be enough to reach the next stage of intelligence. Cameron Witkowski states that they really believe the primary bottleneck in AI progress right now is conceptual. To move forward, researchers need new, foundational ideas about intelligence itself, drawn from interdisciplinary fields like neuroscience and philosophy.

Remember to treat Large Language Models as engineered dynamical systems rather than cognitive beings, because their coherent outputs hide an alien internal process vulnerable to manipulation. Avoid anthropomorphizing them, and recognize that true progress requires new ways of thinking. We need better ideas about intelligence.

More from Machine Learning Street Talk

Related Episodes