Research Careers Contact

GlossaryHallucination

Hallucination

A hallucination is an AI output that sounds confident but is not supported by the model's inputs or by fact, such as an invented part number, a wrong pin map or a design rule that does not exist. NIST's generative AI profile calls this confabulation: confidently stated but false content.

How it works

A language model writes the most plausible continuation of its input. When the input contains the answer, plausible and correct usually coincide. When it does not, the model still produces something plausible, and plausible is not the same as true. A part number that follows a maker's naming pattern, a pinout that matches a similar package, or a clearance value that sounds standard can all come out with the same confidence as a fact read from a datasheet.

Hallucinations are more common when the question asks for exact values the model was not given, when sources conflict, when the context is long and the relevant detail is buried, or when the task pushes the model to answer rather than to say it does not know.

Hallucination vs error

Any system makes errors. What sets a hallucination apart is that it has no basis in the inputs and gives no signal that it is a guess. An error in a calculation can be traced. A hallucinated value looks exactly like a looked-up one, which is why it slips past review.

Why it matters

In electronics, a hallucination becomes hardware. An invented MPN sends a buyer after a part that does not exist. A wrong pin map produces a footprint that connects the right part to the wrong nets. A made-up rule value passes a review and fails at the shop. Each costs a hold, a rework or a respin, and the failure appears far from where the guess was made.

How to get it right

  • Give the model the source, using grounding, and require it to cite the table or line each value comes from.
  • Use tools for values a tool can compute or look up, such as a design rule check, a stock query or an MPN lookup.
  • Tell the model to say when the source does not contain the answer.
  • Check outputs the way you check a person's: against the datasheet, the rule check and the test.
  • Keep a record of sources and tool calls so a wrong value can be traced.

Hallucination in robotics and drone hardware

Robot and drone designs depend on exact values: motor driver pinouts, connector ratings, sensor register maps, timing budgets. These are exactly the details a model invents most often when it is not given the source. An agent working on these boards has to read every such value from a document or a tool, and every value it writes into a design has to pass the same checks as any engineer's.

Learn more