Controlling the Diversity-Quality Trade-Off of LLMs by Merging Models Before and After Alignment
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.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Comments
- 13 pages, 5 figures
Related papers
Quality-Controlled Reply and Summary Data for Post-Training Small Language Models in AI Call-Screening Agents
Shared title terminologycs.CLJiaqi Gan, Tsang Ng, Ankit Raj et al.
Beyond Factual Accuracy: A Benchmark for Evaluating Perspective Alignment in LLMs
Shared title terminologycs.CLSunghoon Kim, Sangyeop Kim
Safety Kernel: Mechanistic Alignment for Cross-Lingual Defense in LLMs
Shared title terminologycs.CLChengyu Xie, Fei Shen, Shuyi Miao et al.
Identify, Classify, Act: Per-Instruction Controlled Compliance for LLMs over External Data
Shared title terminologycs.CLZesheng Shi, Xue Li, Chenrui Dai et al.
Reading Between the Layers: Where Representation Quality Lives, and What Geometry Reveals
Shared title terminologycs.CLArnesh Batra, Aniket Khandelwal, Arush Gumber et al.
Unlocking the Power of Loops in Pretrained LLMs with Loop Residuals
Shared title terminologycs.CLXuanlei Zhao, Hailun Xu, Kai Wang et al.