RAP: A Metric for Balancing Repetition and Performance in Open-Source Large Language Models
Donghao Huang, Thanh-Son Nguyen, Fiona Liausvia, Zhaoxia Wang
Abstract
Large Language Models (LLMs) have significantly advanced natural language processing, but content repetition in open-source LLMs remains a critical challenge that adversely affects user experience. The repetition penalty parameter (RPP) aims to mitigate this issue by preventing repeated content generation, but excessive use of RPP can compromise the overall quality. In this paper, we propose Repetition-Aware Performance (RAP), a novel evaluation metric that quantifies and integrates repetition penalty into the assessment of model performance, enabling tuning of RPP. We evaluate our approach using twelve open-source LLMs, ranging from 2 billion to 70 billion parameters, tested on question answering and machine translation tasks across three datasets with varying prompting techniques. Experimental results show that RAP effectively tunes RPP, helping to identify a trade-off value that significantly reduces repetition while minimizing performance loss. Upon acceptance, we will release the code and the dataset of generated text, providing a valuable resource for further research on repetition detection and LLMs evaluation.
BibTeX
@inproceedings{huang-etal-2025-rap,
title = "{RAP}: A Metric for Balancing Repetition and Performance in Open-Source Large Language Models",
author = "Huang, Donghao and
Nguyen, Thanh-Son and
Liausvia, Fiona and
Wang, Zhaoxia",
editor = "Chiruzzo, Luis and
Ritter, Alan and
Wang, Lu",
booktitle = "Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)",
month = apr,
year = "2025",
address = "Albuquerque, New Mexico",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.naacl-long.69/",
pages = "1479--1496",
ISBN = "979-8-89176-189-6"
}