Skip to main content
QUICK REVIEW

[Paper Review] Label Organized Memory Augmented Neural Network.

Shiv Shankar, Sunita Sarawagi|arXiv (Cornell University)|Jul 5, 2017
Domain Adaptation and Few-Shot LearningComputer Science29 references4 citations
TL;DR

This paper proposes Label Organized Memory Networks (LMNs), a memory-augmented neural network that organizes memory using class labels as keys and writes only for instances with non-zero loss, using label-based memory replacement. LMNs achieve significant accuracy gains in few-shot learning and language modeling, outperforming existing MANNs and fine-tuning baselines in both accuracy and inference speed during online adaptation.

ABSTRACT

Augmenting a neural network with memory that can grow without growing the number of trained parameters is a recent powerful concept with many exciting applications. We propose a design of memory augmented neural networks (MANNs) called Labeled Memory Networks (LMNs) suited for tasks requiring online adaptation in classification models. LMNs organize the memory with classes as the primary key.The memory acts as a second boosted stage following a regular neural network thereby allowing the memory and the primary network to play complementary roles. Unlike existing MANNs that write to memory for every instance and use LRU based memory replacement, LMNs write only for instances with non-zero loss and use label-based memory replacement. We demonstrate significant accuracy gains on various tasks including word-modelling and few-shot learning. In this paper, we establish their potential in online adapting a batch trained neural network to domain-relevant labeled data at deployment time. We show that LMNs are better than other MANNs designed for meta-learning. We also found them to be more accurate and faster than state-of-the-art methods of retuning model parameters for adapting to domain-specific labeled data.

Motivation & Objective

  • To address the challenge of online adaptation in neural networks without retraining parameters, especially in low-data or domain-shift scenarios.
  • To improve the efficiency and accuracy of memory-augmented neural networks by organizing memory with class labels as primary keys.
  • To reduce memory write overhead by writing only for instances with non-zero loss, rather than for every input.
  • To design a memory replacement strategy based on label frequency rather than LRU, improving relevance and retention of domain-specific knowledge.
  • To enable effective deployment-time adaptation of batch-trained models using domain-relevant labeled data without fine-tuning.

Proposed method

  • LMNs augment a pre-trained neural network with a memory module organized by class labels, where each memory key corresponds to a class.
  • The memory acts as a second-stage classifier that corrects predictions from the primary network, enabling complementary roles between the two.
  • Memory writes occur only for instances with non-zero loss, reducing unnecessary updates and improving memory efficiency.
  • Memory replacement is performed based on label frequency, prioritizing retention of underrepresented or high-loss classes.
  • The model integrates memory retrieval and prediction in inference, allowing dynamic adaptation to new domain-specific data at deployment.
  • The architecture supports end-to-end training of the primary network and memory module, with memory access and update mechanisms differentiable.

Experimental results

Research questions

  • RQ1Can organizing memory by class labels improve the efficiency and accuracy of memory-augmented neural networks in online adaptation tasks?
  • RQ2Does writing to memory only for instances with non-zero loss lead to better memory utilization and performance compared to writing for all inputs?
  • RQ3Can label-based memory replacement outperform LRU-based replacement in retaining relevant, domain-specific knowledge?
  • RQ4How does LMN compare to meta-learning-based MANNs and parameter fine-tuning in few-shot learning and language modeling?
  • RQ5Can LMNs achieve faster inference and higher accuracy than state-of-the-art fine-tuning methods when adapting to new domains?

Key findings

  • LMNs achieve significant accuracy gains on language modeling and few-shot learning benchmarks compared to standard MANNs.
  • LMNs outperform existing MANNs designed for meta-learning in both accuracy and inference speed during online adaptation.
  • The model demonstrates superior performance compared to state-of-the-art parameter fine-tuning methods in adapting to domain-specific labeled data.
  • By writing only for instances with non-zero loss, LMNs reduce memory write overhead and improve training efficiency.
  • Label-based memory replacement leads to better retention of relevant class-specific knowledge, especially in low-data regimes.
  • LMNs enable effective deployment-time adaptation of batch-trained models without retraining, maintaining high accuracy and low latency.

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.