Beyond Empirical Support: Structured Outlier Generation via Sinkhorn Optimal Transport
Organizations: Edwardson School of Industrial Engineering Purdue University West Lafayette, IN, 47906
Abstract
Outliers are essential for evaluating and improving the robustness of machine learning systems, especially when future distributions may differ significantly from historical training data. In high-stakes applications, robustness often depends on rare cases that finite datasets fail to capture, making simple resampling or perturbation insufficient for stress scenario generation. Existing outlier synthesis methods typically rely on sparse neighborhoods, low support latent regions, or classifier boundary crossings, which can be heuristic, unstable, and tied to specific modalities or architectures. We therefore propose Sinkhorn Boundary Outlier Generation (SBOG), a structured framework for latent-space outlier generation that couples Sinkhorn optimal transport geometry with distributionally robust boundary modeling. The resulting Sinkhorn-induced support cost guides the sampler toward weakly supported boundary regions, while semantic constraints prevent uncontrolled drift from the intended context, yielding controlled deviations from the in-distribution reference measure rather than arbitrary sparse-region samples. Experiments on time series anomaly generation and image outlier synthesis show that our framework produces informative, semantically controlled outliers and improves downstream robustness evaluation across modalities, providing a foundation for stress scenario generation beyond empirical support.
Figures & tables
| Methods | SMD | MSL | SMAP | SWaT | WADI | Average | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AU-PR | F1 | AU-PR | F1 | AU-PR | F1 | AU-PR | F1 | AU-PR | F1 | AU-PR | F1 | |
| AnomalyTransformer Xu et al. (2022) | 0.082 | 0.137 | 0.129 | 0.218 | 0.203 | 0.307 | 0.375 | 0.531 | 0.064 | 0.145 | 0.171 | 0.268 |
| DCdetector Yang et al. (2023) | 0.044 | 0.086 | 0.115 | 0.204 | 0.131 | 0.225 | 0.401 | 0.537 | 0.059 | 0.109 | 0.150 | 0.232 |
| TranAD Tuli et al. (2022) | 0.389 | 0.450 | 0.204 | 0.314 | 0.196 | 0.308 | 0.040 | 0.109 | 0.259 | 0.373 | ||
| COUTA Xu et al. (2024) | 0.321 | 0.403 | 0.309 | 0.382 | 0.303 | 0.535 | 0.207 | 0.266 | 0.310 | 0.410 | ||
| TS2Vec Yue et al. (2022) | 0.113 | 0.186 | 0.145 | 0.253 | 0.165 | 0.276 | 0.337 | 0.532 | 0.057 | 0.114 | 0.163 | 0.272 |
| Avg AUPR | Avg F1 | Gap | Fill | |
| 0.279 | 0.387 | 0.225 | 1.000 | |
| 0.295 | 0.409 | 0.224 | 1.000 | |
| 0.310 | 0.430 | 0.217 | 1.000 | |
| 0.126 | 1.000 | |||
| 0.305 | 0.422 | 0.109 | 0.999 | |
| 0.277 | 0.384 | 0.079 | 0.945 |
| Methods | INATURALIST | PLACES | SUN | TEXTURES | Average | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| FPR95 | AUROC | FPR95 | AUROC | FPR95 | AUROC | FPR95 | AUROC | FPR95 | AUROC | |
| GAN Lee et al. (2018) | 83.10 | 71.35 | 83.20 | 69.85 | 84.40 | 67.56 | 91.00 | 59.16 | 85.42 | 66.98 |
| VOS Du et al. (2022) | 43.00 | 93.77 | 47.60 | 91.77 | 39.40 | 93.17 | 66.10 | 81.42 | 49.02 | 90.03 |
| NPOS Tao et al. () | 53.84 | 86.52 | 59.66 | 83.50 | 53.54 | 87.99 | 8.98 | 98.13 | 44.00 | 89.04 |
| Dream-OOD Du et al. (2023) | 24.10 | 96.10 | 39.87 | 93.11 | 36.88 | 93.31 | 53.99 | 85.56 | 38.76 | 92.02 |
| NCIS Doorenbos et al. (2024) | 20.70 | 96.56 | 34.60 | 94.07 | 35.43 | 94.13 | 44.83 | 88.50 | 33.89 | 93.32 |
| Methods | SVHN | PLACES365 | LSUN-R | iSUN | TEXTURES | Average | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FPR95 | AUROC | FPR95 | AUROC | FPR95 | AUROC | FPR95 | AUROC | FPR95 | AUROC | FPR95 | AUROC | |
| GAN Lee et al. (2018) | 89.45 | 66.95 | 88.75 | 66.76 | 82.35 | 75.87 | 83.45 | 73.49 | 92.80 | 62.99 | 87.36 | 69.21 |
| VOS Du et al. (2022) | 78.50 | 73.11 | 84.55 | 75.85 | 59.05 | 85.72 | 72.45 | 82.66 | 75.35 | 80.08 | 73.98 | 79.48 |
| NPOS Tao et al. () | 11.14 | 97.84 | 79.08 | 71.30 | 56.27 | 82.43 | 51.72 | 85.48 | 35.20 | 92.44 | 46.68 | 85.90 |
| DreamOOD Du et al. (2023) | 58.75 | 87.01 | 70.85 | 79.94 | 24.25 | 95.23 | 1.10 | 99.73 | 46.60 | 88.82 | 40.31 | 90.15 |
| BOOD* Liao et al. (2025) | 5.42 | 98.43 | 40.55 | 90.76 | 2.06 | 99.25 | 0.22 | 99.91 | 5.10 | 98.74 | 10.67 | 97.42 |
| Strategy | Token cos. | Diversity | Yield |
|---|---|---|---|
| -NN | 0.490 | 0.635 | 0.277 |
| KDE-RBF | 0.464 | 0.626 | 0.272 |
| SBOG | 0.691 | 0.835 | 0.490 |
| Metric | w/o filter | SBOG |
|---|---|---|
| Purity | 0.381 | 0.824 |
| Token cos. | 0.329 | 0.602 |
| Class margin | -0.074 | 0.220 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | BPrec | SemValid | BCov | WorstCov | SW2-to- oracle | Oracle AUPR |
|---|---|---|---|---|---|---|
| RandomNeg | 0.229 0.027 | 0.950 0.001 | 0.091 0.036 | 0.011 0.004 | 0.2349 0.0034 | 0.455 0.005 |
| kNNNeg | 0.298 0.036 | 0.977 0.014 | 0.033 0.005 | 0.002 0.002 | 0.1453 0.0062 | 0.684 0.014 |
| KDENeg | 0.305 0.043 | 0.972 0.011 | 0.070 0.008 | 0.005 0.003 | 0.1489 0.0089 | 0.830 0.012 |
| SBOG | 0.629 0.032 | 0.983 0.013 | 0.236 0.006 | 0.012 0.003 | 0.1405 0.0069 | 0.896 0.052 |
| Variant | Fidelity | Contam. | Margin | MMD 2 | Diversity |
|---|---|---|---|---|---|
| Random | 0.339 0.014 | 0.661 0.014 | -0.000 0.002 | 0.140 0.043 | 0.051 0.074 |
| w/o top-A anchor | 0.329 0.025 | 0.671 0.025 | 0.000 0.002 | 0.467 0.121 | 0.223 0.062 |
| w/o threshold | 0.988 0.004 | 0.012 0.004 | 0.034 0.038 | 1.076 0.227 | 0.182 0.026 |
| w/o argmax select | 0.989 0.004 | 0.011 0.004 | 0.034 0.039 | 1.049 0.247 | 0.099 0.022 |
| -NN | 0.990 0.031 | 0.010 0.031 | 0.025 0.030 | 0.934 0.301 | 0.195 0.027 |
| KDE | 0.992 0.028 | 0.008 0.028 | 0.028 0.032 | 0.978 0.265 | 0.198 0.024 |
Synthetic Anomaly Generation
Synthetic anomaly generation creates controlled abnormal examples to train, test, and evaluate detectors when real anomalies are scarce.
See all 65 papers