Abstract
Unsupervised summarization of chat logs is a significant challenge due to frequent topic shifts and the high context dependency of individual messages. We present RankAE, an unsupervised framework that integrates a topic-oriented ranking strategy with a context-aware denoising auto-encoder. RankAE first identifies core topic utterances using a BERT-based encoder optimized via a Context Utterance Prediction (CUP) task. It then employs a denoising auto-encoder to reconstruct and compress chat segments around these topics, effectively resolving elliptical references and generating concise, informative summaries. Evaluated on a large-scale e-commerce dataset, RankAE significantly outperforms existing unsupervised methods in both ROUGE scores and human judgment.
Introduction: The Messy Reality of Chat Logs
Summarizing structured text like news articles is relatively straightforward because the main ideas are often concentrated at the beginning and sentences are grammatically complete. Chat logs, however, present a different set of obstacles. They are characterized by two major issues: Topic Shift and Context Dependency.
As shown in Figure 1, conversations move rapidly between subjects—such as sizing, pricing, and shipping—within a few lines. Furthermore, individual messages like "Not supported" or "How much?" are "elliptical," meaning they are meaningless without the preceding context. Most existing abstractive models require massive amounts of human-labeled data to learn these patterns, which is prohibitively expensive to produce. RankAE addresses this by providing a high-quality, unsupervised solution that understands conversational flow.
Methodology: The RankAE Framework
The RankAE framework operates in two distinct stages: an extractive ranking phase to identify key topics and an abstractive denoising phase to generate the final summary.
1. Topic-Oriented Ranking
The model first identifies "topic utterances"—the core messages that define the conversation's primary themes.
- BERT Encoder with CUP: The system uses a pre-trained BERT model to convert messages into vectors. To make BERT "chat-aware," the researchers implemented a Context Utterance Prediction (CUP) task. This trains the model to predict whether two utterances are neighbors in a chat, using "hard negatives" from the same log to force the model to learn fine-grained semantic differences.
- Diversity-Enhanced Ranking: Inspired by Maximal Marginal Relevance (MMR), the model selects utterances that are central to the conversation but also distinct from one another. A "distance coefficient" is used to penalize picking multiple topic sentences that are too close together unless they represent truly different information.
2. Context-Aware Denoising Auto-Encoder
Once topic utterances are identified, the model examines their immediate neighbors (the "chat segment") to resolve context dependencies.
- Noise Addition and Reconstruction: During training, the authors intentionally introduce noise into these segments—inserting random fragments or replacing sentences with irrelevant ones. The model is then trained to "denoise" these segments, filtering out irrelevant information and reconstructing the original clean data.
- Compression: At inference time, this allows the model to take a messy, multi-message segment and generate a succinct, context-rich summary line. For example, it can fuse a question about price and its subsequent answer into a single informative statement.
Experimental Evaluation
Datasets
The study utilized a massive real-world dataset consisting of 1.09 million chat logs (over 10 million utterances) from a major Chinese e-commerce platform. For evaluation, 1,000 logs were manually annotated by experts to create a "gold standard" validation and testing set. The average chat in this dataset is approximately 9 utterances long, containing roughly 95 tokens.
Key Results
RankAE was compared against several baselines, including TextRank and SummAE:
- Quantitative Performance: RankAE achieved a ROUGE-L score of 27.59, significantly outperforming the previous state-of-the-art unsupervised abstractive model, SummAE (which scored between 19.86 and 25.63).
- Qualitative Human Evaluation: In human trials, RankAE was judged as the "better" summary in terms of relevance 57.2% of the time, compared to only 37.8% for the extractive TextRank baseline.
- Ablation Studies: Researchers found that the Noise Addition component was critical; without it, summaries were nearly twice as long and contained significant redundancy.
Conclusion
RankAE demonstrates that combining extractive ranking with abstractive denoising is a powerful approach for unsupervised chat summarization. By leveraging the proximity of related messages and the reconstructive power of auto-encoders, the model successfully navigates the complexities of real-world dialogue. Future work may focus on handling extremely long discussions and refining topic detection at the word or phrase level to capture nuances within single long utterances.
Summary updated