---
title: "Attention mask mathematical notation"
description: "Attention mask is a recurring research-paper notation family. Marks query-key pairs that attention may use, often by adding zero to allowed scores and…"
canonical_url: "https://fanout.sh/labs/math-decoder/symbol/attention-mask"
md_url: "https://fanout.sh/labs/math-decoder/symbol/attention-mask.md"
last_updated: "2026-08-09"
access: "public"
---

# Attention mask mathematical notation

Attention mask is a recurring research-paper notation family. Marks query-key pairs that attention may use, often by adding zero to allowed scores and…

## Public overview

Attention mask is a recurring research-paper notation family. Marks query-key pairs that attention may use, often by adding zero to allowed scores and negative infinity to blocked scores.

Attention mask: Marks query-key pairs that attention may use, often by adding zero to allowed scores and negative infinity to blocked scores. Example: Blocked score positions receive effectively zero probability after softmax.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
