PPMStereo: Pick-and-Play Memory Construction for Consistent Dynamic Stereo Matching

Yun Wang, Junjie Hu, Qiaole Dong, Yongjian Zhang, Yanwei Fu, Tin Lun Lam, Dapeng Wu · OpenReview

Abstract

Temporally consistent depth estimation from stereo video is critical for real-world applications such as augmented reality, where inconsistent depth estimation disrupts user immersion. Despite its importance, this task remains challenging due to the difficulty in modeling long-term temporal consistency efficiently. Previous methods attempt to address this by aggregating spatio-temporal information but face a fundamental trade-off: limited temporal modeling provides only modest gains, whereas capturing long-range dependencies significantly increases computational cost. To address this limitation, we introduce a memory buffer for modeling long-range spatio-temporal consistency while achieving efficient dynamic stereo matching. Inspired by the two-stage decision-making process in humans, we propose a Pick-and-Play Memory (PPM) construction module for dynamic Stereo matching, dubbed as PPMStereo. PPM consists of a 'pick' process that identifies the most relevant frames and a 'play' process that weights the selected frames adaptively for spatio-temporal aggregation. This two-stage collaborative process maintains a compact yet highly informative memory buffer while achieving temporally consistent information aggregation. Extensive experiments validate the effectiveness of PPMStereo, demonstrating state-of-the-art performance in both accuracy and temporal consistency. Notably, PPMStereo achieves 0.62/1.11 TEPE on the Sintel clean/final benchmarks with fewer computational costs.

Introduction

Stereo matching—estimating depth by comparing images from two slightly offset cameras—is a cornerstone of computer vision. While deep learning has made static stereo matching highly accurate, applying these models to dynamic video often results in "flickering" artifacts and blurred edges. The core challenge is a fundamental trade-off: short-term models are fast but lack context for long-term consistency, while long-term models provide better consistency at a prohibitive computational cost.

Comparison between existing alignment-based methods and the proposed memory-based approach.

PPMStereo aims to break this trade-off by building a compact, high-quality memory buffer that captures long-range relationships efficiently, moving beyond simple frame-to-frame alignment.

Methodology

The core of PPMStereo is the Pick-and-Play Memory (PPM) module, integrated into a RAFT-style iterative refinement backbone. This process mimics human decision-making through two distinct stages: selection and aggregation.

The overall architecture of PPMStereo, illustrating the integration of the Memory Pick and Memory Play processes within the iterative refinement framework.

1. The "Pick" Process (Selection)

Instead of using every frame in a video sequence, the model uses a Quality Assessment Module (QAM) to identify the $K$ most relevant frames from a larger set of $T$ candidates. The QAM evaluates three criteria:

  • Confidence: How reliable is the disparity estimation for this frame?
  • Similarity: How semantically related is this frame to the current one?
  • Redundancy: To ensure diversity, the model penalizes frames that have been selected too frequently, preventing the memory from becoming "clogged" with nearly identical information.

2. The "Play" Process (Aggregation)

Once the best frames are picked, the model adaptively weights them based on their learned quality scores. It incorporates temporal position encoding to maintain chronological awareness, even when selecting frames from the distant past. An attention-based "read-out" mechanism queries this high-quality memory buffer to produce aggregated cost features, which are then fed into a GRU-based decoder to regress the final disparity map.

Key Insights

  • Diversity over Density: Simply adding more frames to a memory buffer leads to diminishing returns. By explicitly filtering for redundancy, PPMStereo maintains a diverse set of references that help resolve occlusions more effectively.
  • Confidence-Driven Updates: By supervising confidence maps during training, the model learns to prioritize high-certainty features from the past to correct current errors.
  • Efficiency as a Feature: By keeping the active memory buffer compact (typically $K=5$ frames), the model achieves superior results while using less GPU memory and fewer computational cycles (MACs).

Experimental Results

PPMStereo sets a new benchmark for dynamic stereo matching across several datasets, including SceneFlow, Dynamic Replica, and Sintel.

  • Accuracy: On the Sintel dataset, it achieved a 17.3% reduction in Temporal End-Point Error (TEPE) compared to the previous state-of-the-art, BiDAStereo.
  • Consistency: It significantly reduced 3-pixel error rates (by approximately 10%) on both Sintel and Dynamic Replica.
  • Generalization: The model performed robustly on real-world outdoor and indoor video from the South Kensington dataset, even when trained only on synthetic data.

Conclusion

PPMStereo introduces an efficient and effective memory mechanism for dynamic stereo matching. By balancing long-range temporal consistency with computational efficiency through its Pick-and-Play module, it provides a scalable solution for high-quality video depth estimation. Future work will explore better distinction between dynamic objects and static backgrounds and improving performance on textureless or transparent surfaces.

Summary updated

BibTeX
@inproceedings{wang2025ppmstereo,
  author = {Yun Wang and Junjie Hu and Qiaole Dong and Yongjian Zhang and Yanwei Fu and Tin Lun Lam and Dapeng Wu},
  title = {{PPMStereo: Pick-and-Play Memory Construction for Consistent Dynamic Stereo Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=MaglIUQKVX},
}
Figure