Abstract
Reversible data hiding (RDH) by prediction-error expansion (PEE) can adapt, per block, the predictor, the threshold or the pixels that carry data. We asked which choice matters most when all side information is paid for. In one raster PEE engine we compared eleven block-adaptive variants and two fixed-predictor references at equal net payload (0.05–0.20 bits per pixel) on 200 unused BOSSbase images and four replication sets. Each variant was run with a nominal header (accounted) and with all side information embedded and its configuration re-searched (blind). All 7800 blind primary-set runs fitted and were decoded exactly. Adding a 16 × 16 or quadtree predictor map to the best fixed predictor gained +0.17 to +0.29 dB. A per-block threshold map or a map-free causal pixel selection gained +2.1 to +2.6 dB. Under a common construction objective, threshold maps exceeded predictor maps by 1.85–2.33 dB (primary set, accounted protocol). The ordering held on aerial images and chest radiographs, and partly on textures. A reimplemented two-layer sorting scheme exceeded every raster variant by over 1 dB where it fitted, and pixel-value ordering mostly exceeded them where it fitted. In this engine, choosing which pixels carry data mattered far more than choosing the predictor.
1. Introduction
Reversible data hiding (RDH) embeds a message into a cover image so that both the message and the exact cover can be recovered. Since the development of difference expansion (DE) [1] and histogram shifting [2], many high-fidelity schemes for natural grey-scale images have expanded the prediction error of each pixel (prediction-error expansion, PEE) [3] and combined it with sorting or selection of pixels [4,5], pixel-value ordering (PVO) [6], pairwise or multiple-histogram embedding [7,8] and many other refinements, reviewed in [9,10].
A recurring design choice is block-wise adaptation. Some schemes combine several predictions per pixel [11,12]; block-wise schemes divide the image into blocks and, for each block, choose a predictor from a pool [13,14] or a threshold, or whether the block is used at all. Each choice must either be transmitted (a map, which consumes payload) or be recomputable by the decoder from already restored data (a causal rule, which costs nothing but may choose worse). Gains from such adaptation can only be compared if the side information is charged consistently and decodability is verified; Kim et al. [15] made this point for overflow and position information and introduced a single-ledger accounting with a self-bootstrapping decoder in which the carrier pixels reserved for side information are themselves charged.
This work grew out of an evaluation of a map-free causal predictor-selection method of our own [16], which did not outperform a transmitted map once the side information was charged consistently. Rather than proposing another scheme, we ask a comparative question: within one engine, at equal net payload and with the side information charged, how much does each kind of block-wise adaptation contribute? We compare (i) predictor selection with a transmitted map on a fixed grid, with a cost-aware map and with a quadtree; (ii) map-free causal predictor selection; (iii) per-block threshold adaptation including skipping blocks; (iv) map-free selection of pixels by causal complexity, in the spirit of [5]; (v) the combination of predictor and threshold maps; and, as external references, (vi) a two-layer engine with complexity sorting [4] and (vii) pixel-value ordering [6] and an improved version of it (Section 3.8).
The contributions are (1) a single raster PEE engine, checked against the engine of [16] and by randomised decoding tests, in which the variants share the embedding arithmetic, the predictors, the net payload and the final selection by realised peak signal-to-noise ratio (PSNR) with all side information charged, and differ in what they adapt and in the rule that builds their maps (Section 3.3), with a check in which all maps are built by the same objective (Section 4.2); (2) a protocol whose predictions were fixed before a set of 200 previously unanalysed BOSSbase images was examined, plus four replication sets and three further image categories (textures, aerial images, chest radiographs); (3) two protocols for the side information, an accounted one and a blind one in which every variant searches its own configuration and is decoded from the marked image alone, with a sensitivity analysis of header and map costs; (4) the observation that, in this engine and on these data, a per-block threshold map or causal pixel selection gained about 2.1–2.6 dB over the best fixed predictor, against about 0.2–0.3 dB for a 16 × 16 or quadtree predictor map; and (5) an account of the evaluation errors we found in our own code during the study.
Relation to earlier work. This study differs from our earlier work [16] in its question and in its evidence. Our earlier work [16] proposed one map-free method (causal predictor selection on 8 × 8 blocks, CB-8 here) and compared it with a few baselines. Here, CB-8 is one of thirteen variants, and the object of study is the comparison between kinds of adaptation under a common accounting of side information, which [16] did not address. Sachnev et al. [4] and Li et al. [5] introduced sorting and pixel selection as parts of complete schemes, and Ma et al. [11] couple the choice of prediction with the exclusion of pixels. Each of these works reports the gain of a whole scheme over earlier schemes. We do not propose a new selection rule: SEL-TAU and SEL-32 are deliberately simple forms of the idea of [4,5]. The contribution is the controlled decomposition: the same engine, predictors and net payload for every variant and the same scan order for all but CB-8 and SEL-TAU (Section 3.1), the side information of each kind of adaptation charged and transported, and a measurement of how much each kind contributes.
2. Related Work
PEE was introduced in [3]; sorting pixels by a local complexity measure and embedding in the smoothest first was introduced with a rhombus predictor and a two-layer scheme in [4]; adaptive PEE with explicit pixel selection was proposed in [5]. Improved embedding for prediction-based schemes [17] and local least-squares prediction [18] address the predictor and the expansion rule. Several schemes combine multiple predictions per pixel [11,12]; content-adaptive block sizes for the predictor were studied in [13]; and PVO frameworks were compared with multi-predictor mechanisms in [19]. Pixel-value ordering [6] predicts the largest and the smallest value of a block from the other pixels of the same block and embeds only in smooth blocks; we use it, and an improved version, as references (Section 3.8). Surveys of prediction methods for RDH are given in [9,10].
Three works were read in full: [14] and [15] (open access) and, during the revision, [4] (Section 3.8). Zhang et al. [14] select, for RDH in encrypted images, one of 16 predictors per 8 × 8 block by the sum of absolute errors, store the index map (4 bits per block, compressed with recursive Huffman coding) together with the compressed prediction errors, and report that 8 × 8 blocks balanced map size and prediction better than 4 × 4 or 16 × 16; the setting (vacating room by compression) differs from PEE, and threshold or pixel selection is not studied.
Ma et al. [11] (pages 71–74 of the author-uploaded version read; the remaining pages were not accessible) sort k predictions of each pixel and use the minimum or the maximum according to whether the pixel lies below or above them; pixels lying between the minimum and the maximum are not predicted and are left unchanged, and a pixel selection strategy is added. This mechanism decides per pixel, needs no block map and couples the choice of prediction with the exclusion of pixels; our results on block-wise predictor maps therefore do not extend to it, and its exclusion of pixels is closer to the pixel-selection variants of this study than to the predictor maps.
Kim et al. [15] propose an accounting framework for position-map-free PEE and PVO schemes, including the transport of the original least significant bits (LSBs) of the carrier pixels that hold the side information, compare side-information codecs and two baselines, and verify a blind decoder; they do not compare kinds of block adaptation. Our blind protocol (Section 3.2 and Section 4.6) follows the same principle of charging the reserved carrier pixels.
In earlier work, Coltuc and Tudoroiu showed that, above 1 bit per pixel (bpp), multibit expansion of the prediction error outperforms multilevel embedding [20], and Tudoroiu and Coltuc compared, for multibit PEE, a location map (LM), histogram shifting (HS) and a block map (BM) in which a block is embedded only if all its pixels can be embedded, which divides the size of the map by the number of pixels per block [21]; at high capacity the block map gave the best results. Both works hide the side information by substituting the least significant bits of the first pixels and appending the substituted bits to the payload [20,21], the transport used in our blind protocol.
Three different objects are called maps or windows in this context and are kept apart in this paper: a block map, which marks which blocks are embedded [21] (the ‘skip’ value of TMAP plays this role); a predictor map, which records the predictor chosen for each block (MAP, MAPC, QT in this study, and [14]); and a local window, the support on which a predictor is computed for each pixel, for example, the square block centred on the pixel used for least-squares prediction in [18], whose coefficients the decoder recomputes, so that they need not be transmitted.
For the remaining cited works, our reading is limited to abstracts and bibliographic metadata, because full texts were not available to us; Table 1 records the level of access and we make no claim about their exact side-information accounting.
Table 1.
Closest works, level of access in this study, and relation to this work.
3. Materials and Methods
3.1. Embedding Engine
The raster variants share one embedding arithmetic and, except CB-8 and SEL-TAU (which run on the 8 × 8 scan of the engine of [16], with the same arithmetic), one implementation and scan order. Pixels are visited by 32 × 32 top-level blocks in raster order and in raster order inside each block; the first row and column are not processed, and a neighbour that falls outside the image (for example WW or NN next to the border) is replaced by the nearest image pixel. For a pixel x with prediction p and error e = x − p, if |e| ≤ T, the pixel becomes p + 2e + b (one bit b embedded); otherwise, it is shifted by sign(e)(T + 1); pixels that would leave [0, 255] are marked in a location map and left unchanged. A per-pixel threshold T < 0 means the pixel is skipped. Predictions use only causal neighbours in their original values, so the decoder, which restores pixels in the same order, recomputes them exactly; a northeast neighbour that lies in a later block is replaced by the north neighbour. Ten predictors are available: the median edge detector (MED); floor((W + N)/2); W + N − NW; W; N; the median of W, N and NW; the gradient-adjusted predictor (GAP) of the context-based adaptive lossless image codec (CALIC; integer version, thresholds 80, 32 and 8, result floored and clipped to [0, 255]); W + floor((N − NW)/2); N + floor((W − NW)/2); and floor((N + NE)/2); floor() rounds towards minus infinity, also for negative differences. Embedding stops after the required number of bits. Figure 1 shows the engine and the three places where a variant can adapt per block: the predictor, the threshold T, and whether a pixel is used at all.
Figure 1.
(a) The current pixel x and its causal neighbours, which the decoder has already restored when it reaches x. (b) A 32 × 32 scan block divided into 16 × 16 blocks (MAP-16, TMAP-16) and, as in the quadtree QT, further into 8 × 8 and 4 × 4 blocks. (c) The raster PEE engine shared by the compared variants and the three decisions that a variant can adapt per block; decisions transmitted in a map are charged against the payload; causal decisions are recomputed by the decoder.
3.2. Side Information and the Two Protocols
The net payload is P × (number of pixels) bits of pseudo-random data. Every variant was run in two protocols for the side information. Accounted protocol: the embedded stream carries, besides the payload, a nominal 80-bit header, the location map (the zlib-compressed bit-plane of flagged pixels) and the variant-specific items of Table 2. The 80-bit header is an allowance for the threshold, the payload length and the stopping position; its fields are not itemised. Because the location map and the maps grow with the length of the run, the target is found by a fixed-point search that repeats the embedding until the overhead of the run fits (the overhead increases strictly at every repetition, so the search terminates). Maps are charged up to the top-level block of the last pixel the decoder processes. They are coded with an adaptive arithmetic coder (Krichevsky–Trofimov estimator) with left/up contexts or none, whichever is shorter, plus 3 bits; an integer implementation stayed within 2 bits of the ideal length per stream. For every image and payload, the encoder searches T in {0, …, 6} and the variant’s own parameters and keeps the configuration with the highest PSNR; the choice is signalled as in Table 2. The decoder is given the side information and every run is decoded.
Table 2.
Side information charged in the accounted experiments (bits). LM = location map. Mean total overhead on the primary set at 0.10 bpp: FIX-best 2693, QT 3389, TMAP-16 2679, SEL-TAU 2068, 2L-MEAN 10202 bits (entropy estimate; 2L-MEAN-Z, Section 3.8: 4347 bits).
Blind protocol (Section 4.6, Section 4.8 and Section 4.9): the side information is written into the image and the decoder reads only the marked image. The method runs on the image without its R reserved bottom rows. A 224-bit header with itemised fields (variant 4, T 4, predictor 4, block size 3, τ 16, option 8, reserved rows 12, payload length 24, location-map length 20, coded top-level blocks 16, three map lengths 3 × 20 and three symbol counts 3 × 16 bits; 219 used), the zlib location map and the maps coded by the integer arithmetic coder are written into the least significant bits of the reserved rows. The original least significant bits of those R rows are embedded with the payload, so their cost is charged. R is the smallest number of rows that holds the side information. The encoder searches the same candidate configurations as in the accounted protocol, with every map rebuilt on the rows that are actually embedded, and keeps the fitting configuration with the highest PSNR; a configuration that does not fit is replaced by the next best one. The marked image is then decoded from the image alone.
Terminology. Accounted and blind always refer to these two protocols. Accounted results charge the side information inside the payload but give it to the decoder; blind results transport it and decode without it. A run is one image, variant and payload. A configuration succeeds if it fits at the required net payload and is decoded exactly; the success rate is the fraction of images for which at least one configuration of the variant succeeds.
3.3. Compared Variants
Fixed predictors. FIX-MED applies MED to every pixel. FIX-best tries the ten predictors and T = 0, …, 6, keeps the combination with the highest PSNR at the required net payload and sends the predictor index (4 bits). All compared variants and references are listed in Table 3.
Table 3.
Compared variants and references. All adaptive raster variants except CB-8 can fall back to the best fixed predictor with a global threshold (Table 2), so none can be worse than FIX-best by more than its signalling bits (checked by tests for the check variants MAPL-16, JMAP-16, MAPL-16-T1 and TMAP-16-D, on all their runs).
CB-8 (map-free predictor choice). The image is divided into 8 × 8 blocks. For each block, the encoder and the decoder evaluate every predictor on up to ten already restored neighbouring blocks (left and upper neighbours weighted twice), giving 2 points to an error with |e| ≤ T and 1 point to |e| = T + 1, and use the predictor with the highest score (ties: first predictor in pool order; zero score: the predictor of the previous block; first block: MED). Nothing is transmitted. CB-8 is the method of our earlier work [16], used here as one of thirteen variants of a different study; it has the rule and the embedding code of the equal-payload experiments of [16] (the first version of [16] used one previous block and three predictors). Three settings differ: here, T is also searched at 0, the target payload is found by a fixed-point search instead of at most three iterations, and an image is excluded only from the comparisons in which a method fails. Where both studies chose the same T, CB-8 gave the same PSNR on every image (229 runs on Kodak, USC-SIPI and BSD68); where T differed (139 runs, 128 of them with T = 0 here), the PSNR here was never lower.
MAP-k and MAPC-16 (predictor map on a fixed grid). Every k × k block takes the predictor with the most errors |e| ≤ T (MAP-k), or the predictor that maximises this count minus the estimated code length of its index (MAPC-16; the code lengths are re-estimated three times from the symbol frequencies). The block indices are coded with the adaptive arithmetic coder of Section 3.2.
QT (quadtree predictor map), in steps: (1) inside every 32 × 32 block, compute for each predictor the number of errors |e| ≤ T in every square of size 32, 16, 8 and 4; (2) for each 4 × 4 square, the value is the best count minus the estimated code length of the predictor index; (3) going up, a square is split if the sum of the values of its four sub-squares, minus the cost of a split flag, exceeds its own value as a single leaf minus the cost of a leaf flag; (4) the code lengths of flags and indices are re-estimated from their frequencies and steps (2)–(3) repeated three times; (5) the split flags and the leaf indices are coded and charged. Figure 2b shows a resulting map.
Figure 2.
Choices made by three variants on one primary-set image (1061.pgm, 0.10 bpp). (a) Cover image. (b) QT predictor map (T = 1); colours identify the predictors listed below the panels (8 used). (c) TMAP-16 threshold map; 413 of the 908 blocks reached were skipped (red). (d) Pixels with causal complexity ≤ τ (τ = 36): they make up 50% of the image, and those in the part reached before the embedding stopped make up 46% of the image. Darker areas were not reached; the stop is drawn at the granularity of the 32 × 32 scan blocks. PSNR at this payload: FIX-best 44.14, QT 44.29, TMAP-16 46.11, SEL-32 46.25 dB.
TMAP-k (threshold map), in steps: (1) the predictor is the FIX-best one; (2) for every k × k block and every choice t in {skip, 0, …, 6}, compute the capacity C (number of errors |e| ≤ t) and the expected distortion D (e2 + e + 1/2 for an expanded pixel, (t + 1)2 for a shifted one, 0 for a skipped block); (3) for each of 28 values of λ between 0.25 and 400, choose in every block the t that minimises D − λ C, and add the seven maps with the same t everywhere; (4) embed every candidate map at the required net payload with the map charged and keep the one with the highest PSNR; a mode bit also allows a single global T without a map. C and D are surrogates computed before overflow exclusion and before the embedding stops; they only generate candidate maps, which are then embedded, decoded and ranked by the realised PSNR with the side information charged. Figure 2c shows a resulting map.
SEL-TAU and SEL-32 (map-free selection of pixels). The causal complexity of a pixel is |W − NW| + |NW − N| + |W − WW| + |N − NN| + |NW − NWW|, computed from neighbours that the decoder has already restored. Only pixels with complexity ≤ τ are processed; τ is taken from the 10%, 20%, …, 100% quantiles of the complexity of the image (16 bits), the predictor is the FIX-best one and T is searched as above. The decoder recomputes the complexity of each pixel and skips the same pixels, so no map is needed. SEL-TAU uses the 8 × 8 scan of [16], SEL-32 the common 32 × 32 scan. Figure 2d shows the selected pixels.
TMAPQT-16 (combination) builds the quadtree predictor map at T = 1 and then a threshold map on its errors, with both maps charged; two mode bits allow it to fall back to TMAP-16 or to a global T. TMAPQT-R-16 (added in the revision) rebuilds the predictor map for every threshold configuration, in steps: (1) for every start threshold t0 in {0, …, 6}, build the quadtree at t0 and the threshold-map candidates of TMAP-16 on its errors; (2) for every candidate threshold map, rebuild the quadtree with the per-pixel thresholds of that map; (3) recompute the same threshold-map candidate on the errors of the rebuilt quadtree; (4) embed, with both maps charged, and keep the best realised PSNR. It has the same mode bits and fallbacks as TMAPQT-16, and the chosen branch (both maps, threshold map only, global T) is recorded. 2L-MEAN [4] embeds in two interleaved sets of pixels (checkerboard), predicts each pixel by the mean of its four neighbours, processes the pixels in the order of increasing local variance and chooses T separately for each set.
Construction objectives. The variants do not build their maps by the same rule: the predictor maps choose, per block, the predictor with the most expandable errors (MAP-k), minus the estimated code length of its index (MAPC-16, QT), whereas TMAP-k chooses the threshold by the trade-off D − λ C between expected distortion and capacity. In every variant, these rules only generate candidates: each candidate is embedded at the required net payload with all side information charged and decoded, and the one with the highest realised PSNR is kept. To check that the differences between the kinds of adaptation do not come from the construction rules, two check variants (added in the revision, not counted among the thirteen raster variants) build every map with the rule of TMAP-k, on the same 16 × 16 grid, with the same 28 values of λ and the same selection by realised PSNR. In MAPL-16 every block takes the predictor that minimises D − λ C at a global T (T in {0, …, 6}; one mode bit for the fallback to FIX-best, as MAP-16). In JMAP-16 every block takes the pair of predictor and threshold (including skip) that minimises D − λ C, and both maps are coded and charged; two mode bits allow it to fall back to MAPL-16, to TMAP-16 or to a global T. With FIX-best and TMAP-16 they form a 2 × 2 design in which all maps are built by the same rule (Section 4.2). The searches are not of equal size: MAPL-16 also searches the global T and evaluates a median of 147 candidates per image and payload, compared with 38 for TMAP-16. Two further check variants, added in the second revision, match the search sizes (Section 4.2): MAPL-16-T1 fixes the global T at the threshold chosen by FIX-best for the same image and payload (median 27 candidates), and TMAP-16-D uses 196 values of λ instead of 28 (median 170 candidates). All map-based variants, including the check variants, use the same 32 × 32 scan.
3.4. Data
The primary set (BOSSbase-A) consists of 200 512 × 512 BOSSbase 1.01 images [23] drawn with seed 9001 from the images not used in any earlier part of this project (checked disjoint from the development and earlier confirmation sets). Replication sets: 200 other BOSSbase images (BOSSbase-B, analysed in an earlier round with an older version of the code), 24 Kodak images (768 × 512) [24], 39 USC-SIPI images of mixed size (256 to 1024 pixels) [25] and the 68 images of the BSD68 test set (481 × 321) [26,27] as available to us in JPEG colour files. Colour images were converted to grey levels with the ITU-R 601 luma transform of the Pillow library. Payloads were 0.05, 0.10 and 0.20 bits per pixel (bpp), and 0.05 to 0.50 bpp for the curves. Three further categories were added in the revision: 64 texture images and 38 aerial (remote-sensing) images from the USC-SIPI database [25] (Textures and Aerials volumes), and 40 chest radiographs from the Montgomery County set of the National Library of Medicine [28,29] (the first 40 files in name order). Colour aerial images were converted with the same transform. Images larger than 1024 × 1024 pixels (one aerial image of 2250 × 2250 and all radiographs, about 4900 × 4000 pixels) were cropped to their central 1024 × 1024 pixels to keep the run time of the blind search manageable; full-resolution radiographs were not tested. The radiographs were used as distributed (PNG files of the CXR_png folder, downloaded on 18 November 2026): these files are 8-bit grey-level images, although the documentation of the set gives 12 bits of grey level, and they were not rescaled; reversibility therefore refers to these 8-bit crops. Image lists and SHA-256 hashes of the image files (original and prepared) are provided with the code.
3.5. Protocol, Chronology and Statistics
Predictions H1-H8 were written in a protocol file before the runs (H1-H7 with their rules in Section 4.1; H8—that the gain over the one-predictor configuration increases with the pool size for CB-8, MAP-16 and QT—in Section 4.3); its SHA-256 hash, the hashes of all code files and the analysis script were recorded on the local machine before the primary results were written (local file times: protocol 11:52:08, code hashes 11:52:27, analysis script 11:52:49, primary results 12:01:10, same day), and the code hashes were checked unchanged after the runs. These are local records, not independent proof of timing, and the protocol is not a public preregistration. The predictions were not independent of data: their thresholds were derived from a development set and from an earlier round on BOSSbase-B, and H5 was redefined after a code review (Section 3.7) but before the primary set was examined. Only the primary set was unseen when the predictions and the analysis script were fixed. Outputs of runs stopped during the code review, which included primary-set results produced with the uncorrected code, were moved aside without being analysed; this is recorded in our working log but cannot be proven technically. SEL-32 (Section 4.2) was added post hoc, before submission; its predictions were written in a protocol addendum after a development run and before the SEL-32 runs, but after the primary-set results of the other variants had been seen, and its equivalence margin of 0.3 dB was chosen after the SEL-TAU results were known. Everything added in the revision (TMAPQT-R-16, the check variants MAPL-16 and JMAP-16 and, in the second revision, MAPL-16-T1 and TMAP-16-D and the feasibility analysis of Section 4.8, the blind protocol with configuration search, the reference schemes of Section 3.8, the cost sensitivity analysis and the new image categories) is post hoc: it was specified after the review and after all earlier results had been seen.
For each contrast, we report the mean paired difference over images with a 95% bootstrap interval (10,000 resamples of images) on the images feasible for both methods (Table S1). The decision rules reported with the results (Section 4.1) are the prespecified ones; H2, H4 and H5 are rules on point estimates, not tests, and H4 in particular is not an equivalence test. Analyses added after the primary analysis—the factorial decomposition and ratios (Section 4.2), equivalence tests for H4, the Holm adjustment, the analysis of blind-infeasible configurations and the feasibility tables—are post hoc and labelled as such. With a Holm adjustment over the 21 one-sided directional tests of H1, H3, H6 and H7 (paired t-tests against the prespecified thresholds), no verdict changed at the 5% level (Table S2).
Equivalence margin (exploratory). The ±0.3 dB margin of the equivalence tests was chosen after the SEL-TAU results were known and is not a prespecified criterion. We report it as exploratory and give the tests for 0.1, 0.2 and 0.3 dB in both protocols (Table S3). The value was chosen for two practical reasons. First, a difference of 0.3 dB corresponds to a 7% change of the mean squared error, which is small at the PSNR levels of the main comparisons (mean PSNR of every variant above 49 dB at 0.05–0.20 bpp on the primary set); we did not measure visibility. Second, moving from the accounted to the blind protocol lowered the PSNR by 0.15 to 0.44 dB on the primary set, and this loss differed between variants by up to 0.12 dB at a given payload, so differences of that size between two variants depend on how the side information is transported; the margin is larger than this spread. Its influence is limited to one statement: over the five sets and both protocols, equivalence of SEL-32 and TMAP-16 was shown in 3 of 30 set-protocol-payload cases at ±0.1 dB, 5 at ±0.2 dB and 19 at ±0.3 dB (Table S3). The other conclusions (the gains over FIX-best, the ordering of the groups of variants and the contrasts with the predictor maps) are tested against zero or against the prespecified thresholds and do not use the margin. In all 30 cases the lower 90% bound of SEL-32 − TMAP-16 was above −0.23 dB (−0.11 dB on the primary set), so the map-free selection was never shown to be worse than the threshold map by more than this. Equivalence within ±0.3 dB is therefore a statement about practical indistinguishability in this engine, not an independently validated conclusion.
3.6. Verification
The generic engine reproduced the engine of our earlier causal-selection study [16] bit for bit in 360 configurations and restored the cover and the message exactly for 400 random per-pixel predictor and threshold maps, including skipped pixels and extreme images. In the accounted runs of the five sets (the variants of the initial analysis, including 2L-MEAN and a check run with the engine of [16]), every selected embedding was decoded with the side information given to the decoder; none of these 20,545 decoded runs failed. Deliberate errors (a wrong predictor map at the decoder, one flipped bit in a stored map) were detected. In the revision, the blind encoder and decoder were tested on synthetic images of width 48 to 256 (1068 configurations, 906 fitted, all decoded exactly) and the PVO and improved PVO (IPVO) references on 1625 random round trips (no failure); every fitted blind run of the experiments (20,583 raster runs on the five sets) was decoded from the marked image alone and recovered exactly. The 3174 runs of the check variants MAPL-16 and JMAP-16 and the 3174 runs of MAPL-16-T1 and TMAP-16-D (Section 4.2) were decoded with the side information given and recovered exactly. These checks show that the implementation is self-consistent; they are not an independent reimplementation.
3.7. Corrections Made During the Study
A code review before the final runs found three problems in our own implementation, all corrected before the runs reported here: (a) the combination of threshold and quadtree maps had no fallback to the threshold map alone and could fall up to 2.6 dB below the best fixed predictor, which had led to an incorrect provisional conclusion that the combination is harmful; (b) maps were charged up to the last modified pixel rather than the last processed pixel, which can omit one block when the final expanded pixels have e = 0 and bit 0 (no case occurred in 154 checked runs); (c) the threshold map and the causal selection lacked a mode bit for the global threshold, so they could fall slightly below the best fixed predictor on small images. An earlier round of this project had also limited the search for the stop target to three or four iterations, producing false infeasibility; the fixed-point search replaced it. During the revision, we found that the decoder of the initial blind check assumed an image width that is a multiple of 32 when it rebuilt the grid of map blocks; all images of that check were 512 × 512, so its results are not affected, and the new blind decoder handles any width (tested from 48 to 256 pixels).
3.8. Reference Schemes: Implementation
To place the raster engine relative to recognised schemes, three references were reimplemented and run in both protocols with the same net payloads, images and metrics. 2L-MEAN-Z is the two-layer engine of 2L-MEAN [4] with the exclusion map coded as in the raster variants (zlib bit-plane of the excluded positions among the processed pixels, real length charged) instead of the entropy estimate used for 2L-MEAN; the T pair is chosen by the realised PSNR among the best candidates by expected distortion. PVO [6] and its improved version IPVO [22] divide the image into blocks, sort the pixels of each block, predict the largest and the smallest value from the second largest and the second smallest (IPVO uses the positions of the pixels to allow negative errors), and embed only in blocks whose complexity (difference between the second largest and the second smallest value) is below a threshold. The block size is chosen per image among seven sizes from 2 × 2 to 4 × 4 (2 × 2, 2 × 3, 3 × 2, 3 × 3, 3 × 4, 4 × 3, 4 × 4) and the threshold is the smallest that gives the required capacity; blocks that could overflow are recorded in a zlib location map. In the accounted protocol, the references carry the nominal 80-bit header and their zlib maps at their real length; in the blind protocol, they use the same reserved-row transport with their own 224-bit headers. 2L-MEAN and 2L-MEAN-Z were checked against the full text of [4] during the revision. They follow its structure: two interleaved sets of pixels, the first embedded with the original second set as context and the second with the marked first set; the rhombus prediction from the four neighbours; cells sorted by a local complexity measure and embedded smoothest first; expansion with histogram shifting; and the payload split equally between the two sets. They differ in five details: (i) the prediction is rounded to the nearest integer instead of rounded down; (ii) the cells are sorted by the variance of the four neighbouring values instead of the variance of the four absolute differences between consecutive neighbours; (iii) one threshold T per set is used (expandable errors in [−T, T − 1]), whereas [4] chooses a negative and a positive threshold independently; (iv) every pixel whose value is below T or above 255 − T is excluded and recorded in the exclusion map, whereas [4] tests each cell for overflow in two passes and reports location maps of 0 to 31 bits at 0.38 bpp on its four test images (on the primary set, the side information of 2L-MEAN-Z, header and both maps, had a median of 968 to 1160 bits but reached 99,040 bits on images with many pixels near 0 or 255); (v) the side information is carried by the header or the reserved rows of our protocols instead of the least significant bits of the first 34 sorted cells of each set. Deviation (iii) restricts the search and can only lower the PSNR of the reference, and (iv) adds side information on images with many saturated pixels; the effect of the deviations was not measured separately. The results of [4] are given as curves, apart from one PSNR value for Lena, which is not in our sets; Mandrill and Airplane are in our USC-SIPI set only as grey-level conversions of the colour files, which need not be the images used in [4], so our numbers were not compared with published ones. PVO and IPVO were implemented from the published descriptions as we understand them (full texts of [6,22] were not available to us); details such as the block-size selection and the location map may differ from the original implementations, so our numbers are not a reproduction of published results.
4. Results
4.1. Primary Set
Table 4 and Table 5 and Figure 3a give the results on the primary set. The quadtree predictor map gained +0.19 dB (95% confidence interval, CI, +0.16 to +0.22), +0.24 dB (95% CI +0.20 to +0.29) and +0.29 dB (95% CI +0.24 to +0.35) over the best fixed predictor; the fixed 16 × 16 grid and the cost-aware grid gained +0.18 to +0.27 dB and were within 0.02 dB of it (H1, H2 met). The map-free CB-8 gained +0.24 to +0.26 dB over MED (H7 met); the best fixed predictor per image alone gained +0.15 to +0.28 dB over MED in mean PSNR.
Table 4.
Primary set (BOSSbase-A, 200 images): mean PSNR (dB) of the feasible runs at equal net payload. All raster variants were feasible on all 200 images (TMAPQT-R-16 added in the revision); 2L-MEAN was infeasible on 11, 13 and 15 images at the three payloads, so its mean is over fewer images (Table S1). 2L-MEAN-Z (Section 3.8, added in the revision) was infeasible on 1, 2 and 3 images.
Table 5.
Prespecified contrasts on the primary set: mean paired difference in dB [95% bootstrap CI] and whether the prespecified rule was met. For H6 the best raster variant is the prespecified variant with the highest mean at that payload (TMAPQT-16 at 0.05 bpp, SEL-TAU at 0.10 and 0.20 bpp; SEL-32 and TMAPQT-R-16, added later, are not considered). The protocol states H6 as a difference above 1 dB; it was applied to both the mean and the lower CI bound, and either condition alone gives the same verdicts.
Figure 3.
Primary set (200 images): mean paired PSNR differences with 95% bootstrap intervals (10,000 resamples of images) at 0.05, 0.10 and 0.20 bpp, (a) in the accounted protocol and (b) in the blind protocol with configuration search. Intervals were recomputed in the revision and may differ from Table 5 in the last digit.
The threshold map was better than the quadtree predictor map by +2.39 dB (95% CI +2.10 to +2.70), +2.17 dB (95% CI +1.91 to +2.44) and +1.90 dB (95% CI +1.67 to +2.13), and the causal selection by +2.09 to +2.37 dB (H3 met). The causal selection differed from the threshold map by −0.03 dB (95% CI −0.12 to +0.06) at 0.05 bpp and was better at 0.10 and 0.20 bpp (+0.20 dB (95% CI +0.12 to +0.27) and +0.19 dB (95% CI +0.12 to +0.26)); the prespecified H4 rule (|mean| < 0.5 dB) was met, but it is not an equivalence test. In exploratory (post hoc) two one-sided tests, the difference was within ±0.3 dB at all three payloads (p = 2 × 10−9, 0.004, 0.0008) but not within ±0.2 dB at 0.10 and 0.20 bpp. On the primary set, the differences therefore satisfied the exploratory equivalence criterion of ±0.3 dB, with a mean advantage of about 0.2 dB for the causal selection at 0.10 and 0.20 bpp. Adding the quadtree predictor map to the threshold map gained +0.07 to +0.12 dB (H5 met). The two-layer engine exceeded the best raster variant by +0.24 dB (95% CI −0.27 to +0.70), +0.97 dB (95% CI +0.59 to +1.31) and +1.49 dB (95% CI +1.16 to +1.78): H6 was met only at 0.20 bpp (entropy-estimate reference 2L-MEAN; with a coded exclusion map the two-layer engine is further ahead, Section 4.8).
4.2. Separating the Two Kinds of Adaptation (Post Hoc)
The H3 contrasts compare variants that differ in two components (TMAP-16 replaces the predictor map by a threshold map). To isolate one component at a time, the four variants FIX-best, QT (adds a predictor map), TMAP-16 (adds a threshold map) and a combination (adds both) form a 2 × 2 design on the primary set (Table 6). The prespecified combination was TMAPQT-16, whose quadtree is built at T = 1; in the revision it is also TMAPQT-R-16, whose quadtree is rebuilt for every threshold map (Section 3.3). SEL-TAU uses an 8 × 8 scan order instead of the 32 × 32 one; SEL-32 removes this difference.
Table 6.
Post hoc 2 × 2 decomposition on the primary set: mean gain over FIX-best in dB [95% bootstrap CI]; ratios are ratios of means with bootstrap intervals (each term is a gain over FIX-best). Rows marked rebuilt use the rebuilt combination TMAPQT-R-16 (revision); TMAPQT = TMAPQT-16, TMAP = TMAP-16. Rows marked same objective use the check variants MAPL-16 and JMAP-16, whose maps are built by the rule of TMAP-16 (Section 3.3; revision); the row of the threshold map alone is common to all designs. Rows marked matched search compare the threshold map with the Lagrangian predictor map at matched search sizes (check variants MAPL-16-T1 and TMAP-16-D, Section 3.3; second revision). Intervals were recomputed in the revision and may differ from Table 5 in the last digit.
Added alone to the best fixed predictor, the threshold map gained +2.19 to +2.58 dB and the quadtree predictor map +0.19 to +0.29 dB; the ratios of the threshold-map and causal-selection gains to the predictor-map gain were 7.6 to 13.7 over the three payloads (bootstrap intervals 6.4 to 16.0). With the quadtree built at T = 1 (TMAPQT-16), the effects looked sub-additive: interaction was −0.17 to −0.12 dB, and the predictor map added only +0.07 to +0.12 dB after the threshold map. With the quadtree rebuilt for every threshold map (TMAPQT-R-16), the interaction shrank to −0.08 to −0.02 dB and the predictor map added +0.17 to +0.20 dB after the threshold map, close to its gain when added alone (on the replication sets, the interaction ranged from −0.32 to +0.13 dB accounted and from −0.12 to +0.28 dB blind). The apparent sub-additivity was therefore largely removed by rebuilding the quadtree (together with the wider search over start thresholds that this entails), which suggests that it came mainly from the construction of TMAPQT-16 rather than from the two kinds of adaptation. The rebuilt combination used both maps on 108, 118 and 140 of the 200 images at 0.05, 0.10 and 0.20 bpp (TMAPQT-16: 41, 54 and 85), and the threshold map alone on most of the others and the global T on 2 to 3 images (Table S4). TMAPQT-R-16 exceeded TMAPQT-16 by +0.08 to +0.10 dB on average; it was worse on 12 to 21 images, because it does not contain the non-rebuilt construction. Its accounted encoder search took about 25 s per image and payload (median) and its blind search 88–137 s on average, against 3–8 s for the blind search of TMAPQT-16. These ratios hold for this engine, these predictors and these data only.
Same construction objective (post hoc, revision). When the predictor map was built by the same rule as the threshold map (MAPL-16), it gained +0.25 to +0.34 dB over FIX-best, +0.07 dB more than MAP-16 (all intervals above zero), and the threshold map still exceeded it by +1.85 to +2.33 dB (95% intervals +1.62 to +2.64); the ratio of the two gains was 6.4 to 10.3 (Table 6). With both choices made jointly by the same rule (JMAP-16), the interaction was −0.01 to +0.04 dB, with every interval including zero, and the predictor map added +0.29 to +0.33 dB after the threshold map; JMAP-16 used both maps on 114, 139 and 155 of the 200 images and the threshold map alone on 81, 55 and 39. On the four replication sets, TMAP-16 − MAPL-16 ranged over +1.06 to +2.45 dB (all intervals above zero) and the interaction over −0.33 to +0.09 dB (intervals below zero only on Kodak at 0.05 and 0.10 bpp). The difference between predictor and threshold adaptation is therefore not produced by the different construction rules of Section 3.3; the Lagrangian construction, with its larger search, raised the gain of a predictor map by less than 0.1 dB. MAPL-16 and JMAP-16 were run in the accounted protocol only, on every image–payload pair on which FIX-best was feasible (all but 5 on USC-SIPI and 1 on BSD68), and never fell more than 0.01 dB below FIX-best (median encoder search 1.2 and 1.7 s per image and payload).
Matched search size (post hoc, second revision). The predictor map MAPL-16 searched more candidates than the threshold map TMAP-16 (Section 3.3). With matched searches, the threshold map still exceeded the Lagrangian predictor map on the primary set by +1.91 to +2.34 dB with small searches (TMAP-16 − MAPL-16-T1, median 38 against 27 candidates) and by +2.11 to +2.62 dB with large searches (TMAP-16-D − MAPL-16, 170 against 147 candidates), with all 95% intervals above +1.66 dB (Table 6). A search about five times larger raised the gain of the predictor map over FIX-best by only +0.01 to +0.06 dB (MAPL-16 − MAPL-16-T1; at most +0.28 dB on any set and payload), whereas the denser grid of λ raised that of the threshold map by +0.27 to +0.29 dB. On the four replication sets, the threshold map exceeded the predictor map by +1.22 to +2.47 dB with small and by +1.38 to +2.77 dB with large searches (all 95% intervals above +0.79 dB). The difference between the two kinds of adaptation is therefore not produced by the size of the search. MAPL-16-T1 and TMAP-16-D were run in the accounted protocol on the same image–payload pairs as MAPL-16 and JMAP-16; FIX-best and TMAP-16, recomputed in the same run, reproduced the reported values exactly.
Scan order. SEL-TAU ran on the 8 × 8 scan of [16], whereas the other raster variants used the 32 × 32 scan, so its contrasts mixed pixel selection with scan order. SEL-32 repeats SEL-TAU on the common 32 × 32 scan, with a decoder that recomputes the complexity of each pixel from restored neighbours (no map); it was checked against the mask-given decoder on 150 random cases and all its runs were exactly reversible. On the primary set, SEL-32 − SEL-TAU was −0.004 dB (95% CI −0.016 to +0.007), +0.001 dB (95% CI −0.004 to +0.005) and +0.001 dB (95% CI −0.005 to +0.007), so the scan order did not change the result; SEL-32 − QT was +2.09 to +2.37 dB (all intervals above 1 dB) and SEL-32 − TMAP-16 was −0.03 dB (95% CI −0.12 to +0.05), +0.20 dB (95% CI +0.12 to +0.27) and +0.19 dB (95% CI +0.12 to +0.26), within ±0.3 dB in exploratory two one-sided tests (p = 2 × 10−9, 0.005, 0.0009). The single-component ratio (SEL-32 − FIX-best)/(QT − FIX-best) was 13.5, 10.8 and 8.3. On the replication sets, SEL-32 − SEL-TAU stayed within 0.013 dB (Table S5); equivalence with TMAP-16 within ±0.3 dB was not shown on every replication set (smaller sets, or SEL-32 better by more than 0.2 dB): it held in 13 of the 24 set-protocol-payload cases of the replication sets (19 of 30 with the primary set; Table S3).
4.3. Predictor Pool Size
The gain grew with each larger pool tested (2, 4, 6 and 10 predictors) for all three variants (H8 met; Table 7) and stayed below 0.6 dB over MED with all ten.
Table 7.
Gain over MED (dB) by number of predictors in the pool (first 60 primary images; all feasible). Predictors were added in the order of their selection frequency on the development set: MED, (W + N)/2, GAP, W, W + (N − NW)/2, W + N − NW, N, median, N + (W − NW)/2, (N + NE)/2. GAP = CALIC gradient-adjusted predictor; divisions are floored as in Section 3.1.
4.4. Replication
Across the four replication sets and three payloads (Table 8 for 0.10 bpp), QT − FIX-best ranged over +0.19 to +0.65 dB, TMAP-16 − QT over +1.06 to +2.52 dB, SEL-TAU − QT over +1.10 to +2.50 dB and TMAPQT − TMAP over +0.02 to +0.30 dB. CB-8 improved on MED on every set except BSD68 at 0.05 bpp (−0.02 dB (95% CI −0.13 to +0.09)). Two nearly binary USC-SIPI images (5.1.13 and ruler) were infeasible for every raster variant at some payloads. The blind protocol and TMAPQT-R-16 were also run on the replication sets (Table S6); the ordering of the variant means was the same as in the accounted protocol up to swaps of variants less than 0.2 dB apart (Kendall rank correlation 0.92 to 1.00 over the thirteen raster variants, all sets and payloads).
Table 8.
Replication sets at 0.10 bpp: mean paired differences (dB). Intervals for all payloads are available with the per-image results (Data Availability Statement). MED = FIX-MED, TMAP = TMAP-16, TMAPQT = TMAPQT-16, 2L = 2L-MEAN (entropy-estimate reference); 2L-MEAN-Z on these sets: Section 4.8.
4.5. Payload Curves, SSIM, Parameter Sensitivity and Run Time
Figure 4a uses only the 51 images complete at all payloads, so that every curve is averaged over the same images; Figure 4b shows how many of the 60 images each variant could carry. Up to 0.30 bpp, every raster variant succeeded on all 60 images and 2L-MEAN on 56 to 58; at 0.50 bpp, the raster variants succeeded on 56 or 57 and 2L-MEAN on 52, so excluding the difficult images mainly affects comparisons with 2L-MEAN (2L-MEAN-Z, with a coded exclusion map, failed on at most 3 of the 200 primary images at 0.05–0.20 bpp; Section 4.8). On these 51 images, between 0.05 and 0.50 bpp, TMAP-16 − QT went from +1.47 to +0.93 dB, SEL-TAU − QT from +1.33 to +0.92 dB, QT − FIX-best from +0.17 to +0.32 dB and 2L-MEAN − SEL-TAU from +1.04 to +1.43 dB; these are the distances between the plotted curves. In a separate analysis over all images feasible for each pair at each payload (n between 51 and 60), the same contrasts were +1.69 to +0.89, +1.61 to +0.88, +0.17 to +0.37 and +0.39 to +1.43 dB; the largest difference between the two analyses (2L-MEAN − SEL-TAU at 0.05 bpp) arises because the images on which the two-layer engine is infeasible are excluded from the common subset. In both analyses, the ordering of the groups (fixed predictors < predictor maps < threshold map and pixel selection < two-layer engine) was the same at every payload; within groups, variants less than 0.2 dB apart changed places between the two analyses at 0.40 and 0.50 bpp. Mean structural similarity (SSIM) was 0.9964 to 0.9972 for the raster variants (minimum over image–payload cases 0.981) and 0.9974 for the two-layer reference (minimum 0.927); the H1, H3 (threshold map) and H7 contrasts had the same sign in SSIM as in PSNR with intervals excluding zero, while SEL-TAU − QT at 0.20 bpp was not distinguishable from zero in SSIM. Changing one parameter at a time (T range 0–10, scan block 16 or 64, 56 values of λ, minimum quadtree leaf 8, 160-bit header) on 40 primary images gave QT − FIX-best +0.19 to +0.29 dB, TMAP-16 − QT +1.49 to +1.91 dB and SEL-TAU − QT +1.47 to +1.60 dB. On one core of an Apple-silicon laptop (Python 3.12 and Numba 0.68), the decoding core with the maps supplied (pixel restoration only) took about 1 ms per 512 × 512 image for the map-based variants, 11 ms for SEL-TAU and 26 ms for CB-8; the full blind decoder (header, location map, arithmetic decoding of the maps in pure Python, pixel restoration; post hoc, 20 images, 0.10 bpp, all exact) took 2.9 ms (QT), 3.0 ms (MAP-16), 2.6 ms (TMAP-16), 1.9 ms (FIX-best), 12.8 ms (SEL-TAU) and 30.7 ms (CB-8) (medians). The encoder-side search took 0.16 s (QT), 0.15 s (TMAP-16), 0.51 s (CB-8) and 1.46 s (SEL-TAU) (medians, 20 images, 0.10 bpp). In an exploratory per-image analysis, the predictor-map gain was larger on images with fewer flat regions and more diverse per-block predictor choices, and the threshold/selection gain was larger on more textured images (Spearman rho about 0.2 to 0.4).
Figure 4.
(a) Mean PSNR versus net payload over the 51 of the first 60 primary images that were feasible for every variant at every payload from 0.05 to 0.50 bpp (matched images; excluded: 1026.pgm, 121.pgm, 1338.pgm, 2772.pgm, 3195.pgm, 3310.pgm, 3495.pgm, 3574.pgm, 3704.pgm). (b) Success rate of each variant over all 60 images at each payload (accounted protocol); curves with the same counts coincide (FIX-MED, FIX-best, TMAP-16 and SEL-TAU; CB-8 and TMAPQT-16). 2L-MEAN is the entropy-estimate reference (Section 4.8). 2L-MEAN-Z, SEL-32 and TMAPQT-R-16 were not run for the curves. Panel (b) uses the colours and line styles of the legend in panel (a).
4.6. Blind Protocol with Configuration Search
An initial blind check reused the configuration selected in the accounted run for six variants on 40 images; 700 of 720 configurations fitted and all were recovered exactly, and the other 20 failed because the reused configuration had no capacity left for the bits of the R reserved rows (Table S7). In the revision, every raster variant was run in the blind protocol of Section 3.2, with an encoder that searches its own configuration, on all images of the five sets. On the primary set, 7800 of 7800 runs (image, variant, payload) succeeded (100%) and all were decoded exactly, including the 20 cases that had failed before. Over all five sets, 7800 of 7800, 7774 of 7800, 936 of 936, 1456 of 1521, and 2617 of 2652 succeeded (BOSSbase-A, BOSSbase-B, Kodak, USC-SIPI, BSD68). The failures concerned seven images, at 0.20 bpp except the two nearly binary USC-SIPI images, which failed for every variant and were also infeasible in the accounted protocol. On 291000.jpg (BSD68), only 4 variants were feasible even in the accounted protocol, and the accounted runs of the other 4 images had a low PSNR (32.6–40.5 dB) and 6.5–64.1 kbit of side information. Table 9 gives the success rate, net payload, PSNR, side information and decoding time per variant and payload on the primary set, and Table S8 the success, PSNR, side information and exact decodes on the other sets and for the reference schemes. The blind PSNR was lower than the accounted one by 0.32–0.44 dB at 0.05 bpp, 0.17–0.29 dB at 0.10 bpp and 0.15–0.21 dB at 0.20 bpp, about equally for all variants. The main contrasts kept their sign and size (Figure 3b): QT − FIX-best +0.19 to +0.25 dB, TMAP-16 − QT +1.90 to +2.29 dB and SEL-32 − QT +2.11 to +2.34 dB, all intervals excluding zero; SEL-32 − TMAP-16 was +0.01 to +0.23 dB and within the exploratory ±0.3 dB margin at all three payloads. The ordering of the thirteen variant means was the same as in the accounted protocol up to swaps within 0.2 dB (Kendall rank correlation 0.92 to 0.97). The full blind decoder (header, location map, arithmetic decoding of the maps in pure Python, pixel restoration) took 3–13 ms per image for the fixed and map-based variants, 3–4 ms for SEL-32, 13–28 ms for SEL-TAU and 23–93 ms for CB-8 (medians over the 200 images at each payload; the times in Section 4.5 were measured on 20 images with the decoder of the initial blind check); the mean encoder search took less than 10 s per image and payload for every variant except TMAPQT-R-16 (88–137 s).
Table 9.
Blind protocol with configuration search, primary set (200 images per payload): success rate, mean net payload (bits), mean PSNR of the blind runs (dB), mean loss with respect to the accounted run of the same image (dB), mean side information written in the reserved rows (bits) and median full decoding time (ms). Every successful run was decoded exactly.
4.7. Sensitivity to Header and Map Costs
To quantify how the charged side information affects the gains and the ranking, the accounted runs of the primary set were repeated with header lengths of 80, 192 and 320 bits and with the coded length of every predictor and threshold map multiplied by 0.5, 1 or 2 (Table 10). The baseline (80 bits, factor 1) reproduced the reported runs exactly. The header length changed the gains over FIX-best by at most 0.01 dB with the maps at their coded length and by at most 0.02 dB with the maps charged twice. The map factor moved the predictor-map gain over +0.09 to +0.36 dB (QT) and +0.08 to +0.35 dB (MAP-16) and the threshold-map gain over +2.04 to +2.66 dB; SEL-32 has no map and stayed at +2.37 to +2.61 dB. Even with the maps charged at half their coded length, a predictor map gained at most about 0.36 dB, and with twice their length the threshold map still gained more than 2 dB. The ordering of the variant means changed only inside the group of threshold-map and selection variants and between MAP-16 and QT (Kendall rank correlation 0.71 to 1.00 with respect to the baseline); the groups never crossed.
Table 10.
Sensitivity of the accounted results to the header length and to a multiplier of the coded map lengths, primary set: mean gain over FIX-best of the same scenario (dB). Header (bits)/map factor.
4.8. Comparison with the Reference Schemes
Table 11 compares the reference schemes with SEL-32 on the primary set, on the images feasible for both. With its exclusion map coded and charged at its real length, the two-layer engine (2L-MEAN-Z) reached 60.56, 57.58 and 53.98 dB on the primary set, against 59.53, 56.98 and 53.73 dB for the entropy estimate (2L-MEAN), and succeeded on 99.5/99.0/98.5% of the images instead of 94.5/93.5/92.5%: the entropy estimate charged the exclusion map over the whole layer and chose one T per layer by expected distortion, which penalised the reference; the gain of 2L-MEAN-Z over 2L-MEAN therefore reflects both changes, not the coding alone. In the blind protocol, 2L-MEAN-Z succeeded on 99.0/99.0/98.5% and all its runs were decoded exactly; it exceeded SEL-32 by +1.78 dB (95% CI +1.63 to +1.93) accounted and +1.66 dB (95% CI +1.49 to +1.83) blind at 0.10 bpp. IPVO gave the highest PSNR at 0.05 bpp (IPVO − SEL-32 +2.42 dB, 95% CI +2.19 to +2.64; IPVO − 2L-MEAN-Z +0.96 dB accounted and +1.20 dB blind on the images feasible for both), whereas PVO was close to 2L-MEAN-Z (−0.20 and +0.04 dB). PVO and IPVO have a limited capacity: they succeeded on 94.5/74.5/2.5% (PVO) and 97.5/89.5/55.0% (IPVO) of the primary images at 0.05/0.10/0.20 bpp, so their means at 0.20 bpp are over the smoothest images only. 2L-MEAN-Z exceeded the best raster variant on every set, payload and protocol (mean difference at least 1.2 dB). PVO and IPVO also exceeded the best raster variant wherever they had capacity, with these exceptions (95% intervals including zero or below it): on BSD68, PVO was worse at 0.10 bpp and not clearly better at 0.05 bpp, and IPVO was not clearly better at 0.20 bpp (on 12 images); on BOSSbase-B, PVO was not clearly better at 0.10 bpp in the accounted protocol. The raster engine is therefore not a state-of-the-art scheme; our conclusions concern what to adapt inside it. The references themselves select or order pixels by local complexity (sorting in 2L-MEAN-Z, smooth blocks in PVO and IPVO), which is consistent with the main finding.
Table 11.
Reference schemes, primary set: success rate (%) and mean paired difference with SEL-32 (dB) [95% bootstrap CI] on the images feasible for both (n), in both protocols.
Feasibility and fairness (post hoc, second revision). Every difference in Table 11 is paired: it compares a reference with SEL-32 on the images on which both fitted, so it is not affected by images on which a scheme failed, but it holds only for that subset, and the subsets differ (Table S9). 2L-MEAN-Z fitted on 98.5–99.5% of the primary images, and on its subset the mean PSNR of SEL-32 differed from its mean over all images by at most 0.04 dB (at most 0.25 dB on any set). PVO and IPVO fitted mainly on smoother images, on which SEL-32 itself had a mean PSNR 0.20–0.81 dB higher at 0.05–0.10 bpp and up to 2.06 dB higher at 0.20 bpp; their mean PSNR values are therefore not comparable with means over all images, and their success rates are part of the result. On the 189 and 149 primary images on which all three references and SEL-32 fitted at 0.05 and 0.10 bpp, the differences to SEL-32 were +1.65 and +1.83 dB (2L-MEAN-Z), +1.45 and +0.61 dB (PVO) and +2.56 and +1.99 dB (IPVO) in the accounted protocol, close to those of Table 11; at 0.20 bpp, only 5 images were common. The statement that the raster engine is below the references therefore rests mainly on 2L-MEAN-Z, which fitted on almost every image.
4.9. Additional Image Categories
Textures, aerial images and chest radiographs were run in the blind protocol for all 13 raster variants (TMAPQT-R-16 in a separate run with the same code) and in both protocols for the references (Table 12). FIX-best, TMAPQT-16 and TMAPQT-R-16 were also run in the accounted protocol. On the aerial images and the radiographs, every run of every raster variant fitted and was decoded exactly. On textures, 12, 14 and 17 of the 64 images could not carry 0.05, 0.10 and 0.20 bpp with any raster variant; these were the images on which FIX-best was also infeasible in the accounted protocol, and every run that fitted was decoded exactly. On aerial images, the ordering of the natural-image sets held: a threshold map or causal selection gained +1.30 to +1.81 dB over FIX-best and a quadtree predictor map +0.29 to +0.38 dB. On the radiographs, the predictor map gained about +0.05 dB and the threshold choices +2.02 to +2.70 dB. On textures, the threshold and selection gains were smaller than on the natural-image sets, the predictor-map gain was not, and the ordering held only in part: QT gained +0.27 to +0.32 dB, TMAP-16 +0.23 to +0.56 dB and SEL-32 +0.34 to +0.88 dB, and at 0.10 and 0.20 bpp, the 95% intervals of TMAP-16 − QT included zero (+0.02 [−0.10, +0.14] and −0.05 [−0.13, +0.05] dB). The rebuilt combination (TMAPQT-R-16) exceeded TMAP-16 by +0.15 to +0.37 dB on textures and aerial images and by at most 0.002 dB on the radiographs. 2L-MEAN-Z exceeded SEL-32 by +2.12 to +3.43 dB on textures and aerial images and by +1.30 to +1.56 dB on the radiographs (images feasible for both); it could not embed in 18 of the 64 textures at any payload. IPVO was the best scheme at 0.05 bpp on aerial images (+1.54 dB over 2L-MEAN-Z), but at 0.20 bpp, PVO and IPVO fitted on no aerial image and on at most 3% of the textures. Writing the side information into the image cost the references 0.02 to 0.25 dB and TMAPQT-R-16 0.09 to 0.61 dB on average (accounted minus blind, same images).
Table 12.
Additional image categories, blind protocol: success rate of the 13 raster variants (range over the variants; every fitted run was decoded exactly), mean gain over FIX-best (dB) [95% bootstrap CI] of a predictor map (QT), a threshold map (TMAP-16), causal selection (SEL-32) and the rebuilt combination (TMAPQT-R-16), on the images where both fitted, and the best reference minus SEL-32 (the reference with the largest mean difference among those that fitted on at least half of the images; images feasible for both).
5. Discussion
Within this engine, the choices that decide which pixels carry data—a per-block threshold including skipping, or a causal complexity threshold—gained +2.1 to +2.6 dB over the best fixed predictor on the primary set. A quadtree predictor map gained +0.19 to +0.29 dB. The ordering held in both protocols, with header lengths of 80 to 320 bits and map costs halved or doubled, and on four replication sets, on aerial images and on chest radiographs, although the size of the gains varied between sets. On textures, the threshold and selection gains were smaller, and at 0.10–0.20 bpp, a predictor map gained about as much as a threshold map (Section 4.9). Among the capacity-based constructions, how a 16 × 16 predictor map is built (fixed grid or cost-aware) or replaced by a quadtree mattered by less than 0.03 dB on the primary set, in both protocols; the Lagrangian construction of MAPL-16, with a larger search, gained about 0.07 dB more; the finer 8 × 8 grid gained less. When the quadtree was rebuilt for every threshold map, the two kinds of adaptation were nearly additive on the primary set; because the rebuilt construction also searched more start thresholds, this alone does not show that building the quadtree at T = 1 caused the sub-additivity of TMAPQT-16, but with both maps chosen by one joint rule (JMAP-16), the interaction was also close to zero on the primary set (−0.01 to +0.04 dB), although not on Kodak (−0.15 and −0.33 dB at 0.05 and 0.10 bpp). When every map was built by the same objective, the predictor map gained +0.25 to +0.34 dB and the threshold map +1.85 to +2.33 dB more, and with matched search sizes, the threshold map still gained +1.91 to +2.62 dB more, so the ordering comes neither from the different construction rules of the variants nor from the size of their searches. The map-free causal selection of pixels (SEL-32) was within the exploratory 0.3 dB margin of the transmitted threshold map on the primary set in both protocols, but not on every replication set. The map-free causal predictor selection recovered only part of what a transmitted predictor map achieved. The two-layer reference was better than every raster variant on every set where it fitted, and PVO and IPVO on most sets where they had capacity (exceptions in Section 4.8 and Section 4.9); all three select or order pixels by local complexity. These statements are limited to grey-scale images of the sizes tested, to the ten predictors used and to PEE with histogram shifting; stronger or learned predictors and pairwise or PVO embedding could change the balance.
Possible further ablations: predictor maps inside the sorted two-layer engine and inside PVO with the same accounting; a larger predictor pool including learned predictors; and other embedding rules (pairwise or multiple-histogram PEE [7,8]).
Limitations. (1) All variants and references are our own implementations; PVO and IPVO were implemented from their published descriptions; pairwise and multiple-histogram schemes [7,8] were not reimplemented, and no comparison with published numbers is made. (2) The accounted header is a nominal 80 bits; the blind protocol uses itemised 224-bit headers and reserved rows, and a different transport (for example, the self-bootstrapping decoder of [15]) could change the blind costs. (3) The predictions were informed by a development set and by BOSSbase-B; timing records are local. (4) Intervals treat images as independent; no multiplicity correction was prespecified (Holm post hoc: no change). (5) BSD68 was available as JPEG colour files. (6) Most cited works were read only as abstracts (Table 1). (7) The radiographs and one aerial image were cropped to 1024 × 1024 pixels; full-resolution and 16-bit medical images were not tested; on these three categories, only FIX-best, TMAPQT-16 and TMAPQT-R-16 were run in the accounted protocol. (8) Only PSNR and SSIM were measured. (9) The verification is internal to our code; no independent implementation was made. (10) SEL-32 (added post hoc before submission) and TMAPQT-R-16 (added in the revision) were not run for the payload curves; the check variants MAPL-16, JMAP-16, MAPL-16-T1 and TMAP-16-D were run only in the accounted protocol on the five main sets. (11) Everything added in the revision is post hoc, and the equivalence margin is exploratory.
6. Conclusions
In a raster PEE engine with the side information charged, and also transported in a blind protocol, adding a 16 × 16 or quadtree predictor map to the best fixed predictor gained about 0.2–0.3 dB on the primary set. Adding per-block threshold adaptation or causal pixel selection gained about 2.1–2.6 dB. The map-free pixel selection was within an exploratory 0.3 dB of the transmitted threshold map on the primary set. With every map built by the same objective, the threshold map still gained 1.8–2.3 dB more than the predictor map. The same ordering held on the replication sets, aerial images and chest radiographs, and only in part on textures, where the threshold and selection gains were smaller. Recognised schemes that order or select pixels by complexity were better still on most sets where they had capacity. Comparisons of adaptive RDH schemes should state exactly which side information is charged, check decodability from the marked image alone and separate what is being adapted.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/app162311948/s1, Table S1: Feasibility per set, payload and variant; Table S2: Post hoc Holm adjustment of the one-sided directional tests; Table S3: Exploratory two one-sided tests of SEL-32 − TMAP-16; Table S4: Branch chosen by the combinations; Table S5: SEL-32 on all sets; Table S6: Blind protocol with configuration search on all sets; Table S7: Configurations of the initial blind check that did not fit; Table S8: Blind protocol on all sets: success, PSNR, side information and exact decodes per variant and reference scheme; Table S9: Feasibility of the reference schemes and paired differences on the images feasible for both and for all schemes.
Author Contributions
Conceptualisation, I.A.T.; methodology, I.A.T. and I.U.; software, I.A.T.; validation, I.U. and A.C.G.; formal analysis, I.A.T.; writing—original draft preparation, I.A.T.; writing—review and editing, I.U., A.C.G. and E.M.D.; supervision, E.M.D. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The test images are from publicly available third-party datasets (BOSSbase 1.01 [23], Kodak [24], USC-SIPI [25], BSD68 [26,27] and the Montgomery County chest X-ray set of the National Library of Medicine, NIH [28,29]) and are not redistributed by the authors. The code, the image lists with file hashes and seeds, the protocol files and the per-image results supporting the conclusions of this article are available from the corresponding author on reasonable request.
Acknowledgments
The chest radiographs of the Montgomery County set were provided by the National Library of Medicine, National Institutes of Health, Bethesda, MD, USA, and the Department of Health and Human Services, Montgomery County, MD, USA.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Tian, J. Reversible data embedding using a difference expansion. IEEE Trans. Circuits Syst. Video Technol. 2003, 13, 890–896. [Google Scholar] [CrossRef] [Scilit]
- Ni, Z.; Shi, Y.Q.; Ansari, N.; Su, W. Reversible data hiding. IEEE Trans. Circuits Syst. Video Technol. 2006, 16, 354–362. [Google Scholar] [CrossRef] [Scilit]
- Thodi, D.M.; Rodriguez, J.J. Expansion Embedding Techniques for Reversible Watermarking. IEEE Trans. Image Process. 2007, 16, 721–730. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sachnev, V.; Kim, H.J.; Nam, J.; Suresh, S.; Shi, Y.Q. Reversible Watermarking Algorithm Using Sorting and Prediction. IEEE Trans. Circuits Syst. Video Technol. 2009, 19, 989–999. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Yang, B.; Zeng, T. Efficient Reversible Watermarking Based on Adaptive Prediction-Error Expansion and Pixel Selection. IEEE Trans. Image Process. 2011, 20, 3524–3533. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, X.; Li, J.; Li, B.; Yang, B. High-fidelity reversible data hiding scheme based on pixel-value-ordering and prediction-error expansion. Signal Process. 2013, 93, 198–205. [Google Scholar] [CrossRef] [Scilit]
- Ou, B.; Li, X.; Zhao, Y.; Ni, R.; Shi, Y.Q. Pairwise Prediction-Error Expansion for Efficient Reversible Data Hiding. IEEE Trans. Image Process. 2013, 22, 5010–5021. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, X.; Zhang, W.; Gui, X.; Yang, B. Efficient Reversible Data Hiding Based on Multiple Histograms Modification. IEEE Trans. Inf. Forensics Secur. 2015, 10, 2016–2027. [Google Scholar] [CrossRef] [Scilit]
- Kumar, R.; Sharma, D.; Dua, A.; Jung, K.H. A review of different prediction methods for reversible data hiding. J. Inf. Secur. Appl. 2023, 78, 103572. [Google Scholar] [CrossRef] [Scilit]
- Zhang, C.; Ou, B.; Peng, F.; Zhao, Y.; Li, K. A Survey on Reversible Data Hiding for Uncompressed Images. ACM Comput. Surv. 2024, 56, 1–33. [Google Scholar] [CrossRef] [Scilit]
- Ma, X.; Pan, Z.; Hu, S.; Wang, L. High-fidelity reversible data hiding scheme based on multi-predictor sorting and selecting mechanism. J. Vis. Commun. Image Represent. 2015, 28, 71–82. [Google Scholar] [CrossRef] [Scilit]
- Kim, S.; Qu, X.; Sachnev, V.; Kim, H.J. Skewed Histogram Shifting for Reversible Data Hiding Using a Pair of Extreme Predictions. IEEE Trans. Circuits Syst. Video Technol. 2019, 29, 3236–3246. [Google Scholar] [CrossRef] [Scilit]
- Zheng, H.; Wang, C.; Wang, J.; Xiang, S. A new reversible watermarking scheme using the content-adaptive block size for prediction. Signal Process. 2019, 164, 74–83. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Li, L.; Li, Q. Reversible Data Hiding in Encrypted Images Based on Block-Wise Multi-Predictor. IEEE Access 2021, 9, 61943–61954. [Google Scholar] [CrossRef] [Scilit]
- Kim, C.; Yang, C.N.; Leng, L. Is the Reported Rate the Real Rate? Explicit Transport Accounting for Position-Map-Free Reversible Data Hiding. Appl. Sci. 2026, 16, 10044. [Google Scholar] [CrossRef] [Scilit]
- Tudoroiu, I.A.; Gheorghe, A.C.; Diaconu, E.M. Causal Block-Adaptive Predictor Selection for Reversible Data Hiding via Prediction Error Expansion. SSRN Prepr. 2026. [Google Scholar] [CrossRef] [Scilit]
- Coltuc, D. Improved Embedding for Prediction-Based Reversible Watermarking. IEEE Trans. Inf. Forensics Secur. 2011, 6, 873–882. [Google Scholar] [CrossRef] [Scilit]
- Dragoi, I.C.; Coltuc, D. Local-Prediction-Based Difference Expansion Reversible Watermarking. IEEE Trans. Image Process. 2014, 23, 1779–1790. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fan, G.; Pan, Z.; Zhou, Q.; Gao, X.; Zhang, X. A comparative study between PVO-based framework and multi-predictor mechanism in reversible data hiding. J. Vis. Commun. Image Represent. 2021, 81, 103349. [Google Scholar] [CrossRef] [Scilit]
- Coltuc, D.; Tudoroiu, A. Multibit versus multilevel embedding in high capacity difference expansion reversible watermarking. In Proceedings of the 20th European Signal Processing Conference (EUSIPCO 2012), Bucharest, Romania, 27–31 August 2012; pp. 1791–1795. [Google Scholar]
- Tudoroiu, A.; Coltuc, D. Local map versus histogram shifting for prediction error expansion reversible watermarking. In Proceedings of the International Symposium on Signals, Circuits and Systems (ISSCS 2013), Iași, Romania, 11–12 July 2013; pp. 1–4. [Google Scholar] [CrossRef] [Scilit]
- Peng, F.; Li, X.; Yang, B. Improved PVO-based reversible data hiding. Digit. Signal Process. 2014, 25, 255–265. [Google Scholar] [CrossRef] [Scilit]
- Bas, P.; Filler, T.; Pevný, T. “Break Our Steganographic System”: The Ins and Outs of Organizing BOSS. In Information Hiding; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2011; Volume 6958, pp. 59–70. [Google Scholar] [CrossRef] [Scilit]
- Kodak Lossless True Color Image Suite. Available online: https://r0k.us/graphics/kodak/ (accessed on 3 November 2026).
- USC-SIPI Image Database. University of Southern California, Signal and Image Processing Institute. Available online: https://sipi.usc.edu/database/ (accessed on 3 November 2026).
- Martin, D.; Fowlkes, C.; Tal, D.; Malik, J. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. In Proceedings of the Eighth IEEE International Conference on Computer Vision (ICCV 2001), Vancouver, BC, Canada, 7–14 July 2001; Volume 2, pp. 416–423. [Google Scholar] [CrossRef] [Scilit]
- Roth, S.; Black, M. Fields of Experts: A Framework for Learning Image Priors. In Proceedings of the 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), San Diego, CA, USA, 20–25 June 2005; IEEE: New York, NY, USA, 2005; Volume 2, pp. 860–867. [Google Scholar] [CrossRef] [Scilit]
- Jaeger, S.; Karargyris, A.; Candemir, S.; Folio, L.; Siegelman, J.; Callaghan, F.; Xue, Z.; Palaniappan, K.; Singh, R.K.; Antani, S.; et al. Automatic Tuberculosis Screening Using Chest Radiographs. IEEE Trans. Med. Imaging 2014, 33, 233–245. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Candemir, S.; Jaeger, S.; Palaniappan, K.; Musco, J.P.; Singh, R.K.; Xue, Z.; Karargyris, A.; Antani, S.; Thoma, G.; McDonald, C.J. Lung Segmentation in Chest Radiographs Using Anatomical Atlases With Nonrigid Registration. IEEE Trans. Med. Imaging 2014, 33, 577–590. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.



