TLM-SVDD: Dual-Driven Deep Large-Margin $\ell_p$-SVDD with Vision Transformers for Anomaly Detection
Anonymous authors
ICLR 2027
Abstract. Deep extensions of the Support Vector Data Description (SVDD) paradigm can jointly learn representations and decision boundaries for anomaly detection. Yet, they typically rely on simplified objectives or use a surrogate objective that does not coincide with the one used to fit the boundary. In this work, we introduce Transformer-based Large-Margin SVDD (TLM-SVDD), a framework that updates the encoder using the exact dual boundary problem to maximize the margin between normal and anomalous samples. By applying Danskin's theorem, we show that at the optimum of the convex dual function, the encoder's hypergradient can be directly derived from a kernel quadratic term evaluated at the optimal dual variables. As such, the encoder update requires no recovered decision thresholds, surrogate losses, or differentiation through a Frank-Wolfe-based solver. Furthermore, we show that this objective is bounded and naturally depends on support vectors. For batch-independent representation learning, we make use of a vision transformer and conduct a controlled ablation study to separately analyze the merits of the backbone architecture for anomaly detection from those of our optimization approach. Through extensive experiments across anomaly detection and long-tailed recognition benchmarks, the proposed TLM-SVDD approach is shown to improve upon convolutional and approximate primal-space predecessors, outperforming state-of-the-art methods in the majority of evaluation settings.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 4 reviews · OpenReview
Updated 25 Nov 2026, 10:35 UTC.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
The paper proposes TLM-SVDD, an extension of DLM-SVDD that replaces its primal surrogate encoder loss with a dual-based objective. Using Danskin's theorem, the authors show that the gradient of this objective matches that of the optimal primal value function without differentiating through the Frank-Wolfe solver. They further provide a support-vector contrast interpretation, establish boundedness, and analyze convergence under idealized conditions. The method also replaces the CNN backbone with a pretrained ViT-B/16. Experiments are conducted on Fashion-MNIST, CIFAR-10, CIFAR-100, CIFAR-10-LT, CIFAR-100-LT, and ImageNet-LT, using one-vs-rest anomaly detection protocols. TLM-SVDD reports strong performance compared with existing methods, and ablation studies examine the effects of backbone architecture, encoder optimization, anomaly exposure, and fine-tuning.
Strengths
-
Principled coupling of representation learning and boundary fitting. The proposed encoder update provides a mathematically motivated alternative to the primal surrogate used in DLM-SVDD. Under the stated assumptions, Proposition 1 derives the encoder gradient of the optimal primal value function without differentiating through the Frank-Wolfe solver. Proposition 2 provides an interpretable support-vector-weighted contrast formulation, and the objective is shown to be bounded. This formulation connects boundary fitting and representation learning through a common primal-dual optimal-value relationship, addressing an important limitation of the predecessor.
-
Strong reported performance and efforts to disentangle architectural and optimization effects. The proposed framework reports strong performance across standard anomaly detection and long-tailed benchmarks. The authors also make efforts to distinguish the effects of backbone architecture and encoder optimization. Table 3 compares fixed and fine-tuned representations across ResNet-50 and ViT-B/16 backbones, while Table 4 provides a matched ViT-based primal-versus-dual comparison with multiple random seeds and statistical testing. Furthermore, Table 5 reports cases where fine-tuning decreases performance, providing useful information about the limitations of the proposed method.
Weaknesses
-
Insufficient isolation and validation of the proposed dual encoder update. The main contribution is replacing DLM-SVDD’s primal surrogate with a dual-based encoder objective, but evidence isolating its effect from the backbone change remains limited. Table 3 compares ResNet-50 + primal against ViT-B/16 + dual, so it does not support the claimed consistent superiority of the dual update across three datasets independently of architecture. Table 4 provides a matched ViT-based comparison, but only on CIFAR-10 with 10% anomaly exposure. Moreover, at 10% exposure, the fixed ViT already achieves AUROCs of 0.995 and 0.989 on CIFAR-10 and CIFAR-100, respectively, exceeding all baseline results in Table 1 on both datasets. Dual fine-tuning adds 0.002 and 0.003, respectively, although the gain is larger on Fashion-MNIST (0.944 to 0.989). The primal ViT result in Table 4 (0.982 on CIFAR-10) is below the fixed ViT result in Table 3, suggesting that part of the dual update’s advantage may reflect avoiding degradation of pretrained features. This interpretation requires verification under identical settings. Table 5 also shows that dual fine-tuning reduces performance on CIFAR-100-LT at all three imbalance ratios, despite improvements on CIFAR-10-LT and ImageNet-LT. Broader comparisons of fixed, primal-updated, and dual-updated models using the same backbone are therefore needed to establish the update rule’s contribution across datasets and long-tailed settings.
-
Unclear comparability of the long-tailed evaluation and limited validation of the motivating setting. Table 2 compares conventional multi-class long-tailed classifiers with one-vs-rest SVDD-based detectors. However, the paper does not clearly explain how balanced accuracy is computed and aggregated for the SVDD methods or whether all methods are evaluated under equivalent prediction protocols. If the SVDD results represent averages of binary one-vs-rest balanced accuracies, they would not be directly comparable to standard multi-class balanced accuracy. This ambiguity makes it difficult to assess the reported state-of-the-art improvements in long-tailed recognition. Additionally, the introduction motivates anomaly detection under test-time anomalies that may differ from those observed during training. However, the experiments sample labeled training anomalies from the same set of remaining classes used to define test anomalies. Therefore, generalization to previously unseen anomaly classes is not explicitly evaluated.
Questions for the authors
-
[Additional experiment] Controlled evaluation of the dual update. Could the authors extend the matched ViT-B/16 comparison in Table 4 to other datasets, particularly CIFAR-100 and representative long-tailed settings, including fixed, primal-updated, and dual-updated ViT models under identical settings? Results with ResNet-50 using the dual update would further separate the contribution of the update rule from that of the backbone. This would help determine whether the proposed dual update consistently improves representation learning rather than primarily avoiding degradation caused by the primal surrogate.
-
[Clarification] Long-tailed evaluation protocol. How exactly is balanced accuracy computed for the SVDD-based methods in Table 2? Are the results obtained by averaging binary balanced accuracy across one-vs-rest tasks, or are the scores combined into multi-class predictions? How are these results made directly comparable to conventional multi-class long-tailed classification baselines?
-
[Additional experiment] Unseen anomaly classes. The introduction states that labeled anomalies are typically not fully representative of those encountered at test time, and that a detector should avoid becoming a closed-set classifier that only separates the anomalies observed during training. Could the authors evaluate a setting where labeled training anomalies come from a subset of classes and test anomalies from held-out classes? This would directly test the motivation of the paper, and positive results in this setting would provide stronger evidence for generalization to unseen anomaly classes.
3 comments
Thank you for the careful review, and sorry that our response comes this late. The experiments you asked for took most of the discussion period. The revised paper with these changes will be uploaded shortly.
Q1. Isolating the dual update. We now compare three versions of the same ViT-B/16: fixed (pretrained encoder, only the boundary is fitted), primal (the DLM-SVDD update), and dual (our update). We do this on Fashion-MNIST, CIFAR-10, and CIFAR-100 at 10%, 50%, and 75% anomaly exposure. All three use the same initialization, data splits, anomaly samples, training budget, hyperparameters, and seeds. Test AUROC at 10% exposure:
| Fixed | Primal | Dual | |
|---|---|---|---|
| Fashion-MNIST | 0.98268 | 0.98528 | 0.98854 |
| CIFAR-10 | 0.99534 | 0.99656 | 0.99693 |
| CIFAR-100 | 0.98869 | 0.99072 | 0.99162 |
- Does the dual update only avoid damage done by the primal one? No. You noted that the primal ViT in the submitted Table 4 (0.982) was below the fixed ViT. We have updated these values based on the full matched experiments, and with them the primal update is above the fixed encoder in all nine settings, and the dual update is above the primal one in all nine. The table has been updated with these values and more details.
- Effect size. We agree that the fixed ViT is already strong. Because AUROC is close to 1 here, we also report metrics that separate the methods better. FPR95 is the fraction of anomalies still accepted when 95% of normal samples are accepted (lower is better). Balanced accuracy is the average of the true-positive rate (TPR, normal samples accepted) and the true-negative rate (TNR, anomalies rejected). AUPR-In is the area under the precision–recall curve with normal samples as the positive class. The dual update is best in all nine settings for AUROC, FPR95, and balanced accuracy, and in 7 of 9 for AUPR-In. On CIFAR-10 it adds only 0.04 AUROC points over the primal update, but it is better in all five seeds (paired t-test over seeds: , for AUROC; , for FPR95), and FPR95 drops by 19.2% compared with the primal update and by 43.6% compared with the fixed encoder. On CIFAR-100 the dual update has a higher AUROC than the primal one in 69 of the 100 one-vs-rest tasks (Wilcoxon signed-rank test, ).
- Fashion-MNIST. Based on the full experiments, with the single configuration used for all results, the fixed ViT obtains 0.983 at 10% and 0.984 at 50% and 75% (submitted: 0.944). So training the encoder with the dual update adds 0.59 AUROC points there, and 0.33 of them come from the dual update itself.
- Long-tailed settings and ResNet-50. We could not finish the matched long-tailed runs or a ResNet-50 run with the dual update in time. The drop on CIFAR-100-LT after fine-tuning is stated in the paper, and we do not claim that training the encoder always helps. A dual update on ResNet-50 would need frozen batch-norm statistics (the features that fit the boundary must be the ones that are differentiated), which changes two things at once, so we compare the update rules on the same ViT instead.
Q2. Long-tailed protocol. For the SVDD-based methods, we compute balanced accuracy separately for each one-vs-rest task, at the learned radius, and then average over the classes. The scores are not combined into one multi-class prediction. The revised paper defines both protocols in Sec. 4.1, separates the two groups in Table 2, and limits the claim to the one-vs-rest SVDD methods. Among those, TLM-SVDD improves over DLM-SVDD by 4.9 to 8.9 points on the long-tailed CIFAR sets and by 6.1 points on ImageNet-LT.
Q3. Unseen anomaly classes. For each CIFAR-10 normal class, we split the other nine classes into four seen and five held-out classes. Training, validation, and model selection use only the seen classes; the held-out classes appear only at test time. Five seeds (mean ± SD):
| AUROC | FPR95 | Balanced acc. | |
|---|---|---|---|
| Fixed | 0.984 ± 0.004 | 0.073 ± 0.017 | 0.828 ± 0.023 |
| Primal | 0.985 ± 0.005 | 0.061 ± 0.019 | 0.858 ± 0.031 |
| Dual | 0.987 ± 0.004 | 0.046 ± 0.015 | 0.862 ± 0.029 |
AUROC is about one point lower than in the standard setting, but the unseen classes are still rejected well (FPR95 of 4.6%). The order fixed < primal < dual holds, and FPR95 is lower for the dual than for the primal update in every one of the five seeds (24.8% lower on average). The AUROC differences are within one standard deviation, so we do not claim an AUROC gain here. This evaluation is added to the paper as Appendix A.4, next to published CIFAR-10 results of the methods we cite.
Thank you again for these helpful questions.
Thank you for following up, and apologies for the silence. We understood that the discussion period ends on November 18 (AoE), so we thought we still had time, and we were using it to run the experiments you requested to further strengthen the paper: the matched fixed / primal / dual comparison on the same ViT-B/16 across all three datasets and exposure ratios, and the evaluation on held-out anomaly classes. Our full response is now posted under your review, and the revised paper will be uploaded as soon as possible. We would be grateful if you could take them into account in your final assessment.
- Rating
- 2/4(+1)
- Confidence
- 4/4
- Soundness
- 1/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper proposes Transformer-based Large-Margin SVDD, an anomaly detection and one-class classification framework that couples Vision Transformers (ViT) with the exact dual boundary problem of large-margin -SVDD. By applying Danskin’s theorem to the convex dual objective, the authors derive the hypergradient for the encoder directly from the kernel quadratic term evaluated at the optimal dual variables , bypassing surrogate loss functions, recovered threshold heuristics, and differentiation through Frank-Wolfe optimization steps. The authors also argue that ViTs provide batch-independent representations via layer normalization, mitigating the train/eval discrepancy observed in batch-normalized CNNs.
Strengths
- Using Danskin’s theorem to link the representation update directly to the exact optimal value of the dual boundary problem is theoretically well-motivated, eliminating the heuristic surrogate losses used in prior work like DLM-SVDD.
- The resulting encoder gradient naturally depends only on the active support vectors ( and ), providing an intuitive contrastive pull-push mechanism grounded in margin optimization.
- The manuscript is clearly written, and the transitions from primal -SVDD to the dual formulation and Danskin envelope gradient are logically presented.
Weaknesses
- Proposition 1 relies on Danskin’s theorem, which requires obtaining the exact global minimizer of the dual objective . In practice, the inner boundary subproblem is solved iteratively via the Frank-Wolfe (FW) algorithm to a finite duality gap . When evaluated at an approximate solution , the outer gradient becomes a biased hypergradient. The paper provides no theoretical error bounds on or its accumulation across alternating epochs.
- In Section 3.2, the authors claim that the optimal primal value sequence is nonincreasing and convergent, assuming has an -Lipschitz gradient and the step size satisfies . depends on the deep Transformer parameters through multi-head self-attention, layer normalization, and a Gaussian RBF kernel. Assuming that such a complex, non-convex composite value function exhibits global or local -Lipschitz smoothness without formal justification or proof is unrealistic. The paper does not prove convergence to a first-order stationary point of the bilevel problem under finite FW stopping criteria.
- An inspection of Table 3 reveals that the fixed, un-finetuned ViT-B/16 backbone alone achieves an AUROC of 0.996 on CIFAR-10 and 0.991 on CIFAR-100. The fixed ViT-B/16 baseline already outperforms almost all compared methods in Table 1, including the previous SOTA (DLM-SVDD at 0.984 on CIFAR-10 and 0.972 on CIFAR-100). This demonstrates that the high performance in Table 1 is primarily driven by the representation quality of pre-trained ViT-B/16, rather than the dual hypergradient learning formulation.
- The ViT-B/16 backbone was pre-trained in a supervised manner on ImageNet-1k. Since ImageNet-1k features broad semantic overlap with CIFAR-10 and CIFAR-100 classes, the representation space has already separated these concepts prior to SVDD training. This makes distance-based discrimination trivial and compromises the validity of the anomaly detection evaluation.
- In Section 4.1, the Gaussian kernel bandwidth is computed once from pre-trained features using the median pairwise squared distance and held constant throughout training. In Section 4.4, the authors admit that dynamically re-estimating at each epoch destabilizes optimization. However, as the encoder parameters update, the pairwise distances in feature space inevitably shift. Freezing based on pre-trained features creates an inconsistency between the metric scale of the RBF kernel and the evolving representation space, indicating sensitivity to hyperparameters.
Questions for the authors
- How does the termination threshold (duality gap ) of the Frank-Wolfe solver affect the gradient bias ? Can you provide formal convergence guarantees under inexact inner solutions?
- What is the root cause of the fine-tuning degradation observed on CIFAR-100-LT in Table 5 (e.g., a 3.0% drop at )? Does the dual loss overfit to the head classes or destabilize tail-class representations?
- Could you provide benchmark comparisons on CIFAR-100 and ImageNet-LT where all competing methods (e.g., DLM-SVDD, Deep-SAD, PANDA) utilize the identical pre-trained ViT-B/16 backbone?
- What are the actual wall-clock training times per epoch and peak GPU memory requirements for TLM-SVDD compared to DLM-SVDD on ImageNet-LT?
- Do you have preliminary experimental results on established industrial anomaly detection datasets such as MVTec AD or VisA?
6 comments
(Part 1/5)
We thank the reviewer for the careful and technically precise review. It identified real gaps, and addressing them has made the paper clearly stronger. In summary:
- The two soundness concerns (W1, W2) are now answered with proofs (Propositions 3–5) and with measurements, and we state their limits openly.
- On the empirical concerns (W3, W4), we agree with the reviewer's reading of the submitted tables and have revised both the experiments and the claims.
- Every question (Q1–Q5) is answered below with new results.
1. Error of the hypergradient under an inexact Frank–Wolfe solution (W1, Q1).
The reviewer is correct. With an inexact solution , the practical gradient is a biased estimate of , and the submission gave no bound. The revision adds one (Proposition 3, Appendix A.2). Let . For any feasible ,
This holds because only the quadratic term depends on and on the feasible set. For , the dual is -strongly convex with . The Frank–Wolfe gap then bounds the suboptimality, which gives
All main experiments use , so this case applies. The bias therefore vanishes with the gap, at rate .
Accumulation across epochs: Proposition 5 covers this for a gradient-descent encoder step with step size :
where is the gap at epoch . The inner errors do not compound. They enter additively, through the average gap. With exact inner solves, the bound gives the usual rate to a stationary point of . With a finite budget, the average squared gradient norm is bounded by that term plus a term proportional to the average gap.
Limits of these results: The constants are conservative in our setting, because is small when . The bounds establish the rate and the absence of compounding, not a tight error estimate. They are also stated for a gradient-descent encoder step. We make no formal claim for Adam.
Measured error: We therefore also measured the bias directly. We compared the practical gradient with that of a 500k-iteration solve (means over the ten CIFAR-10 tasks, Table 6 and the figure in Appendix A.1):
| Iterations | FW gap | Grad. cosine | Grad. rel. err. | rel. err. | Test AUROC | Time (s) |
|---|---|---|---|---|---|---|
| 1k | 0.6293 | 0.8426 | 0.6753 | 0.5216 | 0.99542 | 0.39 |
| 5k | 0.2342 | 0.9416 | 0.4371 | 0.2859 | 0.99593 | 1.41 |
| 10k | 0.1382 | 0.9699 | 0.2979 | 0.1949 | 0.99608 | 2.68 |
| 50k | 0.0171 | 0.9989 | 0.0507 | 0.0350 | 0.99618 | 12.9 |
| 250k | 0.0016 | 1.0000 | 0.0043 | 0.0033 | 0.99615 | 64.2 |
| 500k | 0.0008 | 1.0000 | 0 | 0 | 0.99615 | 128.0 |
At our budget (1k), the bias is substantial since the relative gradient error is . The gradient is still positively aligned with the reference (cosine ), and the error decreases with the gap, as the bound predicts. Test AUROC changes by less than over a range of budgets, while the cost grows . We have removed every sentence that described the practical update as an exact hypergradient from the paper.
(Part 2/5)
2. The Lipschitz-gradient assumption and convergence (W2, Q1).
The reviewer objects that an -Lipschitz gradient for was assumed without justification. We agree that the submission only asserted it. The revision derives it (Proposition 4, Appendix A.2) from two conditions that can be checked.
First, the encoder is twice continuously differentiable in its parameters. A ViT with GELU activations, layer normalization with a positive stabilizing constant, softmax attention, and normalization of a non-zero class token is a composition of smooth maps. So is the Gaussian kernel. On a compact convex parameter set , the quantities and are therefore finite.
Second, for the inner problem is -strongly convex over a fixed compact convex set. Its solution map is then Lipschitz, . Combined with Danskin's theorem, this gives
So is not an arbitrary non-convex composite. It is the optimal value of a strongly convex program whose data depend smoothly on , and this structure yields the smoothness.
What remains an assumption: The Frank–Wolfe iterates need none. Each update is a convex combination of the current iterate and a vertex of the compact feasible set, so every iterate is feasible. The encoder weights are different. We assume that they stay in a compact convex set during training, which keeps , , and finite. Weight decay and gradient clipping keep the weights bounded in practice, but we do not prove it. Convergence under Adam with cosine decay and clipping is also not proved. Sec. 3.2 now states both points, presents monotonicity as a property of an idealized gradient-descent step, and refers to Proposition 5 for the inexact case.
3. The pretrained ViT accounts for most of the performance (W3).
We agree. The fixed ViT-B/16 already exceeds every prior method in Table 1 on CIFAR-10 and CIFAR-100. The margins over those methods are mostly because of the representation, and the paper now mentions this. The contribution we claim for the dual update rests only on comparisons with the backbone held fixed. Sec. 4.2 points to this isolated comparison (Sec. 4.4).
These comparisons use the same ViT-B/16, initialization, splits, anomaly samples, budget, hyperparameters, and seeds. They cover three variants: the fixed backbone (the fixed-feature large-margin -SVDD on ViT features), the primal update (DLM-SVDD on the same ViT), and the proposed dual update. At 10% exposure:
| Dataset | Update | AUROC | FPR95 |
|---|---|---|---|
| Fashion-MNIST | Fixed | ||
| Primal | |||
| Dual | |||
| CIFAR-10 | Fixed | ||
| Primal | |||
| Dual | |||
| CIFAR-100 | Fixed | ||
| Primal | |||
| Dual |
Standard deviations across seeds are at most for AUROC and for FPR95. Based on the full experiments, the fixed ViT-B/16 on Fashion-MNIST obtains at 10% exposure and at 50% and 75%. This supports the reviewer's point that the pretrained ViT accounts for most of the performance.
(Part 3/5)
Size of the effect: We mention it plainly. In AUROC, the dual update adds points over the fixed backbone on CIFAR-10 and over the primal update. On Fashion-MNIST it adds points over the fixed backbone. Of these, are also obtained by the primal update and are specific to the dual update. In the low-false-positive regime the effect is larger. On CIFAR-10, FPR95 falls by relative to the fixed backbone and by relative to the primal update, several times the seed standard deviation. The dual update is better than the primal update in all five seeds (paired -test: , for AUROC, and , for FPR95). Across all nine dataset–exposure settings, it is at least as good as the primal update in AUROC, FPR95, and balanced accuracy. The gain is smallest on CIFAR-100 (FPR95 down – relative to primal) and largest on Fashion-MNIST (–). Our claim is limited to this: with the representation held fixed, updating the encoder through the dual optimal value gives a consistent additional improvement over both no update and the primal update.
4. Supervised ImageNet-1k pretraining (W4).
The concern is that ImageNet labels overlap semantically with the CIFAR classes. We ran the matched comparison again with a DINO-initialized ViT-B/16, which is trained on ImageNet images without any labels. On CIFAR-10 at 10% exposure:
| Fixed | Primal | Dual | |
|---|---|---|---|
| AUROC | |||
| FPR95 |
The ordering is unchanged. The dual update lowers FPR95 by percent relative to the fixed DINO backbone and by relative to the primal update. The gain of the proposed update therefore does not rely on label supervision during pretraining. We do not claim that this removes the effect of large-scale pretraining, since DINO still sees ImageNet images (but not the labels).
Two further points support the evaluation. First, pretrained backbones are standard in this benchmark. The strongest prior methods in Table 1, PANDA and MSC, also start from ImageNet-pretrained networks, so the protocol is the one under which they were evaluated. Second, if pretraining made the task trivial, the remaining errors would not respond to the training rule. They do, with both supervised and self-supervised pretraining. We also added a class-disjoint evaluation, in which five of the nine anomaly classes are never seen in training (Appendix A.4). There, AUROC is , , and and FPR95 is , , and for fixed, primal, and dual (more details in Appendix).
5. A fixed bandwidth while the representation changes (W5).
Keeping fixed is a deliberate choice, for three reasons. Note also that the RBF bandwidth is a free parameter of the kernel. Any positive value gives a valid kernel, and fixing it follows common practice.
- is part of the model. It defines the kernel and therefore the objective . If were re-estimated from the current features, the kernel would depend on through as well. The gradient we use would then no longer be the gradient of the objective, and the median statistic is not differentiable. A fixed makes the boundary step and the encoder step optimize one function.
- The features are -normalized, which bounds every pairwise distance. For two unit vectors, . This holds at every epoch, so the kernel values stay in , and the scale of the representation cannot drift away from the kernel scale.
- The encoder adapts to the kernel, which is the purpose of training it against the boundary objective.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
Content Summary
This paper proposes TLM-SVDD, an SVDD-based margin metric learning framework for anomaly detection under limited abnormal class data. The authors claim that previous deep large-margin SVDD methods have two problems: (i) the network is not trained on the exact boundary objective, since its training target depends on volatile support vectors and its surrogate loss does not match the original penalty, which makes the learned decision boundary unstable; (ii) CNN features are ill-suited to a kernel-space boundary, because post-ReLU features are skewed (non-negative and anisotropic) for a single RBF bandwidth, and batch normalization makes features depend on batch composition and train/eval mode.
Building on the fixed-feature large-margin -SVDD (Rahimzadeh Arashloo, 2024) and its CNN-based extension DLM-SVDD, the authors (i) replace the CNN encoder with a ViT-B/16 backbone and (ii) replace the primal surrogate-based encoder update with a dual-driven update. Training alternates between two steps across epochs. In the -step, the convex dual boundary problem is solved with Frank–Wolfe for a fixed encoder . In the -step, the dual variables are held fixed and the encoder is updated by maximizing the kernel quadratic term (with and the Gaussian kernel matrix of the encoder features). By Danskin's theorem, this update is claimed to equal the hypergradient of the optimal primal objective value, thereby avoiding recovered thresholds, surrogate losses, and differentiation through the solver. This paper further shows that the encoder gradient depends only on support vectors (normal ones are pulled toward the learned description and anomalous ones pushed away), argues that the encoder objective is bounded and that constant-representation collapse is not a global optimum (for ), and gives a monotonic convergence argument under an exact-inner-solution idealization.
Contributions (Claimed)
-
Dual-driven encoder update. The authors propose to update the encoder through the optimal value of the exact dual large-margin -SVDD problem. By Danskin's theorem, the encoder hypergradient at the dual optimum reduces to the gradient of a kernel quadratic term, so no recovered thresholds, surrogate losses, or differentiation through the Frank–Wolfe solver are needed. The boundary step and encoder step thus share a single objective, and the update is shown to be bounded and to depend only on support vectors.
-
Encoder design for the update. The authors identify desirable encoder properties for this update (batch-independent features and compatibility with a single Gaussian kernel bandwidth), which motivates using a Vision Transformer (layer normalization, self-attention) instead of a batch-normalized CNN.
-
Use of additional anomaly exposure. The authors argue that, unlike a fixed representation where extra anomalies only refit the boundary, the proposed update lets additional anomalous samples improve the learned representation itself.
-
Empirical results. TLM-SVDD outperforms the compared methods, including the prior convolutional DLM-SVDD, in most settings on standard anomaly detection and long-tailed recognition benchmarks. A controlled ablation separates the effect of the backbone from that of the update rule.
Validation Methods
- Standard anomaly detection: One-vs-rest protocol on Fashion-MNIST, CIFAR-10, and CIFAR-100, evaluated by AUROC at negative-to-positive training ratios of 10%, 50%, and 75%.
- Long-tailed recognition: CIFAR-10-LT and CIFAR-100-LT (imbalance ratios 100, 50, 10) and ImageNet-LT (Many/Medium/Few splits), evaluated by balanced accuracy at the recovered radius .
- Setup: ViT-B/16 with ImageNet-1k supervised initialization (DINO initialization for ImageNet-LT to avoid label leakage); hyperparameters selected on a stratified 20% validation split; the SVDD boundary is refitted on the selected encoder checkpoint before testing.
- Ablations: (i) backbone × update rule × anomaly exposure (Table 3); (ii) matched ViT-B/16 comparison of primal vs. dual updates on CIFAR-10 with 10% exposure, 10 seeds per class, with a paired t-test (Table 4); (iii) fixed vs. jointly fine-tuned backbones under the long-tailed protocol (Table 5); (iv) a text-only discussion of three Gaussian kernel bandwidth selection strategies (Sec. 4.4).
Strengths
-
Clear Problem Formulation and Intuitive Approach The idea itself is clean and intuitive: this paper points out the issue of DLM-SVDD's dual-structured objective function—which finds the boundary via the dual formulation while training the network using a primal surrogate—and leverages Danskin's theorem to directly update the encoder using only the quadratic form term of the dual optimal value ().
-
Strong Benchmark Performance
- In various public benchmarks, the proposed approach shows high AUROC and balanced accuracies. Furthermore, the proposed method exhibits a substantially larger performance gap than other state-of-the-art methods in the long-tail setting.
Weaknesses
- Incomplete Notation Definitions Undermine the Readability and Verifiability of the Method Several symbols in Eq. (1) are never defined or explained. Only , , , and are described, whereas the slack variables (not identified as slacks at their first appearance), the hypersphere center , the feature map , the coefficient , and the roles of the base constants are left unexplained. These are not incidental symbols, as they propagate through the entire method:
- the slacks are later reconstructed from the dual variables in Sec. 3.1.1 and are required to recover the radius and margin in Eqs. (5)–(6);
- the center defines the anomaly score in Eq. (4) through its optimal counterpart ;
- determines the dual feasible set , the per-class dual mass split in the -step, and the condition used in the boundedness and non-collapse argument in Sec. 3.1.2.
As a result, readers are forced to infer these meanings from prior work or reverse-engineer them from later equations. Combined with the omitted intermediate derivation steps (see Q1), this makes it difficult to follow the update procedure and to verify the logical validity of the subsequent theoretical claims (Propositions 1–2), which undermines confidence in the soundness of the claimed contributions. All variables should be explicitly defined at their first appearance, ideally with a notation table.
- Insufficient Analysis of Optimization and Training Stability This paper motivates the dual-driven update by arguing that, in the prior primal-driven approach, the network "chases a moving target" and "no single objective is guaranteed to decrease." However, the training dynamics of the proposed method itself are not empirically analyzed. This paper provides:
- no epoch-wise curves of the optimal-value objective (or ), the radius , the margin , or the Frank–Wolfe duality gap;
- no report of the number of Frank–Wolfe iterations or the stopping tolerance used in the -step;
- no clear evidence of seed-to-seed stability. The only stability evidence is the standard deviation reported with Table 4, but the Table 4 caption states that it is computed across the ten per-class performances, and the values quoted in the text as the "pooled run-to-run standard deviation" (0.012 vs. 0.003) differ from those in the table (0.011 vs. 0.002) without explanation. They appear to correspond to the spread across the ten class means rather than to variability across seeds.
This matters because the encoder gradient is computed from an approximately solved dual problem. The monotonicity guarantee in Sec. 3.2 holds only under an exact-solution idealization, and Frank–Wolfe is known to converge slowly and exhibit zigzagging behavior near the optimum, particularly when the solution is sparse as here. Although the Reproducibility Statement says that "additional optimization behavior" is detailed in Sec. 4.4, no such analysis appears there. A direct comparison of objective and boundary trajectories, as well as seed-level variance, between the primal and dual updates is needed to substantiate the claimed advantage.
-
Limited Comparison with Alternative Bilevel Optimization Strategies Section 2 discusses differentiable optimization and hypergradient-based approaches (e.g., Amos & Kolter, 2017; Franceschi et al., 2018) and explains why the envelope (Danskin) theorem applies to the proposed optimal-value objective. However, this discussion remains purely conceptual. This paper provides no empirical or computational comparison against an alternative bilevel strategy, such as unrolled or implicit differentiation, in terms of gradient accuracy, stability, runtime, or memory. Since the proposed gradient is exact only at the exact dual optimum, such a comparison, or at least an analysis of gradient error under inexact Frank–Wolfe solutions, would clarify the practical advantages of the proposed scheme.
-
Unexplained Empirical Anomalies and Performance Drops Two counter-intuitive results lack adequate explanation:
- Table 4: On CIFAR-10 with 10% anomaly exposure, the ViT-B/16 model trained with the primal update obtains a mean AUROC of 0.982. This is lower than the 0.995 obtained by the fixed ViT-B/16 backbone in Table 3 for the same dataset and exposure level, which suggests that primal fine-tuning degrades the pretrained representation. No explanation is given, and the comparison is split across two tables, so it is unclear whether the settings and numbers of runs are identical.
- Table 5: On CIFAR-100-LT, joint fine-tuning with the proposed dual update decreases balanced accuracy compared with the fixed backbone at every imbalance ratio (by 1.86, 2.61, and 3.00 points at ). The degradation is reported in the text, but no analysis is provided on why the encoder update harms performance in this setting.
These observations require further investigation and discussion.
- Insufficient Evidence That the Dual Encoder Update Itself Contributes: Metric, Statistical Reliability, and Dataset Coverage The proposed solution is logically aligned with the problems stated in the Introduction. However, whether the dual encoder update itself yields a genuine improvement is not convincingly established, owing to the choice of metric, the lack of statistical reliability, and the limited coverage of the controlled comparison.
-
(a) Metric. The standard anomaly detection experiments (Tables 1, 3, and 4) rely solely on AUROC. On CIFAR-10 and CIFAR-100, the fixed ViT-B/16 already reaches 0.995–0.996 and 0.989–0.992, respectively (Table 3), so the remaining headroom is very small, and a threshold-free metric such as AUROC has little resolution in this regime. In Table 3, the dual update improves over the fixed backbone in every setting, but the gain is clear only on Fashion-MNIST (about 0.045–0.049), whereas it is merely 0.002–0.003 on CIFAR-10 and 0.003 on CIFAR-100. Complementary metrics that are more sensitive at high performance, such as AUPR and FPR at 95% TPR, are needed to judge whether these small gains are meaningful.
-
(b) Statistical reliability. Beyond Fashion-MNIST, it is unclear whether the small gains over the fixed backbone reflect a real effect or experimental chance. The only significance test in this paper (Table 4, paired , ) is computed over the ten per-class means, i.e., over classes rather than seeds, and compares the primal and dual updates. It does not test the fixed vs. dual comparison, which is the one that isolates the contribution of encoder training on top of boundary learning. For Tables 1, 2, 3, and 5, it is not stated whether multiple seeds were used and no variance is reported. For Tables 1, 2, 3, and 5, it is not stated whether multiple seeds were used and no variance is reported (see also the discussion of seed-to-seed stability in Weakness 2).
-
(c) The primal vs. dual comparison is shown on a single dataset. This paper's key evidence that the improvement over DLM-SVDD cannot be explained by the transformer architecture alone comes from the matched ViT-B/16 comparison of the primal and dual updates in Table 4, which is conducted only on CIFAR-10 at 10% anomaly exposure. The authors explain that the comparison is limited to a single representative dataset "due to space constraints," but it is not clear why CIFAR-10 was chosen as the representative. Fashion-MNIST, where the gain of the dual update over the fixed backbone is clearest, CIFAR-100, which is the more challenging benchmark, the 50% and 75% exposure levels, and the long-tailed benchmarks are all excluded, even though these are the settings where the headline results are reported (Tables 1 and 2). The space constraint is also not convincing since an appendix could host these results. As a consequence, the generality of the conclusion that the dual update, rather than the backbone, is responsible for the gains over DLM-SVDD cannot be assessed beyond this one setting, and the statistical test in Table 4 (computed over the ten CIFAR-10 class means) supports only that setting.
- Absence of Any Figure Hinders Intuitive Understanding of the Method
- This paper contains no figure at all. Figures could have helped readers understand the proposed framework (e.g., a diagram of the alternating -step and -step) and, more importantly, could have shown qualitatively whether the feature space actually changes in the intended way, for example through feature-space visualizations before and after encoder updates, or the behavior of support vectors and kernel structure during training. I do not consider this an essential flaw by itself. However, the absence of figures that would support intuitive understanding makes it harder to assess the authors' claimed contributions.
Questions for the authors
Q1. Omitted derivations and Eq. (2). Could the authors provide the omitted derivation from the primal problem (Eq. 1) to the dual problem (Eq. 2)? In my derivation, the term has a per-sample coefficient , whereas Eq. (2), written with and , gives a coefficient larger by a factor of for . Is this a typo or a different convention, and does in Proposition 1 hold exactly with Eq. (2) as written? An explicit derivation of the bound would also help readers verify the mathematical claims.
Q2. Selected hyperparameters and sensitivity. Only the search ranges for , , and are reported in Sec. 4.1, even though the Reproducibility Statement says that the selected hyperparameters are discussed there. The values actually selected for each dataset are not given in this paper, and no sensitivity analysis is provided. Two points in the search space are of particular concern:
- (), where the penalty becomes extremely flat on and may affect the conditioning of the dual problem and the accuracy of finite Frank–Wolfe solutions;
- , where the anomaly dual mass becomes zero. If selected in any setting, labeled anomalies would no longer influence either the boundary or the encoder update, and the non-collapse argument (which requires ) would no longer apply.
Which values were selected for each dataset and exposure level, and how sensitive is the final performance to and ?
Q3. Bandwidth study and computational cost. The "Bandwidth sensitivity" analysis in Sec. 4.4 compares three strategies for selecting the Gaussian kernel bandwidth but reports no quantitative results, although the Reproducibility Statement states that this analysis is "detailed in Sec. 4.4." Could the authors provide the actual numbers? Relatedly, what is the wall-clock training time, given that the kernel matrix must be recomputed and the dual re-solved at every epoch?
Q4. Generality and reliability of the primal vs. dual comparison. The matched ViT-B/16 comparison of the primal and dual updates (Table 4) is conducted only on CIFAR-10 at 10% exposure. Could the authors report the same comparison on Fashion-MNIST and CIFAR-100 (and at the other exposure levels), and clarify whether multiple seeds were used for Tables 1–3 and 5? In particular, could they provide a significance test for the fixed vs. dual comparison, together with complementary metrics such as AUPR and FPR at 95% TPR, since AUROC is close to saturation on CIFAR-10/100?
7 comments
(Part 1/5)
We thank the reviewer for a very careful review and feedback on our submission. Every weakness and question is addressed below.
1. Eq. (2), the omitted derivation, and the bound (W1, Q1).
The reviewer's derivation is correct: Minimizing over gives and the value , so the per-sample coefficient is exactly the one the reviewer states. The submitted Eq. (2) wrote this term as with a prefactor . Every non-zero entry of equals , so the correct prefactor in that notation is , and the submitted form was too large by .
Typo or convention? It is a slip in the compact class-selector notation, which we carried over from the fixed-feature formulation, and not a different convention. It has a simple interpretation: because , we have , so the submitted Eq. (2) is the exact dual of the same primal with slack penalties .
Does hold with Eq. (2) as written? Not for the penalties stated in the submission. It holds exactly for . In the revision:
- Eq. (2) is written class-wise, with , which removes the ambiguity.
- Our implementation follows the compact form. It therefore solves the corrected dual with , and the paper now defines in exactly this way. With this definition the stated primal, the stated dual, and the code agree, holds exactly, and no AUROC result changes.
- Appendix A.2 gives the complete derivation: the Lagrangian, each stationarity block, the elimination of the slacks, the dual function, the relation to the compact form above, and a proof of strong duality (for a Gaussian kernel the substitution makes the primal a convex program with affine constraints). We also verified the identity numerically by solving the primal directly on small instances.
The bound: Appendix A.2 derives it explicitly. Positive semidefiniteness gives . Since and the cross-class terms enter with a negative sign, . Hence .
Notation: , , , , , , and are now defined where Eq. (1) first appears, and a notation table has been added to the appendix.
2. Optimization and training stability (W2).
Solver settings: Every boundary update uses a fixed budget of Frank–Wolfe iterations with step size . There is no tolerance-based stopping. This is now in Sec. 4.1.
Solver accuracy: We solved the same boundary problem with budgets up to 500k iterations and compared each solution with the 500k reference (means over the ten CIFAR-10 tasks, full table and plot in Appendix A.1):
| Iterations | FW gap | Grad. cosine | Grad. rel. err. | rel. err. | Test AUROC | Time (s) |
|---|---|---|---|---|---|---|
| 1k | 0.6293 | 0.8426 | 0.6753 | 0.5216 | 0.99542 | 0.39 |
| 5k | 0.2342 | 0.9416 | 0.4371 | 0.2859 | 0.99593 | 1.41 |
| 10k | 0.1382 | 0.9699 | 0.2979 | 0.1949 | 0.99608 | 2.68 |
| 50k | 0.0171 | 0.9989 | 0.0507 | 0.0350 | 0.99618 | 12.9 |
| 250k | 0.0016 | 1.0000 | 0.0043 | 0.0033 | 0.99615 | 64.2 |
| 500k | 0.0008 | 1.0000 | 0 | 0 | 0.99615 | 128.0 |
(Part 2/5)
The reviewer's expectation of slow Frank–Wolfe convergence on a sparse solution is true, and we now say so: all main experiments use , i.e. , for which the regularizer gradient varies sharply near and the standard rate does not apply. The 1k solution is not accurate (gap ). Its gradient is nevertheless positively aligned with the reference (cosine ), and the detection metric is flat over the whole range, while the 500k budget is slower. Away-step or pairwise Frank–Wolfe variants are a natural way to close this gap and are noted as future work.
Training dynamics: Within the rebuttal period we gave priority to the matched comparison, the solver diagnostics, and the sensitivity study, and did not add epoch-wise training curves to the paper (also because of page limit). Our training code logs , the validation AUROC, , and at every epoch, and the convergence statements of Sec. 3.2 are now tied to Propositions 4 and 5 rather than to an observed curve.
Seed-to-seed stability and the inconsistent standard deviations: The standard deviation in the submitted Table 4 was the spread across the ten class means and not across seeds. The two sets of values in the text and in the table should not both have appeared, and both have been removed. In the revision the one-vs-rest tasks are averaged within each seed, and mean, standard deviation, and paired tests are computed across matched seeds (five matched seeds at 10% exposure on Fashion-MNIST and CIFAR-10, two on CIFAR-100 at 10%, and one seed at 50% and 75%). With this unit, the seed-level standard deviations of the primal and dual updates are of the same order (at most AUROC), so we have also removed the claim that the dual update reduces run-to-run variance.
3. Alternative bilevel strategies (W3).
The reviewer asked for a comparison with unrolled or implicit differentiation, or, failing that, for an analysis of the gradient error under inexact inner solves. We did not implement unrolled or implicit differentiation, for the structural reason given in the next paragraph. We instead provide the second option the reviewer named: the gradient error under inexact solves is now bounded in theory (Propositions 3 and 5) and measured (the table in item 2).
The outer objective is the inner optimal value. Its gradient does not contain , which is the quantity that unrolling and implicit differentiation exist to compute. At the exact inner solution all three approaches return the same gradient. At an inexact solution, all three are inexact. Unrolling is also poorly suited to this solver: the Frank–Wolfe vertex selection is an and is piecewise constant, so the unrolled gradient ignores changes of the selected atoms, and storing kernel updates over all training features on top of the ViT graph is not feasible in memory. Implicit differentiation requires a linear system on the active set, which is not identified at an inexact solution.
The analysis of gradient error under inexact solves is as follows. Proposition 3 (Appendix A.2) bounds the error by for any feasible , and by for , which covers our setting. Proposition 5 turns this into a statement for the alternating scheme: with a gradient-descent encoder step, the average squared gradient norm of is bounded by an term plus a term proportional to the average Frank–Wolfe gap. The table above is the empirical counterpart. We state clearly that these results concern a gradient-descent encoder step and are not claimed for Adam.
(Part 3/5)
4. The two empirical anomalies (W4).
Primal ViT below fixed ViT: With the full matched experiments, the primal ViT is not below the fixed ViT: on CIFAR-10 at 10% exposure the fixed, primal, and dual models obtain , , and . The submitted Table 4 ( for the primal entry) has been updated with these values and more details. Primal fine-tuning therefore does not fall below the fixed backbone, and the dual update improves on the primal one. With these values, the gain of dual over primal on CIFAR-10 is AUROC ( points), and the paper states the claim accordingly.
CIFAR-100-LT: The reviewer is right that we reported the drop without analysing it. We did not complete a per-class decomposition of the drop within the rebuttal period. The paper reports the drop explicitly (Sec. 4.4: on CIFAR-100-LT the fixed ViT is better than the jointly fine-tuned one at all three imbalance ratios), we read it as a limitation of joint fine-tuning when classes have very few normal samples (which might cause overfitting during training), and we do not claim that the encoder update is uniformly beneficial.
5. Evidence for the dual update: metric, reliability, coverage (W5, Q4).
(a) Metric: We agree that AUROC has little resolution here. The matched comparison now reports AUPR-In, FPR95, and balanced accuracy (Appendix A.3). At 10% exposure:
| Dataset | Update | AUROC | AUPR-In | FPR95 | BAcc |
|---|---|---|---|---|---|
| Fashion-MNIST | Fixed | ||||
| Primal | |||||
| Dual | |||||
| CIFAR-10 | Fixed | ||||
| Primal | |||||
| Dual | |||||
| CIFAR-100 | Fixed | ||||
| Primal | |||||
| Dual |
On CIFAR-10 the dual update lowers FPR95 by relative to the fixed backbone and by relative to the primal update. AUPR-In is unchanged relative to the primal update, which the paper states. CIFAR-100 shows the same ordering in all four metrics. (Its AUPR-In values are lower because normal samples are only 1% of each CIFAR-100 test set.)
On Fashion-MNIST the reviewer computes a gain of – from the fixed-ViT value of in the submitted Table 3. Based on the full experiments, with the single configuration used for all results, the fixed ViT obtains at 10% exposure and at 50% and 75%, and the revised Table 3 reports these values. The gain from training the encoder at 10% exposure on Fashion-MNIST is therefore points with the primal update and points with the dual update, so more than half of it is specific to the dual update.
(b) Statistical reliability: Seeds are now the statistical unit. For fixed vs. dual, which the reviewer identifies as the comparison that isolates encoder training, the dual update is better in every seed on CIFAR-10. A paired -test over the five seeds gives , for AUROC and , for FPR95. On Fashion-MNIST the dual update has a higher mean AUROC and a lower FPR95 than both the fixed backbone and the primal update at all three exposure ratios. For dual vs. primal on CIFAR-10: , (AUROC) and , (FPR95).
(c) Coverage: The matched comparison now covers Fashion-MNIST, CIFAR-10, and CIFAR-100 at all three exposure ratios (Table 3 and Appendix A.3), and we no longer cite a space constraint. Over these nine settings the dual update is at least as good as the matched primal update in every setting for AUROC, FPR95, and balanced accuracy, and in seven of nine for AUPR-In. The advantage is largest on Fashion-MNIST, where FPR95 falls by – relative to the primal update, and smallest on CIFAR-100 (–). The same ordering is also valid in a new class-disjoint evaluation on CIFAR-10, in which five of the nine anomaly classes are never seen in training (Appendix A.4).
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper studies deep anomaly detection with limited labeled anomaly exposure. It addresses a limitation of prior deep large-margin SVDD methods, where the boundary is optimized using a dual objective but the encoder is updated with a different approximate primal surrogate. To address this mismatch, the authors propose TLM-SVDD, which uses a ViT-B/16 backbone and updates the encoder through the optimal value of the large-margin ℓp-SVDD dual problem. By applying Danskin’s theorem, the encoder gradient is obtained from the kernel quadratic term at the optimal dual variables, without differentiating through the Frank–Wolfe solver. The method is evaluated on Fashion-MNIST, CIFAR-10/100, their long-tailed variants, and ImageNet-LT, with comparisons against anomaly-detection and long-tailed recognition baselines.
Strengths
- The paper addresses a relevant problem in deep anomaly detection: how to jointly learn a representation and a large-margin SVDD boundary when a limited number of labeled anomalies are available. The authors identify a concrete mismatch in the preceding DLM-SVDD framework, where the boundary and encoder updates are based on different objectives.
- The proposed dual-driven encoder update has a clear mathematical motivation. Proposition 1 uses Danskin’s theorem to derive the encoder gradient from the optimal value of the dual problem, while Proposition 2 gives a support-vector contrast interpretation. The evaluation also covers several standard and long-tailed benchmarks, and Table 4 makes a useful attempt to compare primal and dual updates using the same ViT-B/16 backbone and initialization.
Weaknesses
- The independent contribution of the proposed dual encoder update is not established across a sufficiently broad range of settings. Table 3 compares fixed and jointly updated representations, but it does not provide a complete backbone-by-update comparison: the ViT-B/16 setting is evaluated with fixed and dual updates, whereas the matched primal-versus-dual comparison is provided only in Table 4. Table 4 is limited to CIFAR-10 with 10% anomaly exposure. Therefore, the evidence that the dual update itself consistently explains the reported gains across datasets and anomaly-exposure ratios remains limited. In addition, the statistical unit in Table 4 should be clarified. The text mentions ten seeds per class, while the table reports statistics across ten per-class performances and the paired test is conducted on ten class means. It is not clear how seed-level repetitions enter the reported standard deviation and significance test. A broader matched comparison with the same backbone, initialization, data splits, and training budget would make the central methodological claim more convincing.
- The theoretical exact-gradient result is not sufficiently connected to the practical optimization procedure. Proposition 1 derives the encoder hypergradient at an optimal solution of the inner dual problem. However, Section 3.2 acknowledges that the Frank–Wolfe subproblem is solved only to a finite gap in practice. The main paper does not clearly report the stopping tolerance, typical iteration counts, or optimality gaps obtained during training, nor does it quantify how the inner-solver accuracy affects the encoder gradient and final performance. Moreover, the convergence discussion uses a gradient-descent step-size condition, whereas the implementation in Section 4.1 uses Adam, cosine learning-rate decay, and gradient clipping. Thus, the stated monotonicity argument does not directly establish convergence behavior for the actual training procedure. Reporting solver tolerances and conducting a sensitivity analysis would help connect the theoretical result to the implemented method.
- The long-tailed evaluation protocol and the generalization claims require further clarification. Table 2 places conventional multi-class long-tailed classifiers and one-vs-rest SVDD-based detectors in the same comparison and reports balanced accuracy. However, the paper does not sufficiently specify how the outputs of multiple one-vs-rest detectors are converted into a single multi-class prediction, how cases in which multiple detectors accept or reject a sample are handled, or precisely how balanced accuracy is aggregated. Without these details, it is difficult to assess whether the reported results are directly comparable across the two groups of methods. In addition, the Introduction motivates the method by noting that test-time anomalies may differ from those observed during training, but the described one-vs-rest protocol draws training anomalies from the remaining classes and does not report a class-disjoint evaluation in which some anomaly categories are entirely excluded from training. The current experiments therefore do not fully establish generalization to previously unseen anomaly categories. Overall, the paper presents a plausible and potentially useful optimization idea. However, the current evidence does not yet establish the independent benefit of the dual update across a broad range of settings, fully connect the theoretical optimal-gradient result to the finite-accuracy implementation, or sufficiently clarify the long-tailed evaluation protocol.
Questions for the authors
- Could the authors provide a more complete matched comparison of primal and dual encoder updates beyond CIFAR-10 with 10% anomaly exposure? In particular, could the comparison be extended to additional datasets and anomaly-exposure ratios using the same backbone, initialization, data split, and training budget? Please also clarify whether the standard deviations and paired test in Table 4 are computed over seeds, classes, or class-level averages, and how the ten seeds per class enter the statistical analysis.
- Could the authors report the Frank–Wolfe stopping criterion, iteration counts, and optimality gaps during training, and provide a sensitivity analysis using different inner-solver tolerances? How close is the practical encoder gradient to the gradient obtained from a more accurately solved dual problem? Please also clarify which convergence statements apply to the idealized gradient-descent procedure and which, if any, are supported for the Adam-based implementation.
- Could the authors precisely describe the long-tailed prediction and evaluation protocol used for the one-vs-rest SVDD methods in Table 2? How are the outputs or radius-based decisions from multiple one-vs-rest detectors converted into a single class prediction, how are conflicting decisions handled, and what exact balanced-accuracy formula is used? Were the multi-class baselines evaluated using the same final prediction and metric protocol?
- Could the authors provide a class-disjoint anomaly evaluation in which selected anomaly categories are absent from training and appear only at test time? Also, the hyperparameter search includes ν = 1. From the stated dual feasible set, the total dual mass assigned to anomalous samples is (ν − 1)/2, which is zero when ν = 1. Could the authors report the selected ν values and clarify how anomaly exposure affects the encoder update in cases where ν = 1 is selected?
4 comments
(Part 1/4)
We thank the reviewer for the careful reading and the helpful comments provided. Based on the mentioned three weaknesses of the submission we have done new experiments, new analyses, and improved the text: (i) the updated comparison now covers fixed, primal, and dual ViT-B/16 models on three datasets and three exposure ratios, (ii) the finite Frank–Wolfe solver is now reported, measured, and connected to the theory through additional experiments, (iii) the long-tailed protocol is clarified, including what it does and does not do, and (iv) a class-disjoint (unseen) evaluation is included in the experiments.
1. Matched comparison of the encoder updates and the statistical unit (W1, Q1).
The comparison now includes the fixed ViT-B/16, the primal-driven update of DLM-SVDD on the same ViT-B/16, and the proposed dual-driven update, on Fashion-MNIST, CIFAR-10, and CIFAR-100 at 10%, 50%, and 75% anomaly exposure ratios. Inside each setting the three variants share the exact same initialization, data split, anomaly samples, training budget, hyperparameters, and random seeds. Table 3 of the paper now also contains the “ViT-B/16, primal” row, so the backbone-by-update grid the reviewer asked for is complete for the transformer. Test AUROC, averaged over the one-vs-rest tasks and then over seeds:
| Dataset | Update | 10% | 50% | 75% |
|---|---|---|---|---|
| Fashion-MNIST | Fixed | |||
| Primal | ||||
| Dual | ||||
| CIFAR-10 | Fixed | |||
| Primal | ||||
| Dual | ||||
| CIFAR-100 | Fixed | |||
| Primal | ||||
| Dual |
The standard deviation across seeds is at most AUROC. At 10% exposure the dual update exceeds the matched primal update by AUROC on Fashion-MNIST and by on CIFAR-10. The CIFAR-10 difference is small in absolute terms because AUROC is saturated there, although it appears in all five matched seeds (see the paired tests below). For that reason we now also report three metrics that are less saturated (Appendix A.3):
- AUPR-In: the area under the precision–recall curve with the normal samples taken as the positive class.
- FPR95: the fraction of anomalous test samples that are still accepted at the threshold which accepts 95% of the normal test samples. Lower is better.
- Balanced accuracy: the mean of the true-positive rate on normal samples and the true-negative rate on anomalous samples, at the recovered radius .
FPR95 is the metric with the most resolution in this regime: the dual update lowers it by on Fashion-MNIST and on CIFAR-10 relative to the primal update, and by on CIFAR-10 relative to the fixed backbone. AUPR-In improves on Fashion-MNIST and is unchanged on CIFAR-10 ( vs. ), which we state in the paper. Over the complete grid, the dual update is at least as good as the matched primal update in all nine settings for AUROC, FPR95, and balanced accuracy, and in seven of nine for AUPR-In. Relative to the primal update, FPR95 falls by – on Fashion-MNIST and – on CIFAR-10, but only by – on CIFAR-100, where the two updates are close.
(Part 2/4)
Statistical unit: The reported standard deviation was the spread across the ten class means, and the paired test was run on those ten class means. The ten seeds per class entered only through the class means. In the revision, the one-vs-rest tasks are first averaged within each seed, and mean, standard deviation, and paired tests are then computed across matched seeds. On CIFAR-10 at 10% exposure (five seeds), the dual update is better than the primal update in every seed, with a paired -test over seeds giving , for AUROC and , for FPR95. Against the fixed backbone, the test gives , for AUROC. On Fashion-MNIST the dual update has a higher mean AUROC and a lower FPR95 than the primal update at all three exposure ratios. CIFAR-100 has two seeds at 10%, too few for a seed-level test. Over its 100 one-vs-rest tasks (seed 42), the dual update has a higher AUROC than the primal update in 69 tasks (Wilcoxon signed-rank ) and a lower FPR95 in 77 ().
The primal entry of the submitted Table 4: That table reported for the primal ViT on CIFAR-10 only. This table has been updated with added new values and more details. With the full experiments, the dual-over-primal AUROC gain on CIFAR-10 is .
Metrics at an operating point: AUROC summarizes the ranking over all thresholds, so a small AUROC difference can hide a larger difference at the threshold that is actually used for decisions. We therefore also compare the three variants at a fixed threshold. Writing sensitivity for the fraction of normal test samples accepted and specificity for the fraction of anomalous test samples rejected, balanced accuracy is their arithmetic mean. At the recovered radius it is , , and for the fixed, primal, and dual models on CIFAR-10, and , , and on Fashion-MNIST. At a fixed sensitivity of 95%, the dual model also rejects more anomalies than the primal one on both datasets (the FPR95 values above).
2. Connecting the exact-gradient result to the implemented procedure (W2, Q2).
Stopping criterion and iteration count: Every boundary update in every experiment uses a fixed budget of Frank–Wolfe iterations with step size . No tolerance-based stopping is used. This is now stated in Sec. 4.1.
Optimality gaps and sensitivity: For our feasible set the Frank–Wolfe gap has a closed-form expression that is available at every iteration at no extra cost (Appendix A.1), and it upper-bounds the suboptimality . We solved the same boundary problem with budgets from 1k to 500k and compared each solution with the 500k reference (means over the ten CIFAR-10 tasks):
| Iterations | FW gap | Grad. cosine | Grad. rel. err. | rel. err. | Test AUROC | Time (s) |
|---|---|---|---|---|---|---|
| 1k | 0.6293 | 0.8426 | 0.6753 | 0.5216 | 0.99542 | 0.39 |
| 5k | 0.2342 | 0.9416 | 0.4371 | 0.2859 | 0.99593 | 1.41 |
| 10k | 0.1382 | 0.9699 | 0.2979 | 0.1949 | 0.99608 | 2.68 |
| 50k | 0.0171 | 0.9989 | 0.0507 | 0.0350 | 0.99618 | 12.9 |
| 250k | 0.0016 | 1.0000 | 0.0043 | 0.0033 | 0.99615 | 64.2 |
| 500k | 0.0008 | 1.0000 | 0 | 0 | 0.99615 | 128.0 |
We do not describe the 1k solution as accurate: its gap is and its gradient has a relative error of . What the table shows is that the gradient is already positively aligned with the reference (cosine ) and that the detection metric is almost flat across a range of budgets.
How close is the practical gradient, in theory: The revision adds three results (Appendix A.2):
- Proposition 3: for any feasible , the gradient error is at most , and for at most , where is the strong-convexity modulus of the dual. All main experiments use .
- Proposition 4: for and a twice continuously differentiable encoder on a compact convex parameter set, the optimal value has a Lipschitz gradient. The smoothness used in Sec. 3.2 is therefore derived, not assumed.
- Proposition 5: with a gradient-descent encoder step and arbitrary inexact boundary steps, the average squared gradient norm of is bounded by an term plus a term proportional to the average Frank–Wolfe gap.
(Part 3/4)
Which statements apply to which procedure: The envelope identity (Proposition 1) holds at the exact inner solution. Proposition 3 holds for any inner solution and any outer optimizer, but it is a per-step bound. Monotonicity of and Proposition 5 hold for a gradient-descent outer step with step size . None of these is claimed for the Adam updates with cosine decay and clipping that we actually use. For that procedure, our evidence is empirical. Sec. 3.2 has been rewritten to say this explicitly.
Why 1k iterations: Adam normalizes each update by a running estimate of the gradient magnitude and the gradient is clipped, so the encoder step depends mainly on the gradient direction. The boundary problem is re-solved for the current encoder at every epoch, so errors in the dual variables are not carried over. The reported boundary is refitted on the selected checkpoint. Against this, the solve time grows linearly: the 500k budget is slower, which amounts to about nine hours of solver time per CIFAR-10 run instead of under two minutes. In proportion to training: one training epoch of a CIFAR-10 one-vs-rest task takes about s on one NVIDIA RTX 6000 Pro. The 1k-iteration solve takes s per one-vs-rest task, a small fraction of that, whereas a single 500k-iteration solve ( s) would by itself take longer than the whole epoch. So, the selection of 1k iterations introduces a trade-off.
3. Long-tailed prediction and evaluation protocol (W3, Q3).
We answer the three questions directly.
Are the one-vs-rest outputs converted into a single class prediction? No. Each class defines its own binary task, in which class is normal and all other classes are anomalous, following the common procedure in the literature. Detector accepts a test sample when . Because no multi-class prediction is formed, conflicting decisions between detectors do not enter the reported metric.
Exact formula: , where is the fraction of class- test samples accepted and the fraction of all other test samples rejected. The reported value is .
Were the multi-class baselines evaluated with the same protocol? No. Their numbers are taken from the original papers and are the standard multi-class top-1 accuracy on the balanced test sets, i.e., the macro-averaged class recall. The two groups are therefore not evaluated on the same task. For consistency with prior work, we followed the protocol of the fixed-feature method (Rahimzadeh Arashloo, 2024), which reports the two groups side by side, but the reviewer is right that the submitted text presented this as a like-for-like comparison. The revision defines both protocols in Sec. 4.1, separates the two groups in Table 2, and restricts the claim to the comparison among the one-vs-rest SVDD-based detectors.
4. Class-disjoint anomalies and the role of (W3, Q4).
Class-disjoint evaluation: For each CIFAR-10 normal class, the remaining nine classes are split into four seen and five held-out anomaly classes. Training, validation, model selection, and early stopping use only the normal class and the seen anomaly classes. The held-out classes appear only at test time. The split is identical for the three variants within each seed. Five seeds:
| Method | AUROC | AUPR-In | FPR95 | BAcc |
|---|---|---|---|---|
| Fixed | ||||
| Primal | ||||
| Dual |
(Part 4/4)
Three observations:
- Detection of unseen anomaly classes is harder than the standard protocol (AUROC instead of ), as expected.
- The ordering fixed primal dual is preserved in AUROC, FPR95, and balanced accuracy, and FPR95 is lower for the dual update than for the primal update in all five matched seeds (a relative reduction of on average, and relative to the fixed backbone). The mean AUROC differences are smaller than the across-seed standard deviation, so we do not claim an AUROC improvement here, and AUPR-In is essentially equal for the three variants.
- This evaluation is now Appendix A.4 of the paper, together with published CIFAR-10 results of cited methods whose test anomaly classes are absent from training. Under held-out classes, the dual model () is above all of them except PANDA with outlier exposure (), which trains on an external outlier dataset. Those methods use other backbones and all nine anomaly classes at test time, so this is a reference point and not a matched comparison.
Selected and the case : A single configuration, , , , , is used for all datasets, exposure ratios, and protocols. It was chosen in a preliminary search on the validation splits of all datasets at 10% exposure, where it was the best setting on most of them, and was then kept fixed instead of being re-tuned per dataset. The value was therefore not used for any reported result except as one point of the sensitivity study below. The only other runs at are the industrial one-class experiments requested by another reviewer, whose training sets contain no anomalies, and they are reported as such. The written statement is correct: at the anomalous dual mass is zero, anomalies influence neither the boundary nor the encoder update, and our non-collapse argument does not apply. The revision states this. At the class masses are for normal and for anomalous support vectors, so anomalous samples carry of the total dual mass in the encoder gradient at every exposure ratio. What the exposure ratio changes is the pool of anomalous samples from which the support vectors are selected. The new sensitivity study (Figure 2, CIFAR-10 at 10% exposure) confirms this role: test AUROC is at , below the fixed backbone (), rises to at , and stays there at and .
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
As there was no further author discussion, I will maintain my original rating based on the submitted response and review.