Paper Feed

Issue 44 · Project 03 HF model AI / ML ✓ read

Octen/Octen-WebGR-4B

text-generation · transformers

TL;DR: Octen-WebGR-4B is a generative retriever that memorizes a navigational web index of 195.9 million URLs inside a fine-tuned Qwen3-4B: given a query, it decodes a two-token semantic identifier that is constrained to a lookup table of real URLs. It reports 59.6% hit@1 on held-out next-month click traffic — beating dense retrieval with a click prior (46.5%) and BM25 (9.1%) — while needing one GPU and ~10 GB of memory instead of hundreds of GB of vectors. This is the first credible demonstration of generative retrieval (the DSI/NCI family) at genuine web scale, and the README is unusually honest about where it wins and loses.

What it is and why it matters

Generative retrieval has been a lively research direction since DSI (2022): replace the embed-index-ANN pipeline with a sequence model that directly generates a document ID. The persistent criticism was that it only works at toy scale (hundreds of thousands to a few million docs). This model takes it to 201 million URLs — two orders of magnitude beyond typical GR papers — and claims it beats a well-tuned dense baseline trained on the same clicks. If the numbers hold, the "GR doesn't scale" assumption is dead, at least for navigational search.

The design is minimal: each URL gets a two-token semantic ID (SID), where each token is one of 65,536 codes appended to the Qwen3 vocabulary (131,072 new tokens total, ids 151,936–283,007). That gives a 4.3-billion-slot address space for 196M URLs. The README doesn't say how SIDs are assigned (presumably quantized embeddings, per the usual recipe — the arXiv report would have it).

Query (normalized) "Query: {q}\nURL:" Qwen3-4B (fine-tuned) decode sid0, then sid1 20 beams, 65,536 codes/level mask: only valid prefixes sid_table (parquet) (sid0, sid1) → URL 195.9M rows top-k URLs Index lives in the weights; the table only maps codes back to strings
Constrained beam search makes hallucination structurally impossible: every decodable SID pair exists in the table, and removing a row removes the URL from all outputs.

The evidence, read carefully

Evaluation is on real navigational queries from the month after the training cutoff, click-weighted, over the full 201M universe:

Navigational search, next-month clickshit rate (%)01020304050607059.646.558.99.1hit@168.764.262.525.3hit@10WebGR-4Bdense + click priorclick-table lookupBM25from the model card; dense baseline trained on the same clicks

The most informative baseline is the raw click-table lookup at 58.9 hit@1 — navigational traffic is extremely head-heavy, so pure memorization nearly matches the model at k=1. The model's real value is generalization: on unseen queries for well-trained pages it hits rank 1 30.9% of the time vs 17.2% for dense retrieval. So this is best understood as a click table that interpolates — it answers new phrasings of old intents, which a hash map can't and dense retrieval does poorly. Conversely, dense retrieval still wins on rarely-visited pages, and the model is explicitly not for informational queries. The card also quantifies its own screening cost (removing 2.6% of URLs drops hit@1 by 0.9 points). This level of baseline honesty is rare and raises my trust in the report.

What's actually released

Weights (bf16, 8.7 GB), the full SID→URL parquet table, GPU and CPU reference inference code, and a 31-query smoke test. Not released: the training click data (proprietary), and the SID construction procedure isn't in the card. Weights and table are CC BY-NC 4.0 (non-commercial); code is Apache 2.0. A 0.6B sibling over a 31M-URL table exists for cheaper experimentation.

Practicalities: ~9.7 GiB GPU memory; 56 ms/query single, 10.1 ms/query at batch 32 on an H200; CPU path needs ~23 GiB RAM. One sharp edge: don't use model.generate() — the tokenizer has no SID entries and unconstrained decoding produces garbage; you must use their constrained beam search.

Caveats

The index is frozen at the August 2026 crawl: adding a page requires retraining, which is the structural weakness of all parametric indexes and unsolved here. The model inherits click-log biases, and you can't reproduce training. The non-commercial license limits adoption. And since the eval set comes from the same proprietary traffic distribution as training, independent probing with your own queries is warranted — the smoke test and the 0.6B model make that cheap.

Try it

pip install torch==2.8.0 transformers==4.57.1
python - <<'EOF'
from huggingface_hub import snapshot_download
import sys
root = snapshot_download("Octen/Octen-WebGR-4B")
sys.path.insert(0, root)
from infer_gpu import GR
gr = GR(root)
for url, logp, row in gr.search(["hugging face"], K=10)[0]:
    print(url, logp)
EOF

Model card: https://huggingface.co/Octen/Octen-WebGR-4B · Report: arXiv:2610.35256