Parameter-Efficient Tuning with Special Token Adaptation

Xiaocong Yang, James Y. Huang, Wenxuan Zhou, Muhao Chen

Abstract

Fine-tuning large-scale Pretrained Language Models (PLMs) is computationally expensive and storage-intensive. We present PASTA (PArameter-efficient tuning with Special Token Adaptation), a method that adapts models by modifying only the hidden representations of existing special tokens (e.g., [CLS], [SEP]) at each layer. By training as little as 0.02% of total parameters, PASTA achieves performance parity with full fine-tuning on Natural Language Understanding (NLU) tasks.

Introduction: Tuning the Hubs

The standard practice of fine-tuning all parameters in a PLM for every downstream task is increasingly unsustainable. While Parameter-Efficient Tuning (PET) methods like LoRA and Adapters reduce this burden, they often introduce significant overhead or require new tokens.

This work explores a structural hypothesis: Can we adapt a model by only changing its "hubs"? In Transformers, special tokens act as global aggregators. Because many attention heads exhibit "vertical attention"—focusing almost exclusively on these tokens—updating them should theoretically be sufficient to steer the entire model toward a new task.

Methodology

PASTA introduces a minimal set of trainable parameters by leveraging the existing architecture's special tokens. Unlike Prompt Tuning, which prepends new trainable tokens to the input, PASTA modifies the existing special tokens already present in the sequence.

PASTA Architecture: Trainable vectors are added to special tokens while the rest of the model remains frozen.

The process involves:

  1. Identifying Special Tokens: Targeting [CLS] and [SEP] in BERT-style architectures.
  2. Layer-wise Modification: At every Transformer layer $l$, a small trainable vector $e(v_p^l)$ is added to the hidden representation of the $p$-th special token.
  3. Freezing Weights: All original model weights (attention matrices, feed-forward networks, etc.) remain frozen. Only these added vectors and the final task-specific classifier head are trained.
  4. Information Dissemination: During the forward pass, "vertical" attention heads attend to these modified tokens, spreading task-specific signals to the non-special (content) tokens.

Experimental Results

PASTA was evaluated using BERT and RoBERTa backbones across the GLUE benchmark and Named Entity Recognition (CoNLL2003).

The method demonstrates extreme efficiency, utilizing only 0.015% to 0.029% of total parameters—roughly 1/10th of the parameters required by LoRA for BERT-large. On the GLUE benchmark, PASTA (BERT-large) achieved an average score of 80.9, matching BitFit and trailing full fine-tuning (81.6) by a slim margin.

Performance Comparison on NER: PASTA achieves competitive results with significantly fewer parameters (0.018%) than P-tuning v2 (0.9%).

In NER tasks, PASTA outperformed P-tuning v2 by 0.6% despite using 20x fewer additional parameters. Ablation studies confirmed that adapting both [CLS] and [SEP] is crucial for optimal performance.

Discussion and Insights

The success of PASTA validates the "Information Disseminator" hypothesis. By nudging the tokens that the model naturally uses for global context, the attention mechanism is effectively "re-programmed" without altering the underlying weights.

Analysis of the learned vectors showed that the magnitude of changes was higher in deeper layers, suggesting that the most critical task-specific "steering" happens closer to the output. This minimalist approach proves that vertical attention is a powerful feature for model adaptation.

Limitations

PASTA is architecture-dependent, requiring the presence of special tokens. Its effectiveness in generative tasks (e.g., summarization) remains untested. Additionally, while it saves storage and memory, it does not significantly reduce training time as it still requires full forward and backward passes through the frozen model.

Summary updated

BibTeX
@inproceedings{yang2023parameter,
  author = {Xiaocong Yang and James Y. Huang and Wenxuan Zhou and Muhao Chen},
  title = {{Parameter-Efficient Tuning with Special Token Adaptation}},
  booktitle = {EACL},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.60},
}
Figure