TL;DR
MURAL (MUlti-granulaRity-aware Aspect Learning) is a new dense retrieval model designed for structured data that leverages "aspects" like category and brand. By decomposing these aspects into multiple granularities (phrases, words, and tokens) and using dedicated aspect embeddings, it captures fine-grained semantic relationships that traditional models miss, significantly boosting retrieval performance on e-commerce and service platforms.
What Problem Does This Paper Address?
Dense retrieval (DR) has revolutionized search by representing queries and documents as continuous vectors. However, most DR research focuses on unstructured text. In the real world—think Amazon or App Stores—data is highly structured with "aspects" such as Category, Brand, or Color.
Existing models like MTBERT or MADRAL attempt to use this info, but they have two major flaws:
- Semantic Isolation: They treat aspect values as isolated IDs. For example, they might treat "Running Shoes" and "Walking Shoes" as entirely different classes, ignoring the shared "Shoes" semantics.
- Representation Confusion: They often force aspect information into the
[CLS]token (which is meant to represent the whole document) or rely solely on explicit labels, failing when metadata is missing or incomplete.
Methods
The authors introduce MURAL, which changes how models "see" structured metadata through three key innovations:
- Multi-Granularity Aspect Learning: Instead of just predicting a phrase-level ID (e.g., "Household Supplies"), MURAL breaks the aspect down into words (["Household", "Supplies"]) and tokens (sub-word units). This allows the model to capture semantic overlap between different categories that share common words.
- Dedicated Aspect Tokens: Rather than cramming everything into the
[CLS]token, MURAL inserts specific "guiding tokens" into the input sequence. These tokens interact with the content tokens through the Transformer's attention mechanism, allowing the model to learn "views" of the item from different aspect perspectives. - Implicit Learning via MLM: Because these aspect tokens are part of the input sequence, they are trained using the Masked Language Model (MLM) objective. This means they can learn useful representations from the surrounding text even for items that lack explicit aspect annotations.
- CLS-Gating Fusion: To keep the final representation efficient (a single vector), MURAL uses a gating mechanism. It uses the
[CLS]token to dynamically weight and fuse the various aspect embeddings based on their relevance to the specific item.
Datasets
The model was evaluated on two large-scale, real-world datasets:
- MA-Amazon: An enriched version of the Amazon ESCI dataset containing 482k products with annotations for brand, color, and category.
- Alipay Search Dataset: A Chinese mini-program search dataset with 1.3M queries and 1.8M items, featuring brand and category aspects for both queries and items.
Key Insights and Ideas
- Granularity is a Feature, Not a Bug: Coarser granularities (phrases) provide specific intent, while finer granularities (words/tokens) act as a bridge, allowing the model to transfer knowledge between related but distinct categories.
- The "Shared" vs. "Unshared" Trade-off: The authors found that using an "unshared" (independent) value embedding space for aspects performed better than sharing embeddings with the backbone model. This prevents the aspect-learning objective from interfering with the general language-modeling objective.
- Robustness to Missing Data: A standout finding was that MURAL's "MUR" variant (which disables explicit aspect prediction but keeps the aspect tokens) still outperformed standard baselines. This proves that simply providing dedicated "slots" for aspects to learn via MLM is highly effective.
Key Results
MURAL consistently outperformed state-of-the-art baselines like BIBERT, MTBERT, and MADRAL across all metrics:
- MA-Amazon: MURAL achieved an R@100 of 0.6371, a significant jump over BIBERT (0.6075) and MTBERT (0.6137).
- Alipay: It reached an NDCG@50 of 0.2177, outperforming the backbone BIBERT (0.2033).
- Qualitative Success: t-SNE visualizations showed that MURAL successfully clustered semantically related categories (like "Sport Specific Clothing" and "Exercise & Fitness") closer together, whereas previous models kept them as distant, isolated clusters.
Limitations and Future Work
- Sequence Length: Adding multiple aspect tokens increases the input sequence length, which could lead to higher computational costs during training and inference.
- Backbone Sensitivity: While tested on BERT, the authors note that MURAL's gains are likely orthogonal to the choice of backbone. Future work could involve applying MURAL to more advanced architectures like Condenser or larger LLMs.
- Query-Side Complexity: Obtaining high-quality aspect annotations for queries is significantly harder than for items, as it requires real-time intent analysis. The authors suggest more sophisticated query-side aspect extraction as a future direction.
Summary updated