← Latest papers
🤖 machine learning

Frustratingly Simple Black-Box Adaptation of Language Models via Logit Bias

This paper introduces a lightweight, black-box adaptation method that learns a single context-independent logit-bias vector via a KL-regularized reinforcement learning objective to improve language model performance on reasoning tasks without modifying model weights or requiring gradient access.

Original authors: Ofek I. Cohen, Lior Shani, Aviv Rosenberg, Ankur Samanta, Tal Wagner, Yonathan Efroni

Published 2026-07-28
📖 4 min read☕ Coffee break read

Original authors: Ofek I. Cohen, Lior Shani, Aviv Rosenberg, Ankur Samanta, Tal Wagner, Yonathan Efroni

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a brilliant, all-knowing robot chef who can cook almost any dish you ask for. This robot is so smart that it's been trained on the entire internet, but it's also a bit of a diva: it won't let you into the kitchen to change its recipes, and you can't even peek at its secret spice jars. You can only give it an order, and it starts cooking. Sometimes, the robot is too chatty, adding unnecessary stories before the recipe. Other times, it forgets to put the salt in, or it gets confused and starts talking about the history of tomatoes instead of making the sauce.

In the world of artificial intelligence, this robot is a "Large Language Model" (LLM). The "kitchen" is the model's internal brain, and the "recipes" are the math it uses to predict the next word in a sentence. Usually, if you want the robot to be better at a specific job—like solving math problems or writing short emails—you have to send it back to the factory to be retrained. But what if you can't do that? What if the robot is locked in a black box, and you only have a single, tiny control knob? This paper asks a simple, almost cheeky question: Can we just tweak that one knob to make the robot smarter, without ever touching its brain?

The researchers, a team from Tel Aviv University and Google, decided to try exactly that. They focused on a feature called "logit bias." Think of the robot's brain as a giant menu of every possible word it could say next. Before it picks a word, it assigns a "score" to every item on the menu. "Logit bias" is just a way of secretly adding a few points to some words and subtracting points from others before the robot makes its choice. It's like whispering to the robot, "Hey, I really like the word 'answer' and I really dislike the word 'um'."

The team's big idea was to find the perfect whisper. They wanted to learn a single, fixed list of score adjustments that would work for every question the robot gets. They didn't want to change the robot's brain; they just wanted to nudge its choices. To do this, they used a clever trick: they let the robot cook a bunch of meals, checked if they were good (using a reward system), and then calculated exactly which words should have gotten a "bonus" to make the meal better. They used a statistical method called "inverse propensity scoring" to figure this out, which is basically a way of saying, "If the robot picked a word by accident, how much would we have loved it if it had picked it on purpose?"

The results were surprisingly effective, though with some limits. When they applied this learned "whisper" to math and reasoning tests, the robot got slightly better at solving problems. For example, on a tough math benchmark called MATH, the robot's accuracy went from about 30.3% to 33.1%. That's not a huge jump, but it's a real improvement achieved without changing a single weight in the robot's brain. Even more interestingly, they used this method to make the robot shorter and more concise. By tweaking the bias, they could convince the robot to stop talking sooner, cutting the length of its answers on some models from over 900 words down to under 900, without losing the correct answer.

However, the paper is very clear about what this method can't do. The researchers found that while this "whisper" is great for formatting, stopping the robot from rambling, or nudging it toward the right answer style, it cannot teach the robot new logic. If the robot doesn't know how to solve a specific math problem, adding a bias won't suddenly give it the math skills it lacks. It's like a coach who can tell a player to "run faster" or "stop fidgeting," but can't teach them how to play the game if they don't know the rules. The paper suggests that this method is a lightweight, "black-box" tool—perfect for when you can't retrain the model, but not a replacement for full training when you need deep, complex reasoning.

In the end, the authors show that a simple, context-independent nudge can squeeze a bit more performance out of a frozen model. It's a reminder that sometimes, you don't need to rebuild the engine to get a little more speed; you just need to know which buttons to press.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →