Introduction
In the mid-1960s, artificial intelligence research into natural language processing (NLP) was in its infancy. Early systems like Daniel Bobrow’s STUDENT (1964) demonstrated that computers could solve high school algebra word problems by mapping sentences directly to linear equations. However, calculus "related rates" problems presented a significantly higher bar for machine intelligence. These problems require not just linguistic parsing, but the integration of information across multiple sentences, the application of geometric formulas, and symbolic differentiation.
Eugene Charniak’s 1968 system, CARPS (CAlculus Rate Problem Solver), addressed these challenges by shifting from simple pattern matching to a more robust semantic modeling approach.
The Challenge of Related Rates
Calculus word problems often involve physical objects whose properties change over time. For instance, a problem might describe water flowing into a conical filter. To solve this, a system must recognize that the "cone" mentioned in one sentence is the same "filter" mentioned in another, and it must know the inherent geometric relationship between the cone's volume, height, and radius ($V = \frac{1}{3}\pi r^2 h$).
Unlike algebra problems where information is often localized within a single sentence, related rates problems require a global understanding of the scenario's physical constraints.
System Architecture and Methodology
CARPS was implemented in LISP and CONVERT on a PDP-6 computer. The system processed problems through a multi-stage pipeline designed to extract meaning rather than just syntax.
Linguistic Processing
The system first tagged words with parts of speech and identified "key words" that signaled specific geometric models (e.g., "CONICAL" or "SPHERE"). It then used pattern-matching rules to decompose complex sentences into simpler "kernel sentences." For example, a sentence containing "WHEN" would be split to isolate the boundary conditions of the problem.
Internal Modeling (The "Structure")
The core innovation of CARPS was its use of tree-based "structures" to represent objects. When a problem mentioned a physical entity, CARPS created a node for it and attached relevant properties.
By storing information in an object-oriented manner, the system could aggregate data from disparate parts of the text. If one sentence described the shape of a pile and another described its rate of growth, the "structure" served as a central repository for these attributes.
Equation Formation and Symbolic Solution
Once the model was built, CARPS retrieved relevant formulas from a library of "real-world" knowledge. It mapped the problem's variables onto these formulas and used symbolic differentiation routines (some adapted from Joel Moses' work) to solve for the requested rate.
Evaluation and Key Results
CARPS was evaluated on a set of 14 calculus word problems drawn from standard textbooks of the era, such as Thomas' Calculus and Analytic Geometry. The system successfully solved all 14 problems.
One notable test case involved calculating a ship's distance from a fixed point. On a PDP-6 with 45K of memory, CARPS arrived at the solution in approximately 41 seconds. These results demonstrated that CARPS was significantly more powerful than its predecessor, STUDENT, particularly in its ability to handle dependent clauses and multi-sentence object descriptions.
Discussion: Limitations and Implicit Knowledge
Despite its success, Charniak identified several limitations that would define the next decades of AI research. CARPS relied heavily on keywords; a problem phrased without these specific triggers would likely cause the system to fail.
More importantly, the paper highlighted the role of "common sense" or implicit knowledge. For example, CARPS struggled with problems involving ladders because it lacked a basic physics engine to understand that a ladder's foot moves horizontally along the ground. Charniak argued that true language understanding requires a vast "body of real-world information"—a realization that shifted the focus of AI from pure logic to knowledge-based systems.
Conclusion
CARPS remains a landmark in the history of computational linguistics and AI. It proved that solving complex mathematical problems requires more than just translating words to symbols; it requires building a coherent internal model of the world described by those words.
Summary updated