[Paper Review] CCPM: A Chinese Classical Poetry Matching Dataset
This paper introduces CCPM, a Chinese Classical Poetry Matching dataset designed to evaluate models' semantic understanding of classical poetry by matching modern Chinese translations to their original poetic lines. Using bilingual parallel data and BERT-based retrieval for negative samples, the dataset achieves 84.96% accuracy with BERT-Cls, establishing a benchmark for semantic comprehension in Chinese poetry generation and understanding systems.
Poetry is one of the most important art forms of human languages. Recently many studies have focused on incorporating some linguistic features of poetry, such as style and sentiment, into its understanding or generation system. However, there is no focus on understanding or evaluating the semantics of poetry. Therefore, we propose a novel task to assess a model's semantic understanding of poetry by poem matching. Specifically, this task requires the model to select one line of Chinese classical poetry among four candidates according to the modern Chinese translation of a line of poetry. To construct this dataset, we first obtain a set of parallel data of Chinese classical poetry and modern Chinese translation. Then we retrieve similar lines of poetry with the lines in a poetry corpus as negative choices. We name the dataset Chinese Classical Poetry Matching Dataset (CCPM) and release it at https://github.com/THUNLP-AIPoet/CCPM. We hope this dataset can further enhance the study on incorporating deep semantics into the understanding and generation system of Chinese classical poetry. We also preliminarily run two variants of BERT on this dataset as the baselines for this dataset.
Motivation & Objective
- To address the lack of benchmarks for evaluating semantic understanding in Chinese classical poetry.
- To design a novel poem matching task that tests a model's ability to align modern Chinese translations with their original poetic lines.
- To construct a large-scale, high-quality dataset using bilingual parallel data and semantically similar negative examples.
- To provide a benchmark for improving semantic modeling in poetry generation and analysis systems.
- To bridge the semantic gap between modern Chinese and classical poetic language for better user intent alignment.
Proposed method
- Collect 31,000 bilingual pairs of Chinese classical poetry and modern Chinese translations from web sources.
- Apply line segmentation and format filtering to retain only 5- and 7-character line poems, including 1-line and 2-line instances.
- Use a pre-trained BERT-CCPoem model to compute semantic similarity between poem lines for negative sample retrieval.
- Employ Locality Sensitive Hashing (LSH) to accelerate similarity search and retrieve top-k similar lines as negative candidates.
- Re-rank candidates using a weighted combination of BERT embedding similarity and Longest Common Subsequence (LCS) scores.
- Construct final samples by selecting the most similar line as the positive example and two others from top 2–5 and 6–10 candidates as negatives, then shuffle for training.
Experimental results
Research questions
- RQ1Can models accurately match a modern Chinese translation to its corresponding original line of Chinese classical poetry?
- RQ2How well do pre-trained language models like BERT capture the deep semantics of classical Chinese poetry?
- RQ3What is the impact of different modeling architectures (e.g., concatenation vs. sentence pair matching) on poem matching performance?
- RQ4How effective are BERT-based semantic representations in distinguishing subtle semantic differences in classical poetry?
- RQ5To what extent can retrieval-based negative sampling improve the difficulty and realism of the matching task?
Key findings
- The BERT-Cls model achieved the highest accuracy of 84.96% on the test set, outperforming BERT-Match.
- The BERT-Match model achieved 82.60% accuracy, indicating that direct sentence pair matching is effective but less so than joint encoding with concatenation.
- The BERT-Cls model benefits from the self-attention mechanism in BERT, which enables stronger interaction between translation and candidate poem lines.
- The dataset contains 27,218 samples, split into 21,778 training, 2,720 validation, and 2,720 test samples, with balanced distribution across 5-yan and 7-yan lines.
- The use of both BERT embedding similarity and LCS in re-ranking improved the quality of negative candidates, increasing the challenge of the matching task.
- The dataset is publicly released at https://github.com/THUNLP-AIPoet/CCPM to support future research in semantic understanding and generation of Chinese classical poetry.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.