Xinyu: An Efficient LLM-based System for Commentary Generation

Yiquan Wu, Bo Tang, Chenyang Xi, Yu Yu, Pengyu Wang, Yifei Liu, Kun Kuang, Haiying Deng, Zhiyu Li, Feiyu Xiong, Jie Hu, Peng Cheng, Zhonghao Wang, Yi Wang, Yi Luo, Mingchuan Yang · DOI

Abstract

Commentary provides readers with a deep understanding of events by presenting diverse arguments and evidence. However, creating commentary is a time-consuming task, even for skilled commentators. Large language models (LLMs) have simplified the process of natural language generation, but their direct application in commentary creation still faces challenges due to unique task requirements. These requirements can be categorized into two levels: 1) fundamental requirements, which include creating well-structured and logically consistent narratives, and 2) advanced requirements, which involve generating quality arguments and providing convincing evidence. In this paper, we introduce Xinyu, an efficient LLM-based system designed to assist commentators in generating Chinese commentaries. To meet the fundamental requirements, we deconstruct the generation process into sequential steps, proposing targeted strategies and supervised fine-tuning (SFT) for each step. To address the advanced requirements, we present an argument ranking model for arguments and establish a comprehensive evidence database that includes up-to-date events and classic books, thereby strengthening the substantiation of the evidence with retrieval augmented generation (RAG) technology. Our experiments confirm the effectiveness of our proposed system. We also observe a significant increase in the efficiency of commentators in real-world scenarios, with the average time spent on creating a commentary dropping from 4 hours to 20 minutes. Importantly, such an increase in efficiency does not compromise the quality of the commentaries.

1. Introduction

Writing high-quality news commentary is a demanding task that requires more than just linguistic fluency. It necessitates a specific "total-division" structure, original and insightful arguments, and factual, convincing evidence. While Large Language Models (LLMs) have shown promise in general text generation, they often struggle with the rigid logical flow required for professional journalism and are prone to hallucinating facts or producing generic arguments.

Xinyu is designed to address these challenges by acting as a specialized AI assistant. By decomposing the complex creative process into manageable, fine-tuned steps, Xinyu enables human editors to produce professional-grade commentary with unprecedented efficiency.

2. System Architecture and Methodology

The core of Xinyu is a five-step pipeline that mimics the professional human editorial process. This decomposition ensures that the model maintains a consistent logical thread from the initial news hook to the final concluding remarks.

The Xinyu system architecture, illustrating the sequential generation steps and auxiliary components including the ranking model and evidence database.

2.1 The Five-Step Pipeline

  1. Peg Generation: The system identifies the "peg"—the specific news event or hook that the commentary responds to.
  2. Main Argument Generation: Xinyu generates candidate arguments across ten distinct thematic directions (e.g., technology, finance, society).
  3. Supporting Argument Generation: The system develops a multi-faceted structure (parallel, progressive, or contrasting) to build a logical case for the main thesis.
  4. Evidence Generation: Utilizing Retrieval-Augmented Generation (RAG), the system pulls factual evidence from a curated database to ground the arguments.
  5. Article Combination: Finally, the system crafts a title and ending, weaving all components into a cohesive, professional narrative.

3. Technical Innovations

To achieve high-quality output, Xinyu incorporates several technical advancements beyond standard LLM prompting:

  • Step-specific Supervised Fine-Tuning (SFT): The system utilizes a LLaMA2-13B model fine-tuned on a massive dataset of 400,000 samples specifically tailored to each of the five generation steps.
  • Argument Ranking Model: To ensure originality and resonance, a BERT-based ranking model was trained using social signals (such as "likes" from platforms like Zhihu) as proxies for argument quality and novelty.
  • Curated Evidence Database: Xinyu does not rely solely on internal model weights. It queries a dedicated repository containing 200,000 recent event summaries and 110,000 chunks from classic books in specialized fields like law and finance.

4. Evaluation and Results

Experimental results demonstrate that Xinyu significantly outperforms larger general-purpose models in the specific task of commentary generation. Xinyu achieved an overall quality score of 7.93 on a 10-point scale, surpassing Qwen-72B (7.37) and approaching the performance of GPT-4 (8.30).

Overview of the commentary generation workflow, demonstrating the efficiency gain from 4 hours to 20 minutes and the resulting article structure.

One of the most impactful results is the dramatic increase in human productivity. In real-world testing, the time required for a human commentator to produce a finished article dropped from an average of 4 hours to just 20 minutes—a 12x speedup. Ablation studies further highlighted the importance of the specialized RAG database, which improved "Evidence Support" scores from 5.60 to 7.41.

5. Conclusion

Xinyu demonstrates that the key to automating complex, high-stakes writing tasks lies in process decomposition and specialized knowledge integration. By combining step-specific fine-tuning with a robust evidence retrieval system, Xinyu provides a powerful tool for modern journalism, maintaining high standards of logic and factual accuracy while drastically reducing production time.

Summary updated

BibTeX
@inproceedings{wu2024xinyu,
  author = {Yiquan Wu and Bo Tang and Chenyang Xi and Yu Yu and Pengyu Wang and Yifei Liu and Kun Kuang and Haiying Deng and Zhiyu Li and Feiyu Xiong and Jie Hu and Peng Cheng and Zhonghao Wang and Yi Wang and Yi Luo and Mingchuan Yang},
  title = {{Xinyu: An Efficient LLM-based System for Commentary Generation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671537},
}
Figure