Keystone

io.github.Srikarmk由 GitHub 账号 Srikarmk 发布v0.1.0更新于 Oct 25, 2026

从arXiv论文的LaTeX原文中逐字读取其依据、质疑和假设的内容。不使用LLM。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

What an arXiv paper builds on, disputes and assumes, read verbatim from its LaTeX. No LLM.

已验证Streamable HTTP可网页运行知识与记忆

概览

Keystone 的托管 MCP 服务(keystone-research.vercel.app);无需登录;Streamable HTTP;3 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

端点
keystone-research.vercel.app
最近检查

安装

在 SourceWeft 中

  1. 打开 控制台中的 Keystone,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.Srikarmk%2Fkeystone/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "keystone": {
      "type": "http",
      "url": "https://keystone-research.vercel.app/api/mcp"
    }
  }
}

README

Keystone

[Live site] [Case study] [MCP registry] [License]

What is this paper standing on?

Live: https://keystone-research.vercel.app

No paper stands by itself. Each one adopts a method from somebody, argues with somebody else, and takes a handful of things on faith without flagging them. Keystone reads all three out of the paper's own LaTeX — not a summary, not a retrieval index, no model in the loop — and pins each one to the pixels on the page where the paper says it.

The name is the thesis, and it took a pivot to earn it. A keystone is the one stone an arch collapses without, and for almost every paper that stone belongs to somebody else.

Three things, all quoted rather than inferred:

  • What it stands on. A citation is not a neutral pointer. "Following \cite{ba2016layer} we normalise each layer" and "Unlike \cite{ba2016layer}, we normalise across the batch" are opposite statements about the same paper, and the difference is written down. Every citation site is classified from its cue phrase, and the cue is shown, so the reading is something you can disagree with.
  • What it takes on faith. Authors announce their assumptions because the genre requires it — "we hypothesize", "for simplicity", "it is well known that". Each is quoted next to what the paper offers in the same sentence: a citation, a pointer to its own evidence, or nothing at all.
  • The graph. Where a cited paper is also in the library the edge is walkable in both directions, so a paper shows both what it stands on and who stands on it. Across 234 papers that is 548 links, each carrying the sentence that placed it, and the chain is the real one: VGG → ResNet → Transformer → BERT / ViT / LLaMA, with batch and layer normalisation feeding in.

The library grows along its own citations. keystone expand reads every reference the library already resolves to arXiv, ranks them by how many papers take a stance on each, and fetches the top of that list — so each new paper arrives with at least one edge already attached rather than as an isolated node.

ResNet's central hypothesis — that residual mappings are easier to optimise than unreferenced ones — is stated once, in the introduction, with nothing offered for it. Page 2.

And it is often silent, and sometimes wrong. A cue read out of position produces a confident opposite rather than a vague answer, so the error rate is published rather than implied — and measured on somebody else's labels, because a rate measured on the same papers the rules were written against is not a rate, it is a restatement.

Scored against SciCite (11,014 citation contexts, Cohan et al. 2019) and ACL-ARC (1,941, Jurgens et al. 2018), neither of which contributed a single cue phrase:

citationsreadof those, right
SciCite11,0144.0%80.0% [76–84%]
ACL-ARC1,9418.3%68.9% [61–76%]

Both numbers matter. Keystone is built to refuse: no cue phrase written down, no stance reported, nothing shown. On a broad corpus that means it declines most citations — "using CMet cardiac metric software [12]" is a real adoption whose only evidence is knowing what CMet is. Its macro-F1 is 0.325 and 0.204, below the 0.273 a cue-phrase system from 2000 scores on ACL-ARC and far below the 0.84–0.889 of trained neural classifiers, because macro-F1 punishes silence exactly as hard as error. That figure is published too; leaving it out would be the convenient choice.

On 90 citations from this library labelled by hand, accuracy is 87% [78–92%] and macro-F1 0.84, against 0.59 for a bag-of-words classifier over the same sentences. That sample says the rules are self-consistent, not that they travel — see eval/corpora/README.md, which also records the three real defects scoring against public labels found and fixed. Roughly one reading in five is wrong either way, which is why every row shows the sentence and the cue it keyed on.

Why not audit the arithmetic? That was the first version, and it shipped. A paper's numbers can only be reported as an absence of errors, and careful papers have none: across nine foundational papers the check suite correctly produced zero findings, so its best possible output was a blank page. The numeric analysis is still here — claims traced to table cells, every number indexed, baselines checked against the papers they cite — but below the lineage, where a detail belongs. See RELEASE.md for the pivot.

Landscape

Two things are true and worth stating plainly.

The mainstream tools — SciSpace, ChatPDF, Elicit, Paperguide, NotebookLM — are all the same pipeline: chunk, embed, retrieve, answer, cite a page number. They compete on corpus size and polish, not capability.

But Keystone is not the first tool to pin paper criticism to the page. Loupe (Apache 2.0) reviews scientific papers in a cheap triage pass followed by an opt-in deep dive, and pins every finding to a bounding box verified by a vision model. Someone converging independently on pixel-pinned findings is evidence the direction is right. Where Keystone differs:

LoupeKeystone
VerdictsLLM judgementDeterministic code — statcheck/GRIM recompute, arithmetic re-derivation, abstract↔table tracing
LocalizationMinerU → markdown, vision pass confirms the boxWord geometry, measured: 99.94% verified, 0/359 fabrications anchored
Source of truthOCR'd markdownarXiv LaTeX source — exact equations, table numbers, \cite keys
Citationsflags "citation required"fetches the cited paper and checks entailment
Finding structureflat severity-ranked listclaim DAG with load-bearing ranking
Emphasisproof and reasoning defectsempirical defects — baseline fairness, leakage, variance, SOTA scope

Loupe's issue taxonomy (logic, quantifier scope, missing step) is oriented at proofs. Keystone's is oriented at experiments, which is where ML/CS papers actually go wrong.

Status

Live at https://keystone-research.vercel.app. The numbers below are read from the generated JSON the build writes, so they cannot drift from the run that produced them.

Papers analysed234
Citation readings1524, 90.7% anchored to the page
Assumptions973, of which 838 state nothing in support
Walkable paper-to-paper edges548
Tests274 Python, 49 JavaScript

The anchor layer. Tight anchors survive an independent geometric round-trip through MuPDF rather than through the matcher's own index; the gate is ≥99% and the suite refuses to build below it. Real spans are never rejected and fabricated quotes are never anchored — both are gated at zero. Roughly 93% of a paper's LaTeX sentences can be found in its PDF, and a source that matches its PDF on fewer than a quarter of sampled sentences is refused outright rather than published.

The cue rules, scored on somebody else's labels. Against SciCite (11,014 citation contexts) the rules report a stance for 4% of citations and are right about 80% of those, 95% CI 76–84%. Macro-F1 is 0.325 against neural classifiers near 0.84, and that gap is the deliberate trade: macro-F1 punishes silence exactly as hard as error, and this is built to be silent where a sentence carries no cue. See /method on the site.

What runs. The reader with pixel-anchored highlights, highlights and notes for signed-in readers, Google sign-in with cross-device sync, search and a library guide, library-wide views (/timeline, /contested, /assumptions), a feed of new work (/news), on-demand analysis of any arXiv paper that ships LaTeX source, an MCP server at /api/mcp, and cookieless analytics.

Deliberately not built. Per-visitor tracking, and any claim the parser cannot anchor. The deterministic numeric checks were largely retired: on carefully reviewed papers their best case was a blank page, and the project's value turned out to be lineage rather than arithmetic. See RELEASE.md.

Why the anchor layer got this much attention

Every downstream claim depends on it. A finding that says "the abstract reports 94.2% but Table 3 says 93.8%" is worthless unless the reader can click it and land on both numbers. Getting there took several rounds of measurement, and the interesting part was that the first three failures were in the test, not the code:

  • Round-trip started at 67.6%. Cause: a tall ( from a display formula legitimately clips into a body line, breaking exact string containment.
  • Union bounding boxes let one tall glyph (→∞) stretch a line's highlight over the whole of the next line. Real defect; fixed with median line boxes.
  • Content-stream word order and clipped-text order genuinely differ across columns and table rows, so any whole-span ordering assertion is invalid. Now checked per rectangle, where order is unambiguous — a stricter test, not a looser one.
  • Fuzzy matching accepted 5.9% of fabricated quotes while matching zero of 1846 real spans. partial_ratio scores the best window, so a single substituted word barely moves it: "Trade, feature 9-50" scored 93.6 against "Trade, pages 9-50". For a tool whose job is verifying what a paper says, that is the worst possible failure mode. Fuzzy is now opt-in, with a word-substitution guard.

Anchors self-report precision (tight / approximate), and verification holds each to its own contract. In stacked geometry — a fraction's numerator over its denominator — no axis-aligned rectangle can be tight, so an anchor says so instead of implying a precision it does not have.

What the checks taught us

Every false positive the suite has ever produced was a trigger error, not an arithmetic error — which is the specific danger of deterministic checking. A check that computes correctly but fires on the wrong premise asserts nonsense with certainty, and is worse than a model's hedged guess. The four that reached real papers:

  • Substring label matching. "sum" in "summarization" and "avg" in "avg pool" turned a method name and a layer name into aggregate rows, producing 21 high-severity findings on correct tables. Labels are now matched whole.
  • Assumed orientation. Bold marks the best down a column in some tables and across a row in others. Assuming the first produced 31 confident findings on one correct InstructGPT table. Orientation is now inferred per table and validated.
  • Ignored band structure. A results table is banded — prior work, a rule, then the authors' rows — and "best" is a claim about a band. Judging the Transformer's Table 2 down the whole column reported the best ensemble as a middling value. \midrule is now kept as structure rather than stripped as formatting.
  • Comparing unlike quantities. A ResNet row holding [email protected] and mAP@[.5,.95] for two datasets was compared end to end, reporting the smaller metric as failing to be best. Row comparisons now group by the innermost column header when those headers repeat.

The common remedy is the same in each case: a check must validate its own premise before stating its conclusion. A total row is only reported as wrong if it adds up correctly in some other column; emphasis is only read as "best" if that reading explains the paper's other markers.

What limits recall is not the arithmetic but the frame: whether a table compares down columns or across rows, and which rows are peers. That is exactly the kind of judgement the plan assigns to the model — extraction and routing — while the verdict stays arithmetic.

Layout

services/core/keystone/ingest/├── normalize.py      skeleton projection: ligatures, accents, dashes, hyphenation├── pdf.py            MuPDF word geometry — the ground truth├── anchors.py        quote -> rectangles, with the rejection path├── verify.py         independent round-trip through MuPDF, per precision contract├── regions.py        stacked geometry, rotated lines, maths classification├── furniture.py      running heads, page numbers, the rotated arXiv stamp├── latex.py          arXiv source: equations, tables, citations, sentence runs├── arxiv_source.py   e-print fetch, unpack, main-file resolution├── tables.py         LaTeX tabular -> typed cells, with emphasis and bands├── assemble.py       ingested sources -> Paper└── sampling.py       span sampling for the anchor audit
services/core/keystone/├── lineage/stance.py       the cue rules: adopts / extends / disputes / compares├── lineage/assumptions.py  what a paper takes on faith, and what it offers for it├── lineage/graph.py        paper-to-paper edges, for the library views├── audit/numbers.py        number parsing that preserves reported precision├── audit/registry.py       check registration and the runner├── audit/checks/tables.py  table consistency checks├── graph/models.py         the typed structures checks reason over├── eval/external.py        scoring the cue rules on SciCite and ACL-ARC└── eval/planted.py         planting known defects to measure detection

The reader and everything served from it:

apps/web/├── app/                    routes: the reader, the library views, /news, /stats├── app/api/                account, marks, chat, guide, feed, mcp, track├── app/api/ingest.py       Python function: analyse any arXiv paper on request├── components/             the reader, the page view, the graph, the timeline├── lib/                    marks geometry, anchors, analytics, feeds, the store├── test/                   node --test, no framework└── public/dossiers/        the built library, committed so the site needs no database

Running it

bash
cd services/core && uv sync

Fetch the test corpus (ten public arXiv PDFs):

bash
./eval/fetch_corpus.sh

Run the gates:

bash
cd services/core && uv run pytest -q

Audit anchor accuracy across the corpus:

bash
cd services/core && uv run keystone audit ../../eval/corpus/pdf/*.pdf --samples 150 --hyphen-samples 40

Measure how much arXiv LaTeX source anchors back into each PDF:

bash
cd services/core && uv run keystone source-audit ../../eval/corpus/pdf/*.pdf

Run the deterministic checks, and measure them against planted defects:

bash
cd services/core && uv run keystone check 1706.03762 1810.04805
bash
cd services/core && uv run keystone planted-audit 1706.03762 1512.03385 1810.04805 --verbose

Inspect one quote, and render its highlight to an image to eyeball:

bash
cd services/core && uv run keystone probe ../../eval/corpus/pdf/1706.03762.pdf "The Transformer allows for significantly more parallelization"

The arXiv source path

For any arXiv paper the actual LaTeX is available at arxiv.org/e-print/{id}, which gives exact equations, table numbers as the author wrote them, and real \cite keys — none of which are reliably recoverable from rendered glyphs. Source-derived text is then anchored back into the PDF so those facts still have pixel coordinates.

Sentence-level alignment reached 93.5% through four fixes, each found by measurement: expanding argument-less user macros (\etal, a method shorthand) that otherwise leave holes where the PDF shows text; brace-matched removal of macro definitions, since nested braces defeat a regex; excluding page furniture; and splitting runs into sentences.

Submissions that wrap a pre-compiled PDF (\includepdf) raise SourceUnavailable rather than returning an empty document — reporting "no equations, no tables" would be a false statement about the paper rather than an absence of information about it.

来源:README.md,提交 58755a0

工具

3

search_library

Search what Keystone read

Search 2497 readings taken from 234 arXiv papers' LaTeX source: citation stances (adopts, extends, disputes, measures against) and stated assumptions. Matches on the quoted sentence, the cue phrase that decided it, and the work cited. Returns the sentence verbatim with a link to the exact line.

输入参数limitquery必填stance

read_paper

Read one paper's citations and assumptions

Everything Keystone reads out of one arXiv paper: what it adopts, extends, disputes and measures against, and the assumptions it states with a citation, its own evidence, or nothing at all. Works for any paper on arXiv that ships LaTeX source — one outside the library is parsed on demand, which takes a few seconds. Nothing is summarised or inferred; every line is the paper's own.

输入参数includearxiv_id必填

list_disagreements

Where the library argues with itself

Every sentence in the library where a paper says prior work is wrong, or puts itself beside it to win. Small on purpose — disagreement is rare and concentrated, and the whole set is readable.

输入参数kindlimit

版本历史

1
  1. v0.1.0最新Oct 20, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分