Skip to main content
QUICK REVIEW

[Paper Review] Spanning the Visual Analogy Space with a Weight Basis of LoRAs

Hila Manor, Rinon Gal|arXiv (Cornell University)|Feb 17, 2026
Generative Adversarial Networks and Image SynthesisComputer Science0 citations
TL;DR

LoRWeB learns a basis of LoRA adapters and dynamically composes them at inference to flexibly perform visual analogy editing, achieving state-of-the-art generalization to unseen transformations.

ABSTRACT

Visual analogy learning enables image manipulation through 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 to this task using 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 adaptation module constrains generalization capabilities. Inspired by recent work showing that LoRAs in constrained domains span meaningful, interpolatable semantic spaces, we propose LoRWeB, a novel approach that specializes the model for each analogy task at inference time through dynamic composition of learned transformation primitives, informally, choosing a point in a "space of LoRAs". We introduce two key components: (1) a learnable basis of LoRA modules, to span the space of different visual transformations, and (2) a lightweight encoder that dynamically selects and weighs these basis LoRAs based on the input analogy pair. Comprehensive evaluations demonstrate our approach achieves state-of-the-art performance and significantly improves generalization to unseen visual transformations. Our findings suggest that LoRA basis decompositions are a promising direction for flexible visual manipulation. Code and data are in https://research.nvidia.com/labs/par/lorweb

Motivation & Objective

  • Motivate visual analogy learning as a means to achieve complex image edits via demonstration rather than text.
  • Overcome the limitation of single-LoRA adapters by spanning a semantic space with a basis of LoRAs.
  • Develop a dynamic inference-time mechanism to select and weight LoRAs based on the input analogy pair.
  • Train a jointly learned basis and router to compose appropriate transformations for unseen analogies.
  • Demonstrate improved generalization and editing fidelity on a diverse set of visual analogies.

Proposed method

  • Introduce a learnable basis of N rank-r LoRAs to span diverse visual transformations.
  • Associate each LoRA pair with a learnable key vector and use an encoder to generate a query from the input triplet ${a},{a'},${b}$.
  • Compute mixture coefficients via softmax of the dot product between the query and the LoRA keys to create a Mixed LoRA.
  • Inject the Mixed LoRA into a conditional diffusion/flow model (Flux.1-Kontext) to produce ${b'}$ for the new image ${b}$.
  • Train the LoRA basis and the encoder jointly so that combinations generalize to unseen analogies.
  • Encode conditioning images with CLIP and provide full analogy triplet to the diffusion model via extended-attention mechanisms for detailed editing.

Experimental results

Research questions

  • RQ1Can a basis of LoRAs, combined via a learned router, generalize to unseen visual analogies beyond those seen during training?
  • RQ2Does dynamic, input-dependent mixing of LoRAs improve preservation of image details while achieving accurate applied transformations compared to a single-LoRA baseline?
  • RQ3How does LoRWeB compare to existing analogy methods in terms of generalization, editing accuracy, and content preservation?
  • RQ4What is the impact of basis size and LoRA rank on performance and generalization?
  • RQ5Is CLIP-based encoding sufficient for LoRA selection, or does the full analogy triplet benefit from extended-attention conditioning in diffusion models?

Key findings

  • LoRWeB achieves improved generalization to unseen analogy tasks compared to single-LoRA baselines and prior methods.
  • A learnable LoRA basis with a lightweight encoder can effectively cover a wide range of transformations through dynamic mixing.
  • Quantitative and human evaluations indicate LoRWeB better preserves input content while achieving accurate edits across diverse tasks.
  • A larger basis (N) with an appropriate rank (r) is important for performance; naive increases in rank without basis diversification can degrade results.
  • Using the full analogy triplet with extended attention helps maintain fine-grained details during editing.
  • A variety of encoders (including CLIP or SigLIP) yield robust results, with the encoder design (separate encoding of a, a', b) aiding task understanding.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.