Reversible data hiding means hiding a message inside an image so that the receiver can pull out the message and then restore the original image bit for bit. It is used for medical and forensic images, where any lasting change to the pixels is unacceptable. Its central difficulty is bookkeeping. Pixels live in the range 0 to 255, so pixels near the edges of that range can overflow when they are nudged. Every scheme therefore has to record which pixels it skipped, usually in a "location map", and that record has to be hidden inside the same image as the message. On textured images the record can eat the whole capacity. Separately, fully homomorphic encryption (FHE) lets a cloud server run a neural network directly on encrypted data. It pays a heavy "cryptographic tax": ciphertexts are thousands of times larger than the data, and the scheme's numeric range has to be very large so the network's many multiplications do not corrupt the result.
This note starts from one observation. The large numeric range that FHE inference forces on every freshly encrypted pixel is far more than an 8-bit pixel needs. Most of that precision sits unused until the network consumes it. We propose to hide the message in the fractional precision of each encrypted pixel, above the encryption noise floor and below one gray level. The pixel's integer range is never touched, so there are no overflow cases, no location map, and no room-reservation step. The perturbation is smaller than one quantization step, so the server can run encrypted classification on the marked ciphertext without removing the message first. The key holder decrypts once, recovers the exact image by rounding, and reads the message from the fraction.
Core Claim
In CKKS, an FHE scheme for approximate real-number arithmetic, a pixel $p \in \{0,\dots,255\}$ is encoded as roughly $\Delta p$, where the scale $\Delta$ is typically $2^{30}$ to $2^{50}$ so that deep inference circuits stay accurate. A data hider who holds only the public key can add a plaintext to the ciphertext and turn the encrypted value into
$$v = p + \sum_{j=1}^{k} b_j 2^{-j}, \qquad k \le \log_2 \Delta - \lambda_e - m,$$
where $b_j$ are payload bits, $\lambda_e$ is the bit-size of the fresh encryption noise, and $m$ is a safety margin in bits. The bound comes from requiring the lowest payload bit, $\Delta 2^{-k}$ in encoded units, to stay above the noise so that rounding at decryption is error-free. Because $0 \le v - p < 1$, the integer part always equals the original pixel. Capacity therefore does not depend on image content, and no side information is needed.
The claim to test has three parts. First, net capacity per pixel is set by the parameters $\Delta$ and $\lambda_e$ and does not collapse on textured images. Second, when the ciphertext parameters are already fixed by an inference workload, the extra ciphertext bytes per payload bit are zero. Third, inference accuracy on marked ciphertexts matches unmarked ones to within the effect of sub-gray-level input noise.
This moves the metadata overhead of reversible data hiding into modulus precision that FHE already carries. The two overheads become a single budget that can be measured. The novelty is in making that accounting explicit and testing it, not in new cryptography.
Relation to Prior Work
Encrypted-domain reversible data hiding has so far used one of two tools, and neither lets a server compute on the data. Improved Reversible Data hiding based on Encrypted Signals with Public Key Cryptosystem splits each pixel into an even part and a remainder. Both parts are encrypted with Paillier, an additive-only public-key scheme, and one bit is embedded per pixel by homomorphically adding 1. The paper reports 1.0 bpp at about 51.14 dB PSNR. The same paper motivates this proposal in two ways. Its parity trick is already a small instance of "embed in headroom the plaintext space provides". Its cost, two full Paillier ciphertexts per pixel to carry one bit, is exactly the expansion that batched lattice schemes avoid. Homomorphic Encryption-Based Robust Reversible Watermarking for 3D Model likewise uses Paillier, shifting histograms of per-patch mesh directions, at three bits per patch. Neither work supports multiplication, and neither can host neural inference.
The stream-cipher schemes take a different route: they reserve room before encryption and compress the side information. Reversible data hiding in encrypted images based on pixel prediction and multi-MSB planes rearrangement reports 3.498 bpp on BOSSbase. A High-Capacity Reversible Data Hiding Scheme for Encrypted Hyperspectral Images Using Multi-Layer MSB Block Labeling and ERLE Compression compresses its label maps by 19.46% to 85.38% with run-length coding. These methods reach high capacity only by fighting their metadata. The XOR keystream they rely on permits no third-party computation. We keep their goal, exact recovery at high capacity, and remove their bookkeeping entirely.
Two plaintext-domain results act as constraints on this proposal. Efficient Pixel Prediction Algorithm for Reversible Data Hiding shows capacity falling from 53,167 bits on F-16 to 9,493 bits on Baboon. That is texture-driven collapse, and our scheme should be immune to it by construction. StegFormer documents how clipping to the valid pixel range destroys reversibility. We avoid clipping because the marked value never has to be stored as an 8-bit integer.
On the FHE side, the method we reuse comes from polynomial-approximation inference under RNS-CKKS. Optimizing Layerwise Polynomial Approximation for Efficient Private Inference on Fully Homomorphic Encryption: A Dynamic Programming Approach assigns a different polynomial degree to each layer and reports a 3.02x speedup on ResNet-20 for CIFAR-10. Accurate Low-Degree Polynomial Approximation of Non-Polynomial Operators for Fast Private Inference in Homomorphic Encryption uses static input scaling to keep activations inside the range where its polynomials are accurate. Both fix the scale and modulus that set our capacity bound. Both also warn that polynomial activations blow up outside their fitting range. That warning is the main risk to our third claim, because a payload perturbation could push an activation past the edge of that range. Circa motivates the opposite expectation: it finds networks tolerate a 10% fault rate with under 1% accuracy loss, which suggests sub-gray-level input perturbations should be harmless.
Research Program
We will build the embedding as three steps. The owner encrypts CKKS-packed images at parameters chosen by an existing inference pipeline. The data hider adds an encoded payload plaintext, which costs one plaintext-ciphertext addition per ciphertext and needs no key. The key holder decrypts, rounds to recover $p$, and reads the fractional bits.
The analysis has three strands. The first derives and then empirically verifies the largest $k$ that gives zero bit errors across many images, as a function of $\Delta$, ring dimension, and noise distribution. We will include the extra noise from ciphertext refreshing, called sanitization, if circuit privacy is required. The second measures what the server's inference does to the embedded fraction. The payload must survive only until decryption of the original ciphertext; inference runs on a copy. We therefore measure only the change in the prediction, and do not try to recover the payload from the output. The third defines one cost metric for both fields: payload bits delivered per byte transmitted and stored, reported together with inference accuracy and latency. This metric lets the metadata overhead of reversible data hiding and the ciphertext overhead of FHE be traded against each other directly.
We will also build an integer variant in BFV, an exact-integer FHE scheme, with the payload in the low bits of a plaintext value $2^k p + b$. This isolates whether the fractional placement matters. In BFV the payload is exact but distorts inference unless the server divides by $2^k$, and division is expensive homomorphically.
Baselines
The naive reference point is to send the payload as its own encrypted object next to the image ciphertext. Its cost is at least one extra ciphertext per batch, and it gives no single-object binding between image and payload. We run it at identical CKKS parameters and report the byte difference. Beating it means delivering the same payload with zero additional ciphertext bytes and no measurable accuracy change.
The strongest encrypted-domain competitor on capacity is the multi-MSB rearrangement scheme of Yin et al., which reports an average embedding rate of 3.498 bpp on BOSSbase with MSE = 0. We rerun it on the same BOSSbase, USC-SIPI, and classic test images. We report its net rate after side information, and its capacity spread between smooth and textured images. It offers no computation, so we compare on capacity, exactness, and bytes per payload bit. Matching or exceeding 3.498 bpp net, with lower variance across textures, counts as beating it.
The closest homomorphic competitor is the Paillier parity scheme of Li et al., which reports 1.0 bpp maximum payload at about 51.14 dB PSNR on USC-SIPI. We reimplement it at a standard Paillier modulus on the same 500-image USC-SIPI protocol. We report bpp, the PSNR of the decrypted marked image, ciphertext bytes per pixel, and embedding time. Beating it means higher bpp at no less PSNR, with a large reduction in bytes per payload bit.
For inference, the reference is the same RNS-CKKS ResNet-20 pipeline with polynomial activations assigned layer by layer as in OLA, run on unmarked ciphertexts with identical parameters, seeds, and weights. OLA reports a 3.02x speedup over Minimax degree assignment on ResNet-20. No reported result was found on Lacuna for OLA's encrypted top-1 accuracy on CIFAR-10, so we measure the unmarked accuracy ourselves. Success means the accuracy difference is within the seed-to-seed spread and latency is unchanged.
The ablation isolating the key ingredient is the BFV integer-placement variant, run at matched capacity. It tests whether putting the payload below one gray level is what lets inference proceed without stripping it.
Why not just…?
Why not just send the payload as a separate ciphertext or signed sidecar? This is the real threat, and in many deployments it may be good enough. The proposal wins only if two things hold: the headroom payload costs zero bytes at inference-dictated parameters, and binding the payload to the image matters, for example in provenance or audit trails for medical images. The separate-ciphertext baseline measures the first directly. If the byte savings are negligible compared with the roughly 56 GB per inference that A Systematic Comparison of Encrypted Machine Learning Solutions for Image Classification reports for HE-Transformer, we will say that plainly. The contribution then shrinks to exact recovery at no cost in accuracy, rather than bandwidth.
Why not just put the payload in unused packing slots? A 32×32×3 image uses far fewer slots than a CKKS ciphertext offers, so empty slots give "free" capacity with no perturbation at all. This works only when slots are idle. Batched inference fills slots with other images or rotated copies, as in CryptoNets-style packing. We will report capacity under fully packed layouts, where the slot method yields zero and headroom embedding does not. We will also report the unpacked case, where the slot method is a legitimate equal competitor.
Why not just use a stream-cipher reversible data hiding scheme and decrypt for inference? Decrypting at the server defeats the purpose of encrypted inference. The capacity comparison against Yin et al. also shows whether that family's side information costs it anything relative to headroom embedding.
Proposed Experiments
The first decisive check tests texture independence. On the 512×512 classic images, F-16 and Baboon must yield identical net capacity with zero bit errors and MSE = 0 over all of BOSSbase and USC-SIPI. This directly contrasts with the 53,167 versus 9,493 bit collapse reported for pixel prediction. We also sweep $k$ upward until the first decoding error appears, to confirm that the capacity bound tracks $\log_2 \Delta - \lambda_e$.
The second check tests inference transparency. We run encrypted ResNet-20 and ResNet-32 on CIFAR-10, and a smaller CNN on the malaria cell images that stand in for a medical use case. The payload sits at the maximum safe $k$ and, adversarially, at the worst-case fraction for every pixel. We compare accuracy and the distribution of activations before each polynomial against the unmarked run. If any activation moves outside the fitted range under the static scaling of SMART-PAF, the third claim fails at that depth, and we will report it.
The third check tests the unified cost. We report payload bits per transmitted byte for our scheme, Paillier parity, stream-cipher RRBE, and the separate-ciphertext baseline, all at matched security levels. The proposal is worth pursuing further only if it beats the separate-ciphertext baseline on bytes while showing no accuracy loss.
References
- Improved Reversible Data hiding based on Encrypted Signals with Public Key Cryptosystem
- Homomorphic Encryption-Based Robust Reversible Watermarking for 3D Model
- Reversible data hiding in encrypted images based on pixel prediction and multi-MSB planes rearrangement
- A High-Capacity Reversible Data Hiding Scheme for Encrypted Hyperspectral Images Using Multi-Layer MSB Block Labeling and ERLE Compression
- Efficient Pixel Prediction Algorithm for Reversible Data Hiding
- StegFormer: Rebuilding the Glory of Autoencoder-Based Steganography
- Optimizing Layerwise Polynomial Approximation for Efficient Private Inference on Fully Homomorphic Encryption: A Dynamic Programming Approach
- Accurate Low-Degree Polynomial Approximation of Non-polynomial Operators for Fast Private Inference in Homomorphic Encryption
- Circa: Stochastic ReLUs for Private Deep Learning
- A Systematic Comparison of Encrypted Machine Learning Solutions for Image Classification
- CryptoNets: Applying Neural Networks to Encrypted Data with High Throughput and Accuracy