SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.15792 · EMNLP · 2025

Long-Form Information Alignment Evaluation Beyond Atomic Facts

Mirella Lapata, Jeff Pan, Danna Zheng

arXiv · PDF · Open in the Atlas

Code that ran

3 of 10 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 3 have no contract verdict; 0 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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/2505.15792.json · badge: /api/ran/2505.15792.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
dannalily/DoveScore community
Papers with Code archive
3 ran · 7 no recorded run
FunctionStatusWhere it lives
DefaultDecomposer Ran
ran on a synthesized input
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("e3707bdb782976ff")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. 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 torch
import numpy as np
from unittest.mock import Mock, MagicMock
from openai import OpenAI
import time
from pydantic import BaseModel, Field
from typing import List, Tuple
from abc import ABC, abstractmethod

class Decomposer(ABC):
    @abstractmethod
    def decompose(self, paragraph: str) -> Tuple[List[str], List[str]]:
        """Return (events, descriptives) from paragraph."""
        pass

class EventTemp(BaseModel):
    Event: List[str] = Field(..., description='List of Event Facts.')
    Descriptive: List[str] = Field(..., description='List of Descriptive Facts.')

SYS_PROMPT = "Please analyze the following paragraph and extract all independent factual statements, categorized into two types: Event Facts and Descriptive Facts.\n\n## Definitions:\n- Event Facts:\nTime-dependent facts that describe specific actions, changes, occurrences, or emotional/mental states. These involve entities doing something or experiencing something dynamically at a particular point in time, and can be situated along a timeline.\nExamples:\nThe spacecraft entered Mars' orbit after a six-month journey.\nDr. Lin submitted her resignation.\nMary felt happy about her promotion.\n\n- Descriptive Facts:\nTime-independent facts that define, classify, or describe static attributes or relationships of entities. These do not occur at a specific time, and are considered stable or inherent properties.\nExamples:\nHelianthus is a genus in the daisy family Asteraceae.\nOctopuses have three hearts.\n\n## Instructions:\n1. Break down the paragraph into individual, self-contained factual statements.\n2. Resolve all pronouns and referring expressions to their full entity names for clarity.\n3. Categorize each fact as either an Event Fact or a Descriptive Fact, according to the definitions above.\n3. Output two separate lists:\n- Event Facts List: List in chronological order.\n- Descriptive Facts List: Order does not matter."

class DefaultDecomposer(Decomposer):
    def __init__(self, llm: str, client: OpenAI):
        self.llm = llm
        self.client = client

    def decompose(self, paragraph: str):
        prompt = SYS_PROMPT + f'\n\nParagraph: {paragraph}\n\nEvent Facts List and Descriptive Facts List:'
        tries = 0
        while True:
            try:
                resp = self.client.beta.chat.completions.parse(model=self.llm, messages=[{'role': 'user', 'content': prompt}], response_format=EventTemp, temperature=0)
                events = [e.strip() for e in resp.choices[0].message.parsed.Event if e.strip()]
                descs = [d.strip() for d in resp.choices[0].message.parsed.Descriptive if d.strip()]
                return (events, descs)
            except Exception:
                tries += 1
                if tries > 10:
                    return ([], [])
                time.sleep(1)

mock_client = Mock(spec=OpenAI)
mock_parsed = Mock()
mock_parsed.Event = ["Event 1", "Event 2"]
mock_parsed.Descriptive = ["Descriptive 1"]
mock_message = Mock()
mock_message.parsed = mock_parsed
mock_choice = Mock()
mock_choice.message = mock_message
mock_response = Mock()
mock_response.choices = [mock_choice]
mock_client.beta.chat.completions.parse.return_value = mock_response

INIT_ARGS = {
    'llm': 'gpt-4-turbo',
    'client': mock_client
}

ARGS = {
    'paragraph': 'The spacecraft entered Mars orbit after a six-month journey. Mars is a red planet.'
}

METHOD = 'decompose'

if __name__ == '__main__':
    decomposer = DefaultDecomposer(**INIT_ARGS)
    result = decomposer.decompose(**ARGS)
    print("Result:", result)
    print("Events:", result[0])
    print("Descriptives:", result[1])
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, openai, pydantic, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DefaultFactChecker Ran
ran on a synthesized input
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("04dbf38a141023ac")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned bool, ndim 0, 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 torch
import numpy as np
from unittest.mock import Mock, MagicMock
from openai import OpenAI
from pydantic import BaseModel, Field

class EventExist(BaseModel):
    Result: bool

class FactChecker:
    def check(self, paragraph: str, fact: str) -> bool:
        pass

class DefaultFactChecker(FactChecker):
    def __init__(self, llm: str, client: OpenAI):
        self.llm = llm
        self.client = client

    def check(self, paragraph: str, fact: str) -> bool:
        prompt = f'Context: {paragraph}\n\nFact: {fact} True or False?'
        tries = 0
        while True:
            try:
                resp = self.client.beta.chat.completions.parse(
                    model=self.llm,
                    messages=[
                        {'role': 'system', 'content': 'Check if the fact is true in the context. Return True or False.'},
                        {'role': 'user', 'content': prompt}
                    ],
                    response_format=EventExist,
                    temperature=0
                )
                return resp.choices[0].message.parsed.Result
            except Exception:
                tries += 1
                if tries > 10:
                    return False

mock_client = Mock(spec=OpenAI)
mock_response = Mock()
mock_choice = Mock()
mock_message = Mock()
mock_parsed = Mock()
mock_parsed.Result = True
mock_message.parsed = mock_parsed
mock_choice.message = mock_message
mock_response.choices = [mock_choice]
mock_client.beta.chat.completions.parse.return_value = mock_response

INIT_ARGS = {
    'llm': 'gpt-4',
    'client': mock_client
}

ARGS = {
    'paragraph': 'The sky is blue and the grass is green.',
    'fact': 'The sky is blue.'
}

METHOD = 'check'

if __name__ == '__main__':
    checker = DefaultFactChecker(**INIT_ARGS)
    result = checker.check(**ARGS)
    print(f"Result: {result}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, openai, pydantic, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DefaultSorter Ran
ran on a synthesized input
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("42d72fd6ac153be5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned list, 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.

from openai import OpenAI
import time
from pydantic import BaseModel, Field
from typing import List
from abc import ABC, abstractmethod
from unittest.mock import Mock, MagicMock

FEW_SHOT_EXAMPLE = '\nExample 1:\nParagraph:\n"""\nTom woke up early. He brushed his teeth and then had breakfast. After that, he went for a run.\n"""\nEvents:\n- Tom had breakfast\n- Tom woke up\n- Tom went for a run\n- Tom brushed his teeth\n\nOrdered Events:\n[Tom woke up, Tom brushed his teeth, Tom had breakfast, Tom went for a run]\n\n---\n\nExample 2:\nParagraph:\n"""\nAfter she went out for lunch, Sarah called her friend. Earlier in the morning, she had replied to a message right after checking her email.\n"""\n\nEvents:\n- Sarah checked her email  \n- Sarah went out for lunch  \n- Sarah called her friend  \n- Sarah replied to a message  \n\nOrdered Events:\n[Sarah checked her email, Sarah replied to a message, Sarah went out for lunch, Sarah called her friend]    \n\n---\n\n\nNow sort the following events based on the paragraph below, and return as a list of events:\n'

class OrderedEvents(BaseModel):
    Events: list[str]

SYS_PROMPT = "Please analyze the following paragraph and extract all independent factual statements, categorized into two types: Event Facts and Descriptive Facts.\n\n## Definitions:\n- Event Facts:\nTime-dependent facts that describe specific actions, changes, occurrences, or emotional/mental states. These involve entities doing something or experiencing something dynamically at a particular point in time, and can be situated along a timeline.\nExamples:\nThe spacecraft entered Mars' orbit after a six-month journey.\nDr. Lin submitted her resignation.\nMary felt happy about her promotion.\n\n- Descriptive Facts:\nTime-independent facts that define, classify, or describe static attributes or relationships of entities. These do not occur at a specific time, and are considered stable or inherent properties.\nExamples:\nHelianthus is a genus in the daisy family Asteraceae.\nOctopuses have three hearts.\n\n## Instructions:\n1. Break down the paragraph into individual, self-contained factual statements.\n2. Resolve all pronouns and referring expressions to their full entity names for clarity.\n3. Categorize each fact as either an Event Fact or a Descriptive Fact, according to the definitions above.\n3. Output two separate lists:\n- Event Facts List: List in chronological order.\n- Descriptive Facts List: Order does not matter."

class Sorter(ABC):

    @abstractmethod
    def sort(self, paragraph: str, events: List[str]) -> List[str]:
        """Return sorted events."""
        pass

class DefaultSorter(Sorter):

    def __init__(self, llm: str, client: OpenAI):
        self.llm = llm
        self.client = client

    def sort(self, paragraph: str, events: list[str]) -> list[str]:
        formatted = '\n'.join((f'- {e}' for e in events))
        prompt = f'{FEW_SHOT_EXAMPLE}\nParagraph:\n"""{paragraph}"""\n\nEvents:\n{formatted}\n\nOrdered Events:'
        tries = 0
        while True:
            try:
                resp = self.client.beta.chat.completions.parse(model=self.llm, messages=[{'role': 'system', 'content': SYS_PROMPT}, {'role': 'user', 'content': prompt}], response_format=OrderedEvents, temperature=0)
                ordered = resp.choices[0].message.parsed.Events
                if sorted(ordered) == sorted(events):
                    return ordered
                raise ValueError('Mismatch')
            except Exception:
                tries += 1
                if tries > 10:
                    return events
                time.sleep(1)


mock_client = Mock(spec=OpenAI)
mock_response = Mock()
mock_message = Mock()
mock_parsed = OrderedEvents(Events=['Alice woke up', 'Alice had breakfast', 'Alice went to work'])
mock_message.parsed = mock_parsed
mock_response.choices = [Mock(message=mock_message)]
mock_client.beta.chat.completions.parse.return_value = mock_response

INIT_ARGS = {
    'llm': 'gpt-4',
    'client': mock_client
}

ARGS = {
    'paragraph': 'Alice woke up early. She had breakfast. Then she went to work.',
    'events': ['Alice went to work', 'Alice woke up', 'Alice had breakfast']
}

METHOD = 'sort'
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
openai, pydantic — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Decomposer Not yet run
unverified (harvested, no recorded run)
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("1aaa3777076d28d7")
How it ran

no invocation recorded.

DoveScoreEvaluator Not yet run
unverified (harvested, no recorded run)
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("d1bbb2e5447e069f")
How it ran

no invocation recorded.

EventExist Not yet run
unverified (harvested, no recorded run)
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("d0f2481753848279")
How it ran

no invocation recorded.

EventTemp Not yet run
unverified (harvested, no recorded run)
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("3fbfd640f1cbff72")
How it ran

no invocation recorded.

FactChecker Not yet run
unverified (harvested, no recorded run)
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("55828da01526625d")
How it ran

no invocation recorded.

OrderedEvents Not yet run
unverified (harvested, no recorded run)
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("ab3afa3fd4b00358")
How it ran

no invocation recorded.

Sorter Not yet run
unverified (harvested, no recorded run)
dannalily/DoveScore/DoveScore/evaluator_dovescore.py
code served (permissive licence) · get_code("311719ee96af7ac4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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.

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-24.

Repositories linked to this paper

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

Abstract

Information alignment evaluators are vital for various NLG evaluation tasks and trustworthy LLM deployment, reducing hallucinations and enhancing user trust. Current fine-grained methods, like FactScore, verify facts individually but neglect inter-fact dependencies, enabling subtle vulnerabilities. In this work, we introduce MONTAGELIE, a challenging benchmark that constructs deceptive narratives by "montaging" truthful statements without introducing explicit hallucinations. We demonstrate that both coarse-grained LLM-based evaluators and current fine-grained frameworks are susceptible to this attack, with AUC-ROC scores falling below 65%. To enable more robust fine-grained evaluation, we propose DOVESCORE, a novel framework that jointly verifies factual accuracy and event-order consistency. By modeling inter-fact relationships, DOVESCORE outperforms existing finegrained methods by over 8%, providing a more robust solution for long-form text alignment evaluation. Our code and datasets are available at https://github.com/dannalily/DoveScore. -Mike and Amy broke up. -Amy went to movies with John. -Mike hit Amy. Mike hit Amy. Mike and Amy broke up. Amy went to movies with John. Amy went to movies with John. Mike hit Amy. Mike and Amy broke up.

For agents

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

get_harvested_code_for_paper("2505.15792")
get_code_for_paper("2505.15792")
have("2505.15792")

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

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

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

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

Connect an agent — have() is free.