import streamlit as st from streamlit_option_menu import option_menu import pandas as pd from datetime import datetime import pytz import time # 设置页面标题和大标题 st.set_page_config(page_title="AEOLLM", page_icon="👋", layout="wide") st.title("NTCIR-18 Automatic Evaluation of LLMs (AEOLLM) Task") # 在侧边栏创建导航菜单 with st.sidebar: page = option_menu( "Navigation", ["LeaderBoard", "Introduction", "Methodology", "Datasets", "Important Dates", "Evaluation Metrics", "Submit", "Organisers", "References"], icons=['trophy', 'house', 'book', 'database', 'calendar', 'clipboard', 'upload', 'people', 'book'], menu_icon="cast", default_index=0, styles={ "container": {"padding": "5px"}, "icon": {"color": "orange", "font-size": "18px"}, "nav-link": {"font-size": "16px", "text-align": "left", "margin":"0px", "--hover-color": "#6c757d"}, "nav-link-selected": {"background-color": "#FF6347"}, } ) st.markdown(""" """, unsafe_allow_html=True) # 根据选择的页面展示不同的内容 if page == "Introduction": st.header("Introduction") st.markdown("""
The Automatic Evaluation of LLMs (AEOLLM) task is a new core task in NTCIR-18 to support in-depth research on large language models (LLMs) evaluation.
🔍 As LLMs grow popular in both fields of academia and industry, how to effectively evaluate the capacity of LLMs becomes an increasingly critical but still challenging issue.
⚖️ Existing methods can be divided into two types: manual evaluation, which is expensive, and automatic evaluation, which faces many limitations including the task format (the majority belong to multiple-choice questions) and evaluation criteria (occupied by reference-based metrics).
💡 To advance the innovation of automatic evaluation, we proposed the Automatic Evaluation of LLMs (AEOLLM) task which focuses on generative tasks and encourages reference-free methods. Besides, we set up diverse subtasks such as summary generation, non-factoid question answering, text expansion, and dialogue generation to comprehensively test different methods.
🚀 We believe that the AEOLLM task will facilitate the development of the LLMs community.
First, we choose four subtasks as shown in the table below:
Task | Description | Dataset |
---|---|---|
Summary Generation (SG) | write a summary for the specified text | XSum: over 226k news articles |
Non-Factoid QA (NFQA) | construct long-form answers to open-ended non-factoid questions | NF_CATS: 12k non-factoid questions |
Text Expansion (TE) | given a theme, participants need to generate stories related to the theme | WritingPrompts: 303k story themes |
Dialogue Generation (DG) | generate human-like responses to numerous topics in daily conversation contexts | DailyDialog: 13k daily conversation contexts |
Second, we choose a series of popular LLMs during the competition to generate answers.
Third, we manually annotate the answer sets for each question, which will be used as gold standards for evaluating the performance of different evaluation methods.
Last, we will collect evaluation results from participants and calculate consistency with manually annotated results. We will use Accuracy, Kendall’s tau and Spearman correlation coefficient as the evaluation metrics.
""",unsafe_allow_html=True) elif page == "Datasets": st.header("Answer Generation") st.markdown(""" We randomly sampled **100 instances** from **each** dataset as the question set and selected **7 different LLMs** to generate answers, forming the answer set. As a result, each dataset produced 700 instances, totaling **2,800 instances across the four datasets**. """) st.header("Human Annotation") st.markdown(""" - For each instance (question-answer pair), we employed human annotators to provide a score ranging from 1 to 5 and took the median of these scores as the final score. - Based on this score, we calculated the rankings of the 7 answers for each question. If scores were identical, the answers were assigned the same rank, with the lowest rank being used. """) st.header("Data Acquisition and Usage") st.markdown(""" We divided the 2,800 instances into three parts: 1️⃣ train set: 20% of the data (covering all four datasets) was designated as the training set (including human annotations) for participants to reference when designing their methods. 2️⃣ test set: Another 20% of the data was set aside as the test set (excluding human annotations), used to evaluate the performance of participants' methods and to generate the **leaderboard**. 3️⃣ reserved set: The remaining 60% of the data was reserved for **the final evaluation**. Both the training set and the test set can be downloaded from the provided link: [https://huggingface.co/datasets/THUIR/AEOLLM](https://huggingface.co/datasets/THUIR/AEOLLM). """) st.header("Resources") st.markdown("""A brief description of the specific dataset we used, along with the original download link, is provided below:
1. Summary Generation (SG): Xsum: A real-world single document news summary dataset collected from online articles by the British Broadcasting Corporation (BBC) and contains over 220 thousand news documents.
2. Non-Factoid QA (NFQA): NF_CATS: A dataset contains examples of 12k natural questions divided into eight categories.
3. Text Expansion (TE): WritingPrompts: A large dataset of 300K human-written stories paired with writing prompts from an online forum.
4. Dialogue Generation (DG): DailyDialog: A high-quality dataset of 13k multi-turn dialogues. The language is human-written and less noisy.
""",unsafe_allow_html=True) elif page == "Important Dates": st.header("Important Dates") st.markdown("""All deadlines are at 11:59pm in the Anywhere on Earth (AOE) timezone.
""", unsafe_allow_html=True) col1, col2 = st.columns(2) with col1: st.markdown(""" Kickoff Event:During the Dry run (until Jan 15, 2025), we will use the test set (https://huggingface.co/datasets/THUIR/AEOLLM) to evaluate the performance of participants' methods and release the results on the Leaderboard.
Before the Formal run begins (before Jan 15, 2025), we will release the reserved set. Participants need to submit their results for the reserved set before the Formal run ends (before Feb 1, 2025).
We will be following a similar format as the ones used by most TREC submissions, which is repeated below. White space is used to separate columns. The width of the columns in the format is not important, but it is important to have exactly five columns per line with at least one space between the columns.
taskId questionId answerId score rank
1. the first column is the taskeId (index different tasks)
2. the second column is questionId (index different questions in the same task)
3. the third column is answerId (index the answer provided by different LLMs to the same question)
4. the fourth column is score (index the score to the answer given by participants)
5. the fifth column is rank (index the rank of the answer within all answers to the same question)
""",unsafe_allow_html=True) elif page == "Submit": st.header("File Format") st.markdown(""" We will be following a similar format as the ones used by most **TREC submissions**: 1. White space is used to separate columns. 2. The width of the columns in the format is not important, but it is important to have exactly five columns per line with at least one space between the columns. **taskId questionId answerId score rank** - the first column is the taskeId (index different tasks) - the second column is questionId (index different questions in the same task) - the third column is answerId (index the answer provided by different LLMs to the same question) - the fourth column is score (index the score to the answer given by participants) - the fifth column is rank (index the rank of the answer within all answers to the same question) """) st.header("Submit") st.markdown(""" 📄 Please organize the answers in a **txt** file, name the file as **teamId_methods.txt** and submit it through the link below: [https://forms.gle/vRNxBaNAfYZHMVtr5](https://forms.gle/vRNxBaNAfYZHMVtr5) ⏱️ Each team can submit up to 5 times per day, and only the latest submission will be considered. 🔗 An example of the submission file content is [here](https://huggingface.co/spaces/THUIR/AEOLLM/blob/main/baseline_example/output/baseline1_chatglm3_6B.txt). """) elif page == "LeaderBoard": # # 描述 st.markdown("""🏆 NTCIR-18 Automatic Evaluation Methods of LLMs (AEOLLM) task Leaderboard.
""", unsafe_allow_html=True) df = { "TeamId": ["baseline", "baseline", "baseline", "baseline"], "Methods": ["chatglm3-6b", "baichuan2-13b", "chatglm-pro", "gpt-4o"], "Average (all 4 datatsets)": [], "Average (Dialogue Generation)": [], "Accuracy (Dialogue Generation)": [], "Kendall's Tau (Dialogue Generation)": [], "Spearman (Dialogue Generation)": [], "Average (Text Expansion)": [], "Accuracy (Text Expansion)": [], "Kendall's Tau (Text Expansion)": [], "Spearman (Text Expansion)": [], "Average (Summary Generation)": [], "Accuracy (Summary Generation)": [], "Kendall's Tau (Summary Generation)": [], "Spearman (Summary Generation)": [], "Average (Non-Factoid QA)": [], "Accuracy (Non-Factoid QA)": [], "Kendall's Tau (Non-Factoid QA)": [], "Spearman (Non-Factoid QA)": [], } TeamId = ["baseline", "baseline", "baseline", "baseline", 'ISLab', 'ISLab', 'ISLab', 'ISLab', 'default5', 'default5', 'default5'] Methods = ["chatglm3-6b", "baichuan2-13b", "chatglm-pro", "gpt-4o", "llama3-1_baseline5", "llama3-1_baseline6", "llama3-1-baseline7", "llama3-2-baseline", "llm", "baselinev00", "baselinev02"] # teamId 唯一标识码 DG = { "TeamId": TeamId, "Methods": Methods, "Accuracy": [0.5806, 0.5483, 0.6001, 0.6472, 0, 0, 0, 0, 0.6504481792717087, 0.5816503267973856, 0.631700513538749], "Kendall's Tau": [0.3243, 0.1739, 0.3042, 0.4167, 0, 0, 0, 0, 0.4034134076281578, 0.25873621367415467, 0.38961572200778516], "Spearman": [0.3505, 0.1857, 0.3264, 0.4512, 0, 0, 0, 0, 0.4303514807222638, 0.28208851475394925, 0.4200280894403279], } df1 = pd.DataFrame(DG) TE = { "TeamId": TeamId, "Methods": Methods, "Accuracy": [0.5107, 0.5050, 0.5461, 0.5581, 0.5067545088210725, 0.4766805549971185, 0, 0, 0.511188817632316, 0.5369175431336809, 0.570425718931911], "Kendall's Tau": [0.1281, 0.0635, 0.2716, 0.3864, 0.18884532500063825, 0.31629653258509166, 0, 0, 0.10828008098753536, 0.26854542496891, 0.42340286124586973], "Spearman": [0.1352, 0.0667, 0.2867, 0.4157, 0.2033137543983765, 0.35189638758373964, 0, 0, 0.11421806788123415, 0.2820788649343955, 0.44950359766748854], } df2 = pd.DataFrame(TE) SG = { "TeamId": TeamId, "Methods": Methods, "Accuracy": [0.6504, 0.6014, 0.7162, 0.7441, 0.7518953983108395, 0.7870818213649097, 0.6187623875307698, 0.8003185213479332, 0.7007955341227401, 0.7519048414820473, 0.7477385992275697], "Kendall's Tau": [0.3957, 0.2688, 0.5092, 0.5001, 0.5377072309689559, 0.5709963447418871, 0.30897221697376714, 0.6064826537169805, 0.4819411311747811, 0.4874144871543796, 0.49885108461595573], "Spearman": [0.4188, 0.2817, 0.5403, 0.5405, 0.5830423197486431, 0.6276373633425562, 0.324348752437819, 0.6664032039425867, 0.5076789062134682, 0.539580429716673, 0.5603311161969196], } df3 = pd.DataFrame(SG) NFQA = { "TeamId": TeamId, "Methods": Methods, "Accuracy": [0.5935, 0.5817, 0.7000, 0.7203, 0, 0, 0, 0, 0.5922294372294372, 0.7146378968253966, 0.7215900072150073], "Kendall's Tau": [0.2332, 0.2389, 0.4440, 0.4235, 0, 0, 0, 0, 0.1701874070113157, 0.44019963513470517, 0.49445393416475697], "Spearman": [0.2443, 0.2492, 0.4630, 0.4511, 0, 0, 0, 0, 0.18058287732894646, 0.4592548426675891, 0.5214865171404164], } df4 = pd.DataFrame(NFQA) OverAll = { "TeamId": TeamId, "Methods": Methods, "Accuracy": [], "Kendall's Tau": [], "Spearman": [] } data = [DG, NFQA, SG, TE] task = ["Dialogue Generation", "Non-Factoid QA", "Summary Generation", "Text Expansion"] metric = ["Accuracy", "Kendall's Tau", "Spearman"] for m in metric: # 每个指标 metric_score = [0] * len(TeamId) for j in range(len(TeamId)): # 每支队伍 for d in data: metric_score[j] += d[m][j] metric_score = [k / len(task) for k in metric_score] OverAll[m] = metric_score dfo = pd.DataFrame(OverAll) df = [df1, df2, df3, df4, dfo] for d in df: for col in d.select_dtypes(include=['float64', 'int64']).columns: d[col] = d[col].apply(lambda x: f"{x:.4f}") # # 创建标签页 # tab1, tab2, tab3, tab4 = st.tabs(["DG", "TE", "SG", "NFQA"]) # with tab1: # st.markdown("""Task: Dialogue Generation; Dataset: DialyDialog
""", unsafe_allow_html=True) # st.dataframe(df1, use_container_width=True) # with tab2: # st.markdown("""Task: Text Expansion; Dataset: WritingPrompts
""", unsafe_allow_html=True) # st.dataframe(df2, use_container_width=True) # with tab3: # st.markdown("""Task: Summary Generation; Dataset: Xsum
""", unsafe_allow_html=True) # st.dataframe(df3, use_container_width=True) # with tab4: # st.markdown("""Task: Non-Factoid QA; Dataset: NF_CATS
""", unsafe_allow_html=True) # st.dataframe(df4, use_container_width=True) st.markdown("""Overall: The average across all four tasks
""", unsafe_allow_html=True) st.dataframe(dfo, use_container_width=True) st.markdown("""Task: Dialogue Generation; Dataset: DialyDialog
""", unsafe_allow_html=True) st.dataframe(df1, use_container_width=True) st.markdown("""Task: Text Expansion; Dataset: WritingPrompts
""", unsafe_allow_html=True) st.dataframe(df2, use_container_width=True) st.markdown("""Task: Summary Generation; Dataset: Xsum
""", unsafe_allow_html=True) st.dataframe(df3, use_container_width=True) st.markdown("""Task: Non-Factoid QA; Dataset: NF_CATS
""", unsafe_allow_html=True) st.dataframe(df4, use_container_width=True) # data = [DG, NFQA, SG, TE] # task = ["Dialogue Generation", "Non-Factoid QA", "Summary Generation", "Text Expansion"] # metric = ["Accuracy", "Kendall's Tau", "Spearman"] # overall_total = [0] * len(df["TeamId"]) # for i, d in enumerate(data): # 每种数据集 # total = [0] * len(df["TeamId"]) # 长度初始化为方法数 # for j in range(len(metric)): # 每种指标 # index = f"{metric[j]} ({task[i]})" # df[index] = d[metric[j]] # for k in range(len(df["TeamId"])): # total[k] += d[metric[j]][k] # average_index = f"Average ({task[i]})" # df[average_index] = [k / len(metric) for k in total] # for k in range(len(df["TeamId"])): # overall_total[k] += df[average_index][k] # df["Average (all 4 datatsets)"] = [k / len(task) for k in overall_total] # df = pd.DataFrame(df) # for col in df.select_dtypes(include=['float64', 'int64']).columns: # df[col] = df[col].apply(lambda x: f"{x:.4f}") # st.dataframe(df,use_container_width=True) st.markdown(""" 🔗 To register for AEOLLM task, you can visit the following link and choose our AEOLLM task: [https://research.nii.ac.jp/ntcir/ntcir-18/howto.html](https://research.nii.ac.jp/ntcir/ntcir-18/howto.html). 📃 To submit, refer to the "Submit" section in the left-hand navigation bar.🤗 A baseline example can be found in the [baseline_example](https://huggingface.co/spaces/THUIR/AEOLLM/tree/main/baseline_example) folder. 📝 Refer to other sections in the navigation bar for details on evaluation metrics, datasets, important dates and methodology. 🕒 The Leaderboard will be updated daily around 24:00 Beijing Time. """) # # 获取北京时间 # time_placeholder = st.empty() # beijing_tz = pytz.timezone('Asia/Shanghai') # beijing_time = datetime.now(beijing_tz) # while True: # # 获取当前的北京时间 # beijing_time = datetime.now(beijing_tz) # # 在页面上动态显示当前北京时间 # time_placeholder.write("Current Beijing Time: " + beijing_time.strftime('%Y-%m-%d %H:%M:%S')) # # 设置更新频率为每秒钟一次 # time.sleep(1) elif page == "Organisers": st.header("Organisers") st.markdown("""
Yiqun Liu [yiqunliu@tsinghua.edu.cn] (Tsinghua University)
Qingyao Ai [aiqy@tsinghua.edu.cn] (Tsinghua University)
Junjie Chen [chenjj826@gmail.com] (Tsinghua University)
Zhumin Chu [chuzm19@mails.tsinghua.edu.cn] (Tsinghua University)
Haitao Li [liht22@mails.tsinghua.edu.cn] (Tsinghua University)
Please feel free to contact us! 😉
[1] Mao R, Chen G, Zhang X, et al. GPTEval: A survey on assessments of ChatGPT and GPT-4. pdf
[2] Chang Y, Wang X, Wang J, et al. A survey on evaluation of large language models. pdf
[3] Chan C M, Chen W, Su Y, et al. Chateval: Towards better llm-based evaluators through multi-agent debate. pdf
[4] Li R, Patel T, Du X. Prd: Peer rank and discussion improve large language model based evaluations. pdf
[5] Chu Z, Ai Q, Tu Y, et al. Pre: A peer review based large language model evaluator. pdf