视觉类比学习通过演示而非文本描述实现图像编辑,允许用户指定难以用文字描述的复杂变换。给定三元组{a, a', b},目标是生成b',使得a : a' :: b : b'。近期方法使用单个低秩适应(LoRA)模块适配文本到图像模型,但面临根本限制:在固定模块内捕捉多样化的视觉变换空间会限制泛化能力。受最近工作启发,表明约束领域中的LoRAs可跨越有意义且可插值的语义空间,我们提出LoRWeB,专门化模型以单次推理处理每个类比任务。LoRWeB动态组合学习的变换原语,即选择“LoRAs空间”中的一个点。我们引入两个关键组件:(1) 一个可学习的LoRAs基,以跨越不同的视觉变换空间;(2) 一个轻量级编码器,根据输入类比对动态加权这些基LoRAs。全面评估显示了最先进的性能,并显著提高了对未见过的变换的泛化能力。我们的发现表明LoRA基分解是灵活的视觉操作任务的有前景方向。见https://research.nvidia.com/labs/par/lorweb获取代码。
英文摘要:
Visual analogy learning enables image editing via demonstration rather than textual description, allowing users to specify complex transformations difficult to articulate in words. Given a triplet $\{\mathbf{a}$, $\mathbf{a}'$, $\mathbf{b}\}$, the goal is to generate $\mathbf{b}'$ such that $\mathbf{a} : \mathbf{a}' :: \mathbf{b} : \mathbf{b}'$. Recent methods adapt text-to-image models with a single Low-Rank Adaptation (LoRA) module, but they face a fundamental limitation: attempting to capture the diverse space of visual transformations within a fixed module constrains generalization. Inspired by recent work showing that LoRAs in constrained domains span meaningful, interpolatable semantic spaces, we propose LoRWeB, which specializes the model for each analogy task in a single inference pass. LoRWeB dynamically composes learned transformation primitives, informally, choosing a point in a "space of LoRAs". We introduce two key components: (1) a learnable basis of LoRAs to span the space of different visual transformations, and (2) a lightweight encoder that dynamically weighs these basis LoRAs given the input analogy pair. Comprehensive evaluations demonstrate state-of-the-art performance and significantly improved generalization to unseen transformations. Our findings suggest LoRA basis decompositions are a promising direction for flexible visual manipulation tasks. See https://research.nvidia.com/labs/par/lorweb for code.
LoRA-PAR: A Flexible Dual-System LoRA Partitioning Approach to Efficient LLM Fine-Tuning
School of Politics and Public Administration, South China Normal University(华南师范大学政治与公共管理学院);Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Shenyang institute of computing technology, Chinese academy of sciences(中国科学院沈阳计算技术研究所)
VIRAL: Visual In-Context Reasoning via Analogy in Diffusion Transformers
School of Data Science and Engineering, East China Normal University, Shanghai, China(数据科学与工程学院,东华大学,上海,中国);Alibaba Group, Hangzhou, China(阿里巴巴集团,杭州,中国)
A Little Rank Goes a Long Way: Random Scaffolds with LoRA Adapters Are All You Need
Allen Discovery Center at Tufts University(塔夫茨大学艾伦发现中心);Institute for Theoretical Physics, TU Wien(维也纳工业大学理论物理研究所);Wyss Institute for Biologically Inspired Engineering, Harvard University(哈佛大学威斯生物启发工程研究所)