Views
No views yet
google-t5/t5-large model, I fine-tune it
using Low-Rank Adaptation (LoRA) on the ArXiv Summarization dataset comprised of technical academic articles.
The performance was evaluated on three long-document summarization benchmarks from the lm_eval harness.
While the results were modest, they exemplify the potential of this model's ability to condense geoscientific
literature into useful summaries. google-t5/t5-large
model was fine-tuned usingLoRA to achieve efficiency without heavy computational
cost. The target modules used were SelfAttention.q and SelfAttention.v with
the LoRA configuration as follows: r set to 64, lora_alpha set to 64,
lora_dropout set to 0.05. The training, utilized on the ArXiv dataset, described
in the previous section, was only conducted for 1 epoch using the Seq2SeqTrainer.
With this trainer came a per-device batch size of 2, gradient accumulation steps
equal to 4, and a mixed precision set to FP16.lm_eval harness: scrolls_govreport,
scrolls_qasper, and scrolls_summscreenfd:
-scrolls_govreport: focuses on the summarization of government reports
-scrolls_qasper: focuses on scientific QA pairs
-scrolls_summscreenfd: focuses on dialogue summarization| Dataset | Metric | Base T5-Large | LoRA Fine-Tuned |
|---|---|---|---|
scrolls_govreport | ROUGE-1 | 0.2848 | 0.2848 |
| ROUGE-2 | 0.0000 | 0.0000 | |
| ROUGE-L | 0.2848 | 0.2848 | |
scrolls_qasper | F1 | 11.0256 | 11.0256 |
scrolls_summscreenfd | ROUGE-1 | 0.0000 | 0.0000 |
| ROUGE-2 | 0.0000 | 0.0000 | |
| ROUGE-L | 0.0000 | 0.0000 |
meta-llama/Llama-3.2-1B model
and the facebook/bart-large-cnn model.1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
3## Load tokenizer and model
4tokenizer = AutoTokenizer.from_pretrained("isabellafpaolucci/geosum")
5model = AutoModelForSeq2SeqLM.from_pretrained("isabellafpaolucci/geosum")
6
7## Example usage
8input_text = (
9 "Summarize the following geoscience article:\n\n"
10 "[Insert user geoscientific text]"
11)
12inputs = tokenizer(input_text, return_tensors="pt", truncation=True, padding=True)
13summary_ids = model.generate(**inputs, max_length=150, num_beams=4)
14print(tokenizer.decode(summary_ids[0], skip_special_tokens=True))1Summarize the following geoscience article:
2
3[Insert your geoscientific text here][output paragraph]google-t5/t5-large model offers computational efficiency,
however due to the shortened training time, smaller batch sizes, significantly
reduced data size, and lack of geoscience-specific data,the training of the model
has no meaninful contributions. The results yield outputs that have poor
generalization, formatting, and underfit the data. These limitations exemplify
some of the challenges involvedswith developing a long-form text summarization
task tailored to a domain-specific cause with limited computational resources.