SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2023.findings-acl.586 · ACL Findings · 2023

The Devil is in the Details: On the Pitfalls of Event Extraction Evaluation

Hao Peng, Zhiyuan Liu, Juanzi Li, Lei Hou, Xiaozhi Wang, Kaisheng Zeng, Feng Yao, Weixing Shen

Code that ran

7 of 13 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 4 have no contract verdict; 3 failures of our instrument; 6 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/2023.findings-acl.586.json · badge: /api/ran/2023.findings-acl.586.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
THU-KEG/OmniEvent canonical (classifier label)
classifier basis: census
7 ran · 6 no recorded run
FunctionStatusWhere it lives
aggregate Ran
ran on a synthesized input
THU-KEG/OmniEvent/OmniEvent/aggregation/aggregation.py
code served (permissive licence) · get_code("c322a7844c5cd041")
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, 4) 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 torch.nn as nn
from typing import Optional

torch.manual_seed(0)

# Define a config class with aggregation attribute
class Config:
    def __init__(self, aggregation='cls'):
        self.aggregation = aggregation

# Define method callables that match the function's usage patterns
def method_cls(hidden_states):
    """Method for 'cls' aggregation - takes hidden_states only"""
    return hidden_states[:, 0, :]

def method_marker(hidden_states, left=None, right=None):
    """Method for 'marker' aggregation - takes hidden_states and position indices"""
    if left is not None and right is not None:
        return hidden_states
    return hidden_states

def method_max_pooling(hidden_states):
    """Method for 'max_pooling' aggregation - takes hidden_states only"""
    return torch.max(hidden_states, dim=1)[0]

def method_dynamic_pooling(hidden_states, attention_mask, trigger_left, embeddings, argument_left, argument_right):
    """Method for 'dynamic_pooling' aggregation - takes all parameters"""
    return hidden_states

# Create tiny tensors
batch_size = 2
seq_length = 5
hidden_dim = 4
vocab_size = 10

hidden_states = torch.randn(batch_size, seq_length, hidden_dim)
attention_mask = torch.ones(batch_size, seq_length, dtype=torch.long)
trigger_left = torch.tensor([0, 1], dtype=torch.long)
trigger_right = torch.tensor([2, 3], dtype=torch.long)
argument_left = torch.tensor([1, 2], dtype=torch.long)
argument_right = torch.tensor([3, 4], dtype=torch.long)
embeddings = torch.randn(vocab_size, hidden_dim)

# Test with different configs and methods
config = Config(aggregation='cls')
method = method_cls

ARGS = {
    'config': config,
    'method': method,
    'hidden_states': hidden_states,
    'attention_mask': attention_mask,
    'trigger_left': trigger_left,
    'trigger_right': trigger_right,
    'argument_left': argument_left,
    'argument_right': argument_right,
    'embeddings': embeddings
}
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, 4) — shape (2, 4) 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
find_bracket_position Ran
ran; our contract draft was wrong, not the code
THU-KEG/OmniEvent/OmniEvent/model/constraint_decoding.py
pointer only (licence: MIT); the stored copy get_code serves, from universal-ie/UIE, is pointer only (licence: NONE) · get_code("c2c95a98621f39bf")
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 universal-ie/UIE, 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.

find_position Ran
ran on a synthesized input
THU-KEG/OmniEvent/OmniEvent/infer_module/seq2seq.py
code served (permissive licence) · get_code("ea06014da471c8ca")
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
import numpy as np

torch.manual_seed(0)

# The function find_position takes two parameters:
# - mention: a string to search for
# - text: a string to search within
# The function uses .index() on text and len() on mention and text

mention = "hello"
text = "say hello world"

ARGS = {
    "mention": mention,
    "text": text,
}
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 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
get_label_name_tree Ran
ran; our contract draft was wrong, not the code
THU-KEG/OmniEvent/OmniEvent/model/constraint_decoding.py
pointer only (licence: MIT); the stored copy get_code serves, from universal-ie/UIE, is pointer only (licence: NONE) · get_code("d07f851a6d8b7cba")
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 universal-ie/UIE, 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_words Ran
ran on a synthesized input
THU-KEG/OmniEvent/OmniEvent/infer_module/seq2seq.py
code served (permissive licence) · get_code("2bd60c3c3c245189")
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 numpy as np

# Set seed for reproducibility
torch.manual_seed(0)

# Define ARGS with values for each parameter
ARGS = {
    'text': 'hello world python',
    'language': 'English'
}
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 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
match_sublist Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
THU-KEG/OmniEvent/OmniEvent/model/constraint_decoding.py
code served (permissive licence) · get_code("876bdd6f8a19f590")
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 2, 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

# Set random seed for reproducibility
torch.manual_seed(0)

# Define arguments for match_sublist function
the_list = [1, 2, 3, 4, 5, 6, 1, 2, 4, 5]
to_match = [1, 2]

ARGS = {
    "the_list": the_list,
    "to_match": to_match
}
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 2, 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
max_pooling Ran
ran on a synthesized input
THU-KEG/OmniEvent/OmniEvent/aggregation/aggregation.py
code served (permissive licence) · get_code("2c46e66e13a3b0b5")
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, 4) 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 torch.nn.functional as F

torch.manual_seed(0)

# Create a small hidden_states tensor
# Shape: (batch_size=2, seq_length=3, hidden_size=4)
hidden_states = torch.randn(2, 3, 4)

ARGS = {
    "hidden_states": hidden_states,
}
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, 4) — shape (2, 4) 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
check_web_and_convert_path Not yet run
unverified (harvested, no recorded run)
THU-KEG/OmniEvent/OmniEvent/utils.py
code served (permissive licence) · get_code("9a6db313e5d84fa8")
How it ran

no invocation recorded.

get_aggregation Not yet run
unverified (harvested, no recorded run)
THU-KEG/OmniEvent/OmniEvent/aggregation/aggregation.py
code served (permissive licence) · get_code("bf0ce578c288a475")
How it ran

no invocation recorded.

get_ed_result Not yet run
unverified (harvested, no recorded run)
THU-KEG/OmniEvent/OmniEvent/infer_module/seq2seq.py
code served (permissive licence) · get_code("de3702166e9777eb")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
THU-KEG/OmniEvent/OmniEvent/infer.py
code served (permissive licence) · get_code("c5f5e9677ace3b63")
How it ran

no invocation recorded.

get_pretrained Not yet run
unverified (harvested, no recorded run)
THU-KEG/OmniEvent/OmniEvent/infer.py
code served (permissive licence) · get_code("9909fc2cd4abaed6")
How it ran

no invocation recorded.

get_tokenizer Not yet run
unverified (harvested, no recorded run)
THU-KEG/OmniEvent/OmniEvent/infer.py
code served (permissive licence) · get_code("e91f4df5ee517d69")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 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 10 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
find_bracket_position 3 other papers
2 dated earlier, 1 same year, order not determinable · 2 only as an assembly brick
2106.09232 (2021-06)
TEXT2EVENT: Controllable Sequence-to-Structure Generation for End-to-end Event Extraction
2203.12277 (2022-03)
Unified Structure Generation for Universal Information Extraction
2305.05711 (2023-05)
CODEIE: Large Code Generation Models are Better Few-Shot Information Extractors
get_label_name_tree 3 other papers
2 dated earlier, 1 same year, order not determinable · 2 only as an assembly brick
2106.09232 (2021-06)
TEXT2EVENT: Controllable Sequence-to-Structure Generation for End-to-end Event Extraction
2203.12277 (2022-03)
Unified Structure Generation for Universal Information Extraction
2305.05711 (2023-05)
CODEIE: Large Code Generation Models are Better Few-Shot Information Extractors
match_sublist 3 other papers
2 dated earlier, 1 same year, order not determinable · 1 only as an assembly brick
2106.09232 (2021-06)
TEXT2EVENT: Controllable Sequence-to-Structure Generation for End-to-end Event Extraction
2203.12277 (2022-03)
Unified Structure Generation for Universal Information Extraction
2305.05711 (2023-05)
CODEIE: Large Code Generation Models are Better Few-Shot Information Extractors

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

Event extraction (EE) is a crucial task aiming at extracting events from texts, which includes two subtasks: event detection (ED) and event argument extraction (EAE). In this paper, we check the reliability of EE evaluations and identify three major pitfalls: (1) The data preprocessing discrepancy makes the evaluation results on the same dataset not directly comparable, but the data preprocessing details are not widely noted and specified in papers. (2) The output space discrepancy of different model paradigms makes differentparadigm EE models lack grounds for comparison and also leads to unclear mapping issues between predictions and annotations. (3) The absence of pipeline evaluation of many EAE-only works makes them hard to be directly compared with EE works and may not well reflect the model performance in realworld pipeline scenarios. We demonstrate the significant influence of these pitfalls through comprehensive meta-analyses of recent papers and empirical experiments. To avoid these pitfalls, we suggest a series of remedies, including specifying data preprocessing, standardizing outputs, and providing pipeline evaluation results. To help implement these remedies, we develop a consistent evaluation framework OMNIEVENT, which can be obtained from https://github.com/THU-KEG/OmniEvent.

For agents

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

get_harvested_code_for_paper("2023.findings-acl.586")
get_code_for_paper("2023.findings-acl.586")
have("2023.findings-acl.586")

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

curl https://syntology.ai/api/ran/2023.findings-acl.586.json

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

[![Syntology run record](https://syntology.ai/api/ran/2023.findings-acl.586.svg)](https://syntology.ai/paper/2023.findings-acl.586)

Connect an agent — have() is free.