近期的文本到图像(T2I)生成模型在根据文本描述创建图像方面展现出令人瞩目的能力。然而,这些T2I生成模型往往难以生成与文本输入细节精确匹配的图像,例如空间关系错误或物体缺失。本文提出SELMA:Skill-Specific Expert Learning and Merging with Auto-Generated Data,这是一种新颖范式,通过在自动生成的多技能图像-文本数据集上微调模型,并结合技能特定的专家学习与合并,来提升T2I模型的忠实度。首先,SELMA利用LLM的上下文学习能力生成多个可教授不同技能的文本提示数据集,随后由T2I模型基于这些提示生成图像。接着,SELMA通过学习多个单一技能LoRA(low-rank adaptation,低秩适配)专家并进行专家合并,使T2I模型适应新技能。我们的独立专家微调使多个模型分别专精于不同技能,而专家合并有助于构建一个联合的多技能T2I模型,使其能够在面对多样文本提示时生成忠实图像,同时缓解来自不同数据集的知识冲突。我们通过实验证明,SELMA在多个基准上显著提升了最先进T2I扩散模型的语义对齐和文本忠实度(TIFA提升2.1%,DSG提升6.9%),也改善了人类偏好指标(PickScore、ImageReward和HPS)以及人工评估结果。此外,使用通过SELMA自动收集的图像-文本对进行微调,表现出与使用真值数据微调相当的性能。最后,我们表明,使用来自较弱T2I模型的图像进行微调,有助于提升较强T2I模型的生成质量,这表明T2I模型中存在具有前景的弱到强泛化能力。
英文摘要:
Recent text-to-image (T2I) generation models have demonstrated impressive capabilities in creating images from text descriptions. However, these T2I generation models often fall short of generating images that precisely match the details of the text inputs, such as incorrect spatial relationship or missing objects. In this paper, we introduce SELMA: Skill-Specific Expert Learning and Merging with Auto-Generated Data, a novel paradigm to improve the faithfulness of T2I models by fine-tuning models on automatically generated, multi-skill image-text datasets, with skill-specific expert learning and merging. First, SELMA leverages an LLM's in-context learning capability to generate multiple datasets of text prompts that can teach different skills, and then generates the images with a T2I model based on the prompts. Next, SELMA adapts the T2I model to the new skills by learning multiple single-skill LoRA (low-rank adaptation) experts followed by expert merging. Our independent expert fine-tuning specializes multiple models for different skills, and expert merging helps build a joint multi-skill T2I model that can generate faithful images given diverse text prompts, while mitigating the knowledge conflict from different datasets. We empirically demonstrate that SELMA significantly improves the semantic alignment and text faithfulness of state-of-the-art T2I diffusion models on multiple benchmarks (+2.1% on TIFA and +6.9% on DSG), human preference metrics (PickScore, ImageReward, and HPS), as well as human evaluation. Moreover, fine-tuning with image-text pairs auto-collected via SELMA shows comparable performance to fine-tuning with ground truth data. Lastly, we show that fine-tuning with images from a weaker T2I model can help improve the generation quality of a stronger T2I model, suggesting promising weak-to-strong generalization in T2I models.
MergeRepair: An Exploratory Study on Merging Task-Specific Adapters in Code LLMs for Automated Program Repair
University of British Columbia, Department of Computer Science(不列颠哥伦比亚大学计算机科学系);École de technologie supérieure, Department of Software and IT Engineering(高等技术学院软件与信息技术工程系)
MergeTok: Unified Continuous and Discrete Visual Tokenization via Token Merging
Tsinghua University(清华大学);Westlake University(西湖大学);Zhejiang University(浙江大学);Hong Kong University of Science and Technology(香港科学与技术大学);OPPO;Shanghai AI Lab(上海人工智能实验室)
AdaMerging: Adaptive Model Merging for Multi-Task Learning
Northeastern University(东北大学);University of Oxford(牛津大学);Nanyang Technological University(南洋理工大学);University of Maryland(马里兰大学);JD Explore Academy(京东探索研究院)