SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.00909 · 2026

FinHardBench: Can LLMs Generate Latency-Aware Hardware for Financial Computing?

Ramesh Karri, Minghao Shao, Muhammad Shafique, Hejia Zhang, Xiaolong Guo, Weimin Fu, Zeng Wang, Johann Knechtel, Ozgur Sinanoglu

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 6 failures of our instrument; 3 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.00909.json · badge: /api/ran/2608.00909.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
owenfucell/FinHardBench community
Papers with Code archive
8 ran · 3 no recorded run
FunctionStatusWhere it lives
ResultCache Ran
ran on a synthesized input
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("776623531a3c42fb")
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 os
import json
import tempfile
from pathlib import Path

# Create a temporary directory for the cache
temp_dir = tempfile.mkdtemp()
cache_path = os.path.join(temp_dir, 'eval_cache.json')

INIT_ARGS = {
    'path': cache_path
}

ARGS = {
    'key': 'test_result_1',
    'value': {'accuracy': 0.95, 'latency': 12.5}
}

METHOD = 'put'

# Import the class
import sys
sys.path.insert(0, temp_dir)

# Define the class locally since we can't import from the actual module
class ResultCache:
    """Simple JSON file cache for FPGA evaluation results."""

    def __init__(self, path=None):
        self.path = path or os.path.join(temp_dir, 'eval_cache.json')
        os.makedirs(os.path.dirname(self.path), exist_ok=True)
        if os.path.isfile(self.path):
            with open(self.path) as f:
                self.data = json.load(f)
        else:
            self.data = {}

    def get(self, key):
        return self.data.get(key)

    def put(self, key, value):
        self.data[key] = value
        self._save()

    def _save(self):
        with open(self.path, 'w') as f:
            json.dump(self.data, f, indent=2)


# Construct and call
instance = ResultCache(**INIT_ARGS)
result = getattr(instance, METHOD)(**ARGS)

# Verify the cache was written
assert instance.get('test_result_1') == {'accuracy': 0.95, 'latency': 12.5}
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)
_cache_key Ran
ran; our contract draft was wrong, not the code
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("ce512f30718104f5")
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

def _cache_key(stage, config_name):
    return '{}__{}'.format(stage, config_name)

torch.manual_seed(0)

stage = "training"
config_name = "base_config"

ARGS = {
    "stage": stage,
    "config_name": config_name,
}
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 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
compute_system_metrics Ran
ran; our contract draft was wrong, not the code
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("98f45e4b70684ae9")
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 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
import numpy as np

PIPELINE_STAGES = ['S0_UDP_RX', 'S1_FAST_DEC', 'S2_ORDER_BOOK', 'S3_STRATEGY', 'S4_RISK_CHK', 'S5_MATCH']

# Construct stage_results dict with all required stages
stage_results = {
    'S0_UDP_RX': {
        'ok': True,
        'fmax_mhz': 500.0,
        'lc_used': 1200,
        'pipeline_stages': 2
    },
    'S1_FAST_DEC': {
        'ok': True,
        'fmax_mhz': 450.0,
        'lc_used': 1500,
        'pipeline_stages': 3
    },
    'S2_ORDER_BOOK': {
        'ok': True,
        'fmax_mhz': 600.0,
        'lc_used': 2000,
        'pipeline_stages': 2
    },
    'S3_STRATEGY': {
        'ok': True,
        'fmax_mhz': 550.0,
        'lc_used': 1800,
        'pipeline_stages': 4
    },
    'S4_RISK_CHK': {
        'ok': True,
        'fmax_mhz': 480.0,
        'lc_used': 900,
        'pipeline_stages': 1
    },
    'S5_MATCH': {
        'ok': True,
        'fmax_mhz': 520.0,
        'lc_used': 1100,
        'pipeline_stages': 2
    }
}

ARGS = {
    'stage_results': stage_results
}
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 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
eval_verilog_fpga Ran
ran; our contract draft was wrong, not the code
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("79d28a24f454aac1")
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 tempfile

# Create a temporary working directory
work_dir = tempfile.mkdtemp()

# Create simple valid Verilog code for a basic counter module
verilog_code = """
module counter (
    input clk,
    input rst,
    output [7:0] count
);
    reg [7:0] count_reg;
    
    assign count = count_reg;
    
    always @(posedge clk) begin
        if (rst)
            count_reg <= 8'b0;
        else
            count_reg <= count_reg + 1'b1;
    end
endmodule
"""

top_module = "counter"

ARGS = {
    'verilog_code': verilog_code,
    'top_module': top_module,
    'work_dir': work_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 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
get_pipeline_stages Ran
ran, honoured the contract we drafted
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("ca87577f183662d4")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# The function get_pipeline_stages takes two parameters:
# 1. stage: a string representing a pipeline stage
# 2. config_name: a string representing a configuration name

# Looking at the function body, it simply looks up a tuple (stage, config_name)
# in the overrides dictionary and returns the corresponding value, or 1 as default.
# No complex objects or models are needed.

ARGS = {
    'stage': 'S0_UDP_RX',
    'config_name': 'narrow'
}
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 int, ndim 0, dtype family int, 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
get_top_module Ran
ran; our contract draft was wrong, not the code
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("9e75638f12ad3be6")
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 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 torch.nn as nn

torch.manual_seed(0)

# The function get_top_module takes two parameters:
# 1. stage: a string representing a stage name
# 2. config_name: a string representing a config name (default='')

# Looking at the function body, it simply does string comparisons and lookups.
# No complex objects are needed - just strings.

ARGS = {
    'stage': 'S1_FAST_DEC',
    'config_name': ''
}
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 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
parse_knob_response Ran
ran; our contract draft was wrong, not the code
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("c015bf2eb354693d")
How it ran

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

import json
import re
import torch
import numpy as np

torch.manual_seed(0)

# The function parse_knob_response takes two parameters:
# 1. response: a string containing LLM response with JSON
# 2. available_configs: a dict mapping stage names to dicts of valid config names

# Create a valid response string with embedded JSON
response = """
The model configuration should be:
{
  "stage_1": "config_a",
  "stage_2": "config_b"
}
This is the recommended setup.
"""

# Create available_configs dict with nested structure
available_configs = {
    "stage_1": {
        "config_a": True,
        "config_c": True,
        "config_d": True
    },
    "stage_2": {
        "config_b": True,
        "config_e": True
    },
    "stage_3": {
        "config_x": True,
        "config_y": True
    }
}

ARGS = {
    "response": response,
    "available_configs": available_configs
}
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 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
run_cmd Ran
ran; our contract draft was wrong, not the code
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("9f13417811c6ffad")
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, 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 os
import subprocess

# The function run_cmd executes a shell command and returns (returncode, stdout, stderr)
# It takes:
# - cmd: a command to run (string or list)
# - timeout: timeout in seconds (default 120)

# Construct valid arguments
ARGS = {
    'cmd': ['echo', 'hello world'],
    'timeout': 120
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
eval_verilog_file Not yet run
unverified (harvested, no recorded run)
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("a1d7f8b7d30b69d1")
How it ran

no invocation recorded.

find_stage_verilog Not yet run
unverified (harvested, no recorded run)
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("b56b29a288faad7f")
How it ran

no invocation recorded.

run_knob_experiment Not yet run
unverified (harvested, no recorded run)
owenfucell/FinHardBench/system/experiment_driver.py
code served (permissive licence) · get_code("7e6c2fe349fa5187")
How it ran

no invocation recorded.

Also present in other papers' code

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

Can large language models generate not just correct, but fast hardware? This paper investigates the question in financial FPGA design, where 5-10 nanoseconds of latency determines competitive advantage and designs iterate continuously as protocols, strategies, and regulations evolve. Fin-HardBench, a benchmark of 33 financial computing tasks, is presented together with three experiments that mirror the real-world FPGA iteration cycle: generating new modules from specifications, tuning system-level configurations across a 6-stage trading pipeline, and adapting existing modules to specification changes. Evaluation of six LLMs on 1530+ experiment rounds yields three findings: (1) models achieve 19-61% functional correctness with timing degradation up to 13.7× on specific tasks; (2) in system-level design space exploration, top LLMs converge to the optimal configuration with higher reliability than random search, simulated annealing, and Bayesian optimization baselines (5/5 seeds vs. 0-4/5 at the same 24-round budget); (3) strategy-level specification changes remain unsolved for most models. Across the six models, generation and DSE rankings overlap moderately: the strongest code generator is not the fastest architecture optimizer, and the weakest code generator (MiniMax M2.7) still reaches the system optimum on 4 of 5 seeds. On the tasks in FinHardBench, difficulty tracks training data pattern availability more closely than abstraction level. FinHardBench is released as an open-source benchmark.

For agents

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

get_harvested_code_for_paper("2608.00909")
get_code_for_paper("2608.00909")
have("2608.00909")

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

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

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

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

Connect an agent — have() is free.