Downloads · 30 days
9
1% of all-time downloads
saadob12/t5_C2T_big
t5_C2T_big is a machine learning model from saadob12. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
The trained model for investigations and state-of-the-art (SOTA) improvements are detailed in the paper: Tackling Hallucinations in Neural Chart Summarization.
Downloads · 30 days
9
1% of all-time downloads
All-time downloads
1.2K
Public
Repo size
2.7 GB
Likes
1
Public
Click a slice to open those files.
.bin892 MB · 100%
From the Hugging Face model README
The trained model for investigations and state-of-the-art (SOTA) improvements are detailed in the paper: Tackling Hallucinations in Neural Chart Summarization.
Hallucinations in text generation occur when the system produces text that is not grounded in the input. In this work, we address the problem of hallucinations in neural chart summarization. Our analysis reveals that the target side of chart summarization training datasets often contains additional information, leading to hallucinations. We propose a natural language inference (NLI) based method to preprocess the training data and demonstrate through human evaluation that our approach significantly reduces hallucinations. Additionally, we found that shortening long-distance dependencies in the input sequence and adding chart-related information such as titles and legends enhances overall performance.
The model was trained using optimized prompts based on findings from the paper Tackling Hallucinations in Neural Chart Summarization.
The input prompt template consists of the title, x-y labels, and x-y values.
Appending C2T Prefix:
Before every input to the model, append C2T:.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("saadob12/t5_autochart_2")
model = AutoModelForSeq2SeqLM.from_pretrained("saadob12/t5_autochart_2")
data = 'Breakdown of coronavirus (COVID-19) deaths in South Korea as of March 16, 2020\n' \
'by chronic disease x-y labels\n' \
'Response - Share of cases, x-y values Circulatory system disease* 62.7%, ' \
'Endocrine and metabolic diseases** 46.7%, Mental illness*** 25.3%, ' \
'Respiratory diseases*** 24%, Urinary and genital diseases 14.7%, Cancer 13.3%, ' \
'Nervous system diseases 4%, Digestive system diseases 2.7%, Blood and hematopoietic diseases 1.3%' \
prefix = 'C2T: '
tokens = tokenizer.encode(prefix + data, truncation=True, padding='max_length', return_tensors='pt')
generated = model.generate(tokens, num_beams=4, max_length=256)
tgt_text = tokenizer.decode(generated[0], skip_special_tokens=True, clean_up_tokenization_spaces=True)
summary = tgt_text.strip('[]""')
# Summary:
#As of March 16, 2020, around 62.7% of COVID-19 deaths in South Korea were related to circulatory system diseases.
#Other chronic diseases include endocrine and metabolic diseases, mental illness, and cancer.
#South Korea confirmed 30,017 infection cases, including 501 deaths.
You can use the model to generate summaries of data files. Works well for general statistics like the following:
| Year | Children born per woman |
|---|---|
| 2018 | 1.14 |
| 2017 | 1.45 |
| 2016 | 1.49 |
| 2015 | 1.54 |
| 2014 | 1.6 |
| 2013 | 1.65 |
May or may not generate an okay summary at best for the following kind of data:
| Model | BLEU score | BLEURT |
|---|---|---|
| bert-small | 25.4 | -0.11 |
| bert-base | 28.2 | 0.12 |
| bert-large | 35.4 | 0.34 |
Kindly cite my work. Thank you.
@inproceedings{obaid-ul-islam-etal-2023-tackling,
title = {Tackling Hallucinations in Neural Chart Summarization},
author = {Obaid ul Islam, Saad and Škrjanec, Iza and Dusek, Ondrej and Demberg, Vera},
booktitle = {Proceedings of the 16th International Natural Language Generation Conference},
month = sep,
year = {2023},
address = {Prague, Czechia},
publisher = {Association for Computational Linguistics},
url = {https://aclanthology.org/2023.inlg-main.30},
doi = {10.18653/v1/2023.inlg-main.30},
pages = {414--423},
abstract = {Hallucinations in text generation occur when the system produces text that is not grounded in the input. In this work, we tackle the problem of hallucinations in neural chart summarization. Our analysis shows that the target side of chart summarization training datasets often contains additional information, leading to hallucinations. We propose a natural language inference (NLI) based method to preprocess the training data and show through human evaluation that our method significantly reduces hallucinations. We also found that shortening long-distance dependencies in the input sequence and adding chart-related information like title and legends improves the overall performance.}
}
Original Paper:
@inproceedings{kantharaj-etal-2022-chart,
title = "Chart-to-Text: A Large-Scale Benchmark for Chart Summarization",
author = "Kantharaj, Shankar and
Leong, Rixie Tiffany and
Lin, Xiang and
Masry, Ahmed and
Thakkar, Megh and
Hoque, Enamul and
Joty, Shafiq",
editor = "Muresan, Smaranda and
Nakov, Preslav and
Villavicencio, Aline",
booktitle = "Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
month = may,
year = "2022",
address = "Dublin, Ireland",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.acl-long.277",
doi = "10.18653/v1/2022.acl-long.277",
pages = "4005--4023"
}