MatchTime: Towards Automatic Soccer Game Commentary Generation

Jiayuan Rao, Haoning Wu, Chang Liu, Yanfeng Wang, Weidi Xie

Abstract

Automatic soccer commentary generation is hindered by significant temporal misalignment in existing datasets, where textual descriptions often lag behind video events by minutes. This paper introduces MatchTime, a framework designed to rectify these discrepancies through a two-stage "coarse-to-fine" alignment pipeline. Furthermore, we present MatchVoice, a specialized multimodal model that leverages these aligned datasets. Experimental results demonstrate that MatchTime nearly doubles performance on key benchmarks, significantly improving the temporal precision and semantic accuracy of generated commentary.

Introduction

Live text-based broadcasts of soccer matches are a primary source for training commentary models. However, these feeds frequently suffer from "lag," where the description of a goal or foul appears much later than the actual event. In datasets like SoccerNet-Caption, this misalignment can exceed two minutes. Such noise "confuses" multimodal models during training, as they are forced to associate visual cues (e.g., a celebration) with unrelated text (e.g., a midfield foul). MatchTime addresses this by synchronizing video and text to create high-quality training data.

Methodology

The Alignment Pipeline

To resolve temporal noise, the authors propose a two-stage alignment strategy. The Coarse Alignment stage utilizes WhisperX for Automatic Speech Recognition (ASR) to transcribe match audio. LLaMA-3 then summarizes these transcriptions into 10-second event descriptions, providing a rough temporal anchor. The Fine-grained Alignment stage employs a CLIP-based contrastive learning architecture to calculate frame-level similarity, effectively "snapping" text to the precise moment of action.

The two-stage alignment pipeline: (a) coarse alignment using ASR and LLMs, and (b) fine-grained temporal alignment.

The MatchVoice Model

The MatchVoice architecture is designed to process temporal video sequences and generate professional commentary. It consists of three main components:

  1. Visual Encoder: Utilizes soccer-specific encoders (e.g., Baidu) or general-purpose models (CLIP).
  2. Temporal Aggregator: A Perceiver-based cross-attention mechanism that condenses video frames into a fixed set of visual tokens.
  3. LLM Decoder: A LLaMA-3 model fine-tuned via Low-Rank Adaptation (LoRA) to translate visual tokens into soccer-specific terminology.
Architecture of the MatchVoice model, featuring a visual encoder, temporal aggregator, and LLM decoder.

Experimental Results

The framework was evaluated using the original SoccerNet-Caption dataset and a newly curated, manually aligned benchmark, SN-Caption-test-align.

  • Performance Gains: Transitioning from unaligned to aligned data resulted in a massive leap in the CIDEr score—from 20.61 to 38.42 when using the Baidu visual encoder. This suggests that data quality is as important as model architecture.
  • Temporal Precision: The alignment pipeline reduced the average absolute temporal offset from 13.89 seconds to 6.89 seconds.
  • Context Window: Ablation studies indicated that a 30-second video window provides the optimal balance between necessary context and distracting noise for the model to identify actions accurately.

Conclusion and Future Work

MatchTime demonstrates that precise temporal alignment is critical for training effective multimodal sports commentary models. While the framework significantly improves quality, challenges remain in identifying specific players and distinguishing visually similar actions, such as corner kicks versus near-corner free kicks. Future research will focus on integrating external knowledge bases (like team rosters) and enhancing visual encoders for high-fidelity recognition.

Summary updated

BibTeX
@inproceedings{rao2024matchtime,
  author = {Jiayuan Rao and Haoning Wu and Chang Liu and Yanfeng Wang and Weidi Xie},
  title = {{MatchTime: Towards Automatic Soccer Game Commentary Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.99},
}
Figure