GraphIV whole-paper embeddings
Full-text embeddings of arXiv papers, made to measure how much a paper's body adds to retrieval in GraphIV, an open citation graph of arXiv. One vector a paper: its title, abstract and every kept body section embedded as one document of up to 32,768 tokens. A paper with no body keeps its title and abstract.
Source
Every paper is one of the 3,186,931 in kkuroma/GraphIV at tag GraphIV-2026-10-01, and arxiv_id joins these vectors to its papers table. The body comes from the paper's PDF on the arXiv mirror on Google Cloud Storage, read with PyMuPDF: its first 24 pages, cut at the first references heading in the back 60% of the text, or where a bibliography numbered from 1 begins, with the appendix, acknowledgements and other back matter left out. On a random 3,000 papers the references cut is found for 93.5%, about 1.2% keep part of a bibliography, and about 2.5% are cut early, their abstract and introduction kept.
Variants
| config | model | dims | tokens a chunk | body chunks | document prompt | query prompt |
|---|---|---|---|---|---|---|
harrier-0.6b-full32768 |
microsoft/harrier-oss-v1-0.6b | 1024 | whole paper | 1 | none | the instruction below |
The instruction is Instruct: Given a research question, retrieve the arXiv papers a literature review answering it would cite\nQuery: . Every model ran through vLLM's pooling runner in bfloat16, and its vectors are L2-normalized and stored as float16.
Schema
arxiv_id (string), embedding (float16 list, the model's width), chunk (int16, 1 for the whole paper, 0 when the paper fell back to its title and abstract).
coverage.parquet holds one row a paper: arxiv_id, n_chunks (the paper's rows in this variant), cut (how the bibliography was found: heading, citations or empty) and reason, which is ok when the body was embedded and otherwise empty_body, parse_failed or no_pdf. About 0.12% of papers fall back to their title and abstract alone.
Use
from datasets import load_dataset
vectors = load_dataset("cstorm125/graphiv_pdf_whole_paper_embeddings", "harrier-0.6b-full32768", split="train")
coverage = load_dataset("cstorm125/graphiv_pdf_whole_paper_embeddings", "harrier-0.6b-full32768-coverage", split="train")
Queries must carry the model's own query prompt, listed under Variants, and every vector is unit length, so a dot product is the cosine. Rank papers by the cosine of their one vector.
Results
On harrier-0.6b, test split of kkuroma/GraphIV_benchmarks, recipes refit for each variant, the change from the same model's title and abstract vectors on SurveyMatch recall@1000:
| variant | cosine only | with BoundedField's survey recipe |
|---|---|---|
| best chunk, 512 tokens | +0.020 | +0.005 |
| best chunk, 2,048 tokens | +0.015 | +0.005 |
qwen3-0.6b gains +0.024 and +0.011 at 512 tokens, and +0.018 and +0.008 at 2,048. The full tables, with every benchmark and 95% intervals, are in scripts/embedding_sweep/README.md of the GraphIV repository.
License
The vectors are derived from arXiv papers, whose licenses vary from paper to paper, and from kkuroma/GraphIV, which is CC BY-NC 4.0, so this dataset is CC BY-NC 4.0 too. arXiv's terms apply to the papers themselves. The embedding models carry their own licenses, linked below.
- Downloads last month
- 83