Algorithms, visualizedExhibit 7

How does the YouTube algorithm decide what to show you?

In the design YouTube described in 2016, every video gets a position on a giant map learned from what people watch, and so do you. Stage one grabs the few hundred videos closest to you; stage two ranks them by how long you’re likely to watch, and only the top few dozen reach your screen. Every watch, skip and “Not interested” moves you on that map. Try it below.

Try it: train a tiny recommender

Your homepage shows the 6 videos closest to you on the map. Watch one to the end and you move toward it; click away early or tap Not interested and you move away. Watch your picks change.

    A toy with 2 dimensions and 30 made-up videos. Real systems learn positions with many dimensions from billions of watches, and the ranking stage weighs hundreds of signals such as how often you watch a channel and how many times a video was shown to you without a watch.

    Watch: how the YouTube algorithm decides what to show you

    The two-stage funnel, the clickbait problem and how to steer it, in under 5 minutes.

    The video loads from YouTube only when you press play. Watch on YouTube

    Why recommendations matter so much

    In 2018, YouTube’s product chief said more than 70% of the time people spend watching YouTube comes from its recommendations: not searches, picks. And the library grows by more than 500 hours every minute.

    A funnel with two stages

    YouTube doesn’t publish its current system, but in 2016 its engineers published a paper describing how recommendations worked, and that basic shape is still common in big recommenders today. Stage one, candidate generation, takes millions of videos and pulls out a few hundred that might suit you. Stage two, ranking, looks at those few hundred much more carefully and puts them in order. Only the top few dozen reach your screen. Scoring millions of videos carefully, for every person, every time a page loads, would be far too slow.

    Stage one: every video on a map

    Every video gets a position, a list of numbers learned from what people watch. Videos watched by the same people drift close together; nobody tells the system that one is about cooking and another about cars. You get a position on the same map too, computed mostly from the videos you’ve watched and the things you’ve searched for. Finding candidates becomes a geometry problem: grab the videos closest to you. That’s what the demo does.

    Stage two: why it stopped trusting clicks

    The ranking network weighs hundreds of signals: how often you watch this channel, when you last watched this topic, how many times this video was already shown to you without a watch. The key choice is what to predict. The 2016 paper explains that ranking by click-through rate tends to promote deceptive videos people don’t finish: clickbait. So the model was trained to predict expected watch time instead. The paper also explains how brand-new videos get a chance: the model is fed each example’s age during training, and that age is set to zero for live picks. The system was big: about a billion learned parameters, trained on hundreds of billions of examples.

    From watch time to satisfaction

    YouTube started adding watch time in 2012, after years of counting views and clicks. But you can watch a lot of something and still feel it wasn’t worth it. In 2019 YouTube said it had shifted to focus on viewer satisfaction instead of views, and was recommending clickbait less often. It sends viewers short surveys to rate videos, then trains models to predict that satisfaction for everyone else. In 2021 it listed key signals it uses: clicks, watch time, survey responses, sharing, likes and dislikes.

    How to steer your recommendations

    1. Tap Not interested or Don’t recommend channel.
    2. Remove a video from your watch history, and it stops shaping your picks.
    3. Pause your watch history entirely if you want a clean slate.

    Frequently asked questions

    How does the YouTube algorithm decide what to recommend?

    YouTube doesn’t publish its current system, but its engineers described the basic shape in 2016: a funnel of two neural networks. Candidate generation pulls a few hundred videos that might suit you out of millions; ranking scores those few hundred much more carefully, and only the top few dozen reach your screen. Since then YouTube has added satisfaction signals such as surveys, likes, dislikes and sharing.

    Why doesn’t YouTube just recommend the videos with the most clicks?

    Because clicks reward clickbait. YouTube’s 2016 paper explains that ranking by click-through rate tends to promote deceptive videos that people don’t finish, so the ranking model was trained to predict expected watch time instead. In 2019 YouTube said it shifted further, to focus on viewer satisfaction instead of views.

    How do I fix my YouTube recommendations?

    Tap “Not interested” or “Don’t recommend channel” on videos you don’t want, remove videos from your watch history so they stop shaping your picks, or pause your watch history entirely. YouTube says it uses all of these to adjust what it shows you.

    How much of what people watch on YouTube comes from recommendations?

    At CES in January 2018, YouTube’s chief product officer said more than 70% of the time people spend watching YouTube comes from its recommendations.

    Why do brand-new videos get recommended?

    A model trained on past data naturally favours videos that were already popular. YouTube’s 2016 paper describes a fix: feed the model the age of each training example, then set that age to zero when making live recommendations, so it learns how popularity rises over time and a new video can compete with old favourites.

    Sources

    Last updated

    Keep exploring