Views
No views yet
1@article{sakana2025ctm,
2 title={Continuous Thought Machines},
3 author={Sakana AI},
4 journal={arXiv preprint arXiv:2505.05522},
5 year={2025}
6}| Model | File | Size | Task | Accuracy | Description |
|---|---|---|---|---|---|
| MNIST | ctm-mnist.pt | 1.3M | Digit classification | 97.9% | 10-class MNIST |
| Parity-16 | ctm-parity-16.pt | 2.5M | Cumulative parity | 99.0% | 16-bit sequences |
| Parity-64 | ctm-parity-64.pt | 66M | Cumulative parity | 58.6% | 64-bit sequences (custom config) |
| Parity-64 Official | ctm-parity-64-official.pt | 21M | Cumulative parity | 57.7% | 64-bit sequences (official config) |
| QAMNIST | ctm-qamnist.pt | 39M | Multi-step arithmetic | 100% | 3-5 digits, 3-5 ops |
| Brackets | ctm-brackets.pt | 6.1M | Bracket matching | 94.7% | Valid/invalid (()[]) |
| Tracking-Quadrant | ctm-tracking-quadrant.pt | 6.7M | Motion quadrant | 100% | 4-class prediction |
| Tracking-Position | ctm-tracking-position.pt | 6.7M | Exact position | 93.8% | 256-class (16x16 grid) |
| Transfer | ctm-transfer-parity-brackets.pt | 2.5M | Transfer learning | 94.5% | Parity core to brackets |
| Jigsaw MNIST | ctm-jigsaw-mnist.pt | 19M | Jigsaw puzzle solving | 92.3% | Reassemble 2x2 shuffled MNIST |
| Rotation MNIST | ctm-rotation-mnist.pt | 4.2M | Rotation prediction | 89.1% | Predict rotation angle (4 classes) |
| Brackets Transfer | ctm-brackets-transfer-depth4.pt | 6.1M | Transfer learning | 95.1% | Parity→Brackets (depth 4 synapse) |
| Dual-Task | ctm-dual-task-brackets-parity.pt | 2.8M | Multi-task | 86.1% | Brackets (94%) + Parity (78%) jointly |
| Parity-64 | ctm-parity-64-8x8.pt | 4.1M | Long parity | 58.6% | 64-bit (8x8) cumulative parity |
| Parity-144 | ctm-parity-144-12x12.pt | 4.1M | Long parity | 51.7% | 144-bit (12x12) cumulative parity |
1config = {
2 "iterations": 15,
3 "memory_length": 10,
4 "d_model": 128,
5 "d_input": 128,
6 "heads": 2,
7 "n_synch_out": 16,
8 "n_synch_action": 16,
9 "memory_hidden_dims": 8,
10 "out_dims": 10,
11 "synapse_depth": 1,
12}1config = {
2 "iterations": 50,
3 "memory_length": 25,
4 "d_model": 256,
5 "d_input": 32,
6 "heads": 8,
7 "synapse_depth": 8,
8 "out_dims": 16, # cumulative parity
9}1config = {
2 "iterations": 75,
3 "memory_length": 25,
4 "d_model": 1024,
5 "d_input": 64,
6 "heads": 8,
7 "n_synch_out": 32,
8 "n_synch_action": 32,
9 "synapse_depth": 1, # linear synapse (official)
10 "out_dims": 64, # cumulative parity
11}1config = {
2 "iterations": 10,
3 "memory_length": 30,
4 "d_model": 1024,
5 "d_input": 64,
6 "synapse_depth": 1,
7 "heads": 4,
8 "n_synch_out": 32,
9 "n_synch_action": 32,
10}1config = {
2 "iterations": 30,
3 "memory_length": 15,
4 "d_model": 256,
5 "d_input": 64,
6 "heads": 4,
7 "n_synch_out": 32,
8 "n_synch_action": 32,
9 "out_dims": 2, # valid/invalid
10}1config = {
2 "iterations": 20,
3 "memory_length": 15,
4 "d_model": 256,
5 "d_input": 64,
6 "heads": 4,
7 "n_synch_out": 32,
8 "n_synch_action": 32,
9}1config = {
2 "iterations": 30,
3 "memory_length": 20,
4 "d_model": 512,
5 "d_input": 128,
6 "heads": 8,
7 "n_synch_out": 32,
8 "n_synch_action": 32,
9 "synapse_depth": 1,
10 "out_dims": 24, # 4 tiles x 6 permutation options
11 "backbone_type": "jigsaw",
12}1config = {
2 "iterations": 20,
3 "memory_length": 15,
4 "d_model": 256,
5 "d_input": 64,
6 "heads": 4,
7 "n_synch_out": 32,
8 "n_synch_action": 32,
9 "synapse_depth": 1,
10 "out_dims": 4, # 0°, 90°, 180°, 270°
11 "backbone_type": "rotation",
12}1import torch
2from huggingface_hub import hf_hub_download
3
4# Download model
5model_path = hf_hub_download(
6 repo_id="vincentoh/ctm-experiments",
7 filename="ctm-mnist.pt"
8)
9
10# Load checkpoint
11checkpoint = torch.load(model_path, map_location="cpu")
12
13# Initialize CTM with matching config
14from models.ctm import ContinuousThoughtMachine
15
16model = ContinuousThoughtMachine(**config)
17model.load_state_dict(checkpoint['model_state_dict'])
18model.eval()
19
20# Inference
21with torch.no_grad():
22 output = model(input_tensor)| Sequence | Grid | Accuracy | vs Random | Status |
|---|---|---|---|---|
| 16 | 4x4 | 99.0% | +49.0% | ✅ Solved |
| 36 | 6x6 | 66.3% | +16.3% | ⚠️ Degraded |
| 64 | 8x8 | 58.6% | +8.6% | ❌ Struggling |
| 64 (official) | 8x8 | 57.7% | +7.7% | ❌ Same ceiling |
| 144 | 12x12 | 51.7% | +1.7% | ❌ Random |