Why LLMs Still Make Basic Mistakes in Fortune-Telling: Breaking Down Hallucinations and Reasoning Chains
This article examines why large language models fail at highly symbolic tasks such as Chinese fortune-telling, even at the highest reasoning effort. It traces errors to concept confusion, broken reasoning chains, missing domain knowledge, retrieval contamination, reasoning drift, and absent validation. It then presents an engineering approach: deterministic calculation in code, term-level retrieval governance, staged reasoning with structured state, rule-based validation with confidence thresholds, and full observability. The goal is to move such applications from demo-ready to production-ready.
1. What Goes Wrong: Why “Maximum Reasoning Effort” Still Produces Basic Errors
In highly symbolic tasks such as fortune-telling, large language models often show a clear gap in performance: the middle of the reasoning looks coherent and dense with terminology, but the most basic conceptual layer collapses. The problems fall into two categories.
The first is conceptual error. For example, the model may confuse “Shang Guan” (Hurting Officer) with “Shi Shen” (Eating God). Both belong to the “outlet” category generated by the Day Master in traditional fortune-telling, but their yin-yang attributes differ, and so do the pattern judgments derived from them. More seriously, the model may misidentify the Day Master itself by parsing the correspondence between the Heavenly Stems and the Day Pillar incorrectly. Once this happens, every later step loses its foundation.
The second is chain error. The original author makes a key point: if step one and step two are wrong, steps three through seven cannot be right. This reveals an engineering fact: generative models do not guarantee consistency across a reasoning chain. They are better at producing continuations that look plausible than at maintaining a globally correct state.
It is important to note that these errors are not caused by insufficient “thinking time.” Increasing reasoning effort or lengthening the chain of thought can reduce some errors, but it cannot eliminate conceptual confusion at the mechanism level. The reason lies in the probabilistic nature of generation: the model predicts the likelihood of the next token rather than performing symbolic computation in a formal system.
2. Root Causes: Which Layer Do Hallucinations Enter From
Separating the problem into layers makes it easier to identify remedies.
- Knowledge-layer gaps. The fortune-telling terminology system is large and divided among competing schools. The same term is not defined identically across texts. In pretraining data, this content is low in density and high in noise, so the model learns only vague co-occurrence relationships.
- Retrieval-layer contamination. When an application connects to an external knowledge base, improper chunking can place the definition of “Shi Shen” and examples of “Shang Guan” in the same chunk. The model then cites them interchangeably.
- Reasoning-layer drift. In long-chain generation, early conclusions are not fixed as structured state. Later steps rely on attention looking back, which can lose constraints.
- Missing validation layer. Most demo applications return the first output directly to the user without a second check, so errors surface naturally.
3. Engineering Remedies
3.1 Make Input Parsing a Deterministic Program
Converting a birth date and time into the Four Pillars is pure computation and should not be delegated to the model. Do it in code; let the model handle only explanation.
# Example: deterministic conversion; the model does not participatedef to_ganzhi(year, month, day, hour):# Compute the Four Pillars after solar-term and true-solar-time correctionreturn {"year_pillar": "...", "month_pillar": "...","day_pillar": "...", "hour_pillar": "...","day_master": "..."} # The Day Master is provided by the program; the model must not rewrite it
Key point: the Day Master and Ten Gods relationships are obtained by program lookup and injected into the prompt as immutable parameters, with an explicit constraint that the given fields must not be modified.
3.2 Knowledge Constraints and Retrieval Governance
- Build a terminology dictionary with one record per concept, including definition, yin-yang attribute, generation and control relationships, and common misjudgment notes.
- Chunk retrieval at term granularity and attach source identifiers to avoid cross-concept mixing.
- Enforce a “define first, then reason” order that requires the model to restate key definitions before inference.
3.3 Staged Reasoning with Fixed State
Split the long chain into stages. Each stage outputs a structured result, and the next stage reads only the structured output of the previous one.
{"step1_day_master": "Jia","step2_ten_gods": {"Shang Guan": "Ding", "Shi Shen": "Bing"},"step3_pattern": "...","constraints": ["day_master_immutable": true]}
The benefit is that errors become locatable: if one step is abnormal, you only roll back that step instead of rerunning the whole chain.
3.4 Automatic Validation and Confidence Strategy
- Rule validator: check whether the yin-yang of the Ten Gods matches, whether generation and control directions conflict, and whether terms exist in the dictionary.
- Cross sampling: generate multiple times for the same input; if key fields disagree, mark low confidence and escalate to a human or return “insufficient information.”
- Confidence-tiered output: continue only when the conceptual layer is high confidence; terminate on low confidence and explain why.
3.5 Observability
Write each request’s input parameters, retrieved snippets, structured output of each step, and validation results to a logging service. Set thresholds and alerts for “conceptual error rate” and “chain interruption rate.” Without measurement there is no optimization.
4. Common Pitfalls
- Assuming that more reasoning effort solves conceptual errors; in fact, conceptual errors require external knowledge constraints.
- Stuffing all logic into one very long prompt, which dilutes constraints against each other.
- Using model self-assessment instead of rule validation; the model is equally biased when judging its own output.
- Ignoring school differences and failing to declare which definition system is used, which users perceive as “making things up.”
5. Implementation Checklist
- Programmatize all computational steps; let the model only explain and express.
- Build the terminology dictionary first and chunk retrieval by concept.
- Stage the reasoning, structure the state, and make errors rollback-able.
- Combine rule validation with cross sampling; do not force an answer at low confidence.
- Log the full chain and set metric alerts for continuous iteration.
- Clearly declare the system and boundaries to manage user expectations.
6. Conclusion
The weakness of large language models in symbolic reasoning tasks is essentially the gap between probabilistic generation and formal constraints. Returning deterministic computation to code, turning knowledge constraints into searchable and verifiable assets, and splitting the reasoning chain into an observable state machine can move such applications from “usable in a demo” to “usable in engineering.” This is also the approach Baidu AI Cloud repeatedly emphasizes when building industry applications: use engineering means to secure the lower bound first, then discuss the upper bound of model capability.
