When Specifications Conflict: A Symmetry-Based Framework for Measuring LLM Preferences
This paper introduces a symmetry-based experimental framework to systematically measure how large language models resolve conflicts between competing specifications, revealing a consistent preference hierarchy where formal and naturalized formal languages are favored over pure natural language and input-output examples across diverse domains.
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 are asking a very smart, very well-read friend for help with a tricky puzzle. But here's the catch: your friend has been given two different instruction manuals for the same puzzle, and the manuals contradict each other. One says, "Turn the red knob left," while the other insists, "Turn the red knob right." In the world of Artificial Intelligence, these "friends" are Large Language Models (LLMs)—giant computer programs trained on almost all the text on the internet. They are amazing at writing stories, solving math problems, and even coding, but they often get confused when the information they receive is messy or conflicting.
This paper dives into a specific corner of AI science: Conflict Resolution. It asks a simple but profound question: When an AI gets two conflicting instructions, which one does it actually listen to? Does it prefer a strict, mathematical formula? A casual sentence in plain English? A list of examples? Or a formal code snippet? Understanding this is crucial because as we start using AI for important tasks—like writing computer code, diagnosing medical issues, or making legal decisions—we need to know if the AI is following the "hard rules" or just guessing based on how the words sound. If we don't know which instruction the AI prioritizes, we can't trust its answers.
The Great Instruction Showdown
The researchers at University College London decided to treat this problem like a science fair experiment. Instead of just asking the AI random questions, they built a controlled arena where they could force the AI to choose between two specific, conflicting rules. They called this a "symmetry-based framework," which is a fancy way of saying they set up the game so perfectly that the only thing changing was how the rules were written, not the rules themselves.
To do this, they created a massive "Math Battle Arena" with 550 different conflict scenarios. In each scenario, the AI had to solve a math problem (like calculating a sequence or finding a path on a graph) but was given two different ways to describe the solution. They tested four distinct "languages" of instruction:
- Pure Natural Language: Just regular English sentences (e.g., "Add the numbers together.").
- Formal Language: Strict mathematical symbols and equations (e.g., ).
- Naturalized Formal Language: A mix, using math symbols but wrapped in English sentences (e.g., "The function is defined as .").
- Input-Output Examples: A list of examples showing inputs and their results (e.g., "If 2 goes in, 3 comes out. If 5 goes in, 6 comes out.").
The AI had to pick one of these descriptions to solve a specific test question. The researchers then watched to see which description the AI "trusted" enough to follow.
The Results: The Hierarchy of Trust
The findings were surprisingly consistent. The AI didn't just pick randomly; it had a very clear favorite. It turns out that AI models love structure and hate ambiguity.
The researchers discovered a strict "pecking order" of trust:
- Top Tier: Formal and Naturalized Formal languages were the clear winners. The AI followed these rules about 87% to 93% of the time when they were pitted against plain English or examples. It seems that when the AI sees a clean mathematical formula, it treats it as the "law."
- Middle Tier: Pure Natural Language came in second. It was more reliable than examples but less reliable than math. The AI followed these instructions about 78% of the time when competing against examples.
- Bottom Tier: Input-Output Examples were the least trusted. When the AI had to choose between a list of examples and a clear rule, it almost always ignored the examples.
Think of it like this: If you tell a robot, "Here is a list of times I've eaten lunch: 12:00, 12:15, 12:30," it might guess you eat at 12:45. But if you tell it, "I eat lunch at 12:00 PM every day," it will stick to 12:00 PM. The AI prefers the explicit rule over the pattern it has to guess.
It's Not Just Math: The Real World Tests
The team didn't stop at math. They wanted to see if this "hierarchy of trust" held up in messier, real-world situations. They tested the AI in three other areas:
- Boolean Algebra (Logic Gates): They pitted a compact math formula against a giant "Truth Table" (a massive list of every possible outcome). Even though the Truth Table was exhaustive and impossible to get wrong, the AI still preferred the compact formula 88% of the time. It seems the AI likes "smart" shortcuts over "brute force" lists.
- Code Generation: They gave the AI a conflict between a written description of what a computer program should do and a set of automated tests (code that checks if the program works). Here, the results depended on the AI's "brain power." Smaller, less capable models tended to follow the written description, while the most powerful models strongly preferred the automated tests, following them up to 97% of the time. This suggests that as AI gets smarter, it learns to trust the "hard evidence" of code tests over human descriptions.
- Clinical Rules (Medical Advice): They tested the AI with real medical rules about drug dosages. Interestingly, the AI didn't care about the format (English vs. examples) as much as it cared about the content. In this domain, the AI consistently chose the stricter rule (the one that said "don't do this") over the more permissive one, regardless of how the rule was written. This suggests that in high-stakes fields, the AI has a built-in bias toward safety.
What This Means for Us
The paper concludes that AI isn't just a random guesser; it has a systematic way of deciding which instructions to follow. It generally prefers explicit, structured rules (like math formulas) over implied patterns (like examples).
However, the researchers also found that this isn't a perfect, unchangeable law. The AI's preference can shift depending on how smart the model is and what kind of task it's doing. For instance, in the medical tests, the AI ignored the format entirely and just looked for the "safer" answer.
This study gives us a new tool to measure how AI thinks. By understanding that AI has a "favorite" type of instruction, we can design better systems. If we want an AI to follow a specific rule, we should probably write it as a clear, formal statement rather than hoping it figures it out from a list of examples. It's a reminder that while AI is getting smarter, it still needs us to speak its language clearly—especially when the instructions are in conflict.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.