MOCHA: A Multi-Task Training Approach for Coherent Text Generation from Cognitive Perspective

Zhe Hu, Hou Pong Chan, Lifu Huang

Abstract

While large language models (LLMs) excel at local fluency, maintaining global coherence in long-form text remains a significant challenge. This paper presents MOCHA (Multi-task training apprOach for CoHerent text generAtion), a framework that incorporates cognitive writing theories into the training process. By decomposing the generation task into planning, surface realization, and reviewing sub-tasks, MOCHA significantly improves the logical flow and structural integrity of generated narratives and arguments. Experimental results across three diverse datasets demonstrate that MOCHA outperforms standard autoregressive models in both automated metrics and human preference.

Introduction

Modern autoregressive models, such as GPT and T5, have revolutionized natural language generation by producing grammatically correct and contextually relevant sentences. However, these models often struggle with long-form generation, where they may lose the thematic thread, contradict previous statements, or fail to follow a logical progression. This lack of "global coherence" stems from two primary issues: the token-by-token nature of generation without a high-level roadmap, and a training objective (Maximum Likelihood Estimation) that focuses on positive samples without teaching the model to identify or correct structural errors.

To address these limitations, we introduce MOCHA. Inspired by the Cognitive Process Theory of Writing, MOCHA frames text generation not as a single act of prediction, but as a multi-faceted process involving planning, translation, and revision.

Methodology

Cognitive Framework

MOCHA is grounded in the psychological understanding of how humans write. According to cognitive theory, writing involves three recursive processes:

  1. Planning: Setting goals and organizing ideas.
  2. Translating (Surface Realization): Converting those ideas into linguistic form.
  3. Reviewing: Evaluating and revising the text to improve clarity and coherence.

Multi-Task Learning (MTL) Strategy

We implement MOCHA using a multi-task learning approach built upon a T5-base architecture. The model is trained on several concurrent objectives, triggered by specific task prompts:

  • End-to-End Generation: The baseline task of generating a full text from a title or prompt.
  • Text Planning: The model learns to generate a "plan"—a sequence of keyphrases that represent the logical backbone of the target text.
  • Surface Realization: Given a title and a pre-defined plan, the model generates the final coherent text.
  • Reviewing (Revise Task): The model is presented with a corrupted version of the text (e.g., shuffled sentences or swapped keyphrases) and must reconstruct the original, coherent version.
  • Reviewing (Distinguishing Task): A binary classification task where the model learns to differentiate between a coherent original text and an incoherent, perturbed version.

Notably, all training data for these tasks is generated automatically from existing corpora, eliminating the need for expensive manual labeling.

Experimental Setup

Datasets

MOCHA was evaluated on three distinct domains to test its versatility:

  1. Reddit/ChangeMyView (CMV): Focused on argumentative coherence in counter-arguments.
  2. Wikiplots: Focused on narrative structure in story plots.
  3. New York Times (NYT): Focused on informative flow in news articles.

Baselines

The model was compared against standard GPT-2 and T5 models, as well as specialized planning models like CONTENTPLAN. Evaluation included standard automated metrics (BLEU-3, ROUGE-L, METEOR) and extensive human evaluation.

Results and Discussion

Performance Metrics

MOCHA consistently outperformed all baselines across all three datasets. On the Reddit/CMV dataset, MOCHA achieved a BLEU-3 score of 28.02, surpassing the vanilla T5 baseline of 26.99. More importantly, the model demonstrated high accuracy (over 94%) in the "Distinguishing Task," indicating it had developed a sophisticated internal representation of what constitutes coherent discourse.

Human Evaluation

The most striking results appeared in human preference studies. Human judges preferred MOCHA’s outputs over T5’s for coherence more than 70% of the time. In the narrative-heavy Wikiplots domain, MOCHA was rated superior in overall quality in 86.7% of comparisons. These results suggest that the multi-task objectives successfully instill a stronger "inductive bias" for logical structure than standard language modeling alone.

Few-Shot Efficiency

MOCHA exhibited remarkable data efficiency. In low-resource experiments, MOCHA trained on only 1% of the available data often outperformed a vanilla T5 model trained on significantly larger portions of the dataset. This suggests that the cognitive sub-tasks provide a more effective learning signal for the underlying structure of language.

Conclusion and Future Work

MOCHA demonstrates that breaking down the generation process into cognitively-inspired sub-tasks—planning, realization, and reviewing—leads to significantly more coherent long-form text. While the current implementation uses simple keyphrase chains for planning, future work could explore more complex structures such as causal graphs or character arcs. Additionally, integrating these multi-task objectives into the initial large-scale pre-training phase of LLMs could potentially create more robust and general-purpose writers.

Summary updated

BibTeX
@inproceedings{hu2022mocha,
  author = {Zhe Hu and Hou Pong Chan and Lifu Huang},
  title = {{MOCHA: A Multi-Task Training Approach for Coherent Text Generation from Cognitive Perspective}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.705},
}
Figure