MLAS: Metric Learning on Attributed Sequences

Zhongfang Zhuang, Xiangnan Kong, Elke A. Rundensteiner, Jihane Zouaoui, Aditya Arora

TL;DR

This paper introduces MLAS, a novel deep learning framework for metric learning on "attributed sequences" – data that combines user attributes with sequential actions. MLAS effectively learns to measure similarities and differences between these complex data types by explicitly modeling dependencies between attributes and sequences, outperforming existing methods.

What Problem Does This Paper Address?

Traditional distance metric learning often focuses on data with a single type of feature, like just attributes or just sequences. However, many real-world applications, such as user behavior analysis in e-commerce or fraud detection, deal with "attributed sequences." These are data instances that have both static attributes (e.g., user's device, operating system) and a sequence of actions (e.g., website clicks, search queries). The challenge is that these attributes and sequences are often interdependent – a user's actions might depend on their device, and their search queries might depend on previous queries. Existing metric learning methods struggle to capture these complex interdependencies, leading to suboptimal performance. This paper aims to bridge this gap by developing a method that can learn a distance metric that leverages all aspects of attributed sequences.

Methods

The core of the proposed solution is the MLAS (Metric Learning on Attributed Sequences) framework, built upon deep neural networks. MLAS consists of three main components:

  • AttNet: A fully connected neural network designed to process the attribute vector of an attributed sequence.
  • SeqNet: A Long Short-Term Memory (LSTM) network used to capture the temporal dependencies within the sequence of actions.
  • FusionNet: This is where the magic happens. MLAS explores three variations of FusionNet to combine the outputs of AttNet and SeqNet:
  • Balanced Design: Concatenates the attribute and sequence representations and feeds them into an additional fully connected layer to learn attribute-sequence dependencies.
  • AttNet-centric Design: Uses the sequence representation as an additional input to the attribute processing network.
  • SeqNet-centric Design: Uses the attribute representation as an additional input to the sequence processing network.
  • MetricNet: This component takes the fused representations from FusionNet and learns the final distance metric using a contrastive loss function. This loss encourages similar attributed sequences to be closer in the learned space and dissimilar ones to be further apart, guided by user feedback.

The framework is trained using pairwise feedback (similar/dissimilar pairs) and employs a contrastive loss function that penalizes small distances for dissimilar pairs and large distances for similar pairs, with a margin g.

Datasets

The authors evaluate MLAS on four real-world datasets:

  • AMS-A and AMS-B: Derived from internal application log files from Amadeus, representing user sessions with profile information (attributes) and clickstream data (sequences).
  • Wiki-A and Wiki-B: Sampled from the Wikispeedia dataset, which involves users navigating between Wikipedia pages. Here, attributes are extracted context (e.g., page category, time spent) and sequences are the paths taken.

For each dataset, 80% was used for training and 20% for testing. Feedback pairs were selected by domain experts.

Key Insights and Ideas

  • Interdependence is Key: The most significant insight is that explicitly modeling the dependencies between attributes and sequences is crucial for effective metric learning on this type of data. Simply concatenating attribute and sequence features (as in ASF) is less effective than learning these interdependencies.
  • Unified Model Advantage: Training a single, unified model (MLAS) that processes attributes and sequences jointly, rather than training separate models and combining their outputs, leads to better performance.
  • Feedback Boosts Performance: Incorporating user feedback significantly improves the performance of all methods, but MLAS shows a particularly strong ability to leverage this feedback.
  • Flexibility in Fusion: The three FusionNet designs (Balanced, AttNet-centric, SeqNet-centric) offer flexibility, with different designs showing superior performance on different datasets, suggesting that the optimal way to fuse information can be data-dependent.

Key Results

  • Significant Performance Gains: MLAS consistently outperformed baseline methods (ATT, SEQ, ASF) across all four datasets. For example, MLAS-A achieved up to 18.3% and 25.4% improvement on AMS-A and AMS-B, respectively, compared to the best baseline (ASF). MLAS-S showed similar gains on Wiki-A and Wiki-B.
  • Effectiveness of Feedback: Using feedback boosted performance for all methods, but MLAS variants showed the largest gains, demonstrating their ability to effectively utilize this information.
  • Output Dimension Impact: MLAS approaches consistently achieved the best performance across a wide range of output dimensions, indicating robustness.
  • Parameter Sensitivity: The MLAS method was found to be relatively insensitive to pre-training parameters, suggesting good generalization.
  • Visual Separation: t-SNE visualizations confirmed that MLAS effectively separates instances into different groups while keeping instances within the same group together, a feat not achieved by single-data-type methods or the ASF baseline.

Limitations and Future Work

  • Dataset Specificity: The authors note that the performance differences among the three MLAS architectures (MLAS-B, MLAS-A, MLAS-S) might be dataset-dependent, suggesting further research into why certain fusion strategies work better on specific data.
  • MetricNet Exploration: Future work could explore different designs for the MetricNet component.
  • Alternative Architectures: Investigating alternative neural network architectures for AttNet and SeqNet is suggested.
  • Theoretical Analysis: A theoretical analysis of the performance differences between the MLAS architectures is proposed as a future research direction.

Summary updated

BibTeX
@inproceedings{zhuang2020mlas,
  author = {Zhongfang Zhuang and Xiangnan Kong and Elke A. Rundensteiner and Jihane Zouaoui and Aditya Arora},
  title = {{MLAS: Metric Learning on Attributed Sequences}},
  booktitle = {IEEE BigData},
  year = {2020},
  doi = {10.1109/bigdata50022.2020.9378490},
}
Figure