Understand Cordon benchmark performance on HDFS v1
mainThe Cordon benchmark on the HDFS v1 dataset (from Loghub) evaluates the system's ability to detect anomalous log patterns, specifically focusing on template recall and rare pattern detection.
Key Performance Drivers:
- Sample Size: This is the most critical factor. Template recall improves significantly as sample size increases (e.g., from 58% at 50k lines to 97% at 5M lines). Stability (measured by Coefficient of Variation) also improves as sample size grows.
- Model Size: Embedding model size (e.g., BGE-large vs. MiniLM) has no significant impact on performance for HDFS logs.
- Parameter Tuning: Adjusting window size (
w) and k-neighbors (k) provides only marginal improvements (~2%) and does not solve instability issues caused by small sample sizes. - Thresholds: Varying the anomaly percentile threshold (
p) affects traditional precision/recall but has minimal impact on template-level metrics.
Recommendation: Cordon is most effective and stable when used with large log files (≥500k lines) where comprehensive sampling is possible.