Antislop: A Comprehensive Framework for Identifying and Eliminating Repetitive Patterns in Language Models
Samuel Paech, Allen Roush, Judah Goldfeder, Ravid Shwartz-Ziv
TL;DR
The paper introduces Antislop, a framework to detect and suppress repetitive, AI-specific 'slop' in language models via a three-pronged approach: an inference-time Antislop Sampler that backtracks to suppress unwanted patterns, an automated pipeline to profile model-specific slop against human baselines, and Final Token Preference Optimization (FTPO) that surgically implants suppression into model weights. Empirically, slop patterns can be extremely overrepresented and model-specific, yet FTPO achieves around 90% suppression with minimal or no loss in cross-domain tasks like GSM8K, MMLU, and long-form creative writing, outperforming token banning and Direct Preference Optimization (DPO). The sampler provides robust suppression (including regex-based bans) but incurs substantial throughput costs, motivating the automated data-generation + FTPO training pipeline. Overall, Antislop demonstrates that targeted, logit-space fine-tuning plus inference-time control can greatly reduce repetition while preserving model capabilities, with the code and results released under MIT license.
Abstract
Widespread LLM adoption has introduced characteristic repetitive phraseology, termed "slop," which degrades output quality and makes AI-generated text immediately recognizable. We present Antislop, a comprehensive framework providing tools to both detect and eliminate these overused patterns. Our approach combines three innovations: (1) The Antislop Sampler, which uses backtracking to suppress unwanted strings at inference time without destroying vocabulary; (2) An automated pipeline that profiles model-specific slop against human baselines and generates training data; (3) Final Token Preference Optimization (FTPO), a novel fine-tuning method that operates on individual tokens, surgically adjusting logits wherever a banned pattern has appeared in an inference trace. We demonstrate that some slop patterns appear over 1,000x more frequently in LLM output than human text. The Antislop Sampler successfully suppresses 8,000+ patterns while maintaining quality, whereas token banning becomes unusable at just 2,000. Most importantly, FTPO achieves 90% slop reduction while maintaining or improving performance in cross-domain evals including GSM8K, MMLU, and creative writing tasks. In contrast, DPO suffers significant degradation in writing quality and lexical diversity despite achieving weaker suppression. We release all code and results under MIT license: https://github.com/sam-paech/auto-antislop.
