PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
August 14, 20260 citationsOpen Access

Composable QLoRA: Semantic Low-Rank Decomposition for Multi-Character Image Generation on Consumer Hardware via Modular Adaptation of Functionally-Specialized UNet Layers

View Full Paper
PPPurnima Pathak

Key Points

  • To develop an interference-free, parameter-efficient fine-tuning framework for training and composing multi-character diffusion models on resource-constrained consumer hardware.
  • Decomposed UNet transformer blocks by functionally isolating cross-attention for identity, self-attention for spatial structure, and feedforward layers for style and environment.
  • Implemented Int4 quantized training (QLoRA) on the 2.6B-parameter SDXL UNet, storing adapter parameters in float32 to prevent gradient moment collapse during checkpointing.
  • Trained and evaluated independent modular layers on an 8 GB Apple M1 device with frequency-based adaptive composition weights.
  • Int4 quantization compressed the UNet from 4,260 MB to 1,133 MB (3.8x compression) while achieving a 0.9978 cosine similarity relative to FP16.
  • Three composable layers trained independently in 3.0 hours total on an 8 GB Apple M1 at under 2 GB peak memory.
  • Enabled linear scaling (N characters requiring N adapters) and instant character switching via scalar weight modulation without retraining.

Abstract

We present three contributions for composable personalization of diffusion models on consumer hardware: (1) Semantic LoRA Decomposition. We discover and exploit the functional specialization of UNet transformer block layer types: cross-attention layers encode text-conditioned identity (WHO), self-attention layers encode spatial structure and composition (HOW/WHAT), and feedforward layers encode per-position style and environment (WHERE). By constraining each LoRA adapter to exactly one layer type, we guarantee zero mutual interference- adapters targeting mutually exclusive module sets can be freely composed, switched, and weighted at inference without retraining or quality degradation. (2) Int4 QLoRA for Diffusion Models on Apple Silicon. We demonstrate Int4 quantized training of SDXL's 2.6B-parameter UNet on an 8 GB Apple M1 device, achieving 3.8x compression (4,260 MB to 1,133 MB) with 0.9978 cosine similarity to FP16. We identify and resolve a critical numerical instability: gradient checkpointing with adaptive optimizers produces NaN when LoRA parameters are stored in reduced precision, due to zero-gradient moment estimate collapse. Storing adapters in float32 (+44 MB) eliminates this failure. (3) Adaptive Composition Weights. We propose treating per-layer composition weights as temporally-adaptive parameters that increase proportionally with reuse frequency, enabling the system to automatically reinforce aesthetic patterns that recur across generated outputs- a form of implicit preference learning without explicit retraining. We validate all three contributions with measured experiments on Apple M1 (8 GB): three composable layers train independently in 3.0 hours total at less than 2 GB peak memory, producing a complete multi-character generation system on minimum-spec consumer hardware. Our approach enables instant character switching (scalar weight change, no reload), linear scaling (N characters = N adapters, not N-squared combinations), and per-character training without joint optimization.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Purnima Pathak (2026) studied this question.

synapsesocial.com/papers/6a7ec7aab70b84ec8b914385https://doi.org/10.5281/zenodo.21896351
Ask AI
Helpful
Bookmark
Share
View Full Paper