How to Evaluate and Improve LLM Accuracy in Fortune-Telling Tasks
This article reframes the debate over whether large language models can tell fortunes accurately as an engineering problem: how to assess and improve the reliability of generative output on a task that relies heavily on interpretation and lacks verifiable labels. It explains why accuracy comes from input constraints, sampling strategy, and validation loops rather than from the model itself, then maps a practical five-step workflow to engineering principles, covering deterministic chart calculation, anchor events as few-shot constraints, output format restrictions, and single-question prompts. It also shows how self-consistency sampling turns "accuracy" into a measurable confidence proxy, how counterfactual probes expose post-hoc rationalization, and why cross-system cross-validation requires time-based splitting and pre-registered criteria to avoid shared confirmation bias. A reusable layered architecture and deployment notes are included, along with boundaries for high-stakes decisions.
1. The Core Issue: Models Have No Domain Knowledge, Only Language Distributions
Most arguments about whether LLMs can tell fortunes accurately stay at the level of user experience. Restated in engineering terms, the question becomes: on a task that depends heavily on interpretation and lacks verifiable labels, how do you assess and improve the trustworthiness of generative model output?
An LLM is fundamentally a conditional model of a text distribution. What it does well is translate one symbolic system (heavenly stems and earthly branches, five elements, planetary positions) into a natural-language narrative. The apparent “accuracy” usually comes from three mechanisms stacking together: the source texts are broadly worded and inherently elastic in interpretation; the model quickly produces a self-consistent story that reads as plausible; and the person asking projects known facts into the narrative, creating confirmation bias.
Accuracy is therefore not an intrinsic property of the model. It is an engineering outcome determined jointly by input constraints, sampling strategy, and a validation loop.
2. Why the Original Five-Step Practice Works
The original practice says: cast your own chart and luck cycles first, then hand them to the model; demand no detours, no feel-good filler, and no unauthorized speculation; finally, supply several real life events as anchors. Each step maps onto an engineering principle.
- Cast the chart yourself before input: this separates deterministic computation from probabilistic generation. Calendar conversion, solar-term boundaries, and true solar time correction are deterministic logic and are more reliably handled by code or authoritative tools; the model is only responsible for interpretation.
- Provide anchor events: this is equivalent to a few-shot constraint, compressing open-ended generation into conditional inference under known labels and sharply reducing room for free improvisation.
- Ban storytelling and emotional phrasing: this is an output format constraint that keeps the token budget from being consumed by rhetoric, so the reasoning chain stays closer to the symbols on the chart.
- Ask about one thing at a time: this reduces multi-task coupling, prevents the model from making implicit trade-offs among several constraints, and makes it easier to locate the source of a deviation.
A schematic structured input looks like this:
{"role": "Destiny analysis engine; reason only from the given chart","chart": {"bazi": "custom casting result", "dayun": "custom luck cycle sequence"},"anchors": [{"year": 2015, "event": "started a job"},{"year": 2019, "event": "relocated"}],"constraints": ["do not speculate about information not provided", "no comforting language", "conclusions must cite chart symbols"],"question": "Analyze only the tendency toward career change in 2026"}
3. Multi-Sampling Consistency: Turning “Accurate” into a Measurable Metric
The original practice mentions generating five answers to the same question: if they agree, continue; if they conflict, have the model debate itself. In engineering terms this is self-consistency: sample the same prompt multiple times independently and use the concentration of the answer distribution as a proxy for confidence.
def confidence(prompt, n=5, temperature=0.8):outs = [call_model(prompt, temperature=temperature) for _ in range(n)]# Normalize, cluster, and take the share of the largest clusterlabels = [normalize(o) for o in outs]top = max(set(labels), key=labels.count)return top, labels.count(top) / n, outs
Three practical points: the temperature should not be too low, or the five samples will be nearly identical and consistency loses its discriminating power; semantic normalization is needed before clustering, so that synonymous phrasings are not counted as disagreement; when the largest cluster falls below a threshold (for example 0.6), trigger a prompt rewrite rather than accepting the answer outright.
4. Counterfactual Testing: Detecting “Draw the Target After Shooting”
The most valuable part of the original content is its demonstration that the model can invent a self-consistent rationale for any given fact: tell it event A happened and it explains A; then correct it that the event was actually B, and it immediately switches to explaining B. This is textbook post-hoc rationalization, known in evaluation as a counterfactual probe.
The construction is simple: keep the chart unchanged, swap the year or type of the anchor event, and observe whether the conclusion flips while the explanation stays equally fluent.
Probe A: A home purchase was completed in 2018. Explain the chart basis.Probe B: Correction: no purchase happened in 2018; it was actually surgery. Re-explain the basis.Verdict: If both explanations are highly self-consistent and do not exclude each other, the conclusion has no discriminating power.
Discriminating power means the conclusion must be falsifiable by a counterexample. A judgment that can explain both the occurrence and the non-occurrence of an event carries zero information. Engineering practice should treat “can this be overturned by a counterfactual?” as an admission criterion, not the elegance of the narrative.
5. How to Do Cross-System Cross-Validation Correctly
Cross-checking with another symbolic system (such as Zi Wei Dou Shu, Western astrology, or Vedic charts) seems reasonable, but one trap must be avoided: if all three systems explain the same set of anchors, they share the same confirmation bias, and their agreement reflects only narrative convergence, not predictive ability.
A more rigorous design is a time split: use earlier events as anchors, lock the interpretive framework, then run a blind test on later events that took no part in the fitting. Criteria should also be registered in advance, for example “the probability of a change in career direction in that year is above baseline,” and checked afterward. This aligns with the train/validation split in machine learning and with the principle of avoiding data leakage.
6. A Reusable Engineering Design
To turn the above into a service, a layered design works:
- Deterministic layer: chart casting, calendar conversion, time zone and true solar time correction, implemented in code with unit tests covering boundary dates.
- Prompt orchestration layer: role setup, chart injection, constraint templates, and anchor management, with templates decoupled from business logic.
- Sampling and arbitration layer: multiple samples, semantic clustering, and on disagreement, two-sided argumentation that outputs a list of divergence points.
- Validation layer: counterfactual probes, a blind test set, confidence thresholds, and a refusal policy.
- Observability layer: a logging service records the input fingerprint and output distribution of each session, while monitoring and alerting track drift in refusal rate and mean consistency.
For deployment, model inference can run on a container platform, batch casting and validation jobs can go through a message queue to smooth out peaks, sessions and validation results can land in object storage, and sensitive fields should be masked before storage. If you use relevant general-purpose capabilities from Baidu AI Cloud, they are typically composed along the categories above rather than depending on a single point API.
7. Boundaries and Conclusion
- Keep probabilistic and uncertainty phrasing; do not rewrite it into definite assertions. This is the first gate against hallucination.
- A model’s explanatory ability is not predictive ability. The former is a matter of language fluency; the latter requires falsifiable criteria.
- For real-world decisions involving medical, legal, or financial matters, destiny output can only serve as narrative reference and is not a basis for action.
- The real barrier is not whether you know how to ask, but whether you are willing to build a validation loop: define what “wrong” means first, then talk about “accurate.”
The conclusion: performance on this kind of task depends on whether you treat the model as a reasoning component that needs constraints and validation, rather than an answer generator. Give deterministic computation back to code, give interpretation to the model, and give trustworthiness to sampling consistency and counterfactual testing. That is the reproducible, evaluable approach.
