CoolFace
Modelpublic

tuanhqv123/longt5-meeting-summarization

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes52downloads
Model Card

LongT5 — Dialogue Summarization

A LongT5 (tglobal-base) model fine-tuned to summarize short conversations into a sentence or two. Trained on DialogSum + SAMSum — two-person chats and group messenger threads.

  • —Base model: google/long-t5-tglobal-base
  • —Task: Abstractive dialogue summarization (English)
  • —Max input / output: 512 / 96 tokens
  • —License: Apache-2.0
🔧 Reproducibility: the pipeline lives in `code/` as two runnable notebooks — `data_processing.ipynb` (clean + EDA + investigation) and `train.ipynb` (fine-tune + evaluate) — plus `code/REPORT.md` for the full analysis and decision log.

Quick start

The model was trained with a "summarize: " task prefix — add it at inference too:

python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

repo = "tuanhqv123/longt5-meeting-summarization"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSeq2SeqLM.from_pretrained(repo)

dialogue = """Person1: Can I help you?
Person2: I'd like to buy a new mobile phone please."""
inputs = tok("summarize: " + dialogue, return_tensors="pt", truncation=True, max_length=512)
ids = model.generate(**inputs, max_new_tokens=96, num_beams=4, no_repeat_ngram_size=3)
print(tok.decode(ids[0], skip_special_tokens=True))

Evaluation

Held-out test set (DialogSum + SAMSum), beam=4, ROUGE with stemming + BERTScore-F1:

MetricScore
ROUGE-10.4738
ROUGE-20.2316
ROUGE-L0.3913
BERTScore-F10.9125

ROUGE measures word overlap; BERTScore measures semantic similarity, so its higher value reflects that the summaries are usually correct in meaning even when worded differently.

Per-source breakdown

SourceROUGE-1ROUGE-2ROUGE-LBERTScore-F1
SAMSum0.50260.26500.42310.9156
DialogSum0.45210.18730.36450.9100

SAMSum (casual messenger chats) summarizes a bit more cleanly than DialogSum (longer, more structured two-person dialogues).

Training

Data: `knkarthick/dialogsum` + `knkarthick/samsum`, cleaned and merged (29,610 rows after cleaning). DialogSum's #Person1# tags are normalized to Person1 so the two sources share a consistent speaker style. Each dataset's original train/val/test split is kept.

SettingValue
Base modelgoogle/long-t5-tglobal-base
Task prefixsummarize:
Epochsmax 10, early stopping (patience 2) → best at epoch 6
Batch size16
Learning rate3e-4
Warmup steps200
Label smoothing0.1
PrecisionBF16
Max input / output512 / 96 tokens
Hardware1× NVIDIA RTX 4090

Validation ROUGE-L per epoch

Early stopping (patience 2) picked epoch 6 — validation ROUGE-L peaked there, then didn't improve.

Epoch12345**6**78
ROUGE-L0.41190.42610.42750.42580.43350.43490.43160.4322

Intended use & limitations

  • —Intended: abstractive summarization of short English conversations / chat threads.
  • —Limitations: English-only; trained on casual/everyday dialogue, so it may transfer poorly to technical, legal, or very long transcripts. Like all abstractive summarizers it can hallucinate — verify facts before relying on a summary. Inputs beyond 512 tokens are truncated.

Citation

Built on LongT5:

bibtex
@article{guo2021longt5,
  title={LongT5: Efficient Text-To-Text Transformer for Long Sequences},
  author={Guo, Mandy and Ainslie, Joshua and Uthus, David and Ontanon, Santiago and Ni, Jianmo and Sung, Yun-Hsuan and Yang, Yinfei},
  journal={arXiv preprint arXiv:2112.07916},
  year={2021}
}