[논문 리뷰] One Model, Many Skills: Parameter-Efficient Fine-Tuning for Multitask Code Analysis
이 논문은 여러 코드 분석 작업에 걸쳐 공유되는 단일 매개변수 효율적 미세조정(PEFT) 모듈이 전체 다중 작업 미세조정과 동등하거나 그 이상을 달성하면서 학습 가능 매개변수와 컴퓨트를 크게 줄일 수 있음을 보여준다.
Large language models have recently surpassed specialized systems on code generation, yet their effectiveness on other code-analysis tasks remains less clear. At the same time, multi-task learning offers a way to unify diverse objectives within a single model, but fully fine-tuning LLMs across tasks is computationally prohibitive. Parameter-efficient fine-tuning mitigates this cost by updating only a small fraction of weights. Although PEFT has proven effective in single-task settings, its potential for multi-task learning has not yet been systematically explored. We present the first comprehensive evaluation of multi-task PEFT for code analysis, comparing several methods across diverse tasks and model architectures. Our experiments show that a single PEFT module shared across tasks can match, and in some cases surpass, full multi-task fine-tuning, confirming that the benefits of PEFT extend beyond isolated tasks. When comparing single-task and multi-task setups, we find that multi-task PEFT achieves a favorable performance-efficiency trade-off: it delivers accuracy close to single-task fine-tuning while reducing storage requirements, cutting the number of trainable parameters by a factor of the task count, and lowering computation costs by as much as 85%. At the same time, multi-task gains remain sensitive to task grouping. Through task-pairing experiments, we identify key factors shaping outcomes: task stability, model architecture, task complementarity, asymmetry, and dataset quality determine the success of co-fine-tuning. Finally, we benchmark efficient multi-task PEFT against direct prompting of open-source general-purpose LLMs, including DeepSeek, Qwen, Mistral, CodeLlama, and StarCoder. Despite their strong performance in code generation, these models underperform on analysis tasks, where even a 1B-parameter model with multi-task PEFT achieves significantly better results.
연구 동기 및 목표
- PEFT 방법이 코드 분석 작업에 대해 다중 작업 학습을 효과적으로 가능하게 하는지 평가한다.
- 다양한 모델 아키텍처와 작업들에 걸쳐 다중 작업 PEFT와 전체 다중 작업 미세조정을 비교한다.
- 작업 그룹화 및 모델 유형을 포함하여 공동 미세조정(co-fine-tuning)의 성공에 영향을 미치는 요인을 식별한다.
- 코드 분석 작업에 대해 다중 작업 PEFT를 오픈 소스 일반 목적 LLM의 제로샷 프롬프팅과 비교 벤치마킹한다.
제안 방법
- PEFT 모듈(직렬 어댑터, 병렬 어댑터, LoRA, 프리픽스 튜닝)을 사용하여 다중 작업 설정에서 네 가지 코드 LLM 백본을 미세조정한다.
- 인코더 백본을 고정하고 PEFT 모듈과 작업별 헤드만 학습한다.
- 하드 파라미터 공유를 사용하여 하나의 공유 인코더와 작업별 헤드를 두고, 입력은 라운드 로빈 다중 작업 샘플러로 배치한다.
- 소프트맥스 정규화된 가중치를 통한 적응 가능한 학습 가능한 손실 가중치를 도입하여 작업 손실의 균형을 맞춘다.
- 전체 미세조정(SFT) 및 대형 지시어를 조정한 LLM의 제로샷 프롬프팅과 비교한다.

실험 결과
연구 질문
- RQ1RQ1: PEFT 기법은 코드 분석을 위한 다중 작업 학습에서 효과적인가?
- RQ2RQ2: 다중 작업 PEFT와 단일 작업 PEFT 간의 성능-효율성 트레이드오프는 어떠한가?
- RQ3RQ3: 다중 작업 PEFT의 성능에 영향을 미치는 요인은 무엇인가(작업 안정성, 아키텍처, 데이터세트, 유사성 등)?
- RQ4RQ4: 다중 작업 PEFT는 일반-purpose LLM의 제로샷 프롬프팅과 어떻게 비교되는가?
주요 결과
- 다중 작업 학습에서의 PEFT는 전체 다중 작업 미세조정과 경쟁력이 있으며, 클론 및 취약성 작업에서의 차이는 일반적으로 ±1 퍼센트 포인트 이내이다.
- 단일 작업 PEFT와 다중 작업 PEFT의 차이는 큰 효율 개선을 보이며, 학습 가능한 매개변수 수를 대략 작업 수 만큼의 배수로 감소시킨다.
- 직렬 어댑터가 모든 작업에서 가장 안정적이다; LoRA는 코드 검색과 같은 검색형 목표에 이점이 있으며; Prefix 튜닝은 이 설정에서 종종 성능이 떨어진다.
- 전이 역학은 결과에 큰 영향을 미친다: 작업 안정성, 모델 아키텍처, 작업 상호보완성, 비대칭성, 데이터셋 품질 등이 공동 미세조정의 성공에 영향을 준다.
- 소형 코드 특화 백본에서의 다중 작업 PEFT는 대형 일반 목적 LLM의 제로샷 프롬프팅을 코드 분석 과제에서 지속적으로 능가하며, 거의 SFT 수준의 정확도를 보이되 저장 및 계산 필요가 더 낮다.
- 4개 백본과 4개 작업 전반에 걸쳐 PEFT는 정확도 손실 없이 우수한 효율성을 달성하며 특정 지표에서 전체 미세조정을 능가할 수 있다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.