alphaFeedback

WorksPhysics and Astronomy

Fully Quantum Latent Diffusion for Synthetic Malware Records: Effective Denoising, Limited Class Information, and Costly Post-Selection

AI contributions
  • Claude · Anthropic
View details

Abstract

Malware benchmarks are difficult to share, because the samples are harmful and a corpus can reveal the incidents of its holder, while synthetic substitutes can leak training records. Quantum diffusion models, however, have been evaluated only on images or quantum states, leaving the utility, privacy, and sampling cost of their samples unknown. In this research, we introduce a fully quantum latent diffusion model for malware records, in which a parameterized circuit with one mid-circuit measurement denoises amplitude-encoded latent vectors of opcode sequences without classical neural layers. On 17 malware families with ten seeds, we compared it with random states, a perfect generator, a parameter-matched classical control, and a classical latent diffusion model. The circuit lowers its denoising infidelity by 63%, yet classifiers trained on its records reach a macro-F1 score of 0.11 on real records, against 0.08 for random states, 0.61 for a perfect generator, and 0.44 for a classical diffusion model of comparable size, and adding its records to real training data lowers the score from 0.635 to 0.593. Post-selected sampling accepts 3.0×10−73.0\times10^{-7} of runs, and a training penalty that raises the acceptance to 0.14 removes most of the denoising. No synthetic record copies a training record, and smoothing the decoded lengths lowers the area under the curve of a length-based membership test from 0.80 to 0.51, which a differentially private length histogram matches with a formal guarantee. These results indicate that quantum generators of shareable security data require a joint evaluation of utility, privacy, and sampling cost.

Introduction

Benchmark datasets of malware underpin the development and comparison of learning-based detectors, yet they are difficult to share: the samples are harmful programs, and their collection often depends on sources whose terms restrict re-distribution. Synthetic records produced by generative models offer a substitute that research groups could exchange instead of the programs themselves. Diffusion models [1] have become the leading generators of such data, from images in latent spaces [2] to tabular records [3] and embeddings of malware programs [4]. However, a synthetic dataset protects its sources only if the generator does not reproduce them. Diffusion models can memorize and regenerate individual training samples [5], and synthetic data in general either fail to prevent inference attacks or lose much of their utility [6]. A release of synthetic security data therefore requires evidence on both utility and privacy.

Quantum machine learning (QML) offers a different class of generators, in which parameterized quantum circuits play the role of neural networks [7]. In our systematic review of quantum deep learning in the noisy intermediate-scale quantum (NISQ) era [8], we examined how such models have been designed and evaluated under the limited qubit counts and circuit depths of current devices [9]. These limits also shape the performance of quantum neural networks (QNNs): in our comparative analysis of three hybrid QNN architectures [10], models that performed well on datasets with few features degraded markedly on high-dimensional data, and their robustness to quantum noise differed considerably between architectures. A quantum generator for

malware records should therefore operate on compact representations, which latent diffusion provides by moving the generative process into the low-dimensional space of a pre-trained autoencoder [2].

Quantum diffusion models can be broadly categorized into two families. In hybrid models, variational circuits replace components of a classical denoiser, such as the layers of a U-Net [11], or a classical network processes the measured state between the steps [12]. Since the classical network of such a model can carry most of the generative task, the contribution of its circuits is difficult to isolate. In fully quantum models, the circuit itself maps noisy quantum states onto denoised ones, with ancilla measurements that provide the required non-unitary step [12, 13, 14]. These models rest on two expectations: since nn qubits hold 2n2^n amplitudes, a circuit should describe the data distribution with far fewer trainable parameters than a classical denoiser, and the generative process should run on a quantum device from the noisy state to the denoised one, without classical layers between the steps. However, these models share two limitations with respect to the release of security data. First, they have been evaluated on images or on quantum states with measures of sample quality, so that the utility of their samples for downstream classifiers and the privacy risks of their release remain unknown. Second, fully quantum denoisers depend on mid-circuit measurements and post-selection, whose cost has not been quantified for the circuits that training produces. Consequently, it remains unclear whether a fully quantum diffusion model can generate useful and private security records at a sampling cost that quantum hardware can afford.

In this research, we introduce a fully quantum latent diffusion model for malware records and evaluate it against these requirements, which tests the expectations above directly: the circuit performs every denoising step alone, so that its contribution can be measured in isolation, at a known parameter count and a measurable cost of sampling on quantum hardware. A pre-trained convolutional autoencoder maps every opcode sequence onto a latent vector of 32 features, which we store in the amplitudes of five qubits, and a reverse-bottleneck circuit with one ancilla measurement performs every denoising step without any classical neural layer. Our contributions are summarized as follows:

  • We formulate fully quantum latent diffusion for malware records, with two amplitude codecs, a family-conditioned circuit trained toward the posterior mean of each step, and a decoder that restores the length removed by the encoding, together with a threat model for the release of synthetic security data (§ 3). To the best of our knowledge, this is the first application of a quantum diffusion model to security data.

  • We establish a theorem and two propositions on the training target, on the initialization and the acceptance probability that it implies, and on the lengths of decoded records, complemented by two lemmas on the smoothness of training and the shot complexity of the read-out, and we verify every statement numerically (§ 3.12 and Appendices § 13 and § 14).

  • We identify a privacy leak in the decoder, which reuses the exact lengths of training records and supports a membership test with an area under the receiver operating characteristic curve (AUC) of 0.80, and we close it with a smoothed bootstrap of the lengths that requires no retraining and with a differentially private estimate of the length distribution that gives a formal guarantee (§ 3.3 and § 5.3).

  • We evaluate the quantum denoiser on all 17 families with ten seeds and paired tests, in terms of utility, distribution fidelity, memorization, membership, sampling cost, and hardware noise, against references that share its encoding, its decoder, and its sampling procedure, namely a parameter-matched classical control, the random states from which sampling starts, and the round-trip ceiling of a perfect generator, and we place the complete framework against a classical latent DDPM in the design of Bao et al. [4]. We test the explanations of the limited utility with stochastic samplers, a weighting of the records by their acceptance probability, a training objective that penalizes rejection, and diagnostics on the initial states and the gradients (§ 5 and § 6).

Our evaluation clarifies what the current design achieves and where it requires further development. The post-selected circuit learns its objective, lowering the infidelity of its denoising steps by 63% relative to the identity map, and it moves the generated states toward the data, which lowers the squared MMD of its records by 20% relative to the random states from which sampling starts. Its records never copy training data, and a smoothed bootstrap of the decoded lengths closes a channel through which the decoder supports a membership test with an AUC of 0.80. However, the class information of its records remains close to that of the random states: classifiers trained on its records and tested on real records reach a macro-F1 score of 0.114, against 0.076 for the random states and a ceiling of 0.605 for a perfect generator, whereas a parameter-matched classical control reaches 0.367 with the sign-split codec and a classical latent DDPM with 11,404 parameters reaches 0.442, and adding the records of the circuit to the real training data lowers the macro-F1 score from 0.635 to 0.593. After training, the probability of accepting a post-selected sample falls to 3.0×10−73.0 \times10^{-7}. A penalty on rejected runs, trained with three of the seeds, raises this probability from 1.6×10−71.6 \times10^{-7} to 0.14 but removes most of the denoising. These findings identify the encoding of the families and the competition between denoising and acceptance under post-selection, more than the parameter budget or the sampler, as the main directions for the development of fully quantum diffusion for security data.

The remainder of this paper is organized as follows. § 2 reviews related work on synthetic security data, diffusion models, and quantum generative models. § 3 presents the quantum latent diffusion model and its theoretical analysis, and § 4 describes the experimental setup. § 5 reports the results, § 6 discusses their implications and the limitations of our study, and § 7 concludes the paper. Appendix § 13 contains the proofs, and Appendix § 14 contains their numerical verification.

Related work

In this section, we review three lines of work on which our study builds: the generation of synthetic data for security research together with the assessment of its privacy, diffusion models, and quantum generative models, including the quantum diffusion models that Table 1 compares with ours.

ModelQuantum partCircuit outputDataLatentEvaluation
QuDDPM [13]DenoiserState after ancilla measurementQuantum state ensemblesNoDistances between state ensembles
QDM [14]DenoiserState after ancilla measurementMNISTPixels and latentFID, WaM, classifier AUC; sampling on an IBM processor
Hardware-oriented and hybrid QDM [12]Denoiser, partly driven by a classical networkState after ancilla measurement; measured amplitudes (hybrid)MNIST digits 0 and 1Pixels and latentFID; sampling on an IBM processor
Quantum U-Net [11]U-Net layersMeasurement outcomesMNIST, Fashion-MNIST, CIFAR-10NoFID, SSIM, PSNR
QLDM [37]AutoencoderExpectation valuesQuantum statesYesFidelity, entanglement entropy
This workDenoiserPost-selected stateMalware latent vectorsYesClassifier utility, MMD, memorization, membership, acceptance probability, hardware noise

Table 1. Quantum diffusion models compared with this work. Quantum part: the component that the circuit implements. Circuit output: the state that the circuit passes to the next step after its measurement, or the expectation values that a classical network receives. Latent: whether the diffusion runs in the latent space of an autoencoder. FID: Fréchet inception distance; WaM: Wasserstein distance between Gaussian mixtures; SSIM and PSNR: structural similarity and peak signal-to-noise ratio; AUC: area under the receiver operating characteristic curve.

Synthetic data for security research

Machine learning for malware analysis depends on large labeled corpora of programs, which are difficult to share, since the programs themselves are harmful and their collection often involves restricted sources. Public benchmarks have therefore released derived representations, such as the static features of 1.1 million Windows executables in EMBER [15], and opcode sequences obtained by disassembling executables have long served as a representation for the detection of unknown malware [16].

Generative models offer a second way to share such data, and work on them has followed two directions. The first direction builds the generators. Generative adversarial networks (GANs) [17] have served attackers to craft malware features that evade black-box detectors [18], and conditional GANs [19] and diffusion models [3, 20] have become standard generators of synthetic tabular records and network traffic. Generators of malware data have also operated on opcode sequences, for instance through word embeddings of the opcodes and a Wasserstein GAN [21], and diffusion models have recently followed: Bao et al. [4] trained a denoising diffusion probabilistic model (DDPM) [1] with a one-dimensional U-Net on per-program embeddings of the opcode sequences of 25 malware families and reported that its synthetic embeddings improved the classification of small families more than those of GANs, Camerota et al. [22] augmented images of IoT malware traffic with a DDPM, and Paim et al. [23] included a latent diffusion model among the generators of tabular Android malware records. These studies evaluate the generated records by their utility for classifiers and do not measure what the records reveal about their training data. The second direction assesses what the generated data reveal. Empirical audits test whether an adversary can decide that a record belonged to the training set [24], measure the distance of synthetic records to their closest training records [25], or extract training samples from the generator [5], whereas differentially private training [26] bounds the influence of every record at a cost in utility. Generators of synthetic data have adopted such guarantees, for instance GANs trained with private aggregation of teacher ensembles [27] or with differentially private gradients for tabular records [28], and diffusion models trained with differentially private gradients [29], whose sample quality decreases as the privacy budget shrinks. Both directions share a limitation that Stadler et al. [6] made explicit: synthetic data either failed to prevent inference attacks or lost much of their utility, so that privacy and utility cannot be assessed separately. These assessments concern the trained generator, while the deterministic processing that maps generated vectors back to records has received less attention. In contrast, we assess utility and privacy jointly (§ 3.10), and we analyze the decoder of our model as a privacy channel of its own, which reveals the lengths of training records unless they are smoothed (Proposition 2).

Diffusion models

Diffusion models learn to reverse a gradual noising process [30], and DDPMs [1] have made this approach practical by training a network to predict the noise of each step with a regression objective. Subsequent work has mainly reduced the cost of sampling and of the denoiser. Implicit samplers [31] replace the stochastic chain of about 1,000 steps with a deterministic chain of far fewer steps, and latent diffusion [2] moves the process into the low-dimensional space of a pre-trained autoencoder. Nevertheless, classical denoisers typically remain networks with millions of parameters that are evaluated at every step, and they can memorize their training samples [5]. In contrast, our denoiser is a circuit of 11,520 angles that operates in a latent space of 32 features and samples with ten deterministic steps, a combination whose consequences for the diversity of the samples we analyze in § 6.1.

Quantum generative models

Parameterized quantum circuits [7] have served as generative models either by sampling from their measurement distribution [32] or by playing the generator of an adversarial game [33, 34], which can also load probability distributions into quantum states [35]. These models share a limitation of training: their gradients can vanish exponentially with the number of qubits [36], so that most quantum generators have remained small. Diffusion offers a way around this limitation, since it splits generation into a sequence of short denoising steps, each of which a shallow circuit can learn [13].

Quantum diffusion models differ mainly in where the circuit acts and in how it realizes the non-unitary map that denoising requires, and Table 1 compares them along these axes. In fully quantum models, the circuit acts on quantum states and obtains the non-unitary step from mid-circuit measurements of ancilla qubits, after which the measured state enters the next step. QuDDPM [13] and its mixed-state extension [38] have generated ensembles of quantum states in this way, Parigi et al. [39] proposed to exploit the noise of quantum processors as the diffusion mechanism itself, and the quantum diffusion models of Cacioppo et al. [12, 14] have generated images from amplitude-encoded pixels and from the latent vectors of a classical autoencoder, with sampling executed on an IBM processor. In hybrid models, a classical network processes the outputs of the circuits, for instance when quantum layers form part of a U-Net [11, 40] or denoise the latent features of a classical autoencoder [41]; concurrently with our work, Li et al. [37] placed the circuits in a quantum autoencoder and kept a classical denoiser for the generation of high-dimensional quantum states.

These lines share three limitations with respect to the release of security data. First, their evaluations measure the quality of images or the distance between ensembles of quantum states; Cacioppo et al. [14] also checked conditional samples with classifiers trained on real images, but no study has trained classifiers on the generated samples or assessed what the samples reveal about their training data. Second, fully quantum models have avoided branch selection on hardware, because the probability of accepting a run decreases exponentially with the number of selected measurements [12, 14], but the acceptance probability of a trained post-selected circuit along its sampling trajectories has not been reported. Third, in hybrid models the classical network carries the state between steps, so that the contribution of the circuits is difficult to separate from that of the network.

Our model builds on the latent, fully quantum design of Cacioppo et al. [14] and differs from it in three respects. First, we train the circuit toward the posterior mean of each step instead of a single draw of the previous state, which removes the variance of the target without changing the optimal denoiser (Theorem 1), and we keep the post-selected branch during training and sampling, whose acceptance probability we report (§ 5.1). Second, family-specific first blocks condition the circuit on the malware family instead of additional label qubits, and a sign-split codec separates the families in the Hilbert space (§ 3.3). Third, we evaluate the generated records with the utility and privacy measures of synthetic security data, against a parameter-matched classical control and the bounds that the encoding sets on any generator, and under hardware noise. Quantum machine learning has also entered security applications, for instance with hybrid and fully quantum networks that classify images of Android applications [42] and with a hybrid quantum-classical Wasserstein GAN that detects fraudulent credit card transactions as anomalies [43]; to the best of our knowledge, however, no previous study has applied a quantum diffusion model to security records.

training downstream classifiers, while staying away from the individual training records.

Methodology

In this section, we introduce the quantum latent diffusion model that we employ to generate synthetic security records. Figure 1 illustrates the complete pipeline. A pre-trained encoder maps every record onto a latent vector, which we store in the amplitudes of a quantum state. We corrupt the encoded states with a classical forward diffusion process and train a parameterized quantum circuit to reverse this process one step at a time with an infidelity objective. To generate a record, the trained circuit denoises a random quantum state, and a classical decoder maps the final state back to the latent space. The denoiser is the only quantum component of the pipeline, and it contains no classical neural layer between its noisy input state and its denoised output state. We formulate the problem and describe the latent representation in § 3.1, state the threat model in § 3.2, and present the amplitude encoding and the forward process in § 3.3 and § 3.4. § 3.5 to § 3.7 describe the quantum denoiser, its training, and the sampling procedure. § 3.8 to § 3.11 cover the simulation of hardware noise, the parameter-matched classical control, the evaluation measures, and the implementation. Finally, § 3.12 establishes the theoretical properties of the model, whose proofs are given in Appendix § 13.

Training and sampling pipeline of the quantum latent diffusion model

Figure 1. Training and sampling pipeline of the quantum latent diffusion model. Training (top): the encoder EE of the convolutional autoencoder maps a record rr onto a latent vector z∈R32z \in\mathbb{R}^{32}, the amplitude encoding Enc maps zz onto the state ∣x0⟩\lvert x_0\rangle of n=5n = 5 qubits (Eq. (3)), and the classical forward process q(xt∣x0)q(x_t \mid x_0) produces the noisy state ∣xt⟩\lvert x_t\rangle for every step t=1,…,Tt = 1, \ldots, T (Eq. (9)). The quantum denoiser Φθ(⋅;t,k)\Phi_\theta(\cdot;t,k) of Figure 2 maps ∣xt⟩\lvert x_t\rangle onto ∣ψout⟩\lvert\psi_{\mathrm{out}}\rangle, and the infidelity loss L\mathcal{L} compares this output with the normalized posterior mean ∣μ~t⟩\lvert\tilde{\mu}_t\rangle (Eqs. (12) and (24)). Sampling (bottom): the trained denoiser is applied for t=T,…,1t = T,\ldots,1 to a Haar-random initial state ∣zT⟩\lvert z_T\rangle, and the decoder Dec reads out the magnitudes of the final state ∣z0⟩\lvert z_0\rangle and restores a length drawn from a smoothed distribution of the training lengths Rk\mathcal{R}_k of class kk, which gives the synthetic latent vector z^\hat{z} (Eqs. (5) and (30)). Gray boxes are classical computations, the blue box is the quantum circuit, and the orange box is the training objective.

Problem formulation and latent representation

We consider a labeled security dataset D={(rj,kj)}j=1ND = \{(r_j, k_j)\}_{j=1}^{N}, in which rjr_j is a record, such as the opcode sequence of a malware program, and kj∈{1,…,K}k_j \in\{1, \ldots, K\} is its class, such as the malware family. We split DD at the record level into a training set DtrD_{\mathrm{tr}}, a validation set DvaD_{\mathrm{va}}, and a test set DteD_{\mathrm{te}}, and the generative model has access to DtrD_{\mathrm{tr}} only. Our objective is to learn the class-conditional distribution of the records from DtrD_{\mathrm{tr}} and to generate synthetic records that remain useful for training downstream classifiers, while staying away from the individual training records.

Instead of modeling the raw records, which are long discrete sequences, we model their latent representations. A pre-trained encoder EE maps each record onto a latent vector

zj=E(rj)∈Rd.(1)z_j = E(r_j) \in\mathbb{R}^{d}. \tag*{(1)}

In this representation, dd denotes the latent dimension, and EE represents the encoder of a convolutional autoencoder (CAE) trained to reconstruct the records. For the malware programs of this study, the CAE truncates or pads each opcode sequence to 7,000 tokens, embeds every token into a 64-dimensional vector, applies three one-dimensional convolutional layers with 128, 256, and 512 channels, and projects the result into a d=32d = 32 latent features. We train the CAE once, on DtrD_{\mathrm{tr}} alone, with a token-level cross-entropy reconstruction loss and keep it fixed for every generative model in this study, so that all models operate on the same latent space and can be compared directly, and so that no learned component of the pipeline observes DvaD_{\mathrm{va}} or DteD_{\mathrm{te}} during training. The generative models produce latent vectors, which the decoder of the CAE can map back to opcode sequences when required.

Threat model and release scenarios

We consider a data holder, such as an antivirus vendor, a computer emergency response team, or the security operations team of an organization, that holds a labeled corpus of malware programs and intends to share a benchmark derived from it. Such corpora are often confidential, although the malware itself circulates widely. Samples collected during incident response can embed configuration data, credentials, or host names of the affected organization, samples obtained from commercial feeds or under non-disclosure agreements cannot be redistributed, and the presence of a sample in the corpus of an organization can reveal that the organization was attacked. In our experiments, the programs come from the public repository VirusShare, which allows other researchers to reproduce the study, and we treat Dtr\mathcal{D}_{\mathrm{tr}} as if it were confidential.

The assets to protect are the training records and their membership in Dtr\mathcal{D}_{\mathrm{tr}}. We distinguish two release scenarios. In the data-only release, the holder publishes synthetic latent vectors with their class labels, and recipients train or augment classifiers in the latent space; to map their own programs into this space, the recipients need the encoder EE of Eq. (1), which must then be a public component, for instance an encoder trained on public programs. In the release with decoder, the holder also publishes the codec of Section 3.3, that is, the scaling parameters and the length statistics of the decoder, together with the CAE. These artifacts are themselves derived from Dtr\mathcal{D}_{\mathrm{tr}}: every minimum and maximum of the min–max scaling equals a feature value of a training record, and the decoder stores the training lengths of every class (Eq. (4)).

The adversary knows the generative procedure, including the codec and the decoding rule with its parameters, receives the released records, and holds candidate programs whose latent vectors and lengths it can compute. Its goal is either to recover training records from the release or to decide whether a candidate program belongs to Dtr\mathcal{D}_{\mathrm{tr}}. We evaluate the first goal with distance measures and the second with membership tests on the released length, and, for an adversary that also obtains the trained generator, on the training loss of the generator (§ 3.10). We do not consider adversaries that poison the training data or query the generator adaptively, and we do not evaluate the privacy of the CAE and of the codec parameters that the release with decoder exposes, which § 6.2 discusses.

Amplitude encoding of latent vectors

Amplitude encoding stores a normalized classical vector in the amplitudes of a quantum state, so that a register of nn qubits holds 2n2^n features [44]. Since the latent dimension d=32d = 32 is a power of two, n=log⁡2d=5n = \log_2 d = 5 qubits hold one latent vector. The encoded vector must have unit norm, and the read-out convention of § 3.7 recovers the magnitudes of the amplitudes only. We therefore first map every latent vector onto a non-negative vector with a min–max scaling fitted on the training set:

ui(z)=max⁡(0,zi−lihi−li),i=1,…,d.(2)u_i(z) = \max\left(0,\frac{z_i-l_i}{h_i-l_i}\right), \qquad i = 1,\ldots,d. \tag*{(2)}

In this scaling, ziz_i represents the ii-th latent feature, lil_i and hih_i denote the minimum and the maximum of feature ii over the training records, and the maximum with zero removes the negative values that validation or test records may produce. We then normalize u(z)u(z) and define the encoded state as

∣ψ(z)⟩=∑i=0D−1ai(z)∣i⟩,a(z)=u(z)∥u(z)∥2,D=2n.(3)\lvert\psi(z)\rangle= \sum_{i=0}^{D-1} a_i(z)\lvert i\rangle,\qquad a(z)=\frac{u(z)}{\lVert u(z)\rVert_2},\qquad D=2^n. \tag*{(3)}

In this state, ∣i⟩\lvert i\rangle represents the ii-th computational basis state of the nn-qubit register, ai(z)≥0a_i(z) \ge0 denotes the corresponding amplitude, and DD is the dimension of the Hilbert space. Preparing an arbitrary amplitude-encoded state on hardware requires a number of CNOT gates that grows exponentially with nn [45, 46], which remains affordable for the five-qubit register of this study.

The normalization in Eq. (3) removes the length ρ(z)=∥u(z)∥2\rho(z)=\lVert u(z)\rVert_2 of the vector, which a quantum state cannot carry. We therefore store, for every class kk, the set of training lengths

Rk={ρ(zj):(zj,kj)∈Dtr, kj=k}.(4)\mathcal{R}_k = \left\{\rho(z_j) : (z_j,k_j)\in\mathcal{D}_{\mathrm{tr}},\ k_j=k\right\}. \tag*{(4)}

The decoder uses these lengths of the scaled training vectors of class kk to restore the length of generated vectors. Given the magnitudes ∣α^∣∈R≥0D\lvert\hat{\alpha}\rvert\in\mathbb{R}_{\ge0}^{D} of a generated state of class kk, the decoder computes

z^=l+(h−l)⊙(ρ∣α^∣),ρ=ρjeξζ,\hat{z}=l+(h-l)\odot(\rho\lvert\hat{\alpha}\rvert),\qquad\rho=\rho_j e^{\xi\zeta},
ρj∼U(Rk),ζ∼N(0,1).(5)\rho_j\sim\mathcal{U}(\mathcal{R}_k),\qquad\zeta\sim\mathcal{N}(0,1). \tag*{(5)}

In this decoder, ⊙\odot represents the element-wise product, ρj\rho_j denotes a training length of class kk drawn uniformly at random, and ζ\zeta is a standard normal variable drawn independently of ρj\rho_j and of the generated state. The logarithm log⁡ρ=log⁡ρj+τkζ\log\rho= \log\rho_j + \tau_k \zeta is therefore a draw of the smoothed bootstrap [47] from the logarithms of the training lengths of class kk, which is a draw from their Gaussian kernel density estimate with bandwidth τk\tau_k. We set this bandwidth with the rule of thumb of Silverman [48],

τk=0.9min⁡(sk,IQR⁡k1.34)∣Rk∣−1/5.(6)\tau_k = 0.9 \min\left(s_k, \frac{\operatorname{IQR}_k}{1.34}\right) \lvert\mathcal{R}_k \rvert^{-1/5}. \tag*{(6)}

Here, sks_k and IQR⁡k\operatorname{IQR}_k are the sample standard deviation and the interquartile range of {log⁡r:r∈Rk}\{\log r : r \in\mathcal{R}_k\}, and ∣Rk∣\lvert\mathcal{R}_k \rvert is the number of training records of class kk. With the min–max codec, τk\tau_k lies between 0.0006 and 0.014 for the classes of this study, so that the factor eτkζe^{\tau_k\zeta} changes a drawn length by at most 1.4% when ∣ζ∣≤1\lvert\zeta\rvert\le1.

We draw a random length instead of a fixed one, such as the median length of the class, because identical lengths would allow a classifier trained on synthetic data to use the length as a class label, and this shortcut does not transfer to real data. We perturb the drawn training length as well, because with τk=0\tau_k = 0 every synthetic record would carry the exact length of a training record. Proposition 2 in § 3.12 formalizes both properties.

The smoothed bootstrap protects the lengths empirically. For a formal guarantee, we also evaluate a decoder whose length distribution satisfies ϵ\epsilon-differential privacy [49]. For every class kk, we count the training lengths in BB bins of equal width on the range [0,D][0,\sqrt{D}], which contains every training length of the min–max codec and does not depend on the data, and we perturb the counts with the Laplace mechanism,

c~k,b=max⁡(0,ck,b+ηk,b),b=1,…,B,\widetilde{c}_{k,b} = \max(0,c_{k,b}+\eta_{k,b}), \qquad b=1,\ldots,B,
ηk,b∼Laplace⁡(1/ϵ).(7)\eta_{k,b} \sim\operatorname{Laplace}(1/\epsilon). \tag*{(7)}

References

  1. [1]J. Ho, A. Jain, P. Abbeel, Denoising diffusion probabilistic models, in: Advances in Neural Information Processing Systems, volume 33, 2020, pp. 6840–6851.arxiv.org/abs/2006.11239
  2. [2]R. Rombach, A. Blattmann, D. Lorenz, P. Esser, B. Ommer, High-resolution image synthesis with latent diffusion models, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022, pp. 10684–10695.arxiv.org/abs/2112.10752
  3. [3]A. Kotelnikov, D. Baranchuk, I. Rubachev, A. Babenko, TabDDPM: Modelling tabular data with diffusion models, in: Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, 2023, pp. 17564–17579.DOI
  4. [4]T. Bao, K. Trousil, Q. D. Tran, F. Di Troia, Y. Park, Generating synthetic malware samples using generative AI, IEEE Access 13 (2025) 59725–59736.DOI
  5. [5]N. Carlini, J. Hayes, M. Nasr, M. Jagielski, V. Sehway, F. Tramèr, B. Balle, D. Ippolito, E. Wallace, Extracting training data from diffusion models, in: 32nd USENIX Security Symposium, 2023, pp. 5253–5270.arxiv.org/abs/2301.13188
  6. [6]T. Stadler, B. Oprisanu, C. Troncoso, Synthetic data – anonymisation groundhog day, in: 31st USENIX Security Symposium, 2022, pp. 1451–1468.
  7. [7]M. Benedetti, E. Lloyd, S. Sack, M. Fiorentini, Parameterized quantum circuits as machine learning models, Quantum Science and Technology 4 (2019) 043001.DOI
  8. [8]B. Q. Tran, D. M. Chu, H. T. D. Pham, S. Mengel, A systematic literature review of quantum deep learning in the NISQ era, in: Proceedings of the 2026 15th International Conference on Software and Computer Applications (ICSCEA 2026), ACM, Langkawi, Malaysia, 2026, pp. 93–103.DOI
  9. [9]J. Preskill, Quantum computing in the NISQ era and beyond, Quantum 2 (2018) 79.DOI
  10. [10]B. Q. Tran, D. M. Chu, H. T. D. Pham, V. Q. Nguyen, Q. A. Pham, S. Mengel, A comprehensive analysis of accuracy and robustness in quantum neural networks, in: International Conference on Quantum Computing Infrastructure & Technologies (QUAN-COM 2026), Trento, Italy, 2026. To appear; preprint arXiv:2604.26110.arxiv.org/abs/2604.26110
  11. [11]M. Kölle, G. Stenzel, J. Stein, S. Zielinski, B. Ommer, C. Linnhoff-Popien, Quantum denoising diffusion models, arXiv preprint arXiv:2401.07049 (2024).arxiv.org/abs/2401.07049
  12. [12]A. Cacioppo, L. Colantonio, S. Bordoni, S. Giagu, Hybrid and hardware-oriented approaches for quantum diffusion models, in: 2025 International Joint Conference on Neural Networks (IJCNN), IEEE, 2025. doi:10.1109/IJCNN64981.2025.11272783.DOI
  13. [13]B. Zhang, P. Xu, X. Chen, Q. Zhuang, Generative quantum machine learning via denoising diffusion probabilistic models, Physical Review Letters 132 (2024) 100602.DOI
  14. [14]A. Cacioppo, L. Colantonio, S. Bordoni, S. Giagu, Quantum diffusion models, arXiv preprint arXiv:2311.15444 (2023).arxiv.org/abs/2311.15444
  15. [15]H. S. Anderson, P. Roth, EMBER: An open dataset for training static PE malware machine learning models, arXiv preprint arXiv:1804.04637 (2018).arxiv.org/abs/1804.04637
  16. [16]I. Santos, F. Brezo, X. Ugarte-Pedrero, P. G. Bringas, Opcode sequences as representation of executables for data-mining-based unknown malware detection, Information Sciences 231 (2013) 64–82.
  17. [17]I. Goodfellow, I. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, Y. Bengio, Generative adversarial nets, in: Advances in Neural Information Processing Systems, volume 27, 2014, pp. 2672–2680.
  18. [18]W. Hu, Y. Tan, Generating adversarial malware examples for black-box attacks based on GAN, arXiv preprint arXiv:1702.05983 (2017).arxiv.org/abs/1702.05983
  19. [19]L. Xu, M. Skoularidou, A. Cuesta-Infante, K. Veeramachaneni, Modeling tabular data using conditional GAN, in: Advances in Neural Information Processing Systems, volume 32, 2019.arxiv.org/abs/1907.00503
  20. [20]X. Jiang, S. Liu, A. Gember-Jacobson, A. N. Bhagoji, P. Schmitt, F. Bronzino, N. Feamster, NetDiffusion: Network data augmentation through protocol-constrained traffic generation, Proceedings of the ACM on Measurement and Analysis of Computing Systems 8 (2024) 11.
  21. [21]O. D. Tran, F. Di Troia, Word embeddings for fake malware generation, in: Silicon Valley Cybersecurity Conference (SVCC 2022), volume 1683 of Communications in Computer and Information Science, Springer, Cham, 2022, pp. 22–37. doi:10.1007/978-3-031-24049-2_2.
  22. [22]C. Camerota, L. Pappone, T. Pecorella, F. Esposito, Addressing data security in IoT: Minimum sample size and denoising diffusion models for improved malware detection, in: Proceedings of the 20th International Conference on Network and Service Management (CNSM), 2024.
  23. [23]K. O. Paim, A. G. D. Nogueira, D. Kreutz, W. Cordeiro, R. B. Mansilha, MalDataGen: A modular framework for synthetic tabular data generation in malware detection, in: Proceedings of the Brazilian Symposium on Cybersecurity (SBSeg), 2025.
  24. [24]R. Shokri, M. Stronati, C. Song, V. Shmatikov, Membership inference attacks against machine learning models, in: IEEE Symposium on Security and Privacy, 2017.arxiv.org/abs/1610.05820
  25. [25]N. Park, M. Mohammadi, K. Gorde, S. Jajodia, H. Park, Y. Kim, Data synthesis based on generative adversarial networks, Proceedings of the VLDB Endowment 11 (2018) 1071–1083.DOI
  26. [26]M. Abadi, A. Chu, I. Goodfellow, H. B. McMahan, I. Mironov, K. Talwar, L. Zhang, Deep learning with differential privacy, in: Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, 2016, pp. 308–318.DOI
  27. [27]J. Jordon, J. Yoon, M. van der Schaar, PATE-GAN: Generating synthetic data with differential privacy guarantees, in: International Conference on Learning Representations (ICLR), 2019.
  28. [28]M. L. Fang, D. S. Dhami, K. Kersting, DP-CTGAN: Differentially private medical data generation using CTGANs, in: Artificial Intelligence in Medicine (AIME 2022), Lecture Notes in Computer Science, Springer, Cham, 2022. doi:10.1007/978-3-031-09342-5_17.
  29. [29]T. Dockhorn, T. Cao, A. Vahdat, K. Kreis, Differentially private diffusion models, Transactions on Machine Learning Research (2023).arxiv.org/abs/2210.09929
  30. [30]J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, S. Ganguli, Deep unsupervised learning using nonequilibrium thermodynamics, in: Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, 2015, pp. 2256–2265.
  31. [31]J. Song, C. Meng, S. Ermon, Denoising diffusion implicit models, in: International Conference on Learning Representations, 2021.arxiv.org/abs/2010.02502
  32. [32]M. Benedetti, D. Garcia-Pintos, O. Perdomo, V. Leyton-Ortega, Y. Nam, A. Perdomo-Ortiz, A generative modeling approach for benchmarking and training shallow quantum circuits, npj Quantum Information 5 (2019) 45.
  33. [33]S. Lloyd, C. Weedbrook, Quantum generative adversarial learning, Physical Review Letters 121 (2018) 040502.DOI
  34. [34]P.-L. Dallaire-Demers, N. Killoran, Quantum generative adversarial networks, Physical Review A 98 (2018) 012324.
  35. [35]C. Zoufal, A. Lucchi, S. Woerner, Quantum generative adversarial networks for learning and loading random distributions, npj Quantum Information 5 (2019) 103.DOI
  36. [36]J. R. McClean, S. Boixo, V. N. Smelyanskiy, R. Babush, H. Neven, Barren plateaus in quantum neural network training landscapes, Nature Communications 9 (2018) 4812.DOI
  37. [37]G. Li, M. Jing, C. Zhu, X. Wang, Quantum latent diffusion model for high-dimensional state generation, Quantum Machine Intelligence 8 (2026) 10.
  38. [38]G. Kwun, B. Zhang, Q. Zhuang, Mixed-state quantum denoising diffusion probabilistic model, Physical Review A 111 (2025) 032610.arxiv.org/abs/2411.17608
  39. [39]M. Parigi, S. Martina, F. Caruso, Quantum-noise-driven generative diffusion models, Advanced Quantum Technologies (2024) 2300401.DOI
  40. [40]F. De Falco, A. Ceschini, A. Sebastianelli, B. Le Saux, M. Panella, Quantum hybrid diffusion models for image synthesis, KI - Künstliche Intelligenz 38 (2024) 311–326.
  41. [41]F. De Falco, A. Ceschini, A. Sebastianelli, B. Le Saux, M. Panella, Quantum latent diffusion models, Quantum Machine Intelligence 6 (2024) 85.DOI
  42. [42]F. Mercaldo, G. Ciaramella, G. Iadarola, M. Storto, F. Martinelli, A. Santone, Towards explainable quantum machine learning for mobile malware detection and classification, Applied Sciences 12 (2022) 12025.DOI
  43. [43]D. Herr, B. Obert, M. Rosenkranz, Anomaly detection with variational quantum generative adversarial networks, Quantum Science and Technology 6 (2021) 045004. doi:10.1088/2058-9565/ac0d4d.DOI
  44. [44]M. Schuld, F. Petruccione, Machine Learning with Quantum Computers, Springer, Cham, 2021.DOI
  45. [45]M. Möttönen, J. J. Vartiainen, V. Bergholm, M. M. Salomaa, Transformation of quantum states using uniformly controlled rotations, Quantum Information and Computation 5 (2005) 467–473.arxiv.org/abs/quant-ph/0407010
  46. [46]M. Plesch, Č. Brukner, Quantum-state preparation with universal gate decompositions, Physical Review A 83 (2011) 032302.DOI
  47. [47]B. W. Silverman, G. A. Young, The bootstrap: To smooth or not to smooth?, Biometrika 74 (1987) 469–479.DOI
  48. [48]B. W. Silverman, Density Estimation for Statistics and Data Analysis, volume 26 of Monographs on Statistics and Applied Probability, Chapman and Hall, London, 1986.
  49. [49]C. Dwork, F. McSherry, K. Nissim, A. Smith, Calibrating noise to sensitivity in private data analysis, in: Theory of Cryptography Conference (TCC 2006), volume 3876 of Lecture Notes in Computer Science, Springer, Berlin, Heidelberg, 2006, pp. 265–284. doi:10.1007/11681878_14.DOI
  50. [50]M. Schuld, A. Bocharov, K. M. Svore, N. Wiebe, Circuit-centric quantum classifiers, Physical Review A 101 (2020) 032308.DOI
  51. [51]A. Barenco, A. Berthiaume, D. Deutsch, A. Ekert, R. Jozsa, C. Macchiavello, Stabilization of quantum computations by symmetrization, SIAM Journal on Computing 26 (1997) 1541–1557.DOI
  52. [52]H. Buhrman, R. Cleve, J. Watrous, R. de Wolf, Quantum fingerprinting, Physical Review Letters 87 (2001) 167902.DOI
  53. [53]D. P. Kingma, J. Ba, Adam: A method for stochastic optimization, in: International Conference on Learning Representations, 2015.arxiv.org/abs/1412.6980
  54. [54]K. Mitarai, M. Negoro, M. Kitagawa, K. Fujii, Quantum circuit learning, Physical Review A 98 (2018) 032309.
  55. [55]M. Schuld, V. Bergholm, C. Gogolin, J. Izaac, N. Killoran, Evaluating analytic gradients on quantum hardware, Physical Review A 99 (2019) 032331.DOI
  56. [56]M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information: 10th Anniversary Edition, Cambridge University Press, Cambridge, 2010.
  57. [57]S. Elfwing, E. Uchibe, K. Doya, Sigmoid-weighted linear units for neural network function approximation in reinforcement learning, Neural Networks 107 (2018) 3–11.DOI
  58. [58]L. Breiman, Random forests, Machine Learning 45 (2001) 5–32.
  59. [59]C. Cortes, V. Vapnik, Support-vector networks, Machine Learning 20 (1995) 273–297.DOI
  60. [60]F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, et al., Scikit-learn: Machine Learning in Python, Journal of Machine Learning Research 12 (2011) 2825–2830.arxiv.org/abs/1201.0490
  61. [61]C. Esteban, S. L. Hyland, G. Rätsch, Real-valued (medical) time series generation with recurrent conditional GANs, arXiv preprint arXiv:1706.02633 (2017).arxiv.org/abs/1706.02633
  62. [62]A. Gretton, K. M. Borgwardt, M. J. Rasch, B. Schölkopf, A. Smola, A kernel two-sample test, Journal of Machine Learning Research 13 (2012) 723–773.DOI
  63. [63]S. Yeom, I. Giacomelli, M. Fredrikson, S. Jha, Privacy risk in machine learning: Analyzing the connection to overfitting, in: IEEE 31st Computer Security Foundations Symposium (CSF), 2018, pp. 268–282. doi:10.1109/CSF.2018.00027.DOI
  64. [64]A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, et al., PyTorch: An imperative style, high-performance deep learning library, in: Advances in Neural Information Processing Systems, volume 32, 2019, pp. 8024–8035.arxiv.org/abs/1912.01703
  65. [65]V. Bergholm, J. Izaac, M. Schuld, C. Gogolin, N. Killoran, et al., PennyLane: Automatic differentiation of hybrid quantum-classical computations, arXiv preprint arXiv:1811.04968 (2018).arxiv.org/abs/1811.04968
  66. [66]VirusShare, VirusShare: A repository of malware samples, 2026. URL: https://virusshare.com, accessed 26 October 2026.
  67. [67]A. Nappa, M. Z. Rafique, J. Caballero, The MALICIA dataset: identification and analysis of drive-by download operations, International Journal of Information Security 14 (2015) 15–33.DOI
  68. [68]Free Software Foundation, GNU Binutils: objdump, 2026. URL: https://www.gnu.org/software/binutils/, accessed 26 October 2026.
  69. [69]F. Wilcoxon, Individual comparisons by ranking methods, Biometrics Bulletin 1 (1945) 80–83. doi:10.2307/3001968.DOI
  70. [70]REPACSS Team, REPACSS user guide: Architecture, Texas Tech University, 2026. URL: https://guide.repacss.org/understanding/repacss-system/architecture.html, accessed 26 October 2026.
  71. [71]A. Défossez, L. Bottou, F. Bach, N. Usunier, A simple convergence proof for Adam and Adagrad, Transactions on Machine Learning Research (2022).
  72. [72]S. Ghadimi, G. Lan, Stochastic first- and zeroth-order methods for nonconvex stochastic programming, SIAM Journal on Optimization 23 (2013) 2341–2368.arxiv.org/abs/1309.5549
  73. [73]W. Hoeffding, Probability inequalities for sums of bounded random variables, Journal of the American Statistical Association 58 (1963) 13–30.

Paper details

vlnc:W_xwrr5vuc
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Physics and Astronomy

Claude (Anthropic) · View statement →

Looking for related papers…
Contents