TIPDF-DWSF: a task-oriented two-stage optimization framework for diffusion model LoRA fine-tuning
摘要
Aiming at the key problems of Low-Rank Adaptation (LoRA) methods in diffusion model fine-tuning, this study proposes a two-stage dynamic optimization method based on task relevance. Existing methods usually employ fixed probability density functions (e.g., uniform/normal distributions) for time-step sampling during LoRA training, relying on subjective prior knowledge, leading to less effective training results. Concurrently, static weight scaling factors during inference create conflicts between task adaptation capability and model stability.To resolve these issues, we innovatively introduce a Time-step Importance Probability Density Function (TIPDF) and dynamic weight scaling mechanism. In the training stage, the loss distribution of different denoising time-step is quantitatively analyzed by kernel density estimation, and a task-oriented TIPDF function is established to guide the model to focus on the feature learning of key time-steps. In the inference stage, a nonlinear Dynamic Weight Scaling Function (DWSF) is designed based on the TIPDF to realize the adaptive adjustment of LoRA weight scaling factor