First-Order Logical Filtering

Afsaneh Shirazi, Eyal AmirIJCAI 2005

Introduction

In artificial intelligence, "filtering" refers to the process of updating an agent's belief state about the world as it executes actions and receives observations. While propositional logic filtering is well-understood, it struggles with large-scale environments where the number of objects is unknown or relationships are complex. This paper introduces polynomial-time algorithms for logical filtering using First-Order Logic (FOL), enabling exact and compact belief state updates in complex domains.

The Challenge of First-Order Filtering

Traditional filtering methods often rely on propositional logic, which treats every possible fact as an independent boolean variable. This approach fails when:

  1. Scale: The world contains thousands of objects and relationships.
  2. Uncertainty: The exact number or identity of objects is unknown.
  3. Relational Complexity: Reasoning about spatial or hierarchical relationships (e.g., "Object A is inside Object B") is required.

While FOL is the natural language for these problems, it is often computationally intractable. This research identifies specific action classes—such as STRIPS or 1:1 mappings—where FOL filtering can be performed efficiently and exactly.

Algorithmic Framework

The authors build their approach on the Situation Calculus, a formal framework for representing change. They propose two primary specialized algorithms to maintain bounded belief state representations:

UCFilter (Unit-Case Filter)

The UCFilter algorithm is designed for "Unit-Case" actions, where effects are simple conditional changes. It ensures that the size of the belief state formula remains bounded by a polynomial, preventing the exponential growth typically associated with logical updates.

Procedures for UCFilter, Filter-True, and UCStep, illustrating the recursive update mechanism for unit-case actions.

FOSF (First-Order STRIPS Filtering)

For classic AI planning actions defined by "add" and "delete" lists, the FOSF algorithm provides a robust solution. It handles non-permuting actions (e.g., painting multiple objects the same color) by resolving out affected literals and maintaining a consistent belief state.

Procedures for FOSF and FO-STRIPS-Step, detailing the handling of quantifiers and STRIPS-style effects.

Key Insights and Results

The core innovation lies in identifying that certain action classes allow for "factored inference." For instance, if an action is a permutation (a 1:1 mapping of world states), the logic distributes perfectly over connectives like AND ($\wedge$), OR ($\vee$), and NOT ($\neg$), enabling linear-time updates.

Key results include:

  • Exactness: The algorithms are mathematically exact for many common scenarios, not just approximations.
  • Complexity: Permutation domains allow linear-time updates after pre-compilation. Unit-Case actions have an update complexity of $O(R \cdot k^2 + R \cdot k \cdot |\psi|)$, where $R$ is the max predicate arity, $k$ is the number of axioms, and $|\psi|$ is the formula size.
  • STRIPS Compatibility: The method successfully extends to 2-FO-CNF formulas, a common logical structure in planning.

Limitations and Future Directions

While these algorithms represent a significant step forward, some challenges remain. The method is most effective when the belief state is "FOL-definable"; extremely complex cases might require Second-Order Logic. Additionally, extending these filters to handle complex function symbols (e.g., continuous values like weight) and more robust "open systems" where the universe of objects constantly expands are areas for future research.

Summary updated

BibTeX
@inproceedings{shirazi2005first,
  author = {Afsaneh Shirazi and Eyal Amir},
  title = {{First-Order Logical Filtering}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
}
Figure