When a microservice system fails, the strongest root-cause methods rely on a causal graph learned in advance from normal traffic. That graph is only partially directed. Many edges say "A and B are causally linked" without saying which one drives the other, and every unresolved edge widens the set of candidate explanations a method must weigh once failure data arrives. Metric streams carry a cue those methods discard, which is time order: when A drives B, A's fluctuations tend to show up in B a few seconds later. A sequence model that attends over past timestamps can read that lead-lag pattern and point the undirected edges. The difficulty is choosing which sequence model to trust. Failures are rare, so there are almost never enough labeled incidents to pick an architecture by root-cause accuracy, and the usual stand-in, forecasting error, measures something else.
This note proposes using the partial graph to grade its own helper. Some edges in the offline graph are already directed by the discovery algorithm, because they take part in "collider" patterns (A → C ← B) whose direction is forced by the data. Those edges are free orientation labels. We search over temporal encoders, from plain lagged regressions up to attention models, using a short training budget. Each candidate is scored by how well its lead-lag judgments recover the already-directed edges. The winner then orients only the edges the graph left undirected. The more completely directed graph is handed to existing root-cause methods (RCG and Bayesian Root Cause Discovery). In short, the graph supplies labels for choosing the temporal model, and the temporal model sharpens the graph.
Core Claim
Two parts of the existing toolkit are complementary, and nobody has joined them. Partial-structure root-cause analysis, in RCG (Root Cause Analysis of Failures from Partial Causal Structures) and BRCD (Root Cause Analysis of Failures in Microservices via Bayesian Root Cause Discovery), learns a CPDAG offline. A CPDAG, or completed partially directed acyclic graph, is the summary of every causal graph consistent with the observed independencies. These methods use the CPDAG as an unordered snapshot. Temporal methods such as RUN (Root Cause Analysis in Microservice Using Neural Granger Causal Discovery) learn lead-lag attention over all metric pairs with one hand-fixed backbone, and they discard independence structure entirely.
We claim three things. First, temporal orientation should be restricted to the CPDAG's undirected edges. Second, the CPDAG's compelled edges give a label-free criterion for choosing the temporal model that is far better aligned with downstream root-cause accuracy than forecasting loss or vision-derived zero-cost proxies. Third, this selection can run within a few GPU-hours.
Concretely, for a candidate encoder $a$, let $\Delta^a_{ij}$ be its directional asymmetry for the pair $(i,j)$: how much adding $i$'s history improves the prediction of $j$, minus the reverse. Let $C$ be the set of compelled edges $i \to j$ in the offline CPDAG. The selection score is
$$S(a) = \frac{1}{|C|}\sum_{(i \to j) \in C} \mathbf{1}\left[\Delta^a_{ij} > \tau\right],$$
where $\tau \ge 0$ is a margin, tuned once on synthetic data, below which the encoder abstains. In this proposal, "architecture search" means ranking encoders by $S(a)$ after a budgeted training run. Our test of the search's value is whether that ranking predicts final root-cause accuracy.
Research Program
The pipeline has four stages.
The offline stage runs C-PC / $k$-PC on normal-operation metrics, as in RCG, to obtain a CPDAG. It records which edges are compelled and which are reversible.
The search stage trains each candidate encoder on normal data for a fixed short budget. Budgeted estimation, from Rethinking Performance Estimation in Neural Architecture Search, showed that what matters for search is preserving the rank order of candidates rather than their absolute accuracy, and that cheap training settings can preserve that order. We adopt that logic and test it rather than assume it. The search space deliberately spans simple and complex models. It includes per-edge lagged linear Granger tests and lagged conditional mutual information. It includes RUN's DLinear-plus-attention-matrix design. It also includes compact decomposed models in the style of SSCNN (Parsimony or Capability? Decomposition Delivers Both in Long-term Time Series Forecasting), whose small temporal attention modules choose which past lags matter. Finally, it includes single-query attention bottlenecks like EVEREST (EVEREST: A Transformer for Probabilistic Rare-Event Anomaly Detection with Evidential and Tail-Aware Uncertainty), whose design keeps weak precursor signals from being diluted. Across these families the search varies lookback length, the number of heads, and whether periodic components are removed. That last option guards against RUN's "periodicity trap", in which normal periodic peaks are mistaken for causal or anomalous events. Because the simple tests are in the space, the search can conclude that attention is unnecessary.
The orientation stage applies the top-ranked encoder to the reversible edges only. It adds an orientation when $|\Delta_{ij}|$ exceeds $\tau$, propagates the consequences with the standard orientation-closure rules, and rejects any orientation that would create a cycle or contradict a compelled edge.
The diagnosis stage feeds the resulting graph to the existing methods. RCG receives the more directed graph directly. BRCD receives a weighted prior over DAGs in the equivalence class, with each DAG weighted by the encoder's orientation confidence. This keeps BRCD's Bayesian update over interventional equivalence classes intact but concentrates its mass.
The analysis question is whether the compelled-edge score is a trustworthy stand-in. It can fail in two ways, and we test both. Compelled edges may differ systematically from reversible ones, for example by sitting closer to hub services or carrying longer lags, so a high score may not transfer. Compelled edges may also be wrong, since $k$-PC errors grow in finite samples. We measure both on synthetic systems where the truth is known. A third risk is physical: if most causal effects arrive within one metric sampling interval, no temporal model can orient them. We will report the fraction of true edges with a detectable lag on each benchmark, so that a null result can be attributed correctly.
Baselines
The naive reference point is ranking services by marginal anomaly strength (z-score deviation from baseline) and by raw mutual information with the failure indicator, run on the same windows. RCG's real-outage study already reports that it beat MI and BARO by localizing three of four incidents within the top five (Root Cause Analysis of Failure with Observational Causal Discovery). This baseline tells us how much any graph structure buys.
The strongest existing competitors are RCG and BRCD run on the unaugmented CPDAG. They are the right comparison because our method is exactly these methods plus a better-oriented graph, so any gain is attributable to orientation. For RCG on Sock-shop with 100 nodes, Root Cause Analysis of Failures from Partial Causal Structures reports 87% top-1 accuracy against 78% for RCD. The companion paper Root Cause Analysis of Failure with Observational Causal Discovery reports 56% top-1 for RCG-2 against 43% for RCD, and up to 65% when the essential graph is accurate. The two papers evidently use different settings, so we will reproduce both configurations rather than pick the favorable number. The 56%-to-65% gap is the direct motivation for this work: it shows that graph quality, not the search procedure, is the bottleneck. For BRCD, no reported numeric result was found on Lacuna for Sock-shop, Online Boutique, or Petshop, so we will run its released method ourselves. Both baselines will use the identical offline CPDAG, the same $k$, and the same anomalous windows as our method, including five-sample failure cases on Petshop.
RUN is the strongest temporal competitor. It orients all pairs by learned lead-lag with a fixed architecture. Its paper reports only relative gains (63% on CPU hog and 80% on memory leak over prior baselines on Sock-shop), so we will rerun it under our data splits. To beat it, our method must achieve higher top-1 and top-3 accuracy on the same faults.
To isolate the key ingredient, the selection criterion, we hold the search space and budget fixed and swap only the rule that picks the encoder. The alternatives are lowest validation forecasting error, random choice, RUN's default DLinear, and the evolved zero-cost proxy EZNAS-A (EZNAS: Evolving Zero-Cost Proxies For Neural Architecture Scoring). EZNAS-A reached a Kendall tau of 0.65 on NAS-Bench-201 for CIFAR-10, but it was never evaluated on temporal models. A second ablation removes the CPDAG restriction and lets the chosen encoder orient every pair. A third replaces the encoder with oracle orientations of the reversible edges, which gives the ceiling. Our method beats the strongest baseline if it closes a meaningful share of the gap between RCG on the plain CPDAG and RCG on the oracle DAG, at fixed failure samples, with search cost reported in GPU-hours.
Why not just…?
Why not just use RUN, which already does temporal causal attention for root causes? RUN orients every metric pair by predictability. Predictability is exactly where downstream symptoms and common drivers create false arrows, and RUN ignores the independence structure that rules many pairs out. The unrestricted-orientation ablation tests this directly. If orienting all pairs matches orienting only the CPDAG's reversible edges, the restriction adds nothing, and we will say so.
Why not just pick the encoder by forecasting error on normal data? This is the cheapest default, and it might work. Forecasting error rewards a model for predicting each series well, including through periodic and shared components, and that is the behavior that produces RUN's periodicity trap. It does not reward correct asymmetry. The selection-criterion ablation settles the question by comparing the rank correlation between each criterion and downstream top-1 accuracy across all candidates. If forecasting error correlates as well as the compelled-edge score, the score is unnecessary.
Why not just orient the reversible edges with a lagged linear Granger or lagged CMI test, with no search and no attention? This is the real threat. On telecom alarms, the linear S2GCSL model reached F1 0.40 against 0.08 to 0.29 for heavier competitors (A Simple yet Scalable Granger Causal Structural Learning Approach for Topological Event Sequences). Rather than argue against it, we put these tests inside the search space. If they consistently win the selection, the contribution reduces to CPDAG-restricted temporal orientation with a self-validating selector, and attention is shown to be unnecessary for this task. That is an acceptable and reportable outcome.
Proposed Experiments
The first experiment uses synthetic temporal causal systems with up to a few hundred nodes. They mix lagged and same-step edges, nonlinear links, and periodic load. This is where the selector itself is validated. For each system we compute the Kendall tau between $S(a)$ and true reversible-edge orientation accuracy, and between $S(a)$ and RCG/BRCD top-1 accuracy, alongside the same correlations for the competing criteria. We sweep the fraction of same-step edges and the $k$-PC sample size, so that the two failure modes of compelled-edge labels can be measured separately. The decisive check is the following. If $S(a)$ does not rank-correlate with downstream accuracy better than forecasting loss when CPDAG errors are realistic, the idea fails.
The second set of experiments uses Sock-shop (CPU hog and memory leak), Online Boutique, and Petshop with five anomalous samples per case. We report top-1, top-3, and top-5 accuracy for RCG and BRCD with and without temporal orientation. We also report the size of the remaining equivalence class, the lag-detectability fraction, and the search cost in GPU-hours. The decisive check here is whether Petshop's low-failure regime benefits, because that is where shrinking BRCD's hypothesis set should matter most.
The third experiment uses the NeurIPS 2023 metropolitan telecom alarm data through the public S2GCSL repository. It tests whether the same selector transfers from continuous metrics to event sequences. Structure quality is scored by F1 and structural Hamming distance against expert ground truth, with S2GCSL's reported F1 of 0.40 as the reference point.
References
- Root Cause Analysis of Failures from Partial Causal Structures
- Root Cause Analysis of Failures in Microservices via Bayesian Root Cause Discovery
- Root Cause Analysis in Microservice Using Neural Granger Causal Discovery
- Rethinking Performance Estimation in Neural Architecture Search
- Parsimony or Capability? Decomposition Delivers Both in Long-term Time Series Forecasting
- EVEREST: A Transformer for Probabilistic Rare-Event Anomaly Detection with Evidential and Tail-Aware Uncertainty
- Root Cause Analysis of Failure with Observational Causal Discovery
- EZNAS: Evolving Zero-Cost Proxies For Neural Architecture Scoring
- A Simple yet Scalable Granger Causal Structural Learning Approach for Topological Event Sequences