MikaSie commited on
Commit
5c503e6
1 Parent(s): f498625

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +105 -98
README.md CHANGED
@@ -1,103 +1,110 @@
1
  ---
2
- base_model: google/pegasus-x-base
3
  tags:
4
- - generated_from_trainer
5
- datasets:
6
- - arrow
 
 
 
 
7
  model-index:
8
- - name: RoBERTa_PegasusX_dependent_V1
9
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
 
12
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
- should probably proofread and complete it, then remove this comment. -->
14
-
15
- # RoBERTa_PegasusX_dependent_V1
16
-
17
- This model is a fine-tuned version of [google/pegasus-x-base](https://huggingface.co/google/pegasus-x-base) on the arrow dataset.
18
- It achieves the following results on the evaluation set:
19
- - Loss: 1.8746
20
-
21
- ## Model description
22
-
23
- More information needed
24
-
25
- ## Intended uses & limitations
26
-
27
- More information needed
28
-
29
- ## Training and evaluation data
30
-
31
- More information needed
32
-
33
- ## Training procedure
34
-
35
- ### Training hyperparameters
36
-
37
- The following hyperparameters were used during training:
38
- - learning_rate: 5e-05
39
- - train_batch_size: 2
40
- - eval_batch_size: 1
41
- - seed: 42
42
- - distributed_type: multi-GPU
43
- - num_devices: 4
44
- - gradient_accumulation_steps: 2
45
- - total_train_batch_size: 16
46
- - total_eval_batch_size: 4
47
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
- - lr_scheduler_type: linear
49
- - lr_scheduler_warmup_ratio: 0.1
50
- - num_epochs: 40
51
-
52
- ### Training results
53
-
54
- | Training Loss | Epoch | Step | Validation Loss |
55
- |:-------------:|:-------:|:----:|:---------------:|
56
- | 5.0969 | 0.9927 | 68 | 4.0313 |
57
- | 4.0402 | 2.0 | 137 | 3.3986 |
58
- | 3.4982 | 2.9927 | 205 | 2.8962 |
59
- | 3.0073 | 4.0 | 274 | 2.5098 |
60
- | 2.7368 | 4.9927 | 342 | 2.2747 |
61
- | 2.5159 | 6.0 | 411 | 2.1648 |
62
- | 2.4182 | 6.9927 | 479 | 2.1013 |
63
- | 2.3017 | 8.0 | 548 | 2.0624 |
64
- | 2.2755 | 8.9927 | 616 | 2.0285 |
65
- | 2.1929 | 10.0 | 685 | 2.0031 |
66
- | 2.1874 | 10.9927 | 753 | 1.9799 |
67
- | 2.1146 | 12.0 | 822 | 1.9751 |
68
- | 2.1171 | 12.9927 | 890 | 1.9685 |
69
- | 2.0624 | 14.0 | 959 | 1.9523 |
70
- | 2.0648 | 14.9927 | 1027 | 1.9399 |
71
- | 2.0156 | 16.0 | 1096 | 1.9352 |
72
- | 2.0276 | 16.9927 | 1164 | 1.9239 |
73
- | 1.9833 | 18.0 | 1233 | 1.9222 |
74
- | 1.9934 | 18.9927 | 1301 | 1.9109 |
75
- | 1.951 | 20.0 | 1370 | 1.9126 |
76
- | 1.9656 | 20.9927 | 1438 | 1.9010 |
77
- | 1.9238 | 22.0 | 1507 | 1.9006 |
78
- | 1.9366 | 22.9927 | 1575 | 1.8911 |
79
- | 1.9023 | 24.0 | 1644 | 1.8989 |
80
- | 1.917 | 24.9927 | 1712 | 1.8905 |
81
- | 1.8819 | 26.0 | 1781 | 1.8872 |
82
- | 1.899 | 26.9927 | 1849 | 1.8853 |
83
- | 1.8633 | 28.0 | 1918 | 1.8857 |
84
- | 1.8908 | 28.9927 | 1986 | 1.8815 |
85
- | 1.8543 | 30.0 | 2055 | 1.8806 |
86
- | 1.8694 | 30.9927 | 2123 | 1.8788 |
87
- | 1.8363 | 32.0 | 2192 | 1.8760 |
88
- | 1.8658 | 32.9927 | 2260 | 1.8761 |
89
- | 1.832 | 34.0 | 2329 | 1.8768 |
90
- | 1.8592 | 34.9927 | 2397 | 1.8764 |
91
- | 1.8277 | 36.0 | 2466 | 1.8772 |
92
- | 1.8568 | 36.9927 | 2534 | 1.8751 |
93
- | 1.8186 | 38.0 | 2603 | 1.8764 |
94
- | 1.8464 | 38.9927 | 2671 | 1.8748 |
95
- | 1.8179 | 39.7080 | 2720 | 1.8746 |
96
-
97
-
98
- ### Framework versions
99
-
100
- - Transformers 4.40.1
101
- - Pytorch 2.2.1+cu121
102
- - Datasets 2.17.1
103
- - Tokenizers 0.19.1
 
1
  ---
2
+ language: en
3
  tags:
4
+ - summarization
5
+ - abstractive
6
+ - hybrid
7
+ - multistep
8
+ datasets: dennlinger/eur-lex-sum
9
+ pipeline_tag: summarization
10
+ base_model: PegasusX
11
  model-index:
12
+ - name: BART
13
+ results:
14
+ - task:
15
+ type: summarization
16
+ name: Long, Legal Document Summarization
17
+ dataset:
18
+ name: eur-lex-sum
19
+ type: dennlinger/eur-lex-sum
20
+ metrics:
21
+ - type: ROUGE-1
22
+ value: 0.3052140216849777
23
+ - type: ROUGE-2
24
+ value: 0.11618939846882545
25
+ - type: ROUGE-L
26
+ value: 0.1959728543078375
27
+ - type: BERTScore
28
+ value: 0.8413452389519974
29
+ - type: BARTScore
30
+ value: -1.8736879965446516
31
+ - type: BLANC
32
+ value: 0.1326111638980123
33
  ---
34
 
35
+ # Model Card for RoBERTa_PegasusX_dependent_V1
36
+
37
+ ## Model Details
38
+ ---
39
+ ### Model Description
40
+
41
+ This model is a fine-tuned version of PegasusX. The research involves a multi-step summarization approach to long, legal documents. Many decisions in the renewables energy space are heavily dependent on regulations. But these regulations are often long and complicated. The proposed architecture first uses one or more extractive summarization steps to compress the source text, before the final summary is created by the abstractive summarization model. This fine-tuned abstractive model has been trained on a dataset, pre-processed through extractive summarization by RoBERTa with dependent ratio. The research has used multiple extractive-abstractive model combinations, which can be found on https://huggingface.co/MikaSie. To obtain optimal results, feed the model an extractive summary as input as it was designed this way!
42
+
43
+ The dataset used by this model is the [EUR-lex-sum](https://huggingface.co/datasets/dennlinger/eur-lex-sum) dataset. The evaluation metrics can be found in the metadata of this model card.
44
+ This paper was introduced by the master thesis of Mika Sie at the University Utrecht in collaboration with Power2x. More information can be found in PAPER_LINK.
45
+
46
+ - **Developed by:** Mika Sie
47
+ - **Funded by:** University Utrecht & Power2X
48
+ - **Language (NLP):** English
49
+ - **Finetuned from model:** PegasusX
50
+
51
+
52
+ ### Model Sources
53
+
54
+ - **Repository**: https://github.com/MikaSie/Thesis
55
+ - **Paper**: PAPER_LINK
56
+ - **Streamlit demo**: STREAMLIT_LINK
57
+
58
+ ## Uses
59
+ ---
60
+ ### Direct Use
61
+
62
+ This model can be directly used for summarizing long, legal documents. However, it is recommended to first use an extractive summarization tool, such as RoBERTa, to compress the source text before feeding it to this model. This model has been specifically designed to work with extractive summaries.
63
+ An example using the Huggingface pipeline could be:
64
+
65
+ ```python
66
+ pip install bert-extractive-summarizer
67
+
68
+ from summarizer import Summarizer
69
+ from transformers import pipeline
70
+
71
+ extractive_model = Summarizer()
72
+
73
+ text = 'Original document text to be summarized'
74
+
75
+ extractive_summary = Summarizer(text)
76
+
77
+ abstractive_model = pipeline('summarization', model = 'MikaSie/RoBERTa_PegasusX_dependent_V1', tokenizer = 'MikaSie/RoBERTa_PegasusX_dependent_V1')
78
+
79
+ result = pipeline(extractive_summary)
80
+ ```
81
+
82
+ But more information of implementation can be found in the Thesis report.
83
+ ### Out-of-Scope Use
84
+
85
+ Using this model without an extractive summarization step may not yield optimal results. It is recommended to follow the proposed multi-step summarization approach outlined in the model description for best performance.
86
+
87
+ ## Bias, Risks, and Limitations
88
+ ---
89
+
90
+ ### Bias
91
+
92
+ As with any language model, this model may inherit biases present in the training data. It is important to be aware of potential biases in the source text and to critically evaluate the generated summaries.
93
+
94
+ ### Risks
95
+
96
+ - The model may not always generate accurate or comprehensive summaries, especially for complex legal documents.
97
+ - The model may not generate truthful information.
98
+
99
+ ### Limitations
100
+
101
+ - The model may produce summaries that are overly abstractive or fail to capture important details.
102
+ - The model's performance may vary depending on the quality and relevance of the extractive summaries used as input.
103
+
104
+ ### Recommendations
105
+
106
+ - Carefully review and validate the generated summaries before relying on them for critical tasks.
107
+ - Consider using the model in conjunction with human review or other validation mechanisms to ensure the accuracy and completeness of the summaries.
108
+ - Experiment with different extractive summarization models or techniques to find the most suitable input for the abstractive model.
109
+ - Provide feedback and contribute to the ongoing research and development of the model to help improve its performance and address its limitations.
110
+ - Any actions taken based on this content are at your own risk.