ForceGPT: Higher-Order Attention for Small Language Models
Research paper: Can Higher Order Attention Help Small Language Models?
Author: Joseph Yew Choe Chan β Independent Researcher
Status: Accepted following peer review, BabyLM 2026 Workshop (EMNLP 2026). Not published in the workshop proceedings.
Paper: Read the manuscript
Model: Fibration/babylm-force-8h-12L
Overview
Can a small language model benefit from richer interactions between tokens than standard dot-product attention provides?
This project investigates that question by introducing Force Attention, a lightweight, higher-order modification to Transformer attention. The mechanism adds a low-rank quadratic interaction between learned query and key features, allowing attention scores to capture multiplicative feature interactions beyond conventional dot products.
Rather than replacing the entire Transformer architecture, we modify a single middle attention layer in an otherwise standard causal language model.
The model was developed for the BabyLM 2026 Strict-Small Challenge, which investigates language-model learning under a constrained 10-million-word training corpus.
The accompanying paper presents controlled comparisons against matched GPT baselines across five model widths and six paired random seeds, alongside official BabyLM evaluation results.
Main finding: The higher-order correction produces small, width-dependent improvements in validation loss, particularly for intermediate-width models. However, the benefits are not universal, and learning-curve results remain noisy. We interpret the mechanism as a potentially useful inductive bias under particular model-capacity constraints, rather than a general improvement over standard attention.
Architecture
The released model uses the 6Pβ1Fβ5S architecture:
- 6 prefix blocks: Standard Transformer attention.
- 1 middle block: Force Attention with a low-rank quadratic correction.
- 5 suffix blocks: Standard Transformer attention.
The force layer augments conventional scaled query-key attention logits with a second-order feature interaction before softmax:
Here, $U_Q$ and $U_K$ are constructed from elementwise products of independently learned low-rank projections of the query and key representations. $M$ denotes the causal attention mask.
The correction remains pairwise between token positions; its higher-order character concerns the features of the interacting representations, not interactions among three or more token positions.
Released model configuration
| Property | Value |
|---|---|
| Architecture | Causal Transformer, 6Pβ1Fβ5S |
| Transformer blocks | 12 |
| Attention heads | 8 |
| Hidden dimension | 512 |
| Head dimension | 64 |
| Quadratic projection rank | 16 |
| Force coefficient | 0.05, fixed |
| Additional force parameters | 32,768 |
| Positional encoding | Rotary embeddings (RoPE) |
| Context length | 512 tokens |
| Tokenizer | BPE, vocabulary size 16,384 |
| Training seed | 3407 |
The force mechanism introduces relatively few additional trainable parameters compared with the matched GPT architecture.
Training
The released checkpoint was trained from random initialisation on the BabyLM 2026 Strict-Small corpus.
- Training data: BabyLM Strict-Small, approximately 10 million words
- Training schedule: Approximately 10 epochs, with a small final-epoch buffer
- Objective: Causal next-token prediction
- Optimizer: AdamW
- Learning-rate schedule: Warmup, cosine decay and cooldown
- Dropout: 0.1
- Precision: bfloat16 mixed precision
- Hardware: Single NVIDIA RTX 4070 Ti (12 GB VRAM)
Training uses a context-length curriculum, progressing from 128 to 256 and finally 512 tokens.
For the controlled research experiments, GPT and Force Attention models were trained under matched conditions, including identical tokenizers, data ordering, random seeds, and optimisation settings.
The released checkpoint was trained on the full challenge corpus, whereas the controlled comparisons used a 95/5 training/validation split.
Evaluation results
Official BabyLM 2026 evaluation
The released 8-head ForceGPT checkpoint achieved an NLP Average of 50.14 and an Overall Average of 39.04 on the official BabyLM 2026 Strict-Small evaluation.
The table below reports official ForceGPT scores alongside an indicative evaluation of the matched GPT baseline.
| Metric | ForceGPT 8h | GPT 8h |
|---|---|---|
| Overall Average | 39.04 | β |
| NLP Average | 50.14 | 49.87 |
| BLiMP | 69.71 | 67.38 |
| BLiMP Supplement | 59.47 | 58.78 |
| EWoK | 52.52 | 52.86 |
| Entity Tracking | 19.54 | 20.98 |
| COMPS | 52.33 | 51.65 |
| GlobalPIQA | 33.19 | 33.64 |
| Reading | 0.38 | 0.17 |
| (Super)GLUE | 64.19 | 63.79 |
Important: ForceGPT scores are from the official BabyLM leaderboard submission. GPT baseline scores come from an unofficial local evaluation and are included for context, not as an equivalent official leaderboard entry.
ForceGPT performs slightly better on several syntactic and downstream measures, but worse on others, including Entity Tracking and GlobalPIQA. These mixed results do not establish a broad downstream advantage.
Controlled multi-seed comparisons
To isolate the effect of the attention modification, we compared ForceGPT against standard GPT across widths ranging from 4 to 8 attention heads, using six paired random seeds per width.
The following results report final validation-loss differences after 10 epochs. Negative differences favour ForceGPT.
| Heads | Mean Force β GPT loss | Better seeds |
|---|---|---|
| 4 | β0.0004 Β± 0.0009 | 4/6 |
| 5 | β0.0008 Β± 0.0009 | 4/6 |
| 6 | β0.0013 Β± 0.0008 | 5/6 |
| 7 | β0.0009 Β± 0.0003 | 6/6 |
| 8 | β0.0001 Β± 0.0007 | 4/6 |
Uncertainty is the standard error across paired seeds.
The largest mean improvement occurs at 6 heads, while the 7-head configuration shows the most consistent endpoint improvement. At 8 heads, the difference between the two architectures is negligible.
We also evaluate the area under the validation-loss curve (AULC) to distinguish improvements in learning dynamics from differences at the final checkpoint. These results are noisier and favour ForceGPT on average only at 6β7 heads.
The released 8-head model was selected for the challenge because the wider models achieved the lowest absolute validation loss, not because the force-specific improvement was largest at that width.
Computational efficiency
The quadratic correction adds relatively few parameters but introduces additional computation.
In the main experimental implementation, the force term materialises a dense attention-bias matrix, resulting in approximately 8β10% additional training time relative to matched GPT models.
Preliminary experiments explored a Flash Attention-compatible reformulation, expressing the correction through augmented query and key vectors. In six matched 6-head runs, this reduced mean wall-clock overhead to approximately 2.10% Β± 0.23%, with effectively tied validation loss.
These preliminary experiments demonstrate that computational overhead depends substantially on implementation. They do not establish a general throughput advantage, and the released checkpoint corresponds to the original force-layer configuration.
Limitations and intended use
This release is intended primarily for:
- Research into higher-order and parameter-efficient attention mechanisms.
- Studying inductive biases in small, data-constrained language models.
- Reproducing or extending the accompanying BabyLM experiments.
- Investigating alternative attention formulations and implementation efficiency.
Several limitations are important:
- Small effects: Observed improvements over standard GPT are modest and sensitive to model width and random seed.
- Limited scale: Experiments focus on small language models trained under the BabyLM Strict-Small data budget. Results may not generalise to larger models or corpora.
- No universal efficiency gain: The direct force implementation is slower than standard attention, despite its small parameter overhead.
- Variable downstream performance: Improvements in validation loss do not consistently translate into gains across linguistic evaluation tasks.
- Not instruction-tuned: This is an experimental causal language model, not a general-purpose conversational assistant.
The overall conclusion is that low-rank quadratic attention corrections can affect learning dynamics, but their value appears dependent on capacity, optimisation and implementation choices.
Model files
This repository contains the released model checkpoint, tokenizer, configuration and custom ForceGPT implementation.
The custom architecture is defined in force_gpt.py. Loading it may require enabling trusted custom code in Transformers; users should review that code before executing it.
The original experiment and training codebase is maintained separately. This repository provides the released research model and associated evaluation artifacts rather than a complete reproduction of all experiments.
Paper and citation
Chan, Joseph Yew Choe (2026). Can Higher Order Attention Help Small Language Models?
Accepted following peer review for the BabyLM 2026 Workshop at EMNLP 2026. Unpublished manuscript; not included in the proceedings.
The paper provides the mathematical formulation, experimental methodology, complete paired results, learning-curve analyses, optimisation experiments and discussion of limitations.
- Downloads last month
- 52