Bilingual Paper Reading · 中英对照精读
单调异常检测:只对「高值」敏感的异常检测新设定
准大一 · 计算机科学与技术 × 机器学习 × 异常检测 —— 距离度量精读材料
原文:arXiv:2410.23158
2024年10月30日发布
arXiv 预印本(cs.LG)
异常检测 × 距离度量 × 单调性
附英文摘要朗读音频
一、论文档案
英文标题Monotonic anomaly detection
中文标题《单调异常检测》
作者奥利弗·乌尔斯·伦茨, 马泰斯·范·莱文(机构未在素材中标注)
发布时间2024年10月30日(v1)|分类:cs.LG(机器学习)
一句话概括提出两种「不对称距离」(ramp 距离与 signed 距离),让异常检测只对属性偏高(或只对偏低)敏感;实验表明 ramp 距离在 246 个基准问题与真实数据上都明显优于传统绝对距离。
💡 为什么选这篇给你:① 故事线极清晰:定义新问题→提出方法→实验→解释失败→给出建议,是教科书级的科研叙事;② 数学门槛低——距离度量大家高中就见过;③ 「低值该不该算异常」这个切入点小而巧,能让你体会「换个角度看老问题」的研究品味。
二、核心术语表(先扫一遍再读正文)
| 英文术语 | 中文 | 大白话解释 |
| Semi-supervised anomaly detection | 半监督异常检测 | 只用正常数据训练,然后判断新记录是否异常。 |
| One-class classification | 单类分类 | 只学「正常」这一类,其他都算异常——半监督异常检测的别名。 |
| Monotonic anomaly detection | 单调异常检测 | 本文提出的新设定:只有属性偏高(或只有偏低)才算异常。 |
| Ramp distance | 斜坡距离 | 不对称距离:低值对异常分数「零贡献」,直接忽略。 |
| Signed distance | 符号距离 | 不对称距离:低值算「反证」——拉低异常分数。 |
| Absolute distance | 绝对距离 | 传统对称距离:高值和低值都算异常证据。 |
| Asymmetric distance measure | 不对称距离度量 | 高值与低值「待遇不同」的距离函数。 |
| Centre Distance (CD) | 中心距离 | 样本到正常数据「中心」的距离。 |
| Nearest Neighbour Distance (NND) | 最近邻距离 | 样本到最近正常样本的距离。 |
| Local Outlier Factor (LOF) | 局部离群因子 | 比较局部密度:周围越稀疏越像离群点。 |
| Average Localised Proximity (ALP) | 平均局部邻近度 | 用局部邻近度判断异常的一种算法。 |
| Minkowski p-distance | 闵可夫斯基 p-距离 | 一族距离公式,欧氏距离是它的特例(p=2)。 |
| Anomaly score | 异常分数 | 给每条记录打的「异常程度」分数,越高越异常。 |
| AUROC | AUC 值 | 衡量异常检测性能的指标,越接近 1 越好。 |
| Attribute value | 属性值 | 一条记录在某一个属性(列)上的取值。 |
三、摘要中英对照(精读核心)
🎧 音频在文末,可先听一遍原文再读;每个英文句都配了逐句翻译。
摘要 Abstract
EN · 原文
Semi-supervised anomaly detection is based on the principle that potential anomalies are those records that look different from normal training data.
CN · 翻译
半监督异常检测基于这样的原则:潜在异常是那些
看起来与正常训练数据不同的记录。
EN · 原文
However, in some cases we are specifically interested in anomalies that correspond to high attribute values (or low, but not both).
CN · 翻译
然而,在某些情况下,我们只关心对应
属性高值(或只对应低值,但不是两者)的异常。
EN · 原文
We present two asymmetrical distance measures that take this monotonicity into account: ramp distance and signed distance.
CN · 翻译
我们提出两种考虑了这一单调性的
不对称距离度量:斜坡距离(ramp distance)与符号距离(signed distance)。
EN · 原文
Through experiments on synthetic and real-life datasets, we show that ramp distance increases anomaly detection performance over the traditional absolute distance.
CN · 翻译
通过在合成与真实数据集上的实验,我们表明斜坡距离比传统绝对距离
能提升异常检测性能。
EN · 原文
While signed distance also performs well on synthetic data, it performs substantially poorer on real-life datasets.
CN · 翻译
符号距离在合成数据上表现也不错,但在真实数据集上
明显更差。
EN · 原文
We argue that this is a consequence of the fact that when using signed distance, low values of certain attributes automatically compensate for high values of other attributes, such that anomaly detection is reduced to counting the total attribute value sum, which is too simplistic in practice.
CN · 翻译
我们认为,这是因为使用符号距离时,某些属性的低值会自动抵消另一些属性的高值,使异常检测退化为「统计属性值总和」——这在实践中过于简单。
关键词 Keywords:Anomaly Detection 异常检测 | Monotonicity 单调性 | Distance Measures 距离度量 | Semi-Supervised Learning 半监督学习
四、引言精选(为什么这个问题重要)
① 半监督异常检测的设定
EN · 原文
A defining characteristic of semi-supervised anomaly detection (also known as one-class classification [22]) is that the training set only contains normal records, but that we still want to create a model that can distinguish between normal records and anomalies.
CN · 翻译
半监督异常检测(又称单类分类 [22])的一个核心特点是:训练集里
只有正常样本,但我们仍要构建一个能区分正常样本与异常样本的模型。
EN · 原文
Potential reasons for working in this setting include not wanting to assume that the available examples of anomalies are representative of all anomalies, and wanting to flag all new records that deviate from normal data as potential anomalies.
CN · 翻译
采用这种设定的原因包括:不想假设手头的异常样本能代表所有异常,以及希望把所有偏离正常数据的记录都标记为潜在异常。
EN · 原文
Examples of application domains of anomality detection include failure detection in industrial settings and screening patients in healthcare.
CN · 翻译
异常检测的应用领域包括工业场景中的
故障检测与医疗场景中的
患者筛查。(「anomality」为原文用词,照抄不改)
EN · 原文
In the present paper, we are specifically concerned with quantitative tabular data, where the training set consists of a representative sample of a certain normal target class.
CN · 翻译
本文特别关注
定量表格数据:训练集是某个正常目标类的代表性样本。
EN · 原文
In this context, all semi-supervised anomaly detection algorithms are necessarily based on the principle that anomality increases with distance away from the normal training data in the feature space.
CN · 翻译
在此背景下,所有半监督异常检测算法都必然基于这样的原理:
在特征空间中离正常训练数据越远,异常程度越高。
② 单调异常检测:只关心「高值」异常
EN · 原文
In this paper, we consider how best to deal with the knowledge that only relatively high values of an attribute should be indicative of anomality, not relatively low values (or vice-versa).
CN · 翻译
本文研究如何最好地利用这样一类领域知识:
只有某个属性的相对高值才预示异常,相对低值则不(反之亦然)。
EN · 原文
For instance, certain attributes may correspond to higher strain of a machine, or encode known risk factors for patients.
CN · 翻译
例如,某些属性可能对应机器的
更高应力,或编码患者的
已知风险因素。
EN · 原文
In such cases, we may only be interested in detecting anomalies that express high strain, or high risk factors, i.e., machine failure and at-risk patients, rather than underutilisation and exceptionally healthy patients.
CN · 翻译
在这种情况下,我们只关心检测「高应力」或「高风险因素」的异常,即
机器故障与
有风险的患者,而不是设备闲置与异常健康的患者。
EN · 原文
We call this setting monotonic anomaly detection, because our domain knowledge places a monotonicity constraint on certain attributes and the prediction.
CN · 翻译
我们把这种设定称为
单调异常检测,因为领域知识对某些属性与预测结果施加了单调性约束。
EN · 原文
Alternatively, we may think of this as directional anomaly detection, because the goal is to detect anomalies that lie in a certain direction from the normal data in the attribute space.
CN · 翻译
也可以把它理解为
方向性异常检测:目标是检测属性空间中位于正常数据某一方向上的异常。
③ 普通算法的毛病:低值也被当成异常
EN · 原文
When applied to such a monotonic anomaly detection problem, an ordinary anomaly detection algorithm will needlessly flag records that represent underutilisation or exceptionally healthy patients.
CN · 翻译
把它应用到单调异常检测问题上时,普通异常检测算法会
无谓地把「设备闲置」或「异常健康」的记录也标记为异常。
EN · 原文
Existing anomaly detection algorithms will flag any record that deviates sufficiently from the normal records, due to a combination of relatively high values for some attributes and relatively low values for others.
CN · 翻译
现有算法会标记任何偏离正常记录足够远的记录——只要它是「某些属性偏高、另一些属性偏低」的组合。
EN · 原文
This is problematic if we believe that relatively low values should not be indicative of anomality.
CN · 翻译
如果我们认为相对低值不应预示异常,这就成问题了。
EN · 原文
Consequently, we propose that a correct use of monotonic domain knowledge requires that we adapt existing algorithms by modifying the contribution of individual attribute values to the anomaly score.
CN · 翻译
因此,我们提出:要正确利用单调领域知识,就必须改造现有算法,
修改单个属性值对异常分数的贡献方式。
EN · 原文
Specifically, we have to ask what the contribution of a relatively low attribute value of a test record should be.
CN · 翻译
具体而言,我们得先回答:一条测试记录的相对低值,到底应该贡献什么?
④ 低值的三种解读
EN · 原文
Logically, there are three possibilities: relatively low attribute values can be interpreted as positive evidence of anomality, as negative evidence against anomality, and as neither positive nor negative evidence.
CN · 翻译
逻辑上有三种可能:相对低值可以被解读为异常的
正证据、异常的
反证,或
既不正也不反。
EN · 原文
The first of these three alternatives corresponds to ordinary anomality detection, because it makes no difference between relatively low and relatively high attribute values — both are treated as positive evidence of anomality.
CN · 翻译
第一种就是普通异常检测——它对低值和高值一视同仁,都当作异常的正证据。
EN · 原文
In contrast, the second and third option represent two alternative monotonic approaches, because they treat low and high attribute values differently.
CN · 翻译
相比之下,第二、三种对应两种单调方案,因为它们对低值和高值区别对待。
⑤ 为什么选这四种距离算法
EN · 原文
In the present paper, we investigate how distance-based algorithms can be modified for monotonic anomaly detection.
CN · 翻译
本文研究如何改造
基于距离的算法,使其适用于单调异常检测。
EN · 原文
Specifically, we will consider Centre Distance (CD), Nearest Neighbour Distance (NND), Local Outlier Factor (LOF) and Average Localised Proximity (ALP).
CN · 翻译
具体来说,我们考察中心距离(CD)、最近邻距离(NND)、局部离群因子(LOF)与平均局部邻近度(ALP)。
EN · 原文
The reason for focusing on these algorithms is twofold.
EN · 原文
Firstly, they are all based on the distance between records, and we can make them monotonic by choosing an appropriate asymmetric distance measure.
CN · 翻译
其一,它们都基于记录之间的距离,我们可以通过选择合适的不对称距离度量使其具备单调性。
EN · 原文
Secondly, these are some of the best-performing algorithms in the literature.
CN · 翻译
其二,它们是文献中性能最好的算法之一。
EN · 原文
In Section 2, we briefly mention some related work, and in Section 3 we describe the CD, NND, LOF and ALP algorithms.
CN · 翻译
第 2 节简要介绍相关工作,第 3 节描述 CD、NND、LOF 与 ALP 四种算法。
EN · 原文
Next, we present our proposed asymmetric distance measures that enable directional anomaly detection in Section 4.
CN · 翻译
接下来,第 4 节给出我们提出的、支持方向性异常检测的不对称距离度量。
EN · 原文
Finally, we describe our experimental setup in Section 5 and present the results in Section 6, before concluding in Section 7.
CN · 翻译
最后,第 5 节描述实验设置,第 6 节给出结果,第 7 节总结全文。
五、论文贡献(4 个要点)
EN · 原文
1. Two asymmetric distance measures. We present two asymmetrical distance measures that take this monotonicity into account: ramp distance and signed distance.
CN · 翻译
1. 两种不对称距离度量。提出斜坡距离与符号距离——把单调性直接编码进距离函数。
EN · 原文
2. Four distance-based detectors. Specifically, we will consider Centre Distance (CD), Nearest Neighbour Distance (NND), Local Outlier Factor (LOF) and Average Localised Proximity (ALP).
CN · 翻译
2. 四种距离型检测器适配。在 CD、NND、LOF 与 ALP 四种经典算法上验证单调化改造。
EN · 原文
3. Strong baselines. In an experimental evaluation across 246 semi-supervised anomaly detection problems [12], ALP, NND and LOF placed first, third and fourth.
CN · 翻译
3. 强基线的选择依据。在覆盖
246 个半监督异常检测问题的实验评估 [12] 中,ALP、NND、LOF 分别位列第一、第三、第四——选它们做基线有据可依。
EN · 原文
4. Three interpretations of low values. Logically, there are three possibilities: relatively low attribute values can be interpreted as positive evidence of anomality, as negative evidence against anomality, and as neither positive nor negative evidence.
CN · 翻译
4. 低值的三种解读。低属性值可以被当作异常的正证据、反证,或中性——两种新距离正是对应后两种选择。
六、结论中英对照
EN · 原文
In this paper, we have introduced monotonic anomaly detection, a new problem setting that incorporates the domain knowledge that only high (or only low) values of certain attributes are indicative of anomality (and which can therefore be viewed as risk factors). We have shown that distance-based anomaly detectors can take this monotonicity into account by using an asymmetric distance function.
CN · 翻译
本文引入了
单调异常检测这一新问题设定:它纳入「只有某些属性的高值(或只有低值)才预示异常」的领域知识(因此这些属性可视为风险因素)。我们证明,基于距离的异常检测器可以通过使用不对称距离函数来体现这种单调性。
EN · 原文
The difference between these two variants corresponds to a choice in how a practitioner wants to interpret a relatively low value of a given attribute. With ramp distance, such low values are simply discounted, whereas with signed distance, they contribute negative evidence against anomality. Both variants contrast with absolute distance, the non-monotonic baseline wherein such low values contribute positive evidence for anomality.
CN · 翻译
两种变体的区别,对应实践者想如何解读某个属性的相对低值:斜坡距离直接
忽略低值;符号距离让低值贡献
反证;两者都不同于绝对距离——非单调的基线,其中低值贡献异常的正证据。
EN · 原文
However, because signed distance lets low values of some attributes compensate for high values of other attributes, the precise distribution of the attribute values becomes irrelevant, and anomality is purely determined on the basis of the total attribute value sum. This makes signed distance fundamentally incompatible with nearest neighbour algorithms, which are based on the premise that the normal data class is characterised by a specific distribution of attribute values.
CN · 翻译
然而,由于符号距离会让某些属性的低值抵消另一些属性的高值,属性值的具体分布变得无关紧要,异常程度纯粹由
属性值总和决定。这使得符号距离与最近邻算法
从根本上不兼容——后者预设正常类由特定的属性值分布来刻画。
EN · 原文
On the idealised synthetic datasets, the simple CD algorithm performed about as well as the nearest neighbour algorithms, and signed distance achieved slightly higher performance than ramp distance. However, on the more complex real-life datasets, the nearest neighbour algorithms with ramp distance outperformed CD with signed distance. Therefore, ramp distance is the preferred monotonic variant.
CN · 翻译
在理想化的合成数据上,简单的 CD 算法与最近邻算法表现相当,符号距离略优于斜坡距离;但在更复杂的真实数据上,
使用斜坡距离的最近邻算法胜过使用符号距离的 CD 算法。因此,
斜坡距离是更推荐的单调变体。
EN · 原文
When comparing ramp distance with absolute distance, which corresponds to ordinary anomaly detection, we found that on both synthetic and real-life datasets, ramp distance performs significantly better. We conclude that practitioners faced with a monotonic anomaly detection problem — where they know that only higher values of certain attributes are indicative of anomality — should use a nearest neighbour algorithm that uses ramp distance for monotonic attributes, for two reasons. Firstly, because the resulting model aligns better with the domain knowledge of the practitioner. And secondly, because it is likely to lead to higher anomaly detection performance.
CN · 翻译
与对应普通异常检测的绝对距离相比,斜坡距离在合成与真实数据集上都
显著更好。结论是:面对单调异常检测问题(已知只有某些属性的高值预示异常)时,实践者应使用「对单调属性采用斜坡距离」的最近邻算法——第一,模型与领域知识更契合;第二,更可能带来更高的异常检测性能。
EN · 原文
Finally, we note that there are other types of anomaly detection algorithms, like the Support Vector Machine (SVM) and the Isolation Forest (IF), which should also be adapted for monotonic anomaly detection.
CN · 翻译
最后,我们指出还有其它类型的异常检测算法——如支持向量机(SVM)与孤立森林(IF)——也应针对单调异常检测加以改造。
EN · 原文
Datasets and the code to reproduce our experiments are available at https://liacs.leidenuniv.nl/~lenzou/code/lenz-2025-monotonic.tar.gz.
CN · 翻译
复现实验所需的数据集与代码已公开:https://liacs.leidenuniv.nl/~lenzou/code/lenz-2025-monotonic.tar.gz
「anomality」为原文自创用词,照抄未改;数字(246、k=8)与链接原样保留。
七、编者解读:这篇论文到底讲了什么(大白话版)
- 问题:有些场景下只有「属性值偏高」才算异常——机器应力过高、患者风险因素超标。普通异常检测算法会把「过低」也当异常,于是误报一堆「闲置设备」「健康过头」的记录。
- 做法:不改算法整体,只改「距离怎么算」:斜坡距离让低值零贡献(忽略),符号距离让低值算反证(拉低分数)。于是四种经典距离算法(CD、NND、LOF、ALP)都能「只看单侧」。
- 结果:246 个半监督异常检测问题 + 合成/真实数据集上验证:斜坡距离明显好于绝对距离;符号距离在真实数据上翻车——因为低值抵消高值后,检测退化成「数总和」,太粗糙。
- 最值钱的观点:领域知识应该「编码进距离函数」而不是事后过滤;更难得的是作者主动解释了符号距离为什么失败——这种自我否定式分析正是科研成熟度的体现。
- 工程意义:工业故障检测、医疗筛查这类「单侧异常」场景可直接套用;代码与数据集全部公开,可以下载复现。
🎯 对保研的启示:这篇论文是完整的科研叙事范本:定义新问题(单调异常检测)→提出方法(两种距离)→实验验证→诚实解释失败→给出落地建议。复试时能讲清「我的方法在什么情况下有效、什么时候失效、为什么」的人,比只会堆模型名词的人更能打动导师。
八、给准大一的阅读路线图 & 延伸方向
📖 怎么读这篇论文(三遍法)
- 第一遍(10 分钟):只读摘要和术语表,回答三问:新问题是什么?两种距离怎么区分?结论推荐哪个?
- 第二遍(20 分钟):读引言第②③④小节与结论,重点体会「低值的三种解读」这个思想实验,以及符号距离失败的原因分析。
- 第三遍(30 分钟):读引言第⑤小节与结论第 4、5 段,跳过公式;尝试用自己的话解释「为什么最近邻算法与符号距离不兼容」。
🚀 这个方向你能延伸做什么
- 现在就能做:下载论文公开的数据与代码,跑一遍 ramp vs absolute 的对比实验,画出 AUROC 曲线。
- 大一→大二:学好概率论与数理统计——异常检测本质是「密度估计」;数学建模竞赛中异常检测是常客。
- 大二→大三:方向可扩展为无监督/自监督异常检测、时间序列异常检测、工业 AI 与医疗 AI;国内可关注《计算机学报》与 KDD/ICML 相关论文。
九、英文摘要朗读(练听力用)
先盲听一遍→再看对照稿→再听一遍。目标:听出数字(246 个问题)与术语(ramp distance、signed distance、absolute distance、AUROC)。