# TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels

TripletAD: 희귀 이상과 부족한 레이블이 있는 임베딩 공간에서의 약지도 이상 탐지

Sumit Wadhwa, Souvik Nath · arXiv · 2026년 11월 7일

- **연구 문제** 레이블된 이상이 극히 적고 비레이블 데이터를 정상으로 볼 수 없는 임베딩 기반 이상탐지에서 기존 약지도 탐지기와 트리 앙상블보다 나은 방법을 제안합니다.
- **연구 방법** triplet-margin 임베딩 학습과 선형 점수 헤드를 결합하고, 모든 triplet이 레이블된 이상을 포함하도록 구성한 뒤 partial cross-entropy와 relative-contrast 힌지로 점수를 보정합니다.
- **주요 결과** 약 5% 비율에서는 기준선과 비슷했습니다.

## 희소 레이블 이상탐지의 어려움

많은 실무 이상탐지 문제에서는 확인된 이상 샘플이 극히 적고, 검토되지 않은 나머지 데이터를 정상이라고 믿기도 어렵습니다. 이 논문은 이런 조건을 curated-label 프로토콜로 정의합니다. 이 프로토콜에서는 확인되지 않은 이상을 정상으로 재표지하지 않고 학습 세트에서 제거합니다. 기존 약지도 탐지기인 DevNet, PReNet, DeepSAD는 비레이블 풀을 대체로 정상으로 취급하므로, 레이블된 이상이 매우 드물어지면 각 이상이 학습 배치에 적게 나타나고 결정 경계를 만들 양성 예시도 부족해집니다. 저자들은 원시 표형 특성에서는 gradient-boosted trees가 여전히 강하지만, pre-training 임베딩 입력에서 희귀 이상을 다루는 문제가 개선이 가장 필요한 지점이라고 봅니다.

## triplet 학습과 선형 점수 헤드

TripletAD는 인코더 f\_θ와 선형 점수 헤드로 구성됩니다. 인코더는 입력 x를 32차원 임베딩 z=f\_θ(x)로 바꾸고, 헤드는 s(x)=σ(w⊤z+b)로 \[0,1\] 범위의 이상 점수를 냅니다. 학습 triplet은 각 앵커에 대해 같은 클래스의 양성과 반대 클래스의 음성을 무작위로 뽑아 만듭니다. 이상 앵커는 이상 양성과 정상 음성을, 정상 앵커는 정상 양성과 이상 음성을 사용하므로 모든 triplet에 레이블된 이상이 최소 하나 포함됩니다. 이 규칙은 별도의 과표집이나 배치 균형 없이 각 레이블을 에포크당 여러 번 재사용하게 합니다.

## 목적 함수와 두 개의 보정 항

전체 목적 함수는 J=L\_trip+λ1 L\_PCE+λ2 L\_RC입니다. 여기서 L\_trip은 임베딩 공간에서 앵커-양성 거리가 앵커-음성 거리보다 margin m=1 이상 작도록 밀어내는 triplet-margin 손실이며, 이상끼리와 정상끼리를 모으는 역할을 합니다. L\_PCE는 레이블된 이상 앵커에 대해서만 −log s(x)를 평균하는 partial cross-entropy이며, 정상 앵커는 기여하지 않고 평균은 전체 B개 triplet에 걸쳐 계산됩니다. L\_RC는 배치 안 이상 양성·음성 집합의 평균 점수 차이에 대한 hinge로, 두 집합의 평균 점수 차이가 1보다 작을 때 기울기가 생기도록 정의됩니다.

즉 relative contrast는 개별 샘플을 분류하는 대신 두 집단의 평균 점수를 분리하는 배치 단위 순위 제약입니다. 저자들은 기본값 λ1=1, λ2=0.25를 모든 데이터셋에 고정했다고 보고합니다.

## 두 단계 학습 절차

학습은 두 단계로 진행됩니다. 1단계에서는 L\_trip만으로 인코더를 50 epoch 사전학습하며, 이 동안 선형 헤드는 기울기를 받지 않습니다. 2단계에서는 전체 목적 함수 J를 100 epoch 동안 최적화합니다. 옵티마이저는 learning rate 10−3의 Adam이며, 배치는 256 triplet입니다. 배치마다 앵커, 양성, 음성을 하나의 순전파에 쌓아 배치 정규화가 세 역할을 모두 보게 합니다. 테스트 시 점수는 학습된 s(x)를 그대로 사용하며, 한 번의 순전파로 계산됩니다.

## 데이터와 희소 레이블 프로토콜

텍스트 다섯 개는 BERT, 이미지 세 개와 MVTec-AD 15개 범주는 ResNet-18, Speech는 400차원 i-vector로 표현됩니다. 각 시드마다 층화된 70/30 분할을 하고, min–max 스케일링은 학습 부분에서만 맞춥니다. 성능은 AUCPR을 다섯 시드 평균으로 보고합니다. 희소 레이블은 비율 ρ로 학습 이상의 무작위 일부만 유지하고, 나머지 학습 이상은 정상으로 바꾸지 않고 제거합니다. 이상 비율 스윕은 텍스트와 이미지 8개 데이터셋에서 정상 샘플을 모두 두고 이상을 부분 표본화하여 2%와 1%를 만듭니다. 기준선은 random forest, CatBoost, DevNet, PReNet, DeepSAD이며 모두 같은 입력과 같은 curated 세트에서 학습됩니다.

![Table 1: Datasets. “Best 1-feature AUROC” is the highest AUROC obtained by ranking on a single input coordinate (either sign)](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd/figures/figure-e91346d33a37aa2e0317826868f9662e.png?thumb=512)

**Table 1** : Datasets. “Best 1-feature AUROC” is the highest AUROC obtained by ranking on a single input coordinate (either sign).

[원문](https://arxiv.org/abs/2611.10352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sumit Wadhwa, Souvik Nath · TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 희귀 이상 설정에서의 결과

1% 이상 비율에서 TripletAD는 여섯 방법 중 가장 높은 평균 AUCPR 0.244를 보였습니다. 이는 DeepSAD 0.210, PReNet 0.207, DevNet 0.204, CatBoost 0.159, random forest 0.118과 비교한 값입니다. 같은 1% 설정에서 DevNet 대비 약 20%, CatBoost 대비 약 53% 높습니다. 자연적으로 희귀한 Speech(이상 1.65%)에서는 모든 레이블을 쓴 설정에서 0.394를 기록했고, 최고 기준선 CatBoost의 0.196보다 약 두 배 높았습니다. 레이블 비율을 75%, 50%로 낮춰도 우위가 유지되었으나 25%에서는 PReNet과 DevNet이 소폭 앞섰습니다.

2% 설정에서는 평균 0.346으로 DevNet 0.333, DeepSAD 0.326, CatBoost 0.289보다 높았습니다.

![Table 2: Anomaly-rarity sweep: AUCPR (mean of five seeds, with the anomaly subsample redrawn for each seed) when anomalies make up 1%, 2% or 5% (original) of e…](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd/figures/figure-5074d5098a075e6c2364f40dc492a6e9.png?thumb=512)

**Table 2** : Anomaly-rarity sweep: AUCPR (mean of five seeds, with the anomaly subsample redrawn for each seed) when anomalies make up 1%, 2% or 5% (original) of each dataset. Best per row in bold.

[원문](https://arxiv.org/abs/2611.10352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sumit Wadhwa, Souvik Nath · TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Table 3: Speech (1.65% anomalies): AUCPR as the fraction of labelled training anomalies varies under the curated protocol](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd/figures/figure-0acc75e05a9225c616f17035759cba41.png?thumb=512)

**Table 3** : Speech (1.65% anomalies): AUCPR as the fraction of labelled training anomalies varies under the curated protocol.

[원문](https://arxiv.org/abs/2611.10352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sumit Wadhwa, Souvik Nath · TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Figure 1: Anomaly-rarity sweep on eight text and image embedding datasets.Left:mean AUCPR over datasets and five seeds as the anomaly rate falls from 5% to 1%.…](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd/figures/figure-47e1252dee450b074f78416c1c8463e7.png?thumb=512)

**Figure 1** : Anomaly-rarity sweep on eight text and image embedding datasets.Left:mean AUCPR over datasets and five seeds as the anomaly rate falls from 5% to 1%.Right:the same, divided by DevNet’s score. TripletAD’s lead grows to 20% over DevNet at 1%, while the tree ensembles fall further behind as anomalies become rarer.

[원문](https://arxiv.org/abs/2611.10352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sumit Wadhwa, Souvik Nath · TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 중간 비율과 통합 통계

이 설정에서 TripletAD는 대부분 기준선과 같은 수준으로 보고됩니다. 희귀 또는 희소 레이블 셀 70개를 합친 분석에서는 평균 순위가 TripletAD 2.21, DevNet 2.84, PReNet 3.04였고, Holm 보정 후 다섯 기준선 모두에 대해 유의한 우위를 보고했습니다. 다만 DevNet과 PReNet에 대한 평균 차이는 0.021~0.023 AUCPR로 DeepSAD와 트리 기준선보다 작습니다.

![Table 5: Pooled comparison over 70 rare- or sparse-label embedding cells (AUCPR averaged over five seeds per cell). W/L: cells where TripletAD is better/worse.…](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd/figures/figure-a2105e0121b993779192423a416b91ab.png?thumb=512)

**Table 5** : Pooled comparison over 70 rare- or sparse-label embedding cells (AUCPR averaged over five seeds per cell). W/L: cells where TripletAD is better/worse.p: two-sided Wilcoxon signed-rank, Holm-corrected over the five baselines. A few cells are missing for DeepSAD; one DevNet and one PReNet cell are tied.

[원문](https://arxiv.org/abs/2611.10352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sumit Wadhwa, Souvik Nath · TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 절제 실험과 민감도

절제 실험은 Speech, Fraud, Cover에서 모든 레이블을 쓴 설정으로 수행되었습니다. Fraud에서 RC를 제거하면 AUCPR이 0.773에서 0.514로 떨어지고, Cover에서는 0.847±0.237로 불안정해집니다. Speech에서는 RC 제거 시 0.014 감소에 그쳐 중요도가 데이터셋에 따라 다릅니다. PCE 제거나 triplet pre-training 제거는 모든 설명 데이터셋에서 최대 0.014 감소였습니다. 손실 가중치 grid(λ1∈{0.1,0.5,1}, λ2∈{0.05,0.1,0.25,0.5})에서는 평균 AUCPR이 0.477~0.495이고 기본값은 0.483입니다. 이 민감도 분석은 9개 임베딩 데이터셋과 3 시드 기준입니다.

![Table 6: Ablation: AUCPR (mean±s.d. over five seeds), full labels](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd/figures/figure-7787394f31f28f11c067e21d0b6b684b.png?thumb=512)

**Table 6** : Ablation: AUCPR (mean±s.d. over five seeds), full labels.

[원문](https://arxiv.org/abs/2611.10352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sumit Wadhwa, Souvik Nath · TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Figure 2: Sensitivity.Left:mean test AUCPR over nine embedding datasets for each(λ1,λ 2); the colour scale spans ±0.05around the mean so the small spread is sh…](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd/figures/figure-2390487bef2bb59720f41f8b08e0e680.png?thumb=512)

**Figure 2** : Sensitivity.Left:mean test AUCPR over nine embedding datasets for each(λ1,λ 2); the colour scale spans ±0.05around the mean so the small spread is shown at true scale; the red box is the default.Right:test AUCPR against the number of joint-training epochs (dashed line: default of 100). The percentage after each dataset name is its label ratio.

[원문](https://arxiv.org/abs/2611.10352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sumit Wadhwa, Souvik Nath · TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 표형 데이터와 적용 범위

원시 표형 데이터에서 완전 레이블 설정으로 측정한 결과에서는 CatBoost 등 gradient-boosted trees가 TripletAD보다 강한 선택으로 남았습니다. 이 결과는 TripletAD가 임베딩 입력을 위해 설계되었다는 제한과 함께 읽어야 합니다. 또한 1% 이미지 임베딩인 CIFAR-10과 SVHN에서는 PReNet과 DevNet이 여전히 앞섭니다. 따라서 다른 데이터셋과 희소 레이블 조건으로 이 결과를 넓히지 않습니다.

![Table 10: Raw tabular datasets with full labels: AUCPR (mean of five seeds). PReNet and DeepSAD were not run on Backdoor, Cover, Fraud and HTTP](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd/figures/figure-327ef2b423de4d9bb58b91bcf88fdb14.png?thumb=512)

**Table 10** : Raw tabular datasets with full labels: AUCPR (mean of five seeds). PReNet and DeepSAD were not run on Backdoor, Cover, Fraud and HTTP.

[원문](https://arxiv.org/abs/2611.10352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sumit Wadhwa, Souvik Nath · TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Sumit Wadhwa, Souvik Nath
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 7일
- **등록일**: 2026년 11월 10일
- **수정일**: 2026년 11월 7일
- **버전**: v1
- **arXiv**: 2611.10352
- **분류**: cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.10352v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.10352v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Many practical anomaly detection problems come with only a handful of confirmed anomalies, and the unreviewed remainder of the data cannot be trusted to be normal. We study this setting under a curated-label protocol, in which unconfirmed anomalies are removed from training rather than relabelled as normal, and propose TripletAD, a weakly supervised detector that learns a triplet-margin embedding and calibrates a linear scoring head with two soft penalties: a partial cross-entropy on labelled anomalies and a relative-contrast hinge that separates the mean scores of anomalous and normal samples. Because every mined triplet contains a labelled anomaly, the few labels are reused across the entire training set instead of being diluted by it. On 24 ADBench datasets whose inputs are pre-trained embeddings (text, image and speech vectors), TripletAD outperforms established state-of-the-art weakly supervised detectors (DevNet, PReNet and DeepSAD) and gradient-boosted trees when anomalies are rare. At a 1% anomaly rate it has the highest mean AUCPR of six methods, 20% above DevNet; on the naturally rare Speech dataset it doubles the best baseline (0.394 vs. 0.196 AUCPR); and on MVTec-AD it is best when only a quarter or half of the anomalies are labelled. Pooled over 70 rare- or sparse-label settings, it has the best average rank (2.21 of 6) and outperforms each baseline under Wilcoxon signed-rank tests with Holm correction. When anomalies are more frequent it performs on par with these methods. The method needs no per-dataset tuning and is insensitive to its loss weights and training length; on raw tabular features, gradient-boosted trees remain the stronger choice.

## 원문 인용

Sumit Wadhwa, Souvik Nath (2026). TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels. arXiv:2611.10352v1. https://arxiv.org/abs/2611.10352v1

**BibTeX**

```
@misc{wadhwa2026tripletad,
  title = {{TripletAD: Weakly Supervised Anomaly Detection in Embedding Space with Rare Anomalies and Scarce Labels}},
  author = {Sumit Wadhwa and Souvik Nath},
  year = {2026},
  eprint = {2611.10352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10352v1}
}
```

## 이 논문의 용어

- [AUROC](https://refivu.com/terms/096f06e69425-auroc)
- [CatBoost](https://refivu.com/terms/3180a9554cd1-catboost)
- [ADBench](https://refivu.com/terms/409f7c1f9376-adbench)
- [batch normalisation](https://refivu.com/terms/9ea3d47c9ed2-batch-normalisation)
- [Partial Cross-Entropy](https://refivu.com/terms/f7957057d218-partial-cross-entropy)

## 다른 논문 해설

- [ESTRA: Enabling Extreme Attention Sparsity for Training-Free Video Diffusion Acceleration](https://refivu.com/papers/6a74d9dd-6805-4d9a-a7f5-24ad9bf9ed98-estra-enabling-extreme-attention-sparsity-for-training-free.md)
- [Evaluating classification and explainability in multimodal petrographic image analysis](https://refivu.com/papers/17298a4b-352b-4273-9ab4-b451803ecd99-evaluating-classification-and-explainability-in-multimodal.md)
- [Adapting Frozen Promptable Segmenters to User-Defined Taxonomies via Few-Shot Proposal Learning](https://refivu.com/papers/ffa6a892-7994-4958-9d38-c9539bf59b52-adapting-frozen-promptable-segmenters-to-user-defined.md)
- [Dataset Collections: Challenges of Large-Scale Data Aggregation in 3D Medical Image Datasets](https://refivu.com/papers/5550635b-b1eb-4824-80c9-e57e8f847e54-dataset-collections-challenges-of-large-scale-data.md)
- [BEiTScore++: Reference-free Image Captioning Evaluation with BEiT-3 and Conformalized Quantile Regression](https://refivu.com/papers/d1ebd7a1-6b06-480b-b9c3-fc39c2b046b9-beitscore-reference-free-image-captioning-evaluation-with.md)
- [Super-resolved digital terrain models for GEDI geolocation correction: agreement with airborne LiDAR DTM-based corrections at the beam level, not the footprint level](https://refivu.com/papers/ad1cb403-c102-49d8-b020-8bb88ee76b5e-super-resolved-digital-terrain-models-for-gedi-geolocation.md)
- [Quantitative Assessment of Crystal Structure Prediction](https://refivu.com/papers/a567aa7e-a18e-4315-b76a-1436ba6888e2-quantitative-assessment-of-crystal-structure-prediction.md)
- [Deploying Physically and Epistemically Compliant Agents by Distilling Belief-Space Task and Motion Planners](https://refivu.com/papers/5683ab20-2e74-4278-84ff-63394b14fe7e-deploying-physically-and-epistemically-compliant-agents-by.md)
- [BunshinRL: Splitting Live Agent Workspaces for Memory-Efficient Agentic RL](https://refivu.com/papers/9292e3d6-762e-46df-a9a5-341c387c6972-bunshinrl-splitting-live-agent-workspaces-for-memory.md)
- [WordEval: Evaluating Word-Native Operation Fidelity in Document Editing](https://refivu.com/papers/1387b060-0cad-47ab-a45d-91cfcc8807c4-wordeval-evaluating-word-native-operation-fidelity-in.md)
- [Regularization Amplifies Subliminal Learning](https://refivu.com/papers/22f59d9c-4e53-44c9-9218-a8bd14a07d28-regularization-amplifies-subliminal-learning.md)
- [TurnFlow: Benchmarking User-State Reasoning in Multi-Turn LLM Agents via Scene-Guided User Simulation](https://refivu.com/papers/17bb7d10-11bb-49a1-8949-7775315595ab-turnflow-benchmarking-user-state-reasoning-in-multi-turn.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/19b6dc67-f386-4db0-bb08-14436f3ee0fd-tripletad-weakly-supervised-anomaly-detection-in-embedding)
