TL;DR
Researchers from JD.COM have developed a novel framework that automates the generation of high-quality e-commerce product backgrounds by balancing "category commonality" (e.g., laptops belong in tech settings) with "personalized style" (e.g., a specific brand's signature color palette). By introducing a dual-generator architecture and the first large-scale e-commerce background dataset, BG60k, they significantly outperform existing text-to-image models in both realism and brand consistency.
What Problem Does This Paper Address?
Generating attractive backgrounds for e-commerce products is a high-stakes task; the authors note that realistic backgrounds can boost click-through rates (CTR) by up to 20%. However, current methods face two major hurdles:
- Scalability: Manually designing unique text prompts for thousands of products across different categories is incredibly inefficient.
- Fine-Grained Style Control: Text prompts often fail to capture the subtle "signature styles" of specific brands—like the specific lighting, layout, or color schemes (e.g., Alienware’s purple tech aesthetic vs. Omen’s red-themed backgrounds).
Existing template-based methods often look "pasted on" and unrealistic, while general-purpose inpainting models struggle to maintain category-specific logic without exhaustive prompt engineering.
Methods
The authors propose a system integrated with Stable Diffusion (SD) consisting of two parallel modules built on the ControlNet architecture:
1. Category-Wise Generator (CG)
To handle large-scale production, the CG maps category-wise background commonality into a unique identifier (e.g., [D]). Instead of a long description, the model uses a template: "A photo of [category] in the background of [D]".
- Mask-Guided Cross Attention: To prevent the model from confusing product features with background features, they devised a custom attention layer. It uses the product mask ($M$) to ensure the product prompt only influences the foreground and the background identifier
[D]only influences the background.
2. Personality-Wise Generator (PG)
For brands requiring a specific "look," the PG learns style directly from a reference image.
- Self-Supervised Training: Since pairs of "product + different background in same style" are rare, the model is trained to reconstruct an original image from its product and a perturbed version of its own background.
- Background Perturbation: To stop the model from simply "copy-pasting" the reference, they apply a strategy involving mask dilation and "mixup" (overlaying random images). This forces the PG to learn the semantic style rather than just replicating pixels.
Datasets
The paper introduces BG60k, the first large-scale dataset specifically for e-commerce background generation.
- Source: Millions of images from JD.COM, cleaned to remove low-CTR images and those containing text.
- Scale: 63,293 advertising images across 2,032 categories.
- Comparison: The authors highlight that general datasets like LAION-5B often contain "dirty" data (improper perspectives, non-salient foregrounds) that lead to poor generation results, whereas BG60k provides the "exquisite" quality needed for professional ads.
Key Insights and Ideas
- Intra-category Variance vs. Inter-category Variance: The core insight is that backgrounds for products in the same category (e.g., all refrigerators) are much more similar to each other than backgrounds across different categories. This justifies using a single category identifier to capture "commonality."
- The "Copy-Paste" Trap: In reference-based generation, models often default to copying the reference image exactly. The authors' use of Background Perturbation (shown in Figure 5) is a clever way to force the model to synthesize new, semantically similar content instead of just duplicating the reference.
- Initialization Matters: During inference, using the noisy latent of the reference image as a starting point (rather than pure noise) significantly improves the final image quality and style alignment.
Key Results
The proposed method was evaluated against state-of-the-art models like ControlNet and Blended Diffusion using CLIP similarity (for style alignment) and FID (for image quality).
- Quantitative: In large-scale generation (without a reference image), their model achieved a CLIP Similarity of 89.58 and an FID of 3.94, significantly outperforming standard ControlNet (84.80 and 5.79, respectively).
- Qualitative: As seen in Figure 6, the model successfully mimics both abstract styles (colors/lighting) and concrete scenes (specific room layouts) from reference images much more accurately than competitors.
- User Study: Professional advertising practitioners ranked the authors' method highest in both background similarity and overall image quality, beating other SOTA inpainters by a wide margin.
Limitations and Future Work
While the paper demonstrates impressive results, a few areas remain for exploration:
- Computational Overhead: Running two parallel generators (CG and PG) alongside Stable Diffusion increases the computational cost compared to a single-model approach.
- Dependency on High-Quality References: The PG's performance is tied to the quality of the reference image provided; if a user provides a poor reference, the "personalized" style may suffer.
- Future Directions: The authors suggest that further refining the self-supervised perturbation strategies could lead to even more creative background synthesis that moves beyond the "layout" of the reference image.
Summary updated