Introduction
In the field of artificial intelligence, providing a technically accurate answer is often insufficient for effective human-computer interaction. For an advice-giving system to be truly cooperative, it must move beyond simple direct responses and understand the broader context of a user's inquiry. This paper introduces a framework designed to improve AI advice-giving by maintaining a model of the user’s long-term goals and preferences. By doing so, the system can detect when a user's proposed plan is sub-optimal or conflicts with their overarching objectives, allowing it to provide helpful, non-misleading alternatives.
The Problem: Beyond Local Intent
A recurring challenge in AI research is the gap between a user's immediate question (local intent) and their broader background (global context). A system that only addresses local intent may inadvertently lead a user toward a poor decision—a phenomenon known as "cooperative failure."
Consider a student asking, "Can I enroll in CS 375?" A simple "Yes" is technically correct if the student meets the prerequisites. However, if the student has a known preference for avoiding certain programming languages (e.g., FORTRAN) and CS 375 is heavily reliant on that language, or if the student has already reached their elective credit limit, the "Yes" becomes misleading. The system’s silence on these crucial details constitutes a failure to be a helpful advisor. The challenge addressed here is building a system that can reason about these layers to prevent such failures.
Methodology: The User Model and Reasoning Engine
The proposed algorithm, implemented in Waterloo UNIX Prolog, bridges the gap between intent and context using two primary components:
- The User Model: This component stores multi-layered information, including the user's immediate goals, their academic background (e.g., completed courses), higher-level domain goals (e.g., "obtaining a degree"), and personal preferences (e.g., "avoiding specific topics").
- Horn Clause Reasoning: The system utilizes a theorem prover to evaluate plans. Rather than simply checking the feasibility of an action, it assesses whether the action serves as a valid step toward the user's higher-level objectives.
The algorithm follows a structured logic flow to ensure the advice is both accurate and optimal:
- Feasibility Check: Is the requested action possible? If not, the system explains the barrier and suggests alternatives.
- Intent Check: Does the action actually achieve the user's stated immediate goal?
- Compatibility Check: Does the action conflict with any higher-level goals, such as degree requirements?
- Optimization: Are there alternative plans that satisfy a greater number of the user's goals or preferences?
Key Insights: The "Betterness" Heuristic
A central contribution of this work is the definition of a "betterness" heuristic. A plan is considered "better" if it satisfies multiple goals or subgoals simultaneously. For instance, if two different courses fulfill the same degree requirement, but one aligns with a user's specific interest in numerical analysis, that course is objectively superior for that individual.
This framework builds directly upon the work of Joshi et al. (1984). While Joshi argued that systems must provide better alternatives to be truly cooperative, the specific mechanism for computing these alternatives remained unspecified. This paper provides a concrete algorithm to operationalize that theory. Furthermore, the approach is domain-independent; while the specific rules and goals are tailored to a student-advisor context, the underlying reasoning over goals and plans can be applied to various domains.
Evaluation through Qualitative Scenarios
The effectiveness of the algorithm was demonstrated through a simulated student-advisor domain. The knowledge base utilized Horn clauses to represent course topics, prerequisites, and degree requirements. Two primary scenarios highlight the system's capabilities:
- Scenario 1: Credit Limits: When a student requests to enroll in a 500-level course, the system identifies that while the student is eligible, the course will not count toward their degree because they have reached a specific credit ceiling. Instead of a simple "Yes," the system warns the student and suggests 600-level alternatives that would provide the necessary credit.
- Scenario 2: Dropping a Course: If a student seeks to drop a course to avoid a failing grade, the system recognizes that this action might hinder future progress. It suggests alternatives such as taking an "incomplete" or switching to "audit" status, which protects the student's GPA while keeping them on the path toward their ultimate goal of receiving credit.
Limitations and Future Directions
While the framework provides a robust logical foundation for advice-giving, several areas for future development remain. The current implementation operates on logical representations; future work must bridge the gap between Horn clauses and natural, conversational English. Additionally, the system does not currently adjust the complexity of its explanations based on the user's level of expertise. Finally, the model assumes that the system already possesses knowledge of the user's goals. Integrating existing techniques for inferring goals from natural language dialogue would enhance the system's autonomy and utility.
Summary updated