Chain-of-Model Learning for Language Model

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Song, Kaitao, Wang, Xiaohua, Tan, Xu, Jiang, Huiqiang, Zhang, Chengruidong, Shen, Yongliang, LU, Cen, Li, Zihao, Song, Zifan, Shan, Caihua, Wang, Yansen, Ren, Kan, Zheng, Xiaoqing, Qin, Tao, Yang, Yuqing, Li, Dongsheng, Qiu, Lili
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916753993367552
author Song, Kaitao
Wang, Xiaohua
Tan, Xu
Jiang, Huiqiang
Zhang, Chengruidong
Shen, Yongliang
LU, Cen
Li, Zihao
Song, Zifan
Shan, Caihua
Wang, Yansen
Ren, Kan
Zheng, Xiaoqing
Qin, Tao
Yang, Yuqing
Li, Dongsheng
Qiu, Lili
author_facet Song, Kaitao
Wang, Xiaohua
Tan, Xu
Jiang, Huiqiang
Zhang, Chengruidong
Shen, Yongliang
LU, Cen
Li, Zihao
Song, Zifan
Shan, Caihua
Wang, Yansen
Ren, Kan
Zheng, Xiaoqing
Qin, Tao
Yang, Yuqing
Li, Dongsheng
Qiu, Lili
contents In this paper, we propose a novel learning paradigm, termed Chain-of-Model (CoM), which incorporates the causal relationship into the hidden states of each layer as a chain style, thereby introducing great scaling efficiency in model training and inference flexibility in deployment. We introduce the concept of Chain-of-Representation (CoR), which formulates the hidden states at each layer as a combination of multiple sub-representations (i.e., chains) at the hidden dimension level. In each layer, each chain from the output representations can only view all of its preceding chains in the input representations. Consequently, the model built upon CoM framework can progressively scale up the model size by increasing the chains based on the previous models (i.e., chains), and offer multiple sub-models at varying sizes for elastic inference by using different chain numbers. Based on this principle, we devise Chain-of-Language-Model (CoLM), which incorporates the idea of CoM into each layer of Transformer architecture. Based on CoLM, we further introduce CoLM-Air by introducing a KV sharing mechanism, that computes all keys and values within the first chain and then shares across all chains. This design demonstrates additional extensibility, such as enabling seamless LM switching, prefilling acceleration and so on. Experimental results demonstrate our CoLM family can achieve comparable performance to the standard Transformer, while simultaneously enabling greater flexiblity, such as progressive scaling to improve training efficiency and offer multiple varying model sizes for elastic inference, paving a a new way toward building language models. Our code will be released in the future at: https://github.com/microsoft/CoLM.
format Preprint
id arxiv_https___arxiv_org_abs_2505_11820
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Chain-of-Model Learning for Language Model
Song, Kaitao
Wang, Xiaohua
Tan, Xu
Jiang, Huiqiang
Zhang, Chengruidong
Shen, Yongliang
LU, Cen
Li, Zihao
Song, Zifan
Shan, Caihua
Wang, Yansen
Ren, Kan
Zheng, Xiaoqing
Qin, Tao
Yang, Yuqing
Li, Dongsheng
Qiu, Lili
Computation and Language
In this paper, we propose a novel learning paradigm, termed Chain-of-Model (CoM), which incorporates the causal relationship into the hidden states of each layer as a chain style, thereby introducing great scaling efficiency in model training and inference flexibility in deployment. We introduce the concept of Chain-of-Representation (CoR), which formulates the hidden states at each layer as a combination of multiple sub-representations (i.e., chains) at the hidden dimension level. In each layer, each chain from the output representations can only view all of its preceding chains in the input representations. Consequently, the model built upon CoM framework can progressively scale up the model size by increasing the chains based on the previous models (i.e., chains), and offer multiple sub-models at varying sizes for elastic inference by using different chain numbers. Based on this principle, we devise Chain-of-Language-Model (CoLM), which incorporates the idea of CoM into each layer of Transformer architecture. Based on CoLM, we further introduce CoLM-Air by introducing a KV sharing mechanism, that computes all keys and values within the first chain and then shares across all chains. This design demonstrates additional extensibility, such as enabling seamless LM switching, prefilling acceleration and so on. Experimental results demonstrate our CoLM family can achieve comparable performance to the standard Transformer, while simultaneously enabling greater flexiblity, such as progressive scaling to improve training efficiency and offer multiple varying model sizes for elastic inference, paving a a new way toward building language models. Our code will be released in the future at: https://github.com/microsoft/CoLM.
title Chain-of-Model Learning for Language Model
topic Computation and Language
url https://arxiv.org/abs/2505.11820