Abstract
Generative Artificial Intelligence has shown immense potential in industrial design. However, applying Diffusion Transformers to precision manufacturing faces a critical bottleneck: the trade-off between flexible multi-task editing and high-fidelity texture preservation. Existing methods often suffer from “texture collapse” when merging multiple adapters, failing to maintain the intricate topological structures required for industrial standards. To address this, we present Knit-Edit, a unified framework for high-precision knitted garment editing. Our core contribution is EditLoRI, a novel task decoupling mechanism utilizing orthogonal Low-Rank Adaptation. By projecting task-specific gradients into orthogonal subspaces, EditLoRI enables the interference-free composition of multiple editing capabilities within a single lightweight model. Furthermore, we introduce a structure-preserving spatial guidance strategy using Bounding Boxes to resolve the localization ambiguity of text prompts. Validated on our constructed KnitEdit dataset, the proposed method significantly outperforms state-of-the-art baselines in controllability and structural fidelity, offering a robust solution for intelligent generative manufacturing.
1. Introduction
The fashion industry is undergoing a paradigm shift from mass production to mass customization, driven by the principles of Industry 4.0 [1,2]. Consumers increasingly demand personalized garments that reflect their unique style, requiring manufacturers to adapt designs rapidly without compromising quality. In this context, generative AI offers a transformative solution, potentially allowing designers to visualize complex modifications—such as changing a fabric pattern or adding a logo—in seconds rather than hours. However, the transition from digital art to industrial-grade design imposes strict constraints: the generated images must not only be aesthetically pleasing but also structurally accurate. For knitted garments, this means preserving the intricate topology of yarn interloops, which is essential for the feasibility of downstream manufacturing.
Current industrial workflows predominantly rely on manual pixel-level editing or traditional CAD software, both of which are labor-intensive, time-consuming, and difficult to scale. While recent advancements in generative models, particularly Diffusion Transformers (DiTs) [3,4], have revolutionized the field of image generation by producing photorealistic visuals, deploying these models in precise industrial editing tasks reveals a significant limitation: the phenomenon of “Texture Collapse”. Standard fine-tuning methods, such as Low-Rank Adaptation (LoRA) [5] or ControlNet [6], often struggle to balance multiple conflicting editing conditions. For instance, when a designer attempts to combine an adapter for “adding a logo” with another for “changing a sleeve style”, the feature representations of these tasks often interfere with one another in the model’s latent space. This interference manifests as a smoothing or blurring of the fine-grained knitting patterns, effectively “collapsing” the rich texture into a flat, unrealistic surface. This degradation is unacceptable in high-end manufacturing, where the visual fidelity of the fabric structure is paramount.
To bridge the critical gap between state-of-the-art generative algorithms and the rigorous quality standards of industrial manufacturing, we propose Knit-Edit (Figure 1), a unified and robust framework built upon the advanced FLUX.1 architecture. We posit that the key to achieving high-quality, multi-task editing lies in the strict orthogonality of task representations. To operationalize this insight, we introduce EditLoRI, a novel adaptation mechanism inspired by Low-Rank Instruction tuning [7]. Unlike traditional LoRA, which allows adapters to update weights in arbitrary directions, EditLoRI constrains the trainable parameters of each task to reside in approximate orthogonal subspaces. By mathematically projecting task-specific gradients into these independent subspaces, EditLoRI enables the model to decompose and recompose multiple editing tasks—such as pattern modification and Virtual Try-On—without destructive interference. This ensures that the semantic modification of a visual pattern does not corrupt the underlying topological structure of the fabric, effectively solving the texture collapse problem.
Figure 1.
The Knit-Edit framework demonstrates high-fidelity multi-task editing. By resolving the conflict between semantic modification and structural preservation, our method enables precise pattern manipulation and Virtual Try-On while maintaining the rigorous topological constraints of knitted fabrics.
Furthermore, we address the inherent ambiguity of natural language in defining precise spatial constraints for industrial design. Text descriptions such as “add a logo on the chest” are often too vague to meet the pixel-perfect precision required by manufacturers. To overcome this, we incorporate a Bounding Box Guidance strategy, serving not merely as a visual overlay but as a powerful Spatial Prompt. By tokenizing Bounding Box coordinates and integrating them into the transformer’s attention mechanism, we allow designers to precisely define “where to edit” and “what to edit”. This approach significantly enhances controllability compared to purely text-driven methods, enabling targeted modifications that respect the garment’s geometry.
We validate the efficacy of our approach on the custom-built KnitEdit dataset, a large-scale collection comprising over 6000 paired samples of high-fidelity knitted garments. Extensive experiments demonstrate that Knit-Edit achieves state-of-the-art performance in both texture fidelity and instruction following, significantly outperforming existing baselines. Our framework offers a scalable, high-precision solution for intelligent generative manufacturing, paving the way for the next generation of AI-assisted fashion design.
In summary, our contributions are fourfold:
- We identify and formally characterize the “Texture Collapse” problem in multi-task generative editing, highlighting the specific challenges posed by the high-frequency topology of knitted fabrics.
- We propose EditLoRI, a mathematically grounded orthogonal task decoupling mechanism that enables interference-free multi-task composition, demonstrating superior performance over standard adapter merging techniques.
- We introduce a structure-preserving spatial guidance strategy that synergizes the semantic understanding of DiTs with precise geometric control via Bounding Box tokenization.
- We release the KnitEdit dataset and a comprehensive benchmark, providing a valuable resource for the community to advance research in high-fidelity garment editing and virtual manufacturing.
2. Related Work
2.1. Fashion Image Editing and Virtual Try-On
Fashion image editing aims to intelligently modify the appearance of garments while rigorously preserving the identity of the wearer and the geometric structure of the clothing [8]. This field has evolved significantly over the past decade. Early approaches relied heavily on Generative Adversarial Networks (GANs), which employ a generator-discriminator architecture to synthesize images. For instance, the seminal DeepFashion framework laid the groundwork for feature-based garment synthesis, enabling basic attribute manipulation. Subsequent works, such as VITON-HD [9], introduced high-resolution Virtual Try-On by utilizing misalignment-aware normalization to handle the complex spatial deformations involved in warping clothing to fit human bodies. However, despite their speed, GAN-based methods often struggle with complex textures and large pose variations due to the inherent instability of adversarial training and the phenomenon of mode collapse, where the model fails to capture the full diversity of the data distribution.
The advent of Denoising Diffusion Probabilistic Models (DDPMs) [10] and Latent Diffusion Models (LDMs) [11] has revolutionized this field by offering a more stable and controllable generation process. By iteratively denoising a latent representation, these models can generate photorealistic images with intricate details. Methods like Paint by Example and Multimodal Garment Designer [12] leverage the strong generative priors of pre-trained LDMs to achieve high-quality editing. More recently, TryOnDiffusion [13] proposed a detail-preserved architecture that integrates multimodal signals (e.g., pose keypoints, garment sketches) to enhance fidelity. Similarly, Fashion-RAG introduces retrieval-augmented generation to customize designs based on user preferences, retrieving relevant texture examples from a database to guide generation. Recent advances also include TryOn-Adapter [14] and MFP-VTON [15], which focus on improving identity preservation and enabling mask-free editing, respectively. ClotheDreamer [16] further extends this capability to 3D consistent generation, bridging the gap between 2D images and 3D digital assets. Furthermore, depth-aware synthesis [17] has been proposed to align multi-modal diffusion manifolds for enhanced structural consistency. Despite these impressive advancements, most existing methods are primarily designed for single-task operations. When applied to complex multi-task scenarios—such as simultaneously adding a logo, changing a sleeve style, and adjusting the fabric texture—they often require training separate models for each task or suffer from “texture collapse”, where fine-grained knitting patterns are smoothed out due to feature interference. Our work addresses this critical limitation by proposing a unified framework capable of handling multiple editing tasks without compromising structural integrity.
2.2. Diffusion Transformers for Image Editing
While U-Net based diffusion models have dominated the field for several years, Diffusion Transformers (DiTs) [3,18] are rapidly emerging as a powerful alternative backbone. Unlike U-Nets, which rely on convolutional layers and downsampling operations, DiTs treat images as sequences of flattened patches, similar to tokens in Natural Language Processing (NLP). This architecture allows DiTs to scale effectively with model size and dataset complexity, capturing long-range dependencies via global self-attention mechanisms [19]. Recent works have begun to explore the potential of DiTs for precise image editing. For example, DiT4Edit [20] utilizes DPM-Solver inversion to enable shape-aware editing in high-resolution images, demonstrating superior structure preservation. Lazy Diffusion Transformer [21] proposes an efficient mechanism for localized editing by generating only the masked regions, significantly reducing computational costs while maintaining context consistency. Other notable approaches include SmartEdit [22] for unified generation and editing, and FreeDrag [23] for point-based manipulation. Text-driven region learning [24] has also shown promise in precise control.
In the specific domain of Virtual Try-On, DiT-VTON [25] represents a pioneering effort to adapt DiT architectures for garment transfer. It demonstrates superior detail preservation compared to U-Net baselines, particularly in handling high-frequency textures. However, current DiT-based editing methods still largely rely on global conditioning or simple binary masking. They lack a mechanism to explicitly decouple different editing instructions within the model’s latent space. This limitation becomes critical in industrial manufacturing, where editing a specific region (e.g., a collar) must not inadvertently alter the topological structure of adjacent fabric. Knit-Edit bridges this gap by introducing orthogonal Low-Rank Adaptation to DiTs, ensuring that multiple editing tasks can coexist without destructive interference.
2.3. Parameter-Efficient Fine-Tuning in Vision
Fine-tuning large-scale foundation models for downstream tasks is computationally expensive and storage-intensive. Parameter-Efficient Fine-Tuning (PEFT) methods, such as Adapter, Prefix Tuning, and Low-Rank Adaptation (LoRA) [5], have been widely adopted to mitigate this cost. LoRA, in particular, has become the de facto standard for efficient adaptation. It freezes the pre-trained weights and injects trainable low-rank decomposition matrices A and B, such that , making the number of trainable parameters a tiny fraction of the original model size. Previous works have explored various conditioning mechanisms, such as T2I-Adapter [26] and ControlNet++ [27], to guide generation with spatial maps (e.g., edges, depth, pose). SDEdit [28], Prompt-to-Prompt [29], and InstructPix2Pix [30] laid the foundation for instruction-based editing, allowing users to modify images via natural language commands. BrushNet [31] further improved inpainting capabilities with dual-branch diffusion, separating the mask processing from the image generation.
In the context of multi-task learning, however, standard LoRA faces significant challenges. Merging multiple task-specific LoRA adapters often leads to performance degradation due to parameter interference, where the gradient updates for one task conflict with those of another. To address this, recent works have proposed improved variants. MTLoRA [32] introduces task-agnostic and task-specific modules to disentangle parameter spaces in hierarchical transformers. UIR-LoRA [33] utilizes multiple low-rank adapters for universal image restoration, employing a composition strategy based on degradation similarity. While these methods improve multi-task performance, they do not explicitly enforce orthogonality between task representations. Our proposed EditLoRI builds upon the concept of orthogonal LoRA [7] from NLP, adapting it to the vision domain. By mathematically projecting task gradients into orthogonal subspaces, EditLoRI eliminates cross-task interference, enabling precise, interference-free multi-task editing for complex knitted structures.
3. Method
3.1. Problem Formulation: Addressing Texture Collapse
We define the core challenge in multi-task knitted garment editing as “Texture Collapse”, a phenomenon where the simultaneous application of multiple editing conditions leads to the degradation of fine-grained structural details. In a standard diffusion model fine-tuning setting, let be the model parameters. Given N distinct editing tasks (e.g., : add logo, : Virtual Try-On), we aim to learn task-specific parameter increments . Ideally, the composed model should be capable of performing all tasks simultaneously. However, due to the highly overlapping feature space of knitted textures—which are characterized by high-frequency repetitive patterns and strict topological constraints—the parameter updates for different tasks often conflict. Mathematically, this implies that the inner product of the update vectors is non-zero: . This interference results in the averaging or smoothing of topological details, which we term Texture Collapse. Our goal is to enforce orthogonality to decouple task representations, ensuring that the learning of one task does not negatively impact the performance of another.
3.2. Framework Overview
Our framework, shown in Figure 2 is built upon FLUX.1 Kontext [4], a state-of-the-art flow matching-based [34] Diffusion Transformer. Unlike traditional U-Net architectures that process images via local convolutions, FLUX.1 processes images as flattened sequences of patches, allowing for global context interaction via self-attention layers. This architecture is particularly well-suited for our purpose as it allows for more flexible spatial conditioning. We integrate two key components into this backbone: (1) EditLoRI for orthogonal task decoupling, which ensures that multiple adapters can be merged without interference; and (2) Bounding Box Guidance for precise spatial control, which resolves the ambiguity of text prompts.
Figure 2.
Overview of Knit-Edit. We inject extra trainable modules into the multi-layer Transformers of the base model to achieve accurate editing for knitted garment tasks. The framework processes an input image, a reference image, and text instructions to perform editing. We freeze the original parameters during training and solely update the EditLoRI adapters. At the inference stage, the model combines these trained adapters through weighted fusion to enable multi-task editing.
3.3. EditLoRI: Orthogonal Subspace Adaptation
Standard Low-Rank Adaptation (LoRA) approximates the weight update as the product of two low-rank matrices B and A:
where is the frozen pre-trained weight, initializes to zero, and initializes with Gaussian noise. While efficient, this formulation does not constrain the direction of the update , leading to potential conflicts when multiple adapters are summed.
To prevent texture collapse in multi-task scenarios, we adapt the LoRI mechanism [7] for visual generation. While the original LoRI operates on 1D sequence features for NLP tasks, our EditLoRI is adapted for the 2D spatial features of visual generation. This dimensional distinction is crucial, as EditLoRI’s orthogonal constraints are specifically designed to preserve the topological structure of knitted garments against texture collapse, a challenge unique to the high-dimensional visual space. EditLoRI imposes a strict structural constraint on the adapters to enforce orthogonality. For each task i, the update is defined as:
Crucially, is a frozen random orthogonal projection matrix. This matrix is shared or distinct across tasks but remains fixed during training. is the trainable low-rank matrix, and is a binary sparsity mask. By fixing A to be orthogonal and enforcing sparsity in B, we mathematically encourage the learned task vectors to reside in orthogonal subspaces of the optimization landscape. Intuitively, this means that each task learns to manipulate a different subset of the feature space, preventing them from stepping on each other’s toes.
During inference, multiple editing tasks are composed linearly:
where is a scalar weight controlling the intensity of task i. Because the updates are constrained to be approximately orthogonal, the interference term is minimized. This ensures that editing the garment’s pattern (Task A) does not degrade the fabric’s topological structure (Task B), effectively solving the texture collapse problem.
EditLoRI enforces orthogonality to isolate these conflicting gradients. This is particularly critical for knitted garments, where visual identity relies on high-frequency micro-structures. By minimizing cross-task conflict, EditLoRI allows for the seamless composition of distinct editing capabilities while preserving crisp topological details. To address the complex requirements of industrial design, we trained three independent adapters for garment editing, Virtual Try-On, and fabric editing, and then merged them with learned weights to form a unified multi-task model, as illustrated in Figure 3.
Figure 3.
EditLoRI architecture. Each task has an independent LoRA-structured adapter sharing a frozen projection matrix A. The model combines these adapters to execute various editing tasks.
3.4. Bounding Box Guidance as Spatial Prompts
Knitted garments require pixel-perfect editing precision. Text descriptions like “add a logo on the chest” are often too vague for industrial standards, leading to misplacement or incorrect scaling. To address this, we introduce Bounding Box Guidance not merely as a visual overlay, but as a Spatial Prompt that directly interacts with the model’s attention mechanism.
As shown in Figure 4, during training, we augment the input image with colored Bounding Boxes defining the Region of Interest (ROI). These boxes are tokenized by the VAE encoder along with the image. Since FLUX.1 uses a Transformer backbone, these “box tokens” are treated as additional input tokens that interact globally with “image tokens” via self-attention layers. The model learns to attend specifically to the pixels enclosed by the box coordinates when conditioning on specific text instructions (e.g., “in the red box”).
Figure 4.
Schematic of the Bounding Box positioning mechanism. We add Bounding Boxes to the input image to guide the model in locating the target area and content. Text prompts use box colors to distinguish between them. Unlike methods that need extra conditions, we use the model’s own understanding of Bounding Boxes. This allows accurate edit positioning and content mapping without extra cost.
This strategy effectively injects strong spatial inductive biases into the DiT. Unlike mask-based inpainting, which discards information inside the mask, our approach preserves the underlying fabric texture while modulating the semantic content, guided by the EditLoRI adapters. This allows for precise, localized editing that respects the global geometry of the garment.
3.5. Dataset and Training Strategy
To support this framework, we constructed the KnitEdit dataset (detailed in Section 4). We process real images by cropping or collecting references. For generated images, we use knitted garment templates combined with high-definition references (Figure 5). We also designed a pipeline to generate Bounding Box annotations automatically. During training, we use a balanced data loading strategy, selecting half the samples from real data and half from generated data in each batch. This compensates for the scarcity of real data and enhances the model’s generalization ability.
Figure 5.
Data processing for the KnitEdit dataset. (a) Processing for real images. (b) Processing for generated images. (c) Bounding Box generation pipeline using image differences.
4. Experiments
4.1. Setup
4.1.1. Datasets
To rigorously evaluate our framework, we utilized two primary datasets for training and evaluation:
- KnitEdit Dataset: We constructed a large-scale, high-fidelity dataset specifically tailored for knitted garment editing, comprising 6000 paired samples. Recognizing the difficulty of obtaining perfectly paired real-world data (i.e., the same garment with and without a specific edit), we leveraged a high-fidelity rendering pipeline to generate 5800 synthetic samples. These samples were created using advanced 3D knitting simulation software, ensuring that they follow “ideal physics” of knitting structures without noise interference. They cover a wide range of knitting patterns (e.g., cable, rib, jersey, intarsia). Additionally, to bridge the domain gap and evaluate real-world performance, we collected 200 high-resolution real-world images. Each sample is meticulously annotated with Bounding Boxes defining the editing regions and corresponding text instructions.
- VITON-HD [9]: For the Virtual Try-On task, we employed the standard VITON-HD dataset, which contains 13,679 image pairs of frontal-view women and upper-body clothing at resolution. We followed the standard train/test split. Although this dataset focuses on human-centric images, unlike the garment-centric KnitEdit dataset, incorporating it allows our unified framework to learn a generalized representation that handles both texture synthesis and spatial deformation tasks, proving the versatility of our approach.
4.1.2. Implementation Details
Our model is implemented in PyTorch 2.8.0 + cu129 and trained on a single NVIDIA GeForce RTX 4090 GPU (24 GB VRAM). We used the FLUX.1 Kontext [4] model as the pre-trained backbone due to its superior flow matching capabilities. The EditLoRI adapters were initialized with a rank and a sparsity ratio of , which we found to be the optimal balance between expressivity and efficiency. We employed the Prodigy optimizer [35], an adaptive method that automatically adjusts the learning rate, starting with an initial learning rate of 1.0 and a weight decay of 0.01 to prevent overfitting. The training was conducted for 3000 steps with a batch size of 1 and gradient accumulation steps of 4, resulting in an effective batch size of 4. Input images were resized to (or for VITON-HD) to match the backbone’s native resolution.
4.1.3. Baselines
We compared our method with a comprehensive set of state-of-the-art baselines to benchmark its performance. For the Add Symbols task, we compared against ControlNet [6], IP-Adapter [36], and standard FLUX.1 inpainting variants. For the Virtual Try-On task, we compared with SD-VTON [37], StableVITON [38], and D⌃4-VTON [39]. For the Remove Item task, we compared with FLUX.1 variants. All DiT-based methods were evaluated using Q8_0 quantization to ensure a fair comparison of inference efficiency and quality.
4.1.4. Evaluation Metrics
Following the established evaluation protocol of OminiControl [40], we assess our method from three complementary aspects: Controllability, Image Quality, and Alignment. For Controllability, we use Mean Squared Error (MSE) calculated only on the non-edited regions. This metric strictly measures how well the model preserves the original structure of the garment outside the editing ROI. A lower MSE indicates better structural preservation. For Image Quality, we employ widely used metrics including Fréchet Inception Distance (FID) [41], Structural Similarity Index (SSIM), and Peak Signal-to-Noise Ratio (PSNR). Additionally, we use advanced perceptual metrics like CLIP-IQA [42], MAN-IQA [43], and MUSIQ [44] to assess the visual realism and aesthetic quality of the generated images. For Alignment, we use the CLIP Image score [45] to measure the semantic consistency between the generated image and the text instruction/reference image.
4.2. Main Result
4.2.1. Quantitative Results
Table 1 presents our quantitative comparison across the three editing tasks. Our method achieves robust performance across all metrics, maintaining a superior balance between controllability and quality.
Table 1.
Quantitative comparison with baseline methods. We evaluate Controllability, Image Quality, and Alignment. The arrows indicate the direction of better performance (↓ lower is better, ↑ higher is better). Best results are in bold, second-best are underlined. Our method achieves the best overall performance.
In the Add Symbols task, our MSE drops to 1021 and FID to 5.94, achieving the best combination of metrics. While IP-Adapter has a slightly higher CLIP-IQA (0.62 vs. 0.61), its overall quality (FID 50.32) and Alignment are significantly lower. This discrepancy suggests that while IP-Adapter generates aesthetically pleasing images, it often fails to respect the original structure of the garment, introducing hallucinations or style shifts that deviate from the input.
In the Virtual Try-On task, D⌃4-VTON performs exceptionally well, which is expected given it is a specialized model designed solely for this task. However, our solution, requiring only 2 condition inputs (image + box) versus D⌃4-VTON’s 4, achieves comparable results (CLIP Image 0.95 vs. 0.96, MUSIQ 75.68 vs. 76.51) while maintaining task universality. This demonstrates that our unified framework does not compromise performance for versatility.
In the Remove Item task, our method achieves the best MSE (279) and FID (3.01). FLUX.1, by comparison, suffers from significant quality degradation (FID 345.71), often introducing artifacts or failing to fill the removed region coherently. Overall, our solution demonstrates stable capabilities without adding extra conditions.
4.2.2. Qualitative Results
Figure 6 displays the qualitative results. Our model successfully adds target symbols while preserving the original knitting structure, showing a clear advantage over baselines, which often blur the yarn details. In the Add Symbols row, we can observe that ControlNet tends to darken the image, while IP-Adapter loses the texture of the sweater entirely. In contrast, Knit-Edit seamlessly integrates the logo. In Virtual Try-On, it restores the garment structure better than SD-VTON and StableVITON, particularly in handling complex necklines and sleeve patterns. For Remove Item, our model cleanly removes objects without leaving “ghosting” artifacts or extra wrinkles, generating images that meet user needs visually.
Figure 6.
Qualitative comparison. Our model performs better visually. For Add Symbols, it restores color and brightness effectively. For Virtual Try-On, it maintains garment fidelity. For Remove Item, it cleans up details better than FLUX.1 and other baselines.
4.3. Ablation Studies
4.3.1. Effectiveness of Core Components
Table 2 details the ablation results to isolate the contribution of each module. With neither EditLoRI nor Bounding Box guidance (i.e., standard LoRA with text prompts), performance is suboptimal (MSE 1450, FID 20.49), indicating that the baseline FLUX.1 model struggles with precise industrial editing. Enabling EditLoRI improves metrics significantly, dropping FID to 9.82. This confirms that orthogonal adaptation is crucial for maintaining quality when learning new tasks. Adding the Bounding Box mechanism further optimizes the results, with MSE dropping to 991 and FID to 5.90. This confirms that the synergy of positioning constraints and low-rank editing is key to our performance: EditLoRI handles the texture, while Bounding Boxes handle the geometry.
Table 2.
Ablation study on EditLoRI and Bounding Box guidance. The green check mark indicates the component is enabled, and the red cross indicates it is disabled. The arrows indicate the direction of better performance (↓ lower is better, ↑ higher is better). Best results are in bold. The network achieves optimal performance when all components are enabled.
4.3.2. Comparison Between LoRA and EditLoRI on Multiple Adapters
Table 3 compares EditLoRI with the standard Merged LoRA method. EditLoRI outperforms Merged LoRA across most metrics. For example, in the Add Symbols task, EditLoRI achieves an FID of 5.94 compared to 35.95 for Merged LoRA. This validates that the orthogonal constraints in EditLoRI effectively mitigate parameter interference. When standard LoRA adapters are merged, their weight updates sum linearly, often pushing the model weights into a “confused” state where neither task is performed well. EditLoRI’s orthogonality ensures that the tasks remain disentangled in the parameter space, enabling high-quality multi-task editing. Figure 7 provides visual confirmation, where Merged LoRA shows clear signs of texture collapse.
Table 3.
Comparison between EditLoRI and Merged LoRA. The arrows indicate the direction of better performance (↓ lower is better, ↑ higher is better). Best results are in bold. EditLoRI outperforms Merged LoRA in all metrics.
Figure 7.
Qualitative comparison between EditLoRI and LoRA. Both perform well individually, but Merged LoRA exhibits severe texture distortion when fusing multiple adapters, likely due to conflict. EditLoRI maintains high quality.
4.3.3. Impact of Training Steps
Figure 8 illustrates the impact of training steps on model performance. We observe a clear trade-off between Image Quality (FID) and Text Alignment (CLIP Image Score).
Figure 8.
Impact of training steps on Image Quality (FID) and alignment (CLIP Image). The model converges rapidly around 3000 steps, achieving the optimal balance between fidelity and control. Extended training (6000 steps) yields marginal gains in FID but risks overfitting, as indicated by the plateauing CLIP score.
Performance improves significantly from 1000 to 3000 steps, with FID dropping from 14.34 to 5.90. Beyond 3000 steps, the gains diminish, and the CLIP Image score stabilizes around 0.965. Balancing computational cost and convergence, we selected 3000 steps as the optimal stopping point. Extended training risks overfitting to the synthetic data distribution, potentially reducing generalization to real-world images.
4.3.4. Impact of LoRA Rank
Table 4 analyzes the effect of LoRA rank on performance. Rank 8 achieves the best balance between Controllability, Image Quality, and Alignment. Lower ranks (e.g., 4) lack the capacity to learn complex knitting patterns, resulting in higher FID. Higher ranks (e.g., 32) improve MSE slightly but compromise subjective quality (MUSIQ), likely due to overfitting the training set. Therefore, we adopt rank 8 as the default setting for all experiments.
Table 4.
Ablation study on LoRA ranks. The arrows indicate the direction of better performance (↓ lower is better, ↑ higher is better). Best results are in bold, second-best are underlined. Rank 8 achieves the best overall performance.
4.3.5. Layerwise Update Magnitude Analysis
To validate the efficiency of our EditLoRI method, we analyze the update magnitude of the learnable parameters across different layers. The core hypothesis is the “Minimal Intervention Principle”: an effective model editing method should achieve the target effect with minimal parameter modifications, thereby maximally preserving the original knowledge of the pre-trained model.
We calculated the Frobenius norm of the weight update for each layer, where for Standard LoRA and for EditLoRI. Figure 9 illustrates the layerwise comparison.
Figure 9.
Layerwise comparison of parameter update magnitudes (Norm of ). The dots represent the raw data points (specific interference magnitude) for each Transformer block. The blue line (EditLoRI) remains consistently lower than the red line (Standard LoRA) across most layers, demonstrating the “minimal intervention” property.
The quantitative results demonstrate a significant advantage for EditLoRI, which maintains a lower average update norm of 6.36 (maximum 14.26) compared to Standard LoRA’s average of 8.04 (maximum 17.63). EditLoRI achieves approximately 20% lower update magnitude compared to Standard LoRA. This indicates that EditLoRI completes the editing task in a more efficient and “lightweight” manner. The reduced parameter variation suggests higher parameter utilization and, crucially, less destructive interference with the original model weights, aligning with the goal of precise and minimal editing.
4.3.6. Interference Magnitude Analysis
To further substantiate the orthogonal superiority of EditLoRI, we analyzed the “Interference Magnitude” between tasks. We calculated the dot product of the Delta Weight updates between different tasks, denoted as . This metric comprehensively reflects both the directional orthogonality and the magnitude of the updates, directly quantifying the potential interference one task’s modification imposes on another.
The analysis reveals that EditLoRI excels in minimizing inter-task interference, achieving an average interference magnitude of 0.0524, compared to 0.0847 for Standard LoRA. EditLoRI reduces inter-task interference by 38.12%. This implies that the updates generated by EditLoRI are not only more “lightweight” but also less conflicting in the parameter space. Such low-interference characteristics are a key advantage for model merging and continual learning scenarios, proving that EditLoRI effectively decouples the knowledge representation of different tasks.
Figure 10 visually presents the interference magnitude across each Transformer block. It is clearly observable that EditLoRI (blue line) maintains significantly lower interference levels than Standard LoRA (red line) across the vast majority of layers.
Figure 10.
Layerwise comparison of interference magnitudes (). The dots represent the raw data points (specific interference magnitude) for each Transformer block. EditLoRI (blue) consistently exhibits lower interference compared to Standard LoRA (red), validating its effectiveness in task decoupling.
5. Conclusions
In this work, we presented Knit-Edit, a unified and versatile framework that addresses the critical challenge of “Texture Collapse” in generative manufacturing. By introducing EditLoRI, we mathematically enforced the orthogonality of task-specific adapters, allowing the model to decouple and recompose multiple editing capabilities—such as pattern modification and Virtual Try-On—without destructive interference. This mechanism ensures that the learning of semantic attributes does not compromise the underlying topological structure of the fabric. Furthermore, our spatial prompting strategy, enabled by Bounding Box tokenization, bridges the gap between vague textual commands and the precise localization required by industrial standards. Validated on the comprehensive KnitEdit dataset, our approach demonstrates a significant leap in both structural fidelity and multi-task controllability compared to existing diffusion baselines, offering a robust solution for the transition from mass production to mass customization.
It is worth noting that, despite the reliance on synthetic training data, our qualitative evaluations on the real-world samples indicate that the model generalizes effectively to most common manufacturing scenarios, producing satisfactory results for standard fabric textures and lighting conditions. However, several limitations warrant honest discussion. First, our training relies heavily on synthetic data. While this data provides clean “ideal physics” for learning knitting structures, it does not fully capture the complex lighting, material aging, and physical imperfections encountered in real-world photography. This potentially creates a sim-to-real gap during inference, where the model might struggle with highly irregular or worn fabrics. Second, our evaluation is primarily technical, relying on metrics like FID and CLIP scores. While these metrics correlate with quality, they do not fully capture the nuanced preferences of professional fashion designers. We have not yet conducted extensive user studies to assess the tool’s integration into actual production workflows or its ease of use for non-technical practitioners. Finally, the current framework is strictly specialized for the domain of knitted garments. The applicability of EditLoRI’s orthogonal projection to other textile types with different topological constraints or complex multi-material assemblies remains an open question.
Future work will focus on bridging these gaps. We aim to incorporate domain adaptation techniques to enhance robustness on real-world images, potentially by leveraging unsupervised domain adaptation or collecting a larger real-world dataset. We also plan to collaborate with fashion designers to refine the interaction interface, exploring more intuitive control mechanisms such as sketch-based guidance or interactive segmentation. Additionally, we will explore extending the orthogonal adaptation mechanism to a broader range of fabric textures, moving towards a truly universal intelligent design system. Furthermore, we intend to conduct rigorous quantitative analyses, such as measuring the cosine similarity between task-specific subspaces, to theoretically validate the orthogonality of our EditLoRI mechanism and further optimize the subspace projection.
Author Contributions
Conceptualization, Q.F.; methodology, Z.W.; software, Z.W.; validation, Z.W. and J.L. (Jiajun Liu); formal analysis, Z.W.; investigation, Z.W. and J.L. (Jiajun Liu); resources, Q.F.; data curation, Z.W.; writing—original draft preparation, Z.W.; writing—review and editing, J.L. (Jing Li), J.L. (Jiajun Liu) and Q.F.; visualization, Z.W.; supervision, J.L. (Jing Li) and Q.F.; project administration, J.L. (Jing Li) and Q.F.; funding acquisition, Q.F. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data presented in this study are available on request from the corresponding author. The data are not publicly available due to ongoing commercial cooperation with industrial partners. The full dataset and model will be made publicly accessible after the conclusion of the confidentiality period.
Conflicts of Interest
The authors declare no conflicts of interest. The dataset utilized in this study was partially collected in collaboration with Ningbo Cixing Co., Ltd. The industrial partner provided access to data collection facilities but had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
References
- Hu, S.J. Evolving paradigms of manufacturing: From mass production to mass customization and personalization. Procedia CIRP 2013, 7, 3–8. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Ma, H.S.; Yang, J.H.; Wang, K.S. Industry 4.0: A way from mass customization to mass personalization production. Adv. Manuf. 2020, 8, 311–320. [Google Scholar] [CrossRef] [Scilit]
- Peebles, W.; Xie, S. Scalable Diffusion Models with Transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 1–6 October 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 4195–4205. [Google Scholar]
- Labs, B.F.; Batifol, S.; Blattmann, A.; Boesel, F.; Consul, S.; Diagne, C.; Dockhorn, T.; English, J.; English, Z.; Esser, P.; et al. FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space. arXiv 2025, arXiv:2506.15742. [Google Scholar]
- Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-Rank Adaptation of Large Language Models. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 25–29 April 2022. [Google Scholar]
- Zhang, L.; Rao, A.; Agrawala, M. Adding Conditional Control to Text-to-Image Diffusion Models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 1–6 October 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 3836–3847. [Google Scholar]
- Zhang, J.; You, J.; Panda, A.; Goldstein, T. LoRI: Reducing Cross-Task Interference in Multi-Task Low-Rank Adaptation. arXiv 2025, arXiv:2504.07448. [Google Scholar]
- Song, D.; Zhang, X.; Zhou, J.; Nie, W.; Tong, R.; Kankanhalli, M.; Liu, A.A. Image-Based Virtual Try-On: A Survey. Int. J. Comput. Vis. (IJCV) 2025, 133, 2692–2720. [Google Scholar] [CrossRef] [Scilit]
- Choi, S.; Park, S.; Lee, M.; Choo, J. VITON-HD: High-Resolution Virtual Try-on via Misalignment-Aware Normalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Virtual, 19–25 June 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 14131–14140. [Google Scholar]
- Ho, J.; Jain, A.; Abbeel, P. Denoising Diffusion Probabilistic Models. Adv. Neural Inf. Process. Syst. 2020, 33, 6840–6851. [Google Scholar]
- Rombach, R.; Blattmann, A.; Lorenz, D.; Esser, P.; Ommer, B. High-Resolution Image Synthesis with Latent Diffusion Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 10684–10695. [Google Scholar]
- Baldrati, A.; Morelli, D.; Cartella, G.; Cornia, M.; Bertini, M.; Cucchiara, R. Multimodal Garment Designer: Human-Centric Latent Diffusion Models for Fashion Image Editing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 18–22 June 2023; IEEE: Piscataway, NJ, USA, 2023. [Google Scholar]
- Zhu, L.; Yang, D.; Zhu, T.; Reda, F.; Chan, W.; Saharia, C.; Norouzi, M.; Kemelmacher-Shlizerman, I. TryOnDiffusion: A Tale of Two Unets. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 18–22 June 2023; IEEE: Piscataway, NJ, USA, 2023. [Google Scholar]
- Xing, J.; Xu, C.; Qian, Y.; Liu, Y.; Dai, G.; Sun, B.; Liu, Y.; Wang, J. TryOn-Adapter: Efficient Fine-Grained Clothing Identity Adaptation for High-Fidelity Virtual Try-On. Int. J. Comput. Vis. (IJCV) 2025, 133, 3781–3802. [Google Scholar] [CrossRef] [Scilit]
- Shen, L.; Huang, R.; Wang, Z. MFP-VTON: Enhancing Mask-Free Person-to-Person Virtual Try-On via Diffusion Transformer. arXiv 2025, arXiv:2502.01626. [Google Scholar]
- Liu, Y.; Tang, J.; Zheng, C.; Zhu, J.; Wang, C.; Huang, D. ClotheDreamer: Text-Guided Garment Generation with 3D Gaussians. Appl. Intell. 2025, 55, 767. [Google Scholar] [CrossRef] [Scilit]
- Ren, R.; Jiang, Y.; Lu, Z.; Sun, J. Depth-Aware Fashion Synthesis via Manifold-Aligned Multi-Modal Diffusion. IEEE Access 2025, 13, 194714–194728. [Google Scholar] [CrossRef] [Scilit]
- Esser, P.; Kulal, S.; Blattmann, A.; Entezari, R.; Müller, J.; Saini, H.; Levi, Y.; Lorenz, D.; Sauer, A.; Boesel, F.; et al. Scaling Rectified Flow Transformers for High-Resolution Image Synthesis. In Proceedings of the International Conference on Machine Learning (ICML), Vienna, Austria, 21–27 July 2024. [Google Scholar]
- Li, Z.; Zhang, J.; Lin, Q.; Xiong, J.; Long, Y.; Deng, X.; Zhang, Y.; Liu, X.; Huang, M.; Xiao, Z.; et al. Hunyuan-DiT: A Powerful Multi-Resolution Diffusion Transformer with Fine-Grained Chinese Understanding. arXiv 2024, arXiv:2405.08748. [Google Scholar]
- Feng, K.; Ma, Y.; Wang, B.; Qi, C.; Chen, H.; Chen, Q.; Wang, Z. DiT4Edit: Diffusion Transformer for Image Editing. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI); AAAI Press: Washington, DC, USA, 2025. [Google Scholar]
- Nitzan, Y.; Wu, Z.; Zhang, R.; Shechtman, E.; Cohen-Or, D.; Park, T.; Gharbi, M. Lazy Diffusion Transformer for Interactive Image Editing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; IEEE: Piscataway, NJ, USA, 2024. [Google Scholar]
- Huang, Y.; Xie, L.; Wang, X.; Yuan, Z.; Cun, X.; Ge, Y.; Zhou, J.; Dong, C.; Huang, R.; Zhang, R.; et al. SmartEdit: Exploring Complex Instruction-based Image Editing with Multimodal Large Language Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; IEEE: Piscataway, NJ, USA, 2024. [Google Scholar]
- Ling, P.; Chen, L.; Zhang, P.; Chen, H.; Jin, Y.; Zheng, J. FreeDrag: Feature Dragging for Reliable Point-based Image Editing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; IEEE: Piscataway, NJ, USA, 2024; pp. 6860–6870. [Google Scholar]
- Lin, Y.; Chen, Y.W.; Tsai, Y.H.; Jiang, L.; Yang, M.H. Text-Driven Image Editing via Learnable Regions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; IEEE: Piscataway, NJ, USA, 2024; pp. 7059–7068. [Google Scholar]
- Li, Q.; Qiu, S.; Han, J.; Xu, X.; Seyfioglu, M.S.; Koo, K.K.; Bouyarmane, K. DiT-VTON: Diffusion Transformer Framework for Unified Multi-Category Virtual Try-On and Virtual Try-All with Integrated Image Editing. arXiv 2025, arXiv:2510.04797. [Google Scholar]
- Mou, C.; Wang, X.; Xie, L.; Wu, Y.; Zhang, J.; Qi, Z.; Shan, Y.; Qie, X. T2I-Adapter: Learning Adapters to Dig out More Controllable Ability for Text-to-Image Diffusion Models. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI); AAAI Press: Washington, DC, USA, 2024. [Google Scholar]
- Li, M.; Yang, T.; Kuang, H.; Wu, J.; Wang, Z.; Xiao, X.; Chen, C. ControlNet++: Improving Conditional Controls with Efficient Consistency Feedback. In Proceedings of the European Conference on Computer Vision (ECCV), Milan, Italy, 29 September–4 October 2024. [Google Scholar]
- Meng, C.; He, Y.; Song, Y.; Song, J.; Wu, J.; Zhu, J.Y.; Ermon, S. SDEdit: Image Synthesis and Editing with Stochastic Differential Equations. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 25–29 April 2022. [Google Scholar]
- Hertz, A.; Mokady, R.; Tenenbaum, J.; Perona, P.; Hayun, I.; Karni, S.; Nowozin, S.; Rubinstein, M.; Freeman, W.T.; Zoran, D. Prompt-to-Prompt Image Editing with Cross Attention Control. In Proceedings of the International Conference on Learning Representations (ICLR), Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Brooks, T.; Holynski, A.; Efros, A.A. InstructPix2Pix: Learning to Follow Image Editing Instructions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 18–22 June 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 18392–18402. [Google Scholar]
- Ju, X.; Liu, X.; Wang, X.; Bian, Y.; Shan, Y.; Xu, Q. BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion. In Proceedings of the European Conference on Computer Vision (ECCV), Milan, Italy, 29 September–4 October 2024. [Google Scholar]
- Agiza, A.; Neseem, M.; Reda, S. MTLoRA: A Low-Rank Adaptation Approach for Efficient Multi-Task Learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; IEEE: Piscataway, NJ, USA, 2024. [Google Scholar]
- Zhang, C.; Gong, D.; He, J.; Zhu, Y.; Sun, J.; Zhang, Y. UIR-LoRA: Achieving Universal Image Restoration through Multiple Low-Rank Adaptation. In Proceedings of the International Conference on Learning Representations (ICLR), Singapore, 24–28 April 2025. [Google Scholar]
- Albergo, M.S.; Bouchard-Côté, A.; Deléchelle, P.; Huguet, G.; Loubère, R.; Scieur, D. Flow Matching for Generative Modeling. In Proceedings of the International Conference on Learning Representations (ICLR), Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Mishchenko, K.; Defazio, A. Prodigy: An Expeditiously Adaptive Parameter-Free Learner. In Proceedings of the International Conference on Machine Learning (ICML), Vienna, Austria, 21–27 July 2024. [Google Scholar]
- Ye, H.; Zhang, J.; Liu, S.; Han, X.; Yang, W. IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models. arXiv 2023, arXiv:2308.06721. [Google Scholar]
- Shim, S.H.; Chung, J.; Heo, J.P. Towards Squeezing-Averse Virtual Try-on via Sequential Deformation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; IEEE: Piscataway, NJ, USA, 2024; pp. 8142–8152. [Google Scholar]
- Kim, J.; Gu, G.; Park, M.; Park, S.; Choo, J. StableVITON: Learning Semantic Correspondence with Latent Diffusion Model for Virtual Try-On. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; IEEE: Piscataway, NJ, USA, 2024; pp. 8176–8185. [Google Scholar]
- Yang, Z.; Jiang, Z.; Li, X.; Zhou, H.; Dong, J.; Zhang, H.; Du, Y. D4-VTON: Dynamic Semantics Disentangling for Differential Diffusion Based Virtual Try-On. In Proceedings of the European Conference on Computer Vision (ECCV), Milan, Italy, 29 September–4 October 2024. [Google Scholar]
- Tan, Z.; Liu, S.; Yang, X.; Xue, Q.; Wang, X. OminiControl: Minimal and Universal Control for Diffusion Transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Honolulu, HI, USA, 19–20 October 2025; IEEE: Piscataway, NJ, USA, 2025. [Google Scholar]
- Heusel, M.; Ramsauer, H.; Unterthiner, T.; Nessler, B.; Hochreiter, S. GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium. arXiv 2017, arXiv:1706.08500. [Google Scholar]
- Wang, J.; Chan, K.C.K.; Loy, C.C. Exploring CLIP for Assessing the Look and Feel of Images. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI); AAAI Press: Washington, DC, USA, 2023; Volume 37, pp. 2555–2563. [Google Scholar]
- Yang, S.; Wu, T.; Shi, S.; Lao, S.; Gong, Y.; Cao, M.; Wang, J.; Yang, Y. MANIQA: Multi-Dimension Attention Network for No-Reference Image Quality Assessment. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 1191–1200. [Google Scholar]
- Ke, J.; Wang, Q.; Wang, Y.; Milanfar, P.; Yang, F. MUSIQ: Multi-Scale Image Quality Transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, BC, Canada, 11–17 October 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 5148–5157. [Google Scholar]
- Radford, A.; Kim, J.W.; Hallacy, C.; Ramesh, A.; Goh, G.; Agarwal, S.; Sastry, G.; Askell, A.; Clark, J.; Mishkin, P.; et al. Learning Transferable Visual Models from Natural Language Supervision. In Proceedings of the International Conference on Machine Learning (ICML), Virtual, 18–24 July 2021; pp. 8748–8763. [Google Scholar]
- Labs, B.F. FLUX. 2024. Available online: https://github.com/black-forest-labs/flux (accessed on 24 June 2025).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.









