I Tried to Make AI Writing Sound Human by Banning AI Words Through Logit_bias
5 hours ago
- Codex CLI now displays Markdown tables responsively in the terminal, improving readability in narrow windows.
- The author tested logit_bias (an API setting that changes token selection scores) to reduce AI-typical words in generated text.
- A blacklist of words common in AI writing was converted to token IDs and given negative bias values to lower their selection probability.
- Prompt-based blacklists offer flexibility but can be ignored or cause awkward substitutions, while logit_bias applies direct pressure without understanding context.
- Experiments with DeepSeek V4 Flash showed that logit_bias removed about one-third of watched words but occasionally damaged meaning or grammar.
- Compatibility for logit_bias varies: OpenAI's newer models reject it, Anthropic lacks a native parameter, but OpenRouter supports it for many models with provider-specific caveats.
- Hard bias values like -100 can remove words but cause repetition loops, while moderate values like -8 offer a trade-off between word reduction and output quality.
- The author concludes that neither prompt blacklists nor logit_bias fully solve the issue of making AI writing sound human; each has distinct failure modes.