Abstract
In this paper, we propose a new setting for generating product descriptions from images, augmented by marketing keywords. It leverages the combined power of visual and textual information to create descriptions that are more tailored to the unique features of products. For this setting, previous methods utilize visual and textual encoders to encode the image and keywords and employ a language model-based decoder to generate the product description. However, the generated description is often inaccurate and generic since same-category products have similar copy-writings, and optimizing the overall framework on large-scale samples makes models concentrate on common words yet ignore the product features. To alleviate the issue, we present a simple and effective Multimodal In-Context Tuning approach, named ModICT, which introduces a similar product sample as the reference and utilizes the in-context learning capability of language models to produce the description. During training, we keep the visual encoder and language model frozen, focusing on optimizing the modules responsible for creating multimodal in-context references and dynamic prompts. This approach preserves the language generation prowess of large language models (LLMs), facilitating a substantial increase in description diversity. To assess the effectiveness of ModICT across various language model scales and types, we collect data from three distinct product categories within the E-commerce domain. Extensive experiments demonstrate that ModICT significantly improves the accuracy (by up to 3.3% on Rouge-L) and diversity (by up to 9.4% on D-5) of generated results compared to conventional methods.
Introduction
Generating the perfect product description is a balancing act. It needs to be accurate to the item’s features, catchy for marketing, and—crucially—distinct from the thousands of other similar products in the same category. While Large Language Models (LLMs) are exceptional at writing, they often fall into the trap of producing "generic" text when trained on massive e-commerce datasets. This phenomenon occurs because models tend to converge on common phrases for similar-looking products, ignoring unique features.
To address this, researchers from the Harbin Institute of Technology and collaborators introduced ModICT (Multimodal In-Context Tuning). This approach leverages the "in-context learning" abilities of LLMs to generate diverse, feature-rich product descriptions by providing the model with a similar example as a reference during the generation process.
Methodology: The ModICT Framework
The ModICT framework is designed to be parameter-efficient, working with frozen, pre-trained models to preserve their natural creative writing capabilities. The architecture consists of three main components:
- In-Context Reference Construction: For every target product, the system uses a frozen visual encoder (CLIP) to retrieve the most visually similar item from the training set. This "neighbor" item—comprising its image, keywords, and description—is provided to the model as a prompt, serving as a stylistic and factual guide.
- Multimodal Bridge (Feature Transformer): To bridge the gap between visual and textual data, a learnable Feature Transformer maps visual features into the LLM’s word embedding space. This allows the image to be treated as a special "visual token" within the text sequence.
- Efficient Tuning: The LLM and visual encoder remain frozen. Training is focused solely on the small Feature Transformer and a set of Dynamic Prompts (adapters) inserted into the LLM’s layers. This allows the model to adapt to e-commerce writing without losing its core linguistic prowess.
Experimental Setup
The researchers evaluated ModICT using a new large-scale dataset called MD2T, derived from a Chinese e-commerce corpus. The dataset contains approximately 300,000 samples across three categories: Cases & Bags, Clothing, and Home Appliances. Each sample includes a product image, marketing keywords (e.g., brand, material, style), and a human-written description averaging 80 words.
Results and Discussion
Extensive experiments compared ModICT against state-of-the-art multimodal models such as Oscar and M-kplug. The results showed significant improvements in both accuracy and diversity:
- Accuracy: ModICT improved the Rouge-L score by up to 3.3%.
- Diversity: The D-5 score (measuring the variety of 5-grams) saw a substantial jump of up to 9.4%, indicating that the generated descriptions were far less repetitive than those from baseline models.
- Qualitative Performance: Human evaluations consistently ranked ModICT higher in terms of "Richness" and "Relevance" to marketing keywords. As shown in the case study below, ModICT successfully incorporates specific keywords like "LOVINA" and "ruffle" into a coherent and descriptive narrative that closely matches the ground truth.
Key insights from the study include the finding that "one-shot" learning (providing a single reference) is often the optimal setting, as additional references can sometimes confuse the model. Furthermore, keeping the LLM frozen proved superior to full fine-tuning, which often caused the model's output diversity to plummet.
Conclusion
ModICT demonstrates that in-context learning is a powerful tool for specialized tasks like e-commerce description generation. By providing a multimodal reference and using parameter-efficient tuning, the model achieves higher accuracy and significantly better diversity than traditional fine-tuning methods. Future work will explore more sophisticated retrieval methods and the application of this paradigm to even larger foundation models.
Summary updated