SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1802.08301 · 2018

Content-Based Citation Recommendation

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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; 0 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/1802.08301.json · badge: /api/ran/1802.08301.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
allenai/citeomatic canonical (classifier label)
classifier basis: census
3 ran · 3 no recorded run
FunctionStatusWhere it lives
average_results Ran
ran on a synthesized input
allenai/citeomatic/citeomatic/eval_metrics.py
code served (permissive licence) · get_code("ab322c297ec54582")
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. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:36:13Z. 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

# Construct valid arguments for average_results function
# The function expects a list of result dictionaries, each containing:
# 'precision', 'recall', 'f1' (arrays/lists), and 'mrr' (scalar)

results = [
    {
        'precision': np.array([0.8, 0.75, 0.9]),
        'recall': np.array([0.85, 0.7, 0.88]),
        'f1': np.array([0.82, 0.72, 0.89]),
        'mrr': 0.9
    },
    {
        'precision': np.array([0.7, 0.85, 0.95]),
        'recall': np.array([0.75, 0.8, 0.92]),
        'f1': np.array([0.72, 0.82, 0.93]),
        'mrr': 0.85
    },
    {
        'precision': np.array([0.9, 0.8, 0.85]),
        'recall': np.array([0.88, 0.82, 0.87]),
        'f1': np.array([0.89, 0.81, 0.86]),
        'mrr': 0.88
    }
]

ARGS = {
    'results': results
}
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 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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
label_for_doc Ran
ran on a synthesized input
allenai/citeomatic/citeomatic/features.py
code served (permissive licence) · get_code("160605c1d5a76df4")
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 float64, ndim 0, dtype family float; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:36:13Z. 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

class Document:
    def __init__(self, in_citation_count):
        self.in_citation_count = in_citation_count

d = Document(in_citation_count=5)
offset = 0.1

ARGS = {
    "d": d,
    "offset": offset
}
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 float64, ndim 0, dtype family float — no output shape is stated: no later run recorded an output shape for this sample (observed_output and metamorphic_properties carry none; shape_contract and output_contract record ndim only)
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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
precision_recall_f1_at_ks Ran
ran on a synthesized input
allenai/citeomatic/citeomatic/eval_metrics.py
code served (permissive licence) · get_code("d05b36414cd0d1a2")
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. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:36:13Z. 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

# Setup for precision_recall_f1_at_ks function
# The function takes:
# - gold_y: list of true labels
# - predictions: list of predicted labels
# - scores: optional list of scores for ranking predictions
# - k_list: optional list of k values

# Create simple test data
gold_y = [1, 3, 5, 7]  # True labels

predictions = [1, 2, 3, 4, 5, 6, 7, 8]  # Predicted labels

scores = [0.9, 0.2, 0.85, 0.3, 0.8, 0.1, 0.95, 0.05]  # Scores for ranking

k_list = [1, 3, 5]  # K values to evaluate at

ARGS = {
    'gold_y': gold_y,
    'predictions': predictions,
    'scores': scores,
    'k_list': k_list
}
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 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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
f1 Not yet run
unverified (harvested, no recorded run)
allenai/citeomatic/citeomatic/eval_metrics.py
code served (permissive licence) · get_code("9bffd8f716f06256")
How it ran

no invocation recorded.

jaccard Not yet run
unverified (harvested, no recorded run)
allenai/citeomatic/citeomatic/features.py
code served (permissive licence) · get_code("feed8111f464e997")
How it ran

no invocation recorded.

s3_location_to_object Not yet run
unverified (harvested, no recorded run)
allenai/citeomatic/citeomatic/file_util.py
code served (permissive licence) · get_code("b9093e9e22874775")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 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 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.

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-22.

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 present a content-based method for recommending citations in an academic paper draft. We embed a given query document into a vector space, then use its nearest neighbors as candidates, and rerank the candidates using a discriminative model trained to distinguish between observed and unobserved citations. Unlike previous work, our method does not require metadata such as author names which can be missing, e.g., during the peer review process. Without using metadata, our method outperforms the best reported results on PubMed and DBLP datasets with relative improvements of over 18% in F1@20 and over 22% in MRR. We show empirically that, although adding metadata improves the performance on standard metrics, it favors self-citations which are less useful in a citation recommendation setup. We release an online portal (http://labs.semanticscholar.org/citeomatic/) for citation recommendation based on our method, and a new dataset OpenCorpus of 7 million research articles to facilitate future research on this task.

For agents

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

get_harvested_code_for_paper("1802.08301")
get_code_for_paper("1802.08301")
have("1802.08301")

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

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

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

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

Connect an agent — have() is free.