Skip to content
Last Dictionary

sparse upcycling

nounAlso: upcycling, MoE upcycling, upcycled MoE, drop-upcycling

In plain wordsRecycling an already-trained AI model into a larger 'team of specialists' model by copying parts of it, so the new model starts from what the old one learned instead of from scratch.

  1. A way to build a sparse mixture of expertsmixture of experts, n.: A way to build very large AI models cheaply: the model contains many specialist sub-networks, and for each word only a few are switched on, picked by a small dispatcher network. (MoE) model by converting a trained dense model, so that it starts from that checkpointcheckpoint, n.: A saved snapshot of a model partway through or at the end of training, like a save point in a video game: training can resume from it after a crash, and finished snapshots are what people download and run.'s weights rather than random ones. Selected feed-forward (MLP) layers of the dense network are replicated to form the experts, a newly initialized routerrouter, n.: In a mixture-of-experts model, the small component that decides which specialist sub-networks should handle each word, like a dispatcher assigning jobs to workers. is inserted to send each token to a few of them, and all other weights (attention, embeddings, normalization) are copied unchanged; training then continues with the MoE architecture. Because the copied experts start identical, they must diverge during further training, and variants such as partially re-initializing the copies ('drop-upcycling') encourage specialization. This avoids wasting an expensive dense run: in the original T5 and Vision Transformer experiments, extra training worth a fraction of the original compute put upcycled models ahead of dense models given the same budget and of MoE models trained from scratch on comparable or larger budgets. It has been used to build released MoE language models, for example Qwen1.5-MoE, upcycled from a 1.8-billion-parameter dense model.

    Rather than pretrain a new MoE, we upcycled our 7B checkpoint into eight experts and trained for another 300 billion tokens.

Origin

Introduced by Aran Komatsuzaki, Joan Puigcerver, James Lee-Thorp, Carlos Riquelme, Basil Mustafa, Joshua Ainslie, Yi Tay, Mostafa Dehghani and Neil Houlsby of Google Research in a December 2022 preprint, published at ICLR 2023, with experiments on T5 language models and Vision Transformers.

Usage note

Differs from MoEfication, which partitions an existing feed-forward layer into experts without duplicating it, and from model-growth methods that widen or deepen a dense model. The advantage over training an MoE from scratch narrows as the additional training budget grows.

Related

See also
  • mixture of expertsmixture of experts, n.: A way to build very large AI models cheaply: the model contains many specialist sub-networks, and for each word only a few are switched on, picked by a small dispatcher network.
  • routerrouter, n.: In a mixture-of-experts model, the small component that decides which specialist sub-networks should handle each word, like a dispatcher assigning jobs to workers.
  • checkpointcheckpoint, n.: A saved snapshot of a model partway through or at the end of training, like a save point in a video game: training can resume from it after a crash, and finished snapshots are what people download and run.
  • continued pretrainingcontinued pretraining, n.: Taking an already-trained AI model and resuming its broad, read-everything training on new material — a specialty such as medicine or law, a new language, or fresher data — rather than starting from scratch.
  • expert parallelismexpert parallelism, n.: A way of running a 'mixture of experts' model — one made of many specialist sub-networks — by giving each chip its own set of specialists and sending each piece of text to whichever chip holds the specialists it needs.
  • knowledge distillationknowledge distillation, n.: Training a smaller or cheaper 'student' AI to copy the behavior of a larger 'teacher' AI, so the student keeps much of the teacher's skill while being faster to run.
Contrast with
  • knowledge distillationknowledge distillation, n.: Training a smaller or cheaper 'student' AI to copy the behavior of a larger 'teacher' AI, so the student keeps much of the teacher's skill while being faster to run.

Sources

  1. Komatsuzaki, A., Puigcerver, J., Lee-Thorp, J., Riquelme Ruiz, C., Mustafa, B., Ainslie, J., Tay, Y., Dehghani, M. & Houlsby, N. (2023). Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpoints. ICLR 2023.