Predicting User Intents and Musical Attributes from Music Discovery Conversations

Daeyong Kwon, Seungheon Doh, Juhan NamarXiv 2024 · DOI

Abstract

Researchers from KAIST have developed a framework to enhance user understanding in music discovery dialogues by predicting both functional user intents (e.g., "add a filter") and specific musical attributes (e.g., "mood" or "genre"). Their findings demonstrate that a smaller, domain-specifically fine-tuned model (DistilBERT) significantly outperforms massive general-purpose Large Language Models (LLMs) like Llama 3 in this specialized task. The study also explores the optimal amount of conversation history needed for accurate classification, finding that excessive context can often degrade performance.

Introduction

While intent classification (IC) is a standard component of modern NLP systems, its application within the music domain remains relatively under-explored. Most existing music recommendation systems are limited to recognizing basic commands such as PlayMusic or AddToPlaylist. However, genuine music discovery is a nuanced, multi-turn process. For instance, a user might start with a broad request and then refine it based on the system's subsequent suggestions.

Examples of music discovery queries with annotated user intents and musical attributes.

To effectively navigate these conversations, a system must simultaneously understand:

  1. Functional Intent: Is the user initiating a search, refining a previous query, or accepting/rejecting a suggestion?
  2. Musical Attributes: What specific dimensions (genre, mood, era, tempo, etc.) are being referenced?

Methodology

The researchers evaluated several architectural approaches to determine the most effective method for parsing music-related queries:

  • Sparse Representations: Traditional Bag-of-Words (BoW) and TF-IDF models.
  • Word Embeddings: Word2Vec (skip-gram) pre-trained on Google News.
  • Encoder-based Transformer: DistilBERT, evaluated in both "Probing" mode (frozen weights, trained classification head) and "Fine-tuning" mode (all parameters updated).
  • Large Language Models (LLMs): Llama 3.1 (8B) and Llama 3.2 (1B, 3B) using zero-shot and 5-shot prompting.

A significant technical focus was the exploration of context concatenation, testing how model performance fluctuates when provided with the current query plus the previous $N$ turns of dialogue history.

Dataset

The study utilized the Conversational Playlist Curation Dataset (CPCD), which consists of 888 dialogues annotated by three experts. The taxonomy includes 8 user intents (e.g., initial_query, add_filter) and 15 musical attributes (e.g., genre, mood, tempo). Given that a single utterance often contains multiple labels, the task was framed as multi-label classification.

Results and Discussion

The experimental results highlighted several key findings regarding model performance and the role of context.

Specialized Models vs. General LLMs

The fine-tuned DistilBERT model consistently outperformed Llama 3 across the board. For user intent classification, DistilBERT achieved a Macro F1 score of 0.89, while Llama 3.1 8B’s best 5-shot score was 0.61. The gap was even more pronounced in musical attribute classification, where DistilBERT reached an F1 of 0.72 compared to Llama 3.1 8B’s 0.20. This suggests that for niche domains, specialized fine-tuning is more effective than the broad "world knowledge" of massive LLMs.

The Impact of Conversation Context

The study revealed a "context sweet spot" that differs between intents and attributes. For user intents, adding the immediately preceding query (0.5 turns) improved performance, but further history led to a decline. For musical attributes, adding any context generally hurt performance, as it introduced noise and led to hallucinations of attributes mentioned in earlier, no longer relevant turns.

F1 score performance for User Intent and Musical Attribute classification across different numbers of dialog turns.

Conclusion and Future Work

While DistilBERT proved highly effective and efficient—being 60% faster than standard BERT—the study noted challenges with data imbalance. Models struggled with infrequent labels like vocal or instrument compared to common ones like artist. Future research may involve using larger encoders like RoBERTa or employing LLMs for data augmentation to address class imbalances. Additionally, exploring datasets with more deeply interconnected dialogues could further clarify the long-term benefits of conversational context.

Summary updated

Abstract

Intent classification is a text understanding task that identifies user needs from input text queries. While intent classification has been extensively studied in various domains, it has not received much attention in the music domain. In this paper, we investigate intent classification models for music discovery conversation, focusing on pre-trained language models. Rather than only predicting functional needs: intent classification, we also include a task for classifying musical needs: musical attribute classification. Additionally, we propose a method of concatenating previous chat history with just single-turn user queries in the input text, allowing the model to understand the overall conversation context better. Our proposed model significantly improves the F1 score for both user intent and musical attribute classification, and surpasses the zero-shot and few-shot performance of the pretrained Llama 3 model.
BibTeX
@misc{kwon2024predicting,
  author = {Daeyong Kwon and Seungheon Doh and Juhan Nam},
  title = {{Predicting User Intents and Musical Attributes from Music Discovery Conversations}},
  year = {2024},
  eprint = {2411.12254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.12254},
}
Figure