The Use of a Domain Model in Understanding Informal Process Descriptions

Neil M. Goldman, Robert Balzer, David S. Wile

Introduction

In the late 1970s, a significant bottleneck in software engineering was the "informality gap"—the distance between how humans describe processes and how computers require instructions. While humans rely on context, shared knowledge, and "obvious" omissions, computers demand rigorous, unambiguous, and complete formal specifications. The SAFE project at USC/ISI, as detailed by Balzer, Goldman, and Wile (1977), proposed a solution: using a structured domain model to bridge this gap.

The Challenge of Informal Descriptions

Traditional compilers fail when faced with natural language because human communication is inherently "informal." The authors identify three primary types of informality that hinder automated understanding:

  1. Descriptive References: Humans often identify objects by attributes (e.g., "the red file") rather than unique, persistent variable names.
  2. Missing Operands: In context, humans frequently omit the object of an action (e.g., "Send to the manager" without specifying what is being sent).
  3. Implicit Sequencing: The exact order of operations is often left out if the logical flow seems intuitive to a human reader.

The Domain Model as a World-View

The core innovation of the SAFE system is the Domain Model. This serves as a "world-view" or a knowledge base that provides the computer with the necessary context to resolve ambiguities. The model consists of:

  • Object Types and Relations: A taxonomy defining what entities exist (e.g., "User," "File") and how they relate (e.g., "User owns File").
  • Actions: Definitions of operations, including pre-conditions (requirements for an action to occur) and post-conditions (the resulting state change).
  • Constraints and Inference Rules: Logic that defines valid data states and allows the system to deduce unstated facts.

The SAFE System Architecture

The SAFE system processes informal descriptions in two distinct stages:

  1. Local Resolution: The system uses type-matching and the domain model to make educated guesses about missing operands or unnamed relationships.
  2. Symbolic Execution: To validate these guesses, the system "runs" the hypothesized program using symbolic data. If a particular interpretation violates a domain constraint or a pre-condition, the system rejects it and explores alternative interpretations. This ensures that the final formal specification is logically consistent with the known "rules of the world."

Key Insights

The research highlights several critical shifts in how we approach natural language processing (NLP) for technical tasks:

  • Knowledge-Based Parsing: Effective parsing requires more than just grammatical rules; it requires a model of the domain. You cannot resolve a pronoun like "it" without knowing which objects are legally valid in that specific context.
  • Static vs. Dynamic Information: The system distinguishes between the static domain model (the unchanging rules of the world) and the dynamic process (the specific sequence of events that creates or destroys associations).
  • Constraint as a Filter: Rather than attempting to "calculate" the correct answer directly, the system uses domain constraints to filter out impossible interpretations, narrowing the field to the most likely intended meaning.
  • Model Bootstrapping: A significant finding was that the domain model does not need to be exhaustive from the start. Because informal descriptions often reflect the underlying structure of the domain, the SAFE system can actually augment its own model by analyzing the very descriptions it is tasked with formalizing.

Limitations and Future Directions

Despite its promise, the authors noted significant hurdles. Building a formal domain model is an "arduous and error-prone" task, and there is no clear metric for "completeness." Furthermore, while the framework proved effective for small-scale demonstrations, its scalability to massive, multi-domain environments remained an open question. The authors suggested that future work should focus on automating the construction of these models directly from text to reduce the manual labor required by experts.

Conclusion

The SAFE project demonstrated that by providing computers with a "world-view" through a domain model, it is possible to translate informal human descriptions into rigorous, executable specifications. This work laid the groundwork for implementation-neutral programming, where the focus is on what a process does rather than the technical details of how it is executed.

Summary updated

BibTeX
@inproceedings{goldman1977use,
  author = {Neil M. Goldman and Robert Balzer and David S. Wile},
  title = {{The Use of a Domain Model in Understanding Informal Process Descriptions}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1977},
}
Figure