Object Hallucination

Object hallucination is when a vision-language model (a language model that reads an image and answers in text) mentions or confirms an object that is not in the image. Asked to describe a kitchen photo with no dining table, the model says “a dining table in the background”; asked “Is there a dining table in the image?”, it answers yes. The text is fluent and confident, so the error does not announce itself.

Why it happens

The language side of the model has strong priors about which objects go together. After “kitchen”, “chair” and “dining table” are likely continuations whether or not the image shows them. If the visual evidence reaching the language model is weak, coarse, or ignored, the prior wins. Li et al., who introduced the POPE benchmark below, report that objects which occur frequently in the dataset, or co-occur with objects that really are in the image, are the ones models hallucinate most often.

Measuring it by generation: CHAIR

One approach has the model write a caption, extracts the objects it mentions, and checks them against the image’s ground-truth object list. CHAIR (Rohrbach et al.) reports the share of mentioned objects that are absent, and the share of captions containing at least one absent object. Its weakness is that the number depends on how the model chooses to write: a model that produces short, cautious captions mentions fewer objects and has fewer chances to be wrong.

Measuring it by polling: POPE

POPE (Polling-based Object Probing Evaluation, Li et al.) asks yes/no questions of the form “Is there a <object> in the image?” The questions come in two kinds in equal numbers. Positive questions name objects that annotations say are present. Negative questions name objects that are absent, chosen in one of three ways:

  • Random: objects drawn at random from those absent from the image.
  • Popular: the objects that are most frequent in the whole dataset among those absent from this image.
  • Adversarial: absent objects that most often co-occur with the objects that are present.

The three settings get progressively harder because they line up with the failure mode: frequent and co-occurring objects are the ones a prior-driven model says yes to. Li et al. built the probes from MSCOCO annotations and report that scores fall from the random to the popular to the adversarial setting.

Because positives and negatives are balanced, accuracy alone hides a bias, so POPE also reports precision, recall, F1 and the yes-ratio, the fraction of questions answered yes. The arithmetic below uses hypothetical counts for 3,000 questions, half with a true answer of yes.

def metrics(tp, fp, tn, fn):
    n = tp + fp + tn + fn
    p = tp / (tp + fp); r = tp / (tp + fn)
    return (tp + tn) / n, p, r, 2 * p * r / (p + r), (tp + fp) / n
cases = {"always yes": (1500, 1500, 0, 0),
         "yes-biased model": (1450, 600, 900, 50),
         "careful model": (1300, 150, 1350, 200)}
for k, v in cases.items():
    print(k, "acc %.3f prec %.3f rec %.3f F1 %.3f yes-ratio %.3f" % metrics(*v))
always yes acc 0.500 prec 0.500 rec 1.000 F1 0.667 yes-ratio 1.000
yes-biased model acc 0.783 prec 0.707 rec 0.967 F1 0.817 yes-ratio 0.683
careful model acc 0.883 prec 0.897 rec 0.867 F1 0.881 yes-ratio 0.483

A model that never looks at the image and always says yes scores accuracy 0.5, recall 1.0 and F1 0.667, so F1 0.667 is an always-yes baseline, not a lower bound: an always-no model has F1 0 under the usual zero-score convention. Scores should be read together with precision, recall, and the yes-ratio. The yes-biased model has recall 0.967 and a yes-ratio of 0.683: its main error is confirming absent objects (600 false positives), though it also misses 50 present ones. The careful model’s yes-ratio of 0.483 is near the 0.5 that a perfect answerer would produce. Li et al. report that several of the models they tested answered yes to more than 95 percent of questions in the random setting, which is this always-yes pattern.

Limits of the probe

  • Only existence is tested. Wrong colors, counts, positions and invented relations between objects are not probed.
  • The vocabulary is the dataset’s object categories, so a model can pass POPE and still invent things outside those categories.
  • Ground truth is only as good as the annotations. If an object is visible but unannotated, a correct yes counts as a false positive. In the hypothetical careful model above, if 60 of its 150 false positives were such cases, its accuracy would rise from 0.883 to 0.903 with no change in the model.
  • A yes/no question is a different task from writing a description. A model can resist the leading question and still hallucinate when it writes freely, so polling and caption-based metrics are best read together.
  • Results depend on the question template; rewording the question can change the yes-ratio.

Neighbors

Object hallucination concerns what the image contains. A related failure is a text-only hallucination, where a language model states a false fact with no image involved. Fixes differ by cause: a weak visual connector calls for a better vision pathway or training data, a prior-dominated dataset for rebalancing or negative examples, and decoding settings for changes at generation time.

References


Discover more from Insightful Data Lab

Subscribe to get the latest posts sent to your email.

Similar Posts

Questions, corrections, or additional insights?

This site uses Akismet to reduce spam. Learn how your comment data is processed.