SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.11633 · 2023

Evaluating ChatGPT's Information Extraction Capabilities: An Assessment of Performance, Explainability, Calibration, and Faithfulness

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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 8 have no contract verdict; 0 failures of our instrument; 0 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/2304.11633.json · badge: /api/ran/2304.11633.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
pkuserc/chatgpt_for_ie canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_f1 Ran
ran on a synthesized input
pkuserc/chatgpt_for_ie/Code/EAE/score_EAE_E+.py
code served (permissive licence) · get_code("fada67a6d1459131")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Analyze function usage:
# - compute_f1 takes three parameters: predicted, gold, matched
# - All three are used with > operator (compared to 0) and arithmetic operations
# - They appear to be numeric values (counts/scores)
# - safe_div performs division when denom > 0, else returns 0

# Create simple numeric arguments representing counts
predicted = 10  # number of predicted items
gold = 8        # number of gold/true items
matched = 6     # number of correctly matched items

ARGS = {
    "predicted": predicted,
    "gold": gold,
    "matched": matched
}
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, 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
filter_invalid_answer Ran
ran on a synthesized input
pkuserc/chatgpt_for_ie/Code/ED/score_ED_E+.py
code served (permissive licence) · get_code("167bc4d69618bd50")
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
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for filter_invalid_answer
# The function expects a dict where keys are example_ids and values are lists of records
# Each record is a list with at least 4 elements: [int, int, str, str]

preds = {
    0: [
        [0, 5, "valid answer", "another valid"],
        [1, 3, "unknown", "some text"],  # invalid: record[2] is in filter_words
        [2, 4, "text", "None"],  # invalid: record[3] is in filter_words
        [-1, 2, "answer", "text"],  # invalid: record[0] is negative
        [3, -2, "answer", "text"],  # invalid: record[1] is negative
        [4, 1, 123, "text"],  # invalid: record[2] is not str
        [5, 2, "text", 456],  # invalid: record[3] is not str
        [6, 3, "valid", "answer"],  # valid
    ],
    1: [
        [0, 2, "Unknown", "response"],  # invalid
        [1, 4, "result", "not specified"],  # invalid
        [2, 5, "good", "great"],  # valid
    ],
    2: [
        [3, 7, "text", "response"],  # valid
        [4, 8, "unspecified", "answer"],  # invalid
    ]
}

ARGS = {
    "preds": preds
}
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 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
filter_invalid_answer Ran
ran on a synthesized input
pkuserc/chatgpt_for_ie/Code/ED/score_ED_E.py
code served (permissive licence) · get_code("d57f74a43bddd6a4")
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
import numpy as np

CONFIDENCE_THRE = 0

# Construct test data for filter_invalid_answer
# The function expects a dict where:
# - keys are example_id
# - values are lists of records
# - each record is a tuple/list: (index, field1, field2, confidence)

ARGS = {
    "preds": {
        "example_1": [
            (0, "valid answer", "valid context", 0.95),
            (1, "another answer", "another context", 0.85),
            (-1, "negative index", "should be filtered", 0.9),
            (2, "unknown", "context", 0.8),
            (3, "valid", "not mentioned", 0.75),
        ],
        "example_2": [
            (0, "good answer", "good context", 0.99),
            (1, 123, "not a string", 0.9),
            (2, "valid answer", 456, 0.88),
            (3, "None", "context", 0.7),
            (4, "answer", "context", -0.1),
        ],
        "example_3": [
            (0, "test", "test context", 0.5),
            (1, "Unknown answer", "context", 0.6),
        ],
    }
}
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 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
filter_invalid_answer Ran
ran on a synthesized input
pkuserc/chatgpt_for_ie/Code/EE/score_EE_E+.py
code served (permissive licence) · get_code("8532045b2fbdd267")
How it ran

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

import torch
import numpy as np

# Construct valid arguments for filter_invalid_answer
# The function expects two dictionaries mapping example_ids to lists of records

# preds_event: dict where each value is a list of records
# Each record is [start_idx, end_idx, event_type_str, event_str]
preds_event = {
    "example_0": [
        [0, 5, "purchase", "bought item"],
        [10, 15, "sale", "sold product"],
        [-1, 3, "invalid", "negative index"],  # invalid: negative index
        [2, 4, "unknown", "filter word"],      # invalid: filter word
        [1, 2, 123, "not string"],             # invalid: non-string at index 2
    ],
    "example_1": [
        [3, 8, "transfer", "moved asset"],
        [0, 1, None, "not string"],            # invalid: None instead of string
    ],
}

# preds_arg: dict where each value is a list of arguments
# Each argument is [start_idx, end_idx, arg_type_str, arg_role_str, arg_value_str]
preds_arg = {
    "example_0": [
        [0, 3, "person", "actor", "John"],
        [5, 7, "location", "place", "NYC"],
        [-2, 4, "object", "item", "box"],     # invalid: negative index
        [1, 2, "None", "role", "value"],      # invalid: "None" filter word
        [2, 3, "entity", "role", 456],        # invalid: non-string at index 4
        [3, 4, "entity", "N/A", "value"],     # invalid: "N/A" filter word
    ],
    "example_1": [
        [0, 2, "thing", "role", "object"],
        [1, 3, "entity", "role", "subject"],
    ],
}

ARGS = {
    "preds_event": preds_event,
    "preds_arg": preds_arg,
}
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, ndim 1, dtype family int — 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
filter_invalid_answer Ran
ran on a synthesized input
pkuserc/chatgpt_for_ie/Code/EE/score_EE_E.py
code served (permissive licence) · get_code("8d77dea8b2634980")
How it ran

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

# Construct preds_event: dict mapping example_id to list of records
# Each record is [int, str, str] where:
# - record[0] is an index (must be >= 0)
# - record[1] is event type (str, not in filter_words)
# - record[2] is event description (str, not in filter_words)

preds_event = {
    "example_1": [
        [0, "firing", "job termination"],
        [1, "hiring", "new employment"],
        [-1, "invalid", "negative index"],  # invalid: negative index
        [2, "None", "filtered word"],  # invalid: filter word
        [3, 123, "invalid type"],  # invalid: non-string at [1]
    ],
    "example_2": [
        [0, "meeting", "conference call"],
        [1, "N/A", "filtered"],  # invalid: filter word
    ],
}

# Construct preds_arg: dict mapping example_id to list of arguments
# Each argument is [int, int, str, str, str] where:
# - argument[0] and argument[1] are indices (both must be >= 0)
# - argument[2], argument[3], argument[4] are strings (not in filter_words)

preds_arg = {
    "example_1": [
        [0, 1, "person", "role", "manager"],
        [2, 3, "company", "location", "New York"],
        [-1, 1, "invalid", "negative", "index"],  # invalid: negative index
        [0, 1, "unknown", "role", "position"],  # invalid: filter word at [2]
        [0, 1, "person", "None", "title"],  # invalid: filter word at [3]
        [0, 1, "person", "role", "not mentioned"],  # invalid: filter word at [4]
    ],
    "example_2": [
        [1, 2, "entity", "attribute", "value"],
        [0, 1, "person", "unspecified", "role"],  # invalid: filter word
    ],
}

ARGS = {
    "preds_event": preds_event,
    "preds_arg": preds_arg,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — 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
find_head Ran
ran on a synthesized input
pkuserc/chatgpt_for_ie/Code/EAE/score_EAE_E+.py
code served (permissive licence) · get_code("e45fdae8c3fc7fb0")
How it ran

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

import torch
import numpy as np
from collections import namedtuple

# Create a mock spaCy Token-like object
Token = namedtuple('Token', ['head', 'i'])

class MockHead:
    def __init__(self, i):
        self.i = i

class MockToken:
    def __init__(self, i, head_i):
        self.i = i
        self.head = MockHead(head_i)
    
    def __getitem__(self, idx):
        return self

# Create a mock doc (list-like object with indexable tokens)
class MockDoc:
    def __init__(self, tokens):
        self.tokens = tokens
    
    def __getitem__(self, idx):
        return self.tokens[idx]
    
    def __len__(self):
        return len(self.tokens)

# Construct test data:
# Create tokens where:
# - token 0 points to itself (head.i == 0)
# - token 1 points to token 0
# - token 2 points to token 1
# - token 3 points to token 2
tokens = [
    MockToken(i=0, head_i=0),  # self-pointing (root)
    MockToken(i=1, head_i=0),  # points to 0
    MockToken(i=2, head_i=1),  # points to 1
    MockToken(i=3, head_i=2),  # points to 2
]

doc = MockDoc(tokens)

# arg_start and arg_end define a span [2, 3]
# Starting from index 2:
# - doc[2].head.i = 1 (within range [2,3]? No, 1 < 2, so loop exits)
arg_start = 2
arg_end = 3

ARGS = {
    "arg_start": arg_start,
    "arg_end": arg_end,
    "doc": doc,
}
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, ndim 1, dtype family int — 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
read_question Ran
ran on a synthesized input
pkuserc/chatgpt_for_ie/Code/EAE/score_EAE_E.py
code served (permissive licence) · get_code("d90d6f6f8e22c0be")
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 tempfile
import os

# Create a temporary file with question data
temp_dir = tempfile.mkdtemp()
question_file = os.path.join(temp_dir, 'questions.txt')

# Write sample question data in the expected format
with open(question_file, 'w') as f:
    f.write('event1_arg1,what is this?\n')
    f.write('event1_arg2,where did it go?\n')
    f.write('event2_arg1,who did it?\n')
    f.write('event2_arg3,when did it happen?\n')

ARGS = {
    'question_path': question_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
safe_div Ran
ran on a synthesized input
pkuserc/chatgpt_for_ie/Code/EAE/score_EAE_E+.py
code served (permissive licence) · get_code("ac4edaf53cf349f7")
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)

# Analyze the function:
# safe_div(num, denom) performs a comparison denom > 0, then division num / denom
# Both num and denom should support > comparison and division operations
# They can be scalars, tensors, or numpy arrays

# Simple scalar case
num = 10
denom = 5

ARGS = {
    "num": num,
    "denom": denom,
}
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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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
safe_div 3 other papers
3 dated earlier
2104.05919 (2021-04)
Document-Level Event Argument Extraction by Conditional Generation
2106.15838 (2021-06)
HySPA: Hybrid Span Generation for Scalable Text-to-Graph Extraction
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
compute_f1 2 other papers
2 dated earlier
2106.15838 (2021-06)
HySPA: Hybrid Span Generation for Scalable Text-to-Graph Extraction
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
find_head 1 other paper
1 dated earlier
2104.05919 (2021-04)
Document-Level Event Argument Extraction by Conditional Generation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

The capability of Large Language Models (LLMs) like ChatGPT to comprehend user intent and provide reasonable responses has made them extremely popular lately. In this paper, we focus on assessing the overall ability of ChatGPT using 7 fine-grained information extraction (IE) tasks. Specially, we present the systematically analysis by measuring ChatGPT's performance, explainability, calibration, and faithfulness, and resulting in 15 keys from either the ChatGPT or domain experts. Our findings reveal that ChatGPT's performance in Standard-IE setting is poor, but it surprisingly exhibits excellent performance in the OpenIE setting, as evidenced by human evaluation. In addition, our research indicates that ChatGPT provides high-quality and trustworthy explanations for its decisions. However, there is an issue of ChatGPT being overconfident in its predictions, which resulting in low calibration. Furthermore, ChatGPT demonstrates a high level of faithfulness to the original text in the majority of cases. We manually annotate and release the test sets of 7 fine-grained IE tasks contains 14 datasets to further promote the research. The datasets and code are available at https://github.com/pkuserc/ChatGPT_for_IE.

For agents

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

get_harvested_code_for_paper("2304.11633")
get_code_for_paper("2304.11633")
have("2304.11633")

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

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

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

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

Connect an agent — have() is free.