Assessing Human Editing Effort on LLM-Generated Texts via Compression-Based Edit Distance
Nicolas Devatine, Louis Abraham
TL;DR
This work tackles the challenge of quantifying human editing effort on texts produced by large language models, arguing that traditional similarity metrics fail to capture complex edits. It introduces a compression-based edit distance grounded in the LZ77 algorithm, defined as $d(S \rightarrow T) = LZ(S|T) - LZ(S)$, and implements a linear-time approximation leveraging LZ factorization. The authors provide a high-quality dataset of accounting Q&A edits (both human and synthetic) and evaluate on the IWSLT 2019 benchmark, showing that the compression distance correlates more strongly with actual edit time and keystrokes than common metrics. Their results also reveal that LLMs exhibit speed-aware editing behavior consistent with the proposed metric, and the approach offers scalable, interpretable measurement with practical implications for model evaluation and human-AI collaboration.
Abstract
Assessing the extent of human edits on texts generated by Large Language Models (LLMs) is crucial to understanding the human-AI interactions and improving the quality of automated text generation systems. Existing edit distance metrics, such as Levenshtein, BLEU, ROUGE, and TER, often fail to accurately measure the effort required for post-editing, especially when edits involve substantial modifications, such as block operations. In this paper, we introduce a novel compression-based edit distance metric grounded in the Lempel-Ziv-77 algorithm, designed to quantify the amount of post-editing applied to LLM-generated texts. Our method leverages the properties of text compression to measure the informational difference between the original and edited texts. Through experiments on real-world human edits datasets, we demonstrate that our proposed metric is highly correlated with actual edit time and effort. We also show that LLMs exhibit an implicit understanding of editing speed, that aligns well with our metric. Furthermore, we compare our metric with existing ones, highlighting its advantages in capturing complex edits with linear computational efficiency. Our code and data are available at: https://github.com/NDV-tiime/CompressionDistance
