scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Do Transformers Grok Succinct Algorithms? Mechanistic Evidence for Counting Circuits

Yizheng Zhao

ACL 2026Architectures and efficiency › Attention and transformersapproach: Transformer expressivity and learnabilityopen problems in this approach0 citations (OpenAlex)

Nanjing University

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
7improved
1no clear effect
2hurt
2mixed

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.

This paper tried a common change: Higher weight decay

increase weight decay to 2.0 · LargeCounter · test accuracy Hurt

What 94 accepted papers report for this change

See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use a 2-layer Transformer (d=64) instead of LSTM/GRU up to d=2048LargeCounter n=20 · LargeCounter held-outsequence accuracy: LSTM-2048 5.8% -> Transformer 100.0%Improved
use Transformer instead of Mamba / Mamba-2LargeCounter n=20 · LargeCounter held-outsequence accuracy: Mamba best 1.1%, Mamba-2 best 0.6% -> 100.0%Improved
scale LSTM hidden size from 64 to 2048 (ablation)LSTM · LargeCounter (big-endian)sequence accuracy: 0.0% -> 5.8%Mixed
little-endian instead of big-endian encoding (ablation)LSTM-2048 · LargeCountersequence accuracy: 5.8% -> 15.4%Improved
use stratified carry-chain sampling instead of uniform sampling (ablation)Transformer-64 · LargeCounteroverall sequence accuracy: 72.4% -> 100.0%Improved
use stratified sampling (ablation)Transformer-64 · LargeCounter k>=10accuracy: 0.3% -> 100.0%Improved
high weight decay (1.0 vs <=0.01) (ablation)Transformer-64 · LargeCountertest accuracy: lambda<=0.01 stays in memorization; lambda=1.0 groks around step 15kImproved
increase weight decay to 2.0 (ablation)Transformer-64 · LargeCountertest accuracyHurt
weight decay 0.3 or 0.5 instead of 1.0 (ablation)Transformer-64 · LargeCounteraccuracy: lambda=0.3: 95.7%; lambda=0.5: 99.2%Mixed
train RNN/SSM with any weight decay (ablation)RNN, SSM · LargeCountergrokkingNo clear effect
test on n=25 with a model trained on n=20Transformer-64 · LargeCounter length generalizationaccuracy: >99% -> near chance for positions p>=20Hurt
space-delimited digits instead of standard BPE tokenizationPythia-160M · multi-digit additionarithmetic heads emergeImproved

Open problems in Transformer expressivity and learnability

Do theorems about transformer expressivity and learning still hold for deep, softmax, trained models?

All 3 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy