Layer-Wise Attention with Pivot Layers for Effective Fine-Tuning of Encoder-Based Language Models

Fine-tuning pre-trained encoder-based language models for down-stream tasks is typically performed by exploiting the output of the last encoder layer. However, an alternative line of research suggests that leveraging representations from multiple encoder layers may yield richer linguistic information. Previous studies found that different layers convey different linguistic knowledge, suggesting that the last layer might not be optimal for all down-stream tasks. In this paper, we propose a layer-wise attention mechanism using a pivot layer as a new fine-tuning method. The pivot layer is used to compute attention scores of encoder layers, and we define three types of pivot layers. We also examine four attention functions and demonstrate through experiments that the attention function plays an important role in layer-wise attention for fine-tuning. The best-performing combination of our proposed mechanism outperformed the standard fine-tuning method and other recent methods in the General Language Understanding Evaluation (GLUE) benchmark. By visualizing the attention distributions, we found that the last layer is not always preferable for every GLUE benchmark task, and that differences in attention distribution are associated with task performance.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-04-27
DOI
https://doi.org/10.3390/app16094278
Primary Topic
Multimodal Machine Learning Applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Layer-Wise Attention with Pivot Layers for Effective Fine-Tuning of Encoder-Based Language Models

Seung-Dong Lee, Miseo Kim, Young-Seob Jeong, Jun-Ha Hwang
Applied Sciences
Multimodal Machine Learning Applications
article

Layer-Wise Attention with Pivot Layers for Effective Fine-Tuning of Encoder-Based Language Models

Seung-Dong Lee, Miseo Kim, Young-Seob Jeong, Jun-Ha Hwang
article en

Abstract

Fine-tuning pre-trained encoder-based language models for down-stream tasks is typically performed by exploiting the output of the last encoder layer. However, an alternative line of research suggests that leveraging representations from multiple encoder layers may yield richer linguistic information. Previous studies found that different layers convey different linguistic knowledge, suggesting that the last layer might not be optimal for all down-stream tasks. In this paper, we propose a layer-wise attention mechanism using a pivot layer as a new fine-tuning method. The pivot layer is used to compute attention scores of encoder layers, and we define three types of pivot layers. We also examine four attention functions and demonstrate through experiments that the attention function plays an important role in layer-wise attention for fine-tuning. The best-performing combination of our proposed mechanism outperformed the standard fine-tuning method and other recent methods in the General Language Understanding Evaluation (GLUE) benchmark. By visualizing the attention distributions, we found that the last layer is not always preferable for every GLUE benchmark task, and that differences in attention distribution are associated with task performance.

Applied SciencesVol. 16(9)
Chungbuk National University (KR), Dongguk University (KR)
Ministry of Education - Singapore
Quality Education
Openalex Percentile: Top 4%
Multimodal Machine Learning Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Layer-Wise Attention with Pivot Layers for Effective Fine-Tuning of Encoder-Based Language Models — Seung-Dong Lee, Miseo Kim, et al. · Applied Sciences (2026) | TGRS Research Map | TGRS