Continual Diffusion with STAMINA: STack-And-Mask INcremental Adapters
James Seale Smith, Yen-Chang Hsu, Zsolt Kira, Yilin Shen, Hongxia Jin
TL;DR
This work tackles the challenge of scaling continual diffusion to long concept sequences, where prior methods display plasticity saturation as task counts grow. It introduces STAMINA, which stacks low-rank adapters with hard-attention masks and learnable MLP tokens to realize sparse, selective weight updates that can be folded back into the pre-trained backbone, avoiding inference-cost increases. Empirical results show STAMINA surpasses the prior state-of-the-art in 50-concept continual diffusion benchmarks without replay data and with fewer training steps, and it also achieves state-of-the-art performance in rehearsal-free image classification with ImageNet-R. The approach demonstrates robust long-sequence continual learning for text-to-image customization and transferability to other continual learning tasks, while acknowledging ethical considerations around face generation and data provenance.
Abstract
Recent work has demonstrated a remarkable ability to customize text-to-image diffusion models to multiple, fine-grained concepts in a sequential (i.e., continual) manner while only providing a few example images for each concept. This setting is known as continual diffusion. Here, we ask the question: Can we scale these methods to longer concept sequences without forgetting? Although prior work mitigates the forgetting of previously learned concepts, we show that its capacity to learn new tasks reaches saturation over longer sequences. We address this challenge by introducing a novel method, STack-And-Mask INcremental Adapters (STAMINA), which is composed of low-ranked attention-masked adapters and customized MLP tokens. STAMINA is designed to enhance the robust fine-tuning properties of LoRA for sequential concept learning via learnable hard-attention masks parameterized with low rank MLPs, enabling precise, scalable learning via sparse adaptation. Notably, all introduced trainable parameters can be folded back into the model after training, inducing no additional inference parameter costs. We show that STAMINA outperforms the prior SOTA for the setting of text-to-image continual customization on a 50-concept benchmark composed of landmarks and human faces, with no stored replay data. Additionally, we extended our method to the setting of continual learning for image classification, demonstrating that our gains also translate to state-of-the-art performance in this standard benchmark.
