leafiy commited on
Commit
b132270
·
verified ·
1 Parent(s): 1cec36e

model card: comparison with popular open Chinese sentiment models

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -58,3 +58,20 @@ print(result['answers']['sentiment']) # choice / probabilities / confidence
58
  输入请先做与训练一致的归一化(`scripts/prepare-laya-sentiment.py` 的 `normalize_text`)。只监督了三分类的 choice 头,返回里的 `act_probability` 没有训练过,不要用它做分流。完整报告在 `reports/mia-laya/` 与 `reports/public/mia-laya.json`,训练日志 `logs/relabeled-cw-balanced.log`,训练脚本 `scripts/train-laya-sentiment.py`。
59
 
60
  已知短板:中性召回 0.770 低于 `mia-qwen3.5-2b` 的 0.892,主要错法是把中性判成正面或负面;褒贬并存的文本没有定义好的输出(训练时被剔除)。评测标签来自大模型重标,不是人工金标。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  输入请先做与训练一致的归一化(`scripts/prepare-laya-sentiment.py` 的 `normalize_text`)。只监督了三分类的 choice 头,返回里的 `act_probability` 没有训练过,不要用它做分流。完整报告在 `reports/mia-laya/` 与 `reports/public/mia-laya.json`,训练日志 `logs/relabeled-cw-balanced.log`,训练脚本 `scripts/train-laya-sentiment.py`。
59
 
60
  已知短板:中性召回 0.770 低于 `mia-qwen3.5-2b` 的 0.892,主要错法是把中性判成正面或负面;褒贬并存的文本没有定义好的输出(训练时被剔除)。评测标签来自大模型重标,不是人工金标。
61
+
62
+ ## 和常见开源中文情感模型对比
63
+
64
+ | 模型 | 类别 | holdout 5,372 三分类 | 中文 900 条三分类 | holdout 正负二选一 | 900 条正负二选一 | ChnSentiCorp | 网购评论 | eprstmt | 微博 | DMSC Macro-F1 | 4090 每秒条数 |
65
+ | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
66
+ | [**mia-decider-2b**](https://huggingface.co/leafiy/mia-decider-2b) | 负 / 中 / 正 | **0.881** | 0.940 | **0.978** | **1.000** | 0.880 | 0.921 | 0.893 | **0.830** | **0.519** | 375 |
67
+ | [**mia-qwen3.5-2b**](https://huggingface.co/leafiy/mia-qwen3.5-2b) | 负 / 中 / 正 | 0.871 | **0.941** | 0.972 | **1.000** | 0.882 | 0.922 | 0.897 | 0.798 | 0.499 | 626 |
68
+ | [**mia-laya**](https://huggingface.co/leafiy/mia-laya) | 负 / 中 / 正 | 0.817 | 0.938 | 0.954 | 0.995 | 0.883 | 0.919 | 0.882 | 0.803 | 0.467 | 1,977 |
69
+ | [Erlangshen-Roberta-330M-Sentiment](https://huggingface.co/IDEA-CCNL/Erlangshen-Roberta-330M-Sentiment) | 负 / 正 | 0.452 | 0.656 | 0.880 | 0.983 | **0.968** | **0.989** | **0.997** | 0.729 | 0.415 | 1,378 |
70
+ | [Erlangshen-Roberta-110M-Sentiment](https://huggingface.co/IDEA-CCNL/Erlangshen-Roberta-110M-Sentiment) | 负 / 正 | 0.448 | 0.646 | 0.871 | 0.968 | 0.962 | 0.979 | 0.982 | 0.721 | 0.409 | 3,809 |
71
+ | [uer/roberta-base-finetuned-dianping-chinese](https://huggingface.co/uer/roberta-base-finetuned-dianping-chinese) | 负 / 正 | 0.455 | 0.657 | 0.885 | 0.985 | 0.877 | 0.894 | 0.795 | 0.726 | 0.414 | 3,812 |
72
+ | [uer/roberta-base-finetuned-jd-binary-chinese](https://huggingface.co/uer/roberta-base-finetuned-jd-binary-chinese) | 负 / 正 | 0.431 | 0.654 | 0.839 | 0.982 | 0.834 | 0.928 | 0.902 | 0.704 | 0.455 | 3,795 |
73
+ | [cardiffnlp/twitter-xlm-roberta-base-sentiment](https://huggingface.co/cardiffnlp/twitter-xlm-roberta-base-sentiment) | 负 / 中 / 正 | 0.693 | 0.664 | 0.921 | 0.750 | 0.809 | 0.894 | 0.848 | 0.813 | 0.397 | 3,650 |
74
+ | [lxyuan/distilbert-base-multilingual-cased-sentiments-student](https://huggingface.co/lxyuan/distilbert-base-multilingual-cased-sentiments-student) | 负 / 中 / 正 | 0.486 | 0.560 | 0.885 | 0.817 | 0.852 | 0.903 | 0.864 | 0.797 | 0.447 | 6,699 |
75
+ | [tabularisai/multilingual-sentiment-analysis](https://huggingface.co/tabularisai/multilingual-sentiment-analysis) | 五档合为三类 | 0.622 | 0.777 | 0.837 | 0.785 | 0.822 | 0.868 | 0.841 | 0.668 | 0.374 | 6,556 |
76
+
77
+ 同一套评测、同一台 RTX 4090(batch 64),脚本 `scripts/evaluate-public-benchmarks.py`(开源模型用 `--model-type hf`)与 `scripts/benchmark-throughput.py`,逐模型报告在 GitHub 仓库的 `reports/open-models/`。