Skip to content

Octen-WebGR: Scaling Generative Retrieval to 200 Million Web Pages

optionalextendedfrontierpaperrubric 8/122026 · arXiv technical report (Octen) · ~20 min

Guangwei Xu, Wenkai Zhang, Yawen Liu, … Kuan Zou

Read first: Transformer Memory as a Differentiable Search Index

Status

TL;DR. Octen-WebGR takes the DSI idea (the model is the index) to web scale for navigational search: queries that name one destination page, such as “nyt connections”. Qwen3-4B is fully fine-tuned to emit a two-token semantic identifier for each of 201,231,792 URLs, with decoding constrained to a table of real URLs. On the following month’s traffic it ranks the target first for 59.6% of navigational clicks. A click-enhanced dense retriever gets 46.5%, and frontier LLMs answering from memory get at most 37.5% at 40× or more the cost per query.

This is neither a sparse nor a dense retriever. There are no vectors and no postings at query time, only a constrained two-step decode:

score(u∣q)=log⁡pθ(s0∣q)+log⁡pθ(s1∣q,s0),(s0,s1)=SID(u)\mathrm{score}(u \mid q) = \log p_\theta(s_0 \mid q) + \log p_\theta(s_1 \mid q, s_0), \qquad (s_0, s_1) = \mathrm{SID}(u)

Building the identifiers. Each URL’s “URL text” (normalised URL plus up to five of its most-clicked queries, no page content) is embedded with a dense encoder. Two rounds of k-means with 65,536 centroids each give the first code and a residual code. Plain residual quantisation would give 51.5% of URLs a shared pair, so a capacity-constrained proposal scheme makes second codes unique within each group (96.2% of URLs still get one of their 8 nearest residual centroids).

Decoding. Beam search with width 20 over a trie of valid identifiers: the first step allows only first codes present in the table, and the second only the codes that follow the chosen first one. Every output is a real URL. Removing a URL from the trie removes it from all outputs.

Results (Table 2, hit@1 on September navigational traffic).

  • Overall: Octen-WebGR-4B 59.6, dense retrieval 24.8 (46.5 with a click prior), BM25 over URL text 9.1, click-table lookup 58.9.
  • On seen query–URL pairs GR is a lossy copy of the click table (88.2 vs 93.4). Its value is in new queries for familiar pages (30.9 vs 17.2 dense). On cold pages dense retrieval and BM25 win (24.3 and 25.5 vs 14.3).
  • Combined systems: lookup first with GR as fallback gives 62.5, and a two-threshold router between GR and dense gives 63.1.
  • Index scale: going from 2M to 201M URLs costs GR 4.7 points of hit@1 and dense retrieval 22.2.

The weights and identifier tables are released under CC BY-NC 4.0 and the inference code under Apache 2.0. The training data and training code are not released.

  • Before: DSI, with semantic docids, no constrained decoding, 228K documents and unstable memorisation. WebGR fixes the identifier (two 16-bit codes, collision-free), adds trie constraints, and replaces “forgetting happens” with a measured exposure model.
  • Not a replacement for embeddings: informational search still needs an embedding index. Compare first-stage retrievers for agents on Q2D-Web, and dense recipes in the embedding recipes hub.
  • Why dense falls with index size: the paper cites Reimers & Gurevych (2021): as the index grows, dense retrievers lose accuracy faster than sparse ones, and more so at low dimension. A related argument about what fixed-dimension embeddings cannot represent is on embedding limits.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Octen-WebGR names each URL with a pair (s₀, s₁) of 16-bit codes, added to Qwen3's 151,936-token vocabulary as two separate sets of 65,536 tokens. Work out the token ids for the example SID (1424, 56829), the number of distinct SIDs against the 201M URLs, the average and capped URLs per first-level group, and the memory of an exact fp16 dense index of 201M 1,024-d vectors against the 4B model in bf16. Finally, with the sampling weight w(q, u) = (n(q,u)/N_q)·N_q^β and β = 0.5, compare how often a query with 10,000 clicks is sampled relative to one with 100.

    What a strong answer covers
    • Token ids: s₀ = 151,936 + 1,424 = 153,360; s₁ = 151,936 + 65,536 + 56,829 = 274,301. Separate sets let the same number mean "group" in position 1 and "URL within group" in position 2.
    • Capacity: 65,536² ≈ 4.29B SIDs for 201M URLs (about 21× headroom). On average 201M / 65,536 ≈ 3,070 URLs per first-level group, well under the 16,384 cap (a quarter of 65,536) applied when extending to 201M. The cap matters because new URLs cluster, with up to 320K on one centroid.
    • Dense: 201.2M × 1,024 × 2 B ≈ 412 GB, more than two H200s hold. GR: 4.36B parameters × 2 B ≈ 8.7 GB of weights (9.7 GiB GPU memory in Table 4), plus the identifier table.
    • Sampling: summed over its URLs, a query's weight is N_q^0.5, so 10,000 clicks gives 100 and 100 clicks gives 10: 10× more samples, not 100×. Popular queries are seen more without drowning out the tail, and a navigational floor guarantees rare destinations a minimum.
  2. Mechanism

    On new queries for pages with many training queries ("familiar" targets), GR ranks the target first 30.9% of the time against 17.2% for a dense retriever trained on the same clicks (21.4% with a click prior). On rarely clicked ("cold") targets the order flips: GR 14.3% against dense 24.3% and BM25 25.5%. Explain both results from what each system learns about a URL, and why dense retrieval often ranks another page of the same site first (30.8% of traffic has the target in dense top 10 but not at rank 1).

    What a strong answer covers
    • GR learns a URL only through exposures: query → SID pairs and document-indexing samples (the URL text plus its top clicked queries). A familiar page has seen many paraphrases, so the model generalises on the query side to new ways of asking for it.
    • A cold page's second-code token has seen few or no exposures. The model cannot produce it with confidence, so beam search prefers better-trained neighbours in the same first-level group.
    • Dense retrieval embeds every URL text with a general encoder. A cold page still gets a sensible vector from its URL and queries, so dense generalises on the page side.
    • Navigation is not similarity: a help page, a login page or another-language version of a site embeds close to the target. GR is trained on which page users actually clicked, so its first code finds the site cluster and its second code picks the page users want.
    • This is why routing helps: send a query to GR when its top URL has at least 3 training pairs and beam probability ≥ 0.15, otherwise to dense retrieval. Behind a click-table lookup, this reaches 63.1% hit@1 against 62.5% with GR as the only fallback (thresholds tuned on July traffic).
  3. Critique

    The paper concludes that GR beats dense retrieval for navigational search and is limited by exposure rather than capacity. List the threats to each conclusion that the paper itself acknowledges (baselines, labels, data, scale of the scaling study), and design one experiment that could overturn the GR-over-dense result.

    What a strong answer covers
    • Weak dense baseline: it trains only two linear maps on a frozen Octen-Embedding-4B, on navigational pairs, with about 2% of GR's training compute (about 23 vs about 1,000 H200 GPU-hours). BM25 is untuned, and both index URL text without page content.
    • Labels: targets are the most-clicked URL in the month, so they inherit the ranking under which clicks were collected and click biases. There is no online experiment, and the click data is proprietary and unreleased.
    • Scaling evidence (exposure, not capacity) comes from grids up to 32M URLs, not 201M. The relation of four times the URLs to about 2.5 times the parameters is a fit over that grid.
    • Coverage: new queries are a third of navigational traffic and GR answers them correctly at rank one only 10.8% of the time. More than half of their targets are outside the 201M universe.
    • Overturning experiment: fully fine-tune a 4B dense encoder on the same 1.13B query–URL pairs with matched compute (about 1,000 GPU-hours), hard negatives from the same site, and page content in the URL text. Compare hit@1 on the same September traffic, split by familiar and cold targets.

Done with this page?

Status