Abstract
Recent advances in large pretrained models have led to their widespread integration as core components in modern software systems. Unlike traditional software systems governed by deterministic logic, systems powered by pretrained models exhibit distinctive and emergent characteristics, such as ambiguous capability boundaries, context-dependent behavior, and continuous evolution. These properties fundamentally challenge long-standing assumptions in requirements engineering, including functional decomposability and behavioral predictability. This paper investigates this problem and advocates for a rethinking of existing requirements engineering methodologies. We propose a conceptual framework tailored to requirements engineering of pretrained-model-enabled software systems and outline several promising research directions within this framework. This vision helps provide a guide for researchers and practitioners to tackle the emerging challenges in requirements engineering of pretrained-model-enabled systems.
Introduction: The Shift from Deterministic to Emergent Systems
Traditional software engineering is built upon the assumption of predictability. In standard Requirements Engineering (RE), developers define exactly what a system should do before construction begins. However, the rise of pretrained models (PTMs), such as Large Language Models (LLMs), has introduced a paradigm shift. These systems are characterized by "emergent" behaviors that defy traditional functional decomposition.
PTMs break the established rules of RE in three critical ways:
- Ambiguous Boundaries: The full extent of a model's capabilities and limitations is often unknown until extensive post-deployment testing.
- Context Sensitivity: Minor variations in input prompts can lead to significantly different system behaviors, making consistency difficult to guarantee.
- Continuous Evolution: Frequent model updates and fine-tuning mean that a system's behavior is a moving target, potentially leading to configuration drift.
A Six-Activity Framework for RE
To address these challenges, we propose a conceptual framework that reorganizes the RE lifecycle into six interconnected activities designed to handle the probabilistic nature of PTMs.
1. Model Capability Discovery
Rather than starting with a blank slate, engineers must first understand the available "materials." This involves scraping model cards and ecosystems (like HuggingFace) to build a Capability Catalog. This catalog defines the known boundaries, risks, and costs associated with specific models.
2. User Intent Elicitation
Stakeholders often have unrealistic expectations of AI. By using "Capability Dashboards," engineers can ground stakeholder goals in reality, interactively refining requirements based on what models can actually achieve. This results in a structured User Intent List.
3. Intent-Capability Mapping
Not every system requirement requires a neural network. This activity acts as a critical decision point, determining whether a specific user intent should be handled by a pretrained model or by Traditional Logic (deterministic, rule-based code).
4. Prompt-as-Specification
In PTM-enabled systems, the prompt is no longer just a user input; it becomes the formal requirements specification. Treating "prompts as specs" requires them to be subjected to the same rigor as source code, including versioning and structured documentation.
5. Intent-Prompt Validation
Automated "Checkers" are employed to validate prompts against both functional criteria (clarity and example adequacy) and non-functional criteria (fairness, safety, and hallucination risks).
6. Model Artifacts Management
This governance layer ensures traceability across the lifecycle, managing the relationships between user intents, prompt versions, model checkpoints, and training datasets to prevent unmanaged system evolution.
Key Insights: Prompts as First-Class Citizens
The most significant shift in this framework is the elevation of prompts to "first-class executable requirements." Because the prompt bridges human intent and machine execution, it requires a new level of quality assurance. Furthermore, the framework acknowledges a "Hybrid Reality," where deterministic and probabilistic components must coexist and be mapped appropriately.
We must also expand our definition of quality. Beyond standard metrics like latency or uptime, RE for PTMs must prioritize emergent non-functional requirements (NFRs) such as hallucination rates, explainability, and algorithmic fairness.
Future Research Directions
While this framework provides a roadmap, several open challenges remain for the research community:
- Prompt Specification Languages: Moving away from "messy" natural language toward syntactically constrained languages for prompts.
- Automated Model Selection: Developing tools that can automatically recommend the optimal model for a specific user intent based on the Capability Catalog.
- Traceability and Auditing: Building frameworks to track how changes in underlying model checkpoints impact overall system behavior.
- Empirical Validation: Testing this conceptual framework in diverse industrial settings to refine its efficacy against traditional RE methods.
Summary updated