PAM - A Program That Infers Intentions

Robert WilenskyIJCAI 1977

Abstract

Early natural language processing systems often struggled with the gap between literal syntax and the underlying motivations of characters in a narrative. This paper discusses the Plan Applier Mechanism (PAM), a system designed to bridge this gap by mapping explicit actions to implicit goals. By utilizing Conceptual Dependency and a hierarchy of goal-episode modeling, PAM demonstrates how a computational system can simulate human-like contextual reasoning to infer intentions, resolve goal conflicts, and generate coherent interpretations of narrative text.

Introduction

In the 1970s, the field of natural language processing (NLP) faced a significant hurdle: the "literalism" of existing systems. While programs could parse the grammatical structure of a sentence, they lacked the cognitive framework to understand the why behind the actions described. For instance, if a narrative states, "John needed money. He got a gun," a human reader immediately infers a plan for a robbery. A standard program of that era, however, would treat these as two isolated facts.

Robert Wilensky’s PAM (Plan Applier Mechanism) was developed to address this challenge. PAM moves beyond surface-level text processing by employing "Knowledge Structure Interpretation" (KSI), a method that allows the system to bridge the gap between explicit actions and the implicit plans that motivate them.

The PAM Architecture

PAM’s ability to understand stories is rooted in several key techniques from the "Good Old Fashioned AI" (GOFAI) tradition:

Conceptual Dependency (CD)

PAM translates English sentences into Conceptual Dependency representations. Developed by Roger Schank, CD is a formal language used to represent the underlying meaning of actions. By abstracting away from specific word choices, CD allows the system to focus on the fundamental concepts—such as the transfer of physical control or the movement of an actor—regardless of how they are phrased in natural language.

Condition-Action Rules and Expectations

The system stores knowledge as a set of "if-then" expectations. When PAM encounters a character obtaining a "functional object," such as a gun, it triggers a specific expectation: the character likely intends to use that object for its primary function (e.g., threatening or overpowering). This forward-looking mechanism allows the system to use current information to filter and interpret future sentences.

Goal-Episode Modeling

PAM organizes narrative events into a hierarchy of goals, sub-goals, and plans. It identifies specific goal types, such as:

  • DELTA-CONT: A goal involving a change in the control of an object (e.g., acquiring money).
  • DELTA-PROX: A goal involving a change in physical location.

By mapping actions to these goal types, PAM can reconstruct the "connective tissue" of a story, treating the narrative not as a sequence of events, but as a sequence of intended events.

Modeling Conflict and Character Agency

A significant feature of PAM is its ability to model the internal states of multiple characters simultaneously. In a robbery scenario, the system does not just track the protagonist; it also simulates the mental state of the antagonist (e.g., a store owner).

When a store owner is threatened, PAM identifies a "GOAL-CONFLICT" between the owner's goal to "PRESERVE-HEALTH" and their goal to "PRESERVE-CONT" (keeping the money). PAM explains the owner's compliance as a rational choice to prioritize health over financial preservation. This ability to model the "other" is crucial for narrative coherence, as it recognizes that an abandoned goal is often as important to the story's logic as a fulfilled one.

Case Study: The Liquor Store Robbery

To demonstrate its proof-of-concept, PAM was tested on hand-crafted "toy" stories, a standard practice in early symbolic AI research. One such story consisted of six sentences describing a liquor store robbery.

PAM successfully generated a complete Knowledge Structure Interpretation (KSI) for this narrative. It correctly identified that the protagonist's primary goal was to obtain money and recognized that "getting a gun" and "walking into the store" were sub-episodes of a broader "THREATEN" plan. Furthermore, it provided a logical explanation for the store owner's behavior based on the prioritized goal of self-preservation.

Discussion and Limitations

The core insight of PAM is that understanding is a process of expectation. By treating the "plan" as the primary unit of analysis, PAM demonstrates that intentionality is the glue that makes a narrative coherent.

However, the system possesses limitations characteristic of its era:

  • Scalability: PAM relies on highly specific, hand-coded rules. Expanding the system to encompass the vast range of human experience would require an astronomical number of rules.
  • Brittleness: Because it depends on pre-defined "scripts" or "plans," the system is prone to failure if a story deviates even slightly from its known patterns.

Despite these limitations, PAM remains a foundational example of how AI can attempt to model common-sense knowledge and human motivation, pointing the way toward more flexible cognitive architectures.

Conclusion

PAM represents a significant step in the transition from literal text parsing to deep narrative understanding. By focusing on the inferential processes that link actions to intentions, it provided a framework for how machines might one day understand the complex web of human goals that drive storytelling.

Summary updated

BibTeX
@inproceedings{wilensky1977pam,
  author = {Robert Wilensky},
  title = {{PAM - A Program That Infers Intentions}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1977},
}
Figure