SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1906.07132 · 2019

Avoiding Reasoning Shortcuts: Adversarial Evaluation, Training, and Model Development for Multi-Hop QA

arXiv · PDF · Open in the Atlas

Code that ran

11 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 11 have no contract verdict; 0 failures of our instrument; 2 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/1906.07132.json · badge: /api/ran/1906.07132.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
jiangycTarheel/Adversarial-MultiHopQA canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
aggregate_metrics Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nectar/nectar/theanoutil/model.py
code served (permissive licence) · get_code("52f030918856dc44")
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 OrderedDict. 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 collections

# Analyze the function:
# aggregate_metrics takes metric_list
# - metric_list is a list of dicts
# - each dict has keys that map to tuples of (numerator_value, denominator_value)
# - the function computes weighted averages

# Create sample metric dictionaries
# Each metric dict maps metric name -> (value, weight) tuple
metric1 = {
    'accuracy': (0.9, 2),      # numerator=0.9, weight=2
    'loss': (0.1, 2),          # numerator=0.1, weight=2
    'precision': (0.85, 2)     # numerator=0.85, weight=2
}

metric2 = {
    'accuracy': (0.92, 3),     # numerator=0.92, weight=3
    'loss': (0.08, 3),         # numerator=0.08, weight=3
    'precision': (0.88, 3)     # numerator=0.88, weight=3
}

metric3 = {
    'accuracy': (0.95, 1),     # numerator=0.95, weight=1
    'loss': (0.05, 1),         # numerator=0.05, weight=1
    'precision': (0.91, 1)     # numerator=0.91, weight=1
}

metric_list = [metric1, metric2, metric3]

ARGS = {
    'metric_list': metric_list
}
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 OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict 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
build_word_vector_matrix Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nearest_glove/utils.py
code served (permissive licence) · get_code("b531959d4a3b2b6b")
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 codecs
import json
import numpy as np
import tempfile
import os

# Create a temporary GloVe-format vector file
temp_dir = tempfile.mkdtemp()
vector_file = os.path.join(temp_dir, "glove_vectors.txt")

# Write sample GloVe format data: word followed by vector values
with codecs.open(vector_file, 'w', 'utf-8') as f:
    f.write("the 0.1 0.2 0.3 0.4\n")
    f.write("hello 0.5 0.6 0.7 0.8\n")
    f.write("world 0.9 1.0 1.1 1.2\n")

ARGS = {
    "vector_file": vector_file,
    "n_words": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
find_nearest Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nearest_glove/get_nearest.py
code served (permissive licence) · get_code("2e226d735609d4e1")
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 numpy as np
from scipy.spatial.distance import cosine

# Construct the arguments for find_nearest function

# Create a small vocabulary
words = {'hello', 'world', 'test'}

# Create a query vector (dimension 4)
vec = np.array([0.1, 0.2, 0.3, 0.4], dtype=np.float32)

# Create id_to_word mapping (5 words total)
id_to_word = {
    0: 'hello',
    1: 'world', 
    2: 'foo',
    3: 'bar',
    4: 'baz'
}

# Create a dataframe-like structure: list of vectors (5 words, dimension 4)
df = [
    np.array([0.1, 0.2, 0.3, 0.4], dtype=np.float32),  # hello
    np.array([0.15, 0.25, 0.35, 0.45], dtype=np.float32),  # world
    np.array([0.2, 0.3, 0.4, 0.5], dtype=np.float32),  # foo
    np.array([0.05, 0.15, 0.25, 0.35], dtype=np.float32),  # bar
    np.array([0.3, 0.4, 0.5, 0.6], dtype=np.float32),  # baz
]

# Number of results to return
num_results = 2

# Method parameter
method = 'cosine'

ARGS = {
    'words': words,
    'vec': vec,
    'id_to_word': id_to_word,
    'df': df,
    'num_results': num_results,
    'method': method
}
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 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
format_epoch_str Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nectar/nectar/theanoutil/model.py
code served (permissive licence) · get_code("0d4400d162743098")
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
from collections import defaultdict

torch.manual_seed(0)

# Analyze the function:
# - name: str (used in formatting)
# - metrics: dict-like (iterated over with for k in metrics, accessed with metrics[k])
# - str_len_dict: dict (accessed and modified with str_len_dict[len_key])

name = "train"

metrics = {
    "loss": 0.1234,
    "accuracy": 0.9876,
    "f1_score": 0.8765
}

str_len_dict = defaultdict(int)

ARGS = {
    "name": name,
    "metrics": metrics,
    "str_len_dict": str_len_dict
}
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
get_cache_filename_from_args Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nearest_glove/utils.py
code served (permissive licence) · get_code("47eea3afc458a05e")
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.

class Args:
    def __init__(self, vector_dim, num_words, num_clusters):
        self.vector_dim = vector_dim
        self.num_words = num_words
        self.num_clusters = num_clusters

ARGS = {
    'args': Args(vector_dim=128, num_words=50000, num_clusters=100)
}
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
get_label_dictionaries Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nearest_glove/utils.py
code served (permissive licence) · get_code("c7eebf1fb92eae8e")
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 the function:
# - It takes labels_array as input
# - It uses len(labels_array) to get the length
# - It zips range(len(labels_array)) with labels_array
# - It iterates over labels_array to create dictionaries
# - labels_array should be a sequence of label strings/values

# Create a simple labels array
labels_array = ["cat", "dog", "bird", "fish"]

ARGS = {
    "labels_array": labels_array
}
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
longest_common_substring Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nearest_glove/get_nearest.py
code served (permissive licence) · get_code("5dd05013737324f6")
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.

from difflib import SequenceMatcher

def longest_common_substring(string1, string2):
    match_obj = SequenceMatcher(None, string1, string2).find_longest_match(0, len(string1), 0, len(string2))
    return match_obj.size

ARGS = {
    "string1": "hello world",
    "string2": "hello there"
}
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 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
lookup_answer_generate Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/answer_rules.py
code served (permissive licence) · get_code("de3171c2eb7de98f")
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 function. 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 random

def checker_func(a, tokens, question, **kwargs):
    """Mock checker that returns a tuple of (answer, tokens)"""
    return (a, tokens)

def create_ans_cache():
    """Create a mock answer cache with the structure expected by the function"""
    ans_cache = {
        "rule1": {
            "5": [
                ("sample answer one", [
                    {'originalText': 'sample', 'pos': 'NN', 'word': 'sample'},
                    {'originalText': 'answer', 'pos': 'NN', 'word': 'answer'},
                    {'originalText': 'one', 'pos': 'CD', 'word': 'one'},
                    {'originalText': 'extra', 'pos': 'JJ', 'word': 'extra'},
                    {'originalText': 'token', 'pos': 'NN', 'word': 'token'},
                ]),
                ("another response here", [
                    {'originalText': 'another', 'pos': 'DT', 'word': 'another'},
                    {'originalText': 'response', 'pos': 'NN', 'word': 'response'},
                    {'originalText': 'here', 'pos': 'RB', 'word': 'here'},
                    {'originalText': 'with', 'pos': 'IN', 'word': 'with'},
                    {'originalText': 'tokens', 'pos': 'NNS', 'word': 'tokens'},
                ]),
            ],
            "4": [
                ("the quick brown fox", [
                    {'originalText': 'the', 'pos': 'DT', 'word': 'the'},
                    {'originalText': 'quick', 'pos': 'JJ', 'word': 'quick'},
                    {'originalText': 'brown', 'pos': 'JJ', 'word': 'brown'},
                    {'originalText': 'fox', 'pos': 'NN', 'word': 'fox'},
                ]),
            ],
            "3": [
                ("simple test case", [
                    {'originalText': 'simple', 'pos': 'JJ', 'word': 'simple'},
                    {'originalText': 'test', 'pos': 'NN', 'word': 'test'},
                    {'originalText': 'case', 'pos': 'NN', 'word': 'case'},
                ]),
            ],
        }
    }
    return ans_cache

ARGS = {
    "checker": checker_func,
    "rule": "rule1",
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
lookup_title_generate Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/bridge_entity_rules.py
code served (permissive licence) · get_code("7e97f29471939565")
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 function. 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 random

def lookup_title_generate(checker, rule):
    """
    uses cached list of old answers to generate a real answer, return None if it
    does not pass the checker function
    """

    def func(a, tokens, question, title_cache, **kwargs):
        fake = checker(a, tokens, question, **kwargs)
        if fake is None:
            return None
        tok_len = len(tokens)
        counter = 0
        new_ans = a
        while new_ans == a:
            if tok_len <= 0:
                return None
            counter2 = 0
            while True:
                if str(tok_len) in title_cache[rule]:
                    new_ans, new_ans_tok = random.choice(title_cache[rule][str(tok_len)])
                    if a.lower().startswith('the ') and new_ans.lower().startswith('the ') is False or (a.lower().startswith('the ') is False and new_ans.lower().startswith('the ')):
                        counter2 += 1
                        if counter2 == 40:
                            break
                    else:
                        break
                else:
                    tok_len -= 1
                    if tok_len <= 0:
                        return None
            counter += 1
            if counter == 40:
                tok_len -= 1
                counter = 0
        if a.lower().startswith('the ') and new_ans.lower().startswith('the ') is False:
            new_ans = 'The ' + new_ans
            new_ans_tok = [{'originalText': 'The', 'pos': 'DT', 'word': 'the'}] + new_ans_tok
            assert counter2 == 40
        return (new_ans, new_ans_tok)
    return func


def dummy_checker(a, tokens, question, **kwargs):
    return True


def dummy_token_dict():
    return {'originalText': 'word', 'pos': 'NN', 'word': 'word'}


ARGS = {
    'checker': dummy_checker,
    'rule': 'test_rule',
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
rejoin Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nectar/nectar/corenlp/util.py
code served (permissive licence) · get_code("d76d37fbb1793177")
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.

# Setup code for rejoin function

ARGS = {
    'tokens': [
        {
            'originalText': 'Hello',
            'before': ' '
        },
        {
            'originalText': 'world',
            'before': ' '
        },
        {
            'originalText': '!',
            'before': ''
        }
    ],
    'sep': None
}
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
word_arithmetic Ran
ran on a synthesized input
jiangycTarheel/Adversarial-MultiHopQA/nearest_glove/get_nearest.py
code served (permissive licence) · get_code("5eb2a8cac799f452")
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 numpy as np

torch_manual_seed = 0

# Create a small embedding matrix (df) - 6 words, 4-dimensional embeddings
np.random.seed(0)
embeddings = np.random.randn(6, 4).astype(np.float32)
df = embeddings

# Create word_to_id and id_to_word mappings
words_list = ['king', 'queen', 'man', 'woman', 'prince', 'princess']
word_to_id = {word: idx for idx, word in enumerate(words_list)}
id_to_word = {idx: word for word, idx in word_to_id.items()}

# Test parameters for word_arithmetic
start_word = 'king'
minus_words = ['man']
plus_words = ['woman']
num_results = 3

ARGS = {
    'start_word': start_word,
    'minus_words': minus_words,
    'plus_words': plus_words,
    'word_to_id': word_to_id,
    'id_to_word': id_to_word,
    'df': df,
    'num_results': num_results
}
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 — 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
load_ans_title_cache Not yet run
unverified (harvested, no recorded run)
jiangycTarheel/Adversarial-MultiHopQA/convert_sp_facts.py
code served (permissive licence) · get_code("f609cb7c4f3715ca")
How it ran

no invocation recorded.

load_cache Not yet run
unverified (harvested, no recorded run)
jiangycTarheel/Adversarial-MultiHopQA/convert_sp_facts.py
code served (permissive licence) · get_code("4bc6c631e9149f9d")
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, 0 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 13 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.

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

Multi-hop question answering requires a model to connect multiple pieces of evidence scattered in a long context to answer the question. In this paper, we show that in the multi-hop HotpotQA (Yang et al., 2018) dataset, the examples often contain reasoning shortcuts through which models can directly locate the answer by word-matching the question with a sentence in the context. We demonstrate this issue by constructing adversarial documents that create contradicting answers to the shortcut but do not affect the validity of the original answer. The performance of strong baseline models drops significantly on our adversarial evaluation, indicating that they are indeed exploiting the shortcuts rather than performing multi-hop reasoning. After adversarial training, the baseline's performance improves but is still limited on the adversarial evaluation. Hence, we use a control unit that dynamically attends to the question at different reasoning hops to guide the model's multi-hop reasoning. We show that this 2-hop model trained on the regular data is more robust to the adversaries than the baseline model. After adversarial training, this 2-hop model not only achieves improvements over its counterpart trained on regular data, but also outperforms the adversarially-trained 1-hop baseline. We hope that these insights and initial improvements will motivate the development of new models that combine explicit compositional reasoning with adversarial training.

For agents

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

get_harvested_code_for_paper("1906.07132")
get_code_for_paper("1906.07132")
have("1906.07132")

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

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

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

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

Connect an agent — have() is free.