SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2022.findings-emnlp.465 · EMNLP Findings · 2022

Syntactically Robust Training on Partially-Observed Data for Open Information Extraction

Juanzi Li, Lei Hou, Ji Qi, Bin Xu, Yuxiang Chen

Code that ran

7 of 7 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 7 have no contract verdict; 0 failures of our instrument; 0 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/2022.findings-emnlp.465.json · badge: /api/ran/2022.findings-emnlp.465.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
qijimrc/RobustOIE canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
lcs_distance Ran
ran on a synthesized input
qijimrc/RobustOIE/src/cluster/k_means.py
code served (permissive licence) · get_code("861f9b464293cd2e")
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)

# s1 and s2 are sequences (strings or lists) that the function compares
# The function computes a longest common subsequence distance metric
s1 = "abcdef"
s2 = "aXbYcZ"

# weight_decay is a numeric parameter used in the distance calculation
weight_decay = 1.5

ARGS = {
    "s1": s1,
    "s2": s2,
    "weight_decay": weight_decay
}
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
lcs_distance_qiji Ran
ran on a synthesized input
qijimrc/RobustOIE/src/cluster/k_means.py
code served (permissive licence) · get_code("c5a96b2105ee4cbb")
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

# Analyze the function:
# - s1 and s2 are sequences that are indexed and compared with ==
# - They need len() and element access
# - weight_decay is a numeric parameter used in exponentiation
# - The function computes longest common substring distance

# s1 and s2 should be sequences (lists, strings, or arrays of comparable elements)
s1 = "abcdef"
s2 = "aebdfc"

# weight_decay is a float parameter with default 1
weight_decay = 0.9

ARGS = {
    "s1": s1,
    "s2": s2,
    "weight_decay": weight_decay,
}
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
legal_check Ran
ran on a synthesized input
qijimrc/RobustOIE/src/restoration/repair.py
code served (permissive licence) · get_code("d8d9952573d9fa88")
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 legal_check(argument):
    if len(argument) <= 1:
        return False
    words = argument.strip().split()
    matches = []
    for w in words:
        if re.match('.*?(\\w).*$', w):
            matches.append(True)
        else:
            matches.append(False)
    if not any(matches):
        return False
    return True

ARGS = {
    "argument": "hello world"
}
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
my_collate Ran
ran on a synthesized input
qijimrc/RobustOIE/src/restoration/map_from_tree.py
code served (permissive licence) · get_code("07f10fbad89ad076")
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. 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
from torch.utils.data.dataloader import default_collate

torch.manual_seed(0)

# Create a batch of data items
# Each item should be collatable (e.g., tensors, tuples of tensors, etc.)
batch = [
    (torch.randn(4), torch.randint(0, 2, (3,))),
    (torch.randn(4), torch.randint(0, 2, (3,))),
    None,  # This will be filtered out by the lambda
    (torch.randn(4), torch.randint(0, 2, (3,))),
]

ARGS = {
    "batch": batch
}
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 — a list 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
repair_arg_a_sample Ran
ran on a synthesized input
qijimrc/RobustOIE/src/restoration/repair.py
code served (permissive licence) · get_code("396630127a7be29c")
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 re

class TreeNode:
    """Simple tree node class to support the _subtree_check function."""
    def __init__(self, value, child=None):
        self.value = value
        self.child = child if child is not None else []

def build_sample_tree():
    """Build a minimal parse tree for testing."""
    # Create a simple tree structure
    # NP
    #  ├─ DT "the"
    #  ├─ NN "company"
    #  └─ NP
    #      ├─ NN "manager"
    
    leaf_the = TreeNode("the", [])
    leaf_company = TreeNode("company", [])
    leaf_manager = TreeNode("manager", [])
    
    inner_np = TreeNode("NP", [leaf_manager])
    root_np = TreeNode("NP", [leaf_the, leaf_company, inner_np])
    
    return root_np

ARGS = {
    "sample": "The company manager hired John Smith\t<arg1> company manager </arg1> <rel> hired </rel> <arg2> John Smith </arg2>\t0.85",
    "tree": build_sample_tree()
}
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 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
same_token_rank Ran
ran on a synthesized input
qijimrc/RobustOIE/src/restoration/map_from_tree.py
code served (permissive licence) · get_code("af65dc59eb3a209e")
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

torch.manual_seed(0)

# The function takes:
# - tokens: a sequence/list that supports indexing and equality comparison
# - target_idx: an integer index

# tokens should be a list of comparable elements
tokens = [1, 2, 3, 2, 1, 2]

# target_idx should be a valid index into tokens
target_idx = 4

ARGS = {
    "tokens": tokens,
    "target_idx": target_idx,
}
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
seq2dict Ran
ran on a synthesized input
qijimrc/RobustOIE/src/cluster/k_means.py
code served (permissive licence) · get_code("85fad35b02eafac8")
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 torch

# Construct valid arguments for seq2dict function
# The function takes a string 'seq' with space-separated values and parentheses denoting hierarchy
# and an integer 'max_level' controlling recursion depth

# Example: "root (child1 child2) (child3)"
# This creates a tree structure with root as the top-level value
# and children parsed recursively

seq = "parent (child1 child2) (child3 grandchild1)"
max_level = 3

ARGS = {
    'seq': seq,
    'max_level': max_level
}
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 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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 6 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
seq2dict 1 other paper
1 later
2305.13981 (2023-05)
Preserving Knowledge Invariance: Rethinking Robustness Evaluation of Open Information Extraction

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

Open Information Extraction models have shown promising results with sufficient supervision. However, these models face a fundamental challenge that the syntactic distribution of training data is partially observable in comparison to the real world. In this paper, we propose a syntactically robust training framework that enables models to be trained on a syntacticabundant distribution based on diverse paraphrase generation. To tackle the intrinsic problem of knowledge deformation of paraphrasing, two algorithms based on semantic similarity matching and syntactic tree walking are used to restore the expressionally transformed knowledge. The training framework can be generally applied to other syntactic partial observable domains. Based on the proposed framework, we build a new evaluation set called CaRB-AutoPara, a syntactically diverse dataset consistent with the real-world setting for validating the robustness of the models. Experiments including a thorough analysis show that the performance of the model degrades with the increase of the difference in syntactic distribution, while our framework gives a robust boundary. The source code is publicly available at https://github.com/qijimrc/RobustOIE.

For agents

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

get_harvested_code_for_paper("2022.findings-emnlp.465")
get_code_for_paper("2022.findings-emnlp.465")
have("2022.findings-emnlp.465")

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

curl https://syntology.ai/api/ran/2022.findings-emnlp.465.json

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

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

Connect an agent — have() is free.