[논문 리뷰] LLM Augmented LLMs: Expanding Capabilities through Composition
CALM은 앵커 LLM과 특수 보강 모델을 작은 교차 주의 기반 인터페이스를 학습해 결합함으로써 두 모델의 가중치를 변경하지 않고도 새로운 능력을 가능하게 한다. 저자원 언어 번역, KV 매핑을 활용한 산술 추론, 코드 이해/생성 등의 작업에서 개선을 이끈다.
Foundational models with billions of parameters which have been trained on large corpora of data have demonstrated non-trivial skills in a variety of domains. However, due to their monolithic structure, it is challenging and expensive to augment them or impart new skills. On the other hand, due to their adaptation abilities, several new instances of these models are being trained towards new domains and tasks. In this work, we study the problem of efficient and practical composition of existing foundation models with more specific models to enable newer capabilities. To this end, we propose CALM -- Composition to Augment Language Models -- which introduces cross-attention between models to compose their representations and enable new capabilities. Salient features of CALM are: (i) Scales up LLMs on new tasks by 're-using' existing LLMs along with a few additional parameters and data, (ii) Existing model weights are kept intact, and hence preserves existing capabilities, and (iii) Applies to diverse domains and settings. We illustrate that augmenting PaLM2-S with a smaller model trained on low-resource languages results in an absolute improvement of up to 13\% on tasks like translation into English and arithmetic reasoning for low-resource languages. Similarly, when PaLM2-S is augmented with a code-specific model, we see a relative improvement of 40\% over the base model for code generation and explanation tasks -- on-par with fully fine-tuned counterparts.
연구 동기 및 목표
- 효율적이고 실용적인 기초 모델의 조합을 촉진해 미세 조정이나 데이터 공유 제약 없이 새로운 능력을 획득한다.
- 고정된 모델들 사이의 작고 학습 가능한 상호작용을 학습하여 기존 모델의 재사용을 가능하게 한다.
- 언어 포용성, 키-값 매핑을 이용한 산술, 코드 관련 작업 등 다양한 도메인에서 CALM을 시연한다.
제안 방법
- CALM 소개: 고정된 두 모델(앵커 m_B와 보강 모델 m_A)의 선택된 계층 위에 작은 학습 가능한 매개변수 집합을 학습하는 프레임워크이다.
- 두 모델 간의 교차 주의 레이어 f_cross를 가능하게 하도록 m_A 표현을 m_B의 차원으로 매핑하는 프로젝션 f_proj를 학습한다.
- 투영된 m_A의 키/값과 m_B의 쿼리 간의 교차 주의를 포함하고, 잔차 연결이 다음 계층으로 흐르도록 한다.
- 목표 구성 작업 C에 필요한 공동의 '결합된 기술'을 묘사하도록 설계된 작은 데이터 세트 D_C를 사용해 구성 매개변수 Θ_C를 학습한다.
- 구성 가능한 계층 L_A와 L_B를 선택하고 선택된 계층들에 걸쳐 교차 주의 메커니즘을 반복적으로 적용한다.
- CALM이 기본 가중치를 바꾸지 않으면서 두 모델의 기존 능력을 보존하고 새로운 능력을 가능하게 함을 보인다.

실험 결과
연구 질문
- RQ1앵커 LLM과 도메인 특화 보강 모델을 조합하여 어느 한 모델도 단독으로 달성하지 못하는 능력을 얻을 수 있는가?
- RQ2CALM이 새로운 작업을 가능하게 하면서도 기본 모델의 개별 능력을 보존하는가?
- RQ3저자원 언어 번역, 키-값 매핑을 이용한 산술, 코드 이해/생성 등의 작업에서 CALM의 성능은 어떠한가?
주요 결과
- 조합된 모델 m_A⊕B는 핵심 작업에서 두 기본 모델보다 상당히 우수한 성능을 보이며, 예를 들어 KV-Substitution 및 KV-Arithmetic에서 m_B의 0%에 비해 KV-Arithmetic 정확도 84.3%를 달성한다.
- 저자원 언어 번역에서 CALM은 두 기본 모델에 비해 FLORES-200 영어 번역 지표를 크게 개선하고, 여러 언어에 걸쳐 더 높은 평균치를 달성한다.
- 코드 관련 작업에서 CALM은 앵커에 비해 코드 완성 및 코드-텍스트/설명 작업에서 의미 있는 향상을 보이며, 미세 조정 없이도 모델 능력을 확장한다.
- 특성 실험은 m_A를 일반 모델이나 임의 모델로 대체하면 성능이 저하함을 보여 주며, 이득은 단순히 추가 매개변수가 아니라 m_A의 특화된 지식과 CALM 상호작용에서 비롯됨을 강조한다.
- LoRA와 비교하여 CALM은 더 우수한 작업 전이 성능을 보이고 기본 모델을 미세 조정할 때 관찰되는 재앙적 망각을 피한다.

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