TL;DR
NeSyAM is a new neurosymbolic framework that learns symbolic action models (the rules of how actions change the world) directly from raw, incomplete, or occluded visual traces. By framing the problem as an action-conditioned hidden Markov model, it successfully infers missing state information over time, significantly outperforming existing methods that assume perfect visibility.
What Problem Does This Paper Address?
For an AI agent to plan a sequence of actions to reach a goal, it needs an "action model"—a precise description of what must be true before an action can happen (preconditions) and how the world changes afterward (effects). Traditionally, human experts hand-coded these rules using symbolic frameworks like STRIPS. Because manual curation is expensive and error-prone, researchers have turned to neurosymbolic methods to automatically learn these rules from visual data (e.g., videos of a robot moving blocks).
However, existing approaches suffer from a major flaw: they assume full observability. They expect every image in a sequence to be perfectly clear and complete. In the real world, cameras get blocked, objects get occluded, or critical details slip out of frame. If a robot's gripper moves out of the camera's view while picking up a block, standard models fail because they cannot handle the missing visual evidence. This paper introduces NeSyAM (Neurosymbolic Action Model) to learn accurate action models even under partial observability.
Methods
NeSyAM bridges neural perception and symbolic reasoning by modeling visual execution traces as an action-conditioned hidden Markov model (HMM).
Key components include:
- Neural Perception & Emission: A neural network processes images ($z_t$) to predict a belief distribution over the hidden symbolic states ($S_t$).
- Exact STRIPS Semantics: Unlike prior state-of-the-art methods (like ROSAME-I) that rely on "fuzzy" logic relaxations, NeSyAM embeds exact Boolean STRIPS constraints directly into its transition probabilities. It mathematically enforces that an action cannot delete a predicate that is already false, or add one that is already true.
- Differentiable Sampling: Because calculating every possible symbolic state combination is combinatorially explosive, NeSyAM uses end-to-end differentiable Monte Carlo sampling to approximate the maximum likelihood of the trajectories. This allows the model to look at the entire sequence to resolve ambiguity in any single occluded frame.
Datasets
The authors evaluated NeSyAM across six visual planning domains:
- Grid-based Blocks World
- Gripper
- Logistics
- Synthesized-image Blocks World
- Towers of Hanoi
- 8-Puzzle
To test robustness, they subjected these domains to three observation regimes:
- (O1) Fully Observable: Unchanged visual traces.
- (O2) Random Occlusion: Randomly masked regions in non-initial images.
- (O3) Action Occlusion: Masking specific regions relevant to the executed action (simulating a robot arm blocking the camera's view of the object it is manipulating).
Key Insights and Ideas
- Temporal Consistency Beats Local Perception: The core "aha moment" is that a sequence of actions contains a narrative structure. If an object is visible in frame 1, hidden in frame 2, and visible again in frame 3, the laws of physics and logic dictate what happened in frame 2. By using an HMM structure, NeSyAM allows information to flow backward and forward through time to "fill in the blanks" of occluded images.
- The Failure of Mean-Field Approximations: Previous methods like ROSAME-I evaluate frames in isolation (a mean-field approximation). When an image is noisy or occluded, these models enforce local consistency on bad data, causing their action-model recovery performance to collapse.
Key Results
The authors compared NeSyAM against ROSAME-I, focusing on the recovery of relevant roles ($C_{rel}$)—the actual preconditions and effects defining an action.
- Robustness to Occlusion: Under full observability (O1), both models performed well. However, under random occlusion (O2) and action occlusion (O3), ROSAME-I's total relevant role recovery dropped significantly (from 87.00 down to 61.33 and 68.00, respectively). NeSyAM remained remarkably stable, recovering 88.33 (O2) and 89.33 (O3) out of 90 total relevant roles.
- Scalability: As the complexity of the environment grew (scaling Blocks World from 5 to 8 blocks), ROSAME-I's performance degraded sharply due to the increased number of ground atoms. NeSyAM maintained stable, fully correct relevant-role predictions across all domain sizes.
- Sample Efficiency: Testing revealed that using as few as $N=2$ sampled trajectories during training was sufficient to achieve peak recovery accuracy, keeping computational overhead low.
Limitations and Future Work
NeSyAM’s primary limitation is a tendency to generate false positives on unrelated (not-involved) predicates. This stems from an inherent identifiability issue when learning purely from positive traces (successful plans). If a certain condition happens to be true before and after every single action in the dataset, NeSyAM might mistakenly label it as a precondition because both explanations fit the data equally well.
The authors suggest that future work could resolve this ambiguity by introducing a "minimality assumption" (a prior bias favoring simpler action models) or by training on traces where unrelated predicates occasionally fluctuate in value.
Summary updated