The Specification Paradox: Rethinking Requirements Engineering in the Age of AI

AI Safety / AI Ethics XAI Other AI Safety AI4SE Other SE AI Systems and Hardware Text-to-Code
大型语言模型(LLMs)在软件工程领域应用日益广泛,进一步强化了一种普遍预期:编码活动在很大程度上可被自动化。然而,这种认知或许不过是人类历史上又一次试图寻找某种“一劳永逸”的解决方案,以期彻底消除软件开发固有的复杂性与挑战。本文探讨了从以代码为中心的范式向“基于规约的开发”(Specification-Driven Development)的范式转变。我们认为,人工智能虽能减轻编写源代码所需的部分工作量,却并未消解构建专业级软件系统所固有的复杂性;相反,它将这种复杂性转移至领域理解、需求获取、规约编制、规约验证、规约维护以及软件演化等环节。基于这一视角,本文重新强调了需求工程(Requirements Engineering)的核心地位,并深入分析其对研发效率与软件质量的影响,同时指出若干伴随自动化而来的风险,包括自动化偏见(automation bias)、歧义传导(ambiguity propagation)、规约过拟合(Specification Overfitting)以及规约债务(Specification Debt)的持续累积。最后,我们提出“规约悖论”(Specification Paradox):人工智能系统自动生成软件的能力越强,人类所产出的规约就越需要具备正确性、完整性、可验证性与可解释性——换言之,对高质量人工规约的依赖程度反而越高。我们最终得出结论:软件工程的未来,不仅取决于机器生成代码的能力,更取决于人类准确界定、有效评估并持续演进待建系统的能力。
The growing adoption of Large Language Models (LLMs) in Software Engineering has reinforced the expectation that coding activities can be largely automated. However, this perception may represent yet another historical search for a solution capable of eliminating the inherent challenges of software development. This article discusses the transition from a code-centered paradigm to Specification-Driven Development. We argue that artificial intelligence reduces some of the effort associated with writing source code, but it does not eliminate the complexity of developing professional software systems. Instead, it shifts this complexity toward domain understanding, requirements elicitation, specification development, validation, maintenance, and software evolution. Building on this perspective, we discuss the renewed centrality of Requirements Engineering, considering its implications for productivity and software quality, as well as risks associated with automation bias, ambiguity propagation, Specification Overfitting, and the accumulation of Specification Debt. Finally, we propose the Specification Paradox: the more capable artificial intelligence systems become at automatically generating software, the greater the dependence on correct, complete, verifiable, and explainable human-produced specifications. We conclude that the future of Software Engineering will depend not only on machines' ability to generate code, but also on humans' ability to correctly specify, evaluate, and evolve what is intended to be built.
许愿