Skip to main content
QUICK REVIEW

[Paper Review] AgileNet: Lightweight Dictionary-based Few-shot Learning

Mohammad Ghasemzadeh, Fang Lin|arXiv (Cornell University)|May 21, 2018
Domain Adaptation and Few-Shot LearningComputer Science15 references6 citations
TL;DR

AgileNet proposes a lightweight, dictionary-based few-shot learning framework that enables efficient, low-cost model updates on resource-constrained edge devices by using end-to-end structured decomposition of deep neural networks. It achieves state-of-the-art accuracy on Mini-ImageNet (71.39% for 5-way 5-shot) while reducing memory footprint by 5.8× and computation cost by 6× compared to the original model.

ABSTRACT

The success of deep learning models is heavily tied to the use of massive amount of labeled data and excessively long training time. With the emergence of intelligent edge applications that use these models, the critical challenge is to obtain the same inference capability on a resource-constrained device while providing adaptability to cope with the dynamic changes in the data. We propose AgileNet, a novel lightweight dictionary-based few-shot learning methodology which provides reduced complexity deep neural network for efficient execution at the edge while enabling low-cost updates to capture the dynamics of the new data. Evaluations of state-of-the-art few-shot learning benchmarks demonstrate the superior accuracy of AgileNet compared to prior arts. Additionally, AgileNet is the first few-shot learning approach that prevents model updates by eliminating the knowledge obtained from the primary training. This property is ensured through the dictionaries learned by our novel end-to-end structured decomposition, which also reduces the memory footprint and computation complexity to match the edge device constraints.

Motivation & Objective

  • Address the challenge of deploying accurate deep learning models on resource-constrained edge devices with limited memory, compute, and energy.
  • Enable efficient, low-cost model updates for new tasks using only a few labeled samples, without forgetting previously learned knowledge.
  • Reduce the memory and computational complexity of deep neural networks to match edge device constraints while maintaining high inference accuracy.
  • Develop a few-shot learning method that preserves performance on both old and new classes, avoiding catastrophic forgetting.

Proposed method

  • Introduce an end-to-end structured decomposition methodology that replaces each convolutional and fully-connected layer with a compact, dictionary-based representation to reduce model size and computation.
  • Learn structured dictionaries through a differentiable decomposition process that maintains the original model's predictive structure and enables low-rank approximation of weight matrices.
  • Use the learned dictionaries to perform lightweight, parameter-efficient updates during few-shot adaptation, avoiding full retraining or fine-tuning.
  • Apply a decomposition error threshold β to control the trade-off between model complexity and accuracy, enabling configurable compression across layers.
  • Decompose convolutional and fully-connected layers separately with layer-wise β values to optimize memory and computation savings while preserving accuracy.
  • Ensure knowledge retention by eliminating the need for model updates that overwrite primary training knowledge, relying instead on dictionary-based adaptation.

Experimental results

Research questions

  • RQ1Can a few-shot learning framework be designed to maintain high accuracy on both old and new classes while minimizing memory and computation costs for edge deployment?
  • RQ2How effective is end-to-end structured decomposition in reducing model complexity without degrading performance on few-shot learning benchmarks?
  • RQ3To what extent can adjustable decomposition error thresholds (β) balance model compression and accuracy in a layer-wise manner?
  • RQ4Does the dictionary-based update mechanism enable effective adaptation to new tasks with only a few samples, while preserving original knowledge?
  • RQ5Can the proposed method outperform state-of-the-art few-shot learning approaches in terms of accuracy, memory efficiency, and computational efficiency?

Key findings

  • AgileNet achieves 71.39% accuracy on the 5-way 5-shot Mini-ImageNet benchmark, outperforming all prior arts, including MAML, Matching Networks, and Prototypical Networks.
  • The model reduces memory footprint by up to 5.8× and computation cost by 6× compared to the original DNN, while maintaining high accuracy.
  • Accuracy degradation is negligible until the decomposition error threshold β reaches 0.95, after which performance drops significantly, indicating a clear trade-off between compression and accuracy.
  • Layer-wise adjustment of β for fully-connected layers yields significant memory savings (up to 5.8×) with minimal impact on accuracy, especially when β is set to 0.7.
  • AgileNet preserves performance on previously learned classes during adaptation, avoiding catastrophic forgetting due to its dictionary-based update mechanism.
  • The method enables effective few-shot learning with minimal parameter updates, making it suitable for on-device, real-time adaptation in dynamic environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.