TL;DR
ComSum is a massive dataset of 7.5 million Git commit messages designed for abstractive text summarization, treating the commit body as the source text and the subject line as the summary. Beyond offering a challenging, real-world domain with an enormous vocabulary and low extractive overlap, the paper introduces a domain-grounded evaluation framework that measures whether models preserve core semantic intent (such as bug fixes vs. feature additions) rather than relying solely on n-gram overlap metrics like ROUGE.
What Problem Does This Paper Address?
Most standard summarization benchmarks come from news articles (e.g., CNN/DailyMail, XSum) or scientific papers (arXiv/PubMed). These domains often favor extractive copying, have restricted vocabularies, and fail to reflect the informal, technical communication found in day-to-day software engineering.
Furthermore, conventional summarization evaluation relies heavily on surface-level n-gram overlap metrics (ROUGE). ROUGE frequently awards high scores to fluent summaries even when they hallucinate factual details or alter the fundamental point of the text. The authors tackle both gaps: they curate a natural, highly abstractive dataset from developer commit messages and introduce a semantic evaluation methodology rooted in software maintenance taxonomies to test whether generated summaries preserve actual meaning.
Methods
- Dataset Curation & Filtering Pipeline: Commits were mined from Google’s BigQuery GitHub dataset. The authors applied rigorous software engineering filters:
- Selected active repositories ($\ge 50$ commits during 2020).
- Removed repository forks and duplicates.
- Filtered non-software projects by computing the Corrective Commit Probability (CCP); repos with invalid CCP (indicating an absence of bug fixes) were discarded.
- Removed near-identical commits (16% repetitive data) and enforced a minimal length difference (message body at least 100 characters longer than the subject).
- Baseline Modeling: The authors evaluated zero-shot and fine-tuned BART architectures alongside simple heuristic baselines (Message without Subject, Random Message Sentence, and Related Commit/Fix pairing).
- Meaning-Preserving Evaluation: Utilizing Swanson’s classic software maintenance taxonomy—Corrective (bug fixes), Adaptive (new features), and Refactoring—the authors tested whether summaries retained the commit's functional intent. They constructed adversarial challenge sets where messages contained core "distractor" terms (e.g., error, fix, bug) but were classified as non-corrective (e.g., "Added error handling"). They then measured whether models incorrectly hallucinated the distractor concept in their generated summaries.
Datasets
- ComSum (Introduced): Contains 7,540,026 commits across 19,720 repositories written by 317,423 authors, split into train, validation (~472k), and test (~472k) sets based on commit hashes.
- Abstractiveness Comparison:
- Coverage: 0.27 (vs. 0.85 for CNN/DM, 0.66 for XSum, 0.50 for BOOKSUM).
- Density: 0.89 (vs. 3.47 for CNN/DM, 1.09 for XSum).
- Vocabulary Size: Over 19 million unique tokens overall (validation set alone contains >2M tokens, compared to ~1.4M in the NYTimes dataset).
Key Insights and Ideas
- Naturally Abstractive: Because developers rarely write subject lines by cutting and pasting full sentences from the message body, ComSum exhibits dramatically lower extractive density (0.89) and coverage (0.27) than traditional summarization datasets.
- The "Keyword Trap": Standard sequence-to-sequence models frequently rely on lexical triggers rather than contextual meaning. When presented with distractor terms, models often flip the meaning of the summary, falsely labeling feature additions or refactors as bug fixes.
- ROUGE Masks Critical Hallucinations: Fine-tuned BART achieved high ROUGE scores while routinely hallucinating pull request numbers (e.g.,
#14instead of#1110) and version numbers (e.g.,2.8.1instead of2.9.1).
Key Results
- Summarization Performance:
- Fine-tuned BART: Achieved 36.3 ROUGE-L (38.2 ROUGE-1 / 21.8 ROUGE-2) on the test set.
- Zero-Shot BART: Reached only 17.9 ROUGE-L, demonstrating the severity of the domain shift from pre-training on Wikipedia/books.
- Heuristics: Random Message Sentence achieved 12.4 ROUGE-L, confirming that simple sentence extraction performs poorly.
- Generalization vs. Memorization: BART's train (36.6) and test (36.3) ROUGE-L scores were closely matched, despite 89% of test subjects never appearing in the training set.
- Meaning Preservation Breakdown (Challenge Sets):
- When evaluated on messages with distractor keywords, models failed to preserve meaning in 21% of Corrective cases, 11% of Refactoring cases, and 39% of Adaptive cases.
- BART's maximum precision for retaining any verified commit category was capped at 75%.
Limitations and Future Work
- Domain Specificity: The commit typology (corrective, adaptive, refactoring) does not directly transfer outside software engineering, though analogous semantic preservation checks (e.g., sentiment flip or negation) could be explored in general NLP.
- Classifier Reliability: The automated classifiers used to evaluate meaning preservation have inherent noise (~93% accuracy for corrective/refactoring, 65% for adaptive), though distractor subsets were manually validated.
- Corpus Artifacts: The BigQuery GitHub index has documented quirks (e.g., missing prominent repositories such as VSCode). Squashed branch commits also introduce lower cohesion and longer texts.
- Future Work: The authors propose incorporating meaning-preservation classifiers directly into the summarization loss function during training and leveraging the dataset for active learning and developer writing-style attribution.
Summary updated