Transferring Core Knowledge via Learngenes

Fu Feng, Jing Wang, Xin GengarXiv 2024 · DOI

TL;DR

This paper introduces "learngenes," a novel concept inspired by biological genes, to transfer only essential knowledge in neural networks, avoiding the "negative transfer" issue of traditional pre-training. Their Genetic Transfer Learning (GTL) framework evolves these learngenes, achieving significant accuracy improvements with drastically fewer parameters and demonstrating enhanced learning abilities and adaptability in descendant networks.

What Problem Does This Paper Address?

The current dominant paradigm for improving neural network performance on specific tasks is pre-training on large datasets, followed by fine-tuning. While effective, this approach transfers all learned knowledge, indiscriminately. This can lead to "negative transfer," where unnecessary or irrelevant information hinders performance on the target task. The authors draw an analogy to biological evolution: organisms don't pass on their entire lifetime of experiences, but rather essential genetic information that provides innate abilities and facilitates learning. They aim to replicate this efficient, targeted knowledge transfer in neural networks.

Methods

The core innovation is the concept of "learngenes," which are defined as specific neural circuits (channels within convolutional kernels) representing "core knowledge." To extract and refine these learngenes, the authors propose Genetic Transfer Learning (GTL), a framework that mimics biological evolution:

  • Population Training: A population of neural networks is trained on partitioned datasets, simulating survival environments.
  • Tournament Selection: Superior networks (and their associated learngenes) are selected through tournaments.
  • Mutation: Learngenes undergo mutations (augmenting/reducing kernels/channels) to adapt and improve.
  • Inheritance: Selected learngenes are passed to the next generation, forming the basis for new networks.
  • Gene Pool & Gene Tree: A Gene Pool stores superior learngenes, and a Gene Tree tracks their lineage.

The framework iteratively evolves these learngenes over many generations, aiming to distill only the most crucial, transferable knowledge.

Datasets

The experiments utilize the following datasets:

  • CIFAR-FS: A subset of CIFAR-100, with 64 training, 16 validation, and 20 novelty classes.
  • miniImageNet: A subset of ImageNet, with similar class splits.

These datasets are used to simulate "living environments" for the GTL framework and to evaluate the performance of networks initialized with extracted learngenes.

Key Insights and Ideas

  • Nature's Efficiency: Biological genes efficiently transfer essential knowledge, providing innate abilities and facilitating rapid learning, a stark contrast to the "all-or-nothing" approach of current neural network pre-training.
  • Learngenes as Core Knowledge: By defining "learngenes" as specific neural circuits, the authors propose a mechanism to distill and transfer only the most fundamental, transferable aspects of learned knowledge.
  • Evolutionary Optimization: GTL's evolutionary process (selection, mutation, inheritance) effectively refines these learngenes over generations, leading to a more condensed and potent form of knowledge.
  • "Instincts" in AI: Networks initialized with learngenes exhibit an "instinctive" ability to classify images with minimal training, suggesting a form of innate understanding.
  • Scalability Beyond Architecture: Learngenes demonstrate remarkable adaptability, not just to different datasets but also to varying network architectures (depth, width), highlighting their generalizability.

Key Results

  • Parameter Efficiency: Extracted learngenes, comprising only ~20% of total network parameters, achieved significant accuracy improvements:
  • 12% improvement on CIFAR-FS.
  • 16% improvement on miniImageNet.
  • Performance vs. Pre-training: Learngene-initialized networks achieved comparable or superior results to models pre-trained on large datasets, but with drastically fewer parameters.
  • Few-Shot Learning: Learngenes outperformed other few-shot learning algorithms, demonstrating strong learning ability even with limited data.
  • Scalability: Learngenes successfully initialized networks with different depths, widths, and architectures, outperforming models trained from scratch on fine-grained datasets.
  • Qualitative Findings: Visualizations (CAM) showed that learngene-initialized networks focused on more relevant local features, unlike pre-trained models with broader, sometimes redundant, attention.

Limitations and Future Work

  • Computational Cost: The GTL framework involves training a population of networks over many generations, which can be computationally intensive.
  • Generalization to Diverse Architectures: While demonstrated to be scalable, further research could explore the limits of learngene adaptability across highly diverse and novel network architectures.
  • Understanding Learngene Structure: The paper extracts learngenes from VGG and ResNet, but a deeper theoretical understanding of what constitutes "core knowledge" within these circuits could be beneficial.
  • Future Directions: The authors suggest exploring the application of learngenes to other domains beyond image classification and investigating more efficient evolutionary strategies.

Summary updated

BibTeX
@misc{feng2024transferring,
  author = {Fu Feng and Jing Wang and Xin Geng},
  title = {{Transferring Core Knowledge via Learngenes}},
  year = {2024},
  eprint = {2401.08139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.08139},
}
Figure