← Latest papers
💬 NLP

Language Model Maps for Prompt-Response Distributions via Log-Likelihood Vectors

This paper proposes a framework that represents language models as log-likelihood or PMI vectors over prompt-response pairs to construct maps where distances approximate KL divergence, thereby enabling the analysis of global model structures, task performance relationships, and the additive effects of prompt modifications.

Original authors: Yusuke Takase, Momose Oyama, Hidetoshi Shimodaira

Published 2026-03-20
📖 5 min read🧠 Deep dive

Original authors: Yusuke Takase, Momose Oyama, Hidetoshi Shimodaira

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 massive library of different "AI chefs." Some are trained to make Italian food, others to make sushi, and some are just generalists who can cook a bit of everything.

Until now, if you wanted to compare these chefs, you'd have to ask them to cook a meal, taste the result, and then guess how similar their styles are. But what if the meal they cooked was just a lucky guess, or if the recipe they used was slightly different? It's hard to tell if they are truly similar or just happened to make the same dish by accident.

This paper proposes a new way to compare these AI chefs (Large Language Models) without even asking them to cook. Instead, it looks at their internal "recipe books" to see how they would react to specific instructions.

Here is the breakdown of their new method using simple analogies:

1. The "Menu Score" (Conditional Log-Likelihood Vectors)

Think of every AI model as having a giant scorecard.

  • The Old Way: The old method asked, "How likely is this sentence to appear in the world?" It was like asking a chef, "How likely is it that someone orders 'Spaghetti'?" This tells you about the chef's general taste, but not how they handle a specific order.
  • The New Way: This paper says, "Let's look at how the chef reacts to a specific order."
    • Prompt (The Order): "Make me a spicy pasta."
    • Response (The Dish): "Here is a spicy pasta recipe."
    • The paper calculates a "score" for how well the chef would make that specific dish given that specific order.

By doing this for thousands of different orders, they create a vector (a list of scores) for each chef. If you plot all these chefs on a map based on these scores, chefs with similar styles end up standing next to each other.

2. The "Distance" Between Chefs (KL Divergence)

On this new map, the distance between two chefs tells you how different their cooking styles are.

  • If two chefs are standing right next to each other, they will likely react to your orders in almost the exact same way.
  • If they are far apart, one might make a spicy dish while the other makes a sweet one, even if you asked for the same thing.
  • The math behind this distance is clever: it approximates a complex statistical measurement called KL Divergence, which basically measures "how much information is lost if you swap one chef for another."

3. The "Magic Ingredient" (PMI Vectors)

Sometimes, a chef is just really good at cooking in general, regardless of the order. Maybe they love pasta so much that they give you a pasta recipe even if you asked for a salad. This "general love for pasta" can mess up the map, making chefs look similar just because they both love pasta, not because they are good at following orders.

To fix this, the authors introduce PMI Vectors.

  • The Analogy: Imagine you subtract the chef's "general love for pasta" from their "reaction to a pasta order."
  • The Result: You are left with a score that purely measures: "How much does this chef specifically care about the connection between your order and the dish?"
  • This helps separate chefs who are trained on specific data (like a chef who only learned from Italian cookbooks) from those who learned from everything.

4. The "Prompt Shift" (Moving on the Map)

One of the coolest discoveries is that you can move a chef's position on the map just by changing your order.

  • The Experiment: They took a chef and gave them a normal order. Then, they gave them the same order but added the phrase "Let's think step by step" (a trick to make AI smarter).
  • The Result: The chef didn't just change the dish; they physically "moved" on the map to a new spot.
  • The Magic: They found that these movements are additive.
    • Moving the chef with "Step-by-Step" is like taking a step North.
    • Moving the chef with "Repeat the order" is like taking a step East.
    • If you do both, the chef moves North-East, exactly where you'd expect if you just added the two steps together.

This means we can predict how a chef will behave with a complex new order just by adding up the effects of smaller, known changes.

Why Does This Matter?

  • No Guessing Games: You don't need to wait for the AI to generate text (which can be random or slow) to compare it. You just look at the math.
  • Better Selection: If you need a model that is great at math but bad at creative writing, you can look at the map, find the "Math Cluster," and pick the one closest to your needs.
  • Predicting Behavior: You can predict how a model will change if you tweak your prompt, helping you design better instructions without trial and error.

In a nutshell: This paper gives us a GPS for the world of AI models. Instead of guessing how they behave by watching them cook, we look at their internal recipe books to see exactly where they stand, how they move when we change the instructions, and which ones are actually trained on the specific ingredients we care about.

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 →