SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.18261 · 2026

Cacheable by Design? Training Mixture-of-Experts Routers for Locality Against the Edge Memory-Bandwidth Wall A Pre-Registered Negative Result, with a Systems Measurement Study

Ramesh Shriniwas, Suram

arXiv · PDF

Code that ran

13 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.18261.json · badge: /api/ran/2608.18261.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Shriniwas410/cacheable-by-design canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
assert_comparable Ran
ran; our contract draft was wrong, not the code
Shriniwas410/cacheable-by-design/provenance.py
code served (permissive licence) · get_code("6abb765130ac2f62")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import json
import os

# Create temporary directories to act as run directories
temp_dir = tempfile.mkdtemp()

# Create first run directory
run_dir_1 = os.path.join(temp_dir, 'run_1')
os.makedirs(run_dir_1, exist_ok=True)

# Create second run directory
run_dir_2 = os.path.join(temp_dir, 'run_2')
os.makedirs(run_dir_2, exist_ok=True)

# Write config.json for run_1
config_1 = {
    'run_name': 'run_1',
    'arm': 'arm_a',
    'lambda_loc': 0.1,
    'mu_dom': 0.2,
    'tokens': 1000,
    'seq': 128,
    'seed': 42,
    'params': 1000000
}
with open(os.path.join(run_dir_1, 'config.json'), 'w') as f:
    json.dump(config_1, f)

# Write config.json for run_2 (with same COMPARE_KEYS values)
config_2 = {
    'run_name': 'run_2',
    'arm': 'arm_b',
    'lambda_loc': 0.15,
    'mu_dom': 0.25,
    'tokens': 1000,  # Same as run_1
    'seq': 128,      # Same as run_1
    'seed': 43,
    'params': 1000000  # Same as run_1
}
with open(os.path.join(run_dir_2, 'config.json'), 'w') as f:
    json.dump(config_2, f)

# Create minimal ckpt.pt files
with open(os.path.join(run_dir_1, 'ckpt.pt'), 'wb') as f:
    f.write(b'dummy checkpoint data for run 1')

with open(os.path.join(run_dir_2, 'ckpt.pt'), 'wb') as f:
    f.write(b'dummy checkpoint data for run 2')

# Create final_eval.json for run_1
final_eval_1 = {
    'domain_a': {'val_ppl': 5.123},
    'domain_b': {'val_ppl': 6.456}
}
with open(os.path.join(run_dir_1, 'final_eval.json'), 'w') as f:
    json.dump(final_eval_1, f)

# Create final_eval.json for run_2
final_eval_2 = {
    'domain_a': {'val_ppl': 5.789},
    'domain_b': {'val_ppl': 6.234}
}
with open(os.path.join(run_dir_2, 'final_eval.json'), 'w') as f:
    json.dump(final_eval_2, f)

ARGS = {
    'run_dirs': [run_dir_1, run_dir_2],
    'keys': ('tokens', 'params', 'seq')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load Ran
ran; our contract draft was wrong, not the code
Shriniwas410/cacheable-by-design/frontier.py
code served (permissive licence) · get_code("4c6d5d4f5f3922c1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile

# Create a temporary directory and a temporary JSON file
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.json")

# Write a sample JSON file
test_data = {"key": "value", "number": 42, "list": [1, 2, 3]}
with open(temp_file, 'w') as f:
    json.dump(test_data, f)

# Define ARGS with the path to the temporary JSON file
ARGS = {
    "path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load Ran
ran; our contract draft was wrong, not the code
Shriniwas410/cacheable-by-design/summarize.py
code served (permissive licence) · get_code("59599771ecfff4b3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
runs_dir = os.path.join(temp_dir, 'runs')
os.makedirs(runs_dir, exist_ok=True)

# Create a test run directory with a metrics.json file
test_run = 'test_run_001'
test_run_dir = os.path.join(runs_dir, test_run)
os.makedirs(test_run_dir, exist_ok=True)

# Create a sample metrics.json file
metrics_data = {
    'loss': [0.5, 0.4, 0.3],
    'accuracy': [0.7, 0.8, 0.9],
    'epoch': 3
}
metrics_file = os.path.join(test_run_dir, 'metrics.json')
with open(metrics_file, 'w') as f:
    json.dump(metrics_data, f)

# Change to the temp directory so relative path works
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'run': test_run
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_prov Ran
ran; our contract draft was wrong, not the code
Shriniwas410/cacheable-by-design/provenance.py
code served (permissive licence) · get_code("f8447efc3a8738fd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import json
import tempfile
import shutil

# Create a temporary directory to serve as run_dir
run_dir = tempfile.mkdtemp()

# Create config.json
config = {
    'run_name': 'test_run',
    'arm': 'test_arm',
    'lambda_loc': 0.1,
    'mu_dom': 0.2,
    'tokens': 1000,
    'seq': 512,
    'seed': 42,
    'params': 1000000
}
config_path = os.path.join(run_dir, 'config.json')
with open(config_path, 'w') as f:
    json.dump(config, f)

# Create a dummy ckpt.pt file
ckpt_path = os.path.join(run_dir, 'ckpt.pt')
with open(ckpt_path, 'wb') as f:
    f.write(b'dummy checkpoint data' * 100)

# Create final_eval.json
final_eval = {
    'dataset1': {
        'val_ppl': 25.456,
        'train_loss': 3.2
    },
    'dataset2': {
        'val_ppl': 30.123,
        'train_loss': 3.5
    }
}
final_eval_path = os.path.join(run_dir, 'final_eval.json')
with open(final_eval_path, 'w') as f:
    json.dump(final_eval, f)

ARGS = {
    'run_dir': run_dir,
    'with_ckpt_sha': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_trace Ran
ran; our contract draft was wrong, not the code
Shriniwas410/cacheable-by-design/analyze.py
code served (permissive licence) · get_code("ba8d8cfb880cdd90")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import json
import tempfile
import os

# Create a temporary directory and file for the trace
temp_dir = tempfile.mkdtemp()
temp_path = os.path.join(temp_dir, "trace.npz")

# Create sample data
experts = np.array([1, 2, 3, 4, 5], dtype=np.float32)
meta_dict = {"model": "test_model", "version": 1, "config": {"lr": 0.001}}
meta_json = json.dumps(meta_dict)

# Save as npz file
np.savez(temp_path, experts=experts, meta=meta_json)

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_metric Ran
ran, honoured the contract we drafted
Shriniwas410/cacheable-by-design/summarize.py
code served (permissive licence) · get_code("59f761c9c46dfb45")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - m is a dict with a 'domains' key containing a dict of domains
# - Each domain value d is a dict with a 'hit' key (or other kind)
# - d[kind] is a dict with 'cap' key
# - d[kind][cap] is a dict with 'pol' key
# - d[kind][cap][pol] is a numeric value

# Building m structure
m = {
    'domains': {
        'domain_1': {
            'hit': {
                'cap_a': {
                    'pol_x': 0.85,
                    'pol_y': 0.75
                },
                'cap_b': {
                    'pol_x': 0.90,
                    'pol_y': 0.80
                }
            }
        },
        'domain_2': {
            'hit': {
                'cap_a': {
                    'pol_x': 0.70,
                    'pol_y': 0.65
                },
                'cap_b': {
                    'pol_x': 0.78,
                    'pol_y': 0.72
                }
            }
        },
        'domain_3': {
            'hit': {
                'cap_a': {
                    'pol_x': 0.88,
                    'pol_y': 0.82
                },
                'cap_b': {
                    'pol_x': 0.92,
                    'pol_y': 0.86
                }
            }
        }
    }
}

cap = 'cap_a'
pol = 'pol_x'
kind = 'hit'

ARGS = {
    'm': m,
    'cap': cap,
    'pol': pol,
    'kind': kind
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_ppl Ran
ran, honoured the contract we drafted
Shriniwas410/cacheable-by-design/summarize.py
code served (permissive licence) · get_code("abb634cc2829f958")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function accesses m['domains'], which should be a dict
# Each domain value should be a dict with a 'val_ppl' key (optional)
# The function computes mean of all val_ppl values that exist

ARGS = {
    'm': {
        'domains': {
            'domain1': {'val_ppl': 10.5},
            'domain2': {'val_ppl': 20.3},
            'domain3': {'val_ppl': 15.8},
            'domain4': {},  # No val_ppl key
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
miss_per_tok Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Shriniwas410/cacheable-by-design/analyze.py
code served (permissive licence) · get_code("81ece1943db00ed8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import math

# Create a small test case for experts
# Shape: (L, T, k) where L=layers, T=time_steps, k=experts_per_token
L = 2  # number of layers
T = 5  # number of tokens
k = 3  # experts per token

# Create experts array with expert indices
# Each position contains an expert index (0 to n_exp-1)
np.random.seed(0)
experts = np.random.randint(0, 4, size=(L, T, k)).astype(np.int64)

# cap_frac: fraction of experts to cache
cap_frac = 0.5

# policy: caching policy to use
policy = 'static'

ARGS = {
    'experts': experts,
    'cap_frac': cap_frac,
    'policy': policy
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
page_of Ran
ran; our contract draft was wrong, not the code
Shriniwas410/cacheable-by-design/paper/build_ctx.py
code served (permissive licence) · get_code("3081d51cd278eccb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def page_of(lines, i):
    for j in range(i, -1, -1):
        m = re.match('===== PAGE (\\d+)', lines[j])
        if m:
            return m.group(1)
    return '?'

# Construct arguments for page_of
lines = [
    "some text here",
    "===== PAGE 5",
    "more content",
    "===== PAGE 3",
    "final line"
]

i = 4

ARGS = {
    "lines": lines,
    "i": i
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ppl Ran
ran; our contract draft was wrong, not the code
Shriniwas410/cacheable-by-design/cert_elision.py
code served (permissive licence) · get_code("bc0b37eed100678d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F
import math

torch.manual_seed(0)

# Create logits tensor: shape (batch_size, seq_len, vocab_size)
# batch_size=2, seq_len=5, vocab_size=4
logits = torch.randn(2, 5, 4)

# Create target tensor: shape (batch_size, seq_len)
# Values should be valid token indices (0-3 for vocab_size=4)
tgt = torch.randint(0, 4, (2, 5))

ARGS = {
    "logits": logits,
    "tgt": tgt,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reroute_token Ran
ran; our contract draft was wrong, not the code
Shriniwas410/cacheable-by-design/cacheeval.py
code served (permissive licence) · get_code("4e327a8a30bf2d21")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

torch_seed = 0
np.random.seed(0)

# Construct the arguments
# p: (E,) probability array where E is number of experts
num_experts = 8
p = np.array([0.9, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1], dtype=np.float32)

# order: experts sorted by probability in descending order
order = np.argsort(-p)

# resident_set: set of cached experts
resident_set = {0, 2, 4, 6}

# tau: relative tolerance threshold
tau = 0.2

# k: number of experts to choose
k = 3

ARGS = {
    "p": p,
    "resident_set": resident_set,
    "tau": tau,
    "k": k,
    "order": order,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reuse_lag1 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Shriniwas410/cacheable-by-design/analyze.py
code served (permissive licence) · get_code("1a52e3c4ac6ee86e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function expects:
# experts: a tensor of shape (L, T, k) where:
#   L = number of layers
#   T = number of time steps
#   k = number of experts per token
# The function iterates over layers, then time steps, and treats each element
# as convertible to a set (calls .tolist() on slices), so it should be a tensor
# of integers representing expert indices.

# Create a small tensor with distinct dimensions:
# L=2 (layers), T=3 (time steps), k=4 (experts per token)
experts = torch.tensor([
    # Layer 0
    [
        [0, 1, 2, 3],      # t=0
        [1, 2, 3, 0],      # t=1
        [2, 3, 0, 1],      # t=2
    ],
    # Layer 1
    [
        [0, 1, 2, 3],      # t=0
        [0, 1, 2, 3],      # t=1 (high reuse with t=0)
        [1, 2, 3, 0],      # t=2
    ]
], dtype=torch.long)

ARGS = {
    "experts": experts
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rope_cache Ran
ran, honoured the contract we drafted
Shriniwas410/cacheable-by-design/model.py
code served (permissive licence) · get_code("4fbd2fe1d47ad8b0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "seq": 8,
    "dim": 4,
    "device": torch.device("cpu"),
    "base": 10000.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
apply_rope Not yet run
unverified (harvested, no recorded run)
Shriniwas410/cacheable-by-design/model.py
code served (permissive licence) · get_code("07941306772c339b")
How it ran

no invocation recorded.

pts Not yet run
unverified (harvested, no recorded run)
Shriniwas410/cacheable-by-design/frontier2.py
code served (permissive licence) · get_code("bc9f31b489cd86a5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Serving a 235B-parameter Mixture-of-Experts (MoE) model on a single commodity GPU (8 GB VRAM) is bottlenecked not by compute but by memory bandwidth: autoregressive decode must stream each token's active expert weights out of whichever memory tier holds them, and on consumer hardware most experts live on an SSD an order of magnitude slower than RAM. We first quantify this bandwidth wall empirically on Qwen3-235B-A22B (Q4 K M, 134 GB): measured decode is 0.44 tok/s warm, in exact agreement with a bytes-per-token ÷ bandwidth model, and a plausible request-batching scheme that should amortize one disk sweep over many streams instead collapses at batch 32 due to paging thrash. We then build llama-moe-trace, a zero-model-surgery router-telemetry tool, and measure MoE routing structure on Qwen3-30B-A3B: expert reuse between adjacent tokens is 2.0× chance, 95% of traffic flows through 52.5% of experts, and code-domain routing is nearly orthogonal to prose/math/medical. A least-recentlyused cache holding only 13.4% of experts already serves 66% of requests. Motivated by this, we ask whether routing cacheability is a trainable property: we pre-register an experiment training 137M-parameter MoE language models with auxiliary locality and domain router losses, with joint success criteria on both cache-miss reduction and language-modeling quality. The mechanism works-locality training cuts cache misses up to 60% and domain training reaches a 99% static-pin hit rate-but every configuration fails the pre-registered ≤ 1% perplexity gate: miss reduction and perplexity cost are tightly coupled, and no loss weight threads the joint bar at this scale. Concurrent work (StickyMoE;Kayyam, 2026) proposes the same adjacent-token routingconsistency loss and reports it as nearly free-even improving perplexity (up to -4.1%)-on single-domain (WikiText-2), sub-25M-parameter models. On a harder multi-domain corpus at 137M we instead find the locality tax real and the ≤ 1% gate unmet; our contribution is this pre-registered, stricter-criterion, multi-domain evaluation, a domain-partitioning arm, and the edge-serving measurements above. We report this negative result in full. A 340M rung tests whether the tax shrinks with scale: it does not (it rises slightly), though undertraining at a matched budget leaves this suggestive. We further show that training-free cache-aware rerouting stacks with trained locality-together reaching ∼80% cache-miss reduction at ≤ 3.4% perplexity at both sizes, far cheaper than either alone-while domain-primed prefetching does not help. All code, traces, and the pre-registration are released. * ORCID: 0009-0009-0452-9407. Work conducted independently on personal hardware (single RTX 3070).

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.18261")
get_code_for_paper("2608.18261")
have("2608.18261")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.18261.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.18261.svg)](https://syntology.ai/paper/2608.18261)

Connect an agent — have() is free.