Multi-Intent Attribute-Aware Text Matching in Searching

Mingzhe Li, Xiuying Chen, Jing Xiang, Qishen Zhang, Changsheng Ma, Chenchen Dai, Jinxiong Chang, Zhongyi Liu, Guannan Zhang · DOI

Abstract

Text matching systems have become a fundamental service in most searching platforms. For instance, they are responsible for matching user queries to relevant candidate items, or rewriting the user-input query to a pre-selected high-performing one for a better search experience. In practice, both the queries and items often contain multiple attributes, such as the category of the item and the location mentioned in the query, which represent condensed key information that is helpful for matching. However, most of the existing works downplay the effectiveness of attributes by integrating them into text representations as supplementary information. Hence, in this work, we focus on exploring the relationship between the attributes from two sides. Since attributes from two ends are often not aligned in terms of number and type, we propose to exploit the benefit of attributes by multiple-intent modeling. The intents extracted from attributes summarize the diverse needs of queries and provide rich content of items, which are more refined and abstract, and can be aligned for paired inputs. Concretely, we propose a multi-intent attribute-aware matching model (MIM), which consists of three main components: attribute-aware encoder, multi-intent modeling, and intent-aware matching.

The Challenge: Beyond Raw Text Matching

In modern search engines, matching a user's query to a candidate item (or a better "rewritten" query) is rarely just about the raw text. Both queries and items are rich with attributes—metadata like location, category, brand, or price.

Traditional models usually treat these attributes as supplementary strings to be concatenated with the main text. However, this approach faces two major hurdles:

  1. Misalignment: A query might have a "Location" attribute, while an item has a "Brand" attribute. They do not map 1:1, making direct comparison difficult.
  2. Granularity: Raw attributes are often too specific or too noisy. A user searching for "Macaroon color bath artifacts for students" has underlying intents like "cost-effective," "light color," and "skin clean" that are not explicitly captured by raw text matching.

The MIM Framework

To address these challenges, researchers from Ant Group and KAUST developed MIM (Multi-intent attribute-aware Matching model). The framework moves beyond simple text concatenation and instead models the relationship between attributes through the lens of latent intents.

The three-stage architecture of the Multi-intent attribute-aware Matching model (MIM).

The MIM framework consists of three sophisticated stages:

  1. Attribute-aware Encoder: Instead of treating all words equally, the model uses a scaled attention mechanism. It calculates an "importance gate" for each attribute. If an attribute (like a specific location) is vital to the match, it gets more weight; if it is filler, it is downplayed.
  2. Multi-Intent Modeling: This is the core innovation. The model aggregates attributes into $K$ distinct intent representations. To ensure these intents are useful, the authors introduce a Distribution Loss to force diversity among intents and a KL-Divergence Loss to align the intent distributions between queries and items.
  3. Intent-aware Matching: Not all intents are equally important for every search. The model uses an Intent-Mask Self-Supervision Task to "hide" an intent and check how much the matching score drops. If the score crashes, that intent was crucial, and the model learns to assign it a higher weight in the final decision.

Bridging the Gap with Latent Intents

By transforming unaligned attributes (e.g., "Location" vs. "Function") into abstract "Intents," the model creates a common mathematical space where queries and items can be compared fairly. As shown in the figure below, these intents act as a bridge, mapping specific product features to the user's underlying needs.

Comparison of search results with and without intent modeling, highlighting how latent intents like 'cost-effective' and 'skin clean' improve relevance.

The self-supervised masking task is a clever way to solve the "black box" problem of intent weighting. By observing how the model's performance degrades when an intent is removed, the system learns which features are salient versus second-order. For example, in the Alipay scenario, the "Location" attribute was found to be the single most influential factor for performance.

Key Results and Industrial Impact

MIM consistently outperformed state-of-the-art baselines like BERT, SimCSE, and specialized attribute models (DCMatch, AGREE) across three large-scale datasets: Amazon, Alipay Query Rewriting, and Alipay Query-Item Matching.

  • Offline Performance: On the Amazon dataset, MIM achieved an AUC of 0.8449, a significant jump over standard BERT (0.7767).
  • Online Impact: In live A/B testing on the Alipay App, MIM led to a +11.95% increase in the "Good Case Rate" (GR) for query rewriting and a 13.43% reduction in the "Bad Case Rate" (BR).
  • Efficiency: Despite the extra modeling layers, the system is deployed at scale, serving hundreds of millions of users daily.

Conclusion

The MIM framework demonstrates that attributes are not just "extra info"—they are the condensed gist of the search. By modeling these attributes as multiple latent intents, search engines can better understand the nuance of user queries. Future work may expand this into multimodal attribute-aware matching, incorporating visual features like product style and color directly from images into the intent modeling process.

Summary updated

BibTeX
@inproceedings{li2024multi,
  author = {Mingzhe Li and Xiuying Chen and Jing Xiang and Qishen Zhang and Changsheng Ma and Chenchen Dai and Jinxiong Chang and Zhongyi Liu and Guannan Zhang},
  title = {{Multi-Intent Attribute-Aware Text Matching in Searching}},
  booktitle = {WSDM},
  year = {2024},
  doi = {10.1145/3616855.3635813},
}
Figure