Joint Demosaicing and Denoising with Perceptual Optimization on a Generative Adversarial Network

Weisheng Dong, Ming Yuan, Xin Li, Guangming Shi · OpenReview

Abstract

Visual perception requires solving complex problems of reconstruction, binding, and invariance. We propose the "Homological Parity Hypothesis," which posits that the brain's internal representations are partitioned by topological dimension. Even-dimensional homology groups ($H_{even}$) act as stable "scaffolds" for object identity, while odd-dimensional groups ($H_{odd}$) represent the dynamic "flows" of temporal and spatial transformations. This framework provides a unified mathematical explanation for how the brain maintains a stable, coherent representation of the world through a Memory-Amortized Inference (MAI) cycle governed by the topological law $\partial^2 = 0$. Our theoretical synthesis suggests that these parity-based structures map onto established neurobiological streams and offer a computationally efficient solution to the inverse problem of vision.

Introduction

The human visual system effortlessly solves three major computational challenges: the inverse problem (reconstructing 3D from 2D), the binding problem (integrating disparate features), and object invariance (recognizing identity across transformations). Traditionally, neuroscience has treated these as distinct modular problems. This paper introduces a theoretical framework based on algebraic topology, suggesting these are all manifestations of a single underlying mathematical process: the sorting and integration of topological parity.

The Homological Parity Hypothesis

The core of this framework is the division of latent representations based on their topological parity. In homology theory, different dimensions represent different types of connectivity and structure.

The Parity Hypothesis explains how even-dimensional scaffolds bind "wholes" while odd-dimensional flows run "processes," all governed by the $\partial^2=0$ consistency rule.
  • Even-dimensional homology ($H_{even}$): These are "Scaffolds"—static, integrative structures. For example, $H_0$ represents connected components and $H_2$ represents 3D voids or cavities. These serve as the "what" or templates for objects, providing a library of "wholes" that simplify the inverse problem into a verification task.
  • Odd-dimensional homology ($H_{odd}$): These are "Flows"—dynamic, recurrent paths. $H_1$ loops handle the "where" and "when," representing the transformations an object undergoes over time or space.

This parity split maps onto the well-known Ventral ("What") and Dorsal ("Where") streams in the brain, providing a mathematical basis for this functional division.

Memory-Amortized Inference (MAI)

To implement this theory, we propose the Memory-Amortized Inference (MAI) cycle. This is a continuous loop where the brain alternates between bootstrapping dynamic content and retrieving stable context to minimize uncertainty about the environment.

The Amortized Inference Cycle shows the interaction between $H_{odd}$ flows (context) and $H_{even}$ scaffolds (content) through bootstrapping and retrieval operators.

In this cycle, the Bootstrapping Operator propagates dynamic information to update context ($H_{odd}$), while the Retrieval Operator integrates and binds features into stable scaffolds ($H_{even}$). The entire process is constrained by the Global Closure rule ($\partial^2 = 0$), ensuring topological consistency and preventing the accumulation of representational errors.

Key Insights

The $\partial^2 = 0$ Rule

The topological law that "the boundary of a boundary is zero" serves as a fundamental constraint for neural accounting. It ensures that the brain's internal model is a closed, self-consistent loop. This rule allows the brain to create a stable representation of reality despite ambiguous sensory input.

Binding and Invariance

  • Binding as Resonance: Instead of a "master neuron," features like color and shape are bound when they jointly excite a pre-existing even-dimensional topological scaffold ($b_2$).
  • Invariance through Parity Sorting: The brain recognizes an object by mathematically factoring out the "flows" (odd-dimensional transformations) from the "scaffold" (even-dimensional identity). This "untangling" of the manifold allows for robust recognition across varying angles and distances.

Conclusion

The Homological Parity Hypothesis offers a qualitative resolution to long-standing paradoxes in perception. By transforming complex 3D reconstruction into a template-matching task and the binding problem into a parity-sorting task, the brain avoids the combinatorial explosions typical of bottom-up computational models. While empirical verification in neural populations—such as Polychronous Neural Groups (PNGs)—is still required, this framework suggests a universal architecture for intelligence that may extend beyond vision to language and motor control.

Summary updated

Abstract

Image demosaicing - one of the most important early stages in digital camera pipelines - addressed the problem of reconstructing a full-resolution image from so-called color-filter-arrays. Despite tremendous progress made in the pase decade, a fundamental issue that remains to be addressed is how to assure the visual quality of reconstructed images especially in the presence of noise corruption. Inspired by recent advances in generative adversarial networks (GAN), we present a novel deep learning approach toward joint demosaicing and denoising (JDD) with perceptual optimization in order to ensure the visual quality of reconstructed images. The key contributions of this work include: 1) we have developed a GAN-based approach toward image demosacing in which a discriminator network with both perceptual and adversarial loss functions are used for quality assurance; 2) we propose to optimize the perceptual quality of reconstructed images by the proposed GAN in an end-to-end manner. Such end-to-end optimization of GAN is particularly effective for jointly exploiting the gain brought by each modular component (e.g., residue learning in the generative network and perceptual loss in the discriminator network). Our extensive experimental results have shown convincingly improved performance over existing state-of-the-art methods in terms of both subjective and objective quality metrics with a comparable computational cost.
BibTeX
@misc{dong2018joint,
  author = {Weisheng Dong and Ming Yuan and Xin Li and Guangming Shi},
  title = {{Joint Demosaicing and Denoising with Perceptual Optimization on a Generative Adversarial Network}},
  year = {2018},
  eprint = {1802.04723},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.04723},
}
Figure