Writer's Aid: Using a Planner in a Collaborative Interface

Tamara Babaian, Barbara J. Grosz, Stuart M. ShieberIJCAI 2003

Introduction

Writing a research paper often involves a jarring context-switch: you realize you need a citation, stop writing, open a browser, search through various digital libraries, download a PDF, and manually format a BibTeX entry. This breaks cognitive momentum and disrupts the "flow state" essential for creative work. Writer’s Aid is an AI-powered collaborative assistant designed to automate the tedious process of finding and organizing citations, allowing authors to remain focused on their primary task.

System Architecture

The core of Writer’s Aid is a domain-independent planning system that acts as a partner rather than just a tool. Unlike traditional software that follows a rigid script, Writer’s Aid uses AI Planning to determine the most efficient way to retrieve the information a user needs.

The Writer's Aid system architecture, illustrating the interaction between the user's editor, the planning manager, and the state of knowledge.

The system architecture consists of several key technical components:

  • PSIPLAN & PSIPOP-SE: The system uses the PSIPLAN representation to model goals and the "State of Knowledge" (SOK). The PSIPOP-SE algorithm serves as the engine that generates and executes these plans.
  • Goal Reduction: Before the planner begins, a module compares the user's request against the SOK database. It strips away parts of the goal that are already achieved, ensuring the system avoids redundant network calls or searches.
  • Planning Problem Manager: This component coordinates between the user's editor (Emacs) and the planner, managing the lifecycle of information-gathering tasks.

Open-World Planning and Hypothetical Reasoning

Most planners operate under a "closed-world" assumption, where all relevant facts are known. Writer’s Aid assumes an "open world" and employs interleaved planning and execution. It might start a plan, perform a "sensing action" (such as searching the ACM Digital Library), and then update its plan based on the results.

To handle uncertainty, the planner utilizes hypothetical reasoning. It may hypothesize that a paper exists in a specific online collection and schedule a sensing action to verify this. To prevent a "combinatorial explosion" of possibilities, the authors implemented iterative deepening in hypotheticals, limiting the number of consecutive hypotheses and only increasing this limit if a solution is not found at a simpler level.

Collaborative Interface and Workflow

Writer’s Aid is designed to be non-intrusive, living inside the Emacs text editor. When a user types a citation command (e.g., \cite{...}), the agent activates in the background. To ensure responsiveness, the system uses round-robin goal processing, providing results for all citation requests incrementally rather than finishing one citation completely before starting the next. This allows the human author to focus on high-level synthesis while the computer handles the "search and cache" sub-tasks.

Results and Limitations

The system demonstrates real-time performance, capable of formulating and executing complex plans while the user is actively writing. By offloading information gathering to the background, it successfully maintains the user's cognitive momentum.

However, some limitations remain:

  • Configuration: Preferred online bibliographies currently require manual setup.
  • Platform Specificity: The current implementation is tightly coupled with Emacs and LaTeX, limiting its use in other environments like Microsoft Word or Google Docs.
  • Evaluation: While functional successes are clear, the qualitative "feel" of the collaboration requires further subjective analysis, as detailed in subsequent user studies.

Conclusion

Writer’s Aid represents a significant step toward truly collaborative human-computer interfaces. By treating information gathering as a planning problem in an open world, it allows researchers to stay in their flow state, delegating the mechanical aspects of citation management to an autonomous agent.

Summary updated

BibTeX
@inproceedings{babaian2003writer,
  author = {Tamara Babaian and Barbara J. Grosz and Stuart M. Shieber},
  title = {{Writer's Aid: Using a Planner in a Collaborative Interface}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2003},
}
Figure