SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.01354 · NAACL · 2021

MULTIPROVER: Generating Multiple Proofs for Improved Interpretability in Rule Reasoning

Mohit Bansal, Swarnadeep Saha, Prateek Yadav

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 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 3 have no contract verdict; 2 failures of our instrument; 4 no recorded run), measured 2026-11-23; 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/2106.01354.json · badge: /api/ran/2106.01354.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
swarnaHub/multiPRover canonical (classifier label)
classifier basis: census
5 ran · 4 no recorded run
FunctionStatusWhere it lives
convert_examples_to_features Ran
ran on a synthesized input
swarnaHub/multiPRover/utils_iterative_mprover.py
code served (permissive licence) · get_code("4f74b4458496f1dc")
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 logging

logging.basicConfig(level=logging.INFO)

class MockTokenizer:
    """Mock tokenizer that simulates BERT tokenizer behavior."""
    def tokenize(self, text):
        # Simple tokenization: split on spaces and add token markers
        return text.lower().split()
    
    def convert_tokens_to_ids(self, tokens):
        # Simple mapping: assign IDs based on token content
        token_to_id = {
            '[cls]': 101,
            '[sep]': 102,
            'hello': 2054,
            'world': 1526,
            'this': 2023,
            'is': 2003,
            'a': 1037,
            'test': 3231,
            'example': 2742,
            'good': 2204,
            'bad': 2919,
        }
        return [token_to_id.get(token.lower(), 100) for token in tokens]

class MockExample:
    """Mock example object with required attributes."""
    def __init__(self, guid, text_a, text_b, label):
        self.guid = guid
        self.text_a = text_a
        self.text_b = text_b
        self.label = label

# Create example data
examples = [
    MockExample("ex_1", "hello world", "this is test", "positive"),
    MockExample("ex_2", "good example", None, "negative"),
]

# Define parameters
label_list = ["negative", "positive"]
max_seq_length = 16
tokenizer = MockTokenizer()
output_mode = "classification"
cls_token_at_end = False
pad_on_left = False
cls_token = "[CLS]"
sep_token = "[SEP]"
sep_token_extra = False
pad_token = 0
sequence_a_segment_id = 0
sequence_b_segment_id = 1
cls_token_segment_id = 1
pad_token_segment_id = 0
mask_padding_with_zero = True

ARGS = {
    "examples": examples,
    "label_list": label_list,
    "max_seq_length": max_seq_length,
    "tokenizer": tokenizer,
    "output_mode": output_mode,
    "cls_token_at_end": cls_token_at_end,
    "pad_on_left": pad_on_left,
    "cls_token": cls_token,
    "sep_token": sep_token,
    "sep_token_extra": sep_token_extra,
    "pad_token": pad_token,
    "sequence_a_segment_id": sequence_a_segment_id,
    "sequence_b_segment_id": sequence_b_segment_id,
    "cls_token_segment_id": cls_token_segment_id,
    "pad_token_segment_id": pad_token_segment_id,
    "mask_padding_with_zero": mask_padding_with_zero,
}
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 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_edge_sequence Ran
ran on a synthesized input
swarnaHub/multiPRover/proof_utils.py
code served (permissive licence) · get_code("1d5c8009bfe93d8c")
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 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)

# Analyzing the function:
# - all_nodes: iterable that supports len() and indexing
# - all_edges: iterable of tuples where each edge is (str, ...)
# - edges have a [0] element that is a string
# - strings are checked with .startswith() and == comparison

# Create sample nodes (simple strings)
all_nodes = ['node_1', 'node_2', 'node_3']

# Create sample edges
# Each edge is a tuple where first element is a string
all_edges = [
    ('triple_rel_1', 'target_1'),
    ('other_edge', 'target_2'),
    ('NAF', 'target_3'),
    ('simple_rel', 'target_4'),
    ('triple_something', 'target_5'),
]

ARGS = {
    'all_nodes': all_nodes,
    'all_edges': all_edges,
}
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 2, 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_precision_recall_f1 Ran
ran on a synthesized input
swarnaHub/multiPRover/evaluation/eval_mprover.py
code served (permissive licence) · get_code("746ff3f013518dc3")
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 numpy as np

# Test case 1: nodes matching scenario
gold_nodes_1 = np.array([
    [1, 2, 3, 4],
    [5, 6, 7, 8]
])
pred_nodes_1 = np.array([
    [1, 2, 3, 4],
    [9, 10, 11, 12]
])
gold_edges_1 = np.array([
    [0, 1],
    [1, 0]
])
pred_edges_1 = np.array([
    [0, 1],
    [0, 1]
])

# Test case 2: edges matching scenario
gold_edges_2 = np.array([
    [0, 1, 0, 1],
    [1, 0, 1, 0]
])
pred_edges_2 = np.array([
    [0, 1, 0, 1],
    [1, 1, 1, 0]
])

ARGS = {
    "gold_nodes": gold_nodes_1,
    "pred_nodes": pred_nodes_1,
    "gold_edges": gold_edges_1,
    "pred_edges": pred_edges_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
get_proof_graph Ran
ran; our contract draft was wrong, not the code
swarnaHub/multiPRover/proof_utils.py
code served (permissive licence) · get_code("c13d0749a5472646")
How it ran

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

# Setup code to construct valid arguments for get_proof_graph function

# The function takes a single parameter: proof_str (a string representing a proof structure)
# Looking at the function body, it:
# - Replaces parentheses and splits the string
# - Processes tokens including '(', ')', '[', ']', '->', and node names
# - Builds a graph of nodes and edges

# Create a valid proof string that exercises the function logic
proof_str = "(node1 -> node2 (node3 -> node4))"

ARGS = {
    "proof_str": proof_str
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_proof_graph_with_fail Ran
ran; our contract draft was wrong, not the code
swarnaHub/multiPRover/proof_utils.py
code served (permissive licence) · get_code("5621c0d34ff2bff6")
How it ran

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

import torch

def get_proof_graph_with_fail(proof_str):
    proof_str = proof_str[:-2].split('=')[1].strip()[1:-1]
    nodes = proof_str.split(' <- ')
    all_nodes = []
    all_edges = []
    for i in range(len(nodes) - 1):
        all_nodes.append(nodes[i])
        if nodes[i + 1] != 'FAIL':
            all_edges.append((nodes[i + 1], nodes[i]))
    return (all_nodes, all_edges)


# Construct a valid proof_str argument
# The function expects a string that ends with "= [...]"
# Inside the brackets are nodes separated by " <- "
# Example: "proof= [node1 <- node2 <- node3 <- FAIL]"
proof_str = "proof= [step1 <- step2 <- step3 <- FAIL]"

ARGS = {
    "proof_str": proof_str
}
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 — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_examples_to_features_RR Not yet run
unverified (harvested, no recorded run)
swarnaHub/multiPRover/utils_iterative_mprover.py
code served (permissive licence) · get_code("a9fb86c4017c07e7")
How it ran

no invocation recorded.

convert_examples_to_features_RR Not yet run
unverified (harvested, no recorded run)
swarnaHub/multiPRover/utils_multilabel_mprover.py
code served (permissive licence) · get_code("a176323b73f145e8")
How it ran

no invocation recorded.

convert_examples_to_features_RR Not yet run
unverified (harvested, no recorded run)
swarnaHub/multiPRover/utils_prover.py
code served (permissive licence) · get_code("ecb790feacadaaad")
How it ran

no invocation recorded.

convert_examples_to_features_RR_QA Not yet run
unverified (harvested, no recorded run)
swarnaHub/multiPRover/utils_iterative_mprover.py
code served (permissive licence) · get_code("977d0ae266aee9c8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 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
get_proof_graph 3 other papers
1 dated earlier, 2 later
2010.02830 (2020-10)
PROVER: Proof Generation for Interpretable Reasoning over Rules
2203.10261 (2022-03)
FaiRR: Faithful and Robust Deductive Reasoning over Natural Language
2310.14491 (2023-10)
Towards a Mechanistic Interpretation of Multi-Step Reasoning Capabilities of Language Models
get_proof_graph_with_fail 2 other papers
1 dated earlier, 1 later
2010.02830 (2020-10)
PROVER: Proof Generation for Interpretable Reasoning over Rules
2310.14491 (2023-10)
Towards a Mechanistic Interpretation of Multi-Step Reasoning Capabilities of Language Models
convert_examples_to_features 1 other paper
1 later
2204.12632 (2022-04)
Testing the Ability of Language Models to Interpret Figurative Language
convert_examples_to_features_RR 1 other paper
1 dated earlier
2010.02830 (2020-10)
PROVER: Proof Generation for Interpretable Reasoning over Rules

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

We focus on a type of linguistic formal reasoning where the goal is to reason over explicit knowledge in the form of natural language facts and rules (Clark et al., 2020). A recent work, named PROVER (Saha et al., 2020), performs such reasoning by answering a question and also generating a proof graph that explains the answer. However, compositional reasoning is not always unique and there may be multiple ways of reaching the correct answer. Thus, in our work, we address a new and challenging problem of generating multiple proof graphs for reasoning over natural language rule-bases. Each proof provides a different rationale for the answer, thereby improving the interpretability of such reasoning systems. In order to jointly learn from all proof graphs and exploit the correlations between multiple proofs for a question, we pose this task as a set generation problem over structured output spaces where each proof is represented as a directed graph. We propose two variants of a proof-set generation model, MULTIPROVER. Our first model, Multilabel-MULTIPROVER, generates a set of proofs via multi-label classification and implicit conditioning between the proofs; while the second model, Iterative-MULTIPROVER, generates proofs iteratively by explicitly conditioning on the previously generated proofs. Experiments on multiple synthetic, zero-shot, and human-paraphrased datasets reveal that both MULTIPROVER models significantly outperform PROVER on datasets containing multiple gold proofs. Iterative-MULTIPROVER obtains state-of-the-art proof F1 in zero-shot scenarios where all examples have single correct proofs. It also generalizes better to questions requiring higher depths of reasoning where multiple proofs are more frequent.

For agents

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

get_harvested_code_for_paper("2106.01354")
get_code_for_paper("2106.01354")
have("2106.01354")

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

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

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

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

Connect an agent — have() is free.