Introduction
In modern e-commerce, users often seek "bundles"—curated sets of items that function together, such as a complete hiking outfit or a home theater system. Traditional approaches to bundle generation typically fall into two categories: recommendation systems that rely on historical user data but ignore current intent, and search engines that match queries but fail to provide a cohesive, complementary set of items.
Text2Bundle addresses this gap by introducing the "Query-based Bundle Generation" (QBG) task. This framework leverages the reasoning capabilities of Large Language Models (LLMs) alongside the precision of Reinforcement Learning (RL) to create personalized, query-aligned, and high-quality item bundles.
The Query-based Bundle Generation (QBG) Task
The QBG task aims to solve the limitations of existing systems. Recommendation systems often suggest pre-made bundles based on past behavior, failing to account for specific, immediate needs (e.g., "outfits for a beach wedding"). Conversely, search engines might return a list of similar items (e.g., multiple pairs of sunglasses) rather than a diverse, complementary set (e.g., sunglasses, a towel, and sandals).
A successful QBG system must ensure the generated bundle is simultaneously personalized (aligned with the user's long-term style), intentional (directly responsive to the user's query), and qualified (composed of items that are functionally or aesthetically complementary).
The Text2Bundle Framework
The authors propose a three-stage pipeline to handle the complexity of the QBG task:
1. Intention Decomposition (The LLM Planner)
Natural language queries are often abstract. Text2Bundle uses an LLM (e.g., ChatGLM) to decompose a vague query like "beach vacation" into specific "intention instances" such as "swimsuit," "sunscreen," and "sandals." This acts as a semantic anchor for the generation process.
2. Unified State Encoder
To represent the user's current state, the model integrates two distinct data modalities:
- ID Embeddings: Pre-trained via LightGCN to capture historical user-item interaction patterns.
- Text Embeddings: Generated via RoBERTa to capture the semantic meaning of item titles and the user's query.
A Transformer-based encoder fuses these embeddings, creating a rich context for the bundle as it is constructed.
3. Bundle Generator (The RL Selector)
Selecting an optimal bundle is a combinatorial challenge. Text2Bundle employs Double Deep Q-Learning (DQN) to select items sequentially. The agent is guided by a multi-faceted reward function that prioritizes precision (matching ground truth), personalization (user preference), complementarity (item synergy), and coverage (addressing all LLM-defined intentions).
Datasets and Experimental Results
The framework was evaluated on the Bundle Intent dataset, covering Clothing, Electronics, and Food domains. These datasets map user queries to specific bundles derived from Amazon product data.
Text2Bundle demonstrated significant performance gains over state-of-the-art baselines like BPR, BGN, and BYOB:
- Precision Boost: In the Clothing domain, Text2Bundle achieved 81.8% precision, significantly higher than the 65.1% achieved by the strongest baseline, BYOB.
- Consistency: The model maintained high performance (above 80% precision) across all three datasets, whereas baselines often struggled with the diversity of Electronics and Food categories.
- Human Evaluation: Blind tests showed that human volunteers preferred Text2Bundle's results over LLM-only approaches (like GPT-3.5 based LLM4B) due to better complementarity and alignment with user profiles.
Key Insights and Discussion
A major takeaway is the strategic use of LLMs as "interpreters" rather than "retrievers." While LLMs excel at high-level planning (knowing what a beach trip requires), they are less effective at precise retrieval from massive, specific catalogs. By using the LLM for coarse planning and RL for fine-grained selection, Text2Bundle achieves the best of both worlds. Furthermore, the results highlight that neither text-only nor ID-only models are sufficient; a multi-modal approach is necessary to balance style preference with query relevance.
Limitations and Future Work
Despite its success, Text2Bundle faces challenges regarding the latency and cost associated with LLM calls in real-time systems. Additionally, the current scope is limited to single-domain bundles. Future research could explore cross-domain generation (e.g., a travel book paired with a camera) and methods to mitigate potential biases or hallucinations inherited from the underlying LLMs.
Summary updated