SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.10288 · 2026

Power law graph attention: exact generalization of scaled dot-product attention, empirical collapse at inference

Burc Gokden

arXiv · PDF

Code that ran

25 of 31 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; 6 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 16 failures of our instrument; 6 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.10288.json · badge: /api/ran/2608.10288.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
burcgokden/PLDR-LLM-Math-Foundations canonical (classifier label)
classifier basis: census
16 ran · 0 no recorded run
burcgokden/lm-evaluation-harness-with-PLDR-LLM community
Papers with Code archive
8 ran · 6 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
C_theta_of Ran
ran, honoured the contract we drafted
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_lib.py
code served (permissive licence) · get_code("2fc076006e58847d")
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 math

def C_theta_of(freqs):
    """Uniform twirl constant C_Theta = max_w 1/|sin(w/2)|."""
    return max((1 / abs(math.sin(w / 2)) for w in freqs.values()))

# The function expects 'freqs' to be a dict-like object with a .values() method
# that returns numeric values representing frequencies.
# We need to construct a dict with some frequency values.

freqs_dict = {
    'freq_1': 0.5,
    'freq_2': 1.2,
    'freq_3': 2.8,
    'freq_4': 0.3
}

ARGS = {
    'freqs': freqs_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 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
CacheHook Ran
ran on a synthesized input
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("6b18afe1c79bc27a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. 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 hashlib
import json

def hash_args(attr, args):
    dat = json.dumps([attr] + list(args))
    return hashlib.sha256(dat.encode('utf-8')).hexdigest()

class CacheHook:

    def __init__(self, cachinglm) -> None:
        if cachinglm is None:
            self.dbdict = None
            return
        self.dbdict = cachinglm.dbdict

    def add_partial(self, attr, req, res) -> None:
        if self.dbdict is None:
            return
        hsh = hash_args(attr, req)
        self.dbdict[hsh] = res


class MockCachingLM:
    def __init__(self):
        self.dbdict = {}


INIT_ARGS = {
    'cachinglm': MockCachingLM()
}

ARGS = {
    'attr': 'test_attr',
    'req': [1, 2, 3],
    'res': {'result': 'value'}
}

METHOD = 'add_partial'

if __name__ == '__main__':
    hook = CacheHook(**INIT_ARGS)
    hook.add_partial(**ARGS)
    print("CacheHook executed successfully")
    print(f"dbdict keys: {list(hook.dbdict.keys())}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Collator Ran
ran on a synthesized input
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("9dacd599f75004ed")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned generator. 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
from typing import List, Tuple, Optional, Literal, Union, Callable, Dict, Iterator, Any

class Collator:
    """
    A class for reordering and batching elements of an array.

    This class allows for sorting an array based on a provided sorting function, grouping elements based on a grouping function, and generating batches from the sorted and grouped data.

    Objects of this class have the group_by attribute which determines the method for grouping
    the data while batching it. Three options include "gen_kwargs", "contexts", or None:
        If group_by == "gen_kwargs" then requests will be grouped by gen_kwargs
        If group_by == "contexts" then requests will be grouped by context + cont[:-1]
        If None then requests will just be reordered by length descending.
    """

    def __init__(self, arr: List, sort_fn: Callable=lambda x: x, group_fn: Callable=lambda x: x[1], group_by: Union[Literal['gen_kwargs', 'contexts'], None]=None) -> None:
        self._group_by = group_by
        self._sort_fn = lambda x: sort_fn(x[1])
        self._group_fn = lambda x: group_fn(x[1])
        self._reorder_indices: List = []
        self._size = len(arr)
        self._arr_with_indices: Union[Dict, Tuple[Tuple[int, Any], ...]] = tuple(enumerate(arr))
        if self._group_by == 'contexts':
            self._group_by_context()
        elif self._group_by == 'gen_kwargs':
            self._group_by_index()

    def _group_by_index(self) -> None:
        """Group the elements of a list based on their indices."""
        self._arr_with_indices = self.group(self._arr_with_indices, fn=self._group_fn, group_by='gen_kwargs')

    def _group_by_context(self) -> None:
        """Group the array with indices by context."""
        self._arr_with_indices = self.group(self._arr_with_indices, fn=self._group_fn, group_by='contexts')

    def group(self, arr: Tuple, fn: Callable, group_by: str) -> Union[Dict, Tuple]:
        """Group array elements by a function."""
        if group_by == 'gen_kwargs':
            grouped = {}
            for idx, item in arr:
                key = fn((idx, item))
                if key not in grouped:
                    grouped[key] = []
                grouped[key].append((idx, item))
            return grouped
        return arr

    def _reorder(self, values: List) -> List:
        """Reorder values by sort function."""
        return sorted(values, key=self._sort_fn, reverse=True)

    def get_chunks(self, values: List, n: int=1, fn: Optional[Callable]=None) -> Iterator[List]:
        """Yield successive chunks of size n from values."""
        for i in range(0, len(values), n):
            yield values[i:i + n]

    def get_batched(self, n: int=1, batch_fn: Optional[Callable]=None) -> Iterator:
        """
        Generates and yields batches from the reordered array. The method of grouping and batching
        depends on the parameter `group_by`.
        If `group_by` is set to "gen_kwargs", it will batch the
        re-ordered values with same gen_kwargs for each batch.
        If `group_by` is "contexts", it caches the requests by context before batching.
        If `group_by` is neither "gen_kwargs" nor "contexts", it yields the reordered array

        Parameters:
        - n (int): The size of each batch. Defaults to 1.
        - batch_fn ([Callable[[int, Iterable], int]] | None): A function to determine the size of
          each batch. Optional, defaults to None.

        Returns:
        Iterator: An iterator over batches of reordered elements grouped as per the `group_by`
                  attribute.

        Yields:
        List of batched elements according to the `group_by` attribute.
        """
        if self._group_by == 'gen_kwargs':
            for key, values in self._arr_with_indices.items():
                values = self._reorder(values)
                batch = self.get_chunks(values, n=n, fn=batch_fn)
                yield from batch
        elif self._group_by == 'contexts':
            values = self._reorder([value[0] for value in self._arr_with_indices.values()])
            batch = self.get_chunks(values, n=n, fn=batch_fn)
            yield from batch
        else:
            values = self._reorder(self._arr_with_indices)
            batch = self.get_chunks(values, n=n, fn=batch_fn)
            yield from batch


INIT_ARGS = {
    'arr': [
        {'text': 'hello', 'length': 5},
        {'text': 'world', 'length': 3},
        {'text': 'test', 'length': 4},
    ],
    'sort_fn': lambda x: x.get('length', 0),
    'group_fn': lambda x: x.get('text', ''),
    'group_by': None,
}

ARGS = {
    'n': 2,
    'batch_fn': None,
}

METHOD = 'get_batched'

if __name__ == '__main__':
    collator = Collator(**INIT_ARGS)
    result = list(collator.get_batched(**ARGS))
    print("Batches:", result)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
block_input Ran
ran, violated the contract we drafted
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_online_lib.py
code served (permissive licence) · get_code("934f18dac35dc76a")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - ctx: used with len() and list() conversion, then concatenated with cont
# - cont: used with len() check, list() conversion, then concatenated with ctx
# Both appear to be sequences (lists, tuples, or array-like)
# The function returns full[:-1], so it needs indexing capability
# full is constructed as list(ctx) + list(cont)

# Create simple list-like objects for ctx and cont
ctx = [1, 2, 3]
cont = [4, 5]

ARGS = {
    "ctx": ctx,
    "cont": cont
}
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 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
chunks Ran
ran; our contract draft was wrong, not the code
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("222587ff95e2d189")
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) and returned generator. 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

torch.manual_seed(0)

# Test case 1: Simple list with fixed chunk size
iter_1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
n_1 = 3
fn_1 = None

# Test case 2: List with dynamic chunk size function
iter_2 = list(range(20))
n_2 = 0
def dynamic_chunk_fn(i, iter):
    # Return chunk size based on index
    return 4 if i < 8 else 5

fn_2 = dynamic_chunk_fn

# Test case 3: Using a generator
def gen():
    for i in range(15):
        yield i * 2

iter_3 = gen()
n_3 = 5
fn_3 = None

# Test case 4: Using numpy array
iter_4 = np.array([10, 20, 30, 40, 50, 60])
n_4 = 2
fn_4 = None

# Test case 5: Using torch tensor
iter_5 = torch.tensor([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0])
n_5 = 3
fn_5 = None

# Use the first test case as the primary ARGS
ARGS = {
    "iter": iter_1,
    "n": n_1,
    "fn": fn_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
create_look_ahead_mask Ran
ran, honoured the contract we drafted
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("8341c08d516199fe")
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) and returned EagerTensor, ndim 2, dtype family float, shape (4, 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 tensorflow as tf

ARGS = {
    "size": 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (4, 4) — shape (4, 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
create_masks Ran
ran, honoured the contract we drafted
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("6112a5d2c9d3e7b4")
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) and returned EagerTensor, ndim 4, dtype family float, shape (2, 1, 4, 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 tensorflow as tf
import numpy as np

# Create a small input tensor for the create_masks function
# Shape: [batch_size=2, seq_len=4]
# The function expects a tensor where 0 values represent padding
batch_size = 2
seq_len = 4

# Create input with some padding (0s represent padding tokens)
inp = tf.constant([
    [1, 2, 3, 0],      # batch 1: last token is padding
    [5, 6, 0, 0]       # batch 2: last two tokens are padding
], dtype=tf.int32)

ARGS = {
    "inp": inp
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 1, 4, 4) — shape (2, 1, 4, 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
create_padding_mask Ran
ran, honoured the contract we drafted
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("d15ced8abf730e0f")
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) and returned EagerTensor, ndim 4, dtype family float, shape (2, 1, 1, 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 tensorflow as tf
import numpy as np

# Create a small batch of sequences with padding (0s represent padding)
# Shape: [batch_size=2, seq_len=4]
seq = tf.constant([
    [1, 2, 3, 0],
    [5, 0, 0, 0]
], dtype=tf.int32)

ARGS = {
    "seq": seq
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 1, 1, 4) — shape (2, 1, 1, 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
encode_pair_split Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_seq_lib.py
code served (permissive licence) · get_code("8845c6e9ce544ca4")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - whole_enc: used with len(), indexing with [:n], [n:], and list()
# - context_enc: used with len() and list()
# Both appear to be sequences (lists or list-like)

# Create two encoded sequences (simulating tokenizer output)
# whole_enc should be longer than context_enc
# context_enc should be a prefix of whole_enc for a typical case

context_enc = [101, 2054, 2003]  # length 3
whole_enc = [101, 2054, 2003, 1045, 2572]  # length 5, starts with context_enc

ARGS = {
    "whole_enc": whole_enc,
    "context_enc": context_enc
}
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 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
final_logits Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_online.py
code served (permissive licence) · get_code("abc093434b942437")
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 1, dtype family float, shape (128,) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 os

# Set device to CPU only
os.environ['AUDIT_ONLINE_DEVICE'] = 'cpu'

torch.manual_seed(0)

# Build a minimal model that satisfies the function's usage
class MinimalLanguageModel(nn.Module):
    def __init__(self, vocab_size=128, hidden_size=4):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_size)
        self.lm_head = nn.Linear(hidden_size, vocab_size)
    
    def forward(self, input_ids, attention_mask=None, use_cache=False, output_pldr_attentions=False, return_dict=False):
        # input_ids shape: [batch_size, seq_len]
        x = self.embedding(input_ids)  # [batch_size, seq_len, hidden_size]
        logits = self.lm_head(x)  # [batch_size, seq_len, vocab_size]
        
        # Return a dict-like object with logits attribute
        class Output:
            def __init__(self, logits_tensor):
                self.logits = logits_tensor
        
        return Output(logits)

model = MinimalLanguageModel(vocab_size=128, hidden_size=4)
model.eval()

# Create sample token ids (small sequence)
ids = [1, 2, 3, 4, 5]

ARGS = {
    'model': model,
    'ids': ids
}
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 ndarray, ndim 1, dtype family float, shape (128,) — shape (128,) 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
final_logprob Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_seq.py
code served (permissive licence) · get_code("3b3ff17531f14497")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np
import os

# Set CPU-only device
os.environ['AUDIT_SEQ_DEVICE'] = 'cpu'

torch.manual_seed(0)

# Create a minimal model that satisfies the function's usage
class MinimalLanguageModel(nn.Module):
    def __init__(self, vocab_size=10, hidden_dim=4):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.lm_head = nn.Linear(hidden_dim, vocab_size)
        self.vocab_size = vocab_size
    
    def forward(self, input_ids, attention_mask, use_cache=False, return_dict=True):
        # input_ids shape: (batch_size, seq_len)
        x = self.embedding(input_ids)  # (batch_size, seq_len, hidden_dim)
        logits = self.lm_head(x)  # (batch_size, seq_len, vocab_size)
        
        if return_dict:
            class Output:
                def __init__(self, logits):
                    self.logits = logits
            return Output(logits)
        return logits

model = MinimalLanguageModel(vocab_size=10, hidden_dim=4)
model.eval()

# Create test arguments
ids = [2, 5, 3]  # sequence of token ids
target = 7  # target token id to compute log probability for

ARGS = {
    'model': model,
    'ids': ids,
    'target': target
}
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
forward Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_online.py
code served (permissive licence) · get_code("01eade9225d5e9f6")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import os

torch.manual_seed(0)

# Set device to CPU only for testing
os.environ['AUDIT_ONLINE_DEVICE'] = 'cpu'

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(100, 8)
        self.linear = nn.Linear(8, 4)
    
    def forward(self, input_ids, attention_mask, use_cache=False, output_pldr_attentions=False, return_dict=False):
        # Minimal implementation that accepts all the parameters used in forward()
        embedded = self.embedding(input_ids)
        pooled = embedded.mean(dim=1)
        output = self.linear(pooled)
        
        if return_dict:
            return {'logits': output}
        return output

model = MockModel()

# Create sample ids and mask
ids = [5, 10, 15, 20]  # sequence of token ids
mask = [1, 1, 1, 1]    # attention mask

ARGS = {
    'model': model,
    'ids': ids,
    'mask': mask
}
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
forward_batch Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_online.py
code served (permissive licence) · get_code("e06da39a2100b537")
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 ModelOutput. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import numpy as np
import os

torch.manual_seed(0)

# Set device to CPU only
os.environ['AUDIT_ONLINE_DEVICE'] = 'cpu'

# Build a minimal model that accepts input_ids, attention_mask, use_cache, and return_dict
class MinimalLanguageModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(num_embeddings=100, embedding_dim=8)
        self.linear = nn.Linear(8, 10)
    
    def forward(self, input_ids, attention_mask, use_cache=False, return_dict=True):
        # input_ids: (batch_size, seq_len)
        embedded = self.embedding(input_ids)  # (batch_size, seq_len, 8)
        pooled = embedded.mean(dim=1)  # (batch_size, 8)
        logits = self.linear(pooled)  # (batch_size, 10)
        
        # Return a dict-like object with required fields
        class ModelOutput(dict):
            def __getattr__(self, key):
                return self[key]
        
        return ModelOutput({
            'logits': logits,
            'last_hidden_state': embedded,
        })

# Create model instance
model = MinimalLanguageModel()

# Create sample ids: batch_size=2, seq_len=4
# Each id should be in range [0, 100) to match embedding vocabulary
ids = [[5, 10, 15, 20], [3, 7, 12, 18]]

# mask is optional (None will be handled by default in forward_batch)
mask = None

ARGS = {
    'model': model,
    'ids': ids,
    'mask': mask,
}
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 ModelOutput — a ModelOutput 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
get_rolling_token_windows Ran
ran; our contract draft was wrong, not the code
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("b68ff110117d65e7")
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) and returned generator. 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)

# Construct arguments for get_rolling_token_windows
token_list = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
prefix_token = 1
max_seq_len = 5
context_len = 2

ARGS = {
    "token_list": token_list,
    "prefix_token": prefix_token,
    "max_seq_len": max_seq_len,
    "context_len": context_len,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
hash_args Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from mansicer/Q-Adapter
pointer only · get_code("20a7cc804eb22661")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_disjoint_window Ran
ran; our contract draft was wrong, not the code
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("4df9168e0a0c38eb")
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) 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 torch
import numpy as np

torch.manual_seed(0)

# The function takes a pair (a, b) where both a and b are sequences
# It slices a to remove the last (len(b) - 1) elements
# Both a and b should support len() and slicing operations
# Lists work perfectly for this

a = [1, 2, 3, 4, 5, 6, 7, 8]  # Context window
b = [9, 10, 11]  # Continuation window

pair = (a, b)

ARGS = {
    "pair": pair
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — 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
mk_ln1_hook Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit.py
code served (permissive licence) · get_code("6f36d76788c2a0a6")
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 function. 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)

# The function mk_ln1_hook takes a parameter 'li' (layer index)
# and returns a hook function that captures activations.
# The hook function receives (mod, args) where args[0] is a tensor
# that gets detached and stored in the capt dict.

# li should be an integer representing a layer index
li = 0

ARGS = {
    'li': li
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
mk_plga_hook Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit.py
code served (permissive licence) · get_code("cc17651b80f85f8d")
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 function. 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)

# The function mk_plga_hook takes a parameter 'li' (likely a layer index)
# and returns a hook function. The hook captures QKV tensors from attention modules.
# The parameter 'li' is used as a key in the nested dict structure.
# Since 'li' is just used as a dictionary key, it should be an integer or similar hashable type.

ARGS = {
    'li': 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
mult Ran
ran, honoured the contract we drafted
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_lib.py
code served (permissive licence) · get_code("29319f289c78a110")
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 math

# The function mult takes two parameters: w and S
# w: a frequency (float or numeric value)
# S: a length parameter (int or numeric value)
# The function performs mathematical operations: sin, division, absolute value
# No torch or complex objects needed - just simple numeric types

ARGS = {
    "w": 0.5,      # frequency component, a float value
    "S": 3         # length parameter, an integer
}
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 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
npy Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit.py
code served (permissive licence) · get_code("bcf87f6fe770689d")
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 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)

# The function `npy` takes a single parameter `t` and calls:
# - t.detach() - detaches from computation graph
# - .cpu() - moves to CPU
# - .numpy() - converts to numpy array
# So `t` must be a torch tensor

t = torch.randn(2, 4)

ARGS = {
    "t": t
}
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 ndarray, 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
rope_rotation Ran
ran, honoured the contract we drafted
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_lib.py
code served (permissive licence) · get_code("5215f7dc959efad1")
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 2, dtype family float, shape (64, 64) 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 math
import numpy as np

DK = 64

THETA = [10000.0 ** (-2 * a / DK) for a in range(DK // 2)]

def rope_rotation(n):
    """The DK x DK RoPE rotation matrix R_n at position n (interleaved
    pairs, plane a rotated by n*theta_a)."""
    R = np.zeros((DK, DK))
    for a in range(DK // 2):
        c, s = (math.cos(n * THETA[a]), math.sin(n * THETA[a]))
        R[2 * a, 2 * a] = c
        R[2 * a, 2 * a + 1] = -s
        R[2 * a + 1, 2 * a] = s
        R[2 * a + 1, 2 * a + 1] = c
    return R

ARGS = {
    "n": 5
}
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 2, dtype family float, shape (64, 64) — shape (64, 64) 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
seq_prefix Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_online_lib.py
code served (permissive licence) · get_code("d2ee438b0fb9ed70")
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 torch

torch.manual_seed(0)

# The function seq_prefix takes:
# - ctx: a sequence-like object (used with list(ctx))
# - cont: a sequence-like object (used with list(cont[:i]) and len(cont))
# - i: an integer index

# Simple list-based arguments
ctx = [1, 2, 3]
cont = [4, 5, 6, 7]
i = 2

ARGS = {
    'ctx': ctx,
    'cont': cont,
    'i': i
}
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 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
sha256_file Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_online_lib.py
code served (permissive licence) · get_code("cd09bc0035d76c74")
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 tempfile
import os

# Create a temporary file with some content for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_file.bin")

with open(temp_file, 'wb') as f:
    f.write(b"Hello, World! This is test content for sha256 hashing.")

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 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
shift_trailing_space Ran
ran; our contract draft was wrong, not the code
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_seq_lib.py
code served (permissive licence) · get_code("7c4ba8a8cd0b14d2")
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 torch

torch.manual_seed(0)

# The function takes two string parameters: context and continuation
# It strips trailing whitespace from context and prepends it to continuation
# Both parameters are strings

ARGS = {
    "context": "hello world   ",
    "continuation": "test"
}
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 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
split_continuation_tokens Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
burcgokden/PLDR-LLM-Math-Foundations/audit/audit_seq_lib.py
code served (permissive licence) · get_code("333d19860878a402")
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 torch

torch.manual_seed(0)

# The function takes two parameters:
# - whole_enc: should be a sequence (list or similar) of token ids
# - context_enc: should be a sequence (list or similar) of token ids that is a prefix of whole_enc

# Create valid token id sequences
context_tokens = [101, 2054, 2003]  # 3 tokens
continuation_tokens = [1045, 2572]  # 2 more tokens
whole_tokens = context_tokens + continuation_tokens  # concatenate to create prefix relationship

ARGS = {
    'whole_enc': whole_tokens,
    'context_enc': context_tokens,
}
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 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
Instance Not yet run
unverified (harvested, no recorded run)
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("adb6b7194eb0be02")
How it ran

no invocation recorded.

LM Not yet run
unverified (harvested, no recorded run)
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("ffb69af0d7083180")
How it ran

no invocation recorded.

pldrllm Not yet run
unverified (harvested, no recorded run)
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("ee1889bca63802b9")
How it ran

no invocation recorded.

register_model Not yet run
unverified (harvested, no recorded run)
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("d5ad2bdbe66d6986")
How it ran

no invocation recorded.

top_k_logits Not yet run
unverified (harvested, no recorded run)
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("d45ec14e4fa4dd35")
How it ran

no invocation recorded.

top_p_logits Not yet run
unverified (harvested, no recorded run)
burcgokden/lm-evaluation-harness-with-PLDR-LLM/lm_eval/models/pldrllm.py
code served (permissive licence) · get_code("8110b89018ed3fcc")
How it ran

no invocation recorded.

Also present in other papers' code

Of 31 samples lifted from this paper's linked repositories, 31 carry a function identity and 0 do not. Of the 31 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 0 later) and 26 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.

FunctionAlso present inEarliest-datedOthers named
hash_args
brick of this paper's assembly: helper
44 other papers
42 dated earlier, 1 the same month, 1 undated
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
and 41 more not named here
make_disjoint_window
brick of this paper's assembly: helper
10 other papers
10 dated earlier
2304.01089 (2023-04)
RPTQ: Reorder-based Post-training Quantization for Large Language Models
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2310.08041 (2023-10)
QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
and 7 more not named here
create_padding_mask
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2205.13571 (2022-05)
Low-rank lottery tickets: finding efficient low-rank neural networks via matrix differential equations
top_k_logits
brick of this paper's assembly: sampler
1 other paper
1 dated earlier
2601.10926 (2026-01)
Selecting Language Models for Social Science: Start Small, Start Open, and Validate Preprint XX(X):1-22 ©The Author(s) 2026
top_p_logits
brick of this paper's assembly: sampler
1 other paper
1 dated earlier
2601.10926 (2026-01)
Selecting Language Models for Social Science: Start Small, Start Open, and Validate Preprint XX(X):1-22 ©The Author(s) 2026

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

The Large Language Model from Power Law Decoder Representations (PLDR-LLM) and its attention, Power Law Graph Attention (PLGA), replace the fixed bilinear form of scaled dot-product attention (SDPA) with a learned, input-generated bilinear operator G LM , built from a positive tensor A LM by elementwise power laws. The architecture is fully specified, verified against pinned reference releases; claims are labeled theorem, conditional theorem, measurement, or conjecture. Unconditionally: PLGA contains SDPA exactly at G LM = I; A LM and AP are strictly entrywise positive, with Perron-Frobenius structure on A LM ; the DAG regularizer has the NOTEARS walk-counting form and positivity obstructs exact acyclicity; and, under nonresonance (satisfied by standard rotary frequencies), a commutant criterion identifies which operators preserve relative-position dependence. An inference-collapse theorem: exact input invariance of deductive outputs collapses inference to generalized SDPA with a constant operator. Measured invariance: relative fluctuations of 10 -6 and below; perturbation bounds quantify but do not certify cached inference; the assembled proxy misses the decoding margin. A conditional three-stage mechanism (rotary twirl, concentration, row-map contraction) is measured on a released checkpoint. Blockwise training and scoring under the global Gram are stated with explicit target exposure; on tested samples, block and sequential scoring select identical answers and agree on the published TruthfulQA probability-mass metric within 5 × 10 -5 per item. Selforganized criticality enters as a phenomenological framework with an intrinsic order parameter; open claims become falsifiable conjectures. Selected proof cores are machine-checked in Lean 4.

For agents

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

get_harvested_code_for_paper("2608.10288")
get_code_for_paper("2608.10288")
have("2608.10288")

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

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

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

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

Connect an agent — have() is free.