Introduction
In deep metric learning, the standard approach for processing variable-length sequences—such as eye movements, gait patterns, or EEG signals—involves compressing the data into a single fixed-length feature vector. This is typically achieved through global average or max pooling. However, this compression often discards the statistical "texture" of the sequence, which contains critical information for tasks like biometric identification. This paper proposes a shift from vector-based embeddings to distributional embeddings, representing sequences as sets of probability distributions to preserve rich statistical patterns.
Methodology: Distributional Embeddings and Wasserstein Loss
The authors introduce a framework for Deep Distributional Sequence Embeddings that leverages two key components:
Quantile Layers
Instead of pooling activations into a single scalar value, the network employs "quantile layers." These layers approximate the quantile function of filter activations across the temporal dimension of a sequence. This results in a piecewise linear representation of the feature distribution for each filter, capturing how frequently specific patterns occur within the sequence.
Wasserstein Distance and Loss
To compare these distributional embeddings, the authors utilize the Wasserstein distance (specifically the $L_1$ Earth Mover's Distance). Unlike standard measures like KL-divergence or Jensen-Shannon divergence, the Wasserstein distance provides a meaningful gradient even when distributions are disjoint, as it accounts for the underlying metric of the feature space. A significant technical contribution of this work is the derivation of a closed-form, differentiable solution for the Wasserstein distance between piecewise linear quantile approximations, enabling efficient end-to-end training.
Experimental Evaluation
The proposed model, QP-WL (Quantile Pooling with Wasserstein Loss), was evaluated on three biometric datasets where sequence texture is paramount:
- DIEM (Dynamic Images and Eye Movements): Gaze positions of 210 subjects watching video clips.
- Gait Data: 3D accelerometer measurements from 71 subjects during daily activities.
- EEG Data: Brain activity recordings from 121 subjects viewing image stimuli.
Key Results
The QP-WL model consistently outperformed standard vector-based metric learning (MP-NPL) and classification-based models (QP-CLS). In eye-movement verification, QP-WL achieved an AUC of 0.9466, a substantial improvement over the vector-based baseline's 0.8890. Furthermore, the distributional approach demonstrated superior robustness in "multiclass imposter" scenarios, where the system must correctly reject subjects not seen during training.
Conclusion and Future Work
Representing sequences as distributions captures the unique "fingerprints" of sensor data more effectively than traditional pooling. While the current model treats sequences as "bags of patterns" and ignores chronological order, it provides a powerful and efficient method for capturing statistical texture. Future research could explore integrating these distributional embeddings with temporal models like Transformers or RNNs to capture long-range dependencies alongside statistical distributions.
Summary updated