Separate from Observation: Unsupervised Single Image Layer Separation

Yunfei Liu, Feng LuarXiv 2019

TL;DR

Single Image Layer Separation (SILS)—such as removing reflections or splitting an image into albedo and shading—traditionally requires hard-to-get, perfectly paired training data. This paper introduces an unsupervised framework that achieves state-of-the-art separation by mapping images into independent latent spaces using self-supervision and cycle consistency, completely eliminating the need for ground-truth triplets.

What Problem Does This Paper Address?

Single Image Layer Separation (SILS) aims to decompose a single image into its underlying physical components. Common examples include separating a photo into a clean background and an unwanted window reflection, or splitting an image into its intrinsic albedo (surface color) and shading (lighting) layers.

Figure 1: Examples of single image layer separation: reflec- tion separation and intrinsic image decomposition.

This task is fundamentally ill-posed because an infinite number of layer combinations can sum up or multiply to form the exact same input image. While deep learning has drastically improved performance, standard convolutional neural networks (CNNs) rely heavily on supervised training with perfectly aligned "triplets" (the blended image plus both individual ground-truth layers). Collecting these triplets for real-world scenes is incredibly difficult and tedious. As a result, existing methods are often forced to rely on unrealistic synthetic data or restrictive assumptions, such as requiring multiple images of the exact same object under different lighting conditions.

Methods

The authors propose an unsupervised SILS method that trains on independent, unpaired images collected from three distinct domains: the blended inputs ($\mathcal{X}$), layer 1 ($\mathcal{Y}$), and layer 2 ($\mathcal{Z}$).

The architecture uses a two-stream network consisting of two encoders ($E_Y, E_Z$) and two decoders/generators ($G_Y, G_Z$), alongside domain-specific GAN discriminators ($D_Y, D_Z$). The core novelty lies in enforcing two key mathematical assumptions during training:

  1. Shared Information Consistency: The blended image $x$ and its true layer component $y$ share a common latent space $\mathcal{F}_y$. Similarly, $x$ and layer $z$ share a latent space $\mathcal{F}_z$.
  2. Layer Independence: The features extracted into $\mathcal{F}_y$ and $\mathcal{F}_z$ must be as distinct from each other as possible.
Figure 2: (a) Illustrations of the shared information consistency and layer independence assumptions. EY, EZ are two encoding functions that map images into different and independent latent spaces (Fy for square and Fx for circle). Intuitively speaking, the square features in both x and y go to the latent space Fy, and the circle features in both x and z go to the latent space Fz. In this manner, the method learns how to separate information from x. (b) The overall framework of our unsupervised SILS method. The encoder/decoder networks EY, EZ, GY and GZ are implemented by using CNNs. Following our two assumptions, we utilize the cycle consistency constraint, and also the self-supervision learning. The ∼indicates where we add adversarial discriminators for evaluating whether the generated images are realistic.

To implement this without ground truth, they introduce a Self-Supervision (SS) loss that minimizes the distance between features of the same domain while maximizing the distance between the two latent spaces using a modified sigmoid function. They couple this with a Cycle Consistency (CC) loss to ensure a tight loop: the separated layers must perfectly recombine to reconstruct the original image, and re-separating that reconstructed image must yield the exact same layers.

Datasets

The method was evaluated on three distinct datasets:

  • Synthetic Dataset: 4,000 training and 1,000 test images featuring randomly rendered, blended combinations of basic square and circle shapes.
  • MIT Intrinsic Dataset: 220 real-world images used for intrinsic image decomposition. To ensure a strictly unsupervised setup, the dataset was split into two non-overlapping scene subsets: input images were taken only from the first subset, and layer images (albedo/shading) only from the second.
  • Reflection Removal Benchmark Dataset: 454 real-world images, split similarly to the MIT dataset to prevent any paired triplet training.

Key Insights and Ideas

  • Decoupling via Latent Spaces: Instead of trying to map pixels directly from one domain to two domains simultaneously (a task where standard image-to-image translation networks like CycleGAN typically fail), the secret is to project them into independent latent feature spaces first.
  • The Power of Balance: The self-supervision loss requires a careful balance between minimizing intra-domain distance and maximizing inter-domain distance. The authors found that an equal weighting ($\frac{\lambda_1+\lambda_2}{\lambda_3} = 1$) yields the lowest mean squared error.
  • Ablation Revelations: Both self-supervision and cycle consistency are non-negotiable. Removing cycle consistency caused the final error to more than double, proving that adversarial GAN losses alone cannot preserve the physical correctness of layer decomposition.

Key Results

  • Intrinsic Image Decomposition: On the MIT Intrinsic dataset, the proposed unsupervised method achieved an average Mean Squared Error (MSE) of 0.0154, significantly outperforming established unsupervised baselines like CycleGAN (0.0272) and UNIT (0.0207). Remarkably, it performed comparably to—and sometimes better than—fully supervised methods like MSCR (0.0165).
  • Reflection Removal: The method achieved state-of-the-art unsupervised performance on real-world reflection data, scoring a background Structural Similarity Index (SSIM) of 0.821 and a PSNR of 20.47, visibly producing cleaner background images than competing methods.
  • Multi-Layer Scaling: The authors successfully extended the framework to a three-layer separation task (separating blended squares, circles, and triangles), demonstrating the scalability of the latent space independence assumption.

Limitations and Future Work

The limitations are not explicitly detailed in the paper. However, while the framework successfully handles multi-layer separation under controlled synthetic conditions (up to three layers), scaling this to highly complex real-world scenes with more than two heavily overlapping, irregular layers remains an open and challenging direction.

Summary updated

BibTeX
@misc{liu2019separate,
  author = {Yunfei Liu and Feng Lu},
  title = {{Separate from Observation: Unsupervised Single Image Layer Separation}},
  year = {2019},
  eprint = {1906.00734},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.00734},
}
Figure