Metamorphic Forward Adaptation Network: Dynamically Adaptive and Modular Multi-layer Learning

Yu Sun, Vijja Wichitwechkarn, Ronald Clark, Mirko Kovac, Basaran Bahadir KocerTMLR 2024

TL;DR

This paper introduces the Metamorphic Forward Adaptation Network (MFAN), a novel neural network architecture that extends the biologically plausible Forward-Forward algorithm. MFAN addresses limitations of its predecessor by enabling dynamic adaptation to continuous data streams and supporting both classification and regression tasks, outperforming existing methods in dynamic environments.

What Problem Does This Paper Address?

Traditional back-propagation (BP) is the workhorse of deep learning, but it faces challenges with biological plausibility (e.g., weight symmetry, global error propagation) and robustness in dynamic, long-term learning scenarios. The Forward-Forward (FF) algorithm offered a more biologically plausible, layer-wise alternative by localizing computations. However, FF was limited to classification, struggled to match BP's performance, and was evaluated in restricted environments. This paper tackles the gap left by FF, aiming to create a more versatile and robust learning system that can handle continuous data, regression, and adapt to evolving environments, while retaining some of the biological plausibility of FF.

Methods

The core of MFAN is its Metamorphic Forward Adaptation Network architecture. It builds upon the layer-wise structure of FF but introduces several key innovations:

  • Contrastive Learning Core: MFAN uses a contrastive learning property as its foundation. Instead of relying on goodness measures like FF, it employs cosine similarity to pull representations of positive data (x and y_pos) together and push apart representations of negative data (x and y_neg) in a shared latent space.
  • Dynamic Layer Adjustment: MFAN dynamically selects which layer to use for the final prediction. This "adaptive depth" allows the network to adjust its complexity based on the task and data, offering more flexibility than fixed-depth architectures.
  • Continuous Data and Regression Support: By decoupling the input and output encoding and using a decoder to learn the reverse mapping, MFAN can process continuous data and perform regression, a capability FF lacked.
  • Local Weight Updates: Similar to FF, MFAN uses localized, layer-wise weight updates, enhancing biological plausibility.

Datasets

The paper uses the following datasets for evaluation:

  • MNIST: A standard dataset for digit classification.
  • CIFAR-10: A more challenging dataset for image classification.
  • Self-generated function regression datasets: Used to evaluate MFAN's performance on regression tasks, including extrapolation.
  • Self-generated continuous data stream tasks: Three distinct task streams (TS1, TS2, TS3) were created to simulate dynamic environments with evolving trigonometric and linear functions.

Key Insights and Ideas

  • Bridging the Gap: MFAN successfully bridges the gap between the performance of BP and the biological plausibility of FF, offering a compelling alternative for dynamic learning scenarios.
  • Contrastive Learning for Generalization: The use of contrastive learning appears to be a key driver for MFAN's strong generalization capabilities, especially in function regression.
  • Dynamic Depth is Key: The ability to dynamically adjust network depth is crucial for MFAN's adaptability, allowing it to perform better in complex and evolving environments compared to fixed-depth models.
  • Robustness to Noise: MFAN demonstrates superior robustness to noise compared to BP, likely due to its inherent design of using noisy negative samples during training.
  • Recovery from "Injury": MFAN shows a remarkable ability to recover and re-establish stable predictions after encountering abrupt changes in data distribution (the "injury" task in TS3), highlighting its resilience.

Key Results

  • Classification: MFAN achieved competitive classification performance on MNIST (91.65% accuracy) and CIFAR-10 (37.47% accuracy), outperforming FF but falling slightly short of BP. However, MFAN demonstrated more consistent performance and required less extensive tuning than FF to reach comparable accuracy.
  • Function Regression: MFAN consistently outperformed BP in function regression tasks, exhibiting significantly lower standard deviations in error rates and demonstrating superior stability and accuracy, especially in extrapolation.
  • Continuous Data Streams: In dynamic environments, MFAN showed superior adaptability and stability compared to BP, generating more accurate and stable predictions and effectively adapting to evolving tasks and recovering from disruptions.
  • Efficiency: While MFAN's training time was slightly longer than BP's, its inference times were comparable, and the performance gains in dynamic scenarios justified the computational investment.

Limitations and Future Work

  • Biological Plausibility: While MFAN incorporates several biologically plausible features, it still lacks others like spiking neurons and unsigned error signals. Future work could explore integrating these to further align MFAN with natural systems.
  • Theoretical Guarantees: The paper acknowledges the need for formal theoretical guarantees for the alignment of zx and Zypos, although empirical evidence strongly supports this assumption.
  • Hyper-parameter Tuning: MFAN's flexibility introduces additional hyper-parameters that require tuning.
  • Recurrent Dynamics: The authors suggest extending MFAN to incorporate recurrent-like processes to enhance learning efficiency and biological plausibility.
  • Investigating Recovery: Further investigation into MFAN's ability to recover from data stream shifts and previously encountered patterns is warranted.

Summary updated

BibTeX
@article{sun2024metamorphic,
  author = {Yu Sun and Vijja Wichitwechkarn and Ronald Clark and Mirko Kovac and Basaran Bahadir Kocer},
  title = {{Metamorphic Forward Adaptation Network: Dynamically Adaptive and Modular Multi-layer Learning}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=6RCs2tLsHq},
}
Figure