WEBVTT

00:00:01.290 --> 00:00:02.208
Hi, I'm Rosalind!

00:00:02.208 --> 00:00:05.574
A transformer's feed-forward network does most of the work per token.

00:00:05.574 --> 00:00:08.022
Here is how to skip most of it.

00:00:09.517 --> 00:00:13.401
The idea: train the feed-forward network so most hidden units output exact

00:00:13.401 --> 00:00:16.962
zero, then skip the two heavy matrices for the dead ones.

00:00:19.467 --> 00:00:22.118
First, run the gate matrix for every hidden unit.

00:00:22.118 --> 00:00:23.297
This matrix always runs.

00:00:23.297 --> 00:00:25.948
It is what tells us where the zeros are.

00:00:26.368 --> 00:00:30.132
The R plus S activation sends the negative half straight to zero,

00:00:30.132 --> 00:00:32.013
so most hidden units go dark.

00:00:32.433 --> 00:00:34.461
Only the live units touch the up matrix.

00:00:34.461 --> 00:00:36.743
Every dark unit skips a whole row of it.

00:00:37.163 --> 00:00:38.779
They skip the down matrix too.

00:00:38.779 --> 00:00:41.742
We ran the gate, then skipped two matrices out of three.

00:00:43.025 --> 00:00:46.190
With a standard gate, the full gate matrix runs every token.

00:00:46.190 --> 00:00:50.218
You can skip the other two, so the speedup tops out at three times.

00:00:50.638 --> 00:00:54.439
Make the gate low-rank and nearly free, then spend the saved budget

00:00:54.439 --> 00:00:55.706
on the big matrices.

00:00:55.706 --> 00:00:57.923
Now the speedup climbs past three times.

00:00:59.675 --> 00:01:03.559
Measured on a five point eight billion model, the GPU runs the

00:01:03.559 --> 00:01:07.444
feed-forward network two times faster with a standard gate, and over three

00:01:07.444 --> 00:01:09.386
times faster with the low-rank gate.

00:01:10.892 --> 00:01:13.238
The always-on gate was the whole ceiling.

00:01:13.238 --> 00:01:16.926
Make it cheap, and ninety percent sparsity turns into real speed.

00:01:19.317 --> 00:01:22.080
To recap: compute the gate, then skip the dead units.

00:01:22.080 --> 00:01:25.118
The gate caps the win at three times, and the cheap

00:01:25.118 --> 00:01:26.224
gate breaks past it.

00:01:26.644 --> 00:01:28.894
Every source is in the full article.

00:01:28.894 --> 00:01:29.536
I'm Rosalind.

00:01:29.536 --> 00:01:29.858
Bye!
