arXiv:2605.02454cs.SEcs.AI2026-05中稿 · FSE 2026 - Ideas, …

用因果推理提升软件工程决策,让系统知道'如果改变会怎样'

Causal Software Engineering: A Vision and Roadmap

  • 以因果模型为核心,重构开发与运维流程
  • 能预测策略变更影响,诊断故障若不发生会如何
  • 适合需要精准决策的高风险系统团队

软件工程面临越来越多高风险决策,需在不确定性下分析代码、运行数据及人因过程信号。现有AI工具(如异常检测、预测分析、AIOps和大模型代理)虽增强模式识别与内容生成能力,但多数关键问题属干预或反事实类型:改变负载均衡策略会产生什么影响?不同发布计划能否避免故障?相关性模型只能回答‘什么常一起出现’,无法回答‘如果行动会怎样’。我们提出因果软件工程(Causal Software Engineering, CSE),作为未来范式,在软件全生命周期中系统性引入因果模型与因果推理,补充现有实践中的显式假设、不确定性感知的效果估计和反事实诊断。本文提出:(i) 覆盖开发与运维的因果优先工作流;(ii) 工具与组织采纳的分阶段路线图;(iii) 评估与基准测试议程,用于衡量进展。

原文摘要 · Abstract (English)

Software engineering increasingly involves making high-stakes decisions under uncertainty, using signals from code, field data, and socio-technical processes. Recent AI-driven support (e.g., anomaly detection, predictive analytics, AIOps, as well as LLM-based agents) has amplified engineers' ability to detect patterns and synthesize content and recommendations, but many critical questions are interventional or counterfactual: What is the expected impact of changing a load-balancing strategy? Would an outage have been avoided under a different release plan? Correlational models answer "what tends to co-occur"; they struggle to answer "what would happen if we act." We propose Causal Software Engineering (CSE) as a future paradigm in which causal models and causal reasoning systematically inform activities across the software lifecycle, augmenting existing practices with explicit assumptions, uncertainty-aware effect estimates, and counterfactual diagnosis. We outline (i) a causal-first workflow view spanning development and operations, (ii) a staged roadmap for tools and organizational adoption, and (iii) an evaluation and benchmark agenda for measuring progress.

因果推断软件工程AIOps决策支持

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。