Update README.md
Browse files
README.md
CHANGED
@@ -29,3 +29,103 @@ This is automated evaluation results:
|
|
29 |
| SummLlama3-70B | 0.950 | 0.632 | 0.754 | 0.779 |
|
30 |
|
31 |
Please refer to [our paper](https://arxiv.org/abs/2410.13116) to catch up how to exploit LLM-generated feedback in the context of text summarization.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
| SummLlama3-70B | 0.950 | 0.632 | 0.754 | 0.779 |
|
30 |
|
31 |
Please refer to [our paper](https://arxiv.org/abs/2410.13116) to catch up how to exploit LLM-generated feedback in the context of text summarization.
|
32 |
+
|
33 |
+
|
34 |
+
**SummLlama3-70B**,
|
35 |
+
|
36 |
+
https://huggingface.co/DISLab/SummLlama3-8B
|
37 |
+
|
38 |
+
https://huggingface.co/DISLab/SummLlama3-70B
|
39 |
+
|
40 |
+
**SummLlama3.1-Series**
|
41 |
+
|
42 |
+
https://huggingface.co/DISLab/SummLlama3.1-8B
|
43 |
+
|
44 |
+
https://huggingface.co/DISLab/SummLlama3.1-70B
|
45 |
+
|
46 |
+
**SummLlama3.2-Series**
|
47 |
+
|
48 |
+
https://huggingface.co/DISLab/SummLlama3.2-3B
|
49 |
+
|
50 |
+
|
51 |
+
### *Recommended Prompt for Text Summarization:*
|
52 |
+
|
53 |
+
We recommend to use the prompt below to get the summary, since we trained the model using this.
|
54 |
+
|
55 |
+
```
|
56 |
+
def format_chat_template(document):
|
57 |
+
instruction = "Please summarize the input documnet."
|
58 |
+
row_json = [{"role": "user", "content": f"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{instruction}\n\n### Input:\n{document}\n\n### Response:\n"}]
|
59 |
+
return tokenizer.apply_chat_template(row_json, tokenize=False)
|
60 |
+
```
|
61 |
+
|
62 |
+
|
63 |
+
---
|
64 |
+
|
65 |
+
Here is a brief overview of our summarizer:
|
66 |
+
|
67 |
+
Rather than relying on expensive human feedback, we utilize high-quality, multi-dimensional, and fine-grained feedback generated by large language models (LLMs).
|
68 |
+
|
69 |
+
This model excels at **faithfulness**, **completeness**, and **conciseness**, which are the three human-preferred aspects to judge what is a good summarizer.
|
70 |
+
|
71 |
+
- Faithfulness: a summarizer does not manipulate the information in the input text and add any information not directly inferable from the input text.
|
72 |
+
- Completeness: a summarizer ensures the inclusion of all key information from the input text in the output summary.
|
73 |
+
- Conciseness: a summarizer refrains from incorporating information outside the key information in the output, maintaining a succinct and focused summary.
|
74 |
+
|
75 |
+
Based on our comprehensive evaluation, which included both human and automated assessments of summary quality, SummLlama3 demonstrated significant improvements over the original Llama3 series.
|
76 |
+
|
77 |
+
Here is the results:
|
78 |
+
|
79 |
+
## Human Evaluation
|
80 |
+
|
81 |
+
| **Config.** | **Faithfulness** | **Completeness** | **Conciseness** | **Average** |
|
82 |
+
|--------------------|------------|-----------|-----------|----------|
|
83 |
+
| Llama3-8B-Instruct | 0.902 | 0.636 | 0.784 | 0.774 |
|
84 |
+
| Llama3-70B-Instruct | 0.953 | 0.659 | 0.792 | 0.801 |
|
85 |
+
| SummLlama3-8B | 0.980 | 0.697 | 0.959 | 0.879 |
|
86 |
+
|
87 |
+
## Autoamted Evaluation using [FineSurE](https://aclanthology.org/2024.acl-long.51.pdf)
|
88 |
+
|
89 |
+
| **Config.** | **Faithfulness** | **Completeness** | **Conciseness** | **Average** |
|
90 |
+
|--------------------|------------|-----------|-----------|----------|
|
91 |
+
| Llama3-8B-Instruct | 0.864 | 0.583 | 0.450 | 0.632 |
|
92 |
+
| Llama3-70B-Instruct | 0.931 | 0.596 | 0.487 | 0.671 |
|
93 |
+
| SummLlama3-8B | 0.931 | 0.614 | 0.659 | 0.735 |
|
94 |
+
| SummLlama3-70B | 0.950 | 0.632 | 0.754 | 0.779 |
|
95 |
+
|
96 |
+
## Example
|
97 |
+
|
98 |
+
See an example how the summary improved by SummLlama3-8B over Llama3-8/70B-Instruct on the document below:
|
99 |
+
|
100 |
+
| **Speaker** | **Dialogue** |
|
101 |
+
|-------------|--------------|
|
102 |
+
| **Person 1** | Hey, Paul, you're still having Thanksgiving dinner at my house on Thursday, right? |
|
103 |
+
| **Person 2** | Yeah, thanks again for the invitation. I was worried I'd have to spend it alone after my parents announced they'd be in Finland. |
|
104 |
+
| **Person 1** | I think it's strange that you're not going with them. Is it because of the cold weather in Northern Europe? |
|
105 |
+
| **Person 2** | Not exactly. I have a lot of work to do next week. |
|
106 |
+
| **Person 1** | Well, I'm glad you won't be alone on a holiday. It'll be great to have you celebrate with us. The more the merrier! |
|
107 |
+
| **Person 2** | Exactly, how many people will be there? |
|
108 |
+
| **Person 1** | Let's see, my parents, my grandpa, my sister, my brother-in-law, my niece and my two cousins, plus us. So, ten people altogether. |
|
109 |
+
| **Person 2** | Should I bring anything? |
|
110 |
+
| **Person 1** | Nope, we've got it covered. |
|
111 |
+
| **Person 2** | Come on, I hate to show up empty-handed. You are being so generous to have me. I know! I'll bring pie. I'll make a great pumpkin pie. |
|
112 |
+
| **Person 1** | Sounds delicious, but my sister has already volunteered for dessert. Look, don't worry about it. There will be tons of food. Turkey, stuffing, green beans, sweet potatoes. |
|
113 |
+
| **Person 2** | Wow, I'm getting hungry just thinking about it. How about this, I'll bring a nice bottle of wine. You can never have too much of that. |
|
114 |
+
| **Person 1** | Well, isn't that the truth? Sounds good to me. |
|
115 |
+
|
116 |
+
|
117 |
+
| Model | Summary |
|
118 |
+
|----------|-----------|
|
119 |
+
| Llama3-8B-Instruct | Person1 invites Person2 to join them for Thanksgiving dinner at their house. Person2 accepts the invitation, citing that they were worried they would have to spend the holiday alone after their parents announced they would be in Finland. Person1 reassures Person2 that they are welcome and that the more the merrier. Person2 asks how many people will be attending and is told that there will be 10 people, including their family and cousins. Person2 offers to bring a gift, but Person1 declines, saying that they have everything covered. Person2 persists and offers to bring a bottle of wine or a pie, but Person1 suggests that their sister has already volunteered to bring dessert. |
|
120 |
+
| Llama3-70B-Instruct | Person 1 invites Person 2 to their house for Thanksgiving dinner on Thursday. Person 2 is grateful for the invitation and explains they can't go to Finland with their parents due to work commitments. Person 1 is happy to have them celebrate with their family, which will consist of 10 people. When Person 2 offers to bring something, Person 1 declines, but eventually agrees to let them bring a bottle of wine. |
|
121 |
+
| SummLlama3-8B | The conversation is about Thanksgiving dinner arrangements, with Person2 (Paul) confirming his attendance at Person1's (host's) house on Thursday, discussing what to bring and what's already been taken care of, and finalizing the offer to bring wine instead of pie since someone else is handling desserts. |
|
122 |
+
|
123 |
+
The summary of SummLlama3-8B can be considered a much human-preferred summary for the following reasons:
|
124 |
+
|
125 |
+
**Core Focus:** The summary accurately captures the main theme of the conversation, which revolves around the Thanksgiving dinner arrangements. It highlights how the two people confirm plans, discuss what to bring, and finalize the decision for Person2 to bring wine instead of pie. This maintains the core context.
|
126 |
+
|
127 |
+
**Inclusion of Key-facts:** The summary covers the important details of the conversation, including Person2's initial offer to bring dessert (pumpkin pie) and the shift to bringing wine due to another family member handling dessert. Other summaries tend to overlook or simplify this progression, while SummLlama3-8B fully captures the interaction’s key events.
|
128 |
+
|
129 |
+
**Clarity and Conciseness:** The summary is structured in a straightforward, concise manner, effectively summarizing the conversation without unnecessary details. It presents the flow and outcome of the discussion clearly, making it easy for readers to understand. The logical order of events is maintained, ensuring a smooth narrative.
|
130 |
+
|
131 |
+
**Accurate Role Depiction:** The summary clearly identifies Person1 as the host and Paul (Person2) as the guest, which helps clarify their relationship and the nature of the conversation. This distinction is more explicit in SummLlama3-8B compared to other summaries, which might leave these roles more ambiguous.
|