正在加载视频...

视频加载失败

This layer in DINO-v2 dedicates about half its attention mass to a single operation. Each of the sixteen heads independently learns the same circuit to perform this task. What is this all-important operation? The “no-op”. That’s right, we’re spending half our computation to do… absolutely nothing.

97,182 次观看 • 1 年前 •via X (Twitter)

10 条评论

Rudy Gilman 的头像
Rudy Gilman1 年前

The “no-op” acts as an attention sink. It allows a head to not move anything if it doesn’t want to. The circuit works by attending strongly to a single spatial location and then moving a “nothing vector” in the value projection. Each head uses one or two of its QK pairwise detectors to attend to the no-op position. This is the threshold. If other QK matches want to count for anything in the softmax they have to exceed this threshold.

Rudy Gilman 的头像
Rudy Gilman1 年前

If we look at the K projection, we see that one channel looks for the no-op token. The matching Q channel fires all the time, thus creating a coupled QK detector that promotes attention to the no-op location regardless of Q location. We can see that it’s a “nothing vector” by looking at the size of the vector in the V projection.

Rudy Gilman 的头像
Rudy Gilman1 年前

The “no-op” isn’t a new finding. Clark et al saw it in BERT, where it attends to the SEP token Kobayashi points out that you need to weight your attn patterns by the magnitude of your V projection if you want a real sense of what’s being moved Anthropic reiterated Kobayashi’s point in their transformers circuits work I was just surprised by the sheer mass of attention we’re spending on the no-op, especially when this attention matrix is the memory bottleneck!

Rudy Gilman 的头像
Rudy Gilman1 年前

For the record I’ve never liked the softmax. Feels coercive. Activations in linear / conv layers are voluntary, and indeed many neurons choose to not fire most of the time. But with softmax attention we’re forcing the model to develop this complex “no-op” apparatus just to get what other layers enjoy naturally: the ability to not fire when the pattern it’s looking for isn’t there!

Mingjie Sun 的头像
Mingjie Sun1 年前

Check out our paper In the last section, we explain this phenomenon on DINO-v2 with registers.

Rudy Gilman 的头像
Rudy Gilman1 年前

This is a great reference, thank you! Definitely worth the read.

Zach Nussbaum 的头像
Zach Nussbaum1 年前

i’m pretty sure there are vits trained with registers/sinks based on that finding!

Rudy Gilman 的头像
Rudy Gilman1 年前

Yes I suspect these are related to @TimDarcet 's registers! more evidence for this is that the no-op detectors also fire somewhat for the CLS token, which we know has global information.

uɐɥdǝʇS 的头像
uɐɥdǝʇS1 年前

wasn't this supposed to be a fix for some of this or am I misunderstanding?

Rudy Gilman 的头像
Rudy Gilman1 年前

Yes this definitely seems connected to the phenomenon of registers, you are understanding correctly!

相关视频

Ex-CIA officer Sean Wiswesser: Churchill warned about the choice between dishonor and war. This is the period we live in. We’re living in a time when decisions have consequences. Time for prognostication and half-measures is over. We’ve had nothing but half-measures with Ukraine, a democracy fighting for its very existence. We’re not going to give them Abrams tanks. Okay, I guess we’ll give them Abrams tanks a year or two later. We’re not going to give them HIMARS. Okay, maybe we’ll give them HIMARS. We’re not going to give them Leopard tanks. Maybe we’ll give them Leopard tanks or Challenger tanks. We’re not going to give them F-16s. Oh, finally, after two years, we’ll give them F-16s. All these half-measures, prognostications, and putting it all off… We’re living in a time of consequences. This is when our alliance, being united, matters the most. The only way we’re ever going to stop Russian aggression is if we stand united in the West and say, “You know what? Those $300 billion in assets seized? We’re giving them to Ukraine, Russia. Because of your level of aggression, your escalation, and your intentional targeting of Ukrainian civilians. Hitting maternity wards, targeting schools, thousands of children have died. That’s too much for us in the West. We’re going to say: ‘Enough.’” But we haven’t to date. We’ve tried those half-measures. We’ve tried equivocating. When we speak to Putin in the same language, make him understand that there are costs for war, that’s when this war ends. That’s how we prevent the next war. That’s the most important thing: how we prevent the next war.

Kate from Kharkiv

11,902 次观看 • 10 天前