Do Stop Me Now: Detecting Boilerplate Responses with a Single Iteration

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kainan, Yuval, Zychlinski, Shaked
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912671753830400
author Kainan, Yuval
Zychlinski, Shaked
author_facet Kainan, Yuval
Zychlinski, Shaked
contents Large Language Models (LLMs) often expend significant computational resources generating boilerplate responses, such as refusals, simple acknowledgements and casual greetings, which adds unnecessary cost and latency. To address this inefficiency, we propose a simple yet highly effective method for detecting such responses after only a single generation step. We demonstrate that the log-probability distribution of the first generated token serves as a powerful signal for classifying the nature of the entire subsequent response. Our experiments, conducted across a diverse range of small, large, and reasoning-specialized models, show that the first-token log-probability vectors form distinctly separable clusters for different response types. Using a lightweight k-NN classifier, we achieve high accuracy in predicting whether a response will be a substantive answer or a form of boilerplate response, including user-specified refusals. The primary implication is a practical, computationally trivial technique, optimizing LLM inference by enabling early termination or redirection to a smaller model, thereby yielding significant savings in computational cost. This work presents a direct path toward more efficient and sustainable LLM deployment.
format Preprint
id arxiv_https___arxiv_org_abs_2510_22679
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Do Stop Me Now: Detecting Boilerplate Responses with a Single Iteration
Kainan, Yuval
Zychlinski, Shaked
Artificial Intelligence
Computation and Language
Large Language Models (LLMs) often expend significant computational resources generating boilerplate responses, such as refusals, simple acknowledgements and casual greetings, which adds unnecessary cost and latency. To address this inefficiency, we propose a simple yet highly effective method for detecting such responses after only a single generation step. We demonstrate that the log-probability distribution of the first generated token serves as a powerful signal for classifying the nature of the entire subsequent response. Our experiments, conducted across a diverse range of small, large, and reasoning-specialized models, show that the first-token log-probability vectors form distinctly separable clusters for different response types. Using a lightweight k-NN classifier, we achieve high accuracy in predicting whether a response will be a substantive answer or a form of boilerplate response, including user-specified refusals. The primary implication is a practical, computationally trivial technique, optimizing LLM inference by enabling early termination or redirection to a smaller model, thereby yielding significant savings in computational cost. This work presents a direct path toward more efficient and sustainable LLM deployment.
title Do Stop Me Now: Detecting Boilerplate Responses with a Single Iteration
topic Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2510.22679