Amplify Adjacent Token Differences: Enhancing Long Chain-of-Thought Reasoning with Shift-FFN

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Xu, Yao, Xu, Mingyu, Lei, Fangyu, Sun, Wangtao, Zeng, Xiangrong, Wang, Bingning, Liu, Guang, He, Shizhu, Zhao, Jun, Liu, Kang
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912389347147776
author Xu, Yao
Xu, Mingyu
Lei, Fangyu
Sun, Wangtao
Zeng, Xiangrong
Wang, Bingning
Liu, Guang
He, Shizhu
Zhao, Jun
Liu, Kang
author_facet Xu, Yao
Xu, Mingyu
Lei, Fangyu
Sun, Wangtao
Zeng, Xiangrong
Wang, Bingning
Liu, Guang
He, Shizhu
Zhao, Jun
Liu, Kang
contents Recently, models such as OpenAI-o1 and DeepSeek-R1 have demonstrated remarkable performance on complex reasoning tasks through Long Chain-of-Thought (Long-CoT) reasoning. Although distilling this capability into student models significantly enhances their performance, this paper finds that fine-tuning LLMs with full parameters or LoRA with a low rank on long CoT data often leads to Cyclical Reasoning, where models repeatedly reiterate previous inference steps until the maximum length limit. Further analysis reveals that smaller differences in representations between adjacent tokens correlates with a higher tendency toward Cyclical Reasoning. To mitigate this issue, this paper proposes Shift Feedforward Networks (Shift-FFN), a novel approach that edits the current token's representation with the previous one before inputting it to FFN. This architecture dynamically amplifies the representation differences between adjacent tokens. Extensive experiments on multiple mathematical reasoning tasks demonstrate that LoRA combined with Shift-FFN achieves higher accuracy and a lower rate of Cyclical Reasoning across various data sizes compared to full fine-tuning and standard LoRA. Our data and code are available at https://anonymous.4open.science/r/Shift-FFN
format Preprint
id arxiv_https___arxiv_org_abs_2505_17153
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Amplify Adjacent Token Differences: Enhancing Long Chain-of-Thought Reasoning with Shift-FFN
Xu, Yao
Xu, Mingyu
Lei, Fangyu
Sun, Wangtao
Zeng, Xiangrong
Wang, Bingning
Liu, Guang
He, Shizhu
Zhao, Jun
Liu, Kang
Computation and Language
Artificial Intelligence
Recently, models such as OpenAI-o1 and DeepSeek-R1 have demonstrated remarkable performance on complex reasoning tasks through Long Chain-of-Thought (Long-CoT) reasoning. Although distilling this capability into student models significantly enhances their performance, this paper finds that fine-tuning LLMs with full parameters or LoRA with a low rank on long CoT data often leads to Cyclical Reasoning, where models repeatedly reiterate previous inference steps until the maximum length limit. Further analysis reveals that smaller differences in representations between adjacent tokens correlates with a higher tendency toward Cyclical Reasoning. To mitigate this issue, this paper proposes Shift Feedforward Networks (Shift-FFN), a novel approach that edits the current token's representation with the previous one before inputting it to FFN. This architecture dynamically amplifies the representation differences between adjacent tokens. Extensive experiments on multiple mathematical reasoning tasks demonstrate that LoRA combined with Shift-FFN achieves higher accuracy and a lower rate of Cyclical Reasoning across various data sizes compared to full fine-tuning and standard LoRA. Our data and code are available at https://anonymous.4open.science/r/Shift-FFN
title Amplify Adjacent Token Differences: Enhancing Long Chain-of-Thought Reasoning with Shift-FFN
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2505.17153