Skip to content

Attention Mechanism

Definition
AI-generated

An attention mechanism reweights inputs (tokens, positions, or features) based on learned compatibility scores, producing context-dependent representations; self-attention relates all positions to each other and is the core of transformer architectures.

Why it matters in GWAS

Attention layers appear in sequence models for DNA and RNA, protein language models, and multimodal biomedical foundation models used for annotation or literature mining. Attention weights are sometimes interpreted as biological importance but are not guaranteed causal maps without experiments.

Example usage

"In our variant-prioritization model, an attention mechanism upweighted enhancer features near immune genes, improving held-out prediction compared with uniform feature weighting."

References

  • Vaswani A, et al. (2017). Attention is all you need. NeurIPS.

Last updated (UTC · Git history)