Transfer Semantics in an Operating System Consultant: The Formalization of Actions Involving Object Transfer

TL;DR

This paper introduces "Transfer Semantics" (TS), a knowledge representation scheme designed to formalize operating system actions that involve object transfer. By representing actions through "action frames" that capture preconditions, postconditions, actions, and actors, TS aims to enable natural language understanding of complex system commands, particularly for novice users.

What Problem Does This Paper Address?

Operating systems are replete with actions that move or transform data objects (files, directories, etc.) between different states. Understanding these actions, especially for users unfamiliar with command-line interfaces, is challenging. Existing systems often struggle to interpret natural language queries that describe desired outcomes or command effects. This paper addresses the need for a robust knowledge representation that can bridge the gap between natural language expressions of user goals and the underlying operating system commands, particularly for complex, multi-command operations.

Methods

The core of the proposed solution is Transfer Semantics (TS), a knowledge representation scheme built upon two main components:

  • Object Frames: These represent operating system objects (e.g., files, protection settings) in a hierarchical, tree-like network. They use arcs to define relationships (type-of, part-of, instance-of) and nodes to specify attributes.
  • Action Frames: These formalize operating system actions (e.g., printing, listing). Each action frame includes:
  • Preconditions: Sets of preferred object states that must exist before an action can occur.
  • Postconditions: Sets of preferred object states that result after an action is executed.
  • Actions: The specific commands that trigger the transfer.
  • Actors: The users performing the action.

TS emphasizes "preferred" conditions rather than exhaustive ones, allowing for flexibility and efficient matching. Inference rules, such as "Rules of Consequence" and "Rule of Composition," are crucial for manipulating these frames, enabling the system to infer new relationships, strengthen preconditions, weaken postconditions, and handle complex, embedded queries involving multiple commands. The system, OS Consultant (OSCON), uses these frames to translate natural language queries into formal database queries.

Datasets

Not discussed in the paper. The paper focuses on the knowledge representation formalism and its application to UNIX and TOPS-20 operating systems, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Focus on "Transfer": The central idea is that many OS commands are fundamentally about transferring objects between states. Formalizing this transfer is key to understanding command semantics.
  • Preconditions and Postconditions as "Preferences": Representing only preferred conditions, rather than all possible states, makes the system more manageable and efficient for matching user queries.
  • Hierarchical Object Representation: The use of object frames in a hierarchical network allows for flexible inference and the modeling of relationships between different types of objects.
  • Inference Rules for Flexibility: The "Rules of Consequence" and "Rule of Composition" are vital for handling ambiguity, inferring missing information, and interpreting complex, multi-step commands expressed in natural language.
  • Bridging OS Knowledge: The ability to represent similarities between objects in different operating systems (e.g., TOPS-20 and UNIX) is crucial for helping users transition between systems.

Key Results

The paper does not present quantitative results from a deployed system. Instead, it demonstrates the applicability of Transfer Semantics through examples:

  • Natural Language Query Interpretation: The paper illustrates how TS can interpret queries like "How do I print out a file with pages?" by matching them to action frames and inferring necessary preconditions and postconditions.
  • Handling Complex Queries: The "Rule of Composition" is shown to enable the interpretation of embedded queries, such as "How do I stop a listing of my directory, which is printing on the line printer?" by composing actions like LIST, PRINT, and REMOVE.
  • Cross-OS Support: The system can handle queries using terminology from one OS (e.g., TOPS-20) and provide answers in terms of another (e.g., UNIX) by leveraging similarity mappings in object frames.

Limitations and Future Work

  • "Weakest" Preconditions and "Strongest" Postconditions: While the paper advocates for representing the "weakest" preconditions and "strongest" postconditions, the exact criteria and implementation for determining these are not fully detailed.
  • Matching Process: The paper acknowledges that developing robust matching processes to determine the right frame for a query is an area for further research.
  • User Misconceptions: The authors express interest in recognizing and handling user misconceptions in queries (e.g., asking for a non-existent option).
  • Ill-formed Embeddings: Investigating the recognition of nonsensical command sequences (e.g., "delete my files and then list them?") is a future direction.
  • Modeling Other OS: The authors hope to extend Transfer Semantics to model other operating systems and their actions.
  • Action Frame Expansion: Continued work is planned to build action frames for more actions like "mailing," "moving," and "creating."

Summary updated

BibTeX
@inproceedings{1987transfer,
  title = {{Transfer Semantics in an Operating System Consultant: The Formalization of Actions Involving Object Transfer}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1987},
}
Figure