GenMatter: Perceiving Physical Objects with Generative Matter Models

Eric Li, Arijit Dasgupta, Yoni Friedman, Mathieu Huot, Vikash Mansinghka, Thomas O'Connell, William T. Freeman, Joshua B. Tenenbaum

TL;DR

GenMatter is a hierarchical generative model that unifies motion-based scene understanding across abstract random dots, camouflaged textures, and naturalistic videos. By framing perception as probabilistic inference over 3D particles and clusters, it matches or outperforms deep learning baselines without requiring any task-specific training.

What Problem Does This Paper Address?

Human vision is incredibly versatile: we can effortlessly spot a camouflaged animal moving in the brush, track objects in a busy city street, or perceive structure from a sparse cluster of moving dots (random dot kinematograms).

In contrast, modern computer vision systems are brittle and specialized. A model trained to track pixels in natural RGB videos will completely fail on abstract dot patterns, while models designed for optical flow struggle with heavy camouflage. Existing systems lack a unified computational framework that can generalize across these diverse settings. The authors of GenMatter bridge this gap by looking at how humans perceive "moving matter" as hierarchically organized, independently moveable chunks.

Methods

GenMatter models the visual world using a two-level hierarchical generative framework:

  1. Clusters: Represent coherent, independently moving physical entities. Each cluster is parameterized by a spatial Gaussian distribution and a rigid-body transformation.
  2. Particles: Local regions of matter (represented as smaller Gaussians) sampled from the parent clusters.
  3. Data Points: Position-velocity observations derived from preprocessing raw video into dense depth and optical flow.
Figure 2. GenMatter inference pipeline. RGB video is preprocessed (gray arrows) to extract dense depth and optical flow, lifting each pixel to a 3D point tagged with its velocity. The blue box depicts the GenMatter generative model (Sec. 3), which represents a scene as a hierarchy of clusters and particles that emit moving 3D points. Black arrows indicate the generative direction (clusters generate particles, which generate 3D points). Hollow arrows indicate the inference algorithm (Sec. 4), which conditions on observed 3D points to infer particle and cluster parameters. Red arrows depict motion at the point, particle, and cluster layers.

Instead of relying on deep neural networks to directly predict tracks, GenMatter treats perception as inverting this generative model. It uses a hardware-accelerated inference engine based on parallelized block Gibbs sampling implemented in the GenJAX framework. For video tracking, it extends to a sequential MCMC (approximate Bayesian filtering) pipeline that propagates particle positions across frames while re-inferring cluster assignments on the fly to handle non-rigid deformations.

Datasets

The model was evaluated across three distinct domains:

  • 2D Random Dot Kinematograms (RDKs): 27 psychophysical stimuli generated using a 2D physics engine (PyMunk), featuring object-bound and background dots that either move rigidly or flicker randomly.
  • Gestalt Camouflage Dataset (New): 140 short videos featuring 20 distinct 3D object geometries rotating against backgrounds with perfectly matched textures, making them invisible in static frames.
  • TAP-Vid-DAVIS: A standard benchmark for tracking any point in naturalistic, deformable real-world RGB videos.

Key Insights and Ideas

  • Hierarchical Grouping over Local Smoothness: Traditional tracking regularizers like As-Rigid-As-Possible (ARAP) penalize distance changes within a fixed neighborhood, which fails at object boundaries. GenMatter jointly infers object-centric clusters and rigid motion, naturally accommodating discontinuous motion boundaries.
Figure 3. ARAP vs. GenMatter on a two-object scene. ARAP incurs penalties from fixed distance cutoff r, while GenMatter infers cluster assignments (green), modeling discontinuous motion.
  • Zero-Shot Generalization via Probabilistic Priors: Because the core engine relies on structured probabilistic priors rather than data-driven learning, the exact same code runs on abstract dots and real-world video without retraining.
  • Capturing Graded Uncertainty: Because it samples from a posterior distribution rather than outputting a single deterministic mask, GenMatter naturally captures human-like uncertainty in ambiguous visual conditions.

Key Results

  • Human-like Perception: On the RDK dataset, GenMatter’s object judgments closely mirrored human psychophysical data ($r^2 = 0.86$), capturing the exact conditions where humans experience perceptual ambiguity.
GenMatter's internal representation closely tracks human psychophysical judgments on random dot kinematograms.
  • Breaking Camouflage: On the Gestalt dataset, GenMatter achieved a segmentation accuracy of 0.94 (0.72 Jaccard index), significantly outperforming competitive deep learning baselines like FlowSAM (0.87 accuracy) and SegAnyMo (0.33 accuracy).
  • Competitive Natural Video Tracking: On TAP-Vid-DAVIS, GenMatter achieved a matter-weighted Jaccard score of 0.79, matching the performance of CoTracker3 (0.78), a fully supervised transformer-based tracker.
  • Compute-Accuracy Tradeoffs: Because data points sit at the bottom of the hierarchy, the authors could aggressively subsample input pixels. Subsampling by 1/128 delivered a 12× speedup (9.8 FPS) with no statistically significant loss in tracking accuracy.

Limitations and Future Work

While powerful, GenMatter currently lacks an explicit physics engine for dynamics; it cannot predict forward trajectories through complete, long-term occlusions. Additionally, the model uses a fixed particle count ($L$), meaning it struggles when new objects enter or leave the scene. The authors suggest that integrating physics-based game engines and dynamic particle allocation via Bayesian nonparametrics are promising next steps.

Summary updated

BibTeX
@inproceedings{li2026genmatter,
  author = {Eric Li and Arijit Dasgupta and Yoni Friedman and Mathieu Huot and Vikash Mansinghka and Thomas O'Connell and William T. Freeman and Joshua B. Tenenbaum},
  title = {{GenMatter: Perceiving Physical Objects with Generative Matter Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Y7ll666gBA},
}
Figure