What is typical P as a LLM sampling method? (Otherwise known as Typical Decoding Mass)
- User
What is typical P as a LLM sampling method? (Otherwise known as Typical Decoding Mass)
- Assistant
Typical Decoding (sometimes abbreviated as "Typical P") or Typical Decoding Mass is an approach used in natural language processing tasks to balance between the randomness of sampling methods and the determinism of greedy decoding, such as beam search. The method was introduced by Facebook AI Research's paper in 2021, "Typical Decoding: A Middle-Ground Between Greedy and Beam Search".
In traditional language modeling, different decoding strategies exist:
- User
How would you intuitively interpret the values for typical decoding from 0 to 1, for example what does mean to set it to 0.2
- Assistant
In the context of Typical Decoding, setting a value (such as 0.2) typically defines a threshold related to the cumulative probability mass from the model's predicted distribution over the next token. This threshold helps to determine which tokens are part of the "typical set" from which the model will sample the next token in the sequence.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.