SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2024.findings-emnlp.253 · EMNLP Findings · 2024

PROTRIX: Building Models for Planning and Reasoning over Tables with Sentence Context

Yansong Feng, Zirui Wu

Open in the Atlas

Code that ran

15 of 18 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 12 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2024.findings-emnlp.253.json · badge: /api/ran/2024.findings-emnlp.253.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
WilliamZR/ProTrix canonical (classifier label)
classifier basis: census
15 ran · 3 no recorded run
FunctionStatusWhere it lives
add_id Ran
ran on a synthesized input
WilliamZR/ProTrix/src/plan_then_reason.py
code served (permissive licence) · get_code("a8a15f801338f53e")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function iterates over data and accesses/modifies dictionary entries
# It checks for 'ids' key and adds one if missing, breaking if found
# So data should be a list of dictionaries

ARGS = {
    'data': [
        {'value': 1},
        {'value': 2},
        {'ids': 'existing-id', 'value': 3}
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dict2df Ran
ran on a synthesized input
WilliamZR/ProTrix/src/table_normalizer.py
code served (permissive licence) · get_code("1976e5a383603efc")
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 DataFrame. 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 pandas as pd

# Construct a valid table argument for dict2df
# The function expects a list where:
# - First element is the header (list of column names)
# - Remaining elements are rows of data

table = [
    ['Name', 'Age', 'Score > 100', 'Email/Contact', 'ID#123'],  # header with various problematic chars
    ['Alice', '25', '95', 'alice@example.com', '001'],
    ['Bob', '30', '105', 'bob@example.com', '002'],
]

ARGS = {
    'table': table
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
evaluate_qa Ran
ran on a synthesized input
WilliamZR/ProTrix/evaluation/compute_score.py
code served (permissive licence) · get_code("775a948ab089bf7b")
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 bool, 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)

# Construct a valid entry dict for evaluate_qa
# The function expects:
# - entry['generated_text']: a string containing the model output
# - entry['answer']: either a string or list of strings for the gold answer

# Test case 1: with "answer is" in output, gold is a string
entry_1 = {
    'generated_text': 'The answer is Paris',
    'answer': 'paris'
}

# Test case 2: with newline split, gold is a list
entry_2 = {
    'generated_text': 'Some reasoning\nBerlin',
    'answer': ['Berlin', 'berlin']
}

# Test case 3: simple case with "answer is", gold as string
entry_3 = {
    'generated_text': 'After analysis, the answer is 42',
    'answer': '42'
}

# Use entry_1 as the main test case
ARGS = {
    'entry': entry_1
}
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 bool, 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
evaluate_tatqa Ran
ran on a synthesized input
WilliamZR/ProTrix/evaluation/compute_score.py
code served (permissive licence) · get_code("219ed24ab897eef7")
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 bool, 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

def evaluate_tatqa(entry):
    output = entry['generated_text']
    pred = output.split('answer is')[-1]
    gold = entry['answer']
    pred = pred.lower().strip()
    pred = pred.replace(',', '')
    pred = pred.replace('"', '')
    elements_to_remove = [',', '$', '£', "'", 'million', 'billion', 'years', '%', 'm', '`', '(', ')', '-']
    for e in elements_to_remove:
        pred = pred.replace(e, '')
    if isinstance(gold, list):
        if pred.endswith('.'):
            pred = pred[:-1]
        for g in gold:
            g = str(g).replace(',', '')
            g = g.replace('"', '')
            for e in elements_to_remove:
                g = g.replace(e, '')
            try:
                if re.search('{}'.format(str(g).lower().strip()), pred) is None:
                    return False
            except:
                return False
        return True
    else:
        gold = str(gold).replace(',', '')
        gold = gold.replace('"', '')
        gold = gold.lower().strip()
        for e in elements_to_remove:
            gold = gold.replace(e, '')
        try:
            return re.search('{}'.format(str(gold)), pred) is not None
        except:
            return False


ARGS = {
    'entry': {
        'generated_text': 'The answer is 42 million dollars',
        'answer': '42'
    }
}
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 bool, 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
evaluate_verification Ran
ran on a synthesized input
WilliamZR/ProTrix/evaluation/compute_score.py
code served (permissive licence) · get_code("5d7fc53ef13cb78b")
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 bool, 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 re

torch.manual_seed(0)

# Construct a valid entry dict for evaluate_verification
entry = {
    'generated_text': 'The answer is supports this claim because evidence shows support.',
    'answer': 'supports'
}

ARGS = {
    'entry': entry
}
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 bool, 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
generate_prompt_with_new_table Ran
ran on a synthesized input
WilliamZR/ProTrix/evaluation/sql_tool.py
code served (permissive licence) · get_code("531fd444a20cb937")
How it ran

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

import torch
import numpy as np

def generate_prompt_with_new_table(case, new_table):
    try:
        instruction = case['prompt']
    except:
        instruction = case['input']
    query = instruction.split('Table\n')[0]
    context = instruction.split('Table\n')[1]
    context_split = context.split('\n\n')
    table, sent_and_task = (context_split[0], '\n\n'.join(context_split[1:]))
    table_info = []
    for entry in table.split('\n'):
        if 'page title' in entry.lower() or 'caption' in entry.lower() or 'paper title' in entry.lower() or ('section title' in entry.lower()):
            table_info.append(entry)
        else:
            break
    table_info = '\n'.join(table_info) + '\n'
    prompt = query + 'Table\n' + table_info + '\n'.join(new_table) + '\n\n' + sent_and_task
    return prompt

torch.manual_seed(0)

case = {
    'prompt': 'Query: What is the main topic?\nTable\nPage Title: Sample Page\nCaption: This is a sample table\n\nColumn 1 | Column 2\nValue 1 | Value 2\n\nTask: Answer the question.'
}

new_table = [
    'New Row 1 | New Data 1',
    'New Row 2 | New Data 2',
    'New Row 3 | New Data 3'
]

ARGS = {
    'case': case,
    'new_table': new_table
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_answer Ran
ran on a synthesized input
WilliamZR/ProTrix/evaluation/eval_with_llm.py
code served (permissive licence) · get_code("500a45eacde0ca09")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - It takes a parameter 'case' which is a dict
# - It accesses case['answer']
# - The answer can be a list or a string
# - If it's a list, it converts each element to string and joins with newlines

# Test case 1: answer is a list
case_with_list = {
    'answer': [1, 2, 3, 'test']
}

# Test case 2: answer is a string
case_with_string = {
    'answer': 'already a string'
}

# We'll use the list case as it exercises more of the function
ARGS = {
    'case': case_with_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_question Ran
ran on a synthesized input
WilliamZR/ProTrix/evaluation/eval_with_llm.py
code served (permissive licence) · get_code("5791edbc3c4dc955")
How it ran

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

import torch
import numpy as np

# Construct a case dict with the expected 'prompt' key
# The function extracts question text from a prompt string
# Try the first format with '## Question\n'
case_1 = {
    'prompt': 'Some preamble text\n## Question\nWhat is the answer to everything?\nMore text here'
}

# Alternative format with '## Question:\n' (with colon)
case_2 = {
    'prompt': 'Some preamble text\n## Question:\nHow does machine learning work?\nMore details'
}

# Use the first case as the main test case
ARGS = {
    'case': case_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_table_head Ran
ran on a synthesized input
WilliamZR/ProTrix/prompt/prompt.py
code served (permissive licence) · get_code("615ec1e9cf2705e0")
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 pandas as pd
import torch

# The function expects a table object with:
# - .head(n) method that returns a table
# - .to_markdown(index=False) method that returns a string
# This is a pandas DataFrame

table = pd.DataFrame({
    'col1': [1, 2, 3, 4, 5],
    'col2': ['a', 'b', 'c', 'd', 'e'],
    'col3': [1.1, 2.2, 3.3, 4.4, 5.5]
})

ARGS = {
    'table': table,
    'head': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, 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
maybe_normalize_float Ran
ran; our contract draft was wrong, not the code
WilliamZR/ProTrix/src/eval_icl.py
code served (permissive licence) · get_code("030ade13207900b8")
How it ran

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

import torch
import numpy as np
import re

torch.manual_seed(0)

def maybe_normalize_float(span: str):
    if span and (re.match('^[+-][0-9]+[.]?[0-9]*$', span) or re.match('^[0-9]*[.]?[0-9]*$', span)) and (span != '.'):
        return str(float(span))
    else:
        return span

ARGS = {
    "span": "3.14"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
maybe_normalize_number Ran
ran; our contract draft was wrong, not the code
WilliamZR/ProTrix/src/eval_icl.py
pointer only (licence: MIT); the stored copy get_code serves, from jding0521/graphotter, is pointer only (licence: NONE) · get_code("44afa42802919c8f")
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 jding0521/graphotter, 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.

modify_input Ran
ran on a synthesized input
WilliamZR/ProTrix/evaluation/generate_with_sql.py
code served (permissive licence) · get_code("a70336ba8aa10dbc")
How it ran

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

import torch
import numpy as np

# Call torch.manual_seed for reproducibility
torch.manual_seed(0)

# Test with a simple string input and a valid template type
input_text = "What is 2+2?"
template_type = "llama3"

ARGS = {
    "input": input_text,
    "type": template_type
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize Ran
ran; our contract draft was wrong, not the code
WilliamZR/ProTrix/src/eval_icl.py
pointer only (licence: MIT); the stored copy get_code serves, from sohanpatnaik106/cabinet_qa, is pointer only (licence: NONE) · get_code("cf85025d1c2965e2")
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 sohanpatnaik106/cabinet_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.

prediction Ran
ran on a synthesized input
WilliamZR/ProTrix/evaluation/eval_with_llm.py
code served (permissive licence) · get_code("a142eefafa8c89eb")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function expects a dict 'case' with a 'generated_text' key
# It tries to split by 'answer is' and if that fails, splits by '\n'
# So we need to provide a generated_text string

case = {
    'generated_text': 'Some reasoning here. The predicted answer is 42'
}

ARGS = {
    'case': case
}
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
preprocess_columns Ran
ran on a synthesized input
WilliamZR/ProTrix/src/table_normalizer.py
code served (permissive licence) · get_code("5b10956afcfbc081")
How it ran

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

import torch

# Construct valid arguments for preprocess_columns
# The function takes a list of column names (strings) and preprocesses them

ARGS = {
    "columns": [
        "Column Name",
        "value/rate",
        "price-USD",
        "item#1",
        "50",
        "temp>100",
        "data<threshold",
        "file\\path",
        "multi\nline",
        "special(chars)",
        "col[0]",
        "data{key}",
        "price*2",
        "$amount",
        "item,list",
        "what?",
        "exclaim!",
        "quote's",
        "email@domain",
        "a&b",
        "x=y",
        "a+b",
        "",
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_results Not yet run
unverified (harvested, no recorded run)
WilliamZR/ProTrix/src/plan_then_reason.py
code served (permissive licence) · get_code("2d77048aca3e7684")
How it ran

no invocation recorded.

num_tokens_from_string Not yet run
unverified (harvested, no recorded run)
WilliamZR/ProTrix/evaluation/sql_tool.py
code served (permissive licence) · get_code("336dce91b100570d")
How it ran

no invocation recorded.

trunacate_input Not yet run
unverified (harvested, no recorded run)
WilliamZR/ProTrix/evaluation/sql_tool.py
code served (permissive licence) · get_code("c32f0284ce1fd3fb")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalize 2 other papers
2 same year, order not determinable
2024.findings-emnlp.131 (2024 (year only))
SYNTQA: Synergistic Table-based Question Answering via Mixture of Text-to-SQL and E2E TQA
2402.01155 (2024-02)
CABINET: Content Relevance based Noise Reduction for Table Question Answering
maybe_normalize_float 1 other paper
1 same year, order not determinable
2412.01230 (2024-12)
GraphOTTER: Evolving LLM-based Graph Reasoning for Complex Table Question Answering
maybe_normalize_number 1 other paper
1 same year, order not determinable
2412.01230 (2024-12)
GraphOTTER: Evolving LLM-based Graph Reasoning for Complex Table Question Answering

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Tables play a crucial role in conveying information of various domains. We propose a novel Plan-then-Reason framework to answer different types of user queries over tables with sentence context. Our framework first plans the reasoning paths over both tabular and sentence context, then assigns each step to programbased or textual reasoning to reach the final answer. This framework enhances the table reasoning abilities for both in-context learning and finetuning methods. GPT-3.5-Turbo following our Plan-then-Reason framework surpasses other prompting baselines that do not employ self-consistency while using fewer API calls and in-context demonstrations. We also construct an instruction tuning set TrixInstruct to evaluate the effectiveness of finetuning with this framework. We present a PROTRIX model family by finetuning models on TrixInstruct. Our experiments show that the PROTRIX family can generalize to diverse unseen tabular tasks with only 6k training instances. We further demonstrate that PROTRIX can generate accurate and faithful explanations to answer complex free-form questions. Our work underscores the importance of the planning and reasoning abilities towards a model over tabular tasks with generalizability and interpretability. We open-source our dataset and models at https://github.com/WilliamZR/ProTrix. This is a table question answering task. You will answer the question based on the given context.

For agents

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

get_harvested_code_for_paper("2024.findings-emnlp.253")
get_code_for_paper("2024.findings-emnlp.253")
have("2024.findings-emnlp.253")

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

curl https://syntology.ai/api/ran/2024.findings-emnlp.253.json

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

[![Syntology run record](https://syntology.ai/api/ran/2024.findings-emnlp.253.svg)](https://syntology.ai/paper/2024.findings-emnlp.253)

Connect an agent — have() is free.