Guide-linked quiz · Medium Level
Logit Bias Quiz
Review how token-ID logit bias alters sampling, its subword limitations and why token-level controls can affect more text than intended.
Question 1 of 8
What does logit bias modify?
Preview every question8 questions
Answers and explanations appear as you take the quiz.
- What does logit bias modify?
- The score (logit) of specific tokens before sampling
- The model's training weights permanently
- The temperature of the whole prompt
- The number of tokens in the context window
- In many APIs, what does a logit bias of -100 on a token accomplish?
- Makes the token 100 times more likely
- Effectively forbids the token from being generated
- Deletes the token from the vocabulary forever
- Doubles the model's speed
- What numeric range does the documented OpenAI Chat Completions logit_bias accept for a token?
- From 0 to 1 only
- From -1 to 1 only
- From -100 to 100
- Any string value
- Logit bias is keyed to what identifier?
- The plain-text word
- The sentence position
- The model's name
- The numeric token ID
- Because logits are passed through a softmax, what is the effect of adding a positive bias?
- It exponentially boosts the token's relative weight before normalization
- It linearly adds a fixed probability
- It has no effect until training
- It removes the token from consideration
- A key advantage of logit bias over fine-tuning is that it:
- Permanently improves the model's knowledge
- Requires no retraining and applies per request
- Increases the context window size
- Works only on images
- Why should a developer inspect the tokenizer before applying a bias to a visible word?
- Token IDs are assigned only after sampling
- Visible words always equal one token
- The word may be represented by several token IDs, so biasing one ID may not cover all forms
- The tokenizer controls the model’s training data
- What is a practical risk of applying a strong positive bias to one token?
- It increases the context window
- It changes the model weights permanently
- It guarantees the token appears exactly once
- It can distort generation or produce repetitive, awkward text
Keep testing yourself
More quizzes picked for your level.