Reverse-Engineered Reasoning for Open-Ended Generation

Haozhe Wang, Haoran Que, Qixin Xu, Minghao Liu, Wangchunshu Zhou, Jiazhan Feng, Wanjun Zhong, Wei Ye, Tong Yang, Wenhao Huang, Ge Zhang, Fangzhen Lin

While the "deep reasoning" paradigm has spurred significant advances in verifiable domains like mathematics and coding, its application to open-ended, creative generation remains a critical challenge. To bridge this gap, researchers have introduced REverse-Engineered Reasoning (REER), a novel paradigm that trains Large Language Models (LLMs) for open-ended tasks by working "backwards" from high-quality solutions. By training on the resulting DeepWriting-20K dataset, their 8B-parameter model, DeepWriter-8B, achieves performance competitive with—and sometimes superior to—proprietary giants like GPT-4o and Claude 3.5 in creative and professional writing.

The Challenge of Open-Ended Generation

The recent trend of "deep reasoning" (exemplified by models like OpenAI’s o1 or DeepSeek-R1) relies heavily on the ability to verify answers. In fields like math, we can use Reinforcement Learning (RL) because "correctness" is easy to check. However, creative, open-ended generation—such as writing a compelling short story or a nuanced policy brief—lacks a binary "right" answer.

Current methods for teaching models to "think" before they write generally fall short:

  1. Reinforcement Learning (RL) struggles because building a reward model that accurately captures subjective qualities like "originality" or "emotional resonance" is incredibly difficult.
  2. Instruction Distillation (copying the "thoughts" of a larger, proprietary model) is prohibitively expensive and fundamentally limited by the "teacher" model's own capabilities.
Standard approaches build reasoning "forward" using RL or costly distillation.

This raises a critical question: How do we instill deep reasoning when there is no objective ground truth to verify?

REverse-Engineered Reasoning (REER)

The core innovation of this research is REER. Instead of trying to generate a reasoning path "forward" and hoping it leads to a good result, REER fundamentally shifts the approach. It starts with a known, high-quality solution ($y$) for a given query ($x$) and computationally searches for the optimal latent thinking trajectory ($z$) that could have produced it.

REER works "backward" to recover the deep reasoning process from known good solutions.

The REER framework relies on several key mechanisms:

  • Perplexity as a Proxy: The authors use the model's own "surprise" (perplexity) as a quality signal. A "good" thinking process is defined as one that makes the final high-quality answer seem most probable and logical to the model.
  • Iterative Local Search: Rather than a simple one-pass generation, the system uses a scalable, gradient-free search. It starts with a rough plan and iteratively refines segments of that plan. If a refined "thought" reduces the perplexity of the final answer, it is kept.
  • Context Engineering: To avoid rigid, robotic reasoning, the authors "inject" human-like thinking patterns. They prompt the generator to use phrases like "Wait, that’s a bit too straightforward" or "Hmm... alternatively..." to encourage self-correction, branching, and cognitive exploration.

The DeepWriting-20K Dataset

Using this gradient-free approach, the researchers curated and open-sourced DeepWriting-20K, a large-scale dataset of 20,000 high-quality thinking trajectories across 25 categories, including artistic writing, academic essays, and functional business writing.

To prevent the model from losing its general reasoning abilities, the authors employed a mixed training strategy. They blended DeepWriting-20K with OpenThoughts (a public dataset focused on math and code reasoning), resulting in a robust final training set of 37,000 examples.

Key Insights and Results

By starting with the answer, the search space for "reasoning" becomes much more constrained and productive, effectively "un-hiding" the latent logic required to produce elite-level writing. Furthermore, unlike standard search methods (like MCTS) that build solutions step-by-step, REER's global-to-local refinement looks at the whole plan and tweaks parts of it, maintaining narrative coherence in long-form text.

The resulting model, DeepWriter-8B (fine-tuned from Qwen3-8B-Base), punches significantly above its weight class across multiple benchmarks:

  • WritingBench: It achieved an average uplift of over 18 points compared to standard instruction-tuned baselines in professional domain proficiency.
  • Long-Form Coherence: On LongBench-Write (testing long-form endurance), it scored 91.3, outperforming GPT-4o (83.1) and Claude 3.5 (89.3).
  • Creative Tasks: On HelloBench (HB-B), its score of 87.4 put it on par with GPT-4o (87.6).

Crucially, DeepWriter-8B achieved these results without the massive computational overhead of RL or the high cost of proprietary distillation.

Limitations and Future Work

While REER presents a significant leap forward, the authors noted that when the model failed, it was often due to a lack of specific factual knowledge rather than a failure in reasoning, suggesting a need for a more diverse training corpus. Additionally, the current study focused on an 8B model; investigating how REER scales to 70B+ models is a primary direction for future research. Finally, the REER principle could potentially be applied to other non-verifiable domains, such as multi-step agentic tasks or scientific discovery, where "good" outcomes are known but the "how-to" remains latent.

Summary updated

BibTeX
@inproceedings{wang2026reverse,
  author = {Haozhe Wang and Haoran Que and Qixin Xu and Minghao Liu and Wangchunshu Zhou and Jiazhan Feng and Wanjun Zhong and Wei Ye and Tong Yang and Wenhao Huang and Ge Zhang and Fangzhen Lin},
  title = {{Reverse-Engineered Reasoning for Open-Ended Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=aK9JneKTL8},
}
Figure