All models

Shared Global Workspace

Transformer whose positions compete to write to a small shared memory that is broadcast back to all of them.

372 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (113 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.9M
Operations
372
Framework
PyTorch
Recurrent
Yes
Published
ICLR 2022
Cited by
59 (as of 30 October 2026)
Authors
Anirudh Goyal, Aniket Didolkar, Alex Lamb and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20379
Graph hash
edeabf44b8c86894499082392b2f152266a4ff9366692c6f2c63f40fff50bc65
Skeleton hash
7be66b8e2c6b6688f9a4da5347a8d943daebe03fba22193616de482671dd579e
Architecture hash
040809af25e826d82b9145c4402129086d3599fc086298b82357297b41b26a9c
Diagram SHA-256
7f0c244e7469a020460c0140172b68eaeceb42b6fff078660817edeefdb1f22d
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Shared Global Workspace changes how the parts of a network communicate: instead of every part attending to every other part, they share information through a small common workspace. The idea comes from cognitive science, where a global workspace architecture has functionally specialized components sharing information through a common, bandwidth-limited channel.

Each computational stage has two steps: the specialists compete to write to the workspace, and the workspace contents are then broadcast to all of them. In a Transformer the specialists are the sequence positions, which compete with each other to write to the workspace. Write access can be restricted with a top-k softmax, which lets only a fixed number of specialists write. Because the workspace replaces pairwise attention, the paper gives the cost of the method as linear in the number of specialists.

One of the paper's tests is detecting equilateral triangles in 64 × 64 images that each contain 3 randomly placed clusters of points. There the paper reports that Transformers with shared workspace attention converge faster and reach higher accuracy than the baseline Transformer.

Key idea. A limited-capacity shared workspace, written to by competing specialist modules and broadcast back to all of them, replaces pairwise attention between modules.

  • Shared Global Workspace
  • Shared Workspace Transformer
  • Global Workspace Network
  • GWN
  • global workspace theory
  • shared workspace
  • modular neural networks
  • specialist modules
  • TR+HSW

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{goyal2022coordinationneuralmodulesshared,
      title={Coordination Among Neural Modules Through a Shared Global Workspace}, 
      author={Anirudh Goyal and Aniket Didolkar and Alex Lamb and Kartikeya Badola and Nan Rosemary Ke and Nasim Rahaman and Jonathan Binas and Charles Blundell and Michael Mozer and Yoshua Bengio},
      year={2022},
      eprint={2103.01197},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2103.01197}, 
}