CogSteer: Cognition-Inspired Selective Layer Intervention for Efficient Semantic Steering in Large Language Models
文献类型:期刊论文
作者 | Xintong Wang3; Jingheng Pan3; Longqin Jiang3; Liang Ding2; Xingshan Li1![]() |
刊名 | arXiv
![]() |
出版日期 | 2024 |
DOI | 10.48550/arXiv.2410.17714 |
英文摘要 | Despite their impressive capabilities, large language models (LLMs) often lack interpretability and can generate toxic content. While using LLMs as foundation models and applying semantic steering methods are widely practiced, we believe that efficient methods should be based on a thorough understanding of LLM behavior. To this end, we propose using eye movement measures to interpret LLM behavior across layers. We find that LLMs exhibit patterns similar to human gaze across layers and different layers function differently. Inspired by these findings, we introduce a heuristic steering layer selection and apply it to layer intervention methods via fine-tuning and inference. Using language toxification and detoxification as test beds, we demonstrate that our proposed CogSteer methods achieve better results in terms of toxicity scores while efficiently saving 97% of the computational resources and 60% of the training time. Our model-agnostic approach can be adopted into various LLMs, contributing to their interpretability and promoting trustworthiness for safe deployment. |
收录类别 | EI |
语种 | 英语 |
源URL | [http://ir.psych.ac.cn/handle/311026/49204] ![]() |
专题 | 中国科学院心理研究所 |
作者单位 | 1.Institute of Psychology, Chinese Academy of Sciences, China 2.The University of Sydney, Australia 3.Department of Informatics, Universität Hamburg, Germany |
推荐引用方式 GB/T 7714 | Xintong Wang,Jingheng Pan,Longqin Jiang,et al. CogSteer: Cognition-Inspired Selective Layer Intervention for Efficient Semantic Steering in Large Language Models[J]. arXiv,2024. |
APA | Xintong Wang,Jingheng Pan,Longqin Jiang,Liang Ding,Xingshan Li,&Chris Biemann.(2024).CogSteer: Cognition-Inspired Selective Layer Intervention for Efficient Semantic Steering in Large Language Models.arXiv. |
MLA | Xintong Wang,et al."CogSteer: Cognition-Inspired Selective Layer Intervention for Efficient Semantic Steering in Large Language Models".arXiv (2024). |
入库方式: OAI收割
来源:心理研究所
其他版本
除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。