Saved in:
Bibliographic Details
Main Authors: Jiang, Jinhao, Li, Junyi, Zhao, Wayne Xin, Song, Yang, Zhang, Tao, Wen, Ji-Rong
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.10804
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916324718936064
author Jiang, Jinhao
Li, Junyi
Zhao, Wayne Xin
Song, Yang
Zhang, Tao
Wen, Ji-Rong
author_facet Jiang, Jinhao
Li, Junyi
Zhao, Wayne Xin
Song, Yang
Zhang, Tao
Wen, Ji-Rong
contents Adapting general large language models (LLMs) to specialized domains presents great challenges due to varied data distributions. This adaptation typically requires continual pre-training on massive domain-specific corpora to facilitate knowledge memorization, followed by training to apply this knowledge following human instructions and preferences. However, this method may result in inefficient knowledge memorization due to a lack of awareness of knowledge utilization and imposes substantial demands on LLMs to simultaneously learn knowledge utilization and format alignment with limited training samples. To facilitate the domain adaptation of LLM, we revise this process and propose a new domain adaptation framework including domain knowledge learning and general format alignment, called Mix-CPT. Specifically, we first conduct a knowledge mixture continual pre-training that concurrently focuses on knowledge memorization and utilization, allowing for mutual reinforcement. To avoid catastrophic forgetting during the continual pre-training process, we further incorporate a logit swap self-distillation constraint. Subsequently, leveraging the knowledge and capabilities acquired during continual pre-training, we efficiently perform instruction tuning and alignment with a few general training samples to achieve format alignment. Extensive experiments demonstrate that our proposed Mix-CPT framework can simultaneously improve the task-solving capabilities of LLMs on the target and general domains compared to the traditional adaptation methods.
format Preprint
id arxiv_https___arxiv_org_abs_2407_10804
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Mix-CPT: A Domain Adaptation Framework via Decoupling Knowledge Learning and Format Alignment
Jiang, Jinhao
Li, Junyi
Zhao, Wayne Xin
Song, Yang
Zhang, Tao
Wen, Ji-Rong
Computation and Language
Adapting general large language models (LLMs) to specialized domains presents great challenges due to varied data distributions. This adaptation typically requires continual pre-training on massive domain-specific corpora to facilitate knowledge memorization, followed by training to apply this knowledge following human instructions and preferences. However, this method may result in inefficient knowledge memorization due to a lack of awareness of knowledge utilization and imposes substantial demands on LLMs to simultaneously learn knowledge utilization and format alignment with limited training samples. To facilitate the domain adaptation of LLM, we revise this process and propose a new domain adaptation framework including domain knowledge learning and general format alignment, called Mix-CPT. Specifically, we first conduct a knowledge mixture continual pre-training that concurrently focuses on knowledge memorization and utilization, allowing for mutual reinforcement. To avoid catastrophic forgetting during the continual pre-training process, we further incorporate a logit swap self-distillation constraint. Subsequently, leveraging the knowledge and capabilities acquired during continual pre-training, we efficiently perform instruction tuning and alignment with a few general training samples to achieve format alignment. Extensive experiments demonstrate that our proposed Mix-CPT framework can simultaneously improve the task-solving capabilities of LLMs on the target and general domains compared to the traditional adaptation methods.
title Mix-CPT: A Domain Adaptation Framework via Decoupling Knowledge Learning and Format Alignment
topic Computation and Language
url https://arxiv.org/abs/2407.10804