<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Observing Bag Gain in JPEG Batch Steganography</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>12/07/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10451150</idno>
					<idno type="doi"></idno>
					<title level='j'>IEEE Workshop on Information Security and Forensics</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>E. Kaziakhmedov</author><author>E. Dworetzky</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The bag gain relates to a gain in security due tospreading payload among multiple covers when the steganog-rapher maintains a positive communication rate. This gain ismaximal for a certain optimal bag size, which depends on theembedding method, payload spreading strategy, communicationrate, and the cover source. Originally discovered and analyzedin the spatial domain, in this paper we study this phenomenonfor JPEG images across quality factors. Our experiments andtheoretical analysis indicate that the bag gain is more pronouncedfor higher JPEG qualities, more aggressive batch senders, andfor senders maintaining a fixed payload per bag in terms of bitsper DCT rather than per non-zero AC DCT.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>In batch steganography, the sender spreads the secret payload among multiple cover images (a bag) to decrease the chances of being detected by the Warden. The Warden pools evidence from the same bag of images to detect the use of steganography, a process known as pooled steganalysis. This is achieved by fusing soft outputs of Warden's Single-Image Detector (SID) applied to each image in the bag. Batch steganography and pooled steganalysis has been introduced by Ker in 2006 <ref type="bibr">[1]</ref> and has since been a subject of intense research <ref type="bibr">[2]</ref>, <ref type="bibr">[3]</ref>, <ref type="bibr">[4]</ref>, <ref type="bibr">[5]</ref>, <ref type="bibr">[6]</ref>, <ref type="bibr">[7]</ref>, <ref type="bibr">[8]</ref>, <ref type="bibr">[9]</ref>, <ref type="bibr">[10]</ref>, <ref type="bibr">[11]</ref>, <ref type="bibr">[12]</ref>, <ref type="bibr">[13]</ref>, <ref type="bibr">[14]</ref>.</p><p>With the introduction of content-adaptive steganography researchers began studying payload spreading strategies that allocate chunks of the secret payload based on how detectable the embedding is in each image. The authors of <ref type="bibr">[7]</ref> considered an omniscient Warden pooling optimally using the likelihood ratio test derived from a Gaussian model of Warden's detector output and three heuristic batch senders: the Image Merging Sender (IMS) and the Distortion / Detectability Limited Senders (DiLS / DeLS). The paradigm of Gaussian embedding with Gaussian pixel model has been extended to the IMS and its improved version called Adaptive Batch size Image Merging sender (AdaBIM) in <ref type="bibr">[8]</ref>, <ref type="bibr">[13]</ref>. Detector-informed spreading strategies called Minimum Deflection Sender (MDS) and Shift Limited Sender (SLS) with an omniscient Warden were studied in the spatial domain in <ref type="bibr">[12]</ref>. The authors also reported on a new phenomenon called the bag gain. Batch WIFS'2023, December 4-7, 2023, Nuremberg, Germany. 978-1-7281-9930-6/20/$31.00 copyright 2023 IEEE. steganography in the JPEG domain for a Warden unaware of the spreading strategy was studied in <ref type="bibr">[11]</ref>.</p><p>Figure <ref type="figure">1</ref> is an illustrative example of the bag gain showing the accuracy of Warden's pooled detector as a function of number of images sent (the bag size B). The pooled detector's accuracy initially decreases with increasing B, then levels off, and eventually increases as the square-root law <ref type="bibr">[15]</ref> inevitably engages since the sender maintains a positive communication rate. The bag gain is the maximal drop in detectability. It has been observed in the spatial domain for all batch senders studied in <ref type="bibr">[12]</ref>, for many types of SIDs and pooled detectors, and for differently informed Wardens. The bag gain was analyzed and explained in <ref type="bibr">[16]</ref> with a simple source model. In particular, it was shown to robustly manifest for batch senders that, loosely speaking, embed larger payloads in hard-tosteganalyze images and small payloads in easy-to-steganalyze images. Since the bag gain occurs for bag sizes that can be used in practice, the steganographer can decrease the chances of being caught simply by selecting a bag size that is neither too big nor too small.</p><p>In general, the manifestation of the bag gain depends on many factors, including the average communication rate, the response of the SID used for pooling, the aggressiveness of the batch sender to assign payloads, and the cover source. The work of Zakaria et al. <ref type="bibr">[11]</ref>, for example, does not show the bag gain because the results are reported over multiple batch senders and rates that were too large. To the best of knowledge of the authors, the bag gain has not been studied in the JPEG domain, which is the main focus of this paper.</p><p>In the next section, we describe batch steganography and pooled steganalysis in a more formal manner and introduce all necessary concepts and terminology. Section III describes the batch senders and Warden's poolers studied in this paper. The setup of our experiments and implementation details appear in Section IV with the results of all experiments, their interpretation, discussion, and analysis laid out in Section V. The paper is concluded in Section VI.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. BATCH STEGANOGRAPHY AND POOLED STEGANALYSIS</head><p>A cover bag of size B, X = (X (1) 0 , . . . , X (B) 0 ), is formed by independently selecting B cover images X (1) 0 , . . . , X (B) 0 from a cover source of equally sized JPEG images, each with a total of N DCT coefficients. We assume that the steganographer maintains a fixed communication rate r in terms of either bits per DCT coefficient (bpc) or bits per non-zero AC DCT coefficient (bpnzac). This assumption is reasonable as a steganographic channel is likely to be used repetitively in practice. For a fixed positive rate r, the sender will eventually be caught due to the square root law. In this paper, the relative payload &#945; i to be embedded in X (i) 0</p><p>will always be measured in terms of bpc. A batch spreading strategy is a mapping that assigns payload chunks &#945; i bpc to all images in X so that the payload constraint is satisfied.</p><p>Denoting the number of non-zero AC DCTs in</p><p>where c(X) = B for rate r in bpc and c(X) = B i=1 N i /N for r in bpnzac. The steganographer produces the ith stego image X (i) &#945;i by embedding X (i) 0 with payload of length &#945; i . Given an intercepted bag of B images Y = (Y (1) , . . . , Y (B) ), the Warden infers whether steganography is being used by performing the following composite hypothesis test:</p><p>The Warden "pools" the evidence Y together by using a pooled detector (or "pooler"). We assume the Warden's decision is solely informed by the collection of outputs of a SID, which is a mapping d that assigns to each image a scalar referred to as the soft output (or response) of the detector. Formally, the Warden's pooler is of the form &#960; : R B &#8594; R, and she infers whether the sender uses steganography by computing d(Y (i) ) for all i = 1, . . . , B and comparing &#960;(d(Y (1) ), . . . , d(Y (B) )) against a threshold determined by some application-dependent requirements.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. BATCH SENDERS AND POOLERS</head><p>We restrict our study to the IMS <ref type="bibr">[7]</ref> and the MDS <ref type="bibr">[12]</ref>, <ref type="bibr">[16]</ref>. The IMS is a well studied sender, which is a natural extension of steganography from a single image to a bag. It considers the entire bag as one large image and lets the embedding algorithm allocate the payload. The MDS was included because it is the most amenable to analysis within the context of a statistical model of the SID <ref type="bibr">[16]</ref> and also the appendix. The model will help us understand, explain, and analyze trends observed in experiments in Section V.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. MDS</head><p>The MDS assumes the Warden's hypothesis test has the following form (2):</p><p>where Y (i) are the images from a bag under inspection by the Warden and &#945; i is the payload possibly residing in the ith image. The distribution of Warden's detector under H 0 is over acquisitions of the same scene with the same camera and settings. The Gaussianity is heuristically justified by the independent heteroscedastic acquisition noise model <ref type="bibr">[17]</ref> and the fact that d can be linearized on a small neighborhood of the noise-free scene. Furthermore, notice the additional simplifying assumption in (3) that the variance does not depend on i or &#945; i .</p><p>Assuming the parameters of the distributions in this hypothesis test are known to the Warden, the most powerful pooled detector is the likelihood ratio test. The detectability of steganography in a single bag is determined by the deflection coefficient</p><p>where</p><p>is the so-called response curve of ith cover image for detector d, with the expectation taken over embedding X (i) 0 with random messages of length &#945; and stego keys. Note that &#826; i (&#945;) is assumed to be independent of the specific cover acquisition</p><p>Assuming that the sender uses the same SID d as the Warden,<ref type="foot">foot_0</ref> the MDS minimizes the power of Warden's most powerful detector by selecting &#945; i that minimize &#8710; 2 (X) subject to the payload constraint (1).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Poolers</head><p>In this paper, we use two types of SIDs: a binary classifier trained on a random uniform mixture of payloads (in terms of bpnzac) and a quantitative detector that returns an estimate of the length of the hidden payload.</p><p>We have investigated many different types of poolers but report only on their subset that performed the best. As the simplest uninformed pooler, we consider the average of soft SID outputs on analyzed images Y (i) :</p><p>For a Warden aware of the spreading strategy and rate r, we also use the correlator</p><p>where &#945;i is the payload that might reside in ith image estimated by the Warden from the images at hand. For the IMS with J-UNIWARD <ref type="bibr">[18]</ref>, the payloads estimated from the stego images are nearly identical to the payloads computed from covers. This small estimation error has basically no effect on the detection accuracy. For the detector-aware MDS, the payloads need to be estimated from the response curves of the sender's detector. Since the Warden will generally not have access to this detector, there will always be an estimation error.</p><p>Per our experiments, and in line with the findings reported in <ref type="bibr">[12]</ref>, this estimation error has a negligible effect on the detection accuracy. Hence, in all our experiments, we assume the worst case scenario for the sender and set &#945;i = &#945; i .</p><p>We have also experimented with the max pooling strategy &#960; MAX (Y) = max i d(Y (i) ) as well as machine learning poolers trained as Gaussian support vector machines for each bag size separately but do not report on them because the max pooler performed very poorly, while the learned poolers performed essentially the same as the average and the correlator when adding the payloads to the feature vector formed by outputs of the SID.</p><p>The implementation details of the MDS and both SIDs appear in Section IV-A.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. EXPERIMENTAL SETUP</head><p>For compatibility with our previous work <ref type="bibr">[12]</ref>, all experiments were executed on ALASKA II dataset with 75,000 images split into three parts (Split 1, 2, and 3), each containing 25,000 images further divided into 22k, 1k, and 2k images for training, validation, and testing. The images were developed as in <ref type="bibr">[19]</ref> and then compressed with scipy.dct with a range of quality factors. The splits are used to study the impact of a mismatched training set for training Warden's detector and for training poolers. Alice uses the test set of Split 1 to send her secret messages in bags of size B by sampling B images without replacement. To conduct the evaluation, we utilize a specific number of test bags for each bag size. We use 2000 test bags for bag sizes 1 to 10, 1000 test bags for bag sizes 15, 20, 30, and 250 test bags for bag sizes 60 and 120.</p><p>Our study includes JPEG qualities 98, 95, 90, 85, and 75 and two payload constraints to show how the bag gain depends on the quality factor and the way an average payload is maintained over time. Because of the sheer amount of possible combinations of the steganographer's detector, the Warden's detector, stego schemes, communication rates r, bag sizes, and spreading / pooling strategies, we limit our exposition to one content-adaptive steganographic scheme, the J-UNIWARD <ref type="bibr">[18]</ref>. The average communication rate r was selected to best demonstrate the bag gain phenomenon and avoid degenerate cases when the detection is too close to random guessing or almost perfect.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Implementation details</head><p>For spreading, the MDS uses a single-image detector (SR-Net1) trained on Split 1. Splits 2 and 3 are used by the Warden who trains her SID as another instance of SRNet (SRNet2) on Split 2. Both network detectors were pre-trained on a binary task of steganalyzing J-UNIWARD <ref type="bibr">[18]</ref> (JIN pre-training <ref type="bibr">[20]</ref>). The binary classifier SID was trained by drawing stego images embedded with relative payloads in terms of bpnzac selected uniformly at random from the set P = 0.05, 0.1, 0.2, . . . , 0.9, 1.</p><p>(</p><p>The quantitative detector, which we abbreviate qSID, is also another instance of SRNet (SRNet2) pre-trained on a binary task of steganalyzing J-UNIWARD <ref type="bibr">[18]</ref>. However, the qSID was trained using an L 2 loss by generating stego images in a similar manner to SID on a refined payload grid (minibatches were formed by uniformly randomly sampling images with payloads from P fine &#8746; {0}) P fine = 0.01, 0.02, ..., 0.09, 0.1, 0.2, . . . , 0.9, 1.</p><p>We use this form of the qSID rather than the previous state of the art <ref type="bibr">[21]</ref> since the end-to-end training and architecture simplifies the computational cost of experiments. Since the design of quantitative detectors is not the subject of our current work, we refrain from including a more extensive comparison between these two quantitative detectors. We do note that when compared with the bucket estimator from <ref type="bibr">[21]</ref> in the spatial domain using the same settings as described in <ref type="bibr">[21]</ref>, our endto-end trained estimator achieved 10% better performance in terms of MSE and MAE (mean absolute error) scores.</p><p>The IMS was implemented by considering a given bag of B images each with N DCTs as a single large image into which the total payload was embedded using an embedding simulator. The costs were pre-computed from single images.</p><p>For MDS implementation, we employ a logistic model of response curves exactly as described in the original publication <ref type="bibr">[12]</ref>. Response curves were estimated from a fine fixed grid of payloads in terms of bpnzac (9) (and thus variable from image to image in terms of bpc). We also capped the capacity of all images at 1 bpnzac because this payload is very detectable in our cover source.</p><p>Since the maximal capacity of each image is 1 bpnzac, to avoid problems with satisfying the payload constraint in bpc for small bag sizes, we ensure all images in the bag have a sufficient number of non-zero AC coefficients to meet the desired rate. Images with not enough non-zero AC coefficients are excluded from the bag formation process. Typically, this eliminates less than 1% of images from the test set of Split 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. RESULTS</head><p>In Figure <ref type="figure">2</ref>, we show the pooler's weighted Area Under the Curve (wAUC) <ref type="bibr">[19]</ref> on the test set as a function of the bag size B for two quality factors, two senders, two payload constraints, and two poolers with SID and qSID. In agreement with the analysis in <ref type="bibr">[16]</ref>, the bag gain is larger for the larger quality factor because higher-quality JPEGs are more likely to have flatter response curves (and thus be able to hold large payloads). The bag gain is also larger for the MDS because it assigns payloads more aggressively than IMS. Interestingly, maintaining a fixed bpc per bag leads to larger bag gain than bpnzac. This effect is explained in the appendix from the same bivariate model of response curves as in <ref type="bibr">[16]</ref>. Furthermore, we note that SID outperforms qSID in all configurations. We attribute it to the fact that qSID lacks accuracy for smaller payloads. Therefore, going forward we only employ poolers equipped with the binary SID.</p><p>Figure <ref type="figure">3</ref> shows the bag gain as a function of JPEG quality for the IMS and MDS for both payload constraints when steganalyzed with the best pooler. The gain is generally smaller for IMS than for MDS and significantly smaller for the payload constraint in bpnzac. We explain this using a model in the appendix. Additionally, we observed that the bag size where the bag gain occurs is larger for MDS than for IMS for both forms of the payload constraint.</p><p>The bag gain does not manifest for rates that are too large (the detectability monotonically increases with B) or too small as in this case the dip "drowns" in statistical fluctuations because poolers perform as random guessers for small B. In Figure <ref type="figure">4</ref>, we show the bag gain for quality 95, the bpc payload constraint, the MDS, and the best pooler to show the dependence on the rate r. Similar trends can be observed for other quality factors and the IMS.</p><p>It is difficult if possible to contrast the JPEG domain with the spatial domain because the embedding algorithm is different and so is the cover source. Relating to Figure <ref type="figure">11</ref> from <ref type="bibr">[12]</ref>, the bag gain for the MDS in the spatial domain with HILL as the stego scheme is significantly larger than for the IMS. In contrast, the difference between IMS and MDS is much smaller in the JPEG domain. This is because the IMS with J-UNIWARD is comparable in its aggressivity to assign payloads with the MDS (unlike the IMS with HILL). To substantiate this claim, in Figure <ref type="figure">5</ref>, we plot the distribution of the maximal payload assigned by IMS and MDS in bag sizes corresponding to the bag gain in two different domains. The top histogram corresponds to HILL at 0.3 bpp and bag size B = 16 while the bottom histogram shows the distribution for J-UNIWARD at 0.1 bpc for quality factor 95 and bag size B = 15. The IMS with HILL in the spatial domain does not assign the largest payloads nearly as aggressively as the MDS. In contrast, the IMS and MDS with J-UNIWARD are more similar in terms of payload assignment aggressivity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VI. CONCLUSIONS</head><p>When a batch sender maintains a fixed communication rate and assigns payloads to images based on detectability, the security is maximal when the payload is spread among a certain number of images. This gain in security is called the bag gain. In the current paper, we study this phenomenon in the JPEG domain. Our experimental findings are supported with analysis from a simple source model. In particular, the bag gain is more significant for larger JPEG qualities and for batch senders that assign the payload chunks to images in a more aggressive manner. Also, the bag gain is more pronounced when the sender maintains a fixed rate in terms of bits per DCT coefficient than per non-zero AC DCT coefficient because the latter constraint decreases the diversity of stego bags. The bag gain and the optimal bag size depend on the rate and the type of the batch sender. For the image merging sender, the gain can be up to 0.04 in terms of wAUC of the pooled detector (for high qualities) and up to 0.065 for the minimum deflection sender. Since the optimal bag size ranges from 2 to 8, the results are relevant for practitioners.</p><p>The bag gain largely disappears for very low JPEG qualities because the embedding is generally more detectable in such images and there are not enough images that are complex enough to safely hold large payloads.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ACKNOWLEDGMENT</head><p>The work on this paper was supported by NSF grant No. 2028119. The U.S.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>APPENDIX EFFECT OF PAYLOAD CONSTRAINT ON BAG GAIN</head><p>As shown in <ref type="bibr">[16]</ref>, many experimentally observed trends in detectability as a function of bag size for the MDS can be explained with a linear model of response curves (5),</p><p>and a bivariate model of slopes b i &#8712; {&#949;, 1}</p><p>where 0 &lt; &#949; &#8810; 1 and p &#8712; [0, 1]. In other words, the cover source consists of two types of images-easy to steganalyze images with slope b = 1 and difficult images with slope &#949;, which can hold a large payload with a virtually unchanged detector response. Due to the different statistical makeup of small and large bags, the detectability initially decreases, then levels off, and eventually increases due to the square root law. The advantage of the simple model ( <ref type="formula">10</ref>) and ( <ref type="formula">11</ref>) is a closed form<ref type="foot">foot_1</ref> for MDS payloads</p><p>that minimize the deflection (4  B k=1  Note that C &#949; follows a binomial distribution on its support across bags X. As shown in <ref type="bibr">[16]</ref>, when c(X) = B the trends exhibited by the expected deflection with respect to B, &#949;, and p qualitatively match experiments on real datasets. The bag gain will manifest as long as larger bags contain enough hard-to-steganalyze images on average and the batch sender is aggressive enough in assigning the payload (IMS or MDS). The reader is referred to <ref type="bibr">[16]</ref> for a detailed analysis of the above model and its ability to explain many interesting trends in detectability observed in experiments.</p><p>To understand why the bag gain is less pronounced for the payload constraint in bpnzac, note that the response curve is generally steeper (has a larger slope b) for images with fewer non-zero DCTs as such images are smoother. In contrast, highly textured / noisy images, which are more difficult to steganalyze, will have smaller slopes and a larger number of non-zero DCTs N i . Hence, there is an approximate inverse proportionality between b i and N i : N i &#8733; 1/b q i for some q &gt; 0. We note that for q = 0, c(X) &#8733; B i=1 1/b q i = B, which corresponds to the payload constraint in bpc <ref type="bibr">(1)</ref>. If we model the relationship for bpnzac with q = 2, c(X) = 1 </p><p>Since C &#949; has a binomial distribution, the expectation of the deflection increases monotonically w.r.t. bag size B, suppressing the manifestation of the bag gain.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>In reality and also in this paper, the detector used by the sender and the Warden do not match, hence the MDS will not be guaranteed to be optimal w.r.t. Warden's detector.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>This is because we minimize a function quadratic in &#945; i with a linear payload constraint. Technically, the solution requires the payloads to be unbounded.</p></note>
		</body>
		</text>
</TEI>
