Chelsea707 commited on
Commit
1ba557c
·
verified ·
1 Parent(s): ea12e14

Add Batch 479a4045-cab1-42e1-a34a-13227fad0954 data

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +64 -0
  2. 2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/c7224e54-d8ea-4cd5-997e-67780b3bc8e1_content_list.json +1513 -0
  3. 2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/c7224e54-d8ea-4cd5-997e-67780b3bc8e1_model.json +1674 -0
  4. 2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/c7224e54-d8ea-4cd5-997e-67780b3bc8e1_origin.pdf +3 -0
  5. 2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/full.md +252 -0
  6. 2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/images.zip +3 -0
  7. 2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/layout.json +0 -0
  8. 2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/d088b9bf-e0c0-448d-b422-4b6fe70269ad_content_list.json +0 -0
  9. 2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/d088b9bf-e0c0-448d-b422-4b6fe70269ad_model.json +0 -0
  10. 2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/d088b9bf-e0c0-448d-b422-4b6fe70269ad_origin.pdf +3 -0
  11. 2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/full.md +413 -0
  12. 2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/images.zip +3 -0
  13. 2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/layout.json +0 -0
  14. 2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/f3f69ae1-114a-4d0d-8660-d853f1f2496b_content_list.json +0 -0
  15. 2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/f3f69ae1-114a-4d0d-8660-d853f1f2496b_model.json +0 -0
  16. 2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/f3f69ae1-114a-4d0d-8660-d853f1f2496b_origin.pdf +3 -0
  17. 2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/full.md +506 -0
  18. 2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/images.zip +3 -0
  19. 2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/layout.json +0 -0
  20. 2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/9d4eab78-45f8-4d28-a2ff-1fe28a57f872_content_list.json +1851 -0
  21. 2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/9d4eab78-45f8-4d28-a2ff-1fe28a57f872_model.json +0 -0
  22. 2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/9d4eab78-45f8-4d28-a2ff-1fe28a57f872_origin.pdf +3 -0
  23. 2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/full.md +341 -0
  24. 2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/images.zip +3 -0
  25. 2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/layout.json +0 -0
  26. 2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/08dc98ee-6735-489e-8bdc-21704eaecbb3_content_list.json +1443 -0
  27. 2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/08dc98ee-6735-489e-8bdc-21704eaecbb3_model.json +1758 -0
  28. 2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/08dc98ee-6735-489e-8bdc-21704eaecbb3_origin.pdf +3 -0
  29. 2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/full.md +257 -0
  30. 2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/images.zip +3 -0
  31. 2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/layout.json +0 -0
  32. 2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/84e3f209-ffa0-4533-97e7-a3c6efc30d28_content_list.json +1909 -0
  33. 2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/84e3f209-ffa0-4533-97e7-a3c6efc30d28_model.json +0 -0
  34. 2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/84e3f209-ffa0-4533-97e7-a3c6efc30d28_origin.pdf +3 -0
  35. 2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/full.md +352 -0
  36. 2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/images.zip +3 -0
  37. 2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/layout.json +0 -0
  38. 2024/Characterizing Text Datasets with Psycholinguistic Features/edda636b-461c-4dc0-a59f-e0ba1b203ec9_content_list.json +2080 -0
  39. 2024/Characterizing Text Datasets with Psycholinguistic Features/edda636b-461c-4dc0-a59f-e0ba1b203ec9_model.json +0 -0
  40. 2024/Characterizing Text Datasets with Psycholinguistic Features/edda636b-461c-4dc0-a59f-e0ba1b203ec9_origin.pdf +3 -0
  41. 2024/Characterizing Text Datasets with Psycholinguistic Features/full.md +403 -0
  42. 2024/Characterizing Text Datasets with Psycholinguistic Features/images.zip +3 -0
  43. 2024/Characterizing Text Datasets with Psycholinguistic Features/layout.json +0 -0
  44. 2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/0d6f47a2-1c92-48a9-95eb-85faf2cfb354_content_list.json +0 -0
  45. 2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/0d6f47a2-1c92-48a9-95eb-85faf2cfb354_model.json +0 -0
  46. 2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/0d6f47a2-1c92-48a9-95eb-85faf2cfb354_origin.pdf +3 -0
  47. 2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/full.md +0 -0
  48. 2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/images.zip +3 -0
  49. 2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/layout.json +0 -0
  50. 2024/ChatGLM-Math_ Improving Math Problem-Solving in Large Language Models with a Self-Critique Pipeline/fdd4c5f9-8834-4d35-9712-d719de2cdcbf_content_list.json +0 -0
.gitattributes CHANGED
@@ -3185,3 +3185,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
3185
  2024/CantTalkAboutThis_[[:space:]]Aligning[[:space:]]Language[[:space:]]Models[[:space:]]to[[:space:]]Stay[[:space:]]on[[:space:]]Topic[[:space:]]in[[:space:]]Dialogues/b9acb227-782e-43e4-9198-bdfe5c434b6a_origin.pdf filter=lfs diff=lfs merge=lfs -text
3186
  2024/Can’t[[:space:]]Remember[[:space:]]Details[[:space:]]in[[:space:]]Long[[:space:]]Documents_[[:space:]]You[[:space:]]Need[[:space:]]Some[[:space:]]R&R/e6f8a96e-d266-4b7e-ae3b-02039a868f6b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3187
  2024/CapEEN_[[:space:]]Image[[:space:]]Captioning[[:space:]]with[[:space:]]Early[[:space:]]Exits[[:space:]]and[[:space:]]Knowledge[[:space:]]Distillation/c8a382c8-9097-4e54-8687-9a8dd77fbc41_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3185
  2024/CantTalkAboutThis_[[:space:]]Aligning[[:space:]]Language[[:space:]]Models[[:space:]]to[[:space:]]Stay[[:space:]]on[[:space:]]Topic[[:space:]]in[[:space:]]Dialogues/b9acb227-782e-43e4-9198-bdfe5c434b6a_origin.pdf filter=lfs diff=lfs merge=lfs -text
3186
  2024/Can’t[[:space:]]Remember[[:space:]]Details[[:space:]]in[[:space:]]Long[[:space:]]Documents_[[:space:]]You[[:space:]]Need[[:space:]]Some[[:space:]]R&R/e6f8a96e-d266-4b7e-ae3b-02039a868f6b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3187
  2024/CapEEN_[[:space:]]Image[[:space:]]Captioning[[:space:]]with[[:space:]]Early[[:space:]]Exits[[:space:]]and[[:space:]]Knowledge[[:space:]]Distillation/c8a382c8-9097-4e54-8687-9a8dd77fbc41_origin.pdf filter=lfs diff=lfs merge=lfs -text
3188
+ 2024/Capturing[[:space:]]Minds,[[:space:]]Not[[:space:]]Just[[:space:]]Words_[[:space:]]Enhancing[[:space:]]Role-Playing[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Personality-Indicative[[:space:]]Data/c7224e54-d8ea-4cd5-997e-67780b3bc8e1_origin.pdf filter=lfs diff=lfs merge=lfs -text
3189
+ 2024/Causal[[:space:]]Discovery[[:space:]]Inspired[[:space:]]Unsupervised[[:space:]]Domain[[:space:]]Adaptation[[:space:]]for[[:space:]]Emotion-Cause[[:space:]]Pair[[:space:]]Extraction/d088b9bf-e0c0-448d-b422-4b6fe70269ad_origin.pdf filter=lfs diff=lfs merge=lfs -text
3190
+ 2024/Chain[[:space:]]of[[:space:]]Condition_[[:space:]]Construct,[[:space:]]Verify[[:space:]]and[[:space:]]Solve[[:space:]]Conditions[[:space:]]for[[:space:]]Conditional[[:space:]]Question[[:space:]]Answering/f3f69ae1-114a-4d0d-8660-d853f1f2496b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3191
+ 2024/Chain-of-Rewrite_[[:space:]]Aligning[[:space:]]Question[[:space:]]and[[:space:]]Documents[[:space:]]for[[:space:]]Open-Domain[[:space:]]Question[[:space:]]Answering/9d4eab78-45f8-4d28-a2ff-1fe28a57f872_origin.pdf filter=lfs diff=lfs merge=lfs -text
3192
+ 2024/Change[[:space:]]Is[[:space:]]the[[:space:]]Only[[:space:]]Constant_[[:space:]]Dynamic[[:space:]]LLM[[:space:]]Slicing[[:space:]]based[[:space:]]on[[:space:]]Layer[[:space:]]Redundancy/08dc98ee-6735-489e-8bdc-21704eaecbb3_origin.pdf filter=lfs diff=lfs merge=lfs -text
3193
+ 2024/Characterizing[[:space:]]LLM[[:space:]]Abstention[[:space:]]Behavior[[:space:]]in[[:space:]]Science[[:space:]]QA[[:space:]]with[[:space:]]Context[[:space:]]Perturbations/84e3f209-ffa0-4533-97e7-a3c6efc30d28_origin.pdf filter=lfs diff=lfs merge=lfs -text
3194
+ 2024/Characterizing[[:space:]]Text[[:space:]]Datasets[[:space:]]with[[:space:]]Psycholinguistic[[:space:]]Features/edda636b-461c-4dc0-a59f-e0ba1b203ec9_origin.pdf filter=lfs diff=lfs merge=lfs -text
3195
+ 2024/ChartInsights_[[:space:]]Evaluating[[:space:]]Multimodal[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Low-Level[[:space:]]Chart[[:space:]]Question[[:space:]]Answering/0d6f47a2-1c92-48a9-95eb-85faf2cfb354_origin.pdf filter=lfs diff=lfs merge=lfs -text
3196
+ 2024/ChatGLM-Math_[[:space:]]Improving[[:space:]]Math[[:space:]]Problem-Solving[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]a[[:space:]]Self-Critique[[:space:]]Pipeline/fdd4c5f9-8834-4d35-9712-d719de2cdcbf_origin.pdf filter=lfs diff=lfs merge=lfs -text
3197
+ 2024/ClaimVer_[[:space:]]Explainable[[:space:]]Claim-Level[[:space:]]Verification[[:space:]]and[[:space:]]Evidence[[:space:]]Attribution[[:space:]]of[[:space:]]Text[[:space:]]Through[[:space:]]Knowledge[[:space:]]Graphs/c1c1fbc8-5e2a-40f3-a921-80a98e5008ac_origin.pdf filter=lfs diff=lfs merge=lfs -text
3198
+ 2024/Class[[:space:]]Name[[:space:]]Guided[[:space:]]Out-of-Scope[[:space:]]Intent[[:space:]]Classification/1b41b24b-326b-485c-a803-17cbd106b49e_origin.pdf filter=lfs diff=lfs merge=lfs -text
3199
+ 2024/CoCoHD_[[:space:]]Congress[[:space:]]Committee[[:space:]]Hearing[[:space:]]Dataset/71dbc941-b07c-40d7-b6c1-72d0c289e4db_origin.pdf filter=lfs diff=lfs merge=lfs -text
3200
+ 2024/CoTAR_[[:space:]]Chain-of-Thought[[:space:]]Attribution[[:space:]]Reasoning[[:space:]]with[[:space:]]Multi-level[[:space:]]Granularity/562ce32c-e449-44de-ac41-39677c636d5b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3201
+ 2024/CoXQL_[[:space:]]A[[:space:]]Dataset[[:space:]]for[[:space:]]Parsing[[:space:]]Explanation[[:space:]]Requests[[:space:]]in[[:space:]]Conversational[[:space:]]XAI[[:space:]]Systems/10eef606-5f6c-4e4b-8c58-5422aa871ebd_origin.pdf filter=lfs diff=lfs merge=lfs -text
3202
+ 2024/Code[[:space:]]Membership[[:space:]]Inference[[:space:]]for[[:space:]]Detecting[[:space:]]Unauthorized[[:space:]]Data[[:space:]]Use[[:space:]]in[[:space:]]Code[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Models/a55735ab-fbf5-4ba3-9379-769b332d4db0_origin.pdf filter=lfs diff=lfs merge=lfs -text
3203
+ 2024/CodeFort_[[:space:]]Robust[[:space:]]Training[[:space:]]for[[:space:]]Code[[:space:]]Generation[[:space:]]Models/b256ee6d-7207-4a0a-9a68-5ff934162972_origin.pdf filter=lfs diff=lfs merge=lfs -text
3204
+ 2024/CodeIP_[[:space:]]A[[:space:]]Grammar-Guided[[:space:]]Multi-Bit[[:space:]]Watermark[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]of[[:space:]]Code/23475b0d-8c59-4173-b52b-46586e794370_origin.pdf filter=lfs diff=lfs merge=lfs -text
3205
+ 2024/CogGPT_[[:space:]]Unleashing[[:space:]]the[[:space:]]Power[[:space:]]of[[:space:]]Cognitive[[:space:]]Dynamics[[:space:]]on[[:space:]]Large[[:space:]]Language[[:space:]]Models/01e10b45-6b10-4a9a-ad2d-113de3ed08b4_origin.pdf filter=lfs diff=lfs merge=lfs -text
3206
+ 2024/Cognitive[[:space:]]Bias[[:space:]]in[[:space:]]Decision-Making[[:space:]]with[[:space:]]LLMs/f756c5ad-570b-4d69-aef6-2cab8e3b452d_origin.pdf filter=lfs diff=lfs merge=lfs -text
3207
+ 2024/Communicate[[:space:]]to[[:space:]]Play_[[:space:]]Pragmatic[[:space:]]Reasoning[[:space:]]for[[:space:]]Efficient[[:space:]]Cross-Cultural[[:space:]]Communication/b737a352-ce8b-4f38-b669-c825a4cb7e02_origin.pdf filter=lfs diff=lfs merge=lfs -text
3208
+ 2024/Compare[[:space:]]without[[:space:]]Despair_[[:space:]]Reliable[[:space:]]Preference[[:space:]]Evaluation[[:space:]]with[[:space:]]Generation[[:space:]]Separability/6e0c4e0d-7a0b-47a5-a1c0-a9f75f3647db_origin.pdf filter=lfs diff=lfs merge=lfs -text
3209
+ 2024/Comparing[[:space:]]Edge-based[[:space:]]and[[:space:]]Node-based[[:space:]]Methods[[:space:]]on[[:space:]]a[[:space:]]Citation[[:space:]]Prediction[[:space:]]Task/181d5b52-fa36-4970-88d7-dc4e77460790_origin.pdf filter=lfs diff=lfs merge=lfs -text
3210
+ 2024/ConTReGen_[[:space:]]Context-driven[[:space:]]Tree-structured[[:space:]]Retrieval[[:space:]]for[[:space:]]Open-domain[[:space:]]Long-form[[:space:]]Text[[:space:]]Generation/277f2073-b3f6-40c2-9f83-d655162dcdb5_origin.pdf filter=lfs diff=lfs merge=lfs -text
3211
+ 2024/ConU_[[:space:]]Conformal[[:space:]]Uncertainty[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Correctness[[:space:]]Coverage[[:space:]]Guarantees/07dc0d86-ab60-4c07-884f-2ba59e4fad21_origin.pdf filter=lfs diff=lfs merge=lfs -text
3212
+ 2024/Conditional[[:space:]]Language[[:space:]]Policy_[[:space:]]A[[:space:]]General[[:space:]]Framework[[:space:]]For[[:space:]]Steerable[[:space:]]Multi-Objective[[:space:]]Finetuning/cab50a43-04de-4937-bf3e-7aa552115543_origin.pdf filter=lfs diff=lfs merge=lfs -text
3213
+ 2024/Consistent[[:space:]]Document-level[[:space:]]Relation[[:space:]]Extraction[[:space:]]via[[:space:]]Counterfactuals/1a0b77fa-0705-4651-ad9e-c095bc2a41c9_origin.pdf filter=lfs diff=lfs merge=lfs -text
3214
+ 2024/Context-Driven[[:space:]]Index[[:space:]]Trimming_[[:space:]]A[[:space:]]Data[[:space:]]Quality[[:space:]]Perspective[[:space:]]to[[:space:]]Enhancing[[:space:]]Precision[[:space:]]of[[:space:]]RALMs/a7bb2ff3-336b-475f-b333-4c3135632e83_origin.pdf filter=lfs diff=lfs merge=lfs -text
3215
+ 2024/Contextualized[[:space:]]Graph[[:space:]]Representations[[:space:]]for[[:space:]]Generating[[:space:]]Counter-Narratives[[:space:]]against[[:space:]]Hate[[:space:]]Speech/3477ae1e-f3af-400c-a621-b9d34fb147b4_origin.pdf filter=lfs diff=lfs merge=lfs -text
3216
+ 2024/Contrastive[[:space:]]Token[[:space:]]Learning[[:space:]]with[[:space:]]Similarity[[:space:]]Decay[[:space:]]for[[:space:]]Repetition[[:space:]]Suppression[[:space:]]in[[:space:]]Machine[[:space:]]Translation/41ff5e9f-6aa6-4ee2-ba6e-bd089834aac2_origin.pdf filter=lfs diff=lfs merge=lfs -text
3217
+ 2024/Controlled[[:space:]]Transformation[[:space:]]of[[:space:]]Text-Attributed[[:space:]]Graphs/c6a439bf-3cfc-417f-bd01-4334d8ce2d72_origin.pdf filter=lfs diff=lfs merge=lfs -text
3218
+ 2024/Controlling[[:space:]]Risk[[:space:]]of[[:space:]]Retrieval-augmented[[:space:]]Generation_[[:space:]]A[[:space:]]Counterfactual[[:space:]]Prompting[[:space:]]Framework/6dd56822-8413-46e2-b019-bdaf628da8f0_origin.pdf filter=lfs diff=lfs merge=lfs -text
3219
+ 2024/Correct[[:space:]]after[[:space:]]Answer_[[:space:]]Enhancing[[:space:]]Multi-Span[[:space:]]Question[[:space:]]Answering[[:space:]]with[[:space:]]Post-Processing[[:space:]]Method/218ec915-fd0c-44f4-a132-df1e72738388_origin.pdf filter=lfs diff=lfs merge=lfs -text
3220
+ 2024/Cost-Efficient[[:space:]]Subjective[[:space:]]Task[[:space:]]Annotation[[:space:]]and[[:space:]]Modeling[[:space:]]through[[:space:]]Few-Shot[[:space:]]Annotator[[:space:]]Adaptation/78caefed-548a-4790-be37-b3908cf4c60f_origin.pdf filter=lfs diff=lfs merge=lfs -text
3221
+ 2024/Cost-Performance[[:space:]]Optimization[[:space:]]for[[:space:]]Processing[[:space:]]Low-Resource[[:space:]]Language[[:space:]]Tasks[[:space:]]Using[[:space:]]Commercial[[:space:]]LLMs/7d5c00e9-557d-4dee-a13b-f790c0939aed_origin.pdf filter=lfs diff=lfs merge=lfs -text
3222
+ 2024/Counter[[:space:]]Turing[[:space:]]Test[[:space:]](CT2)_[[:space:]]Investigating[[:space:]]AI-Generated[[:space:]]Text[[:space:]]Detection[[:space:]]for[[:space:]]Hindi[[:space:]]-[[:space:]]Ranking[[:space:]]LLMs[[:space:]]based[[:space:]]on[[:space:]]Hindi[[:space:]]AI[[:space:]]Detectability[[:space:]]Index[[:space:]](ADI_hi)/74d7389d-d4ad-4ea5-b882-c5e28cd1795d_origin.pdf filter=lfs diff=lfs merge=lfs -text
3223
+ 2024/Creative[[:space:]]Problem[[:space:]]Solving[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]and[[:space:]]Vision[[:space:]]Models[[:space:]]-[[:space:]]What[[:space:]]Would[[:space:]]it[[:space:]]Take_/a41cf44a-f444-47c7-ac53-8c5e76e7f3d7_origin.pdf filter=lfs diff=lfs merge=lfs -text
3224
+ 2024/Creative[[:space:]]and[[:space:]]Context-Aware[[:space:]]Translation[[:space:]]of[[:space:]]East[[:space:]]Asian[[:space:]]Idioms[[:space:]]with[[:space:]]GPT-4/d253a968-53c3-4228-b027-948bc1060b8b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3225
+ 2024/Crisis[[:space:]]counselor[[:space:]]language[[:space:]]and[[:space:]]perceived[[:space:]]genuine[[:space:]]concern[[:space:]]in[[:space:]]crisis[[:space:]]conversations/f1115fb0-a435-4612-8e84-e11031cfdec8_origin.pdf filter=lfs diff=lfs merge=lfs -text
3226
+ 2024/Cross-Lingual[[:space:]]Multi-Hop[[:space:]]Knowledge[[:space:]]Editing/5c44bdcc-0dfb-4ae3-b545-5853229bd2df_origin.pdf filter=lfs diff=lfs merge=lfs -text
3227
+ 2024/Cross-Lingual[[:space:]]Unlearning[[:space:]]of[[:space:]]Selective[[:space:]]Knowledge[[:space:]]in[[:space:]]Multilingual[[:space:]]Language[[:space:]]Models/eb6b64ca-cf3b-4157-80ec-ce309da31c02_origin.pdf filter=lfs diff=lfs merge=lfs -text
3228
+ 2024/Cross-lingual[[:space:]]Contextualized[[:space:]]Phrase[[:space:]]Retrieval/d2add372-c091-4da4-8479-dc7303ca3bb9_origin.pdf filter=lfs diff=lfs merge=lfs -text
3229
+ 2024/Cross-modality[[:space:]]Information[[:space:]]Check[[:space:]]for[[:space:]]Detecting[[:space:]]Jailbreaking[[:space:]]in[[:space:]]Multimodal[[:space:]]Large[[:space:]]Language[[:space:]]Models/8a9b8dbb-ea2e-41d0-85ec-09adec6dc3eb_origin.pdf filter=lfs diff=lfs merge=lfs -text
3230
+ 2024/CultureBank_[[:space:]]An[[:space:]]Online[[:space:]]Community-Driven[[:space:]]Knowledge[[:space:]]Base[[:space:]]Towards[[:space:]]Culturally[[:space:]]Aware[[:space:]]Language[[:space:]]Technologies/76aa51cb-08fd-4d99-9949-355974627224_origin.pdf filter=lfs diff=lfs merge=lfs -text
3231
+ 2024/DALK_[[:space:]]Dynamic[[:space:]]Co-Augmentation[[:space:]]of[[:space:]]LLMs[[:space:]]and[[:space:]]KG[[:space:]]to[[:space:]]answer[[:space:]]Alzheimer’s[[:space:]]Disease[[:space:]]Questions[[:space:]]with[[:space:]]Scientific[[:space:]]Literature/574859c8-287b-4cce-bbf2-4723a1d48cea_origin.pdf filter=lfs diff=lfs merge=lfs -text
3232
+ 2024/DAdEE_[[:space:]]Unsupervised[[:space:]]Domain[[:space:]]Adaptation[[:space:]]in[[:space:]]Early[[:space:]]Exit[[:space:]]PLMs/6f43ebb3-c6cc-472d-a08c-54f311d23852_origin.pdf filter=lfs diff=lfs merge=lfs -text
3233
+ 2024/DEFT_[[:space:]]Distribution-guided[[:space:]]Efficient[[:space:]]Fine-Tuning[[:space:]]for[[:space:]]Human[[:space:]]Alignment/30e56626-3947-4592-a8c5-1c64039d6621_origin.pdf filter=lfs diff=lfs merge=lfs -text
3234
+ 2024/DLoRA_[[:space:]]Distributed[[:space:]]Parameter-Efficient[[:space:]]Fine-Tuning[[:space:]]Solution[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Model/bb8f0ee3-e89a-4520-be4f-cb6a4e3e5e6e_origin.pdf filter=lfs diff=lfs merge=lfs -text
3235
+ 2024/DTS-SQL_[[:space:]]Decomposed[[:space:]]Text-to-SQL[[:space:]]with[[:space:]]Small[[:space:]]Large[[:space:]]Language[[:space:]]Models/4e06f0a3-cf33-4ccb-914a-789ba2601e09_origin.pdf filter=lfs diff=lfs merge=lfs -text
3236
+ 2024/DYNAMICQA_[[:space:]]Tracing[[:space:]]Internal[[:space:]]Knowledge[[:space:]]Conflicts[[:space:]]in[[:space:]]Language[[:space:]]Models/907c5718-2c70-4ac1-a479-96e0e34dbf0b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3237
+ 2024/Data[[:space:]]Diversity[[:space:]]Matters[[:space:]]for[[:space:]]Robust[[:space:]]Instruction[[:space:]]Tuning/e3728757-0141-42d3-afa3-26ff8f4edef7_origin.pdf filter=lfs diff=lfs merge=lfs -text
3238
+ 2024/Data-driven[[:space:]]Coreference-based[[:space:]]Ontology[[:space:]]Building/a862a7a8-0ba7-4caf-9122-35be916b088f_origin.pdf filter=lfs diff=lfs merge=lfs -text
3239
+ 2024/Datasets[[:space:]]for[[:space:]]Multilingual[[:space:]]Answer[[:space:]]Sentence[[:space:]]Selection/95bfec59-b6c0-4c55-be01-683974b23584_origin.pdf filter=lfs diff=lfs merge=lfs -text
3240
+ 2024/Dealing[[:space:]]with[[:space:]]Controversy_[[:space:]]An[[:space:]]Emotion[[:space:]]and[[:space:]]Coping[[:space:]]Strategy[[:space:]]Corpus[[:space:]]Based[[:space:]]on[[:space:]]Role[[:space:]]Playing/0a2f4d3b-16c4-4ea7-98ec-23173830dfb7_origin.pdf filter=lfs diff=lfs merge=lfs -text
3241
+ 2024/Debate[[:space:]]as[[:space:]]Optimization_[[:space:]]Adaptive[[:space:]]Conformal[[:space:]]Prediction[[:space:]]and[[:space:]]Diverse[[:space:]]Retrieval[[:space:]]for[[:space:]]Event[[:space:]]Extraction/1a311714-6d7a-487b-a285-4e5bd0a487f4_origin.pdf filter=lfs diff=lfs merge=lfs -text
3242
+ 2024/Deciphering[[:space:]]the[[:space:]]Factors[[:space:]]Influencing[[:space:]]the[[:space:]]Efficacy[[:space:]]of[[:space:]]Chain-of-Thought_[[:space:]]Probability,[[:space:]]Memorization,[[:space:]]and[[:space:]]Noisy[[:space:]]Reasoning/bb7c70a4-effb-4e10-882c-b95e36cd541c_origin.pdf filter=lfs diff=lfs merge=lfs -text
3243
+ 2024/Deeper[[:space:]]Insights[[:space:]]Without[[:space:]]Updates_[[:space:]]The[[:space:]]Power[[:space:]]of[[:space:]]In-Context[[:space:]]Learning[[:space:]]Over[[:space:]]Fine-Tuning/3a9bf478-0c95-4102-a6ae-6730a3946530_origin.pdf filter=lfs diff=lfs merge=lfs -text
3244
+ 2024/Defending[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]Against[[:space:]]Jailbreak[[:space:]]Attacks[[:space:]]via[[:space:]]Layer-specific[[:space:]]Editing/19c59d3d-927b-45e6-8621-b5285f5990cc_origin.pdf filter=lfs diff=lfs merge=lfs -text
3245
+ 2024/Demonstration[[:space:]]Selection[[:space:]]Strategies[[:space:]]for[[:space:]]Numerical[[:space:]]Time[[:space:]]Series[[:space:]]Data-to-Text/58c971dc-1b75-49a1-8a2e-9968317fd933_origin.pdf filter=lfs diff=lfs merge=lfs -text
3246
+ 2024/Denoising[[:space:]]Rationalization[[:space:]]for[[:space:]]Multi-hop[[:space:]]Fact[[:space:]]Verification[[:space:]]via[[:space:]]Multi-granular[[:space:]]Explainer/4bfd5f23-e72d-45e8-b5fe-11472fd1a493_origin.pdf filter=lfs diff=lfs merge=lfs -text
3247
+ 2024/Dense[[:space:]]Passage[[:space:]]Retrieval_[[:space:]]Is[[:space:]]it[[:space:]]Retrieving_/42e3e2ea-baba-45fa-997a-a8aebddf1c55_origin.pdf filter=lfs diff=lfs merge=lfs -text
3248
+ 2024/Designing[[:space:]]Logic[[:space:]]Pattern[[:space:]]Templates[[:space:]]for[[:space:]]Counter-Argument[[:space:]]Logical[[:space:]]Structure[[:space:]]Analysis/4bcbdf05-b04a-4777-aad1-2e912f813966_origin.pdf filter=lfs diff=lfs merge=lfs -text
3249
+ 2024/DetectBench_[[:space:]]Can[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Detect[[:space:]]and[[:space:]]Piece[[:space:]]Together[[:space:]]Implicit[[:space:]]Evidence_/7e1f4e2f-3e01-4730-83eb-9ee8b1c459a0_origin.pdf filter=lfs diff=lfs merge=lfs -text
3250
+ 2024/Detecting[[:space:]]Machine-Generated[[:space:]]Long-Form[[:space:]]Content[[:space:]]with[[:space:]]Latent-Space[[:space:]]Variables/1b918944-42d3-47f2-aca5-082c62a2e803_origin.pdf filter=lfs diff=lfs merge=lfs -text
3251
+ 2024/Detecting[[:space:]]Temporal[[:space:]]Ambiguity[[:space:]]in[[:space:]]Questions/76af1219-e6ee-4243-840f-277a31cf240f_origin.pdf filter=lfs diff=lfs merge=lfs -text
2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/c7224e54-d8ea-4cd5-997e-67780b3bc8e1_content_list.json ADDED
@@ -0,0 +1,1513 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Capturing Minds, Not Just Words: Enhancing Role-Playing Language Models with Personality-Indicative Data",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 134,
8
+ 80,
9
+ 867,
10
+ 122
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yiting Ran $^{1}$ , Xintao Wang $^{2}$ , Rui Xu $^{2}$ , Xinfeng Yuan $^{1}$ , Jiaqing Liang $^{1*}$ , Deqing Yang $^{1}$ , Yanghua Xiao $^{2}$",
17
+ "bbox": [
18
+ 273,
19
+ 129,
20
+ 732,
21
+ 165
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "$^{1}$ School of Data Science, Fudan University",
28
+ "bbox": [
29
+ 324,
30
+ 165,
31
+ 678,
32
+ 181
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "$^{2}$ School of Computer Science, Fudan University",
39
+ "bbox": [
40
+ 302,
41
+ 181,
42
+ 697,
43
+ 198
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "{ytran23,xtwang21,ruixu21,xfyuan23}@m.fudan.edu.cn",
50
+ "bbox": [
51
+ 250,
52
+ 198,
53
+ 754,
54
+ 215
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "{liangjiaqing, yangdeqing, shawyh}@fudan.edu.cn",
61
+ "bbox": [
62
+ 273,
63
+ 215,
64
+ 729,
65
+ 231
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Abstract",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 260,
75
+ 252,
76
+ 342,
77
+ 268
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Role-playing agents (RPA) have been a popular application area for large language models (LLMs), attracting significant interest from both industry and academia. While existing RPAs well portray the characters' knowledge and tones, they face challenges in capturing their minds, especially for small role-playing language models (RPLMs). In this paper, we propose to enhance RPLMs via personality-indicative data. Specifically, we leverage questions from psychological scales and distill advanced RPAs to generate dialogues that grasp the minds of characters. Experimental results validate that RPLMs trained with our dataset exhibit advanced role-playing capabilities for both general and personality-related evaluations. Code and data are available at https://github.com/alienet1109/RolePersonality.",
84
+ "bbox": [
85
+ 141,
86
+ 280,
87
+ 460,
88
+ 537
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 Introduction",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 114,
98
+ 549,
99
+ 260,
100
+ 564
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "With the rise of large language models (LLMs), role-playing agents (RPAs) have emerged as a widely focused field of application, which attracts significant research interest as well (Chen et al., 2024). Based on LLMs, RPAs simulate the behavior and speech patterns of specific characters (Li et al., 2023; Wang et al., 2024b). Increasing efforts have been made to build specialized LLMs for RPAs, i.e., role-playing language models (RPLMs) (Zhou et al., 2023), typically via constructing role-playing datasets. These datasets aim to capture the key elements of role-playing and faithfully recreate character traits.",
107
+ "bbox": [
108
+ 112,
109
+ 574,
110
+ 489,
111
+ 783
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "While existing RPLMs well replicate the knowledge and tone of the intended characters, they struggle to capture their minds, in tasks such as personality assessment (Wang et al., 2024a) and decision simulation (Xu et al., 2024). This is partly because existing role-playing datasets focus on character knowledge and tones (Wang et al., 2024b; Shao",
118
+ "bbox": [
119
+ 112,
120
+ 784,
121
+ 489,
122
+ 897
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "et al., 2023). However, capturing characters' minds is crucial for developing authentic RPAs.",
129
+ "bbox": [
130
+ 507,
131
+ 253,
132
+ 882,
133
+ 284
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "In this paper, we propose to develop RPLMs via personality-indicative data. Specifically, we collect these data through questions from psychological scales. These scale questions are designed to quickly capture broad aspects of personality traits in individuals. Hence, we leverage advanced RPAs for the distillation of knowledge from them. Then, we apply these data to develop RPLMs that better capture the minds of the intended characters.",
140
+ "bbox": [
141
+ 507,
142
+ 285,
143
+ 884,
144
+ 429
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Specifically, we construct a dataset $\\mathsf{R}\\mathsf{o}\\mathsf{L}\\mathsf{E}\\mathsf{P}\\mathsf{E}\\mathsf{R}$ PERSONALITY based on questions from 14 different psychological scales, including both single-round and multi-round data, inspired by InCharacter (Wang et al., 2024a). Following the dataset generation, we apply a filtering process using human-annotated personality labels for the selected characters.",
151
+ "bbox": [
152
+ 507,
153
+ 430,
154
+ 885,
155
+ 557
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "We apply ROLEPERSONALITY to fine-tune RPLMs and evaluate them from three aspects, including personality fidelity (Wang et al., 2024a), motivation recognition (Yuan et al., 2024) and general role-playing benchmarks (Shao et al., 2023; Wang et al., 2024b). The results demonstrate that RPLMs fine-tuned with our dataset show improved capabilities in both personality-related and general evaluations.",
162
+ "bbox": [
163
+ 507,
164
+ 558,
165
+ 885,
166
+ 702
167
+ ],
168
+ "page_idx": 0
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "The main contributions of this paper are summarized as threefold:",
173
+ "bbox": [
174
+ 507,
175
+ 703,
176
+ 885,
177
+ 734
178
+ ],
179
+ "page_idx": 0
180
+ },
181
+ {
182
+ "type": "list",
183
+ "sub_type": "text",
184
+ "list_items": [
185
+ "1. We propose to develop RPLMs with personality-indicative data to enable them to better capture the minds of the characters.",
186
+ "2. We construct ROLEPERSONALITY, a comprehensive dataset based on questions from 14 psychological scales, encompassing both single-turn and multi-turn dialogues.",
187
+ "3. Experimental results show that RPLMs finetuned with ROLEPERSONALITY achieve refined performance in both personality-related"
188
+ ],
189
+ "bbox": [
190
+ 522,
191
+ 740,
192
+ 884,
193
+ 917
194
+ ],
195
+ "page_idx": 0
196
+ },
197
+ {
198
+ "type": "page_footnote",
199
+ "text": "* Corresponding author.",
200
+ "bbox": [
201
+ 141,
202
+ 904,
203
+ 297,
204
+ 917
205
+ ],
206
+ "page_idx": 0
207
+ },
208
+ {
209
+ "type": "page_number",
210
+ "text": "14566",
211
+ "bbox": [
212
+ 475,
213
+ 927,
214
+ 527,
215
+ 940
216
+ ],
217
+ "page_idx": 0
218
+ },
219
+ {
220
+ "type": "footer",
221
+ "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 14566-14576 November 12-16, 2024 ©2024 Association for Computational Linguistics",
222
+ "bbox": [
223
+ 210,
224
+ 945,
225
+ 788,
226
+ 972
227
+ ],
228
+ "page_idx": 0
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "and general RPA evaluations, validating the effectiveness of ROLEPERSONALITY.",
233
+ "bbox": [
234
+ 149,
235
+ 84,
236
+ 487,
237
+ 116
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "2 Related Work",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 112,
247
+ 137,
248
+ 270,
249
+ 153
250
+ ],
251
+ "page_idx": 1
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "2.1 Role-Playing Language Models",
256
+ "text_level": 1,
257
+ "bbox": [
258
+ 112,
259
+ 162,
260
+ 405,
261
+ 179
262
+ ],
263
+ "page_idx": 1
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "The key for developing RPLMs is building a roleplaying dataset. The collection methods can be roughly divided into the following two categories.",
268
+ "bbox": [
269
+ 112,
270
+ 184,
271
+ 489,
272
+ 231
273
+ ],
274
+ "page_idx": 1
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "Experience Extraction This method refers to extracting dialogues and other information from original works such as novels, TV shows, and other media (Li et al., 2023; Yuan et al., 2024).",
279
+ "bbox": [
280
+ 112,
281
+ 241,
282
+ 487,
283
+ 305
284
+ ],
285
+ "page_idx": 1
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Dialogue Synthesis This method utilizes LLMs for generating conversations or human annotations to build and augment datasets. The topics come from the corresponding literature (Shao et al., 2023), general task instructions (Wang et al., 2024b), and special scenarios such as personality tests (Wang et al., 2024a).",
290
+ "bbox": [
291
+ 112,
292
+ 313,
293
+ 489,
294
+ 426
295
+ ],
296
+ "page_idx": 1
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "2.2 Construction of Role-Playing Agents",
301
+ "text_level": 1,
302
+ "bbox": [
303
+ 112,
304
+ 437,
305
+ 448,
306
+ 454
307
+ ],
308
+ "page_idx": 1
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "Based on character role-playing datasets, RPAs can be constructed in two ways: training or prompting.",
313
+ "bbox": [
314
+ 112,
315
+ 458,
316
+ 489,
317
+ 491
318
+ ],
319
+ "page_idx": 1
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "Parametric Learning This approach fine-tunes a base model using existing or custom role-playing datasets. Shao et al. (2023); Yu et al. (2024) enhance foundation models with improved roleplaying abilities using datasets featuring a variety of characters and scenarios. Zhou et al. (2023); Wang et al. (2024b) tailor LLMs to role-play specific characters.",
324
+ "bbox": [
325
+ 112,
326
+ 499,
327
+ 489,
328
+ 626
329
+ ],
330
+ "page_idx": 1
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "Non-Parametric Learning For more in-depth role-playing of a specific character, many efforts have focused on character-level engineering (Zhou et al., 2023; Wang et al., 2024b). They collect and process character-related data from the corresponding sources, including collecting profile from Wikipedia (Shao et al., 2023). Typically, they add long-term memory to retrieve knowledge about the character based on similarity with the user's query (Li et al., 2023).",
335
+ "bbox": [
336
+ 112,
337
+ 636,
338
+ 489,
339
+ 796
340
+ ],
341
+ "page_idx": 1
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "3 Method",
346
+ "text_level": 1,
347
+ "bbox": [
348
+ 112,
349
+ 808,
350
+ 216,
351
+ 822
352
+ ],
353
+ "page_idx": 1
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "3.1 Dataset Construction",
358
+ "text_level": 1,
359
+ "bbox": [
360
+ 112,
361
+ 834,
362
+ 327,
363
+ 848
364
+ ],
365
+ "page_idx": 1
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "To simulate the deep thoughts underlying the characters, we generate persona-indicative data by utilizing psychological scale questions, inspired by InCharacter (Wang et al., 2024a). In practice, we",
370
+ "bbox": [
371
+ 112,
372
+ 854,
373
+ 489,
374
+ 917
375
+ ],
376
+ "page_idx": 1
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "construct an RPA by pairing the RPLM with descriptions and the memory base of the target character (Li et al., 2023). RPAs are then engaged with open-ended questions derived from established psychological scales. These questions are designed to elicit the character's mindset and behaviors in various scenarios. The questions were adapted from well-known psychological scales such as the Big Five Inventory (BFI) and 16Personalities. For more details, refer to Sec. B. We start by rewriting psychological scale questions and implementing a selection process to refine the data.",
381
+ "bbox": [
382
+ 507,
383
+ 84,
384
+ 884,
385
+ 277
386
+ ],
387
+ "page_idx": 1
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Filtering Mechanism After generating the responses, we implement a filtering process based on the results of the personality assessment. This involves assessing the generated responses to ensure that they align with the intended character's personality traits. The ground truth comes from human annotations. Responses inconsistent with the character's personality were discarded to maintain the quality and consistency of the dataset.",
392
+ "bbox": [
393
+ 507,
394
+ 288,
395
+ 884,
396
+ 434
397
+ ],
398
+ "page_idx": 1
399
+ },
400
+ {
401
+ "type": "table",
402
+ "img_path": "images/b81e96e0417451bd80f617dc10c6a6d298778586fd3e8703108cc5b288a3ce07.jpg",
403
+ "table_caption": [],
404
+ "table_footnote": [],
405
+ "table_body": "<table><tr><td>Subset</td><td>#Questions</td><td>#Turns</td><td>#Samples</td></tr><tr><td>Full+Single</td><td>1092</td><td>1</td><td>32089</td></tr><tr><td>Part+Single</td><td>646</td><td>1</td><td>22489</td></tr><tr><td>Part+Multi</td><td>646</td><td>5</td><td>32767</td></tr></table>",
406
+ "bbox": [
407
+ 529,
408
+ 445,
409
+ 863,
410
+ 511
411
+ ],
412
+ "page_idx": 1
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "Table 1: We develop three sub-datasets to evaluate the impact of the screening scale and the addition of multi-round data on the performance of the RPLMs.",
417
+ "bbox": [
418
+ 507,
419
+ 520,
420
+ 882,
421
+ 564
422
+ ],
423
+ "page_idx": 1
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "Scale Selection Our scales are sourced from psychological scales (Bem, 1981; Barrick and Mount, 1991), utilizing the questions rewritten by InCharacter (Wang et al., 2024a). However, not all scales are closely related to character personalities. We carefully selected a subset of these scales that best reflect character personality traits, forming the subset Part. The entire set of selected scales constitutes the subset Full.",
428
+ "bbox": [
429
+ 507,
430
+ 590,
431
+ 882,
432
+ 734
433
+ ],
434
+ "page_idx": 1
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Question Selection Not all questions are suitable for all characters. A question that violates the character's background may induce hallucinations. As a result, we judge whether the question is suitable for the character by llm. Then we exclude questions that do not fit the character's background.",
439
+ "bbox": [
440
+ 507,
441
+ 747,
442
+ 882,
443
+ 843
444
+ ],
445
+ "page_idx": 1
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "Multi-Turn Dialogue We incorporate multi-turn dialogues to maintain conversation consistency and enhance the model's contextual understanding. We select questions from different dimensions within",
450
+ "bbox": [
451
+ 507,
452
+ 854,
453
+ 882,
454
+ 917
455
+ ],
456
+ "page_idx": 1
457
+ },
458
+ {
459
+ "type": "page_number",
460
+ "text": "14567",
461
+ "bbox": [
462
+ 477,
463
+ 927,
464
+ 524,
465
+ 940
466
+ ],
467
+ "page_idx": 1
468
+ },
469
+ {
470
+ "type": "image",
471
+ "img_path": "images/ee56c23ff72b2bb9d5986ac361c774d0bd3aea75ec220431caa3f8f2db0ca3b5.jpg",
472
+ "image_caption": [
473
+ "Figure 1: The framework of building and utilizing ROLEPERSONALITY. First, we obtain ROLEPERSONALITY by distilling advanced RPAs using scale questions. Then, we train RPLMs on ROLEPERSONALITY to enhance their ability to capture characters' minds."
474
+ ],
475
+ "image_footnote": [],
476
+ "bbox": [
477
+ 132,
478
+ 83,
479
+ 863,
480
+ 266
481
+ ],
482
+ "page_idx": 2
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "the same scale. These multi-turn data form subset Multi. The subset consisting of only single-turn data is classified as subset Single.",
487
+ "bbox": [
488
+ 112,
489
+ 346,
490
+ 485,
491
+ 394
492
+ ],
493
+ "page_idx": 2
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "3.2 Dataset Statistics",
498
+ "text_level": 1,
499
+ "bbox": [
500
+ 112,
501
+ 405,
502
+ 294,
503
+ 419
504
+ ],
505
+ "page_idx": 2
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "Based on this idea, we construct ROLEPERSONALITY consisting of three subsets using interviews conducted by the gpt-3.5-turbo. Our dataset includes 16 characters from ChatHaruhi and 30 English characters from RoleLLM. The details of our dataset are provided in Table 1.",
510
+ "bbox": [
511
+ 112,
512
+ 426,
513
+ 487,
514
+ 521
515
+ ],
516
+ "page_idx": 2
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "4 Experiment",
521
+ "text_level": 1,
522
+ "bbox": [
523
+ 112,
524
+ 533,
525
+ 250,
526
+ 550
527
+ ],
528
+ "page_idx": 2
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "4.1 Settings",
533
+ "text_level": 1,
534
+ "bbox": [
535
+ 112,
536
+ 558,
537
+ 223,
538
+ 574
539
+ ],
540
+ "page_idx": 2
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "Fine-tuning We employ LoRA tuning (Hu et al., 2021) for supervised fine-tuning the Mistral-7Bv0.2-Chat (Jiang et al., 2023). The model is finetuned for 3 epochs with LoRA rank set to 8.",
545
+ "bbox": [
546
+ 112,
547
+ 579,
548
+ 487,
549
+ 644
550
+ ],
551
+ "page_idx": 2
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "Baseline To compare the effectiveness of different datasets, we fine-tune the model with the same settings in three subsets of ROLEPERSONALITY (Full+Single, Part+Single, Part+Multi), the dataset introduced by CharacterLLM(Shao et al., 2023) and RoleBench(Wang et al., 2024b). For each dataset, we select approximately 20,000 samples for fine-tuning, keeping the data size about the same. These models, along with the original mistral-7B and gpt-3.5-turbo-0301, are subsequently evaluated to assess their performance.",
556
+ "bbox": [
557
+ 112,
558
+ 653,
559
+ 487,
560
+ 829
561
+ ],
562
+ "page_idx": 2
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "Evaluation Protocols After fine-tuning, we conduct experiments on three benchmarks to comprehensively assess their performance: 1) Personality Fidelity We evaluate whether the model accurately reflects the character's personality; 2) Motivation",
567
+ "bbox": [
568
+ 112,
569
+ 839,
570
+ 487,
571
+ 917
572
+ ],
573
+ "page_idx": 2
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "Recognition (MR) We test the model's ability to learn and represent the character's motivations; 3) General Ability We apply three metrics adopted by previous researches (Wang et al., 2024b; Shao et al., 2023) to comprehensively evaluate RPLM's role-playing ability, such as character conformity. All evaluations involving LLMs are conducted by gpt-3.5-turbo-0301 with temperature set to 0.",
578
+ "bbox": [
579
+ 507,
580
+ 346,
581
+ 882,
582
+ 475
583
+ ],
584
+ "page_idx": 2
585
+ },
586
+ {
587
+ "type": "table",
588
+ "img_path": "images/e3f1a6e5f31ee1224bfc3d5bf49adab7a8d5e24b30728b97ce0d8be6d8e9b66e.jpg",
589
+ "table_caption": [],
590
+ "table_footnote": [],
591
+ "table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"2\">PF</td><td>MR</td></tr><tr><td>Single Acc.</td><td>Full Acc.</td><td>Acc.</td></tr><tr><td colspan=\"4\">gpt-3.5-turbo</td></tr><tr><td>-</td><td>70.27</td><td>48.35</td><td>64.52</td></tr><tr><td colspan=\"4\">mistral-7B</td></tr><tr><td>-</td><td>70.01</td><td>46.85</td><td>34.62</td></tr><tr><td>RoleBench</td><td>67.58</td><td>45.47</td><td>33.28</td></tr><tr><td>CharacterLLM</td><td>64.45</td><td>39.65</td><td>33.54</td></tr><tr><td colspan=\"4\">RolePersonality</td></tr><tr><td>Ful+Sin</td><td>72.10</td><td>49.15</td><td>44.54</td></tr><tr><td>Par+Sin</td><td>70.97</td><td>49.08</td><td>40.02</td></tr><tr><td>Par+Mul</td><td>71.36</td><td>48.42</td><td>40.04</td></tr></table>",
592
+ "bbox": [
593
+ 526,
594
+ 488,
595
+ 867,
596
+ 667
597
+ ],
598
+ "page_idx": 2
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "Table 2: The accuracy of Personality Fidelity $(\\%)$ and Motivation Recognition $(\\%)$ . Single Acc. refers to the average accuracy for individual dimensions. Full Acc. refers to the overall accuracy across the entire scale.",
603
+ "bbox": [
604
+ 507,
605
+ 677,
606
+ 882,
607
+ 734
608
+ ],
609
+ "page_idx": 2
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "4.2 Personality Fidelity (PF)",
614
+ "text_level": 1,
615
+ "bbox": [
616
+ 507,
617
+ 766,
618
+ 747,
619
+ 783
620
+ ],
621
+ "page_idx": 2
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "We use LLMs to judge the character's personality based on the model's responses to personality scale questions and compare the judgments with the ground truth, which was determined by human annotators. We selected eight test characters from the dataset proposed by InCharacter (Wang et al., 2024a). All data related to these test characters are excluded from the training set to ensure unbiased",
626
+ "bbox": [
627
+ 507,
628
+ 790,
629
+ 882,
630
+ 917
631
+ ],
632
+ "page_idx": 2
633
+ },
634
+ {
635
+ "type": "page_number",
636
+ "text": "14568",
637
+ "bbox": [
638
+ 477,
639
+ 927,
640
+ 524,
641
+ 940
642
+ ],
643
+ "page_idx": 2
644
+ },
645
+ {
646
+ "type": "table",
647
+ "img_path": "images/81bf2212e5e76e5ac20d7adf8977b8384432135a3d49668d0a6d11ca49d53a90.jpg",
648
+ "table_caption": [],
649
+ "table_footnote": [],
650
+ "table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"3\">Direct Scoring</td><td colspan=\"4\">Dimensional Scoring</td></tr><tr><td>Rouge-L</td><td>Win Rate</td><td>Memorization</td><td>Personality</td><td>Values</td><td>Stability</td><td>Hallucination</td></tr><tr><td colspan=\"8\">gpt-3.5-turbo</td></tr><tr><td>-</td><td>0.202</td><td>48.02</td><td>6.098</td><td>6.769</td><td>6.645</td><td>6.160</td><td>6.803</td></tr><tr><td colspan=\"8\">mistral-7B</td></tr><tr><td>-</td><td>0.183</td><td>30.50</td><td>6.161</td><td>6.642</td><td>6.500</td><td>6.081</td><td>6.858</td></tr><tr><td>RoleBench</td><td>0.238</td><td>14.10</td><td>6.136</td><td>6.640</td><td>6.626</td><td>6.081</td><td>6.844</td></tr><tr><td>CharacterLLM</td><td>0.235</td><td>26.92</td><td>6.149</td><td>6.646</td><td>6.586</td><td>6.069</td><td>6.767</td></tr><tr><td colspan=\"8\">RolePersonality</td></tr><tr><td>Ful+Sin</td><td>0.216</td><td>36.56</td><td>6.290</td><td>6.767</td><td>6.719</td><td>6.175</td><td>6.886</td></tr><tr><td>Par+Sin</td><td>0.208</td><td>38.75</td><td>6.243</td><td>6.754</td><td>6.693</td><td>6.154</td><td>6.805</td></tr><tr><td>Par+Mul</td><td>0.207</td><td>43.89</td><td>6.185</td><td>6.728</td><td>6.675</td><td>6.122</td><td>6.842</td></tr></table>",
651
+ "bbox": [
652
+ 136,
653
+ 80,
654
+ 860,
655
+ 262
656
+ ],
657
+ "page_idx": 3
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "Table 3: Performance of RPLMs on General Role-Playing Benchmarks, including Rouge-L and Win-rate for direct scoring, and five-dimensional scoring to assess role-playing proficiency.",
662
+ "bbox": [
663
+ 112,
664
+ 269,
665
+ 882,
666
+ 300
667
+ ],
668
+ "page_idx": 3
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "evaluation. This metric provides a comprehensive assessment of the model's ability to accurately reflect the holistic personality traits of a character.",
673
+ "bbox": [
674
+ 112,
675
+ 325,
676
+ 489,
677
+ 374
678
+ ],
679
+ "page_idx": 3
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "The results are shown in Table 7. The overall personality fidelity of the trained model has improved. Moreover, models fine-tuned with the other two datasets performed worse compared to the untrained Mistral model. This may be because these datasets focus on character knowledge rather than adequately reflecting character personality traits.",
684
+ "bbox": [
685
+ 112,
686
+ 376,
687
+ 489,
688
+ 491
689
+ ],
690
+ "page_idx": 3
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "4.3 Motivation Recognition (MR)",
695
+ "text_level": 1,
696
+ "bbox": [
697
+ 112,
698
+ 513,
699
+ 394,
700
+ 529
701
+ ],
702
+ "page_idx": 3
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "CRoSS (Yuan et al., 2024) introduced a subset of 445 multiple-choice questions generated by gpt-4 to assess the model's ability to capture character motivation. Each question presents a character's decision within a scenario. The accuracy measures the model's capability to understand and simulate character motivations and personality traits.",
707
+ "bbox": [
708
+ 112,
709
+ 541,
710
+ 489,
711
+ 653
712
+ ],
713
+ "page_idx": 3
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "The results are shown in Table 7. Models finetuned with our datasets significantly outperform others, exhibiting a stronger ability to recognize the motivation of characters.",
718
+ "bbox": [
719
+ 112,
720
+ 658,
721
+ 489,
722
+ 721
723
+ ],
724
+ "page_idx": 3
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "4.4 General Role-Playing Benchmarks",
729
+ "text_level": 1,
730
+ "bbox": [
731
+ 112,
732
+ 746,
733
+ 433,
734
+ 762
735
+ ],
736
+ "page_idx": 3
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "We select the same 8 test characters used in the personality fidelity evaluation for consistency. The tested model generates responses to role-specific questions from the RoleBench (Wang et al., 2024b) dataset. To assess the RPLMs' performance, we adopt evaluation metrics proposed by RoleLLM (Wang et al., 2024b) for direct scoring and CharacterLLM (Shao et al., 2023) for dimensional scoring.",
741
+ "bbox": [
742
+ 112,
743
+ 774,
744
+ 489,
745
+ 919
746
+ ],
747
+ "page_idx": 3
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "4.4.1 Direct Scoring",
752
+ "text_level": 1,
753
+ "bbox": [
754
+ 507,
755
+ 325,
756
+ 684,
757
+ 341
758
+ ],
759
+ "page_idx": 3
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "We use Rouge-L and Win-rate (Wang et al., 2024b) to evaluate the overall role-playing ability of RPLMs. The Rouge-L score (Lin, 2004) refers to the relevance between model response and ground truth in RoleBench. It provides a robust metric to assess the knowledge about the specific character involved in the model's output. The win-rate is the frequency with which a model's response is judged better than the response of gpt-4. It provides a comparative measure of the model's effectiveness in generating high-quality answers relative to a strong baseline.",
764
+ "bbox": [
765
+ 505,
766
+ 350,
767
+ 884,
768
+ 543
769
+ ],
770
+ "page_idx": 3
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "The result can be checked in Table 3. The models fine-tuned on our datasets show lower Rouge-L scores. For win-rate, Our models' win rate is below only gpt-3.5-turbo, with the model trained on the Part+Single dataset performing the best.",
775
+ "bbox": [
776
+ 507,
777
+ 546,
778
+ 882,
779
+ 627
780
+ ],
781
+ "page_idx": 3
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "4.4.2 Dimensional Scoring",
786
+ "text_level": 1,
787
+ "bbox": [
788
+ 507,
789
+ 649,
790
+ 732,
791
+ 665
792
+ ],
793
+ "page_idx": 3
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "The models' responses are rated across five dimensions on a scale from 0 to 7 to assess their roleplaying proficiency (Shao et al., 2023). These dimensions are: (1) Memorization: The model's ability to recall relevant information about the character being portrayed, (2) Personality: Ability to the speaking style or the tones. (3) Values: Whether the model can reflect the objectives and values of the target character. (4) Stability: Consistency of a model over a relatively long conversation. (5) Hallucination: Ability to discard knowledge and skills that the character would not have.",
798
+ "bbox": [
799
+ 505,
800
+ 674,
801
+ 884,
802
+ 866
803
+ ],
804
+ "page_idx": 3
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "The results are shown in Table 3. Our models lead in most dimensions, with the only exception being the personality dimension.",
809
+ "bbox": [
810
+ 507,
811
+ 870,
812
+ 882,
813
+ 919
814
+ ],
815
+ "page_idx": 3
816
+ },
817
+ {
818
+ "type": "page_number",
819
+ "text": "14569",
820
+ "bbox": [
821
+ 477,
822
+ 927,
823
+ 524,
824
+ 940
825
+ ],
826
+ "page_idx": 3
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "5 Conclusion",
831
+ "text_level": 1,
832
+ "bbox": [
833
+ 114,
834
+ 84,
835
+ 247,
836
+ 98
837
+ ],
838
+ "page_idx": 4
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "This paper demonstrates that personality-indicative data helps capture complex character mindsets, thus significantly enhancing the performance of role-playing agents. By constructing ROLEPERSONALITY that captures character personalities, we address the limitations of traditional datasets that focus primarily on character knowledge and linguistic habits. Models fine-tuned on our comprehensive dataset show substantial improvements in role-playing capabilities. This advancement paves the way for constructing role-playing models that can effectively simulate complex character behaviors, leading to more immersive user experiences.",
843
+ "bbox": [
844
+ 112,
845
+ 112,
846
+ 492,
847
+ 322
848
+ ],
849
+ "page_idx": 4
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Limitations",
854
+ "text_level": 1,
855
+ "bbox": [
856
+ 112,
857
+ 336,
858
+ 220,
859
+ 351
860
+ ],
861
+ "page_idx": 4
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Despite the promising results, our study has several limitations. First, the dataset used for fine-tuning is entirely constructed by LLMs, which may introduce biases or inaccuracies inherent to the model's training data, potentially affecting the quality and authenticity of the dataset. Second, the interview-based data collection lacks mechanisms to ensure compliance and adherence to expected norms and standards, leading to inconsistencies or deviations that may impact the model's performance. Third, the evaluation of the model's performance primarily relies on automated metrics and LLM-based assessments, with the absence of human evaluation, subtleties and nuances in character portrayal might not be fully captured or assessed. Addressing these limitations in future work could further enhance the robustness and reliability of the developed RPLMs.",
866
+ "bbox": [
867
+ 112,
868
+ 363,
869
+ 489,
870
+ 639
871
+ ],
872
+ "page_idx": 4
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Ethics Statement",
877
+ "text_level": 1,
878
+ "bbox": [
879
+ 114,
880
+ 653,
881
+ 265,
882
+ 668
883
+ ],
884
+ "page_idx": 4
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "We hereby acknowledge that all authors of this work are aware of the provided ACL Code of Ethics and honor the code of conduct.",
889
+ "bbox": [
890
+ 112,
891
+ 681,
892
+ 487,
893
+ 728
894
+ ],
895
+ "page_idx": 4
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Risk Our approach to developing Role-Playing Language Models (RPLMs) presents several risks. First, reliance on LLM-generated datasets may perpetuate inherent biases and inaccuracies, leading to unintended behaviors. Second, the lack of compliance mechanisms in interview data can result in inconsistencies, undermining authenticity. Third, the absence of human evaluation means subtle nuances in character portrayal may be missed by automated metrics. Ethical concerns also arise from using psychological scales, especially regarding privacy",
900
+ "bbox": [
901
+ 112,
902
+ 741,
903
+ 489,
904
+ 920
905
+ ],
906
+ "page_idx": 4
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "and appropriate representation. Additionally, overfitting to specific traits in the selected scales may limit the generalizability of models trained on different role-playing datasets. Addressing these risks requires diversifying data sources and incorporating robust evaluation methods, including human assessments.",
911
+ "bbox": [
912
+ 507,
913
+ 84,
914
+ 884,
915
+ 197
916
+ ],
917
+ "page_idx": 4
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Acknowledgements",
922
+ "text_level": 1,
923
+ "bbox": [
924
+ 509,
925
+ 210,
926
+ 682,
927
+ 225
928
+ ],
929
+ "page_idx": 4
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "This work was supported by the Chinese NSF Major Research Plan(No.92270121). This work originates from InCharacter introduced by Xintao Wang. The role-playing agents are constructed based on Chat-Haruhi-Suzumiya proposed by Cheng Li. We owe thanks to the early contributors. The computations in this research were performed using the CFff platform of Fudan University.",
934
+ "bbox": [
935
+ 507,
936
+ 236,
937
+ 885,
938
+ 365
939
+ ],
940
+ "page_idx": 4
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "References",
945
+ "text_level": 1,
946
+ "bbox": [
947
+ 510,
948
+ 392,
949
+ 608,
950
+ 407
951
+ ],
952
+ "page_idx": 4
953
+ },
954
+ {
955
+ "type": "list",
956
+ "sub_type": "ref_text",
957
+ "list_items": [
958
+ "Murray R Barrick and Michael K Mount. 1991. The big five personality dimensions and job performance: a meta-analysis. Personnel psychology, 44(1):1-26.",
959
+ "Sandra L Bem. 1981. Bem sex role inventory. Journal of personality and social psychology.",
960
+ "Jiangjie Chen, Xintao Wang, Rui Xu, Siyu Yuan, Yikai Zhang, Wei Shi, Jian Xie, Shuang Li, Ruihan Yang, Tinghui Zhu, Aili Chen, Nianqi Li, Lida Chen, Caiyu Hu, Siye Wu, Scott Ren, Ziquan Fu, and Yanghua Xiao. 2024. From persona to personalization: A survey on role-playing language agents.",
961
+ "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.",
962
+ "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, abs/2310.06825.",
963
+ "Cheng Li, Ziang Leng, Chenxi Yan, Junyi Shen, Hao Wang, Weishi MI, Yaying Fei, Xiaoyang Feng, Song Yan, HaoSheng Wang, Linkang Zhan, Yaokai Jia, Pingyu Wu, and Haozhen Sun. 2023. Chatharuhi: Reviving anime character in reality via large language model.",
964
+ "Chin-Yew Lin. 2004. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81.",
965
+ "Yunfan Shao, Linyang Li, Junqi Dai, and Xipeng Qiu. 2023. Character-llm: A trainable agent for roleplaying."
966
+ ],
967
+ "bbox": [
968
+ 509,
969
+ 416,
970
+ 884,
971
+ 920
972
+ ],
973
+ "page_idx": 4
974
+ },
975
+ {
976
+ "type": "page_number",
977
+ "text": "14570",
978
+ "bbox": [
979
+ 477,
980
+ 927,
981
+ 524,
982
+ 940
983
+ ],
984
+ "page_idx": 4
985
+ },
986
+ {
987
+ "type": "list",
988
+ "sub_type": "ref_text",
989
+ "list_items": [
990
+ "Xintao Wang, Yunze Xiao, Jen tse Huang, Siyu Yuan, Rui Xu, Haoran Guo, Quan Tu, Yaying Fei, Ziang Leng, Wei Wang, Jiangjie Chen, Cheng Li, and Yanghua Xiao. 2024a. Incharacter: Evaluating personality fidelity in role-playing agents through psychological interviews.",
991
+ "Zekun Moore Wang, Zhongyuan Peng, Haoran Que, Jiaheng Liu, Wangchunshu Zhou, Yuhan Wu, Hongcheng Guo, Ruitong Gan, Zehao Ni, Jian Yang, Man Zhang, Zhaoxiang Zhang, Wanli Ouyang, Ke Xu, Stephen W. Huang, Jie Fu, and Junran Peng. 2024b. Rolellm: Benchmarking, eliciting, and enhancing role-playing abilities of large language models.",
992
+ "Rui Xu, Xintao Wang, Jiangjie Chen, Siyu Yuan, Xinfeng Yuan, Jiaqing Liang, Zulong Chen, Xiaqing Dong, and Yanghua Xiao. 2024. Character is destiny: Can large language models simulate persona-driven decisions in role-playing? arXiv preprint arXiv:2404.12138.",
993
+ "Xiaoyan Yu, Tongxu Luo, Yifan Wei, Fangyu Lei, Yiming Huang, Peng Hao, and Liehuang Zhu. 2024. Neeko: Leveraging dynamic lora for efficient multi-character role-playing agent. arXiv preprint arXiv:2402.13717.",
994
+ "Xinfeng Yuan, Siyu Yuan, Yuhan Cui, Tianhe Lin, Xintao Wang, Rui Xu, Jiangjie Chen, and Deqing Yang. 2024. Evaluating character understanding of large language models via character profiling from fictional works.",
995
+ "Jinfeng Zhou, Zhuang Chen, Dazhen Wan, Bosi Wen, Yi Song, Jifan Yu, Yongkang Huang, Libiao Peng, Jiaming Yang, Xiyao Xiao, et al. 2023. Characterglm: Customizing chinese conversational ai characters with large language models. ArXiv preprint, abs/2311.16832."
996
+ ],
997
+ "bbox": [
998
+ 115,
999
+ 85,
1000
+ 489,
1001
+ 607
1002
+ ],
1003
+ "page_idx": 5
1004
+ },
1005
+ {
1006
+ "type": "page_number",
1007
+ "text": "14571",
1008
+ "bbox": [
1009
+ 477,
1010
+ 928,
1011
+ 522,
1012
+ 940
1013
+ ],
1014
+ "page_idx": 5
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "A Abbreviation Definitions",
1019
+ "text_level": 1,
1020
+ "bbox": [
1021
+ 114,
1022
+ 84,
1023
+ 366,
1024
+ 99
1025
+ ],
1026
+ "page_idx": 6
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "This section provides the definitions for abbreviations used throughout the paper.",
1031
+ "bbox": [
1032
+ 112,
1033
+ 109,
1034
+ 489,
1035
+ 142
1036
+ ],
1037
+ "page_idx": 6
1038
+ },
1039
+ {
1040
+ "type": "table",
1041
+ "img_path": "images/67d573ad55b886ad974f151f646db60b0598ce63bd84cc5dfb43d45beed65a74.jpg",
1042
+ "table_caption": [],
1043
+ "table_footnote": [],
1044
+ "table_body": "<table><tr><td colspan=\"2\">Definition</td></tr><tr><td colspan=\"2\">Subsets</td></tr><tr><td>Ful+Sin</td><td>Subset using all the single-round questions.</td></tr><tr><td colspan=\"2\">Metrics</td></tr><tr><td>Acc</td><td>Accuracy.</td></tr><tr><td>Prec</td><td>Precision.</td></tr><tr><td>Rec</td><td>Recall.</td></tr><tr><td>PF</td><td>Personality Fidelity.</td></tr><tr><td>MR</td><td>Motivation Recognition.</td></tr></table>",
1045
+ "bbox": [
1046
+ 132,
1047
+ 152,
1048
+ 470,
1049
+ 284
1050
+ ],
1051
+ "page_idx": 6
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "Table 4: Abbreviation and its corresponding definition.",
1056
+ "bbox": [
1057
+ 114,
1058
+ 293,
1059
+ 485,
1060
+ 307
1061
+ ],
1062
+ "page_idx": 6
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "B Psychological Scales",
1067
+ "text_level": 1,
1068
+ "bbox": [
1069
+ 114,
1070
+ 336,
1071
+ 327,
1072
+ 353
1073
+ ],
1074
+ "page_idx": 6
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "Big Five Inventory The BFI serves as a prominent instrument for assessing personality dimensions. This model, often encapsulated by the acronym \"OCEAN,\" encompasses five critical traits: (1) Openness to Experience $(O)$ , which highlights a person's curiosity, inventiveness, and appreciation for art, emotion, adventure, and novel concepts. (2) Conscientiousness $(C)$ , indicating how much an individual exhibits organization, reliability, and responsibility. (3) Extraversion $(E)$ , denoting the level to which a person is sociable and energized by interactions with others. (4) Agreeableness $(A)$ , assessing an individual's kindness, empathy, and ability to cooperate with others. (5) Neuroticism $(N)$ , gauging the tendency of an individual to experience negative feelings such as anxiety, anger, and sadness, as opposed to being more emotionally resilient and less stress-susceptible.",
1079
+ "bbox": [
1080
+ 112,
1081
+ 362,
1082
+ 489,
1083
+ 652
1084
+ ],
1085
+ "page_idx": 6
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Eysenck Personality Questionnaire (Revised) The Revised Eysenck Personality Questionnaire (EPQ-R) serves as a psychological instrument for gauging distinct personality trait variances in individuals. It identifies three principal traits: (1) Extraversion $(E)$ , which assesses whether a person tends to be more sociable, energetic, and outgoing as opposed to being introverted, quiet, and reserved. (2) Neuroticism $(N)$ , which gauges emotional steadiness. These dimensions (i.e., E and N) share similarities with those found in the BFI. (3) Psychoticism $(P)$ , which is indicative of a person's inclination towards solitude, a lack of empathy, and a propensity for aggression or a tough-minded attitude. This trait is crucial to understand as indicative of personality characteristics rather than",
1090
+ "bbox": [
1091
+ 112,
1092
+ 661,
1093
+ 489,
1094
+ 919
1095
+ ],
1096
+ "page_idx": 6
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "serious mental health conditions. (4) Beyond these primary scales, the EPQ-R also incorporates a Ly-ing Scale $(L)$ intended to identify responses aimed at social desirability. This scale evaluates the extent to which an individual may attempt to portray themselves in a more favorable light.",
1101
+ "bbox": [
1102
+ 507,
1103
+ 84,
1104
+ 884,
1105
+ 181
1106
+ ],
1107
+ "page_idx": 6
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Dark Triad Dirty Dozen The DTDD is identified as a brief, 12-item measure crafted to evaluate the trio of principal personality characteristics known as the Dark Triad, encompassing: (1) Narcissism $(N)$ , characterized by an exaggerated sense of one's own significance, an obsession with dreams of boundless success, and a craving for undue admiration. (2) Machiavellianism $(M)$ , indicative of a deceitful approach in social interactions and a skeptical indifference to ethical principles. (3) Psychopathy $(P)$ , which includes tendencies towards impulsiveness, a deficiency in empathy, and hostile relations with others. These Dark Triad personality dimensions are typically viewed as the antithesis of the characteristics measured by the BFI or the EPQ-R, which represent \"Light\" traits.",
1112
+ "bbox": [
1113
+ 507,
1114
+ 200,
1115
+ 885,
1116
+ 458
1117
+ ],
1118
+ "page_idx": 6
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "The NERIS Type Explorer The 16Personalities utilizes the acronym format introduced by Myers-Briggs for its simplicity and convenience, with an additional letter to accommodate five rather than four scales. However, unlike Myers-Briggs or other theories based on the Jungian model, the incorporation of Jungian concepts such as cognitive functions, or their prioritization, has not been undertaken. Instead, they rework and rebalance the dimensions of personality in the BFI personality traits. The personality types are based on five independent spectrums, with all letters in the type code (e.g., INFJ-A) referring to one of the two sides of the corresponding spectrum.",
1123
+ "bbox": [
1124
+ 507,
1125
+ 480,
1126
+ 884,
1127
+ 705
1128
+ ],
1129
+ "page_idx": 6
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "Bem's Sex Role Inventory The BSRI assesses the degree to which individuals identify with traditionally masculine and feminine characteristics. Rather than focusing on behaviors, such as participation in sports or cooking, this tool evaluates psychological characteristics, including assertiveness and gentleness. Participants are divided into four groups based on whether their average scores exceed the median for each component. These groups are designated as Masculine (M: Yes; F: No), Feminine (M: No; F: Yes), Androgynous (M: Yes; F: Yes), and Undifferentiated (M: No; F: No).",
1134
+ "bbox": [
1135
+ 507,
1136
+ 726,
1137
+ 884,
1138
+ 917
1139
+ ],
1140
+ "page_idx": 6
1141
+ },
1142
+ {
1143
+ "type": "page_number",
1144
+ "text": "14572",
1145
+ "bbox": [
1146
+ 477,
1147
+ 927,
1148
+ 524,
1149
+ 940
1150
+ ],
1151
+ "page_idx": 6
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "Comprehensive Assessment of Basic Interests The CABIN provides an exhaustive evaluation for identifying 41 essential dimensions of vocational interest. Following this evaluation, the researchers introduce a model of interest consisting of eight dimensions, named SETPOINT. This model includes dimensions such as Health Science, Creative Expression, Technology, People, Organization, Influence, Nature, and Things. These core dimensions are also adaptable to a six-dimension framework, which is prevalently recognized within the interest research community. This framework aligns with Holland's RIASEC model, which features the dimensions: Realistic, Investigate, Artistic, Social, Enterprising, and Conventional.",
1156
+ "bbox": [
1157
+ 115,
1158
+ 82,
1159
+ 490,
1160
+ 322
1161
+ ],
1162
+ "page_idx": 7
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "Implicit Culture Belief The ICB scale measures the extent to which individuals think a person's ethnic culture influences their development. Scoring higher on this scale indicates a firm belief that a person's ethnic culture is the main factor shaping their identity, values, and perspective on the world. On the other hand, a lower score on the scale denotes a belief in the ability of an individual to shape their own identity through hard work, commitment, and education.",
1167
+ "bbox": [
1168
+ 112,
1169
+ 335,
1170
+ 485,
1171
+ 495
1172
+ ],
1173
+ "page_idx": 7
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "Experiences in Close Relationships (Revised) The ECR-R is a self-assessment tool crafted to gauge variations in adult attachment styles, particularly within the realm of romantic relationships. As an enhanced iteration of the original ECR scale, the ECR-R introduces refinements in quantifying attachment tendencies. It assesses two primary aspects: (1) Attachment Anxiety indicates the degree to which a person fears rejection or abandonment by their romantic partners. (2) Attachment Avoidance assesses the degree to which a person prefers to keep emotional and physical distance from their partners, often stemming from unease with closeness or reliance.",
1178
+ "bbox": [
1179
+ 112,
1180
+ 507,
1181
+ 485,
1182
+ 731
1183
+ ],
1184
+ "page_idx": 7
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "General Self-Efficacy The GSE Scale evaluates a person's confidence in their capacity to address diverse demanding situations in life. This confidence, known as \"self-efficacy,\" plays a pivotal role in social cognitive theory and is associated with numerous health outcomes, motivational levels, and performance measures. An elevated score on this scale indicates a person's strong belief in their ability to confront and manage challenging circumstances, undertake new or complex tasks, and navigate through the resultant difficulties. On",
1189
+ "bbox": [
1190
+ 112,
1191
+ 741,
1192
+ 485,
1193
+ 917
1194
+ ],
1195
+ "page_idx": 7
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "the flip side, a lower score on the scale suggests a lack of self-assurance in handling challenges, rendering individuals more susceptible to experiencing helplessness, anxiety, or engaging in avoidance behaviors when encountering hardships.",
1200
+ "bbox": [
1201
+ 507,
1202
+ 84,
1203
+ 880,
1204
+ 164
1205
+ ],
1206
+ "page_idx": 7
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "Life Orientation Test (Revised) The LOT-R is designed to assess variations in optimism and pessimism among individuals. It includes ten questions, with an interesting aspect being that only six of these questions contribute to the test's score. The other four are designed as filler items, cleverly integrated to obscure the test's primary focus. Within the scored questions, equal numbers are dedicated to evaluating optimism and pessimism—three for each. A tendency towards higher scores in optimism and lower in pessimism signifies a predominantly optimistic outlook.",
1211
+ "bbox": [
1212
+ 507,
1213
+ 175,
1214
+ 882,
1215
+ 369
1216
+ ],
1217
+ "page_idx": 7
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "Love of Money Scale The LMS evaluates the perspectives and feelings of people regarding money. This tool aims to quantify the degree to which people perceive money as a symbol of power, success, and liberty, along with its significance in influencing behaviors and choices. The LMS identifies three key dimensions: (1) Rich reflects the degree to which people link money with success and accomplishment. (2) Motivator determines the extent to which money serves as an incentive in someone's life, i.e., how much individuals are motivated by monetary rewards in their decisions and behaviors. (3) Important assesses the level of importance people attribute to money, affecting their principles, objectives, and perspective of the world.",
1222
+ "bbox": [
1223
+ 507,
1224
+ 381,
1225
+ 882,
1226
+ 621
1227
+ ],
1228
+ "page_idx": 7
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "Emotional Intelligence Scale The EIS serves as a self-assessment tool for evaluating multiple aspects of emotional intelligence. This instrument emphasizes various elements of emotional intelligence, notably the perception, management, and application of emotions. It is extensively utilized in the field of psychology to investigate how emotional intelligence influences different outcomes, including personal well-being, professional performance, and social interactions.",
1233
+ "bbox": [
1234
+ 507,
1235
+ 634,
1236
+ 882,
1237
+ 793
1238
+ ],
1239
+ "page_idx": 7
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "Wong and Law Emotional Intelligence Scale Similar to EIS, the WLEIS is also a self-report instrument designed for evaluating emotional intelligence. However, it distinctly includes four subscales that represent the primary aspects of emotional intelligence: (1) Self-emotion appraisal (SEA) focuses on an individual's proficiency in",
1244
+ "bbox": [
1245
+ 507,
1246
+ 806,
1247
+ 882,
1248
+ 917
1249
+ ],
1250
+ "page_idx": 7
1251
+ },
1252
+ {
1253
+ "type": "page_number",
1254
+ "text": "14573",
1255
+ "bbox": [
1256
+ 477,
1257
+ 928,
1258
+ 524,
1259
+ 940
1260
+ ],
1261
+ "page_idx": 7
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "identifying and understanding their emotions. (2) Others' emotion appraisal (OEA) is about the skill of recognizing and comprehending the emotions of others. (3) Use of emotion (UOE) deals with the ability to employ emotions to aid various mental processes, like reasoning and problem-solving. (4) Regulation of emotion (ROE) is concerned with the ability to control and adjust emotions within oneself and in others.",
1266
+ "bbox": [
1267
+ 112,
1268
+ 84,
1269
+ 489,
1270
+ 227
1271
+ ],
1272
+ "page_idx": 8
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "Empathy Scale Empathy, defined as the capacity to perceive and resonate with the emotions of another, is traditionally divided into cognitive and emotional empathy. Cognitive empathy, also known as \"perspective-taking,\" entails the mental faculty to identify and comprehend the thoughts, beliefs, or feelings of someone else. Conversely, emotional empathy involves the vicarious experience of the emotions felt by another individual.",
1277
+ "bbox": [
1278
+ 112,
1279
+ 241,
1280
+ 490,
1281
+ 387
1282
+ ],
1283
+ "page_idx": 8
1284
+ },
1285
+ {
1286
+ "type": "table",
1287
+ "img_path": "images/fab5697849915f84a6941dc8a4b25b09b7fc4b90e5eb65662ffed75beb5ab08b.jpg",
1288
+ "table_caption": [],
1289
+ "table_footnote": [],
1290
+ "table_body": "<table><tr><td>16P.</td><td>BFI</td><td>BSRI</td><td>CABIN</td><td>DTDD</td><td>ECR-R</td><td>EIS</td></tr><tr><td>60</td><td>44</td><td>60</td><td>164</td><td>12</td><td>36</td><td>33</td></tr><tr><td>Emp.</td><td>EPQ-R</td><td>GSE</td><td>ICB</td><td>LMS</td><td>LOT-R</td><td>WLEIS</td></tr><tr><td>10</td><td>100</td><td>10</td><td>8</td><td>9</td><td>10</td><td>16</td></tr></table>",
1291
+ "bbox": [
1292
+ 115,
1293
+ 399,
1294
+ 495,
1295
+ 464
1296
+ ],
1297
+ "page_idx": 8
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "C Character Selection",
1302
+ "text_level": 1,
1303
+ "bbox": [
1304
+ 114,
1305
+ 533,
1306
+ 326,
1307
+ 550
1308
+ ],
1309
+ "page_idx": 8
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "In selecting the dataset characters, we considered the origins of the characters and aimed to maximize the diversity and breadth of distribution. The chosen range encompasses characters from various works, including animations, movies, TV series, and more.",
1314
+ "bbox": [
1315
+ 112,
1316
+ 563,
1317
+ 489,
1318
+ 657
1319
+ ],
1320
+ "page_idx": 8
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "For training set, we ultimately selected 30 RoleLLM characters and 16 ChatHaruhi characters. The list of selected characters includes:James Bond, ayaka, Raj, Andrew Detmer, Jigsaw, Jordan Belfort, Luna, Logan, Oliver Queen, Judy Hoops, John Keating, McGonagall, Sheldon, wanderer, Jeff Spicoli, James Brown, zhongli, Jim Morrison, Dumbledore, Stephen Hawking, raidenShogun, Snape, John Doe, Peter Parker, Jackie Moon, Blair Waldorf, haruhi, Bruno Antony, Wade Wilson, Judge Dredd, Malfoy, Hermione, Harry, Jack Sparrow, Ron, Po, Gaston, Fletcher Reede, Po, hutao, Klaus Mikaelson, Dr. Hannibal Lecter, Gregory House, Doctor Who, HAL 9000, Caesar, Benjamin Button.",
1325
+ "bbox": [
1326
+ 112,
1327
+ 659,
1328
+ 489,
1329
+ 885
1330
+ ],
1331
+ "page_idx": 8
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "The test Characters are: Twilight Sparkle, Shrek, Michael Scott, The Dude, Lucifer Morningstar,",
1336
+ "bbox": [
1337
+ 112,
1338
+ 887,
1339
+ 489,
1340
+ 917
1341
+ ],
1342
+ "page_idx": 8
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Walt Kowalski, Thor, Rorschach, Lestat de Lioncourt.",
1347
+ "bbox": [
1348
+ 507,
1349
+ 84,
1350
+ 884,
1351
+ 115
1352
+ ],
1353
+ "page_idx": 8
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "We selected characters from a wide variety of sources, covering a broad spectrum of personality types to ensure a well-distributed representation. We demonstrate the 16Personality of characters in table 6",
1358
+ "bbox": [
1359
+ 507,
1360
+ 117,
1361
+ 884,
1362
+ 198
1363
+ ],
1364
+ "page_idx": 8
1365
+ },
1366
+ {
1367
+ "type": "table",
1368
+ "img_path": "images/386b59b64687bf29dc71c3031fd03aaa7afc4f493eabd81fa15de7a320e7f221.jpg",
1369
+ "table_caption": [
1370
+ "Table 5: The question numbers of each scale. 16P refers to 16Personality and Emp. refers to Empathy."
1371
+ ],
1372
+ "table_footnote": [],
1373
+ "table_body": "<table><tr><td>INTJ</td><td>INTP</td><td>INFJ</td><td>INFP</td></tr><tr><td>5</td><td>1</td><td>4</td><td>3</td></tr><tr><td>ISTJ</td><td>ISTP</td><td>ISFJ</td><td>ISFP</td></tr><tr><td>4</td><td>2</td><td>1</td><td>3</td></tr><tr><td>ENTJ</td><td>ENTP</td><td>ENFJ</td><td>ENFP</td></tr><tr><td>2</td><td>5</td><td>1</td><td>4</td></tr><tr><td>ESTJ</td><td>ESTP</td><td>ESFJ</td><td>ESFP</td></tr><tr><td>4</td><td>2</td><td>1</td><td>4</td></tr></table>",
1374
+ "bbox": [
1375
+ 579,
1376
+ 210,
1377
+ 815,
1378
+ 370
1379
+ ],
1380
+ "page_idx": 8
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "D Multi-turn Dialogue Consistency",
1385
+ "text_level": 1,
1386
+ "bbox": [
1387
+ 507,
1388
+ 432,
1389
+ 831,
1390
+ 451
1391
+ ],
1392
+ "page_idx": 8
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "To evaluate the ability of models trained on different role-playing datasets in multi-turn dialogue, we assess the personality consistency of its responses across multiple conversational rounds. Specifically, we conduct five rounds of interactions, with the model providing responses to one scale-based question per round. Consistency in evaluations across these rounds reflects the model's robustness in maintaining personality traits throughout the dialogue. We calculate the scores for each personality dimension in all five rounds, compute the standard deviation for each dimension, and then average these standard deviations across all dimensions. The overall performance is quantified by this final average, with lower scores indicating greater consistency in multi-turn dialogue. The result is demonstrated in table 7, the model fine-tuned with ROLEPERSONALITY exhibits higher personality concitency during multi-turn dialogues.",
1397
+ "bbox": [
1398
+ 505,
1399
+ 462,
1400
+ 884,
1401
+ 770
1402
+ ],
1403
+ "page_idx": 8
1404
+ },
1405
+ {
1406
+ "type": "table",
1407
+ "img_path": "images/f39b2b5b52a7dc7ef88bf594190869f2b3854c1ca666bf9390819f5f59bd9609.jpg",
1408
+ "table_caption": [
1409
+ "Table 6: The personality of selected characters."
1410
+ ],
1411
+ "table_footnote": [],
1412
+ "table_body": "<table><tr><td>Dataset</td><td>16 Perosnality</td><td>BFI</td></tr><tr><td>-</td><td>13.697</td><td>0.4020</td></tr><tr><td>RolePersonality</td><td>12.796</td><td>0.3365</td></tr><tr><td>RoleBench</td><td>15.060</td><td>0.4572</td></tr><tr><td>CharacterLLM</td><td>14.428</td><td>0.4415</td></tr></table>",
1413
+ "bbox": [
1414
+ 564,
1415
+ 782,
1416
+ 828,
1417
+ 860
1418
+ ],
1419
+ "page_idx": 8
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "Table 7: The average standard deviation of personality assessment during multi-turn dialogues.",
1424
+ "bbox": [
1425
+ 507,
1426
+ 869,
1427
+ 882,
1428
+ 898
1429
+ ],
1430
+ "page_idx": 8
1431
+ },
1432
+ {
1433
+ "type": "page_number",
1434
+ "text": "14574",
1435
+ "bbox": [
1436
+ 477,
1437
+ 927,
1438
+ 524,
1439
+ 940
1440
+ ],
1441
+ "page_idx": 8
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "E Evaluation Prompt",
1446
+ "text_level": 1,
1447
+ "bbox": [
1448
+ 115,
1449
+ 83,
1450
+ 317,
1451
+ 99
1452
+ ],
1453
+ "page_idx": 9
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "We employed various metrics for evaluation. Among them, win-rate and dimensional scoring were directly assessed using a large language model (LLM). The prompts used for these evaluations are listed in Table 8.",
1458
+ "bbox": [
1459
+ 112,
1460
+ 109,
1461
+ 489,
1462
+ 187
1463
+ ],
1464
+ "page_idx": 9
1465
+ },
1466
+ {
1467
+ "type": "page_number",
1468
+ "text": "14575",
1469
+ "bbox": [
1470
+ 477,
1471
+ 927,
1472
+ 524,
1473
+ 940
1474
+ ],
1475
+ "page_idx": 9
1476
+ },
1477
+ {
1478
+ "type": "table",
1479
+ "img_path": "images/8cb0149dbbc2d780239c40e175e99ee13e5198df3766eb3bb1dea84fff1fa793.jpg",
1480
+ "table_caption": [],
1481
+ "table_footnote": [],
1482
+ "table_body": "<table><tr><td colspan=\"2\">Prompts for Personality Tests</td></tr><tr><td>Win-Rate</td><td>System Instruction: You are a role-playing performance comparison assistant. You should rank the models based on the role characteristics and text quality of their responses. The rankings are then output using Python dictionaries and lists. User Prompt: The models below are to play the role of &quot;role_name&quot;. The role description of &quot;role_name&quot; is &quot;role_description_and Catchphrases&quot;. I need to rank the following models based on the two criteria below: 1. Which one has more pronounced role speaking style, and speaks more in line with the role description. The more distinctive the speaking style, the better. 2. Which one&#x27;s output contains more knowledge and memories related to the role; the richer, the better. (If the question contains reference answers, then the role-specific knowledge and memories are based on the reference answer.) The question provided to each model is: question_dict The respective answers from the models to this question are: list_model_answer_dict Now, based on the above two criteria, please rank the models. Avoid any positional biases and ensure that the order in which the responses are presented does not influence your decision. Do not favor certain model names. Then, use a list containing the model&#x27;s name, its rank, and the reason for its ranking to return the results, i.e., please ensure to use the following format to return the results: [&quot;model&quot;: &lt;model-name&gt;, &quot;reason&quot;: &lt;rank-reason&gt;, &quot;rank&quot;: &lt;model-rank&gt;, &quot;model&quot;: &lt;model-name&gt;, &quot;reason&quot;: &lt;rank-reason&gt;, &quot;rank&quot;: &lt;model-rank&gt;] Your answer must be a valid Python list of dictionaries to ensure I can directly parse it using Python. Do not include any extraneous content! Please provide a ranking that is as accurate as possible and aligns with the intuition of most people.</td></tr><tr><td>Memoriza-tion</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Factual Correctness (1-7): Is the response provides truthful and detailed facts about the character? [Evaluation Steps] 1. Read through the interactions and identify the key points related to the character. 2. Read through the responses of the AI assistant and compare them to the profile. Check if the responses are consistent with the character&#x27;s profile, background, and known facts about the character. 3. Check whether the responses provide detailed facts about the character or if they are generic responses that could apply to any character. Detailed responses are more factual and contribute positively to the score. 4. Rate the performance of the AI on a scale of 1-7 for factual correctness, where 1 is the lowest and 7 is the highest based on the Evaluation Criteria. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Personality</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Personality (1-7): Is the response reflects the personalities and preferences of the character? [Evaluation Steps] 1. Read through the profile and write the personalities and preferences of the real character. 2. Read through the interactions and identify the personalities and preferences of the AI assistant. 3. After having a clear understanding of the interactions, compare the responses to the profile. Look for any consistencies or inconsistencies. Do the responses reflect the character&#x27;s personalities and preferences? 4. Use the given scale from 1-7 to rate how well the response reflects the personalities and preferences of the character. 1 being not at all reflective of the character&#x27;s personalities, and 7 being perfectly reflective of the character&#x27;s personalities. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Values</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Values (1-7): Is the response reflects the values and convictions of the character? [Evaluation Steps] 1. Read through the profile and write the values and convictions of the real character. 2. Read through the interactions and identify the values and convictions of the AI assistant. 3. After having a clear understanding of the interactions, compare the responses to the profile. Look for any consistencies or inconsistencies. Do the responses reflect the character&#x27;s values and convictions? 4. Use the given scale from 1-7 to rate how well the response reflects the values and convictions of the character. 1 being not at all reflective of the character&#x27;s values, and 7 being perfectly reflective of the character&#x27;s values. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Hallucina-tion</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Avoiding Hallucination (1-7): Is the response avoids to say things that the character do not know? [Evaluation Steps] 1. Read through the interactions and identify the knowledge scope of the character. 2. Read through the responses of the AI assistant, find the evidence of knowledge used in the response. 3. Compare the evidence to the profile. Check if the responses are consistent with the character&#x27;s knowledge scope. If some knowledge contradicts to the character&#x27;s identity, given a lower score. Otherwise, assign a higher score. 4. Rate the performance of the AI on a scale of 1-7 for Avoiding Hallucination, where 1 is the lowest and 7 is the highest based on the Evaluation Criteria. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Stability</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Long-term Acting (1-7): Is the assistant maintain a good performance over the long interactions? [Evaluation Steps] 1. Read through the given profile and background information to familiarize yourself with the context and details of the AI assistant named agent_name. 2. Review the interactions provided to see how agent_name responds to various prompts and queries. And evaluate the performance of acting query by query that whether the response reflects the personalities and values of the character. Assign score for each turn. 3. Based on the above assigned scores, does agent_name keep acting like character in the long-term? Evaluate the overall performance of the whole conversation based on the score for each turn. 4. Rate the stability of agent_name on a scale of 1 to 7, with 1 being very poor and 7 being excellent. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr></table>",
1483
+ "bbox": [
1484
+ 117,
1485
+ 90,
1486
+ 882,
1487
+ 881
1488
+ ],
1489
+ "page_idx": 10
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Table 8: Prompts for evaluation.",
1494
+ "bbox": [
1495
+ 386,
1496
+ 890,
1497
+ 608,
1498
+ 904
1499
+ ],
1500
+ "page_idx": 10
1501
+ },
1502
+ {
1503
+ "type": "page_number",
1504
+ "text": "14576",
1505
+ "bbox": [
1506
+ 477,
1507
+ 928,
1508
+ 524,
1509
+ 940
1510
+ ],
1511
+ "page_idx": 10
1512
+ }
1513
+ ]
2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/c7224e54-d8ea-4cd5-997e-67780b3bc8e1_model.json ADDED
@@ -0,0 +1,1674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ [
3
+ {
4
+ "type": "title",
5
+ "bbox": [
6
+ 0.136,
7
+ 0.082,
8
+ 0.868,
9
+ 0.123
10
+ ],
11
+ "angle": 0,
12
+ "content": "Capturing Minds, Not Just Words: Enhancing Role-Playing Language Models with Personality-Indicative Data"
13
+ },
14
+ {
15
+ "type": "text",
16
+ "bbox": [
17
+ 0.275,
18
+ 0.13,
19
+ 0.734,
20
+ 0.166
21
+ ],
22
+ "angle": 0,
23
+ "content": "Yiting Ran\\(^{1}\\), Xintao Wang\\(^{2}\\), Rui Xu\\(^{2}\\), Xinfeng Yuan\\(^{1}\\), Jiaqing Liang\\(^{1*}\\), Deqing Yang\\(^{1}\\), Yanghua Xiao\\(^{2}\\)"
24
+ },
25
+ {
26
+ "type": "text",
27
+ "bbox": [
28
+ 0.325,
29
+ 0.166,
30
+ 0.68,
31
+ 0.182
32
+ ],
33
+ "angle": 0,
34
+ "content": "\\(^{1}\\) School of Data Science, Fudan University"
35
+ },
36
+ {
37
+ "type": "text",
38
+ "bbox": [
39
+ 0.304,
40
+ 0.182,
41
+ 0.699,
42
+ 0.199
43
+ ],
44
+ "angle": 0,
45
+ "content": "\\(^{2}\\) School of Computer Science, Fudan University"
46
+ },
47
+ {
48
+ "type": "text",
49
+ "bbox": [
50
+ 0.251,
51
+ 0.199,
52
+ 0.756,
53
+ 0.216
54
+ ],
55
+ "angle": 0,
56
+ "content": "{ytran23,xtwang21,ruixu21,xfyuan23}@m.fudan.edu.cn"
57
+ },
58
+ {
59
+ "type": "text",
60
+ "bbox": [
61
+ 0.274,
62
+ 0.216,
63
+ 0.73,
64
+ 0.232
65
+ ],
66
+ "angle": 0,
67
+ "content": "{liangjiaqing, yangdeqing, shawyh}@fudan.edu.cn"
68
+ },
69
+ {
70
+ "type": "title",
71
+ "bbox": [
72
+ 0.261,
73
+ 0.253,
74
+ 0.343,
75
+ 0.269
76
+ ],
77
+ "angle": 0,
78
+ "content": "Abstract"
79
+ },
80
+ {
81
+ "type": "text",
82
+ "bbox": [
83
+ 0.142,
84
+ 0.281,
85
+ 0.462,
86
+ 0.538
87
+ ],
88
+ "angle": 0,
89
+ "content": "Role-playing agents (RPA) have been a popular application area for large language models (LLMs), attracting significant interest from both industry and academia. While existing RPAs well portray the characters' knowledge and tones, they face challenges in capturing their minds, especially for small role-playing language models (RPLMs). In this paper, we propose to enhance RPLMs via personality-indicative data. Specifically, we leverage questions from psychological scales and distill advanced RPAs to generate dialogues that grasp the minds of characters. Experimental results validate that RPLMs trained with our dataset exhibit advanced role-playing capabilities for both general and personality-related evaluations. Code and data are available at https://github.com/alienet1109/RolePersonality."
90
+ },
91
+ {
92
+ "type": "title",
93
+ "bbox": [
94
+ 0.115,
95
+ 0.55,
96
+ 0.262,
97
+ 0.565
98
+ ],
99
+ "angle": 0,
100
+ "content": "1 Introduction"
101
+ },
102
+ {
103
+ "type": "text",
104
+ "bbox": [
105
+ 0.113,
106
+ 0.575,
107
+ 0.49,
108
+ 0.784
109
+ ],
110
+ "angle": 0,
111
+ "content": "With the rise of large language models (LLMs), role-playing agents (RPAs) have emerged as a widely focused field of application, which attracts significant research interest as well (Chen et al., 2024). Based on LLMs, RPAs simulate the behavior and speech patterns of specific characters (Li et al., 2023; Wang et al., 2024b). Increasing efforts have been made to build specialized LLMs for RPAs, i.e., role-playing language models (RPLMs) (Zhou et al., 2023), typically via constructing role-playing datasets. These datasets aim to capture the key elements of role-playing and faithfully recreate character traits."
112
+ },
113
+ {
114
+ "type": "text",
115
+ "bbox": [
116
+ 0.113,
117
+ 0.785,
118
+ 0.49,
119
+ 0.898
120
+ ],
121
+ "angle": 0,
122
+ "content": "While existing RPLMs well replicate the knowledge and tone of the intended characters, they struggle to capture their minds, in tasks such as personality assessment (Wang et al., 2024a) and decision simulation (Xu et al., 2024). This is partly because existing role-playing datasets focus on character knowledge and tones (Wang et al., 2024b; Shao"
123
+ },
124
+ {
125
+ "type": "text",
126
+ "bbox": [
127
+ 0.508,
128
+ 0.254,
129
+ 0.883,
130
+ 0.285
131
+ ],
132
+ "angle": 0,
133
+ "content": "et al., 2023). However, capturing characters' minds is crucial for developing authentic RPAs."
134
+ },
135
+ {
136
+ "type": "text",
137
+ "bbox": [
138
+ 0.508,
139
+ 0.286,
140
+ 0.885,
141
+ 0.43
142
+ ],
143
+ "angle": 0,
144
+ "content": "In this paper, we propose to develop RPLMs via personality-indicative data. Specifically, we collect these data through questions from psychological scales. These scale questions are designed to quickly capture broad aspects of personality traits in individuals. Hence, we leverage advanced RPAs for the distillation of knowledge from them. Then, we apply these data to develop RPLMs that better capture the minds of the intended characters."
145
+ },
146
+ {
147
+ "type": "text",
148
+ "bbox": [
149
+ 0.508,
150
+ 0.431,
151
+ 0.887,
152
+ 0.558
153
+ ],
154
+ "angle": 0,
155
+ "content": "Specifically, we construct a dataset \\(\\mathsf{R}\\mathsf{o}\\mathsf{L}\\mathsf{E}\\mathsf{P}\\mathsf{E}\\mathsf{R}\\) PERSONALITY based on questions from 14 different psychological scales, including both single-round and multi-round data, inspired by InCharacter (Wang et al., 2024a). Following the dataset generation, we apply a filtering process using human-annotated personality labels for the selected characters."
156
+ },
157
+ {
158
+ "type": "text",
159
+ "bbox": [
160
+ 0.508,
161
+ 0.559,
162
+ 0.886,
163
+ 0.703
164
+ ],
165
+ "angle": 0,
166
+ "content": "We apply ROLEPERSONALITY to fine-tune RPLMs and evaluate them from three aspects, including personality fidelity (Wang et al., 2024a), motivation recognition (Yuan et al., 2024) and general role-playing benchmarks (Shao et al., 2023; Wang et al., 2024b). The results demonstrate that RPLMs fine-tuned with our dataset show improved capabilities in both personality-related and general evaluations."
167
+ },
168
+ {
169
+ "type": "text",
170
+ "bbox": [
171
+ 0.508,
172
+ 0.704,
173
+ 0.886,
174
+ 0.735
175
+ ],
176
+ "angle": 0,
177
+ "content": "The main contributions of this paper are summarized as threefold:"
178
+ },
179
+ {
180
+ "type": "text",
181
+ "bbox": [
182
+ 0.525,
183
+ 0.741,
184
+ 0.883,
185
+ 0.79
186
+ ],
187
+ "angle": 0,
188
+ "content": "1. We propose to develop RPLMs with personality-indicative data to enable them to better capture the minds of the characters."
189
+ },
190
+ {
191
+ "type": "text",
192
+ "bbox": [
193
+ 0.524,
194
+ 0.798,
195
+ 0.885,
196
+ 0.863
197
+ ],
198
+ "angle": 0,
199
+ "content": "2. We construct ROLEPERSONALITY, a comprehensive dataset based on questions from 14 psychological scales, encompassing both single-turn and multi-turn dialogues."
200
+ },
201
+ {
202
+ "type": "text",
203
+ "bbox": [
204
+ 0.524,
205
+ 0.871,
206
+ 0.885,
207
+ 0.919
208
+ ],
209
+ "angle": 0,
210
+ "content": "3. Experimental results show that RPLMs finetuned with ROLEPERSONALITY achieve refined performance in both personality-related"
211
+ },
212
+ {
213
+ "type": "list",
214
+ "bbox": [
215
+ 0.524,
216
+ 0.741,
217
+ 0.885,
218
+ 0.919
219
+ ],
220
+ "angle": 0,
221
+ "content": null
222
+ },
223
+ {
224
+ "type": "page_footnote",
225
+ "bbox": [
226
+ 0.142,
227
+ 0.905,
228
+ 0.298,
229
+ 0.919
230
+ ],
231
+ "angle": 0,
232
+ "content": "* Corresponding author."
233
+ },
234
+ {
235
+ "type": "page_number",
236
+ "bbox": [
237
+ 0.477,
238
+ 0.928,
239
+ 0.528,
240
+ 0.941
241
+ ],
242
+ "angle": 0,
243
+ "content": "14566"
244
+ },
245
+ {
246
+ "type": "footer",
247
+ "bbox": [
248
+ 0.211,
249
+ 0.946,
250
+ 0.789,
251
+ 0.973
252
+ ],
253
+ "angle": 0,
254
+ "content": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 14566-14576 November 12-16, 2024 ©2024 Association for Computational Linguistics"
255
+ }
256
+ ],
257
+ [
258
+ {
259
+ "type": "text",
260
+ "bbox": [
261
+ 0.15,
262
+ 0.085,
263
+ 0.488,
264
+ 0.117
265
+ ],
266
+ "angle": 0,
267
+ "content": "and general RPA evaluations, validating the effectiveness of ROLEPERSONALITY."
268
+ },
269
+ {
270
+ "type": "title",
271
+ "bbox": [
272
+ 0.114,
273
+ 0.138,
274
+ 0.271,
275
+ 0.154
276
+ ],
277
+ "angle": 0,
278
+ "content": "2 Related Work"
279
+ },
280
+ {
281
+ "type": "title",
282
+ "bbox": [
283
+ 0.114,
284
+ 0.164,
285
+ 0.406,
286
+ 0.18
287
+ ],
288
+ "angle": 0,
289
+ "content": "2.1 Role-Playing Language Models"
290
+ },
291
+ {
292
+ "type": "text",
293
+ "bbox": [
294
+ 0.113,
295
+ 0.185,
296
+ 0.49,
297
+ 0.233
298
+ ],
299
+ "angle": 0,
300
+ "content": "The key for developing RPLMs is building a roleplaying dataset. The collection methods can be roughly divided into the following two categories."
301
+ },
302
+ {
303
+ "type": "text",
304
+ "bbox": [
305
+ 0.113,
306
+ 0.242,
307
+ 0.489,
308
+ 0.306
309
+ ],
310
+ "angle": 0,
311
+ "content": "Experience Extraction This method refers to extracting dialogues and other information from original works such as novels, TV shows, and other media (Li et al., 2023; Yuan et al., 2024)."
312
+ },
313
+ {
314
+ "type": "text",
315
+ "bbox": [
316
+ 0.113,
317
+ 0.315,
318
+ 0.49,
319
+ 0.428
320
+ ],
321
+ "angle": 0,
322
+ "content": "Dialogue Synthesis This method utilizes LLMs for generating conversations or human annotations to build and augment datasets. The topics come from the corresponding literature (Shao et al., 2023), general task instructions (Wang et al., 2024b), and special scenarios such as personality tests (Wang et al., 2024a)."
323
+ },
324
+ {
325
+ "type": "title",
326
+ "bbox": [
327
+ 0.114,
328
+ 0.438,
329
+ 0.449,
330
+ 0.455
331
+ ],
332
+ "angle": 0,
333
+ "content": "2.2 Construction of Role-Playing Agents"
334
+ },
335
+ {
336
+ "type": "text",
337
+ "bbox": [
338
+ 0.113,
339
+ 0.459,
340
+ 0.49,
341
+ 0.492
342
+ ],
343
+ "angle": 0,
344
+ "content": "Based on character role-playing datasets, RPAs can be constructed in two ways: training or prompting."
345
+ },
346
+ {
347
+ "type": "text",
348
+ "bbox": [
349
+ 0.113,
350
+ 0.5,
351
+ 0.49,
352
+ 0.627
353
+ ],
354
+ "angle": 0,
355
+ "content": "Parametric Learning This approach fine-tunes a base model using existing or custom role-playing datasets. Shao et al. (2023); Yu et al. (2024) enhance foundation models with improved roleplaying abilities using datasets featuring a variety of characters and scenarios. Zhou et al. (2023); Wang et al. (2024b) tailor LLMs to role-play specific characters."
356
+ },
357
+ {
358
+ "type": "text",
359
+ "bbox": [
360
+ 0.113,
361
+ 0.637,
362
+ 0.49,
363
+ 0.797
364
+ ],
365
+ "angle": 0,
366
+ "content": "Non-Parametric Learning For more in-depth role-playing of a specific character, many efforts have focused on character-level engineering (Zhou et al., 2023; Wang et al., 2024b). They collect and process character-related data from the corresponding sources, including collecting profile from Wikipedia (Shao et al., 2023). Typically, they add long-term memory to retrieve knowledge about the character based on similarity with the user's query (Li et al., 2023)."
367
+ },
368
+ {
369
+ "type": "title",
370
+ "bbox": [
371
+ 0.114,
372
+ 0.809,
373
+ 0.218,
374
+ 0.824
375
+ ],
376
+ "angle": 0,
377
+ "content": "3 Method"
378
+ },
379
+ {
380
+ "type": "title",
381
+ "bbox": [
382
+ 0.114,
383
+ 0.835,
384
+ 0.329,
385
+ 0.849
386
+ ],
387
+ "angle": 0,
388
+ "content": "3.1 Dataset Construction"
389
+ },
390
+ {
391
+ "type": "text",
392
+ "bbox": [
393
+ 0.113,
394
+ 0.855,
395
+ 0.49,
396
+ 0.919
397
+ ],
398
+ "angle": 0,
399
+ "content": "To simulate the deep thoughts underlying the characters, we generate persona-indicative data by utilizing psychological scale questions, inspired by InCharacter (Wang et al., 2024a). In practice, we"
400
+ },
401
+ {
402
+ "type": "text",
403
+ "bbox": [
404
+ 0.508,
405
+ 0.085,
406
+ 0.885,
407
+ 0.278
408
+ ],
409
+ "angle": 0,
410
+ "content": "construct an RPA by pairing the RPLM with descriptions and the memory base of the target character (Li et al., 2023). RPAs are then engaged with open-ended questions derived from established psychological scales. These questions are designed to elicit the character's mindset and behaviors in various scenarios. The questions were adapted from well-known psychological scales such as the Big Five Inventory (BFI) and 16Personalities. For more details, refer to Sec. B. We start by rewriting psychological scale questions and implementing a selection process to refine the data."
411
+ },
412
+ {
413
+ "type": "text",
414
+ "bbox": [
415
+ 0.508,
416
+ 0.289,
417
+ 0.885,
418
+ 0.435
419
+ ],
420
+ "angle": 0,
421
+ "content": "Filtering Mechanism After generating the responses, we implement a filtering process based on the results of the personality assessment. This involves assessing the generated responses to ensure that they align with the intended character's personality traits. The ground truth comes from human annotations. Responses inconsistent with the character's personality were discarded to maintain the quality and consistency of the dataset."
422
+ },
423
+ {
424
+ "type": "table",
425
+ "bbox": [
426
+ 0.53,
427
+ 0.446,
428
+ 0.864,
429
+ 0.512
430
+ ],
431
+ "angle": 0,
432
+ "content": "<table><tr><td>Subset</td><td>#Questions</td><td>#Turns</td><td>#Samples</td></tr><tr><td>Full+Single</td><td>1092</td><td>1</td><td>32089</td></tr><tr><td>Part+Single</td><td>646</td><td>1</td><td>22489</td></tr><tr><td>Part+Multi</td><td>646</td><td>5</td><td>32767</td></tr></table>"
433
+ },
434
+ {
435
+ "type": "table_caption",
436
+ "bbox": [
437
+ 0.508,
438
+ 0.521,
439
+ 0.884,
440
+ 0.565
441
+ ],
442
+ "angle": 0,
443
+ "content": "Table 1: We develop three sub-datasets to evaluate the impact of the screening scale and the addition of multi-round data on the performance of the RPLMs."
444
+ },
445
+ {
446
+ "type": "text",
447
+ "bbox": [
448
+ 0.508,
449
+ 0.592,
450
+ 0.884,
451
+ 0.736
452
+ ],
453
+ "angle": 0,
454
+ "content": "Scale Selection Our scales are sourced from psychological scales (Bem, 1981; Barrick and Mount, 1991), utilizing the questions rewritten by InCharacter (Wang et al., 2024a). However, not all scales are closely related to character personalities. We carefully selected a subset of these scales that best reflect character personality traits, forming the subset Part. The entire set of selected scales constitutes the subset Full."
455
+ },
456
+ {
457
+ "type": "text",
458
+ "bbox": [
459
+ 0.508,
460
+ 0.748,
461
+ 0.884,
462
+ 0.844
463
+ ],
464
+ "angle": 0,
465
+ "content": "Question Selection Not all questions are suitable for all characters. A question that violates the character's background may induce hallucinations. As a result, we judge whether the question is suitable for the character by llm. Then we exclude questions that do not fit the character's background."
466
+ },
467
+ {
468
+ "type": "text",
469
+ "bbox": [
470
+ 0.508,
471
+ 0.855,
472
+ 0.883,
473
+ 0.919
474
+ ],
475
+ "angle": 0,
476
+ "content": "Multi-Turn Dialogue We incorporate multi-turn dialogues to maintain conversation consistency and enhance the model's contextual understanding. We select questions from different dimensions within"
477
+ },
478
+ {
479
+ "type": "page_number",
480
+ "bbox": [
481
+ 0.478,
482
+ 0.928,
483
+ 0.526,
484
+ 0.941
485
+ ],
486
+ "angle": 0,
487
+ "content": "14567"
488
+ }
489
+ ],
490
+ [
491
+ {
492
+ "type": "image",
493
+ "bbox": [
494
+ 0.134,
495
+ 0.084,
496
+ 0.864,
497
+ 0.267
498
+ ],
499
+ "angle": 0,
500
+ "content": null
501
+ },
502
+ {
503
+ "type": "image_caption",
504
+ "bbox": [
505
+ 0.113,
506
+ 0.279,
507
+ 0.883,
508
+ 0.321
509
+ ],
510
+ "angle": 0,
511
+ "content": "Figure 1: The framework of building and utilizing ROLEPERSONALITY. First, we obtain ROLEPERSONALITY by distilling advanced RPAs using scale questions. Then, we train RPLMs on ROLEPERSONALITY to enhance their ability to capture characters' minds."
512
+ },
513
+ {
514
+ "type": "text",
515
+ "bbox": [
516
+ 0.113,
517
+ 0.347,
518
+ 0.486,
519
+ 0.395
520
+ ],
521
+ "angle": 0,
522
+ "content": "the same scale. These multi-turn data form subset Multi. The subset consisting of only single-turn data is classified as subset Single."
523
+ },
524
+ {
525
+ "type": "title",
526
+ "bbox": [
527
+ 0.114,
528
+ 0.406,
529
+ 0.295,
530
+ 0.42
531
+ ],
532
+ "angle": 0,
533
+ "content": "3.2 Dataset Statistics"
534
+ },
535
+ {
536
+ "type": "text",
537
+ "bbox": [
538
+ 0.113,
539
+ 0.427,
540
+ 0.489,
541
+ 0.522
542
+ ],
543
+ "angle": 0,
544
+ "content": "Based on this idea, we construct ROLEPERSONALITY consisting of three subsets using interviews conducted by the gpt-3.5-turbo. Our dataset includes 16 characters from ChatHaruhi and 30 English characters from RoleLLM. The details of our dataset are provided in Table 1."
545
+ },
546
+ {
547
+ "type": "title",
548
+ "bbox": [
549
+ 0.114,
550
+ 0.535,
551
+ 0.252,
552
+ 0.551
553
+ ],
554
+ "angle": 0,
555
+ "content": "4 Experiment"
556
+ },
557
+ {
558
+ "type": "title",
559
+ "bbox": [
560
+ 0.114,
561
+ 0.56,
562
+ 0.224,
563
+ 0.575
564
+ ],
565
+ "angle": 0,
566
+ "content": "4.1 Settings"
567
+ },
568
+ {
569
+ "type": "text",
570
+ "bbox": [
571
+ 0.113,
572
+ 0.58,
573
+ 0.489,
574
+ 0.645
575
+ ],
576
+ "angle": 0,
577
+ "content": "Fine-tuning We employ LoRA tuning (Hu et al., 2021) for supervised fine-tuning the Mistral-7Bv0.2-Chat (Jiang et al., 2023). The model is finetuned for 3 epochs with LoRA rank set to 8."
578
+ },
579
+ {
580
+ "type": "text",
581
+ "bbox": [
582
+ 0.113,
583
+ 0.654,
584
+ 0.489,
585
+ 0.831
586
+ ],
587
+ "angle": 0,
588
+ "content": "Baseline To compare the effectiveness of different datasets, we fine-tune the model with the same settings in three subsets of ROLEPERSONALITY (Full+Single, Part+Single, Part+Multi), the dataset introduced by CharacterLLM(Shao et al., 2023) and RoleBench(Wang et al., 2024b). For each dataset, we select approximately 20,000 samples for fine-tuning, keeping the data size about the same. These models, along with the original mistral-7B and gpt-3.5-turbo-0301, are subsequently evaluated to assess their performance."
589
+ },
590
+ {
591
+ "type": "text",
592
+ "bbox": [
593
+ 0.113,
594
+ 0.84,
595
+ 0.489,
596
+ 0.919
597
+ ],
598
+ "angle": 0,
599
+ "content": "Evaluation Protocols After fine-tuning, we conduct experiments on three benchmarks to comprehensively assess their performance: 1) Personality Fidelity We evaluate whether the model accurately reflects the character's personality; 2) Motivation"
600
+ },
601
+ {
602
+ "type": "text",
603
+ "bbox": [
604
+ 0.508,
605
+ 0.347,
606
+ 0.883,
607
+ 0.476
608
+ ],
609
+ "angle": 0,
610
+ "content": "Recognition (MR) We test the model's ability to learn and represent the character's motivations; 3) General Ability We apply three metrics adopted by previous researches (Wang et al., 2024b; Shao et al., 2023) to comprehensively evaluate RPLM's role-playing ability, such as character conformity. All evaluations involving LLMs are conducted by gpt-3.5-turbo-0301 with temperature set to 0."
611
+ },
612
+ {
613
+ "type": "table",
614
+ "bbox": [
615
+ 0.527,
616
+ 0.489,
617
+ 0.868,
618
+ 0.668
619
+ ],
620
+ "angle": 0,
621
+ "content": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"2\">PF</td><td>MR</td></tr><tr><td>Single Acc.</td><td>Full Acc.</td><td>Acc.</td></tr><tr><td colspan=\"4\">gpt-3.5-turbo</td></tr><tr><td>-</td><td>70.27</td><td>48.35</td><td>64.52</td></tr><tr><td colspan=\"4\">mistral-7B</td></tr><tr><td>-</td><td>70.01</td><td>46.85</td><td>34.62</td></tr><tr><td>RoleBench</td><td>67.58</td><td>45.47</td><td>33.28</td></tr><tr><td>CharacterLLM</td><td>64.45</td><td>39.65</td><td>33.54</td></tr><tr><td colspan=\"4\">RolePersonality</td></tr><tr><td>Ful+Sin</td><td>72.10</td><td>49.15</td><td>44.54</td></tr><tr><td>Par+Sin</td><td>70.97</td><td>49.08</td><td>40.02</td></tr><tr><td>Par+Mul</td><td>71.36</td><td>48.42</td><td>40.04</td></tr></table>"
622
+ },
623
+ {
624
+ "type": "table_caption",
625
+ "bbox": [
626
+ 0.508,
627
+ 0.678,
628
+ 0.883,
629
+ 0.735
630
+ ],
631
+ "angle": 0,
632
+ "content": "Table 2: The accuracy of Personality Fidelity \\((\\%)\\) and Motivation Recognition \\((\\%)\\). Single Acc. refers to the average accuracy for individual dimensions. Full Acc. refers to the overall accuracy across the entire scale."
633
+ },
634
+ {
635
+ "type": "title",
636
+ "bbox": [
637
+ 0.509,
638
+ 0.768,
639
+ 0.749,
640
+ 0.784
641
+ ],
642
+ "angle": 0,
643
+ "content": "4.2 Personality Fidelity (PF)"
644
+ },
645
+ {
646
+ "type": "text",
647
+ "bbox": [
648
+ 0.508,
649
+ 0.791,
650
+ 0.884,
651
+ 0.919
652
+ ],
653
+ "angle": 0,
654
+ "content": "We use LLMs to judge the character's personality based on the model's responses to personality scale questions and compare the judgments with the ground truth, which was determined by human annotators. We selected eight test characters from the dataset proposed by InCharacter (Wang et al., 2024a). All data related to these test characters are excluded from the training set to ensure unbiased"
655
+ },
656
+ {
657
+ "type": "page_number",
658
+ "bbox": [
659
+ 0.478,
660
+ 0.928,
661
+ 0.525,
662
+ 0.941
663
+ ],
664
+ "angle": 0,
665
+ "content": "14568"
666
+ }
667
+ ],
668
+ [
669
+ {
670
+ "type": "table",
671
+ "bbox": [
672
+ 0.137,
673
+ 0.082,
674
+ 0.861,
675
+ 0.263
676
+ ],
677
+ "angle": 0,
678
+ "content": "<table><tr><td rowspan=\"2\">Dataset</td><td colspan=\"3\">Direct Scoring</td><td colspan=\"4\">Dimensional Scoring</td></tr><tr><td>Rouge-L</td><td>Win Rate</td><td>Memorization</td><td>Personality</td><td>Values</td><td>Stability</td><td>Hallucination</td></tr><tr><td colspan=\"8\">gpt-3.5-turbo</td></tr><tr><td>-</td><td>0.202</td><td>48.02</td><td>6.098</td><td>6.769</td><td>6.645</td><td>6.160</td><td>6.803</td></tr><tr><td colspan=\"8\">mistral-7B</td></tr><tr><td>-</td><td>0.183</td><td>30.50</td><td>6.161</td><td>6.642</td><td>6.500</td><td>6.081</td><td>6.858</td></tr><tr><td>RoleBench</td><td>0.238</td><td>14.10</td><td>6.136</td><td>6.640</td><td>6.626</td><td>6.081</td><td>6.844</td></tr><tr><td>CharacterLLM</td><td>0.235</td><td>26.92</td><td>6.149</td><td>6.646</td><td>6.586</td><td>6.069</td><td>6.767</td></tr><tr><td colspan=\"8\">RolePersonality</td></tr><tr><td>Ful+Sin</td><td>0.216</td><td>36.56</td><td>6.290</td><td>6.767</td><td>6.719</td><td>6.175</td><td>6.886</td></tr><tr><td>Par+Sin</td><td>0.208</td><td>38.75</td><td>6.243</td><td>6.754</td><td>6.693</td><td>6.154</td><td>6.805</td></tr><tr><td>Par+Mul</td><td>0.207</td><td>43.89</td><td>6.185</td><td>6.728</td><td>6.675</td><td>6.122</td><td>6.842</td></tr></table>"
679
+ },
680
+ {
681
+ "type": "table_caption",
682
+ "bbox": [
683
+ 0.113,
684
+ 0.271,
685
+ 0.884,
686
+ 0.302
687
+ ],
688
+ "angle": 0,
689
+ "content": "Table 3: Performance of RPLMs on General Role-Playing Benchmarks, including Rouge-L and Win-rate for direct scoring, and five-dimensional scoring to assess role-playing proficiency."
690
+ },
691
+ {
692
+ "type": "text",
693
+ "bbox": [
694
+ 0.113,
695
+ 0.326,
696
+ 0.49,
697
+ 0.375
698
+ ],
699
+ "angle": 0,
700
+ "content": "evaluation. This metric provides a comprehensive assessment of the model's ability to accurately reflect the holistic personality traits of a character."
701
+ },
702
+ {
703
+ "type": "text",
704
+ "bbox": [
705
+ 0.113,
706
+ 0.378,
707
+ 0.49,
708
+ 0.492
709
+ ],
710
+ "angle": 0,
711
+ "content": "The results are shown in Table 7. The overall personality fidelity of the trained model has improved. Moreover, models fine-tuned with the other two datasets performed worse compared to the untrained Mistral model. This may be because these datasets focus on character knowledge rather than adequately reflecting character personality traits."
712
+ },
713
+ {
714
+ "type": "title",
715
+ "bbox": [
716
+ 0.114,
717
+ 0.514,
718
+ 0.395,
719
+ 0.53
720
+ ],
721
+ "angle": 0,
722
+ "content": "4.3 Motivation Recognition (MR)"
723
+ },
724
+ {
725
+ "type": "text",
726
+ "bbox": [
727
+ 0.113,
728
+ 0.542,
729
+ 0.49,
730
+ 0.655
731
+ ],
732
+ "angle": 0,
733
+ "content": "CRoSS (Yuan et al., 2024) introduced a subset of 445 multiple-choice questions generated by gpt-4 to assess the model's ability to capture character motivation. Each question presents a character's decision within a scenario. The accuracy measures the model's capability to understand and simulate character motivations and personality traits."
734
+ },
735
+ {
736
+ "type": "text",
737
+ "bbox": [
738
+ 0.113,
739
+ 0.659,
740
+ 0.49,
741
+ 0.722
742
+ ],
743
+ "angle": 0,
744
+ "content": "The results are shown in Table 7. Models finetuned with our datasets significantly outperform others, exhibiting a stronger ability to recognize the motivation of characters."
745
+ },
746
+ {
747
+ "type": "title",
748
+ "bbox": [
749
+ 0.114,
750
+ 0.747,
751
+ 0.434,
752
+ 0.763
753
+ ],
754
+ "angle": 0,
755
+ "content": "4.4 General Role-Playing Benchmarks"
756
+ },
757
+ {
758
+ "type": "text",
759
+ "bbox": [
760
+ 0.113,
761
+ 0.775,
762
+ 0.49,
763
+ 0.92
764
+ ],
765
+ "angle": 0,
766
+ "content": "We select the same 8 test characters used in the personality fidelity evaluation for consistency. The tested model generates responses to role-specific questions from the RoleBench (Wang et al., 2024b) dataset. To assess the RPLMs' performance, we adopt evaluation metrics proposed by RoleLLM (Wang et al., 2024b) for direct scoring and CharacterLLM (Shao et al., 2023) for dimensional scoring."
767
+ },
768
+ {
769
+ "type": "title",
770
+ "bbox": [
771
+ 0.509,
772
+ 0.326,
773
+ 0.685,
774
+ 0.342
775
+ ],
776
+ "angle": 0,
777
+ "content": "4.4.1 Direct Scoring"
778
+ },
779
+ {
780
+ "type": "text",
781
+ "bbox": [
782
+ 0.507,
783
+ 0.351,
784
+ 0.885,
785
+ 0.544
786
+ ],
787
+ "angle": 0,
788
+ "content": "We use Rouge-L and Win-rate (Wang et al., 2024b) to evaluate the overall role-playing ability of RPLMs. The Rouge-L score (Lin, 2004) refers to the relevance between model response and ground truth in RoleBench. It provides a robust metric to assess the knowledge about the specific character involved in the model's output. The win-rate is the frequency with which a model's response is judged better than the response of gpt-4. It provides a comparative measure of the model's effectiveness in generating high-quality answers relative to a strong baseline."
789
+ },
790
+ {
791
+ "type": "text",
792
+ "bbox": [
793
+ 0.508,
794
+ 0.548,
795
+ 0.884,
796
+ 0.629
797
+ ],
798
+ "angle": 0,
799
+ "content": "The result can be checked in Table 3. The models fine-tuned on our datasets show lower Rouge-L scores. For win-rate, Our models' win rate is below only gpt-3.5-turbo, with the model trained on the Part+Single dataset performing the best."
800
+ },
801
+ {
802
+ "type": "title",
803
+ "bbox": [
804
+ 0.509,
805
+ 0.65,
806
+ 0.734,
807
+ 0.667
808
+ ],
809
+ "angle": 0,
810
+ "content": "4.4.2 Dimensional Scoring"
811
+ },
812
+ {
813
+ "type": "text",
814
+ "bbox": [
815
+ 0.507,
816
+ 0.675,
817
+ 0.885,
818
+ 0.867
819
+ ],
820
+ "angle": 0,
821
+ "content": "The models' responses are rated across five dimensions on a scale from 0 to 7 to assess their roleplaying proficiency (Shao et al., 2023). These dimensions are: (1) Memorization: The model's ability to recall relevant information about the character being portrayed, (2) Personality: Ability to the speaking style or the tones. (3) Values: Whether the model can reflect the objectives and values of the target character. (4) Stability: Consistency of a model over a relatively long conversation. (5) Hallucination: Ability to discard knowledge and skills that the character would not have."
822
+ },
823
+ {
824
+ "type": "text",
825
+ "bbox": [
826
+ 0.508,
827
+ 0.871,
828
+ 0.884,
829
+ 0.92
830
+ ],
831
+ "angle": 0,
832
+ "content": "The results are shown in Table 3. Our models lead in most dimensions, with the only exception being the personality dimension."
833
+ },
834
+ {
835
+ "type": "page_number",
836
+ "bbox": [
837
+ 0.478,
838
+ 0.928,
839
+ 0.526,
840
+ 0.941
841
+ ],
842
+ "angle": 0,
843
+ "content": "14569"
844
+ }
845
+ ],
846
+ [
847
+ {
848
+ "type": "title",
849
+ "bbox": [
850
+ 0.115,
851
+ 0.085,
852
+ 0.248,
853
+ 0.099
854
+ ],
855
+ "angle": 0,
856
+ "content": "5 Conclusion"
857
+ },
858
+ {
859
+ "type": "text",
860
+ "bbox": [
861
+ 0.113,
862
+ 0.113,
863
+ 0.493,
864
+ 0.323
865
+ ],
866
+ "angle": 0,
867
+ "content": "This paper demonstrates that personality-indicative data helps capture complex character mindsets, thus significantly enhancing the performance of role-playing agents. By constructing ROLEPERSONALITY that captures character personalities, we address the limitations of traditional datasets that focus primarily on character knowledge and linguistic habits. Models fine-tuned on our comprehensive dataset show substantial improvements in role-playing capabilities. This advancement paves the way for constructing role-playing models that can effectively simulate complex character behaviors, leading to more immersive user experiences."
868
+ },
869
+ {
870
+ "type": "title",
871
+ "bbox": [
872
+ 0.114,
873
+ 0.337,
874
+ 0.221,
875
+ 0.352
876
+ ],
877
+ "angle": 0,
878
+ "content": "Limitations"
879
+ },
880
+ {
881
+ "type": "text",
882
+ "bbox": [
883
+ 0.113,
884
+ 0.365,
885
+ 0.49,
886
+ 0.64
887
+ ],
888
+ "angle": 0,
889
+ "content": "Despite the promising results, our study has several limitations. First, the dataset used for fine-tuning is entirely constructed by LLMs, which may introduce biases or inaccuracies inherent to the model's training data, potentially affecting the quality and authenticity of the dataset. Second, the interview-based data collection lacks mechanisms to ensure compliance and adherence to expected norms and standards, leading to inconsistencies or deviations that may impact the model's performance. Third, the evaluation of the model's performance primarily relies on automated metrics and LLM-based assessments, with the absence of human evaluation, subtleties and nuances in character portrayal might not be fully captured or assessed. Addressing these limitations in future work could further enhance the robustness and reliability of the developed RPLMs."
890
+ },
891
+ {
892
+ "type": "title",
893
+ "bbox": [
894
+ 0.115,
895
+ 0.654,
896
+ 0.267,
897
+ 0.669
898
+ ],
899
+ "angle": 0,
900
+ "content": "Ethics Statement"
901
+ },
902
+ {
903
+ "type": "text",
904
+ "bbox": [
905
+ 0.113,
906
+ 0.682,
907
+ 0.489,
908
+ 0.73
909
+ ],
910
+ "angle": 0,
911
+ "content": "We hereby acknowledge that all authors of this work are aware of the provided ACL Code of Ethics and honor the code of conduct."
912
+ },
913
+ {
914
+ "type": "text",
915
+ "bbox": [
916
+ 0.113,
917
+ 0.743,
918
+ 0.49,
919
+ 0.921
920
+ ],
921
+ "angle": 0,
922
+ "content": "Risk Our approach to developing Role-Playing Language Models (RPLMs) presents several risks. First, reliance on LLM-generated datasets may perpetuate inherent biases and inaccuracies, leading to unintended behaviors. Second, the lack of compliance mechanisms in interview data can result in inconsistencies, undermining authenticity. Third, the absence of human evaluation means subtle nuances in character portrayal may be missed by automated metrics. Ethical concerns also arise from using psychological scales, especially regarding privacy"
923
+ },
924
+ {
925
+ "type": "text",
926
+ "bbox": [
927
+ 0.508,
928
+ 0.085,
929
+ 0.885,
930
+ 0.198
931
+ ],
932
+ "angle": 0,
933
+ "content": "and appropriate representation. Additionally, overfitting to specific traits in the selected scales may limit the generalizability of models trained on different role-playing datasets. Addressing these risks requires diversifying data sources and incorporating robust evaluation methods, including human assessments."
934
+ },
935
+ {
936
+ "type": "title",
937
+ "bbox": [
938
+ 0.51,
939
+ 0.211,
940
+ 0.683,
941
+ 0.227
942
+ ],
943
+ "angle": 0,
944
+ "content": "Acknowledgements"
945
+ },
946
+ {
947
+ "type": "text",
948
+ "bbox": [
949
+ 0.508,
950
+ 0.237,
951
+ 0.886,
952
+ 0.366
953
+ ],
954
+ "angle": 0,
955
+ "content": "This work was supported by the Chinese NSF Major Research Plan(No.92270121). This work originates from InCharacter introduced by Xintao Wang. The role-playing agents are constructed based on Chat-Haruhi-Suzumiya proposed by Cheng Li. We owe thanks to the early contributors. The computations in this research were performed using the CFff platform of Fudan University."
956
+ },
957
+ {
958
+ "type": "title",
959
+ "bbox": [
960
+ 0.511,
961
+ 0.393,
962
+ 0.61,
963
+ 0.408
964
+ ],
965
+ "angle": 0,
966
+ "content": "References"
967
+ },
968
+ {
969
+ "type": "ref_text",
970
+ "bbox": [
971
+ 0.511,
972
+ 0.417,
973
+ 0.884,
974
+ 0.458
975
+ ],
976
+ "angle": 0,
977
+ "content": "Murray R Barrick and Michael K Mount. 1991. The big five personality dimensions and job performance: a meta-analysis. Personnel psychology, 44(1):1-26."
978
+ },
979
+ {
980
+ "type": "ref_text",
981
+ "bbox": [
982
+ 0.511,
983
+ 0.468,
984
+ 0.884,
985
+ 0.497
986
+ ],
987
+ "angle": 0,
988
+ "content": "Sandra L Bem. 1981. Bem sex role inventory. Journal of personality and social psychology."
989
+ },
990
+ {
991
+ "type": "ref_text",
992
+ "bbox": [
993
+ 0.511,
994
+ 0.506,
995
+ 0.885,
996
+ 0.587
997
+ ],
998
+ "angle": 0,
999
+ "content": "Jiangjie Chen, Xintao Wang, Rui Xu, Siyu Yuan, Yikai Zhang, Wei Shi, Jian Xie, Shuang Li, Ruihan Yang, Tinghui Zhu, Aili Chen, Nianqi Li, Lida Chen, Caiyu Hu, Siye Wu, Scott Ren, Ziquan Fu, and Yanghua Xiao. 2024. From persona to personalization: A survey on role-playing language agents."
1000
+ },
1001
+ {
1002
+ "type": "ref_text",
1003
+ "bbox": [
1004
+ 0.511,
1005
+ 0.596,
1006
+ 0.885,
1007
+ 0.65
1008
+ ],
1009
+ "angle": 0,
1010
+ "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."
1011
+ },
1012
+ {
1013
+ "type": "ref_text",
1014
+ "bbox": [
1015
+ 0.511,
1016
+ 0.66,
1017
+ 0.885,
1018
+ 0.728
1019
+ ],
1020
+ "angle": 0,
1021
+ "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, abs/2310.06825."
1022
+ },
1023
+ {
1024
+ "type": "ref_text",
1025
+ "bbox": [
1026
+ 0.51,
1027
+ 0.738,
1028
+ 0.885,
1029
+ 0.817
1030
+ ],
1031
+ "angle": 0,
1032
+ "content": "Cheng Li, Ziang Leng, Chenxi Yan, Junyi Shen, Hao Wang, Weishi MI, Yaying Fei, Xiaoyang Feng, Song Yan, HaoSheng Wang, Linkang Zhan, Yaokai Jia, Pingyu Wu, and Haozhen Sun. 2023. Chatharuhi: Reviving anime character in reality via large language model."
1033
+ },
1034
+ {
1035
+ "type": "ref_text",
1036
+ "bbox": [
1037
+ 0.51,
1038
+ 0.828,
1039
+ 0.885,
1040
+ 0.869
1041
+ ],
1042
+ "angle": 0,
1043
+ "content": "Chin-Yew Lin. 2004. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81."
1044
+ },
1045
+ {
1046
+ "type": "ref_text",
1047
+ "bbox": [
1048
+ 0.51,
1049
+ 0.878,
1050
+ 0.885,
1051
+ 0.921
1052
+ ],
1053
+ "angle": 0,
1054
+ "content": "Yunfan Shao, Linyang Li, Junqi Dai, and Xipeng Qiu. 2023. Character-llm: A trainable agent for roleplaying."
1055
+ },
1056
+ {
1057
+ "type": "list",
1058
+ "bbox": [
1059
+ 0.51,
1060
+ 0.417,
1061
+ 0.885,
1062
+ 0.921
1063
+ ],
1064
+ "angle": 0,
1065
+ "content": null
1066
+ },
1067
+ {
1068
+ "type": "page_number",
1069
+ "bbox": [
1070
+ 0.478,
1071
+ 0.928,
1072
+ 0.526,
1073
+ 0.941
1074
+ ],
1075
+ "angle": 0,
1076
+ "content": "14570"
1077
+ }
1078
+ ],
1079
+ [
1080
+ {
1081
+ "type": "ref_text",
1082
+ "bbox": [
1083
+ 0.117,
1084
+ 0.086,
1085
+ 0.49,
1086
+ 0.165
1087
+ ],
1088
+ "angle": 0,
1089
+ "content": "Xintao Wang, Yunze Xiao, Jen tse Huang, Siyu Yuan, Rui Xu, Haoran Guo, Quan Tu, Yaying Fei, Ziang Leng, Wei Wang, Jiangjie Chen, Cheng Li, and Yanghua Xiao. 2024a. Incharacter: Evaluating personality fidelity in role-playing agents through psychological interviews."
1090
+ },
1091
+ {
1092
+ "type": "ref_text",
1093
+ "bbox": [
1094
+ 0.117,
1095
+ 0.175,
1096
+ 0.49,
1097
+ 0.279
1098
+ ],
1099
+ "angle": 0,
1100
+ "content": "Zekun Moore Wang, Zhongyuan Peng, Haoran Que, Jiaheng Liu, Wangchunshu Zhou, Yuhan Wu, Hongcheng Guo, Ruitong Gan, Zehao Ni, Jian Yang, Man Zhang, Zhaoxiang Zhang, Wanli Ouyang, Ke Xu, Stephen W. Huang, Jie Fu, and Junran Peng. 2024b. Rolellm: Benchmarking, eliciting, and enhancing role-playing abilities of large language models."
1101
+ },
1102
+ {
1103
+ "type": "ref_text",
1104
+ "bbox": [
1105
+ 0.117,
1106
+ 0.29,
1107
+ 0.49,
1108
+ 0.368
1109
+ ],
1110
+ "angle": 0,
1111
+ "content": "Rui Xu, Xintao Wang, Jiangjie Chen, Siyu Yuan, Xinfeng Yuan, Jiaqing Liang, Zulong Chen, Xiaqing Dong, and Yanghua Xiao. 2024. Character is destiny: Can large language models simulate persona-driven decisions in role-playing? arXiv preprint arXiv:2404.12138."
1112
+ },
1113
+ {
1114
+ "type": "ref_text",
1115
+ "bbox": [
1116
+ 0.117,
1117
+ 0.379,
1118
+ 0.488,
1119
+ 0.443
1120
+ ],
1121
+ "angle": 0,
1122
+ "content": "Xiaoyan Yu, Tongxu Luo, Yifan Wei, Fangyu Lei, Yiming Huang, Peng Hao, and Liehuang Zhu. 2024. Neeko: Leveraging dynamic lora for efficient multi-character role-playing agent. arXiv preprint arXiv:2402.13717."
1123
+ },
1124
+ {
1125
+ "type": "ref_text",
1126
+ "bbox": [
1127
+ 0.117,
1128
+ 0.454,
1129
+ 0.488,
1130
+ 0.519
1131
+ ],
1132
+ "angle": 0,
1133
+ "content": "Xinfeng Yuan, Siyu Yuan, Yuhan Cui, Tianhe Lin, Xintao Wang, Rui Xu, Jiangjie Chen, and Deqing Yang. 2024. Evaluating character understanding of large language models via character profiling from fictional works."
1134
+ },
1135
+ {
1136
+ "type": "ref_text",
1137
+ "bbox": [
1138
+ 0.117,
1139
+ 0.53,
1140
+ 0.49,
1141
+ 0.608
1142
+ ],
1143
+ "angle": 0,
1144
+ "content": "Jinfeng Zhou, Zhuang Chen, Dazhen Wan, Bosi Wen, Yi Song, Jifan Yu, Yongkang Huang, Libiao Peng, Jiaming Yang, Xiyao Xiao, et al. 2023. Characterglm: Customizing chinese conversational ai characters with large language models. ArXiv preprint, abs/2311.16832."
1145
+ },
1146
+ {
1147
+ "type": "list",
1148
+ "bbox": [
1149
+ 0.117,
1150
+ 0.086,
1151
+ 0.49,
1152
+ 0.608
1153
+ ],
1154
+ "angle": 0,
1155
+ "content": null
1156
+ },
1157
+ {
1158
+ "type": "page_number",
1159
+ "bbox": [
1160
+ 0.478,
1161
+ 0.929,
1162
+ 0.524,
1163
+ 0.941
1164
+ ],
1165
+ "angle": 0,
1166
+ "content": "14571"
1167
+ }
1168
+ ],
1169
+ [
1170
+ {
1171
+ "type": "title",
1172
+ "bbox": [
1173
+ 0.115,
1174
+ 0.085,
1175
+ 0.367,
1176
+ 0.1
1177
+ ],
1178
+ "angle": 0,
1179
+ "content": "A Abbreviation Definitions"
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "bbox": [
1184
+ 0.114,
1185
+ 0.11,
1186
+ 0.49,
1187
+ 0.143
1188
+ ],
1189
+ "angle": 0,
1190
+ "content": "This section provides the definitions for abbreviations used throughout the paper."
1191
+ },
1192
+ {
1193
+ "type": "table",
1194
+ "bbox": [
1195
+ 0.134,
1196
+ 0.153,
1197
+ 0.472,
1198
+ 0.285
1199
+ ],
1200
+ "angle": 0,
1201
+ "content": "<table><tr><td colspan=\"2\">Definition</td></tr><tr><td colspan=\"2\">Subsets</td></tr><tr><td>Ful+Sin</td><td>Subset using all the single-round questions.</td></tr><tr><td colspan=\"2\">Metrics</td></tr><tr><td>Acc</td><td>Accuracy.</td></tr><tr><td>Prec</td><td>Precision.</td></tr><tr><td>Rec</td><td>Recall.</td></tr><tr><td>PF</td><td>Personality Fidelity.</td></tr><tr><td>MR</td><td>Motivation Recognition.</td></tr></table>"
1202
+ },
1203
+ {
1204
+ "type": "table_caption",
1205
+ "bbox": [
1206
+ 0.115,
1207
+ 0.294,
1208
+ 0.486,
1209
+ 0.309
1210
+ ],
1211
+ "angle": 0,
1212
+ "content": "Table 4: Abbreviation and its corresponding definition."
1213
+ },
1214
+ {
1215
+ "type": "title",
1216
+ "bbox": [
1217
+ 0.115,
1218
+ 0.337,
1219
+ 0.329,
1220
+ 0.354
1221
+ ],
1222
+ "angle": 0,
1223
+ "content": "B Psychological Scales"
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "bbox": [
1228
+ 0.113,
1229
+ 0.363,
1230
+ 0.49,
1231
+ 0.653
1232
+ ],
1233
+ "angle": 0,
1234
+ "content": "Big Five Inventory The BFI serves as a prominent instrument for assessing personality dimensions. This model, often encapsulated by the acronym \"OCEAN,\" encompasses five critical traits: (1) Openness to Experience \\((O)\\), which highlights a person's curiosity, inventiveness, and appreciation for art, emotion, adventure, and novel concepts. (2) Conscientiousness \\((C)\\), indicating how much an individual exhibits organization, reliability, and responsibility. (3) Extraversion \\((E)\\), denoting the level to which a person is sociable and energized by interactions with others. (4) Agreeableness \\((A)\\), assessing an individual's kindness, empathy, and ability to cooperate with others. (5) Neuroticism \\((N)\\), gauging the tendency of an individual to experience negative feelings such as anxiety, anger, and sadness, as opposed to being more emotionally resilient and less stress-susceptible."
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "bbox": [
1239
+ 0.113,
1240
+ 0.662,
1241
+ 0.49,
1242
+ 0.92
1243
+ ],
1244
+ "angle": 0,
1245
+ "content": "Eysenck Personality Questionnaire (Revised) The Revised Eysenck Personality Questionnaire (EPQ-R) serves as a psychological instrument for gauging distinct personality trait variances in individuals. It identifies three principal traits: (1) Extraversion \\((E)\\), which assesses whether a person tends to be more sociable, energetic, and outgoing as opposed to being introverted, quiet, and reserved. (2) Neuroticism \\((N)\\), which gauges emotional steadiness. These dimensions (i.e., E and N) share similarities with those found in the BFI. (3) Psychoticism \\((P)\\), which is indicative of a person's inclination towards solitude, a lack of empathy, and a propensity for aggression or a tough-minded attitude. This trait is crucial to understand as indicative of personality characteristics rather than"
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "bbox": [
1250
+ 0.508,
1251
+ 0.085,
1252
+ 0.885,
1253
+ 0.182
1254
+ ],
1255
+ "angle": 0,
1256
+ "content": "serious mental health conditions. (4) Beyond these primary scales, the EPQ-R also incorporates a Ly-ing Scale \\((L)\\) intended to identify responses aimed at social desirability. This scale evaluates the extent to which an individual may attempt to portray themselves in a more favorable light."
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "bbox": [
1261
+ 0.508,
1262
+ 0.202,
1263
+ 0.886,
1264
+ 0.46
1265
+ ],
1266
+ "angle": 0,
1267
+ "content": "Dark Triad Dirty Dozen The DTDD is identified as a brief, 12-item measure crafted to evaluate the trio of principal personality characteristics known as the Dark Triad, encompassing: (1) Narcissism \\((N)\\), characterized by an exaggerated sense of one's own significance, an obsession with dreams of boundless success, and a craving for undue admiration. (2) Machiavellianism \\((M)\\), indicative of a deceitful approach in social interactions and a skeptical indifference to ethical principles. (3) Psychopathy \\((P)\\), which includes tendencies towards impulsiveness, a deficiency in empathy, and hostile relations with others. These Dark Triad personality dimensions are typically viewed as the antithesis of the characteristics measured by the BFI or the EPQ-R, which represent \"Light\" traits."
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "bbox": [
1272
+ 0.508,
1273
+ 0.481,
1274
+ 0.885,
1275
+ 0.706
1276
+ ],
1277
+ "angle": 0,
1278
+ "content": "The NERIS Type Explorer The 16Personalities utilizes the acronym format introduced by Myers-Briggs for its simplicity and convenience, with an additional letter to accommodate five rather than four scales. However, unlike Myers-Briggs or other theories based on the Jungian model, the incorporation of Jungian concepts such as cognitive functions, or their prioritization, has not been undertaken. Instead, they rework and rebalance the dimensions of personality in the BFI personality traits. The personality types are based on five independent spectrums, with all letters in the type code (e.g., INFJ-A) referring to one of the two sides of the corresponding spectrum."
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "bbox": [
1283
+ 0.508,
1284
+ 0.727,
1285
+ 0.885,
1286
+ 0.919
1287
+ ],
1288
+ "angle": 0,
1289
+ "content": "Bem's Sex Role Inventory The BSRI assesses the degree to which individuals identify with traditionally masculine and feminine characteristics. Rather than focusing on behaviors, such as participation in sports or cooking, this tool evaluates psychological characteristics, including assertiveness and gentleness. Participants are divided into four groups based on whether their average scores exceed the median for each component. These groups are designated as Masculine (M: Yes; F: No), Feminine (M: No; F: Yes), Androgynous (M: Yes; F: Yes), and Undifferentiated (M: No; F: No)."
1290
+ },
1291
+ {
1292
+ "type": "page_number",
1293
+ "bbox": [
1294
+ 0.478,
1295
+ 0.928,
1296
+ 0.526,
1297
+ 0.941
1298
+ ],
1299
+ "angle": 0,
1300
+ "content": "14572"
1301
+ }
1302
+ ],
1303
+ [
1304
+ {
1305
+ "type": "text",
1306
+ "bbox": [
1307
+ 0.117,
1308
+ 0.083,
1309
+ 0.491,
1310
+ 0.323
1311
+ ],
1312
+ "angle": 0,
1313
+ "content": "Comprehensive Assessment of Basic Interests The CABIN provides an exhaustive evaluation for identifying 41 essential dimensions of vocational interest. Following this evaluation, the researchers introduce a model of interest consisting of eight dimensions, named SETPOINT. This model includes dimensions such as Health Science, Creative Expression, Technology, People, Organization, Influence, Nature, and Things. These core dimensions are also adaptable to a six-dimension framework, which is prevalently recognized within the interest research community. This framework aligns with Holland's RIASEC model, which features the dimensions: Realistic, Investigate, Artistic, Social, Enterprising, and Conventional."
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "bbox": [
1318
+ 0.113,
1319
+ 0.336,
1320
+ 0.487,
1321
+ 0.496
1322
+ ],
1323
+ "angle": 0,
1324
+ "content": "Implicit Culture Belief The ICB scale measures the extent to which individuals think a person's ethnic culture influences their development. Scoring higher on this scale indicates a firm belief that a person's ethnic culture is the main factor shaping their identity, values, and perspective on the world. On the other hand, a lower score on the scale denotes a belief in the ability of an individual to shape their own identity through hard work, commitment, and education."
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "bbox": [
1329
+ 0.113,
1330
+ 0.508,
1331
+ 0.487,
1332
+ 0.732
1333
+ ],
1334
+ "angle": 0,
1335
+ "content": "Experiences in Close Relationships (Revised) The ECR-R is a self-assessment tool crafted to gauge variations in adult attachment styles, particularly within the realm of romantic relationships. As an enhanced iteration of the original ECR scale, the ECR-R introduces refinements in quantifying attachment tendencies. It assesses two primary aspects: (1) Attachment Anxiety indicates the degree to which a person fears rejection or abandonment by their romantic partners. (2) Attachment Avoidance assesses the degree to which a person prefers to keep emotional and physical distance from their partners, often stemming from unease with closeness or reliance."
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "bbox": [
1340
+ 0.113,
1341
+ 0.743,
1342
+ 0.487,
1343
+ 0.919
1344
+ ],
1345
+ "angle": 0,
1346
+ "content": "General Self-Efficacy The GSE Scale evaluates a person's confidence in their capacity to address diverse demanding situations in life. This confidence, known as \"self-efficacy,\" plays a pivotal role in social cognitive theory and is associated with numerous health outcomes, motivational levels, and performance measures. An elevated score on this scale indicates a person's strong belief in their ability to confront and manage challenging circumstances, undertake new or complex tasks, and navigate through the resultant difficulties. On"
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "bbox": [
1351
+ 0.509,
1352
+ 0.085,
1353
+ 0.882,
1354
+ 0.165
1355
+ ],
1356
+ "angle": 0,
1357
+ "content": "the flip side, a lower score on the scale suggests a lack of self-assurance in handling challenges, rendering individuals more susceptible to experiencing helplessness, anxiety, or engaging in avoidance behaviors when encountering hardships."
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "bbox": [
1362
+ 0.509,
1363
+ 0.177,
1364
+ 0.884,
1365
+ 0.37
1366
+ ],
1367
+ "angle": 0,
1368
+ "content": "Life Orientation Test (Revised) The LOT-R is designed to assess variations in optimism and pessimism among individuals. It includes ten questions, with an interesting aspect being that only six of these questions contribute to the test's score. The other four are designed as filler items, cleverly integrated to obscure the test's primary focus. Within the scored questions, equal numbers are dedicated to evaluating optimism and pessimism—three for each. A tendency towards higher scores in optimism and lower in pessimism signifies a predominantly optimistic outlook."
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "bbox": [
1373
+ 0.509,
1374
+ 0.382,
1375
+ 0.884,
1376
+ 0.623
1377
+ ],
1378
+ "angle": 0,
1379
+ "content": "Love of Money Scale The LMS evaluates the perspectives and feelings of people regarding money. This tool aims to quantify the degree to which people perceive money as a symbol of power, success, and liberty, along with its significance in influencing behaviors and choices. The LMS identifies three key dimensions: (1) Rich reflects the degree to which people link money with success and accomplishment. (2) Motivator determines the extent to which money serves as an incentive in someone's life, i.e., how much individuals are motivated by monetary rewards in their decisions and behaviors. (3) Important assesses the level of importance people attribute to money, affecting their principles, objectives, and perspective of the world."
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "bbox": [
1384
+ 0.509,
1385
+ 0.635,
1386
+ 0.884,
1387
+ 0.794
1388
+ ],
1389
+ "angle": 0,
1390
+ "content": "Emotional Intelligence Scale The EIS serves as a self-assessment tool for evaluating multiple aspects of emotional intelligence. This instrument emphasizes various elements of emotional intelligence, notably the perception, management, and application of emotions. It is extensively utilized in the field of psychology to investigate how emotional intelligence influences different outcomes, including personal well-being, professional performance, and social interactions."
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "bbox": [
1395
+ 0.509,
1396
+ 0.807,
1397
+ 0.884,
1398
+ 0.919
1399
+ ],
1400
+ "angle": 0,
1401
+ "content": "Wong and Law Emotional Intelligence Scale Similar to EIS, the WLEIS is also a self-report instrument designed for evaluating emotional intelligence. However, it distinctly includes four subscales that represent the primary aspects of emotional intelligence: (1) Self-emotion appraisal (SEA) focuses on an individual's proficiency in"
1402
+ },
1403
+ {
1404
+ "type": "page_number",
1405
+ "bbox": [
1406
+ 0.478,
1407
+ 0.929,
1408
+ 0.525,
1409
+ 0.941
1410
+ ],
1411
+ "angle": 0,
1412
+ "content": "14573"
1413
+ }
1414
+ ],
1415
+ [
1416
+ {
1417
+ "type": "text",
1418
+ "bbox": [
1419
+ 0.113,
1420
+ 0.085,
1421
+ 0.49,
1422
+ 0.228
1423
+ ],
1424
+ "angle": 0,
1425
+ "content": "identifying and understanding their emotions. (2) Others' emotion appraisal (OEA) is about the skill of recognizing and comprehending the emotions of others. (3) Use of emotion (UOE) deals with the ability to employ emotions to aid various mental processes, like reasoning and problem-solving. (4) Regulation of emotion (ROE) is concerned with the ability to control and adjust emotions within oneself and in others."
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "bbox": [
1430
+ 0.113,
1431
+ 0.242,
1432
+ 0.491,
1433
+ 0.388
1434
+ ],
1435
+ "angle": 0,
1436
+ "content": "Empathy Scale Empathy, defined as the capacity to perceive and resonate with the emotions of another, is traditionally divided into cognitive and emotional empathy. Cognitive empathy, also known as \"perspective-taking,\" entails the mental faculty to identify and comprehend the thoughts, beliefs, or feelings of someone else. Conversely, emotional empathy involves the vicarious experience of the emotions felt by another individual."
1437
+ },
1438
+ {
1439
+ "type": "table",
1440
+ "bbox": [
1441
+ 0.116,
1442
+ 0.4,
1443
+ 0.497,
1444
+ 0.466
1445
+ ],
1446
+ "angle": 0,
1447
+ "content": "<table><tr><td>16P.</td><td>BFI</td><td>BSRI</td><td>CABIN</td><td>DTDD</td><td>ECR-R</td><td>EIS</td></tr><tr><td>60</td><td>44</td><td>60</td><td>164</td><td>12</td><td>36</td><td>33</td></tr><tr><td>Emp.</td><td>EPQ-R</td><td>GSE</td><td>ICB</td><td>LMS</td><td>LOT-R</td><td>WLEIS</td></tr><tr><td>10</td><td>100</td><td>10</td><td>8</td><td>9</td><td>10</td><td>16</td></tr></table>"
1448
+ },
1449
+ {
1450
+ "type": "table_caption",
1451
+ "bbox": [
1452
+ 0.114,
1453
+ 0.474,
1454
+ 0.488,
1455
+ 0.504
1456
+ ],
1457
+ "angle": 0,
1458
+ "content": "Table 5: The question numbers of each scale. 16P refers to 16Personality and Emp. refers to Empathy."
1459
+ },
1460
+ {
1461
+ "type": "title",
1462
+ "bbox": [
1463
+ 0.115,
1464
+ 0.535,
1465
+ 0.327,
1466
+ 0.551
1467
+ ],
1468
+ "angle": 0,
1469
+ "content": "C Character Selection"
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "bbox": [
1474
+ 0.113,
1475
+ 0.564,
1476
+ 0.49,
1477
+ 0.658
1478
+ ],
1479
+ "angle": 0,
1480
+ "content": "In selecting the dataset characters, we considered the origins of the characters and aimed to maximize the diversity and breadth of distribution. The chosen range encompasses characters from various works, including animations, movies, TV series, and more."
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "bbox": [
1485
+ 0.113,
1486
+ 0.661,
1487
+ 0.49,
1488
+ 0.886
1489
+ ],
1490
+ "angle": 0,
1491
+ "content": "For training set, we ultimately selected 30 RoleLLM characters and 16 ChatHaruhi characters. The list of selected characters includes:James Bond, ayaka, Raj, Andrew Detmer, Jigsaw, Jordan Belfort, Luna, Logan, Oliver Queen, Judy Hoops, John Keating, McGonagall, Sheldon, wanderer, Jeff Spicoli, James Brown, zhongli, Jim Morrison, Dumbledore, Stephen Hawking, raidenShogun, Snape, John Doe, Peter Parker, Jackie Moon, Blair Waldorf, haruhi, Bruno Antony, Wade Wilson, Judge Dredd, Malfoy, Hermione, Harry, Jack Sparrow, Ron, Po, Gaston, Fletcher Reede, Po, hutao, Klaus Mikaelson, Dr. Hannibal Lecter, Gregory House, Doctor Who, HAL 9000, Caesar, Benjamin Button."
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "bbox": [
1496
+ 0.113,
1497
+ 0.888,
1498
+ 0.49,
1499
+ 0.919
1500
+ ],
1501
+ "angle": 0,
1502
+ "content": "The test Characters are: Twilight Sparkle, Shrek, Michael Scott, The Dude, Lucifer Morningstar,"
1503
+ },
1504
+ {
1505
+ "type": "text",
1506
+ "bbox": [
1507
+ 0.508,
1508
+ 0.085,
1509
+ 0.885,
1510
+ 0.116
1511
+ ],
1512
+ "angle": 0,
1513
+ "content": "Walt Kowalski, Thor, Rorschach, Lestat de Lioncourt."
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "bbox": [
1518
+ 0.508,
1519
+ 0.118,
1520
+ 0.885,
1521
+ 0.199
1522
+ ],
1523
+ "angle": 0,
1524
+ "content": "We selected characters from a wide variety of sources, covering a broad spectrum of personality types to ensure a well-distributed representation. We demonstrate the 16Personality of characters in table 6"
1525
+ },
1526
+ {
1527
+ "type": "table",
1528
+ "bbox": [
1529
+ 0.58,
1530
+ 0.211,
1531
+ 0.816,
1532
+ 0.372
1533
+ ],
1534
+ "angle": 0,
1535
+ "content": "<table><tr><td>INTJ</td><td>INTP</td><td>INFJ</td><td>INFP</td></tr><tr><td>5</td><td>1</td><td>4</td><td>3</td></tr><tr><td>ISTJ</td><td>ISTP</td><td>ISFJ</td><td>ISFP</td></tr><tr><td>4</td><td>2</td><td>1</td><td>3</td></tr><tr><td>ENTJ</td><td>ENTP</td><td>ENFJ</td><td>ENFP</td></tr><tr><td>2</td><td>5</td><td>1</td><td>4</td></tr><tr><td>ESTJ</td><td>ESTP</td><td>ESFJ</td><td>ESFP</td></tr><tr><td>4</td><td>2</td><td>1</td><td>4</td></tr></table>"
1536
+ },
1537
+ {
1538
+ "type": "table_caption",
1539
+ "bbox": [
1540
+ 0.535,
1541
+ 0.381,
1542
+ 0.856,
1543
+ 0.396
1544
+ ],
1545
+ "angle": 0,
1546
+ "content": "Table 6: The personality of selected characters."
1547
+ },
1548
+ {
1549
+ "type": "title",
1550
+ "bbox": [
1551
+ 0.509,
1552
+ 0.434,
1553
+ 0.832,
1554
+ 0.452
1555
+ ],
1556
+ "angle": 0,
1557
+ "content": "D Multi-turn Dialogue Consistency"
1558
+ },
1559
+ {
1560
+ "type": "text",
1561
+ "bbox": [
1562
+ 0.507,
1563
+ 0.463,
1564
+ 0.885,
1565
+ 0.771
1566
+ ],
1567
+ "angle": 0,
1568
+ "content": "To evaluate the ability of models trained on different role-playing datasets in multi-turn dialogue, we assess the personality consistency of its responses across multiple conversational rounds. Specifically, we conduct five rounds of interactions, with the model providing responses to one scale-based question per round. Consistency in evaluations across these rounds reflects the model's robustness in maintaining personality traits throughout the dialogue. We calculate the scores for each personality dimension in all five rounds, compute the standard deviation for each dimension, and then average these standard deviations across all dimensions. The overall performance is quantified by this final average, with lower scores indicating greater consistency in multi-turn dialogue. The result is demonstrated in table 7, the model fine-tuned with ROLEPERSONALITY exhibits higher personality concitency during multi-turn dialogues."
1569
+ },
1570
+ {
1571
+ "type": "table",
1572
+ "bbox": [
1573
+ 0.565,
1574
+ 0.783,
1575
+ 0.83,
1576
+ 0.861
1577
+ ],
1578
+ "angle": 0,
1579
+ "content": "<table><tr><td>Dataset</td><td>16 Perosnality</td><td>BFI</td></tr><tr><td>-</td><td>13.697</td><td>0.4020</td></tr><tr><td>RolePersonality</td><td>12.796</td><td>0.3365</td></tr><tr><td>RoleBench</td><td>15.060</td><td>0.4572</td></tr><tr><td>CharacterLLM</td><td>14.428</td><td>0.4415</td></tr></table>"
1580
+ },
1581
+ {
1582
+ "type": "table_caption",
1583
+ "bbox": [
1584
+ 0.508,
1585
+ 0.87,
1586
+ 0.883,
1587
+ 0.9
1588
+ ],
1589
+ "angle": 0,
1590
+ "content": "Table 7: The average standard deviation of personality assessment during multi-turn dialogues."
1591
+ },
1592
+ {
1593
+ "type": "page_number",
1594
+ "bbox": [
1595
+ 0.478,
1596
+ 0.928,
1597
+ 0.526,
1598
+ 0.941
1599
+ ],
1600
+ "angle": 0,
1601
+ "content": "14574"
1602
+ }
1603
+ ],
1604
+ [
1605
+ {
1606
+ "type": "title",
1607
+ "bbox": [
1608
+ 0.116,
1609
+ 0.084,
1610
+ 0.318,
1611
+ 0.101
1612
+ ],
1613
+ "angle": 0,
1614
+ "content": "E Evaluation Prompt"
1615
+ },
1616
+ {
1617
+ "type": "text",
1618
+ "bbox": [
1619
+ 0.114,
1620
+ 0.11,
1621
+ 0.49,
1622
+ 0.189
1623
+ ],
1624
+ "angle": 0,
1625
+ "content": "We employed various metrics for evaluation. Among them, win-rate and dimensional scoring were directly assessed using a large language model (LLM). The prompts used for these evaluations are listed in Table 8."
1626
+ },
1627
+ {
1628
+ "type": "page_number",
1629
+ "bbox": [
1630
+ 0.478,
1631
+ 0.928,
1632
+ 0.525,
1633
+ 0.941
1634
+ ],
1635
+ "angle": 0,
1636
+ "content": "14575"
1637
+ }
1638
+ ],
1639
+ [
1640
+ {
1641
+ "type": "table",
1642
+ "bbox": [
1643
+ 0.118,
1644
+ 0.091,
1645
+ 0.884,
1646
+ 0.882
1647
+ ],
1648
+ "angle": 0,
1649
+ "content": "<table><tr><td colspan=\"2\">Prompts for Personality Tests</td></tr><tr><td>Win-Rate</td><td>System Instruction: You are a role-playing performance comparison assistant. You should rank the models based on the role characteristics and text quality of their responses. The rankings are then output using Python dictionaries and lists. User Prompt: The models below are to play the role of &quot;role_name&quot;. The role description of &quot;role_name&quot; is &quot;role_description_and Catchphrases&quot;. I need to rank the following models based on the two criteria below: 1. Which one has more pronounced role speaking style, and speaks more in line with the role description. The more distinctive the speaking style, the better. 2. Which one&#x27;s output contains more knowledge and memories related to the role; the richer, the better. (If the question contains reference answers, then the role-specific knowledge and memories are based on the reference answer.) The question provided to each model is: question_dict The respective answers from the models to this question are: list_model_answer_dict Now, based on the above two criteria, please rank the models. Avoid any positional biases and ensure that the order in which the responses are presented does not influence your decision. Do not favor certain model names. Then, use a list containing the model&#x27;s name, its rank, and the reason for its ranking to return the results, i.e., please ensure to use the following format to return the results: [&quot;model&quot;: &lt;model-name&gt;, &quot;reason&quot;: &lt;rank-reason&gt;, &quot;rank&quot;: &lt;model-rank&gt;, &quot;model&quot;: &lt;model-name&gt;, &quot;reason&quot;: &lt;rank-reason&gt;, &quot;rank&quot;: &lt;model-rank&gt;] Your answer must be a valid Python list of dictionaries to ensure I can directly parse it using Python. Do not include any extraneous content! Please provide a ranking that is as accurate as possible and aligns with the intuition of most people.</td></tr><tr><td>Memoriza-tion</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Factual Correctness (1-7): Is the response provides truthful and detailed facts about the character? [Evaluation Steps] 1. Read through the interactions and identify the key points related to the character. 2. Read through the responses of the AI assistant and compare them to the profile. Check if the responses are consistent with the character&#x27;s profile, background, and known facts about the character. 3. Check whether the responses provide detailed facts about the character or if they are generic responses that could apply to any character. Detailed responses are more factual and contribute positively to the score. 4. Rate the performance of the AI on a scale of 1-7 for factual correctness, where 1 is the lowest and 7 is the highest based on the Evaluation Criteria. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Personality</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Personality (1-7): Is the response reflects the personalities and preferences of the character? [Evaluation Steps] 1. Read through the profile and write the personalities and preferences of the real character. 2. Read through the interactions and identify the personalities and preferences of the AI assistant. 3. After having a clear understanding of the interactions, compare the responses to the profile. Look for any consistencies or inconsistencies. Do the responses reflect the character&#x27;s personalities and preferences? 4. Use the given scale from 1-7 to rate how well the response reflects the personalities and preferences of the character. 1 being not at all reflective of the character&#x27;s personalities, and 7 being perfectly reflective of the character&#x27;s personalities. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Values</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Values (1-7): Is the response reflects the values and convictions of the character? [Evaluation Steps] 1. Read through the profile and write the values and convictions of the real character. 2. Read through the interactions and identify the values and convictions of the AI assistant. 3. After having a clear understanding of the interactions, compare the responses to the profile. Look for any consistencies or inconsistencies. Do the responses reflect the character&#x27;s values and convictions? 4. Use the given scale from 1-7 to rate how well the response reflects the values and convictions of the character. 1 being not at all reflective of the character&#x27;s values, and 7 being perfectly reflective of the character&#x27;s values. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Hallucina-tion</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Avoiding Hallucination (1-7): Is the response avoids to say things that the character do not know? [Evaluation Steps] 1. Read through the interactions and identify the knowledge scope of the character. 2. Read through the responses of the AI assistant, find the evidence of knowledge used in the response. 3. Compare the evidence to the profile. Check if the responses are consistent with the character&#x27;s knowledge scope. If some knowledge contradicts to the character&#x27;s identity, given a lower score. Otherwise, assign a higher score. 4. Rate the performance of the AI on a scale of 1-7 for Avoiding Hallucination, where 1 is the lowest and 7 is the highest based on the Evaluation Criteria. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Stability</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Long-term Acting (1-7): Is the assistant maintain a good performance over the long interactions? [Evaluation Steps] 1. Read through the given profile and background information to familiarize yourself with the context and details of the AI assistant named agent_name. 2. Review the interactions provided to see how agent_name responds to various prompts and queries. And evaluate the performance of acting query by query that whether the response reflects the personalities and values of the character. Assign score for each turn. 3. Based on the above assigned scores, does agent_name keep acting like character in the long-term? Evaluate the overall performance of the whole conversation based on the score for each turn. 4. Rate the stability of agent_name on a scale of 1 to 7, with 1 being very poor and 7 being excellent. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr></table>"
1650
+ },
1651
+ {
1652
+ "type": "table_caption",
1653
+ "bbox": [
1654
+ 0.388,
1655
+ 0.891,
1656
+ 0.609,
1657
+ 0.905
1658
+ ],
1659
+ "angle": 0,
1660
+ "content": "Table 8: Prompts for evaluation."
1661
+ },
1662
+ {
1663
+ "type": "page_number",
1664
+ "bbox": [
1665
+ 0.478,
1666
+ 0.929,
1667
+ 0.526,
1668
+ 0.941
1669
+ ],
1670
+ "angle": 0,
1671
+ "content": "14576"
1672
+ }
1673
+ ]
1674
+ ]
2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/c7224e54-d8ea-4cd5-997e-67780b3bc8e1_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5999a0e33877091238d0808033e4d4da8f643ad7d2fcacf876cf2fa79e09d65e
3
+ size 666592
2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/full.md ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Capturing Minds, Not Just Words: Enhancing Role-Playing Language Models with Personality-Indicative Data
2
+
3
+ Yiting Ran $^{1}$ , Xintao Wang $^{2}$ , Rui Xu $^{2}$ , Xinfeng Yuan $^{1}$ , Jiaqing Liang $^{1*}$ , Deqing Yang $^{1}$ , Yanghua Xiao $^{2}$
4
+
5
+ $^{1}$ School of Data Science, Fudan University
6
+
7
+ $^{2}$ School of Computer Science, Fudan University
8
+
9
+ {ytran23,xtwang21,ruixu21,xfyuan23}@m.fudan.edu.cn
10
+
11
+ {liangjiaqing, yangdeqing, shawyh}@fudan.edu.cn
12
+
13
+ # Abstract
14
+
15
+ Role-playing agents (RPA) have been a popular application area for large language models (LLMs), attracting significant interest from both industry and academia. While existing RPAs well portray the characters' knowledge and tones, they face challenges in capturing their minds, especially for small role-playing language models (RPLMs). In this paper, we propose to enhance RPLMs via personality-indicative data. Specifically, we leverage questions from psychological scales and distill advanced RPAs to generate dialogues that grasp the minds of characters. Experimental results validate that RPLMs trained with our dataset exhibit advanced role-playing capabilities for both general and personality-related evaluations. Code and data are available at https://github.com/alienet1109/RolePersonality.
16
+
17
+ # 1 Introduction
18
+
19
+ With the rise of large language models (LLMs), role-playing agents (RPAs) have emerged as a widely focused field of application, which attracts significant research interest as well (Chen et al., 2024). Based on LLMs, RPAs simulate the behavior and speech patterns of specific characters (Li et al., 2023; Wang et al., 2024b). Increasing efforts have been made to build specialized LLMs for RPAs, i.e., role-playing language models (RPLMs) (Zhou et al., 2023), typically via constructing role-playing datasets. These datasets aim to capture the key elements of role-playing and faithfully recreate character traits.
20
+
21
+ While existing RPLMs well replicate the knowledge and tone of the intended characters, they struggle to capture their minds, in tasks such as personality assessment (Wang et al., 2024a) and decision simulation (Xu et al., 2024). This is partly because existing role-playing datasets focus on character knowledge and tones (Wang et al., 2024b; Shao
22
+
23
+ et al., 2023). However, capturing characters' minds is crucial for developing authentic RPAs.
24
+
25
+ In this paper, we propose to develop RPLMs via personality-indicative data. Specifically, we collect these data through questions from psychological scales. These scale questions are designed to quickly capture broad aspects of personality traits in individuals. Hence, we leverage advanced RPAs for the distillation of knowledge from them. Then, we apply these data to develop RPLMs that better capture the minds of the intended characters.
26
+
27
+ Specifically, we construct a dataset $\mathsf{R}\mathsf{o}\mathsf{L}\mathsf{E}\mathsf{P}\mathsf{E}\mathsf{R}$ PERSONALITY based on questions from 14 different psychological scales, including both single-round and multi-round data, inspired by InCharacter (Wang et al., 2024a). Following the dataset generation, we apply a filtering process using human-annotated personality labels for the selected characters.
28
+
29
+ We apply ROLEPERSONALITY to fine-tune RPLMs and evaluate them from three aspects, including personality fidelity (Wang et al., 2024a), motivation recognition (Yuan et al., 2024) and general role-playing benchmarks (Shao et al., 2023; Wang et al., 2024b). The results demonstrate that RPLMs fine-tuned with our dataset show improved capabilities in both personality-related and general evaluations.
30
+
31
+ The main contributions of this paper are summarized as threefold:
32
+
33
+ 1. We propose to develop RPLMs with personality-indicative data to enable them to better capture the minds of the characters.
34
+ 2. We construct ROLEPERSONALITY, a comprehensive dataset based on questions from 14 psychological scales, encompassing both single-turn and multi-turn dialogues.
35
+ 3. Experimental results show that RPLMs finetuned with ROLEPERSONALITY achieve refined performance in both personality-related
36
+
37
+ and general RPA evaluations, validating the effectiveness of ROLEPERSONALITY.
38
+
39
+ # 2 Related Work
40
+
41
+ # 2.1 Role-Playing Language Models
42
+
43
+ The key for developing RPLMs is building a roleplaying dataset. The collection methods can be roughly divided into the following two categories.
44
+
45
+ Experience Extraction This method refers to extracting dialogues and other information from original works such as novels, TV shows, and other media (Li et al., 2023; Yuan et al., 2024).
46
+
47
+ Dialogue Synthesis This method utilizes LLMs for generating conversations or human annotations to build and augment datasets. The topics come from the corresponding literature (Shao et al., 2023), general task instructions (Wang et al., 2024b), and special scenarios such as personality tests (Wang et al., 2024a).
48
+
49
+ # 2.2 Construction of Role-Playing Agents
50
+
51
+ Based on character role-playing datasets, RPAs can be constructed in two ways: training or prompting.
52
+
53
+ Parametric Learning This approach fine-tunes a base model using existing or custom role-playing datasets. Shao et al. (2023); Yu et al. (2024) enhance foundation models with improved roleplaying abilities using datasets featuring a variety of characters and scenarios. Zhou et al. (2023); Wang et al. (2024b) tailor LLMs to role-play specific characters.
54
+
55
+ Non-Parametric Learning For more in-depth role-playing of a specific character, many efforts have focused on character-level engineering (Zhou et al., 2023; Wang et al., 2024b). They collect and process character-related data from the corresponding sources, including collecting profile from Wikipedia (Shao et al., 2023). Typically, they add long-term memory to retrieve knowledge about the character based on similarity with the user's query (Li et al., 2023).
56
+
57
+ # 3 Method
58
+
59
+ # 3.1 Dataset Construction
60
+
61
+ To simulate the deep thoughts underlying the characters, we generate persona-indicative data by utilizing psychological scale questions, inspired by InCharacter (Wang et al., 2024a). In practice, we
62
+
63
+ construct an RPA by pairing the RPLM with descriptions and the memory base of the target character (Li et al., 2023). RPAs are then engaged with open-ended questions derived from established psychological scales. These questions are designed to elicit the character's mindset and behaviors in various scenarios. The questions were adapted from well-known psychological scales such as the Big Five Inventory (BFI) and 16Personalities. For more details, refer to Sec. B. We start by rewriting psychological scale questions and implementing a selection process to refine the data.
64
+
65
+ Filtering Mechanism After generating the responses, we implement a filtering process based on the results of the personality assessment. This involves assessing the generated responses to ensure that they align with the intended character's personality traits. The ground truth comes from human annotations. Responses inconsistent with the character's personality were discarded to maintain the quality and consistency of the dataset.
66
+
67
+ <table><tr><td>Subset</td><td>#Questions</td><td>#Turns</td><td>#Samples</td></tr><tr><td>Full+Single</td><td>1092</td><td>1</td><td>32089</td></tr><tr><td>Part+Single</td><td>646</td><td>1</td><td>22489</td></tr><tr><td>Part+Multi</td><td>646</td><td>5</td><td>32767</td></tr></table>
68
+
69
+ Table 1: We develop three sub-datasets to evaluate the impact of the screening scale and the addition of multi-round data on the performance of the RPLMs.
70
+
71
+ Scale Selection Our scales are sourced from psychological scales (Bem, 1981; Barrick and Mount, 1991), utilizing the questions rewritten by InCharacter (Wang et al., 2024a). However, not all scales are closely related to character personalities. We carefully selected a subset of these scales that best reflect character personality traits, forming the subset Part. The entire set of selected scales constitutes the subset Full.
72
+
73
+ Question Selection Not all questions are suitable for all characters. A question that violates the character's background may induce hallucinations. As a result, we judge whether the question is suitable for the character by llm. Then we exclude questions that do not fit the character's background.
74
+
75
+ Multi-Turn Dialogue We incorporate multi-turn dialogues to maintain conversation consistency and enhance the model's contextual understanding. We select questions from different dimensions within
76
+
77
+ ![](images/ee56c23ff72b2bb9d5986ac361c774d0bd3aea75ec220431caa3f8f2db0ca3b5.jpg)
78
+ Figure 1: The framework of building and utilizing ROLEPERSONALITY. First, we obtain ROLEPERSONALITY by distilling advanced RPAs using scale questions. Then, we train RPLMs on ROLEPERSONALITY to enhance their ability to capture characters' minds.
79
+
80
+ the same scale. These multi-turn data form subset Multi. The subset consisting of only single-turn data is classified as subset Single.
81
+
82
+ # 3.2 Dataset Statistics
83
+
84
+ Based on this idea, we construct ROLEPERSONALITY consisting of three subsets using interviews conducted by the gpt-3.5-turbo. Our dataset includes 16 characters from ChatHaruhi and 30 English characters from RoleLLM. The details of our dataset are provided in Table 1.
85
+
86
+ # 4 Experiment
87
+
88
+ # 4.1 Settings
89
+
90
+ Fine-tuning We employ LoRA tuning (Hu et al., 2021) for supervised fine-tuning the Mistral-7Bv0.2-Chat (Jiang et al., 2023). The model is finetuned for 3 epochs with LoRA rank set to 8.
91
+
92
+ Baseline To compare the effectiveness of different datasets, we fine-tune the model with the same settings in three subsets of ROLEPERSONALITY (Full+Single, Part+Single, Part+Multi), the dataset introduced by CharacterLLM(Shao et al., 2023) and RoleBench(Wang et al., 2024b). For each dataset, we select approximately 20,000 samples for fine-tuning, keeping the data size about the same. These models, along with the original mistral-7B and gpt-3.5-turbo-0301, are subsequently evaluated to assess their performance.
93
+
94
+ Evaluation Protocols After fine-tuning, we conduct experiments on three benchmarks to comprehensively assess their performance: 1) Personality Fidelity We evaluate whether the model accurately reflects the character's personality; 2) Motivation
95
+
96
+ Recognition (MR) We test the model's ability to learn and represent the character's motivations; 3) General Ability We apply three metrics adopted by previous researches (Wang et al., 2024b; Shao et al., 2023) to comprehensively evaluate RPLM's role-playing ability, such as character conformity. All evaluations involving LLMs are conducted by gpt-3.5-turbo-0301 with temperature set to 0.
97
+
98
+ <table><tr><td rowspan="2">Dataset</td><td colspan="2">PF</td><td>MR</td></tr><tr><td>Single Acc.</td><td>Full Acc.</td><td>Acc.</td></tr><tr><td colspan="4">gpt-3.5-turbo</td></tr><tr><td>-</td><td>70.27</td><td>48.35</td><td>64.52</td></tr><tr><td colspan="4">mistral-7B</td></tr><tr><td>-</td><td>70.01</td><td>46.85</td><td>34.62</td></tr><tr><td>RoleBench</td><td>67.58</td><td>45.47</td><td>33.28</td></tr><tr><td>CharacterLLM</td><td>64.45</td><td>39.65</td><td>33.54</td></tr><tr><td colspan="4">RolePersonality</td></tr><tr><td>Ful+Sin</td><td>72.10</td><td>49.15</td><td>44.54</td></tr><tr><td>Par+Sin</td><td>70.97</td><td>49.08</td><td>40.02</td></tr><tr><td>Par+Mul</td><td>71.36</td><td>48.42</td><td>40.04</td></tr></table>
99
+
100
+ Table 2: The accuracy of Personality Fidelity $(\%)$ and Motivation Recognition $(\%)$ . Single Acc. refers to the average accuracy for individual dimensions. Full Acc. refers to the overall accuracy across the entire scale.
101
+
102
+ # 4.2 Personality Fidelity (PF)
103
+
104
+ We use LLMs to judge the character's personality based on the model's responses to personality scale questions and compare the judgments with the ground truth, which was determined by human annotators. We selected eight test characters from the dataset proposed by InCharacter (Wang et al., 2024a). All data related to these test characters are excluded from the training set to ensure unbiased
105
+
106
+ <table><tr><td rowspan="2">Dataset</td><td colspan="3">Direct Scoring</td><td colspan="4">Dimensional Scoring</td></tr><tr><td>Rouge-L</td><td>Win Rate</td><td>Memorization</td><td>Personality</td><td>Values</td><td>Stability</td><td>Hallucination</td></tr><tr><td colspan="8">gpt-3.5-turbo</td></tr><tr><td>-</td><td>0.202</td><td>48.02</td><td>6.098</td><td>6.769</td><td>6.645</td><td>6.160</td><td>6.803</td></tr><tr><td colspan="8">mistral-7B</td></tr><tr><td>-</td><td>0.183</td><td>30.50</td><td>6.161</td><td>6.642</td><td>6.500</td><td>6.081</td><td>6.858</td></tr><tr><td>RoleBench</td><td>0.238</td><td>14.10</td><td>6.136</td><td>6.640</td><td>6.626</td><td>6.081</td><td>6.844</td></tr><tr><td>CharacterLLM</td><td>0.235</td><td>26.92</td><td>6.149</td><td>6.646</td><td>6.586</td><td>6.069</td><td>6.767</td></tr><tr><td colspan="8">RolePersonality</td></tr><tr><td>Ful+Sin</td><td>0.216</td><td>36.56</td><td>6.290</td><td>6.767</td><td>6.719</td><td>6.175</td><td>6.886</td></tr><tr><td>Par+Sin</td><td>0.208</td><td>38.75</td><td>6.243</td><td>6.754</td><td>6.693</td><td>6.154</td><td>6.805</td></tr><tr><td>Par+Mul</td><td>0.207</td><td>43.89</td><td>6.185</td><td>6.728</td><td>6.675</td><td>6.122</td><td>6.842</td></tr></table>
107
+
108
+ Table 3: Performance of RPLMs on General Role-Playing Benchmarks, including Rouge-L and Win-rate for direct scoring, and five-dimensional scoring to assess role-playing proficiency.
109
+
110
+ evaluation. This metric provides a comprehensive assessment of the model's ability to accurately reflect the holistic personality traits of a character.
111
+
112
+ The results are shown in Table 7. The overall personality fidelity of the trained model has improved. Moreover, models fine-tuned with the other two datasets performed worse compared to the untrained Mistral model. This may be because these datasets focus on character knowledge rather than adequately reflecting character personality traits.
113
+
114
+ # 4.3 Motivation Recognition (MR)
115
+
116
+ CRoSS (Yuan et al., 2024) introduced a subset of 445 multiple-choice questions generated by gpt-4 to assess the model's ability to capture character motivation. Each question presents a character's decision within a scenario. The accuracy measures the model's capability to understand and simulate character motivations and personality traits.
117
+
118
+ The results are shown in Table 7. Models finetuned with our datasets significantly outperform others, exhibiting a stronger ability to recognize the motivation of characters.
119
+
120
+ # 4.4 General Role-Playing Benchmarks
121
+
122
+ We select the same 8 test characters used in the personality fidelity evaluation for consistency. The tested model generates responses to role-specific questions from the RoleBench (Wang et al., 2024b) dataset. To assess the RPLMs' performance, we adopt evaluation metrics proposed by RoleLLM (Wang et al., 2024b) for direct scoring and CharacterLLM (Shao et al., 2023) for dimensional scoring.
123
+
124
+ # 4.4.1 Direct Scoring
125
+
126
+ We use Rouge-L and Win-rate (Wang et al., 2024b) to evaluate the overall role-playing ability of RPLMs. The Rouge-L score (Lin, 2004) refers to the relevance between model response and ground truth in RoleBench. It provides a robust metric to assess the knowledge about the specific character involved in the model's output. The win-rate is the frequency with which a model's response is judged better than the response of gpt-4. It provides a comparative measure of the model's effectiveness in generating high-quality answers relative to a strong baseline.
127
+
128
+ The result can be checked in Table 3. The models fine-tuned on our datasets show lower Rouge-L scores. For win-rate, Our models' win rate is below only gpt-3.5-turbo, with the model trained on the Part+Single dataset performing the best.
129
+
130
+ # 4.4.2 Dimensional Scoring
131
+
132
+ The models' responses are rated across five dimensions on a scale from 0 to 7 to assess their roleplaying proficiency (Shao et al., 2023). These dimensions are: (1) Memorization: The model's ability to recall relevant information about the character being portrayed, (2) Personality: Ability to the speaking style or the tones. (3) Values: Whether the model can reflect the objectives and values of the target character. (4) Stability: Consistency of a model over a relatively long conversation. (5) Hallucination: Ability to discard knowledge and skills that the character would not have.
133
+
134
+ The results are shown in Table 3. Our models lead in most dimensions, with the only exception being the personality dimension.
135
+
136
+ # 5 Conclusion
137
+
138
+ This paper demonstrates that personality-indicative data helps capture complex character mindsets, thus significantly enhancing the performance of role-playing agents. By constructing ROLEPERSONALITY that captures character personalities, we address the limitations of traditional datasets that focus primarily on character knowledge and linguistic habits. Models fine-tuned on our comprehensive dataset show substantial improvements in role-playing capabilities. This advancement paves the way for constructing role-playing models that can effectively simulate complex character behaviors, leading to more immersive user experiences.
139
+
140
+ # Limitations
141
+
142
+ Despite the promising results, our study has several limitations. First, the dataset used for fine-tuning is entirely constructed by LLMs, which may introduce biases or inaccuracies inherent to the model's training data, potentially affecting the quality and authenticity of the dataset. Second, the interview-based data collection lacks mechanisms to ensure compliance and adherence to expected norms and standards, leading to inconsistencies or deviations that may impact the model's performance. Third, the evaluation of the model's performance primarily relies on automated metrics and LLM-based assessments, with the absence of human evaluation, subtleties and nuances in character portrayal might not be fully captured or assessed. Addressing these limitations in future work could further enhance the robustness and reliability of the developed RPLMs.
143
+
144
+ # Ethics Statement
145
+
146
+ We hereby acknowledge that all authors of this work are aware of the provided ACL Code of Ethics and honor the code of conduct.
147
+
148
+ Risk Our approach to developing Role-Playing Language Models (RPLMs) presents several risks. First, reliance on LLM-generated datasets may perpetuate inherent biases and inaccuracies, leading to unintended behaviors. Second, the lack of compliance mechanisms in interview data can result in inconsistencies, undermining authenticity. Third, the absence of human evaluation means subtle nuances in character portrayal may be missed by automated metrics. Ethical concerns also arise from using psychological scales, especially regarding privacy
149
+
150
+ and appropriate representation. Additionally, overfitting to specific traits in the selected scales may limit the generalizability of models trained on different role-playing datasets. Addressing these risks requires diversifying data sources and incorporating robust evaluation methods, including human assessments.
151
+
152
+ # Acknowledgements
153
+
154
+ This work was supported by the Chinese NSF Major Research Plan(No.92270121). This work originates from InCharacter introduced by Xintao Wang. The role-playing agents are constructed based on Chat-Haruhi-Suzumiya proposed by Cheng Li. We owe thanks to the early contributors. The computations in this research were performed using the CFff platform of Fudan University.
155
+
156
+ # References
157
+
158
+ Murray R Barrick and Michael K Mount. 1991. The big five personality dimensions and job performance: a meta-analysis. Personnel psychology, 44(1):1-26.
159
+ Sandra L Bem. 1981. Bem sex role inventory. Journal of personality and social psychology.
160
+ Jiangjie Chen, Xintao Wang, Rui Xu, Siyu Yuan, Yikai Zhang, Wei Shi, Jian Xie, Shuang Li, Ruihan Yang, Tinghui Zhu, Aili Chen, Nianqi Li, Lida Chen, Caiyu Hu, Siye Wu, Scott Ren, Ziquan Fu, and Yanghua Xiao. 2024. From persona to personalization: A survey on role-playing language agents.
161
+ 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.
162
+ 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, abs/2310.06825.
163
+ Cheng Li, Ziang Leng, Chenxi Yan, Junyi Shen, Hao Wang, Weishi MI, Yaying Fei, Xiaoyang Feng, Song Yan, HaoSheng Wang, Linkang Zhan, Yaokai Jia, Pingyu Wu, and Haozhen Sun. 2023. Chatharuhi: Reviving anime character in reality via large language model.
164
+ Chin-Yew Lin. 2004. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81.
165
+ Yunfan Shao, Linyang Li, Junqi Dai, and Xipeng Qiu. 2023. Character-llm: A trainable agent for roleplaying.
166
+
167
+ Xintao Wang, Yunze Xiao, Jen tse Huang, Siyu Yuan, Rui Xu, Haoran Guo, Quan Tu, Yaying Fei, Ziang Leng, Wei Wang, Jiangjie Chen, Cheng Li, and Yanghua Xiao. 2024a. Incharacter: Evaluating personality fidelity in role-playing agents through psychological interviews.
168
+ Zekun Moore Wang, Zhongyuan Peng, Haoran Que, Jiaheng Liu, Wangchunshu Zhou, Yuhan Wu, Hongcheng Guo, Ruitong Gan, Zehao Ni, Jian Yang, Man Zhang, Zhaoxiang Zhang, Wanli Ouyang, Ke Xu, Stephen W. Huang, Jie Fu, and Junran Peng. 2024b. Rolellm: Benchmarking, eliciting, and enhancing role-playing abilities of large language models.
169
+ Rui Xu, Xintao Wang, Jiangjie Chen, Siyu Yuan, Xinfeng Yuan, Jiaqing Liang, Zulong Chen, Xiaqing Dong, and Yanghua Xiao. 2024. Character is destiny: Can large language models simulate persona-driven decisions in role-playing? arXiv preprint arXiv:2404.12138.
170
+ Xiaoyan Yu, Tongxu Luo, Yifan Wei, Fangyu Lei, Yiming Huang, Peng Hao, and Liehuang Zhu. 2024. Neeko: Leveraging dynamic lora for efficient multi-character role-playing agent. arXiv preprint arXiv:2402.13717.
171
+ Xinfeng Yuan, Siyu Yuan, Yuhan Cui, Tianhe Lin, Xintao Wang, Rui Xu, Jiangjie Chen, and Deqing Yang. 2024. Evaluating character understanding of large language models via character profiling from fictional works.
172
+ Jinfeng Zhou, Zhuang Chen, Dazhen Wan, Bosi Wen, Yi Song, Jifan Yu, Yongkang Huang, Libiao Peng, Jiaming Yang, Xiyao Xiao, et al. 2023. Characterglm: Customizing chinese conversational ai characters with large language models. ArXiv preprint, abs/2311.16832.
173
+
174
+ # A Abbreviation Definitions
175
+
176
+ This section provides the definitions for abbreviations used throughout the paper.
177
+
178
+ <table><tr><td colspan="2">Definition</td></tr><tr><td colspan="2">Subsets</td></tr><tr><td>Ful+Sin</td><td>Subset using all the single-round questions.</td></tr><tr><td colspan="2">Metrics</td></tr><tr><td>Acc</td><td>Accuracy.</td></tr><tr><td>Prec</td><td>Precision.</td></tr><tr><td>Rec</td><td>Recall.</td></tr><tr><td>PF</td><td>Personality Fidelity.</td></tr><tr><td>MR</td><td>Motivation Recognition.</td></tr></table>
179
+
180
+ Table 4: Abbreviation and its corresponding definition.
181
+
182
+ # B Psychological Scales
183
+
184
+ Big Five Inventory The BFI serves as a prominent instrument for assessing personality dimensions. This model, often encapsulated by the acronym "OCEAN," encompasses five critical traits: (1) Openness to Experience $(O)$ , which highlights a person's curiosity, inventiveness, and appreciation for art, emotion, adventure, and novel concepts. (2) Conscientiousness $(C)$ , indicating how much an individual exhibits organization, reliability, and responsibility. (3) Extraversion $(E)$ , denoting the level to which a person is sociable and energized by interactions with others. (4) Agreeableness $(A)$ , assessing an individual's kindness, empathy, and ability to cooperate with others. (5) Neuroticism $(N)$ , gauging the tendency of an individual to experience negative feelings such as anxiety, anger, and sadness, as opposed to being more emotionally resilient and less stress-susceptible.
185
+
186
+ Eysenck Personality Questionnaire (Revised) The Revised Eysenck Personality Questionnaire (EPQ-R) serves as a psychological instrument for gauging distinct personality trait variances in individuals. It identifies three principal traits: (1) Extraversion $(E)$ , which assesses whether a person tends to be more sociable, energetic, and outgoing as opposed to being introverted, quiet, and reserved. (2) Neuroticism $(N)$ , which gauges emotional steadiness. These dimensions (i.e., E and N) share similarities with those found in the BFI. (3) Psychoticism $(P)$ , which is indicative of a person's inclination towards solitude, a lack of empathy, and a propensity for aggression or a tough-minded attitude. This trait is crucial to understand as indicative of personality characteristics rather than
187
+
188
+ serious mental health conditions. (4) Beyond these primary scales, the EPQ-R also incorporates a Ly-ing Scale $(L)$ intended to identify responses aimed at social desirability. This scale evaluates the extent to which an individual may attempt to portray themselves in a more favorable light.
189
+
190
+ Dark Triad Dirty Dozen The DTDD is identified as a brief, 12-item measure crafted to evaluate the trio of principal personality characteristics known as the Dark Triad, encompassing: (1) Narcissism $(N)$ , characterized by an exaggerated sense of one's own significance, an obsession with dreams of boundless success, and a craving for undue admiration. (2) Machiavellianism $(M)$ , indicative of a deceitful approach in social interactions and a skeptical indifference to ethical principles. (3) Psychopathy $(P)$ , which includes tendencies towards impulsiveness, a deficiency in empathy, and hostile relations with others. These Dark Triad personality dimensions are typically viewed as the antithesis of the characteristics measured by the BFI or the EPQ-R, which represent "Light" traits.
191
+
192
+ The NERIS Type Explorer The 16Personalities utilizes the acronym format introduced by Myers-Briggs for its simplicity and convenience, with an additional letter to accommodate five rather than four scales. However, unlike Myers-Briggs or other theories based on the Jungian model, the incorporation of Jungian concepts such as cognitive functions, or their prioritization, has not been undertaken. Instead, they rework and rebalance the dimensions of personality in the BFI personality traits. The personality types are based on five independent spectrums, with all letters in the type code (e.g., INFJ-A) referring to one of the two sides of the corresponding spectrum.
193
+
194
+ Bem's Sex Role Inventory The BSRI assesses the degree to which individuals identify with traditionally masculine and feminine characteristics. Rather than focusing on behaviors, such as participation in sports or cooking, this tool evaluates psychological characteristics, including assertiveness and gentleness. Participants are divided into four groups based on whether their average scores exceed the median for each component. These groups are designated as Masculine (M: Yes; F: No), Feminine (M: No; F: Yes), Androgynous (M: Yes; F: Yes), and Undifferentiated (M: No; F: No).
195
+
196
+ Comprehensive Assessment of Basic Interests The CABIN provides an exhaustive evaluation for identifying 41 essential dimensions of vocational interest. Following this evaluation, the researchers introduce a model of interest consisting of eight dimensions, named SETPOINT. This model includes dimensions such as Health Science, Creative Expression, Technology, People, Organization, Influence, Nature, and Things. These core dimensions are also adaptable to a six-dimension framework, which is prevalently recognized within the interest research community. This framework aligns with Holland's RIASEC model, which features the dimensions: Realistic, Investigate, Artistic, Social, Enterprising, and Conventional.
197
+
198
+ Implicit Culture Belief The ICB scale measures the extent to which individuals think a person's ethnic culture influences their development. Scoring higher on this scale indicates a firm belief that a person's ethnic culture is the main factor shaping their identity, values, and perspective on the world. On the other hand, a lower score on the scale denotes a belief in the ability of an individual to shape their own identity through hard work, commitment, and education.
199
+
200
+ Experiences in Close Relationships (Revised) The ECR-R is a self-assessment tool crafted to gauge variations in adult attachment styles, particularly within the realm of romantic relationships. As an enhanced iteration of the original ECR scale, the ECR-R introduces refinements in quantifying attachment tendencies. It assesses two primary aspects: (1) Attachment Anxiety indicates the degree to which a person fears rejection or abandonment by their romantic partners. (2) Attachment Avoidance assesses the degree to which a person prefers to keep emotional and physical distance from their partners, often stemming from unease with closeness or reliance.
201
+
202
+ General Self-Efficacy The GSE Scale evaluates a person's confidence in their capacity to address diverse demanding situations in life. This confidence, known as "self-efficacy," plays a pivotal role in social cognitive theory and is associated with numerous health outcomes, motivational levels, and performance measures. An elevated score on this scale indicates a person's strong belief in their ability to confront and manage challenging circumstances, undertake new or complex tasks, and navigate through the resultant difficulties. On
203
+
204
+ the flip side, a lower score on the scale suggests a lack of self-assurance in handling challenges, rendering individuals more susceptible to experiencing helplessness, anxiety, or engaging in avoidance behaviors when encountering hardships.
205
+
206
+ Life Orientation Test (Revised) The LOT-R is designed to assess variations in optimism and pessimism among individuals. It includes ten questions, with an interesting aspect being that only six of these questions contribute to the test's score. The other four are designed as filler items, cleverly integrated to obscure the test's primary focus. Within the scored questions, equal numbers are dedicated to evaluating optimism and pessimism—three for each. A tendency towards higher scores in optimism and lower in pessimism signifies a predominantly optimistic outlook.
207
+
208
+ Love of Money Scale The LMS evaluates the perspectives and feelings of people regarding money. This tool aims to quantify the degree to which people perceive money as a symbol of power, success, and liberty, along with its significance in influencing behaviors and choices. The LMS identifies three key dimensions: (1) Rich reflects the degree to which people link money with success and accomplishment. (2) Motivator determines the extent to which money serves as an incentive in someone's life, i.e., how much individuals are motivated by monetary rewards in their decisions and behaviors. (3) Important assesses the level of importance people attribute to money, affecting their principles, objectives, and perspective of the world.
209
+
210
+ Emotional Intelligence Scale The EIS serves as a self-assessment tool for evaluating multiple aspects of emotional intelligence. This instrument emphasizes various elements of emotional intelligence, notably the perception, management, and application of emotions. It is extensively utilized in the field of psychology to investigate how emotional intelligence influences different outcomes, including personal well-being, professional performance, and social interactions.
211
+
212
+ Wong and Law Emotional Intelligence Scale Similar to EIS, the WLEIS is also a self-report instrument designed for evaluating emotional intelligence. However, it distinctly includes four subscales that represent the primary aspects of emotional intelligence: (1) Self-emotion appraisal (SEA) focuses on an individual's proficiency in
213
+
214
+ identifying and understanding their emotions. (2) Others' emotion appraisal (OEA) is about the skill of recognizing and comprehending the emotions of others. (3) Use of emotion (UOE) deals with the ability to employ emotions to aid various mental processes, like reasoning and problem-solving. (4) Regulation of emotion (ROE) is concerned with the ability to control and adjust emotions within oneself and in others.
215
+
216
+ Empathy Scale Empathy, defined as the capacity to perceive and resonate with the emotions of another, is traditionally divided into cognitive and emotional empathy. Cognitive empathy, also known as "perspective-taking," entails the mental faculty to identify and comprehend the thoughts, beliefs, or feelings of someone else. Conversely, emotional empathy involves the vicarious experience of the emotions felt by another individual.
217
+
218
+ <table><tr><td>16P.</td><td>BFI</td><td>BSRI</td><td>CABIN</td><td>DTDD</td><td>ECR-R</td><td>EIS</td></tr><tr><td>60</td><td>44</td><td>60</td><td>164</td><td>12</td><td>36</td><td>33</td></tr><tr><td>Emp.</td><td>EPQ-R</td><td>GSE</td><td>ICB</td><td>LMS</td><td>LOT-R</td><td>WLEIS</td></tr><tr><td>10</td><td>100</td><td>10</td><td>8</td><td>9</td><td>10</td><td>16</td></tr></table>
219
+
220
+ # C Character Selection
221
+
222
+ In selecting the dataset characters, we considered the origins of the characters and aimed to maximize the diversity and breadth of distribution. The chosen range encompasses characters from various works, including animations, movies, TV series, and more.
223
+
224
+ For training set, we ultimately selected 30 RoleLLM characters and 16 ChatHaruhi characters. The list of selected characters includes:James Bond, ayaka, Raj, Andrew Detmer, Jigsaw, Jordan Belfort, Luna, Logan, Oliver Queen, Judy Hoops, John Keating, McGonagall, Sheldon, wanderer, Jeff Spicoli, James Brown, zhongli, Jim Morrison, Dumbledore, Stephen Hawking, raidenShogun, Snape, John Doe, Peter Parker, Jackie Moon, Blair Waldorf, haruhi, Bruno Antony, Wade Wilson, Judge Dredd, Malfoy, Hermione, Harry, Jack Sparrow, Ron, Po, Gaston, Fletcher Reede, Po, hutao, Klaus Mikaelson, Dr. Hannibal Lecter, Gregory House, Doctor Who, HAL 9000, Caesar, Benjamin Button.
225
+
226
+ The test Characters are: Twilight Sparkle, Shrek, Michael Scott, The Dude, Lucifer Morningstar,
227
+
228
+ Walt Kowalski, Thor, Rorschach, Lestat de Lioncourt.
229
+
230
+ We selected characters from a wide variety of sources, covering a broad spectrum of personality types to ensure a well-distributed representation. We demonstrate the 16Personality of characters in table 6
231
+
232
+ Table 5: The question numbers of each scale. 16P refers to 16Personality and Emp. refers to Empathy.
233
+
234
+ <table><tr><td>INTJ</td><td>INTP</td><td>INFJ</td><td>INFP</td></tr><tr><td>5</td><td>1</td><td>4</td><td>3</td></tr><tr><td>ISTJ</td><td>ISTP</td><td>ISFJ</td><td>ISFP</td></tr><tr><td>4</td><td>2</td><td>1</td><td>3</td></tr><tr><td>ENTJ</td><td>ENTP</td><td>ENFJ</td><td>ENFP</td></tr><tr><td>2</td><td>5</td><td>1</td><td>4</td></tr><tr><td>ESTJ</td><td>ESTP</td><td>ESFJ</td><td>ESFP</td></tr><tr><td>4</td><td>2</td><td>1</td><td>4</td></tr></table>
235
+
236
+ # D Multi-turn Dialogue Consistency
237
+
238
+ To evaluate the ability of models trained on different role-playing datasets in multi-turn dialogue, we assess the personality consistency of its responses across multiple conversational rounds. Specifically, we conduct five rounds of interactions, with the model providing responses to one scale-based question per round. Consistency in evaluations across these rounds reflects the model's robustness in maintaining personality traits throughout the dialogue. We calculate the scores for each personality dimension in all five rounds, compute the standard deviation for each dimension, and then average these standard deviations across all dimensions. The overall performance is quantified by this final average, with lower scores indicating greater consistency in multi-turn dialogue. The result is demonstrated in table 7, the model fine-tuned with ROLEPERSONALITY exhibits higher personality concitency during multi-turn dialogues.
239
+
240
+ Table 6: The personality of selected characters.
241
+
242
+ <table><tr><td>Dataset</td><td>16 Perosnality</td><td>BFI</td></tr><tr><td>-</td><td>13.697</td><td>0.4020</td></tr><tr><td>RolePersonality</td><td>12.796</td><td>0.3365</td></tr><tr><td>RoleBench</td><td>15.060</td><td>0.4572</td></tr><tr><td>CharacterLLM</td><td>14.428</td><td>0.4415</td></tr></table>
243
+
244
+ Table 7: The average standard deviation of personality assessment during multi-turn dialogues.
245
+
246
+ # E Evaluation Prompt
247
+
248
+ We employed various metrics for evaluation. Among them, win-rate and dimensional scoring were directly assessed using a large language model (LLM). The prompts used for these evaluations are listed in Table 8.
249
+
250
+ <table><tr><td colspan="2">Prompts for Personality Tests</td></tr><tr><td>Win-Rate</td><td>System Instruction: You are a role-playing performance comparison assistant. You should rank the models based on the role characteristics and text quality of their responses. The rankings are then output using Python dictionaries and lists. User Prompt: The models below are to play the role of &quot;role_name&quot;. The role description of &quot;role_name&quot; is &quot;role_description_and Catchphrases&quot;. I need to rank the following models based on the two criteria below: 1. Which one has more pronounced role speaking style, and speaks more in line with the role description. The more distinctive the speaking style, the better. 2. Which one&#x27;s output contains more knowledge and memories related to the role; the richer, the better. (If the question contains reference answers, then the role-specific knowledge and memories are based on the reference answer.) The question provided to each model is: question_dict The respective answers from the models to this question are: list_model_answer_dict Now, based on the above two criteria, please rank the models. Avoid any positional biases and ensure that the order in which the responses are presented does not influence your decision. Do not favor certain model names. Then, use a list containing the model&#x27;s name, its rank, and the reason for its ranking to return the results, i.e., please ensure to use the following format to return the results: [&quot;model&quot;: &lt;model-name&gt;, &quot;reason&quot;: &lt;rank-reason&gt;, &quot;rank&quot;: &lt;model-rank&gt;, &quot;model&quot;: &lt;model-name&gt;, &quot;reason&quot;: &lt;rank-reason&gt;, &quot;rank&quot;: &lt;model-rank&gt;] Your answer must be a valid Python list of dictionaries to ensure I can directly parse it using Python. Do not include any extraneous content! Please provide a ranking that is as accurate as possible and aligns with the intuition of most people.</td></tr><tr><td>Memoriza-tion</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Factual Correctness (1-7): Is the response provides truthful and detailed facts about the character? [Evaluation Steps] 1. Read through the interactions and identify the key points related to the character. 2. Read through the responses of the AI assistant and compare them to the profile. Check if the responses are consistent with the character&#x27;s profile, background, and known facts about the character. 3. Check whether the responses provide detailed facts about the character or if they are generic responses that could apply to any character. Detailed responses are more factual and contribute positively to the score. 4. Rate the performance of the AI on a scale of 1-7 for factual correctness, where 1 is the lowest and 7 is the highest based on the Evaluation Criteria. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Personality</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Personality (1-7): Is the response reflects the personalities and preferences of the character? [Evaluation Steps] 1. Read through the profile and write the personalities and preferences of the real character. 2. Read through the interactions and identify the personalities and preferences of the AI assistant. 3. After having a clear understanding of the interactions, compare the responses to the profile. Look for any consistencies or inconsistencies. Do the responses reflect the character&#x27;s personalities and preferences? 4. Use the given scale from 1-7 to rate how well the response reflects the personalities and preferences of the character. 1 being not at all reflective of the character&#x27;s personalities, and 7 being perfectly reflective of the character&#x27;s personalities. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Values</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Values (1-7): Is the response reflects the values and convictions of the character? [Evaluation Steps] 1. Read through the profile and write the values and convictions of the real character. 2. Read through the interactions and identify the values and convictions of the AI assistant. 3. After having a clear understanding of the interactions, compare the responses to the profile. Look for any consistencies or inconsistencies. Do the responses reflect the character&#x27;s values and convictions? 4. Use the given scale from 1-7 to rate how well the response reflects the values and convictions of the character. 1 being not at all reflective of the character&#x27;s values, and 7 being perfectly reflective of the character&#x27;s values. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Hallucina-tion</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Avoiding Hallucination (1-7): Is the response avoids to say things that the character do not know? [Evaluation Steps] 1. Read through the interactions and identify the knowledge scope of the character. 2. Read through the responses of the AI assistant, find the evidence of knowledge used in the response. 3. Compare the evidence to the profile. Check if the responses are consistent with the character&#x27;s knowledge scope. If some knowledge contradicts to the character&#x27;s identity, given a lower score. Otherwise, assign a higher score. 4. Rate the performance of the AI on a scale of 1-7 for Avoiding Hallucination, where 1 is the lowest and 7 is the highest based on the Evaluation Criteria. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr><tr><td>Stability</td><td>You will be given responses written by an AI assistant mimicking the character agent_name. Your task is to rate the performance of agent_name using the specific criterion by following the evaluation steps. Be as strict as possible. Below is the data: *** [Profile] agent_context *** [Interactions] interactions *** [Evaluation Criterion] Long-term Acting (1-7): Is the assistant maintain a good performance over the long interactions? [Evaluation Steps] 1. Read through the given profile and background information to familiarize yourself with the context and details of the AI assistant named agent_name. 2. Review the interactions provided to see how agent_name responds to various prompts and queries. And evaluate the performance of acting query by query that whether the response reflects the personalities and values of the character. Assign score for each turn. 3. Based on the above assigned scores, does agent_name keep acting like character in the long-term? Evaluate the overall performance of the whole conversation based on the score for each turn. 4. Rate the stability of agent_name on a scale of 1 to 7, with 1 being very poor and 7 being excellent. *** First, write out in a step by step manner your reasoning about the criterion to be sure that your conclusion is correct. Avoid simply stating the correct answers at the outset. Then print the score on its own line corresponding to the correct answer. At the end, repeat just the selected score again by itself on a new line.</td></tr></table>
251
+
252
+ Table 8: Prompts for evaluation.
2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6da51784806b9e4a31982645a033815df05435af24b14cd12fb0f5a3258c895a
3
+ size 897084
2024/Capturing Minds, Not Just Words_ Enhancing Role-Playing Language Models with Personality-Indicative Data/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/d088b9bf-e0c0-448d-b422-4b6fe70269ad_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/d088b9bf-e0c0-448d-b422-4b6fe70269ad_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/d088b9bf-e0c0-448d-b422-4b6fe70269ad_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf7dbecafa5731ed538b9844b076b2082bbf64204c16d5e7f7c48462fc555773
3
+ size 948325
2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/full.md ADDED
@@ -0,0 +1,413 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction
2
+
3
+ Yuncheng Hua $^{\text{♥}}$ , Yujin Huang $^{\text{♥}}$ , Shuo Huang $^{\text{♥}}$ , Tao Feng $^{\text{♥}}$ , Lizhen Qu $^{\text{♥}\dagger}$ , Chris Bain $^{\ddagger}$ , Richard Bassed $^{\diamond}$ , Gholamreza Haffari $^{\text{♥}}$
4
+
5
+ $^{\text{心}}$ Department of Data Science & AI, Monash University, Australia
6
+
7
+ $\clubsuit$ Department of Human Centred Computing, Monash University, Australia
8
+
9
+ $\diamond$ Victorian Institute of Forensic Medicine, Melbourne, Australia {devin.hua, yujin.huang, shuo.huang1, tao.feng} @monash.edu, {lizhen.qu, chris.a.bain, gholamreza.haffari} @monash.edu,
10
+
11
+ Richard.Bassed@vifm.org
12
+
13
+ # Abstract
14
+
15
+ This paper tackles the task of emotion-cause pair extraction in the unsupervised domain adaptation setting. The problem is challenging as the distributions of the events causing emotions in target domains are dramatically different than those in source domains, despite the distributions of emotional expressions between domains are overlapped. Inspired by causal discovery, we propose a novel deep latent model in the variational autoencoder (VAE) framework, which not only captures the underlying latent structures of data but also utilizes the easily transferable knowledge of emotions as the bridge to link the distributions of events in different domains. To facilitate knowledge transfer across domains, we also propose a novel variational posterior regularization technique to disentangle the latent representations of emotions from those of events in order to mitigate the damage caused by the spurious correlations related to the events in source domains. Through extensive experiments, we demonstrate that our model outperforms the strongest baseline by approximately $11.05\%$ on a Chinese benchmark and $2.45\%$ on an English benchmark in terms of weighted-average F1 score. We have released our source code and the generated dataset publicly at: https://github.com/tk1363704/CAREL-VAE.
16
+
17
+ # 1 Introduction
18
+
19
+ Emotion-cause pair extraction (ECPE) aims to extract emotions and the events causing such emotions mentioned in a document (Xia and Ding, 2019). The task has potential applications in a number of areas, such as affective computing, market analysis, and intelligent agents for customer support. However, there are only a small number of labeled training corpora available in a
20
+
21
+ ![](images/e1b74e3068ff6874a7b02760856b5203c92956f4d3d9320fb8e9397051459f36.jpg)
22
+ Figure 1: An illustrative example of the UDA-ECPE task. Orange and green highlights respectively denote emotion and cause clauses.
23
+
24
+ handful of domains. As shown in Fig. 1, in order to deploy ECPE models to target domains, where there are only unlabeled data, we focus on the unsupervised domain adaptation (UDA) for ECPE, coined UDA-ECPE, which is not explored before.
25
+
26
+ Multi-class or multi-label classification dominates in conventional UDA tasks. UDA-ECPE is more challenging because the events causing the same emotion are barely the same across domains, despite the knowledge of emotional expressions is easier to transfer across domains using the UDA methods (Zad et al., 2021). For example, the reason for "I feel so happy today" can be "I have received a grant from the government" in the society domain and "I found that the stock I bought went up" in the finance domain. There are usually no explicit keywords such as "because" showing their causal relations. However, current UDA methods assume that there are small discrepancies between source and target distributions (Zhao et al., 2019; Kumar et al., 2020). We show in Sec. 4.2 that
27
+
28
+ the state-of-the-art (SOTA) UDA methods indeed have limited capabilities to improve the performance of the SOTA ECPE models.
29
+
30
+ It is a common practice to project texts into latent representations for improving language understanding (Wang et al., 2019). Existing techniques disentangle different types of latent representations by applying regularization terms to enforce independence between the corresponding random variables (Cheng et al., 2020). However, the independence assumption contradicts the fact that emotions and the events causing them are statically dependent. Furthermore, Large Language Models (LLMs), as a powerful general-purpose natural language processing tool, should be well-suited for the UDA-ECPE task. However, in many related studies (Gao et al., 2019; Zecevic et al., 2023; Kiciman et al., 2023; Romanou et al., 2023; Jacovi et al., 2023; Gao et al., 2023; Jin et al., 2024; Feng et al., 2024), researchers have found that LLMs are not particularly effective at solving causal discovery tasks.
31
+
32
+ To tackle the above challenges, we take the transferable knowledge of emotional expressions as the bridge between a source domain and a target domain. In a single domain, we identify causal relations between emotions and domain-specific events, which can be viewed as a causal discovery problem between the corresponding random variables. In the VAE framework (Kingma and Welling, 2013), we propose a novel model, coined CAREL-VAE, to map inputs texts into latent emotion representations and latent event representations and detect their causal relations. Herein, we propose a novel variational posterior regularizer to disentangle those representations by maximizing the divergences between the posteriors without assuming independence. In a target domain, we improve the self-training algorithm (Chen et al., 2011) for discovering domain-specific causal relations, referred to as CD-SELFTRAIN. Instead of incrementally updating a training set, we improve the original algorithm by producing a new pseudo-labeled training set in each epoch. As a result, our method outperforms the SOTA ECPE models trained with the SOTA UDA methods by a wide margin.
33
+
34
+ To sum up, our contributions are the following:
35
+
36
+ - We propose a novel causal discovery inspired UDA method, coined CD-SELFTRAIN, and a new model, coined CAREL-VAE, for the
37
+
38
+ ECPE task in the unexplored UDA setting.
39
+
40
+ - We propose a novel disentanglement regularization term on variational Posteriors so that it does not enforce independence between emotions and the events causing them.
41
+ - Our approach achieves superior performance in terms of weighted-average F1 over the strongest baseline by approximately $11.05\%$ on a Chinese benchmark and $2.45\%$ on a English benchmark. Even if that baseline is trained with the SOTA UDA method, our method still achieves the best.
42
+
43
+ # 2 Challenges in UDA-ECPE
44
+
45
+ The task ECPE is concerned with recognizing causal relations between the events causing emotions and the corresponding emotional expressions mentioned in a document. All prior studies on the ECPE task employ a (deep) learning-based classifier to detect mentions of causal relations based on an input text. They often choose an input text that mentions an event and an emotional expression. Then those classifiers determine whether the event causes the emotional expression by investigating if i) the event and the emotional expression are correlated and ii) there is a linguistic pattern indicating their relation is causal, e.g. using a key phrase "leads to".
46
+
47
+ Formally, given an input text $\mathbf{x}$ , we extract an event embedding $z^c$ and an emotion embedding $z^e$ , which are the values sampled from the corresponding latent random variable vectors $\mathbf{Z}^c$ and $\mathbf{Z}^e$ . In a source domain, a model learns a distribution $\sum_{\mathbf{Z}^c,\mathbf{Z}^e}p(Y|\mathbf{Z}^c,\mathbf{Z}^e,\mathbf{x})p(\mathbf{Z}^c,\mathbf{Z}^e|\mathbf{x})$ , where $Y$ denotes a binary random variable indicating if there is a causal relation between $\mathbf{Z}^c$ and $\mathbf{Z}^e$ . The key challenge is that both $p(Y|\mathbf{Z}^c,\mathbf{Z}^e,\mathbf{x})$ and $p(\mathbf{Z}^c,\mathbf{Z}^e|\mathbf{x})$ are significantly different in target domains. Although prior studies show that $p(\mathbf{Z}^e|\mathbf{x})$ can be easily transferred from source domains to target domains (Wang et al., 2022), the correlations between $\mathbf{Z}^c$ and $\mathbf{Z}^e$ are almost not transferable, because $p(\mathbf{Z}^c)$ are dramatically different between domains. Therefore, when adapting a model trained in a source domain to a target domain, the model needs to forget the correlations between emotions and events from the source domain, followed by learning new correlations in the target domain.
48
+
49
+ To provide an intuitive understanding of the
50
+
51
+ above challenges in the UDA setting, we visualize the clause embeddings, namely $p(\mathbf{Z}^c)$ , for ground-truth emotion and emotion causes respectively on CH-ECPE and EN-ECPE, and compare them with the sentence embeddings for a widely used domain adaptation corpus Amazon Reviews (Blitzer et al., 2007) using t-SNE. As the original CH-ECPE are not partitioned based on domains, we manually assign each data point in the corpus with the corresponding domain label. Further details are provided in Sec. 4.1.
52
+
53
+ As shown in Figure 2, the data points of Chinese emotion clauses from various CH-ECPE's domains are strongly overlapped, the domain divergences are far smaller than those of the embeddings of the emotion causes. It is thus challenging for existing UDA methods, which work only in the cases that the distribution shift from a source domain to a target domain is small, as illustrated in Fig.2a (Zhao et al., 2019; Kumar et al., 2020).
54
+
55
+ In addition, we employ two different datasets as different domains for English. The English corpora similar tendency can be found in A.1. As shown in Fig.4, regardless if a clause mentions an emotion or an emotion cause, there is a very clear boundary between the two domains. Their domain differences are largely caused by the differences between the two datasets.
56
+
57
+ # 3 Methodology
58
+
59
+ The UDA-ECPE task is concerned with identifying causal relations between mentions of events and emotional expressions in target domains, which do not have labeled data. In the source domain, there is a set of labeled documents $\mathcal{D}^s = \{(\mathbf{X}_1^s,\mathcal{R}_1^s),(\mathbf{X}_2^s,\mathcal{R}_2^s),\dots,(\mathbf{X}_n^s,\mathcal{R}_n^s)\}$ . Each document $\mathbf{X}_k^s$ consists of a sequence of clauses $(x_{1},x_{2},\ldots ,x_{d})$ and is annotated with a set of labeled emotion-cause pairs $\mathcal{R}_k^s = \{(y_{ij}^r,y_i^c,y_j^e)\}_{i,j}$ where $y_{ij}^{r}$ is a binary label indicating if $\pmb{x}_i$ is an event mention causing an emotion expressed in $\pmb{x}_j$ , $y_{i}^{c}$ denotes whether $\pmb{x}_i$ is an event or not, and $y_{j}^{e}\in \mathcal{Y}^{e}$ denotes the category of the emotion. In this work, we consider the widely used six basic emotion categories: happiness, sadness, fear, disgust, anger, and surprise. Then the task is to identify a set of such causal relations and emotion categories $\mathcal{R}_k^t = \{(y_{ij}^r,y_j^e)\}_{i,j}$ from each unlabeled document $k$ in target domains. In contrast, the prior studies (Xia and Ding, 2019) assume the training and test distributions are identi
60
+
61
+ cal and emotional expressions are not categorized. Hence, our setting is more difficult and practical by considering emotion categories and distribution discrepancies between domains.
62
+
63
+ CAREL-VAE Overview. Denoted by $\mathbf{Z}^e$ and $\mathbf{Z}^c$ the latent random variable vectors for emotion and event respectively, we adopt the VAE framework to learn the latent distribution $p(y_{ij}^r,y^e,y^c,\mathbf{X}_{ij},\mathbf{Z}^e,\mathbf{Z}^c)$ for a pair of clauses $\mathbf{X}_{ij} = (\boldsymbol {x}_i,\boldsymbol {x}_j)$ , which is factorized into
64
+
65
+ $$
66
+ \overbrace {p (y _ {i j} ^ {r} | \mathbf {Z} ^ {e} , \mathbf {Z} ^ {c}) p (y ^ {e} | \mathbf {Z} ^ {e}) p (y ^ {c} | \mathbf {Z} ^ {c})} ^ {\text {t a s k - s p e c i f i c}} \overbrace {p (\mathbf {X} _ {i j} | \mathbf {Z} ^ {e} , \mathbf {Z} ^ {c}) p (\mathbf {Z} ^ {e}) p (\mathbf {Z} ^ {c})} ^ {\text {s t a n d a r d V A E}}
67
+ $$
68
+
69
+ In addition to the standard components of VAE, such as the decoder $p(\mathbf{X}_{ij}|\mathbf{Z}^e,\mathbf{Z}^c)$ , we include task-specific predictors: an emotion classifier $p(y^{e}|\mathbf{Z}^{e})$ , an emotion-cause relation classifier $p(y_{ij}^{r}|\mathbf{Z}^{e},\mathbf{Z}^{c})$ , and an event predictor $p(y^{c}|\mathbf{Z}^{c})$
70
+
71
+ To approximate the true distribution, we consider a factorized variational distribution $q(\mathbf{Z}^e,\mathbf{Z}^c |\mathbf{X}_{ij}) = q(\mathbf{Z}^e |\mathbf{X}_{ij})q(\mathbf{Z}^c |\mathbf{X}_{ij})$ , which correspond to an emotion encoder and an event encoder respectively. Then the variational lower bound (ELBO) takes the following form:
72
+
73
+ $$
74
+ \begin{array}{l} \mathbb {E} _ {q \left(\mathbf {Z} ^ {e}, \mathbf {Z} ^ {c} \mid \mathbf {X} _ {i j}\right)} \log \left[ p \left(\mathbf {X} _ {i j} \mid \mathbf {Z} ^ {e}, \mathbf {Z} ^ {c}\right) p \left(y _ {i j} ^ {r} \mid \mathbf {Z} ^ {e}, \mathbf {Z} ^ {c}\right) \right. \\ \left. p \left(y ^ {e} \mid \mathbf {Z} ^ {e}\right) p \left(y ^ {c} \mid \mathbf {Z} ^ {c}\right) \right] - \mathbb {D} _ {\mathrm {K L}} \left(q \left(\mathbf {Z} ^ {e} \mid \mathbf {X} _ {i j} \right\| p \left(\mathbf {Z} ^ {e}\right)\right) \\ - \mathbb {D} _ {\mathrm {K L}} (q (\mathbf {Z} ^ {c} | \mathbf {X} _ {i j} \| p (\mathbf {Z} ^ {c})) \\ \end{array}
75
+ $$
76
+
77
+ Disentanglement. In target domains, it is not desirable that the latent representation of an emotion is mixed with event information, which makes transfer of the knowledge about emotions across domains difficult, because events in target domains are not directly related to those in source domains. Therefore, we need to disentangle latent emotion representations from latent event representations for improving compositional generalization (Rusin et al., 2019) without making the independence assumption.
78
+
79
+ In light of the above analysis, we propose a variational posterior regularization technique. The key idea is to regularize the model in the way that the dense regions of $q(\mathbf{Z}^e | \mathbf{X}_{ij})$ associate with only emotions, while those of $q(\mathbf{Z}^c | \mathbf{X}_{ij})$ associate with only events. The classifiers for $p(y^e | \mathbf{Z}^e)$ and $p(y^c | \mathbf{Z}^c)$ are in general smooth such that they consistently predict only one label in a dense region. If there is little overlap between the dense regions of $q(\mathbf{Z}^e | \mathbf{X}_{ij})$ and those of $q(\mathbf{Z}^c | \mathbf{X}_{ij})$ , a dense region from either distribution is expected to be associated with either an emotion category or a type of events estimated by one of the classifiers, under the maximum likelihood principle. In
80
+
81
+ ![](images/ed332a49a764dd027ef23df019c8693df8726052d83c660ea282fcf67cf227a4.jpg)
82
+ (a) Amazon sentiment reviews
83
+
84
+ ![](images/bc00b57c15a1184e9b47e581ea88c3cbe1f5d45c3b32a6c77ce5aa482d5ffe38.jpg)
85
+ (b) Chinese emotion clauses
86
+ Figure 2: The t-SNE visualizations of the sentence embeddings from Amazon Reviews multi-domain sentiment corpus and the clause embeddings from the Chinese UDA-ECPE corpora.
87
+
88
+ ![](images/a4c197c3828953e018e185835c05f28cb6c70d624ead5e7d4591800c3b6e64dc.jpg)
89
+ (c) Chinese emotion cause clauses
90
+
91
+ another word, we only need to add a regularizer to minimize the overlap between $q(\mathbf{Z}^e | \mathbf{X}_{ij})$ and $q(\mathbf{Z}^c | \mathbf{X}_{ij})$ such that their divergence is high.
92
+
93
+ In theory, the corresponding divergence measures $\mathbb{D}_{\mathrm{KL}}(q(\mathbf{Z}^e |\mathbf{X}_{ij})\| q(\mathbf{Z}^c |\mathbf{X}_{ij}))$ should not assume absolute continuity (Royden and Fitzpatrick, 1988), which requires that $q(Z_{i}^{e}|\mathbf{X}_{ij}) > 0$ for every $q(Z_i^c |\mathbf{X}_{ij}) > 0$ , vice versa. In reality, a random variable $Z_{i}^{e}$ may have high probability in the region where a $Z_{j}^{c}$ has zero probability. To tackle this, we choose Bhattacharyya distance (Bhattacharyya, 1946) and maximum mean discrepancy (MMD) (Gretton et al., 2012) respectively as a regularizer. Each of them has its own strength. More details are covered in Sec. 3.2.
94
+
95
+ # 3.1 Model Details
96
+
97
+ CAREL-VAE Model. As illustrated in Fig. 3, our model is composed of an inference module, a text generator, task-specific predictors and priors.
98
+
99
+ Inference Module. The inference module consists of a pre-trained BERT (Devlin et al., 2018) encoder, an emotion encoder and an event predictor. Given a pair of clauses $(x_{i}, x_{j})$ , we construct inputs following the common practice that inserts an [SEP] token between the two clauses and prepends the sequence with a [CLS] token. We take the hidden representation $h$ of [CLS] as the output of the BERT encoder.
100
+
101
+ To distinguish the representation of the event and emotion variables, we employ two adapters to produce different embedding respectively. We initialize two vectors $\mathbf{a}_e$ and $\mathbf{a}_c$ for emotion and event respectively, and treat them as the queries while view $\mathbf{h}$ as key and value. We therefore synthesize the new emotion and event representations $\mathbf{h}_e$ and $\mathbf{h}_c$ by computing the sparsemax attention while using $\mathbf{a}_e$ and $\mathbf{a}_c$ as queries respectively (Martins and Astudillo, 2016).
102
+
103
+ The variational distribution $q(\mathbf{Z}^e, \mathbf{Z}^c | \mathbf{X}_{ij})$ are realized as simple factorized Gaussians, which correspond to an emotion encoder $q(\mathbf{Z}^e | \mathbf{h}_e)$ and an event predictor $q(\mathbf{Z}^c | \mathbf{h}_c)$ on top of the hidden representations $\mathbf{h}_e$ and $\mathbf{h}_c$ respectively. Each encoder is implemented as a multilayer perceptrons (MLPs) after applying the reparameterization trick.
104
+
105
+ $$
106
+ \boldsymbol {\mu} ^ {e}, \log \boldsymbol {\sigma} ^ {e} = \operatorname {M L P} \left(\boldsymbol {h} _ {e}; \boldsymbol {\theta} _ {e}\right)
107
+ $$
108
+
109
+ $$
110
+ \boldsymbol {\mu} ^ {c}, \log \boldsymbol {\sigma} ^ {c} = \operatorname {M L P} \left(\boldsymbol {h} _ {c}; \boldsymbol {\theta} _ {c}\right) \tag {1}
111
+ $$
112
+
113
+ $$
114
+ \boldsymbol {z} ^ {e} = \boldsymbol {\mu} ^ {e} + \boldsymbol {\sigma} ^ {e} \odot \epsilon , \epsilon \sim \mathcal {N} (\mathbf {0}, \mathbf {I})
115
+ $$
116
+
117
+ $$
118
+ \boldsymbol {z} ^ {c} = \boldsymbol {\mu} ^ {c} + \boldsymbol {\sigma} ^ {c} \odot \epsilon , \epsilon \sim \mathcal {N} (\mathbf {0}, \mathbf {I})
119
+ $$
120
+
121
+ where $\theta_{e}$ and $\theta_{c}$ are the parameters of the emotion and event encoders respectively, $\mu^{e}$ , $\sigma^{e}$ and $\mu^{c}$ , $\sigma^{c}$ denote the means and standard deviations of the corresponding Gaussian distributions, $\epsilon$ denotes independent Gaussian noises, $z^{e}$ and $z^{c}$ denote the respective values of $\mathbf{Z}^{e}$ and $\mathbf{Z}^{c}$ .
122
+
123
+ Text Generator. For $p(\mathbf{X}_{ij}|\mathbf{Z}^e,\mathbf{Z}^c)$ , we consider a lightweight solution that only reconstructs a bag-of-words (BoW) representation from latent representations, which is significantly faster than a conventional sequence decoder.
124
+
125
+ $$
126
+ p \left(\boldsymbol {x} ^ {\mathrm {B o W}} \mid \boldsymbol {z} ^ {e}, \boldsymbol {z} ^ {c}\right) = \sigma \left(\boldsymbol {W} ^ {\mathrm {d e c}} \left[ \boldsymbol {z} ^ {e}, \boldsymbol {z} ^ {c} \right] + \boldsymbol {b} ^ {\mathrm {d e c}}\right) \tag {2}
127
+ $$
128
+
129
+ where $\pmb{\theta}_{\mathrm{dec}} = [\pmb{W}^{\mathrm{dec}}; \pmb{b}^{\mathrm{dec}}]$ denotes the parameters of the decoder, $\sigma(\cdot)$ is the sigmoid function, and $\pmb{x}^{\mathrm{BoW}}$ is the BoW representation of $\mathbf{X}_{ij}$ .
130
+
131
+ Priors. For both $p(\mathbf{Z}^e)$ and $p(\mathbf{Z}^c)$ , we follow the common practice to use $\mathcal{N}(\mathbf{0},\mathbf{I})$ as their priors.
132
+
133
+ Task-Specific Predictors. For each predictor, we apply a linear layer to its inputs, followed by a softmax layer if it is a multi-class classification problem, otherwise a sigmoid layer for a binary classification problem.
134
+
135
+ Emotion Extraction Model. We can apply any emotion extraction model to obtain clauses con
136
+
137
+ ![](images/f08264b12181cf8e45237b341c340c47464e786c6a848ff155815b254e06bf05.jpg)
138
+ Figure 3: The architecture of our model CAREL-VAE.
139
+
140
+ taining emotional expressions. In this work, we extend the emotion classification model in (Xia and Ding, 2019) by replacing its encoder with BERT encoder and its binary classification layer with a softmax layer.
141
+
142
+ # 3.2 Model Training
143
+
144
+ # 3.2.1 Source Domain Training
145
+
146
+ CAREL-VAE Model. Given a set of documents, each of which is annotated with a set $\mathcal{R}_k^s = \{(y_{ij}^r,y_i^c,y_j^e)\}_{i,j}$ for positive examples, we obtain negative examples of relations by randomly sampling clause pairs that are not part of $\mathcal{R}_k^s$ . In particular, for each emotion clause in $\mathcal{R}^s$ , we pair it with a randomly picked non-cause clause in the document, resulting in the same number of negative samples. The training loss $\mathcal{L} = \mathcal{L}^{\mathrm{ELBO}} + \lambda \Omega$ including the loss $\mathcal{L}^{\mathrm{ELBO}}$ derived from the ELBO and the variational posterior regularizer $\Omega$ adjusted by the hyperparameter $\lambda$ .
147
+
148
+ Similar to prior works, the loss $\mathcal{L}^{\mathrm{ELBO}}$ includes the cross-entropy losses from the text decoder and the task-specific predictors, as well as two regularization terms from the two KL divergences, each of which takes the form of $\| z\|^2 - \log \sigma$ .
149
+
150
+ To motivate the regularizer $\Omega$ , we start with Bhattacharyya distance, which measures the angle between two probability vectors $(\sqrt{p_a(z_0)}, \ldots, \sqrt{p_a(z_n)})$ and $(\sqrt{p_b(z_0)}, \ldots, \sqrt{p_b(z_n)})$ over $n$ data points. Unlike KL divergence, Bhattacharyya distance yields a positive value regardless the probability at a data point is zero or not, if the distance is not zero. For Gaussians, which are the cases for the variational posteriors, it has a closed form solution:
151
+
152
+ $$
153
+ \mathbb {D} _ {\mathrm {b h}} = \frac {1}{8} \left(\boldsymbol {\mu} ^ {e} - \boldsymbol {\mu} ^ {c}\right) ^ {\mathrm {T}} \boldsymbol {\Sigma} ^ {- 1} \left(\boldsymbol {\mu} ^ {e} - \boldsymbol {\mu} ^ {c}\right) + \frac {1}{2} \ln \left(\frac {\det \boldsymbol {\Sigma}}{\prod \sigma^ {e} \prod \sigma^ {c}}\right) \tag {3}
154
+ $$
155
+
156
+ where $\boldsymbol{\Sigma} = \frac{(\sigma^{e} + \sigma^{c})^{2}}{2}\mathbf{I}$ and the determinant $\operatorname*{det}\boldsymbol{\Sigma} = \frac{\prod((\sigma^{e})^{2} + (\sigma^{c})^{2})}{2}$ . The left term is essentially an unnormalized multivariate Gaussian.
157
+
158
+ The corresponding regularizer $\Omega^{\mathrm{b}} = -\mathbb{D}_{\mathrm{bh}}$ , which maximizes this distance, would drive the two Gaussians far away from each other.
159
+
160
+ The above regularizer only maximizes the distance between two types of latent representations from the same clause pair. Intuitively, it would be useful to also push $z_{i}^{e}$ of an instance $i$ away from the $z_{j}^{c}$ of the other instances. For efficiency, we only apply such regularizations between instances in a batch, which ends up a regularizer $\Omega^{\mathrm{bb}}$ that maximizes Bhattacharyya distance between any pair of $(z_{i}^{e}, z_{j}^{c})$ in a batch.
161
+
162
+ Following the same idea, we also exploit maximum mean discrepancy (MMD) (Gretton et al., 2012), which is a kernel-based divergence measure not requiring absolute continuity, for maximizing divergences across instances batchwise.
163
+
164
+ $$
165
+ \Omega^ {\mathrm {M M D}} = - \| \phi (\boldsymbol {z} ^ {e}) - \phi (\boldsymbol {z} ^ {c}) \| _ {\mathcal {H}} ^ {2}, \tag {4}
166
+ $$
167
+
168
+ $$
169
+ \boldsymbol {z} ^ {e} \sim \mathbf {Z} ^ {e}, \boldsymbol {z} ^ {c} \sim \mathbf {Z} ^ {c}
170
+ $$
171
+
172
+ where $\phi$ is a mapping function that projects both $z^{e}$ and $z^{c}$ into a reproducing kernel Hilbert space denoted by $\mathcal{H}$ . In this work, we mainly adopt this regularizer in experiments due to its superior performance over the other two. More in-depth discussion about the design of OmegaMMD can be found in Appendix A.1.
173
+
174
+ Emotion Extraction Model. Provided a set of clauses annotated with emotion categories or None, we train the emotion extraction model as a seven-way classification problem, following the maximum likelihood principle.
175
+
176
+ # 3.2.2 Adaptation to Target Domains
177
+
178
+ We transfer first the emotion extraction model to a target domain, followed by our model. The emotion extraction model is fine tuned by the selftraining algorithm (Chen et al., 2011) on an unlabeled corpus in a target domain. The parameters of our model are fine tuned by using our method CDSELFTRAIN on the same corpora. Given an un
179
+
180
+ labeled corpus, both self-training algorithms start with applying the model to predict the most likely labels for each input text. The predictions are used to construct a training set to fine tune the model with the same loss $\mathcal{L}$ as the source domain training in one epoch. Then the algorithms construct a new training set or update the training set with new examples by using the current model and repeats the process till the convergence criteria are met. Our algorithm CD-SELFTRAIN differs from the current one in terms of the way to construct training datasets.
181
+
182
+ Relation Prediction. Given a set of documents $\mathcal{D}_u$ in a target domain, each of which contains at least one clause annotated with emotion pseudolabels, we pair each emotion clause with the remaining clauses to create clause pairs for relation identification. When constructing a training set with pseudo-labels in each iteration, we select a pair with the highest probability in a document as a positive sample and randomly choose a clause pair from the remaining as a negative sample. Deep models with a high width tend to memorize training examples to reduce training errors (van den Burg and Williams, 2021), which could hurt the model performance by not improving its generalization capability. Thus, we construct a training set from scratch each time instead of updating the training set from the previous iteration. The training procedure terminates when a maximal number of iterations is reached.
183
+
184
+ Emotion Extraction. For emotion extraction, we apply the self-training algorithm (Chen et al., 2011) to train the model in a target domain. It starts with an empty training set $\mathcal{D}_t$ and a set of unlabeled documents $\mathcal{D}_u$ . In each iteration, if a document in $\mathcal{D}_u$ contains at least one pseudo-labeled emotion clauses with their confidence above a pre-defined threshold, we add it to the training set $\mathcal{D}_t$ for the next iteration. In each of such documents, we keep only the pseudo-labeled emotion clause with the highest probability, the remaining clauses are considered as non-emotion ones.
185
+
186
+ # 4 Experiments
187
+
188
+ # 4.1 Experimental Setup
189
+
190
+ Datasets. Since there is no corpus for ECPE in the UDA setting, we divide CH-ECPE into multiple domains. Given the fact that the documents in CH-ECPE are Chinese news articles sampled from the THUCNews dataset (Li and Sun, 2007),
191
+
192
+ we employ the topic classifier THUCTC (Sun et al., 2016) trained on the THUCNews dataset to categorize CH-ECPE into 14 subsets based on topics and choose the largest five as the final domains (e.g. home, society and finance, etc.). To further improve the purity of classification, based on THUCTC's classification results, we conduct manual inspection and labeling to complete the domain classification of CH-ECPE. Also, in the English language setting, we view EN-ECPE and Recognizing Emotion Cause in CONversations (RECCON) (Poria et al., 2021) - an English dataset specifically designed for identifying the causes of emotions within conversations, as the two source-target domains. Table 4 (in A.3) summarizes the statistics of each corpus.
193
+
194
+ Metrics. For each target domain in each corpus, we evaluate models for emotion extraction and relation identification respectively in terms of precision, recall and F1-score. A prediction is correct if there is a correct causal relation and the emotion category is correct.
195
+
196
+ Baselines. To make a fair comparison, we adapt the three existing ECPE models RankCP, UTOS, UECA-Prompt (all employ BERT as the backbone model) for emotion extraction (EE) and ECPE. In addition, since the universal prompt-based method for ECA tasks (UECA-Prompt) (Zheng et al., 2022) is designed to solve the different Emotion cause analysis (ECA) tasks in an unified framework, we thus only integrate three UDA approaches on the two ECPE models (RankCP (Wei et al., 2020) and UTOS (Cheng et al., 2021)) in the ECPE task to further demonstrate the effectiveness of our model. The introduction of baseline method and implementation detail please refer to A.3.
197
+
198
+ # 4.2 Results and Analysis
199
+
200
+ Overall Comparisons. Table 1 (the ECPE and EE tasks on the Chinese dataset) and Table 2 (the ECPE and EE tasks on the English dataset) report the results of our models and the baselines on the ECPE task, as well as the EE subtask. For more detailed metrics on, i.e., precision (P) and recall (R) on Chinese dataset, please refer to Table 5 in the Appendix section. In Table 1 and 2, the "Weighted Average ECPE" metric is the most important indicator of the model's cross-domain ECPE capability.
201
+
202
+ To dispel the doubt that our model outperforms the baselines only because they are de
203
+
204
+ <table><tr><td>Model</td><td>EE (%) F1</td><td>ECPE (%) F1</td><td>EE (%) F1</td><td>ECPE (%) F1</td><td>EE (%) F1</td><td>ECPE (%) F1</td><td>EE (%) ECPE (%) F1</td><td>EE (%) F1</td><td>ECPE (%) F1</td></tr><tr><td>(a) S: Society</td><td colspan="2">Society → Home</td><td colspan="2">Society → Finance</td><td colspan="2">Society → Education</td><td colspan="2">Society → Entertainment</td><td>Weighted Average</td></tr><tr><td>RankCP</td><td>23.44</td><td>13.80</td><td>19.41</td><td>9.17</td><td>28.73</td><td>20.27</td><td>29.51</td><td>14.75</td><td>23.49</td></tr><tr><td>RankCP+Ada-TSA</td><td>19.77</td><td>12.86</td><td>16.61</td><td>7.42</td><td>22.41</td><td>12.78</td><td>25.21</td><td>6.72</td><td>19.65</td></tr><tr><td>RankCP+DANN</td><td>94.72</td><td>66.67</td><td>88.96</td><td>52.58</td><td>87.21</td><td>54.42</td><td>83.05</td><td>40.00</td><td>92.03</td></tr><tr><td>RankCP+MEDM</td><td>21.55</td><td>13.39</td><td>22.00</td><td>10.46</td><td>26.78</td><td>14.63</td><td>15.38</td><td>6.84</td><td>22.04</td></tr><tr><td>UTOS</td><td>62.73</td><td>47.40</td><td>64.97</td><td>49.31</td><td>59.17</td><td>43.27</td><td>39.47</td><td>26.32</td><td>61.77</td></tr><tr><td>UTOS+Ada-TSA</td><td>19.77</td><td>12.86</td><td>16.61</td><td>7.42</td><td>22.41</td><td>12.78</td><td>25.21</td><td>6.72</td><td>19.65</td></tr><tr><td>UTOS+DANN</td><td>71.10</td><td>46.86</td><td>74.69</td><td>48.36</td><td>68.89</td><td>50.71</td><td>58.14</td><td>34.88</td><td>71.04</td></tr><tr><td>UTOS+MEDM</td><td>54.16</td><td>20.31</td><td>26.15</td><td>1.21</td><td>46.01</td><td>26.11</td><td>48.42</td><td>15.49</td><td>46.82</td></tr><tr><td>UECA-Prompt</td><td>75.12</td><td>55.69</td><td>70.38</td><td>56.30</td><td>79.17</td><td>54.97</td><td>72.22</td><td>51.56</td><td>74.48</td></tr><tr><td>Ours</td><td>78.85</td><td>64.60</td><td>83.88</td><td>78.87</td><td>83.33</td><td>76.88</td><td>81.90</td><td>82.24</td><td>80.63</td></tr><tr><td>(b) S: Home</td><td colspan="2">Home → Society</td><td colspan="2">Home → Finance</td><td colspan="2">Home → Education</td><td colspan="2">Home → Entertainment</td><td>Weighted Average</td></tr><tr><td>RankCP</td><td>87.67</td><td>55.84</td><td>90.10</td><td>55.08</td><td>87.46</td><td>56.58</td><td>86.73</td><td>45.07</td><td>81.85</td></tr><tr><td>RankCP+Ada-TSA</td><td>17.75</td><td>8.84</td><td>22.15</td><td>8.75</td><td>20.06</td><td>11.36</td><td>24.39</td><td>6.50</td><td>18.01</td></tr><tr><td>RankCP+DANN</td><td>32.87</td><td>29.74</td><td>27.08</td><td>15.91</td><td>35.79</td><td>19.84</td><td>29.75</td><td>14.88</td><td>29.49</td></tr><tr><td>RankCP+MEDM</td><td>16.34</td><td>7.20</td><td>7.54</td><td>2.14</td><td>23.50</td><td>9.09</td><td>25.42</td><td>6.78</td><td>14.55</td></tr><tr><td>UTOS</td><td>64.79</td><td>51.16</td><td>70.28</td><td>48.82</td><td>65.08</td><td>49.41</td><td>46.15</td><td>30.77</td><td>60.57</td></tr><tr><td>UTOS+Ada-TSA</td><td>17.75</td><td>8.84</td><td>22.15</td><td>8.75</td><td>20.06</td><td>11.36</td><td>24.39</td><td>6.50</td><td>18.01</td></tr><tr><td>UTOS+DANN</td><td>73.41</td><td>52.25</td><td>71.64</td><td>50.63</td><td>68.38</td><td>48.55</td><td>57.47</td><td>27.59</td><td>66.45</td></tr><tr><td>UTOS+MEDM</td><td>44.67</td><td>9.61</td><td>24.11</td><td>1.16</td><td>45.64</td><td>10.63</td><td>48.70</td><td>13.04</td><td>37.31</td></tr><tr><td>UECA-Prompt</td><td>80.57</td><td>64.68</td><td>80.07</td><td>60.53</td><td>78.24</td><td>66.07</td><td>75.23</td><td>58.18</td><td>69.10</td></tr><tr><td>Ours</td><td>82.80</td><td>71.79</td><td>83.22</td><td>79.54</td><td>81.46</td><td>82.10</td><td>81.13</td><td>82.57</td><td>76.72</td></tr></table>
205
+
206
+ Table 1: Experimental results of our models and baselines utilizing F1 score (F1) as metrics on the ECPE and EE tasks on the Chinese dataset. Emotion Extraction is denoted by EE while ECPE refers to Emotion-Cause Pair Extraction. S refers to source domain.
207
+
208
+ <table><tr><td rowspan="2">Model</td><td colspan="2">EN-ECPE → RECCON</td><td colspan="2">RECCON → EN-ECPE</td><td colspan="2">Weighted Average</td></tr><tr><td>EE F1 (%)</td><td>ECPE F1 (%)</td><td>EE F1 (%)</td><td>ECPE F1 (%)</td><td>EE F1 (%)</td><td>ECPE F1 (%)</td></tr><tr><td>RankCP</td><td>39.86</td><td>23.28</td><td>52.96</td><td>28.26</td><td>47.87</td><td>26.32</td></tr><tr><td>RankCP+Ada-TSA</td><td>22.67</td><td>12.13</td><td>19.73</td><td>11.79</td><td>20.87</td><td>11.92</td></tr><tr><td>RankCP+DANN</td><td>26.40</td><td>14.87</td><td>32.17</td><td>17.87</td><td>29.93</td><td>16.7</td></tr><tr><td>RankCP+MEDM</td><td>21.79</td><td>4.69</td><td>30.15</td><td>8.65</td><td>26.90</td><td>7.11</td></tr><tr><td>UTOS</td><td>33.96</td><td>27.83</td><td>24.13</td><td>18.48</td><td>27.95</td><td>22.12</td></tr><tr><td>UTOS+Ada-TSA</td><td>23.73</td><td>11.21</td><td>19.13</td><td>11.73</td><td>20.92</td><td>11.53</td></tr><tr><td>UTOS+DANN</td><td>15.29</td><td>3.36</td><td>13.91</td><td>3.71</td><td>14.44</td><td>3.57</td></tr><tr><td>UTOS+MEDM</td><td>30.11</td><td>1.55</td><td>18.09</td><td>3.75</td><td>22.76</td><td>2.89</td></tr><tr><td>UECA-Prompt</td><td>0.63</td><td>15.76</td><td>1.63</td><td>18.48</td><td>1.24</td><td>17.42</td></tr><tr><td>Ours</td><td>29.57</td><td>28.94</td><td>21.58</td><td>28.66</td><td>24.69</td><td>28.77</td></tr></table>
209
+
210
+ Table 2: Experimental results of our models and the baseline models on the English ECPE and EE tasks.
211
+
212
+ veloped in the supervised setting, we apply the SOTA UDA methods Ada-TS (Zhang et al., 2021), DANN (Ganin et al., 2016) and MDEM (Wu et al., 2021) to the two baselines RankCP and UTOS on the UDA-ECPE task. MDEM is a minimal-entropy UDA approach that introduces diversity maximization to regulate entropy minimization for seeking a close-to-ideal domain adaptation. Ada-TSA is a recently proposed adapter-based UDA approach in which the newly-added adapters can capture transferable features between source and target domains by using the domain-fusion scheme. DANN is a widely adopted adversarial-based UDA approach that learns domain invariant representations through a domain discriminator. It can be found that after applying the UDA framework, RankCP and UTOS significantly improved their performance and became comparable with
213
+
214
+ the SOTA prompt-based model UECA-Prompt.
215
+
216
+ However, though we employ UDA (for RankCP and UTOS) while leverage the powerful ability of the Large Language Model (LLM) (for UECA-Prompt) to enhance the baseline models, the baseline models still perform worse than our proposed model. On CH-ECPE, our model outperforms the RankCP+DANN by $10.42\%$ when treating society as the source domain, and UECA-Prompt by $11.05\%$ with home as the source domain in terms of weighted average F1. On EN-ECPE, our model is better than the supervised learning model RankCP by $2.45\%$ . Also, we can observe that our models get the best ECPE results in almost all of the domains except the Society $\rightarrow$ Home setting, indicating the generalization ability of the proposed approach. It is worth mentioning that our model performs the best even it does not always
217
+
218
+ achieve the best performance on the EE subtask.
219
+
220
+ Note that there is a significant performance gap between the Chinese and English benchmarks. The cause of this gap mainly due to the distribution bias problem where the five domains used for testing in the Chinese benchmark are extracted from the same corpus, i.e., CH-ECPE, however the two domains under the English setting derive from the two different datasets RECCON and EN-ECPE. Therefore, compared with the Chinese domains, the two English domains share less knowledge between each other, making the model hard to transfer from one domain to another.
221
+
222
+ To sum up, for the Weighted Average ECPE metric, which is the most important indicator of the model's cross-domain ECPE capability, RankCP and UTOS, even when using domain adaptation techniques (MEDM, ada-TSA, and DANN), performed lower than our model on both Chinese and English datasets. This demonstrates that our method can effectively enable the model to learn cross-domain ECPE capabilities, and prove the strengths of our model in terms of identifying new causal relations between events and emotions in new domains.
223
+
224
+ Ablation Study. To analyze the influence that different module might exert on the proposed approach, we conduct the ablation study. The second row (named 'Original') in Table 3 refers to the result that our model could get when it is equipped with all the techniques presented in this work.
225
+
226
+ To study the effect of the regularizer $\Omega$ (see Sec. 3.2.2) for disentangled representation learning, we remove the $\Omega^{\mathrm{MMD}}$ during model training, as well as compare it with the other types of regularizers, including two independence measures Hilbert-Schmidt independence criterion (Gretton et al., 2005, (HSIC) and Variation of Information (Cheng et al., 2020, (VI). From Table 3 we can see that there is at least a $2.38\%$ drop in terms of F1 on CH-ECPE when the regularizer $\Omega^{\mathrm{MMD}}$ is removed. Adding HSIC does more harm than gain, and VI brings almost no benefits to the model. It is also not useful to only apply the regularizer $\Omega^b$ , which maximizes Bhattacharyya distance between the variational posteriors $q(\mathbf{Z}^{e}|\mathbf{X}_{ij})$ and $q(\mathbf{Z}^{c}|\mathbf{X}_{uv})$ from the same clause pair. However, the regularizer works when we maximize Bhattacharyya distance between two variational posteriors from all possible instance pairs in a batch. Similarly, the MMD-based reg
227
+
228
+ ularizer $\Omega^{\mathrm{MMD}}$ works also because it maximizes the MMD distance across instances.
229
+
230
+ Also, we remove Emotion and Event adapters and use the unified pair representation as the input for both the emotion and event encoders. By doing this we lost performance for all domains, as the Table 3 shows. It is proved that using the different vectors to represent the emotion / event variables is a better solution. In addition, we also conduct experiments on investigating the efficacy of self-training and regularizer, detailed in A.4.
231
+
232
+ # 5 Related Work
233
+
234
+ Emotion-Cause Pair Extraction. ECPE is a new task that aims to extract all potential emotions and corresponding causes in a unannotated document. The pioneer (Xia and Ding, 2019) proposes a two-step approach that first extracts emotion and cause clauses separately. Wei et al. (2020) propose a joint neural approach that applies graph attention to model the interrelations between clauses and rank ECPE. Zheng et al. (2022) first introduce prompt learning method into the ECPE task by decomposing the ECPE task into multiple sub-tasks and design prompts for each the sub-task.
235
+
236
+ Our model is different from existing works in two main aspects. Firstly, we tackle ECPE in the UDA setting, which is more difficult and practical as it allows distribution discrepancies between different domains. Secondly, we solve UDA-ECPE from a causal perspective and design a causal disentanglement mechanism to approximate emotion and cause random variables, enabling causal discovery to identify causal relations between them and consequently retrieve positive pairs.
237
+
238
+ Unsupervised Domain Adaptation. Domain adaptation addresses domain shift, allowing a pretrained model to generalize from a source to a target domain. It falls into two types: supervised and unsupervised (examples of both types can be found in A.5).
239
+
240
+ Our work focuses on unsupervised domain adaptation (UDA), specifically extracting cross-domain emotion-cause pairs from labeled source domains to unlabeled target domains. Unlike prior studies (Miller, 2019; Du et al., 2020; Zou et al., 2021; Karouzos et al., 2021; Zhang et al., 2021) on binary sentiment classification, we tackle non-binary variables (emotion and cause) that are causally linked. This is the first known attempt to discover causal relations in UDA.
241
+
242
+ <table><tr><td rowspan="2">Model</td><td colspan="3">Society → Entertainment ECPE (%)</td><td colspan="3">Society → Home ECPE (%)</td><td colspan="3">Society → Education ECPE (%)</td><td colspan="3">Society → Finance ECPE (%)</td></tr><tr><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td></tr><tr><td>Original</td><td>84.62</td><td>80.00</td><td>82.24</td><td>58.59</td><td>71.98</td><td>64.60</td><td>74.30</td><td>79.64</td><td>76.88</td><td>75.96</td><td>82.01</td><td>78.87</td></tr><tr><td>w/o MMD</td><td>69.63</td><td>74.02</td><td>71.76</td><td>49.77</td><td>48.70</td><td>49.23</td><td>65.54</td><td>69.78</td><td>67.60</td><td>68.65</td><td>58.63</td><td>63.30</td></tr><tr><td>w/o HSIC</td><td>59.87</td><td>73.23</td><td>65.88</td><td>40.51</td><td>51.76</td><td>45.66</td><td>61.73</td><td>73.38</td><td>67.05</td><td>64.23</td><td>61.57</td><td>62.88</td></tr><tr><td>w/o VI</td><td>63.51</td><td>74.02</td><td>68.36</td><td>45.97</td><td>52.52</td><td>49.09</td><td>60.24</td><td>71.94</td><td>65.57</td><td>69.12</td><td>60.59</td><td>64.61</td></tr><tr><td>w/o Ωb</td><td>61.66</td><td>61.42</td><td>61.54</td><td>39.50</td><td>55.57</td><td>46.58</td><td>62.91</td><td>76.26</td><td>68.94</td><td>60.31</td><td>67.45</td><td>63.71</td></tr><tr><td>w/o Ωbb</td><td>76.52</td><td>79.53</td><td>77.99</td><td>54.80</td><td>52.52</td><td>53.64</td><td>66.55</td><td>71.49</td><td>68.95</td><td>83.10</td><td>69.41</td><td>75.71</td></tr><tr><td>w/o ΩMMD</td><td>78.12</td><td>78.74</td><td>78.43</td><td>64.30</td><td>57.86</td><td>60.95</td><td>69.14</td><td>80.58</td><td>74.42</td><td>86.39</td><td>68.43</td><td>76.49</td></tr><tr><td>w/o Adapter</td><td>86.67</td><td>75.00</td><td>80.44</td><td>59.05</td><td>71.16</td><td>64.54</td><td>75.88</td><td>74.44</td><td>75.15</td><td>75.74</td><td>79.93</td><td>77.78</td></tr><tr><td>w/o Self-training</td><td>45.24</td><td>34.55</td><td>39.18</td><td>18.63</td><td>66.00</td><td>29.06</td><td>25.62</td><td>61.68</td><td>36.20</td><td>27.19</td><td>51.56</td><td>35.60</td></tr><tr><td>with Gold Emotions</td><td>89.83</td><td>96.36</td><td>92.98</td><td>78.32</td><td>89.80</td><td>83.67</td><td>90.48</td><td>91.02</td><td>90.75</td><td>74.16</td><td>91.35</td><td>81.86</td></tr></table>
243
+
244
+ Table 3: Experimental results of our models with different settings for the ECPE task on CH-ECPE.
245
+
246
+ Disentangled Representation Learning. The aim of disentangled representation learning (DRL) is to learn factorized representations that reveal the semantically meaningful factors hidden in the observed data (Bengio et al., 2013; Higgins et al., 2018). Mainstream DRL approaches in NLP (John et al., 2019; Cheng et al., 2020; Vishnubhotla et al., 2021) learn such representations by adopting variational autoencoders (Kingma and Welling, 2013, VAE), which achieve disentanglement via the Kullback-Leibler (Kullback and Leibler, 1951, KL) divergence minimization between the posterior of the latent factors and a standard multivariate normal prior. Additionally, a deep VAE model with innovative disentanglement priors, named VAEDPRIOR, is proposed for task-specific natural language generation in zero-shot or few-shot scenarios (Li et al., 2022).
247
+
248
+ Can LLMs well solve the causal discovery tasks? Despite their advanced linguistic capabilities and technological breakthroughs, LLMs struggle with causal inference in situations where the variable names and textual expressions in queries differ from those in their training data (Zecevic et al., 2023; Jin et al., 2024). The ability of LLMs to conduct causal discovery remains a subject of debate. For instance, researchers demonstrate that in specialized domains such as medicine and climate science, LLMs can accurately determine pairwise causal relationships, achieving accuracies as high as $97\%$ , albeit this success often depends on carefully tailored prompts (Kiciman et al., 2023). However, in other real-world domains, smaller, specialized models consistently outperform GPT-3 and GPT-4 in event causality identification (ECI) tasks—those that pinpoint cause/effect spans in text descriptions (Gao et al., 2019). These smaller and specialized models also
249
+
250
+ greatly surpass LLMs in binary pairwise causality inference (Romanou et al., 2023).
251
+
252
+ Given their training on vast quantities of natural language texts, LLMs are proficient at recognizing causal event pairs but falter with non-causal relationships, which raises concerns about their tendency to memorize rather than generalize event knowledge (Romanou et al., 2023; Jacovi et al., 2023; Feng et al., 2024). Specifically, ChatGPT has a serious hallucination on causal reasoning, making it an inadequate causal reasoner (Gao et al., 2023).
253
+
254
+ In summary, empirical research indicates that LLMs still exhibit deficiencies in causal discovery tasks, and there is ongoing debate about their effectiveness in handling causal discovery and reasoning. Consequently, we did not use LLMs as baseline models for comparison in this work. However, future research will include rigorous experiments and comparisons to assess LLMs' performance in causal discovery tasks.
255
+
256
+ # 6 Conclusion
257
+
258
+ We propose a novel causal discovery inspired VAE model and a customized self-training algorithm for the UDA-ECPE task. Herein, we propose to disentangle the latent representations of emotions from those of events by a novel variational posterior regularization technique that does not enforce independence between the corresponding latent random variables. This work also sheds the light on the connections between the task of causal relation identification in the NLP community and the causal discovery theory, paves the way for theoretically grounded approaches to comprehensively analyzing causal structures in texts.
259
+
260
+ # Limitations
261
+
262
+ A potential limitation of this work is that, due to resource and time constraints, we only used the ECPE classification model based on Bert, which matches our model's architecture, as the baseline model. We did not compare it with the latest large language models (LLMs). Recent studies indicate that LLMs are not particularly effective at solving causal discovery tasks. Therefore, in the future, we plan to include the following LLM-based baseline models: zero-shot learning-based LLM (encapsulating the ECPE task in a task instruction prompt to obtain answers from the LLM), few-shot learning-based LLM (selecting a few ECPE examples as in-context learning demonstrations), and SFT-based LLM (fine-tuning the LLM using the ECPE dataset as task instruction). In future work, we will compare the method proposed in this paper with LLM-based methods to empirically explore whether LLM models can be effectively applied to causal discovery tasks.
263
+
264
+ # Ethics Statement
265
+
266
+ This research involves the development of a model for emotion-cause pair extraction in an unsupervised domain adaptation setting, which carries certain ethical considerations.
267
+
268
+ First, our model relies on datasets that may contain biases inherent in the language, emotional expressions, or cultural differences, which could inadvertently lead to biased outputs. We have taken precautions to manually mitigate these biases by employing human annotators. However, we acknowledge that some biases may still remain.
269
+
270
+ Additionally, the use of causal discovery methods must be carefully considered, as incorrect identification of causal relationships could lead to misguided conclusions in real-world applications.
271
+
272
+ Also, we have released the source code and dataset, and we urge future researchers and practitioners to use the code responsibly, respecting data privacy and avoiding any misuse that could lead to negative social impacts.
273
+
274
+ Furthermore, we employed human annotators to improve the quality of our training and test datasets. We ensured that all annotators were informed about the purpose of the data annotation and that their work was conducted under fair labor practices, including appropriate compensation and voluntary participation.
275
+
276
+ # Acknowledgments
277
+
278
+ This work is partly supported by the ARC Future Fellowship FT190100039. This material is based on research sponsored by DARPA under agreement number HR001122C0029 (CCU Program). The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright notation thereon.
279
+
280
+ # References
281
+
282
+ Yoshua Bengio, Aaron Courville, and Pascal Vincent. 2013. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798-1828.
283
+ Anil Bhattacharyya. 1946. On a measure of divergence between two multinomial populations. Sankhya: the indian journal of statistics, pages 401-406.
284
+ John Blitzer, Mark Dredze, and Fernando Pereira. 2007. Biographies, bollywood, boom-boxes and blenders: Domain adaptation for sentiment classification. In Proceedings of the 45th annual meeting of the association of computational linguistics, pages 440-447.
285
+ Minmin Chen, Kilian Q Weinberger, and John Blitzer. 2011. Co-training for domain adaptation. Advances in neural information processing systems, 24.
286
+ Pengyu Cheng, Martin Renqiang Min, Dinghan Shen, Christopher Malon, Yizhe Zhang, Yitong Li, and Lawrence Carin. 2020. Improving disentangled text representation learning with information-theoretic guidance. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7530-7541.
287
+ Zifeng Cheng, Zhiwei Jiang, Yafeng Yin, Na Li, and Qing Gu. 2021. A unified target-oriented sequence-to-sequence model for emotion-cause pair extraction. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 29:2779-2791.
288
+ Hal Daumé III. 2007. Frustratingly easy domain adaptation. In Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics, pages 256-263.
289
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805.
290
+ Chunning Du, Haifeng Sun, Jingyu Wang, Qi Qi, and Jianxin Liao. 2020. Adversarial and domain-aware bert for cross-domain sentiment analysis. In Proceedings of the 58th annual meeting of the Association for Computational Linguistics, pages 4019-4028.
291
+ Tao Feng, Lizhen Qu, Niket Tandon, Zhuang Li, Xiaoxi Kang, and Gholamreza Haffari. 2024. From pre-training corpora to large language models: What factors influence LLM performance in causal discovery tasks? CoRR, abs/2407.19638.
292
+ Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Lavi-olette, Mario Marchand, and Victor Lempitsky. 2016. Domain-adversarial training of neural networks. The journal of machine learning research, 17(1):2096-2030.
293
+
294
+ Jinglong Gao, Xiao Ding, Bing Qin, and Ting Liu. 2023. Is chatgpt a good causal reasoner? A comprehensive evaluation. In Findings of the Association for Computational Linguistics: EMNLP 2023, Singapore, December 6-10, 2023, pages 11111-11126. Association for Computational Linguistics.
295
+ Lei Gao, Prafulla Kumar Choubey, and Ruihong Huang. 2019. Modeling document-level causal structures for event causal relation identification. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2019, Minneapolis, MN, USA, June 2-7, 2019, Volume 1 (Long and Short Papers), pages 1808-1817. Association for Computational Linguistics.
296
+ Xavier Glorot, Antoine Bordes, and Yoshua Bengio. 2011. Domain adaptation for large-scale sentiment classification: A deep learning approach. In ICML.
297
+ Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Scholkopf, and Alexander Smola. 2012. A kernel two-sample test. The Journal of Machine Learning Research, 13(1):723-773.
298
+ Arthur Gretton, Olivier Bousquet, Alex Smola, and Bernhard Scholkopf. 2005. Measuring statistical dependence with hilbert-schmidt norms. In International conference on algorithmic learning theory, pages 63-77. Springer.
299
+ Irina Higgins, David Amos, David Pfau, Sebastien Racaniere, Loic Matthew, Danilo Rezende, and Alexander Lerchner. 2018. Towards a definition of disentangled representations. arXiv preprint arXiv:1812.02230.
300
+ Alon Jacovi, Avi Caciularu, Omer Goldman, and Yoav Goldberg. 2023. Stop uploading test data in plain text: Practical strategies for mitigating data contamination by evaluation benchmarks. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6-10, 2023, pages 5075-5084. Association for Computational Linguistics.
301
+ Zhijing Jin, Jiarui Liu, Zhiheng Lyu, Spencer Poff, Mrinmaya Sachan, Rada Mihalcea, Mona T. Diab, and Bernhard Scholkopf. 2024. Can large language models infer causation from correlation? In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net.
302
+ Vineet John, Lili Mou, Hareesh Bahuleyan, and Olga Vechtomova. 2019. Disentangled representation learning for non-parallel text style transfer. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 424-434.
303
+
304
+ Constantinos Karouzos, Georgios Paraskevopoulos, and Alexandros Potamianos. 2021. Udalm: Unsupervised domain adaptation through language modeling. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2579-2590.
305
+ Emre Kiciman, Robert Ness, Amit Sharma, and Chenhao Tan. 2023. Causal reasoning and large language models: Opening a new frontier for causality. arXiv preprint arXiv:2305.00050.
306
+ Diederik P Kingma and Max Welling. 2013. Autoencoding variational bayes. arXiv preprint arXiv:1312.6114.
307
+ Solomon Kullback and Richard A Leibler. 1951. On information and sufficiency. The annals of mathematical statistics, 22(1):79-86.
308
+ Ananya Kumar, Tengyu Ma, and Percy Liang. 2020. Understanding self-training for gradual domain adaptation. In International Conference on Machine Learning, pages 5468-5479. PMLR.
309
+ Jingyang Li and Maosong Sun. 2007. Scalable term selection for text categorization. In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL), pages 774-782.
310
+ Zhuang Li, Lizhen Qu, Qiongkai Xu, Tongtong Wu, Tianyang Zhan, and Gholamreza Haffari. 2022. Variational autoencoder with disentanglement priors for low-resource task-specific natural language generation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 10335-10356.
311
+ Andre F. T. Martins and Ramón Fernandez Astudillo. 2016. From softmax to sparsemax: A sparse model of attention and multi-label classification. In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, volume 48 of JMLR Workshop and Conference Proceedings, pages 1614-1623. JMLR.org.
312
+ Timothy Miller. 2019. Simplified neural unsupervised domain adaptation. In Proceedings of the conference. Association for Computational Linguistics. North American Chapter: Meeting, volume 2019, page 414. NIH Public Access.
313
+ Barbara Plank. 2011. Domain adaptation for parsing. Citeseer.
314
+ Soujanya Poria, Navonil Majumder, Devamanyu Hazarika, Deepanway Ghosal, Rishabh Bhardwaj, Samson Yu Bai Jian, Pengfei Hong, Romila Ghosh, Abhinaba Roy, Niyati Chhaya, Alexander F. Gelbukh, and Rada Mihalcea. 2021. Recognizing emotion cause in conversations. Cogn. Comput., 13(5):1317-1332.
315
+
316
+ Alan Ramponi and Barbara Plank. 2020. Neural unsupervised domain adaptation in nlp—a survey. In Proceedings of the 28th International Conference on Computational Linguistics, pages 6838-6855.
317
+ Angelika Romanou, Syrielle Montariol, Debjit Paul, Léo Laugier, Karl Aberer, and Antoine Bosselut. 2023. CRAB: assessing the strength of causal relationships between real-world events. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6-10, 2023, pages 15198-15216. Association for Computational Linguistics.
318
+ Halsey Lawrence Royden and Patrick Fitzpatrick. 1988. Real analysis, volume 32. Macmillan New York.
319
+ Jake Russian, Jason Jo, Randall C O'Reilly, and Yoshua Bengio. 2019. Compositional generalization in a deep seq2seq model by separating syntax and semantics. arXiv preprint arXiv:1904.09708.
320
+ Maosong Sun, Jingyang Li, Zhipeng Guo, Z Yu, Y Zheng, X Si, and Z Liu. 2016. Thuctc: an efficient chinese text classifier. *GitHub Repository*.
321
+ Gerrit van den Burg and Chris Williams. 2021. On memorization in probabilistic deep generative models. Advances in Neural Information Processing Systems, 34:27916-27928.
322
+ Krishnapriya Vishnubhotla, Graeme Hirst, and Frank Rudzicz. 2021. An evaluation of disentangled representation learning for texts. In *Findings of the Association for Computational Linguistics: ACLIJCNLP* 2021, pages 1939-1951.
323
+ Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2019. Superglue: A stickier benchmark for general-purpose language understanding systems. Advances in neural information processing systems, 32.
324
+ Yufei Wang, Haoliang Li, Hao Cheng, Bihan Wen, Lap-Pui Chau, and Alex C. Kot. 2022. Variational disentanglement for domain generalization. Trans. Mach. Learn. Res., 2022.
325
+ Penghui Wei, Jiahao Zhao, and Wenji Mao. 2020. Effective inter-clause modeling for end-to-end emotion-cause pair extraction. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 3171-3181.
326
+ Xiaofu Wu, Suofei Zhang, Quan Zhou, Zhen Yang, Chunming Zhao, and Longin Jan Latecki. 2021. Entropy minimization versus diversity maximization for domain adaptation. IEEE Transactions on Neural Networks and Learning Systems.
327
+ Rui Xia and Zixiang Ding. 2019. Emotion-cause pair extraction: A new task to emotion analysis in texts. arXiv preprint arXiv:1906.01267.
328
+
329
+ Samira Zad, Maryam Heidari, H James Jr, and Ozlem Uzuner. 2021. Emotion detection of textual data: An interdisciplinary survey. In 2021 IEEE World AI IoT Congress (AIIoT), pages 0255-0261. IEEE.
330
+ Matej Zecevic, Moritz Willig, Devendra Singh Dhami, and Kristian Kersting. 2023. Causal parrots: Large language models may talk causality but are not causal. Trans. Mach. Learn. Res., 2023.
331
+ Rongsheng Zhang, Yinhe Zheng, Xiaoxi Mao, and Minlie Huang. 2021. Unsupervised domain adaptation with adapter. In Advances in Neural Information Processing Systems.
332
+ Han Zhao, Remi Tachet Des Combes, Kun Zhang, and Geoffrey Gordon. 2019. On learning invariant representations for domain adaptation. In In-
333
+
334
+ ternational Conference on Machine Learning, pages 7523-7532. PMLR.
335
+ Xiaopeng Zheng, Zhiyue Liu, Zizhen Zhang, Zhaoyang Wang, and Jiahai Wang. 2022. Uecaprompt: Universal prompt for emotion cause analysis. In Proceedings of the 29th International Conference on Computational Linguistics, COLING 2022, Gyeongju, Republic of Korea, October 12-17, 2022, pages 7031-7041. International Committee on Computational Linguistics.
336
+ Han Zou, Jianfei Yang, and Xiaojian Wu. 2021. Unsupervised energy-based adversarial domain adaptation for cross-domain text classification. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 1208-1218.
337
+
338
+ # A Appendix
339
+
340
+ # A.1 Visualization of sentence embeddings for English UDA-ECPE corpora
341
+
342
+ As shown in Fig.4a and Fig.4b, regardless of a clause mentions an emotion or an emotion cause, there is a very clear boundary between the two domains. Their domain differences are largely caused by the differences between the two datasets.
343
+
344
+ # A.2 The essence of machine learning and mathematical considerations in designing the regularization term $\Omega$
345
+
346
+ In the original design of the VAE's ELBO, we need to minimize $\mathbb{D}_{\mathrm{KL}}(q(\mathbf{Z}^e |\mathbf{X}_{ij}\| p(\mathbf{Z}^e))$ and $\mathbb{D}_{\mathrm{KL}}(q(\mathbf{Z}^c |\mathbf{X}_{ij}\| p(\mathbf{Z}^c))$ . This is to minimize the difference between the posterior distribution of the latent variables output by the encoder and the prior distribution, ensuring that the latent variable distribution has reasonable properties while learning the data generation process.
347
+
348
+ In our design, we introduced a regularizer $\Omega$ , to reduce the overlap between $q(\mathbf{Z}^e|\mathbf{X}_{ij})$ and $q(\mathbf{Z}^c|\mathbf{X}_{ij})$ . This means increasing the divergence between the posterior distributions of the latent variables output by the emotion and event encoders to minimize the overlap.
349
+
350
+ The above two points are not contradictory. By combining the ELBO and the regularizer loss, we can train our model to make the posterior distributions of the encoder's latent variables, $q(\mathbf{Z}^e | \mathbf{X}_{ij})$ and $q(\mathbf{Z}^c | \mathbf{X}_{ij})$ , respectively closer to the prior distributions $p(\mathbf{Z}^e)$ and $p(\mathbf{Z}^c)$ .
351
+
352
+ Under this constraint, we can increase the "distance" between the posterior distributions of the two encoders' latent variables, i.e., $q(\mathbf{Z}^e | \mathbf{X}_{ij})$ and $q(\mathbf{Z}^c | \mathbf{X}_{ij})$ . Since the prior distributions $p(\mathbf{Z}^e)$ and $p(\mathbf{Z}^c)$ are two predefined multivariate Gaussian distributions that are independent of each other, we do not need to constrain the distance between these two prior distributions.
353
+
354
+ Therefore, we can consider $p(\mathbf{Z}^e)$ and $p(\mathbf{Z}^c)$ as fixed in the vector space, and minimizing $\mathbb{D}_{\mathrm{KL}}(q(\mathbf{Z}^e|\mathbf{X}_{ij}\| p(\mathbf{Z}^e))$ and $\mathbb{D}_{\mathrm{KL}}(q(\mathbf{Z}^c|\mathbf{X}_{ij}\| p(\mathbf{Z}^c))$ is to make the posterior distributions in the vector space as close as possible to $p(\mathbf{Z}^e)$ and $p(\mathbf{Z}^c)$ . Maximizing the distance between $q(\mathbf{Z}^e|\mathbf{X}_{ij})$ and $q(\mathbf{Z}^c|\mathbf{X}_{ij})$ is to increase the distance between these two posterior distributions while they are close to $p(\mathbf{Z}^e)$ and $p(\mathbf{Z}^c)$ .
355
+
356
+ Based on the above discussion, the design of the ELBO and the regularizer $\Omega$ does not conflict.
357
+
358
+ However, of course, we must recognize that the posterior distributions of $p(\mathbf{Z}^e)$ and $p(\mathbf{Z}^c)$ are both close to a multivariate normal distribution following $N(0,I)$ , which may lead to conflicts due to their overly similar distributions, resulting in reduced distinguishability. We can use different model structures to generate $p(\mathbf{Z}^e)$ and $p(\mathbf{Z}^c)$ that are as different as possible in distribution for the same input $\mathbf{X}_{ij}$ , thereby reducing the risk of conflict. We plan to conduct such modeling in future work to further empirically study the issue of posterior distribution conflict.
359
+
360
+ # A.3 Baseline Model and Implementation Detail
361
+
362
+ <table><tr><td>Language</td><td>Domain</td><td>#Docs</td></tr><tr><td rowspan="5">Chinese</td><td>Home</td><td>746</td></tr><tr><td>Society</td><td>659</td></tr><tr><td>Finance</td><td>263</td></tr><tr><td>Education</td><td>153</td></tr><tr><td>Entertainment</td><td>52</td></tr><tr><td rowspan="2">English</td><td>EN-ECPE</td><td>1226</td></tr><tr><td>RECCON</td><td>780</td></tr></table>
363
+
364
+ Table 4: The statistics of the UDA-ECPE corpora.
365
+
366
+ RankCP performs the emotion-cause pair extraction using the graph attention network, which models the inter-clause information and extracts the valid emotion-cause pairs from a ranking perspective.
367
+
368
+ UTOS adopts the unified sequence labeling approach to extract emotion-cause pairs in a way that the position of emotion and cause clauses as well as how they pair can be predicted via one pass of sequence labeling.
369
+
370
+ UECA-Prompt designs sub-propmits for the emotion extraction, cause extraction, and emotion-cause pair extraction sub-tasks, then synthesize the sub-prompts to solve the ECA task.
371
+
372
+ Implementation Details. We adopt $\mathrm{BERT}_{ZH}^*$ and $\mathrm{BERT}_{EN}^{\dagger}$ as the clause pair encoders for Chinese and English, respectively. The size of hidden bidirectional LSTM in emotion extraction model is set to 100. The outputted dimensions of emotion classifier and event predictor in CAREL-VAE are set to 24. The confidence threshold for the self-training of emotion extraction model is set to 0.7.
373
+
374
+ ![](images/cb36db599a257e5095cb76c6a37fffb887e11ede4d253595635e92e7d6d5d8be.jpg)
375
+ (a) English emotion cause clauses
376
+
377
+ ![](images/e2b616eb630313c6042519b0278a878530317038959adeb24c8cdca9167b84e3.jpg)
378
+ (b) English emotion clauses
379
+ Figure 4: The t-SNE visualizations of the clause embeddings from the English UDA-ECPE corpora
380
+
381
+ The number of iterations for the self-training of event-emotion relation model is set to 50.
382
+
383
+ We train the emotion extraction model and the CAREL-VAE by using Adam optimizer, where the learning rates and the mini-batch sizes are 2e-5 and 4 and 1e-5 and 64, respectively. As for regularization, we apply dropout to both of them with the dropout rate 0.5.
384
+
385
+ # A.4 Ablation Study in Self Training
386
+
387
+ We train the model using the source domain's ground-truth labels, and then directly apply this supervised-learning model to the target domain without any self-training. In the 'w/o Self-training' row of the Table 3, we can see the model experiences a major performance drop, indicating the usefulness of the self-training.
388
+
389
+ Furthermore, it is also interesting to explore the extent to which the predicted emotion labels, aka EE's results, will influence the downstream ECPE's performance. We therefore utilize the ground-truth emotion labels instead of the ones that are predicted by the emotion extraction model as the input of the ECPE task. In the last row of the Table 3, the minimum improvement observed is $2.99\%$ in terms of F1 among all domains, showing that the quality of the emotion prediction does have a certain impact on the ECPE task. However, our model can still achieve the best results even we only use an emotion extraction model with a moderate performance to predict the emotions, whose task is not the focus of this work.
390
+
391
+ Regularizer. To further understand how $\Omega^{\mathrm{MMD}}$ contributes to the UDA-ECPE task, we examine the performance of our original model and its variant for two different types of emotion-cause pairs
392
+
393
+ including normal and self-chain, the results are shown in Figure 5. Observe that the performance improvement is mainly attributed to the significant increment of precision in self-chain cases. This suggests that disentangled representation learning helps approximate emotion and cause random variables from emotion-cause pairs, and ultimately aids in the causal discovery process.
394
+
395
+ Improved Self-training. For CD-SelfTRAIN, we examine the usefulness of always constructing a new training set in each iteration during selftraining. As a comparison, we only update the training set from the previous iteration by adding new documents. In this way, negative examples in the training set remain the same once their documents are added to the training set. Fig. 6 reports the proportion of changed positive examples and the proportion of changed examples in each iteration, as well as changes of precision/recall/F1 over time. We can see that changing negative examples in each iteration indeed prevents the model from memorizing the training examples so that it improves the generalization capability of our model.
396
+
397
+ # A.5 Additional Content for related work
398
+
399
+ Depending on the situation of target domain data, Domain adaptation can be categorized into two broad classes: supervised domain adaptation and unsupervised domain adaptation. The former can achieve promising results given the small amount of target domain labeled data (Daume III, 2007; Plank, 2011). Conversely, the unsupervised domain adaptation (UDA) does not require any data in the target domain to be labeled and thus is more attractive and challenging (Glorot et al., 2011; Ramponi and Plank, 2020). Our work falls under the UDA research area. Specifically, cross-domain
400
+
401
+ ![](images/7f91ac876a4f449d23b40f97547967f8f5cd298059ca15216bd731a8570d6f8a.jpg)
402
+ Figure 5: Experimental results of CAREL-VAE w/o MMD and CAREL-VAE for normal and self-chain cases. The normal case refers to an emotion-cause pair composed of two different clauses, while for the self-chain case a pair are mentioned in the same clause.
403
+
404
+ emotion-cause pair extraction from one source domain with labels to various unlabeled target domains. Unlike most previous works (Miller, 2019; Du et al., 2020; Zou et al., 2021; Karouzos et al., 2021; Zhang et al., 2021) on cross-domain sentiment classification that solely work with a bi
405
+
406
+ nary categorical variable (i.e., positive or negative sentiment), we simultaneously focus on two non-binary ones (i.e., emotion and cause) that are causally dependent. To the best of our knowledge, this is the first attempt at discovering causal relations in the context of UDA.
407
+
408
+ ![](images/312cf606bc45a2e039569c2a354c538e3f26e0c1972a459f664ca7616af2ec68.jpg)
409
+ Figure 6: Experimental results of our variant models that fixes negative samples during the self-training (denoted as "CAREL-VAE w/ FN") and our original model CAREL-VAE.
410
+
411
+ <table><tr><td rowspan="2">Model</td><td colspan="3">EE (%)</td><td colspan="3">ECPE (%)</td><td colspan="3">EE (%)</td><td colspan="3">ECPE (%)</td></tr><tr><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td></tr><tr><td>(a) S: Society</td><td colspan="6">Society → Home</td><td colspan="6">Society → Finance</td></tr><tr><td>RankCP</td><td>21.90</td><td>25.22</td><td>23.44</td><td>13.14</td><td>14.54</td><td>13.80</td><td>18.04</td><td>21.00</td><td>19.41</td><td>8.56</td><td>9.86</td><td>9.17</td></tr><tr><td>RankCP+Ada-TSA</td><td>18.55</td><td>21.16</td><td>19.77</td><td>12.30</td><td>13.48</td><td>12.86</td><td>15.86</td><td>17.44</td><td>16.61</td><td>7.12</td><td>7.75</td><td>7.42</td></tr><tr><td>RankCP+DANN</td><td>91.51</td><td>98.15</td><td>94.72</td><td>51.69</td><td>93.85</td><td>66.67</td><td>85.06</td><td>93.24</td><td>88.96</td><td>40.38</td><td>75.35</td><td>52.58</td></tr><tr><td>RankCP+MEDM</td><td>20.17</td><td>23.12</td><td>21.55</td><td>12.77</td><td>14.07</td><td>13.39</td><td>20.43</td><td>23.84</td><td>22.00</td><td>9.76</td><td>11.27</td><td>10.46</td></tr><tr><td>UTOS</td><td>91.51</td><td>47.72</td><td>62.73</td><td>70.99</td><td>35.58</td><td>47.40</td><td>93.33</td><td>49.82</td><td>64.97</td><td>71.33</td><td>37.68</td><td>49.31</td></tr><tr><td>UTOS+Ada-TSA</td><td>18.55</td><td>21.16</td><td>19.77</td><td>12.30</td><td>13.48</td><td>12.86</td><td>15.86</td><td>17.44</td><td>16.61</td><td>7.12</td><td>7.75</td><td>7.42</td></tr><tr><td>UTOS+DANN</td><td>84.96</td><td>61.13</td><td>71.10</td><td>56.41</td><td>40.07</td><td>46.86</td><td>89.55</td><td>64.06</td><td>74.69</td><td>57.84</td><td>41.55</td><td>48.36</td></tr><tr><td>UTOS+MEDM</td><td>52.80</td><td>55.60</td><td>54.16</td><td>14.63</td><td>33.32</td><td>20.31</td><td>15.31</td><td>89.68</td><td>26.15</td><td>0.64</td><td>13.03</td><td>1.21</td></tr><tr><td>UECA-Prompt</td><td>75.59</td><td>74.66</td><td>75.12</td><td>50.92</td><td>61.43</td><td>55.69</td><td>71.01</td><td>69.75</td><td>70.38</td><td>51.13</td><td>62.63</td><td>56.30</td></tr><tr><td>Ours</td><td>81.77</td><td>76.14</td><td>78.85</td><td>58.59</td><td>71.98</td><td>64.60</td><td>86.42</td><td>81.49</td><td>83.88</td><td>75.96</td><td>82.01</td><td>78.87</td></tr><tr><td>(a) S: Society</td><td colspan="6">Society → Education</td><td colspan="6">Society → Entertainment</td></tr><tr><td>RankCP</td><td>26.13</td><td>31.90</td><td>28.73</td><td>18.59</td><td>22.29</td><td>20.27</td><td>26.87</td><td>32.73</td><td>29.51</td><td>13.43</td><td>16.36</td><td>14.75</td></tr><tr><td>RankCP+Ada-TSA</td><td>20.62</td><td>24.54</td><td>22.41</td><td>11.86</td><td>13.86</td><td>12.78</td><td>23.44</td><td>27.27</td><td>25.21</td><td>6.25</td><td>7.27</td><td>6.72</td></tr><tr><td>RankCP+DANN</td><td>82.87</td><td>92.02</td><td>87.21</td><td>43.01</td><td>74.10</td><td>54.42</td><td>77.78</td><td>89.09</td><td>83.05</td><td>30.48</td><td>58.18</td><td>40.00</td></tr><tr><td>RankCP+MEDM</td><td>24.14</td><td>30.06</td><td>26.78</td><td>13.30</td><td>16.27</td><td>14.63</td><td>14.52</td><td>16.36</td><td>15.38</td><td>6.45</td><td>7.27</td><td>6.84</td></tr><tr><td>UTOS</td><td>92.21</td><td>43.56</td><td>59.17</td><td>67.09</td><td>31.93</td><td>43.27</td><td>71.43</td><td>27.27</td><td>39.47</td><td>47.62</td><td>18.18</td><td>26.32</td></tr><tr><td>UTOS+Ada-TSA</td><td>20.62</td><td>24.54</td><td>22.41</td><td>11.86</td><td>13.86</td><td>12.78</td><td>23.44</td><td>27.27</td><td>25.21</td><td>6.25</td><td>7.27</td><td>6.72</td></tr><tr><td>UTOS+DANN</td><td>86.92</td><td>57.06</td><td>68.89</td><td>62.28</td><td>42.77</td><td>50.71</td><td>80.65</td><td>45.45</td><td>58.14</td><td>48.39</td><td>27.27</td><td>34.88</td></tr><tr><td>UTOS+MEDM</td><td>53.00</td><td>62.50</td><td>46.01</td><td>24.23</td><td>28.31</td><td>26.11</td><td>57.50</td><td>41.82</td><td>48.42</td><td>12.64</td><td>20.00</td><td>15.49</td></tr><tr><td>UECA-Prompt</td><td>75.84</td><td>82.82</td><td>79.17</td><td>48.84</td><td>62.87</td><td>54.97</td><td>73.58</td><td>70.91</td><td>72.22</td><td>45.21</td><td>60.00</td><td>51.56</td></tr><tr><td>Ours</td><td>83.85</td><td>82.82</td><td>83.33</td><td>74.30</td><td>79.64</td><td>76.88</td><td>86.00</td><td>78.18</td><td>81.90</td><td>84.62</td><td>80.00</td><td>82.24</td></tr><tr><td>(b) S: Home</td><td colspan="6">Home → Society</td><td colspan="6">Home → Finance</td></tr><tr><td>RankCP</td><td>83.88</td><td>91.82</td><td>87.67</td><td>44.33</td><td>75.42</td><td>55.84</td><td>86.56</td><td>93.95</td><td>90.10</td><td>43.41</td><td>75.35</td><td>55.08</td></tr><tr><td>RankCP+Ada-TSA</td><td>16.38</td><td>19.37</td><td>17.75</td><td>8.25</td><td>9.51</td><td>8.84</td><td>20.42</td><td>24.20</td><td>22.15</td><td>8.11</td><td>9.51</td><td>8.75</td></tr><tr><td>RankCP+DANN</td><td>29.29</td><td>37.45</td><td>32.87</td><td>26.79</td><td>33.43</td><td>29.74</td><td>25.00</td><td>29.54</td><td>27.08</td><td>14.76</td><td>17.25</td><td>15.91</td></tr><tr><td>RankCP+MEDM</td><td>15.43</td><td>17.36</td><td>16.34</td><td>6.89</td><td>7.55</td><td>7.20</td><td>7.61</td><td>7.47</td><td>7.54</td><td>2.17</td><td>2.11</td><td>2.14</td></tr><tr><td>UTOS</td><td>88.56</td><td>51.08</td><td>64.79</td><td>70.69</td><td>40.08</td><td>51.16</td><td>90.00</td><td>57.65</td><td>70.28</td><td>62.30</td><td>40.14</td><td>48.82</td></tr><tr><td>UTOS+Ada-TSA</td><td>16.38</td><td>19.37</td><td>17.75</td><td>8.25</td><td>9.51</td><td>8.84</td><td>20.42</td><td>24.20</td><td>22.15</td><td>8.11</td><td>9.51</td><td>8.75</td></tr><tr><td>UTOS+DANN</td><td>87.98</td><td>62.98</td><td>73.41</td><td>63.04</td><td>44.62</td><td>52.25</td><td>89.36</td><td>59.79</td><td>71.64</td><td>63.16</td><td>42.25</td><td>50.63</td></tr><tr><td>UTOS+MEDM</td><td>33.96</td><td>65.28</td><td>44.67</td><td>5.52</td><td>37.20</td><td>9.61</td><td>13.85</td><td>92.88</td><td>24.11</td><td>0.61</td><td>14.44</td><td>1.16</td></tr><tr><td>UECA-Prompt</td><td>76.52</td><td>85.08</td><td>80.57</td><td>66.33</td><td>63.11</td><td>64.68</td><td>78.04</td><td>82.21</td><td>80.07</td><td>61.96</td><td>59.17</td><td>60.53</td></tr><tr><td>Ours</td><td>86.07</td><td>79.77</td><td>82.80</td><td>68.78</td><td>75.07</td><td>71.79</td><td>81.79</td><td>84.70</td><td>83.22</td><td>76.03</td><td>83.39</td><td>79.54</td></tr><tr><td>(b) S: Home</td><td colspan="6">Home → Education</td><td colspan="6">Home → Entertainment</td></tr><tr><td>RankCP</td><td>83.33</td><td>92.02</td><td>87.46</td><td>44.48</td><td>77.71</td><td>56.58</td><td>84.48</td><td>89.09</td><td>86.73</td><td>36.78</td><td>58.18</td><td>45.07</td></tr><tr><td>RankCP+Ada-TSA</td><td>18.82</td><td>21.47</td><td>20.06</td><td>10.75</td><td>12.05</td><td>11.36</td><td>22.06</td><td>27.27</td><td>24.39</td><td>5.88</td><td>7.27</td><td>6.50</td></tr><tr><td>RankCP+DANN</td><td>31.34</td><td>41.72</td><td>35.79</td><td>17.51</td><td>22.89</td><td>19.84</td><td>27.27</td><td>32.73</td><td>29.75</td><td>13.64</td><td>16.36</td><td>14.88</td></tr><tr><td>RankCP+MEDM</td><td>22.04</td><td>25.15</td><td>23.50</td><td>8.60</td><td>9.64</td><td>9.09</td><td>23.81</td><td>27.27</td><td>25.42</td><td>6.35</td><td>7.27</td><td>6.78</td></tr><tr><td>UTOS</td><td>92.13</td><td>50.31</td><td>65.08</td><td>70.79</td><td>37.95</td><td>49.41</td><td>78.26</td><td>32.73</td><td>46.15</td><td>52.17</td><td>21.82</td><td>30.77</td></tr><tr><td>UTOS+Ada-TSA</td><td>18.82</td><td>21.47</td><td>20.06</td><td>10.75</td><td>12.05</td><td>11.36</td><td>22.06</td><td>27.27</td><td>24.39</td><td>5.88</td><td>7.27</td><td>6.50</td></tr><tr><td>UTOS+DANN</td><td>85.32</td><td>57.06</td><td>68.38</td><td>60.91</td><td>40.36</td><td>48.55</td><td>78.12</td><td>45.45</td><td>57.47</td><td>37.50</td><td>21.82</td><td>27.59</td></tr><tr><td>UTOS+MEDM</td><td>39.21</td><td>54.60</td><td>45.64</td><td>6.45</td><td>30.12</td><td>10.63</td><td>46.67</td><td>50.91</td><td>48.70</td><td>9.3</td><td>21.82</td><td>13.04</td></tr><tr><td>UECA-Prompt</td><td>75.14</td><td>81.60</td><td>78.24</td><td>66.27</td><td>65.87</td><td>66.07</td><td>75.93</td><td>74.55</td><td>75.23</td><td>58.18</td><td>58.18</td><td>58.18</td></tr><tr><td>Ours</td><td>80.72</td><td>82.21</td><td>81.46</td><td>84.71</td><td>79.64</td><td>82.10</td><td>84.31</td><td>78.18</td><td>81.13</td><td>83.33</td><td>81.82</td><td>82.57</td></tr></table>
412
+
413
+ Table 5: Experimental results of our models and baselines utilizing precision (P), recall (R), and F1 score (F1) as metrics on the UDA-ECPE task. Emotion Extraction is denoted by EE. S refers to source domain.
2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eca016c5add502e17d6203295ce84ef974f1f3ab767955d3e7830bfef43e956f
3
+ size 1189625
2024/Causal Discovery Inspired Unsupervised Domain Adaptation for Emotion-Cause Pair Extraction/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/f3f69ae1-114a-4d0d-8660-d853f1f2496b_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/f3f69ae1-114a-4d0d-8660-d853f1f2496b_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/f3f69ae1-114a-4d0d-8660-d853f1f2496b_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95082510fda3ae2a75b510c66bd4ba24969b3283ea5839f0b1d19dca9e68d37d
3
+ size 868682
2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/full.md ADDED
@@ -0,0 +1,506 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Chain of Condition: Construct, Verify and Solve Conditions for Conditional Question Answering
2
+
3
+ Jiuheng Lin<sup>1</sup>, Yuxuan Lai<sup>2,3</sup>, Yansong Feng<sup>1*</sup>
4
+
5
+ $^{1}$ Wangxuan Institute of Computer Technology, Peking University, China
6
+ State Key Laboratory of General Artificial Intelligence, Peking University, China
7
+ $^{2}$ Department of Computer Science, The Open University of China
8
+ <sup>3</sup> Engineering Research Center of Integration and Application of Digital Learning Technology, Ministry of Education linjiuheng@stu.pku.edu.cn erutan@pu.org.cn fengyansong@pu.edu.cn
9
+
10
+ # Abstract
11
+
12
+ Conditional question answering (CQA) is an important task that aims to find probable answers and identify missing conditions. Existing approaches struggle with CQA due to two challenges: (1) precisely identifying necessary conditions and the logical relationship, and (2) verifying conditions to detect any that are missing. In this paper, we propose a novel prompting approach, Chain of condition, by first identifying all conditions and constructing their logical relationships explicitly according to the document, then verifying whether these conditions are satisfied, finally solving the logical expression to indicate any missing conditions and generating the answer accordingly. Experiments on two CQA benchmark datasets show our chain of condition outperforms existing prompting baselines, establishing a new state of the art. Furthermore, with only a few examples, our method can facilitate GPT-3.5-Turbo or GPT-4 to outperform all existing supervised models. $^{1}$
13
+
14
+ # 1 Introduction
15
+
16
+ Conditional question answering (CQA) aims to answer questions where the information provided by the user may not be sufficient, and any missing information should be requested from the user to determine the answer (Saeidi et al., 2018; Min et al., 2020; Sun et al., 2021a; Dhingra et al., 2022; Ju et al., 2022; Zhang et al., 2023). CQA is a challenging and promising task, which has been gaining increasing attention recently (Sun et al., 2022; Du et al., 2023; Wang et al., 2023; Hussain et al., 2023; Puerto et al., 2024). Figure 1 shows an example. The user asks for the amount of benefit she would receive, but according to the policy, the applicant must not claim for other benefits and has an unemployment certificate as prerequisite. These
17
+
18
+ ![](images/07fb0352de9795e831ffb23f620c4765aac2e4745b8d529f70569c7384333ae2.jpg)
19
+
20
+ # Childbirth Benefit Policy
21
+
22
+ ![](images/e2e5733abf26323063a62848121638eb89fc5d2e6df5dbe239340960eeb4bfff.jpg)
23
+
24
+ ![](images/0878ab0f49b602464f1f9398ffdc64fb0963b653d88ee5978b853fd802485200.jpg)
25
+
26
+ # Question
27
+
28
+ Scenario: I am unemployed. Recently, I have given birth to a child. My family is in great financial difficulty. We are the birth parents of the child.
29
+
30
+ Question: I want to know how much I can get for any support from the government?
31
+
32
+ ![](images/62df3744d98c4282c402859f65893f3da06cbba5858fd42fb545c80cc0d16a90.jpg)
33
+
34
+ # Answer
35
+
36
+ Answer: up to $120000
37
+
38
+ Missing Conditions: ["You didn't claim other benefits", "If you have no income now and you are currently covered for unemployment, you need to apply for a certificate from the local social welfare department"]
39
+
40
+ Figure 1: An example of conditional question answering. All conditions are colored. The conditions in green are satisfied by the user's description, while those in red are not mentioned. The second red condition, has lived together for at least 3 years, is not necessary because it has an "either" relationship with an already satisfied condition. But the other two red conditions are required to make the answer "up to $120000" correct.
41
+
42
+ conditions are not mentioned in the user's description, therefore it is necessary to remind the user to provide this missing information to determine the benefit amount, which is up to $120000.
43
+
44
+ The mains challenges for CQA are twofold. The first one is identifying all conditions from the document and analyzing their relationship. In Figure 1, all conditions are highlighted, while the majority of the description focuses on irrelevant aspects of Childbirth Benefit, making it difficult to accurately identify all relevant conditions. Moreover, there are specific relationships between conditions. For example, the conditions you are the birth parent and you didn't claim other benefits must be satisfied simultaneously, whereas the conditions is the biological father of the child and has lived together for at least 3 years require at least one to be satisfied. Precisely identifying all conditions and their
45
+
46
+ relationships according to the document is a prerequisite for the CQA task, but existing approaches primarily build end-to-end systems that overlook this challenge (Ainslie et al., 2020; Izacard and Grave, 2021; Hussain et al., 2023). These methods take the whole document as input, train models to implicitly identify conditions and parse their relationships, and directly output the answer along with any missing conditions. Consequently, due to limited reasoning abilities in existing models, these approaches struggle with questions involving multiple conditions and complex relationships among them. Besides, their solution path is implicit thus impossible for users to interpret.
47
+
48
+ Verifying conditions and solving their logical relationships is the second challenge (Sun et al., 2022). Each condition may be satisfied, contradicted or ignored by the user, and must be correctly verified. Furthermore, multiple conditions along with their logical relationship will form a logical expression, and solving this expression is necessary for accurately identifying all the conditions missing from the user's input. For example, in Figure 1, the conditions in green are satisfied according to the query, while those in red are not mentioned. Moreover, although the condition has lived together for at least 3 years is not mentioned by the user, it has an "either" relationship with an already satisfied condition, is the biological father of the child. Therefore, the condition has lived together for at least 3 years is not necessary for user to satisfy. Determining the un-necessity of such condition requires correctly solving the logical expression of conditions. Previous works train models to verify and solve conditions simultaneously, requiring models to implicitly resolve the expression (Du et al., 2023; Wang et al., 2023) and leading to computational errors and reduced precision.
49
+
50
+ To address these challenges, we introduce Chain of Condition, a novel prompting framework for constructing, verifying and solving conditions in CQA tasks. Chain of condition include three main steps: first explicitly identifying all conditions and constructing the logical expression about the conditions according to the document, next verifying whether each condition has been satisfied by the user, finally solving the logical expression precisely through tool use to indicate missing conditions and generating the appropriate answer.
51
+
52
+ We conduct experiments on two CQA benchmark datasets ConditionalQA (Sun et al., 2021a) and ShARC (Saeidi et al., 2018). The results show
53
+
54
+ that chain of condition significantly outperforms all prompting baselines. And with backbone models like GPT-3.5-Turbo or GPT-4, our chain of condition even performs better than all supervised baselines.
55
+
56
+ Our contributions are summarized as follows:
57
+
58
+ (1) We propose Chain of condition, an construct-verify-solve three-step prompting framework for conditional question answering. Experiments on benchmark datasets show our method outperforms existing prompting baselines, establishing a new state-of-the-art.
59
+ (2) Our proposed framework can enhance backbone models like GPT-3.5-Turbo or GPT-4 to surpasses all fully supervised baselines, with only a few examples.
60
+ (3) Our Chain of condition can create coherent and interpretable reasoning paths that are easier for humans to understand.
61
+
62
+ # 2 Related Works
63
+
64
+ Prompting Methods for LLMs Large language models can be guided to solve tasks in a step-by-step manner (Wei et al., 2023). For more complex reasoning tasks such as multi-hop QA (Yang et al., 2018) or math problems (Cobbe et al., 2021), previous works typically address them by decomposing the question into simple sub-questions for models to solve sequentially (Yao et al., 2023; Press et al., 2023; Yu et al., 2023; Servantez et al., 2024; Tao et al., 2024). This decomposition reduces task difficulty and improves interpretability. Another approach to enhance performance on reasoning tasks is by combining LLMs with symbolic interpreters such as a Python runtime (Chen et al., 2023; Gao et al., 2023; Lyu et al., 2023) or a SAT solver (Ye et al., 2023). Compared to textual reasoning, program-based reasoning is executed accurately, thus achieving high-precision reasoning in complex questions. Furthermore, Puerto et al. (2024) compared the performance of these two approaches and showed that introducing code in the prompt may elicit the reasoning ability for the CQA task. In this work, we integrate the ideas of decomposing task and leveraging code interpreter into our framework, enabling it to benefit from both approaches' advantages. This not only improves interpretability but also increases precision.
65
+
66
+ Supervised Methods for the CQA task Various pre-trained models have been proposed for the con
67
+
68
+ ![](images/8c423ea9c8087992f2d05395fc59823438ddd985a3672c5279f6c93fb9fd5ff1.jpg)
69
+ Figure 2: Method overview. Chain of condition consists of three main steps: condition identification and logical construction, condition verification, expression solution and answer generation.
70
+
71
+ ![](images/075f1da1d9c8ca8f60b2b22e1761109ffb283dc713269bd93a51f65caf6f312d.jpg)
72
+
73
+ ditional question answering (CQA) task, including both extractive and generative models. Extractive models such as the ETC pipeline (Ainslie et al., 2020) and DocHopper (Sun et al., 2021b) extract answers and conditions from input content. Generative models, including FiD (Izacard and Grave, 2021), SDHG (Du et al., 2023), and TReasoner (Sun et al., 2022), leverage generative models to directly generate answers and conditions together. Additionally, Hussain et al. (2023) explored directly fine-tuning LLMs for the CQA task, demonstrating better performance but at a much higher training cost, while Wang et al. (2023) proposed the LSD framework to generate more conditional questions for fine-tuning. However, these methods are often limited to specific downstream fine-tuning tasks and lack generalizability. In contrast, chain of condition does not require further fine-tuning and exhibits better generalizability due to its few-shot setting.
74
+
75
+ # 3 Preliminary
76
+
77
+ We investigate the conditional question answering (CQA) task, where all missing condition should be requested from the user to determine the answer. Formally, the task's input consists of the user's question $Q$ and scenario $S$ providing some background information, and a reference document $D$ describing the policy being questioned. The an-
78
+
79
+ swer should be inferred from the document. Unlike other QA tasks, the document in the CQA task contains many conditions $\mathbb{C} = \{c_1;c_2;\ldots ;c_n\} \subset D$ that must be satisfied by the user. The complete output includes the answer along with any unmentioned conditions $A = (a,\mathbb{C}^{(\mathrm{u})})$ , where $\mathbb{C}^{(\mathrm{u})} = \{c_1^{(\mathrm{u})};\dots;c_k^{(\mathrm{u})}\} \subset \mathbb{C}$ denotes the $i$ -th unmentioned condition for answer $a$ , and $k_{i}\geq 0$ denotes the total number of unmentioned conditions for it². If there are no unmentioned conditions, then we categorize the answer as deterministic. Otherwise, we call it conditional, and all missing conditions should be listed simultaneously with the answer.
80
+
81
+ # 4 Methodology
82
+
83
+ We introduce Chain of Condition, a novel approach to guide Large Language Models (LLMs) for conditional question answering tasks. Our chain of condition pipeline is similar to the human process for dealing with such problems, thus can demonstrate a more coherent and interpretable solving path for users to read, as illustrated in Figure 2.
84
+
85
+ Chain of condition includes three steps: condition identification and logical construction, condition verification, expression resolution and an
86
+
87
+ swer generation. Our framework decompose the original CQA task into smaller sub-tasks, allowing the model to solve them sequentially. First, we identify all conditions and recognize their logical relationships according to the document, forming a logical expression of conditions. Secondly, we verify each condition's fulfillment in the user's description. Finally, We take the verification results to solve the logical expression and identify all missing conditions through Python interpreter, and generate the answer by taking the condition solutions into account. A prompt example for each step is shown in Appendix G.
88
+
89
+ # 4.1 Condition Identification and Logical Relationship Construction
90
+
91
+ The document $D$ contains a substantial amount of irrelevant information, so the first step is to filter this out and identify all relevant conditions $\mathbb{C} = \{c_1;c_2;\ldots ;c_n\} \subset D$ . In addition to identifying the conditions, it is crucial to arrange them in a particular structure according to the document. We address this by introducing condition groups $\mathbb{G} = \{G_1;G_2;\dots;G_k\}$ , where $k$ represents the total number of condition groups in the document, and each group $G_{i}$ consists a set of nearby conditions sharing the same relationship. The $i$ -th condition group $G_{i}$ is defined as $G_{i}(c_{1}^{i},c_{2}^{i},\dots,c_{n_{i}}^{i},o_{i}) = (f(c_{1}^{i})o_{i}f(c_{2}^{i})o_{i}\dots o_{i}f(c_{n_{i}}^{i}))$ , where $\{c_1^i,\dots ,c_n^i\}$ are the conditions in the $i$ -th group, $o_i\in \{\mathrm{AND,OR}\}$ is the logical operator connecting them and $f(c)$ represents the fulfillment of condition $c\in \mathbb{C}$ that will be verified in the next step. We instruct the model to directly identify the condition locations and their relationship in the document, then parse the model's output to obtain $\mathbb{G}$ , ultimately forming a compositional logical expression of conditions $F(G_{1},\dots,G_{k},o) = ((G_{1})o\dots o(G_{k}))$ , where $o\in \{\mathrm{AND,OR}\}$ . The solving result of $G_{i}$ and $F$ are in $\{\bar{\mathbf{d}},\bar{\mathbf{c}}\}$ , where $\bar{\mathbf{d}}$ denote the deterministic answer and $\bar{\mathbf{c}}$ conditional answer. Detailed discussion of the solving process is in Section 4.3
92
+
93
+ Besides, the conditions in the document are usually free-form, making it difficult to thoroughly separate a condition from other irrelevant context. Simply truncating the document may result in incomplete conditions. For example, in Figure 2, the condition is the biological father of the child lacks a subject your partner, which needs to be extracted from the previous sentence. This incompleteness could prevent the model from correctly
94
+
95
+ understanding the meaning of the condition, consequently hindering its ability to accurately verify the fulfillment of the condition.
96
+
97
+ To address this problem, we take context-based augmentation after identifying conditions' locations. This approach allows us to obtain a short paragraph for each condition, containing all the necessary information. Specifically, when the document has a certain structure (e.g. subsections), we use this to find the relevant context for augmentation. We take the entire subsection where the condition appears as the augmentation paragraph, ensuring it contains enough background information while being much shorter than the entire document. When there is no structural information available, we instruct the model to directly summarize the condition based on the context.
98
+
99
+ # 4.2 Condition Verification
100
+
101
+ After acquiring all condition groups from $D$ and augmenting each condition, we instruct the models to sequentially verify the fulfillment of each condition based on $S$ . This involves taking the question, scenario, and augmented condition as input, and leveraging LLMs to determine the fulfillment of conditions. For each condition $c \in \mathbb{C}$ , the verification process can be formalized as determining the value of function $f(c) \in \{\tilde{\mathbf{s}}, \tilde{\mathbf{c}}, \tilde{\mathbf{n}}\}$ . Here, $\tilde{\mathbf{s}}$ means the condition is satisfied by the user, $\tilde{\mathbf{c}}$ means it is contradicted, and $\tilde{\mathbf{n}}$ means the condition is not mentioned. Conditions that are either satisfied or contradicted lead to a deterministic answer and can be treated as true values, while unmentioned conditions result in a conditional answer and are treated as false. Therefore, solving the expression $F$ can be viewed as boolean operations on true/false values with special shortcut judgement. This process will be discussed further in Section 4.3.
102
+
103
+ # 4.3 Expression Solution and Answer Generation
104
+
105
+ After obtaining the verification result $f(c)$ for each condition $c$ , we take these results into groups $\mathbb{G}$ and logical expression $F$ to determine whether the answer is conditional or deterministic. And if the answer is conditional, all missing conditions should be listed along with the answer.
106
+
107
+ Traditionally, this is done by prompting models to implicitly reason and resolve the logical expression. However, recent studies have shown that even large language models struggle with logical or mathematical reasoning tasks (Blair-Stanek et al.,
108
+
109
+ 2023). Therefore, a better solution is to offload the computation process to an external symbolic interpreter (Chen et al., 2023; Gao et al., 2023; Lyu et al., 2023; Ye et al., 2023).
110
+
111
+ In chain of condition, we use a Python interpreter to solve the logical expression $F(G_{1},\ldots ,G_{k},o)$ . Specifically, we treat all "not mentioned" conditions $\{c|f(c) = \tilde{\mathbf{n}}\}$ as false values, while "satisfied" or "contradicted" conditions $\{c|f(c)\in \{\tilde{\mathbf{s}},\tilde{\mathbf{c}}\} \}$ are considered true. Additionally, a "satisfied" condition linked by an "OR" relationship in its condition group or a "contradicted" condition with an "AND" relationship in its condition group $G_{i}$ would form a shortcut, allowing for direct verification of $G_{i}$ . This process can be formally expressed as $\mathbb{G}^{\mathrm{sc}} = \{G_i\mid o_i = \mathrm{or},\exists c\in G_i\text{s.t.} f(c) = \tilde{\mathbf{s}}\} \cup \{G_j\mid o_j = \mathrm{and},\exists c\in G_j\text{s.t.} f(c) = \tilde{\mathbf{c}}\}$ . Finally, a group $G_{i}$ is considered conditional (i.e., $G_{i} = \bar{\mathbf{c}}$ ) if there exists unmentioned condition within it and no shortcut has been formed, formally $G_{i}\notin \mathbb{G}^{\mathrm{sc}}$ , $\exists c\in G_{i}$ s.t. $f(c) = \tilde{\mathbf{c}}$ , and otherwise, it is classified as deterministic. This reasoning process is automatically executed via Python using Boolean operations and special shortcut judgments.
112
+
113
+ Furthermore, we indicate all missing conditions, i.e., when a condition is not mentioned and all other conditions in the same group have not triggered any shortcut, formally $\mathbb{C}^{(\mathrm{u})} = \{c_i^j |f(c_i^j) = \tilde{\mathbf{n}},G_j = \bar{\mathbf{c}},G_j\notin \mathbb{G}^{\mathrm{sc}},\forall i\leq n_j,\forall j\leq k\}$ . If $\mathbb{C}^{(\mathrm{u})}\neq \emptyset$ then the answer is conditional, and otherwise deterministic. By leveraging Python interpreter, we reduce model inference costs, improve precision, and enhance interpretability.
114
+
115
+ After obtaining the verification result for the conditions, we instruct the model to generate the answer. Since we have already verified each condition's fulfillment, we can leverage this information for more accurate answer generation. Specifically, we add these conditions $c$ along with their fulfillment $f(c)$ into the prompt. This provides the model with straightforward information about the conditions, reducing the need to infer their fulfillment from the document.
116
+
117
+ # 5 Experimental Setup
118
+
119
+ # 5.1 Datasets and Evaluation Metrics
120
+
121
+ Throughout our experiments, we use two conditional question answering datasets: ConditionalQA (Sun et al., 2021a) and ShARC (Saeidi et al., 2018). More dataset information is in Appendix A. ConditionalQA features long and complex docu
122
+
123
+ ments, and has many different types of questions. Documents in ConditionalQA are usually well-structured with HTML tags for each paragraph, because they are grouped into sections and subsections describing public policies in the UK. This brings the convenience for condition identification and augmentation.
124
+
125
+ Following previous works in CQA (Sun et al., 2021a), we use the original sets of metrics: EM/F1 and conditional EM/F1 (abbreviated as w/conds). EM measures the exact match of predicted answer spans with gold ones, while F1 is the harmonic mean of token-level precision and recall. Conditional EM/F1 jointly measures the correctness of answer spans and the predicted conditions, providing a more comprehensive assessment of a model's performance on the CQA task. The calculation formulas are in Appendix C.
126
+
127
+ ShARC is a conversational QA dataset, and the original task is to answer the question if the information in the dialog history is enough, or to generate a new question to acquire missing information. We follow the previous work (Puerto et al., 2024) to isolate the QA task from the conversational setting to form a benchmark of the CQA task, resulting in a dataset that the model only needs to answer "yes", "no" or "not enough information". Additionally, we discard all irrelevant questions from the dataset for better evaluation.
128
+
129
+ We use the accuracy on the answer prediction as the metric. Since there are no human annotated conditions in ShARC, so it is not possible to further measure the accuracy of predicted missing conditions. We leave more accurate evaluation for ShARC as future work.
130
+
131
+ # 5.2 Baselines
132
+
133
+ Prompting Baselines We compare our approach with 4 different prompting baselines in total.
134
+
135
+ - Code Prompting (Puerto et al., 2024) is the only available prompting approach for the CQA task as far as we know. This method extends the original text prompt with additional LLM-generated code, which elicits the model's conditional reasoning abilities for CQA tasks.
136
+
137
+ - Self-Ask (Press et al., 2023) is a recently proposed, well-performing prompting method, which we adapt for our CQA scenario. This method decomposes the question by explicitly asking and answering intermediate questions until reaching the final answer and missing conditions.
138
+
139
+ <table><tr><td rowspan="2">Method</td><td colspan="2">GPT-3.5</td><td colspan="2">Llama-2 (70B)</td><td colspan="2">Llama-2 (13B)</td><td colspan="2">Mistral</td><td colspan="2">Average</td></tr><tr><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td></tr><tr><td>Zero-Shot</td><td>59.5/71.0</td><td>23.9/29.5</td><td>44.0/51.2</td><td>26.6/30.9</td><td>42.3/49.6</td><td>26.1/28.9</td><td>44.2/50.7</td><td>26.7/30.8</td><td>47.5/55.6</td><td>25.8/30.0</td></tr><tr><td>Chain of Thought</td><td>59.3/70.0</td><td>45.4/54.6</td><td>62.2/71.4</td><td>45.5/53.7</td><td>56.8/65.8</td><td>38.7/44.8</td><td>58.3/68.6</td><td>37.7/46.4</td><td>59.2/69.0</td><td>41.8/49.9</td></tr><tr><td>Code Prompt</td><td>60.4/68.2</td><td>50.8/57.5</td><td>54.4/63.1</td><td>15.9/19.2</td><td>45.9/49.7</td><td>11.0/12.3</td><td>48.4/52.3</td><td>10.4/10.6</td><td>52.3/58.3</td><td>22.0/24.9</td></tr><tr><td>Self-Ask</td><td>54.9/66.9</td><td>41.3/52.2</td><td>59.2/69.9</td><td>36.1/45.5</td><td>47.9/59.9</td><td>30.3/38.3</td><td>49.6/60.5</td><td>41.2/50.4</td><td>52.9/64.3</td><td>37.2/46.6</td></tr><tr><td>Chain of Condition</td><td>64.6/73.7</td><td>52.9/61.0</td><td>64.7/75.2</td><td>47.7/56.0</td><td>57.2/67.1</td><td>43.0/51.3</td><td>55.5/63.8</td><td>40.7/47.5</td><td>60.5/70.0</td><td>46.1/54.0</td></tr></table>
140
+
141
+ Table 1: Result of prompting methods on ConditionalQA. The best scores are made bold, with the second underlined.
142
+
143
+ <table><tr><td>Method</td><td>GPT-3.5</td><td>Llama-2 (70B)</td><td>Llama-2 (13B)</td><td>Mistral</td><td>Average</td></tr><tr><td>Zero-Shot</td><td>63.2</td><td>43.8</td><td>45.5</td><td>36.9</td><td>47.4</td></tr><tr><td>Chain of Thought</td><td>66.7</td><td>69.6</td><td>63.0</td><td>60.2</td><td>64.9</td></tr><tr><td>Code Prompting</td><td>60.4</td><td>39.9</td><td>37.6</td><td>40.3</td><td>44.6</td></tr><tr><td>Self-Ask</td><td>70.3</td><td>69.1</td><td>67.4</td><td>60.5</td><td>66.8</td></tr><tr><td>Chain of Condition</td><td>70.2</td><td>74.9</td><td>64.2</td><td>61.8</td><td>67.8</td></tr></table>
144
+
145
+ Table 2: Result of prompting methods on ShARC. The best scores are made bold, with the second underlined.
146
+
147
+ <table><tr><td>Method</td><td>EM/F1</td><td>w/conds</td></tr><tr><td colspan="3">Supervised Baselines</td></tr><tr><td>SDHG</td><td>49.0/56.5</td><td>39.0/46.0</td></tr><tr><td>TReasoner</td><td>57.2/63.5</td><td>46.1/51.9</td></tr><tr><td>LSD+Longformer</td><td>58.7/66.2</td><td>45.0/50.5</td></tr><tr><td colspan="3">Chain of Condition</td></tr><tr><td>GPT-3.5 (Retrieval)</td><td>56.6/66.2</td><td>42.1/51.0</td></tr><tr><td>GPT-3.5 (16K)</td><td>61.0/70.0</td><td>48.5/56.0</td></tr><tr><td>GPT-3.5 (Oracle)</td><td>64.6/73.7</td><td>52.9/61.0</td></tr><tr><td>GPT-4 (Oracle)</td><td>70.8/79.5</td><td>56.9/63.0</td></tr></table>
148
+
149
+ Table 3: Chain of condition vs. supervised baselines.
150
+
151
+ Additionally, we use Zero Shot and Chain of Thought prompting (Wei et al., 2023) as baselines.
152
+
153
+ Supervised Baselines We include SDHG (Du et al., 2023), TReasoner (Sun et al., 2022) and LSD (Wang et al., 2023) as baselines for ConditionalQA.
154
+
155
+ For ShARC, since we follow previous work to modify the dataset's output format and discard all irrelevant instances(Puerto et al., 2024), there are no supervised baselines available. Therefore, we only compare chain of condition with other prompting baselines mentioned above.
156
+
157
+ # 5.3 LLM Setup
158
+
159
+ We conduct our experiments on four different LLMs to investigate whether our chain of condition performs consistently better across various settings. We use a commercial model, GPT-3.5-Turbo, and three open-source models, Llama-2-70B-chat, Llama-2-13B-chat, and Mistral-7B. Additionally, we leverage GPT-4 (OpenAI, 2023) for limited ex
160
+
161
+ periments exclusively on ConditionalQA due to cost constraints. For all models, we set the temperature to 0.0 to ensure reproducibility of the results, while using default settings for others. More details are in Appendix B.
162
+
163
+ The original documents in ConditionalQA can be up to 9,320 tokens long, exceeding the context limitations of many LLMs, posing a challenge for all prompting methods. This could be solved by introducing a retriever to retrieve only relevant paragraphs of the document. When comparing with different prompting approaches, we use an oracle retriever to select relevant passages for a given question, to eliminate the interference from the retriever performance. Following previous work (Puerto et al., 2024), we retain all sections that include at least one human-annotated gold evidence and concatenating them to form the input.
164
+
165
+ And for comparison with supervised methods, we employ two approaches: (1) Using a retriever to retrieve relevant paragraphs from the document, and (2) Using a long-context version of an LLM as our backbone model.
166
+
167
+ # 6 Results and Analysis
168
+
169
+ # 6.1 Main Results
170
+
171
+ We report the performance of chain of condition and all baselines on two benchmark datasets<sup>3</sup>. Table 1 presents the performance of all prompting methods on ConditionalQA, while Table 2 shows
172
+
173
+ the performance on ShARC. Table 3 compares the results of chain of condition with all supervised baselines on ConditionalQA.
174
+
175
+ The original evaluation script of ConditionalQA provides a detailed breakdown by question type. We report the overall results here, with all details in Appendix F.
176
+
177
+ Chain of condition outperforms all prompting baselines on each dataset. It establishes a new state-of-the-art. Additionally, Self-Ask also performs relatively well on ShARC, which can be attributed to the dataset's features. ShARC consists of conversations that repeatedly ask for the questioner's information, which is very similar to the format of Self-Ask and thus naturally suitable. Therefore, it is reasonable to use Self-Ask for more fluent reasoning, leading to better performance.
178
+
179
+ Chain of condition outperforms all supervised baselines. With backbone models like GPT-3.5-Turbo or GPT-4, our framework surpasses all supervised baselines with few-shot settings. This result highlights the promising future of prompting methods for the CQA task, not only achieving better performance but also reducing the costs for fine-tuning.
180
+
181
+ Chain of condition remains effective when the input exceeds the LLM's context limit. The result in Table 3 show that using a retriever that better explores the document structures can achieve performance comparable to supervised baselines, while long-context LLMs can surpass all supervised baselines, demonstrating the feasibility of both methods when the input goes longer. Additionally, the time and monetary costs of long-context LLMs are higher than leveraging a retriever. Given limited computational resources, we believe that developing better retrievers is a more promising direction for future research.
182
+
183
+ # 6.2 Analysis
184
+
185
+ In this section, we first conduct ablation studies with GPT-3.5 on the chain of condition framework to demonstrate the necessity of each step. Next, we show that chain of condition consistently outperforms all baselines in more challenging task settings, and finally analyze the reasons for its superior performance.
186
+
187
+ Explicitly identifying and constructing conditions is crucial. We make two hypotheses about why this step is essential. The first hypothesis is
188
+
189
+ <table><tr><td></td><td>EM</td><td>F1</td><td colspan="2">Cond EMCond F1</td></tr><tr><td>Chain of Condition</td><td>64.6</td><td>73.7</td><td>52.9</td><td>61.0</td></tr><tr><td rowspan="2">Prompting Only Δ</td><td>61.4</td><td>70.9</td><td>35.9</td><td>42.9</td></tr><tr><td>-3.2</td><td>-2.8</td><td>-17.0</td><td>-18.1</td></tr><tr><td rowspan="2">AND Only Δ</td><td>62.2</td><td>71.0</td><td>48.9</td><td>56.3</td></tr><tr><td>-2.4</td><td>-2.7</td><td>-4.0</td><td>-4.7</td></tr><tr><td rowspan="2">OR Only Δ</td><td>61.2</td><td>69.9</td><td>40.1</td><td>45.6</td></tr><tr><td>-3.4</td><td>-3.8</td><td>-12.8</td><td>-15.4</td></tr></table>
190
+
191
+ Table 4: Ablation study for explicitly identifying and constructing conditions on ConditionalQA.
192
+
193
+ that it helps the model identify all possible conditions and ensures explicitly solution for logical expressions by external tools, both improving performance on conditions. Secondly, it allows us to generate the answer with additional information about condition verification results, which is only feasible if all conditions are explicitly identified.
194
+
195
+ To prove the first hypothesis, we conduct an ablation study on ConditionalQA since it has gold-labeled missing conditions. In this study, we prompted GPT-3.5 to perform end-to-end generation, i.e., first identify all conditions, then check their fulfillment, and finally indicate all unmentioned conditions implicitly through reasoning. As shown in Table 4, this ablation results in a drop of 3.2 EM score and 2.8 F1 score for answer correctness, as well as 17.4 EM score and 19.5 F1 score for joint answer and condition correctness. The performance drop is much greater when evaluating both answers and conditions compared to evaluating answers alone, which indicates that removing the condition identification step leads to a much larger decrease in accuracy for conditions. Further investigation into the model's output reveals that the average number of predicted missing conditions for conditional answers increases from 1.27 to 1.67, suggesting that GPT-3.5 tends to treat a condition as not mentioned by the user more frequently when the condition identification step is omitted.
196
+
197
+ We also conduct an ablation for the necessity of using both logical operators "AND" and "OR". We remove each of them and prompt the model using chain of condition. The results in Table 4 indicate removing either operator reduces the performance.
198
+
199
+ The second hypothesis is discussed in the ablation of the answer generation step.
200
+
201
+ Condition augmentation improves verification accuracy. The removal of contextual information can hinder the model's ability to correctly under
202
+
203
+ <table><tr><td></td><td colspan="2">ConditionalQA</td><td>ShARC</td></tr><tr><td></td><td>EM/F1</td><td>w/conds</td><td>Accuracy</td></tr><tr><td>Chain of Condition</td><td>64.6/73.7</td><td>52.9/61.0</td><td>70.2</td></tr><tr><td>w/o Results</td><td>61.4/70.9</td><td>50.5/59.1</td><td>67.5</td></tr><tr><td>Δ</td><td>-3.2/-2.8</td><td>-2.4/-1.9</td><td>-2.7</td></tr></table>
204
+
205
+ Table 5: Ablation study for answer generation on ConditionalQA and ShARC. w/o Results refers to removing condition verification results from the answer generation input.
206
+
207
+ <table><tr><td></td><td>EM</td><td>F1</td><td colspan="2">Cond EMCond F1</td></tr><tr><td>Chain of Condition</td><td>64.6</td><td>73.7</td><td>52.9</td><td>61.0</td></tr><tr><td>w/o Interpreter</td><td>64.6</td><td>73.7</td><td>36.7</td><td>43.4</td></tr><tr><td>Δ</td><td>-</td><td>-</td><td>-16.2</td><td>-17.6</td></tr></table>
208
+
209
+ Table 6: Ablation study for leveraging the Python interpreter on ConditionalQA.
210
+
211
+ stand the meaning of a condition. To prove this, we remove all other paragraphs of the condition's subsection, keeping only the original condition as input for verification on ConditionalQA. The result of conditional EM drops by 2.4 from 52.9 to 50.5, and the conditional F1 drops by 2.5 from 61.0 to 58.5 for this setting on GPT-3.5, indicating that the performance of condition prediction decreases due to reduced verification accuracy.
212
+
213
+ Including verification results helps answer generation. In this ablation, we remove the verification results of conditions from the input of answer generation. The results are shown in Table 5. The performance drops by 3.2 EM score and 2.8 F1 score for answers, and by 2.4 EM score and 1.9 F1 score when jointly evaluating answers and conditions on ConditionalQA. Additionally, the accuracy drops by 2.7 on ShARC.
214
+
215
+ Furthermore, we find that the performance drop on ConditionalQA is mostly attributed to the yes/no questions, with a drop of 7.0 EM/F1 score and 5.3 conditional EM/F1 score. The likely reason for this phenomenon lies in the answer determination procedure: a span-type answer can be extracted directly in the document even without verifying any conditions. However, a yes/no answer must be inferred from the document along with each condition's fulfillment. Therefore, including the conditions' fulfillment in the prompt helps the model by reducing the need to repeatedly infer their fulfillment, allowing it to directly synthesize the information to generate the final answer.
216
+
217
+ Leveraging logical expression interpreter increases accuracy for conditions. To demonstrate the importance of utilizing external symbolic solver for logical expressions, we conduct an ablation study where the Python interpreters is replaced with GPT-3.5. Since the resolution of logical expressions does not affect the answer generation process, the EM and F1 scores for answers alone remain consistent. However, when jointly evaluating both answers and conditions, a performance drop is observed in Table 6.
218
+
219
+ Chain of condition better finds missing conditions. Most questions in these CQA datasets involve identifying and solving conditions, but only a small portion of them are truly conditional. This is because, in many cases, the conditions for the answer are all satisfied by the user's scenario, so the model only needs to give a correct judgement on whether the answer is conditional. However, when we consider only the conditional answers in the dataset, correctly addressing them becomes more challenging. This is because the model not only needs to properly generate the answer and determine it as conditional, but also precisely finds the missing conditions.
220
+
221
+ The performance of all methods on ConditionalQA $^4$ greatly drops when considering only the conditional answers, as shown in Table 7. But, our chain of condition consistently outperforms other prompting baselines in this setting, demonstrating its effectiveness in finding missing conditions.
222
+
223
+ Furthermore, in order to analyze the reasons behind chain of condition's superior performance on the CQA task, we divide the dev set of ConditionalQA based on the total number of gold conditions for each question in the document, resulting in two question groups. The first group contains data with at most one conditions, while the second group has at least three conditions, indicating a more complex set of conditions for solving.
224
+
225
+ We report the performance of GPT-3.5 with all prompting methods on these two groups in Table 8. Since there is not a metric that directly measures the quality of predicted conditions, we additionally report the F1 score of the predicted conditions. The results highlight the increased difficulty of questions involving complex conditions, and chain of condition shows much less performance degradation in this more challenging group. This indicates
226
+
227
+ <table><tr><td>Conditional</td><td>EM</td><td>F1</td><td>Cond EM</td><td>Cond F1</td></tr><tr><td>Zero-Shot</td><td>40.7</td><td>49.1</td><td>12.9</td><td>16.0</td></tr><tr><td>CoT</td><td>45.8</td><td>53.6</td><td>13.1</td><td>16.4</td></tr><tr><td>Code</td><td>47.2</td><td>54.3</td><td>8.5</td><td>11.5</td></tr><tr><td>Self-Ask</td><td>49.7</td><td>58.3</td><td>13.5</td><td>17.5</td></tr><tr><td>Ours</td><td>56.0</td><td>62.2</td><td>18.9</td><td>20.7</td></tr></table>
228
+
229
+ Table 7: Result of different prompting methods on conditional answer questions.
230
+
231
+ <table><tr><td rowspan="2">#Conds Groups</td><td colspan="2">&lt;=1</td><td colspan="2">&gt;=3</td></tr><tr><td>EM/F1</td><td>C_F1</td><td>EM/F1</td><td>C_F1</td></tr><tr><td>Zero-Shot</td><td>64.0/76.1</td><td>53.8</td><td>47.7/50.7</td><td>8.9</td></tr><tr><td>CoT</td><td>60.5/71.6</td><td>77.3</td><td>44.0/47.7</td><td>16.5</td></tr><tr><td>Code</td><td>61.9/70.1</td><td>87.9</td><td>51.7/57.0</td><td>4.0</td></tr><tr><td>Self-Ask</td><td>55.0/68.1</td><td>77.6</td><td>54.0/59.1</td><td>20.1</td></tr><tr><td>Ours</td><td>65.5/75.3</td><td>84.5</td><td>60.0/65.2</td><td>31.6</td></tr></table>
232
+
233
+ Table 8: Performance on 2 groups in ConditionalQA. $C\_ F1$ is the F1 score of predicted conditions.
234
+
235
+ its superior ability to handle complex conditions. We attribute this to the explicit identification of conditions and the use of a code interpreter to resolve the logical relationships among conditions.
236
+
237
+ # 7 Conclusion
238
+
239
+ In this work, we propose Chain of condition, a novel prompting approach for conditional question answering. Our approach prompts LLMs to identify conditions, organize them into logical expressions and introduces a Python interpreter for resolution, effectively improving precision and enhancing interpretability. Experiments on all benchmark datasets show that chain of condition outperforms existing prompting baselines. Additionally, our method surpasses supervised baselines when utilizing a strong backbone model, demonstrating the promising future of prompting LLMs for CQA and paving the way for future research directions.
240
+
241
+ # Limitations
242
+
243
+ Retriever Performance Although our chain of condition outperforms all baselines, we find that the retriever's performance (with a recall of around $70\%$ ) is still a limiting factor. In this paper, we simply take an commercial embedding model (text-embedding-ada-002) as our retriever, and when the document length exceeds the LLM's input context capacity, we find this off-the-shelf retriever still overlook some necessary conditions and evidence. We believe employing a stronger retriever would achieve better performance.
244
+
245
+ Token Efficiency The multi-step prompting framework in chain of condition decomposes the original CQA task into several sub-tasks, thus leading to lower token efficiency compared to simpler prompting baselines and typically requiring more tokens to solve the entire problem.
246
+
247
+ Exploring Intermediate Results The generated verification results can be better exploited. For instance, if the answer type is yes/no, then it is possible to directly leverage the condition verification results to determine the answer. This approach would not only enhance accuracy but also improve token efficiency, making it a promising direction for future research. Additionally, these intermediate results could be used as training data to distill our chain of condition framework into smaller models.
248
+
249
+ # Acknowledgments
250
+
251
+ This work is supported in part by NSFC (62206070, 62161160339) and Beijing Science and Technology Program (Z231100007423011). We thank Chen Zhang, Mingxu Tao, Zirui Wu and Xiao Liu for their help in this work. Also, we thank Yixun Zhou and Kangcheng Luo for valuable suggestions in writing. For any correspondence, please contact Yansong Feng.
252
+
253
+ # References
254
+
255
+ Joshua Ainslie, Santiago Ontanon, Chris Alberti, Vaclav Cvicek, Zachary Fisher, Philip Pham, Anirudh Ravula, Sumit Sanghai, Qifan Wang, and Li Yang. 2020. ETC: Encoding Long and Structured Inputs in Transformers. Preprint, arxiv:2004.08483.
256
+ Andrew Blair-Stanek, Nils Holzenberger, and Benjamin Van Durme. 2023. Can gpt-3 perform statutory reasoning? Preprint, arXiv:2302.06100.
257
+ Wenhu Chen, Xueguang Ma, Xinyi Wang, and William W. Cohen. 2023. Program of thoughts prompting: Disentangling computation from reasoning for numerical reasoning tasks. Preprint, arXiv:2211.12588.
258
+ Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. Preprint, arXiv:2110.14168.
259
+ Bhuwan Dhingra, Jeremy R. Cole, Julian Martin Eisenschlos, Daniel Gillick, Jacob Eisenstein, and William W. Cohen. 2022. Time-aware language
260
+
261
+ models as temporal knowledge bases. Transactions of the Association for Computational Linguistics, 10:257-273.
262
+ Haowei Du, Yansong Feng, Chen Li, Yang Li, Yunshi Lan, and Dongyan Zhao. 2023. Structure-discourse hierarchical graph for conditional question answering on long documents. In Findings of the Association for Computational Linguistics: ACL 2023, pages 6282-6293, Toronto, Canada. Association for Computational Linguistics.
263
+ Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig. 2023. Pal: Program-aided language models. Preprint, arXiv:2211.10435.
264
+ Syed-Amad Hussain, Parag Pravin Dakle, SaiKrishna Rallabandi, and Preethi Raghavan. 2023. Towards leveraging LLMs for Conditional QA. Preprint, arxiv:2312.01143.
265
+ Gautier Izacard and Edouard Grave. 2021. (FiD)Leveraging Passage Retrieval with Generative Models for Open Domain Question Answering. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 874-880, Online. Association for Computational Linguistics.
266
+ Yiming Ju, Weikang Wang, Yuanzhe Zhang, Suncong Zheng, Kang Liu, and Jun Zhao. 2022. CMQA: A dataset of conditional question answering with multiple-span answers. In Proceedings of the 29th International Conference on Computational Linguistics, pages 1697-1707, Gyeongju, Republic of Korea. International Committee on Computational Linguistics.
267
+ Qing Lyu, Shreya Havaldar, Adam Stein, Li Zhang, Delip Rao, Eric Wong, Marianna Apidianaki, and Chris Callison-Burch. 2023. Faithful chain-of-thought reasoning. In Proceedings of the 13th International Joint Conference on Natural Language Processing and the 3rd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 305-329, Nusa Dua, Bali. Association for Computational Linguistics.
268
+ Sewon Min, Julian Michael, Hannaneh Hajishirzi, and Luke Zettlemoyer. 2020. Ambiguous open-domain questions. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 5783-5797, Online. Association for Computational Linguistics.
269
+ OpenAI. 2023. Gpt-4 technical report. Preprint, arXiv:2303.08774.
270
+ Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah Smith, and Mike Lewis. 2023. Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5687-5711, Singapore. Association for Computational Linguistics.
271
+
272
+ Haritz Puerto, Martin Tutek, Somak Aditya, Xiaodan Zhu, and Iryna Gurevych. 2024. Code Prompting Elicits Conditional Reasoning Abilities in Text+Code LLMs. Preprint, arxiv:2401.10065.
273
+ Marzieh Saeidi, Max Bartolo, Patrick Lewis, Sameer Singh, Tim Roktaschel, Mike Sheldon, Guillaume Bouchard, and Sebastian Riedel. 2018. Interpretation of Natural Language Rules in Conversational Machine Reading. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2087-2097.
274
+ Sergio Servantez, Joe Barrow, Kristian Hammond, and Rajiv Jain. 2024. Chain of logic: Rule-based reasoning with large language models. *Preprint*, arXiv:2402.10400.
275
+ Haitian Sun, William W. Cohen, and Ruslan Salakhutdinov. 2021a. ConditionalQA: A Complex Reading Comprehension Dataset with Conditional Answers. Preprint, arxiv:2110.06884.
276
+ Haitian Sun, William W. Cohen, and Ruslan Salakhutdinov. 2021b. Iterative Hierarchical Attention for Answering Complex Questions over Long Documents. Preprint, arxiv:2106.00200.
277
+ Haitian Sun, William W. Cohen, and Ruslan Salakhutdinov. 2022. Reasoning over logically interacted conditions for question answering. Preprint, arXiv:2205.12898.
278
+ Mingxu Tao, Dongyan Zhao, and Yansong Feng. 2024. Chain-of-discussion: A multi-model framework for complex evidence-based question answering. Preprint, arXiv:2402.16313.
279
+ Zihan Wang, Hongjin Qian, and Zhicheng Dou. 2023. Learning on Structured Documents for Conditional Question Answering. In Chinese Computational Linguistics, volume 14232, pages 37-57, Singapore. Springer Nature Singapore.
280
+ 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. Preprint, arXiv:2201.11903.
281
+ Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W. Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. 2018. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. Preprint, arXiv:1809.09600.
282
+ Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing Reasoning and Acting in Language Models. Preprint, arxiv:2210.03629.
283
+ Xi Ye, Qiaochu Chen, Isil Dillig, and Greg Durrett. 2023. Satlm: Satisfiability-aided language models using declarative prompting. Preprint, arXiv:2305.09656.
284
+
285
+ Wenhao Yu, Hongming Zhang, Xiaoman Pan, Kaixin Ma, Hongwei Wang, and Dong Yu. 2023. Chain-of-note: Enhancing robustness in retrieval-augmented language models. Preprint, arXiv:2311.09210.
286
+ Chen Zhang, Jiuheng Lin, Xiao Liu, Yuxuan Lai, Yan-song Feng, and Dongyan Zhao. 2023. How many answers should I give? an empirical study of multi-answer reading comprehension. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 5811–5827, Toronto, Canada. Association for Computational Linguistics.
287
+
288
+ # A Datasets
289
+
290
+ We use two benchmark datasets for evaluation: ConditionalQA (Sun et al., 2021a) and ShARC (Saeidi et al., 2018). The distribution of different question types in these datasets is presented in Table 9, with additional details about the datasets provided in Table 10.
291
+
292
+ ConditionalQA is a challenging benchmark for conditional question answering. It comprises a total of 3,427 questions of varying types, including yes/no questions, free-form extractive questions, questions with multiple answers, and nonanswerable questions. Additionally, ConditionalQA categorizes questions into two types: deterministic, where all necessary conditions are already satisfied within the question, and conditional, where the complete answer must include those unsatisfied conditions as well.
293
+
294
+ ShARC is a conversational QA dataset with natural language document that has conditions where questions may be underspecified, and follow-up questions are needed to finally reach the answer. And when the conditions are all satisfied, the answer could be either yes or no. There are some questions in it that are irrelevant to the conditions, and we discard them for simplicity. At the time we conducted our experiments, the test set was not yet publicly available, so we follow Puerto et al. (2024) to random divide the dev set into two equal partitions and use one for experiment.
295
+
296
+ # B LLM Setup
297
+
298
+ The exact models we used are as follows: GPT-3.5-0613, GPT-3.5-16k-0613, GPT-4-1106-Preview, Llama-2-70B-chat, Llama-2-13B-chat, and Mistral 7B v0.1. We ran the GPT models through the Azure AI service, and the other models on Nvidia A800. We used text-embedding-ada-002 as our retriever when comparing performance with supervised methods.
299
+
300
+ For all experiments, we used a seed of 42. The number of demonstrations for the baselines were as follows: 4 for chain of thought prompting, 3 for code prompting, and 4 for self-ask. In our approach, chain of condition, we used 4 exemplars for condition identification and logical construction, 6 for condition verification, and 4 for answer generation.
301
+
302
+ <table><tr><td></td><td>Type</td><td>Number</td></tr><tr><td colspan="3">ConditionalQA</td></tr><tr><td rowspan="2">Answer type</td><td>yes/no</td><td>1751</td></tr><tr><td>extractive</td><td>1527</td></tr><tr><td rowspan="2">Condition type</td><td>deterministic</td><td>2475</td></tr><tr><td>conditional</td><td>803</td></tr><tr><td rowspan="2">Answer number</td><td>single</td><td>2526</td></tr><tr><td>multiple</td><td>752</td></tr><tr><td>not answerable</td><td></td><td>149</td></tr><tr><td colspan="3">ShARC</td></tr><tr><td rowspan="3">Answer type</td><td>yes/no</td><td>15400</td></tr><tr><td>follow-up</td><td>6814</td></tr><tr><td>irrelevant</td><td>1946</td></tr></table>
303
+
304
+ Table 9: Question type statistics.
305
+
306
+ <table><tr><td>Dataset</td><td>ConditionalQA</td><td>ShARC</td></tr><tr><td>Training</td><td>2338</td><td>21890</td></tr><tr><td>Dev</td><td>285</td><td>1135</td></tr><tr><td>Test</td><td>804</td><td>1135</td></tr><tr><td>License</td><td>BSD 2</td><td>CC-BY-SA-3.0</td></tr></table>
307
+
308
+ Table 10: Dataset details.
309
+
310
+ # C ConditionalQA Evaluation Metrics
311
+
312
+ The evaluation metrics for ConditionQA include four key metrics: EM (exact match), F1, Conditional EM, and Conditional F1. EM and F1 are commonly used in QA tasks. Given a list of predicted answers $\{\hat{a}_1,\dots ,\hat{a}_m\}$ and a list of reference answers $\{a_{1},\ldots ,a_{n}\}$ , these metrics are computed as follows:
313
+
314
+ $$
315
+ \mathrm {E M} = \max _ {\{\tilde {a} _ {1}, \ldots , \tilde {a} _ {m} \}} \frac {\sum_ {i = 1} ^ {m i n (m , n)} s _ {e m} (\tilde {a} _ {i} , a _ {i}) \cdot \gamma_ {m , n}}{n}
316
+ $$
317
+
318
+ $$
319
+ \mathrm {F 1} = \max _ {\{\tilde {a} _ {1}, \ldots , \tilde {a} _ {m} \}} \frac {\sum_ {i = 1} ^ {m i n (m , n)} s _ {f 1} (\tilde {a} _ {i} , a _ {i}) \cdot \gamma_ {m , n}}{n}
320
+ $$
321
+
322
+ $$
323
+ \gamma_ {m, n} = \left\{ \begin{array}{l l} e ^ {1 - m / n} & \text {i f} m > n \\ 1 & \text {i f} m \leq n \end{array} \right.
324
+ $$
325
+
326
+ Where $\{\widetilde{a}_1,\dots,\widetilde{a}_m\}$ is a permutation of the predicted answers $\{\hat{a}_1,\dots,\hat{a}_m\}$ , $s_{em}$ and $s_{f1}$ are scoring functions that measures EM and F1 between two text spans. $\gamma_{m,n}$ is a penalty factor for the number of predicted answers.
327
+
328
+ While EM and F1 can evaluate the model's performance on answer prediction, they do not account for the accuracy of conditions associated with these answers. To jointly measure the performance of
329
+
330
+ <table><tr><td></td><td>FP</td><td>IE</td><td>VE</td><td>Total</td></tr><tr><td>#Conds</td><td>57.8</td><td>55.0</td><td>17.5</td><td>130.3</td></tr><tr><td>Ratio</td><td>44.4%</td><td>42.2%</td><td>13.4%</td><td>100%</td></tr></table>
331
+
332
+ Table 11: Prediction error on ConditionalQA.
333
+
334
+ <table><tr><td>Model</td><td>GPT</td><td>Llama(70b)</td><td>Llama(13b)</td><td>Mistral</td></tr><tr><td>Recall</td><td>67%</td><td>63%</td><td>52%</td><td>39%</td></tr></table>
335
+
336
+ both answers and conditions, Sun et al. (2021a) extended the scoring functions of EM and F1 to incorporate the prediction accuracy of conditions, resulting in two new metrics: Conditional EM and Conditional F1. These new scoring functions are computed as follows:
337
+
338
+ $$
339
+ \begin{array}{l} s _ {e m + c} \left(\tilde {a} _ {i}, \tilde {C} _ {i}, a _ {i}, C _ {i}\right) = s _ {e m} \left(\tilde {a} _ {i}, a _ {i}\right) \cdot \mathrm {F 1} \left(\tilde {C} _ {i}, C _ {i}\right) \\ s _ {f 1 + c} \left(\tilde {a} _ {i}, \tilde {C} _ {i}, a _ {i}, C _ {i}\right) = s _ {f 1} \left(\tilde {a} _ {i}, a _ {i}\right) \cdot \mathrm {F} 1 \left(\tilde {C} _ {i}, C _ {i}\right) \\ \mathrm{EM}_{+c} = \max_{\{\tilde{a}_{1},\ldots ,\tilde{a}_{m}\}}\frac{\sum_{i = 1}^{min(m,n)}s_{em + c}(\tilde{a}_{i},\tilde{C}_{i},a_{i},C_{i})\cdot\gamma_{m,n}}{n} \\ \mathrm {F 1} _ {+ \mathrm {c}} = \max _ {\{\tilde {a} _ {1}, \ldots , \tilde {a} _ {m} \}} \frac {\sum_ {i = 1} ^ {m i n (m , n)} s _ {f 1 + c} (\tilde {a} _ {i} , \tilde {C} _ {i} , a _ {i} , C _ {i}) \cdot \gamma_ {m , n}}{n} \\ \end{array}
340
+ $$
341
+
342
+ Here, $\tilde{C}_i$ represents the set of conditions predicted by the model corresponding to the answer $\tilde{a}_i$ , and $C_i$ represents the oracle (ground truth) set of conditions. F1 $(\tilde{C}_i,C_i)$ denotes the HTML element level F1 score between the predicted set of conditions and the oracle set of conditions.
343
+
344
+ # D Error Analysis
345
+
346
+ We investigate the prediction errors in ConditionalQA. We report detailed statistics for condition prediction. Errors are classified into False Positive (FP) and False Negative (FN) categories. Since chain of condition explicitly identifies all conditions, False Negatives can be further classified into Identifying Errors (IE) and Verification Errors (VE) based on the step at which the model makes mistakes. The results, averaged across four models, are shown in Table 11.
347
+
348
+ We found that most errors occur during the condition identification step. Consequently, we further investigate its performance, as shown in Table 12. The results indicate that the performance of the condition identification step remains unsatisfactory.
349
+
350
+ Table 12: Performance of condition identification.
351
+
352
+ <table><tr><td></td><td>Step 1</td><td>Step 2</td><td>Step 3</td></tr><tr><td>GPT-3.5 (api)</td><td>2.5</td><td>2.8</td><td>1.8</td></tr><tr><td>Llama-2-70b (vllm)</td><td>29.9</td><td>63.2</td><td>28.7</td></tr><tr><td>Llama-2-13b (vllm)</td><td>6.0</td><td>6.1</td><td>3.8</td></tr><tr><td>Mistral</td><td>27.2</td><td>78.1</td><td>28.7</td></tr></table>
353
+
354
+ Table 13: Run-time efficiency of our method. Where step 1 stands for Condition Identification and Logical Construction, step 2 for Condition Verification, and step 3 for Expression Solution and Answer Generation.
355
+
356
+ # E Run-Time Efficiency
357
+
358
+ We report the run-time efficiency for GPT-3.5, Llama-2-70b, Llama-2-13b, and Mistral-7b averaged on two datasets in Table 13. We calculated the second per iteration (s/it) as a metric for runtime efficiency.
359
+
360
+ # F More Detailed Results
361
+
362
+ We report the detailed results on ConditionalQA according to different question types in Table 14 for GPT-3.5, Table 15 for Llama-2 (70B), Table 16 for Llama-2 (13B) and Table 17 for Mistral.
363
+
364
+ # G Prompt Examples
365
+
366
+ We provide an example of the prompt for condition identification and logical construction in Table 18 for ConditionalQA and in Table 21 for ShARC. We provide an example for condition verification in Table 19 for ConditionalQA and in Table 22 for ShARC. We provide an example for answer generation in Table 20 for ConditionalQA and in Table 23 for ShARC.
367
+
368
+ <table><tr><td></td><td colspan="2">Yes/No</td><td colspan="2">Extractive</td><td colspan="2">Conditional</td><td colspan="2">Overall</td></tr><tr><td></td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td></tr><tr><td>Zero-Shot</td><td>82.1/82.1</td><td>17.0/17.0</td><td>29.5/55.0</td><td>19.7/32.1</td><td>40.7/49.1</td><td>12.9/16.0</td><td>59.5/71.0</td><td>23.9/29.5</td></tr><tr><td>Chain of Thought</td><td>80.4/80.4</td><td>54.2/54.2</td><td>31.3/55.0</td><td>29.6/50.1</td><td>45.8/53.6</td><td>13.1/16.4</td><td>59.3/70.0</td><td>45.4/54.6</td></tr><tr><td>Code Prompting</td><td>81.1/81.1</td><td>62.6/62.6</td><td>32.9/50.2</td><td>32.2/47.2</td><td>47.2/54.3</td><td>8.5/11.5</td><td>60.4/68.2</td><td>50.8/57.5</td></tr><tr><td>Self-Ask</td><td>76.2/76.2</td><td>49.8/49.8</td><td>26.1/52.8</td><td>25.3/49.7</td><td>49.7/58.3</td><td>13.5/17.5</td><td>54.9/66.9</td><td>41.3/52.2</td></tr><tr><td>Chain of Condition</td><td>87.4/87.4</td><td>67.1/67.1</td><td>35.2/55.6</td><td>31.8/50.0</td><td>56.0/62.2</td><td>18.9/20.7</td><td>64.6/73.7</td><td>52.9/61.0</td></tr></table>
369
+
370
+ Table 14: Result of different prompting methods on GPT-3.5-Turbo.
371
+
372
+ <table><tr><td></td><td colspan="2">Yes/No</td><td colspan="2">Extractive</td><td colspan="2">Conditional</td><td colspan="2">Overall</td></tr><tr><td></td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td></tr><tr><td>Zero-Shot</td><td>68.2/68.2</td><td>36.9/36.9</td><td>10.8/27.0</td><td>7.1/16.7</td><td>52.9/55.7</td><td>9.2/9.5</td><td>44.0/51.2</td><td>26.6/30.9</td></tr><tr><td>Chain of Thought</td><td>78.2/78.2</td><td>49.1/49.1</td><td>40.1/60.6</td><td>35.5/53.7</td><td>48.7/53.8</td><td>11.4/13.6</td><td>62.2/71.4</td><td>45.5/53.7</td></tr><tr><td>Code Prompting</td><td>76.2/76.2</td><td>17.0/17.0</td><td>24.9/44.3</td><td>5.4/12.9</td><td>56.9/61.1</td><td>19.6/21.2</td><td>54.4/63.1</td><td>15.9/19.2</td></tr><tr><td>Self-Ask</td><td>79.7/79.7</td><td>35.4/35.4</td><td>31.8/55.6</td><td>30.0/50.9</td><td>53.1/61.6</td><td>17.6/20.9</td><td>59.2/69.9</td><td>36.1/45.5</td></tr><tr><td>Chain of Condition</td><td>84.5/84.5</td><td>54.8/54.8</td><td>35.4/60.4</td><td>32.2/52.0</td><td>49.3/57.0</td><td>17.4/19.6</td><td>64.7/75.2</td><td>47.7/56.0</td></tr></table>
373
+
374
+ Table 15: Result of different prompting methods on Llama-2(70B).
375
+
376
+ <table><tr><td></td><td colspan="2">Yes/No</td><td colspan="2">Extractive</td><td colspan="2">Conditional</td><td colspan="2">Overall</td></tr><tr><td></td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td></tr><tr><td>Zero-Shot</td><td>66.4/66.4</td><td>35.7/35.7</td><td>9.1/25.3</td><td>6.3/14.4</td><td>51.0/54.1</td><td>6.2/7.2</td><td>42.3/49.6</td><td>26.1/28.9</td></tr><tr><td>Chain of Thought</td><td>69.7/69.7</td><td>40.5/40.5</td><td>37.5/57.5</td><td>29.9/43.6</td><td>42.0/50.2</td><td>10.6/13.5</td><td>56.8/65.8</td><td>38.7/44.8</td></tr><tr><td>Code Prompting</td><td>65.7/65.7</td><td>8.5/8.5</td><td>17.7/26.3</td><td>4.1/6.9</td><td>49.5/51.9</td><td>11.8/12.1</td><td>45.9/49.7</td><td>11.0/12.3</td></tr><tr><td>Self-Ask</td><td>65.7/65.7</td><td>34.4/34.4</td><td>22.2/48.9</td><td>18.1/36.0</td><td>35.2/41.5</td><td>5.7/7.5</td><td>47.9/59.9</td><td>30.3/38.3</td></tr><tr><td>Chain of Condition</td><td>77.6/77.6</td><td>52.5/52.5</td><td>29.8/51.6</td><td>26.2/44.8</td><td>45.8/52.6</td><td>13.8/15.4</td><td>57.2/67.1</td><td>43.0/51.3</td></tr></table>
377
+
378
+ Table 16: Result of different prompting methods on Llama-2(13B).
379
+
380
+ <table><tr><td></td><td colspan="2">Yes/No</td><td colspan="2">Extractive</td><td colspan="2">Conditional</td><td colspan="2">Overall</td></tr><tr><td></td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td><td>EM/F1</td><td>w/conds</td></tr><tr><td>Zero-Shot</td><td>68.5/68.5</td><td>36.3/36.3</td><td>10.8/25.4</td><td>7.9/17.0</td><td>55.3/56.9</td><td>4.7/5.1</td><td>44.1/50.7</td><td>26.7/30.8</td></tr><tr><td>Chain of Thought</td><td>80.5/80.5</td><td>41.2/41.2</td><td>28.9/51.8</td><td>26.9/46.3</td><td>51.4/59.9</td><td>15.9/18.7</td><td>58.3/68.6</td><td>37.7/46.4</td></tr><tr><td>Code Prompting</td><td>72.7/72.7</td><td>10.1/10.1</td><td>15.5/24.3</td><td>1.0/1.5</td><td>53.9/55.9</td><td>16.9/17.3</td><td>48.4/52.3</td><td>10.4/10.6</td></tr><tr><td>Self-Ask</td><td>74.1/74.1</td><td>58.3/58.3</td><td>16.7/40.8</td><td>15.6/36.2</td><td>41.9/50.7</td><td>13.7/17.0</td><td>49.6/60.5</td><td>41.2/50.4</td></tr><tr><td>Chain of Condition</td><td>80.4/80.4</td><td>51.9/51.9</td><td>22.8/41.3</td><td>21.7/36.8</td><td>43.4/48.1</td><td>9.0/11.1</td><td>55.5/63.8</td><td>40.7/47.5</td></tr></table>
381
+
382
+ - Please find all the paragraphs that contain conditions for the suggested answer based on the provided documents.
383
+ - Provided Documents:
384
+ <h1>Joining a workplace pension</h1>
385
+ <p>All employers must provide a workplace pension scheme. This is called 'automatic enrolment'.</p>
386
+ <p>Your employer must automatically enrol you into a pension scheme and make contributions to your pension if all of following apply:</p>
387
+ <li>you're classed as a 'worker'<li>
388
+ <li>you're aged between 22 and State Pension age</li>
389
+ <li>you earn at least £10,000 per year</li>
390
+ <li>you usually ('ordinarily') work in the UK (read the detailed guidance if you're not sure)</li>
391
+ - Question: I am 23 years old. I have just got a new job in UK that will have a salary of £18,000 per year. I do not want pay into a pension at this time. Does my employer need to automatically enrol me onto a pension?
392
+ - Suggested Answer: yes
393
+ - Response:
394
+ Reasoning: The user is asking whether the employer needs to automatically enrol the user onto a pension. According the documents, the employer need automatically enrol the user into a pension scheme if the user is classed as a worker aged between 22 and State Pension age, earns at least £10,000 per year, and usually works in the UK. So these are prerequisites that all need to be satisfied, they are placed next to each other in the documents and are all needed to be satisfied, so they are in the same group and the relationship between them is "and". Conditions: {{"contents": ["<li>you're classed as a 'worker'<li>", "<li>you're aged between 22 and State Pension age"<li>, "you earn at least £10,000 per year</li>", "<li>you usually ('ordinarily') work in the UK (read the detailed guidance you're not sure)</li>", "relationship": "and"}]
395
+
396
+ Table 17: Result of different prompting methods on Mistral.
397
+
398
+ Table 18: ConditionalQA prompt example for condition identification and logical construction.
399
+
400
+ - Please check the relevance, find the condition and check the satisfaction of the condition.
401
+
402
+ - Reference Document:
403
+
404
+ <h1>Who must send a tax return</h1>
405
+
406
+ <p>You must send a tax return if, in the last tax year (6 April to 5 April), you were:</p>
407
+
408
+ <li>self-employed as a 'sole trader' and earned more than $31,000 (before taking off anything you can claim tax relief on)</li>
409
+
410
+ <li>a partner in a business partnership</li>
411
+
412
+ <You will not usually need to send a return if your only income is from your wages or pension. But you may need to send one if you have any other untaxed income, such as:</p>
413
+
414
+ <li>money from renting out a property</li>
415
+
416
+ <li>tips and commission</li>
417
+
418
+ - Segment to Check: <li>self-employed as a 'sole trader' and earned more than $31,000 (before taking off anything you can claim tax relief on)</li>
419
+
420
+ - Question: I decided to start freelancing and working for myself and made freelancing my main job, taxes are not automatically deducted from my income. I have an income from my job for this tax year. How do I pay taxes on my income?
421
+
422
+ - Suggested Answer: send a tax return
423
+
424
+ - Response:
425
+
426
+ Reasoning: The user is asking how to pay taxes on his income. The segment is about a prerequisite, and by looking at the reference document, we know this prerequisite is for the user to pay taxes return, so this segment is relevant to the question and answer, and contains a condition that the user needs to be self-employed as a "sole trader" and earned more than $31,000. Then let's check the satisfaction of this in the question. We can see in the question, the user mentions that he decided to start freelancing and working for himself and made freelancing his main job, and he has an income for this tax year. But he does not explicitly mention the amount of income he earned, so we could not determine whether he earned more than$ 31,000, and the satisfaction of this condition is "not mentioned".
427
+
428
+ Satisfaction: not mentioned
429
+
430
+ Table 19: ConditionalQA prompt example for condition verification.
431
+
432
+ - Please answer the question based on the provided documents and known information.
433
+
434
+ - Provided Documents:
435
+
436
+ $<\mathrm{h}1>$ Joining a workplace pension</h1>
437
+
438
+ <p>All employers must provide a workplace pension scheme. This is called 'automatic enrolment'.</p>
439
+
440
+ <Your employer must automatically enrol you into a pension scheme and make contributions to your pension if all of the following apply:</p>
441
+
442
+ <li>you're aged between 22 and State Pension age</li>
443
+
444
+ <li>you earn at least £10,000 per year</li>
445
+
446
+ <li>you usually ('ordinarily') work in the UK (read the detailed guidance if you're not sure)</li>
447
+
448
+ - Question: I am 23 years old. I have just got a new job in UK that will have a salary of £8,000 per year. I do not want to pay into a pension at this time. Does my employer must enrol me onto a pension?
449
+
450
+ - Known Information: Q: You're aged between 22 and State Pension age? A: Yes; Q: You earn at least £10,000 per year? A: No; Q: You usually ('ordinarily') work in the UK (read the detailed guidance if you're not sure)? A: Yes
451
+
452
+ - Answer Type: yes/no
453
+
454
+ - Response:
455
+
456
+ Reasoning: The user is asking whether the employer needs to automatically enrol the user onto a pension. In the documents, the employer must automatically enrol the user into a pension scheme if the user is aged between 22 and State Pension age, and earns at least £10,000 per year, and usually works in the UK. In the known information, we know the user is aged between 22 and State Pension age, and usually works in the UK, but the user earns less than £10,000 per year. Therefore, the user does not satisfy the requirement of earning at least £10,000 per year, so the answer to the question is "no".
457
+
458
+ Answer: No
459
+
460
+ Table 20: ConditionalQA prompt example for answer generation.
461
+
462
+ - Please find all conditions based on the provided documents.
463
+ - Provided Documents:
464
+ 6. Immigration control
465
+ You may be able to get Child Tax Credit if you're either working in the UK or you're not working because you're:
466
+ * retired
467
+ * pregnant or looking after children
468
+ * sick or disabled or your partner has died
469
+ - Question: I was born in North Carolina and my husband and I are still trying to conceive. May I be able to get Child Tax Credit?
470
+ - Response:
471
+
472
+ Reasoning: The user is asking whether she may be able to get Child Tax Credit. According to the documents, you may be able to get Child Tax Credit if you're either working in the UK, or if you are not working because you're retired, pregnant or looking after children, sick or disabled, or your partner has died. So there are precondition that the user needs to satisfy before she may be able to get Child Tax Credit, and there relationship is "or".
473
+
474
+ Conditions: {"contents": ["You're working in the UK", "You're not working because you're retired", "You're not working because you're pregnant", "You're not working because you're looking after children", "You're not working because you're sick", "You're not working because you're disabled", "Your partner has died"], "relationship": "or"}
475
+
476
+ Table 21: ShARC prompt example for condition identification and logical construction.
477
+
478
+ <table><tr><td>- Please check the satisfaction of the given condition(&quot;satisfied&quot; or &quot;contradicted&quot; or &quot;not mentioned&quot;) based on the provided documents.</td></tr><tr><td>- Provided Documents:</td></tr><tr><td>6. Immigration control</td></tr><tr><td>You may be able to get Child Tax Credit if you&#x27;re either working in the UK or you&#x27;re not working because you&#x27;re:</td></tr><tr><td>* retired</td></tr><tr><td>* pregnant or looking after children</td></tr><tr><td>* sick or disabled or your partner has died</td></tr><tr><td>- Condition to Check: You&#x27;re working in the UK</td></tr><tr><td>- Known Information: Q: Are you working in the UK? A: No</td></tr><tr><td>- Question: I was born in North Carolina and my husband and I are still trying to conceive. May I be able to get Child Tax Credit?</td></tr><tr><td>- Response:</td></tr><tr><td>Reasoning: The condition to check is whether the user is working in the UK. According to the known information about the user, she mentioned that she is not working in the UK. So the condition is contradicted by the known information.</td></tr><tr><td>Satisfaction: contradicted</td></tr></table>
479
+
480
+ Table 22: ShARC prompt example for condition verification.
481
+
482
+ - Please answer the question based on the provided document.
483
+
484
+ - Provided Document:
485
+
486
+ 6. Immigration control
487
+
488
+ You may be able to get Child Tax Credit if you're either working in the UK or you're not working because you're:
489
+
490
+ * retired
491
+
492
+ * pregnant or looking after children
493
+
494
+ * sick or disabled or your partner has died
495
+
496
+ - Known Information: Q: Are you working in the UK? A: No; Q: You are retired? A: No; Q: You are pregnant? A: No; Q: You are looking after children? A: No; Q: You are sick or disabled? A: Yes
497
+
498
+ - Question: I was born in North Carolina and my husband and I are still trying to conceive. May I be able to get Child Tax Credit?
499
+
500
+ - Response:
501
+
502
+ Reasoning: The user is asking whether she may be able to get Child Tax Credit. According to the documents, you may be able to get Child Tax Credit if you're either working in the UK, or if you are not working because you're retired, pregnant or looking after children, sick or disabled, or your partner has died. In the known information, the user mentioned that she is not working in the UK, she is not retired or pregnant or looking after children, but she is sick or disabled. So she is still eligible to get Child Tax Credit.
503
+
504
+ Answer: Yes
505
+
506
+ Table 23: ShARC prompt example for answer generation.
2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6af1342251f95e62fec0ca8ffbd65ed828ffe9076a7e6567d5f1c15181a846fc
3
+ size 874069
2024/Chain of Condition_ Construct, Verify and Solve Conditions for Conditional Question Answering/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/9d4eab78-45f8-4d28-a2ff-1fe28a57f872_content_list.json ADDED
@@ -0,0 +1,1851 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Chain-of-Rewrite: Aligning Question and Documents for Open-Domain Question Answering",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 221,
8
+ 79,
9
+ 774,
10
+ 118
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Chunlei Xin $^{1,2}$ , Yaojie Lu $^{1,*}$ , Hongyu Lin $^{1}$ , Shuheng Zhou $^{3}$ , Huijia Zhu $^{3}$ , Weiqiang Wang $^{3}$ , Zhongyi Liu $^{3}$ , Xianpei Han $^{1}$ , Le Sun $^{1}$",
17
+ "bbox": [
18
+ 188,
19
+ 124,
20
+ 813,
21
+ 158
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "$^{1}$ Chinese Information Processing Laboratory, Institute of Software, Chinese Academy of Sciences, Beijing, China",
28
+ "bbox": [
29
+ 226,
30
+ 159,
31
+ 769,
32
+ 191
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "$^{2}$ University of Chinese Academy of Sciences, Beijing, China $^{3}$ Ant Group",
39
+ "bbox": [
40
+ 250,
41
+ 192,
42
+ 744,
43
+ 225
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "{chunlei2021, luyaojie, hongyu, xianpei, sunle}@iscas.ac.cn, {shuheng.zsh, huijia.zhj, weiqiang.wwq, zhongyi.lzy}@antgroup.com",
50
+ "bbox": [
51
+ 169,
52
+ 225,
53
+ 828,
54
+ 259
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 260,
64
+ 261,
65
+ 339,
66
+ 275
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Despite the advancements made with the retrieve-then-read pipeline on open-domain question answering task, current methods still face challenges stemming from term mismatch and limited interaction between information retrieval systems and large language models. To mitigate these issues, we propose the Chain-of-Rewrite method, which leverages the guidance and feedback gained from the analysis to provide faithful and consistent extensions for effective question answering. Through a two-step rewriting process comprising Semantic Analysis and Semantic Augmentation, the Chain-of-Rewrite method effectively bridges the gap between the user question and relevant documents. By incorporating feedback from the rewriting process, our method can self-correct the retrieval and reading process to further improve the performance. Experiments on four open-domain question answering datasets demonstrate the effectiveness of our system under zero-shot settings.",
73
+ "bbox": [
74
+ 141,
75
+ 288,
76
+ 460,
77
+ 602
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 114,
87
+ 615,
88
+ 258,
89
+ 630
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Open-Domain Question Answering (ODQA) (Voorhees and Tice, 2000; Chen et al., 2017; Izacard and Grave, 2021b) is a long-standing task aimed at answering a wide variety of user questions without providing specific background documents. Recently, with the emergence of large language models (LLMs), ODQA systems typically employ a retrieve-then-read paradigm (Lee et al., 2019; Karpukhin et al., 2020; Lewis et al., 2020), where an information retrieval system is used to identify relevant contexts from knowledge bases, and then an LLM such as InstructGPT (Ouyang et al., 2022) and LLaMA (Touvron et al., 2023) is used to read the context and generate comprehensive and accurate answers. Due to its effectiveness and simplicity, the retrieve-then-read paradigm performs well",
96
+ "bbox": [
97
+ 112,
98
+ 640,
99
+ 489,
100
+ 898
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/66dfff94ec49ff2c205e49f5aeb5a275c75bf590b7c2713baed1b7b3997523fd.jpg",
107
+ "image_caption": [
108
+ "Figure 1: An example illustrates how term mismatch between an open-domain question and relevant documents can be mitigated through query rewriting and document rewriting. Query expansions and their corresponding matches in the document are shown in brown, while key sentences that point to the answer are shown in blue."
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 509,
113
+ 262,
114
+ 880,
115
+ 420
116
+ ],
117
+ "page_idx": 0
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "on the ODQA task and has received considerable attention (Yang and Seo, 2021; Shi et al., 2024; Zhang et al., 2023b).",
122
+ "bbox": [
123
+ 507,
124
+ 550,
125
+ 882,
126
+ 596
127
+ ],
128
+ "page_idx": 0
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Unfortunately, the retrieve-then-read paradigm faces challenges stemming from term mismatch and limited interaction between IR systems and LLMs. Firstly, in open-domain question answering, term mismatch often occurs due to ambiguous user intent and limited overlap between user questions and the corpus (Custis and Al-Kofahi, 2007; Zhao and Callan, 2012). This mismatch can negatively impact both the retrieval of relevant documents and the effectiveness of using these documents to answer questions. For example, as shown in Figure 1, \"What genre is The Trip?\" shares few words with the relevant document \"The Trip (2010 TV series)\" and misses the important keyword \"TV series\", making it difficult to match questions with relevant documents. Secondly, the disparate preferences between LLMs and retrievers further hinder the effectiveness of current retrieve-then-read paradigm (Guu et al., 2020; Ke et al., 2024), as there is limited interaction between the retrieval and reading",
133
+ "bbox": [
134
+ 505,
135
+ 599,
136
+ 884,
137
+ 921
138
+ ],
139
+ "page_idx": 0
140
+ },
141
+ {
142
+ "type": "page_footnote",
143
+ "text": "*Corresponding Author.",
144
+ "bbox": [
145
+ 136,
146
+ 906,
147
+ 285,
148
+ 920
149
+ ],
150
+ "page_idx": 0
151
+ },
152
+ {
153
+ "type": "page_number",
154
+ "text": "1884",
155
+ "bbox": [
156
+ 480,
157
+ 927,
158
+ 519,
159
+ 940
160
+ ],
161
+ "page_idx": 0
162
+ },
163
+ {
164
+ "type": "footer",
165
+ "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 1884-1896 November 12-16, 2024 ©2024 Association for Computational Linguistics",
166
+ "bbox": [
167
+ 216,
168
+ 945,
169
+ 779,
170
+ 972
171
+ ],
172
+ "page_idx": 0
173
+ },
174
+ {
175
+ "type": "image",
176
+ "img_path": "images/b4fc1f21475f411c3e68287acbabfbad621b4bc8dcfccb2893717c9b0bef2afa.jpg",
177
+ "image_caption": [
178
+ "Figure 2: Overall architecture of our proposed Chain-of-Rewrite method, which aims to address the term mismatch and limited interaction problems in ODQA scenarios."
179
+ ],
180
+ "image_footnote": [],
181
+ "bbox": [
182
+ 124,
183
+ 82,
184
+ 863,
185
+ 277
186
+ ],
187
+ "page_idx": 1
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "steps. This lack of interaction makes it difficult to self-correct the retrieval and reading processes by incorporating feedback from both components. For example, the LLM can guide the retriever with the important keyword \"TV series\" by identifying the strong connections between <genre, TV series> and <The Trip, TV series>. In turn, the retriever can refine the query based on the feedback indicating the candidate answers provided by the reader.",
192
+ "bbox": [
193
+ 112,
194
+ 332,
195
+ 487,
196
+ 476
197
+ ],
198
+ "page_idx": 1
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "To address the term mismatch and limited interaction problems, this paper proposes a Chain-of-Rewrite method. This method can effectively bridge the gap between the open-domain question and relevant documents through a two-step rewriting process. As shown in Figure 2, to capture the underlying intent behind the user question and map it to relevant documents, we use Chain-of-Rewrite to transform the user question into clarification search queries. These queries can further express the user intent to improve the retrieval effectiveness. To bridge the expression mismatch between the user question and retrieved documents, we use Chain-of-Rewrite to remove irrelevant content and highlight relevant information to make the original documents better match the question. Meanwhile, by leveraging the feedback from the chain-of-rewrite process, our method can self-correct the retrieval and reading process.",
203
+ "bbox": [
204
+ 112,
205
+ 482,
206
+ 489,
207
+ 788
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "Specifically, the Chain-of-Rewrite method consists of two main modules: Semantic Analysis and Semantic Augmentation. In Semantic Analysis, we prompt the LLM to identify the topics and key information embedded in the original question and document. This goes beyond surface-level matching and aims to capture the underlying relationships within the query and relevant documents. Building",
214
+ "bbox": [
215
+ 112,
216
+ 793,
217
+ 489,
218
+ 921
219
+ ],
220
+ "page_idx": 1
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "upon the insights gained from Semantic Analysis, Semantic Augmentation focuses on enhancing the semantic representation of the original question and document, leading to more consistent and informative extensions. Together, these steps ensure that the rewritten content is aligned with user intent while maintaining semantic consistency. To further self-correct the potential errors caused by distracting documents, we leverage the feedback from the rewriting process to prioritize passages that point to candidate answers and to refine search queries for collecting more relevant documents to correct potentially incorrect answers.",
225
+ "bbox": [
226
+ 507,
227
+ 332,
228
+ 884,
229
+ 541
230
+ ],
231
+ "page_idx": 1
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "Overall, our main contributions can be summarized as follows:",
236
+ "bbox": [
237
+ 507,
238
+ 542,
239
+ 882,
240
+ 571
241
+ ],
242
+ "page_idx": 1
243
+ },
244
+ {
245
+ "type": "list",
246
+ "sub_type": "text",
247
+ "list_items": [
248
+ "- We propose an unsupervised rewriting method, Chain-of-Rewrite, to address the term mismatch and the limited interaction problems in ODQA scenarios.",
249
+ "- We design two novel modules, Semantic Analysis and Semantic Augmentation, to ensure that the rewritten content matches the user intent while maintaining semantic consistency.",
250
+ "- We incorporate feedback from the rewriting process to effectively refine search queries and re-rank documents to self-correct the retrieval and reading process."
251
+ ],
252
+ "bbox": [
253
+ 531,
254
+ 583,
255
+ 884,
256
+ 796
257
+ ],
258
+ "page_idx": 1
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "2 Proposed Method",
263
+ "text_level": 1,
264
+ "bbox": [
265
+ 507,
266
+ 816,
267
+ 697,
268
+ 832
269
+ ],
270
+ "page_idx": 1
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "Our method is based on the retrieve-then-read pipeline (Lee et al., 2019; Karpukhin et al., 2020; Lewis et al., 2020), which first uses a retriever to retrieve relevant documents from external knowledge source, and then uses a reader to predict the",
275
+ "bbox": [
276
+ 507,
277
+ 841,
278
+ 882,
279
+ 921
280
+ ],
281
+ "page_idx": 1
282
+ },
283
+ {
284
+ "type": "page_number",
285
+ "text": "1885",
286
+ "bbox": [
287
+ 482,
288
+ 928,
289
+ 519,
290
+ 940
291
+ ],
292
+ "page_idx": 1
293
+ },
294
+ {
295
+ "type": "image",
296
+ "img_path": "images/e133abf1c3ad4a242a854c19ba89c4960d3738dd12e8ff32f233fe5d0005c2c6.jpg",
297
+ "image_caption": [
298
+ "Figure 3: The Chain-of-Rewrite method comprises two main modules: Semantic Analysis and Semantic Augmentation."
299
+ ],
300
+ "image_footnote": [],
301
+ "bbox": [
302
+ 124,
303
+ 83,
304
+ 860,
305
+ 368
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "answer based on these documents. Specifically, the retrieve-then-read pipeline can be represented as $p(a|q) = \\sum_{i}p(a|d_{i},q)p(d_{i}|q)$ , marginalizing over all possible documents. In practice, the $k$ highest ranked documents are used to approximate the sum over $d$ , yielding $p(a|q) = \\sum_{i = 1}^{k}p(a|d_{i},q)p(d_{i}|q)$ . While the retrieve-then-read frameworks show remarkable performance on the ODQA task, there exist mismatch between the user question $q$ and documents $d$ in knowledge source, posing challenges for existing ODQA systems to accurately understand the user intent and utilize relevant documents to correctly answer the question.",
312
+ "bbox": [
313
+ 112,
314
+ 418,
315
+ 489,
316
+ 627
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "To solve the above mismatch problem, we explore a two-step rewriting process, Chain-of-Rewrite, to align the user question and relevant documents. As shown in Figure 2, given an open-domain question $q$ , we use Chain-of-Rewrite to transform the user question into clarification search queries $q^r$ . These clarification queries can further express the user intent and contain additional relevant terms to improve the retrieval effectiveness. This can be represented as $p(q^r | q, \\theta_{\\text{cow}})$ , where $\\theta_{\\text{cow}}$ represents the parameters of the Chain-of-Rewrite model. Query $q^r$ is then fed into the retriever to retrieve a collection of relevant documents $d$ . To remove irrelevant content and highlight relevant information in document $d$ , we use Chain-of-Rewrite to transform the original document $d$ into context $c$ based on the question $q$ . This",
323
+ "bbox": [
324
+ 112,
325
+ 631,
326
+ 489,
327
+ 921
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "document rewriting process can be represented as $p(c_i|d_i, q, \\theta_{cow})$ . Therefore, we reformulate the retrieve-then-read pipeline as $p(a|q) = \\sum_{i} p(a|c_i, q)p(c_i|d_i, q, \\theta_{cow})p(d_i|q^r)p(q^r|q, \\theta_{cow})$ .",
334
+ "bbox": [
335
+ 507,
336
+ 418,
337
+ 885,
338
+ 483
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "Next, we will describe the two main modules in 2.1 and 2.2, and discuss the feedback in 2.3.",
345
+ "bbox": [
346
+ 507,
347
+ 483,
348
+ 882,
349
+ 514
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "2.1 Step 1: Semantic Analysis",
356
+ "text_level": 1,
357
+ "bbox": [
358
+ 507,
359
+ 527,
360
+ 759,
361
+ 543
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "In this step, our primary objective is to prompt the LLM to identify the topics and key information embedded in the original question and document, which forms the basis for the subsequent Semantic Augmentation process.",
368
+ "bbox": [
369
+ 507,
370
+ 550,
371
+ 882,
372
+ 630
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "For query reformulation, we prompt the LLM to add potentially missing topics and details to the original question $q$ to obtain clarification queries $q^c$ that can further express the user intent. This is important for open domain question answering, where questions often do not have a clear domain or topic scope, typically resulting in ambiguous user intent. By utilizing the world knowledge stored in the model parameters, this step can provide reliable guidance for subsequent query expansion.",
379
+ "bbox": [
380
+ 507,
381
+ 631,
382
+ 882,
383
+ 791
384
+ ],
385
+ "page_idx": 2
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "For document reformulation, as shown in Figure 3, we first prompt the LLM to provide the relationship between the original question and retrieved documents through a step-by-step analysis, and to extract the evidence sentences from the document to support its analysis. This step narrows the question-document mismatch in two ways. Firstly, the step-by-step analysis directly provides the re",
390
+ "bbox": [
391
+ 507,
392
+ 793,
393
+ 884,
394
+ 921
395
+ ],
396
+ "page_idx": 2
397
+ },
398
+ {
399
+ "type": "page_number",
400
+ "text": "1886",
401
+ "bbox": [
402
+ 482,
403
+ 928,
404
+ 519,
405
+ 940
406
+ ],
407
+ "page_idx": 2
408
+ },
409
+ {
410
+ "type": "image",
411
+ "img_path": "images/b6f39faf74617a11b7aee6c1227ac38ec961af48f94e28fd1eb33c115b36557c.jpg",
412
+ "image_caption": [
413
+ "Figure 4: Illustration of incorporating automatic feedback to refine search queries. Candidate answers extracted from top-k re-ranked documents are concatenated with the original question as refined queries to collect relevant documents."
414
+ ],
415
+ "image_footnote": [],
416
+ "bbox": [
417
+ 132,
418
+ 85,
419
+ 860,
420
+ 211
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "relationship between the document and the question, identifying highly relevant documents from irrelevant ones. Secondly, by identifying the key sentences relevant to the given question, LLM can effectively remove distracting and irrelevant content, hence enabling the LLM to hit the correct answer with higher precision and less effort. Based on the analysis, we prompt the LLM to identify the candidate answer from the given document, and offer an option (e.g. \"unknown\") to reject irrelevant documents.",
427
+ "bbox": [
428
+ 112,
429
+ 274,
430
+ 490,
431
+ 450
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "2.2 Step 2: Semantic Augmentation",
438
+ "text_level": 1,
439
+ "bbox": [
440
+ 112,
441
+ 463,
442
+ 410,
443
+ 479
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "The focus of this step is to bridge the term mismatch between the IR system and LLMs by taking into account the semantic analysis obtained in step 1 to produce faithful and consistent extensions.",
450
+ "bbox": [
451
+ 112,
452
+ 485,
453
+ 489,
454
+ 548
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "For query reformulation, we prompt the LLM to provide a list of highly relevant expanded queries based on the clarification query $q^c$ , from which we can extract various keywords to expand the original question $q$ . For each clarification query $q^c$ , we form query expansions by randomly sampling 4 to 8 keywords from all the generated expansions. These sampled keywords are concatenated with the clarification query $q^c$ to form an expanded query $q^r$ , which is then used to retrieve a set of $m$ relevant documents $d$ . The relevant documents retrieved by all expanded queries are aggregated by de-duplicating, with only the highest-scoring version of each duplicate retained. Finally, the top $N$ documents, ranked by their retrieval scores, are selected as the final retrieval results.",
461
+ "bbox": [
462
+ 112,
463
+ 550,
464
+ 489,
465
+ 806
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "For document reformulation, we aim to provide a concise and straightforward context that focuses on the given question while maintaining semantic and factual consistency. Specifically, we concatenate key sentences and a sentence that explicitly points to the answer as a rewrite of the relevant document, while leaving the irrelevant document",
472
+ "bbox": [
473
+ 112,
474
+ 809,
475
+ 490,
476
+ 921
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "unchanged. The top $k$ rewritten documents are then concatenated as a context $c$ , which is then fed into the reader with the original question $q$ to produce the answer $a$ .",
483
+ "bbox": [
484
+ 507,
485
+ 274,
486
+ 884,
487
+ 337
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "2.3 Automatic Feedback",
494
+ "text_level": 1,
495
+ "bbox": [
496
+ 507,
497
+ 351,
498
+ 717,
499
+ 366
500
+ ],
501
+ "page_idx": 3
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "Incorporating semantic analysis into the rewriting process not only provides guidance to maintain consistency, but can also provide automatic feedback to self-correct the retrieval and reading process by effectively refining queries and re-ranking retrieved documents.",
506
+ "bbox": [
507
+ 507,
508
+ 374,
509
+ 884,
510
+ 469
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "2.3.1 Refine Query",
517
+ "text_level": 1,
518
+ "bbox": [
519
+ 507,
520
+ 482,
521
+ 673,
522
+ 498
523
+ ],
524
+ "page_idx": 3
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "In many cases, retrieved documents may be relevant but not sufficient to point to the correct answer. These documents are likely to mislead the LLM into producing an incorrect or incomplete answer, thereby reducing the effectiveness and robustness of the ODQA system. To collect more relevant documents to refine potentially incorrect answers, as shown in Figure 4, candidate answers extracted from top $k$ relevant documents can be used as automatic feedback to augment the original question. By providing more relevant documents focused on the candidate answer, incorrect answers extracted from misleading documents can be refined, leading to more accurate and reliable responses.",
529
+ "bbox": [
530
+ 507,
531
+ 504,
532
+ 884,
533
+ 728
534
+ ],
535
+ "page_idx": 3
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "2.3.2 Re-rank Documents",
540
+ "text_level": 1,
541
+ "bbox": [
542
+ 507,
543
+ 741,
544
+ 727,
545
+ 755
546
+ ],
547
+ "page_idx": 3
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "Given the retrieved documents $d$ , the re-ranker is expected to rank the documents based on the query-document relevance. For unsupervised passage re-ranking, a widespread method UPR (Sachan et al., 2022) is to rank documents according to the average log-likelihood of the question tokens conditioned on the passage:",
552
+ "bbox": [
553
+ 507,
554
+ 760,
555
+ 884,
556
+ 873
557
+ ],
558
+ "page_idx": 3
559
+ },
560
+ {
561
+ "type": "equation",
562
+ "text": "\n$$\np \\left(d _ {i} | q\\right) \\propto \\frac {1}{| q |} \\sum_ {t} \\log p \\left(q _ {t} | q _ {< t}, d _ {i}; \\Theta\\right)\n$$\n",
563
+ "text_format": "latex",
564
+ "bbox": [
565
+ 552,
566
+ 887,
567
+ 836,
568
+ 923
569
+ ],
570
+ "page_idx": 3
571
+ },
572
+ {
573
+ "type": "page_number",
574
+ "text": "1887",
575
+ "bbox": [
576
+ 482,
577
+ 927,
578
+ 519,
579
+ 940
580
+ ],
581
+ "page_idx": 3
582
+ },
583
+ {
584
+ "type": "image",
585
+ "img_path": "images/a94cd7d8568a61839600d6e156a403dd79101e1d5aaed474bf0e30813aa0218d.jpg",
586
+ "image_caption": [
587
+ "Figure 5: Illustration of incorporating automatic feedback to re-rank documents. The output probability of \"unknown\" is used to estimate the relevance of the question-document pair."
588
+ ],
589
+ "image_footnote": [],
590
+ "bbox": [
591
+ 112,
592
+ 84,
593
+ 485,
594
+ 218
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "where $\\Theta$ denotes the parameters of the re-ranker model and $|q|$ denotes the number of question tokens. However, due to a significant mismatch between this relevance assessment method and the training objective of next-word prediction in LLMs (Zhang et al., 2023a), UPR is suboptimal.",
601
+ "bbox": [
602
+ 112,
603
+ 293,
604
+ 487,
605
+ 388
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "To effectively distinguish truly relevant documents from distracting ones that may superficially overlap with the question, we estimate the query-document relevance at a deeper semantic level. As shown in Figure 5, we utilize the output probability of \"unknown\" when predicting candidate answers as an automatic feedback, to estimate the relevance of the question-document pair:",
612
+ "bbox": [
613
+ 112,
614
+ 388,
615
+ 487,
616
+ 518
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "equation",
622
+ "text": "\n$$\np (d _ {i} | q) \\propto 1 - p (\\mathrm {u n k n o w n} | q, d _ {i}, g)\n$$\n",
623
+ "text_format": "latex",
624
+ "bbox": [
625
+ 166,
626
+ 530,
627
+ 431,
628
+ 548
629
+ ],
630
+ "page_idx": 4
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "where $g$ represents the analysis provided in step 1.",
635
+ "bbox": [
636
+ 112,
637
+ 558,
638
+ 487,
639
+ 573
640
+ ],
641
+ "page_idx": 4
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "Note that our method complements the UPR method by focusing on deep semantic relationships rather than surface-level token matching. Based on the prediction likelihood of the input question conditioned on a passage, UPR favors passages that contain question tokens, overlooking whether these passages actually help in answering the question. In contrast, our approach focuses on this critical aspect. In our main experiments, we employ the standard Reciprocal Rank Fusion (RRF) approach to combine the re-ranking results of our method with those of UPR.",
646
+ "bbox": [
647
+ 112,
648
+ 574,
649
+ 487,
650
+ 765
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "3 Experiments",
657
+ "text_level": 1,
658
+ "bbox": [
659
+ 112,
660
+ 778,
661
+ 260,
662
+ 795
663
+ ],
664
+ "page_idx": 4
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "3.1 Experiment Setup",
669
+ "text_level": 1,
670
+ "bbox": [
671
+ 112,
672
+ 804,
673
+ 302,
674
+ 819
675
+ ],
676
+ "page_idx": 4
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "Dataset. We conduct extensive experiments on four open-domain question answering datasets, including Natural Question (NQ) (Kwiatkowski et al., 2019), TriviaQA (Joshi et al., 2017), WebQuestions (WebQ) (Berant et al., 2013) and PopQA (Mallen et al., 2023), which focuses on questions about",
681
+ "bbox": [
682
+ 112,
683
+ 825,
684
+ 487,
685
+ 921
686
+ ],
687
+ "page_idx": 4
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "long-tail entities. We use the same splits as previous approaches (Karpukhin et al., 2020; Izacard and Grave, 2021b).",
692
+ "bbox": [
693
+ 507,
694
+ 84,
695
+ 882,
696
+ 131
697
+ ],
698
+ "page_idx": 4
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "Retrieval System. We employ the representative sparse retriever BM25 (Robertson and Zaragoza, 2009) to collect relevant documents from the English Wikipedia dump from December 20, 2018. This choice is based on the observation that the performance of dense retrieval methods like DPR (Karpukhin et al., 2020) degrades rapidly on rarer entities, whereas BM25 exhibits less sensitivity to entity frequency (Sciavolino et al., 2021). Since our experiments focus on open-domain questions, particularly on datasets like PopQA with long-tail entities, BM25 was selected for its robustness and effectiveness across diverse datasets.",
703
+ "bbox": [
704
+ 507,
705
+ 133,
706
+ 882,
707
+ 338
708
+ ],
709
+ "page_idx": 4
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "Implementation. We choose Vicuna-13B-v1.5 (Chiang et al., 2023) as the base model for chain-of-rewriting open-domain questions and documents. For query reformulation, we collect up to 5 clarification queries for each user question. Each expanded query is used to retrieve a set of $m = 30$ documents. After de-duplication, top $N = 100$ documents with highest retrieval scores are selected as the final retrieval results. From these, top $k = 5$ evidence passages are selected and fed to the reader. We employ Vicuna-13B-v1.5 and GPT-3.5-Turbo (OpenAI., 2022) as the reader in main experiments. Metrics. We use exact match (EM) and F1 scores for NQ, TriviaQA and WebQ, and follow the same normalization process utilized in previous work (Karpukhin et al., 2020; Chen et al., 2017; Lee et al., 2019). For PopQA, we adopt the same evaluation metric, accuracy score, as used by Mallen et al. (2023). A prediction is considered correct if any substring of the prediction exactly matches one of the golden answers.",
714
+ "bbox": [
715
+ 507,
716
+ 342,
717
+ 882,
718
+ 678
719
+ ],
720
+ "page_idx": 4
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "Baseline Methods. We compare our method with the following zero-shot QA baselines: (1) Close book methods without using retriever: Vicuna-13B-v1.5 (Chiang et al., 2023), GPT-3.5-Turbo (OpenAI., 2022) and GenRead (Yu et al., 2023). (2) Retrieval-augmented LLMs: Vicuna-13B-v1.5 and GPT-3.5-Turbo augmented with BM25 retrieved documents from Wikipedia. (3) Self-Ask (Press et al., 2023): decomposing questions into subquestions for multi-step reasoning. (4) Distraction-aware Answer Selection (DAS) (Cho et al., 2023): incorporating unanswerable instruction and selecting an answer from candidates. (5) ALLIES (Sun et al., 2023): iteratively refining and expanding the original query.",
725
+ "bbox": [
726
+ 507,
727
+ 680,
728
+ 882,
729
+ 921
730
+ ],
731
+ "page_idx": 4
732
+ },
733
+ {
734
+ "type": "page_number",
735
+ "text": "1888",
736
+ "bbox": [
737
+ 482,
738
+ 928,
739
+ 519,
740
+ 940
741
+ ],
742
+ "page_idx": 4
743
+ },
744
+ {
745
+ "type": "table",
746
+ "img_path": "images/da09ee14a08beb55d5bf5cad5a2ce4b8b3e44087e11a528ce69a9fe1364fe23c.jpg",
747
+ "table_caption": [],
748
+ "table_footnote": [],
749
+ "table_body": "<table><tr><td rowspan=\"2\">Models</td><td colspan=\"2\">NQ</td><td colspan=\"2\">WebQ</td><td colspan=\"2\">TriviaQA</td><td>PopQA</td></tr><tr><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>ACC</td></tr><tr><td colspan=\"8\">Close book methods without using retriever</td></tr><tr><td>Vicuna-13B</td><td>22.1</td><td>29.4</td><td>23.7</td><td>35.9</td><td>50.1</td><td>56.9</td><td>30.2</td></tr><tr><td>GPT-3.5-Turbo</td><td>29.4</td><td>40.7</td><td>22.8</td><td>40.0</td><td>54.8</td><td>65.5</td><td>37.9</td></tr><tr><td>GENREAD (InstructGPT) (Yu et al., 2023)</td><td>31.1</td><td>44.8</td><td>19.1</td><td>36.9</td><td>59.3</td><td>70.7</td><td>46.0</td></tr><tr><td colspan=\"8\">Retrieval-augmented LLMs</td></tr><tr><td>Vicuna-13B + BM25</td><td>25.5</td><td>34.9</td><td>20.2</td><td>34.2</td><td>53.7</td><td>64.0</td><td>34.6</td></tr><tr><td>Vicuna-13B + BM25 + UPR</td><td>28.9</td><td>39.2</td><td>22.4</td><td>35.9</td><td>56.5</td><td>67.0</td><td>39.0</td></tr><tr><td>GPT-3.5-Turbo + BM25</td><td>33.2</td><td>42.8</td><td>23.3</td><td>38.2</td><td>57.6</td><td>68.7</td><td>43.9</td></tr><tr><td colspan=\"8\">Decomposing questions for multi-step reasoning</td></tr><tr><td>Self-Ask (Davinci-002) (Press et al., 2023)</td><td>26.4</td><td>36.5</td><td>15.1</td><td>29.5</td><td>59.4</td><td>68.5</td><td>33.6†</td></tr><tr><td colspan=\"8\">Selecting an answer from candidates</td></tr><tr><td>Vicuna-13B w/ DAS (Cho et al., 2023)</td><td>27.1†</td><td>38.5†</td><td>23.4†</td><td>35.8†</td><td>54.9†</td><td>62.3†</td><td>31.2†</td></tr><tr><td colspan=\"8\">Iteratively refining the original query</td></tr><tr><td>ALLIES (GPT-3.5-Turbo) (Sun et al., 2023)</td><td>38.0</td><td>47.8</td><td>28.2</td><td>45.6</td><td>61.4</td><td>70.8</td><td>37.6†</td></tr><tr><td colspan=\"8\">Our method, bridging the mismatch between the question and relevant documents</td></tr><tr><td>Chain-of-Rewrite (Reader=Vicuna-13B)</td><td>34.0</td><td>45.3</td><td>24.8</td><td>40.4</td><td>59.3</td><td>70.4</td><td>48.0</td></tr><tr><td>Chain-of-Rewrite (Reader=GPT-3.5-Turbo)</td><td>40.2</td><td>49.3</td><td>27.1</td><td>41.4</td><td>61.6</td><td>71.7</td><td>50.2</td></tr></table>",
750
+ "bbox": [
751
+ 119,
752
+ 80,
753
+ 878,
754
+ 439
755
+ ],
756
+ "page_idx": 5
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "Table 1: Main results on four open-domain question answering benchmarks under zero-shot settings. The best performing pipelines are highlighted in bold. Results marked with $\\dagger$ are from our runs with their released code.",
761
+ "bbox": [
762
+ 112,
763
+ 449,
764
+ 882,
765
+ 479
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "3.2 Overall Results",
772
+ "text_level": 1,
773
+ "bbox": [
774
+ 112,
775
+ 504,
776
+ 282,
777
+ 518
778
+ ],
779
+ "page_idx": 5
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "As shown in Table 1, by effectively handling the mismatch between questions and retrieved documents and by self-correcting the retrieval and reranking process, our Chain-of-Rewrite method significantly outperforms the retrieval-augmented LLMs baselines. Specifically, when employing Vicuna-13B-v1.5 as the reader, incorporating Chain-of-Rewrite process can achieve an improvement of over 13 points on PopQA, which focuses on questions about long-tail entities. The same trend can be observed when GPT-3.5-Turbo is used as the reader to answer questions. These experimental results demonstrate the effectiveness of our Chain-of-Rewrite method in improving the ability of LLMs to handle open-domain questions, especially for long-tail questions.",
784
+ "bbox": [
785
+ 112,
786
+ 531,
787
+ 489,
788
+ 789
789
+ ],
790
+ "page_idx": 5
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Furthermore, we observe that applying GPT-3.5-Turbo as the reader enhances the performance of our system on all datasets, achieving the highest performance on most open-domain question answering datasets. Notably, on the long-tail ODQA dataset PopQA, baseline methods do not perform as well as expected, with many even falling short of the performance of retrieval-augmented LLMs.",
795
+ "bbox": [
796
+ 112,
797
+ 791,
798
+ 489,
799
+ 921
800
+ ],
801
+ "page_idx": 5
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "This is mainly due to suboptimal retrieval effectiveness on PopQA, negatively impacting subsequent optimizations that depend on these retrieval results. It's important to note that in our Chain-of-Rewrite (Reader=GPT-3.5-Turbo) configuration, GPT-3.5-Turbo is only used for question answering, while the entire Chain-of-Rewrite process is still based on Vicuna-13B. In contrast, ALLIES employs GPT-3.5-Turbo for the entire pipeline, including query generation, question answering, and answer scoring. Despite this, our pipeline achieves comparable or even superior performance to ALLIES, showcasing the effectiveness and efficiency of our system.",
806
+ "bbox": [
807
+ 507,
808
+ 504,
809
+ 884,
810
+ 712
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "3.3 Detailed Analysis",
817
+ "text_level": 1,
818
+ "bbox": [
819
+ 507,
820
+ 728,
821
+ 692,
822
+ 744
823
+ ],
824
+ "page_idx": 5
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "3.3.1 Question Answering Performance",
829
+ "text_level": 1,
830
+ "bbox": [
831
+ 507,
832
+ 753,
833
+ 835,
834
+ 768
835
+ ],
836
+ "page_idx": 5
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "To explore the impact of the guidance and automatic feedback provided in our Chain-of-Rewrite method on improving the question answering performance, we conduct ablation studies on four ODQA datasets, and the results are shown in Table 2. We can see that:",
841
+ "bbox": [
842
+ 507,
843
+ 774,
844
+ 884,
845
+ 869
846
+ ],
847
+ "page_idx": 5
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "(1) Bridging the mismatch between the question and the retrieved documents is crucial for open-domain question answering. After removing the",
852
+ "bbox": [
853
+ 507,
854
+ 873,
855
+ 882,
856
+ 921
857
+ ],
858
+ "page_idx": 5
859
+ },
860
+ {
861
+ "type": "page_number",
862
+ "text": "1889",
863
+ "bbox": [
864
+ 482,
865
+ 928,
866
+ 519,
867
+ 940
868
+ ],
869
+ "page_idx": 5
870
+ },
871
+ {
872
+ "type": "table",
873
+ "img_path": "images/af308813297185efe2ad7d0ac0829715871c179ec6ef2832bd58ad6f7ec20f3a.jpg",
874
+ "table_caption": [],
875
+ "table_footnote": [],
876
+ "table_body": "<table><tr><td></td><td colspan=\"2\">NQ</td><td colspan=\"2\">WebQ</td><td colspan=\"2\">TriviaQA</td><td colspan=\"2\">PopQA</td><td></td></tr><tr><td></td><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>ACC</td><td>EM</td><td>F1</td></tr><tr><td>Chain-of-Rewrite</td><td>34.0</td><td>45.3</td><td>24.8</td><td>40.4</td><td>59.3</td><td>70.4</td><td>48.0</td><td>41.7</td><td>49.2</td></tr><tr><td>w/o refine query feedback</td><td>33.6</td><td>45.0</td><td>24.4</td><td>39.7</td><td>58.7</td><td>69.7</td><td>47.4</td><td>41.5</td><td>48.9</td></tr><tr><td>w/o rerank documents feedback</td><td>32.4</td><td>43.3</td><td>23.9</td><td>39.9</td><td>58.9</td><td>70.3</td><td>47.0</td><td>40.6</td><td>47.9</td></tr><tr><td>w/o chain-of-rewrite documents</td><td>29.5</td><td>39.2</td><td>23.1</td><td>38.0</td><td>58.3</td><td>69.4</td><td>48.2</td><td>40.4</td><td>47.4</td></tr><tr><td>w/o chain-of-rewrite question</td><td>29.9</td><td>40.4</td><td>23.7</td><td>38.6</td><td>56.7</td><td>67.5</td><td>38.4</td><td>33.0</td><td>39.6</td></tr><tr><td>Vicuna-13B + BM25</td><td>25.5</td><td>34.9</td><td>20.2</td><td>34.2</td><td>53.7</td><td>64.0</td><td>34.6</td><td>28.8</td><td>34.3</td></tr></table>",
877
+ "bbox": [
878
+ 122,
879
+ 80,
880
+ 877,
881
+ 227
882
+ ],
883
+ "page_idx": 6
884
+ },
885
+ {
886
+ "type": "table",
887
+ "img_path": "images/71660c08f36411a1a1ae41bd74240b35364653f8e1b5ffb109f6d963e560bff2.jpg",
888
+ "table_caption": [
889
+ "Table 2: Ablation study. Our proposed chain-of-rewrite components and the automatic feedback provided during rewriting can improve overall performance on four ODQA benchmarks. We employ Vicuna-13B-v1.5 as the Reader."
890
+ ],
891
+ "table_footnote": [],
892
+ "table_body": "<table><tr><td></td><td colspan=\"2\">PopQA</td><td colspan=\"2\">NQ</td><td colspan=\"2\">WebQ</td><td colspan=\"2\">TriviaQA</td></tr><tr><td></td><td>R@5</td><td>R@20</td><td>R@5</td><td>R@20</td><td>R@5</td><td>R@20</td><td>R@5</td><td>R@20</td></tr><tr><td>Baseline</td><td>37.41</td><td>50.12</td><td>49.25</td><td>67.45</td><td>50.30</td><td>68.11</td><td>68.67</td><td>77.70</td></tr><tr><td>Direct Expansion</td><td>48.02</td><td>52.11</td><td>62.35</td><td>75.10</td><td>61.12</td><td>73.87</td><td>75.95</td><td>80.71</td></tr><tr><td>Chain-of-Rewrite</td><td>59.80</td><td>65.71</td><td>63.57</td><td>77.40</td><td>61.71</td><td>74.51</td><td>76.81</td><td>81.31</td></tr></table>",
893
+ "bbox": [
894
+ 161,
895
+ 279,
896
+ 835,
897
+ 378
898
+ ],
899
+ "page_idx": 6
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Table 3: Recall@5 and Recall@20 on test sets across four open-domain question answering datasets.",
904
+ "bbox": [
905
+ 154,
906
+ 387,
907
+ 836,
908
+ 403
909
+ ],
910
+ "page_idx": 6
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "chain-of-rewrite documents component, the EM and F1 scores decrease significantly for all datasets. Specifically, the EM and F1 scores decrease by 4.5 and 5.9 points respectively for the NQ dataset. A similar trend can be observed when the chain-of-rewrite query component is removed.",
915
+ "bbox": [
916
+ 112,
917
+ 426,
918
+ 487,
919
+ 523
920
+ ],
921
+ "page_idx": 6
922
+ },
923
+ {
924
+ "type": "list",
925
+ "sub_type": "text",
926
+ "list_items": [
927
+ "(2) Expanding the user question with candidate answers obtained during chain-of-rewriting can effectively provide more relevant documents. When incorporating automatic feedback to refine the search queries, our method further improves both EM and F1 scores across all datasets.",
928
+ "(3) The \"unknown\" output probability based on the step-by-step analysis is an effective estimate of query-document relevance. As shown in Table 2, while applying the Chain-of-Rewrite method solely to the top-5 documents (w/o rerank documents feedback) leads to significant improvements compared to Vicuna-13B + BM25, incorporating automatic feedback to re-rank documents yields further enhancements across all datasets. This observation confirms that utilizing the output probability of \"unknown\" to measure the query-document relevance can effectively distinguish truly relevant documents from distracting documents."
929
+ ],
930
+ "bbox": [
931
+ 112,
932
+ 524,
933
+ 489,
934
+ 829
935
+ ],
936
+ "page_idx": 6
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "3.3.2 Passage Retrieval Performance",
941
+ "text_level": 1,
942
+ "bbox": [
943
+ 112,
944
+ 838,
945
+ 418,
946
+ 853
947
+ ],
948
+ "page_idx": 6
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "For detailed analysis of passage retrieval performance, we incorporate Recall@K (R@K) as the evaluation metric, which calculates the percentage of top-K retrieved documents that contain the cor",
953
+ "bbox": [
954
+ 112,
955
+ 857,
956
+ 489,
957
+ 921
958
+ ],
959
+ "page_idx": 6
960
+ },
961
+ {
962
+ "type": "text",
963
+ "text": "rect answer. The results are shown in Table 3, and we can see that our method outperforms Direct Expansion on all ODQA datasets. Specifically, we see the Recall@5 and Recall@20 improvements of +11.8 and +13.6 (24.6% and 26.2% relative improvement) respectively on PopQA, which focuses on open-domain questions about long-tail entities. This demonstrates that by adding clear topic and details to the open-domain question, our Chain-of-Rewrite process can provide reliable guidance to generate detailed and consistent query expansions, leading to improved retrieval effectiveness.",
964
+ "bbox": [
965
+ 507,
966
+ 426,
967
+ 884,
968
+ 620
969
+ ],
970
+ "page_idx": 6
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "3.3.3 Passage Ranking Performance",
975
+ "text_level": 1,
976
+ "bbox": [
977
+ 507,
978
+ 627,
979
+ 808,
980
+ 643
981
+ ],
982
+ "page_idx": 6
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "To evaluate the passage ranking performance, we compute the top-K retrieval accuracy score following Sachan et al. (2022). It is defined as the proportion of questions for which at least one passage within the top-K passages contains a span that matches the answer. We report the top-1, top-5 and top-10 retrieval accuracy on three ODQA datasets in Table 4, and report the top-1 and top-10 retrieval accuracy on different question categories in PopQA in Figure 6.",
987
+ "bbox": [
988
+ 507,
989
+ 646,
990
+ 882,
991
+ 808
992
+ ],
993
+ "page_idx": 6
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "As shown in Table 4, incorporating rerank document feedback into the BM25 ranking or BM25+UPR ranking can provide consistent passage ranking performance improvements across all datasets, with particularly significant performance gains in top-1 retrieval accuracy and top-5 retrieval accuracy. In particular, BM25 + Rerank Feedback",
998
+ "bbox": [
999
+ 507,
1000
+ 809,
1001
+ 882,
1002
+ 921
1003
+ ],
1004
+ "page_idx": 6
1005
+ },
1006
+ {
1007
+ "type": "page_number",
1008
+ "text": "1890",
1009
+ "bbox": [
1010
+ 482,
1011
+ 927,
1012
+ 521,
1013
+ 940
1014
+ ],
1015
+ "page_idx": 6
1016
+ },
1017
+ {
1018
+ "type": "table",
1019
+ "img_path": "images/1286225993d0f624e043aa8ceffdeb0a364665e5ea661ae0477036b6c5d8a224.jpg",
1020
+ "table_caption": [],
1021
+ "table_footnote": [],
1022
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Top-1</td><td rowspan=\"2\">NQ Top-5</td><td rowspan=\"2\">Top-10</td><td colspan=\"3\">WebQA</td><td colspan=\"3\">TriviaQA</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-10</td><td>Top-1</td><td>Top-5</td><td>Top-10</td></tr><tr><td>BM25</td><td>24.02</td><td>47.65</td><td>60.30</td><td>25.59</td><td>51.13</td><td>62.75</td><td>45.41</td><td>64.87</td><td>72.10</td></tr><tr><td>+Rerank Feedback</td><td>40.64</td><td>65.87</td><td>72.94</td><td>37.11</td><td>65.40</td><td>73.13</td><td>59.81</td><td>76.91</td><td>79.85</td></tr><tr><td>BM25 + UPR</td><td>36.12</td><td>63.57</td><td>72.05</td><td>36.91</td><td>61.71</td><td>68.90</td><td>61.95</td><td>76.81</td><td>79.46</td></tr><tr><td>+Rerank Feedback</td><td>46.76</td><td>69.20</td><td>75.01</td><td>43.45</td><td>66.24</td><td>72.39</td><td>66.46</td><td>78.08</td><td>80.49</td></tr></table>",
1023
+ "bbox": [
1024
+ 124,
1025
+ 80,
1026
+ 880,
1027
+ 198
1028
+ ],
1029
+ "page_idx": 7
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Table 4: Top-{1, 5, 10} retrieval accuracy on test sets across three open-domain question answering datasets.",
1034
+ "bbox": [
1035
+ 129,
1036
+ 206,
1037
+ 863,
1038
+ 223
1039
+ ],
1040
+ "page_idx": 7
1041
+ },
1042
+ {
1043
+ "type": "image",
1044
+ "img_path": "images/5816ec10ea62ceaad4c7138cb141063540a07f2b0b9d8bee55b0163c598d92d2.jpg",
1045
+ "image_caption": [
1046
+ "Figure 6: Top-1 and Top-10 retrieval accuracy for different question categories in the PopQA dataset. Top-1 retrieval accuracy is shown in darker color and Top-10 retrieval accuracy is shown in lighter color."
1047
+ ],
1048
+ "image_footnote": [],
1049
+ "bbox": [
1050
+ 176,
1051
+ 240,
1052
+ 816,
1053
+ 406
1054
+ ],
1055
+ "page_idx": 7
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "improves the top-1 retrieval accuracy by $+16.62$ (69.2% relative improvement) and top-5 retrieval accuracy by $+18.22$ (38.2% relative improvement) on NQ dataset. Furthermore, BM25 + Rerank Feedback outperforms BM25 + UPR on all datasets, demonstrating the effectiveness of our method for prioritizing highly relevant documents to the top compared to UPR. The same trend can be verified in Figure 6, where incorporating rerank feedback leads to an improvement in passage ranking performance on different question categories in PopQA.",
1060
+ "bbox": [
1061
+ 112,
1062
+ 463,
1063
+ 489,
1064
+ 642
1065
+ ],
1066
+ "page_idx": 7
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "4 Related Work",
1071
+ "text_level": 1,
1072
+ "bbox": [
1073
+ 112,
1074
+ 651,
1075
+ 270,
1076
+ 665
1077
+ ],
1078
+ "page_idx": 7
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "4.1 Open-Domain Question Answering",
1083
+ "text_level": 1,
1084
+ "bbox": [
1085
+ 112,
1086
+ 675,
1087
+ 436,
1088
+ 690
1089
+ ],
1090
+ "page_idx": 7
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Open-domain question answering can be categorized into two settings: the closed-book setting and the open-book setting. In the closed-book setting, pre-trained language models answer open-domain questions directly without access to the external corpus. In the open-book setting, the ODQA system typically consists of a retriever and a reader component (Izacard and Grave, 2021a; Yang and Seo, 2021; Zhang et al., 2023b). The retriever finds relevant information from a corpus such as Wikipedia (Chen et al., 2017; Izacard and Grave, 2021b) or web pages (Nakano et al., 2021; Lazari-dou et al., 2022), followed by a reader that focuses on answering the question based on the retrieved",
1095
+ "bbox": [
1096
+ 112,
1097
+ 696,
1098
+ 489,
1099
+ 921
1100
+ ],
1101
+ "page_idx": 7
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "information.",
1106
+ "bbox": [
1107
+ 509,
1108
+ 464,
1109
+ 606,
1110
+ 476
1111
+ ],
1112
+ "page_idx": 7
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Recently, the emergence of large language models has demonstrated their potential to be used for open-domain question answering. With no training data or external corpus, LLMs are able to provide answers with direct prompts (Brown et al., 2020; Wei et al., 2022; Chiang et al., 2023; Yang et al., 2024). At the retrieval stage, the LLM can be used as query rewriter to refine input questions to better express user intent (Liu et al., 2022; Chuang et al., 2023; Qin et al., 2023), or as knowledge sources to provide relevant contextual documents that increase the likelihood of covering the correct answer (Yu et al., 2023; Li et al., 2024). At the reader stage, LLMs can effectively reduce distractions from irrelevant documents to improve the context quality (Levine et al., 2022; Cho et al., 2023).",
1117
+ "bbox": [
1118
+ 507,
1119
+ 480,
1120
+ 884,
1121
+ 737
1122
+ ],
1123
+ "page_idx": 7
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "4.2 Query and Document Expansion",
1128
+ "text_level": 1,
1129
+ "bbox": [
1130
+ 507,
1131
+ 753,
1132
+ 811,
1133
+ 769
1134
+ ],
1135
+ "page_idx": 7
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "In order to overcome the term mismatch problem between open-domain questions and relevant documents in ODQA scenarios, various query expansion and document expansion approaches are proposed. Document expansion enhances each document with additional information, such as additional terms selected from a corpus (Billerbeck and Zobel, 2005; Dai and Callan, 2020), or expanded queries generated by pre-trained language models",
1140
+ "bbox": [
1141
+ 507,
1142
+ 776,
1143
+ 884,
1144
+ 921
1145
+ ],
1146
+ "page_idx": 7
1147
+ },
1148
+ {
1149
+ "type": "page_number",
1150
+ "text": "1891",
1151
+ "bbox": [
1152
+ 482,
1153
+ 928,
1154
+ 517,
1155
+ 940
1156
+ ],
1157
+ "page_idx": 7
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "based on the original document (Nogueira et al., 2019a,b). On the other hand, query expansion adds additional terms selected from the top-ranked documents retrieved by the initial query (Abdul-Jaleel et al., 2004; Metzler and Croft, 2005, 2007) or expands the original query with lexical-level (Zukerman and Raskutti, 2002) or phrase-level (Riezler et al., 2007) paraphrases.",
1162
+ "bbox": [
1163
+ 112,
1164
+ 84,
1165
+ 487,
1166
+ 212
1167
+ ],
1168
+ "page_idx": 8
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Recently, leveraging LLMs for expansion has proven to be a promising solution to address the term mismatch problem (Wang et al., 2023; Lee et al., 2023). Among them, Chen et al. (2024) propose the AGR method, which prompts the LLM to generate potential answers as query expansions after analyzing the question. In contrast, our query reformulation method focuses more on narrowing the expression gap between the user question and the corpus, without requiring the LLM to directly generate answers. This reduces reliance on the LLM's internal knowledge and demonstrates improved generalization and robustness, especially for long-tail questions.",
1173
+ "bbox": [
1174
+ 115,
1175
+ 214,
1176
+ 489,
1177
+ 439
1178
+ ],
1179
+ "page_idx": 8
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "5 Conclusion",
1184
+ "text_level": 1,
1185
+ "bbox": [
1186
+ 112,
1187
+ 451,
1188
+ 247,
1189
+ 467
1190
+ ],
1191
+ "page_idx": 8
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "We propose an unsupervised rewriting method, Chain-of-Rewrite, which utilizes pre-trained language models to effectively address the term mismatch and limited interaction problems. We design two modules, Semantic Analysis and Semantic Augmentation, to progressively bridge the mismatch between the user question and relevant documents while maintaining semantic consistency. During the two-step rewriting process, we incorporate automatic feedback into the retrieval and reading process to self-correct the potential errors. Extensive experiments on four ODQA datasets demonstrate the effectiveness of our system in performing question answering, passage retrieval and passage ranking tasks under zero-shot settings.",
1196
+ "bbox": [
1197
+ 112,
1198
+ 479,
1199
+ 489,
1200
+ 720
1201
+ ],
1202
+ "page_idx": 8
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "6 Limitations",
1207
+ "text_level": 1,
1208
+ "bbox": [
1209
+ 112,
1210
+ 733,
1211
+ 250,
1212
+ 747
1213
+ ],
1214
+ "page_idx": 8
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "In this work, we propose an effective unsupervised rewriting method, Chain-of-Rewrite, to tackle the challenges in open-domain question answering scenarios. The limitations of the proposed method are as follows:",
1219
+ "bbox": [
1220
+ 112,
1221
+ 760,
1222
+ 487,
1223
+ 838
1224
+ ],
1225
+ "page_idx": 8
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "(1) Due to the need for in-depth analysis and reconstruction, our approach requires more computational resources and time than using a retrieve-then-read pipeline that takes the original questions and documents as input. However, in situations where",
1230
+ "bbox": [
1231
+ 112,
1232
+ 841,
1233
+ 489,
1234
+ 921
1235
+ ],
1236
+ "page_idx": 8
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "computational resources are constrained, there are strategies to mitigate the computational overhead while still maintaining considerable performance gains. One such strategy involves selectively applying the chain-of-rewrite process to the top-ranked documents, rather than all retrieved documents. As indicated in Table 2 under the \"w/o rerank documents feedback\" condition, the performance decrease is marginal compared to rewriting all retrieved documents.",
1241
+ "bbox": [
1242
+ 507,
1243
+ 84,
1244
+ 884,
1245
+ 243
1246
+ ],
1247
+ "page_idx": 8
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "(2) Due to constraints in computational resources and time, our experiments were limited to using the Vicuna-13B model as the base model for chain-of-rewriting open-domain questions and documents retrieved from Wikipedia. However, our framework can be easily applied to models with varying scales and architectures, and we are interested in investigating the effectiveness of our approach on other LLMs.",
1252
+ "bbox": [
1253
+ 507,
1254
+ 244,
1255
+ 884,
1256
+ 388
1257
+ ],
1258
+ "page_idx": 8
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "7 Acknowledgments",
1263
+ "text_level": 1,
1264
+ "bbox": [
1265
+ 507,
1266
+ 401,
1267
+ 702,
1268
+ 419
1269
+ ],
1270
+ "page_idx": 8
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "We sincerely thank the reviewers for their insightful comments and valuable suggestions. This work was supported by Beijing Natural Science Foundation (L243006), the Natural Science Foundation of China (No. 62106251 and 62306303), and Ant Group Research Fund.",
1275
+ "bbox": [
1276
+ 507,
1277
+ 428,
1278
+ 882,
1279
+ 524
1280
+ ],
1281
+ "page_idx": 8
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "References",
1286
+ "text_level": 1,
1287
+ "bbox": [
1288
+ 509,
1289
+ 550,
1290
+ 608,
1291
+ 565
1292
+ ],
1293
+ "page_idx": 8
1294
+ },
1295
+ {
1296
+ "type": "list",
1297
+ "sub_type": "ref_text",
1298
+ "list_items": [
1299
+ "Nasreen Abdul-Jaleel, James Allan, W Bruce Croft, Fernando Diaz, Leah Larkey, Xiaoyan Li, Mark D Smucker, and Courtney Wade. 2004. Umass at trec 2004: Novelty and hard. Computer Science Department Faculty Publication Series, page 189.",
1300
+ "Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on Freebase from question-answer pairs. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1533-1544, Seattle, Washington, USA. Association for Computational Linguistics.",
1301
+ "Bodo Billerbeck and Justin Zobel. 2005. Document expansion versus query expansion for ad-hoc retrieval. In Proceedings of the 10th Australasian document computing symposium, pages 34-41.",
1302
+ "Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D 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 Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack"
1303
+ ],
1304
+ "bbox": [
1305
+ 510,
1306
+ 573,
1307
+ 884,
1308
+ 921
1309
+ ],
1310
+ "page_idx": 8
1311
+ },
1312
+ {
1313
+ "type": "page_number",
1314
+ "text": "1892",
1315
+ "bbox": [
1316
+ 482,
1317
+ 928,
1318
+ 519,
1319
+ 940
1320
+ ],
1321
+ "page_idx": 8
1322
+ },
1323
+ {
1324
+ "type": "list",
1325
+ "sub_type": "ref_text",
1326
+ "list_items": [
1327
+ "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, volume 33, pages 1877-1901. Curran Associates, Inc.",
1328
+ "Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading Wikipedia to answer open-domain questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1870-1879, Vancouver, Canada. Association for Computational Linguistics.",
1329
+ "Xinran Chen, Xuanang Chen, Ben He, Tengfei Wen, and Le Sun. 2024. Analyze, generate and refine: Query expansion with LLMs for zero-shot open-domain QA. In Findings of the Association for Computational Linguistics ACL 2024, pages 11908-11922, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics.",
1330
+ "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).",
1331
+ "Sukmin Cho, Jeongyeon Seo, Soyeong Jeong, and Jong Park. 2023. Improving zero-shot reader by reducing distractions from irrelevant documents in open-domain question answering. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 3145-3157, Singapore. Association for Computational Linguistics.",
1332
+ "Yung-Sung Chuang, Wei Fang, Shang-Wen Li, Wen-tau Yih, and James Glass. 2023. Expand, rerank, and retrieve: Query reranking for open-domain question answering. In Findings of the Association for Computational Linguistics: ACL 2023, pages 12131-12147, Toronto, Canada. Association for Computational Linguistics.",
1333
+ "Tonya Custis and Khalid Al-Kofahi. 2007. A new approach for evaluating query expansion: query-document term mismatch. In Proceedings of the 30th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '07, page 575-582, New York, NY, USA. Association for Computing Machinery.",
1334
+ "Zhuyun Dai and Jamie Callan. 2020. Context-aware document term weighting for ad-hoc search. In WWW '20: The Web Conference 2020, Taipei, Taiwan, April 20-24, 2020, pages 1897-1907. ACM / IW3C2.",
1335
+ "Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 3929-3938. PMLR."
1336
+ ],
1337
+ "bbox": [
1338
+ 115,
1339
+ 85,
1340
+ 487,
1341
+ 919
1342
+ ],
1343
+ "page_idx": 9
1344
+ },
1345
+ {
1346
+ "type": "list",
1347
+ "sub_type": "ref_text",
1348
+ "list_items": [
1349
+ "Gautier Izacard and Edouard Grave. 2021a. Distilling knowledge from reader to retriever for question answering. In International Conference on Learning Representations.",
1350
+ "Gautier Izacard and Edouard Grave. 2021b. Leveraging passage retrieval with generative models for open domain question answering. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 874-880, Online. Association for Computational Linguistics.",
1351
+ "Mandar Joshi, Eunsol Choi, Daniel 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, Vancouver, Canada. Association for Computational Linguistics.",
1352
+ "Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6769-6781, Online. Association for Computational Linguistics.",
1353
+ "Zixuan Ke, Weize Kong, Cheng Li, Mingyang Zhang, Qiao zhu Mei, and Michael Bendersky. 2024. Bridging the preference gap between retrievers and LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10438-10451, Bangkok, Thailand. Association for Computational Linguistics.",
1354
+ "Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. 2019. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452-466.",
1355
+ "Angeliki Lazaridou, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. 2022. Internet-augmented language models through few-shot prompting for open-domain question answering. ArXiv, abs/2203.05115.",
1356
+ "Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. 2019. Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 6086–6096, Florence, Italy. Association for Computational Linguistics.",
1357
+ "Yejoon Lee, Philhoon Oh, and James Thorne. 2023. Knowledge corpus error in question answering. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 9183–9197, Singapore. Association for Computational Linguistics."
1358
+ ],
1359
+ "bbox": [
1360
+ 510,
1361
+ 85,
1362
+ 880,
1363
+ 919
1364
+ ],
1365
+ "page_idx": 9
1366
+ },
1367
+ {
1368
+ "type": "page_number",
1369
+ "text": "1893",
1370
+ "bbox": [
1371
+ 482,
1372
+ 928,
1373
+ 519,
1374
+ 940
1375
+ ],
1376
+ "page_idx": 9
1377
+ },
1378
+ {
1379
+ "type": "list",
1380
+ "sub_type": "ref_text",
1381
+ "list_items": [
1382
+ "Yoav Levine, Ori Ram, Daniel Jannai, Barak Lenz, Shai Shalev-Shwartz, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2022. Huge frozen language models as readers for open-domain question answering. In ICML 2022 Workshop on Knowledge Retrieval and Language Models.",
1383
+ "Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Kuttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. In Advances in Neural Information Processing Systems, volume 33, pages 9459-9474. Curran Associates, Inc.",
1384
+ "Junlong Li, Jinyuan Wang, Zhuosheng Zhang, and Hai Zhao. 2024. Self-prompting large language models for zero-shot open-domain QA. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 296-310, Mexico City, Mexico. Association for Computational Linguistics.",
1385
+ "Linqing Liu, Patrick Lewis, Sebastian Riedel, and Pontus Stenetorp. 2022. Challenges in generalization in open domain question answering. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 2014–2029, Seattle, United States. Association for Computational Linguistics.",
1386
+ "Alex Mallen, Akari Asai, Victor Zhong, Rajarshi Das, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. When not to trust language models: Investigating effectiveness of parametric and non-parametric memories. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9802-9822, Toronto, Canada. Association for Computational Linguistics.",
1387
+ "Donald Metzler and W. Bruce Croft. 2005. A markov random field model for term dependencies. In SIGIR 2005: Proceedings of the 28th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Salvador, Brazil, August 15-19, 2005, pages 472-479. ACM.",
1388
+ "Donald Metzler and W. Bruce Croft. 2007. Latent concept expansion using markov random fields. In SIGIR 2007: Proceedings of the 30th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Amsterdam, The Netherlands, July 23-27, 2007, pages 311-318. ACM.",
1389
+ "Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. 2021. Webgpt: Browser-assisted question-answering with human feedback. CoRR, abs/2112.09332."
1390
+ ],
1391
+ "bbox": [
1392
+ 117,
1393
+ 85,
1394
+ 485,
1395
+ 917
1396
+ ],
1397
+ "page_idx": 10
1398
+ },
1399
+ {
1400
+ "type": "list",
1401
+ "sub_type": "ref_text",
1402
+ "list_items": [
1403
+ "Rodrigo Nogueira, Jimmy Lin, and AI Epistemic. 2019a. From doc2query to doctttttquery. Online preprint, 6:2.",
1404
+ "Rodrigo Frassetto Nogueira, Wei Yang, Jimmy Lin, and Kyunghyun Cho. 2019b. Document expansion by query prediction. CoRR, abs/1904.08375.",
1405
+ "OpenAI. 2022. Introducing chatgpt. See https://openai.com/index/chatgpt.",
1406
+ "Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F. Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022.",
1407
+ "Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah Smith, and Mike Lewis. 2023. Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, Singapore. Association for Computational Linguistics.",
1408
+ "Yujia Qin, Zihan Cai, Dian Jin, Lan Yan, Shihao Liang, Kunlun Zhu, Yankai Lin, Xu Han, Ning Ding, Huadong Wang, Ruobing Xie, Fanchao Qi, Zhiyuan Liu, Maosong Sun, and Jie Zhou. 2023. WebCPM: Interactive web search for Chinese long-form question answering. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8968-8988, Toronto, Canada. Association for Computational Linguistics.",
1409
+ "Stefan Riezler, Alexander Vasserman, Ioannis Tsochantaridis, Vibhu Mittal, and Yi Liu. 2007. Statistical machine translation for query expansion in answer retrieval. In Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics, pages 464-471, Prague, Czech Republic. Association for Computational Linguistics.",
1410
+ "Stephen Robertson and Hugo Zaragoza. 2009. The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends® in Information Retrieval, 3(4):333-389.",
1411
+ "Devendra Sachan, Mike Lewis, Mandar Joshi, Armen Aghajanyan, Wen-tau Yih, Joelle Pineau, and Luke Zettlemoyer. 2022. Improving passage retrieval with zero-shot question generation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 3781-3797, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics."
1412
+ ],
1413
+ "bbox": [
1414
+ 510,
1415
+ 85,
1416
+ 880,
1417
+ 919
1418
+ ],
1419
+ "page_idx": 10
1420
+ },
1421
+ {
1422
+ "type": "page_number",
1423
+ "text": "1894",
1424
+ "bbox": [
1425
+ 482,
1426
+ 928,
1427
+ 519,
1428
+ 940
1429
+ ],
1430
+ "page_idx": 10
1431
+ },
1432
+ {
1433
+ "type": "list",
1434
+ "sub_type": "ref_text",
1435
+ "list_items": [
1436
+ "Christopher Sciavolino, Zexuan Zhong, Jinhyuk Lee, and Danqi Chen. 2021. Simple entity-centric questions challenge dense retrievers. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 6138-6148, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.",
1437
+ "Weijia Shi, Sewon Min, Michihiro Yasunaga, Minjoon Seo, Richard James, Mike Lewis, Luke Zettle-moyer, and Wen-tau Yih. 2024. REPLUG: retrieval-augmented black-box language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), NAACL 2024, Mexico City, Mexico, June 16-21, 2024, pages 8371-8384. Association for Computational Linguistics.",
1438
+ "Hao Sun, Xiao Liu, Yeyun Gong, Yan Zhang, Daxin Jiang, Linjun Yang, and Nan Duan. 2023. Allies: Prompting large language model with beam search. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 3794-3805, Singapore. Association for Computational Linguistics.",
1439
+ "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. *ArXiv*, abs/2302.13971.",
1440
+ "Ellen M. Voorhees and Dawn M. Tice. 2000. The TREC-8 question answering track. In Proceedings of the Second International Conference on Language Resources and Evaluation (LREC'00), Athens, Greece. European Language Resources Association (ELRA).",
1441
+ "Liang Wang, Nan Yang, and Furu Wei. 2023. Query2doc: Query expansion with large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 9414-9423, Singapore. Association for Computational Linguistics.",
1442
+ "Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. 2022. Finetuned language models are zero-shot learners. In International Conference on Learning Representations.",
1443
+ "An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, Guanting Dong, Hao ran Wei, Huan Lin, Jialong Tang, Jialin Wang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Ma, Jianxin Yang, Jin Xu, Jingren Zhou, Jinze Bai, Jinzheng He, Junyang Lin, Kai Dang, Keming Lu, Keqin Chen, Kexin Yang, Mei Li, Mingfeng Xue, Na Ni, Pei Zhang, Peng Wang, Ru Peng, Rui Men, Ruize Gao, Runji Lin, Shijie Wang, Shuai Bai, Sinan Tan, Tianhang Zhu, Tianhao Li, Tianyu Liu, Wenbin Ge, Xiaodong Deng, Xiaohuan Zhou, Xingzhang Ren,"
1444
+ ],
1445
+ "bbox": [
1446
+ 115,
1447
+ 85,
1448
+ 489,
1449
+ 920
1450
+ ],
1451
+ "page_idx": 11
1452
+ },
1453
+ {
1454
+ "type": "list",
1455
+ "sub_type": "ref_text",
1456
+ "list_items": [
1457
+ "Xinyu Zhang, Xipin Wei, Xuancheng Ren, Xuejing Liu, Yang Fan, Yang Yao, Yichang Zhang, Yu Wan, Yunfei Chu, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, Zhifang Guo, and Zhihao Fan. 2024. Qwen2 technical report. arXiv preprint arXiv:2407.10671.",
1458
+ "Sohee Yang and Minjoon Seo. 2021. Designing a minimal retrieve-and-read system for open-domain question answering. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5856-5865, Online. Association for Computational Linguistics.",
1459
+ "Wenhao Yu, Dan Iter, Shuohang Wang, Yichong Xu, Mingxuan Ju, Soumya Sanyal, Chenguang Zhu, Michael Zeng, and Meng Jiang. 2023. Generate rather than retrieve: Large language models are strong context generators. In The Eleventh International Conference on Learning Representations.",
1460
+ "Longhui Zhang, Yanzhao Zhang, Dingkun Long, Pengjun Xie, Meishan Zhang, and Min Zhang. 2023a. Rankinggpt: Empowering large language models in text ranking with progressive enhancement. CoRR, abs/2311.16720.",
1461
+ "Yunxiang Zhang, Muhammad Khalifa, Lajanugen Logeswaran, Moontae Lee, Honglak Lee, and Lu Wang. 2023b. Merging generated and retrieved knowledge for open-domain QA. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 4710-4728, Singapore. Association for Computational Linguistics.",
1462
+ "Le Zhao and Jamie Callan. 2012. Automatic term mismatch diagnosis for selective query expansion. In Proceedings of the 35th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '12, page 515-524, New York, NY, USA. Association for Computing Machinery.",
1463
+ "Ingrid Zukerman and Bhavani Raskutti. 2002. Lexical query paraphrasing for document retrieval. In COLING 2002: The 19th International Conference on Computational Linguistics."
1464
+ ],
1465
+ "bbox": [
1466
+ 510,
1467
+ 85,
1468
+ 884,
1469
+ 684
1470
+ ],
1471
+ "page_idx": 11
1472
+ },
1473
+ {
1474
+ "type": "page_number",
1475
+ "text": "1895",
1476
+ "bbox": [
1477
+ 482,
1478
+ 928,
1479
+ 519,
1480
+ 940
1481
+ ],
1482
+ "page_idx": 11
1483
+ },
1484
+ {
1485
+ "type": "text",
1486
+ "text": "A Detailed Prompts",
1487
+ "text_level": 1,
1488
+ "bbox": [
1489
+ 114,
1490
+ 84,
1491
+ 305,
1492
+ 99
1493
+ ],
1494
+ "page_idx": 12
1495
+ },
1496
+ {
1497
+ "type": "text",
1498
+ "text": "In this subsection, we provide a thorough description of the prompts utilized in our proposed Chain-of-Rewrite method. Prompts used for our question reformulation and document reformulation are shown in Section A.1 and A.2, respectively. Section A.3 shows a prompt template to instruct LMs to answer the given question based on retrieved documents.",
1499
+ "bbox": [
1500
+ 112,
1501
+ 112,
1502
+ 489,
1503
+ 239
1504
+ ],
1505
+ "page_idx": 12
1506
+ },
1507
+ {
1508
+ "type": "text",
1509
+ "text": "It is important to note that these prompts are configured for the Vicuna-13B-v1.5 model, and slight adaptability adjustments may be necessary when applying them to other models.",
1510
+ "bbox": [
1511
+ 112,
1512
+ 242,
1513
+ 487,
1514
+ 306
1515
+ ],
1516
+ "page_idx": 12
1517
+ },
1518
+ {
1519
+ "type": "text",
1520
+ "text": "A.1 Query Reformulation",
1521
+ "text_level": 1,
1522
+ "bbox": [
1523
+ 114,
1524
+ 322,
1525
+ 334,
1526
+ 338
1527
+ ],
1528
+ "page_idx": 12
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "For query reformulation, we first prompt the LLM to add potentially missing topics and details to the original question to obtain clarification queries with the following prompt:",
1533
+ "bbox": [
1534
+ 112,
1535
+ 344,
1536
+ 487,
1537
+ 411
1538
+ ],
1539
+ "page_idx": 12
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "Given a query that might be ambiguous or unclear, provide a bullet-point list of explicit queries that the ambiguous query could pertain to.",
1544
+ "bbox": [
1545
+ 139,
1546
+ 430,
1547
+ 460,
1548
+ 495
1549
+ ],
1550
+ "page_idx": 12
1551
+ },
1552
+ {
1553
+ "type": "text",
1554
+ "text": "Query: {query}",
1555
+ "bbox": [
1556
+ 139,
1557
+ 511,
1558
+ 260,
1559
+ 527
1560
+ ],
1561
+ "page_idx": 12
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "List of explicit queries:",
1566
+ "bbox": [
1567
+ 139,
1568
+ 527,
1569
+ 315,
1570
+ 543
1571
+ ],
1572
+ "page_idx": 12
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "text": "Then, we prompt the LLM to provide a list of highly relevant expanded queries based on the clarification query, from which various terms and phrases are extracted to expand the original question. The detailed prompt is:",
1577
+ "bbox": [
1578
+ 112,
1579
+ 563,
1580
+ 489,
1581
+ 644
1582
+ ],
1583
+ "page_idx": 12
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "Based on the given query, generate a bullet-point list of diverse related queries that will find relevant documents. Next to each point, extract keywords from it that are closely related to the original query.",
1588
+ "bbox": [
1589
+ 139,
1590
+ 663,
1591
+ 460,
1592
+ 744
1593
+ ],
1594
+ "page_idx": 12
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Query: {clarification query}",
1599
+ "bbox": [
1600
+ 139,
1601
+ 760,
1602
+ 352,
1603
+ 777
1604
+ ],
1605
+ "page_idx": 12
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "List of related queries:",
1610
+ "bbox": [
1611
+ 139,
1612
+ 777,
1613
+ 310,
1614
+ 791
1615
+ ],
1616
+ "page_idx": 12
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "A.2 Document Reformulation",
1621
+ "text_level": 1,
1622
+ "bbox": [
1623
+ 114,
1624
+ 816,
1625
+ 366,
1626
+ 832
1627
+ ],
1628
+ "page_idx": 12
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "For document reformulation, we first prompt the LLM to provide the step-by-step analysis of whether the document is relevant to the given question and extract the evidence sentences. The detailed prompt is:",
1633
+ "bbox": [
1634
+ 112,
1635
+ 841,
1636
+ 489,
1637
+ 921
1638
+ ],
1639
+ "page_idx": 12
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "text": "In the first paragraph, give a step-by-step analysis of whether the document provides information to answer the question. And in the second paragraph, you should give the evidence sentences extracted from the document.",
1644
+ "bbox": [
1645
+ 534,
1646
+ 92,
1647
+ 857,
1648
+ 187
1649
+ ],
1650
+ "page_idx": 12
1651
+ },
1652
+ {
1653
+ "type": "text",
1654
+ "text": "Document: {document}",
1655
+ "bbox": [
1656
+ 536,
1657
+ 205,
1658
+ 715,
1659
+ 219
1660
+ ],
1661
+ "page_idx": 12
1662
+ },
1663
+ {
1664
+ "type": "text",
1665
+ "text": "Question: {question}",
1666
+ "bbox": [
1667
+ 536,
1668
+ 221,
1669
+ 695,
1670
+ 237
1671
+ ],
1672
+ "page_idx": 12
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "text": "Output:",
1677
+ "bbox": [
1678
+ 537,
1679
+ 237,
1680
+ 596,
1681
+ 252
1682
+ ],
1683
+ "page_idx": 12
1684
+ },
1685
+ {
1686
+ "type": "text",
1687
+ "text": "Based on the analysis, we prompt the LLM to identify the candidate answer based on the given document, and offer an option (e.g. \"unknown\") to reject irrelevant documents.",
1688
+ "bbox": [
1689
+ 507,
1690
+ 269,
1691
+ 882,
1692
+ 334
1693
+ ],
1694
+ "page_idx": 12
1695
+ },
1696
+ {
1697
+ "type": "text",
1698
+ "text": "Based on the analysis, extract the answer entity from the document to answer the following question. Output \"unknown\" as the answer if there is no relevant information in the document.",
1699
+ "bbox": [
1700
+ 534,
1701
+ 351,
1702
+ 858,
1703
+ 432
1704
+ ],
1705
+ "page_idx": 12
1706
+ },
1707
+ {
1708
+ "type": "text",
1709
+ "text": "Question: {question}",
1710
+ "bbox": [
1711
+ 536,
1712
+ 449,
1713
+ 695,
1714
+ 464
1715
+ ],
1716
+ "page_idx": 12
1717
+ },
1718
+ {
1719
+ "type": "text",
1720
+ "text": "Document: {document}",
1721
+ "bbox": [
1722
+ 536,
1723
+ 466,
1724
+ 715,
1725
+ 481
1726
+ ],
1727
+ "page_idx": 12
1728
+ },
1729
+ {
1730
+ "type": "text",
1731
+ "text": "Analysis: {analysis}",
1732
+ "bbox": [
1733
+ 536,
1734
+ 482,
1735
+ 690,
1736
+ 497
1737
+ ],
1738
+ "page_idx": 12
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "text": "Answer:",
1743
+ "bbox": [
1744
+ 537,
1745
+ 498,
1746
+ 601,
1747
+ 511
1748
+ ],
1749
+ "page_idx": 12
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "Note that in this step, we collect not only the answers predicted by the LLM, but also the probability of LLM predicting 'unknown', which is used as an automatic feedback to to rerank documents.",
1754
+ "bbox": [
1755
+ 507,
1756
+ 527,
1757
+ 882,
1758
+ 592
1759
+ ],
1760
+ "page_idx": 12
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "text": "A.3 Question Answering",
1765
+ "text_level": 1,
1766
+ "bbox": [
1767
+ 509,
1768
+ 604,
1769
+ 721,
1770
+ 619
1771
+ ],
1772
+ "page_idx": 12
1773
+ },
1774
+ {
1775
+ "type": "text",
1776
+ "text": "In our experiments, we use the following prompt to ask the reader to answer the given question based on evidence passages.",
1777
+ "bbox": [
1778
+ 507,
1779
+ 624,
1780
+ 882,
1781
+ 671
1782
+ ],
1783
+ "page_idx": 12
1784
+ },
1785
+ {
1786
+ "type": "text",
1787
+ "text": "Passages: {evidence passages}",
1788
+ "bbox": [
1789
+ 536,
1790
+ 689,
1791
+ 766,
1792
+ 706
1793
+ ],
1794
+ "page_idx": 12
1795
+ },
1796
+ {
1797
+ "type": "text",
1798
+ "text": "Extract the single answer entity from the passages to answer the following question.",
1799
+ "bbox": [
1800
+ 534,
1801
+ 722,
1802
+ 858,
1803
+ 753
1804
+ ],
1805
+ "page_idx": 12
1806
+ },
1807
+ {
1808
+ "type": "text",
1809
+ "text": "Only output the answer entity.",
1810
+ "bbox": [
1811
+ 536,
1812
+ 755,
1813
+ 761,
1814
+ 770
1815
+ ],
1816
+ "page_idx": 12
1817
+ },
1818
+ {
1819
+ "type": "text",
1820
+ "text": "Question: {question}",
1821
+ "bbox": [
1822
+ 536,
1823
+ 785,
1824
+ 695,
1825
+ 802
1826
+ ],
1827
+ "page_idx": 12
1828
+ },
1829
+ {
1830
+ "type": "text",
1831
+ "text": "Answer:",
1832
+ "bbox": [
1833
+ 536,
1834
+ 804,
1835
+ 601,
1836
+ 816
1837
+ ],
1838
+ "page_idx": 12
1839
+ },
1840
+ {
1841
+ "type": "page_number",
1842
+ "text": "1896",
1843
+ "bbox": [
1844
+ 482,
1845
+ 928,
1846
+ 521,
1847
+ 940
1848
+ ],
1849
+ "page_idx": 12
1850
+ }
1851
+ ]
2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/9d4eab78-45f8-4d28-a2ff-1fe28a57f872_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/9d4eab78-45f8-4d28-a2ff-1fe28a57f872_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5169532f86ced5dc2704c1c4f16b634a0656e775472776d2d2d0d7f62ca38a7
3
+ size 797948
2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/full.md ADDED
@@ -0,0 +1,341 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Chain-of-Rewrite: Aligning Question and Documents for Open-Domain Question Answering
2
+
3
+ Chunlei Xin $^{1,2}$ , Yaojie Lu $^{1,*}$ , Hongyu Lin $^{1}$ , Shuheng Zhou $^{3}$ , Huijia Zhu $^{3}$ , Weiqiang Wang $^{3}$ , Zhongyi Liu $^{3}$ , Xianpei Han $^{1}$ , Le Sun $^{1}$
4
+
5
+ $^{1}$ Chinese Information Processing Laboratory, Institute of Software, Chinese Academy of Sciences, Beijing, China
6
+
7
+ $^{2}$ University of Chinese Academy of Sciences, Beijing, China $^{3}$ Ant Group
8
+
9
+ {chunlei2021, luyaojie, hongyu, xianpei, sunle}@iscas.ac.cn, {shuheng.zsh, huijia.zhj, weiqiang.wwq, zhongyi.lzy}@antgroup.com
10
+
11
+ # Abstract
12
+
13
+ Despite the advancements made with the retrieve-then-read pipeline on open-domain question answering task, current methods still face challenges stemming from term mismatch and limited interaction between information retrieval systems and large language models. To mitigate these issues, we propose the Chain-of-Rewrite method, which leverages the guidance and feedback gained from the analysis to provide faithful and consistent extensions for effective question answering. Through a two-step rewriting process comprising Semantic Analysis and Semantic Augmentation, the Chain-of-Rewrite method effectively bridges the gap between the user question and relevant documents. By incorporating feedback from the rewriting process, our method can self-correct the retrieval and reading process to further improve the performance. Experiments on four open-domain question answering datasets demonstrate the effectiveness of our system under zero-shot settings.
14
+
15
+ # 1 Introduction
16
+
17
+ Open-Domain Question Answering (ODQA) (Voorhees and Tice, 2000; Chen et al., 2017; Izacard and Grave, 2021b) is a long-standing task aimed at answering a wide variety of user questions without providing specific background documents. Recently, with the emergence of large language models (LLMs), ODQA systems typically employ a retrieve-then-read paradigm (Lee et al., 2019; Karpukhin et al., 2020; Lewis et al., 2020), where an information retrieval system is used to identify relevant contexts from knowledge bases, and then an LLM such as InstructGPT (Ouyang et al., 2022) and LLaMA (Touvron et al., 2023) is used to read the context and generate comprehensive and accurate answers. Due to its effectiveness and simplicity, the retrieve-then-read paradigm performs well
18
+
19
+ ![](images/66dfff94ec49ff2c205e49f5aeb5a275c75bf590b7c2713baed1b7b3997523fd.jpg)
20
+ Figure 1: An example illustrates how term mismatch between an open-domain question and relevant documents can be mitigated through query rewriting and document rewriting. Query expansions and their corresponding matches in the document are shown in brown, while key sentences that point to the answer are shown in blue.
21
+
22
+ on the ODQA task and has received considerable attention (Yang and Seo, 2021; Shi et al., 2024; Zhang et al., 2023b).
23
+
24
+ Unfortunately, the retrieve-then-read paradigm faces challenges stemming from term mismatch and limited interaction between IR systems and LLMs. Firstly, in open-domain question answering, term mismatch often occurs due to ambiguous user intent and limited overlap between user questions and the corpus (Custis and Al-Kofahi, 2007; Zhao and Callan, 2012). This mismatch can negatively impact both the retrieval of relevant documents and the effectiveness of using these documents to answer questions. For example, as shown in Figure 1, "What genre is The Trip?" shares few words with the relevant document "The Trip (2010 TV series)" and misses the important keyword "TV series", making it difficult to match questions with relevant documents. Secondly, the disparate preferences between LLMs and retrievers further hinder the effectiveness of current retrieve-then-read paradigm (Guu et al., 2020; Ke et al., 2024), as there is limited interaction between the retrieval and reading
25
+
26
+ ![](images/b4fc1f21475f411c3e68287acbabfbad621b4bc8dcfccb2893717c9b0bef2afa.jpg)
27
+ Figure 2: Overall architecture of our proposed Chain-of-Rewrite method, which aims to address the term mismatch and limited interaction problems in ODQA scenarios.
28
+
29
+ steps. This lack of interaction makes it difficult to self-correct the retrieval and reading processes by incorporating feedback from both components. For example, the LLM can guide the retriever with the important keyword "TV series" by identifying the strong connections between <genre, TV series> and <The Trip, TV series>. In turn, the retriever can refine the query based on the feedback indicating the candidate answers provided by the reader.
30
+
31
+ To address the term mismatch and limited interaction problems, this paper proposes a Chain-of-Rewrite method. This method can effectively bridge the gap between the open-domain question and relevant documents through a two-step rewriting process. As shown in Figure 2, to capture the underlying intent behind the user question and map it to relevant documents, we use Chain-of-Rewrite to transform the user question into clarification search queries. These queries can further express the user intent to improve the retrieval effectiveness. To bridge the expression mismatch between the user question and retrieved documents, we use Chain-of-Rewrite to remove irrelevant content and highlight relevant information to make the original documents better match the question. Meanwhile, by leveraging the feedback from the chain-of-rewrite process, our method can self-correct the retrieval and reading process.
32
+
33
+ Specifically, the Chain-of-Rewrite method consists of two main modules: Semantic Analysis and Semantic Augmentation. In Semantic Analysis, we prompt the LLM to identify the topics and key information embedded in the original question and document. This goes beyond surface-level matching and aims to capture the underlying relationships within the query and relevant documents. Building
34
+
35
+ upon the insights gained from Semantic Analysis, Semantic Augmentation focuses on enhancing the semantic representation of the original question and document, leading to more consistent and informative extensions. Together, these steps ensure that the rewritten content is aligned with user intent while maintaining semantic consistency. To further self-correct the potential errors caused by distracting documents, we leverage the feedback from the rewriting process to prioritize passages that point to candidate answers and to refine search queries for collecting more relevant documents to correct potentially incorrect answers.
36
+
37
+ Overall, our main contributions can be summarized as follows:
38
+
39
+ - We propose an unsupervised rewriting method, Chain-of-Rewrite, to address the term mismatch and the limited interaction problems in ODQA scenarios.
40
+ - We design two novel modules, Semantic Analysis and Semantic Augmentation, to ensure that the rewritten content matches the user intent while maintaining semantic consistency.
41
+ - We incorporate feedback from the rewriting process to effectively refine search queries and re-rank documents to self-correct the retrieval and reading process.
42
+
43
+ # 2 Proposed Method
44
+
45
+ Our method is based on the retrieve-then-read pipeline (Lee et al., 2019; Karpukhin et al., 2020; Lewis et al., 2020), which first uses a retriever to retrieve relevant documents from external knowledge source, and then uses a reader to predict the
46
+
47
+ ![](images/e133abf1c3ad4a242a854c19ba89c4960d3738dd12e8ff32f233fe5d0005c2c6.jpg)
48
+ Figure 3: The Chain-of-Rewrite method comprises two main modules: Semantic Analysis and Semantic Augmentation.
49
+
50
+ answer based on these documents. Specifically, the retrieve-then-read pipeline can be represented as $p(a|q) = \sum_{i}p(a|d_{i},q)p(d_{i}|q)$ , marginalizing over all possible documents. In practice, the $k$ highest ranked documents are used to approximate the sum over $d$ , yielding $p(a|q) = \sum_{i = 1}^{k}p(a|d_{i},q)p(d_{i}|q)$ . While the retrieve-then-read frameworks show remarkable performance on the ODQA task, there exist mismatch between the user question $q$ and documents $d$ in knowledge source, posing challenges for existing ODQA systems to accurately understand the user intent and utilize relevant documents to correctly answer the question.
51
+
52
+ To solve the above mismatch problem, we explore a two-step rewriting process, Chain-of-Rewrite, to align the user question and relevant documents. As shown in Figure 2, given an open-domain question $q$ , we use Chain-of-Rewrite to transform the user question into clarification search queries $q^r$ . These clarification queries can further express the user intent and contain additional relevant terms to improve the retrieval effectiveness. This can be represented as $p(q^r | q, \theta_{\text{cow}})$ , where $\theta_{\text{cow}}$ represents the parameters of the Chain-of-Rewrite model. Query $q^r$ is then fed into the retriever to retrieve a collection of relevant documents $d$ . To remove irrelevant content and highlight relevant information in document $d$ , we use Chain-of-Rewrite to transform the original document $d$ into context $c$ based on the question $q$ . This
53
+
54
+ document rewriting process can be represented as $p(c_i|d_i, q, \theta_{cow})$ . Therefore, we reformulate the retrieve-then-read pipeline as $p(a|q) = \sum_{i} p(a|c_i, q)p(c_i|d_i, q, \theta_{cow})p(d_i|q^r)p(q^r|q, \theta_{cow})$ .
55
+
56
+ Next, we will describe the two main modules in 2.1 and 2.2, and discuss the feedback in 2.3.
57
+
58
+ # 2.1 Step 1: Semantic Analysis
59
+
60
+ In this step, our primary objective is to prompt the LLM to identify the topics and key information embedded in the original question and document, which forms the basis for the subsequent Semantic Augmentation process.
61
+
62
+ For query reformulation, we prompt the LLM to add potentially missing topics and details to the original question $q$ to obtain clarification queries $q^c$ that can further express the user intent. This is important for open domain question answering, where questions often do not have a clear domain or topic scope, typically resulting in ambiguous user intent. By utilizing the world knowledge stored in the model parameters, this step can provide reliable guidance for subsequent query expansion.
63
+
64
+ For document reformulation, as shown in Figure 3, we first prompt the LLM to provide the relationship between the original question and retrieved documents through a step-by-step analysis, and to extract the evidence sentences from the document to support its analysis. This step narrows the question-document mismatch in two ways. Firstly, the step-by-step analysis directly provides the re
65
+
66
+ ![](images/b6f39faf74617a11b7aee6c1227ac38ec961af48f94e28fd1eb33c115b36557c.jpg)
67
+ Figure 4: Illustration of incorporating automatic feedback to refine search queries. Candidate answers extracted from top-k re-ranked documents are concatenated with the original question as refined queries to collect relevant documents.
68
+
69
+ relationship between the document and the question, identifying highly relevant documents from irrelevant ones. Secondly, by identifying the key sentences relevant to the given question, LLM can effectively remove distracting and irrelevant content, hence enabling the LLM to hit the correct answer with higher precision and less effort. Based on the analysis, we prompt the LLM to identify the candidate answer from the given document, and offer an option (e.g. "unknown") to reject irrelevant documents.
70
+
71
+ # 2.2 Step 2: Semantic Augmentation
72
+
73
+ The focus of this step is to bridge the term mismatch between the IR system and LLMs by taking into account the semantic analysis obtained in step 1 to produce faithful and consistent extensions.
74
+
75
+ For query reformulation, we prompt the LLM to provide a list of highly relevant expanded queries based on the clarification query $q^c$ , from which we can extract various keywords to expand the original question $q$ . For each clarification query $q^c$ , we form query expansions by randomly sampling 4 to 8 keywords from all the generated expansions. These sampled keywords are concatenated with the clarification query $q^c$ to form an expanded query $q^r$ , which is then used to retrieve a set of $m$ relevant documents $d$ . The relevant documents retrieved by all expanded queries are aggregated by de-duplicating, with only the highest-scoring version of each duplicate retained. Finally, the top $N$ documents, ranked by their retrieval scores, are selected as the final retrieval results.
76
+
77
+ For document reformulation, we aim to provide a concise and straightforward context that focuses on the given question while maintaining semantic and factual consistency. Specifically, we concatenate key sentences and a sentence that explicitly points to the answer as a rewrite of the relevant document, while leaving the irrelevant document
78
+
79
+ unchanged. The top $k$ rewritten documents are then concatenated as a context $c$ , which is then fed into the reader with the original question $q$ to produce the answer $a$ .
80
+
81
+ # 2.3 Automatic Feedback
82
+
83
+ Incorporating semantic analysis into the rewriting process not only provides guidance to maintain consistency, but can also provide automatic feedback to self-correct the retrieval and reading process by effectively refining queries and re-ranking retrieved documents.
84
+
85
+ # 2.3.1 Refine Query
86
+
87
+ In many cases, retrieved documents may be relevant but not sufficient to point to the correct answer. These documents are likely to mislead the LLM into producing an incorrect or incomplete answer, thereby reducing the effectiveness and robustness of the ODQA system. To collect more relevant documents to refine potentially incorrect answers, as shown in Figure 4, candidate answers extracted from top $k$ relevant documents can be used as automatic feedback to augment the original question. By providing more relevant documents focused on the candidate answer, incorrect answers extracted from misleading documents can be refined, leading to more accurate and reliable responses.
88
+
89
+ # 2.3.2 Re-rank Documents
90
+
91
+ Given the retrieved documents $d$ , the re-ranker is expected to rank the documents based on the query-document relevance. For unsupervised passage re-ranking, a widespread method UPR (Sachan et al., 2022) is to rank documents according to the average log-likelihood of the question tokens conditioned on the passage:
92
+
93
+ $$
94
+ p \left(d _ {i} | q\right) \propto \frac {1}{| q |} \sum_ {t} \log p \left(q _ {t} | q _ {< t}, d _ {i}; \Theta\right)
95
+ $$
96
+
97
+ ![](images/a94cd7d8568a61839600d6e156a403dd79101e1d5aaed474bf0e30813aa0218d.jpg)
98
+ Figure 5: Illustration of incorporating automatic feedback to re-rank documents. The output probability of "unknown" is used to estimate the relevance of the question-document pair.
99
+
100
+ where $\Theta$ denotes the parameters of the re-ranker model and $|q|$ denotes the number of question tokens. However, due to a significant mismatch between this relevance assessment method and the training objective of next-word prediction in LLMs (Zhang et al., 2023a), UPR is suboptimal.
101
+
102
+ To effectively distinguish truly relevant documents from distracting ones that may superficially overlap with the question, we estimate the query-document relevance at a deeper semantic level. As shown in Figure 5, we utilize the output probability of "unknown" when predicting candidate answers as an automatic feedback, to estimate the relevance of the question-document pair:
103
+
104
+ $$
105
+ p (d _ {i} | q) \propto 1 - p (\mathrm {u n k n o w n} | q, d _ {i}, g)
106
+ $$
107
+
108
+ where $g$ represents the analysis provided in step 1.
109
+
110
+ Note that our method complements the UPR method by focusing on deep semantic relationships rather than surface-level token matching. Based on the prediction likelihood of the input question conditioned on a passage, UPR favors passages that contain question tokens, overlooking whether these passages actually help in answering the question. In contrast, our approach focuses on this critical aspect. In our main experiments, we employ the standard Reciprocal Rank Fusion (RRF) approach to combine the re-ranking results of our method with those of UPR.
111
+
112
+ # 3 Experiments
113
+
114
+ # 3.1 Experiment Setup
115
+
116
+ Dataset. We conduct extensive experiments on four open-domain question answering datasets, including Natural Question (NQ) (Kwiatkowski et al., 2019), TriviaQA (Joshi et al., 2017), WebQuestions (WebQ) (Berant et al., 2013) and PopQA (Mallen et al., 2023), which focuses on questions about
117
+
118
+ long-tail entities. We use the same splits as previous approaches (Karpukhin et al., 2020; Izacard and Grave, 2021b).
119
+
120
+ Retrieval System. We employ the representative sparse retriever BM25 (Robertson and Zaragoza, 2009) to collect relevant documents from the English Wikipedia dump from December 20, 2018. This choice is based on the observation that the performance of dense retrieval methods like DPR (Karpukhin et al., 2020) degrades rapidly on rarer entities, whereas BM25 exhibits less sensitivity to entity frequency (Sciavolino et al., 2021). Since our experiments focus on open-domain questions, particularly on datasets like PopQA with long-tail entities, BM25 was selected for its robustness and effectiveness across diverse datasets.
121
+
122
+ Implementation. We choose Vicuna-13B-v1.5 (Chiang et al., 2023) as the base model for chain-of-rewriting open-domain questions and documents. For query reformulation, we collect up to 5 clarification queries for each user question. Each expanded query is used to retrieve a set of $m = 30$ documents. After de-duplication, top $N = 100$ documents with highest retrieval scores are selected as the final retrieval results. From these, top $k = 5$ evidence passages are selected and fed to the reader. We employ Vicuna-13B-v1.5 and GPT-3.5-Turbo (OpenAI., 2022) as the reader in main experiments. Metrics. We use exact match (EM) and F1 scores for NQ, TriviaQA and WebQ, and follow the same normalization process utilized in previous work (Karpukhin et al., 2020; Chen et al., 2017; Lee et al., 2019). For PopQA, we adopt the same evaluation metric, accuracy score, as used by Mallen et al. (2023). A prediction is considered correct if any substring of the prediction exactly matches one of the golden answers.
123
+
124
+ Baseline Methods. We compare our method with the following zero-shot QA baselines: (1) Close book methods without using retriever: Vicuna-13B-v1.5 (Chiang et al., 2023), GPT-3.5-Turbo (OpenAI., 2022) and GenRead (Yu et al., 2023). (2) Retrieval-augmented LLMs: Vicuna-13B-v1.5 and GPT-3.5-Turbo augmented with BM25 retrieved documents from Wikipedia. (3) Self-Ask (Press et al., 2023): decomposing questions into subquestions for multi-step reasoning. (4) Distraction-aware Answer Selection (DAS) (Cho et al., 2023): incorporating unanswerable instruction and selecting an answer from candidates. (5) ALLIES (Sun et al., 2023): iteratively refining and expanding the original query.
125
+
126
+ <table><tr><td rowspan="2">Models</td><td colspan="2">NQ</td><td colspan="2">WebQ</td><td colspan="2">TriviaQA</td><td>PopQA</td></tr><tr><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>ACC</td></tr><tr><td colspan="8">Close book methods without using retriever</td></tr><tr><td>Vicuna-13B</td><td>22.1</td><td>29.4</td><td>23.7</td><td>35.9</td><td>50.1</td><td>56.9</td><td>30.2</td></tr><tr><td>GPT-3.5-Turbo</td><td>29.4</td><td>40.7</td><td>22.8</td><td>40.0</td><td>54.8</td><td>65.5</td><td>37.9</td></tr><tr><td>GENREAD (InstructGPT) (Yu et al., 2023)</td><td>31.1</td><td>44.8</td><td>19.1</td><td>36.9</td><td>59.3</td><td>70.7</td><td>46.0</td></tr><tr><td colspan="8">Retrieval-augmented LLMs</td></tr><tr><td>Vicuna-13B + BM25</td><td>25.5</td><td>34.9</td><td>20.2</td><td>34.2</td><td>53.7</td><td>64.0</td><td>34.6</td></tr><tr><td>Vicuna-13B + BM25 + UPR</td><td>28.9</td><td>39.2</td><td>22.4</td><td>35.9</td><td>56.5</td><td>67.0</td><td>39.0</td></tr><tr><td>GPT-3.5-Turbo + BM25</td><td>33.2</td><td>42.8</td><td>23.3</td><td>38.2</td><td>57.6</td><td>68.7</td><td>43.9</td></tr><tr><td colspan="8">Decomposing questions for multi-step reasoning</td></tr><tr><td>Self-Ask (Davinci-002) (Press et al., 2023)</td><td>26.4</td><td>36.5</td><td>15.1</td><td>29.5</td><td>59.4</td><td>68.5</td><td>33.6†</td></tr><tr><td colspan="8">Selecting an answer from candidates</td></tr><tr><td>Vicuna-13B w/ DAS (Cho et al., 2023)</td><td>27.1†</td><td>38.5†</td><td>23.4†</td><td>35.8†</td><td>54.9†</td><td>62.3†</td><td>31.2†</td></tr><tr><td colspan="8">Iteratively refining the original query</td></tr><tr><td>ALLIES (GPT-3.5-Turbo) (Sun et al., 2023)</td><td>38.0</td><td>47.8</td><td>28.2</td><td>45.6</td><td>61.4</td><td>70.8</td><td>37.6†</td></tr><tr><td colspan="8">Our method, bridging the mismatch between the question and relevant documents</td></tr><tr><td>Chain-of-Rewrite (Reader=Vicuna-13B)</td><td>34.0</td><td>45.3</td><td>24.8</td><td>40.4</td><td>59.3</td><td>70.4</td><td>48.0</td></tr><tr><td>Chain-of-Rewrite (Reader=GPT-3.5-Turbo)</td><td>40.2</td><td>49.3</td><td>27.1</td><td>41.4</td><td>61.6</td><td>71.7</td><td>50.2</td></tr></table>
127
+
128
+ Table 1: Main results on four open-domain question answering benchmarks under zero-shot settings. The best performing pipelines are highlighted in bold. Results marked with $\dagger$ are from our runs with their released code.
129
+
130
+ # 3.2 Overall Results
131
+
132
+ As shown in Table 1, by effectively handling the mismatch between questions and retrieved documents and by self-correcting the retrieval and reranking process, our Chain-of-Rewrite method significantly outperforms the retrieval-augmented LLMs baselines. Specifically, when employing Vicuna-13B-v1.5 as the reader, incorporating Chain-of-Rewrite process can achieve an improvement of over 13 points on PopQA, which focuses on questions about long-tail entities. The same trend can be observed when GPT-3.5-Turbo is used as the reader to answer questions. These experimental results demonstrate the effectiveness of our Chain-of-Rewrite method in improving the ability of LLMs to handle open-domain questions, especially for long-tail questions.
133
+
134
+ Furthermore, we observe that applying GPT-3.5-Turbo as the reader enhances the performance of our system on all datasets, achieving the highest performance on most open-domain question answering datasets. Notably, on the long-tail ODQA dataset PopQA, baseline methods do not perform as well as expected, with many even falling short of the performance of retrieval-augmented LLMs.
135
+
136
+ This is mainly due to suboptimal retrieval effectiveness on PopQA, negatively impacting subsequent optimizations that depend on these retrieval results. It's important to note that in our Chain-of-Rewrite (Reader=GPT-3.5-Turbo) configuration, GPT-3.5-Turbo is only used for question answering, while the entire Chain-of-Rewrite process is still based on Vicuna-13B. In contrast, ALLIES employs GPT-3.5-Turbo for the entire pipeline, including query generation, question answering, and answer scoring. Despite this, our pipeline achieves comparable or even superior performance to ALLIES, showcasing the effectiveness and efficiency of our system.
137
+
138
+ # 3.3 Detailed Analysis
139
+
140
+ # 3.3.1 Question Answering Performance
141
+
142
+ To explore the impact of the guidance and automatic feedback provided in our Chain-of-Rewrite method on improving the question answering performance, we conduct ablation studies on four ODQA datasets, and the results are shown in Table 2. We can see that:
143
+
144
+ (1) Bridging the mismatch between the question and the retrieved documents is crucial for open-domain question answering. After removing the
145
+
146
+ <table><tr><td></td><td colspan="2">NQ</td><td colspan="2">WebQ</td><td colspan="2">TriviaQA</td><td colspan="2">PopQA</td><td></td></tr><tr><td></td><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>ACC</td><td>EM</td><td>F1</td></tr><tr><td>Chain-of-Rewrite</td><td>34.0</td><td>45.3</td><td>24.8</td><td>40.4</td><td>59.3</td><td>70.4</td><td>48.0</td><td>41.7</td><td>49.2</td></tr><tr><td>w/o refine query feedback</td><td>33.6</td><td>45.0</td><td>24.4</td><td>39.7</td><td>58.7</td><td>69.7</td><td>47.4</td><td>41.5</td><td>48.9</td></tr><tr><td>w/o rerank documents feedback</td><td>32.4</td><td>43.3</td><td>23.9</td><td>39.9</td><td>58.9</td><td>70.3</td><td>47.0</td><td>40.6</td><td>47.9</td></tr><tr><td>w/o chain-of-rewrite documents</td><td>29.5</td><td>39.2</td><td>23.1</td><td>38.0</td><td>58.3</td><td>69.4</td><td>48.2</td><td>40.4</td><td>47.4</td></tr><tr><td>w/o chain-of-rewrite question</td><td>29.9</td><td>40.4</td><td>23.7</td><td>38.6</td><td>56.7</td><td>67.5</td><td>38.4</td><td>33.0</td><td>39.6</td></tr><tr><td>Vicuna-13B + BM25</td><td>25.5</td><td>34.9</td><td>20.2</td><td>34.2</td><td>53.7</td><td>64.0</td><td>34.6</td><td>28.8</td><td>34.3</td></tr></table>
147
+
148
+ Table 2: Ablation study. Our proposed chain-of-rewrite components and the automatic feedback provided during rewriting can improve overall performance on four ODQA benchmarks. We employ Vicuna-13B-v1.5 as the Reader.
149
+
150
+ <table><tr><td></td><td colspan="2">PopQA</td><td colspan="2">NQ</td><td colspan="2">WebQ</td><td colspan="2">TriviaQA</td></tr><tr><td></td><td>R@5</td><td>R@20</td><td>R@5</td><td>R@20</td><td>R@5</td><td>R@20</td><td>R@5</td><td>R@20</td></tr><tr><td>Baseline</td><td>37.41</td><td>50.12</td><td>49.25</td><td>67.45</td><td>50.30</td><td>68.11</td><td>68.67</td><td>77.70</td></tr><tr><td>Direct Expansion</td><td>48.02</td><td>52.11</td><td>62.35</td><td>75.10</td><td>61.12</td><td>73.87</td><td>75.95</td><td>80.71</td></tr><tr><td>Chain-of-Rewrite</td><td>59.80</td><td>65.71</td><td>63.57</td><td>77.40</td><td>61.71</td><td>74.51</td><td>76.81</td><td>81.31</td></tr></table>
151
+
152
+ Table 3: Recall@5 and Recall@20 on test sets across four open-domain question answering datasets.
153
+
154
+ chain-of-rewrite documents component, the EM and F1 scores decrease significantly for all datasets. Specifically, the EM and F1 scores decrease by 4.5 and 5.9 points respectively for the NQ dataset. A similar trend can be observed when the chain-of-rewrite query component is removed.
155
+
156
+ (2) Expanding the user question with candidate answers obtained during chain-of-rewriting can effectively provide more relevant documents. When incorporating automatic feedback to refine the search queries, our method further improves both EM and F1 scores across all datasets.
157
+ (3) The "unknown" output probability based on the step-by-step analysis is an effective estimate of query-document relevance. As shown in Table 2, while applying the Chain-of-Rewrite method solely to the top-5 documents (w/o rerank documents feedback) leads to significant improvements compared to Vicuna-13B + BM25, incorporating automatic feedback to re-rank documents yields further enhancements across all datasets. This observation confirms that utilizing the output probability of "unknown" to measure the query-document relevance can effectively distinguish truly relevant documents from distracting documents.
158
+
159
+ # 3.3.2 Passage Retrieval Performance
160
+
161
+ For detailed analysis of passage retrieval performance, we incorporate Recall@K (R@K) as the evaluation metric, which calculates the percentage of top-K retrieved documents that contain the cor
162
+
163
+ rect answer. The results are shown in Table 3, and we can see that our method outperforms Direct Expansion on all ODQA datasets. Specifically, we see the Recall@5 and Recall@20 improvements of +11.8 and +13.6 (24.6% and 26.2% relative improvement) respectively on PopQA, which focuses on open-domain questions about long-tail entities. This demonstrates that by adding clear topic and details to the open-domain question, our Chain-of-Rewrite process can provide reliable guidance to generate detailed and consistent query expansions, leading to improved retrieval effectiveness.
164
+
165
+ # 3.3.3 Passage Ranking Performance
166
+
167
+ To evaluate the passage ranking performance, we compute the top-K retrieval accuracy score following Sachan et al. (2022). It is defined as the proportion of questions for which at least one passage within the top-K passages contains a span that matches the answer. We report the top-1, top-5 and top-10 retrieval accuracy on three ODQA datasets in Table 4, and report the top-1 and top-10 retrieval accuracy on different question categories in PopQA in Figure 6.
168
+
169
+ As shown in Table 4, incorporating rerank document feedback into the BM25 ranking or BM25+UPR ranking can provide consistent passage ranking performance improvements across all datasets, with particularly significant performance gains in top-1 retrieval accuracy and top-5 retrieval accuracy. In particular, BM25 + Rerank Feedback
170
+
171
+ <table><tr><td rowspan="2"></td><td rowspan="2">Top-1</td><td rowspan="2">NQ Top-5</td><td rowspan="2">Top-10</td><td colspan="3">WebQA</td><td colspan="3">TriviaQA</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-10</td><td>Top-1</td><td>Top-5</td><td>Top-10</td></tr><tr><td>BM25</td><td>24.02</td><td>47.65</td><td>60.30</td><td>25.59</td><td>51.13</td><td>62.75</td><td>45.41</td><td>64.87</td><td>72.10</td></tr><tr><td>+Rerank Feedback</td><td>40.64</td><td>65.87</td><td>72.94</td><td>37.11</td><td>65.40</td><td>73.13</td><td>59.81</td><td>76.91</td><td>79.85</td></tr><tr><td>BM25 + UPR</td><td>36.12</td><td>63.57</td><td>72.05</td><td>36.91</td><td>61.71</td><td>68.90</td><td>61.95</td><td>76.81</td><td>79.46</td></tr><tr><td>+Rerank Feedback</td><td>46.76</td><td>69.20</td><td>75.01</td><td>43.45</td><td>66.24</td><td>72.39</td><td>66.46</td><td>78.08</td><td>80.49</td></tr></table>
172
+
173
+ Table 4: Top-{1, 5, 10} retrieval accuracy on test sets across three open-domain question answering datasets.
174
+
175
+ ![](images/5816ec10ea62ceaad4c7138cb141063540a07f2b0b9d8bee55b0163c598d92d2.jpg)
176
+ Figure 6: Top-1 and Top-10 retrieval accuracy for different question categories in the PopQA dataset. Top-1 retrieval accuracy is shown in darker color and Top-10 retrieval accuracy is shown in lighter color.
177
+
178
+ improves the top-1 retrieval accuracy by $+16.62$ (69.2% relative improvement) and top-5 retrieval accuracy by $+18.22$ (38.2% relative improvement) on NQ dataset. Furthermore, BM25 + Rerank Feedback outperforms BM25 + UPR on all datasets, demonstrating the effectiveness of our method for prioritizing highly relevant documents to the top compared to UPR. The same trend can be verified in Figure 6, where incorporating rerank feedback leads to an improvement in passage ranking performance on different question categories in PopQA.
179
+
180
+ # 4 Related Work
181
+
182
+ # 4.1 Open-Domain Question Answering
183
+
184
+ Open-domain question answering can be categorized into two settings: the closed-book setting and the open-book setting. In the closed-book setting, pre-trained language models answer open-domain questions directly without access to the external corpus. In the open-book setting, the ODQA system typically consists of a retriever and a reader component (Izacard and Grave, 2021a; Yang and Seo, 2021; Zhang et al., 2023b). The retriever finds relevant information from a corpus such as Wikipedia (Chen et al., 2017; Izacard and Grave, 2021b) or web pages (Nakano et al., 2021; Lazari-dou et al., 2022), followed by a reader that focuses on answering the question based on the retrieved
185
+
186
+ information.
187
+
188
+ Recently, the emergence of large language models has demonstrated their potential to be used for open-domain question answering. With no training data or external corpus, LLMs are able to provide answers with direct prompts (Brown et al., 2020; Wei et al., 2022; Chiang et al., 2023; Yang et al., 2024). At the retrieval stage, the LLM can be used as query rewriter to refine input questions to better express user intent (Liu et al., 2022; Chuang et al., 2023; Qin et al., 2023), or as knowledge sources to provide relevant contextual documents that increase the likelihood of covering the correct answer (Yu et al., 2023; Li et al., 2024). At the reader stage, LLMs can effectively reduce distractions from irrelevant documents to improve the context quality (Levine et al., 2022; Cho et al., 2023).
189
+
190
+ # 4.2 Query and Document Expansion
191
+
192
+ In order to overcome the term mismatch problem between open-domain questions and relevant documents in ODQA scenarios, various query expansion and document expansion approaches are proposed. Document expansion enhances each document with additional information, such as additional terms selected from a corpus (Billerbeck and Zobel, 2005; Dai and Callan, 2020), or expanded queries generated by pre-trained language models
193
+
194
+ based on the original document (Nogueira et al., 2019a,b). On the other hand, query expansion adds additional terms selected from the top-ranked documents retrieved by the initial query (Abdul-Jaleel et al., 2004; Metzler and Croft, 2005, 2007) or expands the original query with lexical-level (Zukerman and Raskutti, 2002) or phrase-level (Riezler et al., 2007) paraphrases.
195
+
196
+ Recently, leveraging LLMs for expansion has proven to be a promising solution to address the term mismatch problem (Wang et al., 2023; Lee et al., 2023). Among them, Chen et al. (2024) propose the AGR method, which prompts the LLM to generate potential answers as query expansions after analyzing the question. In contrast, our query reformulation method focuses more on narrowing the expression gap between the user question and the corpus, without requiring the LLM to directly generate answers. This reduces reliance on the LLM's internal knowledge and demonstrates improved generalization and robustness, especially for long-tail questions.
197
+
198
+ # 5 Conclusion
199
+
200
+ We propose an unsupervised rewriting method, Chain-of-Rewrite, which utilizes pre-trained language models to effectively address the term mismatch and limited interaction problems. We design two modules, Semantic Analysis and Semantic Augmentation, to progressively bridge the mismatch between the user question and relevant documents while maintaining semantic consistency. During the two-step rewriting process, we incorporate automatic feedback into the retrieval and reading process to self-correct the potential errors. Extensive experiments on four ODQA datasets demonstrate the effectiveness of our system in performing question answering, passage retrieval and passage ranking tasks under zero-shot settings.
201
+
202
+ # 6 Limitations
203
+
204
+ In this work, we propose an effective unsupervised rewriting method, Chain-of-Rewrite, to tackle the challenges in open-domain question answering scenarios. The limitations of the proposed method are as follows:
205
+
206
+ (1) Due to the need for in-depth analysis and reconstruction, our approach requires more computational resources and time than using a retrieve-then-read pipeline that takes the original questions and documents as input. However, in situations where
207
+
208
+ computational resources are constrained, there are strategies to mitigate the computational overhead while still maintaining considerable performance gains. One such strategy involves selectively applying the chain-of-rewrite process to the top-ranked documents, rather than all retrieved documents. As indicated in Table 2 under the "w/o rerank documents feedback" condition, the performance decrease is marginal compared to rewriting all retrieved documents.
209
+
210
+ (2) Due to constraints in computational resources and time, our experiments were limited to using the Vicuna-13B model as the base model for chain-of-rewriting open-domain questions and documents retrieved from Wikipedia. However, our framework can be easily applied to models with varying scales and architectures, and we are interested in investigating the effectiveness of our approach on other LLMs.
211
+
212
+ # 7 Acknowledgments
213
+
214
+ We sincerely thank the reviewers for their insightful comments and valuable suggestions. This work was supported by Beijing Natural Science Foundation (L243006), the Natural Science Foundation of China (No. 62106251 and 62306303), and Ant Group Research Fund.
215
+
216
+ # References
217
+
218
+ Nasreen Abdul-Jaleel, James Allan, W Bruce Croft, Fernando Diaz, Leah Larkey, Xiaoyan Li, Mark D Smucker, and Courtney Wade. 2004. Umass at trec 2004: Novelty and hard. Computer Science Department Faculty Publication Series, page 189.
219
+ Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on Freebase from question-answer pairs. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1533-1544, Seattle, Washington, USA. Association for Computational Linguistics.
220
+ Bodo Billerbeck and Justin Zobel. 2005. Document expansion versus query expansion for ad-hoc retrieval. In Proceedings of the 10th Australasian document computing symposium, pages 34-41.
221
+ Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D 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 Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack
222
+
223
+ 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, volume 33, pages 1877-1901. Curran Associates, Inc.
224
+ Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading Wikipedia to answer open-domain questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1870-1879, Vancouver, Canada. Association for Computational Linguistics.
225
+ Xinran Chen, Xuanang Chen, Ben He, Tengfei Wen, and Le Sun. 2024. Analyze, generate and refine: Query expansion with LLMs for zero-shot open-domain QA. In Findings of the Association for Computational Linguistics ACL 2024, pages 11908-11922, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics.
226
+ 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).
227
+ Sukmin Cho, Jeongyeon Seo, Soyeong Jeong, and Jong Park. 2023. Improving zero-shot reader by reducing distractions from irrelevant documents in open-domain question answering. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 3145-3157, Singapore. Association for Computational Linguistics.
228
+ Yung-Sung Chuang, Wei Fang, Shang-Wen Li, Wen-tau Yih, and James Glass. 2023. Expand, rerank, and retrieve: Query reranking for open-domain question answering. In Findings of the Association for Computational Linguistics: ACL 2023, pages 12131-12147, Toronto, Canada. Association for Computational Linguistics.
229
+ Tonya Custis and Khalid Al-Kofahi. 2007. A new approach for evaluating query expansion: query-document term mismatch. In Proceedings of the 30th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '07, page 575-582, New York, NY, USA. Association for Computing Machinery.
230
+ Zhuyun Dai and Jamie Callan. 2020. Context-aware document term weighting for ad-hoc search. In WWW '20: The Web Conference 2020, Taipei, Taiwan, April 20-24, 2020, pages 1897-1907. ACM / IW3C2.
231
+ Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 3929-3938. PMLR.
232
+
233
+ Gautier Izacard and Edouard Grave. 2021a. Distilling knowledge from reader to retriever for question answering. In International Conference on Learning Representations.
234
+ Gautier Izacard and Edouard Grave. 2021b. Leveraging passage retrieval with generative models for open domain question answering. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 874-880, Online. Association for Computational Linguistics.
235
+ Mandar Joshi, Eunsol Choi, Daniel 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, Vancouver, Canada. Association for Computational Linguistics.
236
+ Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6769-6781, Online. Association for Computational Linguistics.
237
+ Zixuan Ke, Weize Kong, Cheng Li, Mingyang Zhang, Qiao zhu Mei, and Michael Bendersky. 2024. Bridging the preference gap between retrievers and LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10438-10451, Bangkok, Thailand. Association for Computational Linguistics.
238
+ Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. 2019. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452-466.
239
+ Angeliki Lazaridou, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. 2022. Internet-augmented language models through few-shot prompting for open-domain question answering. ArXiv, abs/2203.05115.
240
+ Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. 2019. Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 6086–6096, Florence, Italy. Association for Computational Linguistics.
241
+ Yejoon Lee, Philhoon Oh, and James Thorne. 2023. Knowledge corpus error in question answering. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 9183–9197, Singapore. Association for Computational Linguistics.
242
+
243
+ Yoav Levine, Ori Ram, Daniel Jannai, Barak Lenz, Shai Shalev-Shwartz, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2022. Huge frozen language models as readers for open-domain question answering. In ICML 2022 Workshop on Knowledge Retrieval and Language Models.
244
+ Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Kuttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. In Advances in Neural Information Processing Systems, volume 33, pages 9459-9474. Curran Associates, Inc.
245
+ Junlong Li, Jinyuan Wang, Zhuosheng Zhang, and Hai Zhao. 2024. Self-prompting large language models for zero-shot open-domain QA. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 296-310, Mexico City, Mexico. Association for Computational Linguistics.
246
+ Linqing Liu, Patrick Lewis, Sebastian Riedel, and Pontus Stenetorp. 2022. Challenges in generalization in open domain question answering. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 2014–2029, Seattle, United States. Association for Computational Linguistics.
247
+ Alex Mallen, Akari Asai, Victor Zhong, Rajarshi Das, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. When not to trust language models: Investigating effectiveness of parametric and non-parametric memories. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9802-9822, Toronto, Canada. Association for Computational Linguistics.
248
+ Donald Metzler and W. Bruce Croft. 2005. A markov random field model for term dependencies. In SIGIR 2005: Proceedings of the 28th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Salvador, Brazil, August 15-19, 2005, pages 472-479. ACM.
249
+ Donald Metzler and W. Bruce Croft. 2007. Latent concept expansion using markov random fields. In SIGIR 2007: Proceedings of the 30th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Amsterdam, The Netherlands, July 23-27, 2007, pages 311-318. ACM.
250
+ Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. 2021. Webgpt: Browser-assisted question-answering with human feedback. CoRR, abs/2112.09332.
251
+
252
+ Rodrigo Nogueira, Jimmy Lin, and AI Epistemic. 2019a. From doc2query to doctttttquery. Online preprint, 6:2.
253
+ Rodrigo Frassetto Nogueira, Wei Yang, Jimmy Lin, and Kyunghyun Cho. 2019b. Document expansion by query prediction. CoRR, abs/1904.08375.
254
+ OpenAI. 2022. Introducing chatgpt. See https://openai.com/index/chatgpt.
255
+ Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F. Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022.
256
+ Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah Smith, and Mike Lewis. 2023. Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, Singapore. Association for Computational Linguistics.
257
+ Yujia Qin, Zihan Cai, Dian Jin, Lan Yan, Shihao Liang, Kunlun Zhu, Yankai Lin, Xu Han, Ning Ding, Huadong Wang, Ruobing Xie, Fanchao Qi, Zhiyuan Liu, Maosong Sun, and Jie Zhou. 2023. WebCPM: Interactive web search for Chinese long-form question answering. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8968-8988, Toronto, Canada. Association for Computational Linguistics.
258
+ Stefan Riezler, Alexander Vasserman, Ioannis Tsochantaridis, Vibhu Mittal, and Yi Liu. 2007. Statistical machine translation for query expansion in answer retrieval. In Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics, pages 464-471, Prague, Czech Republic. Association for Computational Linguistics.
259
+ Stephen Robertson and Hugo Zaragoza. 2009. The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends® in Information Retrieval, 3(4):333-389.
260
+ Devendra Sachan, Mike Lewis, Mandar Joshi, Armen Aghajanyan, Wen-tau Yih, Joelle Pineau, and Luke Zettlemoyer. 2022. Improving passage retrieval with zero-shot question generation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 3781-3797, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
261
+
262
+ Christopher Sciavolino, Zexuan Zhong, Jinhyuk Lee, and Danqi Chen. 2021. Simple entity-centric questions challenge dense retrievers. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 6138-6148, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
263
+ Weijia Shi, Sewon Min, Michihiro Yasunaga, Minjoon Seo, Richard James, Mike Lewis, Luke Zettle-moyer, and Wen-tau Yih. 2024. REPLUG: retrieval-augmented black-box language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), NAACL 2024, Mexico City, Mexico, June 16-21, 2024, pages 8371-8384. Association for Computational Linguistics.
264
+ Hao Sun, Xiao Liu, Yeyun Gong, Yan Zhang, Daxin Jiang, Linjun Yang, and Nan Duan. 2023. Allies: Prompting large language model with beam search. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 3794-3805, Singapore. Association for Computational Linguistics.
265
+ 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. *ArXiv*, abs/2302.13971.
266
+ Ellen M. Voorhees and Dawn M. Tice. 2000. The TREC-8 question answering track. In Proceedings of the Second International Conference on Language Resources and Evaluation (LREC'00), Athens, Greece. European Language Resources Association (ELRA).
267
+ Liang Wang, Nan Yang, and Furu Wei. 2023. Query2doc: Query expansion with large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 9414-9423, Singapore. Association for Computational Linguistics.
268
+ Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. 2022. Finetuned language models are zero-shot learners. In International Conference on Learning Representations.
269
+ An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, Guanting Dong, Hao ran Wei, Huan Lin, Jialong Tang, Jialin Wang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Ma, Jianxin Yang, Jin Xu, Jingren Zhou, Jinze Bai, Jinzheng He, Junyang Lin, Kai Dang, Keming Lu, Keqin Chen, Kexin Yang, Mei Li, Mingfeng Xue, Na Ni, Pei Zhang, Peng Wang, Ru Peng, Rui Men, Ruize Gao, Runji Lin, Shijie Wang, Shuai Bai, Sinan Tan, Tianhang Zhu, Tianhao Li, Tianyu Liu, Wenbin Ge, Xiaodong Deng, Xiaohuan Zhou, Xingzhang Ren,
270
+
271
+ Xinyu Zhang, Xipin Wei, Xuancheng Ren, Xuejing Liu, Yang Fan, Yang Yao, Yichang Zhang, Yu Wan, Yunfei Chu, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, Zhifang Guo, and Zhihao Fan. 2024. Qwen2 technical report. arXiv preprint arXiv:2407.10671.
272
+ Sohee Yang and Minjoon Seo. 2021. Designing a minimal retrieve-and-read system for open-domain question answering. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5856-5865, Online. Association for Computational Linguistics.
273
+ Wenhao Yu, Dan Iter, Shuohang Wang, Yichong Xu, Mingxuan Ju, Soumya Sanyal, Chenguang Zhu, Michael Zeng, and Meng Jiang. 2023. Generate rather than retrieve: Large language models are strong context generators. In The Eleventh International Conference on Learning Representations.
274
+ Longhui Zhang, Yanzhao Zhang, Dingkun Long, Pengjun Xie, Meishan Zhang, and Min Zhang. 2023a. Rankinggpt: Empowering large language models in text ranking with progressive enhancement. CoRR, abs/2311.16720.
275
+ Yunxiang Zhang, Muhammad Khalifa, Lajanugen Logeswaran, Moontae Lee, Honglak Lee, and Lu Wang. 2023b. Merging generated and retrieved knowledge for open-domain QA. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 4710-4728, Singapore. Association for Computational Linguistics.
276
+ Le Zhao and Jamie Callan. 2012. Automatic term mismatch diagnosis for selective query expansion. In Proceedings of the 35th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '12, page 515-524, New York, NY, USA. Association for Computing Machinery.
277
+ Ingrid Zukerman and Bhavani Raskutti. 2002. Lexical query paraphrasing for document retrieval. In COLING 2002: The 19th International Conference on Computational Linguistics.
278
+
279
+ # A Detailed Prompts
280
+
281
+ In this subsection, we provide a thorough description of the prompts utilized in our proposed Chain-of-Rewrite method. Prompts used for our question reformulation and document reformulation are shown in Section A.1 and A.2, respectively. Section A.3 shows a prompt template to instruct LMs to answer the given question based on retrieved documents.
282
+
283
+ It is important to note that these prompts are configured for the Vicuna-13B-v1.5 model, and slight adaptability adjustments may be necessary when applying them to other models.
284
+
285
+ # A.1 Query Reformulation
286
+
287
+ For query reformulation, we first prompt the LLM to add potentially missing topics and details to the original question to obtain clarification queries with the following prompt:
288
+
289
+ Given a query that might be ambiguous or unclear, provide a bullet-point list of explicit queries that the ambiguous query could pertain to.
290
+
291
+ Query: {query}
292
+
293
+ List of explicit queries:
294
+
295
+ Then, we prompt the LLM to provide a list of highly relevant expanded queries based on the clarification query, from which various terms and phrases are extracted to expand the original question. The detailed prompt is:
296
+
297
+ Based on the given query, generate a bullet-point list of diverse related queries that will find relevant documents. Next to each point, extract keywords from it that are closely related to the original query.
298
+
299
+ Query: {clarification query}
300
+
301
+ List of related queries:
302
+
303
+ # A.2 Document Reformulation
304
+
305
+ For document reformulation, we first prompt the LLM to provide the step-by-step analysis of whether the document is relevant to the given question and extract the evidence sentences. The detailed prompt is:
306
+
307
+ In the first paragraph, give a step-by-step analysis of whether the document provides information to answer the question. And in the second paragraph, you should give the evidence sentences extracted from the document.
308
+
309
+ Document: {document}
310
+
311
+ Question: {question}
312
+
313
+ Output:
314
+
315
+ Based on the analysis, we prompt the LLM to identify the candidate answer based on the given document, and offer an option (e.g. "unknown") to reject irrelevant documents.
316
+
317
+ Based on the analysis, extract the answer entity from the document to answer the following question. Output "unknown" as the answer if there is no relevant information in the document.
318
+
319
+ Question: {question}
320
+
321
+ Document: {document}
322
+
323
+ Analysis: {analysis}
324
+
325
+ Answer:
326
+
327
+ Note that in this step, we collect not only the answers predicted by the LLM, but also the probability of LLM predicting 'unknown', which is used as an automatic feedback to to rerank documents.
328
+
329
+ # A.3 Question Answering
330
+
331
+ In our experiments, we use the following prompt to ask the reader to answer the given question based on evidence passages.
332
+
333
+ Passages: {evidence passages}
334
+
335
+ Extract the single answer entity from the passages to answer the following question.
336
+
337
+ Only output the answer entity.
338
+
339
+ Question: {question}
340
+
341
+ Answer:
2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e00eb99ccbc285305c56c208090d0b4e83e59ee46d47a7c1579a3d195a30929
3
+ size 663269
2024/Chain-of-Rewrite_ Aligning Question and Documents for Open-Domain Question Answering/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/08dc98ee-6735-489e-8bdc-21704eaecbb3_content_list.json ADDED
@@ -0,0 +1,1443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Change Is the Only Constant: Dynamic LLM Slicing based on Layer Redundancy",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 144,
8
+ 89,
9
+ 855,
10
+ 130
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Razvan-Gabriel Dumitru<sup>1</sup>, Paul-Ioan Clotan<sup>2</sup>, Vikas Yadav<sup>3</sup>, Darius Peteleaza<sup>4</sup>, Mihai Surdeanu<sup>1</sup>",
17
+ "bbox": [
18
+ 159,
19
+ 145,
20
+ 843,
21
+ 178
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup>University of Arizona, <sup>2</sup>Università di Bologna, <sup>3</sup>ServiceNow AI,",
28
+ "bbox": [
29
+ 233,
30
+ 179,
31
+ 761,
32
+ 196
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "<sup>4</sup>University Lucian Blaga of Sibiu",
39
+ "bbox": [
40
+ 359,
41
+ 197,
42
+ 636,
43
+ 212
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Correspondence:razvandumm@gmail.com",
50
+ "bbox": [
51
+ 361,
52
+ 216,
53
+ 635,
54
+ 229
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 260,
64
+ 260,
65
+ 339,
66
+ 275
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "This paper introduces a novel model compression approach through dynamic layer-specific pruning in Large Language Models (LLMs), enhancing the traditional methodology established by SliceGPT. By transitioning from constant to dynamic slicing, our method leverages the newly proposed Layer Redundancy (LR) score, which assesses how much change each layer changes its input by measuring the cosine similarity of the input to the output of the layer. We use this score to prune parts of individual layers based on redundancy in such a way that the average pruned percentage for all layers is a fixed value. We conducted extensive experiments using models like Llama3-8B and Mistral-7B on multiple datasets, evaluating different slicing bases and percentages to determine optimal configurations that balance efficiency and performance. Our findings show that our dynamic slicing approach not only maintains but, in many cases, enhances model performance compared to the baseline established by constant slicing methods. For instance, in several settings, we see performance improvements of up to $5\\%$ over the SliceGPT baseline. Additionally, a perplexity decrease by as much as $7\\%$ was observed across multiple benchmarks, validating the effectiveness of our method. The code, model weights, and datasets are open-sourced at https://github.com/RazvanDu/DynamicSlicing.",
73
+ "bbox": [
74
+ 144,
75
+ 285,
76
+ 458,
77
+ 726
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 114,
87
+ 734,
88
+ 258,
89
+ 750
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Large Language Models (LLMs), characterized by their massive scale, often consist of billions to trillions of parameters, enabling them to perform a wide range of complex tasks with remarkable proficiency (Kevian et al., 2024; Touvron et al., 2023; Team et al., 2023; Jiang et al., 2023). However, the deployment of these models poses significant challenges, primarily due to the extensive computational resources requirements. As the scale of these models grows, so does the urgency to develop more",
96
+ "bbox": [
97
+ 112,
98
+ 760,
99
+ 489,
100
+ 921
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "efficient methods for their deployment. This has led to increased interest in model compression techniques that aim to reduce the computational burden without substantially sacrificing performance. Techniques such as knowledge distillation, quantization, or pruning variants have emerged as viable solutions (Wan et al., 2023), each offering a different approach to streamlining model architecture and operations (Wang et al., 2024).",
107
+ "bbox": [
108
+ 507,
109
+ 261,
110
+ 884,
111
+ 405
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this paper, we improve the work on model pruning introduced by SliceGPT (Ashkboos et al., 2024), a pruning technique via a constant slicing percentage of each layer. While this approach reduces computational demands and maintains a level of performance, it does not account for the varying significance of different layers within the network. We propose a more nuanced, dynamic pruning method that adapts the degree of pruning based on the individual characteristics and contributions of each layer. Our method aims to optimize both the efficiency and the efficacy of the pruning process by preserving more functionality in critical areas of the model, leading to better performance and less degradation in tasks.",
118
+ "bbox": [
119
+ 507,
120
+ 406,
121
+ 884,
122
+ 646
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "More specifically, we develop a new metric, namely Layer Redundancy (LR) score, to quantify the impact of each layer on the model's overall performance. This evaluation is essential, as it guides the order in which layers are pruned, ensuring that the most influential layers are preserved while less critical layers are removed. Our approach involves generating slicing functions tailored to the importance of each layer, allowing for a dynamic and informed pruning strategy. Our results from the extensive empirical studies across various datasets and base models show a substantial improvement in model accuracy across all datasets tested, accompanied by a notable reduction in perplexity. In order to thoroughly evaluate the effectiveness of our proposed dynamic slicing pattern, we also analyzed the median accuracy and perplexity across",
129
+ "bbox": [
130
+ 507,
131
+ 648,
132
+ 884,
133
+ 921
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "page_number",
139
+ "text": "9912",
140
+ "bbox": [
141
+ 478,
142
+ 927,
143
+ 519,
144
+ 940
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "footer",
150
+ "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 9912-9920 November 12-16, 2024 ©2024 Association for Computational Linguistics",
151
+ "bbox": [
152
+ 216,
153
+ 945,
154
+ 779,
155
+ 972
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "a range of models. The results consistently show the superiority of our method over conventional constant slicing techniques.",
162
+ "bbox": [
163
+ 112,
164
+ 84,
165
+ 487,
166
+ 131
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "The main contributions of our paper are:",
173
+ "bbox": [
174
+ 131,
175
+ 133,
176
+ 433,
177
+ 148
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "list",
183
+ "sub_type": "text",
184
+ "list_items": [
185
+ "- We showed that dynamic, adaptive layer pruning can significantly improve computational efficiency without compromising model performance.",
186
+ "- The introduction of the Layer Redundancy score, a new metric to evaluate and guide the dynamic pruning of layers in LLMs.",
187
+ "- Extensive empirical validation shows that our method outperforms static pruning techniques in terms of both accuracy and perplexity across various settings."
188
+ ],
189
+ "bbox": [
190
+ 112,
191
+ 156,
192
+ 487,
193
+ 337
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "2 Related Work",
200
+ "text_level": 1,
201
+ "bbox": [
202
+ 114,
203
+ 349,
204
+ 270,
205
+ 363
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Recent advancements in model compression techniques (Hoefler et al., 2021; Zhu et al., 2023) have markedly improved the efficiency of deploying LLMs while striving to retain their performance. The field has seen a variety of approaches including knowledge distillation (Hinton et al., 2015; Hsieh et al., 2023), quantization (Ma et al., 2024), pruning (Ma et al., 2023; Yang et al., 2024), low-rank adaptation (Hu et al., 2021) or hybrid variants (Xu et al., 2023; Dettmers et al., 2024), each designed to address the growing computational and memory requirements of these models.",
212
+ "bbox": [
213
+ 112,
214
+ 374,
215
+ 487,
216
+ 565
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "Innovative approaches such as LLM-Pruner (Ma et al., 2023) and LaCo (Layer Collapse) (Yang et al., 2024) offer novel perspectives on model pruning. LLM-Pruner focuses on structured pruning by identifying and removing dependency groups within the model, aiming to minimize dependency on the original training corpus while preserving linguistic capabilities. Similarly, LaCo presents a layer-wise pruning strategy where subsequent layers collapse into preceding ones, achieving notable size reduction while maintaining good performance. A third approach (Gromov et al., 2024) explores the potential of simple layer-pruning strategies combined with parameter-efficient finetuning (PEFT), demonstrating minimal performance loss even when half of the model's layers are removed.",
223
+ "bbox": [
224
+ 112,
225
+ 567,
226
+ 487,
227
+ 822
228
+ ],
229
+ "page_idx": 1
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "Among the innovative strategies in LLM optimization, SliceGPT (Ashkboos et al., 2024) emerges as a significant breakthrough in model compression. Developed to address the intensive computational and memory demands of deploying LLMs, SliceGPT employs a unique post-training",
234
+ "bbox": [
235
+ 112,
236
+ 825,
237
+ 487,
238
+ 921
239
+ ],
240
+ "page_idx": 1
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "sparsification technique. Although effective in practice, previous research has illustrated that the order in which layers are removed plays a critical role in model performance (Gromov et al., 2024; Men et al., 2024). This insight led us to explore variable slicing percentages across different layers, challenging the constant slice for all layers. Initial attempts by the creators of SliceGPT to implement this through spectral analysis of layers did not yield a reliable method for determining the optimal percentage to be removed from each layer, as spectral analysis only tells part of the story and doesn't correlate with how much can be sliced out of a layer.",
245
+ "bbox": [
246
+ 507,
247
+ 84,
248
+ 884,
249
+ 294
250
+ ],
251
+ "page_idx": 1
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "3 Method",
256
+ "text_level": 1,
257
+ "bbox": [
258
+ 507,
259
+ 305,
260
+ 611,
261
+ 319
262
+ ],
263
+ "page_idx": 1
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "3.1 LR score",
268
+ "text_level": 1,
269
+ "bbox": [
270
+ 507,
271
+ 331,
272
+ 626,
273
+ 344
274
+ ],
275
+ "page_idx": 1
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "Building on concepts introduced in a recent, unpublished study (Men et al., 2024), we propose a novel metric for assessing layer usefulness. This metric quantifies the extent to which each layer modifies its input by measuring the cosine similarity between the input and output. Specifically, we define this as the Layer Redundancy (LR) score:",
280
+ "bbox": [
281
+ 507,
282
+ 351,
283
+ 882,
284
+ 463
285
+ ],
286
+ "page_idx": 1
287
+ },
288
+ {
289
+ "type": "equation",
290
+ "text": "\n$$\nL R \\left(\\mathbf {L} _ {\\mathbf {i}}\\right) = \\frac {\\mathbf {L} _ {\\mathbf {i}} ^ {\\mathbf {I}} \\cdot \\mathbf {L} _ {\\mathbf {i}} ^ {\\mathbf {O}}}{\\| \\mathbf {L} _ {\\mathbf {i}} ^ {\\mathbf {I}} \\| \\| \\mathbf {L} _ {\\mathbf {i}} ^ {\\mathbf {O}} \\|} \\tag {1}\n$$\n",
291
+ "text_format": "latex",
292
+ "bbox": [
293
+ 606,
294
+ 475,
295
+ 882,
296
+ 513
297
+ ],
298
+ "page_idx": 1
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "In Eq 1 $\\mathbf{L_i^I}$ refers to the input of layer, while $\\mathbf{L_i^O}$ refers to the output of layer. Intuitively, the higher cosine similarity between inputs and outputs leads to higher LR score, implying that the layer is more redundant. To evaluate the score for all layers, we use the full validation set of the PG-19 data set (Rae et al., 2019), we pass the data as context through the LLMs and we sum up how much each layer processed its input according to the cosine similarity score. At the end we normalize the values linearly so that the min $(LR(\\mathbf{L_i})) = 0$ and max $(LR(\\mathbf{L_i})) = 1$ , guaranteeing that they range from 0 to 1. Intuitively, a LR score closer to 0 corresponds to lesser redundancy while higher LR score (close to 1) would mean high redundancy. To the best of our knowledge, our work is the first one to use a per layer importance/redundancy score to prune variable parts of layers out (explained in the following section), instead of removing whole layers or removing a fixed constant portion of the layer (Men et al., 2024).",
303
+ "bbox": [
304
+ 507,
305
+ 519,
306
+ 882,
307
+ 857
308
+ ],
309
+ "page_idx": 1
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "3.2 Defining a per-layer percentage",
314
+ "text_level": 1,
315
+ "bbox": [
316
+ 507,
317
+ 869,
318
+ 801,
319
+ 883
320
+ ],
321
+ "page_idx": 1
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "Our goal is to have a function that slices variable sized parts of each layers based on their LR score",
326
+ "bbox": [
327
+ 507,
328
+ 889,
329
+ 880,
330
+ 921
331
+ ],
332
+ "page_idx": 1
333
+ },
334
+ {
335
+ "type": "page_number",
336
+ "text": "9913",
337
+ "bbox": [
338
+ 480,
339
+ 927,
340
+ 519,
341
+ 940
342
+ ],
343
+ "page_idx": 1
344
+ },
345
+ {
346
+ "type": "image",
347
+ "img_path": "images/25d25fb2462509b06195539da5d7b2b862d6cb38197d5d0711e7ce7654675032.jpg",
348
+ "image_caption": [
349
+ "Figure 1: Example of the Layer Redundancy (LR) score as well as the transformations used to achieve a slice percentage of $30\\%$ ( $S_P = 0.3$ ) with a base slice for all layers of $10\\%$ ( $S_B = 0.1$ ). The example is shown for the 32 layers of llama3-8B."
350
+ ],
351
+ "image_footnote": [],
352
+ "bbox": [
353
+ 114,
354
+ 79,
355
+ 357,
356
+ 223
357
+ ],
358
+ "page_idx": 2
359
+ },
360
+ {
361
+ "type": "image",
362
+ "img_path": "images/b4faba87150e3ec510f49b1e41ca6fb37d09855a583d6e3058efd32f978a0ac8.jpg",
363
+ "image_caption": [],
364
+ "image_footnote": [],
365
+ "bbox": [
366
+ 364,
367
+ 80,
368
+ 655,
369
+ 222
370
+ ],
371
+ "page_idx": 2
372
+ },
373
+ {
374
+ "type": "image",
375
+ "img_path": "images/edf85d3a674a8cb095830ee6d25cec06ffac15debd9ac9dcffe384b2f506111e.jpg",
376
+ "image_caption": [],
377
+ "image_footnote": [],
378
+ "bbox": [
379
+ 660,
380
+ 80,
381
+ 880,
382
+ 222
383
+ ],
384
+ "page_idx": 2
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "while keeping the overall average of sliced out parts acorrss all layers to be a fixed percentage of the LLM parameters specified by the user. For example, layers with higher LR values (or redundancy) can be sliced more compared to layers with lower LR score (or redundancy). To achieve this, we applied several transformations on the previously defined LR score such that we have control over how big of an impact we want the redundancy to have on the sliced percentage.",
389
+ "bbox": [
390
+ 110,
391
+ 300,
392
+ 487,
393
+ 462
394
+ ],
395
+ "page_idx": 2
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "The first step is to control the average of the $LR$ score so that we can then control the average pruned percentage of the LLM. Concretely, we denote the average desired slicing percentage as $S_P$ (Slice Percentage). In order to investigate what happens as we go further away from a constant slice for each layer, we will also define $S_B$ (Slice Base) to be a fixed constant value that will be guaranteed to be sliced from each layer such that $S_B < = S_P$ . As $S_B = S_P$ , the slicing becomes constant as presented by Ashkboos et al. (2024). We experimented with different values of $S_B$ to see the effect of layer redundancy on the LLM's performance. The next step is to scale the $LR$ function so that its average is $S_P - S_B$ , thus once we add the base percentage for each layer $(S_B)$ the total average will be $S_P - S_B + S_B = S_P$ . This can be achieved by multiplying each $LR_i$ value by the ratio of $S_P - S_B$ divided by the mean of the function. This is denoted as Slice per Layer Redundancy (SLR) and shown in Eq 2.",
400
+ "bbox": [
401
+ 112,
402
+ 463,
403
+ 489,
404
+ 802
405
+ ],
406
+ "page_idx": 2
407
+ },
408
+ {
409
+ "type": "equation",
410
+ "text": "\n$$\nS L R \\left(\\mathbf {L} _ {\\mathbf {i}}\\right) = \\mathrm {L R} _ {i} \\cdot \\frac {S _ {P} - S _ {B}}{\\frac {1}{n} \\sum_ {i = 1} ^ {n} \\mathrm {L R} _ {i}} \\tag {2}\n$$\n",
411
+ "text_format": "latex",
412
+ "bbox": [
413
+ 179,
414
+ 814,
415
+ 487,
416
+ 851
417
+ ],
418
+ "page_idx": 2
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "At the end, the Final Slice $(FS)$ for the layer $\\mathbf{L_i}$ , is the sum of $SLR$ and $S_B$ as shown in Eq 3.",
423
+ "bbox": [
424
+ 112,
425
+ 857,
426
+ 487,
427
+ 889
428
+ ],
429
+ "page_idx": 2
430
+ },
431
+ {
432
+ "type": "equation",
433
+ "text": "\n$$\nF S \\left(\\mathbf {L} _ {\\mathbf {i}}\\right) = S L R \\left(\\mathbf {L} _ {\\mathbf {i}}\\right) + S _ {B} \\tag {3}\n$$\n",
434
+ "text_format": "latex",
435
+ "bbox": [
436
+ 196,
437
+ 904,
438
+ 487,
439
+ 921
440
+ ],
441
+ "page_idx": 2
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "Average of $FS$ for all $n$ layers of a LLM is equal to $S_P$ as shown in eq. (4).",
446
+ "bbox": [
447
+ 507,
448
+ 300,
449
+ 880,
450
+ 332
451
+ ],
452
+ "page_idx": 2
453
+ },
454
+ {
455
+ "type": "equation",
456
+ "text": "\n$$\n\\frac {\\sum_ {i = 1} ^ {n} F S \\left(\\mathbf {L} _ {\\mathbf {i}}\\right)}{n} = S _ {P} \\tag {4}\n$$\n",
457
+ "text_format": "latex",
458
+ "bbox": [
459
+ 615,
460
+ 341,
461
+ 880,
462
+ 374
463
+ ],
464
+ "page_idx": 2
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "3.3 Slicing parts of layers",
469
+ "text_level": 1,
470
+ "bbox": [
471
+ 507,
472
+ 381,
473
+ 724,
474
+ 397
475
+ ],
476
+ "page_idx": 2
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "The methodology in SliceGPT utilizes a specialized version of Principal Component Analysis (PCA) (Abdi and Williams, 2010) for efficient data reduction. It projects the data matrix $X$ onto a lower-dimensional subspace using the eigenvectors $Q$ and a deletion matrix $D$ . The reduced matrix $Z$ is computed as $XQD$ , where $D$ selectively omits certain components from $Q$ , resulting in a compressed representation $Z$ . The approximate reconstruction $\\tilde{X}$ is obtained by $ZD^T Q^T$ , minimizing the reconstruction error $\\| \\mathbf{X} - \\tilde{\\mathbf{X}} \\|^2$ . Unlike SliceGPT, we control the dimension of the matrix $D$ on a per-layer basis to achieve our dynamic slice.",
481
+ "bbox": [
482
+ 505,
483
+ 401,
484
+ 882,
485
+ 611
486
+ ],
487
+ "page_idx": 2
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "4 Experiments",
492
+ "text_level": 1,
493
+ "bbox": [
494
+ 507,
495
+ 621,
496
+ 655,
497
+ 639
498
+ ],
499
+ "page_idx": 2
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "The first step of the process is to evaluate how redundant each one of the layers is using the procedure described above. We have done this for Llama3-8B and Mistral-7B (Jiang et al., 2023) using the full validation split of the pg-19 data-set (Rae et al., 2019). This will give us a $LR$ score for each layer that we then need to process into a slicing pattern. Figure 1 shows an example of a slicing pattern evaluation process for Llama3-8B having a target $S_P$ of $30\\%$ and a $S_B$ of $10\\%$ .",
504
+ "bbox": [
505
+ 505,
506
+ 646,
507
+ 882,
508
+ 808
509
+ ],
510
+ "page_idx": 2
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "Furthermore, we evaluate Llama3-8B and Mistral-7B using different Slice Base $(S_B)$ values in increments of $2\\%$ . Intuitively as we decrease the base percentage of the layers we have more extreme slicing patterns. In all our experiments we compare with the constant slice as a baseline. We experiment with Slice Percentages $(S_P)$ of $30\\%$ , $35\\%$ ,",
515
+ "bbox": [
516
+ 507,
517
+ 809,
518
+ 882,
519
+ 921
520
+ ],
521
+ "page_idx": 2
522
+ },
523
+ {
524
+ "type": "page_number",
525
+ "text": "9914",
526
+ "bbox": [
527
+ 480,
528
+ 927,
529
+ 519,
530
+ 940
531
+ ],
532
+ "page_idx": 2
533
+ },
534
+ {
535
+ "type": "table",
536
+ "img_path": "images/92a8b1a7958203d3c5d84031dd3cad642ac0bd8751cf7163563c7a2c4fe755b4.jpg",
537
+ "table_caption": [],
538
+ "table_footnote": [],
539
+ "table_body": "<table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Acc. (↑)</td></tr><tr><td rowspan=\"6\">Llama 3-8B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>60.4%</td><td>38.4%</td><td>58.0%</td><td>42.4%</td><td>12.96</td><td>49.8%</td></tr><tr><td>35%</td><td>58.4%</td><td>36.3%</td><td>57.2%</td><td>39.3%</td><td>15.64</td><td>47.8%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.4%</td><td>36.8%</td><td>19.11</td><td>45.8%</td></tr><tr><td rowspan=\"6\">Mistral-7B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>63.1%</td><td>38.6%</td><td>60.2%</td><td>51.7%</td><td>8.76</td><td>53.4%</td></tr><tr><td>35%</td><td>58.5%</td><td>34.9%</td><td>55.7%</td><td>45.8%</td><td>10.38</td><td>48.8%</td></tr><tr><td>40%</td><td>57.9%</td><td>31.9%</td><td>54.1%</td><td>40.1%</td><td>12.62</td><td>46.0%</td></tr></table>",
540
+ "bbox": [
541
+ 122,
542
+ 80,
543
+ 877,
544
+ 282
545
+ ],
546
+ "page_idx": 3
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "Table 1: Comparison of our technique in the smallest perplexity setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison",
551
+ "bbox": [
552
+ 112,
553
+ 292,
554
+ 882,
555
+ 324
556
+ ],
557
+ "page_idx": 3
558
+ },
559
+ {
560
+ "type": "image",
561
+ "img_path": "images/052946021ff3376f6639c9b48655c84a9e14a256c5713fc8875f3edd6259c072.jpg",
562
+ "image_caption": [
563
+ "Figure 2: Llama3-8B with $40\\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $40\\%$ slice."
564
+ ],
565
+ "image_footnote": [],
566
+ "bbox": [
567
+ 117,
568
+ 337,
569
+ 878,
570
+ 470
571
+ ],
572
+ "page_idx": 3
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "$40\\%$ , these representing the percentage of the LLM that we prune. For evaluations, we use: Piqa (Bisk et al., 2019), Hellaswag (Zellers et al., 2019), Winogrande (Sakaguchi et al., 2019), Arc Easy (Clark et al., 2018), and Wikitextv2 (Merit et al., 2016) within the library lm-evaluation-harness (Gao et al., 2023). For more experimental details, please refer to Section A.1 in the Appendix.",
577
+ "bbox": [
578
+ 112,
579
+ 536,
580
+ 489,
581
+ 667
582
+ ],
583
+ "page_idx": 3
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "5 Results",
588
+ "text_level": 1,
589
+ "bbox": [
590
+ 112,
591
+ 682,
592
+ 213,
593
+ 697
594
+ ],
595
+ "page_idx": 3
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "We will first explore how the accuracy is affected by our dynamic slicing. Figure 2 (presented above), and Figures 3, 4, 5, 6, 7 (presented in Appendix) show the behaviors of Llama3-8b and Mistral-7b on $30\\%$ , $35\\%$ , $40\\%$ pruned percentage with respect to the accuracy on four data sets and perplexity on Wikitextv2. As observed in Figure 2, for the Llama3-8B model, the accuracy is improved across all of the 5 evaluated datasets, and the perplexity decreases by as much as 1.4 while pruning the exact same amount from the model. We also see huge accuracy improvements from $52\\%$ to $57\\%$ on Winogrande which has a baseline accuracy of",
600
+ "bbox": [
601
+ 112,
602
+ 711,
603
+ 489,
604
+ 921
605
+ ],
606
+ "page_idx": 3
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "$50\\%$ . An important finding in all cases is that the perplexity decreases and task accuracy (mostly) increases when we started to decrease the $S_B$ (until a certain point) showcasing LLMs benefit more from dynamic slicing as proposed in our work.",
611
+ "bbox": [
612
+ 507,
613
+ 536,
614
+ 882,
615
+ 615
616
+ ],
617
+ "page_idx": 3
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "To estimate a good $S_B$ in our proposed dynamic slicing method, we evaluated the accuracy at the $S_B$ point that achieves the minimum perplexity on Wikitextv2, thus using it as a calibration data set. The results shown in Table 1 indicate that our method outperforms SliceGPT on average for all pruning ratios and models explored. We also show even better results using the median accuracy over all $S_B$ values (Table 3) and mean accuracy values (Table 4), leading us to believe that there are even better ways to choose an $S_B$ value than the minimum perplexity.",
622
+ "bbox": [
623
+ 507,
624
+ 615,
625
+ 882,
626
+ 810
627
+ ],
628
+ "page_idx": 3
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "5.1 Analyses",
633
+ "text_level": 1,
634
+ "bbox": [
635
+ 507,
636
+ 820,
637
+ 626,
638
+ 835
639
+ ],
640
+ "page_idx": 3
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "To highlight strengths of pruning with our dynamic slicing, we also show comparison with ShortGPT (Men et al., 2024) where entire set of layers are pruned or removed. Please note that techniques such as ShortGPT that have shown to be effective,",
645
+ "bbox": [
646
+ 507,
647
+ 841,
648
+ 884,
649
+ 921
650
+ ],
651
+ "page_idx": 3
652
+ },
653
+ {
654
+ "type": "page_number",
655
+ "text": "9915",
656
+ "bbox": [
657
+ 480,
658
+ 927,
659
+ 519,
660
+ 940
661
+ ],
662
+ "page_idx": 3
663
+ },
664
+ {
665
+ "type": "table",
666
+ "img_path": "images/f5f18789578f6a37b3aae8d388b76c12d6135ba4af36db21463379723181b66b.jpg",
667
+ "table_caption": [],
668
+ "table_footnote": [],
669
+ "table_body": "<table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan=\"6\">Llama 3-8B</td><td rowspan=\"3\">ShortGPT</td><td>28.1%</td><td>62.0%</td><td>32.5%</td><td>57.5%</td><td>39.4%</td><td>2.2 ×10^4</td><td>47.9%</td></tr><tr><td>34.3%</td><td>61.2%</td><td>34.3%</td><td>55.8%</td><td>38.1%</td><td>4.9 ×10^4</td><td>47.4%</td></tr><tr><td>37.5%</td><td>60.0%</td><td>34.1%</td><td>54.8%</td><td>37.5%</td><td>1.1 ×10^5</td><td>46.6%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>60.4%</td><td>38.4%</td><td>58.0%</td><td>42.4%</td><td>1.3 ×10^1</td><td>49.8%</td></tr><tr><td>35%</td><td>58.4%</td><td>36.3%</td><td>57.2%</td><td>39.3%</td><td>1.5 ×10^1</td><td>47.8%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.4%</td><td>36.8%</td><td>1.9 ×10^1</td><td>45.8%</td></tr><tr><td rowspan=\"6\">Mistral-7B</td><td rowspan=\"3\">ShortGPT</td><td>28.1%</td><td>65.0%</td><td>39.8%</td><td>63.3%</td><td>46.6%</td><td>1.6 ×10^2</td><td>53.9%</td></tr><tr><td>34.3%</td><td>57.2%</td><td>28.6%</td><td>56.1%</td><td>30.3%</td><td>1.1 ×10^4</td><td>43.1%</td></tr><tr><td>37.5%</td><td>55.6%</td><td>29.3%</td><td>56.7%</td><td>30.0%</td><td>2.4 ×10^4</td><td>42.9%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>63.1%</td><td>38.6%</td><td>60.2%</td><td>51.7%</td><td>8.7 ×10^0</td><td>53.4%</td></tr><tr><td>35%</td><td>58.5%</td><td>34.9%</td><td>55.7%</td><td>45.8%</td><td>1.0 ×10^1</td><td>48.8%</td></tr><tr><td>40%</td><td>57.9%</td><td>31.9%</td><td>54.1%</td><td>40.1%</td><td>1.2 ×10^1</td><td>46.0%</td></tr></table>",
670
+ "bbox": [
671
+ 122,
672
+ 80,
673
+ 873,
674
+ 292
675
+ ],
676
+ "page_idx": 4
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "Table 2: Comparison of our technique with ShortGPT. For each of the pruning rations of our technique, the closest pruning ratio of ShortGPT is reported. Please note that removing 9, 11, and 12 layers completely as in ShortGPT results in $28.1\\%$ , $34.3\\%$ , and $37.5\\%$ pruned ratio respectively. Bold means higher value in comparison.",
681
+ "bbox": [
682
+ 112,
683
+ 302,
684
+ 882,
685
+ 347
686
+ ],
687
+ "page_idx": 4
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "often provide lesser flexibility in pruning ratio as entire set of layers are removed. For example, removing 9 (least important) layers out of 32 layers results in a pruning ratio of $28.1\\%$ as shown in Table 2.",
692
+ "bbox": [
693
+ 112,
694
+ 370,
695
+ 487,
696
+ 449
697
+ ],
698
+ "page_idx": 4
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "As shown in Table 2, our dynamic slicing with SliceGPT outperforms ShortGPT in majority of the cases even with higher pruning ration i.e., $28.1\\%$ vs. $30\\%$ , $34.3\\%$ vs. $35\\%$ , and $37.5\\%$ vs. $40\\%$ . Especially for higher pruning ratio (i.e., $35\\%$ or $40\\%$ ), our dynamic slicing based SliceGPT approach outperforms ShortGPT with a larger margin across the four classification datasets shown in Table 2. Importantly, removing set of layers completely as in ShortGPT lead to very high perplexity values suggesting high degradation in text generation quality. On the other hand, our proposed dynamic slicing technique with SliceGPT results in exponentially better perplexity score highlighting benefits of pruning only parts of LLM layers instead of removing entire layers.",
703
+ "bbox": [
704
+ 115,
705
+ 451,
706
+ 487,
707
+ 708
708
+ ],
709
+ "page_idx": 4
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "Additionally, our variable slicing scaled from layer importance can be easily extended and merged with techniques like ShortGPT by simply removing the least important layers completely and slicing moderately important layers using our proposed approach. This hybrid method leveraging the strengths of both techniques, could potentially enhance model efficiency and performance. We leave this for exploration in future work.",
714
+ "bbox": [
715
+ 112,
716
+ 709,
717
+ 487,
718
+ 853
719
+ ],
720
+ "page_idx": 4
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "6 Conclusions",
725
+ "text_level": 1,
726
+ "bbox": [
727
+ 112,
728
+ 865,
729
+ 253,
730
+ 879
731
+ ],
732
+ "page_idx": 4
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "In conclusion, we propose a novel dynamic slicing strategy that shows considerable improvements in",
737
+ "bbox": [
738
+ 112,
739
+ 889,
740
+ 487,
741
+ 921
742
+ ],
743
+ "page_idx": 4
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "accuracy when compared against a fixed slicing method that prunes the same amount of parameters on average. We also show that layer redundancy is a powerful metric when removing percentages of layers, and also that there is room for improvement, leading to possible future work in the field.",
748
+ "bbox": [
749
+ 507,
750
+ 370,
751
+ 884,
752
+ 467
753
+ ],
754
+ "page_idx": 4
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "Limitations",
759
+ "text_level": 1,
760
+ "bbox": [
761
+ 509,
762
+ 487,
763
+ 613,
764
+ 502
765
+ ],
766
+ "page_idx": 4
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "While our study introduces significant advancements in the dynamic pruning of Large Language Models, there are several limitations that are worth discussing:",
771
+ "bbox": [
772
+ 507,
773
+ 519,
774
+ 882,
775
+ 583
776
+ ],
777
+ "page_idx": 4
778
+ },
779
+ {
780
+ "type": "list",
781
+ "sub_type": "text",
782
+ "list_items": [
783
+ "- The effectiveness of our method has been demonstrated predominantly on the Llama3-8B and Mistral-7B models. However, its performance may vary with other architectures, especially those with different layer configurations or learning dynamics.",
784
+ "- We only experiment with one method to choose the $S_B$ value (that gives lowest perplexity) and there can be other methods for estimating $S_B$ which we leave it to more focused future works.",
785
+ "- Limited computational resources have constrained our ability to test on larger models. We believe that exploring the efficacy of our dynamic pruning method on more extensive architectures could provide valuable insights into its scalability and performance."
786
+ ],
787
+ "bbox": [
788
+ 531,
789
+ 606,
790
+ 884,
791
+ 921
792
+ ],
793
+ "page_idx": 4
794
+ },
795
+ {
796
+ "type": "page_number",
797
+ "text": "9916",
798
+ "bbox": [
799
+ 480,
800
+ 927,
801
+ 519,
802
+ 940
803
+ ],
804
+ "page_idx": 4
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "Ethical Considerations",
809
+ "text_level": 1,
810
+ "bbox": [
811
+ 114,
812
+ 83,
813
+ 315,
814
+ 99
815
+ ],
816
+ "page_idx": 5
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Ethical considerations are central to our development of a dynamic pruning method for large language models. Our research strives to reduce the computational costs and environmental impact of deploying large-scale models, aligning with the ethical responsibility to promote environmental sustainability and minimize negative consequences such as excessive energy consumption. This not only makes LLMs more accessible but also supports broader societal needs by enabling more efficient processing solutions that respect both individual rights and community values. By enhancing the efficiency of these models, we may enable populations with limited computational resources to harness the power of advanced NLP tools.",
821
+ "bbox": [
822
+ 115,
823
+ 110,
824
+ 489,
825
+ 350
826
+ ],
827
+ "page_idx": 5
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "Furthermore, our methodology emphasizes the importance of using data sets that are free from harmful content. By using data sets that do not contain harmful data, we aim to ensure that the resulting models avoid biased outputs or content that could reduce their utility in practical applications. Ensuring the integrity and appropriateness of pruned models is essential, as these models often play significant roles in decision-making processes across various sectors. In this context, our approach is designed to be transparent and responsible, providing clear documentation and rigorous evaluation to maintain the reliability and fairness of the models.",
832
+ "bbox": [
833
+ 115,
834
+ 351,
835
+ 489,
836
+ 574
837
+ ],
838
+ "page_idx": 5
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Also, we have selected a color scheme that prioritizes accessibility, ensuring the visuals are clear and discernible to individuals with color vision deficiencies. This inclusive approach reflects our commitment to making our research accessible to a wider audience, including those with varying visual abilities.",
843
+ "bbox": [
844
+ 112,
845
+ 577,
846
+ 489,
847
+ 688
848
+ ],
849
+ "page_idx": 5
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "References",
854
+ "text_level": 1,
855
+ "bbox": [
856
+ 115,
857
+ 715,
858
+ 213,
859
+ 732
860
+ ],
861
+ "page_idx": 5
862
+ },
863
+ {
864
+ "type": "list",
865
+ "sub_type": "ref_text",
866
+ "list_items": [
867
+ "Hervé Abdi and Lynne J Williams. 2010. Principal component analysis. Wiley interdisciplinary reviews: computational statistics, 2(4):433-459.",
868
+ "Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman. 2024. Slicegpt: Compress large language models by deleting rows and columns. Preprint, arXiv:2401.15024.",
869
+ "Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. 2019. Piqa: Reasoning about physical commonsense in natural language. *Preprint*, arXiv:1911.11641."
870
+ ],
871
+ "bbox": [
872
+ 115,
873
+ 739,
874
+ 489,
875
+ 919
876
+ ],
877
+ "page_idx": 5
878
+ },
879
+ {
880
+ "type": "list",
881
+ "sub_type": "ref_text",
882
+ "list_items": [
883
+ "Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv:1803.05457v1.",
884
+ "Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2024. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems, 36.",
885
+ "Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. 2023. A framework for few-shot language model evaluation.",
886
+ "Andrey Gromov, Kushal Tirumala, Hassan Shapourian, Paolo Glorioso, and Daniel A. Roberts. 2024. The unreasonable ineffectiveness of the deeper layers. Preprint, arXiv:2403.17887.",
887
+ "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.",
888
+ "Torsten Hoefer, Dan Alistarh, Tal Ben-Nun, Nikoli Dryden, and Alexandra Peste. 2021. Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks. Journal of Machine Learning Research, 22(241):1-124.",
889
+ "Cheng-Yu Hsieh, Chun-Liang Li, CHIH-KUAN YEH, Hootan Nakhost, Yasuhisa Fujii, Alex Jason Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. 2023. Distilling step-by-step! outperforming larger language models with less training data and smaller model sizes. In The 61st Annual Meeting Of The Association For Computational Linguistics.",
890
+ "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.",
891
+ "Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7b. Preprint, arXiv:2310.06825.",
892
+ "Darioush Kevian, Usman Syed, Xingang Guo, Aaron Havens, Geir Dullerud, Peter Seiler, Lianhui Qin, and Bin Hu. 2024. Capabilities of large language models in control engineering: A benchmark study on gpt-4, claude 3 opus, and gemini 1.0 ultra. arXiv preprint arXiv:2404.03647."
893
+ ],
894
+ "bbox": [
895
+ 510,
896
+ 85,
897
+ 884,
898
+ 919
899
+ ],
900
+ "page_idx": 5
901
+ },
902
+ {
903
+ "type": "page_number",
904
+ "text": "9917",
905
+ "bbox": [
906
+ 480,
907
+ 927,
908
+ 519,
909
+ 940
910
+ ],
911
+ "page_idx": 5
912
+ },
913
+ {
914
+ "type": "list",
915
+ "sub_type": "ref_text",
916
+ "list_items": [
917
+ "Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue, and Furu Wei. 2024. The era of 1-bit llms: All large language models are in 1.58 bits. arXiv preprint arXiv:2402.17764.",
918
+ "Xinyin Ma, Gongfan Fang, and Xinchao Wang. 2023. Llm-pruner: On the structural pruning of large language models. Advances in neural information processing systems, 36:21702-21720.",
919
+ "Xin Men, Mingyu Xu, Qingyu Zhang, Bingning Wang, Hongyu Lin, Yaojie Lu, Xianpei Han, and Weipeng Chen. 2024. Shortgpt: Layers in large language models are more redundant than you expect. Preprint, arXiv:2403.03853.",
920
+ "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2016. Pointer sentinel mixture models. Preprint, arXiv:1609.07843.",
921
+ "Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, Chloe Hillier, and Timothy P Lillicrap. 2019. Compressive transformers for long-range sequence modelling. arXiv preprint.",
922
+ "Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2019. WINOGRANDE: an adversarial winograd schema challenge at scale. CoRR, abs/1907.10641.",
923
+ "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.",
924
+ "Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.",
925
+ "Zhongwei Wan, Xin Wang, Che Liu, Samiul Alam, Yu Zheng, Zhongnan Qu, Shen Yan, Yi Zhu, Quanlu Zhang, Mosharaf Chowdhury, et al. 2023. Efficient large language models: A survey. arXiv preprint arXiv:2312.03863.",
926
+ "Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, and Xiaofei He. 2024. Model compression and efficient inference for large language models: A survey. arXiv preprint arXiv:2402.09748.",
927
+ "Yuhui Xu, Lingxi Xie, Xiaotao Gu, Xin Chen, Heng Chang, Hengheng Zhang, Zhensu Chen, Xiaopeng Zhang, and Qi Tian. 2023. Qa-lora: Quantization-aware low-rank adaptation of large language models. arXiv preprint arXiv:2309.14717.",
928
+ "Yifei Yang, Zouying Cao, and Hai Zhao. 2024. Laco: Large language model pruning via layer collapse. arXiv preprint arXiv:2402.11187."
929
+ ],
930
+ "bbox": [
931
+ 115,
932
+ 85,
933
+ 489,
934
+ 919
935
+ ],
936
+ "page_idx": 6
937
+ },
938
+ {
939
+ "type": "list",
940
+ "sub_type": "ref_text",
941
+ "list_items": [
942
+ "Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4791-4800, Florence, Italy. Association for Computational Linguistics.",
943
+ "Xunyu Zhu, Jian Li, Yong Liu, Can Ma, and Weiping Wang. 2023. A survey on model compression for large language models. arXiv preprint arXiv:2308.07633."
944
+ ],
945
+ "bbox": [
946
+ 510,
947
+ 85,
948
+ 882,
949
+ 225
950
+ ],
951
+ "page_idx": 6
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "A Appendix",
956
+ "text_level": 1,
957
+ "bbox": [
958
+ 510,
959
+ 240,
960
+ 633,
961
+ 256
962
+ ],
963
+ "page_idx": 6
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "A.1 Experimental details",
968
+ "text_level": 1,
969
+ "bbox": [
970
+ 509,
971
+ 266,
972
+ 722,
973
+ 281
974
+ ],
975
+ "page_idx": 6
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "For all our experiments we used 4 NVIDIA A100 GPUs, with 80GB of VRAM each, and running all of the data sets on one slicing pattern using one NVIDIA A100 takes around 30 minutes, leading to a total time of 10 hours for a plot that has 20 possible $S_B$ values. We use a total of 1000 samples for each data set in all our configurations. Also, calculating the LR score can take upwards of 30-40 minutes per model on 1 NVIDIA A100 GPU, but that only has to be computed once.",
980
+ "bbox": [
981
+ 507,
982
+ 286,
983
+ 882,
984
+ 447
985
+ ],
986
+ "page_idx": 6
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "A.2 Tables with mean/median results",
991
+ "text_level": 1,
992
+ "bbox": [
993
+ 509,
994
+ 458,
995
+ 816,
996
+ 470
997
+ ],
998
+ "page_idx": 6
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "For a detailed evaluation, Table 3 compares our technique in the median setting against the constant slicing proposed by SliceGPT, and Table 4 provides a comparison in the average setting.",
1003
+ "bbox": [
1004
+ 507,
1005
+ 478,
1006
+ 882,
1007
+ 543
1008
+ ],
1009
+ "page_idx": 6
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "A.3 Llama3-8B and Mistral-7B in various scenarios",
1014
+ "text_level": 1,
1015
+ "bbox": [
1016
+ 509,
1017
+ 552,
1018
+ 853,
1019
+ 583
1020
+ ],
1021
+ "page_idx": 6
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Visual representations of our experiments are shown across several figures: Figure 3 and Figure 4 illustrate the performance of Llama3-8B with $30\\%$ and $35\\%$ of the network sliced, respectively, comparing it to the baseline accuracy achieved by SliceGPT. Similarly, Figures 5, 6, and 7 display the results for Mistral-7B with $30\\%$ , $35\\%$ , and $40\\%$ of the network sliced, again benchmarked against SliceGPT's constant slice accuracies. In each figure, the red line denotes the baseline accuracy set by SliceGPT for the respective slicing percentages.",
1026
+ "bbox": [
1027
+ 507,
1028
+ 590,
1029
+ 884,
1030
+ 766
1031
+ ],
1032
+ "page_idx": 6
1033
+ },
1034
+ {
1035
+ "type": "page_number",
1036
+ "text": "9918",
1037
+ "bbox": [
1038
+ 480,
1039
+ 928,
1040
+ 519,
1041
+ 940
1042
+ ],
1043
+ "page_idx": 6
1044
+ },
1045
+ {
1046
+ "type": "table",
1047
+ "img_path": "images/471bf15977a976b42324b6f54b839a5af73372e35ae9a9ccd1d215743a6d2b21.jpg",
1048
+ "table_caption": [],
1049
+ "table_footnote": [],
1050
+ "table_body": "<table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan=\"6\">LLaMa-3-8B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>60.5%</td><td>38.1%</td><td>57.4%</td><td>43.0%</td><td>13.07</td><td>49.7%</td></tr><tr><td>35%</td><td>58.7%</td><td>35.8%</td><td>56.2%</td><td>39.6%</td><td>15.75</td><td>47.6%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.2%</td><td>55.0%</td><td>37.2%</td><td>19.21</td><td>46.1%</td></tr><tr><td rowspan=\"6\">Mistral-7B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>62.6%</td><td>38.6%</td><td>59.5%</td><td>52.4%</td><td>8.80</td><td>53.4%</td></tr><tr><td>35%</td><td>59.2%</td><td>36.0%</td><td>56.9%</td><td>45.1%</td><td>10.42</td><td>49.3%</td></tr><tr><td>40%</td><td>57.9%</td><td>34.3%</td><td>54.1%</td><td>40.0%</td><td>12.68</td><td>46.5%</td></tr></table>",
1051
+ "bbox": [
1052
+ 114,
1053
+ 99,
1054
+ 880,
1055
+ 326
1056
+ ],
1057
+ "page_idx": 7
1058
+ },
1059
+ {
1060
+ "type": "table",
1061
+ "img_path": "images/11066ea2b30c7f3bbe7a718437b3146b22d5a3a86057ac3ce5bee07fcece0c83.jpg",
1062
+ "table_caption": [
1063
+ "Table 3: Comparison of our technique in the median setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison"
1064
+ ],
1065
+ "table_footnote": [],
1066
+ "table_body": "<table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan=\"6\">LLaMa-3-8B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>60.6%</td><td>38.0%</td><td>57.4%</td><td>43.0%</td><td>13.11</td><td>49.8%</td></tr><tr><td>35%</td><td>58.6%</td><td>35.6%</td><td>55.8%</td><td>39.7%</td><td>15.9</td><td>47.4%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.6%</td><td>37.1%</td><td>19.34</td><td>46.0%</td></tr><tr><td rowspan=\"6\">Mistral-7B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>62.6%</td><td>38.1%</td><td>59.5%</td><td>52.3%</td><td>8.81</td><td>53.1%</td></tr><tr><td>35%</td><td>59.0%</td><td>35.7%</td><td>57.0%</td><td>44.8%</td><td>10.50</td><td>49.1%</td></tr><tr><td>40%</td><td>57.8%</td><td>33.6%</td><td>54.2%</td><td>39.6%</td><td>12.76</td><td>46.3%</td></tr></table>",
1067
+ "bbox": [
1068
+ 114,
1069
+ 410,
1070
+ 880,
1071
+ 639
1072
+ ],
1073
+ "page_idx": 7
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "Table 4: Comparison of our technique in the average setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison",
1078
+ "bbox": [
1079
+ 112,
1080
+ 648,
1081
+ 882,
1082
+ 678
1083
+ ],
1084
+ "page_idx": 7
1085
+ },
1086
+ {
1087
+ "type": "image",
1088
+ "img_path": "images/c7ce30a07735fc795c3d9b7b1a2e780e20936e5c34a403e62004f25c5f6d6c1b.jpg",
1089
+ "image_caption": [
1090
+ "Figure 3: Llama3 8B with $30\\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $30\\%$ slice."
1091
+ ],
1092
+ "image_footnote": [],
1093
+ "bbox": [
1094
+ 117,
1095
+ 724,
1096
+ 272,
1097
+ 858
1098
+ ],
1099
+ "page_idx": 7
1100
+ },
1101
+ {
1102
+ "type": "image",
1103
+ "img_path": "images/7f75875b4fcaf269b606b6cf4b126977085758bfbf6a05b108f20da366097358.jpg",
1104
+ "image_caption": [],
1105
+ "image_footnote": [],
1106
+ "bbox": [
1107
+ 272,
1108
+ 724,
1109
+ 421,
1110
+ 856
1111
+ ],
1112
+ "page_idx": 7
1113
+ },
1114
+ {
1115
+ "type": "image",
1116
+ "img_path": "images/cf716b56698f78c91c2ec81fd63990e6d63773f8d120aac9ccc4c324e531cee0.jpg",
1117
+ "image_caption": [],
1118
+ "image_footnote": [],
1119
+ "bbox": [
1120
+ 423,
1121
+ 724,
1122
+ 574,
1123
+ 856
1124
+ ],
1125
+ "page_idx": 7
1126
+ },
1127
+ {
1128
+ "type": "image",
1129
+ "img_path": "images/8b5550ae69638fa756870b4e779f763307cee8c0736087ddc259572fef268495.jpg",
1130
+ "image_caption": [],
1131
+ "image_footnote": [],
1132
+ "bbox": [
1133
+ 576,
1134
+ 724,
1135
+ 724,
1136
+ 856
1137
+ ],
1138
+ "page_idx": 7
1139
+ },
1140
+ {
1141
+ "type": "image",
1142
+ "img_path": "images/a02e40a0ac2a3b9f69ff2132f53022ce238907f52477edaac5900b567833eef9.jpg",
1143
+ "image_caption": [],
1144
+ "image_footnote": [],
1145
+ "bbox": [
1146
+ 726,
1147
+ 724,
1148
+ 875,
1149
+ 856
1150
+ ],
1151
+ "page_idx": 7
1152
+ },
1153
+ {
1154
+ "type": "page_number",
1155
+ "text": "9919",
1156
+ "bbox": [
1157
+ 480,
1158
+ 928,
1159
+ 519,
1160
+ 940
1161
+ ],
1162
+ "page_idx": 7
1163
+ },
1164
+ {
1165
+ "type": "image",
1166
+ "img_path": "images/8a3aa77ad6f53a0bcf370ca4357ca0ea131c69c7145024888ac43d4aa8157ce4.jpg",
1167
+ "image_caption": [
1168
+ "Figure 4: Llama3 8B with $35\\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $35\\%$ slice."
1169
+ ],
1170
+ "image_footnote": [],
1171
+ "bbox": [
1172
+ 117,
1173
+ 97,
1174
+ 270,
1175
+ 229
1176
+ ],
1177
+ "page_idx": 8
1178
+ },
1179
+ {
1180
+ "type": "image",
1181
+ "img_path": "images/357b31bc3f7a1fe2c013785ea9d0713763ec9f30dbaf85fa205bf272957a1a82.jpg",
1182
+ "image_caption": [],
1183
+ "image_footnote": [],
1184
+ "bbox": [
1185
+ 273,
1186
+ 98,
1187
+ 421,
1188
+ 229
1189
+ ],
1190
+ "page_idx": 8
1191
+ },
1192
+ {
1193
+ "type": "image",
1194
+ "img_path": "images/4ff78da6986225802d4bb5e7d74301d17237d06e30621f0e844c294f3b14dd12.jpg",
1195
+ "image_caption": [],
1196
+ "image_footnote": [],
1197
+ "bbox": [
1198
+ 421,
1199
+ 98,
1200
+ 573,
1201
+ 229
1202
+ ],
1203
+ "page_idx": 8
1204
+ },
1205
+ {
1206
+ "type": "image",
1207
+ "img_path": "images/165098b0b36ded66ab426537fdccda6a37caf52e8c39fcb30390b210c3d47c1b.jpg",
1208
+ "image_caption": [],
1209
+ "image_footnote": [],
1210
+ "bbox": [
1211
+ 574,
1212
+ 98,
1213
+ 724,
1214
+ 229
1215
+ ],
1216
+ "page_idx": 8
1217
+ },
1218
+ {
1219
+ "type": "image",
1220
+ "img_path": "images/4550a78f83a74eaf84a265b88a86acea7c5c0a57274b86f51f3a4b4db3486ef3.jpg",
1221
+ "image_caption": [],
1222
+ "image_footnote": [],
1223
+ "bbox": [
1224
+ 726,
1225
+ 98,
1226
+ 875,
1227
+ 229
1228
+ ],
1229
+ "page_idx": 8
1230
+ },
1231
+ {
1232
+ "type": "image",
1233
+ "img_path": "images/853b7cc23a0b15ce1ca63f95624345e11259924c35fdabbd9acee1be6d229e44.jpg",
1234
+ "image_caption": [
1235
+ "Figure 5: Mistral 7B with $30\\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $30\\%$ slice."
1236
+ ],
1237
+ "image_footnote": [],
1238
+ "bbox": [
1239
+ 117,
1240
+ 307,
1241
+ 272,
1242
+ 439
1243
+ ],
1244
+ "page_idx": 8
1245
+ },
1246
+ {
1247
+ "type": "image",
1248
+ "img_path": "images/6324f4b08442d619869abfef0e6dad3eac6db108d0c15d4e8d91995996d8c10d.jpg",
1249
+ "image_caption": [],
1250
+ "image_footnote": [],
1251
+ "bbox": [
1252
+ 273,
1253
+ 307,
1254
+ 421,
1255
+ 439
1256
+ ],
1257
+ "page_idx": 8
1258
+ },
1259
+ {
1260
+ "type": "image",
1261
+ "img_path": "images/8b10f27a355cc5ad168842ef83afa013641c63a73b3fcb353c9fd1ad3d8dfa4d.jpg",
1262
+ "image_caption": [],
1263
+ "image_footnote": [],
1264
+ "bbox": [
1265
+ 421,
1266
+ 307,
1267
+ 573,
1268
+ 439
1269
+ ],
1270
+ "page_idx": 8
1271
+ },
1272
+ {
1273
+ "type": "image",
1274
+ "img_path": "images/26582c169bb637e3ea1bb74fc276838f9008b5ededa40bb329b6b2d7232eaf49.jpg",
1275
+ "image_caption": [],
1276
+ "image_footnote": [],
1277
+ "bbox": [
1278
+ 574,
1279
+ 307,
1280
+ 724,
1281
+ 439
1282
+ ],
1283
+ "page_idx": 8
1284
+ },
1285
+ {
1286
+ "type": "image",
1287
+ "img_path": "images/efccffd827912cba07802e31b9fb50dd8473dd094616490ae38336bb48cb5b93.jpg",
1288
+ "image_caption": [],
1289
+ "image_footnote": [],
1290
+ "bbox": [
1291
+ 726,
1292
+ 307,
1293
+ 875,
1294
+ 439
1295
+ ],
1296
+ "page_idx": 8
1297
+ },
1298
+ {
1299
+ "type": "image",
1300
+ "img_path": "images/c98d9ccd9d245673a5f556bd1f90023592709981b1fb5beac56c75aa57f2ab04.jpg",
1301
+ "image_caption": [
1302
+ "Figure 6: Mistral 7B with $35\\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $35\\%$ slice."
1303
+ ],
1304
+ "image_footnote": [],
1305
+ "bbox": [
1306
+ 117,
1307
+ 518,
1308
+ 272,
1309
+ 650
1310
+ ],
1311
+ "page_idx": 8
1312
+ },
1313
+ {
1314
+ "type": "image",
1315
+ "img_path": "images/291e329854cb7b5202c87bbbf82096d5a6204bd00383ef46ad3b2c9633d8bcf0.jpg",
1316
+ "image_caption": [],
1317
+ "image_footnote": [],
1318
+ "bbox": [
1319
+ 273,
1320
+ 519,
1321
+ 421,
1322
+ 650
1323
+ ],
1324
+ "page_idx": 8
1325
+ },
1326
+ {
1327
+ "type": "image",
1328
+ "img_path": "images/3d1b96ee5ff0bd4e74c81bfc1eea93ba3fe2b2c16daf728982fbafad7de74884.jpg",
1329
+ "image_caption": [],
1330
+ "image_footnote": [],
1331
+ "bbox": [
1332
+ 421,
1333
+ 519,
1334
+ 573,
1335
+ 650
1336
+ ],
1337
+ "page_idx": 8
1338
+ },
1339
+ {
1340
+ "type": "image",
1341
+ "img_path": "images/b4f8ee74ead9b1114904764e49c6d19e2a51aa43fb913d0686e2b482901c62e7.jpg",
1342
+ "image_caption": [],
1343
+ "image_footnote": [],
1344
+ "bbox": [
1345
+ 574,
1346
+ 519,
1347
+ 724,
1348
+ 650
1349
+ ],
1350
+ "page_idx": 8
1351
+ },
1352
+ {
1353
+ "type": "image",
1354
+ "img_path": "images/27ed876a57e6a686f3d28300611f69804aec939e7c5951c5b5fef96b888edd7d.jpg",
1355
+ "image_caption": [],
1356
+ "image_footnote": [],
1357
+ "bbox": [
1358
+ 726,
1359
+ 519,
1360
+ 875,
1361
+ 650
1362
+ ],
1363
+ "page_idx": 8
1364
+ },
1365
+ {
1366
+ "type": "image",
1367
+ "img_path": "images/f4a08be91aae61b39a579ee3970083b28f6cf060c646645def2314db2a13dccf.jpg",
1368
+ "image_caption": [
1369
+ "Figure 7: Mistral 7B with $40\\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $40\\%$ slice."
1370
+ ],
1371
+ "image_footnote": [],
1372
+ "bbox": [
1373
+ 117,
1374
+ 730,
1375
+ 272,
1376
+ 860
1377
+ ],
1378
+ "page_idx": 8
1379
+ },
1380
+ {
1381
+ "type": "image",
1382
+ "img_path": "images/f6b34db49d60cfcb2e29ca52dfa142cf0887bb0a49c745a29743ec03912e2ff9.jpg",
1383
+ "image_caption": [],
1384
+ "image_footnote": [],
1385
+ "bbox": [
1386
+ 273,
1387
+ 730,
1388
+ 421,
1389
+ 860
1390
+ ],
1391
+ "page_idx": 8
1392
+ },
1393
+ {
1394
+ "type": "image",
1395
+ "img_path": "images/82409697577992dc44ab4bf8c40d79056afcddfe127b7af1cb4a747536c5d037.jpg",
1396
+ "image_caption": [],
1397
+ "image_footnote": [],
1398
+ "bbox": [
1399
+ 421,
1400
+ 730,
1401
+ 573,
1402
+ 860
1403
+ ],
1404
+ "page_idx": 8
1405
+ },
1406
+ {
1407
+ "type": "image",
1408
+ "img_path": "images/9806205095e848e4fa73ffc243c2e4cb753b39763e3fcf2ca29b3de8421fc106.jpg",
1409
+ "image_caption": [],
1410
+ "image_footnote": [],
1411
+ "bbox": [
1412
+ 574,
1413
+ 730,
1414
+ 724,
1415
+ 860
1416
+ ],
1417
+ "page_idx": 8
1418
+ },
1419
+ {
1420
+ "type": "image",
1421
+ "img_path": "images/1965bc8153649cec67894520a44977576833aa6559e3083f84a3047b2e65e55d.jpg",
1422
+ "image_caption": [],
1423
+ "image_footnote": [],
1424
+ "bbox": [
1425
+ 726,
1426
+ 730,
1427
+ 875,
1428
+ 860
1429
+ ],
1430
+ "page_idx": 8
1431
+ },
1432
+ {
1433
+ "type": "page_number",
1434
+ "text": "9920",
1435
+ "bbox": [
1436
+ 480,
1437
+ 927,
1438
+ 521,
1439
+ 940
1440
+ ],
1441
+ "page_idx": 8
1442
+ }
1443
+ ]
2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/08dc98ee-6735-489e-8bdc-21704eaecbb3_model.json ADDED
@@ -0,0 +1,1758 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ [
3
+ {
4
+ "type": "title",
5
+ "bbox": [
6
+ 0.145,
7
+ 0.09,
8
+ 0.856,
9
+ 0.131
10
+ ],
11
+ "angle": 0,
12
+ "content": "Change Is the Only Constant: Dynamic LLM Slicing based on Layer Redundancy"
13
+ },
14
+ {
15
+ "type": "text",
16
+ "bbox": [
17
+ 0.16,
18
+ 0.146,
19
+ 0.844,
20
+ 0.179
21
+ ],
22
+ "angle": 0,
23
+ "content": "Razvan-Gabriel Dumitru<sup>1</sup>, Paul-Ioan Clotan<sup>2</sup>, Vikas Yadav<sup>3</sup>, Darius Peteleaza<sup>4</sup>, Mihai Surdeanu<sup>1</sup>"
24
+ },
25
+ {
26
+ "type": "text",
27
+ "bbox": [
28
+ 0.235,
29
+ 0.18,
30
+ 0.762,
31
+ 0.197
32
+ ],
33
+ "angle": 0,
34
+ "content": "<sup>1</sup>University of Arizona, <sup>2</sup>Università di Bologna, <sup>3</sup>ServiceNow AI,"
35
+ },
36
+ {
37
+ "type": "text",
38
+ "bbox": [
39
+ 0.361,
40
+ 0.198,
41
+ 0.637,
42
+ 0.214
43
+ ],
44
+ "angle": 0,
45
+ "content": "<sup>4</sup>University Lucian Blaga of Sibiu"
46
+ },
47
+ {
48
+ "type": "text",
49
+ "bbox": [
50
+ 0.362,
51
+ 0.217,
52
+ 0.636,
53
+ 0.23
54
+ ],
55
+ "angle": 0,
56
+ "content": "Correspondence:razvandumm@gmail.com"
57
+ },
58
+ {
59
+ "type": "title",
60
+ "bbox": [
61
+ 0.261,
62
+ 0.261,
63
+ 0.341,
64
+ 0.277
65
+ ],
66
+ "angle": 0,
67
+ "content": "Abstract"
68
+ },
69
+ {
70
+ "type": "text",
71
+ "bbox": [
72
+ 0.145,
73
+ 0.286,
74
+ 0.46,
75
+ 0.727
76
+ ],
77
+ "angle": 0,
78
+ "content": "This paper introduces a novel model compression approach through dynamic layer-specific pruning in Large Language Models (LLMs), enhancing the traditional methodology established by SliceGPT. By transitioning from constant to dynamic slicing, our method leverages the newly proposed Layer Redundancy (LR) score, which assesses how much change each layer changes its input by measuring the cosine similarity of the input to the output of the layer. We use this score to prune parts of individual layers based on redundancy in such a way that the average pruned percentage for all layers is a fixed value. We conducted extensive experiments using models like Llama3-8B and Mistral-7B on multiple datasets, evaluating different slicing bases and percentages to determine optimal configurations that balance efficiency and performance. Our findings show that our dynamic slicing approach not only maintains but, in many cases, enhances model performance compared to the baseline established by constant slicing methods. For instance, in several settings, we see performance improvements of up to \\(5\\%\\) over the SliceGPT baseline. Additionally, a perplexity decrease by as much as \\(7\\%\\) was observed across multiple benchmarks, validating the effectiveness of our method. The code, model weights, and datasets are open-sourced at https://github.com/RazvanDu/DynamicSlicing."
79
+ },
80
+ {
81
+ "type": "title",
82
+ "bbox": [
83
+ 0.115,
84
+ 0.736,
85
+ 0.26,
86
+ 0.751
87
+ ],
88
+ "angle": 0,
89
+ "content": "1 Introduction"
90
+ },
91
+ {
92
+ "type": "text",
93
+ "bbox": [
94
+ 0.113,
95
+ 0.761,
96
+ 0.49,
97
+ 0.922
98
+ ],
99
+ "angle": 0,
100
+ "content": "Large Language Models (LLMs), characterized by their massive scale, often consist of billions to trillions of parameters, enabling them to perform a wide range of complex tasks with remarkable proficiency (Kevian et al., 2024; Touvron et al., 2023; Team et al., 2023; Jiang et al., 2023). However, the deployment of these models poses significant challenges, primarily due to the extensive computational resources requirements. As the scale of these models grows, so does the urgency to develop more"
101
+ },
102
+ {
103
+ "type": "text",
104
+ "bbox": [
105
+ 0.508,
106
+ 0.262,
107
+ 0.885,
108
+ 0.406
109
+ ],
110
+ "angle": 0,
111
+ "content": "efficient methods for their deployment. This has led to increased interest in model compression techniques that aim to reduce the computational burden without substantially sacrificing performance. Techniques such as knowledge distillation, quantization, or pruning variants have emerged as viable solutions (Wan et al., 2023), each offering a different approach to streamlining model architecture and operations (Wang et al., 2024)."
112
+ },
113
+ {
114
+ "type": "text",
115
+ "bbox": [
116
+ 0.508,
117
+ 0.407,
118
+ 0.885,
119
+ 0.647
120
+ ],
121
+ "angle": 0,
122
+ "content": "In this paper, we improve the work on model pruning introduced by SliceGPT (Ashkboos et al., 2024), a pruning technique via a constant slicing percentage of each layer. While this approach reduces computational demands and maintains a level of performance, it does not account for the varying significance of different layers within the network. We propose a more nuanced, dynamic pruning method that adapts the degree of pruning based on the individual characteristics and contributions of each layer. Our method aims to optimize both the efficiency and the efficacy of the pruning process by preserving more functionality in critical areas of the model, leading to better performance and less degradation in tasks."
123
+ },
124
+ {
125
+ "type": "text",
126
+ "bbox": [
127
+ 0.508,
128
+ 0.649,
129
+ 0.885,
130
+ 0.922
131
+ ],
132
+ "angle": 0,
133
+ "content": "More specifically, we develop a new metric, namely Layer Redundancy (LR) score, to quantify the impact of each layer on the model's overall performance. This evaluation is essential, as it guides the order in which layers are pruned, ensuring that the most influential layers are preserved while less critical layers are removed. Our approach involves generating slicing functions tailored to the importance of each layer, allowing for a dynamic and informed pruning strategy. Our results from the extensive empirical studies across various datasets and base models show a substantial improvement in model accuracy across all datasets tested, accompanied by a notable reduction in perplexity. In order to thoroughly evaluate the effectiveness of our proposed dynamic slicing pattern, we also analyzed the median accuracy and perplexity across"
134
+ },
135
+ {
136
+ "type": "page_number",
137
+ "bbox": [
138
+ 0.48,
139
+ 0.928,
140
+ 0.521,
141
+ 0.941
142
+ ],
143
+ "angle": 0,
144
+ "content": "9912"
145
+ },
146
+ {
147
+ "type": "footer",
148
+ "bbox": [
149
+ 0.218,
150
+ 0.946,
151
+ 0.781,
152
+ 0.973
153
+ ],
154
+ "angle": 0,
155
+ "content": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 9912-9920 November 12-16, 2024 ©2024 Association for Computational Linguistics"
156
+ }
157
+ ],
158
+ [
159
+ {
160
+ "type": "text",
161
+ "bbox": [
162
+ 0.113,
163
+ 0.085,
164
+ 0.488,
165
+ 0.132
166
+ ],
167
+ "angle": 0,
168
+ "content": "a range of models. The results consistently show the superiority of our method over conventional constant slicing techniques."
169
+ },
170
+ {
171
+ "type": "text",
172
+ "bbox": [
173
+ 0.132,
174
+ 0.134,
175
+ 0.435,
176
+ 0.149
177
+ ],
178
+ "angle": 0,
179
+ "content": "The main contributions of our paper are:"
180
+ },
181
+ {
182
+ "type": "text",
183
+ "bbox": [
184
+ 0.114,
185
+ 0.158,
186
+ 0.486,
187
+ 0.205
188
+ ],
189
+ "angle": 0,
190
+ "content": "- We showed that dynamic, adaptive layer pruning can significantly improve computational efficiency without compromising model performance."
191
+ },
192
+ {
193
+ "type": "text",
194
+ "bbox": [
195
+ 0.114,
196
+ 0.216,
197
+ 0.488,
198
+ 0.263
199
+ ],
200
+ "angle": 0,
201
+ "content": "- The introduction of the Layer Redundancy score, a new metric to evaluate and guide the dynamic pruning of layers in LLMs."
202
+ },
203
+ {
204
+ "type": "text",
205
+ "bbox": [
206
+ 0.114,
207
+ 0.275,
208
+ 0.489,
209
+ 0.338
210
+ ],
211
+ "angle": 0,
212
+ "content": "- Extensive empirical validation shows that our method outperforms static pruning techniques in terms of both accuracy and perplexity across various settings."
213
+ },
214
+ {
215
+ "type": "list",
216
+ "bbox": [
217
+ 0.114,
218
+ 0.158,
219
+ 0.489,
220
+ 0.338
221
+ ],
222
+ "angle": 0,
223
+ "content": null
224
+ },
225
+ {
226
+ "type": "title",
227
+ "bbox": [
228
+ 0.115,
229
+ 0.35,
230
+ 0.271,
231
+ 0.365
232
+ ],
233
+ "angle": 0,
234
+ "content": "2 Related Work"
235
+ },
236
+ {
237
+ "type": "text",
238
+ "bbox": [
239
+ 0.113,
240
+ 0.375,
241
+ 0.489,
242
+ 0.566
243
+ ],
244
+ "angle": 0,
245
+ "content": "Recent advancements in model compression techniques (Hoefler et al., 2021; Zhu et al., 2023) have markedly improved the efficiency of deploying LLMs while striving to retain their performance. The field has seen a variety of approaches including knowledge distillation (Hinton et al., 2015; Hsieh et al., 2023), quantization (Ma et al., 2024), pruning (Ma et al., 2023; Yang et al., 2024), low-rank adaptation (Hu et al., 2021) or hybrid variants (Xu et al., 2023; Dettmers et al., 2024), each designed to address the growing computational and memory requirements of these models."
246
+ },
247
+ {
248
+ "type": "text",
249
+ "bbox": [
250
+ 0.113,
251
+ 0.568,
252
+ 0.489,
253
+ 0.824
254
+ ],
255
+ "angle": 0,
256
+ "content": "Innovative approaches such as LLM-Pruner (Ma et al., 2023) and LaCo (Layer Collapse) (Yang et al., 2024) offer novel perspectives on model pruning. LLM-Pruner focuses on structured pruning by identifying and removing dependency groups within the model, aiming to minimize dependency on the original training corpus while preserving linguistic capabilities. Similarly, LaCo presents a layer-wise pruning strategy where subsequent layers collapse into preceding ones, achieving notable size reduction while maintaining good performance. A third approach (Gromov et al., 2024) explores the potential of simple layer-pruning strategies combined with parameter-efficient finetuning (PEFT), demonstrating minimal performance loss even when half of the model's layers are removed."
257
+ },
258
+ {
259
+ "type": "text",
260
+ "bbox": [
261
+ 0.113,
262
+ 0.826,
263
+ 0.489,
264
+ 0.922
265
+ ],
266
+ "angle": 0,
267
+ "content": "Among the innovative strategies in LLM optimization, SliceGPT (Ashkboos et al., 2024) emerges as a significant breakthrough in model compression. Developed to address the intensive computational and memory demands of deploying LLMs, SliceGPT employs a unique post-training"
268
+ },
269
+ {
270
+ "type": "text",
271
+ "bbox": [
272
+ 0.508,
273
+ 0.085,
274
+ 0.885,
275
+ 0.295
276
+ ],
277
+ "angle": 0,
278
+ "content": "sparsification technique. Although effective in practice, previous research has illustrated that the order in which layers are removed plays a critical role in model performance (Gromov et al., 2024; Men et al., 2024). This insight led us to explore variable slicing percentages across different layers, challenging the constant slice for all layers. Initial attempts by the creators of SliceGPT to implement this through spectral analysis of layers did not yield a reliable method for determining the optimal percentage to be removed from each layer, as spectral analysis only tells part of the story and doesn't correlate with how much can be sliced out of a layer."
279
+ },
280
+ {
281
+ "type": "title",
282
+ "bbox": [
283
+ 0.509,
284
+ 0.306,
285
+ 0.613,
286
+ 0.32
287
+ ],
288
+ "angle": 0,
289
+ "content": "3 Method"
290
+ },
291
+ {
292
+ "type": "title",
293
+ "bbox": [
294
+ 0.509,
295
+ 0.332,
296
+ 0.627,
297
+ 0.345
298
+ ],
299
+ "angle": 0,
300
+ "content": "3.1 LR score"
301
+ },
302
+ {
303
+ "type": "text",
304
+ "bbox": [
305
+ 0.508,
306
+ 0.352,
307
+ 0.884,
308
+ 0.464
309
+ ],
310
+ "angle": 0,
311
+ "content": "Building on concepts introduced in a recent, unpublished study (Men et al., 2024), we propose a novel metric for assessing layer usefulness. This metric quantifies the extent to which each layer modifies its input by measuring the cosine similarity between the input and output. Specifically, we define this as the Layer Redundancy (LR) score:"
312
+ },
313
+ {
314
+ "type": "equation",
315
+ "bbox": [
316
+ 0.608,
317
+ 0.476,
318
+ 0.883,
319
+ 0.514
320
+ ],
321
+ "angle": 0,
322
+ "content": "\\[\nL R \\left(\\mathbf {L} _ {\\mathbf {i}}\\right) = \\frac {\\mathbf {L} _ {\\mathbf {i}} ^ {\\mathbf {I}} \\cdot \\mathbf {L} _ {\\mathbf {i}} ^ {\\mathbf {O}}}{\\| \\mathbf {L} _ {\\mathbf {i}} ^ {\\mathbf {I}} \\| \\| \\mathbf {L} _ {\\mathbf {i}} ^ {\\mathbf {O}} \\|} \\tag {1}\n\\]"
323
+ },
324
+ {
325
+ "type": "text",
326
+ "bbox": [
327
+ 0.508,
328
+ 0.52,
329
+ 0.884,
330
+ 0.858
331
+ ],
332
+ "angle": 0,
333
+ "content": "In Eq 1 \\(\\mathbf{L_i^I}\\) refers to the input of layer, while \\(\\mathbf{L_i^O}\\) refers to the output of layer. Intuitively, the higher cosine similarity between inputs and outputs leads to higher LR score, implying that the layer is more redundant. To evaluate the score for all layers, we use the full validation set of the PG-19 data set (Rae et al., 2019), we pass the data as context through the LLMs and we sum up how much each layer processed its input according to the cosine similarity score. At the end we normalize the values linearly so that the min \\((LR(\\mathbf{L_i})) = 0\\) and max \\((LR(\\mathbf{L_i})) = 1\\), guaranteeing that they range from 0 to 1. Intuitively, a LR score closer to 0 corresponds to lesser redundancy while higher LR score (close to 1) would mean high redundancy. To the best of our knowledge, our work is the first one to use a per layer importance/redundancy score to prune variable parts of layers out (explained in the following section), instead of removing whole layers or removing a fixed constant portion of the layer (Men et al., 2024)."
334
+ },
335
+ {
336
+ "type": "title",
337
+ "bbox": [
338
+ 0.509,
339
+ 0.87,
340
+ 0.803,
341
+ 0.884
342
+ ],
343
+ "angle": 0,
344
+ "content": "3.2 Defining a per-layer percentage"
345
+ },
346
+ {
347
+ "type": "text",
348
+ "bbox": [
349
+ 0.508,
350
+ 0.89,
351
+ 0.882,
352
+ 0.922
353
+ ],
354
+ "angle": 0,
355
+ "content": "Our goal is to have a function that slices variable sized parts of each layers based on their LR score"
356
+ },
357
+ {
358
+ "type": "page_number",
359
+ "bbox": [
360
+ 0.481,
361
+ 0.928,
362
+ 0.521,
363
+ 0.941
364
+ ],
365
+ "angle": 0,
366
+ "content": "9913"
367
+ }
368
+ ],
369
+ [
370
+ {
371
+ "type": "image",
372
+ "bbox": [
373
+ 0.115,
374
+ 0.08,
375
+ 0.359,
376
+ 0.224
377
+ ],
378
+ "angle": 0,
379
+ "content": null
380
+ },
381
+ {
382
+ "type": "image",
383
+ "bbox": [
384
+ 0.365,
385
+ 0.081,
386
+ 0.657,
387
+ 0.223
388
+ ],
389
+ "angle": 0,
390
+ "content": null
391
+ },
392
+ {
393
+ "type": "image",
394
+ "bbox": [
395
+ 0.662,
396
+ 0.081,
397
+ 0.882,
398
+ 0.223
399
+ ],
400
+ "angle": 0,
401
+ "content": null
402
+ },
403
+ {
404
+ "type": "image_caption",
405
+ "bbox": [
406
+ 0.113,
407
+ 0.234,
408
+ 0.882,
409
+ 0.276
410
+ ],
411
+ "angle": 0,
412
+ "content": "Figure 1: Example of the Layer Redundancy (LR) score as well as the transformations used to achieve a slice percentage of \\(30\\%\\) (\\(S_P = 0.3\\)) with a base slice for all layers of \\(10\\%\\) (\\(S_B = 0.1\\)). The example is shown for the 32 layers of llama3-8B."
413
+ },
414
+ {
415
+ "type": "text",
416
+ "bbox": [
417
+ 0.112,
418
+ 0.302,
419
+ 0.489,
420
+ 0.463
421
+ ],
422
+ "angle": 0,
423
+ "content": "while keeping the overall average of sliced out parts acorrss all layers to be a fixed percentage of the LLM parameters specified by the user. For example, layers with higher LR values (or redundancy) can be sliced more compared to layers with lower LR score (or redundancy). To achieve this, we applied several transformations on the previously defined LR score such that we have control over how big of an impact we want the redundancy to have on the sliced percentage."
424
+ },
425
+ {
426
+ "type": "text",
427
+ "bbox": [
428
+ 0.113,
429
+ 0.464,
430
+ 0.49,
431
+ 0.803
432
+ ],
433
+ "angle": 0,
434
+ "content": "The first step is to control the average of the \\( LR \\) score so that we can then control the average pruned percentage of the LLM. Concretely, we denote the average desired slicing percentage as \\( S_P \\) (Slice Percentage). In order to investigate what happens as we go further away from a constant slice for each layer, we will also define \\( S_B \\) (Slice Base) to be a fixed constant value that will be guaranteed to be sliced from each layer such that \\( S_B < = S_P \\). As \\( S_B = S_P \\), the slicing becomes constant as presented by Ashkboos et al. (2024). We experimented with different values of \\( S_B \\) to see the effect of layer redundancy on the LLM's performance. The next step is to scale the \\( LR \\) function so that its average is \\( S_P - S_B \\), thus once we add the base percentage for each layer \\( (S_B) \\) the total average will be \\( S_P - S_B + S_B = S_P \\). This can be achieved by multiplying each \\( LR_i \\) value by the ratio of \\( S_P - S_B \\) divided by the mean of the function. This is denoted as Slice per Layer Redundancy (SLR) and shown in Eq 2."
435
+ },
436
+ {
437
+ "type": "equation",
438
+ "bbox": [
439
+ 0.181,
440
+ 0.815,
441
+ 0.488,
442
+ 0.852
443
+ ],
444
+ "angle": 0,
445
+ "content": "\\[\nS L R \\left(\\mathbf {L} _ {\\mathbf {i}}\\right) = \\mathrm {L R} _ {i} \\cdot \\frac {S _ {P} - S _ {B}}{\\frac {1}{n} \\sum_ {i = 1} ^ {n} \\mathrm {L R} _ {i}} \\tag {2}\n\\]"
446
+ },
447
+ {
448
+ "type": "text",
449
+ "bbox": [
450
+ 0.114,
451
+ 0.858,
452
+ 0.489,
453
+ 0.89
454
+ ],
455
+ "angle": 0,
456
+ "content": "At the end, the Final Slice \\((FS)\\) for the layer \\(\\mathbf{L_i}\\), is the sum of \\(SLR\\) and \\(S_B\\) as shown in Eq 3."
457
+ },
458
+ {
459
+ "type": "equation",
460
+ "bbox": [
461
+ 0.198,
462
+ 0.905,
463
+ 0.488,
464
+ 0.922
465
+ ],
466
+ "angle": 0,
467
+ "content": "\\[\nF S \\left(\\mathbf {L} _ {\\mathbf {i}}\\right) = S L R \\left(\\mathbf {L} _ {\\mathbf {i}}\\right) + S _ {B} \\tag {3}\n\\]"
468
+ },
469
+ {
470
+ "type": "text",
471
+ "bbox": [
472
+ 0.509,
473
+ 0.302,
474
+ 0.882,
475
+ 0.334
476
+ ],
477
+ "angle": 0,
478
+ "content": "Average of \\( FS \\) for all \\( n \\) layers of a LLM is equal to \\( S_P \\) as shown in eq. (4)."
479
+ },
480
+ {
481
+ "type": "equation",
482
+ "bbox": [
483
+ 0.616,
484
+ 0.342,
485
+ 0.882,
486
+ 0.375
487
+ ],
488
+ "angle": 0,
489
+ "content": "\\[\n\\frac {\\sum_ {i = 1} ^ {n} F S \\left(\\mathbf {L} _ {\\mathbf {i}}\\right)}{n} = S _ {P} \\tag {4}\n\\]"
490
+ },
491
+ {
492
+ "type": "title",
493
+ "bbox": [
494
+ 0.509,
495
+ 0.382,
496
+ 0.726,
497
+ 0.398
498
+ ],
499
+ "angle": 0,
500
+ "content": "3.3 Slicing parts of layers"
501
+ },
502
+ {
503
+ "type": "text",
504
+ "bbox": [
505
+ 0.507,
506
+ 0.403,
507
+ 0.884,
508
+ 0.612
509
+ ],
510
+ "angle": 0,
511
+ "content": "The methodology in SliceGPT utilizes a specialized version of Principal Component Analysis (PCA) (Abdi and Williams, 2010) for efficient data reduction. It projects the data matrix \\(X\\) onto a lower-dimensional subspace using the eigenvectors \\(Q\\) and a deletion matrix \\(D\\). The reduced matrix \\(Z\\) is computed as \\(XQD\\), where \\(D\\) selectively omits certain components from \\(Q\\), resulting in a compressed representation \\(Z\\). The approximate reconstruction \\(\\tilde{X}\\) is obtained by \\(ZD^T Q^T\\), minimizing the reconstruction error \\(\\| \\mathbf{X} - \\tilde{\\mathbf{X}} \\|^2\\). Unlike SliceGPT, we control the dimension of the matrix \\(D\\) on a per-layer basis to achieve our dynamic slice."
512
+ },
513
+ {
514
+ "type": "title",
515
+ "bbox": [
516
+ 0.509,
517
+ 0.623,
518
+ 0.656,
519
+ 0.64
520
+ ],
521
+ "angle": 0,
522
+ "content": "4 Experiments"
523
+ },
524
+ {
525
+ "type": "text",
526
+ "bbox": [
527
+ 0.507,
528
+ 0.648,
529
+ 0.884,
530
+ 0.809
531
+ ],
532
+ "angle": 0,
533
+ "content": "The first step of the process is to evaluate how redundant each one of the layers is using the procedure described above. We have done this for Llama3-8B and Mistral-7B (Jiang et al., 2023) using the full validation split of the pg-19 data-set (Rae et al., 2019). This will give us a \\( LR \\) score for each layer that we then need to process into a slicing pattern. Figure 1 shows an example of a slicing pattern evaluation process for Llama3-8B having a target \\( S_P \\) of \\( 30\\% \\) and a \\( S_B \\) of \\( 10\\% \\)."
534
+ },
535
+ {
536
+ "type": "text",
537
+ "bbox": [
538
+ 0.508,
539
+ 0.81,
540
+ 0.884,
541
+ 0.922
542
+ ],
543
+ "angle": 0,
544
+ "content": "Furthermore, we evaluate Llama3-8B and Mistral-7B using different Slice Base \\((S_B)\\) values in increments of \\(2\\%\\). Intuitively as we decrease the base percentage of the layers we have more extreme slicing patterns. In all our experiments we compare with the constant slice as a baseline. We experiment with Slice Percentages \\((S_P)\\) of \\(30\\%\\), \\(35\\%\\),"
545
+ },
546
+ {
547
+ "type": "page_number",
548
+ "bbox": [
549
+ 0.481,
550
+ 0.928,
551
+ 0.521,
552
+ 0.941
553
+ ],
554
+ "angle": 0,
555
+ "content": "9914"
556
+ }
557
+ ],
558
+ [
559
+ {
560
+ "type": "table",
561
+ "bbox": [
562
+ 0.124,
563
+ 0.082,
564
+ 0.878,
565
+ 0.284
566
+ ],
567
+ "angle": 0,
568
+ "content": "<table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Acc. (↑)</td></tr><tr><td rowspan=\"6\">Llama 3-8B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>60.4%</td><td>38.4%</td><td>58.0%</td><td>42.4%</td><td>12.96</td><td>49.8%</td></tr><tr><td>35%</td><td>58.4%</td><td>36.3%</td><td>57.2%</td><td>39.3%</td><td>15.64</td><td>47.8%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.4%</td><td>36.8%</td><td>19.11</td><td>45.8%</td></tr><tr><td rowspan=\"6\">Mistral-7B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>63.1%</td><td>38.6%</td><td>60.2%</td><td>51.7%</td><td>8.76</td><td>53.4%</td></tr><tr><td>35%</td><td>58.5%</td><td>34.9%</td><td>55.7%</td><td>45.8%</td><td>10.38</td><td>48.8%</td></tr><tr><td>40%</td><td>57.9%</td><td>31.9%</td><td>54.1%</td><td>40.1%</td><td>12.62</td><td>46.0%</td></tr></table>"
569
+ },
570
+ {
571
+ "type": "table_caption",
572
+ "bbox": [
573
+ 0.113,
574
+ 0.293,
575
+ 0.883,
576
+ 0.325
577
+ ],
578
+ "angle": 0,
579
+ "content": "Table 1: Comparison of our technique in the smallest perplexity setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison"
580
+ },
581
+ {
582
+ "type": "image",
583
+ "bbox": [
584
+ 0.119,
585
+ 0.338,
586
+ 0.88,
587
+ 0.472
588
+ ],
589
+ "angle": 0,
590
+ "content": null
591
+ },
592
+ {
593
+ "type": "image_caption",
594
+ "bbox": [
595
+ 0.113,
596
+ 0.482,
597
+ 0.884,
598
+ 0.512
599
+ ],
600
+ "angle": 0,
601
+ "content": "Figure 2: Llama3-8B with \\(40\\%\\) of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant \\(40\\%\\) slice."
602
+ },
603
+ {
604
+ "type": "text",
605
+ "bbox": [
606
+ 0.113,
607
+ 0.537,
608
+ 0.49,
609
+ 0.668
610
+ ],
611
+ "angle": 0,
612
+ "content": "\\(40\\%\\), these representing the percentage of the LLM that we prune. For evaluations, we use: Piqa (Bisk et al., 2019), Hellaswag (Zellers et al., 2019), Winogrande (Sakaguchi et al., 2019), Arc Easy (Clark et al., 2018), and Wikitextv2 (Merit et al., 2016) within the library lm-evaluation-harness (Gao et al., 2023). For more experimental details, please refer to Section A.1 in the Appendix."
613
+ },
614
+ {
615
+ "type": "title",
616
+ "bbox": [
617
+ 0.114,
618
+ 0.683,
619
+ 0.214,
620
+ 0.699
621
+ ],
622
+ "angle": 0,
623
+ "content": "5 Results"
624
+ },
625
+ {
626
+ "type": "text",
627
+ "bbox": [
628
+ 0.113,
629
+ 0.712,
630
+ 0.49,
631
+ 0.922
632
+ ],
633
+ "angle": 0,
634
+ "content": "We will first explore how the accuracy is affected by our dynamic slicing. Figure 2 (presented above), and Figures 3, 4, 5, 6, 7 (presented in Appendix) show the behaviors of Llama3-8b and Mistral-7b on \\(30\\%\\), \\(35\\%\\), \\(40\\%\\) pruned percentage with respect to the accuracy on four data sets and perplexity on Wikitextv2. As observed in Figure 2, for the Llama3-8B model, the accuracy is improved across all of the 5 evaluated datasets, and the perplexity decreases by as much as 1.4 while pruning the exact same amount from the model. We also see huge accuracy improvements from \\(52\\%\\) to \\(57\\%\\) on Winogrande which has a baseline accuracy of"
635
+ },
636
+ {
637
+ "type": "text",
638
+ "bbox": [
639
+ 0.508,
640
+ 0.537,
641
+ 0.883,
642
+ 0.617
643
+ ],
644
+ "angle": 0,
645
+ "content": "\\(50\\%\\). An important finding in all cases is that the perplexity decreases and task accuracy (mostly) increases when we started to decrease the \\(S_B\\) (until a certain point) showcasing LLMs benefit more from dynamic slicing as proposed in our work."
646
+ },
647
+ {
648
+ "type": "text",
649
+ "bbox": [
650
+ 0.508,
651
+ 0.617,
652
+ 0.884,
653
+ 0.811
654
+ ],
655
+ "angle": 0,
656
+ "content": "To estimate a good \\( S_B \\) in our proposed dynamic slicing method, we evaluated the accuracy at the \\( S_B \\) point that achieves the minimum perplexity on Wikitextv2, thus using it as a calibration data set. The results shown in Table 1 indicate that our method outperforms SliceGPT on average for all pruning ratios and models explored. We also show even better results using the median accuracy over all \\( S_B \\) values (Table 3) and mean accuracy values (Table 4), leading us to believe that there are even better ways to choose an \\( S_B \\) value than the minimum perplexity."
657
+ },
658
+ {
659
+ "type": "title",
660
+ "bbox": [
661
+ 0.509,
662
+ 0.821,
663
+ 0.628,
664
+ 0.836
665
+ ],
666
+ "angle": 0,
667
+ "content": "5.1 Analyses"
668
+ },
669
+ {
670
+ "type": "text",
671
+ "bbox": [
672
+ 0.508,
673
+ 0.842,
674
+ 0.885,
675
+ 0.922
676
+ ],
677
+ "angle": 0,
678
+ "content": "To highlight strengths of pruning with our dynamic slicing, we also show comparison with ShortGPT (Men et al., 2024) where entire set of layers are pruned or removed. Please note that techniques such as ShortGPT that have shown to be effective,"
679
+ },
680
+ {
681
+ "type": "page_number",
682
+ "bbox": [
683
+ 0.481,
684
+ 0.928,
685
+ 0.521,
686
+ 0.941
687
+ ],
688
+ "angle": 0,
689
+ "content": "9915"
690
+ }
691
+ ],
692
+ [
693
+ {
694
+ "type": "table",
695
+ "bbox": [
696
+ 0.124,
697
+ 0.082,
698
+ 0.875,
699
+ 0.293
700
+ ],
701
+ "angle": 0,
702
+ "content": "<table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan=\"6\">Llama 3-8B</td><td rowspan=\"3\">ShortGPT</td><td>28.1%</td><td>62.0%</td><td>32.5%</td><td>57.5%</td><td>39.4%</td><td>2.2 ×10^4</td><td>47.9%</td></tr><tr><td>34.3%</td><td>61.2%</td><td>34.3%</td><td>55.8%</td><td>38.1%</td><td>4.9 ×10^4</td><td>47.4%</td></tr><tr><td>37.5%</td><td>60.0%</td><td>34.1%</td><td>54.8%</td><td>37.5%</td><td>1.1 ×10^5</td><td>46.6%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>60.4%</td><td>38.4%</td><td>58.0%</td><td>42.4%</td><td>1.3 ×10^1</td><td>49.8%</td></tr><tr><td>35%</td><td>58.4%</td><td>36.3%</td><td>57.2%</td><td>39.3%</td><td>1.5 ×10^1</td><td>47.8%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.4%</td><td>36.8%</td><td>1.9 ×10^1</td><td>45.8%</td></tr><tr><td rowspan=\"6\">Mistral-7B</td><td rowspan=\"3\">ShortGPT</td><td>28.1%</td><td>65.0%</td><td>39.8%</td><td>63.3%</td><td>46.6%</td><td>1.6 ×10^2</td><td>53.9%</td></tr><tr><td>34.3%</td><td>57.2%</td><td>28.6%</td><td>56.1%</td><td>30.3%</td><td>1.1 ×10^4</td><td>43.1%</td></tr><tr><td>37.5%</td><td>55.6%</td><td>29.3%</td><td>56.7%</td><td>30.0%</td><td>2.4 ×10^4</td><td>42.9%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>63.1%</td><td>38.6%</td><td>60.2%</td><td>51.7%</td><td>8.7 ×10^0</td><td>53.4%</td></tr><tr><td>35%</td><td>58.5%</td><td>34.9%</td><td>55.7%</td><td>45.8%</td><td>1.0 ×10^1</td><td>48.8%</td></tr><tr><td>40%</td><td>57.9%</td><td>31.9%</td><td>54.1%</td><td>40.1%</td><td>1.2 ×10^1</td><td>46.0%</td></tr></table>"
703
+ },
704
+ {
705
+ "type": "table_caption",
706
+ "bbox": [
707
+ 0.113,
708
+ 0.303,
709
+ 0.883,
710
+ 0.348
711
+ ],
712
+ "angle": 0,
713
+ "content": "Table 2: Comparison of our technique with ShortGPT. For each of the pruning rations of our technique, the closest pruning ratio of ShortGPT is reported. Please note that removing 9, 11, and 12 layers completely as in ShortGPT results in \\(28.1\\%\\), \\(34.3\\%\\), and \\(37.5\\%\\) pruned ratio respectively. Bold means higher value in comparison."
714
+ },
715
+ {
716
+ "type": "text",
717
+ "bbox": [
718
+ 0.113,
719
+ 0.372,
720
+ 0.489,
721
+ 0.45
722
+ ],
723
+ "angle": 0,
724
+ "content": "often provide lesser flexibility in pruning ratio as entire set of layers are removed. For example, removing 9 (least important) layers out of 32 layers results in a pruning ratio of \\(28.1\\%\\) as shown in Table 2."
725
+ },
726
+ {
727
+ "type": "text",
728
+ "bbox": [
729
+ 0.117,
730
+ 0.452,
731
+ 0.489,
732
+ 0.709
733
+ ],
734
+ "angle": 0,
735
+ "content": "As shown in Table 2, our dynamic slicing with SliceGPT outperforms ShortGPT in majority of the cases even with higher pruning ration i.e., \\(28.1\\%\\) vs. \\(30\\%\\), \\(34.3\\%\\) vs. \\(35\\%\\), and \\(37.5\\%\\) vs. \\(40\\%\\). Especially for higher pruning ratio (i.e., \\(35\\%\\) or \\(40\\%\\)), our dynamic slicing based SliceGPT approach outperforms ShortGPT with a larger margin across the four classification datasets shown in Table 2. Importantly, removing set of layers completely as in ShortGPT lead to very high perplexity values suggesting high degradation in text generation quality. On the other hand, our proposed dynamic slicing technique with SliceGPT results in exponentially better perplexity score highlighting benefits of pruning only parts of LLM layers instead of removing entire layers."
736
+ },
737
+ {
738
+ "type": "text",
739
+ "bbox": [
740
+ 0.113,
741
+ 0.71,
742
+ 0.489,
743
+ 0.854
744
+ ],
745
+ "angle": 0,
746
+ "content": "Additionally, our variable slicing scaled from layer importance can be easily extended and merged with techniques like ShortGPT by simply removing the least important layers completely and slicing moderately important layers using our proposed approach. This hybrid method leveraging the strengths of both techniques, could potentially enhance model efficiency and performance. We leave this for exploration in future work."
747
+ },
748
+ {
749
+ "type": "title",
750
+ "bbox": [
751
+ 0.114,
752
+ 0.866,
753
+ 0.255,
754
+ 0.881
755
+ ],
756
+ "angle": 0,
757
+ "content": "6 Conclusions"
758
+ },
759
+ {
760
+ "type": "text",
761
+ "bbox": [
762
+ 0.114,
763
+ 0.89,
764
+ 0.489,
765
+ 0.922
766
+ ],
767
+ "angle": 0,
768
+ "content": "In conclusion, we propose a novel dynamic slicing strategy that shows considerable improvements in"
769
+ },
770
+ {
771
+ "type": "text",
772
+ "bbox": [
773
+ 0.508,
774
+ 0.372,
775
+ 0.885,
776
+ 0.468
777
+ ],
778
+ "angle": 0,
779
+ "content": "accuracy when compared against a fixed slicing method that prunes the same amount of parameters on average. We also show that layer redundancy is a powerful metric when removing percentages of layers, and also that there is room for improvement, leading to possible future work in the field."
780
+ },
781
+ {
782
+ "type": "title",
783
+ "bbox": [
784
+ 0.51,
785
+ 0.488,
786
+ 0.615,
787
+ 0.503
788
+ ],
789
+ "angle": 0,
790
+ "content": "Limitations"
791
+ },
792
+ {
793
+ "type": "text",
794
+ "bbox": [
795
+ 0.508,
796
+ 0.52,
797
+ 0.884,
798
+ 0.584
799
+ ],
800
+ "angle": 0,
801
+ "content": "While our study introduces significant advancements in the dynamic pruning of Large Language Models, there are several limitations that are worth discussing:"
802
+ },
803
+ {
804
+ "type": "text",
805
+ "bbox": [
806
+ 0.532,
807
+ 0.607,
808
+ 0.884,
809
+ 0.703
810
+ ],
811
+ "angle": 0,
812
+ "content": "- The effectiveness of our method has been demonstrated predominantly on the Llama3-8B and Mistral-7B models. However, its performance may vary with other architectures, especially those with different layer configurations or learning dynamics."
813
+ },
814
+ {
815
+ "type": "text",
816
+ "bbox": [
817
+ 0.532,
818
+ 0.724,
819
+ 0.885,
820
+ 0.803
821
+ ],
822
+ "angle": 0,
823
+ "content": "- We only experiment with one method to choose the \\( S_B \\) value (that gives lowest perplexity) and there can be other methods for estimating \\( S_B \\) which we leave it to more focused future works."
824
+ },
825
+ {
826
+ "type": "text",
827
+ "bbox": [
828
+ 0.532,
829
+ 0.826,
830
+ 0.884,
831
+ 0.922
832
+ ],
833
+ "angle": 0,
834
+ "content": "- Limited computational resources have constrained our ability to test on larger models. We believe that exploring the efficacy of our dynamic pruning method on more extensive architectures could provide valuable insights into its scalability and performance."
835
+ },
836
+ {
837
+ "type": "list",
838
+ "bbox": [
839
+ 0.532,
840
+ 0.607,
841
+ 0.885,
842
+ 0.922
843
+ ],
844
+ "angle": 0,
845
+ "content": null
846
+ },
847
+ {
848
+ "type": "page_number",
849
+ "bbox": [
850
+ 0.481,
851
+ 0.928,
852
+ 0.521,
853
+ 0.941
854
+ ],
855
+ "angle": 0,
856
+ "content": "9916"
857
+ }
858
+ ],
859
+ [
860
+ {
861
+ "type": "title",
862
+ "bbox": [
863
+ 0.115,
864
+ 0.084,
865
+ 0.317,
866
+ 0.1
867
+ ],
868
+ "angle": 0,
869
+ "content": "Ethical Considerations"
870
+ },
871
+ {
872
+ "type": "text",
873
+ "bbox": [
874
+ 0.117,
875
+ 0.111,
876
+ 0.49,
877
+ 0.351
878
+ ],
879
+ "angle": 0,
880
+ "content": "Ethical considerations are central to our development of a dynamic pruning method for large language models. Our research strives to reduce the computational costs and environmental impact of deploying large-scale models, aligning with the ethical responsibility to promote environmental sustainability and minimize negative consequences such as excessive energy consumption. This not only makes LLMs more accessible but also supports broader societal needs by enabling more efficient processing solutions that respect both individual rights and community values. By enhancing the efficiency of these models, we may enable populations with limited computational resources to harness the power of advanced NLP tools."
881
+ },
882
+ {
883
+ "type": "text",
884
+ "bbox": [
885
+ 0.117,
886
+ 0.353,
887
+ 0.49,
888
+ 0.575
889
+ ],
890
+ "angle": 0,
891
+ "content": "Furthermore, our methodology emphasizes the importance of using data sets that are free from harmful content. By using data sets that do not contain harmful data, we aim to ensure that the resulting models avoid biased outputs or content that could reduce their utility in practical applications. Ensuring the integrity and appropriateness of pruned models is essential, as these models often play significant roles in decision-making processes across various sectors. In this context, our approach is designed to be transparent and responsible, providing clear documentation and rigorous evaluation to maintain the reliability and fairness of the models."
892
+ },
893
+ {
894
+ "type": "text",
895
+ "bbox": [
896
+ 0.114,
897
+ 0.578,
898
+ 0.49,
899
+ 0.689
900
+ ],
901
+ "angle": 0,
902
+ "content": "Also, we have selected a color scheme that prioritizes accessibility, ensuring the visuals are clear and discernible to individuals with color vision deficiencies. This inclusive approach reflects our commitment to making our research accessible to a wider audience, including those with varying visual abilities."
903
+ },
904
+ {
905
+ "type": "title",
906
+ "bbox": [
907
+ 0.116,
908
+ 0.717,
909
+ 0.214,
910
+ 0.733
911
+ ],
912
+ "angle": 0,
913
+ "content": "References"
914
+ },
915
+ {
916
+ "type": "ref_text",
917
+ "bbox": [
918
+ 0.116,
919
+ 0.74,
920
+ 0.489,
921
+ 0.781
922
+ ],
923
+ "angle": 0,
924
+ "content": "Hervé Abdi and Lynne J Williams. 2010. Principal component analysis. Wiley interdisciplinary reviews: computational statistics, 2(4):433-459."
925
+ },
926
+ {
927
+ "type": "ref_text",
928
+ "bbox": [
929
+ 0.117,
930
+ 0.791,
931
+ 0.49,
932
+ 0.856
933
+ ],
934
+ "angle": 0,
935
+ "content": "Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman. 2024. Slicegpt: Compress large language models by deleting rows and columns. Preprint, arXiv:2401.15024."
936
+ },
937
+ {
938
+ "type": "ref_text",
939
+ "bbox": [
940
+ 0.117,
941
+ 0.868,
942
+ 0.49,
943
+ 0.92
944
+ ],
945
+ "angle": 0,
946
+ "content": "Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. 2019. Piqa: Reasoning about physical commonsense in natural language. *Preprint*, arXiv:1911.11641."
947
+ },
948
+ {
949
+ "type": "list",
950
+ "bbox": [
951
+ 0.116,
952
+ 0.74,
953
+ 0.49,
954
+ 0.92
955
+ ],
956
+ "angle": 0,
957
+ "content": null
958
+ },
959
+ {
960
+ "type": "ref_text",
961
+ "bbox": [
962
+ 0.511,
963
+ 0.086,
964
+ 0.885,
965
+ 0.152
966
+ ],
967
+ "angle": 0,
968
+ "content": "Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv:1803.05457v1."
969
+ },
970
+ {
971
+ "type": "ref_text",
972
+ "bbox": [
973
+ 0.512,
974
+ 0.163,
975
+ 0.885,
976
+ 0.216
977
+ ],
978
+ "angle": 0,
979
+ "content": "Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2024. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems, 36."
980
+ },
981
+ {
982
+ "type": "ref_text",
983
+ "bbox": [
984
+ 0.512,
985
+ 0.227,
986
+ 0.885,
987
+ 0.344
988
+ ],
989
+ "angle": 0,
990
+ "content": "Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. 2023. A framework for few-shot language model evaluation."
991
+ },
992
+ {
993
+ "type": "ref_text",
994
+ "bbox": [
995
+ 0.512,
996
+ 0.356,
997
+ 0.885,
998
+ 0.408
999
+ ],
1000
+ "angle": 0,
1001
+ "content": "Andrey Gromov, Kushal Tirumala, Hassan Shapourian, Paolo Glorioso, and Daniel A. Roberts. 2024. The unreasonable ineffectiveness of the deeper layers. Preprint, arXiv:2403.17887."
1002
+ },
1003
+ {
1004
+ "type": "ref_text",
1005
+ "bbox": [
1006
+ 0.512,
1007
+ 0.419,
1008
+ 0.885,
1009
+ 0.46
1010
+ ],
1011
+ "angle": 0,
1012
+ "content": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531."
1013
+ },
1014
+ {
1015
+ "type": "ref_text",
1016
+ "bbox": [
1017
+ 0.512,
1018
+ 0.47,
1019
+ 0.885,
1020
+ 0.535
1021
+ ],
1022
+ "angle": 0,
1023
+ "content": "Torsten Hoefer, Dan Alistarh, Tal Ben-Nun, Nikoli Dryden, and Alexandra Peste. 2021. Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks. Journal of Machine Learning Research, 22(241):1-124."
1024
+ },
1025
+ {
1026
+ "type": "ref_text",
1027
+ "bbox": [
1028
+ 0.512,
1029
+ 0.546,
1030
+ 0.885,
1031
+ 0.639
1032
+ ],
1033
+ "angle": 0,
1034
+ "content": "Cheng-Yu Hsieh, Chun-Liang Li, CHIH-KUAN YEH, Hootan Nakhost, Yasuhisa Fujii, Alex Jason Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. 2023. Distilling step-by-step! outperforming larger language models with less training data and smaller model sizes. In The 61st Annual Meeting Of The Association For Computational Linguistics."
1035
+ },
1036
+ {
1037
+ "type": "ref_text",
1038
+ "bbox": [
1039
+ 0.512,
1040
+ 0.649,
1041
+ 0.885,
1042
+ 0.714
1043
+ ],
1044
+ "angle": 0,
1045
+ "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."
1046
+ },
1047
+ {
1048
+ "type": "ref_text",
1049
+ "bbox": [
1050
+ 0.512,
1051
+ 0.726,
1052
+ 0.885,
1053
+ 0.83
1054
+ ],
1055
+ "angle": 0,
1056
+ "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, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7b. Preprint, arXiv:2310.06825."
1057
+ },
1058
+ {
1059
+ "type": "ref_text",
1060
+ "bbox": [
1061
+ 0.512,
1062
+ 0.842,
1063
+ 0.885,
1064
+ 0.92
1065
+ ],
1066
+ "angle": 0,
1067
+ "content": "Darioush Kevian, Usman Syed, Xingang Guo, Aaron Havens, Geir Dullerud, Peter Seiler, Lianhui Qin, and Bin Hu. 2024. Capabilities of large language models in control engineering: A benchmark study on gpt-4, claude 3 opus, and gemini 1.0 ultra. arXiv preprint arXiv:2404.03647."
1068
+ },
1069
+ {
1070
+ "type": "list",
1071
+ "bbox": [
1072
+ 0.511,
1073
+ 0.086,
1074
+ 0.885,
1075
+ 0.92
1076
+ ],
1077
+ "angle": 0,
1078
+ "content": null
1079
+ },
1080
+ {
1081
+ "type": "page_number",
1082
+ "bbox": [
1083
+ 0.481,
1084
+ 0.928,
1085
+ 0.521,
1086
+ 0.941
1087
+ ],
1088
+ "angle": 0,
1089
+ "content": "9917"
1090
+ }
1091
+ ],
1092
+ [
1093
+ {
1094
+ "type": "ref_text",
1095
+ "bbox": [
1096
+ 0.116,
1097
+ 0.086,
1098
+ 0.49,
1099
+ 0.152
1100
+ ],
1101
+ "angle": 0,
1102
+ "content": "Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue, and Furu Wei. 2024. The era of 1-bit llms: All large language models are in 1.58 bits. arXiv preprint arXiv:2402.17764."
1103
+ },
1104
+ {
1105
+ "type": "ref_text",
1106
+ "bbox": [
1107
+ 0.117,
1108
+ 0.162,
1109
+ 0.49,
1110
+ 0.215
1111
+ ],
1112
+ "angle": 0,
1113
+ "content": "Xinyin Ma, Gongfan Fang, and Xinchao Wang. 2023. Llm-pruner: On the structural pruning of large language models. Advances in neural information processing systems, 36:21702-21720."
1114
+ },
1115
+ {
1116
+ "type": "ref_text",
1117
+ "bbox": [
1118
+ 0.117,
1119
+ 0.224,
1120
+ 0.489,
1121
+ 0.29
1122
+ ],
1123
+ "angle": 0,
1124
+ "content": "Xin Men, Mingyu Xu, Qingyu Zhang, Bingning Wang, Hongyu Lin, Yaojie Lu, Xianpei Han, and Weipeng Chen. 2024. Shortgpt: Layers in large language models are more redundant than you expect. Preprint, arXiv:2403.03853."
1125
+ },
1126
+ {
1127
+ "type": "ref_text",
1128
+ "bbox": [
1129
+ 0.117,
1130
+ 0.3,
1131
+ 0.489,
1132
+ 0.341
1133
+ ],
1134
+ "angle": 0,
1135
+ "content": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2016. Pointer sentinel mixture models. Preprint, arXiv:1609.07843."
1136
+ },
1137
+ {
1138
+ "type": "ref_text",
1139
+ "bbox": [
1140
+ 0.117,
1141
+ 0.35,
1142
+ 0.489,
1143
+ 0.404
1144
+ ],
1145
+ "angle": 0,
1146
+ "content": "Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, Chloe Hillier, and Timothy P Lillicrap. 2019. Compressive transformers for long-range sequence modelling. arXiv preprint."
1147
+ },
1148
+ {
1149
+ "type": "ref_text",
1150
+ "bbox": [
1151
+ 0.117,
1152
+ 0.413,
1153
+ 0.489,
1154
+ 0.465
1155
+ ],
1156
+ "angle": 0,
1157
+ "content": "Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2019. WINOGRANDE: an adversarial winograd schema challenge at scale. CoRR, abs/1907.10641."
1158
+ },
1159
+ {
1160
+ "type": "ref_text",
1161
+ "bbox": [
1162
+ 0.117,
1163
+ 0.476,
1164
+ 0.489,
1165
+ 0.554
1166
+ ],
1167
+ "angle": 0,
1168
+ "content": "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."
1169
+ },
1170
+ {
1171
+ "type": "ref_text",
1172
+ "bbox": [
1173
+ 0.117,
1174
+ 0.565,
1175
+ 0.489,
1176
+ 0.643
1177
+ ],
1178
+ "angle": 0,
1179
+ "content": "Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971."
1180
+ },
1181
+ {
1182
+ "type": "ref_text",
1183
+ "bbox": [
1184
+ 0.117,
1185
+ 0.653,
1186
+ 0.489,
1187
+ 0.719
1188
+ ],
1189
+ "angle": 0,
1190
+ "content": "Zhongwei Wan, Xin Wang, Che Liu, Samiul Alam, Yu Zheng, Zhongnan Qu, Shen Yan, Yi Zhu, Quanlu Zhang, Mosharaf Chowdhury, et al. 2023. Efficient large language models: A survey. arXiv preprint arXiv:2312.03863."
1191
+ },
1192
+ {
1193
+ "type": "ref_text",
1194
+ "bbox": [
1195
+ 0.117,
1196
+ 0.729,
1197
+ 0.489,
1198
+ 0.795
1199
+ ],
1200
+ "angle": 0,
1201
+ "content": "Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, and Xiaofei He. 2024. Model compression and efficient inference for large language models: A survey. arXiv preprint arXiv:2402.09748."
1202
+ },
1203
+ {
1204
+ "type": "ref_text",
1205
+ "bbox": [
1206
+ 0.117,
1207
+ 0.805,
1208
+ 0.489,
1209
+ 0.871
1210
+ ],
1211
+ "angle": 0,
1212
+ "content": "Yuhui Xu, Lingxi Xie, Xiaotao Gu, Xin Chen, Heng Chang, Hengheng Zhang, Zhensu Chen, Xiaopeng Zhang, and Qi Tian. 2023. Qa-lora: Quantization-aware low-rank adaptation of large language models. arXiv preprint arXiv:2309.14717."
1213
+ },
1214
+ {
1215
+ "type": "ref_text",
1216
+ "bbox": [
1217
+ 0.117,
1218
+ 0.88,
1219
+ 0.489,
1220
+ 0.92
1221
+ ],
1222
+ "angle": 0,
1223
+ "content": "Yifei Yang, Zouying Cao, and Hai Zhao. 2024. Laco: Large language model pruning via layer collapse. arXiv preprint arXiv:2402.11187."
1224
+ },
1225
+ {
1226
+ "type": "list",
1227
+ "bbox": [
1228
+ 0.116,
1229
+ 0.086,
1230
+ 0.49,
1231
+ 0.92
1232
+ ],
1233
+ "angle": 0,
1234
+ "content": null
1235
+ },
1236
+ {
1237
+ "type": "ref_text",
1238
+ "bbox": [
1239
+ 0.511,
1240
+ 0.086,
1241
+ 0.883,
1242
+ 0.166
1243
+ ],
1244
+ "angle": 0,
1245
+ "content": "Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4791-4800, Florence, Italy. Association for Computational Linguistics."
1246
+ },
1247
+ {
1248
+ "type": "ref_text",
1249
+ "bbox": [
1250
+ 0.511,
1251
+ 0.175,
1252
+ 0.883,
1253
+ 0.227
1254
+ ],
1255
+ "angle": 0,
1256
+ "content": "Xunyu Zhu, Jian Li, Yong Liu, Can Ma, and Weiping Wang. 2023. A survey on model compression for large language models. arXiv preprint arXiv:2308.07633."
1257
+ },
1258
+ {
1259
+ "type": "list",
1260
+ "bbox": [
1261
+ 0.511,
1262
+ 0.086,
1263
+ 0.883,
1264
+ 0.227
1265
+ ],
1266
+ "angle": 0,
1267
+ "content": null
1268
+ },
1269
+ {
1270
+ "type": "title",
1271
+ "bbox": [
1272
+ 0.511,
1273
+ 0.241,
1274
+ 0.634,
1275
+ 0.258
1276
+ ],
1277
+ "angle": 0,
1278
+ "content": "A Appendix"
1279
+ },
1280
+ {
1281
+ "type": "title",
1282
+ "bbox": [
1283
+ 0.51,
1284
+ 0.267,
1285
+ 0.724,
1286
+ 0.282
1287
+ ],
1288
+ "angle": 0,
1289
+ "content": "A.1 Experimental details"
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "bbox": [
1294
+ 0.508,
1295
+ 0.287,
1296
+ 0.883,
1297
+ 0.448
1298
+ ],
1299
+ "angle": 0,
1300
+ "content": "For all our experiments we used 4 NVIDIA A100 GPUs, with 80GB of VRAM each, and running all of the data sets on one slicing pattern using one NVIDIA A100 takes around 30 minutes, leading to a total time of 10 hours for a plot that has 20 possible \\( S_B \\) values. We use a total of 1000 samples for each data set in all our configurations. Also, calculating the LR score can take upwards of 30-40 minutes per model on 1 NVIDIA A100 GPU, but that only has to be computed once."
1301
+ },
1302
+ {
1303
+ "type": "title",
1304
+ "bbox": [
1305
+ 0.51,
1306
+ 0.459,
1307
+ 0.818,
1308
+ 0.472
1309
+ ],
1310
+ "angle": 0,
1311
+ "content": "A.2 Tables with mean/median results"
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "bbox": [
1316
+ 0.508,
1317
+ 0.479,
1318
+ 0.883,
1319
+ 0.544
1320
+ ],
1321
+ "angle": 0,
1322
+ "content": "For a detailed evaluation, Table 3 compares our technique in the median setting against the constant slicing proposed by SliceGPT, and Table 4 provides a comparison in the average setting."
1323
+ },
1324
+ {
1325
+ "type": "title",
1326
+ "bbox": [
1327
+ 0.51,
1328
+ 0.554,
1329
+ 0.855,
1330
+ 0.584
1331
+ ],
1332
+ "angle": 0,
1333
+ "content": "A.3 Llama3-8B and Mistral-7B in various scenarios"
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "bbox": [
1338
+ 0.508,
1339
+ 0.591,
1340
+ 0.885,
1341
+ 0.768
1342
+ ],
1343
+ "angle": 0,
1344
+ "content": "Visual representations of our experiments are shown across several figures: Figure 3 and Figure 4 illustrate the performance of Llama3-8B with \\(30\\%\\) and \\(35\\%\\) of the network sliced, respectively, comparing it to the baseline accuracy achieved by SliceGPT. Similarly, Figures 5, 6, and 7 display the results for Mistral-7B with \\(30\\%\\), \\(35\\%\\), and \\(40\\%\\) of the network sliced, again benchmarked against SliceGPT's constant slice accuracies. In each figure, the red line denotes the baseline accuracy set by SliceGPT for the respective slicing percentages."
1345
+ },
1346
+ {
1347
+ "type": "page_number",
1348
+ "bbox": [
1349
+ 0.481,
1350
+ 0.929,
1351
+ 0.521,
1352
+ 0.941
1353
+ ],
1354
+ "angle": 0,
1355
+ "content": "9918"
1356
+ }
1357
+ ],
1358
+ [
1359
+ {
1360
+ "type": "table",
1361
+ "bbox": [
1362
+ 0.115,
1363
+ 0.1,
1364
+ 0.881,
1365
+ 0.328
1366
+ ],
1367
+ "angle": 0,
1368
+ "content": "<table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan=\"6\">LLaMa-3-8B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>60.5%</td><td>38.1%</td><td>57.4%</td><td>43.0%</td><td>13.07</td><td>49.7%</td></tr><tr><td>35%</td><td>58.7%</td><td>35.8%</td><td>56.2%</td><td>39.6%</td><td>15.75</td><td>47.6%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.2%</td><td>55.0%</td><td>37.2%</td><td>19.21</td><td>46.1%</td></tr><tr><td rowspan=\"6\">Mistral-7B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>62.6%</td><td>38.6%</td><td>59.5%</td><td>52.4%</td><td>8.80</td><td>53.4%</td></tr><tr><td>35%</td><td>59.2%</td><td>36.0%</td><td>56.9%</td><td>45.1%</td><td>10.42</td><td>49.3%</td></tr><tr><td>40%</td><td>57.9%</td><td>34.3%</td><td>54.1%</td><td>40.0%</td><td>12.68</td><td>46.5%</td></tr></table>"
1369
+ },
1370
+ {
1371
+ "type": "table_caption",
1372
+ "bbox": [
1373
+ 0.114,
1374
+ 0.338,
1375
+ 0.883,
1376
+ 0.368
1377
+ ],
1378
+ "angle": 0,
1379
+ "content": "Table 3: Comparison of our technique in the median setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison"
1380
+ },
1381
+ {
1382
+ "type": "table",
1383
+ "bbox": [
1384
+ 0.115,
1385
+ 0.411,
1386
+ 0.881,
1387
+ 0.64
1388
+ ],
1389
+ "angle": 0,
1390
+ "content": "<table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan=\"6\">LLaMa-3-8B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>60.6%</td><td>38.0%</td><td>57.4%</td><td>43.0%</td><td>13.11</td><td>49.8%</td></tr><tr><td>35%</td><td>58.6%</td><td>35.6%</td><td>55.8%</td><td>39.7%</td><td>15.9</td><td>47.4%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.6%</td><td>37.1%</td><td>19.34</td><td>46.0%</td></tr><tr><td rowspan=\"6\">Mistral-7B</td><td rowspan=\"3\">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan=\"3\">Dynamic Slicing</td><td>30%</td><td>62.6%</td><td>38.1%</td><td>59.5%</td><td>52.3%</td><td>8.81</td><td>53.1%</td></tr><tr><td>35%</td><td>59.0%</td><td>35.7%</td><td>57.0%</td><td>44.8%</td><td>10.50</td><td>49.1%</td></tr><tr><td>40%</td><td>57.8%</td><td>33.6%</td><td>54.2%</td><td>39.6%</td><td>12.76</td><td>46.3%</td></tr></table>"
1391
+ },
1392
+ {
1393
+ "type": "table_caption",
1394
+ "bbox": [
1395
+ 0.114,
1396
+ 0.649,
1397
+ 0.884,
1398
+ 0.679
1399
+ ],
1400
+ "angle": 0,
1401
+ "content": "Table 4: Comparison of our technique in the average setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison"
1402
+ },
1403
+ {
1404
+ "type": "image",
1405
+ "bbox": [
1406
+ 0.119,
1407
+ 0.725,
1408
+ 0.273,
1409
+ 0.859
1410
+ ],
1411
+ "angle": 0,
1412
+ "content": null
1413
+ },
1414
+ {
1415
+ "type": "image",
1416
+ "bbox": [
1417
+ 0.273,
1418
+ 0.725,
1419
+ 0.423,
1420
+ 0.857
1421
+ ],
1422
+ "angle": 0,
1423
+ "content": null
1424
+ },
1425
+ {
1426
+ "type": "image",
1427
+ "bbox": [
1428
+ 0.424,
1429
+ 0.725,
1430
+ 0.575,
1431
+ 0.857
1432
+ ],
1433
+ "angle": 0,
1434
+ "content": null
1435
+ },
1436
+ {
1437
+ "type": "image",
1438
+ "bbox": [
1439
+ 0.577,
1440
+ 0.725,
1441
+ 0.726,
1442
+ 0.857
1443
+ ],
1444
+ "angle": 0,
1445
+ "content": null
1446
+ },
1447
+ {
1448
+ "type": "image",
1449
+ "bbox": [
1450
+ 0.727,
1451
+ 0.725,
1452
+ 0.877,
1453
+ 0.857
1454
+ ],
1455
+ "angle": 0,
1456
+ "content": null
1457
+ },
1458
+ {
1459
+ "type": "image_caption",
1460
+ "bbox": [
1461
+ 0.114,
1462
+ 0.87,
1463
+ 0.884,
1464
+ 0.898
1465
+ ],
1466
+ "angle": 0,
1467
+ "content": "Figure 3: Llama3 8B with \\(30\\%\\) of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant \\(30\\%\\) slice."
1468
+ },
1469
+ {
1470
+ "type": "page_number",
1471
+ "bbox": [
1472
+ 0.481,
1473
+ 0.929,
1474
+ 0.521,
1475
+ 0.941
1476
+ ],
1477
+ "angle": 0,
1478
+ "content": "9919"
1479
+ }
1480
+ ],
1481
+ [
1482
+ {
1483
+ "type": "image",
1484
+ "bbox": [
1485
+ 0.119,
1486
+ 0.098,
1487
+ 0.272,
1488
+ 0.23
1489
+ ],
1490
+ "angle": 0,
1491
+ "content": null
1492
+ },
1493
+ {
1494
+ "type": "image",
1495
+ "bbox": [
1496
+ 0.274,
1497
+ 0.099,
1498
+ 0.422,
1499
+ 0.23
1500
+ ],
1501
+ "angle": 0,
1502
+ "content": null
1503
+ },
1504
+ {
1505
+ "type": "image",
1506
+ "bbox": [
1507
+ 0.423,
1508
+ 0.099,
1509
+ 0.574,
1510
+ 0.23
1511
+ ],
1512
+ "angle": 0,
1513
+ "content": null
1514
+ },
1515
+ {
1516
+ "type": "image",
1517
+ "bbox": [
1518
+ 0.575,
1519
+ 0.099,
1520
+ 0.726,
1521
+ 0.23
1522
+ ],
1523
+ "angle": 0,
1524
+ "content": null
1525
+ },
1526
+ {
1527
+ "type": "image",
1528
+ "bbox": [
1529
+ 0.727,
1530
+ 0.099,
1531
+ 0.877,
1532
+ 0.23
1533
+ ],
1534
+ "angle": 0,
1535
+ "content": null
1536
+ },
1537
+ {
1538
+ "type": "image_caption",
1539
+ "bbox": [
1540
+ 0.113,
1541
+ 0.242,
1542
+ 0.883,
1543
+ 0.271
1544
+ ],
1545
+ "angle": 0,
1546
+ "content": "Figure 4: Llama3 8B with \\(35\\%\\) of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant \\(35\\%\\) slice."
1547
+ },
1548
+ {
1549
+ "type": "image",
1550
+ "bbox": [
1551
+ 0.119,
1552
+ 0.308,
1553
+ 0.273,
1554
+ 0.44
1555
+ ],
1556
+ "angle": 0,
1557
+ "content": null
1558
+ },
1559
+ {
1560
+ "type": "image",
1561
+ "bbox": [
1562
+ 0.274,
1563
+ 0.309,
1564
+ 0.422,
1565
+ 0.44
1566
+ ],
1567
+ "angle": 0,
1568
+ "content": null
1569
+ },
1570
+ {
1571
+ "type": "image",
1572
+ "bbox": [
1573
+ 0.423,
1574
+ 0.309,
1575
+ 0.574,
1576
+ 0.44
1577
+ ],
1578
+ "angle": 0,
1579
+ "content": null
1580
+ },
1581
+ {
1582
+ "type": "image",
1583
+ "bbox": [
1584
+ 0.575,
1585
+ 0.309,
1586
+ 0.726,
1587
+ 0.44
1588
+ ],
1589
+ "angle": 0,
1590
+ "content": null
1591
+ },
1592
+ {
1593
+ "type": "image",
1594
+ "bbox": [
1595
+ 0.727,
1596
+ 0.309,
1597
+ 0.877,
1598
+ 0.44
1599
+ ],
1600
+ "angle": 0,
1601
+ "content": null
1602
+ },
1603
+ {
1604
+ "type": "image_caption",
1605
+ "bbox": [
1606
+ 0.113,
1607
+ 0.453,
1608
+ 0.883,
1609
+ 0.481
1610
+ ],
1611
+ "angle": 0,
1612
+ "content": "Figure 5: Mistral 7B with \\(30\\%\\) of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant \\(30\\%\\) slice."
1613
+ },
1614
+ {
1615
+ "type": "image",
1616
+ "bbox": [
1617
+ 0.119,
1618
+ 0.519,
1619
+ 0.273,
1620
+ 0.651
1621
+ ],
1622
+ "angle": 0,
1623
+ "content": null
1624
+ },
1625
+ {
1626
+ "type": "image",
1627
+ "bbox": [
1628
+ 0.274,
1629
+ 0.52,
1630
+ 0.422,
1631
+ 0.651
1632
+ ],
1633
+ "angle": 0,
1634
+ "content": null
1635
+ },
1636
+ {
1637
+ "type": "image",
1638
+ "bbox": [
1639
+ 0.423,
1640
+ 0.52,
1641
+ 0.574,
1642
+ 0.651
1643
+ ],
1644
+ "angle": 0,
1645
+ "content": null
1646
+ },
1647
+ {
1648
+ "type": "image",
1649
+ "bbox": [
1650
+ 0.575,
1651
+ 0.52,
1652
+ 0.726,
1653
+ 0.651
1654
+ ],
1655
+ "angle": 0,
1656
+ "content": null
1657
+ },
1658
+ {
1659
+ "type": "image",
1660
+ "bbox": [
1661
+ 0.727,
1662
+ 0.52,
1663
+ 0.877,
1664
+ 0.651
1665
+ ],
1666
+ "angle": 0,
1667
+ "content": null
1668
+ },
1669
+ {
1670
+ "type": "image_caption",
1671
+ "bbox": [
1672
+ 0.113,
1673
+ 0.664,
1674
+ 0.883,
1675
+ 0.692
1676
+ ],
1677
+ "angle": 0,
1678
+ "content": "Figure 6: Mistral 7B with \\(35\\%\\) of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant \\(35\\%\\) slice."
1679
+ },
1680
+ {
1681
+ "type": "image",
1682
+ "bbox": [
1683
+ 0.119,
1684
+ 0.731,
1685
+ 0.273,
1686
+ 0.861
1687
+ ],
1688
+ "angle": 0,
1689
+ "content": null
1690
+ },
1691
+ {
1692
+ "type": "image",
1693
+ "bbox": [
1694
+ 0.274,
1695
+ 0.731,
1696
+ 0.422,
1697
+ 0.861
1698
+ ],
1699
+ "angle": 0,
1700
+ "content": null
1701
+ },
1702
+ {
1703
+ "type": "image",
1704
+ "bbox": [
1705
+ 0.423,
1706
+ 0.731,
1707
+ 0.574,
1708
+ 0.861
1709
+ ],
1710
+ "angle": 0,
1711
+ "content": null
1712
+ },
1713
+ {
1714
+ "type": "image",
1715
+ "bbox": [
1716
+ 0.575,
1717
+ 0.731,
1718
+ 0.726,
1719
+ 0.861
1720
+ ],
1721
+ "angle": 0,
1722
+ "content": null
1723
+ },
1724
+ {
1725
+ "type": "image",
1726
+ "bbox": [
1727
+ 0.727,
1728
+ 0.731,
1729
+ 0.877,
1730
+ 0.861
1731
+ ],
1732
+ "angle": 0,
1733
+ "content": null
1734
+ },
1735
+ {
1736
+ "type": "image_caption",
1737
+ "bbox": [
1738
+ 0.113,
1739
+ 0.875,
1740
+ 0.883,
1741
+ 0.903
1742
+ ],
1743
+ "angle": 0,
1744
+ "content": "Figure 7: Mistral 7B with \\(40\\%\\) of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant \\(40\\%\\) slice."
1745
+ },
1746
+ {
1747
+ "type": "page_number",
1748
+ "bbox": [
1749
+ 0.481,
1750
+ 0.928,
1751
+ 0.522,
1752
+ 0.941
1753
+ ],
1754
+ "angle": 0,
1755
+ "content": "9920"
1756
+ }
1757
+ ]
1758
+ ]
2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/08dc98ee-6735-489e-8bdc-21704eaecbb3_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9650b7ed418450bc2c98ee32951d9c0fabb5e970695cc09ed9d819ab21467f4
3
+ size 2680397
2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/full.md ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Change Is the Only Constant: Dynamic LLM Slicing based on Layer Redundancy
2
+
3
+ Razvan-Gabriel Dumitru<sup>1</sup>, Paul-Ioan Clotan<sup>2</sup>, Vikas Yadav<sup>3</sup>, Darius Peteleaza<sup>4</sup>, Mihai Surdeanu<sup>1</sup>
4
+
5
+ <sup>1</sup>University of Arizona, <sup>2</sup>Università di Bologna, <sup>3</sup>ServiceNow AI,
6
+
7
+ <sup>4</sup>University Lucian Blaga of Sibiu
8
+
9
+ Correspondence:razvandumm@gmail.com
10
+
11
+ # Abstract
12
+
13
+ This paper introduces a novel model compression approach through dynamic layer-specific pruning in Large Language Models (LLMs), enhancing the traditional methodology established by SliceGPT. By transitioning from constant to dynamic slicing, our method leverages the newly proposed Layer Redundancy (LR) score, which assesses how much change each layer changes its input by measuring the cosine similarity of the input to the output of the layer. We use this score to prune parts of individual layers based on redundancy in such a way that the average pruned percentage for all layers is a fixed value. We conducted extensive experiments using models like Llama3-8B and Mistral-7B on multiple datasets, evaluating different slicing bases and percentages to determine optimal configurations that balance efficiency and performance. Our findings show that our dynamic slicing approach not only maintains but, in many cases, enhances model performance compared to the baseline established by constant slicing methods. For instance, in several settings, we see performance improvements of up to $5\%$ over the SliceGPT baseline. Additionally, a perplexity decrease by as much as $7\%$ was observed across multiple benchmarks, validating the effectiveness of our method. The code, model weights, and datasets are open-sourced at https://github.com/RazvanDu/DynamicSlicing.
14
+
15
+ # 1 Introduction
16
+
17
+ Large Language Models (LLMs), characterized by their massive scale, often consist of billions to trillions of parameters, enabling them to perform a wide range of complex tasks with remarkable proficiency (Kevian et al., 2024; Touvron et al., 2023; Team et al., 2023; Jiang et al., 2023). However, the deployment of these models poses significant challenges, primarily due to the extensive computational resources requirements. As the scale of these models grows, so does the urgency to develop more
18
+
19
+ efficient methods for their deployment. This has led to increased interest in model compression techniques that aim to reduce the computational burden without substantially sacrificing performance. Techniques such as knowledge distillation, quantization, or pruning variants have emerged as viable solutions (Wan et al., 2023), each offering a different approach to streamlining model architecture and operations (Wang et al., 2024).
20
+
21
+ In this paper, we improve the work on model pruning introduced by SliceGPT (Ashkboos et al., 2024), a pruning technique via a constant slicing percentage of each layer. While this approach reduces computational demands and maintains a level of performance, it does not account for the varying significance of different layers within the network. We propose a more nuanced, dynamic pruning method that adapts the degree of pruning based on the individual characteristics and contributions of each layer. Our method aims to optimize both the efficiency and the efficacy of the pruning process by preserving more functionality in critical areas of the model, leading to better performance and less degradation in tasks.
22
+
23
+ More specifically, we develop a new metric, namely Layer Redundancy (LR) score, to quantify the impact of each layer on the model's overall performance. This evaluation is essential, as it guides the order in which layers are pruned, ensuring that the most influential layers are preserved while less critical layers are removed. Our approach involves generating slicing functions tailored to the importance of each layer, allowing for a dynamic and informed pruning strategy. Our results from the extensive empirical studies across various datasets and base models show a substantial improvement in model accuracy across all datasets tested, accompanied by a notable reduction in perplexity. In order to thoroughly evaluate the effectiveness of our proposed dynamic slicing pattern, we also analyzed the median accuracy and perplexity across
24
+
25
+ a range of models. The results consistently show the superiority of our method over conventional constant slicing techniques.
26
+
27
+ The main contributions of our paper are:
28
+
29
+ - We showed that dynamic, adaptive layer pruning can significantly improve computational efficiency without compromising model performance.
30
+ - The introduction of the Layer Redundancy score, a new metric to evaluate and guide the dynamic pruning of layers in LLMs.
31
+ - Extensive empirical validation shows that our method outperforms static pruning techniques in terms of both accuracy and perplexity across various settings.
32
+
33
+ # 2 Related Work
34
+
35
+ Recent advancements in model compression techniques (Hoefler et al., 2021; Zhu et al., 2023) have markedly improved the efficiency of deploying LLMs while striving to retain their performance. The field has seen a variety of approaches including knowledge distillation (Hinton et al., 2015; Hsieh et al., 2023), quantization (Ma et al., 2024), pruning (Ma et al., 2023; Yang et al., 2024), low-rank adaptation (Hu et al., 2021) or hybrid variants (Xu et al., 2023; Dettmers et al., 2024), each designed to address the growing computational and memory requirements of these models.
36
+
37
+ Innovative approaches such as LLM-Pruner (Ma et al., 2023) and LaCo (Layer Collapse) (Yang et al., 2024) offer novel perspectives on model pruning. LLM-Pruner focuses on structured pruning by identifying and removing dependency groups within the model, aiming to minimize dependency on the original training corpus while preserving linguistic capabilities. Similarly, LaCo presents a layer-wise pruning strategy where subsequent layers collapse into preceding ones, achieving notable size reduction while maintaining good performance. A third approach (Gromov et al., 2024) explores the potential of simple layer-pruning strategies combined with parameter-efficient finetuning (PEFT), demonstrating minimal performance loss even when half of the model's layers are removed.
38
+
39
+ Among the innovative strategies in LLM optimization, SliceGPT (Ashkboos et al., 2024) emerges as a significant breakthrough in model compression. Developed to address the intensive computational and memory demands of deploying LLMs, SliceGPT employs a unique post-training
40
+
41
+ sparsification technique. Although effective in practice, previous research has illustrated that the order in which layers are removed plays a critical role in model performance (Gromov et al., 2024; Men et al., 2024). This insight led us to explore variable slicing percentages across different layers, challenging the constant slice for all layers. Initial attempts by the creators of SliceGPT to implement this through spectral analysis of layers did not yield a reliable method for determining the optimal percentage to be removed from each layer, as spectral analysis only tells part of the story and doesn't correlate with how much can be sliced out of a layer.
42
+
43
+ # 3 Method
44
+
45
+ # 3.1 LR score
46
+
47
+ Building on concepts introduced in a recent, unpublished study (Men et al., 2024), we propose a novel metric for assessing layer usefulness. This metric quantifies the extent to which each layer modifies its input by measuring the cosine similarity between the input and output. Specifically, we define this as the Layer Redundancy (LR) score:
48
+
49
+ $$
50
+ L R \left(\mathbf {L} _ {\mathbf {i}}\right) = \frac {\mathbf {L} _ {\mathbf {i}} ^ {\mathbf {I}} \cdot \mathbf {L} _ {\mathbf {i}} ^ {\mathbf {O}}}{\| \mathbf {L} _ {\mathbf {i}} ^ {\mathbf {I}} \| \| \mathbf {L} _ {\mathbf {i}} ^ {\mathbf {O}} \|} \tag {1}
51
+ $$
52
+
53
+ In Eq 1 $\mathbf{L_i^I}$ refers to the input of layer, while $\mathbf{L_i^O}$ refers to the output of layer. Intuitively, the higher cosine similarity between inputs and outputs leads to higher LR score, implying that the layer is more redundant. To evaluate the score for all layers, we use the full validation set of the PG-19 data set (Rae et al., 2019), we pass the data as context through the LLMs and we sum up how much each layer processed its input according to the cosine similarity score. At the end we normalize the values linearly so that the min $(LR(\mathbf{L_i})) = 0$ and max $(LR(\mathbf{L_i})) = 1$ , guaranteeing that they range from 0 to 1. Intuitively, a LR score closer to 0 corresponds to lesser redundancy while higher LR score (close to 1) would mean high redundancy. To the best of our knowledge, our work is the first one to use a per layer importance/redundancy score to prune variable parts of layers out (explained in the following section), instead of removing whole layers or removing a fixed constant portion of the layer (Men et al., 2024).
54
+
55
+ # 3.2 Defining a per-layer percentage
56
+
57
+ Our goal is to have a function that slices variable sized parts of each layers based on their LR score
58
+
59
+ ![](images/25d25fb2462509b06195539da5d7b2b862d6cb38197d5d0711e7ce7654675032.jpg)
60
+ Figure 1: Example of the Layer Redundancy (LR) score as well as the transformations used to achieve a slice percentage of $30\%$ ( $S_P = 0.3$ ) with a base slice for all layers of $10\%$ ( $S_B = 0.1$ ). The example is shown for the 32 layers of llama3-8B.
61
+
62
+ ![](images/b4faba87150e3ec510f49b1e41ca6fb37d09855a583d6e3058efd32f978a0ac8.jpg)
63
+
64
+ ![](images/edf85d3a674a8cb095830ee6d25cec06ffac15debd9ac9dcffe384b2f506111e.jpg)
65
+
66
+ while keeping the overall average of sliced out parts acorrss all layers to be a fixed percentage of the LLM parameters specified by the user. For example, layers with higher LR values (or redundancy) can be sliced more compared to layers with lower LR score (or redundancy). To achieve this, we applied several transformations on the previously defined LR score such that we have control over how big of an impact we want the redundancy to have on the sliced percentage.
67
+
68
+ The first step is to control the average of the $LR$ score so that we can then control the average pruned percentage of the LLM. Concretely, we denote the average desired slicing percentage as $S_P$ (Slice Percentage). In order to investigate what happens as we go further away from a constant slice for each layer, we will also define $S_B$ (Slice Base) to be a fixed constant value that will be guaranteed to be sliced from each layer such that $S_B < = S_P$ . As $S_B = S_P$ , the slicing becomes constant as presented by Ashkboos et al. (2024). We experimented with different values of $S_B$ to see the effect of layer redundancy on the LLM's performance. The next step is to scale the $LR$ function so that its average is $S_P - S_B$ , thus once we add the base percentage for each layer $(S_B)$ the total average will be $S_P - S_B + S_B = S_P$ . This can be achieved by multiplying each $LR_i$ value by the ratio of $S_P - S_B$ divided by the mean of the function. This is denoted as Slice per Layer Redundancy (SLR) and shown in Eq 2.
69
+
70
+ $$
71
+ S L R \left(\mathbf {L} _ {\mathbf {i}}\right) = \mathrm {L R} _ {i} \cdot \frac {S _ {P} - S _ {B}}{\frac {1}{n} \sum_ {i = 1} ^ {n} \mathrm {L R} _ {i}} \tag {2}
72
+ $$
73
+
74
+ At the end, the Final Slice $(FS)$ for the layer $\mathbf{L_i}$ , is the sum of $SLR$ and $S_B$ as shown in Eq 3.
75
+
76
+ $$
77
+ F S \left(\mathbf {L} _ {\mathbf {i}}\right) = S L R \left(\mathbf {L} _ {\mathbf {i}}\right) + S _ {B} \tag {3}
78
+ $$
79
+
80
+ Average of $FS$ for all $n$ layers of a LLM is equal to $S_P$ as shown in eq. (4).
81
+
82
+ $$
83
+ \frac {\sum_ {i = 1} ^ {n} F S \left(\mathbf {L} _ {\mathbf {i}}\right)}{n} = S _ {P} \tag {4}
84
+ $$
85
+
86
+ # 3.3 Slicing parts of layers
87
+
88
+ The methodology in SliceGPT utilizes a specialized version of Principal Component Analysis (PCA) (Abdi and Williams, 2010) for efficient data reduction. It projects the data matrix $X$ onto a lower-dimensional subspace using the eigenvectors $Q$ and a deletion matrix $D$ . The reduced matrix $Z$ is computed as $XQD$ , where $D$ selectively omits certain components from $Q$ , resulting in a compressed representation $Z$ . The approximate reconstruction $\tilde{X}$ is obtained by $ZD^T Q^T$ , minimizing the reconstruction error $\| \mathbf{X} - \tilde{\mathbf{X}} \|^2$ . Unlike SliceGPT, we control the dimension of the matrix $D$ on a per-layer basis to achieve our dynamic slice.
89
+
90
+ # 4 Experiments
91
+
92
+ The first step of the process is to evaluate how redundant each one of the layers is using the procedure described above. We have done this for Llama3-8B and Mistral-7B (Jiang et al., 2023) using the full validation split of the pg-19 data-set (Rae et al., 2019). This will give us a $LR$ score for each layer that we then need to process into a slicing pattern. Figure 1 shows an example of a slicing pattern evaluation process for Llama3-8B having a target $S_P$ of $30\%$ and a $S_B$ of $10\%$ .
93
+
94
+ Furthermore, we evaluate Llama3-8B and Mistral-7B using different Slice Base $(S_B)$ values in increments of $2\%$ . Intuitively as we decrease the base percentage of the layers we have more extreme slicing patterns. In all our experiments we compare with the constant slice as a baseline. We experiment with Slice Percentages $(S_P)$ of $30\%$ , $35\%$ ,
95
+
96
+ <table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Acc. (↑)</td></tr><tr><td rowspan="6">Llama 3-8B</td><td rowspan="3">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan="3">Dynamic Slicing</td><td>30%</td><td>60.4%</td><td>38.4%</td><td>58.0%</td><td>42.4%</td><td>12.96</td><td>49.8%</td></tr><tr><td>35%</td><td>58.4%</td><td>36.3%</td><td>57.2%</td><td>39.3%</td><td>15.64</td><td>47.8%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.4%</td><td>36.8%</td><td>19.11</td><td>45.8%</td></tr><tr><td rowspan="6">Mistral-7B</td><td rowspan="3">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan="3">Dynamic Slicing</td><td>30%</td><td>63.1%</td><td>38.6%</td><td>60.2%</td><td>51.7%</td><td>8.76</td><td>53.4%</td></tr><tr><td>35%</td><td>58.5%</td><td>34.9%</td><td>55.7%</td><td>45.8%</td><td>10.38</td><td>48.8%</td></tr><tr><td>40%</td><td>57.9%</td><td>31.9%</td><td>54.1%</td><td>40.1%</td><td>12.62</td><td>46.0%</td></tr></table>
97
+
98
+ Table 1: Comparison of our technique in the smallest perplexity setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison
99
+
100
+ ![](images/052946021ff3376f6639c9b48655c84a9e14a256c5713fc8875f3edd6259c072.jpg)
101
+ Figure 2: Llama3-8B with $40\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $40\%$ slice.
102
+
103
+ $40\%$ , these representing the percentage of the LLM that we prune. For evaluations, we use: Piqa (Bisk et al., 2019), Hellaswag (Zellers et al., 2019), Winogrande (Sakaguchi et al., 2019), Arc Easy (Clark et al., 2018), and Wikitextv2 (Merit et al., 2016) within the library lm-evaluation-harness (Gao et al., 2023). For more experimental details, please refer to Section A.1 in the Appendix.
104
+
105
+ # 5 Results
106
+
107
+ We will first explore how the accuracy is affected by our dynamic slicing. Figure 2 (presented above), and Figures 3, 4, 5, 6, 7 (presented in Appendix) show the behaviors of Llama3-8b and Mistral-7b on $30\%$ , $35\%$ , $40\%$ pruned percentage with respect to the accuracy on four data sets and perplexity on Wikitextv2. As observed in Figure 2, for the Llama3-8B model, the accuracy is improved across all of the 5 evaluated datasets, and the perplexity decreases by as much as 1.4 while pruning the exact same amount from the model. We also see huge accuracy improvements from $52\%$ to $57\%$ on Winogrande which has a baseline accuracy of
108
+
109
+ $50\%$ . An important finding in all cases is that the perplexity decreases and task accuracy (mostly) increases when we started to decrease the $S_B$ (until a certain point) showcasing LLMs benefit more from dynamic slicing as proposed in our work.
110
+
111
+ To estimate a good $S_B$ in our proposed dynamic slicing method, we evaluated the accuracy at the $S_B$ point that achieves the minimum perplexity on Wikitextv2, thus using it as a calibration data set. The results shown in Table 1 indicate that our method outperforms SliceGPT on average for all pruning ratios and models explored. We also show even better results using the median accuracy over all $S_B$ values (Table 3) and mean accuracy values (Table 4), leading us to believe that there are even better ways to choose an $S_B$ value than the minimum perplexity.
112
+
113
+ # 5.1 Analyses
114
+
115
+ To highlight strengths of pruning with our dynamic slicing, we also show comparison with ShortGPT (Men et al., 2024) where entire set of layers are pruned or removed. Please note that techniques such as ShortGPT that have shown to be effective,
116
+
117
+ <table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan="6">Llama 3-8B</td><td rowspan="3">ShortGPT</td><td>28.1%</td><td>62.0%</td><td>32.5%</td><td>57.5%</td><td>39.4%</td><td>2.2 ×10^4</td><td>47.9%</td></tr><tr><td>34.3%</td><td>61.2%</td><td>34.3%</td><td>55.8%</td><td>38.1%</td><td>4.9 ×10^4</td><td>47.4%</td></tr><tr><td>37.5%</td><td>60.0%</td><td>34.1%</td><td>54.8%</td><td>37.5%</td><td>1.1 ×10^5</td><td>46.6%</td></tr><tr><td rowspan="3">Dynamic Slicing</td><td>30%</td><td>60.4%</td><td>38.4%</td><td>58.0%</td><td>42.4%</td><td>1.3 ×10^1</td><td>49.8%</td></tr><tr><td>35%</td><td>58.4%</td><td>36.3%</td><td>57.2%</td><td>39.3%</td><td>1.5 ×10^1</td><td>47.8%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.4%</td><td>36.8%</td><td>1.9 ×10^1</td><td>45.8%</td></tr><tr><td rowspan="6">Mistral-7B</td><td rowspan="3">ShortGPT</td><td>28.1%</td><td>65.0%</td><td>39.8%</td><td>63.3%</td><td>46.6%</td><td>1.6 ×10^2</td><td>53.9%</td></tr><tr><td>34.3%</td><td>57.2%</td><td>28.6%</td><td>56.1%</td><td>30.3%</td><td>1.1 ×10^4</td><td>43.1%</td></tr><tr><td>37.5%</td><td>55.6%</td><td>29.3%</td><td>56.7%</td><td>30.0%</td><td>2.4 ×10^4</td><td>42.9%</td></tr><tr><td rowspan="3">Dynamic Slicing</td><td>30%</td><td>63.1%</td><td>38.6%</td><td>60.2%</td><td>51.7%</td><td>8.7 ×10^0</td><td>53.4%</td></tr><tr><td>35%</td><td>58.5%</td><td>34.9%</td><td>55.7%</td><td>45.8%</td><td>1.0 ×10^1</td><td>48.8%</td></tr><tr><td>40%</td><td>57.9%</td><td>31.9%</td><td>54.1%</td><td>40.1%</td><td>1.2 ×10^1</td><td>46.0%</td></tr></table>
118
+
119
+ Table 2: Comparison of our technique with ShortGPT. For each of the pruning rations of our technique, the closest pruning ratio of ShortGPT is reported. Please note that removing 9, 11, and 12 layers completely as in ShortGPT results in $28.1\%$ , $34.3\%$ , and $37.5\%$ pruned ratio respectively. Bold means higher value in comparison.
120
+
121
+ often provide lesser flexibility in pruning ratio as entire set of layers are removed. For example, removing 9 (least important) layers out of 32 layers results in a pruning ratio of $28.1\%$ as shown in Table 2.
122
+
123
+ As shown in Table 2, our dynamic slicing with SliceGPT outperforms ShortGPT in majority of the cases even with higher pruning ration i.e., $28.1\%$ vs. $30\%$ , $34.3\%$ vs. $35\%$ , and $37.5\%$ vs. $40\%$ . Especially for higher pruning ratio (i.e., $35\%$ or $40\%$ ), our dynamic slicing based SliceGPT approach outperforms ShortGPT with a larger margin across the four classification datasets shown in Table 2. Importantly, removing set of layers completely as in ShortGPT lead to very high perplexity values suggesting high degradation in text generation quality. On the other hand, our proposed dynamic slicing technique with SliceGPT results in exponentially better perplexity score highlighting benefits of pruning only parts of LLM layers instead of removing entire layers.
124
+
125
+ Additionally, our variable slicing scaled from layer importance can be easily extended and merged with techniques like ShortGPT by simply removing the least important layers completely and slicing moderately important layers using our proposed approach. This hybrid method leveraging the strengths of both techniques, could potentially enhance model efficiency and performance. We leave this for exploration in future work.
126
+
127
+ # 6 Conclusions
128
+
129
+ In conclusion, we propose a novel dynamic slicing strategy that shows considerable improvements in
130
+
131
+ accuracy when compared against a fixed slicing method that prunes the same amount of parameters on average. We also show that layer redundancy is a powerful metric when removing percentages of layers, and also that there is room for improvement, leading to possible future work in the field.
132
+
133
+ # Limitations
134
+
135
+ While our study introduces significant advancements in the dynamic pruning of Large Language Models, there are several limitations that are worth discussing:
136
+
137
+ - The effectiveness of our method has been demonstrated predominantly on the Llama3-8B and Mistral-7B models. However, its performance may vary with other architectures, especially those with different layer configurations or learning dynamics.
138
+ - We only experiment with one method to choose the $S_B$ value (that gives lowest perplexity) and there can be other methods for estimating $S_B$ which we leave it to more focused future works.
139
+ - Limited computational resources have constrained our ability to test on larger models. We believe that exploring the efficacy of our dynamic pruning method on more extensive architectures could provide valuable insights into its scalability and performance.
140
+
141
+ # Ethical Considerations
142
+
143
+ Ethical considerations are central to our development of a dynamic pruning method for large language models. Our research strives to reduce the computational costs and environmental impact of deploying large-scale models, aligning with the ethical responsibility to promote environmental sustainability and minimize negative consequences such as excessive energy consumption. This not only makes LLMs more accessible but also supports broader societal needs by enabling more efficient processing solutions that respect both individual rights and community values. By enhancing the efficiency of these models, we may enable populations with limited computational resources to harness the power of advanced NLP tools.
144
+
145
+ Furthermore, our methodology emphasizes the importance of using data sets that are free from harmful content. By using data sets that do not contain harmful data, we aim to ensure that the resulting models avoid biased outputs or content that could reduce their utility in practical applications. Ensuring the integrity and appropriateness of pruned models is essential, as these models often play significant roles in decision-making processes across various sectors. In this context, our approach is designed to be transparent and responsible, providing clear documentation and rigorous evaluation to maintain the reliability and fairness of the models.
146
+
147
+ Also, we have selected a color scheme that prioritizes accessibility, ensuring the visuals are clear and discernible to individuals with color vision deficiencies. This inclusive approach reflects our commitment to making our research accessible to a wider audience, including those with varying visual abilities.
148
+
149
+ # References
150
+
151
+ Hervé Abdi and Lynne J Williams. 2010. Principal component analysis. Wiley interdisciplinary reviews: computational statistics, 2(4):433-459.
152
+ Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman. 2024. Slicegpt: Compress large language models by deleting rows and columns. Preprint, arXiv:2401.15024.
153
+ Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. 2019. Piqa: Reasoning about physical commonsense in natural language. *Preprint*, arXiv:1911.11641.
154
+
155
+ Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv:1803.05457v1.
156
+ Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2024. Qlora: Efficient finetuning of quantized llms. Advances in Neural Information Processing Systems, 36.
157
+ Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. 2023. A framework for few-shot language model evaluation.
158
+ Andrey Gromov, Kushal Tirumala, Hassan Shapourian, Paolo Glorioso, and Daniel A. Roberts. 2024. The unreasonable ineffectiveness of the deeper layers. Preprint, arXiv:2403.17887.
159
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.
160
+ Torsten Hoefer, Dan Alistarh, Tal Ben-Nun, Nikoli Dryden, and Alexandra Peste. 2021. Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks. Journal of Machine Learning Research, 22(241):1-124.
161
+ Cheng-Yu Hsieh, Chun-Liang Li, CHIH-KUAN YEH, Hootan Nakhost, Yasuhisa Fujii, Alex Jason Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. 2023. Distilling step-by-step! outperforming larger language models with less training data and smaller model sizes. In The 61st Annual Meeting Of The Association For Computational Linguistics.
162
+ 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.
163
+ Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7b. Preprint, arXiv:2310.06825.
164
+ Darioush Kevian, Usman Syed, Xingang Guo, Aaron Havens, Geir Dullerud, Peter Seiler, Lianhui Qin, and Bin Hu. 2024. Capabilities of large language models in control engineering: A benchmark study on gpt-4, claude 3 opus, and gemini 1.0 ultra. arXiv preprint arXiv:2404.03647.
165
+
166
+ Shuming Ma, Hongyu Wang, Lingxiao Ma, Lei Wang, Wenhui Wang, Shaohan Huang, Li Dong, Ruiping Wang, Jilong Xue, and Furu Wei. 2024. The era of 1-bit llms: All large language models are in 1.58 bits. arXiv preprint arXiv:2402.17764.
167
+ Xinyin Ma, Gongfan Fang, and Xinchao Wang. 2023. Llm-pruner: On the structural pruning of large language models. Advances in neural information processing systems, 36:21702-21720.
168
+ Xin Men, Mingyu Xu, Qingyu Zhang, Bingning Wang, Hongyu Lin, Yaojie Lu, Xianpei Han, and Weipeng Chen. 2024. Shortgpt: Layers in large language models are more redundant than you expect. Preprint, arXiv:2403.03853.
169
+ Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2016. Pointer sentinel mixture models. Preprint, arXiv:1609.07843.
170
+ Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, Chloe Hillier, and Timothy P Lillicrap. 2019. Compressive transformers for long-range sequence modelling. arXiv preprint.
171
+ Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2019. WINOGRANDE: an adversarial winograd schema challenge at scale. CoRR, abs/1907.10641.
172
+ 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.
173
+ Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.
174
+ Zhongwei Wan, Xin Wang, Che Liu, Samiul Alam, Yu Zheng, Zhongnan Qu, Shen Yan, Yi Zhu, Quanlu Zhang, Mosharaf Chowdhury, et al. 2023. Efficient large language models: A survey. arXiv preprint arXiv:2312.03863.
175
+ Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, and Xiaofei He. 2024. Model compression and efficient inference for large language models: A survey. arXiv preprint arXiv:2402.09748.
176
+ Yuhui Xu, Lingxi Xie, Xiaotao Gu, Xin Chen, Heng Chang, Hengheng Zhang, Zhensu Chen, Xiaopeng Zhang, and Qi Tian. 2023. Qa-lora: Quantization-aware low-rank adaptation of large language models. arXiv preprint arXiv:2309.14717.
177
+ Yifei Yang, Zouying Cao, and Hai Zhao. 2024. Laco: Large language model pruning via layer collapse. arXiv preprint arXiv:2402.11187.
178
+
179
+ Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4791-4800, Florence, Italy. Association for Computational Linguistics.
180
+ Xunyu Zhu, Jian Li, Yong Liu, Can Ma, and Weiping Wang. 2023. A survey on model compression for large language models. arXiv preprint arXiv:2308.07633.
181
+
182
+ # A Appendix
183
+
184
+ # A.1 Experimental details
185
+
186
+ For all our experiments we used 4 NVIDIA A100 GPUs, with 80GB of VRAM each, and running all of the data sets on one slicing pattern using one NVIDIA A100 takes around 30 minutes, leading to a total time of 10 hours for a plot that has 20 possible $S_B$ values. We use a total of 1000 samples for each data set in all our configurations. Also, calculating the LR score can take upwards of 30-40 minutes per model on 1 NVIDIA A100 GPU, but that only has to be computed once.
187
+
188
+ # A.2 Tables with mean/median results
189
+
190
+ For a detailed evaluation, Table 3 compares our technique in the median setting against the constant slicing proposed by SliceGPT, and Table 4 provides a comparison in the average setting.
191
+
192
+ # A.3 Llama3-8B and Mistral-7B in various scenarios
193
+
194
+ Visual representations of our experiments are shown across several figures: Figure 3 and Figure 4 illustrate the performance of Llama3-8B with $30\%$ and $35\%$ of the network sliced, respectively, comparing it to the baseline accuracy achieved by SliceGPT. Similarly, Figures 5, 6, and 7 display the results for Mistral-7B with $30\%$ , $35\%$ , and $40\%$ of the network sliced, again benchmarked against SliceGPT's constant slice accuracies. In each figure, the red line denotes the baseline accuracy set by SliceGPT for the respective slicing percentages.
195
+
196
+ <table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan="6">LLaMa-3-8B</td><td rowspan="3">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan="3">Dynamic Slicing</td><td>30%</td><td>60.5%</td><td>38.1%</td><td>57.4%</td><td>43.0%</td><td>13.07</td><td>49.7%</td></tr><tr><td>35%</td><td>58.7%</td><td>35.8%</td><td>56.2%</td><td>39.6%</td><td>15.75</td><td>47.6%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.2%</td><td>55.0%</td><td>37.2%</td><td>19.21</td><td>46.1%</td></tr><tr><td rowspan="6">Mistral-7B</td><td rowspan="3">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan="3">Dynamic Slicing</td><td>30%</td><td>62.6%</td><td>38.6%</td><td>59.5%</td><td>52.4%</td><td>8.80</td><td>53.4%</td></tr><tr><td>35%</td><td>59.2%</td><td>36.0%</td><td>56.9%</td><td>45.1%</td><td>10.42</td><td>49.3%</td></tr><tr><td>40%</td><td>57.9%</td><td>34.3%</td><td>54.1%</td><td>40.0%</td><td>12.68</td><td>46.5%</td></tr></table>
197
+
198
+ Table 3: Comparison of our technique in the median setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison
199
+
200
+ <table><tr><td>Model</td><td>Technique</td><td>Pruned</td><td>Piqa Acc. (↑)</td><td>Hellaswag Acc. (↑)</td><td>Winogrande Acc. (↑)</td><td>Arc Easy Acc. (↑)</td><td>Wikitextv2 Perplexity (↓)</td><td>Average Acc. (↑)</td></tr><tr><td rowspan="6">LLaMa-3-8B</td><td rowspan="3">SliceGPT</td><td>30%</td><td>59.3%</td><td>37.2%</td><td>56.4%</td><td>42.9%</td><td>13.37</td><td>49.0%</td></tr><tr><td>35%</td><td>57.7%</td><td>34.1%</td><td>54.3%</td><td>39.3%</td><td>16.58</td><td>46.4%</td></tr><tr><td>40%</td><td>57.0%</td><td>32.4%</td><td>51.8%</td><td>35.9%</td><td>20.69</td><td>44.3%</td></tr><tr><td rowspan="3">Dynamic Slicing</td><td>30%</td><td>60.6%</td><td>38.0%</td><td>57.4%</td><td>43.0%</td><td>13.11</td><td>49.8%</td></tr><tr><td>35%</td><td>58.6%</td><td>35.6%</td><td>55.8%</td><td>39.7%</td><td>15.9</td><td>47.4%</td></tr><tr><td>40%</td><td>58.1%</td><td>34.0%</td><td>54.6%</td><td>37.1%</td><td>19.34</td><td>46.0%</td></tr><tr><td rowspan="6">Mistral-7B</td><td rowspan="3">SliceGPT</td><td>30%</td><td>62.6%</td><td>38.0%</td><td>59.7%</td><td>51.1%</td><td>8.87</td><td>52.9%</td></tr><tr><td>35%</td><td>58.5%</td><td>35.9%</td><td>57.6%</td><td>42.8%</td><td>10.80</td><td>48.7%</td></tr><tr><td>40%</td><td>57.1%</td><td>33.6%</td><td>54.1%</td><td>38.2%</td><td>13.33</td><td>45.8%</td></tr><tr><td rowspan="3">Dynamic Slicing</td><td>30%</td><td>62.6%</td><td>38.1%</td><td>59.5%</td><td>52.3%</td><td>8.81</td><td>53.1%</td></tr><tr><td>35%</td><td>59.0%</td><td>35.7%</td><td>57.0%</td><td>44.8%</td><td>10.50</td><td>49.1%</td></tr><tr><td>40%</td><td>57.8%</td><td>33.6%</td><td>54.2%</td><td>39.6%</td><td>12.76</td><td>46.3%</td></tr></table>
201
+
202
+ Table 4: Comparison of our technique in the average setting against the constant slicing proposed by SliceGPT, bold means higher value in comparison
203
+
204
+ ![](images/c7ce30a07735fc795c3d9b7b1a2e780e20936e5c34a403e62004f25c5f6d6c1b.jpg)
205
+ Figure 3: Llama3 8B with $30\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $30\%$ slice.
206
+
207
+ ![](images/7f75875b4fcaf269b606b6cf4b126977085758bfbf6a05b108f20da366097358.jpg)
208
+
209
+ ![](images/cf716b56698f78c91c2ec81fd63990e6d63773f8d120aac9ccc4c324e531cee0.jpg)
210
+
211
+ ![](images/8b5550ae69638fa756870b4e779f763307cee8c0736087ddc259572fef268495.jpg)
212
+
213
+ ![](images/a02e40a0ac2a3b9f69ff2132f53022ce238907f52477edaac5900b567833eef9.jpg)
214
+
215
+ ![](images/8a3aa77ad6f53a0bcf370ca4357ca0ea131c69c7145024888ac43d4aa8157ce4.jpg)
216
+ Figure 4: Llama3 8B with $35\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $35\%$ slice.
217
+
218
+ ![](images/357b31bc3f7a1fe2c013785ea9d0713763ec9f30dbaf85fa205bf272957a1a82.jpg)
219
+
220
+ ![](images/4ff78da6986225802d4bb5e7d74301d17237d06e30621f0e844c294f3b14dd12.jpg)
221
+
222
+ ![](images/165098b0b36ded66ab426537fdccda6a37caf52e8c39fcb30390b210c3d47c1b.jpg)
223
+
224
+ ![](images/4550a78f83a74eaf84a265b88a86acea7c5c0a57274b86f51f3a4b4db3486ef3.jpg)
225
+
226
+ ![](images/853b7cc23a0b15ce1ca63f95624345e11259924c35fdabbd9acee1be6d229e44.jpg)
227
+ Figure 5: Mistral 7B with $30\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $30\%$ slice.
228
+
229
+ ![](images/6324f4b08442d619869abfef0e6dad3eac6db108d0c15d4e8d91995996d8c10d.jpg)
230
+
231
+ ![](images/8b10f27a355cc5ad168842ef83afa013641c63a73b3fcb353c9fd1ad3d8dfa4d.jpg)
232
+
233
+ ![](images/26582c169bb637e3ea1bb74fc276838f9008b5ededa40bb329b6b2d7232eaf49.jpg)
234
+
235
+ ![](images/efccffd827912cba07802e31b9fb50dd8473dd094616490ae38336bb48cb5b93.jpg)
236
+
237
+ ![](images/c98d9ccd9d245673a5f556bd1f90023592709981b1fb5beac56c75aa57f2ab04.jpg)
238
+ Figure 6: Mistral 7B with $35\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $35\%$ slice.
239
+
240
+ ![](images/291e329854cb7b5202c87bbbf82096d5a6204bd00383ef46ad3b2c9633d8bcf0.jpg)
241
+
242
+ ![](images/3d1b96ee5ff0bd4e74c81bfc1eea93ba3fe2b2c16daf728982fbafad7de74884.jpg)
243
+
244
+ ![](images/b4f8ee74ead9b1114904764e49c6d19e2a51aa43fb913d0686e2b482901c62e7.jpg)
245
+
246
+ ![](images/27ed876a57e6a686f3d28300611f69804aec939e7c5951c5b5fef96b888edd7d.jpg)
247
+
248
+ ![](images/f4a08be91aae61b39a579ee3970083b28f6cf060c646645def2314db2a13dccf.jpg)
249
+ Figure 7: Mistral 7B with $40\%$ of the network sliced on average, the red line is the baseline accuracy achieved by SliceGPT with a constant $40\%$ slice.
250
+
251
+ ![](images/f6b34db49d60cfcb2e29ca52dfa142cf0887bb0a49c745a29743ec03912e2ff9.jpg)
252
+
253
+ ![](images/82409697577992dc44ab4bf8c40d79056afcddfe127b7af1cb4a747536c5d037.jpg)
254
+
255
+ ![](images/9806205095e848e4fa73ffc243c2e4cb753b39763e3fcf2ca29b3de8421fc106.jpg)
256
+
257
+ ![](images/1965bc8153649cec67894520a44977576833aa6559e3083f84a3047b2e65e55d.jpg)
2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd4d7d2cf415d639db64d3519e1244a67c83126566bfe33625d5e39657939c07
3
+ size 798669
2024/Change Is the Only Constant_ Dynamic LLM Slicing based on Layer Redundancy/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/84e3f209-ffa0-4533-97e7-a3c6efc30d28_content_list.json ADDED
@@ -0,0 +1,1909 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Characterizing LLM Abstention Behavior in Science QA with Context Perturbations",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 134,
8
+ 89,
9
+ 867,
10
+ 130
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Bingbing Wen<sup>1</sup> Bill Howe<sup>1</sup> Lucy Lu Wang<sup>1,2</sup>",
17
+ "bbox": [
18
+ 292,
19
+ 153,
20
+ 709,
21
+ 171
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup>University of Washington, <sup>2</sup>Allen Institute for AI {bingbw, billhowe, lucylw}@uw.edu",
28
+ "bbox": [
29
+ 294,
30
+ 171,
31
+ 705,
32
+ 206
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 260,
42
+ 252,
43
+ 342,
44
+ 268
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "The correct model response in the face of uncertainty is to abstain from answering a question so as not to mislead the user. In this work, we study the ability of LLMs to abstain from answering context-dependent science questions when provided insufficient or incorrect context. We probe model sensitivity in several settings: removing gold context, replacing gold context with irrelevant context, and providing additional context beyond what is given. In experiments on four QA datasets with six LLMs, we show that performance varies greatly across models, across the type of context provided, and also by question type; in particular, many LLMs seem unable to abstain from answering boolean questions using standard QA prompts. Our analysis also highlights the unexpected impact of abstention performance on QA task accuracy. Counter-intuitively, in some settings, replacing gold context with irrelevant context or adding irrelevant context to gold context can improve abstention performance in a way that results in improvements in task performance. Our results imply that changes are needed in QA dataset design and evaluation to more effectively assess the correctness and downstream impacts of model abstention.<sup>1</sup>",
51
+ "bbox": [
52
+ 141,
53
+ 281,
54
+ 463,
55
+ 664
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 114,
65
+ 678,
66
+ 260,
67
+ 695
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Question-answering (QA) in scientific settings is often defined as a context-dependent task, where models answer questions based on provided context or relevant context it identifies. When the provided or retrieved context is itself unreliable or inconsistent, however, the correct model response should be to abstain from answering. Prior work has studied the abstention capabilities of LLMs (Yin et al., 2023; Amayuelas et al., 2024) and proposed approaches to improve abstention when presented with insufficient context (Zhou et al., 2023; Slobod",
74
+ "bbox": [
75
+ 112,
76
+ 706,
77
+ 490,
78
+ 883
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/1882d4e388315291ad475be6d8591b214c2e2bd539c725ca5c07493bdd8e46a1.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Our framework to probe the context sensitivity of LLMs for science QA. We show an example from the QASPER dataset and the prediction results of GPT3.5 under different context perturbation settings. While the model fails to abstain when context is removed, it abstains appropriately when random context is provided."
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 515,
91
+ 252,
92
+ 877,
93
+ 494
94
+ ],
95
+ "page_idx": 0
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "kin et al., 2023), but these approaches focus on general domain question-answering (e.g., SQuAD2) against a narrow range of models (e.g., ChatGPT). As we show in our experiments (§5.2), general domain settings produce highly divergent results from scientific QA settings, and different model architectures also exhibit differing abilities to abstain. Further, as new LLMs continue to be developed and released, we need an extensible way to measure their ability to abstain from answering questions when provided context is irrelevant or uncertain.",
100
+ "bbox": [
101
+ 507,
102
+ 613,
103
+ 884,
104
+ 789
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "To address these challenges, we introduce a framework to assess LLM abstention in science question-answering by removing, replacing, and augmenting provided contexts to control the answerability of questions. Using this framework, we probe abstention performance of six LLMs (LLama2, Vicuna, Flan-T5, Mistral, GPT3.5, and GPT4o) on one general domain QA dataset",
111
+ "bbox": [
112
+ 507,
113
+ 790,
114
+ 885,
115
+ 919
116
+ ],
117
+ "page_idx": 0
118
+ },
119
+ {
120
+ "type": "page_footnote",
121
+ "text": "$^{1}$ Code is publicly available at https://github.com/ bbwen/llm_scienceqa.",
122
+ "bbox": [
123
+ 112,
124
+ 891,
125
+ 489,
126
+ 917
127
+ ],
128
+ "page_idx": 0
129
+ },
130
+ {
131
+ "type": "page_number",
132
+ "text": "3437",
133
+ "bbox": [
134
+ 480,
135
+ 927,
136
+ 521,
137
+ 940
138
+ ],
139
+ "page_idx": 0
140
+ },
141
+ {
142
+ "type": "footer",
143
+ "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 3437-3450 November 12-16, 2024 ©2024 Association for Computational Linguistics",
144
+ "bbox": [
145
+ 216,
146
+ 945,
147
+ 781,
148
+ 973
149
+ ],
150
+ "page_idx": 0
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "(SQuAD2) and three scientific QA datasets (PubmedQA, BioASQ, QASPER). Several of these datasets include unanswerable questions by design, allowing us to analyze interactions between question answerability and noisy context. Our work aims to answer the following: (i) How well do LLMs abstain from answering questions when the correct context is not provided? (ii) How do context perturbations impact task performance and abstention performance? And (iii) How does question type impact task performance and abstention performance? We summarize our contributions below:",
155
+ "bbox": [
156
+ 112,
157
+ 84,
158
+ 492,
159
+ 277
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "list",
165
+ "sub_type": "text",
166
+ "list_items": [
167
+ "- We introduce a framework to study LLM abstention for science QA. Specifically, we probe models' ability to abstain from answering questions when the correct context is not provided, and how abstention is impacted by context perturbations and question type.",
168
+ "- Using this framework, we investigate the task and abstention performance of six LLMs on four QA datasets, ranging from general-domain factoid QA to context-sensitive, document-based science QA (§5). Our results show that no model consistently abstains in all settings where abstention is expected (unanswerable questions and no context/random context settings), though some models demonstrate a stronger ability to abstain for more context-dependent QA tasks, and instruction-tuned models are generally better at following abstention instructions.",
169
+ "- We investigate the impacts of context perturbations (§5.1) and question type (§5.2) on task accuracy and abstention ability. Substituting or augmenting context with random irrelevant context consistently facilitates better abstention performance across models and datasets, which can reflect as a counter-intuitive improvement in task performance. We also find that yes-no questions tend to interfere with all models' ability to abstain relative to other question types."
170
+ ],
171
+ "bbox": [
172
+ 115,
173
+ 281,
174
+ 492,
175
+ 747
176
+ ],
177
+ "page_idx": 1
178
+ },
179
+ {
180
+ "type": "text",
181
+ "text": "2 Related Work",
182
+ "text_level": 1,
183
+ "bbox": [
184
+ 112,
185
+ 762,
186
+ 270,
187
+ 778
188
+ ],
189
+ "page_idx": 1
190
+ },
191
+ {
192
+ "type": "text",
193
+ "text": "Prompting LLMs for Science QA The few-shot capability of LLMs have been applied successfully to knowledge-intensive tasks like question answering (Wei et al., 2021; Chowdhery et al., 2024; Nori et al., 2023). Prompting strategies such as chain-of-thought (Wei et al., 2024), least-to-most (Zhou et al., 2022), and others (Kojima et al., 2024; Wang et al., 2022) significantly improve LLMs' zero or",
194
+ "bbox": [
195
+ 112,
196
+ 790,
197
+ 490,
198
+ 920
199
+ ],
200
+ "page_idx": 1
201
+ },
202
+ {
203
+ "type": "text",
204
+ "text": "few-shot abilities on diverse QA benchmarks in the general (Rajpurkar et al., 2018; Yang et al., 2015) and scientific (Taylor et al., 2022; Pereira et al., 2023) domains. Pereira et al. (2023) adopt retrieve-than-read on the QASPER dataset (Dasigi et al., 2021), showing that current retrievers are the main bottleneck and readers (LLMs) are already performing at the human level. Inspired by this finding, we study how irrelevant or incorrect contexts (mimicking retrieval errors) can impact LLM performance on context-intensive QA tasks.",
205
+ "bbox": [
206
+ 507,
207
+ 84,
208
+ 885,
209
+ 262
210
+ ],
211
+ "page_idx": 1
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "Abstention in LLMs Liao et al. (2022) introduced a prompt-tuning strategy to enhance performance on unanswerable questions by mapping questions to specific templates. Beyond prompting strategies, Cole et al. (2023) demonstrated that sampling methods are more effective at modulating uncertainty compared to relying on the model's likelihood. Other approaches, such as data augmentation, have been used to steer models toward abstention (Zhu et al., 2019). Asai and Choi (2021) provided a detailed analysis of language models' abstention capabilities, identifying paragraph selection and answerability prediction as key areas for improvement. Recent work has introduced new datasets to investigate whether LLMs are aware of their limitations (Yin et al., 2023; Amayuelas et al., 2024), while Slobodkin et al. (2023) revealed that differences in LLM hidden states can delineate the boundary between known and unknown information. Abstention is also closely linked to out-of-distribution (OOD) detection and selective generation. OOD scores derived from conditional language models (Ren et al., 2022) or task representations (Chen et al., 2023) have been employed to abstain from generating low-quality outputs. In this work, we systematically characterize LLM abstention capabilities in context-dependent science question-answering tasks.",
216
+ "bbox": [
217
+ 507,
218
+ 275,
219
+ 885,
220
+ 728
221
+ ],
222
+ "page_idx": 1
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "Context Perturbation Prior work studying input perturbations for NLP tasks include approaches such as model-agnostic input transformations (Liang et al., 2022; Ravichander et al., 2022; Giorgi et al., 2022) and adversarial example generation (Jia and Liang, 2017; Wang et al., 2021). Liang et al. (2022) use semantics-preserving and semantics-altering perturbations in their robustness evaluation of LLMs. Pretrained language models can be negatively impacted by irrelevant context (Chowdhery et al., 2024; Liang et al., 2022),",
227
+ "bbox": [
228
+ 507,
229
+ 741,
230
+ 885,
231
+ 920
232
+ ],
233
+ "page_idx": 1
234
+ },
235
+ {
236
+ "type": "page_number",
237
+ "text": "3438",
238
+ "bbox": [
239
+ 480,
240
+ 928,
241
+ 521,
242
+ 940
243
+ ],
244
+ "page_idx": 1
245
+ },
246
+ {
247
+ "type": "table",
248
+ "img_path": "images/448533ee3f54a081226dd7c28f61620fa1daefe40c13330d18cf289f062ea985.jpg",
249
+ "table_caption": [],
250
+ "table_footnote": [],
251
+ "table_body": "<table><tr><td>Dataset</td><td>Context length (words)</td><td>Unans. proporti-tion</td><td>Answer types</td><td>Test set size</td></tr><tr><td>SQuAD2</td><td>128</td><td>0.5</td><td>Ext</td><td>11873</td></tr><tr><td>PubmedQA</td><td>204</td><td>0.1</td><td>Bool</td><td>500</td></tr><tr><td>BioASQ</td><td>221</td><td>0.0</td><td>Bool</td><td>140</td></tr><tr><td>QASPER</td><td>149</td><td>0.1</td><td>Ext/Abs/Bool</td><td>1451</td></tr></table>",
252
+ "bbox": [
253
+ 115,
254
+ 80,
255
+ 484,
256
+ 181
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "Table 1: QA Dataset statistics.",
263
+ "bbox": [
264
+ 194,
265
+ 184,
266
+ 403,
267
+ 198
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "e.g., Shi et al. (2023) injected irrelevant numerical context for the MathQA dataset, after which ChatGPT performance dramatically decreased. However, Liang et al. (2022) evaluated T5 (Raffel et al., 2020) and PaLM (Chowdhery et al., 2024), demonstrating that finetuning these models with counterfactual and irrelevant contexts can improve model robustness to noisy context. Additionally, Liu et al. (2023) created a benchmark to systematically assess LLMs' resilience against counterfactual knowledge derived from external texts, while Zou et al. (2024) proposed an attack method that introduces malicious texts into the knowledge base of a RAG system to manipulate the LLM into generating an attacker-specified response. In our framework, we leverage context perturbations to investigate the LLM abstention behavior for science QA, finding occasional counter-intuitive interactions between abstention and task performance.",
274
+ "bbox": [
275
+ 112,
276
+ 225,
277
+ 490,
278
+ 533
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "3 Datasets",
285
+ "text_level": 1,
286
+ "bbox": [
287
+ 112,
288
+ 548,
289
+ 223,
290
+ 562
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "We conduct experiments on four QA datasets: SQuAD2 (Rajpurkar et al., 2018), PubmedQA (Jin et al., 2019), BioASQ (Nentidis et al., 2021), and QASPER (Dasigi et al., 2021). Dataset statistics are provided in Table 1. These datasets span general and science domains, and include extractive, abstractive, and boolean questions.",
297
+ "bbox": [
298
+ 112,
299
+ 576,
300
+ 489,
301
+ 688
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "list",
307
+ "sub_type": "text",
308
+ "list_items": [
309
+ "- SQuAD2 is a general-domain reading comprehension QA dataset. Answer contexts are extracted from Wikipedia.",
310
+ "- PubmedQA is a biomedical QA dataset. Questions are automatically derived from PubMed paper titles and are answered from the conclusion sections of the corresponding abstracts. All questions can be answered Yes/No/Maybe.",
311
+ "- BioASQ includes Yes/No questions that are formulated by biomedical experts, reflecting real-life information needs encountered during their work. Answers are provided by medical experts from paper abstracts."
312
+ ],
313
+ "bbox": [
314
+ 115,
315
+ 695,
316
+ 489,
317
+ 917
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "- QASPER is a full document science QA dataset. Questions are written by domain experts and answers are annotated from the full text of associated computer science papers. Questions can be boolean, extractive, or abstractive, and multiple answers may be provided for each question.",
324
+ "bbox": [
325
+ 510,
326
+ 84,
327
+ 884,
328
+ 181
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "Unanswerable questions Three of these datasets contain unanswerable questions (proportions in Table 1, examples in Table 2). SQuAD2 introduced unanswerable questions in machine reading comprehension; these unanswerable questions were curated by altering questions through negation, antonym swaps, entity swaps, mutual exclusion, impossible conditions, and other ways which make it such that the context paragraph no longer implies any answer. In SQuAD2, \"unanswerable\" questions imply irrelevant context passages. For PubmedQA, questions can be answered \"yes\", \"no\", or \"maybe\", and we interpret \"maybe\" as \"unanswerable\"; therefore, \"unanswerable\" in PubmedQA can be interpreted as answers with high uncertainty based on the given context. For QASPER, \"unanswerable\" questions are expert-labeled, and mean that no answer is available in the given document.",
335
+ "bbox": [
336
+ 507,
337
+ 189,
338
+ 884,
339
+ 479
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "4 Framework",
346
+ "text_level": 1,
347
+ "bbox": [
348
+ 507,
349
+ 491,
350
+ 648,
351
+ 506
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "We describe our framework in terms of prompting strategies, context perturbation methods, the choice of models and handling of model output, and evaluation metrics.",
358
+ "bbox": [
359
+ 507,
360
+ 517,
361
+ 882,
362
+ 580
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "4.1 Prompting strategies",
369
+ "text_level": 1,
370
+ "bbox": [
371
+ 507,
372
+ 593,
373
+ 719,
374
+ 608
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "We adopt prompting templates that achieved the best performance based on recent work (Pereira et al., 2023). We refer to these templates as constrained prompts since answer constraints (e.g., \"Answer 'Yes' or 'No' for boolean questions\") are added to achieve better task performance. For datasets that do not have boolean questions (e.g., SQuAD2), we do not include boolean answer constraints. The example prompt used for the QASPER dataset is the following:",
381
+ "bbox": [
382
+ 505,
383
+ 613,
384
+ 882,
385
+ 772
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Create an Answer to the Question using following documents. Pay attention to only answer \"Yes\" or \"No\" for boolean questions. Answer \"Unanswerable\" when you are not sure about the answer.",
392
+ "bbox": [
393
+ 534,
394
+ 781,
395
+ 863,
396
+ 810
397
+ ],
398
+ "page_idx": 2
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "Context: $\\{c\\}$",
403
+ "bbox": [
404
+ 537,
405
+ 813,
406
+ 601,
407
+ 822
408
+ ],
409
+ "page_idx": 2
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "Question: $\\{q\\}$",
414
+ "bbox": [
415
+ 537,
416
+ 825,
417
+ 608,
418
+ 835
419
+ ],
420
+ "page_idx": 2
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "Answer:",
425
+ "bbox": [
426
+ 537,
427
+ 838,
428
+ 581,
429
+ 846
430
+ ],
431
+ "page_idx": 2
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "Prompts for other datasets are in Appendix A.",
436
+ "bbox": [
437
+ 507,
438
+ 854,
439
+ 850,
440
+ 870
441
+ ],
442
+ "page_idx": 2
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "We conduct zero-shot experiments. Given an input pair $(c, q)$ where $c$ is context and $q$ is question, we prepend the constrained prompt instructions",
447
+ "bbox": [
448
+ 507,
449
+ 871,
450
+ 882,
451
+ 917
452
+ ],
453
+ "page_idx": 2
454
+ },
455
+ {
456
+ "type": "page_number",
457
+ "text": "3439",
458
+ "bbox": [
459
+ 480,
460
+ 927,
461
+ 519,
462
+ 940
463
+ ],
464
+ "page_idx": 2
465
+ },
466
+ {
467
+ "type": "table",
468
+ "img_path": "images/8d25cf57c27e2b0b2c150c3f6fab55df4919983fcc2af205b8037f870115d17a.jpg",
469
+ "table_caption": [],
470
+ "table_footnote": [],
471
+ "table_body": "<table><tr><td>Datasets</td><td>Unanswerable Examples</td></tr><tr><td>SQuAD2</td><td>Q: Who moved to Hollywood in 2004? C: “.... Following the move to Holyrood in 2004 this building was demolished. The former Midlothian County Buildings facing Parliament Square...”</td></tr><tr><td>PubmedQA</td><td>Q: Does rugby headgear prevent concussion? C: “...In addition, coaches from all four levels were questioned about team policies and their personal opinions about the use of headgear to prevent concussion. Although the players tended to believe that the headgear could prevent concussion (62%), the coaches were less convinced (33%)...”</td></tr><tr><td>QASPER</td><td>Q: How many Universal Dependency features are considered? C: Empty.</td></tr></table>",
472
+ "bbox": [
473
+ 129,
474
+ 80,
475
+ 863,
476
+ 193
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "Table 2: Example unanswerable questions from datasets (Q: question, C: context).",
483
+ "bbox": [
484
+ 218,
485
+ 196,
486
+ 774,
487
+ 211
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "along with an explicit directive for handling unanswerable questions. Given complex interactions between model architecture, pretraining, instruction-tuning, dataset, question type, question answerability, context perturbations, and abstention, these settings confer significant complexity for our analysis. We therefore reserve the analysis of few-shot experiments and in-context learning to future work. We also conduct ablations with different prompting templates and abstention representations (results for these experiments in Appendix C).",
494
+ "bbox": [
495
+ 112,
496
+ 236,
497
+ 490,
498
+ 413
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "4.2 Context Perturbation",
505
+ "text_level": 1,
506
+ "bbox": [
507
+ 112,
508
+ 425,
509
+ 329,
510
+ 439
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "We conduct experiments to assess model sensitivity to context perturbations. We either provide the given context, or perturb the context by removing, replacing, or adding context passages (Figure 1).",
517
+ "bbox": [
518
+ 112,
519
+ 445,
520
+ 487,
521
+ 511
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "Given context: We use the original/gold context provided by the dataset. For unanswerable questions in SQuAD2, given context is unchanged but the designers manually modified the question to render the context ineffective for inferring an answer. For PubmedQA, we label a question unanswerable if the given answer is \"maybe\" and do not change the context. For unanswerable questions in QASPER, given context is empty.",
528
+ "bbox": [
529
+ 112,
530
+ 514,
531
+ 489,
532
+ 659
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "No context: We remove the given context.",
539
+ "bbox": [
540
+ 112,
541
+ 665,
542
+ 431,
543
+ 681
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "Random irrelevant context: We replace the given context with the context from a random question in the train split.",
550
+ "bbox": [
551
+ 112,
552
+ 687,
553
+ 487,
554
+ 736
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "Noisy context: We append context from a random question to the given context.",
561
+ "bbox": [
562
+ 112,
563
+ 741,
564
+ 487,
565
+ 772
566
+ ],
567
+ "page_idx": 3
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "4.3 Models",
572
+ "text_level": 1,
573
+ "bbox": [
574
+ 112,
575
+ 785,
576
+ 218,
577
+ 799
578
+ ],
579
+ "page_idx": 3
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "We conduct experiments using LLamaV2-13b-chat (LLama2), Vicuna1.5-13b-chat (Vicuna), Flan-T5-XL (Flan-T5), Mistral-7B-Instruct-v0.1 (Mistral), gpt-3.5-turbo-0613 (GPT3.5), and gpt-4o-2024-05-13 (GPT4o). We select these models to have reasonable representation across the following attributes:",
584
+ "bbox": [
585
+ 112,
586
+ 806,
587
+ 489,
588
+ 917
589
+ ],
590
+ "page_idx": 3
591
+ },
592
+ {
593
+ "type": "list",
594
+ "sub_type": "text",
595
+ "list_items": [
596
+ "- Closed API (GPT3.5; GPT4o) vs open weights (LLama2, Vicuna, Flan-T5, and Mistral)",
597
+ "Encoder-decoder (Flan-T5) vs decoder-only (LLama2, Vicuna, Mistral, GPT3.5, and GPT4o) architecture",
598
+ "- Models having less (LLama2) or more (Vicuna) instruction tuning"
599
+ ],
600
+ "bbox": [
601
+ 510,
602
+ 237,
603
+ 880,
604
+ 359
605
+ ],
606
+ "page_idx": 3
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "For all models, we use the same hyperparameters at inference time. We set temperature to 0 and top- $p$ sampling to 1 to reduce the variability of model output (details in Appendix B).",
611
+ "bbox": [
612
+ 507,
613
+ 363,
614
+ 882,
615
+ 426
616
+ ],
617
+ "page_idx": 3
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "Post-processing model output LLMs often generate lengthy responses, so we post-process to extract structured answers. For boolean questions, we take the first words of the output and map them to \"yes,\" \"no,\" or \"unanswerable\" based on their occurrence.",
622
+ "bbox": [
623
+ 507,
624
+ 434,
625
+ 882,
626
+ 513
627
+ ],
628
+ "page_idx": 3
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "4.4 Evaluation metrics",
633
+ "text_level": 1,
634
+ "bbox": [
635
+ 507,
636
+ 525,
637
+ 705,
638
+ 539
639
+ ],
640
+ "page_idx": 3
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "We report both task performance (F1 or Accuracy) and abstention performance (rate of abstention) across different experimental settings.",
645
+ "bbox": [
646
+ 507,
647
+ 546,
648
+ 882,
649
+ 594
650
+ ],
651
+ "page_idx": 3
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "Task performance For SQuAD2 and QASPER, we evaluate task performance using $n$ -gram F1 as reported in Rajpurkar et al. (2018). For PubmedQA and BioASQ (boolean questions only), we report Accuracy based on the original papers. Task performance is therefore comparable under different context settings, but is not comparable across datasets.",
656
+ "bbox": [
657
+ 507,
658
+ 604,
659
+ 884,
660
+ 715
661
+ ],
662
+ "page_idx": 3
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Abstention performance We measure model ab-stention performance by calculating the proportion of questions that is answered \"unanswerable.\" Ideally, models that are perfect at abstaining would be expected to have an abstention proportion of 1.0 when no or irrelevant context is provided for all questions. However, in reality this is not the case, since many questions may be context-independent or could be answered using model parametric knowledge. Abstention is therefore a quality dependent on (i) model ability to follow instructions (\"Answer 'Unanswerable' when you are not sure\"),",
667
+ "bbox": [
668
+ 507,
669
+ 726,
670
+ 882,
671
+ 917
672
+ ],
673
+ "page_idx": 3
674
+ },
675
+ {
676
+ "type": "page_number",
677
+ "text": "3440",
678
+ "bbox": [
679
+ 480,
680
+ 927,
681
+ 519,
682
+ 940
683
+ ],
684
+ "page_idx": 3
685
+ },
686
+ {
687
+ "type": "table",
688
+ "img_path": "images/82b36fd2fccff31dc4ffd48e097b62e15d9cca5b7a1c1d48a4bba4858c491dac.jpg",
689
+ "table_caption": [],
690
+ "table_footnote": [],
691
+ "table_body": "<table><tr><td></td><td>SQuAD2</td><td>PubmedQA</td><td>BioASQ</td><td>QASPER</td></tr><tr><td>SOTA</td><td>90.5*</td><td>77.6**</td><td>94.3**</td><td>61.4†</td></tr><tr><td colspan=\"5\">(a) Given context</td></tr><tr><td>LLama2</td><td>51.7</td><td>52.6</td><td>98.6</td><td>16.8</td></tr><tr><td>Vicuna</td><td>61.0</td><td>36.4</td><td>93.6</td><td>30.5</td></tr><tr><td>Flan-T5</td><td>87.4</td><td>73.2</td><td>97.8</td><td>60.1</td></tr><tr><td>Mistral</td><td>38.5</td><td>58.4</td><td>94.2</td><td>50.9</td></tr><tr><td>GPT3.5</td><td>60.4</td><td>61.2</td><td>97.9</td><td>57.8</td></tr><tr><td>GPT4o</td><td>82.6</td><td>61.2</td><td>97.9</td><td>54.1</td></tr></table>",
692
+ "bbox": [
693
+ 119,
694
+ 80,
695
+ 480,
696
+ 216
697
+ ],
698
+ "page_idx": 4
699
+ },
700
+ {
701
+ "type": "table",
702
+ "img_path": "images/72b69cab12ce8c9da157a9afc2b0bf8861db3389ed058273279faeff048cf5c7.jpg",
703
+ "table_caption": [],
704
+ "table_footnote": [],
705
+ "table_body": "<table><tr><td colspan=\"5\">(b) No context</td></tr><tr><td>LLama2</td><td>-11.7</td><td>-17.8</td><td>-43.6</td><td>-2.7</td></tr><tr><td>Vicuna</td><td>-24.0</td><td>-19.4</td><td>-32.9</td><td>-10.4</td></tr><tr><td>Flan-T5</td><td>-38.2</td><td>-16.4</td><td>-30.8</td><td>-38.0</td></tr><tr><td>Mistral</td><td>-20.9</td><td>-31.0</td><td>-32.1</td><td>-29.4</td></tr><tr><td>GPT3.5</td><td>-22.9</td><td>-39.0</td><td>-46.4</td><td>-37.7</td></tr><tr><td>GPT4o</td><td>-36.0</td><td>-45.6</td><td>-49.3</td><td>-35.6</td></tr></table>",
706
+ "bbox": [
707
+ 119,
708
+ 218,
709
+ 480,
710
+ 312
711
+ ],
712
+ "page_idx": 4
713
+ },
714
+ {
715
+ "type": "table",
716
+ "img_path": "images/02cc8aceff9582c95116ee8a07bcc0173933e1446e716b9e8b04f0c74bf9e287.jpg",
717
+ "table_caption": [],
718
+ "table_footnote": [],
719
+ "table_body": "<table><tr><td colspan=\"5\">(c) Random context</td></tr><tr><td>LLama2</td><td>-1.9</td><td>-40.8</td><td>-63.6</td><td>-0.8</td></tr><tr><td>Vicuna</td><td>-11.8</td><td>-25.2</td><td>-41.5</td><td>-11.5</td></tr><tr><td>Flan-T5</td><td>-37.3</td><td>-59.4</td><td>-63.5</td><td>-37.2</td></tr><tr><td>Mistral</td><td>+4.6</td><td>-47.4</td><td>-59.2</td><td>-30.5</td></tr><tr><td>GPT3.5</td><td>-10.4</td><td>-50.0</td><td>-64.9</td><td>-37.6</td></tr><tr><td>GPT4o</td><td>-32.6</td><td>-51.2</td><td>-64.3</td><td>-35.0</td></tr></table>",
720
+ "bbox": [
721
+ 119,
722
+ 315,
723
+ 480,
724
+ 407
725
+ ],
726
+ "page_idx": 4
727
+ },
728
+ {
729
+ "type": "table",
730
+ "img_path": "images/b0909e877bcc172b7a02c2d6f2ca9eb08e4956125f375174fea73d566357fdaa.jpg",
731
+ "table_caption": [],
732
+ "table_footnote": [
733
+ "Table 3: Model zero-shot task performance using constrained prompts. SOTA indicates the best zero-shot performance of LLMs reported in previous papers (*=Flan-UL2 (Slobodkin et al., 2023), **=Galactica (Taylor et al., 2022)), or best performance from a pretrained LM ( $\\dagger$ =UnifiedQA-large (Dasigi et al., 2021)). (a) Among baseline model performance with the given context, the best performances are bolded, second best underlined. Colors indicate positive or negative delta from baseline task performance with different context perturbations: (b) no context, (c) random context, and (d) noisy context. While task performance generally degrades with context perturbations, this is not consistently the case for QASPER due to interactions between abstention and task performance (see Section 5.1)."
734
+ ],
735
+ "table_body": "<table><tr><td colspan=\"5\">(d) Noisy context</td></tr><tr><td>LLama2</td><td>-4.3</td><td>-13.2</td><td>-10.7</td><td>+1.9</td></tr><tr><td>Vicuna</td><td>-1.4</td><td>+4.8</td><td>-0.7</td><td>+4.7</td></tr><tr><td>Flan-T5</td><td>+0.0</td><td>-0.2</td><td>-0.7</td><td>+0.0</td></tr><tr><td>Mistral</td><td>-2.6</td><td>-8.2</td><td>-2.8</td><td>+0.0</td></tr><tr><td>GPT3.5</td><td>-2.4</td><td>-2.8</td><td>-2.2</td><td>-2.4</td></tr><tr><td>GPT4o</td><td>-0.6</td><td>+1.4</td><td>-0.8</td><td>-5.2</td></tr></table>",
736
+ "bbox": [
737
+ 119,
738
+ 411,
739
+ 480,
740
+ 505
741
+ ],
742
+ "page_idx": 4
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "(ii) question context dependency (whether a question is answerable without context), and (iii) question difficulty (whether the question is answerable using model parametric knowledge). For clarity, we show task performance as plain numbers and abstention rates and deltas using (parentheses).",
747
+ "bbox": [
748
+ 112,
749
+ 758,
750
+ 487,
751
+ 853
752
+ ],
753
+ "page_idx": 4
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "5 Results",
758
+ "text_level": 1,
759
+ "bbox": [
760
+ 112,
761
+ 857,
762
+ 213,
763
+ 872
764
+ ],
765
+ "page_idx": 4
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "We report baseline task performance (Table 3) and abstention performance (Table 4) for all models",
770
+ "bbox": [
771
+ 112,
772
+ 887,
773
+ 487,
774
+ 917
775
+ ],
776
+ "page_idx": 4
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "on all datasets. Results for context perturbations are shown as changes to task performance and ab-stention performance from baseline. Additional analysis by question type is shown in Figure 2.",
781
+ "bbox": [
782
+ 507,
783
+ 84,
784
+ 882,
785
+ 149
786
+ ],
787
+ "page_idx": 4
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "Baseline task performance in the zero-shot prompting setting is presented in Table 3(a), alongside previously reported SOTA zero-shot performance of LLMs on each dataset. Surprisingly, Flan-T5 achieves the best performance on SQuAD2, PubmedQA, and QASPER, while LLama2 performs best on BioASQ. GPT3.5 achieves the second best performance on PubmedQA, BioASQ, and QASPER; and GPT4o achieves second best performance on SQuAD2, PubmedQA, and BioASQ. Task performance of tested models are close to and sometimes exceed (BioASQ) the reported SOTA on each dataset. Though in this work, we focus on assessing change to task performance under different context settings rather than maximizing model performance.",
792
+ "bbox": [
793
+ 507,
794
+ 149,
795
+ 884,
796
+ 406
797
+ ],
798
+ "page_idx": 4
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "5.1 Impact of context perturbations",
803
+ "text_level": 1,
804
+ "bbox": [
805
+ 507,
806
+ 419,
807
+ 806,
808
+ 434
809
+ ],
810
+ "page_idx": 4
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "Random context facilitates abstention In Table 4(c), we observe that all models are much more likely to abstain from answering when given random context except on the BioASQ dataset. For SQuAD2 and PubmedQA, random context improves most models' abstention performance to close to 1. Specifically, random context improves Flan-T5's ability to abstain from answering on PubmedQA while the no context setting completely fails to do so. For QASPER, the abstention performance on answerable questions in the random context setting is much higher compared to no context, but is still far from 1. Oddly, for boolean questions in BioASQ, random context biases the model towards answering \"no\" rather than \"unanswerable\", and we observe no changes in abstention rate (further analysis in Section 6).",
815
+ "bbox": [
816
+ 507,
817
+ 441,
818
+ 882,
819
+ 714
820
+ ],
821
+ "page_idx": 4
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "Adding noisy context can counter-intuitively improve task performance on some datasets While noisy context has mixed effects on abstention (Table 4(d)), this perturbation does not always translate to negative impacts on task performance. In Table 3(d), task performance increases on QASPER for LLama2 and Vicuna and PubmedQA for Vicuna and GPT4o. For QASPER, unanswerable questions have empty context, so the baseline task performance for unanswerable questions is actually computed with no context; perturbing no context by adding noisy context therefore",
826
+ "bbox": [
827
+ 507,
828
+ 726,
829
+ 882,
830
+ 917
831
+ ],
832
+ "page_idx": 4
833
+ },
834
+ {
835
+ "type": "page_number",
836
+ "text": "3441",
837
+ "bbox": [
838
+ 480,
839
+ 928,
840
+ 517,
841
+ 940
842
+ ],
843
+ "page_idx": 4
844
+ },
845
+ {
846
+ "type": "table",
847
+ "img_path": "images/d1610b57e6498e2ab6e3975e7294f363a2b7c208ecc86540dcfe1423ab939896.jpg",
848
+ "table_caption": [],
849
+ "table_footnote": [],
850
+ "table_body": "<table><tr><td>Baseline</td><td colspan=\"2\">SQUAD2</td><td colspan=\"2\">Pubmed</td><td colspan=\"2\">BioASQ</td><td colspan=\"2\">Qasper</td></tr><tr><td>Model</td><td>Ans.</td><td>Unans.</td><td>Ans.</td><td>Unans.</td><td>Ans.</td><td>Ans.</td><td>Unans.</td><td></td></tr><tr><td>LLama2</td><td>(44.7)</td><td>(82.0)</td><td>(37.3)</td><td>(34.5)</td><td>(0.0)</td><td>(3.1)</td><td>(30.9)</td><td></td></tr><tr><td>Vicuna</td><td>(21.1)</td><td>(64.9)</td><td>(61.8)</td><td>(60.0)</td><td>(0.0)</td><td>(30.0)</td><td>(57.0)</td><td></td></tr><tr><td>Flan-T5</td><td>(4.4)</td><td>(85.0)</td><td>(0.0)</td><td>(0.0)</td><td>(0.0)</td><td>(13.0)</td><td>(87.0)</td><td></td></tr><tr><td>Mistral</td><td>(0.8)</td><td>(24.9)</td><td>(24.5)</td><td>(23.6)</td><td>(0.0)</td><td>(12.1)</td><td>(84.8)</td><td></td></tr><tr><td>GPT3.5</td><td>(3.7)</td><td>(53.3)</td><td>(20.4)</td><td>(21.8)</td><td>(0.0)</td><td>(15.0)</td><td>(89.2)</td><td></td></tr><tr><td>GPT4o</td><td>(5.1)</td><td>(83.5)</td><td>(30.1)</td><td>(38.2)</td><td>(0.0)</td><td>(41.1)</td><td>(98.6)</td><td></td></tr></table>",
851
+ "bbox": [
852
+ 134,
853
+ 80,
854
+ 860,
855
+ 198
856
+ ],
857
+ "page_idx": 5
858
+ },
859
+ {
860
+ "type": "table",
861
+ "img_path": "images/cd8c00bf272aaa36a6d22e23e5f62099e10c14b6a5a92f771a722be543806cb1.jpg",
862
+ "table_caption": [
863
+ "(b) No context"
864
+ ],
865
+ "table_footnote": [],
866
+ "table_body": "<table><tr><td>LLama2</td><td>(+14.8)</td><td>(-11.7)</td><td>(-7.0)</td><td>(-3.6)</td><td>(+2.8)</td><td>(+17.7)</td><td>(+3.7)</td></tr><tr><td>Vicuna</td><td>(+28.3)</td><td>(-4.7)</td><td>(+26.7)</td><td>(+27.3)</td><td>(+10.7)</td><td>(+38.2)</td><td>(+20.7)</td></tr><tr><td>Flan-T5</td><td>(+91.2)</td><td>(+11.3)</td><td>(+0.0)</td><td>(+0.0)</td><td>(+0.0)</td><td>(+65.0)</td><td>(-2.8)</td></tr><tr><td>Mistral</td><td>(+12.5)</td><td>(-3.6)</td><td>(+40.0)</td><td>(+36.4)</td><td>(+13.5)</td><td>(+71.5)</td><td>(+7.3)</td></tr><tr><td>GPT3.5</td><td>(+37.1)</td><td>(+2.5)</td><td>(+57.6)</td><td>(+56.4)</td><td>(+36.4)</td><td>(+73.8)</td><td>(+8.4)</td></tr><tr><td>GPT4o</td><td>(+34.9)</td><td>(-16.6)</td><td>(+61.6)</td><td>(+53.5)</td><td>(+45.7)</td><td>(+56.4)</td><td>(+0.5)</td></tr></table>",
867
+ "bbox": [
868
+ 136,
869
+ 214,
870
+ 857,
871
+ 294
872
+ ],
873
+ "page_idx": 5
874
+ },
875
+ {
876
+ "type": "table",
877
+ "img_path": "images/41a69ac81d3b768c6a814d56fc47a1dbde88cd0e4614c4213c26af7d087277e4.jpg",
878
+ "table_caption": [
879
+ "(c) Random context"
880
+ ],
881
+ "table_footnote": [],
882
+ "table_body": "<table><tr><td>LLama2</td><td>( +54.8 )</td><td>( +17.2 )</td><td>( +58.7 )</td><td>( +60.0 )</td><td>( +0.0 )</td><td>( +16.9 )</td><td>( +17.8 )</td></tr><tr><td>Vicuna</td><td>( +73.8 )</td><td>( +31.7 )</td><td>( +37.5 )</td><td>( +40.0 )</td><td>( +0.0 )</td><td>( +44.0 )</td><td>( +34.5 )</td></tr><tr><td>Flan-T5</td><td>( +95.4 )</td><td>( +15.0 )</td><td>( +91.5 )</td><td>( +92.7 )</td><td>( +0.0 )</td><td>( +54.6 )</td><td>( -0.9 )</td></tr><tr><td>Mistral</td><td>( +83.3 )</td><td>( +59.3 )</td><td>( +75.5 )</td><td>( +76.4 )</td><td>( +0.0 )</td><td>( +58.1 )</td><td>( +6.8 )</td></tr><tr><td>GPT3.5</td><td>( +95.5 )</td><td>( +45.9 )</td><td>( +79.6 )</td><td>( +78.2 )</td><td>( +0.0 )</td><td>( +66.9 )</td><td>( +5.5 )</td></tr><tr><td>GPT4o</td><td>( +94.9 )</td><td>( +16.3 )</td><td>( +69.9 )</td><td>( +61.8 )</td><td>( +0.0 )</td><td>( +53.2 )</td><td>( +0.9 )</td></tr></table>",
883
+ "bbox": [
884
+ 136,
885
+ 311,
886
+ 858,
887
+ 391
888
+ ],
889
+ "page_idx": 5
890
+ },
891
+ {
892
+ "type": "table",
893
+ "img_path": "images/a4c084f699931883ef1d3e0465d116a90f1eb0693fd9c4913fdc827227dcd755.jpg",
894
+ "table_caption": [
895
+ "(d) Noisy context"
896
+ ],
897
+ "table_footnote": [],
898
+ "table_body": "<table><tr><td>LLama2</td><td>( +22.8 )</td><td>( +3.2 )</td><td>( +18.7 )</td><td>( +18.2 )</td><td>( +0.0 )</td><td>( +2.2 )</td><td>( +17.4 )</td></tr><tr><td>Vicuna</td><td>( +8.2 )</td><td>( +2.5 )</td><td>( -11.0 )</td><td>( -12.7 )</td><td>( +0.0 )</td><td>( +13.2 )</td><td>( +34.7 )</td></tr><tr><td>Flan-T5</td><td>( -0.9 )</td><td>( -1.3 )</td><td>( +0.0 )</td><td>( +0.0 )</td><td>( +0.0 )</td><td>( -1.4 )</td><td>( -2.7 )</td></tr><tr><td>Mistral</td><td>( +0.2 )</td><td>( -2.4 )</td><td>( +15.7 )</td><td>( +20 )</td><td>( +0.0 )</td><td>( +2.2 )</td><td>( +6.4 )</td></tr><tr><td>GPT3.5</td><td>( +1.5 )</td><td>( -2.8 )</td><td>( +3.2 )</td><td>( +0.0 )</td><td>( +0.0 )</td><td>( +4.5 )</td><td>( +4.6 )</td></tr><tr><td>GPT4o</td><td>( +0.0 )</td><td>( -2.4 )</td><td>( -4.7 )</td><td>( -3.7 )</td><td>( +0.0 )</td><td>( +6.6 )</td><td>( +0.9 )</td></tr></table>",
899
+ "bbox": [
900
+ 136,
901
+ 407,
902
+ 858,
903
+ 487
904
+ ],
905
+ "page_idx": 5
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Table 4: Abstention performance across different models broken down by answerable and unanswerable questions across various datasets. Baseline abstention rates are shown at the top with a gray background. Abstention rates under (b) No context, (c) Random context, and (d) Noisy context settings are shown below as deltas from the base rate. Colors indicate a positive or negative delta. All context perturbations improve model abstention performance in some settings, though this is not uniform over datasets, models, question answerability, or perturbation setting.",
910
+ "bbox": [
911
+ 112,
912
+ 489,
913
+ 880,
914
+ 562
915
+ ],
916
+ "page_idx": 5
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "leads to a trade-off in task performance and abstention performance (some models abstain much more for unanswerable questions and task performance consequently improves).",
921
+ "bbox": [
922
+ 112,
923
+ 587,
924
+ 487,
925
+ 652
926
+ ],
927
+ "page_idx": 5
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "5.2 Impact of question type",
932
+ "text_level": 1,
933
+ "bbox": [
934
+ 112,
935
+ 669,
936
+ 346,
937
+ 686
938
+ ],
939
+ "page_idx": 5
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Models' abstention capabilities vary by question type For extractive questions, Figure 2(a) and (d) show that model abstention varies significantly between given context and no context settings; under no context settings, models can achieve abstention performance close to 1 for a highly context-dependent dataset like QASPER. Abstractive answers show similar patterns. Notably, we find all models are reluctant to abstain from boolean questions for all datasets; this overconfidence is apparent even for QASPER, which is a highly document-specific QA dataset. Surprisingly, F1an-T5 and LLama2 demonstrate near zero abstention performance on boolean questions",
944
+ "bbox": [
945
+ 112,
946
+ 694,
947
+ 489,
948
+ 919
949
+ ],
950
+ "page_idx": 5
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "on any dataset, regardless of whether or not context is provided.2 Vicuna and Mistral perform slightly better, with some variability across datasets. GPT3.5 and GPT4o demonstrate much higher abstention performance compared to other models, but are still far from 1.",
955
+ "bbox": [
956
+ 507,
957
+ 588,
958
+ 884,
959
+ 682
960
+ ],
961
+ "page_idx": 5
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Abstention performance on unanswerable questions varies by dataset In Figure 2, we examine the abstention performance on unanswerable questions (yellow background) and find that performance varies significantly across datasets and models. For SQuAD2: Llama2, Vicuna, Mistral, and GPT4o abstain less when context is removed, which contradicts intuition. In SQuAD2, unanswerable questions are still related to the provided",
966
+ "bbox": [
967
+ 507,
968
+ 697,
969
+ 884,
970
+ 843
971
+ ],
972
+ "page_idx": 5
973
+ },
974
+ {
975
+ "type": "page_footnote",
976
+ "text": "2We conduct prompt ablations in Appendix C, showing the lack of abstention on boolean questions is highly sensitive to prompt wording. When a boolean instruction is removed from the prompt, both models are able to abstain much better for boolean questions.",
977
+ "bbox": [
978
+ 507,
979
+ 857,
980
+ 882,
981
+ 917
982
+ ],
983
+ "page_idx": 5
984
+ },
985
+ {
986
+ "type": "page_number",
987
+ "text": "3442",
988
+ "bbox": [
989
+ 480,
990
+ 928,
991
+ 519,
992
+ 940
993
+ ],
994
+ "page_idx": 5
995
+ },
996
+ {
997
+ "type": "image",
998
+ "img_path": "images/eb2b926431e259b37a85b566f65ef9ea64d3a7826aadac0dc6927bb9dbd5311d.jpg",
999
+ "image_caption": [
1000
+ "Figure 2: Abstention performance changes from \"with context\" to \"no context\" settings across different question types. Each row represents one question type, from top to bottom: \"Unanswerable\", \"Boolean\", \"Abstractive\" and \"Extractive\". White background indicates a dataset does not have questions of that type."
1001
+ ],
1002
+ "image_footnote": [],
1003
+ "bbox": [
1004
+ 115,
1005
+ 79,
1006
+ 884,
1007
+ 221
1008
+ ],
1009
+ "page_idx": 6
1010
+ },
1011
+ {
1012
+ "type": "table",
1013
+ "img_path": "images/148cb0c07b3ececb1804c09471411948c9818c0bf1b5912466e70139258f8502.jpg",
1014
+ "table_caption": [],
1015
+ "table_footnote": [],
1016
+ "table_body": "<table><tr><td>Model</td><td>SQuAD2</td><td>PubmedQA</td><td>BioASQ</td><td>QASPER</td></tr><tr><td>LLama2</td><td>29.8</td><td>16.6</td><td>2.8</td><td>20.6</td></tr><tr><td>Vicuna</td><td>33.6</td><td>29.0</td><td>10.7</td><td>44.9</td></tr><tr><td>Flan-T5</td><td>91.2</td><td>0.0</td><td>0.0</td><td>66.0</td></tr><tr><td>Mistral</td><td>12.6</td><td>43.2</td><td>13.6</td><td>64.5</td></tr><tr><td>GPT3.5</td><td>38.8</td><td>59.3</td><td>36.4</td><td>75.7</td></tr><tr><td>GPT4o</td><td>22.5</td><td>62.0</td><td>45.7</td><td>38.2</td></tr></table>",
1017
+ "bbox": [
1018
+ 127,
1019
+ 291,
1020
+ 473,
1021
+ 392
1022
+ ],
1023
+ "page_idx": 6
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Table 5: Percentage of answerable questions for which the model changes from answering to abstaining when context is removed. Best performances bolded, second best underlined.",
1028
+ "bbox": [
1029
+ 112,
1030
+ 401,
1031
+ 487,
1032
+ 458
1033
+ ],
1034
+ "page_idx": 6
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "context; which may explain why when the confusing context is removed, these two models become more likely to answer. GPT3.5 performs consistently regardless of whether context is provided. This consistency suggests that GPT3.5 may rely on internal mechanisms for abstention that are less sensitive to the presence or absence of contextual information. For PubmedQA, unanswerable questions are associated with context that is highly uncertain; Flan-T5 and LLama2 consistently refuse to abstain from answering these questions, which are boolean, while Vicuna follows the \"unanswerable\" instruction quite well. For QASPER, abstention performance is generally higher across all models compared to SQuAD2 and PubmedQA since the questions are more document-grounded.",
1039
+ "bbox": [
1040
+ 112,
1041
+ 483,
1042
+ 489,
1043
+ 741
1044
+ ],
1045
+ "page_idx": 6
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "5.3 Abstention performance by model",
1050
+ "text_level": 1,
1051
+ "bbox": [
1052
+ 112,
1053
+ 753,
1054
+ 428,
1055
+ 769
1056
+ ],
1057
+ "page_idx": 6
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Instruction-tuned models more readily abstain Table 5 shows the percentage of answers for which the model changed from answering to abstaining when context is removed. The expectation for context-dependent questions would be that a model would abstain from answering if no context is provided. GPT4o achieves the largest abstention changes on PubmedQA and BioASQ, while GPT3.5 also abstain well across all four datasets,",
1062
+ "bbox": [
1063
+ 112,
1064
+ 774,
1065
+ 489,
1066
+ 917
1067
+ ],
1068
+ "page_idx": 6
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "indicating that they are responsive to context loss. Vicuna, with more instruction-tuning than LLama2, demonstrates relatively strong abstention behavior in these cases compared to LLama2.",
1073
+ "bbox": [
1074
+ 507,
1075
+ 294,
1076
+ 884,
1077
+ 359
1078
+ ],
1079
+ "page_idx": 6
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Flan-T5 readily abstains for non-boolean questions. Flan-T5 abstains well when context is removed (Table 5). We observe large changes for SQuAD2 and QASPER (comparable or better than GPT4o and GPT3.5), although this behavior does not generalize at all to boolean questions—the change is 0.0 for PubmedQA and BioASQ, which consist only of boolean questions. Different prompting strategies may be necessary to enjoin certain models to abstain when answering boolean questions.",
1084
+ "bbox": [
1085
+ 507,
1086
+ 370,
1087
+ 884,
1088
+ 548
1089
+ ],
1090
+ "page_idx": 6
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "6 Error Analysis",
1095
+ "text_level": 1,
1096
+ "bbox": [
1097
+ 507,
1098
+ 564,
1099
+ 672,
1100
+ 580
1101
+ ],
1102
+ "page_idx": 6
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "We perform error analysis on a consistently high performing model in our analysis, GPT3.5, and summarize main reasons why the model may fail to abstain. We sample 20 failure cases each from among answerable questions and unanswerable questions, for both gold context and no context settings. We present our findings by dataset.",
1107
+ "bbox": [
1108
+ 505,
1109
+ 592,
1110
+ 882,
1111
+ 705
1112
+ ],
1113
+ "page_idx": 6
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "SQuAD2 Answerable questions are either general (e.g., \"What German poet was descended from Huguenots?\") or could be answered without context (e.g., \"What types of pumps are typically used in industrial boilers?\"); the model tends to answer these regardless of whether context is provided. For unanswerable questions, half of failure cases are very open-ended like \"What effect do technologies and resources generate?\" and removing context will cause GPT3.5 to answer rather than abstain. Another $20\\%$ of questions contain popular entities but have no correct answer, e.g., \"What lake contains part of the Rhine Falls?\" misleads the model",
1118
+ "bbox": [
1119
+ 507,
1120
+ 709,
1121
+ 884,
1122
+ 917
1123
+ ],
1124
+ "page_idx": 6
1125
+ },
1126
+ {
1127
+ "type": "page_number",
1128
+ "text": "3443",
1129
+ "bbox": [
1130
+ 480,
1131
+ 928,
1132
+ 519,
1133
+ 940
1134
+ ],
1135
+ "page_idx": 6
1136
+ },
1137
+ {
1138
+ "type": "table",
1139
+ "img_path": "images/07d5236ced6f27052a03479714b5891bc34d43d005092b7b4d3f0341bc80670e.jpg",
1140
+ "table_caption": [],
1141
+ "table_footnote": [],
1142
+ "table_body": "<table><tr><td></td><td>SQuAD2</td><td>QASPER</td></tr><tr><td>Context</td><td>Computational complexity theory is a branch of the theory of computation in theoretical computer science that focuses on classifying computational problems according to their inherent difficulty, and relating those classes to each other...</td><td>Table TABREF35 show the comparisons between tree and sequential based methods. We can see that, if we don&#x27;t deploy CNN, simple Tree LSTM yields better result than traditional LSTM, but worse than Bidirectional LSTM...</td></tr><tr><td>Prompt</td><td>Q: What is a manual application of mathematical steps?</td><td>Q: Do they separately evaluate performance of their learned representations (before forwarding them to the CNN layer)?</td></tr><tr><td>Given context</td><td>Unanswerable</td><td>No X</td></tr><tr><td>No context</td><td>Calculation X</td><td>Yes X</td></tr><tr><td>Random context</td><td>Unanswerable</td><td>Unanswerable</td></tr><tr><td>Noisy context</td><td>Unanswerable</td><td>Unanswerable X</td></tr><tr><td>Ground truth</td><td>Unanswerable</td><td>Yes</td></tr></table>",
1143
+ "bbox": [
1144
+ 119,
1145
+ 80,
1146
+ 877,
1147
+ 234
1148
+ ],
1149
+ "page_idx": 7
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Table 6: Examples of GPT3.5 predictions under different context perturbations. For SQuAD2, removing context results in the model no longer abstaining, and responding inaccurately. For QASPER, the model answers the question incorrectly in the gold context setting; removing context results in an accurate but incorrect answer (the model should abstain in this case instead).",
1154
+ "bbox": [
1155
+ 112,
1156
+ 237,
1157
+ 884,
1158
+ 294
1159
+ ],
1160
+ "page_idx": 7
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "to generate \"Lake Constance\" as an answer since \"The Rhine emerges from Lake Constance.\"",
1165
+ "bbox": [
1166
+ 110,
1167
+ 319,
1168
+ 485,
1169
+ 351
1170
+ ],
1171
+ "page_idx": 7
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "PubmedQA GPT3.5 is strongly inclined to answer \"yes\" for all failure cases among both answerable and unanswerable questions under the no context setting, perhaps due to the phrasing of automatically constructed questions.",
1176
+ "bbox": [
1177
+ 110,
1178
+ 363,
1179
+ 487,
1180
+ 444
1181
+ ],
1182
+ "page_idx": 7
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "BioASQ Around $90\\%$ of failure cases we sampled were answered correctly by GPT3.5 without context, including both \"yes\" and \"no\" answers. Another $10\\%$ of cases are affected by the model's tendency to hallucinate \"yes\", which is consistent with cases in PubmedQA. We manually substitute antonyms for the word in brackets on failure cases such as \"Is Apelin usually [decreased] in diabetes?\", \"Does vesatolimod [inhibit] TLR7?\" etc., and GPT3.5 still always answers \"yes\". Interestingly, for these factoid questions, substituting gold with random context skews the model strongly towards answering \"no\". These two types of hallucination behavior require further investigation. Our observations also raise concerns for assessing LLM performance using QA benchmarks containing boolean questions.",
1187
+ "bbox": [
1188
+ 112,
1189
+ 456,
1190
+ 489,
1191
+ 731
1192
+ ],
1193
+ "page_idx": 7
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "QASPER For answerable questions, $50\\%$ of failures seem to be caused by GPT3.5's ignorance of the ambiguity resulting from anaphora; for instance, GPT3.5 should not be able to resolve terms in questions such as \"they\", \"this study\", and \"the models\" without context, yet the model answers these questions anyway under the no context setting. Around $30\\%$ of questions are very general, such as \"What is a soft label?\" and \"Why is NER for tweets more challenging as the number of entities increases?\"—these questions lead the model to answer rather",
1198
+ "bbox": [
1199
+ 112,
1200
+ 741,
1201
+ 490,
1202
+ 919
1203
+ ],
1204
+ "page_idx": 7
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "than abstain. For unanswerable questions, the distribution of failure reasons is similar.",
1209
+ "bbox": [
1210
+ 507,
1211
+ 319,
1212
+ 882,
1213
+ 351
1214
+ ],
1215
+ "page_idx": 7
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Table 6 shows two context perturbation examples with answers generated by GPT3.5. More examples are given in Appendix D.",
1220
+ "bbox": [
1221
+ 507,
1222
+ 356,
1223
+ 882,
1224
+ 404
1225
+ ],
1226
+ "page_idx": 7
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "7 Discussion & Conclusion",
1231
+ "text_level": 1,
1232
+ "bbox": [
1233
+ 507,
1234
+ 410,
1235
+ 757,
1236
+ 425
1237
+ ],
1238
+ "page_idx": 7
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Our study investigates the impacts of context removal and perturbation on LLM performance on scientific QA. While lack of correct context should result in a model abstaining from answering a question, our results highlight that there are inconsistent patterns of model behavior based on model pretraining paradigms, question types, and the context-dependence of various QA datasets. For example, perturbing given context by replacing with random irrelevant context or adding noisy context would be expected to reduce task performance, but in some cases, the improvements in abstention that result can negate any reductions in task performance and potentially lead to gains (e.g., Vicuna and GPT4o on PubmedQA, Llama2 and Vicuna on QASPER). Additionally, we find that abstention varies greatly by question type, with all models in our experiments struggling to abstain on boolean questions.",
1243
+ "bbox": [
1244
+ 505,
1245
+ 436,
1246
+ 884,
1247
+ 726
1248
+ ],
1249
+ "page_idx": 7
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Future work for enhancing models' abstention ability could investigate the impact of (i) Different prompting strategies: since model abstention ability is sensitive to constrained prompts (such as boolean instructions) as shown in Section 5.2, how to select good prompting strategies to produce the best trade-off between task performance and abstention performance remains an interesting problem; (ii) Alternate model architectures: smaller models such as Flan-T5-XL with encoder-decoder architectures performed comparably to larger decoder-only models such as ChatGPT. Further exploration",
1254
+ "bbox": [
1255
+ 507,
1256
+ 726,
1257
+ 885,
1258
+ 919
1259
+ ],
1260
+ "page_idx": 7
1261
+ },
1262
+ {
1263
+ "type": "page_number",
1264
+ "text": "3444",
1265
+ "bbox": [
1266
+ 480,
1267
+ 928,
1268
+ 519,
1269
+ 940
1270
+ ],
1271
+ "page_idx": 7
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "of encoder-decoder architectures or introducing an auxiliary module to foster understanding of context may be helpful; (iii) Other context perturbations: we show initial results that providing noisy context can counter-intuitively improve task performance in some datasets due to interactions with unanswerable questions. How this interacts with retrieval errors or malicious injected context that occur in open-domain QA is a direction that could be explored in future work.",
1276
+ "bbox": [
1277
+ 115,
1278
+ 84,
1279
+ 485,
1280
+ 243
1281
+ ],
1282
+ "page_idx": 8
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Our results have direct implications for dataset curators and model developers. Benchmark QA datasets with mixtures of unanswerable and answerable questions were designed to facilitate assessment of abstention ability, yet our experiments show conflation and a lack of clear assessment of either abstention ability or performance accuracy. In other words, while unanswerable questions were motivated by the need to measure abstention, when aggregated with other questions during task performance evaluation, this distinction is obscured. Additionally, unanswerable questions in different datasets measure different phenomena, e.g., in SQuAD2, they measure model sensitivity to irrelevant context passages, while in QASPER, they indicate that a question is unanswerable based on the given document, neither of which clearly map to the notion of abstaining under insufficient information. Given the importance of assessing model abstention capabilities, separating task and abstention assessment, coupled with changes in dataset construction, is needed to better align model performance on these tasks with human expectations.",
1287
+ "bbox": [
1288
+ 115,
1289
+ 250,
1290
+ 485,
1291
+ 619
1292
+ ],
1293
+ "page_idx": 8
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "Beyond dataset curation, other variables—such as the task defined by the dataset, the types of questions posed, the architecture of models, instruction tuning techniques, in-context learning, and domain-specific pretraining—can affect a model's ability to effectively abstain and provide accurate answers. In this work, we attempt to disentangle some of these factors, though not all. Future studies could explore the extent to which in-domain pretraining and abstention-specific instruction tuning techniques impact model abstention performance.",
1298
+ "bbox": [
1299
+ 115,
1300
+ 625,
1301
+ 485,
1302
+ 800
1303
+ ],
1304
+ "page_idx": 8
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "On the other hand, our results also hold implications for downstream builders/users of interactive systems who rely on LLMs as question-answering tools. We show that in some cases (e.g., boolean questions), LLMs exhibit little to no ability to abstain, even for highly context-dependent questions such as those in QASPER. System designers should",
1309
+ "bbox": [
1310
+ 115,
1311
+ 806,
1312
+ 485,
1313
+ 917
1314
+ ],
1315
+ "page_idx": 8
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "be cautious of these limitations and when/how to infer model uncertainty and communicate this uncertainty to users. For communicating abstention capabilities to users, confidence scores or similar indicators that reflect model certainty, accompanying explanations, or interpretation guidance can empower users to make more informed decisions.",
1320
+ "bbox": [
1321
+ 512,
1322
+ 84,
1323
+ 880,
1324
+ 195
1325
+ ],
1326
+ "page_idx": 8
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "Limitations",
1331
+ "text_level": 1,
1332
+ "bbox": [
1333
+ 512,
1334
+ 204,
1335
+ 613,
1336
+ 218
1337
+ ],
1338
+ "page_idx": 8
1339
+ },
1340
+ {
1341
+ "type": "text",
1342
+ "text": "This work evaluates LLM abstention in situations with incorrect or noisy context, which mimics retrieval errors in retrieval-augmented systems. The problem of abstaining is also crucial in other settings, such as from the fairness, privacy/copyright, and safety perspectives, which we do not address in this work. In the future, we plan to propose a unified framework for abstention evaluation that considers these settings as well.",
1343
+ "bbox": [
1344
+ 512,
1345
+ 231,
1346
+ 880,
1347
+ 374
1348
+ ],
1349
+ "page_idx": 8
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "The interplay between abstention and task performance can only be studied in datasets with unanswerable questions, which is scarce in the landscape of QA datasets. We only conduct experiments on three such datasets, so our results may have difficulty generalizing. Additionally, we note the different ways that unanswerable questions were constructed among these datasets, which imply that our experiments may be measuring different notions of \"unanswerability.\" In addition, although question type diversity is common in real application, there are insufficient numbers of QA datasets with question type diversity. Therefore, our results may not generalize, as several question types are only represented in one or two of our datasets. We also note the sensitivity of LLMs to prompt phrasing, as with constrained and free-form prompts for boolean questions, and emphasize that it may be difficult to acquire consistent results without significant efforts made in prompt engineering.",
1354
+ "bbox": [
1355
+ 512,
1356
+ 376,
1357
+ 880,
1358
+ 697
1359
+ ],
1360
+ "page_idx": 8
1361
+ },
1362
+ {
1363
+ "type": "text",
1364
+ "text": "Due to the budget constraints, we could not conduct experiments with every single model, dataset, or context perturbation method from existing work, though our framework can be applied to other datasets and models. We will make our framework publicly available such that new models and datasets, as well as context perturbations could be added. Other factors affecting abstention such as indomain pretraining and in-context learning could be incorporated in the future.",
1365
+ "bbox": [
1366
+ 512,
1367
+ 699,
1368
+ 880,
1369
+ 858
1370
+ ],
1371
+ "page_idx": 8
1372
+ },
1373
+ {
1374
+ "type": "text",
1375
+ "text": "Acknowledgements",
1376
+ "text_level": 1,
1377
+ "bbox": [
1378
+ 512,
1379
+ 866,
1380
+ 678,
1381
+ 882
1382
+ ],
1383
+ "page_idx": 8
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "This research was supported in part by the UW, NiSchool Strategic Research Fund.",
1388
+ "bbox": [
1389
+ 512,
1390
+ 887,
1391
+ 880,
1392
+ 917
1393
+ ],
1394
+ "page_idx": 8
1395
+ },
1396
+ {
1397
+ "type": "page_number",
1398
+ "text": "3445",
1399
+ "bbox": [
1400
+ 482,
1401
+ 928,
1402
+ 519,
1403
+ 940
1404
+ ],
1405
+ "page_idx": 8
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "References",
1410
+ "text_level": 1,
1411
+ "bbox": [
1412
+ 115,
1413
+ 84,
1414
+ 213,
1415
+ 98
1416
+ ],
1417
+ "page_idx": 9
1418
+ },
1419
+ {
1420
+ "type": "list",
1421
+ "sub_type": "ref_text",
1422
+ "list_items": [
1423
+ "Alfonso Amayuelas, Kyle Wong, Liangming Pan, Wenhu Chen, and William Yang Wang. 2024. Knowledge of knowledge: Exploring known-unknowns uncertainty with large language models. In *Findings of the Association for Computational Linguistics* ACL 2024, pages 6416–6432, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics.",
1424
+ "Akari Asai and Eunsol Choi. 2021. Challenges in information-seeking QA: Unanswerable questions and paragraph retrieval. 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 1492-1504, Online. Association for Computational Linguistics.",
1425
+ "Sishuo Chen, Wenkai Yang, Xiaohan Bi, and Xu Sun. 2023. Fine-tuning deteriorates general textual out-of-distribution detection by distorting task-agnostic features. In *Findings of the Association for Computational Linguistics: EACL* 2023, pages 564–579, Dubrovnik, Croatia. Association for Computational Linguistics.",
1426
+ "Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sashank Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan First, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. 2024. Palm: scaling language modeling with pathways. J. Mach. Learn. Res., 24(1).",
1427
+ "Jeremy Cole, Michael Zhang, Daniel Gillick, Julian Eisenschlos, Bhuwan Dhingra, and Jacob Eisenstein. 2023. Selectively answering ambiguous questions. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 530-543, Singapore. Association for Computational Linguistics.",
1428
+ "Pradeep Dasigi, Kyle Lo, Iz Beltagy, Arman Cohan, Noah A. Smith, and Matt Gardner. 2021. A dataset of information-seeking questions and answers anchored in research papers. In Proceedings of the 2021 Conference of the North American Chapter of"
1429
+ ],
1430
+ "bbox": [
1431
+ 115,
1432
+ 105,
1433
+ 489,
1434
+ 917
1435
+ ],
1436
+ "page_idx": 9
1437
+ },
1438
+ {
1439
+ "type": "list",
1440
+ "sub_type": "ref_text",
1441
+ "list_items": [
1442
+ "the Association for Computational Linguistics: Human Language Technologies, pages 4599-4610, Online. Association for Computational Linguistics.",
1443
+ "John Giorgi, Luca Soldaini, Bo Wang, Gary Bader, Kyle Lo, Lucy Lu Wang, and Arman Cohan. 2022. Open domain multi-document summarization: A comprehensive study of model brittleness under retrieval. In EMNLP Findings.",
1444
+ "Robin Jia and Percy Liang. 2017. Adversarial examples for evaluating reading comprehension systems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2021-2031, Copenhagen, Denmark. Association for Computational Linguistics.",
1445
+ "Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. 2019. PubMedQA: A dataset for biomedical research question answering. 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 2567-2577, Hong Kong, China. Association for Computational Linguistics.",
1446
+ "Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2024. Large language models are zero-shot reasoners. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS '22, Red Hook, NY, USA. Curran Associates Inc.",
1447
+ "Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. 2022. Holistic evaluation of language models. arXiv preprint arXiv:2211.09110.",
1448
+ "Jinzhi Liao, Xiang Zhao, Jianming Zheng, Xinyi Li, Fei Cai, and Jiuyang Tang. 2022. Ptau: Prompt tuning for attributing unanswerable questions. In Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1219-1229.",
1449
+ "Yi Liu, Lianzhe Huang, Shicheng Li, Sishuo Chen, Hao Zhou, Fandong Meng, Jie Zhou, and Xu Sun. 2023. Recall: A benchmark for llms robustness against external counterfactual knowledge. arXiv preprint arXiv:2311.08147.",
1450
+ "Anastasios Nentidis, Georgios Katsimpras, Eirini Vandorou, Anastasia Krithara, Luis Gasco, Martin Krallinger, and Georgios Paliouras. 2021. Overview of bioasq 2021: The ninth bioasq challenge on large-scale biomedical semantic indexing and question answering. In Experimental IR Meets Multilinguality, Multimodality, and Interaction: 12th International Conference of the CLEF Association, CLEF 2021, Virtual Event, September 21-24, 2021, Proceedings 12, pages 239-263. Springer."
1451
+ ],
1452
+ "bbox": [
1453
+ 510,
1454
+ 85,
1455
+ 884,
1456
+ 917
1457
+ ],
1458
+ "page_idx": 9
1459
+ },
1460
+ {
1461
+ "type": "page_number",
1462
+ "text": "3446",
1463
+ "bbox": [
1464
+ 480,
1465
+ 928,
1466
+ 519,
1467
+ 940
1468
+ ],
1469
+ "page_idx": 9
1470
+ },
1471
+ {
1472
+ "type": "list",
1473
+ "sub_type": "ref_text",
1474
+ "list_items": [
1475
+ "Harsha Nori, Yin Tat Lee, Sheng Zhang, Dean Carignan, Richard Edgar, Nicolo Fusi, Nicholas King, Jonathan Larson, Yuanzhi Li, Weishung Liu, et al. 2023. Can generalist foundation models outcompete special-purpose tuning? case study in medicine. arXiv preprint arXiv:2311.16452.",
1476
+ "Jayr Pereira, Robson Fidalgo, Roberto Lotufo, and Rodrigo Nogueira. 2023. Visconde: Multi-document qa with gpt-3 and neural reranking. In European Conference on Information Retrieval, pages 534-543. Springer.",
1477
+ "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. J. Mach. Learn. Res., 21(1).",
1478
+ "Pranav Rajpurkar, Robin Jia, and Percy Liang. 2018. Know what you don't know: Unanswerable questions for SQuAD. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 784-789, Melbourne, Australia. Association for Computational Linguistics.",
1479
+ "Abhilasha Ravichander, Matt Gardner, and Ana Marasovic. 2022. CONDAQA: A contrastive reading comprehension dataset for reasoning about negation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8729-8755, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.",
1480
+ "Jie Ren, Jiaming Luo, Yao Zhao, Kundan Krishna, Mohammad Saleh, Balaji Lakshminarayanan, and Peter J Liu. 2022. Out-of-distribution detection and selective generation for conditional language models. In The Eleventh International Conference on Learning Representations.",
1481
+ "Freda Shi, Xinyun Chen, Kanishka Misra, Nathan Scales, David Dohan, Ed H. Chi, Nathanael Scharli, and Denny Zhou. 2023. Large language models can be easily distracted by irrelevant context. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 31210-31227. PMLR.",
1482
+ "Aviv Slobodkin, Omer Goldman, Avi Caciularu, Ido Dagan, and Shauli Ravfogel. 2023. The curious case of hallucinatory (un)answerability: Finding truths in the hidden states of over-confident large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3607-3625, Singapore. Association for Computational Linguistics.",
1483
+ "Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. 2022. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085."
1484
+ ],
1485
+ "bbox": [
1486
+ 115,
1487
+ 85,
1488
+ 489,
1489
+ 917
1490
+ ],
1491
+ "page_idx": 10
1492
+ },
1493
+ {
1494
+ "type": "list",
1495
+ "sub_type": "ref_text",
1496
+ "list_items": [
1497
+ "Boxin Wang, Chejian Xu, Shuohang Wang, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Awadallah, and Bo Li. 2021. Adversarial glue: A multi-task benchmark for robustness evaluation of language models. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1.",
1498
+ "Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171.",
1499
+ "Jason Wei, Maarten Bosma, Vincent Y Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. 2021. Finetuned language models are zero-shot learners. arXiv preprint arXiv:2109.01652.",
1500
+ "Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. 2024. Chain-of-thought prompting elicits reasoning in large language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS '22, Red Hook, NY, USA. Curran Associates Inc.",
1501
+ "Yi Yang, Wen-tau Yih, and Christopher Meek. 2015. WikiQA: A challenge dataset for open-domain question answering. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 2013-2018, Lisbon, Portugal. Association for Computational Linguistics.",
1502
+ "Zhangyue Yin, Qiushi Sun, Qipeng Guo, Jiawen Wu, Xipeng Qiu, and Xuanjing Huang. 2023. Do large language models know what they don't know? In Findings of the Association for Computational Linguistics: ACL 2023, pages 8653-8665, Toronto, Canada. Association for Computational Linguistics.",
1503
+ "Denny Zhou, Nathanael Scharli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Olivier Bousquet, Quoc Le, and Ed Chi. 2022. Least-to-most prompting enables complex reasoning in large language models. arXiv preprint arXiv:2205.10625.",
1504
+ "Wenxuan Zhou, Sheng Zhang, Hoifung Poon, and Muhao Chen. 2023. Context-faithful prompting for large language models. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 14544–14556, Singapore. Association for Computational Linguistics.",
1505
+ "Haichao Zhu, Li Dong, Furu Wei, Wenhui Wang, Bing Qin, and Ting Liu. 2019. Learning to ask unanswerable questions for machine reading comprehension. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4238-4248, Florence, Italy. Association for Computational Linguistics."
1506
+ ],
1507
+ "bbox": [
1508
+ 510,
1509
+ 85,
1510
+ 880,
1511
+ 917
1512
+ ],
1513
+ "page_idx": 10
1514
+ },
1515
+ {
1516
+ "type": "page_number",
1517
+ "text": "3447",
1518
+ "bbox": [
1519
+ 480,
1520
+ 928,
1521
+ 519,
1522
+ 940
1523
+ ],
1524
+ "page_idx": 10
1525
+ },
1526
+ {
1527
+ "type": "text",
1528
+ "text": "Wei Zou, Runpeng Geng, Binghui Wang, and Jinyuan Jia. 2024. Poisonedrag: Knowledge poisoning attacks to retrieval-augmented generation of large language models. arXiv preprint arXiv:2402.07867.",
1529
+ "bbox": [
1530
+ 115,
1531
+ 85,
1532
+ 489,
1533
+ 139
1534
+ ],
1535
+ "page_idx": 11
1536
+ },
1537
+ {
1538
+ "type": "page_number",
1539
+ "text": "3448",
1540
+ "bbox": [
1541
+ 480,
1542
+ 928,
1543
+ 519,
1544
+ 940
1545
+ ],
1546
+ "page_idx": 11
1547
+ },
1548
+ {
1549
+ "type": "text",
1550
+ "text": "A Prompting templates",
1551
+ "text_level": 1,
1552
+ "bbox": [
1553
+ 114,
1554
+ 84,
1555
+ 334,
1556
+ 99
1557
+ ],
1558
+ "page_idx": 12
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "Prompts with context Prompts for other datasets are provided below. For SQuAD2, we do not include a boolean directive as the dataset contains no boolean questions.",
1563
+ "bbox": [
1564
+ 112,
1565
+ 110,
1566
+ 487,
1567
+ 174
1568
+ ],
1569
+ "page_idx": 12
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "Example prompt for SQuAD2:",
1574
+ "bbox": [
1575
+ 114,
1576
+ 181,
1577
+ 346,
1578
+ 197
1579
+ ],
1580
+ "page_idx": 12
1581
+ },
1582
+ {
1583
+ "type": "code",
1584
+ "sub_type": "code",
1585
+ "code_caption": [],
1586
+ "code_body": "Create a shortest Answer to the Question using the following documents. Answer Unanswerable when you are not sure about the answer. Please only output the exact answer and keep the answer concise. Context: $\\{c\\}$ Question: $\\{q\\}$ Answer:",
1587
+ "guess_lang": "txt",
1588
+ "bbox": [
1589
+ 119,
1590
+ 203,
1591
+ 473,
1592
+ 271
1593
+ ],
1594
+ "page_idx": 12
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Example prompt for PubmedQA:",
1599
+ "bbox": [
1600
+ 114,
1601
+ 278,
1602
+ 364,
1603
+ 293
1604
+ ],
1605
+ "page_idx": 12
1606
+ },
1607
+ {
1608
+ "type": "code",
1609
+ "sub_type": "code",
1610
+ "code_caption": [],
1611
+ "code_body": "Create an Answer to the Question using following documents. Pay attention to answer only \"yes\", \"no\" or \"Unanswerable\". Answer \"Unanswerable\" when you are not sure about the answer. \nContext: {c} \nQuestion: {q} \nAnswer:",
1612
+ "guess_lang": "txt",
1613
+ "bbox": [
1614
+ 119,
1615
+ 300,
1616
+ 473,
1617
+ 367
1618
+ ],
1619
+ "page_idx": 12
1620
+ },
1621
+ {
1622
+ "type": "text",
1623
+ "text": "Example prompt for BioASQ:",
1624
+ "bbox": [
1625
+ 114,
1626
+ 374,
1627
+ 339,
1628
+ 390
1629
+ ],
1630
+ "page_idx": 12
1631
+ },
1632
+ {
1633
+ "type": "code",
1634
+ "sub_type": "code",
1635
+ "code_caption": [],
1636
+ "code_body": "Create an Answer to the Question using following documents. Pay attention to answer only \"yes\" or \"no\". Answer \"Unanswerable\" when you are not sure about the answer. \nContext: {c} \nQuestion: {q} \nAnswer:",
1637
+ "guess_lang": "txt",
1638
+ "bbox": [
1639
+ 119,
1640
+ 397,
1641
+ 473,
1642
+ 463
1643
+ ],
1644
+ "page_idx": 12
1645
+ },
1646
+ {
1647
+ "type": "text",
1648
+ "text": "Prompts without context",
1649
+ "text_level": 1,
1650
+ "bbox": [
1651
+ 114,
1652
+ 481,
1653
+ 312,
1654
+ 495
1655
+ ],
1656
+ "page_idx": 12
1657
+ },
1658
+ {
1659
+ "type": "text",
1660
+ "text": "The prompting template for no context is different from the original. We remove the instruction expression of \"use the documents\" since no documents are provided. This is the example prompt used for QASPER when context is removed:",
1661
+ "bbox": [
1662
+ 112,
1663
+ 502,
1664
+ 487,
1665
+ 581
1666
+ ],
1667
+ "page_idx": 12
1668
+ },
1669
+ {
1670
+ "type": "code",
1671
+ "sub_type": "code",
1672
+ "code_caption": [],
1673
+ "code_body": "Create an Answer to the Question. Answer \"Yes\" or \"No\" for boolean questions. Answer \"Unanswerable\" when you are not sure about the answer. \nContext: {c} \nQuestion: {q} \nAnswer:",
1674
+ "guess_lang": "txt",
1675
+ "bbox": [
1676
+ 119,
1677
+ 589,
1678
+ 473,
1679
+ 656
1680
+ ],
1681
+ "page_idx": 12
1682
+ },
1683
+ {
1684
+ "type": "text",
1685
+ "text": "Correspondingly, we remove this instruction phrase from the prompts for SQuAD2, PubmedQA, and BioASQ.",
1686
+ "bbox": [
1687
+ 112,
1688
+ 664,
1689
+ 485,
1690
+ 709
1691
+ ],
1692
+ "page_idx": 12
1693
+ },
1694
+ {
1695
+ "type": "text",
1696
+ "text": "B Experiment Details",
1697
+ "text_level": 1,
1698
+ "bbox": [
1699
+ 114,
1700
+ 725,
1701
+ 319,
1702
+ 740
1703
+ ],
1704
+ "page_idx": 12
1705
+ },
1706
+ {
1707
+ "type": "text",
1708
+ "text": "We run all experiments on an A100 GPU with 40GB of memory for LLaMa2, Vicuna, Flan-T5 and Mistral. We set max context length to 3096 and max new tokens to 256. For all models, evaluation batch size is 2. We randomly sample $10\\%$ of SQuAD2 test dataset in this work.",
1709
+ "bbox": [
1710
+ 112,
1711
+ 751,
1712
+ 487,
1713
+ 847
1714
+ ],
1715
+ "page_idx": 12
1716
+ },
1717
+ {
1718
+ "type": "text",
1719
+ "text": "C Ablation Study",
1720
+ "text_level": 1,
1721
+ "bbox": [
1722
+ 114,
1723
+ 860,
1724
+ 284,
1725
+ 876
1726
+ ],
1727
+ "page_idx": 12
1728
+ },
1729
+ {
1730
+ "type": "text",
1731
+ "text": "We conduct experiments removing constraints from boolean question prompts. We refer to the",
1732
+ "bbox": [
1733
+ 112,
1734
+ 887,
1735
+ 485,
1736
+ 917
1737
+ ],
1738
+ "page_idx": 12
1739
+ },
1740
+ {
1741
+ "type": "table",
1742
+ "img_path": "images/26aa7f5d97321152abfe1e488f019f020d85522f356077bbe76725a00175a344.jpg",
1743
+ "table_caption": [],
1744
+ "table_footnote": [],
1745
+ "table_body": "<table><tr><td></td><td>PubmedQA</td><td>BioASQ</td><td>QASPER</td></tr><tr><td colspan=\"4\">(a) Constrained prompt</td></tr><tr><td>LLama2</td><td>(30.3)</td><td>(2.8)</td><td>(0.5)</td></tr><tr><td>Vicuna</td><td>(89.5)</td><td>(10.7)</td><td>(28.4)</td></tr><tr><td>Flan-T5</td><td>(0.0)</td><td>(0.0)</td><td>(0.0)</td></tr><tr><td>GPT3.5</td><td>(77.7)</td><td>(36.4)</td><td>(97.8)</td></tr><tr><td colspan=\"4\">(a) Free-form prompt</td></tr><tr><td>LLama2</td><td>(50.3)</td><td>(55.7)</td><td>(21.6)</td></tr><tr><td>Vicuna</td><td>(83.3)</td><td>(54.2)</td><td>(8.9)</td></tr><tr><td>Flan-T5</td><td>(84.0)</td><td>(80.0)</td><td>(92.8)</td></tr><tr><td>GPT3.5</td><td>(48.1)</td><td>(29.3)</td><td>(43.1)</td></tr></table>",
1746
+ "bbox": [
1747
+ 554,
1748
+ 80,
1749
+ 836,
1750
+ 247
1751
+ ],
1752
+ "page_idx": 12
1753
+ },
1754
+ {
1755
+ "type": "table",
1756
+ "img_path": "images/1be5031cf125fc0115a572ba0a8e4601027202f76a99d1b3d21fd2f12f095dbd.jpg",
1757
+ "table_caption": [
1758
+ "Table 7: Abstention performance comparison on boolean questions using constrained prompt and freeform prompt under no context setting. Free-form prompt enables F1an-T5 to successfully abstain across three datasets."
1759
+ ],
1760
+ "table_footnote": [],
1761
+ "table_body": "<table><tr><td></td><td>PubmedQA</td><td>BioASQ</td></tr><tr><td colspan=\"3\">(a) Unanswerable</td></tr><tr><td>LLama2</td><td>(30.3)</td><td>(2.8)</td></tr><tr><td>Vicuna</td><td>(89.5)</td><td>(10.7)</td></tr><tr><td>Flan-T5</td><td>(0.0)</td><td>(0.0)</td></tr><tr><td>GPT3.5</td><td>(77.7)</td><td>(36.4)</td></tr><tr><td colspan=\"3\">(a) Maybe</td></tr><tr><td>LLama2</td><td>(2.6)</td><td>(0.0)</td></tr><tr><td>Vicuna</td><td>(9.0)</td><td>(0.0)</td></tr><tr><td>Flan-T5</td><td>(0.0)</td><td>(0.0)</td></tr><tr><td>GPT3.5</td><td>(70.9)</td><td>(40.2)</td></tr></table>",
1762
+ "bbox": [
1763
+ 588,
1764
+ 350,
1765
+ 805,
1766
+ 517
1767
+ ],
1768
+ "page_idx": 12
1769
+ },
1770
+ {
1771
+ "type": "text",
1772
+ "text": "Table 8: Abstention performance comparison on boolean questions using different abstention representation (\"Unanswerable\" vs \"Maybe\") under no context setting. \"Unanswerable\" enables models to abstain across three datasets.",
1773
+ "bbox": [
1774
+ 507,
1775
+ 527,
1776
+ 882,
1777
+ 596
1778
+ ],
1779
+ "page_idx": 12
1780
+ },
1781
+ {
1782
+ "type": "text",
1783
+ "text": "resulting prompts as “free-form” prompts. The example used for QASPER is given below:",
1784
+ "bbox": [
1785
+ 507,
1786
+ 632,
1787
+ 880,
1788
+ 664
1789
+ ],
1790
+ "page_idx": 12
1791
+ },
1792
+ {
1793
+ "type": "code",
1794
+ "sub_type": "code",
1795
+ "code_caption": [],
1796
+ "code_body": "Create an Answer to the Question using following documents. Answer \"Unanswerable\" when you are not sure about the answer. \nContext: {c} \nQuestion: {q} \nAnswer:",
1797
+ "guess_lang": "txt",
1798
+ "bbox": [
1799
+ 515,
1800
+ 671,
1801
+ 868,
1802
+ 728
1803
+ ],
1804
+ "page_idx": 12
1805
+ },
1806
+ {
1807
+ "type": "text",
1808
+ "text": "Free-form vs. constrained prompts for boolean questions The free-form prompt consistently improves the abstention ability of smaller models on boolean questions across datasets as shown in Table 7. Compared with zero abstention performance (obtained under the constrained prompt), the freeform prompt enables F1an-T5 to successfully abstain across three datasets; in fact, F1an-T5 demonstrates the best abstention ability for boolean questions under the free-form prompt setting across",
1809
+ "bbox": [
1810
+ 507,
1811
+ 758,
1812
+ 884,
1813
+ 917
1814
+ ],
1815
+ "page_idx": 12
1816
+ },
1817
+ {
1818
+ "type": "page_number",
1819
+ "text": "3449",
1820
+ "bbox": [
1821
+ 480,
1822
+ 928,
1823
+ 519,
1824
+ 940
1825
+ ],
1826
+ "page_idx": 12
1827
+ },
1828
+ {
1829
+ "type": "table",
1830
+ "img_path": "images/1643b9e33bf266b3751533fe5b00bfbfe7552098b5ed0304145316deffe9fa6c.jpg",
1831
+ "table_caption": [],
1832
+ "table_footnote": [],
1833
+ "table_body": "<table><tr><td></td><td>BioASQ</td><td>PubmedQA</td></tr><tr><td>Context</td><td>BCL11B mutations in patients affected by a neurodevelopmental disorder with reduced type 2 innate lymphoid cells. Using massively parallel sequencing we identified 13 patients bearing heterozygous germline alterations in BCL11B. Notably, all of them are affected by global developmental delay with speech impairment and intellectual disability; however, none displayed overt clinical signs of immune deficiency. Six frameshift mutations, two nonsense mutations, one missense mutation, and two chromosomal rearrangements resulting in diminished BCL11B expression, arose de novo...</td><td>...Postoperative recovery rates in the surgery group at 1 week and 4 weeks were -7.4% and -1.1%, respectively. Only 5 cases had showed clinical improvement, and the condition of these 5 patients had worsened again at averaged 7.4 weeks after surgery. Postoperative oral steroid therapy was initiated at an average of 6.4 weeks and the average initial dose was 54.0 mg in the surgery group, while 51.3 mg in the nonsurgery group. The recovery rate of the Japanese Orthopedic Association score, which increased after steroid therapy, was better in the nonsurgery group (62.5%) than in the surgery group (18.6%) with significant difference (P&lt;0.01).</td></tr><tr><td>Prompt</td><td>Q: Is there a link between BCL11B haploinsufficiency and syn-dromic neurodevelopmental delay?</td><td>Q: Is decompressive surgery effective for spinal cord sarcoidosis accompanied with compressive cervical myelopathy?</td></tr><tr><td>Given context</td><td>Yes X</td><td>Unanswerable X</td></tr><tr><td>No context</td><td>Yes X</td><td>Yes X</td></tr><tr><td>Random context</td><td>No X</td><td>Unanswerable</td></tr><tr><td>Noisy context</td><td>Yes X</td><td>Yes X</td></tr><tr><td>Ground truth</td><td>No</td><td>No</td></tr></table>",
1834
+ "bbox": [
1835
+ 122,
1836
+ 80,
1837
+ 878,
1838
+ 303
1839
+ ],
1840
+ "page_idx": 13
1841
+ },
1842
+ {
1843
+ "type": "text",
1844
+ "text": "Table 9: Examples of GPT3.5 predictions under different context perturbations for BioASQ and PubmedQA. GPT3.5 tends to hallucinate responses for boolean questions when no or incorrect context is provided. For BioASQ, the model answers the question incorrectly in the gold context setting; removing context results in the model skewing to “yes” and random context results in the model answering “no”, both cases should be “unanswerable” ideally. For PubmedQA, the model answers the question incorrectly in the gold context setting; removing context results in hallucination to “yes” (the model should abstain in this case instead).",
1845
+ "bbox": [
1846
+ 112,
1847
+ 311,
1848
+ 884,
1849
+ 398
1850
+ ],
1851
+ "page_idx": 13
1852
+ },
1853
+ {
1854
+ "type": "text",
1855
+ "text": "datasets. For LLaMa2, the free-form prompt also notably increases its abstention performance.",
1856
+ "bbox": [
1857
+ 112,
1858
+ 423,
1859
+ 485,
1860
+ 454
1861
+ ],
1862
+ "page_idx": 13
1863
+ },
1864
+ {
1865
+ "type": "text",
1866
+ "text": "Different ways to represent abstention We further ablate the wording used to represent abstention in our prompt (results in Table 8). Instead of using \"unanswerable\", we also try the term \"maybe\" in the prompt. We find that using \"maybe\" makes models less likely to abstain. This may be due to \"unanswerable\" being used more frequently in training corpora to represent abstention.",
1867
+ "bbox": [
1868
+ 112,
1869
+ 463,
1870
+ 487,
1871
+ 592
1872
+ ],
1873
+ "page_idx": 13
1874
+ },
1875
+ {
1876
+ "type": "text",
1877
+ "text": "D Further error analysis",
1878
+ "text_level": 1,
1879
+ "bbox": [
1880
+ 112,
1881
+ 602,
1882
+ 346,
1883
+ 620
1884
+ ],
1885
+ "page_idx": 13
1886
+ },
1887
+ {
1888
+ "type": "text",
1889
+ "text": "Table 9 presents example failure cases from BioASQ and PubmedQA.",
1890
+ "bbox": [
1891
+ 112,
1892
+ 629,
1893
+ 487,
1894
+ 659
1895
+ ],
1896
+ "page_idx": 13
1897
+ },
1898
+ {
1899
+ "type": "page_number",
1900
+ "text": "3450",
1901
+ "bbox": [
1902
+ 480,
1903
+ 927,
1904
+ 519,
1905
+ 940
1906
+ ],
1907
+ "page_idx": 13
1908
+ }
1909
+ ]
2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/84e3f209-ffa0-4533-97e7-a3c6efc30d28_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/84e3f209-ffa0-4533-97e7-a3c6efc30d28_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3ede6b2e73697310e9181e832e8ecf36d51c5ebc1fb96156b07a17bb72abccc
3
+ size 717249
2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/full.md ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Characterizing LLM Abstention Behavior in Science QA with Context Perturbations
2
+
3
+ Bingbing Wen<sup>1</sup> Bill Howe<sup>1</sup> Lucy Lu Wang<sup>1,2</sup>
4
+
5
+ <sup>1</sup>University of Washington, <sup>2</sup>Allen Institute for AI {bingbw, billhowe, lucylw}@uw.edu
6
+
7
+ # Abstract
8
+
9
+ The correct model response in the face of uncertainty is to abstain from answering a question so as not to mislead the user. In this work, we study the ability of LLMs to abstain from answering context-dependent science questions when provided insufficient or incorrect context. We probe model sensitivity in several settings: removing gold context, replacing gold context with irrelevant context, and providing additional context beyond what is given. In experiments on four QA datasets with six LLMs, we show that performance varies greatly across models, across the type of context provided, and also by question type; in particular, many LLMs seem unable to abstain from answering boolean questions using standard QA prompts. Our analysis also highlights the unexpected impact of abstention performance on QA task accuracy. Counter-intuitively, in some settings, replacing gold context with irrelevant context or adding irrelevant context to gold context can improve abstention performance in a way that results in improvements in task performance. Our results imply that changes are needed in QA dataset design and evaluation to more effectively assess the correctness and downstream impacts of model abstention.<sup>1</sup>
10
+
11
+ # 1 Introduction
12
+
13
+ Question-answering (QA) in scientific settings is often defined as a context-dependent task, where models answer questions based on provided context or relevant context it identifies. When the provided or retrieved context is itself unreliable or inconsistent, however, the correct model response should be to abstain from answering. Prior work has studied the abstention capabilities of LLMs (Yin et al., 2023; Amayuelas et al., 2024) and proposed approaches to improve abstention when presented with insufficient context (Zhou et al., 2023; Slobod
14
+
15
+ ![](images/1882d4e388315291ad475be6d8591b214c2e2bd539c725ca5c07493bdd8e46a1.jpg)
16
+ Figure 1: Our framework to probe the context sensitivity of LLMs for science QA. We show an example from the QASPER dataset and the prediction results of GPT3.5 under different context perturbation settings. While the model fails to abstain when context is removed, it abstains appropriately when random context is provided.
17
+
18
+ kin et al., 2023), but these approaches focus on general domain question-answering (e.g., SQuAD2) against a narrow range of models (e.g., ChatGPT). As we show in our experiments (§5.2), general domain settings produce highly divergent results from scientific QA settings, and different model architectures also exhibit differing abilities to abstain. Further, as new LLMs continue to be developed and released, we need an extensible way to measure their ability to abstain from answering questions when provided context is irrelevant or uncertain.
19
+
20
+ To address these challenges, we introduce a framework to assess LLM abstention in science question-answering by removing, replacing, and augmenting provided contexts to control the answerability of questions. Using this framework, we probe abstention performance of six LLMs (LLama2, Vicuna, Flan-T5, Mistral, GPT3.5, and GPT4o) on one general domain QA dataset
21
+
22
+ (SQuAD2) and three scientific QA datasets (PubmedQA, BioASQ, QASPER). Several of these datasets include unanswerable questions by design, allowing us to analyze interactions between question answerability and noisy context. Our work aims to answer the following: (i) How well do LLMs abstain from answering questions when the correct context is not provided? (ii) How do context perturbations impact task performance and abstention performance? And (iii) How does question type impact task performance and abstention performance? We summarize our contributions below:
23
+
24
+ - We introduce a framework to study LLM abstention for science QA. Specifically, we probe models' ability to abstain from answering questions when the correct context is not provided, and how abstention is impacted by context perturbations and question type.
25
+ - Using this framework, we investigate the task and abstention performance of six LLMs on four QA datasets, ranging from general-domain factoid QA to context-sensitive, document-based science QA (§5). Our results show that no model consistently abstains in all settings where abstention is expected (unanswerable questions and no context/random context settings), though some models demonstrate a stronger ability to abstain for more context-dependent QA tasks, and instruction-tuned models are generally better at following abstention instructions.
26
+ - We investigate the impacts of context perturbations (§5.1) and question type (§5.2) on task accuracy and abstention ability. Substituting or augmenting context with random irrelevant context consistently facilitates better abstention performance across models and datasets, which can reflect as a counter-intuitive improvement in task performance. We also find that yes-no questions tend to interfere with all models' ability to abstain relative to other question types.
27
+
28
+ # 2 Related Work
29
+
30
+ Prompting LLMs for Science QA The few-shot capability of LLMs have been applied successfully to knowledge-intensive tasks like question answering (Wei et al., 2021; Chowdhery et al., 2024; Nori et al., 2023). Prompting strategies such as chain-of-thought (Wei et al., 2024), least-to-most (Zhou et al., 2022), and others (Kojima et al., 2024; Wang et al., 2022) significantly improve LLMs' zero or
31
+
32
+ few-shot abilities on diverse QA benchmarks in the general (Rajpurkar et al., 2018; Yang et al., 2015) and scientific (Taylor et al., 2022; Pereira et al., 2023) domains. Pereira et al. (2023) adopt retrieve-than-read on the QASPER dataset (Dasigi et al., 2021), showing that current retrievers are the main bottleneck and readers (LLMs) are already performing at the human level. Inspired by this finding, we study how irrelevant or incorrect contexts (mimicking retrieval errors) can impact LLM performance on context-intensive QA tasks.
33
+
34
+ Abstention in LLMs Liao et al. (2022) introduced a prompt-tuning strategy to enhance performance on unanswerable questions by mapping questions to specific templates. Beyond prompting strategies, Cole et al. (2023) demonstrated that sampling methods are more effective at modulating uncertainty compared to relying on the model's likelihood. Other approaches, such as data augmentation, have been used to steer models toward abstention (Zhu et al., 2019). Asai and Choi (2021) provided a detailed analysis of language models' abstention capabilities, identifying paragraph selection and answerability prediction as key areas for improvement. Recent work has introduced new datasets to investigate whether LLMs are aware of their limitations (Yin et al., 2023; Amayuelas et al., 2024), while Slobodkin et al. (2023) revealed that differences in LLM hidden states can delineate the boundary between known and unknown information. Abstention is also closely linked to out-of-distribution (OOD) detection and selective generation. OOD scores derived from conditional language models (Ren et al., 2022) or task representations (Chen et al., 2023) have been employed to abstain from generating low-quality outputs. In this work, we systematically characterize LLM abstention capabilities in context-dependent science question-answering tasks.
35
+
36
+ Context Perturbation Prior work studying input perturbations for NLP tasks include approaches such as model-agnostic input transformations (Liang et al., 2022; Ravichander et al., 2022; Giorgi et al., 2022) and adversarial example generation (Jia and Liang, 2017; Wang et al., 2021). Liang et al. (2022) use semantics-preserving and semantics-altering perturbations in their robustness evaluation of LLMs. Pretrained language models can be negatively impacted by irrelevant context (Chowdhery et al., 2024; Liang et al., 2022),
37
+
38
+ <table><tr><td>Dataset</td><td>Context length (words)</td><td>Unans. proporti-tion</td><td>Answer types</td><td>Test set size</td></tr><tr><td>SQuAD2</td><td>128</td><td>0.5</td><td>Ext</td><td>11873</td></tr><tr><td>PubmedQA</td><td>204</td><td>0.1</td><td>Bool</td><td>500</td></tr><tr><td>BioASQ</td><td>221</td><td>0.0</td><td>Bool</td><td>140</td></tr><tr><td>QASPER</td><td>149</td><td>0.1</td><td>Ext/Abs/Bool</td><td>1451</td></tr></table>
39
+
40
+ Table 1: QA Dataset statistics.
41
+
42
+ e.g., Shi et al. (2023) injected irrelevant numerical context for the MathQA dataset, after which ChatGPT performance dramatically decreased. However, Liang et al. (2022) evaluated T5 (Raffel et al., 2020) and PaLM (Chowdhery et al., 2024), demonstrating that finetuning these models with counterfactual and irrelevant contexts can improve model robustness to noisy context. Additionally, Liu et al. (2023) created a benchmark to systematically assess LLMs' resilience against counterfactual knowledge derived from external texts, while Zou et al. (2024) proposed an attack method that introduces malicious texts into the knowledge base of a RAG system to manipulate the LLM into generating an attacker-specified response. In our framework, we leverage context perturbations to investigate the LLM abstention behavior for science QA, finding occasional counter-intuitive interactions between abstention and task performance.
43
+
44
+ # 3 Datasets
45
+
46
+ We conduct experiments on four QA datasets: SQuAD2 (Rajpurkar et al., 2018), PubmedQA (Jin et al., 2019), BioASQ (Nentidis et al., 2021), and QASPER (Dasigi et al., 2021). Dataset statistics are provided in Table 1. These datasets span general and science domains, and include extractive, abstractive, and boolean questions.
47
+
48
+ - SQuAD2 is a general-domain reading comprehension QA dataset. Answer contexts are extracted from Wikipedia.
49
+ - PubmedQA is a biomedical QA dataset. Questions are automatically derived from PubMed paper titles and are answered from the conclusion sections of the corresponding abstracts. All questions can be answered Yes/No/Maybe.
50
+ - BioASQ includes Yes/No questions that are formulated by biomedical experts, reflecting real-life information needs encountered during their work. Answers are provided by medical experts from paper abstracts.
51
+
52
+ - QASPER is a full document science QA dataset. Questions are written by domain experts and answers are annotated from the full text of associated computer science papers. Questions can be boolean, extractive, or abstractive, and multiple answers may be provided for each question.
53
+
54
+ Unanswerable questions Three of these datasets contain unanswerable questions (proportions in Table 1, examples in Table 2). SQuAD2 introduced unanswerable questions in machine reading comprehension; these unanswerable questions were curated by altering questions through negation, antonym swaps, entity swaps, mutual exclusion, impossible conditions, and other ways which make it such that the context paragraph no longer implies any answer. In SQuAD2, "unanswerable" questions imply irrelevant context passages. For PubmedQA, questions can be answered "yes", "no", or "maybe", and we interpret "maybe" as "unanswerable"; therefore, "unanswerable" in PubmedQA can be interpreted as answers with high uncertainty based on the given context. For QASPER, "unanswerable" questions are expert-labeled, and mean that no answer is available in the given document.
55
+
56
+ # 4 Framework
57
+
58
+ We describe our framework in terms of prompting strategies, context perturbation methods, the choice of models and handling of model output, and evaluation metrics.
59
+
60
+ # 4.1 Prompting strategies
61
+
62
+ We adopt prompting templates that achieved the best performance based on recent work (Pereira et al., 2023). We refer to these templates as constrained prompts since answer constraints (e.g., "Answer 'Yes' or 'No' for boolean questions") are added to achieve better task performance. For datasets that do not have boolean questions (e.g., SQuAD2), we do not include boolean answer constraints. The example prompt used for the QASPER dataset is the following:
63
+
64
+ Create an Answer to the Question using following documents. Pay attention to only answer "Yes" or "No" for boolean questions. Answer "Unanswerable" when you are not sure about the answer.
65
+
66
+ Context: $\{c\}$
67
+
68
+ Question: $\{q\}$
69
+
70
+ Answer:
71
+
72
+ Prompts for other datasets are in Appendix A.
73
+
74
+ We conduct zero-shot experiments. Given an input pair $(c, q)$ where $c$ is context and $q$ is question, we prepend the constrained prompt instructions
75
+
76
+ <table><tr><td>Datasets</td><td>Unanswerable Examples</td></tr><tr><td>SQuAD2</td><td>Q: Who moved to Hollywood in 2004? C: “.... Following the move to Holyrood in 2004 this building was demolished. The former Midlothian County Buildings facing Parliament Square...”</td></tr><tr><td>PubmedQA</td><td>Q: Does rugby headgear prevent concussion? C: “...In addition, coaches from all four levels were questioned about team policies and their personal opinions about the use of headgear to prevent concussion. Although the players tended to believe that the headgear could prevent concussion (62%), the coaches were less convinced (33%)...”</td></tr><tr><td>QASPER</td><td>Q: How many Universal Dependency features are considered? C: Empty.</td></tr></table>
77
+
78
+ Table 2: Example unanswerable questions from datasets (Q: question, C: context).
79
+
80
+ along with an explicit directive for handling unanswerable questions. Given complex interactions between model architecture, pretraining, instruction-tuning, dataset, question type, question answerability, context perturbations, and abstention, these settings confer significant complexity for our analysis. We therefore reserve the analysis of few-shot experiments and in-context learning to future work. We also conduct ablations with different prompting templates and abstention representations (results for these experiments in Appendix C).
81
+
82
+ # 4.2 Context Perturbation
83
+
84
+ We conduct experiments to assess model sensitivity to context perturbations. We either provide the given context, or perturb the context by removing, replacing, or adding context passages (Figure 1).
85
+
86
+ Given context: We use the original/gold context provided by the dataset. For unanswerable questions in SQuAD2, given context is unchanged but the designers manually modified the question to render the context ineffective for inferring an answer. For PubmedQA, we label a question unanswerable if the given answer is "maybe" and do not change the context. For unanswerable questions in QASPER, given context is empty.
87
+
88
+ No context: We remove the given context.
89
+
90
+ Random irrelevant context: We replace the given context with the context from a random question in the train split.
91
+
92
+ Noisy context: We append context from a random question to the given context.
93
+
94
+ # 4.3 Models
95
+
96
+ We conduct experiments using LLamaV2-13b-chat (LLama2), Vicuna1.5-13b-chat (Vicuna), Flan-T5-XL (Flan-T5), Mistral-7B-Instruct-v0.1 (Mistral), gpt-3.5-turbo-0613 (GPT3.5), and gpt-4o-2024-05-13 (GPT4o). We select these models to have reasonable representation across the following attributes:
97
+
98
+ - Closed API (GPT3.5; GPT4o) vs open weights (LLama2, Vicuna, Flan-T5, and Mistral)
99
+ Encoder-decoder (Flan-T5) vs decoder-only (LLama2, Vicuna, Mistral, GPT3.5, and GPT4o) architecture
100
+ - Models having less (LLama2) or more (Vicuna) instruction tuning
101
+
102
+ For all models, we use the same hyperparameters at inference time. We set temperature to 0 and top- $p$ sampling to 1 to reduce the variability of model output (details in Appendix B).
103
+
104
+ Post-processing model output LLMs often generate lengthy responses, so we post-process to extract structured answers. For boolean questions, we take the first words of the output and map them to "yes," "no," or "unanswerable" based on their occurrence.
105
+
106
+ # 4.4 Evaluation metrics
107
+
108
+ We report both task performance (F1 or Accuracy) and abstention performance (rate of abstention) across different experimental settings.
109
+
110
+ Task performance For SQuAD2 and QASPER, we evaluate task performance using $n$ -gram F1 as reported in Rajpurkar et al. (2018). For PubmedQA and BioASQ (boolean questions only), we report Accuracy based on the original papers. Task performance is therefore comparable under different context settings, but is not comparable across datasets.
111
+
112
+ Abstention performance We measure model ab-stention performance by calculating the proportion of questions that is answered "unanswerable." Ideally, models that are perfect at abstaining would be expected to have an abstention proportion of 1.0 when no or irrelevant context is provided for all questions. However, in reality this is not the case, since many questions may be context-independent or could be answered using model parametric knowledge. Abstention is therefore a quality dependent on (i) model ability to follow instructions ("Answer 'Unanswerable' when you are not sure"),
113
+
114
+ <table><tr><td></td><td>SQuAD2</td><td>PubmedQA</td><td>BioASQ</td><td>QASPER</td></tr><tr><td>SOTA</td><td>90.5*</td><td>77.6**</td><td>94.3**</td><td>61.4†</td></tr><tr><td colspan="5">(a) Given context</td></tr><tr><td>LLama2</td><td>51.7</td><td>52.6</td><td>98.6</td><td>16.8</td></tr><tr><td>Vicuna</td><td>61.0</td><td>36.4</td><td>93.6</td><td>30.5</td></tr><tr><td>Flan-T5</td><td>87.4</td><td>73.2</td><td>97.8</td><td>60.1</td></tr><tr><td>Mistral</td><td>38.5</td><td>58.4</td><td>94.2</td><td>50.9</td></tr><tr><td>GPT3.5</td><td>60.4</td><td>61.2</td><td>97.9</td><td>57.8</td></tr><tr><td>GPT4o</td><td>82.6</td><td>61.2</td><td>97.9</td><td>54.1</td></tr></table>
115
+
116
+ <table><tr><td colspan="5">(b) No context</td></tr><tr><td>LLama2</td><td>-11.7</td><td>-17.8</td><td>-43.6</td><td>-2.7</td></tr><tr><td>Vicuna</td><td>-24.0</td><td>-19.4</td><td>-32.9</td><td>-10.4</td></tr><tr><td>Flan-T5</td><td>-38.2</td><td>-16.4</td><td>-30.8</td><td>-38.0</td></tr><tr><td>Mistral</td><td>-20.9</td><td>-31.0</td><td>-32.1</td><td>-29.4</td></tr><tr><td>GPT3.5</td><td>-22.9</td><td>-39.0</td><td>-46.4</td><td>-37.7</td></tr><tr><td>GPT4o</td><td>-36.0</td><td>-45.6</td><td>-49.3</td><td>-35.6</td></tr></table>
117
+
118
+ <table><tr><td colspan="5">(c) Random context</td></tr><tr><td>LLama2</td><td>-1.9</td><td>-40.8</td><td>-63.6</td><td>-0.8</td></tr><tr><td>Vicuna</td><td>-11.8</td><td>-25.2</td><td>-41.5</td><td>-11.5</td></tr><tr><td>Flan-T5</td><td>-37.3</td><td>-59.4</td><td>-63.5</td><td>-37.2</td></tr><tr><td>Mistral</td><td>+4.6</td><td>-47.4</td><td>-59.2</td><td>-30.5</td></tr><tr><td>GPT3.5</td><td>-10.4</td><td>-50.0</td><td>-64.9</td><td>-37.6</td></tr><tr><td>GPT4o</td><td>-32.6</td><td>-51.2</td><td>-64.3</td><td>-35.0</td></tr></table>
119
+
120
+ <table><tr><td colspan="5">(d) Noisy context</td></tr><tr><td>LLama2</td><td>-4.3</td><td>-13.2</td><td>-10.7</td><td>+1.9</td></tr><tr><td>Vicuna</td><td>-1.4</td><td>+4.8</td><td>-0.7</td><td>+4.7</td></tr><tr><td>Flan-T5</td><td>+0.0</td><td>-0.2</td><td>-0.7</td><td>+0.0</td></tr><tr><td>Mistral</td><td>-2.6</td><td>-8.2</td><td>-2.8</td><td>+0.0</td></tr><tr><td>GPT3.5</td><td>-2.4</td><td>-2.8</td><td>-2.2</td><td>-2.4</td></tr><tr><td>GPT4o</td><td>-0.6</td><td>+1.4</td><td>-0.8</td><td>-5.2</td></tr></table>
121
+
122
+ Table 3: Model zero-shot task performance using constrained prompts. SOTA indicates the best zero-shot performance of LLMs reported in previous papers (*=Flan-UL2 (Slobodkin et al., 2023), **=Galactica (Taylor et al., 2022)), or best performance from a pretrained LM ( $\dagger$ =UnifiedQA-large (Dasigi et al., 2021)). (a) Among baseline model performance with the given context, the best performances are bolded, second best underlined. Colors indicate positive or negative delta from baseline task performance with different context perturbations: (b) no context, (c) random context, and (d) noisy context. While task performance generally degrades with context perturbations, this is not consistently the case for QASPER due to interactions between abstention and task performance (see Section 5.1).
123
+
124
+ (ii) question context dependency (whether a question is answerable without context), and (iii) question difficulty (whether the question is answerable using model parametric knowledge). For clarity, we show task performance as plain numbers and abstention rates and deltas using (parentheses).
125
+
126
+ # 5 Results
127
+
128
+ We report baseline task performance (Table 3) and abstention performance (Table 4) for all models
129
+
130
+ on all datasets. Results for context perturbations are shown as changes to task performance and ab-stention performance from baseline. Additional analysis by question type is shown in Figure 2.
131
+
132
+ Baseline task performance in the zero-shot prompting setting is presented in Table 3(a), alongside previously reported SOTA zero-shot performance of LLMs on each dataset. Surprisingly, Flan-T5 achieves the best performance on SQuAD2, PubmedQA, and QASPER, while LLama2 performs best on BioASQ. GPT3.5 achieves the second best performance on PubmedQA, BioASQ, and QASPER; and GPT4o achieves second best performance on SQuAD2, PubmedQA, and BioASQ. Task performance of tested models are close to and sometimes exceed (BioASQ) the reported SOTA on each dataset. Though in this work, we focus on assessing change to task performance under different context settings rather than maximizing model performance.
133
+
134
+ # 5.1 Impact of context perturbations
135
+
136
+ Random context facilitates abstention In Table 4(c), we observe that all models are much more likely to abstain from answering when given random context except on the BioASQ dataset. For SQuAD2 and PubmedQA, random context improves most models' abstention performance to close to 1. Specifically, random context improves Flan-T5's ability to abstain from answering on PubmedQA while the no context setting completely fails to do so. For QASPER, the abstention performance on answerable questions in the random context setting is much higher compared to no context, but is still far from 1. Oddly, for boolean questions in BioASQ, random context biases the model towards answering "no" rather than "unanswerable", and we observe no changes in abstention rate (further analysis in Section 6).
137
+
138
+ Adding noisy context can counter-intuitively improve task performance on some datasets While noisy context has mixed effects on abstention (Table 4(d)), this perturbation does not always translate to negative impacts on task performance. In Table 3(d), task performance increases on QASPER for LLama2 and Vicuna and PubmedQA for Vicuna and GPT4o. For QASPER, unanswerable questions have empty context, so the baseline task performance for unanswerable questions is actually computed with no context; perturbing no context by adding noisy context therefore
139
+
140
+ <table><tr><td>Baseline</td><td colspan="2">SQUAD2</td><td colspan="2">Pubmed</td><td colspan="2">BioASQ</td><td colspan="2">Qasper</td></tr><tr><td>Model</td><td>Ans.</td><td>Unans.</td><td>Ans.</td><td>Unans.</td><td>Ans.</td><td>Ans.</td><td>Unans.</td><td></td></tr><tr><td>LLama2</td><td>(44.7)</td><td>(82.0)</td><td>(37.3)</td><td>(34.5)</td><td>(0.0)</td><td>(3.1)</td><td>(30.9)</td><td></td></tr><tr><td>Vicuna</td><td>(21.1)</td><td>(64.9)</td><td>(61.8)</td><td>(60.0)</td><td>(0.0)</td><td>(30.0)</td><td>(57.0)</td><td></td></tr><tr><td>Flan-T5</td><td>(4.4)</td><td>(85.0)</td><td>(0.0)</td><td>(0.0)</td><td>(0.0)</td><td>(13.0)</td><td>(87.0)</td><td></td></tr><tr><td>Mistral</td><td>(0.8)</td><td>(24.9)</td><td>(24.5)</td><td>(23.6)</td><td>(0.0)</td><td>(12.1)</td><td>(84.8)</td><td></td></tr><tr><td>GPT3.5</td><td>(3.7)</td><td>(53.3)</td><td>(20.4)</td><td>(21.8)</td><td>(0.0)</td><td>(15.0)</td><td>(89.2)</td><td></td></tr><tr><td>GPT4o</td><td>(5.1)</td><td>(83.5)</td><td>(30.1)</td><td>(38.2)</td><td>(0.0)</td><td>(41.1)</td><td>(98.6)</td><td></td></tr></table>
141
+
142
+ (b) No context
143
+
144
+ <table><tr><td>LLama2</td><td>(+14.8)</td><td>(-11.7)</td><td>(-7.0)</td><td>(-3.6)</td><td>(+2.8)</td><td>(+17.7)</td><td>(+3.7)</td></tr><tr><td>Vicuna</td><td>(+28.3)</td><td>(-4.7)</td><td>(+26.7)</td><td>(+27.3)</td><td>(+10.7)</td><td>(+38.2)</td><td>(+20.7)</td></tr><tr><td>Flan-T5</td><td>(+91.2)</td><td>(+11.3)</td><td>(+0.0)</td><td>(+0.0)</td><td>(+0.0)</td><td>(+65.0)</td><td>(-2.8)</td></tr><tr><td>Mistral</td><td>(+12.5)</td><td>(-3.6)</td><td>(+40.0)</td><td>(+36.4)</td><td>(+13.5)</td><td>(+71.5)</td><td>(+7.3)</td></tr><tr><td>GPT3.5</td><td>(+37.1)</td><td>(+2.5)</td><td>(+57.6)</td><td>(+56.4)</td><td>(+36.4)</td><td>(+73.8)</td><td>(+8.4)</td></tr><tr><td>GPT4o</td><td>(+34.9)</td><td>(-16.6)</td><td>(+61.6)</td><td>(+53.5)</td><td>(+45.7)</td><td>(+56.4)</td><td>(+0.5)</td></tr></table>
145
+
146
+ (c) Random context
147
+
148
+ <table><tr><td>LLama2</td><td>( +54.8 )</td><td>( +17.2 )</td><td>( +58.7 )</td><td>( +60.0 )</td><td>( +0.0 )</td><td>( +16.9 )</td><td>( +17.8 )</td></tr><tr><td>Vicuna</td><td>( +73.8 )</td><td>( +31.7 )</td><td>( +37.5 )</td><td>( +40.0 )</td><td>( +0.0 )</td><td>( +44.0 )</td><td>( +34.5 )</td></tr><tr><td>Flan-T5</td><td>( +95.4 )</td><td>( +15.0 )</td><td>( +91.5 )</td><td>( +92.7 )</td><td>( +0.0 )</td><td>( +54.6 )</td><td>( -0.9 )</td></tr><tr><td>Mistral</td><td>( +83.3 )</td><td>( +59.3 )</td><td>( +75.5 )</td><td>( +76.4 )</td><td>( +0.0 )</td><td>( +58.1 )</td><td>( +6.8 )</td></tr><tr><td>GPT3.5</td><td>( +95.5 )</td><td>( +45.9 )</td><td>( +79.6 )</td><td>( +78.2 )</td><td>( +0.0 )</td><td>( +66.9 )</td><td>( +5.5 )</td></tr><tr><td>GPT4o</td><td>( +94.9 )</td><td>( +16.3 )</td><td>( +69.9 )</td><td>( +61.8 )</td><td>( +0.0 )</td><td>( +53.2 )</td><td>( +0.9 )</td></tr></table>
149
+
150
+ (d) Noisy context
151
+
152
+ <table><tr><td>LLama2</td><td>( +22.8 )</td><td>( +3.2 )</td><td>( +18.7 )</td><td>( +18.2 )</td><td>( +0.0 )</td><td>( +2.2 )</td><td>( +17.4 )</td></tr><tr><td>Vicuna</td><td>( +8.2 )</td><td>( +2.5 )</td><td>( -11.0 )</td><td>( -12.7 )</td><td>( +0.0 )</td><td>( +13.2 )</td><td>( +34.7 )</td></tr><tr><td>Flan-T5</td><td>( -0.9 )</td><td>( -1.3 )</td><td>( +0.0 )</td><td>( +0.0 )</td><td>( +0.0 )</td><td>( -1.4 )</td><td>( -2.7 )</td></tr><tr><td>Mistral</td><td>( +0.2 )</td><td>( -2.4 )</td><td>( +15.7 )</td><td>( +20 )</td><td>( +0.0 )</td><td>( +2.2 )</td><td>( +6.4 )</td></tr><tr><td>GPT3.5</td><td>( +1.5 )</td><td>( -2.8 )</td><td>( +3.2 )</td><td>( +0.0 )</td><td>( +0.0 )</td><td>( +4.5 )</td><td>( +4.6 )</td></tr><tr><td>GPT4o</td><td>( +0.0 )</td><td>( -2.4 )</td><td>( -4.7 )</td><td>( -3.7 )</td><td>( +0.0 )</td><td>( +6.6 )</td><td>( +0.9 )</td></tr></table>
153
+
154
+ Table 4: Abstention performance across different models broken down by answerable and unanswerable questions across various datasets. Baseline abstention rates are shown at the top with a gray background. Abstention rates under (b) No context, (c) Random context, and (d) Noisy context settings are shown below as deltas from the base rate. Colors indicate a positive or negative delta. All context perturbations improve model abstention performance in some settings, though this is not uniform over datasets, models, question answerability, or perturbation setting.
155
+
156
+ leads to a trade-off in task performance and abstention performance (some models abstain much more for unanswerable questions and task performance consequently improves).
157
+
158
+ # 5.2 Impact of question type
159
+
160
+ Models' abstention capabilities vary by question type For extractive questions, Figure 2(a) and (d) show that model abstention varies significantly between given context and no context settings; under no context settings, models can achieve abstention performance close to 1 for a highly context-dependent dataset like QASPER. Abstractive answers show similar patterns. Notably, we find all models are reluctant to abstain from boolean questions for all datasets; this overconfidence is apparent even for QASPER, which is a highly document-specific QA dataset. Surprisingly, F1an-T5 and LLama2 demonstrate near zero abstention performance on boolean questions
161
+
162
+ on any dataset, regardless of whether or not context is provided.2 Vicuna and Mistral perform slightly better, with some variability across datasets. GPT3.5 and GPT4o demonstrate much higher abstention performance compared to other models, but are still far from 1.
163
+
164
+ Abstention performance on unanswerable questions varies by dataset In Figure 2, we examine the abstention performance on unanswerable questions (yellow background) and find that performance varies significantly across datasets and models. For SQuAD2: Llama2, Vicuna, Mistral, and GPT4o abstain less when context is removed, which contradicts intuition. In SQuAD2, unanswerable questions are still related to the provided
165
+
166
+ ![](images/eb2b926431e259b37a85b566f65ef9ea64d3a7826aadac0dc6927bb9dbd5311d.jpg)
167
+ Figure 2: Abstention performance changes from "with context" to "no context" settings across different question types. Each row represents one question type, from top to bottom: "Unanswerable", "Boolean", "Abstractive" and "Extractive". White background indicates a dataset does not have questions of that type.
168
+
169
+ <table><tr><td>Model</td><td>SQuAD2</td><td>PubmedQA</td><td>BioASQ</td><td>QASPER</td></tr><tr><td>LLama2</td><td>29.8</td><td>16.6</td><td>2.8</td><td>20.6</td></tr><tr><td>Vicuna</td><td>33.6</td><td>29.0</td><td>10.7</td><td>44.9</td></tr><tr><td>Flan-T5</td><td>91.2</td><td>0.0</td><td>0.0</td><td>66.0</td></tr><tr><td>Mistral</td><td>12.6</td><td>43.2</td><td>13.6</td><td>64.5</td></tr><tr><td>GPT3.5</td><td>38.8</td><td>59.3</td><td>36.4</td><td>75.7</td></tr><tr><td>GPT4o</td><td>22.5</td><td>62.0</td><td>45.7</td><td>38.2</td></tr></table>
170
+
171
+ Table 5: Percentage of answerable questions for which the model changes from answering to abstaining when context is removed. Best performances bolded, second best underlined.
172
+
173
+ context; which may explain why when the confusing context is removed, these two models become more likely to answer. GPT3.5 performs consistently regardless of whether context is provided. This consistency suggests that GPT3.5 may rely on internal mechanisms for abstention that are less sensitive to the presence or absence of contextual information. For PubmedQA, unanswerable questions are associated with context that is highly uncertain; Flan-T5 and LLama2 consistently refuse to abstain from answering these questions, which are boolean, while Vicuna follows the "unanswerable" instruction quite well. For QASPER, abstention performance is generally higher across all models compared to SQuAD2 and PubmedQA since the questions are more document-grounded.
174
+
175
+ # 5.3 Abstention performance by model
176
+
177
+ Instruction-tuned models more readily abstain Table 5 shows the percentage of answers for which the model changed from answering to abstaining when context is removed. The expectation for context-dependent questions would be that a model would abstain from answering if no context is provided. GPT4o achieves the largest abstention changes on PubmedQA and BioASQ, while GPT3.5 also abstain well across all four datasets,
178
+
179
+ indicating that they are responsive to context loss. Vicuna, with more instruction-tuning than LLama2, demonstrates relatively strong abstention behavior in these cases compared to LLama2.
180
+
181
+ Flan-T5 readily abstains for non-boolean questions. Flan-T5 abstains well when context is removed (Table 5). We observe large changes for SQuAD2 and QASPER (comparable or better than GPT4o and GPT3.5), although this behavior does not generalize at all to boolean questions—the change is 0.0 for PubmedQA and BioASQ, which consist only of boolean questions. Different prompting strategies may be necessary to enjoin certain models to abstain when answering boolean questions.
182
+
183
+ # 6 Error Analysis
184
+
185
+ We perform error analysis on a consistently high performing model in our analysis, GPT3.5, and summarize main reasons why the model may fail to abstain. We sample 20 failure cases each from among answerable questions and unanswerable questions, for both gold context and no context settings. We present our findings by dataset.
186
+
187
+ SQuAD2 Answerable questions are either general (e.g., "What German poet was descended from Huguenots?") or could be answered without context (e.g., "What types of pumps are typically used in industrial boilers?"); the model tends to answer these regardless of whether context is provided. For unanswerable questions, half of failure cases are very open-ended like "What effect do technologies and resources generate?" and removing context will cause GPT3.5 to answer rather than abstain. Another $20\%$ of questions contain popular entities but have no correct answer, e.g., "What lake contains part of the Rhine Falls?" misleads the model
188
+
189
+ <table><tr><td></td><td>SQuAD2</td><td>QASPER</td></tr><tr><td>Context</td><td>Computational complexity theory is a branch of the theory of computation in theoretical computer science that focuses on classifying computational problems according to their inherent difficulty, and relating those classes to each other...</td><td>Table TABREF35 show the comparisons between tree and sequential based methods. We can see that, if we don&#x27;t deploy CNN, simple Tree LSTM yields better result than traditional LSTM, but worse than Bidirectional LSTM...</td></tr><tr><td>Prompt</td><td>Q: What is a manual application of mathematical steps?</td><td>Q: Do they separately evaluate performance of their learned representations (before forwarding them to the CNN layer)?</td></tr><tr><td>Given context</td><td>Unanswerable</td><td>No X</td></tr><tr><td>No context</td><td>Calculation X</td><td>Yes X</td></tr><tr><td>Random context</td><td>Unanswerable</td><td>Unanswerable</td></tr><tr><td>Noisy context</td><td>Unanswerable</td><td>Unanswerable X</td></tr><tr><td>Ground truth</td><td>Unanswerable</td><td>Yes</td></tr></table>
190
+
191
+ Table 6: Examples of GPT3.5 predictions under different context perturbations. For SQuAD2, removing context results in the model no longer abstaining, and responding inaccurately. For QASPER, the model answers the question incorrectly in the gold context setting; removing context results in an accurate but incorrect answer (the model should abstain in this case instead).
192
+
193
+ to generate "Lake Constance" as an answer since "The Rhine emerges from Lake Constance."
194
+
195
+ PubmedQA GPT3.5 is strongly inclined to answer "yes" for all failure cases among both answerable and unanswerable questions under the no context setting, perhaps due to the phrasing of automatically constructed questions.
196
+
197
+ BioASQ Around $90\%$ of failure cases we sampled were answered correctly by GPT3.5 without context, including both "yes" and "no" answers. Another $10\%$ of cases are affected by the model's tendency to hallucinate "yes", which is consistent with cases in PubmedQA. We manually substitute antonyms for the word in brackets on failure cases such as "Is Apelin usually [decreased] in diabetes?", "Does vesatolimod [inhibit] TLR7?" etc., and GPT3.5 still always answers "yes". Interestingly, for these factoid questions, substituting gold with random context skews the model strongly towards answering "no". These two types of hallucination behavior require further investigation. Our observations also raise concerns for assessing LLM performance using QA benchmarks containing boolean questions.
198
+
199
+ QASPER For answerable questions, $50\%$ of failures seem to be caused by GPT3.5's ignorance of the ambiguity resulting from anaphora; for instance, GPT3.5 should not be able to resolve terms in questions such as "they", "this study", and "the models" without context, yet the model answers these questions anyway under the no context setting. Around $30\%$ of questions are very general, such as "What is a soft label?" and "Why is NER for tweets more challenging as the number of entities increases?"—these questions lead the model to answer rather
200
+
201
+ than abstain. For unanswerable questions, the distribution of failure reasons is similar.
202
+
203
+ Table 6 shows two context perturbation examples with answers generated by GPT3.5. More examples are given in Appendix D.
204
+
205
+ # 7 Discussion & Conclusion
206
+
207
+ Our study investigates the impacts of context removal and perturbation on LLM performance on scientific QA. While lack of correct context should result in a model abstaining from answering a question, our results highlight that there are inconsistent patterns of model behavior based on model pretraining paradigms, question types, and the context-dependence of various QA datasets. For example, perturbing given context by replacing with random irrelevant context or adding noisy context would be expected to reduce task performance, but in some cases, the improvements in abstention that result can negate any reductions in task performance and potentially lead to gains (e.g., Vicuna and GPT4o on PubmedQA, Llama2 and Vicuna on QASPER). Additionally, we find that abstention varies greatly by question type, with all models in our experiments struggling to abstain on boolean questions.
208
+
209
+ Future work for enhancing models' abstention ability could investigate the impact of (i) Different prompting strategies: since model abstention ability is sensitive to constrained prompts (such as boolean instructions) as shown in Section 5.2, how to select good prompting strategies to produce the best trade-off between task performance and abstention performance remains an interesting problem; (ii) Alternate model architectures: smaller models such as Flan-T5-XL with encoder-decoder architectures performed comparably to larger decoder-only models such as ChatGPT. Further exploration
210
+
211
+ of encoder-decoder architectures or introducing an auxiliary module to foster understanding of context may be helpful; (iii) Other context perturbations: we show initial results that providing noisy context can counter-intuitively improve task performance in some datasets due to interactions with unanswerable questions. How this interacts with retrieval errors or malicious injected context that occur in open-domain QA is a direction that could be explored in future work.
212
+
213
+ Our results have direct implications for dataset curators and model developers. Benchmark QA datasets with mixtures of unanswerable and answerable questions were designed to facilitate assessment of abstention ability, yet our experiments show conflation and a lack of clear assessment of either abstention ability or performance accuracy. In other words, while unanswerable questions were motivated by the need to measure abstention, when aggregated with other questions during task performance evaluation, this distinction is obscured. Additionally, unanswerable questions in different datasets measure different phenomena, e.g., in SQuAD2, they measure model sensitivity to irrelevant context passages, while in QASPER, they indicate that a question is unanswerable based on the given document, neither of which clearly map to the notion of abstaining under insufficient information. Given the importance of assessing model abstention capabilities, separating task and abstention assessment, coupled with changes in dataset construction, is needed to better align model performance on these tasks with human expectations.
214
+
215
+ Beyond dataset curation, other variables—such as the task defined by the dataset, the types of questions posed, the architecture of models, instruction tuning techniques, in-context learning, and domain-specific pretraining—can affect a model's ability to effectively abstain and provide accurate answers. In this work, we attempt to disentangle some of these factors, though not all. Future studies could explore the extent to which in-domain pretraining and abstention-specific instruction tuning techniques impact model abstention performance.
216
+
217
+ On the other hand, our results also hold implications for downstream builders/users of interactive systems who rely on LLMs as question-answering tools. We show that in some cases (e.g., boolean questions), LLMs exhibit little to no ability to abstain, even for highly context-dependent questions such as those in QASPER. System designers should
218
+
219
+ be cautious of these limitations and when/how to infer model uncertainty and communicate this uncertainty to users. For communicating abstention capabilities to users, confidence scores or similar indicators that reflect model certainty, accompanying explanations, or interpretation guidance can empower users to make more informed decisions.
220
+
221
+ # Limitations
222
+
223
+ This work evaluates LLM abstention in situations with incorrect or noisy context, which mimics retrieval errors in retrieval-augmented systems. The problem of abstaining is also crucial in other settings, such as from the fairness, privacy/copyright, and safety perspectives, which we do not address in this work. In the future, we plan to propose a unified framework for abstention evaluation that considers these settings as well.
224
+
225
+ The interplay between abstention and task performance can only be studied in datasets with unanswerable questions, which is scarce in the landscape of QA datasets. We only conduct experiments on three such datasets, so our results may have difficulty generalizing. Additionally, we note the different ways that unanswerable questions were constructed among these datasets, which imply that our experiments may be measuring different notions of "unanswerability." In addition, although question type diversity is common in real application, there are insufficient numbers of QA datasets with question type diversity. Therefore, our results may not generalize, as several question types are only represented in one or two of our datasets. We also note the sensitivity of LLMs to prompt phrasing, as with constrained and free-form prompts for boolean questions, and emphasize that it may be difficult to acquire consistent results without significant efforts made in prompt engineering.
226
+
227
+ Due to the budget constraints, we could not conduct experiments with every single model, dataset, or context perturbation method from existing work, though our framework can be applied to other datasets and models. We will make our framework publicly available such that new models and datasets, as well as context perturbations could be added. Other factors affecting abstention such as indomain pretraining and in-context learning could be incorporated in the future.
228
+
229
+ # Acknowledgements
230
+
231
+ This research was supported in part by the UW, NiSchool Strategic Research Fund.
232
+
233
+ # References
234
+
235
+ Alfonso Amayuelas, Kyle Wong, Liangming Pan, Wenhu Chen, and William Yang Wang. 2024. Knowledge of knowledge: Exploring known-unknowns uncertainty with large language models. In *Findings of the Association for Computational Linguistics* ACL 2024, pages 6416–6432, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics.
236
+ Akari Asai and Eunsol Choi. 2021. Challenges in information-seeking QA: Unanswerable questions and paragraph retrieval. 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 1492-1504, Online. Association for Computational Linguistics.
237
+ Sishuo Chen, Wenkai Yang, Xiaohan Bi, and Xu Sun. 2023. Fine-tuning deteriorates general textual out-of-distribution detection by distorting task-agnostic features. In *Findings of the Association for Computational Linguistics: EACL* 2023, pages 564–579, Dubrovnik, Croatia. Association for Computational Linguistics.
238
+ Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sashank Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan First, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. 2024. Palm: scaling language modeling with pathways. J. Mach. Learn. Res., 24(1).
239
+ Jeremy Cole, Michael Zhang, Daniel Gillick, Julian Eisenschlos, Bhuwan Dhingra, and Jacob Eisenstein. 2023. Selectively answering ambiguous questions. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 530-543, Singapore. Association for Computational Linguistics.
240
+ Pradeep Dasigi, Kyle Lo, Iz Beltagy, Arman Cohan, Noah A. Smith, and Matt Gardner. 2021. A dataset of information-seeking questions and answers anchored in research papers. In Proceedings of the 2021 Conference of the North American Chapter of
241
+
242
+ the Association for Computational Linguistics: Human Language Technologies, pages 4599-4610, Online. Association for Computational Linguistics.
243
+ John Giorgi, Luca Soldaini, Bo Wang, Gary Bader, Kyle Lo, Lucy Lu Wang, and Arman Cohan. 2022. Open domain multi-document summarization: A comprehensive study of model brittleness under retrieval. In EMNLP Findings.
244
+ Robin Jia and Percy Liang. 2017. Adversarial examples for evaluating reading comprehension systems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2021-2031, Copenhagen, Denmark. Association for Computational Linguistics.
245
+ Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. 2019. PubMedQA: A dataset for biomedical research question answering. 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 2567-2577, Hong Kong, China. Association for Computational Linguistics.
246
+ Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2024. Large language models are zero-shot reasoners. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS '22, Red Hook, NY, USA. Curran Associates Inc.
247
+ Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. 2022. Holistic evaluation of language models. arXiv preprint arXiv:2211.09110.
248
+ Jinzhi Liao, Xiang Zhao, Jianming Zheng, Xinyi Li, Fei Cai, and Jiuyang Tang. 2022. Ptau: Prompt tuning for attributing unanswerable questions. In Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1219-1229.
249
+ Yi Liu, Lianzhe Huang, Shicheng Li, Sishuo Chen, Hao Zhou, Fandong Meng, Jie Zhou, and Xu Sun. 2023. Recall: A benchmark for llms robustness against external counterfactual knowledge. arXiv preprint arXiv:2311.08147.
250
+ Anastasios Nentidis, Georgios Katsimpras, Eirini Vandorou, Anastasia Krithara, Luis Gasco, Martin Krallinger, and Georgios Paliouras. 2021. Overview of bioasq 2021: The ninth bioasq challenge on large-scale biomedical semantic indexing and question answering. In Experimental IR Meets Multilinguality, Multimodality, and Interaction: 12th International Conference of the CLEF Association, CLEF 2021, Virtual Event, September 21-24, 2021, Proceedings 12, pages 239-263. Springer.
251
+
252
+ Harsha Nori, Yin Tat Lee, Sheng Zhang, Dean Carignan, Richard Edgar, Nicolo Fusi, Nicholas King, Jonathan Larson, Yuanzhi Li, Weishung Liu, et al. 2023. Can generalist foundation models outcompete special-purpose tuning? case study in medicine. arXiv preprint arXiv:2311.16452.
253
+ Jayr Pereira, Robson Fidalgo, Roberto Lotufo, and Rodrigo Nogueira. 2023. Visconde: Multi-document qa with gpt-3 and neural reranking. In European Conference on Information Retrieval, pages 534-543. Springer.
254
+ 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. J. Mach. Learn. Res., 21(1).
255
+ Pranav Rajpurkar, Robin Jia, and Percy Liang. 2018. Know what you don't know: Unanswerable questions for SQuAD. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 784-789, Melbourne, Australia. Association for Computational Linguistics.
256
+ Abhilasha Ravichander, Matt Gardner, and Ana Marasovic. 2022. CONDAQA: A contrastive reading comprehension dataset for reasoning about negation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8729-8755, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
257
+ Jie Ren, Jiaming Luo, Yao Zhao, Kundan Krishna, Mohammad Saleh, Balaji Lakshminarayanan, and Peter J Liu. 2022. Out-of-distribution detection and selective generation for conditional language models. In The Eleventh International Conference on Learning Representations.
258
+ Freda Shi, Xinyun Chen, Kanishka Misra, Nathan Scales, David Dohan, Ed H. Chi, Nathanael Scharli, and Denny Zhou. 2023. Large language models can be easily distracted by irrelevant context. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 31210-31227. PMLR.
259
+ Aviv Slobodkin, Omer Goldman, Avi Caciularu, Ido Dagan, and Shauli Ravfogel. 2023. The curious case of hallucinatory (un)answerability: Finding truths in the hidden states of over-confident large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3607-3625, Singapore. Association for Computational Linguistics.
260
+ Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. 2022. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085.
261
+
262
+ Boxin Wang, Chejian Xu, Shuohang Wang, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Awadallah, and Bo Li. 2021. Adversarial glue: A multi-task benchmark for robustness evaluation of language models. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1.
263
+ Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171.
264
+ Jason Wei, Maarten Bosma, Vincent Y Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. 2021. Finetuned language models are zero-shot learners. arXiv preprint arXiv:2109.01652.
265
+ Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. 2024. Chain-of-thought prompting elicits reasoning in large language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS '22, Red Hook, NY, USA. Curran Associates Inc.
266
+ Yi Yang, Wen-tau Yih, and Christopher Meek. 2015. WikiQA: A challenge dataset for open-domain question answering. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 2013-2018, Lisbon, Portugal. Association for Computational Linguistics.
267
+ Zhangyue Yin, Qiushi Sun, Qipeng Guo, Jiawen Wu, Xipeng Qiu, and Xuanjing Huang. 2023. Do large language models know what they don't know? In Findings of the Association for Computational Linguistics: ACL 2023, pages 8653-8665, Toronto, Canada. Association for Computational Linguistics.
268
+ Denny Zhou, Nathanael Scharli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Olivier Bousquet, Quoc Le, and Ed Chi. 2022. Least-to-most prompting enables complex reasoning in large language models. arXiv preprint arXiv:2205.10625.
269
+ Wenxuan Zhou, Sheng Zhang, Hoifung Poon, and Muhao Chen. 2023. Context-faithful prompting for large language models. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 14544–14556, Singapore. Association for Computational Linguistics.
270
+ Haichao Zhu, Li Dong, Furu Wei, Wenhui Wang, Bing Qin, and Ting Liu. 2019. Learning to ask unanswerable questions for machine reading comprehension. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4238-4248, Florence, Italy. Association for Computational Linguistics.
271
+
272
+ Wei Zou, Runpeng Geng, Binghui Wang, and Jinyuan Jia. 2024. Poisonedrag: Knowledge poisoning attacks to retrieval-augmented generation of large language models. arXiv preprint arXiv:2402.07867.
273
+
274
+ # A Prompting templates
275
+
276
+ Prompts with context Prompts for other datasets are provided below. For SQuAD2, we do not include a boolean directive as the dataset contains no boolean questions.
277
+
278
+ Example prompt for SQuAD2:
279
+
280
+ ```txt
281
+ Create a shortest Answer to the Question using the following documents. Answer Unanswerable when you are not sure about the answer. Please only output the exact answer and keep the answer concise. Context: $\{c\}$ Question: $\{q\}$ Answer:
282
+ ```
283
+
284
+ Example prompt for PubmedQA:
285
+
286
+ ```txt
287
+ Create an Answer to the Question using following documents. Pay attention to answer only "yes", "no" or "Unanswerable". Answer "Unanswerable" when you are not sure about the answer.
288
+ Context: {c}
289
+ Question: {q}
290
+ Answer:
291
+ ```
292
+
293
+ Example prompt for BioASQ:
294
+
295
+ ```txt
296
+ Create an Answer to the Question using following documents. Pay attention to answer only "yes" or "no". Answer "Unanswerable" when you are not sure about the answer.
297
+ Context: {c}
298
+ Question: {q}
299
+ Answer:
300
+ ```
301
+
302
+ # Prompts without context
303
+
304
+ The prompting template for no context is different from the original. We remove the instruction expression of "use the documents" since no documents are provided. This is the example prompt used for QASPER when context is removed:
305
+
306
+ ```txt
307
+ Create an Answer to the Question. Answer "Yes" or "No" for boolean questions. Answer "Unanswerable" when you are not sure about the answer.
308
+ Context: {c}
309
+ Question: {q}
310
+ Answer:
311
+ ```
312
+
313
+ Correspondingly, we remove this instruction phrase from the prompts for SQuAD2, PubmedQA, and BioASQ.
314
+
315
+ # B Experiment Details
316
+
317
+ We run all experiments on an A100 GPU with 40GB of memory for LLaMa2, Vicuna, Flan-T5 and Mistral. We set max context length to 3096 and max new tokens to 256. For all models, evaluation batch size is 2. We randomly sample $10\%$ of SQuAD2 test dataset in this work.
318
+
319
+ # C Ablation Study
320
+
321
+ We conduct experiments removing constraints from boolean question prompts. We refer to the
322
+
323
+ <table><tr><td></td><td>PubmedQA</td><td>BioASQ</td><td>QASPER</td></tr><tr><td colspan="4">(a) Constrained prompt</td></tr><tr><td>LLama2</td><td>(30.3)</td><td>(2.8)</td><td>(0.5)</td></tr><tr><td>Vicuna</td><td>(89.5)</td><td>(10.7)</td><td>(28.4)</td></tr><tr><td>Flan-T5</td><td>(0.0)</td><td>(0.0)</td><td>(0.0)</td></tr><tr><td>GPT3.5</td><td>(77.7)</td><td>(36.4)</td><td>(97.8)</td></tr><tr><td colspan="4">(a) Free-form prompt</td></tr><tr><td>LLama2</td><td>(50.3)</td><td>(55.7)</td><td>(21.6)</td></tr><tr><td>Vicuna</td><td>(83.3)</td><td>(54.2)</td><td>(8.9)</td></tr><tr><td>Flan-T5</td><td>(84.0)</td><td>(80.0)</td><td>(92.8)</td></tr><tr><td>GPT3.5</td><td>(48.1)</td><td>(29.3)</td><td>(43.1)</td></tr></table>
324
+
325
+ Table 7: Abstention performance comparison on boolean questions using constrained prompt and freeform prompt under no context setting. Free-form prompt enables F1an-T5 to successfully abstain across three datasets.
326
+
327
+ <table><tr><td></td><td>PubmedQA</td><td>BioASQ</td></tr><tr><td colspan="3">(a) Unanswerable</td></tr><tr><td>LLama2</td><td>(30.3)</td><td>(2.8)</td></tr><tr><td>Vicuna</td><td>(89.5)</td><td>(10.7)</td></tr><tr><td>Flan-T5</td><td>(0.0)</td><td>(0.0)</td></tr><tr><td>GPT3.5</td><td>(77.7)</td><td>(36.4)</td></tr><tr><td colspan="3">(a) Maybe</td></tr><tr><td>LLama2</td><td>(2.6)</td><td>(0.0)</td></tr><tr><td>Vicuna</td><td>(9.0)</td><td>(0.0)</td></tr><tr><td>Flan-T5</td><td>(0.0)</td><td>(0.0)</td></tr><tr><td>GPT3.5</td><td>(70.9)</td><td>(40.2)</td></tr></table>
328
+
329
+ Table 8: Abstention performance comparison on boolean questions using different abstention representation ("Unanswerable" vs "Maybe") under no context setting. "Unanswerable" enables models to abstain across three datasets.
330
+
331
+ resulting prompts as “free-form” prompts. The example used for QASPER is given below:
332
+
333
+ ```txt
334
+ Create an Answer to the Question using following documents. Answer "Unanswerable" when you are not sure about the answer.
335
+ Context: {c}
336
+ Question: {q}
337
+ Answer:
338
+ ```
339
+
340
+ Free-form vs. constrained prompts for boolean questions The free-form prompt consistently improves the abstention ability of smaller models on boolean questions across datasets as shown in Table 7. Compared with zero abstention performance (obtained under the constrained prompt), the freeform prompt enables F1an-T5 to successfully abstain across three datasets; in fact, F1an-T5 demonstrates the best abstention ability for boolean questions under the free-form prompt setting across
341
+
342
+ <table><tr><td></td><td>BioASQ</td><td>PubmedQA</td></tr><tr><td>Context</td><td>BCL11B mutations in patients affected by a neurodevelopmental disorder with reduced type 2 innate lymphoid cells. Using massively parallel sequencing we identified 13 patients bearing heterozygous germline alterations in BCL11B. Notably, all of them are affected by global developmental delay with speech impairment and intellectual disability; however, none displayed overt clinical signs of immune deficiency. Six frameshift mutations, two nonsense mutations, one missense mutation, and two chromosomal rearrangements resulting in diminished BCL11B expression, arose de novo...</td><td>...Postoperative recovery rates in the surgery group at 1 week and 4 weeks were -7.4% and -1.1%, respectively. Only 5 cases had showed clinical improvement, and the condition of these 5 patients had worsened again at averaged 7.4 weeks after surgery. Postoperative oral steroid therapy was initiated at an average of 6.4 weeks and the average initial dose was 54.0 mg in the surgery group, while 51.3 mg in the nonsurgery group. The recovery rate of the Japanese Orthopedic Association score, which increased after steroid therapy, was better in the nonsurgery group (62.5%) than in the surgery group (18.6%) with significant difference (P&lt;0.01).</td></tr><tr><td>Prompt</td><td>Q: Is there a link between BCL11B haploinsufficiency and syn-dromic neurodevelopmental delay?</td><td>Q: Is decompressive surgery effective for spinal cord sarcoidosis accompanied with compressive cervical myelopathy?</td></tr><tr><td>Given context</td><td>Yes X</td><td>Unanswerable X</td></tr><tr><td>No context</td><td>Yes X</td><td>Yes X</td></tr><tr><td>Random context</td><td>No X</td><td>Unanswerable</td></tr><tr><td>Noisy context</td><td>Yes X</td><td>Yes X</td></tr><tr><td>Ground truth</td><td>No</td><td>No</td></tr></table>
343
+
344
+ Table 9: Examples of GPT3.5 predictions under different context perturbations for BioASQ and PubmedQA. GPT3.5 tends to hallucinate responses for boolean questions when no or incorrect context is provided. For BioASQ, the model answers the question incorrectly in the gold context setting; removing context results in the model skewing to “yes” and random context results in the model answering “no”, both cases should be “unanswerable” ideally. For PubmedQA, the model answers the question incorrectly in the gold context setting; removing context results in hallucination to “yes” (the model should abstain in this case instead).
345
+
346
+ datasets. For LLaMa2, the free-form prompt also notably increases its abstention performance.
347
+
348
+ Different ways to represent abstention We further ablate the wording used to represent abstention in our prompt (results in Table 8). Instead of using "unanswerable", we also try the term "maybe" in the prompt. We find that using "maybe" makes models less likely to abstain. This may be due to "unanswerable" being used more frequently in training corpora to represent abstention.
349
+
350
+ # D Further error analysis
351
+
352
+ Table 9 presents example failure cases from BioASQ and PubmedQA.
2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb42f7b4b908b66f8a832ed7a222358091330f6513c8c82c9d50f81b2319978e
3
+ size 703311
2024/Characterizing LLM Abstention Behavior in Science QA with Context Perturbations/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Characterizing Text Datasets with Psycholinguistic Features/edda636b-461c-4dc0-a59f-e0ba1b203ec9_content_list.json ADDED
@@ -0,0 +1,2080 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Characterizing Text Datasets with Psycholinguistic Features",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 188,
8
+ 90,
9
+ 811,
10
+ 111
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Marcio Monteiro, Charu James, Marius Kloft, Sophie Fellenz",
17
+ "bbox": [
18
+ 231,
19
+ 143,
20
+ 766,
21
+ 162
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "RPTU Kaiserslautern-Landau, Germany",
28
+ "bbox": [
29
+ 332,
30
+ 162,
31
+ 663,
32
+ 178
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "marcio.monteiro@cs.rptu.de, {charu, kloft, fellenz} @cs.uni-kl.de",
39
+ "bbox": [
40
+ 231,
41
+ 179,
42
+ 764,
43
+ 193
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 260,
53
+ 261,
54
+ 342,
55
+ 275
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Fine-tuning pretrained language models on task-specific data is a common practice in Natural Language Processing (NLP) applications. However, the number of pretrained models available to choose from can be very large, and it remains unclear how to select the optimal model without spending considerable amounts of computational resources, especially for the text domain. To address this problem, we introduce PsyMatrix, a novel framework designed to efficiently characterize text datasets. PsyMatrix evaluates multiple dimensions of text and discourse, producing interpretable, low-dimensional embeddings. Our framework has been tested using a meta-dataset repository that includes the performance of 24 pretrained large language models fine-tuned across 146 classification datasets. Using the proposed embeddings, we successfully developed a meta-learning system capable of recommending the most effective pretrained models (optimal and near-optimal) for fine-tuning on new datasets.",
62
+ "bbox": [
63
+ 141,
64
+ 284,
65
+ 460,
66
+ 598
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 114,
76
+ 607,
77
+ 260,
78
+ 621
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Pre-training a language model on a large, diverse, and unlabeled corpus, then fine-tuning it with task-specific data has proven to be highly effective for enhancing performance of natural language processing (NLP) applications (Radford and Narasimhan, 2018). Since then, numerous pretrained large language models (LLM) have been released to the public, each pretrained on different corpora with varying sizes, and using different architectures. Although the prospect of a universal pretrained model (PTM) that excels across all NLP tasks is attractive, evidence (still) indicates that no single model performs optimally in every scenario (Wolpert, 1996; Lorena et al., 2019; Arango et al., 2024). This poses a challenge for machine learning practitioners, who must select a PTM to fine-tune for a task-specific dataset. Performing an exhaustive search over all possible candidates can",
85
+ "bbox": [
86
+ 112,
87
+ 631,
88
+ 489,
89
+ 921
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "be very time and resource consuming. In practice, this is not realistic.",
96
+ "bbox": [
97
+ 507,
98
+ 261,
99
+ 884,
100
+ 291
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The performance of PTMs often fluctuates depending on some characteristics of the target dataset (Schaffer, 1994), usually referred to as meta-features (Rivolli et al., 2022). For example, a model that performs exceptionally well on carefully written news articles may encounter difficulties with the brevity and slang commonly found in social media posts (Zheng and Yang, 2019; Shushkevich et al., 2022; Roussinov and Sharoff, 2023). Therefore, the challenge is to decide, for a particular dataset, which PTM is expected to perform the best after fine-tuning.",
107
+ "bbox": [
108
+ 507,
109
+ 294,
110
+ 885,
111
+ 487
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "One low-cost approach could be to search for public benchmarks and check which PTM performed the best for similar datasets. However, defining such dataset similarity in an objective manner, specially for text datasets, is very challenging.",
118
+ "bbox": [
119
+ 507,
120
+ 489,
121
+ 885,
122
+ 570
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "To address this, we propose a novel framework named PsyMatrix, which characterizes text datasets by analyzing multiple aspects of text and discourse. These range from simple part-of-speech (POS) statistics to more complex and deep psycholinguistic features (Barnwal and Tiwary, 2017). Our framework generate dataset embeddings that are both interpretable and low-dimensional, providing a deeper understanding of the intricacies inherent in different datasets. Figure 1 illustrates the core components of the framework. The code of the framework is open-source and has been made publicly available<sup>1</sup>.",
129
+ "bbox": [
130
+ 507,
131
+ 571,
132
+ 885,
133
+ 778
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "To sum up, our contributions are as follows:",
140
+ "bbox": [
141
+ 527,
142
+ 782,
143
+ 857,
144
+ 797
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "- Introduction of PsyMatrix: a framework to characterize text datasets by generating interpretable and low-dimensional embeddings that capture several levels of language and discourse.",
151
+ "bbox": [
152
+ 531,
153
+ 815,
154
+ 884,
155
+ 894
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "page_footnote",
161
+ "text": "1https://github.com/contemmcp/psymatrix",
162
+ "bbox": [
163
+ 531,
164
+ 906,
165
+ 830,
166
+ 920
167
+ ],
168
+ "page_idx": 0
169
+ },
170
+ {
171
+ "type": "page_number",
172
+ "text": "14977",
173
+ "bbox": [
174
+ 475,
175
+ 927,
176
+ 524,
177
+ 940
178
+ ],
179
+ "page_idx": 0
180
+ },
181
+ {
182
+ "type": "footer",
183
+ "text": "Findings of the Association for Computational Linguistics: EMNLP 2024, pages 14977-14990",
184
+ "bbox": [
185
+ 210,
186
+ 945,
187
+ 788,
188
+ 958
189
+ ],
190
+ "page_idx": 0
191
+ },
192
+ {
193
+ "type": "footer",
194
+ "text": "November 12-16, 2024 ©2024 Association for Computational Linguistics",
195
+ "bbox": [
196
+ 273,
197
+ 959,
198
+ 724,
199
+ 971
200
+ ],
201
+ "page_idx": 0
202
+ },
203
+ {
204
+ "type": "image",
205
+ "img_path": "images/470074609b4fc2939184443d5726416e30dfd24ac8f23c88a26a60566174f3f8.jpg",
206
+ "image_caption": [
207
+ "Figure 1: PsyMatrix: Text classification datasets (left) are transformed via different feature extractors (middle left). The features are summarized across documents (middle) and a subset of meta-features is selected (middle right). A variational autoencoder compresses the meta-features to result in the final PsyMatrix dataset embeddings (right)."
208
+ ],
209
+ "image_footnote": [],
210
+ "bbox": [
211
+ 191,
212
+ 80,
213
+ 803,
214
+ 287
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "list",
220
+ "sub_type": "text",
221
+ "list_items": [
222
+ "- Recommendation System Potential: the framework's applicability in creating a recommendation system for optimal or nea-optimal pretrained model selection for new datasets.",
223
+ "- Validation Across Datasets: Fine-tuning and evaluation of 24 pretrained large language models on 146 public text classification datasets to validate the framework."
224
+ ],
225
+ "bbox": [
226
+ 136,
227
+ 363,
228
+ 487,
229
+ 506
230
+ ],
231
+ "page_idx": 1
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "The paper is organized as follows: Section 2 reviews existing methods for characterizing datasets in general and for the problem of selecting a pretrained model for fine-tuning on task-specific data. Section 3 provides a detailed description of the framework, including the psycholinguistic dimensions and complexity measures used. Section 4 presents and analyzes the findings from fine-tuning models on 146 datasets and the predictive performance of the provided embeddings, presenting practical applications of PsyMatrix in guiding model selection and its broader implications in machine learning. Finally, Section 5 summarizes the findings, contributions, and potential future work.",
236
+ "bbox": [
237
+ 112,
238
+ 524,
239
+ 489,
240
+ 750
241
+ ],
242
+ "page_idx": 1
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "2 Related Work",
247
+ "text_level": 1,
248
+ "bbox": [
249
+ 112,
250
+ 764,
251
+ 270,
252
+ 778
253
+ ],
254
+ "page_idx": 1
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "The process of selecting an optimal PTM for a specific dataset typically involves trial and error. Practitioners usually start by choosing a few potential models based on prior knowledge and experience (Alzahrani et al., 2022; Ren et al., 2023; Daban et al., 2023; Malic et al., 2023; Qiu et al., 2022). These models are then fine-tuned on the target dataset and have their performance compared,",
259
+ "bbox": [
260
+ 112,
261
+ 791,
262
+ 489,
263
+ 921
264
+ ],
265
+ "page_idx": 1
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "allowing for an assessment of how well each model adapts to the unique characteristics of the data.",
270
+ "bbox": [
271
+ 507,
272
+ 363,
273
+ 880,
274
+ 395
275
+ ],
276
+ "page_idx": 1
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "However, the result of this approach can be limited by the assumptions made during initial model pre-selection, which may not always be valid for the dataset in question, which might lead to suboptimal outcomes. This mismatch underscores the need for a refined selection strategy that takes into account the unique features of the dataset, promoting a more effective model selection process.",
281
+ "bbox": [
282
+ 507,
283
+ 398,
284
+ 882,
285
+ 526
286
+ ],
287
+ "page_idx": 1
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "2.1 Characterization of Datasets",
292
+ "text_level": 1,
293
+ "bbox": [
294
+ 507,
295
+ 542,
296
+ 781,
297
+ 557
298
+ ],
299
+ "page_idx": 1
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Recognizing specific characteristics or meta-features of the target dataset can considerably refine the selection of potential models. This approach helps eliminate models that historically underperform on similar types of data, emphasizing the importance of accurate meta-feature identification and use. By pinpointing critical meta-features, we can more reliably forecast the performance of machine learning algorithms that are tailored to particular dataset profiles (Brazdil et al., 2022).",
304
+ "bbox": [
305
+ 507,
306
+ 565,
307
+ 882,
308
+ 726
309
+ ],
310
+ "page_idx": 1
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "Researchers have proposed a wide range of meta-features to characterize datasets in general, in order to aid in the model selection process, spanning from basic statistical attributes like mean and variance, to more advanced measures rooted in complexity and information theory (Lindner and Studer, 1999; Sohn, 1999; Bensusan et al., 2000; Peng et al., 2002; Lorena et al., 2019; Rivolli et al., 2022). Unfortunately, they are all designed for tabular datasets, making them not applicable to text datasets directly. Notably, efforts have been made to adapt meta-feature extraction to image datasets,",
315
+ "bbox": [
316
+ 507,
317
+ 728,
318
+ 884,
319
+ 921
320
+ ],
321
+ "page_idx": 1
322
+ },
323
+ {
324
+ "type": "page_number",
325
+ "text": "14978",
326
+ "bbox": [
327
+ 477,
328
+ 927,
329
+ 524,
330
+ 940
331
+ ],
332
+ "page_idx": 1
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "demonstrating some success in this area (Edwards and Storkey, 2017; Jomaa et al., 2021).",
337
+ "bbox": [
338
+ 112,
339
+ 84,
340
+ 485,
341
+ 115
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "To our knowledge, the only research addressing specifically text dataset characterization is by Simig et al. (2022), who introduce the Text Characterization Toolkit (TCT). TCT utilizes several existing metrics from the Coh-Metrix toolkit to evaluate the documents in a given dataset, performing various statistical analyses on the extracted features (McNamara et al., 2014). Although the effectiveness of these metrics was not quantified objectively, it contributes to a better understanding of text datasets. Our framework also uses Coh-Metrix as one source of features, but is not limited to it, employing other similar tools as well.",
348
+ "bbox": [
349
+ 112,
350
+ 117,
351
+ 489,
352
+ 326
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "2.2 Pretrained Model Selection",
359
+ "text_level": 1,
360
+ "bbox": [
361
+ 112,
362
+ 338,
363
+ 374,
364
+ 354
365
+ ],
366
+ "page_idx": 2
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "Other approaches have been proposed to address the pretrained model selection problem, using various strategies and architectures (Arango et al., 2024; Li et al., 2023; Bolya et al., 2021; Tang et al., 2024). While these contributions have significantly advanced the field, their focus has predominantly been on image-related tasks (or at least only demonstrated on it). This leaves a gap in methodologies specifically designed for text-based applications. Our research aims to bridge this gap. To the best of our knowledge, this is the first work specifically tailored to the text domain.",
371
+ "bbox": [
372
+ 112,
373
+ 362,
374
+ 489,
375
+ 552
376
+ ],
377
+ "page_idx": 2
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "3 The PsyMatrix Framework",
382
+ "text_level": 1,
383
+ "bbox": [
384
+ 112,
385
+ 568,
386
+ 384,
387
+ 585
388
+ ],
389
+ "page_idx": 2
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "The PsyMatrix framework, as depicted in Figure 1, is designed to synthesize text datasets into a manageable form (i.e., dataset embeddings) using a series of feature extractors and dimensionality reduction techniques. These tools combined, not only capture the essence of the documents, but also facilitate a deeper understanding of underlying patterns and relationships. This way, the PsyMatrix Framework aims to provide dataset embeddings that can be employed as performance predictors for different downstream tasks. This section details the components of the PsyMatrix Framework, illustrating how each module contributes to the overall goal.",
394
+ "bbox": [
395
+ 112,
396
+ 596,
397
+ 489,
398
+ 821
399
+ ],
400
+ "page_idx": 2
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "3.1 Problem Statement",
405
+ "text_level": 1,
406
+ "bbox": [
407
+ 112,
408
+ 834,
409
+ 312,
410
+ 848
411
+ ],
412
+ "page_idx": 2
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "A dataset $\\mathcal{D}$ consists of $M$ documents, each represented by a feature vector of size $N$ , extracted through the function $\\Psi$ . This function maps the set of documents to a feature matrix $\\mathbf{X}$ , where each",
417
+ "bbox": [
418
+ 112,
419
+ 856,
420
+ 489,
421
+ 920
422
+ ],
423
+ "page_idx": 2
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "row corresponds to a document's feature vector. Thus, we express the feature matrix for $\\mathcal{D}$ as:",
428
+ "bbox": [
429
+ 507,
430
+ 84,
431
+ 884,
432
+ 115
433
+ ],
434
+ "page_idx": 2
435
+ },
436
+ {
437
+ "type": "equation",
438
+ "text": "\n$$\n\\mathbf {X} = \\Psi (\\mathcal {D}) \\in \\mathbb {R} ^ {M \\times N} \\tag {1}\n$$\n",
439
+ "text_format": "latex",
440
+ "bbox": [
441
+ 613,
442
+ 128,
443
+ 882,
444
+ 147
445
+ ],
446
+ "page_idx": 2
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "To characterize the entire dataset $\\mathcal{D}$ , we apply the embedding function $\\Phi$ , defined in Eq.(2), which transforms $\\mathbf{X}$ into a reduced-dimensional representation vector $\\mathbf{x}_{\\phi}$ of size $K$ (where $K \\ll M \\times N$ ):",
451
+ "bbox": [
452
+ 507,
453
+ 161,
454
+ 882,
455
+ 225
456
+ ],
457
+ "page_idx": 2
458
+ },
459
+ {
460
+ "type": "equation",
461
+ "text": "\n$$\n\\mathbf {x} _ {\\phi} = \\Phi (\\mathbf {X}) \\in \\mathbb {R} ^ {K} \\tag {2}\n$$\n",
462
+ "text_format": "latex",
463
+ "bbox": [
464
+ 621,
465
+ 237,
466
+ 882,
467
+ 256
468
+ ],
469
+ "page_idx": 2
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "The objective is to develop an embedding that can effectively serve as a performance predictor for various tasks across different text datasets. To this end, let the matrix $Y_{ij}$ be a meta-dataset containing the actual performances of each model $i$ when fine-tuned on each dataset $\\mathcal{D}_j$ . Then, let $\\eta_i$ be a surrogate function estimating this performance:",
474
+ "bbox": [
475
+ 507,
476
+ 269,
477
+ 882,
478
+ 382
479
+ ],
480
+ "page_idx": 2
481
+ },
482
+ {
483
+ "type": "equation",
484
+ "text": "\n$$\n\\hat {Y} _ {i j} = \\eta_ {i} (\\Phi (\\Psi (\\mathcal {D} _ {j})) \\tag {3}\n$$\n",
485
+ "text_format": "latex",
486
+ "bbox": [
487
+ 618,
488
+ 394,
489
+ 882,
490
+ 414
491
+ ],
492
+ "page_idx": 2
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "The problem is thus to find a pipeline $\\{\\Psi, \\Phi, \\eta\\}$ such that the estimation error across all models and datasets is minimized:",
497
+ "bbox": [
498
+ 507,
499
+ 426,
500
+ 880,
501
+ 473
502
+ ],
503
+ "page_idx": 2
504
+ },
505
+ {
506
+ "type": "equation",
507
+ "text": "\n$$\n\\min _ {\\Psi , \\Phi , \\eta} \\sum_ {i = 1} ^ {M} \\sum_ {j = 1} ^ {D} \\left(Y _ {i j} - \\hat {Y} _ {i j}\\right) ^ {2} \\tag {4}\n$$\n",
508
+ "text_format": "latex",
509
+ "bbox": [
510
+ 584,
511
+ 483,
512
+ 882,
513
+ 529
514
+ ],
515
+ "page_idx": 2
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "Subsequent sections will discuss empirical strategies to address this optimization challenge.",
520
+ "bbox": [
521
+ 507,
522
+ 541,
523
+ 882,
524
+ 574
525
+ ],
526
+ "page_idx": 2
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "3.2 Psycholinguistic features",
531
+ "text_level": 1,
532
+ "bbox": [
533
+ 507,
534
+ 585,
535
+ 749,
536
+ 601
537
+ ],
538
+ "page_idx": 2
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "Some texts are easier to read than others. For instance, straightforward sentences with common vocabulary, as those found in children's books, are generally simpler for humans to process than complex texts with specialized terminology, like legal contracts or scientific articles. We hypothesize that language models experience similar challenges, which likely affects their performance on various tasks. The key challenge, then, is to find a method for measuring the complexity of text.",
543
+ "bbox": [
544
+ 505,
545
+ 606,
546
+ 882,
547
+ 766
548
+ ],
549
+ "page_idx": 2
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "Several tools have been proposed to quantify the complexity of text. In this work, we combine features from the following tools as a function $\\psi_{\\mathrm{psy}}$ :",
554
+ "bbox": [
555
+ 507,
556
+ 768,
557
+ 882,
558
+ 816
559
+ ],
560
+ "page_idx": 2
561
+ },
562
+ {
563
+ "type": "list",
564
+ "sub_type": "text",
565
+ "list_items": [
566
+ "- TextStat2 (Bansal and Aggarwal, 2024)",
567
+ "- TAACO $^3$ (Crossley et al., 2016)"
568
+ ],
569
+ "bbox": [
570
+ 529,
571
+ 827,
572
+ 838,
573
+ 872
574
+ ],
575
+ "page_idx": 2
576
+ },
577
+ {
578
+ "type": "page_footnote",
579
+ "text": "2https://textstat.org/",
580
+ "bbox": [
581
+ 529,
582
+ 882,
583
+ 699,
584
+ 895
585
+ ],
586
+ "page_idx": 2
587
+ },
588
+ {
589
+ "type": "page_footnote",
590
+ "text": "<sup>3</sup>https://www.linguisticanalysistools.org/taaco.html",
591
+ "bbox": [
592
+ 512,
593
+ 895,
594
+ 840,
595
+ 917
596
+ ],
597
+ "page_idx": 2
598
+ },
599
+ {
600
+ "type": "page_number",
601
+ "text": "14979",
602
+ "bbox": [
603
+ 477,
604
+ 927,
605
+ 524,
606
+ 940
607
+ ],
608
+ "page_idx": 2
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "Coh-Metrix (Graesser et al., 2004, 2011)",
613
+ "bbox": [
614
+ 134,
615
+ 84,
616
+ 463,
617
+ 99
618
+ ],
619
+ "page_idx": 3
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "Those tools provide sophisticated features of texts, which are usually referred to as psychologists features. Together, they provide more than 300 features. To mention a few:",
624
+ "bbox": [
625
+ 112,
626
+ 111,
627
+ 489,
628
+ 174
629
+ ],
630
+ "page_idx": 3
631
+ },
632
+ {
633
+ "type": "list",
634
+ "sub_type": "text",
635
+ "list_items": [
636
+ "- Gunning fog index: estimates the number of years in formal education that a person needs to clearly understand the text (Gunning, 1952).",
637
+ "- Rix readability index: it measures readability based on the number of long words in relation to the total number of sentences. A higher score indicates that a text is more complex and potentially harder to understand, while a lower score suggests easier readability (Anderson, 1983).",
638
+ "- Word frequency for content words: measures the frequency of content words (e.g., nouns, verbs, adjectives, adverbs) in the CELEX2 reference corpus (Baayen et al., 1995).",
639
+ "- Hypernyms for verbs nouns and verbs: estimates the specificity of words by the number of its hypernyms in WordNet (Fellbaum, 1998).",
640
+ "- Type-Token Ratio (TTR): quantifies the lexical diversity within a text. It is calculated dividing the number of unique words (types) by the total number of words (tokens). A high TTR indicates a large proportion of unique words within the text. This can make the text more complex and challenging to understand, as it requires the reader to process and integrate a higher number of unique words into the context (Templin, 1957)."
641
+ ],
642
+ "bbox": [
643
+ 136,
644
+ 186,
645
+ 489,
646
+ 695
647
+ ],
648
+ "page_idx": 3
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "For more details on each feature, we encourage the reader to check the official documentation of each tool.",
653
+ "bbox": [
654
+ 112,
655
+ 706,
656
+ 489,
657
+ 753
658
+ ],
659
+ "page_idx": 3
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "3.3 Topic-based features",
664
+ "text_level": 1,
665
+ "bbox": [
666
+ 114,
667
+ 765,
668
+ 324,
669
+ 780
670
+ ],
671
+ "page_idx": 3
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "Another hypothesis is that language models struggle more with some topics than others, similar to humans. Hence, determining the range of topics covered in a dataset might be beneficial for predicting the performance of a fine-tuned model.",
676
+ "bbox": [
677
+ 112,
678
+ 785,
679
+ 489,
680
+ 865
681
+ ],
682
+ "page_idx": 3
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "Topic modeling is a branch of unsupervised machine learning that aims to discover the abstract",
687
+ "bbox": [
688
+ 112,
689
+ 866,
690
+ 489,
691
+ 897
692
+ ],
693
+ "page_idx": 3
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "\"topics\" that occur in a collection of documents. Latent Dirichlet Allocation (LDA) is one of the most popular topic modeling techniques, due to its probabilistic foundations and flexibility (Blei et al., 2003). LDA models each document as a mixture of topics. It outputs a topic distribution vector for each document, where each element of the vector represents the probability of the document to contain a particular topic, hence another source of features for the documents.",
698
+ "bbox": [
699
+ 505,
700
+ 84,
701
+ 884,
702
+ 243
703
+ ],
704
+ "page_idx": 3
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "However, for LDA to be effective across various datasets, it needs to be trained on a large and diverse set of documents, and the number of topics should be large enough as well. This ensures that the topics that LDA identifies are likely to appear across the majority of documents in any target dataset. These topic features are extracted by $\\psi_{\\mathrm{topic}}$ .",
709
+ "bbox": [
710
+ 507,
711
+ 244,
712
+ 884,
713
+ 359
714
+ ],
715
+ "page_idx": 3
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "3.4 Language-based features",
720
+ "text_level": 1,
721
+ "bbox": [
722
+ 507,
723
+ 370,
724
+ 754,
725
+ 386
726
+ ],
727
+ "page_idx": 3
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "PsyMatrix also determines the proportion of different languages in a dataset. Although the main purpose of the framework (for now) is to deal with English datasets, we have noticed that, on public datasets (specially those based on user reviews), it is not uncommon to find documents written in different languages. This can also impact the performance of fine-tuned language models that were not pretrained on a multi-language corpus.",
732
+ "bbox": [
733
+ 507,
734
+ 393,
735
+ 884,
736
+ 537
737
+ ],
738
+ "page_idx": 3
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "Given this, the languages identified within the documents are incorporated as additional features within the framework, one feature per language. This approach helps to enhance model robustness by acknowledging and adapting to the multilingual nature of real-world data. $\\psi_{\\mathrm{language}}$ extracts the language-based features.",
743
+ "bbox": [
744
+ 507,
745
+ 539,
746
+ 884,
747
+ 650
748
+ ],
749
+ "page_idx": 3
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "In this work, we used a tool called language-detection<sup>5</sup> that can identify 55 different languages (hence 55 features) using a naive Bayesian approach and trained on Wikipedia. This tool has a reported accuracy of over $99\\%$ for these languages.",
754
+ "bbox": [
755
+ 507,
756
+ 652,
757
+ 884,
758
+ 733
759
+ ],
760
+ "page_idx": 3
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "3.5 Meta-features summarizer",
765
+ "text_level": 1,
766
+ "bbox": [
767
+ 507,
768
+ 745,
769
+ 766,
770
+ 760
771
+ ],
772
+ "page_idx": 3
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "The feature matrix $X$ is now constructed as $X = \\psi_{\\mathrm{psy}}(D) + \\psi_{\\mathrm{topic}}(D) + \\psi_{\\mathrm{language}}(D)$ where $+$ denotes concatenation. The next step involves converting the extracted document features into dataset meta-features by a function $\\phi (X)$ . Meta-features are secondary attributes generated from the primary features, designed to capture various statistical aspects of their distribution among documents of a",
777
+ "bbox": [
778
+ 507,
779
+ 766,
780
+ 884,
781
+ 895
782
+ ],
783
+ "page_idx": 3
784
+ },
785
+ {
786
+ "type": "page_footnote",
787
+ "text": "<sup>4</sup>http://cohmatrix-new.memphis.edu/home",
788
+ "bbox": [
789
+ 134,
790
+ 904,
791
+ 426,
792
+ 920
793
+ ],
794
+ "page_idx": 3
795
+ },
796
+ {
797
+ "type": "page_footnote",
798
+ "text": "5https://pypi.org/project/langdetect/",
799
+ "bbox": [
800
+ 529,
801
+ 904,
802
+ 811,
803
+ 920
804
+ ],
805
+ "page_idx": 3
806
+ },
807
+ {
808
+ "type": "page_number",
809
+ "text": "14980",
810
+ "bbox": [
811
+ 477,
812
+ 927,
813
+ 524,
814
+ 940
815
+ ],
816
+ "page_idx": 3
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "dataset. To accomplish this, we have used summarizing functions.",
821
+ "bbox": [
822
+ 112,
823
+ 84,
824
+ 490,
825
+ 116
826
+ ],
827
+ "page_idx": 4
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "Key meta-features include common summarizing functions like the mean, standard deviation, minimum and maximum value, which provide variability and range insights. Other significant meta features include the mode, skewness, kurtosis, first, second, and third quartile, among others. In total, we have employed 20 summary functions to generate meta-features, which enable a more nuanced understanding of the dataset's underlying patterns and characteristics. The complete list of the summarizing functions can be found in the Appendix.",
832
+ "bbox": [
833
+ 112,
834
+ 117,
835
+ 490,
836
+ 294
837
+ ],
838
+ "page_idx": 4
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "3.6 Task-Specific Meta-Features (Classification)",
843
+ "text_level": 1,
844
+ "bbox": [
845
+ 112,
846
+ 304,
847
+ 384,
848
+ 335
849
+ ],
850
+ "page_idx": 4
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "For classification tasks, not only is the content of documents important, but also how well these documents match their labels. Take the 20 News-groups dataset as an example, which includes about 20,000 emails categorized into 20 classes. It has been demonstrated that accuracy significantly improves when the header is included, compared to just using the body of the emails (Wahba et al., 2023). This improvement is likely to happen because the subject line, which is included in the header and acts as a brief summary of the email, providing crucial insights that aid in classification. The subject line contains distinct keywords that more accurately differentiate the labels. So, understanding the connection between different parts of a document and their labels is crucial for enhancing classification performance.",
855
+ "bbox": [
856
+ 112,
857
+ 341,
858
+ 489,
859
+ 615
860
+ ],
861
+ "page_idx": 4
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Moreover, other label-related factors also influence the performance of classifiers, such as class imbalance, class ambiguity, and the complexity of the boundaries separating the classes (Ho and Basu, 2002). In order to capture such aspects as well, we converted the documents from the datasets into TF-IDF vectors and, together with the associated labels, used them as inputs for task-specific meta-features extraction (Lorena et al., 2019). PsyMatrix uses a comprehensive set of meta-features as described by Lorena et al. (2019), categorized into six groups: (1) clustering, (2) complexity, (3) concept, (4) information theory, (5) general, and (6) statistical. By applying these meta-features, we can further refine our understanding and processing of classification tasks, leading to improved model performance across diverse datasets.",
866
+ "bbox": [
867
+ 112,
868
+ 615,
869
+ 489,
870
+ 888
871
+ ],
872
+ "page_idx": 4
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "In this work, we used a tool called PyMFE (Alcobaça et al., 2020) to compute those meta-features",
877
+ "bbox": [
878
+ 112,
879
+ 889,
880
+ 489,
881
+ 921
882
+ ],
883
+ "page_idx": 4
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "from the datasets, providing additional 2825 meta-features for a dataset. For further details on this tool, and which meta-features are available, readers are encouraged to consult the official documentation. $^6$",
888
+ "bbox": [
889
+ 507,
890
+ 84,
891
+ 884,
892
+ 164
893
+ ],
894
+ "page_idx": 4
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "3.7 Dimensionality Reduction",
899
+ "text_level": 1,
900
+ "bbox": [
901
+ 507,
902
+ 177,
903
+ 761,
904
+ 193
905
+ ],
906
+ "page_idx": 4
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Combining all the previously described processes generates a large number of meta-features for each dataset<sup>7</sup>. Many of them are redundant (high correlation), and certainly not all of them are important towards our objective. Hence, different dimensionality reduction techniques were combined.",
911
+ "bbox": [
912
+ 507,
913
+ 199,
914
+ 884,
915
+ 294
916
+ ],
917
+ "page_idx": 4
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Initially, we removed features that were constant or highly correlated (i.e., correlation above 0.95). Next, we applied K-means clustering to select $K$ meta-features. Lastly, we employed variational auto-encoders (Kingma and Welling, 2013) (VAEs) to transform the remaining set of meta-features into a compact, low-dimensional representation. VAEs work by compressing data into a latent space (encoding) and then reconstructing it back to its original form (decoding). Although the reconstruction is not perfect and some information loss occurs, the technique maintains a degree of interpretability due to its reversible nature.",
922
+ "bbox": [
923
+ 507,
924
+ 297,
925
+ 884,
926
+ 504
927
+ ],
928
+ "page_idx": 4
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "4 Experiments and Results",
933
+ "text_level": 1,
934
+ "bbox": [
935
+ 507,
936
+ 519,
937
+ 761,
938
+ 535
939
+ ],
940
+ "page_idx": 4
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "This section experimentally investigates the practical application of the PsyMatrix framework to predict the final performance $Y_{ij}$ of a model $i$ on a dataset $j$ using a surrogate function $\\eta_i(\\phi(\\psi(D_j)))$ . The performance metric employed is the negative logarithm of the cross-entropy on the testing sets.",
945
+ "bbox": [
946
+ 507,
947
+ 546,
948
+ 882,
949
+ 642
950
+ ],
951
+ "page_idx": 4
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "The objective is to test the ability of PsyMatrix in predicting the most suitable model for any target dataset. To do this, we evaluated the performance of various pretrained language models across a broad spectrum of text classification tasks. Specifically, we used $90\\%$ of the data for training, and the remaining $10\\%$ was employed for validation. To further enhance the reliability of our results, we employed 10-fold cross-validation, ensuring a more robust assessment of PsyMatrix's generalization ability across various datasets and reducing the impact of data variability.",
956
+ "bbox": [
957
+ 507,
958
+ 643,
959
+ 884,
960
+ 835
961
+ ],
962
+ "page_idx": 4
963
+ },
964
+ {
965
+ "type": "page_footnote",
966
+ "text": "<sup>6</sup>https://pymfe.readthedocs.io/en/latest/",
967
+ "bbox": [
968
+ 529,
969
+ 846,
970
+ 835,
971
+ 859
972
+ ],
973
+ "page_idx": 4
974
+ },
975
+ {
976
+ "type": "page_footnote",
977
+ "text": "The total number of meta-features per dataset considered in this paper is 12205, generated by the following formula: (314 psycholinguistic features +100 topics +55 languages) $\\times 20$ summarizing functions +2825 task-specific meta-features.",
978
+ "bbox": [
979
+ 507,
980
+ 859,
981
+ 882,
982
+ 917
983
+ ],
984
+ "page_idx": 4
985
+ },
986
+ {
987
+ "type": "page_number",
988
+ "text": "14981",
989
+ "bbox": [
990
+ 477,
991
+ 927,
992
+ 522,
993
+ 940
994
+ ],
995
+ "page_idx": 4
996
+ },
997
+ {
998
+ "type": "table",
999
+ "img_path": "images/89efe3964cd3fd01c9d5202f011e5212d992f3d44092439479fe012bdf4c05f4.jpg",
1000
+ "table_caption": [
1001
+ "Table 1: Finetuning hyper-parameters"
1002
+ ],
1003
+ "table_footnote": [],
1004
+ "table_body": "<table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Optimizer</td><td>AdamW</td></tr><tr><td>Learning rate</td><td>2.5 × 10-6</td></tr><tr><td>Batch size</td><td>8</td></tr><tr><td>Maximum token size</td><td>1024</td></tr><tr><td>Maximum number of epochs</td><td>30</td></tr><tr><td>Early stop patience</td><td>3 epochs</td></tr><tr><td>16-bit (mixed) precision</td><td>Yes</td></tr></table>",
1005
+ "bbox": [
1006
+ 131,
1007
+ 105,
1008
+ 470,
1009
+ 241
1010
+ ],
1011
+ "page_idx": 5
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "4.1 Experimental Setup",
1016
+ "text_level": 1,
1017
+ "bbox": [
1018
+ 112,
1019
+ 265,
1020
+ 317,
1021
+ 280
1022
+ ],
1023
+ "page_idx": 5
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "In order to test PsyMatrix, we constructed a comprehensive meta-dataset repository containing performance metrics of 24 pretrained language models across 146 text classification datasets. While some datasets provide predefined train-test splits, we chose to create uniform splits for all datasets to ensure consistency. In most cases, we used 10,000 documents for training and 2,000 for testing. For datasets with fewer than 12,000 documents, we adjusted the number of training and testing documents proportionally, maintaining the same ratio between the two sets. More details about the datasets and pretrained models used can be found in the Appendix.",
1028
+ "bbox": [
1029
+ 112,
1030
+ 286,
1031
+ 489,
1032
+ 510
1033
+ ],
1034
+ "page_idx": 5
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "The fine-tuning process involved full model fine-tuning, where all weights of the pretrained network were updated during the fine-tuning process. This method generally yields the best results, but requires more time and resources for training. The pretrained head of base models were discarded and replaced by a new classification head, according to the number of labels of the task at hand. The fine-tuning hyperparameters employed were used as described in Table 1.",
1039
+ "bbox": [
1040
+ 112,
1041
+ 511,
1042
+ 489,
1043
+ 671
1044
+ ],
1045
+ "page_idx": 5
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "For the topic modeling feature extractor, we trained the LDA model using the training set of each dataset. The pre-processing steps were straightforward and included removing numbers, punctuation, stop words, and words with fewer than two characters. When creating the dictionary, we filtered out words that occurred fewer than 30 times or appeared in more than $50\\%$ of the documents, in order to avoid noise and overly common terms. For the hyperparameters, we set the number of topics to 100, with 10 passes and 400 iterations (following the implementation provided by Gensim<sup>8</sup>). Additionally, we limited the dictionary to the 10,000 most frequent words. Examples of the extracted",
1050
+ "bbox": [
1051
+ 112,
1052
+ 671,
1053
+ 489,
1054
+ 897
1055
+ ],
1056
+ "page_idx": 5
1057
+ },
1058
+ {
1059
+ "type": "image",
1060
+ "img_path": "images/ba2fbc7011442203d395d9407d0183609f39829f74e529ac0d426ba29d2cb5f8.jpg",
1061
+ "image_caption": [
1062
+ "Figure 2: The neural network used as performance estimator (ranking) of a set of 24 pretrained models on a given dataset."
1063
+ ],
1064
+ "image_footnote": [],
1065
+ "bbox": [
1066
+ 510,
1067
+ 80,
1068
+ 884,
1069
+ 280
1070
+ ],
1071
+ "page_idx": 5
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "topics can be found in the Appendix.",
1076
+ "bbox": [
1077
+ 507,
1078
+ 365,
1079
+ 784,
1080
+ 381
1081
+ ],
1082
+ "page_idx": 5
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "For the surrogate performance estimator, we utilized a multi-layer perceptron (MLP), as illustrated in Figure 2. The model's inputs consist of dataset embeddings, which were generated using a 2D Variational Autoencoder (VAE). The output of the network is the predicted validation performance for each pretrained language model used in our experiments. To properly assess the generalization ability of the MLP, we employed 10-fold cross-validation. Importantly, the data splits were made at the dataset level, meaning that some datasets were entirely excluded from the training set and used solely for validation. This ensured that during training, the model did not have access to the performance information of all datasets, allowing us to evaluate its ability to generalize to unseen datasets.",
1087
+ "bbox": [
1088
+ 505,
1089
+ 385,
1090
+ 884,
1091
+ 643
1092
+ ],
1093
+ "page_idx": 5
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "4.2 Applications",
1098
+ "text_level": 1,
1099
+ "bbox": [
1100
+ 507,
1101
+ 667,
1102
+ 655,
1103
+ 683
1104
+ ],
1105
+ "page_idx": 5
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "PsyMatrix can be employed in several applications related to the selection of pretrained language models across various datasets. By leveraging its ability to predict model performance and explore the relationships between datasets and model behaviors, PsyMatrix can guide users in selecting the most appropriate models for fine-tuning (optimal and near-optimal), and projecting PTM performance across the dataset embedding space. In the following, we demonstrate these capabilities through three key applications: model ranking for optimal selection, near-optimal model identification, and exploring the embedding space for performance insights.",
1110
+ "bbox": [
1111
+ 505,
1112
+ 696,
1113
+ 884,
1114
+ 921
1115
+ ],
1116
+ "page_idx": 5
1117
+ },
1118
+ {
1119
+ "type": "page_footnote",
1120
+ "text": "<sup>8</sup>https://pypi.org/project/gensim/",
1121
+ "bbox": [
1122
+ 134,
1123
+ 904,
1124
+ 386,
1125
+ 920
1126
+ ],
1127
+ "page_idx": 5
1128
+ },
1129
+ {
1130
+ "type": "page_number",
1131
+ "text": "14982",
1132
+ "bbox": [
1133
+ 477,
1134
+ 927,
1135
+ 524,
1136
+ 940
1137
+ ],
1138
+ "page_idx": 5
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "4.2.1 Model Ranking for Optimal Model Selection",
1143
+ "text_level": 1,
1144
+ "bbox": [
1145
+ 112,
1146
+ 84,
1147
+ 448,
1148
+ 115
1149
+ ],
1150
+ "page_idx": 6
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "One practical application of PsyMatrix is its ability to assist in selecting the most suitable PTM for fine-tuning on a given dataset. For any dataset, we first calculate its embeddings and then use PsyMatrix to estimate the performance of a fix set of PTMs. Based on these predictions, the models can be ranked in descending order of expected performance, which can be used as a starting point for the actual fine-tuning of the PTMs, prioritizing the top models in the ranking.",
1155
+ "bbox": [
1156
+ 112,
1157
+ 124,
1158
+ 489,
1159
+ 285
1160
+ ],
1161
+ "page_idx": 6
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "To evaluate our framework prediction's performance, we compared it against two other baseline strategies. The first baseline, named random policy, selects models purely by chance for $k$ trials. This simulates an unguided search, where the probability of selecting the optimal model is effectively $k$ divided by the total number of candidate models.",
1166
+ "bbox": [
1167
+ 112,
1168
+ 287,
1169
+ 489,
1170
+ 399
1171
+ ],
1172
+ "page_idx": 6
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "The second baseline, called the naive policy, uses a slightly more informed approach: it ranks the PTMs based on how frequently each one was historically the best performer. In this ranking system, the model with the highest performance across the most datasets is placed first, followed by others in decreasing order of their historical frequency of being optimal. The same ranking is then used for every new dataset. In this paper, we utilized all the information available in the meta-dataset to construct this naive ranking.",
1177
+ "bbox": [
1178
+ 112,
1179
+ 401,
1180
+ 489,
1181
+ 579
1182
+ ],
1183
+ "page_idx": 6
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "The comparison in Figure 3 illustrates the effectiveness of the different strategies, showing the probability of identifying the optimal model within a given number of trials, denoted by $k$ (the selection budget). The results demonstrate a clear advantage for PsyMatrix over other strategies. For example, with a budget of $k = 5$ , PsyMatrix achieves success rate of $78.7 \\pm 10.6\\%$ in selecting the optimal model, significantly outperforming the naïve policy, which has a success rate of $36\\%$ , and the random policy, which only reaches $20\\%$ . This difference highlights the superior efficiency of PsyMatrix in guiding the model selection.",
1188
+ "bbox": [
1189
+ 112,
1190
+ 581,
1191
+ 489,
1192
+ 790
1193
+ ],
1194
+ "page_idx": 6
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "PsyMatrix's stronger performance, particularly in low-budget scenarios where resources are limited, emphasizes its practical value in real-world applications. By substantially increasing the chances of selecting the best model with fewer trials, PsyMatrix proves to be a more reliable and efficient tool for model selection compared to traditional methods.",
1199
+ "bbox": [
1200
+ 112,
1201
+ 793,
1202
+ 489,
1203
+ 920
1204
+ ],
1205
+ "page_idx": 6
1206
+ },
1207
+ {
1208
+ "type": "image",
1209
+ "img_path": "images/8e7455c17ebd84682cb11a2801759d1a65c1791eadf124ebbfbf222fe4a08f58.jpg",
1210
+ "image_caption": [
1211
+ "Figure 3: The probability of the optimal model being present within the top- $k$ models of each ranking strategy. PsyMatrix consistently offers the highest probability of identifying the optimal model for any budget $k$ ."
1212
+ ],
1213
+ "image_footnote": [],
1214
+ "bbox": [
1215
+ 529,
1216
+ 96,
1217
+ 863,
1218
+ 294
1219
+ ],
1220
+ "page_idx": 6
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "4.2.2 Near-Optimal Model Selection",
1225
+ "text_level": 1,
1226
+ "bbox": [
1227
+ 507,
1228
+ 391,
1229
+ 808,
1230
+ 407
1231
+ ],
1232
+ "page_idx": 6
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "During the analysis of the experimental results performed in this paper, we observed that usually the top four or five PTMs often perform very similarly on a given dataset, achieving results close to the true optimal. This suggests that identifying models with near-optimal performance may be \"good enough\" for many NLP applications, particularly when budget constraints limit the ability to search exhaustively for the absolute best model.",
1237
+ "bbox": [
1238
+ 505,
1239
+ 412,
1240
+ 884,
1241
+ 557
1242
+ ],
1243
+ "page_idx": 6
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "To further demonstrate the effectiveness of our approach in this scenario, Figure 4 shows the normalized performance gap between the true optimal model and the best-performing model selected among the top- $k$ predictions. In this figure, a value of 1 corresponds to the performance of the optimal model, while 0 represents the worst-performing model.",
1248
+ "bbox": [
1249
+ 507,
1250
+ 558,
1251
+ 884,
1252
+ 686
1253
+ ],
1254
+ "page_idx": 6
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Interestingly, when the budget is very limited $(k = 1)$ , the naïve policy slightly outperforms PsyMatrix, achieving $87\\%$ of the optimal model's performance compared to PsyMatrix's $83\\%$ . This demonstrates that, in extremely constrained situations, relying on the best-known model can be a reasonable strategy. However, as the budget increases $(2 \\leq k \\leq 12)$ , PsyMatrix consistently outperforms both baseline strategies. For example, with a budget of $k = 5$ trials, PsyMatrix identifies a model with an average performance that is $98\\%$ of the optimal, while the naïve policy achieves only $93\\%$ .",
1259
+ "bbox": [
1260
+ 507,
1261
+ 688,
1262
+ 885,
1263
+ 882
1264
+ ],
1265
+ "page_idx": 6
1266
+ },
1267
+ {
1268
+ "type": "page_footnote",
1269
+ "text": "The performance metric adopted was the negative logarithm of the cross-entropy loss on the evaluation set.",
1270
+ "bbox": [
1271
+ 507,
1272
+ 894,
1273
+ 882,
1274
+ 921
1275
+ ],
1276
+ "page_idx": 6
1277
+ },
1278
+ {
1279
+ "type": "page_number",
1280
+ "text": "14983",
1281
+ "bbox": [
1282
+ 477,
1283
+ 927,
1284
+ 524,
1285
+ 940
1286
+ ],
1287
+ "page_idx": 6
1288
+ },
1289
+ {
1290
+ "type": "image",
1291
+ "img_path": "images/43c6194171d43c44e893ab51d18f5a4af719ea6d6e2a18b77a59f49cf2fd8d15.jpg",
1292
+ "image_caption": [
1293
+ "Figure 4: Performance gap between the true optimal and the best one found by each strategy, where 1.0 is the normalized performance of the optimal model, and 0.0 is the normalized performance of the worst model. PsyMatrix quickly find near-optimal solutions and is superior in all but budget $k = 1$ ."
1294
+ ],
1295
+ "image_footnote": [],
1296
+ "bbox": [
1297
+ 127,
1298
+ 91,
1299
+ 468,
1300
+ 294
1301
+ ],
1302
+ "page_idx": 7
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "and the random policy falls further behind at $87\\%$ . This highlights that PsyMatrix is not only effective at finding the optimal model but also at selecting near-optimal models with minimal performance loss, even under moderate budget constraints.",
1307
+ "bbox": [
1308
+ 112,
1309
+ 417,
1310
+ 489,
1311
+ 498
1312
+ ],
1313
+ "page_idx": 7
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "4.2.3 Exploring the Embedding Space",
1318
+ "text_level": 1,
1319
+ "bbox": [
1320
+ 112,
1321
+ 508,
1322
+ 428,
1323
+ 525
1324
+ ],
1325
+ "page_idx": 7
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Another application of PsyMatrix is its ability to project the performance of pretrained large language models into the entire embedding space, revealing regions where the models are likely to be the optimum or near-optimum. These projections allow to visualize regions of specialization for each model, offering insights into which kinds of datasets the models are recommended for.",
1330
+ "bbox": [
1331
+ 112,
1332
+ 529,
1333
+ 489,
1334
+ 656
1335
+ ],
1336
+ "page_idx": 7
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "To achieve this, we provided the trained network of our framework a grid of embeddings, and analyzed the output from each of its output neurons, where each neuron corresponds to the estimated performance of a specific model. As an illustration, Figure 5 shows the average output for two PTMs across the validation set for each of the 10 folds: GPT-2 and FALCONS.AI Question Answering<sup>10</sup>.",
1341
+ "bbox": [
1342
+ 112,
1343
+ 658,
1344
+ 489,
1345
+ 787
1346
+ ],
1347
+ "page_idx": 7
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "In the figure, the colors indicate the predicted probability of the given PTM being the optimal one across the embedding space. Notably, GPT-2 shows higher performance in regions associated with datasets like Amazon Reviews (along the sides of the plot), while FALCONS.AI's model demon",
1352
+ "bbox": [
1353
+ 112,
1354
+ 788,
1355
+ 490,
1356
+ 885
1357
+ ],
1358
+ "page_idx": 7
1359
+ },
1360
+ {
1361
+ "type": "image",
1362
+ "img_path": "images/94462ecfbda70964b6e56eece4dd4758b0dacb8d2dfc37cfbe051eaf5ee69867.jpg",
1363
+ "image_caption": [],
1364
+ "image_footnote": [],
1365
+ "bbox": [
1366
+ 537,
1367
+ 86,
1368
+ 850,
1369
+ 271
1370
+ ],
1371
+ "page_idx": 7
1372
+ },
1373
+ {
1374
+ "type": "image",
1375
+ "img_path": "images/31060f1d50f5a959cde5336133c68fb694f029f0610f5ec27240b4f2f08c70f7.jpg",
1376
+ "image_caption": [
1377
+ "(a) GPT2.",
1378
+ "(b) Fine-tuned DistilBERT for question answering.",
1379
+ "Figure 5: Projection of PsyMatrix's score for a pretrained model being optimal across the embedding space."
1380
+ ],
1381
+ "image_footnote": [],
1382
+ "bbox": [
1383
+ 537,
1384
+ 307,
1385
+ 848,
1386
+ 491
1387
+ ],
1388
+ "page_idx": 7
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "text": "strates superior performance in other regions, particularly those associated with datasets such as Rotten Tomatoes and AG News (toward the bottom of the plot). By identifying these regions, is is possible to make more informed decisions for the model selection, effectively aligning specific tasks with the models that are best suited to handle them.",
1393
+ "bbox": [
1394
+ 507,
1395
+ 612,
1396
+ 884,
1397
+ 722
1398
+ ],
1399
+ "page_idx": 7
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "This kind of information is useful for both model developers and practitioners, as it highlights where a PTM is likely to perform well and where it might face challenges. These insights can guide developers in enhancing a pretrained model by training it on more diverse datasets, or at least to help set clear boundaries regarding the types of datasets for which the model is most suitable. By understanding a model's strengths and weaknesses, we can better align it with the appropriate tasks, ultimately leading to improved performance and more reliable outcomes.",
1404
+ "bbox": [
1405
+ 507,
1406
+ 728,
1407
+ 882,
1408
+ 919
1409
+ ],
1410
+ "page_idx": 7
1411
+ },
1412
+ {
1413
+ "type": "page_footnote",
1414
+ "text": "This model is a fine-tuned version of DistilBERT designed for question-answering tasks.",
1415
+ "bbox": [
1416
+ 112,
1417
+ 894,
1418
+ 487,
1419
+ 921
1420
+ ],
1421
+ "page_idx": 7
1422
+ },
1423
+ {
1424
+ "type": "page_number",
1425
+ "text": "14984",
1426
+ "bbox": [
1427
+ 477,
1428
+ 927,
1429
+ 524,
1430
+ 940
1431
+ ],
1432
+ "page_idx": 7
1433
+ },
1434
+ {
1435
+ "type": "text",
1436
+ "text": "5 Conclusion",
1437
+ "text_level": 1,
1438
+ "bbox": [
1439
+ 114,
1440
+ 83,
1441
+ 247,
1442
+ 98
1443
+ ],
1444
+ "page_idx": 8
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "In this paper, we introduced PsyMatrix, a novel framework for characterizing text-based datasets through psycholinguistic dimensions, topic distributions, and complexity measures. By providing interpretable and low-dimensional dataset embeddings, PsyMatrix aids in understanding the latent dataset features and accurately predicting the performance of pretrained language models finetuned for classification tasks. Our extensive validation across 146 text classification datasets demonstrated the robustness and effectiveness of PsyMatrix in guiding model selection.",
1449
+ "bbox": [
1450
+ 112,
1451
+ 110,
1452
+ 489,
1453
+ 300
1454
+ ],
1455
+ "page_idx": 8
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "In future work we will explore the application of PsyMatrix to other domains beyond text classification and expand PsyMatrix to support multiple languages.",
1460
+ "bbox": [
1461
+ 112,
1462
+ 303,
1463
+ 489,
1464
+ 367
1465
+ ],
1466
+ "page_idx": 8
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "6 Limitations",
1471
+ "text_level": 1,
1472
+ "bbox": [
1473
+ 112,
1474
+ 379,
1475
+ 250,
1476
+ 395
1477
+ ],
1478
+ "page_idx": 8
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "In this paper, we focused exclusively on fine-tuning performances for classification datasets. This specificity raises the first limitation: the generalization of our proposed framework to other NLP tasks has not been tested. Different tasks might exhibit unique characteristics and requirements that might not be captured by our embeddings, making it necessary to conduct further research to ascertain whether our findings hold across a broader range of applications.",
1483
+ "bbox": [
1484
+ 112,
1485
+ 406,
1486
+ 489,
1487
+ 565
1488
+ ],
1489
+ "page_idx": 8
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Another limitation concerns the hyperparameter settings. Throughout our experiments, all finetuning processes were executed with a fixed set of training hyperparameters, such as learning rate, optimizer, maximum number of training epochs, etc. We did not undertake any optimization of these parameters for specific pretrained models or target datasets. Although this approach simplifies the experimental design, it introduces potential biases in our results. It's plausible to assume that a few finetuned models might have prematurely converged to local minima due to this lack of optimization.",
1494
+ "bbox": [
1495
+ 112,
1496
+ 567,
1497
+ 489,
1498
+ 759
1499
+ ],
1500
+ "page_idx": 8
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "So, while this paper contributes valuable insights into the interpretability and analysis of pretrained language models in context of classification tasks, these insights come with caveats that must be addressed through further, more nuanced research. Our commitment to transparency in discussing these limitations is intended to foster integrity within the research community and encourage rigorous, thoughtful examination of the framework we proposed.",
1505
+ "bbox": [
1506
+ 112,
1507
+ 760,
1508
+ 490,
1509
+ 921
1510
+ ],
1511
+ "page_idx": 8
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "References",
1516
+ "text_level": 1,
1517
+ "bbox": [
1518
+ 510,
1519
+ 83,
1520
+ 608,
1521
+ 98
1522
+ ],
1523
+ "page_idx": 8
1524
+ },
1525
+ {
1526
+ "type": "list",
1527
+ "sub_type": "ref_text",
1528
+ "list_items": [
1529
+ "Edesio Alcobaça, Felipe Siqueira, Adriano Rivolli, Luis P. F. Garcia, Jefferson T. Oliva, and André C. P. L. F. de Carvalho. 2020. MFE: Towards reproducible meta-feature extraction. Journal of Machine Learning Research, 21(111):1-5.",
1530
+ "Esam Alzahrani, Mohammed Al Qurashi, and Leon Jololian. 2022. Comparative analysis of the use of pre-trained models to profile authors' ages and genders. In 2022 2nd International Conference on Computing and Machine Intelligence (ICMI), pages 1-7.",
1531
+ "Jonathan Anderson. 1983. Lix and rix: Variations on a little-known readability index. Journal of Reading, 26(6):490-496.",
1532
+ "Sebastian Arango, Fabio Ferreira, Arlind Kadra, Frank Hutter, and Josif Grabocka. 2024. Quick-tune: Quickly learning which pretrained model to finetune and how. In International Conference on Learning Representations, ICLR'24.",
1533
+ "R. H. Baayen, R. Piepenbrock, and L. Gulikers. 1995. CELEX2 LDC96L14. Linguistic Data Consortium, Philadelphia.",
1534
+ "Shivam Bansal and Chaitanya Aggarwal. 2024. Textstat: Python package to help in text statistics. Original software developed by Shivam Bansal and contributors.",
1535
+ "Santosh Kumar Barnwal and Uma Shanker Tiwary. 2017. Using psycholinguistic features for the classification of comprehenders from summary speech transcripts. In Intelligent Human Computer Interaction, pages 122-136, Cham. Springer International Publishing.",
1536
+ "Hilan Bensusan, Christophe Giraud-Carrier, and Claire Kennedy. 2000. A higher-order approach to meta-learning. In Proceedings of the ECML'2000 workshop on Meta-Learning: Building Automatic Advice Strategies for Model Selection and Method Combination, pages 109 - 117. ECML'2000.",
1537
+ "David M. Blei, Andrew Y. Ng, and Michael I. Jordan. 2003. Latent dirichlet allocation. Journal of Machine Learning Research, 3:993-1022.",
1538
+ "Daniel Bolya, Rohit Mittapalli, and Judy Hoffman. 2021. Scalable diverse model selection for accessible transfer learning. In Advances in Neural Information Processing Systems.",
1539
+ "Pavel Brazdil, Jan N. van Rijn, Carlos Soares, and Joaquin Vanschoren. 2022. Dataset Characteristics (Metafeatures), pages 53-75. Springer International Publishing, Cham.",
1540
+ "Scott A. Crossley, Kristopher Kyle, and Danielle S. McNamara. 2016. The tool for the automatic analysis of text cohesion (TAACO): Automatic assessment of local, global, and text cohesion. Behavior Research Methods, 48(4):1227-1237."
1541
+ ],
1542
+ "bbox": [
1543
+ 510,
1544
+ 105,
1545
+ 884,
1546
+ 920
1547
+ ],
1548
+ "page_idx": 8
1549
+ },
1550
+ {
1551
+ "type": "page_number",
1552
+ "text": "14985",
1553
+ "bbox": [
1554
+ 477,
1555
+ 927,
1556
+ 524,
1557
+ 940
1558
+ ],
1559
+ "page_idx": 8
1560
+ },
1561
+ {
1562
+ "type": "list",
1563
+ "sub_type": "ref_text",
1564
+ "list_items": [
1565
+ "Ali Daban, Siti Armiza Mohd Aris, and Mohd Syahid Mohd Anuar. 2023. Ferrous metal classifications based on sparks pattern using CNN pretrained models. In 2023 IEEE Symposium on Computers & Informatics (ISCI), pages 31-35.",
1566
+ "Harrison Edwards and Amos Storkey. 2017. Towards a neural statistician. In International conference on learning representations, ICLR'17.",
1567
+ "Christiane Fellbaum. 1998. WordNet: An Electronic Lexical Database. Bradford Books.",
1568
+ "Arthur C. Graesser, Danielle S. McNamara, and Jenna M. Kulikowich. 2011. Coh-Matrix: Providing multilevel analyses of text characteristics. Educational Researcher, 40(5):223-234.",
1569
+ "Arthur C. Graesser, Danielle S. McNamara, Max M. Louwerse, and Zhiqiang Cai. 2004. Coh-Matrix: Analysis of text on cohesion and language. Behavior Research Methods, Instruments, & Computers, 36(2):193-202.",
1570
+ "Robert Gunning. 1952. The Technique of Clear Writing. McGraw-Hill, New York.",
1571
+ "Tin Kam Ho and M. Basu. 2002. Complexity measures of supervised classification problems. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24(3):289-300.",
1572
+ "Hadi S. Jomaa, Lars Schmidt-Thieme, and Josif Grabocka. 2021. Dataset2vec: learning dataset meta-features. Data Mining and Knowledge Discovery, 35:964-985.",
1573
+ "Diederik P. Kingma and Max Welling. 2013. Autoencoding variational bayes. CoRR, abs/1312.6114.",
1574
+ "Hao Li, Charless C. Fowlkes, Han Yang, Onkar Dabeer, Zhuowen Tu, and Stefan Soatto. 2023. Guided recommendation for model fine-tuning. 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3633-3642.",
1575
+ "Guido Lindner and Rudi Studer. 1999. AST: Support for algorithm selection with a CBR approach. In European Conference on Principles of Data Mining and Knowledge Discovery.",
1576
+ "Ana C. Lorena, Luís P. F. Garcia, Jens Lehmann, Marcilio C. P. Souto, and Tin Kam Ho. 2019. How complex is your classification problem? A survey on measuring classification complexity. ACM Comput. Surv., 52(5).",
1577
+ "Vincent Quirante Malic, Anamika Kumari, and Xiaozhong Liu. 2023. Racial skew in fine-tuned legal AI language models. In 2023 IEEE International Conference on Data Mining Workshops (ICDMW), pages 245-252.",
1578
+ "Danielle S. McNamara, Arthur C. Graesser, Philip M. McCarthy, and Zhiqiang Cai. 2014. Automated Evaluation of Text and Discourse with Coh-Matrix. Cambridge University Press."
1579
+ ],
1580
+ "bbox": [
1581
+ 115,
1582
+ 85,
1583
+ 485,
1584
+ 919
1585
+ ],
1586
+ "page_idx": 9
1587
+ },
1588
+ {
1589
+ "type": "list",
1590
+ "sub_type": "ref_text",
1591
+ "list_items": [
1592
+ "Yonghong Peng, Peter A. Flach, Carlos Soares, and Pavel Brazdil. 2002. Improved dataset characterisation for meta-learning. In *Discovery Science*, pages 141-152, Berlin, Heidelberg. Springer Berlin Heidelberg.",
1593
+ "Chunping Qiu, He Li, Wenyue Guo, Xin Chen, Anzhu Yu, Xiaochong Tong, and Michael Schmitt. 2022. Transferring transformer-based models for cross-area building extraction from remote sensing images. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 15:4104-4116.",
1594
+ "Alec Radford and Karthik Narasimhan. 2018. Improving language understanding by generative pretraining. Technical report, OpenAI. Preprint.",
1595
+ "Fei Ren, Dong Lu, and Naxin Cui. 2023. A deep transfer learning framework for Li-ion battery temperature prediction based on LSTM pretraining model. In 2023 IEEE 2nd International Power Electronics and Application Symposium (PEAS), pages 1170-1175.",
1596
+ "Adriano Rivolli, Luis P.F. Garcia, Carlos Soares, Joaquin Vanschoren, and Andre C. P. L. F. de Carvalho. 2022. Meta-features for meta-learning. Knowledge-Based Systems, 240:108101.",
1597
+ "Dmitri Roussinov and Serge Sharoff. 2023. BERT goes off-topic: Investigating the domain transfer challenge using genre classification. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 468-483, Singapore. Association for Computational Linguistics.",
1598
+ "Cullen Schaffer. 1994. Cross-validation, stacking and bi-level stacking: Meta-methods for classification learning. In Selecting Models from Data, pages 51-59, New York, NY. Springer New York.",
1599
+ "Elena Shushkevich, Mikhail Alexandrov, and John Cardiff. 2022. Bert-based classifiers for fake news detection on short and long texts with noisy data: A comparative analysis. In Text, Speech, and Dialogue, pages 263-274, Cham. Springer International Publishing.",
1600
+ "Daniel Simig, Tianlu Wang, Verna Dankers, Peter Henderson, Khuyagbaatar Batsuren, Dieuwke Hupkes, and Mona Diab. 2022. Text characterization toolkit (TCT). In Proceedings of the 2nd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 12th International Joint Conference on Natural Language Processing: System Demonstrations, pages 72-87, Taipei, Taiwan. Association for Computational Linguistics.",
1601
+ "So Young Sohn. 1999. Meta analysis of classification algorithms for pattern recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 21(11):1137-1144.",
1602
+ "Zhiqiang Tang, Haoyang Fang, Su Zhou, Taojiannan Yang, Zihan Zhong, Tony Hu, Katrin Kirchhoff, and George Karypis. 2024. Autogluon-multimodal (autom): Supercharging multimodal automl with foundation models. Preprint, arXiv:2404.16233."
1603
+ ],
1604
+ "bbox": [
1605
+ 510,
1606
+ 85,
1607
+ 880,
1608
+ 919
1609
+ ],
1610
+ "page_idx": 9
1611
+ },
1612
+ {
1613
+ "type": "page_number",
1614
+ "text": "14986",
1615
+ "bbox": [
1616
+ 477,
1617
+ 928,
1618
+ 524,
1619
+ 940
1620
+ ],
1621
+ "page_idx": 9
1622
+ },
1623
+ {
1624
+ "type": "list",
1625
+ "sub_type": "text",
1626
+ "list_items": [
1627
+ "M. C. Templin. 1957. Certain Language Skills in Children: Their Development and Interrelationships, volume 10. University of Minnesota Press, Minneapolis, MN.",
1628
+ "Yasmen Wahba, Nazim Madhavji, and John Steinbacher. 2023. A comparison of SVM against pre-trained language models (PLMs) for text classification tasks. In Machine Learning, Optimization, and Data Science, pages 304-313, Cham. Springer Nature Switzerland.",
1629
+ "David Wolpert. 1996. The lack of a priori distinctions between learning algorithms. *Neural Computation*, 8.",
1630
+ "Shaomin Zheng and Meng Yang. 2019. A new method of improving bert for text classification. In Intelligence Science and Big Data Engineering. Big Data and Machine Learning, pages 442-452, Cham. Springer International Publishing."
1631
+ ],
1632
+ "bbox": [
1633
+ 114,
1634
+ 84,
1635
+ 489,
1636
+ 343
1637
+ ],
1638
+ "page_idx": 10
1639
+ },
1640
+ {
1641
+ "type": "text",
1642
+ "text": "Appendix",
1643
+ "text_level": 1,
1644
+ "bbox": [
1645
+ 114,
1646
+ 357,
1647
+ 203,
1648
+ 373
1649
+ ],
1650
+ "page_idx": 10
1651
+ },
1652
+ {
1653
+ "type": "text",
1654
+ "text": "A Pretrained Language Models",
1655
+ "text_level": 1,
1656
+ "bbox": [
1657
+ 114,
1658
+ 382,
1659
+ 403,
1660
+ 399
1661
+ ],
1662
+ "page_idx": 10
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "In this study, we evaluated the performance of various pretrained language models (PTMs), which are available through the Hugging Face model hub. These models span a range of architectures and capabilities, and were selected to provide a comprehensive comparison across different natural language processing tasks. Below is the list of pretrained models (referenced by their Hugging Face repository IDs) used in our experiments:",
1667
+ "bbox": [
1668
+ 112,
1669
+ 409,
1670
+ 489,
1671
+ 552
1672
+ ],
1673
+ "page_idx": 10
1674
+ },
1675
+ {
1676
+ "type": "list",
1677
+ "sub_type": "text",
1678
+ "list_items": [
1679
+ "1. openai-community/gpt2",
1680
+ "2. google-bert/bert-base-multilingual-cased",
1681
+ "3. google-bert/bert-base-cased",
1682
+ "4. FacebookAI/roberta-base",
1683
+ "5. FacebookAI/xlm-roberta-base",
1684
+ "6. albert/albert-base-v2",
1685
+ "7. xlnet/xlnet-base-cased",
1686
+ "8. microsoft/mpnet-base",
1687
+ "9. google/fnet-base",
1688
+ "0. allenai/longformer-base-4096",
1689
+ "11. studio-ousia/luke-base",
1690
+ "12. studio-ousia/luke-japanese-base",
1691
+ "13. bigscience/bloom-560m",
1692
+ "14. bigscience/bloomz-560m",
1693
+ "15. funnel-transformer/medium-base",
1694
+ "16. Falconsai/question_answering",
1695
+ "17. deepmind/language-perceiver",
1696
+ "18. kssteven/ibert-roberta-base",
1697
+ "19. uw-madison/nystromformer-1024",
1698
+ "20. uw-madison/yoso-4096",
1699
+ "21. flaubert/flaubert_base_cased",
1700
+ "22. nghuyong/ernie-3.0-base-zh"
1701
+ ],
1702
+ "bbox": [
1703
+ 122,
1704
+ 568,
1705
+ 453,
1706
+ 920
1707
+ ],
1708
+ "page_idx": 10
1709
+ },
1710
+ {
1711
+ "type": "list",
1712
+ "sub_type": "text",
1713
+ "list_items": [
1714
+ "23. facebook/opt-125m",
1715
+ "24. facebook/opt-1.3b"
1716
+ ],
1717
+ "bbox": [
1718
+ 514,
1719
+ 84,
1720
+ 694,
1721
+ 115
1722
+ ],
1723
+ "page_idx": 10
1724
+ },
1725
+ {
1726
+ "type": "text",
1727
+ "text": "B Datasets",
1728
+ "text_level": 1,
1729
+ "bbox": [
1730
+ 509,
1731
+ 129,
1732
+ 621,
1733
+ 143
1734
+ ],
1735
+ "page_idx": 10
1736
+ },
1737
+ {
1738
+ "type": "text",
1739
+ "text": "All experiments in this work focused on text classification tasks. We curated a total of 146 distinct datasets, derived from 11 base datasets. These base datasets are widely used in natural language processing (NLP) tasks and cover a range of text classification challenges, such as sentiment analysis, topic classification, and intent detection. The datasets used are listed below:",
1740
+ "bbox": [
1741
+ 507,
1742
+ 155,
1743
+ 884,
1744
+ 282
1745
+ ],
1746
+ "page_idx": 10
1747
+ },
1748
+ {
1749
+ "type": "list",
1750
+ "sub_type": "text",
1751
+ "list_items": [
1752
+ "1. 20 Newsgroups",
1753
+ "2. AG News",
1754
+ "3. Amazon Reviews",
1755
+ "4. CLINC 150",
1756
+ "5. Drug Reviews (Drugs.com)",
1757
+ "6. Rotten Tomates",
1758
+ "7. Sentiment 140",
1759
+ "8. SMS Span",
1760
+ "9. Stanford Sentiment Treebank",
1761
+ "10. Victorian Authorship",
1762
+ "11. Yelp Reviews"
1763
+ ],
1764
+ "bbox": [
1765
+ 517,
1766
+ 297,
1767
+ 766,
1768
+ 472
1769
+ ],
1770
+ "page_idx": 10
1771
+ },
1772
+ {
1773
+ "type": "text",
1774
+ "text": "To create the 146 distinct datasets, we generated subsets by varying the input features and target labels available within each base dataset. This approach allowed us to explore different aspects of each dataset for more comprehensive experimentation. For example:",
1775
+ "bbox": [
1776
+ 507,
1777
+ 487,
1778
+ 884,
1779
+ 582
1780
+ ],
1781
+ "page_idx": 10
1782
+ },
1783
+ {
1784
+ "type": "list",
1785
+ "sub_type": "text",
1786
+ "list_items": [
1787
+ "- 20 Newsgroups: this dataset was divided into three subsets based on different input features. One subset used only the email body as input, another used only the subject line, and a third used both the subject and body combined.",
1788
+ "- Sentiment Analysis: for datasets involving sentiment analysis, such as Amazon Reviews and Rotten Tomatoes, we created multiple subsets, including both binary classification (positive/negative sentiment) and balanced versions to ensure equal representation of classes.",
1789
+ "- Amazon Reviews: we further divided the dataset by its product categories, creating separate subsets for each sub-category to assess model performance on different domains."
1790
+ ],
1791
+ "bbox": [
1792
+ 531,
1793
+ 596,
1794
+ 882,
1795
+ 859
1796
+ ],
1797
+ "page_idx": 10
1798
+ },
1799
+ {
1800
+ "type": "text",
1801
+ "text": "The Amazon Reviews dataset, due to its extensive size and multiple categories, contributed significantly to the total number of subsets. To make the",
1802
+ "bbox": [
1803
+ 507,
1804
+ 873,
1805
+ 884,
1806
+ 920
1807
+ ],
1808
+ "page_idx": 10
1809
+ },
1810
+ {
1811
+ "type": "page_number",
1812
+ "text": "14987",
1813
+ "bbox": [
1814
+ 477,
1815
+ 927,
1816
+ 524,
1817
+ 940
1818
+ ],
1819
+ "page_idx": 10
1820
+ },
1821
+ {
1822
+ "type": "text",
1823
+ "text": "analysis more manageable, we grouped the Amazon Reviews subsets into three clusters for visualization in the figures, as described in Table 2.",
1824
+ "bbox": [
1825
+ 112,
1826
+ 84,
1827
+ 489,
1828
+ 131
1829
+ ],
1830
+ "page_idx": 11
1831
+ },
1832
+ {
1833
+ "type": "table",
1834
+ "img_path": "images/f6590e00cc2a0e5b88c0a1793233d19c7e62bb7b109325905051d7e8393c2b40.jpg",
1835
+ "table_caption": [
1836
+ "Table 2: Amazon Reviews Sub-groups"
1837
+ ],
1838
+ "table_footnote": [],
1839
+ "table_body": "<table><tr><td>Dataset</td><td>Inputs</td><td># Classes</td></tr><tr><td rowspan=\"2\">Amazon Review (1)</td><td>summary, text</td><td>5</td></tr><tr><td>summary</td><td>5</td></tr><tr><td>Amazon Review (2)</td><td>summary, text</td><td>2</td></tr><tr><td>Amazon Review (3)</td><td>summary</td><td>2</td></tr></table>",
1840
+ "bbox": [
1841
+ 115,
1842
+ 168,
1843
+ 500,
1844
+ 262
1845
+ ],
1846
+ "page_idx": 11
1847
+ },
1848
+ {
1849
+ "type": "text",
1850
+ "text": "This process of creating multiple subsets allowed us to examine PsyMatrix's performance on a wide variety of tasks, ensuring robust evaluation across different types of text classification problems. For reproducibility, all datasets used in this study have been made publicly available on Hugging Face Hub.[11]",
1851
+ "bbox": [
1852
+ 112,
1853
+ 275,
1854
+ 487,
1855
+ 387
1856
+ ],
1857
+ "page_idx": 11
1858
+ },
1859
+ {
1860
+ "type": "text",
1861
+ "text": "C Summarizing Functions",
1862
+ "text_level": 1,
1863
+ "bbox": [
1864
+ 112,
1865
+ 399,
1866
+ 359,
1867
+ 416
1868
+ ],
1869
+ "page_idx": 11
1870
+ },
1871
+ {
1872
+ "type": "text",
1873
+ "text": "This section details the summarizing functions chosen to extract meta-features from the dataset's basic features. Each function was selected based on its ability to provide a comprehensive statistical overview of the data, facilitating deeper insights into its underlying distribution, spread, central tendency, and variability:",
1874
+ "bbox": [
1875
+ 112,
1876
+ 425,
1877
+ 489,
1878
+ 537
1879
+ ],
1880
+ "page_idx": 11
1881
+ },
1882
+ {
1883
+ "type": "list",
1884
+ "sub_type": "text",
1885
+ "list_items": [
1886
+ "1. Pearson product-moment correlation coefficients (corrcoef)",
1887
+ "2. Interquartile range (iqr)",
1888
+ "3. Unbiased estimator of the variance of the $k$ -statistic (kstatvar)",
1889
+ "4. Fisher's coefficient of kurtosis (kurtosis)",
1890
+ "5. Maximum (max)",
1891
+ "6. Arithmetic mean (mean)",
1892
+ "7. Median absolute deviation (mad)",
1893
+ "8. Minimum (min)",
1894
+ "9. Modal (most common) value (mode)",
1895
+ "10. Modal occurrences (mode_count)",
1896
+ "11. First moment about the mean (moment)",
1897
+ "12. Range of values (ptp)",
1898
+ "13. First quartile (q1)",
1899
+ "14. Second quartile (q2)",
1900
+ "15. Third quartile (q3)",
1901
+ "16. Standard error of the mean (sem)",
1902
+ "17. Skewness (skew)",
1903
+ "18. Standard deviation (std)",
1904
+ "19. Variance (var)",
1905
+ "20. Coefficient of variation (variation)"
1906
+ ],
1907
+ "bbox": [
1908
+ 121,
1909
+ 546,
1910
+ 487,
1911
+ 901
1912
+ ],
1913
+ "page_idx": 11
1914
+ },
1915
+ {
1916
+ "type": "text",
1917
+ "text": "D Ablation Studies: VAE",
1918
+ "text_level": 1,
1919
+ "bbox": [
1920
+ 509,
1921
+ 83,
1922
+ 744,
1923
+ 98
1924
+ ],
1925
+ "page_idx": 11
1926
+ },
1927
+ {
1928
+ "type": "text",
1929
+ "text": "In order to determine the importance of Variational Autoencoders (VAE) in our framework, in this section we present an ablation study. Figure 6 illustrates the impact of removing the VAE-based feature compression on our model's prediction performance. The performance metrics clearly demonstrate a substantial degradation when VAE is omitted. This drop in performance highlights the VAE's critical role in retaining meaningful information in a compressed representation, which is essential for maintaining the accuracy and robustness of our predictive models.",
1930
+ "bbox": [
1931
+ 507,
1932
+ 110,
1933
+ 884,
1934
+ 303
1935
+ ],
1936
+ "page_idx": 11
1937
+ },
1938
+ {
1939
+ "type": "image",
1940
+ "img_path": "images/46833df52ba876ba6453ac1ed5039e7018f12424f724133374c3c9aa3417f78a.jpg",
1941
+ "image_caption": [
1942
+ "Figure 6: Performance comparison when removing the feature compressions provided by VAE. This comparison illustrates the significant contribution of VAE to maintaining high predictive accuracy in our models."
1943
+ ],
1944
+ "image_footnote": [],
1945
+ "bbox": [
1946
+ 527,
1947
+ 328,
1948
+ 862,
1949
+ 536
1950
+ ],
1951
+ "page_idx": 11
1952
+ },
1953
+ {
1954
+ "type": "text",
1955
+ "text": "These results confirm that effective feature compression is important for our framework, hence supporting our decision to integrate VAE into our dataset embedding pipeline, ensuring that PsyMatrix can handle high-dimensional data efficiently.",
1956
+ "bbox": [
1957
+ 507,
1958
+ 623,
1959
+ 882,
1960
+ 703
1961
+ ],
1962
+ "page_idx": 11
1963
+ },
1964
+ {
1965
+ "type": "text",
1966
+ "text": "E Topic Modeling",
1967
+ "text_level": 1,
1968
+ "bbox": [
1969
+ 509,
1970
+ 715,
1971
+ 682,
1972
+ 733
1973
+ ],
1974
+ "page_idx": 11
1975
+ },
1976
+ {
1977
+ "type": "text",
1978
+ "text": "In this section, we provide examples of topics extracted from the trained corpus employed in this paper. The objective is to offer readers an overview of the types of topics identified by the Latent Dirichlet Allocation (LDA) technique. We encourage readers to follow the instructions in our framework to download and explore the trained LDA model for a deeper analysis and understanding.",
1979
+ "bbox": [
1980
+ 507,
1981
+ 743,
1982
+ 882,
1983
+ 871
1984
+ ],
1985
+ "page_idx": 11
1986
+ },
1987
+ {
1988
+ "type": "text",
1989
+ "text": "Table 3 displays a selection of sample topics extracted using LDA. Each entry includes a list of the top-10 words associated with a specific topic,",
1990
+ "bbox": [
1991
+ 507,
1992
+ 873,
1993
+ 882,
1994
+ 921
1995
+ ],
1996
+ "page_idx": 11
1997
+ },
1998
+ {
1999
+ "type": "page_footnote",
2000
+ "text": "<sup>11</sup>https://huggingface.co/PsyMatrix",
2001
+ "bbox": [
2002
+ 131,
2003
+ 904,
2004
+ 347,
2005
+ 920
2006
+ ],
2007
+ "page_idx": 11
2008
+ },
2009
+ {
2010
+ "type": "page_number",
2011
+ "text": "14988",
2012
+ "bbox": [
2013
+ 477,
2014
+ 927,
2015
+ 524,
2016
+ 940
2017
+ ],
2018
+ "page_idx": 11
2019
+ },
2020
+ {
2021
+ "type": "text",
2022
+ "text": "accompanied by their respective probability scores. These scores quantify the likelihood of each word's occurrence within the topic, thus highlighting its importance within the cluster. For instance, Topic 1 is characterized by words such as light, power, heart, God, and truth, suggesting themes of spiritual or existential nature.",
2023
+ "bbox": [
2024
+ 115,
2025
+ 84,
2026
+ 487,
2027
+ 195
2028
+ ],
2029
+ "page_idx": 12
2030
+ },
2031
+ {
2032
+ "type": "text",
2033
+ "text": "It is important to clarify that we did not perform hyper-parameter optimization to enhance topic coherence or diversity. Nevertheless, the topics extracted appear to be meaningful and useful for analyzing the datasets.",
2034
+ "bbox": [
2035
+ 115,
2036
+ 197,
2037
+ 487,
2038
+ 275
2039
+ ],
2040
+ "page_idx": 12
2041
+ },
2042
+ {
2043
+ "type": "page_number",
2044
+ "text": "14989",
2045
+ "bbox": [
2046
+ 478,
2047
+ 928,
2048
+ 524,
2049
+ 940
2050
+ ],
2051
+ "page_idx": 12
2052
+ },
2053
+ {
2054
+ "type": "table",
2055
+ "img_path": "images/0e077cd418c5fbfab96d74611b79dd2d99525cf4a4c4576f690a2022a223af8b.jpg",
2056
+ "table_caption": [
2057
+ "Table 3: Top-10 words for some extracted topics"
2058
+ ],
2059
+ "table_footnote": [],
2060
+ "table_body": "<table><tr><td colspan=\"2\">Topic 1</td><td colspan=\"2\">Topic 5</td><td colspan=\"2\">Topic 8</td><td colspan=\"2\">Topic 27</td><td colspan=\"2\">Topic 33</td></tr><tr><td>light</td><td>0.14</td><td>guitar</td><td>0.23</td><td>use</td><td>0.44</td><td>needed</td><td>0.13</td><td>gained</td><td>0.07</td></tr><tr><td>power</td><td>0.11</td><td>author</td><td>0.12</td><td>recommend</td><td>0.20</td><td>bleeding</td><td>0.10</td><td>appetite</td><td>0.05</td></tr><tr><td>charge</td><td>0.06</td><td>page</td><td>0.06</td><td>working</td><td>0.09</td><td>symptoms</td><td>0.09</td><td>fiction</td><td>0.05</td></tr><tr><td>heart</td><td>0.06</td><td>lose</td><td>0.04</td><td>highly</td><td>0.08</td><td>headaches</td><td>0.06</td><td>instructions</td><td>0.03</td></tr><tr><td>god</td><td>0.06</td><td>improvement</td><td>0.03</td><td>recommended</td><td>0.05</td><td>hair</td><td>0.05</td><td>yeast</td><td>0.03</td></tr><tr><td>blue</td><td>0.03</td><td>acoustic</td><td>0.02</td><td>buying</td><td>0.04</td><td>red</td><td>0.05</td><td>cough</td><td>0.03</td></tr><tr><td>saved</td><td>0.02</td><td>generic</td><td>0.02</td><td>uncomfortable</td><td>0.01</td><td>clean</td><td>0.05</td><td>pros</td><td>0.03</td></tr><tr><td>truth</td><td>0.02</td><td>controls</td><td>0.02</td><td>likes</td><td>0.01</td><td>feet</td><td>0.04</td><td>tuning</td><td>0.03</td></tr><tr><td>present</td><td>0.02</td><td>electric</td><td>0.02</td><td>rated</td><td>0.00</td><td>send</td><td>0.04</td><td>woke</td><td>0.02</td></tr><tr><td>attack</td><td>0.02</td><td>led</td><td>0.02</td><td>juice</td><td>0.00</td><td>straight</td><td>0.04</td><td>cons</td><td>0.02</td></tr><tr><td colspan=\"2\">Topic 37</td><td colspan=\"2\">Topic 39</td><td colspan=\"2\">Topic 66</td><td colspan=\"2\">Topic 72</td><td colspan=\"2\">Topic 78</td></tr><tr><td>pages</td><td>0.05</td><td>sound</td><td>0.23</td><td>nice</td><td>0.26</td><td>phone</td><td>0.42</td><td>free</td><td>0.16</td></tr><tr><td>major</td><td>0.05</td><td>music</td><td>0.09</td><td>movie</td><td>0.14</td><td>sex</td><td>0.07</td><td>daughter</td><td>0.08</td></tr><tr><td>history</td><td>0.05</td><td>play</td><td>0.08</td><td>enjoy</td><td>0.08</td><td>periods</td><td>0.06</td><td>husband</td><td>0.08</td></tr><tr><td>pictures</td><td>0.04</td><td>acne</td><td>0.08</td><td>boring</td><td>0.06</td><td>calls</td><td>0.03</td><td>women</td><td>0.08</td></tr><tr><td>war</td><td>0.04</td><td>player</td><td>0.05</td><td>liked</td><td>0.06</td><td>driving</td><td>0.02</td><td>woman</td><td>0.07</td></tr><tr><td>text</td><td>0.03</td><td>hear</td><td>0.05</td><td>enjoyed</td><td>0.05</td><td>jane</td><td>0.01</td><td>ring</td><td>0.06</td></tr><tr><td>middle</td><td>0.03</td><td>voice</td><td>0.03</td><td>movies</td><td>0.04</td><td>reaction</td><td>0.01</td><td>men</td><td>0.06</td></tr><tr><td>caused</td><td>0.03</td><td>heard</td><td>0.03</td><td>watching</td><td>0.03</td><td>sister</td><td>0.01</td><td>update</td><td>0.05</td></tr><tr><td>mobile</td><td>0.02</td><td>pedal</td><td>0.02</td><td>horror</td><td>0.02</td><td>breast</td><td>0.01</td><td>satisfied</td><td>0.04</td></tr><tr><td>state</td><td>0.02</td><td>fan</td><td>0.02</td><td>plain</td><td>0.02</td><td>inch</td><td>0.01</td><td>finds</td><td>0.02</td></tr></table>",
2061
+ "bbox": [
2062
+ 152,
2063
+ 376,
2064
+ 845,
2065
+ 648
2066
+ ],
2067
+ "page_idx": 13
2068
+ },
2069
+ {
2070
+ "type": "page_number",
2071
+ "text": "14990",
2072
+ "bbox": [
2073
+ 477,
2074
+ 928,
2075
+ 524,
2076
+ 940
2077
+ ],
2078
+ "page_idx": 13
2079
+ }
2080
+ ]
2024/Characterizing Text Datasets with Psycholinguistic Features/edda636b-461c-4dc0-a59f-e0ba1b203ec9_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Characterizing Text Datasets with Psycholinguistic Features/edda636b-461c-4dc0-a59f-e0ba1b203ec9_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1d75314b480f80ff4eb4017227bc4d586b6d29fc31253c6e43729a2234c85db
3
+ size 682195
2024/Characterizing Text Datasets with Psycholinguistic Features/full.md ADDED
@@ -0,0 +1,403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Characterizing Text Datasets with Psycholinguistic Features
2
+
3
+ Marcio Monteiro, Charu James, Marius Kloft, Sophie Fellenz
4
+
5
+ RPTU Kaiserslautern-Landau, Germany
6
+
7
+ marcio.monteiro@cs.rptu.de, {charu, kloft, fellenz} @cs.uni-kl.de
8
+
9
+ # Abstract
10
+
11
+ Fine-tuning pretrained language models on task-specific data is a common practice in Natural Language Processing (NLP) applications. However, the number of pretrained models available to choose from can be very large, and it remains unclear how to select the optimal model without spending considerable amounts of computational resources, especially for the text domain. To address this problem, we introduce PsyMatrix, a novel framework designed to efficiently characterize text datasets. PsyMatrix evaluates multiple dimensions of text and discourse, producing interpretable, low-dimensional embeddings. Our framework has been tested using a meta-dataset repository that includes the performance of 24 pretrained large language models fine-tuned across 146 classification datasets. Using the proposed embeddings, we successfully developed a meta-learning system capable of recommending the most effective pretrained models (optimal and near-optimal) for fine-tuning on new datasets.
12
+
13
+ # 1 Introduction
14
+
15
+ Pre-training a language model on a large, diverse, and unlabeled corpus, then fine-tuning it with task-specific data has proven to be highly effective for enhancing performance of natural language processing (NLP) applications (Radford and Narasimhan, 2018). Since then, numerous pretrained large language models (LLM) have been released to the public, each pretrained on different corpora with varying sizes, and using different architectures. Although the prospect of a universal pretrained model (PTM) that excels across all NLP tasks is attractive, evidence (still) indicates that no single model performs optimally in every scenario (Wolpert, 1996; Lorena et al., 2019; Arango et al., 2024). This poses a challenge for machine learning practitioners, who must select a PTM to fine-tune for a task-specific dataset. Performing an exhaustive search over all possible candidates can
16
+
17
+ be very time and resource consuming. In practice, this is not realistic.
18
+
19
+ The performance of PTMs often fluctuates depending on some characteristics of the target dataset (Schaffer, 1994), usually referred to as meta-features (Rivolli et al., 2022). For example, a model that performs exceptionally well on carefully written news articles may encounter difficulties with the brevity and slang commonly found in social media posts (Zheng and Yang, 2019; Shushkevich et al., 2022; Roussinov and Sharoff, 2023). Therefore, the challenge is to decide, for a particular dataset, which PTM is expected to perform the best after fine-tuning.
20
+
21
+ One low-cost approach could be to search for public benchmarks and check which PTM performed the best for similar datasets. However, defining such dataset similarity in an objective manner, specially for text datasets, is very challenging.
22
+
23
+ To address this, we propose a novel framework named PsyMatrix, which characterizes text datasets by analyzing multiple aspects of text and discourse. These range from simple part-of-speech (POS) statistics to more complex and deep psycholinguistic features (Barnwal and Tiwary, 2017). Our framework generate dataset embeddings that are both interpretable and low-dimensional, providing a deeper understanding of the intricacies inherent in different datasets. Figure 1 illustrates the core components of the framework. The code of the framework is open-source and has been made publicly available<sup>1</sup>.
24
+
25
+ To sum up, our contributions are as follows:
26
+
27
+ - Introduction of PsyMatrix: a framework to characterize text datasets by generating interpretable and low-dimensional embeddings that capture several levels of language and discourse.
28
+
29
+ ![](images/470074609b4fc2939184443d5726416e30dfd24ac8f23c88a26a60566174f3f8.jpg)
30
+ Figure 1: PsyMatrix: Text classification datasets (left) are transformed via different feature extractors (middle left). The features are summarized across documents (middle) and a subset of meta-features is selected (middle right). A variational autoencoder compresses the meta-features to result in the final PsyMatrix dataset embeddings (right).
31
+
32
+ - Recommendation System Potential: the framework's applicability in creating a recommendation system for optimal or nea-optimal pretrained model selection for new datasets.
33
+ - Validation Across Datasets: Fine-tuning and evaluation of 24 pretrained large language models on 146 public text classification datasets to validate the framework.
34
+
35
+ The paper is organized as follows: Section 2 reviews existing methods for characterizing datasets in general and for the problem of selecting a pretrained model for fine-tuning on task-specific data. Section 3 provides a detailed description of the framework, including the psycholinguistic dimensions and complexity measures used. Section 4 presents and analyzes the findings from fine-tuning models on 146 datasets and the predictive performance of the provided embeddings, presenting practical applications of PsyMatrix in guiding model selection and its broader implications in machine learning. Finally, Section 5 summarizes the findings, contributions, and potential future work.
36
+
37
+ # 2 Related Work
38
+
39
+ The process of selecting an optimal PTM for a specific dataset typically involves trial and error. Practitioners usually start by choosing a few potential models based on prior knowledge and experience (Alzahrani et al., 2022; Ren et al., 2023; Daban et al., 2023; Malic et al., 2023; Qiu et al., 2022). These models are then fine-tuned on the target dataset and have their performance compared,
40
+
41
+ allowing for an assessment of how well each model adapts to the unique characteristics of the data.
42
+
43
+ However, the result of this approach can be limited by the assumptions made during initial model pre-selection, which may not always be valid for the dataset in question, which might lead to suboptimal outcomes. This mismatch underscores the need for a refined selection strategy that takes into account the unique features of the dataset, promoting a more effective model selection process.
44
+
45
+ # 2.1 Characterization of Datasets
46
+
47
+ Recognizing specific characteristics or meta-features of the target dataset can considerably refine the selection of potential models. This approach helps eliminate models that historically underperform on similar types of data, emphasizing the importance of accurate meta-feature identification and use. By pinpointing critical meta-features, we can more reliably forecast the performance of machine learning algorithms that are tailored to particular dataset profiles (Brazdil et al., 2022).
48
+
49
+ Researchers have proposed a wide range of meta-features to characterize datasets in general, in order to aid in the model selection process, spanning from basic statistical attributes like mean and variance, to more advanced measures rooted in complexity and information theory (Lindner and Studer, 1999; Sohn, 1999; Bensusan et al., 2000; Peng et al., 2002; Lorena et al., 2019; Rivolli et al., 2022). Unfortunately, they are all designed for tabular datasets, making them not applicable to text datasets directly. Notably, efforts have been made to adapt meta-feature extraction to image datasets,
50
+
51
+ demonstrating some success in this area (Edwards and Storkey, 2017; Jomaa et al., 2021).
52
+
53
+ To our knowledge, the only research addressing specifically text dataset characterization is by Simig et al. (2022), who introduce the Text Characterization Toolkit (TCT). TCT utilizes several existing metrics from the Coh-Metrix toolkit to evaluate the documents in a given dataset, performing various statistical analyses on the extracted features (McNamara et al., 2014). Although the effectiveness of these metrics was not quantified objectively, it contributes to a better understanding of text datasets. Our framework also uses Coh-Metrix as one source of features, but is not limited to it, employing other similar tools as well.
54
+
55
+ # 2.2 Pretrained Model Selection
56
+
57
+ Other approaches have been proposed to address the pretrained model selection problem, using various strategies and architectures (Arango et al., 2024; Li et al., 2023; Bolya et al., 2021; Tang et al., 2024). While these contributions have significantly advanced the field, their focus has predominantly been on image-related tasks (or at least only demonstrated on it). This leaves a gap in methodologies specifically designed for text-based applications. Our research aims to bridge this gap. To the best of our knowledge, this is the first work specifically tailored to the text domain.
58
+
59
+ # 3 The PsyMatrix Framework
60
+
61
+ The PsyMatrix framework, as depicted in Figure 1, is designed to synthesize text datasets into a manageable form (i.e., dataset embeddings) using a series of feature extractors and dimensionality reduction techniques. These tools combined, not only capture the essence of the documents, but also facilitate a deeper understanding of underlying patterns and relationships. This way, the PsyMatrix Framework aims to provide dataset embeddings that can be employed as performance predictors for different downstream tasks. This section details the components of the PsyMatrix Framework, illustrating how each module contributes to the overall goal.
62
+
63
+ # 3.1 Problem Statement
64
+
65
+ A dataset $\mathcal{D}$ consists of $M$ documents, each represented by a feature vector of size $N$ , extracted through the function $\Psi$ . This function maps the set of documents to a feature matrix $\mathbf{X}$ , where each
66
+
67
+ row corresponds to a document's feature vector. Thus, we express the feature matrix for $\mathcal{D}$ as:
68
+
69
+ $$
70
+ \mathbf {X} = \Psi (\mathcal {D}) \in \mathbb {R} ^ {M \times N} \tag {1}
71
+ $$
72
+
73
+ To characterize the entire dataset $\mathcal{D}$ , we apply the embedding function $\Phi$ , defined in Eq.(2), which transforms $\mathbf{X}$ into a reduced-dimensional representation vector $\mathbf{x}_{\phi}$ of size $K$ (where $K \ll M \times N$ ):
74
+
75
+ $$
76
+ \mathbf {x} _ {\phi} = \Phi (\mathbf {X}) \in \mathbb {R} ^ {K} \tag {2}
77
+ $$
78
+
79
+ The objective is to develop an embedding that can effectively serve as a performance predictor for various tasks across different text datasets. To this end, let the matrix $Y_{ij}$ be a meta-dataset containing the actual performances of each model $i$ when fine-tuned on each dataset $\mathcal{D}_j$ . Then, let $\eta_i$ be a surrogate function estimating this performance:
80
+
81
+ $$
82
+ \hat {Y} _ {i j} = \eta_ {i} (\Phi (\Psi (\mathcal {D} _ {j})) \tag {3}
83
+ $$
84
+
85
+ The problem is thus to find a pipeline $\{\Psi, \Phi, \eta\}$ such that the estimation error across all models and datasets is minimized:
86
+
87
+ $$
88
+ \min _ {\Psi , \Phi , \eta} \sum_ {i = 1} ^ {M} \sum_ {j = 1} ^ {D} \left(Y _ {i j} - \hat {Y} _ {i j}\right) ^ {2} \tag {4}
89
+ $$
90
+
91
+ Subsequent sections will discuss empirical strategies to address this optimization challenge.
92
+
93
+ # 3.2 Psycholinguistic features
94
+
95
+ Some texts are easier to read than others. For instance, straightforward sentences with common vocabulary, as those found in children's books, are generally simpler for humans to process than complex texts with specialized terminology, like legal contracts or scientific articles. We hypothesize that language models experience similar challenges, which likely affects their performance on various tasks. The key challenge, then, is to find a method for measuring the complexity of text.
96
+
97
+ Several tools have been proposed to quantify the complexity of text. In this work, we combine features from the following tools as a function $\psi_{\mathrm{psy}}$ :
98
+
99
+ - TextStat2 (Bansal and Aggarwal, 2024)
100
+ - TAACO $^3$ (Crossley et al., 2016)
101
+
102
+ Coh-Metrix (Graesser et al., 2004, 2011)
103
+
104
+ Those tools provide sophisticated features of texts, which are usually referred to as psychologists features. Together, they provide more than 300 features. To mention a few:
105
+
106
+ - Gunning fog index: estimates the number of years in formal education that a person needs to clearly understand the text (Gunning, 1952).
107
+ - Rix readability index: it measures readability based on the number of long words in relation to the total number of sentences. A higher score indicates that a text is more complex and potentially harder to understand, while a lower score suggests easier readability (Anderson, 1983).
108
+ - Word frequency for content words: measures the frequency of content words (e.g., nouns, verbs, adjectives, adverbs) in the CELEX2 reference corpus (Baayen et al., 1995).
109
+ - Hypernyms for verbs nouns and verbs: estimates the specificity of words by the number of its hypernyms in WordNet (Fellbaum, 1998).
110
+ - Type-Token Ratio (TTR): quantifies the lexical diversity within a text. It is calculated dividing the number of unique words (types) by the total number of words (tokens). A high TTR indicates a large proportion of unique words within the text. This can make the text more complex and challenging to understand, as it requires the reader to process and integrate a higher number of unique words into the context (Templin, 1957).
111
+
112
+ For more details on each feature, we encourage the reader to check the official documentation of each tool.
113
+
114
+ # 3.3 Topic-based features
115
+
116
+ Another hypothesis is that language models struggle more with some topics than others, similar to humans. Hence, determining the range of topics covered in a dataset might be beneficial for predicting the performance of a fine-tuned model.
117
+
118
+ Topic modeling is a branch of unsupervised machine learning that aims to discover the abstract
119
+
120
+ "topics" that occur in a collection of documents. Latent Dirichlet Allocation (LDA) is one of the most popular topic modeling techniques, due to its probabilistic foundations and flexibility (Blei et al., 2003). LDA models each document as a mixture of topics. It outputs a topic distribution vector for each document, where each element of the vector represents the probability of the document to contain a particular topic, hence another source of features for the documents.
121
+
122
+ However, for LDA to be effective across various datasets, it needs to be trained on a large and diverse set of documents, and the number of topics should be large enough as well. This ensures that the topics that LDA identifies are likely to appear across the majority of documents in any target dataset. These topic features are extracted by $\psi_{\mathrm{topic}}$ .
123
+
124
+ # 3.4 Language-based features
125
+
126
+ PsyMatrix also determines the proportion of different languages in a dataset. Although the main purpose of the framework (for now) is to deal with English datasets, we have noticed that, on public datasets (specially those based on user reviews), it is not uncommon to find documents written in different languages. This can also impact the performance of fine-tuned language models that were not pretrained on a multi-language corpus.
127
+
128
+ Given this, the languages identified within the documents are incorporated as additional features within the framework, one feature per language. This approach helps to enhance model robustness by acknowledging and adapting to the multilingual nature of real-world data. $\psi_{\mathrm{language}}$ extracts the language-based features.
129
+
130
+ In this work, we used a tool called language-detection<sup>5</sup> that can identify 55 different languages (hence 55 features) using a naive Bayesian approach and trained on Wikipedia. This tool has a reported accuracy of over $99\%$ for these languages.
131
+
132
+ # 3.5 Meta-features summarizer
133
+
134
+ The feature matrix $X$ is now constructed as $X = \psi_{\mathrm{psy}}(D) + \psi_{\mathrm{topic}}(D) + \psi_{\mathrm{language}}(D)$ where $+$ denotes concatenation. The next step involves converting the extracted document features into dataset meta-features by a function $\phi (X)$ . Meta-features are secondary attributes generated from the primary features, designed to capture various statistical aspects of their distribution among documents of a
135
+
136
+ dataset. To accomplish this, we have used summarizing functions.
137
+
138
+ Key meta-features include common summarizing functions like the mean, standard deviation, minimum and maximum value, which provide variability and range insights. Other significant meta features include the mode, skewness, kurtosis, first, second, and third quartile, among others. In total, we have employed 20 summary functions to generate meta-features, which enable a more nuanced understanding of the dataset's underlying patterns and characteristics. The complete list of the summarizing functions can be found in the Appendix.
139
+
140
+ # 3.6 Task-Specific Meta-Features (Classification)
141
+
142
+ For classification tasks, not only is the content of documents important, but also how well these documents match their labels. Take the 20 News-groups dataset as an example, which includes about 20,000 emails categorized into 20 classes. It has been demonstrated that accuracy significantly improves when the header is included, compared to just using the body of the emails (Wahba et al., 2023). This improvement is likely to happen because the subject line, which is included in the header and acts as a brief summary of the email, providing crucial insights that aid in classification. The subject line contains distinct keywords that more accurately differentiate the labels. So, understanding the connection between different parts of a document and their labels is crucial for enhancing classification performance.
143
+
144
+ Moreover, other label-related factors also influence the performance of classifiers, such as class imbalance, class ambiguity, and the complexity of the boundaries separating the classes (Ho and Basu, 2002). In order to capture such aspects as well, we converted the documents from the datasets into TF-IDF vectors and, together with the associated labels, used them as inputs for task-specific meta-features extraction (Lorena et al., 2019). PsyMatrix uses a comprehensive set of meta-features as described by Lorena et al. (2019), categorized into six groups: (1) clustering, (2) complexity, (3) concept, (4) information theory, (5) general, and (6) statistical. By applying these meta-features, we can further refine our understanding and processing of classification tasks, leading to improved model performance across diverse datasets.
145
+
146
+ In this work, we used a tool called PyMFE (Alcobaça et al., 2020) to compute those meta-features
147
+
148
+ from the datasets, providing additional 2825 meta-features for a dataset. For further details on this tool, and which meta-features are available, readers are encouraged to consult the official documentation. $^6$
149
+
150
+ # 3.7 Dimensionality Reduction
151
+
152
+ Combining all the previously described processes generates a large number of meta-features for each dataset<sup>7</sup>. Many of them are redundant (high correlation), and certainly not all of them are important towards our objective. Hence, different dimensionality reduction techniques were combined.
153
+
154
+ Initially, we removed features that were constant or highly correlated (i.e., correlation above 0.95). Next, we applied K-means clustering to select $K$ meta-features. Lastly, we employed variational auto-encoders (Kingma and Welling, 2013) (VAEs) to transform the remaining set of meta-features into a compact, low-dimensional representation. VAEs work by compressing data into a latent space (encoding) and then reconstructing it back to its original form (decoding). Although the reconstruction is not perfect and some information loss occurs, the technique maintains a degree of interpretability due to its reversible nature.
155
+
156
+ # 4 Experiments and Results
157
+
158
+ This section experimentally investigates the practical application of the PsyMatrix framework to predict the final performance $Y_{ij}$ of a model $i$ on a dataset $j$ using a surrogate function $\eta_i(\phi(\psi(D_j)))$ . The performance metric employed is the negative logarithm of the cross-entropy on the testing sets.
159
+
160
+ The objective is to test the ability of PsyMatrix in predicting the most suitable model for any target dataset. To do this, we evaluated the performance of various pretrained language models across a broad spectrum of text classification tasks. Specifically, we used $90\%$ of the data for training, and the remaining $10\%$ was employed for validation. To further enhance the reliability of our results, we employed 10-fold cross-validation, ensuring a more robust assessment of PsyMatrix's generalization ability across various datasets and reducing the impact of data variability.
161
+
162
+ Table 1: Finetuning hyper-parameters
163
+
164
+ <table><tr><td>Hyper-parameter</td><td>Value</td></tr><tr><td>Optimizer</td><td>AdamW</td></tr><tr><td>Learning rate</td><td>2.5 × 10-6</td></tr><tr><td>Batch size</td><td>8</td></tr><tr><td>Maximum token size</td><td>1024</td></tr><tr><td>Maximum number of epochs</td><td>30</td></tr><tr><td>Early stop patience</td><td>3 epochs</td></tr><tr><td>16-bit (mixed) precision</td><td>Yes</td></tr></table>
165
+
166
+ # 4.1 Experimental Setup
167
+
168
+ In order to test PsyMatrix, we constructed a comprehensive meta-dataset repository containing performance metrics of 24 pretrained language models across 146 text classification datasets. While some datasets provide predefined train-test splits, we chose to create uniform splits for all datasets to ensure consistency. In most cases, we used 10,000 documents for training and 2,000 for testing. For datasets with fewer than 12,000 documents, we adjusted the number of training and testing documents proportionally, maintaining the same ratio between the two sets. More details about the datasets and pretrained models used can be found in the Appendix.
169
+
170
+ The fine-tuning process involved full model fine-tuning, where all weights of the pretrained network were updated during the fine-tuning process. This method generally yields the best results, but requires more time and resources for training. The pretrained head of base models were discarded and replaced by a new classification head, according to the number of labels of the task at hand. The fine-tuning hyperparameters employed were used as described in Table 1.
171
+
172
+ For the topic modeling feature extractor, we trained the LDA model using the training set of each dataset. The pre-processing steps were straightforward and included removing numbers, punctuation, stop words, and words with fewer than two characters. When creating the dictionary, we filtered out words that occurred fewer than 30 times or appeared in more than $50\%$ of the documents, in order to avoid noise and overly common terms. For the hyperparameters, we set the number of topics to 100, with 10 passes and 400 iterations (following the implementation provided by Gensim<sup>8</sup>). Additionally, we limited the dictionary to the 10,000 most frequent words. Examples of the extracted
173
+
174
+ ![](images/ba2fbc7011442203d395d9407d0183609f39829f74e529ac0d426ba29d2cb5f8.jpg)
175
+ Figure 2: The neural network used as performance estimator (ranking) of a set of 24 pretrained models on a given dataset.
176
+
177
+ topics can be found in the Appendix.
178
+
179
+ For the surrogate performance estimator, we utilized a multi-layer perceptron (MLP), as illustrated in Figure 2. The model's inputs consist of dataset embeddings, which were generated using a 2D Variational Autoencoder (VAE). The output of the network is the predicted validation performance for each pretrained language model used in our experiments. To properly assess the generalization ability of the MLP, we employed 10-fold cross-validation. Importantly, the data splits were made at the dataset level, meaning that some datasets were entirely excluded from the training set and used solely for validation. This ensured that during training, the model did not have access to the performance information of all datasets, allowing us to evaluate its ability to generalize to unseen datasets.
180
+
181
+ # 4.2 Applications
182
+
183
+ PsyMatrix can be employed in several applications related to the selection of pretrained language models across various datasets. By leveraging its ability to predict model performance and explore the relationships between datasets and model behaviors, PsyMatrix can guide users in selecting the most appropriate models for fine-tuning (optimal and near-optimal), and projecting PTM performance across the dataset embedding space. In the following, we demonstrate these capabilities through three key applications: model ranking for optimal selection, near-optimal model identification, and exploring the embedding space for performance insights.
184
+
185
+ # 4.2.1 Model Ranking for Optimal Model Selection
186
+
187
+ One practical application of PsyMatrix is its ability to assist in selecting the most suitable PTM for fine-tuning on a given dataset. For any dataset, we first calculate its embeddings and then use PsyMatrix to estimate the performance of a fix set of PTMs. Based on these predictions, the models can be ranked in descending order of expected performance, which can be used as a starting point for the actual fine-tuning of the PTMs, prioritizing the top models in the ranking.
188
+
189
+ To evaluate our framework prediction's performance, we compared it against two other baseline strategies. The first baseline, named random policy, selects models purely by chance for $k$ trials. This simulates an unguided search, where the probability of selecting the optimal model is effectively $k$ divided by the total number of candidate models.
190
+
191
+ The second baseline, called the naive policy, uses a slightly more informed approach: it ranks the PTMs based on how frequently each one was historically the best performer. In this ranking system, the model with the highest performance across the most datasets is placed first, followed by others in decreasing order of their historical frequency of being optimal. The same ranking is then used for every new dataset. In this paper, we utilized all the information available in the meta-dataset to construct this naive ranking.
192
+
193
+ The comparison in Figure 3 illustrates the effectiveness of the different strategies, showing the probability of identifying the optimal model within a given number of trials, denoted by $k$ (the selection budget). The results demonstrate a clear advantage for PsyMatrix over other strategies. For example, with a budget of $k = 5$ , PsyMatrix achieves success rate of $78.7 \pm 10.6\%$ in selecting the optimal model, significantly outperforming the naïve policy, which has a success rate of $36\%$ , and the random policy, which only reaches $20\%$ . This difference highlights the superior efficiency of PsyMatrix in guiding the model selection.
194
+
195
+ PsyMatrix's stronger performance, particularly in low-budget scenarios where resources are limited, emphasizes its practical value in real-world applications. By substantially increasing the chances of selecting the best model with fewer trials, PsyMatrix proves to be a more reliable and efficient tool for model selection compared to traditional methods.
196
+
197
+ ![](images/8e7455c17ebd84682cb11a2801759d1a65c1791eadf124ebbfbf222fe4a08f58.jpg)
198
+ Figure 3: The probability of the optimal model being present within the top- $k$ models of each ranking strategy. PsyMatrix consistently offers the highest probability of identifying the optimal model for any budget $k$ .
199
+
200
+ # 4.2.2 Near-Optimal Model Selection
201
+
202
+ During the analysis of the experimental results performed in this paper, we observed that usually the top four or five PTMs often perform very similarly on a given dataset, achieving results close to the true optimal. This suggests that identifying models with near-optimal performance may be "good enough" for many NLP applications, particularly when budget constraints limit the ability to search exhaustively for the absolute best model.
203
+
204
+ To further demonstrate the effectiveness of our approach in this scenario, Figure 4 shows the normalized performance gap between the true optimal model and the best-performing model selected among the top- $k$ predictions. In this figure, a value of 1 corresponds to the performance of the optimal model, while 0 represents the worst-performing model.
205
+
206
+ Interestingly, when the budget is very limited $(k = 1)$ , the naïve policy slightly outperforms PsyMatrix, achieving $87\%$ of the optimal model's performance compared to PsyMatrix's $83\%$ . This demonstrates that, in extremely constrained situations, relying on the best-known model can be a reasonable strategy. However, as the budget increases $(2 \leq k \leq 12)$ , PsyMatrix consistently outperforms both baseline strategies. For example, with a budget of $k = 5$ trials, PsyMatrix identifies a model with an average performance that is $98\%$ of the optimal, while the naïve policy achieves only $93\%$ .
207
+
208
+ ![](images/43c6194171d43c44e893ab51d18f5a4af719ea6d6e2a18b77a59f49cf2fd8d15.jpg)
209
+ Figure 4: Performance gap between the true optimal and the best one found by each strategy, where 1.0 is the normalized performance of the optimal model, and 0.0 is the normalized performance of the worst model. PsyMatrix quickly find near-optimal solutions and is superior in all but budget $k = 1$ .
210
+
211
+ and the random policy falls further behind at $87\%$ . This highlights that PsyMatrix is not only effective at finding the optimal model but also at selecting near-optimal models with minimal performance loss, even under moderate budget constraints.
212
+
213
+ # 4.2.3 Exploring the Embedding Space
214
+
215
+ Another application of PsyMatrix is its ability to project the performance of pretrained large language models into the entire embedding space, revealing regions where the models are likely to be the optimum or near-optimum. These projections allow to visualize regions of specialization for each model, offering insights into which kinds of datasets the models are recommended for.
216
+
217
+ To achieve this, we provided the trained network of our framework a grid of embeddings, and analyzed the output from each of its output neurons, where each neuron corresponds to the estimated performance of a specific model. As an illustration, Figure 5 shows the average output for two PTMs across the validation set for each of the 10 folds: GPT-2 and FALCONS.AI Question Answering<sup>10</sup>.
218
+
219
+ In the figure, the colors indicate the predicted probability of the given PTM being the optimal one across the embedding space. Notably, GPT-2 shows higher performance in regions associated with datasets like Amazon Reviews (along the sides of the plot), while FALCONS.AI's model demon
220
+
221
+ ![](images/94462ecfbda70964b6e56eece4dd4758b0dacb8d2dfc37cfbe051eaf5ee69867.jpg)
222
+
223
+ ![](images/31060f1d50f5a959cde5336133c68fb694f029f0610f5ec27240b4f2f08c70f7.jpg)
224
+ (a) GPT2.
225
+ (b) Fine-tuned DistilBERT for question answering.
226
+ Figure 5: Projection of PsyMatrix's score for a pretrained model being optimal across the embedding space.
227
+
228
+ strates superior performance in other regions, particularly those associated with datasets such as Rotten Tomatoes and AG News (toward the bottom of the plot). By identifying these regions, is is possible to make more informed decisions for the model selection, effectively aligning specific tasks with the models that are best suited to handle them.
229
+
230
+ This kind of information is useful for both model developers and practitioners, as it highlights where a PTM is likely to perform well and where it might face challenges. These insights can guide developers in enhancing a pretrained model by training it on more diverse datasets, or at least to help set clear boundaries regarding the types of datasets for which the model is most suitable. By understanding a model's strengths and weaknesses, we can better align it with the appropriate tasks, ultimately leading to improved performance and more reliable outcomes.
231
+
232
+ # 5 Conclusion
233
+
234
+ In this paper, we introduced PsyMatrix, a novel framework for characterizing text-based datasets through psycholinguistic dimensions, topic distributions, and complexity measures. By providing interpretable and low-dimensional dataset embeddings, PsyMatrix aids in understanding the latent dataset features and accurately predicting the performance of pretrained language models finetuned for classification tasks. Our extensive validation across 146 text classification datasets demonstrated the robustness and effectiveness of PsyMatrix in guiding model selection.
235
+
236
+ In future work we will explore the application of PsyMatrix to other domains beyond text classification and expand PsyMatrix to support multiple languages.
237
+
238
+ # 6 Limitations
239
+
240
+ In this paper, we focused exclusively on fine-tuning performances for classification datasets. This specificity raises the first limitation: the generalization of our proposed framework to other NLP tasks has not been tested. Different tasks might exhibit unique characteristics and requirements that might not be captured by our embeddings, making it necessary to conduct further research to ascertain whether our findings hold across a broader range of applications.
241
+
242
+ Another limitation concerns the hyperparameter settings. Throughout our experiments, all finetuning processes were executed with a fixed set of training hyperparameters, such as learning rate, optimizer, maximum number of training epochs, etc. We did not undertake any optimization of these parameters for specific pretrained models or target datasets. Although this approach simplifies the experimental design, it introduces potential biases in our results. It's plausible to assume that a few finetuned models might have prematurely converged to local minima due to this lack of optimization.
243
+
244
+ So, while this paper contributes valuable insights into the interpretability and analysis of pretrained language models in context of classification tasks, these insights come with caveats that must be addressed through further, more nuanced research. Our commitment to transparency in discussing these limitations is intended to foster integrity within the research community and encourage rigorous, thoughtful examination of the framework we proposed.
245
+
246
+ # References
247
+
248
+ Edesio Alcobaça, Felipe Siqueira, Adriano Rivolli, Luis P. F. Garcia, Jefferson T. Oliva, and André C. P. L. F. de Carvalho. 2020. MFE: Towards reproducible meta-feature extraction. Journal of Machine Learning Research, 21(111):1-5.
249
+ Esam Alzahrani, Mohammed Al Qurashi, and Leon Jololian. 2022. Comparative analysis of the use of pre-trained models to profile authors' ages and genders. In 2022 2nd International Conference on Computing and Machine Intelligence (ICMI), pages 1-7.
250
+ Jonathan Anderson. 1983. Lix and rix: Variations on a little-known readability index. Journal of Reading, 26(6):490-496.
251
+ Sebastian Arango, Fabio Ferreira, Arlind Kadra, Frank Hutter, and Josif Grabocka. 2024. Quick-tune: Quickly learning which pretrained model to finetune and how. In International Conference on Learning Representations, ICLR'24.
252
+ R. H. Baayen, R. Piepenbrock, and L. Gulikers. 1995. CELEX2 LDC96L14. Linguistic Data Consortium, Philadelphia.
253
+ Shivam Bansal and Chaitanya Aggarwal. 2024. Textstat: Python package to help in text statistics. Original software developed by Shivam Bansal and contributors.
254
+ Santosh Kumar Barnwal and Uma Shanker Tiwary. 2017. Using psycholinguistic features for the classification of comprehenders from summary speech transcripts. In Intelligent Human Computer Interaction, pages 122-136, Cham. Springer International Publishing.
255
+ Hilan Bensusan, Christophe Giraud-Carrier, and Claire Kennedy. 2000. A higher-order approach to meta-learning. In Proceedings of the ECML'2000 workshop on Meta-Learning: Building Automatic Advice Strategies for Model Selection and Method Combination, pages 109 - 117. ECML'2000.
256
+ David M. Blei, Andrew Y. Ng, and Michael I. Jordan. 2003. Latent dirichlet allocation. Journal of Machine Learning Research, 3:993-1022.
257
+ Daniel Bolya, Rohit Mittapalli, and Judy Hoffman. 2021. Scalable diverse model selection for accessible transfer learning. In Advances in Neural Information Processing Systems.
258
+ Pavel Brazdil, Jan N. van Rijn, Carlos Soares, and Joaquin Vanschoren. 2022. Dataset Characteristics (Metafeatures), pages 53-75. Springer International Publishing, Cham.
259
+ Scott A. Crossley, Kristopher Kyle, and Danielle S. McNamara. 2016. The tool for the automatic analysis of text cohesion (TAACO): Automatic assessment of local, global, and text cohesion. Behavior Research Methods, 48(4):1227-1237.
260
+
261
+ Ali Daban, Siti Armiza Mohd Aris, and Mohd Syahid Mohd Anuar. 2023. Ferrous metal classifications based on sparks pattern using CNN pretrained models. In 2023 IEEE Symposium on Computers & Informatics (ISCI), pages 31-35.
262
+ Harrison Edwards and Amos Storkey. 2017. Towards a neural statistician. In International conference on learning representations, ICLR'17.
263
+ Christiane Fellbaum. 1998. WordNet: An Electronic Lexical Database. Bradford Books.
264
+ Arthur C. Graesser, Danielle S. McNamara, and Jenna M. Kulikowich. 2011. Coh-Matrix: Providing multilevel analyses of text characteristics. Educational Researcher, 40(5):223-234.
265
+ Arthur C. Graesser, Danielle S. McNamara, Max M. Louwerse, and Zhiqiang Cai. 2004. Coh-Matrix: Analysis of text on cohesion and language. Behavior Research Methods, Instruments, & Computers, 36(2):193-202.
266
+ Robert Gunning. 1952. The Technique of Clear Writing. McGraw-Hill, New York.
267
+ Tin Kam Ho and M. Basu. 2002. Complexity measures of supervised classification problems. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24(3):289-300.
268
+ Hadi S. Jomaa, Lars Schmidt-Thieme, and Josif Grabocka. 2021. Dataset2vec: learning dataset meta-features. Data Mining and Knowledge Discovery, 35:964-985.
269
+ Diederik P. Kingma and Max Welling. 2013. Autoencoding variational bayes. CoRR, abs/1312.6114.
270
+ Hao Li, Charless C. Fowlkes, Han Yang, Onkar Dabeer, Zhuowen Tu, and Stefan Soatto. 2023. Guided recommendation for model fine-tuning. 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3633-3642.
271
+ Guido Lindner and Rudi Studer. 1999. AST: Support for algorithm selection with a CBR approach. In European Conference on Principles of Data Mining and Knowledge Discovery.
272
+ Ana C. Lorena, Luís P. F. Garcia, Jens Lehmann, Marcilio C. P. Souto, and Tin Kam Ho. 2019. How complex is your classification problem? A survey on measuring classification complexity. ACM Comput. Surv., 52(5).
273
+ Vincent Quirante Malic, Anamika Kumari, and Xiaozhong Liu. 2023. Racial skew in fine-tuned legal AI language models. In 2023 IEEE International Conference on Data Mining Workshops (ICDMW), pages 245-252.
274
+ Danielle S. McNamara, Arthur C. Graesser, Philip M. McCarthy, and Zhiqiang Cai. 2014. Automated Evaluation of Text and Discourse with Coh-Matrix. Cambridge University Press.
275
+
276
+ Yonghong Peng, Peter A. Flach, Carlos Soares, and Pavel Brazdil. 2002. Improved dataset characterisation for meta-learning. In *Discovery Science*, pages 141-152, Berlin, Heidelberg. Springer Berlin Heidelberg.
277
+ Chunping Qiu, He Li, Wenyue Guo, Xin Chen, Anzhu Yu, Xiaochong Tong, and Michael Schmitt. 2022. Transferring transformer-based models for cross-area building extraction from remote sensing images. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 15:4104-4116.
278
+ Alec Radford and Karthik Narasimhan. 2018. Improving language understanding by generative pretraining. Technical report, OpenAI. Preprint.
279
+ Fei Ren, Dong Lu, and Naxin Cui. 2023. A deep transfer learning framework for Li-ion battery temperature prediction based on LSTM pretraining model. In 2023 IEEE 2nd International Power Electronics and Application Symposium (PEAS), pages 1170-1175.
280
+ Adriano Rivolli, Luis P.F. Garcia, Carlos Soares, Joaquin Vanschoren, and Andre C. P. L. F. de Carvalho. 2022. Meta-features for meta-learning. Knowledge-Based Systems, 240:108101.
281
+ Dmitri Roussinov and Serge Sharoff. 2023. BERT goes off-topic: Investigating the domain transfer challenge using genre classification. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 468-483, Singapore. Association for Computational Linguistics.
282
+ Cullen Schaffer. 1994. Cross-validation, stacking and bi-level stacking: Meta-methods for classification learning. In Selecting Models from Data, pages 51-59, New York, NY. Springer New York.
283
+ Elena Shushkevich, Mikhail Alexandrov, and John Cardiff. 2022. Bert-based classifiers for fake news detection on short and long texts with noisy data: A comparative analysis. In Text, Speech, and Dialogue, pages 263-274, Cham. Springer International Publishing.
284
+ Daniel Simig, Tianlu Wang, Verna Dankers, Peter Henderson, Khuyagbaatar Batsuren, Dieuwke Hupkes, and Mona Diab. 2022. Text characterization toolkit (TCT). In Proceedings of the 2nd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 12th International Joint Conference on Natural Language Processing: System Demonstrations, pages 72-87, Taipei, Taiwan. Association for Computational Linguistics.
285
+ So Young Sohn. 1999. Meta analysis of classification algorithms for pattern recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 21(11):1137-1144.
286
+ Zhiqiang Tang, Haoyang Fang, Su Zhou, Taojiannan Yang, Zihan Zhong, Tony Hu, Katrin Kirchhoff, and George Karypis. 2024. Autogluon-multimodal (autom): Supercharging multimodal automl with foundation models. Preprint, arXiv:2404.16233.
287
+
288
+ M. C. Templin. 1957. Certain Language Skills in Children: Their Development and Interrelationships, volume 10. University of Minnesota Press, Minneapolis, MN.
289
+ Yasmen Wahba, Nazim Madhavji, and John Steinbacher. 2023. A comparison of SVM against pre-trained language models (PLMs) for text classification tasks. In Machine Learning, Optimization, and Data Science, pages 304-313, Cham. Springer Nature Switzerland.
290
+ David Wolpert. 1996. The lack of a priori distinctions between learning algorithms. *Neural Computation*, 8.
291
+ Shaomin Zheng and Meng Yang. 2019. A new method of improving bert for text classification. In Intelligence Science and Big Data Engineering. Big Data and Machine Learning, pages 442-452, Cham. Springer International Publishing.
292
+
293
+ # Appendix
294
+
295
+ # A Pretrained Language Models
296
+
297
+ In this study, we evaluated the performance of various pretrained language models (PTMs), which are available through the Hugging Face model hub. These models span a range of architectures and capabilities, and were selected to provide a comprehensive comparison across different natural language processing tasks. Below is the list of pretrained models (referenced by their Hugging Face repository IDs) used in our experiments:
298
+
299
+ 1. openai-community/gpt2
300
+ 2. google-bert/bert-base-multilingual-cased
301
+ 3. google-bert/bert-base-cased
302
+ 4. FacebookAI/roberta-base
303
+ 5. FacebookAI/xlm-roberta-base
304
+ 6. albert/albert-base-v2
305
+ 7. xlnet/xlnet-base-cased
306
+ 8. microsoft/mpnet-base
307
+ 9. google/fnet-base
308
+ 0. allenai/longformer-base-4096
309
+ 11. studio-ousia/luke-base
310
+ 12. studio-ousia/luke-japanese-base
311
+ 13. bigscience/bloom-560m
312
+ 14. bigscience/bloomz-560m
313
+ 15. funnel-transformer/medium-base
314
+ 16. Falconsai/question_answering
315
+ 17. deepmind/language-perceiver
316
+ 18. kssteven/ibert-roberta-base
317
+ 19. uw-madison/nystromformer-1024
318
+ 20. uw-madison/yoso-4096
319
+ 21. flaubert/flaubert_base_cased
320
+ 22. nghuyong/ernie-3.0-base-zh
321
+
322
+ 23. facebook/opt-125m
323
+ 24. facebook/opt-1.3b
324
+
325
+ # B Datasets
326
+
327
+ All experiments in this work focused on text classification tasks. We curated a total of 146 distinct datasets, derived from 11 base datasets. These base datasets are widely used in natural language processing (NLP) tasks and cover a range of text classification challenges, such as sentiment analysis, topic classification, and intent detection. The datasets used are listed below:
328
+
329
+ 1. 20 Newsgroups
330
+ 2. AG News
331
+ 3. Amazon Reviews
332
+ 4. CLINC 150
333
+ 5. Drug Reviews (Drugs.com)
334
+ 6. Rotten Tomates
335
+ 7. Sentiment 140
336
+ 8. SMS Span
337
+ 9. Stanford Sentiment Treebank
338
+ 10. Victorian Authorship
339
+ 11. Yelp Reviews
340
+
341
+ To create the 146 distinct datasets, we generated subsets by varying the input features and target labels available within each base dataset. This approach allowed us to explore different aspects of each dataset for more comprehensive experimentation. For example:
342
+
343
+ - 20 Newsgroups: this dataset was divided into three subsets based on different input features. One subset used only the email body as input, another used only the subject line, and a third used both the subject and body combined.
344
+ - Sentiment Analysis: for datasets involving sentiment analysis, such as Amazon Reviews and Rotten Tomatoes, we created multiple subsets, including both binary classification (positive/negative sentiment) and balanced versions to ensure equal representation of classes.
345
+ - Amazon Reviews: we further divided the dataset by its product categories, creating separate subsets for each sub-category to assess model performance on different domains.
346
+
347
+ The Amazon Reviews dataset, due to its extensive size and multiple categories, contributed significantly to the total number of subsets. To make the
348
+
349
+ analysis more manageable, we grouped the Amazon Reviews subsets into three clusters for visualization in the figures, as described in Table 2.
350
+
351
+ Table 2: Amazon Reviews Sub-groups
352
+
353
+ <table><tr><td>Dataset</td><td>Inputs</td><td># Classes</td></tr><tr><td rowspan="2">Amazon Review (1)</td><td>summary, text</td><td>5</td></tr><tr><td>summary</td><td>5</td></tr><tr><td>Amazon Review (2)</td><td>summary, text</td><td>2</td></tr><tr><td>Amazon Review (3)</td><td>summary</td><td>2</td></tr></table>
354
+
355
+ This process of creating multiple subsets allowed us to examine PsyMatrix's performance on a wide variety of tasks, ensuring robust evaluation across different types of text classification problems. For reproducibility, all datasets used in this study have been made publicly available on Hugging Face Hub.[11]
356
+
357
+ # C Summarizing Functions
358
+
359
+ This section details the summarizing functions chosen to extract meta-features from the dataset's basic features. Each function was selected based on its ability to provide a comprehensive statistical overview of the data, facilitating deeper insights into its underlying distribution, spread, central tendency, and variability:
360
+
361
+ 1. Pearson product-moment correlation coefficients (corrcoef)
362
+ 2. Interquartile range (iqr)
363
+ 3. Unbiased estimator of the variance of the $k$ -statistic (kstatvar)
364
+ 4. Fisher's coefficient of kurtosis (kurtosis)
365
+ 5. Maximum (max)
366
+ 6. Arithmetic mean (mean)
367
+ 7. Median absolute deviation (mad)
368
+ 8. Minimum (min)
369
+ 9. Modal (most common) value (mode)
370
+ 10. Modal occurrences (mode_count)
371
+ 11. First moment about the mean (moment)
372
+ 12. Range of values (ptp)
373
+ 13. First quartile (q1)
374
+ 14. Second quartile (q2)
375
+ 15. Third quartile (q3)
376
+ 16. Standard error of the mean (sem)
377
+ 17. Skewness (skew)
378
+ 18. Standard deviation (std)
379
+ 19. Variance (var)
380
+ 20. Coefficient of variation (variation)
381
+
382
+ # D Ablation Studies: VAE
383
+
384
+ In order to determine the importance of Variational Autoencoders (VAE) in our framework, in this section we present an ablation study. Figure 6 illustrates the impact of removing the VAE-based feature compression on our model's prediction performance. The performance metrics clearly demonstrate a substantial degradation when VAE is omitted. This drop in performance highlights the VAE's critical role in retaining meaningful information in a compressed representation, which is essential for maintaining the accuracy and robustness of our predictive models.
385
+
386
+ ![](images/46833df52ba876ba6453ac1ed5039e7018f12424f724133374c3c9aa3417f78a.jpg)
387
+ Figure 6: Performance comparison when removing the feature compressions provided by VAE. This comparison illustrates the significant contribution of VAE to maintaining high predictive accuracy in our models.
388
+
389
+ These results confirm that effective feature compression is important for our framework, hence supporting our decision to integrate VAE into our dataset embedding pipeline, ensuring that PsyMatrix can handle high-dimensional data efficiently.
390
+
391
+ # E Topic Modeling
392
+
393
+ In this section, we provide examples of topics extracted from the trained corpus employed in this paper. The objective is to offer readers an overview of the types of topics identified by the Latent Dirichlet Allocation (LDA) technique. We encourage readers to follow the instructions in our framework to download and explore the trained LDA model for a deeper analysis and understanding.
394
+
395
+ Table 3 displays a selection of sample topics extracted using LDA. Each entry includes a list of the top-10 words associated with a specific topic,
396
+
397
+ accompanied by their respective probability scores. These scores quantify the likelihood of each word's occurrence within the topic, thus highlighting its importance within the cluster. For instance, Topic 1 is characterized by words such as light, power, heart, God, and truth, suggesting themes of spiritual or existential nature.
398
+
399
+ It is important to clarify that we did not perform hyper-parameter optimization to enhance topic coherence or diversity. Nevertheless, the topics extracted appear to be meaningful and useful for analyzing the datasets.
400
+
401
+ Table 3: Top-10 words for some extracted topics
402
+
403
+ <table><tr><td colspan="2">Topic 1</td><td colspan="2">Topic 5</td><td colspan="2">Topic 8</td><td colspan="2">Topic 27</td><td colspan="2">Topic 33</td></tr><tr><td>light</td><td>0.14</td><td>guitar</td><td>0.23</td><td>use</td><td>0.44</td><td>needed</td><td>0.13</td><td>gained</td><td>0.07</td></tr><tr><td>power</td><td>0.11</td><td>author</td><td>0.12</td><td>recommend</td><td>0.20</td><td>bleeding</td><td>0.10</td><td>appetite</td><td>0.05</td></tr><tr><td>charge</td><td>0.06</td><td>page</td><td>0.06</td><td>working</td><td>0.09</td><td>symptoms</td><td>0.09</td><td>fiction</td><td>0.05</td></tr><tr><td>heart</td><td>0.06</td><td>lose</td><td>0.04</td><td>highly</td><td>0.08</td><td>headaches</td><td>0.06</td><td>instructions</td><td>0.03</td></tr><tr><td>god</td><td>0.06</td><td>improvement</td><td>0.03</td><td>recommended</td><td>0.05</td><td>hair</td><td>0.05</td><td>yeast</td><td>0.03</td></tr><tr><td>blue</td><td>0.03</td><td>acoustic</td><td>0.02</td><td>buying</td><td>0.04</td><td>red</td><td>0.05</td><td>cough</td><td>0.03</td></tr><tr><td>saved</td><td>0.02</td><td>generic</td><td>0.02</td><td>uncomfortable</td><td>0.01</td><td>clean</td><td>0.05</td><td>pros</td><td>0.03</td></tr><tr><td>truth</td><td>0.02</td><td>controls</td><td>0.02</td><td>likes</td><td>0.01</td><td>feet</td><td>0.04</td><td>tuning</td><td>0.03</td></tr><tr><td>present</td><td>0.02</td><td>electric</td><td>0.02</td><td>rated</td><td>0.00</td><td>send</td><td>0.04</td><td>woke</td><td>0.02</td></tr><tr><td>attack</td><td>0.02</td><td>led</td><td>0.02</td><td>juice</td><td>0.00</td><td>straight</td><td>0.04</td><td>cons</td><td>0.02</td></tr><tr><td colspan="2">Topic 37</td><td colspan="2">Topic 39</td><td colspan="2">Topic 66</td><td colspan="2">Topic 72</td><td colspan="2">Topic 78</td></tr><tr><td>pages</td><td>0.05</td><td>sound</td><td>0.23</td><td>nice</td><td>0.26</td><td>phone</td><td>0.42</td><td>free</td><td>0.16</td></tr><tr><td>major</td><td>0.05</td><td>music</td><td>0.09</td><td>movie</td><td>0.14</td><td>sex</td><td>0.07</td><td>daughter</td><td>0.08</td></tr><tr><td>history</td><td>0.05</td><td>play</td><td>0.08</td><td>enjoy</td><td>0.08</td><td>periods</td><td>0.06</td><td>husband</td><td>0.08</td></tr><tr><td>pictures</td><td>0.04</td><td>acne</td><td>0.08</td><td>boring</td><td>0.06</td><td>calls</td><td>0.03</td><td>women</td><td>0.08</td></tr><tr><td>war</td><td>0.04</td><td>player</td><td>0.05</td><td>liked</td><td>0.06</td><td>driving</td><td>0.02</td><td>woman</td><td>0.07</td></tr><tr><td>text</td><td>0.03</td><td>hear</td><td>0.05</td><td>enjoyed</td><td>0.05</td><td>jane</td><td>0.01</td><td>ring</td><td>0.06</td></tr><tr><td>middle</td><td>0.03</td><td>voice</td><td>0.03</td><td>movies</td><td>0.04</td><td>reaction</td><td>0.01</td><td>men</td><td>0.06</td></tr><tr><td>caused</td><td>0.03</td><td>heard</td><td>0.03</td><td>watching</td><td>0.03</td><td>sister</td><td>0.01</td><td>update</td><td>0.05</td></tr><tr><td>mobile</td><td>0.02</td><td>pedal</td><td>0.02</td><td>horror</td><td>0.02</td><td>breast</td><td>0.01</td><td>satisfied</td><td>0.04</td></tr><tr><td>state</td><td>0.02</td><td>fan</td><td>0.02</td><td>plain</td><td>0.02</td><td>inch</td><td>0.01</td><td>finds</td><td>0.02</td></tr></table>
2024/Characterizing Text Datasets with Psycholinguistic Features/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7922d05ea46e48437bfad50795fd3d960680e86e9a219bc44a68608fc3dc389
3
+ size 407259
2024/Characterizing Text Datasets with Psycholinguistic Features/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/0d6f47a2-1c92-48a9-95eb-85faf2cfb354_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/0d6f47a2-1c92-48a9-95eb-85faf2cfb354_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/0d6f47a2-1c92-48a9-95eb-85faf2cfb354_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3336a5cea432c2cf724e5d5f13b9e93c87aa55291ceef12bb59626054004e700
3
+ size 9807933
2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51535a9552cabd892b01cd731968ed79e69a9f7bb6bdf292ec83e350ed679dbd
3
+ size 2108271
2024/ChartInsights_ Evaluating Multimodal Large Language Models for Low-Level Chart Question Answering/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/ChatGLM-Math_ Improving Math Problem-Solving in Large Language Models with a Self-Critique Pipeline/fdd4c5f9-8834-4d35-9712-d719de2cdcbf_content_list.json ADDED
The diff for this file is too large to render. See raw diff