Attention Mask
A mask used in the Transformer attention mechanism to block certain positions, typically handling variable-length sequences and causal constraints, and also extensible to dynamically selecting context chunks.
Timeline (last 90 days)
Incorrect batching implementations (such as improperly constructed attention masks, misaligned sequence lengths, or incorrect context concatenation) can cause cross-request context contamination, and are one of the most typical technical sources of prompt leakage.
In tree-structured inference, if branches are simply concatenated into a long sequence and the prefix cache is shared, attention masks must prevent cross-branch information leakage; improper mask design or state management errors can cause some queries to unexpectedly attend to tokens from other branches, thereby changing the softmax normalization results and causing output probabilities to deviate from their true values.
For Transformers, mechanisms such as positional encoding and attention masking may fail beyond the training length.
All Facts (3)
Incorrect batching implementations (such as improperly constructed attention masks, misaligned sequence lengths, or incorrect context concatenation) can cause cross-request context contamination, and are one of the most typical technical sources of prompt leakage.
50%UnverifiedIn tree-structured inference, if branches are simply concatenated into a long sequence and the prefix cache is shared, attention masks must prevent cross-branch information leakage; improper mask design or state management errors can cause some queries to unexpectedly attend to tokens from other branches, thereby changing the softmax normalization results and causing output probabilities to deviate from their true values.
50%UnverifiedFor Transformers, mechanisms such as positional encoding and attention masking may fail beyond the training length.
50%