SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.12286 · September 2026

T-GADE: Thermodynamical Generative-AI-Driven Evolution of LLM Artifacts

Naoki Mori, Kyoko Ogawa

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 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/2609.12286.json · badge: /api/ran/2609.12286.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
o-ankomochi-o/T-GADE canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
attempt_pool Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
o-ankomochi-o/T-GADE/src/grant_evo/bench/diagnostics.py
code served (permissive licence) · get_code("2a84d3b1e9e67a2e")
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 random
import numpy as np

# Mock the grant_evo module structure
class MockModule:
    pass

import sys
sys.modules['grant_evo'] = MockModule()
sys.modules['grant_evo.tgade'] = MockModule()
sys.modules['grant_evo.tgade.engine'] = MockModule()

# Define the engine functions that are imported
def loci_canonical_digest(view_result):
    """Mock digest function"""
    return "digest_" + str(hash(str(view_result)))[:8]

def viability(adapter, genes):
    """Mock viability check - returns (ok, kind, why, energy, div)"""
    if genes is None:
        return (False, 'operator_failure', 'genes is None', None, None)
    # Return success case
    return (True, 'ok', 'passed', 42.5, [1.0, 2.0, 3.0])

# Inject mocked functions into the module
sys.modules['grant_evo.tgade.engine'].loci_canonical_digest = loci_canonical_digest
sys.modules['grant_evo.tgade.engine'].viability = viability

# Define mock adapter
class MockAdapter:
    def __init__(self):
        self.loci_view = lambda genes: {"view": genes}
    
    def init_genes(self, rng, llm):
        """Return mock genes"""
        return {"gene_data": [1, 2, 3, 4]}

# Define mock LLM
class MockLLM:
    def __init__(self):
        self.last_seq = "mock_sequence"
        self.last_response_sha256 = "abc123def456"

# Define mock sink function
def mock_sink(row):
    """Receives evidence rows"""
    pass

# Create instances
adapter = MockAdapter()
llm = MockLLM()
rng = random.Random(42)
attempts = 3
sink = mock_sink
phase = 'init'

ARGS = {
    'adapter': adapter,
    'llm': llm,
    'rng': rng,
    'attempts': attempts,
    'sink': sink,
    'phase': phase,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
grant_evo, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bank_digest Ran
ran; our contract draft was wrong, not the code
o-ankomochi-o/T-GADE/src/grant_evo/bench/multistart.py
code served (permissive licence) · get_code("c3204db97d3526c2")
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 hashlib

def _sha(b: bytes) -> str:
    return hashlib.sha256(b).hexdigest()

def bank_digest(digests) -> str:
    """Canonical bank identity: sha256 of newline-joined sorted digests
    (+ trailing newline). Identical construction in Python and Rust."""
    joined = chr(10).join(sorted(digests)) + chr(10)
    return _sha(joined.encode('utf-8'))

# Setup code
digests = [
    "abc123def456",
    "789xyz012uvw",
    "hello_world_hash",
    "another_digest_string"
]

ARGS = {
    "digests": digests
}
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
bank_from_result Ran
ran; our contract draft was wrong, not the code
o-ankomochi-o/T-GADE/src/grant_evo/bench/multistart.py
code served (permissive licence) · get_code("800097748a4475cc")
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 hashlib

def _sha(b: bytes) -> str:
    return hashlib.sha256(b).hexdigest()

def bank_digest(digests) -> str:
    """Canonical bank identity: sha256 of newline-joined sorted digests
    (+ trailing newline). Identical construction in Python and Rust."""
    joined = chr(10).join(sorted(digests)) + chr(10)
    return _sha(joined.encode('utf-8'))

# Construct valid arguments for bank_from_result

# Create digest strings (sha256 hex strings)
digest1 = hashlib.sha256(b"candidate_1").hexdigest()
digest2 = hashlib.sha256(b"candidate_2").hexdigest()
digest3 = hashlib.sha256(b"candidate_3").hexdigest()

# Create genotypes list to select from
genotypes = ["genotype_a", "genotype_b"]

# Create a result dict matching the expected structure
result = {
    '_genotypes': ["genotype_a", "genotype_b", "genotype_c"],
    'candidates': [
        {
            'digest': digest1,
            'origin': 'fresh',
            'energy': 0.5
        },
        {
            'digest': digest2,
            'origin': 'fresh',
            'energy': 0.3
        },
        {
            'digest': digest3,
            'origin': 'fresh',
            'energy': 0.7
        }
    ],
    'call_ledger_sha256': hashlib.sha256(b"ledger").hexdigest()
}

ARGS = {
    'result': result,
    'genotypes': genotypes
}
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
build_pool Ran
ran; our contract draft was wrong, not the code
o-ankomochi-o/T-GADE/src/grant_evo/bench/diagnostics.py
code served (permissive licence) · get_code("9b123ef54b1ca942")
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 random
import numpy as np

class StandInAdapter:
    """Minimal adapter implementing required methods."""
    
    def init_genes(self, rng: random.Random, llm):
        """Generate random genes."""
        return rng.randint(0, 100)
    
    def validate(self, genes):
        """Validate genes. Returns (bool, any)."""
        # Accept most genes, reject a few to test retry logic
        return (genes % 7 != 0, None)
    
    def energy(self, genes):
        """Return energy score or None."""
        if genes is None:
            return None
        return float(genes) * 0.5
    
    def diversity_matrix(self, genes):
        """Return diversity matrix or None."""
        if genes is None:
            return None
        return np.array([[genes * 0.1, genes * 0.2], [genes * 0.3, genes * 0.4]])

adapter = StandInAdapter()
llm = None
rng = random.Random(42)
n = 3
max_tries = 4

ARGS = {
    'adapter': adapter,
    'llm': llm,
    'rng': rng,
    'n': n,
    'max_tries': max_tries
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family 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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 4 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

Integrating evolutionary computation and large language models (LLMs) requires control of population diversity as well as generative capability. Among LLM outputs, those with explicit structure, such as a description paired with code, are structured artifacts; we use artifact for short. We propose T-GADE, which evolves these artifacts by extending thermodynamical genetic algorithms through LLM-based genetic operators and artifact-level diversity evaluation. A common free-energy objective supports generational and steady-state updates, with Fermi-type occupancy excluding repeated genotypes and Bosetype occupancy permitting them. We establish exact one-member removal and conditions for recovering the zero-temperature survival rule of Evolution of Heuristics (EoH). On the online binpacking task studied in the EoH paper, excess measures relative bin-count overhead above a volume lower bound. Training excess uses search instances; transfer excess uses instances with another bin capacity. Generational Bose-type T-GADE at T = 0.003 reduced median training excess by approximately 29%, from 1.152% to 0.815%, over 20 runs per configuration (two-sided Mann-Whitney p = 0.042, Cliff's δ = 0.378). Validation selection among its two highest-ranked final candidates reached the same median transfer excess as EoH, 0.496%. These results demonstrate the utility of thermodynamical selection and validationbased use of retained artifacts.

For agents

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

get_harvested_code_for_paper("2609.12286")
get_code_for_paper("2609.12286")
have("2609.12286")

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

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

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

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

Connect an agent — have() is free.