Abstract
While biological vision relies heavily on feedback loops to iteratively refine perception, most artificial neural networks process data in a single, static forward pass. This paper introduces a predictive coding-inspired feedback mechanism into a standard U-Net architecture, routing internal states back to inputs to dynamically refine segmentation masks. By incorporating biologically motivated stability constraints—specifically softmax projection and exponential decay—the resulting recurrent model demonstrates superior performance over standard feedforward networks in high-noise and low-data regimes.
Introduction
Standard deep learning models are fundamentally static: an image passes through a sequence of layers, a prediction is made, and the process terminates. If the initial prediction is slightly inaccurate due to noise or visual ambiguity, the model lacks a mechanism to "take a second look" or revise its hypothesis.
In contrast, the human brain is highly dynamic. According to predictive coding theory, the brain constantly generates top-down predictions and compares them against bottom-up sensory inputs. The resulting error signal is used to iteratively update internal representations. While previous attempts have been made to introduce recurrence into neural networks, they often limit feedback to final layers or suffer from training instabilities like vanishing or exploding gradients. This work addresses these challenges by building a stable, full-network feedback loop for iterative segmentation refinement.
Architecture and Stability Mechanisms
The authors modify a standard U-Net to create a "Feedback U-Net." The internal state of the model is partitioned into segmentation neurons (which produce the output mask) and feedback neurons. At each timestep, the feedback neurons are concatenated with the original input image and passed back through the network. This process computes an error signal that adjusts the internal state for the subsequent timestep.
To ensure the feedback loop remains stable and does not diverge, two crucial operations are introduced:
- Softmax Projection: This normalizes feedback neurons, ensuring their values remain bounded within a probability simplex.
- Exponential Decay: The error signal is decayed over time using a matrix exponential. This forces the system's internal state to eventually converge to a stable fixed point, preventing uncontrolled oscillations.
The model is trained using Backpropagation Through Time (BPTT) over the entire trajectory, optimizing the continuous path of refinement rather than just a single final output.
Experimental Setup
The model was evaluated on a custom synthetic segmentation dataset consisting of binary images of irregular polygons. To test the limits of the architecture, the authors introduced two primary variants:
- Noise Robustness: Gaussian noise of varying standard deviations ($\sigma$) was added to the images.
- Few-Shot Generalization: The training set size ($D$) was restricted to as few as 1 to 10 examples to test the model's ability to learn from minimal data.
Experimental Results
The feedback model demonstrated exceptional robustness compared to the feedforward baseline. As noise levels increased, the standard U-Net's performance collapsed toward near-random levels. In contrast, the recurrent model maintained a highly structured output, achieving an average F1-score of approximately 0.84 across all noise levels, compared to just 0.32 for the feedforward model.
In low-data regimes, the feedback model also showed a clear advantage. It achieved above-random performance with just two training examples, whereas the feedforward baseline required at least four examples to reach a similar threshold. This suggests that the iterative nature of the feedback loop allows the model to extract more meaningful features from limited samples.
Discussion and Key Insights
A central finding of this work is that the feedback network learns an implicit trajectory from a blank initial state to a refined ground truth. This is conceptually similar to diffusion models, but the trajectory emerges naturally from internal error correction rather than a predefined noise schedule. Effectively, the model learns "how to think" about an image over multiple steps.
Furthermore, the authors found that stability is as critical as accuracy. Principal Component Analysis (PCA) of internal logits revealed that without exponential decay and softmax projection, the internal state diverges wildly over time, even if the final mask appears accurate. Biological plausibility—specifically the use of top-down signals to filter noise—translates directly into computational robustness.
Conclusion and Future Work
While the Feedback U-Net shows promise on synthetic datasets, scaling this continuous internal evolution to high-resolution, complex datasets like ImageNet remains a challenge. The computational overhead of multiple forward passes per image and the need for perfectly tuned stability constraints are significant hurdles. However, this study serves as a proof-of-concept that properly constrained feedback loops can serve as a core design principle for building more robust and data-efficient artificial intelligence.
Summary updated