arXiv:2610.22999cs.CLOct 2026

Manuscript Offprint

arXiv:2610.22999

Controlling the Diversity-Quality Trade-Off of LLMs by Merging Models Before and After Alignment

Yasuaki Sumita, Tomoharu Iwata, Toshiyuki Tanaka

Abstract

Alignment is known to change the output characteristics of large language models (LLMs). Base models tend to generate more diverse outputs, whereas aligned models tend to produce higher-quality outputs. The appropriate balance between the two depends on the task. Existing methods either require costly fine-tuning or, like temperature sampling, mainly improve lexical diversity rather than semantic diversity. We introduce a depth-aware FrankenMerging approach for controlling the diversity–quality trade-off between an aligned model and its base model without additional training. This approach combines the lower layers of an aligned model with the higher layers of its base model based on the hypothesis that lexical diversity is more closely associated with lower layers and semantic diversity with higher layers. Experiments showed that varying the number of layers taken from each model adjusts both diversity and quality. In most cases, the merged models exhibited higher semantic diversity than the aligned model, and at some split positions, they showed higher lexical diversity than both original models. They also demonstrated a better diversity–quality trade-off than temperature sampling in most settings. A supporting ablation, in which we reversed the merging order, yielded results largely consistent with the hypothesis.

1 Introduction

Large language models (LLMs) are used in a wide range of text generation tasks. LLMs are divided into two types: base models that have undergone only pretraining, and aligned models that have been fine-tuned to conform to human preferences. These two types of models have different output characteristics: base models tend to generate more diverse outputs, whereas aligned models tend to produce outputs of higher quality (Kirk et al., 2024; Shypula et al., 2025). The relative importance of these two characteristics depends on the task and the purpose of use. For example, while output quality is primarily emphasized in summarization, output diversity is essential in story generation. Xu et al. (2025) demonstrate that LLMs tend to generate only plots with similar developments in story generation. Therefore, it is necessary to balance the diversity and quality of LLM outputs according to the task.

Existing methods for enhancing output diversity have two limitations. First, some methods (Wang et al., 2025; Lanchantin et al., 2025; Chung et al., 2025) fine-tune LLMs to improve diversity, but these have high computational costs as they require additional training. Second, there are methods that do not require training, such as temperature sampling (Ackley et al., 1985), but these primarily enhance lexical diversity, which is surface-level variation in vocabulary, and contribute little to semantic diversity, which is variation in content (Tevet and Berant, 2021; Guo et al., 2025).

To address these limitations, this study aims to control the diversity–quality trade-off between an aligned model and its base model without additional training. We evaluate diversity in terms of both lexical diversity and semantic diversity. To this end, we introduce a depth-aware FrankenMerging approach. FrankenMerging (Goddard et al., 2024) is a model merging methodology that constructs new models by combining partial layers from multiple input models. Our approach selects the source model of each layer according to its depth and combines the lower layers of an aligned model with the higher layers of its base model. 1^{1}

1^{1}In this paper, lower layers refer to the layers closer to the input, while higher layers refer to the layers closer to the output.

This approach is motivated by existing findings that the roles of LLM layers differ with their depth (Liu et al., 2024). On the basis of these findings, we hypothesize that lexical diversity is more closely associated with lower layers, whereas semantic diversity is more closely associated with higher layers. Under this hypothesis, it is expected that by utilizing the higher layers extracted from the base model, its semantic diversity can be brought into the merged model, and that the balance between diversity and quality can be adjusted by varying the split position.

To evaluate our approach, we conducted experiments across four tasks: translation, summarization, story generation, and dialogue generation. In these experiments, we evaluated the output diversity and quality of the merged models for different numbers of layers taken from each model. Furthermore, we compared the diversity–quality trade-off of our approach with that of temperature sampling. Additionally, as a supporting ablation for the hypothesis underlying our approach, we also assessed how reversing the model merging order affects output diversity.

The contributions of this study are as follows:

• We introduce a depth-aware FrankenMerging approach for controlling the diversity–quality trade-off between an aligned LLM and its base model and experimentally demonstrate that varying the number of layers taken from each model adjusts both diversity and quality, and that the approach provides a better diversity–quality trade-off than temperature sampling in most settings.

• We empirically investigate how layer depth relates to lexical and semantic diversity. Our results, together with those of a supporting ablation in which we reverse the merging order, are largely consistent with the hypothesis above.