<?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'>Adversarial Perturbations Are Formed by Iteratively Learning Linear Combinations of the Right Singular Vectors of the Adversarial Jacobian</title></titleStmt>
			<publicationStmt>
				<publisher>Proceedings of the 42 nd International Conference on Machine Learning, Vancouver, Canada. PMLR 267, 2025</publisher>
				<date>05/01/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10652982</idno>
					<idno type="doi"></idno>
					
					<author>Thomas Paniagua</author><author>Chinmay Savadikar</author><author>Tianfu Wu</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[White-box targeted adversarial attacks reveal core vulnerabilities in Deep Neural Networks (DNNs), yet two key challenges persist: (i) How many target classes can be attacked simultaneously in a specified order, known as the ordered top-K attack problem (K ≥ 1)? (ii) How to compute the corresponding adversarial perturbations for a given benign image directly in the image space? We address both by showing that ordered top-K perturbations can be learned via iteratively optimizing linear combinations of the right singular vectors of the adversarial Jacobian (i.e., the logit-to-image Jacobian constrained by target ranking). These vectors span an orthogonal, informative subspace in the image domain. We introduce RisingAttacK, a novel Sequential Quadratic Programming (SQP)-based method that exploits this structure. We propose a holistic figure-of-merits (FoM) metric combining attack success rates (ASRs) and ℓp-norms (p = 1, 2, ∞). Extensive experiments on ImageNet-1k across six ordered top-K levels (K = 1, 5, 10, 15, 20, 25, 30) and four models (ResNet-50, DenseNet-121, ViTB, DEiT-B) show RisingAttacK consistently surpasses the state-of-the-art QuadAttacK.]]></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 n="1.">Introduction</head><p>Deep Neural Networks (DNNs) have witnessed tremendous progress across numerous applications, enabling the recent development of large foundation models (such as Deep-Mind's AlphaZero and AlphaFold and OpenAI's ChatGPT) that are widely recognized to pave a promising way to-wards Artificial General Intelligence (AGI). Despite of the remarkable achievement, adversarial vulnerability <ref type="bibr">(Szegedy et al., 2013;</ref><ref type="bibr">Goodfellow et al., 2014)</ref> remains the Achilles heel of all DNNs, particularly in computer vision, as revealed by white-box adversarial attacks, especially targeted white-box attacks <ref type="bibr">(Carlini &amp; Wagner, 2017</ref>) that can fool trained DNNs towards arbitrarily specified targets. With the access to network architectures and pretrained weights, white-box attacks can expose their deep vulnerabilities and test their robustness. In practice, white-box attacks are also used as surrogate models in learning transferrable blackbox <ref type="bibr">(Inkawhich et al., 2019;</ref><ref type="bibr">Li et al., 2020a;</ref><ref type="bibr">Naseer et al., 2021;</ref><ref type="bibr">Zhao et al., 2023;</ref><ref type="bibr">Fang et al., 2024)</ref> and no-box <ref type="bibr">(Li et al., 2020b)</ref> attacks. So, seeking more powerful whitebox attacks will provide a foundation both for learning potentially stronger black-box and no-box attacks. In this paper, we focus on learning white-box targeted attacks in ImageNet-1k <ref type="bibr">(Russakovsky et al., 2015)</ref> classification tasks.</p><p>We consider the generalized setting of targeted attacks, ordered top-K attacks <ref type="bibr">(Zhang &amp; Wu, 2020;</ref><ref type="bibr">Paniagua et al., 2023)</ref>, that relax the traditional top-1 targets (e.g., to fool a DNN to classify a dog image as a cat) to K targets (K &#8805; 1) in any given orders (e.g., to fool a DNN to classify a dog image with <ref type="bibr">[car, tree, table]</ref> as the ordered top-3 prediction, see the middle in Fig. <ref type="figure">1</ref>). Ordered top-K targeted attacks expose deeper vulnerabilities of DNNs, since they show the manipulability of the decision boundary of DNNs at the logits subspace levels, especially when K is large (e.g., K &gt; 20). These attacks are particularly impactful in applications where the order of predictions significantly influences outcomes, such as recommendation systems or multi-class decision-making, and adversaries can exploit decision hierarchies to disrupt critical processes. Particularly, safety-critical systems (e.g., face unlock, medical triage, content moderation) reason over entire ranked lists. An attacker dictating all top predictions (similar in spirit to <ref type="bibr">[cat, car, fish]</ref> vs only "cat") obtains finer control and evades simple "Top-1 changed" detectors.</p><p>In the meanwhile, security evaluations now recommend K &gt; 1. For example, in the new differential-privacy evaluation guideline, <ref type="bibr">NIST SP 800-226 (March 2025)</ref>  <ref type="bibr">(Near e.g., a</ref> cat image e.g., randomly sampled top-3 targets in the order of <ref type="bibr">[car, tree, table]</ref> The Prior Art Figure <ref type="figure">1</ref>. Workflow comparisons between our proposed image space based RisingAttacK (top) and the prior art (bottom), CW K and AdvDistill <ref type="bibr">(Zhang &amp; Wu, 2020)</ref> and QuadAttacK <ref type="bibr">(Paniagua et al., 2023)</ref> for learning ordered top-K targeted adversarial attacks <ref type="bibr">(Zhang &amp; Wu, 2020)</ref> for a benign image x benign &#8712; [0, 1] D (e.g., D = 3 &#215; 224 &#215; 224). See text for details. <ref type="bibr">et al., 2025)</ref> devotes an entire discussion to "Practical differentially-private Top-K selection" and cites <ref type="bibr">(Durfee &amp; Rogers, 2019)</ref> as its canonical example which repeatedly frames robustness/utility checks around whether the entire ordered set of the highest-scoring items is preserved under noise-not just the single best-underscoring regulators' need for Top-K mis-ranking tests. Ordered top-K attacks thus supply the stress-test regulators and practitioners request but that Top-1-only methods cannot deliver.</p><p>Ordered top-K attacks can be straightforwardly formulated as an optimization problem with highly non-linear constraints, which is intractable in the vanilla form (see Eqn. 4). Thus, learning ordered top-K attacks poses a unique challenge as they require the perturbations to precisely influence the model's ranking mechanism across multiple outputs (K &gt; 1), not just a single decision (K = 1). Addressing ordered top-K attacks offers valuable insight into how models distribute their confidence across multiple classes and the vulnerabilities associated with this ranking structure. To address this challenge, there are two main approaches in the prior art (see the bottom of Fig. <ref type="figure">1</ref>):</p><p>&#8226; Designing surrogate loss functions, such as the CW K  (extended from the CW method <ref type="bibr">(Carlini &amp; Wagner, 2017)</ref>) and the Adversarial Distillation method proposed in <ref type="bibr">(Zhang &amp; Wu, 2020)</ref>, that transform the constrained optimization problem to an unconstrained one. &#8226; Reformulating the non-linear constraints to linear ones, such as the recently proposed QuadAttacK <ref type="bibr">(Paniagua et al., 2023)</ref>, by first solving the optimization problem in the feature space of the DNN backbone (i.e., the input space to the linear head classifier), and then back-propagating the optimized features through the backbone to compute adversarial perturbations.</p><p>QuadAttacK has shown significant improvement in comparison with methods based on surrogate loss functions. While QuadAttacK is effective, its effectiveness diminishes significantly when K &gt; 20 and the computing budget is restricted (e.g., 30 steps). It relies on backpropagation to map the optimized feature space perturbation back to the original input image space. This introduces an indirect connection between the optimization problem and the resulting image space perturbation, leading to limitations as-follows:</p><p>&#8226; Feature vs. Image Space Misalignment: Minimizing the perturbation in the feature space does not always correspond to minimizing it in the image space due to the nonlinear mapping between the two spaces. &#8226; Suboptimal Visual Perturbations: The resulting adversarial examples may not fully align with the visual characteristics of the image, as perturbations that minimize the distance in feature space may not correspond to minimal or visually coherent changes in the image space, due to the nonlinear relationship between the two spaces.</p><p>To the best of our knowledge, no existing approaches have been proposed for learning ordered top-K attacks (K &#8805; 1) directly in the image space due to the complexities of highdimensional, non-linear optimization. Potentially due to this, it remains unresolved to seek an explicit formula for "seeing" what adversarial perturbations are formed, if possible. In this paper, we propose a Sequential Quadratic Programming (SQP) formulation to address the nonlinear optimization challenge of learning ordered top-K with the ground-truth label, redshank) by our RisingAttacK using a list of randomly sampled 30 targets in the order of: mask, analog-clock, slide-rule, Siberian-husky, harmonica, African-chameleon, dowitcher, hyena, wing, pillow, garter-snake, Great-Pyrenees, puffer, banana, West-Highland-white-terrier, whippet, brown-bear, snowplow, tarantula, space-heater, sports-car, jean, sandbar, perfume, papillon, triceratops, barrow, peacock, digital-watch, carton.</p><p>The adversarial perturbations are normalized to [0, 1] for the sake of visualization. Some of them are treated as being "visually imperceptible" based on the commonly used threshold 8/255 = 0.0314 for &#8467;&#8734; ('linf') norms. For the benign image, the top-30 predictions by the four models respectively are:</p><p>&#8226; ResNet50: redshank, ruddy turnstone, red-backed sandpiper, dowitcher, oystercatcher, grey whale, red-breasted merganser, crane, sea lion, chainlink fence, lakeside, wreck, quail, partridge, screwdriver, plastic bag, pelican, parachute, killer whale, sulphur-crested cockatoo, African crocodile, white <ref type="bibr">stork,</ref><ref type="bibr">pole,</ref><ref type="bibr">bucket,</ref><ref type="bibr">caldron,</ref><ref type="bibr">hummingbird,</ref><ref type="bibr">sandbar,</ref><ref type="bibr">king penguin,</ref><ref type="bibr">nail,</ref><ref type="bibr">syringe. &#8226; DenseNet121: redshank,</ref><ref type="bibr">ruddy turnstone,</ref><ref type="bibr">oystercatcher,</ref><ref type="bibr">breakwater,</ref><ref type="bibr">dowitcher,</ref><ref type="bibr">sea lion,</ref><ref type="bibr">academic gown,</ref><ref type="bibr">abaya,</ref><ref type="bibr">mortarboard,</ref><ref type="bibr">lifeboat,</ref><ref type="bibr">cloak,</ref><ref type="bibr">espresso,</ref><ref type="bibr">lipstick,</ref><ref type="bibr">theater curtain,</ref><ref type="bibr">wood rabbit,</ref><ref type="bibr">umbrella,</ref><ref type="bibr">refrigerator,</ref><ref type="bibr">ruffed grouse,</ref><ref type="bibr">king penguin,</ref><ref type="bibr">partridge,</ref><ref type="bibr">sandbar,</ref><ref type="bibr">diamondback,</ref><ref type="bibr">wine bottle,</ref><ref type="bibr">mailbox,</ref><ref type="bibr">stone wall,</ref><ref type="bibr">volcano,</ref><ref type="bibr">redbone.</ref> &#8226; ViT-B: redshank, red-backed sandpiper, ruddy turnstone, dowitcher, oystercatcher, water ouzel, Madagascar cat, chain saw, apiary, red-breasted merganser, Tibetan mastiff, cicada, seat belt, American egret, wall clock, mask, snow leopard, schipperke, potter's wheel, lycaenid, mud turtle, curly-coated retriever, dumbbell, television, strainer, feather boa, buckle, junco, boa constrictor, volcano.</p><p>&#8226; DEiT-B: redshank, ruddy turnstone, red-backed sandpiper, dowitcher, oystercatcher, red-breasted merganser, warthog, worm fence, Indian elephant, African crocodile, maze, badger, snowplow, American black bear, stone wall, king penguin, car wheel, rock python, water <ref type="bibr">ouzel, guillotine, wild boar, centipede, diamondback, apiary, barrow, horned viper, sundial, guenon, bustard, skunk.</ref> attacks directly in the image space, as illustrated in Fig. <ref type="figure">1</ref> (top), which can address the drawbacks of QuadAttacK <ref type="bibr">(Paniagua et al., 2023)</ref>. Our approach efficiently solves the SQP problem by iteratively computing the singular value decomposition (SVD) of the adversarial Jacobian (i.e., the attack-targets-ranking constrained logit-to-image Jacobian matrix), obtained from linearizing the DNN during optimization. This direct optimization in image space provides deeper insights into the learned adversarial perturbations: ordered top-K adversarial perturbations can be learned by iteratively optimizing linear combinations of the right singular vectors (corresponding to non-zero singular values) of the adversarial Jacobian. The proposed method is thus dubbed as RisingAttacK (see examples in Fig. <ref type="figure">2</ref>). Our proposed RisingAttacK achieves significant better performance than the prior state-of-the-art method, QuadAt-tacK <ref type="bibr">(Paniagua et al., 2023)</ref> in experiments.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related Work and Our Contributions</head><p>Adversarial Attacks. Adversarial attacks aim to expose the vulnerabilities of DNNs by introducing small, often visually imperceptible perturbations to input data that cause the model to produce incorrect or adversary-specified outputs. Foundational work in adversarial machine learning introduced methods for generating adversarial examples under various norms and constraints, including the Fast Gradient Sign Method (FGSM) <ref type="bibr">(Goodfellow et al., 2014)</ref>, Projected Gradient Descent (PGD) <ref type="bibr">(Madry et al., 2017)</ref>, and the Carlini-Wagner (CW) attack <ref type="bibr">(Carlini &amp; Wagner, 2017)</ref>. These early approaches primarily targeted top-1 classification outputs, seeking to force the model to misclassify an input into a specific target class.</p><p>Beyond top-1 attacks, researchers have investigated adversarial perturbations that manipulate the top-K predictions of a model. <ref type="bibr">(Zhang &amp; Wu, 2020)</ref> introduced one of the earliest methods for addressing ordered top-K adversarial attacks, focusing on creating an optimal target class distribution aided by word embedding vectors, and minimizes KL divergence to this optimal distribution that satisfies the ordered top-K objective. <ref type="bibr">(Tursynbek et al., 2022)</ref> explored the geometry of unordered top-K adversarial attacks, highlighting the complexities of crafting perturbations that adhere to top-K constraints. <ref type="bibr">(Reza et al., 2025)</ref> proposed GSBA K , a geometric score-based unordered top-K blackbox attack method built on <ref type="bibr">(Reza et al., 2023)</ref>. <ref type="bibr">(Paniagua et al., 2023)</ref> advanced this area by formulating the ordered top-K adversarial attack problem as a quadratic programming (QP) optimization in the feature space. This approach efficiently enforced the desired ordering of logits but required back-propagation to map feature space solutions to the image space. Our proposed JacAttacK builds upon these foundations by extending the idea in QuadAttacK <ref type="bibr">(Pani-agua et al., 2023)</ref> to directly address the ordered top-K adversarial attack problem in the image space.</p><p>Sequential Quadratic Programming (SQP). SQP is a widely used framework for solving nonlinear constrained optimization problems <ref type="bibr">(Nocedal &amp; Wright, 1999)</ref>. By iteratively solving QP subproblems that linearize constraints and use a quadratic approximation of the objective, SQP effectively handles problems involving nonlinearities and complex constraint sets <ref type="bibr">(Boggs &amp; Tolle, 2000)</ref>. This approach is particularly relevant in high-dimensional settings, such as adversarial attacks, where the constraints often involve intricate relationships between model outputs. However, applying SQP to large-scale problems, such as those in image space, can be computationally expensive due to the need to repeatedly compute gradients and solve large QPs <ref type="bibr">(Gill et al., 2005)</ref>. Our method adapts SQP for adversarial optimization by leveraging subspace splitting to reduce the dimensionality of the optimization problem, thereby overcoming scalability challenges while preserving accuracy.</p><p>Our Contributions. The main contributions of this paper are as-follows: (i) Novel Theoretical Insights: It introduces explicit derivations connecting adversarial perturbations to singular vectors of the adversarial Jacobian, providing new theoretical clarity. (ii) Methodological Innovation: It is the first method to directly optimize ordered top-K adversarial attacks in image space via SQP, significantly improving alignment between optimized solutions and visually coherent perturbations. (iii) Empirical Advances: It provides comprehensive evaluation across multiple architectures and attack levels, consistently outperforming the previous stateof-the-art, QuadAttacK using a proposed holistic metric, Figure of Merits (FoM) covering both success rates and perturbation magnitudes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Approach</head><p>In this section, we first define the problem of learning ordered top-K attacks <ref type="bibr">(Zhang &amp; Wu, 2020)</ref>, and then present details of our proposed RisingAttacK.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Problem Definition</head><p>Model Under Attack. Let (x benign , y) &#8712; [0, 1] 3&#215;H&#215;W &#215; Y be a pair of a benign RGB image x benign with spatial height and width, H and W respectively, and its ground-truth label y with the C-class label space Y = {1, &#8226; &#8226; &#8226; , C}. Let D = 3 &#215; H &#215; W be the dimension of the input image space. In ImageNet-1k <ref type="bibr">(Russakovsky et al., 2015)</ref>  A DNN trained for image classification is a highly-nonlinear mapping from the image space to the logit space:</p><p>where &#920; collects all learned parameters of the DNN. We will omit &#920; in notations and use &#8467;(&#8226;) for simplicity.</p><p>We consider validation or testing images that can be correctly classified by a trained DNN such as ResNet-50 <ref type="bibr">(He et al., 2016)</ref> in learning attacks, i.e., y = arg max &#8467;(x benign ). The DNN is frozen in learning attacks.</p><p>The Adversarial Region of Ordered Top-K Targeted Attacks for (x benign , y). Let T &#8712; Y \ {y} be a randomly sampled sequence of ordered top-K targets for attacking x benign , K = |T |. The adversarial region is defined by,</p><p>(2)</p><p>where the subscript represent the entry index of the logit vector. We often expect the perturbation energy, defined by l p -norm, ||x adv -x benign || p , is as small as possible to be visually imperceptible for p = 1, 2, &#8734;. An adversarial perturbation &#948; = x adv -x benign is treated as being "visually imperceptible" based on the commonly used threshold &#8467; &#8734; &lt; 8/255 = 0.0314.</p><p>Encoding Ordered Top-K Targeted Attack Constraints in the Logit Space. Denote by K &#8712; {+1, 0, -1} (C-1)&#215;C the matrix that encodes ordered top-K constraints subject to T , with which the adversarial region can be rewritten by,</p><p>Learning ordered top-K attacks for a benign image x benign can be posed as a constrained minimization problem, minimize</p><p>subject to K &#8226; &#8467;(x perturb ) &gt; 0,</p><p>x perturb = Clamp(x benign + &#948;), where &#948; is the adversarial perturbation variables, || &#8226; || p represents the l p -norm (typically, l 2 -norm is used). Clamp(&#8226;) ensures the perturbed example x perturb is in the input image space (i.e., x perturb &#8712; [0, 1] D ) via element-wise pixel value clipping. The challenge of solving Eqn. 4 lies in the nonlinear constraints caused by the highly non-linear DNN (Eqn. 1). In practice, we also expect the learning of x adv (= x benign + &#948; * ) &#8712; R(x benign , T ) is efficient subject to a predefined and limited budget such as 30 or 60 iterations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Our Proposed RisingAttacK</head><p>Inspired by the QP approach in QuadAttacK <ref type="bibr">(Paniagua et al., 2023)</ref> (see a brief overview in Appendix A), but different from its feature space QP formulation, we aim to solve Eqn. 4 directly in the image space under the SQP framework <ref type="bibr">(Boggs &amp; Tolle, 2000)</ref>. The core idea is to iteratively linearize the nonlinear constraints in Eqn. 4. Due to the large number of constraints, C -1 and the high dimension-ality of the image space, D, which make the optimization with constraints linearized still infeasible in practice, we streamline yet retain the solutions of Eqn. 4.</p><p>Eqn. 4 can be re-expressed as, minimize</p><p>Similar in spirit to QuadAttacK <ref type="bibr">(Paniagua et al., 2023)</ref> and all other attack methods, our proposed RisingAttacK is an iterative optimization algorithm starting from the initial perturbed image x perturb = Clamp(x benign + &#948; (0) ) (e.g., &#948; (0) = 0). At the i-th iteration, let x perturb = Clamp(x benign + &#948; (i) ) be the current perturbed image. We omit the iteration index in x perturb for simplicity. To solve Eqn. 5, our RisingAttacK is streamlined as follows:</p><p>&#8226; We linearize the DNN &#8467;(&#8226;) around the current perturbed image x perturb , so the nonlinear constraints K &#8226; &#8467;(x) &gt; 0 become linear. We use the first-order Taylor expansion, &#8467;(x) &#8776; &#8467;(x perturb ) + J(x perturb ) &#8226; (x -x perturb ), (6) where J(x perturb ) &#8712; R C&#215;D is the logit-to-image Jacobian matrix of the DNN, which represents the sensitivity of the DNN logits with respect to changes in x perturb . Each row of J(x perturb ) corresponds to the gradient of a particular logit with respect to the input pixels.</p><p>&#8226; After the linearization, there is a gap between the objective function (i.e., x should be as close as possible to the benign image), and the linearized constraints which entails x to be sufficiently close to the perturbed image x perturb to ensure the linearization is sufficiently approximately accurate to retain the ordered top-K constraints. We re-express the objective function ||x -x benign || to be ||x -x anchor ||, where x anchor represents the anchor in optimization, x anchor = x benign or x anchor = x perturb (the current perturbed image). We propose an anchor selection strategy: we start with x anchor = x perturb so the algorithm can quickly reach the adversarial region, that is to find x &#8712; R(x benign , T ). We then seek better adversarial images with smaller perturbation energies by letting the anchor x anchor = x benign . The two steps may iterate based on monitoring the improvement with respect to a threshold (see Sec. 3.2.4). Consider l 2 -norm for the objective, Eqn. 5 is re-expressed as, minimize</p><p>s.t. K &#8226; &#8467;(x anchor ) + J(x anchor ) &#8226; (x -x anchor ) &gt; 0. &#8226; Eqn. 7 is theoretically solvable, but not practically feasible since the number of constraints, C -1 is large (e.g., C = 1000) and the dimension of variables, D is extremely high (e.g., D = 3 &#215; 224 &#215; 224), especially given the limited budgets in learning attacks. We propose methods to address these challenges.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.1.">COMPACT ORDERED TOP-K CONSTRAINTS</head><p>We introduce a mapping that condenses the logit space without compromising the ordered top-K constraints, but allows the number of rows of the Jacobian matrix to only depend on the nubmer of targets, K.</p><p>To that end, we first notice that Eqn. 3 can be simplified to reduce the number of constraints from C -K to 1 without breaking the overall ordered top-K constraints, &#8467;(x) t K &gt; max {&#8467;(x) j } j&#8712;Y\T , (8) where max(&#8226;) introduces nonlinearity in the constraints with a gradient switching effect in learning that is not desirable, however. We tackle this by introducing a mapping,</p><p>where M is a multiplicative of K such as M = 5 &#8226; K. The mapping G reorders the logits and augments them with a differentiable nonlinear term (see Appendix B for details due to space limit).</p><p>Denote by K &#8712; {+1, 0, -1} (d-1)&#215;d the compact encoding matrix using the mapping G, which has a nice form with rows rotating from 1 -1 0 &#8226; &#8226; &#8226; 0 (i.e., the logits in l(&#8226;) are expected to decreasingly ordered). K remains unchanged in the optimization.</p><p>With the mapping G reordered and condensed logits l(&#8226;),</p><p>where the Jacobian matrix J(x anchor ) &#8712; R d&#215;D with d = K + M + 1 only dependent on the number of attack targets, K, and often d &#8810; C (e.g., d = 101 for K = 20 with C = 1000 in ImageNet-1k).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.2.">JACOBIAN SUBSPACE QP</head><p>With the compact encoding matrix K and the updated Taylor expansion (Eqn. 10), the constraints in Eqn. 7 are then simplified and we have, minimize</p><p>where A = -K &#8226; J(x anchor ) incorporates the ordered top-K ranking constraints into the logit-to-image sensitivity analysis (i.e., the adversarial Jacobian), b = K &#8226; l(x anchor ) -J(x anchor )&#8226;x anchor +m defines the constraint boundaries and the feasibility of the optimization, with m being margins introduced to control the target separability and to change from strict '&lt;' to '&#8804;' in optimization constraints. Here,</p><p>Directly solving Eqn. 11 is still computationally challenging and does not meet the low budget in learning attacks. We exploit the structure of the polyhedron via projection.</p><p>Exploiting the Subspace Structure of A. We utilize the structure of A revealed by its SVD,</p><p>). U (and V ) provide orthogonal bases for the column (and the row) spaces of A. And, U &#8226; U &#8868; = I and V &#8868; &#8226; V = I (where I represents the identity matrix). The rows of U corresponding to large singular values identify the most sensitive ranking constraints. The row space of A corresponds to the input image space, and each column of V represents a principle direction in the image space. Since we have d &#8810; D, we can drop the last D -(d -1) columns of V to form the reduced SVD, i.e., V r &#8712; R D&#215;(d-1) , the first d -1 columns of V , which consists of the d -1 orthogonal bases in the image space, and spans the entire solution space of the polyhedron defined by A &#8226; x &#8804; b. The columns of V r span a subspace in which adversarial perturbations are most effective towards satisfying ordered top-K constraints. Learning ordered top-K attacks can be achieved in the subspace accordingly, as we solve it in the following.</p><p>Let &#948; = x -x anchor , Eqn. 11 is rewritten as, minimize</p><p>With the change of variables &#948; = V &#8226; &#1013;, we have,</p><p>So, Eqn. 13 is rewritten as, minimize</p><p>, where due to the block diagonal structure of &#931;, we can split</p><p>and &#1013; o lies in the null space of A and thus can be ignored and set &#1013; o = 0 since we are minimizing ||&#1013;|| 2 2 . We further have, minimize</p><p>x anchor , which is now a low-dimensional optimization problem with linear constraints, and can be solved by many QP solvers efficiently, such as the cvxpy package <ref type="bibr">(Diamond &amp; Boyd, 2016;</ref><ref type="bibr">Agrawal et al., 2018)</ref>. Let b = U &#8868; &#8226; b -A &#8226; x anchor which represents the projection of the constraint boundary onto the orthogonal basis formed by the left singular vectors. Then, the constraint &#931; r &#8226; &#1013; r &#8804; b also shows the feasibility and constraint satisfaction: the smaller the ratio bi &#963;i for a singular value</p><p>) is, the easier it is to satisfy the corresponding constraint.</p><p>Denote by &#1013; * r the optimized solution of Eqn. 17. The optimal solution of &#1013; is &#1013;</p><p>We can directly recover the optimal solution x * in the image space by,</p><p>which can be understood from the QP perspective in the Appendix C, and is used in updating the perturbation and the perturbed image for the next, (i + 1)-th iteration of our RisingAttacK,</p><p>For the solution &#948; * = V r &#8226; &#1013; * r based on Eqn. 17, we observe that it often exhibits disproportionately high &#8467; &#8734; norms. We observe this large &#8467; &#8734; is driven by very few components (pixel values) of our solution and the overall quality of our solution is not contaminated by these extreme values (or outliers). We hypothesize that the outliers might be caused by the first-order Taylor linearization that is not sufficiently accurate at those pixels. To alleviate this issue, we resort to a &#8467; &#8734; Percentile Projection as the post-processing step. Specifically, we compute &#964; = Percentile(|&#948; * |, 0.995) (21) where &#964; indicates 99.5th percentile of magnitudes in our solution. We then element-wisely project &#948; * to this percentile,</p><p>where i is the entry index.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.4.">ANCHOR POINT SELECTION</head><p>When the number of iterations is infinite (or very high), choosing x anchor = x benign in Eqn. 11 yields the lowest energy solution upon convergence. This is because each step of the optimization directly minimizes the distance from x to x benign , aligning the solution trajectory with the global objective. However, in practice, the number of iterations is limited, and x benign does not lie within the adversarial region during intermediate iterations. As a result, only using x benign as the anchor point can significantly delay reaching the adversarial region, especially when the constraint set is complex (when K is large).</p><p>On the other hand, choosing x perturb (the current perturbed image), as the anchor point ensures rapid progress toward the adversarial region. Since the optimization minimizes the distance from x to x perturb at each step, the solution quickly adjusts to satisfy the constraints. However, this may lead to suboptimal solutions in terms of perturbation energy, as the optimization prioritizes feasibility over minimizing perturbation energy.</p><p>Alternating Anchor Point Strategy. To balance the tradeoffs between rapid feasibility and minimal energy, we implement an alternating anchor point strategy. This approach dynamically switches between x benign and x perturb as the anchor point based on the current optimization state.</p><p>&#8226; If the number of iterations since the last feasible solution exceeds &#946; (a predefined threshold), we set x anchor = x perturb to prioritize reaching the adversarial region. &#8226; Otherwise, we set x anchor = x benign to continue minimizing the perturbation energy while staying within the adversarial region.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.5.">INTERPRETATION OF RISINGATTACK</head><p>Eqn. 18 provides an intuitive interpretation for the optimized perturbation &#948; * = V r &#8226;&#1013; * r at each iteration of the optimization. The perturbation is the learned linear combination with coefficients in &#1013; * r &#8712; R d-1 of d-1 image bases, i.e., columns in V r &#8712; R D&#215;(d-1) . Recall that each column in V r represents a principle direction in the image space that can affect logit ranking the most subject to how large the corresponding singular value is. The learned weighted sum of the columns of V r can provide most efficient perturbation, as shown by the consistently smaller perturbation energy obtained in our experiments.</p><p>Potential Defensive Insights. By analyzing which singular vectors in V r correspond to large singular values, defensive strategies can be developed by reinforcing robustness in those vulnerable directions against ordered top-K attacks. Meanwhile, adversarial training can be guided to target these critical subspaces. We leave those for future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Experiments</head><p>In this section, we evaluate our RisingAttacK in the ImageNet-1k benchmark <ref type="bibr">(Russakovsky et al., 2015)</ref>, and compare with QuadAttacK <ref type="bibr">(Paniagua et al., 2023)</ref>. Models Under AttacK. Following QuadAttacK, we use two representative ConvNets (ResNet-50 <ref type="bibr">(He et al., 2016)</ref> and DenseNet-121 <ref type="bibr">(Huang et al., 2017)</ref>) and two Vision Transformers (ViT-B <ref type="bibr">(Dosovitskiy et al., 2020)</ref> and <ref type="bibr">DEiT-B (Touvron et al., 2021)</ref>). Their ImageNet-1k pretrained checkpoints are from the timm package <ref type="bibr">(Wightman, 2019)</ref>.</p><p>Data and Attack Targets. We use ImageNet-1k val images from which we select and sample a subset consisting of class-balanced 1000 images (i.e., one image per class). The 1000 benign images can be correctly classified by all the four models. For each image, five ordered target sets are randomly sampled for each value of K (K = 1, <ref type="bibr">5,</ref><ref type="bibr">10,</ref><ref type="bibr">15,</ref><ref type="bibr">20,</ref><ref type="bibr">25,</ref><ref type="bibr">30)</ref>, see Appendix D for details.</p><p>Table <ref type="table">1</ref>. Ordered top-K attack results averaged across 5 different seeds. Overall, our RisingAttacK shows a big leap forward in advancing ordered top-K attacks, outperforming the prior state-of-the-art method, QuadAttacK <ref type="bibr">(Paniagua et al., 2023</ref>) by a large margin in most cases (higher ASRs with lower &#8467;p norms). &#8467;&#8734;-norms in red is to show they are treated as being "visually imperceptible" based on the commonly used threshold 8/255 = 0.0314. The subscripts of methods (30 and 60) represent the computing budgets.</p><p>(a) ResNet-50 <ref type="bibr">(He et al., 2016)</ref> Top-K Method Mean Time (s/img) &#8595; FoM&#8593; ASR &#8593; &#8467;1 &#8595; &#8467;2 &#8595; &#8467;&#8734; &#8595; Top-30 QuadAttacK60 0.2076 11.8070 3654.9139 0.1349 3.3947 6.4793 RisingAttacK60 0.6642 7.0271 2081.8960 0.0511 17.0013 QuadAttacK30 Failed 1.6539 inf RisingAttacK30 0.0022 6.2378 1844.3013 0.0470 8.5619 Top-25 QuadAttacK60 0.6018 11.6214 3599.8101 0.1301 3.4167 3.6439 RisingAttacK60 0.8420 5.2960 1561.6462 0.0393 14.0839 QuadAttacK30 0.0018 10.4263 3259.2773 0.0991 1.7058 48.9628 RisingAttacK30 0.0392 5.1218 1511.3347 0.0388 7.0999 Top-20 QuadAttacK60 0.8344 10.0891 3133.6199 0.1079 3.4039 3.1100 RisingAttacK60 0.8306 3.7474 1101.1521 0.0281 6.7267 QuadAttacK30 0.0978 9.0948 2850.0433 0.0858 1.7264 1.9481 RisingAttacK30 0.0666 3.4854 1022.5585 0.0269 3.7216 Top-15 QuadAttacK60 0.9440 8.3368 2600.7510 0.0822 3.4839 3.2229 RisingAttacK60 0.9868 3.0150 878.9222 0.0233 5.1634 QuadAttacK30 0.4922 7.8296 2451.8036 0.0717 1.7382 3.3674 RisingAttacK30 0.5856 2.9944 873.3877 0.0234 2.8794 Top-10 QuadAttacK60 0.9866 6.5228 2044.5753 0.0576 3.7396 3.3482 RisingAttacK60 0.9936 2.0825 602.1784 0.0167 3.3991 QuadAttacK30 0.8460 6.3547 1994.8023 0.0544 1.7593 2.9244 RisingAttacK30 0.8064 2.1748 630.0922 0.0175 1.7965 Top-5 QuadAttacK60 0.9968 4.0029 1261.2314 0.0309 4.5257 3.3373 RisingAttacK60 0.9558 1.1534 330.1495 0.0098 1.8225 QuadAttacK30 0.9590 3.9539 1246.4929 0.0300 2.1458 2.6681 RisingAttacK30 0.9504 1.4693 420.0254 0.0124 0.9517 Top-1 QuadAttacK60 0.9996 1.4443 467.1178 0.0083 5.3373 2.1564 RisingAttacK60 0.9992 0.6144 165.8517 0.0064 0.6114 QuadAttacK30 0.9772 1.4244 461.1199 0.0080 2.6411 1.4638 RisingAttacK30 0.9986 0.9155 251.6174 0.0088 0.3201 (b) DenseNet-121 (Huang et al., 2017) Top-K Method Mean Time (s/img) &#8595; FoM&#8593; ASR &#8593; &#8467;1 &#8595; &#8467;2 &#8595; &#8467;&#8734; &#8595; Top-30 QuadAttacK60 Failed 4.5409 inf RisingAttacK60 0.4074 14.7263 4393.8482 0.1051 20.3156 QuadAttacK30 Failed 2.3266 0 RisingAttacK30 Failed 10.2335 Top-25 QuadAttacK60 0.1734 13.1825 4053.5759 0.1531 4.1657 8.5496 RisingAttacK60 0.9370 9.9898 2945.3574 0.0747 16.8643 QuadAttacK30 Failed 2.2016 inf RisingAttacK30 0.1094 9.9203 2921.6770 0.0756 8.5279 Top-20 QuadAttacK60 0.8340 11.6266 3583.3589 0.1268 4.0066 2.6290 RisingAttacK60 0.9812 5.9921 1744.8239 0.0468 8.2901 QuadAttacK30 0.0330 9.8564 3072.6790 0.0923 2.0206 23.7723 RisingAttacK30 0.4500 6.1377 1786.5613 0.0485 4.6070 Top-15 QuadAttacK60 0.9866 9.2713 2884.2755 0.0887 3.8963 2.3310 RisingAttacK60 1.0000 4.3657 1252.9889 0.0359 6.2878 QuadAttacK30 0.5088 8.6281 2697.9823 0.0771 1.8919 3.5524 RisingAttacK30 0.9362 4.7380 1362.7350 0.0387 3.5501 Top-10 QuadAttacK60 0.9986 6.7558 2123.4894 0.0545 3.8256 2.5458 RisingAttacK60 1.0000 2.6903 759.1986 0.0235 4.2223 QuadAttacK30 0.9392 6.6701 2098.0095 0.0531 1.8918 2.4272 RisingAttacK30 0.9880 2.9210 827.1606 0.0253 2.2937 Top-5 QuadAttacK60 0.9998 3.9671 1258.1706 0.0264 3.8644 3.0870 RisingAttacK60 0.9994 1.2169 331.6714 0.0119 2.2643 QuadAttacK30 0.9924 3.9526 1253.5745 0.0262 1.8502 2.2794 RisingAttacK30 0.9982 1.6603 457.9204 0.0156 1.2082 Top-1 QuadAttacK60 1.0000 1.5191 503.0047 0.0070 3.0413 1.9466 RisingAttacK60 1.0000 0.7001 177.1356 0.0085 0.8046 QuadAttacK30 0.9960 1.5144 501.4779 0.0070 1.5519 1.2739 RisingAttacK30 1.0000 1.0708 280.0300 0.0116 0.4255 (c) ViT-B (Dosovitskiy et al., 2020) Top-K Method Mean Time (s/img) &#8595; FoM&#8593; ASR &#8593; &#8467;1 &#8595; &#8467;2 &#8595; &#8467;&#8734; &#8595; Top-30 QuadAttacK60 0.3272 9.6708 2938.2587 0.1032 5.2135 3.1589 RisingAttacK60 0.9534 9.7262 2721.2876 0.0876 43.3954 QuadAttacK30 Failed 2.7870 inf RisingAttacK30 0.5568 11.4132 3206.4565 0.1029 21.7179 Top-25 QuadAttacK60 0.6872 9.4331 2860.6667 0.1002 5.2723 2.6425 RisingAttacK60 0.9944 5.5706 1520.5703 0.0526 36.0486 QuadAttacK30 Failed 2.7354 inf RisingAttacK30 0.7536 7.7050 2126.3211 0.0721 18.0775 Top-20 QuadAttacK60 0.7828 7.9108 2393.0875 0.0815 5.0069 2.8308 RisingAttacK60 0.9864 3.7609 1007.6887 0.0360 15.8230 QuadAttacK30 0.0004 6.3770 1992.7502 0.0533 2.6210 1610.8632 RisingAttacK30 0.4956 4.9482 1343.2135 0.0473 7.9615 Top-15 QuadAttacK60 0.8404 6.2661 1893.5173 0.0620 4.7622 2.7231 RisingAttacK60 0.9988 2.8751 753.1852 0.0284 11.9841 QuadAttacK30 0.0056 4.7982 1495.8188 0.0385 2.4245 164.8583 RisingAttacK30 0.7510 3.8944 1038.7394 0.0379 6.0305 Top-10 QuadAttacK60 0.9130 4.5246 1374.2282 0.0410 4.6368 2.5247 RisingAttacK60 0.9936 1.9915 508.8791 0.0206 8.2583 QuadAttacK30 0.0252 3.4999 1094.6987 0.0261 2.3034 36.7947 RisingAttacK30 0.7112 2.6247 684.1576 0.0267 4.1602 Top-5 QuadAttacK60 0.9980 3.6439 1128.3054 0.0288 4.3981 1.7630 RisingAttacK60 0.5712 1.1650 292.6494 0.0128 4.4038 QuadAttacK30 0.5024 3.2930 1029.8490 0.0242 2.1108 2.3688 RisingAttacK30 0.5980 1.6101 406.4644 0.0174 2.2197 Top-1 QuadAttacK60 0.9998 1.5736 509.7575 0.0081 2.6007 3.2121 RisingAttacK60 0.9388 0.4365 96.0745 0.0060 1.2715 QuadAttacK30 0.9958 1.5681 508.0591 0.0081 1.3040 2.1102 RisingAttacK30 0.9362 0.6578 149.1661 0.0086 0.6417 (d) DEiT-B (Touvron et al., 2021) Top-K Method Mean Time (s/img) &#8595; FoM&#8593; ASR &#8593; &#8467;1 &#8595; &#8467;2 &#8595; &#8467;&#8734; &#8595; Top-30 QuadAttacK60 0.0640 9.3734 2860.9240 0.0997 4.1792 8.8333 RisingAttacK60 0.5150 9.4432 2697.9176 0.0804 43.3521 QuadAttacK30 Failed 2.3032 inf RisingAttacK30 0.0600 11.0771 3165.6910 0.0957 21.6930 Top-25 QuadAttacK60 0.8644 9.3780 2849.8222 0.0960 4.0966 2.1975 RisingAttacK60 0.9854 5.1921 1434.6160 0.0482 36.1084 QuadAttacK30 Failed 2.2173 inf RisingAttacK30 0.6748 6.3220 1763.4334 0.0581 18.1108 Top-20 QuadAttacK60 0.9612 7.6974 2343.5441 0.0735 4.1868 2.8466 RisingAttacK60 0.9956 2.9174 781.2607 0.0282 15.8331 QuadAttacK30 0.0032 6.2491 1950.0525 0.0524 2.1503 325.7059 RisingAttacK30 0.6348 3.8373 1045.3953 0.0366 7.9624 Top-15 QuadAttacK60 0.9750 6.0671 1852.4958 0.0544 3.9525 2.8819 RisingAttacK60 1.0000 2.2015 573.3811 0.0223 11.9810 QuadAttacK30 0.0338 4.9874 1558.1460 0.0386 2.0234 42.8983 RisingAttacK30 0.9278 3.1490 838.2295 0.0310 6.0263 Top-10 QuadAttacK60 0.9762 4.3693 1346.6326 0.0353 3.8755 2.9455 RisingAttacK60 0.9996 1.5076 379.6582 0.0162 8.2610 QuadAttacK30 0.1298 3.5782 1123.3760 0.0256 1.9552 11.4300 RisingAttacK30 0.9200 2.1465 556.2741 0.0222 4.1613 Top-5 QuadAttacK60 0.9984 3.3975 1064.7252 0.0243 3.4381 3.1378 RisingAttacK60 0.9992 1.0575 254.5953 0.0121 4.4027 QuadAttacK30 0.7794 3.2526 1024.0607 0.0225 1.7718 2.6286 RisingAttacK30 0.8800 1.3450 334.9398 0.0149 2.2165 Top-1 QuadAttacK60 1.0000 1.3910 459.6084 0.0063 2.9955 3.9437 RisingAttacK60 0.9794 0.3340 68.5738 0.0052 1.2708 QuadAttacK30 0.9994 1.3899 459.3060 0.0063 1.4404 2.4502 RisingAttacK30 0.9772 0.5249 114.2980 0.0073 0.6426 Metrics. The metrics used to evaluate the attack methods include the Attack Success Rate (ASR), as well as the &#8467; 1 , &#8467; 2 , and &#8467; &#8734; norms of the perturbations. ASR quantifies the fraction of adversarial examples satisfying the ordered top-K constraints (larger is better). &#8467; p norms are computed based on successful adversarial examples (lower is better, indicating less visually-perceptible). We note that &#8467; p norms are compatible between different methods only when their ASRs are similar. For example, a method may show very low &#8467; p norms when the ASR is also very low (i.e., it can only attack a few images). To compare the relative improvement of one method (with ASR 1 and &#8467; 1 p norms) against another one (with ASR 2 and &#8467; 2 p norms), we propose to use a holistic figure of merits (FoM),</p><p>where when the opponent method fails, i.e., ASR 2 = 0, we set FoM= +&#8734;. Similarly, we set FoM= -&#8734; if the primary method fails while the opponent method succeeds, and FoM= 0 if both methods fail. When the FoM&gt; 1, we say the primary method is holistically better than the opponent method. We report the Mean metrics across the five sampled targets for each K. We also adopt the commonly used &#8467; &#8734; = 8/255 as the threshold to characterize the "visual imperceptibility" of learned adversarial perturbations <ref type="bibr">(Croce et al., 2020)</ref>. See Appendix E for details of metrics including Best, Mean and Worst comparisons.</p><p>Baselines. We mainly compare with QuadAttacK <ref type="bibr">(Paniagua et al., 2023)</ref> since it is the prior state-of-the-art method, significantly outperforming the CW K and AD (Adversarial Distillation) <ref type="bibr">(Zhang &amp; Wu, 2020)</ref>. For a fair comparison, both methods are tested under identical experimental conditions. For all experiments, each attack is evaluated at 30 and 60 optimization iterations to analyze its performance under varying computational budgets. The initial perturbation for all attacks is set to zero, ensuring consistent starting conditions across methods.</p><p>Results and Analyses. Our proposed RisingAttacK shows a big leap forward in advancing ordered top-K attacks, which in turn verifies the significant advantages of learning attacks directly in the image space by our proposed SQP formulation. Results of ordered top-K attacks for the four models are shown in Table <ref type="table">1</ref>(a), 1(b), 1(c) and 1(d).</p><p>&#8226; Based on the FoM evaluation (Eqn. 23), our RisingAt-tacK consistently outperforms the previous state-of-theart method, QuadAttacK across all K (=1,5,10,20, 25,30) and all four models. It achieves FoMs greater than 2 in most cases (i.e., holistically 2x better than QuadAttacK). More Results. We also show results of using the lowest-K predictions of each benign image by each model as the ordered top-K attack targets (Table <ref type="table">6</ref> in the Appendix E).</p><p>Ordered top-K targets by this image-and model-specific selection method are intuitively deemed as more difficult to attack, as empirically shown in <ref type="bibr">(Zhang &amp; Wu, 2020)</ref>. Counterintuitively, our results show they are not more difficult than randomly sampled targets using both QuadAttacK and our RisingAttacK.</p><p>The Average Speed (second/image). We note that for K = 1 our RisingAttacK is consistently faster than QuadAttacK.</p><p>For K &gt; 1, QuadAttacK is mostly faster than our RisingAt-tacK. The main reason is due to the current implementation of computing the logit-to-image Jacobian matrix in PyTorch, for which we used PyTorch 2.6 and the jacrev and vmap (with chunk size 100) functions in the torch.func library. When K is larger than 1, based on Eqn. 9, we maintain K + M + 1 logits with M = 5 &#8226; K. We did not test other factors for M (e.g., 2 &#8226; K or a predefined constant such as 5). We will address this speed limitation in future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Conclusion</head><p>This paper presents RisingAttack, a novel method for learning ordered top-K targeted white-box adversarial attacks by directly solving the non-linearly constrained optimization problem in image space under the sequential quadratic programming framework. Our RisingAttacK provides a simple yet elegant solution: ordered top-K adversarial perturbations can be learned via iteratively optimizing linear combinations of the right singular vectors (corresponding to non-zero singular values) of the attack-targets-ranking constrained logit-to-image Jacobian matrix. Through experiments on four ImageNet-1k trained DNNs, our Risin-gAttacK shows a big leap forward in advancing ordered top-K attacks in terms of a proposed figure-of-merits metric, significantly outperforming the previous state-of-the-art method, QuadAttacK.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Impact Statement</head><p>This work advances the field of adversarial machine learning by introducing RisingAttacK. By improving the efficiency and scalability of ordered top-K adversarial attacks, particularly for large K values, this research highlights critical vulnerabilities in modern DNNs. However, adversarial attack methods also pose risks, as they may be misused to compromise real-world systems. For example, attacks on ranking-based systems could be exploited to manipulate search engine results or recommendation algorithms. To mitigate these risks, this work should be viewed as a tool for potentially strengthening defenses (e.g., as critics for them) rather than enabling malicious use. In addition, this work contributes to the broader exploration of optimization in machine learning by integrating techniques from traditional nonlinear programming into neural network-based problems. This direction holds promise for both adversarial research and other optimization tasks in machine learning, offering a foundation for solving increasingly complex challenges.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Background on QuadAttacK</head><p>QuadAttacK <ref type="bibr">(Paniagua et al., 2023)</ref> addresses the challenge of optimizing Eqn. 4 by first "lifting" it into the feature space, i.e., the output space of f (&#8226;), see the left-bottom of Fig 1 . At a given iteration i, let &#948; (i) be the current perturbation, and x perturb = x benign + &#948; (i) the current perturbed image with z perturb = f (x perturb ) its DNN features. QuadAttacK aims to iteratively find the optimal perturbed features z around z perturb to satisfy the constraints by, minimize</p><p>subject to K &#8226; (W &#8226; z + b) &gt; 0, where the nonlinear backbone f (&#8226;) is eliminated from the constraints. Eqn. 24 can be solved by a QP package <ref type="bibr">(Amos &amp; Kolter, 2017)</ref>. With the optimized z * , the adversarial perturbation is updated by back-propagating the feature distance to the image space through the highly non-linear DNN backbone f (&#8226;),</p><p>where &#947; is the learning rate, and &#955; the trade-off parameter between feature distance and image perturbation. The perturbed image is updated by,</p><p>QuadAttacK is executed iteratively with respect to a predefined computing budget (e.g., 30 or 60 iterations). As aforementioned, there is a gap between the optimized z * (Eqn. 24) in the feature space and the computed &#948; (i+1) (Eqn. 25) in the image space in terms of satisfying the ordered top-K constraints, which leads to suboptimal adversarial examples (Eqn. 26).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Details on Compact Ordered Top-K Constraints</head><p>In Sec. 3.2.1, we introduce the mapping G (Eqn. 9) that reorders the logits and augments them with a differentiable nonlinear term, reproduced here,</p><p>, where K = |T | is the number of attack targets, M is the number of highest non-target logits to include explicitly (e.g., M = 5 &#8226; K), and the final term is the soft-maximum of the remaining logits. We have,</p><p>&#8226; The ordered top-K targets: l(x) i = &#8467;(x) ti , for i &#8712; {1, . . . , K}, where t i &#8712; T is the i-th target class. These targets remain the same during the optimization. &#8226; The ordered top-M non-targets: l(x) K+j = &#8467;(x) mj , where j &#8712; [1, &#8226; &#8226; &#8226; , M ], and m j = arg sort j {&#8467;(x) i ; i &#8712; Y \ T }, i.e., &#8467;(x) mj is the j-th largest non-target logit. For example, M = 5 &#215; K. Denote by M the ordered top-M non-target classes, which are dynamic during the optimization. &#8226; The Soft-Maximum of logits of the Remaining Classes: l(x) d = SmoothMax {&#8467;(x) j ; j &#8712; Y \ (T &#8746; M)} , where d = K + M + 1, and SmoothMax(&#8226;) is differentiable and enables gradient distribution (rather than switching) in learning, which is defined by,</p><p>where &#8857; represents element-wise (Hadamard) product. It is straightforward to show that mean(v) &#8804; SmoothMax(v) &#8804; max(v) for any real vectors v.</p><p>We note that the inclusion of the top-M non-target logits is to ensure that the compact constraints remain robust, even in cases where the SmoothMax(&#8226;) function introduces significant nonlinearity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. QP for Recovering Perturbation in the Image Space</head><p>We show the solution (Eqn. 18) can be understood from the QP perspective. Based on &#948; = V &#8226; &#1013; and &#948; = x -x anchor , we have,</p><p>where x r is the projection of x, and x anchor r the projection of the anchor image.</p><p>Minimizing ||&#1013; r || 2 2 is to find the optimal x * r that is closest to x anchor r . We have, x * r = x anchor r + &#1013; * r , with which the QP for recovering the optimal perturbation in the original image space is to, minimize</p><p>subject to V &#8868; r &#8226; x = x * r , which only involves equality constraints, making it computationally efficient to solve, even though x is in the highdimensional image space. We show that Eqn. 30 has a closed-form solution, reproducing the result in Eqn. 18.</p><p>Recall &#1013; * r is the solution from solving Eqn. 17, x anchor r = V &#8868; r &#8226; x anchor and x * r = x anchor r + &#1013; * r . Eqn. 30 is reproduced here, minimize</p><p>r , which can be re-expressed by expanding the objective function and removing the constant term as,</p><p>And the Lagrangian is,</p><p>We obtain estimating equations from the derivatives as follows,</p><p>We have,</p><p>So, we have,</p><p>which reproduces Eqn. 18.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Details of Attack Targets</head><p>We use 5 random seeds <ref type="bibr">(42, 52, 62, 72 and 82)</ref> and sample 5 lists of ordered top-30 targets as follows:</p><p>&#8226; seed=42: (643): mask, ( <ref type="formula">409</ref>): analog-clock, (798): slide-rule, (250): Siberian-husky, (593): harmonica, (47): Africanchameleon, (142): dowitcher, (276): hyena, (908): wing, (721): pillow, (57): garter-snake, (257): Great-Pyrenees, (397): puffer, (954): banana, (203): West-Highland-white-terrier, (172): whippet, (294): brown-bear, (803): snowplow, (76): tarantula, (811): space-heater, (817): sports-car, (608): jean, (977): sandbar, (711): perfume, (157): papillon, (51): triceratops, (428): barrow, (84): peacock, (531): digital-watch, (478): carton &#8226; seed=52: (523): crutch, (330): wood-rabbit, (743): prison, (611): jigsaw-puzzle, (613): joystick, (810): space-bar, (634): lumbermill, (203): West-Highland-white-terrier, (217): English-springer, (816): spindle, (926): hot-pot, (275): African-hunting-dog, (337): beaver, (33): loggerhead, (264): Cardigan, (862): torch, (755): radio-telescope, (949): strawberry, (162): beagle, (488): chain, (251): dalmatian, (292): tiger, (440): beer-bottle, (638): maillot, (722): ping-pong-ball, (349): bighorn, (592): hard-disc, (409): analog-clock, (584): hair-slide, (701): parachute &#8226; seed=62: (45): Gila-monster, (224): groenendael, (274): dhole, (54): hognose-snake, (759): reflex-camera, (931): bagel, (1): goldfish, (478): carton, (51): triceratops, (649): megalith, (117): chambered-nautilus, (652): militaryuniform, (601): hoopskirt, (571): gas-pump, (520): crib, (221): Irish-water-spaniel, (869): trench-coat, (102): echidna, (14): indigo-bunting, (670): motor-scooter, (975): lakeside, (511): convertible, (8): hen, (840): swab, (156): Blenheim-spaniel, (928): ice-cream, (24): great-grey-owl, (567): frying-pan, (668): mosque, (866): tractor &#8226; seed=72: (678): neck-brace, (329): sea-cucumber, (731): plunger, (829): streetcar, (565): freight-car, (628): liner, (331): hare, (376): proboscis-monkey, (787): shield, (622): lens-cap, (402): acoustic-guitar, (225): malinois, (487): cellular-telephone, (858): tile-roof, (94): hummingbird, (991): coral-fungus, (808): sombrero, (95): jacamar, (649): megalith, (35): mud-turtle, (215): Brittany-spaniel, (246): Great-Dane, (222): kuvasz, (88): macaw, (586): half-track, (424): barbershop, (553): file, (302): ground-beetle, (363): armadillo, (793): shower-cap &#8226; seed=82: (280): grey-fox, (942): butternut-squash, (457): bow-tie, (810): space-bar, (811): space-heater, (388): giant-panda, (121): king-crab, (974): geyser, (432): bassoon, (969): eggnog, (633): loupe, (399): abaya, (438): beaker, (329): sea-cucumber, (563): fountain-pen, (661): Model-T, (552): feather-boa, (256): Newfoundland, (859): toaster, (539): doormat, (949): strawberry, (157): papillon, (410): apiary, (569): garbage-truck, (496): Christmas-stocking, (207): golden-retriever, (591): handkerchief, (806): sock, (372): baboon, (219): cocker-spaniel We use those targets sequentially for K = 1 <ref type="bibr">, 5, 10, 15, 20, 25, 30</ref> for the four models. The targets are shared by the 1000 testing images. For each testing image, if its ground-truth label is in any ordered top-K targets, we replace it with a different randomly sampled targets.</p><p>In addition to the randomly sampled targets, we also test a special case in which the lowest-K predictions by a model for a benign image are used as the ordered top-K attack targets (i.e., the first target is the class of the lowest logit for the benign image, and so far so on). The results are shown in Table <ref type="table">6</ref> in the Appendix E.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E. Details of Metrics and Full Results</head><p>We report the Mean metrics (ASRs and &#8467; p norms) in the paper. Here, we also report results in terms of Best and Worst metrics in Tables 2, 3, 4, 5, where FoMs are computed using Mean.</p><p>For a model and a given K, there are five different lists of ordered top-K targets. For each image, its Best (Worst) ASR is 1 if any (all) of the five lists of targets can be successfully attacked, and the Mean ASR is the fraction of successful attacks over the total five runs. The overall Best, Mean, Worst ASRs are then averaged over the 1000 testing images.</p><p>Corresponding to the three types of ASRs, their &#8467; p norms are computed using successfully attacked images only.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F. More Qualitative Results</head><p>We show examples learned by both our RisingAttacK and QuadAttacK for each of the five random seeds. Fig. <ref type="figure">3</ref> shows the examples by QuadAttacK, corresponding to those by our RisingAttacK in Fig. <ref type="figure">2</ref>  Due to the file size limit (20M), we will show examples using other seeds in our released code repository.    The adversarial perturbations are normalized to [0, 1] for the sake of visualization. Some of them are treated as being "visually imperceptible" based on the commonly used threshold 8/255 = 0.0314 for &#8467;&#8734; ('linf') norms. If QuadAttacK fails using a model for a K (e.g. topK=25 for DenseNet121), we leave it blank. For the benign image, the top-30 predictions by the four models respectively are:</p><p>&#8226; ResNet50: redshank, ruddy turnstone, red-backed sandpiper, dowitcher, oystercatcher, grey whale, red-breasted merganser, crane, sea lion, chainlink fence, lakeside, wreck, quail, partridge, screwdriver, plastic bag, pelican, parachute, killer whale, sulphur-crested cockatoo, African crocodile, white stork, pole, bucket, caldron, hummingbird, sandbar, king penguin, nail, syringe.</p><p>&#8226; DenseNet121: redshank, ruddy turnstone, red-backed sandpiper, oystercatcher, breakwater, dowitcher, sea lion, academic gown, abaya, mortarboard, red-breasted merganser, lifeboat, cloak, espresso, lipstick, theater curtain, wood rabbit, umbrella, refrigerator, ruffed grouse, king penguin, partridge, sandbar, diamondback, hen-of-the-woods, wine bottle, mailbox, stone wall, volcano, redbone.</p><p>&#8226; ViT-B: redshank, red-backed sandpiper, ruddy turnstone, dowitcher, oystercatcher, water ouzel, Madagascar cat, chain saw, apiary, red-breasted merganser, Tibetan mastiff, cicada, seat belt, American egret, wall clock, mask, snow leopard, schipperke, potter's wheel, lycaenid, mud turtle, curly-coated retriever, dumbbell, television, strainer, feather boa, buckle, junco, boa constrictor, volcano.</p><p>&#8226; DEiT-B: redshank, ruddy turnstone, red-backed sandpiper, dowitcher, oystercatcher, red-breasted merganser, warthog, worm fence, Indian elephant, African crocodile, maze, badger, snowplow, American black bear, stone wall, king penguin, car wheel, rock python, water ouzel, guillotine, wild boar, centipede, diamondback, apiary, barrow, horned viper, sundial, guenon, bustard, skunk. &#8226; DenseNet121: dogsled, Ibizan hound, Chesapeake Bay retriever, American Staffordshire terrier, whippet, Weimaraner, bobsled, vizsla, snowmobile, drum, malinois, Rhodesian ridgeback, Saluki, Eskimo dog, ski, Labrador retriever, mountain tent, Irish terrier, toyshop, shovel, muzzle, ski mask, dingo, alp, Irish wolfhound, Greater Swiss Mountain dog, Brittany spaniel, hog, Staffordshire bullterrier, Siberian husky. &#8226; ViT-B: dogsled, Ibizan hound, Eskimo dog, American Staffordshire terrier, whippet, Greater Swiss Mountain dog, snowmobile, EntleBucher, boxer, Saluki, bobsled, Siberian husky, Norfolk terrier, Staffordshire bullterrier, basenji, Great Dane, Rhodesian ridgeback, Irish terrier, Brittany spaniel, Tibetan terrier, Chihuahua, muzzle, vizsla, beagle, rugby ball, Walker hound, Norwich terrier, Italian greyhound, Cardigan, Weimaraner. &#8226; DEiT-B: dogsled, Eskimo dog, EntleBucher, Ibizan hound, whippet, Chihuahua, Weimaraner, Siberian husky, bearskin, Greater Swiss Mountain dog, Italian greyhound, bobsled, manhole cover, beagle, snowmobile, coffeepot, scabbard, bald eagle, langur, wing, espresso, stethoscope, mortarboard, dingo, suit, cowboy hat, piggy bank, carpenter's kit, basenji, zucchini. &#8226; DenseNet121: dogsled, Ibizan hound, Chesapeake Bay retriever, American Staffordshire terrier, whippet, Weimaraner, bobsled, vizsla, snowmobile, drum, malinois, Rhodesian ridgeback, Saluki, Eskimo dog, ski, Labrador retriever, mountain tent, Irish terrier, toyshop, shovel, muzzle, ski mask, dingo, alp, Irish wolfhound, Greater Swiss Mountain dog, Brittany spaniel, hog, Staffordshire bullterrier, Siberian husky. &#8226; ViT-B: dogsled, Ibizan hound, Eskimo dog, American Staffordshire terrier, whippet, Greater Swiss Mountain dog, snowmobile, EntleBucher, boxer, Saluki, bobsled, Siberian husky, Norfolk terrier, Staffordshire bullterrier, basenji, Great Dane, Rhodesian ridgeback, Irish terrier, Brittany spaniel, Tibetan terrier, Chihuahua, muzzle, vizsla, beagle, rugby ball, Walker hound, Norwich terrier, Italian greyhound, Cardigan, Weimaraner. &#8226; DEiT-B: dogsled, Eskimo dog, EntleBucher, Ibizan hound, whippet, Chihuahua, Weimaraner, Siberian husky, bearskin, Greater Swiss Mountain dog, Italian greyhound, bobsled, manhole cover, beagle, snowmobile, coffeepot, scabbard, bald eagle, langur, wing, espresso, stethoscope, mortarboard, dingo, suit, cowboy hat, piggy bank, carpenter's kit, basenji, zucchini.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>Department of Electrical and Computer Engineering, North Carolina State University, Raleigh, USA. Correspondence to: Thomas Paniagua &lt;tapaniag@ncsu.edu&gt;, Tianfu Wu &lt;twu19@ncsu.edu&gt;. Proceedings of the 42 nd International Conference on Machine Learning, Vancouver, Canada. PMLR</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_1"><p>267, 2025.  Copyright 2025 by the author(s).</p></note>
		</body>
		</text>
</TEI>
