Desiree - a Refinement Calculus for Requirements Engineering

Feng-Lin Li, John MylopoulosarXiv 2016

Abstract

Requirements Engineering (RE) is a critical phase in software development, yet it remains plagued by ambiguity and informal processes. This paper presents Desiree, a formal framework designed to systematically transform vague stakeholder requirements into verifiable specifications. Desiree introduces a unified language for functional and non-functional requirements and a set of mathematical operators that support both the strengthening and necessary weakening of requirements. Evaluation against the PROMISE dataset and human-subject experiments demonstrate that Desiree significantly improves the identification of requirement flaws compared to traditional methods.

Introduction

The failure of many software projects can be traced back to poor Requirements Engineering. Stakeholders often express needs in natural language, which is inherently ambiguous and frequently contains impossible constraints (e.g., "the system must never fail"). While Goal-Oriented Requirements Engineering (GORE) frameworks like KAOS or i* provide structure, they often struggle with non-functional requirements (NFRs), lack a unified syntax for dependencies, and provide no formal mechanism for relaxing overly ambitious goals.

The Desiree Framework

Desiree addresses these gaps through four integrated components:

1. Ontological Foundation

Based on the Unified Foundational Ontology (UFO), Desiree distinguishes between Functional Requirements (FRs), which refer to system capabilities or functions, and Non-Functional Requirements (NFRs), which refer to measurable qualities.

2. Description-Based Language

Desiree employs a "slot-description" syntax inspired by Description Logics. This allows engineers to explicitly link qualities to specific functions. For instance, "Processing Time" can be directly associated with a "Search" function, creating a clear dependency graph.

3. Requirements Operators

The framework provides eight operators for iterative refinement. Beyond standard decomposition, Desiree introduces:

  • Scale: Adjusts the intensity of a quality (e.g., refining "fast" to a specific millisecond range).
  • De-Universalize: Relaxes strict universal quantifiers (e.g., changing "100% uptime" to "99.9% uptime") to ensure technical and economic feasibility.

4. Automated Reasoning

An Eclipse-based prototype translates Desiree specifications into OWL2 Description Logic. This enables the use of off-the-shelf AI reasoners to check for logical inconsistencies and perform impact analysis during requirement evolution.

Empirical Evaluation

The framework was evaluated using the PROMISE Requirements Dataset, comprising 625 real-world requirements. Desiree successfully modeled the entire dataset, demonstrating high expressiveness across diverse project types.

Furthermore, controlled experiments with graduate students and engineers compared Desiree against traditional IEEE 830 guidelines. Participants using Desiree identified 36.75% of seeded requirement issues (such as ambiguities and unsatisfiability), compared to 25.89% in the control group. This statistically significant improvement suggests that the structured nature of Desiree forces a more rigorous analysis of stakeholder input.

Key Insights

  • NFRs as Quality Requirements: The paper challenges the assumption that NFRs are inherently vague "softgoals." By redefining them as measurable qualities, they can be systematically quantified.
  • The Necessity of Weakening: Stakeholders frequently use dangerous universal quantifiers. Desiree formalizes the process of relaxing these constraints to make specifications economically and technically feasible.
  • Graded Membership: To handle vague quality regions (like "low cost"), the framework adapts prototype theory, allowing for a "graded membership" (percentage of satisfaction) rather than a rigid pass/fail.

Conclusion and Future Work

Desiree provides a robust mathematical foundation for RE, bridging the gap between informal needs and formal specifications. While the framework currently faces a steep learning curve, future work aims to use natural language processing to automatically extract initial Desiree models from user feedback, lowering the barrier to entry for practitioners.

Summary updated

BibTeX
@misc{li2016desiree,
  author = {Feng-Lin Li and John Mylopoulos},
  title = {{Desiree - a Refinement Calculus for Requirements Engineering}},
  year = {2016},
  eprint = {1604.03184},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1604.03184},
}
Figure