Abstract
In modern e-commerce, presenting users with personalized "bundle creatives"—cohesive combinations of products, marketing slogans, and visual templates—is essential for engagement. However, traditional generative models often struggle with the computational overhead of sequential generation and the arbitrary ordering of bundle elements. This paper introduces Conna (Contrastive Non-Autoregressive model), a novel framework designed to generate high-quality, personalized bundles efficiently. By employing a non-autoregressive decoder and a contrastive learning objective, Conna achieves superior recommendation quality while delivering a 2.8x speedup over state-of-the-art sequential models.
Introduction
Traditional recommendation systems typically focus on ranking individual items. In contrast, a "bundle creative" is a holistic visual advertisement that integrates multiple items, catchy slogans, and a specific layout template. Automating the creation of these bundles presents two primary challenges: ensuring creative-level quality (where all elements complement each other and the user's taste) and maintaining generation efficiency for real-time applications.
Existing autoregressive models generate elements one by one (e.g., Item A, then Item B, then a Slogan). This sequential approach is not only slow but also introduces "ordering bias," as the model is forced to learn a specific sequence for elements that are inherently unordered in a visual layout. To address these issues, we present Conna, a framework that treats bundle generation as a set-prediction task.
The Conna Framework
Conna's architecture is built to handle the multi-modal nature of bundle creatives while optimizing for both speed and user preference.
Type-Aware Encoder
The model begins with a Type-Aware Encoder that processes the user's historical interactions alongside candidate objects (items, slogans, and templates). By utilizing self-attention mechanisms and specific "type embeddings," the encoder learns to distinguish between different categories of content, ensuring that the representation of a product ID is processed differently than a marketing slogan.
Non-Autoregressive Decoder and Set-Based Learning
Unlike traditional decoders, Conna’s non-autoregressive decoder predicts all bundle elements—such as three items, two slogans, and a template—simultaneously in parallel. To train this parallel output without a fixed ground-truth order, the authors utilize a Set-based Learning Objective powered by the Hungarian algorithm. This allows the model to match its predictions to the ground truth in the most optimal way, preventing the model from being penalized for predicting the correct items in a "wrong" sequence.
Contrastive Learning Objective
To align the generated bundles with actual user preferences, Conna incorporates a contrastive learning objective. The model is trained to maximize the probability gap between "positive" bundles (those a user clicked on) and "negative" bundles (those ignored). This holistic optimization ensures the model learns what makes a bundle attractive as a single unit of creative quality, rather than just a collection of individual items.
Experimental Evaluation
Datasets
The researchers evaluated Conna using large-scale, real-world user feedback logs from Alibaba’s e-commerce platform:
- BC-L (Large): 7 million instances, including 100,000 positive (clicked) instances.
- BC-S (Small): A 30% sample used to evaluate performance under data-constrained scenarios.
Performance and Efficiency
Conna demonstrated significant improvements over existing baselines, including Reinforcement Learning (RL)-based Transformers:
- Quality: On the BC-L dataset, Conna achieved a HitRatio of 0.6564, outperforming the best baseline (0.6411).
- Speed: Due to its parallel decoding architecture, Conna is 2.8x faster at inference time than sequential RL-Transformer models.
- Ablation Study: The importance of the contrastive objective was confirmed when its removal led to a performance drop from 0.6564 to 0.6194, highlighting that modeling negative user feedback is critical for capturing creative quality.
Key Insights
- Order-Invariance: In visual bundles, the sequence of items is often irrelevant. Moving to a non-autoregressive approach eliminates the "exposure bias" inherent in sequential models and better reflects the reality of visual design.
- End-to-End Training: Unlike RL-based approaches that require complex multi-stage training (reward estimation, generation, and fine-tuning), Conna is trained end-to-end. This simplicity makes it significantly more practical for industrial deployment.
Conclusion and Future Work
Conna represents a significant step forward in automated marketing creative generation. While the model excels at speed and personalization, future iterations will focus on handling "conflicting items" (e.g., avoiding the recommendation of two redundant brands) and incorporating stricter aesthetic or business logic constraints. By treating the bundle as a holistic set rather than a sequence, Conna provides a robust foundation for the next generation of personalized e-commerce advertisements.
Summary updated