Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Liu, Xuyuan, Hsiung, Lei, Yang, Yaoqing, Yan, Yujun
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2506.00382
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908394088038400
author Liu, Xuyuan
Hsiung, Lei
Yang, Yaoqing
Yan, Yujun
author_facet Liu, Xuyuan
Hsiung, Lei
Yang, Yaoqing
Yan, Yujun
contents Understanding how feature representations evolve across layers in large language models (LLMs) is key to improving their interpretability and robustness. While recent studies have identified critical layers linked to specific functions or behaviors, these efforts typically rely on data-dependent analyses of fine-tuned models, limiting their use to post-hoc settings. In contrast, we introduce a data-oblivious approach to identify intrinsic critical layers in pre-fine-tuned LLMs by analyzing representation dynamics via Centered Kernel Alignment(CKA). We show that layers with significant shifts in representation space are also those most affected during fine-tuning--a pattern that holds consistently across tasks for a given model. Our spectral analysis further reveals that these shifts are driven by changes in the top principal components, which encode semantic transitions from rationales to conclusions. We further apply these findings to two practical scenarios: efficient domain adaptation, where fine-tuning critical layers leads to greater loss reduction compared to non-critical layers; and backdoor defense, where freezing them reduces attack success rates by up to 40%.
format Preprint
id arxiv_https___arxiv_org_abs_2506_00382
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Spectral Insights into Data-Oblivious Critical Layers in Large Language Models
Liu, Xuyuan
Hsiung, Lei
Yang, Yaoqing
Yan, Yujun
Machine Learning
Computation and Language
Understanding how feature representations evolve across layers in large language models (LLMs) is key to improving their interpretability and robustness. While recent studies have identified critical layers linked to specific functions or behaviors, these efforts typically rely on data-dependent analyses of fine-tuned models, limiting their use to post-hoc settings. In contrast, we introduce a data-oblivious approach to identify intrinsic critical layers in pre-fine-tuned LLMs by analyzing representation dynamics via Centered Kernel Alignment(CKA). We show that layers with significant shifts in representation space are also those most affected during fine-tuning--a pattern that holds consistently across tasks for a given model. Our spectral analysis further reveals that these shifts are driven by changes in the top principal components, which encode semantic transitions from rationales to conclusions. We further apply these findings to two practical scenarios: efficient domain adaptation, where fine-tuning critical layers leads to greater loss reduction compared to non-critical layers; and backdoor defense, where freezing them reduces attack success rates by up to 40%.
title Spectral Insights into Data-Oblivious Critical Layers in Large Language Models
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2506.00382