Fractal Pyramid Networks

Zhiqiang Deng, Huimin Yu, Yangqi LongarXiv 2021

TL;DR

This paper introduces Fractal Pyramid Networks (PFNs), a novel architecture for pixel-wise prediction tasks that moves away from the traditional encoder-decoder structure. Instead of creating a single, large-channel semantic feature, PFNs process information through multiple parallel pathways, generating several smaller-channel features. This approach leads to improved performance, better visual quality, and fewer parameters, particularly in self-supervised monocular depth estimation.

What Problem Does This Paper Address?

The dominant architecture for pixel-wise prediction tasks like depth estimation and semantic segmentation is the encoder-decoder structure. This approach typically involves an encoder that compresses the input into a high-level, low-resolution, large-channel feature representation, followed by a decoder that upsamples this feature to produce the final output. While effective, this architecture faces challenges:

  • Limited Global Context: Classification backbones, often used in encoders, are not inherently designed to capture the broad spatial context crucial for pixel-wise tasks.
  • Sub-optimal Feature Usage: Skip connections, used to recover resolution, can lead to features being used for both high-level semantic understanding and low-level detail recovery, potentially creating a bottleneck.
  • Parameter Inefficiency: Many state-of-the-art methods rely on large, pre-trained classification models as backbones, which can be computationally expensive and may not be optimal for the specific prediction task.

The authors aim to address these limitations by proposing a new architecture that encodes information differently and potentially more efficiently.

Methods

The core innovation is the Fractal Pyramid Network (PFN). Key components include:

  • Fractal Architecture: Inspired by fractal structures, the network processes information recursively across multiple scales. The smallest scale has the deepest layers, allowing for richer feature extraction at finer resolutions.
  • Multiple Information Pathways: Unlike encoder-decoder networks that follow a single pipeline, PFNs utilize multiple parallel pathways. This allows for diverse processing of information.
  • Small-Channel Feature Encoding: Instead of aiming for a single large-channel semantic feature, PFNs encode information into multiple separate, smaller-channel features. This is hypothesized to be more efficient and allow for better preservation of details.
  • Separation and Aggregation (SA) Module: This module is crucial for managing the multiple pathways. It automatically splits features into "private" (scale-specific) and "shared" (inter-scale communication) components. This allows the network to learn which features are unique to a scale and which can be shared.
  • Fusion Block: This block facilitates the exchange of signals between features at different scales. The paper proposes two types: channel-wise weighted sum (CWS) and concatenation-to-convolution (CTC). They found a combination of CWS for internal fusion and CTC for the final output fusion yields the best results.
  • No Backbone: PFNs do not rely on pre-trained classification models as backbones, making them potentially more lightweight and task-specific.

Datasets

  • KITTI Dataset: Used for training and evaluating self-supervised monocular depth estimation.
  • Virtual GTA5 Dataset: Used for training semantic segmentation models.
  • Cityscapes Dataset: Used for testing semantic segmentation models, demonstrating domain generalization.

Key Insights and Ideas

  • Rethinking Feature Encoding: The most significant insight is the shift from a single, large-channel semantic feature to multiple, smaller-channel features. This challenges the conventional wisdom in deep learning for pixel-wise tasks.
  • Fractal Structure for Multi-Scale Processing: Integrating a fractal structure naturally handles multi-scale information, allowing for a larger receptive field at smaller scales to capture global context.
  • Separation of Concerns (Private vs. Shared Features): The SA module's ability to distinguish between scale-specific and inter-scale features is key to managing the complexity of multiple pathways and scales.
  • Improved Visual Quality: The PFN architecture leads to significantly better visual quality in depth predictions, with shapes and details being well-reserved.
  • Domain Generalization: The architecture shows promise in handling domain shifts, as demonstrated by its performance on semantic segmentation from synthetic to real-world data.

Key Results

  • Self-supervised Monocular Depth Estimation (KITTI):
    • PFNs achieve competitive or superior performance compared to state-of-the-art methods, even without ImageNet pretraining.
  • Achieved the best RMSE across many methods, both pretrained and unpretrained.
  • Significantly fewer parameters: 3.1x smaller than Monodepth2 (ResNet18) and 6.6x smaller than DispNet.
  • Qualitatively, PFNs produce depth maps with much better visual quality, preserving object shapes.
  • Temporal Consistency: PFNs demonstrate superior temporal consistency in video sequences, outperforming existing methods on proposed TAC and TRC metrics.
  • Semantic Segmentation (GTA5 to Cityscapes):
    • PFNs achieve the best mIoU compared to FCN and DeepLabv3.
  • Qualitative results show more refined boundaries and better capture of global structure.

Limitations and Future Work

  • Mosaic Artifacts: Using CWS fusion in the final output layer can lead to mosaic artifacts, which are effectively eliminated by using CTC fusion.
  • Gradient Stability: For very large numbers of scales (S), long convolution paths can lead to gradient explosion. The authors address this by clipping gradient norms.
  • Human Brain Analogy: The paper briefly mentions that real neurons have energy limits, and PFNs attempt to mimic this by clipping SA module outputs to prevent "nan" phenomena and enhance robustness. This could be an area for further exploration.
  • Future Work: The authors suggest that PFNs can be applied to other pixel-wise prediction tasks and that their architecture can be complementary to existing methods. The exploration of different SA and fusion block combinations is also a potential avenue.

Summary updated

Abstract

We propose a new network architecture, the Fractal Pyramid Networks (PFNs) for pixel-wise prediction tasks as an alternative to the widely used encoder-decoder structure. In the encoder-decoder structure, the input is processed by an encoding-decoding pipeline that tries to get a semantic large-channel feature. Different from that, our proposed PFNs hold multiple information processing pathways and encode the information to multiple separate small-channel features. On the task of self-supervised monocular depth estimation, even without ImageNet pretrained, our models can compete or outperform the state-of-the-art methods on the KITTI dataset with much fewer parameters. Moreover, the visual quality of the prediction is significantly improved. The experiment of semantic segmentation provides evidence that the PFNs can be applied to other pixel-wise prediction tasks, and demonstrates that our models can catch more global structure information.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
KITTI · self-supervised monocular depth estimationPFN (unpretrained)abs REL0.111-0.02 vs baselineself-supervised · framework=Monodepth2 · pretraining=unpretrained
Source quote
L183: Table~\ref{Tab:Compare} shows the results in which our models get comparable results with the state-of-the-art. Without ImageNet pretrained, the proposed PFN is much better than the Monodepth2 with ResNet18 backbone, from abs REL 0.132 to 0.111. Moreover, our model gets the best RMSE around those networks whether they are pretrained or not. Note that the parameters of our model are 3.1× smaller than the DepthNet with ResNet18 and 6.6× smaller than the DispNet, this indicates that our model has a stronger representation ability. Although the PackNet-SfM~\cite{guizilini20203d} gets a better \delta_1, our model outperforms it in the rest of metrics despite the parameters of the PackNet-SfM is 26.6× more than our model's. Figure~\ref{Fig:DepthViz} qualitatively illustrates the performance of our model, in which our model gets significantly better visual quality. The shape of the object (\eg the thin poles and the traffic signs) is well reserved.
KITTI 2015 · temporal consistency evaluationPFN (sc=18, pc=54)TAC (Temporal Absolute Consistency; lower is better)0.7373-0.04 vs baselinepc=54 · sc=18 · scoring=valid-flow pixels only · image-pairs=200 · pretraining=unpretrained
Source quote
L211: PFN (sc=18, pc=54) │ 0.7373 │ 0.1284
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
KITTI · self-supervised monocular depth estimationMonodepth2 (ResNet18) baselineabs REL0.132self-supervised · backbone=ResNet18 · framework=Monodepth2
Source quote
L183: Table~\ref{Tab:Compare} shows the results in which our models get comparable results with the state-of-the-art. Without ImageNet pretrained, the proposed PFN is much better than the Monodepth2 with ResNet18 backbone, from abs REL 0.132 to 0.111. Moreover, our model gets the best RMSE around those networks whether they are pretrained or not. Note that the parameters of our model are 3.1× smaller than the DepthNet with ResNet18 and 6.6× smaller than the DispNet, this indicates that our model has a stronger representation ability. Although the PackNet-SfM~\cite{guizilini20203d} gets a better \delta_1, our model outperforms it in the rest of metrics despite the parameters of the PackNet-SfM is 26.6× more than our model's. Figure~\ref{Fig:DepthViz} qualitatively illustrates the performance of our model, in which our model gets significantly better visual quality. The shape of the object (\eg the thin poles and the traffic signs) is well reserved.
KITTI 2015 · temporal consistency evaluationZhao et al. (ImageNet-pretrained) baselineTAC (Temporal Absolute Consistency; lower is better)0.7734method=Zhao et al. · scoring=valid-flow pixels only · image-pairs=200 · pretraining=ImageNet
Source quote
L209: Zhao~\etal~\cite{zhao2020towards} \dag │ 0.7734 │ 0.1339
Cityscapes · semantic segmentation (trained on GTA5FCN (ResNet50) baselinemIoU34.21domain-generalization · backbone=ResNet50 · resolution=512x256 · training-dataset=GTA5
Source quote
L267: FCN (ResNet50) │ 33.0M │ 89.0 │ 31.6 │ 78.9 │ 22.5 │ 19.7 │ 20.1 │ 13.8 │ 6.72 │ 77.1 │ 21.4 │ 83.3 │ 40.7 │ 9.79 │ 76.0 │ 24.8 │ 13.2 │ 8.48 │ 12.9 │ 0.00 │ 34.21
BibTeX
@misc{deng2021fractal,
  author = {Zhiqiang Deng and Huimin Yu and Yangqi Long},
  title = {{Fractal Pyramid Networks}},
  year = {2021},
  eprint = {2106.14694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.14694},
}
Figure