Restora-Flow: Mask-Guided Image Restoration with Flow Matching
Arnela Hadzic, Franz Thaler, Lea Bogensperger, Simon Johannes Joham, Martin Urschler
TL;DR
Restora-Flow tackles mask-based image restoration by marrying flow matching with a mask-guided sampling strategy and a trajectory correction mechanism, all in a training-free framework. The method casts restoration as a MAP problem and uses a data-consistency driven fusion and learned trajectory corrections to keep generated content aligned with observed degraded regions. Empirically, it achieves superior perceptual quality (LPIPS) and competitive, often faster, reconstruction times across denoising, inpainting, and super-resolution on natural and medical datasets, outperforming both diffusion-based baselines and prior flow-based priors. This yields practical impact for fast, high-quality restoration in diverse domains, including medical imaging, where rapid and reliable reconstruction is critical.
Abstract
Flow matching has emerged as a promising generative approach that addresses the lengthy sampling times associated with state-of-the-art diffusion models and enables a more flexible trajectory design, while maintaining high-quality image generation. This capability makes it suitable as a generative prior for image restoration tasks. Although current methods leveraging flow models have shown promising results in restoration, some still suffer from long processing times or produce over-smoothed results. To address these challenges, we introduce Restora-Flow, a training-free method that guides flow matching sampling by a degradation mask and incorporates a trajectory correction mechanism to enforce consistency with degraded inputs. We evaluate our approach on both natural and medical datasets across several image restoration tasks involving a mask-based degradation, i.e., inpainting, super-resolution and denoising. We show superior perceptual quality and processing time compared to diffusion and flow matching-based reference methods.
