Individual skill
attention-variants-from-papers
Implement paper-defined attention variants by extracting mechanism invariants, mapping tensor shapes, preserving module interfaces, validating numerical behavior, and integrating the custom attention into an existing transformer stack.
tasks-extra/diff-transformer_impl/environment/skills/attention-variants-from-papers/SKILL.md
Source commit f860ecf02ef53412a030f8661c83d644b739ff01
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Instructions only
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,910
- Repository last updated
- Nov 4, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- benchmark Repository topic
- skillsbench Repository topic
- research Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 2,675 bytesreferences/mechanism-patterns.mddoc · 1,706 bytesreferences/paper-to-implementation.mddoc · 1,269 bytesreferences/shape-ledger.mddoc · 1,505 bytesreferences/stability-and-validation.mddoc · 1,281 bytesreferences/transformer-integration.mddoc · 1,274 bytes
Read excerpt
# Attention Variants from Papers
Use this skill when a paper changes how attention scores, branches, normalization, or head sharing work, but the module still needs to behave like a drop-in transformer attention block.
## Workflow
1. Read the paper for invariants, not names.
Use [paper-to-implementation.md](references/paper-to-implementation.md) to extract the external contract, the changed computation, and the training-time constraints.
2. Build a shape ledger before coding.
Use [shape-ledger.md](references/shape-ledger.md) to track projections, head grouping, branch count, and output width.
3. Choose the mechanism pattern.
Use [mechanism-patterns.md](references/mechanism-patterns.md) for subtractive attention, branch mixing, learned gates, and extra normalization.
4. Preserve the module boundary.
Keep the same input and output shape, mask semantics, positional encoding flow, and cache behavior unless the task explicitly changes them.