English

STLGT: A Scalable Trace-Based Linear Graph Transformer for Tail Latency Prediction in Microservices

Machine Learning 2026-04-30 v1 Artificial Intelligence

Abstract

Accurate end-to-end tail-latency forecasting is critical for proactive SLO management in microservice systems. However, modeling long-range dependency propagation and non-stationary, bursty workloads while maintaining inference efficiency at scale remains challenging. We present STLGT (Scalable Trace-based Linear Graph Transformer), a per-API predictor that encodes traces as span graphs for multi-step p95 tail-latency forecasting. STLGT uses a structure-aware linear graph Transformer to propagate cross-service dependencies with inference time linear in span graph size, and a decoupled temporal module to capture workload dynamics. Across a personalized education microservice application, DeathStarBench, and Alibaba traces, STLGT improves forecasting accuracy over PERT-GNN by 8.5% MAPE on average and achieves up to 12x faster CPU inference at N=32, matching the maximum span graph size after preprocessing the Alibaba traces. Ablation studies further demonstrate the effectiveness of each component, especially under bursty traffic.

Cite

@article{arxiv.2604.26422,
  title  = {STLGT: A Scalable Trace-Based Linear Graph Transformer for Tail Latency Prediction in Microservices},
  author = {Yongliang Ding and Qigong Bi and Peng Pu},
  journal= {arXiv preprint arXiv:2604.26422},
  year   = {2026}
}

Comments

12 pages, 5 figures, 4 tables, conference

R2 v1 2026-07-01T12:40:47.594Z