# Not All Layers Need Tuning: Selective Layer Restoration Recovers Diversity

*Bowen Zhang, Meiyi Wang, Harold Soh*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152850) · [Open on the map](../papers.html#p152850)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Diffusion Language Model Sampling](../pgroup/72.md) · Type: new method · Keywords: layer restoration, model diversity, post-training, language model fine-tuning, proxy task

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › Memory and Forgetting

## Summary
Selective Layer Restoration (SLR) recovers output diversity in post-trained language models by restoring selected layers to their pre-trained weights, yielding a hybrid model with the same architecture and parameter count and no additional inference cost.

## Explained to a 5-year-old
After we teach a big computer program how to talk, it starts to give answers that sound the same a lot. The program has many layers that work like different parts of a brain, and some layers lose their creativity more than others. By picking a few of those layers and putting them back to how they were before learning, we can make the program say new and interesting things again. This fixing does not need extra training or more computer power, so it is easy to do. As a result, the program can still answer well but also be more creative in stories, questions, and puzzles.

## Explained to a 5-year-old, longer
When we teach a computer program a lot about language, it becomes very good at giving correct answers. But sometimes the answers start to sound the same, like repeating the same phrase over and over. This problem is called mode collapse, and it makes the program less fun to talk to. The program is built from many layers, and each layer helps with a different part of understanding or creating text. After learning, some layers become too similar, which makes the output less varied. Researchers noticed that not all layers change the same amount after learning. They thought that if we could reset some of the layers that lost their variety back to how they were before learning, the program might become diverse again. To find out which layers to reset, they created a simple test that measures how varied the answers are. This test showed that there is a trade-off: resetting too many layers can make the answers less accurate, while resetting just the right amount keeps them good. Based on these findings, they built a method that automatically picks the best layers to reset without needing any extra training. When this method is applied, the program can still answer questions correctly but now produces many different and creative responses. This helps in tasks like writing stories, answering open-ended questions, and solving multi-step problems, making the language model more useful and enjoyable.

## For a technical reader
Large language models are often fine-tuned to follow instructions better, but this can make them produce repetitive text. The authors observed that the loss of diversity is not uniform across the model’s layers, with some layers losing more variety than others. They propose a training-free technique that selects a subset of layers and reverts them to their original pre-training weights, creating a hybrid model. Using a proxy task, they identify the optimal layer range that balances higher diversity with maintained accuracy. The resulting approach improves creative writing, open-ended QA, and reasoning across several model families without any extra inference cost.

## Problem
Post-training of large language models often reduces generation diversity, leading to repetitive outputs (mode collapse). This diversity loss is unevenly distributed across model layers, creating a need to recover diversity while preserving output quality.

## Method
The approach hypothesizes that diversity loss is unevenly distributed across layers and proposes to restore a selected range of layers to their pre-trained weights. It uses a proxy task with a validity set and diversity objective to identify optimal restoration ranges, then applies this restoration to the target model without any additional training or inference overhead.

## Results
The approach improves output diversity across tasks and model families while maintaining high output quality.

## Contributions
It identifies a layer-wise diversity-validity trade-off via a proxy task and introduces a training-free method to restore selected layers, yielding hybrid models that boost diversity without extra inference cost.

## Practical relevance
This method enables practitioners to enhance model diversity in deployed language models without increasing computational cost.

## Research questions this paper is counted under

- [How can we increase output diversity in language models while preserving quality and avoiding repetition?](../q/173.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152850)
