🚀 SummLlama3.1-8B
SummLlama3.1-8Bは、複数のドメインにわたって、より人間に好まれる要約を生成できる要約モデルです。Llama3.1-8B-Instructをベースに、大規模(10万件以上)の要約フィードバックを用いたDirect Preference Optimization (DPO)による追加学習を行っています。
🚀 クイックスタート
モデル情報
属性 |
详情 |
ライブラリ名 |
transformers |
ベースモデル |
meta-llama/Llama-3.1-8B-Instruct |
パイプラインタグ |
要約 |
推奨プロンプト
要約を取得するために、以下のプロンプトを使用することをおすすめします。このプロンプトを使用してモデルを学習させています。
def format_chat_template(document):
instruction = "Please summarize the input documnet."
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"}]
return tokenizer.apply_chat_template(row_json, tokenize=False)
モデルのURL
- SummLlama3-70B
- https://huggingface.co/DISLab/SummLlama3-8B
- https://huggingface.co/DISLab/SummLlama3-70B
- SummLlama3.1-Series
- https://huggingface.co/DISLab/SummLlama3.1-8B
- https://huggingface.co/DISLab/SummLlama3.1-70B
- SummLlama3.2-Series
- https://huggingface.co/DISLab/SummLlama3.2-3B
論文情報
詳細については、論文を参照してください。
✨ 主な機能
フィードバックの多様性
フィードバックには、短いテキストから長いテキストまで、対話形式と非対話形式の両方を含む幅広い入力文書が含まれており、7つの異なるドメインにまたがっています。
- 4つの非対話ドメイン: ニュース、ライフスタイル、レポート、医療
- 3つの対話ドメイン: 日常生活、インタビュー、会議
評価結果
自動評価と人間による評価の両方を行った結果、SummLlama3は元のLlama3シリーズに比べて大幅な改善を示しました。
自動評価結果
設定 |
忠実度 |
完全性 |
簡潔性 |
平均 |
Llama3-8B-Instruct |
0.864 |
0.583 |
0.450 |
0.632 |
Llama3-70B-Instruct |
0.931 |
0.596 |
0.487 |
0.671 |
Llama3.1-8B-Instruct |
0.875 |
0.596 |
0.395 |
0.622 |
GPT-4o |
0.940 |
0.657 |
0.437 |
0.678 |
SummLlama3-8B |
0.931 |
0.614 |
0.659 |
0.735 |
SummLlama3-70B |
0.950 |
0.632 |
0.754 |
0.779 |
SummLlama3.1-8B |
0.924 |
0.635 |
0.661 |
0.740 |
人間による評価結果
設定 |
忠実度 |
完全性 |
簡潔性 |
平均 |
Llama3-8B-Instruct |
0.902 |
0.636 |
0.784 |
0.774 |
Llama3-70B-Instruct |
0.953 |
0.659 |
0.792 |
0.801 |
SummLlama3-8B |
0.980 |
0.697 |
0.959 |
0.879 |
要約の例
以下の会話の要約を、Llama3-8B-Instruct、Llama3-70B-Instruct、SummLlama3-8Bで行った結果を比較します。
話者 |
会話内容 |
Person 1 |
Hey, Paul, you're still having Thanksgiving dinner at my house on Thursday, right? |
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. |
Person 1 |
I think it's strange that you're not going with them. Is it because of the cold weather in Northern Europe? |
Person 2 |
Not exactly. I have a lot of work to do next week. |
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! |
Person 2 |
Exactly, how many people will be there? |
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. |
Person 2 |
Should I bring anything? |
Person 1 |
Nope, we've got it covered. |
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. |
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. |
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. |
Person 1 |
Well, isn't that the truth? Sounds good to me. |
モデル |
要約内容 |
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. |
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. |
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. |
SummLlama3-8Bの要約が人間に好まれる理由
- 核心的な焦点: 要約は、感謝祭ディナーの手配を中心とした会話の主要なテーマを正確に捉えています。二人が計画を確認し、持ち物を話し合い、Person2がパイの代わりにワインを持ってくることを決定する流れを強調しています。
- 重要事実の包含: 要約は、会話の重要な詳細を網羅しています。Person2が最初にデザート(カボチャパイ)を持ってくる提案と、別の家族がデザートを担当するためにワインに変更する流れを含んでいます。他の要約はこの流れを見落としたり、単純化したりする傾向がありますが、SummLlama3-8Bは会話の重要な出来事を完全に捉えています。
- 明瞭性と簡潔性: 要約は、簡潔で明確な構造になっており、不要な詳細を省いて会話を効果的に要約しています。議論の流れと結果を明確に提示しており、読者が理解しやすいようになっています。イベントの論理的な順序が維持されており、スムーズな物語性が保たれています。
- 正確な役割描写: 要約は、Person1をホスト、Paul (Person2)をゲストとして明確に識別しており、彼らの関係と会話の性質を明確にしています。この区別は、他の要約よりもSummLlama3-8Bでより明示的になっています。