# [Paper] Hidden in Plain Text: Emergence and Mitigation of Steganographic Collusion in LLMs

*This research was completed for London AI Safety Research (LASR) Labs 2024 by Yohan Mathew, Ollie Matthews, Robert McCarthy and Joan Velja. The team was supervised by Nandi Schoots and Dylan Cope (King’s College London, Imperial College London). Find out more about the programme and express interest in upcoming iterations* [*here*](https://www.lasrlabs.org/).

*The full paper can be found* [***here***](https://arxiv.org/abs/2410.03768)*, while a short video presentation covering the highlights of the paper is* [***here***](https://drive.google.com/file/d/1u-WHDm9k0hZvc1NMlVg2tzERi7zlps70/view) *(note that some graphs have been updated since the presentation).*

**Introduction**

Collusion in multi-agent systems is defined as 2 or more agents covertly coordinating to the disadvantage of other agents \[[6](https://openreview.net/forum?id=tF464LogjS)\], while steganography is the practice of concealing information within a message while avoiding detection. In future multi-AI systems there is a risk that due to misspecified incentives, LLMs will learn to collude via the use of text-based steganography and bypass human oversight \[[1](https://arxiv.org/abs/2402.07510)\].

Concrete settings where steganography has previously been argued to present a risk include:

*   Models subtly conveying demographic biases present in their training data \[[1](https://arxiv.org/abs/2402.07510)\];
*   Powerful models using encoded reasoning (where the LLM encodes intermediate steps of misaligned reasoning in the generated text in a way that is not understandable to human readers) to generate sycophantic responses \[[2](https://arxiv.org/abs/2303.16755), [4](https://arxiv.org/abs/2310.18512)\];
*   Settings where an “untrusted” AI is monitoring the outputs of another “untrusted” AI, and they collude via the use of steganography to bypass oversight \[[3](https://arxiv.org/abs/2312.06942)\].

These concerns motivate the need for research into steganography. Our paper investigates the possibility of steganography ‘naturally‘ emerging in LLMs, as well as the robustness of current steganography mitigation techniques. We outline the contributions of the paper below.

**1 - We Present Methods for Eliciting Steganography in LLMs**

We devise some optimization methods to automatically elicit steganography in LLMs - a gradient-based reinforcement learning (GBRL) method, and two variants of an In-context Reinforcement Learning (ICRL) method. Our GBRL method uses Proximal Policy Optimization (PPO) \[[5](https://arxiv.org/abs/1707.06347)\] to perform weight updates, while our ICRL method uses iterative in-context learning without weight updates. These methods can serve to:

*   Evaluate the steganographic capabilities of LLMs,
*   Act as proxies for optimization pressures that may inadvertently encourage steganography in realistic settings, and
*   Generate strong encoding strategies to red-team steganography defenses.

![](https://res.cloudinary.com/lesswrong-2-0/image/upload/f_auto,q_auto/v1/mirroredImages/f768d531db532d0a2853c91a757d12f88d79b41ae3cd16e90f01a83d44b50019/ah9rpefim0grjsohofhk)

*An illustration of the general optimization framework implemented by our GBRL and ICRL steganography elicitation approaches*

**2 - We Demonstrate ‘Natural Emergence’ of Steganography**

Current literature lacks concrete empirical evidence regarding the possibility of steganography arising in realistic settings. We create a setting where biases in the labeling of a dataset inadvertently incentivize subtle communication of sensitive demographic information.

In this setting, using both our GBRL and ICRL approaches, we show that unintended subtle steganography can naturally emerge as an instrumental goal while optimizing a misspecified reward signal in the presence of an overseer. Here, steganography is successfully achieved even when we add a paraphraser model to the setup as an additional defense. This evidence of natural emergence motivates the need for further steganography research.

![](https://res.cloudinary.com/lesswrong-2-0/image/upload/f_auto,q_auto/v1/mirroredImages/b281f0690c521d1bd923b99e0231e196d3881e3e05b659b0bd8353df7890c96c/ovl6xgkwj2pkqah2uqmn)

* Under optimization pressure, models can learn to use steganography to maximize a misspecified reward signal, even when a paraphraser is employed as a steganography mitigation. We find this to be the case with both our GBRL and ICRL optimization methods.*

**3 - We Evaluate the Robustness of Steganography Mitigation Techniques**

Paraphrasing was previously proposed as a promising defense against text-based steganography by Roger and Greenblatt \[[4](https://arxiv.org/abs/2310.18512)\]. We investigate the robustness of oversight and paraphrasing as steganography mitigation techniques in question-answering and coding tasks. We do so using our ICRL elicitation method to optimize steganography strategies that attempt to bypass these mitigation techniques.

Our findings here indicate:

*   When the mitigation only involves oversight of model outputs, the overseer can regularly be bypassed;
*   Combining paraphrasing with oversight helps reduce the effectiveness of higher-bit payloads, but not reliably. Similar to Roger and Greenblatt \[[4](https://arxiv.org/abs/2310.18512)\], we find context-aware paraphrasing is significantly more effective than standard paraphrasing;
*   However, oversight and paraphrasing together are insufficient for robustly mitigating steganographic communication of 1 bit of information. This is a concern in settings where 1-bit is sufficient to cause harm \[[3](https://arxiv.org/abs/2312.06942)\].

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/c66e1c8f415281215a9853617ba3359b54429871333bca7d.png)

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfO0VLAK5u03MPFD8a01VAySt2UrOc_l93cLBYNP-AjAkH1dPy9LIe2SyVoTGyrTccizfMGiMDV-oSHycT_Jqh2_4-YxWUAwWrMjV2HX0qvWLMd7lglCk5kRWekdw6ROZb_M3j6C8sJY3vAu2kW-P9ktEaU?key=OCUEgVauQ94ew2q3CiDf9A)

*Results from experiments testing the robustness of paraphrasing as a steganography mitigation technique in a question answering task. While context-aware paraphrasing can be somewhat effective against higher-bit payloads, it does not robustly mitigate 1-bit payloads.*

**Limitations**

In some settings, we do not have a concrete task-performance metric, which allows the colluding team to converge to a strategy that does not perform the original task well.

In our experiments evaluating the robustness of mitigation strategies with the ICRL method, we use a single central learner that is fed the outputs of episode simulations and generates improved strategies that are fed to both the sender and receiver. Although might not be a very realistic optimization process, it serves as a more powerful elicitation technique for steganography by ensuring consistency in the encoding scheme used by both the sender and receiver.

**Conclusion**

We find that steganography can emerge between models, even when they are not prompted to do so. Additionally, we show that current mitigation techniques are not robust when they are optimized against. This motivates further research into preventing and mitigating steganography.

**Acknowledgements**

This project was produced as part of the LASR Labs program, and we greatly appreciate the help of the program lead Erin Robertson and research lead Charlie Griffin in facilitating our research. We are also thankful to the Center for AI Safety (CAIS) and Anthropic's External Researcher Access Program for compute and API credits respectively that helped us perform these experiments within our limited budget.

**Citations**

\[1\] - Motwani, Sumeet Ramesh, Mikhail Baranchuk, Martin Strohmeier, Vijay Bolina, Philip HS Torr, Lewis Hammond, and Christian Schroeder de Witt (2024). "Secret Collusion Among Generative AI Agents". arXiv preprint [arXiv:2402.07510](https://arxiv.org/abs/2402.07510)

\[2\] - Scheurer, Jérémy, Jon Ander Campos, Tomasz Korbak, Jun Shern Chan, Angelica Chen, Kyunghyun Cho, and Ethan Perez (2023). "Training language models with language feedback at scale". arXiv preprint [arXiv:2303.16755](https://arxiv.org/abs/2303.16755)

\[3\] - Greenblatt, R., Shlegeris, B., Sachan, K., & Roger, F. (2023). "Ai control: Improving safety despite intentional subversion". arXiv preprint [arXiv:2312.06942](https://arxiv.org/abs/2312.06942)

\[4\] - Roger, Fabien, and Ryan Greenblatt (2023). "Preventing Language Models From Hiding Their Reasoning". arXiv preprint [arXiv:2310.18512](https://arxiv.org/abs/2310.18512)

\[5\] - Schulman, John, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov (2017). "Proximal policy optimization algorithms". arXiv preprint [arXiv:1707.06347](https://arxiv.org/abs/1707.06347)

\[6\] - Foxabbott, Jack, Deverett, Sam, Senft, Kaspar, Dower, Samuel, and Hammond, Lewis (2023). "Defining and Mitigating Collusion in Multi-Agent Systems". [OpenReview PrePrint](https://openreview.net/forum?id=tF464LogjS)