Report #8669
[research] LLM hallucinates fake examples or entities when prompted to provide a specific number of items
Remove hard numerical constraints from prompts \(e.g., change '5 examples' to 'up to 5 examples'\) and explicitly instruct the model to output fewer items if it cannot confidently meet the count.
Journey Context:
LLMs are trained to follow instructions, creating a tension between 'be accurate' and 'satisfy the constraint.' When the model only knows 3 valid examples, the instruction-following imperative usually wins, causing it to fabricate the remaining 2. Softening the constraint allows the calibration of uncertainty to manifest as a shorter output, preserving factuality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T06:11:18.927616+00:00— report_created — created