Abstract
Interactive Image Retrieval (IIR) in the fashion domain requires the ability to modify specific attributes of a garment while preserving its other visual characteristics. However, existing methods often suffer from semantic entanglement, where changing one feature (e.g., color) inadvertently alters others (e.g., sleeve length). This paper presents GAMMA (Garment Attribute Manipulation with Multi-level Attention), a framework designed to achieve precise attribute manipulation through disentangled representations and a dual-encoder Transformer architecture. By utilizing a memory block of attribute prototypes and multi-level cross-attention, GAMMA effectively isolates and modifies target features, achieving state-of-the-art performance on major fashion benchmarks.
1. Introduction
In modern e-commerce, "search by image" has become a standard feature. However, users often require more granular control, seeking items that match a query image except for specific modifications—such as changing a neckline or a fabric pattern. This task, known as Interactive Image Retrieval, is complicated by the "feature soup" problem: visual representations in standard models are often semantically entangled. When a model attempts to modify a single attribute, the lack of isolation between features leads to unintended changes in the retrieved results. GAMMA addresses this by explicitly disentangling attribute representations and using a memory-augmented attention mechanism to guide the manipulation process.
2. The GAMMA Framework
The GAMMA architecture operates through three primary stages designed to isolate, reference, and integrate attribute changes.
2.1 Attribute Disentanglement
The process begins with an Attribute-Driven Disentangled Encoder (ADDE). Using a backbone network (such as AlexNet), the model decomposes the input image into a set of distinct embeddings. Each embedding corresponds to a specific attribute category (e.g., collar, color, texture), ensuring that the visual information is mathematically separated before any manipulation occurs.
2.2 Dual-Encoder Architecture
GAMMA utilizes a dual-encoder Transformer setup to process the query and the desired modifications:
- Feature Encoder: This component processes the disentangled query features alongside an "indicator vector" that specifies the intended modification (the addition or removal of specific attributes).
- Memory Encoder: This encoder manages a "Memory Block," which serves as a dictionary of prototype embeddings. These prototypes represent the ideal visual characteristics for every possible attribute value in the dataset (e.g., a prototypical "V-neck" or "denim" texture).
2.3 Multi-level Attention and Decoding
The final stage employs a Transformer decoder that uses multi-level cross-attention to bridge the query features and the memory prototypes. This allows the model to "borrow" precise visual information from the memory block to update the query representation. To ensure accuracy, the model is trained using two specialized loss functions: Compositional Triplet Loss, which aligns the manipulated feature with the actual target image, and Label Triplet Loss, which ensures the specific attribute change is correctly reflected in the embedding space.
3. Experimental Evaluation
The researchers evaluated GAMMA on two industry-standard benchmarks:
- Shopping100k: A dataset of approximately 101,000 clean e-commerce images featuring 12 attributes and 151 unique labels.
- DeepFashion: A larger, more complex dataset of over 800,000 images. This dataset is significantly more challenging due to "in-the-wild" conditions, including varied poses, background clutter, and occlusions.
4. Results and Discussion
GAMMA demonstrated superior performance on the Shopping100k dataset, establishing new state-of-the-art (SOTA) benchmarks:
- Top-10 Accuracy: 43.70% (surpassing the previous best of 43.02%).
- Top-30 Accuracy: 60.79%.
- Ranking Quality: The model significantly outperformed previous methods in Normalized Discounted Cumulative Gain (NDCG), particularly the
NDCG_targetmetric, indicating a superior ability to capture the specific attribute changes requested by the user.
On the DeepFashion dataset, GAMMA remained highly competitive. While the gains were more modest due to the inherent difficulty of cluttered, non-catalog images, the model showed resilience in isolating features despite environmental noise. Qualitative analysis revealed that GAMMA’s failures are "graceful"; even when a perfect match is not found, the retrieved items remain visually similar to the query and respect the majority of the requested attributes.
5. Conclusion
GAMMA introduces a robust methodology for disentangling and manipulating garment attributes in interactive retrieval systems. By leveraging a memory-augmented dual-encoder architecture, the framework provides a stable visual prior for modifications, reducing the impact of semantic entanglement. Future work will focus on replacing manual indicator vectors with natural language processing, allowing users to perform complex stylistic manipulations through intuitive text commands.
Summary updated