Skip to content

Do Causal-Inspired Optimizers Improve Optimization Quality and Consistency? A Negative Result in Software Optimization

Amirali Rayegan, Lunxiao Li, Tim Menzies

cs.SE

Abstract

Software maintenance and evolution increasingly rely on data-driven optimization models to guide decisions, improve performance and identify actionable changes. Many models rely on statistical correlations that may be unstable under small changes in training data. As seen in prior work on the EZR tool, this instability can produce inconsistent recommendations and explanations, raising concerns about their reliability in evolving software systems. For maintainers unstable optimization models undermine trust and may fail to generalize across software releases. Potentially causal reasoning offers a remedy by distinguishing meaningful relationships from spurious associations, but whether its additional complexity improves optimization outcomes remains unclear. For testing, we tried to improve EZR's instabilities with conditional-dependence-based confounder filtering (CF) and an alternative causal-inspired tree-building workflow (CS). We compare 4 treatments across 127 MOOT datasets, 4 labeling budgets and 20 repeated runs, measuring optimization error, run-to-run variation and runtime. The causal-extended workflow requires 7.4-11.9 times EZR's aggregate runtime across the evaluated budgets. Contrary to our expectations, CF usually leaves reported outcomes unchanged and more often worsens than improves the remaining cases. CS produces broader but heterogeneous effects, with more favorable outcomes on datasets containing categorical features. Hence we say that is a mistake to assume that additional analytical complexity yields more dependable recommendations. For example as shown, causality is not always the solution to analytics problems and it should be assessed before adoption. For software evolution and maintenance the results emphasize assessing recommendation quality, stability, applicability and computational cost. Replication package publicly available at tinyurl.com/causal-workflow

Create a lesson