Research Papers 论文研究 5h ago Updated 1h ago 更新于 1小时前 43

RankShift: In-Database Detection and Explanation of Categorical Shifts RankShift:数据库内分类偏移的检测与解释

RankShift is a novel in-database anomaly detection method that identifies categorical shifts—changes in category distribution—without requiring model training or inference services The approach uses a Pearson score to compare each sliding window's category shares against a benign reference, with individual score terms pinpointing which categories drive the detected shift Evaluated on HDFS, BGL, and Thunderbird datasets, RankShift matches count-vector autoencoders on HDFS (0.999 vs 1.000 AUROC) a RankShift是一种在分析数据库内部直接检测类别偏移的方法,能够识别事件类别分布变化而无需依赖事件总数变化 该方法使用皮尔逊分数将每个时间窗口的类别份额与良性参考基线进行比较,可同时返回检测分数、校准警报和最大贡献类别 在HDFS、BGL和Thunderbird三个数据集上验证,HDFS上AUROC达0.999(与计数向量自编码器相当),Thunderbird上达0.983(优于自编码器的0.949) RankShift无需模型训练或推理服务,部署状态仅为自编码器的1/137,在固定体积实验中能检测事件计数监控无法发现的稀有类别偏移

55
Hot 热度
72
Quality 质量
58
Impact 影响力

Analysis 深度分析

TL;DR

  • RankShift is a novel in-database anomaly detection method that identifies categorical shifts—changes in category distribution—without requiring model training or inference services
  • The approach uses a Pearson score to compare each sliding window's category shares against a benign reference, with individual score terms pinpointing which categories drive the detected shift
  • Evaluated on HDFS, BGL, and Thunderbird datasets, RankShift matches count-vector autoencoders on HDFS (0.999 vs 1.000 AUROC) and outperforms them on Thunderbird (0.983 vs 0.949 AUROC)
  • In controlled fixed-volume experiments, RankShift detects rare-category shifts invisible to event-count monitoring, achieving 0.787 AUROC compared to 0.771 for the autoencoder baseline
  • The deployed autoencoder state is 137x larger than RankShift's, and false-alarm rates across all corpora closely track requested operating levels

Why It Matters

RankShift addresses a critical blind spot in anomaly detection: events that change category composition without altering overall volume, which are common in real-world systems like login services and log pipelines. By operating directly inside the analytical database, it eliminates the need for separate model training and inference infrastructure, significantly reducing operational complexity and resource overhead for practitioners deploying monitoring systems at scale.

Technical Details

  • Core methodology: RankShift computes a Pearson correlation-based score comparing per-window category shares to a benign reference distribution; each term in the score identifies specific categories responsible for the deviation
  • In-database execution: The entire detection pipeline runs as a single SQL query that returns the anomaly score, a calibrated alert threshold, and the largest increasing contributions—no external model serving required
  • Benchmarks: Evaluated on three real-world log datasets—HDFS (Hadoop Distributed File System), BGL (Blue Gene/L supercomputer), and Thunderbird (email client)—with AUROC metrics
  • Baseline comparison: Compared against a count-vector autoencoder, RankShift achieves near-parity on HDFS (0.999 vs 1.000), superior performance on Thunderbird (0.983 vs 0.949), and better detection of rare-category shifts in fixed-volume experiments (0.787 vs 0.771)
  • Operational efficiency: RankShift requires no training phase, no inference service, and maintains a deployed footprint 137x smaller than autoencoder-based approaches, while false-alarm rates track requested operating levels across all tested corpora

Industry Insight

  • Organizations relying on volume-based anomaly detection may be missing significant security and operational threats that manifest as distributional shifts rather than count changes; RankShift's approach should be considered for log monitoring, authentication systems, and any pipeline where category composition matters
  • The in-database design pattern demonstrated here—pushing detection logic into the analytical store—offers a compelling alternative to extract-transform-monitor architectures, reducing latency, infrastructure cost, and deployment complexity for real-time anomaly detection
  • For teams managing large-scale distributed systems, the 137x reduction in deployed state compared to autoencoder-based solutions represents a meaningful operational advantage, particularly in resource-constrained or highly regulated environments where model serving overhead is a concern

TL;DR

  • RankShift是一种在分析数据库内部直接检测类别偏移的方法,能够识别事件类别分布变化而无需依赖事件总数变化
  • 该方法使用皮尔逊分数将每个时间窗口的类别份额与良性参考基线进行比较,可同时返回检测分数、校准警报和最大贡献类别
  • 在HDFS、BGL和Thunderbird三个数据集上验证,HDFS上AUROC达0.999(与计数向量自编码器相当),Thunderbird上达0.983(优于自编码器的0.949)
  • RankShift无需模型训练或推理服务,部署状态仅为自编码器的1/137,在固定体积实验中能检测事件计数监控无法发现的稀有类别偏移

为什么值得看

RankShift解决了传统异常检测方法无法识别的"类别偏移"问题——事件总数不变但分布改变的情况,填补了运维监控的重要盲区。对于日志分析和系统监控从业者,该方法提供了无需额外模型部署的轻量级解决方案,显著降低运维复杂性和资源开销。

技术解析

  • 核心方法:在分析数据库内部直接执行查询,使用皮尔逊分数比较每个时间窗口的类别份额与良性参考基线,分数项可识别导致变化的具体类别,同一查询返回分数、校准警报和最大贡献类别
  • 评估基准:在HDFS、BGL和Thunderbird三个真实数据集上测试,HDFS上AUROC达0.999(与计数向量自编码器0.999相当),Thunderbird上达0.983(优于自编码器的0.949)
  • 关键优势:无需模型训练或推理服务,部署状态仅为自编码器的1/137;在固定体积实验中能检测事件计数监控无法发现的稀有类别偏移,AUROC达0.787(vs 自编码器0.771)
  • 误报控制:三个数据集上的观测误报率均能跟踪请求的操作水平,实现可预测的警报行为

行业启示

  • 类别偏移检测是运维监控的重要盲区,现有方法多依赖事件总数变化,RankShift填补了这一空白,适合登录异常、系统日志等场景
  • 无需额外模型部署的轻量级方案更适合生产环境,降低了运维复杂性和资源开销,避免了自编码器137倍的部署状态负担
  • 在分析数据库内部直接执行检测,避免了数据迁移和额外基础设施需求,适合已有OLAP系统的企业快速落地

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Research 科学研究 Dataset 数据集 Evaluation 评测