Saved in:
Bibliographic Details
Main Authors: Yuan, Chenhan, Huang, Fei, Peng, Ru, Lu, Keming, Yu, Bowen, Zhou, Chang, Zhou, Jingren
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.10764
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913473714192384
author Yuan, Chenhan
Huang, Fei
Peng, Ru
Lu, Keming
Yu, Bowen
Zhou, Chang
Zhou, Jingren
author_facet Yuan, Chenhan
Huang, Fei
Peng, Ru
Lu, Keming
Yu, Bowen
Zhou, Chang
Zhou, Jingren
contents Transformer-based large language models (LLMs) exhibit limitations such as generating unsafe responses, unreliable reasoning, etc. Existing inference intervention approaches attempt to mitigate these issues by finetuning additional models to produce calibration signals (such as rewards) that guide the LLM's decoding process. However, this solution introduces substantial time and space overhead due to the separate models required. This work proposes Non-disruptive parameters insertion (Otter), inserting extra parameters into the transformer architecture to predict calibration signals along with the original LLM output. Otter offers state-of-the-art performance on multiple demanding tasks while saving up to 86.5\% extra space and 98.5\% extra time. Furthermore, Otter seamlessly integrates with existing inference engines, requiring only a one-line code change, and the original model response remains accessible after the parameter insertion. Our code is publicly available at \url{https://github.com/chenhan97/Otter}
format Preprint
id arxiv_https___arxiv_org_abs_2408_10764
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Predicting Rewards Alongside Tokens: Non-disruptive Parameter Insertion for Efficient Inference Intervention in Large Language Model
Yuan, Chenhan
Huang, Fei
Peng, Ru
Lu, Keming
Yu, Bowen
Zhou, Chang
Zhou, Jingren
Computation and Language
Transformer-based large language models (LLMs) exhibit limitations such as generating unsafe responses, unreliable reasoning, etc. Existing inference intervention approaches attempt to mitigate these issues by finetuning additional models to produce calibration signals (such as rewards) that guide the LLM's decoding process. However, this solution introduces substantial time and space overhead due to the separate models required. This work proposes Non-disruptive parameters insertion (Otter), inserting extra parameters into the transformer architecture to predict calibration signals along with the original LLM output. Otter offers state-of-the-art performance on multiple demanding tasks while saving up to 86.5\% extra space and 98.5\% extra time. Furthermore, Otter seamlessly integrates with existing inference engines, requiring only a one-line code change, and the original model response remains accessible after the parameter insertion. Our code is publicly available at \url{https://github.com/chenhan97/Otter}
title Predicting Rewards Alongside Tokens: Non-disruptive Parameter Insertion for Efficient Inference Intervention in Large Language Model
topic Computation and Language
url https://arxiv.org/abs/2408.10764