Do Causal-Inspired Optimizers Improve Optimization Quality and Consistency? A Negative Result in Software Optimization
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
Related papers
ImReq: An LLM-Powered Tool for Assessing and Improving Software Requirements Quality
Shared title terminologycs.SEThanakorn Inthongsuk, Pantaree Balee, Jaosub Pongthawechai et al.
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma
A Causal Loop Diagram supporting tool to bridge System Thinking and Software Engineering
Shared title terminologycs.SEThiago Felippe Neitzke Lahass, Júlia de Souza Borges, Amanda B. Apolinário et al.
From Software Factory to Solution Factory: Bounded, Human-Gated Recursive Self-Improvement of an LLM Agent Pipeline Across Projects
Shared title terminologycs.SEQiyu Zhang
Analyzing and Clarifying Software Change Intentions via Project Asset Dependency Mining
Shared title terminologycs.SEYingtao Fang, Zhi Jin, Tiankuo Zhao et al.
Tracing Decisions to Value: Measuring What People Contribute When Agents Build Software
Shared title terminologycs.SEShyam Agarwal, Hideaki Hata, Andrew Macvean et al.