Predicting Rewards Alongside Tokens: Non-disruptive Parameter Insertion for Efficient Inference Intervention in Large Language Model
Abstract
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 https://github.com/chenhan97/Otter
Community
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 oneline code change, and the original model response remains accessible after the parameter
insertion. Our code is publicly available at
https://github.com/chenhan97/Otter
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Bias-Aware Low-Rank Adaptation: Mitigating Catastrophic Inheritance of Large Language Models (2024)
- Weighted Grouped Query Attention in Transformers (2024)
- Adversarial Contrastive Decoding: Boosting Safety Alignment of Large Language Models via Opposite Prompt Optimization (2024)
- Cascade Reward Sampling for Efficient Decoding-Time Alignment (2024)
- S2D: Sorted Speculative Decoding For More Efficient Deployment of Nested Large Language Models (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper