Dual-Layer Training and Decoding of Large Language Model with Simultaneously Thinking and Speaking
<|reference_start|>Dual-Layer Training and Decoding of Large Language Model with Simultaneously Thinking and Speaking: Large Language Model can reasonably understand and generate human expressions but may lack of thorough thinking and reasoning mechanisms. Recently there have been several studies which enhance the thinking ability of language models but most of them are not data-driven or training-based. In this paper, we are motivated by the cognitive mechanism in the natural world, and design a novel model architecture called TaS which allows it to first consider the thoughts and then express the response based upon the query. We design several pipelines to annotate or generate the thought contents from prompt-response samples, then add language heads in a middle layer which behaves as the thinking layer. We train the language model by the thoughts-augmented data and successfully let the thinking layer automatically generate reasonable thoughts and finally output more reasonable responses. Both qualitative examples and quantitative results validate the effectiveness and performance of TaS. Our code is available at https://anonymous.4open.science/r/TadE.<|reference_end|>
@article{xi2024dual-layer,
    title={Dual-Layer Training and Decoding of Large Language Model with
  Simultaneously Thinking and Speaking},
    author={Ningyuan Xi, Xiaoyu Wang, Yetao Wu, Teng Chen, Qingqing Gu, Jinxian
  Qu, Zhonglin Jiang, Yong Chen, Luo Ji},
    journal={arXiv preprint arXiv:2409.12059},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.12059},
    primaryClass={cs.CL cs.AI cs.LG}
}