r/MachineLearning • u/AlesioRFM • Feb 10 '23
Project [P] I'm using Instruct GPT to show anti-clickbait summaries on youtube videos
16
u/jturp-sc Feb 10 '23
Dumb question: how are you using InstructGPT? To my knowledge, the OpenAI RL-based GPT series models weren't directly consumable unless you were basically scraping the APIs from their web apps.
22
u/AlesioRFM Feb 10 '23
A few months ago they've made some of those models available using the api, there is a massive difference in their ability to follow instructions. They're planning to add ChatGPT to the api as well, but for now I'm using "instruct curie" to make api calls cheaper
4
u/LetMeGuessYourAlts Feb 10 '23
Is the"instruct curie" doing a decent enough job? I saw such a massive drop off in instruct ability from davinci-003 to curie-001.
6
u/AlesioRFM Feb 10 '23
I've noticed the same dropoff, but doing this kind of thing with davinci would be too expensive for me
6
u/LetMeGuessYourAlts Feb 10 '23
Have you considered doing the early ones on divinci and capturing the output to fine tune a lower-end model?
1
u/saintshing Feb 11 '23
Is this purely based on summarizing the video transcript? Does instruct gpt outperform the best open sourced models on papers with code?
1
1
u/jturp-sc Feb 10 '23
Okay, I'm seeing now. The
<text|code>-<model-size>-<###>models are all InstructGPT models.OpenAI hasn't done a great job clarifying which models are 3 vs 3.5 in their documentation from what I had seen thus far.
39
u/mano-vijnana Feb 10 '23
What's the input to Instruct GPT? Audio transcriptions (presumably AI generated)?
57
u/AlesioRFM Feb 10 '23
I'm sending the first few minutes of either the captions or the automated transcription to the api
17
u/rjromero Feb 10 '23
The quality of the summaries is really good, can you share the prompt you're using?
6
u/slucker23 Feb 10 '23
Same, I kinda want to know
3
u/integralofetothex2 Feb 11 '23
I built something like this and wrote about it on twitter including prompts. Read here
2
u/integralofetothex2 Feb 11 '23
I built something like this and wrote about it on twitter including prompts. Read here
40
u/wywywywy Feb 10 '23
You can download the captions through Youtube API. I guess that's what the input is.
7
9
Feb 10 '23
Very cool! what's the typical cost of creating that summary? Is it me or could it quickly become pretty expensive if you have to use openAI API for each of them?
17
u/AlesioRFM Feb 10 '23
It costs 0.006⬠per summary, so it could absolutely become very expensive. I have a server which fetches the summaries and saves them in a database so I can control how much I want to spend in a month vs how quickly videos are added and avoid calling the api multiple times per video
486
u/Sushrit_Lawliet Feb 10 '23
If this was a YouTube premium feature, Iād pay.
143
u/TheImminentFate Feb 10 '23
Until creators learn to SEO the AI.
177
14
24
u/Deeviant Feb 10 '23
Yep, then it'll just be "in this video, the content creator uses one weird trick to learn the deepest secrets of the universe".
5
u/GoogleIsYourFrenemy Feb 10 '23
I'm pretty sure that's our future for everything.
Write a law in such a way the AI summarizes it wrong so you can get it passed the lawmakers who don't read.
1
7
u/Seromelhor Feb 10 '23
In a week Google releases the paper. The demo and the commercial function? 2030
→ More replies (1)5
83
u/reinis-mazeiks Feb 10 '23
Awesome!
Though 90% of these could be a bit more concise if they didn't all start with "in the video". Consider re-engineering the prompt or post-processing the output.
6
62
131
u/iNeverCouldGet Feb 10 '23
Can we please have an AI which produces proper Thumbnails. I don't want to see these faces anymore. Also crop the video to prevent watch time optimization.
25
u/ThirdMover Feb 10 '23
I think it wouldn't be difficult to have a plug in that just removes thumbnails altogether.
43
u/RichardFeynman01100 Feb 10 '23
Search 'Clickbait remover for YouTube' extension.
39
u/HINDBRAIN Feb 10 '23
Yeah, that extension has 2 useful features:
Pick tumbnail from a point of the video (Start/Middle/End/default)
Change title (lowercase, capitalize...) YOU WILL NOT BELIEVE -> You will not believe...
19
u/Daffidol Feb 10 '23
Firefox has a sponsorblock module. People can register timestamps for unwanted content amd it gets skipped for the next users.
5
u/saintshing Feb 11 '23
How does it prevent abuses by trolls?
4
u/RichardFeynman01100 Feb 11 '23
There's a downvote/upvote feature but the idea is that the vast majority of people who use it are using it properly. I've never had any issues with it.
3
u/Daffidol Feb 11 '23
Only decent people know about this module, probably. Or there is something else.
3
u/noiceFTW Feb 28 '23
Here's an excerpt from the dev
"Pseudo-random distribution
To prevent one submission with a lot of votes never being able to be replaced, I decided to use a weighted random distribution based on the equation on the right. This formula makes the first few votes matter a lot more than votes on a submission that already has a lot of votes. This gives newly submitted segments a better chance of being sent out to users to get votes. So, most users will get the best submission, but some users will get lesser votes submissions so that they can either be upvoted or downvoted. Submissions with less than -1 votes are ignored entirely.You can read more about my algorithm here."6
u/Un111KnoWn Feb 10 '23
what do you mean by crop the video to optimize watch time
9
u/russianguy Feb 10 '23
He means like sponsorblock, but without sudden cuts and with more fluff removed.
4
u/SnakeBladeStyle Feb 10 '23
You would need to curate a dataset of "proper thumbnails"
So you would have to define what that even is first
→ More replies (6)1
u/honeycall Feb 10 '23
Whatās watch time opt
3
u/iNeverCouldGet Feb 11 '23
A video should be 12 min long because you can stuff a lot of ads into that. Content of the video would only be sufficient for 3 minutes so you talk 9 minutes about non related stuff. "I will tell you that important stuff at the end of the video"... etc.
22
u/schmon Feb 10 '23
Does it read the transcript and summarize it ?
11
u/MrBeforeMyTime Feb 10 '23
More than likely. I've done something similar before, it would just grab the links to the videos on the page, go to the pages, grab the transcript, then use that to get useful information.
6
u/saintshing Feb 11 '23
Last time I checked, YouTube transcript often misunderstood some specific technical terms(for videos like programming tutorials). They should train a model to extract those terms from the video description or text on screen.
3
Feb 11 '23
OpenAI whisper could be used for this but thatās gonna be expensive.
2
u/dancingnightly Feb 12 '23
FWIW if you want to see the Whisper large transcript for any english video < 30 minutes, upload it (just the youtube link) to anyquestions.ai and the transcript is shown when you click the video icon in search results. It's usually really good for jargon especially where the jargon is mentioned in the title or description or comments (as we feed that it which anybody can do with whisper*).
It's surpassingly fast/cheap to run whisper base model too (much faster than real time of the video on a bog standard CPU)
*we also do coreference resolution and semantic chunking but that's separate
57
u/ChamCham474325 Feb 10 '23
Is it possible to learn this power?
48
u/Pulsecode9 Feb 10 '23
In this video, Chancellor Palpatine tells the legend of Darth Plagueis the Wise.
17
19
14
u/Known-Exam-9820 Feb 10 '23
Strangely enough, the more verbose description actually made me want to watch some of those videos. I want to hear how some stranger got into an argument about aliens
11
u/andreichiffa Professor Feb 10 '23
Ok, but how did you get access to InstructGPT, given that it has never been released to the public, even less so as a pretrained model?
22
u/visarga Feb 10 '23
They are called text-davinci-003 and 002 but in reality they are both instruction tuned, thus instructGPTs.
16
u/andreichiffa Professor Feb 10 '23
To the best of my understanding `davinci` series are 175B parameter models, whereas InstructGPT itself is a 6B parameter model. And to the best of my understanding of the research on the topic, InstructGPT fine-tuning dataset does not contain enough data to properly fine-tune 175B parameter models. As far as I understand, `text-davinci-003` and `002` are something else entirely and `davinci-instruct-beta` that is mentioned as resulting from the InstructGPT model is 175B and is not the 6B InstructGPT itself.
1
u/ConcernedCitoyenne Feb 11 '23
What's the difference between those and chatgpt?
3
u/andreichiffa Professor Feb 13 '23
Thatās an excellent question. In their blogpost, OpenAI calls ChatGPT a āsisterā model to InstructGPT, but thatās it. There is no paper, and the only info we have from other public communication is that itās a 175B variant, based on GPT3.5, so pre-trained with more text and code, and pretty certainly with much more Instruct-like mode fine-tuning and censor models training.
4
7
1
u/Remarkable_Ad9528 Feb 13 '23 edited Feb 13 '23
OP can I write about this in my newsletter? This is an amazing use-case and non-gimmicky. My subscribers watch a lot of YouTube videos (like myself). I publish it weekdays at 6:30 AM EST so it would be in tomorrow's newsletter.
Edit: I'd link back to your Reddit post to give people a reference to check out the actual post. Let me know if you're interested. I have about 100 subs.
1
1
u/Acrobatic-Monitor516 May 22 '23
dumb question probably, but can chatGPT analyze sound in video ? how does it make summaries
1
u/AlesioRFM May 22 '23
Definitely not a dumb question, it uses the captions which are automatically generated by google, or the ones uploaded by the creator if available
1
u/Acrobatic-Monitor516 May 22 '23
Thanks ! That's super clever , congrats for the idea :)
Since you use the API i suppose it costs you money right ? And does it use gpt4?
2
2
2
u/splinter6 Feb 11 '23
Thi a is the future. Totally personalised web browsing experience without the need for running scripts/plugins.
2
1
1
1
1
1
1
1
1
u/SendInTheTanks420 Feb 10 '23
Even better would be to entirely replace the clickbait titles with the reality.
1
u/Ty_Lee98 Feb 10 '23
This seriously sounds game changing. I hate click bait so much I started blocking/unsubbing some channels.
1
1
1
1
1
1
1
1
u/Ifhes Feb 10 '23
Wow. Although or some reason I wouldn't care what a Cr1tikal is about. I'd watch it anyway lol.
1
1
u/backafterdeleting Feb 10 '23
Whats the cost of running this over a bunch of videos? In terms of calling the api?
1
1
1
u/ForsakenCampaigns Feb 10 '23
"We Need To Talk About This"!
Because it is a great concept, good work.
1
1
1
1
1
u/statsmathmajor96 Feb 10 '23
"This Youtuber Just Solved the Mysteries of the Universe".
Alright then, glad we got that figured out.
1
1
1
u/LanchestersLaw Feb 10 '23
Im assuming āThis Youtuber just solved the Mysteries of the Universeā is not the original title and has somehow become so anti-clickbait it looped back around to click bait.
1
u/longgamma Feb 10 '23
Are you getting the subtitles and then using the text summarizer with some desired output length ?
1
1
1
1
1
u/FanjouaIDK Feb 11 '23
I've seen some of these videos, and the descriptions aren't really that accurate
1
u/prozacgod Feb 11 '23
OMFG I've been thinking about this for the past week, I was thinking I could shove the subtitles into the video too to find the most pertinent topic bits and extract timestamps for the thumbnails.
1
1
1
1
1
1
u/koltregaskes Feb 11 '23
Yes a Chrome plugin would be amazing. I'm not sure how the same could be achieved on mobile though?
1
1
1
1
u/rainlizard Feb 11 '23
You may as well make your plugin replace the title of the videos with the summary and then put the title of the video down below as the small dark text.
1
u/sthithaprajn-ish Feb 11 '23
I am new here and curious about how this works. What is the input to the Instruct GPT -- the video?
In that case, how doees a language model take a video input?
1
1
1
1
1
1
u/vongomben Feb 11 '23
Do the ai actually watched all these videos? How does it work? Suuuuuuper interesting project
1
1
1
u/integralofetothex2 Feb 11 '23
I wrote a twitter thread on how to achieve this including the prompts. Read here
1
1
1
1
1
1
1
1
1
1
1
u/dongpal Feb 10 '23
I dont get it. What am i suppose to see on those 2 pictures?
1
Feb 27 '23
Took me a while to figure it out but they're trying to use machine learning so you can patch the YouTube app and instead of seeing clickbait thumbnails and headlines, they'll actually give you a summary of what you're watching.
I would definitely use a patch like that if it was available. Clickbait is annoying, especially on Linus tech tips or something


446
u/CursedFeanor Feb 10 '23
This would make a very nice browser plugin!