Bayesian Inference over LLM Beliefs

Ask a language model for a probability under two different conditions, and it often gives the same number twice. BIRD builds the number from factors and a fixed formula instead. On the paper's human test it labels 59.2% of condition pairs the way people do. GPT-4 with chain of thought labels 28.9%, below the 33.3% of a random guess.

Pick a method. Then tap a condition and read where its number comes from. Four conditions, one decision: does a one-foot cord or a six-foot cord let you move more freely while your phone charges? Then we build, piece by piece, the factors, the entailment step, the combining formula and the training loop.

You need a little Python and what a probability is. For conditional probability, see Bayes' Rule. We build the rest from zero.

Session 5 of Georgia Tech CS 8803, LLM seminar. It rests on one paper: Feng, Zhou, Lin and Roth, BIRD: A Trustworthy Bayesian Inference Framework for Large Language Models (ICLR 2025, arXiv 2404.12494 v3). Every idea is re-taught here in our own words and devices.

Score four conditions

Toy: the cord scenario and its three factors come from the paper's prompts (Figs. 5, 6, 10). We made up the 70% answers of "ask directly". They copy the paper's Fig. 1, where OpenAI o1 gives one probability to two different conditions. BIRD's bars use the paper's starting values (Eq. 5) and its formulas. Paper's numbers: Table 1.

Chapter 0

The Same Number Twice

See why a percentage in a model's answer does not track the evidence

A city plans where to build charging stations. A planner asks a model: "This site is on a busy highway. What is the probability we should build here?" Then she asks the same about a quiet street.

The paper's Fig. 1 shows OpenAI o1 giving the same probability to two different conditions. A downstream optimizer needs those two numbers to differ.

The paper tests this on 350 pairs. Each pair has one scenario (a general situation), one outcome, and two conditions (extra facts). People decided which condition supports the outcome more, or that both support it equally. A method scores each condition on its own, in a separate call, and the higher number wins. Three labels are possible, so a random guess is right one time in three.

Read the paper's main table

Each bar is a score from the paper's Table 1. The grey line is a random guess. Pick a column. Then add the easier "explicit comparison" rows.

All values: Table 1 of the paper (350 human-labelled pairs from Common2sense). "Same" means both conditions support the outcome equally. Explicit comparison (EC) shows the model both conditions at once, so the paper marks it as not directly comparable.

The Average column counts every pair together. When each pair gets exactly one predicted label and one true label, that score equals the share of pairs labelled like people. With the table's numbers: 0.289 × 350 = about 101 pairs right for GPT-4 with chain of thought. A random guess gets 0.333 × 350 = about 117. BIRD gets 0.592 × 350 = about 207.

Why can a fluent model score below chance? Its percentage is a phrase it learned to write, not the result of a calculation. Nothing forces the number to move when the condition moves. Scale did not help: GPT-4 scored 0.289, GPT-3.5 scored 0.283.

Failure. A gate such as "ask a follow-up question if the probability is between 40% and 60%" fires the same way for every input. Measure: ask about one scenario under two conditions that point opposite ways, and compare the two numbers. Fix: stop asking the model for the number. Ask it for parts it can judge, and compute the number outside it.

  1. Abduce, then deduce: the plan, and the sum at its heart. The hero's BIRD button.
  2. The factor space: how an LLM writes the factors, and how many worlds they make.
  3. Observed and unobserved: how a condition becomes weights. The hero's chips.
  4. Combine the evidence: Bordley's formula for one full world.
  5. Marginalize by hand: the whole computation, one fact at a time.
  6. Train the factor probabilities: fit them to the LLM's coarse judgments.
  7. Does it work?: the paper's three experiments.
  8. Build an aggregator: the showcase, four factors you set.
  9. Where it breaks: unknown answers, missed signals, double counting.
  10. Field guide: terms, numbers, code, links and the credit.
GPT-4 with chain of thought scores 0.289 on the Average column, where a random guess scores 0.333. What does that mean?

Chapter 1

Abduce, Then Deduce

Split one hard question into parts the model can judge, and add them up outside it

The running example comes from the paper's own prompts. Scenario: you want to move around with your phone while it charges. Outcome 1 (O1): a one-foot cord lets you move more freely. Outcome 2 (O2): a six-foot cord does. A condition adds one fact, such as "the phone charges from a power bank in your pocket".

There are three ways to get from evidence to a decision.

MoveFrom, toWho does it in BIRD
Inductionevidence straight to the decisionnobody: this is direct asking
Abductionevidence to the factors that would explain itthe LLM, once per scenario
Deductionevidence plus factors to the decision, by a fixed rulearithmetic, no LLM

A factor is one thing that could matter, with a small set of values. The paper's LLM wrote three for the cord: the charger is portable or unmovable; you stay close or move in a large radius; you carry the charger or leave it somewhere. A world picks one value from every factor, such as (portable, close, carry).

How likely is O1 given the scenario and the condition? Call that pair the context C, and a world f. BIRD averages over every world. Each world brings its own chance of O1, and counts as much as the context makes it plausible.

Say it aloud

P of O-i given C equals the sum over every world f in F of P of O-i given f, times P of f given C.

P(Oi | C)
P of O-i given C the answer: the chance of outcome i (1 or 2) given the scenario and the condition.
Σf ∈ F
the sum over every world f in F add one term for each world. F is the set of all worlds.
P(Oi | f)
P of O-i given f the chance of outcome i when you know every factor. Chapter 4 computes it.
P(f | C)
P of f given C the weight of world f: how well it fits what the condition says. Chapter 3 computes it.
In plain words

For each world f, take its chance of the outcome, P(Oi | f). Multiply it by the world's weight, P(f | C). Add the products. The total is P(Oi | C).

With numbers

Condition "power bank in your pocket": two worlds fit, (portable, close, carry) and (portable, far, carry), each with weight 0.5. Their chances of O1 are 0.964 and 0.750. P(O1 | C) = 0.5 × 0.964 + 0.5 × 0.750 = 0.857. The one-foot cord wins at 86%.

This is the law of total probability, with worlds in place of numbers. The factors come from the scenario alone, never from a condition. So every condition maps onto the same fixed factors, and two conditions that imply the same values get the same number.

Map a condition onto fixed factors

The three factors stay the same for every condition. Pick a condition and watch which values it implies. A factor it never mentions stays split in pink.

Factors: the paper's Fig. 6. Which value supports which outcome, and which values each condition implies, are our toy labels.

Failure. You rebuild the factors for each new condition, so two phrasings of one fact land on different factors and get different numbers. Measure: rephrase a condition three ways and compare the implied values. Fix: build the factors from the scenario once, and reuse them.

Which part of BIRD sees the specific condition U?

Chapter 2

The Factor Space

Let the model write situations first, then sum them up into factors

The plain way is one prompt: "List the factors and their values." The paper finds this works but misses factors. So BIRD splits the job in two.

  1. For each outcome, the LLM writes 10 sentences that describe familiar situations making that outcome more likely (prompt in Fig. 5).
  2. The LLM sums up the 20 sentences into factors, each with its values (Fig. 6).
  3. For every value, the LLM says which outcome it supports: Statement 1, Statement 2, both or neither (Fig. 7). It answers 3 times and the majority wins.
  4. BIRD drops a factor whose values all support the same thing. The paper's example: "the colour of the vehicle".
"The cell phone's charging method": ["The charger is portable", "The charger is unmovable"] "The user's movement range": ["The user stays very close to the charger", "The user has a large radius of movement"] "The location of the phone charger": ["The user leaves the charger somewhere", "The user carries the charger"]

Those three lines are the paper's Fig. 6 output for the cord. How many worlds do they make? Call the number of factors N, the set of values of factor j Fj, and its size |Fj|.

Say it aloud

The size of F equals the size of F-one, times the size of F-two, and so on, times the size of F-N.

|F|
the size of F how many worlds there are.
|F1|
the size of F-one how many values factor 1 has.
|F2|
the size of F-two how many values factor 2 has.
|FN|
the size of F-N how many values the last factor, number N, has.
In plain words

A world takes one value from each factor. So multiply the value counts of all N factors. The product is the number of worlds |F|.

With numbers

The cord: 2 × 2 × 2 = 8 worlds. The paper's charging-station example (Fig. 2) has six factors with two values each: 26 = 64 worlds. Factors of sizes 2, 3, 2 and 4 give 48 worlds.

Grow the factor space

Each square is one world. Add factors and watch the grid. Then say how many values a condition fixes, and count the worlds still alive.

3
1

Every factor here has two values. The grid stops drawing single squares past 256 worlds and shows the count.

Each value the condition fixes divides the live worlds by that factor's size. Most conditions fix one to three values, so most of F stays open. Chapter 3 says what to do with the open part.

Failure. The factor list misses what conditions talk about, so many conditions imply no value. BIRD then answers "unknown". Measure: the unknown rate on held-out conditions. The paper's Table 7 (Llama-2): one-prompt factors give 74.1% unknown on the Today dataset, two-stage factors give 54.0%. Fix: the two-stage generation, or a stronger model.

Why does BIRD ask for 10 situation sentences per outcome before it asks for factors?

Chapter 3

Observed and Unobserved

Turn one sentence into a weight on every world

A condition arrives: "You walk all over the house while you talk." BIRD asks the LLM an entailment question: does this sentence imply one value of this factor, and if so which?

The prompt (Fig. 8) is strict. A value counts only if the sentence implies it "in most situations"; otherwise the answer is "None". A second prompt (Fig. 9) re-checks each kept value. The LLM answers 3 times, and the majority wins.

Call a factor with an implied value observed, and a factor the condition never touches unobserved. Call the implied value of factor j fj*.

Say it aloud

P of f-j given C equals one if f-j is the implied value f-j-star, zero if it is another value of an observed factor, and one over the size of F-j if the factor is unobserved.

P(fj | C)
P of f-j given C the weight on value fj of factor j, given the context.
1 or 0
one or zero for an observed factor: all the weight on the implied value, none on the others.
fj*
f-j-star the value of factor j that the condition implies.
1 / |Fj|
one over the size of F-j for an unobserved factor: equal weight on each of its values.
In plain words

If the condition implies a value of factor j, put weight 1 on that value and 0 on the rest. If it says nothing about factor j, split the weight evenly over its |Fj| values.

With numbers

"You walk all over the house" implies "large radius", so that value gets 1 and "stays close" gets 0. Charging method has 2 values and is not mentioned: 1 / 2 = 0.5 each. A 3-valued unobserved factor would get 1 / 3 = 0.333 per value.

The paper calls the even split neutral and unbiased: it says "no information". Next, BIRD assumes the factors are independent given the context, so a world's weight is a product.

Say it aloud

P of f given C equals the product over j from one to N of P of f-j given C.

P(f | C)
P of f given C the weight of the whole world f.
∏j=1..N
the product over j from one to N multiply one term for each factor.
P(fj | C)
P of f-j given C the weight of the value that world f picks for factor j, from the rule above.
In plain words

Look up the weight of each value the world picks. Multiply the N weights. A world that contradicts the condition gets a 0 somewhere, so its weight P(f | C) is 0.

With numbers

Condition U1: the world (portable, far, carry) weighs 0.5 × 1 × 0.5 = 0.25. The world (portable, close, carry) weighs 0.5 × 0 × 0.5 = 0. Four worlds survive at 0.25 each, and the weights add to 1.

Weigh the eight worlds

For each factor, choose a value or "not said". Each cell is a world; its fill is its weight.

The rule and the product are the paper's Eqs. 2, 8 and 9. The factors are the paper's Fig. 6.

Failure. The entailment step misses an implied value. That factor becomes unobserved, and the answer drifts toward 50%. Measure: hand-label the implied values on a sample of conditions and compare. The paper's error study (Table 4, Llama-2) puts 30% of its losses to chain of thought on wrong value mappings. Fix: the strict prompt, the re-check, and the vote.

A condition never mentions the movement-range factor. What weights does BIRD give its two values?

Chapter 4

Combine the Evidence

Turn one probability per factor value into one probability per world

The sum in Chapter 1 needs P(O1 | f) for every world. Eight worlds is easy; 64 or 1,024 is not. BIRD keeps one number per factor value instead: the chance of O1 when you know only that value. Then it combines them with a formula from Bordley (1982), a way to pool several probability judgments into one.

Where do the per-value numbers start? From the 3-vote classification of Chapter 2 (the paper's Eq. 5):

The valueStarting P(Oi | fj)
supports outcome i75%
is neutral50%
supports the other outcome25%

Bordley's general formula has a weight per factor and a prior P(Oi). BIRD sets every weight at 1 and the prior at 50%, since nothing favours either outcome. Call the chance of outcome i given value fj of factor j P(Oi | fj).

Say it aloud

P of O-i given f equals the product over j of P of O-i given f-j, divided by that same product plus the product over j of one minus P of O-i given f-j.

P(Oi | f)
P of O-i given f the chance of outcome i in the full world f.
∏j P(Oi | fj)
the product over j of P of O-i given f-j multiply each factor's vote for outcome i.
∏j (1 − P(Oi | fj))
the product over j of one minus P of O-i given f-j multiply each factor's vote against outcome i.
In plain words

Multiply every factor's chance for Oi. Separately, multiply every factor's chance against it. Divide the first product by the sum of the two. The result is P(Oi | f).

With numbers

Two values that each give O1 75%: 0.75 × 0.75 = 0.5625 for, 0.25 × 0.25 = 0.0625 against. 0.5625 / (0.5625 + 0.0625) = 0.9. Two half-sure witnesses that agree make you 90% sure.

Read it as odds. A 75% value is odds of 0.75 / 0.25 = 3 to 1. The formula multiplies the odds of all factors, then turns the product back into a probability.

3 × 3 = 9 to 1 → 9 / (9 + 1) = 0.9   ·   3 × (1/3) = 1 to 1 → 0.5

Pool three opinions

Set each value's chance of O1. Teal is the formula; the grey tick is a plain average. Make two agree, then make them fight.

75%
75%
50%

The formula is the paper's Eq. 4. A value at 50% has odds 1 and changes nothing.

Failure. You average the per-value chances. Two agreeing 75% values then stay at 75%, as if the second witness said nothing. Measure: feed two equal values and check the result moves past them. Fix: multiply odds, as Eq. 4 does. A second bug: dropping the "against" product from the bottom gives numbers above 1.

Two factor values give O1 75% and 25%. What does Eq. 4 return?

Chapter 5

Marginalize by Hand

Run the whole computation on the cord, one fact at a time

Every piece is ready: the eight worlds, their weights, and Eq. 4 for each world. Give each value its starting 75% or 25%. Portable, close and carry support the one-foot cord (O1); unmovable, far and leave support the six-foot cord.

Add one fact at a time

Each row is a world: its Eq. 4 chance of O1 and its weight. Step through the facts. Watch which rows fade. No row's chance ever changes.

Toy values from the paper's Eq. 5 (75% and 25%); formulas from Eqs. 1, 2, 4, 8 and 9. We checked every number by brute-force enumeration.

Stage 0. Nothing observed: each world weighs 1/8. The worlds are symmetric, so the answer is 0.500.

Stage 1. "You walk all over the house" implies large radius (25% for O1). Four worlds live, at 0.25 each:

0.25 × (0.750 + 0.250 + 0.250 + 0.036) = 0.25 × 1.286 = 0.321

Stage 2. Add "the phone charges from a power bank": portable (75%). Two worlds live, at 0.5 each:

0.5 × 0.750 + 0.5 × 0.250 = 0.500

A fact for O1 pulled the answer back to 50%, not to somewhere near 75%. Portable cancels far exactly, and the still-open location factor averages to neutral.

Stage 3. Add "you carry the charger": one world is left, (portable, far, carry), at weight 1. The answer is its Eq. 4 value, 0.750.

Second fact after "walks far"DirectionP(O1 | C)
none—0.321
portable (for O1)opposes the first fact0.500
unmovable (for O2)agrees with the first fact0.143

Failure. You plug 50% into Eq. 4 for every unobserved factor, and skip the sum over worlds. Stage 1 then gives Eq. 4 of (0.25, 0.5, 0.5) = 0.25, not 0.321. The two agree only when every value sits at 50%. Measure: compare against brute-force enumeration on a small case. Fix: score each full world first, then average with the weights.

pythonfrom itertools import product
from math import prod
p = {'portable':.75, 'unmovable':.25, 'close':.75, 'far':.25, 'carry':.75, 'leave':.25}
F = [['portable','unmovable'], ['close','far'], ['carry','leave']]
def eq4(ps): n = prod(ps); return n / (n + prod(1 - q for q in ps))
def answer(seen):                              # seen: the implied values
    total = 0
    for f in product(*F):
        w = prod((v in seen) if set(vals) & seen else 1 / len(vals) for v, vals in zip(f, F))
        total += w * eq4([p[v] for v in f])
    return total
print(answer({'far'}), answer({'far', 'portable'}))      # 0.321 0.5
"Walks far" gave 0.321. Adding "portable" gave exactly 0.500. Why?

Chapter 6

Train the Factor Probabilities

Fit one number per value to the LLM's coarse judgments of full worlds

The 75/50/25 start cannot tell a value that barely helps from one that decides everything. An LLM judges a full world well, so BIRD samples 128 worlds per scenario and asks the LLM to rate each on seven words, mapped to numbers.

Wordvery unlikelyunlikelysomewhat unlikelyneutralsomewhat likelylikelyvery likely
Number0%20%40%50%60%80%100%

The paper's Fig. 10 rates the world (portable, close, carry) as "likely", 80%. Eq. 4 at the start says 0.964 for that world. The squared error is (0.964 − 0.8)2 = 0.027.

Fitting the error alone has a risk: a value labelled "supports O2" can drift past 50%. To check a value's direction, BIRD fixes it and averages Eq. 4 over every way to fill the other factors. Call that filling f*, its set F*, and its size |F*|.

Say it aloud

P-trained of O-i given f-j equals one over the size of F-star, times the sum over f-star in F-star of P of O-i given f-star together with f-j.

Ptrained(Oi | fj)
P-trained of O-i given f-j what value fj says about outcome i, averaged over everything else.
1 / |F*|
one over the size of F-star divide by the number of fillings, to make an average.
Σf* ∈ F*
the sum over f-star in F-star add one term for each way to set the other factors.
P(Oi | f* ∪ fj)
P of O-i given f-star together with f-j Eq. 4 for the full world made of fj plus that filling.
In plain words

Hold value fj fixed. Fill the other factors in every possible way. Score each full world with Eq. 4 and average the |F*| scores.

With numbers

Fix "far" at the start values. The other two factors give 4 fillings, scored 0.750, 0.250, 0.250 and 0.036. The average is 1.286 / 4 = 0.321: below 50%, so "far" still points to O2.

The loss adds a penalty when that average crosses 50% the wrong way. Call the fit error ℓMSE and the label's direction y: +1 for "supports Oi", −1 for the other. Call the margin ε and the penalty weight α.

Say it aloud

L equals l-M-S-E plus alpha times the max of zero and minus y times P-trained minus one half, plus epsilon.

L
L the loss that gradient descent lowers.
ℓMSE
l-M-S-E the mean squared gap between Eq. 4 and the LLM's rating, over a batch of worlds.
α
alpha how much the direction penalty counts. The paper uses 10.
max(0, −y · (Ptrained − 0.5) + ε)
the max of zero and minus y times P-trained minus one half, plus epsilon the margin ranking penalty: 0 while the value stays on its labelled side of 50%, positive once it crosses. The paper sets ε to 0.
In plain words

Add the fit error ℓMSE to alpha times a penalty. The penalty is zero while each value's Ptrained stays on its side of 50%. It grows as soon as one crosses.

With numbers

With made-up numbers: a value labelled for O2 (y = −1) drifts to Ptrained = 0.6. The penalty is max(0, 1 × 0.1 + 0) = 0.1, times α = 10, so 1.0: about 30 times a typical fit error of 0.03.

Train with and without the guard

A toy judge rates the 8 worlds. It thinks leaving the charger helps the short cord a little, against the label. Pick α and press Train. Watch "leave".

Toy, run live: the paper's settings (SGD, learning rate 0.01, batch 4, 20 epochs over 128 samples = 640 steps, ε = 0) on our made-up judge. Bars are the trained values; ticks are Ptrained.

Source of P(Oi | f) (Llama-3.1)Table 1 Average
1/2 rule: all non-neutral values must agree0.480
1/N rule: share of values that support Oi0.532
Eq. 4 on the untrained start0.568
Eq. 4 on trained values0.588

Failure. A factor quietly reverses its meaning. Measure: compare each value's Ptrained with its label. Fix: the margin term. Without it, Today accuracy falls from 74.3% to 65.5% (Table 8, Llama-3.1).

What does the margin ranking term protect against?

Chapter 7

Does It Work?

Read the paper's three experiments and the price each one shows

The paper runs Llama-2-70b-instruct and Llama-3.1-70b-Instruct on three datasets. Common2sense (commonsense): 216 scenarios, 3,822 instances. Plasma (planning): 279 scenarios, 1,395 instances. Today (temporal reasoning): 1,000 instances, the hardest.

Experiment 1: probabilities against people. The 350 pairs of Chapter 0 come from Common2sense. Crowd workers labelled each pair 5 times. If fewer than 4 of 5 agreed, 2 more labelled it, and 5 of 7 had to agree. The final labels: 44.0% condition 1, 43.7% condition 2, 12.3% equal.

BIRD with Llama-2 scores 0.592, against 0.289 for GPT-4 with chain of thought: 30.3 points higher. Even GPT-4 seeing both conditions at once scores 0.540.

The widest gap is on "Same": 0.450 for BIRD against 0.300 for GPT-4 EC. A method that picks the stronger condition rarely says "tie". BIRD gives two conditions the same number when they imply the same values.

Experiment 2: decisions. BIRD picks the outcome with the larger probability. It drops instances where the condition implies no value (its "unknown"), because a fallback such as chain of thought can take those. Chain of thought with self-consistency runs on the same kept instances.

Compare decisions, and count the unknowns

Teal is BIRD's accuracy, blue is chain of thought on the same instances, yellow is the share BIRD left as unknown. Switch the model.

Accuracy: Table 2. Unknown rate with two-stage factors: Table 7.

Experiment 3: two-stage factors. Against one-prompt factors, the two-stage method raises accuracy by 4.4 points on average for Llama-2 (3.0, 5.4 and 4.8 on Today, Plasma and Common2sense) and 3.9 for Llama-3.1, per Table 7. It also cuts the unknown rate on every dataset.

Two uses beyond scoring. Fine-tuning a small model on BIRD's probabilities in place of hard labels raises its average by 1.0 point for T5-large and 1.5 for PatternTime (Table 3). And people preferred BIRD's follow-up question in 132 of 250 cases, the direct question in 82, with 36 ties (Table 9).

Failure. You report accuracy on kept instances and hide how many BIRD dropped. Measure: report the unknown rate next to every accuracy. Fix: name the fallback and score the whole set.

Why is BIRD's lead widest on the "Same" pairs?

Chapter 8

Build an Aggregator

Set four factors yourself and watch the whole deduction run live

This device is BIRD's deduction step with you as the LLM. You set each factor's lean, the chance of O1 for its first value; its second value gets the rest. You choose what the condition implies. The device enumerates every world, scores it with Eq. 4, weighs it, and sums.

Run the deduction

For each factor: pick value 1, value 2 or "not said", and set its lean. The teal needle is the answer. The pink tick is the shortcut that plugs in 50% for unsaid factors.

Toy: you set the leans. The sum over worlds is the paper's Eqs. 1, 2, 8 and 9; each world uses Eq. 4.

Eq. 4 has a second form you already know. Call a value's chance of Oi pj. Its logit is the log of its odds, ln(pj / (1 − pj)).

Say it aloud

P of O-i given f equals sigma of the sum over j of logit of p-j.

P(Oi | f)
P of O-i given f the chance of outcome i in the full world f, the same number as Eq. 4.
σ
sigma the sigmoid, 1 / (1 + e−x): it turns any total into a probability.
Σj
the sum over j add one term per factor.
logit(pj)
logit of p-j the log of the odds of factor j's value: 0 at 50%, positive for Oi, negative against.
In plain words

Turn each pj into its logit. Add the logits. Push the total through sigma. That is logistic regression with every weight 1 and no bias.

With numbers

Two values at 75%: each logit is ln 3 = 1.099. The sum is 2.197, and σ(2.197) = 0.9, the same as Chapter 4.

Try these. Set one factor to 90% and leave three unsaid at lean 75%: the answer is 0.799, not 0.9, because the unsaid worlds pull it toward the middle. The pink shortcut stays at 0.9. Set four factors to 60% each: no single one convinces, together they give 0.835. Set two to 90% for opposite values: the answer is 0.500.

Failure. A build that treats "not said" as an observed 50% value. It matches the true sum only when the factor's own values sit at 50%. Measure: the gap between the needle and the pink tick. Fix: enumerate the open worlds, as the device does.

Four factors each say 60% for O1, all observed. What happens?

Chapter 9

Where It Breaks

Name the cases BIRD gets wrong, and measure each one

1. It says "unknown". If a condition implies no factor value, BIRD has no evidence and returns no answer. With Llama-2 that happens on 54.0% of Today, 31.4% of Plasma and 34.6% of Common2sense; with Llama-3.1, 34.0%, 19.0% and 27.1% (Table 7). Those cases go to a fallback such as chain of thought, with its old problem.

2. Its factors miss part of the condition. The paper studied cases where BIRD (Llama-2) was wrong and chain of thought was right (Table 4):

CauseShare
Factors do not cover all of the condition56.7%
The condition maps to a value it does not imply30%
The final calculation is off13.3%

3. Chain of thought can be right for the wrong reason. Table 6: a hot sauce uses "a significant amount of habanero peppers". Llama-2 answers from the Scoville scale and ignores the amount. It is right, but it did not use the condition.

4. Two factors can say the same thing. Eq. 4 multiplies odds, so it assumes the factors are independent. The paper states this assumption and does not test it. The cord's own factors overlap: if you carry the charger, it must be portable.

Count one fact twice

Condition: "the power bank rides in your pocket". It implies portable and carry, two values that say one thing. Count them as two factors, or merge them.

Toy values (75% each, movement range unsaid). The merge is our illustration; the paper's pruning does not test for overlap between factors.

With the cord's values: counted twice, the answer is 0.857. Merged, it is 0.700. The overlap alone adds 16 points of confidence.

Failure. Confident answers on conditions that restate one fact in two ways. Measure: over many conditions, check how often two factors' implied values appear together. Fix: merge factors that nearly always co-occur before training.

Why does BIRD answer "unknown" so often on Today?

Chapter 10

Field Guide

Keep the terms, the numbers, the code and the links in one place

Direct asking gives a fluent percentage that does not move with the evidence. BIRD asks the LLM for what it judges well: factors, one-value labels, entailment and coarse ratings of full worlds. A formula does the rest. On the paper's human test it agrees with people on 59.2% of pairs, against 28.9% for GPT-4 with chain of thought. The price is an "unknown" on 19% to 54% of instances.

TermMeaningNumber to remember
Factor, valueone thing that could matter, and its options10 sentences per outcome, then sum up
World fone value from every factor|F| = 26 = 64 in Fig. 2
Entailmentwhich values a condition implies3 samples, majority, 1 re-check
Unobserved factorsplit evenly, 1 / |Fj|0.5 per value for 2 values
Eq. 4 (Bordley)multiply odds, weights 1, prior 50%75% and 75% give 90%
Starting valuesfrom the 3-vote classification75%, 50%, 25%
TrainingMSE plus margin ranking128 worlds, α = 10, lr 0.01, 640 steps
Human test350 pairs, 3 labels0.592 vs 0.289 (GPT-4 CoT)
Unknown rateno value implied54.0% Today (Llama-2)

Checklist

  1. Frame the decision as two outcomes that cannot both hold.
  2. Build the factors from the scenario only. Write situations first, then sum them up.
  3. Drop factors whose values all support the same thing. Merge factors that say the same thing.
  4. Use a strict entailment prompt. Leave a factor unobserved when in doubt.
  5. Score full worlds with Eq. 4, then sum with the weights. Never plug 50% in for an open factor.
  6. Train with the margin term on. Check every value's direction after training.
  7. Report the unknown rate next to every accuracy, and name the fallback.
pythonfrom itertools import product
from math import prod

def eq4(ps):                                     # Bordley, weights 1, prior 0.5
    n = prod(ps)
    return n / (n + prod(1 - q for q in ps))

def bird(factors, p, implied):
    # factors: {name: [values]}; p: {value: P(O1 | value)}; implied: {name: value}
    if not implied:
        return "unknown"                           # no evidence: hand off to a fallback
    names = list(factors)
    total = 0.0
    for world in product(*(factors[n] for n in names)):
        w = 1.0
        for n, v in zip(names, world):
            w *= (v == implied[n]) if n in implied else 1 / len(factors[n])   # Eqs. 8, 9
        if w:
            total += w * eq4([p[v] for v in world])  # Eqs. 1, 2, 4
    return total

F = {'method': ['portable', 'unmovable'], 'range': ['close', 'far'], 'location': ['carry', 'leave']}
p = {'portable': .75, 'unmovable': .25, 'close': .75, 'far': .25, 'carry': .75, 'leave': .25}
print(bird(F, p, {'range': 'far'}))                       # 0.321
print(bird(F, p, {'method': 'portable', 'location': 'carry'}))   # 0.857

What the authors leave open

The paper blames most unknowns and errors on incomplete factors, and says better factor generation is the path. It assumes conditional independence of factors and does not measure overlap. It handles two outcomes per decision. Its human test covers one dataset, Common2sense, and only conditions that BIRD could map to a factor.

Keep going

Credit: Session 5 of Georgia Tech CS 8803, LLM seminar. Paper: BIRD: A Trustworthy Bayesian Inference Framework for Large Language Models by Yu Feng, Ben Zhou, Weidong Lin and Dan Roth (ICLR 2025, arXiv 2404.12494). Code: github.com/CogComp/BIRD. The toy judge, the toy condition labels and all made-up numbers are ours.

The takeaway. A probability is only as good as the process that makes it. Let the model judge small, well-posed parts. Let arithmetic you can audit make the number, and say "unknown" when there is no evidence.

Teach it back: open Present or Teach and explain abduction, the even split and Eq. 4 to a friend. Then go back to the four conditions and predict each BIRD bar before you press the button.

CS 8803 LLM Seminar, Session 05: Bayesian Inference over LLM Beliefs
BIRD paper · Back to Gleams