Logical Circuit Filtering

Dafna Shahaf, Eyal AmirIJCAI 2007

Introduction

In partially observable environments, agents must maintain a "belief state"—a set of all possible world states consistent with their history of actions and observations. This process, known as logical filtering, is fundamental to autonomous reasoning. However, traditional methods often face a computational "explosion," where the representation of the belief state grows exponentially relative to the number of features (fluents) in the domain.

The Challenge of Logical Filtering

The primary difficulty in logical filtering lies in the "update problem." When an agent performs an action and receives an observation, it must prune its belief state to exclude states that are no longer possible.

Conceptual overview of logical filtering: an observation (Length=1) allows the agent to eliminate hypothesis (b), which is inconsistent with the evidence.

Previous complexity results suggested that determining whether a specific logical clause holds in a new belief state is coNP-complete. This paper introduces C-Filter, an algorithm that overcomes this bottleneck by updating the entire belief state representation holistically rather than piece-by-piece.

Methodology: C-Filter and Logical Circuits

The core innovation of C-Filter is the use of Logical Circuits (Directed Acyclic Graphs) to represent belief states. Unlike traditional flat formulas or Binary Decision Diagrams (BDDs), logical circuits allow for extensive sub-formula sharing across time steps.

Circuit Representation

By storing the belief state as a DAG, the update mechanism becomes highly efficient. When an action occurs, the algorithm adds a small number of new logic gates that point to existing nodes in the circuit, rather than duplicating the entire structure. This ensures that the representation size remains linear relative to the sequence of actions.

A logical circuit representation of a belief state. The DAG structure uses AND, OR, and NOT gates to link fluents across time steps efficiently.

The Update Mechanism

C-Filter leverages the determinism of the environment. A feature (fluent) is true after an action if the action caused it to be true, or if it was already true and the action did not cause it to become false. To prevent the number of variables from growing over time, the algorithm employs a "Time-0 Mapping," expressing all current fluents as functions of the initial state fluents. This keeps the variable count constant throughout the filtering process.

Experimental Results

The authors evaluated C-Filter across standard AI Planning domains, such as Blocks-World and Grid, with sequences up to 10,000 steps.

  • Linear Scaling: Experiments confirmed that processing time is strictly linear relative to the sequence length, regardless of total domain size.
  • Performance: C-Filter outperformed BDD-based methods by orders of magnitude. In large domains (300+ fluents), older methods often failed to complete, while C-Filter processed steps in milliseconds.
  • Constant Complexity: Unlike Bounded Model Checking, the variable count remained capped at the number of state features ($n$).

Conclusion

C-Filter represents a significant advancement in tractable logical reasoning. By shifting to a circuit-based representation, it achieves exact filtering in polynomial time for deterministic domains. Future work aims to extend these techniques to stochastic environments and implement periodic circuit optimization to manage extremely long-term sequences.

Summary updated

BibTeX
@inproceedings{shahaf2007logical,
  author = {Dafna Shahaf and Eyal Amir},
  title = {{Logical Circuit Filtering}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2007},
}
Figure