Antislop: A Comprehensive Framework for Identifying and Eliminating Repetitive Patterns in Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Paech, Samuel, Roush, Allen, Goldfeder, Judah, Shwartz-Ziv, Ravid
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914107450458112
author Paech, Samuel
Roush, Allen
Goldfeder, Judah
Shwartz-Ziv, Ravid
author_facet Paech, Samuel
Roush, Allen
Goldfeder, Judah
Shwartz-Ziv, Ravid
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_15061
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Antislop: A Comprehensive Framework for Identifying and Eliminating Repetitive Patterns in Language Models
Paech, Samuel
Roush, Allen
Goldfeder, Judah
Shwartz-Ziv, Ravid
Machine Learning
Computation and Language
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.
title Antislop: A Comprehensive Framework for Identifying and Eliminating Repetitive Patterns in Language Models
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2510.15061