Loom: A Scalable Analytical Neural Computer Architecture
Organizations: Columbia University
Abstract
We present Loom, a computer architecture that executes programs compiled from C inside a looped transformer whose weights are derived analytically. The architecture implements a 22-opcode instruction set in 8 transformer layers. Each forward pass executes one instruction; the model is applied iteratively until the program counter reaches zero. The full machine state resides in a single tensor of fixed size, and every step has fixed cost for fixed and , independent of program length or execution history. The default configuration uses and , yielding 4.7 million parameters and 928 instruction slots. A compact configuration at and suffices for a 99 Sudoku solver (284 instructions). The weights are program-independent: programs live in the state tensor, and the same fixed-weight model executes any compiled program. We make Loom source code publicly available at https://github.com/mkturkcan/Loom.
Figures & tables
| Region | Rows | Size |
|---|---|---|
| Commands | to | |
| Memory | to | |
| Scratchpad | to | |
| Program counter | to | |
| Position encoding | to | |
| Buffer | to |
| Layer | Stage | Function | Attn. heads |
|---|---|---|---|
| L1 | Fetch | Read instruction at PC | 1 |
| L2 | Decode + Read | Read operands, opcode-gated routing | 3 |
| L3 | Indirect access | LOAD/FIND, scratchpad snap | 2 |
| L4 | Execute | Direct borrow-chain subtraction | 0 |
| L5 | Write | Store result to memory | 2 |
| L6 | Branch + PC 1 | Condition flag, PC increment | 0 |
| Group | Rows |
|---|---|
| SUBLEQ gated copy | |
| clear | |
| INC, DEC, JZ, JNZ, JMP, HALT, CMP | |
| MOV | |
| ADD |
Neural Algorithmic Reasoning
Neural algorithmic reasoning studies how neural networks can learn, execute, and generalize algorithmic procedures.
See all 45 papers