1 of 41

The Ethics of Spotify’s Machine Learning Algorithm for the Personalization of Song Recommendations

Shray Dewan

1

Search

Home

Library

Data Ethics

2 of 41

01

02

03

04

Table of Contents

Executive Summary

Context & Problem

Ethical Analysis

Guidelines

2

2:00 min

6:00 min

6:00 min

6:00 min

3 of 41

Executive Summary

01

3

Search

Home

Library

Data Ethics

4 of 41

1 Executive Summary

  • Spotify has emerged as the music streaming giant due to its accurate personalized recommendation algorithm
  • Two main actors: Spotify users and artists
  • Amount of data collected and the way algorithm works → ethical problems
    • Data privacy
    • Altered interactions between users and artists

4

5 of 41

1 Executive Summary (cont’d)

  • Recommendations
    • 1. Provide an opt-out or opt-in option from data tracking
    • 2. Offer more diverse song recommendations to users
    • 3. Remove the monthly listeners feature from artists’ pages

5

6 of 41

Context & Problem

02

6

Search

Home

Library

Data Ethics

7 of 41

2.1 Music Streaming Industry

  • Transition to streaming services
  • Music streaming market share breakdown
  • Spotify: 500M monthly users - biggest platform

7

8 of 41

2.2 Spotify

  • Known for its personalized playlists and accurate song recommendations

8

9 of 41

2.2 Spotify

  • Employs artificial intelligence (machine learning algorithm) for its song recommendation algorithm
  • Collects 1 TB of user data per day

9

10 of 41

2.3 Spotify’s Algorithm: Breakdown

  • Called Bandits for Recommendations as Treatment (BaRT)
    • Multi-armed bandit algorithm
  • Objective: Recommend songs as similar to the songs a user likes
  • 3 types of predictor variables:
    • Collaborative Filtering (Exploitation)
    • Collaborative Filtering (Exploration)
    • Content-Based Filtering

10

11 of 41

2.3 Spotify’s Algorithm: Variables

11

Collaborative Filtering (Exploitation)

Collaborative Filtering (Exploration)

Content-Based Filtering

  • User’s playlists
  • Similar people’s behavior
  • Song’s audio analysis
  • User’s skips
  • Similar songs and artists
  • Song’s lyrics
  • User’s favorite songs, artists, and genres
  • Others’ playlists
  • Song’s online critical analysis
  • User’s shares
  • Trending songs
  • Artist’s label
  • User’s listening behavior (what/when)
  • New songs
  • Song’s metadata (title, release date, producers)

12 of 41

2.3 Spotify’s Algorithm: Example

Original Playlist

Order by

12

#

Title

Album

Date

Duration

1

​

The Predatory Wasp of…

Sufjan Stevens

Illinois

Jul 3, 2022

5:23

2

​

Are You Even Real?

James Blake

Are You Even Real?

Aug 4, 2022

3:52

3

​

GINGER

BROCKHAMPTON

GINGER

Sep 7, 2022

3:54

4

​

Baby Boy

Kevin Abstract

ARIZONA BABY

Jul 2, 2022

3:32

5

​

Reach Out

Sufjan Stevens, Angelo De Augustine

A Beginner’s Mind

Oct 1, 2022

3:43

13 of 41

2.3 Spotify’s Algorithm: Example

Original Playlist

Order by

13

(-60, 0)

(0,1)

(0,1)

(0,1)

(0,1)

(0,100)

(47, 53)

MED

(0.29, 0.75)

LOW-MED

(0.31, 0.71)

MED

(-14.30, -5.14)

LOW-MED

(0.11, 0.40)

LOW

(0.20, 0.43)

LOW

(72, 170)

MED

14 of 41

2.3 Spotify’s Algorithm: Example

Enhanced Songs

Order by

14

#

Title

Album

Date

Duration

1

​

PDLIF

Bon Iver

PDLIF

May 11, 2023

2:57

2

​

Fangs

Matt Champion

Fangs

May 11, 2023

3:54

3

​

NO HALO

BROCKHAMPTON

GINGER

May 11, 2023

4:20

4

​

iMi

Bon Iver

i,i

May 11, 2023

3:16

5

​

Mile High (feat. Travis…)

James Blake, Travis Scott, Metro Boo…

Assume Form

May 11, 2023

3:14

15 of 41

2.3 Spotify’s Algorithm: Example

Enhanced Songs: Why

Order by

15

#

Title

Possible Recommendation Reason

Prev. Liked

1

​

PDLIF

Bon Iver

Liked songs by artist in past

​

2

​

Fangs

Matt Champion

Matt Champion is a member of BROCKHAMPTON, like Kevin Abstract

​

3

​

NO HALO

BROCKHAMPTON

Had a different GINGER song in original playlist

​

4

​

iMi

Bon Iver

Liked songs by artist in past

​

5

​

Mile High (feat. Travis…)

James Blake, Travis Scott, Metro Boo…

Had James Blake song in original playlist

​

16 of 41

2.3 Spotify’s Algorithm: Example

Enhanced Songs: Why

Order by

16

17 of 41

2.3 Spotify’s Algorithm: Example

Enhanced Songs: Why

Order by

17

18 of 41

2.4 Problems with Algorithm

  1. Privacy of user data
    1. Data security, third-party usage
  2. Cold-start problem - new artists do not have user data
  3. Amplification of biases in listening history

18

19 of 41

Ethical Analysis

03

19

Search

Home

Library

Data Ethics

20 of 41

3.1 Privacy

  • Tension: providing a personalized listening experience and individual privacy
  • Q: How does Spotify handle user listening data, including storage, analysis, and selling?
    • Storage of 1 TB/day/user
    • Analysis of what and when user listens to
    • Selling to third parties of user listening data

20

21 of 41

3.1 Privacy (cont’d)

  • Extension: Target’s analysis of sales data to pinpoint pregnant customers

​

“Pole applied his program to every regular female shopper in Target’s national database and soon had a list of tens of thousands of women who were most likely pregnant. If they could entice those women or their husbands to visit Target and buy baby-related products, the company’s cue-routine-reward calculators could kick in and start pushing them to buy groceries, bathing suits, toys and clothing, as well.”1

​

​

​

1 Charles Duhigg, “How Companies Learn Your Secrets,” New York Times, February 16, 2012, https://www.nytimes.com/2012/02/19/magazine/shopping-habits.html.

21

22 of 41

3.1 Privacy (cont’d)

  • Example: If you listen to the Calm Labor & Delivery playlist, Spotify may analyze your listening data and pinpoint you as someone who could be pregnant
    • Spotify could then sell this information

22

23 of 41

3.2 Classification

  • Q: How does Spotify’s algorithm resemble and fail to resemble a classification system?
  • Classification system - “set of boxes (metaphorical or literal) into which things can be put to then do some kind of work;” three properties:
    • 1. “There are consistent, unique classificatory principles in operation.”
    • 2. “The categories are mutually exclusive.”
    • 3. “The system is complete.”2

2 Geoffrey C. Bowker, and Susan Leigh Star, “Introduction: To Classify is Human,” in Sorting Things Out: Classification and Its Consequences (The MIT Press, 2000), 10-1.

23

24 of 41

3.2 Classification (cont’d)

  • No fixed categories but can think of an ordinal scale of categories based on similarity to user song preferences
  • Example for classification of song:
    • 7 - very similar
    • 6 - similar
    • 5 - somewhat similar
    • 4 - neither similar nor different
    • 3 - somewhat different
    • 2 - different
    • 1 - very different

24

25 of 41

3.2 Classification (cont’d)

  • Does Spotify’s algorithm meet the principles of a classification system?
    • 3. Complete system → Yes
      • Ability to analyze every song on Spotify’s database
    • 1. Consistent principles → No
      • Cold-start problem: new artists’ songs are only based on content-based filtering, not collaborative filtering
    • 2. Mutually exclusive → No
      • Some songs can have elements of similarity and dissimilarity to user’s music taste

25

26 of 41

3.3 Music “Echo Chambers”

  • Q: How does Spotify’s algorithm create music “echo chambers”?
  • Echo chambers - “a social structure in which:
    • 1. One must subscribe to a certain belief system to be a member.
    • 2. That belief system includes the belief that all non-members are untrustworthy, and all members trustworthy.”3

​

3 C. Thi Nguyen, “How Twitter Gamifies Communication,” Forthcoming in Applied Epistemology, ed. Jennifer Lackey (OUP): 31.

26

27 of 41

3.3 Music “Echo Chambers” (cont’d)

  • Algorithm only feeds users “very similar” songs (positive feedback loop)
  • Easy for users to get stuck listening to the same music and thinking only their music is ‘good’ (Condition #1)
    • Fosters belief that others without same music interest have ‘bad’ taste (Condition #2)

27

28 of 41

3.3 Music “Echo Chambers” (cont’d)

  • Amplification of biases in “echo chambers”
  • Listening to and having recommendations for similar music → increase biases in music niche

28

29 of 41

3.4 Gamification for Artists

  • Q: How does Spotify’s algorithm gamify popularity for artists?
  • Gamification - “increases our motivation by changing the nature of the activity”
    • “Often, the goals of ordinary activity are rich and subtle.”
    • “When we gamify these activities, we change those goals to make them artificially clear.”4

​

4 Nguyen, “How Twitter Gamifies Communication,” 3.

29

30 of 41

3.4 Gamification for Artists

  • Artist popularity: traditionally difficult-to-measure value
  • Spotify gamifies artist popularity with monthly listeners and artist rank

30

31 of 41

3.4 Gamification for Artists

  • Monthly listeners: not the most accurate measure of artist popularity
    • Based only on song listens this month
  • Popularity: Ice Spice > J. Cole? Frank Ocean? Lorde?

31

32 of 41

3.4 Gamification for Artists

  • Has led to value capture for artists
  • Value capture - “occurs when:
    • 1. Our natural values are rich, subtle, and hard-to-express.
    • 2. We are placed in a social or institutional setting which presents simplified, typically quantified, versions of our values back to ourselves.
    • 3. The simplified versions take over in our motivation and deliberation.”5

5 Nguyen, “How Twitter Gamifies Communication,” 21.

32

33 of 41

3.4 Gamification for Artists

  • Artists have adopted new strategies to gain “popularity” (value capture)
    • 1. Change in focus: albums → singles
    • 2. Release singles more frequently
    • 3. Release music that falls into pre-established music niches (music “echo chambers”)

33

34 of 41

3.5 Transparency over Accountability

  • Q: Does Spotify prioritize transparency over accountability?
  • Transparency of algorithm through releasing and discussing metrics
  • Limit of transparency: “disconnected from power”
    • “If transparency has no meaningful effects, then the idea of transparency can lose its purpose.”5
  • Unethical practices continue despite ethical concerns
  • Accountability necessary

​

5 Mike Ananny and Crawford, Kate, “Seeing without knowing: Limitations of the transparency ideal and its application to algorithmic accountability,” new media & society 20, no. 3 (2018): 978.

​

34

35 of 41

3.6 Ethical Questions Summary

  1. How does Spotify handle user listening data, including storage, analysis, and selling?
  2. How does Spotify’s algorithm resemble and fail to resemble a classification system?
  3. How does Spotify’s algorithm create music “echo chambers”?
  4. How does Spotify’s algorithm gamify popularity for artists?
  5. Does Spotify prioritize transparency over accountability?

35

36 of 41

Guidelines

04

36

Search

Home

Library

Data Ethics

37 of 41

4.1 Privacy

  • Objective: improve data privacy for Spotify users
  • Spotify should provide an opt-out, or better yet, an opt-in from data tracking
    • Tradeoff: reduced personalization
    • Would benefit users who do not want their data potentially stored, analyzed, and sold

37

38 of 41

4.2 Music “Echo Chambers”

  • Objective: reduce frequency of music “echo chambers”
  • Spotify should provide more unexpected, diverse song suggestions that are only somewhat related to user’s music preferences
    • Consider employing if user reaches a music “echo chamber” threshold

38

39 of 41

4.3 Gamification for Artists

  • Objective: reduce level of gamification for artists
  • Spotify should hide the monthly listeners features
  • Spotify should only have its artist rank feature, if anything
    • Incorporate album success in rank

39

40 of 41

References

05

40

Search

Home

Library

Data Ethics

41 of 41

5.1 References

Ananny, Mike, and Crawford, Kate. “Seeing without knowing: Limitations of the transparency ideal and its application to algorithmic accountability.” new media & society 20, no. 3 (2018): 973-89.

​

Bowker, Geoffrey C., and Susan Leigh Star. “Introduction: To Classify is Human.” In Sorting Things Out: Classification and Its Consequences, 1-28. The MIT Press, 2000.

​

Duhigg, Charles. “How Companies Learn Your Secrets.” New York Times, February 16, 2012. https://www.nytimes.com/2012/02/19/magazine/shopping-habits.html.

​

krn6. “The End of an Era: The Death of the Album and Its Unintended Effects.” Gnovis Journal, February 28, 2014.

​

Marius, Hucker. “Uncovering How the Spotify Algorithm Works.” Towards Data Science, November 23, 2021.

​

Michell, Tay. “Spotify's Algorithm: Helping Or Hurting Musicians?” Arts Management & Technology Laboratory, April 28, 2022.

​

Nguyen, C. Thi. “How Twitter Gamifies Communication.” Forthcoming in Applied Epistemology, ed. Jennifer Lackey (OUP): 1-40.

​

Platinga, Bo. “What do Spotify’s audio features tell us about this year’s Eurovision Song Contest?” Medium, April 28, 2018.

​

Spotify for Developers. “Get Track's Audio Analysis.” Accessed May 11, 2023. https://developer.spotify.com/documentation/web-api/reference/get-audio-analysis.

​

Tirumala, Sameer. “APIs Zero to Hero: ft. Spotify.” Medium, September 27, 2022.

​

Wall Street Journal, “Spotify Breaks Down the Mapping Tech Behind Its Algorithm.” April 17, 2023.

​

41