Skip to content

Chain-Aware Encoding for Microservice Trace Anomaly Detection

Jul 2026 · arXiv.org · Vol abs/2607.10156 · 4 citations · 16 references
Computer Science

TL;DR

This work instantiates CHAINLSTM, a lightweight dual-task LSTM supporting per-event online detection and shows that chain-aware encoding shifts median prediction probability on path anomalies from 0.91 to 0.002, suggesting a wider separation margin for threshold-based detection.

Abstract

Microservice traces can be structurally anomalous even when every span returns normally -- a payment flow that silently skips a risk check looks fine to any per-span monitor. Sequence models like DeepLog address this by predicting the next event, but they treat each API endpoint as a context-free token: the same endpoint reached through different invocation chains is mapped to the same vocabulary entry, even when its normal behavior differs across contexts. We propose encoding each event as an (endpoint, root-to-span invocation chain) pair instead. This simple change has two consequences: unseen chains are flagged without model inference, and next-event predictions become context-conditional, turning subtle path anomalies into clear outliers. We instantiate this idea in CHAINLSTM, a lightweight dual-task LSTM supporting per-event online detection. On the TrainTicket benchmark, CHAINLSTM achieves 94.3% F1 (+5.3 pp over DeepLog) with comparable latency recall and 99.1\% path recall. Case analysis shows that chain-aware encoding shifts median prediction probability on path anomalies from 0.91 to 0.002, suggesting a wider separation margin for threshold-based detection.

View source

Similar papers

Preprint Aug 2026

TELLER: Non-intrusive Cross-Layer Root-Cause Analysis for LLM Inference

TELLER is presented, a non-intrusive Trace- and Log-aware LLM inference Root-cause analysis framework that combines numeric candidate localization with a multimodal root-cause model that jointly predicts abnormal steps, localizes suspicious operators, and generates natural-language explanations.

Ruilin Xu, Junyi Li, Peng-Fei Chen et al. · 1 citation
Preprint Aug 2026

Zero-Instrumentation Dependency Discovery for Guided Microservice Migration Using eBPF

Migrating microservices across virtual machines (VMs) without knowledge of their runtime communication patterns risks creating cross-VM hotspots and latency spikes that are difficult to predict from static analysis alone. We use extended Berkeley Packet Filter (eBPF) kernel-level network tracing to automatically discov...

Eshan Trivedi, Chandrahasa Pranava · 0 citations
Jul 2026

AutoScope: Code Knowledge Enhanced Span-level Sampling for Distributed Tracing

This work proposes AutoScope, a novel framework that leverages static code knowledge to enable structurally safe span-level sampling and introduces the concept of span-level sampling, a fine-grained paradigm that retains only essential spans rather than full traces.

Yu-Lun Wu, Guangba Yu, Zhihan Jiang et al. · 0 citations
Open access Sep 2026

ReliHarness: A Self-Learning Reliability Harness for LLM Agent Tool Execution

ReliHarness is presented, a self-learning dual-channel execution-layer reliability harness framework that instead probes each worker thread at a lower level through two independent checks: heartbeat timeout detection and operating system-level thread liveness detection.

Wen-Zhi Chen, Peng-Han Song, Qi-Chao Lu et al. · 0 citations
Conference Aug 2026

PRECISE: Precision-Driven Discovery of Token-centric MEV

Token-centric maximal extractable value (tMEV) arises when token supply-control behavior interacts with exchanges whose pricing ignores particular balance updates. Existing analyses face state explosion, missing deep inter-transaction paths or producing false positives. PRECISE combines token-level static filtering, fo...

Dinh-Khang Nguyen, Huynh-Nhu Nguyen Thi, Bich-Nhu Hong et al. · 0 citations
Sep 2026

SE4SC-LLM: an LLM-Augmented symbolic execution framework for smart contracts

SE4SC-LLM, an LLM-augmented symbolic execution framework for smart contracts that achieves 95.1% average CFG coverage, a 6.5 percentage point improvement over the strongest baseline, and detects 11.2% more vulnerabilities.

Tian-Huan Miao, Yang Liu · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.