Abstract
Early natural language processing (NLP) systems often struggled with the "common sense gap"—the vast amount of unstated background knowledge required to understand even the simplest narrative. This paper explores Eugene Charniak's framework for story comprehension, which moves beyond syntactic parsing to a structured library of real-world knowledge. By utilizing a system of "demons," "base routines," and specialized bookkeeping, Charniak demonstrates how a computational model can perform the deductive reasoning necessary to link events, track state changes, and resolve narrative ambiguities.
Introduction
When a human reader encounters the sentences, "Janet needed money. She got her piggy bank and started to shake it," the causal link is immediate. We understand that the piggy bank contains money, that shaking it is a method to retrieve that money, and that Janet’s actions are motivated by her initial need. To a computer, however, these are merely isolated assertions.
Eugene Charniak addresses this fundamental challenge: how can a system represent and retrieve the "common sense" knowledge necessary to "fill in the blanks" of a narrative? Because stories are inherently elliptical—omitting the most obvious details to avoid redundancy—a comprehension system must maintain an internal model of the world that updates dynamically. Charniak proposes a middle ground between an impossible "theory of everything" and the ad-hoc programming of specific story solutions.
A Modular Architecture for Knowledge
Charniak’s framework relies on several interacting modules designed to manage the complexity of real-world information without overwhelming the system's processing capabilities.
1. Demons and Antecedent Theorems
The core of the system is the "demon." Based on the concept of antecedent theorems, demons are specialized procedures that "watch" for specific assertions within the story database. To prevent the system from being bogged down by irrelevant rules, a demon is only activated when its "topic concept" is mentioned.
- Looking Forward: These demons anticipate future events to confirm a hypothesis. For example, if a character is given a gift, a demon might wait for a "thank you" or a reaction to the gift's contents.
- Looking Backward: These demons use new information to explain a previous, ambiguous line. If a character is suddenly described as being wet, a backward-looking demon might search for a prior mention of rain or a swimming pool to establish causality.
2. Base Routines and Contextual Priming
While demons handle specific assertions, "Base Routines" provide the broader context. Triggered by specific keywords (e.g., "trade," "baseball," or "birthday party"), these routines set the stage by activating a cluster of related demons. For instance, the phrase "Jack was on second base" primes a "Baseball" routine, making a suite of specific knowledge about runs, outs, and innings available for immediate deduction.
3. Bookkeeping and Fact Finders
To maintain a coherent world state, the system employs a Bookkeeping module. This tracks changes over time; if a character trades a toy, the bookkeeping system updates the database so the original owner no longer "possesses" the item, while still allowing the system to answer questions about who owned it previously.
Complementing this are Fact Finders, which are specialized deductive rules used to prove "unimportant" but necessary spatial or logical facts. If a story mentions a character is in the kitchen, a Fact Finder can deduce they are also "in the house" without requiring an explicit statement for every level of geographical containment.
The "Piggy Bank" Problem
Charniak uses the micro-domain of the piggy bank to illustrate the density of common-sense knowledge. Understanding a child’s interaction with a piggy bank requires knowing that it is a container, that it typically holds coins, that coins make noise when shaken, and that a lack of noise implies the container is empty.
This "motive-result" link is crucial. If the system knows Janet wants to buy something (motive) and then sees her shaking a piggy bank (result), it can confidently assert a causal link. Without this structured knowledge, the system cannot distinguish between a functional action and a random one.
Discussion and Limitations
While Charniak’s framework provides a qualitative leap in narrative modeling, it faces several significant hurdles:
- Manual Knowledge Engineering: The system does not "learn" common sense; every fact and demon must be manually programmed by a "model maker." This creates a bottleneck for scaling the system to more complex domains.
- Demon Clutter: As a story progresses, the number of active demons can grow, potentially slowing the system. Charniak suggests a heuristic of removing demons after a fixed number of lines, though he admits this is a crude approximation that may fail in longer narratives.
- Syntactic Independence: The paper intentionally sets aside the complexities of natural language parsing and word-sense disambiguation to focus purely on the deductive layer, assuming a pre-parsed input.
Conclusion
Charniak’s exploration of Jack and Janet’s world reveals that even the most trivial children's stories rest upon a massive foundation of implicit knowledge. While the specific mechanics of piggy banks may seem minor, the process of formalizing these "hundreds of facts" is a vital step toward a true computational theory of knowledge. The framework of demons and base routines offers a structured path for machines to move beyond reading text to actually understanding stories.
Summary updated