Abstract
In the rapidly evolving field of e-commerce, precise image editing that maintains product identity is crucial. General-purpose models often suffer from "identity drift," where fine-grained details of the subject are lost during manipulation. We present TBStar-Edit, a framework designed to bridge the gap between instruction-following and consistency preservation. By utilizing a hierarchical LoRA-based architecture and a robust four-stage data pipeline, TBStar-Edit achieves state-of-the-art performance in maintaining semantic and visual consistency across various editing tasks, as demonstrated on the newly introduced EcomEdit-Bench.
Introduction
E-commerce workflows demand high fidelity. When a merchant modifies a product photo—whether changing a background, adjusting a model's pose, or altering lighting—the core product must remain unchanged. General models like Flux or GPT-4o, while creative, often introduce unintended modifications to the subject's texture, logos, or facial features. This "identity crisis" limits their utility in professional settings where brand integrity is non-negotiable. TBStar-Edit addresses this by decoupling the editing logic from the preservation of identity, ensuring that "consistency is king."
Methodology
The TBStar-Edit framework relies on two pillars: a high-quality data pipeline and a specialized hierarchical model architecture.
1. The Data Pipeline
The authors argue that existing open-source datasets are too noisy for high-stakes e-commerce tasks. They developed a comprehensive four-stage pipeline to generate high-fidelity training pairs:
- Collection: Sourcing high-fidelity, real-world images from web and internal databases.
- Construction: Employing four distinct methods to create "before and after" pairs. This includes Expert-based methods using specialized models for tasks like object removal; Template-based methods using 3D rendering for perfect lighting consistency; In-Context Generation leveraging the inherent abilities of T2I models; and LoRA-based methods for generating niche editing data at scale.
- Filtering: Using Vision-Language Models (VLMs) and human review to score data quality based on instruction following and image quality.
- Post-processing: Diversifying instructions via Large Language Models (LLMs) in both Chinese and English.
2. Hierarchical Architecture & Two-Stage Training
Built upon the Qwen-Image backbone, the core innovation is the separation of editing capability from consistency preservation through a hierarchical LoRA setup:
- Pattern Shifting Modules: LoRA layers inserted at the QKV Attention positions to learn the "logic" of editing (how to follow an instruction).
- Consistency Enhancement Modules: Additional LoRA layers applied to the projections following the attention block to "lock in" the original image's details.
The training strategy is equally critical. In Stage 1 (Pattern Shifting), all modules are trained on mixed data to establish basic editing skills. In Stage 2 (Consistency Enhancement), the Pattern Shifting modules are frozen, and only the Consistency Enhancement modules are trained on high-quality, proprietary e-commerce data to refine the model's ability to preserve the subject.
Evaluation and Results
The model was evaluated using EcomEdit-Bench, a new benchmark of 380 image-instruction pairs covering common e-commerce tasks like pose editing, background replacement, and watermark removal.
TBStar-Edit significantly outperformed competitors like Flux-Kontext, Qwen-Image-Edit, and Seedream 4.0. Quantitatively, it achieved the highest Semantic Consistency ($G_{SC}$) score of 9.206. Qualitatively, human preference studies showed a strong preference for TBStar-Edit, with a 55.8% win rate over Flux-Kontext and 46.9% over Qwen-Image-Edit. The model excels in complex scenarios, such as maintaining fabric texture during pose changes or preserving specific characters on labels during color shifts.
Conclusion
TBStar-Edit represents a significant step toward "commercial-grade" AI image editing. By treating consistency as a first-class architectural requirement and leveraging a data-centric approach, it provides a viable solution for the rigorous demands of e-commerce. While the reliance on VLM evaluation and manual review presents scaling challenges, the framework's modular nature suggests a promising path for future adaptation to larger models and video editing.
Summary updated