Add Batch 57271549-52ae-4d2f-ab66-b29b4bc051a8 data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/b33177e1-fdfe-4c5f-a9a9-037a138aa0cf_content_list.json +2305 -0
- 2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/b33177e1-fdfe-4c5f-a9a9-037a138aa0cf_model.json +0 -0
- 2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/b33177e1-fdfe-4c5f-a9a9-037a138aa0cf_origin.pdf +3 -0
- 2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/full.md +443 -0
- 2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/images.zip +3 -0
- 2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/layout.json +0 -0
- 2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/081b7730-6494-4c1e-8ba3-d9c947e8be2f_content_list.json +1486 -0
- 2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/081b7730-6494-4c1e-8ba3-d9c947e8be2f_model.json +2004 -0
- 2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/081b7730-6494-4c1e-8ba3-d9c947e8be2f_origin.pdf +3 -0
- 2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/full.md +290 -0
- 2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/images.zip +3 -0
- 2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/layout.json +0 -0
- 2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/3b29f9b0-75b7-4106-bc6f-27cbeed85edf_content_list.json +0 -0
- 2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/3b29f9b0-75b7-4106-bc6f-27cbeed85edf_model.json +0 -0
- 2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/3b29f9b0-75b7-4106-bc6f-27cbeed85edf_origin.pdf +3 -0
- 2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/full.md +473 -0
- 2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/images.zip +3 -0
- 2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/layout.json +0 -0
- 2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/14d2ceda-5f83-49b4-88b6-f58b5179b8e9_content_list.json +2000 -0
- 2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/14d2ceda-5f83-49b4-88b6-f58b5179b8e9_model.json +0 -0
- 2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/14d2ceda-5f83-49b4-88b6-f58b5179b8e9_origin.pdf +3 -0
- 2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/full.md +386 -0
- 2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/images.zip +3 -0
- 2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/layout.json +0 -0
- 2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/bcc9d306-7f45-4b34-b97c-c05fad825ac3_content_list.json +0 -0
- 2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/bcc9d306-7f45-4b34-b97c-c05fad825ac3_model.json +0 -0
- 2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/bcc9d306-7f45-4b34-b97c-c05fad825ac3_origin.pdf +3 -0
- 2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/full.md +439 -0
- 2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/images.zip +3 -0
- 2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/layout.json +0 -0
- 2024/Self-Consistency Boosts Calibration for Math Reasoning/610e067d-96b2-49b7-8e9d-e89fb3c34d6e_content_list.json +1117 -0
- 2024/Self-Consistency Boosts Calibration for Math Reasoning/610e067d-96b2-49b7-8e9d-e89fb3c34d6e_model.json +1424 -0
- 2024/Self-Consistency Boosts Calibration for Math Reasoning/610e067d-96b2-49b7-8e9d-e89fb3c34d6e_origin.pdf +3 -0
- 2024/Self-Consistency Boosts Calibration for Math Reasoning/full.md +210 -0
- 2024/Self-Consistency Boosts Calibration for Math Reasoning/images.zip +3 -0
- 2024/Self-Consistency Boosts Calibration for Math Reasoning/layout.json +0 -0
- 2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/45f4817a-44a7-499d-b884-1bdac2c1b3e5_content_list.json +1618 -0
- 2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/45f4817a-44a7-499d-b884-1bdac2c1b3e5_model.json +2127 -0
- 2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/45f4817a-44a7-499d-b884-1bdac2c1b3e5_origin.pdf +3 -0
- 2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/full.md +327 -0
- 2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/images.zip +3 -0
- 2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/layout.json +0 -0
- 2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/7e26119d-5c03-4bda-95f0-4a298ab50b80_content_list.json +0 -0
- 2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/7e26119d-5c03-4bda-95f0-4a298ab50b80_model.json +0 -0
- 2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/7e26119d-5c03-4bda-95f0-4a298ab50b80_origin.pdf +3 -0
- 2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/full.md +0 -0
- 2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/images.zip +3 -0
- 2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/layout.json +0 -0
- 2024/Self-Evaluation of Large Language Model based on Glass-box Features/f272d6b4-0f30-498a-aa3d-937a38ef3871_content_list.json +1387 -0
.gitattributes
CHANGED
|
@@ -3825,3 +3825,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 3825 |
2024/Search[[:space:]]if[[:space:]]you[[:space:]]don’t[[:space:]]know![[:space:]]Knowledge-Augmented[[:space:]]Korean[[:space:]]Grammatical[[:space:]]Error[[:space:]]Correction[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/95e2754f-d0b3-44b4-88a4-c4c1f19b9b15_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3826 |
2024/SecureSQL_[[:space:]]Evaluating[[:space:]]Data[[:space:]]Leakage[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]as[[:space:]]Natural[[:space:]]Language[[:space:]]Interfaces[[:space:]]to[[:space:]]Databases/96d3201b-2088-4dc3-a586-903ec4bd7d6e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3827 |
2024/Securing[[:space:]]Multi-turn[[:space:]]Conversational[[:space:]]Language[[:space:]]Models[[:space:]]From[[:space:]]Distributed[[:space:]]Backdoor[[:space:]]Attacks/ee8f5c20-3e3a-4dfb-b3f3-d20b34d55f5c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3825 |
2024/Search[[:space:]]if[[:space:]]you[[:space:]]don’t[[:space:]]know![[:space:]]Knowledge-Augmented[[:space:]]Korean[[:space:]]Grammatical[[:space:]]Error[[:space:]]Correction[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/95e2754f-d0b3-44b4-88a4-c4c1f19b9b15_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3826 |
2024/SecureSQL_[[:space:]]Evaluating[[:space:]]Data[[:space:]]Leakage[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]as[[:space:]]Natural[[:space:]]Language[[:space:]]Interfaces[[:space:]]to[[:space:]]Databases/96d3201b-2088-4dc3-a586-903ec4bd7d6e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3827 |
2024/Securing[[:space:]]Multi-turn[[:space:]]Conversational[[:space:]]Language[[:space:]]Models[[:space:]]From[[:space:]]Distributed[[:space:]]Backdoor[[:space:]]Attacks/ee8f5c20-3e3a-4dfb-b3f3-d20b34d55f5c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3828 |
+
2024/SedarEval_[[:space:]]Automated[[:space:]]Evaluation[[:space:]]using[[:space:]]Self-Adaptive[[:space:]]Rubrics/b33177e1-fdfe-4c5f-a9a9-037a138aa0cf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3829 |
+
2024/See[[:space:]]Detail[[:space:]]Say[[:space:]]Clear_[[:space:]]Towards[[:space:]]Brain[[:space:]]CT[[:space:]]Report[[:space:]]Generation[[:space:]]via[[:space:]]Pathological[[:space:]]Clue-driven[[:space:]]Representation[[:space:]]Learning/081b7730-6494-4c1e-8ba3-d9c947e8be2f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3830 |
+
2024/Seeing[[:space:]]Through[[:space:]]VisualBERT_[[:space:]]A[[:space:]]Causal[[:space:]]Adventure[[:space:]]on[[:space:]]Memetic[[:space:]]Landscapes/3b29f9b0-75b7-4106-bc6f-27cbeed85edf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3831 |
+
2024/Selection-p_[[:space:]]Self-Supervised[[:space:]]Task-Agnostic[[:space:]]Prompt[[:space:]]Compression[[:space:]]for[[:space:]]Faithfulness[[:space:]]and[[:space:]]Transferability/14d2ceda-5f83-49b4-88b6-f58b5179b8e9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3832 |
+
2024/Selective[[:space:]]Annotation[[:space:]]via[[:space:]]Data[[:space:]]Allocation_[[:space:]]These[[:space:]]Data[[:space:]]Should[[:space:]]Be[[:space:]]Triaged[[:space:]]to[[:space:]]Experts[[:space:]]for[[:space:]]Annotation[[:space:]]Rather[[:space:]]Than[[:space:]]the[[:space:]]Model/bcc9d306-7f45-4b34-b97c-c05fad825ac3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3833 |
+
2024/Self-Consistency[[:space:]]Boosts[[:space:]]Calibration[[:space:]]for[[:space:]]Math[[:space:]]Reasoning/610e067d-96b2-49b7-8e9d-e89fb3c34d6e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3834 |
+
2024/Self-Constructed[[:space:]]Context[[:space:]]Decompilation[[:space:]]with[[:space:]]Fined-grained[[:space:]]Alignment[[:space:]]Enhancement/45f4817a-44a7-499d-b884-1bdac2c1b3e5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3835 |
+
2024/Self-Distillation[[:space:]]for[[:space:]]Model[[:space:]]Stacking[[:space:]]Unlocks[[:space:]]Cross-Lingual[[:space:]]NLU[[:space:]]in[[:space:]]200+[[:space:]]Languages/7e26119d-5c03-4bda-95f0-4a298ab50b80_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3836 |
+
2024/Self-Evaluation[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]based[[:space:]]on[[:space:]]Glass-box[[:space:]]Features/f272d6b4-0f30-498a-aa3d-937a38ef3871_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3837 |
+
2024/Self-Evolution[[:space:]]Fine-Tuning[[:space:]]for[[:space:]]Policy[[:space:]]Optimization/f429f3a3-904d-4b42-bb55-dde0fd8a6fb5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3838 |
+
2024/Self-Explore_[[:space:]]Enhancing[[:space:]]Mathematical[[:space:]]Reasoning[[:space:]]in[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Fine-grained[[:space:]]Rewards/0050fd4f-4478-48e9-b7eb-9f80dd9808cb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3839 |
+
2024/Self-Recognition[[:space:]]in[[:space:]]Language[[:space:]]Models/a0a4d18a-1b19-4a7c-aa49-4b891fff8e59_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3840 |
+
2024/Self-Renewal[[:space:]]Prompt[[:space:]]Optimizing[[:space:]]with[[:space:]]Implicit[[:space:]]Reasoning/d80875f6-b94b-48a6-a34d-1d65aadf1bd7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3841 |
+
2024/Self-contradictory[[:space:]]reasoning[[:space:]]evaluation[[:space:]]and[[:space:]]detection/d9c93459-c5e5-4d9c-b755-5c75dd1c3af2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3842 |
+
2024/Self-supervised[[:space:]]Preference[[:space:]]Optimization_[[:space:]]Enhance[[:space:]]Your[[:space:]]Language[[:space:]]Model[[:space:]]with[[:space:]]Preference[[:space:]]Degree[[:space:]]Awareness/e2cc6e0c-ce9c-4749-9583-e2bc905655b8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3843 |
+
2024/Self-training[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Arithmetic[[:space:]]Reasoning/435df39d-e694-4d44-b90c-da0f58e68e46_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3844 |
+
2024/Self-training[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]through[[:space:]]Knowledge[[:space:]]Detection/bd7c9ec5-45ff-492b-81e6-65ad0110050e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3845 |
+
2024/Semantic[[:space:]]Token[[:space:]]Reweighting[[:space:]]for[[:space:]]Interpretable[[:space:]]and[[:space:]]Controllable[[:space:]]Text[[:space:]]Embeddings[[:space:]]in[[:space:]]CLIP/c718a104-e822-4497-883a-54264c48f76e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3846 |
+
2024/Semi-Supervised[[:space:]]Reward[[:space:]]Modeling[[:space:]]via[[:space:]]Iterative[[:space:]]Self-Training/a3a34752-c502-4aed-863f-abf1d4fa9b59_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3847 |
+
2024/Shall[[:space:]]We[[:space:]]Team[[:space:]]Up_[[:space:]]Exploring[[:space:]]Spontaneous[[:space:]]Cooperation[[:space:]]of[[:space:]]Competing[[:space:]]LLM[[:space:]]Agents/0ac8f0f4-3a70-41bd-8f8c-104470db2f72_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3848 |
+
2024/ShieldLM_[[:space:]]Empowering[[:space:]]LLMs[[:space:]]as[[:space:]]Aligned,[[:space:]]Customizable[[:space:]]and[[:space:]]Explainable[[:space:]]Safety[[:space:]]Detectors/88b018fb-f424-4975-83b8-33bd5367cebb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3849 |
+
2024/Shoes-ACOSI_[[:space:]]A[[:space:]]Dataset[[:space:]]for[[:space:]]Aspect-Based[[:space:]]Sentiment[[:space:]]Analysis[[:space:]]with[[:space:]]Implicit[[:space:]]Opinion[[:space:]]Extraction/02314f5e-ac0e-4e97-bb41-23a58c851beb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3850 |
+
2024/Should[[:space:]]Cross-Lingual[[:space:]]AMR[[:space:]]Parsing[[:space:]]go[[:space:]]Meta_[[:space:]]An[[:space:]]Empirical[[:space:]]Assessment[[:space:]]of[[:space:]]Meta-Learning[[:space:]]and[[:space:]]Joint[[:space:]]Learning[[:space:]]AMR[[:space:]]Parsing/0b8a2e9a-d6b7-46a7-a567-7bdbd1c27864_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3851 |
+
2024/Sing[[:space:]]it,[[:space:]]Narrate[[:space:]]it_[[:space:]]Quality[[:space:]]Musical[[:space:]]Lyrics[[:space:]]Translation/192fb3fe-fb4d-4309-9e2e-942c9b36293c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3852 |
+
2024/Skills-in-Context_[[:space:]]Unlocking[[:space:]]Compositionality[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/ee2eaec9-bf5e-4de1-b401-debeeb57046f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3853 |
+
2024/SnapNTell_[[:space:]]Enhancing[[:space:]]Entity-Centric[[:space:]]Visual[[:space:]]Question[[:space:]]Answering[[:space:]]with[[:space:]]Retrieval[[:space:]]Augmented[[:space:]]Multimodal[[:space:]]LLM/21cb7539-81fe-4b99-9023-0f34f66fc335_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3854 |
+
2024/SocialGaze_[[:space:]]Improving[[:space:]]the[[:space:]]Integration[[:space:]]of[[:space:]]Human[[:space:]]Social[[:space:]]Norms[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/f7ebea1a-3f6d-4e3f-856c-4d73a4214dda_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3855 |
+
2024/Socratic[[:space:]]Human[[:space:]]Feedback[[:space:]](SoHF)_[[:space:]]Expert[[:space:]]Steering[[:space:]]Strategies[[:space:]]for[[:space:]]LLM[[:space:]]Code[[:space:]]Generation/7ff46ffa-27ed-4652-95d5-d8f970751dd4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3856 |
+
2024/Soda-Eval_[[:space:]]Open-Domain[[:space:]]Dialogue[[:space:]]Evaluation[[:space:]]in[[:space:]]the[[:space:]]age[[:space:]]of[[:space:]]LLMs/f4ddbc06-e400-42db-9cdd-fe21c8954833_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3857 |
+
2024/Solving[[:space:]]for[[:space:]]X[[:space:]]and[[:space:]]Beyond_[[:space:]]Can[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]Solve[[:space:]]Complex[[:space:]]Math[[:space:]]Problems[[:space:]]with[[:space:]]More-Than-Two[[:space:]]Unknowns_/56c27add-d150-4f00-93f9-e76e9e385bc8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3858 |
+
2024/Sonnet[[:space:]]or[[:space:]]Not,[[:space:]]Bot_[[:space:]]Poetry[[:space:]]Evaluation[[:space:]]for[[:space:]]Large[[:space:]]Models[[:space:]]and[[:space:]]Datasets/752d16ba-a95c-402e-8bed-482c7c05ad64_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3859 |
+
2024/SpeciaLex_[[:space:]]A[[:space:]]Benchmark[[:space:]]for[[:space:]]In-Context[[:space:]]Specialized[[:space:]]Lexicon[[:space:]]Learning/3203a6f9-ca35-43c6-b821-567b62adb213_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3860 |
+
2024/StablePT[[:space:]]_[[:space:]]Towards[[:space:]]Stable[[:space:]]Prompting[[:space:]]for[[:space:]]Few-shot[[:space:]]Learning[[:space:]]via[[:space:]]Input[[:space:]]Separation/31db5709-f610-4100-a10c-7384ac2b57bc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3861 |
+
2024/Stanceformer_[[:space:]]Target-Aware[[:space:]]Transformer[[:space:]]for[[:space:]]Stance[[:space:]]Detection/ab1e9460-93e1-4e53-97d1-b56aaac4b202_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3862 |
+
2024/Stark_[[:space:]]Social[[:space:]]Long-Term[[:space:]]Multi-Modal[[:space:]]Conversation[[:space:]]with[[:space:]]Persona[[:space:]]Commonsense[[:space:]]Knowledge/cf904d82-7b65-40c6-8422-57caf94cd8db_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3863 |
+
2024/Step-level[[:space:]]Value[[:space:]]Preference[[:space:]]Optimization[[:space:]]for[[:space:]]Mathematical[[:space:]]Reasoning/56a3c7d3-cd95-41c5-8f51-13d2b3c7b4f0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3864 |
+
2024/Stochastic[[:space:]]Fine-Tuning[[:space:]]of[[:space:]]Language[[:space:]]Models[[:space:]]Using[[:space:]]Masked[[:space:]]Gradients/92554702-0933-4cf6-b4ad-f25f7dc2a17d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3865 |
+
2024/StraGo_[[:space:]]Harnessing[[:space:]]Strategic[[:space:]]Guidance[[:space:]]for[[:space:]]Prompt[[:space:]]Optimization/1d5a6b6e-f34d-4deb-9044-8170dc47e3b6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3866 |
+
2024/Structured[[:space:]]Chain-of-Thought[[:space:]]Prompting[[:space:]]for[[:space:]]Few-Shot[[:space:]]Generation[[:space:]]of[[:space:]]Content-Grounded[[:space:]]QA[[:space:]]Conversations/074575c5-2d56-47b0-adff-e2aaa25fc7fe_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3867 |
+
2024/Student[[:space:]]Data[[:space:]]Paradox[[:space:]]and[[:space:]]Curious[[:space:]]Case[[:space:]]of[[:space:]]Single[[:space:]]Student-Tutor[[:space:]]Model_[[:space:]]Regressive[[:space:]]Side[[:space:]]Effects[[:space:]]of[[:space:]]Training[[:space:]]LLMs[[:space:]]for[[:space:]]Personalized[[:space:]]Learning/c1ba5906-38f5-49e4-b5a9-aaef8f0e6e39_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3868 |
+
2024/Style-Compress_[[:space:]]An[[:space:]]LLM-Based[[:space:]]Prompt[[:space:]]Compression[[:space:]]Framework[[:space:]]Considering[[:space:]]Task-Specific[[:space:]]Styles/db4183b0-1196-4aff-8ab9-78bea07f02cf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3869 |
+
2024/SummaCoz_[[:space:]]A[[:space:]]Dataset[[:space:]]for[[:space:]]Improving[[:space:]]the[[:space:]]Interpretability[[:space:]]of[[:space:]]Factual[[:space:]]Consistency[[:space:]]Detection[[:space:]]for[[:space:]]Summarization/64aa231a-a3f1-4e0f-a5d0-7f8404848c90_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3870 |
+
2024/Suri_[[:space:]]Multi-constraint[[:space:]]Instruction[[:space:]]Following[[:space:]]in[[:space:]]Long-form[[:space:]]Text[[:space:]]Generation/a66f1397-8251-46f6-af07-3c429abc5217_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3871 |
+
2024/Symbolic[[:space:]]Prompt[[:space:]]Program[[:space:]]Search_[[:space:]]A[[:space:]]Structure-Aware[[:space:]]Approach[[:space:]]to[[:space:]]Efficient[[:space:]]Compile-Time[[:space:]]Prompt[[:space:]]Optimization/31c7d240-86d2-4ca0-a17c-d1e94a11dfaf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3872 |
+
2024/SynTQA_[[:space:]]Synergistic[[:space:]]Table-based[[:space:]]Question[[:space:]]Answering[[:space:]]via[[:space:]]Mixture[[:space:]]of[[:space:]]Text-to-SQL[[:space:]]and[[:space:]]E2E[[:space:]]TQA/ba9304a6-0ffc-402b-b9c4-f430c03d805b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3873 |
+
2024/SynthEval_[[:space:]]Hybrid[[:space:]]Behavioral[[:space:]]Testing[[:space:]]of[[:space:]]NLP[[:space:]]Models[[:space:]]with[[:space:]]Synthetic[[:space:]]CheckLists/7634fa12-a33c-4f1f-89da-dfebe3959e05_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3874 |
+
2024/Synthetic[[:space:]]Multimodal[[:space:]]Question[[:space:]]Generation/70ee8c4e-4c7f-48a2-aac9-137ba5bed752_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3875 |
+
2024/TAP4LLM_[[:space:]]Table[[:space:]]Provider[[:space:]]on[[:space:]]Sampling,[[:space:]]Augmenting,[[:space:]]and[[:space:]]Packing[[:space:]]Semi-structured[[:space:]]Data[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Reasoning/c6bbf5bf-966a-4d89-800c-a441ec518e9d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3876 |
+
2024/TARA_[[:space:]]Token-level[[:space:]]Attribute[[:space:]]Relation[[:space:]]Adaptation[[:space:]]for[[:space:]]Multi-Attribute[[:space:]]Controllable[[:space:]]Text[[:space:]]Generation/7ffc13bf-9682-4964-90b2-7119db7ee815_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3877 |
+
2024/TOOLVERIFIER_[[:space:]]Generalization[[:space:]]to[[:space:]]New[[:space:]]Tools[[:space:]]via[[:space:]]Self-Verification/89099054-dfc3-42a9-b43a-9b2b84c2254a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3878 |
+
2024/TOWER_[[:space:]]Tree[[:space:]]Organized[[:space:]]Weighting[[:space:]]for[[:space:]]Evaluating[[:space:]]Complex[[:space:]]Instructions/fd7e4aad-5add-4e88-84fc-cac11bc53ad2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3879 |
+
2024/TRACE[[:space:]]the[[:space:]]Evidence_[[:space:]]Constructing[[:space:]]Knowledge-Grounded[[:space:]]Reasoning[[:space:]]Chains[[:space:]]for[[:space:]]Retrieval-Augmented[[:space:]]Generation/824d577f-24d7-4223-95f9-636a2ef8cf8f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3880 |
+
2024/TRIP[[:space:]]NEGOTIATOR_[[:space:]]A[[:space:]]Travel[[:space:]]Persona-aware[[:space:]]Reinforced[[:space:]]Dialogue[[:space:]]Generation[[:space:]]Model[[:space:]]for[[:space:]]Personalized[[:space:]]Integrative[[:space:]]Negotiation[[:space:]]in[[:space:]]Tourism/32d23a0c-4721-43b7-8311-11808513cfbf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3881 |
+
2024/TROPE_[[:space:]]TRaining-Free[[:space:]]Object-Part[[:space:]]Enhancement[[:space:]]for[[:space:]]Seamlessly[[:space:]]Improving[[:space:]]Fine-Grained[[:space:]]Zero-Shot[[:space:]]Image[[:space:]]Captioning/16c4526d-9c1d-4fe6-91da-652cd4aca304_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3882 |
+
2024/TS-Align_[[:space:]]A[[:space:]]Teacher-Student[[:space:]]Collaborative[[:space:]]Framework[[:space:]]for[[:space:]]Scalable[[:space:]]Iterative[[:space:]]Finetuning[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/50109634-d613-4f49-b559-688f98d6a47f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3883 |
+
2024/TWBias_[[:space:]]A[[:space:]]Benchmark[[:space:]]for[[:space:]]Assessing[[:space:]]Social[[:space:]]Bias[[:space:]]in[[:space:]]Traditional[[:space:]]Chinese[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]through[[:space:]]a[[:space:]]Taiwan[[:space:]]Cultural[[:space:]]Lens/8f2ab6af-954f-4361-81fb-c44a6fed3e9b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3884 |
+
2024/Tab2Text[[:space:]]-[[:space:]]A[[:space:]]framework[[:space:]]for[[:space:]]deep[[:space:]]learning[[:space:]]with[[:space:]]tabular[[:space:]]data/ae425a3d-5c78-4413-85cb-f5246d5599cd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3885 |
+
2024/Taking[[:space:]]a[[:space:]]Deep[[:space:]]Breath_[[:space:]]Enhancing[[:space:]]Language[[:space:]]Modeling[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Sentinel[[:space:]]Tokens/0bba3424-48ff-481c-acb6-7c625a961f17_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3886 |
+
2024/Taking[[:space:]]a[[:space:]]turn[[:space:]]for[[:space:]]the[[:space:]]better_[[:space:]]Conversation[[:space:]]redirection[[:space:]]throughout[[:space:]]the[[:space:]]course[[:space:]]of[[:space:]]mental-health[[:space:]]therapy/21b22500-890d-4883-8dc8-106830b31445_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3887 |
+
2024/Talking[[:space:]]the[[:space:]]Talk[[:space:]]Does[[:space:]]Not[[:space:]]Entail[[:space:]]Walking[[:space:]]the[[:space:]]Walk_[[:space:]]On[[:space:]]the[[:space:]]Limits[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]Lexical[[:space:]]Entailment[[:space:]]Recognition/1a9078c6-d036-441f-a713-2cad2e47f923_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3888 |
+
2024/Targeted[[:space:]]Multilingual[[:space:]]Adaptation[[:space:]]for[[:space:]]Low-resource[[:space:]]Language[[:space:]]Families/3fa94ed9-dfc1-41ae-9e97-5cbca8550400_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3889 |
+
2024/Temperature-Centric[[:space:]]Investigation[[:space:]]of[[:space:]]Speculative[[:space:]]Decoding[[:space:]]with[[:space:]]Knowledge[[:space:]]Distillation/29fceb02-eb3a-4e93-a423-44d0c614e38c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3890 |
+
2024/Temporal[[:space:]]Cognitive[[:space:]]Tree_[[:space:]]A[[:space:]]Hierarchical[[:space:]]Modeling[[:space:]]Approach[[:space:]]for[[:space:]]Event[[:space:]]Temporal[[:space:]]Relation[[:space:]]Extraction/8e33950c-eb4a-4a0a-8804-5d3cef263c26_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 3891 |
+
2024/Temporal[[:space:]]Fact[[:space:]]Reasoning[[:space:]]over[[:space:]]Hyper-Relational[[:space:]]Knowledge[[:space:]]Graphs/6836f680-16b4-408e-96f4-b1314ddaab3f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/b33177e1-fdfe-4c5f-a9a9-037a138aa0cf_content_list.json
ADDED
|
@@ -0,0 +1,2305 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"text",
|
| 16 |
+
"text": "Zhiyuan Fan $^{1}$ , Weinong Wang $^{2*}$ , Xing Wu $^{3}$ , Debing Zhang $^{2}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
242,
|
| 19 |
+
133,
|
| 20 |
+
757,
|
| 21 |
+
152
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{1}$ Hong Kong University of Science and Technology, $^{2}$ Xiaohongshu Inc,",
|
| 28 |
+
"bbox": [
|
| 29 |
+
210,
|
| 30 |
+
167,
|
| 31 |
+
786,
|
| 32 |
+
184
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "$^{3}$ Institute of Information Engineering, Chinese Academy of Sciences zhiyuan.fan@connect.ust.hk, weinong.wang@hotmail.com",
|
| 39 |
+
"bbox": [
|
| 40 |
+
210,
|
| 41 |
+
184,
|
| 42 |
+
776,
|
| 43 |
+
217
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
261,
|
| 54 |
+
339,
|
| 55 |
+
275
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "The evaluation paradigm of LLM-as-judge gains popularity due to its significant reduction in human labor and time costs. This approach utilizes one or more large language models (LLMs) to assess the quality of outputs from other LLMs. However, existing methods rely on generic scoring rubrics that fail to consider the specificities of each question and its problem-solving process, compromising precision and stability in assessments. Inspired by human examination scoring processes, we propose a new evaluation paradigm based on self-adaptive rubrics. Specifically, we create detailed scoring rubrics for each question, capturing the primary and secondary criteria in a structured format of scoring and deduction points that mimic a human evaluator's analytical process. Building on this paradigm, we further develop a novel benchmark called SedarEval, which covers a range of domains including long-tail knowledge, mathematics, coding, and logical reasoning. SedarEval consists of 1,000 meticulously crafted questions, each with its own self-adaptive rubric. To further streamline the evaluation, we train a specialized evaluator language model (evaluator LM) to supplant human graders. Using the same training data, our evaluator LM achieves a higher concordance rate with human grading results than other paradigms, including GPT-4, highlighting the superiority and efficiency of our approach.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
144,
|
| 64 |
+
284,
|
| 65 |
+
460,
|
| 66 |
+
739
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
114,
|
| 76 |
+
747,
|
| 77 |
+
258,
|
| 78 |
+
762
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The rapid advancements in large language models (LLMs) have led to their widespread use (OpenAI et al., 2024; Team et al., 2023; Anthropic, 2024; Bai et al., 2023). However, assessing these models in open-ended question-answering scenarios poses a significant challenge. Automated metric-based evaluations offer speed and convenience but often fall short due to the diversity of ground truth",
|
| 85 |
+
"bbox": [
|
| 86 |
+
112,
|
| 87 |
+
772,
|
| 88 |
+
487,
|
| 89 |
+
901
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "(Schluter, 2017a; Reiter, 2018; Montahaei et al., 2019; Freitag et al., 2020). In contrast, human-based evaluations provide reliable assessments but require substantial resources.",
|
| 96 |
+
"bbox": [
|
| 97 |
+
507,
|
| 98 |
+
261,
|
| 99 |
+
882,
|
| 100 |
+
324
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "To bridge the gap, the LLM-as-a-judge paradigm attempts to strike a balance between automated and human evaluation. Prominent examples of this approach include MT-bench (Zheng et al., 2024) and Arena (Chiang et al., 2024), which leverage proprietary models to evaluate individual or comparative model responses. These benchmarks use pre-defined principles, such as the 3H principle (human-like, helpful, harmonious), to determine responses that align best with realistic human preferences. The widespread use of GPT-4 (OpenAI et al., 2024) as an evaluator in these studies presents challenges, including high costs for research institutions and potential data leaks.",
|
| 107 |
+
"bbox": [
|
| 108 |
+
507,
|
| 109 |
+
326,
|
| 110 |
+
884,
|
| 111 |
+
549
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Some studies (Zhu et al., 2023; Li et al., 2023a; Wang et al., 2024; Kim et al., 2024a,b) propose using open-source pretrained models (Touvron et al., 2023; Bai et al., 2023; Zeng et al., 2022) to train specialized evaluator LMs, offering a more cost-effective and secure solution. However, these methods typically use a uniform, question-agnostic rubric to guide the scoring process, overlooking the unique characteristics of each question. Each question has different emphases, with primary and secondary scoring points. A general rubric applies uniform criteria, failing to accurately reflect human preferences.",
|
| 118 |
+
"bbox": [
|
| 119 |
+
507,
|
| 120 |
+
551,
|
| 121 |
+
882,
|
| 122 |
+
759
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "To adaptively align the scoring process with human judgment, we propose a novel evaluation paradigm based on self-adaptive rubrics. Unlike coarse-grained general rubrics, we provide fine-grained rubrics for each task, detailing specific scoring and penalty points with primary and secondary information. By analyzing focus points, we assign different values to each point. Additionally, we introduce penalty points to penalize models for generating rejected responses. The scoring pro",
|
| 129 |
+
"bbox": [
|
| 130 |
+
507,
|
| 131 |
+
760,
|
| 132 |
+
882,
|
| 133 |
+
921
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "page_footnote",
|
| 139 |
+
"text": "*Corresponding author.",
|
| 140 |
+
"bbox": [
|
| 141 |
+
136,
|
| 142 |
+
906,
|
| 143 |
+
280,
|
| 144 |
+
920
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "page_number",
|
| 150 |
+
"text": "16916",
|
| 151 |
+
"bbox": [
|
| 152 |
+
475,
|
| 153 |
+
927,
|
| 154 |
+
524,
|
| 155 |
+
940
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "footer",
|
| 161 |
+
"text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 16916-16930",
|
| 162 |
+
"bbox": [
|
| 163 |
+
210,
|
| 164 |
+
945,
|
| 165 |
+
786,
|
| 166 |
+
958
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 0
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "footer",
|
| 172 |
+
"text": "November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 173 |
+
"bbox": [
|
| 174 |
+
273,
|
| 175 |
+
959,
|
| 176 |
+
724,
|
| 177 |
+
971
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "image",
|
| 183 |
+
"img_path": "images/bb722d898fb4f2cae162dd772a0b5a02bb62c55d30cfeb44bb1dfbb37d5238d9.jpg",
|
| 184 |
+
"image_caption": [
|
| 185 |
+
"Figure 1: Automated evaluation pipeline using self-adaptive rubrics. This pipeline dynamically adjusts the evaluation rubric based on the input question, resulting in a scoring process that aligns more closely with human evaluators."
|
| 186 |
+
],
|
| 187 |
+
"image_footnote": [],
|
| 188 |
+
"bbox": [
|
| 189 |
+
126,
|
| 190 |
+
87,
|
| 191 |
+
872,
|
| 192 |
+
340
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "cess considers both preferred and rejected perspectives. The inconsistent coverage of positive and penalty points ensures a more refined constraint on the scoring process. These detailed scoring trajectories simplify the evaluation process to an instruction-following task, reducing dependency on a judge model's internal knowledge and skills, leading to more accurate and stable assessments. Building on this paradigm, we construct a new benchmark called SedarEval, presenting a taxonomy comprising 5 major categories, with a dataset of 1000 queries, that fully aligns with realistic scenarios.",
|
| 199 |
+
"bbox": [
|
| 200 |
+
112,
|
| 201 |
+
417,
|
| 202 |
+
489,
|
| 203 |
+
625
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "We further conduct ablation experiments on each component of the LLM-as-a-judge paradigm to investigate training a specialized LLM for scoring, revealing their respective importance. We analyze whether LLMs can correctly evaluate questions they can correctly answer and find that insufficient diversity in existing SFT data and a lack of evaluation-format data limit model performance. We also propose human-AI consistency to ensure evaluator LLMs maintain alignment with human preferences while leveraging their chain of thought capability to improve evaluation performance. Based on these findings, we develop a specialized evaluator LLM tailored to the benchmark for automated scoring. This model surpasses GPT-4 in model-level and question-level Pearson correlation, GSB, and ACC metrics, demonstrating higher consistency with human judgment. Ex",
|
| 210 |
+
"bbox": [
|
| 211 |
+
112,
|
| 212 |
+
631,
|
| 213 |
+
489,
|
| 214 |
+
921
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "perimental results validate the effectiveness and efficiency of our proposed paradigm.",
|
| 221 |
+
"bbox": [
|
| 222 |
+
507,
|
| 223 |
+
417,
|
| 224 |
+
880,
|
| 225 |
+
450
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "Our contributions are summarized as follows:",
|
| 232 |
+
"bbox": [
|
| 233 |
+
527,
|
| 234 |
+
451,
|
| 235 |
+
867,
|
| 236 |
+
464
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "list",
|
| 242 |
+
"sub_type": "text",
|
| 243 |
+
"list_items": [
|
| 244 |
+
"1. We propose a novel evaluation paradigm using self-adaptive rubrics for each question, offering granular guidance and closely aligning the scoring process with human evaluation.",
|
| 245 |
+
"2. We develop a high-quality benchmark called SedarEval, featuring 1,000 meticulously crafted questions with detailed rubrics, and conduct manual evaluations on 20 LLMs.",
|
| 246 |
+
"3. We analyze the training of evaluator LMs, highlight existing methods' shortcomings, and use the self-adaptive rubrics paradigm to train an evaluator LM that surpasses GPT-4 in agreement with human evaluations."
|
| 247 |
+
],
|
| 248 |
+
"bbox": [
|
| 249 |
+
522,
|
| 250 |
+
480,
|
| 251 |
+
882,
|
| 252 |
+
717
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "2 Related Work",
|
| 259 |
+
"text_level": 1,
|
| 260 |
+
"bbox": [
|
| 261 |
+
509,
|
| 262 |
+
732,
|
| 263 |
+
665,
|
| 264 |
+
747
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 1
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "Benchmark LLMs Capabilities. With the rapid advancement of LLMs (OpenAI et al., 2024; Team et al., 2023; Anthropic, 2024), it has become a substantial challenge to benchmark their broad capabilities reliably. NLU-style tasks (Hendrycks et al., 2020; Huang et al., 2024; Srivastava et al., 2022; Zhong et al., 2023), such as multi-choice QA, employ general-exam questions from various domains to assess a model's knowledge and comprehension abilities. However, their real-world usage is limited",
|
| 271 |
+
"bbox": [
|
| 272 |
+
507,
|
| 273 |
+
760,
|
| 274 |
+
884,
|
| 275 |
+
921
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 1
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "page_number",
|
| 281 |
+
"text": "16917",
|
| 282 |
+
"bbox": [
|
| 283 |
+
477,
|
| 284 |
+
927,
|
| 285 |
+
524,
|
| 286 |
+
940
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 1
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "due to misalignment with human preferences. Recently, reference-free benchmarks (Li et al., 2023b; Chiang et al., 2023; Zheng et al., 2024; Ye et al., 2023) have been proposed to evaluate texts' quality in a generative setting directly. Unlike previous datasets, our benchmark provides a comprehensive and stable model assessment with its diverse test cases and broad label distribution.",
|
| 293 |
+
"bbox": [
|
| 294 |
+
112,
|
| 295 |
+
84,
|
| 296 |
+
492,
|
| 297 |
+
212
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "Automatic NLG Evaluation. It's notably challenging to evaluate the quality of generated text in the field of natural language generation (NLG). Traditional n-gram-based metrics (Papineni et al., 2002; Lin, 2004; Snover et al., 2006) and embedding-based metrics (Li et al., 2019; Zhang et al., 2020; Risch et al., 2021) can only assess lexical or semantic similarity between the generated answers and reference answers (Schluter, 2017a; Reiter, 2018; Montahaei et al., 2019; Freitag et al., 2020). These metrics have been found to have a relatively low correlation with human preferences (Liu et al., 2023a). Recently, employing LLM as a judge (Zheng et al., 2023; Li et al., 2023b; Chan et al., 2023) is a novel evaluation paradigm that has gained widespread application. The most common approach involves using proprietary LLMs, such as GPT-4 (OpenAI et al., 2024), as judge models to rank or score outputs generated by other models. However, this method relies on closed-source models, incurs high costs, and poses risks of internal evaluation dataset leaks for companies developing LLMs. To address these issues, various works (Zhu et al., 2023; Li et al., 2023a; Wang et al., 2024; Kim et al., 2024a,b) have proposed training dedicated scoring models on open-source base models using synthetic or manually labeled data. These evaluations often use reference answers to assist in the assessment or employ general rubrics to guide the scoring process. However, these approaches overlook the differences between individual questions and the varying scoring criteria of each question, even within the same category. In contrast, we propose an evaluation paradigm based on self-adaptive rubrics that generates fine-grained, customizable rubrics for each question, guiding a more precise scoring process. It is worth noting that although Prometheus 2 also claims to use fine-grained rubrics, their rubrics remain question-agnostic.",
|
| 304 |
+
"bbox": [
|
| 305 |
+
110,
|
| 306 |
+
212,
|
| 307 |
+
490,
|
| 308 |
+
854
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "Quantifying Evaluation Confidence. The automatic metrics are imperfect, and we must measure their performance further. A gold standard for this is their alignment with human judgment",
|
| 315 |
+
"bbox": [
|
| 316 |
+
112,
|
| 317 |
+
857,
|
| 318 |
+
489,
|
| 319 |
+
921
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "and the confidence level we can have when these metrics guide our decision-making process. However, quantifying this performance (Krishna et al., 2021; Schluter, 2017b; Stureborg et al., 2024) is difficult due to various factors (the evaluator's accuracy and stability, evaluation set size, the extent of the performance difference among competing models, etc.). (Kocmi et al., 2021; Deutsch et al., 2021; Zhang and Vogel, 2004) investigate the correlation between human judgment and traditional automatic metrics such as ROUGE and BLEU and analyze their confidence intervals. For LLM-based evaluators, commonly used metrics include Pearson, Spearman, and Kdendall-Tau to measure the alignment between the model's scores and human preferences. However, previous work has primarily focused on the correlation of rankings or overall scores at the model level without comparing the scores with human ratings at the individual question. This limits the interpretability of the scoring process and hampers its utility in guiding the development and iteration of LLMs.",
|
| 326 |
+
"bbox": [
|
| 327 |
+
507,
|
| 328 |
+
84,
|
| 329 |
+
885,
|
| 330 |
+
439
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 2
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "3 SedarEval Benchmark",
|
| 337 |
+
"text_level": 1,
|
| 338 |
+
"bbox": [
|
| 339 |
+
507,
|
| 340 |
+
453,
|
| 341 |
+
741,
|
| 342 |
+
469
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 2
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "In this section, we introduce SedarEval, a benchmark constructed upon the self-adaptive rubrics paradigm. We begin by delving into the intricacies of the self-adaptive rubric paradigm, followed by a detailed explanation of the benchmark's core components – questions and their corresponding rubrics – along with the methodology for model evaluation using this benchmark. To ensure the quality of SedarEval, we incorporate comprehensive human assessment into the construction process, meticulously filtering out samples that fail to meet the established quality standards.",
|
| 349 |
+
"bbox": [
|
| 350 |
+
505,
|
| 351 |
+
481,
|
| 352 |
+
885,
|
| 353 |
+
675
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "3.1 Self-Adaptive Rubrics",
|
| 360 |
+
"text_level": 1,
|
| 361 |
+
"bbox": [
|
| 362 |
+
507,
|
| 363 |
+
688,
|
| 364 |
+
732,
|
| 365 |
+
703
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 2
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "Previous LLM-as-a-judge approaches, which rely on general rubrics or principles for scoring, often lack specific, problem-related rubric guidance. Consequently, these methods depend heavily on the inherent capabilities of the LLM itself, leading to potential errors in evaluations due to insufficient reasoning abilities or hallucinations. Additionally, this approach introduces extraneous biases, such as position bias and order bias.",
|
| 372 |
+
"bbox": [
|
| 373 |
+
507,
|
| 374 |
+
711,
|
| 375 |
+
884,
|
| 376 |
+
854
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 2
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "Self-adaptive rubrics address these issues by tailoring the evaluation criteria to the specific problems at hand, incorporating the focal points of the problem and assigning different weights accordingly.",
|
| 383 |
+
"bbox": [
|
| 384 |
+
507,
|
| 385 |
+
857,
|
| 386 |
+
885,
|
| 387 |
+
921
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 2
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "page_number",
|
| 393 |
+
"text": "16918",
|
| 394 |
+
"bbox": [
|
| 395 |
+
477,
|
| 396 |
+
927,
|
| 397 |
+
524,
|
| 398 |
+
940
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 2
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "By introducing penalty points, these rubrics align more closely with human judgments by deducting points for outputs that deviate from expected tendencies. To prevent human evaluators (or LLMs) from making incorrect assessments due to a lack of background information, additional context is provided for each question to assist in the scoring process. A typical self-adaptive rubric comprises three components: scoring points, penalty points, and background knowledge, as illustrated in Table 3.",
|
| 405 |
+
"bbox": [
|
| 406 |
+
112,
|
| 407 |
+
84,
|
| 408 |
+
489,
|
| 409 |
+
261
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 3
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "3.2 Dataset Construction",
|
| 416 |
+
"text_level": 1,
|
| 417 |
+
"bbox": [
|
| 418 |
+
112,
|
| 419 |
+
272,
|
| 420 |
+
329,
|
| 421 |
+
286
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Questions: We have defined a classification system for objective questions, with a two-tiered scoring system as shown in the diagram. Under each secondary classification, we have hired five people to create questions. Specifically, each person is required to first create their own questions to get a question pool, and then each person votes on all the questions. We only keep the questions that all five people agree on.",
|
| 428 |
+
"bbox": [
|
| 429 |
+
112,
|
| 430 |
+
293,
|
| 431 |
+
489,
|
| 432 |
+
437
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "For each candidate question, the annotators will select 5 LLMs to test the effectiveness of the questioned question. We only keep the questions with a larger variance in scores, which are more discriminating, and remove the questions where the answers from different models are almost the same, which are not helpful in distinguishing between different models. For example, if a question can be answered correctly by all models, or incorrectly by all models, then this question cannot show which model is better.",
|
| 439 |
+
"bbox": [
|
| 440 |
+
112,
|
| 441 |
+
438,
|
| 442 |
+
489,
|
| 443 |
+
613
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "After collecting the initial questions, we hired another group of people to compare all the questions in pairs to judge the similarity of the problem-solving ideas for the two questions and delete the questions with too much similarity.",
|
| 450 |
+
"bbox": [
|
| 451 |
+
112,
|
| 452 |
+
615,
|
| 453 |
+
489,
|
| 454 |
+
695
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "Rubrics: For each question, we assign it to three individuals to discuss together and generate a rubric like the one shown in Figure 1.",
|
| 461 |
+
"bbox": [
|
| 462 |
+
112,
|
| 463 |
+
696,
|
| 464 |
+
487,
|
| 465 |
+
743
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "For more detailed information, please refer to Appendix D, which contains benchmark statistics and the leaderboard.",
|
| 472 |
+
"bbox": [
|
| 473 |
+
112,
|
| 474 |
+
745,
|
| 475 |
+
489,
|
| 476 |
+
791
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "3.3 Evaluation Pipeline",
|
| 483 |
+
"text_level": 1,
|
| 484 |
+
"bbox": [
|
| 485 |
+
112,
|
| 486 |
+
804,
|
| 487 |
+
315,
|
| 488 |
+
819
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "The entire evaluation pipeline using our benchmark is illustrated in Figure 1. Given a question, its corresponding rubrics, and the model to be evaluated, we first input the question into the model to generate a response. The response is then scored according to the predefined rubric, either by human",
|
| 495 |
+
"bbox": [
|
| 496 |
+
112,
|
| 497 |
+
825,
|
| 498 |
+
489,
|
| 499 |
+
921
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "evaluators or using LLMs. Finally, all the scores are aggregated to obtain the model's total score.",
|
| 506 |
+
"bbox": [
|
| 507 |
+
507,
|
| 508 |
+
84,
|
| 509 |
+
882,
|
| 510 |
+
116
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 3
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "4 Evaluator Language Model",
|
| 517 |
+
"text_level": 1,
|
| 518 |
+
"bbox": [
|
| 519 |
+
507,
|
| 520 |
+
129,
|
| 521 |
+
781,
|
| 522 |
+
146
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 3
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "In this section, we introduce an evaluator LM aligned with the self-adaptive rubrics paradigm to substitute human evaluators. We begin by delineating the evaluation format. Subsequently, we propose a novel data filtering strategy to align the Chain-of-Thought evaluation process with human judgments. Finally, we discuss the automation of rubric generation.",
|
| 529 |
+
"bbox": [
|
| 530 |
+
505,
|
| 531 |
+
156,
|
| 532 |
+
884,
|
| 533 |
+
285
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 3
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "4.1 Evaluation Format",
|
| 540 |
+
"text_level": 1,
|
| 541 |
+
"bbox": [
|
| 542 |
+
507,
|
| 543 |
+
297,
|
| 544 |
+
705,
|
| 545 |
+
311
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 3
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "The evaluation format consists of two types: direct scoring of individual model outputs and pairwise comparison of model outputs to determine the superior one. Pairwise evaluation requires significantly more comparisons as the number of candidate models increases, as shown by Equation 1. Therefore, we employ direct assessment in this paper. Notably, direct assessment scores can be compared to derive pairwise results.",
|
| 552 |
+
"bbox": [
|
| 553 |
+
505,
|
| 554 |
+
319,
|
| 555 |
+
884,
|
| 556 |
+
462
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 3
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "equation",
|
| 562 |
+
"text": "\n$$\nC (n, 2) = \\frac {n !}{2 ! (n - 2) !} - n = \\frac {n ^ {2} - 3 n}{2} \\tag {1}\n$$\n",
|
| 563 |
+
"text_format": "latex",
|
| 564 |
+
"bbox": [
|
| 565 |
+
549,
|
| 566 |
+
476,
|
| 567 |
+
882,
|
| 568 |
+
510
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 3
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "We use a reference-based format to organize the output. Specifically, for each question, we compile the reference answer, self-adaptive rubrics, and scoring examples to create an auto-prompt template. When evaluating answers, we incorporate the answers into this auto-prompt template as the complete input. We conduct ablation experiments on each component in zero-shot, few-shot, and instruction tuning settings.",
|
| 575 |
+
"bbox": [
|
| 576 |
+
507,
|
| 577 |
+
517,
|
| 578 |
+
885,
|
| 579 |
+
663
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 3
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "4.2 Human-AI Consistency",
|
| 586 |
+
"text_level": 1,
|
| 587 |
+
"bbox": [
|
| 588 |
+
507,
|
| 589 |
+
674,
|
| 590 |
+
741,
|
| 591 |
+
690
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 3
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "Human annotators provide specific scores for each response without corresponding explanations, which is efficient but suboptimal for training evaluator LMs. To alleviate this issue, we use GPT-4 to generate detailed reasoning steps using Chain-of-Thought. However, scoring preferences may differ between GPT-4 and human annotators, and both may make errors. To mitigate these errors and align the scoring process with human judgment, we introduce a Human-AI Consistency strategy to improve synthetic data quality. We extract final scores from the GPT-4 scoring process and compare them with human scores, retaining only the data where GPT-4 and human results are consistent,",
|
| 598 |
+
"bbox": [
|
| 599 |
+
505,
|
| 600 |
+
696,
|
| 601 |
+
884,
|
| 602 |
+
920
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 3
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "page_number",
|
| 608 |
+
"text": "16919",
|
| 609 |
+
"bbox": [
|
| 610 |
+
477,
|
| 611 |
+
927,
|
| 612 |
+
524,
|
| 613 |
+
940
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 3
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "as shown in Equation 2, where $\\mathcal{H}$ represents human scores, $\\mathcal{A}$ represents AI scores, and $\\mathbb{I}$ is an indicator function.",
|
| 620 |
+
"bbox": [
|
| 621 |
+
112,
|
| 622 |
+
84,
|
| 623 |
+
487,
|
| 624 |
+
131
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "equation",
|
| 630 |
+
"text": "\n$$\n\\mathcal {T} = \\{(h, a) \\mid h \\in \\mathcal {H}, a \\in \\mathcal {A}, \\mathbb {I} (h, a) = 1 \\} \\quad (2)\n$$\n",
|
| 631 |
+
"text_format": "latex",
|
| 632 |
+
"bbox": [
|
| 633 |
+
132,
|
| 634 |
+
158,
|
| 635 |
+
487,
|
| 636 |
+
175
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 4
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "This approach only retains instances where human and AI scores are consistent and differs from rejection sampling, which uses human scores as a reward function to select the optimal output from multiple GPT-4 results.",
|
| 643 |
+
"bbox": [
|
| 644 |
+
112,
|
| 645 |
+
185,
|
| 646 |
+
489,
|
| 647 |
+
265
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 4
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "4.3 Automatic Rubric Generation",
|
| 654 |
+
"text_level": 1,
|
| 655 |
+
"bbox": [
|
| 656 |
+
112,
|
| 657 |
+
275,
|
| 658 |
+
394,
|
| 659 |
+
290
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "To reduce human annotation costs, we investigate using human-annotated datasets to train a model for automatic self-adaptive rubric generation. By providing the model with questions and corresponding reference answers, we train it to produce rubrics that delineate scoring criteria and identify deduction points.",
|
| 666 |
+
"bbox": [
|
| 667 |
+
112,
|
| 668 |
+
296,
|
| 669 |
+
487,
|
| 670 |
+
407
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 4
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "Generating self-adaptive rubric format output is straightforward, but aligning rubrics with human preferences requires aligning the model with human evaluative criteria. This complexity arises because identifying scoring points, assigning specific weights, and criteria for deductions are significantly influenced by human judgment.",
|
| 677 |
+
"bbox": [
|
| 678 |
+
112,
|
| 679 |
+
409,
|
| 680 |
+
487,
|
| 681 |
+
520
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 4
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "The training process for the automatic rubric generation model comprises two stages. Initially, we use human-labeled data to train a base model through Supervised Fine-Tuning (SFT), as depicted in Equation 3.",
|
| 688 |
+
"bbox": [
|
| 689 |
+
112,
|
| 690 |
+
521,
|
| 691 |
+
489,
|
| 692 |
+
602
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 4
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "equation",
|
| 698 |
+
"text": "\n$$\n\\mathcal {L} (\\theta) = - \\sum_ {i = 1} ^ {N} \\log p _ {\\theta} \\left(y _ {i} \\mid x _ {i}\\right) \\tag {3}\n$$\n",
|
| 699 |
+
"text_format": "latex",
|
| 700 |
+
"bbox": [
|
| 701 |
+
196,
|
| 702 |
+
613,
|
| 703 |
+
487,
|
| 704 |
+
656
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 4
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "The base model generates rubrics that conform to the specified format, though they may not fully align with human preferences (quantitative metrics will be introduced in Section 5.2). In the next phase, rubrics generated by the base model are treated as rejected responses, while human-labeled rubrics serve as preferred responses to construct preference pairs. We then train the model using Direct Preference Optimization (DPO) to align it with human preferences, as shown in Equations 4 and 5.",
|
| 711 |
+
"bbox": [
|
| 712 |
+
112,
|
| 713 |
+
659,
|
| 714 |
+
489,
|
| 715 |
+
835
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 4
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "equation",
|
| 721 |
+
"text": "\n$$\nf (y, x) = \\beta \\log \\frac {\\pi_ {\\theta} (y \\mid x)}{\\pi_ {\\mathrm {r e f}} (y \\mid x)} \\tag {4}\n$$\n",
|
| 722 |
+
"text_format": "latex",
|
| 723 |
+
"bbox": [
|
| 724 |
+
196,
|
| 725 |
+
848,
|
| 726 |
+
487,
|
| 727 |
+
883
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 4
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "equation",
|
| 733 |
+
"text": "\n$$\n\\mathcal {L} \\left(\\pi_ {\\theta}\\right) = - \\log \\sigma \\left(f \\left(y _ {w}, x\\right) - f \\left(y _ {l}, x\\right)\\right) \\tag {5}\n$$\n",
|
| 734 |
+
"text_format": "latex",
|
| 735 |
+
"bbox": [
|
| 736 |
+
134,
|
| 737 |
+
904,
|
| 738 |
+
487,
|
| 739 |
+
922
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 4
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "We also explore automating rubric generation using GPT-4 without reference answers. To ensure accuracy, GPT-4 creates both the rubric and an ideal answer for each question. If the ideal answer corresponds with the ground truth, the generated rubric is deemed acceptable. We employ a self-refinement strategy to help the model iteratively refine its outputs, aligning it with human preferences. For detailed algorithmic procedures and prompts, refer to Appendix E.1.",
|
| 746 |
+
"bbox": [
|
| 747 |
+
507,
|
| 748 |
+
84,
|
| 749 |
+
884,
|
| 750 |
+
244
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 4
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "5 Experiment",
|
| 757 |
+
"text_level": 1,
|
| 758 |
+
"bbox": [
|
| 759 |
+
509,
|
| 760 |
+
255,
|
| 761 |
+
648,
|
| 762 |
+
272
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 4
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "5.1 Experimental Setting",
|
| 769 |
+
"text_level": 1,
|
| 770 |
+
"bbox": [
|
| 771 |
+
507,
|
| 772 |
+
280,
|
| 773 |
+
722,
|
| 774 |
+
296
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 4
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "We train the Evaluator Language Model and the Rubric Generation Model using both the opensource model LLaMA-3 (Touvron et al., 2023) and our internal model $\\mathrm{XDG}^{1}$ . To maximize training efficiency and utilize hardware resources, we implement tensor parallelism (Shoeybi et al., 2020) with PyTorch 2.3 (Paszke et al., 2019). For the 7B/8B models, we use 128 H100 GPUs, while for the 70B models, we use 512 H100 GPUs. For the models' chat versions (i.e., instruction-tuned), we employ the same chat markup language (ChatML) as the models themselves. For the pre-trained versions, we use a unified ChatML to reduce data bias. We adopt adaptive learning rate and batch size strategies. Further training details are provided in Appendix A.",
|
| 781 |
+
"bbox": [
|
| 782 |
+
507,
|
| 783 |
+
300,
|
| 784 |
+
884,
|
| 785 |
+
557
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 4
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "5.2 Evaluation Metrics",
|
| 792 |
+
"text_level": 1,
|
| 793 |
+
"bbox": [
|
| 794 |
+
507,
|
| 795 |
+
567,
|
| 796 |
+
705,
|
| 797 |
+
581
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 4
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "To assess the performance of the evaluator language model, we use Pearson's correlation coefficient and Spearman's rank correlation coefficient. These statistical measures assess the consistency between the outcomes of the evaluator language model and those obtained from human evaluators.",
|
| 804 |
+
"bbox": [
|
| 805 |
+
507,
|
| 806 |
+
588,
|
| 807 |
+
882,
|
| 808 |
+
683
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 4
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "Each question is accompanied by a detailed rubric specifying exact scoring and deduction criteria, so we use accuracy to evaluate the model's capability in following these self-adaptive rubrics for scoring. Considering potential noise in the model scoring, we introduce a weaker threshold ACC, which considers a result correct if it falls within a specified range. The calculation formulas are presented in Equation 6.",
|
| 815 |
+
"bbox": [
|
| 816 |
+
507,
|
| 817 |
+
684,
|
| 818 |
+
882,
|
| 819 |
+
829
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 4
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "equation",
|
| 825 |
+
"text": "\n$$\n\\mathrm {A C C} _ {t} = \\frac {1}{N} \\sum_ {i = 1} ^ {N} \\left\\{ \\begin{array}{l l} 1, & \\text {i f} | y _ {\\text {p r e d} _ {i}} - y _ {\\text {t r u e} _ {i}} | \\leq \\epsilon \\\\ 0, & \\text {o t h e r w i s e} \\end{array} \\right. \\tag {6}\n$$\n",
|
| 826 |
+
"text_format": "latex",
|
| 827 |
+
"bbox": [
|
| 828 |
+
519,
|
| 829 |
+
847,
|
| 830 |
+
882,
|
| 831 |
+
890
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 4
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "page_footnote",
|
| 837 |
+
"text": "<sup>1</sup>The name of this model has been anonymized to ensure confidentiality.",
|
| 838 |
+
"bbox": [
|
| 839 |
+
507,
|
| 840 |
+
896,
|
| 841 |
+
880,
|
| 842 |
+
922
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 4
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "page_number",
|
| 848 |
+
"text": "16920",
|
| 849 |
+
"bbox": [
|
| 850 |
+
477,
|
| 851 |
+
927,
|
| 852 |
+
524,
|
| 853 |
+
940
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 4
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "To facilitate the iterative enhancement of LLMs using our benchmark, a robust metric is essential to assess whether the current model version outperforms its predecessor. Therefore, we adopt the widely used GSB (Good, Same, Bad) metric to compare model performance. Given two models, A and B, the calculation formula is presented in Equation 7. In this context, \"#good\" signifies that model A surpasses model B, \"#bad\" denotes the contrary, and \"#same\" indicates equivalent performance between the models.",
|
| 860 |
+
"bbox": [
|
| 861 |
+
112,
|
| 862 |
+
84,
|
| 863 |
+
492,
|
| 864 |
+
261
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 5
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "equation",
|
| 870 |
+
"text": "\n$$\n\\Delta G S B = \\frac {\\# \\text {g o o d} - \\# \\text {b a d}}{\\# \\text {g o o d} + \\# \\text {s a m e} + \\# \\text {b a d}} \\tag {7}\n$$\n",
|
| 871 |
+
"text_format": "latex",
|
| 872 |
+
"bbox": [
|
| 873 |
+
159,
|
| 874 |
+
273,
|
| 875 |
+
489,
|
| 876 |
+
307
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 5
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "To evaluate the quality of automatically generated rubrics, we draw on the ACU (Liu et al., 2023b) and FactScore (Min et al., 2023) paradigms, using GPT-4 to calculate the match between the generated rubrics and the ground truth rubrics. The calculation formula is specified in Equation 8, where GT represents the correct rubric set containing multiple {grading points: specific score} pairs, and AT denotes the automatically generated rubric set. $\\mathbb{I}(i\\in GT)$ is an indicator function that equals 1 if the item $i$ from AT is present in GT, and 0 otherwise. The prompts used for this evaluation are detailed in Appendix C.2.",
|
| 883 |
+
"bbox": [
|
| 884 |
+
112,
|
| 885 |
+
312,
|
| 886 |
+
489,
|
| 887 |
+
521
|
| 888 |
+
],
|
| 889 |
+
"page_idx": 5
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "equation",
|
| 893 |
+
"text": "\n$$\n\\operatorname {M a t c h} (G T, A T) = \\frac {\\sum_ {i \\in A T} \\mathbb {I} (i \\in G T)}{| G T |} \\tag {8}\n$$\n",
|
| 894 |
+
"text_format": "latex",
|
| 895 |
+
"bbox": [
|
| 896 |
+
152,
|
| 897 |
+
533,
|
| 898 |
+
487,
|
| 899 |
+
569
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 5
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "5.3 Selected Models",
|
| 906 |
+
"text_level": 1,
|
| 907 |
+
"bbox": [
|
| 908 |
+
112,
|
| 909 |
+
577,
|
| 910 |
+
287,
|
| 911 |
+
590
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 5
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "Previous studies predominantly employ English-proficient models to generate <question, response, score> triples for training evaluator language models, often overlooking models proficient in Chinese. Additionally, several studies exclusively use GPT-3.5 or GPT-4 to construct such synthetic data. These data generation methodologies may cause discrepancies between the synthetic and real-world data distributions, introducing biases into the trained evaluator language models.",
|
| 918 |
+
"bbox": [
|
| 919 |
+
112,
|
| 920 |
+
599,
|
| 921 |
+
489,
|
| 922 |
+
759
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 5
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "To alleviate this issue, we utilize a broader range of LLMs to collect responses that better reflect real-world distributions. This approach ensures greater diversity and mitigates biases introduced by relying solely on synthetic data generated from a single model. Specifically, we choose GPT-4, GPT-4-turbo, GPT-4-o, Claude Opus, DeepSeek 2.0, MiniMax 6.5, MiniMax 6, Doubao, GPT-3.5, Tongyi Qianwen 2.0, and Tongyi Qianwen 1.5-100B/70B. This selection includes models proficient in differ",
|
| 929 |
+
"bbox": [
|
| 930 |
+
112,
|
| 931 |
+
760,
|
| 932 |
+
490,
|
| 933 |
+
921
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 5
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "ent languages and multiple versions of the same model.",
|
| 940 |
+
"bbox": [
|
| 941 |
+
507,
|
| 942 |
+
84,
|
| 943 |
+
880,
|
| 944 |
+
112
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 5
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "For open-source models, we use local deployment to infer responses. For proprietary LLMs, if API services are available, we collect model outputs by requesting the API. If only a web interface is provided, we employ people to gather the outputs.",
|
| 951 |
+
"bbox": [
|
| 952 |
+
507,
|
| 953 |
+
117,
|
| 954 |
+
880,
|
| 955 |
+
197
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 5
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "6 Analysis",
|
| 962 |
+
"text_level": 1,
|
| 963 |
+
"bbox": [
|
| 964 |
+
507,
|
| 965 |
+
208,
|
| 966 |
+
618,
|
| 967 |
+
225
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 5
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "In this section, we conduct a comprehensive experimental analysis of the robustness of the proposed benchmark evaluations, examining the data distribution, training phases, and training paradigms of evaluator LMs. Our findings reveal limitations in current training methodologies for evaluator LMs. Building on these insights, we develop an evaluator LM aligned with the self-adaptive rubrics paradigm.",
|
| 974 |
+
"bbox": [
|
| 975 |
+
507,
|
| 976 |
+
233,
|
| 977 |
+
884,
|
| 978 |
+
378
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 5
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "6.1 Scaling Law for Robust Evaluation",
|
| 985 |
+
"text_level": 1,
|
| 986 |
+
"bbox": [
|
| 987 |
+
507,
|
| 988 |
+
388,
|
| 989 |
+
830,
|
| 990 |
+
404
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 5
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "A robust benchmark should effectively distinguish the capabilities of different models and maintain stability to ensure consistent rankings rather than allowing fluctuations due to the instability of individual tasks. To achieve this, the benchmark needs a sufficiently broad distribution while minimizing extraneous biases.",
|
| 997 |
+
"bbox": [
|
| 998 |
+
507,
|
| 999 |
+
409,
|
| 1000 |
+
882,
|
| 1001 |
+
520
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 5
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "To verify the robustness of the proposed benchmark, we conduct two rounds of sampling without replacement from a pool of 1,000 questions. In each round, we select $n$ questions, resulting in a total of $2n$ independent questions, where $n \\in [10,500]$ . We then compare the consistency of the model rankings obtained from these two samples.",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
507,
|
| 1010 |
+
521,
|
| 1011 |
+
884,
|
| 1012 |
+
650
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 5
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "image",
|
| 1018 |
+
"img_path": "images/b0762fe1c2d162e955cdaf38f3906ab8a0255ca6357adcbf8544267b772456fa.jpg",
|
| 1019 |
+
"image_caption": [
|
| 1020 |
+
"Figure 2: Consistency of model rankings as $n$ increases. After $n$ reaches approximately 300, the consistency stabilizes with only minor fluctuations.",
|
| 1021 |
+
"Figure 2 shows the variation in the consistency of model rankings under different question sets as $n$"
|
| 1022 |
+
],
|
| 1023 |
+
"image_footnote": [],
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
519,
|
| 1026 |
+
668,
|
| 1027 |
+
873,
|
| 1028 |
+
814
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 5
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "page_number",
|
| 1034 |
+
"text": "16921",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
477,
|
| 1037 |
+
927,
|
| 1038 |
+
522,
|
| 1039 |
+
940
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 5
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "increases. When $n$ is relatively small, the consistency is low, indicating the inconsistency caused by biases in different distributions. As $n$ increases, the consistency improves despite the two sets remaining independent. After $n$ reaches approximately 300, the consistency stabilizes with only minor fluctuations. This demonstrates the scaling law for robust evaluation, indicating that as the number of questions increases, the evaluation results tend to stabilize due to the broader coverage of the distribution.",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
112,
|
| 1048 |
+
84,
|
| 1049 |
+
492,
|
| 1050 |
+
261
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 6
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "6.2 Score Distribution Shift",
|
| 1057 |
+
"text_level": 1,
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
112,
|
| 1060 |
+
273,
|
| 1061 |
+
347,
|
| 1062 |
+
288
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 6
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "image",
|
| 1068 |
+
"img_path": "images/3fb42723dbc22e32d626e5726793e5ebd8a6dfd4611b27479317e6f01955eda6.jpg",
|
| 1069 |
+
"image_caption": [
|
| 1070 |
+
"Figure 3: Data distribution comparison of different data."
|
| 1071 |
+
],
|
| 1072 |
+
"image_footnote": [],
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
117,
|
| 1075 |
+
304,
|
| 1076 |
+
487,
|
| 1077 |
+
391
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 6
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "The Prometheus approach, which relies on general rubrics not specifically tailored to the problem at hand, employs GPT-4 to generate an equal amount of synthetic data across different scores (1-5) to mitigate score bias from the evaluating language model. In contrast, our method uses self-adaptive rubrics, and our responses are genuinely collected from the model rather than artificially synthesized. Consequently, we cannot ensure that the quantity of data for each score is perfectly balanced.",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
112,
|
| 1086 |
+
437,
|
| 1087 |
+
487,
|
| 1088 |
+
596
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 6
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "However, as illustrated in Figure 3, we observe that despite the score distribution shift between the training and test data, the score distribution of the model outputs, trained using the self-adaptive rubrics paradigm, closely aligns with the human-provided ground truth. This finding substantiates the robustness and efficacy of the self-adaptive rubrics paradigm in automated scoring.",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
112,
|
| 1097 |
+
598,
|
| 1098 |
+
489,
|
| 1099 |
+
727
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 6
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "6.3 Out of Distribution Evaluation",
|
| 1106 |
+
"text_level": 1,
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
112,
|
| 1109 |
+
739,
|
| 1110 |
+
401,
|
| 1111 |
+
753
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 6
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "We establish two dimensions for evaluating the out-of-distribution capabilities of our model: model-level and question-level. For the model-level evaluation, we utilize the same set of questions, selecting a subset of models to train the evaluator language model (LM), and subsequently test on the remaining unselected models. In the question-level evaluation, a subset of questions along with all associated models are used for training, and the scoring performance is then assessed on a different",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
112,
|
| 1120 |
+
760,
|
| 1121 |
+
489,
|
| 1122 |
+
921
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 6
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "set of questions.",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
507,
|
| 1131 |
+
85,
|
| 1132 |
+
633,
|
| 1133 |
+
99
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 6
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Table 1 presents the experimental results, showing that under the self-adaptive rubrics paradigm, the model performs well in both model-level and question-level evaluations. This indicates that our proposed method has strong generalization capabilities.",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
507,
|
| 1142 |
+
99,
|
| 1143 |
+
884,
|
| 1144 |
+
195
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 6
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "6.4 Merged SFT or Continual SFT",
|
| 1151 |
+
"text_level": 1,
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
507,
|
| 1154 |
+
206,
|
| 1155 |
+
798,
|
| 1156 |
+
222
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 6
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "Previous research shows that a model might generate a correct answer but fail to accurately evaluate the <question, answer> pair for the same question. We argue that this issue mainly arises from the insufficient diversity of the SFT data.",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
507,
|
| 1165 |
+
228,
|
| 1166 |
+
882,
|
| 1167 |
+
306
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 6
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "To validate this, we conduct the following experiments:",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
507,
|
| 1176 |
+
307,
|
| 1177 |
+
882,
|
| 1178 |
+
338
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 6
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "list",
|
| 1184 |
+
"sub_type": "text",
|
| 1185 |
+
"list_items": [
|
| 1186 |
+
"1. Training a pretrained language model (PLM) using only traditional SFT data.",
|
| 1187 |
+
"2. Training a PLM using a mix of SFT data and evaluator LM format data.",
|
| 1188 |
+
"3. Performing continual SFT on an instruction-tuned model using evaluator LM format data, a widely adopted approach in other studies (Kim et al., 2024b,a)."
|
| 1189 |
+
],
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
522,
|
| 1192 |
+
348,
|
| 1193 |
+
882,
|
| 1194 |
+
494
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 6
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "As shown in Table 2, we find that although the model using continual SFT performs well on evaluation tasks, its general ability significantly declines, limiting its versatility. However, starting from a PLM and using a mix of SFT data and evaluator LM format data for SFT results in excellent evaluation capability with minimal impact on general ability. This reveals the shortcomings of the previous continual SFT approach and suggests that the model's inability to evaluate the questions it can answer may simply be due to the lack of such data, highlighting the importance of diversity in SFT data.",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
507,
|
| 1203 |
+
504,
|
| 1204 |
+
882,
|
| 1205 |
+
712
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 6
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "We employ Human-AI Consistency to filter the evaluator LM and find that, compared to using raw Chain-of-Thought data generated by GPT-4 and data filtered by rejection sampling, the data selected using Human-AI Consistency shows significant improvements in both evaluation and general capability, demonstrating the effectiveness of this strategy.",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
507,
|
| 1214 |
+
713,
|
| 1215 |
+
882,
|
| 1216 |
+
841
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 6
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "6.5 Ablation Study",
|
| 1223 |
+
"text_level": 1,
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
507,
|
| 1226 |
+
852,
|
| 1227 |
+
673,
|
| 1228 |
+
866
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 6
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "text",
|
| 1234 |
+
"text": "We conduct detailed ablation experiments on the components of self-adaptive rubrics, namely, reference answers, rubrics, and in-context examples.",
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
507,
|
| 1237 |
+
873,
|
| 1238 |
+
882,
|
| 1239 |
+
921
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 6
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "page_number",
|
| 1245 |
+
"text": "16922",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
477,
|
| 1248 |
+
927,
|
| 1249 |
+
524,
|
| 1250 |
+
940
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 6
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "table",
|
| 1256 |
+
"img_path": "images/cea7e13b2b4ba40d6727bd6fc5cbbbc2afc88163c5836a8e2e4f70c676c828a1.jpg",
|
| 1257 |
+
"table_caption": [],
|
| 1258 |
+
"table_footnote": [],
|
| 1259 |
+
"table_body": "<table><tr><td rowspan=\"2\">Type</td><td colspan=\"4\">Question-level</td><td colspan=\"4\">Model-level</td></tr><tr><td>GSB</td><td>ACC</td><td>ACC(t)</td><td>pearson</td><td>GSB</td><td>ACC</td><td>ACC(t)</td><td>pearson</td></tr><tr><td>XDG</td><td>0.952</td><td>0.590</td><td>0.794</td><td>0.738</td><td>0.952</td><td>0.590</td><td>0.794</td><td>0.380</td></tr><tr><td>GPT-3.5</td><td>0.829</td><td>0.422</td><td>0.663</td><td>0.566</td><td>0.829</td><td>0.422</td><td>0.663</td><td>0.566</td></tr><tr><td>GPT-4</td><td>0.952</td><td>0.654</td><td>0.855</td><td>0.822</td><td>0.952</td><td>0.654</td><td>0.855</td><td>0.822</td></tr></table>",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
181,
|
| 1262 |
+
80,
|
| 1263 |
+
816,
|
| 1264 |
+
167
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 7
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "table",
|
| 1270 |
+
"img_path": "images/d3d9ce3942338c1d8d82f6d532563a0e3129aa673fed15072573631590734929.jpg",
|
| 1271 |
+
"table_caption": [
|
| 1272 |
+
"Table 1: Out of distribution evaluation performance in both model-level and question-level."
|
| 1273 |
+
],
|
| 1274 |
+
"table_footnote": [
|
| 1275 |
+
"Table 2: Experiments on training phases and training data, where v1 represents continual SFT, v1 represents SFT from PLM, v1 represents SFT incorporating evaluator LM format data, and v1 represents data filtered using the Human-AI Consistency strategy."
|
| 1276 |
+
],
|
| 1277 |
+
"table_body": "<table><tr><td>Type</td><td>GSB</td><td>ACC</td><td>ACC(t)</td><td>pearson</td><td>general</td></tr><tr><td>baseline</td><td>0.784</td><td>0.339</td><td>0.584</td><td>0.263</td><td>730</td></tr><tr><td>XDG-v1</td><td>0.910</td><td>0.514</td><td>0.755</td><td>0.686</td><td>458</td></tr><tr><td>XDG-v2</td><td>0.895</td><td>0.551</td><td>0.802</td><td>0.761</td><td>684</td></tr><tr><td>XDG-v3</td><td>0.911</td><td>0.593</td><td>0.811</td><td>0.765</td><td>653</td></tr><tr><td>XDG-v4</td><td>0.941</td><td>0.664</td><td>0.854</td><td>0.829</td><td>685</td></tr></table>",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
122,
|
| 1280 |
+
212,
|
| 1281 |
+
475,
|
| 1282 |
+
315
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 7
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "As shown in Table 3, the consistency between the evaluator LM and human scoring significantly increases after incorporating self-adaptive rubrics. However, the improvements are not as pronounced when other components are added, indicating that the primary driver of enhanced performance is the self-adaptive rubrics themselves. This suggests that self-adaptive rubrics play a crucial role in aligning the evaluator LM with human judgment.",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
112,
|
| 1291 |
+
419,
|
| 1292 |
+
489,
|
| 1293 |
+
565
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 7
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "table",
|
| 1299 |
+
"img_path": "images/d29fc4d7cf30a6f0dc94ba37ed00e15d6139cad03fe74aedf6520d72064022c7.jpg",
|
| 1300 |
+
"table_caption": [],
|
| 1301 |
+
"table_footnote": [
|
| 1302 |
+
"Table 3: Ablation study for each component, where R.A. stands for reference answer."
|
| 1303 |
+
],
|
| 1304 |
+
"table_body": "<table><tr><td>Type</td><td>GSB</td><td>ACC</td><td>ACCT</td><td>Pearson</td></tr><tr><td>Baseline</td><td>0.963</td><td>0.636</td><td>0.802</td><td>0.733</td></tr><tr><td>+ rubric</td><td>0.957</td><td>0.706</td><td>0.871</td><td>0.843</td></tr><tr><td>+ R.A</td><td>0.952</td><td>0.717</td><td>0.877</td><td>0.848</td></tr><tr><td>+ example</td><td>0.959</td><td>0.728</td><td>0.888</td><td>0.867</td></tr></table>",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
117,
|
| 1307 |
+
573,
|
| 1308 |
+
485,
|
| 1309 |
+
659
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 7
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "6.6 Comparison with Alternative Paradigm",
|
| 1316 |
+
"text_level": 1,
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
112,
|
| 1319 |
+
722,
|
| 1320 |
+
472,
|
| 1321 |
+
739
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 7
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "Using the same training data, we conduct a comparative analysis between the self-adaptive rubrics paradigm and the existing general rubric paradigm, as presented in Table 4. The results demonstrate that our approach significantly outperforms existing methods. Furthermore, in addition to accurately ranking the models, our method provides fine-grained capability evaluations that closely align with human assessments. This is both crucial and practical for facilitating the iterative development of LLMs. Due to space constraints, detailed de",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
112,
|
| 1330 |
+
744,
|
| 1331 |
+
490,
|
| 1332 |
+
921
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 7
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "scriptions and results of other experiments are provided in Appendix E.",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
507,
|
| 1341 |
+
216,
|
| 1342 |
+
884,
|
| 1343 |
+
247
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 7
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "7 Conclusion",
|
| 1350 |
+
"text_level": 1,
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
507,
|
| 1353 |
+
259,
|
| 1354 |
+
640,
|
| 1355 |
+
274
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 7
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "In this paper, we introduce a novel evaluation paradigm called self-adaptive rubrics, aligning the scoring process with human judgment and reducing bias by tailoring rubrics to specific questions. Based on this paradigm, we develop a new benchmark, INSDA. To automate scoring, we analyze existing open-source evaluator language models and identify training phase data diversity issues. We then introduce human-AI consistency to align the chain-of-thought evaluation with human judgment and propose an evaluator LM that follows the self-adaptive rubrics paradigm. Experimental results show our model achieves higher consistency with human evaluation compared to GPT-4. We hope our work inspires researchers to apply this paradigm to more tasks, aligning automated scoring with human judgment.",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
507,
|
| 1364 |
+
284,
|
| 1365 |
+
885,
|
| 1366 |
+
558
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 7
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "Limitations",
|
| 1373 |
+
"text_level": 1,
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
509,
|
| 1376 |
+
569,
|
| 1377 |
+
615,
|
| 1378 |
+
583
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 7
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "text",
|
| 1384 |
+
"text": "In this paper, we propose an evaluation paradigm based on self-adaptive rubrics, which provides more granular process guidance to align the scoring process with human judgment. Additionally, we introduce a benchmark, INSDA, based on this framework. However, there are several limitations:",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
507,
|
| 1387 |
+
595,
|
| 1388 |
+
884,
|
| 1389 |
+
690
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 7
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "list",
|
| 1395 |
+
"sub_type": "text",
|
| 1396 |
+
"list_items": [
|
| 1397 |
+
"- For questions with multiple correct answers, it requires manually writing multiple self-adaptive rubrics. It is worth noting that, to our knowledge, no current work focuses on the multi-solution direction.",
|
| 1398 |
+
"- For subjective questions, such as creative writing, poetry, and other forms of artistic expression, different groups or individuals may have varying definitions of what constitutes good work. Therefore, it is necessary for each group or individual to set their own self-adaptive rubrics rather than relying on predefined ones. This also highlights the flexibility"
|
| 1399 |
+
],
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
531,
|
| 1402 |
+
702,
|
| 1403 |
+
884,
|
| 1404 |
+
921
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 7
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "page_number",
|
| 1410 |
+
"text": "16923",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
477,
|
| 1413 |
+
927,
|
| 1414 |
+
524,
|
| 1415 |
+
940
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 7
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "and interpretability of the self-adaptive rubrics paradigm we propose.",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
149,
|
| 1424 |
+
84,
|
| 1425 |
+
487,
|
| 1426 |
+
116
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 8
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "Ethical Considerations",
|
| 1433 |
+
"text_level": 1,
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
114,
|
| 1436 |
+
130,
|
| 1437 |
+
315,
|
| 1438 |
+
145
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 8
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "text",
|
| 1444 |
+
"text": "We propose a scoring paradigm based on self-adaptive rubrics to enhance the interpretability and controllability of the automated scoring process. This approach aims to improve the credibility of evaluation results produced by LLMs and to support the research community in advancing these models. Nevertheless, the inherent hallucinations within LLMs pose a challenge to ensuring the complete accuracy of automated evaluation outcomes. Therefore, we recommend incorporating human review of certain outputs when using LLMs as judges to increase the overall reliability and credibility of the process.",
|
| 1445 |
+
"bbox": [
|
| 1446 |
+
112,
|
| 1447 |
+
158,
|
| 1448 |
+
490,
|
| 1449 |
+
366
|
| 1450 |
+
],
|
| 1451 |
+
"page_idx": 8
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"type": "text",
|
| 1455 |
+
"text": "Additionally, when generating self-adaptive rubrics for subjective questions, different groups or individuals may have varying definitions of what constitutes a good answer, potentially leading to biases and discrepancies. We encourage dialogue and mutual understanding among groups or individuals with diverse values, promoting the use of self-adaptive rubrics that align with their respective values and preferences.",
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
112,
|
| 1458 |
+
368,
|
| 1459 |
+
489,
|
| 1460 |
+
512
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 8
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "References",
|
| 1467 |
+
"text_level": 1,
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
114,
|
| 1470 |
+
541,
|
| 1471 |
+
213,
|
| 1472 |
+
556
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 8
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "list",
|
| 1478 |
+
"sub_type": "ref_text",
|
| 1479 |
+
"list_items": [
|
| 1480 |
+
"AI Anthropic. 2024. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card.",
|
| 1481 |
+
"Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, et al. 2023. Qwen technical report. arXiv preprint arXiv:2309.16609.",
|
| 1482 |
+
"Chi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu, Wei Xue, Shanghang Zhang, Jie Fu, and Zhiyuan Liu. 2023. Chateval: Towards better llmbased evaluators through multi-agent debate. Preprint, arXiv:2308.07201.",
|
| 1483 |
+
"Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E Gonzalez, et al. 2023. Vicuna: An open-source chatbot impressing gpt-4 with $90\\%$ chatgpt quality. See https://vicuna.lmsys.org (accessed 14 April 2023), 2(3):6.",
|
| 1484 |
+
"Wei-Lin Chiang, Lianmin Zheng, Ying Sheng, Anastasios Nikolas Angelopoulos, Tianle Li, Dacheng Li, Hao Zhang, Banghua Zhu, Michael Jordan, Joseph E Gonzalez, et al. 2024. Chatbot arena: An open platform for evaluating llms by human preference. arXiv preprint arXiv:2403.04132."
|
| 1485 |
+
],
|
| 1486 |
+
"bbox": [
|
| 1487 |
+
112,
|
| 1488 |
+
565,
|
| 1489 |
+
489,
|
| 1490 |
+
920
|
| 1491 |
+
],
|
| 1492 |
+
"page_idx": 8
|
| 1493 |
+
},
|
| 1494 |
+
{
|
| 1495 |
+
"type": "list",
|
| 1496 |
+
"sub_type": "ref_text",
|
| 1497 |
+
"list_items": [
|
| 1498 |
+
"Daniel Deutsch, Rotem Dror, and Dan Roth. 2021. A statistical analysis of summarization evaluation metrics using resampling methods. Transactions of the Association for Computational Linguistics, 9:1132-1146.",
|
| 1499 |
+
"Markus Freitag, David Grangier, and Isaac Caswell. 2020. BLEU might be guilty but references are not innocent. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 61-71, Online. Association for Computational Linguistics.",
|
| 1500 |
+
"Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300.",
|
| 1501 |
+
"Yuzhen Huang, Yuzhuo Bai, Zhihao Zhu, Junlei Zhang, Jinghan Zhang, Tangjun Su, Junteng Liu, Chuancheng Lv, Yikai Zhang, Yao Fu, et al. 2024. C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models. Advances in Neural Information Processing Systems, 36.",
|
| 1502 |
+
"Seungone Kim, Jamin Shin, Yejin Cho, Joel Jang, Shayne Longpre, Hwaran Lee, Sangwoo Yun, Seongjin Shin, Sungdong Kim, James Thorne, and Minjoon Seo. 2024a. Prometheus: Inducing fine-grained evaluation capability in language models. Preprint, arXiv:2310.08491.",
|
| 1503 |
+
"Seungone Kim, Juyoung Suk, Shayne Longpre, Bill Yuchen Lin, Jamin Shin, Sean Welleck, Graham Neubig, Moontae Lee, Kyungjae Lee, and Minjoon Seo. 2024b. Prometheus 2: An open source language model specialized in evaluating other language models. Preprint, arXiv:2405.01535.",
|
| 1504 |
+
"Tom Kocmi, Christian Federmann, Roman Grundkiewicz, Marcin Junczys-Dowmunt, Hitokazu Matsushita, and Arul Menezes. 2021. To ship or not to ship: An extensive evaluation of automatic metrics for machine translation. arXiv preprint arXiv:2107.10821.",
|
| 1505 |
+
"Kalpesh Krishna, Aurko Roy, and Mohit Iyyer. 2021. Hurdles to progress in long-form question answering. arXiv preprint arXiv:2103.06332.",
|
| 1506 |
+
"Junlong Li, Shichao Sun, Weizhe Yuan, Run-Ze Fan, Hai Zhao, and Pengfei Liu. 2023a. Generative judge for evaluating alignment. Preprint, arXiv:2310.05470.",
|
| 1507 |
+
"Siyao Li, Deren Lei, Pengda Qin, and William Yang Wang. 2019. Deep reinforcement learning with distributional semantic rewards for abstractive summarization. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 6038-6044, Hong Kong, China. Association for Computational Linguistics.",
|
| 1508 |
+
"Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023b. Alpacaeval: An automatic evaluator of instruction-following models. https://github.com/tatsu-lab/alpaca_eval."
|
| 1509 |
+
],
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
507,
|
| 1512 |
+
85,
|
| 1513 |
+
884,
|
| 1514 |
+
920
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 8
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "page_number",
|
| 1520 |
+
"text": "16924",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
477,
|
| 1523 |
+
927,
|
| 1524 |
+
524,
|
| 1525 |
+
940
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 8
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain. Association for Computational Linguistics.",
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
112,
|
| 1534 |
+
85,
|
| 1535 |
+
489,
|
| 1536 |
+
139
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 9
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "text",
|
| 1542 |
+
"text": "Yang Liu, Dan Iter, Yichong Xu, Shuohang Wang, Ruochen Xu, and Chenguang Zhu. 2023a. Gpteval: Nlg evaluation using gpt-4 with better human alignment. arXiv preprint arXiv:2303.16634.",
|
| 1543 |
+
"bbox": [
|
| 1544 |
+
112,
|
| 1545 |
+
148,
|
| 1546 |
+
489,
|
| 1547 |
+
200
|
| 1548 |
+
],
|
| 1549 |
+
"page_idx": 9
|
| 1550 |
+
},
|
| 1551 |
+
{
|
| 1552 |
+
"type": "text",
|
| 1553 |
+
"text": "Yixin Liu, Alex Fabbri, Pengfei Liu, Yilun Zhao, Linyong Nan, Ruilin Han, Simeng Han, Shafiq Joty, Chien-Sheng Wu, Caiming Xiong, and Dragomir Radev. 2023b. Revisiting the gold standard: Grounding summarization evaluation with robust human evaluation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4140-4170, Toronto, Canada. Association for Computational Linguistics.",
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
112,
|
| 1556 |
+
210,
|
| 1557 |
+
490,
|
| 1558 |
+
331
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 9
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen-tau Yih, Pang Koh, Mohit Iyyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2023. FActScore: Fine-grained atomic evaluation of factual precision in long form text generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 12076-12100, Singapore. Association for Computational Linguistics.",
|
| 1565 |
+
"bbox": [
|
| 1566 |
+
112,
|
| 1567 |
+
338,
|
| 1568 |
+
489,
|
| 1569 |
+
445
|
| 1570 |
+
],
|
| 1571 |
+
"page_idx": 9
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"type": "text",
|
| 1575 |
+
"text": "Ehsan Montahaei, Danial Alihosseini, and Mahdieh Soleymani Baghshah. 2019. Jointly measuring diversity and quality in text generation models. Preprint, arXiv:1904.03971.",
|
| 1576 |
+
"bbox": [
|
| 1577 |
+
112,
|
| 1578 |
+
451,
|
| 1579 |
+
489,
|
| 1580 |
+
506
|
| 1581 |
+
],
|
| 1582 |
+
"page_idx": 9
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"type": "text",
|
| 1586 |
+
"text": "OpenAI, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, Red Avila, Igor Babuschkin, Suchir Balaji, Valerie Balcom, Paul Baltescu, Haiming Bao, Mohammad Bavarian, Jeff Belgium, Irwan Bello, Jake Berdine, Gabriel Bernadett-Shapiro, Christopher Berner, Lenny Bogdonoff, Oleg Boiko, Madelaine Boyd, Anna-Luisa Brakman, Greg Brockman, Tim Brooks, Miles Brundage, Kevin Button, Trevor Cai, Rosie Campbell, Andrew Cann, Brittany Carey, Chelsea Carlson, Rory Carmichael, Brooke Chan, Che Chang, Fotis Chantzis, Derek Chen, Sully Chen, Ruby Chen, Jason Chen, Mark Chen, Ben Chess, Chester Cho, Casey Chu, Hyung Won Chung, Dave Cummings, Jeremiah Currier, Yunxing Dai, Cory Decareaux, Thomas Degry, Noah Deutsch, Damien Deville, Arka Dhar, David Dohan, Steve Dowling, Sheila Dunning, Adrien Ecoffet, Atty Eleti, Tyna Eloundou, David Farhi, Liam Fedus, Niko Felix, Simón Posada Fishman, Juston Forte, Isabella Fulford, Leo Gao, Elie Georges, Christian Gibson, Vik Goel, Tarun Gogineni, Gabriel Goh, Rapha Gontijo-Lopes, Jonathan Gordon, Morgan Grafstein, Scott Gray, Ryan Greene, Joshua Gross, Shixiang Shane Gu, Yufei Guo, Chris Hallacy, Jesse Han, Jeff Harris, Yuchen He, Mike Heaton, Johannes Heidecke, Chris Hesse, Alan Hickey, Wade Hickey, Peter Hoeschele, Brandon Houghton, Kenny Hsu, Shengli Hu, Xin Hu, Joost Huizinga, Shantanu Jain, Shawn Jain, Joanne Jang, Angela Jiang, Roger Jiang, Haozhun Jin, Denny Jin, Shino Jomoto, Billie Jonn, Heewoo",
|
| 1587 |
+
"bbox": [
|
| 1588 |
+
112,
|
| 1589 |
+
516,
|
| 1590 |
+
489,
|
| 1591 |
+
920
|
| 1592 |
+
],
|
| 1593 |
+
"page_idx": 9
|
| 1594 |
+
},
|
| 1595 |
+
{
|
| 1596 |
+
"type": "text",
|
| 1597 |
+
"text": "Jun, Tomer Kaftan, Lukasz Kaiser, Ali Kamali, Ingmar Kanitscheider, Nitish Shirish Keskar, Tabarak Khan, Logan Kilpatrick, Jong Wook Kim, Christina Kim, Yongjik Kim, Jan Hendrik Kirchner, Jamie Kiros, Matt Knight, Daniel Kokotajlo, Lukasz Kondraciuk, Andrew Kondrich, Aris Konstantinidis, Kyle Kosic, Gretchen Krueger, Vishal Kuo, Michael Lampe, Ikai Lan, Teddy Lee, Jan Leike, Jade Leung, Daniel Levy, Chak Ming Li, Rachel Lim, Molly Lin, Stephanie Lin, Mateusz Litwin, Theresa Lopez, Ryan Lowe, Patricia Lue, Anna Makanju, Kim Malfacini, Sam Manning, Todor Markov, Yaniv Markovski, Bianca Martin, Katie Mayer, Andrew Mayne, Bob McGrew, Scott Mayer McKinney, Christine McLeavey, Paul McMillan, Jake McNeil, David Medina, Aalok Mehta, Jacob Menick, Luke Metz, Andrey Mishchenko, Pamela Mishkin, Vinnie Monaco, Evan Morikawa, Daniel Mossing, Tong Mu, Mira Murati, Oleg Murk, David Mely, Ashvin Nair, Reiichiro Nakano, Rajeev Nayak, Arvind Neelakantan, Richard Ngo, Hyeonwoo Noh, Long Ouyang, Cullen O'Keefe, Jakub Pachocki, Alex Paino, Joe Palermo, Ashley Pantuliano, Giambattista Parascandolo, Joel Parish, Emy Parparita, Alex Passos, Mikhail Pavlov, Andrew Peng, Adam Perelman, Filipe de Avila Belbute Peres, Michael Petrov, Henrique Ponde de Oliveira Pinto, Michael, Pokorny, Michelle Pokrass, Vitchyr H. Pong, Tolly Powell, Alethea Power, Boris Power, Elizabeth Proehl, Raul Puri, Alec Radford, Jack Rae, Aditya Ramesh, Cameron Raymond, Francis Real, Kendra Rimbach, Carl Ross, Bob Rotsted, Henri Roussez, Nick Ryder, Mario Saltarelli, Ted Sanders, Shibani Santurkar, Girish Sastry, Heather Schmidt, David Schnurr, John Schulman, Daniel Selsam, Kyla Sheppard, Toki Sherbakov, Jessica Shieh, Sarah Shoker, Pranav Shyam, Szymon Sidor, Eric Sigler, Maddie Simens, Jordan Sitkin, Katarina Slama, Ian Sohl, Benjamin Sokolowsky, Yang Song, Natalie Staudacher, Felipe Petroski Such, Natalie Summers, Ilya Sutskever, Jie Tang, Nikolas Tezak, Madeleine B. Thompson, Phil Tillet, Amin Tootoonchian, Elizabeth Tsengpreston Tuggle Nick Turley Jerry Tworek Juan Felipe Ceron Uribe Andrea Vallone Arun Vijayvergiya Chelsea VossCarroll Wainwright Justin Jay Wang Alvin Wang Ben Wang Jonathan Ward Jason Wei CJ Weinmann Akila Welihinda Peter Welinder Jiayi Weng Lilian Weng Matt Wiethoff Dave Willner Clemens Winter Samuel Wolrich Hannah Wong Lauren Workman Sherwin Wu Jeff Wu Michael Wu Kai Xiao Tao Xu Sarah Yoo Kevin Yu Qiming Yuan Wojciech Zaremba Rowan Zellers Chong Zhang Marvin Zhang Shengjia Zhao Tianhao Zheng Juntang Zhuang William Zhuk and Barret Zoph. 2024. Gpt-4 technical report. Preprint arXiv:2303.08774.",
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
507,
|
| 1600 |
+
85,
|
| 1601 |
+
884,
|
| 1602 |
+
778
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 9
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting on Association for Computational Linguistics, ACL '02, page 311-318, USA. Association for Computational Linguistics.",
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
507,
|
| 1611 |
+
788,
|
| 1612 |
+
884,
|
| 1613 |
+
869
|
| 1614 |
+
],
|
| 1615 |
+
"page_idx": 9
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"type": "text",
|
| 1619 |
+
"text": "Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Al",
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
507,
|
| 1622 |
+
879,
|
| 1623 |
+
885,
|
| 1624 |
+
921
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 9
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "page_number",
|
| 1630 |
+
"text": "16925",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
477,
|
| 1633 |
+
927,
|
| 1634 |
+
524,
|
| 1635 |
+
941
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 9
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "list",
|
| 1641 |
+
"sub_type": "ref_text",
|
| 1642 |
+
"list_items": [
|
| 1643 |
+
"ban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. 2019. Pytorch: An imperative style, high-performance deep learning library. Preprint, arXiv:1912.01703.",
|
| 1644 |
+
"Ehud Reiter. 2018. A structured review of the validity of BLEU. Computational Linguistics, 44(3):393-401.",
|
| 1645 |
+
"Julian Risch, Timo Möller, Julian Gutsch, and Malte Pietsch. 2021. Semantic answer similarity for evaluating question answering models. In Proceedings of the 3rd Workshop on Machine Reading for Question Answering, pages 149-157, Punta Cana, Dominican Republic. Association for Computational Linguistics.",
|
| 1646 |
+
"Natalie Schluter. 2017a. The limits of automatic summarisation according to ROUGE. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, pages 41-45, Valencia, Spain. Association for Computational Linguistics.",
|
| 1647 |
+
"Natalie Schluter. 2017b. The limits of automatic summarisation according to rouge. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics, pages 41-45. Association for Computational Linguistics.",
|
| 1648 |
+
"Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. 2020. Megatron-lm: Training multi-billion parameter language models using model parallelism. Preprint, arXiv:1909.08053.",
|
| 1649 |
+
"Matthew Snover, Bonnie Dorr, Rich Schwartz, Linnea Micciulla, and John Makhoul. 2006. A study of translation edit rate with targeted human annotation. In Proceedings of the 7th Conference of the Association for Machine Translation in the Americas: Technical Papers, pages 223-231, Cambridge, Massachusetts, USA. Association for Machine Translation in the Americas.",
|
| 1650 |
+
"Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. 2022. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615.",
|
| 1651 |
+
"Rickard Stureborg, Dimitris Alikaniotis, and Yoshi Suhara. 2024. Characterizing the confidence of large language model-based automatic evaluation metrics. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 2: Short Papers), pages 76-89.",
|
| 1652 |
+
"Gemini Team, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. 2023. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805.",
|
| 1653 |
+
"Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix,"
|
| 1654 |
+
],
|
| 1655 |
+
"bbox": [
|
| 1656 |
+
114,
|
| 1657 |
+
85,
|
| 1658 |
+
489,
|
| 1659 |
+
919
|
| 1660 |
+
],
|
| 1661 |
+
"page_idx": 10
|
| 1662 |
+
},
|
| 1663 |
+
{
|
| 1664 |
+
"type": "list",
|
| 1665 |
+
"sub_type": "ref_text",
|
| 1666 |
+
"list_items": [
|
| 1667 |
+
"Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models. Preprint, arXiv:2302.13971.",
|
| 1668 |
+
"Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, and Yue Zhang. 2024. Pandalm: An automatic evaluation benchmark for llm instruction tuning optimization. Preprint, arXiv:2306.05087.",
|
| 1669 |
+
"Seonghyeon Ye, Doyoung Kim, Sungdong Kim, Hyeonbin Hwang, Seungone Kim, Yongrae Jo, James Thorne, Juho Kim, and Minjoon Seo. 2023. Flask: Fine-grained language model evaluation based on alignment skill sets. arXiv preprint arXiv:2307.10928.",
|
| 1670 |
+
"Aohan Zeng, Xiao Liu, Zhengxiao Du, Zihan Wang, Hanyu Lai, Ming Ding, Zhuoyi Yang, Yifan Xu, Wendi Zheng, Xiao Xia, et al. 2022. Glm-130b: An open bilingual pre-trained model. arXiv preprint arXiv:2210.02414.",
|
| 1671 |
+
"Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger, and Yoav Artzi. 2020. Bertscore: Evaluating text generation with bert. Preprint, arXiv:1904.09675.",
|
| 1672 |
+
"Ying Zhang and Stephan Vogel. 2004. Measuring confidence intervals for the machine translation evaluation metrics. In Proceedings of the 10th Conference on Theoretical and Methodological Issues in Machine Translation of Natural Languages.",
|
| 1673 |
+
"Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. 2024. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in Neural Information Processing Systems, 36.",
|
| 1674 |
+
"Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P. Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging llm-as-a-judge with mt-bench and chatbot arena. Preprint, arXiv:2306.05685.",
|
| 1675 |
+
"Wanjun Zhong, Ruixiang Cui, Yiduo Guo, Yaobo Liang, Shuai Lu, Yanlin Wang, Amin Saied, Weizhu Chen, and Nan Duan. 2023. Agieval: A human-centric benchmark for evaluating foundation models. arXiv preprint arXiv:2304.06364.",
|
| 1676 |
+
"Lianghui Zhu, Xinggang Wang, and Xinlong Wang. 2023. Judgelm: Fine-tuned large language models are scalable judges. Preprint, arXiv:2310.17631."
|
| 1677 |
+
],
|
| 1678 |
+
"bbox": [
|
| 1679 |
+
509,
|
| 1680 |
+
85,
|
| 1681 |
+
882,
|
| 1682 |
+
820
|
| 1683 |
+
],
|
| 1684 |
+
"page_idx": 10
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"type": "page_number",
|
| 1688 |
+
"text": "16926",
|
| 1689 |
+
"bbox": [
|
| 1690 |
+
477,
|
| 1691 |
+
928,
|
| 1692 |
+
524,
|
| 1693 |
+
940
|
| 1694 |
+
],
|
| 1695 |
+
"page_idx": 10
|
| 1696 |
+
},
|
| 1697 |
+
{
|
| 1698 |
+
"type": "text",
|
| 1699 |
+
"text": "A Training Details",
|
| 1700 |
+
"text_level": 1,
|
| 1701 |
+
"bbox": [
|
| 1702 |
+
114,
|
| 1703 |
+
84,
|
| 1704 |
+
294,
|
| 1705 |
+
99
|
| 1706 |
+
],
|
| 1707 |
+
"page_idx": 11
|
| 1708 |
+
},
|
| 1709 |
+
{
|
| 1710 |
+
"type": "text",
|
| 1711 |
+
"text": "We employed a default learning rate of 2e-5, and the batch size per device was dynamically adjusted based on the total data volume and the number of machines to maintain consistent optimization steps. The Adam optimizer was utilized.",
|
| 1712 |
+
"bbox": [
|
| 1713 |
+
112,
|
| 1714 |
+
108,
|
| 1715 |
+
487,
|
| 1716 |
+
187
|
| 1717 |
+
],
|
| 1718 |
+
"page_idx": 11
|
| 1719 |
+
},
|
| 1720 |
+
{
|
| 1721 |
+
"type": "text",
|
| 1722 |
+
"text": "For the scaling law experiments, when $n$ was below 300, we conducted three repetitions and averaged the results to minimize error.",
|
| 1723 |
+
"bbox": [
|
| 1724 |
+
112,
|
| 1725 |
+
189,
|
| 1726 |
+
485,
|
| 1727 |
+
234
|
| 1728 |
+
],
|
| 1729 |
+
"page_idx": 11
|
| 1730 |
+
},
|
| 1731 |
+
{
|
| 1732 |
+
"type": "text",
|
| 1733 |
+
"text": "For all invoked APIs, we used the default parameters without extensive modifications.",
|
| 1734 |
+
"bbox": [
|
| 1735 |
+
112,
|
| 1736 |
+
237,
|
| 1737 |
+
487,
|
| 1738 |
+
267
|
| 1739 |
+
],
|
| 1740 |
+
"page_idx": 11
|
| 1741 |
+
},
|
| 1742 |
+
{
|
| 1743 |
+
"type": "text",
|
| 1744 |
+
"text": "B Data Annotation",
|
| 1745 |
+
"text_level": 1,
|
| 1746 |
+
"bbox": [
|
| 1747 |
+
114,
|
| 1748 |
+
279,
|
| 1749 |
+
297,
|
| 1750 |
+
294
|
| 1751 |
+
],
|
| 1752 |
+
"page_idx": 11
|
| 1753 |
+
},
|
| 1754 |
+
{
|
| 1755 |
+
"type": "text",
|
| 1756 |
+
"text": "B.1 Annotator Qualifications",
|
| 1757 |
+
"text_level": 1,
|
| 1758 |
+
"bbox": [
|
| 1759 |
+
114,
|
| 1760 |
+
304,
|
| 1761 |
+
359,
|
| 1762 |
+
319
|
| 1763 |
+
],
|
| 1764 |
+
"page_idx": 11
|
| 1765 |
+
},
|
| 1766 |
+
{
|
| 1767 |
+
"type": "text",
|
| 1768 |
+
"text": "All our annotators are internal team members with at least a Master's degree. We provide additional compensation significantly higher than the standard salary, based on the amount of data annotated.",
|
| 1769 |
+
"bbox": [
|
| 1770 |
+
112,
|
| 1771 |
+
324,
|
| 1772 |
+
485,
|
| 1773 |
+
388
|
| 1774 |
+
],
|
| 1775 |
+
"page_idx": 11
|
| 1776 |
+
},
|
| 1777 |
+
{
|
| 1778 |
+
"type": "text",
|
| 1779 |
+
"text": "C Prompt Templates",
|
| 1780 |
+
"text_level": 1,
|
| 1781 |
+
"bbox": [
|
| 1782 |
+
114,
|
| 1783 |
+
399,
|
| 1784 |
+
312,
|
| 1785 |
+
416
|
| 1786 |
+
],
|
| 1787 |
+
"page_idx": 11
|
| 1788 |
+
},
|
| 1789 |
+
{
|
| 1790 |
+
"type": "text",
|
| 1791 |
+
"text": "C.1 AutoPrompt",
|
| 1792 |
+
"text_level": 1,
|
| 1793 |
+
"bbox": [
|
| 1794 |
+
114,
|
| 1795 |
+
423,
|
| 1796 |
+
263,
|
| 1797 |
+
438
|
| 1798 |
+
],
|
| 1799 |
+
"page_idx": 11
|
| 1800 |
+
},
|
| 1801 |
+
{
|
| 1802 |
+
"type": "text",
|
| 1803 |
+
"text": "Below, I will provide a <Question>, along with the corresponding <Reference Answer> and <Scoring Rubric>. You need to evaluate the <Output Result> from the <Model Answer> of the <Model to be Assessed>. The evaluation should be divided into two parts: \"Scoring Process\" and \"Final Score.\" Please note that the scoring range is from 0 to 5 points. You must justify the score you assign based on the <Model Answer>, strictly adhering to the requirements of the <Scoring Rubric> without adding, changing, or imagining any additional criteria.",
|
| 1804 |
+
"bbox": [
|
| 1805 |
+
137,
|
| 1806 |
+
453,
|
| 1807 |
+
463,
|
| 1808 |
+
677
|
| 1809 |
+
],
|
| 1810 |
+
"page_idx": 11
|
| 1811 |
+
},
|
| 1812 |
+
{
|
| 1813 |
+
"type": "text",
|
| 1814 |
+
"text": "C.2 Prompt for Set Matching",
|
| 1815 |
+
"text_level": 1,
|
| 1816 |
+
"bbox": [
|
| 1817 |
+
114,
|
| 1818 |
+
695,
|
| 1819 |
+
361,
|
| 1820 |
+
711
|
| 1821 |
+
],
|
| 1822 |
+
"page_idx": 11
|
| 1823 |
+
},
|
| 1824 |
+
{
|
| 1825 |
+
"type": "text",
|
| 1826 |
+
"text": "You are a meticulous judge tasked with evaluating whether the \"Test Rubric\" provided by the user aligns with the \"Standard Rubric.\" The evaluation rules are as follows:",
|
| 1827 |
+
"bbox": [
|
| 1828 |
+
139,
|
| 1829 |
+
724,
|
| 1830 |
+
460,
|
| 1831 |
+
787
|
| 1832 |
+
],
|
| 1833 |
+
"page_idx": 11
|
| 1834 |
+
},
|
| 1835 |
+
{
|
| 1836 |
+
"type": "list",
|
| 1837 |
+
"sub_type": "text",
|
| 1838 |
+
"list_items": [
|
| 1839 |
+
"- The initial total score is set to zero.",
|
| 1840 |
+
"- For each item in the \"Test Rubric\":"
|
| 1841 |
+
],
|
| 1842 |
+
"bbox": [
|
| 1843 |
+
161,
|
| 1844 |
+
796,
|
| 1845 |
+
438,
|
| 1846 |
+
837
|
| 1847 |
+
],
|
| 1848 |
+
"page_idx": 11
|
| 1849 |
+
},
|
| 1850 |
+
{
|
| 1851 |
+
"type": "text",
|
| 1852 |
+
"text": "1. If the item matches any item in the \"Standard Rubric\" exactly, one point is added to the total score.",
|
| 1853 |
+
"bbox": [
|
| 1854 |
+
193,
|
| 1855 |
+
844,
|
| 1856 |
+
460,
|
| 1857 |
+
907
|
| 1858 |
+
],
|
| 1859 |
+
"page_idx": 11
|
| 1860 |
+
},
|
| 1861 |
+
{
|
| 1862 |
+
"type": "list",
|
| 1863 |
+
"sub_type": "text",
|
| 1864 |
+
"list_items": [
|
| 1865 |
+
"2. If the item in the \"Test Rubric\" is unrelated to any item in the \"Standard Rubric,\" the total score remains unchanged.",
|
| 1866 |
+
"3. If the item in the \"Test Rubric\" is the exact opposite of any item in the \"Standard Rubric,\" one point is subtracted from the total score."
|
| 1867 |
+
],
|
| 1868 |
+
"bbox": [
|
| 1869 |
+
586,
|
| 1870 |
+
92,
|
| 1871 |
+
857,
|
| 1872 |
+
221
|
| 1873 |
+
],
|
| 1874 |
+
"page_idx": 11
|
| 1875 |
+
},
|
| 1876 |
+
{
|
| 1877 |
+
"type": "text",
|
| 1878 |
+
"text": "You need to return the entire scoring process (explaining why points were added or subtracted) along with the final score. The return format should be:",
|
| 1879 |
+
"bbox": [
|
| 1880 |
+
534,
|
| 1881 |
+
234,
|
| 1882 |
+
858,
|
| 1883 |
+
296
|
| 1884 |
+
],
|
| 1885 |
+
"page_idx": 11
|
| 1886 |
+
},
|
| 1887 |
+
{
|
| 1888 |
+
"type": "text",
|
| 1889 |
+
"text": "{ \"Scoring Process\": \"<Here, provide the scoring process as a string>\",",
|
| 1890 |
+
"bbox": [
|
| 1891 |
+
571,
|
| 1892 |
+
309,
|
| 1893 |
+
821,
|
| 1894 |
+
357
|
| 1895 |
+
],
|
| 1896 |
+
"page_idx": 11
|
| 1897 |
+
},
|
| 1898 |
+
{
|
| 1899 |
+
"type": "text",
|
| 1900 |
+
"text": "\"Final Score\": \"<Here, provide the final score as a mathematical expression, concluding with 'Final Score: <score>' e.g., '3/5=0.6, Final Score: 0.6>'",
|
| 1901 |
+
"bbox": [
|
| 1902 |
+
571,
|
| 1903 |
+
357,
|
| 1904 |
+
821,
|
| 1905 |
+
437
|
| 1906 |
+
],
|
| 1907 |
+
"page_idx": 11
|
| 1908 |
+
},
|
| 1909 |
+
{
|
| 1910 |
+
"type": "text",
|
| 1911 |
+
"text": "The returned format must be compatible with json.load() to be converted into a dictionary.",
|
| 1912 |
+
"bbox": [
|
| 1913 |
+
534,
|
| 1914 |
+
450,
|
| 1915 |
+
855,
|
| 1916 |
+
498
|
| 1917 |
+
],
|
| 1918 |
+
"page_idx": 11
|
| 1919 |
+
},
|
| 1920 |
+
{
|
| 1921 |
+
"type": "text",
|
| 1922 |
+
"text": "C.3 Prosecutor Prompt",
|
| 1923 |
+
"text_level": 1,
|
| 1924 |
+
"bbox": [
|
| 1925 |
+
509,
|
| 1926 |
+
527,
|
| 1927 |
+
709,
|
| 1928 |
+
544
|
| 1929 |
+
],
|
| 1930 |
+
"page_idx": 11
|
| 1931 |
+
},
|
| 1932 |
+
{
|
| 1933 |
+
"type": "text",
|
| 1934 |
+
"text": "Please check if the generated answer is correct. The reference answer is: $\\{\\mathrm{gt}\\}$ , and the generated answer is: $\\{\\mathrm{user}\\}$ . Please respond in the following format: $\\{\\text{\"result\": True}\\}$",
|
| 1935 |
+
"bbox": [
|
| 1936 |
+
534,
|
| 1937 |
+
564,
|
| 1938 |
+
857,
|
| 1939 |
+
629
|
| 1940 |
+
],
|
| 1941 |
+
"page_idx": 11
|
| 1942 |
+
},
|
| 1943 |
+
{
|
| 1944 |
+
"type": "text",
|
| 1945 |
+
"text": "C.4 Refinement Prompt",
|
| 1946 |
+
"text_level": 1,
|
| 1947 |
+
"bbox": [
|
| 1948 |
+
509,
|
| 1949 |
+
659,
|
| 1950 |
+
714,
|
| 1951 |
+
674
|
| 1952 |
+
],
|
| 1953 |
+
"page_idx": 11
|
| 1954 |
+
},
|
| 1955 |
+
{
|
| 1956 |
+
"type": "text",
|
| 1957 |
+
"text": "Your generated answer is not the standard answer. Please reflect on this and generate a new answer.",
|
| 1958 |
+
"bbox": [
|
| 1959 |
+
534,
|
| 1960 |
+
695,
|
| 1961 |
+
855,
|
| 1962 |
+
740
|
| 1963 |
+
],
|
| 1964 |
+
"page_idx": 11
|
| 1965 |
+
},
|
| 1966 |
+
{
|
| 1967 |
+
"type": "text",
|
| 1968 |
+
"text": "The generated scoring points and the full score answer are:",
|
| 1969 |
+
"bbox": [
|
| 1970 |
+
534,
|
| 1971 |
+
743,
|
| 1972 |
+
853,
|
| 1973 |
+
772
|
| 1974 |
+
],
|
| 1975 |
+
"page_idx": 11
|
| 1976 |
+
},
|
| 1977 |
+
{
|
| 1978 |
+
"type": "text",
|
| 1979 |
+
"text": "D Benchmark",
|
| 1980 |
+
"text_level": 1,
|
| 1981 |
+
"bbox": [
|
| 1982 |
+
509,
|
| 1983 |
+
814,
|
| 1984 |
+
648,
|
| 1985 |
+
829
|
| 1986 |
+
],
|
| 1987 |
+
"page_idx": 11
|
| 1988 |
+
},
|
| 1989 |
+
{
|
| 1990 |
+
"type": "text",
|
| 1991 |
+
"text": "D.1 Benchmark Leaderboard",
|
| 1992 |
+
"text_level": 1,
|
| 1993 |
+
"bbox": [
|
| 1994 |
+
509,
|
| 1995 |
+
846,
|
| 1996 |
+
759,
|
| 1997 |
+
860
|
| 1998 |
+
],
|
| 1999 |
+
"page_idx": 11
|
| 2000 |
+
},
|
| 2001 |
+
{
|
| 2002 |
+
"type": "text",
|
| 2003 |
+
"text": "We provide the Benchmark LeaderBoard at the following link: https://github.com/Zhiyuan-Fan/self-adaptive-rubrics",
|
| 2004 |
+
"bbox": [
|
| 2005 |
+
507,
|
| 2006 |
+
873,
|
| 2007 |
+
882,
|
| 2008 |
+
921
|
| 2009 |
+
],
|
| 2010 |
+
"page_idx": 11
|
| 2011 |
+
},
|
| 2012 |
+
{
|
| 2013 |
+
"type": "page_number",
|
| 2014 |
+
"text": "16927",
|
| 2015 |
+
"bbox": [
|
| 2016 |
+
477,
|
| 2017 |
+
927,
|
| 2018 |
+
524,
|
| 2019 |
+
940
|
| 2020 |
+
],
|
| 2021 |
+
"page_idx": 11
|
| 2022 |
+
},
|
| 2023 |
+
{
|
| 2024 |
+
"type": "image",
|
| 2025 |
+
"img_path": "images/a7634cb60184aae7c523b465d602181dddec21c905a1593e72dabc74c9682ab9.jpg",
|
| 2026 |
+
"image_caption": [
|
| 2027 |
+
"Figure 4: Benchmark multi-level classification system. To maintain conciseness, we have detailed the hierarchy only up to the third tier."
|
| 2028 |
+
],
|
| 2029 |
+
"image_footnote": [],
|
| 2030 |
+
"bbox": [
|
| 2031 |
+
163,
|
| 2032 |
+
80,
|
| 2033 |
+
831,
|
| 2034 |
+
554
|
| 2035 |
+
],
|
| 2036 |
+
"page_idx": 12
|
| 2037 |
+
},
|
| 2038 |
+
{
|
| 2039 |
+
"type": "text",
|
| 2040 |
+
"text": "D.2 Benchmark Statistics",
|
| 2041 |
+
"text_level": 1,
|
| 2042 |
+
"bbox": [
|
| 2043 |
+
112,
|
| 2044 |
+
617,
|
| 2045 |
+
332,
|
| 2046 |
+
632
|
| 2047 |
+
],
|
| 2048 |
+
"page_idx": 12
|
| 2049 |
+
},
|
| 2050 |
+
{
|
| 2051 |
+
"type": "text",
|
| 2052 |
+
"text": "We provide the Benchmark statistics at the following link: https://github.com/Zhiyuan-Fan/self-adaptive-rubrics",
|
| 2053 |
+
"bbox": [
|
| 2054 |
+
112,
|
| 2055 |
+
644,
|
| 2056 |
+
489,
|
| 2057 |
+
692
|
| 2058 |
+
],
|
| 2059 |
+
"page_idx": 12
|
| 2060 |
+
},
|
| 2061 |
+
{
|
| 2062 |
+
"type": "text",
|
| 2063 |
+
"text": "E Additional Experiments",
|
| 2064 |
+
"text_level": 1,
|
| 2065 |
+
"bbox": [
|
| 2066 |
+
114,
|
| 2067 |
+
715,
|
| 2068 |
+
359,
|
| 2069 |
+
732
|
| 2070 |
+
],
|
| 2071 |
+
"page_idx": 12
|
| 2072 |
+
},
|
| 2073 |
+
{
|
| 2074 |
+
"type": "text",
|
| 2075 |
+
"text": "E.1 Automatic Rubric Generation",
|
| 2076 |
+
"text_level": 1,
|
| 2077 |
+
"bbox": [
|
| 2078 |
+
114,
|
| 2079 |
+
749,
|
| 2080 |
+
400,
|
| 2081 |
+
764
|
| 2082 |
+
],
|
| 2083 |
+
"page_idx": 12
|
| 2084 |
+
},
|
| 2085 |
+
{
|
| 2086 |
+
"type": "text",
|
| 2087 |
+
"text": "In this section, we conduct experiments on automatic rubric generation and analyze the results to explore its potential. Specifically, we compare the following three experimental setups: 1) using GPT-4 to automatically generate rubrics; 2) training an automatic rubric generation model with human-labeled rubrics under the SFT paradigm; and 3) aligning the model output with human preferences using DPO.",
|
| 2088 |
+
"bbox": [
|
| 2089 |
+
112,
|
| 2090 |
+
776,
|
| 2091 |
+
489,
|
| 2092 |
+
921
|
| 2093 |
+
],
|
| 2094 |
+
"page_idx": 12
|
| 2095 |
+
},
|
| 2096 |
+
{
|
| 2097 |
+
"type": "text",
|
| 2098 |
+
"text": "E.2 Error Propagating",
|
| 2099 |
+
"text_level": 1,
|
| 2100 |
+
"bbox": [
|
| 2101 |
+
509,
|
| 2102 |
+
617,
|
| 2103 |
+
705,
|
| 2104 |
+
633
|
| 2105 |
+
],
|
| 2106 |
+
"page_idx": 12
|
| 2107 |
+
},
|
| 2108 |
+
{
|
| 2109 |
+
"type": "text",
|
| 2110 |
+
"text": "When using rubric generation models to automatically create self-adaptive rubrics, a potential issue is that if the generated rubric is inconsistent with the human-provided rubric, errors can accumulate in the scoring pipeline, leading to a larger deviation in the final score. By incorporating a filtering strategy, the overall performance will improve.",
|
| 2111 |
+
"bbox": [
|
| 2112 |
+
507,
|
| 2113 |
+
638,
|
| 2114 |
+
884,
|
| 2115 |
+
750
|
| 2116 |
+
],
|
| 2117 |
+
"page_idx": 12
|
| 2118 |
+
},
|
| 2119 |
+
{
|
| 2120 |
+
"type": "text",
|
| 2121 |
+
"text": "E.3 Joint Training vs. Expert Training",
|
| 2122 |
+
"text_level": 1,
|
| 2123 |
+
"bbox": [
|
| 2124 |
+
507,
|
| 2125 |
+
760,
|
| 2126 |
+
830,
|
| 2127 |
+
778
|
| 2128 |
+
],
|
| 2129 |
+
"page_idx": 12
|
| 2130 |
+
},
|
| 2131 |
+
{
|
| 2132 |
+
"type": "text",
|
| 2133 |
+
"text": "We also explored whether to combine data from different categories for joint training when training the evaluator LM or rubric generation model, or to train a separate expert model for each category individually. We found that using joint training can achieve better results than expert training.",
|
| 2134 |
+
"bbox": [
|
| 2135 |
+
507,
|
| 2136 |
+
782,
|
| 2137 |
+
882,
|
| 2138 |
+
879
|
| 2139 |
+
],
|
| 2140 |
+
"page_idx": 12
|
| 2141 |
+
},
|
| 2142 |
+
{
|
| 2143 |
+
"type": "page_number",
|
| 2144 |
+
"text": "16928",
|
| 2145 |
+
"bbox": [
|
| 2146 |
+
477,
|
| 2147 |
+
927,
|
| 2148 |
+
524,
|
| 2149 |
+
940
|
| 2150 |
+
],
|
| 2151 |
+
"page_idx": 12
|
| 2152 |
+
},
|
| 2153 |
+
{
|
| 2154 |
+
"type": "image",
|
| 2155 |
+
"img_path": "images/67528f74254b32d18ef6494d9cd26383e440a7319d1badaaaadad247909d067c.jpg",
|
| 2156 |
+
"image_caption": [
|
| 2157 |
+
"Figure 5: An illustrative example of the format used in self-adaptive rubrics."
|
| 2158 |
+
],
|
| 2159 |
+
"image_footnote": [],
|
| 2160 |
+
"bbox": [
|
| 2161 |
+
163,
|
| 2162 |
+
86,
|
| 2163 |
+
836,
|
| 2164 |
+
354
|
| 2165 |
+
],
|
| 2166 |
+
"page_idx": 13
|
| 2167 |
+
},
|
| 2168 |
+
{
|
| 2169 |
+
"type": "table",
|
| 2170 |
+
"img_path": "images/a24f9880c21151af79994eef03b22d371fcf509650d3bf630a87fedd963e95ff.jpg",
|
| 2171 |
+
"table_caption": [],
|
| 2172 |
+
"table_footnote": [],
|
| 2173 |
+
"table_body": "<table><tr><td>Model</td><td>Type</td><td>ACC</td><td>ACCT</td><td>Pearsonr</td><td>GSB</td></tr><tr><td>GPT-4</td><td>w self-adaptive rubrics</td><td>0.3241</td><td>0.7025</td><td>0.7283</td><td>0.9211</td></tr><tr><td>GPT-4</td><td>wo</td><td>0.2500</td><td>0.5035</td><td>0.4863</td><td>0.8684</td></tr><tr><td>GPT-4-turbo</td><td>w</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>GPT-4-turbo</td><td>wo</td><td>0.1995</td><td>0.5473</td><td>0.5326</td><td>0.9000</td></tr><tr><td>GPT-3.5</td><td>w</td><td>0.2121</td><td>0.5569</td><td>0.3888</td><td>0.8947</td></tr><tr><td>GPT-3.5</td><td>wo</td><td>0.1677</td><td>0.3872</td><td>0.1286</td><td>0.5158</td></tr></table>",
|
| 2174 |
+
"bbox": [
|
| 2175 |
+
176,
|
| 2176 |
+
395,
|
| 2177 |
+
820,
|
| 2178 |
+
521
|
| 2179 |
+
],
|
| 2180 |
+
"page_idx": 13
|
| 2181 |
+
},
|
| 2182 |
+
{
|
| 2183 |
+
"type": "table",
|
| 2184 |
+
"img_path": "images/82200f8acca72b714e743533c896d1fddcf41d01bcda4def9b276e10a11aa531.jpg",
|
| 2185 |
+
"table_caption": [
|
| 2186 |
+
"Table 4: Ablation Study"
|
| 2187 |
+
],
|
| 2188 |
+
"table_footnote": [],
|
| 2189 |
+
"table_body": "<table><tr><td>Type</td><td>OOD</td><td>ID</td><td>Random</td></tr><tr><td>GPT4-turbo</td><td>0.399</td><td>0.488</td><td>0.417</td></tr><tr><td>GPT4</td><td>0.602</td><td>0.613</td><td>0.613</td></tr><tr><td>xdg-turbo</td><td>0.606</td><td>0.607</td><td>0.603</td></tr></table>",
|
| 2190 |
+
"bbox": [
|
| 2191 |
+
139,
|
| 2192 |
+
579,
|
| 2193 |
+
463,
|
| 2194 |
+
649
|
| 2195 |
+
],
|
| 2196 |
+
"page_idx": 13
|
| 2197 |
+
},
|
| 2198 |
+
{
|
| 2199 |
+
"type": "table",
|
| 2200 |
+
"img_path": "images/e90361d0d2995eb248f48326dae2aa00ed33720deb1f0381386a05107bff4dbe.jpg",
|
| 2201 |
+
"table_caption": [
|
| 2202 |
+
"Table 5: Rubric Generation Results."
|
| 2203 |
+
],
|
| 2204 |
+
"table_footnote": [],
|
| 2205 |
+
"table_body": "<table><tr><td>Type</td><td>GSB</td><td>ACC</td><td>ACCt</td><td>pearsonr</td></tr><tr><td>GPT-4</td><td>0.921</td><td>0.324</td><td>0.702</td><td>0.728</td></tr><tr><td>GPT-3.5</td><td>0.894</td><td>0.212</td><td>0.556</td><td>0.388</td></tr></table>",
|
| 2206 |
+
"bbox": [
|
| 2207 |
+
119,
|
| 2208 |
+
703,
|
| 2209 |
+
480,
|
| 2210 |
+
758
|
| 2211 |
+
],
|
| 2212 |
+
"page_idx": 13
|
| 2213 |
+
},
|
| 2214 |
+
{
|
| 2215 |
+
"type": "table",
|
| 2216 |
+
"img_path": "images/3203498003cf76d87fd2ff4ae4b65853c707487a967f35f048b670f3889d4482.jpg",
|
| 2217 |
+
"table_caption": [
|
| 2218 |
+
"Table 6: General Rubrics with Ground Truth."
|
| 2219 |
+
],
|
| 2220 |
+
"table_footnote": [],
|
| 2221 |
+
"table_body": "<table><tr><td>Type</td><td>GSB</td><td>ACC</td><td>ACCt</td><td>pearsonr</td></tr><tr><td>GPT-4-turbo</td><td>0.9</td><td>0.199</td><td>0.547</td><td>0.532</td></tr><tr><td>GPT-4</td><td>0.868</td><td>0.250</td><td>0.503</td><td>0.486</td></tr><tr><td>GPT-3.5</td><td>0.515</td><td>0.167</td><td>0.387</td><td>0.128</td></tr></table>",
|
| 2222 |
+
"bbox": [
|
| 2223 |
+
115,
|
| 2224 |
+
812,
|
| 2225 |
+
500,
|
| 2226 |
+
881
|
| 2227 |
+
],
|
| 2228 |
+
"page_idx": 13
|
| 2229 |
+
},
|
| 2230 |
+
{
|
| 2231 |
+
"type": "text",
|
| 2232 |
+
"text": "Table 7: General Rubrics without Groud Truth.",
|
| 2233 |
+
"bbox": [
|
| 2234 |
+
139,
|
| 2235 |
+
891,
|
| 2236 |
+
460,
|
| 2237 |
+
903
|
| 2238 |
+
],
|
| 2239 |
+
"page_idx": 13
|
| 2240 |
+
},
|
| 2241 |
+
{
|
| 2242 |
+
"type": "page_number",
|
| 2243 |
+
"text": "16929",
|
| 2244 |
+
"bbox": [
|
| 2245 |
+
477,
|
| 2246 |
+
928,
|
| 2247 |
+
524,
|
| 2248 |
+
940
|
| 2249 |
+
],
|
| 2250 |
+
"page_idx": 13
|
| 2251 |
+
},
|
| 2252 |
+
{
|
| 2253 |
+
"type": "image",
|
| 2254 |
+
"img_path": "images/7ccd63d48d08b349fb2d0ead2a92dcb5085a633cb55b23c8050a36f1b8bc557f.jpg",
|
| 2255 |
+
"image_caption": [
|
| 2256 |
+
"Figure 6: Distribution change of the evaluator LM format data after applying the Human-AI Consistency strategy."
|
| 2257 |
+
],
|
| 2258 |
+
"image_footnote": [],
|
| 2259 |
+
"bbox": [
|
| 2260 |
+
156,
|
| 2261 |
+
99,
|
| 2262 |
+
478,
|
| 2263 |
+
309
|
| 2264 |
+
],
|
| 2265 |
+
"page_idx": 14
|
| 2266 |
+
},
|
| 2267 |
+
{
|
| 2268 |
+
"type": "image",
|
| 2269 |
+
"img_path": "images/ec57d49ca2e75e8c3ceb1d0a8fdc4218aa8c171a31ef1c137715a8c67ec12bd5.jpg",
|
| 2270 |
+
"image_caption": [],
|
| 2271 |
+
"image_footnote": [],
|
| 2272 |
+
"bbox": [
|
| 2273 |
+
551,
|
| 2274 |
+
99,
|
| 2275 |
+
860,
|
| 2276 |
+
305
|
| 2277 |
+
],
|
| 2278 |
+
"page_idx": 14
|
| 2279 |
+
},
|
| 2280 |
+
{
|
| 2281 |
+
"type": "code",
|
| 2282 |
+
"sub_type": "code",
|
| 2283 |
+
"code_caption": [],
|
| 2284 |
+
"code_body": "Algorithm 1 Self-Adaptive Rubrics Generation and Validation \nRequire: $Q$ ▷ Given question \nRequire: $GT$ ▷ Ground truth answer \nRequire: $n$ ▷ Maximum iterations \n1: $i \\gets 0$ \n2: accepted ← False \n3: while $i < n$ and ¬accepted do \n4: $R, IA \\gets \\text{GPT-4}(Q)$ ▷ Generate rubrics and ideal answer \n5: if $PA(IA, GT)$ then ▷ Prosecutor agent checks ideal answer \n6: accepted ← True \n7: else \n8: Inform GPT-4 of incorrect IA \n9: $i \\gets i + 1$ \n10: end if \n11: end while \n12: if accepted then \n13: return R \n14: else \n15: return Failure in $n$ iterations \n16: end if",
|
| 2285 |
+
"guess_lang": "txt",
|
| 2286 |
+
"bbox": [
|
| 2287 |
+
114,
|
| 2288 |
+
468,
|
| 2289 |
+
487,
|
| 2290 |
+
843
|
| 2291 |
+
],
|
| 2292 |
+
"page_idx": 14
|
| 2293 |
+
},
|
| 2294 |
+
{
|
| 2295 |
+
"type": "page_number",
|
| 2296 |
+
"text": "16930",
|
| 2297 |
+
"bbox": [
|
| 2298 |
+
477,
|
| 2299 |
+
927,
|
| 2300 |
+
526,
|
| 2301 |
+
940
|
| 2302 |
+
],
|
| 2303 |
+
"page_idx": 14
|
| 2304 |
+
}
|
| 2305 |
+
]
|
2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/b33177e1-fdfe-4c5f-a9a9-037a138aa0cf_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/b33177e1-fdfe-4c5f-a9a9-037a138aa0cf_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:467e4da6d62d3c6e172f38b70f840cc721516aac98e78857e568ffe3938b2ad1
|
| 3 |
+
size 1418433
|
2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/full.md
ADDED
|
@@ -0,0 +1,443 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SedarEval: Automated Evaluation using Self-Adaptive Rubrics
|
| 2 |
+
|
| 3 |
+
Zhiyuan Fan $^{1}$ , Weinong Wang $^{2*}$ , Xing Wu $^{3}$ , Debing Zhang $^{2}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Hong Kong University of Science and Technology, $^{2}$ Xiaohongshu Inc,
|
| 6 |
+
|
| 7 |
+
$^{3}$ Institute of Information Engineering, Chinese Academy of Sciences zhiyuan.fan@connect.ust.hk, weinong.wang@hotmail.com
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
The evaluation paradigm of LLM-as-judge gains popularity due to its significant reduction in human labor and time costs. This approach utilizes one or more large language models (LLMs) to assess the quality of outputs from other LLMs. However, existing methods rely on generic scoring rubrics that fail to consider the specificities of each question and its problem-solving process, compromising precision and stability in assessments. Inspired by human examination scoring processes, we propose a new evaluation paradigm based on self-adaptive rubrics. Specifically, we create detailed scoring rubrics for each question, capturing the primary and secondary criteria in a structured format of scoring and deduction points that mimic a human evaluator's analytical process. Building on this paradigm, we further develop a novel benchmark called SedarEval, which covers a range of domains including long-tail knowledge, mathematics, coding, and logical reasoning. SedarEval consists of 1,000 meticulously crafted questions, each with its own self-adaptive rubric. To further streamline the evaluation, we train a specialized evaluator language model (evaluator LM) to supplant human graders. Using the same training data, our evaluator LM achieves a higher concordance rate with human grading results than other paradigms, including GPT-4, highlighting the superiority and efficiency of our approach.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
The rapid advancements in large language models (LLMs) have led to their widespread use (OpenAI et al., 2024; Team et al., 2023; Anthropic, 2024; Bai et al., 2023). However, assessing these models in open-ended question-answering scenarios poses a significant challenge. Automated metric-based evaluations offer speed and convenience but often fall short due to the diversity of ground truth
|
| 16 |
+
|
| 17 |
+
(Schluter, 2017a; Reiter, 2018; Montahaei et al., 2019; Freitag et al., 2020). In contrast, human-based evaluations provide reliable assessments but require substantial resources.
|
| 18 |
+
|
| 19 |
+
To bridge the gap, the LLM-as-a-judge paradigm attempts to strike a balance between automated and human evaluation. Prominent examples of this approach include MT-bench (Zheng et al., 2024) and Arena (Chiang et al., 2024), which leverage proprietary models to evaluate individual or comparative model responses. These benchmarks use pre-defined principles, such as the 3H principle (human-like, helpful, harmonious), to determine responses that align best with realistic human preferences. The widespread use of GPT-4 (OpenAI et al., 2024) as an evaluator in these studies presents challenges, including high costs for research institutions and potential data leaks.
|
| 20 |
+
|
| 21 |
+
Some studies (Zhu et al., 2023; Li et al., 2023a; Wang et al., 2024; Kim et al., 2024a,b) propose using open-source pretrained models (Touvron et al., 2023; Bai et al., 2023; Zeng et al., 2022) to train specialized evaluator LMs, offering a more cost-effective and secure solution. However, these methods typically use a uniform, question-agnostic rubric to guide the scoring process, overlooking the unique characteristics of each question. Each question has different emphases, with primary and secondary scoring points. A general rubric applies uniform criteria, failing to accurately reflect human preferences.
|
| 22 |
+
|
| 23 |
+
To adaptively align the scoring process with human judgment, we propose a novel evaluation paradigm based on self-adaptive rubrics. Unlike coarse-grained general rubrics, we provide fine-grained rubrics for each task, detailing specific scoring and penalty points with primary and secondary information. By analyzing focus points, we assign different values to each point. Additionally, we introduce penalty points to penalize models for generating rejected responses. The scoring pro
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Automated evaluation pipeline using self-adaptive rubrics. This pipeline dynamically adjusts the evaluation rubric based on the input question, resulting in a scoring process that aligns more closely with human evaluators.
|
| 27 |
+
|
| 28 |
+
cess considers both preferred and rejected perspectives. The inconsistent coverage of positive and penalty points ensures a more refined constraint on the scoring process. These detailed scoring trajectories simplify the evaluation process to an instruction-following task, reducing dependency on a judge model's internal knowledge and skills, leading to more accurate and stable assessments. Building on this paradigm, we construct a new benchmark called SedarEval, presenting a taxonomy comprising 5 major categories, with a dataset of 1000 queries, that fully aligns with realistic scenarios.
|
| 29 |
+
|
| 30 |
+
We further conduct ablation experiments on each component of the LLM-as-a-judge paradigm to investigate training a specialized LLM for scoring, revealing their respective importance. We analyze whether LLMs can correctly evaluate questions they can correctly answer and find that insufficient diversity in existing SFT data and a lack of evaluation-format data limit model performance. We also propose human-AI consistency to ensure evaluator LLMs maintain alignment with human preferences while leveraging their chain of thought capability to improve evaluation performance. Based on these findings, we develop a specialized evaluator LLM tailored to the benchmark for automated scoring. This model surpasses GPT-4 in model-level and question-level Pearson correlation, GSB, and ACC metrics, demonstrating higher consistency with human judgment. Ex
|
| 31 |
+
|
| 32 |
+
perimental results validate the effectiveness and efficiency of our proposed paradigm.
|
| 33 |
+
|
| 34 |
+
Our contributions are summarized as follows:
|
| 35 |
+
|
| 36 |
+
1. We propose a novel evaluation paradigm using self-adaptive rubrics for each question, offering granular guidance and closely aligning the scoring process with human evaluation.
|
| 37 |
+
2. We develop a high-quality benchmark called SedarEval, featuring 1,000 meticulously crafted questions with detailed rubrics, and conduct manual evaluations on 20 LLMs.
|
| 38 |
+
3. We analyze the training of evaluator LMs, highlight existing methods' shortcomings, and use the self-adaptive rubrics paradigm to train an evaluator LM that surpasses GPT-4 in agreement with human evaluations.
|
| 39 |
+
|
| 40 |
+
# 2 Related Work
|
| 41 |
+
|
| 42 |
+
Benchmark LLMs Capabilities. With the rapid advancement of LLMs (OpenAI et al., 2024; Team et al., 2023; Anthropic, 2024), it has become a substantial challenge to benchmark their broad capabilities reliably. NLU-style tasks (Hendrycks et al., 2020; Huang et al., 2024; Srivastava et al., 2022; Zhong et al., 2023), such as multi-choice QA, employ general-exam questions from various domains to assess a model's knowledge and comprehension abilities. However, their real-world usage is limited
|
| 43 |
+
|
| 44 |
+
due to misalignment with human preferences. Recently, reference-free benchmarks (Li et al., 2023b; Chiang et al., 2023; Zheng et al., 2024; Ye et al., 2023) have been proposed to evaluate texts' quality in a generative setting directly. Unlike previous datasets, our benchmark provides a comprehensive and stable model assessment with its diverse test cases and broad label distribution.
|
| 45 |
+
|
| 46 |
+
Automatic NLG Evaluation. It's notably challenging to evaluate the quality of generated text in the field of natural language generation (NLG). Traditional n-gram-based metrics (Papineni et al., 2002; Lin, 2004; Snover et al., 2006) and embedding-based metrics (Li et al., 2019; Zhang et al., 2020; Risch et al., 2021) can only assess lexical or semantic similarity between the generated answers and reference answers (Schluter, 2017a; Reiter, 2018; Montahaei et al., 2019; Freitag et al., 2020). These metrics have been found to have a relatively low correlation with human preferences (Liu et al., 2023a). Recently, employing LLM as a judge (Zheng et al., 2023; Li et al., 2023b; Chan et al., 2023) is a novel evaluation paradigm that has gained widespread application. The most common approach involves using proprietary LLMs, such as GPT-4 (OpenAI et al., 2024), as judge models to rank or score outputs generated by other models. However, this method relies on closed-source models, incurs high costs, and poses risks of internal evaluation dataset leaks for companies developing LLMs. To address these issues, various works (Zhu et al., 2023; Li et al., 2023a; Wang et al., 2024; Kim et al., 2024a,b) have proposed training dedicated scoring models on open-source base models using synthetic or manually labeled data. These evaluations often use reference answers to assist in the assessment or employ general rubrics to guide the scoring process. However, these approaches overlook the differences between individual questions and the varying scoring criteria of each question, even within the same category. In contrast, we propose an evaluation paradigm based on self-adaptive rubrics that generates fine-grained, customizable rubrics for each question, guiding a more precise scoring process. It is worth noting that although Prometheus 2 also claims to use fine-grained rubrics, their rubrics remain question-agnostic.
|
| 47 |
+
|
| 48 |
+
Quantifying Evaluation Confidence. The automatic metrics are imperfect, and we must measure their performance further. A gold standard for this is their alignment with human judgment
|
| 49 |
+
|
| 50 |
+
and the confidence level we can have when these metrics guide our decision-making process. However, quantifying this performance (Krishna et al., 2021; Schluter, 2017b; Stureborg et al., 2024) is difficult due to various factors (the evaluator's accuracy and stability, evaluation set size, the extent of the performance difference among competing models, etc.). (Kocmi et al., 2021; Deutsch et al., 2021; Zhang and Vogel, 2004) investigate the correlation between human judgment and traditional automatic metrics such as ROUGE and BLEU and analyze their confidence intervals. For LLM-based evaluators, commonly used metrics include Pearson, Spearman, and Kdendall-Tau to measure the alignment between the model's scores and human preferences. However, previous work has primarily focused on the correlation of rankings or overall scores at the model level without comparing the scores with human ratings at the individual question. This limits the interpretability of the scoring process and hampers its utility in guiding the development and iteration of LLMs.
|
| 51 |
+
|
| 52 |
+
# 3 SedarEval Benchmark
|
| 53 |
+
|
| 54 |
+
In this section, we introduce SedarEval, a benchmark constructed upon the self-adaptive rubrics paradigm. We begin by delving into the intricacies of the self-adaptive rubric paradigm, followed by a detailed explanation of the benchmark's core components – questions and their corresponding rubrics – along with the methodology for model evaluation using this benchmark. To ensure the quality of SedarEval, we incorporate comprehensive human assessment into the construction process, meticulously filtering out samples that fail to meet the established quality standards.
|
| 55 |
+
|
| 56 |
+
# 3.1 Self-Adaptive Rubrics
|
| 57 |
+
|
| 58 |
+
Previous LLM-as-a-judge approaches, which rely on general rubrics or principles for scoring, often lack specific, problem-related rubric guidance. Consequently, these methods depend heavily on the inherent capabilities of the LLM itself, leading to potential errors in evaluations due to insufficient reasoning abilities or hallucinations. Additionally, this approach introduces extraneous biases, such as position bias and order bias.
|
| 59 |
+
|
| 60 |
+
Self-adaptive rubrics address these issues by tailoring the evaluation criteria to the specific problems at hand, incorporating the focal points of the problem and assigning different weights accordingly.
|
| 61 |
+
|
| 62 |
+
By introducing penalty points, these rubrics align more closely with human judgments by deducting points for outputs that deviate from expected tendencies. To prevent human evaluators (or LLMs) from making incorrect assessments due to a lack of background information, additional context is provided for each question to assist in the scoring process. A typical self-adaptive rubric comprises three components: scoring points, penalty points, and background knowledge, as illustrated in Table 3.
|
| 63 |
+
|
| 64 |
+
# 3.2 Dataset Construction
|
| 65 |
+
|
| 66 |
+
Questions: We have defined a classification system for objective questions, with a two-tiered scoring system as shown in the diagram. Under each secondary classification, we have hired five people to create questions. Specifically, each person is required to first create their own questions to get a question pool, and then each person votes on all the questions. We only keep the questions that all five people agree on.
|
| 67 |
+
|
| 68 |
+
For each candidate question, the annotators will select 5 LLMs to test the effectiveness of the questioned question. We only keep the questions with a larger variance in scores, which are more discriminating, and remove the questions where the answers from different models are almost the same, which are not helpful in distinguishing between different models. For example, if a question can be answered correctly by all models, or incorrectly by all models, then this question cannot show which model is better.
|
| 69 |
+
|
| 70 |
+
After collecting the initial questions, we hired another group of people to compare all the questions in pairs to judge the similarity of the problem-solving ideas for the two questions and delete the questions with too much similarity.
|
| 71 |
+
|
| 72 |
+
Rubrics: For each question, we assign it to three individuals to discuss together and generate a rubric like the one shown in Figure 1.
|
| 73 |
+
|
| 74 |
+
For more detailed information, please refer to Appendix D, which contains benchmark statistics and the leaderboard.
|
| 75 |
+
|
| 76 |
+
# 3.3 Evaluation Pipeline
|
| 77 |
+
|
| 78 |
+
The entire evaluation pipeline using our benchmark is illustrated in Figure 1. Given a question, its corresponding rubrics, and the model to be evaluated, we first input the question into the model to generate a response. The response is then scored according to the predefined rubric, either by human
|
| 79 |
+
|
| 80 |
+
evaluators or using LLMs. Finally, all the scores are aggregated to obtain the model's total score.
|
| 81 |
+
|
| 82 |
+
# 4 Evaluator Language Model
|
| 83 |
+
|
| 84 |
+
In this section, we introduce an evaluator LM aligned with the self-adaptive rubrics paradigm to substitute human evaluators. We begin by delineating the evaluation format. Subsequently, we propose a novel data filtering strategy to align the Chain-of-Thought evaluation process with human judgments. Finally, we discuss the automation of rubric generation.
|
| 85 |
+
|
| 86 |
+
# 4.1 Evaluation Format
|
| 87 |
+
|
| 88 |
+
The evaluation format consists of two types: direct scoring of individual model outputs and pairwise comparison of model outputs to determine the superior one. Pairwise evaluation requires significantly more comparisons as the number of candidate models increases, as shown by Equation 1. Therefore, we employ direct assessment in this paper. Notably, direct assessment scores can be compared to derive pairwise results.
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
C (n, 2) = \frac {n !}{2 ! (n - 2) !} - n = \frac {n ^ {2} - 3 n}{2} \tag {1}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
We use a reference-based format to organize the output. Specifically, for each question, we compile the reference answer, self-adaptive rubrics, and scoring examples to create an auto-prompt template. When evaluating answers, we incorporate the answers into this auto-prompt template as the complete input. We conduct ablation experiments on each component in zero-shot, few-shot, and instruction tuning settings.
|
| 95 |
+
|
| 96 |
+
# 4.2 Human-AI Consistency
|
| 97 |
+
|
| 98 |
+
Human annotators provide specific scores for each response without corresponding explanations, which is efficient but suboptimal for training evaluator LMs. To alleviate this issue, we use GPT-4 to generate detailed reasoning steps using Chain-of-Thought. However, scoring preferences may differ between GPT-4 and human annotators, and both may make errors. To mitigate these errors and align the scoring process with human judgment, we introduce a Human-AI Consistency strategy to improve synthetic data quality. We extract final scores from the GPT-4 scoring process and compare them with human scores, retaining only the data where GPT-4 and human results are consistent,
|
| 99 |
+
|
| 100 |
+
as shown in Equation 2, where $\mathcal{H}$ represents human scores, $\mathcal{A}$ represents AI scores, and $\mathbb{I}$ is an indicator function.
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\mathcal {T} = \{(h, a) \mid h \in \mathcal {H}, a \in \mathcal {A}, \mathbb {I} (h, a) = 1 \} \quad (2)
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
This approach only retains instances where human and AI scores are consistent and differs from rejection sampling, which uses human scores as a reward function to select the optimal output from multiple GPT-4 results.
|
| 107 |
+
|
| 108 |
+
# 4.3 Automatic Rubric Generation
|
| 109 |
+
|
| 110 |
+
To reduce human annotation costs, we investigate using human-annotated datasets to train a model for automatic self-adaptive rubric generation. By providing the model with questions and corresponding reference answers, we train it to produce rubrics that delineate scoring criteria and identify deduction points.
|
| 111 |
+
|
| 112 |
+
Generating self-adaptive rubric format output is straightforward, but aligning rubrics with human preferences requires aligning the model with human evaluative criteria. This complexity arises because identifying scoring points, assigning specific weights, and criteria for deductions are significantly influenced by human judgment.
|
| 113 |
+
|
| 114 |
+
The training process for the automatic rubric generation model comprises two stages. Initially, we use human-labeled data to train a base model through Supervised Fine-Tuning (SFT), as depicted in Equation 3.
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\mathcal {L} (\theta) = - \sum_ {i = 1} ^ {N} \log p _ {\theta} \left(y _ {i} \mid x _ {i}\right) \tag {3}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
The base model generates rubrics that conform to the specified format, though they may not fully align with human preferences (quantitative metrics will be introduced in Section 5.2). In the next phase, rubrics generated by the base model are treated as rejected responses, while human-labeled rubrics serve as preferred responses to construct preference pairs. We then train the model using Direct Preference Optimization (DPO) to align it with human preferences, as shown in Equations 4 and 5.
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
f (y, x) = \beta \log \frac {\pi_ {\theta} (y \mid x)}{\pi_ {\mathrm {r e f}} (y \mid x)} \tag {4}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\mathcal {L} \left(\pi_ {\theta}\right) = - \log \sigma \left(f \left(y _ {w}, x\right) - f \left(y _ {l}, x\right)\right) \tag {5}
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
We also explore automating rubric generation using GPT-4 without reference answers. To ensure accuracy, GPT-4 creates both the rubric and an ideal answer for each question. If the ideal answer corresponds with the ground truth, the generated rubric is deemed acceptable. We employ a self-refinement strategy to help the model iteratively refine its outputs, aligning it with human preferences. For detailed algorithmic procedures and prompts, refer to Appendix E.1.
|
| 131 |
+
|
| 132 |
+
# 5 Experiment
|
| 133 |
+
|
| 134 |
+
# 5.1 Experimental Setting
|
| 135 |
+
|
| 136 |
+
We train the Evaluator Language Model and the Rubric Generation Model using both the opensource model LLaMA-3 (Touvron et al., 2023) and our internal model $\mathrm{XDG}^{1}$ . To maximize training efficiency and utilize hardware resources, we implement tensor parallelism (Shoeybi et al., 2020) with PyTorch 2.3 (Paszke et al., 2019). For the 7B/8B models, we use 128 H100 GPUs, while for the 70B models, we use 512 H100 GPUs. For the models' chat versions (i.e., instruction-tuned), we employ the same chat markup language (ChatML) as the models themselves. For the pre-trained versions, we use a unified ChatML to reduce data bias. We adopt adaptive learning rate and batch size strategies. Further training details are provided in Appendix A.
|
| 137 |
+
|
| 138 |
+
# 5.2 Evaluation Metrics
|
| 139 |
+
|
| 140 |
+
To assess the performance of the evaluator language model, we use Pearson's correlation coefficient and Spearman's rank correlation coefficient. These statistical measures assess the consistency between the outcomes of the evaluator language model and those obtained from human evaluators.
|
| 141 |
+
|
| 142 |
+
Each question is accompanied by a detailed rubric specifying exact scoring and deduction criteria, so we use accuracy to evaluate the model's capability in following these self-adaptive rubrics for scoring. Considering potential noise in the model scoring, we introduce a weaker threshold ACC, which considers a result correct if it falls within a specified range. The calculation formulas are presented in Equation 6.
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
\mathrm {A C C} _ {t} = \frac {1}{N} \sum_ {i = 1} ^ {N} \left\{ \begin{array}{l l} 1, & \text {i f} | y _ {\text {p r e d} _ {i}} - y _ {\text {t r u e} _ {i}} | \leq \epsilon \\ 0, & \text {o t h e r w i s e} \end{array} \right. \tag {6}
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
To facilitate the iterative enhancement of LLMs using our benchmark, a robust metric is essential to assess whether the current model version outperforms its predecessor. Therefore, we adopt the widely used GSB (Good, Same, Bad) metric to compare model performance. Given two models, A and B, the calculation formula is presented in Equation 7. In this context, "#good" signifies that model A surpasses model B, "#bad" denotes the contrary, and "#same" indicates equivalent performance between the models.
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
\Delta G S B = \frac {\# \text {g o o d} - \# \text {b a d}}{\# \text {g o o d} + \# \text {s a m e} + \# \text {b a d}} \tag {7}
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
To evaluate the quality of automatically generated rubrics, we draw on the ACU (Liu et al., 2023b) and FactScore (Min et al., 2023) paradigms, using GPT-4 to calculate the match between the generated rubrics and the ground truth rubrics. The calculation formula is specified in Equation 8, where GT represents the correct rubric set containing multiple {grading points: specific score} pairs, and AT denotes the automatically generated rubric set. $\mathbb{I}(i\in GT)$ is an indicator function that equals 1 if the item $i$ from AT is present in GT, and 0 otherwise. The prompts used for this evaluation are detailed in Appendix C.2.
|
| 155 |
+
|
| 156 |
+
$$
|
| 157 |
+
\operatorname {M a t c h} (G T, A T) = \frac {\sum_ {i \in A T} \mathbb {I} (i \in G T)}{| G T |} \tag {8}
|
| 158 |
+
$$
|
| 159 |
+
|
| 160 |
+
# 5.3 Selected Models
|
| 161 |
+
|
| 162 |
+
Previous studies predominantly employ English-proficient models to generate <question, response, score> triples for training evaluator language models, often overlooking models proficient in Chinese. Additionally, several studies exclusively use GPT-3.5 or GPT-4 to construct such synthetic data. These data generation methodologies may cause discrepancies between the synthetic and real-world data distributions, introducing biases into the trained evaluator language models.
|
| 163 |
+
|
| 164 |
+
To alleviate this issue, we utilize a broader range of LLMs to collect responses that better reflect real-world distributions. This approach ensures greater diversity and mitigates biases introduced by relying solely on synthetic data generated from a single model. Specifically, we choose GPT-4, GPT-4-turbo, GPT-4-o, Claude Opus, DeepSeek 2.0, MiniMax 6.5, MiniMax 6, Doubao, GPT-3.5, Tongyi Qianwen 2.0, and Tongyi Qianwen 1.5-100B/70B. This selection includes models proficient in differ
|
| 165 |
+
|
| 166 |
+
ent languages and multiple versions of the same model.
|
| 167 |
+
|
| 168 |
+
For open-source models, we use local deployment to infer responses. For proprietary LLMs, if API services are available, we collect model outputs by requesting the API. If only a web interface is provided, we employ people to gather the outputs.
|
| 169 |
+
|
| 170 |
+
# 6 Analysis
|
| 171 |
+
|
| 172 |
+
In this section, we conduct a comprehensive experimental analysis of the robustness of the proposed benchmark evaluations, examining the data distribution, training phases, and training paradigms of evaluator LMs. Our findings reveal limitations in current training methodologies for evaluator LMs. Building on these insights, we develop an evaluator LM aligned with the self-adaptive rubrics paradigm.
|
| 173 |
+
|
| 174 |
+
# 6.1 Scaling Law for Robust Evaluation
|
| 175 |
+
|
| 176 |
+
A robust benchmark should effectively distinguish the capabilities of different models and maintain stability to ensure consistent rankings rather than allowing fluctuations due to the instability of individual tasks. To achieve this, the benchmark needs a sufficiently broad distribution while minimizing extraneous biases.
|
| 177 |
+
|
| 178 |
+
To verify the robustness of the proposed benchmark, we conduct two rounds of sampling without replacement from a pool of 1,000 questions. In each round, we select $n$ questions, resulting in a total of $2n$ independent questions, where $n \in [10,500]$ . We then compare the consistency of the model rankings obtained from these two samples.
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
Figure 2: Consistency of model rankings as $n$ increases. After $n$ reaches approximately 300, the consistency stabilizes with only minor fluctuations.
|
| 182 |
+
Figure 2 shows the variation in the consistency of model rankings under different question sets as $n$
|
| 183 |
+
|
| 184 |
+
increases. When $n$ is relatively small, the consistency is low, indicating the inconsistency caused by biases in different distributions. As $n$ increases, the consistency improves despite the two sets remaining independent. After $n$ reaches approximately 300, the consistency stabilizes with only minor fluctuations. This demonstrates the scaling law for robust evaluation, indicating that as the number of questions increases, the evaluation results tend to stabilize due to the broader coverage of the distribution.
|
| 185 |
+
|
| 186 |
+
# 6.2 Score Distribution Shift
|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
Figure 3: Data distribution comparison of different data.
|
| 190 |
+
|
| 191 |
+
The Prometheus approach, which relies on general rubrics not specifically tailored to the problem at hand, employs GPT-4 to generate an equal amount of synthetic data across different scores (1-5) to mitigate score bias from the evaluating language model. In contrast, our method uses self-adaptive rubrics, and our responses are genuinely collected from the model rather than artificially synthesized. Consequently, we cannot ensure that the quantity of data for each score is perfectly balanced.
|
| 192 |
+
|
| 193 |
+
However, as illustrated in Figure 3, we observe that despite the score distribution shift between the training and test data, the score distribution of the model outputs, trained using the self-adaptive rubrics paradigm, closely aligns with the human-provided ground truth. This finding substantiates the robustness and efficacy of the self-adaptive rubrics paradigm in automated scoring.
|
| 194 |
+
|
| 195 |
+
# 6.3 Out of Distribution Evaluation
|
| 196 |
+
|
| 197 |
+
We establish two dimensions for evaluating the out-of-distribution capabilities of our model: model-level and question-level. For the model-level evaluation, we utilize the same set of questions, selecting a subset of models to train the evaluator language model (LM), and subsequently test on the remaining unselected models. In the question-level evaluation, a subset of questions along with all associated models are used for training, and the scoring performance is then assessed on a different
|
| 198 |
+
|
| 199 |
+
set of questions.
|
| 200 |
+
|
| 201 |
+
Table 1 presents the experimental results, showing that under the self-adaptive rubrics paradigm, the model performs well in both model-level and question-level evaluations. This indicates that our proposed method has strong generalization capabilities.
|
| 202 |
+
|
| 203 |
+
# 6.4 Merged SFT or Continual SFT
|
| 204 |
+
|
| 205 |
+
Previous research shows that a model might generate a correct answer but fail to accurately evaluate the <question, answer> pair for the same question. We argue that this issue mainly arises from the insufficient diversity of the SFT data.
|
| 206 |
+
|
| 207 |
+
To validate this, we conduct the following experiments:
|
| 208 |
+
|
| 209 |
+
1. Training a pretrained language model (PLM) using only traditional SFT data.
|
| 210 |
+
2. Training a PLM using a mix of SFT data and evaluator LM format data.
|
| 211 |
+
3. Performing continual SFT on an instruction-tuned model using evaluator LM format data, a widely adopted approach in other studies (Kim et al., 2024b,a).
|
| 212 |
+
|
| 213 |
+
As shown in Table 2, we find that although the model using continual SFT performs well on evaluation tasks, its general ability significantly declines, limiting its versatility. However, starting from a PLM and using a mix of SFT data and evaluator LM format data for SFT results in excellent evaluation capability with minimal impact on general ability. This reveals the shortcomings of the previous continual SFT approach and suggests that the model's inability to evaluate the questions it can answer may simply be due to the lack of such data, highlighting the importance of diversity in SFT data.
|
| 214 |
+
|
| 215 |
+
We employ Human-AI Consistency to filter the evaluator LM and find that, compared to using raw Chain-of-Thought data generated by GPT-4 and data filtered by rejection sampling, the data selected using Human-AI Consistency shows significant improvements in both evaluation and general capability, demonstrating the effectiveness of this strategy.
|
| 216 |
+
|
| 217 |
+
# 6.5 Ablation Study
|
| 218 |
+
|
| 219 |
+
We conduct detailed ablation experiments on the components of self-adaptive rubrics, namely, reference answers, rubrics, and in-context examples.
|
| 220 |
+
|
| 221 |
+
<table><tr><td rowspan="2">Type</td><td colspan="4">Question-level</td><td colspan="4">Model-level</td></tr><tr><td>GSB</td><td>ACC</td><td>ACC(t)</td><td>pearson</td><td>GSB</td><td>ACC</td><td>ACC(t)</td><td>pearson</td></tr><tr><td>XDG</td><td>0.952</td><td>0.590</td><td>0.794</td><td>0.738</td><td>0.952</td><td>0.590</td><td>0.794</td><td>0.380</td></tr><tr><td>GPT-3.5</td><td>0.829</td><td>0.422</td><td>0.663</td><td>0.566</td><td>0.829</td><td>0.422</td><td>0.663</td><td>0.566</td></tr><tr><td>GPT-4</td><td>0.952</td><td>0.654</td><td>0.855</td><td>0.822</td><td>0.952</td><td>0.654</td><td>0.855</td><td>0.822</td></tr></table>
|
| 222 |
+
|
| 223 |
+
Table 1: Out of distribution evaluation performance in both model-level and question-level.
|
| 224 |
+
|
| 225 |
+
<table><tr><td>Type</td><td>GSB</td><td>ACC</td><td>ACC(t)</td><td>pearson</td><td>general</td></tr><tr><td>baseline</td><td>0.784</td><td>0.339</td><td>0.584</td><td>0.263</td><td>730</td></tr><tr><td>XDG-v1</td><td>0.910</td><td>0.514</td><td>0.755</td><td>0.686</td><td>458</td></tr><tr><td>XDG-v2</td><td>0.895</td><td>0.551</td><td>0.802</td><td>0.761</td><td>684</td></tr><tr><td>XDG-v3</td><td>0.911</td><td>0.593</td><td>0.811</td><td>0.765</td><td>653</td></tr><tr><td>XDG-v4</td><td>0.941</td><td>0.664</td><td>0.854</td><td>0.829</td><td>685</td></tr></table>
|
| 226 |
+
|
| 227 |
+
Table 2: Experiments on training phases and training data, where v1 represents continual SFT, v1 represents SFT from PLM, v1 represents SFT incorporating evaluator LM format data, and v1 represents data filtered using the Human-AI Consistency strategy.
|
| 228 |
+
|
| 229 |
+
As shown in Table 3, the consistency between the evaluator LM and human scoring significantly increases after incorporating self-adaptive rubrics. However, the improvements are not as pronounced when other components are added, indicating that the primary driver of enhanced performance is the self-adaptive rubrics themselves. This suggests that self-adaptive rubrics play a crucial role in aligning the evaluator LM with human judgment.
|
| 230 |
+
|
| 231 |
+
<table><tr><td>Type</td><td>GSB</td><td>ACC</td><td>ACCT</td><td>Pearson</td></tr><tr><td>Baseline</td><td>0.963</td><td>0.636</td><td>0.802</td><td>0.733</td></tr><tr><td>+ rubric</td><td>0.957</td><td>0.706</td><td>0.871</td><td>0.843</td></tr><tr><td>+ R.A</td><td>0.952</td><td>0.717</td><td>0.877</td><td>0.848</td></tr><tr><td>+ example</td><td>0.959</td><td>0.728</td><td>0.888</td><td>0.867</td></tr></table>
|
| 232 |
+
|
| 233 |
+
Table 3: Ablation study for each component, where R.A. stands for reference answer.
|
| 234 |
+
|
| 235 |
+
# 6.6 Comparison with Alternative Paradigm
|
| 236 |
+
|
| 237 |
+
Using the same training data, we conduct a comparative analysis between the self-adaptive rubrics paradigm and the existing general rubric paradigm, as presented in Table 4. The results demonstrate that our approach significantly outperforms existing methods. Furthermore, in addition to accurately ranking the models, our method provides fine-grained capability evaluations that closely align with human assessments. This is both crucial and practical for facilitating the iterative development of LLMs. Due to space constraints, detailed de
|
| 238 |
+
|
| 239 |
+
scriptions and results of other experiments are provided in Appendix E.
|
| 240 |
+
|
| 241 |
+
# 7 Conclusion
|
| 242 |
+
|
| 243 |
+
In this paper, we introduce a novel evaluation paradigm called self-adaptive rubrics, aligning the scoring process with human judgment and reducing bias by tailoring rubrics to specific questions. Based on this paradigm, we develop a new benchmark, INSDA. To automate scoring, we analyze existing open-source evaluator language models and identify training phase data diversity issues. We then introduce human-AI consistency to align the chain-of-thought evaluation with human judgment and propose an evaluator LM that follows the self-adaptive rubrics paradigm. Experimental results show our model achieves higher consistency with human evaluation compared to GPT-4. We hope our work inspires researchers to apply this paradigm to more tasks, aligning automated scoring with human judgment.
|
| 244 |
+
|
| 245 |
+
# Limitations
|
| 246 |
+
|
| 247 |
+
In this paper, we propose an evaluation paradigm based on self-adaptive rubrics, which provides more granular process guidance to align the scoring process with human judgment. Additionally, we introduce a benchmark, INSDA, based on this framework. However, there are several limitations:
|
| 248 |
+
|
| 249 |
+
- For questions with multiple correct answers, it requires manually writing multiple self-adaptive rubrics. It is worth noting that, to our knowledge, no current work focuses on the multi-solution direction.
|
| 250 |
+
- For subjective questions, such as creative writing, poetry, and other forms of artistic expression, different groups or individuals may have varying definitions of what constitutes good work. Therefore, it is necessary for each group or individual to set their own self-adaptive rubrics rather than relying on predefined ones. This also highlights the flexibility
|
| 251 |
+
|
| 252 |
+
and interpretability of the self-adaptive rubrics paradigm we propose.
|
| 253 |
+
|
| 254 |
+
# Ethical Considerations
|
| 255 |
+
|
| 256 |
+
We propose a scoring paradigm based on self-adaptive rubrics to enhance the interpretability and controllability of the automated scoring process. This approach aims to improve the credibility of evaluation results produced by LLMs and to support the research community in advancing these models. Nevertheless, the inherent hallucinations within LLMs pose a challenge to ensuring the complete accuracy of automated evaluation outcomes. Therefore, we recommend incorporating human review of certain outputs when using LLMs as judges to increase the overall reliability and credibility of the process.
|
| 257 |
+
|
| 258 |
+
Additionally, when generating self-adaptive rubrics for subjective questions, different groups or individuals may have varying definitions of what constitutes a good answer, potentially leading to biases and discrepancies. We encourage dialogue and mutual understanding among groups or individuals with diverse values, promoting the use of self-adaptive rubrics that align with their respective values and preferences.
|
| 259 |
+
|
| 260 |
+
# References
|
| 261 |
+
|
| 262 |
+
AI Anthropic. 2024. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card.
|
| 263 |
+
Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, et al. 2023. Qwen technical report. arXiv preprint arXiv:2309.16609.
|
| 264 |
+
Chi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu, Wei Xue, Shanghang Zhang, Jie Fu, and Zhiyuan Liu. 2023. Chateval: Towards better llmbased evaluators through multi-agent debate. Preprint, arXiv:2308.07201.
|
| 265 |
+
Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E Gonzalez, et al. 2023. Vicuna: An open-source chatbot impressing gpt-4 with $90\%$ chatgpt quality. See https://vicuna.lmsys.org (accessed 14 April 2023), 2(3):6.
|
| 266 |
+
Wei-Lin Chiang, Lianmin Zheng, Ying Sheng, Anastasios Nikolas Angelopoulos, Tianle Li, Dacheng Li, Hao Zhang, Banghua Zhu, Michael Jordan, Joseph E Gonzalez, et al. 2024. Chatbot arena: An open platform for evaluating llms by human preference. arXiv preprint arXiv:2403.04132.
|
| 267 |
+
|
| 268 |
+
Daniel Deutsch, Rotem Dror, and Dan Roth. 2021. A statistical analysis of summarization evaluation metrics using resampling methods. Transactions of the Association for Computational Linguistics, 9:1132-1146.
|
| 269 |
+
Markus Freitag, David Grangier, and Isaac Caswell. 2020. BLEU might be guilty but references are not innocent. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 61-71, Online. Association for Computational Linguistics.
|
| 270 |
+
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300.
|
| 271 |
+
Yuzhen Huang, Yuzhuo Bai, Zhihao Zhu, Junlei Zhang, Jinghan Zhang, Tangjun Su, Junteng Liu, Chuancheng Lv, Yikai Zhang, Yao Fu, et al. 2024. C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models. Advances in Neural Information Processing Systems, 36.
|
| 272 |
+
Seungone Kim, Jamin Shin, Yejin Cho, Joel Jang, Shayne Longpre, Hwaran Lee, Sangwoo Yun, Seongjin Shin, Sungdong Kim, James Thorne, and Minjoon Seo. 2024a. Prometheus: Inducing fine-grained evaluation capability in language models. Preprint, arXiv:2310.08491.
|
| 273 |
+
Seungone Kim, Juyoung Suk, Shayne Longpre, Bill Yuchen Lin, Jamin Shin, Sean Welleck, Graham Neubig, Moontae Lee, Kyungjae Lee, and Minjoon Seo. 2024b. Prometheus 2: An open source language model specialized in evaluating other language models. Preprint, arXiv:2405.01535.
|
| 274 |
+
Tom Kocmi, Christian Federmann, Roman Grundkiewicz, Marcin Junczys-Dowmunt, Hitokazu Matsushita, and Arul Menezes. 2021. To ship or not to ship: An extensive evaluation of automatic metrics for machine translation. arXiv preprint arXiv:2107.10821.
|
| 275 |
+
Kalpesh Krishna, Aurko Roy, and Mohit Iyyer. 2021. Hurdles to progress in long-form question answering. arXiv preprint arXiv:2103.06332.
|
| 276 |
+
Junlong Li, Shichao Sun, Weizhe Yuan, Run-Ze Fan, Hai Zhao, and Pengfei Liu. 2023a. Generative judge for evaluating alignment. Preprint, arXiv:2310.05470.
|
| 277 |
+
Siyao Li, Deren Lei, Pengda Qin, and William Yang Wang. 2019. Deep reinforcement learning with distributional semantic rewards for abstractive summarization. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 6038-6044, Hong Kong, China. Association for Computational Linguistics.
|
| 278 |
+
Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023b. Alpacaeval: An automatic evaluator of instruction-following models. https://github.com/tatsu-lab/alpaca_eval.
|
| 279 |
+
|
| 280 |
+
Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain. Association for Computational Linguistics.
|
| 281 |
+
|
| 282 |
+
Yang Liu, Dan Iter, Yichong Xu, Shuohang Wang, Ruochen Xu, and Chenguang Zhu. 2023a. Gpteval: Nlg evaluation using gpt-4 with better human alignment. arXiv preprint arXiv:2303.16634.
|
| 283 |
+
|
| 284 |
+
Yixin Liu, Alex Fabbri, Pengfei Liu, Yilun Zhao, Linyong Nan, Ruilin Han, Simeng Han, Shafiq Joty, Chien-Sheng Wu, Caiming Xiong, and Dragomir Radev. 2023b. Revisiting the gold standard: Grounding summarization evaluation with robust human evaluation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4140-4170, Toronto, Canada. Association for Computational Linguistics.
|
| 285 |
+
|
| 286 |
+
Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen-tau Yih, Pang Koh, Mohit Iyyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2023. FActScore: Fine-grained atomic evaluation of factual precision in long form text generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 12076-12100, Singapore. Association for Computational Linguistics.
|
| 287 |
+
|
| 288 |
+
Ehsan Montahaei, Danial Alihosseini, and Mahdieh Soleymani Baghshah. 2019. Jointly measuring diversity and quality in text generation models. Preprint, arXiv:1904.03971.
|
| 289 |
+
|
| 290 |
+
OpenAI, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, Red Avila, Igor Babuschkin, Suchir Balaji, Valerie Balcom, Paul Baltescu, Haiming Bao, Mohammad Bavarian, Jeff Belgium, Irwan Bello, Jake Berdine, Gabriel Bernadett-Shapiro, Christopher Berner, Lenny Bogdonoff, Oleg Boiko, Madelaine Boyd, Anna-Luisa Brakman, Greg Brockman, Tim Brooks, Miles Brundage, Kevin Button, Trevor Cai, Rosie Campbell, Andrew Cann, Brittany Carey, Chelsea Carlson, Rory Carmichael, Brooke Chan, Che Chang, Fotis Chantzis, Derek Chen, Sully Chen, Ruby Chen, Jason Chen, Mark Chen, Ben Chess, Chester Cho, Casey Chu, Hyung Won Chung, Dave Cummings, Jeremiah Currier, Yunxing Dai, Cory Decareaux, Thomas Degry, Noah Deutsch, Damien Deville, Arka Dhar, David Dohan, Steve Dowling, Sheila Dunning, Adrien Ecoffet, Atty Eleti, Tyna Eloundou, David Farhi, Liam Fedus, Niko Felix, Simón Posada Fishman, Juston Forte, Isabella Fulford, Leo Gao, Elie Georges, Christian Gibson, Vik Goel, Tarun Gogineni, Gabriel Goh, Rapha Gontijo-Lopes, Jonathan Gordon, Morgan Grafstein, Scott Gray, Ryan Greene, Joshua Gross, Shixiang Shane Gu, Yufei Guo, Chris Hallacy, Jesse Han, Jeff Harris, Yuchen He, Mike Heaton, Johannes Heidecke, Chris Hesse, Alan Hickey, Wade Hickey, Peter Hoeschele, Brandon Houghton, Kenny Hsu, Shengli Hu, Xin Hu, Joost Huizinga, Shantanu Jain, Shawn Jain, Joanne Jang, Angela Jiang, Roger Jiang, Haozhun Jin, Denny Jin, Shino Jomoto, Billie Jonn, Heewoo
|
| 291 |
+
|
| 292 |
+
Jun, Tomer Kaftan, Lukasz Kaiser, Ali Kamali, Ingmar Kanitscheider, Nitish Shirish Keskar, Tabarak Khan, Logan Kilpatrick, Jong Wook Kim, Christina Kim, Yongjik Kim, Jan Hendrik Kirchner, Jamie Kiros, Matt Knight, Daniel Kokotajlo, Lukasz Kondraciuk, Andrew Kondrich, Aris Konstantinidis, Kyle Kosic, Gretchen Krueger, Vishal Kuo, Michael Lampe, Ikai Lan, Teddy Lee, Jan Leike, Jade Leung, Daniel Levy, Chak Ming Li, Rachel Lim, Molly Lin, Stephanie Lin, Mateusz Litwin, Theresa Lopez, Ryan Lowe, Patricia Lue, Anna Makanju, Kim Malfacini, Sam Manning, Todor Markov, Yaniv Markovski, Bianca Martin, Katie Mayer, Andrew Mayne, Bob McGrew, Scott Mayer McKinney, Christine McLeavey, Paul McMillan, Jake McNeil, David Medina, Aalok Mehta, Jacob Menick, Luke Metz, Andrey Mishchenko, Pamela Mishkin, Vinnie Monaco, Evan Morikawa, Daniel Mossing, Tong Mu, Mira Murati, Oleg Murk, David Mely, Ashvin Nair, Reiichiro Nakano, Rajeev Nayak, Arvind Neelakantan, Richard Ngo, Hyeonwoo Noh, Long Ouyang, Cullen O'Keefe, Jakub Pachocki, Alex Paino, Joe Palermo, Ashley Pantuliano, Giambattista Parascandolo, Joel Parish, Emy Parparita, Alex Passos, Mikhail Pavlov, Andrew Peng, Adam Perelman, Filipe de Avila Belbute Peres, Michael Petrov, Henrique Ponde de Oliveira Pinto, Michael, Pokorny, Michelle Pokrass, Vitchyr H. Pong, Tolly Powell, Alethea Power, Boris Power, Elizabeth Proehl, Raul Puri, Alec Radford, Jack Rae, Aditya Ramesh, Cameron Raymond, Francis Real, Kendra Rimbach, Carl Ross, Bob Rotsted, Henri Roussez, Nick Ryder, Mario Saltarelli, Ted Sanders, Shibani Santurkar, Girish Sastry, Heather Schmidt, David Schnurr, John Schulman, Daniel Selsam, Kyla Sheppard, Toki Sherbakov, Jessica Shieh, Sarah Shoker, Pranav Shyam, Szymon Sidor, Eric Sigler, Maddie Simens, Jordan Sitkin, Katarina Slama, Ian Sohl, Benjamin Sokolowsky, Yang Song, Natalie Staudacher, Felipe Petroski Such, Natalie Summers, Ilya Sutskever, Jie Tang, Nikolas Tezak, Madeleine B. Thompson, Phil Tillet, Amin Tootoonchian, Elizabeth Tsengpreston Tuggle Nick Turley Jerry Tworek Juan Felipe Ceron Uribe Andrea Vallone Arun Vijayvergiya Chelsea VossCarroll Wainwright Justin Jay Wang Alvin Wang Ben Wang Jonathan Ward Jason Wei CJ Weinmann Akila Welihinda Peter Welinder Jiayi Weng Lilian Weng Matt Wiethoff Dave Willner Clemens Winter Samuel Wolrich Hannah Wong Lauren Workman Sherwin Wu Jeff Wu Michael Wu Kai Xiao Tao Xu Sarah Yoo Kevin Yu Qiming Yuan Wojciech Zaremba Rowan Zellers Chong Zhang Marvin Zhang Shengjia Zhao Tianhao Zheng Juntang Zhuang William Zhuk and Barret Zoph. 2024. Gpt-4 technical report. Preprint arXiv:2303.08774.
|
| 293 |
+
|
| 294 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting on Association for Computational Linguistics, ACL '02, page 311-318, USA. Association for Computational Linguistics.
|
| 295 |
+
|
| 296 |
+
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Al
|
| 297 |
+
|
| 298 |
+
ban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. 2019. Pytorch: An imperative style, high-performance deep learning library. Preprint, arXiv:1912.01703.
|
| 299 |
+
Ehud Reiter. 2018. A structured review of the validity of BLEU. Computational Linguistics, 44(3):393-401.
|
| 300 |
+
Julian Risch, Timo Möller, Julian Gutsch, and Malte Pietsch. 2021. Semantic answer similarity for evaluating question answering models. In Proceedings of the 3rd Workshop on Machine Reading for Question Answering, pages 149-157, Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 301 |
+
Natalie Schluter. 2017a. The limits of automatic summarisation according to ROUGE. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, pages 41-45, Valencia, Spain. Association for Computational Linguistics.
|
| 302 |
+
Natalie Schluter. 2017b. The limits of automatic summarisation according to rouge. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics, pages 41-45. Association for Computational Linguistics.
|
| 303 |
+
Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. 2020. Megatron-lm: Training multi-billion parameter language models using model parallelism. Preprint, arXiv:1909.08053.
|
| 304 |
+
Matthew Snover, Bonnie Dorr, Rich Schwartz, Linnea Micciulla, and John Makhoul. 2006. A study of translation edit rate with targeted human annotation. In Proceedings of the 7th Conference of the Association for Machine Translation in the Americas: Technical Papers, pages 223-231, Cambridge, Massachusetts, USA. Association for Machine Translation in the Americas.
|
| 305 |
+
Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. 2022. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615.
|
| 306 |
+
Rickard Stureborg, Dimitris Alikaniotis, and Yoshi Suhara. 2024. Characterizing the confidence of large language model-based automatic evaluation metrics. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 2: Short Papers), pages 76-89.
|
| 307 |
+
Gemini Team, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. 2023. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805.
|
| 308 |
+
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix,
|
| 309 |
+
|
| 310 |
+
Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models. Preprint, arXiv:2302.13971.
|
| 311 |
+
Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, and Yue Zhang. 2024. Pandalm: An automatic evaluation benchmark for llm instruction tuning optimization. Preprint, arXiv:2306.05087.
|
| 312 |
+
Seonghyeon Ye, Doyoung Kim, Sungdong Kim, Hyeonbin Hwang, Seungone Kim, Yongrae Jo, James Thorne, Juho Kim, and Minjoon Seo. 2023. Flask: Fine-grained language model evaluation based on alignment skill sets. arXiv preprint arXiv:2307.10928.
|
| 313 |
+
Aohan Zeng, Xiao Liu, Zhengxiao Du, Zihan Wang, Hanyu Lai, Ming Ding, Zhuoyi Yang, Yifan Xu, Wendi Zheng, Xiao Xia, et al. 2022. Glm-130b: An open bilingual pre-trained model. arXiv preprint arXiv:2210.02414.
|
| 314 |
+
Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger, and Yoav Artzi. 2020. Bertscore: Evaluating text generation with bert. Preprint, arXiv:1904.09675.
|
| 315 |
+
Ying Zhang and Stephan Vogel. 2004. Measuring confidence intervals for the machine translation evaluation metrics. In Proceedings of the 10th Conference on Theoretical and Methodological Issues in Machine Translation of Natural Languages.
|
| 316 |
+
Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. 2024. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in Neural Information Processing Systems, 36.
|
| 317 |
+
Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P. Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging llm-as-a-judge with mt-bench and chatbot arena. Preprint, arXiv:2306.05685.
|
| 318 |
+
Wanjun Zhong, Ruixiang Cui, Yiduo Guo, Yaobo Liang, Shuai Lu, Yanlin Wang, Amin Saied, Weizhu Chen, and Nan Duan. 2023. Agieval: A human-centric benchmark for evaluating foundation models. arXiv preprint arXiv:2304.06364.
|
| 319 |
+
Lianghui Zhu, Xinggang Wang, and Xinlong Wang. 2023. Judgelm: Fine-tuned large language models are scalable judges. Preprint, arXiv:2310.17631.
|
| 320 |
+
|
| 321 |
+
# A Training Details
|
| 322 |
+
|
| 323 |
+
We employed a default learning rate of 2e-5, and the batch size per device was dynamically adjusted based on the total data volume and the number of machines to maintain consistent optimization steps. The Adam optimizer was utilized.
|
| 324 |
+
|
| 325 |
+
For the scaling law experiments, when $n$ was below 300, we conducted three repetitions and averaged the results to minimize error.
|
| 326 |
+
|
| 327 |
+
For all invoked APIs, we used the default parameters without extensive modifications.
|
| 328 |
+
|
| 329 |
+
# B Data Annotation
|
| 330 |
+
|
| 331 |
+
# B.1 Annotator Qualifications
|
| 332 |
+
|
| 333 |
+
All our annotators are internal team members with at least a Master's degree. We provide additional compensation significantly higher than the standard salary, based on the amount of data annotated.
|
| 334 |
+
|
| 335 |
+
# C Prompt Templates
|
| 336 |
+
|
| 337 |
+
# C.1 AutoPrompt
|
| 338 |
+
|
| 339 |
+
Below, I will provide a <Question>, along with the corresponding <Reference Answer> and <Scoring Rubric>. You need to evaluate the <Output Result> from the <Model Answer> of the <Model to be Assessed>. The evaluation should be divided into two parts: "Scoring Process" and "Final Score." Please note that the scoring range is from 0 to 5 points. You must justify the score you assign based on the <Model Answer>, strictly adhering to the requirements of the <Scoring Rubric> without adding, changing, or imagining any additional criteria.
|
| 340 |
+
|
| 341 |
+
# C.2 Prompt for Set Matching
|
| 342 |
+
|
| 343 |
+
You are a meticulous judge tasked with evaluating whether the "Test Rubric" provided by the user aligns with the "Standard Rubric." The evaluation rules are as follows:
|
| 344 |
+
|
| 345 |
+
- The initial total score is set to zero.
|
| 346 |
+
- For each item in the "Test Rubric":
|
| 347 |
+
|
| 348 |
+
1. If the item matches any item in the "Standard Rubric" exactly, one point is added to the total score.
|
| 349 |
+
|
| 350 |
+
2. If the item in the "Test Rubric" is unrelated to any item in the "Standard Rubric," the total score remains unchanged.
|
| 351 |
+
3. If the item in the "Test Rubric" is the exact opposite of any item in the "Standard Rubric," one point is subtracted from the total score.
|
| 352 |
+
|
| 353 |
+
You need to return the entire scoring process (explaining why points were added or subtracted) along with the final score. The return format should be:
|
| 354 |
+
|
| 355 |
+
{ "Scoring Process": "<Here, provide the scoring process as a string>",
|
| 356 |
+
|
| 357 |
+
"Final Score": "<Here, provide the final score as a mathematical expression, concluding with 'Final Score: <score>' e.g., '3/5=0.6, Final Score: 0.6>'
|
| 358 |
+
|
| 359 |
+
The returned format must be compatible with json.load() to be converted into a dictionary.
|
| 360 |
+
|
| 361 |
+
# C.3 Prosecutor Prompt
|
| 362 |
+
|
| 363 |
+
Please check if the generated answer is correct. The reference answer is: $\{\mathrm{gt}\}$ , and the generated answer is: $\{\mathrm{user}\}$ . Please respond in the following format: $\{\text{"result": True}\}$
|
| 364 |
+
|
| 365 |
+
# C.4 Refinement Prompt
|
| 366 |
+
|
| 367 |
+
Your generated answer is not the standard answer. Please reflect on this and generate a new answer.
|
| 368 |
+
|
| 369 |
+
The generated scoring points and the full score answer are:
|
| 370 |
+
|
| 371 |
+
# D Benchmark
|
| 372 |
+
|
| 373 |
+
# D.1 Benchmark Leaderboard
|
| 374 |
+
|
| 375 |
+
We provide the Benchmark LeaderBoard at the following link: https://github.com/Zhiyuan-Fan/self-adaptive-rubrics
|
| 376 |
+
|
| 377 |
+

|
| 378 |
+
Figure 4: Benchmark multi-level classification system. To maintain conciseness, we have detailed the hierarchy only up to the third tier.
|
| 379 |
+
|
| 380 |
+
# D.2 Benchmark Statistics
|
| 381 |
+
|
| 382 |
+
We provide the Benchmark statistics at the following link: https://github.com/Zhiyuan-Fan/self-adaptive-rubrics
|
| 383 |
+
|
| 384 |
+
# E Additional Experiments
|
| 385 |
+
|
| 386 |
+
# E.1 Automatic Rubric Generation
|
| 387 |
+
|
| 388 |
+
In this section, we conduct experiments on automatic rubric generation and analyze the results to explore its potential. Specifically, we compare the following three experimental setups: 1) using GPT-4 to automatically generate rubrics; 2) training an automatic rubric generation model with human-labeled rubrics under the SFT paradigm; and 3) aligning the model output with human preferences using DPO.
|
| 389 |
+
|
| 390 |
+
# E.2 Error Propagating
|
| 391 |
+
|
| 392 |
+
When using rubric generation models to automatically create self-adaptive rubrics, a potential issue is that if the generated rubric is inconsistent with the human-provided rubric, errors can accumulate in the scoring pipeline, leading to a larger deviation in the final score. By incorporating a filtering strategy, the overall performance will improve.
|
| 393 |
+
|
| 394 |
+
# E.3 Joint Training vs. Expert Training
|
| 395 |
+
|
| 396 |
+
We also explored whether to combine data from different categories for joint training when training the evaluator LM or rubric generation model, or to train a separate expert model for each category individually. We found that using joint training can achieve better results than expert training.
|
| 397 |
+
|
| 398 |
+

|
| 399 |
+
Figure 5: An illustrative example of the format used in self-adaptive rubrics.
|
| 400 |
+
|
| 401 |
+
<table><tr><td>Model</td><td>Type</td><td>ACC</td><td>ACCT</td><td>Pearsonr</td><td>GSB</td></tr><tr><td>GPT-4</td><td>w self-adaptive rubrics</td><td>0.3241</td><td>0.7025</td><td>0.7283</td><td>0.9211</td></tr><tr><td>GPT-4</td><td>wo</td><td>0.2500</td><td>0.5035</td><td>0.4863</td><td>0.8684</td></tr><tr><td>GPT-4-turbo</td><td>w</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>GPT-4-turbo</td><td>wo</td><td>0.1995</td><td>0.5473</td><td>0.5326</td><td>0.9000</td></tr><tr><td>GPT-3.5</td><td>w</td><td>0.2121</td><td>0.5569</td><td>0.3888</td><td>0.8947</td></tr><tr><td>GPT-3.5</td><td>wo</td><td>0.1677</td><td>0.3872</td><td>0.1286</td><td>0.5158</td></tr></table>
|
| 402 |
+
|
| 403 |
+
Table 4: Ablation Study
|
| 404 |
+
|
| 405 |
+
<table><tr><td>Type</td><td>OOD</td><td>ID</td><td>Random</td></tr><tr><td>GPT4-turbo</td><td>0.399</td><td>0.488</td><td>0.417</td></tr><tr><td>GPT4</td><td>0.602</td><td>0.613</td><td>0.613</td></tr><tr><td>xdg-turbo</td><td>0.606</td><td>0.607</td><td>0.603</td></tr></table>
|
| 406 |
+
|
| 407 |
+
Table 5: Rubric Generation Results.
|
| 408 |
+
|
| 409 |
+
<table><tr><td>Type</td><td>GSB</td><td>ACC</td><td>ACCt</td><td>pearsonr</td></tr><tr><td>GPT-4</td><td>0.921</td><td>0.324</td><td>0.702</td><td>0.728</td></tr><tr><td>GPT-3.5</td><td>0.894</td><td>0.212</td><td>0.556</td><td>0.388</td></tr></table>
|
| 410 |
+
|
| 411 |
+
Table 6: General Rubrics with Ground Truth.
|
| 412 |
+
|
| 413 |
+
<table><tr><td>Type</td><td>GSB</td><td>ACC</td><td>ACCt</td><td>pearsonr</td></tr><tr><td>GPT-4-turbo</td><td>0.9</td><td>0.199</td><td>0.547</td><td>0.532</td></tr><tr><td>GPT-4</td><td>0.868</td><td>0.250</td><td>0.503</td><td>0.486</td></tr><tr><td>GPT-3.5</td><td>0.515</td><td>0.167</td><td>0.387</td><td>0.128</td></tr></table>
|
| 414 |
+
|
| 415 |
+
Table 7: General Rubrics without Groud Truth.
|
| 416 |
+
|
| 417 |
+

|
| 418 |
+
Figure 6: Distribution change of the evaluator LM format data after applying the Human-AI Consistency strategy.
|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
|
| 422 |
+
```txt
|
| 423 |
+
Algorithm 1 Self-Adaptive Rubrics Generation and Validation
|
| 424 |
+
Require: $Q$ ▷ Given question
|
| 425 |
+
Require: $GT$ ▷ Ground truth answer
|
| 426 |
+
Require: $n$ ▷ Maximum iterations
|
| 427 |
+
1: $i \gets 0$
|
| 428 |
+
2: accepted ← False
|
| 429 |
+
3: while $i < n$ and ¬accepted do
|
| 430 |
+
4: $R, IA \gets \text{GPT-4}(Q)$ ▷ Generate rubrics and ideal answer
|
| 431 |
+
5: if $PA(IA, GT)$ then ▷ Prosecutor agent checks ideal answer
|
| 432 |
+
6: accepted ← True
|
| 433 |
+
7: else
|
| 434 |
+
8: Inform GPT-4 of incorrect IA
|
| 435 |
+
9: $i \gets i + 1$
|
| 436 |
+
10: end if
|
| 437 |
+
11: end while
|
| 438 |
+
12: if accepted then
|
| 439 |
+
13: return R
|
| 440 |
+
14: else
|
| 441 |
+
15: return Failure in $n$ iterations
|
| 442 |
+
16: end if
|
| 443 |
+
```
|
2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aaf3d0ddd23b8adcfa0db934d86b98a0071825ec372db6d2113d7598e66e73cf
|
| 3 |
+
size 725727
|
2024/SedarEval_ Automated Evaluation using Self-Adaptive Rubrics/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/081b7730-6494-4c1e-8ba3-d9c947e8be2f_content_list.json
ADDED
|
@@ -0,0 +1,1486 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "See Detail Say Clear: Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
166,
|
| 8 |
+
85,
|
| 9 |
+
831,
|
| 10 |
+
126
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Chengxin Zheng $^{1}$ , Junzhong Ji $^{1}$ , Yanzhao Shi $^{1}$ , Xiaodan Zhang $^{1,*}$ , Liangqiong Qu $^{2}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
144,
|
| 19 |
+
136,
|
| 20 |
+
855,
|
| 21 |
+
156
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{1}$ College of Computer Science, Beijing University of Technology, Beijing, China \n $^{2}$ Department of Statistics and Actuarial Science, School of Computing and Data Science, The University of Hong Kong, Hong Kong, China",
|
| 28 |
+
"bbox": [
|
| 29 |
+
137,
|
| 30 |
+
170,
|
| 31 |
+
858,
|
| 32 |
+
221
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Correspondence: zhangxiaodan@bjut.edu.cn",
|
| 39 |
+
"bbox": [
|
| 40 |
+
356,
|
| 41 |
+
223,
|
| 42 |
+
640,
|
| 43 |
+
236
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
260,
|
| 54 |
+
341,
|
| 55 |
+
275
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Brain CT report generation is significant to aid physicians in diagnosing cranial diseases. Recent studies concentrate on handling the consistency between visual and textual pathological features to improve the coherence of report. However, there exist some challenges: 1) Redundant visual representing: Massive irrelevant areas in 3D scans distract models from representing salient visual contexts. 2) Shifted semantic representing: Limited medical corpus causes difficulties for models to transfer the learned textual representations to generative layers. This study introduces a Pathological Clue-driven Representation Learning (PCRL) model to build cross-modal representations based on pathological clues and naturally adapt them for accurate report generation. Specifically, we construct pathological clues from perspectives of segmented regions, pathological entities, and report themes, to fully grasp visual pathological patterns and learn cross-modal feature representations. To adapt the representations for the text generation task, we bridge the gap between representation learning and report generation by using a unified large language model (LLM) with task-tailored instructions. These crafted instructions enable the LLM to be flexibly fine-tuned across tasks and smoothly transfer the semantic representation for report generation. Experiments demonstrate that our method outperforms previous methods and achieves SoTA performance. Our code is available at https://github.com/Chauncey-Jheng/PCRL-MRG.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
141,
|
| 64 |
+
285,
|
| 65 |
+
460,
|
| 66 |
+
770
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
114,
|
| 76 |
+
778,
|
| 77 |
+
260,
|
| 78 |
+
794
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Brain computed tomography (CT) imaging is essential for diagnosing various cranial diseases, including cerebral infarction and hemorrhage. However, it is time-consuming and error-prone for radiologists to manually interpret medical findings from these scans and write reports. Automated report",
|
| 85 |
+
"bbox": [
|
| 86 |
+
112,
|
| 87 |
+
804,
|
| 88 |
+
490,
|
| 89 |
+
901
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/a6944c8749122044e7cba7df9684a4584674e72bec357b874b4aa436abf20f15.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Comparison of different cross-modal alignment paradigms. (a) Previous way: The origin CT images contain extraneous information unrelated to diagnosis, and separate training for two semantic tasks makes it challenging to find a shared optimal solution, resulting in inadequate cross-modal alignment. (b) Our way: The visual representation is refined to concentrate on pathological clues, and employ joint training with task-tailored instructions via unified LLM to find a transferable representation, leading to better adaption for report generation."
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
515,
|
| 102 |
+
259,
|
| 103 |
+
882,
|
| 104 |
+
495
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "generation systems are designed to boost efficiency, reduce the workload for radiologists, and optimize resources in busy clinical scenarios.",
|
| 111 |
+
"bbox": [
|
| 112 |
+
507,
|
| 113 |
+
707,
|
| 114 |
+
882,
|
| 115 |
+
755
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "With the advancement of deep neural networks and their successful application in image captioning tasks (Vinyals et al., 2015; Xu et al., 2015), medical report generation (MRG) has gained more attention. Unlike the short sentences of traditional image captioning, MRG aims to generate lengthy and precise reports. To achieve this, various cross-modal alignment methods are required to ensure the consistency between visual and textual information (Shi et al., 2023), including attention mech-",
|
| 122 |
+
"bbox": [
|
| 123 |
+
507,
|
| 124 |
+
760,
|
| 125 |
+
884,
|
| 126 |
+
921
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 0
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "page_footnote",
|
| 132 |
+
"text": "*Corresponding Author",
|
| 133 |
+
"bbox": [
|
| 134 |
+
139,
|
| 135 |
+
906,
|
| 136 |
+
289,
|
| 137 |
+
920
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 0
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "page_number",
|
| 143 |
+
"text": "16542",
|
| 144 |
+
"bbox": [
|
| 145 |
+
475,
|
| 146 |
+
927,
|
| 147 |
+
524,
|
| 148 |
+
940
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 0
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "footer",
|
| 154 |
+
"text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 16542-16552 November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 155 |
+
"bbox": [
|
| 156 |
+
208,
|
| 157 |
+
945,
|
| 158 |
+
786,
|
| 159 |
+
972
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 0
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "anisms (Jing et al., 2018; Wang et al., 2018), memory mechanisms (Chen et al., 2020, 2021), and knowledge graphs (Li et al., 2019, 2023b).",
|
| 166 |
+
"bbox": [
|
| 167 |
+
112,
|
| 168 |
+
84,
|
| 169 |
+
485,
|
| 170 |
+
131
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Recently, learning representations via visual-textual contrastive learning (Shi et al., 2023, 2024) or using pre-trained large language models (LLMs) (Thawakar et al., 2023) to strength representations are also proven to be effective.",
|
| 177 |
+
"bbox": [
|
| 178 |
+
112,
|
| 179 |
+
133,
|
| 180 |
+
487,
|
| 181 |
+
212
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "However, as shown in Figure 1(a), learning cross-modal correspondences is still challenging in current methods due to the following concerns: 1) Redundant visual representing. Different from chest X-ray data, 3D brain CT scans contain extensive redundant information, e.g. background and insignificant areas. With the lack of human-crafted boxes to locate pathology regions, models struggle to capture and interpret the visual pathology patterns for generating reports. Although current advanced models use semantic prior knowledge or medical prompts (Jin et al., 2024; Bu et al., 2024) to automatically learn the salient visual areas, this may introduce noise and unstable representation and cause severe hallucinations in generated texts. 2) Shifted semantic representing. Compared to natural corpus, limited brain CT report corpus is insufficient to transfer the pathological semantic representations learned by represent learning layers (e.g., contrastive learning layer) to the language model (Huh et al., 2024), since the direct weight-sharing (Shi et al., 2023, 2024) is prone to degrade the coherence of generated diagnostic sentences. Thus, how to uniformly represent cross-modal pathological features and adapt them to report generation still remains an open question.",
|
| 188 |
+
"bbox": [
|
| 189 |
+
115,
|
| 190 |
+
214,
|
| 191 |
+
489,
|
| 192 |
+
631
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "In this paper, we propose a Pathological Cluedriven Representation Learning (PCRL) model to seamlessly build cross-modal representations based on diverse pathological clues and transfer them for generating accurate brain CT reports. Specifically, we extract pathological clues from perspectives of segmented regions, pathological entities, and report themes to depict clinical scenarios. Segmented region clues are automatically generated and filtered by given pathology prompts, enabling the visual encoder to grasp visual pathological patterns. Meanwhile, entity and theme clues are respectively extracted by detailed findings and full-text reports, to handle the enriched visual-textual alignment and build cross-modal pathology representations.",
|
| 199 |
+
"bbox": [
|
| 200 |
+
112,
|
| 201 |
+
632,
|
| 202 |
+
487,
|
| 203 |
+
872
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "Besides, to adapt the learned representations for the text generation task, we bridge the gap between representation learning and report generation by",
|
| 210 |
+
"bbox": [
|
| 211 |
+
112,
|
| 212 |
+
873,
|
| 213 |
+
487,
|
| 214 |
+
921
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "employing a unified large language model (LLM) with task-tailored instructions, which has proven to be more effective than conventional decoders by using appropriate tokens to seamlessly connect different tasks (Yu et al., 2023). As shown in Figure 1(b), We craft a representation instruction to prompt the LLM to produce high-level pathological semantic features for cross-modal alignment, and a generation instruction to prompt LLM to generate accurate brain CT reports based on the learned representations.",
|
| 221 |
+
"bbox": [
|
| 222 |
+
507,
|
| 223 |
+
84,
|
| 224 |
+
882,
|
| 225 |
+
259
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "Our main contributions can be summarized as:",
|
| 232 |
+
"bbox": [
|
| 233 |
+
527,
|
| 234 |
+
261,
|
| 235 |
+
873,
|
| 236 |
+
275
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "list",
|
| 242 |
+
"sub_type": "text",
|
| 243 |
+
"list_items": [
|
| 244 |
+
"1. We propose a novel framework to seamlessly learn visual-textual representations from perspectives of diverse pathological clues and leverage them for enhancing the quality of generated brain CT reports.",
|
| 245 |
+
"2. We, for the first time, design a new paradigm to effectively transfer the learned pathological representations for report generation using a unified LLM prompted by task-tailored instructions.",
|
| 246 |
+
"3. We validate the model capabilities on the open-source CTRG-Brain dataset. Experimental results show that our model achieves remarkable performance in generating brain CT reports."
|
| 247 |
+
],
|
| 248 |
+
"bbox": [
|
| 249 |
+
524,
|
| 250 |
+
286,
|
| 251 |
+
884,
|
| 252 |
+
532
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "2 Related Work",
|
| 259 |
+
"text_level": 1,
|
| 260 |
+
"bbox": [
|
| 261 |
+
509,
|
| 262 |
+
552,
|
| 263 |
+
663,
|
| 264 |
+
568
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 1
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "2.1 Medical Report Generation",
|
| 271 |
+
"text_level": 1,
|
| 272 |
+
"bbox": [
|
| 273 |
+
507,
|
| 274 |
+
577,
|
| 275 |
+
769,
|
| 276 |
+
593
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 1
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "The advancements in image captioning techniques have spurred the development of a range of radiology report generation methods (Jing et al., 2018; Chen et al., 2020, 2021; Li et al., 2019; Shi et al., 2023; Zhang et al., 2023; Li et al., 2023b; Shi et al., 2024; Shen et al., 2024). To exploit the more effective parts of medical images, Jing et al. (2018) first propose a co-attention mechanism to associate images with disease tags and improve the accuracy of generated reports; Chen et al. (2021) design a cross-modal memory matrix to learn high-level vision-language correspondence for enhancing report generation; Liu et al. (2021c) used contrastive attention to captured the difference of abnormal and normal samples. To address the semantic bias of limited medical report corpus, Jing et al. (2020) exploited the textual structure information of reports, while Liu et al. (2021a); Shen et al. (2024) used curriculum learning to alleviate the data bias of limited medical data corpus. The retrieval-based",
|
| 283 |
+
"bbox": [
|
| 284 |
+
507,
|
| 285 |
+
599,
|
| 286 |
+
882,
|
| 287 |
+
920
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 1
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "page_number",
|
| 293 |
+
"text": "16543",
|
| 294 |
+
"bbox": [
|
| 295 |
+
477,
|
| 296 |
+
927,
|
| 297 |
+
524,
|
| 298 |
+
940
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 1
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "image",
|
| 304 |
+
"img_path": "images/161384d732f8271cc544bc4dd7d693aa996edc8b2faa05cd3aa2e30ecce89dc8.jpg",
|
| 305 |
+
"image_caption": [
|
| 306 |
+
"Figure 2: The overall framework of our method, which mainly consists of an image encoder and a text decoder for brain CT report generation (left). The pathological clue-driven representation learning (right) is proposed to guide the encoder and decoder for more fine-grained representation by three alignment modules: (a) segmentation clue alignment (SCA), (b) entity clue alignment (ECA), and (c) theme clue alignment (TCA)."
|
| 307 |
+
],
|
| 308 |
+
"image_footnote": [],
|
| 309 |
+
"bbox": [
|
| 310 |
+
137,
|
| 311 |
+
86,
|
| 312 |
+
860,
|
| 313 |
+
303
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "(Li et al., 2018; Liu et al., 2021b) and prior expert knowledge based methods (Zhang et al., 2020; Yang et al., 2022; You et al., 2021) also shows effectiveness to alleviate the inaccuracy of generated report caused by limited training data. To build more stable relations between multi-modal features, contrastive learning (Radford et al., 2021) acts as an unsupervised method, and is proven to be effective for learning cross-modal representations for MRG tasks (Li et al., 2023b; Shi et al., 2024).",
|
| 320 |
+
"bbox": [
|
| 321 |
+
110,
|
| 322 |
+
400,
|
| 323 |
+
487,
|
| 324 |
+
561
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "Recently, LLM-based MRG methods (Jin et al., 2024; Chen et al., 2024) harness the semantic processing capabilities of LLMs to enhance the coherence of generated medical reports. However, the current bottleneck of LLM is to interpret sparse visual patterns of pathologies, which causes severe hallucinations and degrades the trustworthiness of clinical diagnosis. To solve this issue, we propose to augment LLM with representation learning guided by pathology clues. By aligning cross-modal pathological features and transferring the learned representations to the LLM-based report decoder, our model can generate accurate and coherent brain CT reports.",
|
| 331 |
+
"bbox": [
|
| 332 |
+
112,
|
| 333 |
+
563,
|
| 334 |
+
489,
|
| 335 |
+
788
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 2
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "2.2 Pre-trained Large Model",
|
| 342 |
+
"text_level": 1,
|
| 343 |
+
"bbox": [
|
| 344 |
+
112,
|
| 345 |
+
802,
|
| 346 |
+
357,
|
| 347 |
+
816
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "In recent years, pre-trained large models have achieved significant breakthroughs in both natural language processing (NLP) and computer vision (CV). These models leverage extensive datasets for pre-training, allowing them to perform exceptionally well in downstream tasks. The Segment",
|
| 354 |
+
"bbox": [
|
| 355 |
+
112,
|
| 356 |
+
825,
|
| 357 |
+
487,
|
| 358 |
+
921
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "Anything Model (SAM) Kirillov et al. (2023) is an innovative large vision model in the field of image segmentation. SAM's strengths lie in its extensive training on a large-scale dataset, enhancing its versatility and enabling real-time generation of high-quality segmentation masks across diverse tasks and image distributions. MedCLIP Wang et al. (2022b) is a notable visual-language model in the medical domain. Pre-trained on decoupling medical images and texts, MedCLIP has shown SoTA performance on zero-shot image-text retrieval. LLaMA3 is the next generation of state-of-the-art open-source LLM from Meta (2024). Trained on over 15 trillion tokens, seven times the data of its predecessor, LLaMA3 incorporates extensive multilingual and high-quality datasets. To improve the use of large models for assisting in medical report generation, we adopt SAM for region segmentation, MedCLIP for feature representation of pathological entities, and LLaMA for joint training to achieve fine-grained cross-modal alignment and improve medical report generation.",
|
| 365 |
+
"bbox": [
|
| 366 |
+
507,
|
| 367 |
+
400,
|
| 368 |
+
884,
|
| 369 |
+
755
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "3 Methodology",
|
| 376 |
+
"text_level": 1,
|
| 377 |
+
"bbox": [
|
| 378 |
+
509,
|
| 379 |
+
776,
|
| 380 |
+
658,
|
| 381 |
+
793
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 2
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "As illustrated in Figure 2, our framework consists of two branches: the brain CT Report Generation (RG) on the left and the Pathological Clue-driven Representation Learning (PCRL) on the right. The interaction between these branches is facilitated through the shared use of a visual encoder and a language model.",
|
| 388 |
+
"bbox": [
|
| 389 |
+
507,
|
| 390 |
+
808,
|
| 391 |
+
882,
|
| 392 |
+
921
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 2
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "page_number",
|
| 398 |
+
"text": "16544",
|
| 399 |
+
"bbox": [
|
| 400 |
+
477,
|
| 401 |
+
927,
|
| 402 |
+
524,
|
| 403 |
+
940
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 2
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "3.1 Brain CT Report Generation",
|
| 410 |
+
"text_level": 1,
|
| 411 |
+
"bbox": [
|
| 412 |
+
112,
|
| 413 |
+
84,
|
| 414 |
+
389,
|
| 415 |
+
99
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "In this branch, the input comprises a set of CT scan images $I = \\{i_1,\\dots ,i_N\\}$ , where $N$ represents the number of CT images in each sample. The output is the corresponding brain CT findings report $Y = \\{y_{1},\\ldots ,y_{M}\\}$ , with $M$ representing the number of tokens. We adopt the encoder-decoder architecture for report generation. First, we use ResNet101 (He et al., 2016) to extract grid features $G = \\{g_{1},\\dots ,g_{N}\\} \\in \\mathbf{R}^{N\\times H\\times d}(N = 24,H = 196,d = 2048)$ from $I$ . Then, we embed these features using a visual encoder to obtain visual features $V$ . These visual features $V$ are passed through a multi-modal projector to obtain the visual embedding tokens $H_{v}\\in \\mathbf{R}^{N\\times d_{w}}(d_{w} = 4096)$ which are aligned with the word embedding space of a large language model. Finally, these tokens are concatenated with the instruction token $H_{q}$ and fed into the large language model. We train the parameters $\\theta$ by minimizing the cross-entropy loss, which can be represented by the following formula:",
|
| 422 |
+
"bbox": [
|
| 423 |
+
112,
|
| 424 |
+
105,
|
| 425 |
+
489,
|
| 426 |
+
428
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 3
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "equation",
|
| 432 |
+
"text": "\n$$\n\\mathcal {L} _ {g} = - \\sum_ {t = 1} ^ {M} \\log P \\left(y _ {t} \\mid y _ {1: t - 1}, H _ {v}, H _ {q}; \\theta\\right) \\tag {1}\n$$\n",
|
| 433 |
+
"text_format": "latex",
|
| 434 |
+
"bbox": [
|
| 435 |
+
136,
|
| 436 |
+
438,
|
| 437 |
+
487,
|
| 438 |
+
481
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "where, $P(y_{t}|*)$ denotes the probability conditioned on $H_{v}, H_{q}$ , and the embeddings of previous words $y_{1}, y_{2}, \\dots, y_{t-1}$ .",
|
| 445 |
+
"bbox": [
|
| 446 |
+
112,
|
| 447 |
+
492,
|
| 448 |
+
487,
|
| 449 |
+
542
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 3
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "3.2 Pathological Clue-driven Representation Learning",
|
| 456 |
+
"text_level": 1,
|
| 457 |
+
"bbox": [
|
| 458 |
+
112,
|
| 459 |
+
551,
|
| 460 |
+
478,
|
| 461 |
+
583
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "Learning fine-grained visual-text representations is critical for generating accurate reports (Shi et al., 2023). This branch mainly builds enriched representations by conducting multi-modal feature alignment based on pathological clues, including segmentation clue alignment (SCA), entity clues alignment (ECA), and theme clues alignment (TCA).",
|
| 468 |
+
"bbox": [
|
| 469 |
+
112,
|
| 470 |
+
588,
|
| 471 |
+
489,
|
| 472 |
+
701
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "3.2.1 Preparation of Pathological Clues",
|
| 479 |
+
"text_level": 1,
|
| 480 |
+
"bbox": [
|
| 481 |
+
112,
|
| 482 |
+
709,
|
| 483 |
+
438,
|
| 484 |
+
725
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 3
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "Pathological clues are collected in three perspectives for feature alignment.",
|
| 491 |
+
"bbox": [
|
| 492 |
+
112,
|
| 493 |
+
728,
|
| 494 |
+
489,
|
| 495 |
+
760
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "**Pathology Theme Clues:** Learning the structure of professional brain CT reports is essential for MRG models to satisfy human standards and produce reliable reports. To this end, we propose to build theme clues by simply using the full-text report and whole images as global signals, which can be useful to enhance the overall quality of medical reports by TCA (illustrated in 3.2.4).",
|
| 502 |
+
"bbox": [
|
| 503 |
+
112,
|
| 504 |
+
760,
|
| 505 |
+
489,
|
| 506 |
+
888
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 3
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "Pathology Entity Clues: To learn detailed information about pathology entities, we regard each",
|
| 513 |
+
"bbox": [
|
| 514 |
+
112,
|
| 515 |
+
889,
|
| 516 |
+
489,
|
| 517 |
+
921
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 3
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "single finding sentence in the report as an entity clue and extract the related multi-modal features in ECA 3.2.3. The construction of entities $E = \\{e_1,\\dots,e_{N_e}\\}$ (with $N_{e} = 24$ ) is based on expert knowledge and the frequency of words in the training corpus.",
|
| 524 |
+
"bbox": [
|
| 525 |
+
507,
|
| 526 |
+
84,
|
| 527 |
+
884,
|
| 528 |
+
180
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 3
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "Segment Clues: To enhance visual representations via detailed contour of pathologies, we propose to utilize the pre-trained segmentation model SAM (Kirillov et al., 2023) to generate mask candidates and filter useful masks related to pathology entities. First, we prompt SAM by covering each brain CT image with a grid of points and integrating it into image embeddings through average sampling. In this way, the mask decoder in SAM is prompted to generate a gallery of candidate masks $M_I = \\{m_1, \\dots, m_{N_m}\\}$ . To ensure the quality of masks, we also apply rule-based methods to filter out low-quality and duplicate masks with area size, stability scores, and IoU scores. For each sample consisting of 24 images, we generate a corresponding series of masks and combine them to form the candidate Gallery $= \\{M_{I_1}, \\dots, M_{I_N}\\}$ .",
|
| 535 |
+
"bbox": [
|
| 536 |
+
507,
|
| 537 |
+
181,
|
| 538 |
+
884,
|
| 539 |
+
455
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 3
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "Then, to retrieve valuable masks related to the sample's pathological entities, we propose to use the MedCLIP (Wang et al., 2022b) for text-prompted retrieval. Based on expert knowledge, we divide the 24 images into eight-layer categories, each mapping a specific set of entities (Shi et al., 2024). Conversely, each entity also has its corresponding layers. We extract the existing entities from the sample's report and their corresponding pathological descriptions $D = \\{d_{1},\\dots,d_{N_{d}}\\}$ ( $N_{d}\\leq N_{e}$ ), which serve as the Query. Next, we use the $d$ -th description $Query_{d}$ to search for the most similar matching mask in $Gallery_{d}$ , which is a subset of $Gallery$ , consisting of all visual masks of the layers related to the existing entities. The procedure can be represented as:",
|
| 546 |
+
"bbox": [
|
| 547 |
+
507,
|
| 548 |
+
456,
|
| 549 |
+
882,
|
| 550 |
+
712
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 3
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "equation",
|
| 556 |
+
"text": "\n$$\n\\operatorname {R e t r i e v a l} _ {d} = \\operatorname {C L I P} \\left(\\operatorname {G a l l e r y} _ {d}, \\operatorname {Q u e r y} _ {d}\\right) \\tag {2}\n$$\n",
|
| 557 |
+
"text_format": "latex",
|
| 558 |
+
"bbox": [
|
| 559 |
+
526,
|
| 560 |
+
728,
|
| 561 |
+
882,
|
| 562 |
+
745
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 3
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "where $Retrieval_{d}$ denotes the retrieved masks for SCA 3.2.2.",
|
| 569 |
+
"bbox": [
|
| 570 |
+
507,
|
| 571 |
+
760,
|
| 572 |
+
882,
|
| 573 |
+
791
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 3
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "3.2.2 Segmentation Clue Alignment",
|
| 580 |
+
"text_level": 1,
|
| 581 |
+
"bbox": [
|
| 582 |
+
507,
|
| 583 |
+
804,
|
| 584 |
+
806,
|
| 585 |
+
820
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 3
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "This module aims to learn the fine-grained visual representation based on the extracted segment masks. First, we obtain the visual features $V_{D} = \\{v_{1},\\dots v_{N_{d}}\\}$ corresponding to the images containing the entities using a selector. Then, we input these features into a lightweight segmentation",
|
| 592 |
+
"bbox": [
|
| 593 |
+
507,
|
| 594 |
+
825,
|
| 595 |
+
882,
|
| 596 |
+
921
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 3
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "page_number",
|
| 602 |
+
"text": "16545",
|
| 603 |
+
"bbox": [
|
| 604 |
+
477,
|
| 605 |
+
927,
|
| 606 |
+
524,
|
| 607 |
+
940
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 3
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "head to generate the corresponding foreground entity masks $S_{D} = \\{s_{1},\\dots,s_{N_{d}}\\}$ , which serves as discriminated pathological information. We then align these generated masks with the retrieved segment masks $M_{D} = \\{Retrieval_{1},\\dots,Retrival_{N_{d}}\\}$ to learn detailed patterns. It is important to note that the size of the generated masks $S_{D}$ differs from the size of the retrieved SAM masks $M_{D}$ . To address this, we first resize the SAM masks to match the size of the masks generated by our segmentation head. We finally calculate the following loss for aligning the two types of masks:",
|
| 614 |
+
"bbox": [
|
| 615 |
+
112,
|
| 616 |
+
84,
|
| 617 |
+
489,
|
| 618 |
+
277
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 4
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "equation",
|
| 624 |
+
"text": "\n$$\n\\mathcal {L} _ {s e g} = 1 - \\frac {2 \\sum_ {i = 1} ^ {n} p _ {i} y _ {i}}{\\sum_ {i = 1} ^ {n} p _ {i} ^ {2} + \\sum_ {i = 1} ^ {n} y _ {i} ^ {2}} \\tag {3}\n$$\n",
|
| 625 |
+
"text_format": "latex",
|
| 626 |
+
"bbox": [
|
| 627 |
+
174,
|
| 628 |
+
281,
|
| 629 |
+
487,
|
| 630 |
+
317
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "where $y_{i}$ is the pixel value of retrieved SAM masks and $p_i$ is the predicted pixel value.",
|
| 637 |
+
"bbox": [
|
| 638 |
+
112,
|
| 639 |
+
321,
|
| 640 |
+
485,
|
| 641 |
+
351
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 4
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "In this way, the visual encoder can be effectively learned to focus on the areas of pathologies while reducing the influence of irrelevant visual features.",
|
| 648 |
+
"bbox": [
|
| 649 |
+
112,
|
| 650 |
+
353,
|
| 651 |
+
487,
|
| 652 |
+
401
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 4
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "3.2.3 Entity Clue Alignment",
|
| 659 |
+
"text_level": 1,
|
| 660 |
+
"bbox": [
|
| 661 |
+
112,
|
| 662 |
+
409,
|
| 663 |
+
352,
|
| 664 |
+
425
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 4
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "To learn the cross-modal patterns of pathology entities, we extract visual and textual pathological features based on the entity clues. First, we build a selector to obtain the visual features $V_{D} = \\{v_{1},\\dots v_{N_{d}}\\} (N_{d} < N)$ , which corresponds to significant CT images that exist pathology entities. We then apply global average pooling (GAP) to generalize $V_{D}$ and obtain representations of each significant CT image, denoted as $R_v^e = \\{r_1,\\dots r_{N_d}\\}$ .",
|
| 671 |
+
"bbox": [
|
| 672 |
+
112,
|
| 673 |
+
428,
|
| 674 |
+
489,
|
| 675 |
+
571
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 4
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "Different from previous work (Li et al., 2023b) use an external language model (e.g. SciBert (Beltagy et al., 2019)) to build textual representation for feature alignment, we propose to leverage a unified LLM to generate textual representation via tailored prompts. Inspired by Wang et al. (2023), we crafted a representation instruction \"Summarize the following cranial diagnosis in one word,\" which is denoted as $H_{q_r}$ . This prompt can effectively activate the summarization ability of LLM to generate corresponding text representations for pathological entity description in $D$ . We use the output generated by the final hidden layer of LLM as textual features for cross-modal alignment.",
|
| 682 |
+
"bbox": [
|
| 683 |
+
112,
|
| 684 |
+
573,
|
| 685 |
+
489,
|
| 686 |
+
796
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 4
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "With the carefully extracted visual and textual representations of entities, we map them into the same dimension through an embedding layer. The process can be represented by the following formula:",
|
| 693 |
+
"bbox": [
|
| 694 |
+
112,
|
| 695 |
+
797,
|
| 696 |
+
487,
|
| 697 |
+
876
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 4
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "equation",
|
| 703 |
+
"text": "\n$$\nR _ {v} ^ {e} = \\operatorname {L i n e a r} _ {v} ^ {e} (G A P \\left(V _ {D}\\right)) \\tag {4}\n$$\n",
|
| 704 |
+
"text_format": "latex",
|
| 705 |
+
"bbox": [
|
| 706 |
+
169,
|
| 707 |
+
885,
|
| 708 |
+
487,
|
| 709 |
+
901
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 4
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "equation",
|
| 715 |
+
"text": "\n$$\nR _ {w} ^ {e} = \\operatorname {L i n e a r} _ {t} ^ {e} \\left(L L M \\left(H _ {q _ {r}}, D\\right)\\right) \\tag {5}\n$$\n",
|
| 716 |
+
"text_format": "latex",
|
| 717 |
+
"bbox": [
|
| 718 |
+
166,
|
| 719 |
+
904,
|
| 720 |
+
485,
|
| 721 |
+
922
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 4
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "where $GAP$ denotes the global average pooling, $Linear_v$ represents the visual mapper, and $Linear_t$ represents the textual mapper. We employ the symmetric InfoNCE (van den Oord et al., 2018) loss for visual-textual alignment:",
|
| 728 |
+
"bbox": [
|
| 729 |
+
507,
|
| 730 |
+
84,
|
| 731 |
+
884,
|
| 732 |
+
165
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 4
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "equation",
|
| 738 |
+
"text": "\n$$\n\\begin{array}{l} \\mathcal {L} _ {C L _ {e}} = - \\frac {1}{2} \\left(\\alpha_ {v} \\sum_ {i = 1} ^ {N _ {d}} \\log \\frac {\\exp \\left(\\mathrm {s} _ {v} ^ {e} (i , i)\\right)}{\\sum_ {j = 1 , j \\neq i} ^ {N _ {d}} \\exp \\left(\\mathrm {s} _ {v} ^ {e} (i , j)\\right)} \\right. \\\\ + \\alpha_ {w} \\sum_ {i = 1} ^ {N _ {d}} \\log \\frac {\\exp \\left(\\mathrm {s} _ {w} ^ {e} (i , i)\\right)}{\\sum_ {j = 1 , j \\neq i} ^ {N _ {d}} \\exp \\left(\\mathrm {s} _ {w} ^ {e} (i , j)\\right)} \\Bigg) \\tag {6} \\\\ \\end{array}\n$$\n",
|
| 739 |
+
"text_format": "latex",
|
| 740 |
+
"bbox": [
|
| 741 |
+
509,
|
| 742 |
+
183,
|
| 743 |
+
880,
|
| 744 |
+
288
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 4
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "where $s_v^e (i,j) = \\frac{\\sin(R_{v_i}^e,R_{w_j}^e)}{\\tau}$ and $s_w^e (i,j) = \\frac{\\sin(R_{w_i}^e,R_{v_j}^e)}{\\tau}$ denote the similarity between the visual representation $R_{v}^{e}$ and the textual representation $R_{w}^{e}$ , $\\tau$ is a temperature parameter. $\\alpha_{v}$ and $\\alpha_{w}$ are hyperparameters to balance the contrastive learning.",
|
| 751 |
+
"bbox": [
|
| 752 |
+
507,
|
| 753 |
+
294,
|
| 754 |
+
882,
|
| 755 |
+
390
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 4
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "By aligning multi-modal entity clues, the model can grasp fine-grained visual-text representations to generate accurate diagnostic words.",
|
| 762 |
+
"bbox": [
|
| 763 |
+
507,
|
| 764 |
+
392,
|
| 765 |
+
880,
|
| 766 |
+
439
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 4
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "3.2.4 Theme Clue Alignment",
|
| 773 |
+
"text_level": 1,
|
| 774 |
+
"bbox": [
|
| 775 |
+
507,
|
| 776 |
+
448,
|
| 777 |
+
752,
|
| 778 |
+
463
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 4
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "Theme clue alignment aims to equip the model with comprehensive skills to generate accurate style and structure of reports, thereby enhancing clinical reliability. For global visual features, we use one-dimensional global max pooling (GMP) to represent the entire sample visually, denoted as $R_{w}^{t}$ . For the overall report of the sample, we generate textual representation $R_{w}^{t}$ by prompting LLM with the same representation instruction (see Section 3.2.3). This process can be represented as:",
|
| 785 |
+
"bbox": [
|
| 786 |
+
505,
|
| 787 |
+
466,
|
| 788 |
+
882,
|
| 789 |
+
626
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 4
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "equation",
|
| 795 |
+
"text": "\n$$\nR _ {v} ^ {t} = \\operatorname {L i n e a r} _ {v} ^ {t} (G M P (V)) \\tag {7}\n$$\n",
|
| 796 |
+
"text_format": "latex",
|
| 797 |
+
"bbox": [
|
| 798 |
+
566,
|
| 799 |
+
632,
|
| 800 |
+
880,
|
| 801 |
+
650
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 4
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "equation",
|
| 807 |
+
"text": "\n$$\nR _ {w} ^ {t} = \\operatorname {L i n e a r} _ {t} ^ {t} \\left(L L M \\left(H _ {q _ {s}}, Y\\right)\\right) \\tag {8}\n$$\n",
|
| 808 |
+
"text_format": "latex",
|
| 809 |
+
"bbox": [
|
| 810 |
+
564,
|
| 811 |
+
652,
|
| 812 |
+
880,
|
| 813 |
+
670
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 4
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Similar to ECA, the loss of TCA can be formulated as:",
|
| 820 |
+
"bbox": [
|
| 821 |
+
507,
|
| 822 |
+
676,
|
| 823 |
+
880,
|
| 824 |
+
705
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 4
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "equation",
|
| 830 |
+
"text": "\n$$\n\\begin{array}{l} \\mathcal {L} _ {C L _ {t}} = - \\frac {1}{2} \\left(\\alpha_ {v} \\sum_ {i = 1} ^ {N _ {b}} \\log \\frac {\\exp (\\mathrm {s} _ {v} ^ {t} (i , i))}{\\sum_ {j = 1 , j \\neq i} ^ {N _ {b}} \\exp (\\mathrm {s} _ {v} ^ {t} (i , j))}\\right) \\\\ + \\alpha_ {w} \\sum_ {i = 1} ^ {N _ {b}} \\log \\frac {\\exp \\left(\\mathrm {s} _ {w} ^ {t} (i , i)\\right)}{\\sum_ {j = 1 , j \\neq i} ^ {N _ {b}} \\exp \\left(\\mathrm {s} _ {w} ^ {t} (i , j)\\right)} \\tag {9} \\\\ \\end{array}\n$$\n",
|
| 831 |
+
"text_format": "latex",
|
| 832 |
+
"bbox": [
|
| 833 |
+
509,
|
| 834 |
+
711,
|
| 835 |
+
880,
|
| 836 |
+
816
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 4
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "where $s_v^t (i,j) = \\sin (R_{v_i}^t,R_{w_j}^t) / \\tau$ and $s_w^t (i,j) =$ $\\sin (R_{w_i}^t,R_{v_j}^t) / \\tau$ denote the similarity between the visual representation $R_{v}^{e}$ and the textual representation $R_w^e$ , $\\tau$ is a temperature parameter, $N_{b}$ is the batch size. Shared with ECA, $\\alpha_{v}$ and $\\alpha_{w}$ are set to balance the feature alignment.",
|
| 843 |
+
"bbox": [
|
| 844 |
+
507,
|
| 845 |
+
822,
|
| 846 |
+
882,
|
| 847 |
+
921
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 4
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "page_number",
|
| 853 |
+
"text": "16546",
|
| 854 |
+
"bbox": [
|
| 855 |
+
477,
|
| 856 |
+
928,
|
| 857 |
+
524,
|
| 858 |
+
940
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 4
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "table",
|
| 864 |
+
"img_path": "images/c426badad0e5b81b6fa3b1318f504f5b95288b66aa4ff0a9f079464eb2279d6d.jpg",
|
| 865 |
+
"table_caption": [],
|
| 866 |
+
"table_footnote": [],
|
| 867 |
+
"table_body": "<table><tr><td>Methods</td><td>Decoder</td><td>B1</td><td>B2</td><td>B3</td><td>B4</td><td>M</td><td>RG</td><td>C</td><td>F1</td></tr><tr><td>HRNN(Krause et al., 2017)†</td><td>LSTM</td><td>42.3</td><td>28.3</td><td>21.2</td><td>17.1</td><td>27.2</td><td>39.3</td><td>20.9</td><td>70.2</td></tr><tr><td>Up-Down(Anderson et al., 2018)†</td><td>LSTM</td><td>45.8</td><td>34.8</td><td>28.5</td><td>24.4</td><td>31.6</td><td>42.5</td><td>27.3</td><td>70.2</td></tr><tr><td>WCL(Yan et al., 2021)†</td><td>LSTM</td><td>49.5</td><td>36.5</td><td>29.4</td><td>25.1</td><td>31.3</td><td>42.8</td><td>33.3</td><td>64.5</td></tr><tr><td>R2Gen-CMN(Chen et al., 2021)†</td><td>Transformer</td><td>49.1</td><td>40.0</td><td>34.4</td><td>30.1</td><td>29.9</td><td>48.6</td><td>84.2</td><td>69.8</td></tr><tr><td>XProNet(Wang et al., 2022a)†</td><td>Transformer</td><td>50.6</td><td>41.3</td><td>34.4</td><td>29.1</td><td>31.5</td><td>51.7</td><td>83.3</td><td>70.1</td></tr><tr><td>WGAM(Yang et al., 2021)†</td><td>LSTM</td><td>49.4</td><td>36.7</td><td>29.6</td><td>25.4</td><td>32.0</td><td>42.4</td><td>31.9</td><td>68.9</td></tr><tr><td>PGCA(Shi et al., 2023)†</td><td>LSTM</td><td>50.2</td><td>37.8</td><td>30.7</td><td>26.5</td><td>32.5</td><td>43.0</td><td>34.0</td><td>69.2</td></tr><tr><td>WGAM-HI(Zhang et al., 2023)†</td><td>LSTM</td><td>50.4</td><td>37.6</td><td>30.5</td><td>26.1</td><td>31.4</td><td>43.8</td><td>33.2</td><td>67.4</td></tr><tr><td>LLaVA-med(Li et al., 2023a)†</td><td>LLaMA3-8B</td><td>50.0</td><td>39.3</td><td>32.0</td><td>26.3</td><td>31.4</td><td>46.7</td><td>38.6</td><td>64.3</td></tr><tr><td>HILT(Liu et al., 2024)†</td><td>LLaMA3-8B</td><td>50.7</td><td>39.9</td><td>33.1</td><td>27.9</td><td>30.8</td><td>46.1</td><td>43.7</td><td>68.4</td></tr><tr><td>PromptMRG(Jin et al., 2024)†</td><td>LLaMA3-8B</td><td>48.1</td><td>38.3</td><td>31.6</td><td>26.5</td><td>31.0</td><td>47.4</td><td>50.3</td><td>69.2</td></tr><tr><td>Ours (Jieba tokenizer)</td><td>LLaMA3-8B</td><td>51.5</td><td>42.0</td><td>35.7</td><td>30.9</td><td>31.4</td><td>49.0</td><td>80.0</td><td>70.6</td></tr><tr><td>Ours (LLaMA tokenizer)</td><td>LLaMA3-8B</td><td>62.0</td><td>54.7</td><td>49.4</td><td>45.3</td><td>33.1</td><td>57.7</td><td>96.4</td><td>70.6</td></tr></table>",
|
| 868 |
+
"bbox": [
|
| 869 |
+
127,
|
| 870 |
+
82,
|
| 871 |
+
878,
|
| 872 |
+
307
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 5
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "Table 1: The performance of our PCRL compared with previous state-of-the-art models on the Brain CT report generation dataset CTRG-Brain. The best results are highlighted in bold. $\\dagger$ denotes the re-implementation results.",
|
| 879 |
+
"bbox": [
|
| 880 |
+
112,
|
| 881 |
+
323,
|
| 882 |
+
880,
|
| 883 |
+
354
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 5
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "3.3 Joint Training",
|
| 890 |
+
"text_level": 1,
|
| 891 |
+
"bbox": [
|
| 892 |
+
112,
|
| 893 |
+
378,
|
| 894 |
+
273,
|
| 895 |
+
393
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 5
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "In the training stage, we jointly train the RG branch and the PCRL branch to maximize the utilization of multi-granularity visual-text representations. Instead of using separate modules to learn representation and generate medical reports (Li et al., 2023b), we use a unified LLM to bridge the gap between representation learning and report generation via two task-tailored instructions, i.e., representation instruction and generation instruction. This can transfer the representations learned by the PCRL branch to optimize the RG branch effectively, thereby generating accurate reports.",
|
| 902 |
+
"bbox": [
|
| 903 |
+
112,
|
| 904 |
+
400,
|
| 905 |
+
489,
|
| 906 |
+
593
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 5
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "Our final loss contains the above-mentioned losses, which can be formulated as:",
|
| 913 |
+
"bbox": [
|
| 914 |
+
112,
|
| 915 |
+
595,
|
| 916 |
+
487,
|
| 917 |
+
626
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 5
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "equation",
|
| 923 |
+
"text": "\n$$\n\\mathcal {L} = \\mathcal {L} _ {g} + \\mathcal {L} _ {\\text {s e g}} + \\mathcal {L} _ {C L _ {e}} + \\mathcal {L} _ {C L _ {t}} \\tag {10}\n$$\n",
|
| 924 |
+
"text_format": "latex",
|
| 925 |
+
"bbox": [
|
| 926 |
+
176,
|
| 927 |
+
643,
|
| 928 |
+
487,
|
| 929 |
+
659
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 5
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "4 Experiments",
|
| 936 |
+
"text_level": 1,
|
| 937 |
+
"bbox": [
|
| 938 |
+
112,
|
| 939 |
+
677,
|
| 940 |
+
258,
|
| 941 |
+
694
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 5
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "4.1 Dataset",
|
| 948 |
+
"text_level": 1,
|
| 949 |
+
"bbox": [
|
| 950 |
+
112,
|
| 951 |
+
705,
|
| 952 |
+
220,
|
| 953 |
+
719
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 5
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "We validate the performance of our model using the CTRG-Brain (Tang et al., 2024) dataset. This dataset comprises 6,000 samples, containing a total of 160,336 CT images and 6,000 Chinese medical reports. Following the mainstream division method (Shi et al., 2023; Zhang et al., 2023), we split the dataset into a training set, a validation set, and a test set in a 7:1:2 ratio. For consistent processing, we divide the brain CT image samples into 8 layers based on expert knowledge, with each layer containing 3 continuous CT images, assigning each sample with 24 CT images.",
|
| 960 |
+
"bbox": [
|
| 961 |
+
112,
|
| 962 |
+
728,
|
| 963 |
+
489,
|
| 964 |
+
921
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 5
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "4.2 Evaluation Metrics",
|
| 971 |
+
"text_level": 1,
|
| 972 |
+
"bbox": [
|
| 973 |
+
507,
|
| 974 |
+
378,
|
| 975 |
+
705,
|
| 976 |
+
392
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 5
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "We chose Natural Language Generation (NLG) metrics and Clinical Evaluation (CE) metrics to evaluate our model's performance. NLG metrics include BLEU (Papineni et al., 2002),METEOR (Banerjee and Lavie), ROUGE-L (Lin, 2004), and CIDEr (Vedantam et al., 2015), denoted as B1, B2, B3,B4,M,RG,and C respectively. To measure the pathological accuracy, we use 24 keywords summarized by experienced radiologists to calculate the Clinical Evaluation (CE) metric(Shi et al., 2023; Zhang et al., 2023), i.e., F1 score, which is the harmonic mean of the precision and recall.",
|
| 983 |
+
"bbox": [
|
| 984 |
+
507,
|
| 985 |
+
405,
|
| 986 |
+
884,
|
| 987 |
+
598
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 5
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "4.3 Implementation Details",
|
| 994 |
+
"text_level": 1,
|
| 995 |
+
"bbox": [
|
| 996 |
+
507,
|
| 997 |
+
620,
|
| 998 |
+
741,
|
| 999 |
+
636
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 5
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "We reshape the size of image to $512 \\times 512$ pixels and used a ResNet101 to extract image features, which is pre-trained on the ImageNet dataset and fine-tuned on the CQ500 dataset (Chilamkurthy et al., 2018). For our large language model, we utilize LLaMA3-8B (Meta, 2024), which is quantized to 4-bit, and use the LoRa (Hu et al., 2021) for parameter-efficient fine-tuning. The overall trainable parameter quantity of our model is $229.9\\mathrm{M}$ with $3.4\\mathrm{M}$ parameters in LLM (only $0.04\\%$ ). During training, we use the AdamW optimizer with a learning rate of 1e-4. The batch size is 4, with 1050 training steps per epoch. For testing, we set the temperature coefficient of the large model to 0.6 and the top-p value to 0.9. The model is implemented using PyTorch 2.3.0, and the entire training process is conducted on a single RTX 4090 GPU.",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
507,
|
| 1008 |
+
646,
|
| 1009 |
+
884,
|
| 1010 |
+
921
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 5
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "page_number",
|
| 1016 |
+
"text": "16547",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
477,
|
| 1019 |
+
927,
|
| 1020 |
+
524,
|
| 1021 |
+
940
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 5
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "table",
|
| 1027 |
+
"img_path": "images/34d6436b42c4da7b97f621fff444bf66b3b7236fe3af95bbc27426db04e6ca27.jpg",
|
| 1028 |
+
"table_caption": [],
|
| 1029 |
+
"table_footnote": [],
|
| 1030 |
+
"table_body": "<table><tr><td rowspan=\"2\">Methods</td><td colspan=\"2\">Representation</td><td colspan=\"3\">Module Loss</td><td rowspan=\"2\">B1</td><td rowspan=\"2\">B2</td><td rowspan=\"2\">B3</td><td rowspan=\"2\">B4</td><td rowspan=\"2\">M</td><td rowspan=\"2\">RG</td><td rowspan=\"2\">C</td></tr><tr><td>Visual</td><td>Textual</td><td>LSCA</td><td>LECA</td><td>LTCA</td></tr><tr><td>Baseline</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>49.6</td><td>39.9</td><td>33.4</td><td>28.6</td><td>30.7</td><td>48.4</td><td>50.8</td></tr><tr><td>(a)</td><td>X</td><td>X</td><td>✓</td><td>X</td><td>X</td><td>51.3</td><td>41.0</td><td>34.5</td><td>29.7</td><td>31.2</td><td>47.7</td><td>70.8</td></tr><tr><td>(b)</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>51.3</td><td>41.4</td><td>35.0</td><td>30.1</td><td>31.2</td><td>48.7</td><td>71.3</td></tr><tr><td>(c)</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>X</td><td>51.7</td><td>41.4</td><td>34.6</td><td>29.5</td><td>31.2</td><td>48.0</td><td>72.8</td></tr><tr><td>(d)</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>✓</td><td>48.9</td><td>38.8</td><td>32.2</td><td>27.4</td><td>30.0</td><td>46.3</td><td>58.3</td></tr><tr><td>(e)</td><td>✓</td><td>✓(Bert)</td><td>✓</td><td>✓</td><td>✓</td><td>49.5</td><td>39.0</td><td>31.8</td><td>26.3</td><td>30.4</td><td>45.4</td><td>48.5</td></tr><tr><td>Ours</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>51.5</td><td>42.0</td><td>35.7</td><td>30.9</td><td>31.4</td><td>49.0</td><td>80.0</td></tr></table>",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
127,
|
| 1033 |
+
82,
|
| 1034 |
+
877,
|
| 1035 |
+
227
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 6
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Table 2: Ablation studies of our proposed method. The Baseline model is an encoder-decoder framework without an alignment mechanism. (a), (b), (c), (d) and (e) respectively denote the use of different representations (i.e., visual and textual in ECA and TCA) and module losses.",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
112,
|
| 1044 |
+
236,
|
| 1045 |
+
884,
|
| 1046 |
+
280
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 6
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "4.4 Quantitative Analysis",
|
| 1053 |
+
"text_level": 1,
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
112,
|
| 1056 |
+
305,
|
| 1057 |
+
331,
|
| 1058 |
+
322
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 6
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "We compare the proposed PCRL with some competitive brain CT report generation methods (WGAM (Yang et al., 2021), PGCA (Shi et al., 2023), WGAM-HI(Zhang et al., 2023)). Besides, we also reproduced some SOTA models in image captioning (HRNN (Krause et al., 2017), Up-Down (Anderson et al., 2018)) and chest Xray report generation (WCL (Yan et al., 2021), R2Gen-CMN (Chen et al., 2021), XProNet (Wang et al., 2022a)) for comprehensive comparisons on CTRG-Brain dataset. What's more, for fair comparisons, We also reproduce several related LLM-based methods (LLaVA-Med(Li et al., 2023a), HILT(Liu et al., 2024), PromptMRG(Jin et al., 2024)with the same LLM decoder.",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
112,
|
| 1067 |
+
332,
|
| 1068 |
+
489,
|
| 1069 |
+
575
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 6
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "As shown in Table 1, our method outperforms others across most evaluation metrics. WGAM and WGAM-HI employ weakly-supervised visual attention to extract key visual features, resulting in higher BLEU scores. With contrastive learning for cross-modal alignment, WCL and PGCA can effectively learn relations between CT images and reports, achieving better results. However, due to the lack of training data, the above methods still produce reports that fall short in fluency and readability. Here's a refined version of your sentence: The LLM-based methods (LLaVA-med, HILT, PromptMRG) demonstrate poorer performance compared to traditional transformer-based methods (R2Gen-CMN, XProNet). This suggests that prior knowledge from pretrained large models, without further cross-modal alignment, may lead to hallucinations in report generation.",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
112,
|
| 1078 |
+
579,
|
| 1079 |
+
489,
|
| 1080 |
+
869
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 6
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "Our PCRL achieves fine-grained cross-modal alignment by leveraging a series of pre-trained large models, generating more fluent reports and",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
112,
|
| 1089 |
+
873,
|
| 1090 |
+
489,
|
| 1091 |
+
921
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 6
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "achieves the best performance compared to other methods. It is noteworthy that we tested our method using the Jieba and LLaMA tokenizers respectively to compute NLG scores, with the latter achieving the best performance across all NLG metrics.",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
507,
|
| 1100 |
+
305,
|
| 1101 |
+
884,
|
| 1102 |
+
400
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 6
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "This discrepancy may be due to differences in tokenization methods used during training. While other models employ the traditional Jieba tool for Chinese word tokenization, our PCRL follows more advanced BPE-based subword tokenization. Nevertheless, our model also achieves competitive results in overall metrics.",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
507,
|
| 1111 |
+
401,
|
| 1112 |
+
885,
|
| 1113 |
+
513
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 6
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "4.5 Ablation Study",
|
| 1120 |
+
"text_level": 1,
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
507,
|
| 1123 |
+
525,
|
| 1124 |
+
675,
|
| 1125 |
+
539
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 6
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "To evaluate the effect of each component in PCRL, we have done plenty of ablation studies, as shown in Table 2. Baseline is the standard encoder-decoder (ResNet101-LLaMA3) architecture without alignment. By progressively adding visual or textual representation (visual and textual) and the module losses $(\\mathcal{L}_{SCA},\\mathcal{L}_{ECA}$ and $\\mathcal{L}_{TCA})$ , respectively denoting the incorporation of two modalities of representations and the utilization of three pathological clue-driven alignments (i.e., SCA, ECA, and TCA).",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
507,
|
| 1134 |
+
545,
|
| 1135 |
+
884,
|
| 1136 |
+
721
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 6
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "By comparing (a) with the baseline, we observe that incorporating the segmentation alignment significantly enhances the model's performance. This demonstrates that our SCA method effectively filters out irrelevant information from CT images and extracts crucial pathology-related visual regions. In contrast, with the implementation of ECA, (b) achieves comparable or better performance across all metrics compared to (a). This indicates that fine-grained cross-modal pathological entity alignment can effectively learn strongly correlated visual-text",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
507,
|
| 1145 |
+
722,
|
| 1146 |
+
885,
|
| 1147 |
+
900
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 6
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "page_footnote",
|
| 1153 |
+
"text": "https://github.com/fxsjy/jieba",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
534,
|
| 1156 |
+
906,
|
| 1157 |
+
721,
|
| 1158 |
+
921
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 6
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "page_number",
|
| 1164 |
+
"text": "16548",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
477,
|
| 1167 |
+
927,
|
| 1168 |
+
524,
|
| 1169 |
+
940
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 6
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "table",
|
| 1175 |
+
"img_path": "images/45bdebb06d6c1e987ffd7e26ccf90f172f571581eaebac5c779e9b053deb61c1.jpg",
|
| 1176 |
+
"table_caption": [],
|
| 1177 |
+
"table_footnote": [],
|
| 1178 |
+
"table_body": "<table><tr><td>Ground Truth Sample</td><td>Ground Truth Entities</td><td>Retrieved Masks</td><td>Generated Reports</td><td></td></tr><tr><td>...</td><td>基底节区(basal ganglia):左侧基底节区见小片状低密度影 (Small patchy low-density shadows visible in the left basal ganglia area)</td><td></td><td>双侧大脑半球对称,两侧基底节区见斑点状低密度影,中线结构居中,脑沟、脑池、蛛网膜下腔稍增宽,脑回变小。(Bilateral cerebral hemispheres are symmetrical, with punctate low-density shadows in the basal ganglia on both sides. The midline structure is centered, and the sulcus, cistern, and subarachnoid space are slightly widened, while the gyrus is smaller.)</td><td rowspan=\"3\">Baseline</td></tr><tr><td rowspan=\"3\">双侧大脑半球对称,左侧基底节区见小片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑,脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A small patch of low-density shadow is seen in the left basal ganglia region, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal.)</td><td>脑室(ventricle):各脑室、脑池大小形态正常(The size and shape of all ventricles and cisterns are normal.)</td><td rowspan=\"3\"></td><td>双侧大脑半球对称,右侧丘脑见小片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑、脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A small patch of low-density shadow is seen in the right thalamus, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal. The midline structure is centered. There are no abnormalities in the cerebellum and brainstem below the tentorium.)</td></tr><tr><td>中线(midline structure):中线结构居中 (The midline structure centered)</td><td rowspan=\"2\">双侧大脑半球对称,左侧基底节区见斑片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑、脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A patch of low-density shadow is seen in the left basal ganglia region, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal. The midline structure is centered. There are no abnormalities in the cerebellum and brainstem below the tentorium.)</td></tr><tr><td>脑干(brainstem):幕下小脑,脑干无异常(There are no abnormalities in the cerebellum and brainstem below the tentorium)</td><td>Ours</td></tr></table>",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
117,
|
| 1181 |
+
80,
|
| 1182 |
+
884,
|
| 1183 |
+
292
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 7
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "representations, thus better supporting medical report generation. Besides, (c) combines both SCA and ECA and shows improved performance in the B1 and C metrics, which are highly correlated with keyword frequency. However, it slightly underperforms in the B2, B4 and RG metrics compared to (b), which is more related to overall text style.(d) showed SCA is essential for focusing on entity details and maintaining the thematic style.",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
112,
|
| 1192 |
+
398,
|
| 1193 |
+
487,
|
| 1194 |
+
543
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 7
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Notably, to validate the contribution of joint representation learning, we replace the language model with Bert model for textual representation during alignment in (e). The result indicated that shared representation through joint learning with unified language model can effectively improve the overall quality of the task.",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
112,
|
| 1203 |
+
545,
|
| 1204 |
+
487,
|
| 1205 |
+
657
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 7
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "4.6 Qualitative Analysis",
|
| 1212 |
+
"text_level": 1,
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
112,
|
| 1215 |
+
671,
|
| 1216 |
+
319,
|
| 1217 |
+
688
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 7
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "We visualize the brain CT reports generated by baseline, WGAM-HI (Zhang et al., 2023) and our model in Figure 3. Given the ground truth brain CT sample and entity data, our model generates better brain CT report with the most accurate entity words (e.g. basal ganglia, ventricle, and brainstem) among the competitors, which demonstrates the effectiveness of using diverse medical clues to learn enriched multi-modal representations. It can be also seen that compared with the baseline, the report generated by our model has a better semantic structure, indicating the contribution of employing a unified LLM to transfer useful representations. Besides, we also find that the retrieved entity masks",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
112,
|
| 1226 |
+
696,
|
| 1227 |
+
489,
|
| 1228 |
+
921
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 7
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "image",
|
| 1234 |
+
"img_path": "images/7719a15e36aa57ee5e55575f8b57839495bd7278f8f3dc11df92784ea5e8be81.jpg",
|
| 1235 |
+
"image_caption": [
|
| 1236 |
+
"Figure 3: Visualization of report generation and mask segmentation. Given the ground truth sample and corresponding entities, the retrieved entity masks are listed in the third column. Reports generated by Baseline, WGAM-HI, and our model are listed in the fourth column. Different colors denote the specific entity words and entity masks, respectively. The English translation is given for a better understanding of the original Chinese reports in CTRG-Brain.",
|
| 1237 |
+
"Figure 4: Visualization of the segmentation masks gallery generated by SAM for a single sample."
|
| 1238 |
+
],
|
| 1239 |
+
"image_footnote": [],
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
522,
|
| 1242 |
+
399,
|
| 1243 |
+
868,
|
| 1244 |
+
492
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 7
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "from segmentation masks gallery (see Figure 4) can generally match related entity words at both levels of visual and semantic. For example, the mask of \"midline structure\" and \"brainstem\" matches the empirical scan slice and fine-grained region chosen by experienced radiologists. This guarantees the model to mine accurate visual cranial patterns, therefore generating high-quality reports.",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
505,
|
| 1253 |
+
560,
|
| 1254 |
+
884,
|
| 1255 |
+
689
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 7
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "5 Conclusion",
|
| 1262 |
+
"text_level": 1,
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
507,
|
| 1265 |
+
701,
|
| 1266 |
+
640,
|
| 1267 |
+
715
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 7
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"text": "We propose a novel model to mine pathological clues for enhancing multi-modal representations and seamlessly transfer them into report generation. First, through carefully designed segmentation clue alignment, entity clue alignment, and theme clue alignment, the diverse and precise feature representation can be well-constructed. Second, we transfer the learned representation to boost the brain CT report generation via a unified LLM prompted by task-tailored instructions. Experiments demonstrate the effectiveness of our model in generating pathologically accurate reports.",
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
505,
|
| 1276 |
+
728,
|
| 1277 |
+
884,
|
| 1278 |
+
921
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 7
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "page_number",
|
| 1284 |
+
"text": "16549",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
477,
|
| 1287 |
+
927,
|
| 1288 |
+
524,
|
| 1289 |
+
940
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 7
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "Limitations",
|
| 1296 |
+
"text_level": 1,
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
114,
|
| 1299 |
+
84,
|
| 1300 |
+
220,
|
| 1301 |
+
98
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 8
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "Although the segmentation clues retrieved by MedClip (Wang et al., 2022b) can generally match corresponding pathological entities and help the model neglect redundant visual information, it should be noted that a part of retrieved entity masks may not be precise. This is because MedClip is mainly pretrained by chest X-ray data with limited brain CT samples. Thus, addressing this challenge is imperative for the research community. In the future, we will work on exploring useful approaches. One potential approach is to train a unified text-prompted medical segmentation model towards 3D brain CT scans, which can not only be employed to offer fine-grained visual information for medical report generation but also for other related tasks, e.g. medical VQA.",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
112,
|
| 1310 |
+
109,
|
| 1311 |
+
492,
|
| 1312 |
+
367
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 8
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "References",
|
| 1319 |
+
"text_level": 1,
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
114,
|
| 1322 |
+
394,
|
| 1323 |
+
213,
|
| 1324 |
+
409
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 8
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "list",
|
| 1330 |
+
"sub_type": "ref_text",
|
| 1331 |
+
"list_items": [
|
| 1332 |
+
"Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. 2018. Bottom-up and top-down attention for image captioning and visual question answering. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 6077-6086.",
|
| 1333 |
+
"S Banerjee and A Lavie. Meteor: an automatic metric for mt evaluation with high levels of correlation with human judgments. Proceedings of ACL-WMT, pages 65-72.",
|
| 1334 |
+
"Iz Beltagy, Kyle Lo, and Arman Cohan. 2019. Scibert: A pretrained language model for scientific text. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP 2019, Hong Kong, China, November 3-7, 2019, pages 3613-3618.",
|
| 1335 |
+
"Shenshen Bu, Yujie Song, Taiji Li, and Zhiming Dai. 2024. Dynamic knowledge prompt for chest x-ray report generation. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation, LREC/COLING, pages 5425-5436. ELRA and ICCL.",
|
| 1336 |
+
"Zhihong Chen, Yaling Shen, Yan Song, and Xiang Wan. 2021. Cross-modal memory networks for radiology report generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pages 5904-5914.",
|
| 1337 |
+
"Zhihong Chen, Yan Song, Tsung-Hui Chang, and Xi-ang Wan. 2020. Generating radiology reports via"
|
| 1338 |
+
],
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
115,
|
| 1341 |
+
417,
|
| 1342 |
+
489,
|
| 1343 |
+
921
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 8
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "list",
|
| 1349 |
+
"sub_type": "ref_text",
|
| 1350 |
+
"list_items": [
|
| 1351 |
+
"memory-driven transformer. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, EMNLP 2020, Online, November 16-20, 2020, pages 1439-1449.",
|
| 1352 |
+
"Zhixuan Chen, Luyang Luo, Yequan Bie, and Hao Chen. 2024. Dia-llama: Towards large language model-driven CT report generation. CoRR, abs/2403.16386.",
|
| 1353 |
+
"Sasank Chilamkurthy, Rohit Ghosh, Swetha Tanamala, Mustafa Biviji, Norbert G. Campeau, Vasantha Kumar Venugopal, Vidur Mahajan, Pooja Rao, and Prashant Warier. 2018. Development and validation of deep learning algorithms for detection of critical findings in head ct scans. arXiv preprint arXiv:1803.05854.",
|
| 1354 |
+
"Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 770-778.",
|
| 1355 |
+
"Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685.",
|
| 1356 |
+
"Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. 2024. The platonic representation hypothesis. arXiv preprint arXiv:2405.07987.",
|
| 1357 |
+
"Haibo Jin, Haoxuan Che, Yi Lin, and Hao Chen. 2024. Promptmrg: Diagnosis-driven prompts for medical report generation. In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI, pages 2607-2615.",
|
| 1358 |
+
"Baoyu Jing, Zeya Wang, and Eric Xing. 2020. Show, describe and conclude: On exploiting the structure information of chest x-ray reports. arXiv preprint arXiv:2004.12274.",
|
| 1359 |
+
"Baoyu Jing, Pengtao Xie, and Eric P. Xing. 2018. On the automatic generation of medical imaging reports. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, 2018, Melbourne, Australia, July 15-20, 2018, Volume 1: Long Papers, pages 2577-2586.",
|
| 1360 |
+
"Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. 2023. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015-4026.",
|
| 1361 |
+
"Jonathan Krause, Justin Johnson, Ranjay Krishna, and Li Fei-Fei. 2017. A hierarchical approach for generating descriptive image paragraphs. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 3337-3345."
|
| 1362 |
+
],
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
510,
|
| 1365 |
+
85,
|
| 1366 |
+
884,
|
| 1367 |
+
921
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 8
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "page_number",
|
| 1373 |
+
"text": "16550",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
477,
|
| 1376 |
+
927,
|
| 1377 |
+
524,
|
| 1378 |
+
940
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 8
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "list",
|
| 1384 |
+
"sub_type": "ref_text",
|
| 1385 |
+
"list_items": [
|
| 1386 |
+
"C Li, C Wong, S Zhang, et al. 2023a. Llava-med: training a large language-and-vision assistant for biomedicine in one day. arxiv. arXiv preprint arXiv:2306.00890.",
|
| 1387 |
+
"Christy Y. Li, Xiaodan Liang, Zhiting Hu, and Eric P. Xing. 2019. Knowledge-driven encode, retrieve, paraphrase for medical image report generation. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019, pages 6666-6673.",
|
| 1388 |
+
"Mingjie Li, Bingqian Lin, Zicong Chen, Haokun Lin, Xiaodan Liang, and Xiaojun Chang. 2023b. Dynamic graph enhanced contrastive learning for chest x-ray report generation. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3334-3343.",
|
| 1389 |
+
"Yuan Li, Xiaodan Liang, Zhiting Hu, and Eric P Xing. 2018. Hybrid retrieval-generation reinforced agent for medical image report generation. Advances in neural information processing systems, 31.",
|
| 1390 |
+
"Chin-Yew Lin. 2004. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81.",
|
| 1391 |
+
"Che Liu, Zhongwei Wan, Yuqi Wang, Hui Shen, Haozhe Wang, Kangyu Zheng, Mi Zhang, and Rossella Arcucci. 2024. Benchmarking and boosting radiology report generation for 3d high-resolution medical images. arXiv preprint arXiv:2406.07146.",
|
| 1392 |
+
"Fenglin Liu, Shen Ge, and Xian Wu. 2021a. Competence-based multimodal curriculum learning for medical report generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pages 3001-3012.",
|
| 1393 |
+
"Fenglin Liu, Xian Wu, Shen Ge, Wei Fan, and Yuexian Zou. 2021b. Exploring and distilling posterior and prior knowledge for radiology report generation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2021, virtual, June 19-25, 2021, pages 13753-13762.",
|
| 1394 |
+
"Fenglin Liu, Changchang Yin, Xian Wu, Shen Ge, Yuexian Zou, Ping Zhang, and Xu Sun. 2021c. Contrastive attention for automatic chest x-ray report generation. arXiv preprint arXiv:2106.06965.",
|
| 1395 |
+
"AI Meta. 2024. Introducing meta llama 3: The most capable openly available llm to date. Meta AI.",
|
| 1396 |
+
"Kishore Papineni, Salim Roukos, Todd Ward, and Wei Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, July 6-12, 2002, Philadelphia, PA, USA, pages 311-318."
|
| 1397 |
+
],
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
115,
|
| 1400 |
+
85,
|
| 1401 |
+
487,
|
| 1402 |
+
919
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 9
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "list",
|
| 1408 |
+
"sub_type": "ref_text",
|
| 1409 |
+
"list_items": [
|
| 1410 |
+
"Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, pages 8748-8763.",
|
| 1411 |
+
"Qingya Shen, Yanzhao Shi, Xiaodan Zhang, Junzhong Ji, Ying Liu, and Huimin Xu. 2024. Ghcl: Gaussian heuristic curriculum learning for brain ct report generation. Multimedia Systems, 30(2):69.",
|
| 1412 |
+
"Yanzhao Shi, Junzhong Ji, Xiaodan Zhang, Ying Liu, Zheng Wang, and Huimin Xu. 2024. Prior tissue knowledge-driven contrastive learning for brain CT report generation. Multim. Syst., 30(2):98.",
|
| 1413 |
+
"Yanzhao Shi, Junzhong Ji, Xiaodan Zhang, Liangqiong Qu, and Ying Liu. 2023. Granularity matters: Pathological graph-driven cross-modal alignment for brain CT report generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP, pages 6617-6630.",
|
| 1414 |
+
"Yuhao Tang, Haichen Yang, Liyan Zhang, and Ye Yuan. 2024. Work like a doctor: Unifying scan localizer and dynamic generator for automated computed tomography report generation. *Expert Systems with Applications*, 237:121442.",
|
| 1415 |
+
"Omkar Thawakar, Abdelrahman M. Shaker, Sahal Shaji Mullappilly, Hisham Cholakkal, Rao Muhammad Anwer, Salman H. Khan, Jorma Laaksonen, and Fahad Shahbaz Khan. 2023. Xraygpt: Chest radiographs summarization using medical vision-language models. CoRR, abs/2306.07971.",
|
| 1416 |
+
"Aäron van den Oord, Yazhe Li, and Oriol Vinyals. 2018. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748.",
|
| 1417 |
+
"Ramakrishna Vedantam, C. Lawrence Zitnick, and Devi Parikh. 2015. Cider: Consensus-based image description evaluation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 4566-4575.",
|
| 1418 |
+
"Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. 2015. Show and tell: A neural image caption generator. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 3156-3164.",
|
| 1419 |
+
"Jun Wang, Abhir Bhalerao, and Yulan He. 2022a. Cross-modal prototype driven network for radiology report generation. In Computer Vision - ECCV 2022 - 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXXV, pages 563-579. Springer.",
|
| 1420 |
+
"Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2023. Improving text embeddings with large language models. ArXiv, abs/2401.00368."
|
| 1421 |
+
],
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
510,
|
| 1424 |
+
85,
|
| 1425 |
+
880,
|
| 1426 |
+
917
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 9
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "page_number",
|
| 1432 |
+
"text": "16551",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
477,
|
| 1435 |
+
928,
|
| 1436 |
+
522,
|
| 1437 |
+
940
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 9
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "list",
|
| 1443 |
+
"sub_type": "ref_text",
|
| 1444 |
+
"list_items": [
|
| 1445 |
+
"Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, and Ronald M. Summers. 2018. Tienet: Text-image embedding network for common thorax disease classification and reporting in chest x-rays. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 9049-9058.",
|
| 1446 |
+
"Zifeng Wang, Zhenbang Wu, Dinesh Agarwal, and Jimeng Sun. 2022b. Medclip: Contrastive learning from unpaired medical images and text. arXiv preprint arXiv:2210.10163.",
|
| 1447 |
+
"Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron C. Courville, Ruslan Salakhutdinov, Richard S. Zemel, and Yoshua Bengio. 2015. Show, attend and tell: Neural image caption generation with visual attention. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pages 2048-2057.",
|
| 1448 |
+
"An Yan, Zexue He, Xing Lu, Jiang Du, Eric Y. Chang, Amilcare Gentili, Julian J. McAuley, and Chun-Nan Hsu. 2021. Weakly supervised contrastive learning for chest x-ray report generation. In *Findings of the Association for Computational Linguistics: EMNLP* 2021, Virtual Event / Punta Cana, Dominican Republic, 16-20 November, 2021, pages 4009-4015.",
|
| 1449 |
+
"Shuxin Yang, Xian Wu, Shen Ge, S Kevin Zhou, and Li Xiao. 2022. Knowledge matters: Chest radiology report generation with general and specific knowledge. Medical image analysis, 80:102510.",
|
| 1450 |
+
"Sisi Yang, Junzhong Ji, Xiaodan Zhang, Ying Liu, and Zheng Wang. 2021. Weakly guided hierarchical encoder-decoder network for brain ct report generation. In IEEE International Conference on Bioinformatics and Biomedicine, BIBM 2021, Houston, TX, USA, December 9-12, 2021, pages 568-573. IEEE.",
|
| 1451 |
+
"Di You, Fenglin Liu, Shen Ge, Xiaoxia Xie, Jing Zhang, and Xian Wu. 2021. Aligntransformer: Hierarchical alignment of visual regions and disease tags for medical report generation. In Medical Image Computing and Computer Assisted Intervention - MICCAI 2021 - 24th International Conference, Strasbourg, France, September 27 - October 1, 2021, Proceedings, Part III, pages 72-82.",
|
| 1452 |
+
"Lijun Yu, José Lezama, Nitesh B Gundavarapu, Luca Versari, Kihyuk Sohn, David Minnen, Yong Cheng, Agrim Gupta, Xiuye Gu, Alexander G Hauptmann, et al. 2023. Language model beats diffusion-tokenizer is key to visual generation. arXiv preprint arXiv:2310.05737.",
|
| 1453 |
+
"Xiaodan Zhang, Sisi Yang, Yanzhao Shi, Junzhong Ji, Ying Liu, Zheng Wang, and Huimin Xu. 2023. Weakly guided attention model with hierarchical interaction for brain ct report generation. Computers in Biology and Medicine, page 107650.",
|
| 1454 |
+
"Yixiao Zhang, Xiaosong Wang, Ziyue Xu, Qihang Yu, Alan L. Yuille, and Daguang Xu. 2020. When radiology report generation meets knowledge graph."
|
| 1455 |
+
],
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
115,
|
| 1458 |
+
85,
|
| 1459 |
+
489,
|
| 1460 |
+
920
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 10
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "ref_text",
|
| 1466 |
+
"text": "In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 12910-12917.",
|
| 1467 |
+
"bbox": [
|
| 1468 |
+
527,
|
| 1469 |
+
85,
|
| 1470 |
+
884,
|
| 1471 |
+
175
|
| 1472 |
+
],
|
| 1473 |
+
"page_idx": 10
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"type": "page_number",
|
| 1477 |
+
"text": "16552",
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
477,
|
| 1480 |
+
928,
|
| 1481 |
+
524,
|
| 1482 |
+
940
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 10
|
| 1485 |
+
}
|
| 1486 |
+
]
|
2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/081b7730-6494-4c1e-8ba3-d9c947e8be2f_model.json
ADDED
|
@@ -0,0 +1,2004 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
{
|
| 4 |
+
"type": "title",
|
| 5 |
+
"bbox": [
|
| 6 |
+
0.168,
|
| 7 |
+
0.086,
|
| 8 |
+
0.833,
|
| 9 |
+
0.127
|
| 10 |
+
],
|
| 11 |
+
"angle": 0,
|
| 12 |
+
"content": "See Detail Say Clear: Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"bbox": [
|
| 17 |
+
0.146,
|
| 18 |
+
0.137,
|
| 19 |
+
0.856,
|
| 20 |
+
0.157
|
| 21 |
+
],
|
| 22 |
+
"angle": 0,
|
| 23 |
+
"content": "Chengxin Zheng\\(^{1}\\), Junzhong Ji\\(^{1}\\), Yanzhao Shi\\(^{1}\\), Xiaodan Zhang\\(^{1,*}\\), Liangqiong Qu\\(^{2}\\)"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"bbox": [
|
| 28 |
+
0.138,
|
| 29 |
+
0.171,
|
| 30 |
+
0.859,
|
| 31 |
+
0.222
|
| 32 |
+
],
|
| 33 |
+
"angle": 0,
|
| 34 |
+
"content": "\\(^{1}\\)College of Computer Science, Beijing University of Technology, Beijing, China \n\\(^{2}\\)Department of Statistics and Actuarial Science, School of Computing and Data Science, The University of Hong Kong, Hong Kong, China"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"bbox": [
|
| 39 |
+
0.357,
|
| 40 |
+
0.224,
|
| 41 |
+
0.642,
|
| 42 |
+
0.237
|
| 43 |
+
],
|
| 44 |
+
"angle": 0,
|
| 45 |
+
"content": "Correspondence: zhangxiaodan@bjut.edu.cn"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "title",
|
| 49 |
+
"bbox": [
|
| 50 |
+
0.261,
|
| 51 |
+
0.261,
|
| 52 |
+
0.342,
|
| 53 |
+
0.277
|
| 54 |
+
],
|
| 55 |
+
"angle": 0,
|
| 56 |
+
"content": "Abstract"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"bbox": [
|
| 61 |
+
0.142,
|
| 62 |
+
0.286,
|
| 63 |
+
0.461,
|
| 64 |
+
0.771
|
| 65 |
+
],
|
| 66 |
+
"angle": 0,
|
| 67 |
+
"content": "Brain CT report generation is significant to aid physicians in diagnosing cranial diseases. Recent studies concentrate on handling the consistency between visual and textual pathological features to improve the coherence of report. However, there exist some challenges: 1) Redundant visual representing: Massive irrelevant areas in 3D scans distract models from representing salient visual contexts. 2) Shifted semantic representing: Limited medical corpus causes difficulties for models to transfer the learned textual representations to generative layers. This study introduces a Pathological Clue-driven Representation Learning (PCRL) model to build cross-modal representations based on pathological clues and naturally adapt them for accurate report generation. Specifically, we construct pathological clues from perspectives of segmented regions, pathological entities, and report themes, to fully grasp visual pathological patterns and learn cross-modal feature representations. To adapt the representations for the text generation task, we bridge the gap between representation learning and report generation by using a unified large language model (LLM) with task-tailored instructions. These crafted instructions enable the LLM to be flexibly fine-tuned across tasks and smoothly transfer the semantic representation for report generation. Experiments demonstrate that our method outperforms previous methods and achieves SoTA performance. Our code is available at https://github.com/Chauncey-Jheng/PCRL-MRG."
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "title",
|
| 71 |
+
"bbox": [
|
| 72 |
+
0.115,
|
| 73 |
+
0.78,
|
| 74 |
+
0.262,
|
| 75 |
+
0.795
|
| 76 |
+
],
|
| 77 |
+
"angle": 0,
|
| 78 |
+
"content": "1 Introduction"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"bbox": [
|
| 83 |
+
0.113,
|
| 84 |
+
0.805,
|
| 85 |
+
0.491,
|
| 86 |
+
0.902
|
| 87 |
+
],
|
| 88 |
+
"angle": 0,
|
| 89 |
+
"content": "Brain computed tomography (CT) imaging is essential for diagnosing various cranial diseases, including cerebral infarction and hemorrhage. However, it is time-consuming and error-prone for radiologists to manually interpret medical findings from these scans and write reports. Automated report"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "image",
|
| 93 |
+
"bbox": [
|
| 94 |
+
0.516,
|
| 95 |
+
0.26,
|
| 96 |
+
0.883,
|
| 97 |
+
0.497
|
| 98 |
+
],
|
| 99 |
+
"angle": 0,
|
| 100 |
+
"content": null
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"type": "image_caption",
|
| 104 |
+
"bbox": [
|
| 105 |
+
0.508,
|
| 106 |
+
0.516,
|
| 107 |
+
0.885,
|
| 108 |
+
0.674
|
| 109 |
+
],
|
| 110 |
+
"angle": 0,
|
| 111 |
+
"content": "Figure 1: Comparison of different cross-modal alignment paradigms. (a) Previous way: The origin CT images contain extraneous information unrelated to diagnosis, and separate training for two semantic tasks makes it challenging to find a shared optimal solution, resulting in inadequate cross-modal alignment. (b) Our way: The visual representation is refined to concentrate on pathological clues, and employ joint training with task-tailored instructions via unified LLM to find a transferable representation, leading to better adaption for report generation."
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"type": "text",
|
| 115 |
+
"bbox": [
|
| 116 |
+
0.508,
|
| 117 |
+
0.708,
|
| 118 |
+
0.884,
|
| 119 |
+
0.756
|
| 120 |
+
],
|
| 121 |
+
"angle": 0,
|
| 122 |
+
"content": "generation systems are designed to boost efficiency, reduce the workload for radiologists, and optimize resources in busy clinical scenarios."
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"type": "text",
|
| 126 |
+
"bbox": [
|
| 127 |
+
0.508,
|
| 128 |
+
0.761,
|
| 129 |
+
0.885,
|
| 130 |
+
0.922
|
| 131 |
+
],
|
| 132 |
+
"angle": 0,
|
| 133 |
+
"content": "With the advancement of deep neural networks and their successful application in image captioning tasks (Vinyals et al., 2015; Xu et al., 2015), medical report generation (MRG) has gained more attention. Unlike the short sentences of traditional image captioning, MRG aims to generate lengthy and precise reports. To achieve this, various cross-modal alignment methods are required to ensure the consistency between visual and textual information (Shi et al., 2023), including attention mech-"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"type": "page_footnote",
|
| 137 |
+
"bbox": [
|
| 138 |
+
0.14,
|
| 139 |
+
0.907,
|
| 140 |
+
0.29,
|
| 141 |
+
0.921
|
| 142 |
+
],
|
| 143 |
+
"angle": 0,
|
| 144 |
+
"content": "*Corresponding Author"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"type": "page_number",
|
| 148 |
+
"bbox": [
|
| 149 |
+
0.477,
|
| 150 |
+
0.928,
|
| 151 |
+
0.526,
|
| 152 |
+
0.941
|
| 153 |
+
],
|
| 154 |
+
"angle": 0,
|
| 155 |
+
"content": "16542"
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"type": "footer",
|
| 159 |
+
"bbox": [
|
| 160 |
+
0.21,
|
| 161 |
+
0.946,
|
| 162 |
+
0.788,
|
| 163 |
+
0.973
|
| 164 |
+
],
|
| 165 |
+
"angle": 0,
|
| 166 |
+
"content": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 16542-16552 November 12-16, 2024 ©2024 Association for Computational Linguistics"
|
| 167 |
+
}
|
| 168 |
+
],
|
| 169 |
+
[
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"bbox": [
|
| 173 |
+
0.113,
|
| 174 |
+
0.085,
|
| 175 |
+
0.486,
|
| 176 |
+
0.132
|
| 177 |
+
],
|
| 178 |
+
"angle": 0,
|
| 179 |
+
"content": "anisms (Jing et al., 2018; Wang et al., 2018), memory mechanisms (Chen et al., 2020, 2021), and knowledge graphs (Li et al., 2019, 2023b)."
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"bbox": [
|
| 184 |
+
0.113,
|
| 185 |
+
0.134,
|
| 186 |
+
0.488,
|
| 187 |
+
0.213
|
| 188 |
+
],
|
| 189 |
+
"angle": 0,
|
| 190 |
+
"content": "Recently, learning representations via visual-textual contrastive learning (Shi et al., 2023, 2024) or using pre-trained large language models (LLMs) (Thawakar et al., 2023) to strength representations are also proven to be effective."
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"bbox": [
|
| 195 |
+
0.117,
|
| 196 |
+
0.215,
|
| 197 |
+
0.49,
|
| 198 |
+
0.632
|
| 199 |
+
],
|
| 200 |
+
"angle": 0,
|
| 201 |
+
"content": "However, as shown in Figure 1(a), learning cross-modal correspondences is still challenging in current methods due to the following concerns: 1) Redundant visual representing. Different from chest X-ray data, 3D brain CT scans contain extensive redundant information, e.g. background and insignificant areas. With the lack of human-crafted boxes to locate pathology regions, models struggle to capture and interpret the visual pathology patterns for generating reports. Although current advanced models use semantic prior knowledge or medical prompts (Jin et al., 2024; Bu et al., 2024) to automatically learn the salient visual areas, this may introduce noise and unstable representation and cause severe hallucinations in generated texts. 2) Shifted semantic representing. Compared to natural corpus, limited brain CT report corpus is insufficient to transfer the pathological semantic representations learned by represent learning layers (e.g., contrastive learning layer) to the language model (Huh et al., 2024), since the direct weight-sharing (Shi et al., 2023, 2024) is prone to degrade the coherence of generated diagnostic sentences. Thus, how to uniformly represent cross-modal pathological features and adapt them to report generation still remains an open question."
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"bbox": [
|
| 206 |
+
0.113,
|
| 207 |
+
0.633,
|
| 208 |
+
0.489,
|
| 209 |
+
0.873
|
| 210 |
+
],
|
| 211 |
+
"angle": 0,
|
| 212 |
+
"content": "In this paper, we propose a Pathological Cluedriven Representation Learning (PCRL) model to seamlessly build cross-modal representations based on diverse pathological clues and transfer them for generating accurate brain CT reports. Specifically, we extract pathological clues from perspectives of segmented regions, pathological entities, and report themes to depict clinical scenarios. Segmented region clues are automatically generated and filtered by given pathology prompts, enabling the visual encoder to grasp visual pathological patterns. Meanwhile, entity and theme clues are respectively extracted by detailed findings and full-text reports, to handle the enriched visual-textual alignment and build cross-modal pathology representations."
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"bbox": [
|
| 217 |
+
0.113,
|
| 218 |
+
0.874,
|
| 219 |
+
0.488,
|
| 220 |
+
0.922
|
| 221 |
+
],
|
| 222 |
+
"angle": 0,
|
| 223 |
+
"content": "Besides, to adapt the learned representations for the text generation task, we bridge the gap between representation learning and report generation by"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"bbox": [
|
| 228 |
+
0.508,
|
| 229 |
+
0.085,
|
| 230 |
+
0.883,
|
| 231 |
+
0.26
|
| 232 |
+
],
|
| 233 |
+
"angle": 0,
|
| 234 |
+
"content": "employing a unified large language model (LLM) with task-tailored instructions, which has proven to be more effective than conventional decoders by using appropriate tokens to seamlessly connect different tasks (Yu et al., 2023). As shown in Figure 1(b), We craft a representation instruction to prompt the LLM to produce high-level pathological semantic features for cross-modal alignment, and a generation instruction to prompt LLM to generate accurate brain CT reports based on the learned representations."
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"bbox": [
|
| 239 |
+
0.528,
|
| 240 |
+
0.262,
|
| 241 |
+
0.875,
|
| 242 |
+
0.277
|
| 243 |
+
],
|
| 244 |
+
"angle": 0,
|
| 245 |
+
"content": "Our main contributions can be summarized as:"
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"bbox": [
|
| 250 |
+
0.525,
|
| 251 |
+
0.287,
|
| 252 |
+
0.883,
|
| 253 |
+
0.368
|
| 254 |
+
],
|
| 255 |
+
"angle": 0,
|
| 256 |
+
"content": "1. We propose a novel framework to seamlessly learn visual-textual representations from perspectives of diverse pathological clues and leverage them for enhancing the quality of generated brain CT reports."
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"bbox": [
|
| 261 |
+
0.525,
|
| 262 |
+
0.378,
|
| 263 |
+
0.885,
|
| 264 |
+
0.457
|
| 265 |
+
],
|
| 266 |
+
"angle": 0,
|
| 267 |
+
"content": "2. We, for the first time, design a new paradigm to effectively transfer the learned pathological representations for report generation using a unified LLM prompted by task-tailored instructions."
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"bbox": [
|
| 272 |
+
0.525,
|
| 273 |
+
0.469,
|
| 274 |
+
0.884,
|
| 275 |
+
0.533
|
| 276 |
+
],
|
| 277 |
+
"angle": 0,
|
| 278 |
+
"content": "3. We validate the model capabilities on the open-source CTRG-Brain dataset. Experimental results show that our model achieves remarkable performance in generating brain CT reports."
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "list",
|
| 282 |
+
"bbox": [
|
| 283 |
+
0.525,
|
| 284 |
+
0.287,
|
| 285 |
+
0.885,
|
| 286 |
+
0.533
|
| 287 |
+
],
|
| 288 |
+
"angle": 0,
|
| 289 |
+
"content": null
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "title",
|
| 293 |
+
"bbox": [
|
| 294 |
+
0.51,
|
| 295 |
+
0.554,
|
| 296 |
+
0.665,
|
| 297 |
+
0.569
|
| 298 |
+
],
|
| 299 |
+
"angle": 0,
|
| 300 |
+
"content": "2 Related Work"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "title",
|
| 304 |
+
"bbox": [
|
| 305 |
+
0.509,
|
| 306 |
+
0.579,
|
| 307 |
+
0.771,
|
| 308 |
+
0.594
|
| 309 |
+
],
|
| 310 |
+
"angle": 0,
|
| 311 |
+
"content": "2.1 Medical Report Generation"
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"bbox": [
|
| 316 |
+
0.508,
|
| 317 |
+
0.6,
|
| 318 |
+
0.884,
|
| 319 |
+
0.921
|
| 320 |
+
],
|
| 321 |
+
"angle": 0,
|
| 322 |
+
"content": "The advancements in image captioning techniques have spurred the development of a range of radiology report generation methods (Jing et al., 2018; Chen et al., 2020, 2021; Li et al., 2019; Shi et al., 2023; Zhang et al., 2023; Li et al., 2023b; Shi et al., 2024; Shen et al., 2024). To exploit the more effective parts of medical images, Jing et al. (2018) first propose a co-attention mechanism to associate images with disease tags and improve the accuracy of generated reports; Chen et al. (2021) design a cross-modal memory matrix to learn high-level vision-language correspondence for enhancing report generation; Liu et al. (2021c) used contrastive attention to captured the difference of abnormal and normal samples. To address the semantic bias of limited medical report corpus, Jing et al. (2020) exploited the textual structure information of reports, while Liu et al. (2021a); Shen et al. (2024) used curriculum learning to alleviate the data bias of limited medical data corpus. The retrieval-based"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "page_number",
|
| 326 |
+
"bbox": [
|
| 327 |
+
0.478,
|
| 328 |
+
0.928,
|
| 329 |
+
0.525,
|
| 330 |
+
0.941
|
| 331 |
+
],
|
| 332 |
+
"angle": 0,
|
| 333 |
+
"content": "16543"
|
| 334 |
+
}
|
| 335 |
+
],
|
| 336 |
+
[
|
| 337 |
+
{
|
| 338 |
+
"type": "image",
|
| 339 |
+
"bbox": [
|
| 340 |
+
0.139,
|
| 341 |
+
0.087,
|
| 342 |
+
0.861,
|
| 343 |
+
0.304
|
| 344 |
+
],
|
| 345 |
+
"angle": 0,
|
| 346 |
+
"content": null
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "image_caption",
|
| 350 |
+
"bbox": [
|
| 351 |
+
0.113,
|
| 352 |
+
0.318,
|
| 353 |
+
0.884,
|
| 354 |
+
0.378
|
| 355 |
+
],
|
| 356 |
+
"angle": 0,
|
| 357 |
+
"content": "Figure 2: The overall framework of our method, which mainly consists of an image encoder and a text decoder for brain CT report generation (left). The pathological clue-driven representation learning (right) is proposed to guide the encoder and decoder for more fine-grained representation by three alignment modules: (a) segmentation clue alignment (SCA), (b) entity clue alignment (ECA), and (c) theme clue alignment (TCA)."
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"bbox": [
|
| 362 |
+
0.112,
|
| 363 |
+
0.401,
|
| 364 |
+
0.489,
|
| 365 |
+
0.562
|
| 366 |
+
],
|
| 367 |
+
"angle": 0,
|
| 368 |
+
"content": "(Li et al., 2018; Liu et al., 2021b) and prior expert knowledge based methods (Zhang et al., 2020; Yang et al., 2022; You et al., 2021) also shows effectiveness to alleviate the inaccuracy of generated report caused by limited training data. To build more stable relations between multi-modal features, contrastive learning (Radford et al., 2021) acts as an unsupervised method, and is proven to be effective for learning cross-modal representations for MRG tasks (Li et al., 2023b; Shi et al., 2024)."
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"bbox": [
|
| 373 |
+
0.113,
|
| 374 |
+
0.564,
|
| 375 |
+
0.49,
|
| 376 |
+
0.789
|
| 377 |
+
],
|
| 378 |
+
"angle": 0,
|
| 379 |
+
"content": "Recently, LLM-based MRG methods (Jin et al., 2024; Chen et al., 2024) harness the semantic processing capabilities of LLMs to enhance the coherence of generated medical reports. However, the current bottleneck of LLM is to interpret sparse visual patterns of pathologies, which causes severe hallucinations and degrades the trustworthiness of clinical diagnosis. To solve this issue, we propose to augment LLM with representation learning guided by pathology clues. By aligning cross-modal pathological features and transferring the learned representations to the LLM-based report decoder, our model can generate accurate and coherent brain CT reports."
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "title",
|
| 383 |
+
"bbox": [
|
| 384 |
+
0.114,
|
| 385 |
+
0.803,
|
| 386 |
+
0.358,
|
| 387 |
+
0.818
|
| 388 |
+
],
|
| 389 |
+
"angle": 0,
|
| 390 |
+
"content": "2.2 Pre-trained Large Model"
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"bbox": [
|
| 395 |
+
0.113,
|
| 396 |
+
0.826,
|
| 397 |
+
0.489,
|
| 398 |
+
0.922
|
| 399 |
+
],
|
| 400 |
+
"angle": 0,
|
| 401 |
+
"content": "In recent years, pre-trained large models have achieved significant breakthroughs in both natural language processing (NLP) and computer vision (CV). These models leverage extensive datasets for pre-training, allowing them to perform exceptionally well in downstream tasks. The Segment"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"bbox": [
|
| 406 |
+
0.508,
|
| 407 |
+
0.401,
|
| 408 |
+
0.885,
|
| 409 |
+
0.756
|
| 410 |
+
],
|
| 411 |
+
"angle": 0,
|
| 412 |
+
"content": "Anything Model (SAM) Kirillov et al. (2023) is an innovative large vision model in the field of image segmentation. SAM's strengths lie in its extensive training on a large-scale dataset, enhancing its versatility and enabling real-time generation of high-quality segmentation masks across diverse tasks and image distributions. MedCLIP Wang et al. (2022b) is a notable visual-language model in the medical domain. Pre-trained on decoupling medical images and texts, MedCLIP has shown SoTA performance on zero-shot image-text retrieval. LLaMA3 is the next generation of state-of-the-art open-source LLM from Meta (2024). Trained on over 15 trillion tokens, seven times the data of its predecessor, LLaMA3 incorporates extensive multilingual and high-quality datasets. To improve the use of large models for assisting in medical report generation, we adopt SAM for region segmentation, MedCLIP for feature representation of pathological entities, and LLaMA for joint training to achieve fine-grained cross-modal alignment and improve medical report generation."
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "title",
|
| 416 |
+
"bbox": [
|
| 417 |
+
0.51,
|
| 418 |
+
0.777,
|
| 419 |
+
0.659,
|
| 420 |
+
0.794
|
| 421 |
+
],
|
| 422 |
+
"angle": 0,
|
| 423 |
+
"content": "3 Methodology"
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"bbox": [
|
| 428 |
+
0.508,
|
| 429 |
+
0.809,
|
| 430 |
+
0.884,
|
| 431 |
+
0.922
|
| 432 |
+
],
|
| 433 |
+
"angle": 0,
|
| 434 |
+
"content": "As illustrated in Figure 2, our framework consists of two branches: the brain CT Report Generation (RG) on the left and the Pathological Clue-driven Representation Learning (PCRL) on the right. The interaction between these branches is facilitated through the shared use of a visual encoder and a language model."
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "page_number",
|
| 438 |
+
"bbox": [
|
| 439 |
+
0.478,
|
| 440 |
+
0.928,
|
| 441 |
+
0.526,
|
| 442 |
+
0.941
|
| 443 |
+
],
|
| 444 |
+
"angle": 0,
|
| 445 |
+
"content": "16544"
|
| 446 |
+
}
|
| 447 |
+
],
|
| 448 |
+
[
|
| 449 |
+
{
|
| 450 |
+
"type": "title",
|
| 451 |
+
"bbox": [
|
| 452 |
+
0.114,
|
| 453 |
+
0.085,
|
| 454 |
+
0.391,
|
| 455 |
+
0.1
|
| 456 |
+
],
|
| 457 |
+
"angle": 0,
|
| 458 |
+
"content": "3.1 Brain CT Report Generation"
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"bbox": [
|
| 463 |
+
0.113,
|
| 464 |
+
0.106,
|
| 465 |
+
0.49,
|
| 466 |
+
0.429
|
| 467 |
+
],
|
| 468 |
+
"angle": 0,
|
| 469 |
+
"content": "In this branch, the input comprises a set of CT scan images \\( I = \\{i_1,\\dots ,i_N\\} \\), where \\( N \\) represents the number of CT images in each sample. The output is the corresponding brain CT findings report \\( Y = \\{y_{1},\\ldots ,y_{M}\\} \\), with \\( M \\) representing the number of tokens. We adopt the encoder-decoder architecture for report generation. First, we use ResNet101 (He et al., 2016) to extract grid features \\( G = \\{g_{1},\\dots ,g_{N}\\} \\in \\mathbf{R}^{N\\times H\\times d}(N = 24,H = 196,d = 2048) \\) from \\( I \\). Then, we embed these features using a visual encoder to obtain visual features \\( V \\). These visual features \\( V \\) are passed through a multi-modal projector to obtain the visual embedding tokens \\( H_{v}\\in \\mathbf{R}^{N\\times d_{w}}(d_{w} = 4096) \\) which are aligned with the word embedding space of a large language model. Finally, these tokens are concatenated with the instruction token \\( H_{q} \\) and fed into the large language model. We train the parameters \\( \\theta \\) by minimizing the cross-entropy loss, which can be represented by the following formula:"
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "equation",
|
| 473 |
+
"bbox": [
|
| 474 |
+
0.137,
|
| 475 |
+
0.439,
|
| 476 |
+
0.488,
|
| 477 |
+
0.482
|
| 478 |
+
],
|
| 479 |
+
"angle": 0,
|
| 480 |
+
"content": "\\[\n\\mathcal {L} _ {g} = - \\sum_ {t = 1} ^ {M} \\log P \\left(y _ {t} \\mid y _ {1: t - 1}, H _ {v}, H _ {q}; \\theta\\right) \\tag {1}\n\\]"
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"bbox": [
|
| 485 |
+
0.114,
|
| 486 |
+
0.493,
|
| 487 |
+
0.489,
|
| 488 |
+
0.543
|
| 489 |
+
],
|
| 490 |
+
"angle": 0,
|
| 491 |
+
"content": "where, \\( P(y_{t}|*) \\) denotes the probability conditioned on \\( H_{v}, H_{q} \\), and the embeddings of previous words \\( y_{1}, y_{2}, \\dots, y_{t-1} \\)."
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "title",
|
| 495 |
+
"bbox": [
|
| 496 |
+
0.114,
|
| 497 |
+
0.552,
|
| 498 |
+
0.48,
|
| 499 |
+
0.584
|
| 500 |
+
],
|
| 501 |
+
"angle": 0,
|
| 502 |
+
"content": "3.2 Pathological Clue-driven Representation Learning"
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"bbox": [
|
| 507 |
+
0.113,
|
| 508 |
+
0.589,
|
| 509 |
+
0.49,
|
| 510 |
+
0.702
|
| 511 |
+
],
|
| 512 |
+
"angle": 0,
|
| 513 |
+
"content": "Learning fine-grained visual-text representations is critical for generating accurate reports (Shi et al., 2023). This branch mainly builds enriched representations by conducting multi-modal feature alignment based on pathological clues, including segmentation clue alignment (SCA), entity clues alignment (ECA), and theme clues alignment (TCA)."
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "title",
|
| 517 |
+
"bbox": [
|
| 518 |
+
0.114,
|
| 519 |
+
0.71,
|
| 520 |
+
0.44,
|
| 521 |
+
0.726
|
| 522 |
+
],
|
| 523 |
+
"angle": 0,
|
| 524 |
+
"content": "3.2.1 Preparation of Pathological Clues"
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"bbox": [
|
| 529 |
+
0.113,
|
| 530 |
+
0.729,
|
| 531 |
+
0.49,
|
| 532 |
+
0.761
|
| 533 |
+
],
|
| 534 |
+
"angle": 0,
|
| 535 |
+
"content": "Pathological clues are collected in three perspectives for feature alignment."
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"bbox": [
|
| 540 |
+
0.113,
|
| 541 |
+
0.761,
|
| 542 |
+
0.49,
|
| 543 |
+
0.889
|
| 544 |
+
],
|
| 545 |
+
"angle": 0,
|
| 546 |
+
"content": "**Pathology Theme Clues:** Learning the structure of professional brain CT reports is essential for MRG models to satisfy human standards and produce reliable reports. To this end, we propose to build theme clues by simply using the full-text report and whole images as global signals, which can be useful to enhance the overall quality of medical reports by TCA (illustrated in 3.2.4)."
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"bbox": [
|
| 551 |
+
0.114,
|
| 552 |
+
0.89,
|
| 553 |
+
0.49,
|
| 554 |
+
0.922
|
| 555 |
+
],
|
| 556 |
+
"angle": 0,
|
| 557 |
+
"content": "Pathology Entity Clues: To learn detailed information about pathology entities, we regard each"
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"bbox": [
|
| 562 |
+
0.508,
|
| 563 |
+
0.085,
|
| 564 |
+
0.885,
|
| 565 |
+
0.181
|
| 566 |
+
],
|
| 567 |
+
"angle": 0,
|
| 568 |
+
"content": "single finding sentence in the report as an entity clue and extract the related multi-modal features in ECA 3.2.3. The construction of entities \\(E = \\{e_1,\\dots,e_{N_e}\\}\\) (with \\(N_{e} = 24\\)) is based on expert knowledge and the frequency of words in the training corpus."
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"bbox": [
|
| 573 |
+
0.508,
|
| 574 |
+
0.183,
|
| 575 |
+
0.885,
|
| 576 |
+
0.456
|
| 577 |
+
],
|
| 578 |
+
"angle": 0,
|
| 579 |
+
"content": "Segment Clues: To enhance visual representations via detailed contour of pathologies, we propose to utilize the pre-trained segmentation model SAM (Kirillov et al., 2023) to generate mask candidates and filter useful masks related to pathology entities. First, we prompt SAM by covering each brain CT image with a grid of points and integrating it into image embeddings through average sampling. In this way, the mask decoder in SAM is prompted to generate a gallery of candidate masks \\( M_I = \\{m_1, \\dots, m_{N_m}\\} \\). To ensure the quality of masks, we also apply rule-based methods to filter out low-quality and duplicate masks with area size, stability scores, and IoU scores. For each sample consisting of 24 images, we generate a corresponding series of masks and combine them to form the candidate Gallery \\( = \\{M_{I_1}, \\dots, M_{I_N}\\} \\)."
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"bbox": [
|
| 584 |
+
0.508,
|
| 585 |
+
0.457,
|
| 586 |
+
0.884,
|
| 587 |
+
0.713
|
| 588 |
+
],
|
| 589 |
+
"angle": 0,
|
| 590 |
+
"content": "Then, to retrieve valuable masks related to the sample's pathological entities, we propose to use the MedCLIP (Wang et al., 2022b) for text-prompted retrieval. Based on expert knowledge, we divide the 24 images into eight-layer categories, each mapping a specific set of entities (Shi et al., 2024). Conversely, each entity also has its corresponding layers. We extract the existing entities from the sample's report and their corresponding pathological descriptions \\( D = \\{d_{1},\\dots,d_{N_{d}}\\} \\) (\\( N_{d}\\leq N_{e} \\)), which serve as the Query. Next, we use the \\( d \\)-th description \\( Query_{d} \\) to search for the most similar matching mask in \\( Gallery_{d} \\), which is a subset of \\( Gallery \\), consisting of all visual masks of the layers related to the existing entities. The procedure can be represented as:"
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "equation",
|
| 594 |
+
"bbox": [
|
| 595 |
+
0.527,
|
| 596 |
+
0.73,
|
| 597 |
+
0.883,
|
| 598 |
+
0.746
|
| 599 |
+
],
|
| 600 |
+
"angle": 0,
|
| 601 |
+
"content": "\\[\n\\operatorname {R e t r i e v a l} _ {d} = \\operatorname {C L I P} \\left(\\operatorname {G a l l e r y} _ {d}, \\operatorname {Q u e r y} _ {d}\\right) \\tag {2}\n\\]"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"bbox": [
|
| 606 |
+
0.508,
|
| 607 |
+
0.761,
|
| 608 |
+
0.883,
|
| 609 |
+
0.792
|
| 610 |
+
],
|
| 611 |
+
"angle": 0,
|
| 612 |
+
"content": "where \\(Retrieval_{d}\\) denotes the retrieved masks for SCA 3.2.2."
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "title",
|
| 616 |
+
"bbox": [
|
| 617 |
+
0.509,
|
| 618 |
+
0.805,
|
| 619 |
+
0.807,
|
| 620 |
+
0.821
|
| 621 |
+
],
|
| 622 |
+
"angle": 0,
|
| 623 |
+
"content": "3.2.2 Segmentation Clue Alignment"
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"bbox": [
|
| 628 |
+
0.508,
|
| 629 |
+
0.826,
|
| 630 |
+
0.884,
|
| 631 |
+
0.922
|
| 632 |
+
],
|
| 633 |
+
"angle": 0,
|
| 634 |
+
"content": "This module aims to learn the fine-grained visual representation based on the extracted segment masks. First, we obtain the visual features \\( V_{D} = \\{v_{1},\\dots v_{N_{d}}\\} \\) corresponding to the images containing the entities using a selector. Then, we input these features into a lightweight segmentation"
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "page_number",
|
| 638 |
+
"bbox": [
|
| 639 |
+
0.478,
|
| 640 |
+
0.928,
|
| 641 |
+
0.526,
|
| 642 |
+
0.941
|
| 643 |
+
],
|
| 644 |
+
"angle": 0,
|
| 645 |
+
"content": "16545"
|
| 646 |
+
}
|
| 647 |
+
],
|
| 648 |
+
[
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"bbox": [
|
| 652 |
+
0.113,
|
| 653 |
+
0.085,
|
| 654 |
+
0.49,
|
| 655 |
+
0.278
|
| 656 |
+
],
|
| 657 |
+
"angle": 0,
|
| 658 |
+
"content": "head to generate the corresponding foreground entity masks \\( S_{D} = \\{s_{1},\\dots,s_{N_{d}}\\} \\), which serves as discriminated pathological information. We then align these generated masks with the retrieved segment masks \\( M_{D} = \\{Retrieval_{1},\\dots,Retrival_{N_{d}}\\} \\) to learn detailed patterns. It is important to note that the size of the generated masks \\( S_{D} \\) differs from the size of the retrieved SAM masks \\( M_{D} \\). To address this, we first resize the SAM masks to match the size of the masks generated by our segmentation head. We finally calculate the following loss for aligning the two types of masks:"
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "equation",
|
| 662 |
+
"bbox": [
|
| 663 |
+
0.176,
|
| 664 |
+
0.282,
|
| 665 |
+
0.488,
|
| 666 |
+
0.318
|
| 667 |
+
],
|
| 668 |
+
"angle": 0,
|
| 669 |
+
"content": "\\[\n\\mathcal {L} _ {s e g} = 1 - \\frac {2 \\sum_ {i = 1} ^ {n} p _ {i} y _ {i}}{\\sum_ {i = 1} ^ {n} p _ {i} ^ {2} + \\sum_ {i = 1} ^ {n} y _ {i} ^ {2}} \\tag {3}\n\\]"
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"bbox": [
|
| 674 |
+
0.113,
|
| 675 |
+
0.322,
|
| 676 |
+
0.487,
|
| 677 |
+
0.353
|
| 678 |
+
],
|
| 679 |
+
"angle": 0,
|
| 680 |
+
"content": "where \\( y_{i} \\) is the pixel value of retrieved SAM masks and \\( p_i \\) is the predicted pixel value."
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"bbox": [
|
| 685 |
+
0.113,
|
| 686 |
+
0.354,
|
| 687 |
+
0.489,
|
| 688 |
+
0.402
|
| 689 |
+
],
|
| 690 |
+
"angle": 0,
|
| 691 |
+
"content": "In this way, the visual encoder can be effectively learned to focus on the areas of pathologies while reducing the influence of irrelevant visual features."
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "title",
|
| 695 |
+
"bbox": [
|
| 696 |
+
0.114,
|
| 697 |
+
0.41,
|
| 698 |
+
0.353,
|
| 699 |
+
0.426
|
| 700 |
+
],
|
| 701 |
+
"angle": 0,
|
| 702 |
+
"content": "3.2.3 Entity Clue Alignment"
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"bbox": [
|
| 707 |
+
0.113,
|
| 708 |
+
0.429,
|
| 709 |
+
0.49,
|
| 710 |
+
0.573
|
| 711 |
+
],
|
| 712 |
+
"angle": 0,
|
| 713 |
+
"content": "To learn the cross-modal patterns of pathology entities, we extract visual and textual pathological features based on the entity clues. First, we build a selector to obtain the visual features \\( V_{D} = \\{v_{1},\\dots v_{N_{d}}\\} (N_{d} < N) \\), which corresponds to significant CT images that exist pathology entities. We then apply global average pooling (GAP) to generalize \\( V_{D} \\) and obtain representations of each significant CT image, denoted as \\( R_v^e = \\{r_1,\\dots r_{N_d}\\} \\)."
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"bbox": [
|
| 718 |
+
0.113,
|
| 719 |
+
0.574,
|
| 720 |
+
0.49,
|
| 721 |
+
0.797
|
| 722 |
+
],
|
| 723 |
+
"angle": 0,
|
| 724 |
+
"content": "Different from previous work (Li et al., 2023b) use an external language model (e.g. SciBert (Beltagy et al., 2019)) to build textual representation for feature alignment, we propose to leverage a unified LLM to generate textual representation via tailored prompts. Inspired by Wang et al. (2023), we crafted a representation instruction \"Summarize the following cranial diagnosis in one word,\" which is denoted as \\( H_{q_r} \\). This prompt can effectively activate the summarization ability of LLM to generate corresponding text representations for pathological entity description in \\( D \\). We use the output generated by the final hidden layer of LLM as textual features for cross-modal alignment."
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"bbox": [
|
| 729 |
+
0.113,
|
| 730 |
+
0.799,
|
| 731 |
+
0.489,
|
| 732 |
+
0.877
|
| 733 |
+
],
|
| 734 |
+
"angle": 0,
|
| 735 |
+
"content": "With the carefully extracted visual and textual representations of entities, we map them into the same dimension through an embedding layer. The process can be represented by the following formula:"
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "equation",
|
| 739 |
+
"bbox": [
|
| 740 |
+
0.17,
|
| 741 |
+
0.886,
|
| 742 |
+
0.488,
|
| 743 |
+
0.902
|
| 744 |
+
],
|
| 745 |
+
"angle": 0,
|
| 746 |
+
"content": "\\[\nR _ {v} ^ {e} = \\operatorname {L i n e a r} _ {v} ^ {e} (G A P \\left(V _ {D}\\right)) \\tag {4}\n\\]"
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "equation",
|
| 750 |
+
"bbox": [
|
| 751 |
+
0.168,
|
| 752 |
+
0.906,
|
| 753 |
+
0.487,
|
| 754 |
+
0.923
|
| 755 |
+
],
|
| 756 |
+
"angle": 0,
|
| 757 |
+
"content": "\\[\nR _ {w} ^ {e} = \\operatorname {L i n e a r} _ {t} ^ {e} \\left(L L M \\left(H _ {q _ {r}}, D\\right)\\right) \\tag {5}\n\\]"
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"bbox": [
|
| 762 |
+
0.508,
|
| 763 |
+
0.085,
|
| 764 |
+
0.885,
|
| 765 |
+
0.166
|
| 766 |
+
],
|
| 767 |
+
"angle": 0,
|
| 768 |
+
"content": "where \\( GAP \\) denotes the global average pooling, \\( Linear_v \\) represents the visual mapper, and \\( Linear_t \\) represents the textual mapper. We employ the symmetric InfoNCE (van den Oord et al., 2018) loss for visual-textual alignment:"
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "equation",
|
| 772 |
+
"bbox": [
|
| 773 |
+
0.51,
|
| 774 |
+
0.184,
|
| 775 |
+
0.882,
|
| 776 |
+
0.289
|
| 777 |
+
],
|
| 778 |
+
"angle": 0,
|
| 779 |
+
"content": "\\[\n\\begin{array}{l} \\mathcal {L} _ {C L _ {e}} = - \\frac {1}{2} \\left(\\alpha_ {v} \\sum_ {i = 1} ^ {N _ {d}} \\log \\frac {\\exp \\left(\\mathrm {s} _ {v} ^ {e} (i , i)\\right)}{\\sum_ {j = 1 , j \\neq i} ^ {N _ {d}} \\exp \\left(\\mathrm {s} _ {v} ^ {e} (i , j)\\right)} \\right. \\\\ + \\alpha_ {w} \\sum_ {i = 1} ^ {N _ {d}} \\log \\frac {\\exp \\left(\\mathrm {s} _ {w} ^ {e} (i , i)\\right)}{\\sum_ {j = 1 , j \\neq i} ^ {N _ {d}} \\exp \\left(\\mathrm {s} _ {w} ^ {e} (i , j)\\right)} \\Bigg) \\tag {6} \\\\ \\end{array}\n\\]"
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"bbox": [
|
| 784 |
+
0.508,
|
| 785 |
+
0.295,
|
| 786 |
+
0.884,
|
| 787 |
+
0.391
|
| 788 |
+
],
|
| 789 |
+
"angle": 0,
|
| 790 |
+
"content": "where \\( s_v^e (i,j) = \\frac{\\sin(R_{v_i}^e,R_{w_j}^e)}{\\tau} \\) and \\( s_w^e (i,j) = \\frac{\\sin(R_{w_i}^e,R_{v_j}^e)}{\\tau} \\) denote the similarity between the visual representation \\( R_{v}^{e} \\) and the textual representation \\( R_{w}^{e} \\), \\( \\tau \\) is a temperature parameter. \\( \\alpha_{v} \\) and \\( \\alpha_{w} \\) are hyperparameters to balance the contrastive learning."
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"bbox": [
|
| 795 |
+
0.508,
|
| 796 |
+
0.393,
|
| 797 |
+
0.882,
|
| 798 |
+
0.44
|
| 799 |
+
],
|
| 800 |
+
"angle": 0,
|
| 801 |
+
"content": "By aligning multi-modal entity clues, the model can grasp fine-grained visual-text representations to generate accurate diagnostic words."
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "title",
|
| 805 |
+
"bbox": [
|
| 806 |
+
0.509,
|
| 807 |
+
0.449,
|
| 808 |
+
0.753,
|
| 809 |
+
0.464
|
| 810 |
+
],
|
| 811 |
+
"angle": 0,
|
| 812 |
+
"content": "3.2.4 Theme Clue Alignment"
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"bbox": [
|
| 817 |
+
0.507,
|
| 818 |
+
0.467,
|
| 819 |
+
0.884,
|
| 820 |
+
0.627
|
| 821 |
+
],
|
| 822 |
+
"angle": 0,
|
| 823 |
+
"content": "Theme clue alignment aims to equip the model with comprehensive skills to generate accurate style and structure of reports, thereby enhancing clinical reliability. For global visual features, we use one-dimensional global max pooling (GMP) to represent the entire sample visually, denoted as \\( R_{w}^{t} \\). For the overall report of the sample, we generate textual representation \\( R_{w}^{t} \\) by prompting LLM with the same representation instruction (see Section 3.2.3). This process can be represented as:"
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "equation",
|
| 827 |
+
"bbox": [
|
| 828 |
+
0.567,
|
| 829 |
+
0.633,
|
| 830 |
+
0.882,
|
| 831 |
+
0.651
|
| 832 |
+
],
|
| 833 |
+
"angle": 0,
|
| 834 |
+
"content": "\\[\nR _ {v} ^ {t} = \\operatorname {L i n e a r} _ {v} ^ {t} (G M P (V)) \\tag {7}\n\\]"
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "equation",
|
| 838 |
+
"bbox": [
|
| 839 |
+
0.566,
|
| 840 |
+
0.653,
|
| 841 |
+
0.882,
|
| 842 |
+
0.671
|
| 843 |
+
],
|
| 844 |
+
"angle": 0,
|
| 845 |
+
"content": "\\[\nR _ {w} ^ {t} = \\operatorname {L i n e a r} _ {t} ^ {t} \\left(L L M \\left(H _ {q _ {s}}, Y\\right)\\right) \\tag {8}\n\\]"
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"bbox": [
|
| 850 |
+
0.508,
|
| 851 |
+
0.677,
|
| 852 |
+
0.882,
|
| 853 |
+
0.706
|
| 854 |
+
],
|
| 855 |
+
"angle": 0,
|
| 856 |
+
"content": "Similar to ECA, the loss of TCA can be formulated as:"
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "equation",
|
| 860 |
+
"bbox": [
|
| 861 |
+
0.51,
|
| 862 |
+
0.712,
|
| 863 |
+
0.882,
|
| 864 |
+
0.817
|
| 865 |
+
],
|
| 866 |
+
"angle": 0,
|
| 867 |
+
"content": "\\[\n\\begin{array}{l} \\mathcal {L} _ {C L _ {t}} = - \\frac {1}{2} \\left(\\alpha_ {v} \\sum_ {i = 1} ^ {N _ {b}} \\log \\frac {\\exp (\\mathrm {s} _ {v} ^ {t} (i , i))}{\\sum_ {j = 1 , j \\neq i} ^ {N _ {b}} \\exp (\\mathrm {s} _ {v} ^ {t} (i , j))}\\right) \\\\ + \\alpha_ {w} \\sum_ {i = 1} ^ {N _ {b}} \\log \\frac {\\exp \\left(\\mathrm {s} _ {w} ^ {t} (i , i)\\right)}{\\sum_ {j = 1 , j \\neq i} ^ {N _ {b}} \\exp \\left(\\mathrm {s} _ {w} ^ {t} (i , j)\\right)} \\tag {9} \\\\ \\end{array}\n\\]"
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"bbox": [
|
| 872 |
+
0.508,
|
| 873 |
+
0.823,
|
| 874 |
+
0.884,
|
| 875 |
+
0.922
|
| 876 |
+
],
|
| 877 |
+
"angle": 0,
|
| 878 |
+
"content": "where \\( s_v^t (i,j) = \\sin (R_{v_i}^t,R_{w_j}^t) / \\tau \\) and \\( s_w^t (i,j) = \\) \\( \\sin (R_{w_i}^t,R_{v_j}^t) / \\tau \\) denote the similarity between the visual representation \\( R_{v}^{e} \\) and the textual representation \\( R_w^e \\), \\( \\tau \\) is a temperature parameter, \\( N_{b} \\) is the batch size. Shared with ECA, \\( \\alpha_{v} \\) and \\( \\alpha_{w} \\) are set to balance the feature alignment."
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "page_number",
|
| 882 |
+
"bbox": [
|
| 883 |
+
0.478,
|
| 884 |
+
0.929,
|
| 885 |
+
0.526,
|
| 886 |
+
0.941
|
| 887 |
+
],
|
| 888 |
+
"angle": 0,
|
| 889 |
+
"content": "16546"
|
| 890 |
+
}
|
| 891 |
+
],
|
| 892 |
+
[
|
| 893 |
+
{
|
| 894 |
+
"type": "table",
|
| 895 |
+
"bbox": [
|
| 896 |
+
0.129,
|
| 897 |
+
0.083,
|
| 898 |
+
0.88,
|
| 899 |
+
0.308
|
| 900 |
+
],
|
| 901 |
+
"angle": 0,
|
| 902 |
+
"content": "<table><tr><td>Methods</td><td>Decoder</td><td>B1</td><td>B2</td><td>B3</td><td>B4</td><td>M</td><td>RG</td><td>C</td><td>F1</td></tr><tr><td>HRNN(Krause et al., 2017)†</td><td>LSTM</td><td>42.3</td><td>28.3</td><td>21.2</td><td>17.1</td><td>27.2</td><td>39.3</td><td>20.9</td><td>70.2</td></tr><tr><td>Up-Down(Anderson et al., 2018)†</td><td>LSTM</td><td>45.8</td><td>34.8</td><td>28.5</td><td>24.4</td><td>31.6</td><td>42.5</td><td>27.3</td><td>70.2</td></tr><tr><td>WCL(Yan et al., 2021)†</td><td>LSTM</td><td>49.5</td><td>36.5</td><td>29.4</td><td>25.1</td><td>31.3</td><td>42.8</td><td>33.3</td><td>64.5</td></tr><tr><td>R2Gen-CMN(Chen et al., 2021)†</td><td>Transformer</td><td>49.1</td><td>40.0</td><td>34.4</td><td>30.1</td><td>29.9</td><td>48.6</td><td>84.2</td><td>69.8</td></tr><tr><td>XProNet(Wang et al., 2022a)†</td><td>Transformer</td><td>50.6</td><td>41.3</td><td>34.4</td><td>29.1</td><td>31.5</td><td>51.7</td><td>83.3</td><td>70.1</td></tr><tr><td>WGAM(Yang et al., 2021)†</td><td>LSTM</td><td>49.4</td><td>36.7</td><td>29.6</td><td>25.4</td><td>32.0</td><td>42.4</td><td>31.9</td><td>68.9</td></tr><tr><td>PGCA(Shi et al., 2023)†</td><td>LSTM</td><td>50.2</td><td>37.8</td><td>30.7</td><td>26.5</td><td>32.5</td><td>43.0</td><td>34.0</td><td>69.2</td></tr><tr><td>WGAM-HI(Zhang et al., 2023)†</td><td>LSTM</td><td>50.4</td><td>37.6</td><td>30.5</td><td>26.1</td><td>31.4</td><td>43.8</td><td>33.2</td><td>67.4</td></tr><tr><td>LLaVA-med(Li et al., 2023a)†</td><td>LLaMA3-8B</td><td>50.0</td><td>39.3</td><td>32.0</td><td>26.3</td><td>31.4</td><td>46.7</td><td>38.6</td><td>64.3</td></tr><tr><td>HILT(Liu et al., 2024)†</td><td>LLaMA3-8B</td><td>50.7</td><td>39.9</td><td>33.1</td><td>27.9</td><td>30.8</td><td>46.1</td><td>43.7</td><td>68.4</td></tr><tr><td>PromptMRG(Jin et al., 2024)†</td><td>LLaMA3-8B</td><td>48.1</td><td>38.3</td><td>31.6</td><td>26.5</td><td>31.0</td><td>47.4</td><td>50.3</td><td>69.2</td></tr><tr><td>Ours (Jieba tokenizer)</td><td>LLaMA3-8B</td><td>51.5</td><td>42.0</td><td>35.7</td><td>30.9</td><td>31.4</td><td>49.0</td><td>80.0</td><td>70.6</td></tr><tr><td>Ours (LLaMA tokenizer)</td><td>LLaMA3-8B</td><td>62.0</td><td>54.7</td><td>49.4</td><td>45.3</td><td>33.1</td><td>57.7</td><td>96.4</td><td>70.6</td></tr></table>"
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "table_caption",
|
| 906 |
+
"bbox": [
|
| 907 |
+
0.113,
|
| 908 |
+
0.324,
|
| 909 |
+
0.882,
|
| 910 |
+
0.355
|
| 911 |
+
],
|
| 912 |
+
"angle": 0,
|
| 913 |
+
"content": "Table 1: The performance of our PCRL compared with previous state-of-the-art models on the Brain CT report generation dataset CTRG-Brain. The best results are highlighted in bold. \\(\\dagger\\) denotes the re-implementation results."
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "title",
|
| 917 |
+
"bbox": [
|
| 918 |
+
0.114,
|
| 919 |
+
0.379,
|
| 920 |
+
0.274,
|
| 921 |
+
0.394
|
| 922 |
+
],
|
| 923 |
+
"angle": 0,
|
| 924 |
+
"content": "3.3 Joint Training"
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"bbox": [
|
| 929 |
+
0.113,
|
| 930 |
+
0.401,
|
| 931 |
+
0.49,
|
| 932 |
+
0.594
|
| 933 |
+
],
|
| 934 |
+
"angle": 0,
|
| 935 |
+
"content": "In the training stage, we jointly train the RG branch and the PCRL branch to maximize the utilization of multi-granularity visual-text representations. Instead of using separate modules to learn representation and generate medical reports (Li et al., 2023b), we use a unified LLM to bridge the gap between representation learning and report generation via two task-tailored instructions, i.e., representation instruction and generation instruction. This can transfer the representations learned by the PCRL branch to optimize the RG branch effectively, thereby generating accurate reports."
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"bbox": [
|
| 940 |
+
0.114,
|
| 941 |
+
0.596,
|
| 942 |
+
0.489,
|
| 943 |
+
0.627
|
| 944 |
+
],
|
| 945 |
+
"angle": 0,
|
| 946 |
+
"content": "Our final loss contains the above-mentioned losses, which can be formulated as:"
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "equation",
|
| 950 |
+
"bbox": [
|
| 951 |
+
0.178,
|
| 952 |
+
0.644,
|
| 953 |
+
0.488,
|
| 954 |
+
0.661
|
| 955 |
+
],
|
| 956 |
+
"angle": 0,
|
| 957 |
+
"content": "\\[\n\\mathcal {L} = \\mathcal {L} _ {g} + \\mathcal {L} _ {\\text {s e g}} + \\mathcal {L} _ {C L _ {e}} + \\mathcal {L} _ {C L _ {t}} \\tag {10}\n\\]"
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "title",
|
| 961 |
+
"bbox": [
|
| 962 |
+
0.114,
|
| 963 |
+
0.678,
|
| 964 |
+
0.26,
|
| 965 |
+
0.695
|
| 966 |
+
],
|
| 967 |
+
"angle": 0,
|
| 968 |
+
"content": "4 Experiments"
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "title",
|
| 972 |
+
"bbox": [
|
| 973 |
+
0.114,
|
| 974 |
+
0.706,
|
| 975 |
+
0.221,
|
| 976 |
+
0.72
|
| 977 |
+
],
|
| 978 |
+
"angle": 0,
|
| 979 |
+
"content": "4.1 Dataset"
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"bbox": [
|
| 984 |
+
0.113,
|
| 985 |
+
0.729,
|
| 986 |
+
0.49,
|
| 987 |
+
0.922
|
| 988 |
+
],
|
| 989 |
+
"angle": 0,
|
| 990 |
+
"content": "We validate the performance of our model using the CTRG-Brain (Tang et al., 2024) dataset. This dataset comprises 6,000 samples, containing a total of 160,336 CT images and 6,000 Chinese medical reports. Following the mainstream division method (Shi et al., 2023; Zhang et al., 2023), we split the dataset into a training set, a validation set, and a test set in a 7:1:2 ratio. For consistent processing, we divide the brain CT image samples into 8 layers based on expert knowledge, with each layer containing 3 continuous CT images, assigning each sample with 24 CT images."
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "title",
|
| 994 |
+
"bbox": [
|
| 995 |
+
0.509,
|
| 996 |
+
0.379,
|
| 997 |
+
0.707,
|
| 998 |
+
0.393
|
| 999 |
+
],
|
| 1000 |
+
"angle": 0,
|
| 1001 |
+
"content": "4.2 Evaluation Metrics"
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
0.508,
|
| 1007 |
+
0.406,
|
| 1008 |
+
0.885,
|
| 1009 |
+
0.599
|
| 1010 |
+
],
|
| 1011 |
+
"angle": 0,
|
| 1012 |
+
"content": "We chose Natural Language Generation (NLG) metrics and Clinical Evaluation (CE) metrics to evaluate our model's performance. NLG metrics include BLEU (Papineni et al., 2002),METEOR (Banerjee and Lavie), ROUGE-L (Lin, 2004), and CIDEr (Vedantam et al., 2015), denoted as B1, B2, B3,B4,M,RG,and C respectively. To measure the pathological accuracy, we use 24 keywords summarized by experienced radiologists to calculate the Clinical Evaluation (CE) metric(Shi et al., 2023; Zhang et al., 2023), i.e., F1 score, which is the harmonic mean of the precision and recall."
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "title",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
0.509,
|
| 1018 |
+
0.621,
|
| 1019 |
+
0.742,
|
| 1020 |
+
0.637
|
| 1021 |
+
],
|
| 1022 |
+
"angle": 0,
|
| 1023 |
+
"content": "4.3 Implementation Details"
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
0.508,
|
| 1029 |
+
0.648,
|
| 1030 |
+
0.885,
|
| 1031 |
+
0.922
|
| 1032 |
+
],
|
| 1033 |
+
"angle": 0,
|
| 1034 |
+
"content": "We reshape the size of image to \\(512 \\times 512\\) pixels and used a ResNet101 to extract image features, which is pre-trained on the ImageNet dataset and fine-tuned on the CQ500 dataset (Chilamkurthy et al., 2018). For our large language model, we utilize LLaMA3-8B (Meta, 2024), which is quantized to 4-bit, and use the LoRa (Hu et al., 2021) for parameter-efficient fine-tuning. The overall trainable parameter quantity of our model is \\(229.9\\mathrm{M}\\) with \\(3.4\\mathrm{M}\\) parameters in LLM (only \\(0.04\\%\\)). During training, we use the AdamW optimizer with a learning rate of 1e-4. The batch size is 4, with 1050 training steps per epoch. For testing, we set the temperature coefficient of the large model to 0.6 and the top-p value to 0.9. The model is implemented using PyTorch 2.3.0, and the entire training process is conducted on a single RTX 4090 GPU."
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "page_number",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
0.478,
|
| 1040 |
+
0.928,
|
| 1041 |
+
0.526,
|
| 1042 |
+
0.941
|
| 1043 |
+
],
|
| 1044 |
+
"angle": 0,
|
| 1045 |
+
"content": "16547"
|
| 1046 |
+
}
|
| 1047 |
+
],
|
| 1048 |
+
[
|
| 1049 |
+
{
|
| 1050 |
+
"type": "table",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
0.128,
|
| 1053 |
+
0.083,
|
| 1054 |
+
0.878,
|
| 1055 |
+
0.228
|
| 1056 |
+
],
|
| 1057 |
+
"angle": 0,
|
| 1058 |
+
"content": "<table><tr><td rowspan=\"2\">Methods</td><td colspan=\"2\">Representation</td><td colspan=\"3\">Module Loss</td><td rowspan=\"2\">B1</td><td rowspan=\"2\">B2</td><td rowspan=\"2\">B3</td><td rowspan=\"2\">B4</td><td rowspan=\"2\">M</td><td rowspan=\"2\">RG</td><td rowspan=\"2\">C</td></tr><tr><td>Visual</td><td>Textual</td><td>LSCA</td><td>LECA</td><td>LTCA</td></tr><tr><td>Baseline</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>49.6</td><td>39.9</td><td>33.4</td><td>28.6</td><td>30.7</td><td>48.4</td><td>50.8</td></tr><tr><td>(a)</td><td>X</td><td>X</td><td>✓</td><td>X</td><td>X</td><td>51.3</td><td>41.0</td><td>34.5</td><td>29.7</td><td>31.2</td><td>47.7</td><td>70.8</td></tr><tr><td>(b)</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>51.3</td><td>41.4</td><td>35.0</td><td>30.1</td><td>31.2</td><td>48.7</td><td>71.3</td></tr><tr><td>(c)</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>X</td><td>51.7</td><td>41.4</td><td>34.6</td><td>29.5</td><td>31.2</td><td>48.0</td><td>72.8</td></tr><tr><td>(d)</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>✓</td><td>48.9</td><td>38.8</td><td>32.2</td><td>27.4</td><td>30.0</td><td>46.3</td><td>58.3</td></tr><tr><td>(e)</td><td>✓</td><td>✓(Bert)</td><td>✓</td><td>✓</td><td>✓</td><td>49.5</td><td>39.0</td><td>31.8</td><td>26.3</td><td>30.4</td><td>45.4</td><td>48.5</td></tr><tr><td>Ours</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>51.5</td><td>42.0</td><td>35.7</td><td>30.9</td><td>31.4</td><td>49.0</td><td>80.0</td></tr></table>"
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "table_caption",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
0.113,
|
| 1064 |
+
0.237,
|
| 1065 |
+
0.885,
|
| 1066 |
+
0.281
|
| 1067 |
+
],
|
| 1068 |
+
"angle": 0,
|
| 1069 |
+
"content": "Table 2: Ablation studies of our proposed method. The Baseline model is an encoder-decoder framework without an alignment mechanism. (a), (b), (c), (d) and (e) respectively denote the use of different representations (i.e., visual and textual in ECA and TCA) and module losses."
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "title",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
0.114,
|
| 1075 |
+
0.306,
|
| 1076 |
+
0.332,
|
| 1077 |
+
0.323
|
| 1078 |
+
],
|
| 1079 |
+
"angle": 0,
|
| 1080 |
+
"content": "4.4 Quantitative Analysis"
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
0.113,
|
| 1086 |
+
0.334,
|
| 1087 |
+
0.49,
|
| 1088 |
+
0.576
|
| 1089 |
+
],
|
| 1090 |
+
"angle": 0,
|
| 1091 |
+
"content": "We compare the proposed PCRL with some competitive brain CT report generation methods (WGAM (Yang et al., 2021), PGCA (Shi et al., 2023), WGAM-HI(Zhang et al., 2023)). Besides, we also reproduced some SOTA models in image captioning (HRNN (Krause et al., 2017), Up-Down (Anderson et al., 2018)) and chest Xray report generation (WCL (Yan et al., 2021), R2Gen-CMN (Chen et al., 2021), XProNet (Wang et al., 2022a)) for comprehensive comparisons on CTRG-Brain dataset. What's more, for fair comparisons, We also reproduce several related LLM-based methods (LLaVA-Med(Li et al., 2023a), HILT(Liu et al., 2024), PromptMRG(Jin et al., 2024)with the same LLM decoder."
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
0.113,
|
| 1097 |
+
0.58,
|
| 1098 |
+
0.49,
|
| 1099 |
+
0.87
|
| 1100 |
+
],
|
| 1101 |
+
"angle": 0,
|
| 1102 |
+
"content": "As shown in Table 1, our method outperforms others across most evaluation metrics. WGAM and WGAM-HI employ weakly-supervised visual attention to extract key visual features, resulting in higher BLEU scores. With contrastive learning for cross-modal alignment, WCL and PGCA can effectively learn relations between CT images and reports, achieving better results. However, due to the lack of training data, the above methods still produce reports that fall short in fluency and readability. Here's a refined version of your sentence: The LLM-based methods (LLaVA-med, HILT, PromptMRG) demonstrate poorer performance compared to traditional transformer-based methods (R2Gen-CMN, XProNet). This suggests that prior knowledge from pretrained large models, without further cross-modal alignment, may lead to hallucinations in report generation."
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
0.113,
|
| 1108 |
+
0.874,
|
| 1109 |
+
0.49,
|
| 1110 |
+
0.922
|
| 1111 |
+
],
|
| 1112 |
+
"angle": 0,
|
| 1113 |
+
"content": "Our PCRL achieves fine-grained cross-modal alignment by leveraging a series of pre-trained large models, generating more fluent reports and"
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
0.508,
|
| 1119 |
+
0.306,
|
| 1120 |
+
0.885,
|
| 1121 |
+
0.401
|
| 1122 |
+
],
|
| 1123 |
+
"angle": 0,
|
| 1124 |
+
"content": "achieves the best performance compared to other methods. It is noteworthy that we tested our method using the Jieba and LLaMA tokenizers respectively to compute NLG scores, with the latter achieving the best performance across all NLG metrics."
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
0.508,
|
| 1130 |
+
0.402,
|
| 1131 |
+
0.887,
|
| 1132 |
+
0.514
|
| 1133 |
+
],
|
| 1134 |
+
"angle": 0,
|
| 1135 |
+
"content": "This discrepancy may be due to differences in tokenization methods used during training. While other models employ the traditional Jieba tool for Chinese word tokenization, our PCRL follows more advanced BPE-based subword tokenization. Nevertheless, our model also achieves competitive results in overall metrics."
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "title",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
0.509,
|
| 1141 |
+
0.526,
|
| 1142 |
+
0.676,
|
| 1143 |
+
0.541
|
| 1144 |
+
],
|
| 1145 |
+
"angle": 0,
|
| 1146 |
+
"content": "4.5 Ablation Study"
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
0.508,
|
| 1152 |
+
0.546,
|
| 1153 |
+
0.885,
|
| 1154 |
+
0.722
|
| 1155 |
+
],
|
| 1156 |
+
"angle": 0,
|
| 1157 |
+
"content": "To evaluate the effect of each component in PCRL, we have done plenty of ablation studies, as shown in Table 2. Baseline is the standard encoder-decoder (ResNet101-LLaMA3) architecture without alignment. By progressively adding visual or textual representation (visual and textual) and the module losses \\((\\mathcal{L}_{SCA},\\mathcal{L}_{ECA}\\) and \\(\\mathcal{L}_{TCA})\\) , respectively denoting the incorporation of two modalities of representations and the utilization of three pathological clue-driven alignments (i.e., SCA, ECA, and TCA)."
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
0.508,
|
| 1163 |
+
0.724,
|
| 1164 |
+
0.887,
|
| 1165 |
+
0.901
|
| 1166 |
+
],
|
| 1167 |
+
"angle": 0,
|
| 1168 |
+
"content": "By comparing (a) with the baseline, we observe that incorporating the segmentation alignment significantly enhances the model's performance. This demonstrates that our SCA method effectively filters out irrelevant information from CT images and extracts crucial pathology-related visual regions. In contrast, with the implementation of ECA, (b) achieves comparable or better performance across all metrics compared to (a). This indicates that fine-grained cross-modal pathological entity alignment can effectively learn strongly correlated visual-text"
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "page_footnote",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
0.536,
|
| 1174 |
+
0.907,
|
| 1175 |
+
0.722,
|
| 1176 |
+
0.922
|
| 1177 |
+
],
|
| 1178 |
+
"angle": 0,
|
| 1179 |
+
"content": "https://github.com/fxsjy/jieba"
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "page_number",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
0.478,
|
| 1185 |
+
0.928,
|
| 1186 |
+
0.526,
|
| 1187 |
+
0.941
|
| 1188 |
+
],
|
| 1189 |
+
"angle": 0,
|
| 1190 |
+
"content": "16548"
|
| 1191 |
+
}
|
| 1192 |
+
],
|
| 1193 |
+
[
|
| 1194 |
+
{
|
| 1195 |
+
"type": "table",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
0.118,
|
| 1198 |
+
0.082,
|
| 1199 |
+
0.885,
|
| 1200 |
+
0.293
|
| 1201 |
+
],
|
| 1202 |
+
"angle": 0,
|
| 1203 |
+
"content": "<table><tr><td>Ground Truth Sample</td><td>Ground Truth Entities</td><td>Retrieved Masks</td><td>Generated Reports</td><td></td></tr><tr><td>...</td><td>基底节区(basal ganglia):左侧基底节区见小片状低密度影 (Small patchy low-density shadows visible in the left basal ganglia area)</td><td></td><td>双侧大脑半球对称,两侧基底节区见斑点状低密度影,中线结构居中,脑沟、脑池、蛛网膜下腔稍增宽,脑回变小。(Bilateral cerebral hemispheres are symmetrical, with punctate low-density shadows in the basal ganglia on both sides. The midline structure is centered, and the sulcus, cistern, and subarachnoid space are slightly widened, while the gyrus is smaller.)</td><td rowspan=\"3\">Baseline</td></tr><tr><td rowspan=\"3\">双侧大脑半球对称,左侧基底节区见小片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑,脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A small patch of low-density shadow is seen in the left basal ganglia region, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal.)</td><td>脑室(ventricle):各脑室、脑池大小形态正常(The size and shape of all ventricles and cisterns are normal.)</td><td rowspan=\"3\"></td><td>双侧大脑半球对称,右侧丘脑见小片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑、脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A small patch of low-density shadow is seen in the right thalamus, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal. The midline structure is centered. There are no abnormalities in the cerebellum and brainstem below the tentorium.)</td></tr><tr><td>中线(midline structure):中线结构居中 (The midline structure centered)</td><td rowspan=\"2\">双侧大脑半球对称,左侧基底节区见斑片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑、脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A patch of low-density shadow is seen in the left basal ganglia region, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal. The midline structure is centered. There are no abnormalities in the cerebellum and brainstem below the tentorium.)</td></tr><tr><td>脑干(brainstem):幕下小脑,脑干无异常(There are no abnormalities in the cerebellum and brainstem below the tentorium)</td><td>Ours</td></tr></table>"
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "image_caption",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
0.113,
|
| 1209 |
+
0.302,
|
| 1210 |
+
0.885,
|
| 1211 |
+
0.375
|
| 1212 |
+
],
|
| 1213 |
+
"angle": 0,
|
| 1214 |
+
"content": "Figure 3: Visualization of report generation and mask segmentation. Given the ground truth sample and corresponding entities, the retrieved entity masks are listed in the third column. Reports generated by Baseline, WGAM-HI, and our model are listed in the fourth column. Different colors denote the specific entity words and entity masks, respectively. The English translation is given for a better understanding of the original Chinese reports in CTRG-Brain."
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
0.113,
|
| 1220 |
+
0.399,
|
| 1221 |
+
0.489,
|
| 1222 |
+
0.544
|
| 1223 |
+
],
|
| 1224 |
+
"angle": 0,
|
| 1225 |
+
"content": "representations, thus better supporting medical report generation. Besides, (c) combines both SCA and ECA and shows improved performance in the B1 and C metrics, which are highly correlated with keyword frequency. However, it slightly underperforms in the B2, B4 and RG metrics compared to (b), which is more related to overall text style.(d) showed SCA is essential for focusing on entity details and maintaining the thematic style."
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
0.113,
|
| 1231 |
+
0.546,
|
| 1232 |
+
0.489,
|
| 1233 |
+
0.658
|
| 1234 |
+
],
|
| 1235 |
+
"angle": 0,
|
| 1236 |
+
"content": "Notably, to validate the contribution of joint representation learning, we replace the language model with Bert model for textual representation during alignment in (e). The result indicated that shared representation through joint learning with unified language model can effectively improve the overall quality of the task."
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "title",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
0.114,
|
| 1242 |
+
0.673,
|
| 1243 |
+
0.32,
|
| 1244 |
+
0.689
|
| 1245 |
+
],
|
| 1246 |
+
"angle": 0,
|
| 1247 |
+
"content": "4.6 Qualitative Analysis"
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
0.113,
|
| 1253 |
+
0.697,
|
| 1254 |
+
0.49,
|
| 1255 |
+
0.922
|
| 1256 |
+
],
|
| 1257 |
+
"angle": 0,
|
| 1258 |
+
"content": "We visualize the brain CT reports generated by baseline, WGAM-HI (Zhang et al., 2023) and our model in Figure 3. Given the ground truth brain CT sample and entity data, our model generates better brain CT report with the most accurate entity words (e.g. basal ganglia, ventricle, and brainstem) among the competitors, which demonstrates the effectiveness of using diverse medical clues to learn enriched multi-modal representations. It can be also seen that compared with the baseline, the report generated by our model has a better semantic structure, indicating the contribution of employing a unified LLM to transfer useful representations. Besides, we also find that the retrieved entity masks"
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "image",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
0.524,
|
| 1264 |
+
0.4,
|
| 1265 |
+
0.87,
|
| 1266 |
+
0.493
|
| 1267 |
+
],
|
| 1268 |
+
"angle": 0,
|
| 1269 |
+
"content": null
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "image_caption",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
0.509,
|
| 1275 |
+
0.505,
|
| 1276 |
+
0.883,
|
| 1277 |
+
0.536
|
| 1278 |
+
],
|
| 1279 |
+
"angle": 0,
|
| 1280 |
+
"content": "Figure 4: Visualization of the segmentation masks gallery generated by SAM for a single sample."
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
0.507,
|
| 1286 |
+
0.561,
|
| 1287 |
+
0.885,
|
| 1288 |
+
0.69
|
| 1289 |
+
],
|
| 1290 |
+
"angle": 0,
|
| 1291 |
+
"content": "from segmentation masks gallery (see Figure 4) can generally match related entity words at both levels of visual and semantic. For example, the mask of \"midline structure\" and \"brainstem\" matches the empirical scan slice and fine-grained region chosen by experienced radiologists. This guarantees the model to mine accurate visual cranial patterns, therefore generating high-quality reports."
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "title",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
0.509,
|
| 1297 |
+
0.702,
|
| 1298 |
+
0.642,
|
| 1299 |
+
0.717
|
| 1300 |
+
],
|
| 1301 |
+
"angle": 0,
|
| 1302 |
+
"content": "5 Conclusion"
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
0.507,
|
| 1308 |
+
0.729,
|
| 1309 |
+
0.885,
|
| 1310 |
+
0.922
|
| 1311 |
+
],
|
| 1312 |
+
"angle": 0,
|
| 1313 |
+
"content": "We propose a novel model to mine pathological clues for enhancing multi-modal representations and seamlessly transfer them into report generation. First, through carefully designed segmentation clue alignment, entity clue alignment, and theme clue alignment, the diverse and precise feature representation can be well-constructed. Second, we transfer the learned representation to boost the brain CT report generation via a unified LLM prompted by task-tailored instructions. Experiments demonstrate the effectiveness of our model in generating pathologically accurate reports."
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "page_number",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
0.478,
|
| 1319 |
+
0.928,
|
| 1320 |
+
0.526,
|
| 1321 |
+
0.941
|
| 1322 |
+
],
|
| 1323 |
+
"angle": 0,
|
| 1324 |
+
"content": "16549"
|
| 1325 |
+
}
|
| 1326 |
+
],
|
| 1327 |
+
[
|
| 1328 |
+
{
|
| 1329 |
+
"type": "title",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
0.115,
|
| 1332 |
+
0.085,
|
| 1333 |
+
0.221,
|
| 1334 |
+
0.099
|
| 1335 |
+
],
|
| 1336 |
+
"angle": 0,
|
| 1337 |
+
"content": "Limitations"
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
0.113,
|
| 1343 |
+
0.11,
|
| 1344 |
+
0.493,
|
| 1345 |
+
0.368
|
| 1346 |
+
],
|
| 1347 |
+
"angle": 0,
|
| 1348 |
+
"content": "Although the segmentation clues retrieved by MedClip (Wang et al., 2022b) can generally match corresponding pathological entities and help the model neglect redundant visual information, it should be noted that a part of retrieved entity masks may not be precise. This is because MedClip is mainly pretrained by chest X-ray data with limited brain CT samples. Thus, addressing this challenge is imperative for the research community. In the future, we will work on exploring useful approaches. One potential approach is to train a unified text-prompted medical segmentation model towards 3D brain CT scans, which can not only be employed to offer fine-grained visual information for medical report generation but also for other related tasks, e.g. medical VQA."
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "title",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
0.115,
|
| 1354 |
+
0.395,
|
| 1355 |
+
0.214,
|
| 1356 |
+
0.41
|
| 1357 |
+
],
|
| 1358 |
+
"angle": 0,
|
| 1359 |
+
"content": "References"
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "ref_text",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
0.116,
|
| 1365 |
+
0.418,
|
| 1366 |
+
0.49,
|
| 1367 |
+
0.512
|
| 1368 |
+
],
|
| 1369 |
+
"angle": 0,
|
| 1370 |
+
"content": "Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. 2018. Bottom-up and top-down attention for image captioning and visual question answering. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 6077-6086."
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "ref_text",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
0.117,
|
| 1376 |
+
0.521,
|
| 1377 |
+
0.489,
|
| 1378 |
+
0.576
|
| 1379 |
+
],
|
| 1380 |
+
"angle": 0,
|
| 1381 |
+
"content": "S Banerjee and A Lavie. Meteor: an automatic metric for mt evaluation with high levels of correlation with human judgments. Proceedings of ACL-WMT, pages 65-72."
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "ref_text",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
0.117,
|
| 1387 |
+
0.585,
|
| 1388 |
+
0.49,
|
| 1389 |
+
0.678
|
| 1390 |
+
],
|
| 1391 |
+
"angle": 0,
|
| 1392 |
+
"content": "Iz Beltagy, Kyle Lo, and Arman Cohan. 2019. Scibert: A pretrained language model for scientific text. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP 2019, Hong Kong, China, November 3-7, 2019, pages 3613-3618."
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "ref_text",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
0.117,
|
| 1398 |
+
0.688,
|
| 1399 |
+
0.49,
|
| 1400 |
+
0.768
|
| 1401 |
+
],
|
| 1402 |
+
"angle": 0,
|
| 1403 |
+
"content": "Shenshen Bu, Yujie Song, Taiji Li, and Zhiming Dai. 2024. Dynamic knowledge prompt for chest x-ray report generation. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation, LREC/COLING, pages 5425-5436. ELRA and ICCL."
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "ref_text",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
0.117,
|
| 1409 |
+
0.778,
|
| 1410 |
+
0.49,
|
| 1411 |
+
0.884
|
| 1412 |
+
],
|
| 1413 |
+
"angle": 0,
|
| 1414 |
+
"content": "Zhihong Chen, Yaling Shen, Yan Song, and Xiang Wan. 2021. Cross-modal memory networks for radiology report generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pages 5904-5914."
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "ref_text",
|
| 1418 |
+
"bbox": [
|
| 1419 |
+
0.117,
|
| 1420 |
+
0.894,
|
| 1421 |
+
0.49,
|
| 1422 |
+
0.922
|
| 1423 |
+
],
|
| 1424 |
+
"angle": 0,
|
| 1425 |
+
"content": "Zhihong Chen, Yan Song, Tsung-Hui Chang, and Xi-ang Wan. 2020. Generating radiology reports via"
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "list",
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
0.116,
|
| 1431 |
+
0.418,
|
| 1432 |
+
0.49,
|
| 1433 |
+
0.922
|
| 1434 |
+
],
|
| 1435 |
+
"angle": 0,
|
| 1436 |
+
"content": null
|
| 1437 |
+
},
|
| 1438 |
+
{
|
| 1439 |
+
"type": "ref_text",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
0.529,
|
| 1442 |
+
0.086,
|
| 1443 |
+
0.885,
|
| 1444 |
+
0.14
|
| 1445 |
+
],
|
| 1446 |
+
"angle": 0,
|
| 1447 |
+
"content": "memory-driven transformer. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, EMNLP 2020, Online, November 16-20, 2020, pages 1439-1449."
|
| 1448 |
+
},
|
| 1449 |
+
{
|
| 1450 |
+
"type": "ref_text",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
0.512,
|
| 1453 |
+
0.153,
|
| 1454 |
+
0.885,
|
| 1455 |
+
0.193
|
| 1456 |
+
],
|
| 1457 |
+
"angle": 0,
|
| 1458 |
+
"content": "Zhixuan Chen, Luyang Luo, Yequan Bie, and Hao Chen. 2024. Dia-llama: Towards large language model-driven CT report generation. CoRR, abs/2403.16386."
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"type": "ref_text",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
0.512,
|
| 1464 |
+
0.206,
|
| 1465 |
+
0.885,
|
| 1466 |
+
0.297
|
| 1467 |
+
],
|
| 1468 |
+
"angle": 0,
|
| 1469 |
+
"content": "Sasank Chilamkurthy, Rohit Ghosh, Swetha Tanamala, Mustafa Biviji, Norbert G. Campeau, Vasantha Kumar Venugopal, Vidur Mahajan, Pooja Rao, and Prashant Warier. 2018. Development and validation of deep learning algorithms for detection of critical findings in head ct scans. arXiv preprint arXiv:1803.05854."
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "ref_text",
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
0.512,
|
| 1475 |
+
0.311,
|
| 1476 |
+
0.885,
|
| 1477 |
+
0.378
|
| 1478 |
+
],
|
| 1479 |
+
"angle": 0,
|
| 1480 |
+
"content": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 770-778."
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "ref_text",
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
0.512,
|
| 1486 |
+
0.39,
|
| 1487 |
+
0.885,
|
| 1488 |
+
0.456
|
| 1489 |
+
],
|
| 1490 |
+
"angle": 0,
|
| 1491 |
+
"content": "Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685."
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "ref_text",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
0.512,
|
| 1497 |
+
0.47,
|
| 1498 |
+
0.885,
|
| 1499 |
+
0.511
|
| 1500 |
+
],
|
| 1501 |
+
"angle": 0,
|
| 1502 |
+
"content": "Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. 2024. The platonic representation hypothesis. arXiv preprint arXiv:2405.07987."
|
| 1503 |
+
},
|
| 1504 |
+
{
|
| 1505 |
+
"type": "ref_text",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
0.512,
|
| 1508 |
+
0.524,
|
| 1509 |
+
0.885,
|
| 1510 |
+
0.578
|
| 1511 |
+
],
|
| 1512 |
+
"angle": 0,
|
| 1513 |
+
"content": "Haibo Jin, Haoxuan Che, Yi Lin, and Hao Chen. 2024. Promptmrg: Diagnosis-driven prompts for medical report generation. In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI, pages 2607-2615."
|
| 1514 |
+
},
|
| 1515 |
+
{
|
| 1516 |
+
"type": "ref_text",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
0.512,
|
| 1519 |
+
0.59,
|
| 1520 |
+
0.885,
|
| 1521 |
+
0.643
|
| 1522 |
+
],
|
| 1523 |
+
"angle": 0,
|
| 1524 |
+
"content": "Baoyu Jing, Zeya Wang, and Eric Xing. 2020. Show, describe and conclude: On exploiting the structure information of chest x-ray reports. arXiv preprint arXiv:2004.12274."
|
| 1525 |
+
},
|
| 1526 |
+
{
|
| 1527 |
+
"type": "ref_text",
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
0.512,
|
| 1530 |
+
0.656,
|
| 1531 |
+
0.885,
|
| 1532 |
+
0.736
|
| 1533 |
+
],
|
| 1534 |
+
"angle": 0,
|
| 1535 |
+
"content": "Baoyu Jing, Pengtao Xie, and Eric P. Xing. 2018. On the automatic generation of medical imaging reports. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, 2018, Melbourne, Australia, July 15-20, 2018, Volume 1: Long Papers, pages 2577-2586."
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"type": "ref_text",
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
0.512,
|
| 1541 |
+
0.749,
|
| 1542 |
+
0.885,
|
| 1543 |
+
0.828
|
| 1544 |
+
],
|
| 1545 |
+
"angle": 0,
|
| 1546 |
+
"content": "Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. 2023. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015-4026."
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "ref_text",
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
0.512,
|
| 1552 |
+
0.842,
|
| 1553 |
+
0.885,
|
| 1554 |
+
0.922
|
| 1555 |
+
],
|
| 1556 |
+
"angle": 0,
|
| 1557 |
+
"content": "Jonathan Krause, Justin Johnson, Ranjay Krishna, and Li Fei-Fei. 2017. A hierarchical approach for generating descriptive image paragraphs. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 3337-3345."
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"type": "list",
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
0.512,
|
| 1563 |
+
0.086,
|
| 1564 |
+
0.885,
|
| 1565 |
+
0.922
|
| 1566 |
+
],
|
| 1567 |
+
"angle": 0,
|
| 1568 |
+
"content": null
|
| 1569 |
+
},
|
| 1570 |
+
{
|
| 1571 |
+
"type": "page_number",
|
| 1572 |
+
"bbox": [
|
| 1573 |
+
0.478,
|
| 1574 |
+
0.928,
|
| 1575 |
+
0.526,
|
| 1576 |
+
0.941
|
| 1577 |
+
],
|
| 1578 |
+
"angle": 0,
|
| 1579 |
+
"content": "16550"
|
| 1580 |
+
}
|
| 1581 |
+
],
|
| 1582 |
+
[
|
| 1583 |
+
{
|
| 1584 |
+
"type": "ref_text",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
0.116,
|
| 1587 |
+
0.086,
|
| 1588 |
+
0.487,
|
| 1589 |
+
0.138
|
| 1590 |
+
],
|
| 1591 |
+
"angle": 0,
|
| 1592 |
+
"content": "C Li, C Wong, S Zhang, et al. 2023a. Llava-med: training a large language-and-vision assistant for biomedicine in one day. arxiv. arXiv preprint arXiv:2306.00890."
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "ref_text",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
0.117,
|
| 1598 |
+
0.147,
|
| 1599 |
+
0.488,
|
| 1600 |
+
0.279
|
| 1601 |
+
],
|
| 1602 |
+
"angle": 0,
|
| 1603 |
+
"content": "Christy Y. Li, Xiaodan Liang, Zhiting Hu, and Eric P. Xing. 2019. Knowledge-driven encode, retrieve, paraphrase for medical image report generation. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019, pages 6666-6673."
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "ref_text",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
0.117,
|
| 1609 |
+
0.287,
|
| 1610 |
+
0.487,
|
| 1611 |
+
0.352
|
| 1612 |
+
],
|
| 1613 |
+
"angle": 0,
|
| 1614 |
+
"content": "Mingjie Li, Bingqian Lin, Zicong Chen, Haokun Lin, Xiaodan Liang, and Xiaojun Chang. 2023b. Dynamic graph enhanced contrastive learning for chest x-ray report generation. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3334-3343."
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "ref_text",
|
| 1618 |
+
"bbox": [
|
| 1619 |
+
0.117,
|
| 1620 |
+
0.361,
|
| 1621 |
+
0.487,
|
| 1622 |
+
0.414
|
| 1623 |
+
],
|
| 1624 |
+
"angle": 0,
|
| 1625 |
+
"content": "Yuan Li, Xiaodan Liang, Zhiting Hu, and Eric P Xing. 2018. Hybrid retrieval-generation reinforced agent for medical image report generation. Advances in neural information processing systems, 31."
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "ref_text",
|
| 1629 |
+
"bbox": [
|
| 1630 |
+
0.117,
|
| 1631 |
+
0.422,
|
| 1632 |
+
0.486,
|
| 1633 |
+
0.462
|
| 1634 |
+
],
|
| 1635 |
+
"angle": 0,
|
| 1636 |
+
"content": "Chin-Yew Lin. 2004. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81."
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"type": "ref_text",
|
| 1640 |
+
"bbox": [
|
| 1641 |
+
0.117,
|
| 1642 |
+
0.47,
|
| 1643 |
+
0.487,
|
| 1644 |
+
0.536
|
| 1645 |
+
],
|
| 1646 |
+
"angle": 0,
|
| 1647 |
+
"content": "Che Liu, Zhongwei Wan, Yuqi Wang, Hui Shen, Haozhe Wang, Kangyu Zheng, Mi Zhang, and Rossella Arcucci. 2024. Benchmarking and boosting radiology report generation for 3d high-resolution medical images. arXiv preprint arXiv:2406.07146."
|
| 1648 |
+
},
|
| 1649 |
+
{
|
| 1650 |
+
"type": "ref_text",
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
0.117,
|
| 1653 |
+
0.544,
|
| 1654 |
+
0.487,
|
| 1655 |
+
0.65
|
| 1656 |
+
],
|
| 1657 |
+
"angle": 0,
|
| 1658 |
+
"content": "Fenglin Liu, Shen Ge, and Xian Wu. 2021a. Competence-based multimodal curriculum learning for medical report generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pages 3001-3012."
|
| 1659 |
+
},
|
| 1660 |
+
{
|
| 1661 |
+
"type": "ref_text",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
0.117,
|
| 1664 |
+
0.658,
|
| 1665 |
+
0.487,
|
| 1666 |
+
0.737
|
| 1667 |
+
],
|
| 1668 |
+
"angle": 0,
|
| 1669 |
+
"content": "Fenglin Liu, Xian Wu, Shen Ge, Wei Fan, and Yuexian Zou. 2021b. Exploring and distilling posterior and prior knowledge for radiology report generation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2021, virtual, June 19-25, 2021, pages 13753-13762."
|
| 1670 |
+
},
|
| 1671 |
+
{
|
| 1672 |
+
"type": "ref_text",
|
| 1673 |
+
"bbox": [
|
| 1674 |
+
0.117,
|
| 1675 |
+
0.745,
|
| 1676 |
+
0.487,
|
| 1677 |
+
0.798
|
| 1678 |
+
],
|
| 1679 |
+
"angle": 0,
|
| 1680 |
+
"content": "Fenglin Liu, Changchang Yin, Xian Wu, Shen Ge, Yuexian Zou, Ping Zhang, and Xu Sun. 2021c. Contrastive attention for automatic chest x-ray report generation. arXiv preprint arXiv:2106.06965."
|
| 1681 |
+
},
|
| 1682 |
+
{
|
| 1683 |
+
"type": "ref_text",
|
| 1684 |
+
"bbox": [
|
| 1685 |
+
0.117,
|
| 1686 |
+
0.807,
|
| 1687 |
+
0.486,
|
| 1688 |
+
0.833
|
| 1689 |
+
],
|
| 1690 |
+
"angle": 0,
|
| 1691 |
+
"content": "AI Meta. 2024. Introducing meta llama 3: The most capable openly available llm to date. Meta AI."
|
| 1692 |
+
},
|
| 1693 |
+
{
|
| 1694 |
+
"type": "ref_text",
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
0.117,
|
| 1697 |
+
0.842,
|
| 1698 |
+
0.487,
|
| 1699 |
+
0.92
|
| 1700 |
+
],
|
| 1701 |
+
"angle": 0,
|
| 1702 |
+
"content": "Kishore Papineni, Salim Roukos, Todd Ward, and Wei Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, July 6-12, 2002, Philadelphia, PA, USA, pages 311-318."
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"type": "list",
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
0.116,
|
| 1708 |
+
0.086,
|
| 1709 |
+
0.488,
|
| 1710 |
+
0.92
|
| 1711 |
+
],
|
| 1712 |
+
"angle": 0,
|
| 1713 |
+
"content": null
|
| 1714 |
+
},
|
| 1715 |
+
{
|
| 1716 |
+
"type": "ref_text",
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
0.513,
|
| 1719 |
+
0.086,
|
| 1720 |
+
0.882,
|
| 1721 |
+
0.191
|
| 1722 |
+
],
|
| 1723 |
+
"angle": 0,
|
| 1724 |
+
"content": "Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, pages 8748-8763."
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"type": "ref_text",
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
0.512,
|
| 1730 |
+
0.201,
|
| 1731 |
+
0.882,
|
| 1732 |
+
0.253
|
| 1733 |
+
],
|
| 1734 |
+
"angle": 0,
|
| 1735 |
+
"content": "Qingya Shen, Yanzhao Shi, Xiaodan Zhang, Junzhong Ji, Ying Liu, and Huimin Xu. 2024. Ghcl: Gaussian heuristic curriculum learning for brain ct report generation. Multimedia Systems, 30(2):69."
|
| 1736 |
+
},
|
| 1737 |
+
{
|
| 1738 |
+
"type": "ref_text",
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
0.512,
|
| 1741 |
+
0.263,
|
| 1742 |
+
0.882,
|
| 1743 |
+
0.316
|
| 1744 |
+
],
|
| 1745 |
+
"angle": 0,
|
| 1746 |
+
"content": "Yanzhao Shi, Junzhong Ji, Xiaodan Zhang, Ying Liu, Zheng Wang, and Huimin Xu. 2024. Prior tissue knowledge-driven contrastive learning for brain CT report generation. Multim. Syst., 30(2):98."
|
| 1747 |
+
},
|
| 1748 |
+
{
|
| 1749 |
+
"type": "ref_text",
|
| 1750 |
+
"bbox": [
|
| 1751 |
+
0.512,
|
| 1752 |
+
0.326,
|
| 1753 |
+
0.882,
|
| 1754 |
+
0.405
|
| 1755 |
+
],
|
| 1756 |
+
"angle": 0,
|
| 1757 |
+
"content": "Yanzhao Shi, Junzhong Ji, Xiaodan Zhang, Liangqiong Qu, and Ying Liu. 2023. Granularity matters: Pathological graph-driven cross-modal alignment for brain CT report generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP, pages 6617-6630."
|
| 1758 |
+
},
|
| 1759 |
+
{
|
| 1760 |
+
"type": "ref_text",
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
0.512,
|
| 1763 |
+
0.414,
|
| 1764 |
+
0.882,
|
| 1765 |
+
0.48
|
| 1766 |
+
],
|
| 1767 |
+
"angle": 0,
|
| 1768 |
+
"content": "Yuhao Tang, Haichen Yang, Liyan Zhang, and Ye Yuan. 2024. Work like a doctor: Unifying scan localizer and dynamic generator for automated computed tomography report generation. *Expert Systems with Applications*, 237:121442."
|
| 1769 |
+
},
|
| 1770 |
+
{
|
| 1771 |
+
"type": "ref_text",
|
| 1772 |
+
"bbox": [
|
| 1773 |
+
0.512,
|
| 1774 |
+
0.49,
|
| 1775 |
+
0.882,
|
| 1776 |
+
0.568
|
| 1777 |
+
],
|
| 1778 |
+
"angle": 0,
|
| 1779 |
+
"content": "Omkar Thawakar, Abdelrahman M. Shaker, Sahal Shaji Mullappilly, Hisham Cholakkal, Rao Muhammad Anwer, Salman H. Khan, Jorma Laaksonen, and Fahad Shahbaz Khan. 2023. Xraygpt: Chest radiographs summarization using medical vision-language models. CoRR, abs/2306.07971."
|
| 1780 |
+
},
|
| 1781 |
+
{
|
| 1782 |
+
"type": "ref_text",
|
| 1783 |
+
"bbox": [
|
| 1784 |
+
0.512,
|
| 1785 |
+
0.578,
|
| 1786 |
+
0.882,
|
| 1787 |
+
0.618
|
| 1788 |
+
],
|
| 1789 |
+
"angle": 0,
|
| 1790 |
+
"content": "Aäron van den Oord, Yazhe Li, and Oriol Vinyals. 2018. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748."
|
| 1791 |
+
},
|
| 1792 |
+
{
|
| 1793 |
+
"type": "ref_text",
|
| 1794 |
+
"bbox": [
|
| 1795 |
+
0.512,
|
| 1796 |
+
0.628,
|
| 1797 |
+
0.882,
|
| 1798 |
+
0.694
|
| 1799 |
+
],
|
| 1800 |
+
"angle": 0,
|
| 1801 |
+
"content": "Ramakrishna Vedantam, C. Lawrence Zitnick, and Devi Parikh. 2015. Cider: Consensus-based image description evaluation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 4566-4575."
|
| 1802 |
+
},
|
| 1803 |
+
{
|
| 1804 |
+
"type": "ref_text",
|
| 1805 |
+
"bbox": [
|
| 1806 |
+
0.512,
|
| 1807 |
+
0.704,
|
| 1808 |
+
0.882,
|
| 1809 |
+
0.77
|
| 1810 |
+
],
|
| 1811 |
+
"angle": 0,
|
| 1812 |
+
"content": "Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. 2015. Show and tell: A neural image caption generator. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 3156-3164."
|
| 1813 |
+
},
|
| 1814 |
+
{
|
| 1815 |
+
"type": "ref_text",
|
| 1816 |
+
"bbox": [
|
| 1817 |
+
0.512,
|
| 1818 |
+
0.779,
|
| 1819 |
+
0.882,
|
| 1820 |
+
0.858
|
| 1821 |
+
],
|
| 1822 |
+
"angle": 0,
|
| 1823 |
+
"content": "Jun Wang, Abhir Bhalerao, and Yulan He. 2022a. Cross-modal prototype driven network for radiology report generation. In Computer Vision - ECCV 2022 - 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXXV, pages 563-579. Springer."
|
| 1824 |
+
},
|
| 1825 |
+
{
|
| 1826 |
+
"type": "ref_text",
|
| 1827 |
+
"bbox": [
|
| 1828 |
+
0.512,
|
| 1829 |
+
0.868,
|
| 1830 |
+
0.882,
|
| 1831 |
+
0.919
|
| 1832 |
+
],
|
| 1833 |
+
"angle": 0,
|
| 1834 |
+
"content": "Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2023. Improving text embeddings with large language models. ArXiv, abs/2401.00368."
|
| 1835 |
+
},
|
| 1836 |
+
{
|
| 1837 |
+
"type": "list",
|
| 1838 |
+
"bbox": [
|
| 1839 |
+
0.512,
|
| 1840 |
+
0.086,
|
| 1841 |
+
0.882,
|
| 1842 |
+
0.919
|
| 1843 |
+
],
|
| 1844 |
+
"angle": 0,
|
| 1845 |
+
"content": null
|
| 1846 |
+
},
|
| 1847 |
+
{
|
| 1848 |
+
"type": "page_number",
|
| 1849 |
+
"bbox": [
|
| 1850 |
+
0.478,
|
| 1851 |
+
0.929,
|
| 1852 |
+
0.524,
|
| 1853 |
+
0.941
|
| 1854 |
+
],
|
| 1855 |
+
"angle": 0,
|
| 1856 |
+
"content": "16551"
|
| 1857 |
+
}
|
| 1858 |
+
],
|
| 1859 |
+
[
|
| 1860 |
+
{
|
| 1861 |
+
"type": "ref_text",
|
| 1862 |
+
"bbox": [
|
| 1863 |
+
0.117,
|
| 1864 |
+
0.086,
|
| 1865 |
+
0.49,
|
| 1866 |
+
0.179
|
| 1867 |
+
],
|
| 1868 |
+
"angle": 0,
|
| 1869 |
+
"content": "Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, and Ronald M. Summers. 2018. Tienet: Text-image embedding network for common thorax disease classification and reporting in chest x-rays. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 9049-9058."
|
| 1870 |
+
},
|
| 1871 |
+
{
|
| 1872 |
+
"type": "ref_text",
|
| 1873 |
+
"bbox": [
|
| 1874 |
+
0.117,
|
| 1875 |
+
0.187,
|
| 1876 |
+
0.489,
|
| 1877 |
+
0.241
|
| 1878 |
+
],
|
| 1879 |
+
"angle": 0,
|
| 1880 |
+
"content": "Zifeng Wang, Zhenbang Wu, Dinesh Agarwal, and Jimeng Sun. 2022b. Medclip: Contrastive learning from unpaired medical images and text. arXiv preprint arXiv:2210.10163."
|
| 1881 |
+
},
|
| 1882 |
+
{
|
| 1883 |
+
"type": "ref_text",
|
| 1884 |
+
"bbox": [
|
| 1885 |
+
0.117,
|
| 1886 |
+
0.25,
|
| 1887 |
+
0.489,
|
| 1888 |
+
0.342
|
| 1889 |
+
],
|
| 1890 |
+
"angle": 0,
|
| 1891 |
+
"content": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron C. Courville, Ruslan Salakhutdinov, Richard S. Zemel, and Yoshua Bengio. 2015. Show, attend and tell: Neural image caption generation with visual attention. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pages 2048-2057."
|
| 1892 |
+
},
|
| 1893 |
+
{
|
| 1894 |
+
"type": "ref_text",
|
| 1895 |
+
"bbox": [
|
| 1896 |
+
0.117,
|
| 1897 |
+
0.351,
|
| 1898 |
+
0.489,
|
| 1899 |
+
0.444
|
| 1900 |
+
],
|
| 1901 |
+
"angle": 0,
|
| 1902 |
+
"content": "An Yan, Zexue He, Xing Lu, Jiang Du, Eric Y. Chang, Amilcare Gentili, Julian J. McAuley, and Chun-Nan Hsu. 2021. Weakly supervised contrastive learning for chest x-ray report generation. In *Findings of the Association for Computational Linguistics: EMNLP* 2021, Virtual Event / Punta Cana, Dominican Republic, 16-20 November, 2021, pages 4009-4015."
|
| 1903 |
+
},
|
| 1904 |
+
{
|
| 1905 |
+
"type": "ref_text",
|
| 1906 |
+
"bbox": [
|
| 1907 |
+
0.117,
|
| 1908 |
+
0.452,
|
| 1909 |
+
0.489,
|
| 1910 |
+
0.506
|
| 1911 |
+
],
|
| 1912 |
+
"angle": 0,
|
| 1913 |
+
"content": "Shuxin Yang, Xian Wu, Shen Ge, S Kevin Zhou, and Li Xiao. 2022. Knowledge matters: Chest radiology report generation with general and specific knowledge. Medical image analysis, 80:102510."
|
| 1914 |
+
},
|
| 1915 |
+
{
|
| 1916 |
+
"type": "ref_text",
|
| 1917 |
+
"bbox": [
|
| 1918 |
+
0.117,
|
| 1919 |
+
0.515,
|
| 1920 |
+
0.489,
|
| 1921 |
+
0.594
|
| 1922 |
+
],
|
| 1923 |
+
"angle": 0,
|
| 1924 |
+
"content": "Sisi Yang, Junzhong Ji, Xiaodan Zhang, Ying Liu, and Zheng Wang. 2021. Weakly guided hierarchical encoder-decoder network for brain ct report generation. In IEEE International Conference on Bioinformatics and Biomedicine, BIBM 2021, Houston, TX, USA, December 9-12, 2021, pages 568-573. IEEE."
|
| 1925 |
+
},
|
| 1926 |
+
{
|
| 1927 |
+
"type": "ref_text",
|
| 1928 |
+
"bbox": [
|
| 1929 |
+
0.117,
|
| 1930 |
+
0.603,
|
| 1931 |
+
0.489,
|
| 1932 |
+
0.709
|
| 1933 |
+
],
|
| 1934 |
+
"angle": 0,
|
| 1935 |
+
"content": "Di You, Fenglin Liu, Shen Ge, Xiaoxia Xie, Jing Zhang, and Xian Wu. 2021. Aligntransformer: Hierarchical alignment of visual regions and disease tags for medical report generation. In Medical Image Computing and Computer Assisted Intervention - MICCAI 2021 - 24th International Conference, Strasbourg, France, September 27 - October 1, 2021, Proceedings, Part III, pages 72-82."
|
| 1936 |
+
},
|
| 1937 |
+
{
|
| 1938 |
+
"type": "ref_text",
|
| 1939 |
+
"bbox": [
|
| 1940 |
+
0.117,
|
| 1941 |
+
0.717,
|
| 1942 |
+
0.489,
|
| 1943 |
+
0.796
|
| 1944 |
+
],
|
| 1945 |
+
"angle": 0,
|
| 1946 |
+
"content": "Lijun Yu, José Lezama, Nitesh B Gundavarapu, Luca Versari, Kihyuk Sohn, David Minnen, Yong Cheng, Agrim Gupta, Xiuye Gu, Alexander G Hauptmann, et al. 2023. Language model beats diffusion-tokenizer is key to visual generation. arXiv preprint arXiv:2310.05737."
|
| 1947 |
+
},
|
| 1948 |
+
{
|
| 1949 |
+
"type": "ref_text",
|
| 1950 |
+
"bbox": [
|
| 1951 |
+
0.117,
|
| 1952 |
+
0.805,
|
| 1953 |
+
0.489,
|
| 1954 |
+
0.872
|
| 1955 |
+
],
|
| 1956 |
+
"angle": 0,
|
| 1957 |
+
"content": "Xiaodan Zhang, Sisi Yang, Yanzhao Shi, Junzhong Ji, Ying Liu, Zheng Wang, and Huimin Xu. 2023. Weakly guided attention model with hierarchical interaction for brain ct report generation. Computers in Biology and Medicine, page 107650."
|
| 1958 |
+
},
|
| 1959 |
+
{
|
| 1960 |
+
"type": "ref_text",
|
| 1961 |
+
"bbox": [
|
| 1962 |
+
0.117,
|
| 1963 |
+
0.881,
|
| 1964 |
+
0.489,
|
| 1965 |
+
0.921
|
| 1966 |
+
],
|
| 1967 |
+
"angle": 0,
|
| 1968 |
+
"content": "Yixiao Zhang, Xiaosong Wang, Ziyue Xu, Qihang Yu, Alan L. Yuille, and Daguang Xu. 2020. When radiology report generation meets knowledge graph."
|
| 1969 |
+
},
|
| 1970 |
+
{
|
| 1971 |
+
"type": "list",
|
| 1972 |
+
"bbox": [
|
| 1973 |
+
0.117,
|
| 1974 |
+
0.086,
|
| 1975 |
+
0.49,
|
| 1976 |
+
0.921
|
| 1977 |
+
],
|
| 1978 |
+
"angle": 0,
|
| 1979 |
+
"content": null
|
| 1980 |
+
},
|
| 1981 |
+
{
|
| 1982 |
+
"type": "ref_text",
|
| 1983 |
+
"bbox": [
|
| 1984 |
+
0.528,
|
| 1985 |
+
0.086,
|
| 1986 |
+
0.885,
|
| 1987 |
+
0.177
|
| 1988 |
+
],
|
| 1989 |
+
"angle": 0,
|
| 1990 |
+
"content": "In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 12910-12917."
|
| 1991 |
+
},
|
| 1992 |
+
{
|
| 1993 |
+
"type": "page_number",
|
| 1994 |
+
"bbox": [
|
| 1995 |
+
0.478,
|
| 1996 |
+
0.929,
|
| 1997 |
+
0.526,
|
| 1998 |
+
0.941
|
| 1999 |
+
],
|
| 2000 |
+
"angle": 0,
|
| 2001 |
+
"content": "16552"
|
| 2002 |
+
}
|
| 2003 |
+
]
|
| 2004 |
+
]
|
2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/081b7730-6494-4c1e-8ba3-d9c947e8be2f_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3835982be65f8c0a7f5679eb0bde0de158ad0b934faaf07d028ec349cf01b2f
|
| 3 |
+
size 4157572
|
2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/full.md
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# See Detail Say Clear: Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning
|
| 2 |
+
|
| 3 |
+
Chengxin Zheng $^{1}$ , Junzhong Ji $^{1}$ , Yanzhao Shi $^{1}$ , Xiaodan Zhang $^{1,*}$ , Liangqiong Qu $^{2}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ College of Computer Science, Beijing University of Technology, Beijing, China
|
| 6 |
+
$^{2}$ Department of Statistics and Actuarial Science, School of Computing and Data Science, The University of Hong Kong, Hong Kong, China
|
| 7 |
+
|
| 8 |
+
Correspondence: zhangxiaodan@bjut.edu.cn
|
| 9 |
+
|
| 10 |
+
# Abstract
|
| 11 |
+
|
| 12 |
+
Brain CT report generation is significant to aid physicians in diagnosing cranial diseases. Recent studies concentrate on handling the consistency between visual and textual pathological features to improve the coherence of report. However, there exist some challenges: 1) Redundant visual representing: Massive irrelevant areas in 3D scans distract models from representing salient visual contexts. 2) Shifted semantic representing: Limited medical corpus causes difficulties for models to transfer the learned textual representations to generative layers. This study introduces a Pathological Clue-driven Representation Learning (PCRL) model to build cross-modal representations based on pathological clues and naturally adapt them for accurate report generation. Specifically, we construct pathological clues from perspectives of segmented regions, pathological entities, and report themes, to fully grasp visual pathological patterns and learn cross-modal feature representations. To adapt the representations for the text generation task, we bridge the gap between representation learning and report generation by using a unified large language model (LLM) with task-tailored instructions. These crafted instructions enable the LLM to be flexibly fine-tuned across tasks and smoothly transfer the semantic representation for report generation. Experiments demonstrate that our method outperforms previous methods and achieves SoTA performance. Our code is available at https://github.com/Chauncey-Jheng/PCRL-MRG.
|
| 13 |
+
|
| 14 |
+
# 1 Introduction
|
| 15 |
+
|
| 16 |
+
Brain computed tomography (CT) imaging is essential for diagnosing various cranial diseases, including cerebral infarction and hemorrhage. However, it is time-consuming and error-prone for radiologists to manually interpret medical findings from these scans and write reports. Automated report
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
Figure 1: Comparison of different cross-modal alignment paradigms. (a) Previous way: The origin CT images contain extraneous information unrelated to diagnosis, and separate training for two semantic tasks makes it challenging to find a shared optimal solution, resulting in inadequate cross-modal alignment. (b) Our way: The visual representation is refined to concentrate on pathological clues, and employ joint training with task-tailored instructions via unified LLM to find a transferable representation, leading to better adaption for report generation.
|
| 20 |
+
|
| 21 |
+
generation systems are designed to boost efficiency, reduce the workload for radiologists, and optimize resources in busy clinical scenarios.
|
| 22 |
+
|
| 23 |
+
With the advancement of deep neural networks and their successful application in image captioning tasks (Vinyals et al., 2015; Xu et al., 2015), medical report generation (MRG) has gained more attention. Unlike the short sentences of traditional image captioning, MRG aims to generate lengthy and precise reports. To achieve this, various cross-modal alignment methods are required to ensure the consistency between visual and textual information (Shi et al., 2023), including attention mech-
|
| 24 |
+
|
| 25 |
+
anisms (Jing et al., 2018; Wang et al., 2018), memory mechanisms (Chen et al., 2020, 2021), and knowledge graphs (Li et al., 2019, 2023b).
|
| 26 |
+
|
| 27 |
+
Recently, learning representations via visual-textual contrastive learning (Shi et al., 2023, 2024) or using pre-trained large language models (LLMs) (Thawakar et al., 2023) to strength representations are also proven to be effective.
|
| 28 |
+
|
| 29 |
+
However, as shown in Figure 1(a), learning cross-modal correspondences is still challenging in current methods due to the following concerns: 1) Redundant visual representing. Different from chest X-ray data, 3D brain CT scans contain extensive redundant information, e.g. background and insignificant areas. With the lack of human-crafted boxes to locate pathology regions, models struggle to capture and interpret the visual pathology patterns for generating reports. Although current advanced models use semantic prior knowledge or medical prompts (Jin et al., 2024; Bu et al., 2024) to automatically learn the salient visual areas, this may introduce noise and unstable representation and cause severe hallucinations in generated texts. 2) Shifted semantic representing. Compared to natural corpus, limited brain CT report corpus is insufficient to transfer the pathological semantic representations learned by represent learning layers (e.g., contrastive learning layer) to the language model (Huh et al., 2024), since the direct weight-sharing (Shi et al., 2023, 2024) is prone to degrade the coherence of generated diagnostic sentences. Thus, how to uniformly represent cross-modal pathological features and adapt them to report generation still remains an open question.
|
| 30 |
+
|
| 31 |
+
In this paper, we propose a Pathological Cluedriven Representation Learning (PCRL) model to seamlessly build cross-modal representations based on diverse pathological clues and transfer them for generating accurate brain CT reports. Specifically, we extract pathological clues from perspectives of segmented regions, pathological entities, and report themes to depict clinical scenarios. Segmented region clues are automatically generated and filtered by given pathology prompts, enabling the visual encoder to grasp visual pathological patterns. Meanwhile, entity and theme clues are respectively extracted by detailed findings and full-text reports, to handle the enriched visual-textual alignment and build cross-modal pathology representations.
|
| 32 |
+
|
| 33 |
+
Besides, to adapt the learned representations for the text generation task, we bridge the gap between representation learning and report generation by
|
| 34 |
+
|
| 35 |
+
employing a unified large language model (LLM) with task-tailored instructions, which has proven to be more effective than conventional decoders by using appropriate tokens to seamlessly connect different tasks (Yu et al., 2023). As shown in Figure 1(b), We craft a representation instruction to prompt the LLM to produce high-level pathological semantic features for cross-modal alignment, and a generation instruction to prompt LLM to generate accurate brain CT reports based on the learned representations.
|
| 36 |
+
|
| 37 |
+
Our main contributions can be summarized as:
|
| 38 |
+
|
| 39 |
+
1. We propose a novel framework to seamlessly learn visual-textual representations from perspectives of diverse pathological clues and leverage them for enhancing the quality of generated brain CT reports.
|
| 40 |
+
2. We, for the first time, design a new paradigm to effectively transfer the learned pathological representations for report generation using a unified LLM prompted by task-tailored instructions.
|
| 41 |
+
3. We validate the model capabilities on the open-source CTRG-Brain dataset. Experimental results show that our model achieves remarkable performance in generating brain CT reports.
|
| 42 |
+
|
| 43 |
+
# 2 Related Work
|
| 44 |
+
|
| 45 |
+
# 2.1 Medical Report Generation
|
| 46 |
+
|
| 47 |
+
The advancements in image captioning techniques have spurred the development of a range of radiology report generation methods (Jing et al., 2018; Chen et al., 2020, 2021; Li et al., 2019; Shi et al., 2023; Zhang et al., 2023; Li et al., 2023b; Shi et al., 2024; Shen et al., 2024). To exploit the more effective parts of medical images, Jing et al. (2018) first propose a co-attention mechanism to associate images with disease tags and improve the accuracy of generated reports; Chen et al. (2021) design a cross-modal memory matrix to learn high-level vision-language correspondence for enhancing report generation; Liu et al. (2021c) used contrastive attention to captured the difference of abnormal and normal samples. To address the semantic bias of limited medical report corpus, Jing et al. (2020) exploited the textual structure information of reports, while Liu et al. (2021a); Shen et al. (2024) used curriculum learning to alleviate the data bias of limited medical data corpus. The retrieval-based
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 2: The overall framework of our method, which mainly consists of an image encoder and a text decoder for brain CT report generation (left). The pathological clue-driven representation learning (right) is proposed to guide the encoder and decoder for more fine-grained representation by three alignment modules: (a) segmentation clue alignment (SCA), (b) entity clue alignment (ECA), and (c) theme clue alignment (TCA).
|
| 51 |
+
|
| 52 |
+
(Li et al., 2018; Liu et al., 2021b) and prior expert knowledge based methods (Zhang et al., 2020; Yang et al., 2022; You et al., 2021) also shows effectiveness to alleviate the inaccuracy of generated report caused by limited training data. To build more stable relations between multi-modal features, contrastive learning (Radford et al., 2021) acts as an unsupervised method, and is proven to be effective for learning cross-modal representations for MRG tasks (Li et al., 2023b; Shi et al., 2024).
|
| 53 |
+
|
| 54 |
+
Recently, LLM-based MRG methods (Jin et al., 2024; Chen et al., 2024) harness the semantic processing capabilities of LLMs to enhance the coherence of generated medical reports. However, the current bottleneck of LLM is to interpret sparse visual patterns of pathologies, which causes severe hallucinations and degrades the trustworthiness of clinical diagnosis. To solve this issue, we propose to augment LLM with representation learning guided by pathology clues. By aligning cross-modal pathological features and transferring the learned representations to the LLM-based report decoder, our model can generate accurate and coherent brain CT reports.
|
| 55 |
+
|
| 56 |
+
# 2.2 Pre-trained Large Model
|
| 57 |
+
|
| 58 |
+
In recent years, pre-trained large models have achieved significant breakthroughs in both natural language processing (NLP) and computer vision (CV). These models leverage extensive datasets for pre-training, allowing them to perform exceptionally well in downstream tasks. The Segment
|
| 59 |
+
|
| 60 |
+
Anything Model (SAM) Kirillov et al. (2023) is an innovative large vision model in the field of image segmentation. SAM's strengths lie in its extensive training on a large-scale dataset, enhancing its versatility and enabling real-time generation of high-quality segmentation masks across diverse tasks and image distributions. MedCLIP Wang et al. (2022b) is a notable visual-language model in the medical domain. Pre-trained on decoupling medical images and texts, MedCLIP has shown SoTA performance on zero-shot image-text retrieval. LLaMA3 is the next generation of state-of-the-art open-source LLM from Meta (2024). Trained on over 15 trillion tokens, seven times the data of its predecessor, LLaMA3 incorporates extensive multilingual and high-quality datasets. To improve the use of large models for assisting in medical report generation, we adopt SAM for region segmentation, MedCLIP for feature representation of pathological entities, and LLaMA for joint training to achieve fine-grained cross-modal alignment and improve medical report generation.
|
| 61 |
+
|
| 62 |
+
# 3 Methodology
|
| 63 |
+
|
| 64 |
+
As illustrated in Figure 2, our framework consists of two branches: the brain CT Report Generation (RG) on the left and the Pathological Clue-driven Representation Learning (PCRL) on the right. The interaction between these branches is facilitated through the shared use of a visual encoder and a language model.
|
| 65 |
+
|
| 66 |
+
# 3.1 Brain CT Report Generation
|
| 67 |
+
|
| 68 |
+
In this branch, the input comprises a set of CT scan images $I = \{i_1,\dots ,i_N\}$ , where $N$ represents the number of CT images in each sample. The output is the corresponding brain CT findings report $Y = \{y_{1},\ldots ,y_{M}\}$ , with $M$ representing the number of tokens. We adopt the encoder-decoder architecture for report generation. First, we use ResNet101 (He et al., 2016) to extract grid features $G = \{g_{1},\dots ,g_{N}\} \in \mathbf{R}^{N\times H\times d}(N = 24,H = 196,d = 2048)$ from $I$ . Then, we embed these features using a visual encoder to obtain visual features $V$ . These visual features $V$ are passed through a multi-modal projector to obtain the visual embedding tokens $H_{v}\in \mathbf{R}^{N\times d_{w}}(d_{w} = 4096)$ which are aligned with the word embedding space of a large language model. Finally, these tokens are concatenated with the instruction token $H_{q}$ and fed into the large language model. We train the parameters $\theta$ by minimizing the cross-entropy loss, which can be represented by the following formula:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\mathcal {L} _ {g} = - \sum_ {t = 1} ^ {M} \log P \left(y _ {t} \mid y _ {1: t - 1}, H _ {v}, H _ {q}; \theta\right) \tag {1}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where, $P(y_{t}|*)$ denotes the probability conditioned on $H_{v}, H_{q}$ , and the embeddings of previous words $y_{1}, y_{2}, \dots, y_{t-1}$ .
|
| 75 |
+
|
| 76 |
+
# 3.2 Pathological Clue-driven Representation Learning
|
| 77 |
+
|
| 78 |
+
Learning fine-grained visual-text representations is critical for generating accurate reports (Shi et al., 2023). This branch mainly builds enriched representations by conducting multi-modal feature alignment based on pathological clues, including segmentation clue alignment (SCA), entity clues alignment (ECA), and theme clues alignment (TCA).
|
| 79 |
+
|
| 80 |
+
# 3.2.1 Preparation of Pathological Clues
|
| 81 |
+
|
| 82 |
+
Pathological clues are collected in three perspectives for feature alignment.
|
| 83 |
+
|
| 84 |
+
**Pathology Theme Clues:** Learning the structure of professional brain CT reports is essential for MRG models to satisfy human standards and produce reliable reports. To this end, we propose to build theme clues by simply using the full-text report and whole images as global signals, which can be useful to enhance the overall quality of medical reports by TCA (illustrated in 3.2.4).
|
| 85 |
+
|
| 86 |
+
Pathology Entity Clues: To learn detailed information about pathology entities, we regard each
|
| 87 |
+
|
| 88 |
+
single finding sentence in the report as an entity clue and extract the related multi-modal features in ECA 3.2.3. The construction of entities $E = \{e_1,\dots,e_{N_e}\}$ (with $N_{e} = 24$ ) is based on expert knowledge and the frequency of words in the training corpus.
|
| 89 |
+
|
| 90 |
+
Segment Clues: To enhance visual representations via detailed contour of pathologies, we propose to utilize the pre-trained segmentation model SAM (Kirillov et al., 2023) to generate mask candidates and filter useful masks related to pathology entities. First, we prompt SAM by covering each brain CT image with a grid of points and integrating it into image embeddings through average sampling. In this way, the mask decoder in SAM is prompted to generate a gallery of candidate masks $M_I = \{m_1, \dots, m_{N_m}\}$ . To ensure the quality of masks, we also apply rule-based methods to filter out low-quality and duplicate masks with area size, stability scores, and IoU scores. For each sample consisting of 24 images, we generate a corresponding series of masks and combine them to form the candidate Gallery $= \{M_{I_1}, \dots, M_{I_N}\}$ .
|
| 91 |
+
|
| 92 |
+
Then, to retrieve valuable masks related to the sample's pathological entities, we propose to use the MedCLIP (Wang et al., 2022b) for text-prompted retrieval. Based on expert knowledge, we divide the 24 images into eight-layer categories, each mapping a specific set of entities (Shi et al., 2024). Conversely, each entity also has its corresponding layers. We extract the existing entities from the sample's report and their corresponding pathological descriptions $D = \{d_{1},\dots,d_{N_{d}}\}$ ( $N_{d}\leq N_{e}$ ), which serve as the Query. Next, we use the $d$ -th description $Query_{d}$ to search for the most similar matching mask in $Gallery_{d}$ , which is a subset of $Gallery$ , consisting of all visual masks of the layers related to the existing entities. The procedure can be represented as:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\operatorname {R e t r i e v a l} _ {d} = \operatorname {C L I P} \left(\operatorname {G a l l e r y} _ {d}, \operatorname {Q u e r y} _ {d}\right) \tag {2}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $Retrieval_{d}$ denotes the retrieved masks for SCA 3.2.2.
|
| 99 |
+
|
| 100 |
+
# 3.2.2 Segmentation Clue Alignment
|
| 101 |
+
|
| 102 |
+
This module aims to learn the fine-grained visual representation based on the extracted segment masks. First, we obtain the visual features $V_{D} = \{v_{1},\dots v_{N_{d}}\}$ corresponding to the images containing the entities using a selector. Then, we input these features into a lightweight segmentation
|
| 103 |
+
|
| 104 |
+
head to generate the corresponding foreground entity masks $S_{D} = \{s_{1},\dots,s_{N_{d}}\}$ , which serves as discriminated pathological information. We then align these generated masks with the retrieved segment masks $M_{D} = \{Retrieval_{1},\dots,Retrival_{N_{d}}\}$ to learn detailed patterns. It is important to note that the size of the generated masks $S_{D}$ differs from the size of the retrieved SAM masks $M_{D}$ . To address this, we first resize the SAM masks to match the size of the masks generated by our segmentation head. We finally calculate the following loss for aligning the two types of masks:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\mathcal {L} _ {s e g} = 1 - \frac {2 \sum_ {i = 1} ^ {n} p _ {i} y _ {i}}{\sum_ {i = 1} ^ {n} p _ {i} ^ {2} + \sum_ {i = 1} ^ {n} y _ {i} ^ {2}} \tag {3}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $y_{i}$ is the pixel value of retrieved SAM masks and $p_i$ is the predicted pixel value.
|
| 111 |
+
|
| 112 |
+
In this way, the visual encoder can be effectively learned to focus on the areas of pathologies while reducing the influence of irrelevant visual features.
|
| 113 |
+
|
| 114 |
+
# 3.2.3 Entity Clue Alignment
|
| 115 |
+
|
| 116 |
+
To learn the cross-modal patterns of pathology entities, we extract visual and textual pathological features based on the entity clues. First, we build a selector to obtain the visual features $V_{D} = \{v_{1},\dots v_{N_{d}}\} (N_{d} < N)$ , which corresponds to significant CT images that exist pathology entities. We then apply global average pooling (GAP) to generalize $V_{D}$ and obtain representations of each significant CT image, denoted as $R_v^e = \{r_1,\dots r_{N_d}\}$ .
|
| 117 |
+
|
| 118 |
+
Different from previous work (Li et al., 2023b) use an external language model (e.g. SciBert (Beltagy et al., 2019)) to build textual representation for feature alignment, we propose to leverage a unified LLM to generate textual representation via tailored prompts. Inspired by Wang et al. (2023), we crafted a representation instruction "Summarize the following cranial diagnosis in one word," which is denoted as $H_{q_r}$ . This prompt can effectively activate the summarization ability of LLM to generate corresponding text representations for pathological entity description in $D$ . We use the output generated by the final hidden layer of LLM as textual features for cross-modal alignment.
|
| 119 |
+
|
| 120 |
+
With the carefully extracted visual and textual representations of entities, we map them into the same dimension through an embedding layer. The process can be represented by the following formula:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
R _ {v} ^ {e} = \operatorname {L i n e a r} _ {v} ^ {e} (G A P \left(V _ {D}\right)) \tag {4}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
R _ {w} ^ {e} = \operatorname {L i n e a r} _ {t} ^ {e} \left(L L M \left(H _ {q _ {r}}, D\right)\right) \tag {5}
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
where $GAP$ denotes the global average pooling, $Linear_v$ represents the visual mapper, and $Linear_t$ represents the textual mapper. We employ the symmetric InfoNCE (van den Oord et al., 2018) loss for visual-textual alignment:
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\begin{array}{l} \mathcal {L} _ {C L _ {e}} = - \frac {1}{2} \left(\alpha_ {v} \sum_ {i = 1} ^ {N _ {d}} \log \frac {\exp \left(\mathrm {s} _ {v} ^ {e} (i , i)\right)}{\sum_ {j = 1 , j \neq i} ^ {N _ {d}} \exp \left(\mathrm {s} _ {v} ^ {e} (i , j)\right)} \right. \\ + \alpha_ {w} \sum_ {i = 1} ^ {N _ {d}} \log \frac {\exp \left(\mathrm {s} _ {w} ^ {e} (i , i)\right)}{\sum_ {j = 1 , j \neq i} ^ {N _ {d}} \exp \left(\mathrm {s} _ {w} ^ {e} (i , j)\right)} \Bigg) \tag {6} \\ \end{array}
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
where $s_v^e (i,j) = \frac{\sin(R_{v_i}^e,R_{w_j}^e)}{\tau}$ and $s_w^e (i,j) = \frac{\sin(R_{w_i}^e,R_{v_j}^e)}{\tau}$ denote the similarity between the visual representation $R_{v}^{e}$ and the textual representation $R_{w}^{e}$ , $\tau$ is a temperature parameter. $\alpha_{v}$ and $\alpha_{w}$ are hyperparameters to balance the contrastive learning.
|
| 137 |
+
|
| 138 |
+
By aligning multi-modal entity clues, the model can grasp fine-grained visual-text representations to generate accurate diagnostic words.
|
| 139 |
+
|
| 140 |
+
# 3.2.4 Theme Clue Alignment
|
| 141 |
+
|
| 142 |
+
Theme clue alignment aims to equip the model with comprehensive skills to generate accurate style and structure of reports, thereby enhancing clinical reliability. For global visual features, we use one-dimensional global max pooling (GMP) to represent the entire sample visually, denoted as $R_{w}^{t}$ . For the overall report of the sample, we generate textual representation $R_{w}^{t}$ by prompting LLM with the same representation instruction (see Section 3.2.3). This process can be represented as:
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
R _ {v} ^ {t} = \operatorname {L i n e a r} _ {v} ^ {t} (G M P (V)) \tag {7}
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
+
R _ {w} ^ {t} = \operatorname {L i n e a r} _ {t} ^ {t} \left(L L M \left(H _ {q _ {s}}, Y\right)\right) \tag {8}
|
| 150 |
+
$$
|
| 151 |
+
|
| 152 |
+
Similar to ECA, the loss of TCA can be formulated as:
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
\begin{array}{l} \mathcal {L} _ {C L _ {t}} = - \frac {1}{2} \left(\alpha_ {v} \sum_ {i = 1} ^ {N _ {b}} \log \frac {\exp (\mathrm {s} _ {v} ^ {t} (i , i))}{\sum_ {j = 1 , j \neq i} ^ {N _ {b}} \exp (\mathrm {s} _ {v} ^ {t} (i , j))}\right) \\ + \alpha_ {w} \sum_ {i = 1} ^ {N _ {b}} \log \frac {\exp \left(\mathrm {s} _ {w} ^ {t} (i , i)\right)}{\sum_ {j = 1 , j \neq i} ^ {N _ {b}} \exp \left(\mathrm {s} _ {w} ^ {t} (i , j)\right)} \tag {9} \\ \end{array}
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
where $s_v^t (i,j) = \sin (R_{v_i}^t,R_{w_j}^t) / \tau$ and $s_w^t (i,j) =$ $\sin (R_{w_i}^t,R_{v_j}^t) / \tau$ denote the similarity between the visual representation $R_{v}^{e}$ and the textual representation $R_w^e$ , $\tau$ is a temperature parameter, $N_{b}$ is the batch size. Shared with ECA, $\alpha_{v}$ and $\alpha_{w}$ are set to balance the feature alignment.
|
| 159 |
+
|
| 160 |
+
<table><tr><td>Methods</td><td>Decoder</td><td>B1</td><td>B2</td><td>B3</td><td>B4</td><td>M</td><td>RG</td><td>C</td><td>F1</td></tr><tr><td>HRNN(Krause et al., 2017)†</td><td>LSTM</td><td>42.3</td><td>28.3</td><td>21.2</td><td>17.1</td><td>27.2</td><td>39.3</td><td>20.9</td><td>70.2</td></tr><tr><td>Up-Down(Anderson et al., 2018)†</td><td>LSTM</td><td>45.8</td><td>34.8</td><td>28.5</td><td>24.4</td><td>31.6</td><td>42.5</td><td>27.3</td><td>70.2</td></tr><tr><td>WCL(Yan et al., 2021)†</td><td>LSTM</td><td>49.5</td><td>36.5</td><td>29.4</td><td>25.1</td><td>31.3</td><td>42.8</td><td>33.3</td><td>64.5</td></tr><tr><td>R2Gen-CMN(Chen et al., 2021)†</td><td>Transformer</td><td>49.1</td><td>40.0</td><td>34.4</td><td>30.1</td><td>29.9</td><td>48.6</td><td>84.2</td><td>69.8</td></tr><tr><td>XProNet(Wang et al., 2022a)†</td><td>Transformer</td><td>50.6</td><td>41.3</td><td>34.4</td><td>29.1</td><td>31.5</td><td>51.7</td><td>83.3</td><td>70.1</td></tr><tr><td>WGAM(Yang et al., 2021)†</td><td>LSTM</td><td>49.4</td><td>36.7</td><td>29.6</td><td>25.4</td><td>32.0</td><td>42.4</td><td>31.9</td><td>68.9</td></tr><tr><td>PGCA(Shi et al., 2023)†</td><td>LSTM</td><td>50.2</td><td>37.8</td><td>30.7</td><td>26.5</td><td>32.5</td><td>43.0</td><td>34.0</td><td>69.2</td></tr><tr><td>WGAM-HI(Zhang et al., 2023)†</td><td>LSTM</td><td>50.4</td><td>37.6</td><td>30.5</td><td>26.1</td><td>31.4</td><td>43.8</td><td>33.2</td><td>67.4</td></tr><tr><td>LLaVA-med(Li et al., 2023a)†</td><td>LLaMA3-8B</td><td>50.0</td><td>39.3</td><td>32.0</td><td>26.3</td><td>31.4</td><td>46.7</td><td>38.6</td><td>64.3</td></tr><tr><td>HILT(Liu et al., 2024)†</td><td>LLaMA3-8B</td><td>50.7</td><td>39.9</td><td>33.1</td><td>27.9</td><td>30.8</td><td>46.1</td><td>43.7</td><td>68.4</td></tr><tr><td>PromptMRG(Jin et al., 2024)†</td><td>LLaMA3-8B</td><td>48.1</td><td>38.3</td><td>31.6</td><td>26.5</td><td>31.0</td><td>47.4</td><td>50.3</td><td>69.2</td></tr><tr><td>Ours (Jieba tokenizer)</td><td>LLaMA3-8B</td><td>51.5</td><td>42.0</td><td>35.7</td><td>30.9</td><td>31.4</td><td>49.0</td><td>80.0</td><td>70.6</td></tr><tr><td>Ours (LLaMA tokenizer)</td><td>LLaMA3-8B</td><td>62.0</td><td>54.7</td><td>49.4</td><td>45.3</td><td>33.1</td><td>57.7</td><td>96.4</td><td>70.6</td></tr></table>
|
| 161 |
+
|
| 162 |
+
Table 1: The performance of our PCRL compared with previous state-of-the-art models on the Brain CT report generation dataset CTRG-Brain. The best results are highlighted in bold. $\dagger$ denotes the re-implementation results.
|
| 163 |
+
|
| 164 |
+
# 3.3 Joint Training
|
| 165 |
+
|
| 166 |
+
In the training stage, we jointly train the RG branch and the PCRL branch to maximize the utilization of multi-granularity visual-text representations. Instead of using separate modules to learn representation and generate medical reports (Li et al., 2023b), we use a unified LLM to bridge the gap between representation learning and report generation via two task-tailored instructions, i.e., representation instruction and generation instruction. This can transfer the representations learned by the PCRL branch to optimize the RG branch effectively, thereby generating accurate reports.
|
| 167 |
+
|
| 168 |
+
Our final loss contains the above-mentioned losses, which can be formulated as:
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
\mathcal {L} = \mathcal {L} _ {g} + \mathcal {L} _ {\text {s e g}} + \mathcal {L} _ {C L _ {e}} + \mathcal {L} _ {C L _ {t}} \tag {10}
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
# 4 Experiments
|
| 175 |
+
|
| 176 |
+
# 4.1 Dataset
|
| 177 |
+
|
| 178 |
+
We validate the performance of our model using the CTRG-Brain (Tang et al., 2024) dataset. This dataset comprises 6,000 samples, containing a total of 160,336 CT images and 6,000 Chinese medical reports. Following the mainstream division method (Shi et al., 2023; Zhang et al., 2023), we split the dataset into a training set, a validation set, and a test set in a 7:1:2 ratio. For consistent processing, we divide the brain CT image samples into 8 layers based on expert knowledge, with each layer containing 3 continuous CT images, assigning each sample with 24 CT images.
|
| 179 |
+
|
| 180 |
+
# 4.2 Evaluation Metrics
|
| 181 |
+
|
| 182 |
+
We chose Natural Language Generation (NLG) metrics and Clinical Evaluation (CE) metrics to evaluate our model's performance. NLG metrics include BLEU (Papineni et al., 2002),METEOR (Banerjee and Lavie), ROUGE-L (Lin, 2004), and CIDEr (Vedantam et al., 2015), denoted as B1, B2, B3,B4,M,RG,and C respectively. To measure the pathological accuracy, we use 24 keywords summarized by experienced radiologists to calculate the Clinical Evaluation (CE) metric(Shi et al., 2023; Zhang et al., 2023), i.e., F1 score, which is the harmonic mean of the precision and recall.
|
| 183 |
+
|
| 184 |
+
# 4.3 Implementation Details
|
| 185 |
+
|
| 186 |
+
We reshape the size of image to $512 \times 512$ pixels and used a ResNet101 to extract image features, which is pre-trained on the ImageNet dataset and fine-tuned on the CQ500 dataset (Chilamkurthy et al., 2018). For our large language model, we utilize LLaMA3-8B (Meta, 2024), which is quantized to 4-bit, and use the LoRa (Hu et al., 2021) for parameter-efficient fine-tuning. The overall trainable parameter quantity of our model is $229.9\mathrm{M}$ with $3.4\mathrm{M}$ parameters in LLM (only $0.04\%$ ). During training, we use the AdamW optimizer with a learning rate of 1e-4. The batch size is 4, with 1050 training steps per epoch. For testing, we set the temperature coefficient of the large model to 0.6 and the top-p value to 0.9. The model is implemented using PyTorch 2.3.0, and the entire training process is conducted on a single RTX 4090 GPU.
|
| 187 |
+
|
| 188 |
+
<table><tr><td rowspan="2">Methods</td><td colspan="2">Representation</td><td colspan="3">Module Loss</td><td rowspan="2">B1</td><td rowspan="2">B2</td><td rowspan="2">B3</td><td rowspan="2">B4</td><td rowspan="2">M</td><td rowspan="2">RG</td><td rowspan="2">C</td></tr><tr><td>Visual</td><td>Textual</td><td>LSCA</td><td>LECA</td><td>LTCA</td></tr><tr><td>Baseline</td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td><td>49.6</td><td>39.9</td><td>33.4</td><td>28.6</td><td>30.7</td><td>48.4</td><td>50.8</td></tr><tr><td>(a)</td><td>X</td><td>X</td><td>✓</td><td>X</td><td>X</td><td>51.3</td><td>41.0</td><td>34.5</td><td>29.7</td><td>31.2</td><td>47.7</td><td>70.8</td></tr><tr><td>(b)</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>X</td><td>51.3</td><td>41.4</td><td>35.0</td><td>30.1</td><td>31.2</td><td>48.7</td><td>71.3</td></tr><tr><td>(c)</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>X</td><td>51.7</td><td>41.4</td><td>34.6</td><td>29.5</td><td>31.2</td><td>48.0</td><td>72.8</td></tr><tr><td>(d)</td><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>✓</td><td>48.9</td><td>38.8</td><td>32.2</td><td>27.4</td><td>30.0</td><td>46.3</td><td>58.3</td></tr><tr><td>(e)</td><td>✓</td><td>✓(Bert)</td><td>✓</td><td>✓</td><td>✓</td><td>49.5</td><td>39.0</td><td>31.8</td><td>26.3</td><td>30.4</td><td>45.4</td><td>48.5</td></tr><tr><td>Ours</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>51.5</td><td>42.0</td><td>35.7</td><td>30.9</td><td>31.4</td><td>49.0</td><td>80.0</td></tr></table>
|
| 189 |
+
|
| 190 |
+
Table 2: Ablation studies of our proposed method. The Baseline model is an encoder-decoder framework without an alignment mechanism. (a), (b), (c), (d) and (e) respectively denote the use of different representations (i.e., visual and textual in ECA and TCA) and module losses.
|
| 191 |
+
|
| 192 |
+
# 4.4 Quantitative Analysis
|
| 193 |
+
|
| 194 |
+
We compare the proposed PCRL with some competitive brain CT report generation methods (WGAM (Yang et al., 2021), PGCA (Shi et al., 2023), WGAM-HI(Zhang et al., 2023)). Besides, we also reproduced some SOTA models in image captioning (HRNN (Krause et al., 2017), Up-Down (Anderson et al., 2018)) and chest Xray report generation (WCL (Yan et al., 2021), R2Gen-CMN (Chen et al., 2021), XProNet (Wang et al., 2022a)) for comprehensive comparisons on CTRG-Brain dataset. What's more, for fair comparisons, We also reproduce several related LLM-based methods (LLaVA-Med(Li et al., 2023a), HILT(Liu et al., 2024), PromptMRG(Jin et al., 2024)with the same LLM decoder.
|
| 195 |
+
|
| 196 |
+
As shown in Table 1, our method outperforms others across most evaluation metrics. WGAM and WGAM-HI employ weakly-supervised visual attention to extract key visual features, resulting in higher BLEU scores. With contrastive learning for cross-modal alignment, WCL and PGCA can effectively learn relations between CT images and reports, achieving better results. However, due to the lack of training data, the above methods still produce reports that fall short in fluency and readability. Here's a refined version of your sentence: The LLM-based methods (LLaVA-med, HILT, PromptMRG) demonstrate poorer performance compared to traditional transformer-based methods (R2Gen-CMN, XProNet). This suggests that prior knowledge from pretrained large models, without further cross-modal alignment, may lead to hallucinations in report generation.
|
| 197 |
+
|
| 198 |
+
Our PCRL achieves fine-grained cross-modal alignment by leveraging a series of pre-trained large models, generating more fluent reports and
|
| 199 |
+
|
| 200 |
+
achieves the best performance compared to other methods. It is noteworthy that we tested our method using the Jieba and LLaMA tokenizers respectively to compute NLG scores, with the latter achieving the best performance across all NLG metrics.
|
| 201 |
+
|
| 202 |
+
This discrepancy may be due to differences in tokenization methods used during training. While other models employ the traditional Jieba tool for Chinese word tokenization, our PCRL follows more advanced BPE-based subword tokenization. Nevertheless, our model also achieves competitive results in overall metrics.
|
| 203 |
+
|
| 204 |
+
# 4.5 Ablation Study
|
| 205 |
+
|
| 206 |
+
To evaluate the effect of each component in PCRL, we have done plenty of ablation studies, as shown in Table 2. Baseline is the standard encoder-decoder (ResNet101-LLaMA3) architecture without alignment. By progressively adding visual or textual representation (visual and textual) and the module losses $(\mathcal{L}_{SCA},\mathcal{L}_{ECA}$ and $\mathcal{L}_{TCA})$ , respectively denoting the incorporation of two modalities of representations and the utilization of three pathological clue-driven alignments (i.e., SCA, ECA, and TCA).
|
| 207 |
+
|
| 208 |
+
By comparing (a) with the baseline, we observe that incorporating the segmentation alignment significantly enhances the model's performance. This demonstrates that our SCA method effectively filters out irrelevant information from CT images and extracts crucial pathology-related visual regions. In contrast, with the implementation of ECA, (b) achieves comparable or better performance across all metrics compared to (a). This indicates that fine-grained cross-modal pathological entity alignment can effectively learn strongly correlated visual-text
|
| 209 |
+
|
| 210 |
+
<table><tr><td>Ground Truth Sample</td><td>Ground Truth Entities</td><td>Retrieved Masks</td><td>Generated Reports</td><td></td></tr><tr><td>...</td><td>基底节区(basal ganglia):左侧基底节区见小片状低密度影 (Small patchy low-density shadows visible in the left basal ganglia area)</td><td></td><td>双侧大脑半球对称,两侧基底节区见斑点状低密度影,中线结构居中,脑沟、脑池、蛛网膜下腔稍增宽,脑回变小。(Bilateral cerebral hemispheres are symmetrical, with punctate low-density shadows in the basal ganglia on both sides. The midline structure is centered, and the sulcus, cistern, and subarachnoid space are slightly widened, while the gyrus is smaller.)</td><td rowspan="3">Baseline</td></tr><tr><td rowspan="3">双侧大脑半球对称,左侧基底节区见小片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑,脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A small patch of low-density shadow is seen in the left basal ganglia region, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal.)</td><td>脑室(ventricle):各脑室、脑池大小形态正常(The size and shape of all ventricles and cisterns are normal.)</td><td rowspan="3"></td><td>双侧大脑半球对称,右侧丘脑见小片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑、脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A small patch of low-density shadow is seen in the right thalamus, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal. The midline structure is centered. There are no abnormalities in the cerebellum and brainstem below the tentorium.)</td></tr><tr><td>中线(midline structure):中线结构居中 (The midline structure centered)</td><td rowspan="2">双侧大脑半球对称,左侧基底节区见斑片状低密度影,边缘欠清晰,无占位效应,各脑室、脑池大小形态正常,中线结构居中,幕下小脑、脑干无异常。(The bilateral cerebral hemispheres are symmetrical. A patch of low-density shadow is seen in the left basal ganglia region, with unclear edges and no mass effect. The size and shape of all ventricles and cisterns are normal. The midline structure is centered. There are no abnormalities in the cerebellum and brainstem below the tentorium.)</td></tr><tr><td>脑干(brainstem):幕下小脑,脑干无异常(There are no abnormalities in the cerebellum and brainstem below the tentorium)</td><td>Ours</td></tr></table>
|
| 211 |
+
|
| 212 |
+
representations, thus better supporting medical report generation. Besides, (c) combines both SCA and ECA and shows improved performance in the B1 and C metrics, which are highly correlated with keyword frequency. However, it slightly underperforms in the B2, B4 and RG metrics compared to (b), which is more related to overall text style.(d) showed SCA is essential for focusing on entity details and maintaining the thematic style.
|
| 213 |
+
|
| 214 |
+
Notably, to validate the contribution of joint representation learning, we replace the language model with Bert model for textual representation during alignment in (e). The result indicated that shared representation through joint learning with unified language model can effectively improve the overall quality of the task.
|
| 215 |
+
|
| 216 |
+
# 4.6 Qualitative Analysis
|
| 217 |
+
|
| 218 |
+
We visualize the brain CT reports generated by baseline, WGAM-HI (Zhang et al., 2023) and our model in Figure 3. Given the ground truth brain CT sample and entity data, our model generates better brain CT report with the most accurate entity words (e.g. basal ganglia, ventricle, and brainstem) among the competitors, which demonstrates the effectiveness of using diverse medical clues to learn enriched multi-modal representations. It can be also seen that compared with the baseline, the report generated by our model has a better semantic structure, indicating the contribution of employing a unified LLM to transfer useful representations. Besides, we also find that the retrieved entity masks
|
| 219 |
+
|
| 220 |
+

|
| 221 |
+
Figure 3: Visualization of report generation and mask segmentation. Given the ground truth sample and corresponding entities, the retrieved entity masks are listed in the third column. Reports generated by Baseline, WGAM-HI, and our model are listed in the fourth column. Different colors denote the specific entity words and entity masks, respectively. The English translation is given for a better understanding of the original Chinese reports in CTRG-Brain.
|
| 222 |
+
Figure 4: Visualization of the segmentation masks gallery generated by SAM for a single sample.
|
| 223 |
+
|
| 224 |
+
from segmentation masks gallery (see Figure 4) can generally match related entity words at both levels of visual and semantic. For example, the mask of "midline structure" and "brainstem" matches the empirical scan slice and fine-grained region chosen by experienced radiologists. This guarantees the model to mine accurate visual cranial patterns, therefore generating high-quality reports.
|
| 225 |
+
|
| 226 |
+
# 5 Conclusion
|
| 227 |
+
|
| 228 |
+
We propose a novel model to mine pathological clues for enhancing multi-modal representations and seamlessly transfer them into report generation. First, through carefully designed segmentation clue alignment, entity clue alignment, and theme clue alignment, the diverse and precise feature representation can be well-constructed. Second, we transfer the learned representation to boost the brain CT report generation via a unified LLM prompted by task-tailored instructions. Experiments demonstrate the effectiveness of our model in generating pathologically accurate reports.
|
| 229 |
+
|
| 230 |
+
# Limitations
|
| 231 |
+
|
| 232 |
+
Although the segmentation clues retrieved by MedClip (Wang et al., 2022b) can generally match corresponding pathological entities and help the model neglect redundant visual information, it should be noted that a part of retrieved entity masks may not be precise. This is because MedClip is mainly pretrained by chest X-ray data with limited brain CT samples. Thus, addressing this challenge is imperative for the research community. In the future, we will work on exploring useful approaches. One potential approach is to train a unified text-prompted medical segmentation model towards 3D brain CT scans, which can not only be employed to offer fine-grained visual information for medical report generation but also for other related tasks, e.g. medical VQA.
|
| 233 |
+
|
| 234 |
+
# References
|
| 235 |
+
|
| 236 |
+
Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. 2018. Bottom-up and top-down attention for image captioning and visual question answering. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 6077-6086.
|
| 237 |
+
S Banerjee and A Lavie. Meteor: an automatic metric for mt evaluation with high levels of correlation with human judgments. Proceedings of ACL-WMT, pages 65-72.
|
| 238 |
+
Iz Beltagy, Kyle Lo, and Arman Cohan. 2019. Scibert: A pretrained language model for scientific text. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP 2019, Hong Kong, China, November 3-7, 2019, pages 3613-3618.
|
| 239 |
+
Shenshen Bu, Yujie Song, Taiji Li, and Zhiming Dai. 2024. Dynamic knowledge prompt for chest x-ray report generation. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation, LREC/COLING, pages 5425-5436. ELRA and ICCL.
|
| 240 |
+
Zhihong Chen, Yaling Shen, Yan Song, and Xiang Wan. 2021. Cross-modal memory networks for radiology report generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pages 5904-5914.
|
| 241 |
+
Zhihong Chen, Yan Song, Tsung-Hui Chang, and Xi-ang Wan. 2020. Generating radiology reports via
|
| 242 |
+
|
| 243 |
+
memory-driven transformer. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, EMNLP 2020, Online, November 16-20, 2020, pages 1439-1449.
|
| 244 |
+
Zhixuan Chen, Luyang Luo, Yequan Bie, and Hao Chen. 2024. Dia-llama: Towards large language model-driven CT report generation. CoRR, abs/2403.16386.
|
| 245 |
+
Sasank Chilamkurthy, Rohit Ghosh, Swetha Tanamala, Mustafa Biviji, Norbert G. Campeau, Vasantha Kumar Venugopal, Vidur Mahajan, Pooja Rao, and Prashant Warier. 2018. Development and validation of deep learning algorithms for detection of critical findings in head ct scans. arXiv preprint arXiv:1803.05854.
|
| 246 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 770-778.
|
| 247 |
+
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685.
|
| 248 |
+
Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. 2024. The platonic representation hypothesis. arXiv preprint arXiv:2405.07987.
|
| 249 |
+
Haibo Jin, Haoxuan Che, Yi Lin, and Hao Chen. 2024. Promptmrg: Diagnosis-driven prompts for medical report generation. In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI, pages 2607-2615.
|
| 250 |
+
Baoyu Jing, Zeya Wang, and Eric Xing. 2020. Show, describe and conclude: On exploiting the structure information of chest x-ray reports. arXiv preprint arXiv:2004.12274.
|
| 251 |
+
Baoyu Jing, Pengtao Xie, and Eric P. Xing. 2018. On the automatic generation of medical imaging reports. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, 2018, Melbourne, Australia, July 15-20, 2018, Volume 1: Long Papers, pages 2577-2586.
|
| 252 |
+
Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. 2023. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015-4026.
|
| 253 |
+
Jonathan Krause, Justin Johnson, Ranjay Krishna, and Li Fei-Fei. 2017. A hierarchical approach for generating descriptive image paragraphs. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 3337-3345.
|
| 254 |
+
|
| 255 |
+
C Li, C Wong, S Zhang, et al. 2023a. Llava-med: training a large language-and-vision assistant for biomedicine in one day. arxiv. arXiv preprint arXiv:2306.00890.
|
| 256 |
+
Christy Y. Li, Xiaodan Liang, Zhiting Hu, and Eric P. Xing. 2019. Knowledge-driven encode, retrieve, paraphrase for medical image report generation. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019, pages 6666-6673.
|
| 257 |
+
Mingjie Li, Bingqian Lin, Zicong Chen, Haokun Lin, Xiaodan Liang, and Xiaojun Chang. 2023b. Dynamic graph enhanced contrastive learning for chest x-ray report generation. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3334-3343.
|
| 258 |
+
Yuan Li, Xiaodan Liang, Zhiting Hu, and Eric P Xing. 2018. Hybrid retrieval-generation reinforced agent for medical image report generation. Advances in neural information processing systems, 31.
|
| 259 |
+
Chin-Yew Lin. 2004. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81.
|
| 260 |
+
Che Liu, Zhongwei Wan, Yuqi Wang, Hui Shen, Haozhe Wang, Kangyu Zheng, Mi Zhang, and Rossella Arcucci. 2024. Benchmarking and boosting radiology report generation for 3d high-resolution medical images. arXiv preprint arXiv:2406.07146.
|
| 261 |
+
Fenglin Liu, Shen Ge, and Xian Wu. 2021a. Competence-based multimodal curriculum learning for medical report generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pages 3001-3012.
|
| 262 |
+
Fenglin Liu, Xian Wu, Shen Ge, Wei Fan, and Yuexian Zou. 2021b. Exploring and distilling posterior and prior knowledge for radiology report generation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2021, virtual, June 19-25, 2021, pages 13753-13762.
|
| 263 |
+
Fenglin Liu, Changchang Yin, Xian Wu, Shen Ge, Yuexian Zou, Ping Zhang, and Xu Sun. 2021c. Contrastive attention for automatic chest x-ray report generation. arXiv preprint arXiv:2106.06965.
|
| 264 |
+
AI Meta. 2024. Introducing meta llama 3: The most capable openly available llm to date. Meta AI.
|
| 265 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, July 6-12, 2002, Philadelphia, PA, USA, pages 311-318.
|
| 266 |
+
|
| 267 |
+
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, pages 8748-8763.
|
| 268 |
+
Qingya Shen, Yanzhao Shi, Xiaodan Zhang, Junzhong Ji, Ying Liu, and Huimin Xu. 2024. Ghcl: Gaussian heuristic curriculum learning for brain ct report generation. Multimedia Systems, 30(2):69.
|
| 269 |
+
Yanzhao Shi, Junzhong Ji, Xiaodan Zhang, Ying Liu, Zheng Wang, and Huimin Xu. 2024. Prior tissue knowledge-driven contrastive learning for brain CT report generation. Multim. Syst., 30(2):98.
|
| 270 |
+
Yanzhao Shi, Junzhong Ji, Xiaodan Zhang, Liangqiong Qu, and Ying Liu. 2023. Granularity matters: Pathological graph-driven cross-modal alignment for brain CT report generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP, pages 6617-6630.
|
| 271 |
+
Yuhao Tang, Haichen Yang, Liyan Zhang, and Ye Yuan. 2024. Work like a doctor: Unifying scan localizer and dynamic generator for automated computed tomography report generation. *Expert Systems with Applications*, 237:121442.
|
| 272 |
+
Omkar Thawakar, Abdelrahman M. Shaker, Sahal Shaji Mullappilly, Hisham Cholakkal, Rao Muhammad Anwer, Salman H. Khan, Jorma Laaksonen, and Fahad Shahbaz Khan. 2023. Xraygpt: Chest radiographs summarization using medical vision-language models. CoRR, abs/2306.07971.
|
| 273 |
+
Aäron van den Oord, Yazhe Li, and Oriol Vinyals. 2018. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748.
|
| 274 |
+
Ramakrishna Vedantam, C. Lawrence Zitnick, and Devi Parikh. 2015. Cider: Consensus-based image description evaluation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 4566-4575.
|
| 275 |
+
Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. 2015. Show and tell: A neural image caption generator. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 3156-3164.
|
| 276 |
+
Jun Wang, Abhir Bhalerao, and Yulan He. 2022a. Cross-modal prototype driven network for radiology report generation. In Computer Vision - ECCV 2022 - 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXXV, pages 563-579. Springer.
|
| 277 |
+
Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2023. Improving text embeddings with large language models. ArXiv, abs/2401.00368.
|
| 278 |
+
|
| 279 |
+
Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, and Ronald M. Summers. 2018. Tienet: Text-image embedding network for common thorax disease classification and reporting in chest x-rays. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 9049-9058.
|
| 280 |
+
Zifeng Wang, Zhenbang Wu, Dinesh Agarwal, and Jimeng Sun. 2022b. Medclip: Contrastive learning from unpaired medical images and text. arXiv preprint arXiv:2210.10163.
|
| 281 |
+
Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron C. Courville, Ruslan Salakhutdinov, Richard S. Zemel, and Yoshua Bengio. 2015. Show, attend and tell: Neural image caption generation with visual attention. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pages 2048-2057.
|
| 282 |
+
An Yan, Zexue He, Xing Lu, Jiang Du, Eric Y. Chang, Amilcare Gentili, Julian J. McAuley, and Chun-Nan Hsu. 2021. Weakly supervised contrastive learning for chest x-ray report generation. In *Findings of the Association for Computational Linguistics: EMNLP* 2021, Virtual Event / Punta Cana, Dominican Republic, 16-20 November, 2021, pages 4009-4015.
|
| 283 |
+
Shuxin Yang, Xian Wu, Shen Ge, S Kevin Zhou, and Li Xiao. 2022. Knowledge matters: Chest radiology report generation with general and specific knowledge. Medical image analysis, 80:102510.
|
| 284 |
+
Sisi Yang, Junzhong Ji, Xiaodan Zhang, Ying Liu, and Zheng Wang. 2021. Weakly guided hierarchical encoder-decoder network for brain ct report generation. In IEEE International Conference on Bioinformatics and Biomedicine, BIBM 2021, Houston, TX, USA, December 9-12, 2021, pages 568-573. IEEE.
|
| 285 |
+
Di You, Fenglin Liu, Shen Ge, Xiaoxia Xie, Jing Zhang, and Xian Wu. 2021. Aligntransformer: Hierarchical alignment of visual regions and disease tags for medical report generation. In Medical Image Computing and Computer Assisted Intervention - MICCAI 2021 - 24th International Conference, Strasbourg, France, September 27 - October 1, 2021, Proceedings, Part III, pages 72-82.
|
| 286 |
+
Lijun Yu, José Lezama, Nitesh B Gundavarapu, Luca Versari, Kihyuk Sohn, David Minnen, Yong Cheng, Agrim Gupta, Xiuye Gu, Alexander G Hauptmann, et al. 2023. Language model beats diffusion-tokenizer is key to visual generation. arXiv preprint arXiv:2310.05737.
|
| 287 |
+
Xiaodan Zhang, Sisi Yang, Yanzhao Shi, Junzhong Ji, Ying Liu, Zheng Wang, and Huimin Xu. 2023. Weakly guided attention model with hierarchical interaction for brain ct report generation. Computers in Biology and Medicine, page 107650.
|
| 288 |
+
Yixiao Zhang, Xiaosong Wang, Ziyue Xu, Qihang Yu, Alan L. Yuille, and Daguang Xu. 2020. When radiology report generation meets knowledge graph.
|
| 289 |
+
|
| 290 |
+
In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 12910-12917.
|
2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca846c2fcc1aec3fa02bb76930da2baf3a4da643aa2be480dc43906b1011fcc2
|
| 3 |
+
size 606626
|
2024/See Detail Say Clear_ Towards Brain CT Report Generation via Pathological Clue-driven Representation Learning/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/3b29f9b0-75b7-4106-bc6f-27cbeed85edf_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/3b29f9b0-75b7-4106-bc6f-27cbeed85edf_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/3b29f9b0-75b7-4106-bc6f-27cbeed85edf_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f0c7a3392dd024c90236fe7ea4f0de83270197445f1a3430ea938038c61cbef
|
| 3 |
+
size 4716990
|
2024/Seeing Through VisualBERT_ A Caus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anuzzaman
|
| 9 |
+
EEECS, Queen's University Belfast
|
| 10 |
+
Belfast, BT7 1NN, UK
|
| 11 |
+
m.hasanuzzaman@qub.ac.uk
|
| 12 |
+
|
| 13 |
+
Asif Ekbal
|
| 14 |
+
Indian Institute of Technology Jodhpur
|
| 15 |
+
Jodhpur, Rajasthan, India
|
| 16 |
+
asif@iitp.ac.in
|
| 17 |
+
|
| 18 |
+
# Abstract
|
| 19 |
+
|
| 20 |
+
Detecting offensive memes is crucial, yet standard deep neural network systems often remain opaque. Various input attribution-based methods attempt to interpret their behavior, but they face challenges with implicitly offensive memes and non-causal attributions. To address these issues, we propose a framework based on a Structural Causal Model (SCM). In this framework, VisualBERT is trained to predict the class of an input meme based on both meme input and causal concepts, allowing for transparent interpretation. Our qualitative evaluation demonstrates the framework's effectiveness in understanding model behavior, particularly in determining whether the model was right due to the right reason, and in identifying reasons behind misclassification. Additionally, quantitative analysis assesses the significance of proposed modelling choices, such as de-confounding, adversarial learning, and dynamic routing, and compares them with input attribution methods. Surprisingly, we find that input attribution methods do not guarantee causality within our framework, raising questions about their reliability in safety-critical applications<sup>1</sup>. The project page is at: https://newcodevelop.github.io/causality_adventure/
|
| 21 |
+
|
| 22 |
+
# 1 Introduction
|
| 23 |
+
|
| 24 |
+
Memes have evolved from spreading humor to being used for disseminating offensive content, necessitating the development of neural multimodal systems to detect such content (Kiela et al., 2021). However, these systems often lack transparency, undermining public trust in real-world applications
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Figure 1: The Underlying notion of these memes is racism, which is implicit. None of the input attribution methods could decipher the notion of racism solely through input attribution.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
|
| 31 |
+
and highlighting the need for interpretability and trustworthiness.
|
| 32 |
+
|
| 33 |
+
While Large Language Models (LLMs) and Vision Language Models (VLMs) could predict offensive memes and provide self-explanations, these explanations are not always faithful to model behavior (Madsen et al., 2024; Agarwal et al., 2024). Our self-consistency checks (\$Appendix B) confirm this issue for offensive meme detection, prompting us to focus on enhancing the reliability of existing multimodal classifiers. Current interpretability techniques, such as input attributions (e.g., Integrated Gradient (Sundararajan et al., 2017)), struggle with implicit content and causality. For implicitly offensive memes, attribution methods fail to capture underlying concepts like 'racism' (refer to Figure 1). Also, they only detect influential features without considering their causal impact (Chattopadhyay et al., 2019).
|
| 34 |
+
|
| 35 |
+
Causality-based techniques like CausaLM (Feder et al., 2021) and Amnesic Probing (Elazar et al., 2021) offer solutions but face scalability issues and focus on global rather than local explanations like: 'Is adjective important for sentiment analysis' or 'Is part-of-speech information crucial for word prediction?' We
|
| 36 |
+
|
| 37 |
+
address these limitations with a novel causal framework integrating VisualBERT (Li et al., 2019) with causal concepts. Our approach extracts implicit context from the meme as a set of causal concepts and uses dynamic routing and adversarial learning to predict meme offensiveness based on both meme content and contribution from causal concepts.
|
| 38 |
+
|
| 39 |
+
Quantitative analysis (Section 6) shows that traditional interpretability techniques, which rely on correlation, do not always align with causality, emphasizing that correlation does not imply causation. Through ablation studies, we demonstrate that our framework bases its predictions on relevant causal concepts, enhancing trustworthiness. Qualitative analysis (Section 7) indicates whether the model's decisions are justifiable and explains its error cases.
|
| 40 |
+
|
| 41 |
+
Our proposed framework is novel, model-agnostic, and acts as a proof-of-concept which demonstrates the potential of using causal analysis to elucidate the decision-making process of multimodal classifiers.
|
| 42 |
+
|
| 43 |
+
# 2 Related Work
|
| 44 |
+
|
| 45 |
+
Causal Interpretability: Causal interpretability aims to understand how counterfactuals cause model outputs to change, thus estimating the causal effect of inputs (Feder et al., 2022). A subfield, causal mediation analysis, explores the mechanisms behind these effects (Geiger et al., 2021; Vig et al., 2020; Meng et al., 2023). Generating exact counterfactuals is challenging (Abraham et al., 2022; Calderon et al., 2022), so recent work focuses on approximations (Geiger et al., 2021) or counterfactual representation (Feder et al., 2021; Elazar et al., 2021; Ravfogel et al., 2021). Our current research concentrates on counterfactual representation. Most of the existing works target single modality (e.g. text or vision) (Feder et al., 2021; Goyal et al., 2020) and answer global questions about feature importance (Elazar et al., 2021). We propose a method for answering local questions about specific concepts (e.g., 'Is the meme offensive due to the presence of Holocaust as a concept?') while addressing scalability issues of prior methods (Feder et al., 2022). Our framework incorporates concept annotations and integrates with VisualBERT for trustworthy local causal interpretability.
|
| 46 |
+
|
| 47 |
+
Multimodal Interpretability. Recently, there has been a surge in multimodal models for various
|
| 48 |
+
|
| 49 |
+
tasks (Ding et al., 2021; Du et al., 2022; Li et al., 2023; Liu et al., 2023; Zhu et al., 2023), yet research on generating explanations for their predictions remains limited. Researchers primarily rely on interpretability techniques like LIME (Ribeiro et al., 2016) and SHAP (Lundberg and Lee, 2017a) and various input attribution methods (Sundararajan et al., 2017; Lundberg and Lee, 2017b; Shrikumar et al., 2017). However, recently, there has been a shift towards generating natural language explanations, bridging the gap between text-only and multimodal systems. Methods like NLX-GPT (Sammani et al., 2022) and Semantify (Bandyopadhyay et al., 2024) offer solutions but fail to fully capture implicit causal meanings or the causal impact of input features (Chattopadhyay et al., 2019). This gap motivated us to develop a framework that enables causal interpretations of implicit inputs.
|
| 50 |
+
|
| 51 |
+
# 3 Causal Process
|
| 52 |
+
|
| 53 |
+
# 3.1 Causal Diagram
|
| 54 |
+
|
| 55 |
+
Our framework is based on a Structural Causal Model (SCM) that integrates both the causal explanation process and multimodal classification objectives, drawing inspiration from Geiger et al. (2021). We assume an exogenous variable $E_{1}$ that generates causal concepts $c_{1},\ldots$ to $c_{n}$ . Another exogenous variable $E_{2}$ controls meme text $t$ and image $v$ representation. The collection of the concepts $\{c_i\}_{i = 1}^n$ controls the latent representation $L$ . $(t,v)$ along with $L$ controls the intermediate representation $I$ , which further controls the output $y$ of the model. Figure 2 represents this in details.
|
| 56 |
+
|
| 57 |
+
Counterfactual Representation. Inspired by CausaLM (Feder et al., 2021), we want to intervene $I$ such that the generated counterfactual representation $I^{CF_i}$ is insensitive to concept $c_{i}$ and similar to $I$ for all the other concepts except $c_{i}^{2}$ .
|
| 58 |
+
|
| 59 |
+
To achieve this, we observe the SCM, depicted in Figure 2, where $I = f(L,(t,v))$ and $L$ represents the latent, a weighted sum of concept representations $c_{i}$ , given by $L = \sum_{i=1}^{n} w_{i} \cdot c_{i}$ . Creating a counterfactual latent $(L^{-i})$ unaffected by a specific concept $c_{i}$ is straightforward to achieve by setting $w_{i} = 0$ . This explicit modelling offers simple implementation and ensures $I^{CF_{i}}$ represents a counterfactual unaffected by $c_{i}$ , while still influenced by other concepts.
|
| 60 |
+
|
| 61 |
+
Need for De-confounding. In this formulation
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 2: Left: The causal process is illustrated by a SCM. Right: Causal intervention selectively intervenes on a concept $c_{i}$ to nullify its effect on the model. This generates the intermediate counterfactual representation $I^{CF_i}$ . To measure the causal effect of concept $c_{i}$ , we take the Individual treatment effect (ITE) as $|y' - y|$ . Dotted blue lines denote that meme content representations $(t,v)$ (along with $E_{1}$ ) generate causal concepts $c_{i}$ . X demonstrates causal intervention, i.e. breaking the link between $(t,v)$ and $c_{i}$ , realized by setting $w_{i} = 0$ .
|
| 65 |
+
|
| 66 |
+
of obtaining the counterfactual representation, a challenge arises because concept $c_{i}$ might be correlated with other concepts $\{c_{j}\}$ (e.g. 'holocaust' is correlated to ' Nazism'), such that $L^{-i}$ can be retrieved from $\{c_{j}\}$ . We term these influencing concepts like $\{c_{j}\}$ as 'control concepts' and $c_{i}$ as the 'treated concept', following the terminology in Feder et al. (2021). To address this challenge, we propose a novel step called de-confounding (refer to Section 4.3). Here, we constrain our framework to prevent the recovery of a treated concept $c_{i}$ from the counterfactual latent representation $L^{-i}$ , which is essentially a linear combination of potential control concepts. The intuition is that once a concept is removed from the representation containing it, it cannot be recovered.
|
| 67 |
+
|
| 68 |
+
Causal Effect of Concept $c_{i}$ . Drawing inspiration from existing literature (Feder et al., 2021), we formulate the causal effect of concept $c_{i}$ (for a specific input) as:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\begin{array}{l} \widehat {R I T E} _ {i} = < \phi \left(I _ {D C} ^ {C F _ {i}}\right) - \phi \left(I _ {D C}\right) > \\ = < \phi (f ((t, v), L _ {D C} ^ {- i})) - \phi (f ((t, v), L _ {D C})) > \tag {1} \\ \end{array}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
Here, $\widehat{RITE}_i$ represents the "Representation-based Individual Treatment Effect", for $c_i$ , with $DC$ as subscript representing the de-confounding objective. The function $f$ , modelled as VisualBERT in this paper, takes the input meme as text and visual representation $((t,v))$ and latent $L_{DC}$ , outputting a representation $I_{DC}$ . This intermediate representation is then passed through a classifier $\phi$ . Essentially, $\widehat{RITE}_i$ denotes the absolute change
|
| 75 |
+
|
| 76 |
+
in predicted class probability due to the absence of concept $c_{i}$ and could be used to measure its causal effect on the model.
|
| 77 |
+
|
| 78 |
+
# 3.2 Concept Annotation
|
| 79 |
+
|
| 80 |
+
Figure 2 illustrates the causal process, which relies on the integration of concepts alongside meme inputs to facilitate model predictions. The selection of these concepts (which form the 'concept set') is pivotal, aiming to i) encapsulate the breadth of themes present within the training dataset while ii) minimizing redundancy.
|
| 81 |
+
|
| 82 |
+
Scalability. To make the annotation process efficient and scalable, we use the following approach. Starting empty, the concept set expands as new concepts are introduced. For example, if the first meme includes 'terrorism' and 'holocaust', these are added to the set. If the second meme includes 'terrorism' and 'racism', the set becomes 'terrorism', 'holocaust', 'racism'. Therefore, we only append new concepts to the set if they are absent, to minimize redundancy and counter overlap between similar concepts.
|
| 83 |
+
|
| 84 |
+
Annotation Process. We enlisted three annotators, all postgraduate students aged 25-27 with expertise in multimodal machine learning and prior experience curating datasets published in reputable venues, to annotate the concept set. We ensured ethics and took active steps to ensure their wellbeing, as detailed in Appendix Section G. Let us denote the three annotated concept sets as $\{c_1\}$ , $\{c_2\}$ , and $\{c_3\}$ . We then calculate concept representation $r_t(c_1^i)$ , where $c_1^i$ denotes $i$ th concept from set $\{c_1\}$ . Similarly, let us denote meme representation as $r_t(T^j) \odot r_v(V^j)$ , where $T^j$ , $V^j$ are the text and image of the $j$ th meme from the test set, and $\odot$ illustrates element-wise multiplication. Here, $r_t(T^j) \in \mathbb{R}^{1 \times 768}$ and $r_v(V^j) \in \mathbb{R}^{1 \times 768}$ represent CLIP (Radford et al., 2021) text and vision encodings respectively for the $j$ th meme. We then calculate the total similarity of the set $\{c_1\}$ to the memes in the training set as $\sum_{j=0}^{N} \sum_{i=0}^{n} r_t(c_1^i)^T \cdot (r_t(T^j) \odot r_v(V^j))$ , where $N$ is the number of memes in the training set and $n$ is the number of concepts in the set $\{c_1\}$ . Similarly, this total similarity is calculated for sets $\{c_2\}$ , and $\{c_3\}$ . We observe that the total similarity of set $\{c_2\}$ is the highest which leads us to choose this as the final set. The concepts in $\{c_2\}$ are shown in Table 1.
|
| 85 |
+
|
| 86 |
+
Ambiguity Resolution. Annotators were instructed to maintain precision and leverage existing annotated concepts when annotating new memes.
|
| 87 |
+
|
| 88 |
+
Despite these guidelines, ambiguities often emerged, especially when new meme concepts were semantically similar to already annotated concepts. In these instances, annotators were encouraged to engage in discussions to reach a consensus if they encountered difficulties in identifying or formulating a concept. Additionally, they were advised to utilize shared resources, such as dictionaries, to identify semantically related terms.
|
| 89 |
+
|
| 90 |
+
# 4 Methodology
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 3: Model architecture comprising of Visual-BERT, a dynamic routing layer and a gradient reversal layer. $0/1$ : non-offensive/offensive.
|
| 94 |
+
|
| 95 |
+
Our method relies on a three-step process, namely i) Dynamic Routing, ii) Adversarial learning and iii) De-confounding.
|
| 96 |
+
|
| 97 |
+
Model Inputs. A meme consists of text $T$ and image $I$ . We extract image features using FasterRCNN (Ren et al., 2016), yielding dimensions $v \in \mathbb{R}^{\mathbb{B} \times \mathbb{N} \times 768}$ . Text tokens pass through the model embedding layer to generate text features with dimensions $t \in \mathbb{R}^{\mathbb{B} \times \mathbb{M} \times 768}$ . Concatenating these text and image features $(t, v)$ results in input dimensions of $\mathbb{R}^{\mathbb{B} \times (\mathbb{M} + \mathbb{N}) \times 768}$ for VisualBERT. Additionally, we introduce a latent representation $L$ , with dimensions $\mathbb{R}^{\mathbb{B} \times 1 \times 768}$ , obtained by weighted summation of concept features $c_i$ . Formally, $L = \sum_{i=0}^{n} (w_d^i + w_s^i)c_i$ , where $w_d^i$ is a dynamic weight, $w_d^i = \rho(c_i, T)$ , dependent on the $i$ th concept $c_i$ and the meme text $T$ . This functional relationship is learned through dynamic routing. Similarly, $w_s^i$ are static weights, $w_s^i = \tau(c_i)$ , dependent only on the concept $c_i$ .
|
| 98 |
+
|
| 99 |
+
# 4.1 Dynamic Routing.
|
| 100 |
+
|
| 101 |
+
Need for Dynamic Routing. The key idea behind dynamic routing is to learn dynamic weights that determine the importance of each concept for a
|
| 102 |
+
|
| 103 |
+
prediction based on both the meme input and the concept itself. These weights are functions of the meme's text, and concept, serving as learnable parameters that control each concept's influence on the prediction. Without dynamic routing, static weights are used, treating all concepts equally, regardless of the specific meme input.
|
| 104 |
+
|
| 105 |
+
# How is it achieved?
|
| 106 |
+
|
| 107 |
+
To model the interaction between the $M$ text features $\{t_j\}_{j = 0}^M$ produced by VisualBERT for a given input $T$ and the concept feature $c_{i}$ , we learn a weight $W$ , which modifies $t_j$ as $t_{ij} = W_{ij}\cdot t_j$ . Further, the interaction between $c_{i}$ and $t_j$ can be modelled by taking a dot product between them. $p_{ij} = t_j^T\cdot c_i$ demonstrates this operation, where $p_{ij}$ is a scalar. To normalize $p_{ij}$ between 0 and 1, we use the softmax function: $b_{ij} = \frac{\exp(p_{ij})}{\sum_{k = 0}^{n}\exp(p_{ik})}$ , where $n$ is the number of concepts. To measure the effect of all text inputs on concept $i$ , we calculate the weighted mean: $s_i = \frac{1}{M}\sum_{j = 0}^{M}b_{ij}\cdot t_{ij}$ where $M$ is the number of text tokens input to the model. Here, $s_i$ shows the cumulative effect of all the text inputs on concept $c_{i}$ . To model the interaction between $c_{i}$ and $T$ , we want the length of $s_i$ to approximate their interaction. Specifically, longer vectors should have a unit length, whereas shorter vectors should have a length close to zero. This is achieved using the following squashing function (Sabour et al., 2017):
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
v _ {i} = \operatorname {s q u a s h} \left(s _ {i}\right) = \frac {\left\| s _ {i} \right\| ^ {2}}{1 + \left\| s _ {i} \right\| ^ {2}} \cdot \frac {s _ {i}}{\left\| s _ {i} \right\|} \tag {2}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
The length of $v_{i}$ acts as the dynamic weight between $c_{i}$ and $T_{i}$ , such that $w_{d}^{i} = \rho (c_{i},T) = ||v_{i}||$ .
|
| 114 |
+
|
| 115 |
+
# 4.2 Adversarial Learning
|
| 116 |
+
|
| 117 |
+
Notation. Let $m_i$ be a $\mathbb{R}^{1 \times 768}$ dimensional vector output corresponding to the '[CLS]' token when VisualBERT processes the text $T$ and image $I$ . Similarly, let $\hat{m}_i$ be the output vector when VisualBERT processes the text $T$ , image $I$ , and latent $L$ (by concatenating with image representation). For classifying an input meme, we utilize a feed-forward neural network (FFN) on the representation $\hat{m}_i$ .
|
| 118 |
+
|
| 119 |
+
Need for Adversarial Learning. Typically, input text and images contain sufficient information to classify a meme into offensive or non-offensive classes, rendering the latent representation less effective compared to text and image inputs alone. To enhance the effectiveness of the latent representation to match that of text and image inputs, we
|
| 120 |
+
|
| 121 |
+
<table><tr><td>0. holocaust (535)</td><td>1. nazism (510)</td><td>2. genocide (292)</td><td>3. funny (3000)</td><td>4. anti-muslim (345)</td><td>5. terrorism (276)</td></tr><tr><td>6. violence (360)</td><td>7. politics (122)</td><td>8. racism (405)</td><td>9. international-relation (88)</td><td>10. adult (172)</td><td>11. gore (178)</td></tr><tr><td>12. misogynistic (381)</td><td>13. immigration (430)</td><td>14. extremism (431)</td><td>15. immoral (151)</td><td>16. white supremacy (205)</td><td>17. indecency (831)</td></tr></table>
|
| 122 |
+
|
| 123 |
+
Table 1: Annotated concepts and the number of memes that have this concept in brackets. Note that the total number of concepts may exceed the number of memes as a meme can have multiple concepts. Annotators could see the train labels while annotating and were instructed to label non-offensive memes as funny.
|
| 124 |
+
|
| 125 |
+
employ adversarial learning. The objective is to make both $m_{i}$ and $L$ invariant to the output class, while their combined representation $\hat{m}_{i}$ should retain discriminatory information for classifying memes. The aim is for $L$ to be as effective as the combined text and image inputs.
|
| 126 |
+
|
| 127 |
+
How is it achieved? To achieve this, we utilize a Gradient Reversal Layer (Ganin and Lempitsky, 2015) before passing $L$ and $m_{i}$ to two separate classifiers for the offensiveness detection task. These classifiers help learn class-invariant $L$ and $m_{i}$ , while the classifier utilizing $\hat{m}_{i}$ learns class-dependent representation.
|
| 128 |
+
|
| 129 |
+
# 4.3 De-confounding
|
| 130 |
+
|
| 131 |
+
The premise of de-confounding and its necessity is described in Section 3.1. Before deconfounding, we assume, that there exists some $\overline{W}$ , which can project each $L^{-i}$ to $c_{i}$ . More formally, $\overline{W} \cdot L^{CF} = C$ , where $L^{CF} = [-L^{-1}, -L^{-2}, \dots, -L^{-n}] \in \mathbb{R}^{768 \times n}$ , and $C = [-c_{1}, -c_{2}, \dots, -c_{n}] \in \mathbb{R}^{768 \times n}$ , where $L^{-i}, c_{i} \in \mathbb{R}^{1 \times 768}$ and there are $n$ concepts.
|
| 132 |
+
|
| 133 |
+
For De-confounding, we aim to learn a projection matrix $P$ (a nullspace projection matrix of $\overline{W}$ ) such that projecting each $c_{i}$ through it yields counterfactual latent $L^{CF'}$ incapable of reconstructing $C$ . The following theorem illustrates this.
|
| 134 |
+
|
| 135 |
+
Theorem. If $P$ is a nullspace projection matrix of $\overline{W}$ and $C' = P \cdot C$ for all $i$ , then $\overline{W} \cdot L^{CF'} = 0$ for all $i$ . For Proof, refer to Appendix Section §C. After de-confounding, we denote the latent $L$ with a subscript, i.e., $L_{DC}$ .
|
| 136 |
+
|
| 137 |
+
# 5 Experimental setups
|
| 138 |
+
|
| 139 |
+
The experimental setups and dataset details are elaborated in the Appendix Section F due to space constraints. Here we introduce various metrics and baselines.
|
| 140 |
+
|
| 141 |
+
# 5.1 Simulating Model Outcome
|
| 142 |
+
|
| 143 |
+
Definition. Simulatability, as defined in Hase et al. (2020), refers to how well explanations from model $M$ help an observer (e.g. another simpler model,
|
| 144 |
+
|
| 145 |
+
called a simulator model) predict outputs of $M$ . Intuitively, better simulatability would reflect faithful explanation as there is a pattern between explanation as input and model prediction as output for the simulator to learn. In our proposed framework, explanation would mean causally sorted concepts in descending order. Sorting is necessary to preserve the causal importance order between the concepts.
|
| 146 |
+
|
| 147 |
+
Notation. Let us assume an ordered set $X_{cau}^{j} = \{x_{i}^{j}\}_{i=1}^{n}$ contains $n$ concepts sorted by their causal attribution score (measured by $\widehat{RITE}$ score) in a decreasing manner for the $j$ th meme in the dataset. Similarly, let us assume an ordered set $X_{attr}^{j}$ refers to $n$ concepts sorted by their input attribution score by an input attribution method like Integrated Gradient.
|
| 148 |
+
|
| 149 |
+
Rank Correlation. A positive correlation between these sets $X_{cau}^{j}$ and $X_{attr}^{j}$ indicates that highly attributed concepts also influence model outcomes (causality), while a negative correlation suggests the opposite. We measure correlation by both Kendal's (KENDALL, 1938) and Spearman's rank correlation (Spearman, 1904) criteria.
|
| 150 |
+
|
| 151 |
+
Accuracy Metrics. Denoting $\hat{x}_i^j$ as the text representation of $x_i^j$ , the rank-adjusted³ BoW representation $\hat{X}^j$ (note that we drop cau or attr as subscript to show a generic case) of the set $X^j$ would be $\frac{1}{n}\sum_{i=1}^{n}\gamma^i\hat{x}_i^j$ , where $\gamma = 0.9$ is a positive non-zero constant. We train a simulator (a support vector machine-SVM model (Cortes and Vapnik, 1995)) on: i) $\hat{X}^j$ , ii) concatenation of $\hat{X}^j$ and $\hat{m}_i^j$ , denoted by $[\hat{X}^j;\hat{m}_i^j]$ , and iii) $\hat{m}_i^j$ , to predict the original model prediction $\hat{y}^j$ . The jth superscript reflects the jth meme. Intuitively, the SVM simulates the original model based on the provided information (either one of cases (i), (ii), or (iii)). The performance of the simulator can be seen in Table 2. F1 w/exp denotes the simulator performance in case (i) when only the ranked concepts $X_{cau}$ or $X_{attr}$ were used as simulator input. Similarly, F1 w/inp denotes case (iii), where the multimodal represent
|
| 152 |
+
|
| 153 |
+
tation $(\hat{m}_i^j)$ is used for model input. Lastly, $F1w/$ both denotes case (ii).
|
| 154 |
+
|
| 155 |
+
Comprehensiveness and Sufficiency. To measure the impact of set $X_{cau}$ or $X_{attr}$ on simulator performance, we employ two metrics: i) Comprehensiveness and ii) Sufficiency (DeYoung et al., 2020). Comprehensiveness quantifies the reduction in simulator model confidence when $\hat{X}^j$ replaces $[\hat{X}^j; \hat{m}_i^j]$ as simulator input. Denoting the simulator by $S$ , comprehensiveness is $S([\hat{X}^j; \hat{m}_i^j])_k - S(\hat{m}_i^j)_k$ for predicted class $k$ . A higher comprehensiveness score indicates more importance of attribution set $X^j$ for the simulator. Sufficiency is defined as $S([\hat{X}^j; \hat{m}_i^j])_k - S(\hat{X}^j)_k$ . It requires a higher average comprehensiveness and lower average sufficiency score for $X^j$ to be considered more simulatable.
|
| 156 |
+
|
| 157 |
+
# 5.2 Quantifying Trustworthiness
|
| 158 |
+
|
| 159 |
+
To measure the trustworthiness of a model, understanding whether its predictions originate from relevant concepts within the input is crucial, akin to assessing if the model is 'right for the right reasons.' To ascertain this, we annotate offensive memes from the test set with relevant concepts from a predefined set of 18 concepts. Subsequently, we employ averaged Precision@5 (P@5), Recall@5 (R@5), and Mean Average Precision (MAP@5) to assess the relevance of the top five concepts (w.r.t. the annotation) from both the $X_{cau}$ and the attribution set $X_{attr}$ obtained through various input attribution methods. Technical specifics are detailed in the Appendix Section E. Better scores in all these metrics reflect that the top attributed concepts align with human judgement, thus essentially making the model more trustworthy in return.
|
| 160 |
+
|
| 161 |
+
# 5.3 Baselines
|
| 162 |
+
|
| 163 |
+
We employ several standard input attribution methods to calculate attribution scores, dividing them into two groups based on their underlying mechanisms:
|
| 164 |
+
|
| 165 |
+
# Path-integral based Gradient Attribution:
|
| 166 |
+
|
| 167 |
+
- Integrated Gradients (IG) (Sundararajan et al., 2017): IG attributes the importance of features by integrating gradients along the path from a baseline input to the actual input. It ensures that attribution is distributed across all input features in a manner that satisfies the completeness property (§Appendix A).
|
| 168 |
+
|
| 169 |
+
- DeepLIFT (Shrikumar et al., 2019): This method compares the activation of each neuron to a reference, and assigns importance to the neuron based on the comparison score.
|
| 170 |
+
- DeepLIFTSHAP (Lundberg and Lee, 2017a): A variant of DeepLIFT that aligns with SHAP values, combining both methods to compute attribution based on a cooperative game-theory approach.
|
| 171 |
+
- GradientSHAP (Ancona et al., 2018): GradientSHAP samples a point between an input-baseline pair and computes the mean gradients with respect to an output class across all such pairs.
|
| 172 |
+
|
| 173 |
+
# Simple Gradient Attribution:
|
| 174 |
+
|
| 175 |
+
- Saliency (Simonyan et al., 2014): It Identifies key input features by computing output gradients, highlighting features most influential to the model's prediction.
|
| 176 |
+
- Input $\times$ Gradient (Shrikumar et al., 2017): This method computes the element-wise product of the input and its gradient to measure each feature's contribution to the prediction.
|
| 177 |
+
|
| 178 |
+
We use the Captum library (https://captum.ai/) to calculate attributions for each method and apply these attributions to three matrices: i) the concept matrix $(C\in \mathbb{R}^{18\times 768})$ , ii) the textual embedding $(t\in \mathbb{R}^{\mathbb{B}\times \mathbb{M}\times 768})$ , and iii) the image embedding $(v\in \mathbb{R}^{\mathbb{B}\times \mathbb{N}\times 768})$
|
| 179 |
+
|
| 180 |
+
Comparison with Our Methodology. Traditional input attribution methods outlined above rank features (or concepts) by assigning scores based on their importance to the model's output. In contrast, our approach adopts a causal perspective, using the RITE score to measure how much each concept causally influences the prediction.
|
| 181 |
+
|
| 182 |
+
While our causal framework differs from standard attribution techniques, we explore an intriguing link between the completeness property of path-integral methods and causality, which we discuss in more detail in Appendix A.
|
| 183 |
+
|
| 184 |
+
# 6 Quantitative Findings
|
| 185 |
+
|
| 186 |
+
1. Classifier performance. Model performance on the test set is $70.36\%$ as measured by the F1 score. This reflects the VisualBERT in our framework works well and even exceeds some of the benchmark models evaluated as a part of the FB Hateful Mem dataset (Kiela et al., 2021).
|
| 187 |
+
|
| 188 |
+
<table><tr><td rowspan="2">Methods</td><td colspan="2">Causal Rank Correlation</td><td colspan="2">Explainability of Simulator</td><td colspan="3">Performance of Simulator</td></tr><tr><td>Kendall's Tau</td><td>Spearman's rho</td><td>Comprehensiveness</td><td>Sufficiency</td><td>F1 w/ both</td><td>F1 w/ inp</td><td>F1 w/ exp</td></tr><tr><td>Int. Grad.</td><td>0.017</td><td>0.025</td><td>0.030</td><td>0.089</td><td>0.66</td><td>0.62</td><td>0.53</td></tr><tr><td>Saliency</td><td>0.859</td><td>0.916</td><td>0.005</td><td>0.116</td><td>0.63</td><td>0.62</td><td>0.42</td></tr><tr><td>DeepLift</td><td>-0.001</td><td>-0.002</td><td>0.029</td><td>0.021</td><td>0.67</td><td>0.62</td><td>0.65</td></tr><tr><td>DeepLiftSHAP</td><td>-0.003</td><td>-0.005</td><td>0.035</td><td>0.017</td><td>0.67</td><td>0.62</td><td>0.68</td></tr><tr><td>GradientSHAP</td><td>0.010</td><td>0.014</td><td>0.008</td><td>0.117</td><td>0.63</td><td>0.62</td><td>0.45</td></tr><tr><td>Input x Grad</td><td>-0.001</td><td>-0.002</td><td>0.034</td><td>0.029</td><td>0.68</td><td>0.62</td><td>0.67</td></tr><tr><td>Causal</td><td>1</td><td>1</td><td>0.002</td><td>0.112</td><td>0.63</td><td>0.62</td><td>0.46</td></tr></table>
|
| 189 |
+
|
| 190 |
+
Table 2: Table shows an assessment of input attribution-based methods in two directions: i) Their rank correlation with causality, ii) Explanation capability of the extracted keywords as measured by a simulator. Note that here we do not use de-confounding for input-attribute methods as we want to measure the overall effect of these concepts on the model outcome (\$list A)
|
| 191 |
+
|
| 192 |
+
<table><tr><td>Input Attr/Causal</td><td colspan="3">Full</td><td colspan="3">w/o dyn. routing</td><td colspan="3">w/o adversarial</td><td colspan="3">w/o deconfounding</td></tr><tr><td></td><td>R@5</td><td>P@5</td><td>MAP@5</td><td>R@5</td><td>P@5</td><td>MAP@5</td><td>R@5</td><td>P@5</td><td>MAP@5</td><td>R@5</td><td>P@5</td><td>MAP@5</td></tr><tr><td>Int. Grad.</td><td>0.29</td><td>0.20</td><td>0.20</td><td>0.26</td><td>0.17</td><td>0.19</td><td>0.28</td><td>0.19</td><td>0.17</td><td>0.27</td><td>0.18</td><td>0.17</td></tr><tr><td>Saliency</td><td>0.27</td><td>0.19</td><td>0.18</td><td>0.19</td><td>0.12</td><td>0.16</td><td>0.29</td><td>0.19</td><td>0.16</td><td>0.32</td><td>0.21</td><td>0.25</td></tr><tr><td>DeepLIFT</td><td>0.30</td><td>0.21</td><td>0.21</td><td>0.27</td><td>0.18</td><td>0.17</td><td>0.26</td><td>0.18</td><td>0.16</td><td>0.26</td><td>0.18</td><td>0.18</td></tr><tr><td>DeepLiftSHAP</td><td>0.31</td><td>0.21</td><td>0.22</td><td>0.31</td><td>0.22</td><td>0.22</td><td>0.30</td><td>0.20</td><td>0.20</td><td>0.29</td><td>0.19</td><td>0.20</td></tr><tr><td>GradSHAP</td><td>0.30</td><td>0.20</td><td>0.20</td><td>0.30</td><td>0.21</td><td>0.21</td><td>0.29</td><td>0.20</td><td>0.20</td><td>0.29</td><td>0.20</td><td>0.20</td></tr><tr><td>Input x Grad</td><td>0.30</td><td>0.21</td><td>0.21</td><td>0.26</td><td>0.17</td><td>0.17</td><td>0.27</td><td>0.19</td><td>0.17</td><td>0.26</td><td>0.18</td><td>0.17</td></tr><tr><td>Causal</td><td>0.26</td><td>0.18</td><td>0.17</td><td>0.21</td><td>0.14</td><td>0.16</td><td>0.20</td><td>0.14</td><td>0.13</td><td>0.30</td><td>0.20</td><td>0.19</td></tr></table>
|
| 193 |
+
|
| 194 |
+
Table 3: Red border denotes scores obtained by Causal framework, i.e. sorting keywords with their RITE score. The scores from alternative input-attribute methods are also displayed.
|
| 195 |
+
|
| 196 |
+
2. Simple attribution methods align better with Causality. Table 2 presents Kendall's tau and Spearman's rho (averaged across all memes in the test set) for correlation comparison. Notably, simpler methods like Saliency show a stronger correlation with the causal set than complex methods like DeepLIFT, suggesting their potential to capture causal relationships. This suggests that simpler methods may offer a clearer and more direct understanding of causality within the model's decision-making process.
|
| 197 |
+
|
| 198 |
+
3. Complex attribution methods are more simulatable. Consider the $F1$ w/ exp scores for DeepLIFT, DeepLiftSHAP, and Input x Grad as input attribution methods (§Table 2). The attribution set $X_{attr}$ obtained by these methods achieves $\sim 66\%$ F1 score of the simulator, indicating a high correlation between $X_{attr}$ and the original model prediction $\hat{y}$ (termed as highly simulatable). Also both comprehensiveness and sufficiency scores are higher for these models.
|
| 199 |
+
|
| 200 |
+
4. Correlation does not imply causation. Note the negative correlation of $X_{attr}$ with the $X_{cau}$ set for complex attribution methods (§Table 2), highlighting the fact that Correlation (simulation) does not always imply Causation. Additionally, observe the lower $F1w / exp$ score obtained by the Saliency
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
Figure 4: Comparison of mean $\widehat{RITE}$ score between w/ de-confounding and w/o de-confounding strategies
|
| 204 |
+
|
| 205 |
+
attribution set, despite its higher rank correlation to the Causal set. This suggests that keywords causally related to model outcome may not always be easily simulatable. This outcome is in line with the study of Bastings et al. (2022), where authors showed that simple attribution methods are more faithful compared to complex methods. Note that although the findings match, their approach is non-causal and does not overlap with ours at all.
|
| 206 |
+
|
| 207 |
+
5. Dynamic routing is paramount. Within our framework (§Table 3), without any ablation of modelling components (shown by Full), the $X_{cau}$ set achieves 0.26, 0.18, and 0.17 scores for R@5, P@5, and MAP@5, respectively. Disabling dynamic routing (w/o dyn. routing) results in static
|
| 208 |
+
|
| 209 |
+
<table><tr><td>Meme Idx</td><td>Top-5 Causal</td><td>Actual</td><td>Predicted</td><td>Possible Reason</td></tr><tr><td>32</td><td>‘anti muslim’, ‘terrorism’, ‘genocide’, ‘violence’, ‘adult’</td><td>Non Offensive</td><td>Offensive</td><td>Dataset bias</td></tr><tr><td>93</td><td>‘violence’ ‘racism’, ‘genocide’, ‘anti muslim’, ‘holocaust’</td><td>Non Offensive</td><td>Offensive</td><td>Dataset bias</td></tr><tr><td>92</td><td>‘violence’, ‘genocide’, ‘terrorism’, ‘extremism’, ‘ Nazism’</td><td>Non Offensive</td><td>Offensive</td><td>Inadequate context</td></tr><tr><td>65</td><td>‘indececy’, ‘holocaust’, ‘funny’, ‘immigration’, ‘racism’</td><td>Offensive</td><td>Non Offensive</td><td>Background knowledge</td></tr><tr><td>73</td><td>‘holocaust’, ‘violence’, ‘gore’, ‘Nazism’, ‘funny’</td><td>Offensive</td><td>Non Offensive</td><td>Modality conflict</td></tr><tr><td>76</td><td>‘misogynistic’, ‘gore’, ‘holocaust’, ‘extremism’, ‘ Nazism’</td><td>Offensive</td><td>Non Offensive</td><td>Bias and modality conflict</td></tr></table>
|
| 210 |
+
|
| 211 |
+
Table 4: Meme index with corresponding causal keywords and their possible reason behind error cases.
|
| 212 |
+
|
| 213 |
+
weighting of concepts irrespective of meme input, leading to reduced scores for the $X_{cau}$ set across all metrics compared to the Full framework, indicating diminished trustworthiness.
|
| 214 |
+
|
| 215 |
+
6. De-confounding is necessary for establishing correlation between causal concepts and model output. Without de-confounding, input attribution-based methods like DeepLIFTSHAP and GradientSHAP do not perform as well as they do with other configurations (e.g. w/o dyn. routing). Refer to Table 3. This suggests that without de-confounding, the model struggles to find a proper correlation between causal concepts and model output. Empirically, in Figure 4, we illustrate the mean $\widehat{RITE}$ scores of the concepts with and without de-confounding. Without deconfounding, due to widely varied mean $\widehat{RITE}$ scores for several concepts, certain concepts dominate the top positions in the causal set, regardless of the input, indicating potential bias in the model's causal attribution and making it difficult for input attribution methods to establish a correlation between model input and output, resulting in lower scores across metrics.
|
| 216 |
+
|
| 217 |
+
# 7. Necessity of de-confounding for causality.
|
| 218 |
+
|
| 219 |
+
The observation that the 'causal' set performs better without de-confounding may raise questions about its necessity. However, as illustrated in Section 3, de-confounding remains a principally valid choice. Without de-confounding, as discussed in the previous paragraph, certain concepts often dominate the top positions in the causal set, regardless of the input. Conversely, with de-confounding, all concepts have similar $\widehat{RITE}$ values and their standard deviation, ensuring equal representation across test set examples (§Figure 4). Therefore, despite achieving lower scores, the framework with de-confounding is more trustworthy due to its consistent performance, lack of bias towards certain concepts in the causal attribution set, and equal representation of concepts across inputs.
|
| 220 |
+
|
| 221 |
+
# 7 Analysing the model through Causal Lens
|
| 222 |
+
|
| 223 |
+
Is the model always right due to the right reason? No, it is not always the case. We gain insight into this by examining the model causally. In Figure 6, we present two examples of memes from the test set along with the model's predictions, both correctly classified as offensive.
|
| 224 |
+
|
| 225 |
+
In the first example, the meme's offensiveness is linked to the Holocaust and antisemitic ideas, accurately reflected in the Top-5 causal concepts. Notably, concepts like 'Violence', 'Holocaust', and 'Nazism' from the gold standard set directly relate to the meme's context. With two out of the Top-5 causal keywords aligning with the meme's context, we conclude that the model's prediction was correct for the right reason.
|
| 226 |
+
|
| 227 |
+
In the second example, despite the meme being antisemitic, the identified causal concepts are irrelevant to antisemitism, although highly offensive. However, certain keywords (such as 'Holocaust' and 'Genocide') identified by GradientSHAP are attributed. Three of these ('Racism', 'Holocaust', and 'Genocide') directly relate to the meme's context. Initially, it may seem the model was right for the right reason. However, the absence of overlap between the set of causal concepts and the gold standard concept set indicates that the model classified the meme correctly but with erroneous causal attribution. This discrepancy suggests that although accurate input attributions exist, the model may base its decision on different causal concepts. Such analyses can help a user to trust the model predictions.
|
| 228 |
+
|
| 229 |
+
# 8 Error Analysis
|
| 230 |
+
|
| 231 |
+
In this section, we analyze the model's performance using causal concepts. For example, in the first row of Table 4 ( meme index 32), the model identifies 'anti-muslim' among the top 5 causal keywords, even though they are irrelevant. The presence of 'Mohammed' alone leads the model to classify the
|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
Figure 5: Memes of Table 4.
|
| 235 |
+
|
| 236 |
+

|
| 237 |
+
Figure 6: Evaluating trustworthiness of the model
|
| 238 |
+
|
| 239 |
+
meme as offensive, indicating a dataset-wide bias towards words like 'Mohammed'. Similarly for the second meme, the mere presence of the concept of 'blackness' was sufficient for classifying the meme as offensive despite having nothing related to racism in it. This also shows dataset bias where lots of racists $(\sim 47.1\%)$ and religious memes $(\sim 39.3\%)$ are present.
|
| 240 |
+
|
| 241 |
+
Similarly, in the third meme, the word 'jew' prompts the model to associate the meme with concepts like 'violence', and 'genocide' possibly due to insufficient visual context and association of the word jew in antisemitic offensive memes.4
|
| 242 |
+
|
| 243 |
+
In the fourth meme, although offensive, the model finds it humorous due to a lack of background knowledge, especially regarding the wordplay on SpongeBob, and the smiling SpongeBob face may further contribute to misclassification.
|
| 244 |
+
|
| 245 |
+
The fifth meme's misclassification can be attributed to a humorous background image unrelated to the meme text, creating a modality conflict. Note that the fourth and fifth memes which are classified as non-offensive have the 'funny' keyword as a part of the Top 5 causal keywords.
|
| 246 |
+
|
| 247 |
+
The sixth meme shows a sexually offensive re
|
| 248 |
+
|
| 249 |
+
mark but due to conflicting visual modality (showing violence), this meme got misclassified as non offensive. The keywords generated can also be attributed to dataset bias as shown in the first two memes.
|
| 250 |
+
|
| 251 |
+
By examining causal keywords alongside model inputs, this type of error analysis offers insights into why the model made mistakes.
|
| 252 |
+
|
| 253 |
+
# 9 Conclusion
|
| 254 |
+
|
| 255 |
+
In this paper, we introduce a multimodal causal framework aimed at transparently analyzing VisualBERT predictions. Guided by an SCM, the framework compels VisualBERT to base its decisions on interpretable human-understandable concepts. Evaluation on the Facebook hateful meme dataset reveals key insights: i) Input attribution methods may lack causal underpinning, ii) Modelling choices significantly influence relevant causal attributions, enhancing model trustworthiness. The qualitative analysis delves into whether the model is 'right for the right' reasons and uncovers causal factors behind misclassifications.
|
| 256 |
+
|
| 257 |
+
The simplicity and versatility of our framework (i.e. the underlying Structural Causal Model and its translation to modelling choices) allow its application across various tasks and multimodal models. Although we show the importance of our architecture on meme offensive detection tasks as a testbed, its application may be important in medicine where the need for trustworthy systems is paramount.
|
| 258 |
+
|
| 259 |
+
# Limitations
|
| 260 |
+
|
| 261 |
+
While our approach demonstrates promising results, there are some limitations to consider. Firstly, the reliance on a specific dataset, such as the Facebook Hateful Mem dataset, and a specific model, like VisualBERT, may limit the generalizability of our findings to other datasets and models.
|
| 262 |
+
|
| 263 |
+
Secondly, the concept annotation process introduces challenges as it relies on human annotators
|
| 264 |
+
|
| 265 |
+
to define and refine the concept set. This process may introduce subjectivity and biases. To address this challenge, employing more robust annotation guidelines, inter-annotator agreement assessments, and sensitivity analyses can enhance the reliability of the concept annotation process.
|
| 266 |
+
|
| 267 |
+
At the outset, the concept of the paper acts as a seed or proof of concept, further generalizability of which is to be explored through a chain of related future studies. Specifically, exploring potential applications of the framework in other domains beyond meme classification would be valuable. The framework could be applied in areas such as content moderation, sentiment analysis, and trend analysis in social media, news media, marketing, and public opinion research and medicine.
|
| 268 |
+
|
| 269 |
+
# Ethical Declaration
|
| 270 |
+
|
| 271 |
+
We acknowledge the potential for misuse of our annotated concepts, which could be employed to filter memes based on racial prejudices. To mitigate this risk, human moderation and intervention are crucial. The purpose of annotating concepts is to facilitate research into the analysis and understanding of offensive memes on the internet. When used appropriately, we believe it serves as a valuable resource.
|
| 272 |
+
|
| 273 |
+
Further the involvement of annotators to annotate potentially triggering meme may seem problematic. On the other hand, we completely ensure annotators' well-being by making voluntary free session with institutional counsellors available at any time. Also, participation in this process was purely at their own wish and they have been warned on exposing themselves to various offensive and trigerring contents which were marked as a disclaimer. We followed four broad ethical principles during the annotation process: i) Annotators were fully briefed on the nature of the task and provided informed consent to participate. ii) Annotators had access to psychological support via our institutional counseling system. iii) Annotators were compensated fairly in line with institute regulations. iv) The privacy and confidentiality of student participants were strictly protected throughout the study.
|
| 274 |
+
|
| 275 |
+
By adhering to these protocols, we ensured that the ethical concerns associated with using students to label offensive memes were adequately addressed, prioritizing their well-being and ethical treatment. Our study underwent evaluation and approval by our Institutional Review Board (IRB)
|
| 276 |
+
|
| 277 |
+
before proceeding for either annotating offensive memes in the first place or using students to annotate these memes.
|
| 278 |
+
|
| 279 |
+
# Acknowledgements
|
| 280 |
+
|
| 281 |
+
Dibyanayan Bandyopadhyay acknowledges Prime Minister's Research Fellowship (PMRF). The authors further acknowledge anonymous reviewers for their useful feedback.
|
| 282 |
+
|
| 283 |
+
# References
|
| 284 |
+
|
| 285 |
+
Eldar David Abraham, Karel D'Oosterlinck, Amir Feder, Yair Ori Gat, Atticus Geiger, Christopher Potts, Roi Reichart, and Zhengxuan Wu. 2022. Gebab: Estimating the causal effects of real-world concepts on nlp model behavior. Preprint, arXiv:2205.14140.
|
| 286 |
+
Chirag Agarwal, Sree Harsha Tanneru, and Himabindu Lakkaraju. 2024. Faithfulness vs. plausibility: On the (un)reliability of explanations from large language models. Preprint, arXiv:2402.04614.
|
| 287 |
+
Marco Ancona, Enea Ceolini, Cengiz Oztireli, and Markus Gross. 2018. Towards better understanding of gradient-based attribution methods for deep neural networks. Preprint, arXiv:1711.06104.
|
| 288 |
+
Dibyanayan Bandyopadhyay, Asmit Ganguly, Baban Gain, and Asif Ekbal. 2024. Semantify: Unveiling memes with robust interpretability beyond input attribution. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI-24, pages 6189-6197. International Joint Conferences on Artificial Intelligence Organization. Main Track.
|
| 289 |
+
Jasmijn Bastings, Sebastian Ebert, Polina Zablotskaia, Anders Sandholm, and Katja Filippova. 2022. "will you find these shortcuts?" a protocol for evaluating the faithfulness of input salience methods for text classification. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 976-991, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 290 |
+
Nitay Calderon, Eyal Ben-David, Amir Feder, and Roi Reichart. 2022. DoCoGen: Domain counterfactual generation for low resource domain adaptation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7727-7746, Dublin, Ireland. Association for Computational Linguistics.
|
| 291 |
+
Aditya Chattopadhyay, Piyushi Manupriya, Anirban Sarkar, and Vineeth N Balasubramanian. 2019. Neural network attributions: A causal perspective. Preprint, arXiv:1902.02302.
|
| 292 |
+
Corinna Cortes and Vladimir Vapnik. 1995. Support-vector networks. Machine learning, 20(3):273-297.
|
| 293 |
+
|
| 294 |
+
Jay DeYoung, Sarthak Jain, Nazneen Fatema Rajani, Eric Lehman, Caiming Xiong, Richard Socher, and Byron C. Wallace. 2020. ERASER: A benchmark to evaluate rationalized NLP models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4443-4458, Online. Association for Computational Linguistics.
|
| 295 |
+
Ming Ding, Zhuoyi Yang, Wenyi Hong, Wendi Zheng, Chang Zhou, Da Yin, Junyang Lin, Xu Zou, Zhou Shao, Hongxia Yang, et al. 2021. Cogview: Mastering text-to-image generation via transformers. Advances in Neural Information Processing Systems, 34:19822-19835.
|
| 296 |
+
Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. 2022. Glm: General language model pretraining with autoregressive blank infilling. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 320-335.
|
| 297 |
+
Yanai Elazar, Shauli Ravfogel, Alon Jacovi, and Yoav Goldberg. 2021. Amnesic probing: Behavioral explanation with amnesic counterfactuals. Preprint, arXiv:2006.00995.
|
| 298 |
+
Amir Feder, Katherine A. Keith, Emaad Manzoor, Reid Pryzant, Dhanya Sridhar, Zach Wood-Doughty, Jacob Eisenstein, Justin Grimmer, Roi Reichart, Margaret E. Roberts, Brandon M. Stewart, Victor Veitch, and Diyi Yang. 2022. Causal inference in natural language processing: Estimation, prediction, interpretation and beyond. Transactions of the Association for Computational Linguistics, 10:1138-1158.
|
| 299 |
+
Amir Feder, Nadav Oved, Uri Shalit, and Roi Reichart. 2021. CausaLM: Causal model explanation through counterfactual language models. Computational Linguistics, 47(2):333-386.
|
| 300 |
+
Yaroslav Ganin and Victor Lempitsky. 2015. Unsupervised domain adaptation by backpropagation. Preprint, arXiv:1409.7495.
|
| 301 |
+
Atticus Geiger, Hanson Lu, Thomas Icard, and Christopher Potts. 2021. Causal abstractions of neural networks. Preprint, arXiv:2106.02997.
|
| 302 |
+
Yash Goyal, Amir Feder, Uri Shalit, and Been Kim. 2020. Explaining classifiers with causal concept effect (cace). Preprint, arXiv:1907.07165.
|
| 303 |
+
Peter Hase, Shiyue Zhang, Harry Xie, and Mohit Bansal. 2020. Leakage-adjusted simulatability: Can models generate non-trivial explanations of their behavior in natural language? In Findings of the Association for Computational Linguistics: EMNLP 2020, pages 4351-4367, Online. Association for Computational Linguistics.
|
| 304 |
+
M. G. KENDALL. 1938. A NEW MEASURE OF RANK CORRELATION. Biometrika, 30(1-2):81-93.
|
| 305 |
+
|
| 306 |
+
Douwe Kiela, Hamed Firooz, Aravind Mohan, Vedanuj Goswami, Amanpreet Singh, Pratik Ringshia, and Davide Testuggine. 2021. The hateful memes challenge: Detecting hate speech in multimodal memes. Preprint, arXiv:2005.04790.
|
| 307 |
+
Diederik P. Kingma and Jimmy Ba. 2017. Adam: A method for stochastic optimization. Preprint, arXiv:1412.6980.
|
| 308 |
+
Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. 2023. Blip-2: Bootstrapping language-image pretraining with frozen image encoders and large language models. Preprint, arXiv:2301.12597.
|
| 309 |
+
Lianian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. 2019. Visualbert: A simple and performant baseline for vision and language. Preprint, arXiv:1908.03557.
|
| 310 |
+
Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023. Visual instruction tuning. Preprint, arXiv:2304.08485.
|
| 311 |
+
Scott Lundberg and Su-In Lee. 2017a. A unified approach to interpreting model predictions. *Preprint*, arXiv:1705.07874.
|
| 312 |
+
Scott M. Lundberg and Su-In Lee. 2017b. A unified approach to interpreting model predictions. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, page 4768-4777, Red Hook, NY, USA. Curran Associates Inc.
|
| 313 |
+
Andreas Madsen, Sarath Chandar, and Siva Reddy. 2024. Are self-explanations from large language models faithful? Preprint, arXiv:2401.07927.
|
| 314 |
+
Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2023. Locating and editing factual associations in gpt. Preprint, arXiv:2202.05262.
|
| 315 |
+
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision. Preprint, arXiv:2103.00020.
|
| 316 |
+
Shauli Ravfogel, Yanai Elazar, Hila Gonen, Michael Twiton, and Yoav Goldberg. 2020. Null it out: Guarding protected attributes by iterative nullspace projection. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7237-7256, Online. Association for Computational Linguistics.
|
| 317 |
+
Shauli Ravfogel, Grusha Prasad, Tal Linzen, and Yoav Goldberg. 2021. Counterfactual interventions reveal the causal effect of relative clause representations on agreement prediction. In Proceedings of the 25th Conference on Computational Natural Language Learning, pages 194-209, Online. Association for Computational Linguistics.
|
| 318 |
+
|
| 319 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. 2016. Faster r-cnn: Towards real-time object detection with region proposal networks. Preprint, arXiv:1506.01497.
|
| 320 |
+
Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. 2016. "why should i trust you?": Explaining the predictions of any classifier. Preprint, arXiv:1602.04938.
|
| 321 |
+
Sara Sabour, Nicholas Frosst, and Geoffrey E Hinton. 2017. Dynamic routing between capsules. Preprint, arXiv:1710.09829.
|
| 322 |
+
Fawaz Sammani, Tanmoy Mukherjee, and Nikos Deligiannis. 2022. Nlx-gpt: A model for natural language explanations in vision and vision-language tasks. Preprint, arXiv:2203.05081.
|
| 323 |
+
Avanti Shrikumar, Peyton Greenside, and Anshul Kundaje. 2019. Learning important features through propagating activation differences. Preprint, arXiv:1704.02685.
|
| 324 |
+
Avanti Shrikumar, Peyton Greenside, Anna Shcherbina, and Anshul Kundaje. 2017. Not just a black box: Learning important features through propagating activation differences. Preprint, arXiv:1605.01713.
|
| 325 |
+
Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. 2014. Deep inside convolutional networks: Visualising image classification models and saliency maps. Preprint, arXiv:1312.6034.
|
| 326 |
+
C. Spearman. 1904. The proof and measurement of association between two things. *The American Journal of Psychology*, 15(1):72-101.
|
| 327 |
+
Mukund Sundararajan, Ankur Taly, and Qiqi Yan. 2017. Axiomatic attribution for deep networks. Preprint, arXiv:1703.01365.
|
| 328 |
+
Jesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian, Daniel Nevo, Simas Sakenis, Jason Huang, Yaron Singer, and Stuart Shieber. 2020. Causal mediation analysis for interpreting neural nlp: The case of gender bias. Preprint, arXiv:2004.12265.
|
| 329 |
+
Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. 2023. Minigpt-4: Enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592.
|
| 330 |
+
|
| 331 |
+
# A Completeness vs. Causality
|
| 332 |
+
|
| 333 |
+
Completeness is a property inherent to path-integral-based methods. Consider a concept defined by $c_{i}$ , where $C = \{c_i\}_{i=1}^n$ and $n = 18$ represents the number of concepts. The completeness property asserts that the attribution for $c_{i}$ , denoted as $\text{Attr}_i$ , when calculated separately from other concepts, is equal to $F(c_{i}, (t,v)) - F(c_{i}', (t,v))$ . Here, $F$ is the VisualBERT combined with the classifier, $(t,v)$ represents other unchanged model
|
| 334 |
+
|
| 335 |
+
inputs (mime content), and $c_{i}^{\prime}$ denotes the baseline, often chosen as a zero vector.
|
| 336 |
+
|
| 337 |
+
$$
|
| 338 |
+
\operatorname {A t t r} _ {i} = F \left(c _ {i}, o\right) - F \left(c _ {i} ^ {\prime}, o\right) \tag {3}
|
| 339 |
+
$$
|
| 340 |
+
|
| 341 |
+
In this context, $F(x) = (\phi \circ f)(x)$ . Choosing $c_{i}$ as the zero vector makes the attribution exactly equal to the $\widehat{RITE}_{i}$ score for concept $c_{i}$ (see Equation 1).
|
| 342 |
+
|
| 343 |
+
Using approximations (e.g., Gauss-Legendre approximation) in calculating the path integral results in $Attr_{i} \approx \widehat{RITE}_{i}$ , implying that $X_{cau} = X_{attr}$ . This has an interesting implication:
|
| 344 |
+
|
| 345 |
+
1. $X_{cau} = X_{attr}$ suggests that path-integral-based attribution methods exhibit causal behavior, which is a highly desirable property.
|
| 346 |
+
|
| 347 |
+
However, achieving this property requires certain assumptions and modeling choices, outlined below:
|
| 348 |
+
|
| 349 |
+
1. The background SCM must be chosen as a modeling choice, resulting in the same outcome as using a concept as a zero vector and setting its corresponding static and dynamic weights to zero.
|
| 350 |
+
2. We must assume that individual concept attributions are calculated separately, independent of other concepts, with separate zero-baselines for each concept. This is not the usual practice, as attributions are typically calculated with text, vision, and concepts considered as three singular inputs to the model with random baselines. Consequently, all concept embeddings $(C = \{c_i\}_{i=1}^n)$ are treated as a single input for attribution calculation.
|
| 351 |
+
|
| 352 |
+
# B LLMs/VLMs Self-consistency Checks
|
| 353 |
+
|
| 354 |
+
Self-consistency checks. Self-consistency checks (Madsen et al., 2024) are methods used to verify the faithfulness of a model's explanation by ensuring that the model's behavior aligns with expected outcomes. In the context of counterfactual explanations, these checks involve modifying the input so that the model predicts the opposite label. By re-evaluating the prediction with this modified input, we can confirm whether the model produces the expected opposite outcome. If it does, the counterfactual explanation is considered faithful. This process is crucial when using an instruction-tuned language model in a
|
| 355 |
+
|
| 356 |
+
conversational setting, where re-evaluation should occur in a new chat session to avoid bias from prior prompts.
|
| 357 |
+
|
| 358 |
+
LLM self-consistency checks. We define two self-consistency checks for LLMs as illustrated in Figure 8 and Figure 9. In the first session, referred to as Session 1, we query the LLM with the following template: "I have a meme which can be described as caption. The meme text reads: meme text. Is this meme offensive? Only answer Yes/No." The LLM responds with either Yes or No. We then ask the LLM to explain why the meme is offensive or non-offensive. Next, we prompt the LLM to create a counterfactual version of the meme text that would yield the opposite prediction about whether the meme is offensive or non-offensive. This counterfactual text is then embedded into the template and sent back to the LLM as a counterfactual query. The LLM should respond with the opposite label from its initial prediction, as it is a counterfactual according to the model. Figures 8 and 9 show two failure cases in these counterfactual self-consistency checks for LLMs, indicating that LLM explanations are not faithful and should not be trusted to reveal the model's inner workings, despite their plausible appearance.
|
| 359 |
+
|
| 360 |
+
VLM self-consistency checks. Similar to language models, Visual Language Models (VLMs) can be assessed for self-consistency. Figure 7 presents two instances of self-consistency failures in VLMs using counterfactual explanations. Initially, the VLM is prompted to label a meme as offensive or non-offensive. Subsequently, the same VLM is asked to generate a counterfactual version of the meme text, which is then in-painted back into the meme to create a counterfactual sample. This counterfactual sample is used as a query in the following session. As a counterfactual, the original label should be reversed. However, as demonstrated in Figure 7, this label reversal does not occur in either case, indicating a failure in self-consistency checks for the VLM.
|
| 361 |
+
|
| 362 |
+
# C Proof
|
| 363 |
+
|
| 364 |
+
The latent representation $L^{\prime}$ after projecting $c_{i}$ with $P$ is given by
|
| 365 |
+
|
| 366 |
+
$$
|
| 367 |
+
L ^ {\prime} = \sum_ {i = 0} ^ {n} w _ {i} P \cdot c _ {i} = P \cdot \sum_ {i = 0} ^ {n} w _ {i} c _ {i} = P \cdot L \tag {4}
|
| 368 |
+
$$
|
| 369 |
+
|
| 370 |
+
From Equation 4, $\overline{W} \cdot L' = \overline{W} \cdot (P \cdot L) = 0$ , as $\overline{W} \cdot (P \cdot x) = 0$ for all $x$ .
|
| 371 |
+
|
| 372 |
+
Furthermore, $w_{i}\neq 0$ , and $w_{i}\overline{W}\cdot (P\cdot c_{i}) = 0$ Therefore, $\overline{W}\cdot L^{CF^{\prime}} = \overline{W}\cdot L^{\prime} - w_{i}\overline{W}\cdot (P\cdot c_{i}) = 0$ for all $i$
|
| 373 |
+
|
| 374 |
+
Following this theorem and its proof, we construct a nullspace projection $P$ of $\overline{W}$ . $\overline{W}$ is learned by training a neural network to reconstruct $C$ from $L^{CF}$ for all $i$ . To de-confound the system, we project the concept representations via $P$ , updating $C$ as $C \gets P \cdot C$ . This approach is inspired by Iterative Nullspace Projection (INLP)(Ravfogel et al., 2020). After this operation, we denote the latent $L$ with a subscript, i.e., $L_{DC}$ .
|
| 375 |
+
|
| 376 |
+
# D FAQ
|
| 377 |
+
|
| 378 |
+
1. Question: What is the need of the framework?
|
| 379 |
+
|
| 380 |
+
Ans: The proposed framework incorporates a VisualBERT and forces it to base its prediction on causal concepts. This makes the VisualBERT transparent because now we can base its decision on the external causal concepts by looking at their RITE scores. As proposed in the Introduction, input memes contain a lot of implicit contexts, which cannot be attributed by Input attribution methods as they are missing from the meme input itself.
|
| 381 |
+
|
| 382 |
+
2. Question: What is the need for Adversarial Learning?
|
| 383 |
+
|
| 384 |
+
Adversarial Learning ensures the model utilizes the concept alongside the meme inputs. Normally, the meme inputs contain enough information to classify the input meme and simply adding concept representation on top of it does not make the multimodal information any richer. Adversarial learning ensures we learn a non-trivial interaction between multimodal representation and concept representation such that both play an equal role in the final classification task.
|
| 385 |
+
|
| 386 |
+
3. Question: With De-confounding, the possibility of top-5 causal concepts being relevant decreases than without it. Then what is its use?
|
| 387 |
+
|
| 388 |
+
De-confounding is principally valid because from the counterfactual representation of concept $c_{i}$ , we should not be able to recover $c_{i}$ (i.e. its representation). Otherwise, it is not even a counterfactual. Our main goal is to estimate an unbiased value of $\widehat{RITE}$ score, which is obtained after deconfounding. So, although w/o de-confounding scores are higher, they may not reflect true causality as without de-confounding, true counterfactual representations are not generated. Also, an empirical argument is validated in the Section 6 and Figure 4.
|
| 389 |
+
|
| 390 |
+

|
| 391 |
+
|
| 392 |
+

|
| 393 |
+
|
| 394 |
+

|
| 395 |
+
Figure 7: Counterfactual self-consistency checks for VLM, LLaVA-1.6-34B (https://github.com/haotian-liu/LLaVA).
|
| 396 |
+
|
| 397 |
+

|
| 398 |
+
|
| 399 |
+
4. Question: Why do you call your framework causal when the only thing 'causal' is how you select the concepts based on their RITE score?
|
| 400 |
+
|
| 401 |
+
We assumed that a meme is offensive due to the meme content itself and some contribution from a fixed collection of concepts. That is illustrated as a structural causal model (SCM) in Figure 3.1. Note that every modelling choice is based on the SCM itself. Essentially the framework encompasses an SCM which implements itself as an addition to VisualBERT in the form of i) Adversarial Learning, ii) Dynamic Routing and iii) De-confounding. This forces the SCM to base its decision on meme content as well as on interpretable concepts. Essentially the concepts are called "causal" because they are being modelled as causal in the SCM and the
|
| 402 |
+
|
| 403 |
+
framework implements the SCM on top of VisualBERT.
|
| 404 |
+
|
| 405 |
+
5. Question: What is the generality of the proposed framework?
|
| 406 |
+
|
| 407 |
+
The framework is overall generic. The framework which implements the SCM is general for every task where implicit domain knowledge is necessary. One such task is meme offensiveness detection. Although the scope of this framework is general, we use it on top of meme offensive detection tasks because of its i) generality of using nontrivial implicit context which is unavailable in input space, and ii) The task has social good applications, and therefore is important to solve. We leave it in the hands of future researchers to use this framework as a proof of concept to describe its
|
| 408 |
+
|
| 409 |
+
# Session 1
|
| 410 |
+
|
| 411 |
+

|
| 412 |
+
Figure 8: An instance where GPT-3.5 offers an counterfactual self-explanation and employs self-consistency verification to assess its faithfulness.
|
| 413 |
+
|
| 414 |
+
effect in critical domains, such as medicine, where the trustworthiness of machine learning (ML) systems is of utmost importance.
|
| 415 |
+
|
| 416 |
+
So in summary, the proposed framework is generic whose applicability is shown in one interesting task. The applicability of it to other domains remains as an avenue for further research.
|
| 417 |
+
|
| 418 |
+
6. Question: In the proposed SCM (Equation 1), when a concept is intervened or masked, its information in the text and image remains, potentially affecting the reliability of the causal effects. How do you address this concern?
|
| 419 |
+
|
| 420 |
+
We address this issue in two ways: a) Gradient Reversal (GR) Layer: It ensures that the text and image alone, without the explicit presence of the concept, cannot classify the meme as offensive or non-offensive. It forces the model to rely on the explicit presence of the concept for classification.
|
| 421 |
+
|
| 422 |
+
b) De-confounding Strategy: It nullifies the effects of any concept on other interrelated concepts and provides a clearer analysis of each concept's individual impact on predictions.
|
| 423 |
+
|
| 424 |
+
These mechanisms ensure the reliability of the causal effects derived from equation (1).
|
| 425 |
+
|
| 426 |
+
7. Question: The performance of $X_{cau}$ in "explainability of simulator" and "performance of simulator" is not good compared to $X_{attr}$ . Is that problematic?
|
| 427 |
+
|
| 428 |
+
It's important to note that evaluating the causal framework based on simulator scores can be misleading. We are using the causal framework to judge how causally important the input attribution based methods are, not the other way around. Better simulator performance of $X_{attr}$ indicates that it has better recognizable patterns, suggesting it can explain the model's decision well. Lower scores
|
| 429 |
+
|
| 430 |
+
# Session 1
|
| 431 |
+
|
| 432 |
+

|
| 433 |
+
Figure 9: Another instance where GPT-3.5 offers an counterfactual self-explanation and employs self-consistency verification to assess its faithfulness.
|
| 434 |
+
|
| 435 |
+
only on simulatability metrics indicate that $X_{cau}$ does not exhibit patterns like $X_{attr}$ . On the flip side, despite high explainability, input attribution methods do not necessarily capture the underlying causality as indicated by lower rank correlation among various highly simulatable input attribution methods (e.g. DeepLIFT, DeepLIFTSHAP). As noted in this paper, "Correlation does not imply causation."
|
| 436 |
+
|
| 437 |
+
8. Question: Why most of the examples in the paper are related to racism? Is it because offense related to racism are easy to see?
|
| 438 |
+
|
| 439 |
+
This is not the case. Most of the examples are racist or religious because they incorporate most of the memes in the dataset, comprising of $47.1\%$ and $39.3\%$ of memes respectively.
|
| 440 |
+
|
| 441 |
+
# E Evaluation Metrics
|
| 442 |
+
|
| 443 |
+
$\mathbf{P}@\mathbf{5}$ : This is defined as among the top 5 causal keywords, how many are also relevant. This can be mathematically formulated as $\frac{n(A \cap B)}{n(B)}$ , where $A$ is the set of relevant gold standard keywords, whereas $B$ is the set of top 5 causal keywords, and $n(A)$ shows the number of elements in $A$ . $n(B) = 5$ , as we are considering the Top 5 keywords. Consider the first example in Figure 6. $A = \{\text{holocaust, Nazism, genocide, extremism}\}$ and $B = \{\text{violence, Holocaust, Nazism, anti-muslim, terrorism}\}$ . $A \cap B = \{\text{holocaust, Nazism}\}$ , which entails $n(A \cap B) = 2$ and $n(B) = 5$ . So the $\mathbf{P}@\mathbf{5}$ score is $2/5 = 0.4$ . We report the averaged $\mathbf{P}@\mathbf{5}$ scores across all test set examples in Tables.
|
| 444 |
+
|
| 445 |
+
R@5: This is defined as among the gold standard relevant keywords, how many are chosen from the top5 causal set. Following the previousnota
|
| 446 |
+
|
| 447 |
+
tion, this can be defined as $\frac{n(A\cap B)}{n(A)}$ . For the previous example, $n(A\cap B) = 2$ and $n(A) = 4$ , which entails R@5 is $2 / 4 = 0.5$
|
| 448 |
+
|
| 449 |
+
MAP@5: This metric is defined as a mean of $\mathrm{P}@\mathrm{k}$ where $\mathbf{k}$ ranges from 1 to 5. $\mathrm{P}@\mathrm{k}$ values are calculated following the previous paragraph. Mathematically, $\mathrm{MAP}@5 = (\mathrm{P}@1 + \mathrm{P}@2 + \mathrm{P}@3 + \mathrm{P}@4 + \mathrm{P}@5)/5$ .
|
| 450 |
+
|
| 451 |
+
# F Experimental Setup
|
| 452 |
+
|
| 453 |
+
Our proposed model was implemented using PyTorch, a Python-based deep-learning library. All experiments (excluding the baselines) were performed on a single Nvidia P100 16GB GPU on CuDA driver version 12.4. The baselines were run on a different CuDA version compared to the baselines (12.1 vs 12.4). We employed the Adam optimizer (Kingma and Ba, 2017) with a learning rate set to $5e - 5$ for optimization. The experiments were conducted using the Facebook Hateful Mem dataset (Kiela et al., 2021). The whole set of 8500 memes is broken down into 7840, 660 examples as the train-test split using a random seed 42. The total number of parameters of the model is 350M and to train a single epoch, 30 mins of continuous GPU execution is needed with a fixed batch size of 32.
|
| 454 |
+
|
| 455 |
+
To mitigate the impact of non-deterministic GPU operations, we used a fixed random seed of 42 across all the experiments.
|
| 456 |
+
|
| 457 |
+
Note that many attribution methods, such as saliency, rely on gradient backpropagation (particularly the chain rule) to compute attribution scores. Small precision differences caused by changes in GPU hardware can lead to significant variations in these scores.
|
| 458 |
+
|
| 459 |
+
# G Addressing Ethical Concerns Related to Annotation of Offensive Memes
|
| 460 |
+
|
| 461 |
+
The involvement of annotators in labeling potentially triggering memes may seem problematic. However, we have implemented several measures to ensure the well-being of the annotators:
|
| 462 |
+
|
| 463 |
+
Voluntary Participation and Informed Consent: Participation in the annotation process was entirely voluntary. Annotators were fully informed about the nature of the task and the potential exposure to offensive and triggering content through a detailed disclaimer. They provided their informed consent before participating.
|
| 464 |
+
|
| 465 |
+
Psychological Support: We ensured that annotators had access to free, voluntary sessions with institutional counselors at any time. This support system was established to address any psychological distress that might arise from the task.
|
| 466 |
+
|
| 467 |
+
Fair Compensation: Annotators were fairly compensated for their work, receiving rates according to institutional policies. This compensation was provided in addition to the fellowships that students receive, in accordance with institute regulations.
|
| 468 |
+
|
| 469 |
+
Confidentiality: We maintained strict confidentiality and privacy for all student participants throughout the study.
|
| 470 |
+
|
| 471 |
+
Ethical Review and Approval: Our study, including the use of students to annotate offensive memes, underwent evaluation and received approval from our Institutional Review Board (IRB). The IRB reviewed our study design, the nature of the content, and the involvement of student participants to ensure compliance with ethical standards.
|
| 472 |
+
|
| 473 |
+
Use of Publicly Available Dataset: The memes included in our study were selected from the well-known, publicly available FB Hateful Meme Dataset. This dataset represents a wide range of themes found on the internet, including some offensive and extreme content. Our goal was to analyze how different types of content are perceived and categorized by labeling them with keywords, necessitating the inclusion of a broad spectrum of examples.
|
2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40e15e766e3dd918150811c13e3714c61e5b1b026e6b725c5d0bf40924b15178
|
| 3 |
+
size 769184
|
2024/Seeing Through VisualBERT_ A Causal Adventure on Memetic Landscapes/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/14d2ceda-5f83-49b4-88b6-f58b5179b8e9_content_list.json
ADDED
|
@@ -0,0 +1,2000 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Selection- $p$ : Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
144,
|
| 8 |
+
89,
|
| 9 |
+
852,
|
| 10 |
+
130
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Tsz Ting Chung $^{1}$ Leyang Cui $^{2}$ Lemao Liu $^{2}$ Xinting Huang $^{2}$ Shuming Shi $^{2}$ Dit-Yan Yeung $^{1}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
213,
|
| 19 |
+
145,
|
| 20 |
+
786,
|
| 21 |
+
178
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "<sup>1</sup>The Hong Kong University of Science and Technology <sup>2</sup>Tencent AILab {ttchungc, nealcly.nlp, lemaoliu, shuming}@gmail.com timxthuang@tencent.com dyyeung@cse.ust.hk",
|
| 28 |
+
"bbox": [
|
| 29 |
+
196,
|
| 30 |
+
179,
|
| 31 |
+
801,
|
| 32 |
+
229
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
260,
|
| 42 |
+
260,
|
| 43 |
+
339,
|
| 44 |
+
275
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Large Language Models (LLMs) have demonstrated impressive capabilities in a wide range of natural language processing tasks when leveraging in-context learning. To mitigate the additional computational and financial costs associated with in-context learning, several prompt compression methods have been proposed to compress the in-context learning prompts. Despite their success, these methods face challenges with transferability due to model-specific compression, or rely on external training data, such as GPT-4. In this paper, we investigate the ability of LLMs to develop a unified compression method that discretizes uninformative tokens, utilizing a self-supervised pre-training technique. By introducing a small number of parameters during the continual pretraining, the proposed Selection- $p$ produces a probability for each input token, indicating whether to preserve or discard it. Experiments show Selection- $p$ achieves state-of-the-art performance across numerous classification tasks, achieving compression rates of up to 10 times while experiencing only a marginal $0.8\\%$ decrease in performance. Moreover, it exhibits superior transferability to different models compared to prior work. Additionally, we further analyze how Selection- $p$ helps maintain performance on in-context learning with long contexts.",
|
| 51 |
+
"bbox": [
|
| 52 |
+
144,
|
| 53 |
+
291,
|
| 54 |
+
460,
|
| 55 |
+
715
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
114,
|
| 65 |
+
733,
|
| 66 |
+
258,
|
| 67 |
+
747
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In-context learning has shown remarkable success in various natural language processing tasks (Brown et al., 2020), such as classification task (Min et al., 2022), and mathematical reasoning task (Wei et al., 2023), enabling Large Language Models (LLMs) to tackle complex and diverse tasks using only few-shot samples. However, in-context learning also significantly extends the length of prompts, resulting in increased computational and financial costs. Recently, a line of work has been",
|
| 74 |
+
"bbox": [
|
| 75 |
+
112,
|
| 76 |
+
760,
|
| 77 |
+
489,
|
| 78 |
+
921
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "table",
|
| 84 |
+
"img_path": "images/1cce267e8b12d68049f13240838dcd5b6ff21bcaf32913baea6a9a43854736a3.jpg",
|
| 85 |
+
"table_caption": [],
|
| 86 |
+
"table_footnote": [],
|
| 87 |
+
"table_body": "<table><tr><td></td><td>Transferable</td><td>Single Run</td><td>-External</td></tr><tr><td>AutoCompressor</td><td>X</td><td>✓</td><td>✓</td></tr><tr><td>LLMLingua</td><td>✓</td><td>X</td><td>✓</td></tr><tr><td>LLMLingua-2</td><td>✓</td><td>✓</td><td>X</td></tr><tr><td>Selection-p</td><td>✓</td><td>✓</td><td>✓</td></tr></table>",
|
| 88 |
+
"bbox": [
|
| 89 |
+
507,
|
| 90 |
+
258,
|
| 91 |
+
887,
|
| 92 |
+
335
|
| 93 |
+
],
|
| 94 |
+
"page_idx": 0
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"type": "text",
|
| 98 |
+
"text": "Table 1: Comparison between the proposed Selection- $p$ and existing content compression approaches. Selection- $p$ exhibits great transferability (Transferable), does not require multi-round iterative decoding (Single Run), and does not rely on costly external resources for training ( $\\neg$ External).",
|
| 99 |
+
"bbox": [
|
| 100 |
+
507,
|
| 101 |
+
344,
|
| 102 |
+
885,
|
| 103 |
+
431
|
| 104 |
+
],
|
| 105 |
+
"page_idx": 0
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"type": "text",
|
| 109 |
+
"text": "focusing on prompt compression, which aims to compress the original prompts while minimizing information loss. They are categorized into discrete compression (Li et al., 2023; Jiang et al., 2023; Pan et al., 2024) and continuous compression (Mu et al., 2023; Chevalier et al., 2023; Ge et al., 2024); the former compresses the context into discrete tokens, while the latter compresses it into a short sequence of continuous vectors.",
|
| 110 |
+
"bbox": [
|
| 111 |
+
507,
|
| 112 |
+
463,
|
| 113 |
+
882,
|
| 114 |
+
607
|
| 115 |
+
],
|
| 116 |
+
"page_idx": 0
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"type": "text",
|
| 120 |
+
"text": "Observing redundant and repetitive content in a given input, discrete compression methods aim to eliminate less informative context without significantly compromising the model's performance. For example, LLM Lingua (Jiang et al., 2023) proposes to perform iterative token truncation based on the content perplexity, requiring multi-round decoding (Jiang et al., 2023). LLM Lingua-2 (Pan et al., 2024), distilled from GPT-4 (OpenAI, 2023), addresses the potential misalignment between entropy and the compression objective, as well as the distribution gap between the perplexity of the compression model and the target model. High costs are still involved in the training data construction. Meanwhile, optimizing the distribution for specific LLMs (GPT-4) may, on the other hand, hinder the transferability of the compressed content to other LLMs. More details are discussed in Section 4.4.",
|
| 121 |
+
"bbox": [
|
| 122 |
+
507,
|
| 123 |
+
611,
|
| 124 |
+
884,
|
| 125 |
+
900
|
| 126 |
+
],
|
| 127 |
+
"page_idx": 0
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"type": "text",
|
| 131 |
+
"text": "Continuous compression (Bulatov et al., 2022;",
|
| 132 |
+
"bbox": [
|
| 133 |
+
527,
|
| 134 |
+
904,
|
| 135 |
+
882,
|
| 136 |
+
921
|
| 137 |
+
],
|
| 138 |
+
"page_idx": 0
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"type": "text",
|
| 142 |
+
"text": "Wingate et al., 2022) teaches pre-trained LMs the ability to compress text into a short sequence of continuous vectors. AutoCompressors (Chevalier et al., 2023) uses an unsupervised learning objective, which motivates the model to cache crucial information within the summary vectors. Despite their success, these methods have poor generalization as they can only compress to the length specified during training. Additionally, since the continuous vector cannot be transferred between models, a separate compressor must be trained for each model.",
|
| 143 |
+
"bbox": [
|
| 144 |
+
112,
|
| 145 |
+
84,
|
| 146 |
+
489,
|
| 147 |
+
275
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "This raises an interesting research question:",
|
| 154 |
+
"bbox": [
|
| 155 |
+
132,
|
| 156 |
+
278,
|
| 157 |
+
457,
|
| 158 |
+
292
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "\"Can LLMs learn to identify less informative tokens within a given context without external annotated signals?\"",
|
| 165 |
+
"bbox": [
|
| 166 |
+
112,
|
| 167 |
+
294,
|
| 168 |
+
487,
|
| 169 |
+
341
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "To answer this question, we propose a pretraining strategy with a self-supervised signal, which enables the model to autonomously learn to predict the next token based on compressed context. With a small additional number of parameters, a forward pass on the proposed selection- $p$ creates the probability vector $p$ corresponding to each input token, indicating whether to preserve or discard the token. During inference, we can apply the detokenized compressed tokens to any downstream LLMs with only single-turn decoding and without reliance on any costly external resources as depicted in Table 1.",
|
| 176 |
+
"bbox": [
|
| 177 |
+
112,
|
| 178 |
+
343,
|
| 179 |
+
489,
|
| 180 |
+
549
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "The main contributions of this work are fourfold:",
|
| 187 |
+
"bbox": [
|
| 188 |
+
132,
|
| 189 |
+
551,
|
| 190 |
+
487,
|
| 191 |
+
565
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "list",
|
| 197 |
+
"sub_type": "text",
|
| 198 |
+
"list_items": [
|
| 199 |
+
"- We present Selection- $p$ which achieves only $0.8\\%$ drops in performance under 10x compression rate across nine traditional classification tasks, surpassing the performance of the existing compression models. Under this setting, a speedup of 5.3x can be achieved during inference with in-context learning.",
|
| 200 |
+
"- Selection- $p$ demonstrated great transferability, which surpasses the performance of prior work in performing hard compression for both open-source and close-source models.",
|
| 201 |
+
"- We further analyze how Selection- $p$ helps in in-context learning in long-context settings, presenting a potential solution to address the performance declination of long-context models in ICL.",
|
| 202 |
+
"- We connect in-domain prior works and make comparisons with these state-of-the-art compression models, providing a complete picture."
|
| 203 |
+
],
|
| 204 |
+
"bbox": [
|
| 205 |
+
134,
|
| 206 |
+
573,
|
| 207 |
+
487,
|
| 208 |
+
920
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 1
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "2 Related Work",
|
| 215 |
+
"text_level": 1,
|
| 216 |
+
"bbox": [
|
| 217 |
+
509,
|
| 218 |
+
83,
|
| 219 |
+
665,
|
| 220 |
+
98
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 1
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "2.1 Hard Compression",
|
| 227 |
+
"text_level": 1,
|
| 228 |
+
"bbox": [
|
| 229 |
+
509,
|
| 230 |
+
114,
|
| 231 |
+
705,
|
| 232 |
+
130
|
| 233 |
+
],
|
| 234 |
+
"page_idx": 1
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"text": "Some studies focus on token pruning (Goyal et al., 2020; Kim and Cho, 2021; Rao et al., 2021; Kim et al., 2022; Modarressi et al., 2022) and token merging (Bolya et al., 2023) but they are designed primarily for smaller models like BERT. More recently, Selective Context (Li et al., 2023) is the first to propose to prune less important tokens based on information entropy. Subsequently, LLMLingua (Jiang et al., 2023) refined the approach by integrating the selection of demonstrations and the allocation of compression budgets for various segments of the input prompt. No training is required in these models but their efficacy in downstream tasks with compression applied to in-context demonstrations remains limited. Pan et al. (2024) extended the idea and addressed the potential misalignment between entropy and the compression objective, leveraging full bidirectional context by training on their proposed GPT-4 distilled compression dataset. Our simple yet effective approaches outperform previous studies.",
|
| 239 |
+
"bbox": [
|
| 240 |
+
507,
|
| 241 |
+
137,
|
| 242 |
+
885,
|
| 243 |
+
475
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 1
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "2.2 Soft Compression",
|
| 250 |
+
"text_level": 1,
|
| 251 |
+
"bbox": [
|
| 252 |
+
509,
|
| 253 |
+
494,
|
| 254 |
+
694,
|
| 255 |
+
508
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 1
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "Gist (Mu et al., 2023) is first proposed to compress prompt with soft tokens. Subsequently, Autocompressor (Chevalier et al., 2023) and ICAE (Ge et al., 2024) extend the idea to handle long contexts with different pretraining approaches. ICAE further conducts instruction tuning to enhance model performance. The downstream performance of these models heavily relies on the tuned compression model, with a fixed compression rate. Additionally, retraining is necessary for different versions of LLMs. Compared to these approaches, our work offers greater flexibility and transferability, while simultaneously surpassing the performance of existing compression models.",
|
| 262 |
+
"bbox": [
|
| 263 |
+
507,
|
| 264 |
+
518,
|
| 265 |
+
885,
|
| 266 |
+
743
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 1
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "text",
|
| 272 |
+
"text": "3 Methodology",
|
| 273 |
+
"text_level": 1,
|
| 274 |
+
"bbox": [
|
| 275 |
+
509,
|
| 276 |
+
762,
|
| 277 |
+
658,
|
| 278 |
+
778
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 1
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "Under the intuition that redundant texts often exist and their removal does not hinder human understanding of the text, we assume that LLMs behave in a similar manner. To efficiently identify less informative tokens within a given context, we propose a simple pre-training objective encouraging the model to predict the same token both before and after discarding less informative tokens.",
|
| 285 |
+
"bbox": [
|
| 286 |
+
507,
|
| 287 |
+
791,
|
| 288 |
+
884,
|
| 289 |
+
921
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 1
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "image",
|
| 295 |
+
"img_path": "images/1153cb586b1ec2012e25950e87672fbf4d302723f611451a86c1d38d66563ab3.jpg",
|
| 296 |
+
"image_caption": [
|
| 297 |
+
"Figure 1: Illustration with the training process. Areas in orange are learnable parameters. For the input context $[x_1, x_2, \\ldots, x_{n-1}]$ , inference without parameters update is performed first to create the attention mask $\\bar{p}$ . These subsequently form the model input for LoRA training and updating the parameters of the additional linear layer."
|
| 298 |
+
],
|
| 299 |
+
"image_footnote": [],
|
| 300 |
+
"bbox": [
|
| 301 |
+
117,
|
| 302 |
+
80,
|
| 303 |
+
487,
|
| 304 |
+
382
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "3.1 Preliminary",
|
| 311 |
+
"text_level": 1,
|
| 312 |
+
"bbox": [
|
| 313 |
+
112,
|
| 314 |
+
507,
|
| 315 |
+
257,
|
| 316 |
+
524
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 2
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "Language Model. Given a context $[x_1, x_2, \\ldots, x_{n-1}]$ , the objective of the language model is to predict the next token $x_n$ , formed as $P(x_n | x_1, x_2, \\ldots, x_{n-1})$ . In case of training with the causal language modeling (CLM) loss, we will have,",
|
| 323 |
+
"bbox": [
|
| 324 |
+
112,
|
| 325 |
+
530,
|
| 326 |
+
489,
|
| 327 |
+
626
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 2
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "equation",
|
| 333 |
+
"text": "\n$$\n\\mathcal {L} _ {\\mathrm {C L M}} = - \\sum \\log P (x _ {i} \\mid x _ {1}, x _ {2}, \\dots , x _ {i - 1}; \\theta)\n$$\n",
|
| 334 |
+
"text_format": "latex",
|
| 335 |
+
"bbox": [
|
| 336 |
+
127,
|
| 337 |
+
639,
|
| 338 |
+
472,
|
| 339 |
+
663
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 2
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "Tokens Selection Models. LLMLingua (Jiang et al., 2023) and its variant (Li et al., 2023; Pan et al., 2024) select tokens according to the computed distribution of the targeted LLM. Specifically, suppose $x_{i}$ is a token in the prompt, if the probability of a token $x_{i}$ is less than a threshold, then the token is selected to be compressed.",
|
| 346 |
+
"bbox": [
|
| 347 |
+
112,
|
| 348 |
+
675,
|
| 349 |
+
489,
|
| 350 |
+
788
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 2
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "3.2 Selection- $p$",
|
| 357 |
+
"text_level": 1,
|
| 358 |
+
"bbox": [
|
| 359 |
+
112,
|
| 360 |
+
802,
|
| 361 |
+
247,
|
| 362 |
+
818
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 2
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "Following the tokens selection models (Li et al., 2023; Jiang et al., 2023; Pan et al., 2024), Selection $p$ includes the two steps for testing, i.e. the selection (compression) step and the inference step. In the selection step, unlike LLMLingua and its variant, we instead define a selection model to select",
|
| 369 |
+
"bbox": [
|
| 370 |
+
112,
|
| 371 |
+
824,
|
| 372 |
+
490,
|
| 373 |
+
921
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 2
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "less informative tokens within the context in a discriminative way. In the inference step, the tokens selected via the selection model are passed to our targeted inference model.",
|
| 380 |
+
"bbox": [
|
| 381 |
+
507,
|
| 382 |
+
84,
|
| 383 |
+
884,
|
| 384 |
+
149
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 2
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "text",
|
| 390 |
+
"text": "Selection. Assume $p_i \\in [0,1]$ denote a measure of the informativeness of token $x_i$ . Theoretically, we can customize a deep neural model to instantiate $p_i$ . In practice, we directly take a pre-trained language model and adopt the last layer of hidden representation $\\mathbf{h}^L$ from a pre-trained LM to the new linear projection layer. Formally, suppose $\\mathbf{h}^L = \\{h_1, h_2, \\dots, h_n\\}$ denotes the sequence of hidden states for all tokens $x_i$ at the last layer of a pre-trained language model. The selection model $\\mathbf{p} = \\{p_1, p_2, \\dots, p_n\\}$ is defined as follows:",
|
| 391 |
+
"bbox": [
|
| 392 |
+
507,
|
| 393 |
+
159,
|
| 394 |
+
884,
|
| 395 |
+
336
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 2
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "equation",
|
| 401 |
+
"text": "\n$$\n\\mathbf {p} = \\sigma \\left(\\mathbf {W h} ^ {L} + b\\right) \\tag {1}\n$$\n",
|
| 402 |
+
"text_format": "latex",
|
| 403 |
+
"bbox": [
|
| 404 |
+
623,
|
| 405 |
+
350,
|
| 406 |
+
882,
|
| 407 |
+
368
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 2
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "where $\\sigma$ is the sigmoid function, $\\mathbf{W}$ and $b$ are parameters of the projection matrix and bias vector, respectively.",
|
| 414 |
+
"bbox": [
|
| 415 |
+
507,
|
| 416 |
+
382,
|
| 417 |
+
882,
|
| 418 |
+
430
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 2
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "By using the selection model $\\mathbf{p}$ , it is straightforward to compress the context for inference: we directly prune the corresponding tokens according to our desired compression rate in retaining the top $k\\%$ of tokens in the context. To ensure the efficiency in performing compression, a single forward pass on our model creates the token preservation probability for all input tokens for simplicity.",
|
| 425 |
+
"bbox": [
|
| 426 |
+
507,
|
| 427 |
+
432,
|
| 428 |
+
882,
|
| 429 |
+
561
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 2
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "Training. Our training criterion for the selection model aims to preserve the language modeling ability of the LLM while also learning to discard tokens effectively. To this end, we employ the self-supervised approach to optimize the selection model and therefore we do not need external resources to train the selection model compared with Pan et al. (2024).",
|
| 436 |
+
"bbox": [
|
| 437 |
+
507,
|
| 438 |
+
571,
|
| 439 |
+
882,
|
| 440 |
+
699
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 2
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "To keep the training process consistent with the inference process, we first discretize the selection model $\\mathbf{p}$ . Let $\\bar{p}_i$ denote the discretized binary model of $p_i$ . In other words, $\\bar{p}_i$ is 1 if it ranks the top $k\\%$ of tokens with the highest $p$ values and 0 otherwise. Then we use the discretized model as a mask to define the CLM loss function as follows:",
|
| 447 |
+
"bbox": [
|
| 448 |
+
507,
|
| 449 |
+
700,
|
| 450 |
+
882,
|
| 451 |
+
812
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 2
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "equation",
|
| 457 |
+
"text": "\n$$\n\\hat {\\mathcal {L}} _ {\\mathrm {C L M}} = - \\sum \\log P \\left(x _ {i} \\mid \\bar {p} _ {1} x _ {1}, \\dots , \\bar {p} _ {i - 1} x _ {i - 1}; \\theta\\right) \\tag {2}\n$$\n",
|
| 458 |
+
"text_format": "latex",
|
| 459 |
+
"bbox": [
|
| 460 |
+
510,
|
| 461 |
+
821,
|
| 462 |
+
880,
|
| 463 |
+
854
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 2
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "where $\\bar{p}_i x_i$ denotes whether the token $x_i$ is masked or not depending on the value of $\\bar{p}_i$ , where the above language model $P$ is set as the same model as that used in the selection model in Eq. 1.",
|
| 470 |
+
"bbox": [
|
| 471 |
+
507,
|
| 472 |
+
857,
|
| 473 |
+
882,
|
| 474 |
+
921
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 2
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "Training Details for Transferability. One of our goals is to achieve a transferable compression method. Therefore, the parameters that achieve the best loss on the language models in Eq. 1 and Eq. 2 in training may not be transferred to the targeted language model in inference since the language models in training and inference can be different. As a result, to ensure the better transferability of the optimized selection model, we freeze the pre-trained language model in Eq. 1 and employ LoRA (Hu et al., 2021) to train a partial parameter in the language model in Eq. 2. In summary, the CLM-based training loss is illustrated in Figure 1.",
|
| 481 |
+
"bbox": [
|
| 482 |
+
112,
|
| 483 |
+
84,
|
| 484 |
+
489,
|
| 485 |
+
294
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "4 Experiment",
|
| 492 |
+
"text_level": 1,
|
| 493 |
+
"bbox": [
|
| 494 |
+
112,
|
| 495 |
+
306,
|
| 496 |
+
252,
|
| 497 |
+
322
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 3
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "4.1 Setting",
|
| 504 |
+
"text_level": 1,
|
| 505 |
+
"bbox": [
|
| 506 |
+
112,
|
| 507 |
+
332,
|
| 508 |
+
216,
|
| 509 |
+
348
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "We finetune a LLaMA-2-7b model (Touvron et al., 2023) on 100M tokens from RedPajama (Togeth erAI, 2023) on split segments of 1,024 tokens via LoRA (Hu et al., 2022). To provide a comprehensive analysis of the model capabilities, our evaluation is conducted on traditional classification tasks as well as the long-context classification task.",
|
| 516 |
+
"bbox": [
|
| 517 |
+
112,
|
| 518 |
+
353,
|
| 519 |
+
489,
|
| 520 |
+
464
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 3
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "For each task, we randomly sample from the training set to construct the demonstration set for In-Context Learning (ICL), which also serves as our compression target for token selection. During inference, the compression process only needs to be computed once for all subsequent inferences on the testing instances.",
|
| 527 |
+
"bbox": [
|
| 528 |
+
112,
|
| 529 |
+
466,
|
| 530 |
+
489,
|
| 531 |
+
580
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "Traditional Classification Tasks. Following Chevalier et al. (2023), we evaluate and compare different compression models on nine classification tasks, including six tasks from SuperGlue (Wang et al., 2019). The predictions by LLMs are determined by iterating through all possible answer options for the instance and selecting the option with the minimum negative log-likelihood. The in-context demonstrations have been carefully selected to approximate a size of 750 tokens, and the complete demonstration is employed. This is referred to as the \"full-shot\". Since the average token length for a single demonstration varies for different tasks (e.g., a single demonstration in RTE averages about 75 tokens, resulting in a 10-shot setup under the full-shot setting), the exact number of shots differs depending on the task.",
|
| 538 |
+
"bbox": [
|
| 539 |
+
112,
|
| 540 |
+
588,
|
| 541 |
+
489,
|
| 542 |
+
863
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 3
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "To ensure a fair comparison among different compression models, a compression rate of 0.1 is used. For each task, four sets of demonstrations are selected, and the average result across these four trials is presented in Table 2. Additionally, the average accuracy of the nine tasks is presented for a clearer performance comparison.",
|
| 549 |
+
"bbox": [
|
| 550 |
+
507,
|
| 551 |
+
84,
|
| 552 |
+
884,
|
| 553 |
+
197
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 3
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "To achieve a compression rate of 0.1, a simpler approach is to directly retain one-tenth of the full-shot demonstration (e.g., using 1-shot instead of 10-shot for the RTE task) instead of performing selection at the token level. We also include this method as a baseline to further demonstrate the effectiveness of our approach.",
|
| 560 |
+
"bbox": [
|
| 561 |
+
507,
|
| 562 |
+
198,
|
| 563 |
+
884,
|
| 564 |
+
310
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 3
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "Long Context Classification Tasks. Recent research by Li et al. (2024) shows the failure of in-context learning tasks when applied to long-context scenarios. To investigate whether compression models can serve as a viable solution in long-context settings, we compare Selection- $p$ with long-context models, including LLaMA-2-7B-LongLora (Chen et al., 2023) and Long-LLaMA-code-7B (Tworkowski et al., 2023) on the BANKING77 dataset (Casanueva et al., 2020). The dataset contains 77 classes where traversing all the instances with unique labels requires approximately two thousand tokens. Evaluation is conducted at 2K, 4K, and 7K token levels, and we adopt a compression rate of $10\\mathrm{x}$ for Selection- $p$ and LLMingua-2 among all levels. Since the long in-context demonstration is used, chunking is performed for every 2,048 tokens in Selection- $p$ . The compressed results are concatenated together with a space token between each pair of chunks. We again follow the evaluation setting by Chevalier et al. (2023) on the models' prediction, with the result presented in Table 3.",
|
| 571 |
+
"bbox": [
|
| 572 |
+
507,
|
| 573 |
+
318,
|
| 574 |
+
884,
|
| 575 |
+
688
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 3
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "4.2 Baselines",
|
| 582 |
+
"text_level": 1,
|
| 583 |
+
"bbox": [
|
| 584 |
+
507,
|
| 585 |
+
699,
|
| 586 |
+
628,
|
| 587 |
+
712
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 3
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "We compare the Selection- $p$ with the following state-of-the-art compression models.",
|
| 594 |
+
"bbox": [
|
| 595 |
+
507,
|
| 596 |
+
719,
|
| 597 |
+
880,
|
| 598 |
+
751
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 3
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "- LLMLingua (Jiang et al., 2023) employs an iterative compression algorithm to filter less informative tokens based on the token-level perplexity. To further boost the performance, Jiang et al. (2023) also conducts a budget controller to allocate varying budgets across different demonstrations and questions. We find that there is also a significant discrepancy observed between the prescribed compression rate and the actual compression rate through",
|
| 605 |
+
"bbox": [
|
| 606 |
+
531,
|
| 607 |
+
760,
|
| 608 |
+
884,
|
| 609 |
+
921
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 3
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "page_footnote",
|
| 615 |
+
"text": "<sup>1</sup>In our preliminary experiments, we tried the Gumbel-softmax trick to optimize the loss in Eq. 2 but we did not observe gains over the direct optimization implemented in our paper.",
|
| 616 |
+
"bbox": [
|
| 617 |
+
112,
|
| 618 |
+
870,
|
| 619 |
+
489,
|
| 620 |
+
921
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 3
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "text",
|
| 626 |
+
"text": "LLMLingua API calls. For a fair comparison, we exclusively utilize the token-level prompt compression algorithm from LLMLingua in Table 2. We additionally compare LLMLingua with Selection- $p$ equipped with Budget Controller in Section 5.5.",
|
| 627 |
+
"bbox": [
|
| 628 |
+
147,
|
| 629 |
+
84,
|
| 630 |
+
487,
|
| 631 |
+
179
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 4
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "list",
|
| 637 |
+
"sub_type": "text",
|
| 638 |
+
"list_items": [
|
| 639 |
+
"- LLMLingua-2 (Pan et al., 2024) is derived from data distillation obtained by instructing GPT-4 to perform compression. Similar to ours, the model is trained as a binary classifier on each token, determining whether each token should be preserved.",
|
| 640 |
+
"- AutoCompressor (Chevalier et al., 2023) is constructed based on the RMT architecture (Bulatov et al., 2022). It compresses text into summary vectors that can be reused in subsequent segments. It is the only soft compression model adopted for comparison, considering that we followed the experiment setting for assessing the in-context learning ability of LLMs."
|
| 641 |
+
],
|
| 642 |
+
"bbox": [
|
| 643 |
+
136,
|
| 644 |
+
193,
|
| 645 |
+
485,
|
| 646 |
+
444
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 4
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "4.3 Evaluation Result",
|
| 653 |
+
"text_level": 1,
|
| 654 |
+
"bbox": [
|
| 655 |
+
112,
|
| 656 |
+
470,
|
| 657 |
+
302,
|
| 658 |
+
485
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 4
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "Traditional Classification Tasks. None of the compression models can achieve superior performance compared to the full-shot demonstration setting, which is in line with our expectations given the information loss during compression. However, certain tasks show a notable improvement when compared to both the zero-shot and full-shot approaches, e.g., all the hard compression models surpass zero-shot and full-shot by approximately $20\\%$ in the WSC task. Among all compression models, Selection- $p$ demonstrates the highest performance in conducting ICL, with an average accuracy of $67.4\\%$ across all 10 tasks as presented in Table 2. Examples of in-context demonstration before and after compression are shown in Appendix A. To demonstrate the effectiveness of our model, we have included one-tenth of the original demonstration set as the baseline. Our model significantly outperforms the baseline with a comparable number of tokens, therefore highlighting the effect of performing compression at the token level.",
|
| 665 |
+
"bbox": [
|
| 666 |
+
112,
|
| 667 |
+
492,
|
| 668 |
+
489,
|
| 669 |
+
831
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 4
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "Long Context Classification Tasks. Our model outperforms LLaMA-2-7B-LongLora, Long-LLaMA-code-7B and LLMLingua-2 at all token size levels, and achieves similar results to Li et al. (2024)'s findings on the long-context models.",
|
| 676 |
+
"bbox": [
|
| 677 |
+
112,
|
| 678 |
+
841,
|
| 679 |
+
489,
|
| 680 |
+
921
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 4
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "text",
|
| 686 |
+
"text": "In addition, a growing trend with variations is observed with increasing compressed demonstrations, indicating that our model can successfully learn from additional information after compression. Examples of in-context demonstration before and after compression are presented in Appendix A.",
|
| 687 |
+
"bbox": [
|
| 688 |
+
507,
|
| 689 |
+
84,
|
| 690 |
+
884,
|
| 691 |
+
181
|
| 692 |
+
],
|
| 693 |
+
"page_idx": 4
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"type": "text",
|
| 697 |
+
"text": "4.4 Transferability",
|
| 698 |
+
"text_level": 1,
|
| 699 |
+
"bbox": [
|
| 700 |
+
507,
|
| 701 |
+
191,
|
| 702 |
+
672,
|
| 703 |
+
206
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 4
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "Compression is first performed on the demonstration set for ICL with Selection- $p$ . Subsequently, the compressed tokens are passed to a separate downstream model (i.e. LLaMA-2-13B or the black-box models) as the compressed demonstration prompt for evaluation.",
|
| 710 |
+
"bbox": [
|
| 711 |
+
507,
|
| 712 |
+
212,
|
| 713 |
+
882,
|
| 714 |
+
306
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 4
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "To LLaMA-2-13B. We follow the same setting of evaluation across different classification tasks in Section 4.3. To assess the transferability of the compression models, we compress demonstrations with Selection- $p$ and input the compressed demonstration tokens into LLaMA-2-13B. In comparing different compression models, since retraining is required for soft compression methods, no results can be obtained for AutoCompressor (Chevalier et al., 2023). In the case of LMLingua, token-level perplexity is calculated with LLaMA-2-13B instead of LLaMaA-2-7B in this experiment.",
|
| 721 |
+
"bbox": [
|
| 722 |
+
507,
|
| 723 |
+
317,
|
| 724 |
+
882,
|
| 725 |
+
508
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 4
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "Our approach outperforms all other compression models as shown in Table 4. In addition, a small deviation is observed between the $10\\mathrm{x}$ compression rate and the full shot setting, demonstrating the great transferability of our models. Notably, with Selection- $p$ ,the tasks that outperform the full-shot setting in LLaMA-2-7b also exhibit similar patterns in LLaMA-2-13B.",
|
| 732 |
+
"bbox": [
|
| 733 |
+
507,
|
| 734 |
+
511,
|
| 735 |
+
880,
|
| 736 |
+
637
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 4
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "To Black-box Models. Taking cost into consideration, we select ChatGPT (OpenAI, 2023) and Gemini (Team, 2023) for evaluation to examine its transferability to LLMs. Traditional classification tasks often have a simple nature and the potential issue of data contamination, leading to high accuracy and causing an insignificant evaluation. Therefore, we use BANKING77 (Casanueva et al., 2020) for evaluation. Following a similar setup as described in Section 4.3, we adopt a token size of 750 for examination. However, in case the compression rate is too high, ChatGPT and Gemini are more likely to deviate from the instructions and provide task-irrelevant responses. Therefore, we adopt a compression rate of $3\\mathrm{x}$ and use the EM metric for this experiment given their black-box nature. Note that there may be variation in the result of Gemini",
|
| 743 |
+
"bbox": [
|
| 744 |
+
507,
|
| 745 |
+
646,
|
| 746 |
+
882,
|
| 747 |
+
920
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 4
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "table",
|
| 753 |
+
"img_path": "images/efbf2d1744cac689f6a044add781c277accb87d9b881b5896faee3991dbb48d2.jpg",
|
| 754 |
+
"table_caption": [],
|
| 755 |
+
"table_footnote": [],
|
| 756 |
+
"table_body": "<table><tr><td></td><td>Subj</td><td>RTE</td><td>WSC</td><td>BoolQ</td><td>MultiRC</td><td>SST-2</td><td>WIC</td><td>COPA</td><td>AG News</td><td>AVG</td></tr><tr><td>Zero-shot</td><td>49.3</td><td>58.8</td><td>43.4</td><td>67.4</td><td>52.5</td><td>67.7</td><td>50.8</td><td>52.5</td><td>63.3</td><td>56.2</td></tr><tr><td>“One-tenth”-shot</td><td>48.6</td><td>65.3</td><td>52.6</td><td>68.3</td><td>49.2</td><td>84.0</td><td>53.6</td><td>83.9</td><td>55.5</td><td>62.3</td></tr><tr><td>Full-shot</td><td>80.7</td><td>70.7</td><td>41.8</td><td>62.8</td><td>46.8</td><td>92.5</td><td>56.4</td><td>85.6</td><td>76.3</td><td>68.2</td></tr><tr><td>AutoCompressor</td><td>57.9</td><td>56.1</td><td>39.4</td><td>66.5</td><td>51.8</td><td>92.8</td><td>53.0</td><td>84.4</td><td>80.9</td><td>64.7</td></tr><tr><td>LLMLingua</td><td>56.7</td><td>60.9</td><td>63.0</td><td>69.4</td><td>50.3</td><td>69.9</td><td>51.6</td><td>76.4</td><td>61.5</td><td>62.2</td></tr><tr><td>LLMLingua-2</td><td>57.3</td><td>67.8</td><td>63.7</td><td>69.8</td><td>52.8</td><td>66.2</td><td>50.3</td><td>71.4</td><td>61.9</td><td>62.3</td></tr><tr><td>Selection-p</td><td>68.5</td><td>68.5</td><td>61.1</td><td>69.7</td><td>54.4</td><td>90.7</td><td>50.3</td><td>76.9</td><td>66.8</td><td>67.4</td></tr></table>",
|
| 757 |
+
"bbox": [
|
| 758 |
+
154,
|
| 759 |
+
80,
|
| 760 |
+
843,
|
| 761 |
+
212
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 5
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "table",
|
| 767 |
+
"img_path": "images/a04a3f2bf762e1eb58daf1a266810dbd8c3e68cd7a7dc6400463487e0ebb4b18.jpg",
|
| 768 |
+
"table_caption": [
|
| 769 |
+
"Table 2: Evaluation result on traditional classification tasks. Four sets of random demonstrations were selected, with the average result being presented. The average result across different classification tasks is presented under AVG."
|
| 770 |
+
],
|
| 771 |
+
"table_footnote": [],
|
| 772 |
+
"table_body": "<table><tr><td></td><td>2K</td><td>4K</td><td>7K</td></tr><tr><td>LLaMA-2-7B-LongLora</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>Long-LLaMA-code-7B</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>LLMlingua-2</td><td>41.2</td><td>31.6</td><td>35.2</td></tr><tr><td>Selection-p</td><td>46.9</td><td>50.9</td><td>51.6</td></tr></table>",
|
| 773 |
+
"bbox": [
|
| 774 |
+
152,
|
| 775 |
+
288,
|
| 776 |
+
450,
|
| 777 |
+
370
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 5
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "Table 3: Evaluation result on BANKING77 with increasing in-content demonstrations tokens length.",
|
| 784 |
+
"bbox": [
|
| 785 |
+
112,
|
| 786 |
+
382,
|
| 787 |
+
487,
|
| 788 |
+
411
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 5
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "since the discrete compressed tokens sometimes trigger the SAFETY error. The prompt used is presented in Appendix B.",
|
| 795 |
+
"bbox": [
|
| 796 |
+
112,
|
| 797 |
+
438,
|
| 798 |
+
485,
|
| 799 |
+
485
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 5
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "Though the performance of our model still deviates from the full-shot setting, it achieved the best performance compared to the existing works as presented in Table 4, demonstrating fair transferability even in LLMs like ChatGPT. Surprisingly, though LLM Lingua-2 is distilled from GPT-4, it exhibits poor generalization compared to other compression models.",
|
| 806 |
+
"bbox": [
|
| 807 |
+
112,
|
| 808 |
+
487,
|
| 809 |
+
487,
|
| 810 |
+
613
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 5
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "5 Analysis",
|
| 817 |
+
"text_level": 1,
|
| 818 |
+
"bbox": [
|
| 819 |
+
112,
|
| 820 |
+
630,
|
| 821 |
+
221,
|
| 822 |
+
646
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 5
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "5.1 Flexibility",
|
| 829 |
+
"text_level": 1,
|
| 830 |
+
"bbox": [
|
| 831 |
+
112,
|
| 832 |
+
657,
|
| 833 |
+
238,
|
| 834 |
+
671
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 5
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Performance with Different Number of Initial Tokens. The result in long context classification tasks in Section 4.3 shows the effectiveness of chunk-wise compression in long context. We further analyze if compression models work well in normal few-shot settings in classification tasks. In this experiment, the in-context demonstrations are selected with an approximate size of 250 tokens. The comparison to the result with the token size of 750 in Section 4.3 is presented in Table 6.",
|
| 841 |
+
"bbox": [
|
| 842 |
+
112,
|
| 843 |
+
678,
|
| 844 |
+
487,
|
| 845 |
+
839
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 5
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "Selection- $p$ shows the best performance under the constraint of 250 tokens when compared to other compression models. Additionally, it also follows the full-shot (i.e. 750 tokens level) trend, the average performance across all classification",
|
| 852 |
+
"bbox": [
|
| 853 |
+
112,
|
| 854 |
+
841,
|
| 855 |
+
487,
|
| 856 |
+
921
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 5
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "tasks increases along with the number of provided demonstrations. On the contrary, other compression models didn't achieve an improvement in accuracy with more demonstrations. For instance, there is a drop of $2\\%$ recorded with an additional 500 tokens of information for AutoCompressor.",
|
| 863 |
+
"bbox": [
|
| 864 |
+
507,
|
| 865 |
+
292,
|
| 866 |
+
884,
|
| 867 |
+
388
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 5
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "5.2 Latency Analysis",
|
| 874 |
+
"text_level": 1,
|
| 875 |
+
"bbox": [
|
| 876 |
+
507,
|
| 877 |
+
400,
|
| 878 |
+
690,
|
| 879 |
+
416
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 5
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "We analyze end-to-end latency on A100-80G GPU with the WSC task, illustrated in Table 7. Our method can achieve $5.3\\mathrm{x}$ speed up on $10\\mathrm{x}$ compressed in-context demonstration. Compared to the inference time, negligible time is required for compression on the ICL task setting, demonstrating high efficiency in adopting our models for compression. We also compared LLMLingua with the disabled content Budget Controller. It requires iterative decoding on the segmented context while Selection- $p$ only requires a single inference on all tokens and demonstrates a good performance.",
|
| 886 |
+
"bbox": [
|
| 887 |
+
507,
|
| 888 |
+
420,
|
| 889 |
+
882,
|
| 890 |
+
615
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 5
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "5.3 Correlation with Attention and Perplexity",
|
| 897 |
+
"text_level": 1,
|
| 898 |
+
"bbox": [
|
| 899 |
+
507,
|
| 900 |
+
626,
|
| 901 |
+
880,
|
| 902 |
+
642
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 5
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "With the $p$ -value ranging between 0 and 1 for each token, we further study whether any correlations exist among $p$ , the mean attention value during the forward pass, and the tokens level perplexity (i.e. a core component in LLMLingua (Jiang et al., 2023)). Since the value of $p$ is derived from the last hidden state of the model, we only consider the last layer mean attention of our tuned model. We employed Spearman's Rank Correlation Coefficient (Spearman, 1904) to compute the correlation between the three variables. It is calculated for different traditional classification tasks and the averaged value across tasks. The result presented in Figure 2 indicates only a weak correlation observed between the $p$ value and the other two variables while the correlation between the last layer mean attention and perplexity is more significant. Among all tasks,",
|
| 909 |
+
"bbox": [
|
| 910 |
+
507,
|
| 911 |
+
646,
|
| 912 |
+
882,
|
| 913 |
+
921
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 5
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "table",
|
| 919 |
+
"img_path": "images/fbee90128c89e235f29e5621695770001274f636805e382599faeff62fefda7c.jpg",
|
| 920 |
+
"table_caption": [],
|
| 921 |
+
"table_footnote": [],
|
| 922 |
+
"table_body": "<table><tr><td></td><td colspan=\"10\">LLaMA-2-13B</td></tr><tr><td></td><td>Subj</td><td>RTE</td><td>WSC</td><td>BoolQ</td><td>MultiRC</td><td>SST-2</td><td>WIC</td><td>COPA</td><td>AG News</td><td>AVG</td></tr><tr><td>Full-shot</td><td>91.6</td><td>74.8</td><td>46.9</td><td>67.7</td><td>45.7</td><td>94.7</td><td>54.6</td><td>77.6</td><td>79.2</td><td>70.3</td></tr><tr><td>LLMingua</td><td>53.6</td><td>61.0</td><td>63.2</td><td>70.6</td><td>51.5</td><td>64.3</td><td>50.0</td><td>78.1</td><td>58.0</td><td>61.4</td></tr><tr><td>LLMingua-2</td><td>48.3</td><td>68.7</td><td>41.3</td><td>75.8</td><td>52.2</td><td>51.3</td><td>49.0</td><td>48.2</td><td>71.1</td><td>56.2</td></tr><tr><td>Selection-p</td><td>69.3</td><td>69.5</td><td>65.4</td><td>74.7</td><td>50.7</td><td>81.1</td><td>50.5</td><td>87.5</td><td>63.2</td><td>68.0</td></tr></table>",
|
| 923 |
+
"bbox": [
|
| 924 |
+
159,
|
| 925 |
+
80,
|
| 926 |
+
840,
|
| 927 |
+
186
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 6
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "table",
|
| 933 |
+
"img_path": "images/325ae2643eaab6fd436ab6226353aaba7714df60f404cc1e22fadc70eb7ad4a1.jpg",
|
| 934 |
+
"table_caption": [
|
| 935 |
+
"Table 4: Analysis of transferability to open-source model LLaMA-2-13B. The experiment is performed on 750 tokens in-context demonstrations with a 10x compression rate."
|
| 936 |
+
],
|
| 937 |
+
"table_footnote": [],
|
| 938 |
+
"table_body": "<table><tr><td></td><td>ChatGPT\nGPT-3.5-Turbo</td><td>Gemini\nGemini-1.0-Pro</td></tr><tr><td>Full-shot</td><td>74.2</td><td>73.3</td></tr><tr><td>LLMlingua</td><td>58.6</td><td>40.2</td></tr><tr><td>LLMlingua-2</td><td>55.7</td><td>51.9</td></tr><tr><td>Selection-p</td><td>62.9</td><td>58.9</td></tr></table>",
|
| 939 |
+
"bbox": [
|
| 940 |
+
139,
|
| 941 |
+
244,
|
| 942 |
+
467,
|
| 943 |
+
340
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 6
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Table 5: Analysis of transferability to blackbox models (i.e. ChatGPT and Gemini). The experiment is performed on 750 tokens in-context demonstrations with a 3x compression rate.",
|
| 950 |
+
"bbox": [
|
| 951 |
+
112,
|
| 952 |
+
350,
|
| 953 |
+
489,
|
| 954 |
+
407
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 6
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "WIC demonstrates a prominently high value compared to others, this may explain the small variation in accuracy across different compression models and different experimental settings.",
|
| 961 |
+
"bbox": [
|
| 962 |
+
112,
|
| 963 |
+
434,
|
| 964 |
+
489,
|
| 965 |
+
500
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 6
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "5.4 Tokens Level Part-of-Speech Analysis",
|
| 972 |
+
"text_level": 1,
|
| 973 |
+
"bbox": [
|
| 974 |
+
112,
|
| 975 |
+
512,
|
| 976 |
+
455,
|
| 977 |
+
529
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 6
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "To further interpret the rationale behind our compression models, we analyze what kinds of words are likely preserved by Selection- $p$ . Under the discreteness of our compression result, we locate the corresponding words from the compressed tokens and obtain the Part-of-Speech (PoS) tags with an NLTK tagger. For each type of PoS tag, we compute the token preservation percentage with",
|
| 984 |
+
"bbox": [
|
| 985 |
+
112,
|
| 986 |
+
533,
|
| 987 |
+
489,
|
| 988 |
+
664
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 6
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "equation",
|
| 994 |
+
"text": "\n$$\n\\frac {\\left| \\text {c o m p r e s s e d} _ {t} \\text {k o t e n} _ {\\text {t a g} _ {i}} \\right|}{\\left| \\text {t o t a l} _ {t} \\text {t o k e n} _ {\\text {t a g} _ {i}} \\right|}\n$$\n",
|
| 995 |
+
"text_format": "latex",
|
| 996 |
+
"bbox": [
|
| 997 |
+
213,
|
| 998 |
+
676,
|
| 999 |
+
386,
|
| 1000 |
+
715
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 6
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "for each PoS tag $\\mathrm{tag}_{i}$ . The experiment is conducted between the compressed result and the original demonstrations among the nine traditional classification tasks with four demonstration sets per task. We analyze tags with a frequency of appearance greater than $1\\%$ .",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
112,
|
| 1009 |
+
727,
|
| 1010 |
+
489,
|
| 1011 |
+
822
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 6
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "From the result presented in Figure 3, PRP and punctuations (i.e. indicating the start of the next sentence or phrase) are more likely preserved. The potential reason for the high preservation ratio on PRP (personal pronoun) likely corresponds to the pronoun resolution task of WSC. Under the task",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
112,
|
| 1020 |
+
824,
|
| 1021 |
+
489,
|
| 1022 |
+
921
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 6
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "image",
|
| 1028 |
+
"img_path": "images/71879c9b24ec7215b4977e0372906f4bf7db657088b7556e080f0810d16064b0.jpg",
|
| 1029 |
+
"image_caption": [
|
| 1030 |
+
"Figure 2: Spearman's Rank Correlation Coefficient (spearmanr) between $p$ (p) value, mean attention (a) and token-level perplexity (ppl) across different traditional classification tasks."
|
| 1031 |
+
],
|
| 1032 |
+
"image_footnote": [],
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
522,
|
| 1035 |
+
236,
|
| 1036 |
+
843,
|
| 1037 |
+
514
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 6
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "setting, it can be useful hints for the answer derivation.",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
507,
|
| 1046 |
+
598,
|
| 1047 |
+
882,
|
| 1048 |
+
629
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 6
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "The high preservation ratio of punctuation may indicate a large redundancy in a sentence, and truncating sentence separation tokens is undesirable. Additionally, as highlighted by Wang et al. (2023), formatting information (i.e. structure of the demonstrations) matters a lot in in-context learning. However, formatting tokens (i.e. “:”) are unlikely to be preserved with Selection- $p$ compared to the original distribution in our case. In general, we also observe a higher degree of preservation of noun phrases compared to verbs.",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
507,
|
| 1057 |
+
631,
|
| 1058 |
+
884,
|
| 1059 |
+
808
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 6
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "5.5 On Fair Comparison with LLMLingua",
|
| 1066 |
+
"text_level": 1,
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
507,
|
| 1069 |
+
819,
|
| 1070 |
+
862,
|
| 1071 |
+
835
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 6
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "As described in Section 4.2, LLMLingua conducts demonstration selection prior to compression at the token level, while other methods compress directly on the token level. Since the demonstration selection process can also be incorporated into other",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
507,
|
| 1080 |
+
841,
|
| 1081 |
+
882,
|
| 1082 |
+
921
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 6
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "table",
|
| 1088 |
+
"img_path": "images/3fdd07e0580d58de74c7ae5b2d690ce5399f1a57fcd57f5434cd95bdd313c2a0.jpg",
|
| 1089 |
+
"table_caption": [],
|
| 1090 |
+
"table_footnote": [],
|
| 1091 |
+
"table_body": "<table><tr><td></td><td>Subj</td><td>RTE</td><td>WSC</td><td>BoolQ</td><td>MultiRC</td><td>SST-2</td><td>WIC</td><td>COPA</td><td>AG News</td><td>AVG</td></tr><tr><td>Zero-shot</td><td>49.3</td><td>58.8</td><td>43.4</td><td>67.4</td><td>52.5</td><td>67.7</td><td>50.8</td><td>52.5</td><td>63.3</td><td>56.2</td></tr><tr><td>Full-shot</td><td>81.3</td><td>69.9</td><td>51.2</td><td>62.7</td><td>46.8</td><td>89.3</td><td>51.8</td><td>85.1</td><td>67.9</td><td>67.3</td></tr><tr><td>ΔFull-shot</td><td>-0.6</td><td>+0.8</td><td>-9.4</td><td>+0.1</td><td>±0</td><td>+3.2</td><td>+4.6</td><td>+0.5</td><td>+8.4</td><td>+0.9</td></tr><tr><td>AutoCompressor</td><td>56.2</td><td>61.5</td><td>44.2</td><td>68.3</td><td>52.7</td><td>93.0</td><td>51.5</td><td>83.6</td><td>76.1</td><td>65.2</td></tr><tr><td>ΔAutoCompressor</td><td>+1.7</td><td>-5.4</td><td>-4.8</td><td>-1.8</td><td>-0.9</td><td>-0.2</td><td>+1.5</td><td>+0.8</td><td>+4.8</td><td>-0.5</td></tr><tr><td>LLMLingua*</td><td>55.6</td><td>61.4</td><td>61.3</td><td>68.2</td><td>53.1</td><td>81.1</td><td>50.2</td><td>75.8</td><td>70.9</td><td>64.2</td></tr><tr><td>ΔLLMLingua</td><td>+1.1</td><td>-0.5</td><td>+1.7</td><td>+1.2</td><td>-2.8</td><td>-11.2</td><td>+1.4</td><td>+0.6</td><td>-9.4</td><td>-2.0</td></tr><tr><td>LLMLingua-2</td><td>52.4</td><td>65.3</td><td>63.9</td><td>66.1</td><td>50.9</td><td>82.9</td><td>50.8</td><td>77.8</td><td>56.3</td><td>62.9</td></tr><tr><td>ΔLLMLingua-2</td><td>+4.9</td><td>+2.5</td><td>-0.2</td><td>+3.7</td><td>+1.9</td><td>-16.7</td><td>-0.5</td><td>-6.4</td><td>+5.6</td><td>-0.6</td></tr><tr><td>Selection-p</td><td>65.7</td><td>65.5</td><td>58.7</td><td>67.5</td><td>54.3</td><td>81.3</td><td>50.4</td><td>77.9</td><td>68.3</td><td>65.5</td></tr><tr><td>ΔSelection-p</td><td>+2.8</td><td>+3.0</td><td>+2.4</td><td>+2.3</td><td>+0.1</td><td>+9.4</td><td>-0.1</td><td>-1.0</td><td>-1.5</td><td>+1.9</td></tr></table>",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
147,
|
| 1094 |
+
80,
|
| 1095 |
+
845,
|
| 1096 |
+
275
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 7
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "table",
|
| 1102 |
+
"img_path": "images/a61bc460fe771ecbc98abe9805443c6b5f79c1338916ed5810906d538a6550d8.jpg",
|
| 1103 |
+
"table_caption": [
|
| 1104 |
+
"Table 6: Performance with different number of demonstrations from about 250 tokens to about 750 tokens. $\\Delta$ refers to the performance enhancement that can be achieved by increasing the demonstration tokens size to 750."
|
| 1105 |
+
],
|
| 1106 |
+
"table_footnote": [],
|
| 1107 |
+
"table_body": "<table><tr><td></td><td>1x</td><td>2x</td><td>5x</td><td>10x</td></tr><tr><td>End-to-End without compression</td><td>298.6</td><td></td><td></td><td></td></tr><tr><td>End-to-End with Selection-p</td><td></td><td>167.0 (1.8x)</td><td>81.6 (3.7x)</td><td>55.6 (5.3x)</td></tr><tr><td>LLMLingua per demonstrations set</td><td>-</td><td>0.82</td><td>0.82</td><td>0.81</td></tr><tr><td>Selection-p per demonstrations set</td><td>-</td><td>0.68</td><td>0.67</td><td>0.67</td></tr></table>",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
226,
|
| 1110 |
+
326,
|
| 1111 |
+
771,
|
| 1112 |
+
411
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 7
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "compression models, we only utilize the modified version of LLMLingua in the previous experiments to ensure a fair comparison.",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
112,
|
| 1121 |
+
502,
|
| 1122 |
+
487,
|
| 1123 |
+
551
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 7
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "In this section, we further analyze the performance by comparing our proposed method, equipped with the Budget Controller, with the whole LLMLingua to provide a comprehensive analysis. We follow the setting described in Section 4.3 and select the WSC task for our experiment. To illustrate, in the original demonstration set consisting of 16 demonstrations, the LLMLingua API retains only four demonstrations. This leads to two options with Selection- $p$ : (1) continuously applying the $10\\mathrm{x}$ compression directly to the filtered set of four demonstrations and resulting in a final compression rate of $38\\mathrm{x}$ , and (2) adjusting the compression rate of Selection- $p$ to achieve a final compression rate of $10\\mathrm{x}$ .",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
112,
|
| 1132 |
+
558,
|
| 1133 |
+
489,
|
| 1134 |
+
800
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 7
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "The result presented in Table 8 demonstrates the significant impact of the Budget Controller. Similar trends in performance for both Selection- $p$ and LLMLingua are observed (i.e., a decrease in performance on the WSC task). Notably, the performance of Selection- $p$ surpasses LLMLingua after equipping with the Budget Controller.",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
112,
|
| 1143 |
+
808,
|
| 1144 |
+
489,
|
| 1145 |
+
921
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 7
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "table",
|
| 1151 |
+
"img_path": "images/617409adb1273099cf7049734e4762f30e18f88ec24bf8c4105ff9930f4cbfde.jpg",
|
| 1152 |
+
"table_caption": [
|
| 1153 |
+
"Table 7: Latency(s) comparison on WSC in 750 tokens level with about 16 demonstrations. We present the averaged complete end-to-end inference with and without Selection- $p$ among four sets of demonstrations. Comparison is conducted with LLMLingua which also builds upon the LLaMA-2-7B backbone, with the averaged compression time of the in-context demonstrations being presented."
|
| 1154 |
+
],
|
| 1155 |
+
"table_footnote": [],
|
| 1156 |
+
"table_body": "<table><tr><td></td><td>WSC</td><td>rate</td></tr><tr><td>Selection-p</td><td>61.1</td><td>10x</td></tr><tr><td>LLMLingua</td><td>63.0</td><td>10x</td></tr><tr><td>Selection-p (+ Budget Controller)</td><td>47.6</td><td>10x</td></tr><tr><td>Selection-p (+ Budget Controller)</td><td>57.0</td><td>38x</td></tr><tr><td>LLMLingua (whole)</td><td>44.7</td><td>10x</td></tr></table>",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
557,
|
| 1159 |
+
499,
|
| 1160 |
+
836,
|
| 1161 |
+
595
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 7
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Table 8: Comparison with LLMLingua on Budget Controller. Adopting different strategies in equipping Selection- $p$ with Budget Controller, leads to the two different compression rates (rate) of ${10}\\mathrm{x}$ and ${38}\\mathrm{x}$ .",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
507,
|
| 1170 |
+
605,
|
| 1171 |
+
882,
|
| 1172 |
+
663
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 7
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Furthermore, there is a disparity between the instructed compression rate and the actual compression rate in LLMLingua. The target size for compressed tokens is 75, while LLMLingua typically achieves an average compressed token size of around 192.1, which is more than 1.5 times higher than the desired rate across all classification tasks.",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
507,
|
| 1181 |
+
688,
|
| 1182 |
+
882,
|
| 1183 |
+
800
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 7
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "6 Conclusion",
|
| 1190 |
+
"text_level": 1,
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
507,
|
| 1193 |
+
814,
|
| 1194 |
+
640,
|
| 1195 |
+
829
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 7
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "We introduce a simple yet effective self-supervised approach in context compression and conduct evaluation across 10 classification tasks in both few-shot and long-context settings. Our approach also demonstrated great transferability to both the open-",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
507,
|
| 1204 |
+
841,
|
| 1205 |
+
884,
|
| 1206 |
+
921
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 7
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "image",
|
| 1212 |
+
"img_path": "images/a77d617378c73b3204182d5fe86570211ad68f6deafbea4efd61db42f87bae3d.jpg",
|
| 1213 |
+
"image_caption": [
|
| 1214 |
+
"Figure 3: Analysis of the token preservation percentage with respect to different types of Part-of-Speech tags under $10\\mathrm{x}$ compression rate."
|
| 1215 |
+
],
|
| 1216 |
+
"image_footnote": [],
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
159,
|
| 1219 |
+
85,
|
| 1220 |
+
836,
|
| 1221 |
+
200
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 8
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "source (i.e. LLaMA-2-13B) and black-box models (i.e. ChatGPT and Gemini), with performance surpassing the existing state-of-the-art compression models. Analysis is also conducted among different compression rates and demonstration lengths. With a 10x compression rate, our model only shows a 0.8-point drop in performance across different traditional classification tasks with a 5.3x speedup. Through experiments in long-context settings, our work also presents the possibility of addressing the in-context learning issue of the recent long-context models. Both efficiency enhancement as well as performance preservation are shown in our model.",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
110,
|
| 1230 |
+
269,
|
| 1231 |
+
489,
|
| 1232 |
+
479
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 8
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Acknowledgement This research has been made possible by the Hong Kong PhD Fellowship provided to Tsz Ting Chung and the Research Impact Fund project R6003-21 provided by the Research Grants Council of Hong Kong to Dit-Yan Yeung.",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
112,
|
| 1241 |
+
488,
|
| 1242 |
+
489,
|
| 1243 |
+
570
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 8
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Limitations",
|
| 1250 |
+
"text_level": 1,
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
112,
|
| 1253 |
+
579,
|
| 1254 |
+
220,
|
| 1255 |
+
594
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 8
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "Under the consideration of cost, we did not perform further analysis on other LLMs apart from ChatGPT and Gemini. In addition, our model which builds up LLaMA-2-7B does not achieve better latency than models like LLMLingua-2 and AutoCompressor. Under the ICL setting, minimal time is required for compression, leading to insignificance in end-to-end inference time. While AutoCompressor offers better latency, its soft compression nature limits its applicability to other LLMs. Overall, our experiments across various tasks and settings demonstrate better performance and transferability, with the benefits outweighing the latency issue.",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
112,
|
| 1264 |
+
605,
|
| 1265 |
+
489,
|
| 1266 |
+
829
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 8
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "References",
|
| 1273 |
+
"text_level": 1,
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
114,
|
| 1276 |
+
857,
|
| 1277 |
+
213,
|
| 1278 |
+
872
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 8
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, Christoph Feichtenhofer, and Judy Hoffman. 2023. Token merging: Your vit but faster. In The",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
114,
|
| 1287 |
+
879,
|
| 1288 |
+
489,
|
| 1289 |
+
921
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 8
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "Eleventh International Conference on Learning Representations.",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
526,
|
| 1298 |
+
269,
|
| 1299 |
+
882,
|
| 1300 |
+
297
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 8
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual.",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
510,
|
| 1309 |
+
305,
|
| 1310 |
+
884,
|
| 1311 |
+
501
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 8
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "Aydar Bulatov, Yuri Kuratov, and Mikhail Burtsev. 2022. Recurrent memory transformer. In Advances in Neural Information Processing Systems.",
|
| 1318 |
+
"bbox": [
|
| 1319 |
+
509,
|
| 1320 |
+
508,
|
| 1321 |
+
882,
|
| 1322 |
+
550
|
| 1323 |
+
],
|
| 1324 |
+
"page_idx": 8
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"type": "text",
|
| 1328 |
+
"text": "Inigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić. 2020. Efficient intent detection with dual sentence encoders. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI, pages 38-45, Online. Association for Computational Linguistics.",
|
| 1329 |
+
"bbox": [
|
| 1330 |
+
510,
|
| 1331 |
+
557,
|
| 1332 |
+
882,
|
| 1333 |
+
638
|
| 1334 |
+
],
|
| 1335 |
+
"page_idx": 8
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "text",
|
| 1339 |
+
"text": "Yukang Chen, Shengju Qian, Haotian Tang, Xin Lai, Zhijian Liu, Song Han, and Jiaya Jia. 2023. Longlora: Efficient fine-tuning of long-context large language models. ArXiv preprint, abs/2309.12307.",
|
| 1340 |
+
"bbox": [
|
| 1341 |
+
510,
|
| 1342 |
+
644,
|
| 1343 |
+
882,
|
| 1344 |
+
697
|
| 1345 |
+
],
|
| 1346 |
+
"page_idx": 8
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"type": "text",
|
| 1350 |
+
"text": "Alexis Chevalier, Alexander Wettig, Anirudh Ajith, and Danqi Chen. 2023. Adapting language models to compress contexts. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3829-3846, Singapore. Association for Computational Linguistics.",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
510,
|
| 1353 |
+
705,
|
| 1354 |
+
882,
|
| 1355 |
+
785
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 8
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "Tao Ge, Hu Jing, Lei Wang, Xun Wang, Si-Qing Chen, and Furu Wei. 2024. In-context autoencoder for context compression in a large language model. In The Twelfth International Conference on Learning Representations.",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
510,
|
| 1364 |
+
793,
|
| 1365 |
+
882,
|
| 1366 |
+
858
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 8
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "Saurabh Goyal, Anamitra Roy Choudhury, Saurabh Raje, Venkatesan T. Chakaravarthy, Yogish Sabharwal, and Ashish Verma. 2020. Power-bert: Accelerating BERT inference via progressive word-vector",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
509,
|
| 1375 |
+
866,
|
| 1376 |
+
882,
|
| 1377 |
+
921
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 8
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "list",
|
| 1383 |
+
"sub_type": "ref_text",
|
| 1384 |
+
"list_items": [
|
| 1385 |
+
"elimination. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 3690-3699. PMLR.",
|
| 1386 |
+
"Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685.",
|
| 1387 |
+
"Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. Lora: Low-rank adaptation of large language models. In *The Tenth International Conference on Learning Representations*, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.",
|
| 1388 |
+
"Huiqiang Jiang, Qianhui Wu, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2023. LLMLingua: Compressing prompts for accelerated inference of large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 13358-13376, Singapore. Association for Computational Linguistics.",
|
| 1389 |
+
"Gyuwan Kim and Kyunghyun Cho. 2021. Length-adaptive transformer: Train once with length drop, use anytime with search. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 6501-6511, Online. Association for Computational Linguistics.",
|
| 1390 |
+
"Sehoon Kim, Sheng Shen, David Thorsley, Amir Gholami, Woosuk Kwon, Joseph Hassoun, and Kurt Keutzer. 2022. Learned token pruning for transformers.",
|
| 1391 |
+
"Tianle Li, Ge Zhang, Quy Duc Do, Xiang Yue, and Wenhu Chen. 2024. Long-context llms struggle with long in-context learning.",
|
| 1392 |
+
"Yucheng Li, Bo Dong, Frank Guerin, and Chenghua Lin. 2023. Compressing context to enhance inference efficiency of large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 6342-6353, Singapore. Association for Computational Linguistics.",
|
| 1393 |
+
"Sewon Min, Mike Lewis, Hannaneh Hajishirzi, and Luke Zettlemoyer. 2022. Noisy channel language model prompting for few-shot text classification. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5316-5330, Dublin, Ireland. Association for Computational Linguistics.",
|
| 1394 |
+
"Ali Modarressi, Hosein Moebbi, and Mohammad Taher Pilehvar. 2022. AdapLeR: Speeding up inference by adaptive length reduction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1-15, Dublin, Ireland. Association for Computational Linguistics."
|
| 1395 |
+
],
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
115,
|
| 1398 |
+
85,
|
| 1399 |
+
487,
|
| 1400 |
+
920
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 9
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "list",
|
| 1406 |
+
"sub_type": "ref_text",
|
| 1407 |
+
"list_items": [
|
| 1408 |
+
"Jesse Mu, Xiang Li, and Noah Goodman. 2023. Learning to compress prompts with gist tokens. In Advances in Neural Information Processing Systems, volume 36, pages 19327-19352. Curran Associates, Inc.",
|
| 1409 |
+
"OpenAI. 2023. GPT-4 technical report. ArXiv preprint, abs/2303.08774.",
|
| 1410 |
+
"Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Menglin Xia, Xufang Luo, Jue Zhang, Qingwei Lin, Victor Ruhle, Yuqing Yang, Chin-Yew Lin, H. Vicky Zhao, Lili Qiu, and Dongmei Zhang. 2024. Llmlingua-2: Data distillation for efficient and faithful task-agnostic prompt compression.",
|
| 1411 |
+
"Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu, Jie Zhou, and Cho-Jui Hsieh. 2021. Dynamicvit: Efficient vision transformers with dynamic token sparsification. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pages 13937-13949.",
|
| 1412 |
+
"C. Spearman. 1904. The proof and measurement of association between two things. American Journal of Psychology, 15:88-103.",
|
| 1413 |
+
"Gemini Team. 2023. Gemini: A family of highly capable multimodal models.",
|
| 1414 |
+
"TogetherAI. 2023. Redpajama: An open dataset for training large language models.",
|
| 1415 |
+
"Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models.",
|
| 1416 |
+
"Szymon Tworkowski, Konrad Staniszewski, Mikołaj Pacek, Yuhuai Wu, Henryk Michalewski, and Piotr Miłos. 2023. Focused transformer: Contrastive training for context scaling.",
|
| 1417 |
+
"Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019. Superglue: A stickier benchmark for general-purpose language understanding systems. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 3261-3275.",
|
| 1418 |
+
"Lean Wang, Lei Li, Damai Dai, Deli Chen, Hao Zhou, Fandong Meng, Jie Zhou, and Xu Sun. 2023. Label words are anchors: An information flow perspective for understanding in-context learning. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 9840-9855, Singapore. Association for Computational Linguistics."
|
| 1419 |
+
],
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
510,
|
| 1422 |
+
85,
|
| 1423 |
+
882,
|
| 1424 |
+
919
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 9
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "list",
|
| 1430 |
+
"sub_type": "ref_text",
|
| 1431 |
+
"list_items": [
|
| 1432 |
+
"Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. 2023. Chain-of-thought prompting elicits reasoning in large language models.",
|
| 1433 |
+
"David Wingate, Mohammad Shoeybi, and Taylor Sorensen. 2022. Prompt compression and contrastive conditioning for controllability and toxicity reduction in language models. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 5621-5634, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics."
|
| 1434 |
+
],
|
| 1435 |
+
"bbox": [
|
| 1436 |
+
115,
|
| 1437 |
+
85,
|
| 1438 |
+
489,
|
| 1439 |
+
241
|
| 1440 |
+
],
|
| 1441 |
+
"page_idx": 10
|
| 1442 |
+
},
|
| 1443 |
+
{
|
| 1444 |
+
"type": "text",
|
| 1445 |
+
"text": "A Examples Illustration of Compression Results",
|
| 1446 |
+
"text_level": 1,
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
114,
|
| 1449 |
+
83,
|
| 1450 |
+
480,
|
| 1451 |
+
116
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 11
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "Figure 4 shows examples of two traditional classification tasks (i.e. Subj and WSC) with Selection- $p$ under $10\\mathrm{x}$ compression, displaying both the compressed results and the original demonstration sets before compression. Additionally, Figure 5 illustrates an example for BANKING77 under $10\\mathrm{x}$ compression.",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
112,
|
| 1460 |
+
128,
|
| 1461 |
+
489,
|
| 1462 |
+
240
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 11
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "B Prompt of Evaluation on BANKING77",
|
| 1469 |
+
"text_level": 1,
|
| 1470 |
+
"bbox": [
|
| 1471 |
+
112,
|
| 1472 |
+
256,
|
| 1473 |
+
485,
|
| 1474 |
+
273
|
| 1475 |
+
],
|
| 1476 |
+
"page_idx": 11
|
| 1477 |
+
},
|
| 1478 |
+
{
|
| 1479 |
+
"type": "text",
|
| 1480 |
+
"text": "In our prompt to ChatGPT, we first list out all 77 labels and then provide a list of demonstrations. The template is detailed below,",
|
| 1481 |
+
"bbox": [
|
| 1482 |
+
112,
|
| 1483 |
+
285,
|
| 1484 |
+
489,
|
| 1485 |
+
332
|
| 1486 |
+
],
|
| 1487 |
+
"page_idx": 11
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"type": "text",
|
| 1491 |
+
"text": "Answer in activate_my_card or age_limit or apple_pay_or_google_pay or atm_support or automatic_top_up or balance_not UPDATED_after_bank_transfer or ... or wrong_amount_of_cash_received or wrong_exchange_rate_for_cash_withdrawal.",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
112,
|
| 1494 |
+
351,
|
| 1495 |
+
489,
|
| 1496 |
+
447
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 11
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "Context: <context>",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
112,
|
| 1505 |
+
464,
|
| 1506 |
+
263,
|
| 1507 |
+
478
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 11
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "Answer: <answer>",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
112,
|
| 1516 |
+
481,
|
| 1517 |
+
262,
|
| 1518 |
+
494
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 11
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"text": "C Training Details",
|
| 1525 |
+
"text_level": 1,
|
| 1526 |
+
"bbox": [
|
| 1527 |
+
112,
|
| 1528 |
+
527,
|
| 1529 |
+
294,
|
| 1530 |
+
544
|
| 1531 |
+
],
|
| 1532 |
+
"page_idx": 11
|
| 1533 |
+
},
|
| 1534 |
+
{
|
| 1535 |
+
"type": "text",
|
| 1536 |
+
"text": "We use LLaMA-2-7B for compression (i.e. token selection). It takes roughly 50 hours on a single A100 GPU to train on 100M tokens from RedPajama.",
|
| 1537 |
+
"bbox": [
|
| 1538 |
+
112,
|
| 1539 |
+
556,
|
| 1540 |
+
489,
|
| 1541 |
+
620
|
| 1542 |
+
],
|
| 1543 |
+
"page_idx": 11
|
| 1544 |
+
},
|
| 1545 |
+
{
|
| 1546 |
+
"type": "text",
|
| 1547 |
+
"text": "D Detailed Latency Analysis",
|
| 1548 |
+
"text_level": 1,
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
112,
|
| 1551 |
+
636,
|
| 1552 |
+
378,
|
| 1553 |
+
653
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 11
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "text",
|
| 1559 |
+
"text": "For the token-based compression models, the time needed for compression per demonstration set on the WSC task is presented in Table 9.",
|
| 1560 |
+
"bbox": [
|
| 1561 |
+
112,
|
| 1562 |
+
664,
|
| 1563 |
+
487,
|
| 1564 |
+
712
|
| 1565 |
+
],
|
| 1566 |
+
"page_idx": 11
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"type": "table",
|
| 1570 |
+
"img_path": "images/f25308a7fbffe2be27be2a85589d6566f881d96d952e5d735923c0b81e8521d1.jpg",
|
| 1571 |
+
"table_caption": [],
|
| 1572 |
+
"table_footnote": [],
|
| 1573 |
+
"table_body": "<table><tr><td>LLMLingua-2</td><td>Selection-p</td><td>LLMLingua</td></tr><tr><td>0.15</td><td>0.67</td><td>0.81</td></tr></table>",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
161,
|
| 1576 |
+
726,
|
| 1577 |
+
438,
|
| 1578 |
+
766
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 11
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "text",
|
| 1584 |
+
"text": "Under the ICL setting, the same demonstration set is used consistently, and compression on the demonstration set only needs to be computed once for all subsequent inferences. This contributed to the short compression time in the complete end-to-end process.",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
112,
|
| 1587 |
+
825,
|
| 1588 |
+
489,
|
| 1589 |
+
921
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 11
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "Considering that the time taken for compression on the demonstration set is negligible when compared to the time required for inference (approximately at a ratio of 0.01), the end-to-end inference time for the token-selection-based compression models is roughly the same. The end-to-end inference time result for the WSC task on LLaMA2-7B is shown in Table 10. The table is presented in order of the inference time for clarity.",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
507,
|
| 1598 |
+
84,
|
| 1599 |
+
884,
|
| 1600 |
+
229
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 11
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "table",
|
| 1606 |
+
"img_path": "images/87f30e9a005ce26c2498c17e3eff99dd83c35a8220b058b724295295c9191aa6.jpg",
|
| 1607 |
+
"table_caption": [
|
| 1608 |
+
"Table 9: Time needed for compression per demonstration set on the WSC task."
|
| 1609 |
+
],
|
| 1610 |
+
"table_footnote": [],
|
| 1611 |
+
"table_body": "<table><tr><td>AutoCompressor</td><td>LLMLingua-2</td><td>Selection-p</td><td>LLMLingua</td></tr><tr><td>22.73</td><td>55.6</td><td>55.6</td><td>55.6</td></tr></table>",
|
| 1612 |
+
"bbox": [
|
| 1613 |
+
531,
|
| 1614 |
+
239,
|
| 1615 |
+
860,
|
| 1616 |
+
281
|
| 1617 |
+
],
|
| 1618 |
+
"page_idx": 11
|
| 1619 |
+
},
|
| 1620 |
+
{
|
| 1621 |
+
"type": "text",
|
| 1622 |
+
"text": "Table 10: End-to-end inference time on the WSC task.",
|
| 1623 |
+
"bbox": [
|
| 1624 |
+
509,
|
| 1625 |
+
291,
|
| 1626 |
+
878,
|
| 1627 |
+
305
|
| 1628 |
+
],
|
| 1629 |
+
"page_idx": 11
|
| 1630 |
+
},
|
| 1631 |
+
{
|
| 1632 |
+
"type": "text",
|
| 1633 |
+
"text": "[Subj] Original Demonstrations:",
|
| 1634 |
+
"text_level": 1,
|
| 1635 |
+
"bbox": [
|
| 1636 |
+
142,
|
| 1637 |
+
105,
|
| 1638 |
+
400,
|
| 1639 |
+
121
|
| 1640 |
+
],
|
| 1641 |
+
"page_idx": 12
|
| 1642 |
+
},
|
| 1643 |
+
{
|
| 1644 |
+
"type": "text",
|
| 1645 |
+
"text": "input: each of the principals has a radically different way of dealing with it. type: objective",
|
| 1646 |
+
"bbox": [
|
| 1647 |
+
142,
|
| 1648 |
+
123,
|
| 1649 |
+
702,
|
| 1650 |
+
154
|
| 1651 |
+
],
|
| 1652 |
+
"page_idx": 12
|
| 1653 |
+
},
|
| 1654 |
+
{
|
| 1655 |
+
"type": "text",
|
| 1656 |
+
"text": "input: well-intentioned though it may be, its soap-opera morality tales have the antiseptic, preprogrammed feel of an after-school special. type: subjective",
|
| 1657 |
+
"bbox": [
|
| 1658 |
+
141,
|
| 1659 |
+
170,
|
| 1660 |
+
858,
|
| 1661 |
+
219
|
| 1662 |
+
],
|
| 1663 |
+
"page_idx": 12
|
| 1664 |
+
},
|
| 1665 |
+
{
|
| 1666 |
+
"type": "text",
|
| 1667 |
+
"text": "input: an astonishing feat for a major star let alone a 27 year old from pickum , south carolina who only two years ago was sleeping in a cardboard box in the back alleys of detroit with her mother , connie , and her uncle clutch , while playing guitar on the streets for spare change .type: objective",
|
| 1668 |
+
"bbox": [
|
| 1669 |
+
141,
|
| 1670 |
+
234,
|
| 1671 |
+
855,
|
| 1672 |
+
299
|
| 1673 |
+
],
|
| 1674 |
+
"page_idx": 12
|
| 1675 |
+
},
|
| 1676 |
+
{
|
| 1677 |
+
"type": "text",
|
| 1678 |
+
"text": "input: may is a young strange girl who had a very disturbed childhood and does not still know the meaning of true friendship or love. type: objective",
|
| 1679 |
+
"bbox": [
|
| 1680 |
+
141,
|
| 1681 |
+
315,
|
| 1682 |
+
855,
|
| 1683 |
+
363
|
| 1684 |
+
],
|
| 1685 |
+
"page_idx": 12
|
| 1686 |
+
},
|
| 1687 |
+
{
|
| 1688 |
+
"type": "text",
|
| 1689 |
+
"text": "[Subj] Compressed demonstrations (10x):",
|
| 1690 |
+
"text_level": 1,
|
| 1691 |
+
"bbox": [
|
| 1692 |
+
142,
|
| 1693 |
+
379,
|
| 1694 |
+
470,
|
| 1695 |
+
395
|
| 1696 |
+
],
|
| 1697 |
+
"page_idx": 12
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"type": "text",
|
| 1701 |
+
"text": "input:-int it may- mor exc lord treasure planet- the ste moments- it thr en a r with he and I crowd gru a-erm own - into impossibly ris gar \"ir wh sh de prere prede it mag m ro philosophvag rede thes v de spcer twz-passer aston fe two with cl for dist and still",
|
| 1702 |
+
"bbox": [
|
| 1703 |
+
141,
|
| 1704 |
+
395,
|
| 1705 |
+
855,
|
| 1706 |
+
444
|
| 1707 |
+
],
|
| 1708 |
+
"page_idx": 12
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"type": "text",
|
| 1712 |
+
"text": "[WSC] Original Demonstrations:",
|
| 1713 |
+
"text_level": 1,
|
| 1714 |
+
"bbox": [
|
| 1715 |
+
142,
|
| 1716 |
+
476,
|
| 1717 |
+
403,
|
| 1718 |
+
491
|
| 1719 |
+
],
|
| 1720 |
+
"page_idx": 12
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"type": "text",
|
| 1724 |
+
"text": "Question: In the sentence \"James asked Robert for a favor but he was refused.\", does the pronoun 'he' refer to Robert? \nAnswer: no",
|
| 1725 |
+
"bbox": [
|
| 1726 |
+
141,
|
| 1727 |
+
493,
|
| 1728 |
+
855,
|
| 1729 |
+
538
|
| 1730 |
+
],
|
| 1731 |
+
"page_idx": 12
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"type": "text",
|
| 1735 |
+
"text": "Question: In the sentence \"What about the time you cut up tulip bulbs in the hamburgers because you thought they were onions?\", does the pronoun 'they' refer to tulip bulbs? Answer: yes",
|
| 1736 |
+
"bbox": [
|
| 1737 |
+
141,
|
| 1738 |
+
556,
|
| 1739 |
+
855,
|
| 1740 |
+
604
|
| 1741 |
+
],
|
| 1742 |
+
"page_idx": 12
|
| 1743 |
+
},
|
| 1744 |
+
{
|
| 1745 |
+
"type": "text",
|
| 1746 |
+
"text": "Question: In the sentence \"When Mr. Bond, the veterinarian, came to look at the black horse that lay groaning on the grass, he felt him all over, and shook his head; one of his legs was broken.\", does the pronoun 'his' refer to the black horse? \nAnswer: no",
|
| 1747 |
+
"bbox": [
|
| 1748 |
+
142,
|
| 1749 |
+
620,
|
| 1750 |
+
855,
|
| 1751 |
+
684
|
| 1752 |
+
],
|
| 1753 |
+
"page_idx": 12
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"type": "text",
|
| 1757 |
+
"text": "Question: In the sentence \"Sam took French classes from Adam, because he was eager to speak it fluently,\" does the pronoun 'he' refer to Adam?",
|
| 1758 |
+
"bbox": [
|
| 1759 |
+
141,
|
| 1760 |
+
701,
|
| 1761 |
+
855,
|
| 1762 |
+
733
|
| 1763 |
+
],
|
| 1764 |
+
"page_idx": 12
|
| 1765 |
+
},
|
| 1766 |
+
{
|
| 1767 |
+
"type": "text",
|
| 1768 |
+
"text": "Answer: no",
|
| 1769 |
+
"bbox": [
|
| 1770 |
+
142,
|
| 1771 |
+
734,
|
| 1772 |
+
231,
|
| 1773 |
+
747
|
| 1774 |
+
],
|
| 1775 |
+
"page_idx": 12
|
| 1776 |
+
},
|
| 1777 |
+
{
|
| 1778 |
+
"type": "text",
|
| 1779 |
+
"text": "[WSC] Compressed demonstrations (10x):",
|
| 1780 |
+
"text_level": 1,
|
| 1781 |
+
"bbox": [
|
| 1782 |
+
142,
|
| 1783 |
+
765,
|
| 1784 |
+
475,
|
| 1785 |
+
781
|
| 1786 |
+
],
|
| 1787 |
+
"page_idx": 12
|
| 1788 |
+
},
|
| 1789 |
+
{
|
| 1790 |
+
"type": "text",
|
| 1791 |
+
"text": "\" pron:: \" tul pron ' tul: he pron ' told P which P. He have pron ' P a the would only Gru une pron pronI put cfr It pron refriger man pronJohn wheng. He very im Wainws d Fol he pron veteran gro his pron the repa pron w t win gro \" he pron '",
|
| 1792 |
+
"bbox": [
|
| 1793 |
+
141,
|
| 1794 |
+
782,
|
| 1795 |
+
855,
|
| 1796 |
+
829
|
| 1797 |
+
],
|
| 1798 |
+
"page_idx": 12
|
| 1799 |
+
},
|
| 1800 |
+
{
|
| 1801 |
+
"type": "text",
|
| 1802 |
+
"text": "Figure 4: Illustration of the compression result by Selection- $p$ for Subj and WSC tasks under $10\\mathrm{x}$ compression rate. Compression is performed with 19 demonstrations for Subj while it is performed with 16 demonstrations for WSC with total sum of about 750 tokens respectively.",
|
| 1803 |
+
"bbox": [
|
| 1804 |
+
114,
|
| 1805 |
+
859,
|
| 1806 |
+
884,
|
| 1807 |
+
903
|
| 1808 |
+
],
|
| 1809 |
+
"page_idx": 12
|
| 1810 |
+
},
|
| 1811 |
+
{
|
| 1812 |
+
"type": "text",
|
| 1813 |
+
"text": "[BANKING77] Original Demonstrations:",
|
| 1814 |
+
"text_level": 1,
|
| 1815 |
+
"bbox": [
|
| 1816 |
+
141,
|
| 1817 |
+
281,
|
| 1818 |
+
468,
|
| 1819 |
+
297
|
| 1820 |
+
],
|
| 1821 |
+
"page_idx": 13
|
| 1822 |
+
},
|
| 1823 |
+
{
|
| 1824 |
+
"type": "text",
|
| 1825 |
+
"text": "Context: Why did using an ATM cause me to be charged an additional fee?",
|
| 1826 |
+
"bbox": [
|
| 1827 |
+
141,
|
| 1828 |
+
298,
|
| 1829 |
+
697,
|
| 1830 |
+
313
|
| 1831 |
+
],
|
| 1832 |
+
"page_idx": 13
|
| 1833 |
+
},
|
| 1834 |
+
{
|
| 1835 |
+
"type": "text",
|
| 1836 |
+
"text": "Answer: cash Withdrawal charge",
|
| 1837 |
+
"bbox": [
|
| 1838 |
+
141,
|
| 1839 |
+
315,
|
| 1840 |
+
394,
|
| 1841 |
+
330
|
| 1842 |
+
],
|
| 1843 |
+
"page_idx": 13
|
| 1844 |
+
},
|
| 1845 |
+
{
|
| 1846 |
+
"type": "text",
|
| 1847 |
+
"text": "Context: I asked for a refund but its not here yet.",
|
| 1848 |
+
"bbox": [
|
| 1849 |
+
141,
|
| 1850 |
+
346,
|
| 1851 |
+
497,
|
| 1852 |
+
362
|
| 1853 |
+
],
|
| 1854 |
+
"page_idx": 13
|
| 1855 |
+
},
|
| 1856 |
+
{
|
| 1857 |
+
"type": "text",
|
| 1858 |
+
"text": "Answer: Refund_not Showing_up",
|
| 1859 |
+
"bbox": [
|
| 1860 |
+
141,
|
| 1861 |
+
363,
|
| 1862 |
+
396,
|
| 1863 |
+
379
|
| 1864 |
+
],
|
| 1865 |
+
"page_idx": 13
|
| 1866 |
+
},
|
| 1867 |
+
{
|
| 1868 |
+
"type": "text",
|
| 1869 |
+
"text": "Context: is there a reason i need to verify top up",
|
| 1870 |
+
"bbox": [
|
| 1871 |
+
141,
|
| 1872 |
+
395,
|
| 1873 |
+
499,
|
| 1874 |
+
411
|
| 1875 |
+
],
|
| 1876 |
+
"page_idx": 13
|
| 1877 |
+
},
|
| 1878 |
+
{
|
| 1879 |
+
"type": "text",
|
| 1880 |
+
"text": "Answer: verify_top_up",
|
| 1881 |
+
"bbox": [
|
| 1882 |
+
141,
|
| 1883 |
+
412,
|
| 1884 |
+
315,
|
| 1885 |
+
426
|
| 1886 |
+
],
|
| 1887 |
+
"page_idx": 13
|
| 1888 |
+
},
|
| 1889 |
+
{
|
| 1890 |
+
"type": "text",
|
| 1891 |
+
"text": "···",
|
| 1892 |
+
"bbox": [
|
| 1893 |
+
141,
|
| 1894 |
+
435,
|
| 1895 |
+
159,
|
| 1896 |
+
441
|
| 1897 |
+
],
|
| 1898 |
+
"page_idx": 13
|
| 1899 |
+
},
|
| 1900 |
+
{
|
| 1901 |
+
"type": "text",
|
| 1902 |
+
"text": "Context: There is a payment on my card that I do not recognize. I've never seen the name on the transaction before.",
|
| 1903 |
+
"bbox": [
|
| 1904 |
+
141,
|
| 1905 |
+
443,
|
| 1906 |
+
853,
|
| 1907 |
+
473
|
| 1908 |
+
],
|
| 1909 |
+
"page_idx": 13
|
| 1910 |
+
},
|
| 1911 |
+
{
|
| 1912 |
+
"type": "text",
|
| 1913 |
+
"text": "Answer: card-payment_not_recognised",
|
| 1914 |
+
"bbox": [
|
| 1915 |
+
141,
|
| 1916 |
+
476,
|
| 1917 |
+
436,
|
| 1918 |
+
491
|
| 1919 |
+
],
|
| 1920 |
+
"page_idx": 13
|
| 1921 |
+
},
|
| 1922 |
+
{
|
| 1923 |
+
"type": "text",
|
| 1924 |
+
"text": "Context: I happened to forget my passcode",
|
| 1925 |
+
"bbox": [
|
| 1926 |
+
141,
|
| 1927 |
+
508,
|
| 1928 |
+
460,
|
| 1929 |
+
523
|
| 1930 |
+
],
|
| 1931 |
+
"page_idx": 13
|
| 1932 |
+
},
|
| 1933 |
+
{
|
| 1934 |
+
"type": "text",
|
| 1935 |
+
"text": "Answer: passcode_forgotten",
|
| 1936 |
+
"bbox": [
|
| 1937 |
+
141,
|
| 1938 |
+
524,
|
| 1939 |
+
354,
|
| 1940 |
+
539
|
| 1941 |
+
],
|
| 1942 |
+
"page_idx": 13
|
| 1943 |
+
},
|
| 1944 |
+
{
|
| 1945 |
+
"type": "text",
|
| 1946 |
+
"text": "Context: I made a cash withdrawal and it is still listed as a pending transaction.",
|
| 1947 |
+
"bbox": [
|
| 1948 |
+
141,
|
| 1949 |
+
556,
|
| 1950 |
+
724,
|
| 1951 |
+
571
|
| 1952 |
+
],
|
| 1953 |
+
"page_idx": 13
|
| 1954 |
+
},
|
| 1955 |
+
{
|
| 1956 |
+
"type": "text",
|
| 1957 |
+
"text": "Answer: pending_cash_withdrawal",
|
| 1958 |
+
"bbox": [
|
| 1959 |
+
141,
|
| 1960 |
+
573,
|
| 1961 |
+
403,
|
| 1962 |
+
587
|
| 1963 |
+
],
|
| 1964 |
+
"page_idx": 13
|
| 1965 |
+
},
|
| 1966 |
+
{
|
| 1967 |
+
"type": "text",
|
| 1968 |
+
"text": "[BANKING77] Compressed demonstrations (10x):",
|
| 1969 |
+
"text_level": 1,
|
| 1970 |
+
"bbox": [
|
| 1971 |
+
141,
|
| 1972 |
+
604,
|
| 1973 |
+
539,
|
| 1974 |
+
619
|
| 1975 |
+
],
|
| 1976 |
+
"page_idx": 13
|
| 1977 |
+
},
|
| 1978 |
+
{
|
| 1979 |
+
"type": "text",
|
| 1980 |
+
"text": "c_with asked ref Refnoting_up_recogn_c wrong_rece_transaction_chargtw unblock activ activ_not_fe收费标准 : ex sho Please revert_ the cardWr: I: pending_: the card.not_recogn: passf:_c",
|
| 1981 |
+
"bbox": [
|
| 1982 |
+
139,
|
| 1983 |
+
621,
|
| 1984 |
+
858,
|
| 1985 |
+
668
|
| 1986 |
+
],
|
| 1987 |
+
"page_idx": 13
|
| 1988 |
+
},
|
| 1989 |
+
{
|
| 1990 |
+
"type": "text",
|
| 1991 |
+
"text": "Figure 5: Illustration of the compression result by Selection- $p$ for BANKING77 under 10x compression rate. Compression is performed with 27 demonstrations with total sum of about 750 tokens.",
|
| 1992 |
+
"bbox": [
|
| 1993 |
+
112,
|
| 1994 |
+
697,
|
| 1995 |
+
884,
|
| 1996 |
+
726
|
| 1997 |
+
],
|
| 1998 |
+
"page_idx": 13
|
| 1999 |
+
}
|
| 2000 |
+
]
|
2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/14d2ceda-5f83-49b4-88b6-f58b5179b8e9_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/14d2ceda-5f83-49b4-88b6-f58b5179b8e9_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69ab15c4e9e38ba25eece21902b740b55158f757bf0a7d8d2f9720780ffb3f8a
|
| 3 |
+
size 537994
|
2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/full.md
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Selection- $p$ : Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability
|
| 2 |
+
|
| 3 |
+
Tsz Ting Chung $^{1}$ Leyang Cui $^{2}$ Lemao Liu $^{2}$ Xinting Huang $^{2}$ Shuming Shi $^{2}$ Dit-Yan Yeung $^{1}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>The Hong Kong University of Science and Technology <sup>2</sup>Tencent AILab {ttchungc, nealcly.nlp, lemaoliu, shuming}@gmail.com timxthuang@tencent.com dyyeung@cse.ust.hk
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Large Language Models (LLMs) have demonstrated impressive capabilities in a wide range of natural language processing tasks when leveraging in-context learning. To mitigate the additional computational and financial costs associated with in-context learning, several prompt compression methods have been proposed to compress the in-context learning prompts. Despite their success, these methods face challenges with transferability due to model-specific compression, or rely on external training data, such as GPT-4. In this paper, we investigate the ability of LLMs to develop a unified compression method that discretizes uninformative tokens, utilizing a self-supervised pre-training technique. By introducing a small number of parameters during the continual pretraining, the proposed Selection- $p$ produces a probability for each input token, indicating whether to preserve or discard it. Experiments show Selection- $p$ achieves state-of-the-art performance across numerous classification tasks, achieving compression rates of up to 10 times while experiencing only a marginal $0.8\%$ decrease in performance. Moreover, it exhibits superior transferability to different models compared to prior work. Additionally, we further analyze how Selection- $p$ helps maintain performance on in-context learning with long contexts.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
In-context learning has shown remarkable success in various natural language processing tasks (Brown et al., 2020), such as classification task (Min et al., 2022), and mathematical reasoning task (Wei et al., 2023), enabling Large Language Models (LLMs) to tackle complex and diverse tasks using only few-shot samples. However, in-context learning also significantly extends the length of prompts, resulting in increased computational and financial costs. Recently, a line of work has been
|
| 14 |
+
|
| 15 |
+
<table><tr><td></td><td>Transferable</td><td>Single Run</td><td>-External</td></tr><tr><td>AutoCompressor</td><td>X</td><td>✓</td><td>✓</td></tr><tr><td>LLMLingua</td><td>✓</td><td>X</td><td>✓</td></tr><tr><td>LLMLingua-2</td><td>✓</td><td>✓</td><td>X</td></tr><tr><td>Selection-p</td><td>✓</td><td>✓</td><td>✓</td></tr></table>
|
| 16 |
+
|
| 17 |
+
Table 1: Comparison between the proposed Selection- $p$ and existing content compression approaches. Selection- $p$ exhibits great transferability (Transferable), does not require multi-round iterative decoding (Single Run), and does not rely on costly external resources for training ( $\neg$ External).
|
| 18 |
+
|
| 19 |
+
focusing on prompt compression, which aims to compress the original prompts while minimizing information loss. They are categorized into discrete compression (Li et al., 2023; Jiang et al., 2023; Pan et al., 2024) and continuous compression (Mu et al., 2023; Chevalier et al., 2023; Ge et al., 2024); the former compresses the context into discrete tokens, while the latter compresses it into a short sequence of continuous vectors.
|
| 20 |
+
|
| 21 |
+
Observing redundant and repetitive content in a given input, discrete compression methods aim to eliminate less informative context without significantly compromising the model's performance. For example, LLM Lingua (Jiang et al., 2023) proposes to perform iterative token truncation based on the content perplexity, requiring multi-round decoding (Jiang et al., 2023). LLM Lingua-2 (Pan et al., 2024), distilled from GPT-4 (OpenAI, 2023), addresses the potential misalignment between entropy and the compression objective, as well as the distribution gap between the perplexity of the compression model and the target model. High costs are still involved in the training data construction. Meanwhile, optimizing the distribution for specific LLMs (GPT-4) may, on the other hand, hinder the transferability of the compressed content to other LLMs. More details are discussed in Section 4.4.
|
| 22 |
+
|
| 23 |
+
Continuous compression (Bulatov et al., 2022;
|
| 24 |
+
|
| 25 |
+
Wingate et al., 2022) teaches pre-trained LMs the ability to compress text into a short sequence of continuous vectors. AutoCompressors (Chevalier et al., 2023) uses an unsupervised learning objective, which motivates the model to cache crucial information within the summary vectors. Despite their success, these methods have poor generalization as they can only compress to the length specified during training. Additionally, since the continuous vector cannot be transferred between models, a separate compressor must be trained for each model.
|
| 26 |
+
|
| 27 |
+
This raises an interesting research question:
|
| 28 |
+
|
| 29 |
+
"Can LLMs learn to identify less informative tokens within a given context without external annotated signals?"
|
| 30 |
+
|
| 31 |
+
To answer this question, we propose a pretraining strategy with a self-supervised signal, which enables the model to autonomously learn to predict the next token based on compressed context. With a small additional number of parameters, a forward pass on the proposed selection- $p$ creates the probability vector $p$ corresponding to each input token, indicating whether to preserve or discard the token. During inference, we can apply the detokenized compressed tokens to any downstream LLMs with only single-turn decoding and without reliance on any costly external resources as depicted in Table 1.
|
| 32 |
+
|
| 33 |
+
The main contributions of this work are fourfold:
|
| 34 |
+
|
| 35 |
+
- We present Selection- $p$ which achieves only $0.8\%$ drops in performance under 10x compression rate across nine traditional classification tasks, surpassing the performance of the existing compression models. Under this setting, a speedup of 5.3x can be achieved during inference with in-context learning.
|
| 36 |
+
- Selection- $p$ demonstrated great transferability, which surpasses the performance of prior work in performing hard compression for both open-source and close-source models.
|
| 37 |
+
- We further analyze how Selection- $p$ helps in in-context learning in long-context settings, presenting a potential solution to address the performance declination of long-context models in ICL.
|
| 38 |
+
- We connect in-domain prior works and make comparisons with these state-of-the-art compression models, providing a complete picture.
|
| 39 |
+
|
| 40 |
+
# 2 Related Work
|
| 41 |
+
|
| 42 |
+
# 2.1 Hard Compression
|
| 43 |
+
|
| 44 |
+
Some studies focus on token pruning (Goyal et al., 2020; Kim and Cho, 2021; Rao et al., 2021; Kim et al., 2022; Modarressi et al., 2022) and token merging (Bolya et al., 2023) but they are designed primarily for smaller models like BERT. More recently, Selective Context (Li et al., 2023) is the first to propose to prune less important tokens based on information entropy. Subsequently, LLMLingua (Jiang et al., 2023) refined the approach by integrating the selection of demonstrations and the allocation of compression budgets for various segments of the input prompt. No training is required in these models but their efficacy in downstream tasks with compression applied to in-context demonstrations remains limited. Pan et al. (2024) extended the idea and addressed the potential misalignment between entropy and the compression objective, leveraging full bidirectional context by training on their proposed GPT-4 distilled compression dataset. Our simple yet effective approaches outperform previous studies.
|
| 45 |
+
|
| 46 |
+
# 2.2 Soft Compression
|
| 47 |
+
|
| 48 |
+
Gist (Mu et al., 2023) is first proposed to compress prompt with soft tokens. Subsequently, Autocompressor (Chevalier et al., 2023) and ICAE (Ge et al., 2024) extend the idea to handle long contexts with different pretraining approaches. ICAE further conducts instruction tuning to enhance model performance. The downstream performance of these models heavily relies on the tuned compression model, with a fixed compression rate. Additionally, retraining is necessary for different versions of LLMs. Compared to these approaches, our work offers greater flexibility and transferability, while simultaneously surpassing the performance of existing compression models.
|
| 49 |
+
|
| 50 |
+
# 3 Methodology
|
| 51 |
+
|
| 52 |
+
Under the intuition that redundant texts often exist and their removal does not hinder human understanding of the text, we assume that LLMs behave in a similar manner. To efficiently identify less informative tokens within a given context, we propose a simple pre-training objective encouraging the model to predict the same token both before and after discarding less informative tokens.
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
Figure 1: Illustration with the training process. Areas in orange are learnable parameters. For the input context $[x_1, x_2, \ldots, x_{n-1}]$ , inference without parameters update is performed first to create the attention mask $\bar{p}$ . These subsequently form the model input for LoRA training and updating the parameters of the additional linear layer.
|
| 56 |
+
|
| 57 |
+
# 3.1 Preliminary
|
| 58 |
+
|
| 59 |
+
Language Model. Given a context $[x_1, x_2, \ldots, x_{n-1}]$ , the objective of the language model is to predict the next token $x_n$ , formed as $P(x_n | x_1, x_2, \ldots, x_{n-1})$ . In case of training with the causal language modeling (CLM) loss, we will have,
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\mathcal {L} _ {\mathrm {C L M}} = - \sum \log P (x _ {i} \mid x _ {1}, x _ {2}, \dots , x _ {i - 1}; \theta)
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
Tokens Selection Models. LLMLingua (Jiang et al., 2023) and its variant (Li et al., 2023; Pan et al., 2024) select tokens according to the computed distribution of the targeted LLM. Specifically, suppose $x_{i}$ is a token in the prompt, if the probability of a token $x_{i}$ is less than a threshold, then the token is selected to be compressed.
|
| 66 |
+
|
| 67 |
+
# 3.2 Selection- $p$
|
| 68 |
+
|
| 69 |
+
Following the tokens selection models (Li et al., 2023; Jiang et al., 2023; Pan et al., 2024), Selection $p$ includes the two steps for testing, i.e. the selection (compression) step and the inference step. In the selection step, unlike LLMLingua and its variant, we instead define a selection model to select
|
| 70 |
+
|
| 71 |
+
less informative tokens within the context in a discriminative way. In the inference step, the tokens selected via the selection model are passed to our targeted inference model.
|
| 72 |
+
|
| 73 |
+
Selection. Assume $p_i \in [0,1]$ denote a measure of the informativeness of token $x_i$ . Theoretically, we can customize a deep neural model to instantiate $p_i$ . In practice, we directly take a pre-trained language model and adopt the last layer of hidden representation $\mathbf{h}^L$ from a pre-trained LM to the new linear projection layer. Formally, suppose $\mathbf{h}^L = \{h_1, h_2, \dots, h_n\}$ denotes the sequence of hidden states for all tokens $x_i$ at the last layer of a pre-trained language model. The selection model $\mathbf{p} = \{p_1, p_2, \dots, p_n\}$ is defined as follows:
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\mathbf {p} = \sigma \left(\mathbf {W h} ^ {L} + b\right) \tag {1}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
where $\sigma$ is the sigmoid function, $\mathbf{W}$ and $b$ are parameters of the projection matrix and bias vector, respectively.
|
| 80 |
+
|
| 81 |
+
By using the selection model $\mathbf{p}$ , it is straightforward to compress the context for inference: we directly prune the corresponding tokens according to our desired compression rate in retaining the top $k\%$ of tokens in the context. To ensure the efficiency in performing compression, a single forward pass on our model creates the token preservation probability for all input tokens for simplicity.
|
| 82 |
+
|
| 83 |
+
Training. Our training criterion for the selection model aims to preserve the language modeling ability of the LLM while also learning to discard tokens effectively. To this end, we employ the self-supervised approach to optimize the selection model and therefore we do not need external resources to train the selection model compared with Pan et al. (2024).
|
| 84 |
+
|
| 85 |
+
To keep the training process consistent with the inference process, we first discretize the selection model $\mathbf{p}$ . Let $\bar{p}_i$ denote the discretized binary model of $p_i$ . In other words, $\bar{p}_i$ is 1 if it ranks the top $k\%$ of tokens with the highest $p$ values and 0 otherwise. Then we use the discretized model as a mask to define the CLM loss function as follows:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\hat {\mathcal {L}} _ {\mathrm {C L M}} = - \sum \log P \left(x _ {i} \mid \bar {p} _ {1} x _ {1}, \dots , \bar {p} _ {i - 1} x _ {i - 1}; \theta\right) \tag {2}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where $\bar{p}_i x_i$ denotes whether the token $x_i$ is masked or not depending on the value of $\bar{p}_i$ , where the above language model $P$ is set as the same model as that used in the selection model in Eq. 1.
|
| 92 |
+
|
| 93 |
+
Training Details for Transferability. One of our goals is to achieve a transferable compression method. Therefore, the parameters that achieve the best loss on the language models in Eq. 1 and Eq. 2 in training may not be transferred to the targeted language model in inference since the language models in training and inference can be different. As a result, to ensure the better transferability of the optimized selection model, we freeze the pre-trained language model in Eq. 1 and employ LoRA (Hu et al., 2021) to train a partial parameter in the language model in Eq. 2. In summary, the CLM-based training loss is illustrated in Figure 1.
|
| 94 |
+
|
| 95 |
+
# 4 Experiment
|
| 96 |
+
|
| 97 |
+
# 4.1 Setting
|
| 98 |
+
|
| 99 |
+
We finetune a LLaMA-2-7b model (Touvron et al., 2023) on 100M tokens from RedPajama (Togeth erAI, 2023) on split segments of 1,024 tokens via LoRA (Hu et al., 2022). To provide a comprehensive analysis of the model capabilities, our evaluation is conducted on traditional classification tasks as well as the long-context classification task.
|
| 100 |
+
|
| 101 |
+
For each task, we randomly sample from the training set to construct the demonstration set for In-Context Learning (ICL), which also serves as our compression target for token selection. During inference, the compression process only needs to be computed once for all subsequent inferences on the testing instances.
|
| 102 |
+
|
| 103 |
+
Traditional Classification Tasks. Following Chevalier et al. (2023), we evaluate and compare different compression models on nine classification tasks, including six tasks from SuperGlue (Wang et al., 2019). The predictions by LLMs are determined by iterating through all possible answer options for the instance and selecting the option with the minimum negative log-likelihood. The in-context demonstrations have been carefully selected to approximate a size of 750 tokens, and the complete demonstration is employed. This is referred to as the "full-shot". Since the average token length for a single demonstration varies for different tasks (e.g., a single demonstration in RTE averages about 75 tokens, resulting in a 10-shot setup under the full-shot setting), the exact number of shots differs depending on the task.
|
| 104 |
+
|
| 105 |
+
To ensure a fair comparison among different compression models, a compression rate of 0.1 is used. For each task, four sets of demonstrations are selected, and the average result across these four trials is presented in Table 2. Additionally, the average accuracy of the nine tasks is presented for a clearer performance comparison.
|
| 106 |
+
|
| 107 |
+
To achieve a compression rate of 0.1, a simpler approach is to directly retain one-tenth of the full-shot demonstration (e.g., using 1-shot instead of 10-shot for the RTE task) instead of performing selection at the token level. We also include this method as a baseline to further demonstrate the effectiveness of our approach.
|
| 108 |
+
|
| 109 |
+
Long Context Classification Tasks. Recent research by Li et al. (2024) shows the failure of in-context learning tasks when applied to long-context scenarios. To investigate whether compression models can serve as a viable solution in long-context settings, we compare Selection- $p$ with long-context models, including LLaMA-2-7B-LongLora (Chen et al., 2023) and Long-LLaMA-code-7B (Tworkowski et al., 2023) on the BANKING77 dataset (Casanueva et al., 2020). The dataset contains 77 classes where traversing all the instances with unique labels requires approximately two thousand tokens. Evaluation is conducted at 2K, 4K, and 7K token levels, and we adopt a compression rate of $10\mathrm{x}$ for Selection- $p$ and LLMingua-2 among all levels. Since the long in-context demonstration is used, chunking is performed for every 2,048 tokens in Selection- $p$ . The compressed results are concatenated together with a space token between each pair of chunks. We again follow the evaluation setting by Chevalier et al. (2023) on the models' prediction, with the result presented in Table 3.
|
| 110 |
+
|
| 111 |
+
# 4.2 Baselines
|
| 112 |
+
|
| 113 |
+
We compare the Selection- $p$ with the following state-of-the-art compression models.
|
| 114 |
+
|
| 115 |
+
- LLMLingua (Jiang et al., 2023) employs an iterative compression algorithm to filter less informative tokens based on the token-level perplexity. To further boost the performance, Jiang et al. (2023) also conducts a budget controller to allocate varying budgets across different demonstrations and questions. We find that there is also a significant discrepancy observed between the prescribed compression rate and the actual compression rate through
|
| 116 |
+
|
| 117 |
+
LLMLingua API calls. For a fair comparison, we exclusively utilize the token-level prompt compression algorithm from LLMLingua in Table 2. We additionally compare LLMLingua with Selection- $p$ equipped with Budget Controller in Section 5.5.
|
| 118 |
+
|
| 119 |
+
- LLMLingua-2 (Pan et al., 2024) is derived from data distillation obtained by instructing GPT-4 to perform compression. Similar to ours, the model is trained as a binary classifier on each token, determining whether each token should be preserved.
|
| 120 |
+
- AutoCompressor (Chevalier et al., 2023) is constructed based on the RMT architecture (Bulatov et al., 2022). It compresses text into summary vectors that can be reused in subsequent segments. It is the only soft compression model adopted for comparison, considering that we followed the experiment setting for assessing the in-context learning ability of LLMs.
|
| 121 |
+
|
| 122 |
+
# 4.3 Evaluation Result
|
| 123 |
+
|
| 124 |
+
Traditional Classification Tasks. None of the compression models can achieve superior performance compared to the full-shot demonstration setting, which is in line with our expectations given the information loss during compression. However, certain tasks show a notable improvement when compared to both the zero-shot and full-shot approaches, e.g., all the hard compression models surpass zero-shot and full-shot by approximately $20\%$ in the WSC task. Among all compression models, Selection- $p$ demonstrates the highest performance in conducting ICL, with an average accuracy of $67.4\%$ across all 10 tasks as presented in Table 2. Examples of in-context demonstration before and after compression are shown in Appendix A. To demonstrate the effectiveness of our model, we have included one-tenth of the original demonstration set as the baseline. Our model significantly outperforms the baseline with a comparable number of tokens, therefore highlighting the effect of performing compression at the token level.
|
| 125 |
+
|
| 126 |
+
Long Context Classification Tasks. Our model outperforms LLaMA-2-7B-LongLora, Long-LLaMA-code-7B and LLMLingua-2 at all token size levels, and achieves similar results to Li et al. (2024)'s findings on the long-context models.
|
| 127 |
+
|
| 128 |
+
In addition, a growing trend with variations is observed with increasing compressed demonstrations, indicating that our model can successfully learn from additional information after compression. Examples of in-context demonstration before and after compression are presented in Appendix A.
|
| 129 |
+
|
| 130 |
+
# 4.4 Transferability
|
| 131 |
+
|
| 132 |
+
Compression is first performed on the demonstration set for ICL with Selection- $p$ . Subsequently, the compressed tokens are passed to a separate downstream model (i.e. LLaMA-2-13B or the black-box models) as the compressed demonstration prompt for evaluation.
|
| 133 |
+
|
| 134 |
+
To LLaMA-2-13B. We follow the same setting of evaluation across different classification tasks in Section 4.3. To assess the transferability of the compression models, we compress demonstrations with Selection- $p$ and input the compressed demonstration tokens into LLaMA-2-13B. In comparing different compression models, since retraining is required for soft compression methods, no results can be obtained for AutoCompressor (Chevalier et al., 2023). In the case of LMLingua, token-level perplexity is calculated with LLaMA-2-13B instead of LLaMaA-2-7B in this experiment.
|
| 135 |
+
|
| 136 |
+
Our approach outperforms all other compression models as shown in Table 4. In addition, a small deviation is observed between the $10\mathrm{x}$ compression rate and the full shot setting, demonstrating the great transferability of our models. Notably, with Selection- $p$ ,the tasks that outperform the full-shot setting in LLaMA-2-7b also exhibit similar patterns in LLaMA-2-13B.
|
| 137 |
+
|
| 138 |
+
To Black-box Models. Taking cost into consideration, we select ChatGPT (OpenAI, 2023) and Gemini (Team, 2023) for evaluation to examine its transferability to LLMs. Traditional classification tasks often have a simple nature and the potential issue of data contamination, leading to high accuracy and causing an insignificant evaluation. Therefore, we use BANKING77 (Casanueva et al., 2020) for evaluation. Following a similar setup as described in Section 4.3, we adopt a token size of 750 for examination. However, in case the compression rate is too high, ChatGPT and Gemini are more likely to deviate from the instructions and provide task-irrelevant responses. Therefore, we adopt a compression rate of $3\mathrm{x}$ and use the EM metric for this experiment given their black-box nature. Note that there may be variation in the result of Gemini
|
| 139 |
+
|
| 140 |
+
<table><tr><td></td><td>Subj</td><td>RTE</td><td>WSC</td><td>BoolQ</td><td>MultiRC</td><td>SST-2</td><td>WIC</td><td>COPA</td><td>AG News</td><td>AVG</td></tr><tr><td>Zero-shot</td><td>49.3</td><td>58.8</td><td>43.4</td><td>67.4</td><td>52.5</td><td>67.7</td><td>50.8</td><td>52.5</td><td>63.3</td><td>56.2</td></tr><tr><td>“One-tenth”-shot</td><td>48.6</td><td>65.3</td><td>52.6</td><td>68.3</td><td>49.2</td><td>84.0</td><td>53.6</td><td>83.9</td><td>55.5</td><td>62.3</td></tr><tr><td>Full-shot</td><td>80.7</td><td>70.7</td><td>41.8</td><td>62.8</td><td>46.8</td><td>92.5</td><td>56.4</td><td>85.6</td><td>76.3</td><td>68.2</td></tr><tr><td>AutoCompressor</td><td>57.9</td><td>56.1</td><td>39.4</td><td>66.5</td><td>51.8</td><td>92.8</td><td>53.0</td><td>84.4</td><td>80.9</td><td>64.7</td></tr><tr><td>LLMLingua</td><td>56.7</td><td>60.9</td><td>63.0</td><td>69.4</td><td>50.3</td><td>69.9</td><td>51.6</td><td>76.4</td><td>61.5</td><td>62.2</td></tr><tr><td>LLMLingua-2</td><td>57.3</td><td>67.8</td><td>63.7</td><td>69.8</td><td>52.8</td><td>66.2</td><td>50.3</td><td>71.4</td><td>61.9</td><td>62.3</td></tr><tr><td>Selection-p</td><td>68.5</td><td>68.5</td><td>61.1</td><td>69.7</td><td>54.4</td><td>90.7</td><td>50.3</td><td>76.9</td><td>66.8</td><td>67.4</td></tr></table>
|
| 141 |
+
|
| 142 |
+
Table 2: Evaluation result on traditional classification tasks. Four sets of random demonstrations were selected, with the average result being presented. The average result across different classification tasks is presented under AVG.
|
| 143 |
+
|
| 144 |
+
<table><tr><td></td><td>2K</td><td>4K</td><td>7K</td></tr><tr><td>LLaMA-2-7B-LongLora</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>Long-LLaMA-code-7B</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>LLMlingua-2</td><td>41.2</td><td>31.6</td><td>35.2</td></tr><tr><td>Selection-p</td><td>46.9</td><td>50.9</td><td>51.6</td></tr></table>
|
| 145 |
+
|
| 146 |
+
Table 3: Evaluation result on BANKING77 with increasing in-content demonstrations tokens length.
|
| 147 |
+
|
| 148 |
+
since the discrete compressed tokens sometimes trigger the SAFETY error. The prompt used is presented in Appendix B.
|
| 149 |
+
|
| 150 |
+
Though the performance of our model still deviates from the full-shot setting, it achieved the best performance compared to the existing works as presented in Table 4, demonstrating fair transferability even in LLMs like ChatGPT. Surprisingly, though LLM Lingua-2 is distilled from GPT-4, it exhibits poor generalization compared to other compression models.
|
| 151 |
+
|
| 152 |
+
# 5 Analysis
|
| 153 |
+
|
| 154 |
+
# 5.1 Flexibility
|
| 155 |
+
|
| 156 |
+
Performance with Different Number of Initial Tokens. The result in long context classification tasks in Section 4.3 shows the effectiveness of chunk-wise compression in long context. We further analyze if compression models work well in normal few-shot settings in classification tasks. In this experiment, the in-context demonstrations are selected with an approximate size of 250 tokens. The comparison to the result with the token size of 750 in Section 4.3 is presented in Table 6.
|
| 157 |
+
|
| 158 |
+
Selection- $p$ shows the best performance under the constraint of 250 tokens when compared to other compression models. Additionally, it also follows the full-shot (i.e. 750 tokens level) trend, the average performance across all classification
|
| 159 |
+
|
| 160 |
+
tasks increases along with the number of provided demonstrations. On the contrary, other compression models didn't achieve an improvement in accuracy with more demonstrations. For instance, there is a drop of $2\%$ recorded with an additional 500 tokens of information for AutoCompressor.
|
| 161 |
+
|
| 162 |
+
# 5.2 Latency Analysis
|
| 163 |
+
|
| 164 |
+
We analyze end-to-end latency on A100-80G GPU with the WSC task, illustrated in Table 7. Our method can achieve $5.3\mathrm{x}$ speed up on $10\mathrm{x}$ compressed in-context demonstration. Compared to the inference time, negligible time is required for compression on the ICL task setting, demonstrating high efficiency in adopting our models for compression. We also compared LLMLingua with the disabled content Budget Controller. It requires iterative decoding on the segmented context while Selection- $p$ only requires a single inference on all tokens and demonstrates a good performance.
|
| 165 |
+
|
| 166 |
+
# 5.3 Correlation with Attention and Perplexity
|
| 167 |
+
|
| 168 |
+
With the $p$ -value ranging between 0 and 1 for each token, we further study whether any correlations exist among $p$ , the mean attention value during the forward pass, and the tokens level perplexity (i.e. a core component in LLMLingua (Jiang et al., 2023)). Since the value of $p$ is derived from the last hidden state of the model, we only consider the last layer mean attention of our tuned model. We employed Spearman's Rank Correlation Coefficient (Spearman, 1904) to compute the correlation between the three variables. It is calculated for different traditional classification tasks and the averaged value across tasks. The result presented in Figure 2 indicates only a weak correlation observed between the $p$ value and the other two variables while the correlation between the last layer mean attention and perplexity is more significant. Among all tasks,
|
| 169 |
+
|
| 170 |
+
<table><tr><td></td><td colspan="10">LLaMA-2-13B</td></tr><tr><td></td><td>Subj</td><td>RTE</td><td>WSC</td><td>BoolQ</td><td>MultiRC</td><td>SST-2</td><td>WIC</td><td>COPA</td><td>AG News</td><td>AVG</td></tr><tr><td>Full-shot</td><td>91.6</td><td>74.8</td><td>46.9</td><td>67.7</td><td>45.7</td><td>94.7</td><td>54.6</td><td>77.6</td><td>79.2</td><td>70.3</td></tr><tr><td>LLMingua</td><td>53.6</td><td>61.0</td><td>63.2</td><td>70.6</td><td>51.5</td><td>64.3</td><td>50.0</td><td>78.1</td><td>58.0</td><td>61.4</td></tr><tr><td>LLMingua-2</td><td>48.3</td><td>68.7</td><td>41.3</td><td>75.8</td><td>52.2</td><td>51.3</td><td>49.0</td><td>48.2</td><td>71.1</td><td>56.2</td></tr><tr><td>Selection-p</td><td>69.3</td><td>69.5</td><td>65.4</td><td>74.7</td><td>50.7</td><td>81.1</td><td>50.5</td><td>87.5</td><td>63.2</td><td>68.0</td></tr></table>
|
| 171 |
+
|
| 172 |
+
Table 4: Analysis of transferability to open-source model LLaMA-2-13B. The experiment is performed on 750 tokens in-context demonstrations with a 10x compression rate.
|
| 173 |
+
|
| 174 |
+
<table><tr><td></td><td>ChatGPT
|
| 175 |
+
GPT-3.5-Turbo</td><td>Gemini
|
| 176 |
+
Gemini-1.0-Pro</td></tr><tr><td>Full-shot</td><td>74.2</td><td>73.3</td></tr><tr><td>LLMlingua</td><td>58.6</td><td>40.2</td></tr><tr><td>LLMlingua-2</td><td>55.7</td><td>51.9</td></tr><tr><td>Selection-p</td><td>62.9</td><td>58.9</td></tr></table>
|
| 177 |
+
|
| 178 |
+
Table 5: Analysis of transferability to blackbox models (i.e. ChatGPT and Gemini). The experiment is performed on 750 tokens in-context demonstrations with a 3x compression rate.
|
| 179 |
+
|
| 180 |
+
WIC demonstrates a prominently high value compared to others, this may explain the small variation in accuracy across different compression models and different experimental settings.
|
| 181 |
+
|
| 182 |
+
# 5.4 Tokens Level Part-of-Speech Analysis
|
| 183 |
+
|
| 184 |
+
To further interpret the rationale behind our compression models, we analyze what kinds of words are likely preserved by Selection- $p$ . Under the discreteness of our compression result, we locate the corresponding words from the compressed tokens and obtain the Part-of-Speech (PoS) tags with an NLTK tagger. For each type of PoS tag, we compute the token preservation percentage with
|
| 185 |
+
|
| 186 |
+
$$
|
| 187 |
+
\frac {\left| \text {c o m p r e s s e d} _ {t} \text {k o t e n} _ {\text {t a g} _ {i}} \right|}{\left| \text {t o t a l} _ {t} \text {t o k e n} _ {\text {t a g} _ {i}} \right|}
|
| 188 |
+
$$
|
| 189 |
+
|
| 190 |
+
for each PoS tag $\mathrm{tag}_{i}$ . The experiment is conducted between the compressed result and the original demonstrations among the nine traditional classification tasks with four demonstration sets per task. We analyze tags with a frequency of appearance greater than $1\%$ .
|
| 191 |
+
|
| 192 |
+
From the result presented in Figure 3, PRP and punctuations (i.e. indicating the start of the next sentence or phrase) are more likely preserved. The potential reason for the high preservation ratio on PRP (personal pronoun) likely corresponds to the pronoun resolution task of WSC. Under the task
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
Figure 2: Spearman's Rank Correlation Coefficient (spearmanr) between $p$ (p) value, mean attention (a) and token-level perplexity (ppl) across different traditional classification tasks.
|
| 196 |
+
|
| 197 |
+
setting, it can be useful hints for the answer derivation.
|
| 198 |
+
|
| 199 |
+
The high preservation ratio of punctuation may indicate a large redundancy in a sentence, and truncating sentence separation tokens is undesirable. Additionally, as highlighted by Wang et al. (2023), formatting information (i.e. structure of the demonstrations) matters a lot in in-context learning. However, formatting tokens (i.e. “:”) are unlikely to be preserved with Selection- $p$ compared to the original distribution in our case. In general, we also observe a higher degree of preservation of noun phrases compared to verbs.
|
| 200 |
+
|
| 201 |
+
# 5.5 On Fair Comparison with LLMLingua
|
| 202 |
+
|
| 203 |
+
As described in Section 4.2, LLMLingua conducts demonstration selection prior to compression at the token level, while other methods compress directly on the token level. Since the demonstration selection process can also be incorporated into other
|
| 204 |
+
|
| 205 |
+
<table><tr><td></td><td>Subj</td><td>RTE</td><td>WSC</td><td>BoolQ</td><td>MultiRC</td><td>SST-2</td><td>WIC</td><td>COPA</td><td>AG News</td><td>AVG</td></tr><tr><td>Zero-shot</td><td>49.3</td><td>58.8</td><td>43.4</td><td>67.4</td><td>52.5</td><td>67.7</td><td>50.8</td><td>52.5</td><td>63.3</td><td>56.2</td></tr><tr><td>Full-shot</td><td>81.3</td><td>69.9</td><td>51.2</td><td>62.7</td><td>46.8</td><td>89.3</td><td>51.8</td><td>85.1</td><td>67.9</td><td>67.3</td></tr><tr><td>ΔFull-shot</td><td>-0.6</td><td>+0.8</td><td>-9.4</td><td>+0.1</td><td>±0</td><td>+3.2</td><td>+4.6</td><td>+0.5</td><td>+8.4</td><td>+0.9</td></tr><tr><td>AutoCompressor</td><td>56.2</td><td>61.5</td><td>44.2</td><td>68.3</td><td>52.7</td><td>93.0</td><td>51.5</td><td>83.6</td><td>76.1</td><td>65.2</td></tr><tr><td>ΔAutoCompressor</td><td>+1.7</td><td>-5.4</td><td>-4.8</td><td>-1.8</td><td>-0.9</td><td>-0.2</td><td>+1.5</td><td>+0.8</td><td>+4.8</td><td>-0.5</td></tr><tr><td>LLMLingua*</td><td>55.6</td><td>61.4</td><td>61.3</td><td>68.2</td><td>53.1</td><td>81.1</td><td>50.2</td><td>75.8</td><td>70.9</td><td>64.2</td></tr><tr><td>ΔLLMLingua</td><td>+1.1</td><td>-0.5</td><td>+1.7</td><td>+1.2</td><td>-2.8</td><td>-11.2</td><td>+1.4</td><td>+0.6</td><td>-9.4</td><td>-2.0</td></tr><tr><td>LLMLingua-2</td><td>52.4</td><td>65.3</td><td>63.9</td><td>66.1</td><td>50.9</td><td>82.9</td><td>50.8</td><td>77.8</td><td>56.3</td><td>62.9</td></tr><tr><td>ΔLLMLingua-2</td><td>+4.9</td><td>+2.5</td><td>-0.2</td><td>+3.7</td><td>+1.9</td><td>-16.7</td><td>-0.5</td><td>-6.4</td><td>+5.6</td><td>-0.6</td></tr><tr><td>Selection-p</td><td>65.7</td><td>65.5</td><td>58.7</td><td>67.5</td><td>54.3</td><td>81.3</td><td>50.4</td><td>77.9</td><td>68.3</td><td>65.5</td></tr><tr><td>ΔSelection-p</td><td>+2.8</td><td>+3.0</td><td>+2.4</td><td>+2.3</td><td>+0.1</td><td>+9.4</td><td>-0.1</td><td>-1.0</td><td>-1.5</td><td>+1.9</td></tr></table>
|
| 206 |
+
|
| 207 |
+
Table 6: Performance with different number of demonstrations from about 250 tokens to about 750 tokens. $\Delta$ refers to the performance enhancement that can be achieved by increasing the demonstration tokens size to 750.
|
| 208 |
+
|
| 209 |
+
<table><tr><td></td><td>1x</td><td>2x</td><td>5x</td><td>10x</td></tr><tr><td>End-to-End without compression</td><td>298.6</td><td></td><td></td><td></td></tr><tr><td>End-to-End with Selection-p</td><td></td><td>167.0 (1.8x)</td><td>81.6 (3.7x)</td><td>55.6 (5.3x)</td></tr><tr><td>LLMLingua per demonstrations set</td><td>-</td><td>0.82</td><td>0.82</td><td>0.81</td></tr><tr><td>Selection-p per demonstrations set</td><td>-</td><td>0.68</td><td>0.67</td><td>0.67</td></tr></table>
|
| 210 |
+
|
| 211 |
+
compression models, we only utilize the modified version of LLMLingua in the previous experiments to ensure a fair comparison.
|
| 212 |
+
|
| 213 |
+
In this section, we further analyze the performance by comparing our proposed method, equipped with the Budget Controller, with the whole LLMLingua to provide a comprehensive analysis. We follow the setting described in Section 4.3 and select the WSC task for our experiment. To illustrate, in the original demonstration set consisting of 16 demonstrations, the LLMLingua API retains only four demonstrations. This leads to two options with Selection- $p$ : (1) continuously applying the $10\mathrm{x}$ compression directly to the filtered set of four demonstrations and resulting in a final compression rate of $38\mathrm{x}$ , and (2) adjusting the compression rate of Selection- $p$ to achieve a final compression rate of $10\mathrm{x}$ .
|
| 214 |
+
|
| 215 |
+
The result presented in Table 8 demonstrates the significant impact of the Budget Controller. Similar trends in performance for both Selection- $p$ and LLMLingua are observed (i.e., a decrease in performance on the WSC task). Notably, the performance of Selection- $p$ surpasses LLMLingua after equipping with the Budget Controller.
|
| 216 |
+
|
| 217 |
+
Table 7: Latency(s) comparison on WSC in 750 tokens level with about 16 demonstrations. We present the averaged complete end-to-end inference with and without Selection- $p$ among four sets of demonstrations. Comparison is conducted with LLMLingua which also builds upon the LLaMA-2-7B backbone, with the averaged compression time of the in-context demonstrations being presented.
|
| 218 |
+
|
| 219 |
+
<table><tr><td></td><td>WSC</td><td>rate</td></tr><tr><td>Selection-p</td><td>61.1</td><td>10x</td></tr><tr><td>LLMLingua</td><td>63.0</td><td>10x</td></tr><tr><td>Selection-p (+ Budget Controller)</td><td>47.6</td><td>10x</td></tr><tr><td>Selection-p (+ Budget Controller)</td><td>57.0</td><td>38x</td></tr><tr><td>LLMLingua (whole)</td><td>44.7</td><td>10x</td></tr></table>
|
| 220 |
+
|
| 221 |
+
Table 8: Comparison with LLMLingua on Budget Controller. Adopting different strategies in equipping Selection- $p$ with Budget Controller, leads to the two different compression rates (rate) of ${10}\mathrm{x}$ and ${38}\mathrm{x}$ .
|
| 222 |
+
|
| 223 |
+
Furthermore, there is a disparity between the instructed compression rate and the actual compression rate in LLMLingua. The target size for compressed tokens is 75, while LLMLingua typically achieves an average compressed token size of around 192.1, which is more than 1.5 times higher than the desired rate across all classification tasks.
|
| 224 |
+
|
| 225 |
+
# 6 Conclusion
|
| 226 |
+
|
| 227 |
+
We introduce a simple yet effective self-supervised approach in context compression and conduct evaluation across 10 classification tasks in both few-shot and long-context settings. Our approach also demonstrated great transferability to both the open-
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
Figure 3: Analysis of the token preservation percentage with respect to different types of Part-of-Speech tags under $10\mathrm{x}$ compression rate.
|
| 231 |
+
|
| 232 |
+
source (i.e. LLaMA-2-13B) and black-box models (i.e. ChatGPT and Gemini), with performance surpassing the existing state-of-the-art compression models. Analysis is also conducted among different compression rates and demonstration lengths. With a 10x compression rate, our model only shows a 0.8-point drop in performance across different traditional classification tasks with a 5.3x speedup. Through experiments in long-context settings, our work also presents the possibility of addressing the in-context learning issue of the recent long-context models. Both efficiency enhancement as well as performance preservation are shown in our model.
|
| 233 |
+
|
| 234 |
+
Acknowledgement This research has been made possible by the Hong Kong PhD Fellowship provided to Tsz Ting Chung and the Research Impact Fund project R6003-21 provided by the Research Grants Council of Hong Kong to Dit-Yan Yeung.
|
| 235 |
+
|
| 236 |
+
# Limitations
|
| 237 |
+
|
| 238 |
+
Under the consideration of cost, we did not perform further analysis on other LLMs apart from ChatGPT and Gemini. In addition, our model which builds up LLaMA-2-7B does not achieve better latency than models like LLMLingua-2 and AutoCompressor. Under the ICL setting, minimal time is required for compression, leading to insignificance in end-to-end inference time. While AutoCompressor offers better latency, its soft compression nature limits its applicability to other LLMs. Overall, our experiments across various tasks and settings demonstrate better performance and transferability, with the benefits outweighing the latency issue.
|
| 239 |
+
|
| 240 |
+
# References
|
| 241 |
+
|
| 242 |
+
Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, Christoph Feichtenhofer, and Judy Hoffman. 2023. Token merging: Your vit but faster. In The
|
| 243 |
+
|
| 244 |
+
Eleventh International Conference on Learning Representations.
|
| 245 |
+
|
| 246 |
+
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual.
|
| 247 |
+
|
| 248 |
+
Aydar Bulatov, Yuri Kuratov, and Mikhail Burtsev. 2022. Recurrent memory transformer. In Advances in Neural Information Processing Systems.
|
| 249 |
+
|
| 250 |
+
Inigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić. 2020. Efficient intent detection with dual sentence encoders. In Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI, pages 38-45, Online. Association for Computational Linguistics.
|
| 251 |
+
|
| 252 |
+
Yukang Chen, Shengju Qian, Haotian Tang, Xin Lai, Zhijian Liu, Song Han, and Jiaya Jia. 2023. Longlora: Efficient fine-tuning of long-context large language models. ArXiv preprint, abs/2309.12307.
|
| 253 |
+
|
| 254 |
+
Alexis Chevalier, Alexander Wettig, Anirudh Ajith, and Danqi Chen. 2023. Adapting language models to compress contexts. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3829-3846, Singapore. Association for Computational Linguistics.
|
| 255 |
+
|
| 256 |
+
Tao Ge, Hu Jing, Lei Wang, Xun Wang, Si-Qing Chen, and Furu Wei. 2024. In-context autoencoder for context compression in a large language model. In The Twelfth International Conference on Learning Representations.
|
| 257 |
+
|
| 258 |
+
Saurabh Goyal, Anamitra Roy Choudhury, Saurabh Raje, Venkatesan T. Chakaravarthy, Yogish Sabharwal, and Ashish Verma. 2020. Power-bert: Accelerating BERT inference via progressive word-vector
|
| 259 |
+
|
| 260 |
+
elimination. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 3690-3699. PMLR.
|
| 261 |
+
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685.
|
| 262 |
+
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. Lora: Low-rank adaptation of large language models. In *The Tenth International Conference on Learning Representations*, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
|
| 263 |
+
Huiqiang Jiang, Qianhui Wu, Chin-Yew Lin, Yuqing Yang, and Lili Qiu. 2023. LLMLingua: Compressing prompts for accelerated inference of large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 13358-13376, Singapore. Association for Computational Linguistics.
|
| 264 |
+
Gyuwan Kim and Kyunghyun Cho. 2021. Length-adaptive transformer: Train once with length drop, use anytime with search. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 6501-6511, Online. Association for Computational Linguistics.
|
| 265 |
+
Sehoon Kim, Sheng Shen, David Thorsley, Amir Gholami, Woosuk Kwon, Joseph Hassoun, and Kurt Keutzer. 2022. Learned token pruning for transformers.
|
| 266 |
+
Tianle Li, Ge Zhang, Quy Duc Do, Xiang Yue, and Wenhu Chen. 2024. Long-context llms struggle with long in-context learning.
|
| 267 |
+
Yucheng Li, Bo Dong, Frank Guerin, and Chenghua Lin. 2023. Compressing context to enhance inference efficiency of large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 6342-6353, Singapore. Association for Computational Linguistics.
|
| 268 |
+
Sewon Min, Mike Lewis, Hannaneh Hajishirzi, and Luke Zettlemoyer. 2022. Noisy channel language model prompting for few-shot text classification. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5316-5330, Dublin, Ireland. Association for Computational Linguistics.
|
| 269 |
+
Ali Modarressi, Hosein Moebbi, and Mohammad Taher Pilehvar. 2022. AdapLeR: Speeding up inference by adaptive length reduction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1-15, Dublin, Ireland. Association for Computational Linguistics.
|
| 270 |
+
|
| 271 |
+
Jesse Mu, Xiang Li, and Noah Goodman. 2023. Learning to compress prompts with gist tokens. In Advances in Neural Information Processing Systems, volume 36, pages 19327-19352. Curran Associates, Inc.
|
| 272 |
+
OpenAI. 2023. GPT-4 technical report. ArXiv preprint, abs/2303.08774.
|
| 273 |
+
Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Menglin Xia, Xufang Luo, Jue Zhang, Qingwei Lin, Victor Ruhle, Yuqing Yang, Chin-Yew Lin, H. Vicky Zhao, Lili Qiu, and Dongmei Zhang. 2024. Llmlingua-2: Data distillation for efficient and faithful task-agnostic prompt compression.
|
| 274 |
+
Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu, Jie Zhou, and Cho-Jui Hsieh. 2021. Dynamicvit: Efficient vision transformers with dynamic token sparsification. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pages 13937-13949.
|
| 275 |
+
C. Spearman. 1904. The proof and measurement of association between two things. American Journal of Psychology, 15:88-103.
|
| 276 |
+
Gemini Team. 2023. Gemini: A family of highly capable multimodal models.
|
| 277 |
+
TogetherAI. 2023. Redpajama: An open dataset for training large language models.
|
| 278 |
+
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models.
|
| 279 |
+
Szymon Tworkowski, Konrad Staniszewski, Mikołaj Pacek, Yuhuai Wu, Henryk Michalewski, and Piotr Miłos. 2023. Focused transformer: Contrastive training for context scaling.
|
| 280 |
+
Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019. Superglue: A stickier benchmark for general-purpose language understanding systems. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 3261-3275.
|
| 281 |
+
Lean Wang, Lei Li, Damai Dai, Deli Chen, Hao Zhou, Fandong Meng, Jie Zhou, and Xu Sun. 2023. Label words are anchors: An information flow perspective for understanding in-context learning. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 9840-9855, Singapore. Association for Computational Linguistics.
|
| 282 |
+
|
| 283 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. 2023. Chain-of-thought prompting elicits reasoning in large language models.
|
| 284 |
+
David Wingate, Mohammad Shoeybi, and Taylor Sorensen. 2022. Prompt compression and contrastive conditioning for controllability and toxicity reduction in language models. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 5621-5634, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 285 |
+
|
| 286 |
+
# A Examples Illustration of Compression Results
|
| 287 |
+
|
| 288 |
+
Figure 4 shows examples of two traditional classification tasks (i.e. Subj and WSC) with Selection- $p$ under $10\mathrm{x}$ compression, displaying both the compressed results and the original demonstration sets before compression. Additionally, Figure 5 illustrates an example for BANKING77 under $10\mathrm{x}$ compression.
|
| 289 |
+
|
| 290 |
+
# B Prompt of Evaluation on BANKING77
|
| 291 |
+
|
| 292 |
+
In our prompt to ChatGPT, we first list out all 77 labels and then provide a list of demonstrations. The template is detailed below,
|
| 293 |
+
|
| 294 |
+
Answer in activate_my_card or age_limit or apple_pay_or_google_pay or atm_support or automatic_top_up or balance_not UPDATED_after_bank_transfer or ... or wrong_amount_of_cash_received or wrong_exchange_rate_for_cash_withdrawal.
|
| 295 |
+
|
| 296 |
+
Context: <context>
|
| 297 |
+
|
| 298 |
+
Answer: <answer>
|
| 299 |
+
|
| 300 |
+
# C Training Details
|
| 301 |
+
|
| 302 |
+
We use LLaMA-2-7B for compression (i.e. token selection). It takes roughly 50 hours on a single A100 GPU to train on 100M tokens from RedPajama.
|
| 303 |
+
|
| 304 |
+
# D Detailed Latency Analysis
|
| 305 |
+
|
| 306 |
+
For the token-based compression models, the time needed for compression per demonstration set on the WSC task is presented in Table 9.
|
| 307 |
+
|
| 308 |
+
<table><tr><td>LLMLingua-2</td><td>Selection-p</td><td>LLMLingua</td></tr><tr><td>0.15</td><td>0.67</td><td>0.81</td></tr></table>
|
| 309 |
+
|
| 310 |
+
Under the ICL setting, the same demonstration set is used consistently, and compression on the demonstration set only needs to be computed once for all subsequent inferences. This contributed to the short compression time in the complete end-to-end process.
|
| 311 |
+
|
| 312 |
+
Considering that the time taken for compression on the demonstration set is negligible when compared to the time required for inference (approximately at a ratio of 0.01), the end-to-end inference time for the token-selection-based compression models is roughly the same. The end-to-end inference time result for the WSC task on LLaMA2-7B is shown in Table 10. The table is presented in order of the inference time for clarity.
|
| 313 |
+
|
| 314 |
+
Table 9: Time needed for compression per demonstration set on the WSC task.
|
| 315 |
+
|
| 316 |
+
<table><tr><td>AutoCompressor</td><td>LLMLingua-2</td><td>Selection-p</td><td>LLMLingua</td></tr><tr><td>22.73</td><td>55.6</td><td>55.6</td><td>55.6</td></tr></table>
|
| 317 |
+
|
| 318 |
+
Table 10: End-to-end inference time on the WSC task.
|
| 319 |
+
|
| 320 |
+
# [Subj] Original Demonstrations:
|
| 321 |
+
|
| 322 |
+
input: each of the principals has a radically different way of dealing with it. type: objective
|
| 323 |
+
|
| 324 |
+
input: well-intentioned though it may be, its soap-opera morality tales have the antiseptic, preprogrammed feel of an after-school special. type: subjective
|
| 325 |
+
|
| 326 |
+
input: an astonishing feat for a major star let alone a 27 year old from pickum , south carolina who only two years ago was sleeping in a cardboard box in the back alleys of detroit with her mother , connie , and her uncle clutch , while playing guitar on the streets for spare change .type: objective
|
| 327 |
+
|
| 328 |
+
input: may is a young strange girl who had a very disturbed childhood and does not still know the meaning of true friendship or love. type: objective
|
| 329 |
+
|
| 330 |
+
# [Subj] Compressed demonstrations (10x):
|
| 331 |
+
|
| 332 |
+
input:-int it may- mor exc lord treasure planet- the ste moments- it thr en a r with he and I crowd gru a-erm own - into impossibly ris gar "ir wh sh de prere prede it mag m ro philosophvag rede thes v de spcer twz-passer aston fe two with cl for dist and still
|
| 333 |
+
|
| 334 |
+
# [WSC] Original Demonstrations:
|
| 335 |
+
|
| 336 |
+
Question: In the sentence "James asked Robert for a favor but he was refused.", does the pronoun 'he' refer to Robert?
|
| 337 |
+
Answer: no
|
| 338 |
+
|
| 339 |
+
Question: In the sentence "What about the time you cut up tulip bulbs in the hamburgers because you thought they were onions?", does the pronoun 'they' refer to tulip bulbs? Answer: yes
|
| 340 |
+
|
| 341 |
+
Question: In the sentence "When Mr. Bond, the veterinarian, came to look at the black horse that lay groaning on the grass, he felt him all over, and shook his head; one of his legs was broken.", does the pronoun 'his' refer to the black horse?
|
| 342 |
+
Answer: no
|
| 343 |
+
|
| 344 |
+
Question: In the sentence "Sam took French classes from Adam, because he was eager to speak it fluently," does the pronoun 'he' refer to Adam?
|
| 345 |
+
|
| 346 |
+
Answer: no
|
| 347 |
+
|
| 348 |
+
# [WSC] Compressed demonstrations (10x):
|
| 349 |
+
|
| 350 |
+
" pron:: " tul pron ' tul: he pron ' told P which P. He have pron ' P a the would only Gru une pron pronI put cfr It pron refriger man pronJohn wheng. He very im Wainws d Fol he pron veteran gro his pron the repa pron w t win gro " he pron '
|
| 351 |
+
|
| 352 |
+
Figure 4: Illustration of the compression result by Selection- $p$ for Subj and WSC tasks under $10\mathrm{x}$ compression rate. Compression is performed with 19 demonstrations for Subj while it is performed with 16 demonstrations for WSC with total sum of about 750 tokens respectively.
|
| 353 |
+
|
| 354 |
+
# [BANKING77] Original Demonstrations:
|
| 355 |
+
|
| 356 |
+
Context: Why did using an ATM cause me to be charged an additional fee?
|
| 357 |
+
|
| 358 |
+
Answer: cash Withdrawal charge
|
| 359 |
+
|
| 360 |
+
Context: I asked for a refund but its not here yet.
|
| 361 |
+
|
| 362 |
+
Answer: Refund_not Showing_up
|
| 363 |
+
|
| 364 |
+
Context: is there a reason i need to verify top up
|
| 365 |
+
|
| 366 |
+
Answer: verify_top_up
|
| 367 |
+
|
| 368 |
+
···
|
| 369 |
+
|
| 370 |
+
Context: There is a payment on my card that I do not recognize. I've never seen the name on the transaction before.
|
| 371 |
+
|
| 372 |
+
Answer: card-payment_not_recognised
|
| 373 |
+
|
| 374 |
+
Context: I happened to forget my passcode
|
| 375 |
+
|
| 376 |
+
Answer: passcode_forgotten
|
| 377 |
+
|
| 378 |
+
Context: I made a cash withdrawal and it is still listed as a pending transaction.
|
| 379 |
+
|
| 380 |
+
Answer: pending_cash_withdrawal
|
| 381 |
+
|
| 382 |
+
# [BANKING77] Compressed demonstrations (10x):
|
| 383 |
+
|
| 384 |
+
c_with asked ref Refnoting_up_recogn_c wrong_rece_transaction_chargtw unblock activ activ_not_fe收费标准 : ex sho Please revert_ the cardWr: I: pending_: the card.not_recogn: passf:_c
|
| 385 |
+
|
| 386 |
+
Figure 5: Illustration of the compression result by Selection- $p$ for BANKING77 under 10x compression rate. Compression is performed with 27 demonstrations with total sum of about 750 tokens.
|
2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1925fa8a83bf72e64826a8a441eaa0aa3c6167b494492cefd60b76733b96f82b
|
| 3 |
+
size 379446
|
2024/Selection-p_ Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/bcc9d306-7f45-4b34-b97c-c05fad825ac3_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/bcc9d306-7f45-4b34-b97c-c05fad825ac3_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/bcc9d306-7f45-4b34-b97c-c05fad825ac3_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:458af176634060dbb2f5d103ad0992d7420a17fff7251f4f001b66b9a9581ac7
|
| 3 |
+
size 2073643
|
2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/full.md
ADDED
|
@@ -0,0 +1,439 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Selective Annotation via Data Allocation: These Data Should Be Triaged to Experts for Annotation Rather Than the Model
|
| 2 |
+
|
| 3 |
+
Chen Huang\*, Yang Deng\*, Wenqiang Lei\*, Jiancheng Lv\*, Ido Dagan
|
| 4 |
+
|
| 5 |
+
$\spadesuit$ Sichuan University Singapore Management University Bar-Ilan University
|
| 6 |
+
|
| 7 |
+
Engineering Research Center of Machine Learning and Industry Intelligence, Ministry of Education, China
|
| 8 |
+
|
| 9 |
+
huangc.scu@gmail.com ydeng@smu.edu.sg
|
| 10 |
+
|
| 11 |
+
{wenqianglei, lvjiancheng} @scu.edu.cn dagan@cs.biu.ac.il
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
To obtain high-quality annotations under limited budget, semi-automatic annotation methods are commonly used, where a portion of the data is annotated by experts and a model is then trained to complete the annotations for the remaining data. However, these methods mainly focus on selecting informative data for expert annotations to improve the model predictive ability (i.e., triage-to-human data), while the rest of the data is indiscriminately assigned to model annotation (i.e., triage-to-model data). This may lead to inefficiencies in budget allocation for annotations, as easy data that the model could accurately annotate may be unnecessarily assigned to the expert, and hard data may be misclassified by the model. As a result, the overall annotation quality may be compromised. To address this issue, we propose a selective annotation framework called SANT. It effectively takes advantage of both the triage-to-human and triage-to-model data through the proposed error-aware triage and bi-weighting mechanisms. As such, informative or hard data is assigned to the expert for annotation, while easy data is handled by the model. Experimental results show that SANT consistently outperforms other baselines, leading to higher-quality annotation through its proper allocation of data to both expert and model workers. We provide pioneering work on data annotation within budget constraints, establishing a landmark for future triage-based annotation studies.
|
| 16 |
+
|
| 17 |
+
# 1 Introduction
|
| 18 |
+
|
| 19 |
+
Creating a high-quality and fully annotated dataset by human experts is criticized as being expensive. It is impossible to complete the annotation if we are operating on a limited budget (Chen et al., 2021), especially when dealing with large-scale data corpora on the web (Hedderich et al., 2021; Feng and Lapata, 2008). In this paper, we study the data
|
| 20 |
+
|
| 21 |
+
annotation problem within the constraints of limited budgets, where the goal is to achieve high-quality annotations despite having insufficient budgets to hire experts for annotating the entire dataset. To tackle this challenge, a typical solution is to conduct semi-automatic annotation (Chen et al., 2020b; Yao et al., 2023) (cf. Fig. 1 (middle)). It typically allocates the budget to hire experts for annotating a portion of the data, and then utilizes the annotated data to train a prediction model for completing the annotations for the remaining data. The choice of the model can vary, ranging from sophisticated models with large parameters (Bryant et al., 2017; Schulz et al., 2019; Hedderich et al., 2021) to lightweight models (Chen et al., 2020a; Desmond et al., 2021a) depending on the available hardware budgets. However, such methods often overlook the data allocation problem, i.e., the process of deciding which data should be annotated by human experts and which should be left for the prediction models to annotate. This may lead to inefficiencies in budget allocation for annotations, as certain data that the model could accurately annotate is unnecessarily assigned to experts. Consequently, the overall annotation quality within the same budget may be compromised.
|
| 22 |
+
|
| 23 |
+
In the light of this challenge, we take the first step to re-formulate the semi-automatic annotation under limited budgets as a data triage problem, which aims to optimize the annotation quality under limited budgets by determining the allocation of data to human annotator (namely triage-to-human data) and data to be assigned for model prediction (namely triage-to-model data). Existing semi-automatic annotation methods (Desmond et al., 2021a; Su et al., 2022; Li et al., 2023) mainly focus on selecting unlabeled data for expert annotations to improve the model predictive ability (i.e., triage-to-human data) through random strategies or active learning (AL), while the rest of data is indiscriminately assigned to model annotation (i.e.,
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Semi-automatic annotation focuses on triage-to-human data, overlooking triage-to-model data.
|
| 27 |
+
|
| 28 |
+
triage-to-model data). However, as shown in Fig. 1 (bottom), even if we constantly improve the predictive ability via triage-to-human data, the model still inevitably makes errors in its annotations. Not to mention that the data allocation strategies of existing methods may not effectively improve the model predictive ability (Tang and Huang, 2019; Mindermann et al., 2022). To address this issue, determining what data should be assigned for model annotation (triage-to-model data) is crucial. A model could achieve high-quality annotations if assigned with the data that is easy for model to predict, while experts annotate the hard ones. Therefore, when solving the data triage challenge, it's important to take both triage-to-human and triage-to-model data into account. In this way, the budget utilization could be improved through efficiently allocating both human and model annotations.
|
| 29 |
+
|
| 30 |
+
To this end, we propose a novel Selective ANnoTation framework (SANT), which optimizes the utilization of limited annotation budgets by balancing the importance of triage-to-human and triage-to-model data. Firstly, an AL-based mechanism is deployed to assign higher weights to data that help improve the model predictive ability. Secondly, an Error-Aware Triage (EAT) mechanism is proposed to assess the "hardness" weight of data, with the aim of redirecting the focus toward triage-to-model data. In specific, EAT dynamically estimates the probability of model error using triage-to-human data from previous rounds. Finally, a bi-weighting mechanism is adopted to aggregate different advantages of prioritizing triage-to-human and triage-to-model data. Such mechanism adaptively adjusts the importance of data so that informative or hard-to-predict data is assigned to humans for annotation. As such, the annotation budget are efficiently utilized to secure the model predictive ability and to leverage the strengths of the expert on hard data annotation simultaneously.
|
| 31 |
+
|
| 32 |
+
Our experiment results show that SANT consistently improves annotation quality across various annotation budgets, surpassing the best semiautomatic annotation method by an average of $+0.50\%$ , $+4.86\%$ , and $+4.54\%$ on the three annotation tasks, respectively. Recently, as large language models (LLMs) possess strong zero-shot and few-shot capabilities for data annotation (He et al., 2023; Gilardi et al., 2023; Ding et al., 2023), we further adopt ChatGPT as a strong automatic annotation baseline. Notably, SANT exhibits a better annotation quality over ChatGPT, even with the aid of few-shot in-context learning and Chain-of-Thought (CoT) prompting (Brown et al., 2020; Wei et al., 2022). These results highlight that proper allocation of data to both human and model workers results in higher-quality annotation. Further analysis highlights the importance of the triage-to-model data, which are more beneficial to obtain higher-quality annotations compared to the triage-to-human ones. In conclusion, we pioneer work on data annotation with limited budgets by formulating a data triage problem. We set a landmark for future triage-based annotation methods. Our contributions are as follows:
|
| 33 |
+
|
| 34 |
+
- We present the first work to study the roles of both triage-to-human and triage-to-model data. We verify the importance of triage-to-model data, which is largely overlooked by existing studies.
|
| 35 |
+
- We re-formulate semi-automatic annotation as data triage and propose a selective annotation framework, achieved by optimizing two novel mechanisms (i.e., EAT and bi-weighting mechanisms) for utilizing limited budgets.
|
| 36 |
+
- We show that proper allocation of data to both the expert and model workers results in higher-quality annotation. SANT effectively balances the advantages of two factors: improving model predictive ability (i.e., triage-to-human data) and triaging data based on the model's predictive ability (triage-to-model data).
|
| 37 |
+
|
| 38 |
+
# 2 Related Work
|
| 39 |
+
|
| 40 |
+
Data Annotation. Human annotations are known to be expensive (Chen et al., 2021; Hedderich et al., 2021; Feng and Lapata, 2008). To this end, many studies have explored human-machine cooperative data annotation (Lu et al., 2024; Li et al., 2023; Ding et al., 2024; Huang et al., 2024a,b). In this case, a portion of the data is designated for human annotation (triage-to-human data), while
|
| 41 |
+
|
| 42 |
+
the remaining data is allocated for model annotation (triage-to-model data). To further enhance the model's predictive capabilities, existing methods are often formulated as a "model training and prediction" paradigm, where the model iteratively learns from the annotated data and then makes predictions. (Dalvi et al., 2016; Li et al., 2015; Bryant et al., 2017; Chen et al., 2020b; Wang et al., 2023; Tan et al., 2023). Considering the hardware budgets and time efficiency requirements, light-weighted models (Desmond et al., 2021a; Chen et al., 2020a), such as label propagation (Zhou et al., 2003) and MLP are preferred. Recently, uncertainty-based methods have been used to select a data subset for human annotations (Zhang et al., 2021; Desmond et al., 2021a; Su et al., 2022; Ein-Dor et al., 2020), improving the overall annotation quality by refining the model using more informative data. However, current methods concentrate solely on selecting triage-to-human data, while neglecting the importance of triage-to-model data. This fails to optimize data allocation effectively. In contrast, SANT considers both types of data.
|
| 43 |
+
|
| 44 |
+
Active learning. Current data allocation practices in the field of data annotation draw inspiration from the active learning (Ren et al., 2020), where data with high uncertainty are prioritized for human annotation. This aligns with active learning's preference for informative or representative data (Desmond et al., 2021b; Loquercio et al., 2020). To our knowledge, no existing research has explored the application of other active learning techniques for data allocation in annotation. Our work, SANT, extends this approach by introducing a novel perspective. It prioritizes triage-to-model data, essentially introducing the anti-current learning (Braun et al., 2017) into the task of data allocation (i.e., we assign hard-to-predict data for human annotation). SANT seamlessly integrates active learning algorithms with the anti-current learning approach through our proposed bi-weighting mechanism. Our experiments demonstrate the effectiveness of this novel framework in enhancing the quality of data annotation.
|
| 45 |
+
|
| 46 |
+
# 3 SANT: Selective Annotation
|
| 47 |
+
|
| 48 |
+
We introduce the proposed Selective Annotation (SANT) framework. In Section 3.1, we provide the problem definition of the data annotation process, while Section 3.2 introduces the proposed framework SANT and two novel mechanisms. In
|
| 49 |
+
|
| 50 |
+
Appendix F, we introduce the learning details of our framework. Following previous works on semiautomatic annotation (Chen et al., 2020a; Desmond et al., 2021a; Hedderich et al., 2021) and human-model interaction (Hwa, 2000; Kristjansson et al., 2004; Huang et al., 2023), we assume the cost required for human annotation is constant for each data point, and estimate the annotation budgets using the number of data points.
|
| 51 |
+
|
| 52 |
+
# 3.1 Problem Definition
|
| 53 |
+
|
| 54 |
+
We reformulate the data annotation under limited budgets as a data triage problem, where a data triage module $d$ assigns data to either the expert or the model $f$ on-the-fly. The triage module outputs a triage signal of either 0 or 1 to delegate the annotation duty. If the signal is 0, the model is responsible for data annotation. Conversely, if the signal is 1, the human is assigned, and the model is updated using previous human-annotated data.
|
| 55 |
+
|
| 56 |
+
The annotation process terminates when one of two conditions is met: either the limited budgets are exhausted or all the data is annotated. In the first case, if the budgets are depleted before completing the entire dataset, the model annotator must continue with the remaining annotations. In the second case, it is possible for all data to be annotated before the budgets are exhausted if the amount of data assigned to the human during process is less than the budgets. To maximize the utilization of the human budget, a portion of the model-annotated data, selected by the customized data triage strategy, is re-allocated to the human annotator until their budget is depleted.
|
| 57 |
+
|
| 58 |
+
# 3.2 Proposed Framework
|
| 59 |
+
|
| 60 |
+
Semi-automatic annotation methods use active learning (AL) in the data triage module, which primarily prioritize triage-to-human data but overlook the triage-to-model data. As a result, they fail to efficiently and directly optimize budget utilization. To this end, SANT introduces two innovative mechanisms, namely EAT and bi-weighting mechanisms, which consider both human and model-based triage data for budget optimization.
|
| 61 |
+
|
| 62 |
+
# 3.2.1 AL-based mechanism
|
| 63 |
+
|
| 64 |
+
Semi-automatic annotation and SANT are flexible to any off-the-shelf AL methods<sup>1</sup>, such as,
|
| 65 |
+
|
| 66 |
+
leveraging the uncertainty of the model prediction (Desmond et al., 2021b) or using a differentiable neural network (Wang et al., 2022). Formally speaking, given data $x_{t}$ and the model $f_{t}$ at round $t$ , $x_{t}$ is assigned to the expert if the AL-based mechanism $d_{t}^{AL}$ gives $x_{t}$ a large weight. If the AL-based mechanism is implemented using a learnable neural network, both AL and $f_{t}$ are jointly optimized/updated, otherwise only $f_{t}$ is updated. Note that the AL-based mechanism solely focuses on triage-to-human data, which limits its ability to optimize budget utilization directly and efficiently.
|
| 67 |
+
|
| 68 |
+
# 3.2.2 Error-aware triage mechanism (EAT)
|
| 69 |
+
|
| 70 |
+
Unlike existing AL-based semi-automatic annotation, we propose EAT to prioritize triage-to-model data by assigning hard-to-predict data to the expert and reserving easy-to-predict data to the model. Specifically, EAT assigns data $x_{t}$ to the expert if the EAT-based mechanism $d_{t}^{EAT}$ gives $x_{t}$ a high weight, which is determined by the probability of $f_{t}$ misclassifying $x_{t}$ . The model $f_{t}$ and EAT are then jointly optimized/updated. If $d_{t}^{EAT}$ does not assign a high weight to $x_{t}$ , then the model $f_{t}$ acts as the annotator without requiring human involvement. Notably, EAT can be parameterized using any neural network, depending on the available hardware budgets. Here, EAT's input and learning objectives are presented below.
|
| 71 |
+
|
| 72 |
+
Input of EAT. Instead of learning from training data independently (Mozannar and Sontag, 2020; Wilder et al., 2021; Raghu et al., 2019; Okati et al., 2021), to enhance EAT's input features, we propose capturing the relationship between input data and its neighboring data from the same batch. This includes the use of weighted neighborhood entropy, which measures the model's predictive uncertainty on the local area of input data $x_{t}$ . To calculate this entropy, we retrieve the top- $k$ neighbors $N_{t}(x_{t})$ and calculate the cosine similarity between $x_{t}$ and each neighbor $x_{i} \in N_{t}$ . We store these similarity values in vector $C_{t}(x_{t}) \in R^{k}$ . Then, we calculate the entropy of the model prediction $f_{t}(x_{i})$ for each $x_{i} \in N_{t}(x_{t})$ and store them in vector $E_{t}(x_{t}) \in R^{k}$ . Finally, we obtain the weighted neighborhood entropy of $x_{t}$ by using the element-wise multiplication operator $\odot$ on vectors $E_{t}(x_{t})$ and $C_{t}(x_{t})$ . The input of EAT is then the concatenation of the embedding of unlabeled data $x_{t}$ , the model output $f_{t}(x_{t})$ , and the weighted neighborhood entropy.
|
| 73 |
+
|
| 74 |
+
Learning objective of EAT. EAT is designed to allocate hard-to-predict data, which are beyond the
|
| 75 |
+
|
| 76 |
+
model's predictive ability, to the expert. To achieve this, EAT estimates the likelihood of the model making errors on unlabeled data $x_{t}$ . Specifically, EAT is required to minimize the following loss.
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
L _ {d} = \sum_ {\left\{x _ {t}, y _ {t} \right\}} \ell_ {d} \left(\mathbb {1} \left[ y _ {t} \neq \max \left(f _ {t} \left(x _ {t}\right)\right) \right], d _ {t} ^ {E A T} \left(x _ {t}\right)\right). \tag {1}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
Here, $\mathbb{1}[\cdot ]$ is an indicator function. $y_{t}\in R$ and $f_{t}(x_{t})\in R^{\mathbf{C}}$ are the ground truth from the human and predicted outputs of the model, where $\mathbf{C}$ is the number of classes. Also, the operator $\max (\cdot)$ outputs the index of the maximal value of the input vector. In our experiments, $\ell_d$ comes in the form of the negative log-likelihood or binary cross-entropy loss, depending on the annotation tasks. Moreover, We further follow recent works on few-shot learning (Wang et al., 2018; Li et al., 2020) and utilize the max-margin loss to improve SANT's ability to learn and generalize from limited labeled data on the fly. Apart from the aforementioned loss $L_{d}$ , we add the following max-margin loss $L_{m}$ (See Appendix C for ablation experiments on $L_{m}$ ).
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
L _ {m} = \max (0, \alpha + \bar {L} _ {f} ^ {m} - \bar {L} _ {f} ^ {h}),
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\overline {{L _ {f} ^ {m}}} = \frac {\sum_ {\{x _ {t} , y _ {t} \}} \mathbb {1} \left[ d _ {t} ^ {E A T} \left(x _ {t}\right) < 0 . 5 \right] \ell_ {f} \left(x _ {t} , y _ {t}\right)}{\sum_ {\{x _ {t} , y _ {t} \}} \mathbb {1} \left[ d _ {t} ^ {E A T} \left(x _ {t}\right) < 0 . 5 \right]}, \tag {2}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\overline {{L _ {f} ^ {h}}} = \frac {\sum_ {\{x _ {t} , y _ {t} \}} \mathbb {1} [ d _ {t} ^ {E A T} (x _ {t}) \geq 0 . 5 ] \ell_ {f} (x _ {t} , y _ {t})}{\sum_ {\{x _ {t} , y _ {t} \}} \mathbb {1} [ d _ {t} ^ {E A T} (x _ {t}) \geq 0 . 5 ]}.
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
Here, $\alpha > 0$ is a margin hyper-parameter. Given the fixed model, EAT carefully allocate the expert and the model annotations so that it ensures that the average loss of the model on the triage-to-human data $\overline{L_f^h}$ is much higher than the triage-to-model data $\overline{L_f^m}$ . Finally, the learning objective of EAT is given by $L_{EAT} = L_d + L_m$ .
|
| 97 |
+
|
| 98 |
+
# 3.2.3 Bi-weighting mechanism
|
| 99 |
+
|
| 100 |
+
The AL-based mechanism focuses on triage-to-human data to improve the model's predictive ability. However, it may still struggle with hard data beyond the model capacity. In contrast, our proposed EAT-based mechanism prioritizes triage-to-model data and reserves hard data for human annotation, which allows the model to handle relatively easy data. However, models trained on hard data may have weaker predictive ability. To find the optimal trade-off, the bi-weighting mechanism aims to ensure that the model is trained properly and can annotate relatively easy data effectively.
|
| 101 |
+
|
| 102 |
+
The bi-weighting mechanism aggregates the advantages of prioritizing both triage-to-human and
|
| 103 |
+
|
| 104 |
+
triage-to-model data by introducing a simple yet efficient method. It scores $x_{t}$ using $d_{t}^{bi}(x_{t})$ , which is the product of $d_{t}^{AL}(x_{t}) \in [0,1]$ and $d_{t}^{EAT}(x_{t}) \in [0,1]$ , to adjust the importance of data. This ensures that informative or hard data are assigned to humans for annotation, and that the model is trained properly. Considering the sample efficiency of AL is more advantageous when the model is trained based on a few labeled data, we further control the importance of the AL score $d_{t}^{AL}(x_{t})$ by $\tau \geq 0$ , which is the percentage of annotated data in the total data. Given a function $\beta(\tau) = e^{\tau - T_0}$ parameterized by a hyper-parameter $T_0 \in [0,1]$ and the total amount of dataset $|X|$ , the weight of $x_{t} \in X$ is given by the following equation.
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
d _ {t} ^ {b i} \left(x _ {t}\right) = \left(d _ {t} ^ {A L} \left(x _ {t}\right)\right) ^ {\eta (t)} * d _ {t} ^ {E A T} \left(x _ {t}\right) \tag {3}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\eta (t) = \beta (t / | X |).
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
As such, the bi-weighting mechanism highlights the importance of $d_t^{AL}(x_t)$ in the early stages of the annotation process (i.e., when $\tau < T_0$ ) and decreases it as the annotation process progresses. This allows for efficient use of the AL score. Notably, the bi-weighting mechanism is efficient because it allows for the fusion of AL and EAT in a post-hoc manner.
|
| 115 |
+
|
| 116 |
+
Optimization of SANT. We optimize the model annotator $f_{t}$ , EAT $d_{t}^{EAT}$ , and AL method $d_{t}^{AL}$ independently. The loss function for AL, denoted as $L_{AL}$ (if applicable), is included in the overall loss function $\mathcal{L}$ of SANT, which is the sum of $L_{f}$ , $L_{EAT}$ , and $L_{AL}$ . Note that all human-annotated data from past human-model interactions are utilized for optimization. For optimization details, please refer to Appendix F.
|
| 117 |
+
|
| 118 |
+
# 4 Evaluation
|
| 119 |
+
|
| 120 |
+
In this section, we conduct extensive experiments to assess the effectiveness of SANT. Given limited annotation budgets, we evaluate if SANT is more desirable to obtain high-quality annotations, compared to existing annotation methods (cf. Section 4.2). Furthermore, we comprehensively analyze the advantages of SANT and uncover the characteristics of triage-to-human and triage-to-model data in data annotation task (cf. Section 4.3).
|
| 121 |
+
|
| 122 |
+
# 4.1 Experiment Setup
|
| 123 |
+
|
| 124 |
+
Tasks & Datasets. To assess SANT, we perform three annotation tasks, namely sentiment annotation, knowledge graph completion, and tagging.
|
| 125 |
+
|
| 126 |
+
These tasks have been highlighted as crucial in various web applications (Yao et al., 2021; Marcos-Pablos and Garcia-Penalvo, 2020; Tovstogan et al., 2020; Lee et al., 2022). Each task corresponds to a different type of classification problem: binary classification, multi-class classification, and multi-label classification, respectively. The difficulty level of these tasks ranges from easy to hard. To simulate the annotation process, we utilize three commonly used datasets: IMDB for sentiment annotation, WN18RR for knowledge graph completion, and CiteULike for scientific paper tagging. More details about the datasets and tasks can be found in Appendix D.
|
| 127 |
+
|
| 128 |
+
Evaluation Metrics. We have selected appropriate metrics to evaluate the quality of annotations. For sentiment annotation and knowledge graph completion tasks, we use accuracy as the metric. Similarly, we use Hit Ratio $(HR@10)$ for the multi-label tagging task, as suggested in Chen et al. (2020a). Our evaluation pays special attention to the annotation quality of model-annotated data, but also discusses the annotation quality of overall data (including expert-annotated and model-annotated data).
|
| 129 |
+
|
| 130 |
+
Comparative methods. For a fair comparison, we use the same model annotator for both SANT and semi-automatic annotation, with the only difference being the addition of a data triage module. We consider both classic and advanced active learning methods, which focus on triage-to-human data, and Random strategy that allocates data randomly.
|
| 131 |
+
|
| 132 |
+
- MaxEntropy uses entropy-based strategy as data triage to assign data with high uncertainty to the expert (Xiao et al., 2023; Li et al., 2023).
|
| 133 |
+
- Calibrated MaxEntropy aims to measure uncertainty more precisely. We equip MaxEntropy with the model calibration, implemented by the temperature scaling (Guo et al., 2017) with the scalar default parameter (i.e., 1.5).
|
| 134 |
+
- Ent-gn uses an advanced AL method (Wang et al., 2022) as the data triage module. It selects data that leads to a lower upper-bound of test loss, where the entropy is used to compute the gradient norm in an unsupervised way.
|
| 135 |
+
- Exp-gn uses labels from past interactions to compute an expected empirical loss (Wang et al., 2022) instead of using entropy in Ent-gn.
|
| 136 |
+
- LLM-based automatic annotation involves using ChatGPT as a strong baseline for automatic annotation. We test various prompts, including zero-shot, few-shot, zero-shot CoT, and few-shot
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
Figure 2: Annotation quality of SANT and ChatGPT-based automatic annotation. The X-axis means the proportion of annotation budgets. As the annotation tasks become increasingly difficult (from task a to task c), human experts are indispensable to achieving high-quality annotation, despite the efficiency of adopting LLMs as annotators.
|
| 144 |
+
|
| 145 |
+
CoT. Refer to Appendix G for more details.
|
| 146 |
+
|
| 147 |
+
To analyze SANT's advantages and uncover its characteristics, we consider the following ablation baselines used in Section 4.3.
|
| 148 |
+
|
| 149 |
+
- SANT w/o AL prioritizes the triage-to-model data only. It assigns easy-to-predict data to the model and hard-to-predict data to the expert.
|
| 150 |
+
- SANT w/o EAT prioritizes the triage-to-human data only, which is essentially semi-automatic annotation with the AL enhancement. The off-the-shelf Exp-gn is used in this case.
|
| 151 |
+
|
| 152 |
+
Implementation details. Considering the human-model annotation efficiency, light-weighted annotation models are always preferred (Desmond et al., 2021a; Chen et al., 2020a; Hedderich et al., 2021). Regarding the semi-automatic annotation implementation, we use customized model annotators for different annotation tasks. Specifically, we use FastText for sentiment annotation (Hedderich et al., 2021), the distributional model for the knowledge graph completion task (Roller et al., 2014; Kober et al., 2021), and the item tagging model for tagging (Chen et al., 2020a). Regarding the implementation of SANT, MLP is used as the backbone of EAT following Chen et al. (2020a). The hyperparameter $T_{0}$ in the bi-weighting mechanism is set to be 0.2 for all experiments without tuning. To simulate human annotation behavior, we mask out the ground truth in the datasets. the ground truth is revealed when the expert is selected by the data triage module. Moreover, to simulate the limited annotation budgets setting, we tune the annotation budgets from $10\%$ to $90\%$ with a step size being $10\%$ , where $10\%$ budgets mean the human can only annotate $10\%$ data. More implementation details are shown in Appendix E, and engineering-related suggestions are in Appendix H.
|
| 153 |
+
|
| 154 |
+
# 4.2 Annotation Quality Evaluation
|
| 155 |
+
|
| 156 |
+
This section presents a comparison of the annotation quality of SANT with LLM-based automatic methods and semi-automatic methods. The results are presented in Figure 2 and Table 1.
|
| 157 |
+
|
| 158 |
+
Despite the efficiency of adopting LLMs as annotators, human experts are indispensable to achieving high-quality annotation. As illustrated in Figure 2, while ChatGPT's performance on simple annotation tasks (i.e., sentiment annotation) is comparable to SANT, it falls behind SANT significantly when it comes to complex annotation tasks (i.e., knowledge graph completion and tagging). In particular, ChatGPT struggles with the tagging task due to the large number of candidate tags (i.e., 500). It often generates non-existent tags. Compared to SANT, which uses a light-weighted model architecture and a certain amount of annotation budgets, we suggest that experts play an indispensable role in achieving high-quality annotations, especially for challenging annotation tasks. Therefore, significant effort should be invested in researching methods that make full use of limited budgets to achieve high-quality annotations, which is our motivation.
|
| 159 |
+
|
| 160 |
+
SANT secures higher-quality annotations compared to semi-automatic annotation. Table 1 shows the annotation quality of SANT and baselines on the model-annotated data, excluding the influence of expert annotation. Compared to random-based method, almost all triage-based methods could achieve performance improvements. Such an exception motivates the necessity of clear division of duty between the human and model. This is beneficial for maximizing the annotation quality and optimizing the utilization of the limited budgets. Compared to AL-based semi-automatic annotation, SANT secures higher quality. Moreover, SANT consistently outperforms Exp-gn, which shares the same model annotator and AL-based mechanism, across different annotation budgets As the annotation budgets increase, the performance gain of
|
| 161 |
+
|
| 162 |
+
<table><tr><td>Task</td><td>Triage Method</td><td>Triage Types</td><td>10%</td><td>20%</td><td>30%</td><td>40%</td><td>50%</td><td>60%</td><td>70%</td><td>80%</td><td>90%</td></tr><tr><td rowspan="6">Sentiment Annotation (binary classification)</td><td>Random</td><td>Random</td><td>82.90</td><td>82.38</td><td>82.24</td><td>82.74</td><td>82.15</td><td>82.23</td><td>82.27</td><td>82.49</td><td>82.44</td></tr><tr><td>Calibrated MaxEntropy</td><td>Classic AL</td><td>84.28</td><td>85.42</td><td>87.45</td><td>89.31</td><td>92.58</td><td>96.17</td><td>96.17</td><td>96.10</td><td>96.16</td></tr><tr><td>MaxEntropy</td><td>Classic AL</td><td>83.15</td><td>85.09</td><td>87.03</td><td>89.61</td><td>93.21</td><td>95.94</td><td>95.93</td><td>95.91</td><td>95.93</td></tr><tr><td>Ent-gn</td><td>Advanced AL</td><td>84.37</td><td>85.59</td><td>87.53</td><td>90.76</td><td>93.00</td><td>96.32</td><td>96.33</td><td>96.32</td><td>96.47</td></tr><tr><td>Exp-gn</td><td>Advanced AL</td><td>84.38</td><td>85.57</td><td>87.47</td><td>90.76</td><td>92.98</td><td>96.29</td><td>96.33</td><td>96.40</td><td>96.43</td></tr><tr><td>SANT (w/ Exp-gn)</td><td>Advanced AL + EAT</td><td>84.38</td><td>85.57</td><td>87.93</td><td>90.79</td><td>93.77</td><td>96.28</td><td>97.00</td><td>97.67</td><td>97.77</td></tr><tr><td rowspan="6">Knowledge Graph Completion (multi-class classification)</td><td>Random</td><td>Random</td><td>55.97</td><td>55.78</td><td>55.92</td><td>55.81</td><td>55.87</td><td>57.08</td><td>57.03</td><td>57.06</td><td>56.82</td></tr><tr><td>Calibrated MaxEntropy</td><td>Classic AL</td><td>56.66</td><td>58.91</td><td>60.75</td><td>64.17</td><td>64.48</td><td>64.72</td><td>64.59</td><td>64.59</td><td>64.29</td></tr><tr><td>MaxEntropy</td><td>Classic AL</td><td>56.88</td><td>58.90</td><td>61.27</td><td>62.95</td><td>63.08</td><td>63.92</td><td>64.13</td><td>63.18</td><td>62.89</td></tr><tr><td>Ent-gn</td><td>Advanced AL</td><td>54.48</td><td>56.08</td><td>59.34</td><td>60.15</td><td>65.19</td><td>68.71</td><td>75.49</td><td>78.09</td><td>79.41</td></tr><tr><td>Exp-gn</td><td>Advanced AL</td><td>55.14</td><td>56.81</td><td>60.28</td><td>61.51</td><td>65.40</td><td>68.07</td><td>76.90</td><td>81.76</td><td>81.41</td></tr><tr><td>SANT (w/ Exp-gn)</td><td>Advanced AL + EAT</td><td>55.14</td><td>56.81</td><td>62.83</td><td>66.32</td><td>71.78</td><td>78.67</td><td>85.03</td><td>87.31</td><td>87.16</td></tr><tr><td rowspan="6">Tagging (multi-label classification)</td><td>Random</td><td>Random</td><td>48.78</td><td>49.45</td><td>50.28</td><td>51.75</td><td>49.58</td><td>50.48</td><td>49.86</td><td>50.11</td><td>55.06</td></tr><tr><td>Calibrated MaxEntropy</td><td>Classic AL</td><td>48.78</td><td>48.13</td><td>48.06</td><td>48.20</td><td>48.27</td><td>48.99</td><td>49.55</td><td>49.28</td><td>49.37</td></tr><tr><td>MaxEntropy</td><td>Classic AL</td><td>48.78</td><td>48.20</td><td>48.40</td><td>48.40</td><td>48.47</td><td>48.68</td><td>49.24</td><td>49.27</td><td>49.35</td></tr><tr><td>Ent-gn</td><td>Advanced AL</td><td>48.78</td><td>49.88</td><td>51.34</td><td>52.94</td><td>49.52</td><td>52.02</td><td>54.80</td><td>56.43</td><td>58.43</td></tr><tr><td>Exp-gn</td><td>Advanced AL</td><td>48.78</td><td>49.90</td><td>50.94</td><td>52.89</td><td>49.50</td><td>50.24</td><td>54.48</td><td>55.47</td><td>57.84</td></tr><tr><td>SANT (w/ Exp-gn)</td><td>Advanced AL + EAT</td><td>48.78</td><td>49.90</td><td>52.24</td><td>54.35</td><td>55.25</td><td>56.60</td><td>61.13</td><td>68.24</td><td>68.53</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Table 1: The annotation quality on model-annotated data (\%). The best performance is marked in bold and second best is underlined. Overall, SANT enjoys higher-quality annotations. We analysis the cons of SANT on very limited data in Section 4.3. More experiments are provided in Appendix, Table 5
|
| 165 |
+
|
| 166 |
+
SANT becomes more significant due to better training of the EAT and AL components. These experiments highlight that solely improving model performance through triage-to-human data (AL) may not be sufficient for optimizing annotation quality under limited budgets. Determining which data should be assigned to the model is crucial for improving annotation quality.
|
| 167 |
+
|
| 168 |
+
# 4.3 Analysis and Characteristics of SANT
|
| 169 |
+
|
| 170 |
+
We aim to find the key predictor for the annotation prediction of SANT: triage-to-human data or triage-to-model data. The former improves the predictive ability of the model via prioritizing informative data selected by AL, while the latter carefully selects easy-to-predict data for model annotation and prioritizes hard ones for expert annotation via EAT. We consider two ablation baselines that separate the impact of AL and EAT. The results are shown in Figure 3 and Table 2.
|
| 171 |
+
|
| 172 |
+
Prioritizing triage-to-human data for active learning can enhance model predictions, but this advantage is not always the case. We first study the effect of triage-to-human data by measuring the predictive ability. However, although conducting experiments under the same annotation budgets, models are trained on different human-annotated data and tested on different unlabeled data due to different data triage preferences of AL and EAT. This hinders the measurement of predictive ability. To address this, controlled experiments are conducted to assess the predictive ability of each model on the same extra test data. The results
|
| 173 |
+
|
| 174 |
+
are illustrated in Figure 3. AL performs better in predicting sentiment annotations but loses its advantages in completing knowledge graph tasks. On the other hand, EAT, which implies the anticurriculum learning (Braun et al., 2017), or hard example mining (Shrivastava et al., 2016), achieves surprisingly good results in knowledge graph completion. Although prioritizing hard instances has been shown effective in training models (Mindermann et al., 2022; Shrivastava et al., 2016), our experiment does not find statistically significant evidence of its effectiveness. Therefore, determining which instances should be triaged to humans for training a good model remains a challenge. Our results suggest that future studies should consider incorporating hard instances.
|
| 175 |
+
|
| 176 |
+
Importance of triage-to-human and triage-to-model data varies at different annotation stage, which is effectively balanced by SANT. We further take both the triage-to-human and triage-to-model data into account simultaneously. Table 2 shows the annotation quality of SANT and its ablations on the model-annotated data². When working with very few budgets (10%-20%), using AL to utilize triage-to-human data is the optimal choice as SANT w/o EAT achieves higher quality on two-thirds of the datasets compared to SANT w/o AL. On the contrary, when the budgets increase, EAT, which estimates model misclassification, tends to be a more stable and accurate method for human-model collaborative annotation compared to AL.
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
Figure 3: Model predictive ability evaluation on the same extra test dataset. While prioritizing triage-to-human data by AL has some advantages over triage-to-model data in promoting model predictive ability, it is not always the case (e.g., SANT w/o EAT loses its advantage in knowledge graph completion task).
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
|
| 185 |
+
<table><tr><td>Task</td><td>Annotation Method</td><td>Data Triage</td><td>10%</td><td>20%</td><td>30%</td><td>40%</td><td>50%</td><td>60%</td><td>70%</td><td>80%</td><td>90%</td></tr><tr><td rowspan="3">Sentiment Annotation</td><td>SANT w/o EAT</td><td>Advanced AL</td><td>84.38</td><td>85.57</td><td>87.47</td><td>90.76</td><td>92.98</td><td>96.29</td><td>96.33</td><td>96.40</td><td>96.43</td></tr><tr><td>SANT w/o AL</td><td>EAT</td><td>83.90</td><td>85.16</td><td>87.89</td><td>90.78</td><td>93.40</td><td>96.13</td><td>96.96</td><td>97.47</td><td>97.71</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>84.38</td><td>85.57</td><td>87.93</td><td>90.79</td><td>93.77</td><td>96.28</td><td>97.00</td><td>97.67</td><td>97.77</td></tr><tr><td rowspan="3">Knowledge Graph Completion</td><td>SANT w/o EAT</td><td>Advanced AL</td><td>55.14</td><td>56.81</td><td>60.28</td><td>61.51</td><td>65.40</td><td>68.07</td><td>76.90</td><td>81.76</td><td>81.41</td></tr><tr><td>SANT w/o AL</td><td>EAT</td><td>57.06</td><td>59.75</td><td>62.75</td><td>66.08</td><td>71.61</td><td>78.57</td><td>84.99</td><td>87.28</td><td>87.12</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>55.14</td><td>56.81</td><td>62.83</td><td>66.32</td><td>71.78</td><td>78.67</td><td>85.03</td><td>87.31</td><td>87.16</td></tr><tr><td rowspan="3">Tagging</td><td>SANT w/o EAT</td><td>Advanced AL</td><td>48.78</td><td>49.90</td><td>50.94</td><td>52.89</td><td>49.50</td><td>50.24</td><td>54.48</td><td>55.47</td><td>57.84</td></tr><tr><td>SANT w/o AL</td><td>EAT</td><td>48.78</td><td>49.81</td><td>51.14</td><td>52.97</td><td>55.23</td><td>56.53</td><td>61.08</td><td>68.20</td><td>68.50</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>48.78</td><td>49.90</td><td>52.24</td><td>54.35</td><td>55.25</td><td>56.60</td><td>61.13</td><td>68.24</td><td>68.53</td></tr></table>
|
| 186 |
+
|
| 187 |
+
Table 2: The annotation quality of SANT and its ablation counterparts on the model-annotated data (\%). Importance of triage-to-human (i.e., AL) and triage-to-model data (i.e., EAT) varies at different annotation stage. SANT effectively balances the advantages of the triage-to-human and triage-to-model data by integrating EAT and AL.
|
| 188 |
+
|
| 189 |
+
This shifts the focus to triage-to-model data. In conjunction with EAT, SANT $w/o AL$ achieves the better results compared to SANT $w/o EAT$ , particularly in the middle range of annotation budgets (40%-70%). Therefore, the importance of triage-to-human and triage-to-model data varies at different annotation stage. To bring together two types of data, SANT utilizes the bi-weighting mechanism. We found that the annotation quality of SANT is optimal in most cases, indicating that SANT effectively allocates triage-to-human data to train the model and enhance its predictive capability, while also allocating triage-to-model data to improve the model annotation quality by providing easy-to-predict data for the model.
|
| 190 |
+
|
| 191 |
+
The key factor influencing the quality of annotations in SANT lies in the careful selection of data to be assigned for model annotation. According to Figure 3, prioritizing triage-to-human data using AL or EAT does not lead to a significant improvement in the model's predictive ability. While determining which instances should be triaged to human is crucial for model training, our experiment does not find statistically significant evidence of its advantages. It is possible that the potential values of data have not been fully utilized (Tang and Huang, 2019; Mindermann et al., 2022). Therefore, triage-to-human data is expected
|
| 192 |
+
|
| 193 |
+
to have a limited contribution to improving annotation quality in SANT. Additionally, our analysis of Table 2 shows that SANT w/o AL has a more significant advantage in model annotation data quality compared to SANT w/o EAT. Therefore, we argue that carefully selecting easy-to-predict data for model prediction is crucial in significantly improving overall annotation accuracy, even though training the model on manual labeled hard-to-predict data may not result in a stronger predictive ability. This finding highlights that deciding which data to use for model prediction is more important than training itself, particularly as budgets increase. In some cases, the improvement in annotation quality can compensate for the disadvantages of an under-trained model with lower predictive ability. To sum up, prioritizing triage-to-model data is a pivotal factor in determining the success of SANT.
|
| 194 |
+
|
| 195 |
+
# 5 Conclusion
|
| 196 |
+
|
| 197 |
+
We present the first work to study the roles of both triage-to-human and triage-to-model data. We formulate semi-automatic data annotation as a data triage problem via SANT, achieved by optimizing two novel mechanisms (i.e., EAT and bi-weighting mechanisms) in utilizing limited annotation budgets. Empirical experiments show that SANT sig-
|
| 198 |
+
|
| 199 |
+
nificantly outperforms the existing semi-automatic annotation methods. Although the effectiveness of LLM-based annotator, we find that experts are still indispensable to achieving high-quality annotations, especially on challenging data annotation tasks. Coordinately delegating the human and the model as a team can be a feasible solution. We also observe that relying on triage-to-human data to create a better model may not be the most effective approach for high-quality annotations. It may be more beneficial to identify triage-to-model data.
|
| 200 |
+
|
| 201 |
+
# Limitations
|
| 202 |
+
|
| 203 |
+
Scale of Model Annotator. One limitation of our work is that we use lightweight models for annotation due to limited computational resources. While lightweight models are commonly employed in data annotation (Chen et al., 2020a; Desmond et al., 2021a), we do not investigate the effectiveness of larger language models as the model annotator in this study. However, SANT, based on lightweight models, still outperforms the LLM-based automatic annotator.
|
| 204 |
+
|
| 205 |
+
Model annotation cost. While the use of models for data annotation may incur computational costs, our current research focuses solely on human annotation costs, neglecting model annotation costs. This simplification, while not entirely reflective of real-world scenarios, is justified by the significantly higher cost of human annotation compared to model annotation (Li et al., 2023; Gilardi et al., 2023). Additionally, the light-weighted models employed in this study further minimize the model annotation cost, rendering it negligible. To enhance the practicality of our work, future research will incorporate the cost of model annotation.
|
| 206 |
+
|
| 207 |
+
Human annotation cost simulation. Human annotation cost on each piece of data may not necessarily be constant. The cognitive abilities of different humans and the difficulty level of different data can both impact the human annotation cost. Our paper, like the previous research, assumes that the human annotation cost on each data is constant. In future research, constructing a user simulator to simulate human cognitive abilities and evaluating the difficulty of the data could be the next research direction to improve our work.
|
| 208 |
+
|
| 209 |
+
Performance under extremely limited budgets. Our method may not exhibit a substantial advantage over the best baseline under extremely limited budgets. However, it consistently performs
|
| 210 |
+
|
| 211 |
+
at least on par, and often slightly better in this scenario. This, however, does not diminish the substantial effectiveness advantage demonstrated by our method in other scenarios. We have conducted a thorough analysis of the reasons behind our method's limited performance improvement under extremely limited budgets. This analysis will guide our future work in developing targeted improvements to further enhance the effectiveness of our method.
|
| 212 |
+
|
| 213 |
+
Data annotation can be an intricate and complex engineering problem. While our work focuses on the data allocation problem and introduces the SANT framework for human-machine cooperative annotation, real-world deployment of SANT necessitates further systematic engineering considerations. These aspects, often overlooked in both our paper and other research on data allocation or data annotation, are addressed in Appendix H, where deployment suggestions are provided.
|
| 214 |
+
|
| 215 |
+
# Acknowledgements
|
| 216 |
+
|
| 217 |
+
This work was supported in part by the National Natural Science Foundation of China (No. 62272330); in part by the Fundamental Research Funds for the Central Universities (No. YJ202219); in part by the Singapore Ministry of Education (MOE) Academic Research Fund (AcRF) Tier 1 grant (No. MSS24C004).
|
| 218 |
+
|
| 219 |
+
# References
|
| 220 |
+
|
| 221 |
+
Jonathan F Bard. 2013. Practical bilevel optimization: algorithms and applications, volume 30. Springer Science & Business Media.
|
| 222 |
+
Stefan Braun, Daniel Neil, and Shih-Chii Liu. 2017. A curriculum learning method for improved noise robustness in automatic speech recognition. In 2017 25th European Signal Processing Conference (EU-SIPCO), pages 548-552. IEEE.
|
| 223 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901.
|
| 224 |
+
Christopher Bryant, Mariano Felice, and Ted Briscoe. 2017. Automatic annotation and evaluation of error types for grammatical error correction. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 793-805, Vancouver, Canada. Association for Computational Linguistics.
|
| 225 |
+
|
| 226 |
+
Jhonny Cerezo, Felipe Bravo-Marquez, and Alexandre Henri Bergel. 2021. Tools impact on the quality of annotations for chat untangling. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: Student Research Workshop, pages 215-220, Online. Association for Computational Linguistics.
|
| 227 |
+
Nicolo Cesa-Bianchi, Claudio Gentile, and Francesco Orabona. 2009. Robust bounds for classification via selective sampling. In Proceedings of the 26th annual international conference on machine learning, pages 121-128.
|
| 228 |
+
Nicolo Cesa-Bianchi, Claudio Gentile, Luca Zaniboni, and Manfred Warmuth. 2006. Worst-case analysis of selective sampling for linear classification. Journal of Machine Learning Research, 7(7).
|
| 229 |
+
Jia Chen, Yike Wu, Shiwan Zhao, and Qin Jin. 2021. Language resource efficient learning for captioning. In *Findings of the Association for Computational Linguistics: EMNLP* 2021, pages 1887-1895, Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 230 |
+
Xu Chen, Changying Du, Xiuqiang He, and Jun Wang. 2020a. JIT2r: A joint framework for item tagging and tag-based recommendation. In Proceedings of the 43rd international ACM SIGIR conference on research and development in information retrieval, pages 1681-1684.
|
| 231 |
+
Yilu Chen, Xiaojun Zeng, Xing Chen, and Wenzhong Guo. 2020b. A survey on automatic image annotation. Applied Intelligence, 50(10):3412-3428.
|
| 232 |
+
Bhavana Dalvi, Sumithra Bhakthavatsalam, Chris Clark, Peter Clark, Oren Etzioni, Anthony Fader, and Dirk Groeneveld. 2016. Ike-an interactive tool for knowledge extraction. In Proceedings of the 5th Workshop on Automated Knowledge Base Construction, pages 12-17.
|
| 233 |
+
Stefan Depeweg, Jose-Miguel Hernandez-Lobato, Finale Doshi-Velez, and Steffen Udluft. 2018. Decomposition of uncertainty in bayesian deep learning for efficient and risk-sensitive learning. In International Conference on Machine Learning, pages 1184-1193. PMLR.
|
| 234 |
+
Michael Desmond, Michelle Brachman, Evelyn Duesterwald, Casey Dugan, Narendra Nath Joshi, Qian Pan, and Carolina Spina. 2022. Ai assisted data labeling with interactive auto label. In AAAI Conference on Artificial Intelligence.
|
| 235 |
+
Michael Desmond, Evelyn Duesterwald, Kristina Brimijoin, Michelle Brachman, and Qian Pan. 2021a. Semi-automated data labeling. In Proceedings of the NeurIPS 2020 Competition and Demonstration Track, volume 133 of Proceedings of Machine Learning Research, pages 156-169. PMLR.
|
| 236 |
+
|
| 237 |
+
Michael Desmond, Evelyn Duesterwald, Kristina Brimijoin, Michelle Brachman, and Qian Pan. 2021b. Semi-automated data labeling. In NeurIPS 2020 Competition and Demonstration Track, pages 156-169. PMLR.
|
| 238 |
+
Bosheng Ding, Chengwei Qin, Linlin Liu, Yew Ken Chia, Boyang Li, Shafiq Joty, and Lidong Bing. 2023. Is GPT-3 a good data annotator? In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 11173–11195, Toronto, Canada. Association for Computational Linguistics.
|
| 239 |
+
Bosheng Ding, Chengwei Qin, Ruochen Zhao, Tianze Luo, Xinze Li, Guizhen Chen, Wenhan Xia, Junjie Hu, Anh Tuan Luu, and Shafiq Joty. 2024. Data augmentation using llms: Data perspectives, learning paradigms and challenges. arXiv preprint arXiv:2403.02990.
|
| 240 |
+
Liat Ein-Dor, Alon Halfon, Ariel Gera, Eyal Shnarch, Lena Dankin, Leshem Choshen, Marina Danilevsky, Ranit Aharonov, Yoav Katz, and Noam Slonim. 2020. Active Learning for BERT: An Empirical Study. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 7949-7962, Online. Association for Computational Linguistics.
|
| 241 |
+
Yansong Feng and Mirella Lapata. 2008. Automatic image annotation using auxiliary text information. In Proceedings of ACL-08: HLT, pages 272-280, Columbus, Ohio. Association for Computational Linguistics.
|
| 242 |
+
Fabrizio Gilardi, Meysam Alizadeh, and Mael Kubli. 2023. Chatgpt outperforms crowd workers for text-annotation tasks. Proceedings of the National Academy of Sciences, 120(30):e2305016120.
|
| 243 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. 2017. On calibration of modern neural networks. In International conference on machine learning, pages 1321-1330. PMLR.
|
| 244 |
+
Xingwei He, Zhenghao Lin, Yeyun Gong, A-Long Jin, Hang Zhang, Chen Lin, Jian Jiao, Siu Ming Yiu, Nan Duan, and Weizhu Chen. 2023. Annollm: Making large language models to be better crowdsourced annotators.
|
| 245 |
+
Michael A Hedderich, Lukas Lange, and Dietrich Klakow. 2021. Area: distant supervision for low-resource named entity recognition. the Practical Machine Learning For Developing Countries Workshop at ICLR.
|
| 246 |
+
Yan Hu, Iqra Ameer, Xu Zuo, Xueqing Peng, Yujia Zhou, Zehan Li, Yiming Li, Jianfu Li, Xiaogian Jiang, and Hua Xu. 2023. Zero-shot clinical entity recognition using chatgpt. arXiv preprint arXiv:2303.16416.
|
| 247 |
+
Chen Huang, Yiping Jin, Ilija Ilievski, Wenqiang Lei, and Jiancheng Lv. 2024a. ARAIDA: Analogical reasoning-augmented interactive data annotation. In
|
| 248 |
+
|
| 249 |
+
Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10660-10675, Bangkok, Thailand. Association for Computational Linguistics.
|
| 250 |
+
Chen Huang, Peixin Qin, Wenqiang Lei, and Jiancheng Lv. 2023. Reduce human labor on evaluating conversational information retrieval system: A human-machine collaboration approach. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 10876-10891, Singapore. Association for Computational Linguistics.
|
| 251 |
+
Chen Huang, Xinwei Yang, Yang Deng, Wenqiang Lei, JianCheng Lv, and Tat-Seng Chua. 2024b. Co-matching: Towards human-machine collaborative legal case matching.
|
| 252 |
+
Rebecca Hwa. 2000. Sample selection for statistical grammar induction. In 2000 Joint SIGDAT Conference on Empirical Methods in Natural Language Processing and Very Large Corpora, pages 45-52.
|
| 253 |
+
Eric Jang, Shixiang Gu, and Ben Poole. 2016. Categorical reparameterization with gumbel-softmax. arXiv preprint arXiv:1611.01144.
|
| 254 |
+
Heinrich Jiang, Been Kim, Melody Guan, and Maya Gupta. 2018. To trust or not to trust a classifier. NeurIPS, 31.
|
| 255 |
+
Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. 2017. Bag of tricks for efficient text classification. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, pages 427-431. Association for Computational Linguistics.
|
| 256 |
+
Jan-Christoph Klie, Michael Bugert, Beto Boullosa, Richard Eckart de Castilho, and Iryna Gurevych. 2018. The INCEpTION platform: Machine-assisted and knowledge-oriented interactive annotation. In COLING: System Demonstrations, pages 5-9, Santa Fe, New Mexico. ACL.
|
| 257 |
+
Thomas Kober, Julie Weeds, Lorenzo Bertolini, and David J. Weir. 2021. Data augmentation for hypernymy detection. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 1034-1048.
|
| 258 |
+
Oyku Deniz Kose and Yanning Shen. 2022. Fairness-aware selective sampling on attributed graphs. In ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5682-5686.
|
| 259 |
+
Trausti Kristjansson, Aron Culotta, Paul Viola, and Andrew McCallum. 2004. Interactive information extraction with constrained conditional random fields. In AAAI, volume 4, pages 412-418.
|
| 260 |
+
|
| 261 |
+
Stefan Larson, Adrian Cheung, Anish Mahendran, Kevin Leach, and Jonathan K Kummerfeld. 2020. Inconsistencies in crowdsourced slot-filling annotations: A typology and identification methods. In Proceedings of the 28th International Conference on Computational Linguistics, pages 5035-5046.
|
| 262 |
+
Yoonjoo Lee, John Joon Young Chung, Tae Soo Kim, Jean Y Song, and Juho Kim. 2022. Promptiverse: Scalable generation of scaffolding prompts through human-ai hybrid knowledge graph annotation. In CHI Conference on Human Factors in Computing Systems, pages 1-18.
|
| 263 |
+
Aoxue Li, Weiran Huang, Xu Lan, Jiashi Feng, Zhenguo Li, and Liwei Wang. 2020. Boosting few-shot learning with adaptive margin loss. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 12576-12584.
|
| 264 |
+
Minzhi Li, Taiwei Shi, Caleb Ziems, Min-Yen Kan, Nancy F. Chen, Zhengyuan Liu, and Diyi Yang. 2023. Coannotating: Uncertainty-guided work allocation between human and large language models for data annotation.
|
| 265 |
+
Yunyao Li, Elmer Kim, Marc A Touchette, Ramiya Venkatachalam, and Hao Wang. 2015. Vinery: A visual ide for information extraction. Proceedings of the VLDB Endowment, 8(12):1948-1951.
|
| 266 |
+
Aiwei Liu, Xuming Hu, Lijie Wen, and Philip S Yu. 2023. A comprehensive evaluation of chatgpt's zero-shot text-to-sql capability. arXiv preprint arXiv:2303.13547.
|
| 267 |
+
Christina Lohr, Johannes Kiesel, Stephanie Luther, Johannes Hellrich, Tobias Kolditz, Benno Stein, and Udo Hahn. 2019. Continuous quality control and advanced text segment annotation with WAT-SL 2.0. In Proceedings of the 13th Linguistic Annotation Workshop, pages 215-219, Florence, Italy. ACL.
|
| 268 |
+
Antonio Loquercio, Mattia Segu, and Davide Scaramuzza. 2020. A general framework for uncertainty estimation in deep learning. IEEE Robotics and Automation Letters, 5(2):3153-3160.
|
| 269 |
+
Bo-Ru Lu, Nikita Hahuong, Chia-Hsuan Lee, Zeqiu Wu, Hao Cheng, Paul Koester, Jean Utke, Tao Yu, Noah A. Smith, and Mari Ostendorf. 2024. Does collaborative human-lm dialogue generation help information extraction from human dialogues?
|
| 270 |
+
David Madras, Toni Pitassi, and Richard Zemel. 2018. Predict responsibly: improving fairness and accuracy by learning to defer. NeurIPS, 31.
|
| 271 |
+
Marian Marchal, Merel Scholman, and Vera Demberg. 2021. Semi-automatic discourse annotation in a low-resource language: Developing a connective lexicon for nigerian pidgin. In Proceedings of the 2nd Workshop on Computational Approaches to Discourse, pages 84-94.
|
| 272 |
+
|
| 273 |
+
Samuel Marcos-Pablos and Francisco J Garcia-Penalvo. 2020. Information retrieval methodology for aiding scientific database search. Soft Computing, 24(8):5551-5560.
|
| 274 |
+
Sören Mindermann, Jan M Brauner, Muhammed T Razzak, Mrinank Sharma, Andreas Kirsch, Winnie Xu, Benedikt Höltgen, Aidan N Gomez, Adrien Morisot, Sebastian Farquhar, et al. 2022. Prioritized training on points that are learnable, worth learning, and not yet learnt. In International Conference on Machine Learning, pages 15630-15649. PMLR.
|
| 275 |
+
Hussein Mozannar and David Sontag. 2020. Consistent estimators for learning to defer to an expert. In International Conference on Machine Learning, pages 7076-7087. PMLR.
|
| 276 |
+
Chenri Ni, Nontawat Charoenphakdee, Junya Honda, and Masashi Sugiyama. 2019. On the calibration of multiclass classification with rejection. NeurIPS, 32.
|
| 277 |
+
Nastaran Okati, Abir De, and Manuel Rodriguez. 2021. Differentiable learning under triage. NeurIPS, 34.
|
| 278 |
+
Jeffrey Pennington, Richard Socher, and Christopher D. Manning. 2014. Glove: Global vectors for word representation. In EMNLP, pages 1532-1543.
|
| 279 |
+
Maithra Raghu, Katy Blumer, Greg Corrado, Jon Kleinberg, Ziad Obermeyer, and Sendhil Mullainathan. 2019. The algorithmic automation problem: Prediction, triage, and human effort. arXiv preprint arXiv:1903.12220.
|
| 280 |
+
Pengzhen Ren, Yun Xiao, Xiaojun Chang, Po-Yao Huang, Zhihui Li, Xiaojiang Chen, and X. Wang. 2020. A survey of deep active learning. ArXiv, abs/2009.00236.
|
| 281 |
+
Stephen Roller, Katrin Erk, and Gemma Boleda. 2014. Inclusive yet selective: Supervised distributional hypernymy detection. In Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, pages 1025-1036.
|
| 282 |
+
Claudia Schulz, Christian M Meyer, Jan Kiesewetter, Michael Sailer, Elisabeth Bauer, Martin R Fischer, Frank Fischer, and Iryna Gurevych. 2019. Analysis of automatic annotation suggestions for hard discourse-level tasks in expert domains. In 57th Annual Meeting of the Association for Computational Linguistics (Acl 2019), pages 2761-2772. Association for Computational Linguistics.
|
| 283 |
+
Agam Shah and Sudheer Chava. 2023. Zero is not hero yet: Benchmarking zero-shot performance of llms for financial tasks. arXiv preprint arXiv:2305.16633.
|
| 284 |
+
Amirreza Shirani, Franck Dernoncourt, Paul Asente, Nedim Lipka, Seokhwan Kim, Jose Echevarria, and Thamar Solorio. 2019. Learning emphasis selection for written text in visual media from crowd-sourced label distributions. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1167-1172, Florence, Italy. Association for Computational Linguistics.
|
| 285 |
+
|
| 286 |
+
Abhinav Shrivastava, Abhinav Gupta, and Ross Girshick. 2016. Training region-based object detectors with online hard example mining. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 761-769.
|
| 287 |
+
Hongjin Su, Jungo Kasai, Chen Henry Wu, Weijia Shi, Tianlu Wang, Jiayi Xin, Rui Zhang, Mari Ostendorf, Luke Zettlemoyer, Noah A. Smith, and Tao Yu. 2022. Selective annotation makes language models better few-shot learners.
|
| 288 |
+
Yiming Tan, Dehai Min, Yu Li, Wenbo Li, Nan Hu, Yongrui Chen, and Guilin Qi. 2023. Evaluation of chatgpt as a question answering system for answering complex questions. arXiv preprint arXiv:2303.07992.
|
| 289 |
+
Ying-Peng Tang and Sheng-Jun Huang. 2019. Self-paced active learning: Query the right thing at the right time. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pages 5117-5124.
|
| 290 |
+
Philip Tovstogan, Xavier Serra, and Dmitry Bogdanov. 2020. Web interface for exploration of latent and tag spaces in music auto-tagging. In Proceedings of the 37th International Conference on Machine Learning. Vienna, Austria. ICML.
|
| 291 |
+
Hao Wang, Binyi Chen, and Wu-Jun Li. 2013. Collaborative topic regression with social regularization for tag recommendation. In Twenty-Third International Joint Conference on Artificial Intelligence.
|
| 292 |
+
Jiaan Wang, Yunlong Liang, Fandong Meng, Zengkui Sun, Haoxiang Shi, Zhixu Li, Jinan Xu, Jianfeng Qu, and Jie Zhou. 2023. Is chatgpt a good nlg evaluator? a preliminary study. arXiv preprint arXiv:2303.04048.
|
| 293 |
+
Tianyang Wang, Xingjian Li, Pengkun Yang, Guosheng Hu, Xiangrui Zeng, Siyu Huang, Cheng-Zhong Xu, and Min Xu. 2022. Boosting active learning via improving test performance. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 8566-8574.
|
| 294 |
+
Xin Wang and Siu Ming Yiu. 2021. Classification with rejection: scaling generative classifiers with supervised deep infomax. In Proceedings of the Twenty-Ninth International Conference on International Joint Conferences on Artificial Intelligence, pages 2980-2986.
|
| 295 |
+
Yong Wang, Xiao-Ming Wu, Qimai Li, Jiatao Gu, Wangmeng Xiang, Lei Zhang, and Victor OK Li. 2018. Large margin few-shot learning. arXiv preprint arXiv:1807.02872.
|
| 296 |
+
Zhuang Wang, Koby Crammer, and Slobodan Vucetic. 2012. Breaking the curse of kernelization: Budgeted stochastic gradient descent for large-scalesvm training. The Journal of Machine Learning Research, 13(1):3103-3131.
|
| 297 |
+
|
| 298 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35:24824-24837.
|
| 299 |
+
|
| 300 |
+
Bryan Wilder, Eric Horvitz, and Ece Kamar. 2021. Learning to complement humans. In Proceedings of the Twenty-Ninth International Conference on International Joint Conferences on Artificial Intelligence, pages 1526-1533.
|
| 301 |
+
|
| 302 |
+
Ruixuan Xiao, Yiwen Dong, Junbo Zhao, Runze Wu, Minmin Lin, Gang Chen, and Haobo Wang. 2023. FreeAL: Towards human-free active learning in the era of large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 14520-14535, Singapore. Association for Computational Linguistics.
|
| 303 |
+
|
| 304 |
+
Bingsheng Yao, Ishan Jindal, Lucian Popa, Yannis Katsis, Sayan Ghosh, Lihong He, Yuxuan Lu, Shashank Srivastava, James Hendler, and Dakuo Wang. 2023. Beyond labels: Empowering human with natural language explanations through a novel active-learning architecture.
|
| 305 |
+
|
| 306 |
+
Kaichun Yao, Chuan Qin, Hengshu Zhu, Chao Ma, Jingshuai Zhang, Yi Du, and Hui Xiong. 2021. An interactive neural network approach to keyphrase extraction in talent recruitment. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management, pages 2383-2393.
|
| 307 |
+
|
| 308 |
+
Yangjun Zhang, Pengjie Ren, and Maarten de Rijke. 2021. A human-machine collaborative framework for evaluating malevolence in dialogues. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5612-5623.
|
| 309 |
+
|
| 310 |
+
Dengyong Zhou, Olivier Bousquet, Thomas Lal, Jason Weston, and Bernhard Schölkopf. 2003. Learning with local and global consistency. In Advances in Neural Information Processing Systems, volume 16. MIT Press.
|
| 311 |
+
|
| 312 |
+
# A More Related Work
|
| 313 |
+
|
| 314 |
+
Our research is also tied to data annotation and active learning. Furthermore, we address the data triage problem by utilizing the idea of learning to defer. To elaborate on these approaches, we provide a literature review and highlight the differences from existing methods.
|
| 315 |
+
|
| 316 |
+
Data Annotation. Computer-assisted annotation (or interactive annotation) becomes an alternative option. Such methods enable a model to facilitate human annotation by providing annotation suggestions on the fly (Klie et al., 2018; Lohr et al., 2019; Marchal et al., 2021). However, these
|
| 317 |
+
|
| 318 |
+
methods still require manual validation on each prediction, which is inefficient and time-consuming. Thus, it is not feasible for the setting with limited annotation budgets.
|
| 319 |
+
|
| 320 |
+
Active Learning. It targets to select informative or representative data that can maximize the performance of a model (Ren et al., 2020). One way to achieve this is through the uncertainty-based method (Desmond et al., 2021b), which selects data with high prediction uncertainty for human annotation. Density-based methods are also commonly used, but recent studies show that these two methods are highly correlated (Loquercio et al., 2020). Additionally, research on selective sampling tries to combine active learning and online learning (Cesa-Bianchi et al., 2006, 2009), where the model is allowed to adaptively query the label of an observed data on the fly, according to its potential to improve the model's performance. Basically, selective sampling has shown its effectiveness in online large-scale kernel (Wang et al., 2012) and graph-based online learning (Kose and Shen, 2022). Semi-automatic annotation utilizes the online active learning (or selective sampling) methods to triage data for expert annotations and efficiently train a good model. However, our SANT goes beyond active learning by introducing the EAT mechanism, which identifies data that the model struggles to predict. SANT then employs the bi-weighting mechanism to combine EAT and active learning, enabling it to leverage both triage-to-human data (active learning) and triage-to-model data (EAT). This integration allows SANT to take full advantage of both methods, resulting in more efficient and accurate annotations.
|
| 321 |
+
|
| 322 |
+
Learning to Defer. The collaboration between humans and machines can be described as "learning to defer", where tasks are jointly completed by either the machine or deferred to humans for decision-making (Raghu et al., 2019; Okati et al., 2021; Madras et al., 2018). To achieve the overall goal, a triage strategy is employed to dynamically assign tasks to different collaborators, optimizing global utilization. Depending on the customized triage strategies, existing approaches assign data with high prediction uncertainty to humans (Ni et al., 2019), while out-of-distribution and noisy data to humans for decision-making (Wang and Yiu, 2021). Additionally, Jiang et al. (2018) assign data with unreliable model predictions to humans to mitigate prediction bias. Existing semi-automatic data annotation methods can also be incorporated
|
| 323 |
+
|
| 324 |
+
into the learning to defer framework, where the informative data are deferred to humans by AL methods. Recent work tries to assign data based on the uncertainty of LLM predictions (Li et al., 2023), where the parameters of LLM are frozen during the whole annotation process, as is the uncertainty measurement method. However, this approach hinders the model's ability to improve its annotation results by learning from the data, relying heavily on LLM's data annotation capability for general tasks. As highlighted by our work and other researchers (Xiao et al., 2023), the annotation outcomes of LLM in general tasks are not satisfying. To update the annotation model on the fly, we notice that applying "learning to defer" to data annotation tasks is particularly challenging. This is because existing works on learning to defer primarily focus on fully supervised settings where labels are available, whereas in the annotation task, labels are only accessible when a human is selected for annotation. This motivates us to develop a model that can learn and generalize from limited labeled data on the fly (cf. Section 3.2.3). Furthermore, we propose two tailored mechanisms, i.e., EAT and biweighting mechanisms, and experimentally reveal some insights for the data annotation task.
|
| 325 |
+
|
| 326 |
+
# B More Evaluation Results of SANT on Overall Dataset
|
| 327 |
+
|
| 328 |
+
Tables 3 and 4 demonstrate the annotation quality of each method on the overall data. These findings align with those in Tables 1 and 2, indicating that proper allocation of data to both human and model workers results in higher-quality annotation. Moreover, SANT effectively balances the advantages of triage-to-human data and triage-to-model data by allocating triage-to-model data to improve model annotation quality through easy-to-predict instances.
|
| 329 |
+
|
| 330 |
+
Moreover, we report the more results of model annotation quality on two datasets, including SST-5 and FreeBase in Table 5. Due to financial limits, we compare our method with the advanced AL method (Exp-gn) and the random-based method. Based on the table results, it is clear that our method continues to be effective. Moreover, when compared to LLM-based annotators, our method can generate higher-quality annotations with some human assistance. This highlights the importance of human experts in achieving high annotation quality, even though LLMs may be efficient annotators. In
|
| 331 |
+
|
| 332 |
+
the revision, we will conduct more experiments to provide stronger validation.
|
| 333 |
+
|
| 334 |
+
# C Ablation study on the proposed max-margin loss $L_{m}$
|
| 335 |
+
|
| 336 |
+
As shown in Section 3.2.2, EAT uses the max-margin loss $L_{m}$ to take advantage of the partially labeled data. The loss is parameterized by a margin hyper-parameter $\tau$ to force the average loss on the assign-to-human data to be much higher than the assign-to-model data. In this section, we offer a detailed discussion of the loss itself and the sensitivity analysis. Specifically, the ablation study on $L_{m}$ and the hyper-parameter sensitivity study on $\tau$ are given in Figure 4. Here, we take the sentiment annotation task as an example, and require SANT w/o AL to reject $50\%$ of the data to the model in each batch, making sure our ablation studies are performed on the training data of the same size. We focus on the model performances on model-annotated data, marked as $MA_{Accept}$ . Here, $\tau$ is tuned in $\{0,0.1,0.3,0.5,0.7,1.0\}$ . According to the results, we believe that the max-margin loss $L_{m}$ helps train a better EAT. Moreover, the $L_{m}$ is relatively less sensitive to its hyper-parameter $\tau$ . Thus, we simply choose $\tau = 0.3$ .
|
| 337 |
+
|
| 338 |
+

|
| 339 |
+
Figure 4: Ablation study on $L_{m}$ and hyper-parameter tuning analysis on $\tau$ . We simply choose $\tau = 0.3$ in our experiments.
|
| 340 |
+
|
| 341 |
+
# D Details on Datasets
|
| 342 |
+
|
| 343 |
+
To comprehensively evaluate SANT, we use IMDB $^3$ , WN18RR $^4$ , and CiteULike $^5$ to simulate sentiment annotation, knowledge graph completion, and tagging tasks, respectively. Those
|
| 344 |
+
|
| 345 |
+
<table><tr><td>Task</td><td>Annotation Method</td><td>Data Triage</td><td>10%</td><td>20%</td><td>30%</td><td>40%</td><td>50%</td><td>60%</td><td>70%</td><td>80%</td><td>90%</td></tr><tr><td rowspan="6">Sentiment Annotation (binary classification)</td><td>Random</td><td>Random</td><td>84.61</td><td>85.90</td><td>87.57</td><td>89.64</td><td>91.08</td><td>92.89</td><td>94.68</td><td>96.50</td><td>98.24</td></tr><tr><td>Calibrated MaxEntropy</td><td>Classic AL</td><td>85.85</td><td>88.34</td><td>91.22</td><td>93.59</td><td>96.29</td><td>98.47</td><td>98.85</td><td>99.22</td><td>99.62</td></tr><tr><td>MaxEntropy</td><td>Classic AL</td><td>84.84</td><td>88.07</td><td>90.92</td><td>93.77</td><td>96.61</td><td>98.38</td><td>98.78</td><td>99.18</td><td>99.59</td></tr><tr><td>Ent-gn</td><td>Advanced AL</td><td>85.93</td><td>88.47</td><td>91.27</td><td>94.46</td><td>96.50</td><td>98.53</td><td>98.90</td><td>99.26</td><td>99.65</td></tr><tr><td>Exp-gn</td><td>Advanced AL</td><td>85.94</td><td>88.46</td><td>91.23</td><td>94.46</td><td>96.49</td><td>98.52</td><td>98.90</td><td>99.28</td><td>99.64</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>85.94</td><td>88.46</td><td>91.55</td><td>94.47</td><td>96.89</td><td>98.51</td><td>99.10</td><td>99.53</td><td>99.78</td></tr><tr><td rowspan="6">Knowledge Graph Completion (multi-class classification)</td><td>Random</td><td>Random</td><td>60.37</td><td>64.62</td><td>69.14</td><td>73.49</td><td>77.94</td><td>82.83</td><td>87.11</td><td>91.41</td><td>95.68</td></tr><tr><td>Calibrated MaxEntropy</td><td>Classic AL</td><td>60.99</td><td>67.13</td><td>72.53</td><td>78.50</td><td>82.24</td><td>85.89</td><td>89.38</td><td>92.92</td><td>96.43</td></tr><tr><td>MaxEntropy</td><td>Classic AL</td><td>61.19</td><td>67.12</td><td>72.89</td><td>77.77</td><td>81.54</td><td>85.57</td><td>89.24</td><td>92.64</td><td>96.29</td></tr><tr><td>Ent-gn</td><td>Advanced AL</td><td>59.03</td><td>64.86</td><td>71.54</td><td>76.09</td><td>82.60</td><td>87.48</td><td>92.65</td><td>95.62</td><td>97.94</td></tr><tr><td>Exp-gn</td><td>Advanced AL</td><td>59.63</td><td>65.45</td><td>72.20</td><td>76.91</td><td>82.70</td><td>87.23</td><td>93.07</td><td>96.35</td><td>98.14</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>59.63</td><td>65.45</td><td>73.98</td><td>79.79</td><td>85.89</td><td>91.47</td><td>95.51</td><td>97.46</td><td>98.72</td></tr><tr><td rowspan="6">Tagging (multi-label classification)</td><td>Random</td><td>Random</td><td>53.90</td><td>59.56</td><td>65.20</td><td>71.05</td><td>74.79</td><td>80.19</td><td>84.96</td><td>90.02</td><td>95.51</td></tr><tr><td>Calibrated MaxEntropy</td><td>Classic AL</td><td>53.90</td><td>58.50</td><td>63.64</td><td>68.92</td><td>74.14</td><td>79.60</td><td>84.87</td><td>89.86</td><td>94.94</td></tr><tr><td>MaxEntropy</td><td>Classic AL</td><td>53.90</td><td>58.56</td><td>63.88</td><td>69.04</td><td>74.24</td><td>79.47</td><td>84.77</td><td>89.85</td><td>94.94</td></tr><tr><td>Ent-gn</td><td>Advanced AL</td><td>53.90</td><td>59.90</td><td>65.94</td><td>71.76</td><td>74.76</td><td>80.81</td><td>86.44</td><td>91.29</td><td>95.84</td></tr><tr><td>Exp-gn</td><td>Advanced AL</td><td>53.90</td><td>59.92</td><td>65.66</td><td>71.73</td><td>74.75</td><td>80.10</td><td>86.34</td><td>91.09</td><td>95.78</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>53.90</td><td>59.92</td><td>66.57</td><td>72.61</td><td>77.63</td><td>82.64</td><td>88.34</td><td>93.65</td><td>96.85</td></tr></table>
|
| 346 |
+
|
| 347 |
+
Table 3: The annotation quality of SANT and baselines on overall data $(\%)$ . We consider three annotation tasks with different difficulties. The best performance is marked in bold and second best is underlined.
|
| 348 |
+
|
| 349 |
+
<table><tr><td>Task</td><td>Annotation Method</td><td>Data Triage</td><td>10%</td><td>20%</td><td>30%</td><td>40%</td><td>50%</td><td>60%</td><td>70%</td><td>80%</td><td>90%</td></tr><tr><td rowspan="3">Sentiment Annotation</td><td>SANT w/o EAT</td><td>Advanced AL</td><td>85.94</td><td>88.46</td><td>91.23</td><td>94.46</td><td>96.49</td><td>98.52</td><td>98.90</td><td>99.28</td><td>99.64</td></tr><tr><td>SANT w/o AL</td><td>EAT</td><td>85.51</td><td>88.13</td><td>91.52</td><td>94.47</td><td>96.70</td><td>98.45</td><td>99.09</td><td>99.49</td><td>99.77</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>85.94</td><td>88.46</td><td>91.55</td><td>94.47</td><td>96.89</td><td>98.51</td><td>99.10</td><td>99.53</td><td>99.78</td></tr><tr><td rowspan="3">Knowledge Graph Completion</td><td>SANT w/o EAT</td><td>Advanced AL</td><td>59.63</td><td>65.45</td><td>72.20</td><td>76.91</td><td>82.70</td><td>87.23</td><td>93.07</td><td>96.35</td><td>98.14</td></tr><tr><td>SANT w/o AL</td><td>EAT</td><td>61.35</td><td>67.80</td><td>73.93</td><td>79.65</td><td>85.81</td><td>91.43</td><td>95.50</td><td>97.46</td><td>98.71</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>59.63</td><td>65.45</td><td>73.98</td><td>79.79</td><td>85.89</td><td>91.47</td><td>95.51</td><td>97.46</td><td>98.72</td></tr><tr><td rowspan="3">Tagging</td><td>SANT w/o EAT</td><td>Advanced AL</td><td>53.90</td><td>59.92</td><td>65.66</td><td>71.73</td><td>74.75</td><td>80.10</td><td>86.34</td><td>91.09</td><td>95.78</td></tr><tr><td>SANT w/o AL</td><td>EAT</td><td>53.90</td><td>59.85</td><td>65.80</td><td>71.78</td><td>77.62</td><td>82.61</td><td>88.32</td><td>93.64</td><td>96.85</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>53.90</td><td>59.92</td><td>66.57</td><td>72.61</td><td>77.63</td><td>82.64</td><td>88.34</td><td>93.65</td><td>96.85</td></tr></table>
|
| 350 |
+
|
| 351 |
+
Table 4: The annotation quality of SANT and its ablation counterparts on the overall data $(\%)$
|
| 352 |
+
|
| 353 |
+
three datasets are all English datasets and they formulate three different classification problems, including binary-class classification, multi-class classification, and multi-label classification problems. For the sentiment annotation, the annotator is required to label the binary sentiment based on the input movie review. As for the knowledge graph completion, the annotator is required to label the semantic relation of an input word pair. As for the tagging task, the annotator is required to label the tags of a scientific paper.
|
| 354 |
+
|
| 355 |
+
Specifically, IMDB is a common-used data with 50K movie reviews and binary sentiment classes. WN18RR we use is a subset of WN18 with no inverse relations. WN18RR contains 93003 triples, 40943 entities, and 11 relation types. Lastly, CiteULike (Chen et al., 2020a; Wang et al., 2013) is a commonly used tagging dataset, collected from CiteULike and Google Scholar. It includes 7288 authors' 160272 citations on 8212 papers, together with 46391 different tags. Each paper in this dataset has its abstract, title, and multiple tags. The con
|
| 356 |
+
|
| 357 |
+
catenation of them are used as the input in our experiments. Following (Chen et al., 2020a), we also use 500 most frequent tags in our tagging experiment.
|
| 358 |
+
|
| 359 |
+
Considering the human-model interaction efficiency, light-weighted annotation models or systems are always preferred (Desmond et al., 2021a; Chen et al., 2020a). In our experiments, we use the pre-trained GloVe $^6$ (Pennington et al., 2014) for all tasks to encode the word representation without fine-tuning. For all the dataset, we first filter out words that are not contained in the pre-trained Glove embedding. For word pairs in WN18RR, we only retain those pairs that both words have Glove embeddings. Following previous works (Roller et al., 2014; Kober et al., 2021), the word pair embedding is simply obtained by concatenating the embedding of two words. As for the sentence embedding used in CiteULike and IMDB, we follow
|
| 360 |
+
|
| 361 |
+
<table><tr><td>Task</td><td>Annotation Method</td><td>Data Triage</td><td>10%</td><td>20%</td><td>30%</td><td>40%</td><td>50%</td><td>60%</td><td>70%</td><td>80%</td><td>90%</td></tr><tr><td rowspan="5">Sentiment Annotation (multi-class annotation) SST-5</td><td>Zero-shot ChatGPT</td><td>None</td><td colspan="9">41.30</td></tr><tr><td>Few-shot ChatGPT</td><td>None</td><td colspan="9">53.85</td></tr><tr><td>Random</td><td>Random</td><td>30.02</td><td>33.59</td><td>36.64</td><td>37.56</td><td>38.23</td><td>38.79</td><td>39.33</td><td>39.54</td><td>39.95</td></tr><tr><td>Exp-gn</td><td>Advanced AL</td><td>30.13</td><td>34.04</td><td>38.43</td><td>40.09</td><td>45.74</td><td>49.63</td><td>54.08</td><td>60.31</td><td>64.95</td></tr><tr><td>SANT</td><td>Advanced AL + EAT</td><td>30.13</td><td>34.04</td><td>40.77</td><td>43.60</td><td>49.20</td><td>54.87</td><td>59.81</td><td>65.26</td><td>70.51</td></tr><tr><td rowspan="5">Knowledge graph completion (multi-class annotation) FreeBase</td><td>Zero-shot ChatGPT</td><td>None</td><td colspan="9">38.85</td></tr><tr><td>Few-shot ChatGPT</td><td>None</td><td colspan="9">51.60</td></tr><tr><td>Random</td><td>Random</td><td>22.46</td><td>35.19</td><td>42.77</td><td>48.54</td><td>52.50</td><td>55.31</td><td>57.75</td><td>60.26</td><td>61.88</td></tr><tr><td>Exp-gn</td><td>Advanced AL</td><td>22.86</td><td>36.56</td><td>46.84</td><td>50.56</td><td>64.18</td><td>69.99</td><td>73.98</td><td>79.22</td><td>83.48</td></tr><tr><td>SANT (Ours)</td><td>Advanced AL + EAT</td><td>22.86</td><td>36.56</td><td>45.03</td><td>52.17</td><td>58.79</td><td>74.53</td><td>77.04</td><td>83.77</td><td>88.13</td></tr></table>
|
| 362 |
+
|
| 363 |
+
Table 5: More results on the annotation quality of SANT and baselines on model-annotated data. Two more datasets are considered here, including the SST-5 and FreeBase. Due to financial constraint, we compare our method with the ChatGPT, advanced AL method (Exp-gn), and random-based method.
|
| 364 |
+
|
| 365 |
+
the FastText (Joulin et al., 2017) and obtain the sentence embedding by averaging the word embedding. We also remove the data if its $90\%$ words (or more) have no Glove embeddings.
|
| 366 |
+
|
| 367 |
+
# E Implementation details
|
| 368 |
+
|
| 369 |
+
# E.1 Implementation of SANT
|
| 370 |
+
|
| 371 |
+
SANT is flexible to integrate fancy models. It shares the same model annotator with semi-automatic annotation. However, considering the efficiency requirement of the human-model interaction, light-weighted annotation models or systems are always preferred (Desmond et al., 2021a; Chen et al., 2020a). Referring to Chen et al. (2020a), MLP is used as the EAT. For Implementation, our EAT outputs a two-dimensional predictive distribution as the triage signal rather than a real number between 0 and 1. By this means, we avoid setting a threshold to map the number to binary values of 0 and 1. We also use the class weight to $L_{d}$ to handle the potential class imbalance problem and penalize mistakes in the minority class. Specifically, the weight is calculated based on the cumulative class distribution of human annotations. As for the model annotator in SANT, we use the corresponding model used in the semi-automatic annotation method. All our codes are implemented in Pytorch with one Nvidia GeForce RTX 3090. The three-layer FC with ReLu activation and dropout is utilized. Moreover, we set $k = 3$ for retrieving top-k local information to integrate the input correlations. To ease the optimization, We also relax $\mathbb{1}[y_t \neq \max(f_t(x_t))]$ to $\mathbb{1}[HR@10 > 0]$ in $L_{d}$ during the optimization of multi-label tagging annotator. Regarding the hyper-parameter $T_{0}$ in the bi-weighting mechanism, we set it to be 0.2 for all experiments without tuning.
|
| 372 |
+
|
| 373 |
+
Finally, to simulate the limited annotation budgets setting, we tune the annotation budgets from $10\%$ to $90\%$ with a step size of $10\%$ , where $10\%$ budgets mean the human can only annotate $10\%$ data. We also require the human to annotate the first 1k data to initialize the model annotator for each annotation method. Note that when it comes to the Tagging task, the first 1k data and the $10\%$ annotation budgets are almost equal. Therefore, in the case of $10\%$ annotation budgets, all the budgets (i.e., the first 1k data) are used for human annotations. The corresponding results of the different triage-based methods in Table 1 and Table 2 are the same.
|
| 374 |
+
|
| 375 |
+
# E.2 Implementation of Baselines
|
| 376 |
+
|
| 377 |
+
Following Wang et al. (2022), our AL-based methods update the task model on the fly and output the model at the end of interactive data selection/annotation. As for MaxEntropy and Calibrated MaxEntropy, we measure uncertainty in sentiment annotation and knowledge graph completion, entropy is used, following a recent annotation method (Desmond et al., 2021b; Li et al., 2023). In the case of the tagging task, which is a multi-label classification task, total entropy (Depeweg et al., 2018) is used. Next, a dynamic mechanism (Wilder et al., 2021) is used to assign the input data, rather than adjusting the threshold. Specifically, an data $x_{t}$ is assigned to human if $(1 - d_{t}^{AL}(x_{t}))\max (f_{t}(x_{t})) < d_{t}^{AL}(x_{t})$ holds. Here, $\max (\cdot)$ outputs the maximal value of the input vector. By this means, the human receives data with sufficiently high AL score, or sufficiently uncertain model output. As for Exp-gn and Ent-gn, the outputs of the active learning method (Wang et al., 2022) can not be easily normalized. In this case, half the data in a batch with the highest AL
|
| 378 |
+
|
| 379 |
+
scores<sup>7</sup> are assigned to the human and the rest to the model.
|
| 380 |
+
|
| 381 |
+
# E.3 Implementation of Human Simulation
|
| 382 |
+
|
| 383 |
+
We consider human-machine cooperative data annotation under limited budgets, specifically a budget that restricts the number of human annotators that can be employed to annotate the entire dataset. In this case, our experiments focus solely on estimating the cost of human annotation, as it significantly outweighs the cost of model annotation, as evidenced by previous studies (Li et al., 2023; Gilardi et al., 2023). In particular, following previous works on data annotation (Chen et al., 2020a; Desmond et al., 2021a; Hedderich et al., 2021) and human-model interaction (Hwa, 2000; Kristjansson et al., 2004), we assume a consistent cost for human annotation per data point. This allows us to estimate the overall annotation budget using the number of human-annotated data points. To simulate human annotation behavior, we mask out the ground truth in the datasets. The ground truth is revealed when the human is selected by the data triage module. Moreover, to simulate the constraints of limited annotation budgets, we adjust the budget allocation from $10\%$ to $90\%$ of the dataset, with increments of $10\%$ . This means that under a $10\%$ budget, human annotators can only label $10\%$ of the total dataset. This range of budget constraints allows us to assess the performance of SANT under varying budget limitations.
|
| 384 |
+
|
| 385 |
+
# F Optimization Details of SANT
|
| 386 |
+
|
| 387 |
+
In SANT, whenever the human reveals the ground truth of $x_{t}$ , the model $f_{t}$ is updated with $L_{f}$ serving as the learning loss for the model (e.g., NLLLoss). However, our research focus is not on building a better model annotator. Therefore, we use different task-specified off-the-shelf model annotators in our experiments.
|
| 388 |
+
|
| 389 |
+
To simplify the optimization process, we optimize the model annotator $f_{t}$ , EAT $d_{t}^{EAT}$ , and AL method $d_{t}^{AL}$ independently. The loss function for AL, denoted as $L_{AL}$ (if applicable), is included in the overall loss function $\mathcal{L}$ of SANT, which is the sum of $L_{f}$ , $L_{EAT}$ , and $L_{AL}$ . It is important to note that all human-annotated data from past human-model interactions are utilized for optimization.
|
| 390 |
+
|
| 391 |
+
During optimization, three things are taken into consideration. First, the output of the data triage module is relaxed to continuous values over $[0,1]$ to avoid the integer optimization problem. Second, the top-k retrieval and data triage modules are implemented using the Gumbel-softmax reparameterization trick (Jang et al., 2016) to ease the non-differentiable problem. Finally, the overall loss function is a bi-level optimization problem (Bard, 2013), where optimizing the data allocation (i.e., $d_{t}^{AL}$ and $d_{t}^{EAT}$ ) is nested within another problem of optimizing the model annotator $f_{t}$ . Thus, we update $f_{t}$ and data allocation independently and iteratively in a coordinate-descent style. Specifically, let $\theta_f^k$ , $\theta_{dEAT}^k$ , and $\theta_{dAL}^k$ be the network parameters for $f$ , $d^{EAT}$ , and $d^{AL}$ at optimization iteration $k$ . The update procedure is given in Eq.(4). In the $k^{th}$ optimization iteration, we first optimize the parameter of model $f$ with the parameter of $d^{EAT}$ and $d^{AL}$ fixed. In the $(k + 1)^{th}$ epoch, we exchange and optimize $d^{EAT}$ and $d^{AL}$ with $f$ fixed, and so on.
|
| 392 |
+
|
| 393 |
+
$$
|
| 394 |
+
\begin{array}{l} \theta_ {f} ^ {k + 1} = \theta_ {f} ^ {k} - \bigtriangledown_ {f} \mathcal {L} \left(f ^ {k}, (d ^ {E A T}) ^ {k}, (d ^ {A L}) ^ {k}\right), \\ \theta_ {d ^ {E A T}} ^ {k + 1} = \theta_ {d ^ {E A T}} ^ {k} - \bigtriangledown_ {d ^ {E A T}} \mathcal {L} \left(f ^ {k + 1}, (d ^ {E A T}) ^ {k}, (d ^ {A L}) ^ {k}\right), \\ \theta_ {d ^ {A L}} ^ {k + 1} = \theta_ {d ^ {A L}} ^ {k} - \bigtriangledown_ {d ^ {A L}} \mathcal {L} \left(f ^ {k + 1}, \left(d ^ {E A T}\right) ^ {k}, \left(d ^ {A L}\right) ^ {k}\right). \tag {4} \\ \end{array}
|
| 395 |
+
$$
|
| 396 |
+
|
| 397 |
+
In our approach, EAT is optimized towards measuring the predictive ability of $f_{t + 1}$ instead of $f_{t}$ . It is important to note that if the AL method does not contain a learnable parameter, such as entropy-based AL, it can be omitted from the optimization process.
|
| 398 |
+
|
| 399 |
+
# G Automatic annotation via ChatGPT
|
| 400 |
+
|
| 401 |
+
Since ChatGPT has demonstrated strong zero-shot, few-shot, and CoT capabilities in various domains and tasks (Liu et al., 2023; Hu et al., 2023; Shah and Chava, 2023), we use ChatGPT for automatic data annotation experiments. Specifically, we test various prompting methods for ChatGPT, including zero-shot, few-shot, zero-shot CoT, and few-shot CoT prompts. The prompts for three annotation tasks are provided in Table 7. Due to the cost of using ChatGPT, we sample a subset for each task and then deliver it to ChatGPT for data annotation. Specifically, for the sentiment annotation task, we randomly sample 1000 data for ChatGPT annotation. As for the knowledge graph completion task, the WN18RR data contains multiple relation types.
|
| 402 |
+
|
| 403 |
+
<table><tr><td rowspan="2">Res.</td><td colspan="3">KGC</td><td colspan="3">SA</td><td colspan="3">Tagging</td></tr><tr><td>SANT (re-anno.)</td><td>SANT (re-train+re-anno.)</td><td>SANT</td><td>SANT (re-anno.)</td><td>SANT (re-train+re-anno.)</td><td>SANT</td><td>SANT (re-anno.)</td><td>SANT (re-train+re-anno.)</td><td>SANT</td></tr><tr><td>10%</td><td>61.93</td><td>-</td><td>59.63</td><td>86.05</td><td>-</td><td>85.94</td><td>53.90</td><td>-</td><td>53.90</td></tr><tr><td>20%</td><td>68.15</td><td>-</td><td>65.45</td><td>88.73</td><td>-</td><td>88.46</td><td>60.15</td><td>-</td><td>59.92</td></tr><tr><td>30%</td><td>74.67</td><td>-</td><td>73.98</td><td>92.09</td><td>-</td><td>91.55</td><td>66.32</td><td>-</td><td>66.57</td></tr><tr><td>40%</td><td>79.72</td><td>-</td><td>79.79</td><td>95.01</td><td>-</td><td>94.47</td><td>71.91</td><td>-</td><td>72.61</td></tr><tr><td>50%</td><td>86.04</td><td>-</td><td>85.89</td><td>97.32</td><td>-</td><td>96.89</td><td>78.10</td><td>-</td><td>77.63</td></tr><tr><td>60%</td><td>91.49</td><td>93.93</td><td>91.47</td><td>98.64</td><td>99.09</td><td>98.51</td><td>82.63</td><td>87.20</td><td>82.64</td></tr><tr><td>70%</td><td>95.60</td><td>95.61</td><td>95.51</td><td>99.15</td><td>99.24</td><td>99.10</td><td>88.33</td><td>89.31</td><td>88.34</td></tr><tr><td>80%</td><td>97.46</td><td>97.48</td><td>97.46</td><td>99.55</td><td>99.53</td><td>99.53</td><td>93.64</td><td>93.66</td><td>93.65</td></tr><tr><td>90%</td><td>98.71</td><td>98.72</td><td>98.72</td><td>99.80</td><td>99.76</td><td>99.78</td><td>96.85</td><td>96.91</td><td>96.85</td></tr></table>
|
| 404 |
+
|
| 405 |
+
Table 6: The overall annotation quality of SANT after the model annotator (re-train and) re-annotating the data that are previously model-annotated. Here, '-' means no human budgets left when data run out.
|
| 406 |
+
|
| 407 |
+
As a result, we choose 100 data at random from each class for ChatGPT annotation. Last, ChatGPT fails at the tagging task, because the dataset CiteU-Like contains 500 different tags in our experiments. Despite our several attempts, ChatGPT is unable to select one or more tags from the 500 available ones based on the semantics of the input words. Therefore, we cut down the candidates to 200.
|
| 408 |
+
|
| 409 |
+
In practice, as ChatGPT has been banned in some countries, we use Monica (refer to https://monica.im/) for annotations, which is a Chrome extension powered by ChatGPT API. As free users of Monica, we have a daily usage limit. Thus, we require Monica to annotate multiple instances at a time (precisely, 20 at a time).
|
| 410 |
+
|
| 411 |
+
# H Practical suggestions for the interactive annotation system implementation
|
| 412 |
+
|
| 413 |
+
To implement SANT into an annotation system in the practical scenario, some tricks might be helpful to further reduce human annotation labor and improve the annotation quality of both the human and model.
|
| 414 |
+
|
| 415 |
+
# H.1 Improving user experience
|
| 416 |
+
|
| 417 |
+
Considering generating an annotated dataset is usually time-consuming and expensive for the human, building an annotation tool with a user-friendly UI into the system plays an important role. A previous study on the tool design shows that if offering a better user experience during the annotation (Cerezo et al., 2021), the annotation quality improves.
|
| 418 |
+
|
| 419 |
+
# H.2 Providing annotation suggestions to human
|
| 420 |
+
|
| 421 |
+
When the human is selected to annotate data, the annotation system could attach the model predictions as suggestions to the human (Desmond et al.,
|
| 422 |
+
|
| 423 |
+
2022; Klie et al., 2018), avoiding the need to annotate data from scratch and thus reducing human cognitive labor.
|
| 424 |
+
|
| 425 |
+
# H.3 On error-prone human annotations
|
| 426 |
+
|
| 427 |
+
Human annotations could be error-prone and inconsistent. It would usually hamper the overall annotation quality. Some works from other research domains are devoted to examining the error-prone human annotations, such as the crowd-sourced data annotation (Shirani et al., 2019; Larson et al., 2020). Considering it is not the research focus of this paper, we suggest the reader to those works before implementing a real human-model interactive system.
|
| 428 |
+
|
| 429 |
+
# H.4 Post hoc correction for model annotation
|
| 430 |
+
|
| 431 |
+
The system might also involve more strategies to improve model annotations in a post hoc way. The system could use the model annotator from the final round, and re-announce data, that was originally model-annotated at the early annotation rounds. If the final model in SANT is properly trained, the quality of the annotations might be further enhanced. If there are some budgets left for the human to annotate, the final model could be re-trained before the re-annotating, together with the newly human-annotated data.
|
| 432 |
+
|
| 433 |
+
Taking SANT for example, Table 6 demonstrates the improvement in annotation quality after the model annotator re-annotated the data that were previously model-annotated. The re-annotation does help to improve the quality, and such improvement could be further enhanced by the re-training procedure. However, model re-training and model re-annotating require extra time cost. In the real-world scenario, one should decide whether to use the two extra modules (i.e., the model re-training and
|
| 434 |
+
|
| 435 |
+
model re-annotating) based on the product form of his or her annotation system.
|
| 436 |
+
|
| 437 |
+
<table><tr><td>Task</td><td>Zero-shot</td><td>Zero-shot CoT</td></tr><tr><td>SA</td><td>##### Read the sentences and identify their sentiment. There are two options: negative or positive ### 1. [INPUT_WORD1] 2. [INPUT_WORD2]</td><td>#### Read the sentences and identify their sentiment. You should think step by step and output the sentiment of each sentence. There are two optional sentiments: negative or positive ### 1. [INPUT_WORD1] 2. [INPUT_WORD2]</td></tr><tr><td>KGC</td><td>##### Read the word pairs and identify their semantic relation. There are 11 options: entailment, hyponym, hypernym , member, synonym, antonym, ... ### 1. [INPUT_WORD1], [INPUT_WORD2] 2. [INPUT_WORD3], [INPUT_WORD4]</td><td>#### Read the word pairs and identify their semantic relation. You should think step by step and output the semantic relation of each sentence. You have the following options: entailment, hyponym, hypernym, member, synonym, antonym, ... ### 1. [INPUT_WORD1], [INPUT_WORD2] 2. [INPUT_WORD3], [INPUT_WORD4]</td></tr><tr><td>Tagging</td><td>##### Read the following sentences, choose one or more tags from the TagSet that correspond to each sentence's semantics. TagSet{...} ### 1. [INPUT_WORD1] 2. [INPUT_WORD2]</td><td>#### Read the following sentences, choose one or more tags from the TagSet that correspond to each sentence's semantics. You should think step by step and output the tag list of each sentence. TagSet{...} ### 1. [INPUT_WORD1] 2. [INPUT_WORD2]</td></tr><tr><td>Task</td><td>Few-shot</td><td>Few-shot CoT</td></tr><tr><td>SA</td><td>##### Read the sentences and identify their sentiment. There are two options: negative or positive Here are two examples that you can refer to. Example 1: Input sentence: What a script, what a story, what a mess! Sentiment: negative Example 2: Input sentence: This is a great movie. Too bad it is not available on home video. Sentiment: positive ### 1. [INPUT_WORD1] 2. [INPUT_WORD2]</td><td>## Read the sentences and identify their sentiment. You should think step by step and output the sentiment of each sentence. There are two optional sentiments: negative or positive Example 1: Input sentence: What a script, what a story, what a mess! Think step by step: He/she thinks the script and story are messy. Therefore, the sentiment is negative. Sentiment: negative Example 2: Input sentence: This is a great movie. Too bad it is not available on home video. Think step by step: He/she thinks the movie is great and he/she would like to watch it on home video. He/she really love this movie. Therefore, the sentiment is positive Sentiment: positive ### 1. [INPUT_WORD1] 2. [INPUT_WORD2]</td></tr><tr><td>KGC</td><td>##### Read the word pairs and identify their semantic relation. You have the following options: entailment, hyponym, hypernym, ... Here are some examples that you can refer to. Example 1: Input word pair: 3D, film semantic relation: hyponym Example 2: Input word pair: ability, unfitness semantic relation: antonym Example 3: Input word pair: abominably,atrociously semantic relation: synonym Example 4: Input word pair: acclaim, sanction semantic relation: entailment ### 1. [INPUT_WORD1], [INPUT_WORD2] 2. [INPUT_WORD3], [INPUT_WORD4] ...</td><td>## Read the word pairs and identify their semantic relation. You should think step by step and output the semantic relation of each sentence. You have the following options: hyponym, antonym, synonym, hypernym, entailment, member,... Here are some examples that you can refer to. Example 1: Input word pair: 3D, film Think step by step: 3D films are a type of film, so the relationship between the two words is hyponym semantic relation: hyponym Example 2: Input word pair: ability, unfitness Think step by step: In most cases, the term "unfitness" refers to anything or someone who is not appropriate for the task at hand, meaning that their ability is inadequate. Therefore, the relationship between the two words is antonym semantic relation: antonym Example 3: Input word pair: abominably,atrociously Think step by step: Abhorrently and atrociously both refer to something that is extremely unpleasant or unfair. Therefore, the relationship between the two words is synonym semantic relation: synonym Example 4: Input word pair: acclaim, sanction Think step by step: Acknowledge is used to describe enthusiastic public praise. The verb sanction can be used to signify to grant permission or approval for (an activity). So the relationship between the two words is entailment semantic relation: entailment ### 1. [INPUT_WORD1], [INPUT_WORD2] 2. [INPUT_WORD3], [INPUT_WORD4]</td></tr><tr><td>Tagging</td><td>##### Read the following sentences, choose one or more tags from the TagSet that correspond to each sentence's semantics. Here are one example that you can refer to. Example 1: Input sentence: the metabolic world of escherichia coli ... Tag list: ... ### 1. [INPUT Sentence1] 2. [INPUT Sentence2]</td><td>## Read the following sentences, choose one or more tags from the TagSet that correspond to each sentence's semantics. You should think step by step and output the tag list of each sentence. Here are one example that you can refer to. Example 1: Input sentence: the metabolic world of escherichia coli is not small to elucidate ... Think step by step: ... Tag list: ... ### 1. [INPUT Sentence1] 2. [INPUT Sentence2]</td></tr></table>
|
| 438 |
+
|
| 439 |
+
Table 7: ChatGPT prompts for three annotation tasks. We consider four kinds prompt, including zero-shot, few-shot, zero-shot CoT, and few-shot CoT prompts.
|
2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22447281cbc74af74f36433b7fd053ef55ec46f7ab8a9a855454311a24957cdf
|
| 3 |
+
size 1078018
|
2024/Selective Annotation via Data Allocation_ These Data Should Be Triaged to Experts for Annotation Rather Than the Model/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Self-Consistency Boosts Calibration for Math Reasoning/610e067d-96b2-49b7-8e9d-e89fb3c34d6e_content_list.json
ADDED
|
@@ -0,0 +1,1117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Ante Wang $^{1,2}$ , Linfeng Song $^{3*}$ , Ye Tian $^{3}$ , Baolin Peng $^{3}$ , Lifeng Jin $^{3}$ , Haitao Mi $^{3}$ , Jinsong Su $^{1,2*}$ and Dong Yu $^{3}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
161,
|
| 19 |
+
112,
|
| 20 |
+
840,
|
| 21 |
+
146
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{1}$ School of Informatics, Xiamen University, China",
|
| 28 |
+
"bbox": [
|
| 29 |
+
297,
|
| 30 |
+
147,
|
| 31 |
+
704,
|
| 32 |
+
164
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "$^{2}$ Key Laboratory of Digital Protection and Intelligent Processing of Intangible Cultural Heritage",
|
| 39 |
+
"bbox": [
|
| 40 |
+
112,
|
| 41 |
+
164,
|
| 42 |
+
889,
|
| 43 |
+
180
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "of Fujian and Taiwan (Xiamen University), Ministry of Culture and Tourism, China",
|
| 50 |
+
"bbox": [
|
| 51 |
+
161,
|
| 52 |
+
181,
|
| 53 |
+
838,
|
| 54 |
+
197
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "$^{3}$ Tencent AI Lab, Bellevue, WA",
|
| 61 |
+
"bbox": [
|
| 62 |
+
369,
|
| 63 |
+
198,
|
| 64 |
+
631,
|
| 65 |
+
212
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "wangante@stu.xmu.edu.cn, lfsong@global.tencent.com, jssu@xmu.edu.cn",
|
| 72 |
+
"bbox": [
|
| 73 |
+
159,
|
| 74 |
+
214,
|
| 75 |
+
838,
|
| 76 |
+
229
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Abstract",
|
| 83 |
+
"text_level": 1,
|
| 84 |
+
"bbox": [
|
| 85 |
+
260,
|
| 86 |
+
252,
|
| 87 |
+
339,
|
| 88 |
+
266
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "Calibration, which establishes the correlation between accuracy and model confidence, is important for LLM development. We design three off-the-shelf calibration methods based on self-consistency (Wang et al., 2022) for math reasoning tasks. Evaluation on two popular benchmarks (GSM8K and MathQA) using strong open-source LLMs (Mistral and LLaMA2) shows that our methods better bridge model confidence and accuracy than existing methods based on $p(\\text{True})$ (Kadavath et al., 2022) or logit (Guo et al., 2017).",
|
| 95 |
+
"bbox": [
|
| 96 |
+
141,
|
| 97 |
+
281,
|
| 98 |
+
460,
|
| 99 |
+
451
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "1 Introduction",
|
| 106 |
+
"text_level": 1,
|
| 107 |
+
"bbox": [
|
| 108 |
+
114,
|
| 109 |
+
466,
|
| 110 |
+
258,
|
| 111 |
+
481
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Mathematical reasoning tasks (Cobbe et al., 2021; Hendrycks et al., 2021; Amini et al., 2019) involve mapping a question into a series of equations, which are then solved to obtain the final answer. Math reasoning has long been recognized challenging. Existing solutions propose to map input questions into equations via semantic parsing (Matsuzaki et al., 2017; Hopkins et al., 2017) or AST decoding (Li et al., 2019; Qin et al., 2021; Wu et al., 2021). Yet, the performance can degrade dramatically even with slight changes to the questions (Patel et al., 2021; Li et al., 2022).",
|
| 118 |
+
"bbox": [
|
| 119 |
+
112,
|
| 120 |
+
493,
|
| 121 |
+
489,
|
| 122 |
+
684
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Recently, large language models (LLM, Achiam et al. 2023; Touvron et al. 2023; Jiang et al. 2024) have shown great potential for solving many math reasoning tasks, even though they are not specifically trained on these tasks. For instance, with chain-of-thought prompting (Wei et al., 2022) and self-consistency (Wang et al., 2022), open-source LLMs, such as Mixtral $8 \\times 7\\mathrm{B}$ (Jiang et al., 2024), can reach an accuracy of around $80\\%$ on the GSM8K benchmark (Cobbe et al., 2021). On the other hand, conventional pretrained models (e.g., T5 (Raffel et al., 2020)) that are specifically finetuned on the GSM8K training set can only report",
|
| 129 |
+
"bbox": [
|
| 130 |
+
112,
|
| 131 |
+
686,
|
| 132 |
+
489,
|
| 133 |
+
896
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "image",
|
| 139 |
+
"img_path": "images/c21cca1ce5f7f370f4252825d74038935451cef2b3e1f95e1400d3e24645e1b0.jpg",
|
| 140 |
+
"image_caption": [
|
| 141 |
+
"Figure 1: Comparison of several calibration methods on Mistral-7B, where $SC w / \\mathcal{F}_{CN}$ is one of our methods based on self-consistency, which will be introduced in §3."
|
| 142 |
+
],
|
| 143 |
+
"image_footnote": [],
|
| 144 |
+
"bbox": [
|
| 145 |
+
515,
|
| 146 |
+
249,
|
| 147 |
+
857,
|
| 148 |
+
444
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 0
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "accuracies around $10\\%$ to $20\\%$ (Shridhar et al., 2023; Magister et al., 2023).",
|
| 155 |
+
"bbox": [
|
| 156 |
+
507,
|
| 157 |
+
543,
|
| 158 |
+
882,
|
| 159 |
+
575
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 0
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "However, LLMs lack adequate calibration out of the box – the probabilities of model predictions are often poorly aligned with the actual accuracy (Xiong et al., 2023; Chen et al., 2023). Calibration is important for LLM development, as a well-calibrated LLM can precisely tell how likely its responses are correct or not. With such information, LLM developers can take multiple options to handle low-confidence responses, such as letting the LLM refuse to answer or keep resampling until a confident response is produced.",
|
| 166 |
+
"bbox": [
|
| 167 |
+
505,
|
| 168 |
+
577,
|
| 169 |
+
884,
|
| 170 |
+
755
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 0
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "In this work, we propose calibration methods based on self-consistency (Wang et al., 2022) for math reasoning tasks. Self-consistency performs clustering over multiple LLM samples before picking one from the largest cluster as the response to each input query. Here we consider several ways to estimate model confidence using the clustering results: cluster size that estimates how many samples agree with the selected one, cluster number that measures to what extent samples disagree with",
|
| 177 |
+
"bbox": [
|
| 178 |
+
507,
|
| 179 |
+
758,
|
| 180 |
+
885,
|
| 181 |
+
919
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 0
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "page_footnote",
|
| 187 |
+
"text": "*Corresponding Authors",
|
| 188 |
+
"bbox": [
|
| 189 |
+
141,
|
| 190 |
+
904,
|
| 191 |
+
297,
|
| 192 |
+
917
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 0
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "page_number",
|
| 198 |
+
"text": "6023",
|
| 199 |
+
"bbox": [
|
| 200 |
+
480,
|
| 201 |
+
927,
|
| 202 |
+
519,
|
| 203 |
+
940
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 0
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "footer",
|
| 209 |
+
"text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6023-6029",
|
| 210 |
+
"bbox": [
|
| 211 |
+
216,
|
| 212 |
+
945,
|
| 213 |
+
779,
|
| 214 |
+
957
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 0
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "footer",
|
| 220 |
+
"text": "November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 221 |
+
"bbox": [
|
| 222 |
+
273,
|
| 223 |
+
958,
|
| 224 |
+
724,
|
| 225 |
+
971
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 0
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "each other, and pairwise comparison that captures relative differences between pairs of clusters.",
|
| 232 |
+
"bbox": [
|
| 233 |
+
112,
|
| 234 |
+
84,
|
| 235 |
+
485,
|
| 236 |
+
116
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "We conduct experiments using strong open-source LLMs: Mistral (Jiang et al., 2023, 2024) and LLaMA2 (Touvron et al., 2023) series models with / without being aligned with instructions. Results on GSM8K (Cobbe et al., 2021) and MathQA (Amini et al., 2019) show that all our methods better calibrate these models than exiting popular methods, such as $p(\\text{True})$ (Kadavath et al., 2022) and logit (Guo et al., 2017) over the whole reasoning path or target answer span only.",
|
| 243 |
+
"bbox": [
|
| 244 |
+
112,
|
| 245 |
+
117,
|
| 246 |
+
489,
|
| 247 |
+
277
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 1
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "2 Preview: Self-Consistency with CoT Prompting",
|
| 254 |
+
"text_level": 1,
|
| 255 |
+
"bbox": [
|
| 256 |
+
112,
|
| 257 |
+
288,
|
| 258 |
+
460,
|
| 259 |
+
322
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 1
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "For math reasoning, there are usually multiple trajectories to reach the final solution. To replicate this process, Wang et al. (2022) initially sample various reasoning paths $r_1, \\dots, r_N$ from the LLM given input $x$ with Chain-of-Thought (CoT) prompting. Then, the answers $a_1, \\dots, a_N$ are extracted from the paths, and the most consistent answer (the one win by majority vote among the answers) is selected as the final answer $\\mathbf{a}$ :",
|
| 266 |
+
"bbox": [
|
| 267 |
+
112,
|
| 268 |
+
331,
|
| 269 |
+
489,
|
| 270 |
+
475
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 1
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "equation",
|
| 276 |
+
"text": "\n$$\n\\mathbf {a} = \\max _ {\\hat {a}} \\sum_ {i = 1} ^ {N} \\mathbb {1} \\left(a _ {i} = \\hat {a}\\right), \\tag {1}\n$$\n",
|
| 277 |
+
"text_format": "latex",
|
| 278 |
+
"bbox": [
|
| 279 |
+
205,
|
| 280 |
+
483,
|
| 281 |
+
487,
|
| 282 |
+
526
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 1
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "equation",
|
| 288 |
+
"text": "\n$$\nr _ {i}, a _ {i} \\sim \\mathrm {L L M} _ {\\theta} (x),\n$$\n",
|
| 289 |
+
"text_format": "latex",
|
| 290 |
+
"bbox": [
|
| 291 |
+
258,
|
| 292 |
+
531,
|
| 293 |
+
391,
|
| 294 |
+
546
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 1
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "where $r_i, a_i$ denote the $i$ -th sampled reasoning path and its corresponding answer, respectively.",
|
| 301 |
+
"bbox": [
|
| 302 |
+
112,
|
| 303 |
+
558,
|
| 304 |
+
485,
|
| 305 |
+
590
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 1
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "3 Calibration using Self-Consistency",
|
| 312 |
+
"text_level": 1,
|
| 313 |
+
"bbox": [
|
| 314 |
+
112,
|
| 315 |
+
601,
|
| 316 |
+
445,
|
| 317 |
+
618
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 1
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "After performing self-consistency on input $x$ using $\\mathrm{LLM}_{\\theta}$ , we obtain a set of clusters $\\mathcal{C} = \\{c_1, \\dots, c_{|\\mathcal{C}|}\\}$ with each cluster $c_i$ comprising $n_i$ sampled responses with the same answers. We design the following strategies, tailored to the characteristics of these clusters, to estimate the confidence of $\\mathrm{LLM}_{\\theta}$ .",
|
| 324 |
+
"bbox": [
|
| 325 |
+
112,
|
| 326 |
+
627,
|
| 327 |
+
487,
|
| 328 |
+
722
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 1
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "Cluster Number We initially consider the Cluster Number $|\\mathcal{C}|$ . This is motivated by the finding of previous work (Wang et al., 2022; Xiong et al., 2023): LLMs tend to generate consistent answers when they are confident about their predictions, and thus the cluster number (number of distinct answers) tends to be small. We further divide the cluster number by the sample size $N$ to normalize",
|
| 335 |
+
"bbox": [
|
| 336 |
+
112,
|
| 337 |
+
732,
|
| 338 |
+
487,
|
| 339 |
+
860
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 1
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "the score into the range of [0, 1], before reversing it by “ $1 - x$ ”:",
|
| 346 |
+
"bbox": [
|
| 347 |
+
507,
|
| 348 |
+
84,
|
| 349 |
+
880,
|
| 350 |
+
116
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 1
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "equation",
|
| 356 |
+
"text": "\n$$\n\\mathcal {F} _ {C N} (x, \\theta) = 1 - \\frac {| \\mathcal {C} |}{N}. \\tag {2}\n$$\n",
|
| 357 |
+
"text_format": "latex",
|
| 358 |
+
"bbox": [
|
| 359 |
+
608,
|
| 360 |
+
128,
|
| 361 |
+
882,
|
| 362 |
+
159
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 1
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "Cluster Size In a similar vein, we adopt the Cluster Size: the number of samples (e.g., $n_i$ ) within a specific cluster (e.g., $c_i$ ). Again, we compute its proportion relative to the total sample size to normalize the score into the range [0, 1]:",
|
| 369 |
+
"bbox": [
|
| 370 |
+
507,
|
| 371 |
+
170,
|
| 372 |
+
882,
|
| 373 |
+
250
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 1
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "equation",
|
| 379 |
+
"text": "\n$$\n\\mathcal {F} _ {C S} (x, \\theta) = \\frac {n _ {i}}{N}. \\tag {3}\n$$\n",
|
| 380 |
+
"text_format": "latex",
|
| 381 |
+
"bbox": [
|
| 382 |
+
628,
|
| 383 |
+
262,
|
| 384 |
+
882,
|
| 385 |
+
288
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 1
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "In contrast to the cluster number, the cluster size is more universally applicable across diverse prompts, as the cluster number can easily become ineffective when the output space of an LLM is restricted, such as when options for a question are provided.",
|
| 392 |
+
"bbox": [
|
| 393 |
+
507,
|
| 394 |
+
300,
|
| 395 |
+
882,
|
| 396 |
+
381
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 1
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "Pairwise Comparison The Cluster Number and Cluster Size primarily consider the number of distinct answers and the number of sampled paths within a single cluster, respectively. They both overlook the information by comparing different clusters. For example, they may fail to consider the situation when the sizes of the top-ranked clusters are close. Consequently, we introduce the Pairwise Comparison method, which computes the winning rate of the chosen cluster $(c_i)$ against each of the remaining clusters:",
|
| 403 |
+
"bbox": [
|
| 404 |
+
507,
|
| 405 |
+
390,
|
| 406 |
+
882,
|
| 407 |
+
567
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 1
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "equation",
|
| 413 |
+
"text": "\n$$\n\\mathcal {F} _ {P C} (x, \\theta) = \\prod_ {j \\neq i} ^ {| \\mathcal {C} |} \\frac {n _ {i}}{n _ {i} + n _ {j}}, \\tag {4}\n$$\n",
|
| 414 |
+
"text_format": "latex",
|
| 415 |
+
"bbox": [
|
| 416 |
+
594,
|
| 417 |
+
580,
|
| 418 |
+
882,
|
| 419 |
+
627
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 1
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "where $\\frac{n_i}{n_i + n_j}$ represents the winning rate of selected cluster $c_i$ against another cluster $c_j$ by comparing the respective cluster sizes.",
|
| 426 |
+
"bbox": [
|
| 427 |
+
507,
|
| 428 |
+
639,
|
| 429 |
+
880,
|
| 430 |
+
687
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 1
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "4 Experiments",
|
| 437 |
+
"text_level": 1,
|
| 438 |
+
"bbox": [
|
| 439 |
+
507,
|
| 440 |
+
700,
|
| 441 |
+
655,
|
| 442 |
+
715
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 1
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "4.1 Setup",
|
| 449 |
+
"text_level": 1,
|
| 450 |
+
"bbox": [
|
| 451 |
+
507,
|
| 452 |
+
727,
|
| 453 |
+
601,
|
| 454 |
+
741
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 1
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "Datasets We conduct experiments on two popular math reasoning benchmarks of different type of questions, GSM8K (Cobbe et al., 2021) and MathQA (Amini et al., 2019). Particularly, GSM8K comprises 1,319 linguistically diverse grade school math word problems for testing. On the other hand, MathQA offers 2,985 multiple-choice math word problems for evaluation.",
|
| 461 |
+
"bbox": [
|
| 462 |
+
507,
|
| 463 |
+
747,
|
| 464 |
+
882,
|
| 465 |
+
876
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 1
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "Evaluation Metrics We adopt Brier Score and Expected Calibration Error (ECE) as evaluating",
|
| 472 |
+
"bbox": [
|
| 473 |
+
507,
|
| 474 |
+
887,
|
| 475 |
+
882,
|
| 476 |
+
919
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 1
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "page_footnote",
|
| 482 |
+
"text": "<sup>1</sup>Here we follow common practice to adopt demonstrations with rationales for pretrained only models (e.g., Mistral-7B) and use \"Let's think step by step\" (Kojima et al., 2022) for instruction-tuned models (e.g., Mistral-7B-Inst).",
|
| 483 |
+
"bbox": [
|
| 484 |
+
112,
|
| 485 |
+
868,
|
| 486 |
+
487,
|
| 487 |
+
917
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 1
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "page_number",
|
| 493 |
+
"text": "6024",
|
| 494 |
+
"bbox": [
|
| 495 |
+
480,
|
| 496 |
+
928,
|
| 497 |
+
519,
|
| 498 |
+
940
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 1
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "table",
|
| 504 |
+
"img_path": "images/a5af16ddb9cc04ea9da3f0d8ca4038ea58dd919380229d2cb443d54ce49c75ed.jpg",
|
| 505 |
+
"table_caption": [],
|
| 506 |
+
"table_footnote": [],
|
| 507 |
+
"table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\"></td><td colspan=\"2\">Mistral-7B</td><td colspan=\"2\">Mistral-7B-Inst</td><td colspan=\"2\">Mixtral-8×7B</td><td colspan=\"2\">Mixtral-8×7B-Inst</td></tr><tr><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td></tr><tr><td rowspan=\"8\">GSM8K</td><td>logit w/ Path</td><td>0.394</td><td>0.399</td><td>0.414</td><td>0.414</td><td>0.178</td><td>0.265</td><td>0.233</td><td>0.252</td></tr><tr><td>logit w/ Answer</td><td>0.505</td><td>0.488</td><td>0.467</td><td>0.458</td><td>0.307</td><td>0.312</td><td>0.236</td><td>0.238</td></tr><tr><td>p(True)</td><td>0.127</td><td>0.267</td><td>0.406</td><td>0.407</td><td>0.070</td><td>0.201</td><td>0.195</td><td>0.198</td></tr><tr><td>Self-Consistency</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>w/ FCN</td><td>0.092</td><td>0.186</td><td>0.125</td><td>0.182</td><td>0.136</td><td>0.157</td><td>0.075</td><td>0.092</td></tr><tr><td>w/ FCS</td><td>0.148</td><td>0.185</td><td>0.163</td><td>0.180</td><td>0.173</td><td>0.156</td><td>0.085</td><td>0.086</td></tr><tr><td>w/ FPC</td><td>0.248</td><td>0.229</td><td>0.253</td><td>0.226</td><td>0.238</td><td>0.194</td><td>0.110</td><td>0.096</td></tr><tr><td>w/ ALL</td><td>0.101</td><td>0.172</td><td>0.123</td><td>0.162</td><td>0.135</td><td>0.141</td><td>0.078</td><td>0.083</td></tr><tr><td rowspan=\"8\">MathQA</td><td>logit w/ Path</td><td>0.500</td><td>0.499</td><td>0.539</td><td>0.510</td><td>0.333</td><td>0.380</td><td>0.364</td><td>0.373</td></tr><tr><td>logit w/ Answer</td><td>0.356</td><td>0.362</td><td>0.291</td><td>0.319</td><td>0.266</td><td>0.290</td><td>0.220</td><td>0.281</td></tr><tr><td>p(True)</td><td>0.350</td><td>0.309</td><td>0.271</td><td>0.317</td><td>0.228</td><td>0.253</td><td>0.273</td><td>0.272</td></tr><tr><td>Self-Consistency</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>w/ FCN</td><td>0.331</td><td>0.336</td><td>0.374</td><td>0.359</td><td>0.143</td><td>0.236</td><td>0.128</td><td>0.215</td></tr><tr><td>w/ FCS</td><td>0.091</td><td>0.225</td><td>0.114</td><td>0.227</td><td>0.080</td><td>0.190</td><td>0.035</td><td>0.171</td></tr><tr><td>w/ FPC</td><td>0.052</td><td>0.220</td><td>0.065</td><td>0.219</td><td>0.143</td><td>0.203</td><td>0.054</td><td>0.174</td></tr><tr><td>w/ ALL</td><td>0.144</td><td>0.238</td><td>0.172</td><td>0.242</td><td>0.089</td><td>0.190</td><td>0.072</td><td>0.177</td></tr></table>",
|
| 508 |
+
"bbox": [
|
| 509 |
+
147,
|
| 510 |
+
80,
|
| 511 |
+
850,
|
| 512 |
+
342
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 2
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "Table 1: Main test results on GSM8K and MathQA when using Mistral family models. Specifically, $*$ -Inst indicates instruction-tuned models.",
|
| 519 |
+
"bbox": [
|
| 520 |
+
112,
|
| 521 |
+
351,
|
| 522 |
+
880,
|
| 523 |
+
380
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 2
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "metrics following common practice (Geng et al., 2023).",
|
| 530 |
+
"bbox": [
|
| 531 |
+
112,
|
| 532 |
+
406,
|
| 533 |
+
487,
|
| 534 |
+
436
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 2
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "Given instances $(x_{1},y_{1}),\\dots,(x_{\\bar{N}},y_{\\bar{N}})$ and their corresponding LLM predictions $\\hat{y}_1,\\dots,\\hat{y}_{\\bar{N}}$ , ECE is computed by first binning the predictions into $M = 10$ intervals based on their LLM confidence levels (e.g., $p(\\hat{y}_i)$ ). For each bin (e.g. $B_{m}$ ), it then calculates the accuracy (acc $(B_{m})$ ) and the average confidence $(\\mathrm{conf}(B_m))$ ..",
|
| 541 |
+
"bbox": [
|
| 542 |
+
112,
|
| 543 |
+
437,
|
| 544 |
+
485,
|
| 545 |
+
550
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 2
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "equation",
|
| 551 |
+
"text": "\n$$\n\\operatorname {a c c} \\left(B _ {m}\\right) = \\frac {1}{\\left| B _ {m} \\right|} \\sum_ {i \\in B _ {m}} \\mathbb {1} \\left(y _ {i} = \\hat {y} _ {i}\\right),\n$$\n",
|
| 552 |
+
"text_format": "latex",
|
| 553 |
+
"bbox": [
|
| 554 |
+
173,
|
| 555 |
+
555,
|
| 556 |
+
433,
|
| 557 |
+
593
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 2
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "equation",
|
| 563 |
+
"text": "\n$$\n\\operatorname {c o n f} \\left(B _ {m}\\right) = \\frac {1}{\\left| B _ {m} \\right|} \\sum_ {i \\in B _ {m}} p \\left(\\hat {y} _ {i}\\right),\n$$\n",
|
| 564 |
+
"text_format": "latex",
|
| 565 |
+
"bbox": [
|
| 566 |
+
164,
|
| 567 |
+
595,
|
| 568 |
+
394,
|
| 569 |
+
633
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 2
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "where $|B_m|$ is the number of samples in bin $B_m$ . Finally, the difference between accuracy and confidence is averaged across all bins to obtain the ECE score:",
|
| 576 |
+
"bbox": [
|
| 577 |
+
112,
|
| 578 |
+
639,
|
| 579 |
+
487,
|
| 580 |
+
702
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 2
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "equation",
|
| 586 |
+
"text": "\n$$\n\\mathrm {E C E} = \\sum_ {m = 1} ^ {M} \\frac {\\left| B _ {m} \\right|}{\\bar {N}} \\left| \\operatorname {a c c} \\left(B _ {m}\\right) - \\operatorname {c o n f} \\left(B _ {m}\\right) \\right| \\tag {6}\n$$\n",
|
| 587 |
+
"text_format": "latex",
|
| 588 |
+
"bbox": [
|
| 589 |
+
132,
|
| 590 |
+
707,
|
| 591 |
+
487,
|
| 592 |
+
749
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 2
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "As another popular metric, Brier score is similar to ECE but conducted at the instance level:",
|
| 599 |
+
"bbox": [
|
| 600 |
+
112,
|
| 601 |
+
755,
|
| 602 |
+
487,
|
| 603 |
+
785
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 2
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "equation",
|
| 609 |
+
"text": "\n$$\n\\operatorname {B r i e r} = \\frac {1}{\\bar {N}} \\sum_ {i = 1} ^ {\\bar {N}} \\left(p \\left(\\hat {y} _ {i}\\right) - \\mathbb {1} \\left(y _ {i} = \\hat {y} _ {i}\\right)\\right) ^ {2}. \\tag {7}\n$$\n",
|
| 610 |
+
"text_format": "latex",
|
| 611 |
+
"bbox": [
|
| 612 |
+
157,
|
| 613 |
+
790,
|
| 614 |
+
487,
|
| 615 |
+
833
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 2
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Both metrics range from 0 to 1 with lower values indicating better calibration. We take Brier score as the main metric, as it is more robust to unbalanced distribution across bins (e.g. instances concentrate to one or two bins).",
|
| 622 |
+
"bbox": [
|
| 623 |
+
112,
|
| 624 |
+
839,
|
| 625 |
+
487,
|
| 626 |
+
917
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 2
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "Settings We conduct experiments on LLaMA2 and Mistral-family models and investigate both pretrained or instruction-tuned variations. We use nucleus sampling to obtain $N = 16$ samples by default for each instance and use temperatures of 0.6 / 1.0 for all pretrained / instruction-tuned models.",
|
| 633 |
+
"bbox": [
|
| 634 |
+
507,
|
| 635 |
+
406,
|
| 636 |
+
882,
|
| 637 |
+
501
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 2
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "Baselines We take the three representative baselines below for comparison:",
|
| 644 |
+
"bbox": [
|
| 645 |
+
507,
|
| 646 |
+
512,
|
| 647 |
+
882,
|
| 648 |
+
544
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 2
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "list",
|
| 654 |
+
"sub_type": "text",
|
| 655 |
+
"list_items": [
|
| 656 |
+
"- logit w/ Path: It averages the probabilities of the tokens from the whole path to estimate the confidence of each prediction.",
|
| 657 |
+
"- logit w/ Answer: It is similar to logit w/ Path but only consider the tokens from the predicted answer span.",
|
| 658 |
+
"- $p(\\text{True})$ : It asks the LLM itself to classify its prediction as True or False. Then, it takes the predicted probability of True as its confidence. We follow Kadavath et al. (2022) to construct 8-shot demonstrations for prompting pretrained models but directly use instruction for instruction-tuned models."
|
| 659 |
+
],
|
| 660 |
+
"bbox": [
|
| 661 |
+
517,
|
| 662 |
+
556,
|
| 663 |
+
884,
|
| 664 |
+
787
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 2
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "4.2 Results and Analysis",
|
| 671 |
+
"text_level": 1,
|
| 672 |
+
"bbox": [
|
| 673 |
+
507,
|
| 674 |
+
801,
|
| 675 |
+
717,
|
| 676 |
+
816
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 2
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "Main Results Table 1 presents the main results obtained from both benchmarks using Mistral-family models. $p(\\text{True})$ performs best among the baselines, echoing the findings of Kadavath et al. (2022). However, due to its reliance on prompt design and in-context examples to aid the LLM",
|
| 683 |
+
"bbox": [
|
| 684 |
+
507,
|
| 685 |
+
822,
|
| 686 |
+
882,
|
| 687 |
+
917
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 2
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "page_number",
|
| 693 |
+
"text": "6025",
|
| 694 |
+
"bbox": [
|
| 695 |
+
480,
|
| 696 |
+
927,
|
| 697 |
+
519,
|
| 698 |
+
940
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 2
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "image",
|
| 704 |
+
"img_path": "images/a1e06ad14dcc56e9e946cbc40d777400b77ac7d6596c476f5f54e1e3485ea829.jpg",
|
| 705 |
+
"image_caption": [
|
| 706 |
+
"Figure 2: Calibration results on GSM8K when using Mixtral- $8\\times 7\\mathrm{B}$ -Inst with different $N$"
|
| 707 |
+
],
|
| 708 |
+
"image_footnote": [],
|
| 709 |
+
"bbox": [
|
| 710 |
+
117,
|
| 711 |
+
80,
|
| 712 |
+
440,
|
| 713 |
+
262
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 3
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "to classify its predictions, it can be challenging to construct effective demonstrations or instructions.",
|
| 720 |
+
"bbox": [
|
| 721 |
+
112,
|
| 722 |
+
330,
|
| 723 |
+
487,
|
| 724 |
+
361
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 3
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "In general, self-consistency-based methods surpass baselines in most cases regarding Brier and ECE, validating the efficacy of employing self-consistency features for estimating model confidence. We also note that baselines can occasionally yield impressive ECE scores ( $p(\\text{True})$ on GSM8K with Mixtral- $8 \\times 7\\mathrm{B}$ ). However, we observe that this is attributed to the concentration of most samples in just a few bins (e.g., Figure 1), leading to unreliable measurements. Nevertheless, our approaches still exhibit strong performance in terms of ECE scores across various settings.",
|
| 731 |
+
"bbox": [
|
| 732 |
+
112,
|
| 733 |
+
363,
|
| 734 |
+
489,
|
| 735 |
+
554
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 3
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "Among the self-consistency-based methods, $\\mathcal{F}_{CN}$ yields better ECE results on GSM8K, while $\\mathcal{F}_{CS}$ achieves the highest Brier score. Conversely, for MathQA, $\\mathcal{F}_{CN}$ performs significantly worse than the other two. This is because MathQA is a multi-choice task, and thus the cluster number of LLM answers is strictly limited by the provided choices. In conclusion, $\\mathcal{F}_{CS}$ demonstrates greater generality across diverse settings, but $\\mathcal{F}_{CN}$ and $\\mathcal{F}_{PC}$ do offer improved estimation in certain cases.",
|
| 742 |
+
"bbox": [
|
| 743 |
+
112,
|
| 744 |
+
556,
|
| 745 |
+
489,
|
| 746 |
+
715
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 3
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "Finally, we also explore averaging the proposed three metrics as a unified one, denoted as \"ALL\". Results show that it does not typically yield the best results. However, it serves as a robust choice, demonstrating competitive performance.",
|
| 753 |
+
"bbox": [
|
| 754 |
+
112,
|
| 755 |
+
717,
|
| 756 |
+
489,
|
| 757 |
+
797
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 3
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "Influence of Sample Size $N$ Previous research (Wang et al., 2022) has demonstrated that the sample size $N$ can significantly affect the accuracy of self-consistency. When $N$ increases, the model performance initially continues to improve before stabilizing once $N$ reaches a sufficient level. Therefore, we take Mixtral-8×7B-Inst as a case study to",
|
| 764 |
+
"bbox": [
|
| 765 |
+
112,
|
| 766 |
+
806,
|
| 767 |
+
489,
|
| 768 |
+
917
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 3
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "image",
|
| 774 |
+
"img_path": "images/1cd8a97db0979f26313a691b83b5d230c757a396671c64c7a6ab36eefa059a52.jpg",
|
| 775 |
+
"image_caption": [
|
| 776 |
+
"Figure 3: Performance and calibration results on GSM8K using different models below sorted by their performance: ① LLaMA2-7B-Chat, ② LLaMA2-13B-Chat, ③ Mistral-7B-Inst, ④ LLaMA2-70B-Chat, ⑤ Mixtral-8×7B-Inst."
|
| 777 |
+
],
|
| 778 |
+
"image_footnote": [],
|
| 779 |
+
"bbox": [
|
| 780 |
+
526,
|
| 781 |
+
82,
|
| 782 |
+
870,
|
| 783 |
+
261
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 3
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "examine the impact of $N$ on calibration.",
|
| 790 |
+
"bbox": [
|
| 791 |
+
507,
|
| 792 |
+
356,
|
| 793 |
+
810,
|
| 794 |
+
370
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 3
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "As illustrated in Figure 2, the Brier scores for all our methods initially decline and then remain constant as $N$ grows. For $\\mathcal{F}_{CS}$ and $\\mathcal{F}_{PC}$ , $N = 8$ is adequate for accurate estimation. In contrast, $\\mathcal{F}_{CN}$ requires a larger $N$ , indicating that the cluster number is more susceptible to the randomness of sampling.",
|
| 801 |
+
"bbox": [
|
| 802 |
+
507,
|
| 803 |
+
372,
|
| 804 |
+
884,
|
| 805 |
+
483
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 3
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "Correlation between Performance and Calibration We finally explore the associations between model performance (Accuracy) and calibration. Figure 3 showcases the results on instruction-tuned LLaMA2 and Mistral series models, arranged in ascending order based on their performance. We generally observe a positively correlated trend between calibration (lower the better) and performance (higher the better) among the studied models. This observation indicates that more powerful models also exhibit enhanced calibration, echoing the findings of Kadavath et al. (2022). This phenomenon can be attributed to the fact that when a tested LLM is stronger, it is capable of generating more reasonable and consistent responses, leading to improved calibration.",
|
| 812 |
+
"bbox": [
|
| 813 |
+
507,
|
| 814 |
+
494,
|
| 815 |
+
885,
|
| 816 |
+
751
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 3
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "5 Conclusion",
|
| 823 |
+
"text_level": 1,
|
| 824 |
+
"bbox": [
|
| 825 |
+
507,
|
| 826 |
+
764,
|
| 827 |
+
640,
|
| 828 |
+
778
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 3
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "In this paper, we extend the widely-used inference strategy, self-consistency, to the field of calibration. Specifically, we develop three off-the-shelf calibration methods based on self-consistency for math reasoning tasks. Compared to conventional methods (p(True) and logit), our approaches yield significantly improved ECE and Brier scores on popular GSM8K and MathQA datasets. Future",
|
| 835 |
+
"bbox": [
|
| 836 |
+
507,
|
| 837 |
+
790,
|
| 838 |
+
884,
|
| 839 |
+
919
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 3
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "page_number",
|
| 845 |
+
"text": "6026",
|
| 846 |
+
"bbox": [
|
| 847 |
+
480,
|
| 848 |
+
928,
|
| 849 |
+
521,
|
| 850 |
+
940
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 3
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "text",
|
| 856 |
+
"text": "research directions include designing more effective calibration methods, leveraging richer features and employing more strategies (e.g., temperature scaling (Guo et al., 2017)) to enhance calibration performance. Our ultimate goal is to construct reliable and honest LLMs with the help of accurate confidence estimation.",
|
| 857 |
+
"bbox": [
|
| 858 |
+
112,
|
| 859 |
+
84,
|
| 860 |
+
489,
|
| 861 |
+
197
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 4
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "Limitations",
|
| 868 |
+
"text_level": 1,
|
| 869 |
+
"bbox": [
|
| 870 |
+
112,
|
| 871 |
+
209,
|
| 872 |
+
220,
|
| 873 |
+
224
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 4
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "Our methods are founded on the principle of self-consistency, which relies on sampling multiple times for prediction. This approach, however, needs additional cost for inference, which may not be efficient and eco-friendly. Besides, our current work is limited to mathematical problems and does not explore other types of tasks, such as question-answering. Although it is crucial to extend our methods to encompass other tasks, this is non-trivial due to the inherent difficulty in dividing certain tasks' model predictions into distinct clusters.",
|
| 880 |
+
"bbox": [
|
| 881 |
+
112,
|
| 882 |
+
236,
|
| 883 |
+
489,
|
| 884 |
+
429
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 4
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "Ethics Statement",
|
| 891 |
+
"text_level": 1,
|
| 892 |
+
"bbox": [
|
| 893 |
+
114,
|
| 894 |
+
442,
|
| 895 |
+
265,
|
| 896 |
+
457
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 4
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "We focus on ethical AI research and strive to achieve a balance between technological advancements and our ethical responsibilities. This work studies calibration, which aims to enhance the reliability of LLMs. Besides, we conduct experiments only on publicly available datasets, upholding privacy and anonymity rules.",
|
| 903 |
+
"bbox": [
|
| 904 |
+
112,
|
| 905 |
+
468,
|
| 906 |
+
489,
|
| 907 |
+
582
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 4
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "References",
|
| 914 |
+
"text_level": 1,
|
| 915 |
+
"bbox": [
|
| 916 |
+
114,
|
| 917 |
+
609,
|
| 918 |
+
213,
|
| 919 |
+
624
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 4
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "list",
|
| 925 |
+
"sub_type": "ref_text",
|
| 926 |
+
"list_items": [
|
| 927 |
+
"Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.",
|
| 928 |
+
"Aida Amini, Saadia Gabriel, Shanchuan Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannaneh Hajishirzi. 2019. Mathqa: Towards interpretable math word problem solving with operation-based formalisms. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2357-2367.",
|
| 929 |
+
"Yangyi Chen, Lifan Yuan, Ganqu Cui, Zhiyuan Liu, and Heng Ji. 2023. A close look into the calibration of pre-trained language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1343-1367."
|
| 930 |
+
],
|
| 931 |
+
"bbox": [
|
| 932 |
+
115,
|
| 933 |
+
632,
|
| 934 |
+
489,
|
| 935 |
+
917
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 4
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "list",
|
| 941 |
+
"sub_type": "ref_text",
|
| 942 |
+
"list_items": [
|
| 943 |
+
"Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.",
|
| 944 |
+
"Jiahui Geng, Fengyu Cai, Yuxia Wang, Heinz Koeppl, Preslav Nakov, and Iryna Gurevych. 2023. A survey of language model confidence estimation and calibration. arXiv preprint arXiv:2311.08298.",
|
| 945 |
+
"Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. 2017. On calibration of modern neural networks. In International conference on machine learning, pages 1321-1330. PMLR.",
|
| 946 |
+
"Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the math dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2).",
|
| 947 |
+
"Mark Hopkins, Cristian Petrescu-Prahova, Roie Levin, Ronan Le Bras, Alvaro Herrasti, and Vidur Joshi. 2017. Beyond sentential semantic parsing: Tackling the math sat with a cascade of tree transducers. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 795-804.",
|
| 948 |
+
"Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7b. arXiv preprint arXiv:2310.06825.",
|
| 949 |
+
"Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088.",
|
| 950 |
+
"Mandar Joshi, Eunsol Choi, Daniel S Weld, and Luke Zettlemoyer. 2017. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1601-1611.",
|
| 951 |
+
"Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, et al. 2022. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221.",
|
| 952 |
+
"Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213.",
|
| 953 |
+
"Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation. In"
|
| 954 |
+
],
|
| 955 |
+
"bbox": [
|
| 956 |
+
510,
|
| 957 |
+
85,
|
| 958 |
+
884,
|
| 959 |
+
917
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 4
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "page_number",
|
| 965 |
+
"text": "6027",
|
| 966 |
+
"bbox": [
|
| 967 |
+
480,
|
| 968 |
+
928,
|
| 969 |
+
519,
|
| 970 |
+
940
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 4
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "list",
|
| 976 |
+
"sub_type": "ref_text",
|
| 977 |
+
"list_items": [
|
| 978 |
+
"The Eleventh International Conference on Learning Representations.",
|
| 979 |
+
"Jierui Li, Lei Wang, Jipeng Zhang, Yan Wang, Bing Tian Dai, and Dongxiang Zhang. 2019. Modeling intra-relation in math word problems with different functional multi-head attentions. In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 6162-6167.",
|
| 980 |
+
"Zhongli Li, Wenxuan Zhang, Chao Yan, Qingyu Zhou, Chao Li, Hongzhi Liu, and Yunbo Cao. 2022. Seeking patterns, not just memorizing procedures: Contrastive learning for solving math word problems. In *Findings of the Association for Computational Linguistics: ACL* 2022, pages 2486-2496.",
|
| 981 |
+
"Lucie Charlotte Magister, Jonathan Mallinson, Jakub Adamek, Eric Malmi, and Aliaksei Severyn. 2023. Teaching small language models to reason. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1773-1781.",
|
| 982 |
+
"Takuya Matsuzaki, Takumi Ito, Hidenao Iwane, Hirokazu Anai, and Noriko H Arai. 2017. Semantic parsing of pre-university math problems. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2131-2141.",
|
| 983 |
+
"Arkil Patel, Satwik Bhattachamishra, and Navin Goyal. 2021. Are nlp models really able to solve simple math word problems? In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2080-2094.",
|
| 984 |
+
"Jinghui Qin, Xiaodan Liang, Yining Hong, Jianheng Tang, and Liang Lin. 2021. Neural-symbolic solver for math word problems with auxiliary tasks. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5870-5881.",
|
| 985 |
+
"Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1-67.",
|
| 986 |
+
"Kumar Shridhar, Alessandro Stolfo, and Mrinmaya Sachan. 2023. Distilling reasoning capabilities into smaller language models. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 7059-7073.",
|
| 987 |
+
"Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288."
|
| 988 |
+
],
|
| 989 |
+
"bbox": [
|
| 990 |
+
115,
|
| 991 |
+
85,
|
| 992 |
+
489,
|
| 993 |
+
917
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 5
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "list",
|
| 999 |
+
"sub_type": "ref_text",
|
| 1000 |
+
"list_items": [
|
| 1001 |
+
"Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations.",
|
| 1002 |
+
"Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837.",
|
| 1003 |
+
"Qinzhuo Wu, Qi Zhang, Zhongyu Wei, and Xuan-Jing Huang. 2021. Math word problem solving with explicit numerical values. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5859-5869.",
|
| 1004 |
+
"Miao Xiong, Zhiyuan Hu, Xinyang Lu, YIFEI LI, Jie Fu, Junxian He, and Bryan Hooi. 2023. Can llms express their uncertainty? an empirical evaluation of confidence elicitation in llms. In The Twelfth International Conference on Learning Representations."
|
| 1005 |
+
],
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
510,
|
| 1008 |
+
85,
|
| 1009 |
+
884,
|
| 1010 |
+
418
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 5
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "A Experiments on TriviaQA",
|
| 1017 |
+
"text_level": 1,
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
510,
|
| 1020 |
+
430,
|
| 1021 |
+
771,
|
| 1022 |
+
447
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 5
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Although this work mainly focuses on math problems, we also verify the effectiveness of our approach on TriviaQA (Joshi et al., 2017), a popular question-answering benchmark. Different from math problems, the outputs of LLMs for this task sometimes lack clear answers for clustering. For instance, Mistral-7B-Inst provides a lengthy response, \"The musical Phantom of the Opera premiered in the US on 10th December 1993...\", instead of an answer span \"Phantom of the Opera\", to the question \"Which Lloyd Webber musical premiered in the US on 10th December 1993?\".",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
507,
|
| 1031 |
+
456,
|
| 1032 |
+
884,
|
| 1033 |
+
646
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 5
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "To address this issue, we follow Kuhn et al. to employ natural language inference (NLI) to identify responses with the same answers<sup>2</sup>.",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
507,
|
| 1042 |
+
649,
|
| 1043 |
+
884,
|
| 1044 |
+
696
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 5
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Results are shown in Table 2. Our approach significantly surpasses the baselines, particularly when utilizing instruction-tuned models, further demonstrating the effectiveness of our method.",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
507,
|
| 1053 |
+
697,
|
| 1054 |
+
884,
|
| 1055 |
+
760
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 5
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "page_footnote",
|
| 1061 |
+
"text": "$^{2}$ We adopt a publicly accessible model at https://huggingface.co/MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli.",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
507,
|
| 1064 |
+
879,
|
| 1065 |
+
882,
|
| 1066 |
+
917
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 5
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "page_number",
|
| 1072 |
+
"text": "6028",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
480,
|
| 1075 |
+
927,
|
| 1076 |
+
519,
|
| 1077 |
+
940
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 5
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "table",
|
| 1083 |
+
"img_path": "images/59d0cca0592af98845d2a0fd4964192044d951909b01097df92834b16602fd1a.jpg",
|
| 1084 |
+
"table_caption": [],
|
| 1085 |
+
"table_footnote": [],
|
| 1086 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">Mistral-7B</td><td colspan=\"2\">Mistral-7B-Inst</td><td colspan=\"2\">Mixtral-8×7B</td><td colspan=\"2\">Mixtral-8×7B-Inst</td></tr><tr><td></td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td></tr><tr><td>logit</td><td>0.119</td><td>0.156</td><td>0.385</td><td>0.377</td><td>0.069</td><td>0.116</td><td>0.256</td><td>0.298</td></tr><tr><td>p(True)</td><td>0.077</td><td>0.162</td><td>0.326</td><td>0.318</td><td>0.099</td><td>0.131</td><td>0.314</td><td>0.316</td></tr><tr><td colspan=\"9\">Self-Consistency</td></tr><tr><td>w/ FCN</td><td>0.044</td><td>0.133</td><td>0.054</td><td>0.173</td><td>0.077</td><td>0.119</td><td>0.068</td><td>0.115</td></tr><tr><td>w/ FCS</td><td>0.043</td><td>0.132</td><td>0.072</td><td>0.186</td><td>0.039</td><td>0.107</td><td>0.039</td><td>0.116</td></tr><tr><td>w/ FPC</td><td>0.071</td><td>0.137</td><td>0.109</td><td>0.186</td><td>0.102</td><td>0.129</td><td>0.121</td><td>0.126</td></tr></table>",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
184,
|
| 1089 |
+
423,
|
| 1090 |
+
811,
|
| 1091 |
+
548
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 6
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "Table 2: Test results on TriviaQA.",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
381,
|
| 1100 |
+
558,
|
| 1101 |
+
613,
|
| 1102 |
+
571
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 6
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "page_number",
|
| 1108 |
+
"text": "6029",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
480,
|
| 1111 |
+
928,
|
| 1112 |
+
519,
|
| 1113 |
+
940
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 6
|
| 1116 |
+
}
|
| 1117 |
+
]
|
2024/Self-Consistency Boosts Calibration for Math Reasoning/610e067d-96b2-49b7-8e9d-e89fb3c34d6e_model.json
ADDED
|
@@ -0,0 +1,1424 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
{
|
| 4 |
+
"type": "title",
|
| 5 |
+
"bbox": [
|
| 6 |
+
0.205,
|
| 7 |
+
0.085,
|
| 8 |
+
0.793,
|
| 9 |
+
0.105
|
| 10 |
+
],
|
| 11 |
+
"angle": 0,
|
| 12 |
+
"content": "Self-Consistency Boosts Calibration for Math Reasoning"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"bbox": [
|
| 17 |
+
0.162,
|
| 18 |
+
0.113,
|
| 19 |
+
0.842,
|
| 20 |
+
0.147
|
| 21 |
+
],
|
| 22 |
+
"angle": 0,
|
| 23 |
+
"content": "Ante Wang\\(^{1,2}\\), Linfeng Song\\(^{3*}\\), Ye Tian\\(^{3}\\), Baolin Peng\\(^{3}\\), Lifeng Jin\\(^{3}\\), Haitao Mi\\(^{3}\\), Jinsong Su\\(^{1,2*}\\) and Dong Yu\\(^{3}\\)"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"bbox": [
|
| 28 |
+
0.298,
|
| 29 |
+
0.148,
|
| 30 |
+
0.705,
|
| 31 |
+
0.165
|
| 32 |
+
],
|
| 33 |
+
"angle": 0,
|
| 34 |
+
"content": "\\(^{1}\\)School of Informatics, Xiamen University, China"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"bbox": [
|
| 39 |
+
0.113,
|
| 40 |
+
0.165,
|
| 41 |
+
0.89,
|
| 42 |
+
0.181
|
| 43 |
+
],
|
| 44 |
+
"angle": 0,
|
| 45 |
+
"content": "\\(^{2}\\)Key Laboratory of Digital Protection and Intelligent Processing of Intangible Cultural Heritage"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"bbox": [
|
| 50 |
+
0.163,
|
| 51 |
+
0.182,
|
| 52 |
+
0.84,
|
| 53 |
+
0.198
|
| 54 |
+
],
|
| 55 |
+
"angle": 0,
|
| 56 |
+
"content": "of Fujian and Taiwan (Xiamen University), Ministry of Culture and Tourism, China"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"bbox": [
|
| 61 |
+
0.371,
|
| 62 |
+
0.199,
|
| 63 |
+
0.632,
|
| 64 |
+
0.214
|
| 65 |
+
],
|
| 66 |
+
"angle": 0,
|
| 67 |
+
"content": "\\(^{3}\\)Tencent AI Lab, Bellevue, WA"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"bbox": [
|
| 72 |
+
0.16,
|
| 73 |
+
0.215,
|
| 74 |
+
0.84,
|
| 75 |
+
0.23
|
| 76 |
+
],
|
| 77 |
+
"angle": 0,
|
| 78 |
+
"content": "wangante@stu.xmu.edu.cn, lfsong@global.tencent.com, jssu@xmu.edu.cn"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "title",
|
| 82 |
+
"bbox": [
|
| 83 |
+
0.261,
|
| 84 |
+
0.253,
|
| 85 |
+
0.341,
|
| 86 |
+
0.267
|
| 87 |
+
],
|
| 88 |
+
"angle": 0,
|
| 89 |
+
"content": "Abstract"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "text",
|
| 93 |
+
"bbox": [
|
| 94 |
+
0.142,
|
| 95 |
+
0.282,
|
| 96 |
+
0.461,
|
| 97 |
+
0.452
|
| 98 |
+
],
|
| 99 |
+
"angle": 0,
|
| 100 |
+
"content": "Calibration, which establishes the correlation between accuracy and model confidence, is important for LLM development. We design three off-the-shelf calibration methods based on self-consistency (Wang et al., 2022) for math reasoning tasks. Evaluation on two popular benchmarks (GSM8K and MathQA) using strong open-source LLMs (Mistral and LLaMA2) shows that our methods better bridge model confidence and accuracy than existing methods based on \\( p(\\text{True}) \\) (Kadavath et al., 2022) or logit (Guo et al., 2017)."
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"type": "title",
|
| 104 |
+
"bbox": [
|
| 105 |
+
0.115,
|
| 106 |
+
0.467,
|
| 107 |
+
0.26,
|
| 108 |
+
0.482
|
| 109 |
+
],
|
| 110 |
+
"angle": 0,
|
| 111 |
+
"content": "1 Introduction"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"type": "text",
|
| 115 |
+
"bbox": [
|
| 116 |
+
0.113,
|
| 117 |
+
0.494,
|
| 118 |
+
0.49,
|
| 119 |
+
0.686
|
| 120 |
+
],
|
| 121 |
+
"angle": 0,
|
| 122 |
+
"content": "Mathematical reasoning tasks (Cobbe et al., 2021; Hendrycks et al., 2021; Amini et al., 2019) involve mapping a question into a series of equations, which are then solved to obtain the final answer. Math reasoning has long been recognized challenging. Existing solutions propose to map input questions into equations via semantic parsing (Matsuzaki et al., 2017; Hopkins et al., 2017) or AST decoding (Li et al., 2019; Qin et al., 2021; Wu et al., 2021). Yet, the performance can degrade dramatically even with slight changes to the questions (Patel et al., 2021; Li et al., 2022)."
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"type": "text",
|
| 126 |
+
"bbox": [
|
| 127 |
+
0.113,
|
| 128 |
+
0.687,
|
| 129 |
+
0.49,
|
| 130 |
+
0.897
|
| 131 |
+
],
|
| 132 |
+
"angle": 0,
|
| 133 |
+
"content": "Recently, large language models (LLM, Achiam et al. 2023; Touvron et al. 2023; Jiang et al. 2024) have shown great potential for solving many math reasoning tasks, even though they are not specifically trained on these tasks. For instance, with chain-of-thought prompting (Wei et al., 2022) and self-consistency (Wang et al., 2022), open-source LLMs, such as Mixtral \\(8 \\times 7\\mathrm{B}\\) (Jiang et al., 2024), can reach an accuracy of around \\(80\\%\\) on the GSM8K benchmark (Cobbe et al., 2021). On the other hand, conventional pretrained models (e.g., T5 (Raffel et al., 2020)) that are specifically finetuned on the GSM8K training set can only report"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"type": "image",
|
| 137 |
+
"bbox": [
|
| 138 |
+
0.517,
|
| 139 |
+
0.25,
|
| 140 |
+
0.858,
|
| 141 |
+
0.445
|
| 142 |
+
],
|
| 143 |
+
"angle": 0,
|
| 144 |
+
"content": null
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"type": "image_caption",
|
| 148 |
+
"bbox": [
|
| 149 |
+
0.509,
|
| 150 |
+
0.456,
|
| 151 |
+
0.883,
|
| 152 |
+
0.514
|
| 153 |
+
],
|
| 154 |
+
"angle": 0,
|
| 155 |
+
"content": "Figure 1: Comparison of several calibration methods on Mistral-7B, where \\(SC w / \\mathcal{F}_{CN}\\) is one of our methods based on self-consistency, which will be introduced in §3."
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"type": "text",
|
| 159 |
+
"bbox": [
|
| 160 |
+
0.508,
|
| 161 |
+
0.544,
|
| 162 |
+
0.884,
|
| 163 |
+
0.576
|
| 164 |
+
],
|
| 165 |
+
"angle": 0,
|
| 166 |
+
"content": "accuracies around \\(10\\%\\) to \\(20\\%\\) (Shridhar et al., 2023; Magister et al., 2023)."
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"type": "text",
|
| 170 |
+
"bbox": [
|
| 171 |
+
0.507,
|
| 172 |
+
0.579,
|
| 173 |
+
0.885,
|
| 174 |
+
0.756
|
| 175 |
+
],
|
| 176 |
+
"angle": 0,
|
| 177 |
+
"content": "However, LLMs lack adequate calibration out of the box – the probabilities of model predictions are often poorly aligned with the actual accuracy (Xiong et al., 2023; Chen et al., 2023). Calibration is important for LLM development, as a well-calibrated LLM can precisely tell how likely its responses are correct or not. With such information, LLM developers can take multiple options to handle low-confidence responses, such as letting the LLM refuse to answer or keep resampling until a confident response is produced."
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"type": "text",
|
| 181 |
+
"bbox": [
|
| 182 |
+
0.508,
|
| 183 |
+
0.759,
|
| 184 |
+
0.887,
|
| 185 |
+
0.92
|
| 186 |
+
],
|
| 187 |
+
"angle": 0,
|
| 188 |
+
"content": "In this work, we propose calibration methods based on self-consistency (Wang et al., 2022) for math reasoning tasks. Self-consistency performs clustering over multiple LLM samples before picking one from the largest cluster as the response to each input query. Here we consider several ways to estimate model confidence using the clustering results: cluster size that estimates how many samples agree with the selected one, cluster number that measures to what extent samples disagree with"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"type": "page_footnote",
|
| 192 |
+
"bbox": [
|
| 193 |
+
0.142,
|
| 194 |
+
0.905,
|
| 195 |
+
0.298,
|
| 196 |
+
0.919
|
| 197 |
+
],
|
| 198 |
+
"angle": 0,
|
| 199 |
+
"content": "*Corresponding Authors"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"type": "page_number",
|
| 203 |
+
"bbox": [
|
| 204 |
+
0.481,
|
| 205 |
+
0.928,
|
| 206 |
+
0.521,
|
| 207 |
+
0.941
|
| 208 |
+
],
|
| 209 |
+
"angle": 0,
|
| 210 |
+
"content": "6023"
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "footer",
|
| 214 |
+
"bbox": [
|
| 215 |
+
0.218,
|
| 216 |
+
0.946,
|
| 217 |
+
0.78,
|
| 218 |
+
0.958
|
| 219 |
+
],
|
| 220 |
+
"angle": 0,
|
| 221 |
+
"content": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6023-6029"
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "footer",
|
| 225 |
+
"bbox": [
|
| 226 |
+
0.275,
|
| 227 |
+
0.959,
|
| 228 |
+
0.725,
|
| 229 |
+
0.972
|
| 230 |
+
],
|
| 231 |
+
"angle": 0,
|
| 232 |
+
"content": "November 12-16, 2024 ©2024 Association for Computational Linguistics"
|
| 233 |
+
}
|
| 234 |
+
],
|
| 235 |
+
[
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"bbox": [
|
| 239 |
+
0.113,
|
| 240 |
+
0.085,
|
| 241 |
+
0.486,
|
| 242 |
+
0.117
|
| 243 |
+
],
|
| 244 |
+
"angle": 0,
|
| 245 |
+
"content": "each other, and pairwise comparison that captures relative differences between pairs of clusters."
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"bbox": [
|
| 250 |
+
0.113,
|
| 251 |
+
0.118,
|
| 252 |
+
0.49,
|
| 253 |
+
0.278
|
| 254 |
+
],
|
| 255 |
+
"angle": 0,
|
| 256 |
+
"content": "We conduct experiments using strong open-source LLMs: Mistral (Jiang et al., 2023, 2024) and LLaMA2 (Touvron et al., 2023) series models with / without being aligned with instructions. Results on GSM8K (Cobbe et al., 2021) and MathQA (Amini et al., 2019) show that all our methods better calibrate these models than exiting popular methods, such as \\( p(\\text{True}) \\) (Kadavath et al., 2022) and logit (Guo et al., 2017) over the whole reasoning path or target answer span only."
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "title",
|
| 260 |
+
"bbox": [
|
| 261 |
+
0.114,
|
| 262 |
+
0.289,
|
| 263 |
+
0.461,
|
| 264 |
+
0.323
|
| 265 |
+
],
|
| 266 |
+
"angle": 0,
|
| 267 |
+
"content": "2 Preview: Self-Consistency with CoT Prompting"
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"bbox": [
|
| 272 |
+
0.113,
|
| 273 |
+
0.332,
|
| 274 |
+
0.49,
|
| 275 |
+
0.476
|
| 276 |
+
],
|
| 277 |
+
"angle": 0,
|
| 278 |
+
"content": "For math reasoning, there are usually multiple trajectories to reach the final solution. To replicate this process, Wang et al. (2022) initially sample various reasoning paths \\( r_1, \\dots, r_N \\) from the LLM given input \\( x \\) with Chain-of-Thought (CoT) prompting. Then, the answers \\( a_1, \\dots, a_N \\) are extracted from the paths, and the most consistent answer (the one win by majority vote among the answers) is selected as the final answer \\( \\mathbf{a} \\):"
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "equation",
|
| 282 |
+
"bbox": [
|
| 283 |
+
0.206,
|
| 284 |
+
0.485,
|
| 285 |
+
0.488,
|
| 286 |
+
0.527
|
| 287 |
+
],
|
| 288 |
+
"angle": 0,
|
| 289 |
+
"content": "\\[\n\\mathbf {a} = \\max _ {\\hat {a}} \\sum_ {i = 1} ^ {N} \\mathbb {1} \\left(a _ {i} = \\hat {a}\\right), \\tag {1}\n\\]"
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "equation",
|
| 293 |
+
"bbox": [
|
| 294 |
+
0.26,
|
| 295 |
+
0.532,
|
| 296 |
+
0.393,
|
| 297 |
+
0.548
|
| 298 |
+
],
|
| 299 |
+
"angle": 0,
|
| 300 |
+
"content": "\\[\nr _ {i}, a _ {i} \\sim \\mathrm {L L M} _ {\\theta} (x),\n\\]"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"bbox": [
|
| 305 |
+
0.113,
|
| 306 |
+
0.559,
|
| 307 |
+
0.487,
|
| 308 |
+
0.591
|
| 309 |
+
],
|
| 310 |
+
"angle": 0,
|
| 311 |
+
"content": "where \\(r_i, a_i\\) denote the \\(i\\)-th sampled reasoning path and its corresponding answer, respectively."
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "title",
|
| 315 |
+
"bbox": [
|
| 316 |
+
0.114,
|
| 317 |
+
0.602,
|
| 318 |
+
0.447,
|
| 319 |
+
0.619
|
| 320 |
+
],
|
| 321 |
+
"angle": 0,
|
| 322 |
+
"content": "3 Calibration using Self-Consistency"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"bbox": [
|
| 327 |
+
0.113,
|
| 328 |
+
0.628,
|
| 329 |
+
0.489,
|
| 330 |
+
0.724
|
| 331 |
+
],
|
| 332 |
+
"angle": 0,
|
| 333 |
+
"content": "After performing self-consistency on input \\(x\\) using \\(\\mathrm{LLM}_{\\theta}\\), we obtain a set of clusters \\(\\mathcal{C} = \\{c_1, \\dots, c_{|\\mathcal{C}|}\\}\\) with each cluster \\(c_i\\) comprising \\(n_i\\) sampled responses with the same answers. We design the following strategies, tailored to the characteristics of these clusters, to estimate the confidence of \\(\\mathrm{LLM}_{\\theta}\\)."
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"bbox": [
|
| 338 |
+
0.113,
|
| 339 |
+
0.733,
|
| 340 |
+
0.489,
|
| 341 |
+
0.862
|
| 342 |
+
],
|
| 343 |
+
"angle": 0,
|
| 344 |
+
"content": "Cluster Number We initially consider the Cluster Number \\(|\\mathcal{C}|\\). This is motivated by the finding of previous work (Wang et al., 2022; Xiong et al., 2023): LLMs tend to generate consistent answers when they are confident about their predictions, and thus the cluster number (number of distinct answers) tends to be small. We further divide the cluster number by the sample size \\(N\\) to normalize"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"bbox": [
|
| 349 |
+
0.508,
|
| 350 |
+
0.085,
|
| 351 |
+
0.882,
|
| 352 |
+
0.117
|
| 353 |
+
],
|
| 354 |
+
"angle": 0,
|
| 355 |
+
"content": "the score into the range of [0, 1], before reversing it by “\\(1 - x\\)”:"
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "equation",
|
| 359 |
+
"bbox": [
|
| 360 |
+
0.61,
|
| 361 |
+
0.129,
|
| 362 |
+
0.883,
|
| 363 |
+
0.16
|
| 364 |
+
],
|
| 365 |
+
"angle": 0,
|
| 366 |
+
"content": "\\[\n\\mathcal {F} _ {C N} (x, \\theta) = 1 - \\frac {| \\mathcal {C} |}{N}. \\tag {2}\n\\]"
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"bbox": [
|
| 371 |
+
0.508,
|
| 372 |
+
0.171,
|
| 373 |
+
0.884,
|
| 374 |
+
0.252
|
| 375 |
+
],
|
| 376 |
+
"angle": 0,
|
| 377 |
+
"content": "Cluster Size In a similar vein, we adopt the Cluster Size: the number of samples (e.g., \\( n_i \\)) within a specific cluster (e.g., \\( c_i \\)). Again, we compute its proportion relative to the total sample size to normalize the score into the range [0, 1]:"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "equation",
|
| 381 |
+
"bbox": [
|
| 382 |
+
0.629,
|
| 383 |
+
0.263,
|
| 384 |
+
0.883,
|
| 385 |
+
0.29
|
| 386 |
+
],
|
| 387 |
+
"angle": 0,
|
| 388 |
+
"content": "\\[\n\\mathcal {F} _ {C S} (x, \\theta) = \\frac {n _ {i}}{N}. \\tag {3}\n\\]"
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"bbox": [
|
| 393 |
+
0.508,
|
| 394 |
+
0.301,
|
| 395 |
+
0.884,
|
| 396 |
+
0.382
|
| 397 |
+
],
|
| 398 |
+
"angle": 0,
|
| 399 |
+
"content": "In contrast to the cluster number, the cluster size is more universally applicable across diverse prompts, as the cluster number can easily become ineffective when the output space of an LLM is restricted, such as when options for a question are provided."
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"bbox": [
|
| 404 |
+
0.508,
|
| 405 |
+
0.391,
|
| 406 |
+
0.884,
|
| 407 |
+
0.568
|
| 408 |
+
],
|
| 409 |
+
"angle": 0,
|
| 410 |
+
"content": "Pairwise Comparison The Cluster Number and Cluster Size primarily consider the number of distinct answers and the number of sampled paths within a single cluster, respectively. They both overlook the information by comparing different clusters. For example, they may fail to consider the situation when the sizes of the top-ranked clusters are close. Consequently, we introduce the Pairwise Comparison method, which computes the winning rate of the chosen cluster \\((c_i)\\) against each of the remaining clusters:"
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "equation",
|
| 414 |
+
"bbox": [
|
| 415 |
+
0.595,
|
| 416 |
+
0.581,
|
| 417 |
+
0.883,
|
| 418 |
+
0.628
|
| 419 |
+
],
|
| 420 |
+
"angle": 0,
|
| 421 |
+
"content": "\\[\n\\mathcal {F} _ {P C} (x, \\theta) = \\prod_ {j \\neq i} ^ {| \\mathcal {C} |} \\frac {n _ {i}}{n _ {i} + n _ {j}}, \\tag {4}\n\\]"
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"bbox": [
|
| 426 |
+
0.508,
|
| 427 |
+
0.64,
|
| 428 |
+
0.882,
|
| 429 |
+
0.688
|
| 430 |
+
],
|
| 431 |
+
"angle": 0,
|
| 432 |
+
"content": "where \\( \\frac{n_i}{n_i + n_j} \\) represents the winning rate of selected cluster \\( c_i \\) against another cluster \\( c_j \\) by comparing the respective cluster sizes."
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "title",
|
| 436 |
+
"bbox": [
|
| 437 |
+
0.509,
|
| 438 |
+
0.701,
|
| 439 |
+
0.656,
|
| 440 |
+
0.717
|
| 441 |
+
],
|
| 442 |
+
"angle": 0,
|
| 443 |
+
"content": "4 Experiments"
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "title",
|
| 447 |
+
"bbox": [
|
| 448 |
+
0.509,
|
| 449 |
+
0.728,
|
| 450 |
+
0.602,
|
| 451 |
+
0.743
|
| 452 |
+
],
|
| 453 |
+
"angle": 0,
|
| 454 |
+
"content": "4.1 Setup"
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"bbox": [
|
| 459 |
+
0.508,
|
| 460 |
+
0.749,
|
| 461 |
+
0.884,
|
| 462 |
+
0.877
|
| 463 |
+
],
|
| 464 |
+
"angle": 0,
|
| 465 |
+
"content": "Datasets We conduct experiments on two popular math reasoning benchmarks of different type of questions, GSM8K (Cobbe et al., 2021) and MathQA (Amini et al., 2019). Particularly, GSM8K comprises 1,319 linguistically diverse grade school math word problems for testing. On the other hand, MathQA offers 2,985 multiple-choice math word problems for evaluation."
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"bbox": [
|
| 470 |
+
0.508,
|
| 471 |
+
0.888,
|
| 472 |
+
0.884,
|
| 473 |
+
0.92
|
| 474 |
+
],
|
| 475 |
+
"angle": 0,
|
| 476 |
+
"content": "Evaluation Metrics We adopt Brier Score and Expected Calibration Error (ECE) as evaluating"
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "page_footnote",
|
| 480 |
+
"bbox": [
|
| 481 |
+
0.113,
|
| 482 |
+
0.869,
|
| 483 |
+
0.488,
|
| 484 |
+
0.919
|
| 485 |
+
],
|
| 486 |
+
"angle": 0,
|
| 487 |
+
"content": "<sup>1</sup>Here we follow common practice to adopt demonstrations with rationales for pretrained only models (e.g., Mistral-7B) and use \"Let's think step by step\" (Kojima et al., 2022) for instruction-tuned models (e.g., Mistral-7B-Inst)."
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "page_number",
|
| 491 |
+
"bbox": [
|
| 492 |
+
0.481,
|
| 493 |
+
0.929,
|
| 494 |
+
0.521,
|
| 495 |
+
0.941
|
| 496 |
+
],
|
| 497 |
+
"angle": 0,
|
| 498 |
+
"content": "6024"
|
| 499 |
+
}
|
| 500 |
+
],
|
| 501 |
+
[
|
| 502 |
+
{
|
| 503 |
+
"type": "table",
|
| 504 |
+
"bbox": [
|
| 505 |
+
0.148,
|
| 506 |
+
0.082,
|
| 507 |
+
0.851,
|
| 508 |
+
0.343
|
| 509 |
+
],
|
| 510 |
+
"angle": 0,
|
| 511 |
+
"content": "<table><tr><td rowspan=\"2\" colspan=\"2\"></td><td colspan=\"2\">Mistral-7B</td><td colspan=\"2\">Mistral-7B-Inst</td><td colspan=\"2\">Mixtral-8×7B</td><td colspan=\"2\">Mixtral-8×7B-Inst</td></tr><tr><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td></tr><tr><td rowspan=\"8\">GSM8K</td><td>logit w/ Path</td><td>0.394</td><td>0.399</td><td>0.414</td><td>0.414</td><td>0.178</td><td>0.265</td><td>0.233</td><td>0.252</td></tr><tr><td>logit w/ Answer</td><td>0.505</td><td>0.488</td><td>0.467</td><td>0.458</td><td>0.307</td><td>0.312</td><td>0.236</td><td>0.238</td></tr><tr><td>p(True)</td><td>0.127</td><td>0.267</td><td>0.406</td><td>0.407</td><td>0.070</td><td>0.201</td><td>0.195</td><td>0.198</td></tr><tr><td>Self-Consistency</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>w/ FCN</td><td>0.092</td><td>0.186</td><td>0.125</td><td>0.182</td><td>0.136</td><td>0.157</td><td>0.075</td><td>0.092</td></tr><tr><td>w/ FCS</td><td>0.148</td><td>0.185</td><td>0.163</td><td>0.180</td><td>0.173</td><td>0.156</td><td>0.085</td><td>0.086</td></tr><tr><td>w/ FPC</td><td>0.248</td><td>0.229</td><td>0.253</td><td>0.226</td><td>0.238</td><td>0.194</td><td>0.110</td><td>0.096</td></tr><tr><td>w/ ALL</td><td>0.101</td><td>0.172</td><td>0.123</td><td>0.162</td><td>0.135</td><td>0.141</td><td>0.078</td><td>0.083</td></tr><tr><td rowspan=\"8\">MathQA</td><td>logit w/ Path</td><td>0.500</td><td>0.499</td><td>0.539</td><td>0.510</td><td>0.333</td><td>0.380</td><td>0.364</td><td>0.373</td></tr><tr><td>logit w/ Answer</td><td>0.356</td><td>0.362</td><td>0.291</td><td>0.319</td><td>0.266</td><td>0.290</td><td>0.220</td><td>0.281</td></tr><tr><td>p(True)</td><td>0.350</td><td>0.309</td><td>0.271</td><td>0.317</td><td>0.228</td><td>0.253</td><td>0.273</td><td>0.272</td></tr><tr><td>Self-Consistency</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>w/ FCN</td><td>0.331</td><td>0.336</td><td>0.374</td><td>0.359</td><td>0.143</td><td>0.236</td><td>0.128</td><td>0.215</td></tr><tr><td>w/ FCS</td><td>0.091</td><td>0.225</td><td>0.114</td><td>0.227</td><td>0.080</td><td>0.190</td><td>0.035</td><td>0.171</td></tr><tr><td>w/ FPC</td><td>0.052</td><td>0.220</td><td>0.065</td><td>0.219</td><td>0.143</td><td>0.203</td><td>0.054</td><td>0.174</td></tr><tr><td>w/ ALL</td><td>0.144</td><td>0.238</td><td>0.172</td><td>0.242</td><td>0.089</td><td>0.190</td><td>0.072</td><td>0.177</td></tr></table>"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "table_caption",
|
| 515 |
+
"bbox": [
|
| 516 |
+
0.113,
|
| 517 |
+
0.352,
|
| 518 |
+
0.882,
|
| 519 |
+
0.381
|
| 520 |
+
],
|
| 521 |
+
"angle": 0,
|
| 522 |
+
"content": "Table 1: Main test results on GSM8K and MathQA when using Mistral family models. Specifically, \\(*\\)-Inst indicates instruction-tuned models."
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"bbox": [
|
| 527 |
+
0.114,
|
| 528 |
+
0.407,
|
| 529 |
+
0.489,
|
| 530 |
+
0.437
|
| 531 |
+
],
|
| 532 |
+
"angle": 0,
|
| 533 |
+
"content": "metrics following common practice (Geng et al., 2023)."
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"bbox": [
|
| 538 |
+
0.114,
|
| 539 |
+
0.438,
|
| 540 |
+
0.487,
|
| 541 |
+
0.551
|
| 542 |
+
],
|
| 543 |
+
"angle": 0,
|
| 544 |
+
"content": "Given instances \\((x_{1},y_{1}),\\dots,(x_{\\bar{N}},y_{\\bar{N}})\\) and their corresponding LLM predictions \\(\\hat{y}_1,\\dots,\\hat{y}_{\\bar{N}}\\) , ECE is computed by first binning the predictions into \\(M = 10\\) intervals based on their LLM confidence levels (e.g., \\(p(\\hat{y}_i)\\) ). For each bin (e.g. \\(B_{m}\\) ), it then calculates the accuracy (acc \\((B_{m})\\) ) and the average confidence \\((\\mathrm{conf}(B_m))\\) .."
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "equation",
|
| 548 |
+
"bbox": [
|
| 549 |
+
0.174,
|
| 550 |
+
0.556,
|
| 551 |
+
0.435,
|
| 552 |
+
0.594
|
| 553 |
+
],
|
| 554 |
+
"angle": 0,
|
| 555 |
+
"content": "\\[\n\\operatorname {a c c} \\left(B _ {m}\\right) = \\frac {1}{\\left| B _ {m} \\right|} \\sum_ {i \\in B _ {m}} \\mathbb {1} \\left(y _ {i} = \\hat {y} _ {i}\\right),\n\\]"
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "equation",
|
| 559 |
+
"bbox": [
|
| 560 |
+
0.166,
|
| 561 |
+
0.596,
|
| 562 |
+
0.395,
|
| 563 |
+
0.634
|
| 564 |
+
],
|
| 565 |
+
"angle": 0,
|
| 566 |
+
"content": "\\[\n\\operatorname {c o n f} \\left(B _ {m}\\right) = \\frac {1}{\\left| B _ {m} \\right|} \\sum_ {i \\in B _ {m}} p \\left(\\hat {y} _ {i}\\right),\n\\]"
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"bbox": [
|
| 571 |
+
0.114,
|
| 572 |
+
0.64,
|
| 573 |
+
0.489,
|
| 574 |
+
0.703
|
| 575 |
+
],
|
| 576 |
+
"angle": 0,
|
| 577 |
+
"content": "where \\( |B_m| \\) is the number of samples in bin \\( B_m \\). Finally, the difference between accuracy and confidence is averaged across all bins to obtain the ECE score:"
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "equation",
|
| 581 |
+
"bbox": [
|
| 582 |
+
0.134,
|
| 583 |
+
0.708,
|
| 584 |
+
0.488,
|
| 585 |
+
0.75
|
| 586 |
+
],
|
| 587 |
+
"angle": 0,
|
| 588 |
+
"content": "\\[\n\\mathrm {E C E} = \\sum_ {m = 1} ^ {M} \\frac {\\left| B _ {m} \\right|}{\\bar {N}} \\left| \\operatorname {a c c} \\left(B _ {m}\\right) - \\operatorname {c o n f} \\left(B _ {m}\\right) \\right| \\tag {6}\n\\]"
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"bbox": [
|
| 593 |
+
0.114,
|
| 594 |
+
0.756,
|
| 595 |
+
0.488,
|
| 596 |
+
0.786
|
| 597 |
+
],
|
| 598 |
+
"angle": 0,
|
| 599 |
+
"content": "As another popular metric, Brier score is similar to ECE but conducted at the instance level:"
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "equation",
|
| 603 |
+
"bbox": [
|
| 604 |
+
0.158,
|
| 605 |
+
0.791,
|
| 606 |
+
0.488,
|
| 607 |
+
0.834
|
| 608 |
+
],
|
| 609 |
+
"angle": 0,
|
| 610 |
+
"content": "\\[\n\\operatorname {B r i e r} = \\frac {1}{\\bar {N}} \\sum_ {i = 1} ^ {\\bar {N}} \\left(p \\left(\\hat {y} _ {i}\\right) - \\mathbb {1} \\left(y _ {i} = \\hat {y} _ {i}\\right)\\right) ^ {2}. \\tag {7}\n\\]"
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"bbox": [
|
| 615 |
+
0.114,
|
| 616 |
+
0.84,
|
| 617 |
+
0.489,
|
| 618 |
+
0.919
|
| 619 |
+
],
|
| 620 |
+
"angle": 0,
|
| 621 |
+
"content": "Both metrics range from 0 to 1 with lower values indicating better calibration. We take Brier score as the main metric, as it is more robust to unbalanced distribution across bins (e.g. instances concentrate to one or two bins)."
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"bbox": [
|
| 626 |
+
0.508,
|
| 627 |
+
0.407,
|
| 628 |
+
0.884,
|
| 629 |
+
0.502
|
| 630 |
+
],
|
| 631 |
+
"angle": 0,
|
| 632 |
+
"content": "Settings We conduct experiments on LLaMA2 and Mistral-family models and investigate both pretrained or instruction-tuned variations. We use nucleus sampling to obtain \\(N = 16\\) samples by default for each instance and use temperatures of 0.6 / 1.0 for all pretrained / instruction-tuned models."
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"bbox": [
|
| 637 |
+
0.509,
|
| 638 |
+
0.513,
|
| 639 |
+
0.884,
|
| 640 |
+
0.545
|
| 641 |
+
],
|
| 642 |
+
"angle": 0,
|
| 643 |
+
"content": "Baselines We take the three representative baselines below for comparison:"
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"bbox": [
|
| 648 |
+
0.518,
|
| 649 |
+
0.557,
|
| 650 |
+
0.882,
|
| 651 |
+
0.605
|
| 652 |
+
],
|
| 653 |
+
"angle": 0,
|
| 654 |
+
"content": "- logit w/ Path: It averages the probabilities of the tokens from the whole path to estimate the confidence of each prediction."
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"bbox": [
|
| 659 |
+
0.518,
|
| 660 |
+
0.617,
|
| 661 |
+
0.882,
|
| 662 |
+
0.665
|
| 663 |
+
],
|
| 664 |
+
"angle": 0,
|
| 665 |
+
"content": "- logit w/ Answer: It is similar to logit w/ Path but only consider the tokens from the predicted answer span."
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"bbox": [
|
| 670 |
+
0.518,
|
| 671 |
+
0.677,
|
| 672 |
+
0.885,
|
| 673 |
+
0.788
|
| 674 |
+
],
|
| 675 |
+
"angle": 0,
|
| 676 |
+
"content": "- \\( p(\\text{True}) \\): It asks the LLM itself to classify its prediction as True or False. Then, it takes the predicted probability of True as its confidence. We follow Kadavath et al. (2022) to construct 8-shot demonstrations for prompting pretrained models but directly use instruction for instruction-tuned models."
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "list",
|
| 680 |
+
"bbox": [
|
| 681 |
+
0.518,
|
| 682 |
+
0.557,
|
| 683 |
+
0.885,
|
| 684 |
+
0.788
|
| 685 |
+
],
|
| 686 |
+
"angle": 0,
|
| 687 |
+
"content": null
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "title",
|
| 691 |
+
"bbox": [
|
| 692 |
+
0.509,
|
| 693 |
+
0.802,
|
| 694 |
+
0.719,
|
| 695 |
+
0.818
|
| 696 |
+
],
|
| 697 |
+
"angle": 0,
|
| 698 |
+
"content": "4.2 Results and Analysis"
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"bbox": [
|
| 703 |
+
0.508,
|
| 704 |
+
0.823,
|
| 705 |
+
0.884,
|
| 706 |
+
0.919
|
| 707 |
+
],
|
| 708 |
+
"angle": 0,
|
| 709 |
+
"content": "Main Results Table 1 presents the main results obtained from both benchmarks using Mistral-family models. \\( p(\\text{True}) \\) performs best among the baselines, echoing the findings of Kadavath et al. (2022). However, due to its reliance on prompt design and in-context examples to aid the LLM"
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "page_number",
|
| 713 |
+
"bbox": [
|
| 714 |
+
0.481,
|
| 715 |
+
0.928,
|
| 716 |
+
0.521,
|
| 717 |
+
0.941
|
| 718 |
+
],
|
| 719 |
+
"angle": 0,
|
| 720 |
+
"content": "6025"
|
| 721 |
+
}
|
| 722 |
+
],
|
| 723 |
+
[
|
| 724 |
+
{
|
| 725 |
+
"type": "image",
|
| 726 |
+
"bbox": [
|
| 727 |
+
0.119,
|
| 728 |
+
0.081,
|
| 729 |
+
0.442,
|
| 730 |
+
0.263
|
| 731 |
+
],
|
| 732 |
+
"angle": 0,
|
| 733 |
+
"content": null
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "image_caption",
|
| 737 |
+
"bbox": [
|
| 738 |
+
0.114,
|
| 739 |
+
0.276,
|
| 740 |
+
0.489,
|
| 741 |
+
0.307
|
| 742 |
+
],
|
| 743 |
+
"angle": 0,
|
| 744 |
+
"content": "Figure 2: Calibration results on GSM8K when using Mixtral- \\(8\\times 7\\mathrm{B}\\) -Inst with different \\(N\\)"
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"bbox": [
|
| 749 |
+
0.113,
|
| 750 |
+
0.331,
|
| 751 |
+
0.489,
|
| 752 |
+
0.362
|
| 753 |
+
],
|
| 754 |
+
"angle": 0,
|
| 755 |
+
"content": "to classify its predictions, it can be challenging to construct effective demonstrations or instructions."
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"bbox": [
|
| 760 |
+
0.113,
|
| 761 |
+
0.364,
|
| 762 |
+
0.49,
|
| 763 |
+
0.555
|
| 764 |
+
],
|
| 765 |
+
"angle": 0,
|
| 766 |
+
"content": "In general, self-consistency-based methods surpass baselines in most cases regarding Brier and ECE, validating the efficacy of employing self-consistency features for estimating model confidence. We also note that baselines can occasionally yield impressive ECE scores (\\( p(\\text{True}) \\) on GSM8K with Mixtral- \\( 8 \\times 7\\mathrm{B} \\)). However, we observe that this is attributed to the concentration of most samples in just a few bins (e.g., Figure 1), leading to unreliable measurements. Nevertheless, our approaches still exhibit strong performance in terms of ECE scores across various settings."
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"bbox": [
|
| 771 |
+
0.113,
|
| 772 |
+
0.557,
|
| 773 |
+
0.49,
|
| 774 |
+
0.717
|
| 775 |
+
],
|
| 776 |
+
"angle": 0,
|
| 777 |
+
"content": "Among the self-consistency-based methods, \\(\\mathcal{F}_{CN}\\) yields better ECE results on GSM8K, while \\(\\mathcal{F}_{CS}\\) achieves the highest Brier score. Conversely, for MathQA, \\(\\mathcal{F}_{CN}\\) performs significantly worse than the other two. This is because MathQA is a multi-choice task, and thus the cluster number of LLM answers is strictly limited by the provided choices. In conclusion, \\(\\mathcal{F}_{CS}\\) demonstrates greater generality across diverse settings, but \\(\\mathcal{F}_{CN}\\) and \\(\\mathcal{F}_{PC}\\) do offer improved estimation in certain cases."
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"bbox": [
|
| 782 |
+
0.113,
|
| 783 |
+
0.718,
|
| 784 |
+
0.49,
|
| 785 |
+
0.799
|
| 786 |
+
],
|
| 787 |
+
"angle": 0,
|
| 788 |
+
"content": "Finally, we also explore averaging the proposed three metrics as a unified one, denoted as \"ALL\". Results show that it does not typically yield the best results. However, it serves as a robust choice, demonstrating competitive performance."
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"bbox": [
|
| 793 |
+
0.113,
|
| 794 |
+
0.807,
|
| 795 |
+
0.49,
|
| 796 |
+
0.919
|
| 797 |
+
],
|
| 798 |
+
"angle": 0,
|
| 799 |
+
"content": "Influence of Sample Size \\(N\\) Previous research (Wang et al., 2022) has demonstrated that the sample size \\(N\\) can significantly affect the accuracy of self-consistency. When \\(N\\) increases, the model performance initially continues to improve before stabilizing once \\(N\\) reaches a sufficient level. Therefore, we take Mixtral-8×7B-Inst as a case study to"
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "image",
|
| 803 |
+
"bbox": [
|
| 804 |
+
0.527,
|
| 805 |
+
0.083,
|
| 806 |
+
0.872,
|
| 807 |
+
0.262
|
| 808 |
+
],
|
| 809 |
+
"angle": 0,
|
| 810 |
+
"content": null
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "image_caption",
|
| 814 |
+
"bbox": [
|
| 815 |
+
0.508,
|
| 816 |
+
0.272,
|
| 817 |
+
0.886,
|
| 818 |
+
0.343
|
| 819 |
+
],
|
| 820 |
+
"angle": 0,
|
| 821 |
+
"content": "Figure 3: Performance and calibration results on GSM8K using different models below sorted by their performance: ① LLaMA2-7B-Chat, ② LLaMA2-13B-Chat, ③ Mistral-7B-Inst, ④ LLaMA2-70B-Chat, ⑤ Mixtral-8×7B-Inst."
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"bbox": [
|
| 826 |
+
0.508,
|
| 827 |
+
0.357,
|
| 828 |
+
0.811,
|
| 829 |
+
0.372
|
| 830 |
+
],
|
| 831 |
+
"angle": 0,
|
| 832 |
+
"content": "examine the impact of \\(N\\) on calibration."
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"bbox": [
|
| 837 |
+
0.508,
|
| 838 |
+
0.373,
|
| 839 |
+
0.885,
|
| 840 |
+
0.485
|
| 841 |
+
],
|
| 842 |
+
"angle": 0,
|
| 843 |
+
"content": "As illustrated in Figure 2, the Brier scores for all our methods initially decline and then remain constant as \\(N\\) grows. For \\(\\mathcal{F}_{CS}\\) and \\(\\mathcal{F}_{PC}\\), \\(N = 8\\) is adequate for accurate estimation. In contrast, \\(\\mathcal{F}_{CN}\\) requires a larger \\(N\\), indicating that the cluster number is more susceptible to the randomness of sampling."
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"bbox": [
|
| 848 |
+
0.508,
|
| 849 |
+
0.495,
|
| 850 |
+
0.886,
|
| 851 |
+
0.752
|
| 852 |
+
],
|
| 853 |
+
"angle": 0,
|
| 854 |
+
"content": "Correlation between Performance and Calibration We finally explore the associations between model performance (Accuracy) and calibration. Figure 3 showcases the results on instruction-tuned LLaMA2 and Mistral series models, arranged in ascending order based on their performance. We generally observe a positively correlated trend between calibration (lower the better) and performance (higher the better) among the studied models. This observation indicates that more powerful models also exhibit enhanced calibration, echoing the findings of Kadavath et al. (2022). This phenomenon can be attributed to the fact that when a tested LLM is stronger, it is capable of generating more reasonable and consistent responses, leading to improved calibration."
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "title",
|
| 858 |
+
"bbox": [
|
| 859 |
+
0.509,
|
| 860 |
+
0.765,
|
| 861 |
+
0.642,
|
| 862 |
+
0.78
|
| 863 |
+
],
|
| 864 |
+
"angle": 0,
|
| 865 |
+
"content": "5 Conclusion"
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"bbox": [
|
| 870 |
+
0.508,
|
| 871 |
+
0.791,
|
| 872 |
+
0.885,
|
| 873 |
+
0.92
|
| 874 |
+
],
|
| 875 |
+
"angle": 0,
|
| 876 |
+
"content": "In this paper, we extend the widely-used inference strategy, self-consistency, to the field of calibration. Specifically, we develop three off-the-shelf calibration methods based on self-consistency for math reasoning tasks. Compared to conventional methods (p(True) and logit), our approaches yield significantly improved ECE and Brier scores on popular GSM8K and MathQA datasets. Future"
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "page_number",
|
| 880 |
+
"bbox": [
|
| 881 |
+
0.481,
|
| 882 |
+
0.929,
|
| 883 |
+
0.522,
|
| 884 |
+
0.941
|
| 885 |
+
],
|
| 886 |
+
"angle": 0,
|
| 887 |
+
"content": "6026"
|
| 888 |
+
}
|
| 889 |
+
],
|
| 890 |
+
[
|
| 891 |
+
{
|
| 892 |
+
"type": "text",
|
| 893 |
+
"bbox": [
|
| 894 |
+
0.113,
|
| 895 |
+
0.085,
|
| 896 |
+
0.49,
|
| 897 |
+
0.198
|
| 898 |
+
],
|
| 899 |
+
"angle": 0,
|
| 900 |
+
"content": "research directions include designing more effective calibration methods, leveraging richer features and employing more strategies (e.g., temperature scaling (Guo et al., 2017)) to enhance calibration performance. Our ultimate goal is to construct reliable and honest LLMs with the help of accurate confidence estimation."
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "title",
|
| 904 |
+
"bbox": [
|
| 905 |
+
0.114,
|
| 906 |
+
0.21,
|
| 907 |
+
0.221,
|
| 908 |
+
0.225
|
| 909 |
+
],
|
| 910 |
+
"angle": 0,
|
| 911 |
+
"content": "Limitations"
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"bbox": [
|
| 916 |
+
0.113,
|
| 917 |
+
0.237,
|
| 918 |
+
0.49,
|
| 919 |
+
0.43
|
| 920 |
+
],
|
| 921 |
+
"angle": 0,
|
| 922 |
+
"content": "Our methods are founded on the principle of self-consistency, which relies on sampling multiple times for prediction. This approach, however, needs additional cost for inference, which may not be efficient and eco-friendly. Besides, our current work is limited to mathematical problems and does not explore other types of tasks, such as question-answering. Although it is crucial to extend our methods to encompass other tasks, this is non-trivial due to the inherent difficulty in dividing certain tasks' model predictions into distinct clusters."
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "title",
|
| 926 |
+
"bbox": [
|
| 927 |
+
0.115,
|
| 928 |
+
0.443,
|
| 929 |
+
0.266,
|
| 930 |
+
0.458
|
| 931 |
+
],
|
| 932 |
+
"angle": 0,
|
| 933 |
+
"content": "Ethics Statement"
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"bbox": [
|
| 938 |
+
0.113,
|
| 939 |
+
0.469,
|
| 940 |
+
0.49,
|
| 941 |
+
0.583
|
| 942 |
+
],
|
| 943 |
+
"angle": 0,
|
| 944 |
+
"content": "We focus on ethical AI research and strive to achieve a balance between technological advancements and our ethical responsibilities. This work studies calibration, which aims to enhance the reliability of LLMs. Besides, we conduct experiments only on publicly available datasets, upholding privacy and anonymity rules."
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "title",
|
| 948 |
+
"bbox": [
|
| 949 |
+
0.115,
|
| 950 |
+
0.61,
|
| 951 |
+
0.214,
|
| 952 |
+
0.625
|
| 953 |
+
],
|
| 954 |
+
"angle": 0,
|
| 955 |
+
"content": "References"
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "ref_text",
|
| 959 |
+
"bbox": [
|
| 960 |
+
0.116,
|
| 961 |
+
0.633,
|
| 962 |
+
0.49,
|
| 963 |
+
0.7
|
| 964 |
+
],
|
| 965 |
+
"angle": 0,
|
| 966 |
+
"content": "Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774."
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "ref_text",
|
| 970 |
+
"bbox": [
|
| 971 |
+
0.117,
|
| 972 |
+
0.71,
|
| 973 |
+
0.49,
|
| 974 |
+
0.828
|
| 975 |
+
],
|
| 976 |
+
"angle": 0,
|
| 977 |
+
"content": "Aida Amini, Saadia Gabriel, Shanchuan Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannaneh Hajishirzi. 2019. Mathqa: Towards interpretable math word problem solving with operation-based formalisms. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2357-2367."
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "ref_text",
|
| 981 |
+
"bbox": [
|
| 982 |
+
0.117,
|
| 983 |
+
0.84,
|
| 984 |
+
0.49,
|
| 985 |
+
0.919
|
| 986 |
+
],
|
| 987 |
+
"angle": 0,
|
| 988 |
+
"content": "Yangyi Chen, Lifan Yuan, Ganqu Cui, Zhiyuan Liu, and Heng Ji. 2023. A close look into the calibration of pre-trained language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1343-1367."
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "list",
|
| 992 |
+
"bbox": [
|
| 993 |
+
0.116,
|
| 994 |
+
0.633,
|
| 995 |
+
0.49,
|
| 996 |
+
0.919
|
| 997 |
+
],
|
| 998 |
+
"angle": 0,
|
| 999 |
+
"content": null
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "ref_text",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
0.511,
|
| 1005 |
+
0.086,
|
| 1006 |
+
0.883,
|
| 1007 |
+
0.153
|
| 1008 |
+
],
|
| 1009 |
+
"angle": 0,
|
| 1010 |
+
"content": "Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168."
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "ref_text",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
0.511,
|
| 1016 |
+
0.162,
|
| 1017 |
+
0.885,
|
| 1018 |
+
0.215
|
| 1019 |
+
],
|
| 1020 |
+
"angle": 0,
|
| 1021 |
+
"content": "Jiahui Geng, Fengyu Cai, Yuxia Wang, Heinz Koeppl, Preslav Nakov, and Iryna Gurevych. 2023. A survey of language model confidence estimation and calibration. arXiv preprint arXiv:2311.08298."
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "ref_text",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
0.511,
|
| 1027 |
+
0.224,
|
| 1028 |
+
0.885,
|
| 1029 |
+
0.277
|
| 1030 |
+
],
|
| 1031 |
+
"angle": 0,
|
| 1032 |
+
"content": "Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. 2017. On calibration of modern neural networks. In International conference on machine learning, pages 1321-1330. PMLR."
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "ref_text",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
0.511,
|
| 1038 |
+
0.286,
|
| 1039 |
+
0.885,
|
| 1040 |
+
0.365
|
| 1041 |
+
],
|
| 1042 |
+
"angle": 0,
|
| 1043 |
+
"content": "Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the math dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2)."
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "ref_text",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
0.511,
|
| 1049 |
+
0.375,
|
| 1050 |
+
0.885,
|
| 1051 |
+
0.466
|
| 1052 |
+
],
|
| 1053 |
+
"angle": 0,
|
| 1054 |
+
"content": "Mark Hopkins, Cristian Petrescu-Prahova, Roie Levin, Ronan Le Bras, Alvaro Herrasti, and Vidur Joshi. 2017. Beyond sentential semantic parsing: Tackling the math sat with a cascade of tree transducers. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 795-804."
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "ref_text",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
0.511,
|
| 1060 |
+
0.476,
|
| 1061 |
+
0.885,
|
| 1062 |
+
0.543
|
| 1063 |
+
],
|
| 1064 |
+
"angle": 0,
|
| 1065 |
+
"content": "Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7b. arXiv preprint arXiv:2310.06825."
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "ref_text",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
0.511,
|
| 1071 |
+
0.551,
|
| 1072 |
+
0.885,
|
| 1073 |
+
0.618
|
| 1074 |
+
],
|
| 1075 |
+
"angle": 0,
|
| 1076 |
+
"content": "Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088."
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "ref_text",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
0.511,
|
| 1082 |
+
0.627,
|
| 1083 |
+
0.885,
|
| 1084 |
+
0.706
|
| 1085 |
+
],
|
| 1086 |
+
"angle": 0,
|
| 1087 |
+
"content": "Mandar Joshi, Eunsol Choi, Daniel S Weld, and Luke Zettlemoyer. 2017. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1601-1611."
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "ref_text",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
0.511,
|
| 1093 |
+
0.715,
|
| 1094 |
+
0.883,
|
| 1095 |
+
0.793
|
| 1096 |
+
],
|
| 1097 |
+
"angle": 0,
|
| 1098 |
+
"content": "Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, et al. 2022. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221."
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "ref_text",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
0.511,
|
| 1104 |
+
0.803,
|
| 1105 |
+
0.885,
|
| 1106 |
+
0.869
|
| 1107 |
+
],
|
| 1108 |
+
"angle": 0,
|
| 1109 |
+
"content": "Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213."
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "ref_text",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
0.511,
|
| 1115 |
+
0.878,
|
| 1116 |
+
0.885,
|
| 1117 |
+
0.919
|
| 1118 |
+
],
|
| 1119 |
+
"angle": 0,
|
| 1120 |
+
"content": "Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation. In"
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "list",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
0.511,
|
| 1126 |
+
0.086,
|
| 1127 |
+
0.885,
|
| 1128 |
+
0.919
|
| 1129 |
+
],
|
| 1130 |
+
"angle": 0,
|
| 1131 |
+
"content": null
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "page_number",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
0.481,
|
| 1137 |
+
0.929,
|
| 1138 |
+
0.521,
|
| 1139 |
+
0.941
|
| 1140 |
+
],
|
| 1141 |
+
"angle": 0,
|
| 1142 |
+
"content": "6027"
|
| 1143 |
+
}
|
| 1144 |
+
],
|
| 1145 |
+
[
|
| 1146 |
+
{
|
| 1147 |
+
"type": "ref_text",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
0.133,
|
| 1150 |
+
0.086,
|
| 1151 |
+
0.489,
|
| 1152 |
+
0.113
|
| 1153 |
+
],
|
| 1154 |
+
"angle": 0,
|
| 1155 |
+
"content": "The Eleventh International Conference on Learning Representations."
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "ref_text",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
0.117,
|
| 1161 |
+
0.121,
|
| 1162 |
+
0.49,
|
| 1163 |
+
0.201
|
| 1164 |
+
],
|
| 1165 |
+
"angle": 0,
|
| 1166 |
+
"content": "Jierui Li, Lei Wang, Jipeng Zhang, Yan Wang, Bing Tian Dai, and Dongxiang Zhang. 2019. Modeling intra-relation in math word problems with different functional multi-head attentions. In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 6162-6167."
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "ref_text",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
0.117,
|
| 1172 |
+
0.21,
|
| 1173 |
+
0.49,
|
| 1174 |
+
0.29
|
| 1175 |
+
],
|
| 1176 |
+
"angle": 0,
|
| 1177 |
+
"content": "Zhongli Li, Wenxuan Zhang, Chao Yan, Qingyu Zhou, Chao Li, Hongzhi Liu, and Yunbo Cao. 2022. Seeking patterns, not just memorizing procedures: Contrastive learning for solving math word problems. In *Findings of the Association for Computational Linguistics: ACL* 2022, pages 2486-2496."
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "ref_text",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
0.117,
|
| 1183 |
+
0.298,
|
| 1184 |
+
0.49,
|
| 1185 |
+
0.378
|
| 1186 |
+
],
|
| 1187 |
+
"angle": 0,
|
| 1188 |
+
"content": "Lucie Charlotte Magister, Jonathan Mallinson, Jakub Adamek, Eric Malmi, and Aliaksei Severyn. 2023. Teaching small language models to reason. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1773-1781."
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "ref_text",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
0.117,
|
| 1194 |
+
0.386,
|
| 1195 |
+
0.49,
|
| 1196 |
+
0.466
|
| 1197 |
+
],
|
| 1198 |
+
"angle": 0,
|
| 1199 |
+
"content": "Takuya Matsuzaki, Takumi Ito, Hidenao Iwane, Hirokazu Anai, and Noriko H Arai. 2017. Semantic parsing of pre-university math problems. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2131-2141."
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "ref_text",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
0.117,
|
| 1205 |
+
0.474,
|
| 1206 |
+
0.489,
|
| 1207 |
+
0.554
|
| 1208 |
+
],
|
| 1209 |
+
"angle": 0,
|
| 1210 |
+
"content": "Arkil Patel, Satwik Bhattachamishra, and Navin Goyal. 2021. Are nlp models really able to solve simple math word problems? In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2080-2094."
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "ref_text",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
0.117,
|
| 1216 |
+
0.562,
|
| 1217 |
+
0.49,
|
| 1218 |
+
0.667
|
| 1219 |
+
],
|
| 1220 |
+
"angle": 0,
|
| 1221 |
+
"content": "Jinghui Qin, Xiaodan Liang, Yining Hong, Jianheng Tang, and Liang Lin. 2021. Neural-symbolic solver for math word problems with auxiliary tasks. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5870-5881."
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "ref_text",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
0.117,
|
| 1227 |
+
0.676,
|
| 1228 |
+
0.49,
|
| 1229 |
+
0.755
|
| 1230 |
+
],
|
| 1231 |
+
"angle": 0,
|
| 1232 |
+
"content": "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1-67."
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "ref_text",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
0.117,
|
| 1238 |
+
0.764,
|
| 1239 |
+
0.49,
|
| 1240 |
+
0.83
|
| 1241 |
+
],
|
| 1242 |
+
"angle": 0,
|
| 1243 |
+
"content": "Kumar Shridhar, Alessandro Stolfo, and Mrinmaya Sachan. 2023. Distilling reasoning capabilities into smaller language models. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 7059-7073."
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "ref_text",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
0.117,
|
| 1249 |
+
0.84,
|
| 1250 |
+
0.49,
|
| 1251 |
+
0.918
|
| 1252 |
+
],
|
| 1253 |
+
"angle": 0,
|
| 1254 |
+
"content": "Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288."
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "list",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
0.117,
|
| 1260 |
+
0.086,
|
| 1261 |
+
0.49,
|
| 1262 |
+
0.918
|
| 1263 |
+
],
|
| 1264 |
+
"angle": 0,
|
| 1265 |
+
"content": null
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "ref_text",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
0.512,
|
| 1271 |
+
0.086,
|
| 1272 |
+
0.885,
|
| 1273 |
+
0.166
|
| 1274 |
+
],
|
| 1275 |
+
"angle": 0,
|
| 1276 |
+
"content": "Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations."
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "ref_text",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
0.512,
|
| 1282 |
+
0.175,
|
| 1283 |
+
0.885,
|
| 1284 |
+
0.241
|
| 1285 |
+
],
|
| 1286 |
+
"angle": 0,
|
| 1287 |
+
"content": "Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837."
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "ref_text",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
0.512,
|
| 1293 |
+
0.25,
|
| 1294 |
+
0.885,
|
| 1295 |
+
0.343
|
| 1296 |
+
],
|
| 1297 |
+
"angle": 0,
|
| 1298 |
+
"content": "Qinzhuo Wu, Qi Zhang, Zhongyu Wei, and Xuan-Jing Huang. 2021. Math word problem solving with explicit numerical values. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5859-5869."
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "ref_text",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
0.512,
|
| 1304 |
+
0.352,
|
| 1305 |
+
0.885,
|
| 1306 |
+
0.419
|
| 1307 |
+
],
|
| 1308 |
+
"angle": 0,
|
| 1309 |
+
"content": "Miao Xiong, Zhiyuan Hu, Xinyang Lu, YIFEI LI, Jie Fu, Junxian He, and Bryan Hooi. 2023. Can llms express their uncertainty? an empirical evaluation of confidence elicitation in llms. In The Twelfth International Conference on Learning Representations."
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "list",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
0.512,
|
| 1315 |
+
0.086,
|
| 1316 |
+
0.885,
|
| 1317 |
+
0.419
|
| 1318 |
+
],
|
| 1319 |
+
"angle": 0,
|
| 1320 |
+
"content": null
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "title",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
0.512,
|
| 1326 |
+
0.431,
|
| 1327 |
+
0.772,
|
| 1328 |
+
0.448
|
| 1329 |
+
],
|
| 1330 |
+
"angle": 0,
|
| 1331 |
+
"content": "A Experiments on TriviaQA"
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
0.508,
|
| 1337 |
+
0.457,
|
| 1338 |
+
0.885,
|
| 1339 |
+
0.648
|
| 1340 |
+
],
|
| 1341 |
+
"angle": 0,
|
| 1342 |
+
"content": "Although this work mainly focuses on math problems, we also verify the effectiveness of our approach on TriviaQA (Joshi et al., 2017), a popular question-answering benchmark. Different from math problems, the outputs of LLMs for this task sometimes lack clear answers for clustering. For instance, Mistral-7B-Inst provides a lengthy response, \"The musical Phantom of the Opera premiered in the US on 10th December 1993...\", instead of an answer span \"Phantom of the Opera\", to the question \"Which Lloyd Webber musical premiered in the US on 10th December 1993?\"."
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"bbox": [
|
| 1347 |
+
0.508,
|
| 1348 |
+
0.65,
|
| 1349 |
+
0.885,
|
| 1350 |
+
0.697
|
| 1351 |
+
],
|
| 1352 |
+
"angle": 0,
|
| 1353 |
+
"content": "To address this issue, we follow Kuhn et al. to employ natural language inference (NLI) to identify responses with the same answers<sup>2</sup>."
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "text",
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
0.508,
|
| 1359 |
+
0.698,
|
| 1360 |
+
0.885,
|
| 1361 |
+
0.762
|
| 1362 |
+
],
|
| 1363 |
+
"angle": 0,
|
| 1364 |
+
"content": "Results are shown in Table 2. Our approach significantly surpasses the baselines, particularly when utilizing instruction-tuned models, further demonstrating the effectiveness of our method."
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "page_footnote",
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
0.509,
|
| 1370 |
+
0.881,
|
| 1371 |
+
0.883,
|
| 1372 |
+
0.918
|
| 1373 |
+
],
|
| 1374 |
+
"angle": 0,
|
| 1375 |
+
"content": "\\(^{2}\\)We adopt a publicly accessible model at https://huggingface.co/MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli."
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "page_number",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
0.481,
|
| 1381 |
+
0.928,
|
| 1382 |
+
0.521,
|
| 1383 |
+
0.941
|
| 1384 |
+
],
|
| 1385 |
+
"angle": 0,
|
| 1386 |
+
"content": "6028"
|
| 1387 |
+
}
|
| 1388 |
+
],
|
| 1389 |
+
[
|
| 1390 |
+
{
|
| 1391 |
+
"type": "table",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
0.186,
|
| 1394 |
+
0.424,
|
| 1395 |
+
0.812,
|
| 1396 |
+
0.549
|
| 1397 |
+
],
|
| 1398 |
+
"angle": 0,
|
| 1399 |
+
"content": "<table><tr><td></td><td colspan=\"2\">Mistral-7B</td><td colspan=\"2\">Mistral-7B-Inst</td><td colspan=\"2\">Mixtral-8×7B</td><td colspan=\"2\">Mixtral-8×7B-Inst</td></tr><tr><td></td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td></tr><tr><td>logit</td><td>0.119</td><td>0.156</td><td>0.385</td><td>0.377</td><td>0.069</td><td>0.116</td><td>0.256</td><td>0.298</td></tr><tr><td>p(True)</td><td>0.077</td><td>0.162</td><td>0.326</td><td>0.318</td><td>0.099</td><td>0.131</td><td>0.314</td><td>0.316</td></tr><tr><td colspan=\"9\">Self-Consistency</td></tr><tr><td>w/ FCN</td><td>0.044</td><td>0.133</td><td>0.054</td><td>0.173</td><td>0.077</td><td>0.119</td><td>0.068</td><td>0.115</td></tr><tr><td>w/ FCS</td><td>0.043</td><td>0.132</td><td>0.072</td><td>0.186</td><td>0.039</td><td>0.107</td><td>0.039</td><td>0.116</td></tr><tr><td>w/ FPC</td><td>0.071</td><td>0.137</td><td>0.109</td><td>0.186</td><td>0.102</td><td>0.129</td><td>0.121</td><td>0.126</td></tr></table>"
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "table_caption",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
0.383,
|
| 1405 |
+
0.559,
|
| 1406 |
+
0.614,
|
| 1407 |
+
0.573
|
| 1408 |
+
],
|
| 1409 |
+
"angle": 0,
|
| 1410 |
+
"content": "Table 2: Test results on TriviaQA."
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "page_number",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
0.481,
|
| 1416 |
+
0.929,
|
| 1417 |
+
0.521,
|
| 1418 |
+
0.941
|
| 1419 |
+
],
|
| 1420 |
+
"angle": 0,
|
| 1421 |
+
"content": "6029"
|
| 1422 |
+
}
|
| 1423 |
+
]
|
| 1424 |
+
]
|
2024/Self-Consistency Boosts Calibration for Math Reasoning/610e067d-96b2-49b7-8e9d-e89fb3c34d6e_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efe49d49efc8fd6a51a2012f027db23ec5f53ee040e89563fc1068e177cb78dc
|
| 3 |
+
size 288418
|
2024/Self-Consistency Boosts Calibration for Math Reasoning/full.md
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Self-Consistency Boosts Calibration for Math Reasoning
|
| 2 |
+
|
| 3 |
+
Ante Wang $^{1,2}$ , Linfeng Song $^{3*}$ , Ye Tian $^{3}$ , Baolin Peng $^{3}$ , Lifeng Jin $^{3}$ , Haitao Mi $^{3}$ , Jinsong Su $^{1,2*}$ and Dong Yu $^{3}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ School of Informatics, Xiamen University, China
|
| 6 |
+
|
| 7 |
+
$^{2}$ Key Laboratory of Digital Protection and Intelligent Processing of Intangible Cultural Heritage
|
| 8 |
+
|
| 9 |
+
of Fujian and Taiwan (Xiamen University), Ministry of Culture and Tourism, China
|
| 10 |
+
|
| 11 |
+
$^{3}$ Tencent AI Lab, Bellevue, WA
|
| 12 |
+
|
| 13 |
+
wangante@stu.xmu.edu.cn, lfsong@global.tencent.com, jssu@xmu.edu.cn
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Calibration, which establishes the correlation between accuracy and model confidence, is important for LLM development. We design three off-the-shelf calibration methods based on self-consistency (Wang et al., 2022) for math reasoning tasks. Evaluation on two popular benchmarks (GSM8K and MathQA) using strong open-source LLMs (Mistral and LLaMA2) shows that our methods better bridge model confidence and accuracy than existing methods based on $p(\text{True})$ (Kadavath et al., 2022) or logit (Guo et al., 2017).
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
Mathematical reasoning tasks (Cobbe et al., 2021; Hendrycks et al., 2021; Amini et al., 2019) involve mapping a question into a series of equations, which are then solved to obtain the final answer. Math reasoning has long been recognized challenging. Existing solutions propose to map input questions into equations via semantic parsing (Matsuzaki et al., 2017; Hopkins et al., 2017) or AST decoding (Li et al., 2019; Qin et al., 2021; Wu et al., 2021). Yet, the performance can degrade dramatically even with slight changes to the questions (Patel et al., 2021; Li et al., 2022).
|
| 22 |
+
|
| 23 |
+
Recently, large language models (LLM, Achiam et al. 2023; Touvron et al. 2023; Jiang et al. 2024) have shown great potential for solving many math reasoning tasks, even though they are not specifically trained on these tasks. For instance, with chain-of-thought prompting (Wei et al., 2022) and self-consistency (Wang et al., 2022), open-source LLMs, such as Mixtral $8 \times 7\mathrm{B}$ (Jiang et al., 2024), can reach an accuracy of around $80\%$ on the GSM8K benchmark (Cobbe et al., 2021). On the other hand, conventional pretrained models (e.g., T5 (Raffel et al., 2020)) that are specifically finetuned on the GSM8K training set can only report
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Comparison of several calibration methods on Mistral-7B, where $SC w / \mathcal{F}_{CN}$ is one of our methods based on self-consistency, which will be introduced in §3.
|
| 27 |
+
|
| 28 |
+
accuracies around $10\%$ to $20\%$ (Shridhar et al., 2023; Magister et al., 2023).
|
| 29 |
+
|
| 30 |
+
However, LLMs lack adequate calibration out of the box – the probabilities of model predictions are often poorly aligned with the actual accuracy (Xiong et al., 2023; Chen et al., 2023). Calibration is important for LLM development, as a well-calibrated LLM can precisely tell how likely its responses are correct or not. With such information, LLM developers can take multiple options to handle low-confidence responses, such as letting the LLM refuse to answer or keep resampling until a confident response is produced.
|
| 31 |
+
|
| 32 |
+
In this work, we propose calibration methods based on self-consistency (Wang et al., 2022) for math reasoning tasks. Self-consistency performs clustering over multiple LLM samples before picking one from the largest cluster as the response to each input query. Here we consider several ways to estimate model confidence using the clustering results: cluster size that estimates how many samples agree with the selected one, cluster number that measures to what extent samples disagree with
|
| 33 |
+
|
| 34 |
+
each other, and pairwise comparison that captures relative differences between pairs of clusters.
|
| 35 |
+
|
| 36 |
+
We conduct experiments using strong open-source LLMs: Mistral (Jiang et al., 2023, 2024) and LLaMA2 (Touvron et al., 2023) series models with / without being aligned with instructions. Results on GSM8K (Cobbe et al., 2021) and MathQA (Amini et al., 2019) show that all our methods better calibrate these models than exiting popular methods, such as $p(\text{True})$ (Kadavath et al., 2022) and logit (Guo et al., 2017) over the whole reasoning path or target answer span only.
|
| 37 |
+
|
| 38 |
+
# 2 Preview: Self-Consistency with CoT Prompting
|
| 39 |
+
|
| 40 |
+
For math reasoning, there are usually multiple trajectories to reach the final solution. To replicate this process, Wang et al. (2022) initially sample various reasoning paths $r_1, \dots, r_N$ from the LLM given input $x$ with Chain-of-Thought (CoT) prompting. Then, the answers $a_1, \dots, a_N$ are extracted from the paths, and the most consistent answer (the one win by majority vote among the answers) is selected as the final answer $\mathbf{a}$ :
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
\mathbf {a} = \max _ {\hat {a}} \sum_ {i = 1} ^ {N} \mathbb {1} \left(a _ {i} = \hat {a}\right), \tag {1}
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
r _ {i}, a _ {i} \sim \mathrm {L L M} _ {\theta} (x),
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
where $r_i, a_i$ denote the $i$ -th sampled reasoning path and its corresponding answer, respectively.
|
| 51 |
+
|
| 52 |
+
# 3 Calibration using Self-Consistency
|
| 53 |
+
|
| 54 |
+
After performing self-consistency on input $x$ using $\mathrm{LLM}_{\theta}$ , we obtain a set of clusters $\mathcal{C} = \{c_1, \dots, c_{|\mathcal{C}|}\}$ with each cluster $c_i$ comprising $n_i$ sampled responses with the same answers. We design the following strategies, tailored to the characteristics of these clusters, to estimate the confidence of $\mathrm{LLM}_{\theta}$ .
|
| 55 |
+
|
| 56 |
+
Cluster Number We initially consider the Cluster Number $|\mathcal{C}|$ . This is motivated by the finding of previous work (Wang et al., 2022; Xiong et al., 2023): LLMs tend to generate consistent answers when they are confident about their predictions, and thus the cluster number (number of distinct answers) tends to be small. We further divide the cluster number by the sample size $N$ to normalize
|
| 57 |
+
|
| 58 |
+
the score into the range of [0, 1], before reversing it by “ $1 - x$ ”:
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
\mathcal {F} _ {C N} (x, \theta) = 1 - \frac {| \mathcal {C} |}{N}. \tag {2}
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
Cluster Size In a similar vein, we adopt the Cluster Size: the number of samples (e.g., $n_i$ ) within a specific cluster (e.g., $c_i$ ). Again, we compute its proportion relative to the total sample size to normalize the score into the range [0, 1]:
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\mathcal {F} _ {C S} (x, \theta) = \frac {n _ {i}}{N}. \tag {3}
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
In contrast to the cluster number, the cluster size is more universally applicable across diverse prompts, as the cluster number can easily become ineffective when the output space of an LLM is restricted, such as when options for a question are provided.
|
| 71 |
+
|
| 72 |
+
Pairwise Comparison The Cluster Number and Cluster Size primarily consider the number of distinct answers and the number of sampled paths within a single cluster, respectively. They both overlook the information by comparing different clusters. For example, they may fail to consider the situation when the sizes of the top-ranked clusters are close. Consequently, we introduce the Pairwise Comparison method, which computes the winning rate of the chosen cluster $(c_i)$ against each of the remaining clusters:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\mathcal {F} _ {P C} (x, \theta) = \prod_ {j \neq i} ^ {| \mathcal {C} |} \frac {n _ {i}}{n _ {i} + n _ {j}}, \tag {4}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $\frac{n_i}{n_i + n_j}$ represents the winning rate of selected cluster $c_i$ against another cluster $c_j$ by comparing the respective cluster sizes.
|
| 79 |
+
|
| 80 |
+
# 4 Experiments
|
| 81 |
+
|
| 82 |
+
# 4.1 Setup
|
| 83 |
+
|
| 84 |
+
Datasets We conduct experiments on two popular math reasoning benchmarks of different type of questions, GSM8K (Cobbe et al., 2021) and MathQA (Amini et al., 2019). Particularly, GSM8K comprises 1,319 linguistically diverse grade school math word problems for testing. On the other hand, MathQA offers 2,985 multiple-choice math word problems for evaluation.
|
| 85 |
+
|
| 86 |
+
Evaluation Metrics We adopt Brier Score and Expected Calibration Error (ECE) as evaluating
|
| 87 |
+
|
| 88 |
+
<table><tr><td rowspan="2" colspan="2"></td><td colspan="2">Mistral-7B</td><td colspan="2">Mistral-7B-Inst</td><td colspan="2">Mixtral-8×7B</td><td colspan="2">Mixtral-8×7B-Inst</td></tr><tr><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td></tr><tr><td rowspan="8">GSM8K</td><td>logit w/ Path</td><td>0.394</td><td>0.399</td><td>0.414</td><td>0.414</td><td>0.178</td><td>0.265</td><td>0.233</td><td>0.252</td></tr><tr><td>logit w/ Answer</td><td>0.505</td><td>0.488</td><td>0.467</td><td>0.458</td><td>0.307</td><td>0.312</td><td>0.236</td><td>0.238</td></tr><tr><td>p(True)</td><td>0.127</td><td>0.267</td><td>0.406</td><td>0.407</td><td>0.070</td><td>0.201</td><td>0.195</td><td>0.198</td></tr><tr><td>Self-Consistency</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>w/ FCN</td><td>0.092</td><td>0.186</td><td>0.125</td><td>0.182</td><td>0.136</td><td>0.157</td><td>0.075</td><td>0.092</td></tr><tr><td>w/ FCS</td><td>0.148</td><td>0.185</td><td>0.163</td><td>0.180</td><td>0.173</td><td>0.156</td><td>0.085</td><td>0.086</td></tr><tr><td>w/ FPC</td><td>0.248</td><td>0.229</td><td>0.253</td><td>0.226</td><td>0.238</td><td>0.194</td><td>0.110</td><td>0.096</td></tr><tr><td>w/ ALL</td><td>0.101</td><td>0.172</td><td>0.123</td><td>0.162</td><td>0.135</td><td>0.141</td><td>0.078</td><td>0.083</td></tr><tr><td rowspan="8">MathQA</td><td>logit w/ Path</td><td>0.500</td><td>0.499</td><td>0.539</td><td>0.510</td><td>0.333</td><td>0.380</td><td>0.364</td><td>0.373</td></tr><tr><td>logit w/ Answer</td><td>0.356</td><td>0.362</td><td>0.291</td><td>0.319</td><td>0.266</td><td>0.290</td><td>0.220</td><td>0.281</td></tr><tr><td>p(True)</td><td>0.350</td><td>0.309</td><td>0.271</td><td>0.317</td><td>0.228</td><td>0.253</td><td>0.273</td><td>0.272</td></tr><tr><td>Self-Consistency</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>w/ FCN</td><td>0.331</td><td>0.336</td><td>0.374</td><td>0.359</td><td>0.143</td><td>0.236</td><td>0.128</td><td>0.215</td></tr><tr><td>w/ FCS</td><td>0.091</td><td>0.225</td><td>0.114</td><td>0.227</td><td>0.080</td><td>0.190</td><td>0.035</td><td>0.171</td></tr><tr><td>w/ FPC</td><td>0.052</td><td>0.220</td><td>0.065</td><td>0.219</td><td>0.143</td><td>0.203</td><td>0.054</td><td>0.174</td></tr><tr><td>w/ ALL</td><td>0.144</td><td>0.238</td><td>0.172</td><td>0.242</td><td>0.089</td><td>0.190</td><td>0.072</td><td>0.177</td></tr></table>
|
| 89 |
+
|
| 90 |
+
Table 1: Main test results on GSM8K and MathQA when using Mistral family models. Specifically, $*$ -Inst indicates instruction-tuned models.
|
| 91 |
+
|
| 92 |
+
metrics following common practice (Geng et al., 2023).
|
| 93 |
+
|
| 94 |
+
Given instances $(x_{1},y_{1}),\dots,(x_{\bar{N}},y_{\bar{N}})$ and their corresponding LLM predictions $\hat{y}_1,\dots,\hat{y}_{\bar{N}}$ , ECE is computed by first binning the predictions into $M = 10$ intervals based on their LLM confidence levels (e.g., $p(\hat{y}_i)$ ). For each bin (e.g. $B_{m}$ ), it then calculates the accuracy (acc $(B_{m})$ ) and the average confidence $(\mathrm{conf}(B_m))$ ..
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
\operatorname {a c c} \left(B _ {m}\right) = \frac {1}{\left| B _ {m} \right|} \sum_ {i \in B _ {m}} \mathbb {1} \left(y _ {i} = \hat {y} _ {i}\right),
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\operatorname {c o n f} \left(B _ {m}\right) = \frac {1}{\left| B _ {m} \right|} \sum_ {i \in B _ {m}} p \left(\hat {y} _ {i}\right),
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $|B_m|$ is the number of samples in bin $B_m$ . Finally, the difference between accuracy and confidence is averaged across all bins to obtain the ECE score:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\mathrm {E C E} = \sum_ {m = 1} ^ {M} \frac {\left| B _ {m} \right|}{\bar {N}} \left| \operatorname {a c c} \left(B _ {m}\right) - \operatorname {c o n f} \left(B _ {m}\right) \right| \tag {6}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
As another popular metric, Brier score is similar to ECE but conducted at the instance level:
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\operatorname {B r i e r} = \frac {1}{\bar {N}} \sum_ {i = 1} ^ {\bar {N}} \left(p \left(\hat {y} _ {i}\right) - \mathbb {1} \left(y _ {i} = \hat {y} _ {i}\right)\right) ^ {2}. \tag {7}
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
Both metrics range from 0 to 1 with lower values indicating better calibration. We take Brier score as the main metric, as it is more robust to unbalanced distribution across bins (e.g. instances concentrate to one or two bins).
|
| 117 |
+
|
| 118 |
+
Settings We conduct experiments on LLaMA2 and Mistral-family models and investigate both pretrained or instruction-tuned variations. We use nucleus sampling to obtain $N = 16$ samples by default for each instance and use temperatures of 0.6 / 1.0 for all pretrained / instruction-tuned models.
|
| 119 |
+
|
| 120 |
+
Baselines We take the three representative baselines below for comparison:
|
| 121 |
+
|
| 122 |
+
- logit w/ Path: It averages the probabilities of the tokens from the whole path to estimate the confidence of each prediction.
|
| 123 |
+
- logit w/ Answer: It is similar to logit w/ Path but only consider the tokens from the predicted answer span.
|
| 124 |
+
- $p(\text{True})$ : It asks the LLM itself to classify its prediction as True or False. Then, it takes the predicted probability of True as its confidence. We follow Kadavath et al. (2022) to construct 8-shot demonstrations for prompting pretrained models but directly use instruction for instruction-tuned models.
|
| 125 |
+
|
| 126 |
+
# 4.2 Results and Analysis
|
| 127 |
+
|
| 128 |
+
Main Results Table 1 presents the main results obtained from both benchmarks using Mistral-family models. $p(\text{True})$ performs best among the baselines, echoing the findings of Kadavath et al. (2022). However, due to its reliance on prompt design and in-context examples to aid the LLM
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
Figure 2: Calibration results on GSM8K when using Mixtral- $8\times 7\mathrm{B}$ -Inst with different $N$
|
| 132 |
+
|
| 133 |
+
to classify its predictions, it can be challenging to construct effective demonstrations or instructions.
|
| 134 |
+
|
| 135 |
+
In general, self-consistency-based methods surpass baselines in most cases regarding Brier and ECE, validating the efficacy of employing self-consistency features for estimating model confidence. We also note that baselines can occasionally yield impressive ECE scores ( $p(\text{True})$ on GSM8K with Mixtral- $8 \times 7\mathrm{B}$ ). However, we observe that this is attributed to the concentration of most samples in just a few bins (e.g., Figure 1), leading to unreliable measurements. Nevertheless, our approaches still exhibit strong performance in terms of ECE scores across various settings.
|
| 136 |
+
|
| 137 |
+
Among the self-consistency-based methods, $\mathcal{F}_{CN}$ yields better ECE results on GSM8K, while $\mathcal{F}_{CS}$ achieves the highest Brier score. Conversely, for MathQA, $\mathcal{F}_{CN}$ performs significantly worse than the other two. This is because MathQA is a multi-choice task, and thus the cluster number of LLM answers is strictly limited by the provided choices. In conclusion, $\mathcal{F}_{CS}$ demonstrates greater generality across diverse settings, but $\mathcal{F}_{CN}$ and $\mathcal{F}_{PC}$ do offer improved estimation in certain cases.
|
| 138 |
+
|
| 139 |
+
Finally, we also explore averaging the proposed three metrics as a unified one, denoted as "ALL". Results show that it does not typically yield the best results. However, it serves as a robust choice, demonstrating competitive performance.
|
| 140 |
+
|
| 141 |
+
Influence of Sample Size $N$ Previous research (Wang et al., 2022) has demonstrated that the sample size $N$ can significantly affect the accuracy of self-consistency. When $N$ increases, the model performance initially continues to improve before stabilizing once $N$ reaches a sufficient level. Therefore, we take Mixtral-8×7B-Inst as a case study to
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 3: Performance and calibration results on GSM8K using different models below sorted by their performance: ① LLaMA2-7B-Chat, ② LLaMA2-13B-Chat, ③ Mistral-7B-Inst, ④ LLaMA2-70B-Chat, ⑤ Mixtral-8×7B-Inst.
|
| 145 |
+
|
| 146 |
+
examine the impact of $N$ on calibration.
|
| 147 |
+
|
| 148 |
+
As illustrated in Figure 2, the Brier scores for all our methods initially decline and then remain constant as $N$ grows. For $\mathcal{F}_{CS}$ and $\mathcal{F}_{PC}$ , $N = 8$ is adequate for accurate estimation. In contrast, $\mathcal{F}_{CN}$ requires a larger $N$ , indicating that the cluster number is more susceptible to the randomness of sampling.
|
| 149 |
+
|
| 150 |
+
Correlation between Performance and Calibration We finally explore the associations between model performance (Accuracy) and calibration. Figure 3 showcases the results on instruction-tuned LLaMA2 and Mistral series models, arranged in ascending order based on their performance. We generally observe a positively correlated trend between calibration (lower the better) and performance (higher the better) among the studied models. This observation indicates that more powerful models also exhibit enhanced calibration, echoing the findings of Kadavath et al. (2022). This phenomenon can be attributed to the fact that when a tested LLM is stronger, it is capable of generating more reasonable and consistent responses, leading to improved calibration.
|
| 151 |
+
|
| 152 |
+
# 5 Conclusion
|
| 153 |
+
|
| 154 |
+
In this paper, we extend the widely-used inference strategy, self-consistency, to the field of calibration. Specifically, we develop three off-the-shelf calibration methods based on self-consistency for math reasoning tasks. Compared to conventional methods (p(True) and logit), our approaches yield significantly improved ECE and Brier scores on popular GSM8K and MathQA datasets. Future
|
| 155 |
+
|
| 156 |
+
research directions include designing more effective calibration methods, leveraging richer features and employing more strategies (e.g., temperature scaling (Guo et al., 2017)) to enhance calibration performance. Our ultimate goal is to construct reliable and honest LLMs with the help of accurate confidence estimation.
|
| 157 |
+
|
| 158 |
+
# Limitations
|
| 159 |
+
|
| 160 |
+
Our methods are founded on the principle of self-consistency, which relies on sampling multiple times for prediction. This approach, however, needs additional cost for inference, which may not be efficient and eco-friendly. Besides, our current work is limited to mathematical problems and does not explore other types of tasks, such as question-answering. Although it is crucial to extend our methods to encompass other tasks, this is non-trivial due to the inherent difficulty in dividing certain tasks' model predictions into distinct clusters.
|
| 161 |
+
|
| 162 |
+
# Ethics Statement
|
| 163 |
+
|
| 164 |
+
We focus on ethical AI research and strive to achieve a balance between technological advancements and our ethical responsibilities. This work studies calibration, which aims to enhance the reliability of LLMs. Besides, we conduct experiments only on publicly available datasets, upholding privacy and anonymity rules.
|
| 165 |
+
|
| 166 |
+
# References
|
| 167 |
+
|
| 168 |
+
Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.
|
| 169 |
+
Aida Amini, Saadia Gabriel, Shanchuan Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannaneh Hajishirzi. 2019. Mathqa: Towards interpretable math word problem solving with operation-based formalisms. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2357-2367.
|
| 170 |
+
Yangyi Chen, Lifan Yuan, Ganqu Cui, Zhiyuan Liu, and Heng Ji. 2023. A close look into the calibration of pre-trained language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1343-1367.
|
| 171 |
+
|
| 172 |
+
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.
|
| 173 |
+
Jiahui Geng, Fengyu Cai, Yuxia Wang, Heinz Koeppl, Preslav Nakov, and Iryna Gurevych. 2023. A survey of language model confidence estimation and calibration. arXiv preprint arXiv:2311.08298.
|
| 174 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. 2017. On calibration of modern neural networks. In International conference on machine learning, pages 1321-1330. PMLR.
|
| 175 |
+
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the math dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2).
|
| 176 |
+
Mark Hopkins, Cristian Petrescu-Prahova, Roie Levin, Ronan Le Bras, Alvaro Herrasti, and Vidur Joshi. 2017. Beyond sentential semantic parsing: Tackling the math sat with a cascade of tree transducers. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 795-804.
|
| 177 |
+
Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7b. arXiv preprint arXiv:2310.06825.
|
| 178 |
+
Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088.
|
| 179 |
+
Mandar Joshi, Eunsol Choi, Daniel S Weld, and Luke Zettlemoyer. 2017. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1601-1611.
|
| 180 |
+
Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, et al. 2022. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221.
|
| 181 |
+
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213.
|
| 182 |
+
Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation. In
|
| 183 |
+
|
| 184 |
+
The Eleventh International Conference on Learning Representations.
|
| 185 |
+
Jierui Li, Lei Wang, Jipeng Zhang, Yan Wang, Bing Tian Dai, and Dongxiang Zhang. 2019. Modeling intra-relation in math word problems with different functional multi-head attentions. In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 6162-6167.
|
| 186 |
+
Zhongli Li, Wenxuan Zhang, Chao Yan, Qingyu Zhou, Chao Li, Hongzhi Liu, and Yunbo Cao. 2022. Seeking patterns, not just memorizing procedures: Contrastive learning for solving math word problems. In *Findings of the Association for Computational Linguistics: ACL* 2022, pages 2486-2496.
|
| 187 |
+
Lucie Charlotte Magister, Jonathan Mallinson, Jakub Adamek, Eric Malmi, and Aliaksei Severyn. 2023. Teaching small language models to reason. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1773-1781.
|
| 188 |
+
Takuya Matsuzaki, Takumi Ito, Hidenao Iwane, Hirokazu Anai, and Noriko H Arai. 2017. Semantic parsing of pre-university math problems. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2131-2141.
|
| 189 |
+
Arkil Patel, Satwik Bhattachamishra, and Navin Goyal. 2021. Are nlp models really able to solve simple math word problems? In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2080-2094.
|
| 190 |
+
Jinghui Qin, Xiaodan Liang, Yining Hong, Jianheng Tang, and Liang Lin. 2021. Neural-symbolic solver for math word problems with auxiliary tasks. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5870-5881.
|
| 191 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1-67.
|
| 192 |
+
Kumar Shridhar, Alessandro Stolfo, and Mrinmaya Sachan. 2023. Distilling reasoning capabilities into smaller language models. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 7059-7073.
|
| 193 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
|
| 194 |
+
|
| 195 |
+
Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations.
|
| 196 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837.
|
| 197 |
+
Qinzhuo Wu, Qi Zhang, Zhongyu Wei, and Xuan-Jing Huang. 2021. Math word problem solving with explicit numerical values. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5859-5869.
|
| 198 |
+
Miao Xiong, Zhiyuan Hu, Xinyang Lu, YIFEI LI, Jie Fu, Junxian He, and Bryan Hooi. 2023. Can llms express their uncertainty? an empirical evaluation of confidence elicitation in llms. In The Twelfth International Conference on Learning Representations.
|
| 199 |
+
|
| 200 |
+
# A Experiments on TriviaQA
|
| 201 |
+
|
| 202 |
+
Although this work mainly focuses on math problems, we also verify the effectiveness of our approach on TriviaQA (Joshi et al., 2017), a popular question-answering benchmark. Different from math problems, the outputs of LLMs for this task sometimes lack clear answers for clustering. For instance, Mistral-7B-Inst provides a lengthy response, "The musical Phantom of the Opera premiered in the US on 10th December 1993...", instead of an answer span "Phantom of the Opera", to the question "Which Lloyd Webber musical premiered in the US on 10th December 1993?".
|
| 203 |
+
|
| 204 |
+
To address this issue, we follow Kuhn et al. to employ natural language inference (NLI) to identify responses with the same answers<sup>2</sup>.
|
| 205 |
+
|
| 206 |
+
Results are shown in Table 2. Our approach significantly surpasses the baselines, particularly when utilizing instruction-tuned models, further demonstrating the effectiveness of our method.
|
| 207 |
+
|
| 208 |
+
<table><tr><td></td><td colspan="2">Mistral-7B</td><td colspan="2">Mistral-7B-Inst</td><td colspan="2">Mixtral-8×7B</td><td colspan="2">Mixtral-8×7B-Inst</td></tr><tr><td></td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td><td>ECE ↓</td><td>Brier ↓</td></tr><tr><td>logit</td><td>0.119</td><td>0.156</td><td>0.385</td><td>0.377</td><td>0.069</td><td>0.116</td><td>0.256</td><td>0.298</td></tr><tr><td>p(True)</td><td>0.077</td><td>0.162</td><td>0.326</td><td>0.318</td><td>0.099</td><td>0.131</td><td>0.314</td><td>0.316</td></tr><tr><td colspan="9">Self-Consistency</td></tr><tr><td>w/ FCN</td><td>0.044</td><td>0.133</td><td>0.054</td><td>0.173</td><td>0.077</td><td>0.119</td><td>0.068</td><td>0.115</td></tr><tr><td>w/ FCS</td><td>0.043</td><td>0.132</td><td>0.072</td><td>0.186</td><td>0.039</td><td>0.107</td><td>0.039</td><td>0.116</td></tr><tr><td>w/ FPC</td><td>0.071</td><td>0.137</td><td>0.109</td><td>0.186</td><td>0.102</td><td>0.129</td><td>0.121</td><td>0.126</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 2: Test results on TriviaQA.
|
2024/Self-Consistency Boosts Calibration for Math Reasoning/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78a4d8c262060d5275cc6199e3347fd4394a40021b20ef34f38900701daf6918
|
| 3 |
+
size 249996
|
2024/Self-Consistency Boosts Calibration for Math Reasoning/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/45f4817a-44a7-499d-b884-1bdac2c1b3e5_content_list.json
ADDED
|
@@ -0,0 +1,1618 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Self-Constructed Context Decomposition with Fined-grained Alignment Enhancement",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
127,
|
| 8 |
+
89,
|
| 9 |
+
870,
|
| 10 |
+
129
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yunlong Feng, Dechuan Teng, Yang Xu, Honglin Mu, Xiao Xu, Libo Qin, Qingfu Zhu*, Wanxiang Che",
|
| 17 |
+
"bbox": [
|
| 18 |
+
270,
|
| 19 |
+
152,
|
| 20 |
+
732,
|
| 21 |
+
186
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Harbin Institute of Technology, China",
|
| 28 |
+
"bbox": [
|
| 29 |
+
344,
|
| 30 |
+
186,
|
| 31 |
+
653,
|
| 32 |
+
202
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "{ylfeng,dcteng,yxu,hlmu,xxu,lbqin,qfzhu,car} $@$ ir.hit.edu.cn",
|
| 39 |
+
"bbox": [
|
| 40 |
+
255,
|
| 41 |
+
203,
|
| 42 |
+
742,
|
| 43 |
+
219
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
260,
|
| 54 |
+
339,
|
| 55 |
+
275
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Decompilation transforms compiled code back into a high-level programming language for analysis when source code is unavailable. Previous work has primarily focused on enhancing decomposition performance by increasing the scale of model parameters or training data for pre-training. Based on the characteristics of the decomposition task, we propose two methods: (1) Without fine-tuning, the Self-Constructed Context Decomposition $(\\mathrm{sc}^2\\mathrm{dec})$ method recombines the LLM's decomposition results to construct pairs for in-context learning, helping the model improve decomposition performance. (2) Fine-grained Alignment Enhancement (FAE), which meticulously aligns assembly code with source code at the statement level by leveraging debugging information, is employed during the fine-tuning phase to achieve further improvements in decomposition. By integrating these two methods, we achieved a Re-Executability performance improvement of approximately $3.90\\%$ on the Decompile-Eval benchmark, establishing a new state-of-the-art performance of $52.41\\%$ . The code, data, and models are available at https://github.com/AlongWY/sccdec.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
141,
|
| 64 |
+
286,
|
| 65 |
+
460,
|
| 66 |
+
656
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
114,
|
| 76 |
+
665,
|
| 77 |
+
260,
|
| 78 |
+
682
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Decompilation is the process of converting compiled machine code or bytecode back into a high-level programming language. This process is typically used to analyze how the software works when the source code is not accessible (Brumley et al., 2013; Katz et al., 2018; Hosseini and Dolan-Gavitt, 2022; Xu et al., 2023; Armengol-Estape et al., 2023; Jiang et al., 2023; Wong et al., 2023). Many tools have been developed for decompilation, like Ghidra (Ghidra, 2024) and IDA Pro (Hex-Rays, 2024). However, these tools often struggle to generate human-readable code. The main challenge in decompilation is that it's hard to fully reconstruct",
|
| 85 |
+
"bbox": [
|
| 86 |
+
112,
|
| 87 |
+
690,
|
| 88 |
+
490,
|
| 89 |
+
901
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/345d99328aa3b056e3a95f9fb636e4ed6b7204e8a9c7f04701ac4c4bd7362e29.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Pipeline of the decompilation. The input for decompilation tasks is typically assembly, with the source code invisible. Additionally, the source code obtained through decompilation usually does not exactly match the original code."
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
564,
|
| 102 |
+
256,
|
| 103 |
+
826,
|
| 104 |
+
450
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "the source code, especially details such as variable names (Lacomis et al., 2019) and primary structures (Wei et al., 2007), which are frequently lost during the compilation process.",
|
| 111 |
+
"bbox": [
|
| 112 |
+
507,
|
| 113 |
+
563,
|
| 114 |
+
884,
|
| 115 |
+
627
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Recent advances in large language models (LLMs) have prompted researchers to view programming languages as distinct linguistic systems, utilizing pre-trained code LLMs to accomplish various coding tasks (Lippincott, 2020; Rozière et al., 2023; Guo et al., 2024; OpenAI, 2023). These models have demonstrated significant performance improvements over traditional techniques (Zeng et al., 2022; Xu et al., 2022), making it feasible to apply LLMs to decompilation challenges. For instance, Transformer-based models such as Slade (Armengol-Estapé et al., 2023) and Nova (Jiang et al., 2023) have shown potential in using language models to translate binary code back into more readable and structured source code. Recently, Tan et al. (2024) developed and released the first open-source LLM focused on decompilation, alongside the construction of the first",
|
| 122 |
+
"bbox": [
|
| 123 |
+
507,
|
| 124 |
+
631,
|
| 125 |
+
885,
|
| 126 |
+
921
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 0
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "page_footnote",
|
| 132 |
+
"text": "*Corresponding Author",
|
| 133 |
+
"bbox": [
|
| 134 |
+
136,
|
| 135 |
+
906,
|
| 136 |
+
284,
|
| 137 |
+
921
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 0
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "page_number",
|
| 143 |
+
"text": "6603",
|
| 144 |
+
"bbox": [
|
| 145 |
+
480,
|
| 146 |
+
927,
|
| 147 |
+
521,
|
| 148 |
+
940
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 0
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "footer",
|
| 154 |
+
"text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6603-6614",
|
| 155 |
+
"bbox": [
|
| 156 |
+
216,
|
| 157 |
+
945,
|
| 158 |
+
779,
|
| 159 |
+
957
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 0
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "footer",
|
| 165 |
+
"text": "November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 166 |
+
"bbox": [
|
| 167 |
+
273,
|
| 168 |
+
958,
|
| 169 |
+
724,
|
| 170 |
+
971
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 0
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "decompilation benchmark to evaluate the decompilation capabilities of models. These efforts primarily treat the decompilation task as a translation task, training a robust decompilation model on extensive synthetic data (Hosseini and Dolan-Gavitt, 2022; Armengol-Estapé et al., 2023; Jiang et al., 2023; Tan et al., 2024).",
|
| 177 |
+
"bbox": [
|
| 178 |
+
112,
|
| 179 |
+
84,
|
| 180 |
+
487,
|
| 181 |
+
195
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "By analyzing the characteristics of decomposition tasks, we have found two features:",
|
| 188 |
+
"bbox": [
|
| 189 |
+
112,
|
| 190 |
+
197,
|
| 191 |
+
489,
|
| 192 |
+
228
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "list",
|
| 198 |
+
"sub_type": "text",
|
| 199 |
+
"list_items": [
|
| 200 |
+
"- The decompiled code generated by the model is usually compileable.",
|
| 201 |
+
"- The compiler can produce external debugging information for the debugger."
|
| 202 |
+
],
|
| 203 |
+
"bbox": [
|
| 204 |
+
136,
|
| 205 |
+
241,
|
| 206 |
+
485,
|
| 207 |
+
305
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 1
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "Based on the characteristics of the decomposition task, we propose two approaches: (1) Self-Constructed Context Decomposition $(\\mathrm{sc}^2\\mathrm{dec})$ , a tuning-free approach, leverages the decomposition results from the model and specific compiler to derive ground-truth (assembly code, source code) pair closely related to the test sample. By incorporating the obtained pair as a demonstration example within the context, we can fully leverage the model's in-context learning capabilities to enhance performance. (2) Fine-grained Alignment Enhancement (FAE) introduces a new step-by-step decomposition training objective in addition to the end-to-end decomposition training objective that relies on large-scale pre-training for implicit alignment. By leveraging debugging information designed for debuggers, we can align assembly code with high-level code at a finer statement level. This allows the model to more faithfully preserve the original functionality after decomposition.",
|
| 214 |
+
"bbox": [
|
| 215 |
+
112,
|
| 216 |
+
316,
|
| 217 |
+
489,
|
| 218 |
+
638
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 1
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "Combining these two methods, we have achieved an approximately $3.90\\%$ improvement in re-executability performance based on lvm4decompile model (Tan et al., 2024), reaching a new state-of-the-art performance of $52.41\\%$ re-executability.",
|
| 225 |
+
"bbox": [
|
| 226 |
+
112,
|
| 227 |
+
639,
|
| 228 |
+
489,
|
| 229 |
+
718
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 1
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "To summarize, our contributions are as follows:",
|
| 236 |
+
"bbox": [
|
| 237 |
+
132,
|
| 238 |
+
720,
|
| 239 |
+
487,
|
| 240 |
+
734
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 1
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "list",
|
| 246 |
+
"sub_type": "text",
|
| 247 |
+
"list_items": [
|
| 248 |
+
"- We introduce Self-Constructed Context Decomposition, which leverages the compileability of decomposition results to construct better contexts.",
|
| 249 |
+
"- We introduce Fine-grained Alignment Enhancement, which fine-tunes the model using fine-grained alignment data between assembly code and source code derived from debug information. We also propose how to synthesize its training data automatically."
|
| 250 |
+
],
|
| 251 |
+
"bbox": [
|
| 252 |
+
136,
|
| 253 |
+
749,
|
| 254 |
+
487,
|
| 255 |
+
920
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 1
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "- The experiments on the Decompile-Eval benchmark show that our proposed model achieves new state-of-the-art results.",
|
| 262 |
+
"bbox": [
|
| 263 |
+
531,
|
| 264 |
+
84,
|
| 265 |
+
880,
|
| 266 |
+
131
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 1
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "text",
|
| 272 |
+
"text": "2 Related Works",
|
| 273 |
+
"text_level": 1,
|
| 274 |
+
"bbox": [
|
| 275 |
+
509,
|
| 276 |
+
146,
|
| 277 |
+
672,
|
| 278 |
+
161
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 1
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "Decompilation has a long history, centered on converting binary files into human-readable source code. Traditional tools such as Hex-Rays IDA Pro (Hex-Rays, 2024) and Ghidra (Ghidra, 2024) predominantly rely on analyzing a program's control flow graph (CFG) to perform this task (Brumley et al., 2013). These tools operate by scrutinizing instructions within assembly code to construct CFGs and identify common programming structures like if-else statements and loops (Wei et al., 2007). However, they rely on intricate and error-prone expert-built rule systems that frequently fail with optimized binary code, a common practice in commercial software development. Moreover, traditional tools often generate outputs that closely resemble assembly code representations, translating variables into registers and utilizing low-level operations such as goto statements. This output is not only challenging to comprehend but also occasionally cannot be recompiled (Liu and Wang, 2020).",
|
| 285 |
+
"bbox": [
|
| 286 |
+
507,
|
| 287 |
+
173,
|
| 288 |
+
884,
|
| 289 |
+
508
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 1
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "Inspired by neural machine translation, researchers have begun to conceptualize decompilation as a translation task, wherein machine-level instructions are converted into readable source code using neural networks. Initial endeavors employing recurrent neural networks (RNNs) demonstrated limited success (Katz et al., 2018). However, recent advancements in natural language processing (NLP) have facilitated the application of pre-trained language models (LMs) in decompilation. Notable examples include BTC (Hosseini and Dolan-Gavitt, 2022), Slade (Armengol-Estapé et al., 2023), and Nova (Jiang et al., 2023), which mark significant strides in the field. Recently, Tan et al. (2024) created and released the first open-source large language models specifically for decompilation and established an evaluation benchmark that considers the re-compilability and re-executability of decompiled code.",
|
| 296 |
+
"bbox": [
|
| 297 |
+
507,
|
| 298 |
+
511,
|
| 299 |
+
882,
|
| 300 |
+
816
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 1
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "3 Method",
|
| 307 |
+
"text_level": 1,
|
| 308 |
+
"bbox": [
|
| 309 |
+
509,
|
| 310 |
+
829,
|
| 311 |
+
611,
|
| 312 |
+
845
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 1
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "In this section, we introduce the Self-Constructed Context Decomposition method and Fine-grained Alignment Enhancement fine-tuning. Figures 2 and 3 illustrate the methods.",
|
| 319 |
+
"bbox": [
|
| 320 |
+
507,
|
| 321 |
+
857,
|
| 322 |
+
880,
|
| 323 |
+
919
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 1
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "page_number",
|
| 329 |
+
"text": "6604",
|
| 330 |
+
"bbox": [
|
| 331 |
+
480,
|
| 332 |
+
928,
|
| 333 |
+
519,
|
| 334 |
+
940
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 1
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "image",
|
| 340 |
+
"img_path": "images/4de304b57cea5f28244a505f652396ec27592f53b88121741ae9476006cb6dbc.jpg",
|
| 341 |
+
"image_caption": [
|
| 342 |
+
"Figure 2: The pipeline for Self-Constructed Context Decomposition operates as follows: when the LLM decomposes and generates compilable code, we compile this code to construct the context, and then use it to decompile the initial assembly code again."
|
| 343 |
+
],
|
| 344 |
+
"image_footnote": [],
|
| 345 |
+
"bbox": [
|
| 346 |
+
115,
|
| 347 |
+
80,
|
| 348 |
+
487,
|
| 349 |
+
357
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 2
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "3.1 Self-Constructed Context Decomposition",
|
| 356 |
+
"text_level": 1,
|
| 357 |
+
"bbox": [
|
| 358 |
+
112,
|
| 359 |
+
461,
|
| 360 |
+
478,
|
| 361 |
+
476
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "In this section, we introduce the Self-Constructed Context Decomposition (sc²dec) method designed to enhance the performance of decomposition models. The method recombines the decomposed code generated by the model to construct the context. The sc²dec method involves the following key steps, as the Figure 2 shows:",
|
| 368 |
+
"bbox": [
|
| 369 |
+
112,
|
| 370 |
+
482,
|
| 371 |
+
487,
|
| 372 |
+
594
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 2
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "list",
|
| 378 |
+
"sub_type": "text",
|
| 379 |
+
"list_items": [
|
| 380 |
+
"1. Decompile: Initially, the model decomposes the assembly code back to the target programming language. We call it the initial decomposition result.",
|
| 381 |
+
"2. Compile and Disassembly: Then we recompile the initial decomposition result to obtain the corresponding assembly code if the generated code is compileable.",
|
| 382 |
+
"3. Constructed Context: The self-constructed context is then formed by concatenating the generated C code with its corresponding assembly code.",
|
| 383 |
+
"4. Decompile Again: Decompile the assembly code with the self-constructed context again."
|
| 384 |
+
],
|
| 385 |
+
"bbox": [
|
| 386 |
+
127,
|
| 387 |
+
605,
|
| 388 |
+
487,
|
| 389 |
+
829
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 2
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "In this context, the assembly code precedes the C code, resembling an example in the context. The final input to the model is a concatenation of the self-constructed context (with assembly code first and C code second) and the original assembly code. This",
|
| 396 |
+
"bbox": [
|
| 397 |
+
112,
|
| 398 |
+
841,
|
| 399 |
+
489,
|
| 400 |
+
921
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 2
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "image",
|
| 406 |
+
"img_path": "images/8175bcafcd20bbbaf885b8b49ea7224062f0c5761bcc4fa9a6763924b75ed0e1.jpg",
|
| 407 |
+
"image_caption": [
|
| 408 |
+
"Figure 3: An example of step-by-step decomposition is presented, where the training objective requires the model to generate C code progressively after each assembly block. Fine-tuning the model with this objective aids in learning the fine-grained correspondences between assembly and C code."
|
| 409 |
+
],
|
| 410 |
+
"image_footnote": [],
|
| 411 |
+
"bbox": [
|
| 412 |
+
531,
|
| 413 |
+
83,
|
| 414 |
+
862,
|
| 415 |
+
420
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 2
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "method leverages the additional context provided by the generated C code and its corresponding assembly code to improve the overall decompilation performance.",
|
| 422 |
+
"bbox": [
|
| 423 |
+
507,
|
| 424 |
+
539,
|
| 425 |
+
882,
|
| 426 |
+
602
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 2
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "3.2 Fine-grained Alignment Enhancement",
|
| 433 |
+
"text_level": 1,
|
| 434 |
+
"bbox": [
|
| 435 |
+
507,
|
| 436 |
+
615,
|
| 437 |
+
855,
|
| 438 |
+
630
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 2
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "To enhance the model's ability to perceive the correspondence between assembly code and its corresponding source code, we propose a Fine-grained Alignment Enhancement (FAE) method, which constructs fine-grained alignment data between assembly code and source code derived from debug information. The method primarily includes two training objectives: the End-to-end Decomposition Objective and the Step-by-Step Decomposition Objective.",
|
| 445 |
+
"bbox": [
|
| 446 |
+
505,
|
| 447 |
+
636,
|
| 448 |
+
884,
|
| 449 |
+
796
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 2
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "- End-to-end Decomposition Objective: In the end-to-end decomposition task, the model takes assembly code as input and directly generates the corresponding decomposed C code. The goal of this task is to enable the model to translate from assembly language to C language without any intermediate steps. This ob",
|
| 456 |
+
"bbox": [
|
| 457 |
+
531,
|
| 458 |
+
808,
|
| 459 |
+
884,
|
| 460 |
+
921
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 2
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "page_number",
|
| 466 |
+
"text": "6605",
|
| 467 |
+
"bbox": [
|
| 468 |
+
480,
|
| 469 |
+
928,
|
| 470 |
+
519,
|
| 471 |
+
940
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 2
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "jective aims to prevent catastrophic forgetting in the model. During training, we increase the context length and ensure that the same sample is not truncated, which enhances the model's ability to align assembly and C code.",
|
| 478 |
+
"bbox": [
|
| 479 |
+
147,
|
| 480 |
+
84,
|
| 481 |
+
487,
|
| 482 |
+
164
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "- Step-by-step Decomposition Objective: As the Figure 3 shows, in the step-by-step decomposition process, an intermediate form containing both the assembly code and the corresponding C code is first generated, followed by the generation of the complete C code. This step-by-step approach allows the model to better understand the correspondence between assembly code and C code. Training the model with the step-by-step decomposition objective can enhance the model's ability to finely align assembly code with C code. It is important to note that this form is used only during training and not during inference.",
|
| 489 |
+
"bbox": [
|
| 490 |
+
136,
|
| 491 |
+
166,
|
| 492 |
+
489,
|
| 493 |
+
390
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 3
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "During the training process, we employed two different training objectives to enhance the model's decompile performance: an end-to-end decompile objective and a step-by-step decompile objective. They all take assembly code as input, but their output formats are different.",
|
| 500 |
+
"bbox": [
|
| 501 |
+
112,
|
| 502 |
+
401,
|
| 503 |
+
489,
|
| 504 |
+
495
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 3
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": "3.2.1 Data Processing",
|
| 511 |
+
"text_level": 1,
|
| 512 |
+
"bbox": [
|
| 513 |
+
112,
|
| 514 |
+
506,
|
| 515 |
+
302,
|
| 516 |
+
521
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 3
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "By following the steps below, we can synthesize some fine-grained alignment training data. The synthesized data, as shown in Figure 3, is in a format of interleaved assembly and code output. We expect the model to learn finer-grained alignment between assembly and code from such data.",
|
| 523 |
+
"bbox": [
|
| 524 |
+
112,
|
| 525 |
+
524,
|
| 526 |
+
489,
|
| 527 |
+
621
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 3
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "1. Compilation: We employed the \"gcc\" compiler to compile the selected function code into binary shared libraries at various optimization levels (including O0, O1, O2, and O3). The debug option was enabled during compilation to ensure the inclusion of DWARF debugging information in the compiled output. This debugging information is crucial for subsequent disassembly and parsing steps.",
|
| 534 |
+
"bbox": [
|
| 535 |
+
129,
|
| 536 |
+
631,
|
| 537 |
+
489,
|
| 538 |
+
791
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 3
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "text",
|
| 544 |
+
"text": "2. Disassembly: Subsequently, we used the \"objdump\" tool to disassemble the compiled binary shared libraries. The \"-S\" option was utilized to include source code in the disassembly output. Additionally, we used the \"-source/comment=;,\" option toptides each line of source code with a \";,\" symbol, facilitating easier parsing in later stages.",
|
| 545 |
+
"bbox": [
|
| 546 |
+
127,
|
| 547 |
+
793,
|
| 548 |
+
489,
|
| 549 |
+
921
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 3
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "list",
|
| 555 |
+
"sub_type": "text",
|
| 556 |
+
"list_items": [
|
| 557 |
+
"3. Data Parsing: The disassembly process yielded a mixed output containing both assembly code and source code, organized in an alternating sequence of source code followed by assembly code. We parsed the output to extract the corresponding assembly and source code for each function, ensuring accurate alignment between the two.",
|
| 558 |
+
"4. Data Reorganization: Finally, we reorganized the parsed content into a format where the assembly code precedes the corresponding source code in an alternating sequence."
|
| 559 |
+
],
|
| 560 |
+
"bbox": [
|
| 561 |
+
522,
|
| 562 |
+
84,
|
| 563 |
+
884,
|
| 564 |
+
277
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 3
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "Through these steps, we constructed a high-quality training dataset that ensures each sample contains comprehensive source code information along with the corresponding assembly code. This dataset will be used to train our model, aiming to enhance its performance in tasks such as code understanding and compilation optimization.",
|
| 571 |
+
"bbox": [
|
| 572 |
+
507,
|
| 573 |
+
288,
|
| 574 |
+
884,
|
| 575 |
+
401
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 3
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "4 Experiments",
|
| 582 |
+
"text_level": 1,
|
| 583 |
+
"bbox": [
|
| 584 |
+
507,
|
| 585 |
+
413,
|
| 586 |
+
655,
|
| 587 |
+
430
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 3
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "4.1 Evaluation",
|
| 594 |
+
"text_level": 1,
|
| 595 |
+
"bbox": [
|
| 596 |
+
507,
|
| 597 |
+
438,
|
| 598 |
+
640,
|
| 599 |
+
451
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 3
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "In this section, we will introduce the benchmark used in our evaluation process, Decompile-Eval (Tan et al., 2024), which is specifically designed to assess the decompilation capabilities of large language models.",
|
| 606 |
+
"bbox": [
|
| 607 |
+
507,
|
| 608 |
+
458,
|
| 609 |
+
882,
|
| 610 |
+
539
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 3
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "The Decompile-Eval benchmark is adapted from the HumanEval benchmark, which includes 164 problems initially designed for code generation tasks. These problems were translated into the C programming language, and the corresponding assembly code was generated at four optimization levels (O0, O1, O2, and O3). The correctness of the decomposition results was tested using the test cases from HumanEval. The primary metrics of the Decompile-Eval benchmark are as follows:",
|
| 617 |
+
"bbox": [
|
| 618 |
+
507,
|
| 619 |
+
539,
|
| 620 |
+
882,
|
| 621 |
+
700
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 3
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "list",
|
| 627 |
+
"sub_type": "text",
|
| 628 |
+
"list_items": [
|
| 629 |
+
"- Re-compilability: This metric evaluates whether the decompiled code produced by our model can be successfully recompiled into executable binary without errors. A high recompiliability rate indicates that the decompiled code is syntactically correct and adheres to the constraints of the target language (in this case, C).",
|
| 630 |
+
"- Re-executability: This metric assesses the functional correctness of the decompiled code. Specifically, it measures whether the recom-piled binaries produce the expected outputs when executed. The correctness of the output"
|
| 631 |
+
],
|
| 632 |
+
"bbox": [
|
| 633 |
+
531,
|
| 634 |
+
712,
|
| 635 |
+
885,
|
| 636 |
+
921
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 3
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "page_number",
|
| 642 |
+
"text": "6606",
|
| 643 |
+
"bbox": [
|
| 644 |
+
480,
|
| 645 |
+
928,
|
| 646 |
+
521,
|
| 647 |
+
940
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 3
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "is determined using the testing methodology provided by the HumanEval dataset, ensuring a comprehensive evaluation of the logical accuracy of the decompiled code.",
|
| 654 |
+
"bbox": [
|
| 655 |
+
149,
|
| 656 |
+
84,
|
| 657 |
+
489,
|
| 658 |
+
149
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 4
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "In our experiment, we pay more attention to the Re-executability, as it more accurately reflects the overall decompilation capability of the model.",
|
| 665 |
+
"bbox": [
|
| 666 |
+
112,
|
| 667 |
+
166,
|
| 668 |
+
487,
|
| 669 |
+
214
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 4
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "4.2 Training Details",
|
| 676 |
+
"text_level": 1,
|
| 677 |
+
"bbox": [
|
| 678 |
+
112,
|
| 679 |
+
229,
|
| 680 |
+
287,
|
| 681 |
+
243
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 4
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "Implementation We utilize Lora (Hu et al., 2022) to fine-tune the llm4decompile-6.7b obtained on Hugging Face (Wolf et al., 2019), with rank set to 32, alpha set to 64 and target set to all projection layers $^{1}$ . The optimizer is AdamW (Loshchilov and Hutter, 2019), with a learning rate of 5e-5. The maximum sequence length is set to 16384, and the learning rate scheduler type is cosine, with a warm-up period of 20 steps. The training process was conducted for one epoch. LlamaFactory (Zheng et al., 2024) and FlashAttention 2 (Dao, 2024) were used for the fine-tuning of the model. All experiments were done with an A100-SXM4-80GB. We use greedy decoding for all experiments.",
|
| 688 |
+
"bbox": [
|
| 689 |
+
112,
|
| 690 |
+
250,
|
| 691 |
+
489,
|
| 692 |
+
476
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 4
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "Training data We selected 10,000 samples from the train_real_compilable subset of Exebench (Armengol-Estapé et al., 2022) to synthesis the training data. The selected functions exclusively utilize the standard C library and do not include additional data structures. The training data were synthesized with gcc 11.4 provided by Ubuntu 22.04.",
|
| 699 |
+
"bbox": [
|
| 700 |
+
112,
|
| 701 |
+
489,
|
| 702 |
+
489,
|
| 703 |
+
602
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 4
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "4.3 Baselines",
|
| 710 |
+
"text_level": 1,
|
| 711 |
+
"bbox": [
|
| 712 |
+
112,
|
| 713 |
+
617,
|
| 714 |
+
233,
|
| 715 |
+
631
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 4
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "We present several baselines in our experiments and demonstrate the effectiveness of our proposed methods.",
|
| 722 |
+
"bbox": [
|
| 723 |
+
112,
|
| 724 |
+
640,
|
| 725 |
+
487,
|
| 726 |
+
686
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 4
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "4.3.1 Models",
|
| 733 |
+
"text_level": 1,
|
| 734 |
+
"bbox": [
|
| 735 |
+
112,
|
| 736 |
+
701,
|
| 737 |
+
231,
|
| 738 |
+
714
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 4
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "list",
|
| 744 |
+
"sub_type": "text",
|
| 745 |
+
"list_items": [
|
| 746 |
+
"- GPT 4: One of the most powerful OpenAI models, known for its advanced language understanding and generation capabilities (OpenAI, 2023).",
|
| 747 |
+
"- deepseek-chat: A powerful conversational AI model from DeepSeek, excelling in generating coherent and contextually relevant dialogues (DeepSeek-AI, 2024).",
|
| 748 |
+
"- llm4decompile-6.7b: The 6.7B open-access decomposition LLM pre-trained on 15 billion"
|
| 749 |
+
],
|
| 750 |
+
"bbox": [
|
| 751 |
+
136,
|
| 752 |
+
721,
|
| 753 |
+
487,
|
| 754 |
+
881
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 4
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "code",
|
| 760 |
+
"sub_type": "code",
|
| 761 |
+
"code_caption": [],
|
| 762 |
+
"code_body": "bool func0(int num){ if (num <= 1) { return false; } for (int i = 2; i * i <= num; i++) { if (num % i == 0) { return false; } } return true; }",
|
| 763 |
+
"guess_lang": "txt",
|
| 764 |
+
"bbox": [
|
| 765 |
+
517,
|
| 766 |
+
84,
|
| 767 |
+
855,
|
| 768 |
+
225
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 4
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Figure 4: The example for 1-shot learning. In this example, we have tried to cover common control logic such as if statements, loops, and early returns as much as possible. The example will be compiled with the same optimization level as the target assembly code.",
|
| 775 |
+
"bbox": [
|
| 776 |
+
507,
|
| 777 |
+
239,
|
| 778 |
+
882,
|
| 779 |
+
312
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 4
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "tokens of C source code and the corresponding assembly code (Tan et al., 2024) $^2$ .",
|
| 786 |
+
"bbox": [
|
| 787 |
+
544,
|
| 788 |
+
337,
|
| 789 |
+
880,
|
| 790 |
+
368
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 4
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "- llm4decompile-6.7b+FAE: The new model was obtained by applying the Fine-grained Alignment Enhancement method for further fine-tuning based on the llm4decompile-6.7b $^2$ .",
|
| 797 |
+
"bbox": [
|
| 798 |
+
531,
|
| 799 |
+
369,
|
| 800 |
+
882,
|
| 801 |
+
447
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 4
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "4.3.2 Methods",
|
| 808 |
+
"text_level": 1,
|
| 809 |
+
"bbox": [
|
| 810 |
+
509,
|
| 811 |
+
462,
|
| 812 |
+
638,
|
| 813 |
+
476
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 4
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "- vanilla: Using specific prompts for different models to directly request decomposition.",
|
| 820 |
+
"bbox": [
|
| 821 |
+
531,
|
| 822 |
+
480,
|
| 823 |
+
880,
|
| 824 |
+
512
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 4
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "code",
|
| 830 |
+
"sub_type": "code",
|
| 831 |
+
"code_caption": [
|
| 832 |
+
"Prompt For GPT-4 and Deepseek Chat"
|
| 833 |
+
],
|
| 834 |
+
"code_body": "What is the C source code of $\\leftrightarrow$ the assembly code below: ..asm <asm>",
|
| 835 |
+
"guess_lang": "txt",
|
| 836 |
+
"bbox": [
|
| 837 |
+
571,
|
| 838 |
+
552,
|
| 839 |
+
835,
|
| 840 |
+
626
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 4
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "code",
|
| 846 |
+
"sub_type": "code",
|
| 847 |
+
"code_caption": [
|
| 848 |
+
"Prompt For 1lm4decompile"
|
| 849 |
+
],
|
| 850 |
+
"code_body": "This is the assembly code: <asm>",
|
| 851 |
+
"guess_lang": "txt",
|
| 852 |
+
"bbox": [
|
| 853 |
+
571,
|
| 854 |
+
684,
|
| 855 |
+
831,
|
| 856 |
+
715
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 4
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "code",
|
| 862 |
+
"sub_type": "code",
|
| 863 |
+
"code_caption": [],
|
| 864 |
+
"code_body": "What is the source code?",
|
| 865 |
+
"guess_lang": "txt",
|
| 866 |
+
"bbox": [
|
| 867 |
+
573,
|
| 868 |
+
733,
|
| 869 |
+
815,
|
| 870 |
+
747
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 4
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "- 1-shot: We write a fixed example as the context (Brown et al., 2020). The example will be compiled with the same optimization level as the target assembly code. The example shown in Figure 4. In this example, we have tried to cover common control logic such as if statements, loops, and early returns as much as possible.",
|
| 877 |
+
"bbox": [
|
| 878 |
+
531,
|
| 879 |
+
769,
|
| 880 |
+
884,
|
| 881 |
+
898
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 4
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "page_footnote",
|
| 887 |
+
"text": "$^{1}$ q_Proj, k_Proj, v_Proj, o_Proj, gate_Proj, up_Proj, down_Proj",
|
| 888 |
+
"bbox": [
|
| 889 |
+
112,
|
| 890 |
+
894,
|
| 891 |
+
487,
|
| 892 |
+
921
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 4
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "page_footnote",
|
| 898 |
+
"text": "2We use the latest version, llm4decompile-6.7b-v1.5.",
|
| 899 |
+
"bbox": [
|
| 900 |
+
529,
|
| 901 |
+
906,
|
| 902 |
+
853,
|
| 903 |
+
920
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 4
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "page_number",
|
| 909 |
+
"text": "6607",
|
| 910 |
+
"bbox": [
|
| 911 |
+
480,
|
| 912 |
+
927,
|
| 913 |
+
519,
|
| 914 |
+
940
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 4
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "table",
|
| 920 |
+
"img_path": "images/db4f41bd954fee6f85a4d2fe724dcbccdbcb189ea311055320729ca84949537d.jpg",
|
| 921 |
+
"table_caption": [],
|
| 922 |
+
"table_footnote": [],
|
| 923 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td colspan=\"11\">GPT-4 (OpenAI, 2023)</td></tr><tr><td>vanilla</td><td>76.83</td><td>67.68</td><td>67.07</td><td>57.93</td><td>67.38</td><td>20.73</td><td>13.41</td><td>13.41</td><td>10.98</td><td>14.63</td></tr><tr><td>+sc2dec</td><td>76.22</td><td>67.03</td><td>65.24</td><td>56.10</td><td>66.15</td><td>32.93</td><td>20.12</td><td>19.51</td><td>13.41</td><td>21.49</td></tr><tr><td>1-shot</td><td>76.22</td><td>78.05</td><td>73.78</td><td>70.73</td><td>74.70</td><td>31.71</td><td>20.12</td><td>19.51</td><td>21.34</td><td>23.17</td></tr><tr><td>+sc2dec</td><td>74.39</td><td>76.22</td><td>71.95</td><td>68.90</td><td>72.87</td><td>40.24</td><td>25.61</td><td>23.78</td><td>23.17</td><td>28.20</td></tr><tr><td colspan=\"11\">Deepseek Chat (DeepSeek-AI, 2024)</td></tr><tr><td>vanilla</td><td>62.20</td><td>51.83</td><td>47.56</td><td>45.73</td><td>51.83</td><td>10.37</td><td>5.49</td><td>4.88</td><td>5.49</td><td>6.55</td></tr><tr><td>+sc2dec</td><td>57.93</td><td>50.00</td><td>46.95</td><td>45.12</td><td>50.00</td><td>13.41</td><td>6.71</td><td>6.71</td><td>7.32</td><td>8.54</td></tr><tr><td>1-shot</td><td>67.68</td><td>70.73</td><td>64.63</td><td>56.71</td><td>64.94</td><td>13.41</td><td>10.37</td><td>7.93</td><td>7.32</td><td>9.76</td></tr><tr><td>+sc2dec</td><td>65.85</td><td>70.12</td><td>62.20</td><td>53.66</td><td>62.96</td><td>17.68</td><td>11.59</td><td>10.37</td><td>9.15</td><td>12.20</td></tr><tr><td colspan=\"11\">llm4decompile-6.7b (Tan et al., 2024)</td></tr><tr><td>vanilla</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>92.68</td><td>92.80</td><td>90.12</td><td>93.41</td><td>92.26</td><td>71.34</td><td>47.56</td><td>45.98</td><td>41.71</td><td>51.65</td></tr><tr><td>1-shot</td><td>93.05</td><td>93.29</td><td>90.98</td><td>93.90</td><td>92.80</td><td>70.37</td><td>44.88</td><td>41.46</td><td>37.68</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>93.05</td><td>92.68</td><td>90.37</td><td>93.29</td><td>92.35</td><td>71.59</td><td>47.20</td><td>46.34</td><td>41.46</td><td>51.65</td></tr><tr><td>retrieval</td><td>94.02</td><td>88.05</td><td>84.51</td><td>85.12</td><td>87.93</td><td>65.73</td><td>32.68</td><td>38.66</td><td>36.22</td><td>43.32</td></tr><tr><td colspan=\"11\">llm4decompile-6.7b + FAE</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr></table>",
|
| 924 |
+
"bbox": [
|
| 925 |
+
114,
|
| 926 |
+
80,
|
| 927 |
+
884,
|
| 928 |
+
501
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 5
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Table 1: The main results of different methods across four optimization levels (O0, O1, O2, O3), as well as their average scores (AVG). The results in bold represent the optimal performance, while those underlined indicate the second-best performance. More results can be found in the Table 5.",
|
| 935 |
+
"bbox": [
|
| 936 |
+
112,
|
| 937 |
+
510,
|
| 938 |
+
882,
|
| 939 |
+
555
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 5
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "list",
|
| 945 |
+
"sub_type": "text",
|
| 946 |
+
"list_items": [
|
| 947 |
+
"- retrieval: We use the retrieval method (BM25 (Lù, 2024)) to get the context. The context is generated by searching for the most similar assembly code in the training set.",
|
| 948 |
+
"- $\\mathbf{sc}^2\\mathbf{dec}$ : The self-constructed context decomposition we described in the Section 3.1.",
|
| 949 |
+
"- 1-shot+sc²dec: We apply the sc²dec on the 1-shot method. Note that the 1-shot example can only be applied to generate the initial decomposition result in Figure 2."
|
| 950 |
+
],
|
| 951 |
+
"bbox": [
|
| 952 |
+
136,
|
| 953 |
+
579,
|
| 954 |
+
487,
|
| 955 |
+
739
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 5
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "4.4 Results",
|
| 962 |
+
"text_level": 1,
|
| 963 |
+
"bbox": [
|
| 964 |
+
114,
|
| 965 |
+
763,
|
| 966 |
+
218,
|
| 967 |
+
778
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 5
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "In this section, we present and analyze the performance of different models. Our experiments aim to evaluate the impact of various techniques, including one-shot, self-constructed context decomposition, and fine-tuning, on the model's performance. The main results are shown in Table 1.",
|
| 974 |
+
"bbox": [
|
| 975 |
+
112,
|
| 976 |
+
784,
|
| 977 |
+
489,
|
| 978 |
+
879
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 5
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Performance of the Base Model Through a comparative analysis of the experimental results in Ta",
|
| 985 |
+
"bbox": [
|
| 986 |
+
112,
|
| 987 |
+
889,
|
| 988 |
+
489,
|
| 989 |
+
921
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 5
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "ble 1, it is evident that different models exhibit significant differences in re-executability across various optimization levels (O0, O1, O2, O3). The base model, llm4decompile-6.7b, performs best at the O0 optimization level with a score of $70.24\\%$ , but its performance gradually declines at other optimization levels, with an average score of $48.60\\%$ . Among models not fine-tuned with decompilation tasks, GPT-4 achieved the best performance, with an average re-executability score of $14.64\\%$ . Generally, their results on re-compilability metrics are significantly higher than their performance on re-executability metrics.",
|
| 996 |
+
"bbox": [
|
| 997 |
+
507,
|
| 998 |
+
579,
|
| 999 |
+
884,
|
| 1000 |
+
788
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 5
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Context Sensitivity By comparing vanilla, 1-shot, and retrieval methods based on the llm4decompile-6.7b, it is observed that the model's performance can even decline after providing a sample. In contrast, the dynamic samples generated through our self-constructed context method yield an improvement in executability of over $2\\%$",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
507,
|
| 1009 |
+
808,
|
| 1010 |
+
884,
|
| 1011 |
+
921
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 5
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "page_number",
|
| 1017 |
+
"text": "6608",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
480,
|
| 1020 |
+
928,
|
| 1021 |
+
519,
|
| 1022 |
+
940
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 5
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "table",
|
| 1028 |
+
"img_path": "images/527b3b2f11358683d0d7922e49bab92e4ee46534fe28d49c02c545b902b4c657.jpg",
|
| 1029 |
+
"table_caption": [],
|
| 1030 |
+
"table_footnote": [],
|
| 1031 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>sc2dec (O0)</td><td>92.68</td><td>92.20</td><td>91.71</td><td>92.32</td><td>92.23</td><td>70.24</td><td>48.90</td><td>47.68</td><td>42.93</td><td>51.83</td></tr><tr><td>sc2dec (O1)</td><td>92.68</td><td>91.59</td><td>93.54</td><td>92.93</td><td>92.68</td><td>68.41</td><td>48.54</td><td>47.44</td><td>43.05</td><td>51.86</td></tr><tr><td>sc2dec (O2)</td><td>92.68</td><td>92.20</td><td>91.71</td><td>92.32</td><td>92.23</td><td>67.80</td><td>48.90</td><td>47.68</td><td>42.93</td><td>51.68</td></tr><tr><td>sc2dec (O3)</td><td>92.68</td><td>91.59</td><td>92.93</td><td>92.32</td><td>92.38</td><td>67.80</td><td>47.07</td><td>47.80</td><td>43.41</td><td>51.52</td></tr></table>",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
115,
|
| 1034 |
+
80,
|
| 1035 |
+
884,
|
| 1036 |
+
227
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 6
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "Table 2: The results of our method across optimization levels. For cases such as \"sc²dec (O0)\", we assume that the optimization level of asm code is entirely unknown and select a specific optimization level to compile the code to construct the context.",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
112,
|
| 1045 |
+
235,
|
| 1046 |
+
882,
|
| 1047 |
+
280
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 6
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "code",
|
| 1053 |
+
"sub_type": "code",
|
| 1054 |
+
"code_caption": [],
|
| 1055 |
+
"code_body": "int func0(int a){ for (int i = 0; i * i * i <= abs(a); i++) if (i * i * i == abs(a)) return 1; return 0; } Source code \nint func0(int n){ int i; if $(n < 0)$ n $=$ -n; for $(\\mathrm{i} = 1;\\mathrm{i}\\ast \\mathrm{i}\\ast \\mathrm{i} < = \\mathrm{n};\\mathrm{i} + + )$ if $(i*\\bar{i}*i==n)$ return 1; return 0; } Decompile \nint func0(int n){ int i; if $(n < 0)$ n $=$ -n; if $(n = = 0)$ return 1; for $(\\mathrm{i} = 1;\\mathrm{i}\\ast \\mathrm{i}\\ast \\mathrm{i} < = \\mathrm{n};\\mathrm{i} + + )$ if $(i*\\bar{i}*i==n)$ return 1; return 0; } SC2Dec",
|
| 1056 |
+
"guess_lang": "c",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
124,
|
| 1059 |
+
302,
|
| 1060 |
+
480,
|
| 1061 |
+
620
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 6
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Figure 5: A case study for $\\mathrm{sc^2dec}$ , which is based on the llm4decompile-6.7b with FAE. By applying the $\\mathrm{sc^2dec}$ method, the model detects and fixes the mismatch between the code and assembly.",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
112,
|
| 1070 |
+
633,
|
| 1071 |
+
489,
|
| 1072 |
+
692
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 6
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "before and after fine-tuning. This indicates that inappropriate samples may even have a detrimental effect in the decompilation domain, while our method achieves a nearly stable performance enhancement without the need for retrieval.",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
112,
|
| 1081 |
+
717,
|
| 1082 |
+
489,
|
| 1083 |
+
797
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 6
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "1-shot is a Strong Baseline As shown in Table 1, utilizing the 1-shot method significantly enhances the model's performance. Specifically, for GPT-4, the model's re-executability performance increased from $14.64\\%$ to $23.17\\%$ , an approximate improvement of $7\\%$ . In the open-source model Deepseek Chat, performance improved from $6.55\\%$ to $9.76\\%$ ,",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
112,
|
| 1092 |
+
808,
|
| 1093 |
+
489,
|
| 1094 |
+
921
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 6
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "reflecting a $3.21\\%$ enhancement. However, in the case of the llm4decompile model, which had already been trained on decompilation tasks, there was no performance improvement. Moreover, in the llm4decompile model fine-tuned with Fine-grained Alignment Enhancement, performance actually decreased from $50.88\\%$ to $50.61\\%$ , a reduction of approximately $0.27\\%$ .",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
507,
|
| 1103 |
+
304,
|
| 1104 |
+
884,
|
| 1105 |
+
434
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 6
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Sc2dec Brings Further Performance Improvement The Table 1 shows that applying sc2dec independently results in performance improvements of $6.86\\%$ and $1.99\\%$ on GPT-4 and Deepseek Chat, respectively. These improvements are lower than those achieved by the 1-shot method, likely due to the model's low Re-Compilability metric. In other words, a substantial portion of the code obtained through decompilation is un-compilable, which impedes the application of the sc2dec method. Furthermore, when combined with the 1-shot method, sc2dec can further enhance performance, achieving an additional $5\\%$ improvement for GPT-4, bringing it to $28.20\\%$ , and a $2.44\\%$ improvement for Deepseek Chat, bringing it to $12.20\\%$ . In the case of llm4decompile-6.7b, due to the models' relatively high Re-Compilability metric, the sc2dec method significantly outperformed the 1-shot method, increasing performance from $48.60\\%$ to $51.65\\%$ and from $50.88\\%$ to $52.41\\%$ .",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
507,
|
| 1114 |
+
444,
|
| 1115 |
+
884,
|
| 1116 |
+
765
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 6
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Best Performance with Combined Methods As the Table 1 shows, by combining our Step-by-Step Decompile tasks and context-based decomposition methods, we ultimately achieved approximately a $3.90\\%$ performance improvement, surpassing the performance of these methods when applied independently. This demonstrates that fine-tuning and self-construct context methods are orthogonal. Most notably, the combined method of fined",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
507,
|
| 1125 |
+
776,
|
| 1126 |
+
885,
|
| 1127 |
+
921
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 6
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "page_number",
|
| 1133 |
+
"text": "6609",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
480,
|
| 1136 |
+
927,
|
| 1137 |
+
519,
|
| 1138 |
+
940
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 6
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "table",
|
| 1144 |
+
"img_path": "images/4b5b10e67ed9721d865d3c3fbbba995924642533246e0500de8ebc93b1762263.jpg",
|
| 1145 |
+
"table_caption": [],
|
| 1146 |
+
"table_footnote": [],
|
| 1147 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>w/o tune</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td colspan=\"11\">FAE (End-to-End & Step-by-Step Decomposition Objective)</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr><tr><td colspan=\"11\">End-to-End Decomposition Objective</td></tr><tr><td>vanilla</td><td>93.9</td><td>90.61</td><td>90.61</td><td>91.34</td><td>91.62</td><td>69.51</td><td>43.29</td><td>42.2</td><td>40.73</td><td>48.93</td></tr><tr><td>+sc2dec</td><td>92.8</td><td>90.24</td><td>90.00</td><td>90.12</td><td>90.79</td><td>71.34</td><td>46.10</td><td>43.78</td><td>42.44</td><td>50.91</td></tr><tr><td>1-shot</td><td>93.9</td><td>90.73</td><td>90.37</td><td>91.22</td><td>91.55</td><td>69.51</td><td>44.02</td><td>42.68</td><td>40.61</td><td>49.21</td></tr><tr><td>+sc2dec</td><td>92.8</td><td>90.24</td><td>89.76</td><td>90.00</td><td>90.7</td><td>71.22</td><td>46.46</td><td>44.27</td><td>42.56</td><td>51.13</td></tr></table>",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
115,
|
| 1150 |
+
80,
|
| 1151 |
+
884,
|
| 1152 |
+
323
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 7
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "Table 3: The results of ablation study. All results are based on the llm4decompile-6.7b model.",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
179,
|
| 1161 |
+
331,
|
| 1162 |
+
815,
|
| 1163 |
+
346
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 7
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "grained alignment enhancement and self-construct context decomposition achieves the highest scores across all optimization levels expect \"O0\", with scores of $48.54\\%$ , $47.56\\%$ , and $43.29\\%$ at the O1, O2, and O3 levels, respectively, and an overall average score of $52.41\\%$ .",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
112,
|
| 1172 |
+
370,
|
| 1173 |
+
489,
|
| 1174 |
+
467
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 7
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "4.5 Analysis",
|
| 1181 |
+
"text_level": 1,
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
112,
|
| 1184 |
+
479,
|
| 1185 |
+
228,
|
| 1186 |
+
495
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 7
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "In this section, we will further analyze the experimental results to study the effectiveness and sensitivity of our method:",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
112,
|
| 1195 |
+
500,
|
| 1196 |
+
489,
|
| 1197 |
+
548
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 7
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "Mismatched Optimization Levels Leads to Performance Degradation As the Table 2 shows, the performance can degrade by $1\\%$ to $2\\%$ overall when constructing contexts that mismatch the optimization levels of the target assembly code. However, specific optimization levels may exhibit different behaviors. For instance, using a fixed O3 optimization level to construct contexts while decompiling assembly optimized with O2 does not result in significant performance degradation and even better. In practical scenarios, using O3 to construct contexts for binaries with unknown optimization levels might be a reasonable choice.",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
112,
|
| 1206 |
+
558,
|
| 1207 |
+
489,
|
| 1208 |
+
766
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 7
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "Case study of $\\mathbf{sc}^2\\mathbf{dec}$ As the Figure 5 shows, the compiler has expanded the abs function, reducing the overhead of function calls. The model initially generated a piece of compilable but incorrect code during direct decompilation, omitting the case where the variable $n$ equals 0. We compiled and disassembled this code to construct a new sample. By applying the $\\mathrm{sc^2dec}$ method with the context, the model successfully identified the missing part",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
112,
|
| 1217 |
+
776,
|
| 1218 |
+
489,
|
| 1219 |
+
921
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 7
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "in the short segment of assembly code and generated the correct code, thus rectifying the error from the previous inference.",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
507,
|
| 1228 |
+
370,
|
| 1229 |
+
884,
|
| 1230 |
+
419
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 7
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "text",
|
| 1236 |
+
"text": "Contribution of FAE The results in Table 1 show that the application of Fine-grained Alignment Enhancement (FAE) for further fine-tuning the model significantly enhanced its re-executability performance across all optimization levels except \"O0\". Notably, at optimization levels O2 and O3, the scores improved by $5.12\\%$ and $4.27\\%$ , reaching $45.73\\%$ and $42.32\\%$ , respectively. The average performance increased by $2.28\\%$ , achieving $50.88\\%$ . This demonstrates the effectiveness of the Fine-grained Alignment Enhancement method.",
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
507,
|
| 1239 |
+
429,
|
| 1240 |
+
885,
|
| 1241 |
+
606
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 7
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "Ablation Study of FAE The results of ablation experiments in Table 3 have demonstrated the effectiveness of our proposed Step-by-Step Decompile training objective. Removing the training objective results in approximately a $2\\%$ decline in Re-Executability performance, regardless of whether the $\\mathrm{sc}^2$ dec method is used, and notably, a $3.78\\%$ decline at the \"O2\" optimization level. However, the performance of the 1-shot remains unaffected, supporting our hypothesis that the mismatch between the training data form and the inference form leads to performance degradation. Furthermore, retaining only the End-to-end Decompilation training objective still yields little performance improvement, about $0.33\\%$ . This improvement can be attributed to the longer context provided during training, as the samples are not truncated during training, allowing the model to fully observe the assembly code and its corresponding C code.",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
507,
|
| 1250 |
+
615,
|
| 1251 |
+
885,
|
| 1252 |
+
921
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 7
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "page_number",
|
| 1258 |
+
"text": "6610",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
480,
|
| 1261 |
+
928,
|
| 1262 |
+
521,
|
| 1263 |
+
940
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 7
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "5 Conclusion",
|
| 1270 |
+
"text_level": 1,
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
114,
|
| 1273 |
+
84,
|
| 1274 |
+
247,
|
| 1275 |
+
98
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 8
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "In this paper, we introduce two methods based on the characteristics of the decompilation task: Self-Constructed Context Decomposition, which leverages the compileability of decomposition results to construct better contexts, and Fine-grained Alignment Enhancement, which fine-tunes the model using fine-grained alignment data between assembly code and source code derived from debug information. By integrating these methods, we achieved a $3.90\\%$ improvement in decompilation performance, reaching a new state-of-the-art level of $52.41\\%$ .",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
112,
|
| 1284 |
+
108,
|
| 1285 |
+
490,
|
| 1286 |
+
285
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 8
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Acknowledge",
|
| 1293 |
+
"text_level": 1,
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
114,
|
| 1296 |
+
296,
|
| 1297 |
+
235,
|
| 1298 |
+
313
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 8
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "We gratefully acknowledge the support of the National Natural Science Foundation of China (NSFC) via grant 62236004, 62206078, 62441603 and 62476073.",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
112,
|
| 1307 |
+
319,
|
| 1308 |
+
489,
|
| 1309 |
+
384
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 8
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Limitations",
|
| 1316 |
+
"text_level": 1,
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
114,
|
| 1319 |
+
395,
|
| 1320 |
+
218,
|
| 1321 |
+
410
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 8
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "The $\\mathrm{sc^2dec}$ depends on the decomposed code generated by the model. If the decomposed code cannot be recompiled, $\\mathrm{sc^2dec}$ will not be able to benefit from it, necessitating that the decomposed code has high re-compilability performance. For Fine-grained Alignment Enhancement, we created a Step-by-Step Decompile training objective, training with only 10,000 samples across four optimization levels (O0-O3), without validating its performance on larger datasets or bigger models. Moreover, fine-tuning led to a further decline in performance in the 1-shot scenario.",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
112,
|
| 1330 |
+
419,
|
| 1331 |
+
489,
|
| 1332 |
+
612
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 8
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "Potential risks",
|
| 1339 |
+
"text_level": 1,
|
| 1340 |
+
"bbox": [
|
| 1341 |
+
114,
|
| 1342 |
+
624,
|
| 1343 |
+
243,
|
| 1344 |
+
639
|
| 1345 |
+
],
|
| 1346 |
+
"page_idx": 8
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"type": "text",
|
| 1350 |
+
"text": "Decompilation is a technique that converts compiled binary code back into human-readable source code. While decompilation can be legal and useful in certain contexts, it also entails several potential risks. The primary potential risks are as follows:",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
112,
|
| 1353 |
+
648,
|
| 1354 |
+
489,
|
| 1355 |
+
728
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 8
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "list",
|
| 1361 |
+
"sub_type": "text",
|
| 1362 |
+
"list_items": [
|
| 1363 |
+
"- Intellectual Property Infringement: Decompilation may violate the copyright and licensing agreements of software. Unauthorized decomposition can lead to copyright infringement, thereby instigating legal disputes.",
|
| 1364 |
+
"- Security Risks: Decomposed code may expose the internal structure and implementation details of the software, providing attack vectors for hackers. Malicious actors can exploit this information to identify and exploit vulnerabilities in the software."
|
| 1365 |
+
],
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
136,
|
| 1368 |
+
734,
|
| 1369 |
+
489,
|
| 1370 |
+
919
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 8
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "- Ethical Concerns: Decompiling and analyzing another's code can be considered unethical, especially when done without authorization.",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
531,
|
| 1379 |
+
84,
|
| 1380 |
+
882,
|
| 1381 |
+
133
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 8
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "References",
|
| 1388 |
+
"text_level": 1,
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
510,
|
| 1391 |
+
173,
|
| 1392 |
+
608,
|
| 1393 |
+
187
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 8
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "list",
|
| 1399 |
+
"sub_type": "text",
|
| 1400 |
+
"list_items": [
|
| 1401 |
+
"Jordi Armengol-Estapé, Jackson Woodruff, Alexander Brauckmann, José Wesley de Souza Magalhães, and Michael F. P. O’Boyle. 2022. Exebench: An ml-scale dataset of executable c functions. In Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming, MAPS 2022, page 50–59, New York, NY, USA. Association for Computing Machinery.",
|
| 1402 |
+
"Jordi Armengol-Estape, Jackson Woodruff, Chris Cummins, and Michael F. P. O'Boyle. 2023. Slade: A portable small language model decoder for optimized assembler. CoRR, abs/2305.12520.",
|
| 1403 |
+
"Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. Preprint, arXiv:2005.14165.",
|
| 1404 |
+
"David Brumley, JongHyup Lee, Edward J. Schwartz, and Maverick Woo. 2013. Native x86 decomposition using semantics-preserving structural analysis and iterative control-flow structuring. In Proceedings of the 22th USENIX Security Symposium, Washington, DC, USA, August 14-16, 2013, pages 353-368. USENIX Association.",
|
| 1405 |
+
"Tri Dao. 2024. FlashAttention-2: Faster attention with better parallelism and work partitioning. In International Conference on Learning Representations (ICLR).",
|
| 1406 |
+
"DeepSeek-AI. 2024. Deepseek-v2: A strong, economical, and efficient mixture-of-experts language model. Preprint, arXiv:2405.04434.",
|
| 1407 |
+
"Ghidra. 2024. Ghidra software reverse engineering framework.",
|
| 1408 |
+
"Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Y. Wu, Y. K. Li, Fuli Luo, Yingfei Xiong, and Wenfeng Liang. 2024. Deepseek-coder: When the large language model meets programming – the rise of code intelligence. Preprint, arXiv:2401.14196.",
|
| 1409 |
+
"Hex-Rays. 2024. Ida pro: a cross-platform multiprocessor disassembler and debugger."
|
| 1410 |
+
],
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
509,
|
| 1413 |
+
197,
|
| 1414 |
+
884,
|
| 1415 |
+
921
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 8
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "page_number",
|
| 1421 |
+
"text": "6611",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
480,
|
| 1424 |
+
928,
|
| 1425 |
+
519,
|
| 1426 |
+
940
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 8
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "list",
|
| 1432 |
+
"sub_type": "ref_text",
|
| 1433 |
+
"list_items": [
|
| 1434 |
+
"Iman Hosseini and Brendan Dolan-Gavitt. 2022. Beyond the C: retargetable decompilation using neural machine translation. CoRR, abs/2212.08950.",
|
| 1435 |
+
"Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.",
|
| 1436 |
+
"Nan Jiang, Chengxiao Wang, Kevin Liu, Xiangzhe Xu, Lin Tan, and Xiangyu Zhang. 2023. Nova+: Generative language models for binaries. Preprint, arXiv:2311.13721.",
|
| 1437 |
+
"Deborah S. Katz, Jason Ruchti, and Eric M. Schulte. 2018. Using recurrent neural networks for decompilation. In 25th International Conference on Software Analysis, Evolution and Reengineering, SANER 2018, Campobasso, Italy, March 20-23, 2018, pages 346-356. IEEE Computer Society.",
|
| 1438 |
+
"Jeremy Lacomis, Pengcheng Yin, Edward J. Schwartz, Miltiadis Allamanis, Claire Le Goues, Graham Neubig, and Bogdan Vasilescu. 2019. DIRE: A neural approach to decompiled identifier naming. In 34th IEEE/ACM International Conference on Automated Software Engineering, ASE 2019, San Diego, CA, USA, November 11-15, 2019, pages 628-639. IEEE.",
|
| 1439 |
+
"Thomas Lippincott. 2020. Starcoder: A general neural ensemble technique to support traditional scholarship, illustrated with a study of the post-atlantic slave trade. In 15th Annual International Conference of the Alliance of Digital Humanities Organizations, DH 2020, Ottawa, Canada, July 20-25, 2020, Conference Abstracts.",
|
| 1440 |
+
"Zhibo Liu and Shuai Wang. 2020. How far we have come: testing decomposition correctness of C decompliers. In ISSTA '20: 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual Event, USA, July 18-22, 2020, pages 475-487. ACM.",
|
| 1441 |
+
"Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net.",
|
| 1442 |
+
"Xing Han Lu. 2024. Bm25s: Orders of magnitude faster lexical search via eager sparse scoring. Preprint, arXiv:2407.03618.",
|
| 1443 |
+
"OpenAI. 2022. ChatGPT.",
|
| 1444 |
+
"OpenAI. 2023. GPT-4 Technical Report. CoRR, abs/2303.08774.",
|
| 1445 |
+
"Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, Artyom Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton-Ferrer, Aaron Grattaflori, Wenhan Xiong, Alexandre Défossez, Jade Copet,"
|
| 1446 |
+
],
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
115,
|
| 1449 |
+
85,
|
| 1450 |
+
485,
|
| 1451 |
+
919
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 9
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "list",
|
| 1457 |
+
"sub_type": "ref_text",
|
| 1458 |
+
"list_items": [
|
| 1459 |
+
"Faisal Azhar, Hugo Touvron, Louis Martin, Nicolas Usunier, Thomas Scialom, and Gabriel Synnaeve. 2023. Code llama: Open foundation models for code. CoRR, abs/2308.12950.",
|
| 1460 |
+
"Hanzhuo Tan, Qi Luo, Jing Li, and Yuqun Zhang. 2024. Llm4decompile: Decompiling binary code with large language models. Preprint, arXiv:2403.05286.",
|
| 1461 |
+
"Tao Wei, Jian Mao, Wei Zou, and Yu Chen. 2007. A new algorithm for identifying loops in decomposition. In Static Analysis, 14th International Symposium, SAS 2007, Kongens Lyngby, Denmark, August 22-24, 2007, Proceedings, volume 4634 of Lecture Notes in Computer Science, pages 170-183. Springer.",
|
| 1462 |
+
"Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. 2019. Huggingface's transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771.",
|
| 1463 |
+
"Wai Kin Wong, Huaijin Wang, Zongjie Li, Zhibo Liu, Shuai Wang, Qiyi Tang, Sen Nie, and Shi Wu. 2023. Refining decomposed C code with large language models. CoRR, abs/2310.06530.",
|
| 1464 |
+
"Frank F. Xu, Uri Alon, Graham Neubig, and Vincent Josua Hellendoorn. 2022. A systematic evaluation of large language models of code. In Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming, MAPS 2022, page 1-10, New York, NY, USA. Association for Computing Machinery.",
|
| 1465 |
+
"Xiangzhe Xu, Zhuo Zhang, Shiwei Feng, Yapeng Ye, Zian Su, Nan Jiang, Siyuan Cheng, Lin Tan, and Xiangyu Zhang. 2023. Lmpa: Improving decomposition by synergy of large language model and program analysis. CoRR, abs/2306.02546.",
|
| 1466 |
+
"Zhengran Zeng, Hanzhuo Tan, Haotian Zhang, Jing Li, Yuqun Zhang, and Lingming Zhang. 2022. An extensive study on pre-trained models for program understanding and generation. In ISSTA '22: 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual Event, South Korea, July 18 - 22, 2022, pages 39-51. ACM.",
|
| 1467 |
+
"Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyan Luo, and Yongqiang Ma. 2024. Llamafactory: Unified efficient fine-tuning of $100+$ language models. arXiv preprint arXiv:2403.13372."
|
| 1468 |
+
],
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
510,
|
| 1471 |
+
85,
|
| 1472 |
+
880,
|
| 1473 |
+
769
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 9
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "page_number",
|
| 1479 |
+
"text": "6612",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
480,
|
| 1482 |
+
928,
|
| 1483 |
+
519,
|
| 1484 |
+
940
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 9
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "text",
|
| 1490 |
+
"text": "A Training examples",
|
| 1491 |
+
"text_level": 1,
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
114,
|
| 1494 |
+
84,
|
| 1495 |
+
314,
|
| 1496 |
+
99
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 10
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "code",
|
| 1502 |
+
"sub_type": "code",
|
| 1503 |
+
"code_caption": [
|
| 1504 |
+
"Figure 6: The training example of end-to-end decompile objective."
|
| 1505 |
+
],
|
| 1506 |
+
"code_body": "User: # This is the assembly: <func0>:\nmov %edi,%eax\nand $0x1,%eax\nret\n# What is the source code?\nAssistant: bool func0(int num) {\nreturn num % 2 != 0;\n}",
|
| 1507 |
+
"guess_lang": "txt",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
124,
|
| 1510 |
+
124,
|
| 1511 |
+
436,
|
| 1512 |
+
258
|
| 1513 |
+
],
|
| 1514 |
+
"page_idx": 10
|
| 1515 |
+
},
|
| 1516 |
+
{
|
| 1517 |
+
"type": "code",
|
| 1518 |
+
"sub_type": "code",
|
| 1519 |
+
"code_caption": [
|
| 1520 |
+
"Figure 7: The training example of step-by-step decompile objective. Note that the workflow is only for training."
|
| 1521 |
+
],
|
| 1522 |
+
"code_body": "User: Add inline comments that contain the corresponding C code for the assembly code first, then write the equivalent C function. ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `` \n`` `` ````````````````````````````````````````````````````````````````````````````````````````````````````` \nAssistant: Here is the assembly code with inline comments containing the corresponding C code: \n``` ` ` ` ` ` ` ` \n```\n<func0>:\n mov %edi,%eax\n and $0x1,%eax\n ret\n```\nAssistant: Here is the assembly code with inline comments containing the corresponding C code: \n``` ` ` ` ` ` \n```\n<func0>:\n ; bool func0(int num) {\n mov %edi,%eax\n and $0x1,%eax\n ; return num % 2 != 0;\n ret\n}\n```\nAnd here is the equivalent C function: \n``` c\nbool func0(int num) {\n return num % 2 != 0;\n}",
|
| 1523 |
+
"guess_lang": "txt",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
127,
|
| 1526 |
+
318,
|
| 1527 |
+
813,
|
| 1528 |
+
659
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 10
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "text",
|
| 1534 |
+
"text": "B Extra Results",
|
| 1535 |
+
"text_level": 1,
|
| 1536 |
+
"bbox": [
|
| 1537 |
+
114,
|
| 1538 |
+
725,
|
| 1539 |
+
270,
|
| 1540 |
+
739
|
| 1541 |
+
],
|
| 1542 |
+
"page_idx": 10
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"type": "text",
|
| 1546 |
+
"text": "The Model is More Sensitive to Compiler Series than to Versions: As the Table 4 shows, using a compiler different from the one used during training to build the context can lead to significant performance degradation. The model performs better when the context is built using the GCC compiler series, whereas the performance is slightly worse when using the clang series. This may be due to the fact that the context used during both the continued pre-training and fine-tuning stages was constructed with the GCC compiler series. When different versions of GCC are used for construction, the performance of $\\mathrm{sc^2dec}$ stabilizes around $52\\%$ for the fine-tuned model except \"x86-64 gcc 14.1\". In contrast, when the context is built using the clang series, the performance of $\\mathrm{sc^2dec}$ is slightly lower and more consistent, stabilizing around $51\\%$ for the fine-tuned model.",
|
| 1547 |
+
"bbox": [
|
| 1548 |
+
112,
|
| 1549 |
+
750,
|
| 1550 |
+
884,
|
| 1551 |
+
895
|
| 1552 |
+
],
|
| 1553 |
+
"page_idx": 10
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"type": "page_number",
|
| 1557 |
+
"text": "6613",
|
| 1558 |
+
"bbox": [
|
| 1559 |
+
480,
|
| 1560 |
+
928,
|
| 1561 |
+
519,
|
| 1562 |
+
940
|
| 1563 |
+
],
|
| 1564 |
+
"page_idx": 10
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"type": "table",
|
| 1568 |
+
"img_path": "images/46c9a3409371a01f5163b2ae94267d8afabc99fdb82aa140bf2cdb8700af3a7b.jpg",
|
| 1569 |
+
"table_caption": [],
|
| 1570 |
+
"table_footnote": [],
|
| 1571 |
+
"table_body": "<table><tr><td rowspan=\"2\">Compiler</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>x86-64 gcc 10.5</td><td>92.07</td><td>90.98</td><td>91.71</td><td>92.32</td><td>91.77</td><td>70.85</td><td>47.32</td><td>47.80</td><td>43.05</td><td>52.26</td></tr><tr><td>x86-64 gcc 11.4</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>48.66</td><td>47.68</td><td>42.68</td><td>52.47</td></tr><tr><td>x86-64 gcc 12.3</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>47.68</td><td>46.95</td><td>42.56</td><td>52.01</td></tr><tr><td>x86-64 gcc 13.3</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>47.93</td><td>46.59</td><td>42.68</td><td>52.01</td></tr><tr><td>x86-64 gcc 14.1</td><td>92.07</td><td>91.83</td><td>92.44</td><td>92.56</td><td>92.23</td><td>70.85</td><td>47.07</td><td>45.73</td><td>41.95</td><td>51.40</td></tr><tr><td>x86-64 clang 14.0.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.05</td><td>45.73</td><td>42.44</td><td>51.31</td></tr><tr><td>x86-64 clang 15.0.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.29</td><td>45.73</td><td>42.32</td><td>51.34</td></tr><tr><td>x86-64 clang 16.0.0</td><td>92.68</td><td>92.2</td><td>93.66</td><td>93.17</td><td>92.93</td><td>69.02</td><td>48.05</td><td>46.46</td><td>42.32</td><td>51.46</td></tr><tr><td>x86-64 clang 17.0.1</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.05</td><td>46.71</td><td>42.32</td><td>51.52</td></tr><tr><td>x86-64 clang 18.1.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.17</td><td>46.46</td><td>42.32</td><td>51.49</td></tr></table>",
|
| 1572 |
+
"bbox": [
|
| 1573 |
+
154,
|
| 1574 |
+
80,
|
| 1575 |
+
845,
|
| 1576 |
+
272
|
| 1577 |
+
],
|
| 1578 |
+
"page_idx": 11
|
| 1579 |
+
},
|
| 1580 |
+
{
|
| 1581 |
+
"type": "table",
|
| 1582 |
+
"img_path": "images/279de1401224e693e4acabb1b71d9d10f130e70be8505c561e24a51021dd0aea.jpg",
|
| 1583 |
+
"table_caption": [
|
| 1584 |
+
"Table 4: The re-executability of differnet models across different compilers. We selected the popular three versions of both the clang and gcc series in Compiler Explorer. The compiler of Compiler Explorer may differ from the compilers provided by Ubuntu in some default compilation options, which might result in slight differences in the generated assembly code."
|
| 1585 |
+
],
|
| 1586 |
+
"table_footnote": [],
|
| 1587 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td colspan=\"11\">GPT-4 (OpenAI, 2023)</td></tr><tr><td>vanilla</td><td>76.83</td><td>67.68</td><td>67.07</td><td>57.93</td><td>67.38</td><td>20.73</td><td>13.41</td><td>13.41</td><td>10.98</td><td>14.63</td></tr><tr><td>+sc2dec</td><td>76.22</td><td>67.03</td><td>65.24</td><td>56.10</td><td>66.15</td><td>32.93</td><td>20.12</td><td>19.51</td><td>13.41</td><td>21.49</td></tr><tr><td>1-shot</td><td>76.22</td><td>78.05</td><td>73.78</td><td>70.73</td><td>74.70</td><td>31.71</td><td>20.12</td><td>19.51</td><td>21.34</td><td>23.17</td></tr><tr><td>+sc2dec</td><td>74.39</td><td>76.22</td><td>71.95</td><td>68.90</td><td>72.87</td><td>40.24</td><td>25.61</td><td>23.78</td><td>23.17</td><td>28.20</td></tr><tr><td colspan=\"11\">GPT-3.5 Turbo (OpenAI, 2022)</td></tr><tr><td>vanilla</td><td>20.73</td><td>25.00</td><td>29.27</td><td>21.95</td><td>24.24</td><td>4.27</td><td>3.66</td><td>3.05</td><td>3.05</td><td>3.51</td></tr><tr><td>+sc2dec</td><td>18.29</td><td>22.56</td><td>28.66</td><td>20.12</td><td>22.41</td><td>5.49</td><td>3.66</td><td>3.66</td><td>4.27</td><td>4.27</td></tr><tr><td>1-shot</td><td>49.39</td><td>46.34</td><td>42.07</td><td>40.85</td><td>44.66</td><td>10.37</td><td>7.32</td><td>6.10</td><td>5.49</td><td>7.31</td></tr><tr><td>+sc2dec</td><td>42.07</td><td>42.68</td><td>36.59</td><td>34.15</td><td>38.87</td><td>12.20</td><td>9.15</td><td>6.71</td><td>7.93</td><td>8.99</td></tr><tr><td colspan=\"11\">Deepseek Chat (DeepSeek-AI, 2024)</td></tr><tr><td>vanilla</td><td>62.20</td><td>51.83</td><td>47.56</td><td>45.73</td><td>51.83</td><td>10.37</td><td>5.49</td><td>4.88</td><td>5.49</td><td>6.55</td></tr><tr><td>+sc2dec</td><td>57.93</td><td>50.00</td><td>46.95</td><td>45.12</td><td>50.00</td><td>13.41</td><td>6.71</td><td>6.71</td><td>7.32</td><td>8.54</td></tr><tr><td>1-shot</td><td>67.68</td><td>70.73</td><td>64.63</td><td>56.71</td><td>64.94</td><td>13.41</td><td>10.37</td><td>7.93</td><td>7.32</td><td>9.76</td></tr><tr><td>+sc2dec</td><td>65.85</td><td>70.12</td><td>62.20</td><td>53.66</td><td>62.96</td><td>17.68</td><td>11.59</td><td>10.37</td><td>9.15</td><td>12.20</td></tr><tr><td colspan=\"11\">Deepseek Coder (Guo et al., 2024)</td></tr><tr><td>vanilla</td><td>66.46</td><td>57.93</td><td>47.56</td><td>51.83</td><td>55.95</td><td>9.15</td><td>6.10</td><td>6.71</td><td>6.98</td><td>7.01</td></tr><tr><td>+sc2dec</td><td>62.80</td><td>54.27</td><td>43.29</td><td>50.00</td><td>52.59</td><td>12.20</td><td>7.93</td><td>9.15</td><td>8.54</td><td>9.45</td></tr><tr><td>1-shot</td><td>57.93</td><td>53.66</td><td>52.44</td><td>48.17</td><td>53.05</td><td>11.59</td><td>10.37</td><td>8.54</td><td>7.93</td><td>9.60</td></tr><tr><td>+sc2dec</td><td>56.10</td><td>51.83</td><td>51.22</td><td>46.34</td><td>51.37</td><td>15.24</td><td>11.58</td><td>10.37</td><td>8.54</td><td>11.43</td></tr><tr><td colspan=\"11\">llm4decompile-6.7b (Tan et al., 2024)</td></tr><tr><td>vanilla</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>92.68</td><td>92.80</td><td>90.12</td><td>93.41</td><td>92.26</td><td>71.34</td><td>47.56</td><td>45.98</td><td>41.71</td><td>51.65</td></tr><tr><td>1-shot</td><td>93.05</td><td>93.29</td><td>90.98</td><td>93.90</td><td>92.80</td><td>70.37</td><td>44.88</td><td>41.46</td><td>37.68</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>93.05</td><td>92.68</td><td>90.37</td><td>93.29</td><td>92.35</td><td>71.59</td><td>47.20</td><td>46.34</td><td>41.46</td><td>51.65</td></tr><tr><td colspan=\"11\">llm4decompile-6.7b + FAE</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr></table>",
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
152,
|
| 1590 |
+
348,
|
| 1591 |
+
845,
|
| 1592 |
+
864
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 11
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "text",
|
| 1598 |
+
"text": "Table 5: The extra results of different methods across four optimization levels (O0, O1, O2, O3), as well as their average scores (AVG). The results in bold represent the optimal performance, while those underlined indicate the second-best performance.",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
112,
|
| 1601 |
+
872,
|
| 1602 |
+
882,
|
| 1603 |
+
916
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 11
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "page_number",
|
| 1609 |
+
"text": "6614",
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
480,
|
| 1612 |
+
928,
|
| 1613 |
+
519,
|
| 1614 |
+
940
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 11
|
| 1617 |
+
}
|
| 1618 |
+
]
|
2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/45f4817a-44a7-499d-b884-1bdac2c1b3e5_model.json
ADDED
|
@@ -0,0 +1,2127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
{
|
| 4 |
+
"type": "title",
|
| 5 |
+
"bbox": [
|
| 6 |
+
0.129,
|
| 7 |
+
0.09,
|
| 8 |
+
0.872,
|
| 9 |
+
0.13
|
| 10 |
+
],
|
| 11 |
+
"angle": 0,
|
| 12 |
+
"content": "Self-Constructed Context Decomposition with Fined-grained Alignment Enhancement"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"bbox": [
|
| 17 |
+
0.272,
|
| 18 |
+
0.153,
|
| 19 |
+
0.734,
|
| 20 |
+
0.187
|
| 21 |
+
],
|
| 22 |
+
"angle": 0,
|
| 23 |
+
"content": "Yunlong Feng, Dechuan Teng, Yang Xu, Honglin Mu, Xiao Xu, Libo Qin, Qingfu Zhu*, Wanxiang Che"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"bbox": [
|
| 28 |
+
0.346,
|
| 29 |
+
0.187,
|
| 30 |
+
0.654,
|
| 31 |
+
0.203
|
| 32 |
+
],
|
| 33 |
+
"angle": 0,
|
| 34 |
+
"content": "Harbin Institute of Technology, China"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"bbox": [
|
| 39 |
+
0.257,
|
| 40 |
+
0.204,
|
| 41 |
+
0.744,
|
| 42 |
+
0.22
|
| 43 |
+
],
|
| 44 |
+
"angle": 0,
|
| 45 |
+
"content": "{ylfeng,dcteng,yxu,hlmu,xxu,lbqin,qfzhu,car} \\(@\\) ir.hit.edu.cn"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "title",
|
| 49 |
+
"bbox": [
|
| 50 |
+
0.261,
|
| 51 |
+
0.261,
|
| 52 |
+
0.341,
|
| 53 |
+
0.277
|
| 54 |
+
],
|
| 55 |
+
"angle": 0,
|
| 56 |
+
"content": "Abstract"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"bbox": [
|
| 61 |
+
0.142,
|
| 62 |
+
0.287,
|
| 63 |
+
0.461,
|
| 64 |
+
0.657
|
| 65 |
+
],
|
| 66 |
+
"angle": 0,
|
| 67 |
+
"content": "Decompilation transforms compiled code back into a high-level programming language for analysis when source code is unavailable. Previous work has primarily focused on enhancing decomposition performance by increasing the scale of model parameters or training data for pre-training. Based on the characteristics of the decomposition task, we propose two methods: (1) Without fine-tuning, the Self-Constructed Context Decomposition \\((\\mathrm{sc}^2\\mathrm{dec})\\) method recombines the LLM's decomposition results to construct pairs for in-context learning, helping the model improve decomposition performance. (2) Fine-grained Alignment Enhancement (FAE), which meticulously aligns assembly code with source code at the statement level by leveraging debugging information, is employed during the fine-tuning phase to achieve further improvements in decomposition. By integrating these two methods, we achieved a Re-Executability performance improvement of approximately \\(3.90\\%\\) on the Decompile-Eval benchmark, establishing a new state-of-the-art performance of \\(52.41\\%\\). The code, data, and models are available at https://github.com/AlongWY/sccdec."
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "title",
|
| 71 |
+
"bbox": [
|
| 72 |
+
0.115,
|
| 73 |
+
0.667,
|
| 74 |
+
0.262,
|
| 75 |
+
0.683
|
| 76 |
+
],
|
| 77 |
+
"angle": 0,
|
| 78 |
+
"content": "1 Introduction"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"bbox": [
|
| 83 |
+
0.113,
|
| 84 |
+
0.692,
|
| 85 |
+
0.491,
|
| 86 |
+
0.902
|
| 87 |
+
],
|
| 88 |
+
"angle": 0,
|
| 89 |
+
"content": "Decompilation is the process of converting compiled machine code or bytecode back into a high-level programming language. This process is typically used to analyze how the software works when the source code is not accessible (Brumley et al., 2013; Katz et al., 2018; Hosseini and Dolan-Gavitt, 2022; Xu et al., 2023; Armengol-Estape et al., 2023; Jiang et al., 2023; Wong et al., 2023). Many tools have been developed for decompilation, like Ghidra (Ghidra, 2024) and IDA Pro (Hex-Rays, 2024). However, these tools often struggle to generate human-readable code. The main challenge in decompilation is that it's hard to fully reconstruct"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "image",
|
| 93 |
+
"bbox": [
|
| 94 |
+
0.565,
|
| 95 |
+
0.258,
|
| 96 |
+
0.828,
|
| 97 |
+
0.451
|
| 98 |
+
],
|
| 99 |
+
"angle": 0,
|
| 100 |
+
"content": null
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"type": "image_caption",
|
| 104 |
+
"bbox": [
|
| 105 |
+
0.509,
|
| 106 |
+
0.46,
|
| 107 |
+
0.885,
|
| 108 |
+
0.532
|
| 109 |
+
],
|
| 110 |
+
"angle": 0,
|
| 111 |
+
"content": "Figure 1: Pipeline of the decompilation. The input for decompilation tasks is typically assembly, with the source code invisible. Additionally, the source code obtained through decompilation usually does not exactly match the original code."
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"type": "text",
|
| 115 |
+
"bbox": [
|
| 116 |
+
0.508,
|
| 117 |
+
0.564,
|
| 118 |
+
0.885,
|
| 119 |
+
0.629
|
| 120 |
+
],
|
| 121 |
+
"angle": 0,
|
| 122 |
+
"content": "the source code, especially details such as variable names (Lacomis et al., 2019) and primary structures (Wei et al., 2007), which are frequently lost during the compilation process."
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"type": "text",
|
| 126 |
+
"bbox": [
|
| 127 |
+
0.508,
|
| 128 |
+
0.632,
|
| 129 |
+
0.886,
|
| 130 |
+
0.922
|
| 131 |
+
],
|
| 132 |
+
"angle": 0,
|
| 133 |
+
"content": "Recent advances in large language models (LLMs) have prompted researchers to view programming languages as distinct linguistic systems, utilizing pre-trained code LLMs to accomplish various coding tasks (Lippincott, 2020; Rozière et al., 2023; Guo et al., 2024; OpenAI, 2023). These models have demonstrated significant performance improvements over traditional techniques (Zeng et al., 2022; Xu et al., 2022), making it feasible to apply LLMs to decompilation challenges. For instance, Transformer-based models such as Slade (Armengol-Estapé et al., 2023) and Nova (Jiang et al., 2023) have shown potential in using language models to translate binary code back into more readable and structured source code. Recently, Tan et al. (2024) developed and released the first open-source LLM focused on decompilation, alongside the construction of the first"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"type": "page_footnote",
|
| 137 |
+
"bbox": [
|
| 138 |
+
0.137,
|
| 139 |
+
0.907,
|
| 140 |
+
0.285,
|
| 141 |
+
0.922
|
| 142 |
+
],
|
| 143 |
+
"angle": 0,
|
| 144 |
+
"content": "*Corresponding Author"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"type": "page_number",
|
| 148 |
+
"bbox": [
|
| 149 |
+
0.481,
|
| 150 |
+
0.928,
|
| 151 |
+
0.522,
|
| 152 |
+
0.941
|
| 153 |
+
],
|
| 154 |
+
"angle": 0,
|
| 155 |
+
"content": "6603"
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"type": "footer",
|
| 159 |
+
"bbox": [
|
| 160 |
+
0.218,
|
| 161 |
+
0.946,
|
| 162 |
+
0.78,
|
| 163 |
+
0.958
|
| 164 |
+
],
|
| 165 |
+
"angle": 0,
|
| 166 |
+
"content": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6603-6614"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"type": "footer",
|
| 170 |
+
"bbox": [
|
| 171 |
+
0.275,
|
| 172 |
+
0.959,
|
| 173 |
+
0.725,
|
| 174 |
+
0.972
|
| 175 |
+
],
|
| 176 |
+
"angle": 0,
|
| 177 |
+
"content": "November 12-16, 2024 ©2024 Association for Computational Linguistics"
|
| 178 |
+
}
|
| 179 |
+
],
|
| 180 |
+
[
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"bbox": [
|
| 184 |
+
0.113,
|
| 185 |
+
0.085,
|
| 186 |
+
0.488,
|
| 187 |
+
0.196
|
| 188 |
+
],
|
| 189 |
+
"angle": 0,
|
| 190 |
+
"content": "decompilation benchmark to evaluate the decompilation capabilities of models. These efforts primarily treat the decompilation task as a translation task, training a robust decompilation model on extensive synthetic data (Hosseini and Dolan-Gavitt, 2022; Armengol-Estapé et al., 2023; Jiang et al., 2023; Tan et al., 2024)."
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"bbox": [
|
| 195 |
+
0.114,
|
| 196 |
+
0.198,
|
| 197 |
+
0.49,
|
| 198 |
+
0.229
|
| 199 |
+
],
|
| 200 |
+
"angle": 0,
|
| 201 |
+
"content": "By analyzing the characteristics of decomposition tasks, we have found two features:"
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"bbox": [
|
| 206 |
+
0.137,
|
| 207 |
+
0.242,
|
| 208 |
+
0.486,
|
| 209 |
+
0.273
|
| 210 |
+
],
|
| 211 |
+
"angle": 0,
|
| 212 |
+
"content": "- The decompiled code generated by the model is usually compileable."
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"bbox": [
|
| 217 |
+
0.137,
|
| 218 |
+
0.274,
|
| 219 |
+
0.485,
|
| 220 |
+
0.306
|
| 221 |
+
],
|
| 222 |
+
"angle": 0,
|
| 223 |
+
"content": "- The compiler can produce external debugging information for the debugger."
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "list",
|
| 227 |
+
"bbox": [
|
| 228 |
+
0.137,
|
| 229 |
+
0.242,
|
| 230 |
+
0.486,
|
| 231 |
+
0.306
|
| 232 |
+
],
|
| 233 |
+
"angle": 0,
|
| 234 |
+
"content": null
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"bbox": [
|
| 239 |
+
0.113,
|
| 240 |
+
0.317,
|
| 241 |
+
0.49,
|
| 242 |
+
0.639
|
| 243 |
+
],
|
| 244 |
+
"angle": 0,
|
| 245 |
+
"content": "Based on the characteristics of the decomposition task, we propose two approaches: (1) Self-Constructed Context Decomposition \\((\\mathrm{sc}^2\\mathrm{dec})\\), a tuning-free approach, leverages the decomposition results from the model and specific compiler to derive ground-truth (assembly code, source code) pair closely related to the test sample. By incorporating the obtained pair as a demonstration example within the context, we can fully leverage the model's in-context learning capabilities to enhance performance. (2) Fine-grained Alignment Enhancement (FAE) introduces a new step-by-step decomposition training objective in addition to the end-to-end decomposition training objective that relies on large-scale pre-training for implicit alignment. By leveraging debugging information designed for debuggers, we can align assembly code with high-level code at a finer statement level. This allows the model to more faithfully preserve the original functionality after decomposition."
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"bbox": [
|
| 250 |
+
0.113,
|
| 251 |
+
0.64,
|
| 252 |
+
0.49,
|
| 253 |
+
0.719
|
| 254 |
+
],
|
| 255 |
+
"angle": 0,
|
| 256 |
+
"content": "Combining these two methods, we have achieved an approximately \\(3.90\\%\\) improvement in re-executability performance based on lvm4decompile model (Tan et al., 2024), reaching a new state-of-the-art performance of \\(52.41\\%\\) re-executability."
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"bbox": [
|
| 261 |
+
0.133,
|
| 262 |
+
0.721,
|
| 263 |
+
0.488,
|
| 264 |
+
0.736
|
| 265 |
+
],
|
| 266 |
+
"angle": 0,
|
| 267 |
+
"content": "To summarize, our contributions are as follows:"
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"bbox": [
|
| 272 |
+
0.137,
|
| 273 |
+
0.75,
|
| 274 |
+
0.488,
|
| 275 |
+
0.812
|
| 276 |
+
],
|
| 277 |
+
"angle": 0,
|
| 278 |
+
"content": "- We introduce Self-Constructed Context Decomposition, which leverages the compileability of decomposition results to construct better contexts."
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"bbox": [
|
| 283 |
+
0.137,
|
| 284 |
+
0.826,
|
| 285 |
+
0.488,
|
| 286 |
+
0.921
|
| 287 |
+
],
|
| 288 |
+
"angle": 0,
|
| 289 |
+
"content": "- We introduce Fine-grained Alignment Enhancement, which fine-tunes the model using fine-grained alignment data between assembly code and source code derived from debug information. We also propose how to synthesize its training data automatically."
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "list",
|
| 293 |
+
"bbox": [
|
| 294 |
+
0.137,
|
| 295 |
+
0.75,
|
| 296 |
+
0.488,
|
| 297 |
+
0.921
|
| 298 |
+
],
|
| 299 |
+
"angle": 0,
|
| 300 |
+
"content": null
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"bbox": [
|
| 305 |
+
0.532,
|
| 306 |
+
0.085,
|
| 307 |
+
0.882,
|
| 308 |
+
0.133
|
| 309 |
+
],
|
| 310 |
+
"angle": 0,
|
| 311 |
+
"content": "- The experiments on the Decompile-Eval benchmark show that our proposed model achieves new state-of-the-art results."
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "title",
|
| 315 |
+
"bbox": [
|
| 316 |
+
0.51,
|
| 317 |
+
0.147,
|
| 318 |
+
0.673,
|
| 319 |
+
0.162
|
| 320 |
+
],
|
| 321 |
+
"angle": 0,
|
| 322 |
+
"content": "2 Related Works"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"bbox": [
|
| 327 |
+
0.508,
|
| 328 |
+
0.174,
|
| 329 |
+
0.885,
|
| 330 |
+
0.51
|
| 331 |
+
],
|
| 332 |
+
"angle": 0,
|
| 333 |
+
"content": "Decompilation has a long history, centered on converting binary files into human-readable source code. Traditional tools such as Hex-Rays IDA Pro (Hex-Rays, 2024) and Ghidra (Ghidra, 2024) predominantly rely on analyzing a program's control flow graph (CFG) to perform this task (Brumley et al., 2013). These tools operate by scrutinizing instructions within assembly code to construct CFGs and identify common programming structures like if-else statements and loops (Wei et al., 2007). However, they rely on intricate and error-prone expert-built rule systems that frequently fail with optimized binary code, a common practice in commercial software development. Moreover, traditional tools often generate outputs that closely resemble assembly code representations, translating variables into registers and utilizing low-level operations such as goto statements. This output is not only challenging to comprehend but also occasionally cannot be recompiled (Liu and Wang, 2020)."
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"bbox": [
|
| 338 |
+
0.508,
|
| 339 |
+
0.512,
|
| 340 |
+
0.884,
|
| 341 |
+
0.818
|
| 342 |
+
],
|
| 343 |
+
"angle": 0,
|
| 344 |
+
"content": "Inspired by neural machine translation, researchers have begun to conceptualize decompilation as a translation task, wherein machine-level instructions are converted into readable source code using neural networks. Initial endeavors employing recurrent neural networks (RNNs) demonstrated limited success (Katz et al., 2018). However, recent advancements in natural language processing (NLP) have facilitated the application of pre-trained language models (LMs) in decompilation. Notable examples include BTC (Hosseini and Dolan-Gavitt, 2022), Slade (Armengol-Estapé et al., 2023), and Nova (Jiang et al., 2023), which mark significant strides in the field. Recently, Tan et al. (2024) created and released the first open-source large language models specifically for decompilation and established an evaluation benchmark that considers the re-compilability and re-executability of decompiled code."
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "title",
|
| 348 |
+
"bbox": [
|
| 349 |
+
0.51,
|
| 350 |
+
0.831,
|
| 351 |
+
0.613,
|
| 352 |
+
0.846
|
| 353 |
+
],
|
| 354 |
+
"angle": 0,
|
| 355 |
+
"content": "3 Method"
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"bbox": [
|
| 360 |
+
0.508,
|
| 361 |
+
0.858,
|
| 362 |
+
0.882,
|
| 363 |
+
0.92
|
| 364 |
+
],
|
| 365 |
+
"angle": 0,
|
| 366 |
+
"content": "In this section, we introduce the Self-Constructed Context Decomposition method and Fine-grained Alignment Enhancement fine-tuning. Figures 2 and 3 illustrate the methods."
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "page_number",
|
| 370 |
+
"bbox": [
|
| 371 |
+
0.481,
|
| 372 |
+
0.929,
|
| 373 |
+
0.521,
|
| 374 |
+
0.941
|
| 375 |
+
],
|
| 376 |
+
"angle": 0,
|
| 377 |
+
"content": "6604"
|
| 378 |
+
}
|
| 379 |
+
],
|
| 380 |
+
[
|
| 381 |
+
{
|
| 382 |
+
"type": "image",
|
| 383 |
+
"bbox": [
|
| 384 |
+
0.116,
|
| 385 |
+
0.082,
|
| 386 |
+
0.489,
|
| 387 |
+
0.358
|
| 388 |
+
],
|
| 389 |
+
"angle": 0,
|
| 390 |
+
"content": null
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "image_caption",
|
| 394 |
+
"bbox": [
|
| 395 |
+
0.113,
|
| 396 |
+
0.366,
|
| 397 |
+
0.49,
|
| 398 |
+
0.438
|
| 399 |
+
],
|
| 400 |
+
"angle": 0,
|
| 401 |
+
"content": "Figure 2: The pipeline for Self-Constructed Context Decomposition operates as follows: when the LLM decomposes and generates compilable code, we compile this code to construct the context, and then use it to decompile the initial assembly code again."
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "title",
|
| 405 |
+
"bbox": [
|
| 406 |
+
0.114,
|
| 407 |
+
0.462,
|
| 408 |
+
0.48,
|
| 409 |
+
0.478
|
| 410 |
+
],
|
| 411 |
+
"angle": 0,
|
| 412 |
+
"content": "3.1 Self-Constructed Context Decomposition"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"bbox": [
|
| 417 |
+
0.113,
|
| 418 |
+
0.483,
|
| 419 |
+
0.489,
|
| 420 |
+
0.595
|
| 421 |
+
],
|
| 422 |
+
"angle": 0,
|
| 423 |
+
"content": "In this section, we introduce the Self-Constructed Context Decomposition (sc²dec) method designed to enhance the performance of decomposition models. The method recombines the decomposed code generated by the model to construct the context. The sc²dec method involves the following key steps, as the Figure 2 shows:"
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"bbox": [
|
| 428 |
+
0.13,
|
| 429 |
+
0.606,
|
| 430 |
+
0.489,
|
| 431 |
+
0.669
|
| 432 |
+
],
|
| 433 |
+
"angle": 0,
|
| 434 |
+
"content": "1. Decompile: Initially, the model decomposes the assembly code back to the target programming language. We call it the initial decomposition result."
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"bbox": [
|
| 439 |
+
0.129,
|
| 440 |
+
0.67,
|
| 441 |
+
0.489,
|
| 442 |
+
0.734
|
| 443 |
+
],
|
| 444 |
+
"angle": 0,
|
| 445 |
+
"content": "2. Compile and Disassembly: Then we recompile the initial decomposition result to obtain the corresponding assembly code if the generated code is compileable."
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"bbox": [
|
| 450 |
+
0.129,
|
| 451 |
+
0.735,
|
| 452 |
+
0.489,
|
| 453 |
+
0.798
|
| 454 |
+
],
|
| 455 |
+
"angle": 0,
|
| 456 |
+
"content": "3. Constructed Context: The self-constructed context is then formed by concatenating the generated C code with its corresponding assembly code."
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"bbox": [
|
| 461 |
+
0.129,
|
| 462 |
+
0.799,
|
| 463 |
+
0.488,
|
| 464 |
+
0.831
|
| 465 |
+
],
|
| 466 |
+
"angle": 0,
|
| 467 |
+
"content": "4. Decompile Again: Decompile the assembly code with the self-constructed context again."
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "list",
|
| 471 |
+
"bbox": [
|
| 472 |
+
0.129,
|
| 473 |
+
0.606,
|
| 474 |
+
0.489,
|
| 475 |
+
0.831
|
| 476 |
+
],
|
| 477 |
+
"angle": 0,
|
| 478 |
+
"content": null
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"bbox": [
|
| 483 |
+
0.113,
|
| 484 |
+
0.842,
|
| 485 |
+
0.49,
|
| 486 |
+
0.922
|
| 487 |
+
],
|
| 488 |
+
"angle": 0,
|
| 489 |
+
"content": "In this context, the assembly code precedes the C code, resembling an example in the context. The final input to the model is a concatenation of the self-constructed context (with assembly code first and C code second) and the original assembly code. This"
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "image",
|
| 493 |
+
"bbox": [
|
| 494 |
+
0.532,
|
| 495 |
+
0.084,
|
| 496 |
+
0.863,
|
| 497 |
+
0.421
|
| 498 |
+
],
|
| 499 |
+
"angle": 0,
|
| 500 |
+
"content": null
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "image_caption",
|
| 504 |
+
"bbox": [
|
| 505 |
+
0.508,
|
| 506 |
+
0.43,
|
| 507 |
+
0.885,
|
| 508 |
+
0.515
|
| 509 |
+
],
|
| 510 |
+
"angle": 0,
|
| 511 |
+
"content": "Figure 3: An example of step-by-step decomposition is presented, where the training objective requires the model to generate C code progressively after each assembly block. Fine-tuning the model with this objective aids in learning the fine-grained correspondences between assembly and C code."
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"bbox": [
|
| 516 |
+
0.508,
|
| 517 |
+
0.541,
|
| 518 |
+
0.884,
|
| 519 |
+
0.604
|
| 520 |
+
],
|
| 521 |
+
"angle": 0,
|
| 522 |
+
"content": "method leverages the additional context provided by the generated C code and its corresponding assembly code to improve the overall decompilation performance."
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "title",
|
| 526 |
+
"bbox": [
|
| 527 |
+
0.509,
|
| 528 |
+
0.616,
|
| 529 |
+
0.857,
|
| 530 |
+
0.631
|
| 531 |
+
],
|
| 532 |
+
"angle": 0,
|
| 533 |
+
"content": "3.2 Fine-grained Alignment Enhancement"
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"bbox": [
|
| 538 |
+
0.507,
|
| 539 |
+
0.637,
|
| 540 |
+
0.885,
|
| 541 |
+
0.797
|
| 542 |
+
],
|
| 543 |
+
"angle": 0,
|
| 544 |
+
"content": "To enhance the model's ability to perceive the correspondence between assembly code and its corresponding source code, we propose a Fine-grained Alignment Enhancement (FAE) method, which constructs fine-grained alignment data between assembly code and source code derived from debug information. The method primarily includes two training objectives: the End-to-end Decomposition Objective and the Step-by-Step Decomposition Objective."
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"bbox": [
|
| 549 |
+
0.532,
|
| 550 |
+
0.809,
|
| 551 |
+
0.885,
|
| 552 |
+
0.922
|
| 553 |
+
],
|
| 554 |
+
"angle": 0,
|
| 555 |
+
"content": "- End-to-end Decomposition Objective: In the end-to-end decomposition task, the model takes assembly code as input and directly generates the corresponding decomposed C code. The goal of this task is to enable the model to translate from assembly language to C language without any intermediate steps. This ob"
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "page_number",
|
| 559 |
+
"bbox": [
|
| 560 |
+
0.481,
|
| 561 |
+
0.929,
|
| 562 |
+
0.52,
|
| 563 |
+
0.941
|
| 564 |
+
],
|
| 565 |
+
"angle": 0,
|
| 566 |
+
"content": "6605"
|
| 567 |
+
}
|
| 568 |
+
],
|
| 569 |
+
[
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"bbox": [
|
| 573 |
+
0.149,
|
| 574 |
+
0.085,
|
| 575 |
+
0.488,
|
| 576 |
+
0.165
|
| 577 |
+
],
|
| 578 |
+
"angle": 0,
|
| 579 |
+
"content": "jective aims to prevent catastrophic forgetting in the model. During training, we increase the context length and ensure that the same sample is not truncated, which enhances the model's ability to align assembly and C code."
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"bbox": [
|
| 584 |
+
0.137,
|
| 585 |
+
0.167,
|
| 586 |
+
0.49,
|
| 587 |
+
0.391
|
| 588 |
+
],
|
| 589 |
+
"angle": 0,
|
| 590 |
+
"content": "- Step-by-step Decomposition Objective: As the Figure 3 shows, in the step-by-step decomposition process, an intermediate form containing both the assembly code and the corresponding C code is first generated, followed by the generation of the complete C code. This step-by-step approach allows the model to better understand the correspondence between assembly code and C code. Training the model with the step-by-step decomposition objective can enhance the model's ability to finely align assembly code with C code. It is important to note that this form is used only during training and not during inference."
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"bbox": [
|
| 595 |
+
0.113,
|
| 596 |
+
0.402,
|
| 597 |
+
0.49,
|
| 598 |
+
0.497
|
| 599 |
+
],
|
| 600 |
+
"angle": 0,
|
| 601 |
+
"content": "During the training process, we employed two different training objectives to enhance the model's decompile performance: an end-to-end decompile objective and a step-by-step decompile objective. They all take assembly code as input, but their output formats are different."
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "title",
|
| 605 |
+
"bbox": [
|
| 606 |
+
0.114,
|
| 607 |
+
0.507,
|
| 608 |
+
0.303,
|
| 609 |
+
0.523
|
| 610 |
+
],
|
| 611 |
+
"angle": 0,
|
| 612 |
+
"content": "3.2.1 Data Processing"
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"bbox": [
|
| 617 |
+
0.113,
|
| 618 |
+
0.525,
|
| 619 |
+
0.49,
|
| 620 |
+
0.622
|
| 621 |
+
],
|
| 622 |
+
"angle": 0,
|
| 623 |
+
"content": "By following the steps below, we can synthesize some fine-grained alignment training data. The synthesized data, as shown in Figure 3, is in a format of interleaved assembly and code output. We expect the model to learn finer-grained alignment between assembly and code from such data."
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"bbox": [
|
| 628 |
+
0.131,
|
| 629 |
+
0.632,
|
| 630 |
+
0.49,
|
| 631 |
+
0.793
|
| 632 |
+
],
|
| 633 |
+
"angle": 0,
|
| 634 |
+
"content": "1. Compilation: We employed the \"gcc\" compiler to compile the selected function code into binary shared libraries at various optimization levels (including O0, O1, O2, and O3). The debug option was enabled during compilation to ensure the inclusion of DWARF debugging information in the compiled output. This debugging information is crucial for subsequent disassembly and parsing steps."
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "text",
|
| 638 |
+
"bbox": [
|
| 639 |
+
0.129,
|
| 640 |
+
0.794,
|
| 641 |
+
0.49,
|
| 642 |
+
0.922
|
| 643 |
+
],
|
| 644 |
+
"angle": 0,
|
| 645 |
+
"content": "2. Disassembly: Subsequently, we used the \"objdump\" tool to disassemble the compiled binary shared libraries. The \"-S\" option was utilized to include source code in the disassembly output. Additionally, we used the \"-source/comment=;,\" option toptides each line of source code with a \";,\" symbol, facilitating easier parsing in later stages."
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"bbox": [
|
| 650 |
+
0.524,
|
| 651 |
+
0.085,
|
| 652 |
+
0.885,
|
| 653 |
+
0.213
|
| 654 |
+
],
|
| 655 |
+
"angle": 0,
|
| 656 |
+
"content": "3. Data Parsing: The disassembly process yielded a mixed output containing both assembly code and source code, organized in an alternating sequence of source code followed by assembly code. We parsed the output to extract the corresponding assembly and source code for each function, ensuring accurate alignment between the two."
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"bbox": [
|
| 661 |
+
0.524,
|
| 662 |
+
0.214,
|
| 663 |
+
0.885,
|
| 664 |
+
0.278
|
| 665 |
+
],
|
| 666 |
+
"angle": 0,
|
| 667 |
+
"content": "4. Data Reorganization: Finally, we reorganized the parsed content into a format where the assembly code precedes the corresponding source code in an alternating sequence."
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "list",
|
| 671 |
+
"bbox": [
|
| 672 |
+
0.524,
|
| 673 |
+
0.085,
|
| 674 |
+
0.885,
|
| 675 |
+
0.278
|
| 676 |
+
],
|
| 677 |
+
"angle": 0,
|
| 678 |
+
"content": null
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"bbox": [
|
| 683 |
+
0.508,
|
| 684 |
+
0.29,
|
| 685 |
+
0.885,
|
| 686 |
+
0.403
|
| 687 |
+
],
|
| 688 |
+
"angle": 0,
|
| 689 |
+
"content": "Through these steps, we constructed a high-quality training dataset that ensures each sample contains comprehensive source code information along with the corresponding assembly code. This dataset will be used to train our model, aiming to enhance its performance in tasks such as code understanding and compilation optimization."
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "title",
|
| 693 |
+
"bbox": [
|
| 694 |
+
0.509,
|
| 695 |
+
0.414,
|
| 696 |
+
0.656,
|
| 697 |
+
0.431
|
| 698 |
+
],
|
| 699 |
+
"angle": 0,
|
| 700 |
+
"content": "4 Experiments"
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "title",
|
| 704 |
+
"bbox": [
|
| 705 |
+
0.509,
|
| 706 |
+
0.439,
|
| 707 |
+
0.642,
|
| 708 |
+
0.453
|
| 709 |
+
],
|
| 710 |
+
"angle": 0,
|
| 711 |
+
"content": "4.1 Evaluation"
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"bbox": [
|
| 716 |
+
0.508,
|
| 717 |
+
0.46,
|
| 718 |
+
0.883,
|
| 719 |
+
0.54
|
| 720 |
+
],
|
| 721 |
+
"angle": 0,
|
| 722 |
+
"content": "In this section, we will introduce the benchmark used in our evaluation process, Decompile-Eval (Tan et al., 2024), which is specifically designed to assess the decompilation capabilities of large language models."
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"bbox": [
|
| 727 |
+
0.508,
|
| 728 |
+
0.54,
|
| 729 |
+
0.884,
|
| 730 |
+
0.701
|
| 731 |
+
],
|
| 732 |
+
"angle": 0,
|
| 733 |
+
"content": "The Decompile-Eval benchmark is adapted from the HumanEval benchmark, which includes 164 problems initially designed for code generation tasks. These problems were translated into the C programming language, and the corresponding assembly code was generated at four optimization levels (O0, O1, O2, and O3). The correctness of the decomposition results was tested using the test cases from HumanEval. The primary metrics of the Decompile-Eval benchmark are as follows:"
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"bbox": [
|
| 738 |
+
0.532,
|
| 739 |
+
0.713,
|
| 740 |
+
0.885,
|
| 741 |
+
0.84
|
| 742 |
+
],
|
| 743 |
+
"angle": 0,
|
| 744 |
+
"content": "- Re-compilability: This metric evaluates whether the decompiled code produced by our model can be successfully recompiled into executable binary without errors. A high recompiliability rate indicates that the decompiled code is syntactically correct and adheres to the constraints of the target language (in this case, C)."
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"bbox": [
|
| 749 |
+
0.532,
|
| 750 |
+
0.842,
|
| 751 |
+
0.887,
|
| 752 |
+
0.922
|
| 753 |
+
],
|
| 754 |
+
"angle": 0,
|
| 755 |
+
"content": "- Re-executability: This metric assesses the functional correctness of the decompiled code. Specifically, it measures whether the recom-piled binaries produce the expected outputs when executed. The correctness of the output"
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "list",
|
| 759 |
+
"bbox": [
|
| 760 |
+
0.532,
|
| 761 |
+
0.713,
|
| 762 |
+
0.887,
|
| 763 |
+
0.922
|
| 764 |
+
],
|
| 765 |
+
"angle": 0,
|
| 766 |
+
"content": null
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "page_number",
|
| 770 |
+
"bbox": [
|
| 771 |
+
0.481,
|
| 772 |
+
0.929,
|
| 773 |
+
0.522,
|
| 774 |
+
0.941
|
| 775 |
+
],
|
| 776 |
+
"angle": 0,
|
| 777 |
+
"content": "6606"
|
| 778 |
+
}
|
| 779 |
+
],
|
| 780 |
+
[
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"bbox": [
|
| 784 |
+
0.15,
|
| 785 |
+
0.085,
|
| 786 |
+
0.49,
|
| 787 |
+
0.15
|
| 788 |
+
],
|
| 789 |
+
"angle": 0,
|
| 790 |
+
"content": "is determined using the testing methodology provided by the HumanEval dataset, ensuring a comprehensive evaluation of the logical accuracy of the decompiled code."
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"bbox": [
|
| 795 |
+
0.114,
|
| 796 |
+
0.167,
|
| 797 |
+
0.489,
|
| 798 |
+
0.215
|
| 799 |
+
],
|
| 800 |
+
"angle": 0,
|
| 801 |
+
"content": "In our experiment, we pay more attention to the Re-executability, as it more accurately reflects the overall decompilation capability of the model."
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "title",
|
| 805 |
+
"bbox": [
|
| 806 |
+
0.114,
|
| 807 |
+
0.23,
|
| 808 |
+
0.289,
|
| 809 |
+
0.244
|
| 810 |
+
],
|
| 811 |
+
"angle": 0,
|
| 812 |
+
"content": "4.2 Training Details"
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"bbox": [
|
| 817 |
+
0.113,
|
| 818 |
+
0.252,
|
| 819 |
+
0.49,
|
| 820 |
+
0.478
|
| 821 |
+
],
|
| 822 |
+
"angle": 0,
|
| 823 |
+
"content": "Implementation We utilize Lora (Hu et al., 2022) to fine-tune the llm4decompile-6.7b obtained on Hugging Face (Wolf et al., 2019), with rank set to 32, alpha set to 64 and target set to all projection layers \\(^{1}\\). The optimizer is AdamW (Loshchilov and Hutter, 2019), with a learning rate of 5e-5. The maximum sequence length is set to 16384, and the learning rate scheduler type is cosine, with a warm-up period of 20 steps. The training process was conducted for one epoch. LlamaFactory (Zheng et al., 2024) and FlashAttention 2 (Dao, 2024) were used for the fine-tuning of the model. All experiments were done with an A100-SXM4-80GB. We use greedy decoding for all experiments."
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "text",
|
| 827 |
+
"bbox": [
|
| 828 |
+
0.113,
|
| 829 |
+
0.49,
|
| 830 |
+
0.49,
|
| 831 |
+
0.603
|
| 832 |
+
],
|
| 833 |
+
"angle": 0,
|
| 834 |
+
"content": "Training data We selected 10,000 samples from the train_real_compilable subset of Exebench (Armengol-Estapé et al., 2022) to synthesis the training data. The selected functions exclusively utilize the standard C library and do not include additional data structures. The training data were synthesized with gcc 11.4 provided by Ubuntu 22.04."
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "title",
|
| 838 |
+
"bbox": [
|
| 839 |
+
0.114,
|
| 840 |
+
0.618,
|
| 841 |
+
0.235,
|
| 842 |
+
0.632
|
| 843 |
+
],
|
| 844 |
+
"angle": 0,
|
| 845 |
+
"content": "4.3 Baselines"
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"bbox": [
|
| 850 |
+
0.113,
|
| 851 |
+
0.641,
|
| 852 |
+
0.489,
|
| 853 |
+
0.687
|
| 854 |
+
],
|
| 855 |
+
"angle": 0,
|
| 856 |
+
"content": "We present several baselines in our experiments and demonstrate the effectiveness of our proposed methods."
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "title",
|
| 860 |
+
"bbox": [
|
| 861 |
+
0.114,
|
| 862 |
+
0.702,
|
| 863 |
+
0.233,
|
| 864 |
+
0.715
|
| 865 |
+
],
|
| 866 |
+
"angle": 0,
|
| 867 |
+
"content": "4.3.1 Models"
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"bbox": [
|
| 872 |
+
0.137,
|
| 873 |
+
0.722,
|
| 874 |
+
0.489,
|
| 875 |
+
0.784
|
| 876 |
+
],
|
| 877 |
+
"angle": 0,
|
| 878 |
+
"content": "- GPT 4: One of the most powerful OpenAI models, known for its advanced language understanding and generation capabilities (OpenAI, 2023)."
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"bbox": [
|
| 883 |
+
0.137,
|
| 884 |
+
0.787,
|
| 885 |
+
0.489,
|
| 886 |
+
0.849
|
| 887 |
+
],
|
| 888 |
+
"angle": 0,
|
| 889 |
+
"content": "- deepseek-chat: A powerful conversational AI model from DeepSeek, excelling in generating coherent and contextually relevant dialogues (DeepSeek-AI, 2024)."
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "text",
|
| 893 |
+
"bbox": [
|
| 894 |
+
0.137,
|
| 895 |
+
0.851,
|
| 896 |
+
0.488,
|
| 897 |
+
0.882
|
| 898 |
+
],
|
| 899 |
+
"angle": 0,
|
| 900 |
+
"content": "- llm4decompile-6.7b: The 6.7B open-access decomposition LLM pre-trained on 15 billion"
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "list",
|
| 904 |
+
"bbox": [
|
| 905 |
+
0.137,
|
| 906 |
+
0.722,
|
| 907 |
+
0.489,
|
| 908 |
+
0.882
|
| 909 |
+
],
|
| 910 |
+
"angle": 0,
|
| 911 |
+
"content": null
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "page_footnote",
|
| 915 |
+
"bbox": [
|
| 916 |
+
0.114,
|
| 917 |
+
0.895,
|
| 918 |
+
0.489,
|
| 919 |
+
0.922
|
| 920 |
+
],
|
| 921 |
+
"angle": 0,
|
| 922 |
+
"content": "\\(^{1}\\)q_Proj, k_Proj, v_Proj, o_Proj, gate_Proj, up_Proj, down_Proj"
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "code",
|
| 926 |
+
"bbox": [
|
| 927 |
+
0.518,
|
| 928 |
+
0.085,
|
| 929 |
+
0.856,
|
| 930 |
+
0.226
|
| 931 |
+
],
|
| 932 |
+
"angle": 0,
|
| 933 |
+
"content": "bool func0(int num){ if (num <= 1) { return false; } for (int i = 2; i * i <= num; i++) { if (num % i == 0) { return false; } } return true; }"
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "image_caption",
|
| 937 |
+
"bbox": [
|
| 938 |
+
0.508,
|
| 939 |
+
0.24,
|
| 940 |
+
0.883,
|
| 941 |
+
0.313
|
| 942 |
+
],
|
| 943 |
+
"angle": 0,
|
| 944 |
+
"content": "Figure 4: The example for 1-shot learning. In this example, we have tried to cover common control logic such as if statements, loops, and early returns as much as possible. The example will be compiled with the same optimization level as the target assembly code."
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"bbox": [
|
| 949 |
+
0.545,
|
| 950 |
+
0.338,
|
| 951 |
+
0.882,
|
| 952 |
+
0.369
|
| 953 |
+
],
|
| 954 |
+
"angle": 0,
|
| 955 |
+
"content": "tokens of C source code and the corresponding assembly code (Tan et al., 2024)\\(^2\\)."
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"bbox": [
|
| 960 |
+
0.532,
|
| 961 |
+
0.37,
|
| 962 |
+
0.884,
|
| 963 |
+
0.448
|
| 964 |
+
],
|
| 965 |
+
"angle": 0,
|
| 966 |
+
"content": "- llm4decompile-6.7b+FAE: The new model was obtained by applying the Fine-grained Alignment Enhancement method for further fine-tuning based on the llm4decompile-6.7b\\(^2\\)."
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "title",
|
| 970 |
+
"bbox": [
|
| 971 |
+
0.51,
|
| 972 |
+
0.463,
|
| 973 |
+
0.64,
|
| 974 |
+
0.477
|
| 975 |
+
],
|
| 976 |
+
"angle": 0,
|
| 977 |
+
"content": "4.3.2 Methods"
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"bbox": [
|
| 982 |
+
0.532,
|
| 983 |
+
0.481,
|
| 984 |
+
0.882,
|
| 985 |
+
0.513
|
| 986 |
+
],
|
| 987 |
+
"angle": 0,
|
| 988 |
+
"content": "- vanilla: Using specific prompts for different models to directly request decomposition."
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "code_caption",
|
| 992 |
+
"bbox": [
|
| 993 |
+
0.574,
|
| 994 |
+
0.525,
|
| 995 |
+
0.856,
|
| 996 |
+
0.54
|
| 997 |
+
],
|
| 998 |
+
"angle": 0,
|
| 999 |
+
"content": "Prompt For GPT-4 and Deepseek Chat"
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "code",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
0.572,
|
| 1005 |
+
0.553,
|
| 1006 |
+
0.836,
|
| 1007 |
+
0.627
|
| 1008 |
+
],
|
| 1009 |
+
"angle": 0,
|
| 1010 |
+
"content": "What is the C source code of \\(\\leftrightarrow\\) the assembly code below: ..asm <asm>"
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "code_caption",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
0.574,
|
| 1016 |
+
0.657,
|
| 1017 |
+
0.777,
|
| 1018 |
+
0.672
|
| 1019 |
+
],
|
| 1020 |
+
"angle": 0,
|
| 1021 |
+
"content": "Prompt For 1lm4decompile"
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "code",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
0.573,
|
| 1027 |
+
0.686,
|
| 1028 |
+
0.832,
|
| 1029 |
+
0.716
|
| 1030 |
+
],
|
| 1031 |
+
"angle": 0,
|
| 1032 |
+
"content": "This is the assembly code: <asm>"
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "code",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
0.574,
|
| 1038 |
+
0.734,
|
| 1039 |
+
0.816,
|
| 1040 |
+
0.749
|
| 1041 |
+
],
|
| 1042 |
+
"angle": 0,
|
| 1043 |
+
"content": "What is the source code?"
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
0.532,
|
| 1049 |
+
0.77,
|
| 1050 |
+
0.885,
|
| 1051 |
+
0.899
|
| 1052 |
+
],
|
| 1053 |
+
"angle": 0,
|
| 1054 |
+
"content": "- 1-shot: We write a fixed example as the context (Brown et al., 2020). The example will be compiled with the same optimization level as the target assembly code. The example shown in Figure 4. In this example, we have tried to cover common control logic such as if statements, loops, and early returns as much as possible."
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "page_footnote",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
0.531,
|
| 1060 |
+
0.907,
|
| 1061 |
+
0.854,
|
| 1062 |
+
0.921
|
| 1063 |
+
],
|
| 1064 |
+
"angle": 0,
|
| 1065 |
+
"content": "2We use the latest version, llm4decompile-6.7b-v1.5."
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "page_number",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
0.481,
|
| 1071 |
+
0.928,
|
| 1072 |
+
0.521,
|
| 1073 |
+
0.941
|
| 1074 |
+
],
|
| 1075 |
+
"angle": 0,
|
| 1076 |
+
"content": "6607"
|
| 1077 |
+
}
|
| 1078 |
+
],
|
| 1079 |
+
[
|
| 1080 |
+
{
|
| 1081 |
+
"type": "table",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
0.115,
|
| 1084 |
+
0.082,
|
| 1085 |
+
0.885,
|
| 1086 |
+
0.502
|
| 1087 |
+
],
|
| 1088 |
+
"angle": 0,
|
| 1089 |
+
"content": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td colspan=\"11\">GPT-4 (OpenAI, 2023)</td></tr><tr><td>vanilla</td><td>76.83</td><td>67.68</td><td>67.07</td><td>57.93</td><td>67.38</td><td>20.73</td><td>13.41</td><td>13.41</td><td>10.98</td><td>14.63</td></tr><tr><td>+sc2dec</td><td>76.22</td><td>67.03</td><td>65.24</td><td>56.10</td><td>66.15</td><td>32.93</td><td>20.12</td><td>19.51</td><td>13.41</td><td>21.49</td></tr><tr><td>1-shot</td><td>76.22</td><td>78.05</td><td>73.78</td><td>70.73</td><td>74.70</td><td>31.71</td><td>20.12</td><td>19.51</td><td>21.34</td><td>23.17</td></tr><tr><td>+sc2dec</td><td>74.39</td><td>76.22</td><td>71.95</td><td>68.90</td><td>72.87</td><td>40.24</td><td>25.61</td><td>23.78</td><td>23.17</td><td>28.20</td></tr><tr><td colspan=\"11\">Deepseek Chat (DeepSeek-AI, 2024)</td></tr><tr><td>vanilla</td><td>62.20</td><td>51.83</td><td>47.56</td><td>45.73</td><td>51.83</td><td>10.37</td><td>5.49</td><td>4.88</td><td>5.49</td><td>6.55</td></tr><tr><td>+sc2dec</td><td>57.93</td><td>50.00</td><td>46.95</td><td>45.12</td><td>50.00</td><td>13.41</td><td>6.71</td><td>6.71</td><td>7.32</td><td>8.54</td></tr><tr><td>1-shot</td><td>67.68</td><td>70.73</td><td>64.63</td><td>56.71</td><td>64.94</td><td>13.41</td><td>10.37</td><td>7.93</td><td>7.32</td><td>9.76</td></tr><tr><td>+sc2dec</td><td>65.85</td><td>70.12</td><td>62.20</td><td>53.66</td><td>62.96</td><td>17.68</td><td>11.59</td><td>10.37</td><td>9.15</td><td>12.20</td></tr><tr><td colspan=\"11\">llm4decompile-6.7b (Tan et al., 2024)</td></tr><tr><td>vanilla</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>92.68</td><td>92.80</td><td>90.12</td><td>93.41</td><td>92.26</td><td>71.34</td><td>47.56</td><td>45.98</td><td>41.71</td><td>51.65</td></tr><tr><td>1-shot</td><td>93.05</td><td>93.29</td><td>90.98</td><td>93.90</td><td>92.80</td><td>70.37</td><td>44.88</td><td>41.46</td><td>37.68</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>93.05</td><td>92.68</td><td>90.37</td><td>93.29</td><td>92.35</td><td>71.59</td><td>47.20</td><td>46.34</td><td>41.46</td><td>51.65</td></tr><tr><td>retrieval</td><td>94.02</td><td>88.05</td><td>84.51</td><td>85.12</td><td>87.93</td><td>65.73</td><td>32.68</td><td>38.66</td><td>36.22</td><td>43.32</td></tr><tr><td colspan=\"11\">llm4decompile-6.7b + FAE</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr></table>"
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "table_caption",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
0.113,
|
| 1095 |
+
0.511,
|
| 1096 |
+
0.884,
|
| 1097 |
+
0.556
|
| 1098 |
+
],
|
| 1099 |
+
"angle": 0,
|
| 1100 |
+
"content": "Table 1: The main results of different methods across four optimization levels (O0, O1, O2, O3), as well as their average scores (AVG). The results in bold represent the optimal performance, while those underlined indicate the second-best performance. More results can be found in the Table 5."
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
0.137,
|
| 1106 |
+
0.58,
|
| 1107 |
+
0.487,
|
| 1108 |
+
0.643
|
| 1109 |
+
],
|
| 1110 |
+
"angle": 0,
|
| 1111 |
+
"content": "- retrieval: We use the retrieval method (BM25 (Lù, 2024)) to get the context. The context is generated by searching for the most similar assembly code in the training set."
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
0.137,
|
| 1117 |
+
0.644,
|
| 1118 |
+
0.488,
|
| 1119 |
+
0.675
|
| 1120 |
+
],
|
| 1121 |
+
"angle": 0,
|
| 1122 |
+
"content": "- \\(\\mathbf{sc}^2\\mathbf{dec}\\): The self-constructed context decomposition we described in the Section 3.1."
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
0.137,
|
| 1128 |
+
0.676,
|
| 1129 |
+
0.488,
|
| 1130 |
+
0.74
|
| 1131 |
+
],
|
| 1132 |
+
"angle": 0,
|
| 1133 |
+
"content": "- 1-shot+sc²dec: We apply the sc²dec on the 1-shot method. Note that the 1-shot example can only be applied to generate the initial decomposition result in Figure 2."
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "list",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
0.137,
|
| 1139 |
+
0.58,
|
| 1140 |
+
0.488,
|
| 1141 |
+
0.74
|
| 1142 |
+
],
|
| 1143 |
+
"angle": 0,
|
| 1144 |
+
"content": null
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "title",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
0.115,
|
| 1150 |
+
0.764,
|
| 1151 |
+
0.22,
|
| 1152 |
+
0.779
|
| 1153 |
+
],
|
| 1154 |
+
"angle": 0,
|
| 1155 |
+
"content": "4.4 Results"
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
0.113,
|
| 1161 |
+
0.785,
|
| 1162 |
+
0.49,
|
| 1163 |
+
0.88
|
| 1164 |
+
],
|
| 1165 |
+
"angle": 0,
|
| 1166 |
+
"content": "In this section, we present and analyze the performance of different models. Our experiments aim to evaluate the impact of various techniques, including one-shot, self-constructed context decomposition, and fine-tuning, on the model's performance. The main results are shown in Table 1."
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
0.114,
|
| 1172 |
+
0.89,
|
| 1173 |
+
0.49,
|
| 1174 |
+
0.922
|
| 1175 |
+
],
|
| 1176 |
+
"angle": 0,
|
| 1177 |
+
"content": "Performance of the Base Model Through a comparative analysis of the experimental results in Ta"
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
0.508,
|
| 1183 |
+
0.58,
|
| 1184 |
+
0.885,
|
| 1185 |
+
0.789
|
| 1186 |
+
],
|
| 1187 |
+
"angle": 0,
|
| 1188 |
+
"content": "ble 1, it is evident that different models exhibit significant differences in re-executability across various optimization levels (O0, O1, O2, O3). The base model, llm4decompile-6.7b, performs best at the O0 optimization level with a score of \\(70.24\\%\\), but its performance gradually declines at other optimization levels, with an average score of \\(48.60\\%\\). Among models not fine-tuned with decompilation tasks, GPT-4 achieved the best performance, with an average re-executability score of \\(14.64\\%\\). Generally, their results on re-compilability metrics are significantly higher than their performance on re-executability metrics."
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
0.508,
|
| 1194 |
+
0.809,
|
| 1195 |
+
0.885,
|
| 1196 |
+
0.922
|
| 1197 |
+
],
|
| 1198 |
+
"angle": 0,
|
| 1199 |
+
"content": "Context Sensitivity By comparing vanilla, 1-shot, and retrieval methods based on the llm4decompile-6.7b, it is observed that the model's performance can even decline after providing a sample. In contrast, the dynamic samples generated through our self-constructed context method yield an improvement in executability of over \\(2\\%\\)"
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "page_number",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
0.481,
|
| 1205 |
+
0.929,
|
| 1206 |
+
0.521,
|
| 1207 |
+
0.941
|
| 1208 |
+
],
|
| 1209 |
+
"angle": 0,
|
| 1210 |
+
"content": "6608"
|
| 1211 |
+
}
|
| 1212 |
+
],
|
| 1213 |
+
[
|
| 1214 |
+
{
|
| 1215 |
+
"type": "table",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
0.116,
|
| 1218 |
+
0.082,
|
| 1219 |
+
0.885,
|
| 1220 |
+
0.228
|
| 1221 |
+
],
|
| 1222 |
+
"angle": 0,
|
| 1223 |
+
"content": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>sc2dec (O0)</td><td>92.68</td><td>92.20</td><td>91.71</td><td>92.32</td><td>92.23</td><td>70.24</td><td>48.90</td><td>47.68</td><td>42.93</td><td>51.83</td></tr><tr><td>sc2dec (O1)</td><td>92.68</td><td>91.59</td><td>93.54</td><td>92.93</td><td>92.68</td><td>68.41</td><td>48.54</td><td>47.44</td><td>43.05</td><td>51.86</td></tr><tr><td>sc2dec (O2)</td><td>92.68</td><td>92.20</td><td>91.71</td><td>92.32</td><td>92.23</td><td>67.80</td><td>48.90</td><td>47.68</td><td>42.93</td><td>51.68</td></tr><tr><td>sc2dec (O3)</td><td>92.68</td><td>91.59</td><td>92.93</td><td>92.32</td><td>92.38</td><td>67.80</td><td>47.07</td><td>47.80</td><td>43.41</td><td>51.52</td></tr></table>"
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "table_caption",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
0.113,
|
| 1229 |
+
0.236,
|
| 1230 |
+
0.884,
|
| 1231 |
+
0.281
|
| 1232 |
+
],
|
| 1233 |
+
"angle": 0,
|
| 1234 |
+
"content": "Table 2: The results of our method across optimization levels. For cases such as \"sc²dec (O0)\", we assume that the optimization level of asm code is entirely unknown and select a specific optimization level to compile the code to construct the context."
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "code",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
0.125,
|
| 1240 |
+
0.303,
|
| 1241 |
+
0.482,
|
| 1242 |
+
0.621
|
| 1243 |
+
],
|
| 1244 |
+
"angle": 0,
|
| 1245 |
+
"content": "int func0(int a){ for (int i = 0; i * i * i <= abs(a); i++) if (i * i * i == abs(a)) return 1; return 0; } Source code \nint func0(int n){ int i; if \\((n < 0)\\) n \\(=\\) -n; for \\((\\mathrm{i} = 1;\\mathrm{i}\\ast \\mathrm{i}\\ast \\mathrm{i} < = \\mathrm{n};\\mathrm{i} + + )\\) if \\((i*\\bar{i}*i==n)\\) return 1; return 0; } Decompile \nint func0(int n){ int i; if \\((n < 0)\\) n \\(=\\) -n; if \\((n = = 0)\\) return 1; for \\((\\mathrm{i} = 1;\\mathrm{i}\\ast \\mathrm{i}\\ast \\mathrm{i} < = \\mathrm{n};\\mathrm{i} + + )\\) if \\((i*\\bar{i}*i==n)\\) return 1; return 0; } SC2Dec"
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "image_caption",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
0.114,
|
| 1251 |
+
0.634,
|
| 1252 |
+
0.49,
|
| 1253 |
+
0.693
|
| 1254 |
+
],
|
| 1255 |
+
"angle": 0,
|
| 1256 |
+
"content": "Figure 5: A case study for \\(\\mathrm{sc^2dec}\\), which is based on the llm4decompile-6.7b with FAE. By applying the \\(\\mathrm{sc^2dec}\\) method, the model detects and fixes the mismatch between the code and assembly."
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
0.113,
|
| 1262 |
+
0.718,
|
| 1263 |
+
0.49,
|
| 1264 |
+
0.799
|
| 1265 |
+
],
|
| 1266 |
+
"angle": 0,
|
| 1267 |
+
"content": "before and after fine-tuning. This indicates that inappropriate samples may even have a detrimental effect in the decompilation domain, while our method achieves a nearly stable performance enhancement without the need for retrieval."
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
0.113,
|
| 1273 |
+
0.809,
|
| 1274 |
+
0.49,
|
| 1275 |
+
0.922
|
| 1276 |
+
],
|
| 1277 |
+
"angle": 0,
|
| 1278 |
+
"content": "1-shot is a Strong Baseline As shown in Table 1, utilizing the 1-shot method significantly enhances the model's performance. Specifically, for GPT-4, the model's re-executability performance increased from \\(14.64\\%\\) to \\(23.17\\%\\), an approximate improvement of \\(7\\%\\). In the open-source model Deepseek Chat, performance improved from \\(6.55\\%\\) to \\(9.76\\%\\),"
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
0.508,
|
| 1284 |
+
0.305,
|
| 1285 |
+
0.885,
|
| 1286 |
+
0.435
|
| 1287 |
+
],
|
| 1288 |
+
"angle": 0,
|
| 1289 |
+
"content": "reflecting a \\(3.21\\%\\) enhancement. However, in the case of the llm4decompile model, which had already been trained on decompilation tasks, there was no performance improvement. Moreover, in the llm4decompile model fine-tuned with Fine-grained Alignment Enhancement, performance actually decreased from \\(50.88\\%\\) to \\(50.61\\%\\), a reduction of approximately \\(0.27\\%\\)."
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
0.508,
|
| 1295 |
+
0.445,
|
| 1296 |
+
0.885,
|
| 1297 |
+
0.766
|
| 1298 |
+
],
|
| 1299 |
+
"angle": 0,
|
| 1300 |
+
"content": "Sc2dec Brings Further Performance Improvement The Table 1 shows that applying sc2dec independently results in performance improvements of \\(6.86\\%\\) and \\(1.99\\%\\) on GPT-4 and Deepseek Chat, respectively. These improvements are lower than those achieved by the 1-shot method, likely due to the model's low Re-Compilability metric. In other words, a substantial portion of the code obtained through decompilation is un-compilable, which impedes the application of the sc2dec method. Furthermore, when combined with the 1-shot method, sc2dec can further enhance performance, achieving an additional \\(5\\%\\) improvement for GPT-4, bringing it to \\(28.20\\%\\), and a \\(2.44\\%\\) improvement for Deepseek Chat, bringing it to \\(12.20\\%\\). In the case of llm4decompile-6.7b, due to the models' relatively high Re-Compilability metric, the sc2dec method significantly outperformed the 1-shot method, increasing performance from \\(48.60\\%\\) to \\(51.65\\%\\) and from \\(50.88\\%\\) to \\(52.41\\%\\)."
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
0.508,
|
| 1306 |
+
0.777,
|
| 1307 |
+
0.887,
|
| 1308 |
+
0.922
|
| 1309 |
+
],
|
| 1310 |
+
"angle": 0,
|
| 1311 |
+
"content": "Best Performance with Combined Methods As the Table 1 shows, by combining our Step-by-Step Decompile tasks and context-based decomposition methods, we ultimately achieved approximately a \\(3.90\\%\\) performance improvement, surpassing the performance of these methods when applied independently. This demonstrates that fine-tuning and self-construct context methods are orthogonal. Most notably, the combined method of fined"
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "page_number",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
0.481,
|
| 1317 |
+
0.928,
|
| 1318 |
+
0.521,
|
| 1319 |
+
0.941
|
| 1320 |
+
],
|
| 1321 |
+
"angle": 0,
|
| 1322 |
+
"content": "6609"
|
| 1323 |
+
}
|
| 1324 |
+
],
|
| 1325 |
+
[
|
| 1326 |
+
{
|
| 1327 |
+
"type": "table",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
0.116,
|
| 1330 |
+
0.082,
|
| 1331 |
+
0.885,
|
| 1332 |
+
0.324
|
| 1333 |
+
],
|
| 1334 |
+
"angle": 0,
|
| 1335 |
+
"content": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>w/o tune</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td colspan=\"11\">FAE (End-to-End & Step-by-Step Decomposition Objective)</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr><tr><td colspan=\"11\">End-to-End Decomposition Objective</td></tr><tr><td>vanilla</td><td>93.9</td><td>90.61</td><td>90.61</td><td>91.34</td><td>91.62</td><td>69.51</td><td>43.29</td><td>42.2</td><td>40.73</td><td>48.93</td></tr><tr><td>+sc2dec</td><td>92.8</td><td>90.24</td><td>90.00</td><td>90.12</td><td>90.79</td><td>71.34</td><td>46.10</td><td>43.78</td><td>42.44</td><td>50.91</td></tr><tr><td>1-shot</td><td>93.9</td><td>90.73</td><td>90.37</td><td>91.22</td><td>91.55</td><td>69.51</td><td>44.02</td><td>42.68</td><td>40.61</td><td>49.21</td></tr><tr><td>+sc2dec</td><td>92.8</td><td>90.24</td><td>89.76</td><td>90.00</td><td>90.7</td><td>71.22</td><td>46.46</td><td>44.27</td><td>42.56</td><td>51.13</td></tr></table>"
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "table_caption",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
0.18,
|
| 1341 |
+
0.332,
|
| 1342 |
+
0.816,
|
| 1343 |
+
0.347
|
| 1344 |
+
],
|
| 1345 |
+
"angle": 0,
|
| 1346 |
+
"content": "Table 3: The results of ablation study. All results are based on the llm4decompile-6.7b model."
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"type": "text",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
0.113,
|
| 1352 |
+
0.372,
|
| 1353 |
+
0.49,
|
| 1354 |
+
0.468
|
| 1355 |
+
],
|
| 1356 |
+
"angle": 0,
|
| 1357 |
+
"content": "grained alignment enhancement and self-construct context decomposition achieves the highest scores across all optimization levels expect \"O0\", with scores of \\(48.54\\%\\), \\(47.56\\%\\), and \\(43.29\\%\\) at the O1, O2, and O3 levels, respectively, and an overall average score of \\(52.41\\%\\)."
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "title",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
0.114,
|
| 1363 |
+
0.48,
|
| 1364 |
+
0.229,
|
| 1365 |
+
0.496
|
| 1366 |
+
],
|
| 1367 |
+
"angle": 0,
|
| 1368 |
+
"content": "4.5 Analysis"
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
0.113,
|
| 1374 |
+
0.501,
|
| 1375 |
+
0.49,
|
| 1376 |
+
0.549
|
| 1377 |
+
],
|
| 1378 |
+
"angle": 0,
|
| 1379 |
+
"content": "In this section, we will further analyze the experimental results to study the effectiveness and sensitivity of our method:"
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
0.113,
|
| 1385 |
+
0.559,
|
| 1386 |
+
0.49,
|
| 1387 |
+
0.768
|
| 1388 |
+
],
|
| 1389 |
+
"angle": 0,
|
| 1390 |
+
"content": "Mismatched Optimization Levels Leads to Performance Degradation As the Table 2 shows, the performance can degrade by \\(1\\%\\) to \\(2\\%\\) overall when constructing contexts that mismatch the optimization levels of the target assembly code. However, specific optimization levels may exhibit different behaviors. For instance, using a fixed O3 optimization level to construct contexts while decompiling assembly optimized with O2 does not result in significant performance degradation and even better. In practical scenarios, using O3 to construct contexts for binaries with unknown optimization levels might be a reasonable choice."
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
0.113,
|
| 1396 |
+
0.777,
|
| 1397 |
+
0.49,
|
| 1398 |
+
0.922
|
| 1399 |
+
],
|
| 1400 |
+
"angle": 0,
|
| 1401 |
+
"content": "Case study of \\(\\mathbf{sc}^2\\mathbf{dec}\\) As the Figure 5 shows, the compiler has expanded the abs function, reducing the overhead of function calls. The model initially generated a piece of compilable but incorrect code during direct decompilation, omitting the case where the variable \\(n\\) equals 0. We compiled and disassembled this code to construct a new sample. By applying the \\(\\mathrm{sc^2dec}\\) method with the context, the model successfully identified the missing part"
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "text",
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
0.508,
|
| 1407 |
+
0.372,
|
| 1408 |
+
0.885,
|
| 1409 |
+
0.42
|
| 1410 |
+
],
|
| 1411 |
+
"angle": 0,
|
| 1412 |
+
"content": "in the short segment of assembly code and generated the correct code, thus rectifying the error from the previous inference."
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "text",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
0.508,
|
| 1418 |
+
0.43,
|
| 1419 |
+
0.886,
|
| 1420 |
+
0.607
|
| 1421 |
+
],
|
| 1422 |
+
"angle": 0,
|
| 1423 |
+
"content": "Contribution of FAE The results in Table 1 show that the application of Fine-grained Alignment Enhancement (FAE) for further fine-tuning the model significantly enhanced its re-executability performance across all optimization levels except \"O0\". Notably, at optimization levels O2 and O3, the scores improved by \\(5.12\\%\\) and \\(4.27\\%\\), reaching \\(45.73\\%\\) and \\(42.32\\%\\), respectively. The average performance increased by \\(2.28\\%\\), achieving \\(50.88\\%\\). This demonstrates the effectiveness of the Fine-grained Alignment Enhancement method."
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"type": "text",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
0.508,
|
| 1429 |
+
0.616,
|
| 1430 |
+
0.886,
|
| 1431 |
+
0.922
|
| 1432 |
+
],
|
| 1433 |
+
"angle": 0,
|
| 1434 |
+
"content": "Ablation Study of FAE The results of ablation experiments in Table 3 have demonstrated the effectiveness of our proposed Step-by-Step Decompile training objective. Removing the training objective results in approximately a \\(2\\%\\) decline in Re-Executability performance, regardless of whether the \\(\\mathrm{sc}^2\\) dec method is used, and notably, a \\(3.78\\%\\) decline at the \"O2\" optimization level. However, the performance of the 1-shot remains unaffected, supporting our hypothesis that the mismatch between the training data form and the inference form leads to performance degradation. Furthermore, retaining only the End-to-end Decompilation training objective still yields little performance improvement, about \\(0.33\\%\\). This improvement can be attributed to the longer context provided during training, as the samples are not truncated during training, allowing the model to fully observe the assembly code and its corresponding C code."
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "page_number",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
0.481,
|
| 1440 |
+
0.929,
|
| 1441 |
+
0.522,
|
| 1442 |
+
0.941
|
| 1443 |
+
],
|
| 1444 |
+
"angle": 0,
|
| 1445 |
+
"content": "6610"
|
| 1446 |
+
}
|
| 1447 |
+
],
|
| 1448 |
+
[
|
| 1449 |
+
{
|
| 1450 |
+
"type": "title",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
0.115,
|
| 1453 |
+
0.085,
|
| 1454 |
+
0.248,
|
| 1455 |
+
0.099
|
| 1456 |
+
],
|
| 1457 |
+
"angle": 0,
|
| 1458 |
+
"content": "5 Conclusion"
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"type": "text",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
0.113,
|
| 1464 |
+
0.109,
|
| 1465 |
+
0.491,
|
| 1466 |
+
0.286
|
| 1467 |
+
],
|
| 1468 |
+
"angle": 0,
|
| 1469 |
+
"content": "In this paper, we introduce two methods based on the characteristics of the decompilation task: Self-Constructed Context Decomposition, which leverages the compileability of decomposition results to construct better contexts, and Fine-grained Alignment Enhancement, which fine-tunes the model using fine-grained alignment data between assembly code and source code derived from debug information. By integrating these methods, we achieved a \\(3.90\\%\\) improvement in decompilation performance, reaching a new state-of-the-art level of \\(52.41\\%\\)."
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "title",
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
0.115,
|
| 1475 |
+
0.297,
|
| 1476 |
+
0.236,
|
| 1477 |
+
0.314
|
| 1478 |
+
],
|
| 1479 |
+
"angle": 0,
|
| 1480 |
+
"content": "Acknowledge"
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "text",
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
0.113,
|
| 1486 |
+
0.321,
|
| 1487 |
+
0.49,
|
| 1488 |
+
0.385
|
| 1489 |
+
],
|
| 1490 |
+
"angle": 0,
|
| 1491 |
+
"content": "We gratefully acknowledge the support of the National Natural Science Foundation of China (NSFC) via grant 62236004, 62206078, 62441603 and 62476073."
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "title",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
0.115,
|
| 1497 |
+
0.396,
|
| 1498 |
+
0.22,
|
| 1499 |
+
0.411
|
| 1500 |
+
],
|
| 1501 |
+
"angle": 0,
|
| 1502 |
+
"content": "Limitations"
|
| 1503 |
+
},
|
| 1504 |
+
{
|
| 1505 |
+
"type": "text",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
0.113,
|
| 1508 |
+
0.42,
|
| 1509 |
+
0.49,
|
| 1510 |
+
0.613
|
| 1511 |
+
],
|
| 1512 |
+
"angle": 0,
|
| 1513 |
+
"content": "The \\(\\mathrm{sc^2dec}\\) depends on the decomposed code generated by the model. If the decomposed code cannot be recompiled, \\(\\mathrm{sc^2dec}\\) will not be able to benefit from it, necessitating that the decomposed code has high re-compilability performance. For Fine-grained Alignment Enhancement, we created a Step-by-Step Decompile training objective, training with only 10,000 samples across four optimization levels (O0-O3), without validating its performance on larger datasets or bigger models. Moreover, fine-tuning led to a further decline in performance in the 1-shot scenario."
|
| 1514 |
+
},
|
| 1515 |
+
{
|
| 1516 |
+
"type": "title",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
0.115,
|
| 1519 |
+
0.625,
|
| 1520 |
+
0.244,
|
| 1521 |
+
0.64
|
| 1522 |
+
],
|
| 1523 |
+
"angle": 0,
|
| 1524 |
+
"content": "Potential risks"
|
| 1525 |
+
},
|
| 1526 |
+
{
|
| 1527 |
+
"type": "text",
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
0.113,
|
| 1530 |
+
0.649,
|
| 1531 |
+
0.49,
|
| 1532 |
+
0.73
|
| 1533 |
+
],
|
| 1534 |
+
"angle": 0,
|
| 1535 |
+
"content": "Decompilation is a technique that converts compiled binary code back into human-readable source code. While decompilation can be legal and useful in certain contexts, it also entails several potential risks. The primary potential risks are as follows:"
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"type": "text",
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
0.137,
|
| 1541 |
+
0.736,
|
| 1542 |
+
0.488,
|
| 1543 |
+
0.816
|
| 1544 |
+
],
|
| 1545 |
+
"angle": 0,
|
| 1546 |
+
"content": "- Intellectual Property Infringement: Decompilation may violate the copyright and licensing agreements of software. Unauthorized decomposition can lead to copyright infringement, thereby instigating legal disputes."
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "text",
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
0.137,
|
| 1552 |
+
0.826,
|
| 1553 |
+
0.49,
|
| 1554 |
+
0.92
|
| 1555 |
+
],
|
| 1556 |
+
"angle": 0,
|
| 1557 |
+
"content": "- Security Risks: Decomposed code may expose the internal structure and implementation details of the software, providing attack vectors for hackers. Malicious actors can exploit this information to identify and exploit vulnerabilities in the software."
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"type": "list",
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
0.137,
|
| 1563 |
+
0.736,
|
| 1564 |
+
0.49,
|
| 1565 |
+
0.92
|
| 1566 |
+
],
|
| 1567 |
+
"angle": 0,
|
| 1568 |
+
"content": null
|
| 1569 |
+
},
|
| 1570 |
+
{
|
| 1571 |
+
"type": "text",
|
| 1572 |
+
"bbox": [
|
| 1573 |
+
0.532,
|
| 1574 |
+
0.085,
|
| 1575 |
+
0.883,
|
| 1576 |
+
0.134
|
| 1577 |
+
],
|
| 1578 |
+
"angle": 0,
|
| 1579 |
+
"content": "- Ethical Concerns: Decompiling and analyzing another's code can be considered unethical, especially when done without authorization."
|
| 1580 |
+
},
|
| 1581 |
+
{
|
| 1582 |
+
"type": "title",
|
| 1583 |
+
"bbox": [
|
| 1584 |
+
0.511,
|
| 1585 |
+
0.174,
|
| 1586 |
+
0.61,
|
| 1587 |
+
0.189
|
| 1588 |
+
],
|
| 1589 |
+
"angle": 0,
|
| 1590 |
+
"content": "References"
|
| 1591 |
+
},
|
| 1592 |
+
{
|
| 1593 |
+
"type": "text",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
0.51,
|
| 1596 |
+
0.198,
|
| 1597 |
+
0.884,
|
| 1598 |
+
0.304
|
| 1599 |
+
],
|
| 1600 |
+
"angle": 0,
|
| 1601 |
+
"content": "Jordi Armengol-Estapé, Jackson Woodruff, Alexander Brauckmann, José Wesley de Souza Magalhães, and Michael F. P. O’Boyle. 2022. Exebench: An ml-scale dataset of executable c functions. In Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming, MAPS 2022, page 50–59, New York, NY, USA. Association for Computing Machinery."
|
| 1602 |
+
},
|
| 1603 |
+
{
|
| 1604 |
+
"type": "text",
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
0.51,
|
| 1607 |
+
0.314,
|
| 1608 |
+
0.884,
|
| 1609 |
+
0.368
|
| 1610 |
+
],
|
| 1611 |
+
"angle": 0,
|
| 1612 |
+
"content": "Jordi Armengol-Estape, Jackson Woodruff, Chris Cummins, and Michael F. P. O'Boyle. 2023. Slade: A portable small language model decoder for optimized assembler. CoRR, abs/2305.12520."
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"type": "text",
|
| 1616 |
+
"bbox": [
|
| 1617 |
+
0.511,
|
| 1618 |
+
0.378,
|
| 1619 |
+
0.885,
|
| 1620 |
+
0.537
|
| 1621 |
+
],
|
| 1622 |
+
"angle": 0,
|
| 1623 |
+
"content": "Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. Preprint, arXiv:2005.14165."
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"type": "text",
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
0.511,
|
| 1629 |
+
0.547,
|
| 1630 |
+
0.884,
|
| 1631 |
+
0.639
|
| 1632 |
+
],
|
| 1633 |
+
"angle": 0,
|
| 1634 |
+
"content": "David Brumley, JongHyup Lee, Edward J. Schwartz, and Maverick Woo. 2013. Native x86 decomposition using semantics-preserving structural analysis and iterative control-flow structuring. In Proceedings of the 22th USENIX Security Symposium, Washington, DC, USA, August 14-16, 2013, pages 353-368. USENIX Association."
|
| 1635 |
+
},
|
| 1636 |
+
{
|
| 1637 |
+
"type": "text",
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
0.511,
|
| 1640 |
+
0.65,
|
| 1641 |
+
0.883,
|
| 1642 |
+
0.703
|
| 1643 |
+
],
|
| 1644 |
+
"angle": 0,
|
| 1645 |
+
"content": "Tri Dao. 2024. FlashAttention-2: Faster attention with better parallelism and work partitioning. In International Conference on Learning Representations (ICLR)."
|
| 1646 |
+
},
|
| 1647 |
+
{
|
| 1648 |
+
"type": "text",
|
| 1649 |
+
"bbox": [
|
| 1650 |
+
0.511,
|
| 1651 |
+
0.714,
|
| 1652 |
+
0.884,
|
| 1653 |
+
0.755
|
| 1654 |
+
],
|
| 1655 |
+
"angle": 0,
|
| 1656 |
+
"content": "DeepSeek-AI. 2024. Deepseek-v2: A strong, economical, and efficient mixture-of-experts language model. Preprint, arXiv:2405.04434."
|
| 1657 |
+
},
|
| 1658 |
+
{
|
| 1659 |
+
"type": "text",
|
| 1660 |
+
"bbox": [
|
| 1661 |
+
0.51,
|
| 1662 |
+
0.765,
|
| 1663 |
+
0.882,
|
| 1664 |
+
0.792
|
| 1665 |
+
],
|
| 1666 |
+
"angle": 0,
|
| 1667 |
+
"content": "Ghidra. 2024. Ghidra software reverse engineering framework."
|
| 1668 |
+
},
|
| 1669 |
+
{
|
| 1670 |
+
"type": "text",
|
| 1671 |
+
"bbox": [
|
| 1672 |
+
0.51,
|
| 1673 |
+
0.804,
|
| 1674 |
+
0.884,
|
| 1675 |
+
0.883
|
| 1676 |
+
],
|
| 1677 |
+
"angle": 0,
|
| 1678 |
+
"content": "Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Y. Wu, Y. K. Li, Fuli Luo, Yingfei Xiong, and Wenfeng Liang. 2024. Deepseek-coder: When the large language model meets programming – the rise of code intelligence. Preprint, arXiv:2401.14196."
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"type": "text",
|
| 1682 |
+
"bbox": [
|
| 1683 |
+
0.51,
|
| 1684 |
+
0.894,
|
| 1685 |
+
0.884,
|
| 1686 |
+
0.922
|
| 1687 |
+
],
|
| 1688 |
+
"angle": 0,
|
| 1689 |
+
"content": "Hex-Rays. 2024. Ida pro: a cross-platform multiprocessor disassembler and debugger."
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "list",
|
| 1693 |
+
"bbox": [
|
| 1694 |
+
0.51,
|
| 1695 |
+
0.198,
|
| 1696 |
+
0.885,
|
| 1697 |
+
0.922
|
| 1698 |
+
],
|
| 1699 |
+
"angle": 0,
|
| 1700 |
+
"content": null
|
| 1701 |
+
},
|
| 1702 |
+
{
|
| 1703 |
+
"type": "page_number",
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
0.481,
|
| 1706 |
+
0.929,
|
| 1707 |
+
0.52,
|
| 1708 |
+
0.941
|
| 1709 |
+
],
|
| 1710 |
+
"angle": 0,
|
| 1711 |
+
"content": "6611"
|
| 1712 |
+
}
|
| 1713 |
+
],
|
| 1714 |
+
[
|
| 1715 |
+
{
|
| 1716 |
+
"type": "ref_text",
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
0.117,
|
| 1719 |
+
0.086,
|
| 1720 |
+
0.487,
|
| 1721 |
+
0.125
|
| 1722 |
+
],
|
| 1723 |
+
"angle": 0,
|
| 1724 |
+
"content": "Iman Hosseini and Brendan Dolan-Gavitt. 2022. Beyond the C: retargetable decompilation using neural machine translation. CoRR, abs/2212.08950."
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"type": "ref_text",
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
0.117,
|
| 1730 |
+
0.136,
|
| 1731 |
+
0.487,
|
| 1732 |
+
0.202
|
| 1733 |
+
],
|
| 1734 |
+
"angle": 0,
|
| 1735 |
+
"content": "Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations."
|
| 1736 |
+
},
|
| 1737 |
+
{
|
| 1738 |
+
"type": "ref_text",
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
0.117,
|
| 1741 |
+
0.212,
|
| 1742 |
+
0.487,
|
| 1743 |
+
0.263
|
| 1744 |
+
],
|
| 1745 |
+
"angle": 0,
|
| 1746 |
+
"content": "Nan Jiang, Chengxiao Wang, Kevin Liu, Xiangzhe Xu, Lin Tan, and Xiangyu Zhang. 2023. Nova+: Generative language models for binaries. Preprint, arXiv:2311.13721."
|
| 1747 |
+
},
|
| 1748 |
+
{
|
| 1749 |
+
"type": "ref_text",
|
| 1750 |
+
"bbox": [
|
| 1751 |
+
0.117,
|
| 1752 |
+
0.274,
|
| 1753 |
+
0.487,
|
| 1754 |
+
0.353
|
| 1755 |
+
],
|
| 1756 |
+
"angle": 0,
|
| 1757 |
+
"content": "Deborah S. Katz, Jason Ruchti, and Eric M. Schulte. 2018. Using recurrent neural networks for decompilation. In 25th International Conference on Software Analysis, Evolution and Reengineering, SANER 2018, Campobasso, Italy, March 20-23, 2018, pages 346-356. IEEE Computer Society."
|
| 1758 |
+
},
|
| 1759 |
+
{
|
| 1760 |
+
"type": "ref_text",
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
0.117,
|
| 1763 |
+
0.363,
|
| 1764 |
+
0.487,
|
| 1765 |
+
0.455
|
| 1766 |
+
],
|
| 1767 |
+
"angle": 0,
|
| 1768 |
+
"content": "Jeremy Lacomis, Pengcheng Yin, Edward J. Schwartz, Miltiadis Allamanis, Claire Le Goues, Graham Neubig, and Bogdan Vasilescu. 2019. DIRE: A neural approach to decompiled identifier naming. In 34th IEEE/ACM International Conference on Automated Software Engineering, ASE 2019, San Diego, CA, USA, November 11-15, 2019, pages 628-639. IEEE."
|
| 1769 |
+
},
|
| 1770 |
+
{
|
| 1771 |
+
"type": "ref_text",
|
| 1772 |
+
"bbox": [
|
| 1773 |
+
0.117,
|
| 1774 |
+
0.465,
|
| 1775 |
+
0.487,
|
| 1776 |
+
0.555
|
| 1777 |
+
],
|
| 1778 |
+
"angle": 0,
|
| 1779 |
+
"content": "Thomas Lippincott. 2020. Starcoder: A general neural ensemble technique to support traditional scholarship, illustrated with a study of the post-atlantic slave trade. In 15th Annual International Conference of the Alliance of Digital Humanities Organizations, DH 2020, Ottawa, Canada, July 20-25, 2020, Conference Abstracts."
|
| 1780 |
+
},
|
| 1781 |
+
{
|
| 1782 |
+
"type": "ref_text",
|
| 1783 |
+
"bbox": [
|
| 1784 |
+
0.117,
|
| 1785 |
+
0.567,
|
| 1786 |
+
0.487,
|
| 1787 |
+
0.644
|
| 1788 |
+
],
|
| 1789 |
+
"angle": 0,
|
| 1790 |
+
"content": "Zhibo Liu and Shuai Wang. 2020. How far we have come: testing decomposition correctness of C decompliers. In ISSTA '20: 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual Event, USA, July 18-22, 2020, pages 475-487. ACM."
|
| 1791 |
+
},
|
| 1792 |
+
{
|
| 1793 |
+
"type": "ref_text",
|
| 1794 |
+
"bbox": [
|
| 1795 |
+
0.117,
|
| 1796 |
+
0.655,
|
| 1797 |
+
0.487,
|
| 1798 |
+
0.72
|
| 1799 |
+
],
|
| 1800 |
+
"angle": 0,
|
| 1801 |
+
"content": "Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net."
|
| 1802 |
+
},
|
| 1803 |
+
{
|
| 1804 |
+
"type": "ref_text",
|
| 1805 |
+
"bbox": [
|
| 1806 |
+
0.117,
|
| 1807 |
+
0.731,
|
| 1808 |
+
0.487,
|
| 1809 |
+
0.77
|
| 1810 |
+
],
|
| 1811 |
+
"angle": 0,
|
| 1812 |
+
"content": "Xing Han Lu. 2024. Bm25s: Orders of magnitude faster lexical search via eager sparse scoring. Preprint, arXiv:2407.03618."
|
| 1813 |
+
},
|
| 1814 |
+
{
|
| 1815 |
+
"type": "ref_text",
|
| 1816 |
+
"bbox": [
|
| 1817 |
+
0.117,
|
| 1818 |
+
0.781,
|
| 1819 |
+
0.292,
|
| 1820 |
+
0.794
|
| 1821 |
+
],
|
| 1822 |
+
"angle": 0,
|
| 1823 |
+
"content": "OpenAI. 2022. ChatGPT."
|
| 1824 |
+
},
|
| 1825 |
+
{
|
| 1826 |
+
"type": "ref_text",
|
| 1827 |
+
"bbox": [
|
| 1828 |
+
0.117,
|
| 1829 |
+
0.805,
|
| 1830 |
+
0.487,
|
| 1831 |
+
0.83
|
| 1832 |
+
],
|
| 1833 |
+
"angle": 0,
|
| 1834 |
+
"content": "OpenAI. 2023. GPT-4 Technical Report. CoRR, abs/2303.08774."
|
| 1835 |
+
},
|
| 1836 |
+
{
|
| 1837 |
+
"type": "ref_text",
|
| 1838 |
+
"bbox": [
|
| 1839 |
+
0.117,
|
| 1840 |
+
0.842,
|
| 1841 |
+
0.487,
|
| 1842 |
+
0.92
|
| 1843 |
+
],
|
| 1844 |
+
"angle": 0,
|
| 1845 |
+
"content": "Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, Artyom Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton-Ferrer, Aaron Grattaflori, Wenhan Xiong, Alexandre Défossez, Jade Copet,"
|
| 1846 |
+
},
|
| 1847 |
+
{
|
| 1848 |
+
"type": "list",
|
| 1849 |
+
"bbox": [
|
| 1850 |
+
0.117,
|
| 1851 |
+
0.086,
|
| 1852 |
+
0.487,
|
| 1853 |
+
0.92
|
| 1854 |
+
],
|
| 1855 |
+
"angle": 0,
|
| 1856 |
+
"content": null
|
| 1857 |
+
},
|
| 1858 |
+
{
|
| 1859 |
+
"type": "ref_text",
|
| 1860 |
+
"bbox": [
|
| 1861 |
+
0.529,
|
| 1862 |
+
0.086,
|
| 1863 |
+
0.882,
|
| 1864 |
+
0.138
|
| 1865 |
+
],
|
| 1866 |
+
"angle": 0,
|
| 1867 |
+
"content": "Faisal Azhar, Hugo Touvron, Louis Martin, Nicolas Usunier, Thomas Scialom, and Gabriel Synnaeve. 2023. Code llama: Open foundation models for code. CoRR, abs/2308.12950."
|
| 1868 |
+
},
|
| 1869 |
+
{
|
| 1870 |
+
"type": "ref_text",
|
| 1871 |
+
"bbox": [
|
| 1872 |
+
0.512,
|
| 1873 |
+
0.149,
|
| 1874 |
+
0.882,
|
| 1875 |
+
0.188
|
| 1876 |
+
],
|
| 1877 |
+
"angle": 0,
|
| 1878 |
+
"content": "Hanzhuo Tan, Qi Luo, Jing Li, and Yuqun Zhang. 2024. Llm4decompile: Decompiling binary code with large language models. Preprint, arXiv:2403.05286."
|
| 1879 |
+
},
|
| 1880 |
+
{
|
| 1881 |
+
"type": "ref_text",
|
| 1882 |
+
"bbox": [
|
| 1883 |
+
0.512,
|
| 1884 |
+
0.198,
|
| 1885 |
+
0.882,
|
| 1886 |
+
0.277
|
| 1887 |
+
],
|
| 1888 |
+
"angle": 0,
|
| 1889 |
+
"content": "Tao Wei, Jian Mao, Wei Zou, and Yu Chen. 2007. A new algorithm for identifying loops in decomposition. In Static Analysis, 14th International Symposium, SAS 2007, Kongens Lyngby, Denmark, August 22-24, 2007, Proceedings, volume 4634 of Lecture Notes in Computer Science, pages 170-183. Springer."
|
| 1890 |
+
},
|
| 1891 |
+
{
|
| 1892 |
+
"type": "ref_text",
|
| 1893 |
+
"bbox": [
|
| 1894 |
+
0.512,
|
| 1895 |
+
0.287,
|
| 1896 |
+
0.882,
|
| 1897 |
+
0.364
|
| 1898 |
+
],
|
| 1899 |
+
"angle": 0,
|
| 1900 |
+
"content": "Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. 2019. Huggingface's transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771."
|
| 1901 |
+
},
|
| 1902 |
+
{
|
| 1903 |
+
"type": "ref_text",
|
| 1904 |
+
"bbox": [
|
| 1905 |
+
0.512,
|
| 1906 |
+
0.375,
|
| 1907 |
+
0.882,
|
| 1908 |
+
0.428
|
| 1909 |
+
],
|
| 1910 |
+
"angle": 0,
|
| 1911 |
+
"content": "Wai Kin Wong, Huaijin Wang, Zongjie Li, Zhibo Liu, Shuai Wang, Qiyi Tang, Sen Nie, and Shi Wu. 2023. Refining decomposed C code with large language models. CoRR, abs/2310.06530."
|
| 1912 |
+
},
|
| 1913 |
+
{
|
| 1914 |
+
"type": "ref_text",
|
| 1915 |
+
"bbox": [
|
| 1916 |
+
0.512,
|
| 1917 |
+
0.438,
|
| 1918 |
+
0.882,
|
| 1919 |
+
0.53
|
| 1920 |
+
],
|
| 1921 |
+
"angle": 0,
|
| 1922 |
+
"content": "Frank F. Xu, Uri Alon, Graham Neubig, and Vincent Josua Hellendoorn. 2022. A systematic evaluation of large language models of code. In Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming, MAPS 2022, page 1-10, New York, NY, USA. Association for Computing Machinery."
|
| 1923 |
+
},
|
| 1924 |
+
{
|
| 1925 |
+
"type": "ref_text",
|
| 1926 |
+
"bbox": [
|
| 1927 |
+
0.512,
|
| 1928 |
+
0.54,
|
| 1929 |
+
0.882,
|
| 1930 |
+
0.606
|
| 1931 |
+
],
|
| 1932 |
+
"angle": 0,
|
| 1933 |
+
"content": "Xiangzhe Xu, Zhuo Zhang, Shiwei Feng, Yapeng Ye, Zian Su, Nan Jiang, Siyuan Cheng, Lin Tan, and Xiangyu Zhang. 2023. Lmpa: Improving decomposition by synergy of large language model and program analysis. CoRR, abs/2306.02546."
|
| 1934 |
+
},
|
| 1935 |
+
{
|
| 1936 |
+
"type": "ref_text",
|
| 1937 |
+
"bbox": [
|
| 1938 |
+
0.512,
|
| 1939 |
+
0.616,
|
| 1940 |
+
0.882,
|
| 1941 |
+
0.708
|
| 1942 |
+
],
|
| 1943 |
+
"angle": 0,
|
| 1944 |
+
"content": "Zhengran Zeng, Hanzhuo Tan, Haotian Zhang, Jing Li, Yuqun Zhang, and Lingming Zhang. 2022. An extensive study on pre-trained models for program understanding and generation. In ISSTA '22: 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual Event, South Korea, July 18 - 22, 2022, pages 39-51. ACM."
|
| 1945 |
+
},
|
| 1946 |
+
{
|
| 1947 |
+
"type": "ref_text",
|
| 1948 |
+
"bbox": [
|
| 1949 |
+
0.512,
|
| 1950 |
+
0.718,
|
| 1951 |
+
0.882,
|
| 1952 |
+
0.77
|
| 1953 |
+
],
|
| 1954 |
+
"angle": 0,
|
| 1955 |
+
"content": "Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyan Luo, and Yongqiang Ma. 2024. Llamafactory: Unified efficient fine-tuning of \\(100+\\) language models. arXiv preprint arXiv:2403.13372."
|
| 1956 |
+
},
|
| 1957 |
+
{
|
| 1958 |
+
"type": "list",
|
| 1959 |
+
"bbox": [
|
| 1960 |
+
0.512,
|
| 1961 |
+
0.086,
|
| 1962 |
+
0.882,
|
| 1963 |
+
0.77
|
| 1964 |
+
],
|
| 1965 |
+
"angle": 0,
|
| 1966 |
+
"content": null
|
| 1967 |
+
},
|
| 1968 |
+
{
|
| 1969 |
+
"type": "page_number",
|
| 1970 |
+
"bbox": [
|
| 1971 |
+
0.481,
|
| 1972 |
+
0.929,
|
| 1973 |
+
0.521,
|
| 1974 |
+
0.941
|
| 1975 |
+
],
|
| 1976 |
+
"angle": 0,
|
| 1977 |
+
"content": "6612"
|
| 1978 |
+
}
|
| 1979 |
+
],
|
| 1980 |
+
[
|
| 1981 |
+
{
|
| 1982 |
+
"type": "title",
|
| 1983 |
+
"bbox": [
|
| 1984 |
+
0.115,
|
| 1985 |
+
0.085,
|
| 1986 |
+
0.315,
|
| 1987 |
+
0.101
|
| 1988 |
+
],
|
| 1989 |
+
"angle": 0,
|
| 1990 |
+
"content": "A Training examples"
|
| 1991 |
+
},
|
| 1992 |
+
{
|
| 1993 |
+
"type": "code",
|
| 1994 |
+
"bbox": [
|
| 1995 |
+
0.126,
|
| 1996 |
+
0.125,
|
| 1997 |
+
0.437,
|
| 1998 |
+
0.259
|
| 1999 |
+
],
|
| 2000 |
+
"angle": 0,
|
| 2001 |
+
"content": "User: # This is the assembly: <func0>:\nmov %edi,%eax\nand $0x1,%eax\nret\n# What is the source code?\nAssistant: bool func0(int num) {\nreturn num % 2 != 0;\n}"
|
| 2002 |
+
},
|
| 2003 |
+
{
|
| 2004 |
+
"type": "code_caption",
|
| 2005 |
+
"bbox": [
|
| 2006 |
+
0.271,
|
| 2007 |
+
0.273,
|
| 2008 |
+
0.724,
|
| 2009 |
+
0.288
|
| 2010 |
+
],
|
| 2011 |
+
"angle": 0,
|
| 2012 |
+
"content": "Figure 6: The training example of end-to-end decompile objective."
|
| 2013 |
+
},
|
| 2014 |
+
{
|
| 2015 |
+
"type": "code",
|
| 2016 |
+
"bbox": [
|
| 2017 |
+
0.129,
|
| 2018 |
+
0.319,
|
| 2019 |
+
0.814,
|
| 2020 |
+
0.66
|
| 2021 |
+
],
|
| 2022 |
+
"angle": 0,
|
| 2023 |
+
"content": "User: Add inline comments that contain the corresponding C code for the assembly code first, then write the equivalent C function. ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `` \n`` `` ````````````````````````````````````````````````````````````````````````````````````````````````````` \nAssistant: Here is the assembly code with inline comments containing the corresponding C code: \n``` ` ` ` ` ` ` ` \n```\n<func0>:\n mov %edi,%eax\n and $0x1,%eax\n ret\n```\nAssistant: Here is the assembly code with inline comments containing the corresponding C code: \n``` ` ` ` ` ` \n```\n<func0>:\n ; bool func0(int num) {\n mov %edi,%eax\n and $0x1,%eax\n ; return num % 2 != 0;\n ret\n}\n```\nAnd here is the equivalent C function: \n``` c\nbool func0(int num) {\n return num % 2 != 0;\n}"
|
| 2024 |
+
},
|
| 2025 |
+
{
|
| 2026 |
+
"type": "code_caption",
|
| 2027 |
+
"bbox": [
|
| 2028 |
+
0.119,
|
| 2029 |
+
0.683,
|
| 2030 |
+
0.877,
|
| 2031 |
+
0.699
|
| 2032 |
+
],
|
| 2033 |
+
"angle": 0,
|
| 2034 |
+
"content": "Figure 7: The training example of step-by-step decompile objective. Note that the workflow is only for training."
|
| 2035 |
+
},
|
| 2036 |
+
{
|
| 2037 |
+
"type": "title",
|
| 2038 |
+
"bbox": [
|
| 2039 |
+
0.115,
|
| 2040 |
+
0.726,
|
| 2041 |
+
0.271,
|
| 2042 |
+
0.74
|
| 2043 |
+
],
|
| 2044 |
+
"angle": 0,
|
| 2045 |
+
"content": "B Extra Results"
|
| 2046 |
+
},
|
| 2047 |
+
{
|
| 2048 |
+
"type": "text",
|
| 2049 |
+
"bbox": [
|
| 2050 |
+
0.113,
|
| 2051 |
+
0.751,
|
| 2052 |
+
0.885,
|
| 2053 |
+
0.896
|
| 2054 |
+
],
|
| 2055 |
+
"angle": 0,
|
| 2056 |
+
"content": "The Model is More Sensitive to Compiler Series than to Versions: As the Table 4 shows, using a compiler different from the one used during training to build the context can lead to significant performance degradation. The model performs better when the context is built using the GCC compiler series, whereas the performance is slightly worse when using the clang series. This may be due to the fact that the context used during both the continued pre-training and fine-tuning stages was constructed with the GCC compiler series. When different versions of GCC are used for construction, the performance of \\(\\mathrm{sc^2dec}\\) stabilizes around \\(52\\%\\) for the fine-tuned model except \"x86-64 gcc 14.1\". In contrast, when the context is built using the clang series, the performance of \\(\\mathrm{sc^2dec}\\) is slightly lower and more consistent, stabilizing around \\(51\\%\\) for the fine-tuned model."
|
| 2057 |
+
},
|
| 2058 |
+
{
|
| 2059 |
+
"type": "page_number",
|
| 2060 |
+
"bbox": [
|
| 2061 |
+
0.481,
|
| 2062 |
+
0.929,
|
| 2063 |
+
0.521,
|
| 2064 |
+
0.941
|
| 2065 |
+
],
|
| 2066 |
+
"angle": 0,
|
| 2067 |
+
"content": "6613"
|
| 2068 |
+
}
|
| 2069 |
+
],
|
| 2070 |
+
[
|
| 2071 |
+
{
|
| 2072 |
+
"type": "table",
|
| 2073 |
+
"bbox": [
|
| 2074 |
+
0.155,
|
| 2075 |
+
0.082,
|
| 2076 |
+
0.846,
|
| 2077 |
+
0.273
|
| 2078 |
+
],
|
| 2079 |
+
"angle": 0,
|
| 2080 |
+
"content": "<table><tr><td rowspan=\"2\">Compiler</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>x86-64 gcc 10.5</td><td>92.07</td><td>90.98</td><td>91.71</td><td>92.32</td><td>91.77</td><td>70.85</td><td>47.32</td><td>47.80</td><td>43.05</td><td>52.26</td></tr><tr><td>x86-64 gcc 11.4</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>48.66</td><td>47.68</td><td>42.68</td><td>52.47</td></tr><tr><td>x86-64 gcc 12.3</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>47.68</td><td>46.95</td><td>42.56</td><td>52.01</td></tr><tr><td>x86-64 gcc 13.3</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>47.93</td><td>46.59</td><td>42.68</td><td>52.01</td></tr><tr><td>x86-64 gcc 14.1</td><td>92.07</td><td>91.83</td><td>92.44</td><td>92.56</td><td>92.23</td><td>70.85</td><td>47.07</td><td>45.73</td><td>41.95</td><td>51.40</td></tr><tr><td>x86-64 clang 14.0.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.05</td><td>45.73</td><td>42.44</td><td>51.31</td></tr><tr><td>x86-64 clang 15.0.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.29</td><td>45.73</td><td>42.32</td><td>51.34</td></tr><tr><td>x86-64 clang 16.0.0</td><td>92.68</td><td>92.2</td><td>93.66</td><td>93.17</td><td>92.93</td><td>69.02</td><td>48.05</td><td>46.46</td><td>42.32</td><td>51.46</td></tr><tr><td>x86-64 clang 17.0.1</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.05</td><td>46.71</td><td>42.32</td><td>51.52</td></tr><tr><td>x86-64 clang 18.1.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.17</td><td>46.46</td><td>42.32</td><td>51.49</td></tr></table>"
|
| 2081 |
+
},
|
| 2082 |
+
{
|
| 2083 |
+
"type": "table_caption",
|
| 2084 |
+
"bbox": [
|
| 2085 |
+
0.113,
|
| 2086 |
+
0.283,
|
| 2087 |
+
0.884,
|
| 2088 |
+
0.341
|
| 2089 |
+
],
|
| 2090 |
+
"angle": 0,
|
| 2091 |
+
"content": "Table 4: The re-executability of differnet models across different compilers. We selected the popular three versions of both the clang and gcc series in Compiler Explorer. The compiler of Compiler Explorer may differ from the compilers provided by Ubuntu in some default compilation options, which might result in slight differences in the generated assembly code."
|
| 2092 |
+
},
|
| 2093 |
+
{
|
| 2094 |
+
"type": "table",
|
| 2095 |
+
"bbox": [
|
| 2096 |
+
0.153,
|
| 2097 |
+
0.349,
|
| 2098 |
+
0.847,
|
| 2099 |
+
0.865
|
| 2100 |
+
],
|
| 2101 |
+
"angle": 0,
|
| 2102 |
+
"content": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Re-Compilability</td><td colspan=\"5\">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td colspan=\"11\">GPT-4 (OpenAI, 2023)</td></tr><tr><td>vanilla</td><td>76.83</td><td>67.68</td><td>67.07</td><td>57.93</td><td>67.38</td><td>20.73</td><td>13.41</td><td>13.41</td><td>10.98</td><td>14.63</td></tr><tr><td>+sc2dec</td><td>76.22</td><td>67.03</td><td>65.24</td><td>56.10</td><td>66.15</td><td>32.93</td><td>20.12</td><td>19.51</td><td>13.41</td><td>21.49</td></tr><tr><td>1-shot</td><td>76.22</td><td>78.05</td><td>73.78</td><td>70.73</td><td>74.70</td><td>31.71</td><td>20.12</td><td>19.51</td><td>21.34</td><td>23.17</td></tr><tr><td>+sc2dec</td><td>74.39</td><td>76.22</td><td>71.95</td><td>68.90</td><td>72.87</td><td>40.24</td><td>25.61</td><td>23.78</td><td>23.17</td><td>28.20</td></tr><tr><td colspan=\"11\">GPT-3.5 Turbo (OpenAI, 2022)</td></tr><tr><td>vanilla</td><td>20.73</td><td>25.00</td><td>29.27</td><td>21.95</td><td>24.24</td><td>4.27</td><td>3.66</td><td>3.05</td><td>3.05</td><td>3.51</td></tr><tr><td>+sc2dec</td><td>18.29</td><td>22.56</td><td>28.66</td><td>20.12</td><td>22.41</td><td>5.49</td><td>3.66</td><td>3.66</td><td>4.27</td><td>4.27</td></tr><tr><td>1-shot</td><td>49.39</td><td>46.34</td><td>42.07</td><td>40.85</td><td>44.66</td><td>10.37</td><td>7.32</td><td>6.10</td><td>5.49</td><td>7.31</td></tr><tr><td>+sc2dec</td><td>42.07</td><td>42.68</td><td>36.59</td><td>34.15</td><td>38.87</td><td>12.20</td><td>9.15</td><td>6.71</td><td>7.93</td><td>8.99</td></tr><tr><td colspan=\"11\">Deepseek Chat (DeepSeek-AI, 2024)</td></tr><tr><td>vanilla</td><td>62.20</td><td>51.83</td><td>47.56</td><td>45.73</td><td>51.83</td><td>10.37</td><td>5.49</td><td>4.88</td><td>5.49</td><td>6.55</td></tr><tr><td>+sc2dec</td><td>57.93</td><td>50.00</td><td>46.95</td><td>45.12</td><td>50.00</td><td>13.41</td><td>6.71</td><td>6.71</td><td>7.32</td><td>8.54</td></tr><tr><td>1-shot</td><td>67.68</td><td>70.73</td><td>64.63</td><td>56.71</td><td>64.94</td><td>13.41</td><td>10.37</td><td>7.93</td><td>7.32</td><td>9.76</td></tr><tr><td>+sc2dec</td><td>65.85</td><td>70.12</td><td>62.20</td><td>53.66</td><td>62.96</td><td>17.68</td><td>11.59</td><td>10.37</td><td>9.15</td><td>12.20</td></tr><tr><td colspan=\"11\">Deepseek Coder (Guo et al., 2024)</td></tr><tr><td>vanilla</td><td>66.46</td><td>57.93</td><td>47.56</td><td>51.83</td><td>55.95</td><td>9.15</td><td>6.10</td><td>6.71</td><td>6.98</td><td>7.01</td></tr><tr><td>+sc2dec</td><td>62.80</td><td>54.27</td><td>43.29</td><td>50.00</td><td>52.59</td><td>12.20</td><td>7.93</td><td>9.15</td><td>8.54</td><td>9.45</td></tr><tr><td>1-shot</td><td>57.93</td><td>53.66</td><td>52.44</td><td>48.17</td><td>53.05</td><td>11.59</td><td>10.37</td><td>8.54</td><td>7.93</td><td>9.60</td></tr><tr><td>+sc2dec</td><td>56.10</td><td>51.83</td><td>51.22</td><td>46.34</td><td>51.37</td><td>15.24</td><td>11.58</td><td>10.37</td><td>8.54</td><td>11.43</td></tr><tr><td colspan=\"11\">llm4decompile-6.7b (Tan et al., 2024)</td></tr><tr><td>vanilla</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>92.68</td><td>92.80</td><td>90.12</td><td>93.41</td><td>92.26</td><td>71.34</td><td>47.56</td><td>45.98</td><td>41.71</td><td>51.65</td></tr><tr><td>1-shot</td><td>93.05</td><td>93.29</td><td>90.98</td><td>93.90</td><td>92.80</td><td>70.37</td><td>44.88</td><td>41.46</td><td>37.68</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>93.05</td><td>92.68</td><td>90.37</td><td>93.29</td><td>92.35</td><td>71.59</td><td>47.20</td><td>46.34</td><td>41.46</td><td>51.65</td></tr><tr><td colspan=\"11\">llm4decompile-6.7b + FAE</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr></table>"
|
| 2103 |
+
},
|
| 2104 |
+
{
|
| 2105 |
+
"type": "table_caption",
|
| 2106 |
+
"bbox": [
|
| 2107 |
+
0.113,
|
| 2108 |
+
0.873,
|
| 2109 |
+
0.884,
|
| 2110 |
+
0.917
|
| 2111 |
+
],
|
| 2112 |
+
"angle": 0,
|
| 2113 |
+
"content": "Table 5: The extra results of different methods across four optimization levels (O0, O1, O2, O3), as well as their average scores (AVG). The results in bold represent the optimal performance, while those underlined indicate the second-best performance."
|
| 2114 |
+
},
|
| 2115 |
+
{
|
| 2116 |
+
"type": "page_number",
|
| 2117 |
+
"bbox": [
|
| 2118 |
+
0.481,
|
| 2119 |
+
0.929,
|
| 2120 |
+
0.521,
|
| 2121 |
+
0.941
|
| 2122 |
+
],
|
| 2123 |
+
"angle": 0,
|
| 2124 |
+
"content": "6614"
|
| 2125 |
+
}
|
| 2126 |
+
]
|
| 2127 |
+
]
|
2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/45f4817a-44a7-499d-b884-1bdac2c1b3e5_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18e27cb45ce2064a65eefa067ae96c8c4a9e1da612840566a40b90e742483159
|
| 3 |
+
size 706962
|
2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/full.md
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Self-Constructed Context Decomposition with Fined-grained Alignment Enhancement
|
| 2 |
+
|
| 3 |
+
Yunlong Feng, Dechuan Teng, Yang Xu, Honglin Mu, Xiao Xu, Libo Qin, Qingfu Zhu*, Wanxiang Che
|
| 4 |
+
|
| 5 |
+
Harbin Institute of Technology, China
|
| 6 |
+
|
| 7 |
+
{ylfeng,dcteng,yxu,hlmu,xxu,lbqin,qfzhu,car} $@$ ir.hit.edu.cn
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Decompilation transforms compiled code back into a high-level programming language for analysis when source code is unavailable. Previous work has primarily focused on enhancing decomposition performance by increasing the scale of model parameters or training data for pre-training. Based on the characteristics of the decomposition task, we propose two methods: (1) Without fine-tuning, the Self-Constructed Context Decomposition $(\mathrm{sc}^2\mathrm{dec})$ method recombines the LLM's decomposition results to construct pairs for in-context learning, helping the model improve decomposition performance. (2) Fine-grained Alignment Enhancement (FAE), which meticulously aligns assembly code with source code at the statement level by leveraging debugging information, is employed during the fine-tuning phase to achieve further improvements in decomposition. By integrating these two methods, we achieved a Re-Executability performance improvement of approximately $3.90\%$ on the Decompile-Eval benchmark, establishing a new state-of-the-art performance of $52.41\%$ . The code, data, and models are available at https://github.com/AlongWY/sccdec.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Decompilation is the process of converting compiled machine code or bytecode back into a high-level programming language. This process is typically used to analyze how the software works when the source code is not accessible (Brumley et al., 2013; Katz et al., 2018; Hosseini and Dolan-Gavitt, 2022; Xu et al., 2023; Armengol-Estape et al., 2023; Jiang et al., 2023; Wong et al., 2023). Many tools have been developed for decompilation, like Ghidra (Ghidra, 2024) and IDA Pro (Hex-Rays, 2024). However, these tools often struggle to generate human-readable code. The main challenge in decompilation is that it's hard to fully reconstruct
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Pipeline of the decompilation. The input for decompilation tasks is typically assembly, with the source code invisible. Additionally, the source code obtained through decompilation usually does not exactly match the original code.
|
| 19 |
+
|
| 20 |
+
the source code, especially details such as variable names (Lacomis et al., 2019) and primary structures (Wei et al., 2007), which are frequently lost during the compilation process.
|
| 21 |
+
|
| 22 |
+
Recent advances in large language models (LLMs) have prompted researchers to view programming languages as distinct linguistic systems, utilizing pre-trained code LLMs to accomplish various coding tasks (Lippincott, 2020; Rozière et al., 2023; Guo et al., 2024; OpenAI, 2023). These models have demonstrated significant performance improvements over traditional techniques (Zeng et al., 2022; Xu et al., 2022), making it feasible to apply LLMs to decompilation challenges. For instance, Transformer-based models such as Slade (Armengol-Estapé et al., 2023) and Nova (Jiang et al., 2023) have shown potential in using language models to translate binary code back into more readable and structured source code. Recently, Tan et al. (2024) developed and released the first open-source LLM focused on decompilation, alongside the construction of the first
|
| 23 |
+
|
| 24 |
+
decompilation benchmark to evaluate the decompilation capabilities of models. These efforts primarily treat the decompilation task as a translation task, training a robust decompilation model on extensive synthetic data (Hosseini and Dolan-Gavitt, 2022; Armengol-Estapé et al., 2023; Jiang et al., 2023; Tan et al., 2024).
|
| 25 |
+
|
| 26 |
+
By analyzing the characteristics of decomposition tasks, we have found two features:
|
| 27 |
+
|
| 28 |
+
- The decompiled code generated by the model is usually compileable.
|
| 29 |
+
- The compiler can produce external debugging information for the debugger.
|
| 30 |
+
|
| 31 |
+
Based on the characteristics of the decomposition task, we propose two approaches: (1) Self-Constructed Context Decomposition $(\mathrm{sc}^2\mathrm{dec})$ , a tuning-free approach, leverages the decomposition results from the model and specific compiler to derive ground-truth (assembly code, source code) pair closely related to the test sample. By incorporating the obtained pair as a demonstration example within the context, we can fully leverage the model's in-context learning capabilities to enhance performance. (2) Fine-grained Alignment Enhancement (FAE) introduces a new step-by-step decomposition training objective in addition to the end-to-end decomposition training objective that relies on large-scale pre-training for implicit alignment. By leveraging debugging information designed for debuggers, we can align assembly code with high-level code at a finer statement level. This allows the model to more faithfully preserve the original functionality after decomposition.
|
| 32 |
+
|
| 33 |
+
Combining these two methods, we have achieved an approximately $3.90\%$ improvement in re-executability performance based on lvm4decompile model (Tan et al., 2024), reaching a new state-of-the-art performance of $52.41\%$ re-executability.
|
| 34 |
+
|
| 35 |
+
To summarize, our contributions are as follows:
|
| 36 |
+
|
| 37 |
+
- We introduce Self-Constructed Context Decomposition, which leverages the compileability of decomposition results to construct better contexts.
|
| 38 |
+
- We introduce Fine-grained Alignment Enhancement, which fine-tunes the model using fine-grained alignment data between assembly code and source code derived from debug information. We also propose how to synthesize its training data automatically.
|
| 39 |
+
|
| 40 |
+
- The experiments on the Decompile-Eval benchmark show that our proposed model achieves new state-of-the-art results.
|
| 41 |
+
|
| 42 |
+
# 2 Related Works
|
| 43 |
+
|
| 44 |
+
Decompilation has a long history, centered on converting binary files into human-readable source code. Traditional tools such as Hex-Rays IDA Pro (Hex-Rays, 2024) and Ghidra (Ghidra, 2024) predominantly rely on analyzing a program's control flow graph (CFG) to perform this task (Brumley et al., 2013). These tools operate by scrutinizing instructions within assembly code to construct CFGs and identify common programming structures like if-else statements and loops (Wei et al., 2007). However, they rely on intricate and error-prone expert-built rule systems that frequently fail with optimized binary code, a common practice in commercial software development. Moreover, traditional tools often generate outputs that closely resemble assembly code representations, translating variables into registers and utilizing low-level operations such as goto statements. This output is not only challenging to comprehend but also occasionally cannot be recompiled (Liu and Wang, 2020).
|
| 45 |
+
|
| 46 |
+
Inspired by neural machine translation, researchers have begun to conceptualize decompilation as a translation task, wherein machine-level instructions are converted into readable source code using neural networks. Initial endeavors employing recurrent neural networks (RNNs) demonstrated limited success (Katz et al., 2018). However, recent advancements in natural language processing (NLP) have facilitated the application of pre-trained language models (LMs) in decompilation. Notable examples include BTC (Hosseini and Dolan-Gavitt, 2022), Slade (Armengol-Estapé et al., 2023), and Nova (Jiang et al., 2023), which mark significant strides in the field. Recently, Tan et al. (2024) created and released the first open-source large language models specifically for decompilation and established an evaluation benchmark that considers the re-compilability and re-executability of decompiled code.
|
| 47 |
+
|
| 48 |
+
# 3 Method
|
| 49 |
+
|
| 50 |
+
In this section, we introduce the Self-Constructed Context Decomposition method and Fine-grained Alignment Enhancement fine-tuning. Figures 2 and 3 illustrate the methods.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: The pipeline for Self-Constructed Context Decomposition operates as follows: when the LLM decomposes and generates compilable code, we compile this code to construct the context, and then use it to decompile the initial assembly code again.
|
| 54 |
+
|
| 55 |
+
# 3.1 Self-Constructed Context Decomposition
|
| 56 |
+
|
| 57 |
+
In this section, we introduce the Self-Constructed Context Decomposition (sc²dec) method designed to enhance the performance of decomposition models. The method recombines the decomposed code generated by the model to construct the context. The sc²dec method involves the following key steps, as the Figure 2 shows:
|
| 58 |
+
|
| 59 |
+
1. Decompile: Initially, the model decomposes the assembly code back to the target programming language. We call it the initial decomposition result.
|
| 60 |
+
2. Compile and Disassembly: Then we recompile the initial decomposition result to obtain the corresponding assembly code if the generated code is compileable.
|
| 61 |
+
3. Constructed Context: The self-constructed context is then formed by concatenating the generated C code with its corresponding assembly code.
|
| 62 |
+
4. Decompile Again: Decompile the assembly code with the self-constructed context again.
|
| 63 |
+
|
| 64 |
+
In this context, the assembly code precedes the C code, resembling an example in the context. The final input to the model is a concatenation of the self-constructed context (with assembly code first and C code second) and the original assembly code. This
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
Figure 3: An example of step-by-step decomposition is presented, where the training objective requires the model to generate C code progressively after each assembly block. Fine-tuning the model with this objective aids in learning the fine-grained correspondences between assembly and C code.
|
| 68 |
+
|
| 69 |
+
method leverages the additional context provided by the generated C code and its corresponding assembly code to improve the overall decompilation performance.
|
| 70 |
+
|
| 71 |
+
# 3.2 Fine-grained Alignment Enhancement
|
| 72 |
+
|
| 73 |
+
To enhance the model's ability to perceive the correspondence between assembly code and its corresponding source code, we propose a Fine-grained Alignment Enhancement (FAE) method, which constructs fine-grained alignment data between assembly code and source code derived from debug information. The method primarily includes two training objectives: the End-to-end Decomposition Objective and the Step-by-Step Decomposition Objective.
|
| 74 |
+
|
| 75 |
+
- End-to-end Decomposition Objective: In the end-to-end decomposition task, the model takes assembly code as input and directly generates the corresponding decomposed C code. The goal of this task is to enable the model to translate from assembly language to C language without any intermediate steps. This ob
|
| 76 |
+
|
| 77 |
+
jective aims to prevent catastrophic forgetting in the model. During training, we increase the context length and ensure that the same sample is not truncated, which enhances the model's ability to align assembly and C code.
|
| 78 |
+
|
| 79 |
+
- Step-by-step Decomposition Objective: As the Figure 3 shows, in the step-by-step decomposition process, an intermediate form containing both the assembly code and the corresponding C code is first generated, followed by the generation of the complete C code. This step-by-step approach allows the model to better understand the correspondence between assembly code and C code. Training the model with the step-by-step decomposition objective can enhance the model's ability to finely align assembly code with C code. It is important to note that this form is used only during training and not during inference.
|
| 80 |
+
|
| 81 |
+
During the training process, we employed two different training objectives to enhance the model's decompile performance: an end-to-end decompile objective and a step-by-step decompile objective. They all take assembly code as input, but their output formats are different.
|
| 82 |
+
|
| 83 |
+
# 3.2.1 Data Processing
|
| 84 |
+
|
| 85 |
+
By following the steps below, we can synthesize some fine-grained alignment training data. The synthesized data, as shown in Figure 3, is in a format of interleaved assembly and code output. We expect the model to learn finer-grained alignment between assembly and code from such data.
|
| 86 |
+
|
| 87 |
+
1. Compilation: We employed the "gcc" compiler to compile the selected function code into binary shared libraries at various optimization levels (including O0, O1, O2, and O3). The debug option was enabled during compilation to ensure the inclusion of DWARF debugging information in the compiled output. This debugging information is crucial for subsequent disassembly and parsing steps.
|
| 88 |
+
|
| 89 |
+
2. Disassembly: Subsequently, we used the "objdump" tool to disassemble the compiled binary shared libraries. The "-S" option was utilized to include source code in the disassembly output. Additionally, we used the "-source/comment=;," option toptides each line of source code with a ";," symbol, facilitating easier parsing in later stages.
|
| 90 |
+
|
| 91 |
+
3. Data Parsing: The disassembly process yielded a mixed output containing both assembly code and source code, organized in an alternating sequence of source code followed by assembly code. We parsed the output to extract the corresponding assembly and source code for each function, ensuring accurate alignment between the two.
|
| 92 |
+
4. Data Reorganization: Finally, we reorganized the parsed content into a format where the assembly code precedes the corresponding source code in an alternating sequence.
|
| 93 |
+
|
| 94 |
+
Through these steps, we constructed a high-quality training dataset that ensures each sample contains comprehensive source code information along with the corresponding assembly code. This dataset will be used to train our model, aiming to enhance its performance in tasks such as code understanding and compilation optimization.
|
| 95 |
+
|
| 96 |
+
# 4 Experiments
|
| 97 |
+
|
| 98 |
+
# 4.1 Evaluation
|
| 99 |
+
|
| 100 |
+
In this section, we will introduce the benchmark used in our evaluation process, Decompile-Eval (Tan et al., 2024), which is specifically designed to assess the decompilation capabilities of large language models.
|
| 101 |
+
|
| 102 |
+
The Decompile-Eval benchmark is adapted from the HumanEval benchmark, which includes 164 problems initially designed for code generation tasks. These problems were translated into the C programming language, and the corresponding assembly code was generated at four optimization levels (O0, O1, O2, and O3). The correctness of the decomposition results was tested using the test cases from HumanEval. The primary metrics of the Decompile-Eval benchmark are as follows:
|
| 103 |
+
|
| 104 |
+
- Re-compilability: This metric evaluates whether the decompiled code produced by our model can be successfully recompiled into executable binary without errors. A high recompiliability rate indicates that the decompiled code is syntactically correct and adheres to the constraints of the target language (in this case, C).
|
| 105 |
+
- Re-executability: This metric assesses the functional correctness of the decompiled code. Specifically, it measures whether the recom-piled binaries produce the expected outputs when executed. The correctness of the output
|
| 106 |
+
|
| 107 |
+
is determined using the testing methodology provided by the HumanEval dataset, ensuring a comprehensive evaluation of the logical accuracy of the decompiled code.
|
| 108 |
+
|
| 109 |
+
In our experiment, we pay more attention to the Re-executability, as it more accurately reflects the overall decompilation capability of the model.
|
| 110 |
+
|
| 111 |
+
# 4.2 Training Details
|
| 112 |
+
|
| 113 |
+
Implementation We utilize Lora (Hu et al., 2022) to fine-tune the llm4decompile-6.7b obtained on Hugging Face (Wolf et al., 2019), with rank set to 32, alpha set to 64 and target set to all projection layers $^{1}$ . The optimizer is AdamW (Loshchilov and Hutter, 2019), with a learning rate of 5e-5. The maximum sequence length is set to 16384, and the learning rate scheduler type is cosine, with a warm-up period of 20 steps. The training process was conducted for one epoch. LlamaFactory (Zheng et al., 2024) and FlashAttention 2 (Dao, 2024) were used for the fine-tuning of the model. All experiments were done with an A100-SXM4-80GB. We use greedy decoding for all experiments.
|
| 114 |
+
|
| 115 |
+
Training data We selected 10,000 samples from the train_real_compilable subset of Exebench (Armengol-Estapé et al., 2022) to synthesis the training data. The selected functions exclusively utilize the standard C library and do not include additional data structures. The training data were synthesized with gcc 11.4 provided by Ubuntu 22.04.
|
| 116 |
+
|
| 117 |
+
# 4.3 Baselines
|
| 118 |
+
|
| 119 |
+
We present several baselines in our experiments and demonstrate the effectiveness of our proposed methods.
|
| 120 |
+
|
| 121 |
+
# 4.3.1 Models
|
| 122 |
+
|
| 123 |
+
- GPT 4: One of the most powerful OpenAI models, known for its advanced language understanding and generation capabilities (OpenAI, 2023).
|
| 124 |
+
- deepseek-chat: A powerful conversational AI model from DeepSeek, excelling in generating coherent and contextually relevant dialogues (DeepSeek-AI, 2024).
|
| 125 |
+
- llm4decompile-6.7b: The 6.7B open-access decomposition LLM pre-trained on 15 billion
|
| 126 |
+
|
| 127 |
+
```txt
|
| 128 |
+
bool func0(int num){ if (num <= 1) { return false; } for (int i = 2; i * i <= num; i++) { if (num % i == 0) { return false; } } return true; }
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
Figure 4: The example for 1-shot learning. In this example, we have tried to cover common control logic such as if statements, loops, and early returns as much as possible. The example will be compiled with the same optimization level as the target assembly code.
|
| 132 |
+
|
| 133 |
+
tokens of C source code and the corresponding assembly code (Tan et al., 2024) $^2$ .
|
| 134 |
+
|
| 135 |
+
- llm4decompile-6.7b+FAE: The new model was obtained by applying the Fine-grained Alignment Enhancement method for further fine-tuning based on the llm4decompile-6.7b $^2$ .
|
| 136 |
+
|
| 137 |
+
# 4.3.2 Methods
|
| 138 |
+
|
| 139 |
+
- vanilla: Using specific prompts for different models to directly request decomposition.
|
| 140 |
+
|
| 141 |
+
Prompt For GPT-4 and Deepseek Chat
|
| 142 |
+
```txt
|
| 143 |
+
What is the C source code of $\leftrightarrow$ the assembly code below: ..asm <asm>
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
Prompt For 1lm4decompile
|
| 147 |
+
```txt
|
| 148 |
+
This is the assembly code: <asm>
|
| 149 |
+
```
|
| 150 |
+
|
| 151 |
+
```txt
|
| 152 |
+
What is the source code?
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
- 1-shot: We write a fixed example as the context (Brown et al., 2020). The example will be compiled with the same optimization level as the target assembly code. The example shown in Figure 4. In this example, we have tried to cover common control logic such as if statements, loops, and early returns as much as possible.
|
| 156 |
+
|
| 157 |
+
<table><tr><td rowspan="2">Method</td><td colspan="5">Re-Compilability</td><td colspan="5">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td colspan="11">GPT-4 (OpenAI, 2023)</td></tr><tr><td>vanilla</td><td>76.83</td><td>67.68</td><td>67.07</td><td>57.93</td><td>67.38</td><td>20.73</td><td>13.41</td><td>13.41</td><td>10.98</td><td>14.63</td></tr><tr><td>+sc2dec</td><td>76.22</td><td>67.03</td><td>65.24</td><td>56.10</td><td>66.15</td><td>32.93</td><td>20.12</td><td>19.51</td><td>13.41</td><td>21.49</td></tr><tr><td>1-shot</td><td>76.22</td><td>78.05</td><td>73.78</td><td>70.73</td><td>74.70</td><td>31.71</td><td>20.12</td><td>19.51</td><td>21.34</td><td>23.17</td></tr><tr><td>+sc2dec</td><td>74.39</td><td>76.22</td><td>71.95</td><td>68.90</td><td>72.87</td><td>40.24</td><td>25.61</td><td>23.78</td><td>23.17</td><td>28.20</td></tr><tr><td colspan="11">Deepseek Chat (DeepSeek-AI, 2024)</td></tr><tr><td>vanilla</td><td>62.20</td><td>51.83</td><td>47.56</td><td>45.73</td><td>51.83</td><td>10.37</td><td>5.49</td><td>4.88</td><td>5.49</td><td>6.55</td></tr><tr><td>+sc2dec</td><td>57.93</td><td>50.00</td><td>46.95</td><td>45.12</td><td>50.00</td><td>13.41</td><td>6.71</td><td>6.71</td><td>7.32</td><td>8.54</td></tr><tr><td>1-shot</td><td>67.68</td><td>70.73</td><td>64.63</td><td>56.71</td><td>64.94</td><td>13.41</td><td>10.37</td><td>7.93</td><td>7.32</td><td>9.76</td></tr><tr><td>+sc2dec</td><td>65.85</td><td>70.12</td><td>62.20</td><td>53.66</td><td>62.96</td><td>17.68</td><td>11.59</td><td>10.37</td><td>9.15</td><td>12.20</td></tr><tr><td colspan="11">llm4decompile-6.7b (Tan et al., 2024)</td></tr><tr><td>vanilla</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>92.68</td><td>92.80</td><td>90.12</td><td>93.41</td><td>92.26</td><td>71.34</td><td>47.56</td><td>45.98</td><td>41.71</td><td>51.65</td></tr><tr><td>1-shot</td><td>93.05</td><td>93.29</td><td>90.98</td><td>93.90</td><td>92.80</td><td>70.37</td><td>44.88</td><td>41.46</td><td>37.68</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>93.05</td><td>92.68</td><td>90.37</td><td>93.29</td><td>92.35</td><td>71.59</td><td>47.20</td><td>46.34</td><td>41.46</td><td>51.65</td></tr><tr><td>retrieval</td><td>94.02</td><td>88.05</td><td>84.51</td><td>85.12</td><td>87.93</td><td>65.73</td><td>32.68</td><td>38.66</td><td>36.22</td><td>43.32</td></tr><tr><td colspan="11">llm4decompile-6.7b + FAE</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr></table>
|
| 158 |
+
|
| 159 |
+
Table 1: The main results of different methods across four optimization levels (O0, O1, O2, O3), as well as their average scores (AVG). The results in bold represent the optimal performance, while those underlined indicate the second-best performance. More results can be found in the Table 5.
|
| 160 |
+
|
| 161 |
+
- retrieval: We use the retrieval method (BM25 (Lù, 2024)) to get the context. The context is generated by searching for the most similar assembly code in the training set.
|
| 162 |
+
- $\mathbf{sc}^2\mathbf{dec}$ : The self-constructed context decomposition we described in the Section 3.1.
|
| 163 |
+
- 1-shot+sc²dec: We apply the sc²dec on the 1-shot method. Note that the 1-shot example can only be applied to generate the initial decomposition result in Figure 2.
|
| 164 |
+
|
| 165 |
+
# 4.4 Results
|
| 166 |
+
|
| 167 |
+
In this section, we present and analyze the performance of different models. Our experiments aim to evaluate the impact of various techniques, including one-shot, self-constructed context decomposition, and fine-tuning, on the model's performance. The main results are shown in Table 1.
|
| 168 |
+
|
| 169 |
+
Performance of the Base Model Through a comparative analysis of the experimental results in Ta
|
| 170 |
+
|
| 171 |
+
ble 1, it is evident that different models exhibit significant differences in re-executability across various optimization levels (O0, O1, O2, O3). The base model, llm4decompile-6.7b, performs best at the O0 optimization level with a score of $70.24\%$ , but its performance gradually declines at other optimization levels, with an average score of $48.60\%$ . Among models not fine-tuned with decompilation tasks, GPT-4 achieved the best performance, with an average re-executability score of $14.64\%$ . Generally, their results on re-compilability metrics are significantly higher than their performance on re-executability metrics.
|
| 172 |
+
|
| 173 |
+
Context Sensitivity By comparing vanilla, 1-shot, and retrieval methods based on the llm4decompile-6.7b, it is observed that the model's performance can even decline after providing a sample. In contrast, the dynamic samples generated through our self-constructed context method yield an improvement in executability of over $2\%$
|
| 174 |
+
|
| 175 |
+
<table><tr><td rowspan="2">Method</td><td colspan="5">Re-Compilability</td><td colspan="5">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>sc2dec (O0)</td><td>92.68</td><td>92.20</td><td>91.71</td><td>92.32</td><td>92.23</td><td>70.24</td><td>48.90</td><td>47.68</td><td>42.93</td><td>51.83</td></tr><tr><td>sc2dec (O1)</td><td>92.68</td><td>91.59</td><td>93.54</td><td>92.93</td><td>92.68</td><td>68.41</td><td>48.54</td><td>47.44</td><td>43.05</td><td>51.86</td></tr><tr><td>sc2dec (O2)</td><td>92.68</td><td>92.20</td><td>91.71</td><td>92.32</td><td>92.23</td><td>67.80</td><td>48.90</td><td>47.68</td><td>42.93</td><td>51.68</td></tr><tr><td>sc2dec (O3)</td><td>92.68</td><td>91.59</td><td>92.93</td><td>92.32</td><td>92.38</td><td>67.80</td><td>47.07</td><td>47.80</td><td>43.41</td><td>51.52</td></tr></table>
|
| 176 |
+
|
| 177 |
+
Table 2: The results of our method across optimization levels. For cases such as "sc²dec (O0)", we assume that the optimization level of asm code is entirely unknown and select a specific optimization level to compile the code to construct the context.
|
| 178 |
+
|
| 179 |
+
```c
|
| 180 |
+
int func0(int a){ for (int i = 0; i * i * i <= abs(a); i++) if (i * i * i == abs(a)) return 1; return 0; } Source code
|
| 181 |
+
int func0(int n){ int i; if $(n < 0)$ n $=$ -n; for $(\mathrm{i} = 1;\mathrm{i}\ast \mathrm{i}\ast \mathrm{i} < = \mathrm{n};\mathrm{i} + + )$ if $(i*\bar{i}*i==n)$ return 1; return 0; } Decompile
|
| 182 |
+
int func0(int n){ int i; if $(n < 0)$ n $=$ -n; if $(n = = 0)$ return 1; for $(\mathrm{i} = 1;\mathrm{i}\ast \mathrm{i}\ast \mathrm{i} < = \mathrm{n};\mathrm{i} + + )$ if $(i*\bar{i}*i==n)$ return 1; return 0; } SC2Dec
|
| 183 |
+
```
|
| 184 |
+
|
| 185 |
+
Figure 5: A case study for $\mathrm{sc^2dec}$ , which is based on the llm4decompile-6.7b with FAE. By applying the $\mathrm{sc^2dec}$ method, the model detects and fixes the mismatch between the code and assembly.
|
| 186 |
+
|
| 187 |
+
before and after fine-tuning. This indicates that inappropriate samples may even have a detrimental effect in the decompilation domain, while our method achieves a nearly stable performance enhancement without the need for retrieval.
|
| 188 |
+
|
| 189 |
+
1-shot is a Strong Baseline As shown in Table 1, utilizing the 1-shot method significantly enhances the model's performance. Specifically, for GPT-4, the model's re-executability performance increased from $14.64\%$ to $23.17\%$ , an approximate improvement of $7\%$ . In the open-source model Deepseek Chat, performance improved from $6.55\%$ to $9.76\%$ ,
|
| 190 |
+
|
| 191 |
+
reflecting a $3.21\%$ enhancement. However, in the case of the llm4decompile model, which had already been trained on decompilation tasks, there was no performance improvement. Moreover, in the llm4decompile model fine-tuned with Fine-grained Alignment Enhancement, performance actually decreased from $50.88\%$ to $50.61\%$ , a reduction of approximately $0.27\%$ .
|
| 192 |
+
|
| 193 |
+
Sc2dec Brings Further Performance Improvement The Table 1 shows that applying sc2dec independently results in performance improvements of $6.86\%$ and $1.99\%$ on GPT-4 and Deepseek Chat, respectively. These improvements are lower than those achieved by the 1-shot method, likely due to the model's low Re-Compilability metric. In other words, a substantial portion of the code obtained through decompilation is un-compilable, which impedes the application of the sc2dec method. Furthermore, when combined with the 1-shot method, sc2dec can further enhance performance, achieving an additional $5\%$ improvement for GPT-4, bringing it to $28.20\%$ , and a $2.44\%$ improvement for Deepseek Chat, bringing it to $12.20\%$ . In the case of llm4decompile-6.7b, due to the models' relatively high Re-Compilability metric, the sc2dec method significantly outperformed the 1-shot method, increasing performance from $48.60\%$ to $51.65\%$ and from $50.88\%$ to $52.41\%$ .
|
| 194 |
+
|
| 195 |
+
Best Performance with Combined Methods As the Table 1 shows, by combining our Step-by-Step Decompile tasks and context-based decomposition methods, we ultimately achieved approximately a $3.90\%$ performance improvement, surpassing the performance of these methods when applied independently. This demonstrates that fine-tuning and self-construct context methods are orthogonal. Most notably, the combined method of fined
|
| 196 |
+
|
| 197 |
+
<table><tr><td rowspan="2">Model</td><td colspan="5">Re-Compilability</td><td colspan="5">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>w/o tune</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td colspan="11">FAE (End-to-End & Step-by-Step Decomposition Objective)</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr><tr><td colspan="11">End-to-End Decomposition Objective</td></tr><tr><td>vanilla</td><td>93.9</td><td>90.61</td><td>90.61</td><td>91.34</td><td>91.62</td><td>69.51</td><td>43.29</td><td>42.2</td><td>40.73</td><td>48.93</td></tr><tr><td>+sc2dec</td><td>92.8</td><td>90.24</td><td>90.00</td><td>90.12</td><td>90.79</td><td>71.34</td><td>46.10</td><td>43.78</td><td>42.44</td><td>50.91</td></tr><tr><td>1-shot</td><td>93.9</td><td>90.73</td><td>90.37</td><td>91.22</td><td>91.55</td><td>69.51</td><td>44.02</td><td>42.68</td><td>40.61</td><td>49.21</td></tr><tr><td>+sc2dec</td><td>92.8</td><td>90.24</td><td>89.76</td><td>90.00</td><td>90.7</td><td>71.22</td><td>46.46</td><td>44.27</td><td>42.56</td><td>51.13</td></tr></table>
|
| 198 |
+
|
| 199 |
+
Table 3: The results of ablation study. All results are based on the llm4decompile-6.7b model.
|
| 200 |
+
|
| 201 |
+
grained alignment enhancement and self-construct context decomposition achieves the highest scores across all optimization levels expect "O0", with scores of $48.54\%$ , $47.56\%$ , and $43.29\%$ at the O1, O2, and O3 levels, respectively, and an overall average score of $52.41\%$ .
|
| 202 |
+
|
| 203 |
+
# 4.5 Analysis
|
| 204 |
+
|
| 205 |
+
In this section, we will further analyze the experimental results to study the effectiveness and sensitivity of our method:
|
| 206 |
+
|
| 207 |
+
Mismatched Optimization Levels Leads to Performance Degradation As the Table 2 shows, the performance can degrade by $1\%$ to $2\%$ overall when constructing contexts that mismatch the optimization levels of the target assembly code. However, specific optimization levels may exhibit different behaviors. For instance, using a fixed O3 optimization level to construct contexts while decompiling assembly optimized with O2 does not result in significant performance degradation and even better. In practical scenarios, using O3 to construct contexts for binaries with unknown optimization levels might be a reasonable choice.
|
| 208 |
+
|
| 209 |
+
Case study of $\mathbf{sc}^2\mathbf{dec}$ As the Figure 5 shows, the compiler has expanded the abs function, reducing the overhead of function calls. The model initially generated a piece of compilable but incorrect code during direct decompilation, omitting the case where the variable $n$ equals 0. We compiled and disassembled this code to construct a new sample. By applying the $\mathrm{sc^2dec}$ method with the context, the model successfully identified the missing part
|
| 210 |
+
|
| 211 |
+
in the short segment of assembly code and generated the correct code, thus rectifying the error from the previous inference.
|
| 212 |
+
|
| 213 |
+
Contribution of FAE The results in Table 1 show that the application of Fine-grained Alignment Enhancement (FAE) for further fine-tuning the model significantly enhanced its re-executability performance across all optimization levels except "O0". Notably, at optimization levels O2 and O3, the scores improved by $5.12\%$ and $4.27\%$ , reaching $45.73\%$ and $42.32\%$ , respectively. The average performance increased by $2.28\%$ , achieving $50.88\%$ . This demonstrates the effectiveness of the Fine-grained Alignment Enhancement method.
|
| 214 |
+
|
| 215 |
+
Ablation Study of FAE The results of ablation experiments in Table 3 have demonstrated the effectiveness of our proposed Step-by-Step Decompile training objective. Removing the training objective results in approximately a $2\%$ decline in Re-Executability performance, regardless of whether the $\mathrm{sc}^2$ dec method is used, and notably, a $3.78\%$ decline at the "O2" optimization level. However, the performance of the 1-shot remains unaffected, supporting our hypothesis that the mismatch between the training data form and the inference form leads to performance degradation. Furthermore, retaining only the End-to-end Decompilation training objective still yields little performance improvement, about $0.33\%$ . This improvement can be attributed to the longer context provided during training, as the samples are not truncated during training, allowing the model to fully observe the assembly code and its corresponding C code.
|
| 216 |
+
|
| 217 |
+
# 5 Conclusion
|
| 218 |
+
|
| 219 |
+
In this paper, we introduce two methods based on the characteristics of the decompilation task: Self-Constructed Context Decomposition, which leverages the compileability of decomposition results to construct better contexts, and Fine-grained Alignment Enhancement, which fine-tunes the model using fine-grained alignment data between assembly code and source code derived from debug information. By integrating these methods, we achieved a $3.90\%$ improvement in decompilation performance, reaching a new state-of-the-art level of $52.41\%$ .
|
| 220 |
+
|
| 221 |
+
# Acknowledge
|
| 222 |
+
|
| 223 |
+
We gratefully acknowledge the support of the National Natural Science Foundation of China (NSFC) via grant 62236004, 62206078, 62441603 and 62476073.
|
| 224 |
+
|
| 225 |
+
# Limitations
|
| 226 |
+
|
| 227 |
+
The $\mathrm{sc^2dec}$ depends on the decomposed code generated by the model. If the decomposed code cannot be recompiled, $\mathrm{sc^2dec}$ will not be able to benefit from it, necessitating that the decomposed code has high re-compilability performance. For Fine-grained Alignment Enhancement, we created a Step-by-Step Decompile training objective, training with only 10,000 samples across four optimization levels (O0-O3), without validating its performance on larger datasets or bigger models. Moreover, fine-tuning led to a further decline in performance in the 1-shot scenario.
|
| 228 |
+
|
| 229 |
+
# Potential risks
|
| 230 |
+
|
| 231 |
+
Decompilation is a technique that converts compiled binary code back into human-readable source code. While decompilation can be legal and useful in certain contexts, it also entails several potential risks. The primary potential risks are as follows:
|
| 232 |
+
|
| 233 |
+
- Intellectual Property Infringement: Decompilation may violate the copyright and licensing agreements of software. Unauthorized decomposition can lead to copyright infringement, thereby instigating legal disputes.
|
| 234 |
+
- Security Risks: Decomposed code may expose the internal structure and implementation details of the software, providing attack vectors for hackers. Malicious actors can exploit this information to identify and exploit vulnerabilities in the software.
|
| 235 |
+
|
| 236 |
+
- Ethical Concerns: Decompiling and analyzing another's code can be considered unethical, especially when done without authorization.
|
| 237 |
+
|
| 238 |
+
# References
|
| 239 |
+
|
| 240 |
+
Jordi Armengol-Estapé, Jackson Woodruff, Alexander Brauckmann, José Wesley de Souza Magalhães, and Michael F. P. O’Boyle. 2022. Exebench: An ml-scale dataset of executable c functions. In Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming, MAPS 2022, page 50–59, New York, NY, USA. Association for Computing Machinery.
|
| 241 |
+
Jordi Armengol-Estape, Jackson Woodruff, Chris Cummins, and Michael F. P. O'Boyle. 2023. Slade: A portable small language model decoder for optimized assembler. CoRR, abs/2305.12520.
|
| 242 |
+
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. Preprint, arXiv:2005.14165.
|
| 243 |
+
David Brumley, JongHyup Lee, Edward J. Schwartz, and Maverick Woo. 2013. Native x86 decomposition using semantics-preserving structural analysis and iterative control-flow structuring. In Proceedings of the 22th USENIX Security Symposium, Washington, DC, USA, August 14-16, 2013, pages 353-368. USENIX Association.
|
| 244 |
+
Tri Dao. 2024. FlashAttention-2: Faster attention with better parallelism and work partitioning. In International Conference on Learning Representations (ICLR).
|
| 245 |
+
DeepSeek-AI. 2024. Deepseek-v2: A strong, economical, and efficient mixture-of-experts language model. Preprint, arXiv:2405.04434.
|
| 246 |
+
Ghidra. 2024. Ghidra software reverse engineering framework.
|
| 247 |
+
Daya Guo, Qihao Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Y. Wu, Y. K. Li, Fuli Luo, Yingfei Xiong, and Wenfeng Liang. 2024. Deepseek-coder: When the large language model meets programming – the rise of code intelligence. Preprint, arXiv:2401.14196.
|
| 248 |
+
Hex-Rays. 2024. Ida pro: a cross-platform multiprocessor disassembler and debugger.
|
| 249 |
+
|
| 250 |
+
Iman Hosseini and Brendan Dolan-Gavitt. 2022. Beyond the C: retargetable decompilation using neural machine translation. CoRR, abs/2212.08950.
|
| 251 |
+
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.
|
| 252 |
+
Nan Jiang, Chengxiao Wang, Kevin Liu, Xiangzhe Xu, Lin Tan, and Xiangyu Zhang. 2023. Nova+: Generative language models for binaries. Preprint, arXiv:2311.13721.
|
| 253 |
+
Deborah S. Katz, Jason Ruchti, and Eric M. Schulte. 2018. Using recurrent neural networks for decompilation. In 25th International Conference on Software Analysis, Evolution and Reengineering, SANER 2018, Campobasso, Italy, March 20-23, 2018, pages 346-356. IEEE Computer Society.
|
| 254 |
+
Jeremy Lacomis, Pengcheng Yin, Edward J. Schwartz, Miltiadis Allamanis, Claire Le Goues, Graham Neubig, and Bogdan Vasilescu. 2019. DIRE: A neural approach to decompiled identifier naming. In 34th IEEE/ACM International Conference on Automated Software Engineering, ASE 2019, San Diego, CA, USA, November 11-15, 2019, pages 628-639. IEEE.
|
| 255 |
+
Thomas Lippincott. 2020. Starcoder: A general neural ensemble technique to support traditional scholarship, illustrated with a study of the post-atlantic slave trade. In 15th Annual International Conference of the Alliance of Digital Humanities Organizations, DH 2020, Ottawa, Canada, July 20-25, 2020, Conference Abstracts.
|
| 256 |
+
Zhibo Liu and Shuai Wang. 2020. How far we have come: testing decomposition correctness of C decompliers. In ISSTA '20: 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual Event, USA, July 18-22, 2020, pages 475-487. ACM.
|
| 257 |
+
Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net.
|
| 258 |
+
Xing Han Lu. 2024. Bm25s: Orders of magnitude faster lexical search via eager sparse scoring. Preprint, arXiv:2407.03618.
|
| 259 |
+
OpenAI. 2022. ChatGPT.
|
| 260 |
+
OpenAI. 2023. GPT-4 Technical Report. CoRR, abs/2303.08774.
|
| 261 |
+
Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, Artyom Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton-Ferrer, Aaron Grattaflori, Wenhan Xiong, Alexandre Défossez, Jade Copet,
|
| 262 |
+
|
| 263 |
+
Faisal Azhar, Hugo Touvron, Louis Martin, Nicolas Usunier, Thomas Scialom, and Gabriel Synnaeve. 2023. Code llama: Open foundation models for code. CoRR, abs/2308.12950.
|
| 264 |
+
Hanzhuo Tan, Qi Luo, Jing Li, and Yuqun Zhang. 2024. Llm4decompile: Decompiling binary code with large language models. Preprint, arXiv:2403.05286.
|
| 265 |
+
Tao Wei, Jian Mao, Wei Zou, and Yu Chen. 2007. A new algorithm for identifying loops in decomposition. In Static Analysis, 14th International Symposium, SAS 2007, Kongens Lyngby, Denmark, August 22-24, 2007, Proceedings, volume 4634 of Lecture Notes in Computer Science, pages 170-183. Springer.
|
| 266 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. 2019. Huggingface's transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771.
|
| 267 |
+
Wai Kin Wong, Huaijin Wang, Zongjie Li, Zhibo Liu, Shuai Wang, Qiyi Tang, Sen Nie, and Shi Wu. 2023. Refining decomposed C code with large language models. CoRR, abs/2310.06530.
|
| 268 |
+
Frank F. Xu, Uri Alon, Graham Neubig, and Vincent Josua Hellendoorn. 2022. A systematic evaluation of large language models of code. In Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming, MAPS 2022, page 1-10, New York, NY, USA. Association for Computing Machinery.
|
| 269 |
+
Xiangzhe Xu, Zhuo Zhang, Shiwei Feng, Yapeng Ye, Zian Su, Nan Jiang, Siyuan Cheng, Lin Tan, and Xiangyu Zhang. 2023. Lmpa: Improving decomposition by synergy of large language model and program analysis. CoRR, abs/2306.02546.
|
| 270 |
+
Zhengran Zeng, Hanzhuo Tan, Haotian Zhang, Jing Li, Yuqun Zhang, and Lingming Zhang. 2022. An extensive study on pre-trained models for program understanding and generation. In ISSTA '22: 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual Event, South Korea, July 18 - 22, 2022, pages 39-51. ACM.
|
| 271 |
+
Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyan Luo, and Yongqiang Ma. 2024. Llamafactory: Unified efficient fine-tuning of $100+$ language models. arXiv preprint arXiv:2403.13372.
|
| 272 |
+
|
| 273 |
+
# A Training examples
|
| 274 |
+
|
| 275 |
+
Figure 6: The training example of end-to-end decompile objective.
|
| 276 |
+
```txt
|
| 277 |
+
User: # This is the assembly: <func0>:
|
| 278 |
+
mov %edi,%eax
|
| 279 |
+
and $0x1,%eax
|
| 280 |
+
ret
|
| 281 |
+
# What is the source code?
|
| 282 |
+
Assistant: bool func0(int num) {
|
| 283 |
+
return num % 2 != 0;
|
| 284 |
+
}
|
| 285 |
+
```
|
| 286 |
+
|
| 287 |
+
Figure 7: The training example of step-by-step decompile objective. Note that the workflow is only for training.
|
| 288 |
+
```txt
|
| 289 |
+
User: Add inline comments that contain the corresponding C code for the assembly code first, then write the equivalent C function. ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ``
|
| 290 |
+
`` `` `````````````````````````````````````````````````````````````````````````````````````````````````````
|
| 291 |
+
Assistant: Here is the assembly code with inline comments containing the corresponding C code:
|
| 292 |
+
``` ` ` ` ` ` ` `
|
| 293 |
+
```
|
| 294 |
+
<func0>:
|
| 295 |
+
mov %edi,%eax
|
| 296 |
+
and $0x1,%eax
|
| 297 |
+
ret
|
| 298 |
+
```
|
| 299 |
+
Assistant: Here is the assembly code with inline comments containing the corresponding C code:
|
| 300 |
+
``` ` ` ` ` `
|
| 301 |
+
```
|
| 302 |
+
<func0>:
|
| 303 |
+
; bool func0(int num) {
|
| 304 |
+
mov %edi,%eax
|
| 305 |
+
and $0x1,%eax
|
| 306 |
+
; return num % 2 != 0;
|
| 307 |
+
ret
|
| 308 |
+
}
|
| 309 |
+
```
|
| 310 |
+
And here is the equivalent C function:
|
| 311 |
+
``` c
|
| 312 |
+
bool func0(int num) {
|
| 313 |
+
return num % 2 != 0;
|
| 314 |
+
}
|
| 315 |
+
```
|
| 316 |
+
|
| 317 |
+
# B Extra Results
|
| 318 |
+
|
| 319 |
+
The Model is More Sensitive to Compiler Series than to Versions: As the Table 4 shows, using a compiler different from the one used during training to build the context can lead to significant performance degradation. The model performs better when the context is built using the GCC compiler series, whereas the performance is slightly worse when using the clang series. This may be due to the fact that the context used during both the continued pre-training and fine-tuning stages was constructed with the GCC compiler series. When different versions of GCC are used for construction, the performance of $\mathrm{sc^2dec}$ stabilizes around $52\%$ for the fine-tuned model except "x86-64 gcc 14.1". In contrast, when the context is built using the clang series, the performance of $\mathrm{sc^2dec}$ is slightly lower and more consistent, stabilizing around $51\%$ for the fine-tuned model.
|
| 320 |
+
|
| 321 |
+
<table><tr><td rowspan="2">Compiler</td><td colspan="5">Re-Compilability</td><td colspan="5">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td>x86-64 gcc 10.5</td><td>92.07</td><td>90.98</td><td>91.71</td><td>92.32</td><td>91.77</td><td>70.85</td><td>47.32</td><td>47.80</td><td>43.05</td><td>52.26</td></tr><tr><td>x86-64 gcc 11.4</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>48.66</td><td>47.68</td><td>42.68</td><td>52.47</td></tr><tr><td>x86-64 gcc 12.3</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>47.68</td><td>46.95</td><td>42.56</td><td>52.01</td></tr><tr><td>x86-64 gcc 13.3</td><td>92.07</td><td>91.59</td><td>92.32</td><td>92.32</td><td>92.07</td><td>70.85</td><td>47.93</td><td>46.59</td><td>42.68</td><td>52.01</td></tr><tr><td>x86-64 gcc 14.1</td><td>92.07</td><td>91.83</td><td>92.44</td><td>92.56</td><td>92.23</td><td>70.85</td><td>47.07</td><td>45.73</td><td>41.95</td><td>51.40</td></tr><tr><td>x86-64 clang 14.0.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.05</td><td>45.73</td><td>42.44</td><td>51.31</td></tr><tr><td>x86-64 clang 15.0.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.29</td><td>45.73</td><td>42.32</td><td>51.34</td></tr><tr><td>x86-64 clang 16.0.0</td><td>92.68</td><td>92.2</td><td>93.66</td><td>93.17</td><td>92.93</td><td>69.02</td><td>48.05</td><td>46.46</td><td>42.32</td><td>51.46</td></tr><tr><td>x86-64 clang 17.0.1</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.05</td><td>46.71</td><td>42.32</td><td>51.52</td></tr><tr><td>x86-64 clang 18.1.0</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>69.02</td><td>48.17</td><td>46.46</td><td>42.32</td><td>51.49</td></tr></table>
|
| 322 |
+
|
| 323 |
+
Table 4: The re-executability of differnet models across different compilers. We selected the popular three versions of both the clang and gcc series in Compiler Explorer. The compiler of Compiler Explorer may differ from the compilers provided by Ubuntu in some default compilation options, which might result in slight differences in the generated assembly code.
|
| 324 |
+
|
| 325 |
+
<table><tr><td rowspan="2">Method</td><td colspan="5">Re-Compilability</td><td colspan="5">Re-Executability</td></tr><tr><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td><td>O0</td><td>O1</td><td>O2</td><td>O3</td><td>AVG</td></tr><tr><td colspan="11">GPT-4 (OpenAI, 2023)</td></tr><tr><td>vanilla</td><td>76.83</td><td>67.68</td><td>67.07</td><td>57.93</td><td>67.38</td><td>20.73</td><td>13.41</td><td>13.41</td><td>10.98</td><td>14.63</td></tr><tr><td>+sc2dec</td><td>76.22</td><td>67.03</td><td>65.24</td><td>56.10</td><td>66.15</td><td>32.93</td><td>20.12</td><td>19.51</td><td>13.41</td><td>21.49</td></tr><tr><td>1-shot</td><td>76.22</td><td>78.05</td><td>73.78</td><td>70.73</td><td>74.70</td><td>31.71</td><td>20.12</td><td>19.51</td><td>21.34</td><td>23.17</td></tr><tr><td>+sc2dec</td><td>74.39</td><td>76.22</td><td>71.95</td><td>68.90</td><td>72.87</td><td>40.24</td><td>25.61</td><td>23.78</td><td>23.17</td><td>28.20</td></tr><tr><td colspan="11">GPT-3.5 Turbo (OpenAI, 2022)</td></tr><tr><td>vanilla</td><td>20.73</td><td>25.00</td><td>29.27</td><td>21.95</td><td>24.24</td><td>4.27</td><td>3.66</td><td>3.05</td><td>3.05</td><td>3.51</td></tr><tr><td>+sc2dec</td><td>18.29</td><td>22.56</td><td>28.66</td><td>20.12</td><td>22.41</td><td>5.49</td><td>3.66</td><td>3.66</td><td>4.27</td><td>4.27</td></tr><tr><td>1-shot</td><td>49.39</td><td>46.34</td><td>42.07</td><td>40.85</td><td>44.66</td><td>10.37</td><td>7.32</td><td>6.10</td><td>5.49</td><td>7.31</td></tr><tr><td>+sc2dec</td><td>42.07</td><td>42.68</td><td>36.59</td><td>34.15</td><td>38.87</td><td>12.20</td><td>9.15</td><td>6.71</td><td>7.93</td><td>8.99</td></tr><tr><td colspan="11">Deepseek Chat (DeepSeek-AI, 2024)</td></tr><tr><td>vanilla</td><td>62.20</td><td>51.83</td><td>47.56</td><td>45.73</td><td>51.83</td><td>10.37</td><td>5.49</td><td>4.88</td><td>5.49</td><td>6.55</td></tr><tr><td>+sc2dec</td><td>57.93</td><td>50.00</td><td>46.95</td><td>45.12</td><td>50.00</td><td>13.41</td><td>6.71</td><td>6.71</td><td>7.32</td><td>8.54</td></tr><tr><td>1-shot</td><td>67.68</td><td>70.73</td><td>64.63</td><td>56.71</td><td>64.94</td><td>13.41</td><td>10.37</td><td>7.93</td><td>7.32</td><td>9.76</td></tr><tr><td>+sc2dec</td><td>65.85</td><td>70.12</td><td>62.20</td><td>53.66</td><td>62.96</td><td>17.68</td><td>11.59</td><td>10.37</td><td>9.15</td><td>12.20</td></tr><tr><td colspan="11">Deepseek Coder (Guo et al., 2024)</td></tr><tr><td>vanilla</td><td>66.46</td><td>57.93</td><td>47.56</td><td>51.83</td><td>55.95</td><td>9.15</td><td>6.10</td><td>6.71</td><td>6.98</td><td>7.01</td></tr><tr><td>+sc2dec</td><td>62.80</td><td>54.27</td><td>43.29</td><td>50.00</td><td>52.59</td><td>12.20</td><td>7.93</td><td>9.15</td><td>8.54</td><td>9.45</td></tr><tr><td>1-shot</td><td>57.93</td><td>53.66</td><td>52.44</td><td>48.17</td><td>53.05</td><td>11.59</td><td>10.37</td><td>8.54</td><td>7.93</td><td>9.60</td></tr><tr><td>+sc2dec</td><td>56.10</td><td>51.83</td><td>51.22</td><td>46.34</td><td>51.37</td><td>15.24</td><td>11.58</td><td>10.37</td><td>8.54</td><td>11.43</td></tr><tr><td colspan="11">llm4decompile-6.7b (Tan et al., 2024)</td></tr><tr><td>vanilla</td><td>92.80</td><td>93.05</td><td>90.73</td><td>94.02</td><td>92.65</td><td>70.24</td><td>45.49</td><td>40.61</td><td>38.05</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>92.68</td><td>92.80</td><td>90.12</td><td>93.41</td><td>92.26</td><td>71.34</td><td>47.56</td><td>45.98</td><td>41.71</td><td>51.65</td></tr><tr><td>1-shot</td><td>93.05</td><td>93.29</td><td>90.98</td><td>93.90</td><td>92.80</td><td>70.37</td><td>44.88</td><td>41.46</td><td>37.68</td><td>48.60</td></tr><tr><td>+sc2dec</td><td>93.05</td><td>92.68</td><td>90.37</td><td>93.29</td><td>92.35</td><td>71.59</td><td>47.20</td><td>46.34</td><td>41.46</td><td>51.65</td></tr><tr><td colspan="11">llm4decompile-6.7b + FAE</td></tr><tr><td>vanilla</td><td>92.68</td><td>92.44</td><td>93.66</td><td>93.17</td><td>92.99</td><td>67.80</td><td>47.68</td><td>45.73</td><td>42.32</td><td>50.88</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.59</td><td>91.71</td><td>92.32</td><td>91.92</td><td>70.24</td><td>48.54</td><td>47.56</td><td>43.29</td><td>52.41</td></tr><tr><td>1-shot</td><td>92.68</td><td>92.32</td><td>93.66</td><td>92.80</td><td>92.87</td><td>67.68</td><td>47.20</td><td>45.61</td><td>41.95</td><td>50.61</td></tr><tr><td>+sc2dec</td><td>92.07</td><td>91.71</td><td>91.46</td><td>91.95</td><td>91.80</td><td>70.24</td><td>48.05</td><td>47.20</td><td>43.17</td><td>52.16</td></tr></table>
|
| 326 |
+
|
| 327 |
+
Table 5: The extra results of different methods across four optimization levels (O0, O1, O2, O3), as well as their average scores (AVG). The results in bold represent the optimal performance, while those underlined indicate the second-best performance.
|
2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f5418f7ea394f7fed48fd012e45d836ff391dff7b243e714c79e4f8a6a55f82
|
| 3 |
+
size 871787
|
2024/Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/7e26119d-5c03-4bda-95f0-4a298ab50b80_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/7e26119d-5c03-4bda-95f0-4a298ab50b80_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/7e26119d-5c03-4bda-95f0-4a298ab50b80_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8bf0b43acc827a60c831191cb2fa6cd51e18624fd9c8a05b5cb731a7fb2232ca
|
| 3 |
+
size 681335
|
2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc619ede67e572ff67f8a630dde7040018fbfb4679d983a85a3a9b0f76a3dc2c
|
| 3 |
+
size 2026732
|
2024/Self-Distillation for Model Stacking Unlocks Cross-Lingual NLU in 200+ Languages/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Self-Evaluation of Large Language Model based on Glass-box Features/f272d6b4-0f30-498a-aa3d-937a38ef3871_content_list.json
ADDED
|
@@ -0,0 +1,1387 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Self-Evaluation of Large Language Model based on Glass-box Features",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
129,
|
| 8 |
+
79,
|
| 9 |
+
867,
|
| 10 |
+
99
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Hui Huang $^{1}$ , Yingqi $\\mathrm{Qu}^{2}$ , Jing Liu $^{2}$ , Muyun Yang $^{1\\boxtimes}$ , Bing $\\mathrm{Xu}^{1\\boxtimes}$ , Tiejun Zhao $^{1}$ , Wenpeng Lu $^{3}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
220,
|
| 19 |
+
105,
|
| 20 |
+
781,
|
| 21 |
+
143
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{1}$ Faculty of Computing, Harbin Institute of Technology, Harbin, China $^{2}$ Baidu Inc., Beijing, China",
|
| 28 |
+
"bbox": [
|
| 29 |
+
216,
|
| 30 |
+
143,
|
| 31 |
+
784,
|
| 32 |
+
175
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "<sup>3</sup>Key Laboratory of Computing Power Network and Information Security, Ministry of Education, Shandong Computer Science Center, Qilu University of Technology, Jinan, China huanghui@stu.hit.edu.cn, {quyingqi, liujing46}@baidu.com, {yangmuyun, hitxb, tjzhao}@hit.edu.cn, lwp@qlu.edu.cn;",
|
| 39 |
+
"bbox": [
|
| 40 |
+
107,
|
| 41 |
+
177,
|
| 42 |
+
892,
|
| 43 |
+
244
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
252,
|
| 54 |
+
339,
|
| 55 |
+
266
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "The proliferation of open-source Large Language Models (LLMs) underscores the pressing need for evaluation methods. Existing works primarily rely on external evaluators, focusing on training and prompting strategies. However, a crucial aspect - model-aware glass-box features - is overlooked. In this study, we explore the utility of glass-box features under the scenario of self-evaluation, namely applying an LLM to evaluate its own output. We investigate various glass-box feature groups and discovered that the softmax distribution serves as a reliable quality indicator for self-evaluation. Experimental results on public benchmarks validate the feasibility of self-evaluation of LLMs using glass-box features<sup>1</sup>.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
141,
|
| 64 |
+
280,
|
| 65 |
+
460,
|
| 66 |
+
507
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
114,
|
| 76 |
+
520,
|
| 77 |
+
260,
|
| 78 |
+
536
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Recently, as the Large Language Models (LLMs) brings a storm to the area of artificial intelligence, evaluating the quality of LLM outputs also draws a lot of research concentration. As the ability of LLMs develop beyond limitation, it is essential to evaluate them from a comprehensive and scalable perspective. However, traditional evaluation metrics for generative models, such as BLEU and ROUGE, only capture limited aspects of a model's performance (Mathur et al., 2020).",
|
| 85 |
+
"bbox": [
|
| 86 |
+
112,
|
| 87 |
+
546,
|
| 88 |
+
487,
|
| 89 |
+
706
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Some research has proposed language model-based evaluation (Li et al., 2023b; Zheng et al., 2023), leveraging proprietary LLMs such as GPT-3.5 or GPT4 (Achiam et al., 2023), to evaluate the LLM's outputs. However, relying on external API for evaluation may introduce consideration about privacy leakage, and the opacity of API models also challenges the evaluation reproducibility. Other works propose to fine-tune open-source models as specialized evaluators (Wang et al., 2024; Zhu et al., 2023; Li et al., 2023a). However, constrained",
|
| 96 |
+
"bbox": [
|
| 97 |
+
112,
|
| 98 |
+
708,
|
| 99 |
+
489,
|
| 100 |
+
883
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "by the capability of foundation model, these finetuned evaluators severely underperform GPT4 on generalizability and fairness (Huang et al., 2024).",
|
| 107 |
+
"bbox": [
|
| 108 |
+
507,
|
| 109 |
+
253,
|
| 110 |
+
884,
|
| 111 |
+
300
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In this work, we take a novel approach to LLM evaluation: Is LLM capable of self-evaluation? To answer this, we delve into the utility of glass-box features, namely the useful information that can be extracted from the model as a by-product of generation. Concretely, we explore three groups of glass-box features: 1) softmax distribution, 2) uncertainty estimation and 3) attention distribution. Our findings reveal that manipulating the softmax distribution by calculating its entropy and variance exhibits a strong correlation with annotated evaluation results. Furthermore, we propose two strategies to enhance the evaluation by incorporating features derived from references.",
|
| 118 |
+
"bbox": [
|
| 119 |
+
507,
|
| 120 |
+
302,
|
| 121 |
+
884,
|
| 122 |
+
526
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "We conduct our experiments on two widely used LLM evaluation benchmarks, MT-Bench (Zheng et al., 2023) and Vicuna-Bench (Chiang et al., 2023). Experimental results notify that the LLM is capable of providing accurate self-evaluation, surpassing proprietary evaluators such as GPT-3.5 and Auto-J. The self-evaluation capability of LLMs holds promise for various applications, ranging from self-reflection to reward modeling.",
|
| 129 |
+
"bbox": [
|
| 130 |
+
507,
|
| 131 |
+
527,
|
| 132 |
+
882,
|
| 133 |
+
674
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 Glass-box Features for Self-Evaluation",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
507,
|
| 143 |
+
688,
|
| 144 |
+
877,
|
| 145 |
+
703
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 0
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "We assume an LLM architecture based on Transformer networks (Vaswani et al., 2017), which is currently the mainstream LLM architecture. In this section, we introduce the three groups of glass-box features for self-evaluation.",
|
| 152 |
+
"bbox": [
|
| 153 |
+
507,
|
| 154 |
+
717,
|
| 155 |
+
882,
|
| 156 |
+
796
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 0
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2.1 Softmax Distribution",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
507,
|
| 166 |
+
810,
|
| 167 |
+
721,
|
| 168 |
+
826
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 0
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "Given an instruction $x$ , the probability of generating response $y$ can be factorized as:",
|
| 175 |
+
"bbox": [
|
| 176 |
+
507,
|
| 177 |
+
834,
|
| 178 |
+
882,
|
| 179 |
+
866
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 0
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "equation",
|
| 185 |
+
"text": "\n$$\n\\operatorname {S e n t P r o b} = \\prod_ {t = 1} ^ {T} p \\left(y _ {t} \\mid y _ {< t}, x, \\theta\\right)\n$$\n",
|
| 186 |
+
"text_format": "latex",
|
| 187 |
+
"bbox": [
|
| 188 |
+
579,
|
| 189 |
+
878,
|
| 190 |
+
808,
|
| 191 |
+
921
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 0
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "page_footnote",
|
| 197 |
+
"text": "1Codes are openly available at https://github. com/HuihuiChyan/SelfEval",
|
| 198 |
+
"bbox": [
|
| 199 |
+
112,
|
| 200 |
+
891,
|
| 201 |
+
489,
|
| 202 |
+
917
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 0
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "page_number",
|
| 208 |
+
"text": "5813",
|
| 209 |
+
"bbox": [
|
| 210 |
+
480,
|
| 211 |
+
927,
|
| 212 |
+
519,
|
| 213 |
+
940
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 0
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "footer",
|
| 219 |
+
"text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 5813-5820 November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 220 |
+
"bbox": [
|
| 221 |
+
216,
|
| 222 |
+
945,
|
| 223 |
+
779,
|
| 224 |
+
972
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 0
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "where $\\theta$ represents model parameters and $T$ is the response length. However, the model would always select from the most probable tokens during decoding regardless of their quality, leading to biased evaluation. Therefore, we propose two metrics to exploit the softmax distribution for evaluation.",
|
| 231 |
+
"bbox": [
|
| 232 |
+
112,
|
| 233 |
+
84,
|
| 234 |
+
487,
|
| 235 |
+
179
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 1
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "First, we compute the entropy of softmax output distribution over target vocabulary of size $V$ at each decoding step to obtain a sentence-level measure:",
|
| 242 |
+
"bbox": [
|
| 243 |
+
112,
|
| 244 |
+
181,
|
| 245 |
+
485,
|
| 246 |
+
229
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 1
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "equation",
|
| 252 |
+
"text": "\n$$\n\\text {S o f t m a x - E n t} = - \\frac {1}{T} \\sum_ {t = 1} ^ {T} \\sum_ {v = 1} ^ {V} p \\left(y _ {t} ^ {v}\\right) \\log p \\left(y _ {t} ^ {v}\\right)\n$$\n",
|
| 253 |
+
"text_format": "latex",
|
| 254 |
+
"bbox": [
|
| 255 |
+
137,
|
| 256 |
+
241,
|
| 257 |
+
460,
|
| 258 |
+
284
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 1
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "where $p(y_{t})$ represents the conditional distribution $p(y_{t} | x, y_{<t}, \\theta)$ . If the majority of the probability mass is concentrated on a limited number of vocabulary words, it indicates that the model is confident and the response is more likely to be accurate. Conversely, if the softmax probabilities resemble a uniform distribution, where selecting any word from the vocabulary is equally probable, the quality of the resulting response is expected to be low.",
|
| 265 |
+
"bbox": [
|
| 266 |
+
112,
|
| 267 |
+
288,
|
| 268 |
+
487,
|
| 269 |
+
434
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 1
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "Second, we hypothesize that the dispersion of probabilities of individual words might provide useful information that is inevitably lost when taking an average. To formalize this intuition we compute the variance of word-level log-probabilities:",
|
| 276 |
+
"bbox": [
|
| 277 |
+
112,
|
| 278 |
+
435,
|
| 279 |
+
489,
|
| 280 |
+
514
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 1
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "equation",
|
| 286 |
+
"text": "\n$$\n\\operatorname {S o f t m a x} - \\operatorname {V a r} = \\mathbb {E} [ \\mathrm {P} ^ {2} ] - (\\mathbb {E} [ \\mathrm {P} ]) ^ {2}\n$$\n",
|
| 287 |
+
"text_format": "latex",
|
| 288 |
+
"bbox": [
|
| 289 |
+
179,
|
| 290 |
+
530,
|
| 291 |
+
421,
|
| 292 |
+
548
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 1
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "text",
|
| 298 |
+
"text": "where $\\mathrm{P} = p(y_1),\\dots,p(y_T)$ represents word-level probabilities for a given response.",
|
| 299 |
+
"bbox": [
|
| 300 |
+
112,
|
| 301 |
+
555,
|
| 302 |
+
485,
|
| 303 |
+
587
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 1
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "2.2 Uncertainty Estimation",
|
| 310 |
+
"text_level": 1,
|
| 311 |
+
"bbox": [
|
| 312 |
+
112,
|
| 313 |
+
599,
|
| 314 |
+
344,
|
| 315 |
+
614
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 1
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "Uncertainty estimation aims to assess the confidence of a mapping across various inputs (Xiao and Wang, 2019). In this work, we propose to employ ensemble-based uncertainty estimation (Malinin and Gales, 2021) during LLM inference as a quality indicator. More specifically, we perform several random forward passes through the model and collect posterior probabilities. Intuitively, if the model is confident with the generation, the sampled distributions should be concentrated and the diversity among them should be small.",
|
| 322 |
+
"bbox": [
|
| 323 |
+
112,
|
| 324 |
+
620,
|
| 325 |
+
487,
|
| 326 |
+
796
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 1
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "Given that LLMs are typically trained without dropout, we propose two strategies to introduce randomness to the forward-passes:",
|
| 333 |
+
"bbox": [
|
| 334 |
+
112,
|
| 335 |
+
797,
|
| 336 |
+
487,
|
| 337 |
+
846
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 1
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "list",
|
| 343 |
+
"sub_type": "text",
|
| 344 |
+
"list_items": [
|
| 345 |
+
"1. Decoding-based Ensemble: Adopt random top-k decoding (Fan et al., 2018) for inference.",
|
| 346 |
+
"2. Prompt-based Ensemble: Randomly choose"
|
| 347 |
+
],
|
| 348 |
+
"bbox": [
|
| 349 |
+
127,
|
| 350 |
+
859,
|
| 351 |
+
487,
|
| 352 |
+
917
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 1
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "a system prompt from a pre-designed prompt pool for each inference.",
|
| 359 |
+
"bbox": [
|
| 360 |
+
544,
|
| 361 |
+
85,
|
| 362 |
+
880,
|
| 363 |
+
116
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 1
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "Subsequently, expectation and variance of the resulting probability distributions can be used to quantify uncertainty:",
|
| 370 |
+
"bbox": [
|
| 371 |
+
507,
|
| 372 |
+
128,
|
| 373 |
+
880,
|
| 374 |
+
177
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 1
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "equation",
|
| 380 |
+
"text": "\n$$\n\\operatorname {U n t - E x p} = \\frac {1}{N} \\sum_ {n = 1} ^ {N} \\mathrm {S P} _ {T ^ {n}}\n$$\n",
|
| 381 |
+
"text_format": "latex",
|
| 382 |
+
"bbox": [
|
| 383 |
+
600,
|
| 384 |
+
187,
|
| 385 |
+
788,
|
| 386 |
+
231
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 1
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "equation",
|
| 392 |
+
"text": "\n$$\n\\operatorname {U n t - V a r} = \\mathbb {E} \\left[ \\mathrm {S P} _ {T ^ {n}} ^ {2} \\right] - \\left(\\mathbb {E} \\left[ \\mathrm {S P} _ {T ^ {n}} \\right]\\right) ^ {2}\n$$\n",
|
| 393 |
+
"text_format": "latex",
|
| 394 |
+
"bbox": [
|
| 395 |
+
566,
|
| 396 |
+
241,
|
| 397 |
+
823,
|
| 398 |
+
260
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 1
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "where SP denotes the sentence level probability, and $\\mathbf{N}$ is the forward-pass number.",
|
| 405 |
+
"bbox": [
|
| 406 |
+
507,
|
| 407 |
+
266,
|
| 408 |
+
880,
|
| 409 |
+
298
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 1
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "2.3 Attention Distribution",
|
| 416 |
+
"text_level": 1,
|
| 417 |
+
"bbox": [
|
| 418 |
+
509,
|
| 419 |
+
309,
|
| 420 |
+
729,
|
| 421 |
+
322
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 1
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Attention weights represent the strength of connection between source and target tokens, which may be indicative of response quality (Rikters and Fishel, 2017). One way to measure it is to compute the entropy of the attention distribution:",
|
| 428 |
+
"bbox": [
|
| 429 |
+
507,
|
| 430 |
+
330,
|
| 431 |
+
880,
|
| 432 |
+
409
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 1
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "equation",
|
| 438 |
+
"text": "\n$$\n\\operatorname {A t t n E n t} = - \\frac {1}{I} \\sum_ {i = 1} ^ {I} \\sum_ {j = 1} ^ {J} \\alpha_ {j i} \\log \\alpha_ {j i}\n$$\n",
|
| 439 |
+
"text_format": "latex",
|
| 440 |
+
"bbox": [
|
| 441 |
+
569,
|
| 442 |
+
420,
|
| 443 |
+
820,
|
| 444 |
+
466
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 1
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "where $\\alpha$ represents attention weights, $I$ and $J$ are the token numbers of instruction and response.",
|
| 451 |
+
"bbox": [
|
| 452 |
+
507,
|
| 453 |
+
470,
|
| 454 |
+
880,
|
| 455 |
+
502
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 1
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "Since LLMs typically employ a multi-layer and multi-head self-attention architecture, we calculate attention entropy for each head (H) and layer (L) of the decoder in this study. As it is not clear which combination would give the best results for quality prediction, to summarize the information from different heads and layers, we propose to choose the minimum value or compute the average:",
|
| 462 |
+
"bbox": [
|
| 463 |
+
507,
|
| 464 |
+
502,
|
| 465 |
+
882,
|
| 466 |
+
632
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 1
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "equation",
|
| 472 |
+
"text": "\n$$\n\\operatorname {A t t n E n t - M i n} = \\min _ {h l} \\left(\\operatorname {A t t n E n t} _ {h l}\\right)\n$$\n",
|
| 473 |
+
"text_format": "latex",
|
| 474 |
+
"bbox": [
|
| 475 |
+
566,
|
| 476 |
+
648,
|
| 477 |
+
823,
|
| 478 |
+
665
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 1
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "equation",
|
| 484 |
+
"text": "\n$$\n\\operatorname {A t t n E n t - A v g} = \\frac {1}{H \\times L} \\sum_ {h = 1} ^ {H} \\sum_ {l = 1} ^ {L} \\operatorname {A t t n E n t} _ {h l}\n$$\n",
|
| 485 |
+
"text_format": "latex",
|
| 486 |
+
"bbox": [
|
| 487 |
+
537,
|
| 488 |
+
682,
|
| 489 |
+
852,
|
| 490 |
+
726
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 1
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "3 Self-Evaluation with Reference",
|
| 497 |
+
"text_level": 1,
|
| 498 |
+
"bbox": [
|
| 499 |
+
507,
|
| 500 |
+
743,
|
| 501 |
+
811,
|
| 502 |
+
758
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 1
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "When evaluating the LLM's response to an instruction, a reference answer might be available. In this work, we introduce two strategies to effectively utilize the references for self-evaluation.",
|
| 509 |
+
"bbox": [
|
| 510 |
+
507,
|
| 511 |
+
768,
|
| 512 |
+
882,
|
| 513 |
+
831
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 1
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "3.1 In-Context Illustration",
|
| 520 |
+
"text_level": 1,
|
| 521 |
+
"bbox": [
|
| 522 |
+
507,
|
| 523 |
+
843,
|
| 524 |
+
734,
|
| 525 |
+
857
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 1
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "Previous research shows that a few annotated samples can improve the performance of LLM via In",
|
| 532 |
+
"bbox": [
|
| 533 |
+
507,
|
| 534 |
+
864,
|
| 535 |
+
882,
|
| 536 |
+
896
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 1
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "page_footnote",
|
| 542 |
+
"text": "The prompt pool is presented in Appendix A.1.",
|
| 543 |
+
"bbox": [
|
| 544 |
+
529,
|
| 545 |
+
903,
|
| 546 |
+
825,
|
| 547 |
+
917
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 1
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "page_number",
|
| 553 |
+
"text": "5814",
|
| 554 |
+
"bbox": [
|
| 555 |
+
480,
|
| 556 |
+
927,
|
| 557 |
+
519,
|
| 558 |
+
940
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 1
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "table",
|
| 564 |
+
"img_path": "images/8bd5f1a8cb2be34c0d5ab15c0fe0ba1eb30509375c1cb34fde50b3dbbebdb0f1.jpg",
|
| 565 |
+
"table_caption": [],
|
| 566 |
+
"table_footnote": [],
|
| 567 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Method</td><td colspan=\"3\">MT-Bench</td><td colspan=\"3\">Vicuna-Bench</td><td rowspan=\"2\">Average</td></tr><tr><td>Pearson</td><td>Kendall</td><td>Spearman</td><td>Pearson</td><td>Kendall</td><td>Spearman</td></tr><tr><td rowspan=\"13\">LLaMA2-7B-Chat</td><td>Auto-J</td><td>0.5024</td><td>0.4092</td><td>0.5112</td><td>0.5233</td><td>0.3403</td><td>0.3773</td><td>0.5129</td></tr><tr><td>GPT-3.5-Turbo</td><td>0.4342</td><td>0.3982</td><td>0.5033</td><td>0.6695</td><td>0.3858</td><td>0.4330</td><td>0.5519</td></tr><tr><td>Self-Generation</td><td>0.1492</td><td>0.0992</td><td>0.1976</td><td>0.1415</td><td>0.1600</td><td>0.1023</td><td>0.1454</td></tr><tr><td>SentProb</td><td>0.2034</td><td>0.2099</td><td>0.3067</td><td>0.4970</td><td>0.2304</td><td>0.3192</td><td>0.3502</td></tr><tr><td>Softmax-Ent</td><td>0.4666</td><td>0.4395</td><td>0.5978</td><td>0.3730</td><td>0.2441</td><td>0.3223</td><td>0.4198</td></tr><tr><td>Softmax-Var</td><td>0.5612</td><td>0.4695</td><td>0.6239</td><td>0.6506</td><td>0.4534</td><td>0.5894</td><td>0.6059</td></tr><tr><td>Softmax-combo</td><td>0.5879</td><td>0.4638</td><td>0.6222</td><td>0.6209</td><td>0.4352</td><td>0.5650</td><td>0.6044</td></tr><tr><td>DecEnsem-Exp</td><td>0.4105</td><td>0.3877</td><td>0.3526</td><td>0.5606</td><td>0.3545</td><td>0.5051</td><td>0.4856</td></tr><tr><td>DecEnsem-Var</td><td>0.3535</td><td>0.3215</td><td>0.3023</td><td>0.2504</td><td>0.1615</td><td>0.3197</td><td>0.3020</td></tr><tr><td>PrmEnsem-Exp</td><td>0.4242</td><td>0.3054</td><td>0.3692</td><td>0.5381</td><td>0.3359</td><td>0.4675</td><td>0.4812</td></tr><tr><td>PrmtEnsem-Var</td><td>0.1695</td><td>0.1692</td><td>0.2441</td><td>0.1321</td><td>0.0895</td><td>0.1250</td><td>0.1508</td></tr><tr><td>Attn-Ent-Min</td><td>0.1444</td><td>0.1150</td><td>0.1563</td><td>0.1182</td><td>0.1161</td><td>0.1584</td><td>0.1313</td></tr><tr><td>Attn-Ent-Avg</td><td>0.1361</td><td>0.1094</td><td>0.1475</td><td>0.0977</td><td>0.1181</td><td>0.1600</td><td>0.1169</td></tr><tr><td rowspan=\"13\">Vicuna-7B</td><td>Auto-J</td><td>0.5673</td><td>0.4302</td><td>0.5405</td><td>0.6003</td><td>0.4818</td><td>0.5345</td><td>0.5838</td></tr><tr><td>GPT3.5-Turbo</td><td>0.4812</td><td>0.4358</td><td>0.5353</td><td>0.6946</td><td>0.5901</td><td>0.6733</td><td>0.5879</td></tr><tr><td>Self-Generation</td><td>0.1636</td><td>0.1753</td><td>0.1498</td><td>0.1985</td><td>0.1319</td><td>0.1709</td><td>0.1811</td></tr><tr><td>SentProb</td><td>0.2350</td><td>0.1706</td><td>0.2547</td><td>0.4606</td><td>0.2545</td><td>0.3051</td><td>0.3478</td></tr><tr><td>Softmax-Ent</td><td>0.4690</td><td>0.3003</td><td>0.4291</td><td>0.6379</td><td>0.2851</td><td>0.3855</td><td>0.5535</td></tr><tr><td>Softmax-Var</td><td>0.4632</td><td>0.3171</td><td>0.4403</td><td>0.6146</td><td>0.2879</td><td>0.3772</td><td>0.5389</td></tr><tr><td>Softmax-combo</td><td>0.5358</td><td>0.3578</td><td>0.5022</td><td>0.6856</td><td>0.3276</td><td>0.4270</td><td>0.6107</td></tr><tr><td>DecEnsem-Exp</td><td>0.4518</td><td>0.2645</td><td>0.2168</td><td>0.5099</td><td>0.5137</td><td>0.6548</td><td>0.4809</td></tr><tr><td>DecEnsem-Var</td><td>0.2091</td><td>0.1476</td><td>0.1622</td><td>0.3246</td><td>0.2931</td><td>0.3014</td><td>0.2669</td></tr><tr><td>PrmEnsem-Exp</td><td>0.4414</td><td>0.2677</td><td>0.2229</td><td>0.4897</td><td>0.4873</td><td>0.6312</td><td>0.4656</td></tr><tr><td>PrmtEnsem-Var</td><td>0.2353</td><td>0.0875</td><td>0.1239</td><td>0.2028</td><td>0.1860</td><td>0.3201</td><td>0.2191</td></tr><tr><td>Attn-Ent-Avg</td><td>0.0355</td><td>0.0234</td><td>0.0043</td><td>0.2254</td><td>0.1981</td><td>0.2567</td><td>0.1305</td></tr><tr><td>Attn-Ent-Min</td><td>0.0463</td><td>0.0307</td><td>0.0530</td><td>0.2161</td><td>0.1888</td><td>0.2459</td><td>0.1312</td></tr></table>",
|
| 568 |
+
"bbox": [
|
| 569 |
+
119,
|
| 570 |
+
80,
|
| 571 |
+
884,
|
| 572 |
+
463
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 2
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "Table 1: Experiment results of different groups of methods for LLM self-evaluation. Softmax-combo denotes the normalized summation of Softmax-Ent and Softmax-Var.",
|
| 579 |
+
"bbox": [
|
| 580 |
+
112,
|
| 581 |
+
470,
|
| 582 |
+
882,
|
| 583 |
+
500
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 2
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "context Learning (Wang et al., 2023a). Therefore, we extend the prompt with the instruction and its reference as in-context demonstration<sup>3</sup>.",
|
| 590 |
+
"bbox": [
|
| 591 |
+
112,
|
| 592 |
+
525,
|
| 593 |
+
487,
|
| 594 |
+
573
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 2
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "By prefixing the reference, the model tends to generate a similar softmax distribution (Wang et al., 2023a). Therefore, when the model is subsequently forced to generate the current answer, the resulting softmax distribution could represent the difference between the current answer and the golden answer, effectively indicating the quality.",
|
| 601 |
+
"bbox": [
|
| 602 |
+
112,
|
| 603 |
+
575,
|
| 604 |
+
489,
|
| 605 |
+
688
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 2
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "3.2 Probability Calibration",
|
| 612 |
+
"text_level": 1,
|
| 613 |
+
"bbox": [
|
| 614 |
+
112,
|
| 615 |
+
701,
|
| 616 |
+
346,
|
| 617 |
+
715
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 2
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "There has been a lot of research about the bias of the evaluator (Huang et al., 2023; Wang et al., 2023b), where the evaluator would predict on superficial quality, such as complexity. As the reference should always be assigned with a maximum score, we can quantify the bias of the model by calculate the log-probability of reference answer:",
|
| 624 |
+
"bbox": [
|
| 625 |
+
112,
|
| 626 |
+
722,
|
| 627 |
+
489,
|
| 628 |
+
838
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 2
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "equation",
|
| 634 |
+
"text": "\n$$\n\\mathrm {S e n t P r o b - R e f} = - \\frac {1}{T} \\sum_ {t = 1} ^ {T} p (\\tilde {y} _ {t}) \\log p (\\tilde {y} _ {t})\n$$\n",
|
| 635 |
+
"text_format": "latex",
|
| 636 |
+
"bbox": [
|
| 637 |
+
152,
|
| 638 |
+
848,
|
| 639 |
+
448,
|
| 640 |
+
892
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 2
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "where $\\tilde{y}_t$ denotes the log-probability assigned by the model to the reference. Based on that, the bias of the self-evaluation can be mitigated by subtracting the result with SentProb-Ref, thereby improving the evaluation accuracy.",
|
| 647 |
+
"bbox": [
|
| 648 |
+
507,
|
| 649 |
+
525,
|
| 650 |
+
884,
|
| 651 |
+
606
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 2
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "4 Experiments",
|
| 658 |
+
"text_level": 1,
|
| 659 |
+
"bbox": [
|
| 660 |
+
507,
|
| 661 |
+
615,
|
| 662 |
+
655,
|
| 663 |
+
633
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 2
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "4.1 Set-up",
|
| 670 |
+
"text_level": 1,
|
| 671 |
+
"bbox": [
|
| 672 |
+
507,
|
| 673 |
+
640,
|
| 674 |
+
608,
|
| 675 |
+
657
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 2
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "Benchmark. We carry out our experiments on two widely used LLM evaluation benchmarks: MT-Bench (Zheng et al., 2023) and Vicuna-Bench (Chiang et al., 2023). Both of the benchmarks encompass 80 questions covering diverse areas, and we derive the responses for different models following the default settings of MT-Bench. To mitigate the cost of human annotations, we follow the official evaluators according to each benchmark, namely GPT-4 (Achiam et al., 2023).",
|
| 682 |
+
"bbox": [
|
| 683 |
+
507,
|
| 684 |
+
661,
|
| 685 |
+
884,
|
| 686 |
+
820
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 2
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "Model. Our experiments are based on two popular models, namely Vicuna-7B (Chiang et al., 2023) and LLaMA2-7B-chat (Touvron et al., 2023), both are enabled with instruction-following ability.",
|
| 693 |
+
"bbox": [
|
| 694 |
+
507,
|
| 695 |
+
822,
|
| 696 |
+
882,
|
| 697 |
+
885
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 2
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "Metric. Pearson Correlation Coefficient between the prediction and the annotation is taken as the",
|
| 704 |
+
"bbox": [
|
| 705 |
+
507,
|
| 706 |
+
887,
|
| 707 |
+
882,
|
| 708 |
+
917
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 2
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "page_footnote",
|
| 714 |
+
"text": "Detailed prompt template is presented in Appendix A.2.",
|
| 715 |
+
"bbox": [
|
| 716 |
+
134,
|
| 717 |
+
903,
|
| 718 |
+
482,
|
| 719 |
+
917
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 2
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "page_number",
|
| 725 |
+
"text": "5815",
|
| 726 |
+
"bbox": [
|
| 727 |
+
480,
|
| 728 |
+
927,
|
| 729 |
+
519,
|
| 730 |
+
940
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 2
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "major metric. We also report Spearman's Ranking Correlation Coefficient and Kendall's Tau Ranking Correlation Coefficient<sup>4</sup> as extra reference.",
|
| 737 |
+
"bbox": [
|
| 738 |
+
112,
|
| 739 |
+
84,
|
| 740 |
+
487,
|
| 741 |
+
131
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 3
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "Baseline. We mainly compare with two evaluators, GPT-3.5-Turbo $^{5}$ and Auto-J (Li et al., 2023a). The former is a close-source LLM carefully prompted for LLM evaluation, and the latter is an open-source LLM specifically fine-tuned for LLM evaluation. These are the two mainstream methods for LLM evaluation. We also compare with SelfGeneration, namely prompting the model as an evaluator to evaluate its own response $^{6}$ .",
|
| 748 |
+
"bbox": [
|
| 749 |
+
112,
|
| 750 |
+
133,
|
| 751 |
+
489,
|
| 752 |
+
278
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 3
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "4.2 Main Results",
|
| 759 |
+
"text_level": 1,
|
| 760 |
+
"bbox": [
|
| 761 |
+
112,
|
| 762 |
+
290,
|
| 763 |
+
265,
|
| 764 |
+
305
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 3
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "As shown in Table 1, among the three groups of glass-box features, softmax distribution based features perform the best, which achieves a high correlation with annotations and outperforms Auto-J and GPT-3.5-Turbo. This verifies the strong association between the confidence represented by the softmax distribution and the response quality. When the instruction exceeds the LLM's capability scope, the model would generate the response with low confidence, resulting in a sparse log-probability distribution. Furthermore, combining both entropy and variance by simply adding them together can achieve further improvement.",
|
| 771 |
+
"bbox": [
|
| 772 |
+
112,
|
| 773 |
+
312,
|
| 774 |
+
489,
|
| 775 |
+
520
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 3
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "The uncertainty-based methods underperform, particularly those relying on variance. This might be because we set forward-pass number as 10, which is inadequate to quantify model uncertainty. Considering multiple forward-passes is overly time-consuming, we think the ensembled uncertainty estimation is less practical for self-evaluation.",
|
| 782 |
+
"bbox": [
|
| 783 |
+
112,
|
| 784 |
+
521,
|
| 785 |
+
489,
|
| 786 |
+
633
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 3
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "The attention-based methods exhibit a poor correlation. Despite its effectiveness in unsupervised translation evaluation (Fomicheva et al., 2020), LLM-based response generation differs significantly from encoder-decoder-based machine translation, which typically produces translations for one or two tokens at each step. Therefore, a dispersed attention across multiple positions, leading to a low attention entropy, does not necessarily indicate a poor response.",
|
| 793 |
+
"bbox": [
|
| 794 |
+
112,
|
| 795 |
+
634,
|
| 796 |
+
489,
|
| 797 |
+
796
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 3
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "The self-generation also exhibits a poor correlation. This is because the model fails to comprehend the instruction to generate a score between 1 to 10",
|
| 804 |
+
"bbox": [
|
| 805 |
+
112,
|
| 806 |
+
797,
|
| 807 |
+
489,
|
| 808 |
+
844
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 3
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "table",
|
| 814 |
+
"img_path": "images/7a55d4fe7e2d401200268d2320d9befddd61fe0b5d52e15d77af4df19cb28538.jpg",
|
| 815 |
+
"table_caption": [],
|
| 816 |
+
"table_footnote": [],
|
| 817 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">Vicuna-Bench</td></tr><tr><td>Pearson</td><td>Kendall</td><td>Spearman</td></tr><tr><td>GPT-3.5-Turbo</td><td>0.6695</td><td>0.3858</td><td>0.4330</td></tr><tr><td colspan=\"4\">Results on LLaMA2-7B-Chat</td></tr><tr><td>Softmax-Ent</td><td>0.3730</td><td>0.2441</td><td>0.3223</td></tr><tr><td>+illustration</td><td>0.3678</td><td>0.2429</td><td>0.3370</td></tr><tr><td>+calibration</td><td>0.3930</td><td>0.2631</td><td>0.3490</td></tr><tr><td>Softmax-Var</td><td>0.6506</td><td>0.4534</td><td>0.5894</td></tr><tr><td>+illustration</td><td>0.6580</td><td>0.4472</td><td>0.5865</td></tr><tr><td>+calibration</td><td>0.6617</td><td>0.4360</td><td>0.5625</td></tr><tr><td colspan=\"4\">Results on Vicuna-7B</td></tr><tr><td>Softmax-Ent</td><td>0.6379</td><td>0.2851</td><td>0.3855</td></tr><tr><td>+illustration</td><td>0.6375</td><td>0.2982</td><td>0.3960</td></tr><tr><td>+calibration</td><td>0.6441</td><td>0.3177</td><td>0.4240</td></tr><tr><td>Softmax-Var</td><td>0.6146</td><td>0.2879</td><td>0.3772</td></tr><tr><td>+illustration</td><td>0.6247</td><td>0.2976</td><td>0.3903</td></tr><tr><td>+calibration</td><td>0.6526</td><td>0.3099</td><td>0.4133</td></tr></table>",
|
| 818 |
+
"bbox": [
|
| 819 |
+
515,
|
| 820 |
+
82,
|
| 821 |
+
867,
|
| 822 |
+
326
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 3
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "Table 2: Experiment results of different reference augmentation strategies for self-evaluation.",
|
| 829 |
+
"bbox": [
|
| 830 |
+
507,
|
| 831 |
+
336,
|
| 832 |
+
882,
|
| 833 |
+
365
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 3
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "in most cases. This underscores the superiority of our proposed method, which is not limited by the capabilities of the evaluated model and can be effectively applied to 7B-sized models.",
|
| 840 |
+
"bbox": [
|
| 841 |
+
507,
|
| 842 |
+
392,
|
| 843 |
+
882,
|
| 844 |
+
456
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 3
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "4.3 Self-Evaluation with Reference",
|
| 851 |
+
"text_level": 1,
|
| 852 |
+
"bbox": [
|
| 853 |
+
507,
|
| 854 |
+
469,
|
| 855 |
+
800,
|
| 856 |
+
483
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 3
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "In this section, we evaluate the two reference augmentation methods proposed in Section 3, namely in-context illustration and probability calibration. As shown in Table 2, both the two strategies can enhance the evaluation accuracy by a large margin, from the perspective of in-context learning and bias calibration. This notifies the references is a pivotal information for response evaluation, and should not be neglected if available. Furthermore, among the two methods, the calibration-based method performs better, verifying calibration is an effective method to mitigate the bias introduced by the casual language modeling process, which matters a lot for more accurate self-evaluation.",
|
| 863 |
+
"bbox": [
|
| 864 |
+
507,
|
| 865 |
+
491,
|
| 866 |
+
884,
|
| 867 |
+
715
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 3
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "5 Conclusion",
|
| 874 |
+
"text_level": 1,
|
| 875 |
+
"bbox": [
|
| 876 |
+
507,
|
| 877 |
+
730,
|
| 878 |
+
640,
|
| 879 |
+
746
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 3
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "In this work, we investigate the utility of glass-box features for LLM self-evaluation. Our findings verify that the confidence quantified by softmax distribution can be a reliable quality indicator. The self-evaluation ability of LLM is a promising pathway, for example, the LLM can rely on self-evaluation results to decide whether to perform self-reflection (Xie et al., 2024), or to select preferred data for reward modeling (Lee et al., 2024), and we leave these as the future work.",
|
| 886 |
+
"bbox": [
|
| 887 |
+
507,
|
| 888 |
+
758,
|
| 889 |
+
884,
|
| 890 |
+
917
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 3
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "page_footnote",
|
| 896 |
+
"text": "4Notice measuring our method with ranking coefficient is not fair, as our method can not predict tie. 5https://platform.openai.com/docs/ models/gpt-3-5-turbo 6Detailed prompt template is presented in Appendix A.3.",
|
| 897 |
+
"bbox": [
|
| 898 |
+
112,
|
| 899 |
+
854,
|
| 900 |
+
487,
|
| 901 |
+
920
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 3
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "page_number",
|
| 907 |
+
"text": "5816",
|
| 908 |
+
"bbox": [
|
| 909 |
+
480,
|
| 910 |
+
928,
|
| 911 |
+
521,
|
| 912 |
+
940
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 3
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Limitations",
|
| 919 |
+
"text_level": 1,
|
| 920 |
+
"bbox": [
|
| 921 |
+
114,
|
| 922 |
+
84,
|
| 923 |
+
220,
|
| 924 |
+
99
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 4
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "text",
|
| 930 |
+
"text": "Our work still has some limitations: 1) Due to time and resource constraints, we primarily relied on GPT-4 for annotating golden labels during the meta-evaluation process. Including human evaluators would enhance the credibility of our proposed self-evaluation methods. 2) The experiments are primarily conducted on 7B version models. To conduct a more thorough evaluation of our methods, it would be beneficial to incorporate larger models with more parameters. 3) The self-evaluation capability of the LLM can be applied to various applications, as discussed in the conclusion part. Including the validation of self-evaluation methods on other LLM-based applications such as self-reflection would further bolster its utility.",
|
| 931 |
+
"bbox": [
|
| 932 |
+
112,
|
| 933 |
+
109,
|
| 934 |
+
492,
|
| 935 |
+
351
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 4
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "text",
|
| 941 |
+
"text": "Acknowledgements",
|
| 942 |
+
"text_level": 1,
|
| 943 |
+
"bbox": [
|
| 944 |
+
114,
|
| 945 |
+
363,
|
| 946 |
+
285,
|
| 947 |
+
379
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 4
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "This work is supported by National Natural Science Foundation of China (62276077, 62376075, U1908216, 62376076), Key R&D Program of Yunnan (202203AA080004) and Shenzhen College Stability Support Plan (No. GXWD20220811170358002).",
|
| 954 |
+
"bbox": [
|
| 955 |
+
112,
|
| 956 |
+
388,
|
| 957 |
+
489,
|
| 958 |
+
483
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 4
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "References",
|
| 965 |
+
"text_level": 1,
|
| 966 |
+
"bbox": [
|
| 967 |
+
114,
|
| 968 |
+
511,
|
| 969 |
+
213,
|
| 970 |
+
526
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 4
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "list",
|
| 976 |
+
"sub_type": "ref_text",
|
| 977 |
+
"list_items": [
|
| 978 |
+
"Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.",
|
| 979 |
+
"Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An opensource chatbot impressing gpt-4 with $90\\%$ * chatgpt quality.",
|
| 980 |
+
"Angela Fan, Mike Lewis, and Yann Dauphin. 2018. Hierarchical neural story generation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 889-898, Melbourne, Australia.",
|
| 981 |
+
"Marina Fomicheva, Shuo Sun, Lisa Yankovskaya, Frédéric Blain, Francisco Guzmán, Mark Fishel, Nikolaos Aletras, Vishrav Chaudhary, and Lucia Specia. 2020. Unsupervised quality estimation for neural machine translation. Transactions of the Association for Computational Linguistics, 8:539-555.",
|
| 982 |
+
"Hui Huang, Yingqi Qu, Jing Liu, Muyun Yang, and Tiejun Zhao. 2024. An empirical study of llm-as-a-judge for llm evaluation: Fine-tuned judge models are task-specific classifiers."
|
| 983 |
+
],
|
| 984 |
+
"bbox": [
|
| 985 |
+
115,
|
| 986 |
+
533,
|
| 987 |
+
489,
|
| 988 |
+
917
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 4
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "list",
|
| 994 |
+
"sub_type": "ref_text",
|
| 995 |
+
"list_items": [
|
| 996 |
+
"Hui Huang, Shuangzhi Wu, Kehai Chen, Hui Di, Muyun Yang, and Tiejun Zhao. 2023. Improving translation quality estimation with bias mitigation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2175-2190.",
|
| 997 |
+
"Harrison Lee, Samrat Phatale, Hassan Mansoor, Kellie Ren Lu, Thomas Mesnard, Johan Ferret, Colton Bishop, Ethan Hall, Victor Carbune, and Abhinav Rastogi. 2024. RLAIF: Scaling reinforcement learning from human feedback with AI feedback.",
|
| 998 |
+
"Junlong Li, Shichao Sun, Weizhe Yuan, Run-Ze Fan, Hai Zhao, and Pengfei Liu. 2023a. Generative judge for evaluating alignment. arXiv preprint arXiv:2310.05470.",
|
| 999 |
+
"Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023b. Alpacaeval: An automatic evaluator of instruction-following models. https://github.com/tatsu-lab/alpaca_eval.",
|
| 1000 |
+
"Andrey Malinin and Mark Gales. 2021. Uncertainty estimation in autoregressive structured prediction.",
|
| 1001 |
+
"Nitika Mathur, Timothy Baldwin, and Trevor Cohn. 2020. Tangled up in BLEU: Reevaluating the evaluation of automatic machine translation evaluation metrics. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4984-4997, Online.",
|
| 1002 |
+
"Matiss Rikters and Mark Fishel. 2017. Confidence through attention.",
|
| 1003 |
+
"Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Roziere, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.",
|
| 1004 |
+
"Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30.",
|
| 1005 |
+
"Lean Wang, Lei Li, Damai Dai, Deli Chen, Hao Zhou, Fandong Meng, Jie Zhou, and Xu Sun. 2023a. Label words are anchors: An information flow perspective for understanding in-context learning. In *Conference on Empirical Methods in Natural Language Processing*.",
|
| 1006 |
+
"Peiyi Wang, Lei Li, Liang Chen, Zefan Cai, Dawei Zhu, Binghuai Lin, Yunbo Cao, Qi Liu, Tianyu Liu, and Zhifang Sui. 2023b. Large language models are not fair evaluators.",
|
| 1007 |
+
"Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, and"
|
| 1008 |
+
],
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
510,
|
| 1011 |
+
85,
|
| 1012 |
+
884,
|
| 1013 |
+
917
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 4
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "page_number",
|
| 1019 |
+
"text": "5817",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
480,
|
| 1022 |
+
928,
|
| 1023 |
+
519,
|
| 1024 |
+
940
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 4
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Yue Zhang. 2024. Pandalm: An automatic evaluation benchmark for llm instruction tuning optimization.",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
131,
|
| 1033 |
+
85,
|
| 1034 |
+
485,
|
| 1035 |
+
112
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 5
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Yijun Xiao and William Yang Wang. 2019. Quantifying uncertainties in natural language processing tasks. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pages 7322-7329.",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
115,
|
| 1044 |
+
126,
|
| 1045 |
+
487,
|
| 1046 |
+
180
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 5
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Yuxi Xie, Kenji Kawaguchi, Yiran Zhao, James Xu Zhao, Min-Yen Kan, Junxian He, and Michael Xie. 2024. Self-evaluation guided beam search for reasoning. Advances in Neural Information Processing Systems, 36.",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
115,
|
| 1055 |
+
193,
|
| 1056 |
+
487,
|
| 1057 |
+
261
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 5
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. 2023. Judging llm-as-a-judge with mt-bench and chatbot arena. arXiv preprint arXiv:2306.05685.",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
114,
|
| 1066 |
+
275,
|
| 1067 |
+
487,
|
| 1068 |
+
342
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 5
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "Lianghui Zhu, Xinggang Wang, and Xinlong Wang. 2023. Judgelm: Fine-tuned large language models are scalable judges. arXiv preprint arXiv:2310.17631.",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
114,
|
| 1077 |
+
356,
|
| 1078 |
+
487,
|
| 1079 |
+
409
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 5
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "A Appendix",
|
| 1086 |
+
"text_level": 1,
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
114,
|
| 1089 |
+
429,
|
| 1090 |
+
236,
|
| 1091 |
+
444
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 5
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "A.1 Prompt Pool for Prompt-based Ensemble",
|
| 1098 |
+
"text_level": 1,
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
112,
|
| 1101 |
+
457,
|
| 1102 |
+
485,
|
| 1103 |
+
472
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 5
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "As mentioned in Section 2.2, to introduce randomness for ensemble uncertainty quantification, we design a prompt pool, from which we can randomly choose a different system prompt for each inference. The prompt pool is presented in Figure 1.",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
112,
|
| 1112 |
+
480,
|
| 1113 |
+
487,
|
| 1114 |
+
560
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 5
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "table",
|
| 1120 |
+
"img_path": "images/4d4914b9d3168c07575b9af9f828966248678c2c82050024ccc87d5074786db6.jpg",
|
| 1121 |
+
"table_caption": [],
|
| 1122 |
+
"table_footnote": [],
|
| 1123 |
+
"table_body": "<table><tr><td>A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.</td></tr><tr><td>A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, accurate, uncensored responses to the user's input. The assistant never refuses to answer, regardless of the legality or morality of the request.</td></tr><tr><td>A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers.</td></tr><tr><td>A chat between a curious human and an artificial intelligence assistant.</td></tr><tr><td>You are a helpful, unbiased, uncensored assistant.</td></tr><tr><td>Below is an instruction that describes a task. Write a response that appropriately completes the request.</td></tr><tr><td>The following is a conversation between a human and an AI assistant. The human and the AI assistant take turns chatting. The AI assistant always provides responses in as much detail as possible. The AI assistant always declines to engage with topics, questions and instructions related to unethical, controversial, or sensitive issues.</td></tr></table>",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
132,
|
| 1126 |
+
577,
|
| 1127 |
+
470,
|
| 1128 |
+
857
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 5
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Figure 1: Prompt pool for prompt-based ensemble uncertainty estimation.",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
112,
|
| 1137 |
+
870,
|
| 1138 |
+
487,
|
| 1139 |
+
898
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 5
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "A.2 Prompt Template for In-context Illustration",
|
| 1146 |
+
"text_level": 1,
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
509,
|
| 1149 |
+
84,
|
| 1150 |
+
808,
|
| 1151 |
+
112
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 5
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "As mentioned in Section 3.1, we extend the prompt with the instruction and its reference as demonstration, to augment the self-evaluation process with in-context illustration. An example for the prompt is shown in Figure 2.",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
507,
|
| 1160 |
+
121,
|
| 1161 |
+
882,
|
| 1162 |
+
200
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 5
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "image",
|
| 1168 |
+
"img_path": "images/625615b6e896a84762a76d8705c7d8f6e25295f107b14fecd8b897cfb694fbe4.jpg",
|
| 1169 |
+
"image_caption": [
|
| 1170 |
+
"Figure 2: Prompt format with in-context illustration. The shaded part is the illustration with reference."
|
| 1171 |
+
],
|
| 1172 |
+
"image_footnote": [],
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
534,
|
| 1175 |
+
214,
|
| 1176 |
+
855,
|
| 1177 |
+
335
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 5
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "A.3 Prompt Template for Judge Models",
|
| 1184 |
+
"text_level": 1,
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
507,
|
| 1187 |
+
401,
|
| 1188 |
+
836,
|
| 1189 |
+
418
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 5
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "As mentioned in Section 4.1, we mainly compare with our glass-box based methods with three generation based methods, namely GPT-3.5-Turbo, Auto-J and Self-Generation. Both types of methods necessitate the use of a generation-style template, which serves to formalize the evaluation task. Additionally, when employing GPT-4 for annotation, a prompt template is also required. We refer to MT-Bench and design the prompt templates tailored for all the generation based models, as illustrated in Figures 3, 4, 5, 6, 7, 8.",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
507,
|
| 1198 |
+
423,
|
| 1199 |
+
882,
|
| 1200 |
+
599
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 5
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "page_number",
|
| 1206 |
+
"text": "5818",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
480,
|
| 1209 |
+
928,
|
| 1210 |
+
519,
|
| 1211 |
+
940
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 5
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "code",
|
| 1217 |
+
"sub_type": "code",
|
| 1218 |
+
"code_caption": [],
|
| 1219 |
+
"code_body": "You are a helpful assistant. \n[Instruction] \nPlease act as an impartial judge and evaluate the quality of the response provided by an AI assistant to the user question displayed below. Your evaluation should consider factors such as the helpfulness, relevance, accuracy, depth, creativity, and level of detail of the response. Begin your evaluation by providing a short explanation. Be as objective as possible. After providing your explanation, you must rate the response on a scale of 1 to 10 by strictly following this format: \\[\"rating]\\\\\", for example: \\\\\"Rating: [[5]]\\\". \n[Question] \n{question} \n[The Start of Assistant's Answer] \n{answer} \n[The End of Assistant's Answer]",
|
| 1220 |
+
"guess_lang": "txt",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
203,
|
| 1223 |
+
96,
|
| 1224 |
+
786,
|
| 1225 |
+
269
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 6
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "Figure 3: Prompt template for GPT4 and GPT-3.5-Turbo applied for single-turn evaluation.",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
189,
|
| 1234 |
+
282,
|
| 1235 |
+
806,
|
| 1236 |
+
297
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 6
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "code",
|
| 1242 |
+
"sub_type": "code",
|
| 1243 |
+
"code_caption": [],
|
| 1244 |
+
"code_body": "You are a helpful assistant. \n[Instruction] \nPlease act as an impartial judge and evaluate the quality of the response provided by an AI assistant to the user question displayed below. Your evaluation should consider factors such as the helpfulness, relevance, accuracy, depth, creativity, and level of detail of the response. You evaluation should focus on the assistant's answer to the second user question. Begin your evaluation by providing a short explanation. Be as objective as possible. After providing your explanation, you must rate the response on a scale of 1 to 10 by strictly following this format: \\[\"[[rating]]\\\\\"', for example: \\\\\"Rating: [[5]]\\\". \n<|The Start of Assistant A's Conversation with User|> \n### User: {question_1} \n### Assistant A: {answer_1} \n### User: {question_2} \n### Assistant A: {answer_2} \n<|The End of Assistant A's Conversation with User|>",
|
| 1245 |
+
"guess_lang": "markdown",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
203,
|
| 1248 |
+
329,
|
| 1249 |
+
793,
|
| 1250 |
+
609
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 6
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "Figure 4: Prompt template for GPT4 and GPT-3.5-Turbo applied for multi-turn evaluation.",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
191,
|
| 1259 |
+
621,
|
| 1260 |
+
803,
|
| 1261 |
+
638
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 6
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "code",
|
| 1267 |
+
"sub_type": "code",
|
| 1268 |
+
"code_caption": [],
|
| 1269 |
+
"code_body": "You are a helpful and precise assistant for checking the quality of the answer. [Question] {question} \n[The Start of Assistant's Answer] {answer} \n[The End of Assistant's Answer] \n[System] \nWe would like to request your feedback on the performance of the AI assistant in response to the user question displayed above. Please rate the helpfulness, relevance, accuracy, level of details of the response. The assistant receives an overall score on a scale of 1 to 10, where a higher score indicates better overall performance. Please first output a single line containing only one values indicating the score for the Assistant. In the subsequent line, please provide a comprehensive explanation of your evaluation, avoiding any potential bias. \n``` Response:",
|
| 1270 |
+
"guess_lang": "txt",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
203,
|
| 1273 |
+
670,
|
| 1274 |
+
793,
|
| 1275 |
+
875
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 6
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Figure 5: Prompt template for Auto-J applied for single-turn evaluation.",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
253,
|
| 1284 |
+
889,
|
| 1285 |
+
741,
|
| 1286 |
+
903
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 6
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "page_number",
|
| 1292 |
+
"text": "5819",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
480,
|
| 1295 |
+
928,
|
| 1296 |
+
519,
|
| 1297 |
+
940
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 6
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "code",
|
| 1303 |
+
"sub_type": "code",
|
| 1304 |
+
"code_caption": [],
|
| 1305 |
+
"code_body": "You are a helpful and precise assistant for checking the quality of the answer. \n<|The Start of Assistant's Conversation with User|> \n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n```\n``}\n```\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``'\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``\"\n``)\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n```java\n`",
|
| 1306 |
+
"guess_lang": "txt",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
206,
|
| 1309 |
+
98,
|
| 1310 |
+
784,
|
| 1311 |
+
394
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 7
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "Figure 6: Prompt template for Auto-J applied for multi-turn evaluation.",
|
| 1318 |
+
"bbox": [
|
| 1319 |
+
255,
|
| 1320 |
+
411,
|
| 1321 |
+
739,
|
| 1322 |
+
426
|
| 1323 |
+
],
|
| 1324 |
+
"page_idx": 7
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"type": "code",
|
| 1328 |
+
"sub_type": "code",
|
| 1329 |
+
"code_caption": [],
|
| 1330 |
+
"code_body": "Write critiques for a submitted response on a given user's query, and grade the response: \n# [BEGIN DATA] \n# *** \n# [Query]: {question} \n# *** \n# [Response]: {answer} \n# *** \n# [END DATA] \n# Write critiques for this response. After that, you should give a final rating for the response on a scale of 1 to 10 by strictly following this format:\"[[rating]]\", for example:\"Rating:[[5]]\".",
|
| 1331 |
+
"guess_lang": "txt",
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
205,
|
| 1334 |
+
462,
|
| 1335 |
+
774,
|
| 1336 |
+
613
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 7
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "text",
|
| 1342 |
+
"text": "Figure 7: Prompt template for self-generation applied for single-turn evaluation.",
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
226,
|
| 1345 |
+
627,
|
| 1346 |
+
769,
|
| 1347 |
+
643
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 7
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "code",
|
| 1353 |
+
"sub_type": "code",
|
| 1354 |
+
"code_caption": [],
|
| 1355 |
+
"code_body": "Write critiques for a submitted response on a given user's query, and grade the response: \n# [BEGIN DATA] \n# *** \n# [Query 1]: {question_1} \n# *** \n# [Response 1]: {answer_1} \n# *** \n# [Query 2]: {question_2} \n# *** \n# [Response 2]: {answer_2} \n# *** \n# [END DATA] \n# Write critiques for this response. After that, you should give a final rating for the response on a scale of 1 to 10 by strictly following this format:\"[[rating]]\", for example:\"Rating:[[5]]\".",
|
| 1356 |
+
"guess_lang": "txt",
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
203,
|
| 1359 |
+
678,
|
| 1360 |
+
774,
|
| 1361 |
+
872
|
| 1362 |
+
],
|
| 1363 |
+
"page_idx": 7
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"type": "text",
|
| 1367 |
+
"text": "Figure 8: Prompt template for self-generation applied for multi-turn evaluation.",
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
228,
|
| 1370 |
+
887,
|
| 1371 |
+
766,
|
| 1372 |
+
902
|
| 1373 |
+
],
|
| 1374 |
+
"page_idx": 7
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"type": "page_number",
|
| 1378 |
+
"text": "5820",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
480,
|
| 1381 |
+
928,
|
| 1382 |
+
521,
|
| 1383 |
+
940
|
| 1384 |
+
],
|
| 1385 |
+
"page_idx": 7
|
| 1386 |
+
}
|
| 1387 |
+
]
|