---
title: "​Sequential Attention: Making AI models leaner and faster without sacrificing accuracy"
description: "Sequential Attention is a greedy subset-selection algorithm that runs inside a single training run."
url: "https://swe.quest/articles/sequential-attention-making-ai-models-leaner-and-faster-without-sacrificing-65f934b916a51bd2"
canonical: "https://research.google/blog/sequential-attention-making-ai-models-leaner-and-faster-without-sacrificing-accuracy/"
source: "Google Research"
published: "2026-02-04"
difficulty: "hard"
kind: "Research"
reading_minutes: 7
tags: ["machine-learning","algorithms","inference","recommendation-systems"]
---

# ​Sequential Attention: Making AI models leaner and faster without sacrificing accuracy

A post on [Google Research](https://swe.quest/sources/google-research.md), published 2026-02-04, 7 min read, Research. Original: [https://research.google/blog/sequential-attention-making-ai-models-leaner-and-faster-without-sacrificing-accuracy/](https://research.google/blog/sequential-attention-making-ai-models-leaner-and-faster-without-sacrificing-accuracy/)

## Summary

Sequential Attention is a greedy subset-selection algorithm that runs inside a single training run. It uses softmax attention scores over unselected candidates (features, embedding chunks, weight blocks) to add the most informative one at each step, and recomputes scores so the ranking reflects marginal gain and avoids redundant picks. For feature selection it matches or beats baselines on proteomics, image and activity-recognition benchmarks, and on linear regression it is provably equivalent to Orthogonal Matching Pursuit. SequentialAttention++ combines differentiable pruning with combinatorial search to produce block-sparse weights that run efficiently on GPUs and TPUs, with compression gains on ImageNet. Planned uses include recommender embedding optimization and structured LLM pruning.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)

## Prerequisites

- attention mechanism
- feature selection
- neural network pruning
- greedy algorithms ([easy posts on Algorithms](https://swe.quest/tags/algorithms.md?difficulty=easy))

## Keywords

Sequential Attention, SequentialAttention++, Orthogonal Matching Pursuit, block sparsification, ImageNet

## Related posts

- [Sequence learning: A paradigm shift for personalized ads recommendations](https://swe.quest/articles/sequence-learning-a-paradigm-shift-for-personalized-ads-recommendations-0f4eda06409ac7d5.md): Meta Engineering · 2024-11-19 · Hard · 7 min read · Recommendations & ranking, Ads, Machine learning, Inference & serving
  Meta replaced its DLRM ads ranking models, which depended on thousands of hand-engineered aggregated sparse features, with sequence learning over event-based features (EBFs).
- [Understanding BigBird's Block Sparse Attention](https://swe.quest/articles/understanding-bigbird-s-block-sparse-attention-c6890f38de755efc.md): Hugging Face · 2021-03-31 · Hard · 18 min read · LLMs, Machine learning, Algorithms, Performance engineering
  BigBird replaces BERT's quadratic full attention with block sparse attention, which combines sliding-window, global and random attention to approximate full attention at linear cost.
- [From User Sequences to Scaling Laws: A Multi-Stage Architecture for Meta’s Ads Ranking](https://swe.quest/articles/from-user-sequences-to-scaling-laws-a-multi-stage-architecture-for-meta-s-ads-3c689db90be36667.md): Meta Engineering · 2026-08-05 · Hard · 6 min read · Recommendations & ranking, Ads, Model training, Machine learning, Scaling
  Meta scales sequence learning for ads ranking by splitting it into two stages: an offline transformer user model processes thousands of user events asynchronously and caches user-level embeddings, and a lightweight online ranking model combines those embeddings with fresh signals and ad candidates under strict latency budgets.
- [Hugging Face Reads, Feb. 2021 - Long-range Transformers](https://swe.quest/articles/hugging-face-reads-feb-2021-long-range-transformers-59eb38f5969384a8.md): Hugging Face · 2021-03-09 · Hard · 8 min read · LLMs, Machine learning, Model training
  Long-range attention methods attack the quadratic memory and time cost of self-attention in sequence length, and four papers illustrate the main families.
- [Ulysses Sequence Parallelism: Training with Million-Token Contexts](https://swe.quest/articles/ulysses-sequence-parallelism-training-with-million-token-contexts-a21775c0b516e85a.md): Hugging Face · 2026-03-09 · Hard · 13 min read · Model training, LLMs, Distributed systems, Hardware
  Ulysses Sequence Parallelism, part of Snowflake's Arctic Long Sequence Training protocol, enables training on contexts of hundreds of thousands to millions of tokens.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
