Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Guidance: Sentence-Level Citation Enforcement via Prefix-Tail Guidance during LLM Decoding

Guidance inserts verified facts and their citations into LLM output while decoding

  • Problem Long-context models often drift from the reference text, and citations added after generation cannot fix a wrong claim already made.
  • Method Guidance splits the reference into sentence-level Prefix-Tail tuples, then inserts a matching Tail only when type and token checks pass during decoding.
  • Results On LongBench-Cite, Guidance raised Llama-3.1-8B-Instruct's average citation F1 from 39.6 to 50.1.

Why post-hoc citations fall short

Long-context question answering is where models most often drift from the reference text, because the volume of material makes it hard to find the right evidence. Existing fixes fall into two groups: retrieval before generation, as in RAG, and attribution added after generation or learned into it, as in LongCite and SelfCite. In both groups citations stay a probabilistic side effect of generation rather than a constraint on what the model may say.

If the model has already committed to a wrong line of reasoning, a later citation step has no correct claim to attach to.

The authors separate fluent connecting text from concrete factual assertions and treat only the latter as strictly grounded units. Guidance applies this split inside the autoregressive loop, so citations become constraints that activate at particular points in generation.

Building the fact pool offline

Before decoding starts, the reference document is split into indexed sentences with NLTK. Each sentence is decomposed into Prefix-Tail tuples, where the Prefix carries the subject and relation and the Tail carries a specific entity, date or metric. A Prefix about a product's colour can therefore be paired with a Tail that names the colour, and the tuple keeps the index of its source sentence.

An LLM extraction step resolves coreferences and restores omitted subjects, so each Prefix can be indexed without its surrounding sentences. Sentences with only qualitative content, and no concrete entity or metric, are dropped before the pool is built. One fact can be reachable from several Prefixes, which the authors call a multi-view representation of the same unit.

Finding a candidate prefix

At each decoding step the current context is encoded, and the top-K prefixes by cosine similarity are recalled from the pool. A cross-encoder then reranks these candidates, using bge-reranker-v2-m3 with a candidate count of K = 20 in the default configuration.

The first filter is a hard named-entity check: when both the context and a candidate name entities, their sets must intersect or the candidate is discarded. The second filter scores keyword overlap with the Jaccard similarity of nouns, verbs and adjectives, and a candidate is accepted only above a threshold. The score is \( \mathrm{Score}(s_t, P_i) = |K_{s_t} \cap K_{P_i}| / |K_{s_t} \cup K_{P_i}| \), where the K terms are the keyword sets of the context and the candidate.

Checking the intended continuation

A matched prefix is necessary but not enough, because the model may intend a different valid statement. Guidance copies the key-value cache, generates a lookahead string of N tokens on the copy, and leaves the main decoding state untouched, with N = 4 by default. The lookahead string is written as \( Y_{look} = \mathrm{Generate}(y_{<t}, \mathcal{K}_{temp}, N) \), where \( \mathcal{K}_{temp} \) is the temporary cache.

The first level of the Type Consistency Check uses named-entity tags, mapped through the compatibility matrix M into coarse classes such as HUMAN, ORG, LOC, TIME and METRIC. The pass condition is that the type of the lookahead string is approximately equal under M to the type of the Tail. The second level applies to common nouns, which are checked against WordNet lexnames, and it passes when the synset sets of the two head words share any member.

Injecting a Tail token by token

Even a type-compatible Tail can break fluency if it is pasted in whole, so Guidance checks each Tail token against the model's next-token distribution. A token passes when it falls in the top-K ranks, with K = 10 by default, and its probability exceeds ϵ = 0.01. If any token fails, the procedure stops and the model resumes its own path, and only a fully accepted Tail is appended with its citation index.

This token-level gate is what lets the method stay probabilistically close to the model's own distribution while still forcing the fact. The decision to intervene follows the same logic as the threshold in the general policy, which switches from the guided distribution to the model's own once the alignment score falls below τ.

Citation quality on LongBench-Cite

The comparison covers prompt-only small models, citation-finetuned models, NEST and proprietary models, all under one output format and evaluation protocol. Prompt-only models gain the most: Llama-3.1-8B-Instruct moved from 39.6 to 50.1 average citation F1 with Guidance. Its average citation length fell from 100 to 83 in the same comparison, so the gain came with shorter citations.

Mistral-7B-Instruct-v0.3 moved from 35.8 to 43.0 and Qwen3-8B from 53.3 to 56.2.

Among fine-tuned models, LongCite-8B moved from 72.9 to 74.4, and SelfCite-8B reached 78.1 with Guidance from a baseline of 76.7. The authors compare these fine-tuned results with NEST, which scored 68.6 average citation F1. The table's gain column ranges from 1.83% for SelfCite-8B to 26.5% for Llama-3.1-8B-Instruct. All these scores use GPT-4o as the evaluator, so they are one judge's measurements under one protocol.

What the decoding checks cost

The authors report that Guidance adds an overhead of 1.3× to 3× over vanilla decoding, which they attribute to real-time retrieval and verification. For Mistral-7B-Instruct-v0.3 the latency moved from 6.4 to 14.7 hours with Guidance.

SelfCite-8B with Best-of-N sampling took 60.1 hours for an F1 of 77.1. SelfCite-8B with Guidance reached an F1 of 78.0 in 11.2 hours, which the authors describe as a 5× speedup. Table 2 gives 78.1 for this Guidance configuration, so the two tables list different F1 values for it.

Which components matter

The base Guidance row has correctness 70.4, citation precision 71.3, recall 85.3 and cite F1 74.4. Removing soft-forcing lowers correctness to 48.6 and cite F1 to 69.8, the largest correctness drop in the table. The authors call soft-forcing the most critical factor for correctness, and the case study shows ungrammatical output when it is removed.

Removing entity-aware alignment lowers citation precision from 71.3 to 61.2, while recall moves from 85.3 to 84.1. Removing the type consistency check lowers correctness from 70.4 to 68.2 and cite F1 from 74.4 to 73.8. The case study for that variant shows a Tail of 2010 forced after the lookahead string May and June, which is a granularity mismatch.

This is one worked example rather than a broad measurement.

Whether answers stay correct

Correctness is judged on the answer after citation tokens are removed, and whether it covers the query. Llama-3.1-8B-Instruct rose from 64.8 to 65.5 on average, and Mistral-7B-Instruct-v0.3 rose from 51.2 to 54.3. Qwen3-8B fell from 70.3 to 69.3, LongCite-8B from 70.4 to 70.0, and SelfCite-8B from 70.2 to 69.7. The authors read these results as Guidance maintaining correctness, since the drops in three rows are small.

How sensitive the settings are

Each hyperparameter is varied on its own: the retrieval threshold over 0.1 to 0.7, the reranker top-K over 5 to 100, and the lookahead length N over 1 to 16. Average citation F1 stays between 72.55 and 73.57 across the retrieval threshold settings, and between 72.66 and 73.35 across reranker settings. They attribute the stability to the later type check and anchor matching, which filter spurious candidates.

Limits of the evidence

Latency is the cost the authors report most directly, at 1.3× to 3× over vanilla decoding. The main evaluation uses LongBench-Cite, and the sensitivity sweeps change one setting at a time. The reliability of citations depends on the quality of the reference documents, and biased sources could still produce convincing output. Users might over-trust cited output, so the authors present the system as an assistive tool rather than a replacement for human judgement.

Paper info

Authors
Yirui Zhan, Chenhao Xu, Jun Gao
Venue
International Conference on Machine Learning · Published
First published
2026-9-29
Added
2026-11-25
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Yirui Zhan, Chenhao Xu, Jun Gao (2026). Guidance: Sentence-Level Citation Enforcement via Prefix-Tail Guidance during LLM Decoding. International Conference on Machine Learning. https://proceedings.mlr.press/v306/zhan26f.html

BibTeX
@article{zhan2026guidance,
  title = {{Guidance: Sentence-Level Citation Enforcement via Prefix-Tail Guidance during LLM Decoding}},
  author = {Yirui Zhan and Chenhao Xu and Jun Gao},
  year = {2026},
  journal = {International Conference on Machine Learning},
  url = {https://proceedings.mlr.press/v306/zhan26f.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up