Research map / Architectures and efficiency / Attention and transformers
Segment-Based Attention Masking for GPTs
Shahar Katz, Liran Ringel, Yaniv Romano, Lior Wolf
Tel Aviv University · Technion - Israel Institute of Technology
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace causal masking with segment-based MAS during prefill (with fine-tuning) | Llama-3.2-1B · Commonsense Reasoning | average accuracy: 63.3 -> 68.6 | Improved |
| replace causal masking with MAS | Qwen2.5-3B · Commonsense Reasoning | average accuracy: 78.1 -> 84.1 | Improved |
| replace causal masking with MAS | Llama-3-8B · Commonsense Reasoning | average accuracy: 84.0 -> 85.8 | Improved |
| replace causal masking with MAS | Llama-3-8B · HellaSwag | accuracy: 94.5 -> 93.2 | Hurt |
| replace causal masking with MAS | eight models · BoolQ | accuracy: win rate 85.7% | Mixed |
| evaluate causal-trained model with MAS (no MAS fine-tuning) (ablation) | Llama-3.2-3B · Commonsense Reasoning | average accuracy: 5.5 average | Hurt |
| evaluate MAS-trained model with causal attention only (ablation) | Llama-3.2-3B · Commonsense Reasoning | average accuracy: 64.4 vs 82.3 with MAS | Hurt |
| fine-tune only Wq,Wv instead of Wq,Wk,Wv (ablation) | Llama-3.2-3B + MAS · Commonsense Reasoning | average accuracy: 81.7 -> 82.3 | Improved |
| add WU,WD to trained matrices (Wq,Wk,Wv,WU,WD) (ablation) | Llama-3.2-3B + MAS · Commonsense Reasoning | average accuracy: 82.3 -> 80.4 | Hurt |
| train only Wq (ablation) | Llama-3.2-3B + MAS · Commonsense Reasoning | average accuracy: 82.3 -> 80.3 | Hurt |
| train only MLP matrices (WU,WD) with MAS (ablation) | Llama-3.2 models · Commonsense Reasoning | average accuracy | No clear effect |
| compare MAS vs causal across training checkpoints (ablation) | Llama-3.2-1B/3B · Commonsense Reasoning | average accuracy | Improved |
Open problems in attention head mechanisms
Do the attention-head mechanisms and length-generalization results hold in full-scale, real-world models?
- Mechanisms are shown only at small scale, with larger models untested. · 19 papers state it
- Theory covers only one-layer or attention-only transformers. · 14 papers state it
- Findings come from synthetic or toy tasks that may not match natural language. · 12 papers state it
Closest papers by meaning
- A Causal World Model Underlying Next Token Prediction: Exploring GPT in a Controlled Environment (ICML 2025 · similarity 0.84)
- StableMask: Refining Causal Masking in Decoder-only Transformer (ICML 2024 · similarity 0.82)
- Morphing Tokens Draw Strong Masked Image Models (ICLR 2025 · similarity 0.82)
- Rethinking Causal Mask Attention for Vision-Language Inference (ICLR 2026 · similarity 0.82)
- How Transformers Learn Causal Structure with Gradient Descent (ICML 2024 · similarity 0.82)
- Visual Prompting for Generalized Few-shot Segmentation: A Multi-scale Approach (CVPR 2024 · similarity 0.82)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.