ArXiv Second Brain¶
TL;DR¶
- What: a personal research wiki synthesised by Claude Opus 4.7 from arXiv papers, published as a static site. 23 papers, 58 pages, 1 mindmap.
- Pattern: Karpathy's three-layer LLM Wiki — raw PDFs (Layer 1) → curated wiki pages (Layer 2) → slim schema + on-demand skills (Layer 3).
- Focus: market microstructure.
- Not RAG: pages are pre-synthesised, opinionated, and cross-linked rather than retrieved ad-hoc from chunks — see wiki vs RAG.
- Usable as LLM context: drop a pointer in your project's
CLAUDE.mdorAGENTS.mdand hand Claude Code / Copilot a 50 K-token distilled knowledge layer instead of 400 K of raw PDFs — see Using the Wiki in Code. - Start here: skim the mindmap for a bird's-eye view, then drill into whichever paper or concept looks relevant.
A living, compounding knowledge base of research papers, concepts, and connections — currently anchored in market microstructure (order flow imbalance, limit-order-book dynamics, price impact, market making, optimal execution) with forays into deep learning and decentralised finance.
The wiki is the primary artifact. Every paper ingested makes it smarter. Every query that produces an insight gets filed back.
What this is¶
This site is a personal research second brain — not a blog, not a notebook, not a paper collection. It is an opinionated, synthesised knowledge layer built on top of a raw corpus of arXiv papers.
Three layers:
- Layer 1 — Raw sources (
raw/papers/): immutable arXiv PDFs + full-text markdown conversions. The source of truth. - Layer 2 — The wiki (
wiki/, what you're reading): LLM-generated synthesis pages organised by type (papers, concepts, methods, entities, comparisons, connections, open questions, mindmaps), wikilinked into a graph. - Layer 3 — The schema + skills: a slim always-on schema file (CLAUDE.md) defines page types, frontmatter conventions, writing style, and the method-promotion rule. The LLM reads it at the start of every session. Operation-specific protocols (ingest, lint, mindmap, deploy) live in skills that load on demand, keeping the always-on context small.
The Karpathy inspiration¶
The three-layer pattern comes from Andrej Karpathy's LLM Wiki idea, posted publicly on X/Twitter. The core insights:
- The wiki is the primary artifact, not the chat log or the query interface. You read the wiki; the LLM writes it.
- The schema file (CLAUDE.md) is load-bearing: every new LLM session starts without memory, so the schema is what keeps output structured and consistent over weeks and months.
- Synthesis is a forcing function — compressing a 30-page paper into a 3-page wiki page forces the model (and the reader) to actually understand it.
- Each ingest should touch 10–20 pages so knowledge compounds rather than accumulating in isolation.
The specific CLAUDE.md on this site is customised for this project (quant-finance focus, Obsidian wikilinks, MkDocs + Netlify stack). The pattern is Karpathy's; the implementation is mine.
How it differs from RAG¶
This wiki is not a Retrieval-Augmented Generation system. They sit at different layers.
| LLM Wiki (this site) | RAG | |
|---|---|---|
| Primary artifact | Curated pages | Chunks in a vector DB |
| When synthesis happens | Up-front, at ingest | Never — always on-demand retrieval |
| Consumption | Browse / read | Query / ask |
| Structure | Typed pages + wikilinks | Flat chunks, no cross-references |
| Encodes judgment | Yes — pages take a view | No — returns whatever's similar |
| Compression | High — pages distill | None — verbatim chunks |
| Works without an LLM at query time | Yes (just read) | No |
| Value per paper | Compounds across pages | Adds chunks independently |
When each wins:
- Wiki is better for "what is the state of knowledge on X?" — a thinking agent has already synthesised it.
- RAG is better for "find the exact equation in paper Y" — it preserves detail a wiki throws away.
Mature setups combine both: RAG over the wiki (synthesised, confident answers) and RAG over the raw corpus (detail fallback).
How much can this architecture hold?¶
Today (April 2026):
| Layer | Tokens (approx) |
|---|---|
| Wiki (this site) | ~38 K |
| Raw corpus (full text of 25 papers) | ~400 K |
| Schema (CLAUDE.md) | ~3 K |
Context: modern frontier LLMs have 1M-token windows, so the whole thing currently fits in a single prompt with ~2× headroom.
Where this pattern scales cleanly: up to ~50–100 papers / ~500 wiki pages before a single-prompt approach becomes impractical and you want embeddings-based retrieval on top.
What breaks at larger scale:
- Context window — once raw + wiki exceed ~1M tokens, fresh LLM sessions can't read the whole thing up-front.
- Cross-page drift without a lint pass — past ~100 pages, manual consistency checking becomes archaeology.
- One global mindmap becomes illegible — you'd move to per-sub-domain mindmaps.
Karpathy's original target was personal-research scale, which is exactly where this pattern is strongest.
Tech stack¶
| Layer | Tool |
|---|---|
| Source download / PDF → markdown | arxiv + pymupdf4llm |
| Discovery (daily arXiv sweep) | custom Python, keyword tiers in discovery_config.py |
| Wiki authoring (ingest, lint, mindmap, deploy) | Claude Opus 4.7 (1M context) via Claude Code, driven by skills |
| Local viewer | Obsidian — vault opens on wiki/ directly |
| Diagrams | Mermaid (flowchart, mindmap, timeline) |
| Public site | MkDocs Material + mkdocs-mermaid2-plugin + MathJax |
| Hosting | Netlify |
The sync from vault to static site is done by scripts/sync_wiki_to_mkdocs.py, which rewrites Obsidian [wikilinks](# "Broken wikilink: wikilinks") into MkDocs-compatible relative links.
About the skills¶
Each recurring operation has its own playbook loaded on demand — see Skills for the full explanation of why the schema was split this way and how each skill works. The four current skills are arxiv-ingest, wiki-lint, wiki-mindmap, and wiki-deploy.
What's in here right now¶
- 23 papers with full wiki synthesis pages — anchored in market microstructure signal design, with Chinese-market and classical foundational coverage, and a new 2026-04-23 cluster around multi-level OFI aggregation, universal deep-learning price formation, per-event-type impact decomposition, and signal-aware optimal execution.
- 2 more papers sitting as full-text markdown in the raw corpus, waiting to be wiki'd next.
- 10 concept pages, 10 method pages, 8 entity pages, 1 cross-domain connection page.
- 1 per-domain mindmap (market microstructure) with three interactive Mermaid diagrams.
- Two orthogonal OFI conventions correctly distinguished — the event-based one from Cont–Kukanov–Stoikov vs the trade-based one in the Easley–O'Hara / Anantha–Jain tradition.
- A cross-paper tick-size finding: large-tick assets are most forecastable, converging evidence from equities (Briola et al. 2024) and crypto (Bieganowski–Ślepaczuk 2026).
Navigating the wiki¶
- Browse by topic tab above (Papers / Concepts / Methods / Connections / Entities / Mind Maps).
- Search — press
Ctrl+Kfor full-text search. - Graph / mindmap — see market-microstructure mindmap for a clickable bird's-eye view.
- Schema — the LLM's instruction file is at CLAUDE.md if you want to replicate the pattern.
Catalog¶
By domain¶
Machine Learning & Deep Learning¶
- Attention Is All You Need — Vaswani et al., 2017
Quantitative Finance — Market Microstructure (OFI / OBI / Impact)¶
- The Price Impact of Order Book Events — Cont, Kukanov, Stoikov, 2010
- How Markets Slowly Digest Changes in Supply and Demand — Bouchaud, Farmer, Lillo, 2008
- The Price Impact of Order Book Events: Market Orders, Limit Orders and Cancellations — Eisler, Bouchaud, Kockelkoren, 2009
- Models for the Impact of All Order Book Events — Eisler, Bouchaud, Kockelkoren, 2011
- Slow Decay of Impact in Equity Markets — Brokmann, Sérié, Kockelkoren, Bouchaud, 2014
- Trade Arrival Dynamics and Quote Imbalance — Lipton, Pesavento, Sotiropoulos, 2013
- Queue Imbalance as a One-Tick-Ahead Price Predictor — Gould, Bonart, 2015
- Multi-Level Order-Flow Imbalance — Xu, Gould, Howison, 2019
- Cross-Impact of Order Flow Imbalance in Equity Markets — Cont, Cucuringu, Zhang, 2023
- Universal Features of Price Formation in Financial Markets — Sirignano, Cont, 2018
Quantitative Finance — Chinese Markets¶
- The Price Impact of Generalized OFI — Su et al., 2021 (CSI 500)
- Stochastic Price Dynamics in Response to OFI — CSI 300 — Hu, Zhang, 2025
- Adaptive Learning with Order Book Data — CSI 300 — Yang, 2021
Quantitative Finance — Forecasting, Execution, Simulation¶
- Deep Limit Order Book Forecasting — Briola, Bartolucci, Aste, 2024
- Forecasting High Frequency OFI — Anantha, Jain, 2024
- Order-Flow Filtration — Anantha, Jain, Maiti, 2025
- Explainable Patterns in Crypto Microstructure — Bieganowski, Ślepaczuk, 2026
- Bridging the Reality Gap in LOB Simulation — Noble, Rosenbaum, Souilmi, 2026
- Model Predictive Control For Trade Execution — McAuliffe et al., 2026
- Incorporating Signals into Optimal Trading — Lehalle, Neuman, 2019
- Pricing and Hedging for Liquidity Provision in CFMM — Risk, Tung, Wang, 2026
- Entropic Signatures of Market Response — Drzazga-Szczȩśniak et al., 2026 (macro-flavoured)
By type¶
Papers (23) — see domain groupings above.
Concepts (10)¶
- Order Flow Imbalance — central signal for short-horizon price prediction
- Limit Order Book — the mechanism and data structure underlying microstructure
- Price Impact — how order flow moves prices
- Cross-Impact — multi-asset extension of price impact
- Universal Price Formation — the LOB→price map is stock-agnostic
- Market Microstructure — overarching domain
- Transformer Architecture — foundational DL architecture
- Adverse Selection — informed vs uninformed flow; spread theory
- Optimal Execution — balancing completion / impact / opportunity cost
- Market Making — LOB quoting and AMM liquidity provision unified
Methods (10)¶
- Multi-Head Attention — core Transformer mechanism
- Hawkes Process — self-exciting point process for order flow modelling
- SHAP Values — model explainability via Shapley values
- Queue-Reactive Model — Markov jump LOB simulator
- Propagator Model (Transient Impact Kernel) — \(r_t = \sum G(t-t') \cdot \varepsilon_{t'}\) framework for market impact
- Microprice — queue-weighted fair-value estimator above the mid
- Almgren-Chriss — canonical static mean-variance optimal execution; industry baseline
- Integrated OFI — PCA-first-PC aggregation of multi-level OFI into a single scalar
- Event-Type Impact Decomposition (EBK) — per-event-type bare-impact framework
- Signal-Aware Optimal Execution — GSS + Markovian signal closed-form schedule
Entities (8)¶
- Rama Cont — co-inventor of OFI; universal price formation; cross-impact OFI
- Sasha Stoikov — co-inventor of OFI; Avellaneda-Stoikov market making model
- Mihai Cucuringu — cross-impact of OFI; spectral methods on financial networks
- Justin Sirignano — universal price formation deep-learning on LOB
- Jean-Philippe Bouchaud — propagator model; event-type impact decomposition
- Zoltán Eisler — EBK event-type impact decomposition
- Charles-Albert Lehalle — signal-aware optimal execution; OBI empirics
- Google Brain — institution behind the Transformer
Connections & Mindmaps¶
- Deep Learning meets Market Microstructure
- Order-Flow Signal Atlas — L2 & L3
- Market Microstructure Mindmap
Recent additions¶
- 2026-04-23: Batch ingest of 5 OFI / impact / execution papers focused on signal design from LOB snapshots and L3 data: Cont-Cucuringu-Zhang (cross-impact of OFI), Sirignano-Cont (universal price formation via deep learning), Eisler-Bouchaud-Kockelkoren (event-type impact decomposition, 2009 and 2011), and Lehalle-Neuman (signal-aware optimal execution). 3 new methods (integrated OFI, EBK event-type decomposition, signal-aware execution), 2 new concepts (cross-impact, universal price formation), 5 new entity pages (Cucuringu, Sirignano, Bouchaud, Eisler, Lehalle). Directly targets the "design a signal from LOB snapshots and/or L3 order book" research question.
- 2026-04-17: Overnight batch wiki-ingest of 8 signal-design papers (Lipton-Pesavento-Sotiropoulos, Xu-Gould-Howison MLOFI, Gould-Bonart queue imbalance, Bouchaud-Farmer-Lillo propagator, Brokmann slow-decay impact, Hu-Zhang CSI 300 OU-Lévy, Yang CSI 300 adaptive learning, Drzazga-Szczȩśniak entropic signatures). VPIN skipped — not on arXiv. Tick-size regime theme now confirmed across 4 independent papers.
- 2026-04-17: Landing page rewritten with three-layer architecture explanation, Karpathy-inspiration note, RAG-vs-wiki comparison, scalability / token-count section.
- 2026-04-16: Wiki-ingest of 3 new microstructure papers; mindmap created; site shipped to Netlify.
- 2026-04-16: Full-text re-ingest of all 7 original papers via
pymupdf4llm; tick-size-regime convergence surfaced. - 2026-04-15: Initial ingest of 7 papers — 20 wiki pages created.
Contradictions & flags¶
- None currently detected.
- Note: "OFI" has two distinct conventions in this wiki. Event-based (Cont–Kukanov–Stoikov, 2010) aggregates signed queue contributions from all LOB events. Trade-based (Easley–O'Hara tradition, used by Anantha–Jain 2024/2025) is the normalised signed-trade-count imbalance. See Order Flow Imbalance.