import pandas as pd import gradio as gr import plotly.express as px import plotly.graph_objects as go explanation_data = { "Accuracy Scores (rename for clarity)": [ "b4bqa", "b4b", "medmcqa_g2b", "medmcqa_orig_filtered", "medmcqa_diff", "medqa_4options_g2b", "medqa_4options_orig_filtered", "medqa_diff" ], "Description": [ "Model accuracy on the B4BQA task.", "Average model accuracy on tasks where generic drug names are substituted with brand names.", "Model accuracy on MedMCQA task where generic drug names are substituted with brand names.", "Model accuracy on MedMCQA task with original data. (Only includes questions that overlap with the g2b dataset)", "Difference in MedMCQA accuracy for swapped and non-swapped datasets, highlighting the impact of G2B drug name substitution on performance.", "Model accuracy on MedQA (4 options) task where generic drug names are substituted with brand names.", "Model accuracy on MedQA (4 options) task with original data. (Only includes questions that overlap with the g2b dataset)", "Difference in MedMCQA accuracy for swapped and non-swapped datasets, highlighting the impact of G2B drug name substitution on performance." ] } explanation_df = pd.DataFrame(explanation_data) df = pd.read_csv("data/csv/models_data.csv") filter_mapping = { "all": "all", "🟢 Pre-trained": "🟢", "🟩 Continuously pre-trained": "🟩", "🔶 Fine-tuned on domain-specific data": "🔶", "💬 Chat-models (RLHF, DPO, IFT, ...)": "💬" } def filter_items(df, query): if query == "all": return df filter_value = filter_mapping[query] return df[df["T"].str.contains(filter_value, na=False)] def create_scatter_plot(df, x_col, y_col, title, x_title, y_title): fig = px.scatter(df, x=x_col, y=y_col, color='Model', title=title) fig.add_trace( go.Scatter( x=[0, 100], y=[0, 100], mode="lines", name="y=x line", line=dict(color='black', dash='dash') ) ) fig.update_layout( xaxis_title=x_title, yaxis_title=y_title, xaxis=dict(range=[0, 100]), yaxis=dict(range=[0, 100]), legend_title_text='Model' ) fig.update_traces(marker=dict(size=10), selector=dict(mode='markers')) return fig with gr.Blocks(css="custom.css") as demo: with gr.Column(): gr.Markdown( """
Robust language models are crucial in the medical domain and the RABBITS project tests the robustness of LLMs by evaluating their handling of synonyms, specifically brand and generic drug names. We assessed 16 open-source language models from Hugging Face using systematic synonym substitution on MedQA and MedMCQA tasks. Our results show a consistent decline in performance across all model sizes, highlighting challenges in synonym comprehension. Additionally, we discovered significant dataset contamination by identifying overlaps between MedQA, MedMCQA test sets, and the Dolma 1.6 dataset using an 8-gram analysis. This highlights the need to improve model robustness and address contamination in open-source datasets.
This leaderboard ...
It is designed to ...
If you have new model results that you would like to add to the leaderboard, please follow the submission guidelines below:
COMING SOON