The most wonderful time of the year
The end of the year is near. It is almost December, a year has passed already and the moment everyone is waiting for is almost there: The Spotify Wrapped will be published soon. But what lies behind the Spotify Wrapped, mathematically?
If you are not familiar with Spotify Wrapped - since 2013, Spotify gives its users an annual, personal presentation of their listening behaviour. In 2016, the Swedish company renamed this presentation ‘The Spotify Wrapped’. Here, users can gain insight into information like their most-streamed artist, how they rank relative to the rest of the population when it comes to this artist, their most-streamed genre, et cetera. Yet, sometimes you hear people saying things like “I don’t understand, I did not listen to this song that many times.” So, how does this algorithmic system work?
Algorithm
Spotify processes user data and makes predictions about behavioural patterns and trends of its user. This way, Spotify and other streaming services alike turn listening behaviour into data. The playlist you place a song in, helps Spotify understand the semantic meaning of songs and how these songs relate to emotions or situations. Even though every person is unique, listening behaviour can be categorised. With a machine learning technique called collaborative filtering, Spotify makes more personal recommendations.
For Spotify, a single stream counts as a track if it has been played for more than thirty seconds, no matter the length of the song. With this rule in mind, Spotify determines your Top Songs. For your Top Artists, this works a little differently. As you know, some songs feature multiple artists. All these artists get a weight; the primary artists receive more weight than secondary artists. Your top artists are determined on this weighted stream count. Therefore, your favourite artist may not always dominate in your Top Artists, since it is possible that another artist has more weight in the songs you have listened to. Spotify publishes how they handle the data for your Wrapped for each possible interaction, explained on their website.
Spotify doesn’t lie
“I did not listen to this that many times.” If someone says this to you, they are probably lying. For each listener, Spotify stores the relevant listening history data as an object in storage. For pre-generating the Wrapped, Spotify publishes these data points with an algorithm generating billions of reports. For the 2025 Wrapped, Spotify used a very advanced AI, called a Frontier model. A Frontier model can complete tasks in a level no other model can do, since it is at the boundary of technological applications. Its computing power is way higher than other models which allows for a better understanding of context and improved analysis of longer texts. Spotify claims this gives them a ‘golden’ dataset.
Yet, to reach an even higher level of performance than Spotify now already has, they also introduced ‘Direct Preference Optimization’ (DPO). DPO finetunes an unsupervised language model to align with the preferences of Spotify’s listeners in more detail, by for example further subdividing a listener’s favorite genres into subgenres. DPO collects prompts with a ranked response. The system then must score the same as the ranking. These scores are being compared and the model is updated. Spotify kept close eyes on missing reports, data inconsistencies and possible other errors. After pre-generating the listeners' reports, they were stored under a big Excel-like sheet where every person is a row in this sheet.
However, even a 0.1% failure rate would mean 0.001 x 1,000,000,000 = 1,000,000 users disappointed. Thereby it is not possible for a human to check all this data. So, Spotify used another large language model which graded every Wrapped on four dimensions: accuracy, safety, tone, and formatting. In this extra check, errors can be spotted and the algorithm can be updated.
Nevertheless, there are some disclaimers for Spotify Wrapped. Firstly, Spotify claims people can forget about what they listened to earlier in the year. Additionally, it is possible people share a device in their home, which causes your mother to listen on your account by mistake for example. Thirdly, not the whole year has been observed for Wrapped. Wrapped only looks from January first, till mid November. So that explains why your Christmas Songs are, unless you start listening to ‘All I want for Christmas’ in August, not in your Wrapped. Wrapped also filters out non-music tracks like white noise. It is also possible to adjust privacy settings and place songs in ‘Private mode’ or exclude songs and playlists from your Taste Profile. All of this so we can have, as best as possible, a view of our listening behaviour.
Artists
Music fans like to see their Spotify Wrapped, but it is far more interesting for artists. “Wrapped is a nice addition, but the ‘thank you video’ to fans does not work optimally,” according to Wouter Vermeulen, better known as one of the members of Barry Badpak. Artists get a recap of how listeners interact with their music. And they can thank their listeners for listening to their songs. Bas Huissen from former band All Shall Be Well also shares his experience with Wrapped: “We also liked to see the data, but didn’t use it in any way.”
For what Spotify Wrapped has awaiting for its listeners this year, has to be seen. According to rumours, Wrapped will be published on December 2nd. However, this is not confirmed by Spotify. One thing we do know: if you want to change your listening statistics for ‘the perfect Wrapped’, you are too late. You will have a new opportunity for that starting January 1st!

0 Comments
Add a comment