Structure-Aware Masking for Protein Representation Learning

Thomas Walton, Ayan Goel, Amirali Aghazadeh
5/15/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Masked language modeling (MLM) is the standard objective for training protein language models, typically implemented by randomly masking individual residues at a fixed rate (e.g., 15%). This practice implicitly assumes that all sequence positions contribute equally to representation learning. In downstream fitness prediction tasks, however, protein sequences are governed by three-dimensional structural dependencies and long-range residue contacts that induce strong nonlocal couplings between residues. We introduce Bucket Masking, a structure-aware masking strategy that selects groups of residues based on their proximity in three-dimensional space, preferentially masking structurally coupled regions during training. By conditioning the masking distribution on residue contacts, Bucket Masking shifts the learning objective toward modeling long-range interactions that are critical for protein function. Across four downstream protein fitness prediction tasks, Bucket Masking enables up to a 14% improvement over standard random masking, excelling at predicting higher-order mutational interactions. Through controlled ablations, we show that these improvements arise from mask placement rather than span size, establishing masking as a positional inductive bias.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{walton2026structureaware,
  title  = {Structure-Aware Masking for Protein Representation Learning},
  author = {Thomas Walton and Ayan Goel and Amirali Aghazadeh},
  year   = {2026},
  eprint = {2605.16581},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.16581v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.16581.svg)](https://codeofpaper.com/paper/2605.16581)

Discussion