논문 해설
Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning
Semantic Knowledge Tuning을 이용한 대규모 언어 모델의 파라미터 효율적 미세 조정
- 연구 문제 기존 프롬프트·프리픽스 튜닝은 의미 없는 가상 토큰에 의존해 해석이 어렵고 좋은 성능에 긴 학습이 필요합니다.
- 연구 방법 SK-Tuning은 동결된 LLM으로 실제 의미를 가진 프롬프트나 프리픽스 텍스트를 임베딩하고, 학습 가능한 어댑터로 변환해 입력과 결합합니다.
- 주요 결과 GLUE의 RoBERTa 비교와 여러 LLM 분류 과제에서 SK-Tuning은 적은 파라미터로 경쟁력 있는 성능을 보고하며, 일부 토큰 분류 수렴 비교에서 더 빠른 수렴을 보고합니다.
문제 설정: 프롬프트·프리픽스 튜닝의 한계
대규모 언어 모델을 특정 과제에 맞추는 데는 전체 파라미터를 갱신하는 방식이 계산 비용이 커서 부담이 됩니다. 이를 줄이기 위해 어댑터, 프롬프트 튜닝, 프리픽스 튜닝 같은 파라미터 효율적 fine-tuning 방법이 쓰입니다. 그런데 프롬프트 튜닝과 프리픽스 튜닝은 의미가 없는 학습 가능한 가상 토큰을 사용하여 해석이 어렵고, 좋은 성능을 얻으려면 긴 학습이 필요하다고 논문은 지적합니다.
이 논문은 이 문제를 해결하기 위해 SK-Tuning을 제안합니다. SK-Tuning은 가상 토큰 대신 실제 의미를 가진 프롬프트나 프리픽스 텍스트를 사용하며, 사전 학습된 LLM의 zero-shot 능력으로 그 의미를 표현한다는 점이 핵심 변경입니다.
SK-Tuning의 구조와 계산 흐름
SK-Tuning의 프리픽스 버전에서는 프리픽스 텍스트 p를 동결된 LLM에 넣어 각 층의 은닉 표현 hp를 얻습니다. 이 표현을 학습 가능한 어댑터 FΦ가 변환하여 층별 표현 z를 만들고, 입력 xi를 처리할 때 각 층에 z를 연결합니다. 학습은 어댑터 Φ와 과제 헤드 ζ에 대해 손실을 최소화하는 방식으로 이루어지며, LLM 본체의 파라미터 Θ는 고정됩니다.

Figure 1 . SK-Tuning approaches for Prefix (left) and Prompt (right). The dashed line represents the optimization path during the backward pass to the trainable adapter. Notably, in the context of prompt-tuning (on the right), the no sign signifies the discontinuation of the forward pass beyond a certain point. This is because we exclusively initialize layer-specific semantic information for the prompt, rendering the continuation of the forward pass unnecessary for the remaining layers.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.프롬프트 버전은 프롬프트 임베딩 ep를 동결된 임베딩 층에서 얻고, 어댑터 Gγ가 이를 e′p로 바꿉니다. 이후 e′p와 입력 임베딩 exi를 연결하여 동결된 LLM과 과제 헤드를 통과시킵니다. 두 경우 모두 학습 대상은 어댑터와 과제 헤드이며, 원래 가상 토큰을 학습하는 대신 실제 텍스트의 의미 표현을 어댑터로 다듬는 구조입니다.
GLUE 벤치마크의 RoBERTa 비교
GLUE 실험에서 RoBERTa-base와 RoBERTa-large를 사용하여 여러 PEFT 방법과 비교합니다. 표 1에서 RoBERTa-base 기준 SK-Tuning (Prompt)는 0.60M 학습 파라미터로 평균 85.45/90.37을 보고하고, SK-Tuning (Prefix)는 0.84M 파라미터로 평균 83.83/89.29를 보고합니다. RoBERTa-large에서는 SK-Tuning (Prompt)가 1.02M 파라미터로 평균 89.01/91.34를 보고합니다.

Table 1 . Performance Comparison of RoBERTa Models on GLUE Tasks: Metrics include MCC for CoLA, Accuracy for SST-2, Accuracy/F1-score for MRPC and QQP, Pearson/Spearman correlation for STS-B, and Accuracy for MNLI, QNLI, and RTE.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.이 결과는 GLUE 과제 표의 평균과 과제별 지표로 읽어야 하며, 논문은 이 비교를 통해 적은 파라미터로 경쟁력 있는 성능을 얻었다고 주장합니다. 다만 표의 점수는 저자들이 해당 설정에서 보고한 값이며, 다른 모델 계열이나 다른 학습 예산에 그대로 일반화되지는 않습니다.
LLM 과제 결과와 수렴 비교
LLM 실험은 Bloom, Llama2, Falcon, Mistral, Phi-2 등 여러 모델에서 시퀀스 분류, 토큰 분류, 함의 판별 과제를 대상으로 합니다. 본문은 Fake News Filipino, Emotion, SST2, Cola 등의 분류 결과에서 SK-Tuning이 여러 설정에서 높은 정확도와 F1을 보인다고 보고합니다. 다만 같은 표 안에서도 Full Fine-tuning이 가장 높은 설정이 있으며, 결과는 모델과 데이터셋별로 나뉩니다.

Table 2 . Sequence Classification Results for the Bloom Model. The best results are highlighted in bold, and the second-best result is underlined for clarity.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.
Table 3 . Sequence Classification Results for the Llama2 Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.
Table 4 . Sequence Classification Results for the Falcon Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.
Table 5 . Sequence Classification Results for the Mistral Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.
Table 6 . Sequence Classification Results for the Phi-2 Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.
Table 7 . Token Classification Results for the Bloom Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.
Table 8 . Token Classification Results for the Llama2 Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.
Table 9 . Token Classification Results for the Falcon Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.
Table 10 . Token Classification Results for the Mistral Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.
Table 11 . Token Classification Results for the Phi-2 Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.
Table 12 . Entailment Classification Results for the Bloom Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.
Table 14 . Entailment Classification Results for the Falcon Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Table 16 . Entailment Classification Results for the Phi-2 Model. The best results are highlighted in bold, and the second-best result is underlined for clarity except full fine-tuning.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.수렴 비교에서 저자들은 토큰 분류와 시퀀스 분류에서 SK-Tuning이 전통적 조정 방법보다 빠르게 수렴한다고 보고합니다. 저자들은 이를 의미 지식과 LLM의 zero-shot 능력에서 비롯된 것으로 해석하는데, 이는 그들의 가설로서 논문이 직접 증명한 인과 관계로 볼 수는 없습니다.

Figure 3 . Convergence Comparison for Token Classification
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.
Figure 4 . Convergence Comparison for Sequence Classification
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.
Figure 5 . Convergence Comparison for Sequence Classification
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.한계: 추가 추론 비용과 의존성
저자들은 SK-Tuning이 프롬프트 또는 프리픽스의 의미를 얻기 위해 사전 학습된 LLM을 순전파에서 두 번 사용한다고 밝힙니다. 이 구조 때문에 학습과 추론 시간이 늘어날 수 있습니다. 또한 방법의 효과는 LLM의 zero-shot 능력과 의미 이해 능력에 의존하며, 의미 있는 프롬프트를 찾거나 만드는 일이 어려울 수 있다고 논문은 제시합니다.

Figure 2 . Comparison of memory efficiency (left) and training efficiency (right) across various PEFT methods. S-Prefix and S-Prompt represent SK-Tuning applied to prefix tuning and prompt tuning, respectively. The left chart shows the memory cost in GB, highlighting the model weights and optimizations, while the right chart displays the percentage of parameters, total training time in hours, and iteration time per second.
원문 · CC BY 4.0 · Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay · Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2024년 10월 11일
- 등록일
- 2026년 11월 6일
- 수정일
- 2024년 10월 11일
- 버전
- v1
- arXiv
- 2410.08598
- 분류
- cs.CL
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
Large Language Models (LLMs) are gaining significant popularity in recent years for specialized tasks using prompts due to their low computational cost. Standard methods like prefix tuning utilize special, modifiable tokens that lack semantic meaning and require extensive training for best performance, often falling short. In this context, we propose a novel method called Semantic Knowledge Tuning (SK-Tuning) for prompt and prefix tuning that employs meaningful words instead of random tokens. This method involves using a fixed LLM to understand and process the semantic content of the prompt through zero-shot capabilities. Following this, it integrates the processed prompt with the input text to improve the model's performance on particular tasks. Our experimental results show that SK-Tuning exhibits faster training times, fewer parameters, and superior performance on tasks such as text classification and understanding compared to other tuning methods. This approach offers a promising method for optimizing the efficiency and effectiveness of LLMs in processing language tasks.
원문 인용
Nusrat Jahan Prottasha, Asif Mahmud, Md. Shohanur Islam Sobuj, Prakash Bhat, Md Kowsher, Niloofar Yousefi, Ozlem Ozmen Garibay (2024). Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning. arXiv:2410.08598v1. https://arxiv.org/abs/2410.08598v1
BibTeX
@misc{prottasha2024parameter,
title = {{Parameter-Efficient Fine-Tuning of Large Language Models using Semantic Knowledge Tuning}},
author = {Nusrat Jahan Prottasha and Asif Mahmud and Md. Shohanur Islam Sobuj and Prakash Bhat and Md Kowsher and Niloofar Yousefi and Ozlem Ozmen Garibay},
year = {2024},
eprint = {2410.08598},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2410.08598v1}
}