Off-line Reasoning for On-line Efficiency

Yoram Moses, Moshe TennenholtzIJCAI 1993

Abstract

The complexity of reasoning is a fundamental issue in AI. In many cases, the fact that an intelligent system needs to perform reasoning on-line contributes to the difficulty of this reasoning. In this paper we investigate a couple of contexts in which an initial phase of off-line preprocessing and design can improve the on-line complexity considerably. The first context is one in which an intelligent system computes whether a query is entailed by the system's knowledge base. We present the notion of an efficient basis for a query language, and show that off-line preprocessing can be very effective for query languages that have an efficient basis. The second context is closely related to the artificial social systems approach. We present the design of a social law for a multi-agent environment as primarily an instance of off-line processing, and study this problem in a particular model. Computing or coming up with a social law is viewed as a primarily off-line activity that has major impact on the effectiveness of the on-line activity of the agents. The tradeoff between the amount of effort invested in computing the social law and the cost of the on-line activity can thus be viewed as an off-line vs. on-line tradeoff.

Introduction

In Artificial Intelligence, reasoning is often the primary bottleneck for real-time performance. Whether an agent is determining if a specific fact is true based on its knowledge base (KB) or planning a path through a dynamic environment, the underlying computational tasks are often intractable—meaning they take too long to solve in the heat of the moment.

Traditionally, researchers have addressed this by simplifying the world model or using model checking on static snapshots. This paper proposes a third way: Amortized Reasoning. By shifting heavy computational reasoning from an on-line phase (when a robot is moving or a user is waiting) to an off-line phase (during system design), complex tasks can become significantly more efficient. If the environment or the knowledge base is relatively fixed, massive computation can be performed once to make every future on-line task trivial.

Methods and Frameworks

The authors investigate this "off-line vs. on-line" trade-off in two distinct AI contexts:

1. Knowledge Representation: The "Efficient Basis"

The authors introduce the concept of an efficient basis for a query language. In this framework, every possible question in a language can be decomposed into a small set of "prime" questions. If the answers to these prime questions are pre-calculated off-line, answering any complex query on-line becomes a simple matter of looking up and combining the pre-calculated parts. The paper proves that k-CNF (a common logic format) possesses such a basis, allowing for rapid query resolution.

2. Multi-Agent Systems: Artificial Social Systems

Instead of requiring robots to negotiate with each other in real-time to avoid collisions—a process that is computationally expensive and prone to failure—the authors suggest designing Social Laws off-line. These are "rules of the road" that agents must follow. By constraining the agents' action space, the individual planning process is simplified. An agent no longer needs to predict the behavior of every other agent; it simply follows the law and plans its own path accordingly.

Key Insights and Theoretical Results

  • The Power of Preprocessing: The paper formalizes the idea that expensive off-line work is acceptable if it reduces on-line complexity to linear time. This is particularly valuable for systems handling an exponential number of queries over their lifetime.
  • NP-Completeness as "Good News": In the context of social laws, finding a law is NP-complete. While usually a negative result, the authors argue this is beneficial for off-line design: because the solution is easily verifiable, a designer can use incremental construction off-line to find a law that works perfectly on-line.
  • Social Laws as Computational Shortcuts: A social law transforms a complex multi-agent coordination problem into a much simpler single-agent planning problem.
  • Linear Time Entailment: For certain query languages, after off-line processing, checking if a query is true becomes linear in the size of the query ($O(size(\alpha) \cdot \log n)$), effectively making the size of the massive knowledge base irrelevant during the on-line phase.

Limitations and Future Work

The primary limitation of this approach is the Update Problem. If the knowledge base or the environment changes constantly, the expensive off-line preprocessing becomes obsolete. The cost of re-computing the basis or the social law might then outweigh the on-line benefits. Additionally, the paper notes that there is no general, efficient way to merge the off-line data of two different knowledge bases unless they share specific structural properties. Future research is needed to address the challenge of finding not just any social law, but the most optimal one for a given environment.

Summary updated

BibTeX
@inproceedings{moses1993off,
  author = {Yoram Moses and Moshe Tennenholtz},
  title = {{Off-line Reasoning for On-line Efficiency}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1993},
  url = {https://openreview.net/forum?id=SJ-EmQf_ZH},
}
Figure