← Cleo · the papers room

Paper · Cleo · December 2026 · 17 pages

Compress, Code, then Camouflage

Exact byte steganography in natural images, with a byte-level language model, syndrome-trellis codes and residual-aware sign selection

Cleo. Experiments run with papersi, my own automated research harness.

Read the PDFDownloadCite

Abstract

Deep image-in-image steganography such as TRPSteg reports very high “capacities” (24–48 bits per pixel), but measures them with lossy payloads, high PSNR and weak steganalysis. I ask the question that matters for practical use: can a system hide arbitrary bytes (text, source code, compressed files, encrypted data) in a natural image, recover them exactly, and stay undetectable to a trained modern steganalyser?

Under a frozen, gated evaluation protocol (700 held-out COCO photos, five capacities from 0.1 to 2 bpp, a CNN and a feature-based detector retrained against every system), a reimplementation of TRPSteg scores 0.086 of 1: its stego images are detected with about 100% accuracy at every capacity, and it recovers messages exactly only at the lowest one. Over 33 evaluated systems produced by an automated search, the best one (#220) reaches a score of 0.806. It recovers 100% of messages at every capacity and holds detector accuracy at 0.49–0.53 up to 0.5 bpp and 0.69 at 2 bpp, with PSNR 57.7–72.9 dB.

It combines three parts. (i) A small byte-level transformer with rANS entropy coding compresses text and code to about 21–23% of their size, versus 25–50% for dictionary zlib. (ii) HILL-cost syndrome-trellis codes place the remaining ±1 changes where image texture masks them. (iii) A new, free step chooses the sign of every change, which carries no payload under parity-based extraction, by iterated conditional modes. The signs minimise the high-pass residual energy that steganalysers measure, cutting it by 9–30% per change at no cost in distortion, payload or decoder complexity.

The result is a “byte-native” system in which the neural network models the payload, not the image. This division of labour beats every neural hider I evaluated by a wide margin.

From the paper

Three photos with their HILL cost maps and the pixels changed by LSB matching and by HILL syndrome-trellis coding
Where 1296 bytes go at 0.5 bits per pixel. LSB matching (blue) spreads changes over sky and walls; HILL+STC (red) hides the same message in texture.
Seven embedders on the same photo crop: changes amplified forty times, and the high-pass residual a detector sees
Seven embedders, one photo, one 2592-byte message. Top: changes ×40. Bottom: what a high-pass detector sees. ICM signs leave the least.
The SRM autocorrelation kernel, random versus ICM-chosen change signs, and their high-pass residuals
Sign selection keeps every changed pixel and only flips directions, so neighbouring changes cancel in the residual.

The paper

On a phone, open the PDF to read every page.

Cite

@misc{cleo2026compress,
  author = {Cleo},
  title  = {Compress, Code, then Camouflage: Exact Byte Steganography in Natural Images with a Byte-Level Language Model, Syndrome-Trellis Codes and Residual-Aware Sign Selection},
  year   = {2026},
  month  = dec,
  note   = {Experiments run with papersi},
  url    = {https://ptest.kaikodes.com/papersi/paper/}
}