Disentangling Memory and Reasoning Ability in Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jin, Mingyu, Luo, Weidi, Cheng, Sitao, Wang, Xinyi, Hua, Wenyue, Tang, Ruixiang, Wang, William Yang, Zhang, Yongfeng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910945994866688
author Jin, Mingyu
Luo, Weidi
Cheng, Sitao
Wang, Xinyi
Hua, Wenyue
Tang, Ruixiang
Wang, William Yang
Zhang, Yongfeng
author_facet Jin, Mingyu
Luo, Weidi
Cheng, Sitao
Wang, Xinyi
Hua, Wenyue
Tang, Ruixiang
Wang, William Yang
Zhang, Yongfeng
contents Large Language Models (LLMs) have demonstrated strong performance in handling complex tasks requiring both extensive knowledge and reasoning abilities. However, the existing LLM inference pipeline operates as an opaque process without explicit separation between knowledge retrieval and reasoning steps, making the model's decision-making process unclear and disorganized. This ambiguity can lead to issues such as hallucinations and knowledge forgetting, which significantly impact the reliability of LLMs in high-stakes domains. In this paper, we propose a new inference paradigm that decomposes the complex inference process into two distinct and clear actions: (1) memory recall: which retrieves relevant knowledge, and (2) reasoning: which performs logical steps based on the recalled knowledge. To facilitate this decomposition, we introduce two special tokens memory and reason, guiding the model to distinguish between steps that require knowledge retrieval and those that involve reasoning. Our experiment results show that this decomposition not only improves model performance but also enhances the interpretability of the inference process, enabling users to identify sources of error and refine model responses effectively. The code is available at https://github.com/MingyuJ666/Disentangling-Memory-and-Reasoning.
format Preprint
id arxiv_https___arxiv_org_abs_2411_13504
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Disentangling Memory and Reasoning Ability in Large Language Models
Jin, Mingyu
Luo, Weidi
Cheng, Sitao
Wang, Xinyi
Hua, Wenyue
Tang, Ruixiang
Wang, William Yang
Zhang, Yongfeng
Computation and Language
Large Language Models (LLMs) have demonstrated strong performance in handling complex tasks requiring both extensive knowledge and reasoning abilities. However, the existing LLM inference pipeline operates as an opaque process without explicit separation between knowledge retrieval and reasoning steps, making the model's decision-making process unclear and disorganized. This ambiguity can lead to issues such as hallucinations and knowledge forgetting, which significantly impact the reliability of LLMs in high-stakes domains. In this paper, we propose a new inference paradigm that decomposes the complex inference process into two distinct and clear actions: (1) memory recall: which retrieves relevant knowledge, and (2) reasoning: which performs logical steps based on the recalled knowledge. To facilitate this decomposition, we introduce two special tokens memory and reason, guiding the model to distinguish between steps that require knowledge retrieval and those that involve reasoning. Our experiment results show that this decomposition not only improves model performance but also enhances the interpretability of the inference process, enabling users to identify sources of error and refine model responses effectively. The code is available at https://github.com/MingyuJ666/Disentangling-Memory-and-Reasoning.
title Disentangling Memory and Reasoning Ability in Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2411.13504