SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.01938 · 2023

Doc2SoarGraph: Discrete Reasoning over Visually-Rich Table-Text Documents via Semantic-Oriented Hierarchical Graphs

arXiv · PDF · Open in the Atlas

Code that ran

17 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 10 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2305.01938.json · badge: /api/ran/2305.01938.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
fengbinzhu/doc2soargraph canonical (classifier label)
classifier basis: census
17 ran · 2 no recorded run
FunctionStatusWhere it lives
create_logger Ran
ran; our contract draft was wrong, not the code
fengbinzhu/doc2soargraph/etr/model/sys_util.py
code served (permissive licence) · get_code("10844798fc58cc7d")
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 Logger. 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 logging
import sys
from time import gmtime, strftime
import tempfile
import os

# Create a temporary directory for log files
temp_dir = tempfile.mkdtemp()

ARGS = {
    'name': 'test_logger',
    'silent': False,
    'to_disk': True,
    'log_file': os.path.join(temp_dir, 'test.log')
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
extract_feature_from_image Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/etr/model/layout_model.py
code served (permissive licence) · get_code("e5ec43ad6ecbb2b9")
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 4, dtype family int, shape (1, 3, 224, 224) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from PIL import Image

# Create a small dummy image (RGB, 4x3 pixels for distinct dimensions)
image_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
dummy_image = Image.fromarray(image_array, mode='RGB')

ARGS = {
    'image': dummy_image,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family int, shape (1, 3, 224, 224) — shape (1, 3, 224, 224) 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
extract_gold_answers Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/tatqa_metric.py
code served (permissive licence) · get_code("3f39764e4b17918b")
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.

ARGS = {
    'qa_annotation': {
        'answer_type': 'span',
        'scale': '',
        'answer': ['Paris', 'France']
    }
}
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 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
extract_one_num_from_str Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/tatqa_utils.py
code served (permissive licence) · get_code("b591a51b9d4dd3bb")
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 re

EXCLUDE_IN_NUM = '\'"\\$€£¥%(),[]'

def _clean_num(text: str):
    return ''.join([ch for ch in str(text) if ch not in EXCLUDE_IN_NUM])

def extract_one_num_from_str(s):
    s = _clean_num(s)
    r_num = '([+-]?\\d+(\\.\\d+)?)|([+-]?\\.\\d+)'
    groups = re.findall(r_num, s)
    if len(groups) == 0:
        return None
    num = groups[0][0]
    if num == '':
        return None
    if '.' in num:
        return float(num)
    return int(num)

# The function takes a single parameter 's' which is a string
# It processes the string to extract one number from it
# We need to provide various test strings that contain numbers

ARGS = {
    "s": "The price is $123.45 dollars"
}
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
gelu Ran
ran, honoured the contract we drafted
fengbinzhu/doc2soargraph/etr/model/tree_model.py
pointer only (licence: MIT); the stored copy get_code serves, from rlqja1107/melt, is pointer only (licence: NONE) · get_code("56a9ab06b860b180")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from rlqja1107/melt, and GitHub detected no licence in that repository when it was checked. 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.

get_arithmetic_input Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/etr/model/model_doc2soar.py
code served (permissive licence) · get_code("4f6c175642bee7dc")
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)

# Based on the function, we need:
# - arithmetic_head_index: a list/array of boolean-like values to filter by
# - copy_nums: a list that will be indexed
# - table_num_pos: a list that will be indexed
# - para_num_pos: a list that will be indexed
# - out_seq: a list that will be indexed
# - out_len: a list that will be indexed

# The function iterates through arithmetic_head_index with enumerate,
# and uses the index i to access elements from the other lists.
# It filters based on truthiness of v in arithmetic_head_index.

arithmetic_head_index = [True, False, True, False]

copy_nums = [
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9],
    [10, 11, 12]
]

table_num_pos = [
    [0, 1],
    [1, 2],
    [2, 3],
    [3, 4]
]

para_num_pos = [
    [5, 6, 7],
    [8, 9, 10],
    [11, 12, 13],
    [14, 15, 16]
]

out_seq = [
    torch.tensor([1, 2, 3, 4]),
    torch.tensor([5, 6, 7, 8]),
    torch.tensor([9, 10, 11, 12]),
    torch.tensor([13, 14, 15, 16])
]

out_len = [4, 4, 4, 4]

ARGS = {
    "arithmetic_head_index": arithmetic_head_index,
    "copy_nums": copy_nums,
    "table_num_pos": table_num_pos,
    "para_num_pos": para_num_pos,
    "out_seq": out_seq,
    "out_len": out_len
}
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
is_remote_url Ran
ran, violated the contract we drafted
fengbinzhu/doc2soargraph/etr/model/file_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from vis-nlp/ChartQA, is pointer only (licence: GPL-3.0) · get_code("899d1e2736236351")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from vis-nlp/ChartQA, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

masked_cross_entropy Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/etr/model/tree_model.py
code served (permissive licence) · get_code("06efa6795b7a9514")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 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

torch.manual_seed(0)

# Construct tiny tensors for testing
batch_size = 2
max_len = 5
num_classes = 4

# logits: (batch, max_len, num_classes)
logits = torch.randn(batch_size, max_len, num_classes)

# target: (batch, max_len) with class indices
target = torch.randint(0, num_classes, (batch_size, max_len))

# length: list or tensor of sequence lengths for each batch element
length = [3, 4]  # First sequence has length 3, second has length 4

ARGS = {
    "logits": logits,
    "target": target,
    "length": length,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 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
metric_max_over_ground_truths Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/tatqa_metric.py
code served (permissive licence) · get_code("03692148eacb9928")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

def simple_metric_fn(pred, ground_truth):
    """Simple metric function that computes similarity between pred and ground_truth."""
    if isinstance(pred, torch.Tensor) and isinstance(ground_truth, torch.Tensor):
        return float(torch.nn.functional.cosine_similarity(pred.unsqueeze(0), ground_truth.unsqueeze(0)).item())
    return 0.5

predictions = [
    torch.randn(4),
    torch.randn(4),
]

ground_truths = [
    torch.randn(4),
    torch.randn(4),
    torch.randn(4),
]

ARGS = {
    "metric_fn": simple_metric_fn,
    "predictions": predictions,
    "ground_truths": ground_truths,
}
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
normalize_bbox Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/etr/model/layout_model.py
code served (permissive licence) · get_code("b97f0283fababae5")
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 normalize_bbox takes:
# - bbox: a sequence with 4 numeric elements (indices 0, 1, 2, 3)
# - width: a numeric value for division
# - height: a numeric value for division

ARGS = {
    "bbox": [100, 200, 300, 400],
    "width": 1000,
    "height": 800
}
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
replace_return_docstrings Ran
ran; our contract draft was wrong, not the code
fengbinzhu/doc2soargraph/etr/model/file_utils.py
code served (permissive licence) · get_code("2cd9135e83a62a04")
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
from typing import Optional

# Create a minimal output type class with docstring
class MockOutput:
    """
    Base class for model outputs.
    
    Args:
        loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` is provided):
            Language modeling loss (for next-token prediction).
        logits (`torch.FloatTensor` of shape `(batch_size, sequence_length, config.vocab_size)`):
            Prediction scores of the language modeling head.
    """
    def __init__(self, loss=None, logits=None):
        self.loss = loss
        self.logits = logits


class TFMockOutput:
    """
    Base class for TensorFlow model outputs.
    
    Args:
        loss (`tf.Tensor` of shape `(1,)`, *optional*, returned when `labels` is provided):
            Language modeling loss (for next-token prediction).
        logits (`tf.Tensor` of shape `(batch_size, sequence_length, config.vocab_size)`):
            Prediction scores of the language modeling head.
    """
    def __init__(self, loss=None, logits=None):
        self.loss = loss
        self.logits = logits


# Create a test function with Returns: placeholder
def sample_forward_function(x):
    """
    Forward pass of the model.
    
    Args:
        x: Input tensor
    
    Returns:
        Model output
    """
    return x


# Create config class name string
config_class_name = "BertConfig"

# Create output type that has proper __doc__, __module__, and __name__
MockOutput.__module__ = "transformers.models.bert.modeling_bert"
MockOutput.__name__ = "BaseModelOutput"

ARGS = {
    "output_type": MockOutput,
    "config_class": config_class_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 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
scale_to_num Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/tatqa_utils.py
code served (permissive licence) · get_code("71b0d5b420628a19")
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 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

ARGS = {
    'scale': 'hundred'
}
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 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
sequence_mask Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/etr/model/tree_model.py
code served (permissive licence) · get_code("aa9d285348e69a1a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 5) 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

torch.manual_seed(0)

# sequence_mask expects:
# - sequence_length: a tensor with .data, .size(0), .is_cuda, .unsqueeze(), .expand_as()
# - max_len: optional int or None

# Create a batch of sequence lengths
# batch_size = 2, each element is a sequence length
sequence_length = torch.tensor([3, 5], dtype=torch.long)

ARGS = {
    "sequence_length": sequence_length,
    "max_len": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 5) — shape (2, 5) 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
simple_extract_one_num_from_str Ran
ran on a synthesized input
fengbinzhu/doc2soargraph/tatqa_utils.py
code served (permissive licence) · get_code("8550db0b2a901b9c")
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 re

EXCLUDE_IN_NUM = '\'"\\$€£¥%(),[]'

def _clean_num(text: str):
    return ''.join([ch for ch in str(text) if ch not in EXCLUDE_IN_NUM])

def simple_extract_one_num_from_str(s):
    s = _clean_num(s)
    r_num = '(\\d+(\\.\\d+)?)|(\\.\\d+)'
    groups = re.findall(r_num, s)
    if len(groups) == 0:
        return None
    num = groups[0][0]
    if num == '':
        return None
    if '.' in num:
        return float(num)
    return int(num)

# Test cases with various string inputs
ARGS = {
    "s": "The price is $42.50 and tax is 10%"
}
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
torch_only_method Ran
ran; our contract draft was wrong, not the code
fengbinzhu/doc2soargraph/etr/model/file_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from miccunifi/ScanTalk, is pointer only (licence: NOASSERTION) · get_code("56ffa4b32330ceab")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from miccunifi/ScanTalk, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

warmup_constant Ran
ran, honoured the contract we drafted
fengbinzhu/doc2soargraph/etr/model/optimizer.py
pointer only (licence: MIT); the stored copy get_code serves, from Yueeeeeeee/Self-Supervised-QA, is pointer only (licence: NONE) · get_code("e7d542062316094a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Yueeeeeeee/Self-Supervised-QA, and GitHub detected no licence in that repository when it was checked. 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.

warmup_linear Ran
ran, honoured the contract we drafted
fengbinzhu/doc2soargraph/etr/model/optimizer.py
code served (permissive licence) · get_code("c58d57224530d17e")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function warmup_linear takes two parameters:
# - x: a numeric value (float) representing a position/step in training
# - warmup: a float representing the warmup threshold (default 0.002)
# 
# The function uses x and warmup in simple arithmetic comparisons and operations,
# so we just need numeric values.

ARGS = {
    "x": 0.001,
    "warmup": 0.002
}
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 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
get_logger Not yet run
unverified (harvested, no recorded run)
fengbinzhu/doc2soargraph/etr/log.py
code served (permissive licence) · get_code("85bc6fd421c42e7c")
How it ran

no invocation recorded.

warmup_cosine Not yet run
unverified (harvested, no recorded run)
fengbinzhu/doc2soargraph/etr/model/optimizer.py
pointer only (licence: MIT); the stored copy get_code serves, from Yueeeeeeee/Self-Supervised-QA, is pointer only (licence: NONE) · get_code("35f7cddf90dd05d4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Yueeeeeeee/Self-Supervised-QA, and GitHub detected no licence in that repository when it was checked. 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. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 2 the same month, 7 later) and 7 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
gelu 198 other papers
139 dated earlier, 7 the same month, 51 later, 1 same year, order not determinable · 32 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.10125 (2019-01)
Glyce: Glyph-vectors for Chinese Character Representations
and 195 more not named here
warmup_constant 28 other papers
22 dated earlier, 1 the same month, 5 later
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1903.09588 (2019-03)
Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence
1906.01698 (2019-06)
Open Sesame: Getting Inside BERT's Linguistic Knowledge
and 25 more not named here
warmup_linear 19 other papers
19 dated earlier
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1803.03376 (2018-03)
Learning Approximate Inference Networks for Structured Prediction
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 16 more not named here
warmup_cosine 17 other papers
16 dated earlier, 1 later
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1903.09588 (2019-03)
Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence
1906.01698 (2019-06)
Open Sesame: Getting Inside BERT's Linguistic Knowledge
and 14 more not named here
is_remote_url 14 other papers
9 dated earlier, 5 later
1905.00641 (2019-05)
RetinaFace: Single-stage Dense Face Localisation in the Wild
1910.13461 (2019-10)
BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
and 11 more not named here
get_logger 12 other papers
1 dated earlier, 11 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2406.05478 (2024-06)
Revisiting Non-Autoregressive Transformers for Efficient Image Synthesis
2410.01679 (2024-10)
VinePPO: Refining Credit Assignment in RL Training of LLMs
and 9 more not named here
replace_return_docstrings 4 other papers
3 dated earlier, 1 later
1910.13461 (2019-10)
BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension
2104.08066 (2021-04)
Effect of Visual Extensions on Natural Language Understanding in Vision-and-Language Models
2210.00312 (2022-10)
Multimodal Analogical Reasoning over Knowledge Graphs
and 1 more not named here
torch_only_method 3 other papers
1 dated earlier, 2 later
2104.08066 (2021-04)
Effect of Visual Extensions on Natural Language Understanding in Vision-and-Language Models
2311.06761 (2023-11)
Learning Knowledge-Enhanced Contextual Language Representations for Domain Natural Language Understanding
2403.10942 (2024-03)
ScanTalk: 3D Talking Heads from Unregistered Scans
create_logger 1 other paper
1 dated earlier
2105.07624 (2021-05)
TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance
extract_one_num_from_str 1 other paper
1 dated earlier
2105.07624 (2021-05)
TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance
metric_max_over_ground_truths 1 other paper
1 dated earlier
2105.07624 (2021-05)
TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance
scale_to_num 1 other paper
1 dated earlier
2105.07624 (2021-05)
TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Finance

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

Discrete reasoning over table-text documents (e.g., financial reports) gains increasing attention in recent two years. Existing works mostly simplify this challenge by manually selecting and transforming document pages to structured tables and paragraphs, hindering their practical application. In this work, we explore a more realistic problem setting in the form of TAT-DQA, i.e. to answer the question over a visually-rich table-text document. Specifically, we propose a novel Doc2SoarGraph framework with enhanced discrete reasoning capability by harnessing the differences and correlations among different elements (e.g., quantities, dates) of the given question and document with Semantic-oriented hierarchical Graph structures. We conduct extensive experiments on TAT-DQA dataset, and the results show that our proposed framework outperforms the best baseline model by 17.73% and 16.91% in terms of Exact Match (EM) and F1 score respectively on the test set, achieving the new state-of-the-art.

For agents

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

get_harvested_code_for_paper("2305.01938")
get_code_for_paper("2305.01938")
have("2305.01938")

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

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

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

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

Connect an agent — have() is free.