← Latest papers
💬 NLP

DTO: a Differentiable Training Objective for Effective Counterfactual Story Rewriting

This paper proposes a novel Differentiable Training Objective (DTO) that uses an end-to-end backpropagation loss to jointly optimize for reference fidelity and semantic consistency, effectively addressing the challenges of localized modifications in counterfactual story rewriting and outperforming both traditional baselines and reinforcement learning approaches.

Original authors: Amelia Girard, Massimo Piccardi

Published 2026-05-26
📖 4 min read☕ Coffee break read

Original authors: Amelia Girard, Massimo Piccardi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a story about a character named Julie who scores the winning goal in a soccer game. Now, imagine someone says, "What if Julie didn't play at all? What if she was just watching from the stands?"

Your job is to rewrite the ending of the story to match this new "what if" scenario. But here's the tricky part: you need to change only the parts that are affected by Julie watching, while keeping everything else (the other players, the score, the excitement) exactly the same. If you change too much, the story feels broken. If you change too little, the story doesn't make sense with the new rule.

This paper is about teaching a computer to do this "story editing" job perfectly.

The Problem: Computers Are Too Clumsy

The authors explain that big computer brains (called Large Language Models) are great at writing stories, but they struggle with this specific "edit" task.

  • The "Copy-Paste" Problem: If you just tell the computer to copy the original story as closely as possible, it will just copy the original ending where Julie scores the goal. It won't realize it needs to change anything.
  • The "Over-Edit" Problem: If you try to force the computer to change the story using complex, trial-and-error methods (like Reinforcement Learning), it often gets confused and changes too much, ruining the whole story.

It's like trying to fix a tiny scratch on a painting by either ignoring it completely or repainting the entire canvas.

The Solution: A "Soft" Training Objective (DTO)

The authors propose a new way to teach the computer, which they call DTO (Differentiable Training Objective).

Think of training a computer like teaching a student for a test.

  • Old Way (Maximum Likelihood): The teacher says, "Your goal is to match the answer key word-for-word." The student tries to memorize the exact words. If the answer key says "The cat sat," and the student writes "The feline sat," they get marked down, even though the meaning is the same.
  • The New Way (DTO): The teacher says, "Your goal is to make sure your story sounds like the edited version we want, but also sounds very different from the original version we don't want."

To do this, the authors use a special tool called BARTScore. Imagine BARTScore as a very smart, super-fast editor that can read two stories and tell you, "How similar are these?"

The magic trick in this paper is making this "editor" differentiable.

  • The Analogy: Usually, when a computer writes a story, it picks one specific word at a time (like "cat"). This is like a light switch: it's either ON or OFF. You can't smoothly adjust a light switch to "half-on."
  • The Innovation: The authors taught the computer to write with "soft" words instead. Instead of picking just "cat," the computer outputs a "cloud" of possibilities (50% "cat," 30% "feline," 20% "kitten"). This "cloud" is smooth and adjustable.
  • The Result: Because the output is smooth, the computer can look at the "editor's" feedback (BARTScore) and gently nudge its "cloud" to get a better score. It's like a sculptor smoothing clay with their hands, rather than chipping away at a rock with a hammer.

What They Found

The authors tested this new method on a dataset of 28,000 stories (called TIMETRAVEL).

  1. Better than the Basics: Their new method beat the standard "copy-paste" training method. The stories it wrote were closer to the human-edited versions and kept the original story's flow better.
  2. Better than Complex Methods: It also beat other advanced methods that try to learn by guessing and checking (like CPO), but it did so much faster and more stably.
  3. Small Model, Big Results: They used a relatively small computer model (about 0.4 billion parameters). Even though massive models like GPT-4o are 100 to 500 times bigger, this small, smartly trained model performed just as well, if not better, at this specific task.

The Takeaway

The paper proves that you don't always need a giant, expensive computer to do complex tasks. If you give a smaller computer a better "teacher" (a training objective that directly rewards the specific kind of editing you want), it can learn to rewrite stories with the precision of a human editor, keeping the story coherent while making just the right changes.

In short: They found a way to teach computers to be precise editors rather than just generators, using a smooth, math-friendly method that avoids the guesswork of older techniques.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →