Skip to main content
QUICK REVIEW

[论文解读] Prompts Blend Requirements and Solutions: From Intent to Implementation

Shalini Chakraborty, Jan-Philipp Steghöfer|arXiv (Cornell University)|Mar 17, 2026
Software Engineering ResearchComputer Science被引用 0
一句话总结

论文提出了 Prompt Triangle 模型,将提示视为融合的需求与解决方案,在真实提示上进行验证,并概述经验评估的假设与计划,以获得面向需求的提示工程最佳实践。

ABSTRACT

AI coding assistants are reshaping software development by shifting focus from writing code to formulating prompts. In chat-focused approaches such as vibe coding, prompts become the primary arbiter between human intent and executable software. While Requirements Engineering (RE) emphasizes capturing, validating, and evolving requirements, current prompting practices remain informal and adhoc. We argue that prompts should be understood as lightweight, evolving requirement artifacts that blend requirements with solution guidance. We propose a conceptual model decomposing prompts into three interrelated components: Functionality and Quality (the requirement), General Solutions (architectural strategy and technology choices) and Specific Solutions (implementation-level constraints). We assess this model using existing prompts, examining how these components manifest in practice. Based on this model and the initial assessment, we formulate four hypotheses: prompts evolve toward specificity, evolution varies by user characteristics, engineers using prompting engage in increased requirement validation and verification, and progressive prompt refinement yields higher code quality. Our vision is to empirically evaluate these hypotheses through analysis of real-world AI-assisted development, with datasets, corpus analysis, and controlled experiments, ultimately deriving best practices for requirements-aware prompt engineering. By rethinking prompts through the lens of RE, we position prompting not merely as a technical skill, but as a central concern for software engineering's future.

研究动机与目标

  • 将 prompts 重新概念化为轻量、不断演化的需求工件,将意图与解决方案指引相融合。
  • 将 prompts 分解为三个相互关联的组件:功能与质量、通用解决方案和具体解决方案。
  • 利用现有提示数据集和案例示例验证模型,以理解提示组成的模式。
  • 提出关于提示演化、用户特征以及提示精炼与代码质量关系的可检验假设。
  • 提出一个经验计划(语料库分析与受控实验),以推导面向需求的提示工程最佳实践。

提出的方法

  • 提出一个三分结构的 Prompt Triangle,将提示结构化为功能与质量(需求)、通用解决方案(架构选择)和具体解决方案(实现细节)。
  • 使用 DevGPT 数据集及其他提示来验证模型并对提示内容进行分类。
  • 分析提示以量化每个组件的存在与它们的共现模式。
  • 提出关于提示演化、用户体验效应以及验证/确认动态的假设。
  • 概述未来的经验计划,包括语料库构建、分析与受控实验。

实验结果

研究问题

  • RQ1在多轮 AI 辅助编码会话中,具体解决方案、一般解决方案和功能/质量在提示中的演变是如何的?
  • RQ2开发者经验和领域熟悉度如何影响提示中 Prompt Triangle 组件的分布?
  • RQ3迭代提示实践是否比传统开发提高需求验证与确认活动?
  • RQ4渐进式提示精炼(将验证与确认分离)是否改善代码质量并减少需求与实现之间的错位?

主要发现

  • 提示对需求显示出强烈的重视,98.3% 的提示包含功能与质量组件。
  • 三部分模式(全部三个组件)是主导形式,在 64 条提示中占比 53.3%。
  • 通用解决方案出现在 76.7% 的提示中,具体解决方案出现在 63.3% 的提示中。
  • 两组件模式(需求 + 通用)占比 22.5%,支持从“ what 到 how” 的两阶段精炼。
  • 有 16 条提示(13.3%)仅包含需求而不含任何解决方案组件。
  • 总体而言,85% 的提示在需求之外至少包含一个解决方案组件,且仅含解决方案的提示较少(1.7%)。
  • 结果显示用户倾向于先指定意图再约束解决方案,提示驱动的需求与设计推理路径显现。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。