user_id stringlengths 13 13 | platform stringclasses 5
values | username stringlengths 10 10 | bio stringlengths 0 329 | total_steps int64 1 18 | prediction_tasks listlengths 1 18 |
|---|---|---|---|---|---|
do_7a78c2c032 | douban | U_e9447423 | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-11T00:00:00",
"date_target": "2025-06-24T00:00:00",
"posts_text": "[1] Title: del的广播 Content: del 看过 ★☆☆☆☆ 完全的在故弄玄虛,無病呻吟,就像一個歌手上台,純粹是為了炫耀歌唱技巧完全不帶一絲感情,讓廣大聽眾一頭霧水,形同嚼蠟~看了兩集果斷棄劇,就這兩集裡每個人的存在都神經兮兮的,完全沒法用邏輯去串連~因為劇本毀了,演員的演技就無從提起了~不反對國內導演致敬大師做這種嘗試,... | |
do_a9fe9b677b | douban | U_7a34d6d9 | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-10T00:00:00",
"date_target": "2025-06-25T00:00:00",
"posts_text": "[1] Title: 点与线的广播 Content: 点与线 看过 ★★★★★ 无论看多少遍也会觉得这是谍战动作电影的巅峰之作,莫斯科——迪拜——孟买的标准三幕编排+普遍在线的演技和颜值+能火出圈的一段迪拜塔高空动作戏,造就了经典。以及在看了很多遍后忍不住会想,伊森和他的妻子之间究竟是怎样的一种情愫呢?为了保护妻子而无法和她度过漫漫人生,在我... | |
do_8e0aec4820 | douban | U_ebb831e0 | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-11T00:00:00",
"date_target": "2025-06-30T00:00:00",
"posts_text": "[1] Title: 星风雪的广播 Content: 星风雪 看过 ★★★☆☆ 似曾相识的故事,按部就班的节奏。虽然看上去从头打到尾,好像很激烈很刺激,但是乏善可陈,缺少亮点,甚至重复多了显乏味。唯一看点是火焰喷射器对喷的段落。 疾速追杀:芭蕾杀姬 Ballerina (2025) 2025 / 美国 / 动作 惊悚 / 伦·怀斯曼 / 安... | |
do_ecaa23bf5a | douban | U_8e483fe7 | 2 | [
{
"step_id": 1,
"total_steps": 2,
"date_input": "2025-06-13T00:00:00",
"date_target": "2025-06-14T00:00:00",
"posts_text": "[1] Title: bernie的广播 Content: bernie 读过 ★★★★★ 小时候只看过电影,印象很深,布鲁斯南主演的。这次终于看完了小说,非常精彩。小说里没有坐热气球的旅途,电影里有。 八十天环游地球 [法]儒尔·凡尔纳 / 2016 / 译林出版社 Tags: 读过图书:八十天环游地球, 读过图书:bernie 读过 [2... | |
do_1189332dd9 | douban | U_03780368 | 3 | [
{
"step_id": 1,
"total_steps": 3,
"date_input": "2025-06-13T00:00:00",
"date_target": "2025-06-18T00:00:00",
"posts_text": "[1] Title: Janice kwok的广播 Content: Janice kwok 看过 ★★★☆☆ 陈坤两个时期不同的造型都好帅呀!!第一次觉得舒淇很像安吉丽娜朱莉。 寻龙诀 (2015) 2015 / 中国大陆 中国香港 / 剧情 动作 奇幻 冒险 / 乌尔善 / 陈坤 黄渤 Tags: 看过影视:寻龙诀 (2015) [2... | |
do_b9f4fd352d | douban | U_2337ccfc | 2 | [
{
"step_id": 1,
"total_steps": 2,
"date_input": "2025-06-10T00:00:00",
"date_target": "2025-06-14T00:00:00",
"posts_text": "[1] Title: 就是小小垚啊。的广播 Content: 就是小小垚啊。 看过 ★★★★☆ 片名译为老娘与海其实非常合适,除了一个热爱游泳运动的男性,一个担心女儿生命安全的父亲以外,男性角色都在唱反调,而是一群女性在讲这个与海的故事。 泳者之心 Young Woman and the Sea (2024) 2024 / 美国 / 剧情 ... | |
do_0b903ee3ec | douban | U_76121aad | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-09T00:00:00",
"date_target": "2025-06-18T00:00:00",
"posts_text": "[1] Title: yellogu的广播 Content: yellogu 看过 ★★★★★ 佳片。剧情看似温和,实则锋利。台词妙语连珠。镜头语言极佳!这才是电影啊,用画面来表达!表情动作也非常到位。影院修复版画面修复得不错,但音效有点突兀。这片子真是太棒了。 黑炮事件 (1986) 1986 / 中国大陆 / 剧情 喜剧 / 黄建新 /... | |
do_6ac3f5992d | douban | U_3dd316f5 | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-13T00:00:00",
"date_target": "2025-06-26T00:00:00",
"posts_text": "[1] Title: 阿元聊历史的广播 Content: 阿元聊历史 读过 ★★★★★ 兵马未动粮草先行。明初固然进行了大量的开疆拓土,然而配套的军事后勤设施建设却并未跟上,使得明朝并不能真正掌握住这些新征服的土地,不得不在国防与行政的压力之下向内收拢方向,放弃掉自己无力掌控的地区。 版图之枷 赵旭腾 / 2025 / 山西人民出版社 Tag... | |
do_b8903c9ced | douban | U_b0787c70 | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-12T00:00:00",
"date_target": "2025-06-21T00:00:00",
"posts_text": "[1] Title: Diablo的广播 Content: Diablo 读过 ★★★★☆ 2小时看完。情节简单,但悬疑氛围很浓。最后的结局现实到令人遗憾。 当怪物来敲门 [英] 派崔克·奈斯 著 [英] 吉姆·凯 绘 / 2021 / 新蕾出版社 Tags: 读过图书:当怪物来敲门, 读过图书:Diablo [2] Title: Diabl... | |
do_8a417e7727 | douban | U_7f4119f1 | 2 | [
{
"step_id": 1,
"total_steps": 2,
"date_input": "2025-06-10T00:00:00",
"date_target": "2025-06-19T00:00:00",
"posts_text": "[1] Title: 康桥的广播 Content: 康桥 转发小组讨论 【转发赠书】一本文笔优美的口袋书《|book:37129462|经历晚年的孩子|》,在那些青春的夏日里,我觉得自己既不是小孩,也不是大人。我期待尽快成为大人,但我又害怕成为大人——“我的心实在太忙了”。点击想读+转发此条广播,于2025年6月12日20:00抽2人赠书。 ... | |
do_bc802da23a | douban | U_87aea776 | 4 | [
{
"step_id": 1,
"total_steps": 4,
"date_input": "2025-06-12T00:00:00",
"date_target": "2025-06-16T00:00:00",
"posts_text": "[1] Title: 李安迪的广播 Content: 李安迪 看过 ★★★★★ 第一集就非常具有讽刺意味,我们的现实生活同样在经受此模式的困扰,比如让我购买某会员套餐分普通会员、高级会员、PLUS会员,前两天就因为我把某移动套餐减少回每月仅8元,我不断受到10086的电话询问,表面看是在询问用户体验,其实是在骚扰,对方连基本的礼节礼貌都没有,... | |
do_35436ddda4 | douban | U_5e5970dd | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-12T00:00:00",
"date_target": "2025-06-26T00:00:00",
"posts_text": "[1] Title: 冬牧场的广播 Content: 冬牧场 分享 Ep. 30 – 爱的技艺,爱的教育,爱的天赋 今天下午和好久不见的朋友讲到了关于翻译的看法,随笔讲讲关于《爱的艺术》,我认为把 “Art” 翻译成「艺术」,拉高了「爱」作为一样能力的门槛,… Tags: 图书:爱的艺术 [2] Title: 冬牧场的广播 Content: ... | |
do_6c59ac4f82 | douban | U_7c2c620a | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-11T00:00:00",
"date_target": "2025-06-25T00:00:00",
"posts_text": "[1] Title: 用户本人的广播 Content: 用户本人 真的可以制造遗忘吗? 1张图片 [2] Title: 用户本人的广播 Content: 用户本人 听过 ★★★☆☆ 相同的中年伤怀情绪不断重复,相似相仿的旋律线条,除了编曲一直在变化,连嗓音都在固化。走不出的中年人音乐审美圈层。 又回首 沙宝亮 / 专辑 / 2025-01-0... | |
do_129a8e0d4f | douban | U_f1b322dc | 1 | [
{
"step_id": 1,
"total_steps": 1,
"date_input": "2025-06-11T00:00:00",
"date_target": "2025-06-24T00:00:00",
"posts_text": "[1] Title: 思站的广播 Content: 思站 《鬼才之道》影评|他人即地狱 《鬼才之道》影评|他人即地狱努力不一定有回报《鬼才之道》本以为是搞笑喜剧,却在荒诞之中看见了人生的实相。故事中的鬼追求被看见,渴望成为都市传说,映照了人对“成功”的追逐。这部电影不仅讽刺了主流价值,还反思了“努力!的意义--努力不一定有回报”。《鬼才之道》... |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
StreamProfileBench
Streaming user-interest profiling benchmark for Chinese social media platforms. Each task asks an LLM to (a) maintain a rolling persona summary from a stream of a user's posts, and (b) predict which tags from a curated candidate pool the user will engage with in the next time window.
The benchmark evaluates two coupled abilities:
- Plasticity — picking up newly emerging interests (
Recall_Novelty). - Stability — retaining persisting interests (
Recall_Stability).
It also probes robustness against four classes of distractors (peer-cluster, viral, decayed, random), and forward transfer from accumulated personas.
Repository layout
streamprofile_bench_release/
├── bench_inference.py # main runner: inference + scoring (and --reeval)
├── bench_task.py # prompt formatter (PLATFORM_CONTEXT + format_prompt)
├── stats.py # aggregate eval reports across models into Excel
├── sample_subset.py # sample N% of users per platform for cheap dry-runs
├── data/
│ ├── weibo_inference_tasks.jsonl
│ ├── xiaohongshu_inference_tasks.jsonl
│ ├── toutiao_inference_tasks.jsonl
│ ├── zhihu_inference_tasks.jsonl
│ └── douban_inference_tasks.jsonl
├── requirements.txt
├── LICENSE # Apache-2.0
└── README.md
Install
pip install -r requirements.txt
Python 3.9+.
Quick start
export LLM_API_KEY="sk-..."
export LLM_API_BASE="https://api.openai.com/v1" # any OpenAI-compatible endpoint
# Single platform
python bench_inference.py --model gpt-4o-mini --platform weibo
# All five platforms
python bench_inference.py --model gpt-4o-mini
Outputs go to results/<model>/:
inference_results_<platform>.jsonl— per-user, per-step predictions, ground truth, persona summaries, and metrics.eval_report_<platform>.txt— text report (M_bar,F1^NS,FWT, cold-start vs persona-augmented, learning curve).
Re-evaluate without re-running the model
If you change metric definitions or want to recompute scores from saved predictions, no API calls needed:
python bench_inference.py --model gpt-4o-mini --reeval
python bench_inference.py --model gpt-4o-mini --platform weibo --reeval
This rewrites the metrics field in each inference_results_<platform>.jsonl
and produces a fresh eval_report_<platform>.txt.
Cheap dry-run on a 20% subset
python sample_subset.py --ratio 0.2
# produces data/<platform>_inference_tasks_sub20.jsonl
To use the subset, point bench_inference.py at the sub-files (e.g. by
renaming, symlinking, or temporarily editing DATA_DIR).
Aggregate results across models into Excel tables
python stats.py
# writes metric_excels/{Precision,Recall,F1^NS,...}.xlsx
Each Excel file has one row per model, one column per platform (plus an
Avg. column).
Configuration
| Variable | Purpose | Default |
|---|---|---|
LLM_API_KEY |
API key for your LLM provider | (required) |
LLM_API_BASE |
OpenAI-compatible base URL | (required) |
LLM_INSECURE_TLS |
Set 1 to skip TLS verification (e.g. for self-signed dev) |
0 |
BENCH_MAX_WORKERS |
Parallel inference threads | 16 |
--model |
Model name passed to the API | (required) |
--api_url/--api_key |
Override the env vars | unset |
--platform |
One of weibo / xiaohongshu / toutiao / zhihu / douban |
all |
--reeval |
Skip inference; re-score saved predictions | off |
Data format
One JSON object per line in each data/<platform>_inference_tasks.jsonl:
{
"user_id": "we_16d82b9a92",
"platform": "weibo",
"username": "U_010ada10",
"bio": "...",
"total_steps": 4,
"prediction_tasks": [
{
"step_id": 1,
"total_steps": 4,
"date_input": "2025-06-12",
"date_target": "2025-06-17",
"posts_text": "[1] Content: ...\nTags: ...\n[2] ...",
"candidate_pool": ["tag1", "tag2", ...],
"ground_truth": {
"all_tags": ["..."],
"new_tags": ["..."],
"keep_tags": ["..."]
},
"meta": {
"T_keep": ["..."],
"T_new": ["..."],
"D_decay": ["..."],
"D_cluster":["..."],
"D_viral": ["..."],
"D_random": ["..."]
}
}
]
}
Per platform / step the candidate pool is pre-built as
pool_size = clip(|GT|·4, [10, 50]) with the remaining slots filled with
distractors of four types:
- D_decay — tags the user engaged with in the current batch but does not carry forward (interests on the way out).
- D_cluster — tags from the same semantic cluster as the GT (peer-cluster distractors).
- D_viral — tags trending platform-wide on the target date (popular but irrelevant).
- D_random — tags sampled uniformly from the platform's tag vocabulary.
Ground truth is T_new ∪ T_keep, where T_keep = current ∩ future and
T_new = future \ current.
Metrics
| Metric | Definition |
|---|---|
| Precision | ` |
| Recall | ` |
| Recall_Novelty | Recall restricted to T_new (plasticity) |
| Recall_Stability | Recall restricted to T_keep (stability) |
| F1^NS | Harmonic mean of Recall_Novelty and Recall_Stability, per user, then macro-averaged |
| Error_Peer | False-positive rate on D_cluster (lower is better) |
| Error_Viral | False-positive rate on D_viral |
| Error_Decay | False-positive rate on D_decay |
| Error_Random | False-positive rate on D_random |
| FWT | Forward transfer: mean(M_{t≥2}) − M_{t=1}, per metric |
Aggregation in the report:
M_bar— within-user mean across steps, then macro mean across users.- Cold-start vs persona-augmented — same aggregation on
step_id == 1vsstep_id ≥ 2, plus the delta. Quantifies the value of carrying personas. - Learning curve — per
step_idposition, mean across users.
Anonymization notes
This release uses anonymized identifiers:
user_idis a hash prefixed with the platform code (we_weibo,xi_xiaohongshu,to_toutiao,zh_zhihu,do_douban).usernamevalues are replaced with placeholders of the formU_xxxxxxx.- Free-text fields (
bio,posts_text) retain user-generated content as collected; we do not redact post bodies.
If you find any residual PII please open an issue.
Citation
@misc{streamprofilebench2026,
title = {StreamProfileBench: Streaming User-Interest Profiling on Chinese Social Media},
author = {...},
year = {2026},
howpublished = {GitHub},
url = {...}
}
License
Apache License 2.0. See LICENSE.
- Downloads last month
- 30