Modeling Musical Genre Trajectories through Pathlet Learning Lilian Marey, Charlotte Laclau, Bruno Sguerra, Tiphaine Viard, Manuel Moussallam Abstract The increasing availability of user data on music streaming platforms opens up new possibilities for analyzing music consumption. However, understanding the evolution of user preferences remains a complex challenge, particularly as their musical tastes change over time. This paper uses the dictionary learning paradigm to model user trajectories across different musical genres. We define a new framework that captures recurring patterns in genre trajectories, called pathlets , enabling the creation of comprehensible trajectory embeddings. We show that pathlet learning reveals relevant listening patterns that can be analyzed both qualitatively and quantitatively. This work improves our understanding of users’ interactions with music and opens up avenues of research into user behavior and fostering diversity in recommender systems. A dataset of 2000 user histories tagged by genre over 17 months, supplied by Deezer (a leading music streaming company), is also released with the code. 1 Introduction Figure 1: Our methodology for users preferences modeling. Music genre trajectories are extracted from user listening histories and processed using the pathlet learning algorithm. This highlights recurring patterns in user behavior, which are then used to generate explicit trajectory embeddings that predict future genre allocation. The advent of music streaming platforms has transformed the way people engage with music, providing both industry and research scientists with access to extensive datasets that capture the intricate interactions between users and vast musical catalogs. This shift thus opens up new possibilities for analyzing listening behaviors and musical tastes over time [ 1 , 2 , 3 , 4 , 5 ] . On the one hand, it is of particular interest to sociology, as music plays a crucial role in social life, shaping identities, group affiliations, and cultural dynamics. Indeed, a whole literature demonstrates that listening practices are not merely individual preferences but are embedded in broader social structures, influenced by factors such as class, age, gender, and technological mediation [ 6 , 7 , 8 ] . Understanding how people engage with music—what they listen to, how they discover new tracks, and how their tastes evolve—offers valuable insights into social stratification, cultural capital, and the ways in which digital platforms mediate contemporary cultural consumption [ 9 , 10 ] . Moreover, this topic is highly relevant to the music industry, particularly in the development of recommendation systems. These systems play a crucial role in shaping users’ listening experiences by suggesting songs, albums, and artists based on their past behaviors, preferences, and broader consumption patterns [ 11 ] . However, the increasing reliance on data-driven recommendation systems has also led to a race for performance optimization, driven by the quantification of user engagement and algorithmic efficiency. This pursuit raises new challenges, particularly with the widespread use of black-box models, whose decision-making processes remain opaque [ 12 ] . As platforms prioritize metrics such as click-through rates and listening duration, there is a risk of reinforcing homogenized consumption patterns, limiting musical diversity and amplifying biases embedded in training data [ 13 , 14 ] . These concerns call for a critical examination of the sociotechnical dynamics at play, questioning the long-term implications of algorithmic mediation in cultural consumption. In response to these issues, user studies have emerged as a crucial approach to understanding how listeners and providers perceive and experience algorithmic recommendations [ 15 , 16 , 17 , 18 ] . Research in this area explores users’ trust in recommendation systems, their sense of control over music discovery, and the perceived trade-offs between personalization and diversity. These studies highlight the importance of designing recommendation systems that align not only with engagement metrics but also with user satisfaction, autonomy, and the richness of musical exploration. This observation underscores the need for designing explainable methods that move beyond black-box models, offering greater transparency and interpretability to users. Instead of prioritizing optimizing engagement metrics, research is increasingly exploring techniques such as interpretable machine learning, rule-based recommendations, and hybrid approaches [ 2 , 19 ] that balance accuracy with explainability. Developing such approaches is crucial not only for increasing transparency and user trust, but also for addressing ethical concerns related to algorithmic biases, filter bubbles, and the broader impact of automated curation on musical diversity. In this spirit, our paper aims to model the evolution of musical taste over time, with a particular focus on music genres. While grounded in a quantitative approach, our framework offers transparency through the use of a dictionary learning based approach, built to capture the dynamics of genre emergence and disappearance for users. More concretely, by representing user listening trajectories through vectors with explicit dimensions, we provide an understandable way to represent musical consumption, which can be useful both for transparency in music recommendation systems and sociology of cultural practices. Contributions This paper aims to model the evolution of music consumption on streaming platform, while highlighting listening trends through the use of explicit embeddings. The key contributions are as follows: 1. We propose a methodology for modeling user listening trajectories, focusing on the long-term evolution of music consumption by genre. Building on the dictionary learning paradigm, the method captures recurring patterns in users’ preferences over time, which serves transparency purposes. 2. Through this framework, we analyze the long-term evolution of genre consumption, revealing valuable insights such as inherent mechanisms of interaction between different music genres at play in the formation of musical taste. 3. We release a proprietary dataset from Deezer (a major music streaming platform), consisting of 2000 user histories labeled by genre over a 17-month period, along with our code and experiments, available at github.com/lilianmarey/music_pathlets and zenodo.org/records/15341401 . This paper is organized as follows: In Section 3 , we present the background and motivation for our study. Section 4 introduces our approach to pathlet learning for user trajectories (see Figure 1 ), while we outline the experimental protocol in Section 5 . Finally, we present our results in Section 6 . 2 Related works For modeling musical user taste, classical approaches have primarily focused on techniques such as collaborative filtering [ 20 , 21 , 22 ] , content-based filtering [ 23 ] , and hybrid methods [ 24 ] . Collaborative filtering relies on user-item interactions or explicit feedback to identify patterns in user preferences [ 25 ] , and uses similarity metrics to recommend music based on the past behaviors of similar users. In contrast, content-based filtering suggests music based on the attributes of the content itself, such as genre, artist, or tempo. In addition, recent advancements in machine learning have introduced deep learning-based recommender systems that model complex relationships between users and music, improving the accuracy of predictions and enabling better handling of large datasets [ 26 ] . More recently a key focus is the development of models specifically designed to capture long-term musical preferences. Techniques such as recurrent neural networks [ 27 ] , long short-term memory networks [ 28 ] or transformers [ 29 ] have been applied to predict and understand shifts in musical taste based on historical data [ 30 , 31 ] . However, these models are often considered black-box approaches, as they typically lack transparency in their decision-making processes, making it difficult for users to understand how their preferences are being modeled and predicted. To counteract this opacity problem, the use of trajectory-based models has proved to be relevant. For instance, as presented in [ 2 ] and [ 32 ] , building temporal embeddings through tasks such as playlist continuation enables a dynamic understanding of how musical preferences evolve. These approaches allow us to visualize how embeddings—representing users’ tastes or musical genres—shift and evolve over time. One specific application of trajectory modeling is genre transition prediction. Introduced by Sanna et al., the Preference Transition Model [ 33 ] overcomes the matrix based models Non-negative Matrix Factorization [ 34 ] and Poisson Matrix Factorization , [ 35 ] providing an explicit music genre transition tool. However, although the paper reveals valuable insights into the proximity between genres, it only considers interactions at the first-order level, focusing solely on transitions between two periods and interactions between just two genres at a time. By focusing on trajectory modeling through graphs, our presented approach can align with the domain of graph-based recommendation systems [ 36 ] . These works allow capturing more complex relationships through non-Euclidean data structures, extending beyond simple pairwise interactions. Specifically, in [ 37 , 38 ] , the authors leverage knowledge graphs and Markov decision processes to enable qualitative analysis of user-item interactions through path-based methods, in a session-based recommendation task. However, while these methods provide complementary information to user-item interactions for short-term next-item recommendations, our approach focuses on explaining long-term user preference evolution, offering broader listening patterns. Ultimately, the algorithmic method presented in our paper draws on the Dictionary Learning (DL) paradigm [ 39 , 40 , 41 , 42 ] . Specifically, these ideas are applied in a graph context, namely through Pathlet Learning (PL). While the literature have demonstrated the effectiveness of these methods on road networks [ 43 , 44 , 45 ] , our paper, to the best of our knowledge, is the first to adapt this approach within a context of content consumption on streaming platforms. 3 Background and Motivation In this section, we provide an overview of the key concepts and techniques that underpin our research, starting with dictionary learning and its extension to pathlet learning. We then discuss how pathlet learning, originally developed for geographical contexts, can be adapted to model user trajectories in music streaming data, with a focus on capturing the evolution of genre preferences over time. 3.1 Dictionary and Pathlet Learning Dictionary learning (DL) is a representation learning technique that aims to learn a sparse representation of data. It has proven highly effective on various natural signals, including time-series [ 42 ] , audio [ 41 ] , and images [ 39 , 40 ] . DL assumes that such signals are inherently sparse and can be expressed as a linear combination of a few recurring patterns, called atoms . These atoms represent basic and understandable elements or motifs in the data and are stored in a matrix known as the dictionary . Formally, given a set of n observations \mathbf{X}=[\mathbf{x}_{1},\ldots,\mathbf{x}_{n}]\in\mathbb{R}^{n\times d} , the objective of DL is to learn patterns by solving: \mathcal{L}^{*}(\mathbf{X},D)=\min_{D\in\mathbb{R}^{d\times k},\alpha\in\mathbb{R}^{k\times n}}\frac{1}{2}\|\mathbf{X}-D\alpha\|_{F}^{2}+\lambda\phi(\alpha) (1) where D is the dictionary, \alpha are the sparse coefficients, and k\ll d . The first term is the reconstruction error, and the second term enforces sparsity, typically through \ell_{0} or \ell_{1} norms for \phi . Here, \|\cdot\|_{F} denotes the Frobenius norm, and \lambda controls the trade-off between data fidelity and sparsity. This problem is typically solved using an alternating minimization approach, where we iteratively update the dictionary D and the sparse coefficients \alpha while keeping the other fixed, until convergence [ 46 ] . DL’s flexibility and transparency make it valuable for applications such as data compression [ 47 ] , denoising [ 48 ] , anomaly detection [ 49 ] , and clustering [ 50 ] . While DL is effective for structured data like images and time-series, modeling trajectories on non-Euclidean data (like paths on a graph) requires a more specialized approach. This is where Pathlet Learning (PL) comes into play. PL was developed in geographical contexts, modeling trajectories on road networks, typically to ease traffic flow. Formally, given a graph \mathcal{G} , the set of observations is a collection of valid sequences along edges, like cab rides. The goal is to learn a dictionary D of pathlets (recurring small paths on \mathcal{G} , similar to atoms in DL), helping reconstruct the sequences. In the literature, PL is framed as a constrained optimization problem: in [ 45 ] , the authors used dynamic programming to satisfy constraints, while in [ 44 ] , the problem is relaxed for projected gradient descent optimization. In [ 51 ] , the authors addressed memory space complexity using reinforcement learning. While previous research has focused on applications like data compression [ 43 , 45 , 44 ] , route planning [ 45 , 44 ] , and time journey prediction [ 44 ] , we extend PL to model user musical taste trajectories, in order to capture how musical genre preferences evolve over time. Next, we discuss key considerations in applying PL to this new domain. 3.2 From a Geographical Context to User Trajectories The paradigm of DL and PL is to represent data using a basis of atoms, defined as explicit and recurrent patterns within the dataset. In this sense, these approaches are inherently linked to the issue of transparency. Indeed, unlike black-box data representation methods, each coordinate of the embedding produced by DL or PL directly corresponds to an understandable atom. Therefore, we aim to use PL to model how users engage with musical genres over time, highlighting typical listening patterns. Reducing data dimensions through a small base of pathlets, PL can be seen as a data compression technique. Thus, high data sparsity increases the difficulty of data reconstruction. In a geographical context, the graph is fixed, and the trajectories are valid paths on the graph. In a way, the nodes’ semantics are strong, as very distant nodes cannot be connected. In contrast, in the context of music, nodes can be musical content, and user listening trajectories are built along the edges between these nodes. Unlike geographical nodes, which are semantically constrained by physical distance, musical content have weaker semantics, as two distant tracks (such as a metal track and a jazz one) can still be linked within a user’s listening trajectory. This flexibility introduces additional challenges in modeling the transitions between genres, as the definition of the trajectories has a direct impact on the data sparsity. Furthermore, music streaming data exhibits long-tail distributions [ 52 , 53 ] , where a few popular tracks accumulate the majority of streams, while a vast number of less-known tracks receive significantly fewer listens. For instance, in our dataset, 20\% of the most popular songs account for more than 90\% of the streams. As a result, trajectories issued from music streaming data tend to be more sparse and relatively more difficult to reconstruct. Our main problem can now be framed as follows: RQ: How can pathlet learning help capture user preferences in music context? 4 Pathlet Learning for User Trajectories In this section, we extend the formalism of pathlet learning, shifting from a spatial to music content graphs. 4.1 Problem Framing and Notations When it comes to music consumption, users are identified by a unique ID, and have their interactions with the content catalog tracked, along with a timestamp for each interaction. Formally, we consider a set of users U , a set of items (here, musical tracks) I , a set of musical genres G , and a time interval T over which tracks were listened to by users. For each user u , we denote by h_{u} their time-ordered listening history, containing triplets (u,t,g)\in I\times T\times G , where the user u listened to track i of genre g at time t . Furthermore, we slice T in a number K of fixed-size time windows of duration \frac{|T|}{K} . In particular, we split the histories by K distinct time windows: \forall k\in\{1,...,K\},\forall u\in U , h^{k}_{u}=\Big\{(i,t,g)\in h_{u}\Big|\frac{k-1}{K}|T|\leq t<\frac{k}{K}|T|\Big\} We then define the genre allocation tensor X which, encodes users’ taste towards genres over time windows, for u\in U,g\in G,k\in\{1,...,K\} : X^{k}_{u,g}=\frac{\big|\{(i,t,g^{\prime})\in h^{k}_{u}|g^{\prime}=g\}\big|}{|h^{k}_{u}|} (2) In other words, X^{k}_{u,g} is the proportion of genre g tracks listened to by user u during the k^{th} time window. In the following, X^{prev} and Y stands for the allocation tensor during the penultimate and the last window, respectively. Formally, we have: X^{prev}=X^{K-1}\hskip 11.38092ptY=X^{K} In Figure 2 , we show how user genre allocation can evolve through 2 successive time windows, thanks to Average Total Variation (ATV, defined in Equation 5 ). The figure indicates that a significant share of variations is due to genre appearance and disappearance in our dataset. Being able to model the emergence and abandonment of genres in user histories is therefore of particular interest, both from a recommendation perspective and a sociological one, as mentioned in Section 1 . Our objective is thus to study the behavior of users with a focus on two phenomena: understanding how new genres appear in users’ listening habits, and how they disappear. Next, we define user trajectories accordingly. Figure 2: Users’ genre listening variation types between 2 successive periods with respect to intra-variability. While appearance and disappearance correspond to emergence or abandonment of genres, persistence rely on variations of listening rate for a genre listened during 2 successive periods. 4.2 Defining User Trajectories Here, our goal is to predict next period taste vectors by revealing interactions between musical genres . We thus analyze the appearance and disappearance of such genres basing our trajectories on genre interaction, with the help of co-listening history vectors, defined for u\in U,g\in G,k\in\{1,...,K-1\} as follows: \eta^{k}_{u,g}=\Big[\big|\{(i_{j},t_{j},g_{j})\in h^{k}_{u}|(g^{\prime},g)\in(g_{j},g_{j\pm 1})\}\big|\Big]_{g^{\prime}\in G} (3) In simpler terms, co-listening histories capture how often other musical genres are listened to immediately before or after the given genre g , effectively counting how genres ‘accompany’ g within the users’ listening sequences. From this history, and for a given pair (u,g)\in U\times G , we construct a list of genre positions over the time windows, leading to a K-1 sized discrete trajectory (the last window being the target). For each window k , a genre is sampled from \eta^{k}_{u,g} co-listening counts, or, if no co-listened genre is available, from genre allocation values from X^{k}_{u,g} . For example, let us consider a user u and g=\textit{hard rock} . We aim to trace a trajectory showing which genres interacted with hard rock for this user over time. For each time window, we randomly sample from the genres the user listened to either before or after a hard rock song. If the user did not listen to any hard rock songs during that window, we rely on its regular listening data to complete the information. Building Trajectories As mentioned in section 3.2 , reducing sparsity is a key consideration before applying PL on user trajectories. For each user-genre pair (u,g) , we rank the user’s most listened genres and place genre g in position 0 , as it is the genre of interest. Next, we represent each trajectory as a sequence of ranks corresponding to the musical genres within it. Returning to our earlier example, suppose hard rock is listened to alongside metal at the beginning, with rock in the middle stages, and finally, around hard rock itself during the later stages. The trajectory can then be formulated as follows: p=(metal,\dots,rock,\dots,\textit{hard rock}) Assume that metal is the top genre for user u , with rock being the second most listened. Since hard rock is the genre of interest, the trajectory is transformed as (1,\dots,2,\dots,0) . This method helps to reduce sparsity, and suggests that musical genres can assume interchangeable roles in the emergence or decline of other genres, depending on their significance to the user. Candidate Sets We define the trajectories in such a way as to take into account which of the two objectives aforementioned is to be achieved. To build a trajectory set P , we repeatedly apply this trajectory sampling strategy over specific sets of pairs in U\times G . In this case, we denote by A^{+}=\{(u,g)\in U\times G|X_{u,g}^{prev}=0\land\exists k0\} the pairs (u,g) such that u already listened to g at least once, but not during the penultimate period, making the g in position of potential appearance at next period for the user. Similarly, we denote the pairs of candidates for disappearance by: A^{-}=\{(u,g)\in U\times G|X^{prev}_{u,g}>0\} These are the user-genre pairs (u,g) such that u listened to g during the penultimate period, placing g as potential disappearing genre for u in the next period. 4.3 Learning the Dictionary Next, depending on the event to be modeled (appearance or disappearance), a dictionary is computed from the trajectories issued for specific subsets of U\times G pairs (namely A^{+} and A^{-} ). We refer to P as the set of rank trajectories used for both cases, as the methodology remains the same. Defining Graph and Paths’ Representations Let us define \mathcal{G} as the graph induced by the trajectories of P . Formally, \mathcal{G}=(E,V) with: E=\{i\in\mathbbm{N}|\exists p\in P,i\in p\} V=\{(i,i^{\prime})\in\mathbbm{N}^{2}|\exists p\in P,(i,i^{\prime})\subset p\} Specifically, \mathcal{G} is the smallest directed graph such that any path in P is valid in \mathcal{G} . In addition, we define the set of candidate pathlets D^{0} by computing recurrent sub-trajectories of P , i.e. sub-paths with potential high reconstruction power. It is noteworthy that similar to the trajectories in P , candidate pathlets in D^{0} are valid paths in \mathcal{G} . Since paths on graphs are non-euclidean objects, performing optimization within a dictionary learning approach requires translating the various paths into an appropriate space, in this case through the one-hot encoding of paths along \mathcal{G} edges. To this end, we define \mathbf{P} , the binary edge \rightarrow paths encoding matrix such that \mathbf{P}_{j,j^{\prime}}=\mathbbm{1}_{E_{j}\subset P_{j^{\prime}}} , and \mathbf{D^{0}} , the binary edge \rightarrow candidate pathlets matrix such that \mathbf{D^{0}}_{j,j^{\prime}}=\mathbbm{1}_{E_{j}\subset D^{0}_{j^{\prime}}} . Computing the Dictionary We aim to solve the following optimization problem: \mathcal{L}^{*}(\mathbf{P},\mathbf{D^{0}})=\min_{\alpha\in[0,1]^{|D^{0}|\times|P|}}\frac{1}{2}\|\mathbf{P}-\mathbf{D^{0}}\alpha\|^{2}_{F}+\lambda\|\alpha\|_{1} (4) where \alpha is the candidate pathlets \rightarrow paths encoding matrix and \lambda\in\mathbb{R} plays the same role as in Equation 1 . All elements of our optimization problem are sub-differentiable, so we minimize the loss using gradient descent, clipping \alpha values to the [0,1] range at each step. The final dictionary D is formed by selecting the top- n pathlets most influential in reconstructing the trajectories, based on the \alpha matrix. This allows flexible post hoc adjustments by retaining only the most relevant pathlets. Remark 1: The condition \mathbf{P}=\mathbf{D^{0}}\alpha guarantees full reconstruction of trajectories through the set of candidate pathlets. Thus, minimizing the reconstruction loss \frac{1}{2}\|\mathbf{P}-\mathbf{D^{0}}\alpha\|^{2}_{F} enables us to capture much of the information contained in P trajectories through pathlet encoding. The \ell_{1} norm regularization promotes sparsity in the solution, emphasizing key pathlets for reconstruction. Remark 2: In contrast to [ 44 ] , we omit the additional loss term designed to reduce the number of pathlets in the encoding. While the authors argue that this term controls dictionary size, our experiments showed it weakly influences the optimization process and lacks clear evidence of an effect distinct from the sparsity loss. By excluding it, we simplify our model, reducing both parameters and computation time, while sticking more closely to traditional dictionary learning methods. 4.4 Building Trajectory Embeddings In dictionary learning, the \alpha matrix embeds input data ( P in our case). But in this context, each coordinate of the \alpha matrix corresponds to a candidate pathlet, which may not be part of the final dictionary. To refine this, we can remove rows linked to unselected pathlets, forming a reduced matrix \tilde{\alpha} , where columns represent trajectory embeddings. However, for a dictionary containing pathlets like (rock,rap,jazz) and (rock,jazz) , the \tilde{\alpha} embedding for trajectory (pop,rock,rap,jazz,pop) could activate both pathlets. This redundancy encodes the same information twice, reducing sparsity in the embeddings. To overcome this, we separate the learning of dictionary from the embedding computation. Our trajectory embedding algorithm iteratively identifies the longest matching pathlet and updates the corresponding coordinate. By recursively segmenting the trajectory, we reduce redundancy, and prioritizing longer pathlets improves sparsity and expressiveness. This approach captures the sequence of the trajectory in explicit embeddings, useful for downstream tasks, as Figure 1 illustrates. 5 Evolution of Musical Taste: Experimental Protocol In this section, we describe the experimental protocol employed to evaluate our approach for modeling the evolution of musical taste. We first outline the evaluation metrics used to assess the relevance of the models, followed by the baselines chosen for comparison. Finally, we detail our proposed method and its specific implementation. 5.1 Evaluation Metrics By using trajectory embeddings to predict last time window genre allocation Y , we check that the learned pathlets are relevant to model musical taste evolution. Note that this particular task was previously defined and studied in [ 33 ] . To compare the ground-truth last allocation Y with the predicted one ( \hat{Y} ), the authors suggest using the average total variation, defined as follows: \forall Y,\hat{Y},\quad ATV(Y,\hat{Y})=\frac{1}{n}\sum_{u\in U}\frac{1}{2}\sum_{g\in G}|Y_{u,g}-\hat{Y}_{u,g}| (5) with n being the number of users. In essence, ATV measures the genre allocation absolute error, averaged on all users. We also incorporate additional metrics derived from two binary classification subtasks presented in [ 33 ] . Specifically: • Plus-minus evaluates the model’s ability to predict the direction of change in allocation, i.e. , whether the proportion of a given genre increases or decreases. • New classes assesses the model’s ability to predict the emergence of a new genre These metrics use classical AUC score to evaluate models performances on these two subtasks. 5.2 Baselines In [ 33 ] , authors compare their Preference Transition Model ( PTM ) with a naive strong baseline that consists in predicting the same Y as the one observed in the penultimate time window ( X^{prev} ); this approach is referred to as Previous in the following. We also include the Non-negative Matrix Factorization ( NMF , [ 34 ] ) which was the best candidate to compete with PTM . We add the Popularity baseline, which predicts for all users the same allocation, computed from the frequency of genres observed in training data. We implement all baselines from scratch, except for the NMF 1 1 1 NMF open source implementation . For PTM , despite our efforts to reproduce their results, the baseline performed unexpectedly poorly. The lack of released code further difficult reproduction, leading us to omit its scores. Our Approach ( Plug-Previous ) On the one hand, Previous has proven effective for this task, consistently achieving the second-highest ATV scores in [ 33 ] without any learning. However, it is unable to predict any listening evolution. In contrast, our trajectory embeddings are specifically trained to discover the appearance or disappearance of musical genres. We thus start by predicting \hat{Y}_{u,g} with Previous , which we will enrich with two sub-models, one for each detecting appearance and disappearance of genres. For the former one, we represent each user-genre candidate pair (u,g)\in A^{+} averaging the learned embeddings of trajectories originating from (u,g) . These embeddings are then passed to a classifier to predict if the genre appeared between two sessions. If the model outputs a probability higher than 0.5, we assign to \hat{Y}_{u,g} a new value, defined as the average value user u allocated to g during their whole history. We follow the same process for the disappearance, and we assign \hat{Y}_{u,g}=0 for predicted disappearing pairs (u,g)\in A^{-} . At last, normalizing \hat{Y}_{u} vectors allows us to compare our predictions to Y . This approach is referred to as Plug-Previous in the following. 5.3 Hyperparameters Our hyperparameter choices are influenced by the constraints of available memory space and the necessity for interpretability in pathlet representations. Figure 3 shows that sampling 1k trajectories per candidate from A^{+} and A^{-} capture a significant amount of co-listening trends. For each of the two dictionaries, we randomly select 5k associated candidate trajectories. The candidate pathlets consist of the 10,000 most popular sub-paths of size less than 10 among the selected trajectories, allowing for a more manageable representation of user behavior. Figure 3: Reconstruction error of X over the number of sampled trajectories. 5.4 Datasets We apply our method on Deezer dataset, which contains 24M interactions between 2,000 users and 350 music genres over 17 one-month time windows from January 2022 to June 2023. To expand our analysis, we apply our methodology to Last-fm 2 2 2 http://ocelma.net/MusicRecommendationDataset/lastfm-1K.html dataset, containing 91,000 interactions between 200 users and 1,326 music genres over 5 three-months time windows from August 2007 to January 2019. The streams recorded in these datasets originate from organic listening and recommendation, as both are considered to provide meaningful insights into users’ musical preferences. Dictionaries are evaluated on 5k non-selected trajectories using classical PL metrics, specifically cover ratio [ 44 ] and code sparsity. The sensitivity analysis prenseted in Figure 4 determined that a value of \lambda=0.0025 balances high reconstruction scores with embedding expressiveness in our PL model. We optimize the function presented in Equation 4 using the Adam optimizer with a learning rate of 0.01 and apply an early stopping criterion based on loss stagnation over 5 epochs. For the appearance and disappearance classification tasks, we utilize random forest classifiers, training them on the first K-1 time windows and assessing predictive performance on the final window. Figure 4: Sensitive Analysis: Impact of \lambda on dictionary performances. (a) hard rock appearance induced graphs (b) hard rock disappearance induced graphs (c) Diversity score of positive pathlets over genre popularity for appearance model Figure 5: Pathlet interpretations : interactions between genres (top) and pathlet diversity (bottom) 6 Study on the Evolution of Musical Taste: Results In this section, we present the results of our study on the evolution of musical taste, beginning with a quantitative evaluation of our model’s performance on the task at hand. We then provide qualitative insights into genre dynamics, showing how pathlet embeddings help to analyze musical preferences over time. 6.1 Quantitative Model Evaluation In Table 1 , the results of our Previous-plug prove that the introduction of the two models appearance and disappearance improves Previous baseline, reducing ATV for our dataset by acting on musical genres that are likely to appear or disappear. We notice a significant increase for the New classes metric for both datasets, illustrating the performance of our appearance prediction model. These results demonstrate that pathlet embeddings effectively capture relevant information regarding the evolution of genre allocations over time. Therefore, they justify the use of the computed embeddings for analyzing interactions between users and musical genres in the subsequent study. Dataset Model ATV (\downarrow) Plus-minus (\uparrow) New classes (\uparrow) Deezer Popularity 0.688 0.840 0.503 NMF 0.400 0.874 0.503 Previous 0.366 0.900 * 0.660 * Plug-Previous 0.348 0.908 0.827 Last-fm Popularity 0.842 0.872 0.503 NMF 0.591 0.884 0.503 Previous 0.491 0.917 * 0.681 * Plug-Previous 0.506 0.907 0.999 Table 1: Prediction scores with all metrics for both datasets. * means that the results are computed with 1 time window shift for metric validity. 6.2 Qualitative Analysis on Deezer dataset Now, we leverage the expressiveness of our embeddings to gain insights into the information captured by our approach. Raw Pathlets Analysis First, we study the correlations of the embedding dimensions (each of which refers to a pathlet) with the outputs of our two sub-tasks. We characterize a pathlet by the presence of the target genre, defining inertial pathlets (in those, rank 0 genre is present, indicating that the genre has been self-accompanying over the user’s history, showing certain inertia), and by the average rank of the genres present in the pathlet, defining listening regime (as high ranks refer to low listening rates by the user, the pathlet average rank indicates if the target genre was listened to within a minority listening regime for the user or not). Figure 6: Pathlets correlation with appearance (top) and disappearance (bottom). In Figure 6 , the pathlet correlations show symmetrical insights for both appearance and disappearance. Inertial pathlets positively correlate with retention (appearance or non-disappearance), whereas non-inertial pathlets exhibit a negative correlation. In other words, for the same number of listens within a given period, a genre with consecutive listens is more likely to remain than one where the listens are scattered throughout the period. Furthermore, the more a pathlet embeds a minority listening regime, the more polarized its influence. This means that the correlation with retention increases as an inertial pathlet embeds a minority listening regime, but decreases for a non-inertial pathlet under the same condition. Extended Pathlets Analysis Next, we invert the ranking operation from trajectory sampling to reveal extended pathlets, enabling genre-based analysis. By weighting extended pathlets based on their values in embedding components, and on their correlations with appearance and disappearance, we generate weighted graphs that highlight genre dynamics. For example, in the case of hard rock (Figure 5a ), we observe that co-listening to rock and metal has a significant impact on its retention. Paths connecting hard rock to rock and having strong links with metal lead to the appearance of hard rock (Figure 5a ). Conversely, paths from hard rock to rock or metal with weaker connections between rock and metal can cause hard rock to disappear (Figure 5b ). This suggests that hard rock competes with both rock and metal individually, but listening to these two genres together reinforces hard rock ’s presence in listening histories. We can study the characteristics of extended pathlets, e.g. , by developing a diversity score that quantifies the extent to which certain pathlets contain several distinct genres. This score can then be linked to the pathlets correlations with the emergence of new genres. This approach allows us to better understand the role of diversity in music listening, and how it shapes genre appearance dynamics. In Figure 5c , both popular and niche genres emerge from highly diversified trajectories. It shows that popular genres persist in listening patterns due to their universality, even when users diverge, while niche genres require deliberate exploration by curious users seeking less mainstream content. 7 Conclusion and Future Work In this paper, we introduced a novel pathlet learning approach for modeling user trajectories on music platforms. By constructing pathlet dictionaries and utilizing trajectory embeddings, we predicted future genre allocations, demonstrating how pathlets can be understood and reveal meaningful patterns in user listening behavior. We believe this work paves the way for not only a better understanding of the dynamics of musical taste, but also for more interpretable music consumption models, encouraging research that prioritizes understandability. By providing clearer insights into user listening patterns and genre interactions, our approach has the potential to enhance recommender systems, offering users greater transparency and a better understanding of their personalized recommendations. For example, pathlet learning could enhance playlist recommendation by expanding user taste and promoting diversity in suggested tracks. Another potential application is its integration into long-term taste modeling within next-item recommendation frameworks, helping balance short-term preferences with evolving listening habits. Moreover, in cold-start recommendation, the technique’s ability to capture recurring patterns could provide valuable prior knowledge for new users or less active listeners. Finally, diversity-aware recommendation could benefit from pathlet learning by ensuring that recommendations reflect evolving genre exploration patterns, guiding users along learned trajectories. As future work, a natural extension of this research would be to apply the models to other domains, such as movies or TV shows. But as mentioned in Section 3.2 , pathlet learning is most effective in a context of dense data. In a way, the music domain is well-suited for this method due to the repetitive nature of music consumption, which allows natural emergence of recurring patterns. Also, this domain presents numerous interactions with many different items, which is not always the case in other domains. For example, book or movie consumption have quite different patterns, with rather scarcer and less repetitive interaction data. Switching to such a domain thus may present challenges in achieving the same reconstruction level, due to low level of interaction density between users and items. Therefore, from an algorithmic perspective, a promising direction for future work would be to explore methods for addressing the sparsity inherent to other domains within the context of pathlet learning, for example developing specific dimension reduction techniques to better handle sparse interaction matrices. Finally, another track for future research would involve evaluating the visualization offered by the proposed framework as a tool for social scientists, such as musicologists, to investigate consumption patterns.