Can the Inference Logic of Large Language Models be Disentangled into Symbolic Concepts?

Wen Shen, Lei Cheng, Yuxiao Yang, Mingjie Li, Quanshi Zhang
4/3/2023
cs.CLcs.AIcs.CV

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

In this paper, we explain the inference logic of large language models (LLMs) as a set of symbolic concepts. Many recent studies have discovered that traditional DNNs usually encode sparse symbolic concepts. However, because an LLM has much more parameters than traditional DNNs, whether the LLM also encodes sparse symbolic concepts is still an open problem. Therefore, in this paper, we propose to disentangle the inference score of LLMs for dialogue tasks into a small number of symbolic concepts. We verify that we can use those sparse concepts to well estimate all inference scores of the LLM on all arbitrarily masking states of the input sentence. We also evaluate the transferability of concepts encoded by an LLM and verify that symbolic concepts usually exhibit high transferability across similar input sentences. More crucially, those symbolic concepts can be used to explain the exact reasons accountable for the LLM's prediction errors.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shen2023inference,
  title  = {Can the Inference Logic of Large Language Models be Disentangled into Symbolic Concepts?},
  author = {Wen Shen and Lei Cheng and Yuxiao Yang and Mingjie Li and Quanshi Zhang},
  year   = {2023},
  eprint = {2304.01083},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.01083v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.01083.svg)](https://codeofpaper.com/paper/2304.01083)

Discussion