We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
We present a framework for using transformer networks as universal computers by programming them with specific weights and placing them in a loop. Our input sequence acts as a punchcard, consisting of instructions and memory for data read/writes. We demonstrate that a constant number of encoder layers can emulate basic computing blocks, including embedding edit operations, non-linear functions, function calls, program counters, and conditional branches. Using these building blocks, we emulate a small instruction-set computer. This allows us to map iterative algorithms to programs that can be executed by a looped, 13-layer transformer. We show how this transformer, instructed by its input, can emulate a basic calculator, a basic linear algebra library, and in-context learning algorithms that employ backpropagation. Our work highlights the versatility of the attention mechanism, and demonstrates that even shallow transformers can execute full-fledged, general-purpose programs.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2301.13196")
get_code_for_paper("2301.13196")
have("2301.13196")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2301.13196.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2301.13196)
Connect an agent — have() is free.