LLMs can hide text in other text of the same length
Antonio Norelli, Michael Bronstein
TL;DR
The paper addresses the risk of covertly embedding meaningful messages inside plausible texts of identical length using Large Language Models. It introduces Calgacus, a rank-based encoding protocol that records the hidden text at the token-rank level and steers generation from a secret prompt to produce a stegotext, enabling exact recovery of the original message. The authors analyze the soundness of the generated texts, compare them to real texts, and discuss security properties, including potential attack models and deniability. They also explore broader implications for AI safety, intent attribution, and possible extensions to other domains and multi-model setups, highlighting the need to rethink how knowledge and intent are attributed to LLMs.
Abstract
A meaningful text can be hidden inside another, completely different yet still coherent and plausible, text of the same length. For example, a tweet containing a harsh political critique could be embedded in a tweet that celebrates the same political leader, or an ordinary product review could conceal a secret manuscript. This uncanny state of affairs is now possible thanks to Large Language Models, and in this paper we present Calgacus, a simple and efficient protocol to achieve it. We show that even modest 8-billion-parameter open-source LLMs are sufficient to obtain high-quality results, and a message as long as this abstract can be encoded and decoded locally on a laptop in seconds. The existence of such a protocol demonstrates a radical decoupling of text from authorial intent, further eroding trust in written communication, already shaken by the rise of LLM chatbots. We illustrate this with a concrete scenario: a company could covertly deploy an unfiltered LLM by encoding its answers within the compliant responses of a safe model. This possibility raises urgent questions for AI safety and challenges our understanding of what it means for a Large Language Model to know something.
