diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..4edd5acb13dba6a9f44a206fa1b6a1789fbcc50a --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.bin filter=lfs diff=lfs merge=lfs -text diff --git a/Initialization/CommonPool/BioClinicalModernBERT-large-ViT-L-14-commonpool-vision-longtext.json b/Initialization/CommonPool/BioClinicalModernBERT-large-ViT-L-14-commonpool-vision-longtext.json new file mode 100644 index 0000000000000000000000000000000000000000..a998c495d345576ba1ff9ae26fce54a72d214a6a --- /dev/null +++ b/Initialization/CommonPool/BioClinicalModernBERT-large-ViT-L-14-commonpool-vision-longtext.json @@ -0,0 +1,15 @@ +{ + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "layers": 24, + "width": 1024, + "patch_size": 14 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } +} diff --git a/Initialization/CommonPool/manifest.json b/Initialization/CommonPool/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..4fda44aa7d8e1b48fb58e246d6f87dfb49958f24 --- /dev/null +++ b/Initialization/CommonPool/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "CommonPool", + "paper_location": "Main results / Table 5", + "architecture": "BioClinicalModernBERT-large-ViT-L-14-commonpool-vision-longtext", + "checkpoint": "Initialization/CommonPool/open_clip_pytorch_model.bin", + "sha256": "65e2791e76ae16ce06dc2d020d1b097d8321a26571017236703388c236199e03", + "bytes": 1816825530, + "paper_metrics_percent": { + "zero_shot": 53.66, + "bioloombench": 61.53, + "biomedflickr": 10.69 + }, + "results": { + "zero_shot": "Initialization/CommonPool/results/zero-shot.json", + "biomedflickr": "Initialization/CommonPool/results/biomedflickr-retrieval.json", + "bioloombench": "Initialization/CommonPool/results/bioloom-retrieval.json" + }, + "config": "Initialization/CommonPool/open_clip_config.json" +} diff --git a/Initialization/CommonPool/open_clip_config.json b/Initialization/CommonPool/open_clip_config.json new file mode 100644 index 0000000000000000000000000000000000000000..75e688b5bb83fdb4047465c78b4161a710df7d48 --- /dev/null +++ b/Initialization/CommonPool/open_clip_config.json @@ -0,0 +1,17 @@ +{ + "model_cfg": { + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "layers": 24, + "width": 1024, + "patch_size": 14 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } +} diff --git a/Initialization/CommonPool/open_clip_pytorch_model.bin b/Initialization/CommonPool/open_clip_pytorch_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..568e946cac1c6a6e3d57b40f0a212e5103c1f8a7 --- /dev/null +++ b/Initialization/CommonPool/open_clip_pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65e2791e76ae16ce06dc2d020d1b097d8321a26571017236703388c236199e03 +size 1816825530 diff --git a/Initialization/CommonPool/results/bioloom-retrieval.json b/Initialization/CommonPool/results/bioloom-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..fdf4366647cad5c722772513adc5abdbf872a09f --- /dev/null +++ b/Initialization/CommonPool/results/bioloom-retrieval.json @@ -0,0 +1,447 @@ +{ + "benchmark": "BioLoomBench", + "split": "all", + "model": "CommonPool", + "protocol": { + "concise_caption": "concise visual caption at native context", + "source_caption_native": "original source caption at native context", + "source_caption_cap77": "original source caption capped at 77 tokens; shorter native limits are retained", + "native_context_length": 512, + "cap77_effective_context_length": 77, + "retrieval_directions": [ + "image_to_text", + "text_to_image" + ], + "recall_k": [ + 1, + 5, + 10, + 100 + ] + }, + "tracks": { + "concise_caption": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 73.94496183996833, + "R@5": 91.25598513036978, + "R@10": 94.38521004732576, + "R@100": 99.58233341683174 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 72.75905984394163, + "bioRxiv": 75.13086383599503 + }, + "R@5": { + "Europe PMC OA": 90.26073134115109, + "bioRxiv": 92.25123891958847 + }, + "R@10": { + "Europe PMC OA": 94.4340353185032, + "bioRxiv": 94.33638477614832 + }, + "R@100": { + "Europe PMC OA": 99.5331741081997, + "bioRxiv": 99.63149272546379 + } + }, + "R@1": 65.01333333333334, + "R@5": 86.78, + "R@10": 91.86, + "R@100": 99.12666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 62.66321140237218, + "bioRxiv": 69.76041876384134 + }, + "domain": { + "bioengineering": 73.1, + "cell_molecular": 63.4, + "cytology_hematology": 56.3, + "dermatology": 59.0, + "development_anatomy": 68.2, + "genetics_genomics": 67.2, + "histopathology": 58.099999999999994, + "microbiology_immunology": 67.5, + "molecular_structure": 59.9, + "neuroscience": 71.5, + "ophthalmology": 56.599999999999994, + "physiology_pharmacology": 68.5, + "plant_ecology": 69.69999999999999, + "radiology": 71.2, + "surgery_endoscopy": 65.0 + }, + "content_type": { + "bioimage_only": 61.96363636363637, + "chart_only": 71.13333333333334, + "mixed_bio_chart": 62.090909090909086, + "schematic_or_diagram": 74.48 + }, + "layout": { + "multi_panel": 63.25925925925926, + "single_panel": 69.52380952380952 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 68.7057101312905, + "R@5": 88.11617672721363, + "R@10": 92.72968028402587, + "R@100": 99.08671395586848 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 65.88229667293078, + "bioRxiv": 71.52912358965023 + }, + "R@5": { + "Europe PMC OA": 86.77948967749927, + "bioRxiv": 89.45286377692797 + }, + "R@10": { + "Europe PMC OA": 91.66236219575184, + "bioRxiv": 93.7969983722999 + }, + "R@100": { + "Europe PMC OA": 98.94664849441607, + "bioRxiv": 99.22677941732087 + } + }, + "R@1": 58.04666666666667, + "R@5": 81.54, + "R@10": 87.87333333333333, + "R@100": 98.24666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 55.27758397288947, + "bioRxiv": 63.64002415945239 + }, + "domain": { + "bioengineering": 66.2, + "cell_molecular": 56.49999999999999, + "cytology_hematology": 49.7, + "dermatology": 51.6, + "development_anatomy": 58.9, + "genetics_genomics": 60.199999999999996, + "histopathology": 52.1, + "microbiology_immunology": 60.0, + "molecular_structure": 50.4, + "neuroscience": 63.2, + "ophthalmology": 48.1, + "physiology_pharmacology": 62.7, + "plant_ecology": 64.5, + "radiology": 66.0, + "surgery_endoscopy": 60.6 + }, + "content_type": { + "bioimage_only": 55.90909090909091, + "chart_only": 64.13333333333333, + "mixed_bio_chart": 52.872727272727275, + "schematic_or_diagram": 70.48 + }, + "layout": { + "multi_panel": 54.462962962962955, + "single_panel": 67.26190476190477 + } + } + }, + "mean_recall": { + "R@1": 61.53, + "R@5": 84.16, + "R@10": 89.86666666666667, + "R@100": 98.68666666666667 + }, + "mean_hierarchical_macro": { + "R@1": 71.32533598562941, + "R@5": 89.68608092879171, + "R@10": 93.55744516567582, + "R@100": 99.33452368635011 + } + }, + "source_caption_native": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 81.0365740688006, + "R@5": 90.44450339753567, + "R@10": 95.1461396709857, + "R@100": 98.76849949251606 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 86.75044113456791, + "bioRxiv": 75.3227070030333 + }, + "R@5": { + "Europe PMC OA": 95.2183081539539, + "bioRxiv": 85.67069864111745 + }, + "R@10": { + "Europe PMC OA": 97.39981511742862, + "bioRxiv": 92.89246422454279 + }, + "R@100": { + "Europe PMC OA": 99.52621856393154, + "bioRxiv": 98.01078042110058 + } + }, + "R@1": 80.00666666666667, + "R@5": 92.22, + "R@10": 94.81333333333333, + "R@100": 98.52, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 82.88647463370876, + "bioRxiv": 74.18965170122812 + }, + "domain": { + "bioengineering": 84.5, + "cell_molecular": 83.39999999999999, + "cytology_hematology": 79.3, + "dermatology": 68.8, + "development_anatomy": 85.7, + "genetics_genomics": 68.8, + "histopathology": 86.0, + "microbiology_immunology": 78.3, + "molecular_structure": 86.9, + "neuroscience": 84.39999999999999, + "ophthalmology": 75.8, + "physiology_pharmacology": 84.6, + "plant_ecology": 77.3, + "radiology": 80.9, + "surgery_endoscopy": 75.4 + }, + "content_type": { + "bioimage_only": 76.12727272727273, + "chart_only": 64.53333333333333, + "mixed_bio_chart": 86.83636363636363, + "schematic_or_diagram": 82.8 + }, + "layout": { + "multi_panel": 85.11111111111111, + "single_panel": 66.88095238095238 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 79.08354889207146, + "R@5": 90.21032476160204, + "R@10": 94.69619021674268, + "R@100": 98.68689889335678 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 83.84412859541423, + "bioRxiv": 74.3229691887287 + }, + "R@5": { + "Europe PMC OA": 94.62099837757097, + "bioRxiv": 85.79965114563312 + }, + "R@10": { + "Europe PMC OA": 97.03138161580736, + "bioRxiv": 92.36099881767798 + }, + "R@100": { + "Europe PMC OA": 99.56911954088852, + "bioRxiv": 97.80467824582504 + } + }, + "R@1": 78.71333333333334, + "R@5": 91.68666666666667, + "R@10": 94.46, + "R@100": 98.48, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 81.60071763181502, + "bioRxiv": 72.8810146970002 + }, + "domain": { + "bioengineering": 82.3, + "cell_molecular": 82.5, + "cytology_hematology": 79.4, + "dermatology": 68.60000000000001, + "development_anatomy": 83.7, + "genetics_genomics": 68.5, + "histopathology": 86.0, + "microbiology_immunology": 75.2, + "molecular_structure": 85.2, + "neuroscience": 83.1, + "ophthalmology": 75.7, + "physiology_pharmacology": 83.2, + "plant_ecology": 74.9, + "radiology": 81.3, + "surgery_endoscopy": 71.1 + }, + "content_type": { + "bioimage_only": 75.32727272727273, + "chart_only": 60.8, + "mixed_bio_chart": 85.41818181818182, + "schematic_or_diagram": 82.16 + }, + "layout": { + "multi_panel": 84.01851851851852, + "single_panel": 65.07142857142857 + } + } + }, + "mean_recall": { + "R@1": 79.36000000000001, + "R@5": 91.95333333333333, + "R@10": 94.63666666666666, + "R@100": 98.5 + }, + "mean_hierarchical_macro": { + "R@1": 80.06006148043603, + "R@5": 90.32741407956885, + "R@10": 94.9211649438642, + "R@100": 98.72769919293643 + } + }, + "source_caption_cap77": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 67.34154381548036, + "R@5": 84.23701177980672, + "R@10": 90.58059699775932, + "R@100": 97.32745288255444 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 73.57164645938703, + "bioRxiv": 61.11144117157371 + }, + "R@5": { + "Europe PMC OA": 90.10726501553889, + "bioRxiv": 78.36675854407454 + }, + "R@10": { + "Europe PMC OA": 94.17275123793226, + "bioRxiv": 86.98844275758637 + }, + "R@100": { + "Europe PMC OA": 99.02870355918286, + "bioRxiv": 95.62620220592602 + } + }, + "R@1": 64.46666666666667, + "R@5": 83.78, + "R@10": 88.72666666666666, + "R@100": 97.04666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 67.23811422306389, + "bioRxiv": 58.868532313267565 + }, + "domain": { + "bioengineering": 69.3, + "cell_molecular": 64.3, + "cytology_hematology": 61.9, + "dermatology": 58.3, + "development_anatomy": 69.5, + "genetics_genomics": 55.800000000000004, + "histopathology": 67.2, + "microbiology_immunology": 60.3, + "molecular_structure": 61.199999999999996, + "neuroscience": 66.60000000000001, + "ophthalmology": 59.199999999999996, + "physiology_pharmacology": 73.5, + "plant_ecology": 61.9, + "radiology": 70.89999999999999, + "surgery_endoscopy": 67.10000000000001 + }, + "content_type": { + "bioimage_only": 63.29090909090909, + "chart_only": 56.06666666666666, + "mixed_bio_chart": 64.52727272727272, + "schematic_or_diagram": 71.96000000000001 + }, + "layout": { + "multi_panel": 65.70370370370371, + "single_panel": 61.285714285714285 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 66.19389051449022, + "R@5": 83.57186553740158, + "R@10": 89.90517842336995, + "R@100": 97.14363283731771 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 71.81926387838439, + "bioRxiv": 60.568517150596044 + }, + "R@5": { + "Europe PMC OA": 89.20131303296749, + "bioRxiv": 77.94241804183567 + }, + "R@10": { + "Europe PMC OA": 93.7164379982334, + "bioRxiv": 86.09391884850649 + }, + "R@100": { + "Europe PMC OA": 98.98874441125022, + "bioRxiv": 95.2985212633852 + } + }, + "R@1": 62.133333333333326, + "R@5": 82.64, + "R@10": 87.90666666666667, + "R@100": 96.78666666666666, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 65.04535034386525, + "bioRxiv": 56.251258304811756 + }, + "domain": { + "bioengineering": 66.9, + "cell_molecular": 60.9, + "cytology_hematology": 57.699999999999996, + "dermatology": 57.8, + "development_anatomy": 66.4, + "genetics_genomics": 55.1, + "histopathology": 65.7, + "microbiology_immunology": 56.3, + "molecular_structure": 59.8, + "neuroscience": 63.6, + "ophthalmology": 59.5, + "physiology_pharmacology": 69.8, + "plant_ecology": 58.5, + "radiology": 71.8, + "surgery_endoscopy": 62.2 + }, + "content_type": { + "bioimage_only": 62.29090909090908, + "chart_only": 52.06666666666667, + "mixed_bio_chart": 59.945454545454545, + "schematic_or_diagram": 72.64 + }, + "layout": { + "multi_panel": 62.93518518518518, + "single_panel": 60.07142857142858 + } + } + }, + "mean_recall": { + "R@1": 63.3, + "R@5": 83.21000000000001, + "R@10": 88.31666666666666, + "R@100": 96.91666666666666 + }, + "mean_hierarchical_macro": { + "R@1": 66.7677171649853, + "R@5": 83.90443865860415, + "R@10": 90.24288771056463, + "R@100": 97.23554285993607 + } + } + } +} diff --git a/Initialization/CommonPool/results/biomedflickr-retrieval.json b/Initialization/CommonPool/results/biomedflickr-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..c6a3cc0a69a81a650e21de3b7645970fbff08666 --- /dev/null +++ b/Initialization/CommonPool/results/biomedflickr-retrieval.json @@ -0,0 +1,43 @@ +{ + "benchmark": "BioMedFlickr", + "num_pairs": 7185, + "units": "percent", + "revised_same_caption": { + "n_unique_captions": 4281, + "image_to_text": { + "R@1": 9.547668695449829, + "R@5": 19.540709257125854, + "R@10": 25.247040390968323, + "R@100": 50.271397829055786, + "R@1000": 82.08767771720886 + }, + "text_to_image": { + "R@1": 11.830200999975204, + "R@5": 24.954766035079956, + "R@10": 32.818371057510376, + "R@100": 66.58315658569336, + "R@1000": 92.41474866867065 + } + }, + "exact_pair": { + "image_to_text": { + "R@1": 8.239387613082812, + "R@5": 18.14892136395268, + "R@10": 23.952679192762698, + "R@100": 49.81210855949896, + "R@1000": 82.03201113430758, + "mean_rank": 582.7376478775226, + "median_rank": 103.0 + }, + "text_to_image": { + "R@1": 7.89144050104384, + "R@5": 17.745302713987474, + "R@10": 24.175365344467643, + "R@100": 51.06471816283925, + "R@1000": 83.13152400835074, + "mean_rank": 537.9846903270703, + "median_rank": 92.0 + } + }, + "model": "CommonPool" +} diff --git a/Initialization/CommonPool/results/zero-shot.json b/Initialization/CommonPool/results/zero-shot.json new file mode 100644 index 0000000000000000000000000000000000000000..508a0b2c3b94cf544168cfe6fe0620b85b5dba2f --- /dev/null +++ b/Initialization/CommonPool/results/zero-shot.json @@ -0,0 +1,679 @@ +{ + "model": "CommonPool", + "source_count": 43, + "logical_tasks": 67, + "domain_count": 10, + "tasks": [ + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "contour", + "accuracy": 0.39666666666666667, + "macro_f1": 0.2947119727607533, + "auc": 0.7172972222222223, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "texture", + "accuracy": 0.3333333333333333, + "macro_f1": 0.16729401923881224, + "auc": 0.6403324074074074, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "eccentricity", + "accuracy": 0.47333333333333333, + "macro_f1": 0.37491565350257633, + "auc": 0.7629435185185186, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "brightfield", + "accuracy": 0.14131897711978467, + "macro_f1": 0.14141053237197562, + "auc": 0.6275279911746965, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "darkfield", + "accuracy": 0.24764468371467024, + "macro_f1": 0.14211657739590491, + "auc": 0.709035248682635, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "epifluorescence", + "accuracy": 0.0955585464333782, + "macro_f1": 0.12807463789365986, + "auc": 0.5797728100222987, + "n": 743 + }, + { + "domain": "structure_profiling", + "dataset_id": "nirschl_unpub_fluorescence", + "task_id": "structure_identification", + "accuracy": 0.8222698072805139, + "macro_f1": 0.7768505269004267, + "auc": 0.9770566145014192, + "n": 934 + }, + { + "domain": "structure_profiling", + "dataset_id": "empiar_sbfsem", + "task_id": "structure_identification", + "accuracy": 0.7227036395147314, + "macro_f1": 0.7059470641003396, + "auc": 0.9563474494561902, + "n": 577 + }, + { + "domain": "structure_profiling", + "dataset_id": "icpr2020_pollen", + "task_id": "pollen_classification", + "accuracy": 0.13428571428571429, + "macro_f1": 0.08161444596575089, + "auc": 0.5986229591836735, + "n": 700 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "domain", + "accuracy": 0.5154490326306671, + "macro_f1": 0.2724473718522002, + "auc": 0.8685322774841233, + "n": 17315 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "modality", + "accuracy": 0.8790252393385553, + "macro_f1": 0.6253344054329634, + "auc": 0.9694227267918547, + "n": 17235 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "stain", + "accuracy": 0.41484601210844957, + "macro_f1": 0.11482377942725155, + "auc": 0.790688711869052, + "n": 15196 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "submodality", + "accuracy": 0.2473455178416014, + "macro_f1": 0.19960011030605354, + "auc": 0.6829377604033191, + "n": 17235 + }, + { + "domain": "cytology", + "dataset_id": "acevedo_et_al_2020", + "task_id": "cell_type", + "accuracy": 0.658125, + "macro_f1": 0.6578632927322436, + "auc": 0.91529625, + "n": 1600 + }, + { + "domain": "cytology", + "dataset_id": "jung_et_al_2022", + "task_id": "cell_type", + "accuracy": 0.652, + "macro_f1": 0.6340813842067821, + "auc": 0.9208192000000001, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "hussain_et_al_2019", + "task_id": "cell_type", + "accuracy": 0.6373056994818653, + "macro_f1": 0.36531135531135533, + "auc": 0.8936548632178045, + "n": 193 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2016", + "task_id": "tissue_classification", + "accuracy": 0.574, + "macro_f1": 0.48477505072661425, + "auc": 0.8857298, + "n": 1000 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2018_val7k", + "task_id": "tissue_classification", + "accuracy": 0.7207001522070016, + "macro_f1": 0.6989548045430014, + "auc": 0.9476052880928717, + "n": 1314 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "colon_tissue", + "accuracy": 0.9564343163538874, + "macro_f1": 0.9563565014097057, + "auc": 0.9983648268872772, + "n": 1492 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "lung_tissue", + "accuracy": 0.9105403011514615, + "macro_f1": 0.9098835811121438, + "auc": 0.9887748250465602, + "n": 2258 + }, + { + "domain": "histopathology", + "dataset_id": "patchcamelyon", + "task_id": "metastasis", + "accuracy": 0.745941162109375, + "macro_f1": 0.7303429598169863, + "auc": 0.921223164126035, + "n": 32768 + }, + { + "domain": "histopathology", + "dataset_id": "tang_et_al_2019", + "task_id": "tissue_classification", + "accuracy": 0.4908350305498982, + "macro_f1": 0.3813183657595248, + "auc": 0.7770334451906207, + "n": 491 + }, + { + "domain": "histopathology", + "dataset_id": "wong_et_al_2022", + "task_id": "tissue_classification", + "accuracy": 0.3075, + "macro_f1": 0.23662566718617986, + "auc": 0.698240625, + "n": 800 + }, + { + "domain": "histopathology", + "dataset_id": "nirschl_et_al_2018", + "task_id": "tissue_classification", + "accuracy": 0.5825, + "macro_f1": 0.33494609965198197, + "auc": 0.81594375, + "n": 400 + }, + { + "domain": "histopathology", + "dataset_id": "wu_et_al_2023", + "task_id": "tissue_classification", + "accuracy": 0.68359375, + "macro_f1": 0.4060324825986079, + "auc": 0.8720321655273438, + "n": 256 + }, + { + "domain": "radiology", + "dataset_id": "chexpert", + "task_id": "chest_finding", + "accuracy": 0.3974358974358974, + "macro_f1": 0.23148369822470558, + "auc": 0.612645863902128, + "n": 234 + }, + { + "domain": "radiology", + "dataset_id": "pneumoniamnist", + "task_id": "pneumonia", + "accuracy": 0.8301282051282052, + "macro_f1": 0.7963922920642739, + "auc": 0.9729125575279421, + "n": 624 + }, + { + "domain": "radiology", + "dataset_id": "chestmnist", + "task_id": "multilabel_chest_findings", + "protocol": "medpmc", + "sample_count": "22433", + "split": "test", + "source_key": "medpmc_medmnist", + "accuracy": 0.8451038330011271, + "macro_f1": 0.17225889694752877, + "auc": 0.7140083997697175, + "n": 22433 + }, + { + "domain": "radiology", + "dataset_id": "rsna_pneumonia", + "task_id": "pneumonia", + "protocol": "medpmc", + "sample_count": "26684", + "split": "stage_2_train", + "source_key": "rsna_complete", + "accuracy": 0.7278893719082596, + "macro_f1": 0.6953480936032244, + "auc": 0.8730263447563078, + "n": 26684 + }, + { + "domain": "radiology", + "dataset_id": "breastmnist", + "task_id": "breast_ultrasound", + "accuracy": 0.8205128205128205, + "macro_f1": 0.7868436463009956, + "auc": 0.8418964076858814, + "n": 156 + }, + { + "domain": "ophthalmology", + "dataset_id": "retinamnist", + "task_id": "dr_severity", + "accuracy": 0.46, + "macro_f1": 0.37860644486779627, + "auc": 0.7630089587824707, + "n": 400 + }, + { + "domain": "ophthalmology", + "dataset_id": "deepdrid", + "task_id": "dr_severity", + "protocol": "medpmc", + "sample_count": "400", + "split": "challenge_evaluation", + "source_key": "deepdrid_official", + "accuracy": 0.5775, + "macro_f1": 0.48167991856665926, + "auc": 0.7880637347276884, + "n": 400 + }, + { + "domain": "dermatology", + "dataset_id": "dermamnist", + "task_id": "skin_lesion", + "accuracy": 0.44089775561097255, + "macro_f1": 0.32975349463360454, + "auc": 0.8121561431069538, + "n": 2005 + }, + { + "domain": "dermatology", + "dataset_id": "ham10000", + "task_id": "skin_lesion", + "protocol": "medpmc", + "sample_count": "1512", + "split": "isic2018_task3_test", + "source_key": "ham10000_official", + "accuracy": 0.4834656084656085, + "macro_f1": 0.3969176314214065, + "auc": 0.8180945956432966, + "n": 1512 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "abdominal_wall_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5101971447994561, + "macro_f1": 0.42872962735831066, + "auc": 0.5165228448020389, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "colon_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7022433718558804, + "macro_f1": 0.6924881049371492, + "auc": 0.7620276842499065, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "inferior_mesenteric_artery_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.4493541808293678, + "macro_f1": 0.3879287095755091, + "auc": 0.5690030892654648, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "intestinal_veins_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7420122365737594, + "macro_f1": 0.5577528394310107, + "auc": 0.7009342203838052, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "liver_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.6135282121006118, + "macro_f1": 0.49506629619672565, + "auc": 0.6457864848827072, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "pancreas_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.30727396329027873, + "macro_f1": 0.30619534482431426, + "auc": 0.6299356191836554, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "small_intestine_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7185588035350102, + "macro_f1": 0.6794169436921109, + "auc": 0.7493704116116169, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "spleen_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.721617946974847, + "macro_f1": 0.5213509059973718, + "auc": 0.6386248264606449, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "stomach_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.39666893269884435, + "macro_f1": 0.3964579982360839, + "auc": 0.6056703285080556, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "ureter_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.748130523453433, + "macro_f1": 0.463434012279361, + "auc": 0.41768738977072306, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "vesicular_glands_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.9065261726716519, + "macro_f1": 0.4861357318111866, + "auc": 0.6231054977711739, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "multilabel_anatomy", + "protocol": "medpmc_public_variant", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7852141400407886, + "macro_f1": 0.27226060282211806, + "auc": 0.6883729189728764, + "n": 2942 + }, + { + "domain": "ophthalmology", + "dataset_id": "octmnist", + "task_id": "octmnist", + "accuracy": 0.498, + "macro_f1": 0.4844920852561656, + "auc": 0.785536, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "tissuemnist", + "task_id": "tissuemnist", + "accuracy": 0.06918358714043993, + "macro_f1": 0.0538580093185, + "auc": 0.5015491555427113, + "n": 47280 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organamnist", + "accuracy": 0.19377882776465294, + "macro_f1": 0.14559764530756567, + "auc": 0.6994542727044226, + "n": 17778 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organcmnist", + "accuracy": 0.09128529698149951, + "macro_f1": 0.052906981597675845, + "auc": 0.5652073131399903, + "n": 8216 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organsmnist", + "accuracy": 0.11442166081341339, + "macro_f1": 0.10114673560657893, + "auc": 0.5999226927888505, + "n": 8827 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "coos7", + "task_id": "subcellular_localization", + "accuracy": 0.40531819729846924, + "macro_f1": 0.35494403245200123, + "auc": 0.8708701047022429, + "n": 90753, + "aggregation": "unweighted_mean_across_four_test_conditions" + }, + { + "domain": "ophthalmology", + "dataset_id": "rfmid", + "task_id": "rfmid", + "accuracy": 0.7046875, + "macro_f1": 0.6777622377622378, + "auc": 0.9513303049967554, + "n": 640 + }, + { + "domain": "ophthalmology", + "dataset_id": "papila", + "task_id": "papila", + "accuracy": 0.5368852459016393, + "macro_f1": 0.4449584766958228, + "auc": 0.7082953825817536, + "n": 488 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "gastrovision", + "task_id": "gastrovision", + "accuracy": 0.4609079445145019, + "macro_f1": 0.39028573099501424, + "auc": 0.9437426477587384, + "n": 1586 + }, + { + "domain": "dermatology", + "dataset_id": "derm12345", + "task_id": "derm12345", + "accuracy": 0.24748490945674045, + "macro_f1": 0.234869325640509, + "auc": 0.7301828320052314, + "n": 2485 + }, + { + "domain": "cytology", + "dataset_id": "ku_optofil", + "task_id": "ku_optofil", + "accuracy": 0.24995663486556807, + "macro_f1": 0.18050098674321355, + "auc": 0.8821885412838246, + "n": 5765 + }, + { + "domain": "cytology", + "dataset_id": "medimeta_aml", + "task_id": "medimeta_aml", + "accuracy": 0.2942297223734349, + "macro_f1": 0.15416299963879213, + "auc": 0.8829093973980853, + "n": 3674 + }, + { + "domain": "cytology", + "dataset_id": "cytodata", + "task_id": "cytodata", + "accuracy": 0.469, + "macro_f1": 0.3455579725283523, + "auc": 0.8661545808344429, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "raabin_wbc", + "task_id": "raabin_wbc", + "accuracy": 0.6700216785382471, + "macro_f1": 0.4813768794872709, + "auc": 0.9245945710968643, + "n": 6458 + }, + { + "domain": "microscopy_composition", + "dataset_id": "omnipose", + "task_id": "omnipose_modality", + "accuracy": 1.0, + "macro_f1": 1.0, + "auc": 1.0, + "n": 223 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "hyperkvasir", + "task_id": "hyperkvasir", + "accuracy": 0.5826299005815044, + "macro_f1": 0.36850151673173337, + "auc": 0.9590440324665326, + "n": 10662 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_eggs", + "accuracy": 0.1809672386895476, + "macro_f1": 0.05031332391701701, + "auc": 0.5650086874546676, + "n": 4485, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_larvae", + "accuracy": 0.8038658328595792, + "macro_f1": 0.7192370170762187, + "auc": 0.9631669768884752, + "n": 3072, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_protozoan_cysts", + "accuracy": 0.319279204063174, + "macro_f1": 0.19374220571647274, + "auc": 0.6861069861771881, + "n": 8376, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_morphology", + "accuracy": 0.3469387755102041, + "macro_f1": 0.15770158256160496, + "auc": 0.705981619641299, + "n": 294 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_gram", + "accuracy": 0.7993197278911565, + "macro_f1": 0.7810152630316496, + "auc": 0.9354875283446712, + "n": 294 + } + ] +} diff --git a/Initialization/DINOv2/BioClinicalModernBERT-large-ViT-L-14-dinov2-vision-longtext.json b/Initialization/DINOv2/BioClinicalModernBERT-large-ViT-L-14-dinov2-vision-longtext.json new file mode 100644 index 0000000000000000000000000000000000000000..5f10f0ab5f68a46be3e68d83f6ad795a4dcc840c --- /dev/null +++ b/Initialization/DINOv2/BioClinicalModernBERT-large-ViT-L-14-dinov2-vision-longtext.json @@ -0,0 +1,17 @@ +{ + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "timm_model_name": "vit_large_patch14_dinov2.lvd142m", + "timm_model_pretrained": true, + "timm_pool": "token", + "timm_proj": "linear", + "timm_drop": 0.0 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } +} diff --git a/Initialization/DINOv2/manifest.json b/Initialization/DINOv2/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..1a6eaa9b92c361bda6ba6d1094b390693e7efee4 --- /dev/null +++ b/Initialization/DINOv2/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "DINOv2", + "paper_location": "Main results / Table 5", + "architecture": "BioClinicalModernBERT-large-ViT-L-14-dinov2-vision-longtext", + "checkpoint": "Initialization/DINOv2/open_clip_pytorch_model.bin", + "sha256": "de2ca653c5e6c4f90cf64e854f15e4238366225c72e2f929ae07e81260b53342", + "bytes": 1817043017, + "paper_metrics_percent": { + "zero_shot": 54.94, + "bioloombench": 61.2, + "biomedflickr": 10.19 + }, + "results": { + "zero_shot": "Initialization/DINOv2/results/zero-shot.json", + "biomedflickr": "Initialization/DINOv2/results/biomedflickr-retrieval.json", + "bioloombench": "Initialization/DINOv2/results/bioloom-retrieval.json" + }, + "config": "Initialization/DINOv2/open_clip_config.json" +} diff --git a/Initialization/DINOv2/open_clip_config.json b/Initialization/DINOv2/open_clip_config.json new file mode 100644 index 0000000000000000000000000000000000000000..6a96bcb8a7e3c2e21a128fdcaaab1dcfb20d7fe2 --- /dev/null +++ b/Initialization/DINOv2/open_clip_config.json @@ -0,0 +1,19 @@ +{ + "model_cfg": { + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "timm_model_name": "vit_large_patch14_dinov2.lvd142m", + "timm_model_pretrained": true, + "timm_pool": "token", + "timm_proj": "linear", + "timm_drop": 0.0 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } +} diff --git a/Initialization/DINOv2/open_clip_pytorch_model.bin b/Initialization/DINOv2/open_clip_pytorch_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..488cf9714e3f5ff9ecdb5edf40feb008d411bc05 --- /dev/null +++ b/Initialization/DINOv2/open_clip_pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de2ca653c5e6c4f90cf64e854f15e4238366225c72e2f929ae07e81260b53342 +size 1817043017 diff --git a/Initialization/DINOv2/results/bioloom-retrieval.json b/Initialization/DINOv2/results/bioloom-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..cfea9ddeecdc703962f98597115e9342645fa7d0 --- /dev/null +++ b/Initialization/DINOv2/results/bioloom-retrieval.json @@ -0,0 +1,447 @@ +{ + "benchmark": "BioLoomBench", + "split": "all", + "model": "DINOv2", + "protocol": { + "concise_caption": "concise visual caption at native context", + "source_caption_native": "original source caption at native context", + "source_caption_cap77": "original source caption capped at 77 tokens; shorter native limits are retained", + "native_context_length": 512, + "cap77_effective_context_length": 77, + "retrieval_directions": [ + "image_to_text", + "text_to_image" + ], + "recall_k": [ + 1, + 5, + 10, + 100 + ] + }, + "tracks": { + "concise_caption": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 74.2705437631656, + "R@5": 90.90051973409635, + "R@10": 94.21448163463609, + "R@100": 99.48754971664799 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 72.02157316085983, + "bioRxiv": 76.51951436547138 + }, + "R@5": { + "Europe PMC OA": 90.76172195843687, + "bioRxiv": 91.03931750975583 + }, + "R@10": { + "Europe PMC OA": 94.274181725261, + "bioRxiv": 94.15478154401119 + }, + "R@100": { + "Europe PMC OA": 99.49191946376277, + "bioRxiv": 99.48317996953321 + } + }, + "R@1": 64.91333333333333, + "R@5": 86.88666666666667, + "R@10": 91.95333333333333, + "R@100": 99.15333333333334, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 63.32104056613177, + "bioRxiv": 68.12965572780351 + }, + "domain": { + "bioengineering": 71.8, + "cell_molecular": 63.1, + "cytology_hematology": 58.099999999999994, + "dermatology": 59.8, + "development_anatomy": 68.2, + "genetics_genomics": 64.3, + "histopathology": 60.099999999999994, + "microbiology_immunology": 66.8, + "molecular_structure": 57.9, + "neuroscience": 70.5, + "ophthalmology": 58.199999999999996, + "physiology_pharmacology": 67.30000000000001, + "plant_ecology": 67.30000000000001, + "radiology": 74.4, + "surgery_endoscopy": 65.9 + }, + "content_type": { + "bioimage_only": 62.89090909090908, + "chart_only": 67.60000000000001, + "mixed_bio_chart": 62.69090909090909, + "schematic_or_diagram": 72.64 + }, + "layout": { + "multi_panel": 63.73148148148148, + "single_panel": 67.95238095238095 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 67.39635272508312, + "R@5": 88.1596578749841, + "R@10": 92.36006258555958, + "R@100": 98.97089968630277 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 65.90665831887321, + "bioRxiv": 68.88604713129301 + }, + "R@5": { + "Europe PMC OA": 86.90722993826306, + "bioRxiv": 89.41208581170515 + }, + "R@10": { + "Europe PMC OA": 91.71609049469781, + "bioRxiv": 93.00403467642134 + }, + "R@100": { + "Europe PMC OA": 98.80836789235805, + "bioRxiv": 99.13343148024751 + } + }, + "R@1": 57.48, + "R@5": 81.36666666666666, + "R@10": 87.71333333333334, + "R@100": 98.22666666666666, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 55.14801156184591, + "bioRxiv": 62.19045701630763 + }, + "domain": { + "bioengineering": 64.4, + "cell_molecular": 56.599999999999994, + "cytology_hematology": 50.0, + "dermatology": 54.1, + "development_anatomy": 59.4, + "genetics_genomics": 58.5, + "histopathology": 50.5, + "microbiology_immunology": 58.8, + "molecular_structure": 49.3, + "neuroscience": 61.1, + "ophthalmology": 49.3, + "physiology_pharmacology": 63.1, + "plant_ecology": 60.699999999999996, + "radiology": 66.2, + "surgery_endoscopy": 60.199999999999996 + }, + "content_type": { + "bioimage_only": 56.03636363636364, + "chart_only": 62.26666666666667, + "mixed_bio_chart": 52.18181818181819, + "schematic_or_diagram": 69.44 + }, + "layout": { + "multi_panel": 53.98148148148149, + "single_panel": 66.47619047619048 + } + } + }, + "mean_recall": { + "R@1": 61.19666666666666, + "R@5": 84.12666666666667, + "R@10": 89.83333333333334, + "R@100": 98.69 + }, + "mean_hierarchical_macro": { + "R@1": 70.83344824412436, + "R@5": 89.53008880454023, + "R@10": 93.28727211009783, + "R@100": 99.22922470147537 + } + }, + "source_caption_native": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 79.96505239565954, + "R@5": 92.11995661681394, + "R@10": 94.49418618636378, + "R@100": 98.6719455905369 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 82.84114228557146, + "bioRxiv": 77.08896250574763 + }, + "R@5": { + "Europe PMC OA": 95.11375560571821, + "bioRxiv": 89.12615762790966 + }, + "R@10": { + "Europe PMC OA": 97.01384098489552, + "bioRxiv": 91.97453138783202 + }, + "R@100": { + "Europe PMC OA": 99.5621173538787, + "bioRxiv": 97.78177382719507 + } + }, + "R@1": 78.63333333333333, + "R@5": 91.68666666666667, + "R@10": 94.38666666666666, + "R@100": 98.29333333333334, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 81.88976377952756, + "bioRxiv": 72.05556674048722 + }, + "domain": { + "bioengineering": 82.5, + "cell_molecular": 83.2, + "cytology_hematology": 79.9, + "dermatology": 67.10000000000001, + "development_anatomy": 84.5, + "genetics_genomics": 63.0, + "histopathology": 84.3, + "microbiology_immunology": 76.6, + "molecular_structure": 84.8, + "neuroscience": 83.39999999999999, + "ophthalmology": 75.4, + "physiology_pharmacology": 83.8, + "plant_ecology": 75.1, + "radiology": 81.39999999999999, + "surgery_endoscopy": 74.5 + }, + "content_type": { + "bioimage_only": 75.43636363636364, + "chart_only": 59.4, + "mixed_bio_chart": 86.2, + "schematic_or_diagram": 80.56 + }, + "layout": { + "multi_panel": 84.08333333333333, + "single_panel": 64.61904761904762 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 77.63373765515371, + "R@5": 91.07733671244648, + "R@10": 93.86648871192719, + "R@100": 98.48876821956924 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 82.39494101084175, + "bioRxiv": 72.87253429946567 + }, + "R@5": { + "Europe PMC OA": 94.13116235883543, + "bioRxiv": 88.02351106605755 + }, + "R@10": { + "Europe PMC OA": 96.67845199832523, + "bioRxiv": 91.05452542552915 + }, + "R@100": { + "Europe PMC OA": 99.56885450995236, + "bioRxiv": 97.40868192918613 + } + }, + "R@1": 77.92, + "R@5": 91.30666666666667, + "R@10": 93.87333333333333, + "R@100": 98.34666666666666, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 81.64058606598226, + "bioRxiv": 70.40467082746125 + }, + "domain": { + "bioengineering": 81.0, + "cell_molecular": 81.89999999999999, + "cytology_hematology": 79.5, + "dermatology": 67.9, + "development_anatomy": 84.0, + "genetics_genomics": 64.60000000000001, + "histopathology": 85.2, + "microbiology_immunology": 75.3, + "molecular_structure": 84.7, + "neuroscience": 81.2, + "ophthalmology": 76.6, + "physiology_pharmacology": 81.3, + "plant_ecology": 72.2, + "radiology": 80.4, + "surgery_endoscopy": 73.0 + }, + "content_type": { + "bioimage_only": 75.50909090909092, + "chart_only": 55.13333333333333, + "mixed_bio_chart": 85.61818181818181, + "schematic_or_diagram": 79.96 + }, + "layout": { + "multi_panel": 83.85185185185186, + "single_panel": 62.66666666666667 + } + } + }, + "mean_recall": { + "R@1": 78.27666666666667, + "R@5": 91.49666666666667, + "R@10": 94.13, + "R@100": 98.32 + }, + "mean_hierarchical_macro": { + "R@1": 78.79939502540662, + "R@5": 91.59864666463021, + "R@10": 94.18033744914548, + "R@100": 98.58035690505307 + } + }, + "source_caption_cap77": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 65.8726487423479, + "R@5": 85.27222249830157, + "R@10": 89.3387571457503, + "R@100": 96.81096956164268 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 70.3177605230111, + "bioRxiv": 61.42753696168472 + }, + "R@5": { + "Europe PMC OA": 89.0736473177258, + "bioRxiv": 81.47079767887733 + }, + "R@10": { + "Europe PMC OA": 93.4629838884989, + "bioRxiv": 85.21453040300167 + }, + "R@100": { + "Europe PMC OA": 98.9491687186002, + "bioRxiv": 94.67277040468514 + } + }, + "R@1": 63.0, + "R@5": 83.03333333333333, + "R@10": 87.85333333333334, + "R@100": 96.78, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 66.4208113226353, + "bioRxiv": 56.090195288906784 + }, + "domain": { + "bioengineering": 66.5, + "cell_molecular": 62.2, + "cytology_hematology": 60.199999999999996, + "dermatology": 57.49999999999999, + "development_anatomy": 67.7, + "genetics_genomics": 52.5, + "histopathology": 66.5, + "microbiology_immunology": 57.9, + "molecular_structure": 59.599999999999994, + "neuroscience": 67.30000000000001, + "ophthalmology": 58.9, + "physiology_pharmacology": 71.39999999999999, + "plant_ecology": 58.099999999999994, + "radiology": 71.7, + "surgery_endoscopy": 67.0 + }, + "content_type": { + "bioimage_only": 63.054545454545455, + "chart_only": 52.26666666666666, + "mixed_bio_chart": 62.727272727272734, + "schematic_or_diagram": 69.92 + }, + "layout": { + "multi_panel": 64.33333333333333, + "single_panel": 59.57142857142858 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 63.86892602275939, + "R@5": 83.77139672688395, + "R@10": 88.84323608992742, + "R@100": 96.52276711674423 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 70.08374764239271, + "bioRxiv": 57.65410440312607 + }, + "R@5": { + "Europe PMC OA": 88.1469825599869, + "bioRxiv": 79.39581089378099 + }, + "R@10": { + "Europe PMC OA": 92.98362070173037, + "bioRxiv": 84.70285147812446 + }, + "R@100": { + "Europe PMC OA": 99.04205245703643, + "bioRxiv": 94.00348177645202 + } + }, + "R@1": 60.89333333333333, + "R@5": 81.98666666666666, + "R@10": 86.95333333333333, + "R@100": 96.48, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 64.44732383135653, + "bioRxiv": 53.71451580430844 + }, + "domain": { + "bioengineering": 63.4, + "cell_molecular": 59.699999999999996, + "cytology_hematology": 58.9, + "dermatology": 56.3, + "development_anatomy": 65.9, + "genetics_genomics": 51.4, + "histopathology": 65.7, + "microbiology_immunology": 55.300000000000004, + "molecular_structure": 57.199999999999996, + "neuroscience": 64.1, + "ophthalmology": 58.8, + "physiology_pharmacology": 68.60000000000001, + "plant_ecology": 54.2, + "radiology": 69.8, + "surgery_endoscopy": 64.1 + }, + "content_type": { + "bioimage_only": 62.4, + "chart_only": 47.199999999999996, + "mixed_bio_chart": 59.05454545454546, + "schematic_or_diagram": 69.84 + }, + "layout": { + "multi_panel": 62.05555555555555, + "single_panel": 57.904761904761905 + } + } + }, + "mean_recall": { + "R@1": 61.946666666666665, + "R@5": 82.50999999999999, + "R@10": 87.40333333333334, + "R@100": 96.63 + }, + "mean_hierarchical_macro": { + "R@1": 64.87078738255364, + "R@5": 84.52180961259276, + "R@10": 89.09099661783885, + "R@100": 96.66686833919346 + } + } + } +} diff --git a/Initialization/DINOv2/results/biomedflickr-retrieval.json b/Initialization/DINOv2/results/biomedflickr-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..e66a5d51c4d619f77a5f3e8874fe47512b001242 --- /dev/null +++ b/Initialization/DINOv2/results/biomedflickr-retrieval.json @@ -0,0 +1,43 @@ +{ + "benchmark": "BioMedFlickr", + "num_pairs": 7185, + "units": "percent", + "revised_same_caption": { + "n_unique_captions": 4281, + "image_to_text": { + "R@1": 9.686847031116486, + "R@5": 19.22059804201126, + "R@10": 24.66249018907547, + "R@100": 48.90744388103485, + "R@1000": 82.40779042243958 + }, + "text_to_image": { + "R@1": 10.7028529047966, + "R@5": 24.300625920295715, + "R@10": 32.233819365501404, + "R@100": 65.28879404067993, + "R@1000": 93.89004707336426 + } + }, + "exact_pair": { + "image_to_text": { + "R@1": 8.392484342379959, + "R@5": 18.232428670842033, + "R@10": 23.785664578983994, + "R@100": 48.53166318719555, + "R@1000": 82.32428670842033, + "mean_rank": 590.4797494780794, + "median_rank": 112.0 + }, + "text_to_image": { + "R@1": 7.919276270006959, + "R@5": 18.16283924843424, + "R@10": 24.258872651356995, + "R@100": 50.32707028531663, + "R@1000": 83.67432150313152, + "mean_rank": 533.6491301322199, + "median_rank": 98.0 + } + }, + "model": "DINOv2" +} diff --git a/Initialization/DINOv2/results/zero-shot.json b/Initialization/DINOv2/results/zero-shot.json new file mode 100644 index 0000000000000000000000000000000000000000..ce86c7ee8a498f095efed2d04ac7a93684304829 --- /dev/null +++ b/Initialization/DINOv2/results/zero-shot.json @@ -0,0 +1,679 @@ +{ + "model": "DINOv2", + "source_count": 43, + "logical_tasks": 67, + "domain_count": 10, + "tasks": [ + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "contour", + "accuracy": 0.3, + "macro_f1": 0.21056859769704542, + "auc": 0.6858472222222223, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "texture", + "accuracy": 0.395, + "macro_f1": 0.31559457175748706, + "auc": 0.7101675925925925, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "eccentricity", + "accuracy": 0.365, + "macro_f1": 0.2285159285159285, + "auc": 0.7395722222222223, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "brightfield", + "accuracy": 0.12920592193808883, + "macro_f1": 0.1983301695900746, + "auc": 0.5835040005506757, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "darkfield", + "accuracy": 0.19380888290713325, + "macro_f1": 0.1282615580291154, + "auc": 0.5154270725968166, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "epifluorescence", + "accuracy": 0.32570659488559894, + "macro_f1": 0.16815067031366598, + "auc": 0.7071350550404041, + "n": 743 + }, + { + "domain": "structure_profiling", + "dataset_id": "nirschl_unpub_fluorescence", + "task_id": "structure_identification", + "accuracy": 0.8372591006423983, + "macro_f1": 0.7851257798248409, + "auc": 0.9859140075840597, + "n": 934 + }, + { + "domain": "structure_profiling", + "dataset_id": "empiar_sbfsem", + "task_id": "structure_identification", + "accuracy": 0.7487001733102253, + "macro_f1": 0.7150977261261481, + "auc": 0.9418999246085502, + "n": 577 + }, + { + "domain": "structure_profiling", + "dataset_id": "icpr2020_pollen", + "task_id": "pollen_classification", + "accuracy": 0.21142857142857144, + "macro_f1": 0.1435007763048777, + "auc": 0.6175571428571429, + "n": 700 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "domain", + "accuracy": 0.6715564539416691, + "macro_f1": 0.2805928905062739, + "auc": 0.8849046789670998, + "n": 17315 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "modality", + "accuracy": 0.7829997098926603, + "macro_f1": 0.6220007359592741, + "auc": 0.9308209426134803, + "n": 17235 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "stain", + "accuracy": 0.4890102658594367, + "macro_f1": 0.14050806939782876, + "auc": 0.8190436901745282, + "n": 15196 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "submodality", + "accuracy": 0.1559036843632144, + "macro_f1": 0.15105627027541543, + "auc": 0.6210874896238443, + "n": 17235 + }, + { + "domain": "cytology", + "dataset_id": "acevedo_et_al_2020", + "task_id": "cell_type", + "accuracy": 0.71125, + "macro_f1": 0.7085116903732687, + "auc": 0.9413501953124999, + "n": 1600 + }, + { + "domain": "cytology", + "dataset_id": "jung_et_al_2022", + "task_id": "cell_type", + "accuracy": 0.593, + "macro_f1": 0.5505673602364293, + "auc": 0.9171521999999999, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "hussain_et_al_2019", + "task_id": "cell_type", + "accuracy": 0.533678756476684, + "macro_f1": 0.47162764771460425, + "auc": 0.8489690998416064, + "n": 193 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2016", + "task_id": "tissue_classification", + "accuracy": 0.618, + "macro_f1": 0.5439596306351624, + "auc": 0.8961363999999999, + "n": 1000 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2018_val7k", + "task_id": "tissue_classification", + "accuracy": 0.669710806697108, + "macro_f1": 0.5679958143354297, + "auc": 0.9303149086410485, + "n": 1314 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "colon_tissue", + "accuracy": 0.9684986595174263, + "macro_f1": 0.9684813148277247, + "auc": 0.998023417116489, + "n": 1492 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "lung_tissue", + "accuracy": 0.8830823737821081, + "macro_f1": 0.8797480420115752, + "auc": 0.9832173294831034, + "n": 2258 + }, + { + "domain": "histopathology", + "dataset_id": "patchcamelyon", + "task_id": "metastasis", + "accuracy": 0.686187744140625, + "macro_f1": 0.6545608036198027, + "auc": 0.9035168672812227, + "n": 32768 + }, + { + "domain": "histopathology", + "dataset_id": "tang_et_al_2019", + "task_id": "tissue_classification", + "accuracy": 0.5437881873727087, + "macro_f1": 0.405090564933329, + "auc": 0.8036583140106437, + "n": 491 + }, + { + "domain": "histopathology", + "dataset_id": "wong_et_al_2022", + "task_id": "tissue_classification", + "accuracy": 0.24625, + "macro_f1": 0.1774040884844416, + "auc": 0.692065234375, + "n": 800 + }, + { + "domain": "histopathology", + "dataset_id": "nirschl_et_al_2018", + "task_id": "tissue_classification", + "accuracy": 0.6125, + "macro_f1": 0.3745243815182832, + "auc": 0.821734375, + "n": 400 + }, + { + "domain": "histopathology", + "dataset_id": "wu_et_al_2023", + "task_id": "tissue_classification", + "accuracy": 0.6484375, + "macro_f1": 0.31986854717239493, + "auc": 0.835906982421875, + "n": 256 + }, + { + "domain": "radiology", + "dataset_id": "chexpert", + "task_id": "chest_finding", + "accuracy": 0.33760683760683763, + "macro_f1": 0.22362188015622717, + "auc": 0.6512929709796036, + "n": 234 + }, + { + "domain": "radiology", + "dataset_id": "pneumoniamnist", + "task_id": "pneumonia", + "accuracy": 0.8333333333333334, + "macro_f1": 0.7983193277310925, + "auc": 0.9854920008766163, + "n": 624 + }, + { + "domain": "radiology", + "dataset_id": "chestmnist", + "task_id": "multilabel_chest_findings", + "protocol": "medpmc", + "sample_count": "22433", + "split": "test", + "source_key": "medpmc_medmnist", + "accuracy": 0.8160522444612847, + "macro_f1": 0.17407825962943857, + "auc": 0.7193090634303788, + "n": 22433 + }, + { + "domain": "radiology", + "dataset_id": "rsna_pneumonia", + "task_id": "pneumonia", + "protocol": "medpmc", + "sample_count": "26684", + "split": "stage_2_train", + "source_key": "rsna_complete", + "accuracy": 0.7385699295457953, + "macro_f1": 0.7036826791419444, + "auc": 0.869921011627416, + "n": 26684 + }, + { + "domain": "radiology", + "dataset_id": "breastmnist", + "task_id": "breast_ultrasound", + "accuracy": 0.782051282051282, + "macro_f1": 0.749811320754717, + "auc": 0.8535923141186299, + "n": 156 + }, + { + "domain": "ophthalmology", + "dataset_id": "retinamnist", + "task_id": "dr_severity", + "accuracy": 0.5125, + "macro_f1": 0.32517271109622614, + "auc": 0.8009818270670903, + "n": 400 + }, + { + "domain": "ophthalmology", + "dataset_id": "deepdrid", + "task_id": "dr_severity", + "protocol": "medpmc", + "sample_count": "400", + "split": "challenge_evaluation", + "source_key": "deepdrid_official", + "accuracy": 0.5875, + "macro_f1": 0.4619221620581495, + "auc": 0.8158849571238915, + "n": 400 + }, + { + "domain": "dermatology", + "dataset_id": "dermamnist", + "task_id": "skin_lesion", + "accuracy": 0.5386533665835411, + "macro_f1": 0.330450961934531, + "auc": 0.8228431883427251, + "n": 2005 + }, + { + "domain": "dermatology", + "dataset_id": "ham10000", + "task_id": "skin_lesion", + "protocol": "medpmc", + "sample_count": "1512", + "split": "isic2018_task3_test", + "source_key": "ham10000_official", + "accuracy": 0.6316137566137566, + "macro_f1": 0.39841837961869364, + "auc": 0.8483458898460474, + "n": 1512 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "abdominal_wall_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5516655336505778, + "macro_f1": 0.5508285166452817, + "auc": 0.592933882690256, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "colon_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.6835486063902108, + "macro_f1": 0.6239764210461575, + "auc": 0.7425612577771106, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "inferior_mesenteric_artery_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.45887151597552683, + "macro_f1": 0.40436134409324165, + "auc": 0.6610034548903654, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "intestinal_veins_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7100611828687967, + "macro_f1": 0.5287044116152924, + "auc": 0.6784559430887541, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "liver_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8810333106730116, + "macro_f1": 0.6132814553867185, + "auc": 0.7586150502178557, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "pancreas_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.521414004078858, + "macro_f1": 0.4588975782209703, + "auc": 0.5952054994577615, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "small_intestine_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7314751869476547, + "macro_f1": 0.6340473371290372, + "auc": 0.6721525017371677, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "spleen_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8640380693405847, + "macro_f1": 0.5245575249841626, + "auc": 0.5911280323021652, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "stomach_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5696804894629504, + "macro_f1": 0.5132143828025344, + "auc": 0.5806239029222185, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "ureter_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5166553365057783, + "macro_f1": 0.38917989530777214, + "auc": 0.36655643738977073, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "vesicular_glands_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.6420802175390891, + "macro_f1": 0.41335992023928214, + "auc": 0.3528031203566122, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "multilabel_anatomy", + "protocol": "medpmc_public_variant", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.6699864038069341, + "macro_f1": 0.2919457221688992, + "auc": 0.6440121778915537, + "n": 2942 + }, + { + "domain": "ophthalmology", + "dataset_id": "octmnist", + "task_id": "octmnist", + "accuracy": 0.373, + "macro_f1": 0.3035537454509613, + "auc": 0.7678613333333333, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "tissuemnist", + "task_id": "tissuemnist", + "accuracy": 0.09084179357021997, + "macro_f1": 0.05443340157861165, + "auc": 0.5059354173675592, + "n": 47280 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organamnist", + "accuracy": 0.14523568455394306, + "macro_f1": 0.11790956526371071, + "auc": 0.6102902562632532, + "n": 17778 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organcmnist", + "accuracy": 0.10187439143135346, + "macro_f1": 0.08333628503285777, + "auc": 0.5703978360509445, + "n": 8216 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organsmnist", + "accuracy": 0.126883425852498, + "macro_f1": 0.09213876908626627, + "auc": 0.5565811483942911, + "n": 8827 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "coos7", + "task_id": "subcellular_localization", + "accuracy": 0.45718496320773094, + "macro_f1": 0.36322444986823793, + "auc": 0.8814601380209289, + "n": 90753, + "aggregation": "unweighted_mean_across_four_test_conditions" + }, + { + "domain": "ophthalmology", + "dataset_id": "rfmid", + "task_id": "rfmid", + "accuracy": 0.6078125, + "macro_f1": 0.5932742385918539, + "auc": 0.9499734528936346, + "n": 640 + }, + { + "domain": "ophthalmology", + "dataset_id": "papila", + "task_id": "papila", + "accuracy": 0.5778688524590164, + "macro_f1": 0.38371205796757996, + "auc": 0.6965023948825854, + "n": 488 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "gastrovision", + "task_id": "gastrovision", + "accuracy": 0.49936948297604034, + "macro_f1": 0.4162044438882216, + "auc": 0.9496652127809199, + "n": 1586 + }, + { + "domain": "dermatology", + "dataset_id": "derm12345", + "task_id": "derm12345", + "accuracy": 0.32193158953722334, + "macro_f1": 0.20986898782630348, + "auc": 0.7240120325159953, + "n": 2485 + }, + { + "domain": "cytology", + "dataset_id": "ku_optofil", + "task_id": "ku_optofil", + "accuracy": 0.5290546400693842, + "macro_f1": 0.19112682137730325, + "auc": 0.8871008731574477, + "n": 5765 + }, + { + "domain": "cytology", + "dataset_id": "medimeta_aml", + "task_id": "medimeta_aml", + "accuracy": 0.11077844311377245, + "macro_f1": 0.10900655171406431, + "auc": 0.8500425899778229, + "n": 3674 + }, + { + "domain": "cytology", + "dataset_id": "cytodata", + "task_id": "cytodata", + "accuracy": 0.41, + "macro_f1": 0.30732582610384906, + "auc": 0.8837660652746543, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "raabin_wbc", + "task_id": "raabin_wbc", + "accuracy": 0.8353979560235367, + "macro_f1": 0.5912283611989513, + "auc": 0.9349516660466832, + "n": 6458 + }, + { + "domain": "microscopy_composition", + "dataset_id": "omnipose", + "task_id": "omnipose_modality", + "accuracy": 1.0, + "macro_f1": 1.0, + "auc": 1.0, + "n": 223 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "hyperkvasir", + "task_id": "hyperkvasir", + "accuracy": 0.6126430313262052, + "macro_f1": 0.36097418423381555, + "auc": 0.96100143871816, + "n": 10662 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_eggs", + "accuracy": 0.27678107124284973, + "macro_f1": 0.159952618659822, + "auc": 0.7631931282648972, + "n": 4485, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_larvae", + "accuracy": 0.7712715558082244, + "macro_f1": 0.6787455429014143, + "auc": 0.9231047386381261, + "n": 3072, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_protozoan_cysts", + "accuracy": 0.10811939052389898, + "macro_f1": 0.06074377550048632, + "auc": 0.63351438719519, + "n": 8376, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_morphology", + "accuracy": 0.48299319727891155, + "macro_f1": 0.24249536553997908, + "auc": 0.8222506974809053, + "n": 294 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_gram", + "accuracy": 0.6360544217687075, + "macro_f1": 0.6329588014981273, + "auc": 0.832482993197279, + "n": 294 + } + ] +} diff --git a/Main/DFN-2B/BioClinicalModernBERT-large-ViT-L-14-pretrained.json b/Main/DFN-2B/BioClinicalModernBERT-large-ViT-L-14-pretrained.json new file mode 100644 index 0000000000000000000000000000000000000000..31dada30994a1a2ada80df305de1f6d715256313 --- /dev/null +++ b/Main/DFN-2B/BioClinicalModernBERT-large-ViT-L-14-pretrained.json @@ -0,0 +1,18 @@ +{ + "embed_dim": 768, + "vision_cfg": { + "timm_model_name": "vit_large_patch14_clip_224.dfn2b_s39b", + "timm_model_pretrained": true, + "timm_pool": "", + "timm_proj": "linear", + "timm_drop": 0.0, + "timm_drop_path": 0.1, + "image_size": 224 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } \ No newline at end of file diff --git a/Main/DFN-2B/manifest.json b/Main/DFN-2B/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..972290629627d1fa929952ede8cffbf2cfb51feb --- /dev/null +++ b/Main/DFN-2B/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "BioLoom (DFN-2B)", + "paper_location": "Main/Supplement results; Table 5 (DFN-2B)", + "architecture": "BioClinicalModernBERT-large-ViT-L-14-pretrained", + "checkpoint": "Main/DFN-2B/open_clip_pytorch_model.bin", + "sha256": "44c00c876cd54a0a673ec1c5741d32763fff0f063691caac48072431edfc6fff", + "bytes": 1816835486, + "paper_metrics_percent": { + "zero_shot": 56.82, + "bioloombench": 63.2, + "biomedflickr": 10.59 + }, + "results": { + "zero_shot": "Main/DFN-2B/results/zero-shot.json", + "biomedflickr": "Main/DFN-2B/results/biomedflickr-retrieval.json", + "bioloombench": "Main/DFN-2B/results/bioloom-retrieval.json" + }, + "config": "Main/DFN-2B/open_clip_config.json" +} diff --git a/Main/DFN-2B/open_clip_config.json b/Main/DFN-2B/open_clip_config.json new file mode 100644 index 0000000000000000000000000000000000000000..de7e43a62de5935dba6c900b9789a6c160089bcb --- /dev/null +++ b/Main/DFN-2B/open_clip_config.json @@ -0,0 +1,20 @@ +{ + "model_cfg": { + "embed_dim": 768, + "vision_cfg": { + "timm_model_name": "vit_large_patch14_clip_224.dfn2b_s39b", + "timm_model_pretrained": true, + "timm_pool": "", + "timm_proj": "linear", + "timm_drop": 0.0, + "timm_drop_path": 0.1, + "image_size": 224 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } +} diff --git a/Main/DFN-2B/open_clip_pytorch_model.bin b/Main/DFN-2B/open_clip_pytorch_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..684a66aedada51c5afd3a067343cc9c643b59579 --- /dev/null +++ b/Main/DFN-2B/open_clip_pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44c00c876cd54a0a673ec1c5741d32763fff0f063691caac48072431edfc6fff +size 1816835486 diff --git a/Main/DFN-2B/results/bioloom-retrieval.json b/Main/DFN-2B/results/bioloom-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..c6162180b8b31c2f4291a45d4aa7dbb45f335c4a --- /dev/null +++ b/Main/DFN-2B/results/bioloom-retrieval.json @@ -0,0 +1,447 @@ +{ + "benchmark": "BioLoomBench", + "split": "test", + "model": "BioLoom (DFN-2B)", + "protocol": { + "concise_caption": "concise visual caption at native context", + "source_caption_native": "original source caption at native context", + "source_caption_cap77": "original source caption capped at 77 tokens; shorter native limits are retained", + "native_context_length": 512, + "cap77_effective_context_length": 77, + "retrieval_directions": [ + "image_to_text", + "text_to_image" + ], + "recall_k": [ + 1, + 5, + 10, + 100 + ] + }, + "tracks": { + "concise_caption": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 76.66689394923624, + "R@5": 91.83803013114567, + "R@10": 94.93971446297103, + "R@100": 99.44083814573986 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 74.0364578281162, + "bioRxiv": 79.29733007035628 + }, + "R@5": { + "Europe PMC OA": 91.09796794526657, + "bioRxiv": 92.57809231702475 + }, + "R@10": { + "Europe PMC OA": 94.59906628688401, + "bioRxiv": 95.28036263905804 + }, + "R@100": { + "Europe PMC OA": 99.61454149904387, + "bioRxiv": 99.26713479243585 + } + }, + "R@1": 66.80666666666667, + "R@5": 88.12666666666667, + "R@10": 92.81333333333333, + "R@100": 99.28, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 64.70646865344364, + "bioRxiv": 71.04892289108113 + }, + "domain": { + "bioengineering": 74.0, + "cell_molecular": 63.6, + "cytology_hematology": 59.099999999999994, + "dermatology": 63.3, + "development_anatomy": 70.39999999999999, + "genetics_genomics": 67.7, + "histopathology": 59.8, + "microbiology_immunology": 70.1, + "molecular_structure": 60.3, + "neuroscience": 72.7, + "ophthalmology": 59.599999999999994, + "physiology_pharmacology": 70.19999999999999, + "plant_ecology": 71.39999999999999, + "radiology": 72.39999999999999, + "surgery_endoscopy": 67.5 + }, + "content_type": { + "bioimage_only": 63.54545454545455, + "chart_only": 72.6, + "mixed_bio_chart": 64.69090909090909, + "schematic_or_diagram": 75.16000000000001 + }, + "layout": { + "multi_panel": 65.36111111111111, + "single_panel": 70.52380952380952 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 70.368499116999, + "R@5": 89.03486575043524, + "R@10": 92.99285558777692, + "R@100": 99.3722812357215 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 67.5955225801049, + "bioRxiv": 73.14147565389312 + }, + "R@5": { + "Europe PMC OA": 87.22506341313328, + "bioRxiv": 90.8446680877372 + }, + "R@10": { + "Europe PMC OA": 92.60327154794452, + "bioRxiv": 93.3824396276093 + }, + "R@100": { + "Europe PMC OA": 99.38130422346079, + "bioRxiv": 99.36325824798222 + } + }, + "R@1": 59.586666666666666, + "R@5": 82.66, + "R@10": 88.80666666666667, + "R@100": 98.76666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 57.101564836041064, + "bioRxiv": 64.60640225488223 + }, + "domain": { + "bioengineering": 65.9, + "cell_molecular": 57.3, + "cytology_hematology": 52.800000000000004, + "dermatology": 55.60000000000001, + "development_anatomy": 61.5, + "genetics_genomics": 62.9, + "histopathology": 53.900000000000006, + "microbiology_immunology": 60.9, + "molecular_structure": 47.699999999999996, + "neuroscience": 64.7, + "ophthalmology": 52.5, + "physiology_pharmacology": 64.60000000000001, + "plant_ecology": 65.3, + "radiology": 66.5, + "surgery_endoscopy": 61.7 + }, + "content_type": { + "bioimage_only": 58.07272727272728, + "chart_only": 66.93333333333334, + "mixed_bio_chart": 54.07272727272727, + "schematic_or_diagram": 70.64 + }, + "layout": { + "multi_panel": 56.166666666666664, + "single_panel": 68.38095238095238 + } + } + }, + "mean_recall": { + "R@1": 63.19666666666667, + "R@5": 85.39333333333333, + "R@10": 90.81, + "R@100": 99.02333333333334 + }, + "mean_hierarchical_macro": { + "R@1": 73.51769653311763, + "R@5": 90.43644794079046, + "R@10": 93.96628502537396, + "R@100": 99.40655969073069 + } + }, + "source_caption_native": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 78.95472236475553, + "R@5": 92.39013012211839, + "R@10": 94.7896973457566, + "R@100": 98.13226226382328 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 83.39157822332123, + "bioRxiv": 74.51786650618983 + }, + "R@5": { + "Europe PMC OA": 94.90245414408265, + "bioRxiv": 89.87780610015412 + }, + "R@10": { + "Europe PMC OA": 96.87393095376773, + "bioRxiv": 92.70546373774546 + }, + "R@100": { + "Europe PMC OA": 99.52041690606872, + "bioRxiv": 96.74410762157784 + } + }, + "R@1": 79.28666666666668, + "R@5": 92.16666666666666, + "R@10": 94.57333333333334, + "R@100": 98.38666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 82.67716535433071, + "bioRxiv": 72.43809140326152 + }, + "domain": { + "bioengineering": 82.6, + "cell_molecular": 82.6, + "cytology_hematology": 80.0, + "dermatology": 71.0, + "development_anatomy": 84.1, + "genetics_genomics": 67.30000000000001, + "histopathology": 84.89999999999999, + "microbiology_immunology": 76.3, + "molecular_structure": 84.8, + "neuroscience": 84.1, + "ophthalmology": 76.9, + "physiology_pharmacology": 86.4, + "plant_ecology": 74.4, + "radiology": 80.60000000000001, + "surgery_endoscopy": 73.3 + }, + "content_type": { + "bioimage_only": 76.03636363636363, + "chart_only": 61.8, + "mixed_bio_chart": 86.23636363636363, + "schematic_or_diagram": 81.64 + }, + "layout": { + "multi_panel": 84.35185185185186, + "single_panel": 66.26190476190476 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 81.24280763968613, + "R@5": 91.6188704298699, + "R@10": 94.09091142492412, + "R@100": 98.41534132244641 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 84.18456208953843, + "bioRxiv": 78.30105318983384 + }, + "R@5": { + "Europe PMC OA": 94.35706473475314, + "bioRxiv": 88.88067612498668 + }, + "R@10": { + "Europe PMC OA": 96.15349934684289, + "bioRxiv": 92.02832350300532 + }, + "R@100": { + "Europe PMC OA": 99.54926356712694, + "bioRxiv": 97.28141907776589 + } + }, + "R@1": 78.34, + "R@5": 91.52666666666667, + "R@10": 94.1, + "R@100": 98.41333333333333, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 81.44124389514602, + "bioRxiv": 72.07569961747534 + }, + "domain": { + "bioengineering": 81.5, + "cell_molecular": 81.69999999999999, + "cytology_hematology": 78.9, + "dermatology": 68.0, + "development_anatomy": 83.3, + "genetics_genomics": 67.2, + "histopathology": 84.89999999999999, + "microbiology_immunology": 75.1, + "molecular_structure": 85.2, + "neuroscience": 82.8, + "ophthalmology": 75.8, + "physiology_pharmacology": 84.1, + "plant_ecology": 73.9, + "radiology": 80.4, + "surgery_endoscopy": 72.3 + }, + "content_type": { + "bioimage_only": 74.87272727272727, + "chart_only": 60.8, + "mixed_bio_chart": 85.47272727272728, + "schematic_or_diagram": 80.80000000000001 + }, + "layout": { + "multi_panel": 83.57407407407408, + "single_panel": 64.88095238095238 + } + } + }, + "mean_recall": { + "R@1": 78.81333333333333, + "R@5": 91.84666666666666, + "R@10": 94.33666666666667, + "R@100": 98.4 + }, + "mean_hierarchical_macro": { + "R@1": 80.09876500222083, + "R@5": 92.00450027599415, + "R@10": 94.44030438534035, + "R@100": 98.27380179313485 + } + }, + "source_caption_cap77": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 67.1512532676566, + "R@5": 85.74671768772717, + "R@10": 89.34778397885253, + "R@100": 96.43068364965693 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 71.50246998051966, + "bioRxiv": 62.800036554793536 + }, + "R@5": { + "Europe PMC OA": 89.5348498826833, + "bioRxiv": 81.95858549277102 + }, + "R@10": { + "Europe PMC OA": 93.30550358102712, + "bioRxiv": 85.39006437667793 + }, + "R@100": { + "Europe PMC OA": 98.89026506284961, + "bioRxiv": 93.97110223646425 + } + }, + "R@1": 63.019999999999996, + "R@5": 83.46000000000001, + "R@10": 88.48666666666666, + "R@100": 96.72666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 66.17163360909001, + "bioRxiv": 56.653915844574186 + }, + "domain": { + "bioengineering": 67.4, + "cell_molecular": 63.1, + "cytology_hematology": 60.8, + "dermatology": 60.8, + "development_anatomy": 65.3, + "genetics_genomics": 55.50000000000001, + "histopathology": 64.8, + "microbiology_immunology": 58.099999999999994, + "molecular_structure": 57.9, + "neuroscience": 65.5, + "ophthalmology": 59.0, + "physiology_pharmacology": 73.0, + "plant_ecology": 60.0, + "radiology": 69.6, + "surgery_endoscopy": 64.5 + }, + "content_type": { + "bioimage_only": 62.52727272727273, + "chart_only": 53.800000000000004, + "mixed_bio_chart": 62.38181818181818, + "schematic_or_diagram": 71.04 + }, + "layout": { + "multi_panel": 64.01851851851852, + "single_panel": 60.452380952380956 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 68.62211496209387, + "R@5": 84.58916462494084, + "R@10": 88.9920841613945, + "R@100": 96.53233363162747 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 71.35292123834473, + "bioRxiv": 65.89130868584301 + }, + "R@5": { + "Europe PMC OA": 88.78120685233955, + "bioRxiv": 80.39712239754212 + }, + "R@10": { + "Europe PMC OA": 93.17584507065997, + "bioRxiv": 84.80832325212901 + }, + "R@100": { + "Europe PMC OA": 99.00939267814267, + "bioRxiv": 94.05527458511227 + } + }, + "R@1": 61.74666666666667, + "R@5": 82.08, + "R@10": 87.45333333333333, + "R@100": 96.60666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 64.78620552177813, + "bioRxiv": 55.60700624119187 + }, + "domain": { + "bioengineering": 65.3, + "cell_molecular": 59.4, + "cytology_hematology": 59.599999999999994, + "dermatology": 57.8, + "development_anatomy": 65.60000000000001, + "genetics_genomics": 54.50000000000001, + "histopathology": 65.3, + "microbiology_immunology": 56.10000000000001, + "molecular_structure": 56.3, + "neuroscience": 64.5, + "ophthalmology": 58.599999999999994, + "physiology_pharmacology": 70.8, + "plant_ecology": 58.5, + "radiology": 70.5, + "surgery_endoscopy": 63.4 + }, + "content_type": { + "bioimage_only": 62.509090909090915, + "chart_only": 52.0, + "mixed_bio_chart": 59.27272727272728, + "schematic_or_diagram": 71.36 + }, + "layout": { + "multi_panel": 62.38888888888889, + "single_panel": 60.09523809523809 + } + } + }, + "mean_recall": { + "R@1": 62.38333333333333, + "R@5": 82.77000000000001, + "R@10": 87.97, + "R@100": 96.66666666666667 + }, + "mean_hierarchical_macro": { + "R@1": 67.88668411487524, + "R@5": 85.167941156334, + "R@10": 89.16993407012352, + "R@100": 96.4815086406422 + } + } + } +} diff --git a/Main/DFN-2B/results/biomedflickr-retrieval.json b/Main/DFN-2B/results/biomedflickr-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..d096415ba9870567790cd0f1114976d88487dacf --- /dev/null +++ b/Main/DFN-2B/results/biomedflickr-retrieval.json @@ -0,0 +1,30 @@ +{ + "benchmark": "BioMedFlickr", + "num_pairs": 7185, + "units": "percent", + "revised_same_caption": { + "image_to_text": { + "R@1": 9.728601, + "R@10": 25.581071, + "R@100": 49.46416 + }, + "text_to_image": { + "R@1": 11.454418, + "R@10": 31.899789, + "R@100": 63.507307 + } + }, + "exact_pair": { + "image_to_text": { + "R@1": 8.239388, + "R@10": 24.53723, + "R@100": 49.241475 + }, + "text_to_image": { + "R@1": 8.559499, + "R@10": 24.286708, + "R@100": 50.702853 + } + }, + "model": "BioLoom (DFN-2B)" +} diff --git a/Main/DFN-2B/results/zero-shot.json b/Main/DFN-2B/results/zero-shot.json new file mode 100644 index 0000000000000000000000000000000000000000..efcdbde43134fb1a304f46477803314d6279470c --- /dev/null +++ b/Main/DFN-2B/results/zero-shot.json @@ -0,0 +1,679 @@ +{ + "model": "BioLoom (DFN-2B)", + "source_count": 43, + "logical_tasks": 67, + "domain_count": 10, + "tasks": [ + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "contour", + "accuracy": 0.39166666666666666, + "macro_f1": 0.3042838701058443, + "auc": 0.6979, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "texture", + "accuracy": 0.3466666666666667, + "macro_f1": 0.19926347125959887, + "auc": 0.7176824074074074, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "eccentricity", + "accuracy": 0.4083333333333333, + "macro_f1": 0.32561033196392314, + "auc": 0.7420324074074074, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "brightfield", + "accuracy": 0.19515477792732167, + "macro_f1": 0.10898253040388958, + "auc": 0.6251774751878909, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "darkfield", + "accuracy": 0.27456258411843876, + "macro_f1": 0.14530111084989134, + "auc": 0.6686627455171552, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "epifluorescence", + "accuracy": 0.09959623149394348, + "macro_f1": 0.09343990420924923, + "auc": 0.5210785636782242, + "n": 743 + }, + { + "domain": "structure_profiling", + "dataset_id": "nirschl_unpub_fluorescence", + "task_id": "structure_identification", + "accuracy": 0.8029978586723768, + "macro_f1": 0.6595160635416194, + "auc": 0.9721258293632417, + "n": 934 + }, + { + "domain": "structure_profiling", + "dataset_id": "empiar_sbfsem", + "task_id": "structure_identification", + "accuracy": 0.8318890814558059, + "macro_f1": 0.811447407458753, + "auc": 0.9770149190968644, + "n": 577 + }, + { + "domain": "structure_profiling", + "dataset_id": "icpr2020_pollen", + "task_id": "pollen_classification", + "accuracy": 0.15714285714285714, + "macro_f1": 0.13953223852419183, + "auc": 0.5930760204081632, + "n": 700 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "domain", + "accuracy": 0.5796708056598325, + "macro_f1": 0.2735327953868351, + "auc": 0.9213042283805644, + "n": 17315 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "modality", + "accuracy": 0.8383521903104149, + "macro_f1": 0.6137051923709511, + "auc": 0.9627276845358032, + "n": 17235 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "stain", + "accuracy": 0.4525533035009213, + "macro_f1": 0.13320755381613394, + "auc": 0.8150373208132256, + "n": 15196 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "submodality", + "accuracy": 0.23492892370176965, + "macro_f1": 0.17281898752781646, + "auc": 0.6561766717509092, + "n": 17235 + }, + { + "domain": "cytology", + "dataset_id": "acevedo_et_al_2020", + "task_id": "cell_type", + "accuracy": 0.608125, + "macro_f1": 0.5915660206988222, + "auc": 0.9045957812500001, + "n": 1600 + }, + { + "domain": "cytology", + "dataset_id": "jung_et_al_2022", + "task_id": "cell_type", + "accuracy": 0.536, + "macro_f1": 0.47760265513713784, + "auc": 0.8735828000000002, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "hussain_et_al_2019", + "task_id": "cell_type", + "accuracy": 0.7150259067357513, + "macro_f1": 0.384135119245418, + "auc": 0.9164944025342963, + "n": 193 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2016", + "task_id": "tissue_classification", + "accuracy": 0.617, + "macro_f1": 0.5363041095301511, + "auc": 0.8907652, + "n": 1000 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2018_val7k", + "task_id": "tissue_classification", + "accuracy": 0.7617960426179604, + "macro_f1": 0.6795702902204666, + "auc": 0.9499153247198534, + "n": 1314 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "colon_tissue", + "accuracy": 0.8471849865951743, + "macro_f1": 0.8435310568148366, + "auc": 0.9987852999734059, + "n": 1492 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "lung_tissue", + "accuracy": 0.9069973427812223, + "macro_f1": 0.9073066502318358, + "auc": 0.9857089729480594, + "n": 2258 + }, + { + "domain": "histopathology", + "dataset_id": "patchcamelyon", + "task_id": "metastasis", + "accuracy": 0.716705322265625, + "macro_f1": 0.6949060076817202, + "auc": 0.919743359340074, + "n": 32768 + }, + { + "domain": "histopathology", + "dataset_id": "tang_et_al_2019", + "task_id": "tissue_classification", + "accuracy": 0.49287169042769857, + "macro_f1": 0.31076933448618294, + "auc": 0.8070078106528512, + "n": 491 + }, + { + "domain": "histopathology", + "dataset_id": "wong_et_al_2022", + "task_id": "tissue_classification", + "accuracy": 0.2825, + "macro_f1": 0.24216364661738365, + "auc": 0.69718046875, + "n": 800 + }, + { + "domain": "histopathology", + "dataset_id": "nirschl_et_al_2018", + "task_id": "tissue_classification", + "accuracy": 0.5725, + "macro_f1": 0.36105161536561825, + "auc": 0.8050562499999999, + "n": 400 + }, + { + "domain": "histopathology", + "dataset_id": "wu_et_al_2023", + "task_id": "tissue_classification", + "accuracy": 0.68359375, + "macro_f1": 0.5214953271028038, + "auc": 0.8748703002929688, + "n": 256 + }, + { + "domain": "radiology", + "dataset_id": "chexpert", + "task_id": "chest_finding", + "accuracy": 0.19658119658119658, + "macro_f1": 0.1651007383270731, + "auc": 0.6256216447322931, + "n": 234 + }, + { + "domain": "radiology", + "dataset_id": "pneumoniamnist", + "task_id": "pneumonia", + "accuracy": 0.9262820512820513, + "macro_f1": 0.9202205718859786, + "auc": 0.9799474030243261, + "n": 624 + }, + { + "domain": "radiology", + "dataset_id": "chestmnist", + "task_id": "multilabel_chest_findings", + "protocol": "medpmc", + "sample_count": "22433", + "split": "test", + "source_key": "medpmc_medmnist", + "accuracy": 0.8290528621737109, + "macro_f1": 0.1860076730736015, + "auc": 0.7325071990069326, + "n": 22433 + }, + { + "domain": "radiology", + "dataset_id": "rsna_pneumonia", + "task_id": "pneumonia", + "protocol": "medpmc", + "sample_count": "26684", + "split": "stage_2_train", + "source_key": "rsna_complete", + "accuracy": 0.7356093539199521, + "macro_f1": 0.700388133397481, + "auc": 0.854656785500207, + "n": 26684 + }, + { + "domain": "radiology", + "dataset_id": "breastmnist", + "task_id": "breast_ultrasound", + "accuracy": 0.8205128205128205, + "macro_f1": 0.7719298245614035, + "auc": 0.8222639933166249, + "n": 156 + }, + { + "domain": "ophthalmology", + "dataset_id": "retinamnist", + "task_id": "dr_severity", + "accuracy": 0.505, + "macro_f1": 0.3898565733884129, + "auc": 0.7644145486733628, + "n": 400 + }, + { + "domain": "ophthalmology", + "dataset_id": "deepdrid", + "task_id": "dr_severity", + "protocol": "medpmc", + "sample_count": "400", + "split": "challenge_evaluation", + "source_key": "deepdrid_official", + "accuracy": 0.51, + "macro_f1": 0.46771346010439974, + "auc": 0.7859540134890072, + "n": 400 + }, + { + "domain": "dermatology", + "dataset_id": "dermamnist", + "task_id": "skin_lesion", + "accuracy": 0.5665835411471322, + "macro_f1": 0.3126117400068245, + "auc": 0.8289903702292607, + "n": 2005 + }, + { + "domain": "dermatology", + "dataset_id": "ham10000", + "task_id": "skin_lesion", + "protocol": "medpmc", + "sample_count": "1512", + "split": "isic2018_task3_test", + "source_key": "ham10000_official", + "accuracy": 0.6382275132275133, + "macro_f1": 0.40387196938748815, + "auc": 0.8565398300792145, + "n": 1512 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "abdominal_wall_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5503059143439837, + "macro_f1": 0.548635021557235, + "auc": 0.5830251766980796, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "colon_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.6672331747110809, + "macro_f1": 0.5896846552109025, + "auc": 0.7146053600406043, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "inferior_mesenteric_artery_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.6604350781781101, + "macro_f1": 0.5170594281235442, + "auc": 0.7097355578164245, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "intestinal_veins_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.9055064581917063, + "macro_f1": 0.5887259634725239, + "auc": 0.8399159906001678, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "liver_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7586675730795377, + "macro_f1": 0.6158087802523777, + "auc": 0.7620400748322849, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "pancreas_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5506458191706323, + "macro_f1": 0.4815539768122371, + "auc": 0.6214609630646513, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "small_intestine_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7219578518014956, + "macro_f1": 0.5141792171654163, + "auc": 0.6962128127441206, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "spleen_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.37491502379333785, + "macro_f1": 0.35008917396689554, + "auc": 0.7707054970908975, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "stomach_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7522093813732155, + "macro_f1": 0.532443223622897, + "auc": 0.5878621585541388, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "ureter_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8358259687287559, + "macro_f1": 0.4653451041345673, + "auc": 0.37636463844797174, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "vesicular_glands_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8721957851801495, + "macro_f1": 0.5262901855455367, + "auc": 0.6554962852897473, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "multilabel_anatomy", + "protocol": "medpmc_public_variant", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8251529571719919, + "macro_f1": 0.1498957283488797, + "auc": 0.7087508184464022, + "n": 2942 + }, + { + "domain": "ophthalmology", + "dataset_id": "octmnist", + "task_id": "octmnist", + "accuracy": 0.581, + "macro_f1": 0.541095685538681, + "auc": 0.8292200000000001, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "tissuemnist", + "task_id": "tissuemnist", + "accuracy": 0.08210659898477157, + "macro_f1": 0.043530169540161714, + "auc": 0.4791667644158544, + "n": 47280 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organamnist", + "accuracy": 0.20350995612554842, + "macro_f1": 0.1654100264495627, + "auc": 0.7184475628471398, + "n": 17778 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organcmnist", + "accuracy": 0.14386562804284322, + "macro_f1": 0.10972410464664276, + "auc": 0.6517290129884435, + "n": 8216 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organsmnist", + "accuracy": 0.18024243797439674, + "macro_f1": 0.12907488285452676, + "auc": 0.6417438492797486, + "n": 8827 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "coos7", + "task_id": "subcellular_localization", + "accuracy": 0.35947601840741755, + "macro_f1": 0.27965911977359026, + "auc": 0.8662573882678352, + "n": 90753, + "aggregation": "unweighted_mean_across_four_test_conditions" + }, + { + "domain": "ophthalmology", + "dataset_id": "rfmid", + "task_id": "rfmid", + "accuracy": 0.7953125, + "macro_f1": 0.758802528200599, + "auc": 0.9355347767093387, + "n": 640 + }, + { + "domain": "ophthalmology", + "dataset_id": "papila", + "task_id": "papila", + "accuracy": 0.6905737704918032, + "macro_f1": 0.36412727484156054, + "auc": 0.6850437837291844, + "n": 488 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "gastrovision", + "task_id": "gastrovision", + "accuracy": 0.46847414880201765, + "macro_f1": 0.3932089026167944, + "auc": 0.9440342324175287, + "n": 1586 + }, + { + "domain": "dermatology", + "dataset_id": "derm12345", + "task_id": "derm12345", + "accuracy": 0.2414486921529175, + "macro_f1": 0.22573799003832867, + "auc": 0.751788241412055, + "n": 2485 + }, + { + "domain": "cytology", + "dataset_id": "ku_optofil", + "task_id": "ku_optofil", + "accuracy": 0.4464874241110147, + "macro_f1": 0.15694033615539, + "auc": 0.8733380510630098, + "n": 5765 + }, + { + "domain": "cytology", + "dataset_id": "medimeta_aml", + "task_id": "medimeta_aml", + "accuracy": 0.1241154055525313, + "macro_f1": 0.10821095970341536, + "auc": 0.8333399447522044, + "n": 3674 + }, + { + "domain": "cytology", + "dataset_id": "cytodata", + "task_id": "cytodata", + "accuracy": 0.36, + "macro_f1": 0.2816736086249932, + "auc": 0.8729135584373072, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "raabin_wbc", + "task_id": "raabin_wbc", + "accuracy": 0.7770207494580366, + "macro_f1": 0.552176586152672, + "auc": 0.9216085266975886, + "n": 6458 + }, + { + "domain": "microscopy_composition", + "dataset_id": "omnipose", + "task_id": "omnipose_modality", + "accuracy": 1.0, + "macro_f1": 1.0, + "auc": 1.0, + "n": 223 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "hyperkvasir", + "task_id": "hyperkvasir", + "accuracy": 0.5538360532733071, + "macro_f1": 0.35270776508778195, + "auc": 0.9546668074696499, + "n": 10662 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_eggs", + "accuracy": 0.6170046801872074, + "macro_f1": 0.09493152177813231, + "auc": 0.7232563422018711, + "n": 4485, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_larvae", + "accuracy": 0.8580632935379949, + "macro_f1": 0.7765324644275623, + "auc": 0.949391189700636, + "n": 3072, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_protozoan_cysts", + "accuracy": 0.4110484937034718, + "macro_f1": 0.1442899479616674, + "auc": 0.7089905516416158, + "n": 8376, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_morphology", + "accuracy": 0.6564625850340136, + "macro_f1": 0.2743651144714399, + "auc": 0.7508390968106841, + "n": 294 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_gram", + "accuracy": 0.6496598639455783, + "macro_f1": 0.6446233467510063, + "auc": 0.8276077097505669, + "n": 294 + } + ] +} diff --git a/Main/Scratch/BioClinicalModernBERT-large-ViT-L-14-pretrained.json b/Main/Scratch/BioClinicalModernBERT-large-ViT-L-14-pretrained.json new file mode 100644 index 0000000000000000000000000000000000000000..31dada30994a1a2ada80df305de1f6d715256313 --- /dev/null +++ b/Main/Scratch/BioClinicalModernBERT-large-ViT-L-14-pretrained.json @@ -0,0 +1,18 @@ +{ + "embed_dim": 768, + "vision_cfg": { + "timm_model_name": "vit_large_patch14_clip_224.dfn2b_s39b", + "timm_model_pretrained": true, + "timm_pool": "", + "timm_proj": "linear", + "timm_drop": 0.0, + "timm_drop_path": 0.1, + "image_size": 224 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } \ No newline at end of file diff --git a/Main/Scratch/manifest.json b/Main/Scratch/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..e2b5c9451a567427440dd17d248778a769909d04 --- /dev/null +++ b/Main/Scratch/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "BioLoom (Scratch)", + "paper_location": "Main/Supplement results; Table 5; Figure 5 reference", + "architecture": "BioClinicalModernBERT-large-ViT-L-14-pretrained", + "checkpoint": "Main/Scratch/open_clip_pytorch_model.bin", + "sha256": "c33050042089d02c57313c89d5c9cbaf025be5ee359303aab419ad6337f655ad", + "bytes": 1816835925, + "paper_metrics_percent": { + "zero_shot": 52.89, + "bioloombench": 57.13, + "biomedflickr": 8.42 + }, + "results": { + "zero_shot": "Main/Scratch/results/zero-shot.json", + "biomedflickr": "Main/Scratch/results/biomedflickr-retrieval.json", + "bioloombench": "Main/Scratch/results/bioloom-retrieval.json" + }, + "config": "Main/Scratch/open_clip_config.json" +} diff --git a/Main/Scratch/open_clip_config.json b/Main/Scratch/open_clip_config.json new file mode 100644 index 0000000000000000000000000000000000000000..de7e43a62de5935dba6c900b9789a6c160089bcb --- /dev/null +++ b/Main/Scratch/open_clip_config.json @@ -0,0 +1,20 @@ +{ + "model_cfg": { + "embed_dim": 768, + "vision_cfg": { + "timm_model_name": "vit_large_patch14_clip_224.dfn2b_s39b", + "timm_model_pretrained": true, + "timm_pool": "", + "timm_proj": "linear", + "timm_drop": 0.0, + "timm_drop_path": 0.1, + "image_size": 224 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } +} diff --git a/Main/Scratch/open_clip_pytorch_model.bin b/Main/Scratch/open_clip_pytorch_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..15a519acdce15bdb4cb3d6499b3736f3cb93fcce --- /dev/null +++ b/Main/Scratch/open_clip_pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c33050042089d02c57313c89d5c9cbaf025be5ee359303aab419ad6337f655ad +size 1816835925 diff --git a/Main/Scratch/results/bioloom-retrieval.json b/Main/Scratch/results/bioloom-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..83f399738b05b5f4555134efffa8b71d909b0202 --- /dev/null +++ b/Main/Scratch/results/bioloom-retrieval.json @@ -0,0 +1,447 @@ +{ + "benchmark": "BioLoomBench", + "split": "test", + "model": "BioLoom (Scratch)", + "protocol": { + "concise_caption": "concise visual caption at native context", + "source_caption_native": "original source caption at native context", + "source_caption_cap77": "original source caption capped at 77 tokens; shorter native limits are retained", + "native_context_length": 512, + "cap77_effective_context_length": 77, + "retrieval_directions": [ + "image_to_text", + "text_to_image" + ], + "recall_k": [ + 1, + 5, + 10, + 100 + ] + }, + "tracks": { + "concise_caption": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 70.22452417416193, + "R@5": 88.30418262563765, + "R@10": 93.29660094950046, + "R@100": 99.17051297761893 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 68.87209247375453, + "bioRxiv": 71.57695587456931 + }, + "R@5": { + "Europe PMC OA": 88.33886176754736, + "bioRxiv": 88.26950348372795 + }, + "R@10": { + "Europe PMC OA": 93.35431450593543, + "bioRxiv": 93.2388873930655 + }, + "R@100": { + "Europe PMC OA": 99.22875738514146, + "bioRxiv": 99.11226857009639 + } + }, + "R@1": 61.93333333333333, + "R@5": 84.70666666666666, + "R@10": 90.60666666666667, + "R@100": 98.78666666666666, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 60.30100667796272, + "bioRxiv": 65.23052144151399 + }, + "domain": { + "bioengineering": 69.89999999999999, + "cell_molecular": 61.5, + "cytology_hematology": 53.400000000000006, + "dermatology": 53.900000000000006, + "development_anatomy": 63.800000000000004, + "genetics_genomics": 63.4, + "histopathology": 57.199999999999996, + "microbiology_immunology": 65.60000000000001, + "molecular_structure": 55.60000000000001, + "neuroscience": 67.7, + "ophthalmology": 55.60000000000001, + "physiology_pharmacology": 65.4, + "plant_ecology": 64.2, + "radiology": 69.6, + "surgery_endoscopy": 62.2 + }, + "content_type": { + "bioimage_only": 59.49090909090909, + "chart_only": 64.93333333333334, + "mixed_bio_chart": 59.52727272727273, + "schematic_or_diagram": 70.8 + }, + "layout": { + "multi_panel": 60.38888888888889, + "single_panel": 65.9047619047619 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 63.46153533215452, + "R@5": 83.18101556100058, + "R@10": 88.98471116120893, + "R@100": 98.4484195948493 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 61.24033551945729, + "bioRxiv": 65.68273514485175 + }, + "R@5": { + "Europe PMC OA": 82.1175982545579, + "bioRxiv": 84.24443286744324 + }, + "R@10": { + "Europe PMC OA": 88.34546327751558, + "bioRxiv": 89.6239590449023 + }, + "R@100": { + "Europe PMC OA": 98.61991441142753, + "bioRxiv": 98.27692477827107 + } + }, + "R@1": 52.33333333333333, + "R@5": 77.01333333333334, + "R@10": 83.86, + "R@100": 97.44, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 49.77574005780923, + "bioRxiv": 57.4994966780753 + }, + "domain": { + "bioengineering": 61.1, + "cell_molecular": 53.400000000000006, + "cytology_hematology": 44.3, + "dermatology": 47.599999999999994, + "development_anatomy": 50.1, + "genetics_genomics": 55.7, + "histopathology": 44.4, + "microbiology_immunology": 54.6, + "molecular_structure": 45.2, + "neuroscience": 55.900000000000006, + "ophthalmology": 44.0, + "physiology_pharmacology": 56.2, + "plant_ecology": 54.900000000000006, + "radiology": 62.3, + "surgery_endoscopy": 55.300000000000004 + }, + "content_type": { + "bioimage_only": 51.2, + "chart_only": 55.53333333333333, + "mixed_bio_chart": 46.36363636363636, + "schematic_or_diagram": 66.03999999999999 + }, + "layout": { + "multi_panel": 48.42592592592593, + "single_panel": 62.38095238095238 + } + } + }, + "mean_recall": { + "R@1": 57.133333333333326, + "R@5": 80.86, + "R@10": 87.23333333333333, + "R@100": 98.11333333333333 + }, + "mean_hierarchical_macro": { + "R@1": 66.84302975315822, + "R@5": 85.74259909331911, + "R@10": 91.1406560553547, + "R@100": 98.80946628623411 + } + }, + "source_caption_native": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 76.39342466193963, + "R@5": 89.64610420348565, + "R@10": 92.08823341304057, + "R@100": 97.81947659496751 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 81.59675562987717, + "bioRxiv": 71.19009369400209 + }, + "R@5": { + "Europe PMC OA": 93.91269126465302, + "bioRxiv": 85.37951714231828 + }, + "R@10": { + "Europe PMC OA": 96.1439580368856, + "bioRxiv": 88.03250878919555 + }, + "R@100": { + "Europe PMC OA": 99.60076181481197, + "bioRxiv": 96.03819137512303 + } + }, + "R@1": 75.91333333333333, + "R@5": 89.78666666666668, + "R@10": 92.94, + "R@100": 98.09333333333333, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 80.14551978471044, + "bioRxiv": 67.36460640225488 + }, + "domain": { + "bioengineering": 79.9, + "cell_molecular": 80.4, + "cytology_hematology": 77.7, + "dermatology": 64.9, + "development_anatomy": 83.0, + "genetics_genomics": 61.199999999999996, + "histopathology": 83.3, + "microbiology_immunology": 74.5, + "molecular_structure": 84.6, + "neuroscience": 80.2, + "ophthalmology": 73.5, + "physiology_pharmacology": 80.10000000000001, + "plant_ecology": 70.1, + "radiology": 77.5, + "surgery_endoscopy": 67.80000000000001 + }, + "content_type": { + "bioimage_only": 72.39999999999999, + "chart_only": 52.86666666666666, + "mixed_bio_chart": 84.98181818181818, + "schematic_or_diagram": 77.52 + }, + "layout": { + "multi_panel": 82.32407407407408, + "single_panel": 59.42857142857143 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 72.96725598863003, + "R@5": 86.709362540341, + "R@10": 89.76703087291332, + "R@100": 96.55466688867475 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 77.51430560105803, + "bioRxiv": 68.42020637620202 + }, + "R@5": { + "Europe PMC OA": 90.73729114229711, + "bioRxiv": 82.68143393838491 + }, + "R@10": { + "Europe PMC OA": 93.95508042592405, + "bioRxiv": 85.5789813199026 + }, + "R@100": { + "Europe PMC OA": 98.5670184375937, + "bioRxiv": 94.54231533975579 + } + }, + "R@1": 74.22, + "R@5": 88.44, + "R@10": 91.52, + "R@100": 97.43333333333334, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 79.21857869032193, + "bioRxiv": 64.12321320716731 + }, + "domain": { + "bioengineering": 76.4, + "cell_molecular": 79.0, + "cytology_hematology": 76.7, + "dermatology": 64.7, + "development_anatomy": 81.10000000000001, + "genetics_genomics": 58.699999999999996, + "histopathology": 83.5, + "microbiology_immunology": 69.8, + "molecular_structure": 83.5, + "neuroscience": 78.3, + "ophthalmology": 72.6, + "physiology_pharmacology": 76.9, + "plant_ecology": 66.5, + "radiology": 78.3, + "surgery_endoscopy": 67.30000000000001 + }, + "content_type": { + "bioimage_only": 72.85454545454544, + "chart_only": 40.33333333333333, + "mixed_bio_chart": 83.21818181818182, + "schematic_or_diagram": 77.75999999999999 + }, + "layout": { + "multi_panel": 81.50925925925925, + "single_panel": 55.47619047619048 + } + } + }, + "mean_recall": { + "R@1": 75.06666666666666, + "R@5": 89.11333333333334, + "R@10": 92.22999999999999, + "R@100": 97.76333333333334 + }, + "mean_hierarchical_macro": { + "R@1": 74.68034032528483, + "R@5": 88.17773337191332, + "R@10": 90.92763214297695, + "R@100": 97.18707174182113 + } + }, + "source_caption_cap77": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 60.81989805407315, + "R@5": 81.133341042902, + "R@10": 85.17811267167677, + "R@100": 95.62572943480507 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 65.52327896859693, + "bioRxiv": 56.11651713954938 + }, + "R@5": { + "Europe PMC OA": 84.70404378328847, + "bioRxiv": 77.56263830251554 + }, + "R@10": { + "Europe PMC OA": 89.13622422153244, + "bioRxiv": 81.2200011218211 + }, + "R@100": { + "Europe PMC OA": 98.2357241451713, + "bioRxiv": 93.01573472443884 + } + }, + "R@1": 56.03333333333333, + "R@5": 77.44666666666666, + "R@10": 83.45333333333333, + "R@100": 95.55333333333334, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 58.86574304794179, + "bioRxiv": 50.31205959331588 + }, + "domain": { + "bioengineering": 61.4, + "cell_molecular": 54.300000000000004, + "cytology_hematology": 53.1, + "dermatology": 51.7, + "development_anatomy": 58.099999999999994, + "genetics_genomics": 48.199999999999996, + "histopathology": 59.0, + "microbiology_immunology": 51.0, + "molecular_structure": 51.800000000000004, + "neuroscience": 59.099999999999994, + "ophthalmology": 53.6, + "physiology_pharmacology": 62.9, + "plant_ecology": 51.5, + "radiology": 67.60000000000001, + "surgery_endoscopy": 57.199999999999996 + }, + "content_type": { + "bioimage_only": 57.381818181818176, + "chart_only": 46.53333333333333, + "mixed_bio_chart": 53.49090909090909, + "schematic_or_diagram": 64.36 + }, + "layout": { + "multi_panel": 56.58333333333333, + "single_panel": 54.61904761904762 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 57.61775656570825, + "R@5": 77.08113182627076, + "R@10": 81.72539316246298, + "R@100": 94.01683082787346 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 61.99120294173003, + "bioRxiv": 53.24431018968647 + }, + "R@5": { + "Europe PMC OA": 81.40725548597756, + "bioRxiv": 72.75500816656397 + }, + "R@10": { + "Europe PMC OA": 86.30973072320765, + "bioRxiv": 77.1410556017183 + }, + "R@100": { + "Europe PMC OA": 97.10480518267194, + "bioRxiv": 90.92885647307499 + } + }, + "R@1": 53.2, + "R@5": 74.83999999999999, + "R@10": 81.06, + "R@100": 94.43333333333334, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 56.53343964915778, + "bioRxiv": 46.46668008858466 + }, + "domain": { + "bioengineering": 57.199999999999996, + "cell_molecular": 51.0, + "cytology_hematology": 50.9, + "dermatology": 51.300000000000004, + "development_anatomy": 56.3, + "genetics_genomics": 46.5, + "histopathology": 55.50000000000001, + "microbiology_immunology": 46.1, + "molecular_structure": 46.6, + "neuroscience": 54.0, + "ophthalmology": 53.400000000000006, + "physiology_pharmacology": 58.599999999999994, + "plant_ecology": 48.199999999999996, + "radiology": 66.60000000000001, + "surgery_endoscopy": 55.800000000000004 + }, + "content_type": { + "bioimage_only": 57.58181818181818, + "chart_only": 34.46666666666667, + "mixed_bio_chart": 47.981818181818184, + "schematic_or_diagram": 66.28 + }, + "layout": { + "multi_panel": 53.76851851851852, + "single_panel": 51.73809523809524 + } + } + }, + "mean_recall": { + "R@1": 54.61666666666667, + "R@5": 76.14333333333332, + "R@10": 82.25666666666666, + "R@100": 94.99333333333334 + }, + "mean_hierarchical_macro": { + "R@1": 59.2188273098907, + "R@5": 79.10723643458638, + "R@10": 83.45175291706988, + "R@100": 94.82128013133926 + } + } + } +} diff --git a/Main/Scratch/results/biomedflickr-retrieval.json b/Main/Scratch/results/biomedflickr-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..3bf6457b3686e6ea32bafcf09c2c6845e4168c48 --- /dev/null +++ b/Main/Scratch/results/biomedflickr-retrieval.json @@ -0,0 +1,30 @@ +{ + "benchmark": "BioMedFlickr", + "num_pairs": 7185, + "units": "percent", + "revised_same_caption": { + "image_to_text": { + "R@1": 8.002783, + "R@10": 21.851078, + "R@100": 45.664576 + }, + "text_to_image": { + "R@1": 8.837856, + "R@10": 27.627, + "R@100": 58.747387 + } + }, + "exact_pair": { + "image_to_text": { + "R@1": 7.306889, + "R@10": 21.294363, + "R@100": 45.26096 + }, + "text_to_image": { + "R@1": 6.652749, + "R@10": 20.570633, + "R@100": 45.845511 + } + }, + "model": "BioLoom (Scratch)" +} diff --git a/Main/Scratch/results/zero-shot.json b/Main/Scratch/results/zero-shot.json new file mode 100644 index 0000000000000000000000000000000000000000..b8e3ba3570a123c94f9287b57e56a4eb86f9ddc6 --- /dev/null +++ b/Main/Scratch/results/zero-shot.json @@ -0,0 +1,679 @@ +{ + "model": "BioLoom (Scratch)", + "source_count": 43, + "logical_tasks": 67, + "domain_count": 10, + "tasks": [ + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "contour", + "accuracy": 0.33166666666666667, + "macro_f1": 0.19661304936885418, + "auc": 0.7192962962962963, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "texture", + "accuracy": 0.31166666666666665, + "macro_f1": 0.23320558059034638, + "auc": 0.6718361111111111, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "eccentricity", + "accuracy": 0.44333333333333336, + "macro_f1": 0.3660286126140377, + "auc": 0.7829481481481482, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "brightfield", + "accuracy": 0.180349932705249, + "macro_f1": 0.09355704786797873, + "auc": 0.6096906252886971, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "darkfield", + "accuracy": 0.22476446837146702, + "macro_f1": 0.13285969931342764, + "auc": 0.6858492633806057, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "epifluorescence", + "accuracy": 0.2503364737550471, + "macro_f1": 0.17765698475988684, + "auc": 0.5977708500513541, + "n": 743 + }, + { + "domain": "structure_profiling", + "dataset_id": "nirschl_unpub_fluorescence", + "task_id": "structure_identification", + "accuracy": 0.7890792291220556, + "macro_f1": 0.6553202581634905, + "auc": 0.9731802154166418, + "n": 934 + }, + { + "domain": "structure_profiling", + "dataset_id": "empiar_sbfsem", + "task_id": "structure_identification", + "accuracy": 0.7244367417677643, + "macro_f1": 0.5866505039343286, + "auc": 0.9254213360806658, + "n": 577 + }, + { + "domain": "structure_profiling", + "dataset_id": "icpr2020_pollen", + "task_id": "pollen_classification", + "accuracy": 0.18714285714285714, + "macro_f1": 0.07507826001086258, + "auc": 0.5820854591836735, + "n": 700 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "domain", + "accuracy": 0.6449321397632111, + "macro_f1": 0.2464493305082291, + "auc": 0.9347092435197749, + "n": 17315 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "modality", + "accuracy": 0.9245140702059762, + "macro_f1": 0.6756524960707198, + "auc": 0.9905169715038061, + "n": 17235 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "stain", + "accuracy": 0.5040800210581732, + "macro_f1": 0.1475373737475895, + "auc": 0.8355702704946857, + "n": 15196 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "submodality", + "accuracy": 0.3208006962576153, + "macro_f1": 0.23776212408476702, + "auc": 0.7452764393031398, + "n": 17235 + }, + { + "domain": "cytology", + "dataset_id": "acevedo_et_al_2020", + "task_id": "cell_type", + "accuracy": 0.50625, + "macro_f1": 0.4986539018876388, + "auc": 0.8691492968750001, + "n": 1600 + }, + { + "domain": "cytology", + "dataset_id": "jung_et_al_2022", + "task_id": "cell_type", + "accuracy": 0.543, + "macro_f1": 0.48822019233433805, + "auc": 0.8235621999999999, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "hussain_et_al_2019", + "task_id": "cell_type", + "accuracy": 0.33678756476683935, + "macro_f1": 0.2843665536389995, + "auc": 0.7645977073210019, + "n": 193 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2016", + "task_id": "tissue_classification", + "accuracy": 0.601, + "macro_f1": 0.5098787391104644, + "auc": 0.8883935999999999, + "n": 1000 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2018_val7k", + "task_id": "tissue_classification", + "accuracy": 0.6727549467275494, + "macro_f1": 0.57453321523273, + "auc": 0.9221016381365414, + "n": 1314 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "colon_tissue", + "accuracy": 0.8867292225201072, + "macro_f1": 0.8853267565292411, + "auc": 0.9930352406759194, + "n": 1492 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "lung_tissue", + "accuracy": 0.8480956598759964, + "macro_f1": 0.8418371482428534, + "auc": 0.9845166762295339, + "n": 2258 + }, + { + "domain": "histopathology", + "dataset_id": "patchcamelyon", + "task_id": "metastasis", + "accuracy": 0.7845458984375, + "macro_f1": 0.7793253805360043, + "auc": 0.8970975539005553, + "n": 32768 + }, + { + "domain": "histopathology", + "dataset_id": "tang_et_al_2019", + "task_id": "tissue_classification", + "accuracy": 0.2708757637474542, + "macro_f1": 0.18552229679752105, + "auc": 0.6909202716099568, + "n": 491 + }, + { + "domain": "histopathology", + "dataset_id": "wong_et_al_2022", + "task_id": "tissue_classification", + "accuracy": 0.4375, + "macro_f1": 0.3165905366099716, + "auc": 0.7407902343750001, + "n": 800 + }, + { + "domain": "histopathology", + "dataset_id": "nirschl_et_al_2018", + "task_id": "tissue_classification", + "accuracy": 0.635, + "macro_f1": 0.4147869674185463, + "auc": 0.8381000000000001, + "n": 400 + }, + { + "domain": "histopathology", + "dataset_id": "wu_et_al_2023", + "task_id": "tissue_classification", + "accuracy": 0.67578125, + "macro_f1": 0.26884226884226886, + "auc": 0.8357009887695312, + "n": 256 + }, + { + "domain": "radiology", + "dataset_id": "chexpert", + "task_id": "chest_finding", + "accuracy": 0.42735042735042733, + "macro_f1": 0.2695224587778601, + "auc": 0.6921472600740435, + "n": 234 + }, + { + "domain": "radiology", + "dataset_id": "pneumoniamnist", + "task_id": "pneumonia", + "accuracy": 0.8894230769230769, + "macro_f1": 0.8821516842707424, + "auc": 0.9604426912119219, + "n": 624 + }, + { + "domain": "radiology", + "dataset_id": "chestmnist", + "task_id": "multilabel_chest_findings", + "protocol": "medpmc", + "sample_count": "22433", + "split": "test", + "source_key": "medpmc_medmnist", + "accuracy": 0.8558915118670836, + "macro_f1": 0.1782572748165983, + "auc": 0.720888933220168, + "n": 22433 + }, + { + "domain": "radiology", + "dataset_id": "rsna_pneumonia", + "task_id": "pneumonia", + "protocol": "medpmc", + "sample_count": "26684", + "split": "stage_2_train", + "source_key": "rsna_complete", + "accuracy": 0.7831284664967771, + "macro_f1": 0.7349461373846473, + "auc": 0.8630492739366469, + "n": 26684 + }, + { + "domain": "radiology", + "dataset_id": "breastmnist", + "task_id": "breast_ultrasound", + "accuracy": 0.7756410256410257, + "macro_f1": 0.7463650299623729, + "auc": 0.8243525480367585, + "n": 156 + }, + { + "domain": "ophthalmology", + "dataset_id": "retinamnist", + "task_id": "dr_severity", + "accuracy": 0.515, + "macro_f1": 0.3688920835813874, + "auc": 0.8182558346418703, + "n": 400 + }, + { + "domain": "ophthalmology", + "dataset_id": "deepdrid", + "task_id": "dr_severity", + "protocol": "medpmc", + "sample_count": "400", + "split": "challenge_evaluation", + "source_key": "deepdrid_official", + "accuracy": 0.4475, + "macro_f1": 0.3574926606122178, + "auc": 0.8035751853288631, + "n": 400 + }, + { + "domain": "dermatology", + "dataset_id": "dermamnist", + "task_id": "skin_lesion", + "accuracy": 0.5256857855361596, + "macro_f1": 0.3277349194778342, + "auc": 0.8157338560322077, + "n": 2005 + }, + { + "domain": "dermatology", + "dataset_id": "ham10000", + "task_id": "skin_lesion", + "protocol": "medpmc", + "sample_count": "1512", + "split": "isic2018_task3_test", + "source_key": "ham10000_official", + "accuracy": 0.4503968253968254, + "macro_f1": 0.3019555232189955, + "auc": 0.8365915090095182, + "n": 1512 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "abdominal_wall_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5367097212780422, + "macro_f1": 0.4774145564551705, + "auc": 0.5122343509216454, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "colon_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7134602311352821, + "macro_f1": 0.6914960669295556, + "auc": 0.7738782016913651, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "inferior_mesenteric_artery_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8137321549966009, + "macro_f1": 0.5142850945269795, + "auc": 0.6189247978465223, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "intestinal_veins_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5462270564242012, + "macro_f1": 0.4510533507930897, + "auc": 0.6154623398410737, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "liver_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8684568320870156, + "macro_f1": 0.5700264694030845, + "auc": 0.6817550447148317, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "pancreas_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.43507817811012917, + "macro_f1": 0.39165628209926184, + "auc": 0.49268001518833254, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "small_intestine_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7341944255608429, + "macro_f1": 0.5628146853146854, + "auc": 0.6894351615673784, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "spleen_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8643779741672332, + "macro_f1": 0.6142689133784371, + "auc": 0.6972400618912875, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "stomach_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.6206662134602311, + "macro_f1": 0.523228176318064, + "auc": 0.573747356673928, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "ureter_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.3280081577158396, + "macro_f1": 0.3138230871822883, + "auc": 0.47922674162257495, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "vesicular_glands_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5812372535690007, + "macro_f1": 0.4162687131558825, + "auc": 0.41332392273402674, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "multilabel_anatomy", + "protocol": "medpmc_public_variant", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7737253569000679, + "macro_f1": 0.19204845323161027, + "auc": 0.6452792628620584, + "n": 2942 + }, + { + "domain": "ophthalmology", + "dataset_id": "octmnist", + "task_id": "octmnist", + "accuracy": 0.531, + "macro_f1": 0.5055819884842824, + "auc": 0.8166640000000001, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "tissuemnist", + "task_id": "tissuemnist", + "accuracy": 0.17908206429780033, + "macro_f1": 0.08846219929745384, + "auc": 0.5114224485144594, + "n": 47280 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organamnist", + "accuracy": 0.14894813814827315, + "macro_f1": 0.12378795680597866, + "auc": 0.7107016513140304, + "n": 17778 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organcmnist", + "accuracy": 0.12804284323271664, + "macro_f1": 0.10723177213791385, + "auc": 0.6523942391833106, + "n": 8216 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organsmnist", + "accuracy": 0.15078735697292397, + "macro_f1": 0.11214513533884242, + "auc": 0.6314383217270664, + "n": 8827 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "coos7", + "task_id": "subcellular_localization", + "accuracy": 0.4459879272898275, + "macro_f1": 0.36467907995653126, + "auc": 0.8517957094508603, + "n": 90753, + "aggregation": "unweighted_mean_across_four_test_conditions" + }, + { + "domain": "ophthalmology", + "dataset_id": "rfmid", + "task_id": "rfmid", + "accuracy": 0.6609375, + "macro_f1": 0.6398106723724308, + "auc": 0.9080585216211432, + "n": 640 + }, + { + "domain": "ophthalmology", + "dataset_id": "papila", + "task_id": "papila", + "accuracy": 0.6782786885245902, + "macro_f1": 0.3805416194086533, + "auc": 0.6727613139462675, + "n": 488 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "gastrovision", + "task_id": "gastrovision", + "accuracy": 0.4073139974779319, + "macro_f1": 0.35244122145927903, + "auc": 0.9403510810430231, + "n": 1586 + }, + { + "domain": "dermatology", + "dataset_id": "derm12345", + "task_id": "derm12345", + "accuracy": 0.186317907444668, + "macro_f1": 0.18357313817740584, + "auc": 0.707559659631421, + "n": 2485 + }, + { + "domain": "cytology", + "dataset_id": "ku_optofil", + "task_id": "ku_optofil", + "accuracy": 0.07701647875108412, + "macro_f1": 0.09827499316860837, + "auc": 0.8585976877806426, + "n": 5765 + }, + { + "domain": "cytology", + "dataset_id": "medimeta_aml", + "task_id": "medimeta_aml", + "accuracy": 0.20114316820903647, + "macro_f1": 0.08493733175201812, + "auc": 0.8387518873031375, + "n": 3674 + }, + { + "domain": "cytology", + "dataset_id": "cytodata", + "task_id": "cytodata", + "accuracy": 0.388, + "macro_f1": 0.21987071241958445, + "auc": 0.8431172104950552, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "raabin_wbc", + "task_id": "raabin_wbc", + "accuracy": 0.8053576958810778, + "macro_f1": 0.4212118275493023, + "auc": 0.9504273090332545, + "n": 6458 + }, + { + "domain": "microscopy_composition", + "dataset_id": "omnipose", + "task_id": "omnipose_modality", + "accuracy": 0.9955156950672646, + "macro_f1": 0.994993826467617, + "auc": 1.0, + "n": 223 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "hyperkvasir", + "task_id": "hyperkvasir", + "accuracy": 0.5209154004877133, + "macro_f1": 0.317849027231531, + "auc": 0.9397823327392963, + "n": 10662 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_eggs", + "accuracy": 0.10049401976079042, + "macro_f1": 0.06828236579918534, + "auc": 0.6690102889550872, + "n": 4485, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_larvae", + "accuracy": 0.5031267765776009, + "macro_f1": 0.47000848374105875, + "auc": 0.9789747169225995, + "n": 3072, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_protozoan_cysts", + "accuracy": 0.1348361511166771, + "macro_f1": 0.09566025821457368, + "auc": 0.7234726319810911, + "n": 8376, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_morphology", + "accuracy": 0.4557823129251701, + "macro_f1": 0.2280685653428645, + "auc": 0.7915594421293527, + "n": 294 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_gram", + "accuracy": 0.8877551020408163, + "macro_f1": 0.874668974693519, + "auc": 0.9792517006802721, + "n": 294 + } + ] +} diff --git a/Model-size/ViT-B-14/BioClinicalModernBERT-large-ViT-B-14-randvision.json b/Model-size/ViT-B-14/BioClinicalModernBERT-large-ViT-B-14-randvision.json new file mode 100644 index 0000000000000000000000000000000000000000..9e737310afe4b3eaaa772ec7e42dd9d87940759a --- /dev/null +++ b/Model-size/ViT-B-14/BioClinicalModernBERT-large-ViT-B-14-randvision.json @@ -0,0 +1,16 @@ +{ + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "layers": 12, + "width": 768, + "head_width": 64, + "patch_size": 14 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } +} diff --git a/Model-size/ViT-B-14/manifest.json b/Model-size/ViT-B-14/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..2c35252f63e011f04a92db95ee73e918319a429a --- /dev/null +++ b/Model-size/ViT-B-14/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "ViT-B", + "paper_location": "Figure 5", + "architecture": "BioClinicalModernBERT-large-ViT-B-14-randvision", + "checkpoint": "Model-size/ViT-B-14/open_clip_pytorch_model.bin", + "sha256": "e4f448c745fc2e2ebe0dc95198a26e672199d4656e09af862d95743cb16dba97", + "bytes": 946090268, + "paper_metrics_percent": { + "zero_shot": 51.36, + "bioloombench": 50.61, + "biomedflickr": 7.21 + }, + "results": { + "zero_shot": "Model-size/ViT-B-14/results/zero-shot.json", + "biomedflickr": "Model-size/ViT-B-14/results/biomedflickr-retrieval.json", + "bioloombench": "Model-size/ViT-B-14/results/bioloom-retrieval.json" + }, + "config": "Model-size/ViT-B-14/open_clip_config.json" +} diff --git a/Model-size/ViT-B-14/open_clip_config.json b/Model-size/ViT-B-14/open_clip_config.json new file mode 100644 index 0000000000000000000000000000000000000000..97d41fa6cbb2d6dc83761c9310c6b2445a4761e6 --- /dev/null +++ b/Model-size/ViT-B-14/open_clip_config.json @@ -0,0 +1,18 @@ +{ + "model_cfg": { + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "layers": 12, + "width": 768, + "head_width": 64, + "patch_size": 14 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } +} diff --git a/Model-size/ViT-B-14/open_clip_pytorch_model.bin b/Model-size/ViT-B-14/open_clip_pytorch_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..a5b439b52f67ec82890483167d9fccf5def741c6 --- /dev/null +++ b/Model-size/ViT-B-14/open_clip_pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4f448c745fc2e2ebe0dc95198a26e672199d4656e09af862d95743cb16dba97 +size 946090268 diff --git a/Model-size/ViT-B-14/results/bioloom-retrieval.json b/Model-size/ViT-B-14/results/bioloom-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..92bc077c74a26730cf9b7ad170ea59c137e50685 --- /dev/null +++ b/Model-size/ViT-B-14/results/bioloom-retrieval.json @@ -0,0 +1,447 @@ +{ + "benchmark": "BioLoomBench", + "split": "all", + "model": "ViT-B", + "protocol": { + "concise_caption": "concise visual caption at native context", + "source_caption_native": "original source caption at native context", + "source_caption_cap77": "original source caption capped at 77 tokens; shorter native limits are retained", + "native_context_length": 512, + "cap77_effective_context_length": 77, + "retrieval_directions": [ + "image_to_text", + "text_to_image" + ], + "recall_k": [ + 1, + 5, + 10, + 100 + ] + }, + "tracks": { + "concise_caption": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 64.87734773326972, + "R@5": 84.22786355428876, + "R@10": 89.82173898626431, + "R@100": 98.71224300581633 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 64.29315379035575, + "bioRxiv": 65.46154167618369 + }, + "R@5": { + "Europe PMC OA": 84.03413665714555, + "bioRxiv": 84.42159045143197 + }, + "R@10": { + "Europe PMC OA": 90.23510910726507, + "bioRxiv": 89.40836886526355 + }, + "R@100": { + "Europe PMC OA": 99.07457847269941, + "bioRxiv": 98.34990753893325 + } + }, + "R@1": 55.86, + "R@5": 80.24666666666667, + "R@10": 86.94666666666667, + "R@100": 98.26666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 54.260938901624634, + "bioRxiv": 59.0899939601369 + }, + "domain": { + "bioengineering": 62.7, + "cell_molecular": 54.50000000000001, + "cytology_hematology": 48.3, + "dermatology": 49.1, + "development_anatomy": 57.599999999999994, + "genetics_genomics": 57.099999999999994, + "histopathology": 50.9, + "microbiology_immunology": 57.3, + "molecular_structure": 50.7, + "neuroscience": 60.6, + "ophthalmology": 50.9, + "physiology_pharmacology": 59.8, + "plant_ecology": 59.9, + "radiology": 61.199999999999996, + "surgery_endoscopy": 57.3 + }, + "content_type": { + "bioimage_only": 53.63636363636364, + "chart_only": 60.86666666666667, + "mixed_bio_chart": 52.981818181818184, + "schematic_or_diagram": 64.08 + }, + "layout": { + "multi_panel": 53.87037037037037, + "single_panel": 60.976190476190474 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 55.975618980515975, + "R@5": 78.48214873364695, + "R@10": 85.03271103134401, + "R@100": 97.42249774493237 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 54.26815499067088, + "bioRxiv": 57.68308297036106 + }, + "R@5": { + "Europe PMC OA": 77.4808267053722, + "bioRxiv": 79.48347076192171 + }, + "R@10": { + "Europe PMC OA": 84.67758821095697, + "bioRxiv": 85.38783385173105 + }, + "R@100": { + "Europe PMC OA": 97.75851823066131, + "bioRxiv": 97.08647725920343 + } + }, + "R@1": 45.36, + "R@5": 70.20666666666666, + "R@10": 79.02, + "R@100": 96.28, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 43.42669191667497, + "bioRxiv": 49.26514998993356 + }, + "domain": { + "bioengineering": 50.9, + "cell_molecular": 41.699999999999996, + "cytology_hematology": 38.3, + "dermatology": 40.6, + "development_anatomy": 45.7, + "genetics_genomics": 49.3, + "histopathology": 39.4, + "microbiology_immunology": 45.7, + "molecular_structure": 38.1, + "neuroscience": 48.699999999999996, + "ophthalmology": 38.7, + "physiology_pharmacology": 51.1, + "plant_ecology": 49.1, + "radiology": 55.800000000000004, + "surgery_endoscopy": 47.3 + }, + "content_type": { + "bioimage_only": 44.872727272727275, + "chart_only": 52.0, + "mixed_bio_chart": 38.54545454545455, + "schematic_or_diagram": 57.440000000000005 + }, + "layout": { + "multi_panel": 40.9537037037037, + "single_panel": 56.69047619047619 + } + } + }, + "mean_recall": { + "R@1": 50.61, + "R@5": 75.22666666666666, + "R@10": 82.98333333333333, + "R@100": 97.27333333333334 + }, + "mean_hierarchical_macro": { + "R@1": 60.426483356892845, + "R@5": 81.35500614396786, + "R@10": 87.42722500880416, + "R@100": 98.06737037537435 + } + }, + "source_caption_native": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 70.12021523280862, + "R@5": 84.34823448191243, + "R@10": 87.82251845827125, + "R@100": 97.55261262978244 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 76.03632101419085, + "bioRxiv": 64.20410945142638 + }, + "R@5": { + "Europe PMC OA": 89.15955573660645, + "bioRxiv": 79.5369132272184 + }, + "R@10": { + "Europe PMC OA": 93.01206391081548, + "bioRxiv": 82.63297300572702 + }, + "R@100": { + "Europe PMC OA": 99.23532918708628, + "bioRxiv": 95.86989607247861 + } + }, + "R@1": 70.89333333333333, + "R@5": 86.70666666666666, + "R@10": 90.62, + "R@100": 97.38666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 75.1220970796372, + "bioRxiv": 62.351520032212605 + }, + "domain": { + "bioengineering": 73.8, + "cell_molecular": 76.6, + "cytology_hematology": 73.0, + "dermatology": 60.4, + "development_anatomy": 76.6, + "genetics_genomics": 55.900000000000006, + "histopathology": 79.5, + "microbiology_immunology": 68.4, + "molecular_structure": 79.0, + "neuroscience": 75.1, + "ophthalmology": 67.7, + "physiology_pharmacology": 76.5, + "plant_ecology": 66.0, + "radiology": 72.6, + "surgery_endoscopy": 62.3 + }, + "content_type": { + "bioimage_only": 67.03636363636363, + "chart_only": 50.26666666666667, + "mixed_bio_chart": 80.0, + "schematic_or_diagram": 71.72 + }, + "layout": { + "multi_panel": 77.10185185185185, + "single_panel": 54.92857142857142 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 68.9375706133198, + "R@5": 83.17918102019152, + "R@10": 86.7730762977762, + "R@100": 96.26870133521776 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 74.08768038321263, + "bioRxiv": 63.78746084342699 + }, + "R@5": { + "Europe PMC OA": 87.53516056082424, + "bioRxiv": 78.82320147955882 + }, + "R@10": { + "Europe PMC OA": 91.89718353320282, + "bioRxiv": 81.64896906234958 + }, + "R@100": { + "Europe PMC OA": 98.49185051354951, + "bioRxiv": 94.045552156886 + } + }, + "R@1": 69.15333333333334, + "R@5": 85.68, + "R@10": 89.70666666666666, + "R@100": 96.85333333333334, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 73.87620851191069, + "bioRxiv": 59.61344876182807 + }, + "domain": { + "bioengineering": 71.6, + "cell_molecular": 73.4, + "cytology_hematology": 71.1, + "dermatology": 58.5, + "development_anatomy": 75.0, + "genetics_genomics": 54.300000000000004, + "histopathology": 78.9, + "microbiology_immunology": 65.60000000000001, + "molecular_structure": 77.2, + "neuroscience": 73.1, + "ophthalmology": 67.0, + "physiology_pharmacology": 74.1, + "plant_ecology": 63.800000000000004, + "radiology": 73.3, + "surgery_endoscopy": 60.4 + }, + "content_type": { + "bioimage_only": 66.27272727272727, + "chart_only": 44.13333333333333, + "mixed_bio_chart": 78.18181818181819, + "schematic_or_diagram": 70.64 + }, + "layout": { + "multi_panel": 75.81481481481481, + "single_panel": 52.023809523809526 + } + } + }, + "mean_recall": { + "R@1": 70.02333333333334, + "R@5": 86.19333333333333, + "R@10": 90.16333333333333, + "R@100": 97.12 + }, + "mean_hierarchical_macro": { + "R@1": 69.5288929230642, + "R@5": 83.76370775105198, + "R@10": 87.29779737802372, + "R@100": 96.9106569825001 + } + }, + "source_caption_cap77": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 51.74345929116626, + "R@5": 73.22779892890006, + "R@10": 78.71190878395308, + "R@100": 93.46078255676349 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 57.043679976341956, + "bioRxiv": 46.44323860599056 + }, + "R@5": { + "Europe PMC OA": 78.44200632505547, + "bioRxiv": 68.01359153274463 + }, + "R@10": { + "Europe PMC OA": 84.55250088076612, + "bioRxiv": 72.87131668714005 + }, + "R@100": { + "Europe PMC OA": 96.3758442841143, + "bioRxiv": 90.54572082941269 + } + }, + "R@1": 49.04, + "R@5": 71.38666666666667, + "R@10": 78.17333333333333, + "R@100": 93.41333333333334, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 52.33728695305492, + "bioRxiv": 42.379706059995975 + }, + "domain": { + "bioengineering": 53.2, + "cell_molecular": 46.2, + "cytology_hematology": 45.6, + "dermatology": 46.800000000000004, + "development_anatomy": 49.1, + "genetics_genomics": 40.1, + "histopathology": 52.6, + "microbiology_immunology": 43.9, + "molecular_structure": 45.1, + "neuroscience": 49.4, + "ophthalmology": 47.5, + "physiology_pharmacology": 56.89999999999999, + "plant_ecology": 46.800000000000004, + "radiology": 60.699999999999996, + "surgery_endoscopy": 51.7 + }, + "content_type": { + "bioimage_only": 51.309090909090905, + "chart_only": 42.06666666666667, + "mixed_bio_chart": 45.10909090909091, + "schematic_or_diagram": 56.879999999999995 + }, + "layout": { + "multi_panel": 48.93518518518519, + "single_panel": 49.30952380952381 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 51.8869607844145, + "R@5": 71.69267096333832, + "R@10": 77.41672445781074, + "R@100": 92.35917825047322 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 56.94665588911539, + "bioRxiv": 46.82726567971361 + }, + "R@5": { + "Europe PMC OA": 75.80102054833317, + "bioRxiv": 67.58432137834346 + }, + "R@10": { + "Europe PMC OA": 82.74383762850228, + "bioRxiv": 72.0896112871192 + }, + "R@100": { + "Europe PMC OA": 95.74250857201505, + "bioRxiv": 88.97584792893139 + } + }, + "R@1": 47.3, + "R@5": 68.97999999999999, + "R@10": 76.07333333333334, + "R@100": 91.98666666666668, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 50.77245091199043, + "bioRxiv": 40.285886853231325 + }, + "domain": { + "bioengineering": 50.0, + "cell_molecular": 42.5, + "cytology_hematology": 42.8, + "dermatology": 45.6, + "development_anatomy": 48.9, + "genetics_genomics": 38.5, + "histopathology": 51.5, + "microbiology_immunology": 40.2, + "molecular_structure": 42.0, + "neuroscience": 46.800000000000004, + "ophthalmology": 47.9, + "physiology_pharmacology": 55.900000000000006, + "plant_ecology": 45.5, + "radiology": 61.4, + "surgery_endoscopy": 50.0 + }, + "content_type": { + "bioimage_only": 51.36363636363637, + "chart_only": 38.0, + "mixed_bio_chart": 41.27272727272727, + "schematic_or_diagram": 57.199999999999996 + }, + "layout": { + "multi_panel": 47.19444444444444, + "single_panel": 47.57142857142857 + } + } + }, + "mean_recall": { + "R@1": 48.17, + "R@5": 70.18333333333334, + "R@10": 77.12333333333333, + "R@100": 92.70000000000002 + }, + "mean_hierarchical_macro": { + "R@1": 51.81521003779038, + "R@5": 72.46023494611919, + "R@10": 78.06431662088191, + "R@100": 92.90998040361836 + } + } + } +} diff --git a/Model-size/ViT-B-14/results/biomedflickr-retrieval.json b/Model-size/ViT-B-14/results/biomedflickr-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..a4fdcac992cda10aabe7cb06d85d2b84005c1185 --- /dev/null +++ b/Model-size/ViT-B-14/results/biomedflickr-retrieval.json @@ -0,0 +1,43 @@ +{ + "benchmark": "BioMedFlickr", + "num_pairs": 7185, + "units": "percent", + "revised_same_caption": { + "n_unique_captions": 4281, + "image_to_text": { + "R@1": 6.374391168355942, + "R@5": 14.641614258289337, + "R@10": 19.304105639457703, + "R@100": 40.72372913360596, + "R@1000": 75.33750534057617 + }, + "text_to_image": { + "R@1": 8.044537156820297, + "R@5": 17.34168380498886, + "R@10": 23.256784677505493, + "R@100": 52.99929976463318, + "R@1000": 88.47599029541016 + } + }, + "exact_pair": { + "image_to_text": { + "R@1": 5.887265135699374, + "R@5": 13.862212943632567, + "R@10": 18.761308281141268, + "R@100": 40.208768267223384, + "R@1000": 75.21224773834378, + "mean_rank": 822.942658315936, + "median_rank": 211.0 + }, + "text_to_image": { + "R@1": 5.525400139178845, + "R@5": 12.275574112734864, + "R@10": 16.86847599164927, + "R@100": 40.264439805149614, + "R@1000": 76.79888656924147, + "mean_rank": 728.9934585942937, + "median_rank": 202.0 + } + }, + "model": "ViT-B" +} diff --git a/Model-size/ViT-B-14/results/zero-shot.json b/Model-size/ViT-B-14/results/zero-shot.json new file mode 100644 index 0000000000000000000000000000000000000000..7982c61e0c0af11af404affa5fdba3b636a616ce --- /dev/null +++ b/Model-size/ViT-B-14/results/zero-shot.json @@ -0,0 +1,679 @@ +{ + "model": "ViT-B", + "source_count": 43, + "logical_tasks": 67, + "domain_count": 10, + "tasks": [ + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "contour", + "accuracy": 0.3333333333333333, + "macro_f1": 0.16687526074259493, + "auc": 0.7257393518518519, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "texture", + "accuracy": 0.4033333333333333, + "macro_f1": 0.29859379132696473, + "auc": 0.7589092592592592, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "eccentricity", + "accuracy": 0.4266666666666667, + "macro_f1": 0.33340053276690546, + "auc": 0.7697564814814815, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "brightfield", + "accuracy": 0.30551816958277256, + "macro_f1": 0.24730761276947252, + "auc": 0.6543074980662947, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "darkfield", + "accuracy": 0.0740242261103634, + "macro_f1": 0.04727283501458143, + "auc": 0.5587065640912311, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "epifluorescence", + "accuracy": 0.3297442799461642, + "macro_f1": 0.18397863798705374, + "auc": 0.6698843762057353, + "n": 743 + }, + { + "domain": "structure_profiling", + "dataset_id": "nirschl_unpub_fluorescence", + "task_id": "structure_identification", + "accuracy": 0.7997858672376874, + "macro_f1": 0.7503993395545301, + "auc": 0.9788076198249337, + "n": 934 + }, + { + "domain": "structure_profiling", + "dataset_id": "empiar_sbfsem", + "task_id": "structure_identification", + "accuracy": 0.7123050259965338, + "macro_f1": 0.6467611001740027, + "auc": 0.9377176515112831, + "n": 577 + }, + { + "domain": "structure_profiling", + "dataset_id": "icpr2020_pollen", + "task_id": "pollen_classification", + "accuracy": 0.17857142857142858, + "macro_f1": 0.11591134789059851, + "auc": 0.5647216836734694, + "n": 700 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "domain", + "accuracy": 0.5297141207045913, + "macro_f1": 0.2424713749125603, + "auc": 0.8614800031586753, + "n": 17315 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "modality", + "accuracy": 0.5556135770234987, + "macro_f1": 0.5558313523947029, + "auc": 0.8449773481462292, + "n": 17235 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "stain", + "accuracy": 0.5812713872071598, + "macro_f1": 0.19630395651772709, + "auc": 0.8490116927635563, + "n": 15196 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "submodality", + "accuracy": 0.2761821874093415, + "macro_f1": 0.18507459561167633, + "auc": 0.6657030911707131, + "n": 17235 + }, + { + "domain": "cytology", + "dataset_id": "acevedo_et_al_2020", + "task_id": "cell_type", + "accuracy": 0.4875, + "macro_f1": 0.4677791350006112, + "auc": 0.818567109375, + "n": 1600 + }, + { + "domain": "cytology", + "dataset_id": "jung_et_al_2022", + "task_id": "cell_type", + "accuracy": 0.367, + "macro_f1": 0.27112624602169966, + "auc": 0.7525016, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "hussain_et_al_2019", + "task_id": "cell_type", + "accuracy": 0.44559585492227977, + "macro_f1": 0.27651104032609247, + "auc": 0.8003234986174126, + "n": 193 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2016", + "task_id": "tissue_classification", + "accuracy": 0.39, + "macro_f1": 0.39276154845716327, + "auc": 0.7877172, + "n": 1000 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2018_val7k", + "task_id": "tissue_classification", + "accuracy": 0.5509893455098934, + "macro_f1": 0.517776826218758, + "auc": 0.8669842858433586, + "n": 1314 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "colon_tissue", + "accuracy": 0.8398123324396782, + "macro_f1": 0.8356657810631389, + "auc": 0.9935204019291449, + "n": 1492 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "lung_tissue", + "accuracy": 0.8454384410983171, + "macro_f1": 0.8459441800758585, + "auc": 0.9536748852455933, + "n": 2258 + }, + { + "domain": "histopathology", + "dataset_id": "patchcamelyon", + "task_id": "metastasis", + "accuracy": 0.755218505859375, + "macro_f1": 0.7475557370746451, + "auc": 0.8679762278900861, + "n": 32768 + }, + { + "domain": "histopathology", + "dataset_id": "tang_et_al_2019", + "task_id": "tissue_classification", + "accuracy": 0.2729124236252546, + "macro_f1": 0.2219146535735396, + "auc": 0.7366580112078513, + "n": 491 + }, + { + "domain": "histopathology", + "dataset_id": "wong_et_al_2022", + "task_id": "tissue_classification", + "accuracy": 0.33375, + "macro_f1": 0.2213237514914951, + "auc": 0.724748046875, + "n": 800 + }, + { + "domain": "histopathology", + "dataset_id": "nirschl_et_al_2018", + "task_id": "tissue_classification", + "accuracy": 0.505, + "macro_f1": 0.24320533900764096, + "auc": 0.773384375, + "n": 400 + }, + { + "domain": "histopathology", + "dataset_id": "wu_et_al_2023", + "task_id": "tissue_classification", + "accuracy": 0.49609375, + "macro_f1": 0.33190276218164666, + "auc": 0.7191619873046875, + "n": 256 + }, + { + "domain": "radiology", + "dataset_id": "chexpert", + "task_id": "chest_finding", + "accuracy": 0.17094017094017094, + "macro_f1": 0.1707651799837634, + "auc": 0.6339438660866848, + "n": 234 + }, + { + "domain": "radiology", + "dataset_id": "pneumoniamnist", + "task_id": "pneumonia", + "accuracy": 0.8461538461538461, + "macro_f1": 0.8443049028984904, + "auc": 0.9696690773613851, + "n": 624 + }, + { + "domain": "radiology", + "dataset_id": "chestmnist", + "task_id": "multilabel_chest_findings", + "protocol": "medpmc", + "sample_count": "22433", + "split": "test", + "source_key": "medpmc_medmnist", + "accuracy": 0.8574899223720157, + "macro_f1": 0.15801821573842162, + "auc": 0.6998089733779473, + "n": 22433 + }, + { + "domain": "radiology", + "dataset_id": "rsna_pneumonia", + "task_id": "pneumonia", + "protocol": "medpmc", + "sample_count": "26684", + "split": "stage_2_train", + "source_key": "rsna_complete", + "accuracy": 0.7763078998650877, + "macro_f1": 0.7280043546682058, + "auc": 0.8588067552008984, + "n": 26684 + }, + { + "domain": "radiology", + "dataset_id": "breastmnist", + "task_id": "breast_ultrasound", + "accuracy": 0.7884615384615384, + "macro_f1": 0.7406157101828992, + "auc": 0.8082706766917294, + "n": 156 + }, + { + "domain": "ophthalmology", + "dataset_id": "retinamnist", + "task_id": "dr_severity", + "accuracy": 0.45, + "macro_f1": 0.2971928209457449, + "auc": 0.7808801458169987, + "n": 400 + }, + { + "domain": "ophthalmology", + "dataset_id": "deepdrid", + "task_id": "dr_severity", + "protocol": "medpmc", + "sample_count": "400", + "split": "challenge_evaluation", + "source_key": "deepdrid_official", + "accuracy": 0.4775, + "macro_f1": 0.32964431821402335, + "auc": 0.7843269600361127, + "n": 400 + }, + { + "domain": "dermatology", + "dataset_id": "dermamnist", + "task_id": "skin_lesion", + "accuracy": 0.6483790523690773, + "macro_f1": 0.347795561679061, + "auc": 0.8172881311684812, + "n": 2005 + }, + { + "domain": "dermatology", + "dataset_id": "ham10000", + "task_id": "skin_lesion", + "protocol": "medpmc", + "sample_count": "1512", + "split": "isic2018_task3_test", + "source_key": "ham10000_official", + "accuracy": 0.6157407407407407, + "macro_f1": 0.4068884460084628, + "auc": 0.8319418785737958, + "n": 1512 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "abdominal_wall_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5747790618626785, + "macro_f1": 0.5476084327952856, + "auc": 0.6354414395892604, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "colon_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5690006798096533, + "macro_f1": 0.5677539859102707, + "auc": 0.663715713397242, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "inferior_mesenteric_artery_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.13086335825968728, + "macro_f1": 0.12756113206186115, + "auc": 0.6497445924607086, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "intestinal_veins_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.681849082256968, + "macro_f1": 0.5013617110043633, + "auc": 0.6465842367118516, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "liver_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8810333106730116, + "macro_f1": 0.6455372879488874, + "auc": 0.8078002601228568, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "pancreas_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.23045547246770903, + "macro_f1": 0.22925724272926765, + "auc": 0.528554913076947, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "small_intestine_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7165193745751189, + "macro_f1": 0.5350441149718028, + "auc": 0.6204455996788938, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "spleen_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5696804894629504, + "macro_f1": 0.47888988692359996, + "auc": 0.7578450386290658, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "stomach_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5571040108769545, + "macro_f1": 0.51412511871432, + "auc": 0.5933006811797895, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "ureter_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5380693405846363, + "macro_f1": 0.4637880600654021, + "auc": 0.6381376763668429, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "vesicular_glands_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.38443235893949695, + "macro_f1": 0.28876324684563315, + "auc": 0.14516196136701337, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "multilabel_anatomy", + "protocol": "medpmc_public_variant", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7778382053025154, + "macro_f1": 0.17926910117675526, + "auc": 0.6037486383040072, + "n": 2942 + }, + { + "domain": "ophthalmology", + "dataset_id": "octmnist", + "task_id": "octmnist", + "accuracy": 0.557, + "macro_f1": 0.564685096762026, + "auc": 0.8271280000000001, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "tissuemnist", + "task_id": "tissuemnist", + "accuracy": 0.06588409475465314, + "macro_f1": 0.04325534082782938, + "auc": 0.45417005347042494, + "n": 47280 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organamnist", + "accuracy": 0.2301721228484644, + "macro_f1": 0.13377736718957636, + "auc": 0.7257976606832677, + "n": 17778 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organcmnist", + "accuracy": 0.16443524829600778, + "macro_f1": 0.11019412349568762, + "auc": 0.6628992365679542, + "n": 8216 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organsmnist", + "accuracy": 0.23632038065027755, + "macro_f1": 0.14127942622017917, + "auc": 0.6969136984740216, + "n": 8827 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "coos7", + "task_id": "subcellular_localization", + "accuracy": 0.3633388385151851, + "macro_f1": 0.30476231398924225, + "auc": 0.806850293434139, + "n": 90753, + "aggregation": "unweighted_mean_across_four_test_conditions" + }, + { + "domain": "ophthalmology", + "dataset_id": "rfmid", + "task_id": "rfmid", + "accuracy": 0.775, + "macro_f1": 0.7388909665794037, + "auc": 0.9189133384461095, + "n": 640 + }, + { + "domain": "ophthalmology", + "dataset_id": "papila", + "task_id": "papila", + "accuracy": 0.4918032786885246, + "macro_f1": 0.4237626664245055, + "auc": 0.6548545007923087, + "n": 488 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "gastrovision", + "task_id": "gastrovision", + "accuracy": 0.36065573770491804, + "macro_f1": 0.2714665737065825, + "auc": 0.9222862097800747, + "n": 1586 + }, + { + "domain": "dermatology", + "dataset_id": "derm12345", + "task_id": "derm12345", + "accuracy": 0.3352112676056338, + "macro_f1": 0.22379385893340956, + "auc": 0.7097328664936368, + "n": 2485 + }, + { + "domain": "cytology", + "dataset_id": "ku_optofil", + "task_id": "ku_optofil", + "accuracy": 0.39306157849089335, + "macro_f1": 0.11392625924864207, + "auc": 0.7879110178015286, + "n": 5765 + }, + { + "domain": "cytology", + "dataset_id": "medimeta_aml", + "task_id": "medimeta_aml", + "accuracy": 0.28905824714207945, + "macro_f1": 0.10244572657067172, + "auc": 0.8058540025377565, + "n": 3674 + }, + { + "domain": "cytology", + "dataset_id": "cytodata", + "task_id": "cytodata", + "accuracy": 0.241, + "macro_f1": 0.18536104997234779, + "auc": 0.78821057182315, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "raabin_wbc", + "task_id": "raabin_wbc", + "accuracy": 0.46376587178693096, + "macro_f1": 0.3818166034182656, + "auc": 0.8846372089872035, + "n": 6458 + }, + { + "domain": "microscopy_composition", + "dataset_id": "omnipose", + "task_id": "omnipose_modality", + "accuracy": 1.0, + "macro_f1": 1.0, + "auc": 1.0, + "n": 223 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "hyperkvasir", + "task_id": "hyperkvasir", + "accuracy": 0.4915588069780529, + "macro_f1": 0.2798445642572146, + "auc": 0.9329181928876779, + "n": 10662 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_eggs", + "accuracy": 0.3555642225689028, + "macro_f1": 0.10002916292870874, + "auc": 0.7669665207526873, + "n": 4485, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_larvae", + "accuracy": 0.8845935190449118, + "macro_f1": 0.8036615117495879, + "auc": 0.9754885993485342, + "n": 3072, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_protozoan_cysts", + "accuracy": 0.3040423015376052, + "macro_f1": 0.19775956997564736, + "auc": 0.739021338319092, + "n": 8376, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_morphology", + "accuracy": 0.2925170068027211, + "macro_f1": 0.11552311435523115, + "auc": 0.6613509986307319, + "n": 294 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_gram", + "accuracy": 0.5918367346938775, + "macro_f1": 0.5916666666666667, + "auc": 0.907482993197279, + "n": 294 + } + ] +} diff --git a/Model-size/ViT-H-14/BioClinicalModernBERT-large-ViT-H-14-randvision.json b/Model-size/ViT-H-14/BioClinicalModernBERT-large-ViT-H-14-randvision.json new file mode 100644 index 0000000000000000000000000000000000000000..74e61158db487d3b596b702eafb139e06b884d19 --- /dev/null +++ b/Model-size/ViT-H-14/BioClinicalModernBERT-large-ViT-H-14-randvision.json @@ -0,0 +1,16 @@ +{ + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "layers": 32, + "width": 1280, + "head_width": 80, + "patch_size": 14 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } +} diff --git a/Model-size/ViT-H-14/manifest.json b/Model-size/ViT-H-14/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..a826da5c0ab1222911bdcf47ee7fd172d800c69a --- /dev/null +++ b/Model-size/ViT-H-14/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "ViT-H", + "paper_location": "Figure 5", + "architecture": "BioClinicalModernBERT-large-ViT-H-14-randvision", + "checkpoint": "Model-size/ViT-H-14/open_clip_pytorch_model.bin", + "sha256": "54c61b3f704e2a83689bc4b3ae9dc24266521e818f7e0a93033bdda6fb389969", + "bytes": 3127994860, + "paper_metrics_percent": { + "zero_shot": 51.7, + "bioloombench": 55.86, + "biomedflickr": 8.15 + }, + "results": { + "zero_shot": "Model-size/ViT-H-14/results/zero-shot.json", + "biomedflickr": "Model-size/ViT-H-14/results/biomedflickr-retrieval.json", + "bioloombench": "Model-size/ViT-H-14/results/bioloom-retrieval.json" + }, + "config": "Model-size/ViT-H-14/open_clip_config.json" +} diff --git a/Model-size/ViT-H-14/open_clip_config.json b/Model-size/ViT-H-14/open_clip_config.json new file mode 100644 index 0000000000000000000000000000000000000000..deaaee096a488a8f066684d1f8e11a8536932a65 --- /dev/null +++ b/Model-size/ViT-H-14/open_clip_config.json @@ -0,0 +1,18 @@ +{ + "model_cfg": { + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "layers": 32, + "width": 1280, + "head_width": 80, + "patch_size": 14 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } +} diff --git a/Model-size/ViT-H-14/open_clip_pytorch_model.bin b/Model-size/ViT-H-14/open_clip_pytorch_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..879b50c209dc652d4817a77019861d792786a3f6 --- /dev/null +++ b/Model-size/ViT-H-14/open_clip_pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54c61b3f704e2a83689bc4b3ae9dc24266521e818f7e0a93033bdda6fb389969 +size 3127994860 diff --git a/Model-size/ViT-H-14/results/bioloom-retrieval.json b/Model-size/ViT-H-14/results/bioloom-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..f9904a906e6d8b741888ebd01cea10146ff53e9b --- /dev/null +++ b/Model-size/ViT-H-14/results/bioloom-retrieval.json @@ -0,0 +1,447 @@ +{ + "benchmark": "BioLoomBench", + "split": "all", + "model": "ViT-H", + "protocol": { + "concise_caption": "concise visual caption at native context", + "source_caption_native": "original source caption at native context", + "source_caption_cap77": "original source caption capped at 77 tokens; shorter native limits are retained", + "native_context_length": 512, + "cap77_effective_context_length": 77, + "retrieval_directions": [ + "image_to_text", + "text_to_image" + ], + "recall_k": [ + 1, + 5, + 10, + 100 + ] + }, + "tracks": { + "concise_caption": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 68.67994691815315, + "R@5": 87.59410647334914, + "R@10": 91.85882481463148, + "R@100": 99.00673677346927 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 67.62909573970427, + "bioRxiv": 69.73079809660202 + }, + "R@5": { + "Europe PMC OA": 87.05838746684688, + "bioRxiv": 88.1298254798514 + }, + "R@10": { + "Europe PMC OA": 91.84276882519734, + "bioRxiv": 91.87488080406563 + }, + "R@100": { + "Europe PMC OA": 99.30704446214389, + "bioRxiv": 98.70642908479464 + } + }, + "R@1": 60.16666666666667, + "R@5": 83.58, + "R@10": 89.59333333333333, + "R@100": 98.71333333333332, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 58.48699292335293, + "bioRxiv": 63.5594926514999 + }, + "domain": { + "bioengineering": 67.4, + "cell_molecular": 57.9, + "cytology_hematology": 51.6, + "dermatology": 54.900000000000006, + "development_anatomy": 64.60000000000001, + "genetics_genomics": 60.8, + "histopathology": 55.900000000000006, + "microbiology_immunology": 63.800000000000004, + "molecular_structure": 53.300000000000004, + "neuroscience": 65.5, + "ophthalmology": 52.900000000000006, + "physiology_pharmacology": 63.2, + "plant_ecology": 62.7, + "radiology": 68.2, + "surgery_endoscopy": 59.8 + }, + "content_type": { + "bioimage_only": 58.61818181818181, + "chart_only": 63.866666666666674, + "mixed_bio_chart": 57.01818181818182, + "schematic_or_diagram": 68.28 + }, + "layout": { + "multi_panel": 58.416666666666664, + "single_panel": 64.66666666666666 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 61.4800435277841, + "R@5": 82.71808949331381, + "R@10": 88.83436600850604, + "R@100": 98.44513752249604 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 60.84441987172291, + "bioRxiv": 62.11566718384528 + }, + "R@5": { + "Europe PMC OA": 82.35173830087913, + "bioRxiv": 83.0844406857485 + }, + "R@10": { + "Europe PMC OA": 88.72616951581733, + "bioRxiv": 88.94256250119473 + }, + "R@100": { + "Europe PMC OA": 98.64624254017687, + "bioRxiv": 98.24403250481521 + } + }, + "R@1": 51.55333333333333, + "R@5": 76.16000000000001, + "R@10": 83.91333333333333, + "R@100": 97.34666666666666, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 49.765772949267415, + "bioRxiv": 55.16408294745319 + }, + "domain": { + "bioengineering": 58.5, + "cell_molecular": 49.6, + "cytology_hematology": 43.4, + "dermatology": 48.6, + "development_anatomy": 50.4, + "genetics_genomics": 55.900000000000006, + "histopathology": 44.6, + "microbiology_immunology": 51.800000000000004, + "molecular_structure": 43.0, + "neuroscience": 57.199999999999996, + "ophthalmology": 42.1, + "physiology_pharmacology": 59.099999999999994, + "plant_ecology": 54.1, + "radiology": 60.6, + "surgery_endoscopy": 54.400000000000006 + }, + "content_type": { + "bioimage_only": 50.709090909090904, + "chart_only": 60.73333333333333, + "mixed_bio_chart": 44.472727272727276, + "schematic_or_diagram": 63.480000000000004 + }, + "layout": { + "multi_panel": 47.27777777777778, + "single_panel": 62.54761904761905 + } + } + }, + "mean_recall": { + "R@1": 55.86, + "R@5": 79.87, + "R@10": 86.75333333333333, + "R@100": 98.03 + }, + "mean_hierarchical_macro": { + "R@1": 65.07999522296862, + "R@5": 85.15609798333148, + "R@10": 90.34659541156876, + "R@100": 98.72593714798265 + } + }, + "source_caption_native": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 75.33572943909206, + "R@5": 86.67826532226167, + "R@10": 91.68300653062903, + "R@100": 97.94908509194146 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 80.1867329491252, + "bioRxiv": 70.48472592905894 + }, + "R@5": { + "Europe PMC OA": 93.28788056185432, + "bioRxiv": 80.068650082669 + }, + "R@10": { + "Europe PMC OA": 96.04687652677711, + "bioRxiv": 87.31913653448095 + }, + "R@100": { + "Europe PMC OA": 99.47994852386621, + "bioRxiv": 96.4182216600167 + } + }, + "R@1": 75.43333333333334, + "R@5": 89.43333333333334, + "R@10": 92.78, + "R@100": 97.98, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 79.36808531844912, + "bioRxiv": 67.48540366418361 + }, + "domain": { + "bioengineering": 78.4, + "cell_molecular": 79.2, + "cytology_hematology": 77.7, + "dermatology": 65.4, + "development_anatomy": 80.7, + "genetics_genomics": 60.9, + "histopathology": 83.7, + "microbiology_immunology": 72.7, + "molecular_structure": 83.3, + "neuroscience": 79.0, + "ophthalmology": 72.2, + "physiology_pharmacology": 80.7, + "plant_ecology": 70.8, + "radiology": 78.60000000000001, + "surgery_endoscopy": 68.2 + }, + "content_type": { + "bioimage_only": 72.34545454545454, + "chart_only": 54.733333333333334, + "mixed_bio_chart": 83.52727272727273, + "schematic_or_diagram": 76.84 + }, + "layout": { + "multi_panel": 81.26851851851852, + "single_panel": 60.42857142857143 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 72.182173523699, + "R@5": 87.54715385462525, + "R@10": 90.65104649243938, + "R@100": 97.77995157578323 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 78.18317545149917, + "bioRxiv": 66.18117159589885 + }, + "R@5": { + "Europe PMC OA": 91.97477522853933, + "bioRxiv": 83.11953248071117 + }, + "R@10": { + "Europe PMC OA": 95.03716058361267, + "bioRxiv": 86.26493240126608 + }, + "R@100": { + "Europe PMC OA": 99.24221252527029, + "bioRxiv": 96.31769062629617 + } + }, + "R@1": 73.84666666666668, + "R@5": 88.64666666666666, + "R@10": 92.04666666666667, + "R@100": 97.86666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 78.09229542509718, + "bioRxiv": 65.27078719549023 + }, + "domain": { + "bioengineering": 75.8, + "cell_molecular": 78.60000000000001, + "cytology_hematology": 75.3, + "dermatology": 64.7, + "development_anatomy": 79.7, + "genetics_genomics": 60.6, + "histopathology": 83.8, + "microbiology_immunology": 69.1, + "molecular_structure": 81.8, + "neuroscience": 78.3, + "ophthalmology": 71.0, + "physiology_pharmacology": 78.2, + "plant_ecology": 68.10000000000001, + "radiology": 76.5, + "surgery_endoscopy": 66.2 + }, + "content_type": { + "bioimage_only": 71.30909090909091, + "chart_only": 49.266666666666666, + "mixed_bio_chart": 81.94545454545454, + "schematic_or_diagram": 76.36 + }, + "layout": { + "multi_panel": 80.23148148148148, + "single_panel": 57.42857142857143 + } + } + }, + "mean_recall": { + "R@1": 74.64000000000001, + "R@5": 89.03999999999999, + "R@10": 92.41333333333333, + "R@100": 97.92333333333335 + }, + "mean_hierarchical_macro": { + "R@1": 73.75895148139554, + "R@5": 87.11270958844347, + "R@10": 91.1670265115342, + "R@100": 97.86451833386235 + } + }, + "source_caption_cap77": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 59.6014385252856, + "R@5": 79.86528284204641, + "R@10": 84.72154661973403, + "R@100": 95.67783878861695 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 64.22566337643347, + "bioRxiv": 54.97721367413774 + }, + "R@5": { + "Europe PMC OA": 85.13588049106916, + "bioRxiv": 74.59468519302368 + }, + "R@10": { + "Europe PMC OA": 90.09606532854728, + "bioRxiv": 79.34702791092076 + }, + "R@100": { + "Europe PMC OA": 98.44865537399272, + "bioRxiv": 92.90702220324118 + } + }, + "R@1": 56.41333333333334, + "R@5": 77.53999999999999, + "R@10": 83.55333333333334, + "R@100": 95.48666666666666, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 59.852486793581186, + "bioRxiv": 49.46647875981478 + }, + "domain": { + "bioengineering": 60.9, + "cell_molecular": 53.800000000000004, + "cytology_hematology": 52.7, + "dermatology": 52.5, + "development_anatomy": 58.9, + "genetics_genomics": 47.199999999999996, + "histopathology": 60.699999999999996, + "microbiology_immunology": 52.300000000000004, + "molecular_structure": 50.9, + "neuroscience": 60.0, + "ophthalmology": 54.900000000000006, + "physiology_pharmacology": 65.3, + "plant_ecology": 51.300000000000004, + "radiology": 67.5, + "surgery_endoscopy": 57.3 + }, + "content_type": { + "bioimage_only": 57.418181818181814, + "chart_only": 47.333333333333336, + "mixed_bio_chart": 54.54545454545454, + "schematic_or_diagram": 63.75999999999999 + }, + "layout": { + "multi_panel": 56.89814814814815, + "single_panel": 55.166666666666664 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 58.18420298943357, + "R@5": 78.09559113819414, + "R@10": 83.52924537003196, + "R@100": 95.27142476789405 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 63.62029904122225, + "bioRxiv": 52.7481069376449 + }, + "R@5": { + "Europe PMC OA": 83.27202757453945, + "bioRxiv": 72.91915470184883 + }, + "R@10": { + "Europe PMC OA": 88.57399792852884, + "bioRxiv": 78.48449281153506 + }, + "R@100": { + "Europe PMC OA": 98.2326195316256, + "bioRxiv": 92.31023000416248 + } + }, + "R@1": 54.08666666666667, + "R@5": 75.62666666666667, + "R@10": 82.08, + "R@100": 94.96, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 57.71952556563341, + "bioRxiv": 46.74854036641836 + }, + "domain": { + "bioengineering": 57.99999999999999, + "cell_molecular": 52.6, + "cytology_hematology": 51.300000000000004, + "dermatology": 51.7, + "development_anatomy": 56.699999999999996, + "genetics_genomics": 46.5, + "histopathology": 58.9, + "microbiology_immunology": 47.0, + "molecular_structure": 47.599999999999994, + "neuroscience": 54.800000000000004, + "ophthalmology": 53.5, + "physiology_pharmacology": 62.1, + "plant_ecology": 49.7, + "radiology": 65.60000000000001, + "surgery_endoscopy": 55.300000000000004 + }, + "content_type": { + "bioimage_only": 56.49090909090909, + "chart_only": 42.733333333333334, + "mixed_bio_chart": 50.018181818181816, + "schematic_or_diagram": 64.56 + }, + "layout": { + "multi_panel": 54.47222222222222, + "single_panel": 53.095238095238095 + } + } + }, + "mean_recall": { + "R@1": 55.25000000000001, + "R@5": 76.58333333333333, + "R@10": 82.81666666666666, + "R@100": 95.22333333333333 + }, + "mean_hierarchical_macro": { + "R@1": 58.89282075735959, + "R@5": 78.98043699012027, + "R@10": 84.125395994883, + "R@100": 95.4746317782555 + } + } + } +} diff --git a/Model-size/ViT-H-14/results/biomedflickr-retrieval.json b/Model-size/ViT-H-14/results/biomedflickr-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..acabec19d398915ee6cb8dc4d92539c56328ef10 --- /dev/null +++ b/Model-size/ViT-H-14/results/biomedflickr-retrieval.json @@ -0,0 +1,43 @@ +{ + "benchmark": "BioMedFlickr", + "num_pairs": 7185, + "units": "percent", + "revised_same_caption": { + "n_unique_captions": 4281, + "image_to_text": { + "R@1": 7.988865673542023, + "R@5": 16.29784256219864, + "R@10": 20.90466171503067, + "R@100": 44.286707043647766, + "R@1000": 77.09115743637085 + }, + "text_to_image": { + "R@1": 8.308976888656616, + "R@5": 19.930410385131836, + "R@10": 26.16562247276306, + "R@100": 56.53444528579712, + "R@1000": 89.61725234985352 + } + }, + "exact_pair": { + "image_to_text": { + "R@1": 6.958942240779402, + "R@5": 15.323590814196242, + "R@10": 20.250521920668056, + "R@100": 44.05010438413361, + "R@1000": 77.00765483646485, + "mean_rank": 715.7340292275574, + "median_rank": 160.0 + }, + "text_to_image": { + "R@1": 6.193458594293667, + "R@5": 14.711203897007655, + "R@10": 20.097425191370913, + "R@100": 44.45372303409882, + "R@1000": 77.68963117606124, + "mean_rank": 682.4353514265831, + "median_rank": 152.0 + } + }, + "model": "ViT-H" +} diff --git a/Model-size/ViT-H-14/results/zero-shot.json b/Model-size/ViT-H-14/results/zero-shot.json new file mode 100644 index 0000000000000000000000000000000000000000..560cf706f089de83720d79de03e1670b45ab663c --- /dev/null +++ b/Model-size/ViT-H-14/results/zero-shot.json @@ -0,0 +1,679 @@ +{ + "model": "ViT-H", + "source_count": 43, + "logical_tasks": 67, + "domain_count": 10, + "tasks": [ + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "contour", + "accuracy": 0.38166666666666665, + "macro_f1": 0.3160486289244075, + "auc": 0.7413064814814814, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "texture", + "accuracy": 0.35333333333333333, + "macro_f1": 0.25843668232010847, + "auc": 0.701436111111111, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "eccentricity", + "accuracy": 0.3383333333333333, + "macro_f1": 0.1771462359875807, + "auc": 0.7464101851851852, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "brightfield", + "accuracy": 0.288021534320323, + "macro_f1": 0.1675309166655448, + "auc": 0.6337665678227838, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "darkfield", + "accuracy": 0.1601615074024226, + "macro_f1": 0.10934797021984165, + "auc": 0.5977558151540896, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "epifluorescence", + "accuracy": 0.1440107671601615, + "macro_f1": 0.0873365325389469, + "auc": 0.5383268514207977, + "n": 743 + }, + { + "domain": "structure_profiling", + "dataset_id": "nirschl_unpub_fluorescence", + "task_id": "structure_identification", + "accuracy": 0.6466809421841542, + "macro_f1": 0.5725546533271545, + "auc": 0.9396503262429559, + "n": 934 + }, + { + "domain": "structure_profiling", + "dataset_id": "empiar_sbfsem", + "task_id": "structure_identification", + "accuracy": 0.6932409012131716, + "macro_f1": 0.6369880568277446, + "auc": 0.913640445860829, + "n": 577 + }, + { + "domain": "structure_profiling", + "dataset_id": "icpr2020_pollen", + "task_id": "pollen_classification", + "accuracy": 0.15142857142857144, + "macro_f1": 0.06615487928093958, + "auc": 0.5047755102040815, + "n": 700 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "domain", + "accuracy": 0.5884493213976321, + "macro_f1": 0.23246781550418913, + "auc": 0.9072001890535557, + "n": 17315 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "modality", + "accuracy": 0.696431679721497, + "macro_f1": 0.6234658397685018, + "auc": 0.8814832118577232, + "n": 17235 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "stain", + "accuracy": 0.45011845222426955, + "macro_f1": 0.1419730643356054, + "auc": 0.7949153134372912, + "n": 15196 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "submodality", + "accuracy": 0.18236147374528575, + "macro_f1": 0.1737894494870458, + "auc": 0.655800865676262, + "n": 17235 + }, + { + "domain": "cytology", + "dataset_id": "acevedo_et_al_2020", + "task_id": "cell_type", + "accuracy": 0.638125, + "macro_f1": 0.6269755097753567, + "auc": 0.907201484375, + "n": 1600 + }, + { + "domain": "cytology", + "dataset_id": "jung_et_al_2022", + "task_id": "cell_type", + "accuracy": 0.542, + "macro_f1": 0.4279725475335142, + "auc": 0.8278008, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "hussain_et_al_2019", + "task_id": "cell_type", + "accuracy": 0.2538860103626943, + "macro_f1": 0.2918093100928922, + "auc": 0.6059759993556874, + "n": 193 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2016", + "task_id": "tissue_classification", + "accuracy": 0.517, + "macro_f1": 0.48642312979462954, + "auc": 0.8407458, + "n": 1000 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2018_val7k", + "task_id": "tissue_classification", + "accuracy": 0.6841704718417048, + "macro_f1": 0.6329275422509366, + "auc": 0.9224508802290751, + "n": 1314 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "colon_tissue", + "accuracy": 0.9671581769436998, + "macro_f1": 0.9671474182538808, + "auc": 0.9978581029116863, + "n": 1492 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "lung_tissue", + "accuracy": 0.8596102745792737, + "macro_f1": 0.8545584540102981, + "auc": 0.9820399116453776, + "n": 2258 + }, + { + "domain": "histopathology", + "dataset_id": "patchcamelyon", + "task_id": "metastasis", + "accuracy": 0.719451904296875, + "macro_f1": 0.6977895386246118, + "auc": 0.9167887006798623, + "n": 32768 + }, + { + "domain": "histopathology", + "dataset_id": "tang_et_al_2019", + "task_id": "tissue_classification", + "accuracy": 0.2525458248472505, + "macro_f1": 0.1678313709503369, + "auc": 0.6923513259029124, + "n": 491 + }, + { + "domain": "histopathology", + "dataset_id": "wong_et_al_2022", + "task_id": "tissue_classification", + "accuracy": 0.29875, + "macro_f1": 0.1622956171257304, + "auc": 0.7455082031250001, + "n": 800 + }, + { + "domain": "histopathology", + "dataset_id": "nirschl_et_al_2018", + "task_id": "tissue_classification", + "accuracy": 0.5075, + "macro_f1": 0.2539489544021433, + "auc": 0.778540625, + "n": 400 + }, + { + "domain": "histopathology", + "dataset_id": "wu_et_al_2023", + "task_id": "tissue_classification", + "accuracy": 0.6796875, + "macro_f1": 0.29886543156685336, + "auc": 0.845245361328125, + "n": 256 + }, + { + "domain": "radiology", + "dataset_id": "chexpert", + "task_id": "chest_finding", + "accuracy": 0.19658119658119658, + "macro_f1": 0.18405381544785293, + "auc": 0.6415084504617395, + "n": 234 + }, + { + "domain": "radiology", + "dataset_id": "pneumoniamnist", + "task_id": "pneumonia", + "accuracy": 0.8990384615384616, + "macro_f1": 0.8962105991282239, + "auc": 0.969197896120973, + "n": 624 + }, + { + "domain": "radiology", + "dataset_id": "chestmnist", + "task_id": "multilabel_chest_findings", + "protocol": "medpmc", + "sample_count": "22433", + "split": "test", + "source_key": "medpmc_medmnist", + "accuracy": 0.8545828530672288, + "macro_f1": 0.17483558782217234, + "auc": 0.731544552473603, + "n": 22433 + }, + { + "domain": "radiology", + "dataset_id": "rsna_pneumonia", + "task_id": "pneumonia", + "protocol": "medpmc", + "sample_count": "26684", + "split": "stage_2_train", + "source_key": "rsna_complete", + "accuracy": 0.7596687153350322, + "macro_f1": 0.7146484369512203, + "auc": 0.8460956175561674, + "n": 26684 + }, + { + "domain": "radiology", + "dataset_id": "breastmnist", + "task_id": "breast_ultrasound", + "accuracy": 0.8269230769230769, + "macro_f1": 0.7585831375021493, + "auc": 0.8212197159565582, + "n": 156 + }, + { + "domain": "ophthalmology", + "dataset_id": "retinamnist", + "task_id": "dr_severity", + "accuracy": 0.48, + "macro_f1": 0.2991494611550515, + "auc": 0.7735733005196737, + "n": 400 + }, + { + "domain": "ophthalmology", + "dataset_id": "deepdrid", + "task_id": "dr_severity", + "protocol": "medpmc", + "sample_count": "400", + "split": "challenge_evaluation", + "source_key": "deepdrid_official", + "accuracy": 0.5475, + "macro_f1": 0.35915397533052007, + "auc": 0.7950884673613364, + "n": 400 + }, + { + "domain": "dermatology", + "dataset_id": "dermamnist", + "task_id": "skin_lesion", + "accuracy": 0.3281795511221945, + "macro_f1": 0.28177019201290565, + "auc": 0.8089835736505372, + "n": 2005 + }, + { + "domain": "dermatology", + "dataset_id": "ham10000", + "task_id": "skin_lesion", + "protocol": "medpmc", + "sample_count": "1512", + "split": "isic2018_task3_test", + "source_key": "ham10000_official", + "accuracy": 0.4914021164021164, + "macro_f1": 0.3542024128155095, + "auc": 0.8258676547359872, + "n": 1512 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "abdominal_wall_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5808973487423521, + "macro_f1": 0.5245257199481728, + "auc": 0.6139003415422001, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "colon_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.6692726036709721, + "macro_f1": 0.6633876380916701, + "auc": 0.7348290644115132, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "inferior_mesenteric_artery_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8647178789938818, + "macro_f1": 0.4985731219338394, + "auc": 0.6315401816466898, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "intestinal_veins_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8898708361658736, + "macro_f1": 0.6194723756509075, + "auc": 0.7264648818937973, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "liver_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8399048266485384, + "macro_f1": 0.605900898018387, + "auc": 0.6863884140351421, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "pancreas_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.4673691366417403, + "macro_f1": 0.41411217631610214, + "auc": 0.5273177988978094, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "small_intestine_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7087015635622026, + "macro_f1": 0.4775077893240411, + "auc": 0.7176800504102305, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "spleen_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8456832087015635, + "macro_f1": 0.6020249332570557, + "auc": 0.6910191396687121, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "stomach_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7511896668932699, + "macro_f1": 0.4792527508240865, + "auc": 0.5199109659301626, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "ureter_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7848402447314752, + "macro_f1": 0.5367395903685489, + "auc": 0.6207286155202822, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "vesicular_glands_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5842963970088375, + "macro_f1": 0.46102162839486105, + "auc": 0.6527325408618128, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "multilabel_anatomy", + "protocol": "medpmc_public_variant", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8076818490822569, + "macro_f1": 0.18120973121724532, + "auc": 0.6562873780351006, + "n": 2942 + }, + { + "domain": "ophthalmology", + "dataset_id": "octmnist", + "task_id": "octmnist", + "accuracy": 0.572, + "macro_f1": 0.5378302949481479, + "auc": 0.8447573333333334, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "tissuemnist", + "task_id": "tissuemnist", + "accuracy": 0.18297377326565145, + "macro_f1": 0.06128895155495264, + "auc": 0.49383001598972653, + "n": 47280 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organamnist", + "accuracy": 0.15896051299358757, + "macro_f1": 0.1367431574664303, + "auc": 0.6413337302232139, + "n": 17778 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organcmnist", + "accuracy": 0.12950340798442064, + "macro_f1": 0.12434886615385281, + "auc": 0.627638822859613, + "n": 8216 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organsmnist", + "accuracy": 0.11850005664438654, + "macro_f1": 0.11868820958595973, + "auc": 0.6336060062859564, + "n": 8827 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "coos7", + "task_id": "subcellular_localization", + "accuracy": 0.27679166247532005, + "macro_f1": 0.23804921468029883, + "auc": 0.7563543338212579, + "n": 90753, + "aggregation": "unweighted_mean_across_four_test_conditions" + }, + { + "domain": "ophthalmology", + "dataset_id": "rfmid", + "task_id": "rfmid", + "accuracy": 0.7015625, + "macro_f1": 0.6743523143523144, + "auc": 0.942997463276503, + "n": 640 + }, + { + "domain": "ophthalmology", + "dataset_id": "papila", + "task_id": "papila", + "accuracy": 0.6577868852459017, + "macro_f1": 0.4035896733692161, + "auc": 0.6281483958940456, + "n": 488 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "gastrovision", + "task_id": "gastrovision", + "accuracy": 0.4003783102143758, + "macro_f1": 0.32905637239700397, + "auc": 0.9377682163257695, + "n": 1586 + }, + { + "domain": "dermatology", + "dataset_id": "derm12345", + "task_id": "derm12345", + "accuracy": 0.31348088531187124, + "macro_f1": 0.2111514950514588, + "auc": 0.6670543573967523, + "n": 2485 + }, + { + "domain": "cytology", + "dataset_id": "ku_optofil", + "task_id": "ku_optofil", + "accuracy": 0.07649609713790113, + "macro_f1": 0.08541413534202547, + "auc": 0.8015018393590522, + "n": 5765 + }, + { + "domain": "cytology", + "dataset_id": "medimeta_aml", + "task_id": "medimeta_aml", + "accuracy": 0.5326619488296135, + "macro_f1": 0.12857115713243664, + "auc": 0.8375746750679754, + "n": 3674 + }, + { + "domain": "cytology", + "dataset_id": "cytodata", + "task_id": "cytodata", + "accuracy": 0.393, + "macro_f1": 0.27386703256354694, + "auc": 0.8746600256305064, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "raabin_wbc", + "task_id": "raabin_wbc", + "accuracy": 0.7305667389284608, + "macro_f1": 0.47074038602391327, + "auc": 0.946101433916802, + "n": 6458 + }, + { + "domain": "microscopy_composition", + "dataset_id": "omnipose", + "task_id": "omnipose_modality", + "accuracy": 1.0, + "macro_f1": 1.0, + "auc": 1.0, + "n": 223 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "hyperkvasir", + "task_id": "hyperkvasir", + "accuracy": 0.5666854248733821, + "macro_f1": 0.33191269937529577, + "auc": 0.9448914249649445, + "n": 10662 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_eggs", + "accuracy": 0.452808112324493, + "macro_f1": 0.14787259586074528, + "auc": 0.7216127391336317, + "n": 4485, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_larvae", + "accuracy": 0.89065757058935, + "macro_f1": 0.8110310759414557, + "auc": 0.9774866216845045, + "n": 3072, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_protozoan_cysts", + "accuracy": 0.059625687052111596, + "macro_f1": 0.06584489655872283, + "auc": 0.7106186551946704, + "n": 8376, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_morphology", + "accuracy": 0.3469387755102041, + "macro_f1": 0.18364961025254178, + "auc": 0.7305542666086314, + "n": 294 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_gram", + "accuracy": 0.7891156462585034, + "macro_f1": 0.7576063829787234, + "auc": 0.8893990929705216, + "n": 294 + } + ] +} diff --git a/Model-size/ViT-S-14/BioClinicalModernBERT-large-ViT-S-14-randvision.json b/Model-size/ViT-S-14/BioClinicalModernBERT-large-ViT-S-14-randvision.json new file mode 100644 index 0000000000000000000000000000000000000000..6f6460ab9321eb6cfe924cc9306ff9116fd34145 --- /dev/null +++ b/Model-size/ViT-S-14/BioClinicalModernBERT-large-ViT-S-14-randvision.json @@ -0,0 +1,16 @@ +{ + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "layers": 12, + "width": 384, + "head_width": 64, + "patch_size": 14 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } +} diff --git a/Model-size/ViT-S-14/manifest.json b/Model-size/ViT-S-14/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..650b390f18746de6f42de6a1ca0732d83303f3ef --- /dev/null +++ b/Model-size/ViT-S-14/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "ViT-S", + "paper_location": "Figure 5", + "architecture": "BioClinicalModernBERT-large-ViT-S-14-randvision", + "checkpoint": "Model-size/ViT-S-14/open_clip_pytorch_model.bin", + "sha256": "d08fdfa5cf95159ba853fa0af0f36a1afe926ab48525708a2f1f35086e5556c5", + "bytes": 688561436, + "paper_metrics_percent": { + "zero_shot": 50.85, + "bioloombench": 48.19, + "biomedflickr": 7.13 + }, + "results": { + "zero_shot": "Model-size/ViT-S-14/results/zero-shot.json", + "biomedflickr": "Model-size/ViT-S-14/results/biomedflickr-retrieval.json", + "bioloombench": "Model-size/ViT-S-14/results/bioloom-retrieval.json" + }, + "config": "Model-size/ViT-S-14/open_clip_config.json" +} diff --git a/Model-size/ViT-S-14/open_clip_config.json b/Model-size/ViT-S-14/open_clip_config.json new file mode 100644 index 0000000000000000000000000000000000000000..1a498fa3ba89349d9f894da711238ba1b164e4de --- /dev/null +++ b/Model-size/ViT-S-14/open_clip_config.json @@ -0,0 +1,18 @@ +{ + "model_cfg": { + "embed_dim": 768, + "vision_cfg": { + "image_size": 224, + "layers": 12, + "width": 384, + "head_width": 64, + "patch_size": 14 + }, + "text_cfg": { + "hf_model_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_tokenizer_name": "thomas-sounack/BioClinical-ModernBERT-base", + "hf_pooler_type": "mean_pooler", + "context_length": 512 + } + } +} diff --git a/Model-size/ViT-S-14/open_clip_pytorch_model.bin b/Model-size/ViT-S-14/open_clip_pytorch_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..39797fcb86c4b15ed86299d0c400ac3f5041970e --- /dev/null +++ b/Model-size/ViT-S-14/open_clip_pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d08fdfa5cf95159ba853fa0af0f36a1afe926ab48525708a2f1f35086e5556c5 +size 688561436 diff --git a/Model-size/ViT-S-14/results/bioloom-retrieval.json b/Model-size/ViT-S-14/results/bioloom-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..67ee16fe11f629e7d0b8fa958df655569f44b109 --- /dev/null +++ b/Model-size/ViT-S-14/results/bioloom-retrieval.json @@ -0,0 +1,447 @@ +{ + "benchmark": "BioLoomBench", + "split": "all", + "model": "ViT-S", + "protocol": { + "concise_caption": "concise visual caption at native context", + "source_caption_native": "original source caption at native context", + "source_caption_cap77": "original source caption capped at 77 tokens; shorter native limits are retained", + "native_context_length": 512, + "cap77_effective_context_length": 77, + "retrieval_directions": [ + "image_to_text", + "text_to_image" + ], + "recall_k": [ + 1, + 5, + 10, + 100 + ] + }, + "tracks": { + "concise_caption": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 60.249351866715145, + "R@5": 82.77575941970207, + "R@10": 88.13713189283398, + "R@100": 98.30086171868362 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 59.7993523784956, + "bioRxiv": 60.69935135493469 + }, + "R@5": { + "Europe PMC OA": 82.07121698288827, + "bioRxiv": 83.48030185651588 + }, + "R@10": { + "Europe PMC OA": 88.72843368341591, + "bioRxiv": 87.54583010225204 + }, + "R@100": { + "Europe PMC OA": 98.89172168059038, + "bioRxiv": 97.71000175677685 + } + }, + "R@1": 53.07333333333333, + "R@5": 77.91333333333334, + "R@10": 85.32, + "R@100": 97.82666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 51.908701285757, + "bioRxiv": 55.425810348298775 + }, + "domain": { + "bioengineering": 58.9, + "cell_molecular": 53.6, + "cytology_hematology": 47.5, + "dermatology": 45.0, + "development_anatomy": 54.2, + "genetics_genomics": 53.900000000000006, + "histopathology": 50.3, + "microbiology_immunology": 54.2, + "molecular_structure": 44.6, + "neuroscience": 58.8, + "ophthalmology": 48.699999999999996, + "physiology_pharmacology": 58.4, + "plant_ecology": 55.60000000000001, + "radiology": 59.8, + "surgery_endoscopy": 52.6 + }, + "content_type": { + "bioimage_only": 50.89090909090908, + "chart_only": 58.06666666666666, + "mixed_bio_chart": 51.0, + "schematic_or_diagram": 59.440000000000005 + }, + "layout": { + "multi_panel": 51.35185185185185, + "single_panel": 57.49999999999999 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 54.09287688495434, + "R@5": 76.03221489870137, + "R@10": 83.90326136439977, + "R@100": 97.11168712106523 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 52.363205280623546, + "bioRxiv": 55.82254848928514 + }, + "R@5": { + "Europe PMC OA": 75.2864083075724, + "bioRxiv": 76.77802148983032 + }, + "R@10": { + "Europe PMC OA": 83.20254594419356, + "bioRxiv": 84.60397678460598 + }, + "R@100": { + "Europe PMC OA": 97.6235182307432, + "bioRxiv": 96.59985601138726 + } + }, + "R@1": 43.3, + "R@5": 68.52666666666667, + "R@10": 77.43333333333334, + "R@100": 95.92, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 42.17083624040666, + "bioRxiv": 45.58083350110731 + }, + "domain": { + "bioengineering": 48.699999999999996, + "cell_molecular": 42.6, + "cytology_hematology": 37.8, + "dermatology": 37.7, + "development_anatomy": 42.4, + "genetics_genomics": 45.2, + "histopathology": 38.0, + "microbiology_immunology": 43.3, + "molecular_structure": 34.8, + "neuroscience": 47.9, + "ophthalmology": 39.1, + "physiology_pharmacology": 49.7, + "plant_ecology": 45.7, + "radiology": 52.400000000000006, + "surgery_endoscopy": 44.2 + }, + "content_type": { + "bioimage_only": 42.43636363636364, + "chart_only": 49.333333333333336, + "mixed_bio_chart": 38.10909090909091, + "schematic_or_diagram": 53.0 + }, + "layout": { + "multi_panel": 39.46296296296296, + "single_panel": 53.166666666666664 + } + } + }, + "mean_recall": { + "R@1": 48.18666666666667, + "R@5": 73.22, + "R@10": 81.37666666666667, + "R@100": 96.87333333333333 + }, + "mean_hierarchical_macro": { + "R@1": 57.17111437583475, + "R@5": 79.40398715920172, + "R@10": 86.02019662861687, + "R@100": 97.70627441987443 + } + }, + "source_caption_native": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 69.07350308102716, + "R@5": 82.53776387098762, + "R@10": 85.87503230541424, + "R@100": 94.62309247671044 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 72.80482498154511, + "bioRxiv": 65.3421811805092 + }, + "R@5": { + "Europe PMC OA": 89.15648919651898, + "bioRxiv": 75.91903854545625 + }, + "R@10": { + "Europe PMC OA": 92.74712490948097, + "bioRxiv": 79.00293970134751 + }, + "R@100": { + "Europe PMC OA": 98.94203831454644, + "bioRxiv": 90.30414663887446 + } + }, + "R@1": 68.74666666666667, + "R@5": 85.51333333333334, + "R@10": 89.28, + "R@100": 96.82, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 73.03897139439849, + "bioRxiv": 60.07650493255486 + }, + "domain": { + "bioengineering": 71.39999999999999, + "cell_molecular": 72.5, + "cytology_hematology": 70.89999999999999, + "dermatology": 57.4, + "development_anatomy": 76.4, + "genetics_genomics": 54.6, + "histopathology": 77.8, + "microbiology_immunology": 67.2, + "molecular_structure": 77.9, + "neuroscience": 73.4, + "ophthalmology": 65.9, + "physiology_pharmacology": 72.6, + "plant_ecology": 65.3, + "radiology": 71.1, + "surgery_endoscopy": 56.8 + }, + "content_type": { + "bioimage_only": 64.56363636363636, + "chart_only": 46.06666666666667, + "mixed_bio_chart": 79.07272727272728, + "schematic_or_diagram": 68.84 + }, + "layout": { + "multi_panel": 75.50925925925925, + "single_panel": 51.357142857142854 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 65.57723334934387, + "R@5": 81.72444180681671, + "R@10": 85.51614070067438, + "R@100": 93.68582912118674 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 71.60166729852708, + "bioRxiv": 59.55279940016067 + }, + "R@5": { + "Europe PMC OA": 87.68311995383964, + "bioRxiv": 75.76576365979378 + }, + "R@10": { + "Europe PMC OA": 91.65866788742547, + "bioRxiv": 79.3736135139233 + }, + "R@100": { + "Europe PMC OA": 98.77138688560066, + "bioRxiv": 88.60027135677284 + } + }, + "R@1": 67.82000000000001, + "R@5": 84.32666666666667, + "R@10": 88.57333333333334, + "R@100": 96.5, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 72.58048440147513, + "bioRxiv": 58.204147372659556 + }, + "domain": { + "bioengineering": 69.0, + "cell_molecular": 71.8, + "cytology_hematology": 69.8, + "dermatology": 56.89999999999999, + "development_anatomy": 73.6, + "genetics_genomics": 53.300000000000004, + "histopathology": 77.0, + "microbiology_immunology": 64.0, + "molecular_structure": 77.0, + "neuroscience": 73.2, + "ophthalmology": 64.9, + "physiology_pharmacology": 72.2, + "plant_ecology": 62.2, + "radiology": 72.7, + "surgery_endoscopy": 59.699999999999996 + }, + "content_type": { + "bioimage_only": 65.32727272727273, + "chart_only": 40.400000000000006, + "mixed_bio_chart": 77.21818181818182, + "schematic_or_diagram": 69.08 + }, + "layout": { + "multi_panel": 74.9074074074074, + "single_panel": 49.595238095238095 + } + } + }, + "mean_recall": { + "R@1": 68.28333333333333, + "R@5": 84.92, + "R@10": 88.92666666666668, + "R@100": 96.66 + }, + "mean_hierarchical_macro": { + "R@1": 67.3253682151855, + "R@5": 82.13110283890217, + "R@10": 85.69558650304431, + "R@100": 94.15446079894859 + } + }, + "source_caption_cap77": { + "n": 15000, + "image_to_text": { + "hierarchical_macro": { + "R@1": 50.79863855613388, + "R@5": 70.596560123774, + "R@10": 76.25697148987169, + "R@100": 91.6946960342038 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 53.788642885496685, + "bioRxiv": 47.808634226771076 + }, + "R@5": { + "Europe PMC OA": 75.5702911223522, + "bioRxiv": 65.6228291251958 + }, + "R@10": { + "Europe PMC OA": 82.56483095309271, + "bioRxiv": 69.94911202665067 + }, + "R@100": { + "Europe PMC OA": 95.58495679202387, + "bioRxiv": 87.80443527638373 + } + }, + "R@1": 46.14, + "R@5": 68.53333333333333, + "R@10": 75.61333333333333, + "R@100": 91.82666666666667, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 49.257450413635006, + "bioRxiv": 39.84296355949265 + }, + "domain": { + "bioengineering": 50.3, + "cell_molecular": 41.6, + "cytology_hematology": 43.3, + "dermatology": 45.5, + "development_anatomy": 46.9, + "genetics_genomics": 38.4, + "histopathology": 48.5, + "microbiology_immunology": 39.900000000000006, + "molecular_structure": 40.5, + "neuroscience": 48.699999999999996, + "ophthalmology": 46.400000000000006, + "physiology_pharmacology": 51.5, + "plant_ecology": 44.3, + "radiology": 59.3, + "surgery_endoscopy": 47.0 + }, + "content_type": { + "bioimage_only": 49.56363636363636, + "chart_only": 37.666666666666664, + "mixed_bio_chart": 41.654545454545456, + "schematic_or_diagram": 53.559999999999995 + }, + "layout": { + "multi_panel": 46.14814814814815, + "single_panel": 46.11904761904762 + } + } + }, + "text_to_image": { + "hierarchical_macro": { + "R@1": 47.97902489228932, + "R@5": 68.35739961385181, + "R@10": 75.24277335367843, + "R@100": 89.46969562929236 + }, + "source_macro": { + "R@1": { + "Europe PMC OA": 53.33237698997615, + "bioRxiv": 42.62567279460249 + }, + "R@5": { + "Europe PMC OA": 74.52231213826069, + "bioRxiv": 62.19248708944293 + }, + "R@10": { + "Europe PMC OA": 81.36136182328593, + "bioRxiv": 69.12418488407093 + }, + "R@100": { + "Europe PMC OA": 95.65356422116643, + "bioRxiv": 83.28582703741829 + } + }, + "R@1": 44.89333333333334, + "R@5": 66.62666666666667, + "R@10": 74.14666666666668, + "R@100": 91.13333333333333, + "breakdowns_R@1": { + "source": { + "Europe PMC OA": 48.20093690820293, + "bioRxiv": 38.212200523454804 + }, + "domain": { + "bioengineering": 45.9, + "cell_molecular": 41.8, + "cytology_hematology": 40.5, + "dermatology": 43.4, + "development_anatomy": 47.099999999999994, + "genetics_genomics": 38.800000000000004, + "histopathology": 46.300000000000004, + "microbiology_immunology": 38.9, + "molecular_structure": 39.2, + "neuroscience": 45.2, + "ophthalmology": 45.6, + "physiology_pharmacology": 49.9, + "plant_ecology": 42.4, + "radiology": 60.0, + "surgery_endoscopy": 48.4 + }, + "content_type": { + "bioimage_only": 49.72727272727273, + "chart_only": 34.06666666666667, + "mixed_bio_chart": 38.50909090909091, + "schematic_or_diagram": 54.800000000000004 + }, + "layout": { + "multi_panel": 44.851851851851855, + "single_panel": 45.0 + } + } + }, + "mean_recall": { + "R@1": 45.516666666666666, + "R@5": 67.58, + "R@10": 74.88, + "R@100": 91.47999999999999 + }, + "mean_hierarchical_macro": { + "R@1": 49.3888317242116, + "R@5": 69.4769798688129, + "R@10": 75.74987242177505, + "R@100": 90.58219583174808 + } + } + } +} diff --git a/Model-size/ViT-S-14/results/biomedflickr-retrieval.json b/Model-size/ViT-S-14/results/biomedflickr-retrieval.json new file mode 100644 index 0000000000000000000000000000000000000000..d57a80093da8c943d676b5f09a377cacc1a18c5e --- /dev/null +++ b/Model-size/ViT-S-14/results/biomedflickr-retrieval.json @@ -0,0 +1,43 @@ +{ + "benchmark": "BioMedFlickr", + "num_pairs": 7185, + "units": "percent", + "revised_same_caption": { + "n_unique_captions": 4281, + "image_to_text": { + "R@1": 6.527487188577652, + "R@5": 13.514265418052673, + "R@10": 17.60612279176712, + "R@100": 38.03757727146149, + "R@1000": 72.49825596809387 + }, + "text_to_image": { + "R@1": 7.724425941705704, + "R@5": 16.79888516664505, + "R@10": 22.58872538805008, + "R@100": 50.93945264816284, + "R@1000": 86.41614317893982 + } + }, + "exact_pair": { + "image_to_text": { + "R@1": 5.69241475295755, + "R@5": 12.762700069589423, + "R@10": 16.965901183020183, + "R@100": 37.91231732776618, + "R@1000": 72.45650661099513, + "mean_rank": 875.7784272790536, + "median_rank": 261.0 + }, + "text_to_image": { + "R@1": 5.066109951287404, + "R@5": 11.955462769659011, + "R@10": 16.353514265831592, + "R@100": 38.92832289491997, + "R@1000": 74.16840640222686, + "mean_rank": 806.4776617954071, + "median_rank": 233.0 + } + }, + "model": "ViT-S" +} diff --git a/Model-size/ViT-S-14/results/zero-shot.json b/Model-size/ViT-S-14/results/zero-shot.json new file mode 100644 index 0000000000000000000000000000000000000000..1b1f13460de77770c2ff8b7914b0af680b6af2fd --- /dev/null +++ b/Model-size/ViT-S-14/results/zero-shot.json @@ -0,0 +1,679 @@ +{ + "model": "ViT-S", + "source_count": 43, + "logical_tasks": 67, + "domain_count": 10, + "tasks": [ + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "contour", + "accuracy": 0.325, + "macro_f1": 0.23395483217078875, + "auc": 0.7034935185185186, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "texture", + "accuracy": 0.335, + "macro_f1": 0.17019201032800121, + "auc": 0.6777537037037037, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "burgess_et_al_2024", + "task_id": "eccentricity", + "accuracy": 0.38333333333333336, + "macro_f1": 0.29821945871209105, + "auc": 0.7434638888888888, + "n": 600 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "brightfield", + "accuracy": 0.2960969044414536, + "macro_f1": 0.11431322516266354, + "auc": 0.7212457589815396, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "darkfield", + "accuracy": 0.18304172274562583, + "macro_f1": 0.07988340337801124, + "auc": 0.5935494856434845, + "n": 743 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "eulenberg_et_al_2017", + "task_id": "epifluorescence", + "accuracy": 0.15881561238223418, + "macro_f1": 0.10024510531689083, + "auc": 0.6814934906140577, + "n": 743 + }, + { + "domain": "structure_profiling", + "dataset_id": "nirschl_unpub_fluorescence", + "task_id": "structure_identification", + "accuracy": 0.8319057815845824, + "macro_f1": 0.7144390356385922, + "auc": 0.9831444960543632, + "n": 934 + }, + { + "domain": "structure_profiling", + "dataset_id": "empiar_sbfsem", + "task_id": "structure_identification", + "accuracy": 0.7937608318890814, + "macro_f1": 0.7063331133196068, + "auc": 0.9260923500205749, + "n": 577 + }, + { + "domain": "structure_profiling", + "dataset_id": "icpr2020_pollen", + "task_id": "pollen_classification", + "accuracy": 0.1757142857142857, + "macro_f1": 0.10284449540402367, + "auc": 0.5316913265306122, + "n": 700 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "domain", + "accuracy": 0.6531908749639042, + "macro_f1": 0.2516687031576847, + "auc": 0.9347727719185426, + "n": 17315 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "modality", + "accuracy": 0.8798375398897592, + "macro_f1": 0.6901555409550015, + "auc": 0.9503896923439856, + "n": 17235 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "stain", + "accuracy": 0.5874572255856805, + "macro_f1": 0.1705728029644991, + "auc": 0.8779956857947697, + "n": 15196 + }, + { + "domain": "microscopy_composition", + "dataset_id": "ubench_coarse_attributes", + "task_id": "submodality", + "accuracy": 0.4357412242529736, + "macro_f1": 0.22583263137674514, + "auc": 0.8158626778127808, + "n": 17235 + }, + { + "domain": "cytology", + "dataset_id": "acevedo_et_al_2020", + "task_id": "cell_type", + "accuracy": 0.579375, + "macro_f1": 0.5492318533000011, + "auc": 0.88130625, + "n": 1600 + }, + { + "domain": "cytology", + "dataset_id": "jung_et_al_2022", + "task_id": "cell_type", + "accuracy": 0.215, + "macro_f1": 0.09756878535135653, + "auc": 0.7059869999999999, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "hussain_et_al_2019", + "task_id": "cell_type", + "accuracy": 0.21761658031088082, + "macro_f1": 0.24621234619956192, + "auc": 0.5875661091572928, + "n": 193 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2016", + "task_id": "tissue_classification", + "accuracy": 0.51, + "macro_f1": 0.4436442791581227, + "auc": 0.852029, + "n": 1000 + }, + { + "domain": "histopathology", + "dataset_id": "kather_et_al_2018_val7k", + "task_id": "tissue_classification", + "accuracy": 0.7100456621004566, + "macro_f1": 0.6941916926089624, + "auc": 0.9437342609388647, + "n": 1314 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "colon_tissue", + "accuracy": 0.8270777479892761, + "macro_f1": 0.8218324409588766, + "auc": 0.9909993603059031, + "n": 1492 + }, + { + "domain": "histopathology", + "dataset_id": "lc25000", + "task_id": "lung_tissue", + "accuracy": 0.7905225863596103, + "macro_f1": 0.773441196779722, + "auc": 0.9585365767913916, + "n": 2258 + }, + { + "domain": "histopathology", + "dataset_id": "patchcamelyon", + "task_id": "metastasis", + "accuracy": 0.8077392578125, + "macro_f1": 0.8065041322523201, + "auc": 0.9068040565900459, + "n": 32768 + }, + { + "domain": "histopathology", + "dataset_id": "tang_et_al_2019", + "task_id": "tissue_classification", + "accuracy": 0.40529531568228105, + "macro_f1": 0.37584162251981534, + "auc": 0.7955106375035776, + "n": 491 + }, + { + "domain": "histopathology", + "dataset_id": "wong_et_al_2022", + "task_id": "tissue_classification", + "accuracy": 0.34125, + "macro_f1": 0.3087788518633755, + "auc": 0.7127582031249999, + "n": 800 + }, + { + "domain": "histopathology", + "dataset_id": "nirschl_et_al_2018", + "task_id": "tissue_classification", + "accuracy": 0.4875, + "macro_f1": 0.22133630216604724, + "auc": 0.743028125, + "n": 400 + }, + { + "domain": "histopathology", + "dataset_id": "wu_et_al_2023", + "task_id": "tissue_classification", + "accuracy": 0.6796875, + "macro_f1": 0.4046511627906977, + "auc": 0.8303146362304688, + "n": 256 + }, + { + "domain": "radiology", + "dataset_id": "chexpert", + "task_id": "chest_finding", + "accuracy": 0.1752136752136752, + "macro_f1": 0.14231065468549425, + "auc": 0.6835484296901481, + "n": 234 + }, + { + "domain": "radiology", + "dataset_id": "pneumoniamnist", + "task_id": "pneumonia", + "accuracy": 0.905448717948718, + "macro_f1": 0.8965514334606209, + "auc": 0.9724742493973262, + "n": 624 + }, + { + "domain": "radiology", + "dataset_id": "chestmnist", + "task_id": "multilabel_chest_findings", + "protocol": "medpmc", + "sample_count": "22433", + "split": "test", + "source_key": "medpmc_medmnist", + "accuracy": 0.8191853837777254, + "macro_f1": 0.15954328991882424, + "auc": 0.6867755937494133, + "n": 22433 + }, + { + "domain": "radiology", + "dataset_id": "rsna_pneumonia", + "task_id": "pneumonia", + "protocol": "medpmc", + "sample_count": "26684", + "split": "stage_2_train", + "source_key": "rsna_complete", + "accuracy": 0.7561085294558537, + "macro_f1": 0.7141434595311109, + "auc": 0.8583714681704703, + "n": 26684 + }, + { + "domain": "radiology", + "dataset_id": "breastmnist", + "task_id": "breast_ultrasound", + "accuracy": 0.8076923076923077, + "macro_f1": 0.7657657657657657, + "auc": 0.8107769423558897, + "n": 156 + }, + { + "domain": "ophthalmology", + "dataset_id": "retinamnist", + "task_id": "dr_severity", + "accuracy": 0.535, + "macro_f1": 0.37245607805608183, + "auc": 0.7752754292757906, + "n": 400 + }, + { + "domain": "ophthalmology", + "dataset_id": "deepdrid", + "task_id": "dr_severity", + "protocol": "medpmc", + "sample_count": "400", + "split": "challenge_evaluation", + "source_key": "deepdrid_official", + "accuracy": 0.5675, + "macro_f1": 0.36486756555361416, + "auc": 0.7724036583876828, + "n": 400 + }, + { + "domain": "dermatology", + "dataset_id": "dermamnist", + "task_id": "skin_lesion", + "accuracy": 0.5281795511221945, + "macro_f1": 0.2741394449333244, + "auc": 0.7946416319612318, + "n": 2005 + }, + { + "domain": "dermatology", + "dataset_id": "ham10000", + "task_id": "skin_lesion", + "protocol": "medpmc", + "sample_count": "1512", + "split": "isic2018_task3_test", + "source_key": "ham10000_official", + "accuracy": 0.6111111111111112, + "macro_f1": 0.353877043758844, + "auc": 0.8310390717810359, + "n": 1512 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "abdominal_wall_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.47620666213460233, + "macro_f1": 0.41451329975350426, + "auc": 0.48244595335467044, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "colon_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.5723997280761387, + "macro_f1": 0.5446721376014235, + "auc": 0.5740907542039885, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "inferior_mesenteric_artery_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.14140040788579197, + "macro_f1": 0.13966848577322835, + "auc": 0.6204230651024281, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "intestinal_veins_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.22875594833446636, + "macro_f1": 0.2273160760183049, + "auc": 0.6646737912443252, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "liver_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8606390210740993, + "macro_f1": 0.4697206825727308, + "auc": 0.36274209713831707, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "pancreas_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.3667573079537729, + "macro_f1": 0.35501247094085436, + "auc": 0.6143171704475753, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "small_intestine_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7110808973487424, + "macro_f1": 0.5737295924768311, + "auc": 0.6731041674759063, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "spleen_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.8589394969408566, + "macro_f1": 0.5406174290183136, + "auc": 0.6557018938310071, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "stomach_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.3470428280081577, + "macro_f1": 0.34445065785391005, + "auc": 0.563460165525265, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "ureter_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7777022433718559, + "macro_f1": 0.5103016272478499, + "auc": 0.5080235890652558, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "vesicular_glands_presence", + "protocol": "biomedica", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.2239972807613868, + "macro_f1": 0.21633013378280352, + "auc": 0.4551627043090639, + "n": 2942 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "dresden_surgical_anatomy", + "task_id": "multilabel_anatomy", + "protocol": "medpmc_public_variant", + "sample_count": "2942", + "split": "test", + "source_key": "biomedica_dresden", + "accuracy": 0.7515975526852481, + "macro_f1": 0.22285352311483342, + "auc": 0.6062069063908442, + "n": 2942 + }, + { + "domain": "ophthalmology", + "dataset_id": "octmnist", + "task_id": "octmnist", + "accuracy": 0.531, + "macro_f1": 0.47778800395118054, + "auc": 0.8302906666666666, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "tissuemnist", + "task_id": "tissuemnist", + "accuracy": 0.056472081218274114, + "macro_f1": 0.03627550521550241, + "auc": 0.4889792336973936, + "n": 47280 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organamnist", + "accuracy": 0.16863539205759928, + "macro_f1": 0.10903382291456419, + "auc": 0.7624013394690672, + "n": 17778 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organcmnist", + "accuracy": 0.1518987341772152, + "macro_f1": 0.09777704055423811, + "auc": 0.7078913582030217, + "n": 8216 + }, + { + "domain": "radiology", + "dataset_id": "organmnist_2d", + "task_id": "organsmnist", + "accuracy": 0.18069559306672708, + "macro_f1": 0.10802311798078547, + "auc": 0.7294837462692996, + "n": 8827 + }, + { + "domain": "cellular_phenotyping", + "dataset_id": "coos7", + "task_id": "subcellular_localization", + "accuracy": 0.32199185220321513, + "macro_f1": 0.2763216202230039, + "auc": 0.7574891289893738, + "n": 90753, + "aggregation": "unweighted_mean_across_four_test_conditions" + }, + { + "domain": "ophthalmology", + "dataset_id": "rfmid", + "task_id": "rfmid", + "accuracy": 0.8, + "macro_f1": 0.7465064177940612, + "auc": 0.8833844610937407, + "n": 640 + }, + { + "domain": "ophthalmology", + "dataset_id": "papila", + "task_id": "papila", + "accuracy": 0.430327868852459, + "macro_f1": 0.33827990032404537, + "auc": 0.6026060931204157, + "n": 488 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "gastrovision", + "task_id": "gastrovision", + "accuracy": 0.4085750315258512, + "macro_f1": 0.31855997541569986, + "auc": 0.9237322871131675, + "n": 1586 + }, + { + "domain": "dermatology", + "dataset_id": "derm12345", + "task_id": "derm12345", + "accuracy": 0.16861167002012073, + "macro_f1": 0.19001539790657174, + "auc": 0.6585123863918633, + "n": 2485 + }, + { + "domain": "cytology", + "dataset_id": "ku_optofil", + "task_id": "ku_optofil", + "accuracy": 0.08690372940156114, + "macro_f1": 0.05814891652050182, + "auc": 0.7510379305141754, + "n": 5765 + }, + { + "domain": "cytology", + "dataset_id": "medimeta_aml", + "task_id": "medimeta_aml", + "accuracy": 0.24741426238432226, + "macro_f1": 0.06623728520593856, + "auc": 0.7306725251138, + "n": 3674 + }, + { + "domain": "cytology", + "dataset_id": "cytodata", + "task_id": "cytodata", + "accuracy": 0.363, + "macro_f1": 0.21585676435814918, + "auc": 0.803141071771359, + "n": 1000 + }, + { + "domain": "cytology", + "dataset_id": "raabin_wbc", + "task_id": "raabin_wbc", + "accuracy": 0.4925673583152679, + "macro_f1": 0.40682789375312317, + "auc": 0.7942973811844258, + "n": 6458 + }, + { + "domain": "microscopy_composition", + "dataset_id": "omnipose", + "task_id": "omnipose_modality", + "accuracy": 1.0, + "macro_f1": 1.0, + "auc": 1.0, + "n": 223 + }, + { + "domain": "surgery_and_anatomy", + "dataset_id": "hyperkvasir", + "task_id": "hyperkvasir", + "accuracy": 0.5029075220408928, + "macro_f1": 0.2830535496094364, + "auc": 0.9328338437297866, + "n": 10662 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_eggs", + "accuracy": 0.15678627145085802, + "macro_f1": 0.053656590065108756, + "auc": 0.5524353209960461, + "n": 4485, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_helminth_larvae", + "accuracy": 0.7665340155391321, + "macro_f1": 0.6836954438821022, + "auc": 0.9744968590041879, + "n": 3072, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "lids", + "task_id": "lids_protozoan_cysts", + "accuracy": 0.08794267028456133, + "macro_f1": 0.026434033804631538, + "auc": 0.677575996369627, + "n": 8376, + "aggregation": "official_split_mean" + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_morphology", + "accuracy": 0.29591836734693877, + "macro_f1": 0.12891974931414477, + "auc": 0.5950970814252449, + "n": 294 + }, + { + "domain": "microbial_and_parasitic_recognition", + "dataset_id": "bacteria2026", + "task_id": "bacteria_gram", + "accuracy": 0.6360544217687075, + "macro_f1": 0.6345280278826605, + "auc": 0.970124716553288, + "n": 294 + } + ] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..575db5b3bddd5056695b76f0cd38b668ef547910 --- /dev/null +++ b/README.md @@ -0,0 +1,163 @@ +--- +library_name: open_clip +pipeline_tag: zero-shot-image-classification +tags: +- biomedical +- contrastive-learning +- image-text-retrieval +- zero-shot-classification +--- + +# BioLoom Models + +
+ +BioLoom is a biomedical dual encoder for image–text retrieval and zero-shot classification, trained on 52.4 million image–text pairs from Loom52M. It uses whole figures, panels, captions, and relationships within scientific articles to supervise contrastive learning. The main models share a BioClinical ModernBERT text encoder and a ViT-L/14 vision encoder, with either randomly initialized or DFN-2B-initialized visual weights. + +## 📦 Model weights + +Each model directory contains the weights, architecture configuration, and evaluation files. + +- **Main models** · [BioLoom (Scratch)](https://huggingface.co/ChartFoundation/BioLoom-models/tree/main/Main/Scratch) · [BioLoom (DFN-2B)](https://huggingface.co/ChartFoundation/BioLoom-models/tree/main/Main/DFN-2B) +- **Vision initialization** · [CommonPool](https://huggingface.co/ChartFoundation/BioLoom-models/tree/main/Initialization/CommonPool) · [DINOv2](https://huggingface.co/ChartFoundation/BioLoom-models/tree/main/Initialization/DINOv2) +- **Model size** · [ViT-S](https://huggingface.co/ChartFoundation/BioLoom-models/tree/main/Model-size/ViT-S-14) · [ViT-B](https://huggingface.co/ChartFoundation/BioLoom-models/tree/main/Model-size/ViT-B-14) · [ViT-H](https://huggingface.co/ChartFoundation/BioLoom-models/tree/main/Model-size/ViT-H-14) + + + +## 💻 Inference + +Install the project’s [OpenCLIP implementation](https://github.com/yuweiyang-anu/BioLoom) and its inference dependencies. From its checkout: + +```bash +pip install -r src/requirements.txt "transformers>=4.48,<5" +export PYTHONPATH="$PWD/src:$PYTHONPATH" +``` + +Choose a model folder in the table. Set `folder` in the example to load its weights and configuration together. The variant name is also the value for `--model` in the evaluation CLI. + +| Variant | Model folder | +|---|---| +| `scratch` | `Main/Scratch` | +| `dfn2b` | `Main/DFN-2B` | +| `commonpool` | `Initialization/CommonPool` | +| `dinov2` | `Initialization/DINOv2` | +| `vit-s` | `Model-size/ViT-S-14` | +| `vit-b` | `Model-size/ViT-B-14` | +| `vit-h` | `Model-size/ViT-H-14` | + +```python +import json +from pathlib import Path + +import open_clip +import torch +from huggingface_hub import snapshot_download +from open_clip.tokenizer import HFTokenizer +from PIL import Image + +folder = "Main/DFN-2B" +files = ["open_clip_pytorch_model.bin", "open_clip_config.json"] +snapshot = snapshot_download( + "ChartFoundation/BioLoom-models", + allow_patterns=[f"{folder}/{name}" for name in files], +) +directory = Path(snapshot) / folder +device = "cuda" if torch.cuda.is_available() else "cpu" +model, preprocess = open_clip.create_model_from_pretrained( + f"local-dir:{directory}", device=device +) +model.eval() +text_cfg = json.loads((directory / "open_clip_config.json").read_text())["model_cfg"]["text_cfg"] +tokenizer = HFTokenizer(text_cfg["hf_tokenizer_name"], context_length=text_cfg["context_length"]) + +image = preprocess(Image.open("figure.jpg").convert("RGB")).unsqueeze(0).to(device) +tokens = tokenizer(["a microscopy image", "a radiograph"]).to(device) +with torch.inference_mode(): + scores = model.encode_image(image, normalize=True) @ model.encode_text(tokens, normalize=True).T +print(scores.cpu()) +``` + +## 🧪 Evaluation + +For example, evaluate the downloaded DFN-2B model on the full BioLoomBench gallery from the BioLoom checkout. Set `MODEL_DIR` to the directory printed by `print(directory)` in the loading example. + +```bash +python -m evaluation --model dfn2b --benchmark bioloombench --download \ + --checkpoint "$MODEL_DIR/open_clip_pytorch_model.bin" --output results/dfn2b.json +``` + +To evaluate a checkpoint, use the data and protocols in [BioLoom-EvalSuite](https://huggingface.co/datasets/ChartFoundation/BioLoom-EvalSuite). Load the checkpoint and its matching architecture as shown above, then follow the zero-shot classification, BioMedFlickr, or BioLoomBench guide. Each model’s `results/` folder contains three files: `zero-shot.json` for all 67 classification tasks, `biomedflickr-retrieval.json` for BioMedFlickr, and `bioloom-retrieval.json` for BioLoomBench. diff --git a/index.json b/index.json new file mode 100644 index 0000000000000000000000000000000000000000..14e6759353a53c172910148f22284fa3ad4abc60 --- /dev/null +++ b/index.json @@ -0,0 +1,135 @@ +{ + "Main/Scratch": { + "name": "BioLoom (Scratch)", + "paper_location": "Main/Supplement results; Table 5; Figure 5 reference", + "architecture": "BioClinicalModernBERT-large-ViT-L-14-pretrained", + "checkpoint": "Main/Scratch/open_clip_pytorch_model.bin", + "sha256": "c33050042089d02c57313c89d5c9cbaf025be5ee359303aab419ad6337f655ad", + "bytes": 1816835925, + "paper_metrics_percent": { + "zero_shot": 52.89, + "bioloombench": 57.13, + "biomedflickr": 8.42 + }, + "results": { + "zero_shot": "Main/Scratch/results/zero-shot.json", + "biomedflickr": "Main/Scratch/results/biomedflickr-retrieval.json", + "bioloombench": "Main/Scratch/results/bioloom-retrieval.json" + }, + "config": "Main/Scratch/open_clip_config.json" + }, + "Main/DFN-2B": { + "name": "BioLoom (DFN-2B)", + "paper_location": "Main/Supplement results; Table 5 (DFN-2B)", + "architecture": "BioClinicalModernBERT-large-ViT-L-14-pretrained", + "checkpoint": "Main/DFN-2B/open_clip_pytorch_model.bin", + "sha256": "44c00c876cd54a0a673ec1c5741d32763fff0f063691caac48072431edfc6fff", + "bytes": 1816835486, + "paper_metrics_percent": { + "zero_shot": 56.82, + "bioloombench": 63.2, + "biomedflickr": 10.59 + }, + "results": { + "zero_shot": "Main/DFN-2B/results/zero-shot.json", + "biomedflickr": "Main/DFN-2B/results/biomedflickr-retrieval.json", + "bioloombench": "Main/DFN-2B/results/bioloom-retrieval.json" + }, + "config": "Main/DFN-2B/open_clip_config.json" + }, + "Initialization/CommonPool": { + "name": "CommonPool", + "paper_location": "Main results / Table 5", + "architecture": "BioClinicalModernBERT-large-ViT-L-14-commonpool-vision-longtext", + "checkpoint": "Initialization/CommonPool/open_clip_pytorch_model.bin", + "sha256": "65e2791e76ae16ce06dc2d020d1b097d8321a26571017236703388c236199e03", + "bytes": 1816825530, + "paper_metrics_percent": { + "zero_shot": 53.66, + "bioloombench": 61.53, + "biomedflickr": 10.69 + }, + "results": { + "zero_shot": "Initialization/CommonPool/results/zero-shot.json", + "biomedflickr": "Initialization/CommonPool/results/biomedflickr-retrieval.json", + "bioloombench": "Initialization/CommonPool/results/bioloom-retrieval.json" + }, + "config": "Initialization/CommonPool/open_clip_config.json" + }, + "Initialization/DINOv2": { + "name": "DINOv2", + "paper_location": "Main results / Table 5", + "architecture": "BioClinicalModernBERT-large-ViT-L-14-dinov2-vision-longtext", + "checkpoint": "Initialization/DINOv2/open_clip_pytorch_model.bin", + "sha256": "de2ca653c5e6c4f90cf64e854f15e4238366225c72e2f929ae07e81260b53342", + "bytes": 1817043017, + "paper_metrics_percent": { + "zero_shot": 54.94, + "bioloombench": 61.2, + "biomedflickr": 10.19 + }, + "results": { + "zero_shot": "Initialization/DINOv2/results/zero-shot.json", + "biomedflickr": "Initialization/DINOv2/results/biomedflickr-retrieval.json", + "bioloombench": "Initialization/DINOv2/results/bioloom-retrieval.json" + }, + "config": "Initialization/DINOv2/open_clip_config.json" + }, + "Model-size/ViT-S-14": { + "name": "ViT-S", + "paper_location": "Figure 5", + "architecture": "BioClinicalModernBERT-large-ViT-S-14-randvision", + "checkpoint": "Model-size/ViT-S-14/open_clip_pytorch_model.bin", + "sha256": "d08fdfa5cf95159ba853fa0af0f36a1afe926ab48525708a2f1f35086e5556c5", + "bytes": 688561436, + "paper_metrics_percent": { + "zero_shot": 50.85, + "bioloombench": 48.19, + "biomedflickr": 7.13 + }, + "results": { + "zero_shot": "Model-size/ViT-S-14/results/zero-shot.json", + "biomedflickr": "Model-size/ViT-S-14/results/biomedflickr-retrieval.json", + "bioloombench": "Model-size/ViT-S-14/results/bioloom-retrieval.json" + }, + "config": "Model-size/ViT-S-14/open_clip_config.json" + }, + "Model-size/ViT-B-14": { + "name": "ViT-B", + "paper_location": "Figure 5", + "architecture": "BioClinicalModernBERT-large-ViT-B-14-randvision", + "checkpoint": "Model-size/ViT-B-14/open_clip_pytorch_model.bin", + "sha256": "e4f448c745fc2e2ebe0dc95198a26e672199d4656e09af862d95743cb16dba97", + "bytes": 946090268, + "paper_metrics_percent": { + "zero_shot": 51.36, + "bioloombench": 50.61, + "biomedflickr": 7.21 + }, + "results": { + "zero_shot": "Model-size/ViT-B-14/results/zero-shot.json", + "biomedflickr": "Model-size/ViT-B-14/results/biomedflickr-retrieval.json", + "bioloombench": "Model-size/ViT-B-14/results/bioloom-retrieval.json" + }, + "config": "Model-size/ViT-B-14/open_clip_config.json" + }, + "Model-size/ViT-H-14": { + "name": "ViT-H", + "paper_location": "Figure 5", + "architecture": "BioClinicalModernBERT-large-ViT-H-14-randvision", + "checkpoint": "Model-size/ViT-H-14/open_clip_pytorch_model.bin", + "sha256": "54c61b3f704e2a83689bc4b3ae9dc24266521e818f7e0a93033bdda6fb389969", + "bytes": 3127994860, + "paper_metrics_percent": { + "zero_shot": 51.7, + "bioloombench": 55.86, + "biomedflickr": 8.15 + }, + "results": { + "zero_shot": "Model-size/ViT-H-14/results/zero-shot.json", + "biomedflickr": "Model-size/ViT-H-14/results/biomedflickr-retrieval.json", + "bioloombench": "Model-size/ViT-H-14/results/bioloom-retrieval.json" + }, + "config": "Model-size/ViT-H-14/open_clip_config.json" + } +}