# Whisper's Wild Implications

*Acknowledgements: I wrote this report as part of a paid work-trial with* [*Epoch AI*](https://epochai.org/)*.*  
*Epistemic status: Approximating the discount rates was very difficult; I decided on them after several discussions with people working in relevant fields. I expect the audience to have different discount rates, but hopefully within an OOM.*

TLDR; to address the data shortage for large language models, I look at how OpenAI's Whisper can be used to obtain large amounts of new data.

Scaling Language Models
=======================

2020 saw the release of [GPT-3](https://arxiv.org/abs/2005.14165) by OpenAI, seen as a breakthrough due to its zero-shot performance on benchmarks and colossal parameter count. OpenAI chose to use a dataset of 300 billion tokens and unknowingly set the precedent of how future language models (LMs) would be trained. Recent publications have seen very little attention paid to the dataset; all of the hype is centred around how many parameters the model has.

In 2022, [DeepMind forced](https://arxiv.org/abs/2203.15556) the natural language processing (NLP) community to reconsider how they approached scaling LMs. Principally, they showed that much more significance had to be placed on scaling the dataset. They modelled a LMs loss L as a function of it’s number of parameters N and training tokens D, and solved for the constants by training a variety of models:

$L(N, D) = E+A/N^{\alpha}+ B/D^{\beta}$

Applying this on modern LMs gives some shocking results; GoogleBrain’s PaLM, with 540B parameters and 780 billion tokens, was trained sub-optimally and has a loss L similar to that of Chinchilla’s best model. Chinchilla only has 70B parameters and was trained for a fraction of the price. How badly do other models fare?

Language Models Are Hungry
--------------------------

Every NLP presentation in the last five years has shown the classic graph of parameter count over time, with a nice curve showing the exponential growth. The graph below is a little different; I show the dataset size, in tokens[^xbo81je6c6], that every model used, and compare it with the optimal size that such models require, as calculated by Deepmind's approximation[^vq54m8hj25]:

![](https://lh5.googleusercontent.com/TOw1X1LIzbJlQhWyviaBnnXEwSHe-acwXaV6nanLhiCldyGH6zHREpT8U4TVmuAlCFJ5rd98yd-dv0Vk5vP2RbP2N1Vk-KA4SdmoFtYSS1d9NS9RucaEDrmCi4DaQOGp8beaw2hLHzsEr2UN55ABKlnM1YJELzSBhc5LW_5hWt5HC7Jh6H1Y6HJXGA)

To train GoogleBrain’s PaLM optimally, we’d require a dataset of 6.7T tokens, 859% the size of the original dataset. 

[Previous work](https://www.lesswrong.com/posts/6Fpvch8RR29qLEWNH/chinchilla-s-wild-implications) has been done in estimating how much quality text data there is, which estimated it to be ~3.2T tokens[^hqxgwy8wlu], with a breakdown for each domain category [here](https://docs.google.com/spreadsheets/d/1zsahRIxNnXSq9z9tEHbISCkYxsivnDG9V3LbJLJTL90/edit?usp=sharing). The largest categories (in tokens) were:

*   News (en), 676B
*   Books, 560B
*   MassiveWeb, 506B
*   GitHub, 422B
*   Conversations (multiling), 390B

This isn’t fantastic. Whilst this doesn’t contain all publicly-available repositories of text, I believe this is at least within an order of magnitude. If we wish to continue scaling at such a rapid pace, then we’re going to either find more efficient learning algorithms, or a lot more data.

Are there other sources of public data we haven’t yet considered?

Whisper
=======

OpenAI recently released [Whisper](https://openai.com/blog/whisper/); a transformer-based model that’s proficient in automatic speech recognition (ASR):

*   They successfully used weakly supervised pretraining to scale the dataset
*   No finetuning was used when evaluating on datasets, allowing it to easily be applied to any dataset using zero-shot
*   Whisper can solve a variety of tasks: transcription, translation, voice activity detection, alignment, language identification, and more
*   Whisper’s performance is close to that of professional human transcribers
*   OpenAI released the model weights

The success of Whisper leaves us with an important question: if we had access to a Whisper-like model that perfectly performed ASR, could we apply it to create large text datasets to alleviate our data shortage? In the following sections I'll assume Whisper is always correct; I will address this assumption later.

YouTube
-------

YouTube contains a wealth of educational videos, lectures, and Minecraft gaming videos. A significant proportion of videos have a commentator, or conversation between people. Just how much text data could we get if we applied Whisper?

After some [digging](https://www.statista.com/statistics/259477/hours-of-video-uploaded-to-youtube-every-minute/#statisticContainer), I found a crude breakdown of the number of hours of video uploaded to YouTube every minute, per year since 2007:

![](https://lh5.googleusercontent.com/CEZSfXNwaR6vhgkHqW4w6T1UlzPSe-JhRNRMYvwHN1MfUF4fntLz2c823zLiwjjWQVTR7TFMBR2ohLmVtGsdlJuI2H7EGwS4b_vmL4nyHY4t8cxGSRpeYzsIXe6gnAG8hAw07aaXCijN0e_adVUXnQ0zRDSOO4oeCV6NWkBVsejgikp9o0RNVlnWpg)

This gives us an average of ~250 hours of content uploaded every minute for 15 years, or 1.971 billion hours in total. That’s 225,000 years of videos.

Taking a discount rate of 5% of content to be publicly available and high enough quality, and the average commentary/conversation having 150 words a minute, that gives us 1.8T tokens. This would be huge; having access to this data would immediately increase the size of our max dataset by over half!

I predict that we’ll continue to see an increase in the amount of uploaded content (despite the jump during covid), which will raise the average number of YouTube hours/minute over the next few years to 600. This will give us 284 billion more tokens per year.

Podcasts
--------

Podcasts contain conversation on a huge variety of topics, which is perfect for our desires. Unfortunately there is a lot of music, often for the purpose of meditation, but despite this our discount factor here will be better than before. 

Looking at the largest competitors in the field, and only publicly-available episodes, I got the following stats:

*   Spotify, [4m podcasts](https://newsroom.spotify.com/company-info) with unknown number of episodes
*   The Podcast Index, [4m podcasts](https://podcastindex.org/stats) with [75.7m episodes](https://podnews.net/article/how-many-podcasts)
*   Apple Podcasts Catalogue, [2.5m podcasts with 71m episodes](https://podcastindustryinsights.com/apple-podcasts-statistics/). Allegedly more exist, but are not available through valid feeds due to feed-episode limits

Taking the above into account, and the fact that episodes may be on more than one platform, I'll take 100m publicly available podcasts with an average length of 39 minutes. This gives us 65m hours of audio, or 7,420 years. With a discount factor of 10%, that gives us 6.5m hours of audio, or 117B tokens.

Around 700 episodes are uploaded to Apply every day, and 5400 to The Podcast Index. If we say 6000 unique episodes will be uploaded every day with the previous assumptions, this gives us 2.6B new tokens every year. Not fantastic.

Phone Calls
-----------

Last year alone, [227 billion minutes of phone calls](https://www.ofcom.org.uk/research-and-data/multi-sector-research/cmr/the-communications-market-2022/communications-market-report-2022-interactive-data) were made by UK users:

![](https://lh5.googleusercontent.com/R6_rko2awXOFPhVSHfq3IGOQrgsSvMoCzmFd6A4EI_nRItLtQgwu54Hkyny0KWQG1-78qF0Hmtqqngo-RjyHp1Jtzxy_A9DHAqaOljOYeC0CY_KValRg28U6d1kUhVp9GyiFI5Q3tYciGspNguM3r2H5N06TGjR54vd-MMQchAXP3OPBspjz89qvIw)

There is a steady decline over the years, despite the number of mobile subscriptions slightly increasing over the same timeframe. This could be due to the shift towards alternative forms of online communication, such as Skype and Zoom. Covid-19 reversed this decline in 2020, and will leave a permanent impact due to the shift to remote work, but I expect this decline to continue.

If the UK prime minister is fanatical about scaling LMs, they might be interested in tapping every call and using Whisper to transcribe what was said. With a harsh discount rate of 1%, we get an estimate of 681B tokens per year. That’s an insane amount of data for a country with a relatively small population, and by factoring in other online platforms we could easily double this.

Problems
========

It’s time I addressed our key assumption of Whisper acting perfectly. Whisper is fantastic; people have applied it for automatic podcast transcription, better voice-call captioning and more. However, through some personal experimentation, it often fails to capture slang, heavy accents and unclear speech. Having incorrect or missing words will prove harmful[^3rp38xtoxkk] for the task of language modelling. Additionally, underperforming on slang and specific accents could lead entire groups to be underrepresented in the resulting dataset.

There is also the question of using semi-synthetic data to train other models. Whilst using synthetic data has [proven successful](https://arxiv.org/abs/1909.11512.pdf) in other domains, notably computer vision, attempting it with language may prove more difficult due to examples being less robust to modification. An image may contain hundreds of thousands of pixels, so smaller mistakes are often difficult to notice, but a sentence may only contain a few words. Having the wrong word may make the sentence syntactically or semantically incorrect. Filtering examples using heuristics may remove some obvious errors.

Additionally, applying Whisper to the entirety of YouTube and similar platforms is a problem in itself. [Initial research has shown](https://www.assemblyai.com/blog/how-to-run-openais-whisper-speech-recognition-model/#openai-whisper-analysis) that transcribing 1000 hours of audio in Google Colab (1x A100 40GB) with a batch size of 32 costs ~$20. Naively applying this methodology to our downsampled YouTube results in a cost of just under $2,000,000. Furthermore, attempting this could bring you into conflict with Google. I quickly skimmed their TOS and I don’t see anything against this, but I doubt they would remain neutral while you scrape the entirety of their platform.

How should this revise our forecasts?
=====================================

This research made me move towards shorter timelines that depend on LM capabilities; better ASR models will be developed over the coming years, that will allow for higher-quality data to be obtained.

I also believe that more weight should be placed on larger organisations, or countries, leading AI progress in >5 years time. If data continues to be a limiting factor, they will have a decisive advantage over other organisations due to having access to copious amounts of private data.

[^xbo81je6c6]: From here I start talking about tokens a lot. There exist many different tokenization methods, I will assume two tokens = one word 

[^vq54m8hj25]: Not sure why the image isn't centred, it appears centred in edit mode 

[^hqxgwy8wlu]: From the time of writing, a paper has been released that is a lot more optimistic in language dataset sized 

[^3rp38xtoxkk]: Or could it make the model better by forcing the model to be robust against noise, similar to denoising autoencoders?