Abstract
Text Fact Transfer (TFT) is a novel natural language processing task that involves modifying the factual content of a text to reflect a new topic while strictly preserving the original's phrasing, structure, and stylistic granularity. Traditional Large Language Models (LLMs) often struggle with this task, either by over-rewriting the source text or introducing factual hallucinations. This paper discusses ModQGA (Modular Question Generation and Answering), a framework designed to perform surgical entity replacement. By utilizing specificity-aware question answering, ModQGA significantly outperforms much larger models, such as GPT-3.5, in maintaining stylistic integrity and factual accuracy across diverse datasets.
Introduction
In the field of Natural Language Processing, Text Style Transfer has long been a focus, where the goal is to alter the "vibe" of a sentence (e.g., making it more formal) while keeping the underlying facts constant. Researchers at the University of Illinois at Urbana-Champaign have introduced the inverse challenge: Text Fact Transfer (TFT). In TFT, the objective is to swap the factual entities of a text to match a new subject while keeping the original sentence structure and style entirely intact.
The Problem: The Limits of Generative Minimalism
Existing Large Language Models (LLMs) are designed for generation, which often makes them poorly suited for tasks requiring extreme minimalism. When tasked with rewriting a biography of Joseph Stalin to be about Nelson Mandela, a standard LLM typically rewrites the entire passage from scratch. This process often results in two primary failures:
- Loss of Stylistic Nuance: The specific sentence lengths, vocabulary choices, and organizational structures of the original text are discarded in favor of the model's default generative patterns.
- Specificity Mismatch: LLMs often fail to match the "granularity" of the source. For example, if a source text mentions a specific political party, a generative model might replace it with a general country name. While factually true, this breaks the stylistic consistency of the original snippet.
- Hallucination: Models frequently invent facts that are not present in the provided reference corpus to fill in gaps during the rewriting process.
The ModQGA Framework
To address these issues, the researchers developed ModQGA (Modular Question Generation and Answering). Rather than treating the task as a translation or rewriting problem, ModQGA treats the source text as a template and performs "surgical" entity replacement through a four-step pipeline:
1. End-to-End Question Generation (QG)
A BART-based model identifies factual entities within the source text and generates questions that those entities answer. For instance, if the text mentions a political affiliation, the model generates the question: "What party did [Subject] belong to?"
2. Question Transferring
The system replaces the source topic with the target topic within the generated questions (e.g., swapping "Stalin" for "Mandela").
3. Specificity-Aware Question Answering (QA)
This is the core innovation of the framework. Using a BERT-based model, the system searches a target corpus for answers. Crucially, it uses the original entity as a "guidance" mechanism to ensure the new answer matches the original's level of specificity—ensuring a city is replaced by a city, and a specific date is replaced by a specific date.
4. Source Text Infilling
The new answers are plugged back into the original sentence structure. This ensures the style remains 100% intact, with only the necessary factual updates performed.
Experimental Setup and Insights
The researchers benchmarked ModQGA using four distinct datasets: U.S. News (university descriptions), Medline (drug functions), t-REX (knowledge graph triples), and Google (biographical relationships).
Several key insights emerged from the evaluation:
- Style as Granularity: The researchers identified that style in factual text is often defined by specificity. Maintaining the exact "level" of detail is as important as maintaining the syntax.
- The Power of Generic Queries: When retrieving facts, "generic" questions (e.g., "What is the hub of the airport?") often performed better than topic-specific ones, which could sometimes confuse the retrieval mechanism.
- Minimalism as a Feature: By focusing on modification rather than generation, the modular approach inherently avoids the "creative drift" seen in LLMs.
Results
In comparisons between a 0.8B parameter version of ModQGA and the 175B parameter GPT-3.5, the modular approach demonstrated clear superiority for this specific task:
- Accuracy: ModQGA achieved the highest scores in 22 out of 24 metrics across the test datasets.
- Hallucination Reduction: ModQGA showed significantly lower hallucination rates, as it is strictly bound to the provided factual corpus.
- Human Preference: In human evaluations, ModQGA was preferred for style preservation in over 55% of cases compared to GPT-based baselines.
Conclusion and Future Work
While ModQGA represents a significant step forward in Text Fact Transfer, limitations remain. The current pipeline is slower than single-prompt LLMs due to the multi-step retrieval loop. Additionally, the model assumes the source corpus is accurate and may struggle with facts that require complex grammatical adjustments to remain sound. However, by formalizing TFT, this research provides a robust foundation for automated news updates, data augmentation, and the creation of personalized educational content.
Summary updated