Abstract
Transferring knowledge from massive pretrained models to smaller, task-specific models is often computationally expensive and prone to "negative transfer." We introduce CLKG (Convolutional Learngene for Knowledge Generalization), a novel framework that extracts generalized convolutional kernels from large-kernel CNNs to initialize diverse descendant models. CLKG reduces training time and data requirements by approximately 50% while improving performance across image classification, object detection, and semantic segmentation.
Introduction
Deploying deep learning models across diverse hardware requires a range of architectures. Traditionally, Knowledge Distillation (KD) transfers knowledge from a large "teacher" to a smaller "student." However, KD requires a costly re-distillation for every new student architecture and often suffers from "negative transfer"—where the student underperforms compared to a model trained from scratch—due to domain gaps between source and target datasets.
The Learngene framework offers an alternative by extracting a compact, reusable module from an ancestry model. Yet, existing methods struggle with architectural generalization. CLKG addresses this by leveraging the superior feature extraction of large-kernel CNNs to create a highly adaptable learngene.
Methodology: The CLKG Framework
CLKG operates in two distinct stages to ensure both knowledge richness and architectural flexibility.
Stage 1: Learngene Extraction
Rather than direct extraction from a massive ancestry model (e.g., RepLKNet), CLKG employs a smaller-kernel auxiliary model. This auxiliary model is trained via dense feature distillation to mimic the ancestry model's behavior. Specific convolutional kernels are then selected based on three criteria: direct extraction from the aligned auxiliary model, priority to "edge" kernels (early and late layers), and continuous selection to preserve hierarchical feature structures.
Stage 2: Adaptation and Inheritance
To accommodate descendant models of varying widths, the extracted learngene is mathematically adapted. For wider models, the learngene is padded with Gaussian-distributed random weights. For narrower models, it is pruned based on L2 norms to retain the most critical information. 1x1 convolutions align channel dimensions before the descendant model undergoes task-specific finetuning.
Experimental Results
The effectiveness of CLKG was validated across multiple benchmarks, including ImageNet-1K for pretraining and various downstream tasks like COCO2017 (detection) and VOC12 (segmentation).
Performance and Efficiency
CLKG consistently outperformed training from scratch. Notable gains include a +3.64% accuracy boost on miniImageNet (VGG16) and +2.59% mAP on COCO2017 (YOLOv7). Crucially, CLKG-initialized models achieve these results with roughly half the training data and epochs required by traditional methods.
Mitigating Negative Transfer
On the NAO dataset, where domain differences typically cause KD to fail, CLKG avoided negative transfer entirely, achieving a +1.88% improvement over scratch training, whereas standard KD resulted in performance degradation.
Conclusion and Future Work
CLKG demonstrates that generalized convolutional kernels can serve as effective "genetic material" for model initialization across diverse tasks. While highly effective for CNNs and hybrid models, the current framework does not support pure Vision Transformer (ViT) architectures. Future research will focus on adapting these principles—such as edge-layer prioritization—to the attention mechanisms of transformers.
Summary updated