hn.today

Google's DeepCrossAttention achieves comparable model quality up to 3x faster

research.google133 points46 comments
Screenshot of Google's DeepCrossAttention achieves comparable model quality up to 3x faster

DeepCrossAttention (DCA) modifies transformer residual connections, which ordinarily add each layer’s output to its input. That simple operation helps information and gradients pass through deep networks, but repeated additions can blur useful details from earlier layers. DCA instead treats residual pathways as dynamic routing: for each token, a lightweight module learns how to combine representations from preceding layers. Its depth-wise cross-attention lets a layer query this history, complementing conventional attention, which operates across tokens. The method can adapt between sequential and more parallel processing, while adding less than 0.2% to model parameters.

Tests on synthetic tasks, language modeling and image classification found faster convergence, more stable training and better or comparable quality. On the C4 and LM1B language benchmarks, DCA matched standard transformer performance in up to five times fewer training steps and achieved lower perplexity under equivalent training budgets; the headline result is comparable quality up to three times faster. On LM1B, a standard model needed 42 layers to reach perplexity below 14, while a 30-layer DCA model did better. DCA also reduced parameters by 30-40% in reported comparisons. It can be initialized to behave like a standard residual network, so it can be added to an existing trained transformer: brief continued training lowered LM1B perplexity by 0.19, versus 0.02 for ordinary continued training.

Read on research.google46 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.