Improving Music Recommendation Using Distributed Representation

Dongjing Wang, ShuiGuang Deng, Songguo Liu, Guandong Xu

Introduction

With millions of tracks available on digital platforms, helping users discover music they enjoy is a significant challenge. Traditional recommendation systems, such as content-based filtering (using acoustic features) and collaborative filtering (using user-item grids), often struggle to capture the latent relationships between songs. This paper introduces music2vec, an adaptation of the Word2Vec skip-gram model designed to learn low-dimensional "embeddings" for songs based on user listening sequences. By representing both songs and user preferences as vectors in the same mathematical space, the researchers achieved significant performance gains over traditional methods.

Methodology

The authors propose a three-step approach to extract features and generate recommendations:

  1. Music2vec (Representation Learning): Borrowing from Natural Language Processing (NLP), user listening histories are treated as "sentences" and individual songs as "words." A skip-gram model is employed to maximize the probability of observing "neighboring" songs in a sequence given a target song. To ensure scalability for catalogs with millions of tracks, the model uses negative sampling, which approximates the expensive soft-max function by updating only a small subset of "noise" samples per training step.
  2. User Preference Acquisition: Once song vectors ($v_m$) are learned, a user profile ($p_u$) is created by calculating the simple average of the vectors of all songs in that user's historical listening record.
  3. Recommendation: The system predicts user affinity for a new song by calculating the cosine similarity between the user’s preference vector and the song’s vector. Songs with the highest similarity scores are recommended.

Experimental Results

The model was evaluated using a real-world dataset from Xiami Music, a popular Chinese streaming platform. The proposed approach was compared against three state-of-the-art baselines: Bayesian Personalized Ranking (BPR), FISM, and User-based Collaborative Filtering (UserKNN).

Table 1: Performance comparison of the proposed music2vec approach against baseline methods across F1 and Hitrate metrics.

As shown in the results, the music2vec approach outperformed all baselines in both F1 score and Hitrate. Specifically, for the top 10 recommendations (@10), the proposed method showed a relative improvement of 33.3% over BPR, 20.7% over FISM, and 42.2% over UserKNN.

Qualitative Validation

To confirm that the model learned meaningful musical features, the authors performed a similarity visualization. A heat map of the learned embeddings shows that songs with similar metadata (such as genre, mood, or artist style) naturally cluster together in the vector space.

Figure 1: Similarity heatmap of learned song embeddings, where warmer colors indicate higher cosine similarity.

For instance, tracks tagged with "Japanese," "Anime," and "Instrumental" exhibit high internal similarity, demonstrating that the skip-gram model effectively captures contextual relationships without requiring manual tagging or audio analysis.

Conclusion

The music2vec framework demonstrates that distributed representations can significantly enhance music recommendation by capturing latent contextual relationships. While currently using a simple averaging method for user modeling, future work will explore more advanced techniques to handle diverse user preferences and integrate these representations into hybrid recommendation algorithms.

Summary updated

BibTeX
@inproceedings{wang2016improving,
  author = {Dongjing Wang and ShuiGuang Deng and Songguo Liu and Guandong Xu},
  title = {{Improving Music Recommendation Using Distributed Representation}},
  booktitle = {The Web Conference},
  year = {2016},
  doi = {10.1145/2872518.2889399},
}
Figure