SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.04991 · 2022

TRUE: Re-evaluating Factual Consistency Evaluation

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2204.04991.json · badge: /api/ran/2204.04991.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
google-research/true canonical (classifier label)
classifier basis not recorded on the link
3 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_precision_recall_per_threshold Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
google-research/true/src/meta_evaluation_lib.py
code served (permissive licence) · get_code("be46dccd4c356bd0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PrecisionRecallValues. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import dataclasses
import enum

class Labels(enum.IntEnum):
    GROUNDED = 1
    UNGROUNDED = 0

@dataclasses.dataclass
class PrecisionRecallValues:
    """Class representing the grounded and ungrounded precision and recall."""
    grounded_precision: float
    grounded_recall: float
    grounded_f1: float
    ungrounded_precision: float
    ungrounded_recall: float
    ungrounded_f1: float

# Create sample data for predictions and labels
# predictions: binary predictions (0 or 1)
# labels: ground-truth binary labels (0 or 1)
np.random.seed(42)

predictions = np.array([1, 0, 1, 1, 0, 1, 0, 0, 1, 1], dtype=np.int64)
labels = np.array([1, 0, 1, 0, 0, 1, 1, 0, 1, 0], dtype=np.int64)

ARGS = {
    "predictions": predictions,
    "labels": labels,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PrecisionRecallValues — a PrecisionRecallValues output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PrecisionRecallValues output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_optimal_gmeans_threshold Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
google-research/true/src/meta_evaluation_lib.py
code served (permissive licence) · get_code("4a6e0feebf50a8ff")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small sample data
# scores: array of metric scores in range [0, 1]
scores = np.array([0.1, 0.3, 0.5, 0.7, 0.9, 0.2, 0.6, 0.8])

# labels: binary ground-truth labels (1 for grounded, 0 for ungrounded)
labels = np.array([0, 0, 1, 1, 1, 0, 1, 1])

ARGS = {
    "scores": scores,
    "labels": labels,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_predicted_labels Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
google-research/true/src/meta_evaluation_lib.py
code served (permissive licence) · get_code("29d75579f7da87e5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import enum

class Labels(enum.IntEnum):
    GROUNDED = 1
    UNGROUNDED = 0

def get_predicted_labels(scores: np.ndarray, threshold: float) -> np.ndarray:
    """Determine grounding labels (grounded or ungrounded) given metric scores.

  The scores should be in range [0,1]. An example with a score smaller than or
  equals to the given threshold is marked as ungrounded, and marked as grounded
  otherwise.

  Args:
    scores: An array containing the metric scores, should be in range [0,1].
    threshold: A threshold for determining whether a given score corresponds
      with a grounded example or not.

  Returns:
    An array containing the predicted labels, 0 for ungrounded cases and 1
    otherwise.
  """
    return np.array([Labels.UNGROUNDED if score <= threshold else Labels.GROUNDED for score in scores])


# Setup code
scores = np.array([0.2, 0.5, 0.8, 0.3])
threshold = 0.5

ARGS = {
    "scores": scores,
    "threshold": threshold
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_cnndm_articles Not yet run
unverified (harvested, no recorded run)
google-research/true/src/download_datasets.py
code served (permissive licence) · get_code("4be69546fb1f75e4")
How it ran

no invocation recorded.

get_fever_labels Not yet run
unverified (harvested, no recorded run)
google-research/true/src/download_datasets.py
code served (permissive licence) · get_code("878161c624d7e171")
How it ran

no invocation recorded.

get_xsum_articles Not yet run
unverified (harvested, no recorded run)
google-research/true/src/download_datasets.py
code served (permissive licence) · get_code("10498828885714da")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
compute_precision_recall_per_threshold 1 other paper
1 later
2310.14564 (2023-10)
Language Models Hallucinate, but May Excel at Fact Verification
get_optimal_gmeans_threshold 1 other paper
1 later
2310.14564 (2023-10)
Language Models Hallucinate, but May Excel at Fact Verification
get_predicted_labels 1 other paper
1 later
2310.14564 (2023-10)
Language Models Hallucinate, but May Excel at Fact Verification

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Grounded text generation systems often generate text that contains factual inconsistencies, hindering their real-world applicability. Automatic factual consistency evaluation may help alleviate this limitation by accelerating evaluation cycles, filtering inconsistent outputs and augmenting training data. While attracting increasing attention, such evaluation metrics are usually developed and evaluated in silo for a single task or dataset, slowing their adoption. Moreover, previous meta-evaluation protocols focused on system-level correlations with human annotations, which leave the example-level accuracy of such metrics unclear. In this work, we introduce TRUE: a comprehensive survey and assessment of factual consistency metrics on a standardized collection of existing texts from diverse tasks, manually annotated for factual consistency. Our standardization enables an example-level meta-evaluation protocol that is more actionable and interpretable than previously reported correlations, yielding clearer quality measures. Across diverse state-of-the-art metrics and 11 datasets we find that large-scale NLI and question generation-and-answering-based approaches achieve strong and complementary results. We recommend those methods as a starting point for model and metric developers, and hope TRUE will foster progress towards even better evaluation methods.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2204.04991")
get_code_for_paper("2204.04991")
have("2204.04991")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2204.04991.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2204.04991.svg)](https://syntology.ai/paper/2204.04991)

Connect an agent — have() is free.