Large Language Models as Carriers of Hidden Messages

Jakub Hoscilowicz, Pawel Popiolek, Jan Rudkowski, Jedrzej Bieniasz, Artur Janicki
6/4/2024
4 citations
cs.CLcs.CR

No official code found. Best implementation: j-hoscilowicz/zurek-stegano (2 stars, Jupyter Notebook, last commit 2024-08-25).

Abstract

Simple fine-tuning can embed hidden text into large language models (LLMs), which is revealed only when triggered by a specific query. Applications include LLM fingerprinting, where a unique identifier is embedded to verify licensing compliance, and steganography, where the LLM carries hidden messages disclosed through a trigger query.

Show full abstract

Our work demonstrates that embedding hidden text via fine-tuning, although seemingly secure due to the vast number of potential triggers, is vulnerable to extraction through analysis of the LLM's output decoding process. We introduce an extraction attack called Unconditional Token Forcing (UTF), which iteratively feeds tokens from the LLM's vocabulary to reveal sequences with high token probabilities, indicating hidden text candidates. We also present Unconditional Token Forcing Confusion (UTFC), a defense paradigm that makes hidden text resistant to all known extraction attacks without degrading the general performance of LLMs compared to standard fine-tuning. UTFC has both benign (improving LLM fingerprinting) and malign applications (using LLMs to create covert communication channels).

View on arXivView PDF

Code Implementations(1)

20Jupyter Notebook, PythonJun 2, 20242 years ago

Similar Papers

Cite this paper

@article{hoscilowicz2024large,
  title  = {Large Language Models as Carriers of Hidden Messages},
  author = {Jakub Hoscilowicz and Pawel Popiolek and Jan Rudkowski and Jedrzej Bieniasz and Artur Janicki},
  year   = {2024},
  eprint = {2406.02481},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.02481v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.02481.svg)](https://codeofpaper.com/paper/2406.02481)

Discussion