Influencing Sentiment in LLM Output via Token Selection Manipulation

Kaja Praprotnik, Niki Hrovatin, Jernej Vičič, Domen Vake

Kaja Praprotnik: University of Primorska, UP FAMNIT, Koper, Slovenia · Niki Hrovatin: University of Primorska, UP FAMNIT, Koper, Slovenia · Jernej Vičič: University of Primorska, UP FAMNIT, Koper, Slovenia · Domen Vake: University of Primorska, UP FAMNIT, Koper, Slovenia

In this work, we explore whether a static lexicon-derived token bias can steer a Large Language Model toward more positive or negative outputs, without any additional training. On Llama-3.1-8B-Instruct, a lexicon-derived prefix-count ratio lookup table manipulates the logits at each decoding step. Two login manipulations are tested: additive bias and multiplication/division boosting, each at several weights. The additive approach steers sentiment in the positive direction and is scored with the sentiment tool VADER, where the additive bias produces no significant steering. Based on that result, we approach the problem with a more aggressive multiplication/division method. The multiplication/division boosting produces significant sentiment steering in both directions, with small effect sizes. Steering is more effective in the positive direction.

Keywords: Sentiment Analysis, Large Language Models, Sentiment Steering

Pages: 322–325

DOI: 10.70314/is.2026.sikdd.116

Download PDF