SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.07158 · 2026

Topic Is Not Agenda: A Citation-Community Audit of Text Embeddings

Junseon Yoo

arXiv · PDF

Code that ran

5 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 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/2605.07158.json · badge: /api/ran/2605.07158.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
junseon-yoo/topic-not-agenda canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
is_boilerplate Ran
ran, violated the contract we drafted
junseon-yoo/topic-not-agenda/code/eval/full_sweep.py
code served (permissive licence) · get_code("7a330082f3bf1df3")
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

BOILERPLATE_TITLE = {'editorial board', 'front cover', 'back cover', 'front matter', 'back matter', 'table of contents', 'author index', 'subject index', 'retraction', 'corrigendum', 'erratum', 'acknowledgments'}

def is_boilerplate(t: str | None, a: str | None) -> bool:
    tl = (t or '').strip().lower()
    al = (a or '').strip().lower()
    if not tl or len(al) < 200:
        return True
    for kw in BOILERPLATE_TITLE:
        if kw in tl:
            return True
    if re.search('\\bvolume\\s+\\d+\\s+issue\\s+\\d+', tl):
        return True
    return False

ARGS = {
    't': 'Editorial Board',
    'a': 'This is a longer abstract text that contains substantial content. ' * 10,
}
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
jsd_dict Ran
ran, honoured the contract we drafted
junseon-yoo/topic-not-agenda/code/eval/lexical_divergence.py
code served (permissive licence) · get_code("8f5becf40fa89e11")
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 numpy as np

# The function jsd_dict computes Jensen-Shannon Divergence between two probability distributions
# represented as dictionaries. It requires:
# - p: dict with numeric keys/values representing a probability distribution
# - q: dict with numeric keys/values representing a probability distribution

# Create two simple probability distributions as dictionaries
p = {
    'a': 0.5,
    'b': 0.3,
    'c': 0.2
}

q = {
    'a': 0.4,
    'b': 0.35,
    'c': 0.25
}

ARGS = {
    'p': p,
    'q': q
}
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 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
last_token_pool Ran
ran; our contract draft was wrong, not the code
junseon-yoo/topic-not-agenda/code/embeddings/embed_qwen3.py
code served (permissive licence) · get_code("f0ae4e135bfc9af9")
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

torch.manual_seed(0)

# Construct valid arguments for last_token_pool
# The function expects:
# - h: a tensor of shape (batch_size, seq_len, hidden_dim)
# - mask: a tensor of shape (batch_size, seq_len) with binary values

batch_size = 2
seq_len = 3
hidden_dim = 4

# Create h tensor (hidden states)
h = torch.randn(batch_size, seq_len, hidden_dim)

# Create mask tensor
# We'll create a mask where not all sequences are left-padded
# so the function exercises both branches
mask = torch.tensor([
    [1, 1, 1],  # sequence 0: no padding, last token is at index 2
    [1, 1, 0],  # sequence 1: right padding, last token is at index 1
], dtype=torch.long)

ARGS = {
    "h": h,
    "mask": mask,
}
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
stats_for_pids Ran
ran; our contract draft was wrong, not the code
junseon-yoo/topic-not-agenda/code/eval/compare_methods.py
code served (permissive licence) · get_code("40842e7a5a492d8b")
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
import numpy as np
from collections import Counter, defaultdict

torch.manual_seed(0)

# Construct arguments for stats_for_pids
pids = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
k = 5

# l1_of: dict mapping pids to some label/value
l1_of = {
    1: 'class_a',
    2: 'class_a',
    3: 'class_b',
    4: 'class_a',
    5: 'class_c',
    7: 'class_b',
    9: 'class_a'
}

# l2_of: dict mapping pids to some other label/value
l2_of = {
    1: 'type_x',
    2: 'type_x',
    3: 'type_y',
    4: 'type_z',
    5: 'type_x',
    8: 'type_y',
    10: 'type_z'
}

ARGS = {
    'pids': pids,
    'k': k,
    'l1_of': l1_of,
    'l2_of': l2_of
}
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 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
tokenize Ran
ran; our contract draft was wrong, not the code
junseon-yoo/topic-not-agenda/code/eval/lexical_divergence.py
code served (permissive licence) · get_code("ac9b1a0705cfa5b0")
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 re

STOPWORDS = set('a about above after again against all am an and any are aren as at be because been before being\nbelow between both but by could did do does doing don down during each few for from further had has have having he her here\nhers herself him himself his how i if in into is it its itself just me more most my myself no nor not now of off on once\nonly or other our ours ourselves out over own re s same she should so some such t than that the their theirs them themselves\nthen there these they this those through to too under until up very was we were what when where which while who whom why\nwill with would you your yours yourself yourselves\nabstract paper study research method approach result finding novel propose proposed using used analysis based show shown\ndemonstrate present new however these those one two three may can has have are is was were been being thus moreover\nfurthermore therefore here we our this study results show shown demonstrate suggest indicate found observed obtained\nprovided provide ie eg al et fig figure table'.split())

TOKEN_RE = re.compile('[a-z][a-z0-9]+')

def tokenize(text: str) -> list[str]:
    if not text:
        return []
    return [t for t in TOKEN_RE.findall(text.lower()) if len(t) >= 3 and t not in STOPWORDS]


ARGS = {
    'text': 'This is a novel research paper about deep learning methods and neural networks for image classification tasks.'
}
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
process_community Not yet run
unverified (harvested, no recorded run)
junseon-yoo/topic-not-agenda/code/community/hierarchical_leiden.py
code served (permissive licence) · get_code("8b62cf65148d5275")
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-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

Vector search and retrieval-augmented generation (RAG) rest on the assumption that cosine similarity between text embeddings reflects conceptual relatedness. We measure where this assumption breaks. We build an augmented citation graph over 3.58M scientific papers and partition it via Leiden CPM at two granularities: sub-field (L1) and research-agenda (L2, hierarchical inside each L1). Four state-ofthe-art embeddings (Gemini, Qwen3-8B, Qwen3-0.6B, SPECTER2) clear the L1 bar reasonably (45-52% top-10 same-rate) but stop working at L2: only 15-21% of top-10 neighbors share the query's research agenda. In absolute terms, 8 of every 10 retrieved papers are off-agenda. The failure is universal across eight scientific domains and all four models; SPECTER2, despite its citation-based contrastive training, is the weakest. As a diagnostic probe, we test whether the same augmented graph also functions as a retrieval signal: a deliberately simple citation-count rerank reaches 57.7% top-1 L2 on top of LLM-expanded Boolean retrieval and 59.6% on top of plain BM25, on 80 curated agenda queries -about 9 points above the best cosine retriever (Gemini, 50.6%) and 20 points above BM25 alone (39.3%). The probe isolates a slice of the agenda-matching signal the graph carries but the embeddings miss, connecting recent theoretical limits on single-vector retrieval to a concrete failure mode of scientific RAG. Every deployed vector database -Pinecone, Weaviate, Milvus, Qdrant, Chroma, FAISS-backed stacks -treats high cosine similarity between text embeddings as a proxy for conceptual relatedness. Recent theoretical work questions this proxy. Steck et al. [2024] show that the cosine of learned embeddings inherits implicit training-time scalings and is not an intrinsic semantic quantity; Weller et al. [2026] prove that for any fixed embedding dimension there exist query-document relevance structures no single-vector retriever can represent. What is missing is an empirical measurement of where this proxy breaks in a high-stakes retrieval domain and at what granularity. Scientific literature is a good setting. Each paper comes with a verified structural signal -its references -which encode expert judgment about which prior work it builds on. We use this signal to build two citation partitions of a 3.58M-paper augmented citation graph: a sub-field level (L1, 73K Leiden-CPM communities) and a finer research-agenda level (L2, 329K communities, hierarchical inside each L1). We then ask, for each query paper, whether its top-k text-embedding neighbors share its community at each level, for four state-of-the-art embeddings (Gemini, Qwen3-8B, Qwen3-0.6B, SPECTER2) over eight scientific domains.

For agents

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

get_harvested_code_for_paper("2605.07158")
get_code_for_paper("2605.07158")
have("2605.07158")

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

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

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

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

Connect an agent — have() is free.