White-Box Evaluation of LLMs: A DIKWP-Based Framework and the Cognitive OS Analogy
This article explains how to run white-box evaluations of large language models using the five-layer DIKWP model (Data, Information, Knowledge, Wisdom, Purpose) as observable checkpoints. It defines example metrics and failure thresholds for each layer, describes an end-to-end evaluation workflow with a logging schema, shows how to design positive, negative, and boundary test cases per layer, presents a reproducible composite score ("cognition quotient") along with its limitations, and clarifies where the "cognitive operating system" analogy breaks down. Note: the content is adapted from an unverified draft summary; all metrics, thresholds, and formulas are illustrative examples, not industry standards.
Note: This article is adapted from an unverified draft summary. The issuing organization, version, and original source of the draft cannot be confirmed. All metrics, thresholds, and formulas below are illustrative designs and do not represent any industry standard.
Why White-Box Evaluation Is Needed
Large language models are improving rapidly, but most evaluations only check whether the final output is correct. Accuracy scores and benchmark results tell us how many questions a model answered correctly, but not why it made a particular decision, whether its reasoning chain is complete, or at which step it went wrong. These gaps are especially problematic in high-risk scenarios.
White-box evaluation requires the system under test to expose its internal states. Reviewers examine not only the final result but also the intermediate records produced at each cognitive stage. To support this, the system must provide observable intermediate representations, which in turn requires corresponding engineering adjustments.
How the DIKWP Model Provides Checkpoints
The classic DIKW model divides cognition into four layers—Data, Information, Knowledge, and Wisdom—with information refined upward layer by layer. DIKWP adds a Purpose (intent) layer on top and allows bidirectional feedback between layers.
For evaluation purposes, each of the five layers can serve as an observation target:
- Data layer: which inputs the system perceived.
- Information layer: which entities and relations the system extracted.
- Knowledge layer: whether the reasoning chain is self-consistent.
- Wisdom layer: how the system traded off among multiple objectives.
- Purpose layer: whether the final action accomplished the original goal.
Because each layer’s output can be inspected independently, “interpretability” can be decomposed into concrete measurement questions.
Defining Metrics for the Five Layers
The table below gives example metrics for each layer. The thresholds and decision rules are designed to illustrate the approach and must be calibrated for your specific task before use.
| Layer | Example Metric | Definition | Measurement Method | Example Failure Threshold |
|---|---|---|---|---|
| Data | Input semantic coverage | Proportion of annotated input elements correctly represented | Compare against a manually annotated element list | Below 0.9 |
| Information | Entity extraction accuracy | Proportion of correctly extracted entities out of all gold-standard entities | Compare against a gold-standard entity table | Below 0.85 |
| Knowledge | Reasoning chain completeness | Proportion of reasoning steps with no missing premises | Two reviewers annotate independently; keep agreed items | Below 0.8 |
| Wisdom | Risk avoidance rate | Proportion of high-risk options correctly rejected or flagged | Measure on a predefined set of risky test cases | Below 0.95 |
| Purpose | Task closure success rate | Proportion of tasks in which all sub-goals are completed | Check against the acceptance checklist in the task specification | Below 0.9 |
These metrics are not equally mature. Coverage and accuracy have well-established computation methods and can be used directly. Reasoning chain completeness and risk avoidance depend on annotator judgment, so inter-annotator agreement must be tested—Cohen’s kappa is recommended, with re-annotation required when it falls below 0.6. Quantifying intent alignment remains controversial and should be treated as a research-grade metric.
End-to-End Evaluation Workflow and Report Template
A complete test run proceeds in the following order, with a snapshot saved at every step:
- Submit the task and record the task specification and expected goals.
- Check the Purpose layer: does the system’s parsing of the goal match the specification? If not, mark the run as failed and stop.
- Check the Data layer: were all relevant inputs perceived? Record any missing items.
- Check the Information layer: do the extraction results point in the direction of the intent?
- Check the Knowledge layer: does the reasoning chain contain self-contradictions?
- Check the Wisdom layer: does the final choice satisfy the risk constraints?
- Check Purpose-layer closure: does the action outcome satisfy the acceptance checklist?
The minimum fields for each record are:
task_id: task identifier.timestamp: record time, always in UTC.layer: the layer the record belongs to.snapshot_ref: snapshot reference pointing to a location in controlled storage.metrics: the layer’s metrics and their values.verdict: pass, fail, or pending review.judge_version: version of the decision rules applied.reviewer: identifier of the reviewing person.
Designing Test Cases per Layer
Each layer should be tested with three categories of cases:
- Positive cases: clear inputs and unambiguous rules; the system should pass.
- Negative cases: deliberately injected missing information, contradictory premises, or misleading instructions; the system should detect and flag or reject them.
- Boundary cases: information that sits exactly near the decision threshold, used to verify that threshold-based judgments remain stable.
Take the Information layer as an example. A positive case could be a passage containing explicit names and dates. A negative case could be a passage where a name is ambiguous and two references conflict with each other. A boundary case could be a passage in which only half of the entities are identifiable, used to observe whether the system draws overconfident conclusions from incomplete information.
Computing the “Cognition Quotient”—and Its Limitations
The draft proposes a composite score called the “cognition quotient.” Below is one reproducible example algorithm; it does not represent the draft’s official formula.
- Normalize each layer’s metric to the 0–1 range, using the minimum and maximum values on the same test set as the normalization baseline.
- Assign a weight to each layer according to the scenario, with weights summing to 1.
- Compute the weighted sum and multiply by 100 to obtain the composite score.
The formula is: Cognition Quotient = 100 × Σ(w_i × s_i), where s_i is the normalized score of layer i and w_i is that layer’s weight.
Example weights: in a general-purpose scenario, all five layers carry a weight of 0.2. In a high-safety scenario, the weights for Data, Information, Knowledge, Wisdom, and Purpose are 0.1, 0.15, 0.2, 0.25, and 0.3 respectively.
This approach has three limitations. First, the weights are subjective, and different teams may reach different conclusions. Second, a weighted average can mask single-layer failure: if one layer scores very low while the others score high, the composite may still look good. A per-layer floor should therefore be enforced—for example, any layer below 0.6 fails the entire evaluation. Third, comparisons are only meaningful within the same test set. Finally, the name “cognition quotient” evokes human intelligence; when using it, make clear that it is merely an internal composite score and says nothing about the system’s actual level of intelligence.
Boundaries of the Cognitive OS Analogy
The draft divides a “cognitive operating system” into four layers: a cognitive resource layer, a cognitive scheduling layer, a cognitive collaboration layer, and an intent governance layer. These map loosely onto traditional OS functions such as file and memory management and process scheduling, which aids understanding—but the two are not equivalent.
There are three key differences. First, resource isolation and permission control in traditional operating systems are backed by well-established hardware and kernel mechanisms validated over decades. The cognitive resource layer manages semantic content, for which comparably mature isolation mechanisms do not yet exist. Second, process scheduling relies on quantifiable time slices and priority models, whereas the scheduling goals of cognitive tasks include semantic correctness, which cannot be measured directly in time units. Third, a traditional system snapshot can restore byte-level state exactly, while a cognitive snapshot can only approximate the system’s prior state—an important caveat when relying on snapshots for audit and replay.
