Focal Transformer: Focal Self-attention for Local-Global Interactions in Vision Transformers @TheAIEpiphany
Focal Transformer: Focal Self-attention for Local-Global Interactions in Vision Transformers  @TheAIEpiphany
Uploaded July 2021 | Updated September 2026, 1 week ago
❤️ Become The AI Epiphany Patreon ❤️ ► patreon.com/theaiepiphany

In this video I cover a new paper coming from Microsoft: "Focal Self-attention for Local-Global Interactions in Vision Transformers" where they introduce a new transformer layer called focal attention.

The main idea is to reduce the complexity but preserve the long-range dependencies. They achieve this by attending to the nearby tokens in a fine-grained manner and to the tokens that are further away they attend their coarsened representations.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
✅ Paper: arxiv.org/abs/2107.00641
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

⌚️ Timetable:

00:00 Main idea of the paper: focal self-attention
04:55 Overview of Focal Transformer architecture
08:15 Focal Self-Attention layer
12:30 Computational complexity, overlapping regions
15:30 SOTA results but with a disclaimer
17:30 Ablations
19:50 Outro, Focal Transformer is slower than Swin

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
💰 BECOME A PATREON OF THE AI EPIPHANY ❤️

If these videos, GitHub projects, and blogs help you,
consider helping me out by supporting me on Patreon!

The AI Epiphany ► patreon.com/theaiepiphany
One-time donation:
paypal.com/paypalme/theaiepiphany

Much love! ❤️


Huge thank you to these AI Epiphany patreons:
Eli Mahler
Petar Veličković
Zvonimir Sabljic

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

💡 The AI Epiphany is a channel dedicated to simplifying the field of AI using creative visualizations and in general, a stronger focus on geometrical and visual intuition, rather than the algebraic and numerical "intuition".

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
👋 CONNECT WITH ME ON SOCIAL
LinkedIn ► linkedin.com/in/aleksagordic
Twitter ► twitter.com/gordic_aleksa

Instagram ► instagram.com/aiepiphany
Facebook ► facebook.com/aiepiphany

👨‍👩‍👧‍👦 JOIN OUR DISCORD COMMUNITY:
Discord ► discord.gg/peBrCpheKE

📢 SUBSCRIBE TO MY MONTHLY AI NEWSLETTER:
Substack ► aiepiphany.substack.com

💻 FOLLOW ME ON GITHUB FOR COOL PROJECTS:
GitHub ► github.com/gordicaleksa

📚 FOLLOW ME ON MEDIUM:
Medium ► gordicaleksa.medium.com
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

#focaltransformer #microsoft #transformer
Focal Transformer: Focal Self-attention for Local-Global Interactions in Vision TransformersChip Placement with Deep Reinforcement Learning | Paper ExplainedEfficient Geometry-aware 3D Generative Adversarial Networks | GAN Paper ExplainedDay 18: Open NLLB - data loading document, GitHub tasks (Pt 1)Day 12: Open NLLB - on-boarding doc for new-joiners, mem usage (Pt 1.)Day 3: Replicating Metas NLLB - primary & mined dataDay 25: Open NLLB - filtering HBS (fuzzy dedup, toxicity, LID) (Pt 1)ETA Prediction with Graph Neural Networks in Google Maps | Paper ExplainedMosaicML - Path to 1.300.000.000$ with Davis Blalock (1st employee) | Discord server talksDay 20: Open NLLB - analyzing HBS data (Bosnian, Croatian) (Pt 2)Day 9: Open NLLB - improving data download scripts (Pt 3.)Day 8: Meta NLLB - kicking off a training run, data analysis (Pt. 3)
Aleksa Gordić - The AI Epiphany |

Focal Transformer: Focal Self-attention for Local-Global Interactions in Vision Transformers

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER