SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.12149 · 2026

Massive Activations in Hybrid Linear Attention Large Language Models: Pre-Attention Spikes and Inter-Spike Plateaus

Jing Xiong, Shuibai Zhang, Ngai Wong, Zhongzhu Zhou, Hengyuan Zhang, Xialie Zhuang, He Xiao, Zunhai Su, Tiantian Zhang, Bohan Sun, Chuan-Wei Kuo, Wei Kuo

arXiv · PDF · Open in the Atlas

Code that ran

14 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 12 failures of our instrument; 1 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.12149.json · badge: /api/ran/2608.12149.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
StartLuxLabs/Massive-Activations-HLA canonical (classifier label)
classifier basis: census
14 ran · 1 no recorded run
FunctionStatusWhere it lives
decode_token Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/capture/activation_capture.py
code served (permissive licence) · get_code("6f0e70c8d1d908d2")
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 torch
import numpy as np
from typing import Any

class MockTokenizer:
    """Minimal tokenizer stand-in that implements the decode method."""
    def decode(self, token_ids: list, clean_up_tokenization_spaces: bool = False) -> str:
        # Simple mock: convert token ids to text with special handling
        text_parts = []
        for token_id in token_ids:
            if token_id == 0:
                text_parts.append("[PAD]")
            elif token_id == 1:
                text_parts.append("[UNK]")
            elif token_id == 2:
                text_parts.append("[CLS]")
            else:
                # Simulate some token text with potential whitespace
                text_parts.append(f"token_{token_id}")
        text = " ".join(text_parts)
        
        # Add some whitespace characters that will be escaped
        if token_id == 5:
            text = "hello\nworld\ttab"
        
        return text

torch.manual_seed(0)

tokenizer = MockTokenizer()
token_id = 5

ARGS = {
    "tokenizer": tokenizer,
    "token_id": token_id,
}
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 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
expand_env_vars Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/config.py
code served (permissive licence) · get_code("5885037f620d454d")
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 re
from typing import Any

_ENV_PATTERN = re.compile('\\$\\{([A-Za-z_][A-Za-z0-9_]*)(?::-(.*?))?\\}')

def expand_env_vars(value: Any) -> Any:
    """Recursively expand ${VAR} and ${VAR:-default} in config values."""
    if isinstance(value, str):

        def replace(match: re.Match[str]) -> str:
            name, default = (match.group(1), match.group(2))
            if name in os.environ:
                return os.environ[name]
            if default is not None:
                return default
            return match.group(0)
        return _ENV_PATTERN.sub(replace, value)
    if isinstance(value, list):
        return [expand_env_vars(x) for x in value]
    if isinstance(value, dict):
        return {k: expand_env_vars(v) for k, v in value.items()}
    return value


# Set up test environment variable
os.environ['TEST_VAR'] = 'test_value'
os.environ['ANOTHER_VAR'] = 'another_value'

# Test cases covering all branches:
# 1. String with ${VAR} substitution
test_string_with_var = '${TEST_VAR}'

# 2. String with ${VAR:-default} substitution (var exists)
test_string_with_default_exists = '${TEST_VAR:-fallback}'

# 3. String with ${VAR:-default} substitution (var doesn't exist)
test_string_with_default_missing = '${MISSING_VAR:-default_value}'

# 4. List containing various types
test_list = [
    'prefix_${TEST_VAR}_suffix',
    '${ANOTHER_VAR}',
    'plain_string',
    42,
    3.14,
    ['nested_${TEST_VAR}', 'normal']
]

# 5. Dict with nested structures
test_dict = {
    'key1': '${TEST_VAR}',
    'key2': '${NONEXISTENT:-default}',
    'key3': ['${ANOTHER_VAR}', 'plain'],
    'key4': {
        'nested_key': '${TEST_VAR}_nested',
        'number': 100
    }
}

# 6. Non-string, non-list, non-dict values (should be returned as-is)
test_int = 42
test_float = 3.14
test_bool = True
test_none = None

ARGS = {
    'value': test_dict
}
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
fixed_sink_tokens Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/analysis/pas_isp_metrics.py
code served (permissive licence) · get_code("ea1c1241e4968af3")
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 torch

torch.manual_seed(0)

# The function takes:
# 1. full_attention_layers: list[int] - a list of layer indices
# 2. sink_token: int - a single token index
# 
# The function simply creates a dict mapping each layer to the sink token.
# No complex objects needed - just basic Python types.

full_attention_layers = [0, 2, 4, 6]
sink_token = 1

ARGS = {
    "full_attention_layers": full_attention_layers,
    "sink_token": sink_token,
}
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 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
full_attention_layers_from_checkpoint Ran
ran, honoured the contract we drafted
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/models/released_gdn.py
code served (permissive licence) · get_code("15866371793aa634")
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 json
import tempfile
from pathlib import Path

# Create a temporary directory with a config.json file
temp_dir = tempfile.mkdtemp()
config_dict = {
    "attn": {
        "layers": [0, 2, 4]  # 0-based indices that will be converted to 1-based
    }
}

config_path = Path(temp_dir) / 'config.json'
with open(config_path, 'w', encoding='utf-8') as f:
    json.dump(config_dict, f)

ARGS = {
    "path": temp_dir
}
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 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
get_attention_module Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/capture/component_capture.py
code served (permissive licence) · get_code("1ba948b289154e6d")
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 MinimalAttention. 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 torch
import torch.nn as nn
from typing import Any

torch.manual_seed(0)

# Create a minimal block with an attention module
class MinimalAttention(nn.Module):
    def __init__(self):
        super().__init__()
        self.weight = nn.Parameter(torch.randn(4, 3))
    
    def forward(self, x):
        return x

class BlockWithSelfAttn(nn.Module):
    def __init__(self):
        super().__init__()
        self.self_attn = MinimalAttention()
    
    def forward(self, x):
        return self.self_attn(x)

class BlockWithAttention(nn.Module):
    def __init__(self):
        super().__init__()
        self.attention = MinimalAttention()
    
    def forward(self, x):
        return self.attention(x)

class BlockWithAttn(nn.Module):
    def __init__(self):
        super().__init__()
        self.attn = MinimalAttention()
    
    def forward(self, x):
        return self.attn(x)

class BlockWithLinearAttn(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear_attn = MinimalAttention()
    
    def forward(self, x):
        return self.linear_attn(x)

class BlockWithMixer(nn.Module):
    def __init__(self):
        super().__init__()
        self.mixer = MinimalAttention()
    
    def forward(self, x):
        return self.mixer(x)

class BlockWithoutAttention(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Test with a block that has self_attn
block = BlockWithSelfAttn()

ARGS = {
    'block': block
}
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 MinimalAttention — a MinimalAttention output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MinimalAttention 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
get_decoder_layers Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/capture/layer_hooks.py
code served (permissive licence) · get_code("8ada4f4bbcf54940")
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 torch
import torch.nn as nn
from typing import Any

torch.manual_seed(0)

# Create a minimal model that matches one of the decoder layer paths
# We'll create a model with ('model', 'layers') structure

class MinimalDecoderLayer(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x):
        return self.linear(x)

class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.model = nn.Module()
        # Create a container for layers
        self.model.layers = nn.ModuleList([
            MinimalDecoderLayer(),
            MinimalDecoderLayer(),
            MinimalDecoderLayer()
        ])
    
    def forward(self, x):
        return x

# Instantiate the model
model = MinimalModel()

ARGS = {
    'model': model
}
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 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
get_mlp_module Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/capture/component_capture.py
code served (permissive licence) · get_code("a7084b57f45c06a1")
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 MLPSubmodule. 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 torch
import torch.nn as nn

torch.manual_seed(0)

class MLPSubmodule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class TransformerBlockWithMLP(nn.Module):
    def __init__(self):
        super().__init__()
        self.mlp = MLPSubmodule()
    
    def forward(self, x):
        return self.mlp(x)

class TransformerBlockWithFeedForward(nn.Module):
    def __init__(self):
        super().__init__()
        self.feed_forward = MLPSubmodule()
    
    def forward(self, x):
        return self.feed_forward(x)

class TransformerBlockWithFFN(nn.Module):
    def __init__(self):
        super().__init__()
        self.ffn = MLPSubmodule()
    
    def forward(self, x):
        return self.ffn(x)

class TransformerBlockWithoutMLP(nn.Module):
    def __init__(self):
        super().__init__()
        self.attention = nn.Linear(4, 4)
    
    def forward(self, x):
        return self.attention(x)

block_with_mlp = TransformerBlockWithMLP()

ARGS = {
    "block": block_with_mlp
}
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 MLPSubmodule — a MLPSubmodule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MLPSubmodule 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_attention_array Ran
ran, honoured the contract we drafted
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/analysis/attention_maps.py
code served (permissive licence) · get_code("ea35a8d921142831")
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 ndarray, ndim 3, dtype family float, shape (4, 3, 2) 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 tempfile
from pathlib import Path
import numpy as np

# Create temporary directory and files for testing
temp_dir = tempfile.mkdtemp()

# Create a .npy file
npy_array = np.random.rand(4, 3, 2)
npy_path = Path(temp_dir) / "attention.npy"
np.save(npy_path, npy_array)

# Create a .npz file with 'attention' key
npz_path_attention = Path(temp_dir) / "attention.npz"
np.savez(npz_path_attention, attention=np.random.rand(5, 4, 3))

# Create a .npz file with 'attn' key
npz_path_attn = Path(temp_dir) / "attn.npz"
np.savez(npz_path_attn, attn=np.random.rand(6, 5, 4))

# Create a .npz file with other key
npz_path_other = Path(temp_dir) / "other.npz"
np.savez(npz_path_other, data=np.random.rand(7, 6, 5))

# Test with .npy file
ARGS = {
    "path": str(npy_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 ndarray, ndim 3, dtype family float, shape (4, 3, 2) — shape (4, 3, 2) 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
load_attention_maps Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/analysis/attention_maps.py
code served (permissive licence) · get_code("572399d2736cdd47")
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 tempfile
from pathlib import Path
import numpy as np

# Create a temporary directory structure with attention files
tmpdir = tempfile.TemporaryDirectory()
attention_root = Path(tmpdir.name)

# Create directory structure: attention_root/model_name/prompt_name/
model_name = "test_model"
prompt_name = "test_prompt"
model_prompt_dir = attention_root / model_name / prompt_name
model_prompt_dir.mkdir(parents=True, exist_ok=True)

# Create sample attention arrays for different layers
# Layer 0: save as .npy
layer_0_data = np.random.randn(4, 8, 12)  # (heads, seq_len, seq_len)
np.save(model_prompt_dir / "layer_0.npy", layer_0_data)

# Layer 1: save as .npz with 'attention' key
layer_1_data = np.random.randn(4, 8, 12)
np.savez(model_prompt_dir / "layer_1.npz", attention=layer_1_data)

# Layer 2: save as .npz with 'attn' key
layer_2_data = np.random.randn(4, 8, 12)
np.savez(model_prompt_dir / "layer_2.npz", attn=layer_2_data)

# Layer 3: save as .npz with arbitrary key
layer_3_data = np.random.randn(4, 8, 12)
np.savez(model_prompt_dir / "layer_03.npz", weights=layer_3_data)

ARGS = {
    "attention_root": str(attention_root),
    "model": model_name,
    "prompt": prompt_name,
    "full_layers": [0, 1, 2, 3],
}
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 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_tokenizer Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/capture/model_loading.py
code served (permissive licence) · get_code("4b04b5f6e4343de9")
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 PreTrainedTokenizerFast. 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 tempfile
from pathlib import Path

# Create a temporary directory with mock tokenizer files
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)

# Create a minimal tokenizer.json file
tokenizer_json_content = {
    "version": "1.0",
    "truncation": None,
    "padding": None,
    "added_tokens": [],
    "normalizer": None,
    "pre_tokenizer": None,
    "post_processor": None,
    "decoder": None,
    "model": {
        "type": "BPE",
        "vocab": {},
        "merges": []
    }
}

tokenizer_json_path = temp_path / "tokenizer.json"
with open(tokenizer_json_path, "w") as f:
    json.dump(tokenizer_json_content, f)

# Create a minimal tokenizer_config.json file
tokenizer_config_content = {
    "bos_token": "<bos>",
    "eos_token": "<eos>",
    "unk_token": "<unk>",
    "pad_token": "<pad>",
    "model_max_length": 512,
    "tokenizer_class": "TokenizersBackend"
}

tokenizer_config_path = temp_path / "tokenizer_config.json"
with open(tokenizer_config_path, "w") as f:
    json.dump(tokenizer_config_content, f)

# Define ARGS with the temporary path
ARGS = {
    "model_id_or_path": str(temp_path),
    "trust_remote_code": True,
    "subfolder": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
huggingface_hub, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PreTrainedTokenizerFast — a PreTrainedTokenizerFast output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PreTrainedTokenizerFast 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
max_activation_sink_tokens Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/analysis/pas_isp_metrics.py
code served (permissive licence) · get_code("f0a8d349aecae1a9")
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 numpy as np

# Create a small layer_values array
# The function accesses layer_values[f - 2] for each f in full_attention_layers
# So we need an array large enough to accommodate the indices being accessed
layer_values = np.random.randn(10)  # 10 layers worth of activation values

# Create a list of full attention layer indices
# The function skips if f <= 1 or f - 2 >= layer_values.shape[0]
# So valid indices should be f > 1 and f - 2 < 10, meaning 2 <= f < 12
full_attention_layers = [2, 5, 8, 11]

ARGS = {
    "layer_values": layer_values,
    "full_attention_layers": full_attention_layers,
}
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 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
sink_spike_alignment_rate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/analysis/pas_isp_metrics.py
code served (permissive licence) · get_code("c64def6a629711c6")
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 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 numpy as np

# Construct valid arguments for sink_spike_alignment_rate

# sink_tokens_by_full_layer: dict[int, int]
# Maps full attention layer indices to token indices
sink_tokens_by_full_layer = {
    2: 0,
    4: 1,
    6: 0,
}

# layer_values: np.ndarray of shape [num_layers, seq_len]
# Using 1-based layer indexing in full_attention_layers
# Create array with 8 layers and 3 sequence positions
layer_values = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0],
    [8.0, 9.0, 1.0],
    [3.0, 2.0, 5.0],
    [6.0, 7.0, 8.0],
], dtype=np.float32)

# full_attention_layers: list[int]
# 1-based layer indices for full attention layers
full_attention_layers = [2, 4, 6, 8]

ARGS = {
    "sink_tokens_by_full_layer": sink_tokens_by_full_layer,
    "layer_values": layer_values,
    "full_attention_layers": full_attention_layers,
}
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, ndim 1, 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
tensor_from_output Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/capture/layer_hooks.py
code served (permissive licence) · get_code("4e5ae62476589fd7")
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 Tensor, ndim 2, dtype family float, shape (2, 4) 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

torch.manual_seed(0)

# Test case 1: Direct tensor input
tensor_output = torch.randn(2, 4)

# Test case 2: Tuple containing a tensor
tuple_output = (torch.randn(2, 4), torch.randn(3, 5))

# Test case 3: List containing a tensor
list_output = [torch.randn(2, 4), torch.randn(3, 5)]

# Test case 4: Object with last_hidden_state attribute
class MockHiddenStateOutput:
    def __init__(self):
        self.last_hidden_state = torch.randn(2, 4)

hidden_state_output = MockHiddenStateOutput()

# Use the direct tensor for the ARGS
ARGS = {
    "output": tensor_output
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
torch_dtype_from_name Ran
ran; our contract draft was wrong, not the code
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/capture/model_loading.py
code served (permissive licence) · get_code("0a3cd5591063c46e")
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 dtype. 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 torch

def torch_dtype_from_name(name: str) -> None:
    """Setup code for torch_dtype_from_name function."""
    pass

# The function only takes a string parameter 'name'
# It doesn't use any complex objects, just processes the string
ARGS = {
    'name': 'float32'
}
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 dtype — a dtype output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dtype 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_yaml Not yet run
unverified (harvested, no recorded run)
StartLuxLabs/Massive-Activations-HLA/src/massive_activations_hla/config.py
code served (permissive licence) · get_code("01de090b986f48d3")
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

Hybrid linear attention large language models (HLA LLMs) combine the efficiency of linear attention with the modeling capacity of full attention, yet how layerwise hybridization reshapes their internal activation dynamics remains poorly understood. Massive activations (MAs), whose emergence and cross-layer evolution are closely coupled to the underlying attention mechanisms, offer an informative lens into these dynamics. We present the first systematic study of MAs in layer-interleaved HLA LLMs and uncover two architecture-aligned morphologies: MAs consistently spike immediately before full attention layers, forming pre-attention spikes (PAS), and can persist through intervening linear attention layers, giving rise to inter-spike plateaus (ISP). As full attention becomes denser, successive PAS become increasingly connected through ISP, ultimately recovering the stable MA morphology of full attention LLMs. We establish the recurrence of this organization across five linear attention architectures, six hybridization configurations, five data domains, and representative open-source hybrid models spanning 1.2B to 397B total parameters. Controlled pretraining of GDN-based hybrids at scales up to 1.3B shows that both morphologies emerge early and respond asymmetrically to output gating: full attention output gating strongly attenuates their absolute magnitudes without eliminating their layerwise organization, whereas removing GDN gates yields comparatively modest amplification. Mechanistically, our systematic-outlier analysis supports a shared lifecycle account governed by the timing of MA cancellation. PAS follows a localized write-sinkcancel process, while the extended persistence of ISP is consistent with delayed cancellation. At the full attention limit, this account recovers the stable MA morphology characteristic of full attention LLMs. Our code is available at https: //github.com/StartLuxLabs/Massive-Activations-HLA.

For agents

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

get_harvested_code_for_paper("2608.12149")
get_code_for_paper("2608.12149")
have("2608.12149")

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

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

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

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

Connect an agent — have() is free.