Google’s New AI Just Broke My Brain
Two Minute Papers
0:00 Google made a huge announcement about their new
0:03 method that lets us run AI techniques cheaper.
0:06 The news took the world by storm.
0:08 This came at the best possible time,
0:11 because we have a worldwide memory shortage.
0:14 So the prices for capable laptops and GPUs and anything
0:18 that can run these AI systems is up by…insane amounts.
0:23 And this work would make them much cheaper to run.
0:27 They call it TurboQuant.
0:29 Roughly speaking, they claim 4 to 6 times less memory, that is insane.
0:36 And 8 times faster computation for a part
0:39 of the neural network called attention.
0:41 No meaningful loss in output quality.
0:44 And it works on top of existing models as is.
0:49 If true, that is a total game changer.
0:52 The news was so huge it even
0:55 moved the stock price of huge semiconductor companies.
0:58 Because of that, I did not want to publish an early video on the huge sensation.
1:03 No.
1:04 I really wanted to wait a bit,
1:06 and find out whether it actually works in practice.
1:09 I’ll tell you about that.
1:11 And I’ll also tell you that not everyone is happy about it.
1:15 So, three questions.
1:16 What does it do?
1:18 Does it work?
1:20 What is the controversy about?
1:22 Dear Fellow Scholars, this is Two Minute Papers with Dr.
1:27 Károly Zsolnai-Fehér.
1:28 It feels so good to do it like this.
1:31 Well, this compresses the KV cache of AI systems, like large language models.
1:36 This is the short-term memory of an AI assistant.
1:40 If you would look into that, you would see tons and tons of numbers.
1:44 These numbers relate to what you are currently talking about.
1:48 Movies, a bunch of documents or a huge codebase.
1:51 Now, personally, I am a research scientist,
1:54 what caught my eye was not the media hype, but this.
2:00 Oh!
2:00 A formal mathematical proof that it works.
2:03 Now we’re talking.
2:04 Okay, one, so what does this do?
2:06 And these numbers have lots of digits.
2:08 Scientists propose that we chop off the end of the numbers to save memory.
2:12 Is that a new idea?
2:14 No.
2:15 Is that a good idea?
2:18 No, unless you are very careful.
2:21 Because you can lose a lot of information
2:25 and your neural network might output nonsense.
2:28 So, how do you do that?
2:30 Well, imagine a vector, this is like an arrow pointing somewhere.
2:35 Sometimes that arrow points mostly along one axis.
2:39 So most of its "energy" is in one direction, and a little in other directions.
2:47 When you chop that information off, it snaps on to the grid,
2:52 you basically lose everything except that one direction.
2:55 That is not useful.
2:57 Now here’s a brilliant idea: before chopping it off,
3:00 rotate the arrow in a random direction.
3:03 Now the energy spreads more evenly across all directions.
3:08 So when you round off parts of it,
3:11 you lose a little from everywhere instead of everything from most places.
3:16 The result?
3:17 Much less information lost.
3:19 Is this idea new?
3:21 No.
3:22 This is a very old idea.
3:25 Now they do one more thing.
3:27 They use a Johnson–Lindenstrauss Transform to compress the data.
3:32 What is that?
3:34 Remember, we have a bunch of numbers, representing arrow directions.
3:38 And we want fewer numbers to describe these directions.
3:43 But very carefully.
3:44 You do this in a way that guarantees that the distances
3:49 between these arrows is roughly the same after squishing.
3:52 If you want to sound really cool, just call it the JL transform.
3:58 Is that new?
3:59 Not really.
4:00 40-year old technique.
4:02 And I think that is the key.
4:05 Everyone loves to invent shiny new stuff.
4:09 But here, quantization is not new, rotating things around is not new.
4:15 This transform is not new.
4:17 These are three age old ideas combined together to great effect.
4:23 Sometimes you don’t need to invent grand new theories.
4:27 Sometimes you need a smart combination of existing methods.
4:31 Okay, second big question: so does it work in practice?
4:32 To conclude that it works in practice,
4:34 I wanted to see other scientists reproduce
4:38 the technique and benchmark it for themselves.
4:41 This is why this video appears later than most others,
4:44 but I think it makes it more truthful.
4:47 So were other scientists able to reproduce this technique?
4:52 Yes.
4:53 Did they also benchmark it?
4:55 Yes.
4:56 Does this technique help?
4:58 Yes.
4:59 But, not so fast!
5:00 The first tests reveal that it decreased the memory cost of the KV cache,
5:06 short term memory by 30-40%.
5:09 That is fantastic.
5:10 I would have been very happy with this.
5:15 But it doesn’t end there.
5:17 Typically you have a tradeoff where you
5:20 decrease memory usage at the cost of something.
5:23 So something needs to slow down.
5:27 Now hold on to your papers Fellow Scholars,
5:32 because it also sped up processing the prompts by about 40% as well.
5:40 What?
5:41 That is…my brain crashed.
5:43 We get faster AI assistants that need less memory at almost zero cost.
5:48 That is insane.
5:49 In a world where it’s harder and harder to own things, this is a blessing.
5:56 Thank you so much!
5:58 It is also remarkable that the paper has barely been out
6:02 for a week and some of you Fellow Scholars already coded it up.
6:07 Nice work.
6:08 Link is in the description.
6:10 So, it’s not quite like the media says.
6:13 Based on the results,
6:15 we cannot conclude that every AI machine suddenly needs 6 times less ram.
6:20 No.
6:21 That is a bit idealistic and only true for some corner cases.
6:26 You know when you see an official benchmark of a phone
6:29 battery or electric car mileage with somewhat idealized conditions?
6:33 It is a bit like that.
6:36 So careful with the media hype.
6:39 Experienced Fellow Scholars like you know that in your mind,
6:43 you have to tone these numbers down a little.
6:45 This is why we wait for more data and analyze experiments here,
6:50 to get the highest quality information for you.
6:53 But it’s still good.
6:55 Really good!
6:56 It helps most people who run AI systems with very long contexts.
7:01 When you chuck in a huge pdf document, or a movie,
7:05 or a huge codebase for an AI to analyze.
7:08 Yes, you will be able to do that cheaper, with meaningfully less memory.
7:14 Often a few gigabytes less.
7:16 And I think that is absolutely amazing news.
7:21 Third, I will note that other researchers point
7:24 out that the paper overlaps with previous techniques.
7:27 They felt that it has similarities that should be discussed more thoroughly.
7:32 There was more.
7:33 Eventually, the paper was accepted for publication,
7:36 though not all researchers agree the concerns were fully addressed.
7:39 I put the links to all of these in the video description.
7:43 But this proves that even in modern AI,
7:47 there are still basic things we haven’t invented yet.
7:50 And that makes this a very exciting area to be in.
7:54 What a time to be alive!
7:56 And if you agree that this is the way of talking about papers,
7:59 please consider subscribing and hitting the bell icon.