Generating Long Financial Report using Conditional Variational Autoencoders with Knowledge Distillation

Yunpeng Ren, Ziao Wang, Yiyuan Wang, Xiaofeng Zhang

Introduction

In financial analysis, a brief news headline—such as "Company X announces a new merger"—often necessitates a multi-page, detailed report. For automated systems, this presents a challenging "one-to-many" problem: the input is sparse, while the output must be long, coherent, and grounded in domain-specific reasoning. Standard text generation models like Seq2seq or Pointer-Generators often fail here, producing generic or repetitive text because they lack the external context and historical perspective that human analysts provide.

To bridge this "information gap," researchers have introduced CVAE-KD, a framework that combines Conditional Variational Autoencoders (CVAE) with Knowledge Distillation (KD) from pre-trained models like ELMo.

Methodology: The CVAE-KD Framework

The CVAE-KD architecture is designed to address input scarcity and the reasoning gap through three primary components:

  1. The Encoder (Bi-GRU): This component processes the primary input news ($x$) and maps it to a latent variable ($z_1$), capturing the immediate information from the news snippet.
  2. Background Knowledge Extraction: To supplement the sparse input, the model employs a K-Nearest Neighbors (KNN) approach. It retrieves similar news and reports from a historical database to estimate a second, higher-level latent variable ($z_2$). This variable captures the broader market context and historical trends relevant to the news.
  3. Knowledge Distillation (The "Teacher"): The model utilizes a pre-trained ELMo model as a teacher. During training, ELMo provides "soft targets"—probability distributions for the next word—to guide the GRU-based decoder. This distillation process helps the model inherit nuanced language patterns and domain-specific terminology.
The CVAE-KD architecture integrates news input with retrieved background knowledge and ELMo-based distillation.

The final training objective balances the standard CVAE loss (reconstruction and latent alignment) with the distillation loss from the ELMo teacher, ensuring the model generates reports that are both contextually relevant and linguistically sophisticated.

Experimental Results

The researchers evaluated CVAE-KD on a real-world news-report dataset, comparing it against several strong baselines, including standard Seq2seq, Pointer-Generator networks, and vanilla CVAEs.

The CVAE-KD model demonstrated state-of-the-art (SOTA) performance across all major metrics. Notably, it achieved a BLEU-1 score of 46.67, representing a significant improvement over the Pointer-Generator (36.45) and the standard CVAE (33.5).

Comparison of BLEU scores shows CVAE-KD significantly outperforming baseline models across all n-gram levels.

In addition to BLEU scores, the model led in ROUGE metrics, achieving a ROUGE-1 of 18.27 and a ROUGE-L of 6.95. These results indicate that the generated reports have a higher degree of overlap with human-written reports in both content and structural coherence. The authors noted that BLEU-1 through BLEU-4 scores were between 14.8% and 44.4% higher than the second-best performing models, demonstrating a clear performance leap.

Discussion and Future Work

The success of CVAE-KD highlights the importance of latent variable fusion—using $z_1$ for the news and $z_2$ for context—and the utility of pre-trained models as domain experts through distillation. By retrieving historical context, the model can effectively "hallucinate" the necessary details to expand a short sentence into a full report in a controlled manner.

However, some limitations remain. The model's performance is tied to the quality of the historical corpus used for KNN retrieval. Furthermore, the added complexity of retrieval and distillation increases computational overhead. Future research may focus on ensuring the numerical accuracy of generated data and reducing the dependency on large-scale retrieval during inference.

Overall, CVAE-KD provides a robust foundation for long-text generation in specialized domains where external knowledge is a prerequisite for success.

Summary updated

BibTeX
@inproceedings{ren2021generating,
  author = {Yunpeng Ren and Ziao Wang and Yiyuan Wang and Xiaofeng Zhang},
  title = {{Generating Long Financial Report using Conditional Variational Autoencoders with Knowledge Distillation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i18.17936},
}
Figure