Abstract
Non-functional faults (NFFs), such as performance degradation and excessive energy consumption, are often the result of complex system misconfigurations. Traditional debugging methods rely on correlation-based machine learning, which frequently fails to identify true root causes due to latent confounders. We present CADET (Causal Debugging Toolkit), a framework that leverages causal inference and counterfactual reasoning to diagnose and repair NFFs. CADET builds causal models from minimal observational data, enabling developers to simulate "what-if" scenarios for rapid fault resolution. Our evaluation shows that CADET identifies root causes up to 13x faster than state-of-the-art methods while achieving higher accuracy.
The Challenge of Non-Functional Faults
Modern computing environments involve thousands of configuration parameters across hardware, operating systems, and application layers. Misconfigurations in these settings lead to non-functional faults (NFFs)—issues where the system remains operational but suffers from severe performance or efficiency penalties.
Debugging NFFs is difficult because standard performance models often mistake correlation for causation. For instance, a developer might observe that increasing GPU memory growth correlates with higher latency and conclude that memory should be restricted. However, as shown in Figure 1, a latent confounder like swap memory usage might be the actual driver of latency; accounting for it reveals that increasing GPU memory can actually improve performance.
The CADET Framework
CADET addresses these challenges through a systematic three-phase approach rooted in causal inference.
Phase I: Causal Graph Discovery
CADET begins by collecting a small set of observational data (typically 25 random configurations). It employs the Fast Causal Inference (FCI) algorithm to construct a causal graph. Unlike standard models, CADET uses entropic orientation to determine the direction of causal relationships automatically, mapping how configuration choices propagate through system events to affect final performance metrics.
Phase II: Causal Path Extraction
Once the graph is established, the system identifies the most likely causal paths leading to a detected fault. By backtracking from the affected metric (e.g., high latency) to its configuration "parents," CADET ranks potential root causes using the Average Causal Effect (ACE).
Phase III: Counterfactual Reasoning and Repair
The core innovation of CADET is its use of counterfactual logic. Instead of physical trial-and-error, CADET asks: "Given the observed fault in Configuration A, what would the performance have been if we had used Configuration B?" By calculating the Individual Treatment Effect (ITE), CADET mathematically evaluates thousands of potential repairs, identifying the optimal fix before any changes are deployed.
Experimental Evaluation
The effectiveness of CADET was validated using the Jetson Faults Dataset, encompassing five diverse software systems (Xception, BERT, DeepSpeech, SQLite, and x264) across three NVIDIA Jetson hardware platforms.
Key Results
- Accuracy: CADET demonstrated up to 13% higher accuracy in root cause identification compared to existing tools like BugDoc.
- Performance Gains: Repairs identified by CADET yielded up to 32% better performance improvements than baseline methods.
- Efficiency: The system resolved faults 13x faster than other ML-based debugging approaches and significantly outperformed popular optimization frameworks like SMAC.
- Real-World Impact: In a case study involving an NVIDIA developer forum issue, CADET identified a configuration 14% superior to expert recommendations in just 24 minutes—a process that took human experts two days.
Conclusion
CADET represents a significant shift from black-box optimization to explainable, causal-driven debugging. By simulating repairs through counterfactual reasoning, it provides a fast, accurate, and transparent method for managing the complexity of modern system configurations. Future work will focus on scaling these causal models to multi-fault scenarios and cross-hardware transfer learning.
Summary updated