Skip to main content
QUICK REVIEW

[Paper Review] Superposition of many models into one

Brian Cheung, A. L. Terekhov|arXiv (Cornell University)|Feb 14, 2019
Domain Adaptation and Few-Shot LearningComputer Science27 references46 citations
TL;DR

The paper proposes parameter superposition to store multiple task-specific models within a single neural network by using task-specific context vectors, enabling retrieval of each model with minimal interference during training.

ABSTRACT

We present a method for storing multiple models within a single set of parameters. Models can coexist in superposition and still be retrieved individually. In experiments with neural networks, we show that a surprisingly large number of models can be effectively stored within a single parameter instance. Furthermore, each of these models can undergo thousands of training steps without significantly interfering with other models within the superposition. This approach may be viewed as the online complement of compression: rather than reducing the size of a network after training, we make use of the unrealized capacity of a network during training.

Motivation & Objective

  • Motivate exploiting over-parameterization during training to learn multiple tasks within a single parameter set.
  • Introduce parameter superposition as a memory-friendly approach to store several models in one network.
  • Demonstrate robustness to interference and catastrophic forgetting across online learning scenarios.
  • Show applicability to both fully-connected and convolutional architectures, including state-of-the-art networks like ResNet.

Proposed method

  • Store K task models W1,...,WK in a single weight matrix W via W = sum_i Wi Ci^{-1} (Equation 1).
  • Retrieve task k parameters as Ŵk = WCk = sum_i Wi(Ci^{-1}Ck) (Equation 2).
  • Compute task outputs as yk = W(Ck x) or equivalently yk = W(Ck x) (Equation 3).
  • Apply context as diagonal, complex, or rotation-based transformations to minimize interference; discuss parameter counts for each context (Table 1).
  • Extend PSP to neural networks by applying the context-multiplication to each layer’s linear transformation (Equation 7) and to convolutional kernels (Equation 8).
  • Analyze interference and retrieval noise, with propositions showing unbiased retrieval in expectation and variance bounds roughly proportional to 1/M (Appendix A).

Experimental results

Research questions

  • RQ1Can multiple task-specific models be stored in the same parameter set without significant interference during training?
  • RQ2How does the choice of context (binary, complex, rotational, diagonal) affect memory efficiency and interference between models?
  • RQ3Can PSP mitigate catastrophic forgetting under online learning with changing input distributions (e.g., permuting MNIST, rotating MNIST/Fashion-MNIST) and changing output distributions (iCIFAR)?
  • RQ4Is PSP compatible with modern architectures (e.g., ResNet) and convolutional networks?
  • RQ5Can context be adapted or made automatic to reduce reliance on explicit task identity?

Key findings

  • PSP enables storing multiple models within a single parameter instance with minimal interference during thousands of training steps per model.
  • Binary, complex, and rotation-based contexts offer different trade-offs between memory cost and retrieval quality, with rotation providing best interference reduction at higher parameter cost (Table 1).
  • PSP significantly mitigates catastrophic forgetting on permuting MNIST compared to standard baselines and prior continual-learning methods (EWC, SI).
  • PSP remains robust to input distribution shifts (permuted/rotating MNIST and rotating Fashion-MNIST) and to changes in output distributions (iCIFAR).
  • PSP scales to modern networks like ResNet-18 and maintains performance on CIFAR-10 after sequentially learning disjoint CIFAR-100 class sets.

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.