Abstract
We propose 'filter forests' (FF), an efficient discriminative approach for predicting continuous variables given a signal and its context. FF is designed for general signal restoration tasks that can be addressed via convolutional filtering. Unlike static filters, FF learns optimal filtering kernels to be applied to each data point, conditioned on the observation and its spatial or temporal context. Experiments demonstrate that FF achieves accuracy on par with or superior to state-of-the-art techniques, such as Markov Random Fields (MRF), while being several orders of magnitude faster.
Introduction
In computer vision, signal restoration—such as removing noise from a photo or refining a depth map—traditionally involves a trade-off between speed and quality. Probabilistic Field Models (like MRFs and CRFs) are excellent at preserving edges and spatial smoothness but are computationally expensive and difficult to train. Conversely, standard Decision Forests are fast but often treat pixels as independent entities, leading to spatially incoherent, "speckly" outputs. Filter Forests bridge this gap by combining the spatial awareness of complex filters with the raw speed of decision trees.
Methodology
The Filter Forest Architecture
The core innovation of Filter Forests is that the forest does not predict a single value; instead, it predicts which convolutional kernel should be applied to a specific pixel.
- Multi-Scale Features: At each split node, the model analyzes the local neighborhood of a pixel using PCA-based features and local variance estimates at multiple scales (from 3x3 to 11x11 patches).
- Routing: These features guide the pixel down the tree, which acts as a "router" categorizing the local context (e.g., identifying edges versus flat regions).
- Leaf Kernels: Every leaf node stores an optimal, pre-learned linear convolution kernel. When a pixel reaches a leaf, that specific kernel is applied to the local noisy patch to produce the final denoised value.
Data-Dependent Regularization
To ensure the kernels generalize well and respect image boundaries, the authors introduced a data-dependent regularization matrix ($\Gamma$). This matrix penalizes the filter for using pixels likely to be on the opposite side of an edge. By analyzing the variance between a candidate pixel and the center pixel during training, the model automatically learns edge-preserving filters.
Key Results
Filter Forests were evaluated across natural image denoising (BSDS500), depth image refinement (7 Scenes), and 1D signal filtering.
- Unprecedented Speed: For image denoising, FF achieved accuracy comparable to the state-of-the-art $RTF_{ALL}$ method but ran in 0.125 seconds compared to 1275 seconds—a 10,000x speedup.
- Denoising Quality: On the BSDS500 benchmark, FF achieved a PSNR of 29.65 dB (at $\sigma=20$), matching heavyweights like BM3D and EPLL.
Conclusion
Filter Forests offer a highly efficient framework for signal restoration by learning a dictionary of thousands of specialized filters and a fast hierarchical method to select them. While currently utilizing linear kernels, the framework is extensible to non-linear functions and broader tasks like edge detection, inpainting, and super-resolution. Its primary advantage remains its extreme efficiency, making high-quality restoration feasible for real-time applications.
Summary updated