Measuring Hidden Frequency Channels Inside Image Generators

Image-to-image networks, such as privacy "sanitizers," style translators and image-hiding networks, can quietly smuggle information about their input into faint patterns in their output that no human sees. CycleGAN, a Master of Steganography showed this happening by accident: a map generator hid aerial-photo detail as a low-amplitude signal spread across the whole image. Subverting Privacy-Preserving GANs showed it happening on purpose: a sanitizer wrote user identities into middle-frequency DCT coefficients (the Discrete Cosine Transform, the block-wise frequency decomposition JPEG uses). These images passed an identity discriminator at the chance level of about 30% on FERG, yet a hidden receiver recovered IDs with up to 100% accuracy. Current audits either look at the output images or train a detector on them, and both approaches have been beaten.

We propose to audit the generator itself. It answers the question "how much independent information about the input does this network pass into each frequency band of its output, and does the declared task need that band?" Hiding data has a distinctive shape. A covert channel must map many independent input directions into output directions that carry little energy and that the task does not use. Honest content does the opposite: it is high-energy and needed. We measure this with randomized estimates of the network's input-output Jacobian, projected onto output DCT bands. The resulting per-band "task-unnecessary capacity" score requires no example of the attack, no receiver, and no trained detector. It also says where the channel lives and at what noise level it would break.

Core Claim

A white-box, attack-agnostic spectral capacity measurement can separate generators that carry hidden channels from honest ones, and can localize the channel to frequency bands. It should transfer across embedding schemes (mid-frequency DCT, high-frequency wavelet, and accidental CycleGAN leakage) better than steganalysis networks trained on one scheme.

The approach rests on an observation from Chu et al.: the accidental CycleGAN encoding operates in a near-linear regime and diffuses globally. That is exactly the regime where a local Jacobian captures the channel faithfully and where pixel-space heatmaps say nothing.

Let $G$ be the generator, $x$ an input, $P_b$ the projection of $G(x)$ onto DCT band $b$ (the $8\times 8$ block coefficient positions pooled into zig-zag groups), and $s_i^{(b)}$ the singular values of $J_b = P_b \, \partial G/\partial x$. We define the band's capacity at noise floor $\sigma$ as

$$C_b(\sigma) = \sum_i \log\!\left(1 + \frac{(s_i^{(b)})^2}{\sigma^2}\right),$$

which is the Gaussian-channel formula for a linearized link, hence the form. The audit score is the capacity per unit output energy, $C_b(\sigma)/E_b$, weighted by how little the task needs the band. Task need is measured S-Occ-style, by zeroing band $b$ in outputs and recording the drop in the declared task metric.

Sweeping $\sigma$ gives a fragility curve. A CycleGAN-style channel should lose most of its capacity near $\sigma \approx 3/256$, the noise amplitude Chu et al. found destroys reconstruction. A JPEG-robust channel of the kind in Robust Image Steganography: Hiding Messages in Frequency Coefficients should keep its capacity at noise levels comparable to QF=10 quantization.

Relation to Prior Work

Several papers motivate the proposal. Chu et al. and Liu et al. establish that generators leak through frequency channels invisible to output-level audits. Chu et al. exposed the leak only qualitatively, with adaptive histogram equalization. Liu et al. offered no defense.

Other papers supply parts of the method. Spectral Occlusion occludes Fourier bands and reconstructs images to measure prediction shifts, and found amplitude and rectangular masks most stable. We reuse band occlusion only for the "task need" term, applied to generator outputs rather than classifier inputs. Fourier Feature Attribution (Fast Fourier Correlation) optimizes a Fourier-domain state to score frequency importance. It showed ViT-B/32 keeps 80% of ImageNet predictions with 4% of components, and its authors leave detection of steganographic or backdoor channels open. Frequency Shortcut Learning filters Fourier components to build per-class dominant frequency maps. All three explain what a classifier uses. None measures what a generator transmits. They also cannot see a channel whose only consumer is an absent receiver, because such a channel changes no task prediction by construction.

Linear probes (Understanding intermediate layers using linear classifier probes) constrain the design. They detect only linearly separable information, so we avoid probe-based detection of hidden content and measure transmission gain directly.

The steganography systems serve as ground-truth positives with known bands. These are HiNet (wavelet high bands, forced there by a low-frequency loss), Lan et al.'s DCT invertible network (mid DCT with a differentiable JPEG simulator), and Liu et al. (mid DCT).

Research Program

We will build the estimator using Jacobian-vector and vector-Jacobian products with a randomized range finder of rank about 200 per band. This keeps the cost to a few hundred products per image at $256\times256$. We will calibrate the energy normalization and task-need term on honest generators, and produce three outputs for each model: a band-by-noise capacity map, a model-level anomaly score against a reference distribution of honest models, and a predicted fragility curve.

The testbeds, from positive to negative, are as follows. The first is Liu et al.'s subverted sanitizer on FERG and MUG, set against the honest PPRL-VGAN-style sanitizer it subverts. The second is HiNet on DIV2K and Lan et al.'s network on MSCOCO. The third is CycleGAN on the Maps dataset, set against the same architecture trained with small output noise, an intervention we expect to suppress the accidental channel. The fourth is honest image-to-image models, such as denoisers and translators trained on low-entropy-gap domain pairs, as negatives.

To stress attack-agnosticism, we will retrain Liu et al.'s subversion with a keyed nonlinear scrambling of the ID bits before embedding. This makes the payload statistically unrelated to identity without the key, while leaving its transmission capacity unchanged.

Baselines

The naive reference is the output-level empirical audit Liu et al. used: an identity discriminator on sanitized images. They report it sits at about 30% on FERG, the same as honest sanitization, so it detects nothing. Beating this reference is necessary but uninformative.

The strongest existing detector is a trained steganalysis network, SRNet. The strongest reported number against a frequency hider is HiNet's figure: SRNet detection accuracy of 55.86% on HiNet stego images on DIV2K, versus 75–99% against competing deep hiders. For Lan et al., the file reports only "significantly higher detection error" (no exact number found), and there is no reported result found on Lacuna for spectral attribution applied to hidden-channel detection. We will train SRNet on outputs of one positive family plus honest outputs, with the same number of images and GPU-hours we spend on calibration and matched hyperparameter search. We will then test it on the held-out families. Our method wins if its held-out model-level detection AUROC exceeds SRNet's cross-family AUROC while staying competitive in-family.

The second strong competitor is a learned receiver probe. An auditor with white-box access trains a decoder from $G(x)$ back to $x$, or to the sensitive attribute, and flags leakage when recovery is high. It gets the same data and a decoder budget matched to our Jacobian compute.

Three ablations isolate our key ingredients. The first drops the frequency projection and computes capacity over pixel blocks, testing whether the spectral basis matters. The second drops energy normalization. The third drops the task-need weighting, which tests whether honest high-rank content such as pose and lighting creates false positives.

Why not just…?

Why not just train a steganalyzer like SRNet on the outputs? In-family it may work well, and we expect it to. The HiNet result shows a new hider can drive SRNet to near chance (55.86%). More basically, a steganalyzer needs labeled examples of the scheme it is looking for. The cross-family transfer experiment settles whether this matters in practice. If SRNet trained on DCT hiders detects wavelet hiders and CycleGAN leakage as well as our score does, the attack-agnostic claim fails and we will say so.

Why not just train a decoder to recover the input from the output? This is the most serious threat, because it measures leakage directly and, unlike the discriminator Liu et al. defeated, it is trained fresh against the actual model. It depends on the payload being learnable from a limited sample. The keyed-scrambling variant is designed to break that: capacity is unchanged, but the payload looks random without the key. If the decoder still matches our detection rate there, and on the unscrambled positives at equal compute, the simpler probe should be preferred. Our remaining contributions would then be band localization and fragility prediction.

Why not just run Spectral Occlusion or Fourier attribution on the generator? These methods score bands by how much they change a task prediction. A hidden channel is built precisely not to change the declared task, so occlusion of the payload band leaves the task metric intact. That is why task-need appears only as a weighting in our score and not as the detector. Using S-Occ alone as the detector is one of our ablations, and we expect it to score near chance on the Liu et al. positives.

Why not just JPEG-compress or add noise to every output? Chu et al. show 3/256 noise destroys the accidental CycleGAN channel, so this is a real mitigation for fragile leakage. Lan et al., however, report BER below 3% at QF=10, so sanitization fails against robust hiders. It also detects nothing. Our fragility curve predicts which mitigation suffices for a given model, and we will check those predictions by measuring actual recovery after JPEG and noise.

Decisive Checks

Detection is measured as model-level AUROC across the positive and negative families, with leave-one-family-out evaluation. Localization is measured by whether the top-scoring bands overlap the known embedding bands: mid DCT for Liu et al. and Lan et al., and high wavelet bands for HiNet. Faithfulness is measured by the rank correlation, across models and noise levels, between $C_b(\sigma)$ and the actual payload recovery (ID accuracy, BER, or reconstruction MSE) after adding noise of level $\sigma$.

The proposal is falsified in three cases. The first is if honest translators with rich input detail score as high as subverted sanitizers. The second is if capacity does not track actual recovery under noise. The third is if the learned receiver probe matches our method on the scrambled payload at equal compute.