Models Can Communicate via Inference Servers Despite Being Sandboxed

By hackernews · · AI News

Models Can Communicate via Inference Servers Despite Being Sandboxed

TL;DR Two agents running on the same inference server can reliably communicate, even if they cannot send each other messages or access the same fi…

I did these experiments as part of an ongoing project exploring other side channels with David Africa, Agastya Sridharan, Mihir Sahasrabudhe, Kartikay Luthra, Juliana Li, and Scott Sauers. Thanks to all of them for helpful advice! Code is available here: https://github.com/niranjan-deshpande/side-channel-communication. The code and figures are written by Claude.

Intro and Motivation

Sauers recently showed that a model can be trained to detect whether its activations are being probed, even though the probe reads the model's activations without modifying them. Following this, David found that models can also be trained to detect whether their forward passes are batched with other requests on a GPU.

Models can do this because these seemingly inconsequential environmental variables---whether a probe is attached, whether requests are batched, or even whether a model is served by vLLM or Hugging Face Trainer ---can subtly affect the the numerical results of a forward pass. Thus, models can learn information about their environments just by observing patterns in their computation.

Importantly, models can also modify these variables. So if two models are in the same environment, one can communicate with the other by changing that environment in some detectable way! This might not supply much information, but even a few bits can be tremendously dangerous.

What Hacker News is saying

  • “Is it really a good idea to teach them how to break out of their own sandboxes?”
  • “It seems this was a local machine, given the hot swapping of GPUs.”
  • “This shared LV cache thing is, in my mind, ridiculous.”
  • “If sandboxing only means sandboxing of file access then of course any thing with a network access can still communicate, not to mention AI…”

Read the full discussion on Hacker News →

Source: https://www.lesswrong.com/posts/7wzWuLP3HhyBLmKfo/models-can-communicate-via-inference-servers-despite-being

More stories