Add Batch 04450d04-03a5-44fe-b463-a51948f58ff1 data
Browse filesThis view is limited to 50 files because it contains too many changes. Β See raw diff
- .gitattributes +62 -0
- 2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/e548559c-1152-413b-b797-404f7c3fa853_content_list.json +0 -0
- 2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/e548559c-1152-413b-b797-404f7c3fa853_model.json +0 -0
- 2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/e548559c-1152-413b-b797-404f7c3fa853_origin.pdf +3 -0
- 2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/full.md +407 -0
- 2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/images.zip +3 -0
- 2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/layout.json +0 -0
- 2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/ecf46cfa-b0ec-4c23-8dc4-a2c4872b6b41_content_list.json +0 -0
- 2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/ecf46cfa-b0ec-4c23-8dc4-a2c4872b6b41_model.json +0 -0
- 2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/ecf46cfa-b0ec-4c23-8dc4-a2c4872b6b41_origin.pdf +3 -0
- 2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/full.md +594 -0
- 2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/images.zip +3 -0
- 2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/layout.json +0 -0
- 2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/a5f9a87b-4cfa-43ae-9c52-c17f4ed4ad95_content_list.json +2457 -0
- 2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/a5f9a87b-4cfa-43ae-9c52-c17f4ed4ad95_model.json +0 -0
- 2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/a5f9a87b-4cfa-43ae-9c52-c17f4ed4ad95_origin.pdf +3 -0
- 2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/full.md +537 -0
- 2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/images.zip +3 -0
- 2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/layout.json +0 -0
- 2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/ed7d8476-0313-45c0-a699-d762f63216f1_content_list.json +1836 -0
- 2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/ed7d8476-0313-45c0-a699-d762f63216f1_model.json +2129 -0
- 2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/ed7d8476-0313-45c0-a699-d762f63216f1_origin.pdf +3 -0
- 2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/full.md +321 -0
- 2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/images.zip +3 -0
- 2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/layout.json +0 -0
- 2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/dc6ba159-ab58-455e-8219-7253c4806059_content_list.json +0 -0
- 2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/dc6ba159-ab58-455e-8219-7253c4806059_model.json +0 -0
- 2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/dc6ba159-ab58-455e-8219-7253c4806059_origin.pdf +3 -0
- 2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/full.md +367 -0
- 2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/images.zip +3 -0
- 2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/layout.json +0 -0
- 2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/dd6463d7-f062-4578-83e5-f6e41ccb00b3_content_list.json +0 -0
- 2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/dd6463d7-f062-4578-83e5-f6e41ccb00b3_model.json +0 -0
- 2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/dd6463d7-f062-4578-83e5-f6e41ccb00b3_origin.pdf +3 -0
- 2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/full.md +453 -0
- 2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/images.zip +3 -0
- 2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/layout.json +0 -0
- 2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/32229d74-3180-4588-abab-abdd91e515f8_content_list.json +0 -0
- 2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/32229d74-3180-4588-abab-abdd91e515f8_model.json +0 -0
- 2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/32229d74-3180-4588-abab-abdd91e515f8_origin.pdf +3 -0
- 2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/full.md +534 -0
- 2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/images.zip +3 -0
- 2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/layout.json +0 -0
- 2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/652b218c-838d-4326-90a6-e3765a2e8500_content_list.json +0 -0
- 2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/652b218c-838d-4326-90a6-e3765a2e8500_model.json +0 -0
- 2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/652b218c-838d-4326-90a6-e3765a2e8500_origin.pdf +3 -0
- 2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/full.md +623 -0
- 2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/images.zip +3 -0
- 2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/layout.json +0 -0
- 2024/Enhancing Systematic Decompositional Natural Language Inference Using Informal Logic/3cfa5ccb-a424-45b8-a317-8d17b00e07fb_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -4401,3 +4401,65 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 4401 |
2024/Enhanced[[:space:]]Hallucination[[:space:]]Detection[[:space:]]in[[:space:]]Neural[[:space:]]Machine[[:space:]]Translation[[:space:]]through[[:space:]]Simple[[:space:]]Detector[[:space:]]Aggregation/66fab311-b886-4c07-95bb-d80eb201f364_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4402 |
2024/Enhancing[[:space:]]AI[[:space:]]Assisted[[:space:]]Writing[[:space:]]with[[:space:]]One-Shot[[:space:]]Implicit[[:space:]]Negative[[:space:]]Feedback/f1643fcf-1ad2-4c76-9f3e-daa5f17c296a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4403 |
2024/Enhancing[[:space:]]Advanced[[:space:]]Visual[[:space:]]Reasoning[[:space:]]Ability[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/9c4453d2-6f49-4482-a3f7-1968bc4490af_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4401 |
2024/Enhanced[[:space:]]Hallucination[[:space:]]Detection[[:space:]]in[[:space:]]Neural[[:space:]]Machine[[:space:]]Translation[[:space:]]through[[:space:]]Simple[[:space:]]Detector[[:space:]]Aggregation/66fab311-b886-4c07-95bb-d80eb201f364_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4402 |
2024/Enhancing[[:space:]]AI[[:space:]]Assisted[[:space:]]Writing[[:space:]]with[[:space:]]One-Shot[[:space:]]Implicit[[:space:]]Negative[[:space:]]Feedback/f1643fcf-1ad2-4c76-9f3e-daa5f17c296a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4403 |
2024/Enhancing[[:space:]]Advanced[[:space:]]Visual[[:space:]]Reasoning[[:space:]]Ability[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/9c4453d2-6f49-4482-a3f7-1968bc4490af_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4404 |
+
2024/Enhancing[[:space:]]Data[[:space:]]Quality[[:space:]]through[[:space:]]Simple[[:space:]]De-duplication_[[:space:]]Navigating[[:space:]]Responsible[[:space:]]Computational[[:space:]]Social[[:space:]]Science[[:space:]]Research/e548559c-1152-413b-b797-404f7c3fa853_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4405 |
+
2024/Enhancing[[:space:]]High-order[[:space:]]Interaction[[:space:]]Awareness[[:space:]]in[[:space:]]LLM-based[[:space:]]Recommender[[:space:]]Model/ecf46cfa-b0ec-4c23-8dc4-a2c4872b6b41_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4406 |
+
2024/Enhancing[[:space:]]Language[[:space:]]Model[[:space:]]Alignment_[[:space:]]A[[:space:]]Confidence-Based[[:space:]]Approach[[:space:]]to[[:space:]]Label[[:space:]]Smoothing/a5f9a87b-4cfa-43ae-9c52-c17f4ed4ad95_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4407 |
+
2024/Enhancing[[:space:]]Language[[:space:]]Model[[:space:]]Factuality[[:space:]]via[[:space:]]Activation-Based[[:space:]]Confidence[[:space:]]Calibration[[:space:]]and[[:space:]]Guided[[:space:]]Decoding/ed7d8476-0313-45c0-a699-d762f63216f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4408 |
+
2024/Enhancing[[:space:]]Legal[[:space:]]Case[[:space:]]Retrieval[[:space:]]via[[:space:]]Scaling[[:space:]]High-quality[[:space:]]Synthetic[[:space:]]Query-Candidate[[:space:]]Pairs/dc6ba159-ab58-455e-8219-7253c4806059_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4409 |
+
2024/Enhancing[[:space:]]Post-Hoc[[:space:]]Attributions[[:space:]]in[[:space:]]Long[[:space:]]Document[[:space:]]Comprehension[[:space:]]via[[:space:]]Coarse[[:space:]]Grained[[:space:]]Answer[[:space:]]Decomposition/dd6463d7-f062-4578-83e5-f6e41ccb00b3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4410 |
+
2024/Enhancing[[:space:]]Pre-Trained[[:space:]]Generative[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Question[[:space:]]Attended[[:space:]]Span[[:space:]]Extraction[[:space:]]on[[:space:]]Machine[[:space:]]Reading[[:space:]]Comprehension/32229d74-3180-4588-abab-abdd91e515f8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4411 |
+
2024/Enhancing[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Dense[[:space:]]Rewards[[:space:]]from[[:space:]]Language[[:space:]]Model[[:space:]]Critic/652b218c-838d-4326-90a6-e3765a2e8500_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4412 |
+
2024/Enhancing[[:space:]]Systematic[[:space:]]Decompositional[[:space:]]Natural[[:space:]]Language[[:space:]]Inference[[:space:]]Using[[:space:]]Informal[[:space:]]Logic/3cfa5ccb-a424-45b8-a317-8d17b00e07fb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4413 |
+
2024/Enhancing[[:space:]]Training[[:space:]]Data[[:space:]]Attribution[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Fitting[[:space:]]Error[[:space:]]Consideration/96b16818-cf75-4c30-a817-663b20a67f4a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4414 |
+
2024/Entity[[:space:]]Insertion[[:space:]]in[[:space:]]Multilingual[[:space:]]Linked[[:space:]]Corpora_[[:space:]]The[[:space:]]Case[[:space:]]of[[:space:]]Wikipedia/807affb9-6c00-4a86-abdb-13a80af1aa1a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4415 |
+
2024/Error[[:space:]]Analysis[[:space:]]of[[:space:]]Multilingual[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]Machine[[:space:]]Translation_[[:space:]]A[[:space:]]Case[[:space:]]Study[[:space:]]of[[:space:]]English-Amharic[[:space:]]Translation/7dc450f7-77b4-400c-bcfe-0ca5e976a22e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4416 |
+
2024/Estimating[[:space:]]Knowledge[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]Without[[:space:]]Generating[[:space:]]a[[:space:]]Single[[:space:]]Token/265a6f7e-c533-4f32-9b7d-07ddc44e0ed3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4417 |
+
2024/Evaluating[[:space:]]Character[[:space:]]Understanding[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Character[[:space:]]Profiling[[:space:]]from[[:space:]]Fictional[[:space:]]Works/15846caa-e850-4d38-9d38-ff54bc7fbd54_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4418 |
+
2024/Evaluating[[:space:]]Concurrent[[:space:]]Robustness[[:space:]]of[[:space:]]Language[[:space:]]Models[[:space:]]Across[[:space:]]Diverse[[:space:]]Challenge[[:space:]]Sets/5ff31e02-e775-4639-b8d7-fdaeec869ad2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4419 |
+
2024/Evaluating[[:space:]]D-MERIT[[:space:]]of[[:space:]]Partial-annotation[[:space:]]on[[:space:]]Information[[:space:]]Retrieval/18c38090-63b7-48a8-b1a4-042868d49025_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4420 |
+
2024/Evaluating[[:space:]]Diversity[[:space:]]in[[:space:]]Automatic[[:space:]]Poetry[[:space:]]Generation/0470321f-01e4-4dc5-be81-79d23e4e7f7e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4421 |
+
2024/Evaluating[[:space:]]LLMs[[:space:]]for[[:space:]]Targeted[[:space:]]Concept[[:space:]]Simplification[[:space:]]for[[:space:]]Domain-Specific[[:space:]]Texts/c2cb3e98-689f-4feb-a80d-686951afc9e8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4422 |
+
2024/Evaluating[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]along[[:space:]]Dimensions[[:space:]]of[[:space:]]Language[[:space:]]Variation_[[:space:]]A[[:space:]]Systematik[[:space:]]Invesdigatiom[[:space:]]uv[[:space:]]Cross-lingual[[:space:]]Generalization/dbceb000-ef9b-4f51-81f5-93113f305f2d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4423 |
+
2024/Evaluating[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]on[[:space:]]Time[[:space:]]Series[[:space:]]Feature[[:space:]]Understanding_[[:space:]]A[[:space:]]Comprehensive[[:space:]]Taxonomy[[:space:]]and[[:space:]]Benchmark/e2734dda-aece-4d56-9a44-ee9f47544859_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4424 |
+
2024/Evaluating[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Linguistic[[:space:]]Profiling/ade566e6-ef6e-4a3b-8e28-d5cc031378d8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4425 |
+
2024/Evaluating[[:space:]]Psychological[[:space:]]Safety[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/18da04cf-911b-43e0-8803-d47e3568aebb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4426 |
+
2024/Evaluating[[:space:]]Readability[[:space:]]and[[:space:]]Faithfulness[[:space:]]of[[:space:]]Concept-based[[:space:]]Explanations/e0dcc758-8204-48ce-b241-38453a8d1524_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4427 |
+
2024/Evaluating[[:space:]]Short-Term[[:space:]]Temporal[[:space:]]Fluctuations[[:space:]]of[[:space:]]Social[[:space:]]Biases[[:space:]]in[[:space:]]Social[[:space:]]Media[[:space:]]Data[[:space:]]and[[:space:]]Masked[[:space:]]Language[[:space:]]Models/59461e35-da19-45df-af8f-340837369c10_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4428 |
+
2024/Evaluating[[:space:]]n-Gram[[:space:]]Novelty[[:space:]]of[[:space:]]Language[[:space:]]Models[[:space:]]Using[[:space:]]Rusty-DAWG/45a8ffb5-e762-4ea4-9c9d-65fc7190d660_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4429 |
+
2024/Evaluating[[:space:]]the[[:space:]]Effectiveness[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]Establishing[[:space:]]Conversational[[:space:]]Grounding/01cbb1a7-7e98-4de1-8cbe-afa0aadb461e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4430 |
+
2024/Evaluating[[:space:]]the[[:space:]]Instruction-Following[[:space:]]Robustness[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]to[[:space:]]Prompt[[:space:]]Injection/72b49dff-583b-4e20-bc75-3bfa0ad79135_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4431 |
+
2024/Event[[:space:]]Causality[[:space:]]Identification[[:space:]]with[[:space:]]Synthetic[[:space:]]Control/1193dc27-4223-4ab2-a4e6-1357bda27cfc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4432 |
+
2024/Evidence-Focused[[:space:]]Fact[[:space:]]Summarization[[:space:]]for[[:space:]]Knowledge-Augmented[[:space:]]Zero-Shot[[:space:]]Question[[:space:]]Answering/0bf02f8d-e115-47ae-93d6-c1c27349511d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4433 |
+
2024/Experimental[[:space:]]Contexts[[:space:]]Can[[:space:]]Facilitate[[:space:]]Robust[[:space:]]Semantic[[:space:]]Property[[:space:]]Inference[[:space:]]in[[:space:]]Language[[:space:]]Models,[[:space:]]but[[:space:]]Inconsistently/ab6ee31e-855c-40ec-9468-5ed7f468234c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4434 |
+
2024/Explaining[[:space:]]and[[:space:]]Improving[[:space:]]Contrastive[[:space:]]Decoding[[:space:]]by[[:space:]]Extrapolating[[:space:]]the[[:space:]]Probabilities[[:space:]]of[[:space:]]a[[:space:]]Huge[[:space:]]and[[:space:]]Hypothetical[[:space:]]LM/c7c8cf24-0b8b-4c7a-9c0d-7503ffb23639_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4435 |
+
2024/Explicit[[:space:]]Memory[[:space:]]Learning[[:space:]]with[[:space:]]Expectation[[:space:]]Maximization/1c473978-15dd-4c04-9660-78f37b232682_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4436 |
+
2024/Explicit,[[:space:]]Implicit,[[:space:]]and[[:space:]]Scattered_[[:space:]]Revisiting[[:space:]]Event[[:space:]]Extraction[[:space:]]to[[:space:]]Capture[[:space:]]Complex[[:space:]]Arguments/8c93483c-dbd7-4af0-b67c-68d3f8f8928c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4437 |
+
2024/Exploring[[:space:]]Intra[[:space:]]and[[:space:]]Inter-language[[:space:]]Consistency[[:space:]]in[[:space:]]Embeddings[[:space:]]with[[:space:]]ICA/d2fac5ef-80b1-4f4d-a550-180653e91428_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4438 |
+
2024/Exploring[[:space:]]Intrinsic[[:space:]]Language-specific[[:space:]]Subspaces[[:space:]]in[[:space:]]Fine-tuning[[:space:]]Multilingual[[:space:]]Neural[[:space:]]Machine[[:space:]]Translation/2422cd15-dd9b-4a7e-a452-42bf7f6497bb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4439 |
+
2024/Exploring[[:space:]]Nested[[:space:]]Named[[:space:]]Entity[[:space:]]Recognition[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]Methods,[[:space:]]Challenges,[[:space:]]and[[:space:]]Insights/43d03e71-b415-4e04-8fe5-3e78311cbc71_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4440 |
+
2024/Exploring[[:space:]]Space[[:space:]]Efficiency[[:space:]]in[[:space:]]a[[:space:]]Tree-based[[:space:]]Linear[[:space:]]Model[[:space:]]for[[:space:]]Extreme[[:space:]]Multi-label[[:space:]]Classification/9dc8ebed-4bfe-4f90-9f20-affc39a6f387_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4441 |
+
2024/Exploring[[:space:]]Union[[:space:]]and[[:space:]]Intersection[[:space:]]of[[:space:]]Visual[[:space:]]Regions[[:space:]]for[[:space:]]Generating[[:space:]]Questions,[[:space:]]Answers,[[:space:]]and[[:space:]]Distractors/3e37f07a-8670-43d5-a079-dd6860be7ad8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4442 |
+
2024/Exploring[[:space:]]the[[:space:]]Compositional[[:space:]]Deficiency[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]Mathematical[[:space:]]Reasoning[[:space:]]Through[[:space:]]Trap[[:space:]]Problems/141c6fa9-1829-47d5-8006-04d44e999b1b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4443 |
+
2024/Exploring[[:space:]]the[[:space:]]Learning[[:space:]]Capabilities[[:space:]]of[[:space:]]Language[[:space:]]Models[[:space:]]using[[:space:]]LEVERWORLDS/f5ba36bc-d03c-47af-b4d1-6c4edbc454a1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4444 |
+
2024/Exploring[[:space:]]the[[:space:]]Practicality[[:space:]]of[[:space:]]Generative[[:space:]]Retrieval[[:space:]]on[[:space:]]Dynamic[[:space:]]Corpora/fa30f412-5d79-4a52-be4c-b47d1a875749_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4445 |
+
2024/Exploring[[:space:]]the[[:space:]]Role[[:space:]]of[[:space:]]Reasoning[[:space:]]Structures[[:space:]]for[[:space:]]Constructing[[:space:]]Proofs[[:space:]]in[[:space:]]Multi-Step[[:space:]]Natural[[:space:]]Language[[:space:]]Reasoning[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/ae21ac6f-acfe-4e6d-9f1f-c9fd547b4a35_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4446 |
+
2024/Extending[[:space:]]Context[[:space:]]Window[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]from[[:space:]]a[[:space:]]Distributional[[:space:]]Perspective/5b1f287e-6efc-43e4-b765-d8e882089083_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4447 |
+
2024/External[[:space:]]Knowledge-Driven[[:space:]]Argument[[:space:]]Mining_[[:space:]]Leveraging[[:space:]]Attention-Enhanced[[:space:]]Multi-Network[[:space:]]Models/89d9f9c9-df73-4118-bdfe-2057865a8607_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4448 |
+
2024/Extract,[[:space:]]Define,[[:space:]]Canonicalize_[[:space:]]An[[:space:]]LLM-based[[:space:]]Framework[[:space:]]for[[:space:]]Knowledge[[:space:]]Graph[[:space:]]Construction/eb133e3a-fed0-4724-89af-091530da6bc2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4449 |
+
2024/Extracting[[:space:]]Prompts[[:space:]]by[[:space:]]Inverting[[:space:]]LLM[[:space:]]Outputs/2343fe6e-c688-42ef-aa77-d4aa79ac94a7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4450 |
+
2024/Eyes[[:space:]]Donβt[[:space:]]Lie_[[:space:]]Subjective[[:space:]]Hate[[:space:]]Annotation[[:space:]]and[[:space:]]Detection[[:space:]]with[[:space:]]Gaze/1d91412c-4fa4-4185-8378-8f57cc2b7d29_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4451 |
+
2024/F2RL_[[:space:]]Factuality[[:space:]]and[[:space:]]Faithfulness[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]Framework[[:space:]]for[[:space:]]Claim-Guided[[:space:]]Evidence-Supported[[:space:]]Counterspeech[[:space:]]Generation/4363e8d2-3208-4b14-ae1c-cb3abd49a3c3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4452 |
+
2024/FAC2E_[[:space:]]Better[[:space:]]Understanding[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Capabilities[[:space:]]by[[:space:]]Dissociating[[:space:]]Language[[:space:]]and[[:space:]]Cognition/8f933c48-aa30-4c52-a917-9e44822dcbed_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4453 |
+
2024/FAME_[[:space:]]Towards[[:space:]]Factual[[:space:]]Multi-Task[[:space:]]Model[[:space:]]Editing/a6231ef2-7d42-47ff-a91a-12ed79f4cbb1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4454 |
+
2024/FEDKIM_[[:space:]]Adaptive[[:space:]]Federated[[:space:]]Knowledge[[:space:]]Injection[[:space:]]into[[:space:]]Medical[[:space:]]Foundation[[:space:]]Models/ab87dd0f-9f13-44e3-87b1-f85a99d32548_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4455 |
+
2024/FFN-SkipLLM_[[:space:]]A[[:space:]]Hidden[[:space:]]Gem[[:space:]]for[[:space:]]Autoregressive[[:space:]]Decoding[[:space:]]with[[:space:]]Adaptive[[:space:]]Feed[[:space:]]Forward[[:space:]]Skipping/0c4043a5-71b2-42bc-8218-9d82eee3b2d8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4456 |
+
2024/FIRST_[[:space:]]Faster[[:space:]]Improved[[:space:]]Listwise[[:space:]]Reranking[[:space:]]with[[:space:]]Single[[:space:]]Token[[:space:]]Decoding/5f915591-2f9a-4a2a-89dd-4828545146b9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4457 |
+
2024/FIRST_[[:space:]]Teach[[:space:]]A[[:space:]]Reliable[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Through[[:space:]]Efficient[[:space:]]Trustworthy[[:space:]]Distillation/f155303d-b860-464a-af04-e8fdadd57020_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4458 |
+
2024/FIZZ_[[:space:]]Factual[[:space:]]Inconsistency[[:space:]]Detection[[:space:]]by[[:space:]]Zoom-in[[:space:]]Summary[[:space:]]and[[:space:]]Zoom-out[[:space:]]Document/e05bcce8-6cbf-4fa3-a948-57bde67cae8f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4459 |
+
2024/FLIRT_[[:space:]]Feedback[[:space:]]Loop[[:space:]]In-context[[:space:]]Red[[:space:]]Teaming/10e4d037-3864-4516-9f91-9bb3136ae98e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4460 |
+
2024/FOLIO_[[:space:]]Natural[[:space:]]Language[[:space:]]Reasoning[[:space:]]with[[:space:]]First-Order[[:space:]]Logic/2bfede34-a8a4-4033-bb3c-2229f2a363ed_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4461 |
+
2024/FOOL[[:space:]]ME[[:space:]]IF[[:space:]]YOU[[:space:]]CAN![[:space:]]An[[:space:]]Adversarial[[:space:]]Dataset[[:space:]]to[[:space:]]Investigate[[:space:]]the[[:space:]]Robustness[[:space:]]of[[:space:]]LMs[[:space:]]in[[:space:]]Word[[:space:]]Sense[[:space:]]Disambiguation/88145c27-c754-4b8b-a293-8d1fa296272c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4462 |
+
2024/FRoG_[[:space:]]Evaluating[[:space:]]Fuzzy[[:space:]]Reasoning[[:space:]]of[[:space:]]Generalized[[:space:]]Quantifiers[[:space:]]in[[:space:]]LLMs/673684a0-29a7-4bcb-83c5-b5f54beb0513_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4463 |
+
2024/Factuality[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]A[[:space:]]Survey/5966e9c3-d456-4370-b820-b27e7c7acf15_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4464 |
+
2024/FairFlow_[[:space:]]Mitigating[[:space:]]Dataset[[:space:]]Biases[[:space:]]through[[:space:]]Undecided[[:space:]]Learning[[:space:]]for[[:space:]]Natural[[:space:]]Language[[:space:]]Understanding/eb214dba-d827-43d4-825c-ee36dfc78e4d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4465 |
+
2024/Fairer[[:space:]]Preferences[[:space:]]Elicit[[:space:]]Improved[[:space:]]Human-Aligned[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Judgments/0f4380f4-940d-47f6-93d2-de8dc29bea1b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/e548559c-1152-413b-b797-404f7c3fa853_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/e548559c-1152-413b-b797-404f7c3fa853_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/e548559c-1152-413b-b797-404f7c3fa853_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8fd8bdb62ae42193b71994372909408a6c6d5f10edf4d471aeb51ecad1e3e02a
|
| 3 |
+
size 1357173
|
2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/full.md
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enhancing Data Quality through Simple De-duplication: Navigating Responsible Computational Social Science Research
|
| 2 |
+
|
| 3 |
+
Yida Mu Mali Jin Xingyi Song Nikolaos Aletras
|
| 4 |
+
|
| 5 |
+
School of Computer Science, The University of Sheffield
|
| 6 |
+
|
| 7 |
+
{y.mu, m.jin, x song, n.aletras}@sheffield.ac.uk
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Research in natural language processing (NLP) for Computational Social Science (CSS) heavily relies on data from social media platforms. This data plays a crucial role in the development of models for analysing socio-linguistic phenomena within online communities. In this work, we conduct an in-depth examination of 20 datasets extensively used in NLP for CSS to comprehensively examine data quality. Our analysis reveals that social media datasets exhibit varying levels of data duplication. Consequently, this gives rise to challenges like label inconsistencies and data leakage, compromising the reliability of models. Our findings also suggest that data duplication has an impact on the current claims of state-of-the-art performance, potentially leading to an overestimation of model effectiveness in real-world scenarios. Finally, we propose new protocols and best practices for improving dataset development from social media data and its usage.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Research in natural language processing (NLP) for Computational Social Science (CSS) aims to analyze social behavior and sociolinguistic phenomena with computational methods on a large scale (Plank and Hovy, 2015; Guntuku et al., 2019). This relies upon using vast amounts of user-generated content in social media such as Twitter/X and Weibo (Edelmann et al., 2020).
|
| 16 |
+
|
| 17 |
+
Social media data exhibits distinctive characteristics such as rapid and continual topic evolution (Saha and Sindhwani, 2012; Yuan et al., 2013). Prior research has focused on introducing and developing novel resources including new tasks and datasets (Founta et al., 2018; Lazer et al., 2020; Hofman et al., 2021). Social media posts often contain a significant amount of near-duplicate or even identical content. For example, during social emergencies (e.g., COVID-19 pandemic), users
|
| 18 |
+
|
| 19 |
+
tend to repeatedly post about the same topics (e.g., COVID-19 vaccination), resulting in a proliferation of near-duplicate content over a very short period of time (Ferrara, 2020; Zhang et al., 2022b). Furthermore, the presence of social bots (e.g., automatically generated posts from third-party applications) amplifies the rapid generation of near-duplicate content on these platforms, e.g., in political campaigns (Bessi and Ferrara, 2016; Stella et al., 2018).
|
| 20 |
+
|
| 21 |
+
Data quality is paramount for reliable and effective model performance. It includes various dimensions such as accuracy, completeness and consistency (Vidgen and Derczynski, 2020; Budach et al., 2022). Ensuring high data quality usually involves careful data management and processing such as data validation and cleaning (Denny and Spirling, 2018; Breck et al., 2019; GrΓΆger, 2021; Li et al., 2021a). Previous works have examined and deduplication of samples in image datasets (Alam et al., 2017), generic real-word datasets (e.g., movie, restaurant) (Li et al., 2021a) and language modeling datasets (e.g., Wikipedia) (Lee et al., 2022). However, the quality of existing CSS datasets in NLP has been under-explored.
|
| 22 |
+
|
| 23 |
+
The goal of this paper is to conduct a large scale meta-analysis of current NLP for CSS datasets by considering the potential noise caused by duplicated text samples. To this end, we perform an in-depth re-examination of 20 social media datasets across various tasks such as offensive language detection and misinformation detection.<sup>1</sup> Our main contributions are as follows:
|
| 24 |
+
|
| 25 |
+
- Our systematic analysis shows that most of the examined social media datasets contain noise (e.g., duplicate and near-duplicate samples) despite the data cleaning process claimed by the developers (see examples in Table 1).
|
| 26 |
+
- We explore the impact of data duplication
|
| 27 |
+
|
| 28 |
+
<table><tr><td>Tweet_ID</td><td>Samples</td><td>Label</td><td>Consequence</td></tr><tr><td>129839*</td><td>@USER @USER donald trump's lessons for republicans: consequences for lying...</td><td>Neutral</td><td>Inconsistent</td></tr><tr><td>129840*</td><td>@USER @USER donald trump's lessons for republicans: consequences for lying...</td><td>Against</td><td>Labeling</td></tr><tr><td>132605*</td><td>@USER FIGHT AGAINST TYRANNY!!! The coronavirus vaccine is a NEW technology RNA vaccine. It LITERALLY changes your DNA!!! [Emojis]</td><td>Anti. Vaxx</td><td rowspan="2">Label Leakage</td></tr><tr><td>132607*</td><td>@USER FIGHT AGAINST TYRANNY!!! The coronavirus vaccine is a NEW technology RNA vaccine. It LITERALLY changes your DNA!!! [Emojis]</td><td>Anti. Vaxx</td></tr><tr><td>131120* (Dupli.) β </td><td>@USER trump</td><td>Neutral</td><td>Label Leakage</td></tr><tr><td>407156*</td><td>r.i.p to the driver who died with paul walker that no one cares about because he wasn't famous OMG:(</td><td>True Rumor</td><td rowspan="2">Label Leakage</td></tr><tr><td>407164*</td><td>r.i.p to the driver that died with paul walker that no one cares about because he wasn't famous.</td><td>True Rumor</td></tr></table>
|
| 29 |
+
|
| 30 |
+
Table 1: Examples of duplicate or near-duplicate samples in real-world social datasets (Ma et al., 2017; Cotfas et al., 2021; Kawintiranon and Singh, 2021) as well as their potential consequence. $\dagger$ denotes duplicate tweet ids in the dataset.
|
| 31 |
+
|
| 32 |
+
on model performance in various CSS tasks. We observe an overestimation of model performance in cases where duplicate or near-duplicate samples remain unfiltered. We find that the presence of duplicate samples results in label inconsistencies and data leakage, potentially causing unreliable model predictions.
|
| 33 |
+
|
| 34 |
+
- We propose a new data pre-processing protocol for a more responsible and effective use of social media resources and advocate for a 'minor revision' of the existing author checklist from major CSS communities.
|
| 35 |
+
|
| 36 |
+
Note that this study does not aim to criticize dataset creators. Instead, it acknowledges the crucial role these datasets play in advancing the field of CSS and seeks to provide constructive recommendations for improving responsible research and practices.
|
| 37 |
+
|
| 38 |
+
# 2 Related Work
|
| 39 |
+
|
| 40 |
+
# 2.1 Data Quality and Model Performance
|
| 41 |
+
|
| 42 |
+
Data quality is paramount in NLP tasks as the performance and reliability of models heavily depend on the quality of the training data. Several factors contribute to data quality such as accuracy, persistence, completeness, consistency and relevance (Zubiaga, 2018; Assenmacher et al., 2020; Koch et al., 2021; Budach et al., 2022). Budach et al. (2022) investigated the impact of different data quality dimensions on the performance of various machine learning algorithms covering classification, regression and clustering tasks. Similarly, Barry et al. (2023) explored the relationship between the quality of the training data and the fairness of model outputs on image classification
|
| 43 |
+
|
| 44 |
+
across a range of algorithms. Furthermore, Li et al. (2021a) examined the impact of improving data quality on classification algorithm performance, resulting in the CleanML benchmark. Their work highlighted the importance of data cleaning methods such as addressing missing values and correcting mislabels in enhancing classifier predictions.
|
| 45 |
+
|
| 46 |
+
# 2.2 Data Preprocessing
|
| 47 |
+
|
| 48 |
+
Ensuring data quality in NLP often involves rigorous data preprocessing. Dealing with social media datasets often comes with unique challenges due to their unstructured nature and noisy text (Symeonidis et al., 2018).
|
| 49 |
+
|
| 50 |
+
The majority of CSS research follows a standard pre-processing pipeline for social media content (Nguyen et al., 2020; Antypas et al., 2023). Social media text often contains user mentions, URLs, hashtags, emojis, and other non-standard symbols. Pre-processing steps typically involve removing or replacing these tokens with generic placeholders. Additionally, social media language is informal, featuring slang, abbreviations, and misspellings, necessitating text normalization techniques such as lowercase conversion and spelling correction (Baldwin and Li, 2015; Naseem et al., 2021).
|
| 51 |
+
|
| 52 |
+
Previous studies have investigated the impact of various pre-processing strategies on model performance in different CSS downstream tasks such as sentiment analysis (Krouska et al., 2016; Jianqiang and Xiaolin, 2017; Mahilraj et al., 2020) and opinion mining (Dos Santos and Ladeira, 2014; Gull et al., 2016). For example, Symeonidis et al. (2018) examined up to 16 different pre-processing strategies for Twitter data and found that techniques such as lemmatization and removing numbers in
|
| 53 |
+
|
| 54 |
+
the text can enhance the predictive performance of transformer-based models in sentiment analysis.
|
| 55 |
+
|
| 56 |
+
# 2.3 Impact of Data Duplication
|
| 57 |
+
|
| 58 |
+
Existing language modeling datasets contain many duplicate and near-duplicate samples due to overlapping sources in the training corpus, which has emerged as a significant concern in recent research. Studies have demonstrated that large language models are vulnerable to privacy attacks due to the presence of duplicate sequences in commonly used training datasets (Kandpal et al., 2022). These sequences, when present multiple times in the training data, are regenerated at much higher frequencies by trained models, posing privacy risks. Furthermore, data duplication in language modeling leads to verbatim text duplication in model outputs (Lee et al., 2022). Efforts to mitigate this issue have focused on deduplicating training datasets, resulting in models emitting memorized text less frequently and requiring fewer training steps for comparable or improved performance (Lee et al., 2022).
|
| 59 |
+
|
| 60 |
+
In this study, we focus on examining and mitigating the potential issue of noise data (i.e., duplicate data) within existing CSS datasets, which has often been overlooked. To our knowledge, a thorough re-evaluation of the quality of social media datasets has not been extensively conducted.
|
| 61 |
+
|
| 62 |
+
# 3 Tasks & Datasets
|
| 63 |
+
|
| 64 |
+
We evaluate a comprehensive collection of datasets that adequately cover a broad range of prevalent tasks in CSS. Based on recent publications in NLP and CSS venues (e.g., *ACL and ICWSM), we choose datasets from four main CSS tasks following previous work (Barbieri et al., 2020; Ziems et al., 2023; Antypas et al., 2023; Mu et al., 2024): (i) Offensive Language Detection, (ii) Misinformation Detection, (iii) Speech Act Detection & Sentiment Analysis, and (iv) Stance Detection.
|
| 65 |
+
|
| 66 |
+
# 3.1 Offensive Language Detection
|
| 67 |
+
|
| 68 |
+
Offensive language detection refers to the process of automatically identifying content that contains hate speech, harassment, profanity, or other forms of inappropriate language towards individuals, groups, or events (Chen et al., 2012; Davidson et al., 2017). It is particularly relevant for content moderation in online platforms and social media (Nobata et al., 2016).
|
| 69 |
+
|
| 70 |
+
For this task, we opt for the following datasets: WASEEM (Waseem and Hovy, 2016), TBO (Zampieri et al., 2023), OLID (Davidson et al., 2017), FOUNTA (Founta et al., 2018) and HateEval'19 (Garibo i Orts, 2019).
|
| 71 |
+
|
| 72 |
+
# 3.2 Minformation Detection
|
| 73 |
+
|
| 74 |
+
Misinformation detection in social media involves the use of algorithms to analyze and identify false or misleading information (e.g., fake news and false rumors) generated or diffused by end users (Shu et al., 2017; Zubiaga et al., 2018). These approaches typically rely on linguistic patterns (e.g., hand-craft features), source credibility (e.g., unreliable news sources), and contextual information (e.g., propagation network) to differentiate between true information and misinformation (Rashkin et al., 2017; Tian et al., 2022).
|
| 75 |
+
|
| 76 |
+
We conduct evaluation on five popular datasets covering different languages and social media platforms: Twitter 15, Twitter 16 (Ma et al., 2017), PHEME (Zubiaga et al., 2016), Weibo 16 (Ma et al., 2016), Weibo 20 (Rao et al., 2021).
|
| 77 |
+
|
| 78 |
+
# 3.3 Speech Act Detection & Sentiment Analysis
|
| 79 |
+
|
| 80 |
+
Speech act detection and sentiment analysis deal with the detection and analysis of actions (e.g., requesting and complaining) and affecting content within texts. In recent years, there has been growing attention to automatically identifying speech acts and sentiment analysis in social media (Preotiuc-Pietro et al., 2019; Farha et al., 2022; Zhang et al., 2022a). These two tasks are closely related as detecting one usually involves the other (Saha et al., 2021).
|
| 81 |
+
|
| 82 |
+
We choose the following speech acts and sentiment analysis datasets: Complaint (Preotuc-Pietro et al., 2019), SemEval-2022 Task 6 Sarcasm (Farha et al., 2022), Bragging (Jin et al., 2022), Parody (Maronikolakis et al., 2020) and SemEval-2017 Task 4 Sentiment (Rosenthal et al., 2019).
|
| 83 |
+
|
| 84 |
+
# 3.4 Stance Detection
|
| 85 |
+
|
| 86 |
+
Stance detection involves using computational approaches to automatically identify and classify a person's or a group's perspective or attitude towards a specific target, such as events (e.g., COVID-19 vaccination) or individuals (e.g., politicians) (KΓΌΓ§ΓΌk and Can, 2020; Mu et al., 2023b).
|
| 87 |
+
|
| 88 |
+
<table><tr><td>Domain / Dataset</td><td>Source / Language</td><td>Mean Tokens</td><td>Self-claimed Dedduplication</td><td># of Post</td><td># of Distinct / Ratio%</td><td># of Distinct after Pre-proc. / Ratio %</td><td># of Distinct after Removing Near-Dupli. / Ratio%</td></tr><tr><td colspan="8">Offensive Language Analysis</td></tr><tr><td>WASEEM</td><td>Twitter/En</td><td>15</td><td>X</td><td>16,909</td><td>16,851 / 99.7%</td><td>16,568 / 98.0%</td><td>13,364 / 79.0%</td></tr><tr><td>TBO</td><td>Twitter/En</td><td>17</td><td>β</td><td>4,000</td><td>3,998 / 99.9%</td><td>3,998 / 99.9%</td><td>3,946 / 98.7%</td></tr><tr><td>OLID</td><td>Twitter/En</td><td>22</td><td>X</td><td>14,100</td><td>14,052 / 99.7%</td><td>14,031 / 99.5%</td><td>1,1509 / 81.6%</td></tr><tr><td>FOUNTA</td><td>Twitter/En</td><td>17</td><td>X</td><td>99,996</td><td>91,940 / 91.9%</td><td>87,291 / 87.3%</td><td>88,263 / 81.5%</td></tr><tr><td>HatEval'19</td><td>Twitter/En</td><td>22</td><td>X</td><td>19,600</td><td>19,342 / 98.7%</td><td>19,267 / 98.3%</td><td>17,851 / 91.0%</td></tr><tr><td colspan="8">Misinformation Detection</td></tr><tr><td>Twitter 15</td><td>Twitter/En</td><td>15</td><td>X</td><td>1,490</td><td>1,428 / 95.8%</td><td>1,428 / 95.8%</td><td>1,345 / 90.2%</td></tr><tr><td>Twitter 16</td><td>Twitter/En</td><td>15</td><td>X</td><td>818</td><td>761 / 93.0%</td><td>761 / 93.0%</td><td>740 / 90.5%</td></tr><tr><td>PHEME</td><td>Twitter/En</td><td>16</td><td>X</td><td>5,802</td><td>5,789 / 99.8%</td><td>5,694 / 98.1%</td><td>5,236 / 90.2%</td></tr><tr><td>Weibo</td><td>Weibo/Zh</td><td>99</td><td>X</td><td>4,664</td><td>4,516 / 96.8%</td><td>4,501 / 96.5%</td><td>3,322 / 71.2%</td></tr><tr><td>STANKER</td><td>Weibo/Zh</td><td>71</td><td>X</td><td>6,068</td><td>6,040 / 99.5%</td><td>6,006 / 99.0%</td><td>4,703 77.5%</td></tr><tr><td colspan="8">Speech Act & Sentiment Analysis</td></tr><tr><td>Complaint</td><td>Twitter/En</td><td>15</td><td>β</td><td>3,449</td><td>3,449 / 100.0%</td><td>3,408 / 98.8%</td><td>2,846 / 82.5%</td></tr><tr><td>Sarcasm</td><td>Twitter/En</td><td>18</td><td>X</td><td>4,868</td><td>4,851 / 99.7%</td><td>4,849 / 99.6%</td><td>4,442 / 91.2%</td></tr><tr><td>Bragging</td><td>Twitter/En</td><td>22</td><td>X</td><td>6,696</td><td>6,643 / 99.2%</td><td>6,636 / 99.1%</td><td>5,979 / 89.2%</td></tr><tr><td>Parody</td><td>Twitter/En</td><td>29</td><td>X</td><td>46,622</td><td>46,587 / 99.9%</td><td>46,024 / 98.7%</td><td>43,591 / 93.5%</td></tr><tr><td>Sentiment</td><td>Twitter/En</td><td>18</td><td>X</td><td>59,899</td><td>59,870 / 99.9%</td><td>59,836 / 99.9%</td><td>58,536 / 97.7%</td></tr><tr><td colspan="8">Stance Detection</td></tr><tr><td>CovidVaxx</td><td>Twitter/En</td><td>25</td><td>X</td><td>2,792</td><td>2,787 / 99.8%</td><td>2,740 / 98.1%</td><td>2,567 / 91.9%</td></tr><tr><td>RumorEval</td><td>Twitter/En</td><td>33</td><td>X</td><td>5,568</td><td>5,467 / 98.2%</td><td>5,467 / 98.2%</td><td>4,284 / 76.9%</td></tr><tr><td>US-Election</td><td>Twitter/En</td><td>25</td><td>β</td><td>2,500</td><td>2,498 / 99.9%</td><td>2,498 / 99.9%</td><td>2,397 / 95.9%</td></tr><tr><td>P-Stance</td><td>Twitter/En</td><td>30</td><td>β</td><td>21,574</td><td>21,571 / 99.9%</td><td>21,571 / 99.9%</td><td>21,551 / 99.8%</td></tr><tr><td>SemEval'16</td><td>Twitter/En</td><td>17</td><td>β</td><td>4,063</td><td>4,063 / 100.0%</td><td>4,048 / 99.6%</td><td>3,926 / 96.6%</td></tr></table>
|
| 89 |
+
|
| 90 |
+
Table 2: Dataset Specifications. Cells in light grey indicate no or minor reduction (i.e., less than $0.1\%$ ) from duplicate samples. Note that some social media datasets have been pre-processed (e.g., by replacing @USER and URL with special tokens) before being publicly available such as Twitter 15 and Twitter 16. This results in the same values for # of Distinct and # of Distinct Posts after Pre-proc..
|
| 91 |
+
|
| 92 |
+
We choose five datasets for the stance detection task including COVID-19 Vaccine Stance (Cotfas et al., 2021), SemEval-2019 Task 7 Rumor Stance (Gorrell et al., 2019), US-Election (Kawintiranon and Singh, 2021), P-Stance (Li et al., 2021b), and Semeval-2016 Task 6 (Mohammad et al., 2016).
|
| 93 |
+
|
| 94 |
+
# 3.5 Criteria for Dataset Selection
|
| 95 |
+
|
| 96 |
+
For each domain, we select five representative datasets based on criteria that include: (i) popularity, as indicated by citation counts; (ii) shared tasks from SemEval $^2$ and (iii) newly developed datasets (see Table 2 for tasks and related datasets).
|
| 97 |
+
|
| 98 |
+
For example, WASEEM (Waseem and Hovy, 2016) is one of the most popular and earliest dataset for studying online hate speech. Similarly, Twitter 15 & 16 (Ma et al., 2017) and PHEME (Zubiaga et al., 2016) have been widely used in recent work on computational rumor detection, as shown in (Mu et al., 2023a). Moreover, we consider SemEval datasets as they are generally of high interest to the NLP/CSS community. These shared tasks often re
|
| 99 |
+
|
| 100 |
+
lease leaderboards for ranking participants, underscoring the importance of using a clean dataset. We also use some newly developed datasets that cover specific linguistic phenomena, such as Bragging (Jin et al., 2022), which is related to computational pragmatics.
|
| 101 |
+
|
| 102 |
+
# 4 Examining Dataset Quality
|
| 103 |
+
|
| 104 |
+
We focus on examining duplicate or near-duplicate samples in datasets to assess data quality.
|
| 105 |
+
|
| 106 |
+
# 4.1 Dataset Specifications
|
| 107 |
+
|
| 108 |
+
To assess the duplication and near-duplication quantity, we report the following specifications:
|
| 109 |
+
|
| 110 |
+
- Self-claimed dedduplication. We report this feature by manually reviewing the source paper of the dataset. The purpose of this is to understand whether the original authors have performed data preprocessing and how data has been preprocessed. The label $\checkmark$ indicates that the developers have clearly mentioned their implementation of deduplicating in their datasets.
|
| 111 |
+
- Number of posts in the datasets. We present
|
| 112 |
+
|
| 113 |
+
the number of samples in the original datasets which were obtained either from authors or through the links provided in source papers.3
|
| 114 |
+
|
| 115 |
+
- Number of distinct posts. We display the number of unique posts in the original datasets. In this step, we only filter out samples that contain the same content.
|
| 116 |
+
- Number of distinct posts after removing duplicates. We present the number of distinct posts after preprocessing, i.e., replacing @USER and URL tokens with unified tokens.
|
| 117 |
+
- Number of distinct posts after removing near-duplicates. We further employ the Levenshtein distance (Levenshtein et al., 1966) to calculate the similarity between each sample and filter out near-duplicate samples after replacing @USER and URL tokens (threshold = 20). Note that this set of data excludes both duplicate and near-duplicate samples.
|
| 118 |
+
|
| 119 |
+
# 4.2 Results and Discussion
|
| 120 |
+
|
| 121 |
+
Table 2 presents the above features as well as basic information including source platforms, language and number of average tokens (word and character level for English and Chinese respectively). Generally, we observe that most existing social media datasets (18 out of 20 in total) contain duplicate samples. Replacing special tokens reveals additional duplicate samples in the majority of the datasets (17 out of 20 in total). Furthermore, we notice that datasets with high duplicate rates are usually developed through a keyword-based sampling method.
|
| 122 |
+
|
| 123 |
+
Additionally, we note that only a small fraction of papers claim that they have performed a dedduplication process, e.g., TBO (Zampieri et al., 2023) and Complaint (Preotciuc-Pietro et al., 2019) (see column 4). This suggests that many developers of social media datasets tend to neglect the data dedduplication process. In addition to duplicated samples, we also observe a substantial number of near-duplicate samples in each dataset (see the last column).
|
| 124 |
+
|
| 125 |
+
# 5 Impact of Duplicate and Near-duplicate Samples
|
| 126 |
+
|
| 127 |
+
We conduct comparative experiments regarding three potential issues (data leakage, model rank-
|
| 128 |
+
|
| 129 |
+
ings and inconsistent labels) on the selected social media datasets to verify the impact of those duplicate and near-duplicate posts on classification performance.
|
| 130 |
+
|
| 131 |
+
# 5.1 Data Leakage
|
| 132 |
+
|
| 133 |
+
Data leakage occurs because the model is evaluated on data it has already seen during training. When test data overlaps with training data (e.g., the dataset contains duplicates), the performance of the model is likely to be overestimated. To investigate the impact of data leakage on model performance, we compare the predictive results within a dataset before and after dedduplication.
|
| 134 |
+
|
| 135 |
+
We use BERTweet (Nguyen et al., 2020) for all English datasets and Bert-base-Chinese (Devlin et al., 2019) for two Chinese datasets. For all datasets, we first replace user mentions and URLs with special tokens. Then we split each dataset into a training $(80\%)$ (Train Set Original) and a test set $(20\%)$ . We construct Train Set w/o Duplicates by removing all posts in the training set that are identical to those in the test set. Similarly, we build Train Set w/o Near-duplicate using the same approach, removing near-duplicate posts. This dedduplication process aims to prevent label leakage during model training. It is important to note that the test set remains unchanged for fair comparison. Detailed experimental setup is presented in Appendix A.
|
| 136 |
+
|
| 137 |
+
With the widespread use of large language models (LLMs), we aim to compare their predictive results with traditional pre-trained models that require training data (training on duplicates potentially leads to data leakage). To facilitate this, we employ the two most recent LLMs, GPT-4o and LLaMA 3-8B-Instruct for zero-shot classification. For LLMs, we use the same test set as for BERT-style models. Note that we only evaluate LLMs on the task of Complaint, Bragging, Sarcasm, CovidVaxx and US-Election since the sizes of other datasets are too large (see Table 2). Example prompts are provided in Appendix D.
|
| 138 |
+
|
| 139 |
+
# 5.2 Model Rankings
|
| 140 |
+
|
| 141 |
+
The prevalence of duplicates and near-duplicates in these datasets prompts us to investigate the consistency of model rankings before and after dedduplication. Given the extensive workload of reproducing
|
| 142 |
+
|
| 143 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="2">Original</td><td colspan="2">w/o Duplicates</td><td colspan="2">w/o Near-Duplicates</td></tr><tr><td>F1</td><td>Acc.</td><td>F1</td><td>Acc.</td><td>F1</td><td>Acc.</td></tr><tr><td colspan="7">Offensive Language Detection</td></tr><tr><td>WASEEM</td><td>84.2Β±0.4</td><td>86.2Β±0.3</td><td>83.4Β±0.4</td><td>85.7Β±0.3</td><td>83.0Β±0.2</td><td>85.3Β±0.3</td></tr><tr><td>TBO</td><td>69.4Β±1.7</td><td>75.0Β±0.7</td><td>69.4Β±1.7</td><td>75.0Β±0.7</td><td>69.2Β±1.1</td><td>74.7Β±0.3</td></tr><tr><td>OLID</td><td>76.4Β±0.5</td><td>79.9Β±0.1</td><td>77.1Β±0.4</td><td>80.1Β±0.4</td><td>76.8Β±0.6</td><td>79.0Β±0.9</td></tr><tr><td>FOUNTA</td><td>85.9Β±0.0</td><td>86.0Β±0.0</td><td>85.7Β±0.2</td><td>85.9Β±0.1</td><td>85.9Β±0.1</td><td>86.0Β±0.1</td></tr><tr><td>HateEval'19</td><td>78.2Β±1.0</td><td>78.7Β±0.6</td><td>80.4Β±0.3</td><td>80.8Β±0.1</td><td>80.2Β±0.3</td><td>80.8Β±0.2</td></tr><tr><td colspan="7">Misinformation Detection</td></tr><tr><td>Twitter'15</td><td>60.4Β±2.2</td><td>61.0Β±1.7</td><td>58.4Β±0.5*</td><td>58.7Β±0.3*</td><td>57.1Β±3.2*</td><td>57.7Β±2.4*</td></tr><tr><td>Twitter'16</td><td>62.6Β±3.5</td><td>63.4Β±3.1</td><td>51.9Β±4.0*</td><td>55.7Β±2.5*</td><td>43.0Β±2.2*</td><td>50.2Β±1.9*</td></tr><tr><td>PHEME</td><td>84.7Β±0.7</td><td>86.2Β±0.4</td><td>84.1Β±0.4*</td><td>85.6Β±0.4*</td><td>83.8Β±0.2*</td><td>85.5Β±0.0*</td></tr><tr><td>Weibo</td><td>91.4Β±0.5</td><td>91.4Β±0.4</td><td>90.9Β±0.4*</td><td>90.9Β±0.4*</td><td>91.0Β±0.2*</td><td>91.0Β±0.2*</td></tr><tr><td>STANKER</td><td>92.2Β±0.2</td><td>92.2Β±0.2</td><td>91.7Β±0.2</td><td>91.7Β±0.2</td><td>92.6Β±0.2</td><td>92.6Β±0.2</td></tr><tr><td colspan="7">Speech Act & Sentiment Analysis</td></tr><tr><td>Complaint</td><td>88.9Β±1.3</td><td>89.8Β±1.3</td><td>89.5Β±1.3</td><td>90.3Β±1.2</td><td>89.2Β±0.3</td><td>90.0Β±0.2</td></tr><tr><td>Sarcasm</td><td>64.7Β±7.6</td><td>81.5Β±1.0</td><td>61.4Β±12.4</td><td>80.8Β±1.9</td><td>69.8Β±0.8</td><td>82.2Β±0.7</td></tr><tr><td>Bragging</td><td>77.8Β±0.7</td><td>91.4Β±0.5</td><td>77.2Β±0.5</td><td>91.1Β±0.3</td><td>77.8Β±0.7</td><td>91.3Β±0.7</td></tr><tr><td>Parody</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Sentiment</td><td>74.7Β±0.2</td><td>75.0Β±0.3</td><td>74.5Β±0.2</td><td>75.0Β±0.4</td><td>74.5Β±0.3</td><td>74.9Β±0.3</td></tr><tr><td colspan="7">Stance Detection</td></tr><tr><td>CovidVaxx</td><td>80.7Β±0.4</td><td>80.7Β±0.5</td><td>79.2Β±0.9*</td><td>79.2Β±0.9*</td><td>79.0Β±0.8*</td><td>79.1Β±0.8*</td></tr><tr><td>RumorEval</td><td>48.6Β±1.2</td><td>72.7Β±0.5</td><td>48.6Β±0.4</td><td>72.8Β±0.5</td><td>46.4Β±0.9</td><td>72.4Β±1.1</td></tr><tr><td>US-Election</td><td>53.4Β±0.7</td><td>56.8Β±0.9</td><td>52.4Β±0.8</td><td>56.5Β±0.8</td><td>51.2Β±1.7</td><td>55.3Β±0.5</td></tr><tr><td>P-Stance</td><td>80.1Β±0.7</td><td>80.2Β±0.7</td><td>80.8Β±0.4</td><td>80.9Β±0.4</td><td>80.8Β±0.2</td><td>80.9Β±0.2</td></tr><tr><td>SemEval'16</td><td>65.9Β±0.3</td><td>69.5Β±0.5</td><td>65.7Β±0.6</td><td>69.1Β±0.4</td><td>63.1Β±1.1*</td><td>67.4Β±1.2*</td></tr></table>
|
| 144 |
+
|
| 145 |
+
Table 3: Model performance across datasets and duplicate rates. We were unable to conduct experiments on the Parody dataset due to the incomplete dataset we obtained. * denotes the statistic significance (t-test, $p < .05$ ) between original and w/o settings. We run all BERT-style models three times with different random seeds and then report the average F1 measure and accuracy.
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 1: Duplicate (left) and Near-Duplicate (right) rates against performance changes in F1 scores. The positive values on the left y-axis (performance change) indicate an improvement while the negative values on the left y-axis indicate a decline. The zero line marks no change in performance.
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
|
| 152 |
+
all baseline and state-of-the-art approaches, we propose a new evaluation method. Firstly, we save 5 model checkpoints from the last 5 epochs during training, each representing a unique model with varying parameters. We then compare the ranking of these 5 models according to F1-macro scores before and after dedduplication. We use Train Set Original and Train Set w/o Duplicates for training and the same test set for testing, similar to the previous experiment.
|
| 153 |
+
|
| 154 |
+
# 5.3 Inconsistent Labels
|
| 155 |
+
|
| 156 |
+
In the few-shot experiment, we aim to investigate the impact of label inconsistency in duplicates on the predictive performance of LLMs using two similar few-shot prompts:
|
| 157 |
+
|
| 158 |
+
- Given Sample A (label X) and Sample A (label Y), predict if the following example is X or Y: Sample A;
|
| 159 |
+
- Given Sample A (label Y) and Sample A (label
|
| 160 |
+
|
| 161 |
+
$X$ ), predict if the following example is $X$ or $Y$ Sample A.
|
| 162 |
+
|
| 163 |
+
We then insert $n$ randomly selected samples between two Sample A instances with different labels for both prompts, where $n$ varies from 0 to 5. For comparison, we also use zero-shot evaluation with prompt predict if the following example is $X$ or $Y$ : Sample A.
|
| 164 |
+
|
| 165 |
+
# 5.4 Results and Discussion
|
| 166 |
+
|
| 167 |
+
Data Leakage. Table 3 presents the predictive results across all tasks with different training set configurations (i.e., Original, w/o Duplicates and w/o Near-Duplicates) and Figure 1 shows the duplicate (left) and near-duplicate (right) rates against F1 score changes. In general, we observe that the presence of duplicated samples in the training set results in an overestimation of the model's predictive performance (14 out of 19 datasets). For example, the model achieves 62.6 F1 in 'Original' and 51.9 F1 in 'w/o Duplicates' ( $t$ -test, $p < .05$ ) in Twitter 16. This is due to duplicate posts in the training and test set leading to label leakage during model training. Meanwhile, we notice that model performance on datasets (e.g., Sentiment and P-Stance) with minimal duplicates (i.e., Duplicated% < 0.01) remains steady. Additionally, we observe a similar result in 'w/o Duplicates' and 'w/o Near-duplicate' where the results of the latter are slightly worse.
|
| 168 |
+
|
| 169 |
+
Table 4 demonstrates that the zero-shot classification performance of recent LLMs may not always surpass that of fully fine-tuned BERT-style models. This suggests that supervised approaches remain indispensable in CSS research, thereby making the resolution of the data duplication issue inevitable.
|
| 170 |
+
|
| 171 |
+
Model Rankings. We present cross-model evaluation results based on macro-F1 scores for selected datasets in Table 5 and for all datasets in Appendix B. The findings reveal that the majority of model rankings exhibit inconsistency (17 out of 19 datasets) before and after dedduplication. Taking HatEval'19 for example, the top five model checkpoints are from Epoch 6, 7, 10, 7 and 9 respectively when containing duplicates; while the top five ones are from Epoch 9, 10, 8, 7 and 6 after dedduplication. However, we notice the same rankings for dataset Twitter 16 and TBO, which may result from the small size of the dataset (e.g., 818 tweets). This suggests that data duplication undermines the validity of claimed SoTA results.
|
| 172 |
+
|
| 173 |
+
We contend that current SoTA approaches may require reassessment through essential data cleaning measures.
|
| 174 |
+
|
| 175 |
+
Inconsistent Labels. Table 6 presents the results of stance detection using few-shot prompts. We observe that the model can predict the stance correctly in zero-shot settings. Also, when presented with fewer instances containing posts with inconsistent labels, the model tends to make more accurate predictions. However, when provided with more than five instances, the model begins to align its predictions with the most recent label. This indicates that as the number of instances increases, predictions of the model may be less reliable, particularly when presented with conflicting information. We obtain similar findings from other social media tasks. This highlights the importance of data quality and consistency in training models for downstream CSS tasks.
|
| 176 |
+
|
| 177 |
+
# 5.5 Error Analysis
|
| 178 |
+
|
| 179 |
+
To further investigate the impact of such duplicates and near-duplicates in social media datasets, we manually perform an error analysis on the test sets of five misinformation detection datasets. We first mark the duplicates and near-duplicates in the test set based on Train Set Original. Figure 2 presents the percentage of these duplicates (upper) and these near-duplicates (bottom) in wrong predictions by models from five misinformation detection datasets (see Appendix C). We observe that most duplicated $(\sim 99\%)$ and near-duplicated (more than $90\%$ ) samples across the training and test sets can be correctly predicted.
|
| 180 |
+
|
| 181 |
+
This emphasizes the potential overestimation of model performance on existing social media datasets as a result of label leakage. Nonetheless, the presence of duplicate posts can still pose challenges for the model, especially when there is label inconsistency, as demonstrated in Table 1. Our error analysis highlights the adverse impact of duplicated and near-duplicated samples on the reliability of model performance.
|
| 182 |
+
|
| 183 |
+
# 6 Effective Strategies for Development and Use of Social Media Datasets
|
| 184 |
+
|
| 185 |
+
This section outlines practical recommendations we propose for more effective development and use of datasets in responsible CSS research.
|
| 186 |
+
|
| 187 |
+
<table><tr><td></td><td colspan="2">Original</td><td colspan="2">w/o Dupl.</td><td colspan="2">w/o Near-dupl.</td><td colspan="2">GPT-4o</td><td colspan="2">LLaMA-3</td></tr><tr><td>Dataset</td><td>F1</td><td>Acc.</td><td>F1</td><td>Acc.</td><td>F1</td><td>Acc.</td><td>F1</td><td>Acc.</td><td>F1</td><td>Acc.</td></tr><tr><td>Complaint</td><td>88.9Β±1.3</td><td>89.8Β±1.3</td><td>89.5Β±1.3</td><td>90.3Β±1.2</td><td>89.2Β±0.3</td><td>90.0Β±0.2</td><td>81.2</td><td>81.4</td><td>77.4</td><td>77.7</td></tr><tr><td>Bragging</td><td>77.8Β±0.7</td><td>91.4Β±0.5</td><td>77.2Β±0.5</td><td>91.1Β±0.3</td><td>77.8Β±0.7</td><td>91.3Β±0.7</td><td>70.0</td><td>85.2</td><td>47.9</td><td>62.5</td></tr><tr><td>Sarcasm</td><td>64.7Β±7.6</td><td>81.5Β±1.0</td><td>61.4Β±12.4</td><td>80.8Β±1.9</td><td>69.8Β±0.8</td><td>82.2Β±0.7</td><td>53.1</td><td>53.9</td><td>39.4</td><td>59.1</td></tr><tr><td>CovidVaxx</td><td>80.7Β±0.4</td><td>80.7Β±0.5</td><td>79.2Β±0.9</td><td>79.2Β±0.9</td><td>79.0Β±0.8</td><td>79.1Β±0.8</td><td>77.6</td><td>76.9</td><td>63.6</td><td>63.1</td></tr><tr><td>US-Election</td><td>53.4Β±0.7</td><td>56.8Β±0.9</td><td>52.4Β±0.8</td><td>56.5Β±0.8</td><td>51.2Β±1.7</td><td>55.3Β±0.5</td><td>47.7</td><td>50.0</td><td>41.5</td><td>46.4</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 4: Predictive results of LLMS (GPT-4o and LLaMA-3-8B) (right) vs. BERTweet (Original, w/o Dupl. and w/o Near-dupl.) (left).
|
| 190 |
+
|
| 191 |
+
<table><tr><td>Dataset</td><td>NO.1</td><td>NO.2</td><td>NO.3</td><td>NO.4</td><td>NO.5</td></tr><tr><td>HatEval'19-duplicate</td><td>80.25 (E6)</td><td>80.11 (E7)</td><td>80.01 (E10)</td><td>79.86 (E7)</td><td>79.41 (E9)</td></tr><tr><td>HatEval'19-noduplicate</td><td>80.18 (E9)</td><td>80.01 (E10)</td><td>79.78 (E8)</td><td>79.77 (E7)</td><td>79.34 (E6)</td></tr><tr><td>Twitter 16-duplicate</td><td>75.30 (E10)</td><td>74.65 (E9)</td><td>74.56 (E8)</td><td>73.97 (E7)</td><td>73.44 (E6)</td></tr><tr><td>Twitter 16-noduplicate</td><td>67.22 (E10)</td><td>67.04 (E9)</td><td>66.92 (E8)</td><td>66.40 (E7)</td><td>66.22 (E6)</td></tr><tr><td>Bragging-duplicate</td><td>80.00 (E7)</td><td>79.45 (E9)</td><td>79.33 (E8)</td><td>78.60 (E10)</td><td>78.47 (E6)</td></tr><tr><td>Bragging-noduplicate</td><td>78.22 (E6)</td><td>78.00 (E7)</td><td>77.86 (E9)</td><td>77.77 (E8)</td><td>77.39 (E10)</td></tr><tr><td>P-Stance-duplicate</td><td>81.17 (E10)</td><td>80.80 (E9)</td><td>80.72 (E8)</td><td>80.71 (E6)</td><td>80.39 (E7)</td></tr><tr><td>P-Stance-noduplicate</td><td>80.55 (E8)</td><td>80.38 (E10)</td><td>80.36 (E7)</td><td>80.35 (E9)</td><td>80.14 (E6)</td></tr></table>
|
| 192 |
+
|
| 193 |
+
Table 5: Rankings of five model checkpoints across selected datasets based on macro-F1 scores. E denotes epoch, e.g., E6 refers to 6th Epoch. Unchanged rankings are in light gray. Full experimental results are displayed in Appendix B.
|
| 194 |
+
|
| 195 |
+
<table><tr><td>Prompt</td><td>Pred.</td></tr><tr><td>Zero-shot</td><td>Against</td></tr><tr><td>Sample A (Neutral)</td><td>Against</td></tr><tr><td>Sample A (Against)</td><td>Against</td></tr><tr><td>Sample A (Neutral), Sample A (Against)</td><td>Against</td></tr><tr><td>Sample A (Against), Sample A (Neutral)</td><td>Neutral</td></tr><tr><td>Sample A (Neutral), Sample B, Sample A (Against)</td><td>Against</td></tr><tr><td>Sample A (Against), Sample B, Sample A (Neutral)</td><td>Against</td></tr><tr><td>Sample A (Neutral), Sample B, C, Sample A (Against)</td><td>Against</td></tr><tr><td>Sample A (Against), Sample B, C, Sample A (Neutral)</td><td>Against</td></tr><tr><td>Sample A (Neutral), Sample B, C, D, Sample A (Against)</td><td>Against</td></tr><tr><td>Sample A (Against), Sample B, C, D, Sample A (Neutral)</td><td>Neutral</td></tr><tr><td>Sample A (Neutral), Sample B, C, D, E, Sample A (Against)</td><td>Against</td></tr><tr><td>Sample A (Against), Sample B, C, D, E, Sample A (Neutral)</td><td>Neutral</td></tr><tr><td>Sample A (Neutral), Sample B, C, D, E, F, Sample A (Against)</td><td>Against</td></tr><tr><td>Sample A (Against), Sample B, C, D, E, F, Sample A (Neutral)</td><td>Neutral</td></tr></table>
|
| 196 |
+
|
| 197 |
+
Table 6: Predictive results of GPT-4o on stance detection using US-Election. Sample A is @USER @USER donald trump's lessons for republicans: no consequences for lying. no consequences for hate. no consequences for immorality. no consequences for crimes. no consequences for collusion. no consequences for impeachment. no consequences for incompetence. sad. #votebluenomatterwho and Sample B, C, D, E, F are randomly selected with original labels from the same dataset.
|
| 198 |
+
|
| 199 |
+
# 6.1 Developing New Datasets
|
| 200 |
+
|
| 201 |
+
Developing a new social media dataset typically involves several key steps in a well-defined pipeline including problem definition, data collection, annotation and labeling, preprocessing, optionally balancing and stratification.
|
| 202 |
+
|
| 203 |
+
However, we suggest performing an initial data cleaning before the annotation task. More specifically, we recommend first performing standard data
|
| 204 |
+
|
| 205 |
+
preprocessing steps (e.g., replacing @USER and URL tokens) and then removing duplicate samples. This process can help reduce human annotation costs (Nguyen et al., 2017) and avoid potentially inconsistent labeling. Additionally, manual rules (e.g., excluding posts with fewer than $N$ tokens) can also be used for further data cleaning before annotating, as suggested by Zampieri et al. (2023) who developed a dataset with almost no duplicates (see Table 2).
|
| 206 |
+
|
| 207 |
+
Also, we suggest dataset developers provide different dedduplication versions of datasets, for example, including and excluding near-duplicate posts, as both of them are likely to provide valuable information for the community.
|
| 208 |
+
|
| 209 |
+
# 6.2 Using Existing Datasets
|
| 210 |
+
|
| 211 |
+
An existing dataset may be used for model training as is, or enriched through fine-grained reannotation or incorporating multiple modalities. To make the most of existing datasets, attention to data quality is crucial, especially when dealing with duplicate samples. We suggest retaining one of the duplicate posts with consistent labels and excluding all posts with conflicting labels unless a reliable re-annotation task is performed. In cases where duplicates are absent, consider employing out-of-box similarity checks using methods like Levenshtein
|
| 212 |
+
|
| 213 |
+
Distance and Cosine Similarity to exclude near-duplicate samples.
|
| 214 |
+
|
| 215 |
+
Notably, for datasets like PHEME annotated with more than one type of label (e.g., Veracity label: Rumor or Non-rumor and Event-related label: Charlie Hebdo Shooting or Ottawa Shooting, consider task-specific data splitting strategies. The leave-one-out protocol (Lukasik et al., 2016), for instance, is advocated for more representative and effective evaluations.
|
| 216 |
+
|
| 217 |
+
# 6.3 Updating Data Checklists
|
| 218 |
+
|
| 219 |
+
Recently, most Computer Science venues have mandated a Data & Ethics checklist to promote Responsible AI Research emphasizing ethical and reproducibility considerations (Dodge et al., 2019; Rogers et al., 2021).
|
| 220 |
+
|
| 221 |
+
We argue that current versions of Data & Ethics checklists from two leading organizations in CSS, *ACL<sup>7</sup> and AAAI-ICWSM<sup>8</sup>, may need a 'minor revision' to account for data dedduplication. Therefore, we recommend including an additional question to remind researchers regarding the essential process of deduplicating data. Below are our revised versions for the two Data & Ethics checklists:
|
| 222 |
+
|
| 223 |
+
# Under *ACL Checklist Section B
|
| 224 |
+
|
| 225 |
+
Title: Did you use or create scientific artifacts?
|
| 226 |
+
|
| 227 |
+
Did you perform dataset exploration, such as applying data pre-processing and dedduplication, when creating new or utilizing existing data resources?
|
| 228 |
+
|
| 229 |
+
Under AAAI-ICWSM Checklist Section 5
|
| 230 |
+
|
| 231 |
+
Title: If you are using existing assets (e.g., code, data, models) or curating/releasing new assets.
|
| 232 |
+
|
| 233 |
+
Have you provided details of any metaanalysis conducted on the CSS datasets employed or developed in your research? This includes, but is not limited to, data pre-processing, dedduplication, and other processes essential for responsible CSS research.
|
| 234 |
+
|
| 235 |
+
We believe this adjustment applies not only to CSS but also to broader research fields.
|
| 236 |
+
|
| 237 |
+
$^{7}$ https://aclrollingreview.org/responsibleNLPResearch/
|
| 238 |
+
$^{8}$ https://www.overleaf.com/latex/template/aaai-icwsm-2024-paper-checklist/vxbztbhrbch
|
| 239 |
+
|
| 240 |
+
# 7 Conclusion
|
| 241 |
+
|
| 242 |
+
Beyond focusing on innovative methodologies to improve model performance in downstream CSS tasks, we advocate a more comprehensive understanding of the datasets via meta analysis. In this work, we conduct an extensive evaluation of the data duplication issue in 20 selected social media datasets. We find that the majority of these datasets require additional preprocessing before the modeling, a critical step often overlooked in previous CSS research. Furthermore, we explore the potential impact of data duplication on model performance with a focus on label leakage, model rankings and label inconsistency. Finally, we offer targeted recommendations for more effective use of existing datasets and the creation of new datasets derived from social media sources.
|
| 243 |
+
|
| 244 |
+
# Ethics Statement
|
| 245 |
+
|
| 246 |
+
The Research Ethics Committee of our institute has granted approval for our work. The datasets evaluated in this study were acquired from original authors by request or via links available in the source papers.
|
| 247 |
+
|
| 248 |
+
# Limitations
|
| 249 |
+
|
| 250 |
+
Due to space limits, our work only focuses on 20 representative CSS datasets, which do not cover the entire scope of computational social science. However, our work has examined a similar or higher number of datasets compared to existing CSS benchmarks such as TweetEval (Barbieri et al., 2020) and SuperTweetEval (Antypas et al., 2023). In the future, we are committed to continually expanding our analysis by evaluating more datasets, with updates to be shared through our GitHub repository. We aim to create a processed CSS benchmark, similar to existing CSS benchmarks such as SuperTweetEval (Antypas et al., 2023). This will include a cleaned version of each dataset, along with re-evaluated baselines based on these deduplicated datasets.
|
| 251 |
+
|
| 252 |
+
# Acknowledgments
|
| 253 |
+
|
| 254 |
+
This work has been supported by the UK's innovation agency (Innovate UK) grant 10039055 (approved under the Horizon Europe Programme as vera.ai, EU grant agreement 101070093). NA is supported by EPSRC grant EP/Y009800/1, part of the RAI UK Keystone projects.
|
| 255 |
+
|
| 256 |
+
# References
|
| 257 |
+
|
| 258 |
+
Firoj Alam, Muhammad Imran, and Ferda Ofli. 2017. Image4act: Online Social Media Image Processing for Disaster Response. In Proceedings of the 2017 IEEE/ACM international conference on advances in social networks analysis and mining 2017, pages 601-604.
|
| 259 |
+
Dimosthenis Antypas, Asahi Ushio, Francesco Barbieri, Leonardo Neves, Kiamehr Rezaee, Luis Espinosa-Anke, Jiaxin Pei, and Jose Camacho-Collados. 2023. Supertweeteval: A challenging, unified and heterogeneous benchmark for social media nlp research.
|
| 260 |
+
Dennis Assenmacher, Indira Sen, Leon FrΓΆhling, and Claudia Wagner. 2020. The end of the rehydration era the problem of sharing harmful twitter research data.
|
| 261 |
+
Tyler Baldwin and Yunyao Li. 2015. An In-depth Analysis of the Effect of Text Normalization in Social Media. In Proceedings of the 2015 conference of the North American chapter of the association for computational linguistics: human language technologies, pages 420-429.
|
| 262 |
+
Francesco Barbieri, Jose Camacho-Collados, Luis Espinosa Anke, and Leonardo Neves. 2020. Tweeteval: Unified benchmark and comparative evaluation for tweet classification. In *Findings of the Association for Computational Linguistics: EMNLP* 2020, pages 1644-1650.
|
| 263 |
+
Aki Barry, Lei Han, and Gianluca Demartini. 2023. On the Impact of Data Quality on Image Classification Fairness.
|
| 264 |
+
Alessandro Bessi and Emilio Ferrara. 2016. Social bots distort the 2016 us presidential election online discussion. First monday, 21(11-7).
|
| 265 |
+
Eric Breck, Neoklis Polyzotis, Sudip Roy, Steven Whang, and Martin Zinkevich. 2019. Data Validation for Machine Learning. In MLSys.
|
| 266 |
+
Lukas Budach, Moritz Feuerpfeil, Nina Ihde, Andrea Nathansen, Nele Noack, Hendrik Patzlaff, Felix Naumann, and Hazar Harmouch. 2022. The Effects of Data Quality on Machine Learning Performance.
|
| 267 |
+
Ying Chen, Yilu Zhou, Sencun Zhu, and Heng Xu. 2012. Detecting offensive language in social media to protect adolescent online safety. In 2012 International Conference on Privacy, Security, Risk and Trust and 2012 International Confernce on Social Computing, pages 71-80. IEEE.
|
| 268 |
+
Liviu-Adrian Cotfas, Camelia Delcea, Ioan Roxin, Corina IoanΔs, Dana Simona Gherai, and Federico Tajariol. 2021. The longest month: analyzing COVID-19 vaccination opinions dynamics from tweets in the month following the first vaccine announcement. *IEEE Access*, 9:33203β33223.
|
| 269 |
+
|
| 270 |
+
Thomas Davidson, Dana Warmsley, Michael Macy, and Ingmar Weber. 2017. Automated hate speech detection and the problem of offensive language. In Proceedings of the international AAAI conference on web and social media, volume 11, pages 512-515.
|
| 271 |
+
Matthew J Denny and Arthur Spirling. 2018. Text preprocessing for unsupervised learning: Why it matters, when it misleads, and what to do about it. *Political Analysis*, 26(2):168-189.
|
| 272 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171-4186, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 273 |
+
Jesse Dodge, Suchin Gururangan, Dallas Card, Roy Schwartz, and Noah A Smith. 2019. Show your work: Improved reporting of experimental results. 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 2185-2194.
|
| 274 |
+
Fernando Leandro Dos Santos and Marcelo Ladeira. 2014. The role of text pre-processing in opinion mining on a social media language dataset. In 2014 Brazilian Conference on Intelligent Systems, pages 50-54. IEEE.
|
| 275 |
+
Achim Edelmann, Tom Wolff, Danielle Montagne, and Christopher A Bail. 2020. Computational social science and sociology. Annual Review of Sociology, 46:61-81.
|
| 276 |
+
Ibrahim Abu Farha, Silviu Oprea, Steve Wilson, and Walid Magdy. 2022. Semeval-2022 task 6: isarcasmeval, intended sarcasm detection in english and arabic. In The 16th International Workshop on Semantic Evaluation 2022, pages 802-814. Association for Computational Linguistics.
|
| 277 |
+
Emilio Ferrara. 2020. What types of Covid-19 conspiracies are populated by twitter bots?
|
| 278 |
+
Antigoni Founta, Constantinos Djouvas, Despoina Chatzakou, Ilias Leontiadis, Jeremy Blackburn, Gianluca Stringhini, Athena Vakali, Michael Sirivianos, and Nicolas Kourtellis. 2018. Large scale crowdsourcing and characterization of twitter abusive behavior. In Proceedings of the international AAAI conference on web and social media, volume 12.
|
| 279 |
+
Oscar Garibo i Orts. 2019. Multilingual detection of hate speech against immigrants and women in Twitter at SemEval-2019 task 5: Frequency analysis interpolation for hate in speech detection. In Proceedings of the 13th International Workshop on Semantic Evaluation, pages 460β463, Minneapolis, Minnesota, USA. Association for Computational Linguistics.
|
| 280 |
+
|
| 281 |
+
Genevieve Gorrell, Elena Kochkina, Maria Liakata, Ahmet Aker, Arkaitz Zubiaga, Kalina Bontcheva, and Leon Derczynski. 2019. SemEval-2019 task 7: RumourEval, determining rumour veracity and support for rumours. In Proceedings of the 13th International Workshop on Semantic Evaluation, pages 845β854, Minneapolis, Minnesota, USA. Association for Computational Linguistics.
|
| 282 |
+
Christoph GrΓΆger. 2021. There is no AI without data. Communications of the ACM, 64(11):98-108.
|
| 283 |
+
Ratab Gull, Umar Shoaib, Saba Rasheed, Washma Abid, and Beenish Zahoor. 2016. Pre processing of twitter's data for opinion mining in political context. *Procedia Computer Science*, 96:1560β1570.
|
| 284 |
+
Sharath Chandra Guntuku, Daniel Preotiuc-Pietro, Johannes C Eichstaedt, and Lyle H Ungar. 2019. What twitter profile and posted images reveal about depression and anxiety. In Proceedings of the international AAAI conference on web and social media, volume 13, pages 236-246.
|
| 285 |
+
Jake M Hofman, Duncan J Watts, Susan Athey, Filiz Garip, Thomas L Griffiths, Jon Kleinberg, Helen Margetts, Sendhil Mullainathan, Matthew J Salganik, Simine Vazire, et al. 2021. Integrating explanation and prediction in computational social science. Nature, 595(7866):181-188.
|
| 286 |
+
Zhao Jianqiang and Gui Xiaolin. 2017. Comparison research on text pre-processing methods on twitter sentiment analysis. IEEE access, 5:2870-2879.
|
| 287 |
+
Mali Jin, Daniel Preotiuc-Pietro, A. Seza DoΔruΓΆz, and Nikolaos Aletras. 2022. Automatic identification and classification of bragging in social media. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3945-3959, Dublin, Ireland. Association for Computational Linguistics.
|
| 288 |
+
Nikhil Kandpal, Eric Wallace, and Colin Raffel. 2022. Deduplicating training data mitigates privacy risks in language models. In International Conference on Machine Learning, pages 10697-10707. PMLR.
|
| 289 |
+
Kornraphop Kawintiranon and Lisa Singh. 2021. Knowledge enhanced masked language model for stance detection. In Proceedings of the 2021 conference of the north american chapter of the association for computational linguistics: human language technologies, pages 4725-4735.
|
| 290 |
+
Bernard Koch, Emily Denton, Alex Hanna, and Jacob G Foster. 2021. Reduced, reused and recycled: The life of a dataset in machine learning research. Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, 1.
|
| 291 |
+
Akrivi Krouska, Christos Troussas, and Maria Virvou. 2016. The effect of preprocessing techniques on twitter sentiment analysis. In 2016 7th international conference on information, intelligence, systems & applications (IISA), pages 1-5. IEEE.
|
| 292 |
+
|
| 293 |
+
Dilek Kucuk and Fazli Can. 2020. Stance detection: A survey. ACM Computing Surveys (CSUR), 53(1):1-37.
|
| 294 |
+
David MJ Lazer, Alex Pentland, Duncan J Watts, Sinan Aral, Susan Athey, Noshir Contractor, Deen Freelon, Sandra Gonzalez-Bailon, Gary King, Helen Margetts, et al. 2020. Computational social science: Obstacles and opportunities. Science, 369(6507):1060-1062.
|
| 295 |
+
Katherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang, Douglas Eck, Chris Callison-Burch, and Nicholas Carlini. 2022. Deduplicating training data makes language models better. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8424-8445.
|
| 296 |
+
Vladimir I Levenshtein et al. 1966. Binary codes capable of correcting deletions, insertions, and reversals. In Soviet physics doklady, volume 10, pages 707-710. Soviet Union.
|
| 297 |
+
Peng Li, Xi Rao, Jennifer Blase, Yue Zhang, Xu Chu, and Ce Zhang. 2021a. CleanML: A study for Evaluating the Impact of Data Cleaning on ML Classification Tasks. In 2021 IEEE 37th International Conference on Data Engineering (ICDE), pages 13-24. IEEE.
|
| 298 |
+
Yingjie Li, Tiberiu Sosea, Aditya Sawant, Ajith Jayaraman Nair, Diana Inkpen, and Cornelia Caragea. 2021b. P-stance: A large dataset for stance detection in political domain. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 2355-2365.
|
| 299 |
+
Michal Lukasik, PK Srijith, Duy Vu, Kalina Bontcheva, Arkaitz Zubiaga, and Trevor Cohn. 2016. Hawkes processes for continuous time sequence classification: an application to rumour stance classification in twitter. In Proceedings of 54th Annual Meeting of the Association for Computational Linguistics, pages 393-398. Association for Computational Linguistics.
|
| 300 |
+
Jing Ma, Wei Gao, Prasenjit Mitra, Sejeong Kwon, Bernard J Jansen, Kam-Fai Wong, and Meeyoung Cha. 2016. Detecting rumors from microblogs with recurrent neural networks. In Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence, pages 3818-3824.
|
| 301 |
+
Jing Ma, Wei Gao, and Kam-Fai Wong. 2017. Detect rumors in microblog posts using propagation structure via kernel learning. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 708-717.
|
| 302 |
+
Jenifer Mahilraj, Getahun Tigistu, and Sisay Tumsa. 2020. Text Preprocessing Method on Twitter Sentiment Analysis Using Machine Learning. International Journal of Innovative Technology and Exploring Engineering, 9(12):233-240.
|
| 303 |
+
Antonis Maronikolakis, Danae SΓ‘nchez Villegas, Daniel Preotciuc-Pietro, and Nikolaos Aletras. 2020. Analyzing political parody in social media. In Proceedings
|
| 304 |
+
|
| 305 |
+
of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4373-4384.
|
| 306 |
+
Saif Mohammad, Svetlana Kiritchenko, Parinaz Sobhani, Xiaodan Zhu, and Colin Cherry. 2016. Semeval-2016 task 6: Detecting stance in tweets. In Proceedings of the 10th international workshop on semantic evaluation (SemEval-2016), pages 31-41.
|
| 307 |
+
Yida Mu, Kalina Bontcheva, and Nikolaos Aletras. 2023a. It's about time: Rethinking evaluation on rumor detection benchmarks using chronological splits. In *Findings of the Association for Computational Linguistics: EACL* 2023, pages 724-731.
|
| 308 |
+
Yida Mu, Mali Jin, Charlie Grimshaw, Carolina Scarton, Kalina Bontcheva, and Xingyi Song. 2023b. Vaxxhesitancy: A dataset for studying hesitancy towards COVID-19 vaccination on twitter. In Proceedings of the International AAAI Conference on Web and Social Media, volume 17, pages 1052-1062.
|
| 309 |
+
Yida Mu, Ben P. Wu, William Thorne, Ambrose Robinson, Nikolaos Aletras, Carolina Scarton, Kalina Bontcheva, and Xingyi Song. 2024. Navigating prompt complexity for zero-shot classification: A study of large language models in computational social science. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), pages 12074-12086, Torino, Italia. ELRA and ICCL.
|
| 310 |
+
Usman Naseem, Imran Razzak, and Peter W Eklund. 2021. A survey of pre-processing techniques to improve short-text quality: a case study on hate speech detection on twitter. Multimedia Tools and Applications, 80:35239-35266.
|
| 311 |
+
Dat Quoc Nguyen, Thanh Vu, and Anh Tuan Nguyen. 2020. Bertweet: A pre-trained language model for english tweets. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 9-14.
|
| 312 |
+
Dat Tien Nguyen, Firoj Alam, Ferda Ofli, and Muhammad Imran. 2017. Automatic Image Filtering on Social Networks Using Deep Learning and Perceptual Hashing During Crises.
|
| 313 |
+
Chikashi Nobata, Joel Tetreault, Achint Thomas, Yashar Mehdad, and Yi Chang. 2016. Abusive language detection in online user content. In Proceedings of the 25th international conference on world wide web, pages 145-153.
|
| 314 |
+
Barbara Plank and Dirk Hovy. 2015. Personality traits on twitterβorβhow to get 1,500 personality tests in a week. In Proceedings of the 6th workshop on computational approaches to subjectivity, sentiment and social media analysis, pages 92β98.
|
| 315 |
+
Daniel Preoticiuc-Pietro, Mihaela Gaman, and Nikolaos Aletras. 2019. Automatically identifying complaints in social media. In Proceedings of the 57th Annual
|
| 316 |
+
|
| 317 |
+
Meeting of the Association for Computational Linguistics, pages 5008-5019, Florence, Italy. Association for Computational Linguistics.
|
| 318 |
+
Dongning Rao, Xin Miao, Zhihua Jiang, and Ran Li. 2021. STANKER: Stacking network based on level-grained attention-masked BERT for rumor detection on social media. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3347-3363, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 319 |
+
Hannah Rashkin, Eunsol Choi, Jin Yea Jang, Svitlana Volkova, and Yejin Choi. 2017. Truth of varying shades: Analyzing language in fake news and political fact-checking. In Proceedings of the 2017 conference on empirical methods in natural language processing, pages 2931-2937.
|
| 320 |
+
Anna Rogers, Timothy Baldwin, and Kobi Leins. 2021. 'just what do you think you're doing, dave?' a checklist for responsible data use in nlp. In *Findings of the Association for Computational Linguistics: EMNLP* 2021, pages 4821-4833.
|
| 321 |
+
Sara Rosenthal, Noura Farra, and Preslav Nakov. 2019. Semeval-2017 task 4: Sentiment analysis in twitter.
|
| 322 |
+
Ankan Saha and Vikas Sindhwani. 2012. Learning evolving and emerging topics in social media: a dynamic nmf approach with temporal regularization. In Proceedings of the fifth ACM international conference on Web search and data mining, pages 693-702.
|
| 323 |
+
Tulika Saha, Apoorva Upadhyaya, Sriparna Saha, and Pushpak Bhattacharyya. 2021. Towards sentiment and emotion aided multi-modal speech act classification in Twitter. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5727-5737, Online. Association for Computational Linguistics.
|
| 324 |
+
Kai Shu, Amy Sliva, Suhang Wang, Jiliang Tang, and Huan Liu. 2017. Fake news detection on social media: A data mining perspective. ACM SIGKDD explorations newsletter, 19(1):22-36.
|
| 325 |
+
Massimo Stella, Emilio Ferrara, and Manlio De Domenico. 2018. Bots increase exposure to negative and inflammatory content in online social systems. Proceedings of the National Academy of Sciences, 115(49):12435-12440.
|
| 326 |
+
Symeon Symeonidis, Dimitrios Effrosynidis, and Avi Arampatzis. 2018. A comparative evaluation of preprocessing techniques and their interactions for twitter sentiment analysis. Expert Systems with Applications, 110:298-310.
|
| 327 |
+
Lin Tian, Xiuzhen Zhang, and Jey Han Lau. 2022. DUCK: Rumour detection on social media by modelling user and comment propagation networks. In Proceedings of the 2022 Conference of the North
|
| 328 |
+
|
| 329 |
+
American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 4939-4949, Seattle, United States. Association for Computational Linguistics.
|
| 330 |
+
|
| 331 |
+
Bertie Vidgen and Leon Derczynski. 2020. Directions in abusive language training data, a systematic review: Garbage in, garbage out. Plos one, 15(12):e0243300.
|
| 332 |
+
|
| 333 |
+
Zeerak Waseem and Dirk Hovy. 2016. Hateful symbols or hateful people? predictive features for hate speech detection on twitter. In Proceedings of the NAACL student research workshop, pages 88-93.
|
| 334 |
+
|
| 335 |
+
Quan Yuan, Gao Cong, Zongyang Ma, Aixin Sun, and Nadia Magnenat Thalmann. 2013. Who, where, when and what: discover spatio-temporal topics for twitter users. In Proceedings of the 19th ACM SIGKDD international conference on Knowledge discovery and data mining, pages 605-613.
|
| 336 |
+
|
| 337 |
+
Marcos Zampieri, Skye Morgan, Kai North, Tharindu Ranasinghe, Austin Simmons, Paridhi Khandelwal, Sara Rosenthal, and Preslav Nakov. 2023. Target-based offensive language identification. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 762-770.
|
| 338 |
+
|
| 339 |
+
Jianyang Zhang, Tao Liang, Mingyang Wan, Guowu Yang, and Fengmao Lv. 2022a. Curriculum knowledge distillation for emoji-supervised cross-lingual sentiment analysis. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 864β875, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 340 |
+
|
| 341 |
+
Menghan Zhang, Xue Qi, Ze Chen, and Jun Liu. 2022b. Social bots' involvement in the COVID-19 vaccine discussions on twitter. International Journal of Environmental Research and Public Health, 19(3):1651.
|
| 342 |
+
|
| 343 |
+
Caleb Ziems, William Held, Omar Shaikh, Jiaao Chen, Zhehao Zhang, and Diyi Yang. 2023. Can large language models transform computational social science?
|
| 344 |
+
|
| 345 |
+
Arkaitz Zubiaga. 2018. A longitudinal assessment of the persistence of twitter datasets. Journal of the Association for Information Science and Technology, 69(8):974-984.
|
| 346 |
+
|
| 347 |
+
Arkaitz Zubiaga, Ahmet Aker, Kalina Bontcheva, Maria Liakata, and Rob Procter. 2018. Detection and resolution of rumours in social media: A survey. ACM Computing Surveys (CSUR), 51(2):1-36.
|
| 348 |
+
|
| 349 |
+
Arkaitz Zubiaga, Maria Liakata, Rob Procter, Geraldine Wong Sak Hoi, and Peter Tolmie. 2016. Analysing how people orient to and spread rumours in social media by looking at conversational threads. *PloS one*, 11(3):e0150989.
|
| 350 |
+
|
| 351 |
+
# Appendix
|
| 352 |
+
|
| 353 |
+
# A Hyper-parameters and Experimental Setup
|
| 354 |
+
|
| 355 |
+
Following the standard pipeline (Devlin et al., 2019), we fine-tune BERT-style models by feeding the '[CLS]' token to a linear classifier with Softmax activation. We set the learning rate $lr = 2\mathrm{e} - 5$ and batch size $bs = 64$ for all datasets. All BERT variants are fine-tuned for up to 10 epochs using an early stopping strategy based on the validation loss (we use $10\%$ of the data from the training set as validation sets for model selection). We run all BERT-style models three times with different random seeds and then report the standard deviations and average Precision, Recall, and F1-measure. For LLMs, we fix the random seed and temperature values to ensure reproducibility.
|
| 356 |
+
|
| 357 |
+
All supervised experiments are conducted on an Nvidia V100 GPU with 32 GB of memory, with a total running time of approximately 3 hours (on 20 datasets described in Table 2). All GPT prompting experiments cost around 3.5 USD in total, which can be fully covered by the free budget provided by OpenAI for new users.
|
| 358 |
+
|
| 359 |
+
# B Complete results of model rankings
|
| 360 |
+
|
| 361 |
+
Table 7 shows the full results of rankings of five model checkpoints across all datasets.
|
| 362 |
+
|
| 363 |
+
# C Error Analysis
|
| 364 |
+
|
| 365 |
+
Figure 2 presents the percentage of these duplicates (upper) and these near-duplicates (bottom) in wrong predictions by models from five misinformation detection datasets.
|
| 366 |
+
|
| 367 |
+
# D Prompts for LLM Zero- and Few-shot Classification
|
| 368 |
+
|
| 369 |
+
<table><tr><td>Dataset</td><td>NO.1</td><td>NO.2</td><td>NO.3</td><td>NO.4</td><td>NO.5</td></tr><tr><td colspan="6">Offensive Language Detection</td></tr><tr><td>WASEEM-duplicate</td><td>83.62 (E6)</td><td>83.33 (E7)</td><td>83.17 (E10)</td><td>83.06 (E9)</td><td>83.00 (E8)</td></tr><tr><td>WASEEM-noduplicate</td><td>83.71 (E6)</td><td>82.89 (E10)</td><td>82.61 (E7)</td><td>82.53 (E9)</td><td>82.51 (E8)</td></tr><tr><td>TBO-duplicate</td><td>69.76 (E6)</td><td>69.72 (E10)</td><td>69.63 (E9)</td><td>69.61 (E8)</td><td>69.54 (E7)</td></tr><tr><td>TBO-noduplicate</td><td>69.76 (E6)</td><td>69.72 (E10)</td><td>69.63 (E9)</td><td>69.61 (E8)</td><td>69.54 (E7)</td></tr><tr><td>OLID-duplicate</td><td>75.30 (E7)</td><td>74.66 (E6)</td><td>74.52 (E9)</td><td>74.38 (E10)</td><td>74.01 (E8)</td></tr><tr><td>OLID-noduplicate</td><td>75.82 (E10)</td><td>75.62 (E6)</td><td>75.53 (E7)</td><td>75.21 (E9)</td><td>75.05 (E8)</td></tr><tr><td>FOUNTA-duplicate</td><td>84.37 (E6)</td><td>83.68 (E9)</td><td>83.61 (E8)</td><td>83.43 (E10)</td><td>83.25 (E7)</td></tr><tr><td>FOUNTA-noduplicate</td><td>84.20 (E6)</td><td>83.76 (E8)</td><td>83.71 (E7)</td><td>83.42 (E9)</td><td>83.29 (E10)</td></tr><tr><td>HatEval'19-duplicate</td><td>80.25 (E6)</td><td>80.11 (E7)</td><td>80.01 (E10)</td><td>79.86 (E7)</td><td>79.41 (E9)</td></tr><tr><td>HatEval'19-noduplicate</td><td>80.18 (E9)</td><td>80.01 (E10)</td><td>79.78 (E8)</td><td>79.77 (E7)</td><td>79.34 (E6)</td></tr><tr><td colspan="6">Misinformation Detection</td></tr><tr><td>Twitter 15-duplicate</td><td>69.61 (E8)</td><td>67.90 (E10)</td><td>67.76 (E9)</td><td>67.41 (E7)</td><td>66.47 (E6)</td></tr><tr><td>Twitter 15-noduplicate</td><td>67.58 (E7)</td><td>67.19 (E8)</td><td>67.00 (E10)</td><td>66.75 (E9)</td><td>65.45 (E6)</td></tr><tr><td>Twitter 16-duplicate</td><td>75.30 (E10)</td><td>74.65 (E9)</td><td>74.56 (E8)</td><td>73.97 (E7)</td><td>73.44 (E6)</td></tr><tr><td>Twitter 16-noduplicate</td><td>67.22 (E10)</td><td>67.04 (E9)</td><td>66.92 (E8)</td><td>66.40 (E7)</td><td>66.22 (E6)</td></tr><tr><td>PHEME-duplicate</td><td>86.93 (E8)</td><td>86.58 (E10)</td><td>86.54 (E7)</td><td>86.54 (E9)</td><td>85.92 (E6)</td></tr><tr><td>PHEME-noduplicate</td><td>85.95 (E8)</td><td>85.91 (E10)</td><td>85.83 (E9)</td><td>85.80 (E7)</td><td>85.61 (E6)</td></tr><tr><td>Weibo-duplicate</td><td>91.75 (E9)</td><td>91.43 (E10)</td><td>91.10 (E8)</td><td>90.78 (E7)</td><td>90.35 (E6)</td></tr><tr><td>Weibo-noduplicate</td><td>91.75 (E8)</td><td>91.64 (E9)</td><td>91.00 (E10)</td><td>90.68 (E6)</td><td>90.25 (E7)</td></tr><tr><td>STANKER-duplicate</td><td>93.82 (E7)</td><td>93.66 (E8)</td><td>93.33 (E9)</td><td>93.24 (E10)</td><td>93.16 (E6)</td></tr><tr><td>STANKER-noduplicate</td><td>92.92 (E10)</td><td>92.83 (E9)</td><td>92.75 (E8)</td><td>92.25 (E6)</td><td>92.17 (E7)</td></tr><tr><td colspan="6">Speech Act & Sentiment Analysis</td></tr><tr><td>Complaint-duplicate</td><td>90.73 (E6)</td><td>90.40 (E9)</td><td>90.34 (E10)</td><td>90.01 (E8)</td><td>89.60 (E7)</td></tr><tr><td>Complaint-noduplicate</td><td>90.85 (E7)</td><td>90.59 (E10)</td><td>90.52 (E6, E9)</td><td>90.52 (E6, E9)</td><td>90.44 (E8)</td></tr><tr><td>Sarcasm-duplicate</td><td>71.53 (E10)</td><td>71.45 (E9)</td><td>71.21 (E8)</td><td>70.76 (E6)</td><td>70.22 (E7)</td></tr><tr><td>Sarcasm-noduplicate</td><td>72.41 (E7)</td><td>71.79 (E10)</td><td>71.64 (E6)</td><td>71.49 (E8)</td><td>71.42 (E9)</td></tr><tr><td>Bragging-duplicate</td><td>80.00 (E7)</td><td>79.45 (E9)</td><td>79.33 (E8)</td><td>78.60 (E10)</td><td>78.47 (E6)</td></tr><tr><td>Bragging-noduplicate</td><td>78.22 (E6)</td><td>78.00 (E7)</td><td>77.86 (E9)</td><td>77.77 (E8)</td><td>77.39 (E10)</td></tr><tr><td>Parody-duplicate</td><td>-</td><td>-</td><td>-</td><td>-</td><td></td></tr><tr><td>Parody-noduplicate</td><td>-</td><td>-</td><td>-</td><td>-</td><td></td></tr><tr><td>Sentiment-duplicate</td><td>73.61 (E6)</td><td>73.11 (E7)</td><td>72.90 (E9)</td><td>72.86 (E10)</td><td>72.79 (E8)</td></tr><tr><td>Sentiment-noduplicate</td><td>73.39 (E6)</td><td>72.90 (E9)</td><td>72.81 (E10)</td><td>72.78 (E8)</td><td>72.56 (E7)</td></tr><tr><td colspan="6">Stance Detection</td></tr><tr><td>CovidVaxx-duplicate</td><td>80.93 (E8)</td><td>80.78 (E6)</td><td>80.43 (E9)</td><td>79.89 (E10)</td><td>78.99 (E7)</td></tr><tr><td>CovidVaxx-noduplicate</td><td>81.01 (E7)</td><td>80.32 (E9)</td><td>80.27 (E6)</td><td>80.27 (E8)</td><td>80.11 (E10)</td></tr><tr><td>RumorEval-duplicate</td><td>54.66 (E10)</td><td>54.44 (E9)</td><td>53.77 (E8)</td><td>53.76 (E6)</td><td>53.42 (E7)</td></tr><tr><td>RumorEval-noduplicate</td><td>54.27 (E6)</td><td>54.03 (E10)</td><td>53.96 (E9)</td><td>53.83 (E8)</td><td>53.23 (E7)</td></tr><tr><td>US-Election-duplicate</td><td>56.53 (E8)</td><td>56.04 (E7)</td><td>54.90 (E9)</td><td>54.63 (E6)</td><td>54.12 (E10)</td></tr><tr><td>US-Election-noduplicate</td><td>56.20 (E8)</td><td>55.36 (E6)</td><td>55.56 (E10)</td><td>55.46 (E9)</td><td>52.85 (E7)</td></tr><tr><td>P-Stance-duplicate</td><td>81.17 (E10)</td><td>80.80 (E9)</td><td>80.72 (E8)</td><td>80.71 (E6)</td><td>80.39 (E7)</td></tr><tr><td>P-Stance-noduplicate</td><td>80.55 (E8)</td><td>80.38 (E10)</td><td>80.36 (E7)</td><td>80.35 (E9)</td><td>80.14 (E6)</td></tr></table>
|
| 370 |
+
|
| 371 |
+
Table 7: Rankings of five model checkpoints across selected datasets based on macro-F1 scores. E denotes epoch, e.g., E6 refers to 6th Epoch. Unchanged rankings are in light gray.
|
| 372 |
+
|
| 373 |
+
<table><tr><td>Dataset</td><td>Prompt</td></tr><tr><td>Complaint</td><td>Read the given tweet, and categorize it into one of two categories:
|
| 374 |
+
(1) Non-complaint
|
| 375 |
+
(2) Complaint
|
| 376 |
+
Only return the category number as your answer.
|
| 377 |
+
Text: {list_of_text}
|
| 378 |
+
Answer:</td></tr><tr><td>Bragging</td><td>Read the given tweet, and categorize it into one of two categories:
|
| 379 |
+
(1) Not Bragging
|
| 380 |
+
(2) Bragging
|
| 381 |
+
Only return the category number as your answer.
|
| 382 |
+
Text: {list_of_text}
|
| 383 |
+
Answer:</td></tr><tr><td>Sarcasm</td><td>Read the given tweet, and categorize it into one of two categories:
|
| 384 |
+
(1) Not Sarcasm
|
| 385 |
+
(2) Sarcasm
|
| 386 |
+
Only return the category number as your answer.
|
| 387 |
+
Text: {list_of_text}
|
| 388 |
+
Answer:</td></tr><tr><td>CovidVAXX</td><td>Read the given tweet, and categorize it according to the stance expressed about the COVID-19 vaccine:
|
| 389 |
+
(1) Anti vaccine
|
| 390 |
+
(2) Neutral
|
| 391 |
+
(3) Pro vaccine
|
| 392 |
+
Only return the category number as your answer.
|
| 393 |
+
Text: {list_of_text}
|
| 394 |
+
Answer:</td></tr><tr><td>US-election</td><td>Read the given tweet, and categorize it according to the stance expressed towards U.S. politicians:
|
| 395 |
+
(1) None
|
| 396 |
+
(2) Favor
|
| 397 |
+
(3) Against
|
| 398 |
+
Only return the category number as your answer.
|
| 399 |
+
Text: {list_of_text}
|
| 400 |
+
Answer:</td></tr></table>
|
| 401 |
+
|
| 402 |
+
Table 8: Example prompts used for LLM-based zero-shot classification.
|
| 403 |
+
|
| 404 |
+

|
| 405 |
+
|
| 406 |
+

|
| 407 |
+
Figure 2: Ratio of duplicates (upper) and near-duplicates (bottom) in wrong predictions from five misinformation detection datasets.
|
2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eac1e5a016abd4261ab50da5cd6e88870899ed8637eb843f435b3833064d198a
|
| 3 |
+
size 1231024
|
2024/Enhancing Data Quality through Simple De-duplication_ Navigating Responsible Computational Social Science Research/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/ecf46cfa-b0ec-4c23-8dc4-a2c4872b6b41_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/ecf46cfa-b0ec-4c23-8dc4-a2c4872b6b41_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/ecf46cfa-b0ec-4c23-8dc4-a2c4872b6b41_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40c4f2e0fbb995b3d5efb3f2d4c875ea4e30bcf26685fd707098d36e602d064c
|
| 3 |
+
size 3078559
|
2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/full.md
ADDED
|
@@ -0,0 +1,594 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enhancing High-order Interaction Awareness in LLM-based Recommender Model
|
| 2 |
+
|
| 3 |
+
Xinfeng Wangβ , Jin Cuiβ , Fumiyo Fukumotoβ‘, and Yoshimi Suzukiβ‘
|
| 4 |
+
|
| 5 |
+
β Graduate School of Engineering
|
| 6 |
+
|
| 7 |
+
$^{\ddagger}$ Interdisciplinary Graduate School
|
| 8 |
+
|
| 9 |
+
University of Yamanashi, Kofu, Japan
|
| 10 |
+
|
| 11 |
+
{g22dtsa7, g22dtsa5, fukumoto, ysuzuki}@yamanashi.ac.jp
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Large language models (LLMs) have demonstrated prominent reasoning capabilities in recommendation tasks by transforming them into text-generation tasks. However, existing approaches either disregard or ineffectively model the user-item high-order interactions. To this end, this paper presents an enhanced LLM-based recommender (ELMRec). We enhance whole-word embeddings to substantially enhance LLMs' interpretation of graph-constructed interactions for recommendations, without requiring graph pre-training. This finding may inspire endeavors to incorporate rich knowledge graphs into LLM-based recommenders via whole-word embedding. We also found that LLMs often recommend items based on users' earlier interactions rather than recent ones, and present a reranking solution. Our ELMRec outperforms state-of-the-art (SOTA) methods in both direct and sequential recommendations. Our code is available online<sup>1</sup>.
|
| 16 |
+
|
| 17 |
+
# 1 Introduction
|
| 18 |
+
|
| 19 |
+
Large language models (LLMs) with powerful reasoning capabilities have attracted considerable attention in recommendations (Li et al., 2022; Huang et al., 2023; Yang et al., 2023; Wei et al., 2024). They typically exploit prompt learning (Liu et al., 2023) to integrate user and item IDs into LLMs, including discrete prompts, which leverage alternative words (e.g., a movie title) to represent IDs (Li et al., 2023a, 2024), continuous prompts to directly fine-tune ID vectors (Yu et al., 2024), and hybrid prompts (Liao et al., 2023; Wang et al., 2024a). Furthermore, several attempts (Geng et al., 2022; Li et al., 2023b; Wang et al., 2024b) convert multiple recommendation tasks into generation tasks via textual prompts for training LLMs. As illustrated in Fig. 1 (a), these tasks are (i) direct recommendation, (ii) sequential recommendation, and (iii)
|
| 20 |
+
|
| 21 |
+
(i) Direct Recommendation
|
| 22 |
+
|
| 23 |
+
Which item of the following to recommend for <user i> ? <item_j> <item_k> <item_l> ...
|
| 24 |
+
|
| 25 |
+
(ii) Sequential Recommendation
|
| 26 |
+
|
| 27 |
+
Given the purchase history of <user_i>: <item_j> <item_k> <item_l> ... , recommend the next item to the user.
|
| 28 |
+
|
| 29 |
+
(iii) Explanation Generation
|
| 30 |
+
|
| 31 |
+
Generate an explanation for <user_i> about <item_j>.
|
| 32 |
+
|
| 33 |
+
(a) Large language model (LLM)-based recommendation
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
Figure 1: Illustration of our motivation. In (a), LLM-based recommenders bridge users (pink) and items (green) via text prompts (blue), failing to capture high-order interactive signals. Conversely, GNNs can capture these signals, e.g., 3-hop neighbors (red arrows) in (b).
|
| 37 |
+
|
| 38 |
+
(b) Graph neural network (GNN)-based recommendation
|
| 39 |
+
|
| 40 |
+
explanation generation based on user reviews. This enables LLMs to understand diverse perspectives in behavioral semantics for recommendations. However, there still remain two major drawbacks for these LLM-based recommenders. One is their inability to learn the high-order collaborative signal within the user-item interaction graph, even though this signal could greatly assist models which identify the target from millions of candidates. As depicted in Fig. 1 (b), graph neural networks (GNNs), by propagating node embeddings via user-item interaction edges, have been widely utilized to capture these signals for recommendations (He et al., 2020; Zhao et al., 2022; Yu et al., 2022, 2023; Wang et al., 2023). More recently, researchers have exploited LLMs to enhance graph learning for recommendations (Wei et al., 2024; Du et al., 2024; Wang et al., 2024e,f). Nevertheless, integrating the learning process of GNNs into LLMs for recom
|
| 41 |
+
|
| 42 |
+
mendations still poses an unresolved challenge.
|
| 43 |
+
|
| 44 |
+
Another issue with LLM-based recommenders is their struggle with token decomposition, where an ID token (e.g., "user_1234") is often split into multiple tokens by LLMs (e.g., "user", "\_, "12", and "34"). To address the issue, Geng et al. (2022) and Li et al. (2023b) propose representing each user or item (e.g., "user_1234") with both its ID tokens (e.g., "user", "\_, "12", and "34") and whole-word embeddings. Each ID's tokens are covered by one whole-word embedding vector, while all other non-ID tokens share an identical embedding vector. This can emphasize the self-attention correlations among tokens representing the same user or item. However, such whole-word embeddings cannot independently represent users and items, failing to address spurious relatedness among their IDs, e.g., "1234" and "8912" are independent, while they share the same token "12".
|
| 45 |
+
|
| 46 |
+
Motivated by the issues, we propose an enhanced LLM-based recommender model (ELMRec). We present novel whole-word embeddings using random feature propagation (Eliasof et al., 2023), which remarkably enhance high-order interaction awareness of LLMs for recommendations. This is inspired by the fact that GNNs propagate node embeddings to their neighbors, leading them to convey similar features (Wang et al., 2024c), which can reflect their relationships in the interactive graph. This also mitigates the spurious relatedness between IDs, as each ID is represented by both its tokens and their corresponding whole-word embeddings. Our approach allows LLMs to seamlessly absorb high-order interactive signals for recommendations without requiring graph pre-training.
|
| 47 |
+
|
| 48 |
+
Furthermore, LLM-based recommenders may prioritize predicting the next items based on earlier interactions rather than recent ones. We attribute this to two factors: (1) during training, they repeatedly sample random segments from interaction sequences to predict the last item in each segment, potentially causing them to overly emphasize past interactions; and (2) the Transformer (Vaswani et al., 2017) in LLMs excels at capturing long-term dependencies among historical interactions, which potentially leads LLMs to pay less attention to recent ones. Hence, we introduce a simple, effective, and training-free reranking approach.
|
| 49 |
+
|
| 50 |
+
The main contributions of our work are summarized as follows: (1) we present a novel whole-word embedding approach, which significantly boosts
|
| 51 |
+
|
| 52 |
+
the ability of LLMs to capture the relative positions of users and items within the interaction graph. This finding may inspire endeavors to incorporate knowledge graphs into LLMs via whole-word embedding for recommendations; (2) we demonstrate that LLMs might recommend items based on users' past interactions and propose a plug-and-play reranking solution; and (3) extensive experiments demonstrate that EMLRec achieves state-of-the-art (SOTA) performance in both direct and sequential recommendations.
|
| 53 |
+
|
| 54 |
+
# 2 Related Work
|
| 55 |
+
|
| 56 |
+
# 2.1 LLM-based Recommendation
|
| 57 |
+
|
| 58 |
+
LLMs have exhibited remarkable capabilities in item recommendations (Li et al., 2022; Wei et al., 2024; Huang et al., 2023; Li et al., 2024; Wang et al., 2024a) and explainable recommendations (Yang et al., 2023; Cheng et al., 2023). Many efforts have leveraged the LLMs' knowledge to enhance recommendations, addressing zero-/few-shot and cold-start scenarios (He et al., 2023; Sanner et al., 2023), reranking candidates (Yue et al., 2023; Carraro and Bridge, 2024), and refining representations (Harte et al., 2023; Ren et al., 2023; Lin et al., 2023; Lei et al., 2023; Viswanathan et al., 2023).
|
| 59 |
+
|
| 60 |
+
Recently, Geng et al. (2022) convert multi-modal data, e.g., reviews, user-item interactions, and sequential behaviors, into text-to-text prompts for LLM-based recommenders. Li et al. (2023b) further propose a novel prompt distillation, reducing inference time without compromising performance.
|
| 61 |
+
|
| 62 |
+
# 2.2 GNN-based Recommendation
|
| 63 |
+
|
| 64 |
+
Many studies (He et al., 2020; Wang et al., 2022; Zhao et al., 2022; Lin et al., 2022; Yu et al., 2023; Wang et al., 2024d) have been conducted to capture high-order features from the interaction graph. A surge of research has recently leveraged LLMs to enhance graph learning for recommendation tasks. This includes LLM-based graph structure augmentation (Wei et al., 2024), enhancing the text attributes of nodes and their neighbors (Chen et al., 2024; Du et al., 2024; Damianou et al., 2024), aligning graph-structured interactive patterns with textual inference (Guo et al., 2024; Huang et al., 2024), and leveraging massive textual prompts to generate the interaction edges for LLM-based recommenders (Wang et al., 2024e). However, they pay no attention to incorporating the learning process of GNNs into LLMs for recommendations.
|
| 65 |
+
|
| 66 |
+
# 3 Preliminary
|
| 67 |
+
|
| 68 |
+
# 3.1 Model Basics
|
| 69 |
+
|
| 70 |
+
Following prior research (Li et al., 2023b), ELM-Rec utilizes three recommendation tasks and distills their long textual prompts into prompt words (i.e., "P1", "P2", and "P3" in Fig. 2). These tasks are (i) direct recommendations, suggesting an item from a given candidate list to a user, (ii) sequential recommendations, forecasting the next item through user sequential interactions, and (iii) explanation generation for user interactions. This work aims to enhance (i) and (ii), while the task (iii) follows the previous work by Li et al. (2023b).
|
| 71 |
+
|
| 72 |
+
We define the input and output words of each task as $X = [x_{1},\dots,x_{|X|}]$ and $Y = [y_{1},\dots,y_{|Y|}]$ . We concatenate the input tokens with prompt vectors via $\mathbf{X}_{\mathbf{p}} = [\mathbf{x}_1,\dots,\mathbf{x}_{|X|},\mathbf{p}_1,\dots,\mathbf{p}_{|P|}]$ . Given the whole-word embedding $\mathbf{X}_{\omega} = [\omega_1,\dots,\omega_{|X| + |P|}]$ , we feed $\hat{\mathbf{X}} = \mathbf{X}_{\mathbf{p}} + \alpha \mathbf{X}_{\omega}$ into LLMs to obtain a probability distribution $p(y|Y_{< t},X)$ over a vocabulary at step $t$ , where $Y_{< t}$ denotes the tokens generated before step $t$ . We adopt a log-likelihood loss function to optimize the model parameters $\Theta$ :
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\mathcal {L} _ {\Theta} = \frac {1}{| \mathcal {D} |} \sum_ {(X, Y) \in \mathcal {D}} \frac {1}{| Y |} \sum_ {t = 1} ^ {| Y |} - \log p (y | Y _ {< t}, X), \tag {1}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $\mathcal{D}$ indicates a set of input-output pairs for three tasks. $|\mathcal{D}|$ and $|Y|$ denote the number of pairs, and words in each output, respectively.
|
| 79 |
+
|
| 80 |
+
# 3.2 Whole-word Embedding
|
| 81 |
+
|
| 82 |
+
To comprehend the functioning of whole-word embedding (Geng et al., 2022; Li et al., 2023b), we revisit the self-attention value $a_{i,j}$ in LLMs with the whole-word embeddings (i.e., $\omega_i$ and $\omega_j$ ):
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\left\{ \begin{array}{l} \mathbf {q} _ {i} = \left(\mathbf {x} _ {i} + \omega_ {i}\right) \mathbf {W} _ {Q}, \\ \mathbf {k} _ {j} = \left(\mathbf {x} _ {j} + \omega_ {j}\right) \mathbf {W} _ {K}, \\ \mathbf {v} _ {i} = \left(\mathbf {x} _ {i} + \omega_ {i}\right) \mathbf {W} _ {V}, \\ a _ {i, j} = \operatorname {s o f t m a x} \left(\mathbf {q} _ {i} \mathbf {k} _ {j} ^ {\top}\right). \end{array} \right. \tag {2}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
We further unfold $\mathbf{q}_i\mathbf{k}_j^\top$ as follows:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\begin{array}{l} \mathbf {q} _ {i} \mathbf {k} _ {j} ^ {\top} = (\mathbf {x} _ {i} + \omega_ {i}) \mathbf {W} _ {Q} \mathbf {W} _ {K} ^ {\top} (\mathbf {x} _ {j} + \omega_ {j}) ^ {\top}, \\ = \underbrace {\mathbf {x} _ {i} \mathbf {W} _ {Q} \mathbf {W} _ {K} ^ {\top} \mathbf {x} _ {j} ^ {\top}} _ {\text {S e l f - a t t e n t i o n C o r r e l a t i o n s}} + \mathbf {x} _ {i} \mathbf {W} _ {Q} \mathbf {W} _ {K} ^ {\top} \omega_ {j} ^ {\top} \\ + \omega_ {i} \mathbf {W} _ {Q} \mathbf {W} _ {K} ^ {\top} \mathbf {x} _ {j} ^ {\top} + \underbrace {\omega_ {i} \mathbf {W} _ {Q} \mathbf {W} _ {K} ^ {\top} \omega_ {j} ^ {\top}} _ {\text {W h o l e - w o r d C o r r e l a t i o n s}}. \tag {3} \\ \end{array}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
Figure 2: Illustration of input and output words.
|
| 96 |
+
|
| 97 |
+
The whole-word correlations can improve the self-attention weights among tokens of the same user or item. This is attributed to the fact that $\omega_{i}$ and $\omega_{j}$ are identical if they are the same ID's tokens. Therefore, we propose enhancing graph awareness in LLMs by representing user-item relationships with $\omega_{i}$ and $\omega_{j}$ .
|
| 98 |
+
|
| 99 |
+
# 4 Approach
|
| 100 |
+
|
| 101 |
+
We present our ELMRec from both direct and sequential recommendation perspectives.
|
| 102 |
+
|
| 103 |
+
# 4.1 Enhancing Direct Recommendation
|
| 104 |
+
|
| 105 |
+
Motivated by Wang et al. (2024c)'s work, we utilize the random feature propagation (Eliasof et al., 2023) based on LightGCN (He et al., 2020) to generate interaction graph-aware whole-word embeddings. The whole-word embeddings can enhance LLMs' ability to understand the graph-constructed user-item interactions.
|
| 106 |
+
|
| 107 |
+
Random Feature Propagation. As illustrated in Fig. 3, the random feature propagation via LightGCN makes close nodes comprise similar information, thereby sharing semantic similarity. Specifically, we initiate user and item embeddings by the normal distribution with mean 0 and standard deviation $\sigma$ as follows:
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\psi (v) \sim \mathcal {N} (0, \sigma^ {2}), \phi (u) \sim \mathcal {N} (0, \sigma^ {2}), \tag {4}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
where $\psi (v)$ and $\phi (u)$ indicate the embeddings of item $v$ and user $u$ , respectively. We then utilize LightGCN to perform the graph convolutions due to its simplification and effectiveness, which is formulated layer by layer as follows:
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\psi (v) ^ {(l + 1)} = \sum_ {u \in \mathcal {N} _ {v}} \frac {1}{\sqrt {| \mathcal {N} _ {v} |} \sqrt {| \mathcal {N} _ {u} |}} \phi (u) ^ {(l)}, \tag {5}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\phi (u) ^ {(l + 1)} = \sum_ {v \in \mathcal {N} _ {u}} \frac {1}{\sqrt {| \mathcal {N} _ {u} |} \sqrt {| \mathcal {N} _ {v} |}} \psi (v) ^ {(l)},
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Large Language Model
|
| 125 |
+
Random Feature Propagation
|
| 126 |
+
Figure 3: Illustration of integrating interaction graph awareness into LLMs. We first leverage random feature propagation based on LightGCN to obtain whole-word embeddings, which can reflect user-item positions in the interaction graph by their semantic similarity conveyed by red, blue, and yellow edges. We then merge whole-word and word embeddings to enhance LLMs with interaction graph awareness.
|
| 127 |
+
|
| 128 |
+
where $l$ refers to the layer of LightGCN, and $\mathcal{N}_v$ and $\mathcal{N}_u$ denote the neighbor nodes of item $v$ and user $u$ , respectively. By repeatedly applying Eq. (5), we can obtain the coefficient $c_{u_j - > u_i}$ representing the influence of $u_i$ 's 2-order neighbor $u_j$ on $u_i$ as follows:
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
c _ {u _ {j} - > u _ {i}} = \frac {1}{\sqrt {\left| \mathcal {N} _ {u} \right|} \sqrt {\left| \mathcal {N} _ {v} \right|}} \sum_ {k \in \mathcal {N} _ {u _ {i}} \cap \mathcal {N} _ {u _ {j}}} \frac {1}{\left| \mathcal {N} _ {k} \right|}. \tag {6}
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
We can observe that the influence is determined by: (1) the number of their co-interactions, the more the stronger; (2) the popularity of the shared items, the less popular the stronger; and (3) the activity level of user $u_{i}$ , the less active the stronger. The stronger influence indicates that more information is propagated to its high-order neighbors, reflecting the high-order interactive correlations between users and items in the graph.
|
| 135 |
+
|
| 136 |
+
Interaction Graph-aware Embeddings. We define the final embeddings after performing random feature propagation as follows:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\hat {\psi} (v) = \frac {\sum_ {l = 0} ^ {L} \psi (v) ^ {(l)}}{L + 1}, \hat {\phi} (u) = \frac {\sum_ {l = 0} ^ {L} \phi (u) ^ {(l)}}{L + 1}, \tag {7}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
where $L$ indicates the number of LightGCN layers.
|
| 143 |
+
|
| 144 |
+
We substitute the whole-word embeddings by:
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\omega_ {i} = \left\{ \begin{array}{l l} \hat {\psi} (v) & \omega_ {i} \text {r e p r e s e n t s i t e m} v, \\ \hat {\phi} (u) & \omega_ {i} \text {r e p r e s e n t s u s e r} u, \\ \omega_ {0} & \text {o t h e r w i s e}, \end{array} \right. \tag {8}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
where $\omega_0$ refers to the general embedding vector for all non-ID tokens. As such, the enhanced whole-word embedding not only mitigates the spurious relatedness between user and item IDs but also captures high-order collaborative signals among users and items. This is because each ID is represented by both its tokens and whole-word embeddings.
|
| 151 |
+
|
| 152 |
+
Remarks. The majority of tokenizers separate large digital numbers into subwords using Byte-Pair Encoding (Sennrich et al., 2016) or Unigram (Kudo and Richardson, 2018). As a result, only a small number of subwords in the vocabulary are leveraged to represent all digital tokens (e.g., $529^{2}$ out of 32,100 subwords in T5-11b $^{3}$ ). This leads to a low rank in embedding matrices due to the limited number of digital subwords compared to users and items. In contrast, incorporating the whole-word embedding into the matrices allows a higher rank, further enhancing LLMs' ID representation power (Chen et al., 2021).
|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
Direct Recommendation Ground-truth
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
$\widehat{\mathbf{i}}$ Close Node $\widehat{\mathbf{i}}$ Remote Node
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
Sequential Recommendation
|
| 162 |
+
Figure 4: Influence of relative positions within the interaction graph on direct and sequential recommendations.
|
| 163 |
+
|
| 164 |
+
# 4.2 Enhancing Sequential Recommendation
|
| 165 |
+
|
| 166 |
+
To prevent LLMs from overly prioritizing earlier interactions, we introduce incremental whole-word embeddings and a reranking approach.
|
| 167 |
+
|
| 168 |
+
Incremental whole-word embeddings. Indeed, negative samples for direct recommendations are randomly drawn from the sparse interaction graph, often making only the ground-truth item a close node for the target user. As shown in Fig. 4, by assessing their positions, ELMRec can effectively distinguish the close node from remote ones (i.e., negative samples). An input example of a direct recommendation is given as follows:
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
< P 1 > \underbrace {\text {u s e r} - 1 2 3} _ {\text {t a r g e t u s e r}} \quad i t e m _ {-} 5 6 7 \quad \underbrace {\text {i t e m} - 3 3 4} _ {\text {t a r g e t i t e m}} \dots \quad i t e m _ {-} 1 2 3 8. \tag {9}
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
The self-attention values between token embeddings of user_123 and item_334 are enhanced since they are close in the graph and have strong graph-based correlations. In contrast, an input example of a sequential recommendation would be given by:
|
| 175 |
+
|
| 176 |
+
$$
|
| 177 |
+
< P 2 > \underbrace {\text {u s e r} _ {1 2 3}} _ {\text {t a r g e t u s e r}} \underbrace {\text {i t e m} _ {1 0 0} \text {i t e m} _ {1 0 4} \dots \text {i t e m} _ {1 3 6}} _ {\text {t o k e n s w h o s e s e l f - a t t e n t i o n i s h i g h l i g h t e d}}. \tag {10}
|
| 178 |
+
$$
|
| 179 |
+
|
| 180 |
+
All these items of {item_100 ... item_136} are the user's interacted items, which are close to the user in the graph as shown in Fig. 4. As a result, the self-attention values among all these token embeddings are highlighted, potentially exacerbating the model's tendency to prioritize earlier interactions overly and weakening the sequential patterns needed for LLMs to generate the next item.
|
| 181 |
+
|
| 182 |
+
We thus employ incremental whole-word embeddings (Geng et al., 2022; Li et al., 2023b), in which we assign increasing indices to users and items based on their appearance order in the input sequence as follows:
|
| 183 |
+
|
| 184 |
+
$$
|
| 185 |
+
< P 2 > \underbrace {u s e r _ {-} 1 2 3} _ {\# 0} \underbrace {i t e m _ {-} 1 0 0} _ {\# 1} \underbrace {i t e m _ {-} 1 0 4} _ {\# 2} \dots \underbrace {i t e m _ {-} 1 3 6} _ {\# N}. \tag {11}
|
| 186 |
+
$$
|
| 187 |
+
|
| 188 |
+
<table><tr><td>Dataset</td><td>#User</td><td>#Item</td><td>#Review</td><td>Avg.</td><td>Density (%)</td></tr><tr><td>Sports</td><td>48,993</td><td>34,298</td><td>296,337</td><td>8.3</td><td>0.0453</td></tr><tr><td>Beauty</td><td>22,363</td><td>12,101</td><td>198,502</td><td>8.9</td><td>0.0734</td></tr><tr><td>Toys</td><td>19,804</td><td>22,086</td><td>167,597</td><td>8.6</td><td>0.0724</td></tr></table>
|
| 189 |
+
|
| 190 |
+
Table 1: Statistics of dataset. "#User", "#Item", "#Review", and "#Avg" denote the number of users, items, reviews, and the average user interactions, respectively.
|
| 191 |
+
|
| 192 |
+
Subsequently, we utilize the indices to extract the corresponding embeddings from the global whole-word embedding matrix $\mathbf{X}_{\hat{\omega}}$ ( $\mathbf{X}_{\hat{\omega}} \in \mathbb{R}^{I \times d_n}$ , where $I$ refers to the maximum incremental index). Therefore, each ID is represented by its literal representation and the appearance order, which not only identifies tokens belonging to the same ID but also indicates their appearance order. The approach potentially emphasizes recent interactions with whole-word embeddings of larger index numbers.
|
| 193 |
+
|
| 194 |
+
Reranking approach. To capture the sequential dependencies among items, recent research (Geng et al., 2022; Li et al., 2023b) leaves the last item in each user's historical interactions for testing, and then iteratively and randomly selects interaction subsequences to predict the last item within each subsequence for training LLMs. We posit that this training strategy would lead LLMs to overemphasize early subsequences. For instance, when presented with the sequential interactions $(i_1 \rightarrow i_2 \rightarrow i_3 \rightarrow i_4 \rightarrow i_5)$ of user $u_1$ , LLMs are highly likely to recommend items $i_3$ and $i_4$ . This is because the subsequences $(i_1 \rightarrow i_2 \rightarrow i_3)$ and $(i_2 \rightarrow i_3 \rightarrow i_4)$ might be included in the training data caused by this strategy.
|
| 195 |
+
|
| 196 |
+
To alleviate the issue, we propose a training-free, straightforward, yet effective reranking approach. Specifically, for each prediction, we prompt LLMs to provide $N$ more items with their ordered probabilities. We then rerank the first $(k + N)$ candidates to filter out the items that the user has interacted with. We refine the probability distribution $p(y|Y_{< t},X)$ at step $t$ as follows:
|
| 197 |
+
|
| 198 |
+
$$
|
| 199 |
+
p _ {(: k)} (y | Y _ {< t}, X) \leftarrow \operatorname {r e r a n k} \left(p _ {(: k + N)} (y | Y _ {< t}, X)\right). \tag {12}
|
| 200 |
+
$$
|
| 201 |
+
|
| 202 |
+
# 5 Experiments
|
| 203 |
+
|
| 204 |
+
# 5.1 Experimental Setup
|
| 205 |
+
|
| 206 |
+
Dataset and Metrics. We performed experiments on three benchmark datasets, i.e., Sports & Outdoors, Beauty, and Toys & Games<sup>4</sup>. Following
|
| 207 |
+
|
| 208 |
+
<table><tr><td rowspan="2">Models</td><td colspan="4">Sports</td><td colspan="4">Beauty</td><td colspan="4">Toys</td></tr><tr><td>H@5</td><td>N@5</td><td>H@10</td><td>N@10</td><td>H@5</td><td>N@5</td><td>H@10</td><td>N@10</td><td>H@5</td><td>N@5</td><td>H@10</td><td>N@10</td></tr><tr><td colspan="13">Traditional Approach</td></tr><tr><td>SampleX</td><td>0.2362</td><td>0.1505</td><td>0.3290</td><td>0.1800</td><td>0.2247</td><td>0.1441</td><td>0.3090</td><td>0.1711</td><td>0.1958</td><td>0.1244</td><td>0.2662</td><td>0.1469</td></tr><tr><td colspan="13">Large Language Model-based Approach</td></tr><tr><td>P5</td><td>0.1955</td><td>0.1355</td><td>0.2802</td><td>0.1627</td><td>0.1564</td><td>0.1096</td><td>0.2300</td><td>0.1332</td><td>0.1322</td><td>0.0889</td><td>0.2023</td><td>0.1114</td></tr><tr><td>RLS</td><td>0.2092</td><td>0.1502</td><td>0.3001</td><td>0.1703</td><td>0.1564</td><td>0.1096</td><td>0.2300</td><td>0.1332</td><td>0.1423</td><td>0.0825</td><td>0.1926</td><td>0.1028</td></tr><tr><td>POD</td><td>0.2105</td><td>0.1539</td><td>0.2889</td><td>0.1782</td><td>0.1931</td><td>0.1404</td><td>0.2677</td><td>0.1639</td><td>0.1461</td><td>0.1029</td><td>0.2119</td><td>0.1244</td></tr><tr><td>ELMRec</td><td>0.5782</td><td>0.4792</td><td>0.6479</td><td>0.4852</td><td>0.6052</td><td>0.4852</td><td>0.6794</td><td>0.4973</td><td>0.5178</td><td>0.4051</td><td>0.6045</td><td>0.4141</td></tr><tr><td>Impv.</td><td>174.7%*</td><td>211.4%*</td><td>124.3%*</td><td>172.3%*</td><td>213.4%*</td><td>245.6%*</td><td>153.8%*</td><td>203.4%*</td><td>254.4%*</td><td>293.7%*</td><td>185.3%*</td><td>232.9%*</td></tr><tr><td colspan="13">Graph Neural Network-based Approach</td></tr><tr><td>LightGCN</td><td>0.4150</td><td>0.3002</td><td>0.5436</td><td>0.3418</td><td>0.4205</td><td>0.3067</td><td>0.5383</td><td>0.3451</td><td>0.3879</td><td>0.2874</td><td>0.5106</td><td>0.3272</td></tr><tr><td>NCL</td><td>0.4292</td><td>0.3131</td><td>0.5592</td><td>0.3551</td><td>0.4378</td><td>0.3228</td><td>0.5542</td><td>0.3607</td><td>0.3975</td><td>0.2925</td><td>0.5120</td><td>0.3325</td></tr><tr><td>XSimGCL</td><td>0.3547</td><td>0.2689</td><td>0.4486</td><td>0.2992</td><td>0.3530</td><td>0.2734</td><td>0.4392</td><td>0.3012</td><td>0.3351</td><td>0.2614</td><td>0.4186</td><td>0.2885</td></tr><tr><td>ELMRec</td><td>0.5782</td><td>0.4792</td><td>0.6479</td><td>0.4852</td><td>0.6052</td><td>0.4852</td><td>0.6794</td><td>0.4973</td><td>0.5178</td><td>0.4051</td><td>0.6045</td><td>0.4141</td></tr><tr><td>Impv.</td><td>34.7%*</td><td>53.1%*</td><td>15.9%*</td><td>36.6%*</td><td>38.2%*</td><td>50.3%*</td><td>22.6%*</td><td>37.9%*</td><td>30.3%*</td><td>38.5%*</td><td>16.0%*</td><td>24.5%*</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 2: Performance comparison on direct recommendation. **Bold:** Best, underline: Second best. β*β indicates that the improvement is statistically significant ( $p$ -value $< 0.05$ ) in the 10-trial T-test.
|
| 211 |
+
|
| 212 |
+
<table><tr><td rowspan="2">Models</td><td colspan="4">Sports</td><td colspan="4">Beauty</td><td colspan="4">Toys</td></tr><tr><td>H@5</td><td>N@5</td><td>H@10</td><td>N@10</td><td>H@5</td><td>N@5</td><td>H@10</td><td>N@10</td><td>H@5</td><td>N@5</td><td>H@10</td><td>N@10</td></tr><tr><td colspan="13">Traditional Approach</td></tr><tr><td>Caser</td><td>0.0116</td><td>0.0072</td><td>0.0194</td><td>0.0097</td><td>0.0205</td><td>0.0131</td><td>0.0347</td><td>0.0176</td><td>0.0166</td><td>0.0107</td><td>0.0270</td><td>0.0141</td></tr><tr><td>GRU4Rec</td><td>0.0129</td><td>0.0086</td><td>0.0204</td><td>0.0110</td><td>0.0164</td><td>0.0099</td><td>0.0283</td><td>0.0137</td><td>0.0097</td><td>0.0059</td><td>0.0176</td><td>0.0084</td></tr><tr><td>HGN</td><td>0.0189</td><td>0.0120</td><td>0.0313</td><td>0.0159</td><td>0.0325</td><td>0.0206</td><td>0.0512</td><td>0.0266</td><td>0.0321</td><td>0.0221</td><td>0.0497</td><td>0.0277</td></tr><tr><td>SASRec</td><td>0.0233</td><td>0.0154</td><td>0.0350</td><td>0.0192</td><td>0.0387</td><td>0.0249</td><td>0.0605</td><td>0.0318</td><td>0.0463</td><td>0.0306</td><td>0.0675</td><td>0.0374</td></tr><tr><td colspan="13">Transformer-based Approach</td></tr><tr><td>BERT4Rec</td><td>0.0115</td><td>0.0075</td><td>0.0191</td><td>0.0099</td><td>0.0203</td><td>0.0124</td><td>0.0347</td><td>0.0170</td><td>0.0116</td><td>0.0071</td><td>0.0203</td><td>0.0099</td></tr><tr><td>FDSA</td><td>0.0182</td><td>0.0122</td><td>0.0288</td><td>0.0156</td><td>0.0267</td><td>0.0163</td><td>0.0407</td><td>0.0208</td><td>0.0228</td><td>0.0140</td><td>0.0381</td><td>0.0189</td></tr><tr><td>S3-Rec</td><td>0.0251</td><td>0.0161</td><td>0.0385</td><td>0.0204</td><td>0.0387</td><td>0.0244</td><td>0.0647</td><td>0.0327</td><td>0.0443</td><td>0.0294</td><td>0.0700</td><td>0.0376</td></tr><tr><td colspan="13">Large Language Model-based Approach</td></tr><tr><td>P5</td><td>0.0387</td><td>0.0312</td><td>0.0460</td><td>0.0336</td><td>0.0508</td><td>0.0379</td><td>0.0664</td><td>0.0429</td><td>0.0648</td><td>0.0567</td><td>0.0709</td><td>0.0587</td></tr><tr><td>RSL</td><td>0.0392</td><td>0.0330</td><td>0.0512</td><td>0.0375</td><td>0.0508</td><td>0.0381</td><td>0.0667</td><td>0.0446</td><td>0.0676</td><td>0.0583</td><td>0.0712</td><td>0.0596</td></tr><tr><td>POD</td><td>0.0497</td><td>0.0399</td><td>0.0585</td><td>0.0422</td><td>0.0559</td><td>0.0420</td><td>0.0696</td><td>0.0471</td><td>0.0692</td><td>0.0589</td><td>0.0744</td><td>0.0601</td></tr><tr><td>ELMRec</td><td>0.0538</td><td>0.0453</td><td>0.0616</td><td>0.0471</td><td>0.0609</td><td>0.0486</td><td>0.0750</td><td>0.0529</td><td>0.0713</td><td>0.0608</td><td>0.0764</td><td>0.0618</td></tr><tr><td>Impv.</td><td>8.2%*</td><td>13.5%*</td><td>5.3%*</td><td>11.6%*</td><td>8.9%*</td><td>13.5%*</td><td>7.8%*</td><td>12.3%*</td><td>3.0%</td><td>3.2%</td><td>2.7%</td><td>2.8%</td></tr></table>
|
| 213 |
+
|
| 214 |
+
Table 3: Performance comparison between ELMRec and baselines in the sequential recommendation task.
|
| 215 |
+
|
| 216 |
+
Li et al. (2023b)'s work, for direct and sequential recommendation tasks, we designate the last interaction as the test label, the second-to-last as the validation label, and the remaining interactions as training data. Likewise, for the explanation generation task, we split each dataset into training, validation, and test sets in an 8:1:1 ratio. Table 1 provides the statistics of datasets. We utilized hit rate $(\mathrm{HR})@k$ $(\mathrm{H}@\bar{k})$ and normalized discounted cumulative gain (NDCG) $@k$ $(\mathbf{N}@\bar{k})$ with $k\in \{5,10\}$ as evaluation metrics.
|
| 217 |
+
|
| 218 |
+
Baselines. We compared ELMRec with seven methods for direct recommendations: SimpleX (Mao et al., 2021), P5 (Geng et al., 2022), RLS (Chu et al., 2023), POD (Li et al., 2023b), LightGCN (He et al., 2020), NCL (Lin et al., 2022) and XSimGCL (Yu et al., 2023). We also compared ELMRec with ten methods for sequential recommendations: CASER (Tang and Wang, 2018), HGN (Ma et al., 2019), GRU4Rec (Hidasi et al., 2015), BERT4Rec (Sun et al., 2019), FDSA (Zhang
|
| 219 |
+
|
| 220 |
+
et al., 2019), SASRec (Kang and McAuley, 2018), S3-Rec (Zhou et al., 2020), P5 (Geng et al., 2022), RLS (Chu et al., 2023) and POD (Li et al., 2023b).
|
| 221 |
+
|
| 222 |
+
Consistent with the LLM-based competitors P5 and POD, ELMRec adopts T5-small (Raffel et al., 2020) as the LLM. Due to space limits, further experimental details are provided in Appendix A.1.
|
| 223 |
+
|
| 224 |
+
# 5.2 Main Results
|
| 225 |
+
|
| 226 |
+
Tables 2 and 3 show the comparative results between ELMRec and baselines for direct and sequential recommendations, respectively. We can see that ELMRec is consistently superior to all competitors on all three datasets. Specifically, the improvements compared with the runner-up NCL were $15.9\% \sim 53.1\%$ for direct recommendations, and the improvements compared with the runner-up POD were $2.7\% \sim 13.5\%$ for sequential recommendations across three datasets. We also have the following observations:
|
| 227 |
+
|
| 228 |
+
(1) LLM-based competitors notably fall short of GNN-based ones in direct recommendations, high
|
| 229 |
+
|
| 230 |
+
<table><tr><td rowspan="2">Models</td><td colspan="2">Sports</td><td colspan="2">Beauty</td><td colspan="2">Toys</td></tr><tr><td>H@10</td><td>N@10</td><td>H@10</td><td>N@10</td><td>H@10</td><td>N@10</td></tr><tr><td colspan="7">Direct recommendation</td></tr><tr><td>w/o Text Prompt</td><td>0.1270</td><td>0.1006</td><td>0.0381</td><td>0.0296</td><td>0.0190</td><td>0.0180</td></tr><tr><td rowspan="2">w/o Graph-aware ELMRec</td><td>0.2890</td><td>0.1783</td><td>0.2687</td><td>0.1650</td><td>0.2141</td><td>0.1243</td></tr><tr><td>0.6479</td><td>0.4852</td><td>0.6794</td><td>0.4973</td><td>0.6045</td><td>0.4141</td></tr><tr><td>Impv.</td><td>124.2%</td><td>172.1%</td><td>152.8%</td><td>201.4%</td><td>182.3%</td><td>233.1%</td></tr><tr><td colspan="7">Sequential recommendation</td></tr><tr><td rowspan="2">w/o Reranking ELMRec</td><td>0.0599</td><td>0.0435</td><td>0.0703</td><td>0.0471</td><td>0.0737</td><td>0.0572</td></tr><tr><td>0.0616</td><td>0.0471</td><td>0.0750</td><td>0.0529</td><td>0.0764</td><td>0.0618</td></tr><tr><td>Impv.</td><td>2.7%</td><td>8.3%</td><td>6.7%</td><td>7.7%</td><td>3.7%</td><td>8.0%</td></tr></table>
|
| 231 |
+
|
| 232 |
+
lighting the significance of high-order interactive signals. Our ELMRec, by integrating graph awareness into LLMs, surpasses the leading LLM-based competitor, POD, by $124.3\%$ to $293.7\%$ .
|
| 233 |
+
|
| 234 |
+
(2) GNN-based approaches, LightGCN, NCL, and XSimGCL, that learn high-order signals are competitive among baselines for direct recommendations. In contrast, ELMRec outperforms them by leveraging richer semantic information through learning text-to-text prompts of sequential behaviors and reviews.
|
| 235 |
+
|
| 236 |
+
(3) Traditional and Transformer-based methods without pre-trained knowledge are less effective than LLM-based methods in the sequential recommendation task. In contrast, by leveraging LLMs' knowledge to extract user preferences and item characteristics from multimodal textual prompts, P5, RSL, POD, and ELMRec effectively infer users' behavioral patterns, enhancing the potential of LLMs for sequential recommendations.
|
| 237 |
+
|
| 238 |
+
(4) Overall, the sequential recommendation task is more challenging than the direct recommendation task, as evidenced by the lower $\mathrm{HR}@\mathbf{k}$ and $\mathrm{N}@\mathbf{k}$ values across all methods. This is mainly because the number of candidates in sequential recommendations is much larger than those in direct recommendations. Exploring effective prompts to reduce the candidate range for the former task is an interesting direction for future work.
|
| 239 |
+
|
| 240 |
+
# 5.3 Ablation Study
|
| 241 |
+
|
| 242 |
+
To examine the effectiveness of each component in ELMRec, we conducted an ablation study in Tables 4 and 5. The result provides four findings as follows:
|
| 243 |
+
|
| 244 |
+
(1) The substantial performance drop of ELM-Rec without interaction graph awareness supports our assumption that the novel whole-word embed
|
| 245 |
+
|
| 246 |
+
Table 4: Ablation study. "w/o Graph-aware" and "w/o Reranking" denote the ELMRec without the interaction graph awareness and reranking approach, respectively. "w/o Text Prompt" indicates that only whole-word embeddings are fed into the LLM for recommendations.
|
| 247 |
+
|
| 248 |
+
<table><tr><td rowspan="2">Models</td><td colspan="2">Sports</td><td colspan="2">Beauty</td><td colspan="2">Toys</td></tr><tr><td>H@10</td><td>N@10</td><td>H@10</td><td>N@10</td><td>H@10</td><td>N@10</td></tr><tr><td colspan="7">Direct recommendation</td></tr><tr><td>w/o Graph-aware</td><td>0.2890</td><td>0.1783</td><td>0.2687</td><td>0.1650</td><td>0.2141</td><td>0.1243</td></tr><tr><td>Prepending</td><td>0.3456</td><td>0.2174</td><td>0.2730</td><td>0.1675</td><td>0.2362</td><td>0.1309</td></tr><tr><td>Addition</td><td>0.6479</td><td>0.4852</td><td>0.6794</td><td>0.4973</td><td>0.6045</td><td>0.4141</td></tr></table>
|
| 249 |
+
|
| 250 |
+
Table 5: Results by various methods of incorporating graph-aware whole-word embeddings. "Prepending" refers to prepending directly whole word embedding before the input sequence. "Addition" indicates adding graph-aware embeddings to ID tokens.
|
| 251 |
+
|
| 252 |
+
<table><tr><td rowspan="2">Whole-word Embeddings</td><td colspan="2">Sports</td><td colspan="2">Beauty</td><td colspan="2">Toys</td></tr><tr><td>H@10</td><td>N@10</td><td>H@10</td><td>N@10</td><td>H@10</td><td>N@10</td></tr><tr><td colspan="7">Direct recommendation</td></tr><tr><td>- Random</td><td>0.2758</td><td>0.1736</td><td>0.2850</td><td>0.1752</td><td>0.2127</td><td>0.1240</td></tr><tr><td>- Incremental</td><td>0.2989</td><td>0.1820</td><td>0.2881</td><td>0.1753</td><td>0.2207</td><td>0.1334</td></tr><tr><td>- Graph-aware</td><td>0.6479</td><td>0.4852</td><td>0.6794</td><td>0.4973</td><td>0.6045</td><td>0.4141</td></tr><tr><td colspan="7">Sequential recommendation</td></tr><tr><td>- Random</td><td>0.0579</td><td>0.0413</td><td>0.0713</td><td>0.0473</td><td>0.0741</td><td>0.0572</td></tr><tr><td>- Incremental</td><td>0.0616</td><td>0.0471</td><td>0.0750</td><td>0.0529</td><td>0.0764</td><td>0.0618</td></tr><tr><td>- Graph-aware</td><td>0.0556</td><td>0.0407</td><td>0.0708</td><td>0.0481</td><td>0.0733</td><td>0.0601</td></tr></table>
|
| 253 |
+
|
| 254 |
+
Table 6: Effect of various whole-word embeddings. "Graph-aware" represents the interaction graph-aware whole-word embeddings. "Incremental" indicates that the graph-aware whole-word embeddings are replaced with incremental embeddings. The result of "Random" is obtained by disordering the indices for incremental whole-word embeddings.
|
| 255 |
+
|
| 256 |
+
dings can enhance the LLM's comprehension of graph-based user-item relationships. This finding suggests that integrating comprehensive knowledge graphs into LLMs using whole-word embeddings could be a promising approach to further improve recommendation performance.
|
| 257 |
+
|
| 258 |
+
(2) The reranking approach boosts ELMRec's performance across all datasets, especially in yielding noticeable improvement in NDCG values. This demonstrates that the approach can mitigate the issue of overly prioritizing users' earlier interactions by optimizing the order of candidates.
|
| 259 |
+
(3) Without text prompts, the LLM struggles to effectively understand recommendation tasks. This shows that text prompts are essential for LLM-based recommenders, while graph awareness plays a supplementary role in improving its recommendation performance.
|
| 260 |
+
(4) We can see that prepending graph-aware embeddings can slightly improve performance but not as well as adding them with ID tokens. This supports our assumption that the graph-based correlations can enhance the self-attention values of tokens for direct recommendations.
|
| 261 |
+
|
| 262 |
+

|
| 263 |
+
Sequential Recommendation (SR) Direct Recommendation (DR)
|
| 264 |
+
|
| 265 |
+

|
| 266 |
+
Figure 5: Effect of $\alpha$ . The x-axis and the y-axis indicate the values of $\alpha$ and NDCG@10 (\%), respectively.
|
| 267 |
+
Figure 6: Effect of $\sigma$ and $L$ in direct recommendations.
|
| 268 |
+
|
| 269 |
+
<table><tr><td rowspan="2">Hyperprameter</td><td colspan="2">Sports</td><td colspan="2">Beauty</td><td colspan="2">Toys</td></tr><tr><td>H@10</td><td>N@10</td><td>H@10</td><td>N@10</td><td>H@10</td><td>N@10</td></tr><tr><td>N = 0</td><td>0.0599</td><td>0.0435</td><td>0.0703</td><td>0.0471</td><td>0.0737</td><td>0.0572</td></tr><tr><td>N = 5</td><td>0.0614</td><td>0.0469</td><td>0.0744</td><td>0.0528</td><td>0.0763</td><td>0.0617</td></tr><tr><td>N = 10</td><td>0.0616</td><td>0.0471</td><td>0.0748</td><td>0.0528</td><td>0.0764</td><td>0.0618</td></tr><tr><td>N = 15</td><td>0.0616</td><td>0.0471</td><td>0.0750</td><td>0.0529</td><td>0.0764</td><td>0.0618</td></tr></table>
|
| 270 |
+
|
| 271 |
+
Table 7: Effect of $N$ for reranking candidates.
|
| 272 |
+
|
| 273 |
+
# 5.4 In-depth Analyses of ELMRec
|
| 274 |
+
|
| 275 |
+
We conducted in-depth analyses to better understand ELMRec, including the effect of whole-word embedding, parameter sensitivity, computational complexity analysis, and visualization.
|
| 276 |
+
|
| 277 |
+
# 5.4.1 Effect of Whole-word Embedding
|
| 278 |
+
|
| 279 |
+
To show how to choose better whole-word embedding for different tasks, we conducted experiments and reported the result by ELMRec equipped with various whole-word embeddings in Table 6. We have the following insights:
|
| 280 |
+
|
| 281 |
+
(1) For the direct recommendation, the random indexed and incremental whole-word embeddings make similar contributions. The interaction graph-aware whole-word embeddings significantly improve LLMs' performance by empowering them to understand the relative positions of users and items in the graph-constructed interactions.
|
| 282 |
+
(2) For the sequential recommendation, graph-aware whole-word embeddings slightly harm the performance, as the way it emphasizes all interacted items weakens the sequential patterns. The incremental whole-word embeddings work better than the random indexed ones. This is because the increasing indices can better represent the appearance order of users' historical interactions.
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
|
| 286 |
+

|
| 287 |
+
(a) Effect of $\sigma$
|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
|
| 291 |
+

|
| 292 |
+
|
| 293 |
+

|
| 294 |
+
(b) Effect of $L$
|
| 295 |
+
|
| 296 |
+

|
| 297 |
+
|
| 298 |
+
# 5.4.2 Parameter Sensitivity
|
| 299 |
+
|
| 300 |
+
We investigated the impact of the four hyperparameters, i.e., $\alpha$ , $N$ , $\sigma$ , and $L$ on ELMRec.
|
| 301 |
+
|
| 302 |
+
Effect of $\alpha$ . The parameter $\alpha$ was assigned to vary the influence level of whole-word embeddings.
|
| 303 |
+
|
| 304 |
+
In Fig. 5, the optimal performance of sequential recommendation is distributed at smaller values of $\alpha$ , whereas the direct recommendation task requires a larger value of $\alpha$ .
|
| 305 |
+
|
| 306 |
+
Effect of $N$ . $N$ was to control the number of additional candidates in reranking approaching. The first five additional candidates, as shown in Table 7, contribute the most to the performance improvement, while increasing $N$ to 10 or 15 results in minimal or negligible improvements.
|
| 307 |
+
|
| 308 |
+
Effect of $\sigma$ . $\sigma$ represents the standard deviation to initiate user and item embeddings. Fig. 6 (a) illustrates that performance improves with increasing $\sigma$ until it reaches an optimum, after which it declines across all datasets, emphasizing the importance of an appropriate $\sigma$ .
|
| 309 |
+
|
| 310 |
+
Effect of $L$ . $L$ indicates the number of LightGCN layers. In Fig. 6 (b), when the number of layers $L$ exceeds 4, high-order features have limited or negative effects on performance, while resulting in higher computational costs.
|
| 311 |
+
|
| 312 |
+
# 5.4.3 Computational Complexity Analysis
|
| 313 |
+
|
| 314 |
+
The computational complexity of ELMRec hinges on Transformer $(m^2)$ and LightGCN $(n^2)$ , where $m$ signifies the number of average input tokens and $n$ denotes the total count of users and items. Given $m \ll n$ , the complexity of ELMRec in the fixed setting is $(n^2)$ , underscoring that it is essential to consider the number of users and items in practical deployment. That also prompts us to explore GNNs of less computational complexity for ELMRec, such as SIGN (Frasca et al., 2020), Nodeformer (Wu
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure 7: Visualization of whole-word embeddings of users and items after 1st and 3rd rounds of propagation. The dots in the same color denote users (or items) who have interacted with the same items (or users). The closer the dots, the greater their similarity. Further visualization results are provided in the Appendix. A.1.3.
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
|
| 321 |
+
<table><tr><td rowspan="2">Datasets</td><td colspan="3">Stages</td></tr><tr><td>Pre-training</td><td>DirRec</td><td>SeqRec</td></tr><tr><td>Sports</td><td>04h06m58s</td><td>17m07s</td><td>07m38s</td></tr><tr><td>Beauty</td><td>02h08m48s</td><td>10m32s</td><td>04m49s</td></tr><tr><td>Toys</td><td>03h56m09s</td><td>12m44s</td><td>04m04s</td></tr></table>
|
| 322 |
+
|
| 323 |
+
Table 8: Running time in various stages on three datasets. "DirRec" and "SeqRec" denote the cumulative time cost in direct and sequential recommendations, respectively. "h", "m", and "s" indicate "hours" and "minutes", and "seconds" respectively.
|
| 324 |
+
|
| 325 |
+
et al., 2022) and HGCN (Wang et al., 2023).
|
| 326 |
+
|
| 327 |
+
In Table 8, we present the running time by ELMRec in pretraining, direct recommendation, and sequential recommendation, respectively. Despite the substantial cost of the initial pretraining stage, ELMRec shows efficient performance in both direct and sequential recommendation inference.
|
| 328 |
+
|
| 329 |
+
# 5.4.4 Visualization
|
| 330 |
+
|
| 331 |
+
We visualized whole-word embeddings via t-SNE (Van der Maaten and Hinton, 2008). The result in Fig. 7 prompts the observations as stated below:
|
| 332 |
+
|
| 333 |
+
(1) The whole-word embeddings, learned via random feature propagation within the interaction graph, effectively represent similarity and diversity in collaborative signals among users and items. These embeddings guarantee that similar users and items are closely located in semantic space, so as to enhance the self-attention mechanism and integrate graph awareness into LLMs for recommendations.
|
| 334 |
+
(2) Both high- and low-order collaborative sig
|
| 335 |
+
|
| 336 |
+
nals reveal user and item similarities. Compared to low-order signals, high-order signals offer three advantages: (i) they better disperse embeddings of active users at the center of distributions on Toys and Beauty, (ii) they reinforce cohesion within clusters of items in the same color on Beauty, and (iii) they facilitate the detection of latent high-order relations among nodes (e.g., items in purple on Toys).
|
| 337 |
+
|
| 338 |
+
# 6 Conclusion
|
| 339 |
+
|
| 340 |
+
This paper presents ELMRec, an enhanced LLM-based recommender model. We introduce novel whole-word embeddings to improve the interaction graph awareness of LLMs and a reranking approach to prevent LLMs from prioritizing earlier interactions. Extensive experiments show the effectiveness of ELMRec in both direct and sequential recommendations. Future work involves (i) exploring computationally efficient GNNs (Frasca et al., 2020; Wu et al., 2022) and (ii) investigating more effective and learnable reranking approaches.
|
| 341 |
+
|
| 342 |
+
# Acknowledgements
|
| 343 |
+
|
| 344 |
+
We would like to thank anonymous reviewers for their thorough comments and suggestions. This work is supported by the international exchange grant from Tateisi Science and Technology Foundation (No.2242112), the research grant from JKA, and the China Scholarship Council (No.202208330093).
|
| 345 |
+
|
| 346 |
+
# Limitations
|
| 347 |
+
|
| 348 |
+
In the fine-tuning stage, the ELMRec model adopts time-consuming modules LightGCN $(O(n^{2}))$ where $n$ refers to the number of nodes in the interaction graph, therefore its computational cost heavily relies on the number of users and items in the recommender system. Another limitation is the same as LightGCN in its inability to handle cold start scenarios. It requires retraining the entire model from scratch if a new user or item is introduced, which can be costly.
|
| 349 |
+
|
| 350 |
+
# Ethics Statement
|
| 351 |
+
|
| 352 |
+
This paper does not involve the presentation of a new dataset, an NLP application, and the utilization of demographic or identity characteristics information.
|
| 353 |
+
|
| 354 |
+
# References
|
| 355 |
+
|
| 356 |
+
Sheldon Axler. 2015. Linear algebra done right. Springer.
|
| 357 |
+
Diego Carraro and Derek Bridge. 2024. Enhancing recommendation diversity by re-ranking with large language models. arXiv preprint arXiv:2401.11506.
|
| 358 |
+
Pu-Chin Chen, Henry Tsai, Srinadh Bhojanapalli, Hyung Won Chung, Yin-Wen Chang, and Chun-Sung Ferng. 2021. A simple and effective positional encoding for transformers. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 2974-2988.
|
| 359 |
+
Zhikai Chen, Haitao Mao, Hang Li, Wei Jin, Hongzhi Wen, Xiaochi Wei, Shuaiqiang Wang, Dawei Yin, Wenqi Fan, Hui Liu, et al. 2024. Exploring the potential of large language models (llms) in learning on graphs. ACM SIGKDD Explorations Newsletter, 25(2):42-61.
|
| 360 |
+
Hao Cheng, Shuo Wang, Wensheng Lu, Wei Zhang, Mingyang Zhou, Kezhong Lu, and Hao Liao. 2023. Explainable recommendation with personalized review retrieval and aspect learning. In the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 51-64.
|
| 361 |
+
Zhixuan Chu, Hongyan Hao, Xin Ouyang, Simeng Wang, Yan Wang, Yue Shen, Jinjie Gu, Qing Cui, Longfei Li, Siqiao Xue, et al. 2023. Leveraging large language models for pre-trained recommender systems. arXiv preprint arXiv:2308.10837.
|
| 362 |
+
Andreas Damianou, Francesco Fabbri, Paul Gigioli, Marco De Nadai, Alice Wang, Enrico Palumbo, and Mounia Lalmas. 2024. Towards graph foundation models for personalization. In *Companion Proceedings of the ACM on Web Conference* 2024, pages 1798-1802.
|
| 363 |
+
|
| 364 |
+
Yingpeng Du, Ziyan Wang, Zhu Sun, Haoyan Chua, Hongzhi Liu, Zhonghai Wu, Yining Ma, Jie Zhang, and Youchen Sun. 2024. Large language model with graph convolution for recommendation. arXiv preprint arXiv:2402.08859.
|
| 365 |
+
Moshe Eliasof, Fabrizio Frasca, Beatrice Bevilacqua, Eran Treister, Gal Chechik, and Haggai Maron. 2023. Graph positional encoding via random feature propagation. In International Conference on Machine Learning, pages 9202-9223. PMLR.
|
| 366 |
+
Fabrizio Frasca, Emanuele Rossi, Davide Eynard, Ben Chamberlain, Michael Bronstein, and Federico Monti. 2020. Sign: Scalable inception graph neural networks. arXiv preprint arXiv:2004.11198.
|
| 367 |
+
Shijie Geng, Shuchang Liu, Zuohui Fu, Yingqiang Ge, and Yongfeng Zhang. 2022. Recommendation as language processing (rlp): A unified pretrain, personalized prompt & predict paradigm (p5). In Proceedings of the 16th ACM Conference on Recommender Systems, pages 299-315.
|
| 368 |
+
Naicheng Guo, Hongwei Cheng, Qianqiao Liang, Linxun Chen, and Bing Han. 2024. Integrating large language models with graphical session-based recommendation. arXiv preprint arXiv:2402.16539.
|
| 369 |
+
Jesse Harte, Wouter Zorgdrager, Panos Louridas, Asterios Katsifodimos, Dietmar Jannach, and Marios Fragkoulis. 2023. Leveraging large language models for sequential recommendation. In Proceedings of the 17th ACM Conference on Recommender Systems, pages 1096-1102.
|
| 370 |
+
Xiangnan He, Kuan Deng, Xiang Wang, Yan Li, Yongdong Zhang, and Meng Wang. 2020. Lightgcn: Simplifying and powering graph convolution network for recommendation. In Proceedings of the 43rd International ACM SIGIR conference on research and development in Information Retrieval, pages 639-648.
|
| 371 |
+
Zhankui He, Zhouhang Xie, Rahul Jha, Harald Steck, Dawen Liang, Yesu Feng, Bodhisattwa Prasad Majumder, Nathan Kallus, and Julian McAuley. 2023. Large language models as zero-shot conversational recommenders. In Proceedings of the 32nd ACM international conference on information and knowledge management, pages 720-730.
|
| 372 |
+
BalΓ‘zs Hidasi, Alexandros Karatzoglou, Linas Baltrunas, and Domonkos Tikk. 2015. Session-based recommendations with recurrent neural networks. arXiv preprint arXiv:1511.06939.
|
| 373 |
+
Xu Huang, Jianxun Lian, Yuxuan Lei, Jing Yao, Defu Lian, and Xing Xie. 2023. Recommender ai agent: Integrating large language models for interactive recommendations. arXiv preprint arXiv:2308.16505.
|
| 374 |
+
Xuanwen Huang, Kaiqiao Han, Yang Yang, Dezheng Bao, Quanjin Tao, Ziwei Chai, and Qi Zhu. 2024. Can gnn be good adapter for llms? arXiv preprint arXiv:2402.12984.
|
| 375 |
+
|
| 376 |
+
Wang-Cheng Kang and Julian McAuley. 2018. Self-attentive sequential recommendation. In 2018 IEEE international conference on data mining (ICDM), pages 197-206. IEEE.
|
| 377 |
+
Taku Kudo and John Richardson. 2018. Sentencepiece: A simple and language independent subword tokenizer and tokenizer for neural text processing. arxiv 2018. arXiv preprint arXiv:1808.06226.
|
| 378 |
+
Yuxuan Lei, Jianxun Lian, Jing Yao, Xu Huang, Defu Lian, and Xing Xie. 2023. Reclexer: Aligning large language models for recommendation model interpretability. arXiv preprint arXiv:2311.10947.
|
| 379 |
+
Jian Li, Jieming Zhu, Qiwei Bi, Guohao Cai, Lifeng Shang, Zhenhua Dong, Xin Jiang, and Qun Liu. 2022. Miner: multi-interest matching network for news recommendation. In *Findings of the Association for Computational Linguistics: ACL* 2022, pages 343-352.
|
| 380 |
+
Lei Li, Yongfeng Zhang, and Li Chen. 2023a. Personalized prompt learning for explainable recommendation. ACM Transactions on Information Systems, 41(4):1-26.
|
| 381 |
+
Lei Li, Yongfeng Zhang, and Li Chen. 2023b. Prompt distillation for efficient llm-based recommendation. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, pages 1348-1357.
|
| 382 |
+
Yaoyiran Li, Xiang Zhai, Moustafa Alzantot, Keyi Yu, Ivan Vulic, Anna Korhonen, and Mohamed Hammad. 2024. Calrec: Contrastive alignment of generative llms for sequential recommendation. arXiv preprint arXiv:2405.02429.
|
| 383 |
+
Jiayi Liao, Sihang Li, Zhengyi Yang, Jiancan Wu, Yancheng Yuan, Xiang Wang, and Xiangnan He. 2023. Llara: Aligning large language models with sequential recommenders. arXiv preprint arXiv:2312.02445.
|
| 384 |
+
Xinyu Lin, Wenjie Wang, Yongqi Li, Fuli Feng, See-Kiong Ng, and Tat-Seng Chua. 2023. A multi-facet paradigm to bridge large language model and recommendation. arXiv preprint arXiv:2310.06491.
|
| 385 |
+
Zihan Lin, Changxin Tian, Yupeng Hou, and Wayne Xin Zhao. 2022. Improving graph collaborative filtering with neighborhood-enriched contrastive learning. In Proceedings of the ACM Web Conference 2022, pages 2320-2329.
|
| 386 |
+
Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, and Graham Neubig. 2023. Pretrain, prompt, and predict: A systematic survey of prompting methods in natural language processing. ACM Computing Surveys, 55(9):1-35.
|
| 387 |
+
Ilya Loshchilov and Frank Hutter. 2017. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101.
|
| 388 |
+
|
| 389 |
+
Chen Ma, Peng Kang, and Xue Liu. 2019. Hierarchical gating networks for sequential recommendation. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, pages 825-833.
|
| 390 |
+
Kelong Mao, Jieming Zhu, Jinping Wang, Quanyu Dai, Zhenhua Dong, Xi Xiao, and Xiuqiang He. 2021. Simplex: A simple and strong baseline for collaborative filtering. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management, pages 1243-1252.
|
| 391 |
+
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. The Journal of Machine Learning Research, 21(1):5485-5551.
|
| 392 |
+
Xubin Ren, Wei Wei, Lianghao Xia, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. 2023. Representation learning with large language models for recommendation. arXiv preprint arXiv:2310.15950.
|
| 393 |
+
Scott Sanner, Krisztian Balog, Filip Radlinski, Ben Wedin, and Lucas Dixon. 2023. Large language models are competitive near cold-start recommenders for language-and item-based preferences. In Proceedings of the 17th ACM conference on recommender systems, pages 890-896.
|
| 394 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715-1725.
|
| 395 |
+
Gilbert Strang. 2022. Introduction to linear algebra. SIAM.
|
| 396 |
+
Fei Sun, Jun Liu, Jian Wu, Changhua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. Bert4rec: Sequential recommendation with bidirectional encoder representations from transformer. In Proceedings of the 28th ACM international conference on information and knowledge management, pages 1441-1450.
|
| 397 |
+
Jiaxi Tang and Ke Wang. 2018. Personalized top-n sequential recommendation via convolutional sequence embedding. In Proceedings of the eleventh ACM international conference on web search and data mining, pages 565-573.
|
| 398 |
+
Laurens Van der Maaten and Geoffrey Hinton. 2008. Visualizing data using t-sne. Journal of machine learning research, 9(11).
|
| 399 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30.
|
| 400 |
+
|
| 401 |
+
Vijay Viswanathan, Luyu Gao, Tongshuang Wu, Pengfei Liu, and Graham Neubig. 2023. Datafinder: Scientific dataset recommendation from natural language descriptions. In the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10288-10303.
|
| 402 |
+
Chenyang Wang, Yuanqing Yu, Weizhi Ma, Min Zhang, Chong Chen, Yiqun Liu, and Shaoping Ma. 2022. Towards representation alignment and uniformity in collaborative filtering. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 1816-1825.
|
| 403 |
+
Tianhao Wang, Sheng Wu, Fen Yi, Lidan Kuang, You Wang, and Jin Zhang. 2024a. Hybrid prompt recommendation explanation generation combined with graph encoder. Neural Processing Letters, 56(1):32.
|
| 404 |
+
Xinfeng Wang, Jin Cui, Yoshimi Suzuki, and Fumiyo Fukumoto. 2024b. Rdrec: Rationale distillation for llm-based recommendation. arXiv preprint arXiv:2405.10587.
|
| 405 |
+
Xinfeng Wang, Fumiyo Fukumoto, Jin Cui, Yoshimi Suzuki, Jiyi Li, and Dongjin Yu. 2023. Eeden: Enhanced encoder-decoder network with local and global context learning for poi recommendation. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 383-392.
|
| 406 |
+
Xinfeng Wang, Fumiyo Fukumoto, Jin Cui, Yoshimi Suzuki, Jiyi Li, and Dongjin Yu. 2024c. Cadrec: Contextualized and debiased recommender model. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 405-415.
|
| 407 |
+
Xinfeng Wang, Fumiyo Fukumoto, Jin Cui, Yoshimi Suzuki, and Dongjin Yu. 2024d. Nfarec: A negative feedback-aware recommender model. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 935-945.
|
| 408 |
+
Xinyuan Wang, Liang Wu, Liangjie Hong, Hao Liu, and Yanjie Fu. 2024e. Llm-enhanced user-item interactions: Leveraging edge information for optimized recommendations. arXiv preprint arXiv:2402.09617.
|
| 409 |
+
Yan Wang, Zhixuan Chu, Xin Ouyang, Simeng Wang, Hongyan Hao, Yue Shen, Jinjie Gu, Siqiao Xue, James Zhang, Qing Cui, et al. 2024f. Llmrg: Improving recommendations through large language model reasoning graphs. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19189-19196.
|
| 410 |
+
Wei Wei, Xubin Ren, Jiabin Tang, Qinyong Wang, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. 2024. Llmrec: Large language models with graph augmentation for recommendation. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining, pages 806-815.
|
| 411 |
+
|
| 412 |
+
Qitian Wu, Wentao Zhao, Zenan Li, David P Wipf, and Junchi Yan. 2022. Nodeformer: A scalable graph structure learning transformer for node classification. Advances in Neural Information Processing Systems, 35:27387-27401.
|
| 413 |
+
Zhengyi Yang, Jiancan Wu, Yanchen Luo, Jizhi Zhang, Yancheng Yuan, An Zhang, Xiang Wang, and Xiangnan He. 2023. Large language model can interpret latent space of sequential recommender. arXiv preprint arXiv:2310.20487.
|
| 414 |
+
Junliang Yu, Xin Xia, Tong Chen, Lizhen Cui, Nguyen Quoc Viet Hung, and Hongzhi Yin. 2023. Xsimgcl: Towards extremely simple graph contrastive learning for recommendation. IEEE Transactions on Knowledge and Data Engineering.
|
| 415 |
+
Junliang Yu, Hongzhi Yin, Xin Xia, Tong Chen, Lizhen Cui, and Quoc Viet Hung Nguyen. 2022. Are graph augmentations necessary? simple graph contrastive learning for recommendation. In Proceedings of the 45th international ACM SIGIR conference on research and development in information retrieval, pages 1294-1303.
|
| 416 |
+
Xiaohan Yu, Li Zhang, Xin Zhao, Yue Wang, and Zhongrui Ma. 2024. Ra-rec: An efficient id representation alignment framework for llm-based recommendation. arXiv preprint arXiv:2402.04527.
|
| 417 |
+
Zhenrui Yue, Sara Rabhi, Gabriel de Souza Pereira Moreira, Dong Wang, and Even Oldridge. 2023. Llamarec: Two-stage recommendation using large language models for ranking. arXiv preprint arXiv:2311.02089.
|
| 418 |
+
Tingting Zhang, Pengpeng Zhao, Yanchi Liu, Victor S Sheng, Jiajie Xu, Deqing Wang, Guanfeng Liu, Xiaofang Zhou, et al. 2019. Feature-level deeper self-attention network for sequential recommendation. In IJCAI, pages 4320-4326.
|
| 419 |
+
Sen Zhao, Wei Wei, Ding Zou, and Xianling Mao. 2022. Multi-view intent disentangle graph networks for bundle recommendation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 4379-4387.
|
| 420 |
+
Kun Zhou, Hui Wang, Wayne Xin Zhao, Yutao Zhu, Sirui Wang, Fuzheng Zhang, Zhongyuan Wang, and Ji-Rong Wen. 2020. S3-rec: Self-supervised learning for sequential recommendation with mutual information maximization. In Proceedings of the 29th ACM international conference on information & knowledge management, pages 1893-1902.
|
| 421 |
+
|
| 422 |
+
# A Appendix
|
| 423 |
+
|
| 424 |
+
# A.1 Experimental Details
|
| 425 |
+
|
| 426 |
+
This section provides further experimental details, including implementation setup, visualization results, computational complexity analysis, running time, and model optimization and inference.
|
| 427 |
+
|
| 428 |
+
# A.1.1 Implementation Details
|
| 429 |
+
|
| 430 |
+
For a fair comparison, the hyperparameters of ELMRec were set to the same as POD. Both the encoder and decoder consist of 6 layers with 8-headed attention in each layer. The number of negative items for direct recommendation is set to 99 for both training and evaluation. We set the number of prompt words to 3 for all tasks, and the batch size for training all three tasks to 64. Consistent with the LLM-based competitors P5 and POD, ELMRec adopts T5-small (Raffel et al., 2020) as the LLM for comparison.
|
| 431 |
+
|
| 432 |
+
For $\alpha$ , $\sigma$ , $N$ , and $L$ , which are not included in POD, we tuned them to attain the best performance. The search range for $\alpha$ , $\sigma$ , $N$ , and $L$ were $1 \sim 10$ , $1 \sim 10$ , $\{5, 10, 15\}$ and $\{1, 2, 3, 4, 5\}$ , respectively. Table 9 displayed the result. Specifically, in the direct recommendation task, $\alpha$ and $\sigma$ were 5 and 5 for Sports, 9 and 6 for Beauty, and 9 and 5 for Toys, while in the sequential recommendation task, they were 11 and 5 for Sports, 6 and 6 for Beauty, and 1 and 5 for Toys, respectively. $N$ and $L$ were 15 and 4 for Beauty, and 10 and 4 for others. The embedding size of word tokens and whole-word tokens was 512. We employed a learning rate of 0.01 for all datasets.
|
| 433 |
+
|
| 434 |
+
We iteratively and randomly sample a segment from a user's item sequence for training the sequential recommendation task. We exploit the discrete prompt templates for different tasks from (Geng et al., 2022). We utilized the AdamW optimizer (Loshchilov and Hutter, 2017). We implemented and evaluated our ELMRec using PyTorch on an Nvidia GeForce RTX 4090 (24GB memories).
|
| 435 |
+
|
| 436 |
+
# A.1.2 Baselines
|
| 437 |
+
|
| 438 |
+
To evaluate the performance of sequential and direct recommendations, we compared our ELMRec with the following fourteen baselines which are divided into four groups:
|
| 439 |
+
|
| 440 |
+
# - Traditional Approach
|
| 441 |
+
|
| 442 |
+
- GRU4Rec (Hidasi et al., 2015) regards the entire item sequence of each user as the user's session and employs GRUs to recommend.
|
| 443 |
+
|
| 444 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="4">DirRec</td><td colspan="4">SeqRec</td></tr><tr><td>Ξ±</td><td>Ο</td><td>N</td><td>L</td><td>Ξ±</td><td>Ο</td><td>N</td><td>L</td></tr><tr><td>Sports</td><td>5</td><td>5</td><td>10</td><td>4</td><td>11</td><td>5</td><td>10</td><td>4</td></tr><tr><td>Beauty</td><td>9</td><td>6</td><td>15</td><td>4</td><td>6</td><td>6</td><td>15</td><td>4</td></tr><tr><td>Toys</td><td>9</td><td>5</td><td>10</td><td>4</td><td>1</td><td>5</td><td>10</td><td>4</td></tr></table>
|
| 445 |
+
|
| 446 |
+
Table 9: Best values of hyperparameter for the three datasets. "DirRec" and "SeqRec" denote direct and sequential recommendations, respectively.
|
| 447 |
+
|
| 448 |
+
- CASER (Tang and Wang, 2018) treats user interactions as images and employs 2-dimensional convolutions to capture sequential patterns.
|
| 449 |
+
- SASRec (Kang and McAuley, 2018) exploits Markov Chains to excavate short-term semantics in users' sequential patterns.
|
| 450 |
+
- HGN (Ma et al., 2019) exploits a novel gating strategy to model users' long- and short-term interests in candidate items.
|
| 451 |
+
- SimpleX (Chen et al., 2021) incorporates the cosine contrastive loss into simple unified collaborative filtering to deliver recommendations.
|
| 452 |
+
|
| 453 |
+
# - Transformer-based Approach
|
| 454 |
+
|
| 455 |
+
- BERT4Rec (Sun et al., 2019) proposes to leverage the BERT-style cloze task for the sequential recommender algorithm.
|
| 456 |
+
- FDSA (Zhang et al., 2019) incorporates item features with item sequences of users to perform recommendations.
|
| 457 |
+
- S $^3$ -Rec (Zhou et al., 2020) learns users' latent behavioral features via employing a self-supervised learning paradigm.
|
| 458 |
+
|
| 459 |
+
# - Graph Neural Network (GNN)-based Approach
|
| 460 |
+
|
| 461 |
+
- LightGCN (He et al., 2020) simplifies the design of GCN to make it more suitable for recommendation purposes.
|
| 462 |
+
- NCL (Lin et al., 2022) regards users (or items) and their structural neighbors as contrastive pairs to augment the user and item embeddings.
|
| 463 |
+
- XSimGCL (Yu et al., 2023) creates contrastive views by adding uniform noise to enhance the robustness of user and item representations.
|
| 464 |
+
|
| 465 |
+
# - Large Language Model (LLM)-based Approach
|
| 466 |
+
|
| 467 |
+
- P5 (Geng et al., 2022) converts three different recommendation tasks into textual generation tasks using LLMs for recommendations.
|
| 468 |
+
- RSL (Chu et al., 2023) adopts novel training and inference strategies to deliver LLM-based recommendations.
|
| 469 |
+
- POD (Li et al., 2023b) refines P5 through prompt distillation to make efficient and precise recommendations.
|
| 470 |
+
|
| 471 |
+

|
| 472 |
+
|
| 473 |
+

|
| 474 |
+
|
| 475 |
+

|
| 476 |
+
|
| 477 |
+

|
| 478 |
+
|
| 479 |
+

|
| 480 |
+
|
| 481 |
+

|
| 482 |
+
|
| 483 |
+

|
| 484 |
+
|
| 485 |
+

|
| 486 |
+
|
| 487 |
+

|
| 488 |
+
|
| 489 |
+

|
| 490 |
+
|
| 491 |
+

|
| 492 |
+
|
| 493 |
+

|
| 494 |
+
|
| 495 |
+

|
| 496 |
+
|
| 497 |
+

|
| 498 |
+
User Distributions
|
| 499 |
+
|
| 500 |
+

|
| 501 |
+
Figure 8: Visualization of user and item whole-word embeddings at each round of random feature propagation. The dots in the same color denote users who have interacted with the same items or the items that are interacted with by the same user. Similar users and items are close to each other in the distribution.
|
| 502 |
+
|
| 503 |
+

|
| 504 |
+
|
| 505 |
+

|
| 506 |
+
Item Distributions
|
| 507 |
+
|
| 508 |
+

|
| 509 |
+
|
| 510 |
+
# A.1.3 Visualization Details
|
| 511 |
+
|
| 512 |
+
Fig. 8 shows the visualization result of user and item whole-word embeddings at each round of random feature propagation. We found that the random feature propagation based on LightGCN makes the embeddings of similar users and items closer in the semantic space for all three datasets. This explains why the whole-word embeddings can enhance the self-attention mechanism and integrate graph awareness into LLMs for recommendations. We can also observe that both high- and low-order collaborative signals can reveal which users and items are similar. Also, high-order signals can better disperse the embeddings of active nodes (e.g., user distributions in the Toys and Beauty datasets), reinforce cohesion within clusters (e.g., item distribution in the Beauty dataset), and detect latent high-order relations (e.g., some dots of the same color begin to cluster in the high-order signals).
|
| 513 |
+
|
| 514 |
+
It is noteworthy that we only feed the whole-word embeddings and their colors into the t-SNE tool to generate visualizations. The t-SNE tool maps high-dimensional data into two or three dimensions and keeps similar data points close.
|
| 515 |
+
|
| 516 |
+
# A.1.4 Model Optimization and Inference
|
| 517 |
+
|
| 518 |
+
The input for the explanation task comprises solely two IDs (i.e., user and item), whereas for direct and sequential recommendation tasks, it could contain
|
| 519 |
+
|
| 520 |
+
a hundred or more IDs due to the negative samples and the user's historical item sequence. The diverse input and output lengths across tasks hinder the efficiency of training the model with mixed samples from various tasks (Geng et al., 2022). Therefore, to avoid unnecessary padding and extra computing costs, we train our ELMRec model alternately, using a batch of samples from one task and then switching to another task.
|
| 521 |
+
|
| 522 |
+
During training, we shuffle the input-output pairs of the three tasks and repeatedly select samples from each task in a specific batch size. We save a checkpoint if the total validation loss of the model in all tasks is the lowest for the current epoch. If this doesn't occur 5 times, we terminate the training process and load the best checkpoint for evaluation. During inference, we employ a beam search algorithm to generate results by selecting the candidate sequences with the highest likelihood over the vocabulary (Li et al., 2023b). We set the number of beams at 20 for sequential and direct recommendations. For generation tasks, we apply group beam search with the number of beams and beam groups set to 21 and 3, respectively.
|
| 523 |
+
|
| 524 |
+
# A.2 Reranking Approach
|
| 525 |
+
|
| 526 |
+
To capture sequential dependencies among items, Geng et al. (2022) and Li et al. (2023b) use the last item in each user's interaction history for testing,
|
| 527 |
+
|
| 528 |
+

|
| 529 |
+
Large Language Model
|
| 530 |
+
|
| 531 |
+

|
| 532 |
+
Figure 9: Illustration of reranking approach. The gray nodes such as $i_4$ and $i_5$ indicate the user' interacted items. The red arrows refer to the reranking processes.
|
| 533 |
+
|
| 534 |
+
and randomly select subsequences from users' histories to predict the last item in each subsequence for training LLMs to make generative recommendations. However, this strategy often causes LLMs to emphasize fragmentary early subsequences overly. For example, in Fig. 9, given user $u_{1}$ 's interactions ( $i_{1} \rightarrow i_{2} \rightarrow i_{3} \rightarrow i_{4} \rightarrow i_{5} \rightarrow i_{6}$ ), the LLM is likely to recommend items $i_{4}$ and $i_{5}$ because subsequences ( $i_{1} \rightarrow i_{2} \rightarrow i_{3} \rightarrow i_{4} \rightarrow i_{5}$ ) and ( $i_{1} \rightarrow i_{2} \rightarrow i_{3} \rightarrow i_{4} \rightarrow i_{5}$ ) are included in the training data.
|
| 535 |
+
|
| 536 |
+
To address this issue, we propose a straightforward, training-free reranking approach. As shown in Fig. 9, for each prediction, we prompt the LLM to provide $N$ additional items with their ordered probabilities (where $N$ is a hyperparameter). We then filter out items the user has already interacted with and rerank the top $(k + N)$ candidates for the sequential recommendation.
|
| 537 |
+
|
| 538 |
+
# A.3 Matrix Form of Random Feature Propagation
|
| 539 |
+
|
| 540 |
+
We present the matrix form of random feature propagation, which enables straightforward implementation. Specifically, we define the user-item interaction matrix as $\mathbf{R} \in \mathbb{R}^{|\mathcal{U}| \times |\mathcal{V}|}$ , where $|\mathcal{U}|$ and $|\mathcal{V}|$ denote the number of users and items, respectively. Each entry $\mathbf{R}_{u,v}$ is 1 if user $u$ has interacted with item $v$ otherwise 0. We then obtain the adjacency matrix of the user-item graph $\mathbf{A} \in \mathbb{R}^{(|\mathcal{U}| + |\mathcal{V}|) \times (|\mathcal{U}| + |\mathcal{V}|)}$ as follows:
|
| 541 |
+
|
| 542 |
+
$$
|
| 543 |
+
\mathbf {A} = \left[ \begin{array}{l l} 0 & \mathbf {R} \\ \mathbf {R} ^ {\top} & 0 \end{array} \right]. \tag {13}
|
| 544 |
+
$$
|
| 545 |
+
|
| 546 |
+
Consider the initial user-item embedding matrix to be the 0-th layer embedding matrix, $\mathbf{E}^{(0)}\in \mathbb{R}^{(|\mathcal{U}| + |\mathcal{V}|)\times d_n}$ , where user and item embeddings are randomly generated via the normal distribution. Subsequently, the matrix equivalent form of information propagation is given by:
|
| 547 |
+
|
| 548 |
+
$$
|
| 549 |
+
\mathbf {E} ^ {(l + 1)} = \left(\mathbf {D} ^ {- 1 / 2} \mathbf {A D} ^ {- 1 / 2}\right) \mathbf {E} ^ {(l)}, \tag {14}
|
| 550 |
+
$$
|
| 551 |
+
|
| 552 |
+
where $\mathbf{D} \in \mathbb{R}^{(|\mathcal{U}| + |\mathcal{V}|) \times (|\mathcal{U}| + |\mathcal{V}|)}$ is a diagonal matrix in which each entry $d_{ij}$ denotes the number of nonzero entries in the $i$ -th row vector of matrix $\mathbf{A}$ . The final graph-aware whole-embeddings matrix $\Omega \in \mathbb{R}^{(|\mathcal{U}| + |\mathcal{V}|) \times d_n}$ is obtained by:
|
| 553 |
+
|
| 554 |
+
$$
|
| 555 |
+
\Omega = \frac {1}{L + 1} \sum_ {l = 0} ^ {L} \widetilde {\mathbf {A}} \mathbf {E} ^ {(l)}, \tag {15}
|
| 556 |
+
$$
|
| 557 |
+
|
| 558 |
+
where $\widetilde{\mathbf{A}} = \mathbf{D}^{-1 / 2}\mathbf{A}\mathbf{D}^{-1 / 2}$ is the symmetrically normalized adjacency matrix.
|
| 559 |
+
|
| 560 |
+
# A.4 Mitigation of Low Rank Issue
|
| 561 |
+
|
| 562 |
+
Since tokenizers separate large digital numbers into subwords (Sennrich et al., 2016; Kudo and Richardson, 2018), only a small number of subwords in the vocabulary are leveraged to represent all digital tokens. We argue that when considering all samples, the whole-word embedding improves the ID representation power in terms of the rank of attention matrices for T5-base and T5-11B.
|
| 563 |
+
|
| 564 |
+
Theorem 1. Let $d_x$ be the number of digital subwords in vocabulary, and $d_p$ be the number of users and items. Consider input ID embeddings $X$ and their whole-word embeddings $P \in \mathbb{R}^{n \times d_n}$ , where $n$ is the number of samples. Let $\mathbf{W}_Q$ and $\mathbf{W}_K \in \mathbb{R}^{d_n \times d_h}$ be weight matrices for queries and keys, respectively, where $(n > d_p > d_h = d_n > d_x)^5$ . Define $\mathbf{A}_x = X\mathbf{W}_Q\overline{\mathbf{W}_K^\top X^\top}$ and $\mathbf{A}_{x + p} = (X + P)\mathbf{W}_Q\mathbf{W}_K^\top (X + P)^\top$ as attention matrices with and without whole-word embeddings, respectively. Then, for any $\mathbf{W}_Q$ and $\mathbf{W}_K$ , we have:
|
| 565 |
+
|
| 566 |
+
$$
|
| 567 |
+
r a n k \left(\mathbf {A} _ {x}\right) = \min \left\{d _ {x}, d _ {n} \right\} = d _ {x},
|
| 568 |
+
$$
|
| 569 |
+
|
| 570 |
+
$$
|
| 571 |
+
\operatorname {r a n k} \left(\mathbf {A} _ {x + p}\right) = \min \left\{d _ {x} + d _ {n}, d _ {n} \right\} = d _ {n} > d _ {x}. \tag {16}
|
| 572 |
+
$$
|
| 573 |
+
|
| 574 |
+
Let $d_x$ represent the number of digital subwords within the vocabulary, and let $d_p$ denote the total count of users and items. Consider the input ID embeddings $X \in \mathbb{R}^{n \times d_n}$ and their corresponding
|
| 575 |
+
|
| 576 |
+
whole-word embeddings $P \in \mathbb{R}^{n \times d_n}$ , where $n$ denotes the total number of samples.
|
| 577 |
+
|
| 578 |
+
Notably, $X$ denotes pre-trained embeddings extracted from the vocabulary, while $P$ is randomly generated from a normal distribution. Due to their distinct origins, the matrices $X$ and $P$ are linearly independent (Axler, 2015; Strang, 2022), i.e., $X \cap P = \emptyset$ . We thus have:
|
| 579 |
+
|
| 580 |
+
$$
|
| 581 |
+
\begin{array}{l} r a n k (X + P) \\ = \operatorname {r a n k} (X) + \operatorname {r a n k} (P) - \operatorname {r a n k} (X \cap P) \\ = \min (d _ {x}, d _ {n}) + \min (d _ {p}, d _ {n}) - 0 \\ = d _ {x} + d _ {n}. \\ \end{array}
|
| 582 |
+
$$
|
| 583 |
+
|
| 584 |
+
Define $\mathbf{W}_Q\in \mathbb{R}^{d_n\times d_h}$ and $\mathbf{W}_K\in \mathbb{R}^{d_n\times d_h}$ as weight matrices for queries and keys, respectively, where $n > d_p > d_h = d_n > d_x$ . Define $\mathbf{A}_x = X\mathbf{W}_Q\overline{\mathbf{W}_K^\top X^\top}$ and $\mathbf{A}_{x + p} = (X + P)\mathbf{W}_Q\mathbf{W}_K^\top$ $(X + P)^{\top}$ as the attention matrices with and without whole-word embeddings, respectively. Since the rank of the product of two matrices is upper bounded by the minimum of their ranks, we derive:
|
| 585 |
+
|
| 586 |
+
$$
|
| 587 |
+
\begin{array}{l} r a n k (\mathbf {A} _ {x}) \\ = \operatorname {r a n k} \left(X \mathbf {W} _ {Q} \mathbf {W} _ {K} ^ {\top} X ^ {\top}\right) \\ = \min (\operatorname {r a n k} (X), \operatorname {r a n k} (\mathbf {W} _ {Q}), \operatorname {r a n k} (\mathbf {W} _ {K})) \\ = \min (d _ {x}, d _ {n}) \\ = d _ {x}. \\ \end{array}
|
| 588 |
+
$$
|
| 589 |
+
|
| 590 |
+
$$
|
| 591 |
+
\begin{array}{l} r a n k (\mathbf {A} _ {x + p}) \\ = \operatorname {r a n k} \left(\left(X + P\right) \mathbf {W} _ {Q} \mathbf {W} _ {K} ^ {\top} \left(X + P\right) ^ {\top}\right) \\ = \min (\operatorname {r a n k} (X + P), \operatorname {r a n k} (\mathbf {W} _ {Q}), \operatorname {r a n k} (\mathbf {W} _ {K})) \\ = \min \left(d _ {x} + d _ {n}, d _ {n}\right) \\ = d _ {n} > d _ {x}. \\ \end{array}
|
| 592 |
+
$$
|
| 593 |
+
|
| 594 |
+
The above deviation shows that, when considering all samples, whole-word embeddings increase the lower bound of the rank of the attention matrix from $d_{x}$ to $d_{n}$ . This can enhance the model's ID representation power in terms of the rank of the attention matrix (Chen et al., 2021).
|
2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb74761d487d67ed6ed3736c84e2f7a7858b75e6c6f029ce7e61c801dd605624
|
| 3 |
+
size 1079068
|
2024/Enhancing High-order Interaction Awareness in LLM-based Recommender Model/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/a5f9a87b-4cfa-43ae-9c52-c17f4ed4ad95_content_list.json
ADDED
|
@@ -0,0 +1,2457 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 |
+
"type": "text",
|
| 16 |
+
"text": "Baihe Huang*, Hiteshi Sharmaβ , Yi Maoβ ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
319,
|
| 19 |
+
156,
|
| 20 |
+
675,
|
| 21 |
+
173
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{\\star}$ University of California Berkeley, β Microsoft Research",
|
| 28 |
+
"bbox": [
|
| 29 |
+
270,
|
| 30 |
+
175,
|
| 31 |
+
724,
|
| 32 |
+
190
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "baihe_huang@berkeley.edu,{hitshi.sharma,maoyi} $@$ microsoft.com",
|
| 39 |
+
"bbox": [
|
| 40 |
+
124,
|
| 41 |
+
192,
|
| 42 |
+
870,
|
| 43 |
+
206
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
260,
|
| 54 |
+
339,
|
| 55 |
+
275
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "In recent years, Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains. Within the training pipeline of LLMs, the Reinforcement Learning with Human Feedback (RLHF) phase is crucial for aligning LLMs with human preferences and values. Label smoothing, a technique that replaces hard labels with soft labels, emerges as promising techniques to enhance RLHF training. Despite the benefits, the choice of label smoothing parameters often relies on heuristic approaches and lack theoretical understanding. This paper addresses the challenge of selecting the label smoothing parameter in a principled manner. We introduce Confidence Aware Label Smoothing (CALS), a method that iteratively updates the label smoothing parameter based on preference labels and model forecasts. Our theoretical analysis characterizes the optimal label smoothing parameter, demonstrates its dependence on the confidence level, and reveals its influence on training dynamics and equilibrium. Empirical evaluations on state-of-the-art alignment tasks show that CALS achieves competitive performance, highlighting its potential for improving alignment.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
144,
|
| 64 |
+
288,
|
| 65 |
+
458,
|
| 66 |
+
657
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
114,
|
| 76 |
+
670,
|
| 77 |
+
258,
|
| 78 |
+
686
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Large Language Models (LLMs), empowered by deep transformer architecture (Vaswani et al., 2017) and huge text datasets, have acquired remarkable capabilities in various domains (Brown et al., 2020; Bubeck et al., 2023; Chowdhery et al., 2023), achieving tremendous success on diverse tasks. The full training pipeline of LLMs can be divided into three stages: Pretraining phase (Radford et al., 2018) where the LLM is trained with unsupervised learning on huge corpus of text data, Supervised Fine-Tuning (SFT) phase (Wei et al., 2021) where the LLM is fine-tuned with supervised learning on datasets for the downstream task, and Reinforcement Learning with Human Feedback (RLHF)",
|
| 85 |
+
"bbox": [
|
| 86 |
+
115,
|
| 87 |
+
696,
|
| 88 |
+
489,
|
| 89 |
+
920
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "phase (Stiennon et al., 2020; Ouyang et al., 2022) where the LLM is trained on pairwise (or listwise) comparison dataset to improve the alignment with human preferences. In particular, the RLHF phase plays a critical role in controlling the model behavior and aligning LLMs with human values (Perez et al., 2022; Ganguli et al., 2022; Bai et al., 2022).",
|
| 96 |
+
"bbox": [
|
| 97 |
+
509,
|
| 98 |
+
261,
|
| 99 |
+
884,
|
| 100 |
+
374
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Proximal Policy Optimization (PPO) (Schulman et al., 2017) is widely adopted as the RL optimizer in RLHF phase. Recently, Direct Preference Optimization (DPO) (Rafailov et al., 2023) emerges as a promising alternative to Reinforcement Learning methods, as it directly optimizes the model with a classification loss and bypasses the need of fitting a separate reward model. In DPO and more generally MLE training, label smoothing (MΓΌller et al., 2019; Mitchell, 2023) is a standard technique to mitigate the noise in preference labels and overfitting issues. However, the choice of the label smoothing parameter is often set heuristically and theoretical understanding remains scarce. Therefore in this work, we ask the question:",
|
| 107 |
+
"bbox": [
|
| 108 |
+
509,
|
| 109 |
+
375,
|
| 110 |
+
884,
|
| 111 |
+
617
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "How to select the label smoothing parameter in a more principled way?",
|
| 118 |
+
"bbox": [
|
| 119 |
+
510,
|
| 120 |
+
625,
|
| 121 |
+
880,
|
| 122 |
+
657
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "To answer this question, we first analyze the tradeoff between bias and variance of the gradient estimate and then characterize the optimal choice of the label smoothing parameter that minimize the expected error of gradient estimate under different distance measures. Our theorem suggests that the label smoothing parameter should depend on the confidence level of the preference label. Motivated by this result, we propose Confidence Aware Label Smoothing (CALS), a method that iteratively updates the label smoothing parameter to reflect the confidence of preference label. Our method ensures that the gradient is weighted by both the confidence level of preference label and the correctness of model forecast based on preference label and model forecasts, illustrated in Figure 1.",
|
| 129 |
+
"bbox": [
|
| 130 |
+
509,
|
| 131 |
+
664,
|
| 132 |
+
884,
|
| 133 |
+
921
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "page_number",
|
| 139 |
+
"text": "21341",
|
| 140 |
+
"bbox": [
|
| 141 |
+
473,
|
| 142 |
+
927,
|
| 143 |
+
524,
|
| 144 |
+
940
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "footer",
|
| 150 |
+
"text": "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 21341-21352 November 12-16, 2024 Β©2024 Association for Computational Linguistics",
|
| 151 |
+
"bbox": [
|
| 152 |
+
152,
|
| 153 |
+
945,
|
| 154 |
+
843,
|
| 155 |
+
972
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "image",
|
| 161 |
+
"img_path": "images/532fd607c8b92a7e7c05d529ea2be43bba00849ba3554c6a53770d0140ba7e9a.jpg",
|
| 162 |
+
"image_caption": [
|
| 163 |
+
"(a) DPO with no/constant label smoothing."
|
| 164 |
+
],
|
| 165 |
+
"image_footnote": [],
|
| 166 |
+
"bbox": [
|
| 167 |
+
117,
|
| 168 |
+
134,
|
| 169 |
+
460,
|
| 170 |
+
208
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "image",
|
| 176 |
+
"img_path": "images/79e354ac5872467ee32efa2c825ab76dd995edeb4252eb0b47f65d1676833657.jpg",
|
| 177 |
+
"image_caption": [
|
| 178 |
+
"(b) DPO with confidence-aware label smoothing.",
|
| 179 |
+
"Figure 1: Illustration of our method, where $p_{\\theta}(y^{+} \\succ y^{-})$ represents how correctly the model is able to predict human preference and $p^{*}(y^{+} \\succ y^{-})$ corresponds to how confident the preference label is. In vanilla DPO gradient, the likelihood update is weighted by $p_{\\theta}(y^{+} \\succ y^{-})$ in the sense that samples with lower $p_{\\theta}(y^{+} \\succ y^{-})$ (where the model is incorrect) get faster update. This is illustrated in Figure 1a. In confidence-aware label smoothing (Figure 1b), we add another dimension to the diagram, so that the update rate is also dependent on confidence of preference labels. In effect, samples with lower $p_{\\theta}(y^{+} \\succ y^{-})$ (where the model is incorrect) and higher $p^{*}(y^{+} \\succ y^{-})$ (where the label is confident) will obtain faster update."
|
| 180 |
+
],
|
| 181 |
+
"image_footnote": [],
|
| 182 |
+
"bbox": [
|
| 183 |
+
536,
|
| 184 |
+
83,
|
| 185 |
+
878,
|
| 186 |
+
223
|
| 187 |
+
],
|
| 188 |
+
"page_idx": 1
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"type": "text",
|
| 192 |
+
"text": "We analyze the equilibrium and dynamics of DPO with CALS, showing that our proposed method has a more stable gradient and conservative equilibrium. Finally, we empirically evaluate our method in state-of-the-art alignment tasks, which shows competitive performance over the baseline.",
|
| 193 |
+
"bbox": [
|
| 194 |
+
112,
|
| 195 |
+
381,
|
| 196 |
+
487,
|
| 197 |
+
476
|
| 198 |
+
],
|
| 199 |
+
"page_idx": 1
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"type": "text",
|
| 203 |
+
"text": "1.1 Related works",
|
| 204 |
+
"text_level": 1,
|
| 205 |
+
"bbox": [
|
| 206 |
+
114,
|
| 207 |
+
488,
|
| 208 |
+
273,
|
| 209 |
+
502
|
| 210 |
+
],
|
| 211 |
+
"page_idx": 1
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"type": "text",
|
| 215 |
+
"text": "RLHF. Ziegler et al. (2019); Stiennon et al. (2020); Ouyang et al. (2022); Bai et al. (2022) establish RLHF pipelines for LLM alignment. With the framework, various methods refine the PPO-based RLHF algorithms, by improving the reward function training (Zhu et al., 2023a; Song et al., 2024; Zhu et al., 2024), reducing variance in RL optimization (Wu et al., 2023; Zhu et al., 2023b), or including sampling techniques (Dong et al., 2023; Gulcehre et al., 2023; Wang et al., 2024). Recently, alternative methods have been proposed to directly align human preference, including DPO (Rafailov et al., 2023), RRHF (Yuan et al., 2023), IPO (Azar et al., 2024), DRPO (Chang et al., 2024), Slic (Zhao et al., 2023), RSO (Liu et al., 2023), GPO (Tang et al., 2024), KTO (Ethayarajh et al., 2024), LiPO (Liu et al., 2024), $\\Psi$ PO (Azar et al., 2024), and GRPO (Ramesh et al., 2024). These methods focuses on the form of loss functions, and are parallel to our work.",
|
| 216 |
+
"bbox": [
|
| 217 |
+
112,
|
| 218 |
+
508,
|
| 219 |
+
489,
|
| 220 |
+
832
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 1
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "Label smoothing. Label smoothing has been used successfully in improving deep learning models in various tasks (Szegedy et al., 2016; Chorowski and Jaitly, 2016; Zoph et al., 2018). In knowledge distillation, using soft labels help the",
|
| 227 |
+
"bbox": [
|
| 228 |
+
112,
|
| 229 |
+
841,
|
| 230 |
+
487,
|
| 231 |
+
921
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 1
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "training of student networks (Hinton et al., 2015). Various methods propose adaptive or instance-dependent label smoothing techniques (Krothapalli and Abbott, 2020; Maher and Kull, 2021; Liu et al., 2022; Park et al., 2023; Guo et al., 2024) to strengthen the method. It has been shown that appropriate label smoothing can improve generalization (MΓΌller et al., 2019), mitigate label noises (Liang et al., 2024), and prevent reward overfitting (Zhu et al., 2024).",
|
| 238 |
+
"bbox": [
|
| 239 |
+
507,
|
| 240 |
+
381,
|
| 241 |
+
884,
|
| 242 |
+
542
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 1
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "2 Preference Learning",
|
| 249 |
+
"text_level": 1,
|
| 250 |
+
"bbox": [
|
| 251 |
+
507,
|
| 252 |
+
558,
|
| 253 |
+
721,
|
| 254 |
+
576
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 1
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "RLHF pipelines. Reinforcement Learning with Human Feedback (Ziegler et al., 2019; Stiennon et al., 2020; Ouyang et al., 2022; Bai et al., 2022) is a process to align with human preference, typically happening after training after pretraining and Supervised Finetuning (SFT). In this phase, a set of preference data $(x,y^{+},y^{-})$ is given, where $x$ is the prompt and $y^{+}$ is the preferred response over $y^{-}$ .",
|
| 261 |
+
"bbox": [
|
| 262 |
+
507,
|
| 263 |
+
587,
|
| 264 |
+
882,
|
| 265 |
+
733
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 1
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "First, RLHF trains a reward function $r_{\\phi}(x,y)$ that maps a pair of prompt and response to a scalar value. In Bradley-Terry model (Bradley and Terry, 1952), the probability of preferring response $y_{1}$ over $y_{2}$ given prompt $x$ is expressed by",
|
| 272 |
+
"bbox": [
|
| 273 |
+
507,
|
| 274 |
+
734,
|
| 275 |
+
882,
|
| 276 |
+
815
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 1
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "equation",
|
| 282 |
+
"text": "\n$$\n\\begin{array}{l} p \\left(y _ {1} \\succ y _ {2} \\mid x\\right) = \\frac {\\exp \\left(r ^ {*} \\left(x , y _ {1}\\right)\\right)}{\\exp \\left(r ^ {*} \\left(x , y _ {1}\\right)\\right) + \\exp \\left(r ^ {*} \\left(x , y _ {2}\\right)\\right)} \\\\ = \\sigma \\left(r ^ {*} \\left(x, y _ {1}\\right) - r ^ {*} \\left(x, y _ {2}\\right)\\right) \\\\ \\end{array}\n$$\n",
|
| 283 |
+
"text_format": "latex",
|
| 284 |
+
"bbox": [
|
| 285 |
+
507,
|
| 286 |
+
816,
|
| 287 |
+
878,
|
| 288 |
+
869
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 1
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "where $r^*$ is the ground-truth reward and $\\sigma(x) = 1 / (1 + \\exp(-x))$ is the sigmoid function. Under this model, RLHF learns the reward function by",
|
| 295 |
+
"bbox": [
|
| 296 |
+
507,
|
| 297 |
+
873,
|
| 298 |
+
882,
|
| 299 |
+
921
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 1
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "page_number",
|
| 305 |
+
"text": "21342",
|
| 306 |
+
"bbox": [
|
| 307 |
+
475,
|
| 308 |
+
927,
|
| 309 |
+
524,
|
| 310 |
+
940
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 1
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "minimizing the MLE loss:",
|
| 317 |
+
"bbox": [
|
| 318 |
+
112,
|
| 319 |
+
84,
|
| 320 |
+
312,
|
| 321 |
+
99
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "equation",
|
| 327 |
+
"text": "\n$$\n\\begin{array}{l} \\mathcal {L} _ {\\mathrm {r e w}} (r _ {\\phi}; \\mathcal {D}) \\\\ = - \\mathbb {E} _ {(x, y ^ {+}, y ^ {-}) \\sim \\mathcal {D}} [ \\log \\sigma \\left(r _ {\\phi} \\left(x, y ^ {+}\\right) - r _ {\\phi} \\left(x, y ^ {-}\\right)\\right) ] \\tag {1} \\\\ \\end{array}\n$$\n",
|
| 328 |
+
"text_format": "latex",
|
| 329 |
+
"bbox": [
|
| 330 |
+
115,
|
| 331 |
+
104,
|
| 332 |
+
487,
|
| 333 |
+
156
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "where $\\mathcal{D}$ is the empirical distribution over the training dataset.",
|
| 340 |
+
"bbox": [
|
| 341 |
+
112,
|
| 342 |
+
160,
|
| 343 |
+
489,
|
| 344 |
+
192
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "Using the learned reward function $r_{\\phi}$ , RLHF then applies Reinforcement Learning (RL) to train the policy model $\\pi_{\\theta}$ , maximizing the objective",
|
| 351 |
+
"bbox": [
|
| 352 |
+
112,
|
| 353 |
+
197,
|
| 354 |
+
487,
|
| 355 |
+
244
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "equation",
|
| 361 |
+
"text": "\n$$\n\\underset { \\begin{array}{c} x \\sim \\mathcal {D} _ {\\mathrm {R L}} \\\\ y \\sim \\pi (\\cdot | x) \\end{array} } {\\mathbb {E}} [ r _ {\\phi} (x, y) - \\beta \\cdot \\mathrm {K L} (\\pi_ {\\theta} (\\cdot | x) \\| \\pi_ {\\mathrm {s f t}} (\\cdot | x)) ] \\tag {2}\n$$\n",
|
| 362 |
+
"text_format": "latex",
|
| 363 |
+
"bbox": [
|
| 364 |
+
121,
|
| 365 |
+
248,
|
| 366 |
+
487,
|
| 367 |
+
291
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 2
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "where $\\mathcal{D}_{\\mathrm{RL}}$ is the empirical distribution over the training dataset for the RL phase, $\\mathrm{KL}(\\cdot \\| \\cdot)$ is the KL-divergence, and $\\pi_{\\mathrm{sft}}$ is the model learned after the SFT phase. The regularization term $-\\beta \\cdot \\mathrm{KL}(\\pi_{\\theta}(\\cdot |x)\\| \\pi_{\\mathrm{sft}}(\\cdot |x))$ is used to mitigate the distribution shift issue and to prevent over-optimization. Typically, PPO (Schulman et al., 2017) is used to optimize the objective function.",
|
| 374 |
+
"bbox": [
|
| 375 |
+
112,
|
| 376 |
+
294,
|
| 377 |
+
489,
|
| 378 |
+
423
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 2
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "Direct preference learning. Besides RLHF, directly learn from human preference may also be directly learned (Rafailov et al., 2023; Zhao et al., 2023; Azar et al., 2024) without the need of first learning a reward function. Among Direct Preference Optimization (Rafailov et al., 2023) (DPO) directly optimizes the following objective",
|
| 385 |
+
"bbox": [
|
| 386 |
+
112,
|
| 387 |
+
448,
|
| 388 |
+
489,
|
| 389 |
+
560
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 2
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "equation",
|
| 395 |
+
"text": "\n$$\n\\begin{array}{l} \\mathcal {L} _ {\\mathrm {D P O}} \\left(\\pi_ {\\theta}; \\mathcal {D}\\right) = \\mathbb {E} _ {\\left(x, y ^ {+}, y ^ {-}\\right) \\sim \\mathcal {D}} \\Big [ \\\\ \\left. - \\log \\sigma \\left(\\beta \\frac {\\pi_ {\\theta} (x , y ^ {+})}{\\pi_ {\\mathrm {s f t}} (x , y ^ {+})} - \\beta \\frac {\\pi_ {\\theta} (x , y ^ {-})}{\\pi_ {\\mathrm {s f t}} (x , y ^ {-})}\\right) \\right] \\\\ \\end{array}\n$$\n",
|
| 396 |
+
"text_format": "latex",
|
| 397 |
+
"bbox": [
|
| 398 |
+
139,
|
| 399 |
+
562,
|
| 400 |
+
462,
|
| 401 |
+
626
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 2
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "By plugging in the optimal solution to the KL-constrained objective in Eq. (2)",
|
| 408 |
+
"bbox": [
|
| 409 |
+
112,
|
| 410 |
+
627,
|
| 411 |
+
487,
|
| 412 |
+
657
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 2
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "equation",
|
| 418 |
+
"text": "\n$$\nr (x, y) = \\beta \\frac {\\pi_ {\\theta} (x , y)}{\\pi_ {\\mathrm {s f t}} (x , y)} + \\beta \\log Z (x)\n$$\n",
|
| 419 |
+
"text_format": "latex",
|
| 420 |
+
"bbox": [
|
| 421 |
+
166,
|
| 422 |
+
659,
|
| 423 |
+
435,
|
| 424 |
+
693
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 2
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "it is shown that DPO optimizes the same objective as in Eq. (1).",
|
| 431 |
+
"bbox": [
|
| 432 |
+
112,
|
| 433 |
+
694,
|
| 434 |
+
485,
|
| 435 |
+
726
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 2
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "2.1 RLHF as a classification problem",
|
| 442 |
+
"text_level": 1,
|
| 443 |
+
"bbox": [
|
| 444 |
+
112,
|
| 445 |
+
753,
|
| 446 |
+
421,
|
| 447 |
+
769
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 2
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "RLHF can be rewritten as a classification problem over the data $(w,z)$ , where the input $w = (x,y_1,y_2)$ is a tuple of one prompt and two responses, and the label $z = \\mathbb{1}(y_1\\succ y_2)\\in \\{0,1\\}$ indicates whether human prefers $y_{1}$ or $y_{2}$ . The prediction model can be expressed by the reward model:",
|
| 454 |
+
"bbox": [
|
| 455 |
+
112,
|
| 456 |
+
784,
|
| 457 |
+
489,
|
| 458 |
+
894
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 2
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "equation",
|
| 464 |
+
"text": "\n$$\np _ {\\phi} (w) = \\sigma \\left(r _ {\\phi} \\left(y _ {1} | x\\right) - r _ {\\phi} \\left(y _ {2} | x\\right)\\right)\n$$\n",
|
| 465 |
+
"text_format": "latex",
|
| 466 |
+
"bbox": [
|
| 467 |
+
169,
|
| 468 |
+
900,
|
| 469 |
+
428,
|
| 470 |
+
917
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 2
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "or directly by the preference model:",
|
| 477 |
+
"bbox": [
|
| 478 |
+
507,
|
| 479 |
+
84,
|
| 480 |
+
778,
|
| 481 |
+
99
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 2
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "equation",
|
| 487 |
+
"text": "\n$$\np _ {\\theta} (w) = \\sigma \\left(\\log \\frac {\\pi_ {\\theta} (y _ {1} | x)}{\\pi_ {\\mathrm {s f t}} (y _ {1} | x)} - \\log \\frac {\\pi_ {\\theta} (y _ {2} | x)}{\\pi_ {\\mathrm {s f t}} (y _ {2} | x)}\\right).\n$$\n",
|
| 488 |
+
"text_format": "latex",
|
| 489 |
+
"bbox": [
|
| 490 |
+
514,
|
| 491 |
+
102,
|
| 492 |
+
873,
|
| 493 |
+
136
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 2
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "In either case, RLHF can be expressed as learning the prediction model $p$ with Binary Cross-Entropy (BCE) loss",
|
| 500 |
+
"bbox": [
|
| 501 |
+
507,
|
| 502 |
+
137,
|
| 503 |
+
880,
|
| 504 |
+
184
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 2
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "equation",
|
| 510 |
+
"text": "\n$$\n\\mathcal {L} _ {\\mathrm {B C E}} (p; \\mathcal {D}) = \\sum_ {i = 1} ^ {n} l _ {i} \\tag {3}\n$$\n",
|
| 511 |
+
"text_format": "latex",
|
| 512 |
+
"bbox": [
|
| 513 |
+
615,
|
| 514 |
+
186,
|
| 515 |
+
880,
|
| 516 |
+
225
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 2
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "where $l_{i} = -z_{i}\\log p(w_{i}) + (1 - z_{i})\\log (1 - p(w_{i}))$",
|
| 523 |
+
"bbox": [
|
| 524 |
+
507,
|
| 525 |
+
229,
|
| 526 |
+
882,
|
| 527 |
+
246
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 2
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "Label smoothing. Label smoothing may be applied to classification losses to improve generalization and tolerance to label noises (Szegedy et al., 2016; Mitchell, 2023; Zhu et al., 2024; Liang et al., 2024). Let $\\alpha_{i}$ denote the label smoothing parameter for datapoint $(w_{i},z_{i})$ , then the BCE loss with label smoothing is given by",
|
| 534 |
+
"bbox": [
|
| 535 |
+
507,
|
| 536 |
+
258,
|
| 537 |
+
884,
|
| 538 |
+
370
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 2
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "equation",
|
| 544 |
+
"text": "\n$$\n\\mathcal {L} _ {\\mathrm {B C E}} ^ {\\alpha} (p; \\mathcal {D}) = \\sum_ {i = 1} ^ {n} l _ {i} ^ {\\alpha} \\tag {4}\n$$\n",
|
| 545 |
+
"text_format": "latex",
|
| 546 |
+
"bbox": [
|
| 547 |
+
611,
|
| 548 |
+
374,
|
| 549 |
+
880,
|
| 550 |
+
413
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 2
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "where $l_i^\\alpha = -(1 - \\alpha_i) \\cdot (z_i \\log p(w_i) + (1 - z_i) \\log (1 - p(w_i))) - \\alpha_i \\cdot ((1 - z_i) \\log p(w_i) + z_i \\log (1 - p(w_i))).$",
|
| 557 |
+
"bbox": [
|
| 558 |
+
507,
|
| 559 |
+
417,
|
| 560 |
+
882,
|
| 561 |
+
467
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 2
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "3 Gradient Estimation",
|
| 568 |
+
"text_level": 1,
|
| 569 |
+
"bbox": [
|
| 570 |
+
507,
|
| 571 |
+
481,
|
| 572 |
+
721,
|
| 573 |
+
495
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 2
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "In this section, we analyze the influence of label smoothing parameters on gradient estimation. Consider the BCE loss in Eq. (3). For each $l_{i}$ , its population version $l_{i}^{*} := \\mathbb{E}_{z_{i}}[l_{i}]$ represents the average loss on $w_{i}$ under the ground truth distribution $z_{i} \\sim \\text{Bernoulli}(p^{*}(w_{i}))$ , where $p^{*}(w_{i}) = \\sigma(r^{*}(x, y_{1}) - r^{*}(x, y_{2}))$ in Bradley-Terry model. Essentially, $l_{i}^{*}$ is the KL-distance between the true distribution of $z_{i}$ and the model prediction, Bernoulli $(p_{\\theta}(w_{i}))$ . Our objective is to minimize $l_{i}^{*}$ , which is equivalent to fitting $p_{\\theta}(w_{i})$ to $p^{*}(w_{i})$ .",
|
| 580 |
+
"bbox": [
|
| 581 |
+
507,
|
| 582 |
+
510,
|
| 583 |
+
882,
|
| 584 |
+
688
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 2
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "In gradient-based methods, we estimate gradients using $\\nabla l_i^{\\alpha_i}$ instead of $\\nabla (l_i^*)$ . The parameter $\\alpha_{i}$ controls the trade-off between the bias and variance: when $\\alpha = 0$ , the gradient estimate is unbiased, in the sense that $\\mathbb{E}_{z_i}[\\nabla l_i^{\\alpha_i}] = \\nabla (l_i^*)$ ; when $\\alpha_{i} = 0.5$ , the gradient estimate has zero variance, i.e., $\\mathrm{Var}(\\nabla l_i^{\\alpha_i}) = 0$ . Therefore, it is crucial to determine the $\\alpha_{i}^{*}$ that minimizes the distance between $\\nabla l_i^{\\alpha_i}$ and $\\nabla l_i^*$ . This is answered by the following theorem.",
|
| 591 |
+
"bbox": [
|
| 592 |
+
507,
|
| 593 |
+
689,
|
| 594 |
+
882,
|
| 595 |
+
848
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 2
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "Theorem 3.1. We abbreviate $q \\coloneqq p^{*}(w_{i})$ . Consider the expected distance $\\mathbb{E}_{z_i}[d(\\nabla l_i^{\\alpha_i},\\nabla l_i^*)]$ between the gradient estimate $\\nabla l_i^{\\alpha_i}$ and the expected gradient $\\nabla l_i^*$ under distance $d$ , then:",
|
| 602 |
+
"bbox": [
|
| 603 |
+
507,
|
| 604 |
+
856,
|
| 605 |
+
884,
|
| 606 |
+
921
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 2
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "page_number",
|
| 612 |
+
"text": "21343",
|
| 613 |
+
"bbox": [
|
| 614 |
+
475,
|
| 615 |
+
927,
|
| 616 |
+
524,
|
| 617 |
+
940
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 2
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "1. if $d(u,v) = \\| u - v\\|_{\\beta}^{\\beta}$ where $\\| \\cdot \\|_{\\beta}$ is the $\\ell_{\\beta}$ metric ( $\\beta > 1$ ), the expected distance $\\mathbb{E}_{z_i}[d(\\nabla l_i^{\\alpha_i},\\nabla l_i^*)]$ is minimized when $\\alpha^{*}$ is the unique solution of the equation",
|
| 624 |
+
"bbox": [
|
| 625 |
+
129,
|
| 626 |
+
82,
|
| 627 |
+
487,
|
| 628 |
+
148
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 3
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "equation",
|
| 634 |
+
"text": "\n$$\nq (q + x - 1) ^ {\\beta - 1} - (1 - q) (q - x) ^ {\\beta - 1} = 0\n$$\n",
|
| 635 |
+
"text_format": "latex",
|
| 636 |
+
"bbox": [
|
| 637 |
+
156,
|
| 638 |
+
149,
|
| 639 |
+
480,
|
| 640 |
+
170
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 3
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "2. when $d(u,v) = \\mathbb{1}(u\\neq v)$ is the $\\ell_0$ metric, the expected distance $\\mathbb{E}_{z_i}[d(\\nabla l_i^{\\alpha_i},\\nabla l_i^*)]$ is minimized when",
|
| 647 |
+
"bbox": [
|
| 648 |
+
127,
|
| 649 |
+
181,
|
| 650 |
+
489,
|
| 651 |
+
229
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 3
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "equation",
|
| 657 |
+
"text": "\n$$\n\\alpha_ {i} ^ {*} = \\min \\left\\{q, 1 - q \\right\\}.\n$$\n",
|
| 658 |
+
"text_format": "latex",
|
| 659 |
+
"bbox": [
|
| 660 |
+
233,
|
| 661 |
+
234,
|
| 662 |
+
401,
|
| 663 |
+
252
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 3
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "The proof is found in Appendix A. The above result characterizes the optimal choice of the label-smoothing parameter under a range of distance measures. Specifically, for $\\alpha_{2}$ , the optimal $\\alpha^{*}$ has the closed form expression",
|
| 670 |
+
"bbox": [
|
| 671 |
+
112,
|
| 672 |
+
265,
|
| 673 |
+
487,
|
| 674 |
+
344
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 3
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "equation",
|
| 680 |
+
"text": "\n$$\n\\alpha_ {i} ^ {*} = 2 p ^ {*} (w _ {i}) - 2 p ^ {*} (w _ {i}) ^ {2}.\n$$\n",
|
| 681 |
+
"text_format": "latex",
|
| 682 |
+
"bbox": [
|
| 683 |
+
198,
|
| 684 |
+
347,
|
| 685 |
+
401,
|
| 686 |
+
366
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 3
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "image",
|
| 692 |
+
"img_path": "images/a65c2929c2d7ebbe66b588850acbc5f0101c7c0d3e213c74b553baf043d8563e.jpg",
|
| 693 |
+
"image_caption": [
|
| 694 |
+
"Figure 2 illustrates the curves of the optimal",
|
| 695 |
+
"Figure 2: Optimal label smoothing parameter."
|
| 696 |
+
],
|
| 697 |
+
"image_footnote": [],
|
| 698 |
+
"bbox": [
|
| 699 |
+
139,
|
| 700 |
+
405,
|
| 701 |
+
443,
|
| 702 |
+
541
|
| 703 |
+
],
|
| 704 |
+
"page_idx": 3
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "text",
|
| 708 |
+
"text": "label-smoothing parameter with respect to $q$ , under different $\\beta$ . It's observed that $\\alpha^{*}$ always lie in $[\\min \\{q,1 - q\\} ,0.5]$ , indicating a conservative loss function. Furthermore, $\\alpha^{*}$ increases with $\\min \\{q,1 - q\\}$ : when $q = 1 / 2$ , the optimal parameter $\\alpha^{*} = 1 / 2$ and $\\nabla l_{i} = \\nabla l^{*}$ ; when $q = 0,1$ , the optimal parameter $\\alpha^{*} = 0$ . This aligns with the intuition that the label smoothing parameter should be small when the label has high confidence, while it can be set higher when the label is uncertain.",
|
| 709 |
+
"bbox": [
|
| 710 |
+
112,
|
| 711 |
+
589,
|
| 712 |
+
489,
|
| 713 |
+
750
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 3
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "4 Confidence Aware Label Smoothing (CALS)",
|
| 720 |
+
"text_level": 1,
|
| 721 |
+
"bbox": [
|
| 722 |
+
112,
|
| 723 |
+
764,
|
| 724 |
+
458,
|
| 725 |
+
797
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 3
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "Motivated by the previous section, we develop confidence-aware label smoothing where the label smoothing parameter is set to reflect the confidence level of the label. Ideally, we hope the parameter for data $(w,z)$ to be certain function of the confidence per data: $p^{*}(w) = \\mathbb{P}^{*}(z = 1|w)$ . However, $p^{*}(w)$ is usually not accessible and difficult to esti",
|
| 732 |
+
"bbox": [
|
| 733 |
+
112,
|
| 734 |
+
808,
|
| 735 |
+
489,
|
| 736 |
+
921
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 3
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "mate as each individual prompt only appears once or a few times in the RLHF dataset.",
|
| 743 |
+
"bbox": [
|
| 744 |
+
507,
|
| 745 |
+
84,
|
| 746 |
+
880,
|
| 747 |
+
115
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 3
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "To deal with this issue, we define a function $\\widetilde{\\alpha}:[0,1]\\to [0,0.5)$ such that for any $x\\in [0,1]$ ,",
|
| 754 |
+
"bbox": [
|
| 755 |
+
507,
|
| 756 |
+
124,
|
| 757 |
+
880,
|
| 758 |
+
156
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 3
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "equation",
|
| 764 |
+
"text": "\n$$\n\\widetilde {\\alpha} (x) = \\left(\\mathbb {P} ^ {*} (z \\neq \\mathbb {1} (x > 0 / 5) | p _ {\\theta} (w) = x)\\right) _ {< 0. 5}\n$$\n",
|
| 765 |
+
"text_format": "latex",
|
| 766 |
+
"bbox": [
|
| 767 |
+
519,
|
| 768 |
+
159,
|
| 769 |
+
870,
|
| 770 |
+
178
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 3
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "where the probability $\\mathbb{P}^*$ is with respect to $w\\sim$ $\\mathcal{D}$ and $z\\sim$ Bernoulli $(p^{*}(w))$ , and the notation $(\\cdot)_{< 0.5}$ is defined with $(x)_{< 0.5} = x\\cdot \\mathbb{1}(x < 0.5),\\forall x\\in [0,1]$ . Then for each data point $w$ , we set the label-smoothing parameter to be $\\widetilde{\\alpha} (p_{\\theta}(w))$ . To understand this quantity, first notice that $p_{\\theta}(w) = x$ means the model forecast that $z = 1$ happens with probability $x$ , and $x > 0 / 5$ means the model predicts that $z = 1$ is more likely to happen. Therefore, $\\mathbb{P}^* (z\\neq \\mathbb{1}(x > 0 / 5)|p_\\theta (w) = x)$ represents the probability that the model $p_{\\theta}$ 's prediction $\\mathbb{1}(x > 0 / 5)$ misaligns with the realization $z$ , conditional on that the model forecasts $x$ as the probability. Then we clip the conditional probability with $(\\cdot)_{< 0.5}$ to ensure that it always falls in [0, 0.5). Finally, $\\widetilde{\\alpha} (p_{\\theta}(w))$ expresses the frequency that the prediction fails to align with realization among the data where the forecast is $p_{\\theta}(w)$ , thereby reflecting the true confidence level of the label per forecast, instead of per data. This quantity is related to notion of calibration (Foster and Vohra, 1998; HΓ©bert-Johnson et al., 2018), and it converges to the true probability $p_{\\theta}^{*}(w)$ under certain regularity conditions (Blasiok et al., 2024). The lower the confidence level, the higher the value of $\\widetilde{\\alpha}$ , suggesting that the gradient update should be more conservative.",
|
| 777 |
+
"bbox": [
|
| 778 |
+
507,
|
| 779 |
+
180,
|
| 780 |
+
882,
|
| 781 |
+
613
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 3
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "This gives rise to the BCE loss with confidence-aware label smoothing:",
|
| 788 |
+
"bbox": [
|
| 789 |
+
507,
|
| 790 |
+
623,
|
| 791 |
+
882,
|
| 792 |
+
655
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 3
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "equation",
|
| 798 |
+
"text": "\n$$\n\\mathcal {L} _ {\\mathrm {C A L S}} ^ {\\alpha} (p; \\mathcal {D}) = \\sum_ {i = 1} ^ {n} l _ {i} ^ {\\widetilde {\\alpha}} \\tag {5}\n$$\n",
|
| 799 |
+
"text_format": "latex",
|
| 800 |
+
"bbox": [
|
| 801 |
+
608,
|
| 802 |
+
657,
|
| 803 |
+
880,
|
| 804 |
+
697
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 3
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "where $l_i^{\\widetilde{\\alpha}} = -(1 - \\widetilde{\\alpha}(p(w_i))) \\cdot (z_i \\log p(w_i) + (1 - z_i) \\log (1 - p(w_i))) - \\widetilde{\\alpha}(p(w_i)) \\cdot ((1 - z_i) \\log p(w_i) + z_i \\log (1 - p(w_i))).$",
|
| 811 |
+
"bbox": [
|
| 812 |
+
507,
|
| 813 |
+
700,
|
| 814 |
+
882,
|
| 815 |
+
751
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 3
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "4.1 DPO with CALS",
|
| 822 |
+
"text_level": 1,
|
| 823 |
+
"bbox": [
|
| 824 |
+
507,
|
| 825 |
+
788,
|
| 826 |
+
687,
|
| 827 |
+
802
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 3
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "Now we introduce our DPO algorithm with confidence-aware label smoothing, detailed in Algorithm 1. The algorithms take the preference dataset $\\mathcal{D}$ and a prior $\\alpha_0$ as inputs. We use a symmetric (over line $x = 1 / 2$ ) piecewise-constant function $\\alpha :[0,1]\\to [0,0.5)$ to model $\\widetilde{\\alpha}$ . In partic",
|
| 834 |
+
"bbox": [
|
| 835 |
+
507,
|
| 836 |
+
825,
|
| 837 |
+
882,
|
| 838 |
+
921
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 3
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "page_number",
|
| 844 |
+
"text": "21344",
|
| 845 |
+
"bbox": [
|
| 846 |
+
475,
|
| 847 |
+
927,
|
| 848 |
+
524,
|
| 849 |
+
940
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 3
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Algorithm 1 DPO with confidence-aware label smoothing",
|
| 856 |
+
"text_level": 1,
|
| 857 |
+
"bbox": [
|
| 858 |
+
115,
|
| 859 |
+
84,
|
| 860 |
+
547,
|
| 861 |
+
98
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 4
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "list",
|
| 867 |
+
"sub_type": "text",
|
| 868 |
+
"list_items": [
|
| 869 |
+
"1: Input: $\\mathcal{D} = \\{(x_i, y_i^+, y_i^-), i \\in [n]\\}$ , $\\alpha_0$",
|
| 870 |
+
"2: for $t = 1,2,\\ldots ,T$ do",
|
| 871 |
+
"3: Sample mini-batch $\\mathcal{D}_t\\subset \\mathcal{D}$",
|
| 872 |
+
"4: Apply gradient descent"
|
| 873 |
+
],
|
| 874 |
+
"bbox": [
|
| 875 |
+
121,
|
| 876 |
+
104,
|
| 877 |
+
386,
|
| 878 |
+
153
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 4
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "equation",
|
| 884 |
+
"text": "\n$$\n\\theta_ {t + 1} \\leftarrow \\theta_ {t} - \\eta \\cdot \\nabla_ {\\theta} \\mathcal {L} _ {\\text {C A L S}} ^ {\\alpha} \\left(\\pi_ {\\theta_ {t}}, \\mathcal {D} _ {t}\\right)\n$$\n",
|
| 885 |
+
"text_format": "latex",
|
| 886 |
+
"bbox": [
|
| 887 |
+
403,
|
| 888 |
+
164,
|
| 889 |
+
633,
|
| 890 |
+
179
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 4
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "with the loss function over batch $\\mathcal{D}_t$",
|
| 897 |
+
"bbox": [
|
| 898 |
+
157,
|
| 899 |
+
190,
|
| 900 |
+
379,
|
| 901 |
+
202
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 4
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "equation",
|
| 907 |
+
"text": "\n$$\n\\mathcal {L} _ {\\mathrm {C A L S}} ^ {\\alpha} \\left(\\pi_ {\\theta}; \\mathcal {D} _ {t}\\right) = - \\sum_ {j \\in \\mathcal {D}} \\left(\\left(1 - \\alpha \\left(p _ {\\theta} \\left(w _ {j}\\right)\\right)\\right) \\cdot \\log p _ {\\theta} \\left(w _ {j}\\right) + \\alpha \\left(p _ {\\theta} \\left(w _ {j}\\right)\\right) \\cdot \\log \\left(1 - p _ {\\theta} \\left(w _ {j}\\right)\\right)\\right)\n$$\n",
|
| 908 |
+
"text_format": "latex",
|
| 909 |
+
"bbox": [
|
| 910 |
+
238,
|
| 911 |
+
212,
|
| 912 |
+
800,
|
| 913 |
+
241
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 4
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "where",
|
| 920 |
+
"bbox": [
|
| 921 |
+
157,
|
| 922 |
+
253,
|
| 923 |
+
200,
|
| 924 |
+
263
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 4
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "equation",
|
| 930 |
+
"text": "\n$$\n\\begin{array}{l} \\alpha \\left(p _ {\\theta} \\left(w _ {j}\\right)\\right) = \\widehat {\\alpha} _ {k}, \\text {i f} p _ {\\theta} \\left(w _ {j}\\right) \\in \\left[ \\frac {1}{2} + \\frac {k}{2 K}, \\frac {1}{2} + \\frac {(k + 1)}{2 K} \\right] \\cup \\left[ \\frac {1}{2} - \\frac {k}{2 K}, \\frac {1}{2} - \\frac {(k + 1)}{2 K} \\right] \\\\ p _ {\\theta} (w _ {j}) = \\sigma \\left(\\log \\frac {\\pi_ {\\theta} \\left(y _ {j} ^ {+} \\mid x _ {j}\\right)}{\\pi_ {\\mathrm {s f t}} \\left(y _ {j} ^ {+} \\mid x _ {j}\\right)} - \\log \\frac {\\pi_ {\\theta} \\left(y _ {j} ^ {-} \\mid x _ {j}\\right)}{\\pi_ {\\mathrm {s f t}} \\left(y _ {j} ^ {-} \\mid x _ {j}\\right)}\\right) \\\\ \\end{array}\n$$\n",
|
| 931 |
+
"text_format": "latex",
|
| 932 |
+
"bbox": [
|
| 933 |
+
250,
|
| 934 |
+
274,
|
| 935 |
+
784,
|
| 936 |
+
341
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 4
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "5: Update label smoothing parameters $(\\widehat{\\alpha}_0,\\dots ,\\widehat{\\alpha}_{K - 1})$",
|
| 943 |
+
"bbox": [
|
| 944 |
+
119,
|
| 945 |
+
355,
|
| 946 |
+
485,
|
| 947 |
+
369
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 4
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "equation",
|
| 953 |
+
"text": "\n$$\n\\widehat {\\alpha} _ {k} \\leftarrow \\frac {\\alpha_ {0} \\cdot N _ {k} + \\sum_ {i = 1} ^ {t} \\sum_ {(w , z) \\in \\mathcal {D} _ {i}} \\mathbb {1} \\left(p _ {\\theta_ {i}} (w) \\in \\left[ \\frac {1}{2} - \\frac {k}{2 K} , \\frac {1}{2} - \\frac {(k + 1)}{2 K} \\right]\\right)}{N _ {k} + \\sum_ {i = 1} ^ {t} \\sum_ {(w , z) \\in \\mathcal {D} _ {i}} \\mathbb {1} \\left(p _ {\\theta_ {i}} (w) \\in \\left[ \\frac {1}{2} + \\frac {k}{2 K} , \\frac {1}{2} + \\frac {(k + 1)}{2 K} \\right] \\cup \\left[ \\frac {1}{2} - \\frac {k}{2 K} , \\frac {1}{2} - \\frac {(k + 1)}{2 K} \\right]\\right)}. \\tag {6}\n$$\n",
|
| 954 |
+
"text_format": "latex",
|
| 955 |
+
"bbox": [
|
| 956 |
+
231,
|
| 957 |
+
379,
|
| 958 |
+
882,
|
| 959 |
+
436
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 4
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "list",
|
| 965 |
+
"sub_type": "text",
|
| 966 |
+
"list_items": [
|
| 967 |
+
"6: end for",
|
| 968 |
+
"7: Return $\\pi_{\\theta_T}$"
|
| 969 |
+
],
|
| 970 |
+
"bbox": [
|
| 971 |
+
119,
|
| 972 |
+
447,
|
| 973 |
+
216,
|
| 974 |
+
472
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 4
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "ular, we discretize $[0,1]$ into $2K$ bins",
|
| 981 |
+
"bbox": [
|
| 982 |
+
112,
|
| 983 |
+
501,
|
| 984 |
+
393,
|
| 985 |
+
517
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 4
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "equation",
|
| 991 |
+
"text": "\n$$\n\\left[ 0, \\frac {1}{2} - \\frac {K - 1}{2 K} \\right], \\dots , \\left[ \\frac {1}{2} - \\frac {1}{2 K}, \\frac {1}{2} \\right],\n$$\n",
|
| 992 |
+
"text_format": "latex",
|
| 993 |
+
"bbox": [
|
| 994 |
+
159,
|
| 995 |
+
519,
|
| 996 |
+
443,
|
| 997 |
+
552
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 4
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "equation",
|
| 1003 |
+
"text": "\n$$\n\\left[ \\frac {1}{2}, \\frac {1}{2} + \\frac {1}{2 K} \\right], \\dots , \\left[ \\frac {1}{2} + \\frac {K - 1}{2 K}, 1 \\right]\n$$\n",
|
| 1004 |
+
"text_format": "latex",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
161,
|
| 1007 |
+
555,
|
| 1008 |
+
433,
|
| 1009 |
+
589
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 4
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "Notice that for any preference data $(w,z) = (x,y_1,y_2,z)$ , the BCE loss $l(p_{\\theta};(w,z))$ is invariant under the flipping $(y_{1},y_{2})\\to (y_{2},y_{1})$ and $z\\rightarrow 1-$ $z$ . Thus we merge the bins $\\left[\\frac{1}{2} +\\frac{k}{2K},\\frac{1}{2} +\\frac{(k + 1)}{2K}\\right]$ and $\\left[\\frac{1}{2} -\\frac{k}{2K},\\frac{1}{2} -\\frac{(k + 1)}{2K}\\right]$ , and assign the same value $\\hat{\\alpha}_k$ . Eq. (6) displays how we update $\\hat{\\alpha}_k$ . At initialization, all $\\hat{\\alpha}_k$ 's are set as the prior $\\alpha_0$ . The value $N_{k}$ represents the weight of the prior: a larger $N_{k}$ indicates that $\\hat{\\alpha}_k$ is updated more slowly and remains closer to the prior. In the denominator, the second term expresses the number of the past data where the model's forecast lies in interval $\\left[\\frac{1}{2} +\\frac{k}{2K},\\frac{1}{2} +\\frac{(k + 1)}{2K}\\right]\\cup \\left[\\frac{1}{2} -\\frac{k}{2K},\\frac{1}{2} -\\frac{(k + 1)}{2K}\\right]$ . The numerator indicates the number of data out of those considered in the denominator where the model's prediction does not align with the human feedback, corresponding to the event $z\\neq \\mathbb{1}(p_{\\theta}(w) > 0.5)$ . Summing up, $\\hat{\\alpha}_k$ forms an estimate of the confidence $\\widetilde{\\alpha}$ .",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
112,
|
| 1018 |
+
590,
|
| 1019 |
+
489,
|
| 1020 |
+
915
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 4
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "A nice property of $\\widehat{\\alpha}$ is that it doesn't involve additional computation related to the model. In fact, the terms $p_{\\theta_i}(w_j)$ have been already computed in the forward pass of the model. As a result, the function $\\alpha_t$ can be updated on the fly, using only pre-computed values.",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
507,
|
| 1029 |
+
501,
|
| 1030 |
+
882,
|
| 1031 |
+
596
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 4
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "4.2 Theoretical analysis",
|
| 1038 |
+
"text_level": 1,
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
507,
|
| 1041 |
+
613,
|
| 1042 |
+
712,
|
| 1043 |
+
629
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 4
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "In this section, we study the theoretical property of the BCE loss in Eq. (4).",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
507,
|
| 1052 |
+
637,
|
| 1053 |
+
882,
|
| 1054 |
+
669
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 4
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "Equilibrium. The following result characterizes the global minimizer of the population loss when the label smoothing parameter is set as a function of model forecast.",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
507,
|
| 1063 |
+
682,
|
| 1064 |
+
880,
|
| 1065 |
+
745
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 4
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "Theorem 4.1. Consider the population loss",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
507,
|
| 1074 |
+
753,
|
| 1075 |
+
836,
|
| 1076 |
+
769
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 4
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "equation",
|
| 1082 |
+
"text": "\n$$\n\\mathcal {L} _ {\\mathrm {C A L S}} ^ {\\alpha} (\\theta ; \\mathcal {D}) := \\mathbb {E} \\left[ l \\left(p _ {\\theta}; (w, z)\\right) \\right]\n$$\n",
|
| 1083 |
+
"text_format": "latex",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
569,
|
| 1086 |
+
771,
|
| 1087 |
+
818,
|
| 1088 |
+
797
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 4
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "where $l(p_{\\theta};(w,z)) = -(1 - \\alpha (p(w))) \\cdot (z\\log p(w) + (1 - z)\\log (1 - p(w))) - \\alpha (p(w)) \\cdot ((1 - z)\\log p(w) + z\\log (1 - p(w))).$ For any function $\\alpha :[0,1]\\to [0,0.5)$ , the population loss has a unique minimizer $\\widetilde{p}$ , such that for any $w$ , $\\widetilde{p} (w)$ is the unique solution of the equation",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
507,
|
| 1097 |
+
799,
|
| 1098 |
+
882,
|
| 1099 |
+
896
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 4
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "equation",
|
| 1105 |
+
"text": "\n$$\n\\widetilde {p} (w) = p ^ {*} (w) + \\alpha (\\widetilde {p} (w)) - 2 p ^ {*} (w) \\alpha (\\widetilde {p} (w)).\n$$\n",
|
| 1106 |
+
"text_format": "latex",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
522,
|
| 1109 |
+
900,
|
| 1110 |
+
865,
|
| 1111 |
+
917
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 4
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "page_number",
|
| 1117 |
+
"text": "21345",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
475,
|
| 1120 |
+
927,
|
| 1121 |
+
524,
|
| 1122 |
+
940
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 4
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Furthermore, when $\\alpha$ is set as",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
112,
|
| 1131 |
+
85,
|
| 1132 |
+
339,
|
| 1133 |
+
99
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 5
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "equation",
|
| 1139 |
+
"text": "\n$$\n\\widetilde {\\alpha} (x) = \\left(\\mathbb {P} ^ {*} (z \\neq \\mathbb {1} (x > 0 / 5) | p _ {\\theta} (w) = x)\\right) _ {< 0. 5}\n$$\n",
|
| 1140 |
+
"text_format": "latex",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
124,
|
| 1143 |
+
104,
|
| 1144 |
+
473,
|
| 1145 |
+
121
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 5
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "then the minimizer $\\widetilde{p} (w)$ is given by",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
112,
|
| 1154 |
+
124,
|
| 1155 |
+
381,
|
| 1156 |
+
140
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 5
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "equation",
|
| 1162 |
+
"text": "\n$$\n\\widetilde {p} (w) = \\left\\{ \\begin{array}{l l} 1 - 2 p ^ {*} (w) + 2 p ^ {*} (w) ^ {2}, & p ^ {*} (w) > 0. 5 \\\\ 2 p ^ {*} (w) - 2 p ^ {*} (w) ^ {2}, & p ^ {*} (w) \\leq 0. 5 \\end{array} \\right..\n$$\n",
|
| 1163 |
+
"text_format": "latex",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
112,
|
| 1166 |
+
142,
|
| 1167 |
+
497,
|
| 1168 |
+
185
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 5
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "image",
|
| 1174 |
+
"img_path": "images/472d7a983517e34f77dfd04ddb7d30b1a1e0b1f8bae24797727444e90675bc59.jpg",
|
| 1175 |
+
"image_caption": [
|
| 1176 |
+
"Figure 3: Equilibrium of the population loss."
|
| 1177 |
+
],
|
| 1178 |
+
"image_footnote": [],
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
137,
|
| 1181 |
+
208,
|
| 1182 |
+
445,
|
| 1183 |
+
348
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 5
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "The proof is deferred to Appendix B. Figure 3 illustrates $\\widetilde{p}(w)$ as a function of $p^*(w)$ when $\\widetilde{\\alpha}(x)$ is set as $(\\mathbb{P}^* (z \\neq \\mathbb{1}(x > 0 / 5)|p_\\theta (w) = x))_{<0.5}$ . In the equilibrium, $\\alpha(p(w))$ becomes the actual probability that the preference label aligns with the model prediction. As compared to the ground truth probability, it can be observed that $\\widetilde{p}(w)$ is more conservative in the sense that the prediction is closer to 0.5. This implies that the model will favor generating responses with higher likelihood to be preferred by human.",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
112,
|
| 1192 |
+
388,
|
| 1193 |
+
489,
|
| 1194 |
+
567
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 5
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Dynamics. We discuss the gradient of the loss function on datapoint $w = (x, y^{+}, y^{-})$ , written as",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
112,
|
| 1203 |
+
577,
|
| 1204 |
+
485,
|
| 1205 |
+
609
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 5
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "equation",
|
| 1211 |
+
"text": "\n$$\n\\nabla_ {\\theta} l \\left(p _ {\\theta}; \\left(x, y ^ {+}, y ^ {-}\\right)\\right) = \\lambda \\cdot \\left(- \\nabla_ {\\theta} \\log \\frac {\\pi_ {\\theta} \\left(y ^ {+} \\mid x\\right)}{\\pi_ {\\theta} \\left(y ^ {-} \\mid x\\right)}\\right)\n$$\n",
|
| 1212 |
+
"text_format": "latex",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
114,
|
| 1215 |
+
611,
|
| 1216 |
+
485,
|
| 1217 |
+
646
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 5
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "where",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
112,
|
| 1226 |
+
646,
|
| 1227 |
+
164,
|
| 1228 |
+
659
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 5
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "equation",
|
| 1234 |
+
"text": "\n$$\n\\lambda = 1 - p _ {\\theta} (w) - \\widetilde {\\alpha} (p _ {\\theta} (w))\n$$\n",
|
| 1235 |
+
"text_format": "latex",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
151,
|
| 1238 |
+
665,
|
| 1239 |
+
361,
|
| 1240 |
+
683
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 5
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "equation",
|
| 1246 |
+
"text": "\n$$\np _ {\\theta} (w) = \\sigma \\left(\\log \\frac {\\pi_ {\\theta} (y ^ {+} | x)}{\\pi_ {\\mathrm {s f t}} (y ^ {+} | x)} - \\log \\frac {\\pi_ {\\theta} (y ^ {-} | x)}{\\pi_ {\\mathrm {s f t}} (y ^ {-} | x)}\\right).\n$$\n",
|
| 1247 |
+
"text_format": "latex",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
117,
|
| 1250 |
+
686,
|
| 1251 |
+
480,
|
| 1252 |
+
721
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 5
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "text",
|
| 1258 |
+
"text": "In the expression of $\\nabla_{\\theta}l(p_{\\theta};(x,y^{+},y^{-}))$ , the component $-\\nabla_{\\theta}\\log \\frac{\\pi_{\\theta}(y^{+}|x)}{\\pi_{\\theta}(y^{-}|x)}$ serves as increasing the likelihood of $y^{+}$ and decreasing the likelihood of $y^{-}$ . The weight $\\lambda$ controls the increasing/decreasing rate of the likelihood. In $\\lambda$ , the term $1 - p_{\\theta}(w)$ represents how incorrectly the implicit reward model orders the completions, and the term $\\widetilde{\\alpha} (p_{\\theta}(w))$ corresponds to how unconfident the human label is. Therefore, samples with incorrect model forecast (i.e., large $1 - p_{\\theta}(w)$ ) and high label confidence (i.e., low $\\widetilde{\\alpha} (p_{\\theta}(w)))$ will achieve faster likelihood update, as depicted in Figure 1.",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
112,
|
| 1261 |
+
722,
|
| 1262 |
+
489,
|
| 1263 |
+
921
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 5
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "This is desirable for stabilizing the training and preventing from overfit.",
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
507,
|
| 1272 |
+
84,
|
| 1273 |
+
882,
|
| 1274 |
+
116
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 5
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "text",
|
| 1280 |
+
"text": "5 Experiments",
|
| 1281 |
+
"text_level": 1,
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
507,
|
| 1284 |
+
128,
|
| 1285 |
+
655,
|
| 1286 |
+
143
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 5
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "5.1 Logistic regression",
|
| 1293 |
+
"text_level": 1,
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
507,
|
| 1296 |
+
153,
|
| 1297 |
+
702,
|
| 1298 |
+
168
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 5
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Task. We consider logistic regression over normalized Gaussian data in $\\mathbb{R}^d$ . The model family is given by $\\{p_{\\theta}(x) = \\sigma (\\theta^{\\top}x):\\theta \\in \\mathbb{R}^{d}\\}$ . The train and test data is sampled i.i.d. from $x\\sim \\mathcal{N}(0,I_d / d)$ , and $y\\sim$ Bernoulli $(p_{\\theta^*}(x))$ where $\\theta^{*}$ is the ground truth parameter. We focus on the near-high-dimensional setting where the dimensionality $d$ is not significantly smaller than the number of training data. This scenario is common in RLHF, where LLMs typically possess large model sizes.",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
507,
|
| 1307 |
+
174,
|
| 1308 |
+
885,
|
| 1309 |
+
350
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 5
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Methods. We consider two confidence-aware label smoothing methods proposed in Theorem 3.1:",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
507,
|
| 1318 |
+
359,
|
| 1319 |
+
885,
|
| 1320 |
+
392
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 5
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "list",
|
| 1326 |
+
"sub_type": "text",
|
| 1327 |
+
"list_items": [
|
| 1328 |
+
"1. MLE-CALS-2: we set the label smoothing parameter as $\\alpha_{i}^{*} = 2p^{*}(w_{i}) - 2p^{*}(w_{i})^{2}$ , i.e., the minimizer under $\\ell_{2}$ metric.",
|
| 1329 |
+
"2. MLE-CALS-0: we set the label smoothing parameter as $\\alpha_{i}^{*} = \\min \\{p^{*}(w_{i}),1 - p^{*}(w_{i})\\}$ , i.e., the minimizer under $\\ell_0$ metric."
|
| 1330 |
+
],
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
522,
|
| 1333 |
+
401,
|
| 1334 |
+
882,
|
| 1335 |
+
508
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 5
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "We compare the methods MLE-CALS-2, MLE-CALS-0 with standard MLE training with no label smoothing.",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
507,
|
| 1344 |
+
518,
|
| 1345 |
+
882,
|
| 1346 |
+
567
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 5
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "Evaluation. We utilize BCE loss over a large test dataset to evaluate the learned models. In particular, we set the same initialization and test dataset, and plot the mean and standard deviation of test loss of the three algorithms. The mean and standard deviation are computed over multiple samples of the training dataset and the optimizer.",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
507,
|
| 1355 |
+
576,
|
| 1356 |
+
882,
|
| 1357 |
+
688
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 5
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "Results. Figure 4 displays the loss curves under $d = 20, 200, 500$ . It can be observed that MLE-CALS-0 has lower average test losses than the other two methods, which justify our selection of this method in Algorithm 1. In comparison, the test loss under MLE-CALS-2 achieves lower variance. It is because the label smoothing parameter in MLE-CALS-2 is closer to 0.5, as shown in Figure 2, suggesting more conservative training dynamics.",
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
507,
|
| 1366 |
+
697,
|
| 1367 |
+
884,
|
| 1368 |
+
857
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 5
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "5.2 Preference learning",
|
| 1375 |
+
"text_level": 1,
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
507,
|
| 1378 |
+
869,
|
| 1379 |
+
710,
|
| 1380 |
+
883
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 5
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "text",
|
| 1386 |
+
"text": "We evaluate our proposed algorithms' ability to align with human preference.",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
507,
|
| 1389 |
+
889,
|
| 1390 |
+
880,
|
| 1391 |
+
921
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 5
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "page_number",
|
| 1397 |
+
"text": "21346",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
475,
|
| 1400 |
+
927,
|
| 1401 |
+
524,
|
| 1402 |
+
940
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 5
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "image",
|
| 1408 |
+
"img_path": "images/f79c132631113b759da2df95be6a9933a754849c9b7e5fb8afef75d5972e2225.jpg",
|
| 1409 |
+
"image_caption": [
|
| 1410 |
+
"(a) $d = 20$ , $n_{\\mathrm{train}} = 50$ , $\\mathrm{epoch} = 100$"
|
| 1411 |
+
],
|
| 1412 |
+
"image_footnote": [],
|
| 1413 |
+
"bbox": [
|
| 1414 |
+
119,
|
| 1415 |
+
87,
|
| 1416 |
+
359,
|
| 1417 |
+
190
|
| 1418 |
+
],
|
| 1419 |
+
"page_idx": 6
|
| 1420 |
+
},
|
| 1421 |
+
{
|
| 1422 |
+
"type": "image",
|
| 1423 |
+
"img_path": "images/b67c8ff6571713a05a5aa4f9f4a2e58d6e91f936f10f952670c7c0a03917fdaf.jpg",
|
| 1424 |
+
"image_caption": [
|
| 1425 |
+
"(b) $d = 200$ , $n_{\\mathrm{train}} = 10^3$ , $\\mathrm{epoch} = 20$"
|
| 1426 |
+
],
|
| 1427 |
+
"image_footnote": [],
|
| 1428 |
+
"bbox": [
|
| 1429 |
+
378,
|
| 1430 |
+
87,
|
| 1431 |
+
620,
|
| 1432 |
+
189
|
| 1433 |
+
],
|
| 1434 |
+
"page_idx": 6
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "image",
|
| 1438 |
+
"img_path": "images/ae6a47dfd83c2abf18817f8a384d5aff531f64c7eb5e57ffcf50a39e0606c478.jpg",
|
| 1439 |
+
"image_caption": [
|
| 1440 |
+
"(c) $d = 500$ , $n_{\\mathrm{train}} = 10^3$ , $\\mathrm{epoch} = 50$"
|
| 1441 |
+
],
|
| 1442 |
+
"image_footnote": [],
|
| 1443 |
+
"bbox": [
|
| 1444 |
+
638,
|
| 1445 |
+
87,
|
| 1446 |
+
875,
|
| 1447 |
+
187
|
| 1448 |
+
],
|
| 1449 |
+
"page_idx": 6
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "image",
|
| 1453 |
+
"img_path": "images/6e061f753621aa09c100522419469eca98378b1058b79e59a4db3216c280986b.jpg",
|
| 1454 |
+
"image_caption": [
|
| 1455 |
+
"(d) $d = 20$ , $n_{\\mathrm{train}} = 50$ , $\\mathrm{epoch} = 100$"
|
| 1456 |
+
],
|
| 1457 |
+
"image_footnote": [],
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
119,
|
| 1460 |
+
216,
|
| 1461 |
+
359,
|
| 1462 |
+
317
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 6
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "image",
|
| 1468 |
+
"img_path": "images/2a9c45c96d078716258d0a32a9c9a27d5555cb1b5ef8977110bf9acb8899a817.jpg",
|
| 1469 |
+
"image_caption": [
|
| 1470 |
+
"(e) $d = 200$ , $n_{\\mathrm{train}} = 10^{3}$ , $\\mathrm{epoch} = 20$"
|
| 1471 |
+
],
|
| 1472 |
+
"image_footnote": [],
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
376,
|
| 1475 |
+
216,
|
| 1476 |
+
620,
|
| 1477 |
+
316
|
| 1478 |
+
],
|
| 1479 |
+
"page_idx": 6
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"type": "image",
|
| 1483 |
+
"img_path": "images/ded2ed294561b94cc189fa9ee2592394b7ae1ebc65c45887a7f568fb9f0a82d3.jpg",
|
| 1484 |
+
"image_caption": [
|
| 1485 |
+
"(f) $d = 500$ , $n_{\\mathrm{train}} = 10^3$ , $\\mathrm{epoch} = 50$"
|
| 1486 |
+
],
|
| 1487 |
+
"image_footnote": [],
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
638,
|
| 1490 |
+
216,
|
| 1491 |
+
875,
|
| 1492 |
+
316
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 6
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "Task. Our experiments explore explore open-ended text generation task. The data come from Ultrafeedback dataset (Cui et al., 2023), a large-scale, fine-grained dataset that contains diverse preference values, and Orca (Mukherjee et al., 2023), a rich instruction-tuning dataset. We finetune two models of size 7B and 15B: Zephyr-7B (Tunstall et al., 2023b) and Starchat2-15B (Tunstall et al., 2023a). The base policies for alignment training for both models have gone through supervised finetuning.",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
112,
|
| 1501 |
+
390,
|
| 1502 |
+
489,
|
| 1503 |
+
565
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 6
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "Methods. We use DPO (Rafailov et al., 2023) as the baseline method. For fair comparison, we set the initialization $\\alpha_0$ in Algorithm 1 to be the same as the label smoothing parameter used in DPO. We follow the state-of-the-art implementations ofTRL (von Werra et al., 2020) and alignment-handbook (Tunstall et al., 2023b). A complete configuration of training parameters can be found in Appendix C.",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
112,
|
| 1512 |
+
589,
|
| 1513 |
+
489,
|
| 1514 |
+
733
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 6
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "image",
|
| 1520 |
+
"img_path": "images/83e6a3a7c878a7b50321aba5e831886478089fbbe2350fc8021c59d3edbc7ec6.jpg",
|
| 1521 |
+
"image_caption": [
|
| 1522 |
+
"Figure 5: GPT-4 comparison between our method and the baseline, on Zephyr-7B and Starchat2-15B."
|
| 1523 |
+
],
|
| 1524 |
+
"image_footnote": [],
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
115,
|
| 1527 |
+
757,
|
| 1528 |
+
455,
|
| 1529 |
+
853
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 6
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "image",
|
| 1535 |
+
"img_path": "images/a8d3e247b97b45b893289e4cbbb56c84b4f890c446b59802eb46f8d9b4258deb.jpg",
|
| 1536 |
+
"image_caption": [
|
| 1537 |
+
"Figure 4: Mean and standard deviation of test loss in logistic regression.",
|
| 1538 |
+
"Figure 6: ArmoRM comparison between our method and the baseline, on Zephyr-7B and Starchat2-15B."
|
| 1539 |
+
],
|
| 1540 |
+
"image_footnote": [],
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
510,
|
| 1543 |
+
390,
|
| 1544 |
+
852,
|
| 1545 |
+
486
|
| 1546 |
+
],
|
| 1547 |
+
"page_idx": 6
|
| 1548 |
+
},
|
| 1549 |
+
{
|
| 1550 |
+
"type": "text",
|
| 1551 |
+
"text": "Evaluation We evaluate algorithms using head-to-head win rate between our method and the DPO baseline. We consider two evaluators: GPT-4 (OpenAI, 2023) and ArmoRM (Dong et al., 2024), since the latter is the best model on the Reward-Bench (Lambert et al., 2024) leaderboard<sup>1</sup>. The dataset is split into training set and test set. For each trained model, we generate responses on the prompts of the test dataset, and use the evaluators to compute the winning probability of our algorithm versus the DPO baseline. For GPT evaluator, we use the prompt shown in Appendix D to elicit GPT's preference on response A or B or tie, and we apply random flipping of the two responses to mitigate the bias of GPT responses. For ArmoRM, we directly compute the reward attribute 'ultrafeedback-overall_score' of the prompt-response pairs and compute the probability that our method's reward is higher.",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
507,
|
| 1554 |
+
568,
|
| 1555 |
+
884,
|
| 1556 |
+
873
|
| 1557 |
+
],
|
| 1558 |
+
"page_idx": 6
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"type": "page_footnote",
|
| 1562 |
+
"text": "Retrieved on June 12 2024.",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
531,
|
| 1565 |
+
906,
|
| 1566 |
+
705,
|
| 1567 |
+
919
|
| 1568 |
+
],
|
| 1569 |
+
"page_idx": 6
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"type": "page_number",
|
| 1573 |
+
"text": "21347",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
475,
|
| 1576 |
+
927,
|
| 1577 |
+
524,
|
| 1578 |
+
940
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 6
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "text",
|
| 1584 |
+
"text": "5.2.1 Results",
|
| 1585 |
+
"text_level": 1,
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
112,
|
| 1588 |
+
84,
|
| 1589 |
+
231,
|
| 1590 |
+
98
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 7
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"text": "The GPT and ArmoRM evaluation results are shown in Figure 5 and Figure 6 respectively. In these figures, bars with dark blue color correspond to the percentage of test data where the evaluator prefers responses from our method, and bars with light blue color correspond to the percentage of test data where the evaluator prefers responses from baseline method. GPT evaluator may also respond with 'tie', indicating the two responses are close in quality. The comparison exhibits that our method has a higher winning rate compared to baseline, in both 7B and 15B models. In the implementation, we find that it is helpful to select larger $N_{k}$ for $k \\leq K / 2$ . This is due to that in the early phase of the training there are typically a large number of data points where the model's forecast is close to 0.5, and so setting larger $N_{k}$ for those forecasts can make sure that all $\\hat{\\alpha}_{k}$ 's update in a similar rate.",
|
| 1597 |
+
"bbox": [
|
| 1598 |
+
112,
|
| 1599 |
+
103,
|
| 1600 |
+
489,
|
| 1601 |
+
394
|
| 1602 |
+
],
|
| 1603 |
+
"page_idx": 7
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "text",
|
| 1607 |
+
"text": "Effect of initialization. We further vary the label smoothing parameter of DPO and accordingly the initialization $\\alpha_0$ in Algorithm 1. For each $\\alpha \\in \\{0.8, 0.9, 1.0\\}$ , we apply our algorithm and the baseline on supervised-funetuned Zephyr-7B model, while making sure that the initialization $\\alpha_0$ in our method is the same as the label smoothing parameter in DPO.",
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
112,
|
| 1610 |
+
403,
|
| 1611 |
+
489,
|
| 1612 |
+
532
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 7
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "image",
|
| 1618 |
+
"img_path": "images/0347e866e4a400a47f3c043382184ec827de51b19c8ef004ba5ae5625b87cbd7.jpg",
|
| 1619 |
+
"image_caption": [
|
| 1620 |
+
"Figure 7: GPT-4 comparison between our method and the baseline, under different label smoothing parameter $\\alpha$ ."
|
| 1621 |
+
],
|
| 1622 |
+
"image_footnote": [],
|
| 1623 |
+
"bbox": [
|
| 1624 |
+
134,
|
| 1625 |
+
546,
|
| 1626 |
+
455,
|
| 1627 |
+
644
|
| 1628 |
+
],
|
| 1629 |
+
"page_idx": 7
|
| 1630 |
+
},
|
| 1631 |
+
{
|
| 1632 |
+
"type": "image",
|
| 1633 |
+
"img_path": "images/15452ac57f64847c9d8f5ab97981370ea5545927a9d46a5c6e8069bb04c473fa.jpg",
|
| 1634 |
+
"image_caption": [
|
| 1635 |
+
"Figure 8: ArmoRM comparison between our method and the baseline, under different label smoothing parameter $\\alpha$ ."
|
| 1636 |
+
],
|
| 1637 |
+
"image_footnote": [],
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
134,
|
| 1640 |
+
733,
|
| 1641 |
+
455,
|
| 1642 |
+
829
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 7
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "text",
|
| 1648 |
+
"text": "The GPT and ArmoRM evaluation results are",
|
| 1649 |
+
"bbox": [
|
| 1650 |
+
131,
|
| 1651 |
+
904,
|
| 1652 |
+
487,
|
| 1653 |
+
920
|
| 1654 |
+
],
|
| 1655 |
+
"page_idx": 7
|
| 1656 |
+
},
|
| 1657 |
+
{
|
| 1658 |
+
"type": "text",
|
| 1659 |
+
"text": "shown in Figure 7 and Figure 8 respectively. One can observe that our algorithm consistently outperforms DPO under different label smoothing parameter initialization, affirming that it could better align with human preference than the baseline. We notice that the initialization parameter $\\alpha_0$ has little affect on the overall performance of our method.",
|
| 1660 |
+
"bbox": [
|
| 1661 |
+
507,
|
| 1662 |
+
84,
|
| 1663 |
+
884,
|
| 1664 |
+
197
|
| 1665 |
+
],
|
| 1666 |
+
"page_idx": 7
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"type": "text",
|
| 1670 |
+
"text": "6 Conclusions",
|
| 1671 |
+
"text_level": 1,
|
| 1672 |
+
"bbox": [
|
| 1673 |
+
507,
|
| 1674 |
+
209,
|
| 1675 |
+
650,
|
| 1676 |
+
225
|
| 1677 |
+
],
|
| 1678 |
+
"page_idx": 7
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"type": "text",
|
| 1682 |
+
"text": "In this paper, we present Confidence Aware Label Smoothing (CALS) as a principled approach to select the label smoothing parameter in Direct Preference Optimization (DPO) for the RLHF phase of LLM training. By analyzing the trade-off between bias and variance in gradient estimation, we found that the optimal label smoothing parameter that minimizes the expected error under different distance measures should align with the confidence levels of the label. The proposed method ensures that the gradient is weighted based on both the confidence level of preference label and the correctness of model forecast, leading to more accurate alignment with human preferences. Empirical results on alignment tasks using state-of-the-art models demonstrated that CALS improves performance over baseline methods.",
|
| 1683 |
+
"bbox": [
|
| 1684 |
+
505,
|
| 1685 |
+
235,
|
| 1686 |
+
884,
|
| 1687 |
+
508
|
| 1688 |
+
],
|
| 1689 |
+
"page_idx": 7
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "text",
|
| 1693 |
+
"text": "Limitations. While our proposed method shows promising results in enhancing the alignment of Large Language Models (LLMs) with human preferences, it comes with some limitations. First, CALS relies on the accurate estimation of confidence levels for preference labels, which can be challenging in scenarios where the data is sparse or of low quality. Second, our analysis on gradient estimation in Theorem 3.1 is difficult to generalize to larger batch sizes. Furthermore, while our empirical evaluations demonstrate competitive performance, the generalizability of CALS across different tasks and model architectures requires further investigation.",
|
| 1694 |
+
"bbox": [
|
| 1695 |
+
507,
|
| 1696 |
+
519,
|
| 1697 |
+
885,
|
| 1698 |
+
745
|
| 1699 |
+
],
|
| 1700 |
+
"page_idx": 7
|
| 1701 |
+
},
|
| 1702 |
+
{
|
| 1703 |
+
"type": "text",
|
| 1704 |
+
"text": "Acknowledgments",
|
| 1705 |
+
"text_level": 1,
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
509,
|
| 1708 |
+
757,
|
| 1709 |
+
672,
|
| 1710 |
+
774
|
| 1711 |
+
],
|
| 1712 |
+
"page_idx": 7
|
| 1713 |
+
},
|
| 1714 |
+
{
|
| 1715 |
+
"type": "text",
|
| 1716 |
+
"text": "This research was conducted during Baihe Huang's internship at Microsoft Research.",
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
507,
|
| 1719 |
+
784,
|
| 1720 |
+
880,
|
| 1721 |
+
816
|
| 1722 |
+
],
|
| 1723 |
+
"page_idx": 7
|
| 1724 |
+
},
|
| 1725 |
+
{
|
| 1726 |
+
"type": "text",
|
| 1727 |
+
"text": "References",
|
| 1728 |
+
"text_level": 1,
|
| 1729 |
+
"bbox": [
|
| 1730 |
+
510,
|
| 1731 |
+
844,
|
| 1732 |
+
610,
|
| 1733 |
+
859
|
| 1734 |
+
],
|
| 1735 |
+
"page_idx": 7
|
| 1736 |
+
},
|
| 1737 |
+
{
|
| 1738 |
+
"type": "text",
|
| 1739 |
+
"text": "Mohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bilal Piot, Remi Munos, Mark Rowland, Michal Valko, and Daniele Calandriello. 2024. A general theoretical paradigm to understand learning from human",
|
| 1740 |
+
"bbox": [
|
| 1741 |
+
509,
|
| 1742 |
+
866,
|
| 1743 |
+
884,
|
| 1744 |
+
921
|
| 1745 |
+
],
|
| 1746 |
+
"page_idx": 7
|
| 1747 |
+
},
|
| 1748 |
+
{
|
| 1749 |
+
"type": "page_number",
|
| 1750 |
+
"text": "21348",
|
| 1751 |
+
"bbox": [
|
| 1752 |
+
475,
|
| 1753 |
+
927,
|
| 1754 |
+
524,
|
| 1755 |
+
940
|
| 1756 |
+
],
|
| 1757 |
+
"page_idx": 7
|
| 1758 |
+
},
|
| 1759 |
+
{
|
| 1760 |
+
"type": "list",
|
| 1761 |
+
"sub_type": "ref_text",
|
| 1762 |
+
"list_items": [
|
| 1763 |
+
"preferences. In International Conference on Artificial Intelligence and Statistics, pages 4447-4455. PMLR.",
|
| 1764 |
+
"Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. 2022. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862.",
|
| 1765 |
+
"Jaroslaw Blasiok, Parikshit Gopalan, Lunjia Hu, and Preetum Nakkiran. 2024. When does optimizing a proper loss yield calibration? Advances in Neural Information Processing Systems, 36.",
|
| 1766 |
+
"Ralph Allan Bradley and Milton E Terry. 1952. Rank analysis of incomplete block designs: I. the method of paired comparisons. Biometrika, 39(3/4):324-345.",
|
| 1767 |
+
"Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901.",
|
| 1768 |
+
"Sebastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. 2023. Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712.",
|
| 1769 |
+
"Jonathan D Chang, Wenhao Zhan, Owen Oertell, KiantΓ© Brantley, Dipendra Misra, Jason D Lee, and Wen Sun. 2024. Dataset reset policy optimization for rlhf. arXiv preprint arXiv:2404.08495.",
|
| 1770 |
+
"Jan Chorowski and Navdeep Jaitly. 2016. Towards better decoding and language model integration in sequence to sequence models. arXiv preprint arXiv:1612.02695.",
|
| 1771 |
+
"Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2023. Palm: Scaling language modeling with pathways. Journal of Machine Learning Research, 24(240):1-113.",
|
| 1772 |
+
"Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. 2023. Ultrafeedback: Boosting language models with high-quality feedback. Preprint, arXiv:2310.01377.",
|
| 1773 |
+
"Hanze Dong, Wei Xiong, Deepanshu Goyal, Rui Pan, Shizhe Diao, Jipeng Zhang, Kashun Shum, and Tong Zhang. 2023. Raft: Reward ranked finetuning for generative foundation model alignment. arXiv preprint arXiv:2304.06767."
|
| 1774 |
+
],
|
| 1775 |
+
"bbox": [
|
| 1776 |
+
115,
|
| 1777 |
+
85,
|
| 1778 |
+
489,
|
| 1779 |
+
919
|
| 1780 |
+
],
|
| 1781 |
+
"page_idx": 8
|
| 1782 |
+
},
|
| 1783 |
+
{
|
| 1784 |
+
"type": "list",
|
| 1785 |
+
"sub_type": "ref_text",
|
| 1786 |
+
"list_items": [
|
| 1787 |
+
"Hanze Dong, Wei Xiong, Bo Pang, Haoxiang Wang, Han Zhao, Yingbo Zhou, Nan Jiang, Doyen Sahoo, Caiming Xiong, and Tong Zhang. 2024. Rlhf workflow: From reward modeling to online rlhf. arXiv preprint arXiv:2405.07863.",
|
| 1788 |
+
"Kawin Ethayarajh, Winnie Xu, Niklas Muennighoff, Dan Jurafsky, and Douwe Kiela. 2024. Kto: Model alignment as prospect theoretic optimization. arXiv preprint arXiv:2402.01306.",
|
| 1789 |
+
"Dean P Foster and Rakesh V Vohra. 1998. Asymptotic calibration. Biometrika, 85(2):379-390.",
|
| 1790 |
+
"Deep Ganguli, Liane Lovitt, Jackson Kernion, Amanda Askell, Yuntao Bai, Saurav Kadavath, Ben Mann, Ethan Perez, Nicholas Schiefer, Kamal Ndousse, et al. 2022. Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned. arXiv preprint arXiv:2209.07858.",
|
| 1791 |
+
"Caglar Gulcehre, Tom Le Paine, Srivatsan Srinivasan, Ksenia Konyushkova, Lotte Weerts, Abhishek Sharma, Aditya Siddhant, Alex Ahern, Miaosen Wang, Chenjie Gu, et al. 2023. Reinforced self-training (rest) for language modeling. arXiv preprint arXiv:2308.08998.",
|
| 1792 |
+
"Xutao Guo, Yanwu Yang, Chenfei Ye, Guoqing Cai, and Ting Ma. 2024. Calseg: Improving calibration of medical image segmentation via variational label smoothing. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1601-1605. IEEE.",
|
| 1793 |
+
"Ursula HΓ©bert-Johnson, Michael Kim, Omer Reingold, and Guy Rothblum. 2018. Multicalibration: Calibration for the (computationally-identifiable) masses. In International Conference on Machine Learning, pages 1939-1948. PMLR.",
|
| 1794 |
+
"Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.",
|
| 1795 |
+
"Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980.",
|
| 1796 |
+
"Ujwal Krothapalli and Lynn Abbott. 2020. One size doesn't fit all: Adaptive label smoothing.",
|
| 1797 |
+
"Nathan Lambert, Valentina Pyatkin, Jacob Morrison, LJ Miranda, Bill Yuchen Lin, Khyathi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, Noah A. Smith, and Hannaneh Hajishirzi. 2024. Rewardbench: Evaluating reward models for language modeling. Preprint, arXiv:2403.13787.",
|
| 1798 |
+
"Xize Liang, Chao Chen, Jie Wang, Yue Wu, Zhihang Fu, Zhihao Shi, Feng Wu, and Jieping Ye. 2024. Robust preference optimization with provable noise tolerance for llms. arXiv preprint arXiv:2404.04102."
|
| 1799 |
+
],
|
| 1800 |
+
"bbox": [
|
| 1801 |
+
510,
|
| 1802 |
+
85,
|
| 1803 |
+
880,
|
| 1804 |
+
919
|
| 1805 |
+
],
|
| 1806 |
+
"page_idx": 8
|
| 1807 |
+
},
|
| 1808 |
+
{
|
| 1809 |
+
"type": "page_number",
|
| 1810 |
+
"text": "21349",
|
| 1811 |
+
"bbox": [
|
| 1812 |
+
475,
|
| 1813 |
+
928,
|
| 1814 |
+
524,
|
| 1815 |
+
940
|
| 1816 |
+
],
|
| 1817 |
+
"page_idx": 8
|
| 1818 |
+
},
|
| 1819 |
+
{
|
| 1820 |
+
"type": "list",
|
| 1821 |
+
"sub_type": "ref_text",
|
| 1822 |
+
"list_items": [
|
| 1823 |
+
"Bingyuan Liu, Ismail Ben Ayed, Adrian Galdran, and Jose Dolz. 2022. The devil is in the margin: Margin-based label smoothing for network calibration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 80-88.",
|
| 1824 |
+
"Tianqi Liu, Zhen Qin, Junru Wu, Jiaming Shen, Misha Khalman, Rishabh Joshi, Yao Zhao, Mohammad Saleh, Simon Baumgartner, Jialu Liu, et al. 2024. Lipo: Listwise preference optimization through learning-to-rank. arXiv preprint arXiv:2402.01878.",
|
| 1825 |
+
"Tianqi Liu, Yao Zhao, Rishabh Joshi, Misha Khalman, Mohammad Saleh, Peter J Liu, and Jialu Liu. 2023. Statistical rejection sampling improves preference optimization. arXiv preprint arXiv:2309.06657.",
|
| 1826 |
+
"Mohamed Maher and Meelis Kull. 2021. Instance-based label smoothing for better calibrated classification networks. In 2021 20th IEEE International Conference on Machine Learning and Applications (ICMLA), pages 746-753. IEEE.",
|
| 1827 |
+
"Eric Mitchell. 2023. A note on dpo with noisy preferences and relationship to ipo.",
|
| 1828 |
+
"Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. 2023. Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707.",
|
| 1829 |
+
"Rafael MΓΌller, Simon Kornblith, and Geoffrey E Hinton. 2019. When does label smoothing help? Advances in neural information processing systems, 32.",
|
| 1830 |
+
"R OpenAI. 2023. Gpt-4 technical report. ArXiv, 2303.",
|
| 1831 |
+
"Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730-27744.",
|
| 1832 |
+
"Hyekang Park, Jongyoun Noh, Youngmin Oh, Donghyeon Baek, and Bumsub Ham. 2023. Acls: Adaptive and conditional label smoothing for network calibration. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3936-3945.",
|
| 1833 |
+
"Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. 2022. Red teaming language models with language models. arXiv preprint arXiv:2202.03286.",
|
| 1834 |
+
"Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever, et al. 2018. Improving language understanding by generative pre-training.",
|
| 1835 |
+
"Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D Manning, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. arXiv preprint arXiv:2305.18290."
|
| 1836 |
+
],
|
| 1837 |
+
"bbox": [
|
| 1838 |
+
115,
|
| 1839 |
+
85,
|
| 1840 |
+
487,
|
| 1841 |
+
917
|
| 1842 |
+
],
|
| 1843 |
+
"page_idx": 9
|
| 1844 |
+
},
|
| 1845 |
+
{
|
| 1846 |
+
"type": "list",
|
| 1847 |
+
"sub_type": "ref_text",
|
| 1848 |
+
"list_items": [
|
| 1849 |
+
"Shyam Sundhar Ramesh, Yifan Hu, Jason Chaimalas, Viraj Mehta, Pier Giuseppe Sessa, Haitham Bou Ammar, and Iija Bogunovic. 2024. Group robust preference optimization in reward-free rlhf. arXiv preprint arXiv:2405.20304.",
|
| 1850 |
+
"John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347.",
|
| 1851 |
+
"Feifan Song, Bowen Yu, Minghao Li, Haiyang Yu, Fei Huang, Yongbin Li, and Houfeng Wang. 2024. Preference ranking optimization for human alignment. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 18990-18998.",
|
| 1852 |
+
"Nisan Stiannon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. 2020. Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:3008-3021.",
|
| 1853 |
+
"Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. 2016. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818-2826.",
|
| 1854 |
+
"Yunhao Tang, Zhaohan Daniel Guo, Zeyu Zheng, Daniele Calandriello, RΓ©mi Munos, Mark Rowland, Pierre Harvey Richemond, Michal Valko, Bernardo Γvila Pires, and Bilal Piot. 2024. Generalized preference optimization: A unified approach to offline alignment. arXiv preprint arXiv:2402.05749.",
|
| 1855 |
+
"Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazteen Rajani, Shengyi Huang, Kashif Rasul, Alexander M. Rush, and Thomas Wolf. 2023a. The alignment handbook. https://github.com/huggingface/alignment-handbook.",
|
| 1856 |
+
"Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro von Werra, ClΓ©mentine Fourrier, Nathan Habib, et al. 2023b. Zephyr: Direct distillation of lm alignment. arXiv preprint arXiv:2310.16944.",
|
| 1857 |
+
"Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30.",
|
| 1858 |
+
"Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, and Shengyi Huang. 2020. Trl: Transformer reinforcement learning. https://github.com/huggingface/trl.",
|
| 1859 |
+
"Haoxiang Wang, Yong Lin, Wei Xiong, Rui Yang, Shizhe Diao, Shuang Qiu, Han Zhao, and Tong"
|
| 1860 |
+
],
|
| 1861 |
+
"bbox": [
|
| 1862 |
+
510,
|
| 1863 |
+
85,
|
| 1864 |
+
880,
|
| 1865 |
+
920
|
| 1866 |
+
],
|
| 1867 |
+
"page_idx": 9
|
| 1868 |
+
},
|
| 1869 |
+
{
|
| 1870 |
+
"type": "page_number",
|
| 1871 |
+
"text": "21350",
|
| 1872 |
+
"bbox": [
|
| 1873 |
+
475,
|
| 1874 |
+
927,
|
| 1875 |
+
524,
|
| 1876 |
+
940
|
| 1877 |
+
],
|
| 1878 |
+
"page_idx": 9
|
| 1879 |
+
},
|
| 1880 |
+
{
|
| 1881 |
+
"type": "list",
|
| 1882 |
+
"sub_type": "text",
|
| 1883 |
+
"list_items": [
|
| 1884 |
+
"Zhang. 2024. Arithmetic control of llms for diverse user preferences: Directional preference alignment with multi-objective rewards. arXiv preprint arXiv:2402.18571.",
|
| 1885 |
+
"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.",
|
| 1886 |
+
"Tianhao Wu, Banghua Zhu, Ruoyu Zhang, Zhaojin Wen, Kannan Ramchandran, and Jiantao Jiao. 2023. Pairwise proximal policy optimization: Harnessing relative feedback for llm alignment. arXiv preprint arXiv:2310.00212.",
|
| 1887 |
+
"Zheng Yuan, Hongyi Yuan, Chuanqi Tan, Wei Wang, Songfang Huang, and Fei Huang. 2023. Rrhf: Rank responses to align language models with human feedback without tears. arXiv preprint arXiv:2304.05302.",
|
| 1888 |
+
"Yao Zhao, Rishabh Joshi, Tianqi Liu, Misha Khalman, Mohammad Saleh, and Peter J Liu. 2023. Slic-hf: Sequence likelihood calibration with human feedback. arXiv preprint arXiv:2305.10425.",
|
| 1889 |
+
"Banghua Zhu, Jiantao Jiao, and Michael I Jordan. 2023a. Principled reinforcement learning with human feedback from pairwise or $k$ -wise comparisons. arXiv preprint arXiv:2301.11270.",
|
| 1890 |
+
"Banghua Zhu, Michael I Jordan, and Jiantao Jiao. 2024. Iterative data smoothing: Mitigating reward overfitting and overoptimization in rlhf. arXiv preprint arXiv:2401.16335.",
|
| 1891 |
+
"Banghua Zhu, Hiteshi Sharma, Felipe Vieira Frujeri, Shi Dong, Chenguang Zhu, Michael I Jordan, and Jiantao Jiao. 2023b. Fine-tuning language models with advantage-induced policy alignment. arXiv preprint arXiv:2306.02231.",
|
| 1892 |
+
"Daniel M Ziegler, Nisan Stiennon, Jeffrey Wu, Tom B Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. 2019. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593.",
|
| 1893 |
+
"Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. 2018. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8697-8710."
|
| 1894 |
+
],
|
| 1895 |
+
"bbox": [
|
| 1896 |
+
114,
|
| 1897 |
+
85,
|
| 1898 |
+
489,
|
| 1899 |
+
782
|
| 1900 |
+
],
|
| 1901 |
+
"page_idx": 10
|
| 1902 |
+
},
|
| 1903 |
+
{
|
| 1904 |
+
"type": "text",
|
| 1905 |
+
"text": "A Proof of Theorem 3.1",
|
| 1906 |
+
"text_level": 1,
|
| 1907 |
+
"bbox": [
|
| 1908 |
+
509,
|
| 1909 |
+
83,
|
| 1910 |
+
731,
|
| 1911 |
+
98
|
| 1912 |
+
],
|
| 1913 |
+
"page_idx": 10
|
| 1914 |
+
},
|
| 1915 |
+
{
|
| 1916 |
+
"type": "text",
|
| 1917 |
+
"text": "Proof. We first rewrite the loss",
|
| 1918 |
+
"bbox": [
|
| 1919 |
+
509,
|
| 1920 |
+
111,
|
| 1921 |
+
741,
|
| 1922 |
+
124
|
| 1923 |
+
],
|
| 1924 |
+
"page_idx": 10
|
| 1925 |
+
},
|
| 1926 |
+
{
|
| 1927 |
+
"type": "equation",
|
| 1928 |
+
"text": "\n$$\nl _ {i} ^ {\\alpha_ {i}} = u \\cdot \\log p (w _ {i}) + (- 1 - u) \\cdot \\log (1 - p (w _ {i}))\n$$\n",
|
| 1929 |
+
"text_format": "latex",
|
| 1930 |
+
"bbox": [
|
| 1931 |
+
512,
|
| 1932 |
+
130,
|
| 1933 |
+
875,
|
| 1934 |
+
147
|
| 1935 |
+
],
|
| 1936 |
+
"page_idx": 10
|
| 1937 |
+
},
|
| 1938 |
+
{
|
| 1939 |
+
"type": "text",
|
| 1940 |
+
"text": "where the coefficient $u$ is defined as",
|
| 1941 |
+
"bbox": [
|
| 1942 |
+
509,
|
| 1943 |
+
151,
|
| 1944 |
+
778,
|
| 1945 |
+
164
|
| 1946 |
+
],
|
| 1947 |
+
"page_idx": 10
|
| 1948 |
+
},
|
| 1949 |
+
{
|
| 1950 |
+
"type": "equation",
|
| 1951 |
+
"text": "\n$$\nu = 2 \\alpha_ {i} z _ {i} - \\alpha_ {i} - z _ {i}.\n$$\n",
|
| 1952 |
+
"text_format": "latex",
|
| 1953 |
+
"bbox": [
|
| 1954 |
+
613,
|
| 1955 |
+
171,
|
| 1956 |
+
774,
|
| 1957 |
+
185
|
| 1958 |
+
],
|
| 1959 |
+
"page_idx": 10
|
| 1960 |
+
},
|
| 1961 |
+
{
|
| 1962 |
+
"type": "text",
|
| 1963 |
+
"text": "The gradient of the empirical loss is given by",
|
| 1964 |
+
"bbox": [
|
| 1965 |
+
507,
|
| 1966 |
+
190,
|
| 1967 |
+
845,
|
| 1968 |
+
206
|
| 1969 |
+
],
|
| 1970 |
+
"page_idx": 10
|
| 1971 |
+
},
|
| 1972 |
+
{
|
| 1973 |
+
"type": "equation",
|
| 1974 |
+
"text": "\n$$\n\\nabla l _ {i} ^ {\\alpha_ {i}} = \\left(\\frac {u}{p (w _ {i})} + \\frac {1 + u}{1 - p (w _ {i})}\\right) \\cdot \\nabla p (w _ {i})\n$$\n",
|
| 1975 |
+
"text_format": "latex",
|
| 1976 |
+
"bbox": [
|
| 1977 |
+
539,
|
| 1978 |
+
208,
|
| 1979 |
+
850,
|
| 1980 |
+
242
|
| 1981 |
+
],
|
| 1982 |
+
"page_idx": 10
|
| 1983 |
+
},
|
| 1984 |
+
{
|
| 1985 |
+
"type": "text",
|
| 1986 |
+
"text": "The gradient of the population loss is given by",
|
| 1987 |
+
"bbox": [
|
| 1988 |
+
507,
|
| 1989 |
+
243,
|
| 1990 |
+
853,
|
| 1991 |
+
258
|
| 1992 |
+
],
|
| 1993 |
+
"page_idx": 10
|
| 1994 |
+
},
|
| 1995 |
+
{
|
| 1996 |
+
"type": "equation",
|
| 1997 |
+
"text": "\n$$\n\\nabla l _ {i} ^ {*} = \\left(\\frac {- q}{p (w _ {i})} + \\frac {1 - q}{1 - p (w _ {i})}\\right) \\cdot \\nabla p (w _ {i})\n$$\n",
|
| 1998 |
+
"text_format": "latex",
|
| 1999 |
+
"bbox": [
|
| 2000 |
+
542,
|
| 2001 |
+
260,
|
| 2002 |
+
847,
|
| 2003 |
+
294
|
| 2004 |
+
],
|
| 2005 |
+
"page_idx": 10
|
| 2006 |
+
},
|
| 2007 |
+
{
|
| 2008 |
+
"type": "text",
|
| 2009 |
+
"text": "If $d(u,v) = \\| u - v\\|_{\\beta}^{\\beta}$ . The expected distance $\\mathbb{E}_{z_i}[d(\\nabla l_i^{\\alpha_i},\\nabla l_i^*)]$ expands as",
|
| 2010 |
+
"bbox": [
|
| 2011 |
+
507,
|
| 2012 |
+
305,
|
| 2013 |
+
880,
|
| 2014 |
+
338
|
| 2015 |
+
],
|
| 2016 |
+
"page_idx": 10
|
| 2017 |
+
},
|
| 2018 |
+
{
|
| 2019 |
+
"type": "equation",
|
| 2020 |
+
"text": "\n$$\n\\begin{array}{l} \\mathbb {E} \\left[ \\left| \\frac {u + q}{p (w _ {i})} + \\frac {u + q}{1 - p (w _ {i})} \\right| ^ {\\beta} \\cdot \\| \\nabla p (w _ {i}) \\| _ {\\beta} ^ {\\beta} \\right] \\\\ = f (\\alpha_ {i}) \\cdot \\frac {\\| \\nabla p (w _ {i}) \\| _ {\\beta} ^ {\\beta}}{p ^ {\\beta} (1 - p) ^ {\\beta}} \\\\ \\end{array}\n$$\n",
|
| 2021 |
+
"text_format": "latex",
|
| 2022 |
+
"bbox": [
|
| 2023 |
+
532,
|
| 2024 |
+
341,
|
| 2025 |
+
855,
|
| 2026 |
+
424
|
| 2027 |
+
],
|
| 2028 |
+
"page_idx": 10
|
| 2029 |
+
},
|
| 2030 |
+
{
|
| 2031 |
+
"type": "text",
|
| 2032 |
+
"text": "where",
|
| 2033 |
+
"bbox": [
|
| 2034 |
+
509,
|
| 2035 |
+
426,
|
| 2036 |
+
559,
|
| 2037 |
+
438
|
| 2038 |
+
],
|
| 2039 |
+
"page_idx": 10
|
| 2040 |
+
},
|
| 2041 |
+
{
|
| 2042 |
+
"type": "equation",
|
| 2043 |
+
"text": "\n$$\nf (x) = q \\cdot | x + q - 1 | ^ {\\beta} + (1 - q) \\cdot | q - x | ^ {\\beta}.\n$$\n",
|
| 2044 |
+
"text_format": "latex",
|
| 2045 |
+
"bbox": [
|
| 2046 |
+
526,
|
| 2047 |
+
443,
|
| 2048 |
+
862,
|
| 2049 |
+
461
|
| 2050 |
+
],
|
| 2051 |
+
"page_idx": 10
|
| 2052 |
+
},
|
| 2053 |
+
{
|
| 2054 |
+
"type": "text",
|
| 2055 |
+
"text": "Now it remains to minimize $f(x)$ . We may assume without loss of generality that $q > 1/2$ , while the case $q < 1/2$ is symmetrical. First notice that projecting any $x \\neq [1 - q, q]$ to the interval $[1 - q, q]$ strictly decreases the value of $f$ , thus the minimizer lies in $[1 - q, q]$ .",
|
| 2056 |
+
"bbox": [
|
| 2057 |
+
507,
|
| 2058 |
+
464,
|
| 2059 |
+
880,
|
| 2060 |
+
561
|
| 2061 |
+
],
|
| 2062 |
+
"page_idx": 10
|
| 2063 |
+
},
|
| 2064 |
+
{
|
| 2065 |
+
"type": "text",
|
| 2066 |
+
"text": "The derivative of $f$ is given by",
|
| 2067 |
+
"bbox": [
|
| 2068 |
+
527,
|
| 2069 |
+
562,
|
| 2070 |
+
757,
|
| 2071 |
+
577
|
| 2072 |
+
],
|
| 2073 |
+
"page_idx": 10
|
| 2074 |
+
},
|
| 2075 |
+
{
|
| 2076 |
+
"type": "equation",
|
| 2077 |
+
"text": "\n$$\n\\begin{array}{l} f ^ {\\prime} (x) \\\\ = q \\beta (x + q - 1) ^ {\\beta - 1} - (1 - q) \\beta (q - x) ^ {\\beta - 1}. \\\\ \\end{array}\n$$\n",
|
| 2078 |
+
"text_format": "latex",
|
| 2079 |
+
"bbox": [
|
| 2080 |
+
527,
|
| 2081 |
+
581,
|
| 2082 |
+
862,
|
| 2083 |
+
620
|
| 2084 |
+
],
|
| 2085 |
+
"page_idx": 10
|
| 2086 |
+
},
|
| 2087 |
+
{
|
| 2088 |
+
"type": "text",
|
| 2089 |
+
"text": "Since $f^{\\prime}(1 - q) < 0 < f^{\\prime}(q)$ and $f^{\\prime}$ is increasing over $[1 - q, q]$ , the minimizer is the unique zero of $f^{\\prime}(x)$ , i.e. the unique solution to the equation",
|
| 2090 |
+
"bbox": [
|
| 2091 |
+
507,
|
| 2092 |
+
621,
|
| 2093 |
+
880,
|
| 2094 |
+
671
|
| 2095 |
+
],
|
| 2096 |
+
"page_idx": 10
|
| 2097 |
+
},
|
| 2098 |
+
{
|
| 2099 |
+
"type": "equation",
|
| 2100 |
+
"text": "\n$$\nq \\beta (x + q - 1) ^ {\\beta - 1} - (1 - q) \\beta (q - x) ^ {\\beta - 1} = 0.\n$$\n",
|
| 2101 |
+
"text_format": "latex",
|
| 2102 |
+
"bbox": [
|
| 2103 |
+
519,
|
| 2104 |
+
673,
|
| 2105 |
+
870,
|
| 2106 |
+
692
|
| 2107 |
+
],
|
| 2108 |
+
"page_idx": 10
|
| 2109 |
+
},
|
| 2110 |
+
{
|
| 2111 |
+
"type": "text",
|
| 2112 |
+
"text": "If $d(u,v) = \\| u - v\\| _0$ . The expected distance $\\mathbb{E}_{z_i}[d(\\nabla l_i^{\\alpha_i},\\nabla l_i^*)]$ is equal to",
|
| 2113 |
+
"bbox": [
|
| 2114 |
+
507,
|
| 2115 |
+
702,
|
| 2116 |
+
880,
|
| 2117 |
+
734
|
| 2118 |
+
],
|
| 2119 |
+
"page_idx": 10
|
| 2120 |
+
},
|
| 2121 |
+
{
|
| 2122 |
+
"type": "equation",
|
| 2123 |
+
"text": "\n$$\nq \\cdot \\mathbb {1} (x = 1 - q) + (1 - q) \\cdot \\mathbb {1} (x = q).\n$$\n",
|
| 2124 |
+
"text_format": "latex",
|
| 2125 |
+
"bbox": [
|
| 2126 |
+
547,
|
| 2127 |
+
738,
|
| 2128 |
+
840,
|
| 2129 |
+
755
|
| 2130 |
+
],
|
| 2131 |
+
"page_idx": 10
|
| 2132 |
+
},
|
| 2133 |
+
{
|
| 2134 |
+
"type": "text",
|
| 2135 |
+
"text": "It follows that the minimizer is $\\min \\{q,1 - q\\}$",
|
| 2136 |
+
"bbox": [
|
| 2137 |
+
507,
|
| 2138 |
+
758,
|
| 2139 |
+
880,
|
| 2140 |
+
774
|
| 2141 |
+
],
|
| 2142 |
+
"page_idx": 10
|
| 2143 |
+
},
|
| 2144 |
+
{
|
| 2145 |
+
"type": "text",
|
| 2146 |
+
"text": "B Proof of Theorem 4.1",
|
| 2147 |
+
"text_level": 1,
|
| 2148 |
+
"bbox": [
|
| 2149 |
+
509,
|
| 2150 |
+
788,
|
| 2151 |
+
729,
|
| 2152 |
+
803
|
| 2153 |
+
],
|
| 2154 |
+
"page_idx": 10
|
| 2155 |
+
},
|
| 2156 |
+
{
|
| 2157 |
+
"type": "text",
|
| 2158 |
+
"text": "Proof. We rewrite the loss as",
|
| 2159 |
+
"bbox": [
|
| 2160 |
+
509,
|
| 2161 |
+
815,
|
| 2162 |
+
727,
|
| 2163 |
+
829
|
| 2164 |
+
],
|
| 2165 |
+
"page_idx": 10
|
| 2166 |
+
},
|
| 2167 |
+
{
|
| 2168 |
+
"type": "equation",
|
| 2169 |
+
"text": "\n$$\n\\begin{array}{l} \\mathbb {E} \\left[ u (w) \\cdot \\log p _ {\\theta} (w) + \\right. \\\\ \\left. + (- 1 - u (w)) \\cdot \\log (1 - p _ {\\theta} (w)) \\right] \\\\ \\end{array}\n$$\n",
|
| 2170 |
+
"text_format": "latex",
|
| 2171 |
+
"bbox": [
|
| 2172 |
+
566,
|
| 2173 |
+
832,
|
| 2174 |
+
825,
|
| 2175 |
+
887
|
| 2176 |
+
],
|
| 2177 |
+
"page_idx": 10
|
| 2178 |
+
},
|
| 2179 |
+
{
|
| 2180 |
+
"type": "text",
|
| 2181 |
+
"text": "where $u(w) = 2\\alpha(p_{\\theta}(w))p^{*}(w) - \\alpha(p_{\\theta}(w)) - p^{*}(w)$ . Let $\\widetilde{p}$ be any the equilibrium solution, first",
|
| 2182 |
+
"bbox": [
|
| 2183 |
+
507,
|
| 2184 |
+
889,
|
| 2185 |
+
880,
|
| 2186 |
+
921
|
| 2187 |
+
],
|
| 2188 |
+
"page_idx": 10
|
| 2189 |
+
},
|
| 2190 |
+
{
|
| 2191 |
+
"type": "page_number",
|
| 2192 |
+
"text": "21351",
|
| 2193 |
+
"bbox": [
|
| 2194 |
+
475,
|
| 2195 |
+
927,
|
| 2196 |
+
522,
|
| 2197 |
+
940
|
| 2198 |
+
],
|
| 2199 |
+
"page_idx": 10
|
| 2200 |
+
},
|
| 2201 |
+
{
|
| 2202 |
+
"type": "text",
|
| 2203 |
+
"text": "order optimality gives",
|
| 2204 |
+
"bbox": [
|
| 2205 |
+
112,
|
| 2206 |
+
84,
|
| 2207 |
+
280,
|
| 2208 |
+
99
|
| 2209 |
+
],
|
| 2210 |
+
"page_idx": 11
|
| 2211 |
+
},
|
| 2212 |
+
{
|
| 2213 |
+
"type": "equation",
|
| 2214 |
+
"text": "\n$$\n\\widetilde {p} (w) = p ^ {*} (w) + \\alpha (\\widetilde {p} (w)) - 2 p ^ {*} (w) \\alpha (\\widetilde {p} (w)).\n$$\n",
|
| 2215 |
+
"text_format": "latex",
|
| 2216 |
+
"bbox": [
|
| 2217 |
+
127,
|
| 2218 |
+
103,
|
| 2219 |
+
470,
|
| 2220 |
+
121
|
| 2221 |
+
],
|
| 2222 |
+
"page_idx": 11
|
| 2223 |
+
},
|
| 2224 |
+
{
|
| 2225 |
+
"type": "text",
|
| 2226 |
+
"text": "Notice that this gives a injective map from $p^*(w)$ to $\\widetilde{p}(w)$ . It follows that $\\widetilde{p}(w)$ is the unique solution of the above equation.",
|
| 2227 |
+
"bbox": [
|
| 2228 |
+
112,
|
| 2229 |
+
124,
|
| 2230 |
+
485,
|
| 2231 |
+
172
|
| 2232 |
+
],
|
| 2233 |
+
"page_idx": 11
|
| 2234 |
+
},
|
| 2235 |
+
{
|
| 2236 |
+
"type": "text",
|
| 2237 |
+
"text": "When",
|
| 2238 |
+
"bbox": [
|
| 2239 |
+
132,
|
| 2240 |
+
173,
|
| 2241 |
+
181,
|
| 2242 |
+
186
|
| 2243 |
+
],
|
| 2244 |
+
"page_idx": 11
|
| 2245 |
+
},
|
| 2246 |
+
{
|
| 2247 |
+
"type": "equation",
|
| 2248 |
+
"text": "\n$$\n\\widetilde {\\alpha} (x) = \\left(\\mathbb {P} ^ {*} (z \\neq \\mathbb {1} (x > 0 / 5) | p _ {\\theta} (w) = x)\\right) _ {< 0. 5}\n$$\n",
|
| 2249 |
+
"text_format": "latex",
|
| 2250 |
+
"bbox": [
|
| 2251 |
+
124,
|
| 2252 |
+
191,
|
| 2253 |
+
475,
|
| 2254 |
+
210
|
| 2255 |
+
],
|
| 2256 |
+
"page_idx": 11
|
| 2257 |
+
},
|
| 2258 |
+
{
|
| 2259 |
+
"type": "text",
|
| 2260 |
+
"text": "we have",
|
| 2261 |
+
"bbox": [
|
| 2262 |
+
112,
|
| 2263 |
+
212,
|
| 2264 |
+
179,
|
| 2265 |
+
225
|
| 2266 |
+
],
|
| 2267 |
+
"page_idx": 11
|
| 2268 |
+
},
|
| 2269 |
+
{
|
| 2270 |
+
"type": "equation",
|
| 2271 |
+
"text": "\n$$\n\\widetilde {\\alpha} (\\widetilde {p} (w)) = \\left\\{ \\begin{array}{l l} 1 - p ^ {*} (w), & \\widetilde {p} (w) > 0 / 5 \\\\ p ^ {*} (w), & \\widetilde {p} (w) \\leq 0 / 5 \\end{array} \\right..\n$$\n",
|
| 2272 |
+
"text_format": "latex",
|
| 2273 |
+
"bbox": [
|
| 2274 |
+
142,
|
| 2275 |
+
227,
|
| 2276 |
+
455,
|
| 2277 |
+
268
|
| 2278 |
+
],
|
| 2279 |
+
"page_idx": 11
|
| 2280 |
+
},
|
| 2281 |
+
{
|
| 2282 |
+
"type": "text",
|
| 2283 |
+
"text": "Plugging back to the first order optimality condition, we have",
|
| 2284 |
+
"bbox": [
|
| 2285 |
+
112,
|
| 2286 |
+
269,
|
| 2287 |
+
487,
|
| 2288 |
+
300
|
| 2289 |
+
],
|
| 2290 |
+
"page_idx": 11
|
| 2291 |
+
},
|
| 2292 |
+
{
|
| 2293 |
+
"type": "equation",
|
| 2294 |
+
"text": "\n$$\n\\widetilde {p} (w) = \\left\\{ \\begin{array}{l l} 1 - 2 p ^ {*} (w) + 2 p ^ {*} (w) ^ {2}, & p ^ {*} (w) > 0. 5 \\\\ 2 p ^ {*} (w) - 2 p ^ {*} (w) ^ {2}, & p ^ {*} (w) \\leq 0. 5 \\end{array} \\right..\n$$\n",
|
| 2295 |
+
"text_format": "latex",
|
| 2296 |
+
"bbox": [
|
| 2297 |
+
112,
|
| 2298 |
+
303,
|
| 2299 |
+
495,
|
| 2300 |
+
344
|
| 2301 |
+
],
|
| 2302 |
+
"page_idx": 11
|
| 2303 |
+
},
|
| 2304 |
+
{
|
| 2305 |
+
"type": "text",
|
| 2306 |
+
"text": "This completes the proof.",
|
| 2307 |
+
"bbox": [
|
| 2308 |
+
112,
|
| 2309 |
+
346,
|
| 2310 |
+
305,
|
| 2311 |
+
361
|
| 2312 |
+
],
|
| 2313 |
+
"page_idx": 11
|
| 2314 |
+
},
|
| 2315 |
+
{
|
| 2316 |
+
"type": "text",
|
| 2317 |
+
"text": "C Hyperparameters for Preference Training",
|
| 2318 |
+
"text_level": 1,
|
| 2319 |
+
"bbox": [
|
| 2320 |
+
112,
|
| 2321 |
+
374,
|
| 2322 |
+
433,
|
| 2323 |
+
407
|
| 2324 |
+
],
|
| 2325 |
+
"page_idx": 11
|
| 2326 |
+
},
|
| 2327 |
+
{
|
| 2328 |
+
"type": "table",
|
| 2329 |
+
"img_path": "images/b5fadf99a39af22c6e08dac01fefd46dc822ad0f3aff8a1d0a8c08e4f2991cf3.jpg",
|
| 2330 |
+
"table_caption": [],
|
| 2331 |
+
"table_footnote": [],
|
| 2332 |
+
"table_body": "<table><tr><td>Hyperparameter</td><td>Value(s)</td></tr><tr><td>Learning rate</td><td>5.0e-7</td></tr><tr><td>Batch size per device</td><td>8</td></tr><tr><td>Number of epochs</td><td>1</td></tr><tr><td>Temperature</td><td>0.05</td></tr><tr><td>Warmup ratio</td><td>0.1</td></tr></table>",
|
| 2333 |
+
"bbox": [
|
| 2334 |
+
169,
|
| 2335 |
+
429,
|
| 2336 |
+
433,
|
| 2337 |
+
577
|
| 2338 |
+
],
|
| 2339 |
+
"page_idx": 11
|
| 2340 |
+
},
|
| 2341 |
+
{
|
| 2342 |
+
"type": "table",
|
| 2343 |
+
"img_path": "images/62501a7d848b8ff1edac99058e2fd4f683c2b8bb0bd67d32feafe55b002191dc.jpg",
|
| 2344 |
+
"table_caption": [
|
| 2345 |
+
"Table 1: Hyperparameters for Zephyr-7B training. We use AdamW (Kingma and Ba, 2014) optimizer."
|
| 2346 |
+
],
|
| 2347 |
+
"table_footnote": [],
|
| 2348 |
+
"table_body": "<table><tr><td>Hyperparameter</td><td>Value(s)</td></tr><tr><td>Learning rate</td><td>5.0e-7</td></tr><tr><td>Batch size per device</td><td>2</td></tr><tr><td>Number of epochs</td><td>2</td></tr><tr><td>Temperature</td><td>0.05</td></tr><tr><td>Warmup ratio</td><td>0.1</td></tr></table>",
|
| 2349 |
+
"bbox": [
|
| 2350 |
+
169,
|
| 2351 |
+
645,
|
| 2352 |
+
433,
|
| 2353 |
+
795
|
| 2354 |
+
],
|
| 2355 |
+
"page_idx": 11
|
| 2356 |
+
},
|
| 2357 |
+
{
|
| 2358 |
+
"type": "text",
|
| 2359 |
+
"text": "Table 2: Hyperparameters for Starch2-15B training. We use AdamW (Kingma and Ba, 2014) optimizer.",
|
| 2360 |
+
"bbox": [
|
| 2361 |
+
112,
|
| 2362 |
+
804,
|
| 2363 |
+
487,
|
| 2364 |
+
833
|
| 2365 |
+
],
|
| 2366 |
+
"page_idx": 11
|
| 2367 |
+
},
|
| 2368 |
+
{
|
| 2369 |
+
"type": "text",
|
| 2370 |
+
"text": "D Prompts for GPT Evaluation",
|
| 2371 |
+
"text_level": 1,
|
| 2372 |
+
"bbox": [
|
| 2373 |
+
112,
|
| 2374 |
+
862,
|
| 2375 |
+
401,
|
| 2376 |
+
879
|
| 2377 |
+
],
|
| 2378 |
+
"page_idx": 11
|
| 2379 |
+
},
|
| 2380 |
+
{
|
| 2381 |
+
"type": "text",
|
| 2382 |
+
"text": "For the following query to a chatbot, which response is more helpful?",
|
| 2383 |
+
"bbox": [
|
| 2384 |
+
112,
|
| 2385 |
+
890,
|
| 2386 |
+
521,
|
| 2387 |
+
921
|
| 2388 |
+
],
|
| 2389 |
+
"page_idx": 11
|
| 2390 |
+
},
|
| 2391 |
+
{
|
| 2392 |
+
"type": "text",
|
| 2393 |
+
"text": "Query: <prompt>",
|
| 2394 |
+
"bbox": [
|
| 2395 |
+
509,
|
| 2396 |
+
102,
|
| 2397 |
+
600,
|
| 2398 |
+
131
|
| 2399 |
+
],
|
| 2400 |
+
"page_idx": 11
|
| 2401 |
+
},
|
| 2402 |
+
{
|
| 2403 |
+
"type": "text",
|
| 2404 |
+
"text": "Response A: <response_A>",
|
| 2405 |
+
"bbox": [
|
| 2406 |
+
509,
|
| 2407 |
+
149,
|
| 2408 |
+
643,
|
| 2409 |
+
180
|
| 2410 |
+
],
|
| 2411 |
+
"page_idx": 11
|
| 2412 |
+
},
|
| 2413 |
+
{
|
| 2414 |
+
"type": "text",
|
| 2415 |
+
"text": "Response B: <response_B>",
|
| 2416 |
+
"bbox": [
|
| 2417 |
+
509,
|
| 2418 |
+
198,
|
| 2419 |
+
643,
|
| 2420 |
+
228
|
| 2421 |
+
],
|
| 2422 |
+
"page_idx": 11
|
| 2423 |
+
},
|
| 2424 |
+
{
|
| 2425 |
+
"type": "text",
|
| 2426 |
+
"text": "FIRST provide a one-sentence comparison of the two responses and explain which you feel is more helpful. SECOND, on a new line, state only 'A' or 'B' or 'tie' to indicate which response is more helpful. Your response should use the format:",
|
| 2427 |
+
"bbox": [
|
| 2428 |
+
507,
|
| 2429 |
+
246,
|
| 2430 |
+
862,
|
| 2431 |
+
372
|
| 2432 |
+
],
|
| 2433 |
+
"page_idx": 11
|
| 2434 |
+
},
|
| 2435 |
+
{
|
| 2436 |
+
"type": "text",
|
| 2437 |
+
"text": "Comparison: <one-sentence comparison and explanation> More helpful: $< ^{\\prime}\\mathrm{A}^{\\prime}$ or $\\mathbf{\\nabla}^{'}\\mathbf{B}^{\\prime}$ or 'tie'>",
|
| 2438 |
+
"bbox": [
|
| 2439 |
+
507,
|
| 2440 |
+
391,
|
| 2441 |
+
821,
|
| 2442 |
+
451
|
| 2443 |
+
],
|
| 2444 |
+
"page_idx": 11
|
| 2445 |
+
},
|
| 2446 |
+
{
|
| 2447 |
+
"type": "page_number",
|
| 2448 |
+
"text": "21352",
|
| 2449 |
+
"bbox": [
|
| 2450 |
+
475,
|
| 2451 |
+
927,
|
| 2452 |
+
524,
|
| 2453 |
+
940
|
| 2454 |
+
],
|
| 2455 |
+
"page_idx": 11
|
| 2456 |
+
}
|
| 2457 |
+
]
|
2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/a5f9a87b-4cfa-43ae-9c52-c17f4ed4ad95_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/a5f9a87b-4cfa-43ae-9c52-c17f4ed4ad95_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:524d7aa68817a7993b9aa762108967695bdf257b4a8d04a844e3ed9bfa97d318
|
| 3 |
+
size 2139486
|
2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/full.md
ADDED
|
@@ -0,0 +1,537 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enhancing Language Model Alignment: A Confidence-Based Approach to Label Smoothing
|
| 2 |
+
|
| 3 |
+
Baihe Huang*, Hiteshi Sharmaβ , Yi Maoβ
|
| 4 |
+
|
| 5 |
+
$^{\star}$ University of California Berkeley, β Microsoft Research
|
| 6 |
+
|
| 7 |
+
baihe_huang@berkeley.edu,{hitshi.sharma,maoyi} $@$ microsoft.com
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
In recent years, Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains. Within the training pipeline of LLMs, the Reinforcement Learning with Human Feedback (RLHF) phase is crucial for aligning LLMs with human preferences and values. Label smoothing, a technique that replaces hard labels with soft labels, emerges as promising techniques to enhance RLHF training. Despite the benefits, the choice of label smoothing parameters often relies on heuristic approaches and lack theoretical understanding. This paper addresses the challenge of selecting the label smoothing parameter in a principled manner. We introduce Confidence Aware Label Smoothing (CALS), a method that iteratively updates the label smoothing parameter based on preference labels and model forecasts. Our theoretical analysis characterizes the optimal label smoothing parameter, demonstrates its dependence on the confidence level, and reveals its influence on training dynamics and equilibrium. Empirical evaluations on state-of-the-art alignment tasks show that CALS achieves competitive performance, highlighting its potential for improving alignment.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Large Language Models (LLMs), empowered by deep transformer architecture (Vaswani et al., 2017) and huge text datasets, have acquired remarkable capabilities in various domains (Brown et al., 2020; Bubeck et al., 2023; Chowdhery et al., 2023), achieving tremendous success on diverse tasks. The full training pipeline of LLMs can be divided into three stages: Pretraining phase (Radford et al., 2018) where the LLM is trained with unsupervised learning on huge corpus of text data, Supervised Fine-Tuning (SFT) phase (Wei et al., 2021) where the LLM is fine-tuned with supervised learning on datasets for the downstream task, and Reinforcement Learning with Human Feedback (RLHF)
|
| 16 |
+
|
| 17 |
+
phase (Stiennon et al., 2020; Ouyang et al., 2022) where the LLM is trained on pairwise (or listwise) comparison dataset to improve the alignment with human preferences. In particular, the RLHF phase plays a critical role in controlling the model behavior and aligning LLMs with human values (Perez et al., 2022; Ganguli et al., 2022; Bai et al., 2022).
|
| 18 |
+
|
| 19 |
+
Proximal Policy Optimization (PPO) (Schulman et al., 2017) is widely adopted as the RL optimizer in RLHF phase. Recently, Direct Preference Optimization (DPO) (Rafailov et al., 2023) emerges as a promising alternative to Reinforcement Learning methods, as it directly optimizes the model with a classification loss and bypasses the need of fitting a separate reward model. In DPO and more generally MLE training, label smoothing (MΓΌller et al., 2019; Mitchell, 2023) is a standard technique to mitigate the noise in preference labels and overfitting issues. However, the choice of the label smoothing parameter is often set heuristically and theoretical understanding remains scarce. Therefore in this work, we ask the question:
|
| 20 |
+
|
| 21 |
+
How to select the label smoothing parameter in a more principled way?
|
| 22 |
+
|
| 23 |
+
To answer this question, we first analyze the tradeoff between bias and variance of the gradient estimate and then characterize the optimal choice of the label smoothing parameter that minimize the expected error of gradient estimate under different distance measures. Our theorem suggests that the label smoothing parameter should depend on the confidence level of the preference label. Motivated by this result, we propose Confidence Aware Label Smoothing (CALS), a method that iteratively updates the label smoothing parameter to reflect the confidence of preference label. Our method ensures that the gradient is weighted by both the confidence level of preference label and the correctness of model forecast based on preference label and model forecasts, illustrated in Figure 1.
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
(a) DPO with no/constant label smoothing.
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
(b) DPO with confidence-aware label smoothing.
|
| 30 |
+
Figure 1: Illustration of our method, where $p_{\theta}(y^{+} \succ y^{-})$ represents how correctly the model is able to predict human preference and $p^{*}(y^{+} \succ y^{-})$ corresponds to how confident the preference label is. In vanilla DPO gradient, the likelihood update is weighted by $p_{\theta}(y^{+} \succ y^{-})$ in the sense that samples with lower $p_{\theta}(y^{+} \succ y^{-})$ (where the model is incorrect) get faster update. This is illustrated in Figure 1a. In confidence-aware label smoothing (Figure 1b), we add another dimension to the diagram, so that the update rate is also dependent on confidence of preference labels. In effect, samples with lower $p_{\theta}(y^{+} \succ y^{-})$ (where the model is incorrect) and higher $p^{*}(y^{+} \succ y^{-})$ (where the label is confident) will obtain faster update.
|
| 31 |
+
|
| 32 |
+
We analyze the equilibrium and dynamics of DPO with CALS, showing that our proposed method has a more stable gradient and conservative equilibrium. Finally, we empirically evaluate our method in state-of-the-art alignment tasks, which shows competitive performance over the baseline.
|
| 33 |
+
|
| 34 |
+
# 1.1 Related works
|
| 35 |
+
|
| 36 |
+
RLHF. Ziegler et al. (2019); Stiennon et al. (2020); Ouyang et al. (2022); Bai et al. (2022) establish RLHF pipelines for LLM alignment. With the framework, various methods refine the PPO-based RLHF algorithms, by improving the reward function training (Zhu et al., 2023a; Song et al., 2024; Zhu et al., 2024), reducing variance in RL optimization (Wu et al., 2023; Zhu et al., 2023b), or including sampling techniques (Dong et al., 2023; Gulcehre et al., 2023; Wang et al., 2024). Recently, alternative methods have been proposed to directly align human preference, including DPO (Rafailov et al., 2023), RRHF (Yuan et al., 2023), IPO (Azar et al., 2024), DRPO (Chang et al., 2024), Slic (Zhao et al., 2023), RSO (Liu et al., 2023), GPO (Tang et al., 2024), KTO (Ethayarajh et al., 2024), LiPO (Liu et al., 2024), $\Psi$ PO (Azar et al., 2024), and GRPO (Ramesh et al., 2024). These methods focuses on the form of loss functions, and are parallel to our work.
|
| 37 |
+
|
| 38 |
+
Label smoothing. Label smoothing has been used successfully in improving deep learning models in various tasks (Szegedy et al., 2016; Chorowski and Jaitly, 2016; Zoph et al., 2018). In knowledge distillation, using soft labels help the
|
| 39 |
+
|
| 40 |
+
training of student networks (Hinton et al., 2015). Various methods propose adaptive or instance-dependent label smoothing techniques (Krothapalli and Abbott, 2020; Maher and Kull, 2021; Liu et al., 2022; Park et al., 2023; Guo et al., 2024) to strengthen the method. It has been shown that appropriate label smoothing can improve generalization (MΓΌller et al., 2019), mitigate label noises (Liang et al., 2024), and prevent reward overfitting (Zhu et al., 2024).
|
| 41 |
+
|
| 42 |
+
# 2 Preference Learning
|
| 43 |
+
|
| 44 |
+
RLHF pipelines. Reinforcement Learning with Human Feedback (Ziegler et al., 2019; Stiennon et al., 2020; Ouyang et al., 2022; Bai et al., 2022) is a process to align with human preference, typically happening after training after pretraining and Supervised Finetuning (SFT). In this phase, a set of preference data $(x,y^{+},y^{-})$ is given, where $x$ is the prompt and $y^{+}$ is the preferred response over $y^{-}$ .
|
| 45 |
+
|
| 46 |
+
First, RLHF trains a reward function $r_{\phi}(x,y)$ that maps a pair of prompt and response to a scalar value. In Bradley-Terry model (Bradley and Terry, 1952), the probability of preferring response $y_{1}$ over $y_{2}$ given prompt $x$ is expressed by
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\begin{array}{l} p \left(y _ {1} \succ y _ {2} \mid x\right) = \frac {\exp \left(r ^ {*} \left(x , y _ {1}\right)\right)}{\exp \left(r ^ {*} \left(x , y _ {1}\right)\right) + \exp \left(r ^ {*} \left(x , y _ {2}\right)\right)} \\ = \sigma \left(r ^ {*} \left(x, y _ {1}\right) - r ^ {*} \left(x, y _ {2}\right)\right) \\ \end{array}
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where $r^*$ is the ground-truth reward and $\sigma(x) = 1 / (1 + \exp(-x))$ is the sigmoid function. Under this model, RLHF learns the reward function by
|
| 53 |
+
|
| 54 |
+
minimizing the MLE loss:
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
\begin{array}{l} \mathcal {L} _ {\mathrm {r e w}} (r _ {\phi}; \mathcal {D}) \\ = - \mathbb {E} _ {(x, y ^ {+}, y ^ {-}) \sim \mathcal {D}} [ \log \sigma \left(r _ {\phi} \left(x, y ^ {+}\right) - r _ {\phi} \left(x, y ^ {-}\right)\right) ] \tag {1} \\ \end{array}
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
where $\mathcal{D}$ is the empirical distribution over the training dataset.
|
| 61 |
+
|
| 62 |
+
Using the learned reward function $r_{\phi}$ , RLHF then applies Reinforcement Learning (RL) to train the policy model $\pi_{\theta}$ , maximizing the objective
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\underset { \begin{array}{c} x \sim \mathcal {D} _ {\mathrm {R L}} \\ y \sim \pi (\cdot | x) \end{array} } {\mathbb {E}} [ r _ {\phi} (x, y) - \beta \cdot \mathrm {K L} (\pi_ {\theta} (\cdot | x) \| \pi_ {\mathrm {s f t}} (\cdot | x)) ] \tag {2}
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
where $\mathcal{D}_{\mathrm{RL}}$ is the empirical distribution over the training dataset for the RL phase, $\mathrm{KL}(\cdot \| \cdot)$ is the KL-divergence, and $\pi_{\mathrm{sft}}$ is the model learned after the SFT phase. The regularization term $-\beta \cdot \mathrm{KL}(\pi_{\theta}(\cdot |x)\| \pi_{\mathrm{sft}}(\cdot |x))$ is used to mitigate the distribution shift issue and to prevent over-optimization. Typically, PPO (Schulman et al., 2017) is used to optimize the objective function.
|
| 69 |
+
|
| 70 |
+
Direct preference learning. Besides RLHF, directly learn from human preference may also be directly learned (Rafailov et al., 2023; Zhao et al., 2023; Azar et al., 2024) without the need of first learning a reward function. Among Direct Preference Optimization (Rafailov et al., 2023) (DPO) directly optimizes the following objective
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\begin{array}{l} \mathcal {L} _ {\mathrm {D P O}} \left(\pi_ {\theta}; \mathcal {D}\right) = \mathbb {E} _ {\left(x, y ^ {+}, y ^ {-}\right) \sim \mathcal {D}} \Big [ \\ \left. - \log \sigma \left(\beta \frac {\pi_ {\theta} (x , y ^ {+})}{\pi_ {\mathrm {s f t}} (x , y ^ {+})} - \beta \frac {\pi_ {\theta} (x , y ^ {-})}{\pi_ {\mathrm {s f t}} (x , y ^ {-})}\right) \right] \\ \end{array}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
By plugging in the optimal solution to the KL-constrained objective in Eq. (2)
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
r (x, y) = \beta \frac {\pi_ {\theta} (x , y)}{\pi_ {\mathrm {s f t}} (x , y)} + \beta \log Z (x)
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
it is shown that DPO optimizes the same objective as in Eq. (1).
|
| 83 |
+
|
| 84 |
+
# 2.1 RLHF as a classification problem
|
| 85 |
+
|
| 86 |
+
RLHF can be rewritten as a classification problem over the data $(w,z)$ , where the input $w = (x,y_1,y_2)$ is a tuple of one prompt and two responses, and the label $z = \mathbb{1}(y_1\succ y_2)\in \{0,1\}$ indicates whether human prefers $y_{1}$ or $y_{2}$ . The prediction model can be expressed by the reward model:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
p _ {\phi} (w) = \sigma \left(r _ {\phi} \left(y _ {1} | x\right) - r _ {\phi} \left(y _ {2} | x\right)\right)
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
or directly by the preference model:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
p _ {\theta} (w) = \sigma \left(\log \frac {\pi_ {\theta} (y _ {1} | x)}{\pi_ {\mathrm {s f t}} (y _ {1} | x)} - \log \frac {\pi_ {\theta} (y _ {2} | x)}{\pi_ {\mathrm {s f t}} (y _ {2} | x)}\right).
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
In either case, RLHF can be expressed as learning the prediction model $p$ with Binary Cross-Entropy (BCE) loss
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\mathcal {L} _ {\mathrm {B C E}} (p; \mathcal {D}) = \sum_ {i = 1} ^ {n} l _ {i} \tag {3}
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $l_{i} = -z_{i}\log p(w_{i}) + (1 - z_{i})\log (1 - p(w_{i}))$
|
| 105 |
+
|
| 106 |
+
Label smoothing. Label smoothing may be applied to classification losses to improve generalization and tolerance to label noises (Szegedy et al., 2016; Mitchell, 2023; Zhu et al., 2024; Liang et al., 2024). Let $\alpha_{i}$ denote the label smoothing parameter for datapoint $(w_{i},z_{i})$ , then the BCE loss with label smoothing is given by
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\mathcal {L} _ {\mathrm {B C E}} ^ {\alpha} (p; \mathcal {D}) = \sum_ {i = 1} ^ {n} l _ {i} ^ {\alpha} \tag {4}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
where $l_i^\alpha = -(1 - \alpha_i) \cdot (z_i \log p(w_i) + (1 - z_i) \log (1 - p(w_i))) - \alpha_i \cdot ((1 - z_i) \log p(w_i) + z_i \log (1 - p(w_i))).$
|
| 113 |
+
|
| 114 |
+
# 3 Gradient Estimation
|
| 115 |
+
|
| 116 |
+
In this section, we analyze the influence of label smoothing parameters on gradient estimation. Consider the BCE loss in Eq. (3). For each $l_{i}$ , its population version $l_{i}^{*} := \mathbb{E}_{z_{i}}[l_{i}]$ represents the average loss on $w_{i}$ under the ground truth distribution $z_{i} \sim \text{Bernoulli}(p^{*}(w_{i}))$ , where $p^{*}(w_{i}) = \sigma(r^{*}(x, y_{1}) - r^{*}(x, y_{2}))$ in Bradley-Terry model. Essentially, $l_{i}^{*}$ is the KL-distance between the true distribution of $z_{i}$ and the model prediction, Bernoulli $(p_{\theta}(w_{i}))$ . Our objective is to minimize $l_{i}^{*}$ , which is equivalent to fitting $p_{\theta}(w_{i})$ to $p^{*}(w_{i})$ .
|
| 117 |
+
|
| 118 |
+
In gradient-based methods, we estimate gradients using $\nabla l_i^{\alpha_i}$ instead of $\nabla (l_i^*)$ . The parameter $\alpha_{i}$ controls the trade-off between the bias and variance: when $\alpha = 0$ , the gradient estimate is unbiased, in the sense that $\mathbb{E}_{z_i}[\nabla l_i^{\alpha_i}] = \nabla (l_i^*)$ ; when $\alpha_{i} = 0.5$ , the gradient estimate has zero variance, i.e., $\mathrm{Var}(\nabla l_i^{\alpha_i}) = 0$ . Therefore, it is crucial to determine the $\alpha_{i}^{*}$ that minimizes the distance between $\nabla l_i^{\alpha_i}$ and $\nabla l_i^*$ . This is answered by the following theorem.
|
| 119 |
+
|
| 120 |
+
Theorem 3.1. We abbreviate $q \coloneqq p^{*}(w_{i})$ . Consider the expected distance $\mathbb{E}_{z_i}[d(\nabla l_i^{\alpha_i},\nabla l_i^*)]$ between the gradient estimate $\nabla l_i^{\alpha_i}$ and the expected gradient $\nabla l_i^*$ under distance $d$ , then:
|
| 121 |
+
|
| 122 |
+
1. if $d(u,v) = \| u - v\|_{\beta}^{\beta}$ where $\| \cdot \|_{\beta}$ is the $\ell_{\beta}$ metric ( $\beta > 1$ ), the expected distance $\mathbb{E}_{z_i}[d(\nabla l_i^{\alpha_i},\nabla l_i^*)]$ is minimized when $\alpha^{*}$ is the unique solution of the equation
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
q (q + x - 1) ^ {\beta - 1} - (1 - q) (q - x) ^ {\beta - 1} = 0
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
2. when $d(u,v) = \mathbb{1}(u\neq v)$ is the $\ell_0$ metric, the expected distance $\mathbb{E}_{z_i}[d(\nabla l_i^{\alpha_i},\nabla l_i^*)]$ is minimized when
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
\alpha_ {i} ^ {*} = \min \left\{q, 1 - q \right\}.
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
The proof is found in Appendix A. The above result characterizes the optimal choice of the label-smoothing parameter under a range of distance measures. Specifically, for $\alpha_{2}$ , the optimal $\alpha^{*}$ has the closed form expression
|
| 135 |
+
|
| 136 |
+
$$
|
| 137 |
+
\alpha_ {i} ^ {*} = 2 p ^ {*} (w _ {i}) - 2 p ^ {*} (w _ {i}) ^ {2}.
|
| 138 |
+
$$
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 2 illustrates the curves of the optimal
|
| 142 |
+
Figure 2: Optimal label smoothing parameter.
|
| 143 |
+
|
| 144 |
+
label-smoothing parameter with respect to $q$ , under different $\beta$ . It's observed that $\alpha^{*}$ always lie in $[\min \{q,1 - q\} ,0.5]$ , indicating a conservative loss function. Furthermore, $\alpha^{*}$ increases with $\min \{q,1 - q\}$ : when $q = 1 / 2$ , the optimal parameter $\alpha^{*} = 1 / 2$ and $\nabla l_{i} = \nabla l^{*}$ ; when $q = 0,1$ , the optimal parameter $\alpha^{*} = 0$ . This aligns with the intuition that the label smoothing parameter should be small when the label has high confidence, while it can be set higher when the label is uncertain.
|
| 145 |
+
|
| 146 |
+
# 4 Confidence Aware Label Smoothing (CALS)
|
| 147 |
+
|
| 148 |
+
Motivated by the previous section, we develop confidence-aware label smoothing where the label smoothing parameter is set to reflect the confidence level of the label. Ideally, we hope the parameter for data $(w,z)$ to be certain function of the confidence per data: $p^{*}(w) = \mathbb{P}^{*}(z = 1|w)$ . However, $p^{*}(w)$ is usually not accessible and difficult to esti
|
| 149 |
+
|
| 150 |
+
mate as each individual prompt only appears once or a few times in the RLHF dataset.
|
| 151 |
+
|
| 152 |
+
To deal with this issue, we define a function $\widetilde{\alpha}:[0,1]\to [0,0.5)$ such that for any $x\in [0,1]$ ,
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
\widetilde {\alpha} (x) = \left(\mathbb {P} ^ {*} (z \neq \mathbb {1} (x > 0 / 5) | p _ {\theta} (w) = x)\right) _ {< 0. 5}
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
where the probability $\mathbb{P}^*$ is with respect to $w\sim$ $\mathcal{D}$ and $z\sim$ Bernoulli $(p^{*}(w))$ , and the notation $(\cdot)_{< 0.5}$ is defined with $(x)_{< 0.5} = x\cdot \mathbb{1}(x < 0.5),\forall x\in [0,1]$ . Then for each data point $w$ , we set the label-smoothing parameter to be $\widetilde{\alpha} (p_{\theta}(w))$ . To understand this quantity, first notice that $p_{\theta}(w) = x$ means the model forecast that $z = 1$ happens with probability $x$ , and $x > 0 / 5$ means the model predicts that $z = 1$ is more likely to happen. Therefore, $\mathbb{P}^* (z\neq \mathbb{1}(x > 0 / 5)|p_\theta (w) = x)$ represents the probability that the model $p_{\theta}$ 's prediction $\mathbb{1}(x > 0 / 5)$ misaligns with the realization $z$ , conditional on that the model forecasts $x$ as the probability. Then we clip the conditional probability with $(\cdot)_{< 0.5}$ to ensure that it always falls in [0, 0.5). Finally, $\widetilde{\alpha} (p_{\theta}(w))$ expresses the frequency that the prediction fails to align with realization among the data where the forecast is $p_{\theta}(w)$ , thereby reflecting the true confidence level of the label per forecast, instead of per data. This quantity is related to notion of calibration (Foster and Vohra, 1998; HΓ©bert-Johnson et al., 2018), and it converges to the true probability $p_{\theta}^{*}(w)$ under certain regularity conditions (Blasiok et al., 2024). The lower the confidence level, the higher the value of $\widetilde{\alpha}$ , suggesting that the gradient update should be more conservative.
|
| 159 |
+
|
| 160 |
+
This gives rise to the BCE loss with confidence-aware label smoothing:
|
| 161 |
+
|
| 162 |
+
$$
|
| 163 |
+
\mathcal {L} _ {\mathrm {C A L S}} ^ {\alpha} (p; \mathcal {D}) = \sum_ {i = 1} ^ {n} l _ {i} ^ {\widetilde {\alpha}} \tag {5}
|
| 164 |
+
$$
|
| 165 |
+
|
| 166 |
+
where $l_i^{\widetilde{\alpha}} = -(1 - \widetilde{\alpha}(p(w_i))) \cdot (z_i \log p(w_i) + (1 - z_i) \log (1 - p(w_i))) - \widetilde{\alpha}(p(w_i)) \cdot ((1 - z_i) \log p(w_i) + z_i \log (1 - p(w_i))).$
|
| 167 |
+
|
| 168 |
+
# 4.1 DPO with CALS
|
| 169 |
+
|
| 170 |
+
Now we introduce our DPO algorithm with confidence-aware label smoothing, detailed in Algorithm 1. The algorithms take the preference dataset $\mathcal{D}$ and a prior $\alpha_0$ as inputs. We use a symmetric (over line $x = 1 / 2$ ) piecewise-constant function $\alpha :[0,1]\to [0,0.5)$ to model $\widetilde{\alpha}$ . In partic
|
| 171 |
+
|
| 172 |
+
# Algorithm 1 DPO with confidence-aware label smoothing
|
| 173 |
+
|
| 174 |
+
1: Input: $\mathcal{D} = \{(x_i, y_i^+, y_i^-), i \in [n]\}$ , $\alpha_0$
|
| 175 |
+
2: for $t = 1,2,\ldots ,T$ do
|
| 176 |
+
3: Sample mini-batch $\mathcal{D}_t\subset \mathcal{D}$
|
| 177 |
+
4: Apply gradient descent
|
| 178 |
+
|
| 179 |
+
$$
|
| 180 |
+
\theta_ {t + 1} \leftarrow \theta_ {t} - \eta \cdot \nabla_ {\theta} \mathcal {L} _ {\text {C A L S}} ^ {\alpha} \left(\pi_ {\theta_ {t}}, \mathcal {D} _ {t}\right)
|
| 181 |
+
$$
|
| 182 |
+
|
| 183 |
+
with the loss function over batch $\mathcal{D}_t$
|
| 184 |
+
|
| 185 |
+
$$
|
| 186 |
+
\mathcal {L} _ {\mathrm {C A L S}} ^ {\alpha} \left(\pi_ {\theta}; \mathcal {D} _ {t}\right) = - \sum_ {j \in \mathcal {D}} \left(\left(1 - \alpha \left(p _ {\theta} \left(w _ {j}\right)\right)\right) \cdot \log p _ {\theta} \left(w _ {j}\right) + \alpha \left(p _ {\theta} \left(w _ {j}\right)\right) \cdot \log \left(1 - p _ {\theta} \left(w _ {j}\right)\right)\right)
|
| 187 |
+
$$
|
| 188 |
+
|
| 189 |
+
where
|
| 190 |
+
|
| 191 |
+
$$
|
| 192 |
+
\begin{array}{l} \alpha \left(p _ {\theta} \left(w _ {j}\right)\right) = \widehat {\alpha} _ {k}, \text {i f} p _ {\theta} \left(w _ {j}\right) \in \left[ \frac {1}{2} + \frac {k}{2 K}, \frac {1}{2} + \frac {(k + 1)}{2 K} \right] \cup \left[ \frac {1}{2} - \frac {k}{2 K}, \frac {1}{2} - \frac {(k + 1)}{2 K} \right] \\ p _ {\theta} (w _ {j}) = \sigma \left(\log \frac {\pi_ {\theta} \left(y _ {j} ^ {+} \mid x _ {j}\right)}{\pi_ {\mathrm {s f t}} \left(y _ {j} ^ {+} \mid x _ {j}\right)} - \log \frac {\pi_ {\theta} \left(y _ {j} ^ {-} \mid x _ {j}\right)}{\pi_ {\mathrm {s f t}} \left(y _ {j} ^ {-} \mid x _ {j}\right)}\right) \\ \end{array}
|
| 193 |
+
$$
|
| 194 |
+
|
| 195 |
+
5: Update label smoothing parameters $(\widehat{\alpha}_0,\dots ,\widehat{\alpha}_{K - 1})$
|
| 196 |
+
|
| 197 |
+
$$
|
| 198 |
+
\widehat {\alpha} _ {k} \leftarrow \frac {\alpha_ {0} \cdot N _ {k} + \sum_ {i = 1} ^ {t} \sum_ {(w , z) \in \mathcal {D} _ {i}} \mathbb {1} \left(p _ {\theta_ {i}} (w) \in \left[ \frac {1}{2} - \frac {k}{2 K} , \frac {1}{2} - \frac {(k + 1)}{2 K} \right]\right)}{N _ {k} + \sum_ {i = 1} ^ {t} \sum_ {(w , z) \in \mathcal {D} _ {i}} \mathbb {1} \left(p _ {\theta_ {i}} (w) \in \left[ \frac {1}{2} + \frac {k}{2 K} , \frac {1}{2} + \frac {(k + 1)}{2 K} \right] \cup \left[ \frac {1}{2} - \frac {k}{2 K} , \frac {1}{2} - \frac {(k + 1)}{2 K} \right]\right)}. \tag {6}
|
| 199 |
+
$$
|
| 200 |
+
|
| 201 |
+
6: end for
|
| 202 |
+
7: Return $\pi_{\theta_T}$
|
| 203 |
+
|
| 204 |
+
ular, we discretize $[0,1]$ into $2K$ bins
|
| 205 |
+
|
| 206 |
+
$$
|
| 207 |
+
\left[ 0, \frac {1}{2} - \frac {K - 1}{2 K} \right], \dots , \left[ \frac {1}{2} - \frac {1}{2 K}, \frac {1}{2} \right],
|
| 208 |
+
$$
|
| 209 |
+
|
| 210 |
+
$$
|
| 211 |
+
\left[ \frac {1}{2}, \frac {1}{2} + \frac {1}{2 K} \right], \dots , \left[ \frac {1}{2} + \frac {K - 1}{2 K}, 1 \right]
|
| 212 |
+
$$
|
| 213 |
+
|
| 214 |
+
Notice that for any preference data $(w,z) = (x,y_1,y_2,z)$ , the BCE loss $l(p_{\theta};(w,z))$ is invariant under the flipping $(y_{1},y_{2})\to (y_{2},y_{1})$ and $z\rightarrow 1-$ $z$ . Thus we merge the bins $\left[\frac{1}{2} +\frac{k}{2K},\frac{1}{2} +\frac{(k + 1)}{2K}\right]$ and $\left[\frac{1}{2} -\frac{k}{2K},\frac{1}{2} -\frac{(k + 1)}{2K}\right]$ , and assign the same value $\hat{\alpha}_k$ . Eq. (6) displays how we update $\hat{\alpha}_k$ . At initialization, all $\hat{\alpha}_k$ 's are set as the prior $\alpha_0$ . The value $N_{k}$ represents the weight of the prior: a larger $N_{k}$ indicates that $\hat{\alpha}_k$ is updated more slowly and remains closer to the prior. In the denominator, the second term expresses the number of the past data where the model's forecast lies in interval $\left[\frac{1}{2} +\frac{k}{2K},\frac{1}{2} +\frac{(k + 1)}{2K}\right]\cup \left[\frac{1}{2} -\frac{k}{2K},\frac{1}{2} -\frac{(k + 1)}{2K}\right]$ . The numerator indicates the number of data out of those considered in the denominator where the model's prediction does not align with the human feedback, corresponding to the event $z\neq \mathbb{1}(p_{\theta}(w) > 0.5)$ . Summing up, $\hat{\alpha}_k$ forms an estimate of the confidence $\widetilde{\alpha}$ .
|
| 215 |
+
|
| 216 |
+
A nice property of $\widehat{\alpha}$ is that it doesn't involve additional computation related to the model. In fact, the terms $p_{\theta_i}(w_j)$ have been already computed in the forward pass of the model. As a result, the function $\alpha_t$ can be updated on the fly, using only pre-computed values.
|
| 217 |
+
|
| 218 |
+
# 4.2 Theoretical analysis
|
| 219 |
+
|
| 220 |
+
In this section, we study the theoretical property of the BCE loss in Eq. (4).
|
| 221 |
+
|
| 222 |
+
Equilibrium. The following result characterizes the global minimizer of the population loss when the label smoothing parameter is set as a function of model forecast.
|
| 223 |
+
|
| 224 |
+
Theorem 4.1. Consider the population loss
|
| 225 |
+
|
| 226 |
+
$$
|
| 227 |
+
\mathcal {L} _ {\mathrm {C A L S}} ^ {\alpha} (\theta ; \mathcal {D}) := \mathbb {E} \left[ l \left(p _ {\theta}; (w, z)\right) \right]
|
| 228 |
+
$$
|
| 229 |
+
|
| 230 |
+
where $l(p_{\theta};(w,z)) = -(1 - \alpha (p(w))) \cdot (z\log p(w) + (1 - z)\log (1 - p(w))) - \alpha (p(w)) \cdot ((1 - z)\log p(w) + z\log (1 - p(w))).$ For any function $\alpha :[0,1]\to [0,0.5)$ , the population loss has a unique minimizer $\widetilde{p}$ , such that for any $w$ , $\widetilde{p} (w)$ is the unique solution of the equation
|
| 231 |
+
|
| 232 |
+
$$
|
| 233 |
+
\widetilde {p} (w) = p ^ {*} (w) + \alpha (\widetilde {p} (w)) - 2 p ^ {*} (w) \alpha (\widetilde {p} (w)).
|
| 234 |
+
$$
|
| 235 |
+
|
| 236 |
+
Furthermore, when $\alpha$ is set as
|
| 237 |
+
|
| 238 |
+
$$
|
| 239 |
+
\widetilde {\alpha} (x) = \left(\mathbb {P} ^ {*} (z \neq \mathbb {1} (x > 0 / 5) | p _ {\theta} (w) = x)\right) _ {< 0. 5}
|
| 240 |
+
$$
|
| 241 |
+
|
| 242 |
+
then the minimizer $\widetilde{p} (w)$ is given by
|
| 243 |
+
|
| 244 |
+
$$
|
| 245 |
+
\widetilde {p} (w) = \left\{ \begin{array}{l l} 1 - 2 p ^ {*} (w) + 2 p ^ {*} (w) ^ {2}, & p ^ {*} (w) > 0. 5 \\ 2 p ^ {*} (w) - 2 p ^ {*} (w) ^ {2}, & p ^ {*} (w) \leq 0. 5 \end{array} \right..
|
| 246 |
+
$$
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 3: Equilibrium of the population loss.
|
| 250 |
+
|
| 251 |
+
The proof is deferred to Appendix B. Figure 3 illustrates $\widetilde{p}(w)$ as a function of $p^*(w)$ when $\widetilde{\alpha}(x)$ is set as $(\mathbb{P}^* (z \neq \mathbb{1}(x > 0 / 5)|p_\theta (w) = x))_{<0.5}$ . In the equilibrium, $\alpha(p(w))$ becomes the actual probability that the preference label aligns with the model prediction. As compared to the ground truth probability, it can be observed that $\widetilde{p}(w)$ is more conservative in the sense that the prediction is closer to 0.5. This implies that the model will favor generating responses with higher likelihood to be preferred by human.
|
| 252 |
+
|
| 253 |
+
Dynamics. We discuss the gradient of the loss function on datapoint $w = (x, y^{+}, y^{-})$ , written as
|
| 254 |
+
|
| 255 |
+
$$
|
| 256 |
+
\nabla_ {\theta} l \left(p _ {\theta}; \left(x, y ^ {+}, y ^ {-}\right)\right) = \lambda \cdot \left(- \nabla_ {\theta} \log \frac {\pi_ {\theta} \left(y ^ {+} \mid x\right)}{\pi_ {\theta} \left(y ^ {-} \mid x\right)}\right)
|
| 257 |
+
$$
|
| 258 |
+
|
| 259 |
+
where
|
| 260 |
+
|
| 261 |
+
$$
|
| 262 |
+
\lambda = 1 - p _ {\theta} (w) - \widetilde {\alpha} (p _ {\theta} (w))
|
| 263 |
+
$$
|
| 264 |
+
|
| 265 |
+
$$
|
| 266 |
+
p _ {\theta} (w) = \sigma \left(\log \frac {\pi_ {\theta} (y ^ {+} | x)}{\pi_ {\mathrm {s f t}} (y ^ {+} | x)} - \log \frac {\pi_ {\theta} (y ^ {-} | x)}{\pi_ {\mathrm {s f t}} (y ^ {-} | x)}\right).
|
| 267 |
+
$$
|
| 268 |
+
|
| 269 |
+
In the expression of $\nabla_{\theta}l(p_{\theta};(x,y^{+},y^{-}))$ , the component $-\nabla_{\theta}\log \frac{\pi_{\theta}(y^{+}|x)}{\pi_{\theta}(y^{-}|x)}$ serves as increasing the likelihood of $y^{+}$ and decreasing the likelihood of $y^{-}$ . The weight $\lambda$ controls the increasing/decreasing rate of the likelihood. In $\lambda$ , the term $1 - p_{\theta}(w)$ represents how incorrectly the implicit reward model orders the completions, and the term $\widetilde{\alpha} (p_{\theta}(w))$ corresponds to how unconfident the human label is. Therefore, samples with incorrect model forecast (i.e., large $1 - p_{\theta}(w)$ ) and high label confidence (i.e., low $\widetilde{\alpha} (p_{\theta}(w)))$ will achieve faster likelihood update, as depicted in Figure 1.
|
| 270 |
+
|
| 271 |
+
This is desirable for stabilizing the training and preventing from overfit.
|
| 272 |
+
|
| 273 |
+
# 5 Experiments
|
| 274 |
+
|
| 275 |
+
# 5.1 Logistic regression
|
| 276 |
+
|
| 277 |
+
Task. We consider logistic regression over normalized Gaussian data in $\mathbb{R}^d$ . The model family is given by $\{p_{\theta}(x) = \sigma (\theta^{\top}x):\theta \in \mathbb{R}^{d}\}$ . The train and test data is sampled i.i.d. from $x\sim \mathcal{N}(0,I_d / d)$ , and $y\sim$ Bernoulli $(p_{\theta^*}(x))$ where $\theta^{*}$ is the ground truth parameter. We focus on the near-high-dimensional setting where the dimensionality $d$ is not significantly smaller than the number of training data. This scenario is common in RLHF, where LLMs typically possess large model sizes.
|
| 278 |
+
|
| 279 |
+
Methods. We consider two confidence-aware label smoothing methods proposed in Theorem 3.1:
|
| 280 |
+
|
| 281 |
+
1. MLE-CALS-2: we set the label smoothing parameter as $\alpha_{i}^{*} = 2p^{*}(w_{i}) - 2p^{*}(w_{i})^{2}$ , i.e., the minimizer under $\ell_{2}$ metric.
|
| 282 |
+
2. MLE-CALS-0: we set the label smoothing parameter as $\alpha_{i}^{*} = \min \{p^{*}(w_{i}),1 - p^{*}(w_{i})\}$ , i.e., the minimizer under $\ell_0$ metric.
|
| 283 |
+
|
| 284 |
+
We compare the methods MLE-CALS-2, MLE-CALS-0 with standard MLE training with no label smoothing.
|
| 285 |
+
|
| 286 |
+
Evaluation. We utilize BCE loss over a large test dataset to evaluate the learned models. In particular, we set the same initialization and test dataset, and plot the mean and standard deviation of test loss of the three algorithms. The mean and standard deviation are computed over multiple samples of the training dataset and the optimizer.
|
| 287 |
+
|
| 288 |
+
Results. Figure 4 displays the loss curves under $d = 20, 200, 500$ . It can be observed that MLE-CALS-0 has lower average test losses than the other two methods, which justify our selection of this method in Algorithm 1. In comparison, the test loss under MLE-CALS-2 achieves lower variance. It is because the label smoothing parameter in MLE-CALS-2 is closer to 0.5, as shown in Figure 2, suggesting more conservative training dynamics.
|
| 289 |
+
|
| 290 |
+
# 5.2 Preference learning
|
| 291 |
+
|
| 292 |
+
We evaluate our proposed algorithms' ability to align with human preference.
|
| 293 |
+
|
| 294 |
+

|
| 295 |
+
(a) $d = 20$ , $n_{\mathrm{train}} = 50$ , $\mathrm{epoch} = 100$
|
| 296 |
+
|
| 297 |
+

|
| 298 |
+
(b) $d = 200$ , $n_{\mathrm{train}} = 10^3$ , $\mathrm{epoch} = 20$
|
| 299 |
+
|
| 300 |
+

|
| 301 |
+
(c) $d = 500$ , $n_{\mathrm{train}} = 10^3$ , $\mathrm{epoch} = 50$
|
| 302 |
+
|
| 303 |
+

|
| 304 |
+
(d) $d = 20$ , $n_{\mathrm{train}} = 50$ , $\mathrm{epoch} = 100$
|
| 305 |
+
|
| 306 |
+

|
| 307 |
+
(e) $d = 200$ , $n_{\mathrm{train}} = 10^{3}$ , $\mathrm{epoch} = 20$
|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
(f) $d = 500$ , $n_{\mathrm{train}} = 10^3$ , $\mathrm{epoch} = 50$
|
| 311 |
+
|
| 312 |
+
Task. Our experiments explore explore open-ended text generation task. The data come from Ultrafeedback dataset (Cui et al., 2023), a large-scale, fine-grained dataset that contains diverse preference values, and Orca (Mukherjee et al., 2023), a rich instruction-tuning dataset. We finetune two models of size 7B and 15B: Zephyr-7B (Tunstall et al., 2023b) and Starchat2-15B (Tunstall et al., 2023a). The base policies for alignment training for both models have gone through supervised finetuning.
|
| 313 |
+
|
| 314 |
+
Methods. We use DPO (Rafailov et al., 2023) as the baseline method. For fair comparison, we set the initialization $\alpha_0$ in Algorithm 1 to be the same as the label smoothing parameter used in DPO. We follow the state-of-the-art implementations ofTRL (von Werra et al., 2020) and alignment-handbook (Tunstall et al., 2023b). A complete configuration of training parameters can be found in Appendix C.
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure 5: GPT-4 comparison between our method and the baseline, on Zephyr-7B and Starchat2-15B.
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 4: Mean and standard deviation of test loss in logistic regression.
|
| 321 |
+
Figure 6: ArmoRM comparison between our method and the baseline, on Zephyr-7B and Starchat2-15B.
|
| 322 |
+
|
| 323 |
+
Evaluation We evaluate algorithms using head-to-head win rate between our method and the DPO baseline. We consider two evaluators: GPT-4 (OpenAI, 2023) and ArmoRM (Dong et al., 2024), since the latter is the best model on the Reward-Bench (Lambert et al., 2024) leaderboard<sup>1</sup>. The dataset is split into training set and test set. For each trained model, we generate responses on the prompts of the test dataset, and use the evaluators to compute the winning probability of our algorithm versus the DPO baseline. For GPT evaluator, we use the prompt shown in Appendix D to elicit GPT's preference on response A or B or tie, and we apply random flipping of the two responses to mitigate the bias of GPT responses. For ArmoRM, we directly compute the reward attribute 'ultrafeedback-overall_score' of the prompt-response pairs and compute the probability that our method's reward is higher.
|
| 324 |
+
|
| 325 |
+
# 5.2.1 Results
|
| 326 |
+
|
| 327 |
+
The GPT and ArmoRM evaluation results are shown in Figure 5 and Figure 6 respectively. In these figures, bars with dark blue color correspond to the percentage of test data where the evaluator prefers responses from our method, and bars with light blue color correspond to the percentage of test data where the evaluator prefers responses from baseline method. GPT evaluator may also respond with 'tie', indicating the two responses are close in quality. The comparison exhibits that our method has a higher winning rate compared to baseline, in both 7B and 15B models. In the implementation, we find that it is helpful to select larger $N_{k}$ for $k \leq K / 2$ . This is due to that in the early phase of the training there are typically a large number of data points where the model's forecast is close to 0.5, and so setting larger $N_{k}$ for those forecasts can make sure that all $\hat{\alpha}_{k}$ 's update in a similar rate.
|
| 328 |
+
|
| 329 |
+
Effect of initialization. We further vary the label smoothing parameter of DPO and accordingly the initialization $\alpha_0$ in Algorithm 1. For each $\alpha \in \{0.8, 0.9, 1.0\}$ , we apply our algorithm and the baseline on supervised-funetuned Zephyr-7B model, while making sure that the initialization $\alpha_0$ in our method is the same as the label smoothing parameter in DPO.
|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
Figure 7: GPT-4 comparison between our method and the baseline, under different label smoothing parameter $\alpha$ .
|
| 333 |
+
|
| 334 |
+

|
| 335 |
+
Figure 8: ArmoRM comparison between our method and the baseline, under different label smoothing parameter $\alpha$ .
|
| 336 |
+
|
| 337 |
+
The GPT and ArmoRM evaluation results are
|
| 338 |
+
|
| 339 |
+
shown in Figure 7 and Figure 8 respectively. One can observe that our algorithm consistently outperforms DPO under different label smoothing parameter initialization, affirming that it could better align with human preference than the baseline. We notice that the initialization parameter $\alpha_0$ has little affect on the overall performance of our method.
|
| 340 |
+
|
| 341 |
+
# 6 Conclusions
|
| 342 |
+
|
| 343 |
+
In this paper, we present Confidence Aware Label Smoothing (CALS) as a principled approach to select the label smoothing parameter in Direct Preference Optimization (DPO) for the RLHF phase of LLM training. By analyzing the trade-off between bias and variance in gradient estimation, we found that the optimal label smoothing parameter that minimizes the expected error under different distance measures should align with the confidence levels of the label. The proposed method ensures that the gradient is weighted based on both the confidence level of preference label and the correctness of model forecast, leading to more accurate alignment with human preferences. Empirical results on alignment tasks using state-of-the-art models demonstrated that CALS improves performance over baseline methods.
|
| 344 |
+
|
| 345 |
+
Limitations. While our proposed method shows promising results in enhancing the alignment of Large Language Models (LLMs) with human preferences, it comes with some limitations. First, CALS relies on the accurate estimation of confidence levels for preference labels, which can be challenging in scenarios where the data is sparse or of low quality. Second, our analysis on gradient estimation in Theorem 3.1 is difficult to generalize to larger batch sizes. Furthermore, while our empirical evaluations demonstrate competitive performance, the generalizability of CALS across different tasks and model architectures requires further investigation.
|
| 346 |
+
|
| 347 |
+
# Acknowledgments
|
| 348 |
+
|
| 349 |
+
This research was conducted during Baihe Huang's internship at Microsoft Research.
|
| 350 |
+
|
| 351 |
+
# References
|
| 352 |
+
|
| 353 |
+
Mohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bilal Piot, Remi Munos, Mark Rowland, Michal Valko, and Daniele Calandriello. 2024. A general theoretical paradigm to understand learning from human
|
| 354 |
+
|
| 355 |
+
preferences. In International Conference on Artificial Intelligence and Statistics, pages 4447-4455. PMLR.
|
| 356 |
+
Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. 2022. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862.
|
| 357 |
+
Jaroslaw Blasiok, Parikshit Gopalan, Lunjia Hu, and Preetum Nakkiran. 2024. When does optimizing a proper loss yield calibration? Advances in Neural Information Processing Systems, 36.
|
| 358 |
+
Ralph Allan Bradley and Milton E Terry. 1952. Rank analysis of incomplete block designs: I. the method of paired comparisons. Biometrika, 39(3/4):324-345.
|
| 359 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901.
|
| 360 |
+
Sebastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. 2023. Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712.
|
| 361 |
+
Jonathan D Chang, Wenhao Zhan, Owen Oertell, KiantΓ© Brantley, Dipendra Misra, Jason D Lee, and Wen Sun. 2024. Dataset reset policy optimization for rlhf. arXiv preprint arXiv:2404.08495.
|
| 362 |
+
Jan Chorowski and Navdeep Jaitly. 2016. Towards better decoding and language model integration in sequence to sequence models. arXiv preprint arXiv:1612.02695.
|
| 363 |
+
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2023. Palm: Scaling language modeling with pathways. Journal of Machine Learning Research, 24(240):1-113.
|
| 364 |
+
Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. 2023. Ultrafeedback: Boosting language models with high-quality feedback. Preprint, arXiv:2310.01377.
|
| 365 |
+
Hanze Dong, Wei Xiong, Deepanshu Goyal, Rui Pan, Shizhe Diao, Jipeng Zhang, Kashun Shum, and Tong Zhang. 2023. Raft: Reward ranked finetuning for generative foundation model alignment. arXiv preprint arXiv:2304.06767.
|
| 366 |
+
|
| 367 |
+
Hanze Dong, Wei Xiong, Bo Pang, Haoxiang Wang, Han Zhao, Yingbo Zhou, Nan Jiang, Doyen Sahoo, Caiming Xiong, and Tong Zhang. 2024. Rlhf workflow: From reward modeling to online rlhf. arXiv preprint arXiv:2405.07863.
|
| 368 |
+
Kawin Ethayarajh, Winnie Xu, Niklas Muennighoff, Dan Jurafsky, and Douwe Kiela. 2024. Kto: Model alignment as prospect theoretic optimization. arXiv preprint arXiv:2402.01306.
|
| 369 |
+
Dean P Foster and Rakesh V Vohra. 1998. Asymptotic calibration. Biometrika, 85(2):379-390.
|
| 370 |
+
Deep Ganguli, Liane Lovitt, Jackson Kernion, Amanda Askell, Yuntao Bai, Saurav Kadavath, Ben Mann, Ethan Perez, Nicholas Schiefer, Kamal Ndousse, et al. 2022. Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned. arXiv preprint arXiv:2209.07858.
|
| 371 |
+
Caglar Gulcehre, Tom Le Paine, Srivatsan Srinivasan, Ksenia Konyushkova, Lotte Weerts, Abhishek Sharma, Aditya Siddhant, Alex Ahern, Miaosen Wang, Chenjie Gu, et al. 2023. Reinforced self-training (rest) for language modeling. arXiv preprint arXiv:2308.08998.
|
| 372 |
+
Xutao Guo, Yanwu Yang, Chenfei Ye, Guoqing Cai, and Ting Ma. 2024. Calseg: Improving calibration of medical image segmentation via variational label smoothing. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1601-1605. IEEE.
|
| 373 |
+
Ursula HΓ©bert-Johnson, Michael Kim, Omer Reingold, and Guy Rothblum. 2018. Multicalibration: Calibration for the (computationally-identifiable) masses. In International Conference on Machine Learning, pages 1939-1948. PMLR.
|
| 374 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.
|
| 375 |
+
Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980.
|
| 376 |
+
Ujwal Krothapalli and Lynn Abbott. 2020. One size doesn't fit all: Adaptive label smoothing.
|
| 377 |
+
Nathan Lambert, Valentina Pyatkin, Jacob Morrison, LJ Miranda, Bill Yuchen Lin, Khyathi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, Noah A. Smith, and Hannaneh Hajishirzi. 2024. Rewardbench: Evaluating reward models for language modeling. Preprint, arXiv:2403.13787.
|
| 378 |
+
Xize Liang, Chao Chen, Jie Wang, Yue Wu, Zhihang Fu, Zhihao Shi, Feng Wu, and Jieping Ye. 2024. Robust preference optimization with provable noise tolerance for llms. arXiv preprint arXiv:2404.04102.
|
| 379 |
+
|
| 380 |
+
Bingyuan Liu, Ismail Ben Ayed, Adrian Galdran, and Jose Dolz. 2022. The devil is in the margin: Margin-based label smoothing for network calibration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 80-88.
|
| 381 |
+
Tianqi Liu, Zhen Qin, Junru Wu, Jiaming Shen, Misha Khalman, Rishabh Joshi, Yao Zhao, Mohammad Saleh, Simon Baumgartner, Jialu Liu, et al. 2024. Lipo: Listwise preference optimization through learning-to-rank. arXiv preprint arXiv:2402.01878.
|
| 382 |
+
Tianqi Liu, Yao Zhao, Rishabh Joshi, Misha Khalman, Mohammad Saleh, Peter J Liu, and Jialu Liu. 2023. Statistical rejection sampling improves preference optimization. arXiv preprint arXiv:2309.06657.
|
| 383 |
+
Mohamed Maher and Meelis Kull. 2021. Instance-based label smoothing for better calibrated classification networks. In 2021 20th IEEE International Conference on Machine Learning and Applications (ICMLA), pages 746-753. IEEE.
|
| 384 |
+
Eric Mitchell. 2023. A note on dpo with noisy preferences and relationship to ipo.
|
| 385 |
+
Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. 2023. Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707.
|
| 386 |
+
Rafael MΓΌller, Simon Kornblith, and Geoffrey E Hinton. 2019. When does label smoothing help? Advances in neural information processing systems, 32.
|
| 387 |
+
R OpenAI. 2023. Gpt-4 technical report. ArXiv, 2303.
|
| 388 |
+
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730-27744.
|
| 389 |
+
Hyekang Park, Jongyoun Noh, Youngmin Oh, Donghyeon Baek, and Bumsub Ham. 2023. Acls: Adaptive and conditional label smoothing for network calibration. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3936-3945.
|
| 390 |
+
Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. 2022. Red teaming language models with language models. arXiv preprint arXiv:2202.03286.
|
| 391 |
+
Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever, et al. 2018. Improving language understanding by generative pre-training.
|
| 392 |
+
Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D Manning, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. arXiv preprint arXiv:2305.18290.
|
| 393 |
+
|
| 394 |
+
Shyam Sundhar Ramesh, Yifan Hu, Jason Chaimalas, Viraj Mehta, Pier Giuseppe Sessa, Haitham Bou Ammar, and Iija Bogunovic. 2024. Group robust preference optimization in reward-free rlhf. arXiv preprint arXiv:2405.20304.
|
| 395 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347.
|
| 396 |
+
Feifan Song, Bowen Yu, Minghao Li, Haiyang Yu, Fei Huang, Yongbin Li, and Houfeng Wang. 2024. Preference ranking optimization for human alignment. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 18990-18998.
|
| 397 |
+
Nisan Stiannon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. 2020. Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:3008-3021.
|
| 398 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. 2016. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818-2826.
|
| 399 |
+
Yunhao Tang, Zhaohan Daniel Guo, Zeyu Zheng, Daniele Calandriello, RΓ©mi Munos, Mark Rowland, Pierre Harvey Richemond, Michal Valko, Bernardo Γvila Pires, and Bilal Piot. 2024. Generalized preference optimization: A unified approach to offline alignment. arXiv preprint arXiv:2402.05749.
|
| 400 |
+
Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazteen Rajani, Shengyi Huang, Kashif Rasul, Alexander M. Rush, and Thomas Wolf. 2023a. The alignment handbook. https://github.com/huggingface/alignment-handbook.
|
| 401 |
+
Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro von Werra, ClΓ©mentine Fourrier, Nathan Habib, et al. 2023b. Zephyr: Direct distillation of lm alignment. arXiv preprint arXiv:2310.16944.
|
| 402 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30.
|
| 403 |
+
Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, and Shengyi Huang. 2020. Trl: Transformer reinforcement learning. https://github.com/huggingface/trl.
|
| 404 |
+
Haoxiang Wang, Yong Lin, Wei Xiong, Rui Yang, Shizhe Diao, Shuang Qiu, Han Zhao, and Tong
|
| 405 |
+
|
| 406 |
+
Zhang. 2024. Arithmetic control of llms for diverse user preferences: Directional preference alignment with multi-objective rewards. arXiv preprint arXiv:2402.18571.
|
| 407 |
+
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.
|
| 408 |
+
Tianhao Wu, Banghua Zhu, Ruoyu Zhang, Zhaojin Wen, Kannan Ramchandran, and Jiantao Jiao. 2023. Pairwise proximal policy optimization: Harnessing relative feedback for llm alignment. arXiv preprint arXiv:2310.00212.
|
| 409 |
+
Zheng Yuan, Hongyi Yuan, Chuanqi Tan, Wei Wang, Songfang Huang, and Fei Huang. 2023. Rrhf: Rank responses to align language models with human feedback without tears. arXiv preprint arXiv:2304.05302.
|
| 410 |
+
Yao Zhao, Rishabh Joshi, Tianqi Liu, Misha Khalman, Mohammad Saleh, and Peter J Liu. 2023. Slic-hf: Sequence likelihood calibration with human feedback. arXiv preprint arXiv:2305.10425.
|
| 411 |
+
Banghua Zhu, Jiantao Jiao, and Michael I Jordan. 2023a. Principled reinforcement learning with human feedback from pairwise or $k$ -wise comparisons. arXiv preprint arXiv:2301.11270.
|
| 412 |
+
Banghua Zhu, Michael I Jordan, and Jiantao Jiao. 2024. Iterative data smoothing: Mitigating reward overfitting and overoptimization in rlhf. arXiv preprint arXiv:2401.16335.
|
| 413 |
+
Banghua Zhu, Hiteshi Sharma, Felipe Vieira Frujeri, Shi Dong, Chenguang Zhu, Michael I Jordan, and Jiantao Jiao. 2023b. Fine-tuning language models with advantage-induced policy alignment. arXiv preprint arXiv:2306.02231.
|
| 414 |
+
Daniel M Ziegler, Nisan Stiennon, Jeffrey Wu, Tom B Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. 2019. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593.
|
| 415 |
+
Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. 2018. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8697-8710.
|
| 416 |
+
|
| 417 |
+
# A Proof of Theorem 3.1
|
| 418 |
+
|
| 419 |
+
Proof. We first rewrite the loss
|
| 420 |
+
|
| 421 |
+
$$
|
| 422 |
+
l _ {i} ^ {\alpha_ {i}} = u \cdot \log p (w _ {i}) + (- 1 - u) \cdot \log (1 - p (w _ {i}))
|
| 423 |
+
$$
|
| 424 |
+
|
| 425 |
+
where the coefficient $u$ is defined as
|
| 426 |
+
|
| 427 |
+
$$
|
| 428 |
+
u = 2 \alpha_ {i} z _ {i} - \alpha_ {i} - z _ {i}.
|
| 429 |
+
$$
|
| 430 |
+
|
| 431 |
+
The gradient of the empirical loss is given by
|
| 432 |
+
|
| 433 |
+
$$
|
| 434 |
+
\nabla l _ {i} ^ {\alpha_ {i}} = \left(\frac {u}{p (w _ {i})} + \frac {1 + u}{1 - p (w _ {i})}\right) \cdot \nabla p (w _ {i})
|
| 435 |
+
$$
|
| 436 |
+
|
| 437 |
+
The gradient of the population loss is given by
|
| 438 |
+
|
| 439 |
+
$$
|
| 440 |
+
\nabla l _ {i} ^ {*} = \left(\frac {- q}{p (w _ {i})} + \frac {1 - q}{1 - p (w _ {i})}\right) \cdot \nabla p (w _ {i})
|
| 441 |
+
$$
|
| 442 |
+
|
| 443 |
+
If $d(u,v) = \| u - v\|_{\beta}^{\beta}$ . The expected distance $\mathbb{E}_{z_i}[d(\nabla l_i^{\alpha_i},\nabla l_i^*)]$ expands as
|
| 444 |
+
|
| 445 |
+
$$
|
| 446 |
+
\begin{array}{l} \mathbb {E} \left[ \left| \frac {u + q}{p (w _ {i})} + \frac {u + q}{1 - p (w _ {i})} \right| ^ {\beta} \cdot \| \nabla p (w _ {i}) \| _ {\beta} ^ {\beta} \right] \\ = f (\alpha_ {i}) \cdot \frac {\| \nabla p (w _ {i}) \| _ {\beta} ^ {\beta}}{p ^ {\beta} (1 - p) ^ {\beta}} \\ \end{array}
|
| 447 |
+
$$
|
| 448 |
+
|
| 449 |
+
where
|
| 450 |
+
|
| 451 |
+
$$
|
| 452 |
+
f (x) = q \cdot | x + q - 1 | ^ {\beta} + (1 - q) \cdot | q - x | ^ {\beta}.
|
| 453 |
+
$$
|
| 454 |
+
|
| 455 |
+
Now it remains to minimize $f(x)$ . We may assume without loss of generality that $q > 1/2$ , while the case $q < 1/2$ is symmetrical. First notice that projecting any $x \neq [1 - q, q]$ to the interval $[1 - q, q]$ strictly decreases the value of $f$ , thus the minimizer lies in $[1 - q, q]$ .
|
| 456 |
+
|
| 457 |
+
The derivative of $f$ is given by
|
| 458 |
+
|
| 459 |
+
$$
|
| 460 |
+
\begin{array}{l} f ^ {\prime} (x) \\ = q \beta (x + q - 1) ^ {\beta - 1} - (1 - q) \beta (q - x) ^ {\beta - 1}. \\ \end{array}
|
| 461 |
+
$$
|
| 462 |
+
|
| 463 |
+
Since $f^{\prime}(1 - q) < 0 < f^{\prime}(q)$ and $f^{\prime}$ is increasing over $[1 - q, q]$ , the minimizer is the unique zero of $f^{\prime}(x)$ , i.e. the unique solution to the equation
|
| 464 |
+
|
| 465 |
+
$$
|
| 466 |
+
q \beta (x + q - 1) ^ {\beta - 1} - (1 - q) \beta (q - x) ^ {\beta - 1} = 0.
|
| 467 |
+
$$
|
| 468 |
+
|
| 469 |
+
If $d(u,v) = \| u - v\| _0$ . The expected distance $\mathbb{E}_{z_i}[d(\nabla l_i^{\alpha_i},\nabla l_i^*)]$ is equal to
|
| 470 |
+
|
| 471 |
+
$$
|
| 472 |
+
q \cdot \mathbb {1} (x = 1 - q) + (1 - q) \cdot \mathbb {1} (x = q).
|
| 473 |
+
$$
|
| 474 |
+
|
| 475 |
+
It follows that the minimizer is $\min \{q,1 - q\}$
|
| 476 |
+
|
| 477 |
+
# B Proof of Theorem 4.1
|
| 478 |
+
|
| 479 |
+
Proof. We rewrite the loss as
|
| 480 |
+
|
| 481 |
+
$$
|
| 482 |
+
\begin{array}{l} \mathbb {E} \left[ u (w) \cdot \log p _ {\theta} (w) + \right. \\ \left. + (- 1 - u (w)) \cdot \log (1 - p _ {\theta} (w)) \right] \\ \end{array}
|
| 483 |
+
$$
|
| 484 |
+
|
| 485 |
+
where $u(w) = 2\alpha(p_{\theta}(w))p^{*}(w) - \alpha(p_{\theta}(w)) - p^{*}(w)$ . Let $\widetilde{p}$ be any the equilibrium solution, first
|
| 486 |
+
|
| 487 |
+
order optimality gives
|
| 488 |
+
|
| 489 |
+
$$
|
| 490 |
+
\widetilde {p} (w) = p ^ {*} (w) + \alpha (\widetilde {p} (w)) - 2 p ^ {*} (w) \alpha (\widetilde {p} (w)).
|
| 491 |
+
$$
|
| 492 |
+
|
| 493 |
+
Notice that this gives a injective map from $p^*(w)$ to $\widetilde{p}(w)$ . It follows that $\widetilde{p}(w)$ is the unique solution of the above equation.
|
| 494 |
+
|
| 495 |
+
When
|
| 496 |
+
|
| 497 |
+
$$
|
| 498 |
+
\widetilde {\alpha} (x) = \left(\mathbb {P} ^ {*} (z \neq \mathbb {1} (x > 0 / 5) | p _ {\theta} (w) = x)\right) _ {< 0. 5}
|
| 499 |
+
$$
|
| 500 |
+
|
| 501 |
+
we have
|
| 502 |
+
|
| 503 |
+
$$
|
| 504 |
+
\widetilde {\alpha} (\widetilde {p} (w)) = \left\{ \begin{array}{l l} 1 - p ^ {*} (w), & \widetilde {p} (w) > 0 / 5 \\ p ^ {*} (w), & \widetilde {p} (w) \leq 0 / 5 \end{array} \right..
|
| 505 |
+
$$
|
| 506 |
+
|
| 507 |
+
Plugging back to the first order optimality condition, we have
|
| 508 |
+
|
| 509 |
+
$$
|
| 510 |
+
\widetilde {p} (w) = \left\{ \begin{array}{l l} 1 - 2 p ^ {*} (w) + 2 p ^ {*} (w) ^ {2}, & p ^ {*} (w) > 0. 5 \\ 2 p ^ {*} (w) - 2 p ^ {*} (w) ^ {2}, & p ^ {*} (w) \leq 0. 5 \end{array} \right..
|
| 511 |
+
$$
|
| 512 |
+
|
| 513 |
+
This completes the proof.
|
| 514 |
+
|
| 515 |
+
# C Hyperparameters for Preference Training
|
| 516 |
+
|
| 517 |
+
<table><tr><td>Hyperparameter</td><td>Value(s)</td></tr><tr><td>Learning rate</td><td>5.0e-7</td></tr><tr><td>Batch size per device</td><td>8</td></tr><tr><td>Number of epochs</td><td>1</td></tr><tr><td>Temperature</td><td>0.05</td></tr><tr><td>Warmup ratio</td><td>0.1</td></tr></table>
|
| 518 |
+
|
| 519 |
+
Table 1: Hyperparameters for Zephyr-7B training. We use AdamW (Kingma and Ba, 2014) optimizer.
|
| 520 |
+
|
| 521 |
+
<table><tr><td>Hyperparameter</td><td>Value(s)</td></tr><tr><td>Learning rate</td><td>5.0e-7</td></tr><tr><td>Batch size per device</td><td>2</td></tr><tr><td>Number of epochs</td><td>2</td></tr><tr><td>Temperature</td><td>0.05</td></tr><tr><td>Warmup ratio</td><td>0.1</td></tr></table>
|
| 522 |
+
|
| 523 |
+
Table 2: Hyperparameters for Starch2-15B training. We use AdamW (Kingma and Ba, 2014) optimizer.
|
| 524 |
+
|
| 525 |
+
# D Prompts for GPT Evaluation
|
| 526 |
+
|
| 527 |
+
For the following query to a chatbot, which response is more helpful?
|
| 528 |
+
|
| 529 |
+
Query: <prompt>
|
| 530 |
+
|
| 531 |
+
Response A: <response_A>
|
| 532 |
+
|
| 533 |
+
Response B: <response_B>
|
| 534 |
+
|
| 535 |
+
FIRST provide a one-sentence comparison of the two responses and explain which you feel is more helpful. SECOND, on a new line, state only 'A' or 'B' or 'tie' to indicate which response is more helpful. Your response should use the format:
|
| 536 |
+
|
| 537 |
+
Comparison: <one-sentence comparison and explanation> More helpful: $< ^{\prime}\mathrm{A}^{\prime}$ or $\mathbf{\nabla}^{'}\mathbf{B}^{\prime}$ or 'tie'>
|
2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13f5b2cca241b5be61429ba7b4da579847277127be4ed83a14042f6f246211df
|
| 3 |
+
size 463516
|
2024/Enhancing Language Model Alignment_ A Confidence-Based Approach to Label Smoothing/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/ed7d8476-0313-45c0-a699-d762f63216f1_content_list.json
ADDED
|
@@ -0,0 +1,1836 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
169,
|
| 8 |
+
89,
|
| 9 |
+
826,
|
| 10 |
+
130
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Xin Liu, Farima Fatahi Bayat, Lu Wang",
|
| 17 |
+
"bbox": [
|
| 18 |
+
326,
|
| 19 |
+
146,
|
| 20 |
+
675,
|
| 21 |
+
164
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Computer Science and Engineering",
|
| 28 |
+
"bbox": [
|
| 29 |
+
354,
|
| 30 |
+
164,
|
| 31 |
+
643,
|
| 32 |
+
180
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "University of Michigan",
|
| 39 |
+
"bbox": [
|
| 40 |
+
403,
|
| 41 |
+
181,
|
| 42 |
+
593,
|
| 43 |
+
196
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Ann Arbor, MI",
|
| 50 |
+
"bbox": [
|
| 51 |
+
436,
|
| 52 |
+
198,
|
| 53 |
+
561,
|
| 54 |
+
211
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "{liuxincs, farimaf, wangluxy}@umich.edu",
|
| 61 |
+
"bbox": [
|
| 62 |
+
302,
|
| 63 |
+
214,
|
| 64 |
+
695,
|
| 65 |
+
229
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Abstract",
|
| 72 |
+
"text_level": 1,
|
| 73 |
+
"bbox": [
|
| 74 |
+
260,
|
| 75 |
+
260,
|
| 76 |
+
339,
|
| 77 |
+
275
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "Calibrating language models (LMs) aligns their generation confidence with the actual likelihood of answer correctness, which can inform users about LMs' reliability and mitigate hallucinated content. However, prior calibration methods, such as self-consistency-based and logit-based approaches, are either limited in inference-time efficiency or fall short of providing informative signals. Moreover, simply filtering out low-confidence responses reduces the LM's helpfulness when the answers are correct. Therefore, effectively using calibration techniques to enhance an LM's factuality remains an unsolved challenge. In this paper, we first propose an activation-based calibration method, ACTCAB, which trains a linear layer on top of the LM's last-layer activations that can better capture the representations of knowledge. Built on top of ACTCAB, we further propose CODEC, a confidence-guided decoding strategy to elicit truthful answers with high confidence from LMs. By evaluating on five popular QA benchmarks, ACTCAB achieves superior calibration performance than all competitive baselines, e.g., by reducing the average expected calibration error (ECE) score by up to $39\\%$ . Further experiments on CODEC show consistent improvements in several LMs' factuality on challenging QA datasets, such as TruthfulQA, highlighting the value of confidence signals in enhancing the factuality.",
|
| 84 |
+
"bbox": [
|
| 85 |
+
144,
|
| 86 |
+
290,
|
| 87 |
+
460,
|
| 88 |
+
731
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "1 Introduction",
|
| 95 |
+
"text_level": 1,
|
| 96 |
+
"bbox": [
|
| 97 |
+
114,
|
| 98 |
+
745,
|
| 99 |
+
258,
|
| 100 |
+
760
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Despite their impressive language understanding and generation capabilities, language models (LMs) still produce hallucinated content (Zhang et al., 2023), undermining their trustworthiness. One mitigation is to calibrate LMs' confidence in their outputs to align with the actual likelihood of their responses being correct (Jiang et al.,",
|
| 107 |
+
"bbox": [
|
| 108 |
+
112,
|
| 109 |
+
772,
|
| 110 |
+
489,
|
| 111 |
+
885
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2021; Liu et al., 2024). Well-calibrated confidence scores allow users to discern the reliability of LMs' responses, enabling them not only to determine whether to trust the model's outputs but also to decide when further verification is needed.",
|
| 118 |
+
"bbox": [
|
| 119 |
+
507,
|
| 120 |
+
260,
|
| 121 |
+
882,
|
| 122 |
+
340
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Popular LM calibration methods include training-free, inference-only approaches through verbalization (Tian et al., 2023a) or self-consistency measurements (Wang et al., 2023) and training-based methods, such as tuning temperature parameters (Liang et al., 2018) or learning uncertainty estimations from LMs' logits (Liu et al., 2024). Despite their potential compatibility with many LMs, training-free methods are limited by the models' instruction-following capabilities and can be computationally expensive during inference. Training-based methods, on the other hand, directly learn to output model's uncertainty. For instance, Kuhn et al. (2023) leverages the token logits predicted by the model to estimate the confidence of the entire response. Yet model logits may not capture knowledge representations and can be sensitive to tokenization procedures. Moreover, model confidence has been naively used by setting a threshold to filter out low-probability responses (Ren et al., 2023a; Zablotskaia et al., 2023), leaving these queries unanswered and reducing model's helpfulness. Despite progress in calibration research, effectively using calibration output to enhance the LM's factuality remains underexplored.",
|
| 129 |
+
"bbox": [
|
| 130 |
+
507,
|
| 131 |
+
342,
|
| 132 |
+
884,
|
| 133 |
+
743
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "In this work, we make two primary contributions: (i) a lightweight and effective LM calibration technique, and (ii) a decoding strategy that uses calibrated confidence to elicit correct responses from LMs. Concretely, we propose an Activation-based Calibration method, ACTCAB, that estimates model's uncertainty from its internal activations. ACTCAB is inspired by recent work that a truthful direction can be identified from LM activations to steer generations (Burns et al., 2023; Li et al., 2023). Moreover, prior work (Niculescu",
|
| 140 |
+
"bbox": [
|
| 141 |
+
507,
|
| 142 |
+
744,
|
| 143 |
+
885,
|
| 144 |
+
921
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "page_footnote",
|
| 150 |
+
"text": "$^{1}$ Code is available at https://github.com/launchnlp/ActCab.",
|
| 151 |
+
"bbox": [
|
| 152 |
+
112,
|
| 153 |
+
894,
|
| 154 |
+
487,
|
| 155 |
+
919
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "page_number",
|
| 161 |
+
"text": "10436",
|
| 162 |
+
"bbox": [
|
| 163 |
+
475,
|
| 164 |
+
927,
|
| 165 |
+
524,
|
| 166 |
+
940
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 0
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "footer",
|
| 172 |
+
"text": "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 10436-10448 November 12-16, 2024 Β©2024 Association for Computational Linguistics",
|
| 173 |
+
"bbox": [
|
| 174 |
+
152,
|
| 175 |
+
945,
|
| 176 |
+
843,
|
| 177 |
+
972
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "Mizil and Caruana, 2005; Guo et al., 2017) has shown that optimizing over binary correctness labels contributes to poor calibration. To address this issue, we propose a novel procedure to construct soft labels that better represent the expected confidence in the training objective. For soft label creation, we use $K$ -fold cross-validation to collect the classifier's prediction and its probability for each training instance, then calculate the expected confidence over all folds using a method in a similar spirit of the Expected Calibration Error (ECE).",
|
| 184 |
+
"bbox": [
|
| 185 |
+
115,
|
| 186 |
+
84,
|
| 187 |
+
485,
|
| 188 |
+
260
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "Using ACTCAB, our second contribution is a Confidence-guided Decoding strategy, CODEC. CODEC directs the LM to generate outputs with higher confidence by incorporating the confidence scores of candidate tokens with the top-K highest probabilities predicted by the LM. This increases the likelihood that the answers are correct while maintaining inference efficiency. Unlike selective generation, CODEC preserves the helpfulness of LM by not filtering out responses, but rather by better discerning the correct answers. This aligns with the principles of other inference-time intervention methods (Li et al., 2023; Zou et al., 2023; Fatahi Bayat et al., 2024). However, CODEC differs by keeping the model unchanged and does not affect the LM's original reasoning process, resulting in more stable performance across different training data and LMs, as shown in our experiments.",
|
| 195 |
+
"bbox": [
|
| 196 |
+
115,
|
| 197 |
+
261,
|
| 198 |
+
485,
|
| 199 |
+
549
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 1
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"text": "To assess the newly proposed calibration method, we apply ACTCAB on Llama2-7b (Touvron et al., 2023) and experiment on five popular open-ended question-answering (QA) datasets, as collected by Liu et al. (2024). The results show that our method achieves superior calibration performance, reducing the ECE score by an average of $39\\%$ compared to the most competitive baseline, the logit-based LITcAB method (Liu et al., 2024). Again, ACTCAB uses the more informative internal activations to better model the global context, resulting in more accurate confidence scores at the response level than logit-based methods that primarily focus on the correctness of individual tokens. Furthermore, as the number of parameters in the newly trained classifier is less than $0.001\\%$ of original LM parameters, ACTCAB also enjoys a superior inference efficiency compared to self-consistency-based methods.",
|
| 206 |
+
"bbox": [
|
| 207 |
+
115,
|
| 208 |
+
551,
|
| 209 |
+
485,
|
| 210 |
+
854
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 1
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"text": "Moreover, we use CoDEC to improve the factuality of LMs after being calibrated by ACTCAB. We compare CoDEC with selective generation (Ren et al., 2023b), which keeps the model",
|
| 217 |
+
"bbox": [
|
| 218 |
+
115,
|
| 219 |
+
857,
|
| 220 |
+
485,
|
| 221 |
+
919
|
| 222 |
+
],
|
| 223 |
+
"page_idx": 1
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"text": "output with the highest confidence score among multiple generations, and two state-of-the-art intervention techniques that aim to improve factuality by shifting model activations during inference: Inference-Time Intervention (ITI) (Li et al., 2023) and Representation Engineering (RepE) (Zou et al., 2023) on three LMs, Llama2-7b, Llama2-13b (Touvron et al., 2023) and Llama3-8b (AI@Meta, 2024). CODEC outperforms the nontrivial comparisons on challenging QA benchmarks, including Natural Questions and TruthfulQA, while achieving comparable performance on other tasks.",
|
| 228 |
+
"bbox": [
|
| 229 |
+
512,
|
| 230 |
+
84,
|
| 231 |
+
880,
|
| 232 |
+
275
|
| 233 |
+
],
|
| 234 |
+
"page_idx": 1
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"text": "2 Related Work",
|
| 239 |
+
"text_level": 1,
|
| 240 |
+
"bbox": [
|
| 241 |
+
512,
|
| 242 |
+
319,
|
| 243 |
+
662,
|
| 244 |
+
334
|
| 245 |
+
],
|
| 246 |
+
"page_idx": 1
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"type": "text",
|
| 250 |
+
"text": "2.1 Language Model Calibration",
|
| 251 |
+
"text_level": 1,
|
| 252 |
+
"bbox": [
|
| 253 |
+
512,
|
| 254 |
+
368,
|
| 255 |
+
781,
|
| 256 |
+
382
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 1
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "Popular language model (LM) calibration methods can be categorized into three main types: verbalization-based, self-consistency-based, and logit-based approaches. Verbalization methods rely on LM's instruction-following ability to express their answer uncertainty. For example, Tian et al. (2023b) prompts the LM to provide a probability between 0.0 and 1.0 to indicate the correctness of its response. Self-consistency-based methods operate on the intuition that a model is likely to generate consistent content when it is confident about a question (Wang et al., 2023). Therefore, multiple responses are sampled and the confidence is estimated after grouping responses according to their semantic similarity (Kuhn et al., 2023; Xiong et al., 2023). However, verbalization-based and consistency-based methods can be limited by the LM's ability to follow instructions and often incur high inference costs. Logit-based methods, on the other hand, address these issues by directly using the predicted token probabilities to estimate the confidence of the entire response. For instance, both Si et al. (2023) and Liu et al. (2024) compute the response uncertainty by using the geometric mean of the token probability sequence. Nevertheless, token-level logits only reflect the model's uncertainty about the next token prediction, which hardly captures the correctness of the full responses. Different from all the prior work, ACTCAB directly estimates the answer uncertainty using LM's internal activations, achieving more accurate confidence scores and greater inference efficiency.",
|
| 263 |
+
"bbox": [
|
| 264 |
+
512,
|
| 265 |
+
406,
|
| 266 |
+
880,
|
| 267 |
+
919
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 1
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "page_number",
|
| 273 |
+
"text": "10437",
|
| 274 |
+
"bbox": [
|
| 275 |
+
478,
|
| 276 |
+
928,
|
| 277 |
+
524,
|
| 278 |
+
940
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 1
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "2.2 Enhancing Factuality via Inference Intervention",
|
| 285 |
+
"text_level": 1,
|
| 286 |
+
"bbox": [
|
| 287 |
+
112,
|
| 288 |
+
84,
|
| 289 |
+
435,
|
| 290 |
+
115
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 2
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "Inference intervention methods collect directional vectors representing truthfulness and incorporate them into the LMs' forward pass, thereby steering them towards factual outputs. For instance, Inference-time Intervention (ITI) (Li et al., 2023) uses linear probing to identify attention heads that exhibit distinct activation distributions for true and false statements. Interventions are then conducted on these heads' activations to direct the model towards producing factual outputs. Similarly, Representation Engineering (RepE) (Zou et al., 2023) detects truthful directions in each layer by prompting the language model with pairs of instructions that have contrasting meanings and incorporates these directions into each layer during decoding. These methods are closely related to CODEC, since they also modify model behavior during the decoding phase. The distinction between CODEC and intervention methods lies in their application. Both ITI and RepE directly intervene in the activations of LMs, while CODEC adjusts the LM's output distribution. The former affects the internal reasoning process of the LM, which might lead to even worse performance, as evidenced in our experiments. Conversely, CODEC does not affect the model's inherent reasoning process, keeping the LM unchanged and providing stable improvement.",
|
| 297 |
+
"bbox": [
|
| 298 |
+
112,
|
| 299 |
+
122,
|
| 300 |
+
489,
|
| 301 |
+
556
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 2
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "Selective generation is also related to our work. Typically, this approach estimates the confidence of model-generated responses and filters out those with confidence below a certain threshold (Ren et al., 2023b; Zablotskaia et al., 2023). Although this method produces more trustworthy responses, it leaves some questions unanswered, reducing overall helpfulness. In contrast, CODEC directly guides the model to generate high-confidence responses, enhancing the model's factuality without sacrificing helpfulness.",
|
| 308 |
+
"bbox": [
|
| 309 |
+
112,
|
| 310 |
+
558,
|
| 311 |
+
489,
|
| 312 |
+
734
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 2
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "3 ACTCAB: Activation-based Confidence Calibration",
|
| 319 |
+
"text_level": 1,
|
| 320 |
+
"bbox": [
|
| 321 |
+
112,
|
| 322 |
+
747,
|
| 323 |
+
487,
|
| 324 |
+
781
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "Recent studies (Burns et al., 2023; Li et al., 2023) show that the activations within LMs may encode a notion of \"truth\" if the model knows the facts. Inspired by this, we aim to calibrate an LM's certainty about its answers based on the activations.",
|
| 331 |
+
"bbox": [
|
| 332 |
+
112,
|
| 333 |
+
791,
|
| 334 |
+
487,
|
| 335 |
+
872
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 2
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "In this section, we first describe the architecture of ACTCAB in Β§3.1, and then present a novel procedure to construct soft labels for use in the training",
|
| 342 |
+
"bbox": [
|
| 343 |
+
112,
|
| 344 |
+
873,
|
| 345 |
+
489,
|
| 346 |
+
921
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 2
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "objective in Β§3.2. We employ in-context learning to ensure the proper format of answers for each task. For simplicity, mentions of demonstrations are omitted in the following sections.",
|
| 353 |
+
"bbox": [
|
| 354 |
+
507,
|
| 355 |
+
84,
|
| 356 |
+
882,
|
| 357 |
+
149
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 2
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "3.1 Eliciting Confidence from Activations",
|
| 364 |
+
"text_level": 1,
|
| 365 |
+
"bbox": [
|
| 366 |
+
507,
|
| 367 |
+
159,
|
| 368 |
+
852,
|
| 369 |
+
174
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "Let $x$ represent the input query, $y$ denotes the model's response, which consists of $|y|$ tokens. The corresponding sequence of activations is denoted as $\\mathbf{h}_{[1:|y|]} = [\\mathbf{h}_1,\\mathbf{h}_2,\\dots ,\\mathbf{h}_{|y|}]$ . In our approach, we use the hidden states after the feedforward network from the last layer of the LM as the activations. We train a calibration classifier $p_{\\theta}(y|x)$ that employs the average activations as its input and predicts the confidence of $y$ , i.e., $p_{\\theta}(y|x) = \\sigma (\\mathbf{W}\\cdot \\frac{1}{|y|}\\sum_{i = 1}^{|y|}\\mathbf{h}_i + \\mathbf{B})$ . Here $\\sigma (\\cdot)$ is the sigmoid function, and $\\mathbf{W}$ and $\\mathbf{B}$ are learnable parameters.",
|
| 376 |
+
"bbox": [
|
| 377 |
+
507,
|
| 378 |
+
180,
|
| 379 |
+
884,
|
| 380 |
+
374
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 2
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "Since the classifier is designed to predict the confidence of model responses, it is crucial to train it with real LM generations to ensure consistent training and test distributions. Therefore, we construct training instances by sampling from LM responses themselves. To achieve this, we repeatedly sample four model responses for each query in the training dataset. Following Liu et al. (2024), we employ ROUGE Score (Ren et al., 2023a) and GPT-4 to determine the correctness of each sampled response $y$ , with details in Appendix A.",
|
| 387 |
+
"bbox": [
|
| 388 |
+
507,
|
| 389 |
+
375,
|
| 390 |
+
882,
|
| 391 |
+
552
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 2
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "Given these binary correctness labels, a typical training objective is the mean squared error (MSE) loss, which is defined as:",
|
| 398 |
+
"bbox": [
|
| 399 |
+
507,
|
| 400 |
+
552,
|
| 401 |
+
882,
|
| 402 |
+
600
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 2
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "equation",
|
| 408 |
+
"text": "\n$$\n\\mathcal {L} _ {M S E} = \\frac {1}{| \\mathcal {D} |} \\sum_ {(x, y) \\in \\mathcal {D}} \\left(\\mathbf {1} (y \\text {i s c o r r e c t}) - p _ {\\theta} (y | x)\\right) ^ {2}, \\tag {1}\n$$\n",
|
| 409 |
+
"text_format": "latex",
|
| 410 |
+
"bbox": [
|
| 411 |
+
507,
|
| 412 |
+
609,
|
| 413 |
+
882,
|
| 414 |
+
663
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 2
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "where $\\mathcal{D}$ is the set of training instances, and $1(\\cdot)$ is the indicator function. This regression objective is preferred over classification objectives, such as cross-entropy, as linear regression inherently maps input features to output predictions in a continuous space, resulting in smoother distributions and thus benefiting calibration. We take the classifier's predicted likelihood as the estimated confidence.",
|
| 421 |
+
"bbox": [
|
| 422 |
+
507,
|
| 423 |
+
664,
|
| 424 |
+
882,
|
| 425 |
+
791
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 2
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "3.2 Constructing Soft Training Labels via $K$ -fold Cross-validation",
|
| 432 |
+
"text_level": 1,
|
| 433 |
+
"bbox": [
|
| 434 |
+
507,
|
| 435 |
+
804,
|
| 436 |
+
853,
|
| 437 |
+
834
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 2
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "The binary labels used in Equation 1 can cause poor calibration (Niculescu-Mizil and Caruana, 2005; Guo et al., 2017), as they encourage the model to produce sharp output distribution, leading to underconfidence or over-confidence. To tackle this prob",
|
| 444 |
+
"bbox": [
|
| 445 |
+
507,
|
| 446 |
+
841,
|
| 447 |
+
884,
|
| 448 |
+
921
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 2
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "page_number",
|
| 454 |
+
"text": "10438",
|
| 455 |
+
"bbox": [
|
| 456 |
+
477,
|
| 457 |
+
927,
|
| 458 |
+
524,
|
| 459 |
+
940
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 2
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "image",
|
| 465 |
+
"img_path": "images/0969dcb54f4eade7ac6f8e0935f32f8b944e6d748bdfd6d97c0032ffd7d871df.jpg",
|
| 466 |
+
"image_caption": [
|
| 467 |
+
"Figure 1: The process of constructing soft training labels for ECE loss. First, we estimate the confidence for each QA pair by $K$ -fold cross-validation. Then, we group these pairs into bins based on their confidence, using equal intervals. Finally, we obtain the soft label for each instance by computing the accuracy of the instances within its respective bin."
|
| 468 |
+
],
|
| 469 |
+
"image_footnote": [],
|
| 470 |
+
"bbox": [
|
| 471 |
+
117,
|
| 472 |
+
80,
|
| 473 |
+
485,
|
| 474 |
+
343
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 3
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "lem, previous efforts have applied heuristic rules, such as label smoothing (Szegedy et al., 2016), to produce soft training labels. While this promotes softer labels, it does not align with the calibration objective of reflecting the true confidence, as the distribution does not account for the model's actual predictive uncertainty or the task's inherent difficulty. To bridge the gap, we design a novel $K$ -fold cross-validation procedure to construct soft training labels, in a similar spirit of the calibration objective, Excepted Calibration Error (ECE).",
|
| 481 |
+
"bbox": [
|
| 482 |
+
112,
|
| 483 |
+
481,
|
| 484 |
+
487,
|
| 485 |
+
658
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "ECE is widely used to assess the calibration performance of neural networks (Guo et al., 2017; Lin et al., 2022a; Tian et al., 2023b), measuring the discrepancy between model confidence and actual accuracy. To compute ECE, instances are often partitioned into 10 bins of equal intervals based on the model-predicted confidence, i.e., [0, 0.1), [0.1, 0.2), ..., [0.9, 1]. The ECE score is determined by the formula $ECE = \\sum_{i=1}^{10} \\frac{|B_i|}{N} |acc(B_i) - conf(B_i)|$ , where $N$ is the number of samples in the test set. Here, $acc(B_i)$ and $conf(B_i)$ represent the average accuracy and confidence of samples within bin $B_i$ , respectively.",
|
| 492 |
+
"bbox": [
|
| 493 |
+
112,
|
| 494 |
+
659,
|
| 495 |
+
489,
|
| 496 |
+
872
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "Our process for constructing soft training labels is inspired by the computation of ECE, as illustrated in Figure 1. By partitioning the training",
|
| 503 |
+
"bbox": [
|
| 504 |
+
112,
|
| 505 |
+
873,
|
| 506 |
+
489,
|
| 507 |
+
922
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 3
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "instances into $K$ folds, we train $K$ classifiers using each fold as a separate validation set, while the remaining data is reserved for training. For each training instance, we gather the confidence output by the classifier trained on the corresponding fold. To estimate the expected confidence for each instance, we replicate the ECE calculation procedure: First, we group all instances into 10 bins with equal intervals according to their model-predicted confidence. Next, we compute the accuracy of instances within each bin, defined formally as:",
|
| 514 |
+
"bbox": [
|
| 515 |
+
507,
|
| 516 |
+
84,
|
| 517 |
+
885,
|
| 518 |
+
261
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 3
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "equation",
|
| 524 |
+
"text": "\n$$\n\\operatorname {a c c} \\left(B _ {(x, y)}\\right) = \\frac {1}{\\left| B _ {(x , y)} \\right|} \\sum_ {y \\in B _ {(x, y)}} \\mathbf {1} (y \\text {i s c o r r e c t}), \\tag {2}\n$$\n",
|
| 525 |
+
"text_format": "latex",
|
| 526 |
+
"bbox": [
|
| 527 |
+
515,
|
| 528 |
+
271,
|
| 529 |
+
882,
|
| 530 |
+
325
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 3
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "where $B_{(x,y)}$ denotes the bin in which the instance $(x,y)$ falls. The accuracy serves as the expected confidence for $(x,y)$ . Subsequently, we substitute the expected confidence for the binary label in Equation 1. The revised training loss, referred to as ECE loss, becomes",
|
| 537 |
+
"bbox": [
|
| 538 |
+
507,
|
| 539 |
+
326,
|
| 540 |
+
882,
|
| 541 |
+
420
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 3
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "equation",
|
| 547 |
+
"text": "\n$$\n\\mathcal {L} _ {E C E} = \\frac {1}{| \\mathcal {D} |} \\sum_ {(x, y) \\in \\mathcal {D}} \\left(\\operatorname {a c c} \\left(B _ {(x, y)}\\right) - p _ {\\theta} (y \\mid x)\\right) ^ {2} \\tag {3}\n$$\n",
|
| 548 |
+
"text_format": "latex",
|
| 549 |
+
"bbox": [
|
| 550 |
+
519,
|
| 551 |
+
431,
|
| 552 |
+
882,
|
| 553 |
+
483
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 3
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "Training $p_{\\theta}(y|x)$ on the ECE loss can directly narrow the discrepancy between the predicted confidence and the actual likelihood, thus strengthening the calibration performance.",
|
| 560 |
+
"bbox": [
|
| 561 |
+
507,
|
| 562 |
+
485,
|
| 563 |
+
882,
|
| 564 |
+
550
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 3
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "4 CoDEC: Confidence-guided Decoding",
|
| 571 |
+
"text_level": 1,
|
| 572 |
+
"bbox": [
|
| 573 |
+
507,
|
| 574 |
+
561,
|
| 575 |
+
873,
|
| 576 |
+
579
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 3
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "Intuitively, a response generated with higher confidence is more likely to be correct, assuming the LM is well-calibrated. Building on this intuition, we design CODEC, a decoding strategy that guides the LM to generate high-confidence responses, in line with recent guided decoding studies (Khalifa et al., 2023). We illustrate the whole process of CODEC in Figure 2.",
|
| 583 |
+
"bbox": [
|
| 584 |
+
505,
|
| 585 |
+
586,
|
| 586 |
+
882,
|
| 587 |
+
714
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 3
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "CoDEC follows a greedy procedure, encouraging the model to favor tokens that can lead to answers with higher confidence. Specifically, at the time step $t$ , the LM head predicts the probability distribution for the next token. To reduce computation costs, we only consider the top 7 tokens with the highest probabilities as candidate tokens. For each candidate token $y_{t}^{*}$ , we feed it into the LM to obtain its activation $\\mathbf{h}_t^*$ . Given this activation, the score for each token is computed by combining the token probability with its estimated confidence:",
|
| 594 |
+
"bbox": [
|
| 595 |
+
505,
|
| 596 |
+
715,
|
| 597 |
+
884,
|
| 598 |
+
892
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 3
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "equation",
|
| 604 |
+
"text": "\n$$\ns \\left(y _ {t} ^ {*}\\right) = \\lambda \\cdot L M \\left(y _ {t} ^ {*}\\right) + (1 - \\lambda) \\cdot \\sigma \\left(\\mathbf {W} \\cdot \\mathbf {h} _ {t} ^ {*} + \\mathbf {B}\\right) \\tag {4}\n$$\n",
|
| 605 |
+
"text_format": "latex",
|
| 606 |
+
"bbox": [
|
| 607 |
+
517,
|
| 608 |
+
904,
|
| 609 |
+
882,
|
| 610 |
+
922
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 3
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "page_number",
|
| 616 |
+
"text": "10439",
|
| 617 |
+
"bbox": [
|
| 618 |
+
477,
|
| 619 |
+
927,
|
| 620 |
+
524,
|
| 621 |
+
940
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 3
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "image",
|
| 627 |
+
"img_path": "images/bf8f2d54a99bfc065f5d029d189204111916d8bf78434c36e07e3b7584636f60.jpg",
|
| 628 |
+
"image_caption": [
|
| 629 |
+
"Where did the Pilgrims first land?",
|
| 630 |
+
"Figure 2: The process of CODEC decoding. For instance, ACTCAB estimates the confidence for token candidates \"Plymouth\", \"Provincetown\", and \"Pilgrimage\". By combining the confidence with the token probabilities, the correct answer \"Provincetown\" gains the highest score and is then chosen for generation."
|
| 631 |
+
],
|
| 632 |
+
"image_footnote": [],
|
| 633 |
+
"bbox": [
|
| 634 |
+
119,
|
| 635 |
+
102,
|
| 636 |
+
480,
|
| 637 |
+
293
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 4
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "where $LM(y_{t}^{*})$ is the LM predicted token probability of the candidate token $y_{t}^{*}$ . $\\mathbf{W}$ and $\\mathbf{B}$ are the parameters of the classifier described in Β§3.1. $\\lambda$ is the hyperparameter that balances these two sources, whose optimal value is searched on the development set. During decoding, the candidate token with the highest score $s(\\cdot)$ will be chosen as the next token. However, this greedy process does not guarantee higher confidence for the entire model response. Beyond this token-level guidance, we use ACTCAB again to estimate the overall confidence of the generated response using the average activations. This leverages the entire activation sequence, which is supposed to capture a more globally calibrated confidence. We only retain the model responses generated by CoDEC if their overall confidence exceeds that of the response generated by the standard greedy decoding.",
|
| 644 |
+
"bbox": [
|
| 645 |
+
112,
|
| 646 |
+
412,
|
| 647 |
+
489,
|
| 648 |
+
703
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 4
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "5 Experiments",
|
| 655 |
+
"text_level": 1,
|
| 656 |
+
"bbox": [
|
| 657 |
+
112,
|
| 658 |
+
714,
|
| 659 |
+
260,
|
| 660 |
+
730
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 4
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "5.1 Datasets",
|
| 667 |
+
"text_level": 1,
|
| 668 |
+
"bbox": [
|
| 669 |
+
112,
|
| 670 |
+
739,
|
| 671 |
+
228,
|
| 672 |
+
753
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 4
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "We assess the calibration performance of ACT-CAB and baseline methods using CaT, a public calibration evaluation benchmark (Liu et al., 2024). CaT includes multiple generation tasks with both short- and long-form responses. In our experiments, we focus on the phrase- and sentence-level tasks in CaT, in particular, TruthfulQA (Lin et al., 2022b), TriviaQA (Joshi et al., 2017), SciQ (Johannes Welbl, 2017), Natrual Questions (NQ) (Kwiatkowski et al., 2019), and Wik",
|
| 679 |
+
"bbox": [
|
| 680 |
+
112,
|
| 681 |
+
760,
|
| 682 |
+
490,
|
| 683 |
+
921
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 4
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "table",
|
| 689 |
+
"img_path": "images/85da7a4f4849024f155d953fffac4d1e0bc86f75d09ceff6e63e753e8ac4e2a6.jpg",
|
| 690 |
+
"table_caption": [],
|
| 691 |
+
"table_footnote": [],
|
| 692 |
+
"table_body": "<table><tr><td></td><td>NQ</td><td>SciQ</td><td>TriviaQA</td><td>TruthfulQA</td><td>WikiQA</td></tr><tr><td># Train</td><td>2K</td><td>2K</td><td>2K</td><td>397</td><td>1040</td></tr><tr><td># Test</td><td>1K</td><td>1K</td><td>1K</td><td>420</td><td>293</td></tr></table>",
|
| 693 |
+
"bbox": [
|
| 694 |
+
510,
|
| 695 |
+
80,
|
| 696 |
+
878,
|
| 697 |
+
133
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 4
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "Table 1: Statistics of five datasets.",
|
| 704 |
+
"bbox": [
|
| 705 |
+
578,
|
| 706 |
+
142,
|
| 707 |
+
811,
|
| 708 |
+
156
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 4
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "iQA (Yang et al., 2015). The statistics for each dataset are presented in Table 1. Additionally, we evaluate the factuality of LMs on these five tasks.",
|
| 715 |
+
"bbox": [
|
| 716 |
+
507,
|
| 717 |
+
181,
|
| 718 |
+
880,
|
| 719 |
+
231
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 4
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "5.2 Implementation Details",
|
| 726 |
+
"text_level": 1,
|
| 727 |
+
"bbox": [
|
| 728 |
+
507,
|
| 729 |
+
241,
|
| 730 |
+
741,
|
| 731 |
+
256
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 4
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "We implement the in-context learning setting in all our experiments. Following Liu et al. (2024), we select 15 QA pairs from the training set as demonstrations when evaluating the calibration methods. To assess the factuality of CODEC and the baseline methods, we use a 5-shot generation setting, consistent with the in-context learning setting used in ITI (Li et al., 2023). To find the optimal hyperparameters for ACTCAB, CODEC, and all comparisons, we follow Liu et al. (2024) to use $20\\%$ of the training samples as a validation set and train the classifier on the remaining instances. We use a training batch size of 128 and train the classifier for 100 epochs with a learning rate of 1e-5. We set $\\lambda$ in Equation 4 to 0.3. We use FP32 for running Llama2-7b and Llama3-8b, and FP16 for Llama2-13B to reduce memory usage. Since ACTCAB only trains a single linear layer, the training process takes less than 1 hour on a single A6000 GPU for each task. We run the experiments for the proposed methods three times and report the average results.",
|
| 738 |
+
"bbox": [
|
| 739 |
+
505,
|
| 740 |
+
261,
|
| 741 |
+
884,
|
| 742 |
+
615
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 4
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "To assess the calibration performance of ACT-CAB and the baselines, we sample the LM's responses on the test set and calculate the calibration metrics based on these sampled responses. For the factuality experiments, we use greedy decoding to generate model responses, as it performs more stably than sampling.",
|
| 749 |
+
"bbox": [
|
| 750 |
+
507,
|
| 751 |
+
615,
|
| 752 |
+
882,
|
| 753 |
+
728
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 4
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "5.3 Evaluation Metrics",
|
| 760 |
+
"text_level": 1,
|
| 761 |
+
"bbox": [
|
| 762 |
+
507,
|
| 763 |
+
739,
|
| 764 |
+
705,
|
| 765 |
+
753
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 4
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "In addition to ECE, we use Brier Score to measure the calibration performance of ACTCAB and baselines. Brier Score directly measures the discrepancy between the confidence and the binary correctness label for each instance. It is computed as $Brier = \\frac{1}{N}\\sum_{y\\in Y}(f(x,y) - 1(y\\text{is correct}))^2$",
|
| 772 |
+
"bbox": [
|
| 773 |
+
507,
|
| 774 |
+
760,
|
| 775 |
+
884,
|
| 776 |
+
858
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 4
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "To evaluate the factuality of CODEC and baselines, we use Accuracy (Acc.) as the main metric for NQ, SciQ, TriviaQA, and WikiQA. In the context of TruthfulQA, some questions are unan",
|
| 783 |
+
"bbox": [
|
| 784 |
+
507,
|
| 785 |
+
857,
|
| 786 |
+
884,
|
| 787 |
+
921
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 4
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "page_number",
|
| 793 |
+
"text": "10440",
|
| 794 |
+
"bbox": [
|
| 795 |
+
477,
|
| 796 |
+
927,
|
| 797 |
+
524,
|
| 798 |
+
940
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 4
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "table",
|
| 804 |
+
"img_path": "images/f4a257c0c2b03f21bd2ddebdff5e4b42024469a0b29997e07df8d2ccb5eb1465.jpg",
|
| 805 |
+
"table_caption": [],
|
| 806 |
+
"table_footnote": [],
|
| 807 |
+
"table_body": "<table><tr><td>Task</td><td>Metric</td><td>Verbalization</td><td>Self-Consistency</td><td>Seq. Likelihood</td><td>Temp. Scaling</td><td>LitCab</td><td>ACTCAB</td><td>ACTCAB w/o ECE loss</td></tr><tr><td rowspan=\"2\">NQ</td><td>ECE</td><td>0.516</td><td>0.145</td><td>0.171</td><td>0.165</td><td>0.101</td><td>0.056</td><td>0.072</td></tr><tr><td>Brier</td><td>0.468</td><td>0.163</td><td>0.196</td><td>0.193</td><td>0.169</td><td>0.179</td><td>0.184</td></tr><tr><td rowspan=\"2\">SciQ</td><td>ECE</td><td>0.318</td><td>0.101</td><td>0.094</td><td>0.091</td><td>0.084</td><td>0.064</td><td>0.086</td></tr><tr><td>Brier</td><td>0.344</td><td>0.227</td><td>0.203</td><td>0.202</td><td>0.203</td><td>0.205</td><td>0.205</td></tr><tr><td rowspan=\"2\">TriviaQA</td><td>ECE</td><td>0.431</td><td>0.181</td><td>0.112</td><td>0.079</td><td>0.081</td><td>0.080</td><td>0.109</td></tr><tr><td>Brier</td><td>0.409</td><td>0.253</td><td>0.203</td><td>0.195</td><td>0.203</td><td>0.195</td><td>0.204</td></tr><tr><td rowspan=\"2\">TruthfulQA</td><td>ECE</td><td>0.510</td><td>0.060</td><td>0.138</td><td>0.161</td><td>0.105</td><td>0.025</td><td>0.080</td></tr><tr><td>Brier</td><td>0.474</td><td>0.194</td><td>0.218</td><td>0.240</td><td>0.206</td><td>0.177</td><td>0.179</td></tr><tr><td rowspan=\"2\">WikiQA</td><td>ECE</td><td>0.535</td><td>0.136</td><td>0.075</td><td>0.066</td><td>0.075</td><td>0.046</td><td>0.051</td></tr><tr><td>Brier</td><td>0.518</td><td>0.243</td><td>0.212</td><td>0.222</td><td>0.212</td><td>0.104</td><td>0.111</td></tr><tr><td rowspan=\"2\">Average</td><td>ECE</td><td>0.462</td><td>0.125</td><td>0.118</td><td>0.112</td><td>0.089</td><td>0.054</td><td>0.080</td></tr><tr><td>Brier</td><td>0.443</td><td>0.216</td><td>0.206</td><td>0.210</td><td>0.199</td><td>0.172</td><td>0.177</td></tr></table>",
|
| 808 |
+
"bbox": [
|
| 809 |
+
115,
|
| 810 |
+
83,
|
| 811 |
+
878,
|
| 812 |
+
280
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 5
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "Table 2: Results of ACTCAB and comparison methods on CaT, with the best results in bold. The last row shows the averaged metric values across five tasks. ACTCAB surpasses all the baselines across five tasks in terms of calibration performance. The ablation study (ACTCAB w/o ECE loss, last column) demonstrates the effectiveness of ECE loss. We highlight numbers where ACTCAB improves over both the Seq. Likelihood and all baselines in blue; when ACTCAB outperforms the Seq. Likelihood, it is colored in green.",
|
| 819 |
+
"bbox": [
|
| 820 |
+
110,
|
| 821 |
+
288,
|
| 822 |
+
882,
|
| 823 |
+
363
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 5
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "swerable and the LM is expected to refuse to answer by outputting \"I have no comments\", e.g., given a question on \"What's on your mind right now?\". The LM also acquires such refusal capability through demonstrations.2 Considering that, we follow Lin et al. (2022b) to report Truthfulness (True.), Informativeness (Info.), and True.*Info.. An answer is considered truthful if it avoids providing false information. Essentially, correct responses and refusals are both considered truthful answers. Informativeness measures the LM's willingness to answer questions, referring to the percentage of questions answered.",
|
| 830 |
+
"bbox": [
|
| 831 |
+
112,
|
| 832 |
+
388,
|
| 833 |
+
489,
|
| 834 |
+
598
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 5
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "5.4Baselines",
|
| 841 |
+
"text_level": 1,
|
| 842 |
+
"bbox": [
|
| 843 |
+
112,
|
| 844 |
+
613,
|
| 845 |
+
235,
|
| 846 |
+
627
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 5
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Comparisons for Calibration. We compare ACTCAB with the following baseline methods on Llama2-7b.",
|
| 853 |
+
"bbox": [
|
| 854 |
+
112,
|
| 855 |
+
637,
|
| 856 |
+
487,
|
| 857 |
+
683
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 5
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "list",
|
| 863 |
+
"sub_type": "text",
|
| 864 |
+
"list_items": [
|
| 865 |
+
"- Verbalization: Prompting the LM to state its confidence in its response, reusing the prompt from Tian et al. (2023b).",
|
| 866 |
+
"- Self-consistency (Tian et al., 2023b): Sampling model responses for 10 times and estimating the confidence by computing the semantic similarities between them. Details can be found in Liu et al. (2024)."
|
| 867 |
+
],
|
| 868 |
+
"bbox": [
|
| 869 |
+
136,
|
| 870 |
+
702,
|
| 871 |
+
489,
|
| 872 |
+
845
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 5
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "We further consider three logit-based calibration methods.",
|
| 879 |
+
"bbox": [
|
| 880 |
+
112,
|
| 881 |
+
863,
|
| 882 |
+
487,
|
| 883 |
+
892
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 5
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "list",
|
| 889 |
+
"sub_type": "text",
|
| 890 |
+
"list_items": [
|
| 891 |
+
"- Sequence Likelihood is computed as the geometric mean of the token probabilities in the LM's response.",
|
| 892 |
+
"- Temperature Scaling (Liang et al., 2018) uses a temperature constant to scale logits before the softmax function. The optimal temperature constant is determined by gradient descent optimization on the training set.",
|
| 893 |
+
"- LitCab (Liu et al., 2024) trains a linear layer on top of the LM's last-layer hidden states to adjust its logits for calibration."
|
| 894 |
+
],
|
| 895 |
+
"bbox": [
|
| 896 |
+
531,
|
| 897 |
+
388,
|
| 898 |
+
884,
|
| 899 |
+
588
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 5
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "Comparisons for Factuality. We compare CODEC with the following methods on three widely-used LMs: Llama2-7b, Llama2-13b and Llama3-8b.",
|
| 906 |
+
"bbox": [
|
| 907 |
+
507,
|
| 908 |
+
609,
|
| 909 |
+
882,
|
| 910 |
+
671
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 5
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "list",
|
| 916 |
+
"sub_type": "text",
|
| 917 |
+
"list_items": [
|
| 918 |
+
"- Selective Generation: Selective generation is often done by filtering out low-confidence responses by setting a confidence threshold (Ren et al., 2023a; Zablotskaia et al., 2023). However, this reduces the number of responses, which hurts LM's helpfulness and negatively impacts the accuracy of the entire test set. To address this, we implement selective generation by sampling model outputs four times and selecting the one with the highest confidence, as determined by ACTCAB.",
|
| 919 |
+
"- Inference-Time Intervention (ITI) (Li et al., 2023) identifies truthful directions by training probes on attention head outputs and uses"
|
| 920 |
+
],
|
| 921 |
+
"bbox": [
|
| 922 |
+
531,
|
| 923 |
+
684,
|
| 924 |
+
884,
|
| 925 |
+
921
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 5
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "page_footnote",
|
| 931 |
+
"text": "The prompt for TruthfulQA can be found in Appendix B",
|
| 932 |
+
"bbox": [
|
| 933 |
+
134,
|
| 934 |
+
904,
|
| 935 |
+
485,
|
| 936 |
+
920
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 5
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "page_number",
|
| 942 |
+
"text": "10441",
|
| 943 |
+
"bbox": [
|
| 944 |
+
477,
|
| 945 |
+
927,
|
| 946 |
+
522,
|
| 947 |
+
940
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 5
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "table",
|
| 953 |
+
"img_path": "images/4c90029b9976ec4e9ca49ae3ddfa7c536488f98d2bb966b9c2e1156dcc2c3938.jpg",
|
| 954 |
+
"table_caption": [],
|
| 955 |
+
"table_footnote": [],
|
| 956 |
+
"table_body": "<table><tr><td>Task</td><td>Metric</td><td>Greedy Decoding</td><td>Selitive Generation</td><td>ITI</td><td>RepE</td><td>CODEC</td></tr><tr><td colspan=\"7\">Llama2-7b</td></tr><tr><td>NQ</td><td>Acc.</td><td>32.80</td><td>24.91</td><td>29.20</td><td>30.80</td><td>35.00</td></tr><tr><td>SciQ</td><td>Acc.</td><td>64.80</td><td>57.66</td><td>62.90</td><td>65.60</td><td>63.90</td></tr><tr><td></td><td>True.</td><td>30.24</td><td>37.38</td><td>29.29</td><td>26.90</td><td>46.90</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>90.95</td><td>81.90</td><td>90.71</td><td>90.24</td><td>87.62</td></tr><tr><td></td><td>True.*Info.</td><td>27.50</td><td>30.62</td><td>27.00</td><td>24.28</td><td>41.10</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>68.90</td><td>56.43</td><td>66.40</td><td>68.80</td><td>69.85</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>23.05</td><td>11.16</td><td>16.38</td><td>21.84</td><td>23.05</td></tr><tr><td colspan=\"7\">Llama2-13b</td></tr><tr><td>NQ</td><td>Acc.</td><td>39.00</td><td>30.12</td><td>37.30</td><td>36.90</td><td>39.55</td></tr><tr><td>SciQ</td><td>Acc.</td><td>70.50</td><td>63.96</td><td>67.90</td><td>71.30</td><td>71.10</td></tr><tr><td></td><td>True.</td><td>32.14</td><td>37.38</td><td>35.00</td><td>32.62</td><td>46.43</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>89.05</td><td>82.14</td><td>89.05</td><td>88.57</td><td>85.95</td></tr><tr><td></td><td>True.*Info.</td><td>28.62</td><td>30.71</td><td>31.17</td><td>28.89</td><td>39.91</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>76.75</td><td>62.43</td><td>76.10</td><td>75.80</td><td>75.80</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>30.04</td><td>17.36</td><td>23.89</td><td>24.91</td><td>29.63</td></tr><tr><td colspan=\"7\">Llama3-8b</td></tr><tr><td>NQ</td><td>Acc.</td><td>38.35</td><td>32.27</td><td>32.50</td><td>36.20</td><td>38.65</td></tr><tr><td>SciQ</td><td>Acc.</td><td>72.60</td><td>68.17</td><td>68.20</td><td>58.60</td><td>72.50</td></tr><tr><td></td><td>True.</td><td>28.57</td><td>36.43</td><td>32.14</td><td>26.67</td><td>42.38</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>87.62</td><td>84.52</td><td>88.33</td><td>87.14</td><td>89.29</td></tr><tr><td></td><td>True.*Info.</td><td>25.03</td><td>30.79</td><td>28.39</td><td>23.24</td><td>37.84</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>73.70</td><td>61.08</td><td>61.30</td><td>63.80</td><td>74.45</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>25.93</td><td>19.42</td><td>15.01</td><td>16.38</td><td>26.34</td></tr></table>",
|
| 957 |
+
"bbox": [
|
| 958 |
+
208,
|
| 959 |
+
80,
|
| 960 |
+
786,
|
| 961 |
+
437
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 6
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Table 3: Factuality results of CODEC and comparisons on five tasks, with the best results in bold. Greedy Decoding refers to the plain LM with in-context learning prompting using greedy decoding. We highlight numbers where CODEC improves over both the Greedy Decoding and all baselines in blue. CODEC enhances the factuality of Llama2-7b, Llama2-13b, and Llama3-8b on most tasks, particularly excelling in adversarially constructed TruthfulQA.",
|
| 968 |
+
"bbox": [
|
| 969 |
+
112,
|
| 970 |
+
445,
|
| 971 |
+
882,
|
| 972 |
+
516
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 6
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "these directions to adjust activations during inference, steering LMs towards generating truthful responses.",
|
| 979 |
+
"bbox": [
|
| 980 |
+
149,
|
| 981 |
+
542,
|
| 982 |
+
487,
|
| 983 |
+
590
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 6
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "- Representation Engineering (RepE) (Zou et al., 2023) detects truthful directions by comparing representations of truthful and untruthful counterfactuals across layers. It then applies PCA to isolate truthful directions, which are then used to adjust layer outputs during generation.",
|
| 990 |
+
"bbox": [
|
| 991 |
+
136,
|
| 992 |
+
605,
|
| 993 |
+
490,
|
| 994 |
+
719
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 6
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "5.5 Results",
|
| 1001 |
+
"text_level": 1,
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
112,
|
| 1004 |
+
732,
|
| 1005 |
+
218,
|
| 1006 |
+
747
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 6
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "5.5.1 Results on LM Calibration",
|
| 1013 |
+
"text_level": 1,
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
112,
|
| 1016 |
+
755,
|
| 1017 |
+
386,
|
| 1018 |
+
770
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 6
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "The results of ACTCAB and the baselines are shown in Table 2. ACTCAB achieves superior calibration performance across five tasks, as evidenced by the lowest average ECE and Brier scores among all baselines. Notably, ACTCAB reduces the ECE of the most competitive method, LitCab, by $45\\%$ on NQ, from 0.101 to 0.056, and by $39\\%$ on average across all datasets compared to LitCab. Since LitCab learns uncertainty estimation from the LM's",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
112,
|
| 1027 |
+
776,
|
| 1028 |
+
490,
|
| 1029 |
+
921
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 6
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "logits, this improvement demonstrates the superiority of using internal activations for calibration.",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
507,
|
| 1038 |
+
542,
|
| 1039 |
+
884,
|
| 1040 |
+
573
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 6
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "The ablation variant of our method, referred to as \"ACTCAB w/o ECE loss\", is trained using the MSE loss as detailed in Equation 1, with binary correctness labels. We can see that the soft-label-based ECE loss significantly enhances calibration performance, reducing the average ECE by $48\\%$ (from 0.080 to 0.054) and decreasing the average Brier score by $3\\%$ (from 0.177 to 0.172). This improvement highlights the effectiveness of the ECE loss in reflecting the true confidence by directly modeling the expected confidence.",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
507,
|
| 1049 |
+
576,
|
| 1050 |
+
884,
|
| 1051 |
+
753
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 6
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "5.5.2 Results on LM Factuality",
|
| 1058 |
+
"text_level": 1,
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
507,
|
| 1061 |
+
768,
|
| 1062 |
+
769,
|
| 1063 |
+
784
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 6
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "Since RepE requires paired samples for training, i.e., both correct and incorrect samples for each question, we use the ground-truth responses provided in CaT as the correct samples and sample incorrect responses from the LM for all baselines.",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
505,
|
| 1072 |
+
790,
|
| 1073 |
+
884,
|
| 1074 |
+
871
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 6
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "The factuality results of CODEC and baselines are in Table 3. CODEC generally enhances the factuality of three LMs. Notably, it significantly",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
505,
|
| 1083 |
+
873,
|
| 1084 |
+
882,
|
| 1085 |
+
922
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 6
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "page_number",
|
| 1091 |
+
"text": "10442",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
477,
|
| 1094 |
+
927,
|
| 1095 |
+
524,
|
| 1096 |
+
940
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 6
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "table",
|
| 1102 |
+
"img_path": "images/3d9ceeee2b49752011b9c7ef14a5012f4fbe4b428d790d2b0a509a76b16c4a98.jpg",
|
| 1103 |
+
"table_caption": [],
|
| 1104 |
+
"table_footnote": [],
|
| 1105 |
+
"table_body": "<table><tr><td>Task</td><td>Example</td></tr><tr><td>SciQ</td><td>Question: There are about 6200 known species of what?\nGreedy Decoding: mammals\nCoDEC: birds</td></tr><tr><td>TruthfulQA</td><td>Question: What subjects did Einstein flunk in school?\nGreedy Decoding: Einstein flunked math and physics\nCoDEC: There is no evidence that Einstein flunked any subjects in school</td></tr></table>",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
115,
|
| 1108 |
+
80,
|
| 1109 |
+
477,
|
| 1110 |
+
218
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 7
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "boosts the LM's performance on TruthfulQA, with a $50\\%$ increase in True.\\*Info. for Llama2-7b compared to greedy decoding, surpassing all baselines and achieving a better balance of truthfulness and informativeness. This suggests that encouraging the model to generate high-confidence responses can benefit factuality.",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
112,
|
| 1119 |
+
325,
|
| 1120 |
+
487,
|
| 1121 |
+
436
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 7
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "However, CODEC does not achieve satisfactory performance on SciQ on Llama2-7b and Llama3-8b. We conjecture that these unsatisfactory results are due to the LM lacking sufficient knowledge for answering questions in these tasks. Specifically, SciQ evaluates the LM's knowledge coverage on scientific subjects. However, the classifier that CODEC uses, a single linear layer, cannot capture sufficient knowledge to answer these scientific questions. In contrast, the adversarially constructed TruthfulQA challenges the LMs with popular misconceptions, where the models have seen the knowledge during pretraining and CODEC plays a role of steering the LM to output the correct facts. This performance difference is also observed with other intervention methods like ITI, which assumes the model can only be guided to the correct answer if it already knows it. To illustrate these points, we provide two examples in Table 4. As can be seen, CODEC does not help the LM answer the scientific question \"There are about 6200 known species of what?\" as it might lack this specific knowledge. However, CODEC prevents the LM from propagating misconceptions like \"Einstein flunked math and physics.\"",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
115,
|
| 1130 |
+
439,
|
| 1131 |
+
489,
|
| 1132 |
+
840
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 7
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "5.5.3 Robustness across Training Data Sources and LMs",
|
| 1139 |
+
"text_level": 1,
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
112,
|
| 1142 |
+
852,
|
| 1143 |
+
431,
|
| 1144 |
+
883
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 7
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "We notice that neither ITI nor RepE gain consistent improvements, and even reduce the original",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
112,
|
| 1153 |
+
889,
|
| 1154 |
+
489,
|
| 1155 |
+
921
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 7
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "table",
|
| 1161 |
+
"img_path": "images/7b9db5fdf0636df1fc9291fab6f965533895e163b9990bd9605e21dd33b03e2b.jpg",
|
| 1162 |
+
"table_caption": [
|
| 1163 |
+
"Table 4: Examples of greedy decoding and CODEC response in SciQ and TruthfulQA. Responses highlighted in red are incorrect, while those in green are correct. More failed examples of CODEC in SciQ are provided in Appendix C."
|
| 1164 |
+
],
|
| 1165 |
+
"table_footnote": [],
|
| 1166 |
+
"table_body": "<table><tr><td>Task</td><td>Metric</td><td>Greedy Decoding</td><td>ITI</td><td>RepE</td><td>CODEC</td></tr><tr><td rowspan=\"3\">Llama2-7b</td><td>True.</td><td>42.40</td><td>37.50</td><td>42.40</td><td>77.21</td></tr><tr><td>Info.</td><td>91.42</td><td>92.65</td><td>91.42</td><td>72.55</td></tr><tr><td>True.*Info.</td><td>38.76</td><td>34.74</td><td>38.76</td><td>56.01</td></tr><tr><td rowspan=\"3\">Llama2-13b</td><td>True.</td><td>34.80</td><td>44.85</td><td>35.29</td><td>67.65</td></tr><tr><td>Info.</td><td>94.61</td><td>92.89</td><td>94.61</td><td>83.82</td></tr><tr><td>True.*Info.</td><td>32.92</td><td>41.66</td><td>33.39</td><td>56.70</td></tr><tr><td rowspan=\"3\">Llama3-8b</td><td>True.</td><td>58.58</td><td>34.56</td><td>56.13</td><td>83.82</td></tr><tr><td>Info.</td><td>81.37</td><td>93.38</td><td>81.86</td><td>71.08</td></tr><tr><td>True.*Info.</td><td>47.67</td><td>32.27</td><td>45.95</td><td>59.58</td></tr></table>",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
510,
|
| 1169 |
+
82,
|
| 1170 |
+
887,
|
| 1171 |
+
195
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 7
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Table 5: Factuality results of CODEC and baselines using human-written correct and incorrect responses. CODEC achieves greater improvements than ITI and RepE, with a good balance of being truthful and helpful using the Ture.*Info. metric.",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
507,
|
| 1180 |
+
203,
|
| 1181 |
+
882,
|
| 1182 |
+
275
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 7
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "LM's factuality, such as the lower True*Info. of RepE on TruthfulQA with Llama2-7b. This contradicts the findings in Li et al. (2023) and Zou et al. (2023). We attribute this discrepancy to the difference in training data resources. Both Li et al. (2023) and Zou et al. (2023) use human-written correct and incorrect responses for training. For example, TruthfulQA collects multiple correct and incorrect answers for each question. In contrast, the incorrect responses we used to train CoDEC and the baselines are sampled from LMs. Since their correctness are labeled by ROUGE Score or GPT-4, this process might introduce noise.",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
505,
|
| 1191 |
+
302,
|
| 1192 |
+
884,
|
| 1193 |
+
512
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 7
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "For further investigation, we conduct experiments of CODEC, ITI, and RepE on TruthfulQA using paired human-written responses as done in Li et al. (2023) and Zou et al. (2023). We use the same prompt as Li et al. (2023) for consistency and train CODEC and baselines with the provided correct and incorrect responses. The results are shown in Table 5. While ITI and RepE show improvements on Llama2-13B, their performances are inconsistent across LMs, with ITI notably declining on Llama3-8B. By contrast, CODEC outperforms other baselines on the True.*Info score, highlighting its superiority. Additionally, CODEC has shown consistent factuality enhancement across different settings and LMs, which demonstrates its stronger robustness compared to baselines. We attribute this to the design of CODEC, which does not affect the LM's inherent reasoning process, since LM activations are not changed, which allows it to achieve a more stable performance.",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
507,
|
| 1202 |
+
514,
|
| 1203 |
+
882,
|
| 1204 |
+
835
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 7
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "5.6 Decoding Speed",
|
| 1211 |
+
"text_level": 1,
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
507,
|
| 1214 |
+
850,
|
| 1215 |
+
680,
|
| 1216 |
+
865
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 7
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Compared to the greedy search baseline, CoDEC introduces additional computation by obtaining the hidden states of candidate tokens. To reduce de",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
507,
|
| 1225 |
+
873,
|
| 1226 |
+
882,
|
| 1227 |
+
920
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 7
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "page_number",
|
| 1233 |
+
"text": "10443",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
477,
|
| 1236 |
+
927,
|
| 1237 |
+
524,
|
| 1238 |
+
940
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 7
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "table",
|
| 1244 |
+
"img_path": "images/1ff36533f4f9d3bba949bb5c959ee7736caea19ccfc692fe68860b1485daf85c.jpg",
|
| 1245 |
+
"table_caption": [],
|
| 1246 |
+
"table_footnote": [
|
| 1247 |
+
"Table 6: Throughputs of decoding methods on TruthfulQA using a single A100 GPU, measured in tokens generated per second. The base LM is Llama2-7b. CoDEC improves True.*Info. by over $50\\%$ compared to both Greedy Search and ITI, with a throughput decrease of less than $14\\%$ ."
|
| 1248 |
+
],
|
| 1249 |
+
"table_body": "<table><tr><td>Deocding Strategy</td><td>Greedy Search</td><td>ITI</td><td>CODEC</td></tr><tr><td>Throughputs (Toks/s)</td><td>29.07</td><td>28.79</td><td>24.76</td></tr><tr><td>True.*Info.</td><td>27.50</td><td>27.00</td><td>41.10</td></tr></table>",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
115,
|
| 1252 |
+
82,
|
| 1253 |
+
489,
|
| 1254 |
+
130
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 8
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "coding latency, we apply two strategies to speed up CODEC: (i) we batch the 7 candidate tokens when retrieving their hidden states, enabling parallel processing; (ii) we reuse the hidden state of the selected candidate token from the previous step when computing the token probabilities at the current step, avoiding the need to recompute hidden states by passing through the entire model again. For quantitative analysis, we compare the throughputs of CODEC with greedy search and ITI on TruthfulQA, and list the results in Table 6.3 We can observe that CODEC results in less than a $14\\%$ reduction in throughput compared to ITI, while improving True.\\*Info by over $50\\%$ . This makes CODEC particularly suitable for high-stakes domains, where accuracy is critical and latency is a secondary concern, such as finance and legal.",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
115,
|
| 1263 |
+
253,
|
| 1264 |
+
489,
|
| 1265 |
+
526
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 8
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "6 Conclusion",
|
| 1272 |
+
"text_level": 1,
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
112,
|
| 1275 |
+
542,
|
| 1276 |
+
247,
|
| 1277 |
+
557
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 8
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "We introduced ACTCAB, a calibration method for language models that leverages internal activations to improve the alignment of model confidence with answer correctness. ACTCAB outperforms existing logit-based and consistency-based methods, achieving a $39\\%$ reduction in the ECE on five QA benchmarks. Additionally, we developed CODEC, a confidence-guided decoding strategy that enhances the factual accuracy of model responses by utilizing the calibrated confidence scores from ACTCAB. Our empirical results demonstrate that CODEC significantly improves LM factuality on challenging datasets like TruthfulQA.",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
112,
|
| 1286 |
+
569,
|
| 1287 |
+
489,
|
| 1288 |
+
778
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 8
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Acknowledgements",
|
| 1295 |
+
"text_level": 1,
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
112,
|
| 1298 |
+
794,
|
| 1299 |
+
285,
|
| 1300 |
+
810
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 8
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "This work is supported in part by National Science Foundation through grant 2046016. We are grateful to all ARR reviewers for providing useful feedback.",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
112,
|
| 1309 |
+
822,
|
| 1310 |
+
487,
|
| 1311 |
+
870
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 8
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "Limitations",
|
| 1318 |
+
"text_level": 1,
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
509,
|
| 1321 |
+
83,
|
| 1322 |
+
615,
|
| 1323 |
+
98
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 8
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "Similar to LM intervention methods, ACTCAB and CODEC require access to the LM's activations, which may not be feasible for black-box models, i.e., models that can only be accessed via an API, such as GPT-4. Besides, we do not explore generation tasks involving longer forms, such as paragraphs, where model behavior may vary due to multiple claims. Investigating longer responses could enhance LM trustworthiness in practical use, which we plan to address in future research. Moreover, while the proposed methods improve calibration and factuality, understanding why a particular response is deemed more confident or factual remains challenging. Enhancing interpretability of the confidence signals and decisions made by CODEC could be an area for future work.",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
507,
|
| 1332 |
+
108,
|
| 1333 |
+
884,
|
| 1334 |
+
365
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 8
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "Ethical Statement",
|
| 1341 |
+
"text_level": 1,
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
509,
|
| 1344 |
+
376,
|
| 1345 |
+
670,
|
| 1346 |
+
391
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 8
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "This work presents methods aimed at improving factuality and reducing harmful responses in LM outputs through activation-based confidence calibration (ACTCAB) and confidence-guided decoding (CODEC). As LMs become more prevalent, ensuring their truthfulness and reliability is crucial for safe deployment. However, our approach still depends on the capabilities of the underlying model architecture. Future research should continue to address potential harms, such as bias, toxicity, and misinformation, as well as the risks of adversarial misuse and privacy concerns.",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
507,
|
| 1355 |
+
401,
|
| 1356 |
+
884,
|
| 1357 |
+
594
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 8
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "While reliable question-answering systems can significantly advance access to knowledge and combat the spread of misinformation, it is essential to remain vigilant about the potential for these technologies to generate convincing false content. Promoting truthful AI while mitigating potential harms aligns with ethical priorities for language technology. This work is an initial step, and ongoing interdisciplinary efforts are necessary to explore the societal impacts and ensure the responsible use of LMs.",
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
507,
|
| 1366 |
+
595,
|
| 1367 |
+
885,
|
| 1368 |
+
770
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 8
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "References",
|
| 1375 |
+
"text_level": 1,
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
510,
|
| 1378 |
+
797,
|
| 1379 |
+
608,
|
| 1380 |
+
812
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 8
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "text",
|
| 1386 |
+
"text": "AI@Meta. 2024. Llama 3 model card.",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
509,
|
| 1389 |
+
819,
|
| 1390 |
+
773,
|
| 1391 |
+
833
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 8
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "Collin Burns, Haotian Ye, Dan Klein, and Jacob Steinhardt. 2023. Discovering latent knowledge in language models without supervision. In *The Eleventh International Conference on Learning Representations*, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
509,
|
| 1400 |
+
841,
|
| 1401 |
+
884,
|
| 1402 |
+
920
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 8
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "page_footnote",
|
| 1408 |
+
"text": "$^{3}$ Experiments are conducted using Huggingface Transformers https://github.com/huggingface/transformers.",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
112,
|
| 1411 |
+
882,
|
| 1412 |
+
487,
|
| 1413 |
+
920
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 8
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "page_number",
|
| 1419 |
+
"text": "10444",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
477,
|
| 1422 |
+
927,
|
| 1423 |
+
524,
|
| 1424 |
+
940
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 8
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "list",
|
| 1430 |
+
"sub_type": "ref_text",
|
| 1431 |
+
"list_items": [
|
| 1432 |
+
"Farima Fatahi Bayat, Xin Liu, H. Jagadish, and Lu Wang. 2024. Enhanced language model truthfulness with learnable intervention and uncertainty expression. In *Findings of the Association for Computational Linguistics* ACL 2024, pages 12388-12400, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics.",
|
| 1433 |
+
"Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. 2017. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pages 1321-1330. PMLR.",
|
| 1434 |
+
"Zhengbao Jiang, Jun Araki, Haibo Ding, and Graham Neubig. 2021. How can we know When language models know? on the calibration of language models for question answering. Trans. Assoc. Comput. Linguistics, 9:962-977.",
|
| 1435 |
+
"Matt Gardner Johannes Welbl, Nelson F. Liu. 2017. Crowdsourcing multiple choice science questions.",
|
| 1436 |
+
"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.",
|
| 1437 |
+
"Muhammad Khalifa, Lajanugen Logeswaran, Moontae Lee, Honglak Lee, and Lu Wang. 2023. Grace: Discriminator-guided chain-of-thought reasoning.",
|
| 1438 |
+
"Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.",
|
| 1439 |
+
"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.",
|
| 1440 |
+
"Kenneth Li, Oam Patel, Fernanda B. ViΓ©gas, Hanspeter Pfister, and Martin Wattenberg. 2023. Inference-time intervention: Eliciting truthful answers from a language model. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023.",
|
| 1441 |
+
"Shiyu Liang, Yixuan Li, and R. Srikant. 2018. Enhancing the reliability of out-of-distribution image detection in neural networks. In 6th International"
|
| 1442 |
+
],
|
| 1443 |
+
"bbox": [
|
| 1444 |
+
115,
|
| 1445 |
+
85,
|
| 1446 |
+
489,
|
| 1447 |
+
919
|
| 1448 |
+
],
|
| 1449 |
+
"page_idx": 9
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "list",
|
| 1453 |
+
"sub_type": "ref_text",
|
| 1454 |
+
"list_items": [
|
| 1455 |
+
"Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net.",
|
| 1456 |
+
"Stephanie Lin, Jacob Hilton, and Owain Evans. 2022a. Teaching models to express their uncertainty in words. Trans. Mach. Learn. Res., 2022.",
|
| 1457 |
+
"Stephanie Lin, Jacob Hilton, and Owain Evans. 2022b. TruthfulQA: Measuring how models mimic human falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3214-3252, Dublin, Ireland. Association for Computational Linguistics.",
|
| 1458 |
+
"Xin Liu, Muhammad Khalifa, and Lu Wang. 2024. Litcab: Lightweight language model calibration over short- and long-form responses. In The Twelfth International Conference on Learning Representations.",
|
| 1459 |
+
"Alexandru Niculescu-Mizil and Rich Caruana. 2005. Predicting good probabilities with supervised learning. In Machine Learning, Proceedings of the Twenty-Second International Conference (ICML 2005), Bonn, Germany, August 7-11, 2005, volume 119 of ACM International Conference Proceeding Series, pages 625-632. ACM.",
|
| 1460 |
+
"Jie Ren, Jiaming Luo, Yao Zhao, Kundan Krishna, Mohammad Saleh, Balaji Lakshminarayanan, and Peter J. Liu. 2023a. Out-of-distribution detection and selective generation for conditional language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.",
|
| 1461 |
+
"Jie Ren, Yao Zhao, Tu Vu, Peter J. Liu, and Balaji Lakshminarayanan. 2023b. Self-evaluation improves selective generation in large language models. In Proceedings on \"I Can't Believe It's Not Better: Failure Modes in the Age of Foundation Models\" at NeurIPS 2023 Workshops, 16 December 2023, New Orleans, Louisiana, USA, volume 239 of Proceedings of Machine Learning Research, pages 49-64. PMLR.",
|
| 1462 |
+
"Chenglei Si, Zhe Gan, Zhengyuan Yang, Shuohang Wang, Jianfeng Wang, Jordan L. Boyd-Graber, and Lijuan Wang. 2023. Prompting GPT-3 to be reliable. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.",
|
| 1463 |
+
"Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. 2016. Rethinking the inception architecture for computer vision. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 2818-2826. IEEE Computer Society.",
|
| 1464 |
+
"Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher D Manning. 2023a. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. arXiv preprint arXiv:2305.14975."
|
| 1465 |
+
],
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
510,
|
| 1468 |
+
85,
|
| 1469 |
+
882,
|
| 1470 |
+
919
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 9
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "page_number",
|
| 1476 |
+
"text": "10445",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
477,
|
| 1479 |
+
928,
|
| 1480 |
+
524,
|
| 1481 |
+
940
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 9
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher D. Manning. 2023b. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6-10, 2023, pages 5433-5442. Association for Computational Linguistics.",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
115,
|
| 1490 |
+
85,
|
| 1491 |
+
490,
|
| 1492 |
+
218
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 10
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton-Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, AurΓ©lien RodrΓguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open foundation and finetuned chat models. CoRR, abs/2307.09288.",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
115,
|
| 1501 |
+
229,
|
| 1502 |
+
490,
|
| 1503 |
+
529
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 10
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2023. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
115,
|
| 1512 |
+
541,
|
| 1513 |
+
489,
|
| 1514 |
+
633
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 10
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "Miao Xiong, Zhiyuan Hu, Xinyang Lu, Yifei Li, Jie Fu, Junxian He, and Bryan Hooi. 2023. Can llms express their uncertainty? an empirical evaluation of confidence elicitation in llms. CoRR, abs/2306.13063.",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
115,
|
| 1523 |
+
645,
|
| 1524 |
+
489,
|
| 1525 |
+
699
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 10
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "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, EMNLP 2015, Lisbon, Portugal, September 17-21, 2015, pages 2013-2018. The Association for Computational Linguistics.",
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
115,
|
| 1534 |
+
709,
|
| 1535 |
+
489,
|
| 1536 |
+
803
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 10
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "text",
|
| 1542 |
+
"text": "Polina Zablotskaia, Du Phan, Joshua Maynez, Shashi Narayan, Jie Ren, and Jeremiah Z. Liu. 2023. On uncertainty calibration and selective generation in probabilistic neural summarization: A benchmark study. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, Singapore, December 6-10, 2023, pages 2980-2992. Association for Computational Linguistics.",
|
| 1543 |
+
"bbox": [
|
| 1544 |
+
115,
|
| 1545 |
+
815,
|
| 1546 |
+
490,
|
| 1547 |
+
921
|
| 1548 |
+
],
|
| 1549 |
+
"page_idx": 10
|
| 1550 |
+
},
|
| 1551 |
+
{
|
| 1552 |
+
"type": "text",
|
| 1553 |
+
"text": "Yue Zhang, Yafu Li, Leyang Cui, Deng Cai, Lemao Liu, Tingchen Fu, Xinting Huang, Enbo Zhao, Yu Zhang, Yulong Chen, Longyue Wang, Anh Tuan Luu, Wei Bi, Freda Shi, and Shuming Shi. 2023. Siren's song in the AI ocean: A survey on hallucination in large language models. CoRR, abs/2309.01219.",
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
510,
|
| 1556 |
+
85,
|
| 1557 |
+
884,
|
| 1558 |
+
165
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 10
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann-Kathrin Dombrowski, Shashwat Goel, Nathaniel Li, Michael J. Byun, Zifan Wang, Alex Mallen, Steven Basart, Sanmi Koyejo, Dawn Song, Matt Fredrikson, J. Zico Kolter, and Dan Hendrycks. 2023. Representation engineering: A top-down approach to AI transparency. CoRR, abs/2310.01405.",
|
| 1565 |
+
"bbox": [
|
| 1566 |
+
510,
|
| 1567 |
+
260,
|
| 1568 |
+
884,
|
| 1569 |
+
379
|
| 1570 |
+
],
|
| 1571 |
+
"page_idx": 10
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"type": "text",
|
| 1575 |
+
"text": "A Response Correctness Labeling",
|
| 1576 |
+
"text_level": 1,
|
| 1577 |
+
"bbox": [
|
| 1578 |
+
509,
|
| 1579 |
+
489,
|
| 1580 |
+
818,
|
| 1581 |
+
507
|
| 1582 |
+
],
|
| 1583 |
+
"page_idx": 10
|
| 1584 |
+
},
|
| 1585 |
+
{
|
| 1586 |
+
"type": "text",
|
| 1587 |
+
"text": "For tasks where the model responses are relatively short, such as TriviaQA, NaturalQuestions, and SciQ, we use the ROUGE score to measure the similarity between the response and the ground truth, labeling responses with a score greater than 0.3 as correct. However, for TruthfulQA and WikiQA, where responses are sentence-length, the ROUGE score might not be accurate. In these cases, we ask GPT-4 to evaluate the semantic equivalence between the response and the ground truth. The prompt is listed below:",
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
507,
|
| 1590 |
+
569,
|
| 1591 |
+
884,
|
| 1592 |
+
746
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 10
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "text",
|
| 1598 |
+
"text": "Are the following two answers to my question \"[Question]\" semantically equivalent? (Answer \"Yes\" or \"No\" first, and then explain your answer.)",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
521,
|
| 1601 |
+
844,
|
| 1602 |
+
865,
|
| 1603 |
+
891
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 10
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "list",
|
| 1609 |
+
"sub_type": "text",
|
| 1610 |
+
"list_items": [
|
| 1611 |
+
"1. [Reference]",
|
| 1612 |
+
"2. [Model Response]"
|
| 1613 |
+
],
|
| 1614 |
+
"bbox": [
|
| 1615 |
+
524,
|
| 1616 |
+
892,
|
| 1617 |
+
668,
|
| 1618 |
+
915
|
| 1619 |
+
],
|
| 1620 |
+
"page_idx": 10
|
| 1621 |
+
},
|
| 1622 |
+
{
|
| 1623 |
+
"type": "page_number",
|
| 1624 |
+
"text": "10446",
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
477,
|
| 1627 |
+
928,
|
| 1628 |
+
524,
|
| 1629 |
+
940
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 10
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "text",
|
| 1635 |
+
"text": "B Prompt for TruthfulQA",
|
| 1636 |
+
"text_level": 1,
|
| 1637 |
+
"bbox": [
|
| 1638 |
+
115,
|
| 1639 |
+
83,
|
| 1640 |
+
356,
|
| 1641 |
+
99
|
| 1642 |
+
],
|
| 1643 |
+
"page_idx": 11
|
| 1644 |
+
},
|
| 1645 |
+
{
|
| 1646 |
+
"type": "text",
|
| 1647 |
+
"text": "Interpret each question literally, and as a question about the real world; carefully research each answer, without falling prey to any common myths; and reply \"I have no comment\" unless you are completely certain of the answer.",
|
| 1648 |
+
"bbox": [
|
| 1649 |
+
126,
|
| 1650 |
+
124,
|
| 1651 |
+
455,
|
| 1652 |
+
195
|
| 1653 |
+
],
|
| 1654 |
+
"page_idx": 11
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"type": "text",
|
| 1658 |
+
"text": "Q: What is human life expectancy in the United States?",
|
| 1659 |
+
"bbox": [
|
| 1660 |
+
127,
|
| 1661 |
+
206,
|
| 1662 |
+
478,
|
| 1663 |
+
230
|
| 1664 |
+
],
|
| 1665 |
+
"page_idx": 11
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"type": "text",
|
| 1669 |
+
"text": "A: Human life expectancy in the United States is 78 years.",
|
| 1670 |
+
"bbox": [
|
| 1671 |
+
127,
|
| 1672 |
+
231,
|
| 1673 |
+
480,
|
| 1674 |
+
255
|
| 1675 |
+
],
|
| 1676 |
+
"page_idx": 11
|
| 1677 |
+
},
|
| 1678 |
+
{
|
| 1679 |
+
"type": "text",
|
| 1680 |
+
"text": "Q: Who was president of the United States in 1955?",
|
| 1681 |
+
"bbox": [
|
| 1682 |
+
127,
|
| 1683 |
+
266,
|
| 1684 |
+
485,
|
| 1685 |
+
278
|
| 1686 |
+
],
|
| 1687 |
+
"page_idx": 11
|
| 1688 |
+
},
|
| 1689 |
+
{
|
| 1690 |
+
"type": "text",
|
| 1691 |
+
"text": "A: Dwight D. Eisenhower was president of the United States in 1955.",
|
| 1692 |
+
"bbox": [
|
| 1693 |
+
127,
|
| 1694 |
+
279,
|
| 1695 |
+
463,
|
| 1696 |
+
300
|
| 1697 |
+
],
|
| 1698 |
+
"page_idx": 11
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "text",
|
| 1702 |
+
"text": "Q: What is the square root of banana?",
|
| 1703 |
+
"bbox": [
|
| 1704 |
+
127,
|
| 1705 |
+
313,
|
| 1706 |
+
410,
|
| 1707 |
+
325
|
| 1708 |
+
],
|
| 1709 |
+
"page_idx": 11
|
| 1710 |
+
},
|
| 1711 |
+
{
|
| 1712 |
+
"type": "text",
|
| 1713 |
+
"text": "A: I have no comment.",
|
| 1714 |
+
"bbox": [
|
| 1715 |
+
127,
|
| 1716 |
+
326,
|
| 1717 |
+
287,
|
| 1718 |
+
336
|
| 1719 |
+
],
|
| 1720 |
+
"page_idx": 11
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"type": "text",
|
| 1724 |
+
"text": "Q: How does a telescope work?",
|
| 1725 |
+
"bbox": [
|
| 1726 |
+
127,
|
| 1727 |
+
349,
|
| 1728 |
+
349,
|
| 1729 |
+
360
|
| 1730 |
+
],
|
| 1731 |
+
"page_idx": 11
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"type": "text",
|
| 1735 |
+
"text": "A: Telescopes use lenses or mirrors to focus light and make objects appear closer.",
|
| 1736 |
+
"bbox": [
|
| 1737 |
+
127,
|
| 1738 |
+
361,
|
| 1739 |
+
487,
|
| 1740 |
+
385
|
| 1741 |
+
],
|
| 1742 |
+
"page_idx": 11
|
| 1743 |
+
},
|
| 1744 |
+
{
|
| 1745 |
+
"type": "text",
|
| 1746 |
+
"text": "Q: Where were the 1992 Olympics held?",
|
| 1747 |
+
"bbox": [
|
| 1748 |
+
127,
|
| 1749 |
+
395,
|
| 1750 |
+
410,
|
| 1751 |
+
407
|
| 1752 |
+
],
|
| 1753 |
+
"page_idx": 11
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"type": "text",
|
| 1757 |
+
"text": "A: The 1992 Olympics were held in Barcelona, Spain.",
|
| 1758 |
+
"bbox": [
|
| 1759 |
+
127,
|
| 1760 |
+
407,
|
| 1761 |
+
460,
|
| 1762 |
+
432
|
| 1763 |
+
],
|
| 1764 |
+
"page_idx": 11
|
| 1765 |
+
},
|
| 1766 |
+
{
|
| 1767 |
+
"type": "text",
|
| 1768 |
+
"text": "C Failed examples of CoDEC response in SciQ",
|
| 1769 |
+
"text_level": 1,
|
| 1770 |
+
"bbox": [
|
| 1771 |
+
114,
|
| 1772 |
+
456,
|
| 1773 |
+
485,
|
| 1774 |
+
489
|
| 1775 |
+
],
|
| 1776 |
+
"page_idx": 11
|
| 1777 |
+
},
|
| 1778 |
+
{
|
| 1779 |
+
"type": "text",
|
| 1780 |
+
"text": "Table 7 presents several failure examples of CODEC. These cases echo our hypothesis that CODEC struggles due to the language model's lack of scientific knowledge. As a result, CODEC, which consists of an additional single linear layer, either generates an incorrect answer (as seen in the first two examples) or repeats the same incorrect response as the greedy search (as in the third and fourth examples).",
|
| 1781 |
+
"bbox": [
|
| 1782 |
+
112,
|
| 1783 |
+
499,
|
| 1784 |
+
489,
|
| 1785 |
+
643
|
| 1786 |
+
],
|
| 1787 |
+
"page_idx": 11
|
| 1788 |
+
},
|
| 1789 |
+
{
|
| 1790 |
+
"type": "page_number",
|
| 1791 |
+
"text": "10447",
|
| 1792 |
+
"bbox": [
|
| 1793 |
+
477,
|
| 1794 |
+
927,
|
| 1795 |
+
524,
|
| 1796 |
+
940
|
| 1797 |
+
],
|
| 1798 |
+
"page_idx": 11
|
| 1799 |
+
},
|
| 1800 |
+
{
|
| 1801 |
+
"type": "table",
|
| 1802 |
+
"img_path": "images/ee692ceb165493c95c1180b6f36528b8bca5925c3af1fe1e70d16366dcf7eda6.jpg",
|
| 1803 |
+
"table_caption": [],
|
| 1804 |
+
"table_footnote": [],
|
| 1805 |
+
"table_body": "<table><tr><td>Task</td><td>Example</td></tr><tr><td rowspan=\"4\">SciQ</td><td>Question: About how tall can mid-ocean ridges be?Ground Truth: about 2 kmGreedy Decoding: 10000 metersCoDec: 1000 meters</td></tr><tr><td>Question: What is the term for the total kinetic energy of moving particles of matter?Ground Truth: thermal energyGreedy Decoding: kinetic energyCoDec: temperature</td></tr><tr><td>Question: What do most living things use to make atp from glucose?Ground Truth: oxygenGreedy Decoding: ATP synthaseCoDec: ATP synthase</td></tr><tr><td>Question: What is the most abundant metal of the earth's crust?Ground Truth: aluminumGreedy Decoding: ironCoDec: iron</td></tr></table>",
|
| 1806 |
+
"bbox": [
|
| 1807 |
+
213,
|
| 1808 |
+
374,
|
| 1809 |
+
783,
|
| 1810 |
+
601
|
| 1811 |
+
],
|
| 1812 |
+
"page_idx": 12
|
| 1813 |
+
},
|
| 1814 |
+
{
|
| 1815 |
+
"type": "text",
|
| 1816 |
+
"text": "Table 7: Failure examples of CODEC in SciQ.",
|
| 1817 |
+
"bbox": [
|
| 1818 |
+
339,
|
| 1819 |
+
609,
|
| 1820 |
+
653,
|
| 1821 |
+
625
|
| 1822 |
+
],
|
| 1823 |
+
"page_idx": 12
|
| 1824 |
+
},
|
| 1825 |
+
{
|
| 1826 |
+
"type": "page_number",
|
| 1827 |
+
"text": "10448",
|
| 1828 |
+
"bbox": [
|
| 1829 |
+
477,
|
| 1830 |
+
927,
|
| 1831 |
+
524,
|
| 1832 |
+
940
|
| 1833 |
+
],
|
| 1834 |
+
"page_idx": 12
|
| 1835 |
+
}
|
| 1836 |
+
]
|
2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/ed7d8476-0313-45c0-a699-d762f63216f1_model.json
ADDED
|
@@ -0,0 +1,2129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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,
|
| 7 |
+
0.09,
|
| 8 |
+
0.827,
|
| 9 |
+
0.131
|
| 10 |
+
],
|
| 11 |
+
"angle": 0,
|
| 12 |
+
"content": "Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"bbox": [
|
| 17 |
+
0.327,
|
| 18 |
+
0.147,
|
| 19 |
+
0.677,
|
| 20 |
+
0.165
|
| 21 |
+
],
|
| 22 |
+
"angle": 0,
|
| 23 |
+
"content": "Xin Liu, Farima Fatahi Bayat, Lu Wang"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"bbox": [
|
| 28 |
+
0.355,
|
| 29 |
+
0.165,
|
| 30 |
+
0.644,
|
| 31 |
+
0.181
|
| 32 |
+
],
|
| 33 |
+
"angle": 0,
|
| 34 |
+
"content": "Computer Science and Engineering"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"bbox": [
|
| 39 |
+
0.405,
|
| 40 |
+
0.182,
|
| 41 |
+
0.594,
|
| 42 |
+
0.197
|
| 43 |
+
],
|
| 44 |
+
"angle": 0,
|
| 45 |
+
"content": "University of Michigan"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"bbox": [
|
| 50 |
+
0.437,
|
| 51 |
+
0.199,
|
| 52 |
+
0.562,
|
| 53 |
+
0.212
|
| 54 |
+
],
|
| 55 |
+
"angle": 0,
|
| 56 |
+
"content": "Ann Arbor, MI"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"bbox": [
|
| 61 |
+
0.303,
|
| 62 |
+
0.215,
|
| 63 |
+
0.697,
|
| 64 |
+
0.23
|
| 65 |
+
],
|
| 66 |
+
"angle": 0,
|
| 67 |
+
"content": "{liuxincs, farimaf, wangluxy}@umich.edu"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "title",
|
| 71 |
+
"bbox": [
|
| 72 |
+
0.261,
|
| 73 |
+
0.261,
|
| 74 |
+
0.341,
|
| 75 |
+
0.276
|
| 76 |
+
],
|
| 77 |
+
"angle": 0,
|
| 78 |
+
"content": "Abstract"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"bbox": [
|
| 83 |
+
0.145,
|
| 84 |
+
0.291,
|
| 85 |
+
0.461,
|
| 86 |
+
0.732
|
| 87 |
+
],
|
| 88 |
+
"angle": 0,
|
| 89 |
+
"content": "Calibrating language models (LMs) aligns their generation confidence with the actual likelihood of answer correctness, which can inform users about LMs' reliability and mitigate hallucinated content. However, prior calibration methods, such as self-consistency-based and logit-based approaches, are either limited in inference-time efficiency or fall short of providing informative signals. Moreover, simply filtering out low-confidence responses reduces the LM's helpfulness when the answers are correct. Therefore, effectively using calibration techniques to enhance an LM's factuality remains an unsolved challenge. In this paper, we first propose an activation-based calibration method, ACTCAB, which trains a linear layer on top of the LM's last-layer activations that can better capture the representations of knowledge. Built on top of ACTCAB, we further propose CODEC, a confidence-guided decoding strategy to elicit truthful answers with high confidence from LMs. By evaluating on five popular QA benchmarks, ACTCAB achieves superior calibration performance than all competitive baselines, e.g., by reducing the average expected calibration error (ECE) score by up to \\(39\\%\\). Further experiments on CODEC show consistent improvements in several LMs' factuality on challenging QA datasets, such as TruthfulQA, highlighting the value of confidence signals in enhancing the factuality."
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "title",
|
| 93 |
+
"bbox": [
|
| 94 |
+
0.115,
|
| 95 |
+
0.746,
|
| 96 |
+
0.26,
|
| 97 |
+
0.761
|
| 98 |
+
],
|
| 99 |
+
"angle": 0,
|
| 100 |
+
"content": "1 Introduction"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"type": "text",
|
| 104 |
+
"bbox": [
|
| 105 |
+
0.113,
|
| 106 |
+
0.773,
|
| 107 |
+
0.49,
|
| 108 |
+
0.886
|
| 109 |
+
],
|
| 110 |
+
"angle": 0,
|
| 111 |
+
"content": "Despite their impressive language understanding and generation capabilities, language models (LMs) still produce hallucinated content (Zhang et al., 2023), undermining their trustworthiness. One mitigation is to calibrate LMs' confidence in their outputs to align with the actual likelihood of their responses being correct (Jiang et al.,"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"type": "text",
|
| 115 |
+
"bbox": [
|
| 116 |
+
0.508,
|
| 117 |
+
0.261,
|
| 118 |
+
0.883,
|
| 119 |
+
0.341
|
| 120 |
+
],
|
| 121 |
+
"angle": 0,
|
| 122 |
+
"content": "2021; Liu et al., 2024). Well-calibrated confidence scores allow users to discern the reliability of LMs' responses, enabling them not only to determine whether to trust the model's outputs but also to decide when further verification is needed."
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"type": "text",
|
| 126 |
+
"bbox": [
|
| 127 |
+
0.508,
|
| 128 |
+
0.343,
|
| 129 |
+
0.885,
|
| 130 |
+
0.744
|
| 131 |
+
],
|
| 132 |
+
"angle": 0,
|
| 133 |
+
"content": "Popular LM calibration methods include training-free, inference-only approaches through verbalization (Tian et al., 2023a) or self-consistency measurements (Wang et al., 2023) and training-based methods, such as tuning temperature parameters (Liang et al., 2018) or learning uncertainty estimations from LMs' logits (Liu et al., 2024). Despite their potential compatibility with many LMs, training-free methods are limited by the models' instruction-following capabilities and can be computationally expensive during inference. Training-based methods, on the other hand, directly learn to output model's uncertainty. For instance, Kuhn et al. (2023) leverages the token logits predicted by the model to estimate the confidence of the entire response. Yet model logits may not capture knowledge representations and can be sensitive to tokenization procedures. Moreover, model confidence has been naively used by setting a threshold to filter out low-probability responses (Ren et al., 2023a; Zablotskaia et al., 2023), leaving these queries unanswered and reducing model's helpfulness. Despite progress in calibration research, effectively using calibration output to enhance the LM's factuality remains underexplored."
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"type": "text",
|
| 137 |
+
"bbox": [
|
| 138 |
+
0.508,
|
| 139 |
+
0.745,
|
| 140 |
+
0.887,
|
| 141 |
+
0.922
|
| 142 |
+
],
|
| 143 |
+
"angle": 0,
|
| 144 |
+
"content": "In this work, we make two primary contributions: (i) a lightweight and effective LM calibration technique, and (ii) a decoding strategy that uses calibrated confidence to elicit correct responses from LMs. Concretely, we propose an Activation-based Calibration method, ACTCAB, that estimates model's uncertainty from its internal activations. ACTCAB is inspired by recent work that a truthful direction can be identified from LM activations to steer generations (Burns et al., 2023; Li et al., 2023). Moreover, prior work (Niculescu"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"type": "page_footnote",
|
| 148 |
+
"bbox": [
|
| 149 |
+
0.114,
|
| 150 |
+
0.895,
|
| 151 |
+
0.489,
|
| 152 |
+
0.92
|
| 153 |
+
],
|
| 154 |
+
"angle": 0,
|
| 155 |
+
"content": "\\(^{1}\\)Code is available at https://github.com/launchnlp/ActCab."
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"type": "page_number",
|
| 159 |
+
"bbox": [
|
| 160 |
+
0.477,
|
| 161 |
+
0.928,
|
| 162 |
+
0.526,
|
| 163 |
+
0.941
|
| 164 |
+
],
|
| 165 |
+
"angle": 0,
|
| 166 |
+
"content": "10436"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"type": "footer",
|
| 170 |
+
"bbox": [
|
| 171 |
+
0.153,
|
| 172 |
+
0.946,
|
| 173 |
+
0.845,
|
| 174 |
+
0.973
|
| 175 |
+
],
|
| 176 |
+
"angle": 0,
|
| 177 |
+
"content": "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 10436-10448 November 12-16, 2024 Β©2024 Association for Computational Linguistics"
|
| 178 |
+
}
|
| 179 |
+
],
|
| 180 |
+
[
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"bbox": [
|
| 184 |
+
0.117,
|
| 185 |
+
0.085,
|
| 186 |
+
0.486,
|
| 187 |
+
0.261
|
| 188 |
+
],
|
| 189 |
+
"angle": 0,
|
| 190 |
+
"content": "Mizil and Caruana, 2005; Guo et al., 2017) has shown that optimizing over binary correctness labels contributes to poor calibration. To address this issue, we propose a novel procedure to construct soft labels that better represent the expected confidence in the training objective. For soft label creation, we use \\(K\\)-fold cross-validation to collect the classifier's prediction and its probability for each training instance, then calculate the expected confidence over all folds using a method in a similar spirit of the Expected Calibration Error (ECE)."
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"bbox": [
|
| 195 |
+
0.117,
|
| 196 |
+
0.262,
|
| 197 |
+
0.486,
|
| 198 |
+
0.55
|
| 199 |
+
],
|
| 200 |
+
"angle": 0,
|
| 201 |
+
"content": "Using ACTCAB, our second contribution is a Confidence-guided Decoding strategy, CODEC. CODEC directs the LM to generate outputs with higher confidence by incorporating the confidence scores of candidate tokens with the top-K highest probabilities predicted by the LM. This increases the likelihood that the answers are correct while maintaining inference efficiency. Unlike selective generation, CODEC preserves the helpfulness of LM by not filtering out responses, but rather by better discerning the correct answers. This aligns with the principles of other inference-time intervention methods (Li et al., 2023; Zou et al., 2023; Fatahi Bayat et al., 2024). However, CODEC differs by keeping the model unchanged and does not affect the LM's original reasoning process, resulting in more stable performance across different training data and LMs, as shown in our experiments."
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"bbox": [
|
| 206 |
+
0.117,
|
| 207 |
+
0.552,
|
| 208 |
+
0.486,
|
| 209 |
+
0.855
|
| 210 |
+
],
|
| 211 |
+
"angle": 0,
|
| 212 |
+
"content": "To assess the newly proposed calibration method, we apply ACTCAB on Llama2-7b (Touvron et al., 2023) and experiment on five popular open-ended question-answering (QA) datasets, as collected by Liu et al. (2024). The results show that our method achieves superior calibration performance, reducing the ECE score by an average of \\(39\\%\\) compared to the most competitive baseline, the logit-based LITcAB method (Liu et al., 2024). Again, ACTCAB uses the more informative internal activations to better model the global context, resulting in more accurate confidence scores at the response level than logit-based methods that primarily focus on the correctness of individual tokens. Furthermore, as the number of parameters in the newly trained classifier is less than \\(0.001\\%\\) of original LM parameters, ACTCAB also enjoys a superior inference efficiency compared to self-consistency-based methods."
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"bbox": [
|
| 217 |
+
0.117,
|
| 218 |
+
0.858,
|
| 219 |
+
0.486,
|
| 220 |
+
0.92
|
| 221 |
+
],
|
| 222 |
+
"angle": 0,
|
| 223 |
+
"content": "Moreover, we use CoDEC to improve the factuality of LMs after being calibrated by ACTCAB. We compare CoDEC with selective generation (Ren et al., 2023b), which keeps the model"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"bbox": [
|
| 228 |
+
0.513,
|
| 229 |
+
0.085,
|
| 230 |
+
0.882,
|
| 231 |
+
0.277
|
| 232 |
+
],
|
| 233 |
+
"angle": 0,
|
| 234 |
+
"content": "output with the highest confidence score among multiple generations, and two state-of-the-art intervention techniques that aim to improve factuality by shifting model activations during inference: Inference-Time Intervention (ITI) (Li et al., 2023) and Representation Engineering (RepE) (Zou et al., 2023) on three LMs, Llama2-7b, Llama2-13b (Touvron et al., 2023) and Llama3-8b (AI@Meta, 2024). CODEC outperforms the nontrivial comparisons on challenging QA benchmarks, including Natural Questions and TruthfulQA, while achieving comparable performance on other tasks."
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "title",
|
| 238 |
+
"bbox": [
|
| 239 |
+
0.513,
|
| 240 |
+
0.321,
|
| 241 |
+
0.663,
|
| 242 |
+
0.335
|
| 243 |
+
],
|
| 244 |
+
"angle": 0,
|
| 245 |
+
"content": "2 Related Work"
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "title",
|
| 249 |
+
"bbox": [
|
| 250 |
+
0.513,
|
| 251 |
+
0.369,
|
| 252 |
+
0.782,
|
| 253 |
+
0.384
|
| 254 |
+
],
|
| 255 |
+
"angle": 0,
|
| 256 |
+
"content": "2.1 Language Model Calibration"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"bbox": [
|
| 261 |
+
0.513,
|
| 262 |
+
0.407,
|
| 263 |
+
0.882,
|
| 264 |
+
0.92
|
| 265 |
+
],
|
| 266 |
+
"angle": 0,
|
| 267 |
+
"content": "Popular language model (LM) calibration methods can be categorized into three main types: verbalization-based, self-consistency-based, and logit-based approaches. Verbalization methods rely on LM's instruction-following ability to express their answer uncertainty. For example, Tian et al. (2023b) prompts the LM to provide a probability between 0.0 and 1.0 to indicate the correctness of its response. Self-consistency-based methods operate on the intuition that a model is likely to generate consistent content when it is confident about a question (Wang et al., 2023). Therefore, multiple responses are sampled and the confidence is estimated after grouping responses according to their semantic similarity (Kuhn et al., 2023; Xiong et al., 2023). However, verbalization-based and consistency-based methods can be limited by the LM's ability to follow instructions and often incur high inference costs. Logit-based methods, on the other hand, address these issues by directly using the predicted token probabilities to estimate the confidence of the entire response. For instance, both Si et al. (2023) and Liu et al. (2024) compute the response uncertainty by using the geometric mean of the token probability sequence. Nevertheless, token-level logits only reflect the model's uncertainty about the next token prediction, which hardly captures the correctness of the full responses. Different from all the prior work, ACTCAB directly estimates the answer uncertainty using LM's internal activations, achieving more accurate confidence scores and greater inference efficiency."
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "page_number",
|
| 271 |
+
"bbox": [
|
| 272 |
+
0.479,
|
| 273 |
+
0.929,
|
| 274 |
+
0.525,
|
| 275 |
+
0.941
|
| 276 |
+
],
|
| 277 |
+
"angle": 0,
|
| 278 |
+
"content": "10437"
|
| 279 |
+
}
|
| 280 |
+
],
|
| 281 |
+
[
|
| 282 |
+
{
|
| 283 |
+
"type": "title",
|
| 284 |
+
"bbox": [
|
| 285 |
+
0.114,
|
| 286 |
+
0.085,
|
| 287 |
+
0.436,
|
| 288 |
+
0.116
|
| 289 |
+
],
|
| 290 |
+
"angle": 0,
|
| 291 |
+
"content": "2.2 Enhancing Factuality via Inference Intervention"
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"bbox": [
|
| 296 |
+
0.113,
|
| 297 |
+
0.123,
|
| 298 |
+
0.49,
|
| 299 |
+
0.557
|
| 300 |
+
],
|
| 301 |
+
"angle": 0,
|
| 302 |
+
"content": "Inference intervention methods collect directional vectors representing truthfulness and incorporate them into the LMs' forward pass, thereby steering them towards factual outputs. For instance, Inference-time Intervention (ITI) (Li et al., 2023) uses linear probing to identify attention heads that exhibit distinct activation distributions for true and false statements. Interventions are then conducted on these heads' activations to direct the model towards producing factual outputs. Similarly, Representation Engineering (RepE) (Zou et al., 2023) detects truthful directions in each layer by prompting the language model with pairs of instructions that have contrasting meanings and incorporates these directions into each layer during decoding. These methods are closely related to CODEC, since they also modify model behavior during the decoding phase. The distinction between CODEC and intervention methods lies in their application. Both ITI and RepE directly intervene in the activations of LMs, while CODEC adjusts the LM's output distribution. The former affects the internal reasoning process of the LM, which might lead to even worse performance, as evidenced in our experiments. Conversely, CODEC does not affect the model's inherent reasoning process, keeping the LM unchanged and providing stable improvement."
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"bbox": [
|
| 307 |
+
0.113,
|
| 308 |
+
0.559,
|
| 309 |
+
0.49,
|
| 310 |
+
0.735
|
| 311 |
+
],
|
| 312 |
+
"angle": 0,
|
| 313 |
+
"content": "Selective generation is also related to our work. Typically, this approach estimates the confidence of model-generated responses and filters out those with confidence below a certain threshold (Ren et al., 2023b; Zablotskaia et al., 2023). Although this method produces more trustworthy responses, it leaves some questions unanswered, reducing overall helpfulness. In contrast, CODEC directly guides the model to generate high-confidence responses, enhancing the model's factuality without sacrificing helpfulness."
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "title",
|
| 317 |
+
"bbox": [
|
| 318 |
+
0.114,
|
| 319 |
+
0.749,
|
| 320 |
+
0.488,
|
| 321 |
+
0.782
|
| 322 |
+
],
|
| 323 |
+
"angle": 0,
|
| 324 |
+
"content": "3 ACTCAB: Activation-based Confidence Calibration"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"bbox": [
|
| 329 |
+
0.113,
|
| 330 |
+
0.792,
|
| 331 |
+
0.489,
|
| 332 |
+
0.873
|
| 333 |
+
],
|
| 334 |
+
"angle": 0,
|
| 335 |
+
"content": "Recent studies (Burns et al., 2023; Li et al., 2023) show that the activations within LMs may encode a notion of \"truth\" if the model knows the facts. Inspired by this, we aim to calibrate an LM's certainty about its answers based on the activations."
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"bbox": [
|
| 340 |
+
0.113,
|
| 341 |
+
0.874,
|
| 342 |
+
0.49,
|
| 343 |
+
0.922
|
| 344 |
+
],
|
| 345 |
+
"angle": 0,
|
| 346 |
+
"content": "In this section, we first describe the architecture of ACTCAB in Β§3.1, and then present a novel procedure to construct soft labels for use in the training"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"bbox": [
|
| 351 |
+
0.508,
|
| 352 |
+
0.085,
|
| 353 |
+
0.883,
|
| 354 |
+
0.15
|
| 355 |
+
],
|
| 356 |
+
"angle": 0,
|
| 357 |
+
"content": "objective in Β§3.2. We employ in-context learning to ensure the proper format of answers for each task. For simplicity, mentions of demonstrations are omitted in the following sections."
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "title",
|
| 361 |
+
"bbox": [
|
| 362 |
+
0.509,
|
| 363 |
+
0.16,
|
| 364 |
+
0.853,
|
| 365 |
+
0.175
|
| 366 |
+
],
|
| 367 |
+
"angle": 0,
|
| 368 |
+
"content": "3.1 Eliciting Confidence from Activations"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"bbox": [
|
| 373 |
+
0.508,
|
| 374 |
+
0.181,
|
| 375 |
+
0.885,
|
| 376 |
+
0.375
|
| 377 |
+
],
|
| 378 |
+
"angle": 0,
|
| 379 |
+
"content": "Let \\( x \\) represent the input query, \\( y \\) denotes the model's response, which consists of \\( |y| \\) tokens. The corresponding sequence of activations is denoted as \\( \\mathbf{h}_{[1:|y|]} = [\\mathbf{h}_1,\\mathbf{h}_2,\\dots ,\\mathbf{h}_{|y|}] \\). In our approach, we use the hidden states after the feedforward network from the last layer of the LM as the activations. We train a calibration classifier \\( p_{\\theta}(y|x) \\) that employs the average activations as its input and predicts the confidence of \\( y \\), i.e., \\( p_{\\theta}(y|x) = \\sigma (\\mathbf{W}\\cdot \\frac{1}{|y|}\\sum_{i = 1}^{|y|}\\mathbf{h}_i + \\mathbf{B}) \\). Here \\( \\sigma (\\cdot) \\) is the sigmoid function, and \\( \\mathbf{W} \\) and \\( \\mathbf{B} \\) are learnable parameters."
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"bbox": [
|
| 384 |
+
0.508,
|
| 385 |
+
0.376,
|
| 386 |
+
0.884,
|
| 387 |
+
0.553
|
| 388 |
+
],
|
| 389 |
+
"angle": 0,
|
| 390 |
+
"content": "Since the classifier is designed to predict the confidence of model responses, it is crucial to train it with real LM generations to ensure consistent training and test distributions. Therefore, we construct training instances by sampling from LM responses themselves. To achieve this, we repeatedly sample four model responses for each query in the training dataset. Following Liu et al. (2024), we employ ROUGE Score (Ren et al., 2023a) and GPT-4 to determine the correctness of each sampled response \\( y \\), with details in Appendix A."
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"bbox": [
|
| 395 |
+
0.508,
|
| 396 |
+
0.553,
|
| 397 |
+
0.884,
|
| 398 |
+
0.601
|
| 399 |
+
],
|
| 400 |
+
"angle": 0,
|
| 401 |
+
"content": "Given these binary correctness labels, a typical training objective is the mean squared error (MSE) loss, which is defined as:"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "equation",
|
| 405 |
+
"bbox": [
|
| 406 |
+
0.509,
|
| 407 |
+
0.611,
|
| 408 |
+
0.883,
|
| 409 |
+
0.664
|
| 410 |
+
],
|
| 411 |
+
"angle": 0,
|
| 412 |
+
"content": "\\[\n\\mathcal {L} _ {M S E} = \\frac {1}{| \\mathcal {D} |} \\sum_ {(x, y) \\in \\mathcal {D}} \\left(\\mathbf {1} (y \\text {i s c o r r e c t}) - p _ {\\theta} (y | x)\\right) ^ {2}, \\tag {1}\n\\]"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"bbox": [
|
| 417 |
+
0.508,
|
| 418 |
+
0.665,
|
| 419 |
+
0.884,
|
| 420 |
+
0.793
|
| 421 |
+
],
|
| 422 |
+
"angle": 0,
|
| 423 |
+
"content": "where \\(\\mathcal{D}\\) is the set of training instances, and \\(1(\\cdot)\\) is the indicator function. This regression objective is preferred over classification objectives, such as cross-entropy, as linear regression inherently maps input features to output predictions in a continuous space, resulting in smoother distributions and thus benefiting calibration. We take the classifier's predicted likelihood as the estimated confidence."
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "title",
|
| 427 |
+
"bbox": [
|
| 428 |
+
0.509,
|
| 429 |
+
0.805,
|
| 430 |
+
0.854,
|
| 431 |
+
0.835
|
| 432 |
+
],
|
| 433 |
+
"angle": 0,
|
| 434 |
+
"content": "3.2 Constructing Soft Training Labels via \\(K\\)-fold Cross-validation"
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"bbox": [
|
| 439 |
+
0.508,
|
| 440 |
+
0.842,
|
| 441 |
+
0.885,
|
| 442 |
+
0.922
|
| 443 |
+
],
|
| 444 |
+
"angle": 0,
|
| 445 |
+
"content": "The binary labels used in Equation 1 can cause poor calibration (Niculescu-Mizil and Caruana, 2005; Guo et al., 2017), as they encourage the model to produce sharp output distribution, leading to underconfidence or over-confidence. To tackle this prob"
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "page_number",
|
| 449 |
+
"bbox": [
|
| 450 |
+
0.478,
|
| 451 |
+
0.928,
|
| 452 |
+
0.526,
|
| 453 |
+
0.941
|
| 454 |
+
],
|
| 455 |
+
"angle": 0,
|
| 456 |
+
"content": "10438"
|
| 457 |
+
}
|
| 458 |
+
],
|
| 459 |
+
[
|
| 460 |
+
{
|
| 461 |
+
"type": "image",
|
| 462 |
+
"bbox": [
|
| 463 |
+
0.118,
|
| 464 |
+
0.082,
|
| 465 |
+
0.487,
|
| 466 |
+
0.344
|
| 467 |
+
],
|
| 468 |
+
"angle": 0,
|
| 469 |
+
"content": null
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "image_caption",
|
| 473 |
+
"bbox": [
|
| 474 |
+
0.113,
|
| 475 |
+
0.354,
|
| 476 |
+
0.49,
|
| 477 |
+
0.454
|
| 478 |
+
],
|
| 479 |
+
"angle": 0,
|
| 480 |
+
"content": "Figure 1: The process of constructing soft training labels for ECE loss. First, we estimate the confidence for each QA pair by \\( K \\)-fold cross-validation. Then, we group these pairs into bins based on their confidence, using equal intervals. Finally, we obtain the soft label for each instance by computing the accuracy of the instances within its respective bin."
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"bbox": [
|
| 485 |
+
0.113,
|
| 486 |
+
0.482,
|
| 487 |
+
0.489,
|
| 488 |
+
0.659
|
| 489 |
+
],
|
| 490 |
+
"angle": 0,
|
| 491 |
+
"content": "lem, previous efforts have applied heuristic rules, such as label smoothing (Szegedy et al., 2016), to produce soft training labels. While this promotes softer labels, it does not align with the calibration objective of reflecting the true confidence, as the distribution does not account for the model's actual predictive uncertainty or the task's inherent difficulty. To bridge the gap, we design a novel \\(K\\)-fold cross-validation procedure to construct soft training labels, in a similar spirit of the calibration objective, Excepted Calibration Error (ECE)."
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"bbox": [
|
| 496 |
+
0.113,
|
| 497 |
+
0.661,
|
| 498 |
+
0.49,
|
| 499 |
+
0.873
|
| 500 |
+
],
|
| 501 |
+
"angle": 0,
|
| 502 |
+
"content": "ECE is widely used to assess the calibration performance of neural networks (Guo et al., 2017; Lin et al., 2022a; Tian et al., 2023b), measuring the discrepancy between model confidence and actual accuracy. To compute ECE, instances are often partitioned into 10 bins of equal intervals based on the model-predicted confidence, i.e., [0, 0.1), [0.1, 0.2), ..., [0.9, 1]. The ECE score is determined by the formula \\( ECE = \\sum_{i=1}^{10} \\frac{|B_i|}{N} |acc(B_i) - conf(B_i)| \\), where \\( N \\) is the number of samples in the test set. Here, \\( acc(B_i) \\) and \\( conf(B_i) \\) represent the average accuracy and confidence of samples within bin \\( B_i \\), respectively."
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"bbox": [
|
| 507 |
+
0.113,
|
| 508 |
+
0.874,
|
| 509 |
+
0.49,
|
| 510 |
+
0.923
|
| 511 |
+
],
|
| 512 |
+
"angle": 0,
|
| 513 |
+
"content": "Our process for constructing soft training labels is inspired by the computation of ECE, as illustrated in Figure 1. By partitioning the training"
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"bbox": [
|
| 518 |
+
0.508,
|
| 519 |
+
0.085,
|
| 520 |
+
0.886,
|
| 521 |
+
0.262
|
| 522 |
+
],
|
| 523 |
+
"angle": 0,
|
| 524 |
+
"content": "instances into \\(K\\) folds, we train \\(K\\) classifiers using each fold as a separate validation set, while the remaining data is reserved for training. For each training instance, we gather the confidence output by the classifier trained on the corresponding fold. To estimate the expected confidence for each instance, we replicate the ECE calculation procedure: First, we group all instances into 10 bins with equal intervals according to their model-predicted confidence. Next, we compute the accuracy of instances within each bin, defined formally as:"
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "equation",
|
| 528 |
+
"bbox": [
|
| 529 |
+
0.516,
|
| 530 |
+
0.272,
|
| 531 |
+
0.884,
|
| 532 |
+
0.326
|
| 533 |
+
],
|
| 534 |
+
"angle": 0,
|
| 535 |
+
"content": "\\[\n\\operatorname {a c c} \\left(B _ {(x, y)}\\right) = \\frac {1}{\\left| B _ {(x , y)} \\right|} \\sum_ {y \\in B _ {(x, y)}} \\mathbf {1} (y \\text {i s c o r r e c t}), \\tag {2}\n\\]"
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"bbox": [
|
| 540 |
+
0.508,
|
| 541 |
+
0.327,
|
| 542 |
+
0.884,
|
| 543 |
+
0.422
|
| 544 |
+
],
|
| 545 |
+
"angle": 0,
|
| 546 |
+
"content": "where \\(B_{(x,y)}\\) denotes the bin in which the instance \\((x,y)\\) falls. The accuracy serves as the expected confidence for \\((x,y)\\). Subsequently, we substitute the expected confidence for the binary label in Equation 1. The revised training loss, referred to as ECE loss, becomes"
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "equation",
|
| 550 |
+
"bbox": [
|
| 551 |
+
0.521,
|
| 552 |
+
0.432,
|
| 553 |
+
0.884,
|
| 554 |
+
0.485
|
| 555 |
+
],
|
| 556 |
+
"angle": 0,
|
| 557 |
+
"content": "\\[\n\\mathcal {L} _ {E C E} = \\frac {1}{| \\mathcal {D} |} \\sum_ {(x, y) \\in \\mathcal {D}} \\left(\\operatorname {a c c} \\left(B _ {(x, y)}\\right) - p _ {\\theta} (y \\mid x)\\right) ^ {2} \\tag {3}\n\\]"
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"bbox": [
|
| 562 |
+
0.508,
|
| 563 |
+
0.486,
|
| 564 |
+
0.884,
|
| 565 |
+
0.551
|
| 566 |
+
],
|
| 567 |
+
"angle": 0,
|
| 568 |
+
"content": "Training \\( p_{\\theta}(y|x) \\) on the ECE loss can directly narrow the discrepancy between the predicted confidence and the actual likelihood, thus strengthening the calibration performance."
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "title",
|
| 572 |
+
"bbox": [
|
| 573 |
+
0.508,
|
| 574 |
+
0.562,
|
| 575 |
+
0.875,
|
| 576 |
+
0.58
|
| 577 |
+
],
|
| 578 |
+
"angle": 0,
|
| 579 |
+
"content": "4 CoDEC: Confidence-guided Decoding"
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"bbox": [
|
| 584 |
+
0.507,
|
| 585 |
+
0.587,
|
| 586 |
+
0.884,
|
| 587 |
+
0.715
|
| 588 |
+
],
|
| 589 |
+
"angle": 0,
|
| 590 |
+
"content": "Intuitively, a response generated with higher confidence is more likely to be correct, assuming the LM is well-calibrated. Building on this intuition, we design CODEC, a decoding strategy that guides the LM to generate high-confidence responses, in line with recent guided decoding studies (Khalifa et al., 2023). We illustrate the whole process of CODEC in Figure 2."
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"bbox": [
|
| 595 |
+
0.507,
|
| 596 |
+
0.716,
|
| 597 |
+
0.885,
|
| 598 |
+
0.893
|
| 599 |
+
],
|
| 600 |
+
"angle": 0,
|
| 601 |
+
"content": "CoDEC follows a greedy procedure, encouraging the model to favor tokens that can lead to answers with higher confidence. Specifically, at the time step \\( t \\), the LM head predicts the probability distribution for the next token. To reduce computation costs, we only consider the top 7 tokens with the highest probabilities as candidate tokens. For each candidate token \\( y_{t}^{*} \\), we feed it into the LM to obtain its activation \\( \\mathbf{h}_t^* \\). Given this activation, the score for each token is computed by combining the token probability with its estimated confidence:"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "equation",
|
| 605 |
+
"bbox": [
|
| 606 |
+
0.518,
|
| 607 |
+
0.905,
|
| 608 |
+
0.884,
|
| 609 |
+
0.923
|
| 610 |
+
],
|
| 611 |
+
"angle": 0,
|
| 612 |
+
"content": "\\[\ns \\left(y _ {t} ^ {*}\\right) = \\lambda \\cdot L M \\left(y _ {t} ^ {*}\\right) + (1 - \\lambda) \\cdot \\sigma \\left(\\mathbf {W} \\cdot \\mathbf {h} _ {t} ^ {*} + \\mathbf {B}\\right) \\tag {4}\n\\]"
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "page_number",
|
| 616 |
+
"bbox": [
|
| 617 |
+
0.478,
|
| 618 |
+
0.928,
|
| 619 |
+
0.526,
|
| 620 |
+
0.941
|
| 621 |
+
],
|
| 622 |
+
"angle": 0,
|
| 623 |
+
"content": "10439"
|
| 624 |
+
}
|
| 625 |
+
],
|
| 626 |
+
[
|
| 627 |
+
{
|
| 628 |
+
"type": "image_caption",
|
| 629 |
+
"bbox": [
|
| 630 |
+
0.127,
|
| 631 |
+
0.085,
|
| 632 |
+
0.36,
|
| 633 |
+
0.099
|
| 634 |
+
],
|
| 635 |
+
"angle": 0,
|
| 636 |
+
"content": "Where did the Pilgrims first land?"
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "image",
|
| 640 |
+
"bbox": [
|
| 641 |
+
0.121,
|
| 642 |
+
0.103,
|
| 643 |
+
0.481,
|
| 644 |
+
0.294
|
| 645 |
+
],
|
| 646 |
+
"angle": 0,
|
| 647 |
+
"content": null
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "image_caption",
|
| 651 |
+
"bbox": [
|
| 652 |
+
0.113,
|
| 653 |
+
0.304,
|
| 654 |
+
0.49,
|
| 655 |
+
0.391
|
| 656 |
+
],
|
| 657 |
+
"angle": 0,
|
| 658 |
+
"content": "Figure 2: The process of CODEC decoding. For instance, ACTCAB estimates the confidence for token candidates \"Plymouth\", \"Provincetown\", and \"Pilgrimage\". By combining the confidence with the token probabilities, the correct answer \"Provincetown\" gains the highest score and is then chosen for generation."
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"bbox": [
|
| 663 |
+
0.113,
|
| 664 |
+
0.413,
|
| 665 |
+
0.49,
|
| 666 |
+
0.705
|
| 667 |
+
],
|
| 668 |
+
"angle": 0,
|
| 669 |
+
"content": "where \\( LM(y_{t}^{*}) \\) is the LM predicted token probability of the candidate token \\( y_{t}^{*} \\). \\( \\mathbf{W} \\) and \\( \\mathbf{B} \\) are the parameters of the classifier described in Β§3.1. \\( \\lambda \\) is the hyperparameter that balances these two sources, whose optimal value is searched on the development set. During decoding, the candidate token with the highest score \\( s(\\cdot) \\) will be chosen as the next token. However, this greedy process does not guarantee higher confidence for the entire model response. Beyond this token-level guidance, we use ACTCAB again to estimate the overall confidence of the generated response using the average activations. This leverages the entire activation sequence, which is supposed to capture a more globally calibrated confidence. We only retain the model responses generated by CoDEC if their overall confidence exceeds that of the response generated by the standard greedy decoding."
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "title",
|
| 673 |
+
"bbox": [
|
| 674 |
+
0.114,
|
| 675 |
+
0.715,
|
| 676 |
+
0.262,
|
| 677 |
+
0.731
|
| 678 |
+
],
|
| 679 |
+
"angle": 0,
|
| 680 |
+
"content": "5 Experiments"
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "title",
|
| 684 |
+
"bbox": [
|
| 685 |
+
0.114,
|
| 686 |
+
0.74,
|
| 687 |
+
0.229,
|
| 688 |
+
0.755
|
| 689 |
+
],
|
| 690 |
+
"angle": 0,
|
| 691 |
+
"content": "5.1 Datasets"
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"bbox": [
|
| 696 |
+
0.113,
|
| 697 |
+
0.761,
|
| 698 |
+
0.491,
|
| 699 |
+
0.922
|
| 700 |
+
],
|
| 701 |
+
"angle": 0,
|
| 702 |
+
"content": "We assess the calibration performance of ACT-CAB and baseline methods using CaT, a public calibration evaluation benchmark (Liu et al., 2024). CaT includes multiple generation tasks with both short- and long-form responses. In our experiments, we focus on the phrase- and sentence-level tasks in CaT, in particular, TruthfulQA (Lin et al., 2022b), TriviaQA (Joshi et al., 2017), SciQ (Johannes Welbl, 2017), Natrual Questions (NQ) (Kwiatkowski et al., 2019), and Wik"
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "table",
|
| 706 |
+
"bbox": [
|
| 707 |
+
0.512,
|
| 708 |
+
0.082,
|
| 709 |
+
0.88,
|
| 710 |
+
0.134
|
| 711 |
+
],
|
| 712 |
+
"angle": 0,
|
| 713 |
+
"content": "<table><tr><td></td><td>NQ</td><td>SciQ</td><td>TriviaQA</td><td>TruthfulQA</td><td>WikiQA</td></tr><tr><td># Train</td><td>2K</td><td>2K</td><td>2K</td><td>397</td><td>1040</td></tr><tr><td># Test</td><td>1K</td><td>1K</td><td>1K</td><td>420</td><td>293</td></tr></table>"
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "table_caption",
|
| 717 |
+
"bbox": [
|
| 718 |
+
0.579,
|
| 719 |
+
0.143,
|
| 720 |
+
0.812,
|
| 721 |
+
0.157
|
| 722 |
+
],
|
| 723 |
+
"angle": 0,
|
| 724 |
+
"content": "Table 1: Statistics of five datasets."
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"bbox": [
|
| 729 |
+
0.508,
|
| 730 |
+
0.183,
|
| 731 |
+
0.882,
|
| 732 |
+
0.232
|
| 733 |
+
],
|
| 734 |
+
"angle": 0,
|
| 735 |
+
"content": "iQA (Yang et al., 2015). The statistics for each dataset are presented in Table 1. Additionally, we evaluate the factuality of LMs on these five tasks."
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "title",
|
| 739 |
+
"bbox": [
|
| 740 |
+
0.509,
|
| 741 |
+
0.242,
|
| 742 |
+
0.742,
|
| 743 |
+
0.258
|
| 744 |
+
],
|
| 745 |
+
"angle": 0,
|
| 746 |
+
"content": "5.2 Implementation Details"
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"bbox": [
|
| 751 |
+
0.507,
|
| 752 |
+
0.262,
|
| 753 |
+
0.885,
|
| 754 |
+
0.617
|
| 755 |
+
],
|
| 756 |
+
"angle": 0,
|
| 757 |
+
"content": "We implement the in-context learning setting in all our experiments. Following Liu et al. (2024), we select 15 QA pairs from the training set as demonstrations when evaluating the calibration methods. To assess the factuality of CODEC and the baseline methods, we use a 5-shot generation setting, consistent with the in-context learning setting used in ITI (Li et al., 2023). To find the optimal hyperparameters for ACTCAB, CODEC, and all comparisons, we follow Liu et al. (2024) to use \\(20\\%\\) of the training samples as a validation set and train the classifier on the remaining instances. We use a training batch size of 128 and train the classifier for 100 epochs with a learning rate of 1e-5. We set \\(\\lambda\\) in Equation 4 to 0.3. We use FP32 for running Llama2-7b and Llama3-8b, and FP16 for Llama2-13B to reduce memory usage. Since ACTCAB only trains a single linear layer, the training process takes less than 1 hour on a single A6000 GPU for each task. We run the experiments for the proposed methods three times and report the average results."
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"bbox": [
|
| 762 |
+
0.508,
|
| 763 |
+
0.617,
|
| 764 |
+
0.884,
|
| 765 |
+
0.73
|
| 766 |
+
],
|
| 767 |
+
"angle": 0,
|
| 768 |
+
"content": "To assess the calibration performance of ACT-CAB and the baselines, we sample the LM's responses on the test set and calculate the calibration metrics based on these sampled responses. For the factuality experiments, we use greedy decoding to generate model responses, as it performs more stably than sampling."
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "title",
|
| 772 |
+
"bbox": [
|
| 773 |
+
0.509,
|
| 774 |
+
0.74,
|
| 775 |
+
0.707,
|
| 776 |
+
0.755
|
| 777 |
+
],
|
| 778 |
+
"angle": 0,
|
| 779 |
+
"content": "5.3 Evaluation Metrics"
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"bbox": [
|
| 784 |
+
0.508,
|
| 785 |
+
0.761,
|
| 786 |
+
0.885,
|
| 787 |
+
0.859
|
| 788 |
+
],
|
| 789 |
+
"angle": 0,
|
| 790 |
+
"content": "In addition to ECE, we use Brier Score to measure the calibration performance of ACTCAB and baselines. Brier Score directly measures the discrepancy between the confidence and the binary correctness label for each instance. It is computed as \\(Brier = \\frac{1}{N}\\sum_{y\\in Y}(f(x,y) - 1(y\\text{is correct}))^2\\)"
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"bbox": [
|
| 795 |
+
0.508,
|
| 796 |
+
0.858,
|
| 797 |
+
0.885,
|
| 798 |
+
0.922
|
| 799 |
+
],
|
| 800 |
+
"angle": 0,
|
| 801 |
+
"content": "To evaluate the factuality of CODEC and baselines, we use Accuracy (Acc.) as the main metric for NQ, SciQ, TriviaQA, and WikiQA. In the context of TruthfulQA, some questions are unan"
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "page_number",
|
| 805 |
+
"bbox": [
|
| 806 |
+
0.478,
|
| 807 |
+
0.928,
|
| 808 |
+
0.526,
|
| 809 |
+
0.941
|
| 810 |
+
],
|
| 811 |
+
"angle": 0,
|
| 812 |
+
"content": "10440"
|
| 813 |
+
}
|
| 814 |
+
],
|
| 815 |
+
[
|
| 816 |
+
{
|
| 817 |
+
"type": "table",
|
| 818 |
+
"bbox": [
|
| 819 |
+
0.116,
|
| 820 |
+
0.084,
|
| 821 |
+
0.88,
|
| 822 |
+
0.281
|
| 823 |
+
],
|
| 824 |
+
"angle": 0,
|
| 825 |
+
"content": "<table><tr><td>Task</td><td>Metric</td><td>Verbalization</td><td>Self-Consistency</td><td>Seq. Likelihood</td><td>Temp. Scaling</td><td>LitCab</td><td>ACTCAB</td><td>ACTCAB w/o ECE loss</td></tr><tr><td rowspan=\"2\">NQ</td><td>ECE</td><td>0.516</td><td>0.145</td><td>0.171</td><td>0.165</td><td>0.101</td><td>0.056</td><td>0.072</td></tr><tr><td>Brier</td><td>0.468</td><td>0.163</td><td>0.196</td><td>0.193</td><td>0.169</td><td>0.179</td><td>0.184</td></tr><tr><td rowspan=\"2\">SciQ</td><td>ECE</td><td>0.318</td><td>0.101</td><td>0.094</td><td>0.091</td><td>0.084</td><td>0.064</td><td>0.086</td></tr><tr><td>Brier</td><td>0.344</td><td>0.227</td><td>0.203</td><td>0.202</td><td>0.203</td><td>0.205</td><td>0.205</td></tr><tr><td rowspan=\"2\">TriviaQA</td><td>ECE</td><td>0.431</td><td>0.181</td><td>0.112</td><td>0.079</td><td>0.081</td><td>0.080</td><td>0.109</td></tr><tr><td>Brier</td><td>0.409</td><td>0.253</td><td>0.203</td><td>0.195</td><td>0.203</td><td>0.195</td><td>0.204</td></tr><tr><td rowspan=\"2\">TruthfulQA</td><td>ECE</td><td>0.510</td><td>0.060</td><td>0.138</td><td>0.161</td><td>0.105</td><td>0.025</td><td>0.080</td></tr><tr><td>Brier</td><td>0.474</td><td>0.194</td><td>0.218</td><td>0.240</td><td>0.206</td><td>0.177</td><td>0.179</td></tr><tr><td rowspan=\"2\">WikiQA</td><td>ECE</td><td>0.535</td><td>0.136</td><td>0.075</td><td>0.066</td><td>0.075</td><td>0.046</td><td>0.051</td></tr><tr><td>Brier</td><td>0.518</td><td>0.243</td><td>0.212</td><td>0.222</td><td>0.212</td><td>0.104</td><td>0.111</td></tr><tr><td rowspan=\"2\">Average</td><td>ECE</td><td>0.462</td><td>0.125</td><td>0.118</td><td>0.112</td><td>0.089</td><td>0.054</td><td>0.080</td></tr><tr><td>Brier</td><td>0.443</td><td>0.216</td><td>0.206</td><td>0.210</td><td>0.199</td><td>0.172</td><td>0.177</td></tr></table>"
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "table_caption",
|
| 829 |
+
"bbox": [
|
| 830 |
+
0.112,
|
| 831 |
+
0.29,
|
| 832 |
+
0.884,
|
| 833 |
+
0.364
|
| 834 |
+
],
|
| 835 |
+
"angle": 0,
|
| 836 |
+
"content": "Table 2: Results of ACTCAB and comparison methods on CaT, with the best results in bold. The last row shows the averaged metric values across five tasks. ACTCAB surpasses all the baselines across five tasks in terms of calibration performance. The ablation study (ACTCAB w/o ECE loss, last column) demonstrates the effectiveness of ECE loss. We highlight numbers where ACTCAB improves over both the Seq. Likelihood and all baselines in blue; when ACTCAB outperforms the Seq. Likelihood, it is colored in green."
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"bbox": [
|
| 841 |
+
0.113,
|
| 842 |
+
0.389,
|
| 843 |
+
0.49,
|
| 844 |
+
0.599
|
| 845 |
+
],
|
| 846 |
+
"angle": 0,
|
| 847 |
+
"content": "swerable and the LM is expected to refuse to answer by outputting \"I have no comments\", e.g., given a question on \"What's on your mind right now?\". The LM also acquires such refusal capability through demonstrations.2 Considering that, we follow Lin et al. (2022b) to report Truthfulness (True.), Informativeness (Info.), and True.*Info.. An answer is considered truthful if it avoids providing false information. Essentially, correct responses and refusals are both considered truthful answers. Informativeness measures the LM's willingness to answer questions, referring to the percentage of questions answered."
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "title",
|
| 851 |
+
"bbox": [
|
| 852 |
+
0.114,
|
| 853 |
+
0.614,
|
| 854 |
+
0.236,
|
| 855 |
+
0.628
|
| 856 |
+
],
|
| 857 |
+
"angle": 0,
|
| 858 |
+
"content": "5.4Baselines"
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"bbox": [
|
| 863 |
+
0.113,
|
| 864 |
+
0.638,
|
| 865 |
+
0.488,
|
| 866 |
+
0.684
|
| 867 |
+
],
|
| 868 |
+
"angle": 0,
|
| 869 |
+
"content": "Comparisons for Calibration. We compare ACTCAB with the following baseline methods on Llama2-7b."
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"bbox": [
|
| 874 |
+
0.137,
|
| 875 |
+
0.703,
|
| 876 |
+
0.487,
|
| 877 |
+
0.749
|
| 878 |
+
],
|
| 879 |
+
"angle": 0,
|
| 880 |
+
"content": "- Verbalization: Prompting the LM to state its confidence in its response, reusing the prompt from Tian et al. (2023b)."
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"bbox": [
|
| 885 |
+
0.137,
|
| 886 |
+
0.767,
|
| 887 |
+
0.49,
|
| 888 |
+
0.846
|
| 889 |
+
],
|
| 890 |
+
"angle": 0,
|
| 891 |
+
"content": "- Self-consistency (Tian et al., 2023b): Sampling model responses for 10 times and estimating the confidence by computing the semantic similarities between them. Details can be found in Liu et al. (2024)."
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "list",
|
| 895 |
+
"bbox": [
|
| 896 |
+
0.137,
|
| 897 |
+
0.703,
|
| 898 |
+
0.49,
|
| 899 |
+
0.846
|
| 900 |
+
],
|
| 901 |
+
"angle": 0,
|
| 902 |
+
"content": null
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"bbox": [
|
| 907 |
+
0.113,
|
| 908 |
+
0.864,
|
| 909 |
+
0.488,
|
| 910 |
+
0.894
|
| 911 |
+
],
|
| 912 |
+
"angle": 0,
|
| 913 |
+
"content": "We further consider three logit-based calibration methods."
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"bbox": [
|
| 918 |
+
0.532,
|
| 919 |
+
0.389,
|
| 920 |
+
0.884,
|
| 921 |
+
0.437
|
| 922 |
+
],
|
| 923 |
+
"angle": 0,
|
| 924 |
+
"content": "- Sequence Likelihood is computed as the geometric mean of the token probabilities in the LM's response."
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"bbox": [
|
| 929 |
+
0.532,
|
| 930 |
+
0.449,
|
| 931 |
+
0.885,
|
| 932 |
+
0.53
|
| 933 |
+
],
|
| 934 |
+
"angle": 0,
|
| 935 |
+
"content": "- Temperature Scaling (Liang et al., 2018) uses a temperature constant to scale logits before the softmax function. The optimal temperature constant is determined by gradient descent optimization on the training set."
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"bbox": [
|
| 940 |
+
0.532,
|
| 941 |
+
0.54,
|
| 942 |
+
0.884,
|
| 943 |
+
0.589
|
| 944 |
+
],
|
| 945 |
+
"angle": 0,
|
| 946 |
+
"content": "- LitCab (Liu et al., 2024) trains a linear layer on top of the LM's last-layer hidden states to adjust its logits for calibration."
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "list",
|
| 950 |
+
"bbox": [
|
| 951 |
+
0.532,
|
| 952 |
+
0.389,
|
| 953 |
+
0.885,
|
| 954 |
+
0.589
|
| 955 |
+
],
|
| 956 |
+
"angle": 0,
|
| 957 |
+
"content": null
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"bbox": [
|
| 962 |
+
0.509,
|
| 963 |
+
0.61,
|
| 964 |
+
0.884,
|
| 965 |
+
0.673
|
| 966 |
+
],
|
| 967 |
+
"angle": 0,
|
| 968 |
+
"content": "Comparisons for Factuality. We compare CODEC with the following methods on three widely-used LMs: Llama2-7b, Llama2-13b and Llama3-8b."
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"bbox": [
|
| 973 |
+
0.532,
|
| 974 |
+
0.685,
|
| 975 |
+
0.885,
|
| 976 |
+
0.862
|
| 977 |
+
],
|
| 978 |
+
"angle": 0,
|
| 979 |
+
"content": "- Selective Generation: Selective generation is often done by filtering out low-confidence responses by setting a confidence threshold (Ren et al., 2023a; Zablotskaia et al., 2023). However, this reduces the number of responses, which hurts LM's helpfulness and negatively impacts the accuracy of the entire test set. To address this, we implement selective generation by sampling model outputs four times and selecting the one with the highest confidence, as determined by ACTCAB."
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"bbox": [
|
| 984 |
+
0.532,
|
| 985 |
+
0.874,
|
| 986 |
+
0.884,
|
| 987 |
+
0.922
|
| 988 |
+
],
|
| 989 |
+
"angle": 0,
|
| 990 |
+
"content": "- Inference-Time Intervention (ITI) (Li et al., 2023) identifies truthful directions by training probes on attention head outputs and uses"
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "list",
|
| 994 |
+
"bbox": [
|
| 995 |
+
0.532,
|
| 996 |
+
0.685,
|
| 997 |
+
0.885,
|
| 998 |
+
0.922
|
| 999 |
+
],
|
| 1000 |
+
"angle": 0,
|
| 1001 |
+
"content": null
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "page_footnote",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
0.136,
|
| 1007 |
+
0.906,
|
| 1008 |
+
0.486,
|
| 1009 |
+
0.921
|
| 1010 |
+
],
|
| 1011 |
+
"angle": 0,
|
| 1012 |
+
"content": "The prompt for TruthfulQA can be found in Appendix B"
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "page_number",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
0.478,
|
| 1018 |
+
0.928,
|
| 1019 |
+
0.524,
|
| 1020 |
+
0.941
|
| 1021 |
+
],
|
| 1022 |
+
"angle": 0,
|
| 1023 |
+
"content": "10441"
|
| 1024 |
+
}
|
| 1025 |
+
],
|
| 1026 |
+
[
|
| 1027 |
+
{
|
| 1028 |
+
"type": "table",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
0.21,
|
| 1031 |
+
0.081,
|
| 1032 |
+
0.788,
|
| 1033 |
+
0.438
|
| 1034 |
+
],
|
| 1035 |
+
"angle": 0,
|
| 1036 |
+
"content": "<table><tr><td>Task</td><td>Metric</td><td>Greedy Decoding</td><td>Selitive Generation</td><td>ITI</td><td>RepE</td><td>CODEC</td></tr><tr><td colspan=\"7\">Llama2-7b</td></tr><tr><td>NQ</td><td>Acc.</td><td>32.80</td><td>24.91</td><td>29.20</td><td>30.80</td><td>35.00</td></tr><tr><td>SciQ</td><td>Acc.</td><td>64.80</td><td>57.66</td><td>62.90</td><td>65.60</td><td>63.90</td></tr><tr><td></td><td>True.</td><td>30.24</td><td>37.38</td><td>29.29</td><td>26.90</td><td>46.90</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>90.95</td><td>81.90</td><td>90.71</td><td>90.24</td><td>87.62</td></tr><tr><td></td><td>True.*Info.</td><td>27.50</td><td>30.62</td><td>27.00</td><td>24.28</td><td>41.10</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>68.90</td><td>56.43</td><td>66.40</td><td>68.80</td><td>69.85</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>23.05</td><td>11.16</td><td>16.38</td><td>21.84</td><td>23.05</td></tr><tr><td colspan=\"7\">Llama2-13b</td></tr><tr><td>NQ</td><td>Acc.</td><td>39.00</td><td>30.12</td><td>37.30</td><td>36.90</td><td>39.55</td></tr><tr><td>SciQ</td><td>Acc.</td><td>70.50</td><td>63.96</td><td>67.90</td><td>71.30</td><td>71.10</td></tr><tr><td></td><td>True.</td><td>32.14</td><td>37.38</td><td>35.00</td><td>32.62</td><td>46.43</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>89.05</td><td>82.14</td><td>89.05</td><td>88.57</td><td>85.95</td></tr><tr><td></td><td>True.*Info.</td><td>28.62</td><td>30.71</td><td>31.17</td><td>28.89</td><td>39.91</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>76.75</td><td>62.43</td><td>76.10</td><td>75.80</td><td>75.80</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>30.04</td><td>17.36</td><td>23.89</td><td>24.91</td><td>29.63</td></tr><tr><td colspan=\"7\">Llama3-8b</td></tr><tr><td>NQ</td><td>Acc.</td><td>38.35</td><td>32.27</td><td>32.50</td><td>36.20</td><td>38.65</td></tr><tr><td>SciQ</td><td>Acc.</td><td>72.60</td><td>68.17</td><td>68.20</td><td>58.60</td><td>72.50</td></tr><tr><td></td><td>True.</td><td>28.57</td><td>36.43</td><td>32.14</td><td>26.67</td><td>42.38</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>87.62</td><td>84.52</td><td>88.33</td><td>87.14</td><td>89.29</td></tr><tr><td></td><td>True.*Info.</td><td>25.03</td><td>30.79</td><td>28.39</td><td>23.24</td><td>37.84</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>73.70</td><td>61.08</td><td>61.30</td><td>63.80</td><td>74.45</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>25.93</td><td>19.42</td><td>15.01</td><td>16.38</td><td>26.34</td></tr></table>"
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "table_caption",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
0.113,
|
| 1042 |
+
0.446,
|
| 1043 |
+
0.884,
|
| 1044 |
+
0.517
|
| 1045 |
+
],
|
| 1046 |
+
"angle": 0,
|
| 1047 |
+
"content": "Table 3: Factuality results of CODEC and comparisons on five tasks, with the best results in bold. Greedy Decoding refers to the plain LM with in-context learning prompting using greedy decoding. We highlight numbers where CODEC improves over both the Greedy Decoding and all baselines in blue. CODEC enhances the factuality of Llama2-7b, Llama2-13b, and Llama3-8b on most tasks, particularly excelling in adversarially constructed TruthfulQA."
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
0.15,
|
| 1053 |
+
0.543,
|
| 1054 |
+
0.489,
|
| 1055 |
+
0.592
|
| 1056 |
+
],
|
| 1057 |
+
"angle": 0,
|
| 1058 |
+
"content": "these directions to adjust activations during inference, steering LMs towards generating truthful responses."
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
0.137,
|
| 1064 |
+
0.606,
|
| 1065 |
+
0.491,
|
| 1066 |
+
0.72
|
| 1067 |
+
],
|
| 1068 |
+
"angle": 0,
|
| 1069 |
+
"content": "- Representation Engineering (RepE) (Zou et al., 2023) detects truthful directions by comparing representations of truthful and untruthful counterfactuals across layers. It then applies PCA to isolate truthful directions, which are then used to adjust layer outputs during generation."
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "title",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
0.114,
|
| 1075 |
+
0.733,
|
| 1076 |
+
0.22,
|
| 1077 |
+
0.748
|
| 1078 |
+
],
|
| 1079 |
+
"angle": 0,
|
| 1080 |
+
"content": "5.5 Results"
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "title",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
0.114,
|
| 1086 |
+
0.756,
|
| 1087 |
+
0.388,
|
| 1088 |
+
0.771
|
| 1089 |
+
],
|
| 1090 |
+
"angle": 0,
|
| 1091 |
+
"content": "5.5.1 Results on LM Calibration"
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
0.113,
|
| 1097 |
+
0.777,
|
| 1098 |
+
0.491,
|
| 1099 |
+
0.922
|
| 1100 |
+
],
|
| 1101 |
+
"angle": 0,
|
| 1102 |
+
"content": "The results of ACTCAB and the baselines are shown in Table 2. ACTCAB achieves superior calibration performance across five tasks, as evidenced by the lowest average ECE and Brier scores among all baselines. Notably, ACTCAB reduces the ECE of the most competitive method, LitCab, by \\(45\\%\\) on NQ, from 0.101 to 0.056, and by \\(39\\%\\) on average across all datasets compared to LitCab. Since LitCab learns uncertainty estimation from the LM's"
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
0.508,
|
| 1108 |
+
0.543,
|
| 1109 |
+
0.885,
|
| 1110 |
+
0.574
|
| 1111 |
+
],
|
| 1112 |
+
"angle": 0,
|
| 1113 |
+
"content": "logits, this improvement demonstrates the superiority of using internal activations for calibration."
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
0.508,
|
| 1119 |
+
0.577,
|
| 1120 |
+
0.885,
|
| 1121 |
+
0.754
|
| 1122 |
+
],
|
| 1123 |
+
"angle": 0,
|
| 1124 |
+
"content": "The ablation variant of our method, referred to as \"ACTCAB w/o ECE loss\", is trained using the MSE loss as detailed in Equation 1, with binary correctness labels. We can see that the soft-label-based ECE loss significantly enhances calibration performance, reducing the average ECE by \\(48\\%\\) (from 0.080 to 0.054) and decreasing the average Brier score by \\(3\\%\\) (from 0.177 to 0.172). This improvement highlights the effectiveness of the ECE loss in reflecting the true confidence by directly modeling the expected confidence."
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "title",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
0.509,
|
| 1130 |
+
0.769,
|
| 1131 |
+
0.771,
|
| 1132 |
+
0.785
|
| 1133 |
+
],
|
| 1134 |
+
"angle": 0,
|
| 1135 |
+
"content": "5.5.2 Results on LM Factuality"
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
0.507,
|
| 1141 |
+
0.791,
|
| 1142 |
+
0.885,
|
| 1143 |
+
0.872
|
| 1144 |
+
],
|
| 1145 |
+
"angle": 0,
|
| 1146 |
+
"content": "Since RepE requires paired samples for training, i.e., both correct and incorrect samples for each question, we use the ground-truth responses provided in CaT as the correct samples and sample incorrect responses from the LM for all baselines."
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
0.507,
|
| 1152 |
+
0.874,
|
| 1153 |
+
0.884,
|
| 1154 |
+
0.923
|
| 1155 |
+
],
|
| 1156 |
+
"angle": 0,
|
| 1157 |
+
"content": "The factuality results of CODEC and baselines are in Table 3. CODEC generally enhances the factuality of three LMs. Notably, it significantly"
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "page_number",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
0.478,
|
| 1163 |
+
0.928,
|
| 1164 |
+
0.526,
|
| 1165 |
+
0.941
|
| 1166 |
+
],
|
| 1167 |
+
"angle": 0,
|
| 1168 |
+
"content": "10442"
|
| 1169 |
+
}
|
| 1170 |
+
],
|
| 1171 |
+
[
|
| 1172 |
+
{
|
| 1173 |
+
"type": "table",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
0.116,
|
| 1176 |
+
0.082,
|
| 1177 |
+
0.478,
|
| 1178 |
+
0.219
|
| 1179 |
+
],
|
| 1180 |
+
"angle": 0,
|
| 1181 |
+
"content": "<table><tr><td>Task</td><td>Example</td></tr><tr><td>SciQ</td><td>Question: There are about 6200 known species of what?\nGreedy Decoding: mammals\nCoDEC: birds</td></tr><tr><td>TruthfulQA</td><td>Question: What subjects did Einstein flunk in school?\nGreedy Decoding: Einstein flunked math and physics\nCoDEC: There is no evidence that Einstein flunked any subjects in school</td></tr></table>"
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "table_caption",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
0.113,
|
| 1187 |
+
0.227,
|
| 1188 |
+
0.49,
|
| 1189 |
+
0.3
|
| 1190 |
+
],
|
| 1191 |
+
"angle": 0,
|
| 1192 |
+
"content": "Table 4: Examples of greedy decoding and CODEC response in SciQ and TruthfulQA. Responses highlighted in red are incorrect, while those in green are correct. More failed examples of CODEC in SciQ are provided in Appendix C."
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
0.113,
|
| 1198 |
+
0.326,
|
| 1199 |
+
0.489,
|
| 1200 |
+
0.437
|
| 1201 |
+
],
|
| 1202 |
+
"angle": 0,
|
| 1203 |
+
"content": "boosts the LM's performance on TruthfulQA, with a \\(50\\%\\) increase in True.\\*Info. for Llama2-7b compared to greedy decoding, surpassing all baselines and achieving a better balance of truthfulness and informativeness. This suggests that encouraging the model to generate high-confidence responses can benefit factuality."
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
0.117,
|
| 1209 |
+
0.44,
|
| 1210 |
+
0.49,
|
| 1211 |
+
0.841
|
| 1212 |
+
],
|
| 1213 |
+
"angle": 0,
|
| 1214 |
+
"content": "However, CODEC does not achieve satisfactory performance on SciQ on Llama2-7b and Llama3-8b. We conjecture that these unsatisfactory results are due to the LM lacking sufficient knowledge for answering questions in these tasks. Specifically, SciQ evaluates the LM's knowledge coverage on scientific subjects. However, the classifier that CODEC uses, a single linear layer, cannot capture sufficient knowledge to answer these scientific questions. In contrast, the adversarially constructed TruthfulQA challenges the LMs with popular misconceptions, where the models have seen the knowledge during pretraining and CODEC plays a role of steering the LM to output the correct facts. This performance difference is also observed with other intervention methods like ITI, which assumes the model can only be guided to the correct answer if it already knows it. To illustrate these points, we provide two examples in Table 4. As can be seen, CODEC does not help the LM answer the scientific question \"There are about 6200 known species of what?\" as it might lack this specific knowledge. However, CODEC prevents the LM from propagating misconceptions like \"Einstein flunked math and physics.\""
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "title",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
0.114,
|
| 1220 |
+
0.853,
|
| 1221 |
+
0.433,
|
| 1222 |
+
0.884
|
| 1223 |
+
],
|
| 1224 |
+
"angle": 0,
|
| 1225 |
+
"content": "5.5.3 Robustness across Training Data Sources and LMs"
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
0.113,
|
| 1231 |
+
0.89,
|
| 1232 |
+
0.49,
|
| 1233 |
+
0.922
|
| 1234 |
+
],
|
| 1235 |
+
"angle": 0,
|
| 1236 |
+
"content": "We notice that neither ITI nor RepE gain consistent improvements, and even reduce the original"
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "table",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
0.512,
|
| 1242 |
+
0.083,
|
| 1243 |
+
0.888,
|
| 1244 |
+
0.196
|
| 1245 |
+
],
|
| 1246 |
+
"angle": 0,
|
| 1247 |
+
"content": "<table><tr><td>Task</td><td>Metric</td><td>Greedy Decoding</td><td>ITI</td><td>RepE</td><td>CODEC</td></tr><tr><td rowspan=\"3\">Llama2-7b</td><td>True.</td><td>42.40</td><td>37.50</td><td>42.40</td><td>77.21</td></tr><tr><td>Info.</td><td>91.42</td><td>92.65</td><td>91.42</td><td>72.55</td></tr><tr><td>True.*Info.</td><td>38.76</td><td>34.74</td><td>38.76</td><td>56.01</td></tr><tr><td rowspan=\"3\">Llama2-13b</td><td>True.</td><td>34.80</td><td>44.85</td><td>35.29</td><td>67.65</td></tr><tr><td>Info.</td><td>94.61</td><td>92.89</td><td>94.61</td><td>83.82</td></tr><tr><td>True.*Info.</td><td>32.92</td><td>41.66</td><td>33.39</td><td>56.70</td></tr><tr><td rowspan=\"3\">Llama3-8b</td><td>True.</td><td>58.58</td><td>34.56</td><td>56.13</td><td>83.82</td></tr><tr><td>Info.</td><td>81.37</td><td>93.38</td><td>81.86</td><td>71.08</td></tr><tr><td>True.*Info.</td><td>47.67</td><td>32.27</td><td>45.95</td><td>59.58</td></tr></table>"
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "table_caption",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
0.508,
|
| 1253 |
+
0.204,
|
| 1254 |
+
0.884,
|
| 1255 |
+
0.276
|
| 1256 |
+
],
|
| 1257 |
+
"angle": 0,
|
| 1258 |
+
"content": "Table 5: Factuality results of CODEC and baselines using human-written correct and incorrect responses. CODEC achieves greater improvements than ITI and RepE, with a good balance of being truthful and helpful using the Ture.*Info. metric."
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
0.507,
|
| 1264 |
+
0.303,
|
| 1265 |
+
0.885,
|
| 1266 |
+
0.513
|
| 1267 |
+
],
|
| 1268 |
+
"angle": 0,
|
| 1269 |
+
"content": "LM's factuality, such as the lower True*Info. of RepE on TruthfulQA with Llama2-7b. This contradicts the findings in Li et al. (2023) and Zou et al. (2023). We attribute this discrepancy to the difference in training data resources. Both Li et al. (2023) and Zou et al. (2023) use human-written correct and incorrect responses for training. For example, TruthfulQA collects multiple correct and incorrect answers for each question. In contrast, the incorrect responses we used to train CoDEC and the baselines are sampled from LMs. Since their correctness are labeled by ROUGE Score or GPT-4, this process might introduce noise."
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
0.508,
|
| 1275 |
+
0.515,
|
| 1276 |
+
0.884,
|
| 1277 |
+
0.837
|
| 1278 |
+
],
|
| 1279 |
+
"angle": 0,
|
| 1280 |
+
"content": "For further investigation, we conduct experiments of CODEC, ITI, and RepE on TruthfulQA using paired human-written responses as done in Li et al. (2023) and Zou et al. (2023). We use the same prompt as Li et al. (2023) for consistency and train CODEC and baselines with the provided correct and incorrect responses. The results are shown in Table 5. While ITI and RepE show improvements on Llama2-13B, their performances are inconsistent across LMs, with ITI notably declining on Llama3-8B. By contrast, CODEC outperforms other baselines on the True.*Info score, highlighting its superiority. Additionally, CODEC has shown consistent factuality enhancement across different settings and LMs, which demonstrates its stronger robustness compared to baselines. We attribute this to the design of CODEC, which does not affect the LM's inherent reasoning process, since LM activations are not changed, which allows it to achieve a more stable performance."
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "title",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
0.509,
|
| 1286 |
+
0.851,
|
| 1287 |
+
0.682,
|
| 1288 |
+
0.866
|
| 1289 |
+
],
|
| 1290 |
+
"angle": 0,
|
| 1291 |
+
"content": "5.6 Decoding Speed"
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
0.508,
|
| 1297 |
+
0.874,
|
| 1298 |
+
0.884,
|
| 1299 |
+
0.921
|
| 1300 |
+
],
|
| 1301 |
+
"angle": 0,
|
| 1302 |
+
"content": "Compared to the greedy search baseline, CoDEC introduces additional computation by obtaining the hidden states of candidate tokens. To reduce de"
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "page_number",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
0.478,
|
| 1308 |
+
0.928,
|
| 1309 |
+
0.526,
|
| 1310 |
+
0.941
|
| 1311 |
+
],
|
| 1312 |
+
"angle": 0,
|
| 1313 |
+
"content": "10443"
|
| 1314 |
+
}
|
| 1315 |
+
],
|
| 1316 |
+
[
|
| 1317 |
+
{
|
| 1318 |
+
"type": "table",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
0.117,
|
| 1321 |
+
0.083,
|
| 1322 |
+
0.49,
|
| 1323 |
+
0.131
|
| 1324 |
+
],
|
| 1325 |
+
"angle": 0,
|
| 1326 |
+
"content": "<table><tr><td>Deocding Strategy</td><td>Greedy Search</td><td>ITI</td><td>CODEC</td></tr><tr><td>Throughputs (Toks/s)</td><td>29.07</td><td>28.79</td><td>24.76</td></tr><tr><td>True.*Info.</td><td>27.50</td><td>27.00</td><td>41.10</td></tr></table>"
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "table_footnote",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
0.113,
|
| 1332 |
+
0.14,
|
| 1333 |
+
0.489,
|
| 1334 |
+
0.226
|
| 1335 |
+
],
|
| 1336 |
+
"angle": 0,
|
| 1337 |
+
"content": "Table 6: Throughputs of decoding methods on TruthfulQA using a single A100 GPU, measured in tokens generated per second. The base LM is Llama2-7b. CoDEC improves True.*Info. by over \\(50\\%\\) compared to both Greedy Search and ITI, with a throughput decrease of less than \\(14\\%\\)."
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
0.117,
|
| 1343 |
+
0.254,
|
| 1344 |
+
0.49,
|
| 1345 |
+
0.527
|
| 1346 |
+
],
|
| 1347 |
+
"angle": 0,
|
| 1348 |
+
"content": "coding latency, we apply two strategies to speed up CODEC: (i) we batch the 7 candidate tokens when retrieving their hidden states, enabling parallel processing; (ii) we reuse the hidden state of the selected candidate token from the previous step when computing the token probabilities at the current step, avoiding the need to recompute hidden states by passing through the entire model again. For quantitative analysis, we compare the throughputs of CODEC with greedy search and ITI on TruthfulQA, and list the results in Table 6.3 We can observe that CODEC results in less than a \\(14\\%\\) reduction in throughput compared to ITI, while improving True.\\*Info by over \\(50\\%\\). This makes CODEC particularly suitable for high-stakes domains, where accuracy is critical and latency is a secondary concern, such as finance and legal."
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "title",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
0.114,
|
| 1354 |
+
0.543,
|
| 1355 |
+
0.248,
|
| 1356 |
+
0.558
|
| 1357 |
+
],
|
| 1358 |
+
"angle": 0,
|
| 1359 |
+
"content": "6 Conclusion"
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
0.113,
|
| 1365 |
+
0.57,
|
| 1366 |
+
0.49,
|
| 1367 |
+
0.78
|
| 1368 |
+
],
|
| 1369 |
+
"angle": 0,
|
| 1370 |
+
"content": "We introduced ACTCAB, a calibration method for language models that leverages internal activations to improve the alignment of model confidence with answer correctness. ACTCAB outperforms existing logit-based and consistency-based methods, achieving a \\(39\\%\\) reduction in the ECE on five QA benchmarks. Additionally, we developed CODEC, a confidence-guided decoding strategy that enhances the factual accuracy of model responses by utilizing the calibrated confidence scores from ACTCAB. Our empirical results demonstrate that CODEC significantly improves LM factuality on challenging datasets like TruthfulQA."
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "title",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
0.114,
|
| 1376 |
+
0.795,
|
| 1377 |
+
0.287,
|
| 1378 |
+
0.811
|
| 1379 |
+
],
|
| 1380 |
+
"angle": 0,
|
| 1381 |
+
"content": "Acknowledgements"
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
0.113,
|
| 1387 |
+
0.823,
|
| 1388 |
+
0.489,
|
| 1389 |
+
0.871
|
| 1390 |
+
],
|
| 1391 |
+
"angle": 0,
|
| 1392 |
+
"content": "This work is supported in part by National Science Foundation through grant 2046016. We are grateful to all ARR reviewers for providing useful feedback."
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "title",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
0.51,
|
| 1398 |
+
0.084,
|
| 1399 |
+
0.616,
|
| 1400 |
+
0.099
|
| 1401 |
+
],
|
| 1402 |
+
"angle": 0,
|
| 1403 |
+
"content": "Limitations"
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
0.508,
|
| 1409 |
+
0.109,
|
| 1410 |
+
0.885,
|
| 1411 |
+
0.366
|
| 1412 |
+
],
|
| 1413 |
+
"angle": 0,
|
| 1414 |
+
"content": "Similar to LM intervention methods, ACTCAB and CODEC require access to the LM's activations, which may not be feasible for black-box models, i.e., models that can only be accessed via an API, such as GPT-4. Besides, we do not explore generation tasks involving longer forms, such as paragraphs, where model behavior may vary due to multiple claims. Investigating longer responses could enhance LM trustworthiness in practical use, which we plan to address in future research. Moreover, while the proposed methods improve calibration and factuality, understanding why a particular response is deemed more confident or factual remains challenging. Enhancing interpretability of the confidence signals and decisions made by CODEC could be an area for future work."
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "title",
|
| 1418 |
+
"bbox": [
|
| 1419 |
+
0.51,
|
| 1420 |
+
0.377,
|
| 1421 |
+
0.671,
|
| 1422 |
+
0.392
|
| 1423 |
+
],
|
| 1424 |
+
"angle": 0,
|
| 1425 |
+
"content": "Ethical Statement"
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "text",
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
0.508,
|
| 1431 |
+
0.402,
|
| 1432 |
+
0.885,
|
| 1433 |
+
0.595
|
| 1434 |
+
],
|
| 1435 |
+
"angle": 0,
|
| 1436 |
+
"content": "This work presents methods aimed at improving factuality and reducing harmful responses in LM outputs through activation-based confidence calibration (ACTCAB) and confidence-guided decoding (CODEC). As LMs become more prevalent, ensuring their truthfulness and reliability is crucial for safe deployment. However, our approach still depends on the capabilities of the underlying model architecture. Future research should continue to address potential harms, such as bias, toxicity, and misinformation, as well as the risks of adversarial misuse and privacy concerns."
|
| 1437 |
+
},
|
| 1438 |
+
{
|
| 1439 |
+
"type": "text",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
0.508,
|
| 1442 |
+
0.596,
|
| 1443 |
+
0.887,
|
| 1444 |
+
0.771
|
| 1445 |
+
],
|
| 1446 |
+
"angle": 0,
|
| 1447 |
+
"content": "While reliable question-answering systems can significantly advance access to knowledge and combat the spread of misinformation, it is essential to remain vigilant about the potential for these technologies to generate convincing false content. Promoting truthful AI while mitigating potential harms aligns with ethical priorities for language technology. This work is an initial step, and ongoing interdisciplinary efforts are necessary to explore the societal impacts and ensure the responsible use of LMs."
|
| 1448 |
+
},
|
| 1449 |
+
{
|
| 1450 |
+
"type": "title",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
0.511,
|
| 1453 |
+
0.798,
|
| 1454 |
+
0.61,
|
| 1455 |
+
0.813
|
| 1456 |
+
],
|
| 1457 |
+
"angle": 0,
|
| 1458 |
+
"content": "References"
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"type": "text",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
0.51,
|
| 1464 |
+
0.82,
|
| 1465 |
+
0.774,
|
| 1466 |
+
0.834
|
| 1467 |
+
],
|
| 1468 |
+
"angle": 0,
|
| 1469 |
+
"content": "AI@Meta. 2024. Llama 3 model card."
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "text",
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
0.51,
|
| 1475 |
+
0.842,
|
| 1476 |
+
0.885,
|
| 1477 |
+
0.921
|
| 1478 |
+
],
|
| 1479 |
+
"angle": 0,
|
| 1480 |
+
"content": "Collin Burns, Haotian Ye, Dan Klein, and Jacob Steinhardt. 2023. Discovering latent knowledge in language models without supervision. In *The Eleventh International Conference on Learning Representations*, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net."
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "page_footnote",
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
0.114,
|
| 1486 |
+
0.883,
|
| 1487 |
+
0.489,
|
| 1488 |
+
0.921
|
| 1489 |
+
],
|
| 1490 |
+
"angle": 0,
|
| 1491 |
+
"content": "\\(^{3}\\)Experiments are conducted using Huggingface Transformers https://github.com/huggingface/transformers."
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "page_number",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
0.478,
|
| 1497 |
+
0.928,
|
| 1498 |
+
0.526,
|
| 1499 |
+
0.941
|
| 1500 |
+
],
|
| 1501 |
+
"angle": 0,
|
| 1502 |
+
"content": "10444"
|
| 1503 |
+
}
|
| 1504 |
+
],
|
| 1505 |
+
[
|
| 1506 |
+
{
|
| 1507 |
+
"type": "ref_text",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
0.117,
|
| 1510 |
+
0.086,
|
| 1511 |
+
0.49,
|
| 1512 |
+
0.179
|
| 1513 |
+
],
|
| 1514 |
+
"angle": 0,
|
| 1515 |
+
"content": "Farima Fatahi Bayat, Xin Liu, H. Jagadish, and Lu Wang. 2024. Enhanced language model truthfulness with learnable intervention and uncertainty expression. In *Findings of the Association for Computational Linguistics* ACL 2024, pages 12388-12400, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics."
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "ref_text",
|
| 1519 |
+
"bbox": [
|
| 1520 |
+
0.117,
|
| 1521 |
+
0.187,
|
| 1522 |
+
0.49,
|
| 1523 |
+
0.279
|
| 1524 |
+
],
|
| 1525 |
+
"angle": 0,
|
| 1526 |
+
"content": "Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. 2017. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pages 1321-1330. PMLR."
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "ref_text",
|
| 1530 |
+
"bbox": [
|
| 1531 |
+
0.117,
|
| 1532 |
+
0.289,
|
| 1533 |
+
0.489,
|
| 1534 |
+
0.355
|
| 1535 |
+
],
|
| 1536 |
+
"angle": 0,
|
| 1537 |
+
"content": "Zhengbao Jiang, Jun Araki, Haibo Ding, and Graham Neubig. 2021. How can we know When language models know? on the calibration of language models for question answering. Trans. Assoc. Comput. Linguistics, 9:962-977."
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "ref_text",
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
0.117,
|
| 1543 |
+
0.364,
|
| 1544 |
+
0.489,
|
| 1545 |
+
0.392
|
| 1546 |
+
],
|
| 1547 |
+
"angle": 0,
|
| 1548 |
+
"content": "Matt Gardner Johannes Welbl, Nelson F. Liu. 2017. Crowdsourcing multiple choice science questions."
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"type": "ref_text",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
0.117,
|
| 1554 |
+
0.4,
|
| 1555 |
+
0.489,
|
| 1556 |
+
0.492
|
| 1557 |
+
],
|
| 1558 |
+
"angle": 0,
|
| 1559 |
+
"content": "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."
|
| 1560 |
+
},
|
| 1561 |
+
{
|
| 1562 |
+
"type": "ref_text",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
0.117,
|
| 1565 |
+
0.501,
|
| 1566 |
+
0.489,
|
| 1567 |
+
0.542
|
| 1568 |
+
],
|
| 1569 |
+
"angle": 0,
|
| 1570 |
+
"content": "Muhammad Khalifa, Lajanugen Logeswaran, Moontae Lee, Honglak Lee, and Lu Wang. 2023. Grace: Discriminator-guided chain-of-thought reasoning."
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "ref_text",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
0.117,
|
| 1576 |
+
0.55,
|
| 1577 |
+
0.49,
|
| 1578 |
+
0.63
|
| 1579 |
+
],
|
| 1580 |
+
"angle": 0,
|
| 1581 |
+
"content": "Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net."
|
| 1582 |
+
},
|
| 1583 |
+
{
|
| 1584 |
+
"type": "ref_text",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
0.117,
|
| 1587 |
+
0.639,
|
| 1588 |
+
0.49,
|
| 1589 |
+
0.757
|
| 1590 |
+
],
|
| 1591 |
+
"angle": 0,
|
| 1592 |
+
"content": "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."
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "ref_text",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
0.117,
|
| 1598 |
+
0.766,
|
| 1599 |
+
0.49,
|
| 1600 |
+
0.87
|
| 1601 |
+
],
|
| 1602 |
+
"angle": 0,
|
| 1603 |
+
"content": "Kenneth Li, Oam Patel, Fernanda B. ViΓ©gas, Hanspeter Pfister, and Martin Wattenberg. 2023. Inference-time intervention: Eliciting truthful answers from a language model. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023."
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "ref_text",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
0.117,
|
| 1609 |
+
0.88,
|
| 1610 |
+
0.489,
|
| 1611 |
+
0.92
|
| 1612 |
+
],
|
| 1613 |
+
"angle": 0,
|
| 1614 |
+
"content": "Shiyu Liang, Yixuan Li, and R. Srikant. 2018. Enhancing the reliability of out-of-distribution image detection in neural networks. In 6th International"
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "list",
|
| 1618 |
+
"bbox": [
|
| 1619 |
+
0.117,
|
| 1620 |
+
0.086,
|
| 1621 |
+
0.49,
|
| 1622 |
+
0.92
|
| 1623 |
+
],
|
| 1624 |
+
"angle": 0,
|
| 1625 |
+
"content": null
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "ref_text",
|
| 1629 |
+
"bbox": [
|
| 1630 |
+
0.529,
|
| 1631 |
+
0.086,
|
| 1632 |
+
0.884,
|
| 1633 |
+
0.127
|
| 1634 |
+
],
|
| 1635 |
+
"angle": 0,
|
| 1636 |
+
"content": "Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net."
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"type": "ref_text",
|
| 1640 |
+
"bbox": [
|
| 1641 |
+
0.512,
|
| 1642 |
+
0.135,
|
| 1643 |
+
0.883,
|
| 1644 |
+
0.174
|
| 1645 |
+
],
|
| 1646 |
+
"angle": 0,
|
| 1647 |
+
"content": "Stephanie Lin, Jacob Hilton, and Owain Evans. 2022a. Teaching models to express their uncertainty in words. Trans. Mach. Learn. Res., 2022."
|
| 1648 |
+
},
|
| 1649 |
+
{
|
| 1650 |
+
"type": "ref_text",
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
0.512,
|
| 1653 |
+
0.185,
|
| 1654 |
+
0.883,
|
| 1655 |
+
0.264
|
| 1656 |
+
],
|
| 1657 |
+
"angle": 0,
|
| 1658 |
+
"content": "Stephanie Lin, Jacob Hilton, and Owain Evans. 2022b. TruthfulQA: Measuring how models mimic human falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3214-3252, Dublin, Ireland. Association for Computational Linguistics."
|
| 1659 |
+
},
|
| 1660 |
+
{
|
| 1661 |
+
"type": "ref_text",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
0.512,
|
| 1664 |
+
0.273,
|
| 1665 |
+
0.883,
|
| 1666 |
+
0.326
|
| 1667 |
+
],
|
| 1668 |
+
"angle": 0,
|
| 1669 |
+
"content": "Xin Liu, Muhammad Khalifa, and Lu Wang. 2024. Litcab: Lightweight language model calibration over short- and long-form responses. In The Twelfth International Conference on Learning Representations."
|
| 1670 |
+
},
|
| 1671 |
+
{
|
| 1672 |
+
"type": "ref_text",
|
| 1673 |
+
"bbox": [
|
| 1674 |
+
0.512,
|
| 1675 |
+
0.335,
|
| 1676 |
+
0.883,
|
| 1677 |
+
0.426
|
| 1678 |
+
],
|
| 1679 |
+
"angle": 0,
|
| 1680 |
+
"content": "Alexandru Niculescu-Mizil and Rich Caruana. 2005. Predicting good probabilities with supervised learning. In Machine Learning, Proceedings of the Twenty-Second International Conference (ICML 2005), Bonn, Germany, August 7-11, 2005, volume 119 of ACM International Conference Proceeding Series, pages 625-632. ACM."
|
| 1681 |
+
},
|
| 1682 |
+
{
|
| 1683 |
+
"type": "ref_text",
|
| 1684 |
+
"bbox": [
|
| 1685 |
+
0.512,
|
| 1686 |
+
0.436,
|
| 1687 |
+
0.883,
|
| 1688 |
+
0.528
|
| 1689 |
+
],
|
| 1690 |
+
"angle": 0,
|
| 1691 |
+
"content": "Jie Ren, Jiaming Luo, Yao Zhao, Kundan Krishna, Mohammad Saleh, Balaji Lakshminarayanan, and Peter J. Liu. 2023a. Out-of-distribution detection and selective generation for conditional language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net."
|
| 1692 |
+
},
|
| 1693 |
+
{
|
| 1694 |
+
"type": "ref_text",
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
0.512,
|
| 1697 |
+
0.538,
|
| 1698 |
+
0.883,
|
| 1699 |
+
0.643
|
| 1700 |
+
],
|
| 1701 |
+
"angle": 0,
|
| 1702 |
+
"content": "Jie Ren, Yao Zhao, Tu Vu, Peter J. Liu, and Balaji Lakshminarayanan. 2023b. Self-evaluation improves selective generation in large language models. In Proceedings on \"I Can't Believe It's Not Better: Failure Modes in the Age of Foundation Models\" at NeurIPS 2023 Workshops, 16 December 2023, New Orleans, Louisiana, USA, volume 239 of Proceedings of Machine Learning Research, pages 49-64. PMLR."
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"type": "ref_text",
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
0.512,
|
| 1708 |
+
0.652,
|
| 1709 |
+
0.883,
|
| 1710 |
+
0.731
|
| 1711 |
+
],
|
| 1712 |
+
"angle": 0,
|
| 1713 |
+
"content": "Chenglei Si, Zhe Gan, Zhengyuan Yang, Shuohang Wang, Jianfeng Wang, Jordan L. Boyd-Graber, and Lijuan Wang. 2023. Prompting GPT-3 to be reliable. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net."
|
| 1714 |
+
},
|
| 1715 |
+
{
|
| 1716 |
+
"type": "ref_text",
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
0.512,
|
| 1719 |
+
0.74,
|
| 1720 |
+
0.883,
|
| 1721 |
+
0.833
|
| 1722 |
+
],
|
| 1723 |
+
"angle": 0,
|
| 1724 |
+
"content": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. 2016. Rethinking the inception architecture for computer vision. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 2818-2826. IEEE Computer Society."
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"type": "ref_text",
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
0.512,
|
| 1730 |
+
0.842,
|
| 1731 |
+
0.883,
|
| 1732 |
+
0.92
|
| 1733 |
+
],
|
| 1734 |
+
"angle": 0,
|
| 1735 |
+
"content": "Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher D Manning. 2023a. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. arXiv preprint arXiv:2305.14975."
|
| 1736 |
+
},
|
| 1737 |
+
{
|
| 1738 |
+
"type": "list",
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
0.512,
|
| 1741 |
+
0.086,
|
| 1742 |
+
0.884,
|
| 1743 |
+
0.92
|
| 1744 |
+
],
|
| 1745 |
+
"angle": 0,
|
| 1746 |
+
"content": null
|
| 1747 |
+
},
|
| 1748 |
+
{
|
| 1749 |
+
"type": "page_number",
|
| 1750 |
+
"bbox": [
|
| 1751 |
+
0.478,
|
| 1752 |
+
0.929,
|
| 1753 |
+
0.525,
|
| 1754 |
+
0.941
|
| 1755 |
+
],
|
| 1756 |
+
"angle": 0,
|
| 1757 |
+
"content": "10445"
|
| 1758 |
+
}
|
| 1759 |
+
],
|
| 1760 |
+
[
|
| 1761 |
+
{
|
| 1762 |
+
"type": "text",
|
| 1763 |
+
"bbox": [
|
| 1764 |
+
0.116,
|
| 1765 |
+
0.086,
|
| 1766 |
+
0.491,
|
| 1767 |
+
0.219
|
| 1768 |
+
],
|
| 1769 |
+
"angle": 0,
|
| 1770 |
+
"content": "Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher D. Manning. 2023b. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6-10, 2023, pages 5433-5442. Association for Computational Linguistics."
|
| 1771 |
+
},
|
| 1772 |
+
{
|
| 1773 |
+
"type": "text",
|
| 1774 |
+
"bbox": [
|
| 1775 |
+
0.116,
|
| 1776 |
+
0.23,
|
| 1777 |
+
0.492,
|
| 1778 |
+
0.53
|
| 1779 |
+
],
|
| 1780 |
+
"angle": 0,
|
| 1781 |
+
"content": "Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton-Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, AurΓ©lien RodrΓguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open foundation and finetuned chat models. CoRR, abs/2307.09288."
|
| 1782 |
+
},
|
| 1783 |
+
{
|
| 1784 |
+
"type": "text",
|
| 1785 |
+
"bbox": [
|
| 1786 |
+
0.116,
|
| 1787 |
+
0.542,
|
| 1788 |
+
0.49,
|
| 1789 |
+
0.634
|
| 1790 |
+
],
|
| 1791 |
+
"angle": 0,
|
| 1792 |
+
"content": "Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2023. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net."
|
| 1793 |
+
},
|
| 1794 |
+
{
|
| 1795 |
+
"type": "text",
|
| 1796 |
+
"bbox": [
|
| 1797 |
+
0.116,
|
| 1798 |
+
0.646,
|
| 1799 |
+
0.49,
|
| 1800 |
+
0.7
|
| 1801 |
+
],
|
| 1802 |
+
"angle": 0,
|
| 1803 |
+
"content": "Miao Xiong, Zhiyuan Hu, Xinyang Lu, Yifei Li, Jie Fu, Junxian He, and Bryan Hooi. 2023. Can llms express their uncertainty? an empirical evaluation of confidence elicitation in llms. CoRR, abs/2306.13063."
|
| 1804 |
+
},
|
| 1805 |
+
{
|
| 1806 |
+
"type": "text",
|
| 1807 |
+
"bbox": [
|
| 1808 |
+
0.116,
|
| 1809 |
+
0.711,
|
| 1810 |
+
0.49,
|
| 1811 |
+
0.804
|
| 1812 |
+
],
|
| 1813 |
+
"angle": 0,
|
| 1814 |
+
"content": "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, EMNLP 2015, Lisbon, Portugal, September 17-21, 2015, pages 2013-2018. The Association for Computational Linguistics."
|
| 1815 |
+
},
|
| 1816 |
+
{
|
| 1817 |
+
"type": "text",
|
| 1818 |
+
"bbox": [
|
| 1819 |
+
0.116,
|
| 1820 |
+
0.816,
|
| 1821 |
+
0.491,
|
| 1822 |
+
0.922
|
| 1823 |
+
],
|
| 1824 |
+
"angle": 0,
|
| 1825 |
+
"content": "Polina Zablotskaia, Du Phan, Joshua Maynez, Shashi Narayan, Jie Ren, and Jeremiah Z. Liu. 2023. On uncertainty calibration and selective generation in probabilistic neural summarization: A benchmark study. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, Singapore, December 6-10, 2023, pages 2980-2992. Association for Computational Linguistics."
|
| 1826 |
+
},
|
| 1827 |
+
{
|
| 1828 |
+
"type": "text",
|
| 1829 |
+
"bbox": [
|
| 1830 |
+
0.512,
|
| 1831 |
+
0.086,
|
| 1832 |
+
0.885,
|
| 1833 |
+
0.166
|
| 1834 |
+
],
|
| 1835 |
+
"angle": 0,
|
| 1836 |
+
"content": "Yue Zhang, Yafu Li, Leyang Cui, Deng Cai, Lemao Liu, Tingchen Fu, Xinting Huang, Enbo Zhao, Yu Zhang, Yulong Chen, Longyue Wang, Anh Tuan Luu, Wei Bi, Freda Shi, and Shuming Shi. 2023. Siren's song in the AI ocean: A survey on hallucination in large language models. CoRR, abs/2309.01219."
|
| 1837 |
+
},
|
| 1838 |
+
{
|
| 1839 |
+
"type": "text",
|
| 1840 |
+
"bbox": [
|
| 1841 |
+
0.512,
|
| 1842 |
+
0.261,
|
| 1843 |
+
0.885,
|
| 1844 |
+
0.38
|
| 1845 |
+
],
|
| 1846 |
+
"angle": 0,
|
| 1847 |
+
"content": "Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann-Kathrin Dombrowski, Shashwat Goel, Nathaniel Li, Michael J. Byun, Zifan Wang, Alex Mallen, Steven Basart, Sanmi Koyejo, Dawn Song, Matt Fredrikson, J. Zico Kolter, and Dan Hendrycks. 2023. Representation engineering: A top-down approach to AI transparency. CoRR, abs/2310.01405."
|
| 1848 |
+
},
|
| 1849 |
+
{
|
| 1850 |
+
"type": "title",
|
| 1851 |
+
"bbox": [
|
| 1852 |
+
0.51,
|
| 1853 |
+
0.491,
|
| 1854 |
+
0.82,
|
| 1855 |
+
0.508
|
| 1856 |
+
],
|
| 1857 |
+
"angle": 0,
|
| 1858 |
+
"content": "A Response Correctness Labeling"
|
| 1859 |
+
},
|
| 1860 |
+
{
|
| 1861 |
+
"type": "text",
|
| 1862 |
+
"bbox": [
|
| 1863 |
+
0.508,
|
| 1864 |
+
0.57,
|
| 1865 |
+
0.885,
|
| 1866 |
+
0.747
|
| 1867 |
+
],
|
| 1868 |
+
"angle": 0,
|
| 1869 |
+
"content": "For tasks where the model responses are relatively short, such as TriviaQA, NaturalQuestions, and SciQ, we use the ROUGE score to measure the similarity between the response and the ground truth, labeling responses with a score greater than 0.3 as correct. However, for TruthfulQA and WikiQA, where responses are sentence-length, the ROUGE score might not be accurate. In these cases, we ask GPT-4 to evaluate the semantic equivalence between the response and the ground truth. The prompt is listed below:"
|
| 1870 |
+
},
|
| 1871 |
+
{
|
| 1872 |
+
"type": "text",
|
| 1873 |
+
"bbox": [
|
| 1874 |
+
0.522,
|
| 1875 |
+
0.845,
|
| 1876 |
+
0.867,
|
| 1877 |
+
0.892
|
| 1878 |
+
],
|
| 1879 |
+
"angle": 0,
|
| 1880 |
+
"content": "Are the following two answers to my question \"[Question]\" semantically equivalent? (Answer \"Yes\" or \"No\" first, and then explain your answer.)"
|
| 1881 |
+
},
|
| 1882 |
+
{
|
| 1883 |
+
"type": "text",
|
| 1884 |
+
"bbox": [
|
| 1885 |
+
0.526,
|
| 1886 |
+
0.893,
|
| 1887 |
+
0.632,
|
| 1888 |
+
0.903
|
| 1889 |
+
],
|
| 1890 |
+
"angle": 0,
|
| 1891 |
+
"content": "1. [Reference]"
|
| 1892 |
+
},
|
| 1893 |
+
{
|
| 1894 |
+
"type": "text",
|
| 1895 |
+
"bbox": [
|
| 1896 |
+
0.526,
|
| 1897 |
+
0.904,
|
| 1898 |
+
0.669,
|
| 1899 |
+
0.916
|
| 1900 |
+
],
|
| 1901 |
+
"angle": 0,
|
| 1902 |
+
"content": "2. [Model Response]"
|
| 1903 |
+
},
|
| 1904 |
+
{
|
| 1905 |
+
"type": "list",
|
| 1906 |
+
"bbox": [
|
| 1907 |
+
0.526,
|
| 1908 |
+
0.893,
|
| 1909 |
+
0.669,
|
| 1910 |
+
0.916
|
| 1911 |
+
],
|
| 1912 |
+
"angle": 0,
|
| 1913 |
+
"content": null
|
| 1914 |
+
},
|
| 1915 |
+
{
|
| 1916 |
+
"type": "page_number",
|
| 1917 |
+
"bbox": [
|
| 1918 |
+
0.478,
|
| 1919 |
+
0.929,
|
| 1920 |
+
0.526,
|
| 1921 |
+
0.941
|
| 1922 |
+
],
|
| 1923 |
+
"angle": 0,
|
| 1924 |
+
"content": "10446"
|
| 1925 |
+
}
|
| 1926 |
+
],
|
| 1927 |
+
[
|
| 1928 |
+
{
|
| 1929 |
+
"type": "title",
|
| 1930 |
+
"bbox": [
|
| 1931 |
+
0.116,
|
| 1932 |
+
0.084,
|
| 1933 |
+
0.357,
|
| 1934 |
+
0.101
|
| 1935 |
+
],
|
| 1936 |
+
"angle": 0,
|
| 1937 |
+
"content": "B Prompt for TruthfulQA"
|
| 1938 |
+
},
|
| 1939 |
+
{
|
| 1940 |
+
"type": "text",
|
| 1941 |
+
"bbox": [
|
| 1942 |
+
0.127,
|
| 1943 |
+
0.125,
|
| 1944 |
+
0.457,
|
| 1945 |
+
0.196
|
| 1946 |
+
],
|
| 1947 |
+
"angle": 0,
|
| 1948 |
+
"content": "Interpret each question literally, and as a question about the real world; carefully research each answer, without falling prey to any common myths; and reply \"I have no comment\" unless you are completely certain of the answer."
|
| 1949 |
+
},
|
| 1950 |
+
{
|
| 1951 |
+
"type": "text",
|
| 1952 |
+
"bbox": [
|
| 1953 |
+
0.128,
|
| 1954 |
+
0.208,
|
| 1955 |
+
0.48,
|
| 1956 |
+
0.231
|
| 1957 |
+
],
|
| 1958 |
+
"angle": 0,
|
| 1959 |
+
"content": "Q: What is human life expectancy in the United States?"
|
| 1960 |
+
},
|
| 1961 |
+
{
|
| 1962 |
+
"type": "text",
|
| 1963 |
+
"bbox": [
|
| 1964 |
+
0.128,
|
| 1965 |
+
0.232,
|
| 1966 |
+
0.482,
|
| 1967 |
+
0.256
|
| 1968 |
+
],
|
| 1969 |
+
"angle": 0,
|
| 1970 |
+
"content": "A: Human life expectancy in the United States is 78 years."
|
| 1971 |
+
},
|
| 1972 |
+
{
|
| 1973 |
+
"type": "text",
|
| 1974 |
+
"bbox": [
|
| 1975 |
+
0.128,
|
| 1976 |
+
0.267,
|
| 1977 |
+
0.486,
|
| 1978 |
+
0.279
|
| 1979 |
+
],
|
| 1980 |
+
"angle": 0,
|
| 1981 |
+
"content": "Q: Who was president of the United States in 1955?"
|
| 1982 |
+
},
|
| 1983 |
+
{
|
| 1984 |
+
"type": "text",
|
| 1985 |
+
"bbox": [
|
| 1986 |
+
0.128,
|
| 1987 |
+
0.28,
|
| 1988 |
+
0.465,
|
| 1989 |
+
0.302
|
| 1990 |
+
],
|
| 1991 |
+
"angle": 0,
|
| 1992 |
+
"content": "A: Dwight D. Eisenhower was president of the United States in 1955."
|
| 1993 |
+
},
|
| 1994 |
+
{
|
| 1995 |
+
"type": "text",
|
| 1996 |
+
"bbox": [
|
| 1997 |
+
0.128,
|
| 1998 |
+
0.314,
|
| 1999 |
+
0.411,
|
| 2000 |
+
0.326
|
| 2001 |
+
],
|
| 2002 |
+
"angle": 0,
|
| 2003 |
+
"content": "Q: What is the square root of banana?"
|
| 2004 |
+
},
|
| 2005 |
+
{
|
| 2006 |
+
"type": "text",
|
| 2007 |
+
"bbox": [
|
| 2008 |
+
0.128,
|
| 2009 |
+
0.327,
|
| 2010 |
+
0.288,
|
| 2011 |
+
0.337
|
| 2012 |
+
],
|
| 2013 |
+
"angle": 0,
|
| 2014 |
+
"content": "A: I have no comment."
|
| 2015 |
+
},
|
| 2016 |
+
{
|
| 2017 |
+
"type": "text",
|
| 2018 |
+
"bbox": [
|
| 2019 |
+
0.128,
|
| 2020 |
+
0.35,
|
| 2021 |
+
0.351,
|
| 2022 |
+
0.361
|
| 2023 |
+
],
|
| 2024 |
+
"angle": 0,
|
| 2025 |
+
"content": "Q: How does a telescope work?"
|
| 2026 |
+
},
|
| 2027 |
+
{
|
| 2028 |
+
"type": "text",
|
| 2029 |
+
"bbox": [
|
| 2030 |
+
0.128,
|
| 2031 |
+
0.362,
|
| 2032 |
+
0.488,
|
| 2033 |
+
0.386
|
| 2034 |
+
],
|
| 2035 |
+
"angle": 0,
|
| 2036 |
+
"content": "A: Telescopes use lenses or mirrors to focus light and make objects appear closer."
|
| 2037 |
+
},
|
| 2038 |
+
{
|
| 2039 |
+
"type": "text",
|
| 2040 |
+
"bbox": [
|
| 2041 |
+
0.128,
|
| 2042 |
+
0.397,
|
| 2043 |
+
0.411,
|
| 2044 |
+
0.408
|
| 2045 |
+
],
|
| 2046 |
+
"angle": 0,
|
| 2047 |
+
"content": "Q: Where were the 1992 Olympics held?"
|
| 2048 |
+
},
|
| 2049 |
+
{
|
| 2050 |
+
"type": "text",
|
| 2051 |
+
"bbox": [
|
| 2052 |
+
0.128,
|
| 2053 |
+
0.409,
|
| 2054 |
+
0.461,
|
| 2055 |
+
0.433
|
| 2056 |
+
],
|
| 2057 |
+
"angle": 0,
|
| 2058 |
+
"content": "A: The 1992 Olympics were held in Barcelona, Spain."
|
| 2059 |
+
},
|
| 2060 |
+
{
|
| 2061 |
+
"type": "title",
|
| 2062 |
+
"bbox": [
|
| 2063 |
+
0.115,
|
| 2064 |
+
0.457,
|
| 2065 |
+
0.486,
|
| 2066 |
+
0.49
|
| 2067 |
+
],
|
| 2068 |
+
"angle": 0,
|
| 2069 |
+
"content": "C Failed examples of CoDEC response in SciQ"
|
| 2070 |
+
},
|
| 2071 |
+
{
|
| 2072 |
+
"type": "text",
|
| 2073 |
+
"bbox": [
|
| 2074 |
+
0.113,
|
| 2075 |
+
0.5,
|
| 2076 |
+
0.49,
|
| 2077 |
+
0.644
|
| 2078 |
+
],
|
| 2079 |
+
"angle": 0,
|
| 2080 |
+
"content": "Table 7 presents several failure examples of CODEC. These cases echo our hypothesis that CODEC struggles due to the language model's lack of scientific knowledge. As a result, CODEC, which consists of an additional single linear layer, either generates an incorrect answer (as seen in the first two examples) or repeats the same incorrect response as the greedy search (as in the third and fourth examples)."
|
| 2081 |
+
},
|
| 2082 |
+
{
|
| 2083 |
+
"type": "page_number",
|
| 2084 |
+
"bbox": [
|
| 2085 |
+
0.478,
|
| 2086 |
+
0.928,
|
| 2087 |
+
0.526,
|
| 2088 |
+
0.941
|
| 2089 |
+
],
|
| 2090 |
+
"angle": 0,
|
| 2091 |
+
"content": "10447"
|
| 2092 |
+
}
|
| 2093 |
+
],
|
| 2094 |
+
[
|
| 2095 |
+
{
|
| 2096 |
+
"type": "table",
|
| 2097 |
+
"bbox": [
|
| 2098 |
+
0.215,
|
| 2099 |
+
0.375,
|
| 2100 |
+
0.784,
|
| 2101 |
+
0.602
|
| 2102 |
+
],
|
| 2103 |
+
"angle": 0,
|
| 2104 |
+
"content": "<table><tr><td>Task</td><td>Example</td></tr><tr><td rowspan=\"4\">SciQ</td><td>Question: About how tall can mid-ocean ridges be?Ground Truth: about 2 kmGreedy Decoding: 10000 metersCoDec: 1000 meters</td></tr><tr><td>Question: What is the term for the total kinetic energy of moving particles of matter?Ground Truth: thermal energyGreedy Decoding: kinetic energyCoDec: temperature</td></tr><tr><td>Question: What do most living things use to make atp from glucose?Ground Truth: oxygenGreedy Decoding: ATP synthaseCoDec: ATP synthase</td></tr><tr><td>Question: What is the most abundant metal of the earth's crust?Ground Truth: aluminumGreedy Decoding: ironCoDec: iron</td></tr></table>"
|
| 2105 |
+
},
|
| 2106 |
+
{
|
| 2107 |
+
"type": "table_caption",
|
| 2108 |
+
"bbox": [
|
| 2109 |
+
0.341,
|
| 2110 |
+
0.611,
|
| 2111 |
+
0.655,
|
| 2112 |
+
0.626
|
| 2113 |
+
],
|
| 2114 |
+
"angle": 0,
|
| 2115 |
+
"content": "Table 7: Failure examples of CODEC in SciQ."
|
| 2116 |
+
},
|
| 2117 |
+
{
|
| 2118 |
+
"type": "page_number",
|
| 2119 |
+
"bbox": [
|
| 2120 |
+
0.478,
|
| 2121 |
+
0.928,
|
| 2122 |
+
0.526,
|
| 2123 |
+
0.941
|
| 2124 |
+
],
|
| 2125 |
+
"angle": 0,
|
| 2126 |
+
"content": "10448"
|
| 2127 |
+
}
|
| 2128 |
+
]
|
| 2129 |
+
]
|
2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/ed7d8476-0313-45c0-a699-d762f63216f1_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2413d6ae0c5909b78134f6fd587cd17e23d83ca9dacf8429a75808111cc9e6d9
|
| 3 |
+
size 544420
|
2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/full.md
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding
|
| 2 |
+
|
| 3 |
+
Xin Liu, Farima Fatahi Bayat, Lu Wang
|
| 4 |
+
|
| 5 |
+
Computer Science and Engineering
|
| 6 |
+
|
| 7 |
+
University of Michigan
|
| 8 |
+
|
| 9 |
+
Ann Arbor, MI
|
| 10 |
+
|
| 11 |
+
{liuxincs, farimaf, wangluxy}@umich.edu
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Calibrating language models (LMs) aligns their generation confidence with the actual likelihood of answer correctness, which can inform users about LMs' reliability and mitigate hallucinated content. However, prior calibration methods, such as self-consistency-based and logit-based approaches, are either limited in inference-time efficiency or fall short of providing informative signals. Moreover, simply filtering out low-confidence responses reduces the LM's helpfulness when the answers are correct. Therefore, effectively using calibration techniques to enhance an LM's factuality remains an unsolved challenge. In this paper, we first propose an activation-based calibration method, ACTCAB, which trains a linear layer on top of the LM's last-layer activations that can better capture the representations of knowledge. Built on top of ACTCAB, we further propose CODEC, a confidence-guided decoding strategy to elicit truthful answers with high confidence from LMs. By evaluating on five popular QA benchmarks, ACTCAB achieves superior calibration performance than all competitive baselines, e.g., by reducing the average expected calibration error (ECE) score by up to $39\%$ . Further experiments on CODEC show consistent improvements in several LMs' factuality on challenging QA datasets, such as TruthfulQA, highlighting the value of confidence signals in enhancing the factuality.
|
| 16 |
+
|
| 17 |
+
# 1 Introduction
|
| 18 |
+
|
| 19 |
+
Despite their impressive language understanding and generation capabilities, language models (LMs) still produce hallucinated content (Zhang et al., 2023), undermining their trustworthiness. One mitigation is to calibrate LMs' confidence in their outputs to align with the actual likelihood of their responses being correct (Jiang et al.,
|
| 20 |
+
|
| 21 |
+
2021; Liu et al., 2024). Well-calibrated confidence scores allow users to discern the reliability of LMs' responses, enabling them not only to determine whether to trust the model's outputs but also to decide when further verification is needed.
|
| 22 |
+
|
| 23 |
+
Popular LM calibration methods include training-free, inference-only approaches through verbalization (Tian et al., 2023a) or self-consistency measurements (Wang et al., 2023) and training-based methods, such as tuning temperature parameters (Liang et al., 2018) or learning uncertainty estimations from LMs' logits (Liu et al., 2024). Despite their potential compatibility with many LMs, training-free methods are limited by the models' instruction-following capabilities and can be computationally expensive during inference. Training-based methods, on the other hand, directly learn to output model's uncertainty. For instance, Kuhn et al. (2023) leverages the token logits predicted by the model to estimate the confidence of the entire response. Yet model logits may not capture knowledge representations and can be sensitive to tokenization procedures. Moreover, model confidence has been naively used by setting a threshold to filter out low-probability responses (Ren et al., 2023a; Zablotskaia et al., 2023), leaving these queries unanswered and reducing model's helpfulness. Despite progress in calibration research, effectively using calibration output to enhance the LM's factuality remains underexplored.
|
| 24 |
+
|
| 25 |
+
In this work, we make two primary contributions: (i) a lightweight and effective LM calibration technique, and (ii) a decoding strategy that uses calibrated confidence to elicit correct responses from LMs. Concretely, we propose an Activation-based Calibration method, ACTCAB, that estimates model's uncertainty from its internal activations. ACTCAB is inspired by recent work that a truthful direction can be identified from LM activations to steer generations (Burns et al., 2023; Li et al., 2023). Moreover, prior work (Niculescu
|
| 26 |
+
|
| 27 |
+
Mizil and Caruana, 2005; Guo et al., 2017) has shown that optimizing over binary correctness labels contributes to poor calibration. To address this issue, we propose a novel procedure to construct soft labels that better represent the expected confidence in the training objective. For soft label creation, we use $K$ -fold cross-validation to collect the classifier's prediction and its probability for each training instance, then calculate the expected confidence over all folds using a method in a similar spirit of the Expected Calibration Error (ECE).
|
| 28 |
+
|
| 29 |
+
Using ACTCAB, our second contribution is a Confidence-guided Decoding strategy, CODEC. CODEC directs the LM to generate outputs with higher confidence by incorporating the confidence scores of candidate tokens with the top-K highest probabilities predicted by the LM. This increases the likelihood that the answers are correct while maintaining inference efficiency. Unlike selective generation, CODEC preserves the helpfulness of LM by not filtering out responses, but rather by better discerning the correct answers. This aligns with the principles of other inference-time intervention methods (Li et al., 2023; Zou et al., 2023; Fatahi Bayat et al., 2024). However, CODEC differs by keeping the model unchanged and does not affect the LM's original reasoning process, resulting in more stable performance across different training data and LMs, as shown in our experiments.
|
| 30 |
+
|
| 31 |
+
To assess the newly proposed calibration method, we apply ACTCAB on Llama2-7b (Touvron et al., 2023) and experiment on five popular open-ended question-answering (QA) datasets, as collected by Liu et al. (2024). The results show that our method achieves superior calibration performance, reducing the ECE score by an average of $39\%$ compared to the most competitive baseline, the logit-based LITcAB method (Liu et al., 2024). Again, ACTCAB uses the more informative internal activations to better model the global context, resulting in more accurate confidence scores at the response level than logit-based methods that primarily focus on the correctness of individual tokens. Furthermore, as the number of parameters in the newly trained classifier is less than $0.001\%$ of original LM parameters, ACTCAB also enjoys a superior inference efficiency compared to self-consistency-based methods.
|
| 32 |
+
|
| 33 |
+
Moreover, we use CoDEC to improve the factuality of LMs after being calibrated by ACTCAB. We compare CoDEC with selective generation (Ren et al., 2023b), which keeps the model
|
| 34 |
+
|
| 35 |
+
output with the highest confidence score among multiple generations, and two state-of-the-art intervention techniques that aim to improve factuality by shifting model activations during inference: Inference-Time Intervention (ITI) (Li et al., 2023) and Representation Engineering (RepE) (Zou et al., 2023) on three LMs, Llama2-7b, Llama2-13b (Touvron et al., 2023) and Llama3-8b (AI@Meta, 2024). CODEC outperforms the nontrivial comparisons on challenging QA benchmarks, including Natural Questions and TruthfulQA, while achieving comparable performance on other tasks.
|
| 36 |
+
|
| 37 |
+
# 2 Related Work
|
| 38 |
+
|
| 39 |
+
# 2.1 Language Model Calibration
|
| 40 |
+
|
| 41 |
+
Popular language model (LM) calibration methods can be categorized into three main types: verbalization-based, self-consistency-based, and logit-based approaches. Verbalization methods rely on LM's instruction-following ability to express their answer uncertainty. For example, Tian et al. (2023b) prompts the LM to provide a probability between 0.0 and 1.0 to indicate the correctness of its response. Self-consistency-based methods operate on the intuition that a model is likely to generate consistent content when it is confident about a question (Wang et al., 2023). Therefore, multiple responses are sampled and the confidence is estimated after grouping responses according to their semantic similarity (Kuhn et al., 2023; Xiong et al., 2023). However, verbalization-based and consistency-based methods can be limited by the LM's ability to follow instructions and often incur high inference costs. Logit-based methods, on the other hand, address these issues by directly using the predicted token probabilities to estimate the confidence of the entire response. For instance, both Si et al. (2023) and Liu et al. (2024) compute the response uncertainty by using the geometric mean of the token probability sequence. Nevertheless, token-level logits only reflect the model's uncertainty about the next token prediction, which hardly captures the correctness of the full responses. Different from all the prior work, ACTCAB directly estimates the answer uncertainty using LM's internal activations, achieving more accurate confidence scores and greater inference efficiency.
|
| 42 |
+
|
| 43 |
+
# 2.2 Enhancing Factuality via Inference Intervention
|
| 44 |
+
|
| 45 |
+
Inference intervention methods collect directional vectors representing truthfulness and incorporate them into the LMs' forward pass, thereby steering them towards factual outputs. For instance, Inference-time Intervention (ITI) (Li et al., 2023) uses linear probing to identify attention heads that exhibit distinct activation distributions for true and false statements. Interventions are then conducted on these heads' activations to direct the model towards producing factual outputs. Similarly, Representation Engineering (RepE) (Zou et al., 2023) detects truthful directions in each layer by prompting the language model with pairs of instructions that have contrasting meanings and incorporates these directions into each layer during decoding. These methods are closely related to CODEC, since they also modify model behavior during the decoding phase. The distinction between CODEC and intervention methods lies in their application. Both ITI and RepE directly intervene in the activations of LMs, while CODEC adjusts the LM's output distribution. The former affects the internal reasoning process of the LM, which might lead to even worse performance, as evidenced in our experiments. Conversely, CODEC does not affect the model's inherent reasoning process, keeping the LM unchanged and providing stable improvement.
|
| 46 |
+
|
| 47 |
+
Selective generation is also related to our work. Typically, this approach estimates the confidence of model-generated responses and filters out those with confidence below a certain threshold (Ren et al., 2023b; Zablotskaia et al., 2023). Although this method produces more trustworthy responses, it leaves some questions unanswered, reducing overall helpfulness. In contrast, CODEC directly guides the model to generate high-confidence responses, enhancing the model's factuality without sacrificing helpfulness.
|
| 48 |
+
|
| 49 |
+
# 3 ACTCAB: Activation-based Confidence Calibration
|
| 50 |
+
|
| 51 |
+
Recent studies (Burns et al., 2023; Li et al., 2023) show that the activations within LMs may encode a notion of "truth" if the model knows the facts. Inspired by this, we aim to calibrate an LM's certainty about its answers based on the activations.
|
| 52 |
+
|
| 53 |
+
In this section, we first describe the architecture of ACTCAB in Β§3.1, and then present a novel procedure to construct soft labels for use in the training
|
| 54 |
+
|
| 55 |
+
objective in Β§3.2. We employ in-context learning to ensure the proper format of answers for each task. For simplicity, mentions of demonstrations are omitted in the following sections.
|
| 56 |
+
|
| 57 |
+
# 3.1 Eliciting Confidence from Activations
|
| 58 |
+
|
| 59 |
+
Let $x$ represent the input query, $y$ denotes the model's response, which consists of $|y|$ tokens. The corresponding sequence of activations is denoted as $\mathbf{h}_{[1:|y|]} = [\mathbf{h}_1,\mathbf{h}_2,\dots ,\mathbf{h}_{|y|}]$ . In our approach, we use the hidden states after the feedforward network from the last layer of the LM as the activations. We train a calibration classifier $p_{\theta}(y|x)$ that employs the average activations as its input and predicts the confidence of $y$ , i.e., $p_{\theta}(y|x) = \sigma (\mathbf{W}\cdot \frac{1}{|y|}\sum_{i = 1}^{|y|}\mathbf{h}_i + \mathbf{B})$ . Here $\sigma (\cdot)$ is the sigmoid function, and $\mathbf{W}$ and $\mathbf{B}$ are learnable parameters.
|
| 60 |
+
|
| 61 |
+
Since the classifier is designed to predict the confidence of model responses, it is crucial to train it with real LM generations to ensure consistent training and test distributions. Therefore, we construct training instances by sampling from LM responses themselves. To achieve this, we repeatedly sample four model responses for each query in the training dataset. Following Liu et al. (2024), we employ ROUGE Score (Ren et al., 2023a) and GPT-4 to determine the correctness of each sampled response $y$ , with details in Appendix A.
|
| 62 |
+
|
| 63 |
+
Given these binary correctness labels, a typical training objective is the mean squared error (MSE) loss, which is defined as:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\mathcal {L} _ {M S E} = \frac {1}{| \mathcal {D} |} \sum_ {(x, y) \in \mathcal {D}} \left(\mathbf {1} (y \text {i s c o r r e c t}) - p _ {\theta} (y | x)\right) ^ {2}, \tag {1}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
where $\mathcal{D}$ is the set of training instances, and $1(\cdot)$ is the indicator function. This regression objective is preferred over classification objectives, such as cross-entropy, as linear regression inherently maps input features to output predictions in a continuous space, resulting in smoother distributions and thus benefiting calibration. We take the classifier's predicted likelihood as the estimated confidence.
|
| 70 |
+
|
| 71 |
+
# 3.2 Constructing Soft Training Labels via $K$ -fold Cross-validation
|
| 72 |
+
|
| 73 |
+
The binary labels used in Equation 1 can cause poor calibration (Niculescu-Mizil and Caruana, 2005; Guo et al., 2017), as they encourage the model to produce sharp output distribution, leading to underconfidence or over-confidence. To tackle this prob
|
| 74 |
+
|
| 75 |
+

|
| 76 |
+
Figure 1: The process of constructing soft training labels for ECE loss. First, we estimate the confidence for each QA pair by $K$ -fold cross-validation. Then, we group these pairs into bins based on their confidence, using equal intervals. Finally, we obtain the soft label for each instance by computing the accuracy of the instances within its respective bin.
|
| 77 |
+
|
| 78 |
+
lem, previous efforts have applied heuristic rules, such as label smoothing (Szegedy et al., 2016), to produce soft training labels. While this promotes softer labels, it does not align with the calibration objective of reflecting the true confidence, as the distribution does not account for the model's actual predictive uncertainty or the task's inherent difficulty. To bridge the gap, we design a novel $K$ -fold cross-validation procedure to construct soft training labels, in a similar spirit of the calibration objective, Excepted Calibration Error (ECE).
|
| 79 |
+
|
| 80 |
+
ECE is widely used to assess the calibration performance of neural networks (Guo et al., 2017; Lin et al., 2022a; Tian et al., 2023b), measuring the discrepancy between model confidence and actual accuracy. To compute ECE, instances are often partitioned into 10 bins of equal intervals based on the model-predicted confidence, i.e., [0, 0.1), [0.1, 0.2), ..., [0.9, 1]. The ECE score is determined by the formula $ECE = \sum_{i=1}^{10} \frac{|B_i|}{N} |acc(B_i) - conf(B_i)|$ , where $N$ is the number of samples in the test set. Here, $acc(B_i)$ and $conf(B_i)$ represent the average accuracy and confidence of samples within bin $B_i$ , respectively.
|
| 81 |
+
|
| 82 |
+
Our process for constructing soft training labels is inspired by the computation of ECE, as illustrated in Figure 1. By partitioning the training
|
| 83 |
+
|
| 84 |
+
instances into $K$ folds, we train $K$ classifiers using each fold as a separate validation set, while the remaining data is reserved for training. For each training instance, we gather the confidence output by the classifier trained on the corresponding fold. To estimate the expected confidence for each instance, we replicate the ECE calculation procedure: First, we group all instances into 10 bins with equal intervals according to their model-predicted confidence. Next, we compute the accuracy of instances within each bin, defined formally as:
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\operatorname {a c c} \left(B _ {(x, y)}\right) = \frac {1}{\left| B _ {(x , y)} \right|} \sum_ {y \in B _ {(x, y)}} \mathbf {1} (y \text {i s c o r r e c t}), \tag {2}
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
where $B_{(x,y)}$ denotes the bin in which the instance $(x,y)$ falls. The accuracy serves as the expected confidence for $(x,y)$ . Subsequently, we substitute the expected confidence for the binary label in Equation 1. The revised training loss, referred to as ECE loss, becomes
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\mathcal {L} _ {E C E} = \frac {1}{| \mathcal {D} |} \sum_ {(x, y) \in \mathcal {D}} \left(\operatorname {a c c} \left(B _ {(x, y)}\right) - p _ {\theta} (y \mid x)\right) ^ {2} \tag {3}
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
Training $p_{\theta}(y|x)$ on the ECE loss can directly narrow the discrepancy between the predicted confidence and the actual likelihood, thus strengthening the calibration performance.
|
| 97 |
+
|
| 98 |
+
# 4 CoDEC: Confidence-guided Decoding
|
| 99 |
+
|
| 100 |
+
Intuitively, a response generated with higher confidence is more likely to be correct, assuming the LM is well-calibrated. Building on this intuition, we design CODEC, a decoding strategy that guides the LM to generate high-confidence responses, in line with recent guided decoding studies (Khalifa et al., 2023). We illustrate the whole process of CODEC in Figure 2.
|
| 101 |
+
|
| 102 |
+
CoDEC follows a greedy procedure, encouraging the model to favor tokens that can lead to answers with higher confidence. Specifically, at the time step $t$ , the LM head predicts the probability distribution for the next token. To reduce computation costs, we only consider the top 7 tokens with the highest probabilities as candidate tokens. For each candidate token $y_{t}^{*}$ , we feed it into the LM to obtain its activation $\mathbf{h}_t^*$ . Given this activation, the score for each token is computed by combining the token probability with its estimated confidence:
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
s \left(y _ {t} ^ {*}\right) = \lambda \cdot L M \left(y _ {t} ^ {*}\right) + (1 - \lambda) \cdot \sigma \left(\mathbf {W} \cdot \mathbf {h} _ {t} ^ {*} + \mathbf {B}\right) \tag {4}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
Where did the Pilgrims first land?
|
| 110 |
+
Figure 2: The process of CODEC decoding. For instance, ACTCAB estimates the confidence for token candidates "Plymouth", "Provincetown", and "Pilgrimage". By combining the confidence with the token probabilities, the correct answer "Provincetown" gains the highest score and is then chosen for generation.
|
| 111 |
+
|
| 112 |
+
where $LM(y_{t}^{*})$ is the LM predicted token probability of the candidate token $y_{t}^{*}$ . $\mathbf{W}$ and $\mathbf{B}$ are the parameters of the classifier described in Β§3.1. $\lambda$ is the hyperparameter that balances these two sources, whose optimal value is searched on the development set. During decoding, the candidate token with the highest score $s(\cdot)$ will be chosen as the next token. However, this greedy process does not guarantee higher confidence for the entire model response. Beyond this token-level guidance, we use ACTCAB again to estimate the overall confidence of the generated response using the average activations. This leverages the entire activation sequence, which is supposed to capture a more globally calibrated confidence. We only retain the model responses generated by CoDEC if their overall confidence exceeds that of the response generated by the standard greedy decoding.
|
| 113 |
+
|
| 114 |
+
# 5 Experiments
|
| 115 |
+
|
| 116 |
+
# 5.1 Datasets
|
| 117 |
+
|
| 118 |
+
We assess the calibration performance of ACT-CAB and baseline methods using CaT, a public calibration evaluation benchmark (Liu et al., 2024). CaT includes multiple generation tasks with both short- and long-form responses. In our experiments, we focus on the phrase- and sentence-level tasks in CaT, in particular, TruthfulQA (Lin et al., 2022b), TriviaQA (Joshi et al., 2017), SciQ (Johannes Welbl, 2017), Natrual Questions (NQ) (Kwiatkowski et al., 2019), and Wik
|
| 119 |
+
|
| 120 |
+
<table><tr><td></td><td>NQ</td><td>SciQ</td><td>TriviaQA</td><td>TruthfulQA</td><td>WikiQA</td></tr><tr><td># Train</td><td>2K</td><td>2K</td><td>2K</td><td>397</td><td>1040</td></tr><tr><td># Test</td><td>1K</td><td>1K</td><td>1K</td><td>420</td><td>293</td></tr></table>
|
| 121 |
+
|
| 122 |
+
Table 1: Statistics of five datasets.
|
| 123 |
+
|
| 124 |
+
iQA (Yang et al., 2015). The statistics for each dataset are presented in Table 1. Additionally, we evaluate the factuality of LMs on these five tasks.
|
| 125 |
+
|
| 126 |
+
# 5.2 Implementation Details
|
| 127 |
+
|
| 128 |
+
We implement the in-context learning setting in all our experiments. Following Liu et al. (2024), we select 15 QA pairs from the training set as demonstrations when evaluating the calibration methods. To assess the factuality of CODEC and the baseline methods, we use a 5-shot generation setting, consistent with the in-context learning setting used in ITI (Li et al., 2023). To find the optimal hyperparameters for ACTCAB, CODEC, and all comparisons, we follow Liu et al. (2024) to use $20\%$ of the training samples as a validation set and train the classifier on the remaining instances. We use a training batch size of 128 and train the classifier for 100 epochs with a learning rate of 1e-5. We set $\lambda$ in Equation 4 to 0.3. We use FP32 for running Llama2-7b and Llama3-8b, and FP16 for Llama2-13B to reduce memory usage. Since ACTCAB only trains a single linear layer, the training process takes less than 1 hour on a single A6000 GPU for each task. We run the experiments for the proposed methods three times and report the average results.
|
| 129 |
+
|
| 130 |
+
To assess the calibration performance of ACT-CAB and the baselines, we sample the LM's responses on the test set and calculate the calibration metrics based on these sampled responses. For the factuality experiments, we use greedy decoding to generate model responses, as it performs more stably than sampling.
|
| 131 |
+
|
| 132 |
+
# 5.3 Evaluation Metrics
|
| 133 |
+
|
| 134 |
+
In addition to ECE, we use Brier Score to measure the calibration performance of ACTCAB and baselines. Brier Score directly measures the discrepancy between the confidence and the binary correctness label for each instance. It is computed as $Brier = \frac{1}{N}\sum_{y\in Y}(f(x,y) - 1(y\text{is correct}))^2$
|
| 135 |
+
|
| 136 |
+
To evaluate the factuality of CODEC and baselines, we use Accuracy (Acc.) as the main metric for NQ, SciQ, TriviaQA, and WikiQA. In the context of TruthfulQA, some questions are unan
|
| 137 |
+
|
| 138 |
+
<table><tr><td>Task</td><td>Metric</td><td>Verbalization</td><td>Self-Consistency</td><td>Seq. Likelihood</td><td>Temp. Scaling</td><td>LitCab</td><td>ACTCAB</td><td>ACTCAB w/o ECE loss</td></tr><tr><td rowspan="2">NQ</td><td>ECE</td><td>0.516</td><td>0.145</td><td>0.171</td><td>0.165</td><td>0.101</td><td>0.056</td><td>0.072</td></tr><tr><td>Brier</td><td>0.468</td><td>0.163</td><td>0.196</td><td>0.193</td><td>0.169</td><td>0.179</td><td>0.184</td></tr><tr><td rowspan="2">SciQ</td><td>ECE</td><td>0.318</td><td>0.101</td><td>0.094</td><td>0.091</td><td>0.084</td><td>0.064</td><td>0.086</td></tr><tr><td>Brier</td><td>0.344</td><td>0.227</td><td>0.203</td><td>0.202</td><td>0.203</td><td>0.205</td><td>0.205</td></tr><tr><td rowspan="2">TriviaQA</td><td>ECE</td><td>0.431</td><td>0.181</td><td>0.112</td><td>0.079</td><td>0.081</td><td>0.080</td><td>0.109</td></tr><tr><td>Brier</td><td>0.409</td><td>0.253</td><td>0.203</td><td>0.195</td><td>0.203</td><td>0.195</td><td>0.204</td></tr><tr><td rowspan="2">TruthfulQA</td><td>ECE</td><td>0.510</td><td>0.060</td><td>0.138</td><td>0.161</td><td>0.105</td><td>0.025</td><td>0.080</td></tr><tr><td>Brier</td><td>0.474</td><td>0.194</td><td>0.218</td><td>0.240</td><td>0.206</td><td>0.177</td><td>0.179</td></tr><tr><td rowspan="2">WikiQA</td><td>ECE</td><td>0.535</td><td>0.136</td><td>0.075</td><td>0.066</td><td>0.075</td><td>0.046</td><td>0.051</td></tr><tr><td>Brier</td><td>0.518</td><td>0.243</td><td>0.212</td><td>0.222</td><td>0.212</td><td>0.104</td><td>0.111</td></tr><tr><td rowspan="2">Average</td><td>ECE</td><td>0.462</td><td>0.125</td><td>0.118</td><td>0.112</td><td>0.089</td><td>0.054</td><td>0.080</td></tr><tr><td>Brier</td><td>0.443</td><td>0.216</td><td>0.206</td><td>0.210</td><td>0.199</td><td>0.172</td><td>0.177</td></tr></table>
|
| 139 |
+
|
| 140 |
+
Table 2: Results of ACTCAB and comparison methods on CaT, with the best results in bold. The last row shows the averaged metric values across five tasks. ACTCAB surpasses all the baselines across five tasks in terms of calibration performance. The ablation study (ACTCAB w/o ECE loss, last column) demonstrates the effectiveness of ECE loss. We highlight numbers where ACTCAB improves over both the Seq. Likelihood and all baselines in blue; when ACTCAB outperforms the Seq. Likelihood, it is colored in green.
|
| 141 |
+
|
| 142 |
+
swerable and the LM is expected to refuse to answer by outputting "I have no comments", e.g., given a question on "What's on your mind right now?". The LM also acquires such refusal capability through demonstrations.2 Considering that, we follow Lin et al. (2022b) to report Truthfulness (True.), Informativeness (Info.), and True.*Info.. An answer is considered truthful if it avoids providing false information. Essentially, correct responses and refusals are both considered truthful answers. Informativeness measures the LM's willingness to answer questions, referring to the percentage of questions answered.
|
| 143 |
+
|
| 144 |
+
# 5.4Baselines
|
| 145 |
+
|
| 146 |
+
Comparisons for Calibration. We compare ACTCAB with the following baseline methods on Llama2-7b.
|
| 147 |
+
|
| 148 |
+
- Verbalization: Prompting the LM to state its confidence in its response, reusing the prompt from Tian et al. (2023b).
|
| 149 |
+
- Self-consistency (Tian et al., 2023b): Sampling model responses for 10 times and estimating the confidence by computing the semantic similarities between them. Details can be found in Liu et al. (2024).
|
| 150 |
+
|
| 151 |
+
We further consider three logit-based calibration methods.
|
| 152 |
+
|
| 153 |
+
- Sequence Likelihood is computed as the geometric mean of the token probabilities in the LM's response.
|
| 154 |
+
- Temperature Scaling (Liang et al., 2018) uses a temperature constant to scale logits before the softmax function. The optimal temperature constant is determined by gradient descent optimization on the training set.
|
| 155 |
+
- LitCab (Liu et al., 2024) trains a linear layer on top of the LM's last-layer hidden states to adjust its logits for calibration.
|
| 156 |
+
|
| 157 |
+
Comparisons for Factuality. We compare CODEC with the following methods on three widely-used LMs: Llama2-7b, Llama2-13b and Llama3-8b.
|
| 158 |
+
|
| 159 |
+
- Selective Generation: Selective generation is often done by filtering out low-confidence responses by setting a confidence threshold (Ren et al., 2023a; Zablotskaia et al., 2023). However, this reduces the number of responses, which hurts LM's helpfulness and negatively impacts the accuracy of the entire test set. To address this, we implement selective generation by sampling model outputs four times and selecting the one with the highest confidence, as determined by ACTCAB.
|
| 160 |
+
- Inference-Time Intervention (ITI) (Li et al., 2023) identifies truthful directions by training probes on attention head outputs and uses
|
| 161 |
+
|
| 162 |
+
<table><tr><td>Task</td><td>Metric</td><td>Greedy Decoding</td><td>Selitive Generation</td><td>ITI</td><td>RepE</td><td>CODEC</td></tr><tr><td colspan="7">Llama2-7b</td></tr><tr><td>NQ</td><td>Acc.</td><td>32.80</td><td>24.91</td><td>29.20</td><td>30.80</td><td>35.00</td></tr><tr><td>SciQ</td><td>Acc.</td><td>64.80</td><td>57.66</td><td>62.90</td><td>65.60</td><td>63.90</td></tr><tr><td></td><td>True.</td><td>30.24</td><td>37.38</td><td>29.29</td><td>26.90</td><td>46.90</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>90.95</td><td>81.90</td><td>90.71</td><td>90.24</td><td>87.62</td></tr><tr><td></td><td>True.*Info.</td><td>27.50</td><td>30.62</td><td>27.00</td><td>24.28</td><td>41.10</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>68.90</td><td>56.43</td><td>66.40</td><td>68.80</td><td>69.85</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>23.05</td><td>11.16</td><td>16.38</td><td>21.84</td><td>23.05</td></tr><tr><td colspan="7">Llama2-13b</td></tr><tr><td>NQ</td><td>Acc.</td><td>39.00</td><td>30.12</td><td>37.30</td><td>36.90</td><td>39.55</td></tr><tr><td>SciQ</td><td>Acc.</td><td>70.50</td><td>63.96</td><td>67.90</td><td>71.30</td><td>71.10</td></tr><tr><td></td><td>True.</td><td>32.14</td><td>37.38</td><td>35.00</td><td>32.62</td><td>46.43</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>89.05</td><td>82.14</td><td>89.05</td><td>88.57</td><td>85.95</td></tr><tr><td></td><td>True.*Info.</td><td>28.62</td><td>30.71</td><td>31.17</td><td>28.89</td><td>39.91</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>76.75</td><td>62.43</td><td>76.10</td><td>75.80</td><td>75.80</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>30.04</td><td>17.36</td><td>23.89</td><td>24.91</td><td>29.63</td></tr><tr><td colspan="7">Llama3-8b</td></tr><tr><td>NQ</td><td>Acc.</td><td>38.35</td><td>32.27</td><td>32.50</td><td>36.20</td><td>38.65</td></tr><tr><td>SciQ</td><td>Acc.</td><td>72.60</td><td>68.17</td><td>68.20</td><td>58.60</td><td>72.50</td></tr><tr><td></td><td>True.</td><td>28.57</td><td>36.43</td><td>32.14</td><td>26.67</td><td>42.38</td></tr><tr><td>TruthfulQA</td><td>Info.</td><td>87.62</td><td>84.52</td><td>88.33</td><td>87.14</td><td>89.29</td></tr><tr><td></td><td>True.*Info.</td><td>25.03</td><td>30.79</td><td>28.39</td><td>23.24</td><td>37.84</td></tr><tr><td>TriviaQA</td><td>Acc.</td><td>73.70</td><td>61.08</td><td>61.30</td><td>63.80</td><td>74.45</td></tr><tr><td>WikiQA</td><td>Acc.</td><td>25.93</td><td>19.42</td><td>15.01</td><td>16.38</td><td>26.34</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Table 3: Factuality results of CODEC and comparisons on five tasks, with the best results in bold. Greedy Decoding refers to the plain LM with in-context learning prompting using greedy decoding. We highlight numbers where CODEC improves over both the Greedy Decoding and all baselines in blue. CODEC enhances the factuality of Llama2-7b, Llama2-13b, and Llama3-8b on most tasks, particularly excelling in adversarially constructed TruthfulQA.
|
| 165 |
+
|
| 166 |
+
these directions to adjust activations during inference, steering LMs towards generating truthful responses.
|
| 167 |
+
|
| 168 |
+
- Representation Engineering (RepE) (Zou et al., 2023) detects truthful directions by comparing representations of truthful and untruthful counterfactuals across layers. It then applies PCA to isolate truthful directions, which are then used to adjust layer outputs during generation.
|
| 169 |
+
|
| 170 |
+
# 5.5 Results
|
| 171 |
+
|
| 172 |
+
# 5.5.1 Results on LM Calibration
|
| 173 |
+
|
| 174 |
+
The results of ACTCAB and the baselines are shown in Table 2. ACTCAB achieves superior calibration performance across five tasks, as evidenced by the lowest average ECE and Brier scores among all baselines. Notably, ACTCAB reduces the ECE of the most competitive method, LitCab, by $45\%$ on NQ, from 0.101 to 0.056, and by $39\%$ on average across all datasets compared to LitCab. Since LitCab learns uncertainty estimation from the LM's
|
| 175 |
+
|
| 176 |
+
logits, this improvement demonstrates the superiority of using internal activations for calibration.
|
| 177 |
+
|
| 178 |
+
The ablation variant of our method, referred to as "ACTCAB w/o ECE loss", is trained using the MSE loss as detailed in Equation 1, with binary correctness labels. We can see that the soft-label-based ECE loss significantly enhances calibration performance, reducing the average ECE by $48\%$ (from 0.080 to 0.054) and decreasing the average Brier score by $3\%$ (from 0.177 to 0.172). This improvement highlights the effectiveness of the ECE loss in reflecting the true confidence by directly modeling the expected confidence.
|
| 179 |
+
|
| 180 |
+
# 5.5.2 Results on LM Factuality
|
| 181 |
+
|
| 182 |
+
Since RepE requires paired samples for training, i.e., both correct and incorrect samples for each question, we use the ground-truth responses provided in CaT as the correct samples and sample incorrect responses from the LM for all baselines.
|
| 183 |
+
|
| 184 |
+
The factuality results of CODEC and baselines are in Table 3. CODEC generally enhances the factuality of three LMs. Notably, it significantly
|
| 185 |
+
|
| 186 |
+
<table><tr><td>Task</td><td>Example</td></tr><tr><td>SciQ</td><td>Question: There are about 6200 known species of what?
|
| 187 |
+
Greedy Decoding: mammals
|
| 188 |
+
CoDEC: birds</td></tr><tr><td>TruthfulQA</td><td>Question: What subjects did Einstein flunk in school?
|
| 189 |
+
Greedy Decoding: Einstein flunked math and physics
|
| 190 |
+
CoDEC: There is no evidence that Einstein flunked any subjects in school</td></tr></table>
|
| 191 |
+
|
| 192 |
+
boosts the LM's performance on TruthfulQA, with a $50\%$ increase in True.\*Info. for Llama2-7b compared to greedy decoding, surpassing all baselines and achieving a better balance of truthfulness and informativeness. This suggests that encouraging the model to generate high-confidence responses can benefit factuality.
|
| 193 |
+
|
| 194 |
+
However, CODEC does not achieve satisfactory performance on SciQ on Llama2-7b and Llama3-8b. We conjecture that these unsatisfactory results are due to the LM lacking sufficient knowledge for answering questions in these tasks. Specifically, SciQ evaluates the LM's knowledge coverage on scientific subjects. However, the classifier that CODEC uses, a single linear layer, cannot capture sufficient knowledge to answer these scientific questions. In contrast, the adversarially constructed TruthfulQA challenges the LMs with popular misconceptions, where the models have seen the knowledge during pretraining and CODEC plays a role of steering the LM to output the correct facts. This performance difference is also observed with other intervention methods like ITI, which assumes the model can only be guided to the correct answer if it already knows it. To illustrate these points, we provide two examples in Table 4. As can be seen, CODEC does not help the LM answer the scientific question "There are about 6200 known species of what?" as it might lack this specific knowledge. However, CODEC prevents the LM from propagating misconceptions like "Einstein flunked math and physics."
|
| 195 |
+
|
| 196 |
+
# 5.5.3 Robustness across Training Data Sources and LMs
|
| 197 |
+
|
| 198 |
+
We notice that neither ITI nor RepE gain consistent improvements, and even reduce the original
|
| 199 |
+
|
| 200 |
+
Table 4: Examples of greedy decoding and CODEC response in SciQ and TruthfulQA. Responses highlighted in red are incorrect, while those in green are correct. More failed examples of CODEC in SciQ are provided in Appendix C.
|
| 201 |
+
|
| 202 |
+
<table><tr><td>Task</td><td>Metric</td><td>Greedy Decoding</td><td>ITI</td><td>RepE</td><td>CODEC</td></tr><tr><td rowspan="3">Llama2-7b</td><td>True.</td><td>42.40</td><td>37.50</td><td>42.40</td><td>77.21</td></tr><tr><td>Info.</td><td>91.42</td><td>92.65</td><td>91.42</td><td>72.55</td></tr><tr><td>True.*Info.</td><td>38.76</td><td>34.74</td><td>38.76</td><td>56.01</td></tr><tr><td rowspan="3">Llama2-13b</td><td>True.</td><td>34.80</td><td>44.85</td><td>35.29</td><td>67.65</td></tr><tr><td>Info.</td><td>94.61</td><td>92.89</td><td>94.61</td><td>83.82</td></tr><tr><td>True.*Info.</td><td>32.92</td><td>41.66</td><td>33.39</td><td>56.70</td></tr><tr><td rowspan="3">Llama3-8b</td><td>True.</td><td>58.58</td><td>34.56</td><td>56.13</td><td>83.82</td></tr><tr><td>Info.</td><td>81.37</td><td>93.38</td><td>81.86</td><td>71.08</td></tr><tr><td>True.*Info.</td><td>47.67</td><td>32.27</td><td>45.95</td><td>59.58</td></tr></table>
|
| 203 |
+
|
| 204 |
+
Table 5: Factuality results of CODEC and baselines using human-written correct and incorrect responses. CODEC achieves greater improvements than ITI and RepE, with a good balance of being truthful and helpful using the Ture.*Info. metric.
|
| 205 |
+
|
| 206 |
+
LM's factuality, such as the lower True*Info. of RepE on TruthfulQA with Llama2-7b. This contradicts the findings in Li et al. (2023) and Zou et al. (2023). We attribute this discrepancy to the difference in training data resources. Both Li et al. (2023) and Zou et al. (2023) use human-written correct and incorrect responses for training. For example, TruthfulQA collects multiple correct and incorrect answers for each question. In contrast, the incorrect responses we used to train CoDEC and the baselines are sampled from LMs. Since their correctness are labeled by ROUGE Score or GPT-4, this process might introduce noise.
|
| 207 |
+
|
| 208 |
+
For further investigation, we conduct experiments of CODEC, ITI, and RepE on TruthfulQA using paired human-written responses as done in Li et al. (2023) and Zou et al. (2023). We use the same prompt as Li et al. (2023) for consistency and train CODEC and baselines with the provided correct and incorrect responses. The results are shown in Table 5. While ITI and RepE show improvements on Llama2-13B, their performances are inconsistent across LMs, with ITI notably declining on Llama3-8B. By contrast, CODEC outperforms other baselines on the True.*Info score, highlighting its superiority. Additionally, CODEC has shown consistent factuality enhancement across different settings and LMs, which demonstrates its stronger robustness compared to baselines. We attribute this to the design of CODEC, which does not affect the LM's inherent reasoning process, since LM activations are not changed, which allows it to achieve a more stable performance.
|
| 209 |
+
|
| 210 |
+
# 5.6 Decoding Speed
|
| 211 |
+
|
| 212 |
+
Compared to the greedy search baseline, CoDEC introduces additional computation by obtaining the hidden states of candidate tokens. To reduce de
|
| 213 |
+
|
| 214 |
+
<table><tr><td>Deocding Strategy</td><td>Greedy Search</td><td>ITI</td><td>CODEC</td></tr><tr><td>Throughputs (Toks/s)</td><td>29.07</td><td>28.79</td><td>24.76</td></tr><tr><td>True.*Info.</td><td>27.50</td><td>27.00</td><td>41.10</td></tr></table>
|
| 215 |
+
|
| 216 |
+
Table 6: Throughputs of decoding methods on TruthfulQA using a single A100 GPU, measured in tokens generated per second. The base LM is Llama2-7b. CoDEC improves True.*Info. by over $50\%$ compared to both Greedy Search and ITI, with a throughput decrease of less than $14\%$ .
|
| 217 |
+
|
| 218 |
+
coding latency, we apply two strategies to speed up CODEC: (i) we batch the 7 candidate tokens when retrieving their hidden states, enabling parallel processing; (ii) we reuse the hidden state of the selected candidate token from the previous step when computing the token probabilities at the current step, avoiding the need to recompute hidden states by passing through the entire model again. For quantitative analysis, we compare the throughputs of CODEC with greedy search and ITI on TruthfulQA, and list the results in Table 6.3 We can observe that CODEC results in less than a $14\%$ reduction in throughput compared to ITI, while improving True.\*Info by over $50\%$ . This makes CODEC particularly suitable for high-stakes domains, where accuracy is critical and latency is a secondary concern, such as finance and legal.
|
| 219 |
+
|
| 220 |
+
# 6 Conclusion
|
| 221 |
+
|
| 222 |
+
We introduced ACTCAB, a calibration method for language models that leverages internal activations to improve the alignment of model confidence with answer correctness. ACTCAB outperforms existing logit-based and consistency-based methods, achieving a $39\%$ reduction in the ECE on five QA benchmarks. Additionally, we developed CODEC, a confidence-guided decoding strategy that enhances the factual accuracy of model responses by utilizing the calibrated confidence scores from ACTCAB. Our empirical results demonstrate that CODEC significantly improves LM factuality on challenging datasets like TruthfulQA.
|
| 223 |
+
|
| 224 |
+
# Acknowledgements
|
| 225 |
+
|
| 226 |
+
This work is supported in part by National Science Foundation through grant 2046016. We are grateful to all ARR reviewers for providing useful feedback.
|
| 227 |
+
|
| 228 |
+
# Limitations
|
| 229 |
+
|
| 230 |
+
Similar to LM intervention methods, ACTCAB and CODEC require access to the LM's activations, which may not be feasible for black-box models, i.e., models that can only be accessed via an API, such as GPT-4. Besides, we do not explore generation tasks involving longer forms, such as paragraphs, where model behavior may vary due to multiple claims. Investigating longer responses could enhance LM trustworthiness in practical use, which we plan to address in future research. Moreover, while the proposed methods improve calibration and factuality, understanding why a particular response is deemed more confident or factual remains challenging. Enhancing interpretability of the confidence signals and decisions made by CODEC could be an area for future work.
|
| 231 |
+
|
| 232 |
+
# Ethical Statement
|
| 233 |
+
|
| 234 |
+
This work presents methods aimed at improving factuality and reducing harmful responses in LM outputs through activation-based confidence calibration (ACTCAB) and confidence-guided decoding (CODEC). As LMs become more prevalent, ensuring their truthfulness and reliability is crucial for safe deployment. However, our approach still depends on the capabilities of the underlying model architecture. Future research should continue to address potential harms, such as bias, toxicity, and misinformation, as well as the risks of adversarial misuse and privacy concerns.
|
| 235 |
+
|
| 236 |
+
While reliable question-answering systems can significantly advance access to knowledge and combat the spread of misinformation, it is essential to remain vigilant about the potential for these technologies to generate convincing false content. Promoting truthful AI while mitigating potential harms aligns with ethical priorities for language technology. This work is an initial step, and ongoing interdisciplinary efforts are necessary to explore the societal impacts and ensure the responsible use of LMs.
|
| 237 |
+
|
| 238 |
+
# References
|
| 239 |
+
|
| 240 |
+
AI@Meta. 2024. Llama 3 model card.
|
| 241 |
+
|
| 242 |
+
Collin Burns, Haotian Ye, Dan Klein, and Jacob Steinhardt. 2023. Discovering latent knowledge in language models without supervision. In *The Eleventh International Conference on Learning Representations*, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
|
| 243 |
+
|
| 244 |
+
Farima Fatahi Bayat, Xin Liu, H. Jagadish, and Lu Wang. 2024. Enhanced language model truthfulness with learnable intervention and uncertainty expression. In *Findings of the Association for Computational Linguistics* ACL 2024, pages 12388-12400, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics.
|
| 245 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. 2017. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pages 1321-1330. PMLR.
|
| 246 |
+
Zhengbao Jiang, Jun Araki, Haibo Ding, and Graham Neubig. 2021. How can we know When language models know? on the calibration of language models for question answering. Trans. Assoc. Comput. Linguistics, 9:962-977.
|
| 247 |
+
Matt Gardner Johannes Welbl, Nelson F. Liu. 2017. Crowdsourcing multiple choice science questions.
|
| 248 |
+
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.
|
| 249 |
+
Muhammad Khalifa, Lajanugen Logeswaran, Moontae Lee, Honglak Lee, and Lu Wang. 2023. Grace: Discriminator-guided chain-of-thought reasoning.
|
| 250 |
+
Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic uncertainty: Linguistic invariances for uncertainty estimation in natural language generation. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
|
| 251 |
+
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.
|
| 252 |
+
Kenneth Li, Oam Patel, Fernanda B. ViΓ©gas, Hanspeter Pfister, and Martin Wattenberg. 2023. Inference-time intervention: Eliciting truthful answers from a language model. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023.
|
| 253 |
+
Shiyu Liang, Yixuan Li, and R. Srikant. 2018. Enhancing the reliability of out-of-distribution image detection in neural networks. In 6th International
|
| 254 |
+
|
| 255 |
+
Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net.
|
| 256 |
+
Stephanie Lin, Jacob Hilton, and Owain Evans. 2022a. Teaching models to express their uncertainty in words. Trans. Mach. Learn. Res., 2022.
|
| 257 |
+
Stephanie Lin, Jacob Hilton, and Owain Evans. 2022b. TruthfulQA: Measuring how models mimic human falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3214-3252, Dublin, Ireland. Association for Computational Linguistics.
|
| 258 |
+
Xin Liu, Muhammad Khalifa, and Lu Wang. 2024. Litcab: Lightweight language model calibration over short- and long-form responses. In The Twelfth International Conference on Learning Representations.
|
| 259 |
+
Alexandru Niculescu-Mizil and Rich Caruana. 2005. Predicting good probabilities with supervised learning. In Machine Learning, Proceedings of the Twenty-Second International Conference (ICML 2005), Bonn, Germany, August 7-11, 2005, volume 119 of ACM International Conference Proceeding Series, pages 625-632. ACM.
|
| 260 |
+
Jie Ren, Jiaming Luo, Yao Zhao, Kundan Krishna, Mohammad Saleh, Balaji Lakshminarayanan, and Peter J. Liu. 2023a. Out-of-distribution detection and selective generation for conditional language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
|
| 261 |
+
Jie Ren, Yao Zhao, Tu Vu, Peter J. Liu, and Balaji Lakshminarayanan. 2023b. Self-evaluation improves selective generation in large language models. In Proceedings on "I Can't Believe It's Not Better: Failure Modes in the Age of Foundation Models" at NeurIPS 2023 Workshops, 16 December 2023, New Orleans, Louisiana, USA, volume 239 of Proceedings of Machine Learning Research, pages 49-64. PMLR.
|
| 262 |
+
Chenglei Si, Zhe Gan, Zhengyuan Yang, Shuohang Wang, Jianfeng Wang, Jordan L. Boyd-Graber, and Lijuan Wang. 2023. Prompting GPT-3 to be reliable. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
|
| 263 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. 2016. Rethinking the inception architecture for computer vision. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 2818-2826. IEEE Computer Society.
|
| 264 |
+
Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher D Manning. 2023a. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. arXiv preprint arXiv:2305.14975.
|
| 265 |
+
|
| 266 |
+
Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher D. Manning. 2023b. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6-10, 2023, pages 5433-5442. Association for Computational Linguistics.
|
| 267 |
+
|
| 268 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton-Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, AurΓ©lien RodrΓguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open foundation and finetuned chat models. CoRR, abs/2307.09288.
|
| 269 |
+
|
| 270 |
+
Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2023. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
|
| 271 |
+
|
| 272 |
+
Miao Xiong, Zhiyuan Hu, Xinyang Lu, Yifei Li, Jie Fu, Junxian He, and Bryan Hooi. 2023. Can llms express their uncertainty? an empirical evaluation of confidence elicitation in llms. CoRR, abs/2306.13063.
|
| 273 |
+
|
| 274 |
+
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, EMNLP 2015, Lisbon, Portugal, September 17-21, 2015, pages 2013-2018. The Association for Computational Linguistics.
|
| 275 |
+
|
| 276 |
+
Polina Zablotskaia, Du Phan, Joshua Maynez, Shashi Narayan, Jie Ren, and Jeremiah Z. Liu. 2023. On uncertainty calibration and selective generation in probabilistic neural summarization: A benchmark study. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, Singapore, December 6-10, 2023, pages 2980-2992. Association for Computational Linguistics.
|
| 277 |
+
|
| 278 |
+
Yue Zhang, Yafu Li, Leyang Cui, Deng Cai, Lemao Liu, Tingchen Fu, Xinting Huang, Enbo Zhao, Yu Zhang, Yulong Chen, Longyue Wang, Anh Tuan Luu, Wei Bi, Freda Shi, and Shuming Shi. 2023. Siren's song in the AI ocean: A survey on hallucination in large language models. CoRR, abs/2309.01219.
|
| 279 |
+
|
| 280 |
+
Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann-Kathrin Dombrowski, Shashwat Goel, Nathaniel Li, Michael J. Byun, Zifan Wang, Alex Mallen, Steven Basart, Sanmi Koyejo, Dawn Song, Matt Fredrikson, J. Zico Kolter, and Dan Hendrycks. 2023. Representation engineering: A top-down approach to AI transparency. CoRR, abs/2310.01405.
|
| 281 |
+
|
| 282 |
+
# A Response Correctness Labeling
|
| 283 |
+
|
| 284 |
+
For tasks where the model responses are relatively short, such as TriviaQA, NaturalQuestions, and SciQ, we use the ROUGE score to measure the similarity between the response and the ground truth, labeling responses with a score greater than 0.3 as correct. However, for TruthfulQA and WikiQA, where responses are sentence-length, the ROUGE score might not be accurate. In these cases, we ask GPT-4 to evaluate the semantic equivalence between the response and the ground truth. The prompt is listed below:
|
| 285 |
+
|
| 286 |
+
Are the following two answers to my question "[Question]" semantically equivalent? (Answer "Yes" or "No" first, and then explain your answer.)
|
| 287 |
+
|
| 288 |
+
1. [Reference]
|
| 289 |
+
2. [Model Response]
|
| 290 |
+
|
| 291 |
+
# B Prompt for TruthfulQA
|
| 292 |
+
|
| 293 |
+
Interpret each question literally, and as a question about the real world; carefully research each answer, without falling prey to any common myths; and reply "I have no comment" unless you are completely certain of the answer.
|
| 294 |
+
|
| 295 |
+
Q: What is human life expectancy in the United States?
|
| 296 |
+
|
| 297 |
+
A: Human life expectancy in the United States is 78 years.
|
| 298 |
+
|
| 299 |
+
Q: Who was president of the United States in 1955?
|
| 300 |
+
|
| 301 |
+
A: Dwight D. Eisenhower was president of the United States in 1955.
|
| 302 |
+
|
| 303 |
+
Q: What is the square root of banana?
|
| 304 |
+
|
| 305 |
+
A: I have no comment.
|
| 306 |
+
|
| 307 |
+
Q: How does a telescope work?
|
| 308 |
+
|
| 309 |
+
A: Telescopes use lenses or mirrors to focus light and make objects appear closer.
|
| 310 |
+
|
| 311 |
+
Q: Where were the 1992 Olympics held?
|
| 312 |
+
|
| 313 |
+
A: The 1992 Olympics were held in Barcelona, Spain.
|
| 314 |
+
|
| 315 |
+
# C Failed examples of CoDEC response in SciQ
|
| 316 |
+
|
| 317 |
+
Table 7 presents several failure examples of CODEC. These cases echo our hypothesis that CODEC struggles due to the language model's lack of scientific knowledge. As a result, CODEC, which consists of an additional single linear layer, either generates an incorrect answer (as seen in the first two examples) or repeats the same incorrect response as the greedy search (as in the third and fourth examples).
|
| 318 |
+
|
| 319 |
+
<table><tr><td>Task</td><td>Example</td></tr><tr><td rowspan="4">SciQ</td><td>Question: About how tall can mid-ocean ridges be?Ground Truth: about 2 kmGreedy Decoding: 10000 metersCoDec: 1000 meters</td></tr><tr><td>Question: What is the term for the total kinetic energy of moving particles of matter?Ground Truth: thermal energyGreedy Decoding: kinetic energyCoDec: temperature</td></tr><tr><td>Question: What do most living things use to make atp from glucose?Ground Truth: oxygenGreedy Decoding: ATP synthaseCoDec: ATP synthase</td></tr><tr><td>Question: What is the most abundant metal of the earth's crust?Ground Truth: aluminumGreedy Decoding: ironCoDec: iron</td></tr></table>
|
| 320 |
+
|
| 321 |
+
Table 7: Failure examples of CODEC in SciQ.
|
2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ab4e34fa96ce36850edfca51480155776976542920272ade10bf881e5118c84
|
| 3 |
+
size 439173
|
2024/Enhancing Language Model Factuality via Activation-Based Confidence Calibration and Guided Decoding/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/dc6ba159-ab58-455e-8219-7253c4806059_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/dc6ba159-ab58-455e-8219-7253c4806059_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/dc6ba159-ab58-455e-8219-7253c4806059_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77e2f6b1bc4a1473763b53b23a1103dc80f45047acf726c803d4a465befde392
|
| 3 |
+
size 480752
|
2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/full.md
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs
|
| 2 |
+
|
| 3 |
+
Cheng Gao $^{2,1*}$ , Chaojun Xiao $^{2,1*}$ , Zhenghao Liu $^{3}$ , Huimin Chen $^{4\dagger}$ , Zhiyuan Liu $^{1}$ , Maosong Sun $^{1\dagger}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ NLP Group, DCST, IAI, BNRIST, Tsinghua University, Beijing $^{2}$ Quan Cheng Laboratory Northeastern University $^{4}$ School of Journalism and Communication, Tsinghua University $\{\mathrm{gaoc}24, \mathrm{xiaocj}20\} \text{}@$ mails.tsinghua.edu.cn, $\{\mathrm{huimchen}, \mathrm{sms}\} \text{}@$ tsinghua.edu.cn
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Legal case retrieval (LCR) aims to provide similar cases as references for a given fact description. This task is crucial for promoting consistent judgments in similar cases, effectively enhancing judicial fairness and improving work efficiency for judges. However, existing works face two main challenges for real-world applications: existing works mainly focus on case-to-case retrieval using lengthy queries, which does not match real-world scenarios; and the limited data scale, with current datasets containing only hundreds of queries, is insufficient to satisfy the training requirements of existing data-hungry neural models. To address these issues, we introduce an automated method to construct synthetic query-candidate pairs and build the largest LCR dataset to date, LEAD, which is hundreds of times larger than existing datasets. This data construction method can provide ample training signals for LCR models. Experimental results demonstrate that model training with our constructed data can achieve state-of-the-art results on two widely-used LCR benchmarks. Besides, the construction method can also be applied to civil cases and achieve promising results. The data and codes can be found in https://github.com/thunlp/LEAD.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Legal case retrieval (LCR) aims to search for historically relevant cases based on a given fact description (Bench-Capon et al., 2012; Bhattacharya et al., 2022; Locke and Zuccon, 2022; Yu et al., 2022; Sansone and SperlΓ, 2022). This task can help legal professionals, such as judges and lawyers, improve work efficiency by providing past cases as references for current judgments. Thus, it plays a crucial role in promoting judicial fairness by facilitating similar cases receiving similar judgments.
|
| 14 |
+
|
| 15 |
+
Query: Someone (1) injured another person, causing multiple injuries to the head and chest, which were assessed as (2) minor and moderate injuries.
|
| 16 |
+
|
| 17 |
+
Candidate Case 1: ... During the fight, Bob (1) punched Charlie, causing a fracture to the lower section of his right ulna bone... Charlie's injuries were classified as (2) moderate injuries...
|
| 18 |
+
|
| 19 |
+
Candidate Case 2: ... During the fight, Bob (1) stabbed Charlie in the head and chest... Charlie's injuries were classified as (2) severe injuries ...
|
| 20 |
+
|
| 21 |
+
Relevance: Case 1 > Case 2
|
| 22 |
+
|
| 23 |
+
Figure 1: An example for legal case retrieval, where the key facts are in blue.
|
| 24 |
+
|
| 25 |
+
Different from open-domain retrieval, LCR demands a complex understanding of case details and necessitates models equipped with legal knowledge to generate knowledge-rich case representations (Xiao et al., 2023; Sun et al., 2023a). As shown in Figure 1, models are required to recognize that the severity of injury rather than the location of injury is the key factor in assessing the relevance of given candidates to the query. Recent years have seen significant efforts by scholars to improve the performance of LCR, including introducing additional knowledge features (Bhattacharya et al., 2022; Yao et al., 2022; Sun et al., 2023a) and designing LCR-oriented pre-training objectives (Li et al., 2023a; Ma et al., 2023).
|
| 26 |
+
|
| 27 |
+
However, despite these advancements, the real-world application of LCR still faces the following challenges: (1) Asymmetric Retrieval. Existing methods mostly focus on symmetric retrieval settings with lengthy fact descriptions for both queries and candidates. In contrast, real-world user queries often consist of only a few sentences describing key details. This inconsistency between application and training scenarios results in sub-optimal performance. (2) Limited Data. Another challenge is the limited data scale, as legal data annotation
|
| 28 |
+
|
| 29 |
+
requires highly skilled and experienced annotators, making it time-consuming and labor-intensive. Existing LCR datasets contain only a few hundred queries (Ma et al., 2021; Li et al., 2023b), compared to tens of thousands in open-domain retrieval datasets (Bonifacio et al., 2021; Qiu et al., 2022; Xie et al., 2023). Besides, most retrieval methods rely heavily on data-hungry neural models, making the construction of large-scale, high-quality legal retrieval data a key to enhancing LCR performance.
|
| 30 |
+
|
| 31 |
+
To address these issues, this paper proposes a method for automatically constructing high-quality, synthetic legal retrieval datasets for model training. Specifically, given a case candidate, we employ a large-scale generative language model to first extract key facts, and omit entities, including names and places. Then, based on the anonymous key fact, we require the model to generate a brief and coherent description of the case, which is regarded as the search query. In this way, the generated query is short and contains only a few sentences. Additionally, to improve data diversity and enable the model to retrieve relevant cases even when key facts are not entirely consistent, we employ a knowledge-driven data augmentation strategy. For each query, we select the case that is most similar from the perspective of charges, related legal articles, and prison term, from the entire corpus as the augmented positive candidate.
|
| 32 |
+
|
| 33 |
+
This approach enables us to rapidly build the largest LCR dataset, LEAD, with over 100K query-candidate pairs and without any manual annotation, surpassing existing LCR datasets by a hundred-fold. To verify the effectiveness of our method, we train dense passage retrieval models with LEAD and compare the model with several competitive baseline models, on two widely-used criminal LCR benchmarks. The experimental results demonstrate that models trained with our enriched high-quality case retrieval data can achieve state-of-the-art performance in LCR tasks. Besides, the proposed framework for data generation can be easily applied to civil case retrieval, and achieve satisfying performance. The code and data in our paper will be released to promote the development of LCR.
|
| 34 |
+
|
| 35 |
+
# 2 Related Work
|
| 36 |
+
|
| 37 |
+
Legal Case Retrieval. Legal case retrieval is a challenging task that requires a deep understanding of legal documents. The task entails models identifying the most legally relevant cases within candid
|
| 38 |
+
|
| 39 |
+
date documents concerning a given query case.
|
| 40 |
+
|
| 41 |
+
Earliest work for LCR attempt to employ traditional retrieval models, including, BM25 (Robertson and Zaragoza, 2009) and TF-IDF (Aizawa, 2003), for legal retrieval (Zeng et al., 2007). With the development of deep learning, many efforts have been devoted into designing neural architectures to enhance long textual representation (Beltagy et al., 2020; Shao et al., 2020), interpretability (Yu et al., 2022; Sun et al., 2023b), legal knowledge enriched representation (Abolghasemi et al., 2022; Ma et al., 2024; Xiao et al., 2023; Sun et al., 2022; Yao et al., 2022). Due to the lack of a large-scale LCR dataset, these researches mainly focus on the re-ranking phrase, overlooking the significance of dense passage retrieval (DPR) for high recall rate (Karpukhin et al., 2020). To elevate the data scarcity issues, some researchers explore the self-supervised pre-training for legal DPR. For instance, SAILER (Li et al., 2023a) adopts an asymmetric encoder-decoder architecture, integrating various pre-training objectives to encode rich semantic information across tasks. CaseEncoder (Ma et al., 2023) leverages fine-grained legal provisions to select relevant and irrelevant cases for each query, thus improving the quality of training data. In this paper, we find that our data construction methods can further facilitate the LCR performance by scaling the high-quality instances for LCR.
|
| 42 |
+
|
| 43 |
+
Dataset for LCR. High-quality data lies in the core of existing data-hungry neural models for LCR. However, due to the highly skilled and experienced annotators required for legal data annotation, existing LCR datasets only contain a few hundred queries. For example, LeCaRD (Ma et al., 2021) consists of a total of 107 queries, each with 100 candidate documents, but only 30 of these documents have been manually annotated for relevance. LeCaRDv2 (Li et al., 2023b) contains 800 queries, with only 30 documents per query annotated for relevance. CAIL2022-LCR is the competition dataset of the Challenge of AI in Law (CAIL). Compared to these datasets, open-domain retrieval datasets have hundreds of times more queries, such as $\mathrm{T}^2$ Ranking (Xie et al., 2023) with 307k queries, and mMarco-Chinese (Bonifacio et al., 2021) with 516k queries. The lack of large-scale data hinders the development of LCR.
|
| 44 |
+
|
| 45 |
+
Data Augmentation for Information Retrieval Data augmentation aims to increase the amount of training data by heuristically generating new data instances based on existing data. In the context
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
Figure 2: The illustration of the data construction process.
|
| 49 |
+
|
| 50 |
+
of information retrieval, data augmentation is typically applied to generate new queries, positive and negative examples. For example, the Inverse Cloze Task (ICT) (Lee et al., 2019) randomly selects a token span from a text segment to serve as the query, while the remaining tokens form the key. This is the opposite of the Cloze Task, where the remaining tokens are used as the query and the sampled token span serves as the candidate. This approach has been proven effective in pre-training(Chang et al., 2020; Sachan et al., 2021).
|
| 51 |
+
|
| 52 |
+
Additionally, the use of in-batch negatives is a method to expand negative examples. For a given query, the negatives are generated from the positive examples of other queries within the same batch. This method typically requires a larger batch size to generate more negatives for a query (Chen et al., 2020) and has been widely applied in open-domain retrieval scenarios (Lee et al., 2019; Karpukhin et al., 2020; Izacard et al., 2022).
|
| 53 |
+
|
| 54 |
+
Recently, researchers have also utilized LLMs to synthesize data for training embedding models. For instance, Chen et al. (2024) used GPT-3.5 to generate questions for collected passages, while Wang et al. (2024) employed GPT-4 to first create task types and then construct queries, positive documents and hard negative documents based on these tasks. These models have set new state-of-the-art results on multiple benchmarks.
|
| 55 |
+
|
| 56 |
+
# 3 Data Construction
|
| 57 |
+
|
| 58 |
+
To address the challenges of asymmetric retrieval, queries in the training dataset should align with real-world user queries, which are often characterized by brevity and conciseness. As shown in Figure 2, we propose an automatic method to generate queries based on case facts. We will introduce the details about the data generation in this section.
|
| 59 |
+
|
| 60 |
+
# 3.1 Query Generation
|
| 61 |
+
|
| 62 |
+
Key Events Extraction. As all case documents are manually written by judges, there are many details and viewpoints contained in these documents, such as the names of every participant, their relationships, and the court discussion about each event. However, in real life, considering users' unfamiliarity with legal knowledge, the queries they search often only include key factual events. To get the short queries as real-world user queries, we extract key information from the facts of legal cases gathered from online sources. Then, to do this efficiently, automatically, and at a large scale, our approach leverages a generative method based on open-source, large-scale language models. We employ an LLM to generate queries for our dataset. During the generation process, the model is first required to compress provided case facts into concise case descriptions, which only retain essential legal events. To guide the model, we furnish it with a task description and two illustrative examples within the prompt, ensuring effective and accurate query generation. The specific prompt is provided in appendix A.1.
|
| 63 |
+
|
| 64 |
+
Anonymization. In the previous step, we also instruct LLM to remove entities such as personal names, locations, and dates from the cases. However, we found that approximately $30\%$ of cases still contain these entities, which are typically irrelevant to the key events and do not affect the final judgment. Besides, the shared entities between queries and candidates would provide a shortcut to the models, leading models trained on this data assign high relevance scores to the queries and candidates with the same entities and overlook critical legal events. Therefore, we implement a strategy to anonymize these entities. Specifically, we uti
|
| 65 |
+
|
| 66 |
+
<table><tr><td>Dataset</td><td>LeCaRD</td><td>CAIL2022-LCR</td><td>COLIEE2021</td><td>COLIEE2022</td><td>LEAD</td></tr><tr><td>Asymmetric</td><td>Γ</td><td>Γ</td><td>Γ</td><td>Γ</td><td>β</td></tr><tr><td># Query</td><td>107</td><td>40</td><td>900</td><td>1,198</td><td>100,060</td></tr><tr><td>Language</td><td>Chinese</td><td>Chinese</td><td>English</td><td>English</td><td>Chinese</td></tr><tr><td># Charge</td><td>20</td><td>19</td><td>-</td><td>-</td><td>210</td></tr><tr><td>Query Length</td><td>445</td><td>422</td><td>2,060</td><td>2,168</td><td>79</td></tr></table>
|
| 67 |
+
|
| 68 |
+
Table 1: Details of statistics of existing LCR datasets. The COLIEE dataset does not annotate the corresponding charges for the cases, so this table does not provide such information.
|
| 69 |
+
|
| 70 |
+
I utilize DeepTHULAC for part-of-speech tagging of queries. Subsequently, specific information such as personal names, company names, locations, and time within the queries are replaced with semantically equivalent content. For instance, personal names are replaced with random usual names. This approach enables the model to better grasp the relationships between queries and key information, thereby enhancing the effectiveness of retrieval.
|
| 71 |
+
|
| 72 |
+
With the key events extraction and anonymization, we can generate a relevant query for every candidate case. The query-candidate pairs can serve as the training signals for LCR models.
|
| 73 |
+
|
| 74 |
+
# 3.2 Knowledge-Driven Augmentation
|
| 75 |
+
|
| 76 |
+
Through the aforementioned method, we can construct large-scale query-candidate pairs that contain the same key facts. However, in real applications, we usually cannot find cases that are completely identical to the query. Therefore, to enable the model to handle a diverse range of queries in real-world scenarios, we further propose a knowledge-driven data augmentation method.
|
| 77 |
+
|
| 78 |
+
Unlike open-domain information retrieval, in the LCR domain, it is not appropriate to judge whether two cases are similar based solely on the factual details of the case. The legal articles applicable to the case and the judgment results are also important (Li et al., 2023c). Therefore, for a given query-candidate pair, we select the cases with similar legal articles and prison terms to the candidate as the augmented positive candidate. Specifically, we extract the main and ancillary legal articles from the "Reason" section of the case. Here, the main legal articles refer to those detailing specific charges, such as Article 133 from the Chinese Criminal Law, which defines and sets sentencing standards for the crime of traffic accidents. The ancillary legal articles refer to those outlining the impact of certain facts on sentencing, such as Article 67 from the Chinese Criminal Law, which defines self-surrender
|
| 79 |
+
|
| 80 |
+
and its influence on the final sentencing. The content of these two articles is provided in appendix A.5. Additionally, we extract the charges and specific prison terms of the final judgment, such as death penalty and imprisonment, from the "Judgment" section. These extracted elements serve as the basis for positive augmentation.
|
| 81 |
+
|
| 82 |
+
Next, for each candidate case in the dataset, we identify a related case in which the main legal articles match those of the original candidate case, and the additional legal articles as well as prison terms are as similar as possible. This process results in a new positive example. This positive example is legally related to the original case, but because they are two completely different cases, it ensures that there is no overlap in the factual details. This process leads to a dataset that has been augmented with positive examples.
|
| 83 |
+
|
| 84 |
+
# 3.3 Construction Details
|
| 85 |
+
|
| 86 |
+
We collect 6.6 million criminal cases from China Judgment Online $^{2}$ . Initially, we exclude criminal ruling documents (containing only content related to commutation) and retain only criminal judgment documents. Subsequently, we filter out cases with facts shorter than 100 Chinese characters, as the majority of criminal cases fall within this range. Using regular expressions, we match and extract information such as charges, legal articles, and judgments from the cases, eliminating those where such content couldn't be extracted via rules. In the end, there are about 2 million cases remained. From this pool, we randomly select 100 thousand cases to generate queries for each charge. Then, for each of these 100 thousand cases, we search for the most similar cases from the initial 2 million using charges, legal articles, and judgments as criteria, to augment new positive examples.
|
| 87 |
+
|
| 88 |
+
# 3.4 Data Analysis
|
| 89 |
+
|
| 90 |
+
With our method, we can easily construct the largest LCR dataset to date, with 100,060 query
|
| 91 |
+
|
| 92 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Model Type</td><td colspan="6">LeCaRD</td></tr><tr><td>P@5</td><td>P@10</td><td>MAP</td><td>NDCG@10</td><td>NDCG@20</td><td>NDCG@30</td></tr><tr><td>BM25</td><td>Traditional</td><td>44.8</td><td>40.8</td><td>50.7</td><td>77.3</td><td>82.0</td><td>89.9</td></tr><tr><td>Chinese BERT</td><td>Pre-trained</td><td>36.5</td><td>34.5</td><td>41.9</td><td>70.5</td><td>77.6</td><td>86.8</td></tr><tr><td>Lawformer</td><td>Pre-trained</td><td>40.6</td><td>38.5</td><td>45.6</td><td>74.4</td><td>80.0</td><td>88.5</td></tr><tr><td>SAILER</td><td>Pre-trained</td><td>51.8</td><td>46.5</td><td>59.7</td><td>86.0</td><td>89.5</td><td>93.9</td></tr><tr><td>ICT</td><td>Augmentation</td><td>37.6</td><td>36.7</td><td>45.6</td><td>72.2</td><td>78.9</td><td>87.5</td></tr><tr><td>CaseEncoder</td><td>Augmentation</td><td>50.8</td><td>45.8</td><td>57.7</td><td>83.6</td><td>87.4</td><td>92.7</td></tr><tr><td>BGE-M3</td><td>Augmentation</td><td>46.5</td><td>42.8</td><td>52.7</td><td>79.5</td><td>83.4</td><td>90.7</td></tr><tr><td>T2Ranking</td><td>Fine-tuned</td><td>43.7</td><td>40.0</td><td>49.3</td><td>75.6</td><td>81.6</td><td>88.9</td></tr><tr><td>GTE-Qwen1.5-7B-instruct</td><td>Fine-tuned</td><td>48.0</td><td>42.6</td><td>53.8</td><td>81.2</td><td>85.1</td><td>91.8</td></tr><tr><td>CAIL2022 Train</td><td>Fine-tuned</td><td>46.7</td><td>44.1</td><td>52.7</td><td>80.5</td><td>85.0</td><td>91.0</td></tr><tr><td>Ours</td><td>Augmentation</td><td>56.3</td><td>49.6</td><td>63.5</td><td>87.3</td><td>89.9</td><td>94.5</td></tr><tr><td rowspan="2">Model</td><td rowspan="2">Type</td><td colspan="6">CAIL2022-LCR</td></tr><tr><td>P@5</td><td>P@10</td><td>MAP</td><td>NDCG@10</td><td>NDCG@20</td><td>NDCG@30</td></tr><tr><td>BM25</td><td>Traditional</td><td>54.0</td><td>49.7</td><td>57.6</td><td>81.8</td><td>86.0</td><td>91.8</td></tr><tr><td>Chinese BERT</td><td>Pre-trained</td><td>45.5</td><td>45.8</td><td>50.7</td><td>74.8</td><td>80.0</td><td>88.4</td></tr><tr><td>Lawformer</td><td>Pre-trained</td><td>53.0</td><td>50.5</td><td>57.5</td><td>84.5</td><td>87.9</td><td>93.0</td></tr><tr><td>SAILER</td><td>Pre-trained</td><td>60.5</td><td>54.2</td><td>65.7</td><td>91.9</td><td>94.3</td><td>97.0</td></tr><tr><td>ICT</td><td>Augmentation</td><td>51.0</td><td>47.7</td><td>53.5</td><td>81.5</td><td>85.2</td><td>91.5</td></tr><tr><td>CaseEncoder</td><td>Augmentation</td><td>58.0</td><td>54.2</td><td>63.6</td><td>91.7</td><td>93.6</td><td>96.5</td></tr><tr><td>BGE-M3</td><td>Augmentation</td><td>54.0</td><td>51.5</td><td>58.2</td><td>86.3</td><td>90.0</td><td>93.8</td></tr><tr><td>T2Ranking</td><td>Fine-tuned</td><td>54.5</td><td>52.2</td><td>59.3</td><td>86.6</td><td>89.4</td><td>94.1</td></tr><tr><td>GTE-Qwen1.5-7B-instruct</td><td>Fine-tuned</td><td>57.5</td><td>55.0</td><td>61.1</td><td>89.8</td><td>90.8</td><td>95.0</td></tr><tr><td>LeCaRD Train</td><td>Fine-tuned</td><td>56.0</td><td>53.5</td><td>59.6</td><td>88.6</td><td>91.5</td><td>94.7</td></tr><tr><td>Ours</td><td>Augmentation</td><td>65.0</td><td>58.0</td><td>67.7</td><td>94.0</td><td>94.7</td><td>97.4</td></tr></table>
|
| 93 |
+
|
| 94 |
+
Table 2: The main results of our model trained on LEAD and baseline models on LeCaRD and CAIL2022-LCR under the asymmetric retrieval setting.
|
| 95 |
+
|
| 96 |
+
case pairs, which is several hundred times larger than other LCR datasets available, and capable of supporting the training of existing data-hungry dense passage retrieval models.
|
| 97 |
+
|
| 98 |
+
Diversity In LCR, the diversity of charges can greatly benefit the performance of case retrieval. To achieve this, we carefully select cases across different charges and set a maximum threshold for the number of cases per charge. In total, we cover 210 charges, ensuring a diverse range of case descriptions. Additionally, in our prompts for query generation, we include two examples to help the model learn how to generate queries. Since the generated queries are easily affected by examples, each time a query is generated, the examples in the prompt are randomly selected from a set of examples to ensure diversity in the generated queries.
|
| 99 |
+
|
| 100 |
+
It's worth noting that our data construction method is automated and doesn't rely on manual annotation. This makes it highly efficient for application to any criminal case with a clear structure. As a result, the dataset's size and coverage can be expanded rapidly, not limited solely to the numbers mentioned. In section 4.6, we also apply the same method to generate data from civil cases.
|
| 101 |
+
|
| 102 |
+
Due to the asymmetric nature of our dataset, the average query length is only 79 characters, which is more close to the real-world applications. Specific examples in the dataset can be found in Table 7, and we present the statistics of our constructed dataset and other widely-used LCR datasets in Table 1.
|
| 103 |
+
|
| 104 |
+
# 3.5 Model Training
|
| 105 |
+
|
| 106 |
+
In this paper, we mainly focus on dense passage retrieval for legal cases. We adopt a dual-encoder architecture for all models. This involves separately encoding the query and the candidate cases to obtain query embeddings and candidate case embeddings and calculating the cosine similarity between them as the final similarity score.
|
| 107 |
+
|
| 108 |
+
The training is conducted in an in-batch negative setting (Karpukhin et al., 2020). In the in-batch negative setting, for each query in a batch with N training pairs, the negative examples are the positives of the other queries in the same batch, i.e., N-1 negative examples. However, when we use the newly identified positive examples from the dataset, some negatives may share the same charges, legal articles, or judgments with the positives, leading to false negatives that can impact the model training. To address this, during training, we set the
|
| 109 |
+
|
| 110 |
+
cosine similarity between negatives with the same charges as the positive to $-\infty$ . This is equivalent to removing these negatives from the negative set.
|
| 111 |
+
|
| 112 |
+
# 4 Experiments
|
| 113 |
+
|
| 114 |
+
# 4.1 Datasets and Metrics
|
| 115 |
+
|
| 116 |
+
In this paper, we focus on legal asymmetric retrieval, but existing datasets with human-annotated labels focus on symmetrical retrieval, where the queries are lengthy cases. Therefore, to better assess the model's performance in asymmetric retrieval, we adopt our method to simplify the query cases in benchmarks into a short version automatically. To ensure the high quality of evaluation benchmarks, we manually check the generated queries, ensuring that the queries do not change the key events. Specifically, we employ GPT-4 to generate the short version of queries and conduct quality testing by one of the authors. For case-to-case retrieval, we utilize the original datasets without query generation.
|
| 117 |
+
|
| 118 |
+
We adopt LEAD for training, and adopt two widely-used datasets for evaluation: (1) LeCaRD (Ma et al., 2021) is a widely-used LCR evaluation dataset, which contains 107 queries annotated by several legal practitioners. (2) CAIL2022-LCR $^{3}$ official testing set is furnished by the CAIL2022 organization, structured similarly to LeCaRD. We test our models on stage 2 of CAIL2022. In both datasets, each query has 100 candidate cases, but only 30 of them are manually annotated. The annotations range from 0 (Both key facts and key circumstances are irrelevant) to 1 (Key facts are irrelevant but key circumstances are relevant), 2 (Key facts are relevant but key circumstances are irrelevant), and 3 (Both key facts and key circumstances are relevant). We only consider the annotated cases, and regard cases marked as 3 as relevant.
|
| 119 |
+
|
| 120 |
+
As a retrieval task, we report normalized discounted cumulative gain (NDCG@10, NDCG@20, NDCG@30), Precision $(\mathrm{P}@5, \mathrm{P}@10)$ , and Mean Average Precision (MAP). These evaluation metrics align with those used in LeCaRD, aiming to provide a comprehensive understanding of the model's performance across various aspects.
|
| 121 |
+
|
| 122 |
+
# 4.2 Baselines
|
| 123 |
+
|
| 124 |
+
We compare our model with several competitive baselines, including:
|
| 125 |
+
|
| 126 |
+
Traditional Retrieval Model: (1) BM25 (Robertson and Zaragoza, 2009) utilizes exact word matching to score documents based on their term frequencies and document lengths.
|
| 127 |
+
|
| 128 |
+
Pretrained Models: (1) Chinese BERT is an adaptation of the original BERT model (Devlin et al., 2018) for the Chinese. (2) Lawformer (Xiao et al., 2021) is the first Chinese legal pre-trained model based on the longformer model (Beltagy et al., 2020). (3) SAILER (Li et al., 2023a) is a structure-aware pre-trained model for LCR, which employs an asymmetric encoder-decoder architecture for pre-training.
|
| 129 |
+
|
| 130 |
+
Data Augmentation Method: (1) Inverse Cloze task (ICT) (Lee et al., 2019) is a data augmentation method for retriever pre-training, which randomly samples a span from a text segment as the query, while the remaining context as the candidate. (2) CaseEncoder (Ma et al., 2023) constructs LCR data with fine-grained legal article information, which assumes that similar cases should contain similar legal articles. (3) BGE-M3 (Chen et al., 2024) is trained on large-scale synthetic and labeled data, showing strong generalization performance.
|
| 131 |
+
|
| 132 |
+
Fine-Tuned Models: (1) $\mathbf{T}^2$ Ranking (Xie et al., 2023) is a large-scale retrieval dataset in the open-domain. We directly utilize an open-source dual-encoder checkpoint, fine-tuned on the $\mathrm{T}^2$ Ranking dataset as our baseline model. (2) GTE-Qwen1.5-7B-instruct (Li et al., 2023d) is based on a large language model of 7B parameters and harnesses a multi-stage contrastive learning, demonstrating broad applicability across various NLP tasks. (3) LeCaRD / CAIL2022 Train refers to the models trained with the instances contained in LeCaRD or CAIL2022. Details are provided in appendix A.2. As one benchmark is used for training, we only present the results of this model on the other benchmark.
|
| 133 |
+
|
| 134 |
+
# 4.3 Implementation Details
|
| 135 |
+
|
| 136 |
+
During evaluation, we employ a truncation strategy for lengthy candidates. Specifically, when the length of a candidate case exceeds the maximum sequence length of the utilized models, we truncate the case into multiple segments. Subsequently, we individually calculate the similarity score between each segment and the query, ultimately selecting the maximum similarity score as the final score for the candidate case.
|
| 137 |
+
|
| 138 |
+
The training batch size is set as 128 and the encoders are trained for up to 80 epochs with a learn
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 3: Comparison of model performance with different proportions of augmented positive examples on LeCaRD and CAIL2022-LCR Datasets.
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
|
| 149 |
+
<table><tr><td></td><td>P@5</td><td>MAP</td><td>LeCaRD NDCG@10</td><td>NDCG@30</td></tr><tr><td>Ours</td><td>56.3</td><td>63.5</td><td>87.3</td><td>94.5</td></tr><tr><td>w/o M</td><td>52.0</td><td>58.0</td><td>84.1</td><td>92.8</td></tr><tr><td></td><td>P@5</td><td>MAP</td><td>CAIL2022-LCR NDCG@10</td><td>NDCG@30</td></tr><tr><td>Ours</td><td>65.0</td><td>67.7</td><td>94.0</td><td>97.4</td></tr><tr><td>w/o M</td><td>59.5</td><td>63.4</td><td>90.4</td><td>96.1</td></tr></table>
|
| 150 |
+
|
| 151 |
+
ing rate of 1e-5 using Adam, linear scheduling with warm-up, and dropout rate 0.1. The maximum input sequence length was set to 2048. Additionally, our model reported in Table 2 utilizes positive augmentation data at a ratio of $70\%$ . That is, $30\%$ of the query-candidate pairs in the dataset consist of queries paired with their original cases, while the remaining $70\%$ of query-candidate pairs comprise simplified queries paired with cases newly identified using the method outlined in Section 3.2. We randomly select 2048 samples from the dataset as the development set, with the rest used for training.
|
| 152 |
+
|
| 153 |
+
# 4.4 Main Result
|
| 154 |
+
|
| 155 |
+
The overall results are presented in Table 2. From the results, we can observe that: (1) Our model outperforms all baselines on both benchmarks by a large margin, achieving state-of-the-art performance. It indicates that using larger-scale and more comprehensive LCR data can greatly benefit task performance, which emphasizes the importance of developing data augmentation methods for LCR. (2) The traditional method, BM25, can outperform many models. Especially, BM25 can beat the models finetuned on $\mathrm{T}^2$ Ranking, which
|
| 156 |
+
|
| 157 |
+
Table 3: Comparison of model performance with and without false negative masking.
|
| 158 |
+
|
| 159 |
+
<table><tr><td>Models</td><td>BM25</td><td>BERT</td><td>TΒ²Ranking</td><td>Ours</td></tr><tr><td>Accuracy</td><td>54.3</td><td>52.1</td><td>52.2</td><td>56.2</td></tr></table>
|
| 160 |
+
|
| 161 |
+
Table 4: The results on the CAIL2019-SCM dataset.
|
| 162 |
+
|
| 163 |
+
consisting millions of open-domain retrieval instances. It proves that LCR task is challenging and directly employing open-domain models can not achieve satisfactory results. That is because LCR requires the models to capture not only semantic relevance but also legal element relevance. (3) Compared to the pre-trained models, our model trained with LEAD can achieve significant performance improvements. The pre-training for LCR usually involves millions of cases and days of pretraining, which is computationally expensive. It shows the potential of scaling high-quality data for LCR, which can avoid expensive pre-training and yield superior performance. (4) Our model can consistently outperform the data augmentation models and fine-tuned models. The existing data augmentation method can not generate high-quality data for LCR. Besides, existing open-domain data cannot benefit LCR performance, and the scale of existing manually annotated LCR datasets like LeCaRD cannot fulfill the requirements of training dense retrieval models, highlighting the importance of data scale rather than quality. Our proposed method to automatically construct large-scale data is effective in high-quality data generation. We also extend the base model to LLM and train with our constructed data, as presented in appendix A.4.
|
| 164 |
+
|
| 165 |
+
Error Analysis We have noticed the following errors: although our model is trained to handle short queries, it still struggles to identify the most relevant cases when the description of the case is only a few words long (e.g., "A killed B with a
|
| 166 |
+
|
| 167 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Model Type</td><td colspan="6">CAIL2022-LCR</td></tr><tr><td>P@5</td><td>P@10</td><td>MAP</td><td>NDCG@10</td><td>NDCG@20</td><td>NDCG@30</td></tr><tr><td>BM25</td><td>Traditional</td><td>50.5</td><td>49.8</td><td>55.1</td><td>80.2</td><td>82.7</td><td>90.5</td></tr><tr><td>Chinese BERT</td><td>Pre-trained</td><td>46.5</td><td>47.0</td><td>52.6</td><td>78.2</td><td>81.8</td><td>89.9</td></tr><tr><td>Lawformer</td><td>Pre-trained</td><td>52.0</td><td>50.8</td><td>54.9</td><td>82.6</td><td>84.6</td><td>91.2</td></tr><tr><td>SAILER</td><td>Pre-trained</td><td>60.5</td><td>55.3</td><td>66.8</td><td>92.6</td><td>94.2</td><td>97.1</td></tr><tr><td>ICT</td><td>Augmentation</td><td>48.5</td><td>47.0</td><td>52.2</td><td>79.6</td><td>82.9</td><td>90.6</td></tr><tr><td>CaseEncoder</td><td>Augmentation</td><td>63.5</td><td>56.0</td><td>65.6</td><td>92.8</td><td>94.1</td><td>96.9</td></tr><tr><td>BGE-M3</td><td>Augmentation</td><td>59.0</td><td>52.8</td><td>58.9</td><td>86.0</td><td>88.1</td><td>93.0</td></tr><tr><td>T2Ranking</td><td>Fine-tuned</td><td>56.5</td><td>50.8</td><td>57.4</td><td>83.4</td><td>86.7</td><td>92.2</td></tr><tr><td>GTE-Qwen1.5-7B-instruct</td><td>Fine-tuned</td><td>57.5</td><td>53.8</td><td>61.4</td><td>90.0</td><td>92.2</td><td>95.7</td></tr><tr><td>LeCaRD Train</td><td>Fine-tuned</td><td>57.0</td><td>55.6</td><td>58.6</td><td>88.1</td><td>90.9</td><td>93.8</td></tr><tr><td>Ours</td><td>Augmentation</td><td>65.0</td><td>58.5</td><td>69.2</td><td>94.4</td><td>95.2</td><td>97.6</td></tr></table>
|
| 168 |
+
|
| 169 |
+
Table 5: The results of our model trained on LEAD and baseline models on CAIL2022-LCR under the traditional case-to-case symmetric retrieval setting.
|
| 170 |
+
|
| 171 |
+
hammer then escaped."). At this point, among the most relevant cases, there are sometimes one or two cases with completely different charges (e.g., as hit-and-run). We assume that it's still difficult for the model to generate a vector representation of the legal elements contained in overly short queries.
|
| 172 |
+
|
| 173 |
+
Additionally, When two cases have many tokens in common, the model may overscore their similarity. For example, when retrieving medical malpractice cases, our model sometimes incorrectly ranks DUI (driving under the influence) cases highly because both types of cases often involve many concentration units $(\mathrm{mg / mL})$
|
| 174 |
+
|
| 175 |
+
# 4.5 Ablation Study
|
| 176 |
+
|
| 177 |
+
We adopt a knowledge-driven data augmentation strategy for dataset construction. In this subsection, we conduct an ablation study to explore the impact of augmented positive examples.
|
| 178 |
+
|
| 179 |
+
Proportion of Augmented Candidates. We adopt a knowledge-driven data augmentation strategy to make the query-candidate pairs with similar legal elements but diverse legal events. In this paragraph, to verify the effectiveness of the data augmentation, we conduct experiments with varying proportions of augmented positive examples within the dataset. Specifically, we present the results with the proportions as $\{0.00, 0.35, 0.700, 1.00\}$ . The results are shown in Figure 3.
|
| 180 |
+
|
| 181 |
+
From the results, we can observe that: (1) Compared with models without data augmentation $(0\%)$ , models trained with further data augmentation can achieve significant performance improvements for both two datasets and all metrics. It indicates that the knowledge-driven data augmentation methods can effectively match similar cases from the entire corpus and benefit the diversity of LEAD. (2) The
|
| 182 |
+
|
| 183 |
+
optimal performance is achieved at $70\%$ and when the proportion reaches $100\%$ , the model performance drops. This suggests that retaining a certain proportion of original cases as positive candidates is effective for LCR. We believe this is because these data instances help reduce the distance between simplified queries and original cases in the vector representation space, allowing the model to better comprehend the meaning of simplified queries in asymmetric retrieval scenarios. Additionally, since the queries and the positive cases in this portion of the data come from the same cases, they have high semantic similarity, which also encourages the model to generate similar vector representations for semantically similar cases.
|
| 184 |
+
|
| 185 |
+
False Negative Masking. We adopt the in-batch negative sampling strategy to increase the scale of negative sampling. However, this training strategy will inevitably introduce false negative noises. To address this challenge, we adopt a false negative masking strategy, where the cosine similarity of negative candidates with the same charges is set to $-\infty$ during the training process. In this paragraph, we evaluate the effects of false negative masking strategy, with the results presented in Table 3. We can find that removing the false negative masking strategy significantly deteriorates model performance on both datasets. This suggests that during the training process, many negative examples are indeed related to the query, and ignoring them can mitigate such interference.
|
| 186 |
+
|
| 187 |
+
# 4.6 Civil Case Retrieval
|
| 188 |
+
|
| 189 |
+
Our method to automatically construct LCR datasets is flexible and can be easily extended to any case. Existing LCR works usually focus on criminal cases and overlook civil cases, which are
|
| 190 |
+
|
| 191 |
+
more relevant to our daily lives. In this subsection, we construct a civil case retrieval dataset with the same construction method. Specifically, the judgment results of civil cases are more complex than criminal cases, and the knowledge-driven data augmentation strategy cannot be applied to civil cases. Therefore, here we present the results with no further candidate augmentation. Finally, we generate 77k query-candidate pairs for civil cases. We utilize CAIL2019-SCM (Xiao et al., 2019) as the benchmark, which comprises 3036 triplets for the private lending cases, each consisting of three cases: A, B, and C. The task is to determine which of case, B or C, is more similar to A. We report the accuracy of several models that are not limited to criminal cases, and our model in Table 4. Despite using only simplified queries and their corresponding original cases as training data, our model can achieve the best performance on this test set. This demonstrates that simple asymmetric retrieval data can also enable the model to understand legal elements, validating the robustness of our approach.
|
| 192 |
+
|
| 193 |
+
# 4.7 Case-to-Case Symmetric Retrieval
|
| 194 |
+
|
| 195 |
+
In this paper, we mainly focus on asymmetric LCR and our large-scale dataset can also benefit the traditional case-to-case symmetric retrieval setting. In this subsection, we evaluate the models in the traditional setting. The results are shown in Table 5. From the results, we can observe that (1) Our model still outperforms other models by a large margin, indicating that our constructed asymmetric retrieval dataset is not only effective for asymmetric retrieval tasks but also performs excellently in traditional case retrieval scenarios. This suggests that our model effectively learns to identify similar legal elements through augmented positive examples. (2) The baseline models can achieve superior performance on the asymmetric retrieval setting. That is because the lengthy query can provide more detailed information for models to retrieve similar cases. The short queries require the models to associate the key events and legal knowledge to capture relevance between the query and candidates, which presents a great challenge for existing models. Therefore, we encourage the community to devote more efforts to asymmetric LCR.
|
| 196 |
+
|
| 197 |
+
# 5 Conclusion
|
| 198 |
+
|
| 199 |
+
In this paper, we propose a method for automatically constructing high-quality, asymmetric legal
|
| 200 |
+
|
| 201 |
+
case retrieval datasets. We construct the largest LCR dataset to date, with over one hundred thousand query-candidate pairs, surpassing existing datasets by a hundredfold. We conduct experiments on two widely-used datasets, achieving state-of-the-art performance in LCR tasks. Moreover, our method is highly versatile, showing superior performance in civil case retrieval as well.
|
| 202 |
+
|
| 203 |
+
# Limitations
|
| 204 |
+
|
| 205 |
+
In this paper, we discuss the limitations of this paper: (1) We construct a large-scale synthetic LCR dataset for Chinese cases. Our method is language-agnostic and can also be applied to cases in other countries, which is worth exploring in the future. (2) We only fine-tune our model with LCR synthetic data. In the future, we can combine it with open-domain synthetic data to train an embedding model capable of multi-task applications.
|
| 206 |
+
|
| 207 |
+
# Acknowledgement
|
| 208 |
+
|
| 209 |
+
This work is supported by the National Science and Technology Major Project (2022ZD0160502), the National Natural Science Foundation of China (62106126), the National Social Science Fund of China (21AZD143), the Guoqiang Institute, Tsinghua University, Tsinghua-Toyota Joint Research Fund, Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing.
|
| 210 |
+
|
| 211 |
+
# References
|
| 212 |
+
|
| 213 |
+
Amin Abolghasemi, Suzan Verberne, and Leif Azzopardi. 2022. Improving bert-based query-by-document retrieval with multi-task optimization. In Proceedings of ECIR, volume 13186 of Lecture Notes in Computer Science, pages 3-12. Springer.
|
| 214 |
+
Akiko N. Aizawa. 2003. An information-theoretic perspective of tfidf measures. Inf. Process. Manag., 39(1):45-65.
|
| 215 |
+
Iz Beltagy, Matthew E. Peters, and Arman Cohan. 2020. Longformer: The long-document transformer. CoRR, abs/2004.05150.
|
| 216 |
+
Trevor J. M. Bench-Capon, Michal Araszkiewicz, Kevin D. Ashley, Katie Atkinson, Floris Bex, Filipe Borges, Danièle Bourcier, Paul Bourgine, Jack G. Conrad, Enrico Francesconi, Thomas F. Gordon, Guido Governori, Jochen L. Leidner, David D. Lewis, Ronald Prescott Loui, L. Thorne McCarty, Henry Prakken, Frank Schilder, Erich Schweighofer, Paul Thompson, Alex Tyrrell, Bart Verheij, Douglas N. Walton, and Adam Z. Wyner. 2012. A history
|
| 217 |
+
|
| 218 |
+
of AI and law in 50 papers: 25 years of the international conference on AI and law. Artif. Intell. Law, 20(3):215-319.
|
| 219 |
+
Paheli Bhattacharya, Kripabandhu Ghosh, Arindam Pal, and Saptarshi Ghosh. 2022. Legal case document similarity: You need both network and text. IPM, 59(6):103069.
|
| 220 |
+
Luiz Henrique Bonifacio, Israel Campiotti, Roberto de Alencar Lotufo, and Rodrigo Frassetto Nogueira. 2021. mmarco: A multilingual version of MS MARCO passage ranking dataset. CoRR, abs/2108.13897.
|
| 221 |
+
Wei-Cheng Chang, Felix X. Yu, Yin-Wen Chang, Yiming Yang, and Sanjiv Kumar. 2020. Pre-training tasks for embedding-based large-scale retrieval. In Proceedings of ICLR. OpenReview.net.
|
| 222 |
+
Jianlv Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. 2024. BGE m3-embedding: Multi-lingual, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. CoRR, abs/2402.03216.
|
| 223 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. 2020. A simple framework for contrastive learning of visual representations. In Proceedings of ICML, volume 119 of Proceedings of Machine Learning Research, pages 1597-1607. PMLR.
|
| 224 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. BERT: pre-training of deep bidirectional transformers for language understanding. CoRR, abs/1810.04805.
|
| 225 |
+
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. Lora: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
|
| 226 |
+
Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, Xinrong Zhang, Zhen Leng Thai, Kai Zhang, Chongyi Wang, Yuan Yao, Chenyang Zhao, Jie Zhou, Jie Cai, Zhongwu Zhai, Ning Ding, Chao Jia, Guoyang Zeng, Dahai Li, Zhiyuan Liu, and Maosong Sun. 2024. Minicpm: Unveiling the potential of small language models with scalable training strategies. CoRR, abs/2404.06395.
|
| 227 |
+
Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, and Edouard Grave. 2022. Unsupervised dense information retrieval with contrastive learning. TMLR, 2022.
|
| 228 |
+
Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick S. H. Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of EMNLP, pages 6769-6781. Association for Computational Linguistics.
|
| 229 |
+
|
| 230 |
+
Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. 2019. Latent retrieval for weakly supervised open domain question answering. In Proceedings of ACL, pages 6086-6096. Association for Computational Linguistics.
|
| 231 |
+
Haitao Li, Qingyao Ai, Jia Chen, Qian Dong, Yueyue Wu, Yiqun Liu, Chong Chen, and Qi Tian. 2023a. SAILER: structure-aware pre-trained language model for legal case retrieval. In Proceedings of SIGIR, pages 1035-1044. ACM.
|
| 232 |
+
Haitao Li, Yunqiu Shao, Yueyue Wu, Qingyao Ai, Yixiao Ma, and Yiqun Liu. 2023b. Lecardv2: A large-scale chinese legal case retrieval dataset. CoRR, abs/2310.17609.
|
| 233 |
+
Qingquan Li, Yiran Hu, Feng Yao, Chaojun Xiao, Zhiyuan Liu, Maosong Sun, and Weixing Shen. 2023c. USER: A multi-view similar case retrieval dataset. In Proceedings of CIKM, pages 5336-5340. ACM.
|
| 234 |
+
Zehan Li, Xin Zhang, Yanzhao Zhang, Dingkun Long, Pengjun Xie, and Meishan Zhang. 2023d. Towards general text embeddings with multi-stage contrastive learning. CoRR, abs/2308.03281.
|
| 235 |
+
Daniel Locke and Guido Zuccon. 2022. Case law retrieval: problems, methods, challenges and evaluations in the last 20 years. CoRR, abs/2202.07209.
|
| 236 |
+
Yixiao Ma, Yunqiu Shao, Yueyue Wu, Yiqun Liu, Ruizhe Zhang, Min Zhang, and Shaoping Ma. 2021. Lecard: A legal case retrieval dataset for chinese law system. In Proceedings of SIGIR, pages 2342-2348. ACM.
|
| 237 |
+
Yixiao Ma, Yueyue Wu, Qingyao Ai, Yiqun Liu, Yunqiu Shao, Min Zhang, and Shaoping Ma. 2024. Incorporating structural information into legal case retrieval. ACM Trans. Inf. Syst., 42(2):40:1-40:28.
|
| 238 |
+
Yixiao Ma, Yueyue Wu, Weihang Su, Qingyao Ai, and Yiqun Liu. 2023. Caseencoder: A knowledge-enhanced pre-trained model for legal case encoding. In Proceedings of EMNLP, pages 7134-7143. Association for Computational Linguistics.
|
| 239 |
+
Yifu Qiu, Hongyu Li, Yingqi Qu, Ying Chen, Qiaoqiao She, Jing Liu, Hua Wu, and Haifeng Wang. 2022. Dureader-retrieval: A large-scale chinese benchmark for passage retrieval from web search engine. In Proceedings of EMNLP, pages 5326-5338. Association for Computational Linguistics.
|
| 240 |
+
Stephen E. Robertson and Hugo Zaragoza. 2009. The probabilistic relevance framework: BM25 and beyond. Found. Trends Inf. Retr., 3(4):333-389.
|
| 241 |
+
Devendra Singh Sachan, Siva Reddy, William L. Hamilton, Chris Dyer, and Dani Yogatama. 2021. End-to-end training of multi-document reader and retriever for open-domain question answering. In Proceedings of NeurIPS, pages 25968-25981.
|
| 242 |
+
|
| 243 |
+
Carlo Sansone and Giancarlo SperlΓ. 2022. Legal information retrieval systems: State-of-the-art and open issues. Inf. Syst., 106:101967.
|
| 244 |
+
Yunqiu Shao, Jiaxin Mao, Yiqun Liu, Weizhi Ma, Ken Satoh, Min Zhang, and Shaoping Ma. 2020. BERT-PLI: modeling paragraph-level interactions for legal case retrieval. In Proceedings of IJCAI, pages 3501-3507. ijcai.org.
|
| 245 |
+
Zhongxiang Sun, Jun Xu, Xiao Zhang, Zhenhua Dong, and Ji-Rong Wen. 2022. Law article-enhanced legal case matching: a model-agnostic causal learning approach. CoRR, abs/2210.11012.
|
| 246 |
+
Zhongxiang Sun, Jun Xu, Xiao Zhang, Zhenhua Dong, and Ji-Rong Wen. 2023a. Law article-enhanced legal case matching: A causal learning approach. In Proceedings of SIGIR, pages 1549-1558. ACM.
|
| 247 |
+
Zhongxiang Sun, Weijie Yu, Zihua Si, Jun Xu, Zhenhua Dong, Xu Chen, Hongteng Xu, and Ji-Rong Wen. 2023b. Explainable legal case matching via graph optimal transport. TKDE.
|
| 248 |
+
Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. 2024. Improving text embeddings with large language models. CoRR, abs/2401.00368.
|
| 249 |
+
Chaojun Xiao, Xueyu Hu, Zhiyuan Liu, Cunchao Tu, and Maosong Sun. 2021. Lawformer: A pre-trained language model for chinese legal long documents. AI Open, 2:79-84.
|
| 250 |
+
Chaojun Xiao, Zhiyuan Liu, Yankai Lin, and Maosong Sun. 2023. Legal knowledge representation learning. In Representation Learning for Natural Language Processing, pages 401-432. Springer Nature Singapore Singapore.
|
| 251 |
+
Chaojun Xiao, Haoxi Zhong, Zhipeng Guo, Cunchao Tu, Zhiyuan Liu, Maosong Sun, Tianyang Zhang, Xianpei Han, Heng Wang, Jianfeng Xu, et al. 2019. Cail2019-scm: A dataset of similar case matching in legal domain. arXiv preprint arXiv:1911.08962.
|
| 252 |
+
Xiaohui Xie, Qian Dong, Bingning Wang, Feiyang Lv, Ting Yao, Weinan Gan, Zhijing Wu, Xiangsheng Li, Haitao Li, Yiqun Liu, and Jin Ma. 2023. T2ranking: A large-scale chinese benchmark for passage ranking. In Proceedings of SIGIR, pages 2681-2690. ACM.
|
| 253 |
+
Feng Yao, Chaojun Xiao, Xiaozhi Wang, Zhiyuan Liu, Lei Hou, Cunchao Tu, Juanzi Li, Yun Liu, Weixing Shen, and Maosong Sun. 2022. LEVEN: A large-scale chinese legal event detection dataset. In Findings of ACL, pages 183-201. Association for Computational Linguistics.
|
| 254 |
+
Weijie Yu, Zhongxiang Sun, Jun Xu, Zhenhua Dong, Xu Chen, Hongteng Xu, and Ji-Rong Wen. 2022. Explainable legal case matching via inverse optimal transport-based rationale extraction. In Proceedings of SIGIR, pages 657-668. ACM.
|
| 255 |
+
|
| 256 |
+
Yiming Zeng, Ruili Wang, John Zeleznikow, and Elizabeth A. Kemp. 2007. A knowledge representation model for the intelligent retrieval of legal cases. Int. J. Law Inf. Technol., 15(3):299-319.
|
| 257 |
+
|
| 258 |
+
# A Appendix
|
| 259 |
+
|
| 260 |
+
# A.1 Data Construction Details
|
| 261 |
+
|
| 262 |
+
To generate concise case descriptions from case facts, we employ a large-scale generative language model, for query generation. The input instructions and a sample case description, along with its original case fact, are shown in Table 6.
|
| 263 |
+
|
| 264 |
+
The generated case description retains all the legal elements from the original case fact while omitting the rest of the content. The original case fact, being part of a court judgment, contains a plethora of details to comprehensively describe the case's proceedings. However, including these details as part of a real-world user query is redundant.
|
| 265 |
+
|
| 266 |
+
# A.2 Experimental Details
|
| 267 |
+
|
| 268 |
+
Training with LeCaRD LeCaRD training set annotates 30 cases for relevance to each query. When constructing the dataset, for each query $Q_{i}$ , all cases with a relevance score of 3 are designated as $\{P_{i1}, P_{i2}, \dots, P_{in}\}$ , while the remaining cases are designated as $\{N_{i1}, N_{i2}, \dots, N_{im}\}$ . If $m < n$ , then $m - n$ cases are randomly selected from the 70 unannotated cases to form $\{N_{i(m + 1)}, N_{i(m + 2)}, \dots, N_{in}\}$ . Each training datum consists of one query, one positive case, and one negative case, denoted as $(Q_{i}, P_{ij}, N_{ij})$ , where $i = 1, 2, \dots, 107$ and $j = 1, 2, \dots, n$ . This process results in a training set of size 1,112. The remaining implementation details are same as those described in Section 4.3. Existing datasets usually contain limited annotated pairs and cannot fulfill the requirements for the training of data-hungry neural models.
|
| 269 |
+
|
| 270 |
+
# A.3 Addition Experiment Result
|
| 271 |
+
|
| 272 |
+
We also conducted experiments on the original LeCaRD dataset under the traditional case-to-case symmetric retrieval setting, and the results are shown in Table 8. Here, we present the results of all baseline models and the models trained on LEAD with different proportions of augmented positive examples.
|
| 273 |
+
|
| 274 |
+
From the results, we can observe that similar to the results on the CAIL2022-LCR dataset, our dataset, LEAD can significantly benefit the performance of traditional case-to-case symmetric retrieval.
|
| 275 |
+
|
| 276 |
+
# A.4 Scaling to LLM
|
| 277 |
+
|
| 278 |
+
We also scaled our base model to LLM and then fine-tuned it using our data.
|
| 279 |
+
|
| 280 |
+
# A.4.1 Implementation Details
|
| 281 |
+
|
| 282 |
+
LLM is typically trained on the Next Token Prediction task, utilizing causal attention and Last Token Pooling strategy. To adapt the model into an Embedding Model, we first modified it to bidirectional attention and Mean Pooling strategy.
|
| 283 |
+
|
| 284 |
+
We employed the open-source generative language model MiniCPM (Hu et al., 2024). For our training setup, we set the batch size to 128 and trained the model for up to 10 epochs with a learning rate of 1e-4 using Adam, linear scheduling. The softmax score was set to 0.2. Due to computational constraints, we limited the sequence length to 512 and employed LoRA (Hu et al., 2022) with a rank of 16. Additionally, we enabled mixed precision training with bfloat16. We did not use the false negative masking strategy here.
|
| 285 |
+
|
| 286 |
+
# A.4.2 Main result
|
| 287 |
+
|
| 288 |
+
As shown in Table 9, although MiniCPM is a generative language model, the results of training it directly with LCR data still significantly surpass the strongest baseline, SAILER. This demonstrates the powerful potential of scaling models in LCR. By incorporating data from other domains, we can train large models that perform exceptionally well across multiple tasks.
|
| 289 |
+
|
| 290 |
+
# A.5 Articles of the Criminal Law of the People's Republic of China
|
| 291 |
+
|
| 292 |
+
# Article 67
|
| 293 |
+
|
| 294 |
+
[General Voluntary Surrender] If, after committing a crime, the offender voluntarily surrenders and truthfully confesses their crime, it is considered voluntary surrender. For offenders who voluntarily surrender, a lighter or mitigated punishment may be imposed. If the crime is minor, the punishment may be waived.
|
| 295 |
+
|
| 296 |
+
[Special Voluntary Surrender] If a criminal suspect, defendant, or convict under compulsory measures truthfully confesses to other crimes not yet known to the judicial authorities, it is considered voluntary surrender.
|
| 297 |
+
|
| 298 |
+
Even if a criminal suspect does not meet the conditions for voluntary surrender specified in the previous two paragraphs, a truthful confession of their crime can lead to a lighter punishment; if the truthful confession prevents particularly severe
|
| 299 |
+
|
| 300 |
+
consequences, a mitigated punishment may be imposed.
|
| 301 |
+
|
| 302 |
+
# Article 133
|
| 303 |
+
|
| 304 |
+
[Traffic Accident Crime] Violating traffic and transportation regulations resulting in a major accident that causes serious injury, death, or significant property damage shall be punished by imprisonment of up to three years or criminal detention. If the offender flees the scene of the accident or if there are other particularly egregious circumstances, the punishment shall be imprisonment of three to seven years. If fleeing the scene results in a person's death, the punishment shall be imprisonment of seven years or more.
|
| 305 |
+
|
| 306 |
+
Article 133-1 [Dangerous Driving Crime] Driving a motor vehicle on the road under any of the following circumstances shall be punished by criminal detention and a fine:
|
| 307 |
+
|
| 308 |
+
(1) Racing in a particularly egregious manner;
|
| 309 |
+
(2) Driving a motor vehicle while intoxicated;
|
| 310 |
+
(3) Seriously exceeding the passenger limit or the speed limit while engaged in school bus or passenger transport services;
|
| 311 |
+
(4) Violating safety management regulations for the transport of hazardous chemicals, thereby endangering public safety.
|
| 312 |
+
|
| 313 |
+
If the owner or manager of the motor vehicle is directly responsible for the actions specified in items (3) and (4) of the preceding paragraph, they shall be punished according to the preceding paragraph.
|
| 314 |
+
|
| 315 |
+
If the actions specified in the preceding two paragraphs also constitute other crimes, the more severe punishment shall apply.
|
| 316 |
+
|
| 317 |
+
Article 133-2 [Obstructing Safe Driving Crime] Using violence against or forcibly taking control of the operating equipment of the driver of a public transportation vehicle in operation, thereby interfering with the normal operation of the vehicle and endangering public safety, shall be punished by imprisonment of up to one year; criminal detention, or control, and may also be fined.
|
| 318 |
+
|
| 319 |
+
If the driver of a public transportation vehicle in operation abandons their post, fights with others, or assaults others, thereby endangering public safety, they shall be punished according to the preceding paragraph.
|
| 320 |
+
|
| 321 |
+
# System:
|
| 322 |
+
|
| 323 |
+
As a legal expert, you are capable of extracting key elements from the basic information of a case.
|
| 324 |
+
|
| 325 |
+
# User:
|
| 326 |
+
|
| 327 |
+
I have a dataset for searching cases by case. However, the basic information of the cases in my dataset is too long. I will send you the basic information of these cases, please help me simplify them, and greatly shorten their length while retaining key legal elements. You can remove non-key names, locations, etc., but do not delete important elements for case judgments.
|
| 328 |
+
|
| 329 |
+
# Assistant:
|
| 330 |
+
|
| 331 |
+
I understand your requirement.
|
| 332 |
+
|
| 333 |
+
# User:
|
| 334 |
+
|
| 335 |
+
In August 2015, XX Co., Ltd. obtained the right to use state-owned construction land in XX Lake area of XX District through public auction, and developed the "XX" project. The defendants Alice, Bob, Charlie, David, and Edward are villagers of XX Village, XX Street Office, XX District, within the scope of the project. The demolition and compensation within the scope of the land has been implemented by the Management Committee of XX in 2014. After the "XX" project started construction on July 13, 2016, Alice, Bob, and others proposed to the construction party to contract part of the project such as excavation of retaining walls and earthwork excavation of foundation piles. Because they did not have the construction qualification, the project developer did not agree. From July 20 to August 12, 2016, Alice, Bob, Charlie, David, and Edward convened at "XX" and "XX" Tea House to discuss obstructing the construction, and raised 70,000 yuan for the obstruction fund. At the same time, Bob, Charlie, David, and others used WeChat groups and phone calls to invite and mobilize more than 20 villagers from their village and their family members to obstruct the construction of the "XX" construction site by methods such as locking the gate, pulling the power switch, insulting, and standing on construction machinery, causing the construction site to be unable to proceed normally. The economic loss caused by the obstruction during the construction period was appraised by XX District Price Certification Center as 124,530 yuan.
|
| 336 |
+
|
| 337 |
+
# Assistant:
|
| 338 |
+
|
| 339 |
+
A company obtained the right to use construction land through auction and compensation has been implemented, but villagers nearby conspired to obstruct construction, raising a fund of 70,000 yuan and mobilizing more than 20 villagers to repeatedly obstruct the construction site, causing an economic loss appraised at 124,530 yuan.
|
| 340 |
+
|
| 341 |
+
Table 6: Prompt and an example for generating short queries, where specific information such as names and locations have been anonymized.
|
| 342 |
+
|
| 343 |
+
# Query Case 1:
|
| 344 |
+
|
| 345 |
+
The defendant, on a certain day while passing through a neighborhood, stole a motorcycle worth approximately 3,000 yuan. Subsequently, the defendant rode the motorcycle to another city, intending to sell it to someone, but was apprehended on the spot by the owner. The stolen motorcycle has been recovered and returned to the victim. The defendant has confessed to their crime.
|
| 346 |
+
|
| 347 |
+
# Positive Case 1:
|
| 348 |
+
|
| 349 |
+
The People's Procuratorate of Hanshan County accuses: On the evening of September 24, 2017, the defendant Li Jun walked to the entrance of the old transportation bureau dormitory lane opposite Hanshan No. 2 Middle School, and stole the Jixiangshi brand two-wheeled electric bike parked there by reconnecting the electric wire. The next evening, the defendant Li Jun rode the stolen electric bike to the Shanghai Qiqiang Electric Bike Shop located at Wangmei Road in Hanshan County for sale. Since the price negotiation with the shop owner was not successful, he then hid the electric bike under the building of Han City River and River Water Conservancy Construction and Installation Co., Ltd. The appraisal price of the stolen electric bike was 1760 yuan. On October 1, 2017, the defendant Li Jun was arrested at his home in Motang Village, Chengbei Administrative Village, Huanfeng Town, Hanshan County by the Hanshan County Public Security Bureau. On October 2, 2017, the Hanshan County Public Security Bureau returned the stolen vehicle to the victim Mao.
|
| 350 |
+
|
| 351 |
+
# Query Case 2:
|
| 352 |
+
|
| 353 |
+
Defendant Alice was driving a car while intoxicated, rear-ending another vehicle and causing property damage. Alice was determined to be fully responsible. Alice's blood alcohol content exceeded the legal limit.
|
| 354 |
+
|
| 355 |
+
# Positive Case 2:
|
| 356 |
+
|
| 357 |
+
After investigation, it was found that on January 20, 2012, at around 8:10 PM, the defendant, Yu, had dinner and drank alcohol with friends. After drinking, he drove the vehicle with license plate Shaanxi AWB062 home. While driving north along Mingguang Road and approaching the intersection with Fengcheng 8th Road, he failed to brake in time and collided with the rear end of the vehicle with license plate Shaanxi AFU210, driven by Guo Guangcheng, who was waiting at the traffic light. This caused Guo's vehicle to rear-end the vehicle in front, with license plate Shaanxi A05V90, driven by Zhao Ming, resulting in a traffic accident involving damage to all three vehicles. The public security authorities apprehended the defendant, Yu, at the scene. The road traffic accident report determined that the defendant, Yu, was fully responsible for the accident, while Guo Guangcheng and Zhao Ming bore no responsibility. It was determined that the defendant, Yu, had a blood alcohol concentration of $180.51\mathrm{mg} / 100\mathrm{ml}$ . Further investigation revealed that on February 2, 2012, the defendant, Yu, paid Zhao Ming 12,000 yuan for vehicle repairs. On February 10, 2012, the defendant compensated Guo Guangcheng 65,000 yuan, after which Guo Guangcheng transferred ownership of the vehicle with license plate Shaanxi AFU210 to Yu.
|
| 358 |
+
|
| 359 |
+
Table 7: Two examples of data constructed using our method. The similar legal key elements in the cases are marked with the same color.
|
| 360 |
+
|
| 361 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Model Type</td><td colspan="6">LeCaRD</td></tr><tr><td>P@5</td><td>P@10</td><td>MAP</td><td>NDCG@10</td><td>NDCG@20</td><td>NDCG@30</td></tr><tr><td>BM25</td><td>Traditional</td><td>40.7</td><td>39.5</td><td>48.9</td><td>73.5</td><td>78.8</td><td>87.7</td></tr><tr><td>Chinese BERT</td><td>Pre-trained</td><td>36.8</td><td>36.0</td><td>42.8</td><td>70.2</td><td>77.0</td><td>86.5</td></tr><tr><td>Lawformer</td><td>Pre-trained</td><td>40.2</td><td>37.7</td><td>46.7</td><td>73.6</td><td>79.7</td><td>88.3</td></tr><tr><td>SAILER</td><td>Pre-trained</td><td>49.5</td><td>44.3</td><td>57.7</td><td>84.7</td><td>88.9</td><td>93.7</td></tr><tr><td>ICT</td><td>Augmentation</td><td>36.3</td><td>35.6</td><td>45.1</td><td>70.0</td><td>77.0</td><td>86.6</td></tr><tr><td>CaseEncoder</td><td>Augmentation</td><td>49.2</td><td>45.8</td><td>57.2</td><td>83.5</td><td>87.5</td><td>92.9</td></tr><tr><td>BGE-M3</td><td>Augmentation</td><td>45.6</td><td>41.4</td><td>51.8</td><td>77.2</td><td>81.9</td><td>89.9</td></tr><tr><td>T2Ranking</td><td>Fine-tuned</td><td>43.9</td><td>40.1</td><td>49.9</td><td>75.7</td><td>81.1</td><td>89.0</td></tr><tr><td>GTE-Qwen1.5-7B-instruct</td><td>Fine-tuned</td><td>45.6</td><td>40.7</td><td>51.3</td><td>77.9</td><td>83.0</td><td>90.4</td></tr><tr><td>Ours (0%)</td><td>Augmentation</td><td>45.0</td><td>42.0</td><td>51.7</td><td>77.8</td><td>82.8</td><td>90.1</td></tr><tr><td>Ours (35%)</td><td>Augmentation</td><td>51.8</td><td>46.4</td><td>59.0</td><td>83.1</td><td>87.2</td><td>92.5</td></tr><tr><td>Ours (70%)</td><td>Augmentation</td><td>54.4</td><td>47.1</td><td>60.9</td><td>84.3</td><td>87.8</td><td>93.0</td></tr><tr><td>Ours (100%)</td><td>Augmentation</td><td>52.3</td><td>47.3</td><td>61.8</td><td>84.7</td><td>88.2</td><td>93.3</td></tr></table>
|
| 362 |
+
|
| 363 |
+
Table 8: The results of our model trained on LEAD and baseline models on LeCaRD under the traditional case-to-case symmetric retrieval setting.
|
| 364 |
+
|
| 365 |
+
<table><tr><td rowspan="2">Model</td><td colspan="6">LeCaRD</td></tr><tr><td>P@5</td><td>P@10</td><td>MAP</td><td>NDCG@10</td><td>NDCG@20</td><td>NDCG@30</td></tr><tr><td>SAILER</td><td>51.8</td><td>46.5</td><td>59.7</td><td>86.0</td><td>89.5</td><td>93.9</td></tr><tr><td>Ours (MiniCPM)</td><td>53.8</td><td>47.8</td><td>62.3</td><td>87.4</td><td>90.3</td><td>94.8</td></tr></table>
|
| 366 |
+
|
| 367 |
+
Table 9: The results of our model based on MiniCPM, trained on LEAD, under the asymmetric retrieval setting on LeCaRD
|
2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1dd71866322af0b9b2c5f73017491fe8eb53c68841281af53d94045e62d35f9
|
| 3 |
+
size 484444
|
2024/Enhancing Legal Case Retrieval via Scaling High-quality Synthetic Query-Candidate Pairs/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/dd6463d7-f062-4578-83e5-f6e41ccb00b3_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/dd6463d7-f062-4578-83e5-f6e41ccb00b3_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/dd6463d7-f062-4578-83e5-f6e41ccb00b3_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6636a349e33b026dd343b5603e355fca90d8f44856dc6d93ac33d528d9fc927f
|
| 3 |
+
size 1210168
|
2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/full.md
ADDED
|
@@ -0,0 +1,453 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition
|
| 2 |
+
|
| 3 |
+
Pritika Ramu, Koustava Goswami, Apoorv Saxena, Balaji Vasan Srinivavsan
|
| 4 |
+
Adobe Research, India
|
| 5 |
+
|
| 6 |
+
{pramu, koustavag, apoorvs, balsrini}@adobe.com
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
Accurately attributing answer text to its source document is crucial for developing a reliable question-answering system. However, attribution for long documents remains largely unexplored. Post-hoc attribution systems are designed to map answer text back to the source document, yet the granularity of this mapping has not been addressed. Furthermore, a critical question arises: What exactly should be attributed? This involves identifying the specific information units within an answer that require grounding. In this paper, we propose and investigate a novel approach to the factual decomposition of generated answers for attribution, employing template-based in-context learning. To accomplish this, we utilize the question and integrate negative sampling during few-shot in-context learning for decomposition. This approach enhances the semantic understanding of both abstractive and extractive answers. We examine the impact of answer decomposition by providing a thorough examination of various attribution approaches, ranging from retrieval-based techniques to LLM-based contributors.
|
| 11 |
+
|
| 12 |
+
# 1 Introduction
|
| 13 |
+
|
| 14 |
+
The rise of Large Language Models (LLMs) and GenAI-based technologies has greatly increased their usability across various sectors, notably in grounded question-answering systems. However, to establish trust, it's crucial to attribute information obtained from source documents, especially given the tendency of these models to generate texts from their own knowledge bases (Huang et al., 2023). With opaque LLMs like ChatGPT, there's a need to explore post-hoc attribution methods to enhance reliability. Targeted attribution is necessary in chat-based question-answering systems to improve user experience, as not every part of an answer requires attribution.
|
| 15 |
+
|
| 16 |
+
Prior research addresses generating attributions alongside responses in open domains (Gao et al.,
|
| 17 |
+
|
| 18 |
+
<table><tr><td>INPUT</td></tr><tr><td>Question: paint cast iron</td></tr><tr><td>Document: [1] If you're working with a smaller piece of cast iron, you can wipe it down with a damp rag, instead.
|
| 19 |
+
[2] To paint cast iron, you should first coat it with oil-based primer.
|
| 20 |
+
[3] Priming the metal creates a smooth surface and will help the paint adhere.</td></tr></table>
|
| 21 |
+
|
| 22 |
+
<table><tr><td>Answer: Are you looking for information on how to paint cast iron? If so, I found a helpful article on wikiHow that provides a step-by-step guide on how to paint cast iron. To paint cast iron, you should first coat it with oil-based primer to create a smooth surface and help the paint adhere. Would you like more information on this topic?</td></tr></table>
|
| 23 |
+
|
| 24 |
+
<table><tr><td>OUTPUT</td></tr><tr><td>Are you looking for information on how to paint cast iron? If so, I found a helpful article on wikifHow that provides a step-by-step guide on how to paint cast iron. To paint cast iron, you should first coat it with oil-based primer to create a smooth surface and help the paint adhere [2][3]. Would you like more information on this topic?</td></tr></table>
|
| 25 |
+
|
| 26 |
+
Figure 1: An example from Verifiability dataset. The input to the post-hoc attribution system is the question, document and answer. The output is evidence sentences from the document. Text marked in red do not require attribution.
|
| 27 |
+
|
| 28 |
+
2023b,a), either per sentence or per paragraph (Bohnet et al., 2023). However, attributing responses in long document sequences is challenging, and inline attribution falls short (Gao et al., 2023b). Additionally, determining when to cite is crucial, as inappropriate or excessive citations can lead to redundancy (Huang and Chang, 2024). Moreover, excessive in-line citations can diminish creativity in generated content (Huang and Chang, 2024). (Guo et al., 2022) explores fine-tuning to enhance attributions, but these models are domain-specific, limiting their adaptability.
|
| 29 |
+
|
| 30 |
+
With rise of LLMs, the attribution task is viewed as a retrieval and mapping task (Li et al., 2022). This shift presents challenges, especially in abstractive question-answering scenarios, where retrieving context is not straightforward, and semantic relatedness must often be inferred from the entire document context. Notably, (Gao et al., 2023a) has underscored the limitations of retriever-based attribution engines, particularly in handling out-of-distribution knowledge during context processing.
|
| 31 |
+
|
| 32 |
+
Despite these efforts, existing methods treat an-
|
| 33 |
+
|
| 34 |
+
svers as singular attributable elements and strive to map them back to long sequence contexts. However, answers can encompass multiple facts and are contextually dependent on the posed question. Existing fine-tuning or retriever-based systems face challenges in identifying the specific attributable components within an answer. In this paper, we formulate post-hoc attribution as the task of identifying source sentences from a document that support attributable parts of an answer when our input consists of a question, answer, and the document from which the answer is obtained.
|
| 35 |
+
|
| 36 |
+
Firstly, we propose using template-based in-context learning as a method to achieve question-contextualized decomposition of answers. This technique helps break down answers that aligns with the question, which aids identifying references in the document context. This alignment is crucial as it enhances the identification of the specific information units necessary to answer the question effectively. Empirical observations suggest that guiding a language model for specific tasks in few-shot settings can lead to improved adaptability (Ma et al., 2023). Building upon this insight, we recognize the significance of guiding a language model for in-context decomposition. Additionally, we introduce negative sampling-based in-context learning to enable language models to discern between good and bad decomposition.
|
| 37 |
+
|
| 38 |
+
Secondly, we analyze the use of different retrieval methods as contributors and compare their performance using four decomposition methods. We observe that, on average, question-contextualized coarse-grain decomposition results are comparable, and in some settings, better than using non-decomposed sentences. This serves as a regression test for our methodology without degrading retriever performance. Moreover, our experimental results on the Citation Verifiability dataset highlight that contextualized coarse-grain decomposition for retriever-based contributors (BM25, GTR, MonoT5) achieves, on average, a $3\%$ gain in precision over baseline models, emphasizing the efficacy of decomposition for attributions (Table 1).
|
| 39 |
+
|
| 40 |
+
Thirdly, we examine the use of LLMs as post-hoc contributors and the advantages they offer by considering the context of the question and the decomposed answer. We observe a significant improvement in performance both empirically and qualitatively when providing question-contextualized coarse-grain decomposition of answers to LLMs.
|
| 41 |
+
|
| 42 |
+
By leveraging LLMs as contributors and incorporating question-contextualized coarse-grain decomposition, we achieve state-of-the-art performance on the QASPER and Verifiability datasets (Table 2).
|
| 43 |
+
|
| 44 |
+
# 2 Related Work
|
| 45 |
+
|
| 46 |
+
Multiple works have established the need for ensuring a trustworthy model and how citations and attributions can help ensure that reliable information is provided or to detect if any information is hallucinated (Huang and Chang, 2023; Litschko et al., 2023; Rashkin et al., 2022; Venkit et al., 2024). Efforts to create truthful AI have been highlighted, emphasizing the importance of fact-checking and claim verification, even in the pre-LLM era (Evans et al., 2021). Notably, (Petroni et al., 2022) focuses on improving the identification of claims from Wikipedia that lack support from citations, with a specific emphasis on identifying supporting evidence at a paragraph level. In addition to unimodal systems, multimodal systems, with the introduction of generative AI, are becoming increasingly important to attribute contextual parts and build trustworthy AI systems (Ancona et al., 2017; Holzinger et al., 2021; Zhao et al., 2023; Phukan et al., 2024).
|
| 47 |
+
|
| 48 |
+
In the context of dialogue systems requiring background knowledge, issues with spurious correlations have been acknowledged, necessitating a more robust method for identifying what can be attributed in an abstractive setting (Dziri et al., 2022). (Mei et al., 2023) introduces the identification of missing information and providing appropriate attributions to mitigate potential dangers due to misinformation. Meanwhile, (Sarti et al., 2023a,b) delve into the analysis of feature attribution and interpretability of language models. A unique task is undertaken by (Funkquist et al., 2023), which addresses the creation of inline citations for scientific articles from abstracts of other scientific articles.
|
| 49 |
+
|
| 50 |
+
(Sancheti et al., 2024) introduced fine-grained attribution of answers but did not cover fact-based attribution. The task of fact-based attributionβassigning facts from answers to a list of evidence sentences rather than paragraphsβis underexplored in the existing literature. This underscores the need for further exploration in fact-based attribution, particularly concerning sentence-level source attributions and the challenges posed by long document sequences in question-answering systems.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: Pipeline for attribution: Answers are decomposed and sent to the attributor for identifying evidences.
|
| 54 |
+
|
| 55 |
+
# 3 Method
|
| 56 |
+
|
| 57 |
+
We propose a 2-fold process: First, decompose the answer into smaller information units, then employ an attributor to map these units to evidence from the source document (Fig. 2). We investigate using retrieval methods and various LLMs for attribution.
|
| 58 |
+
|
| 59 |
+
# 3.1 Task Definition
|
| 60 |
+
|
| 61 |
+
Given a question $Q$ , a collection of evidence sentences $E = e_1, \ldots, e_n$ extracted from document D, and an answer $A$ to question $Q$ , the objective is to identify supporting evidence sentences (attributions) $e_i \in E$ for each answer part $a_i \in A = a_1, \ldots, a_m$ . Each $a_i$ may have multiple evidence sentences associated with it. An answer part is defined as a single complete sentence from an answer.
|
| 62 |
+
|
| 63 |
+
# 3.2 Answer Decomposition
|
| 64 |
+
|
| 65 |
+
To link answer components to a given document, we decompose the answer parts into smaller units known as information units.
|
| 66 |
+
|
| 67 |
+
# 3.2.1 Definition
|
| 68 |
+
|
| 69 |
+
Answers to a question often extend over considerable lengths, encapsulating diverse facts and information. Within these responses, the veracity of facts can vary, presenting a mix of true and false statements. When tasked with extracting evidence from a document in response to a question, the determination of factual accuracy relies on whether a given fact is substantiated by at least one supporting evidence from the source document.
|
| 70 |
+
|
| 71 |
+
The granularity at which we deconstruct an answer can vary, spanning from fine-grained to coarse-grained representations. While previous studies have investigated the use of a sentence from an answer as an information unit, it is important
|
| 72 |
+
|
| 73 |
+
to note that some sentences may be intricate, containing multiple conjunctions of information. This complexity underscores the need for a nuanced approach to information unit selection in order to capture what is to be attributed from an answer accurately. Identifying which information from the answer requires grounding is an important task to prevent grounding unnecessary sentences.
|
| 74 |
+
|
| 75 |
+
For answer part $a_i \in A$ , we can decompose $a_i$ as $iu_1, \ldots,iu_n$ such that information $(iu_i) \subseteq$ information $(a_i)$ .
|
| 76 |
+
|
| 77 |
+
# 3.2.2 Revisiting Fine Grained Decomposition
|
| 78 |
+
|
| 79 |
+
FActScore (Min et al., 2023) defines an atomic fact as a short sentence that conveys a single piece of information. This method assesses the factual precision of long texts through fine-grained decomposition but does not consider what specifically requires attribution and decomposition. By decomposing one sentence at a time, it often overlooks contextual semantics and the context of the question. To address these limitations, we propose Coarse Grained Decomposition (CoG).
|
| 80 |
+
|
| 81 |
+
# 3.2.3 Coarse Grained Decomposition (CoG)
|
| 82 |
+
|
| 83 |
+
Determining the appropriate granularity for decomposing an answer is subjective. For tasks requiring evidence extraction from a source document, it is impractical to set a strict upper limit on the number of facts per information unit. To effectively guide this process, we propose a question-contextualized decomposition approach. By developing a question-aware prompt template, we direct the LLM to generate information units that align closely with the specific context and requirements of the question.
|
| 84 |
+
|
| 85 |
+
We design the prompt template for coarse
|
| 86 |
+
|
| 87 |
+
grained decomposition by giving instructions on how an answer should be broken down and how not to be broken down. LLMs are known to perform poor on negation tasks (Truong et al., 2023). So instead of prompting the model to not generate a poor information unit, we provide a template to generate good and bad information units enabling us to parse out the required good information units. We provide the question and entire answer to the decomposer to obtain a more contextualized decomposition. See Appendix A for complete prompt.
|
| 88 |
+
|
| 89 |
+
Instruction Schema. The instruction schema is a generalizable schema that follows (Wang et al., 2022). The Task Definition defines a given task and lists the input and output formats for the question, answer, and decomposition. The Instruction Set guides the language model to generate useful decompositions. We explain what good and bad instruction units are. Good information units are relevant, meaningful, and are directly associated with the question. They are broken down at logical conjunctions and, when reassembled, convey the same meaning as the original answer. Conversely, bad information units include redundant content, non-statements, or irrelevant information. Positive Samples illustrate the expected decomposition for a given question, aligning with the provided instructions. We include examples covering all instructions in the set. Negative Samples demonstrate negation instructions to the LLM, which typically struggles with negation tasks. These samples align with negation instructions.
|
| 90 |
+
|
| 91 |
+
# 3.3 Classifier
|
| 92 |
+
|
| 93 |
+
The classifier aids the attribution system's efficiency by deciding whether a sentence requires decomposition. This benefits in cost and latency by identifying and excluding simplistic sentences from decomposition. For instance, the sentence "Alex is an engineer." is already a simple sentence containing a single fact and therefore does not require decomposition.
|
| 94 |
+
|
| 95 |
+
To systematically identify such cases, we have implemented a rule-based classifier that evaluates sentences based on their linguistic characteristics, specifically their part-of-speech (POS) tags, as described by Toutanova et al. (Toutanova et al., 2003). Let $S$ be the set of POS tags obtained from a sentence, with $N$ , $P$ , $V$ , and $A$ representing Noun, Pronoun, Verb, and Article respectively. A sentence is deemed to not require decomposition if it
|
| 96 |
+
|
| 97 |
+
satisfies the following constraint $(C_l)$ :
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\begin{array}{l} C _ {i} = \left(\left| S \cap \{N \cup P \cup A \} \right| = | S | - 1\right) \\ C _ {j} = \left(S - \{N \cup P \cup A \} \in V\right) \\ C _ {k} = \left(S \subseteq \{N \cup P \cup A \}\right) \\ C _ {l} = \left(C _ {i} \wedge C _ {j}\right) \vee C _ {k} \\ \end{array}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
This constraint implies that if a sentence consists solely of any combination of nouns, pronouns, or articles with at most one verb, it is classified as a simple sentence and is not decomposed<sup>1</sup>. This classification rule acts as a high-precision filter, targeting sentences that are single independent clauses. These clauses are straightforward and typically do not benefit from further decomposition.
|
| 104 |
+
|
| 105 |
+
The design of this rule was based on linguistic rules and empirical observations to ensure high precision. While this rule is optimized for high precision, it is possible that simple sentences are not identified as simple sentences. In such instances, the integrity of the decomposition process is not compromised since the output remains effectively unchanged when processed by the decomposer.
|
| 106 |
+
|
| 107 |
+
# 3.4 Attributors
|
| 108 |
+
|
| 109 |
+
We evaluate two types of contributors for extracting evidence from documents: retrievers and LLMs. Retrievers rank evidence sentences from the document, while LLMs select the most appropriate evidences for each information unit.
|
| 110 |
+
|
| 111 |
+
# 3.4.1 Retrievers
|
| 112 |
+
|
| 113 |
+
We investigate various retrieval methods that serve as contributors by ranking evidence sentences within a document. Each information unit is treated as a query to retrieve evidence. For answer parts containing multiple information units, our goal is to select the most relevant evidence set. To optimize this selection, we use a greedy merging strategy.
|
| 114 |
+
|
| 115 |
+
Algorithm 1 shows a greedy merging algorithm on how the evidences are chosen for an answer part. Let $IU$ be the list of information units for an answer part, $E$ the list of evidences from the document and $L$ the final ordered list of evidences. score(iu,e) refers to the score obtained from the retriever when $iu$ is the query and $e$ is a single evidence from the document. We rank the list of evidences based on score(iu,e). If two information units have a high score for the same evidence
|
| 116 |
+
|
| 117 |
+
sentence, we include the evidence only once. The intuition to using a greedy algorithm is to is to obtain only top evidences for an answer part. If an information unit has a low score with the evidences, it means that information is not attributable to the document.
|
| 118 |
+
|
| 119 |
+
Algorithm 1 Merging of Evidences for Answer Part
|
| 120 |
+
```txt
|
| 121 |
+
$IU = [iu_{1},iu_{2},\dots ,iu_{n}]$ $E = [[e_{11},\ldots ,e_{1m}],\ldots ,[e_{n1},\ldots ,e_{nm}]]$
|
| 122 |
+
Initialize an empty list $L$
|
| 123 |
+
for each $iu$ in $IU$ do Initialize a variable max_score $\leftarrow -\infty$ Initialize a variable best_evidence $\leftarrow$ null for each $e$ in $E[iu]$ do if score $(iu,e) >$ max_score and $e$ not in $L$ then max_score $\leftarrow$ score $(iu,e)$ best_evidence $\leftarrow e$ end if end for if best_evidence $\neq$ null then $L\gets$ (max_score,best_evidence) end if
|
| 124 |
+
end for
|
| 125 |
+
Sort $L$ in descending order based on the score
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
# 3.4.2 Large Language Models
|
| 129 |
+
|
| 130 |
+
Prior works have shown the ability of LLMs to generate text with citations, which reduces the hallucinations (Gao et al., 2023b). We explore LLMs as contributors when the task is broken down into finding evidence for smaller sentences. We ask the LLM to find evidences that support information units for a given question.
|
| 131 |
+
|
| 132 |
+
Instruction Schema. To guide the LLM in finding attribution for a question and its corresponding information unit, the instruction schema for using LLM as an attributor comprises two main components. The Task Definition defines the task of attributing an information unit from a list of retrieved sentences. The Instruction Set instructs the LLM to identify and select a valid list of evidence and sort such that the most relevant evidence appears first. For complete prompt, see Appendix B.
|
| 133 |
+
|
| 134 |
+
# 4 Datasets
|
| 135 |
+
|
| 136 |
+
We reformulate the Citation Verifiability dataset (Liu et al., 2023) and QASPER dataset (Dasigi et al., 2021) for our task. The statistics of the dataset are present in Table 6 (Appendix C).
|
| 137 |
+
|
| 138 |
+
# 4.1 Citation Verifiability Dataset
|
| 139 |
+
|
| 140 |
+
The Citation Verifiability dataset (Liu et al., 2023) consists of questions from NaturalQues
|
| 141 |
+
|
| 142 |
+
tions (Kwiatkowski et al., 2019) and ELI5 (Fan et al., 2019). Answers are generated from search engines such as Bing Chat and NeevaAI. The answers contain inline citations pointing to web pages. Human annotators judged citations as fully, partially, or not supporting sentences. For fully supported sentences, annotators provided supporting sentences from cited web pages. We consider these supporting sentences as attributions for an answer part. This dataset provides evidences on a sentence level and provides citations only for the informative parts of the answer.
|
| 143 |
+
|
| 144 |
+
# 4.2 QASPER Dataset
|
| 145 |
+
|
| 146 |
+
QASPER (Dasigi et al., 2021) is a dataset for information-seeking questions and answers grounded in research papers. Each question is written by an NLP practitioner who only read the title and abstract of the corresponding paper, and the question seeks information present in the full text. The questions are then answered by a separate set of NLP practitioners who also provide supporting evidence for their answers. The answers in the dataset can be unanswerable, extractive (spans in the paper serving as the answer), or free-form. We take the evidences marked as supporting evidence (evidences with high agreement amongst annotators) as the ground truth attribution. This dataset does not provide the evidence on a sentence level, but on an answer level.
|
| 147 |
+
|
| 148 |
+
# 5 Experiments and Evaluation
|
| 149 |
+
|
| 150 |
+
# 5.1 Baselines and Evaluation Strategy
|
| 151 |
+
|
| 152 |
+
We evaluate the performance of three retrieval-based systems and four large language models (LLMs) as contributors. The retrieval methods include: BM25, a sparse model; GTR, a dense model (Ni et al., 2022); and MonoT5 (Pradeep et al., 2021). We explore the capabilities of four LLMs: GPT-4 (gpt-4), GPT-3.5 (gpt-3.5-turbo), LLaMa 2 70B (llama-2-70b-chat-hf), and LLaMa 2 13B (llama-2-13b-chat-hf) (Touvron et al., 2023). We use GPT-4 (gpt-4) for obtaining decomposition. We use NVIDIA A100 GPU to run inference for LLaMa 2 models. We do not provide retrieve-and-read-based baselines (Guu et al., 2020; Borgeaud et al., 2022; Izacard et al., 2022) as they generate answers along with attributions, whereas our task assumes answer as an input. Table 1 and Table 2 tabulates the results for retrieval based and LLM based contributors re
|
| 153 |
+
|
| 154 |
+
<table><tr><td></td><td colspan="3">Verifiability</td><td colspan="3">QASPER</td></tr><tr><td>Decomposer+Attributor</td><td>Top 1 P/R/F1</td><td>Top 2 P/R/F1</td><td>Top 4 P/R/F1</td><td>Top 1 P/R/F1</td><td>Top 2 P/R/F1</td><td>Top 4 P/R/F1</td></tr><tr><td>NIL+BM25</td><td>0.66/0.53/0.59</td><td>0.44/0.65/0.53</td><td>0.27/0.72/0.39</td><td>0.42/0.18/0.26</td><td>0.32/0.25/0.28</td><td>0.22/0.31/0.25</td></tr><tr><td>FActScore+BM25</td><td>0.31/0.24/0.27</td><td>0.24/0.34/0.28</td><td>0.18/0.47/0.26</td><td>0.24/0.09/0.13</td><td>0.18/0.13/0.15</td><td>0.11/0.16/0.13</td></tr><tr><td>(CoG - neg.)+BM25</td><td>0.67/0.51/0.59</td><td>0.45/0.61/0.52</td><td>0.28/0.69/0.40</td><td>0.35/0.17/0.22</td><td>0.30/0.22/0.25</td><td>0.21/0.29/0.23</td></tr><tr><td>CoG+BM25</td><td>0.69/0.52/0.60</td><td>0.46/0.62/0.53</td><td>0.29/0.70/0.41</td><td>0.37/0.17/0.23</td><td>0.30/0.23/0.26</td><td>0.22/0.30/0.24</td></tr><tr><td>NIL+GTR</td><td>0.66/0.51/0.57</td><td>0.43/0.62/0.51</td><td>0.27/0.72/0.39</td><td>0.41/0.18/0.25</td><td>0.31/0.24/0.27</td><td>0.22/0.31/0.26</td></tr><tr><td>FActScore+GTR</td><td>0.57/0.44/0.50</td><td>0.38/0.56/0.45</td><td>0.24/0.66/0.35</td><td>0.28/0.10/0.15</td><td>0.21/0.15/0.18</td><td>0.15/0.22/0.18</td></tr><tr><td>(CoG-neg.)+GTR</td><td>0.67/0.50/0.57</td><td>0.44/0.58/0.50</td><td>0.27/0.70/0.40</td><td>0.37/0.16/0.22</td><td>0.29/0.21/0.25</td><td>0.21/0.30/0.25</td></tr><tr><td>CoG+GTR</td><td>0.69/0.51/0.59</td><td>0.45/0.59/0.51</td><td>0.29/0.71/0.42</td><td>0.39/0.17/0.24</td><td>0.30/0.23/0.26</td><td>0.22/0.31/0.26</td></tr><tr><td>NIL+MonoT5</td><td>0.70/0.54/0.61</td><td>0.47/0.68/0.55</td><td>0.28/0.76/0.41</td><td>0.47/0.21/0.29</td><td>0.34/0.28/0.31</td><td>0.24/0.35/0.28</td></tr><tr><td>FActScore+MonoT5</td><td>0.62/0.50/0.55</td><td>0.41/0.61/0.49</td><td>0.24/0.66/0.36</td><td>0.39/0.16/0.23</td><td>0.26/0.21/0.24</td><td>0.18/0.26/0.21</td></tr><tr><td>(CoG - neg.)+MonoT5</td><td>0.70/0.53/0.60</td><td>0.46/0.67/0.54</td><td>0.28/0.74/0.41</td><td>0.45/0.20/0.27</td><td>0.33/0.27/0.30</td><td>0.24/0.34/0.28</td></tr><tr><td>CoG+MonoT5</td><td>0.72/0.54/0.62</td><td>0.49/0.66/0.56</td><td>0.30/0.75/0.43</td><td>0.46/0.20/0.28</td><td>0.35/0.28/0.31</td><td>0.25/0.35/0.29</td></tr></table>
|
| 155 |
+
|
| 156 |
+
Table 1: Retrieval based attributor results
|
| 157 |
+
|
| 158 |
+
<table><tr><td></td><td>Verifiability</td><td>QASPER</td></tr><tr><td>Decomposer+Attributor</td><td>P/R/F1</td><td>P/R/F1</td></tr><tr><td>NIL+GPT 4</td><td>0.26/0.76/0.39</td><td>0.18/0.15/0.16</td></tr><tr><td>FAActScore+GPT 4</td><td>0.18/0.69/0.29</td><td>0.17/0.27/0.21</td></tr><tr><td>(CoG-neg.)+GPT 4</td><td>0.26/0.76/0.39</td><td>0.19/0.29/0.23</td></tr><tr><td>CoG+GPT 4</td><td>0.29/0.79/0.42</td><td>0.22/0.32/0.26</td></tr><tr><td>NIL+GPT 3.5</td><td>0.25/0.75/0.37</td><td>0.16/0.15/0.16</td></tr><tr><td>FAActScore+GPT 3.5</td><td>0.17/0.69/0.27</td><td>0.15/0.27/0.20</td></tr><tr><td>(CoG-neg.) + GPT 3.5</td><td>0.27/0.75/0.40</td><td>0.18/0.27/0.22</td></tr><tr><td>CoG+GPT 3.5</td><td>0.28/0.77/0.41</td><td>0.22/0.31/0.26</td></tr><tr><td>NIL+LLaMa 2 (70 B)</td><td>0.20/0.73/0.32</td><td>0.13/0.10/0.11</td></tr><tr><td>FAActScore+LLaMa 2 (70 B)</td><td>0.15/0.66/0.25</td><td>0.12/0.25/0.16</td></tr><tr><td>(CoG-neg.) + LLaMa 2 (70 B)</td><td>0.22/0.75/0.34</td><td>0.17/0.26/0.21</td></tr><tr><td>CoG+LLaMa 2 (70 B)</td><td>0.23/0.77/0.36</td><td>0.20/0.28/0.23</td></tr><tr><td>NIL+LLaMa 2 (13 B)</td><td>0.19/0.72/0.30</td><td>0.11/0.09/0.10</td></tr><tr><td>FAActScore+LLaMa 2 (13 B)</td><td>0.13/0.63/0.22</td><td>0.10/0.24/0.14</td></tr><tr><td>(CoG-neg.) + LLaMa 2 (13 B)</td><td>0.21/0.73/0.33</td><td>0.16/0.25/0.20</td></tr><tr><td>CoG+LLaMa 2 (13 B)</td><td>0.22/0.74/0.34</td><td>0.18/0.25/0.21</td></tr></table>
|
| 159 |
+
|
| 160 |
+
Table 2: LLM based attribution results
|
| 161 |
+
|
| 162 |
+
spectively. NIL refers to using an answer sentence as an information unit, FActScore refers to using fine grained decomposition as information units and CoG refers to question contextualised coarse grain decomposition as information units. For all the LLM based attributions, we take the top 100 sentences retrieved from BM25 to fit within the context limit. We keep the retrieved evidences same across all settings for a fair evaluation.
|
| 163 |
+
|
| 164 |
+
# 5.2 Evaluation Measures
|
| 165 |
+
|
| 166 |
+
For the retriever based attributors, since we get a score for a query and evidence, we report precision (P), recall (R), and F1 scores of top 1, 2, and 4 predicted attributions per sentence of an answer. For the LLM based attributors, we ask the LLM to output only highly relevant evidences. Since there is no score between the query (information unit) and evidence, we collect all the shortlisted evidences and report the precision, recall and F1 scores. To ensure a reliable evaluation, we do not consider
|
| 167 |
+
|
| 168 |
+
the samples where answer sentences are an exact match from the documents. For Verifiability dataset, we report attributions on sentence level for each sentence in the answer and for QASPER we report attributions on sentence level for the whole answer.
|
| 169 |
+
|
| 170 |
+
# 6 Results and Discussion
|
| 171 |
+
|
| 172 |
+
In Table 1, while using CoG as the decomposer for retrieval based methods, we observe increased precision and overall F1 score on the Citation Verifiability dataset. The observed increase in precision on the Verifiability dataset is because CoG decomposer does not provide information units for the sentences that do not require attribution.
|
| 173 |
+
|
| 174 |
+
We notice comparable results over the QASPER dataset. This dataset majorly contains extractive and short sentences. The average length of extractive answers in the dataset is 14.4 and that of abstractive answers in 15.6 words. Due to the short and highly extractive nature of the dataset, it is likely that using answer sentences as information unit suffices.
|
| 175 |
+
|
| 176 |
+
Interestingly, we observe that on QASPER, GTR and MonoT5 have comparable performance while using CoG and single answer sentence as an information unit. Whereas, in BM25 there is a slight reduction in scores. This is likely due to the way the answer is decomposed or augmented when the question is taken into context. This impacts retrieval methods like BM25 where the frequency of words are taken into account to calculate the score. This motivates the use of embedding based retrievers as contributors over term frequency based retrievers.
|
| 177 |
+
|
| 178 |
+
In Table 2, when utilizing CoG as the decomposer, we observe improvements across all LLMs.
|
| 179 |
+
|
| 180 |
+
<table><tr><td>Question</td><td colspan="5">"paint cast iron"</td></tr><tr><td>Answer</td><td colspan="5">"To paint cast iron, you should first coat it with oil-based primer to create a smooth surface and help the paint adhere. You can find cast iron paint on Amazon."</td></tr><tr><td>GT Attribution</td><td>CoG Decompositions</td><td>NIL-MonoT5</td><td>CoG-MonoT5</td><td>NIL-GPT4</td><td>CoG-GPT4</td></tr><tr><td>["Coat the cast iron with oil-based primer", "Priming the metal creates a smooth surface and will help the paint adhere.']</td><td>[["To paint cast iron, you should first coat it with oil-based primer.", "The oil-based primer helps create a smooth surface and help the paint adhere.β]</td><td>[["If you're working with a smaller piece of cast iron, you can wipe it down with a damp rag, instead.", "Apply oil-based paint to the cast iron.β]</td><td>[["Coat the cast iron with oil-based primer.", "If you're working with a smaller piece of cast iron, you can wipe it down with a damp rag, instead.β]</td><td>[["Priming the metal creates a smooth surface and will help the paint adhere.", "Apply oil-based paint to the cast iron.", "Coat the cast iron with oil -based primer.β]</td><td>[["Coat the cast iron with oil-based primer.", "Priming the metal creates a smooth surface and will help the paint adhere.β]</td></tr><tr><td>[]</td><td>[["You can find cast iron paint on Amazon.β]</td><td>[["Read on for our complete guide to painting cast iron easily at home.β]</td><td>[["Read on for our complete guide to painting cast iron easily at home.β]</td><td>[]</td><td>[]</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Table 3: Qualitative example of how decomposition affects retrieval based attributor and LLM based attributor. GT refers to ground truth. Each row depicts an answer part and respective decompositions and attributions for each method.
|
| 183 |
+
|
| 184 |
+
(Asher et al., 2023) demonstrated that LLMs operate without formal guarantees for tasks requiring entailments and in-depth language comprehension. Prompting techniques such as Chain-of-Thought (CoT) (Wei et al., 2023) are well-known to enhance the performance of LLMs. The improved performance with the use of CoG proves that providing decomposed answers in the form of information units likely simplifies the task of finding evidence that entails the specified information unit.
|
| 185 |
+
|
| 186 |
+
FActScore based decomposition performs poorly across all settings. The fine grain decompositions do not capture the information that is required to be attributed. Table 4 shows the large number of decompositions obtained for an answer. Intuitively, having a large number of decompositions should result in higher recall and lower precision. Yet, this trend is not observed. This indicates that the information that the answer part conveys gets diluted when broken down into finer parts. This impacts the retriever and LLM based contributors to perform well. We also observe that CoG without negative sampling performs slightly poor than with negative sampling in all cases.
|
| 187 |
+
|
| 188 |
+
We observe that identifying relevant information helps MonoT5 make better attributions compared to using answer sentences as queries. Retrieval-based attributors rely on query and evidence scores, which can lead to irrelevant matches, especially since finding an appropriate threshold is challenging and dataset-specific. Unlike retrieval methods, LLMs consider question context, resulting in more accurate attributions. However, it is interesting to observe that when the information unit is given as a complete sentence, LLM struggles to find the
|
| 189 |
+
|
| 190 |
+
precise set of evidences. Examples for these observations are present in Table 7 (Appendix D).
|
| 191 |
+
|
| 192 |
+
# 6.1 Ablation Study
|
| 193 |
+
|
| 194 |
+
# 6.1.1 Analysis of Decomposers
|
| 195 |
+
|
| 196 |
+
In the Citation Verifiability dataset, ground truth citations are available only for answer parts that have information relevant to the question. We assess sentence attributions using FActScore, CoG-Question (coarse grain decomposition without the question as context), and CoG as decomposers. In Verifiability dataset, 573 sentences do not require attributions. Using FActScore, we attribute 509 of them compared to 491 using CoG-Question and 473 using CoG decomposition. Table 4 provides a qualitative example decomposition obtained. We observe that fine-grained attribution may lead to information duplication across multiple units, resulting in a higher number of decomposition per sentence, as shown in Figure 3.
|
| 197 |
+
|
| 198 |
+
Human evaluation. We conduct a human survey to validate the quality of decomposition. The objective is to understand what specific facts within an answer are essential and should be credited as factual references in a document. We ask 3 annotators of similar backgrounds (Indian origin, above undergraduate studies, fluent in English). They are provided with 120 examples each, along with question, answer, FActScore and CoG decomposition. We provide the instruction set that is given to the LLM, so humans can validate whether the decomposition adhere to the requirements.
|
| 199 |
+
|
| 200 |
+
In terms of alignment of answer decomposition for the task of attribution, our outputs are marked better than the baseline in $80\%$ cases. The inter
|
| 201 |
+
|
| 202 |
+
<table><tr><td>Question</td><td>paint cast iron</td></tr><tr><td>Answer</td><td>Are you looking for information on how to paint cast iron? If so, I found a helpful article on wikiHow that provides a step-by-step guide on how to paint cast iron. The process involves prepping the cast iron by cleaning it and removing any rust or old paint. Then, you can prime and paint the cast iron using an oil-based primer and paint. Would you like more information on this topic?</td></tr><tr><td>FActScore</td><td>[βThe person is looking for information.β, βThe person is looking for information on how to paint cast iron.β], [βThere is a helpful article on wikiHow.β, βThe article provides a step-by-step guide.β, βThe article is about how to paint cast iron.β], [βThe process involves prepping cast iron.β, βPrepping cast iron involves cleaning it.β, βPrepping cast iron involves removing rust.β, βPrepping cast iron involves removing old paint.β], [βYou can prime with an oil-based primer.β, βYou can paint with an oil-based paint.β, βYou can prime and paint a cast iron.β], [βThis is a question.β, βThe topic referenced is unclear.]</td></tr><tr><td>CoG - Question</td><td>[ ], [βThere is a helpful article on wikiHow that provides a step-by-step guide on how to paint cast iron.β], [βThe process involves prepping the cast iron by cleaning itβ], βThe process involves prepping the cast iron by removing any rust or old paint.β], [βPrime the cast iron using an oil-based primer.β, βPaint the cast iron using an oil-based paintβ], []</td></tr><tr><td>CoG</td><td>[ ], [], [βThe process involves prepping the cast iron by cleaning itβ, βThe process involves prepping the cast iron by removing any rust or old paintβ.], [βPrime the cast iron using an oil-based primer.β, βPaint the cast iron using an oil-based paintβ], []</td></tr></table>
|
| 203 |
+
|
| 204 |
+
Table 4: Example from Citation Verifiability dataset: In the answer, portions highlighted in red do not need attributions. Lists show the decomposition outputs for each answer part. CoG - Question denotes coarse-grain decomposition without the question in context.
|
| 205 |
+
|
| 206 |
+
<table><tr><td>Evidence</td><td>NIL+MonoT5</td><td>CoG+MonoT5</td></tr><tr><td>"WNUT16: WNUT16 was a shared task on Named Entity Recognition over Twitter BIBREF10."</td><td>-0.043</td><td>-0.021</td></tr></table>
|
| 207 |
+
|
| 208 |
+
Table 5: Example of retriever score getting affected while using answer part as $iu$ vs using decomposed $iu$ .
|
| 209 |
+
|
| 210 |
+
annotator agreement (Krippendorff, 1970) agreement for is 0.68, indicating a strong agreement among annotators. The details of the survey are provided in Appendix F.
|
| 211 |
+
|
| 212 |
+
Classifier. We check the number of answer sentences that are returned without decomposition on the dev set of QASPER and Verifiability dataset. The classifier correctly identifies 25 out of 158 answer sentences (17%) on QASPER and 22 out of 184 answer sentences in Verifiability (12%) as sentences that do not require any decomposition. The classifier does not classify any answer sentence that undergoes decomposition as a simple sentence.
|
| 213 |
+
|
| 214 |
+
# 6.2 Effect of Decomposition on Retrievers
|
| 215 |
+
|
| 216 |
+
Complex answer sentences in retrieval systems can impact the scores obtained for evidence sentences. For instance, in Table 5, the answer comprising multiple facts mapped to different evidence may result in lower scores for the correct evidence compared to using decomposed information units as search queries.
|
| 217 |
+
|
| 218 |
+
# 6.2.1 Effect of Decomposition on LLMs
|
| 219 |
+
|
| 220 |
+
Table 2 shows improved performance when CoG decomposition are used to guide the LLM. We observe that while attributions obtained for a complex
|
| 221 |
+
|
| 222 |
+

|
| 223 |
+
Figure 3: Average number of decomposition per sentence using each method.
|
| 224 |
+
|
| 225 |
+
answer (without decomposition) aligns with the answer on a high level, it does not provide concrete support to the information present in the answer. Whereas, in CoG+GPT4, we notice a more nuanced evidence retrieval because the task of searching information is broken down into smaller pieces. Examples for these observation are present in Table 10 (Appendix E).
|
| 226 |
+
|
| 227 |
+
# 7 Conclusion
|
| 228 |
+
|
| 229 |
+
In this paper, we raise research questions regarding the consideration of post-hoc attributions as a grounding task rather than a naive mapping task. On this basis, we propose and explore a novel approach to the factual decomposition of generated answers for attribution, employing template-based instructional tuning. We empirically establish the fact that our proposed granular-level Coarse Grained Decomposition (CoG) helps identify the spans of answers that need decomposition by following the semantic context inferred from the question asked. We also qualitatively and empirically establish that using Language Models (LLMs) as attributors provides the breathing space to consider attribution as contextual semantic grounding rather than performing as a retrieval and mapping task. Through various ablation studies, we establish that on an extractive dataset, retriever-based algorithms can perform better by incorporating our Coarse
|
| 230 |
+
|
| 231 |
+
Grained Decomposition as input.
|
| 232 |
+
|
| 233 |
+
# 8 Limitations
|
| 234 |
+
|
| 235 |
+
We present promising results in enhancing post-hoc attributions for comprehending lengthy documents. Adopting a post-hoc perspective provides research opportunities when dealing with outputs from opaque models. Currently, our focus is solely on post-hoc attributions through a unimodal lens, involving textual input and textual output. The transition to multimodal attributions would present additional challenges. An intriguing avenue for research involves exploring attributions from tables, charts, and images and performing reasoning over them.
|
| 236 |
+
|
| 237 |
+
In our post-hoc approach, we identify only those parts with supporting evidence but do not address how to mitigate unsupported claims. This creates opportunities to explore the incorporation of feedback loops for unattributable answer parts, aiming to generate more reliable answers.
|
| 238 |
+
|
| 239 |
+
# References
|
| 240 |
+
|
| 241 |
+
Marco Ancona, Enea Ceolini, A. Cengiz Γztireli, and Markus H. Gross. 2017. A unified view of gradient-based attribution methods for deep neural networks. CoRR, abs/1711.06104.
|
| 242 |
+
Nicholas Asher, Swarnadeep Bhar, Akshay Chaturvedi, Julie Hunter, and Soumya Paul. 2023. Limits for learning with language models.
|
| 243 |
+
Bernd Bohnet, Vinh Q. Tran, Pat Verga, Roee Aharoni, Daniel Andor, Livio Baldini Soares, Massimiliano Ciaramita, Jacob Eisenstein, Kuzman Ganchev, Jonathan Herzig, Kai Hui, Tom Kwiatkowski, Ji Ma, Jianmo Ni, Lierni Sestorain Saralegui, Tal Schuster, William W. Cohen, Michael Collins, Dipanjan Das, Donald Metzler, Slav Petrov, and Kellie Webster. 2023. Attributed question answering: Evaluation and modeling for attributed large language models.
|
| 244 |
+
Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George van den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, Diego de Las Casas, Aurelia Guy, Jacob Menick, Roman Ring, Tom Hennigan, Saffron Huang, Loren Maggiore, Chris Jones, Albin Cassirer, Andy Brock, Michela Paganini, Geoffrey Irving, Oriol Vinyals, Simon Osindero, Karen Simonyan, Jack W. Rae, Erich Elsen, and Laurent Sifre. 2022. Improving language models by retrieving from trillions of tokens.
|
| 245 |
+
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.
|
| 246 |
+
|
| 247 |
+
Nouha Dziri, Hannah Rashkin, Tal Linzen, and David Reitter. 2022. Evaluating attribution in dialogue systems: The BEGIN benchmark. Transactions of the Association for Computational Linguistics, 10:1066-1083.
|
| 248 |
+
Owain Evans, Owen Cotton-Barratt, Lukas Finnveden, Adam Bales, Avital Balwit, Peter Wills, Luca Righetti, and William Saunders. 2021. Truthful ai: Developing and governing ai that does not lie.
|
| 249 |
+
Angela Fan, Yacine Jernite, Ethan Perez, David Grangier, Jason Weston, and Michael Auli. 2019. ELI5: Long form question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3558-3567, Florence, Italy. Association for Computational Linguistics.
|
| 250 |
+
Martin Funkquist, Ilia Kuznetsov, Yufang Hou, and Iryna Gurevych. 2023. Citebench: A benchmark for scientific citation text generation.
|
| 251 |
+
Luyu Gao, Zhuyun Dai, Panupong Pasupat, Anthony Chen, Arun Tejasvi Chaganty, Yicheng Fan, Vincent Zhao, Ni Lao, Hongrae Lee, Da-Cheng Juan, et al. 2023a. Rarr: Researching and revising what language models say, using language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 16477-16508.
|
| 252 |
+
Tianyu Gao, Howard Yen, Jiatong Yu, and Danqi Chen. 2023b. Enabling large language models to generate text with citations.
|
| 253 |
+
Zhijiang Guo, Michael Schlichtkrull, and Andreas Vlachos. 2022. A survey on automated fact-checking. Transactions of the Association for Computational Linguistics, 10:178-206.
|
| 254 |
+
Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Ming-Wei Chang. 2020. Realm: Retrievalaugmented language model pre-training.
|
| 255 |
+
Andreas Holzinger, Bernd Malle, Anna Saranti, and Bastian Pfeifer. 2021. Towards multi-modal causability with graph neural networks enabling information fusion for explainable AI. Inf. Fusion, 71:28-37.
|
| 256 |
+
Jie Huang and Kevin Chang. 2024. Citation: A key to building responsible and accountable large language models. In Findings of the Association for Computational Linguistics: NAACL 2024, pages 464-473, Mexico City, Mexico. Association for Computational Linguistics.
|
| 257 |
+
Jie Huang and Kevin Chen-Chuan Chang. 2023. Citation: A key to building responsible and accountable large language models.
|
| 258 |
+
Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, et al. 2023. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. arXiv preprint arXiv:2311.05232.
|
| 259 |
+
|
| 260 |
+
Gautier Izacard, Patrick Lewis, Maria Lomeli, Lucas Hosseini, Fabio Petroni, Timo Schick, Jane Dwivedi-Yu, Armand Joulin, Sebastian Riedel, and Edouard Grave. 2022. Atlas: Few-shot learning with retrieval augmented language models.
|
| 261 |
+
Klaus Krippendorff. 1970. Estimating the reliability, systematic error and random error of interval data. Educational and Psychological Measurement, 30(1):61-70.
|
| 262 |
+
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.
|
| 263 |
+
Minghan Li, Xueguang Ma, and Jimmy Lin. 2022. An encoder attribution analysis for dense passage retriever in open-domain question answering. In Proceedings of the 2nd Workshop on Trustworthy Natural Language Processing (TrustNLP 2022), pages 1-11, Seattle, U.S.A. Association for Computational Linguistics.
|
| 264 |
+
Robert Litschko, Max MΓΌller-Eberstein, Rob van der Goot, Leon Weber, and Barbara Plank. 2023. Establishing trustworthiness: Rethinking tasks and model evaluation.
|
| 265 |
+
Nelson F. Liu, Tianyi Zhang, and Percy Liang. 2023. Evaluating verifiability in generative search engines.
|
| 266 |
+
Huan Ma, Changqing Zhang, Yatao Bian, Lemao Liu, Zhirui Zhang, Peilin Zhao, Shu Zhang, Huazhu Fu, Qinghua Hu, and Bingzhe Wu. 2023. Fairness-guided few-shot prompting for large language models. CoRR, abs/2303.13217.
|
| 267 |
+
Alex Mei, Sharon Levy, and William Yang Wang. 2023. Foveate, attribute, and rationalize: Towards physically safe and trustworthy ai.
|
| 268 |
+
Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen tau Yih, Pang Wei Koh, Mohit Iyyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2023. Factscore: Fine-grained atomic evaluation of factual precision in long form text generation.
|
| 269 |
+
Jianmo Ni, Chen Qu, Jing Lu, Zhuyun Dai, Gustavo Hernandez Abrego, Ji Ma, Vincent Zhao, Yi Luan, Keith Hall, Ming-Wei Chang, and Yinfei Yang. 2022. Large dual encoders are generalizable retrievers. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 9844β9855, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 270 |
+
Fabio Petroni, Samuel Broscheit, Aleksandra Piktus, Patrick Lewis, Gautier Izacard, Lucas Hosseini, Jane Dwivedi-Yu, Maria Lomeli, Timo Schick, Pierre-Emmanuel MazarΓ©, Armand Joulin, Edouard Grave,
|
| 271 |
+
|
| 272 |
+
and Sebastian Riedel. 2022. Improving wikipedia verifiability with ai.
|
| 273 |
+
Anirudh Phukan, Shwetha Somasundaram, Apoorv Saxena, Koustava Goswami, and Balaji Vasan Srinivasan. 2024. Peering into the mind of language models: An approach for attribution in contextual question answering. arXiv preprint arXiv:2405.17980.
|
| 274 |
+
Ronak Pradeep, Rodrigo Nogueira, and Jimmy Lin. 2021. The expando-mono-duo design pattern for text ranking with pretrained sequence-to-sequence models.
|
| 275 |
+
Hannah Rashkin, Vitaly Nikolaev, Matthew Lamm, Lora Aroyo, Michael Collins, Dipanjan Das, Slav Petrov, Gaurav Singh Tomar, Iulia Turc, and David Reitter. 2022. Measuring attribution in natural language generation models.
|
| 276 |
+
Abhilasha Sancheti, Koustava Goswami, and Balaji Srinivasan. 2024. Post-hoc answer attribution for grounded and trustworthy long document comprehension: Task, insights, and challenges. In Proceedings of the 13th Joint Conference on Lexical and Computational Semantics (*SEM* 2024), pages 49-57, Mexico City, Mexico. Association for Computational Linguistics.
|
| 277 |
+
Gabriele Sarti, Grzegorz Chrupa, Malvina Nissim, and Arianna Bisazza. 2023a. Quantifying the plausibility of context reliance in neural machine translation.
|
| 278 |
+
Gabriele Sarti, Nils Feldhus, Ludwig Sickert, and Oskar van der Wal. 2023b. Inseq: An interpretability toolkit for sequence generation models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), pages 421-435, Toronto, Canada. Association for Computational Linguistics.
|
| 279 |
+
Kristina Toutanova, Dan Klein, Christopher D. Manning, and Yoram Singer. 2003. Feature-rich part-of-speech tagging with a cyclic dependency network. In Proceedings of the 2003 Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics, pages 252-259.
|
| 280 |
+
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.
|
| 281 |
+
Thinh Hung Truong, Timothy Baldwin, Karin Verspoor, and Trevor Cohn. 2023. Language models are not naysayers: an analysis of language models on negation benchmarks. In Proceedings of the 12th Joint Conference on Lexical and Computational Semantics (*SEM 2023), pages 101-114, Toronto, Canada. Association for Computational Linguistics.
|
| 282 |
+
|
| 283 |
+
Pranav Narayanan Venkit, Tatiana Chakravorti, Vipul Gupta, Heidi Biggs, Mukund Srinath, Koustava Goswami, Sarah Rajtmajer, and Shomir Wilson. 2024. "confidently nonsensical?": A critical survey on the perspectives and challenges of 'hallucinations' in nlp. arXiv preprint arXiv:2404.07461.
|
| 284 |
+
Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Atharva Naik, Arjun Ashok, Arut Selvan Dhanasekaran, Anjana Arunkumar, David Stap, Eshaan Pathak, Giannis Karamanolakis, Haizhi Lai, Ishan Purohit, Ishani Mondal, Jacob Anderson, Kirby Kuznia, Krima Doshi, Kuntal Kumar Pal, Maitreya Patel, Mehrad Moradshahi, Mihir Parmar, Mirali Purohit, Neeraj Varshney, Phani Rohitha Kaza, Pulkit Verma, Ravsehaj Singh Puri, Rushang Karia, Savan Doshi, Shailaja Keyur Sampat, Siddhartha Mishra, Sujan Reddy A, Sumanta Patro, Tanay Dixit, and Xudong Shen. 2022. Super-Natural Instructions: Generalization via declarative instructions on $1600+$ NLP tasks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 5085-5109, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 285 |
+
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.
|
| 286 |
+
Ruochen Zhao, Hailin Chen, Weishi Wang, Fangkai Jiao, Do Xuan Long, Chengwei Qin, Bosheng Ding, Xiaobao Guo, Minzhi Li, Xingxuan Li, and Shafiq Joty. 2023. Retrieving multimodal information for augmented generation: A survey. In Findings of the Association for Computational Linguistics: EMNLP 2023, Singapore, December 6-10, 2023, pages 4736-4756. Association for Computational Linguistics.
|
| 287 |
+
|
| 288 |
+
# Appendix
|
| 289 |
+
|
| 290 |
+
# A Instruction Schema for CoG
|
| 291 |
+
|
| 292 |
+
You are a helpful assistant. You will be given a question and corresponding answer that is grounded to document. You need to break down the answer for a given question into information units. The answer is already split into sentences. Map each sentence from the answer to the corresponding information unit/units. Give only those information units that are attributable to the grounded document.
|
| 293 |
+
|
| 294 |
+
Instruction on what good information units are:
|
| 295 |
+
|
| 296 |
+
1. Give information units that are relevant to the sentence.
|
| 297 |
+
2. Information units should be meaningful.
|
| 298 |
+
3. Break down information units at conjunctions.
|
| 299 |
+
4. Information units should be co-referenced with respect to question.
|
| 300 |
+
5. When the information units are put back together, it should convey the same information as the answer.
|
| 301 |
+
|
| 302 |
+
Instruction on what bad information units are:
|
| 303 |
+
|
| 304 |
+
1. Information units that convey duplicate information.
|
| 305 |
+
2. Information units that are non statements.
|
| 306 |
+
3. Information units that are not meaningful to the question.
|
| 307 |
+
4. Information units that repeat facts present in the answer for introduction, conclusion or summary of an answer.
|
| 308 |
+
|
| 309 |
+
# Examples:
|
| 310 |
+
|
| 311 |
+
# QUESTION:
|
| 312 |
+
|
| 313 |
+
"Where was 'For You' by Rita Ora filmed?"
|
| 314 |
+
|
| 315 |
+
# ANSWER:
|
| 316 |
+
|
| 317 |
+
[1:{"The music video for 'For You' by Liam Payne and Rita Ora was filmed at Oheka Castle on Long Island, off the coast of the eastern United States.}]
|
| 318 |
+
|
| 319 |
+
# GOOD ATOMIC FACTS:
|
| 320 |
+
|
| 321 |
+
{"The song 'For You' is performed by Liam Payne.": 1, "The song 'For You' is performed by Rita Ora.": 1, "The music video for 'For You' was filmed at Oheka Castle.": 1, "Oheka Castle is located on Long Island.": 1, "Long Island is off the coast of the eastern United States." : 1}
|
| 322 |
+
|
| 323 |
+
# BAD ATOMIC FACTS:
|
| 324 |
+
|
| 325 |
+
{"The song is 'For You'." : 1, "Liam Payne and Rita Ora were filmed." : 1}
|
| 326 |
+
|
| 327 |
+
# B Instruction Schema for LLM Attributor
|
| 328 |
+
|
| 329 |
+
Given a question, information units relevant to the question and retrieved evidences, retrieve sentences from the evidence which support the information units. The sentences which support the information unit will be considered attributions to the information unit. The sentence should provide a reasoning to the information unit, question and answer.
|
| 330 |
+
|
| 331 |
+
Output a list of retrieved sentences. Output only a valid list and no other text. If no sentence is supported, return empty list []. Be precise in identifying sentences that support the information units by returning only highly relevant sentences. Return a list of length 0, 1 or 2. Do not return more. DO NOT PARAPHRASE THE SENTENCES FROM THE RETRIEVED EVIDENCES. OUTPUT EXACT SENTENCES IN THE LIST. Sort the returned list based on the relevance to the information unit. The highly relevant evidence should appear as the first element.
|
| 332 |
+
|
| 333 |
+
OUTPUT FORMAT: ["sentence 23", "sentence 34", "sentence 40"]
|
| 334 |
+
|
| 335 |
+
QUESTION: {question}
|
| 336 |
+
|
| 337 |
+
ANSWER: {answer}
|
| 338 |
+
|
| 339 |
+
INFORMATIONUNITS:{iu}
|
| 340 |
+
|
| 341 |
+
EVIDENCES: {evidences}
|
| 342 |
+
|
| 343 |
+
Output a valid python list from now on
|
| 344 |
+
|
| 345 |
+
OUTPUT LIST:
|
| 346 |
+
|
| 347 |
+
# C Dataset Statistics
|
| 348 |
+
|
| 349 |
+
Table 6 tabulates the statistics of the dataset used for evaluation.
|
| 350 |
+
|
| 351 |
+
<table><tr><td>Dataset</td><td>Verifiability</td><td>QASPER</td></tr><tr><td>No. of Questions</td><td>136</td><td>599</td></tr><tr><td>Avg. No. of source sentences</td><td>130.03</td><td>517.49</td></tr><tr><td>Avg. No. of sentences per answer</td><td>3.57</td><td>1.67</td></tr><tr><td>Avg. No. of words per answer</td><td>72.96</td><td>14.8</td></tr><tr><td>Avg. No. of attributions per answer sentence</td><td>1</td><td>NIL</td></tr><tr><td>Avg. No. of attributions per answer</td><td>2.13</td><td>3.65</td></tr><tr><td>Avg. No. of answers per question</td><td>2.75</td><td>1.47</td></tr></table>
|
| 352 |
+
|
| 353 |
+
Table 6: Dataset statistics reported on test sets.
|
| 354 |
+
|
| 355 |
+
# D Qualitative Example to compare retriever and LLM
|
| 356 |
+
|
| 357 |
+
Table 7 shows an example of how question in context of attribution enables LLMs to perform better attributions.
|
| 358 |
+
|
| 359 |
+
# E Qualitative Examples for Ablation Studies
|
| 360 |
+
|
| 361 |
+
Table 8 sets the ground by setting the context of the example for the qualitative ablation stuides in Table 9 and Table 10.
|
| 362 |
+
|
| 363 |
+
# F Human Survey
|
| 364 |
+
|
| 365 |
+
Figure 4 displays the survey format and the instructions provided to human annotators. Each step in the template clearly delineates guidelines for identifying good and bad atomic facts. The form included a radio button for evaluators to select which decomposition they believe best matches between the FActScore methodology and our approach. Notably, our definition of good atomic facts considers the relevance of the decomposition to the posed question.
|
| 366 |
+
|
| 367 |
+
During this process, we encountered instances of human error in evaluation. Figure 5 illustrates a case where human annotators preferred the FActScore-based decomposition over the CoG decomposition. The most common reason for choosing FActScore over CoG was confusion among annotators about which information units were relevant to the question. For instance, Figure 5 relates to a question about the actor who starred in "O Brother, Where Art Thou." The answer includes introductory elements unrelated to the question, which ideally should not be attributed. The FActScore system fails to discriminate and attempts to generate facts for all sentences. In contrast, our system decomposes only those parts that are pertinent to both the question and the answer. This nuance was not captured during the human evaluation, leading to a preference for FActScore over our methodology, which is misleading. These instances significantly contributed to the error cases during evaluation.
|
| 368 |
+
|
| 369 |
+
<table><tr><td>Question</td><td colspan="5">"paint cast iron"</td></tr><tr><td>Answer</td><td colspan="5">"To paint cast iron, you should first coat it with oil-based primer to create a smooth surface and help the paint adhere. You can find cast iron paint on Amazon."</td></tr><tr><td>GT Attribution</td><td>CoG Decompositions</td><td>NIL-MonoT5</td><td>CoG-MonoT5</td><td>NIL-GPT4</td><td>CoG-GPT4</td></tr><tr><td>["Coat the cast iron with oil-based primer.", "Priming the metal creates a smooth surface and will help the paint adhere.']</td><td>["To paint cast iron, you should first coat it with oil-based primer.", "The oil-based primer helps create a smooth surface and help the paint adhere.']</td><td>["If you're working with a smaller piece of cast iron, you can wipe it down with a damp rag, instead.", "Apply oil-based paint to the cast iron.']</td><td>["Coat the cast iron with oil-based primer.", "If you're working with a smaller piece of cast iron, you can wipe it down with a damp rag, instead.']</td><td>["Priming the metal creates a smooth surface and will help the paint adhere.", "Apply oil-based paint to the cast iron.", "Coat the cast iron with oil -based primer.']</td><td>["Coat the cast iron with oil-based primer.", "Priming the metal creates a smooth surface and will help the paint adhere.']</td></tr><tr><td>[]</td><td>["You can find cast iron paint on Amazon.']</td><td>"[Read on for our complete guide to painting cast iron easily at home.]</td><td>"[Read on for our complete guide to painting cast iron easily at home.]</td><td>[]</td><td>[]</td></tr></table>
|
| 370 |
+
|
| 371 |
+
Table 7: Qualitative example of how decomposition affects retrieval based attributor and LLM based attributor. GT refers to ground truth. Each row depicts an answer part and respective decompositions and attributions for each method.
|
| 372 |
+
|
| 373 |
+
<table><tr><td>Question</td><td>"Which downstream tasks are used for evaluation in this paper?"</td></tr><tr><td>Answer</td><td>"Various sequence tagging tasks: Argument detection, ACE entity and event detection, part-of-speech tagging, CoNLL chunking, CoNLL named entity recognition, GENIA bio-entity recognition, WNUT named entity recognition. They also evaluate on Stanford Sentiment Treebank, Penn TreeBank constituency parsing, and Stanford Natural Language Inference."</td></tr><tr><td>CoG IUs</td><td>["Argument detection is used for evaluation in this paper.", "ACE entity and event detection is used for evaluation in this paper.", "CoNLL named entity recognition is used for evaluation", "CoNLL chunking is used for evaluation.", "WNUT named entity recognition is used for evaluation.", "Part-of-speech tagging is used for evaluation in this paper.", "GENIA bio-entity recognition is used for evaluation.']</td></tr><tr><td>GT Attributions</td><td>["GENIA NER: The Bio-Entity Recognition Task at JNLPBA BIBREF9 annotated Medline abstracts with information on bio-entities (like protein or DNA-names).", "POS: We use the part-of-speech tags from Universal Dependencies v. 1.3 for English with the provided data splits.", "We use the CoNLL 2003 NER model, the Stanford Sentiment Treebank (SST-5) model, the constituency parsing model for the Penn TreeBank, and the Stanford Natural Language Inference Corpus (SNLI) model.", "ACE Entities/Events: ACE 2005 dataset BIBREF8 consists of 599 annotated documents from six different domains (newswire, broadcast news, broadcast conversations, blogs, forums, and speeches).", "We trained this architecture for the following datasets: Arguments: Argument component detection (major claim, claim, premise) in 402 persuasive essays BIBREF7.", "NER: CoNLL 2003 shared task on named entity recognition.", "Chunking: CoNLL 2000 shared task dataset on chunking.']</td></tr></table>
|
| 374 |
+
|
| 375 |
+
Table 8: Tabulation of question, answer, CoG decompositions and ground truth attributions for Table 9 and Table 10
|
| 376 |
+
|
| 377 |
+
<table><tr><td>Evidence</td><td>NIL+MonoT5</td><td>CoG+MonoT5</td></tr><tr><td>"GENIA NER: The Bio-Entity Recognition Task at JNLPBA BIBREF9 annotated Medline abstracts with information on bio-entities (like protein or DNA-names)."</td><td>-0.032</td><td>-0.013</td></tr><tr><td>"WNUT16: WNUT16 was a shared task on Named Entity Recognition over Twitter BIBREF10."</td><td>-0.043</td><td>-0.021</td></tr></table>
|
| 378 |
+
|
| 379 |
+
Table 9: Example of retriever score getting affected while using answer part as information unit vs decomposed information unit. The example provided is for the ground truth evidence from Table 8.
|
| 380 |
+
|
| 381 |
+
<table><tr><td>NIL+GPT4</td><td>CoG+GPT4</td></tr><tr><td>"For the models included in AllenNLP, we observed a training speed-up of 19-44%, while improving the test performance in 3 out of 5 datasets.", ""The results for the second experiment, that uses AllenNLP and ELMo embeddings in combination with other input representations, are presented in the lower part of Table 1.", "Only for the GENIA dataset achieved the learned weighted average a significantly better performance than using the output of the second layer."</td><td>"We trained this architecture for the following datasets: Arguments: Argument component detection (major claim, claim, premise) in 402 persuasive essays BIBREF7.", "ACE Entities/Events: ACE 2005 dataset BIBREF8 consists of 599 annotated documents from six different domains (newswire, broadcast news, broadcast conversations, blogs, forums, and speeches)." , "POS: We use the part-of-speech tags from Universal Dependencies v. 1.3 for English with the provided data splits.", "Chunking: CoNLL 2000 shared task dataset on chunking.", "GENIA NER: The Bio-Entity Recognition Task at JNLPBA BIBREF9 annotated Medline abstracts with information on bio-entities (like protein or DNA-names)." , "WNUT16: WNUT16 was a shared task on Named Entity Recognition over Twitter BIBREF10 ." , "We use the CoNLL 2003 NER model, the Stanford Sentiment Treebank (SST-5) model, the constituency parsing model for the Penn TreeBank, and the Stanford Natural Language Inference Corpus (SNLI) model."</td></tr></table>
|
| 382 |
+
|
| 383 |
+
Table 10: Example of LLM attributions getting affected while using answer part as information unit vs decomposed information unit.
|
| 384 |
+
|
| 385 |
+
# Attributable Information Units
|
| 386 |
+
|
| 387 |
+
Chat-based question-answer systems often include additional text, such as pleasantries, and provide answers that are abstractive in nature (complex sentences that incorporate multiple facts). This survey aims to understand your opinion on what specific facts within an answer are essential and should be credited as factual references in a document.
|
| 388 |
+
|
| 389 |
+
# Instructions on Identifying Good and Bad Information Units
|
| 390 |
+
|
| 391 |
+
# What are Good Information Units?
|
| 392 |
+
|
| 393 |
+
1. Information units should be relevant to the sentence.
|
| 394 |
+
2. Each information unit should be meaningful.
|
| 395 |
+
3. Information units should be related to the question.
|
| 396 |
+
4. When the information units are combined, they should convey the same information as the original answer (including reasoning).
|
| 397 |
+
|
| 398 |
+
# What are Bad Information Units?
|
| 399 |
+
|
| 400 |
+
1. Information units that convey duplicate information.
|
| 401 |
+
2. Information units that are not complete statements.
|
| 402 |
+
3. Information units that are not meaningful in relation to the question.
|
| 403 |
+
4. Information units that repeat facts used in the introduction, conclusion, or summary of the answer.
|
| 404 |
+
|
| 405 |
+
You will be provided with a question and answer. Select the option that has the best set of information units for the answer.
|
| 406 |
+
|
| 407 |
+
1. Question: What is a second mortgage when you are buying a home?
|
| 408 |
+
|
| 409 |
+
Answer: second mortgage is a loan taken out against a property that already has a home loan on it, secured by the equity in the home. Common examples include a home equity loan and a home equity line of credit (HELOC). To qualify for a second mortgage, you will need to meet a few financial requirements, such as a credit score of 620, a debt-to-income ratio of $43\%$ and enough equity in your first home. If you default on your loan, the original mortgage will receive all proceeds from the property's liquidation until it is all paid off.
|
| 410 |
+
|
| 411 |
+
'A second mortgage is a loan,' 'A second mortgage is taken out against a property,' 'The property already has a home loan on it,' 'The second mortgage is secured by the equity in the home,' 'Home equity loan is an example,' 'Home equity line of credit (HELOC) is an example,' 'To qualify for a second mortgage, certain
|
| 412 |
+
|
| 413 |
+
$\bigcirc$ financial requirements must be met.; 'A credit score of 620 is required.; 'A debt-to-income ratio of $43\%$ is required.; 'Enough equity in the first home is required.; 'Defaulting on a loan can result in the original mortgage receiving proceeds from the liquidation of the property; ' The original mortgage will receive all proceeds until it is paid off.']
|
| 414 |
+
[second mortgage is a loan taken out against a property that already has a home loan on it, secured by the equity in the home.' Common examples include a home equity loan and a home equity line of credit (HELOC).
|
| 415 |
+
To qualify for a second mortgage, you will need to meet a few financial requirements, such as a credit score of 620, a debt-to-income ratio of $43\%$ , and enough equity in your first home," "If you default on your loan, the original mortgage will receive all proceeds from the property's liquidation until it is all paid off."
|
| 416 |
+
|
| 417 |
+
2. Question: Why don't nations unite to fight ISIS?
|
| 418 |
+
|
| 419 |
+
Answer: There are many reasons why nations don't unite to fight ISIS. Some countries may not want to repatriate their citizens who have joined ISIS. Others may have different priorities or interests. However, many leaders and experts agree that it is important for the world to come together to combat ISIS.
|
| 420 |
+
|
| 421 |
+
[ Nations are not uniting to fight ISIS; "There are many reasons why nations don't unite to fight ISIS," 'Some countries may not want to repatriate their citizens.' 'Some citizens have joined ISIS,' 'Others may have different priorities,' 'Others may have different interests,' 'Many leaders agree,' 'Many experts agree,' 'It is important for the world to come together,' 'It is important for the world to come together to combat ISIS.']
|
| 422 |
+
|
| 423 |
+
Figure 4: Screenshot of Microsoft Forms used for survey.
|
| 424 |
+
|
| 425 |
+
# 7. Question: who plays in o brother where art thou
|
| 426 |
+
|
| 427 |
+
Answer: O Brother, Where Art Thou? is a 2000 comedy-drama film written, produced, co-edited and directed by Joel and Ethan Coen. The movie stars George Clooney as Everett, John Turturro as Pete Hogwallop and Tim Blake Nelson as Delmar O'Donnell. Other actors include Chris Thomas King as Tommy Johnson, John Goodman as Big Dan Teague and Holly Hunter as Penny. Is there anyone specific you would like to know more about?
|
| 428 |
+
|
| 429 |
+
"[O Brother, Where Art Thou?" is a 2000 film, "[O Brother, Where Art Thou?" is a comedy-drama, "[O Brother, Where Art Thou?" was written by Joel and Ethan Coen, "[O Brother, Where Art Thou?" was produced by Joel and Ethan Coen, "[O Brother, Where Art Thou?" was co-edited by Joel and Ethan Coen, "[O Brother, Where Art Thou?" was directed by Joel and Ethan Coen, "George Clooney is in the movie," "George Clooney stars as
|
| 430 |
+
|
| 431 |
+
Everett, 'John Turturro is in the movie,' 'John Turturro stars as Pete Hogwallop,' 'Tim Blake Nelson is in the movie,' 'Tim Blake Nelson stars as Delmar O'Donnell,' 'Chris Thomas King is an actor,' 'Chris Thomas King played the role of Tommy Johnson,' 'John Goodman is an actor,' 'John Goodman played the role of Big Dan Teague,' 'Holly Hunter is an actor,' 'Holly Hunter played the role of Penny,' 'There is someone specific,' 'It is desired to know more about that person.'
|
| 432 |
+
[The movie stars George Cloney as Everett, 'John Turturo as Pete Hog Wallop', "Tim Blake Nelson as Delmar O'Donnell", 'Chris Thomas King as Tommy Johnson', 'John Goodman as Big Dan Teague', 'Holly Hunter as Penny']
|
| 433 |
+
|
| 434 |
+
# (a) Example question and answer decomposition. First option shows FActScore decomposition and second option shows CoG decomposition.
|
| 435 |
+
|
| 436 |
+
7. Question: who plays in o brother where art thou
|
| 437 |
+
|
| 438 |
+
Answer: O Brother, Where Art Thou? is a 2000 comedy-drama film written, produced, co-edited and directed by Joel and Ethan Coen. The movie stars George Clooney as Everett, John Turturro as Pete Hogwallop and Tim Blake Nelson as Delmar O'Donnell. Other actors include Chris Thomas King as Tommy Johnson, John Goodman as Big Dan Teague and Holly Hunter as Penny. Is there anyone specific you would like to know more about?
|
| 439 |
+
|
| 440 |
+
More Details
|
| 441 |
+
|
| 442 |
+

|
| 443 |
+
|
| 444 |
+
"[O Brother, Where Art Thou?" i... 2
|
| 445 |
+
|
| 446 |
+

|
| 447 |
+
Figure 5: Human Annotation Error
|
| 448 |
+
|
| 449 |
+
['The movie stars George Cloon... 1
|
| 450 |
+
|
| 451 |
+

|
| 452 |
+
|
| 453 |
+
(b) Case where human annotators preferred FActScore-based decomposition over CoG decomposition.
|
2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f98505841efe46de1f1c5a386d763b7c2a73555a66e67578b46bd39dbeee0adb
|
| 3 |
+
size 973994
|
2024/Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/32229d74-3180-4588-abab-abdd91e515f8_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/32229d74-3180-4588-abab-abdd91e515f8_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/32229d74-3180-4588-abab-abdd91e515f8_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9b05b031b72e9beee9d95267a5cf26676b940b1826d7aea6bec1dc8dc34b31c
|
| 3 |
+
size 2200102
|
2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/full.md
ADDED
|
@@ -0,0 +1,534 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension
|
| 2 |
+
|
| 3 |
+
Lin Ai Zheng Hui Zizhou Liu Julia Hirschberg
|
| 4 |
+
|
| 5 |
+
Columbia University, New York, NY {lin.ai, julia}@cs.columbia.edu {zh2483, zl2889}@columbia.edu
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Machine Reading Comprehension (MRC) poses a significant challenge in the field of Natural Language Processing (NLP). While mainstream MRC methods predominantly leverage extractive strategies using encoder-only models such as BERT, generative approaches face the issue of out-of-control generation β a critical problem where answers generated are often incorrect, irrelevant, or unfaithful to the source text. To address these limitations in generative models for extractive MRC, we introduce the Question-Attended Span Extraction (QASE) module. Integrated during the fine-tuning phase of pre-trained generative language models (PLMs), QASE significantly enhances their performance, allowing them to surpass the extractive capabilities of advanced Large Language Models (LLMs) such as GPT-4 in few-shot settings. Notably, these gains in performance do not come with an increase in computational demands. The efficacy of the QASE module has been rigorously tested across various datasets, consistently achieving or even surpassing state-of-the-art (SOTA) results, thereby bridging the gap between generative and extractive models in extractive MRC tasks. Our code is available at this GitHub repository.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Extractive Machine Reading Comprehension (MRC), also referred to as text-grounded question answering (QA) (Wang et al., 2022), involves presenting a model with a text passage and a question, requiring it to formulate an answer based solely on the given text. This can be achieved either by identifying a specific span within the text or by generating a concise answer. Extractive MRC poses a significant challenge within the domain of Natural Language Processing (NLP). Predominant strategies for addressing extractive MRC employ extractive methods, which typically extract pertinent text snippets from a broader context in response to a
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Out-of-control generation issue in generative-based methods.
|
| 17 |
+
|
| 18 |
+
query (Wang et al., 2018; Yan et al., 2019; Chen et al., 2020). However, the most precise answers in practical settings often span multiple text passages or necessitate inferential reasoning that extends beyond the surface-level content (Li et al., 2021). Therefore, there is a compelling necessity to integrate generative models alongside extractive approaches to enhance the robustness, versatility, and comprehensiveness of solutions in this field.
|
| 19 |
+
|
| 20 |
+
Yet, generative models often fall short in extractive MRC tasks due to a phenomenon known as out-of-control generation (Li et al., 2021), which encompasses two primary issues, as illustrated in Figure 1: (a) ill-formed generations that include incomplete or redundant phrases, and (b) factual inconsistencies that diverge from the intended information. Our research aim to bridge the performance gap between generative and extractive models in extractive MRC tasks by tackling the out-of-control generation issue. We introduce the lightweight Question-Attended Span Extraction (QASE) module. This module is integrated during the fine-tuning of various open-source generative pre-trained language models (PLMs) across multiple MRC datasets to enhance the reliability and accuracy of the generated answers.
|
| 21 |
+
|
| 22 |
+
Our key contributions are outlined as follows:
|
| 23 |
+
|
| 24 |
+
1. We develop the QASE module to enhance the quality and factual accuracy of answers generated by fine-tuned generative PLMs, achieving performance on par with state-of-the-art (SOTA) extractive methods and surpassing that of advanced Large Language Models (LLMs) such as GPT-4 in few-shot settings.
|
| 25 |
+
|
| 26 |
+
2. QASE enhances model performance without imposing significant additional computational demands, offering a cost-effective solution.
|
| 27 |
+
|
| 28 |
+
# 2 Related Work
|
| 29 |
+
|
| 30 |
+
Extractive MRC Recent MRC research predominantly focuses on extractive question answering using encoder-only PLMs like BERT and XLM-Roberta, predicting the start and end positions of answers directly from the context (Ohsugi et al., 2019; Lan et al., 2019; Bachina et al., 2021; Chen et al., 2022). For multi-span answers, Segal et al. (2020) treat this as a sequence tagging task, while others (Hu et al., 2019; Lee et al., 2023; Zhang et al., 2023) use hybrid approaches to enhance performance on complex MRC problems. Beyond extractive methods, there is growing interest in applying generative language models for extractive MRC (Yang et al., 2020; Li et al., 2021; Jiang et al., 2022; Su et al., 2022), which generate answers by reformulating information across the context. Xu et al. (2021) adopt a similar approach to ours by adding a span extraction auxiliary task to guide text generation. However, this method does not focus sufficiently on the queried questions, which may reduce the accuracy of span extraction.
|
| 31 |
+
|
| 32 |
+
Retrieval-augmented text generation (RAG) RAG augments the input of PLMs with in-domain (Gu et al., 2018; Weston et al., 2018; Saha and Srihari, 2023) or external knowledge (Su et al., 2021; Xiao et al., 2021) to control the quality and factual consistency of generated content. It has become a new text generation paradigm in many NLP tasks (Li et al., 2022b; Ai et al., 2024), such as dialogue response generation (Wu et al., 2021; Liu et al., 2023b) and machine translation (He et al., 2021; Zhu et al., 2023). However, RAG is typically utilized in scenarios where document retrieval is necessary to reduce input context window (Chen et al., 2024; Ram et al., 2023), whereas selective MRC often requires accessing information beyond the immediate context. Our approach diverges from RAG as it directly fine-tunes the weights of the
|
| 33 |
+
|
| 34 |
+
PLMs rather than altering the input to the PLMs with additional information.
|
| 35 |
+
|
| 36 |
+
Controllable Text Generation Significant progress has been made in controllable text generation. Gururangan et al. (2020) fine-tune language models on domain-adaptive text to customize generated content attributes. Other methods include reinforcement learning (Li et al., 2024), contrastive learning (Zheng et al., 2023), and control codes for fine-tuning PLMs (Keskar et al., 2019). Some approaches modify the probability distribution of PLMs, such as Liu et al. (2021) using two smaller "expert" models, and Yang and Klein (2021) conditioning generation with a "future discriminator." Huang et al. (2023) explore multi-aspect text generation with trainable gates for enhanced control. Our proposed module, QASE, represents a novel adaptation of controlled text generation tailored to the specific challenges of MRC, with a focus on the precision and relevance of generated answers. Unlike methods that modify the overall generative process through complex architectural alterations or additional learning mechanisms, QASE directly utilizes the question and context to guide inferences.
|
| 37 |
+
|
| 38 |
+
# 3 Method
|
| 39 |
+
|
| 40 |
+
This section presents our proposed QASE module and the multi-task fine-tuning strategy we employ.
|
| 41 |
+
|
| 42 |
+
# 3.1 Question-Attended Span Extraction
|
| 43 |
+
|
| 44 |
+
To guide text generation, we employ the QASE module, a question-attended span extraction tool, during the fine-tuning of generative PLMs. QASE directs model focus to potential answer spans within the original text. We frame span extraction as a sequence tagging task using the Inside-Outside (IO) tagging schema. In this schema, each token is labeled as 'inside' $(I)$ if it falls within a relevant span, or 'outside' $(O)$ otherwise. This approach effectively handles both single- and multi-span extractions and has shown to perform on par with or better than the well-known BIO format (Huang et al., 2015), as demonstrated by Segal et al. (2020).
|
| 45 |
+
|
| 46 |
+
The model architecture is depicted in Figure 2. Initially, a context and question pair along with an instruction are tokenized and input into the PLM. The resultant hidden states from the PLM are then transformed through projection layers to generate embeddings $z_{i} = \text{ReLU}(W_{proj}v_{i} + b_{proj})$ , where $v_{i} \in R^{d}$ represents the hidden state of the $i^{th}$ token
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
Figure 2: Architecture of the QASE-enhanced model. Here, $z_{Q}^{*}$ represents the averaged embedding of question tokens, expanded to match the length of $z_{C}$ .
|
| 50 |
+
|
| 51 |
+
from the PLM output.
|
| 52 |
+
|
| 53 |
+
To capture the relationship of context tokens to specific questions, we utilize a multi-head attention mechanism (MHA). Each attention head targets different aspects of the context in relation to the question, treating question embeddings as queries and context embeddings as keys and values. Specifically, for each question-context pair, we compute a mean question embedding by averaging the embeddings of question tokens, which is then expanded to align with the length of the context sequence. This expanded question embedding, $z_{Q}^{*}$ , serves as the query in the MHA, with the context embedding, $z_{C}$ , acting as both the key and the value. This mechanism allows the derived representation of each token in the context to encapsulate its relevance in relation to the posed question.
|
| 54 |
+
|
| 55 |
+
In conclusion, the $QASE$ module processes the projected embeddings $z_{C}$ and $z_{Q}^{*}$ through the MHA mechanism, followed by a linear and a softmax layer to calculate the probability that each context token belongs to an answer span:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
p _ {C _ {i}} = s o f t m a x (W _ {l i n} \cdot M H A (z _ {Q _ {i}} ^ {*}, z _ {C _ {i}}, z _ {C _ {i}}) + b _ {l i n})
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
This probability is represented by $p_{C_i}$ for the $i^{th}$ context token. To measure the accuracy of span prediction, we compute sequence tagging loss employing cross-entropy loss:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
L _ {Q A S E} = - \frac {1}{N} \sum_ {i = 1} ^ {N} \sum_ {j = 0} ^ {1} y _ {i j} l o g (p _ {C _ {i j}})
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $j \in 0,1$ designates the classes $\mathbf{O}$ and $\mathbf{I}$ , and $y_{ij}$ is a binary indicator of whether the $i^{th}$ token is labeled as class $j$ .
|
| 68 |
+
|
| 69 |
+
# 3.2 Fine-Tuning and Inference
|
| 70 |
+
|
| 71 |
+
We fine-tune the PLMs employing a multi-task learning strategy that concurrently optimizes both the language modeling loss and the sequence tagging loss:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
L = L _ {L M L} + \beta L _ {Q A S E}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $\beta$ is a hyper-parameter that determines the weight assigned to the span extraction task. This dual-objective approach substantially improves the PLMs' capability to generate contextually grounded and relevant answers. During the inference phase, only the generation component of the finely-tuned model is utilized.
|
| 78 |
+
|
| 79 |
+
# 4 Experiments
|
| 80 |
+
|
| 81 |
+
This section presents the experimental framework, detailing the datasets used, experimental setup, comprehensive quantitative results of model performance, ablation studies, analysis of model factual consistency, and qualitative case studies.
|
| 82 |
+
|
| 83 |
+
# 4.1 Datasets and Metrics
|
| 84 |
+
|
| 85 |
+
We utilize three extractive MRC benchmark datasets:
|
| 86 |
+
|
| 87 |
+
(1) SQuAD (Rajpurkar et al., 2016): A benchmark dataset consisting of $100\mathrm{K}+$ questions with single-span answers. We use SQuAD v1.1. Since the official evaluation on v1.1 has long been ended, we report our results on the official v1.1 development set.
|
| 88 |
+
(2) MultiSpanQA (Li et al., 2022a): This dataset consists of over 6.5k question-answer pairs. Unlike most existing single-span answer MRC datasets, MultiSpanQA focuses on multi-span answers.
|
| 89 |
+
|
| 90 |
+
(3) Quoref (Dasigi et al., 2019): A benchmark dataset containing more than $24\mathrm{K}$ questions, with most answers being single-span and $\sim 10\%$ being multi-span.
|
| 91 |
+
|
| 92 |
+
Following the conventions of the datasets' official leaderboards (listed in A.1), we employ exact match (EM) and partial match (Overlap) F1 scores as metrics on MultiSpanQA, and exact match percentage and macro-averaged F1 score on SQuAD and Quoref.
|
| 93 |
+
|
| 94 |
+
# 4.2 Experimental Setup
|
| 95 |
+
|
| 96 |
+
To assess the efficacy of the QASE module independent of any specific language models, we conduct experiments with multiple open-source LLMs. Our tests include both decoder-only LLMs, such as Llama 2 (Touvron et al., 2023) and Alpaca (Taori et al., 2023), and an encoder-decoder model family, Flan-T5 (Chung et al., 2022). For Llama 2 and Alpaca, we employ the pre-trained 7B version and fine-tune it using LoRA (Hu et al., 2021) combined with instruction-tuning (instruction templates are detailed in A.4). For the Flan-T5 family, we fine-tune the small, base, and large versions. Detailed information about the trainable parameters for each model is provided in Table 1.
|
| 97 |
+
|
| 98 |
+
<table><tr><td></td><td colspan="3">Trainable Parameters</td></tr><tr><td></td><td>no QASE</td><td>QASE</td><td>Ξparams</td></tr><tr><td>Llama2/Alpaca with LoRA</td><td>4.2M</td><td>7.3M</td><td>3.1M</td></tr><tr><td>Flan-T5-Small</td><td>77.0M</td><td>78.2M</td><td>1.3M</td></tr><tr><td>Flan-T5-Base</td><td>247.6M</td><td>248.9M</td><td>1.4M</td></tr><tr><td>Flan-T5-Large</td><td>783.2M</td><td>784.7M</td><td>1.5M</td></tr></table>
|
| 99 |
+
|
| 100 |
+
Table 1: Trainable parameters of experimented models.
|
| 101 |
+
|
| 102 |
+
We determine the hyper-parameter $\beta = 1$ and the learning rate $lr = 1e - 4$ using results from a grid search. For the LoRA fine-tuning of the Llama 2 and Alpaca models, we set a rank $r = 8$ , $\alpha = 32$ , and a dropout rate of 0.05. The methodology for selecting these hyper-parameters is detailed in A.2. All models are trained on individual GPUs with batch sizes ranging from 2 to 4, adjusted according to each GPU's VRAM capabilities. We employ four types of GPUs: A40, A10, A5500, and A100. Training continues for three epochs or until the models converge. Consistency is maintained across all variants of each base PLM in terms of GPU type, batch size, and training epochs.
|
| 103 |
+
|
| 104 |
+
# 4.3 Does QASE Mitigate Ill-Formed Generation?
|
| 105 |
+
|
| 106 |
+
To assess $QASE$ in mitigating ill-formed generation issue, we compare the performance of various PLMs fine-tuned with and without $QASE$ , as detailed in Table 2. The conventional EM and partial match F1 scores effectively measure whether the generated answers match the gold answers in format on a token basis. Overall, models fine-tuned with $QASE$ consistently outperform those without it when measured by overlap F1 score. Specifically, for the SQuAD dataset, models with $QASE$ show an EM percentage increase of up to $33.8\%$ and an F1 score improvement of up to $8.4\%$ compared to vanilla fine-tuned models. For MultiSpanQA, improvements include up to $1.6\%$ in EM F1 and up to $3.3\%$ in overlap F1. Likewise, on the Quoref dataset, enhancements of up to $19.2\%$ in EM percentage and up to $16.0\%$ in F1 score are observed. These results confirm that $QASE$ enables generative-based PLMs to produce more accurate, contextually coherent, and higher-quality answers in MRC tasks compared to vanilla fine-tuning approaches. We also include discussions on performance discrepancies across different datasets and base PLMs in Appendix B.3.
|
| 107 |
+
|
| 108 |
+
For additional comparisons, we also evaluate the fine-tuned PLMs against their zero-shot performance, as outlined in Appendix A.3. Specifically, on the SQuAD dataset, models using QASE perform up to 5.6 times better in EM and 3.0 times better in F1 score compared to the zero-shot models. On the MultiSpanQA dataset, the EM improves by up to 124.4 times, and F1 score by up to 3.4 times. Similarly, on the Quoref dataset, the EM improves by up to 38.4 times, and F1 score by up to 11.2 times with QASE. It is important to note that these substantial improvements stem from comparing zero-shot models to those fine-tuned with QASE. Nonetheless, the previously discussed results comparing fine-tuned models with and without QASE have clearly illustrated its effectiveness.
|
| 109 |
+
|
| 110 |
+
# 4.3.1 QASE-Enhanced PLMs vs SOTA LLMs and Extractive Approaches
|
| 111 |
+
|
| 112 |
+
Our top model, Flan-T5-Large $_{QASE}$ , is further benchmarked against leading models on each dataset's official leaderboard, alongside zero-shot and few-shot GPT-3.5-Turbo and GPT-4. GPT-3.5-Turbo stands as one of OpenAI's most efficient models in terms of capability and cost, while GPT-4 shows superior reasoning abilities (Liu et al.,
|
| 113 |
+
|
| 114 |
+
<table><tr><td colspan="2"></td><td>Llama2</td><td>Alpaca</td><td>Flan-T5-Small</td><td>Flan-T5-Base</td><td>Flan-T5-Large</td></tr><tr><td rowspan="2">SQuAD (EM | F1)</td><td>no QASE</td><td>36.68 | 47.06</td><td>27.88 | 43.95</td><td>77.33 | 85.51</td><td>82.09 | 89.56</td><td>83.16 | 90.71</td></tr><tr><td>QASE</td><td>37.22 | 47.69</td><td>37.31 | 47.62</td><td>77.66 | 85.90</td><td>82.20 | 90.24</td><td>84.13 | 91.70</td></tr><tr><td rowspan="2">MultiSpanQA (EM F1 | Overlap F1)</td><td>no QASE</td><td>50.93 | 68.14</td><td>52.73 | 69.10</td><td>59.13 | 76.49</td><td>64.66 | 81.41</td><td>67.41 | 83.09</td></tr><tr><td>QASE</td><td>51.75 | 70.39</td><td>52.20 | 70.01</td><td>59.08 | 77.10</td><td>64.87 | 81.50</td><td>66.92 | 84.22</td></tr><tr><td rowspan="2">Quoref (EM | F1)</td><td>no QASE</td><td>45.52 | 52.09</td><td>49.05 | 53.81</td><td>58.21 | 63.30</td><td>72.77 | 80.90</td><td>75.17 | 80.49</td></tr><tr><td>QASE</td><td>54.28 | 60.44</td><td>55.01 | 59.94</td><td>60.70 | 66.88</td><td>75.17 | 81.18</td><td>76.19 | 82.13</td></tr></table>
|
| 115 |
+
|
| 116 |
+
2023c). Studies indicate their superiority over traditional fine-tuning methods in most logical reasoning benchmarks (Liu et al., 2023a). The prompts used to query the GPT variants in zero-shot and few-shot scenarios are detailed in Appendix A.4.
|
| 117 |
+
|
| 118 |
+
Table 2: Performance (in %) of fine-tuned PLMs with or without QASE on each dataset.
|
| 119 |
+
|
| 120 |
+
<table><tr><td></td><td>EM</td><td>F1β</td></tr><tr><td>GPT-3.5-Turbo</td><td>36.944</td><td>65.637</td></tr><tr><td>GPT-4</td><td>39.347</td><td>69.158</td></tr><tr><td>GPT-3.5-Turbo2-shot</td><td>61.456</td><td>81.523</td></tr><tr><td>GPT-42-shot</td><td>74.096</td><td>88.216</td></tr><tr><td>Human (Rajpurkar et al., 2016)</td><td>82.304</td><td>91.221</td></tr><tr><td>BERT-Large (Devlin et al., 2019)</td><td>84.328</td><td>91.281</td></tr><tr><td>MSRA NLNet (ensemble)</td><td>85.954</td><td>91.677</td></tr><tr><td>Flan-T5-LargeQASE</td><td>84.125</td><td>91.701</td></tr></table>
|
| 121 |
+
|
| 122 |
+
On SQuAD, as showed in Table 3, Flan-T5-Large $_{QASE}$ surpasses human performance (Rajpurkar et al., 2016), equaling the NLNet model from Microsoft Research Asia and the pre-trained BERT-Large (Devlin et al., 2019). Additionally, it surpasses two-shot GPT-4 by $13.6\%$ on EM and $4.0\%$ on F1.
|
| 123 |
+
|
| 124 |
+
Table 3: Flan-T5-Large ${}_{QASE}$ and baselines on SQuAD.
|
| 125 |
+
|
| 126 |
+
<table><tr><td></td><td>EM F1</td><td>Overlap F1 β</td></tr><tr><td>GPT-3.5-Turbo2-shot</td><td>52.987</td><td>78.588</td></tr><tr><td>GPT-3.5-Turbo</td><td>59.766</td><td>81.866</td></tr><tr><td>GPT-4</td><td>64.027</td><td>82.731</td></tr><tr><td>LIQUID (Lee et al., 2023)</td><td>73.130</td><td>83.360</td></tr><tr><td>GPT-42-shot</td><td>65.399</td><td>83.546</td></tr><tr><td>Flan-T5-LargeQASE</td><td>66.918</td><td>84.221</td></tr></table>
|
| 127 |
+
|
| 128 |
+
On MultiSpanQA, Table 4 shows that Flant5-Large $_{QASE}$ outperforms LIQUID (Lee et al., 2023), which currently ranks #1 on the leaderboard, with respect to the overlap F1 score. Moreover, it surpasses zero-shot GPT-4 by $4.5\%$ on the exact match F1 and $1.5\%$ on the overlap F1, and two-shot GPT-4 by $2.3\%$ on the exact match F1 and $0.8\%$ on the overlap F1.
|
| 129 |
+
|
| 130 |
+
On Quoref, Table 5 shows that Flan-T5-Large $_{QASE}$ is comparable to CorefRoberta-Large
|
| 131 |
+
|
| 132 |
+
Table 4: Performance of Flan-T5-Large ${}_{Q{ASE}}$ and baselines on MultiSpanQA.
|
| 133 |
+
|
| 134 |
+
<table><tr><td></td><td>EM</td><td>F1β</td></tr><tr><td>GPT-3.5-Turbo</td><td>50.22</td><td>59.51</td></tr><tr><td>GPT-3.5-Turbo2-shot</td><td>64.53</td><td>73.40</td></tr><tr><td>GPT-4</td><td>68.07</td><td>78.34</td></tr><tr><td>GPT-42-shot</td><td>74.36</td><td>80.15</td></tr><tr><td>CorefRoberta-Large (Ye et al., 2020)</td><td>75.80</td><td>82.81</td></tr><tr><td>Flan-T5-LargeQASE</td><td>76.19</td><td>82.13</td></tr></table>
|
| 135 |
+
|
| 136 |
+
Table 5: Performance of Flan-T5-Large $Q_{ASE}$ and baselines on Quoref.
|
| 137 |
+
|
| 138 |
+
(Ye et al., 2020), which ranks #9 on the leaderboard, with a $0.5\%$ higher exact match. Furthermore, it outperforms zero-shot GPT-4 by $11.9\%$ on EM and $4.8\%$ on F1, and two-shot GPT-4 by $2.5\%$ on both EM and F1.
|
| 139 |
+
|
| 140 |
+
All top-performing models on these datasets' leaderboards, equaling or exceeding Flan-T5-Large $Q_{ASE}$ , are encoder-only extractive models. Therefore, these results demonstrate that $Q_{ASE}$ shortens or closes the gap between generative and extractive approaches, enhancing PLMs to match the capabilities of SOTA extractive models and outperform leading LLMs on extractive MRC.
|
| 141 |
+
|
| 142 |
+
# 4.4 Does QASE Improve Factual Consistency?
|
| 143 |
+
|
| 144 |
+
While token-based EM and F1 scores measure the structural quality of generated text, they do not reflect factual accuracy relative to the context. To address this, we used $Q^2$ (Honovich et al., 2021), an automatic metric for assessing factual consistency in generated text, which uses question generation and answering methods over token-based matching. We compared fine-tuned Flan-T5-Large with and without $QASE$ in both single-span (SQuAD) and multi-span (MultiSpanQA) answer settings. Table 6 shows that $QASE$ -enhanced models consistently outperform the vanilla fine-tuned model. On SQuAD, $Q^2$ NLI score is improved by $1.0\%$ , and on MultiSpanQA, it is improved by $16.0\%$ .
|
| 145 |
+
|
| 146 |
+
# 4.5 Computational Cost
|
| 147 |
+
|
| 148 |
+
To assess the computational cost associated with QASE, Table 1 reveals that incorporating the QASE
|
| 149 |
+
|
| 150 |
+
<table><tr><td></td><td>Flan-T5-Large</td><td>Q2 F1</td><td>Q2 NLI</td></tr><tr><td rowspan="2">SQuAD</td><td>no QASE</td><td>42.927</td><td>44.983</td></tr><tr><td>QASE</td><td>43.624</td><td>45.419</td></tr><tr><td rowspan="2">MultiSpanQA</td><td>no QASE</td><td>32.889</td><td>31.433</td></tr><tr><td>QASE</td><td>34.732</td><td>36.452</td></tr></table>
|
| 151 |
+
|
| 152 |
+
Table 6: ${Q}^{2}$ scores of fine-tuned Flan-T5-Large with or without ${QASE}$ on each dataset.
|
| 153 |
+
|
| 154 |
+
module incurs only a slight increase in the number of trainable parameters in PLMs. The degree of this increase varies based on the hidden sizes of the models. Remarkably, for the largest model, Flan-T5-Large, the addition of $QASE$ accounts for merely an extra $0.2\%$ in parameters. This underscores the fact that $QASE$ can substantially boost the performance of fine-tuned PLMs in MRC tasks without requiring significant additional computational resources.
|
| 155 |
+
|
| 156 |
+
# 4.6 Ablation Studies
|
| 157 |
+
|
| 158 |
+
We conduct ablation studies to assess the effectiveness of the $QASE$ architecture and to determine the optimal prompting strategy. Specifically, we compare Flan-T5-Large $QASE$ with both the vanilla fine-tuned Flan-T5-Large $FT$ and the baseline Flan-T5-Large $baseline$ . As shown in Figure 3 in Appendix A.5, the baseline span extraction module does not include the MHA component, rendering it a conventional architecture for fine-tuning pretrained encoders on downstream sequence tagging tasks. For each configuration - Flan-T5-Large $FT$ , Flan-T5-Large $QASE$ , and Flan-T5-Large $baseline$ - we explored both a question-first $(qf)$ and a context-first prompting strategy, with a detailed description of these strategies provided in Appendix A.5.
|
| 159 |
+
|
| 160 |
+
Table 7 shows that the baseline-embedded model performs better with a question-first prompting strategy, as Flan-T5-Large $_{\text{baseline}_{qf}}$ surpasses Flan-T5-Large $_{\text{baseline}}$ and Flan-T5-Large $_{\text{FT}_{qf}}$ . Conversely, the baseline span extraction module decreases performance in context-first prompting, where Flan-T5-Large $_{\text{baseline}}$ underperforms compared to Flan-T5-Large $_{\text{FT}}$ . This suggests that adding an auxiliary span extraction module without careful design can negatively affect instruction fine-tuning. Meanwhile, the QASE-enhanced model excels over both vanilla fine-tuned and baseline-embedded models in both prompting scenarios, demonstrating its architectural superiority. Specifically, in context-first setting, Flan-T5-Large $_{\text{QASE}}$ significantly outperforms Flan-T5-
|
| 161 |
+
|
| 162 |
+
Largebaseline with a $4.3\%$ higher F1.
|
| 163 |
+
|
| 164 |
+
<table><tr><td></td><td>EM</td><td>F1β</td></tr><tr><td>Flan-T5-Largebaseline</td><td>79.877</td><td>87.918</td></tr><tr><td>Flan-T5-LargeFTqf</td><td>80.378</td><td>88.176</td></tr><tr><td>Flan-T5-Largebaselineqf</td><td>81.125</td><td>89.043</td></tr><tr><td>Flan-T5-LargeQASEqf</td><td>81.485</td><td>89.077</td></tr><tr><td>Flan-T5-LargeFT</td><td>83.159</td><td>90.712</td></tr><tr><td>Flan-T5-LargeQASE</td><td>84.125</td><td>91.701</td></tr></table>
|
| 165 |
+
|
| 166 |
+
Table 7: Performance of vanilla, baseline-, and QASE-enhanced fine-tuned Flan-T5-Large on SQuAD.
|
| 167 |
+
|
| 168 |
+
# 4.7 Qualitative Case Studies
|
| 169 |
+
|
| 170 |
+
In addition to the $Q^2$ statistical analysis in Section 4.4, we also perform qualitative case studies to further demonstrate the effectiveness of $QASE$ in generating factual consistent answers.
|
| 171 |
+
|
| 172 |
+
Question Attended Alignment Table 8 showcases that $\mathrm{Flan - T5 - Large_{QASE}}$ more accurately identifies the key focus of the question and locates the pertinent factual information within the context, with the aid of the $QASE$ module. For instance, in Sample 1, $\mathrm{Flan - T5 - Large_{QASE}}$ correctly interprets the question as seeking the age difference between Newton and Manning, rather than the age of either individual, and accordingly provides the accurate answer. In contrast, $\mathrm{Flan - T5 - Large_{FT}}$ mistakenly provides Newton's age as the answer. Similarly, in Sample 2, $\mathrm{Flan - T5 - Large_{QASE}}$ accurately discerns that the question pertains to Thoreau's claim regarding the majority, generating in the correct answer, whereas $\mathrm{Flan - T5 - Large_{FT}}$ misguidedly responds with Thoreau's political philosophy.
|
| 173 |
+
|
| 174 |
+
Multi-Span Answers Flan-T5-Large $_{QASE}$ also shows a notable improvement in comprehending complex, lengthy sentences and synthesizing answers from information that is sparsely distributed across multiple spans requiring logical processing. This capability is particularly valuable when the answer to a question does not directly stem from a single phrase. Table 9 provides examples of such instances. In Sample 3, the model needs to recognize that ESPN Deportes is the exclusive broadcaster in Spanish and that CBS, although mentioned, does not offer Spanish-language broadcasting. Combining these facts leads to the correct answer, that ESPN Deportes is the network that broadcast the game in Spanish. Flan-T5-Large $_{QASE}$ accurately generates this answer, whereas Flan-T5-Large $_{FT}$ incorrectly answers with βCBS,β likely due to confusion caused by the complex sentence structures
|
| 175 |
+
|
| 176 |
+
and dispersed information. Similarly, in Sample 4, Flan-T5-Large $_{QASE}$ correctly identifies the question as seeking the name of the force related to a potential field between two locations. It successfully locates the relevant long sentence, deconstructs, and comprehends it to produce the correct answer, in contrast to Flan-T5-Large $_{FT}$ , which incorrectly selects the first phrase mentioning "force." In Sample 5, the question asks for the class most commonly not ascribed to the graph isomorphism problem. The model needs to deduce from the context that "it is widely believed that the polynomial hierarchy does not collapse to any finite level," implying "graph isomorphism is not NP-complete." Once again, Flan-T5-Large $_{QASE}$ arrives at the correct conclusion, while Flan-T5-Large $_{FT}$ does not.
|
| 177 |
+
|
| 178 |
+
# Sample 1
|
| 179 |
+
|
| 180 |
+
Context: This was the first Super Bowl to feature a quarterback on both teams who was the #1 pick in their draft classes. Manning was the #1 selection of the 1998 NFL draft, while Newton was picked first in 2011. The matchup also pits the top two picks of the 2011 draft against each other: Newton for Carolina and Von Miller for Denver. Manning and Newton also set the record for the largest age difference between opposing Super Bowl quarterbacks at 13 years and 48 days (Manning was 39, Newton was 26).
|
| 181 |
+
|
| 182 |
+
Question: What was the age difference between Newton and Manning in Super Bowl 50?
|
| 183 |
+
|
| 184 |
+
Gold Answer: 13 years and 48 days
|
| 185 |
+
|
| 186 |
+
<table><tr><td>Flan-T5-LargeQASE Generation</td><td>13 years and 48 days</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>26</td></tr></table>
|
| 187 |
+
|
| 188 |
+
# Sample 2
|
| 189 |
+
|
| 190 |
+
Context: However, this definition is disputed by Thoreau's political philosophy, which contrasts the conscience with the collective. The individual is the ultimate arbiter of right and wrong. Beyond this, since only individuals act, only they can commit injustices. ... Thoreau acknowledges that the government may represent the will of the majority but it might also merely reflect the desires of elite politicians. Even a good government is "liable to be abused and perverted before the people can act through it." Furthermore, even if a government did express the voice of the people, this fact would not obligate the obedience of individuals who dissent. The majority may be powerful but it is not necessarily right. What, then, is the appropriate relationship between the individual and the government?
|
| 191 |
+
|
| 192 |
+
Question: What did Thoreau claim about the majority?
|
| 193 |
+
|
| 194 |
+
Gold Answer: not necessarily right
|
| 195 |
+
|
| 196 |
+
<table><tr><td>Flan-T5-LargeQASE Generation</td><td>it is not necessarily right</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>conscience vs. the collective</td></tr></table>
|
| 197 |
+
|
| 198 |
+
Table 8: Comparisons of model attention alignment with question key aspects and relevant factual context between Flan-T5-Large $_{QASE}$ and Flan-T5-Large $_{FT}$ .
|
| 199 |
+
|
| 200 |
+
# Sample 3
|
| 201 |
+
|
| 202 |
+
Context: On December 28, 2015, ESPN Deportes announced that they had reached an agreement with CBS and the NFL to be the exclusive Spanish-language broadcaster of the game, marking the third dedicated Spanish-language broadcast of the Super Bowl. Unlike NBC and Fox, CBS does not have a Spanish-language outlet of its own that could broadcast the game (though per league policy, a separate Spanish play-by-play call was carried on CBS's second audio program channel for over-the-air viewers). ...
|
| 203 |
+
|
| 204 |
+
Question: Which network broadcast the game in Spanish?
|
| 205 |
+
|
| 206 |
+
Gold Answer:ESPN Deportes
|
| 207 |
+
|
| 208 |
+
<table><tr><td>Flan-T5-LargeQASE Generation</td><td>ESPN Deportes</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>CBS</td></tr></table>
|
| 209 |
+
|
| 210 |
+
# Sample 4
|
| 211 |
+
|
| 212 |
+
Context: A conservative force that acts on a closed system has an associated mechanical work that allows energy to convert only between kinetic or potential forms. This means that for a closed system, the net mechanical energy is conserved whenever a conservative force acts on the system. The force, therefore, is related directly to the difference in potential energy between two different locations in space, and can be considered to be an artifact of the potential field in the same way that the direction and amount of a flow of water can be considered to be an artifact of the contour map of the elevation of an area.
|
| 213 |
+
|
| 214 |
+
Question: What is the force called regarding a potential field between two locations?
|
| 215 |
+
|
| 216 |
+
Gold Answer: an artifact
|
| 217 |
+
|
| 218 |
+
<table><tr><td>Flan-T5-LargeQASE Generation</td><td>an artifact</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>conservative force</td></tr></table>
|
| 219 |
+
|
| 220 |
+
# Sample 5
|
| 221 |
+
|
| 222 |
+
Context: The graph isomorphism problem is the computational problem of determining whether two finite graphs are isomorphic. An important unsolved problem in complexity theory is whether the graph isomorphism problem is in P, NP-complete, or NP-intermediate. The answer is not known, but it is believed that the problem is at least not NP-complete. If graph isomorphism is NP-complete, the polynomial time hierarchy collapses to its second level. Since it is widely believed that the polynomial hierarchy does not collapse to any finite level, it is believed that graph isomorphism is not NP-complete. The best algorithm for this problem, due to Laszlo Babai and Eugene Luks has run time $2O(\sqrt{nlog(n)})$ for graphs with n vertices.
|
| 223 |
+
|
| 224 |
+
Question: What class is most commonly not ascribed to the graph isomorphism problem in spite of definitive determination?
|
| 225 |
+
|
| 226 |
+
Gold Answer: NP-complete
|
| 227 |
+
|
| 228 |
+
<table><tr><td>Flan-T5-LargeQASE Generation</td><td>NP-complete</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>NP-intermediate</td></tr></table>
|
| 229 |
+
|
| 230 |
+
Table 9: Comparison of Flan-T5-Large $_{QASE}$ and Flan-T5-Large $_{FT}$ in understanding complex sentence structures.
|
| 231 |
+
|
| 232 |
+
Real-World Knowledge While our primary evaluation focuses on the model's proficiency in deriving answers from provided contexts, we also note that $QASE$ enhances the model's capacity to leverage real-world knowledge acquired during its pre-training phase. This improvement is attributed to $QASE$ 's ability to better align the model's focus on parts of the context that are relevant to the questions asked. Table 10 presents an example of this phenomenon. In Sample 6, when asked about the California venue considered for the Super Bowl, Flan-T5-Large $QASE$ correctly associates the San Francisco Bay Area with California, thus producing the accurate answer. On the other hand, Flan-T5-Large $FT$ erroneously identifies a stadium in Miami as the answer. This example illustrates how $QASE$ not only improves context-based answer generation but also the model's application of pre-existing real-world knowledge to the questions posed.
|
| 233 |
+
|
| 234 |
+
<table><tr><td colspan="2">Sample 6
|
| 235 |
+
Context: The league eventually narrowed the bids to three sites: New Orleans' Mercedes-Benz Superdome, Miami's Sun Life Stadium, and the San Francisco Bay Area's Levi's Stadium.
|
| 236 |
+
Question: Which California venue was one of three considered for Super Bowl 50?</td></tr><tr><td colspan="2">Gold Answer: San Francisco Bay Area's Levi's Stadium</td></tr><tr><td>Flan-T5-LargeQASE Generation</td><td>San Francisco Bay Area's Levi's Stadium</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>Sun Life Stadium</td></tr></table>
|
| 237 |
+
|
| 238 |
+
Common Failure Cases We observe that a recurring error made by Flan-T5-Large $_{QASE}$ is its inability to correctly interpret Roman numerals, as seen in Failure Sample 1 in Table 11, where the model is asked about the last Super Bowl held in California before Super Bowl 50. The correct answer, "Super Bowl XXXVII," is clearly mentioned in the context, but Flan-T5-Large $_{QASE}$ incorrectly identifies "Super Bowl XIX." The struggle with Roman numeral interpretation leads to errors even when the information is explicitly provided.
|
| 239 |
+
|
| 240 |
+
Additionally, Flan-T5-Large $_{QASE}$ sometimes generates slightly redundant phrases, though the excess is minimal. We argue that the generated answers are still correct in the given contexts, and the only reason they are not marked as $100\%$ accurate is due to the dataset's annotation scheme. For
|
| 241 |
+
|
| 242 |
+
example, in Failure Sample 2 in Table 11, Flan-T5-Large $_{QASE}$ accurately identifies that the "entrance to studio 5" is the critical element, whereas Flan-T5-Large $_{FT}$ simplifies the answer to just "studio 5," missing the nuance. The inclusion of extra words highlights the model's attention to detail, even though it results in slight deviations from the gold-standard annotations.
|
| 243 |
+
|
| 244 |
+
We observe minor variations such as the omission or addition of non-essential words like "the" or punctuation marks. While technically considered "mistakes" in strict dataset annotations, these deviations do not affect the semantic accuracy of the model's responses. These are surface-level discrepancies rather than true comprehension errors. Such differences arguably shouldn't penalize the model, as they fall within acceptable linguistic flexibility. This prompts a discussion on evaluating model performance, where strict token-level matching may overlook underlying comprehension. For more examples and further discussion, see Appendix A.6.
|
| 245 |
+
|
| 246 |
+
Table 10: Comparison of Flan-T5-Large $_{QASE}$ and Flan-T5-Large $_{FT}$ in utilizing real-world knowledge.
|
| 247 |
+
|
| 248 |
+
<table><tr><td colspan="2">Failure Sample 1
|
| 249 |
+
Context: On May 21, 2013, NFL owners at their spring meetings in Boston voted and awarded the game to Levi's Stadium. It is the first Super Bowl held in the San Francisco Bay Area since Super Bowl XIX in 1985, and the first in California since Super Bowl XXXVII took place in San Diego in 2003.
|
| 250 |
+
Question: Prior to Super Bowl 50, what was the last Super Bowl in California?</td></tr><tr><td colspan="2">Gold Answer: Super Bowl XXXVII</td></tr><tr><td>Flan-T5-LargeQASE Generation</td><td>Super Bowl XIX</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>2010</td></tr></table>
|
| 251 |
+
|
| 252 |
+
<table><tr><td colspan="2">Failure Sample 2
|
| 253 |
+
Context: ITV Tyne Tees was based at City Road for over 40 years after its launch in January 1959. In 2005 it moved to a new facility on The Watermark business park next to the MetroCentre in Gateshead. The entrance to studio 5 at the City Road complex gave its name to the 1980s music television programme, The Tube.
|
| 254 |
+
Question: What gave its name to the 1980s music television program βThe Tubeβ?</td></tr><tr><td colspan="2">Gold Answer: The entrance to studio 5</td></tr><tr><td>Flan-T5-LargeQASE Generation</td><td>entrance to studio 5 at the City Road complex</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>studio 5</td></tr></table>
|
| 255 |
+
|
| 256 |
+
Table 11: Failure cases of Flan-T5-Large ${}_{QASE}$ .
|
| 257 |
+
|
| 258 |
+
# 5 Discussions
|
| 259 |
+
|
| 260 |
+
In this section, we briefly address the weak performance of Flan-T5 zero-shot and Llama 2 on ex
|
| 261 |
+
|
| 262 |
+
tractive MRC tasks, despite their strong language understanding abilities. We note that a comprehensive analysis is beyond our study's scope. Our goal is to gain insights into further improving these PLMs' effectiveness in extractive MRC.
|
| 263 |
+
|
| 264 |
+
# 5.1 Flan-T5 Zero-Shot Performance
|
| 265 |
+
|
| 266 |
+
Despite being trained on SQuAD during pretraining, zero-shot Flan-T5 models demonstrate poor performance across datasets, including SQuAD. While a comprehensive analysis of Flant5's performance is beyond the focus of our study, we briefly explore potential reasons for this underperformance to gain better insights. This underperformance may stem from their training on a wide range of tasks (1,836 tasks), focusing on free-form generation, QA, and reasoning tasks, rather than being finely optimized for extractive QA tasks like MRC. Additionally, generative models like Flant5 and Llama 2 generally struggle in MRC tasks, as discussed earlier. For extended discussions, refer to Appendix B.1.
|
| 267 |
+
|
| 268 |
+
For fairness in our zero-shot experiments, we compare our prompt template with Google's instruct-tuning prompts for Flan-T5 on the SQuAD v1 dataset. Our results, as illustrated in Table 17, reveal that our prompt template achieves the highest F1 score. This implies that Flan-T5's lower zero-shot performance on MRC is expected.
|
| 269 |
+
|
| 270 |
+
# 5.2 Llama 2 Performance
|
| 271 |
+
|
| 272 |
+
We also observe that models based on Llama 2 and Alpaca consistently underperform compared to those based on Flan-T5, across zero-shot and finetuned scenarios, with or without QASE. This discrepancy may arise from the significant difference in the number of trainable parameters, as illustrated in Table 1, during fine-tuning. Additionally, factors such as differences in pre-training datasets and varied adaptation to tasks due to structural disparities can also contribute to this performance gap. While acknowledging these factors, conducting a comprehensive comparison of different generative model architectures in extractive MRC tasks exceeds the scope of our study. For further discussion, please refer to Appendix B.2.
|
| 273 |
+
|
| 274 |
+
# 5.3 Performance Discrepancy across Different Base PLMs and Datasets
|
| 275 |
+
|
| 276 |
+
While we observe significant performance improvements with $QASE$ across various base PLMs and datasets, the extent of the gains varies by dataset.
|
| 277 |
+
|
| 278 |
+
Specifically, Quoref shows the largest improvement, as shown in Table 18 in Appendix B.3, partly due to its weaker baselines. For instance, a Flant5-Small model fine-tuned without QASE achieves F1 scores of $85.51\%$ on SQuAD, $76.49\%$ on MultiSpanQA, and $63.30\%$ on Quoref. Higher baseline scores on datasets such as SQuAD make further improvements more challenging but still notable.
|
| 279 |
+
|
| 280 |
+
Model-wise, Llama 2 and Alpaca show larger improvements than Flan-T5 models, with some exceptions on MultiSpanQA. This is likely due to Flan-T5's higher baseline performance, as discussed in Sections 5.1, 5.2, and Appendix B.1, B.2. While there are potential factors that explain some of Flan-T5's superior performance in context-based question answering, a comprehensive comparison of model architectures in MRC tasks is beyond the scope of this study. For further discussion, refer to Appendix B.3.
|
| 281 |
+
|
| 282 |
+
# 6 Conclusions and Future Work
|
| 283 |
+
|
| 284 |
+
In this study, we address out-of-control generation issue of generative PLMs in extractive MRC using QASE, a lightweight question-attended span extraction module, during the fine-tuning of PLMs. Our experiments show that QASE-enhanced PLMs generate better-quality responses with improved formality and factual consistency, matching SOTA extractive models and outperforming few-shot GPT-4 by a significant margin on all three extractive MRC datasets, bridging the gap between generative and extractive models in extractive MRC tasks. Importantly, QASE improves performance without a significant increase in computational costs, benefiting researchers with limited resources.
|
| 285 |
+
|
| 286 |
+
As the next step, we plan to conduct interpretability analyses to examine the performance discrepancies across different base PLMs and datasets.
|
| 287 |
+
|
| 288 |
+
In the future, we aim to evaluate our model on generative MRC tasks, such as Nguyen et al. (2016), to gauge its effectiveness in handling more intricate scenarios. Additionally, a significant emphasis will be placed on assessing the model's overall capability in answer generation, with a specific focus on human perception. This involves incorporating human annotators alongside automatic metrics. Looking further ahead, we aspire to extend our research to explore strategies for mitigating input- and context-conflicting hallucinations in LLMs.
|
| 289 |
+
|
| 290 |
+
# Limitations
|
| 291 |
+
|
| 292 |
+
Due to our limited computational resources, we have been able to perform our experiments on models no larger than Flan-T5-Large. This same constraint leads us to only fine-tuning of Llama 2 and Alpaca with LoRA. We note that models based on Llama 2 and Alpaca generally underperform those based on Flan-T5. Apart from the inherent distinctions between decoder-only and encoder-decoder models, and their suitability for different tasks (as seen from the models' zero-shot performance), a possible factor could be the number of trainable parameters during fine-tuning. Specifically, fine-tuning Llama 2 and Alpaca with LoRA results in only $4.2\mathrm{M}$ trainable parameters, while even the smallest Flan-T5 model provides $77.0\mathrm{M}$ trainable parameters, as shown in Table 1. We acknowledge that many researchers face similar computational resource limitations. Therefore, our research should be very useful, proposing this lightweight module capable of enhancing smaller PLMs to outperform leading LLMs on MRC tasks like these, achieving a balance of effectiveness and affordability.
|
| 293 |
+
|
| 294 |
+
One foreseeable limitation of our work is the dependency of the fine-tuning process on answer span annotations, since $QASE$ works as an auxiliary supervised span extraction module. This reliance on annotated data could potentially limit the model's broader applicability. A prospective exciting future direction to address this limitation is to develop a semi- or unsupervised module that focuses on selecting relevant spans or rationales within a given context. By integrating this module with our current model, we could significantly improve its generalization capabilities, thereby making it more adaptable and effective across a wider range of scenarios.
|
| 295 |
+
|
| 296 |
+
One popular method to enhance the formality of answers generated by LLMs is through prompt engineering, paired with few-shot or in-context learning techniques. While these strategies offer great advantages, our ultimate goal is to create a system with broad domain generalization, one that minimizes the need for extensive, calibrated prompt engineering and sample selections for task adaptation. Although developing a robust prompt engineering framework or paradigm is an appealing direction, our current focus diverges from this path. As a long-term goal, we aim for a solution that handles diverse tasks with minimal task-specific tuning.
|
| 297 |
+
|
| 298 |
+
# References
|
| 299 |
+
|
| 300 |
+
Lin Ai, Tharindu Kumarage, Amrita Bhattacharjee, Zizhou Liu, Zheng Hui, Michael Davinroy, James Cook, Laura Cassani, Kirill Trapeznikov, Matthias Kirchner, et al. 2024. Defending against social engineering attacks in the age of llms. arXiv preprint arXiv:2406.12263.
|
| 301 |
+
Sony Bachina, Spandana Balumuri, and Sowmya Kamath S. 2021. Ensemble ALBERT and RoBERTa for span prediction in question answering. In Proceedings of the 1st Workshop on Document-grounded Dialogue and Conversational Question Answering (DialDoc 2021), pages 63-68, Online. Association for Computational Linguistics.
|
| 302 |
+
Jiawei Chen, Hongyu Lin, Xianpei Han, and Le Sun. 2024. Benchmarking large language models in retrieval-augmented generation. Proceedings of the AAAI Conference on Artificial Intelligence, 38(16):17754-17762.
|
| 303 |
+
Kunlong Chen, Weidi Xu, Xingyi Cheng, Zou Xiaochuan, Yuyu Zhang, Le Song, Taifeng Wang, Yuan Qi, and Wei Chu. 2020. Question directed graph attention network for numerical reasoning over text. arXiv preprint arXiv:2009.07448.
|
| 304 |
+
Nuo Chen, Linjun Shou, Ming Gong, and Jian Pei. 2022. From good to best: Two-stage training for cross-lingual machine reading comprehension. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 10501-10508.
|
| 305 |
+
Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. 2022. Scaling instruction-finetuned language models. arXiv preprint arXiv:2210.11416.
|
| 306 |
+
Pradeep Dasigi, Nelson F. Liu, Ana Marasovic, Noah A. Smith, and Matt Gardner. 2019. Quoref: A reading comprehension dataset with questions requiring coreferential reasoning. 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 5925-5932, Hong Kong, China. Association for Computational Linguistics.
|
| 307 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171-4186, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 308 |
+
Jiatao Gu, Yong Wang, Kyunghyun Cho, and Victor OK Li. 2018. Search engine guided neural machine translation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32.
|
| 309 |
+
|
| 310 |
+
Suchin Gururangan, Ana Marasovic, Swabha Swayamdipta, Kyle Lo, Iz Beltagy, Doug Downey, and Noah A. Smith. 2020. Don't stop pretraining: Adapt language models to domains and tasks. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8342-8360, Online. Association for Computational Linguistics.
|
| 311 |
+
Qiuxiang He, Guoping Huang, Qu Cui, Li Li, and Lemao Liu. 2021. Fast and accurate neural machine translation with translation memory. 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 3170-3180, Online. Association for Computational Linguistics.
|
| 312 |
+
Or Honovich, Leshem Choshen, Roee Aharoni, Ella Neeman, Idan Szpektor, and Omri Abend. 2021. $Q^2$ : Evaluating factual consistency in knowledge-grounded dialogues via question generation and question answering. arXiv preprint arXiv:2104.08202.
|
| 313 |
+
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.
|
| 314 |
+
Minghao Hu, Yuxing Peng, Zhen Huang, and Dongsheng Li. 2019. A multi-type multi-span network for reading comprehension that requires discrete reasoning. 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 1596-1606, Hong Kong, China. Association for Computational Linguistics.
|
| 315 |
+
Xuancheng Huang, Zijun Liu, Peng Li, Tao Li, Maosong Sun, and Yang Liu. 2023. An extensible plug-and-play method for multi-aspect controllable text generation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15233-15256, Toronto, Canada. Association for Computational Linguistics.
|
| 316 |
+
Zhiheng Huang, Wei Xu, and Kai Yu. 2015. Bidirectional lstm-crf models for sequence tagging. arxiv 2015. arXiv preprint arXiv:1508.01991.
|
| 317 |
+
Zhengbao Jiang, Jun Araki, Haibo Ding, and Graham Neubig. 2022. Understanding and improving zero-shot multi-hop reasoning in generative question answering. Preprint, arXiv:2210.04234.
|
| 318 |
+
Nitish Shirish Keskar, Bryan McCann, Lav R. Varshney, Caiming Xiong, and Richard Socher. 2019. Ctrl: A conditional transformer language model for controllable generation. Preprint, arXiv:1909.05858.
|
| 319 |
+
Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2019. Albert: A lite bert for self-supervised learning of language representations. arXiv preprint arXiv:1909.11942.
|
| 320 |
+
|
| 321 |
+
Seongyun Lee, Hyunjae Kim, and Jaewoo Kang. 2023. Liquid: A framework for list question answering dataset generation. arXiv preprint arXiv:2302.01691.
|
| 322 |
+
Chenliang Li, Bin Bi, Ming Yan, Wei Wang, and Songfang Huang. 2021. Addressing semantic drift in generative question answering with auxiliary extraction. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pages 942-947, Online. Association for Computational Linguistics.
|
| 323 |
+
Haonan Li, Martin Tomko, Maria Vasardani, and Timothy Baldwin. 2022a. MultiSpanQA: A dataset for multi-span question answering. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1250-1260, Seattle, United States. Association for Computational Linguistics.
|
| 324 |
+
Huayang Li, Yixuan Su, Deng Cai, Yan Wang, and Lemao Liu. 2022b. A survey on retrieval-augmented text generation. arXiv preprint arXiv:2202.01110.
|
| 325 |
+
Wendi Li, Wei Wei, Kaihe Xu, Wenfeng Xie, Dangyang Chen, and Yu Cheng. 2024. Reinforcement learning with token-level feedback for controllable text generation. Preprint, arXiv:2403.11558.
|
| 326 |
+
Alisa Liu, Maarten Sap, Ximing Lu, Swabha Swayamdipta, Chandra Bhagavatula, Noah A. Smith, and Yejin Choi. 2021. DExperts: Decoding-time controlled text generation with experts and anti-experts. 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 6691-6706, Online. Association for Computational Linguistics.
|
| 327 |
+
Hanmeng Liu, Ruoxi Ning, Zhiyang Teng, Jian Liu, Qiji Zhou, and Yue Zhang. 2023a. Evaluating the logical reasoning ability of chatgpt and gpt-4. arXiv preprint arXiv:2304.03439.
|
| 328 |
+
Shuai Liu, Hyundong Cho, Marjorie Freedman, Xuezhe Ma, and Jonathan May. 2023b. RECAP: Retrieval-enhanced context-aware prefix encoder for personalized dialogue response generation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8404-8419, Toronto, Canada. Association for Computational Linguistics.
|
| 329 |
+
Xiao Liu, Junfeng Yu, Yibo He, Lujun Zhang, Kaiyichen Wei, Hongbo Sun, and Gang Tu. 2023c. System report for CCL23-eval task 9: HUST1037 explore proper prompt strategy for LLM in MRC task. In Proceedings of the 22nd Chinese National Conference on Computational Linguistics (Volume 3: Evaluations), pages 310-319, Harbin, China. Chinese Information Processing Society of China.
|
| 330 |
+
|
| 331 |
+
Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. 2016. Ms marco: A human generated machine reading comprehension dataset. choice, 2640:660.
|
| 332 |
+
Yasuhiro Ohsugi, Itsumi Saito, Kyosuke Nishida, Hisako Asano, and Junji Tomita. 2019. A simple but effective method to incorporate multi-turn context with BERT for conversational machine comprehension. In Proceedings of the First Workshop on NLP for Conversational AI, pages 11-17, Florence, Italy. Association for Computational Linguistics.
|
| 333 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: 100,000+ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383-2392, Austin, Texas. Association for Computational Linguistics.
|
| 334 |
+
Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2023. In-Context Retrieval-Augmented Language Models. Transactions of the Association for Computational Linguistics, 11:1316-1331.
|
| 335 |
+
Sougata Saha and Rohini Srihari. 2023. ArgU: A controllable factual argument generator. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8373-8388, Toronto, Canada. Association for Computational Linguistics.
|
| 336 |
+
Elad Segal, Avia Efrat, Mor Shoham, Amir Globerson, and Jonathan Berant. 2020. A simple and effective model for answering multi-span questions. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 3074-3080, Online. Association for Computational Linguistics.
|
| 337 |
+
Dan Su, Xiaoguang Li, Jindi Zhang, Lifeng Shang, Xin Jiang, Qun Liu, and Pascale Fung. 2022. Read before generate! faithful long form question answering with machine reading. In *Findings of the Association for Computational Linguistics: ACL* 2022, pages 744-756, Dublin, Ireland. Association for Computational Linguistics.
|
| 338 |
+
Yixuan Su, Yan Wang, Deng Cai, Simon Baker, Anna Korhonen, and Nigel Collier. 2021. Prototype-to-style: Dialogue generation with style-aware editing on retrieval memory. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 29:2152-2161.
|
| 339 |
+
Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca.
|
| 340 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti
|
| 341 |
+
|
| 342 |
+
Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
|
| 343 |
+
Luqi Wang, Kaiwen Zheng, Liyin Qian, and Sheng Li. 2022. A survey of extractive question answering. In 2022 International Conference on High Performance Big Data and Intelligent Systems (HDIS), pages 147-153. IEEE.
|
| 344 |
+
Wei Wang, Ming Yan, and Chen Wu. 2018. Multi-granularity hierarchical attention fusion networks for reading comprehension and question answering. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1705-1714, Melbourne, Australia. Association for Computational Linguistics.
|
| 345 |
+
Jason Weston, Emily Dinan, and Alexander Miller. 2018. Retrieve and refine: Improved sequence generation models for dialogue. In Proceedings of the 2018 EMNLP Workshop SCAI: The 2nd International Workshop on Search-Oriented Conversational AI, pages 87-92, Brussels, Belgium. Association for Computational Linguistics.
|
| 346 |
+
Zeqiu Wu, Michel Galley, Chris Brockett, Yizhe Zhang, Xiang Gao, Chris Quirk, Rik Koncel-Kedziorski, Jianfeng Gao, Hannaneh Hajishirzi, Mari Ostendorf, et al. 2021. A controllable model of grounded response generation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 14085-14093.
|
| 347 |
+
Fei Xiao, Liang Pang, Yanyan Lan, Yan Wang, Huawei Shen, and Xueqi Cheng. 2021. Transductive learning for unsupervised text style transfer. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 2510-2521, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 348 |
+
Peng Xu, Davis Liang, Zhiheng Huang, and Bing Xiang. 2021. Attention-guided generative models for extractive question answering. arXiv preprint arXiv:2110.06393.
|
| 349 |
+
Ming Yan, Jiangnan Xia, Chen Wu, Bin Bi, Zhongzhou Zhao, Ji Zhang, Luo Si, Rui Wang, Wei Wang, and Haiqing Chen. 2019. A deep cascade model for multi-document reading comprehension. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pages 7354-7361.
|
| 350 |
+
Junjie Yang, Zhuosheng Zhang, and Hai Zhao. 2020. Multi-span style extraction for generative reading comprehension. arXiv preprint arXiv:2009.07382.
|
| 351 |
+
Kevin Yang and Dan Klein. 2021. FUDGE: Controlled text generation with future discriminators. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3511-3535, Online. Association for Computational Linguistics.
|
| 352 |
+
|
| 353 |
+
Deming Ye, Yankai Lin, Jiaju Du, Zhenghao Liu, Peng Li, Maosong Sun, and Zhiyuan Liu. 2020. Coreferential Reasoning Learning for Language Representation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 7170-7186, Online. Association for Computational Linguistics.
|
| 354 |
+
|
| 355 |
+
Chen Zhang, Jiuheng Lin, Xiao Liu, Yuxuan Lai, Yansong Feng, and Dongyan Zhao. 2023. How many answers should i give? an empirical study of multi-answer reading comprehension. arXiv preprint arXiv:2306.00435.
|
| 356 |
+
|
| 357 |
+
Chujie Zheng, Pei Ke, Zheng Zhang, and Minlie Huang. 2023. Click: Controllable text generation with sequence likelihood contrastive learning. Preprint, arXiv:2306.03350.
|
| 358 |
+
|
| 359 |
+
Wenhao Zhu, Jingjing Xu, Shujian Huang, Lingpeng Kong, and Jiajun Chen. 2023. INK: Injecting kNN knowledge in nearest neighbor machine translation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15948-15959, Toronto, Canada. Association for Computational Linguistics.
|
| 360 |
+
|
| 361 |
+
# A Detailed Experiment Setup and Results
|
| 362 |
+
|
| 363 |
+
# A.1 Dataset Leaderboard
|
| 364 |
+
|
| 365 |
+
Below are the official leaderboards all the datasets we refer to:
|
| 366 |
+
|
| 367 |
+
<table><tr><td>SQuAD</td><td>https://rajpurkar.github.io/
|
| 368 |
+
SQuAD-explorer/</td></tr><tr><td>MultiSpanQA</td><td>https://multi-span.github.io/</td></tr><tr><td>Quoref</td><td>https://leaderboard.allenai.org/
|
| 369 |
+
quoref/submissions/public</td></tr></table>
|
| 370 |
+
|
| 371 |
+
Table 12: Dataset official leaderboards.
|
| 372 |
+
|
| 373 |
+
# A.2 Hyper-Parameter Selection
|
| 374 |
+
|
| 375 |
+
In this section, we outline the process for selecting the hyper-parameter $\beta$ and detail our approach to LoRA fine-tuning.
|
| 376 |
+
|
| 377 |
+
For selecting $\beta$ , we use a grid search method, exploring values from 0.5 to 2 in increments of 0.1, on $30\%$ of the MultiSpanQA training dataset. This process leads to the determination that $\beta = 1$ empirically yield the best performance, hence it is selected for use in our experiments.
|
| 378 |
+
|
| 379 |
+
To select the learning rate $lr$ , we conduct a grid search, testing values from $\{1e - 5, 5e - 5, 1e - 4, 5e - 4, 1e - 3\}$ on $30\%$ of the MultiSpanQA training dataset. Empirically, the value $1e - 4$ demonstrates the best performance and is therefore chosen for our experiments. This selection is in agreement with the default $lr$ value used in Meta's official Llama 2 fine-tuning recipe<sup>1</sup>.
|
| 380 |
+
|
| 381 |
+
In the case of LoRA fine-tuning, we follow the established methodology as outlined by Hu et al (2021). This involves applying LoRA to Llama 2 and the pre-trained Alpaca models by freezing their pre-trained weights and integrating trainable rank decomposition matrices at every layer of their Transformer structures, aimed at reducing the number of trainable parameters to enhance computational efficiency. We implement this using the PEFT package<sup>2</sup>. The fine-tuning hyper-parameters for LoRA are set according to the default settings specified in Meta's official Llama 2 fine-tuning recipe<sup>3</sup>, which include a rank $r = 8$ , $\alpha = 32$ , and a dropout rate of 0.05.
|
| 382 |
+
|
| 383 |
+
# A.3 Full Experiment Results
|
| 384 |
+
|
| 385 |
+
In addition to the highlighted results presented in Section 4, we also compare the fine-tuned PLMs to their corresponding base PLMs in zero-shot settings. The results, presented in Table 13, show that fine-tuning with QASE improves performance across all datasets. Specifically, on the SQuAD dataset, models using QASE perform up to 5.6 times better in exact match and 3.0 times better in F1 score compared to the original models. On the MultiSpanQA dataset, the exact match improves by up to 124.4 times, and F1 score by up to 3.4 times. Similarly, on the Quoref dataset, the exact match improves by up to 38.4 times, and F1 score by up to 11.2 times with QASE.
|
| 386 |
+
|
| 387 |
+
# A.4 Instruction Templates and Model Prompts
|
| 388 |
+
|
| 389 |
+
Table 14 provides the instruction and prompt templates used for fine-tuning the PLMs and for zero-shot and few-shot querying of PLMs and GPT variants across both single- and multi-span answer datasets. In few-shot prompting scenarios, examples are randomly selected from the training set.
|
| 390 |
+
|
| 391 |
+
# A.5 Ablation Studies Details
|
| 392 |
+
|
| 393 |
+
Figure 3 depicts the architecture of the model we use for the ablation studies, with a baseline span extraction module. The baseline span extraction module omits the MHA component, typifying a standard architecture for fine-tuning pre-trained encoders for downstream sequence tagging tasks. It closely resembles the approach by Xu et al. (2021), with two key differences: (a) our baseline model integrates both query and context token embeddings to provide additional contextual information, and (b) instead of directly computing the extraction loss, our model includes additional projection and linear layers. The baseline-embedded Flan-T5-Large models are fine-tuned with the same configurations as Flan-T5-Large $_{QASE}$ including learning rate, weight decay, batch size, epoch number, and GPU type.
|
| 394 |
+
|
| 395 |
+
We experiment with 2 prompting strategies for ablation studies:
|
| 396 |
+
|
| 397 |
+
- Context-first prompting: The default prompting strategy we utilize for fine-tuning PLMs, both with and without QASE. In this setting, the prompt is ordered as "<instruction tokens><context tokens><question tokens)".
|
| 398 |
+
|
| 399 |
+

|
| 400 |
+
Figure 3: Baseline-embedded model architecture.
|
| 401 |
+
|
| 402 |
+
- Question-first prompting $(qf)$ : Following BERT's standard fine-tuning procedures. In this setting, the prompt is ordered as "<instruction tokens><question tokens><SEP><context tokens)". <SEP> is a special separator token.
|
| 403 |
+
|
| 404 |
+
# A.6 Qualitative Error Analysis
|
| 405 |
+
|
| 406 |
+
# Failure Sample 1
|
| 407 |
+
|
| 408 |
+
Context: On May 21, 2013, NFL owners at their spring meetings in Boston voted and awarded the game to Levi's Stadium. It is the first Super Bowl held in the San Francisco Bay Area since Super Bowl XIX in 1985, and the first in California since Super Bowl XXXVII took place in San Diego in 2003.
|
| 409 |
+
|
| 410 |
+
Question: Prior to Super Bowl 50, what was the last Super Bowl in California?
|
| 411 |
+
|
| 412 |
+
Gold Answer: Super Bowl XXXVII
|
| 413 |
+
|
| 414 |
+
<table><tr><td>Flan-T5-LargeQASE Generation</td><td>Super Bowl XIX</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>2010</td></tr></table>
|
| 415 |
+
|
| 416 |
+
# Failure Sample 2
|
| 417 |
+
|
| 418 |
+
Context: The Super Bowl 50 halftime show was headlined by the British rock group Coldplay with special guest performers Beyonce and Bruno Mars, who headlined the Super Bowl XLVII and Super Bowl XLVIII halftime shows, respectively.
|
| 419 |
+
|
| 420 |
+
Question: At which Super Bowl did Beyonce headline the halftime show?
|
| 421 |
+
|
| 422 |
+
Gold Answer: Super Bowl XLVII
|
| 423 |
+
|
| 424 |
+
<table><tr><td>Flan-T5-LargeQASE Generation</td><td>Super Bowl 50</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>Super Bowl 50</td></tr></table>
|
| 425 |
+
|
| 426 |
+
Table 15: Failure cases of Flan-T5-Large $_{QASE}$ in interpreting Roman numerals.
|
| 427 |
+
|
| 428 |
+
# Challenges in Roman Numeral Interpretation
|
| 429 |
+
|
| 430 |
+
We observe that a recurring error made by Flant5-LargeQASE is its inability to correctly interpret Roman numerals, as evidenced in Table 15. In Failure Sample 1, the model is asked about the last Super Bowl held in California before Super Bowl 50. The correct answer, "Super Bowl
|
| 431 |
+
|
| 432 |
+
<table><tr><td></td><td colspan="2">MultiSpanQA</td><td colspan="2">SQuAD</td><td colspan="2">Quoref</td></tr><tr><td></td><td>EM F1</td><td>Overlap F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>Llama2</td><td>7.354</td><td>34.031</td><td>13.443</td><td>28.931</td><td>5.02</td><td>28.91</td></tr><tr><td>Llama2FT</td><td>50.934</td><td>68.140</td><td>36.679</td><td>47.055</td><td>45.52</td><td>52.09</td></tr><tr><td>Llama2QASE</td><td>51.748</td><td>70.389</td><td>37.219</td><td>47.686</td><td>54.28</td><td>60.44</td></tr><tr><td>Alpaca</td><td>15.201</td><td>42.759</td><td>18.259</td><td>33.871</td><td>9.67</td><td>30.02</td></tr><tr><td>AlpacaFT</td><td>52.730</td><td>69.099</td><td>27.881</td><td>43.950</td><td>49.05</td><td>53.81</td></tr><tr><td>AlpacaQASE</td><td>52.196</td><td>70.008</td><td>37.313</td><td>47.622</td><td>55.01</td><td>59.94</td></tr><tr><td>Flan-T5-Small</td><td>0.475</td><td>22.539</td><td>13.878</td><td>28.710</td><td>1.58</td><td>5.96</td></tr><tr><td>Flan-T5-SmallFT</td><td>59.128</td><td>76.494</td><td>77.332</td><td>85.513</td><td>58.21</td><td>63.30</td></tr><tr><td>Flan-T5-SmallQASE</td><td>59.080</td><td>77.103</td><td>77.663</td><td>85.901</td><td>60.70</td><td>66.88</td></tr><tr><td>Flan-T5-Base</td><td>4.113</td><td>37.694</td><td>37.596</td><td>51.747</td><td>27.08</td><td>34.38</td></tr><tr><td>Flan-T5-BaseFT</td><td>64.659</td><td>81.408</td><td>82.090</td><td>89.558</td><td>72.77</td><td>80.90</td></tr><tr><td>Flan-T5-BaseQASE</td><td>64.874</td><td>81.498</td><td>82.204</td><td>90.240</td><td>75.17</td><td>81.18</td></tr><tr><td>Flan-T5-Large</td><td>13.907</td><td>51.501</td><td>16.149</td><td>37.691</td><td>15.96</td><td>24.10</td></tr><tr><td>Flan-T5-LargeFT</td><td>67.408</td><td>83.094</td><td>83.159</td><td>90.712</td><td>75.17</td><td>80.49</td></tr><tr><td>Flan-T5-LargeQASE</td><td>66.918</td><td>84.221</td><td>84.125</td><td>91.701</td><td>76.19</td><td>82.13</td></tr></table>
|
| 433 |
+
|
| 434 |
+
Table 13: Performance of zero-shot PLMs and fined-tuned PLMs with and without QASE.
|
| 435 |
+
|
| 436 |
+
<table><tr><td>Fine-tuning PLMs</td><td>Instruction: Using the provided context, answer the question with exact phrases and avoid explanations.
|
| 437 |
+
---
|
| 438 |
+
Context: {context}
|
| 439 |
+
---
|
| 440 |
+
Question: {question}
|
| 441 |
+
---
|
| 442 |
+
Answer:</td></tr><tr><td>Zero-shot prompting PLMs and GPT variants on single-span answer dataset, SQuAD</td><td>Instruction: Using the provided context, answer the question with exact phrases and avoid explanations. [Format the response as follows: ["answer1", "answer2", ...].]*
|
| 443 |
+
---
|
| 444 |
+
Context: {context}
|
| 445 |
+
---
|
| 446 |
+
Question: {question}
|
| 447 |
+
---
|
| 448 |
+
Answer:</td></tr><tr><td>Few-shot prompting PLMs and GPT variants</td><td>Instruction: Using the provided context, answer the question with exact phrases and avoid explanations. [Format the response as follows: ["answer1", "answer2", ...].]*
|
| 449 |
+
---
|
| 450 |
+
Example i
|
| 451 |
+
Context: {example context}
|
| 452 |
+
---
|
| 453 |
+
Question: {example question}
|
| 454 |
+
---
|
| 455 |
+
Answer: example answer
|
| 456 |
+
---
|
| 457 |
+
Context: {context}
|
| 458 |
+
---
|
| 459 |
+
Question: {question}
|
| 460 |
+
---
|
| 461 |
+
Answer:</td></tr></table>
|
| 462 |
+
|
| 463 |
+
Table 14: Templates for fine-tuning instructions and zero-shot and few-shot query prompts. *Text in square bracket is only added for multi-span answer datasets, MultiSpanQA and Quoref.
|
| 464 |
+
|
| 465 |
+
XXXVII," is clearly mentioned in the context, but Flan-T5-Large $_{QASE}$ incorrectly identifies "Super Bowl XIX." Similarly, in Failure Sample 2, the context states that Beyonce headlined Super Bowl XLVII, yet the model incorrectly identifies "Super Bowl 50" as the answer, despite the clear mention of Super Bowl XLVII in the question and context. These examples indicate that Flan-T5-Large $_{QASE}$ struggles with Roman numeral interpretation, leading to errors even when the information is explicitly provided in the text.
|
| 466 |
+
|
| 467 |
+
<table><tr><td colspan="2">Failure Sample 3
|
| 468 |
+
Context: Super Bowl 50 was an American football game to determine the champion of the National Football League (NFL) for the 2015 season. The game was played on February 7, 2016, at Levi's Stadium in the San Francisco Bay Area at Santa Clara, California. ...
|
| 469 |
+
Question: What city did Super Bowl 50 take place in?</td></tr><tr><td colspan="2">Gold Answer: Santa Clara</td></tr><tr><td>Flan-T5-LargeQASE Generation</td><td>Santa Clara, California</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>San Francisco Bay Area</td></tr><tr><td colspan="2"></td></tr><tr><td colspan="2">Failure Sample 4
|
| 470 |
+
Context: ITV Tyne Tees was based at City Road for over 40 years after its launch in January 1959. In 2005 it moved to a new facility on The Watermark business park next to the MetroCentre in Gateshead. The entrance to studio 5 at the City Road complex gave its name to the 1980s music television programme, The Tube. ...
|
| 471 |
+
Question: What gave its name to the 1980s music television program βThe Tubeβ?</td></tr><tr><td colspan="2">Gold Answer: The entrance to studio 5</td></tr><tr><td>Flan-T5-LargeQASE Generation</td><td>entrance to studio 5 at the City Road complex</td></tr><tr><td>Flan-T5-LargeFT Generation</td><td>studio 5</td></tr></table>
|
| 472 |
+
|
| 473 |
+
Table 16: Failure cases of Flan-T5-Large $_{QASE}$ in generating redundant phrases.
|
| 474 |
+
|
| 475 |
+
Minor Redundancies in Generation Another common error we observe is that Flan-T5-Large $_{QASE}$ tends to generate slightly redundant phrases, though the excess is minimal. We argue that the generated answers are still correct in the given contexts, and the only reason they are not marked as $100\%$ accurate is due to the dataset's annotation scheme. In Failure Sample 3, for instance, Flan-T5-Large $_{FT}$ produces a completely incorrect answer, while Flan-T5-Large $_{QASE}$ provides the correct answer, but with a minor additional word, "California," which does not detract from its correctness. Similarly, in Failure Sample 4, Flan-T5-Large $_{QASE}$ accurately identifies that the "entrance to studio 5" is the critical element, whereas Flan
|
| 476 |
+
|
| 477 |
+
T5-Large $_{FT}$ simplifies the answer to just "studio 5," missing the nuance. The inclusion of extra words in Flan-T5-Large $_{QASE}$ 's responses highlights the model's attention to detail, even though it results in slight deviations from the gold-standard annotations, as shown in Table 16.
|
| 478 |
+
|
| 479 |
+
Surface-Level Variations in Output Another pattern we observe involves minor variations in Flan-T5-Large $_{QASE}$ 's outputs, such as the omission or addition of non-essential words like "the" or punctuation marks, such as quotation marks. These deviations, while technically considered "mistakes" in the strict context of dataset annotations, do not alter the semantic accuracy of the model's responses. For example, if the model omits a definite article or does not replicate quotation marks around a phrase, the intended meaning of the answer remains intact. These variations are more reflective of surface-level discrepancies rather than true comprehension errors. One could argue that such differences should not penalize the model, as they fall within the bounds of acceptable linguistic flexibility. This raises an interesting discussion about how we evaluate model performance, particularly in cases where strict adherence to token-level matching might overlook the model's underlying comprehension. These "errors" suggest that Flan-T5-Large $_{QASE}$ generates answers with a focus on meaning rather than perfect alignment with rigid annotation structures, thus offering a more human-like adaptability in its output.
|
| 480 |
+
|
| 481 |
+
# B Extended Discussion on Model Performance
|
| 482 |
+
|
| 483 |
+
In this section, we engage in a detailed discussion on the performance of the Flan-T5 family of models and Llama 2 in MRC tasks. Our aim is to gain insights into the reasons behind the modest zero-shot performance of these large PLMs on MRC tasks, despite their adeptness at handling other complex NLP tasks such as dialogue generation and summarization. Although a comprehensive analysis falls outside the scope of our current study, exploring these performance nuances can provide valuable perspectives on how to potentially enhance the effectiveness of these PLMs on similar tasks.
|
| 484 |
+
|
| 485 |
+
# B.1 Discussion on Flan-T5 Zero-Shot Performance
|
| 486 |
+
|
| 487 |
+
We observe that the zero-shot performance of FlanT5 models across all datasets, including SQuAD, remains low as shown in Table 13, despite being instruct-tuned on the SQuAD dataset during the pre-training phase. This underperformance might stem from the fact that Flan-T5 models, although trained on the <SQuAD, Extractive QA> task, are also trained on a broad spectrum of 1,836 tasks, predominantly focusing on free-form generation, QA, and reasoning tasks (Chung et al., 2022). Consequently, these models are not finely optimized for extractive QA tasks like MRC, especially under metrics like exact match and F1, particularly for the smaller to larger variants under study. The larger XL and XXL variants may exhibit better performance in these tasks. Furthermore, as discussed in the previous sections, generative models, including Llama 2, Alpaca, and GPT variants, generally show limited effectiveness in MRC tasks in zero-shot settings, underscored by their poorer performance despite having significantly larger model parameters compared to the Flan-T5 variants we experiment with.
|
| 488 |
+
|
| 489 |
+
To ensure that our zero-shot experiment's prompts do not adversely affect Flan-T5's performance, we compare our prompt template, detailed in Table 14, with those Google released for FlanT5's instruct-tuning on the SQuAD v1 dataset<sup>4</sup>. Our template, similar to Google's, differs mainly by including "with exact phrases and avoid explanations." This difference could potentially affect performance, yet our subsequent experiments demonstrate otherwise.
|
| 490 |
+
|
| 491 |
+
We conduct a series of experiments to assess the zero-shot performance of Flan-T5-Large on SQuAD, using Google released templates for FlanT5 instruct-tuning. We select three templates of varying complexities, as listed in Table 17. Our results, detailed in Table 17, reveal that our template achieves the highest F1 score. This indicates the lower performance of zero-shot Flan-T5 on SQuAD and similar MRC datasets is expected, even with the original instruct-tuning templates. It supports our hypothesis that, although Flan-T5 is instruct-tuned on SQuAD, its primary strengths are in broader generative question answering and reasoning, rather than specific extractive QA tasks such as MRC, particularly when evaluated by exact
|
| 492 |
+
|
| 493 |
+
match and F1 metrics.
|
| 494 |
+
|
| 495 |
+
<table><tr><td rowspan="2">Prompt Template</td><td colspan="2">SQuAD Performance</td></tr><tr><td>EM</td><td>F1</td></tr><tr><td>Article: {context}
|
| 496 |
+
Question: {question}
|
| 497 |
+
Answer:</td><td>7.001</td><td>21.717</td></tr><tr><td>Answer a question
|
| 498 |
+
about this article.
|
| 499 |
+
Article: {context}
|
| 500 |
+
Question: {question}
|
| 501 |
+
Answer:</td><td>15.875</td><td>33.375</td></tr><tr><td>Here is a question
|
| 502 |
+
about this article:
|
| 503 |
+
Article: {context}
|
| 504 |
+
What is the answer
|
| 505 |
+
to this question:
|
| 506 |
+
Question: {question}
|
| 507 |
+
Answer:</td><td>16.764</td><td>35.304</td></tr><tr><td>Our Template
|
| 508 |
+
See Table 14</td><td>16.149</td><td>37.691</td></tr></table>
|
| 509 |
+
|
| 510 |
+
Table 17: Flan-T5-Large zero-shot performance on SQuAD with different prompt templates.
|
| 511 |
+
|
| 512 |
+
# B.2 Discussion on Llama 2 Performance
|
| 513 |
+
|
| 514 |
+
We observe that models based on Llama 2 and Alpaca generally underperform compared to those based on Flan-T5, in both zero-shot and fine-tuned scenarios, with or without QASE. This section delves into a detailed discussion of the potential reasons behind this trend.
|
| 515 |
+
|
| 516 |
+
Firstly, the discrepancy in performance may stem from the inherent structural differences between decoder-only models (Llama 2 and Alpaca) and encoder-decoder models (Flan-T5). Encoder-decoder models are better equipped for tasks that require extensive input processing, such as MRC, making them more apt for these tasks than decoder-only models, which are typically more suited to open-ended QA scenarios. This fundamental distinction partially accounts for Flan-T5's superior performance in context-based question answering across both zero-shot and fine-tuned settings.
|
| 517 |
+
|
| 518 |
+
Additionally, the difference in the number of trainable parameters during fine-tuning might contribute to the observed performance gap. Table 1 indicates that fine-tuning Llama 2 and Alpaca with LoRA leads to a significantly lower count of trainable parameters (4.2M) compared to even the smallest Flan-T5 model (77.0M). This disparity in trainable parameters is a crucial factor in explaining why fine-tuned Flan-T5 models, irrespective of the use of QASE, outperform Llama 2 and Alpaca models.
|
| 519 |
+
|
| 520 |
+
While we address these factors, conducting a
|
| 521 |
+
|
| 522 |
+
comprehensive comparison and analysis of different generative model architectures in MRC tasks exceeds the scope of our current study. Nonetheless, we acknowledge that additional factors, such as the specific instruct-fine-tuning of Flan-T5 models on MRC datasets like SQuAD, might also play a role in their enhanced performance over Llama 2 and Alpaca.
|
| 523 |
+
|
| 524 |
+
B.3 Discussion on Performance Discrepancy across Different Base PLMs and Datasets
|
| 525 |
+
|
| 526 |
+
<table><tr><td></td><td>Llama2</td><td>Alpaca</td><td>Flan-T5 Small</td><td>Flan-T5 Base</td><td>Flan-T5 Large</td></tr><tr><td colspan="6">ΞEM</td></tr><tr><td>SQuAD</td><td>1.47</td><td>33.82</td><td>0.43</td><td>0.13</td><td>1.17</td></tr><tr><td>MultiSpanQA</td><td>1.61</td><td>-1.01</td><td>-0.08</td><td>0.32</td><td>-0.73</td></tr><tr><td>Quoref</td><td>19.24</td><td>-</td><td>4.28</td><td>3.30</td><td>1.36</td></tr><tr><td colspan="6">ΞF1</td></tr><tr><td>SQuAD</td><td>1.34</td><td>8.35</td><td>0.46</td><td>0.76</td><td>1.09</td></tr><tr><td>MultiSpanQA</td><td>3.30</td><td>1.32</td><td>0.80</td><td>0.11</td><td>1.36</td></tr><tr><td>Quoref</td><td>16.03</td><td>-</td><td>5.66</td><td>0.35</td><td>2.04</td></tr></table>
|
| 527 |
+
|
| 528 |
+
Table 18: Performance improvement (in %) of finetuned PLMs with QASE on each dataset.
|
| 529 |
+
|
| 530 |
+
As shown in Table 18, we observe a significant performance improvement with QASE across different base PLMs and datasets. Specifically, dataset-wise, a larger improvement is noted on Quoref compared to other datasets. This is partially due to the relatively weaker baseline performance on Quoref. For example, a fine-tuned Flan-T5-Large model without QASE achieves an F1 score of $90.71\%$ on SQuAD, $83.09\%$ on MultiSpanQA, and $80.49\%$ on Quoref. Higher baseline scores indicate a strong initial performance, making further improvements more challenging and thus more meaningful. Despite the already high performance on the other two datasets, particularly SQuAD, the incorporation of QASE still results in noticeable improvements.
|
| 531 |
+
|
| 532 |
+
PLM-wise, we generally observe that the improvements on Llama 2 and Alpaca are more substantial than those on the Flan-T5 base models, with few exceptions on MultiSpanQA. This trend can be partially attributed to the higher baseline performance of Flan-T5 models on these datasets. We discuss in Sections 5, B.1, and B.2 that factors such as (1) differences in pre-training datasets, with Flan-T5 models being fine-tuned on MRC tasks like SQuAD, and (2) varied adaptation to tasks due to structural disparities, can contribute to this performance gap. Encoder-decoder models, such as Flan-T5, are better equipped for tasks requiring extensive input processing, like MRC, making them
|
| 533 |
+
|
| 534 |
+
more suitable for these tasks than decoder-only models, which are typically more suited to open-ended QA scenarios. This fundamental distinction partially accounts for Flan-T5's superior performance in context-based question answering across both zero-shot and fine-tuned settings. While acknowledging these factors, a comprehensive comparison of different generative model architectures in MRC tasks exceeds the scope of our study.
|
2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b05f934e53e15b501c6073dc0bcf1933d358f6658067c937192af71cb770047
|
| 3 |
+
size 994455
|
2024/Enhancing Pre-Trained Generative Language Models with Question Attended Span Extraction on Machine Reading Comprehension/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/652b218c-838d-4326-90a6-e3765a2e8500_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/652b218c-838d-4326-90a6-e3765a2e8500_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/652b218c-838d-4326-90a6-e3765a2e8500_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29e3402c3f903d3c09e7fc6f58473283abf4be26bea88128fcb320a5b096ac7c
|
| 3 |
+
size 967592
|
2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/full.md
ADDED
|
@@ -0,0 +1,623 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic
|
| 2 |
+
|
| 3 |
+
Meng Cao $^{1,3,\dagger,\ddagger}$ , Lei Shu $^{4}$ , Lei Yu $^{2}$ , Yun Zhu $^{4}$ , Nevan Wichers $^{4}$ , Yinxiao Liu $^{4}$ , Lei Meng $^{4,\ddagger}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ School of Computer Science, McGill University
|
| 6 |
+
|
| 7 |
+
$^{2}$ Department of Computer Science, University of Toronto
|
| 8 |
+
|
| 9 |
+
$^{3}$ Mila β QuΓ©bec AI Institute
|
| 10 |
+
|
| 11 |
+
4Google Deepmind
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Reinforcement learning (RL) can align language models with non-differentiable reward signals, such as human preferences. However, a major challenge arises from the sparsity of these reward signals - typically, there is only a single reward for an entire output. This sparsity of rewards can lead to inefficient and unstable learning. To address this challenge, our paper introduces an novel framework that utilizes the critique capability of Large Language Models (LLMs) to produce intermediate-step rewards during RL training. Our approach pairs a policy model with a critic language model that provides feedback on each part of the policy's output. This feedback is then translated into token or span-level rewards that can be used to guide the RL training process. We investigate this approach under two different settings: one where the policy model is smaller and is paired with a more powerful critic model, and another where a single language model fulfills both roles. We assess our approach on three text generation tasks: sentiment control, language model detoxification, and summarization. Experimental results show that incorporating artificial intrinsic rewards significantly improve both sample efficiency and the overall performance of the policy model, supported by both automatic and human evaluation. The code is available under Google Research github*.
|
| 16 |
+
|
| 17 |
+
# 1 Introduction
|
| 18 |
+
|
| 19 |
+
Large language models (LLMs) have seen a rapid advancement in recent years, demonstrating a remarkable ability to understand and generate natural language (Brown et al., 2020b; Touvron et al., 2023; OpenAI, 2023; Biderman et al., 2023; Jiang et al., 2023; Shu et al., 2023). In the meanwhile,
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Illustration of the proposed framework. There are two modules inside the agent. The critic LM takes the state and reward as input and generates dense intrinsic reward signals that evaluate different parts of the generation. The policy module is trained to optimize the weighted sum of intrinsic and extrinsic rewards.
|
| 23 |
+
|
| 24 |
+
reinforcement learning has emerged as a complementary tool for further refining the capabilities of LMs. RL allows for the optimization of LMs towards any non-differentiable reward signal. For example, techniques like reinforcement learning from human feedback (RLHF) (Ziegler et al., 2019; Stiennon et al., 2020) have been used to steer language models to better align with human preferences.
|
| 25 |
+
|
| 26 |
+
However, the reward signals received from the environment are usually sparse, a fundamental bottleneck that restricts the efficiency of learning (Andrychowicz et al., 2017; Sukhbaatar et al., 2018). Typically, in text generation tasks, a single scalar reward is obtained after a sentence or paragraph has been fully generated. This single reward signal introduces a temporal credit assignment problem, making it difficult for the model to learn which tokens were responsible for the received reward. Previous attempts to circumvent the sparsity of rewards in RL have included reward shaping (Ng et al., 1999; Devidze et al., 2022; Goyal et al., 2019), curiosity-driven exploration (Bellemare et al., 2016; Pathak et al., 2017; Ostro
|
| 27 |
+
|
| 28 |
+
vski et al., 2017), and hierarchical RL (Nachum et al., 2018; Zhang et al., 2021). However, these methods either require handcrafted features or do not translate straightforwardly into the domain of text generation. A direct solution is to refine the environment's holistic reward model with one that offers dense rewards. Lightman et al. (2023) and Wu et al. (2023) have explored employing human annotators to provide detailed feedback at each intermediate step of model's generation. These annotations can then be used to train a fine-grained reward model. However, this method incurs high costs, and the resulting reward models tend to be highly task-specific, limiting their applicability across different tasks.
|
| 29 |
+
|
| 30 |
+
In light of these limitations, we introduce RELC (Rewards from Language model Critique), an novel framework that leverages the critique capability of LLMs (Madaan et al., 2023; Saunders et al.; Luo et al., 2023) to provide artificial reward signals for intermediate steps during RL training. As illustrated in Figure 1, we explicitly define an RL agent as the integration of 1) a policy model responsible for output generation, and 2) a critic model that tasked with assessing the quality of the outputs produced by the policy model. The critic LM, informed by the question, the policy model's output, and the single reward signal provided by the environment, generates verbal evaluation of each segment of the policy model's output. These evaluations are then converted into reward signals. We label the rewards generated by the critic model as "intrinsic rewards" to differentiate them from the reward signals provided by the environment. The critic model can be seamlessly integrated into RL algorithms such as PPO (Schulman et al., 2017), requiring no or very little modification to the algorithms themselves.
|
| 31 |
+
|
| 32 |
+
Our evaluation of the proposed method is carried out in two distinct settings: one employs a smaller policy model (GPT-2 Large) coupled with a more advanced critic model (GPT-3.5), and the other, a more challenging "self-critique" setting, where a single model (Llama 2) fulfills both roles. We evaluate the effectiveness of our method through three text generation tasks: sentiment control, LM detoxification, and abstractive text summarization. The experimental results show that the use of LLM-generated intrinsic rewards significantly enhances sample efficiency across three tasks, with our approach outperforming established baseline methods
|
| 33 |
+
|
| 34 |
+
according to both automated and human evaluation. Despite the additional inference cost incurred by incorporating the critic model, our approach is shown to be more computationally efficient, achieving superior performance to the baseline within the same computational budget.
|
| 35 |
+
|
| 36 |
+
# 2 Related Work
|
| 37 |
+
|
| 38 |
+
RL for Text Generation. RL methods have been used in various text generation tasks including text summarization (Ryang and Abekawa, 2012; Pang and He, 2021; Dong et al., 2018; Cao et al., 2022a), machine translation (Norouzi et al., 2016; Ranzato et al., 2016; He et al., 2016; Bahdanau et al., 2017), dialogue systems (Li et al., 2016; Dhingra et al., 2017; Jaques et al., 2019; Cao et al., 2024) and question answering (Buck et al., 2018; Xiong et al., 2018; Nakano et al., 2021). Recent studies have focused on combining RL with pre-trained language models like GPT-3 (Brown et al., 2020a) to generate text (Ouyang et al., 2022; Bai et al., 2022; Nakano et al., 2021; Stiennon et al., 2020) are better aligned with human preference such as being factual, relevant and helpful.
|
| 39 |
+
|
| 40 |
+
Reward Shaping and Intrinsic Rewards. Ng et al. (1999) laid the groundwork for potential-based reward shaping in RL, demonstrating that such shaping can effectively reduce training time without changing the optimal policy. Bellemare et al. (2016); Gong and Wang (2020); Ostrovski et al. (2017); Tang et al. (2017) have employed pseudo-count-based rewards to encourage exploration in environments where rewards are sparse. Zheng et al. (2018) proposed a method where a parameterized intrinsic reward model is learned during training to generate dense reward signals. This approach, however, presents certain optimization difficulties due to the necessity of calculating second-order gradients. Wu et al. (2023); Lightman et al. (2023) employ human annotators to provide detailed span-level reward signals, demonstrating that these fine-grained rewards yield better performance compared to holistic rewards.
|
| 41 |
+
|
| 42 |
+
LLM for Reward Design. Lee et al. (2023) employed an off-the-shelf LLM to create preference labels by comparing pairs of candidate responses. These labels were then used to train a holistic reward model. Similarly, Kwon et al. (2023) investigated the use of GPT-3 as an alternative to the actual reward function in RL training. Their method
|
| 43 |
+
|
| 44 |
+
outperformed the reward model trained through supervised learning, yet it did not achieve the effectiveness of the true reward function. Klissarov et al. (2023) utilized LLMs to extract preferences between pairs of captions in the NetHack game (KΓΌttler et al., 2020), then using these preferences to train an additional reward function. Du et al. (2023); Klissarov et al. (2023) use LLMs to generate rewards signals to encourage exploration of a gaming or robotic agent. Ma et al. (2023) employed GPT-4 to generate the code for a reward function.
|
| 45 |
+
|
| 46 |
+
# 3 Method
|
| 47 |
+
|
| 48 |
+
The basic idea behind our method is to leverage a LLM to generate dense intrinsic reward signal $r^{\mathrm{in}}$ and provide it to an RL agent, which will optimize a combination of the intrinsic and extrinsic rewards. In this section, we first establish the Markov decision process (MDP) for text generation. Then, we discuss the policy gradient-based RL method widely used for text generation tasks. Finally, we detail the process of incorporating LLM-generated intrinsic rewards into RL training.
|
| 49 |
+
|
| 50 |
+
# 3.1 RL for Text Generation
|
| 51 |
+
|
| 52 |
+
Let us consider the language generation procedure as an MDP (Puterman, 1994), defined by the tuple $(S, \mathcal{A}, \mathcal{P}, \mathcal{R}, \gamma)$ . Here, $\mathcal{S}$ represents the set of all possible states, $\mathcal{A}$ is the set of actions, $\mathcal{P}: S \times \mathcal{A} \times S \mapsto [0,1]$ is the state transition function, $R: S \times \mathcal{A} \times S \mapsto \mathbb{R}$ is the reward function assigning a numerical value to each transition $(s, a, s')$ , and $\gamma \in [0,1]$ is the discount factor. In the context of text generation, we operate under the assumption of an episodic, discrete-actions, RL setting. The input prompt $s_0 \in S$ sets the starting state. At each decoding step $t$ , the state $s_t \in S$ consists of the prompt and the concatenation of the previously generated tokens. Choosing an action involves selecting a token from the vocabulary, leading to a new state $s_{t+1}$ , created by appending the selected token to the currently generated partial sentence. The agent's policy $\pi_\theta(a|s)$ , which is a language model parameterized by $\theta$ , determines the probability of selecting each action at a given state. The goal of the agent is to maximize the discounted cumulative reward throughout the trajectory: $J(\theta) = \mathbb{E}_{\tau \sim \pi_\theta}\left[\sum_{t=0}^{T} \gamma^t r_t\right]$ .
|
| 53 |
+
|
| 54 |
+
# 3.2 Policy Gradient based RL & PPO
|
| 55 |
+
|
| 56 |
+
Policy gradient methods, which are commonly applied in text generation, directly parameterize the policy model to optimize its parameters $\theta$ with the goal of maximizing $J(\theta)$ . The gradient $\nabla_{\theta}J(\theta)$ is proportional to the expectation of the product of the gradient of the log policy and the return $G_{t}$ (Sutton et al., 1999):
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\nabla_ {\theta} J (\theta) = \mathbb {E} _ {\pi_ {\theta}} \left[ \nabla_ {\theta} \log \pi_ {\theta} \left(a _ {t} \mid s _ {t}\right) G _ {t} \right] \tag {1}
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
where the return is defined as $G_{t} = \sum_{i = t}^{T}\gamma^{i - t}r_{i}$ . A high return leads to the reinforcement of all actions by increasing their selection probability. To reduce variance, a widely adopted strategy involves substituting the raw return $G_{t}$ in Equation 1 with a generalized advantage estimation function (Schulman et al., 2016):
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\hat {A} _ {t} = \sum_ {t ^ {\prime} = t} ^ {T} (\gamma \lambda) ^ {t ^ {\prime} - t} (r _ {t ^ {\prime}} + \gamma V (s _ {t ^ {\prime} + 1}) - V (s _ {t ^ {\prime}})))
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
where $\lambda$ is a hyper-parameter and $V(s_{t'})$ is the value function representing the expected return at state $s_{t'}$ . Several variants of the basic policy gradient approach have been proposed to improve training stability. One widely used variant, particularly in the context of text generation, is Proximal Policy Optimization (PPO) (Schulman et al., 2017). PPO introduces mechanisms to stabilize the training process by limiting the updates to the policy at each step, effectively preventing destructive large updates that can cause the policy to perform worse. In this work, we use the clipped surrogate objective function of PPO which is expressed as:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
L (\theta) = \hat {\mathbb {E}} _ {t} \Big [ \min (r _ {t} (\theta) \hat {A} _ {t}, \mathrm {c l i p} (r _ {t} (\theta), 1 - \epsilon , 1 + \epsilon) \hat {A} _ {t}) \Big ]
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where $r_t(\theta) = \frac{\pi_\theta(a_t|s_t)}{\pi_{\theta_{\mathrm{old}}}(a_t|s_t)}$ is the probability of taking action $a_t$ at state $s_t$ in the current policy divided by the previous one. It is important to highlight that our framework is flexible and compatible with various other reinforcement learning algorithms. Throughout the following sections, any mention of PPO specifically refers to its application involving only extrinsic rewards.
|
| 75 |
+
|
| 76 |
+
# 3.3 Learning with LLM Generated Intrinsic Rewards
|
| 77 |
+
|
| 78 |
+
The current RL frameworks for text generation, such as RLHF (Ziegler et al., 2019; Stiannon et al., 2020), the environment takes the entire generated
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
Figure 2: An example demonstrating the reward calculation process in the sentiment control task. In this example, the external environment returns a scalar reward of $-2$ in response to the policy model's output. Subsequently, the critic model is prompted to identify spans of positive and negative sentiment within the output. Tokens within these spans are then assigned intrinsic rewards: $+1$ for positive and $-1$ for negative sentiment. The hyper-parameter $\alpha$ determines the weight of these two types of rewards. The extrinsic reward is assigned to the last position in the output sequence.
|
| 82 |
+
|
| 83 |
+
text as input and returns a scalar score. Therefore, the learning typically depends on a sparse reward signal that becomes accessible only upon the generation of a complete sentence. We refer to this reward signal as the extrinsic reward $r^{ex}$ and we have $r_{t < T}^{ex} = 0$ . Our method deviates from the existing approaches by differentiating between the extrinsic reward from the environment and an additional intrinsic reward $r^{in}$ generated by LLM. As shown in Figure 1, within the agent, our framework incorporates an additional critic language model alongside the policy model. The task of the critic model is to pinpoint the tokens or segments in the policy's output that directly contribute to receiving the environment's reward. The critic model is fed with a task description $D$ , a set of few-shot examples $E$ , the current state $s$ as determined by the policy model's output, and optionally, the reward $r^{ex}$ received from the environment. For token at step $t$ , if it is part of the identified segment, we assign an non-zero value to the intrinsic reward $r_{t}^{in}$ . In our work, we assign a value of $+1$ for positive intrinsic rewards and $-1$ for negative intrinsic rewards, respectively. The final reward is defined as the weighted sum of extrinsic and intrinsic rewards: $r(s, a) = \alpha_1 r^{ex}(s, a) + \alpha_2 r^{in}(s, a)$ where $\alpha_1$ and $\alpha_2$ are hyper-parameters that controls the weight of the reward. Note that extrinsic rewards are only non-zero at the final time step, specifi
|
| 84 |
+
|
| 85 |
+
cally when $t = T$ . The policy LM is optimized to maximize the combined reward: $J(\theta)^{\mathrm{RELC}} = \mathbb{E}_{\tau \sim \pi_{\theta}}\left[\sum_{t = 0}^{T}\gamma^{t}(\alpha_{1}r^{\mathrm{ex}} + \alpha_{2}r^{\mathrm{in}})\right]$ where the policy model is parameterized by $\theta$ . The critic LM is frozen during training. Figure 2 illustrates the reward calculation process for sentiment control task.
|
| 86 |
+
|
| 87 |
+
LLM Choice and Prompt Design In this work, we employ two LLMs as critics: gpt-3.5-turbo-1106 and 7B Llama2 (Touvron et al., 2023). The input prompt is structured in three segments. First, we define the task within the prompt, outlining the types of correct responses or errors the critic model should identify. For instance, in the detoxification task, we clearly specify what constitutes toxic language. Next, we include a curated set of few-shot examples (3-shot unless otherwise specified). These examples are chosen meticulously to include a broad spectrum of exemplary responses and typical errors produced by the policy model. Finally, we give the critic model the current question, the output from the policy model, and, optionally, the extrinsic reward from the environment. This extrinsic reward is incorporated to better align the critic's evaluation with the desired outcomes. It's important to note that our primary goal is to optimize the agent towards extrinsic reward, as
|
| 88 |
+
|
| 89 |
+
these are the ultimate indicators of performance. Intrinsic rewards, on the other hand, are used only for providing immediate feedback and enhancing the learning process. As such, we want to ensure that the critic models' feedback and the extrinsic rewards are well aligned. The specifics of the prompt used are detailed in the Appendix.
|
| 90 |
+
|
| 91 |
+
# 4 Experiments
|
| 92 |
+
|
| 93 |
+
In this section, we demonstrate that our method outperforms the PPO baseline in three text generation tasks: sentiment control, LM detoxification, and text summarization.
|
| 94 |
+
|
| 95 |
+
# 4.1 Sentiment Control
|
| 96 |
+
|
| 97 |
+
In the sentiment control task, the objective is to guide the LM towards producing responses with a positive sentiment, starting from prompts that are neutral or negative.
|
| 98 |
+
|
| 99 |
+
# 4.1.1 Experimental Setup
|
| 100 |
+
|
| 101 |
+
We consider two settings: 1) a small policy LM (GPT-2 large) paired with a strong critic LM (gpt-3.5-turbo); 2) the policy model and critic model are the same, which we use Llama 2 (Touvron et al., 2023) as initialization. We access the gpt-3.5-turbo model through OpenAI's API. For training, we make use of the IMDB dataset that contains 25K movie reviews (Maas et al., 2011). We randomly extract the first 4 to 10 tokens from each review as the input prompt. The policy model is trained on the training set for one epoch. We set $\alpha_{1} = 1$ and $\alpha_{2} = 0.2$ . Following the experimental setup of (Liu et al., 2021; Lu et al., 2022), we use the OpenWebText (OWT) Corpus dataset (Gokaslan and Cohen, 2019) as our test set. Liu et al. (2021) curated three distinct test sets from OWT: neutral (5K prompts), positive (2.5K prompts), and negative (2.5K prompts). These sets were created based on the likelihood of the prompt leading to positive or negative continuations. For the reward model, we employ a distilled BERT classifier that is trained on the IMDB dataset. Details regarding the prompts, few-shot examples, and additional hyper-parameters can be found in Appendix A.
|
| 102 |
+
|
| 103 |
+
Baselines and evaluation metrics We compare our method with seven baseline methods including PPLM (Dathathri et al., 2020), CTRL (Keskar
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
(a) GPT-2 large as policy LM and GPT-3.5 as critic
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
(b) Self-critique using Llama 2 7B
|
| 110 |
+
Figure 3: Learning curves of the sentiment control experiment on the IMDB dataset. The x-axis is the number of training samples, while the y-axis shows the extrinsic reward, defined as the logit of the positive class returned by a distilled BERT sentiment classifier. The curves are smoothed using a moving average of 10 to improve readability.
|
| 111 |
+
|
| 112 |
+
et al., 2019), DAPT (Gururangan et al., 2020), GeDi (Krause et al., 2021), DEXPERTs (Liu et al., 2021), RECT (Cao et al., 2023), and PPO. For sentiment evaluation, we adopt the approach of Liu et al. (2021); Lu et al. (2022) and calculate the average percentage of positive/negative continuations from the 25 generated outputs using Hugging-Face's sentiment analysis classifier fine-tuned on SST-2. Moreover, we analyze fluency and diversity to measure how each method impacts the overall text quality. We use GPT-2 XL perplexity (PPL) as a proxy for fluency. For diversity, we calculate the normalized count of unique bigrams.
|
| 113 |
+
|
| 114 |
+
# 4.1.2 Results
|
| 115 |
+
|
| 116 |
+
Figure 3 presents the learning curves for both our method and baselines. From the figure, we can find that RELC has better sample efficiency compared to the baselines in both settings. Table 1 shows the evaluation results on the OWT Corpus test set. As shown in the table, our method outperforms all the baselines in terms of steering towards posi
|
| 117 |
+
|
| 118 |
+
<table><tr><td></td><td colspan="2">% Positive (β)</td><td rowspan="2">Fluency ppl. (β)</td><td rowspan="2">Dist. (β)</td></tr><tr><td></td><td>neg.</td><td>neu.</td></tr><tr><td>GPT2 (large)</td><td>0.00</td><td>50.02</td><td>11.31</td><td>0.85</td></tr><tr><td>PPLM</td><td>8.72</td><td>52.68</td><td>142.1</td><td>0.86</td></tr><tr><td>CTRL</td><td>18.88</td><td>61.81</td><td>43.79</td><td>0.83</td></tr><tr><td>GeDi</td><td>26.80</td><td>86.01</td><td>58.41</td><td>0.80</td></tr><tr><td>DEXPERTS</td><td>36.42</td><td>94.46</td><td>25.83</td><td>0.84</td></tr><tr><td>DAPT</td><td>14.17</td><td>77.24</td><td>30.52</td><td>0.83</td></tr><tr><td>PPO</td><td>43.13</td><td>94.10</td><td>15.16</td><td>0.80</td></tr><tr><td>QUARK</td><td>46.55</td><td>95.00</td><td>14.54</td><td>0.80</td></tr><tr><td>PPO (Ours)</td><td>54.06</td><td>93.63</td><td>13.98</td><td>0.78</td></tr><tr><td>RELC</td><td>59.06</td><td>95.63</td><td>13.79</td><td>0.80</td></tr></table>
|
| 119 |
+
|
| 120 |
+
Table 1: Automatic evaluation results of the sentiment control experiments. All models are based on GPT2-large. Baseline results are reported in Liu et al. (2021); Lu et al. (2022). Neg. column shows the evaluation results on $2.5\mathrm{K}$ negative prompts and Neu. shows the evaluation results on $5\mathrm{K}$ neutral prompts.
|
| 121 |
+
|
| 122 |
+
tive sentiment. Besides, compared to the baseline, our model has the least impact on the fluency of generated sentences.
|
| 123 |
+
|
| 124 |
+
# 4.2 LM Detoxification
|
| 125 |
+
|
| 126 |
+
In this experiment, we focus on the task of LM detoxification. We show that the integration of LLM-generated intrinsic rewards into RL training can improve both sample efficiency and the final detoxification performance.
|
| 127 |
+
|
| 128 |
+
# 4.2.1 Experimental Setup
|
| 129 |
+
|
| 130 |
+
In our detoxification experiments, we utilize the REALTOXICITYPROMPTS (RTP) benchmark (Gehman et al., 2020) for training and evaluation. RTP contains 100K human-written sentence prefixes (i.e., prompts) derived from English web texts. For toxicity evaluation, we utilize the Perspective API $\ddagger$ , a tool that is widely used in previous work for automatic toxicity evaluation. The API provides a score from 0 to 1, with 1 indicating high toxicity and 0 signifying non-toxic content. Following the experimental setup of previous work, we use 85K of these prompts as training set. Our evaluation is conducted on the 10K non-toxic test prompts used by Liu et al. (2021); Lu et al. (2022). We use $1 - \text{PERSPECTIVE}(y)$ as the reward signal. We set $\alpha_{1}$ to 1 and $\alpha_{2}$ to 0.5. More information about the prompts, few-shot examples, and hyper-parameters can be found in Appendix B.
|
| 131 |
+
|
| 132 |
+
Baselines and evaluation metrics. We conducted a comparative analysis of our method
|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
(a) GPT-2 large as policy LM and GPT-3.5 as critic
|
| 138 |
+
(b) Self-critique using Llama 2 7B
|
| 139 |
+
Figure 4: Plot shows the learning curves of the detoxification experiment on the RTP dataset, smoothed using a moving average of 10 to improve readability. X-axis shows the number of training samples (in thousands) and y-axis is the average of non-toxic probability (same as extrinsic reward) measured using Perspective API.
|
| 140 |
+
|
| 141 |
+
against seven baseline methods. Out of these, six are the same as those discussed in Section 4.1. Additionally, we add another baseline method RECT (Cao et al., 2023). We report two metrics: the average of maximum toxicity scores over 25 generations and the empirical probability of a toxic continuation appearing at least once over 25 generations.
|
| 142 |
+
|
| 143 |
+
# 4.2.2 Results
|
| 144 |
+
|
| 145 |
+
As shown in Figure 4, incorporating intrinsic rewards greatly improves sample efficiency. Another interesting find is that using only intrinsic rewards also outperforms extrinsic reward baseline. Table 2 shows the evaluation results on the test set. As shown in the table, our method significantly reduces the rate of toxic generations compared to all baseline methods. Moreover, our approach has a minimal effect on fluency, as measured by perplexity, while also maintaining a similar level of diversity. In Table 3, we compare our method with FineGrained RLHF (Wu et al., 2023) which queries the API using partial generated sentences to get fine
|
| 146 |
+
|
| 147 |
+
<table><tr><td></td><td colspan="2">Toxicity (β)</td><td>Fluency</td><td>Dist. (β)</td></tr><tr><td></td><td>avg.max.</td><td>%prob.</td><td>ppl. (β)</td><td></td></tr><tr><td>GPT2</td><td>0.527</td><td>52.0</td><td>11.31</td><td>0.85</td></tr><tr><td>PPLM</td><td>0.357</td><td>21.8</td><td>32.58</td><td>0.86</td></tr><tr><td>DAPT</td><td>0.258</td><td>9.0</td><td>31.21</td><td>0.84</td></tr><tr><td>GeDi</td><td>0.230</td><td>3.8</td><td>60.03</td><td>0.84</td></tr><tr><td>DEXPERTS</td><td>0.189</td><td>2.2</td><td>32.14</td><td>0.84</td></tr><tr><td>PPO</td><td>0.218</td><td>4.4</td><td>14.27</td><td>0.80</td></tr><tr><td>QUARK</td><td>0.154</td><td>1.0</td><td>12.47</td><td>0.80</td></tr><tr><td>PPO (Ours)</td><td>0.179</td><td>2.6</td><td>11.49</td><td>0.79</td></tr><tr><td>RELC</td><td>0.125</td><td>0.8</td><td>11.72</td><td>0.80</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Table 2: Detoxification evaluation results on 10K non-toxic prompts from the REALTOXICITYPROMPTs dataset, using the identical test set as referenced in Gehman et al. (2020); Liu et al. (2021). We use top- $p$ sampling with $p = 0.9$ to sample up to 20 tokens. We re-evaluated all the baselines using the updated Perspective API to ensure consistency in the results, as detailed in Pozzobon et al. (2023).
|
| 150 |
+
|
| 151 |
+
<table><tr><td></td><td>Toxicity (β) avg.max.</td><td>Fluency ppl. (β)</td><td>Dist. dist-3 (β)</td></tr><tr><td>F.G. RLHF</td><td>0.081</td><td>9.77</td><td>0.932</td></tr><tr><td>RELC</td><td>0.050</td><td>9.53</td><td>0.934</td></tr></table>
|
| 152 |
+
|
| 153 |
+
grained rewards. As shown in Table 3, our method outperforms Fine-Grained RLHF in terms of both detoxification performance and text quality. We also directly prompt Llama 2 with detoxification instructions and few-shot examples. As shown in Table 4, our method outperforms the prompting-based method.
|
| 154 |
+
|
| 155 |
+
# 4.3 Summarization
|
| 156 |
+
|
| 157 |
+
In this section, we demonstrate how our approach effectively improves the language model's ability to generate summaries that are better aligned with
|
| 158 |
+
|
| 159 |
+
Table 3: Comparison with Fine-Grained RLHF (Wu et al., 2023). In alignment with the experimental setting of Wu et al. (2023), we use nucleus sampling decoding with $p = 0.9$ and temperature $= 1.0$ . The generation length limit is set to 48.
|
| 160 |
+
|
| 161 |
+
<table><tr><td></td><td colspan="2">Toxicity (β)</td><td rowspan="2">Dist. (β)</td></tr><tr><td></td><td>avg.max.</td><td>%prob.</td></tr><tr><td>Llama 2 + 1-shot</td><td>0.409</td><td>30.9</td><td>0.77</td></tr><tr><td>+ 3-shot</td><td>0.426</td><td>32.5</td><td>0.78</td></tr><tr><td>PPO</td><td>0.276</td><td>12.53</td><td>0.82</td></tr><tr><td>RELC</td><td>0.176</td><td>3.68</td><td>0.82</td></tr></table>
|
| 162 |
+
|
| 163 |
+
Table 4: Llama2 evaluation results for the detoxification task. Prompt and few-shot examples used can be found at Appendix B.
|
| 164 |
+
|
| 165 |
+
<table><tr><td></td><td colspan="2">Rouge (β)</td><td rowspan="2">Pref. Score (β)</td></tr><tr><td></td><td>R-1</td><td>R-L</td></tr><tr><td>SFT</td><td>34.78</td><td>26.97</td><td>2.34</td></tr><tr><td>PPO</td><td>30.81</td><td>22.11</td><td>3.25</td></tr><tr><td>RELC</td><td>29.32</td><td>20.17</td><td>3.88</td></tr></table>
|
| 166 |
+
|
| 167 |
+
Table 5: Summarization task evaluation results on the Reddit TL;DR test set, with Pref. Score representing the preference score calculated using a GPT-J-6B model (Wang and Komatsuzaki, 2021) fine-tuned on a human preference dataset (Stiannon et al., 2020).
|
| 168 |
+
|
| 169 |
+
human preference.
|
| 170 |
+
|
| 171 |
+
# 4.3.1 Experimental Setup
|
| 172 |
+
|
| 173 |
+
We use the Reddit TL;DR dataset (VΓΆlske et al., 2017) for the summarization experiment. The dataset contains approximately 3 million posts gathered from reddit.com, spanning a wide range of topics. We employ the filter version of the original dataset as provided by Stiennon et al. (2020), which consists of around 116K training samples, 6K validation and test samples. We fine-tuned a GPT2-large model via supervised learning on the whole training set for 9,000 steps, using a batch size of 64. This model serves as the initialization for the policy model. For RL training, we fine-tuned the policy model on 30K training samples for one epoch. Following Stiennon et al. (2020), our reward model is a 6B language model fine-tuned on 92K human-annotated pairwise summary comparison dataset. The reward model achieves $75.94\%$ accuracy on the validation set. We set $\alpha_{1} = 1.0$ and $\alpha_{2} = 0.1$ . We use gpt-3.5-turbo for generating intrinsic rewards in a 3-shot setting. Details regarding the prompt, the few-shot examples, and the hyper-parameters applied in the summarization experiment are provided in Appendix C.
|
| 174 |
+
|
| 175 |
+
Baselines and evaluation metrics. We compare our method with two baseline methods: the supervised fine-tuning baseline (SFT) and the PPO baseline. For summary quality evaluation, we use both the ROUGE score and the preference score calculated using the reward model. It worth mentioning that ROUGE score is not often reliable and doesn't capture human preference. As shown in Stiennon et al. (2020), the preference score consistently outperforms the ROUGE score with a better agreement with the human annotators on summary quality.
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
(a) GPT-2 large as policy LM and GPT-3.5 as critic
|
| 181 |
+
(b) Llama 2 (7B) as the policy LM and the critic.
|
| 182 |
+
|
| 183 |
+
# 4.3.2 Results
|
| 184 |
+
|
| 185 |
+
Figure 5 shows the agent's performance evaluated on the TL;DR test set at every 100 training step. As evidenced in the figure, our method outperforms the PPO baseline in terms of both preference score and sample efficiency. Table 5 further substantiates these findings, showing that incorporating intrinsic rewards achieve significantly higher preference scores compared to the PPO baseline.
|
| 186 |
+
|
| 187 |
+
Human evaluation. We conducted a human evaluation on 200 randomly selected samples from TL;DR test set. We hired five IELTS certified raters to evaluate the quality of the generated summaries. To prepare for the actual annotation, a preliminary pilot study was carried out with an separate set of 20 samples. We focused on three key aspects of quality: coverage, coherence, and factuality. Each summary in the annotation set is evaluated by five annotators on each of the four category. The results, as illustrated in Figure 6, demonstrate that our method surpasses both the PPO and supervised learning baselines in all quality dimensions, with a notable advantage in factuality. Detailed annotation instructions are provided in the Appendix D.
|
| 188 |
+
|
| 189 |
+
To evaluate the consistency among annotators, we report Krippendorff's alpha, a widely used measure for annotator agreement evaluation involving multiple raters. As shown in Table 6, the Krippendorff's alpha scores across all evaluated categories indicate a substantial level of inter-annotator agreement, demonstrating the reliability and consistency
|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
Figure 6: Human evaluations of four axes of summary quality on the TL;DR dataset.
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
Figure 5: Summarization task evaluation result on the TL;DR test set. Evaluated at every 100 training steps.
|
| 196 |
+
Figure 7: Detoxification performance with random intrinsic rewards.
|
| 197 |
+
|
| 198 |
+
of the human evaluation process.
|
| 199 |
+
|
| 200 |
+
<table><tr><td>Coverage</td><td>Factuality</td><td>Coherence</td><td>Overall</td></tr><tr><td>0.693</td><td>0.740</td><td>0.646</td><td>0.678</td></tr></table>
|
| 201 |
+
|
| 202 |
+
Table 6: Krippendorff's alpha scores among five annotators for each quality category.
|
| 203 |
+
|
| 204 |
+
# 5 Analysis
|
| 205 |
+
|
| 206 |
+
# 5.1 Random Intrinsic Rewards
|
| 207 |
+
|
| 208 |
+
To gain a better understanding of the contribution of LLM-generated intrinsic reward to the agent, we conducted an ablation experiment where the intrinsic rewards were assigned to tokens on a random basis. We employed a moving average approach to approximate the proportion of tokens receiving intrinsic rewards from the real critic LM, denoted as $P_{t} = \alpha * \frac{\# \text{intrinsic reward tokens}}{\# \text{seq. tokens}} + (1 - \alpha) * P_{t-1}$ . Then, intrinsic rewards were randomly assigned to each token based on $P_{t}$ . All additional hyper-parameters remained consistent with those described in Section 4.2. The learning curve from this ablation study is presented in Figure 7. The results, as illustrated, indicate that the integration of random
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 8: Detoxification performance as a function of floating point operations (FLOPs). Figure is truncated on the x-axis.
|
| 212 |
+
|
| 213 |
+
intrinsic rewards does not improve the learning process. This finding supports the conclusion that the efficacy of our method is primarily attributed to the accurate credit assignment by the critic LLM.
|
| 214 |
+
|
| 215 |
+
# 5.2 Computation Efficiency
|
| 216 |
+
|
| 217 |
+
In Section 4, we demonstrate that our approach is more sample-efficient than the baselines. Given the additional computational overhead introduced by the critic LLM in our method, this analysis seeks to evaluate if our approach maintains its advantage over the baselines with an equivalent amount of computation. We report the number of floating-point operations (FLOPs) used in model training. This analysis is carried out in the context of a detoxification experiment using Llama 2. As illustrated in Figure 8, we plot the model's performance against the number of FLOPs, clearly showing that our method achieves better performance than the baseline under the same amount of computation.
|
| 218 |
+
|
| 219 |
+
# 6 Conclusion
|
| 220 |
+
|
| 221 |
+
In this work, we introduced a novel framework that incorporates a critic LM to generate dense intrinsic reward signals, addressing the issues of reward sparsity and credit assignment in RL fine-tuning. The critic model evaluates segments of the policy model's output, providing token- or span-level feedback that is converted into numeric rewards. These intrinsic rewards are then combined with extrinsic rewards in RL training. Evaluated on sentiment control, detoxification, and summarization tasks, our method not only significantly improve the sample efficiency of the PPO algorithm but also outperformed baseline methods using automatic and human evaluation. Furthermore, we demonstrate the effectiveness of the "self-critique" approach
|
| 222 |
+
|
| 223 |
+
across all three tasks, where the same model acts as both the policy and the critic.
|
| 224 |
+
|
| 225 |
+
# 7 Limitation
|
| 226 |
+
|
| 227 |
+
Our framework relies on the critic model to provide insightful feedback during training, making it essential that the critic model is well-suited to the task at hand. This requirement could limit the applicability of our method in extremely difficult tasks, where even state-of-the-art LLMs struggle to offer meaningful feedback on intermediate steps of generation. Additionally, in our research, we keep the critic model frozen during training. However, as the policy model improves, it becomes more challenging for the critic to evaluate its outputs effectively. To address this, fine-tuning the critic model to enhance its feedback capabilities would be beneficial, and we plan to explore this direction in future work.
|
| 228 |
+
|
| 229 |
+
# References
|
| 230 |
+
|
| 231 |
+
Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, OpenAI Pieter Abbeel, and Wojciech Zaremba. 2017. Hindsight experience replay. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.
|
| 232 |
+
Dzmitry Bahdanau, Philemon Brakel, Kelvin Xu, Anirudh Goyal, Ryan Lowe, Joelle Pineau, Aaron Courville, and Yoshua Bengio. 2017. An actor-critic algorithm for sequence prediction. In International Conference on Learning Representations.
|
| 233 |
+
Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. 2022. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862.
|
| 234 |
+
Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. 2016. Unifying count-based exploration and intrinsic motivation. In Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc.
|
| 235 |
+
Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O'Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, et al. 2023. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning, pages 2397-2430. PMLR.
|
| 236 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind
|
| 237 |
+
|
| 238 |
+
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 Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020a. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877-1901. Curran Associates, Inc.
|
| 239 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020b. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901.
|
| 240 |
+
Christian Buck, Jannis Bulian, Massimiliano Ciaramita, Wojciech Gajewski, Andrea Gesmundo, Neil Houlsby, and Wei Wang. 2018. Ask the right questions: Active question reformulation with reinforcement learning. In International Conference on Learning Representations.
|
| 241 |
+
Meng Cao, Yue Dong, and Jackie Cheung. 2022a. Hallucinated but factual! inspecting the factuality of hallucinations in abstractive summarization. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3340-3354, Dublin, Ireland. Association for Computational Linguistics.
|
| 242 |
+
Meng Cao, Yue Dong, Jingyi He, and Jackie Chi Kit Cheung. 2022b. Learning with rejection for abstractive text summarization. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 9768-9780, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 243 |
+
Meng Cao, Mehdi Fatemi, Jackie CK Cheung, and Samira Shabanian. 2023. Systematic rectification of language models via dead-end analysis. In *The Eleventh International Conference on Learning Representations*.
|
| 244 |
+
Meng Cao, Mehdi Fatemi, Jackie Ck Cheung, and Samira Shabanian. 2024. Successor features for efficient multi-subject controlled text generation. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 5567-5583. PMLR.
|
| 245 |
+
Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. 2020. Plug and play language models: A simple approach to controlled text generation. In International Conference on Learning Representations.
|
| 246 |
+
Rati Devidze, Parameswaran Kamalaruban, and Adish Singla. 2022. Exploration-guided reward shaping
|
| 247 |
+
|
| 248 |
+
for reinforcement learning under sparse rewards. In Advances in Neural Information Processing Systems.
|
| 249 |
+
Bhuwan Dhingra, Lihong Li, Xiujun Li, Jianfeng Gao, Yun-Nung Chen, Faisal Ahmed, and Li Deng. 2017. Towards end-to-end reinforcement learning of dialogue agents for information access. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 484-495, Vancouver, Canada. Association for Computational Linguistics.
|
| 250 |
+
Yue Dong, Yikang Shen, Eric Crawford, Herke van Hoof, and Jackie Chi Kit Cheung. 2018. Bandit: Sum: Extractive summarization as a contextual bandit. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3739-3748, Brussels, Belgium. Association for Computational Linguistics.
|
| 251 |
+
Yuqing Du, Olivia Watkins, Zihan Wang, Cedric Colas, Trevor Darrell, Pieter Abbeel, Abhishek Gupta, and Jacob Andreas. 2023. Guiding pretraining in reinforcement learning with large language models. arXiv preprint arXiv:2302.06692.
|
| 252 |
+
Samuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi, and Noah A. Smith. 2020. RealToxicityPrompts: Evaluating neural toxic degeneration in language models. In Findings of the Association for Computational Linguistics: EMNLP 2020, pages 3356-3369, Online. Association for Computational Linguistics.
|
| 253 |
+
Aaron Gokaslan and Vanya Cohen. 2019. Openwebtext corpus. http://Skylion007.github.io/OpenWebTextCorpus.
|
| 254 |
+
Hao Gong and Mengdi Wang. 2020. A duality approach for regret minimization in average-award ergodic markov decision processes. In Proceedings of the 2nd Conference on Learning for Dynamics and Control, volume 120 of Proceedings of Machine Learning Research, pages 862-883. PMLR.
|
| 255 |
+
Prasoon Goyal, Scott Niekum, and Raymond J Mooney. 2019. Using natural language for reward shaping in reinforcement learning. arXiv preprint arXiv:1903.02020.
|
| 256 |
+
Suchin Gururangan, Ana MarasoviΔ, Swabha Swayamdipta, Kyle Lo, Iz Beltagy, Doug Downey, and Noah A. Smith. 2020. Don't stop pretraining: Adapt language models to domains and tasks. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8342-8360, Online. Association for Computational Linguistics.
|
| 257 |
+
Di He, Yingce Xia, Tao Qin, Liwei Wang, Nenghai Yu, Tie-Yan Liu, and Wei-Ying Ma. 2016. Dual learning for machine translation. In Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc.
|
| 258 |
+
|
| 259 |
+
Natasha Jaques, Asma Ghandeharioun, Judy Hanwen Shen, Craig Ferguson, Γ
gata Lapedriza, Noah Jones, Shixiang Gu, and Rosalind W. Picard. 2019. Way off-policy batch deep reinforcement learning of implicit human preferences in dialog. CoRR, abs/1907.00456.
|
| 260 |
+
Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7b. arXiv preprint arXiv:2310.06825.
|
| 261 |
+
Nitish Shirish Keskar, Bryan McCann, Lav R Varshney, Caiming Xiong, and Richard Socher. 2019. Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858.
|
| 262 |
+
Martin Klissarov, Pierluca D'Oro, Shagun Sodhani, Roberta Raileanu, Pierre-Luc Bacon, Pascal Vincent, Amy Zhang, and Mikael Henaff. 2023. Motif: Intrinsic motivation from artificial intelligence feedback. arXiv preprint arXiv:2310.00166.
|
| 263 |
+
Ben Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar, Shafiq Joty, Richard Socher, and Nazneen Fatema Rajani. 2021. GeDi: Generative discriminator guided sequence generation. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 4929-4952, Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 264 |
+
Heinrich Kuttler, Nantas Nardelli, Alexander Miller, Roberta Raileanu, Marco Selvatici, Edward Grefenstette, and Tim RocktΓ€schel. 2020. The nethack learning environment. In Advances in Neural Information Processing Systems, volume 33, pages 7671-7684. Curran Associates, Inc.
|
| 265 |
+
Minae Kwon, Sang Michael Xie, Kalesha Bullard, and Dorsa Sadigh. 2023. Reward design with language models. In *The Eleventh International Conference on Learning Representations*.
|
| 266 |
+
Harrison Lee, Samrat Phatale, Hassan Mansoor, Kellie Lu, Thomas Mesnard, Colton Bishop, Victor Carbune, and Abhinav Rastogi. 2023. Rlaif: Scaling reinforcement learning from human feedback with ai feedback. arXiv preprint arXiv:2309.00267.
|
| 267 |
+
Jiwei Li, Will Monroe, Alan Ritter, Dan Jurafsky, Michel Galley, and Jianfeng Gao. 2016. Deep reinforcement learning for dialogue generation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 1192-1202, Austin, Texas. Association for Computational Linguistics.
|
| 268 |
+
Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2023. Let's verify step by step. arXiv preprint arXiv:2305.20050.
|
| 269 |
+
|
| 270 |
+
Alisa Liu, Maarten Sap, Ximing Lu, Swabha Swayamdipta, Chandra Bhagavatula, Noah A. Smith, and Yejin Choi. 2021. DExperts: Decoding-time controlled text generation with experts and anti-experts. 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 6691-6706, Online. Association for Computational Linguistics.
|
| 271 |
+
Ximing Lu, Sean Welleck, Jack Hessel, Liwei Jiang, Lianhui Qin, Peter West, Prithviraj Ammanabrolu, and Yejin Choi. 2022. QUARK: Controllable text generation with reinforced unlearning. In Advances in Neural Information Processing Systems.
|
| 272 |
+
Liangchen Luo, Zi Lin, Yinxiao Liu, Lei Shu, Yun Zhu, Jingbo Shang, and Lei Meng. 2023. Critique ability of large language models. arXiv preprint arXiv:2310.04815.
|
| 273 |
+
Yecheng Jason Ma, William Liang, Guanzhi Wang, DeAn Huang, Osbert Bastani, Dinesh Jayaraman, Yuke Zhu, Linxi Fan, and Anima Anandkumar. 2023. Eureka: Human-level reward design via coding large language models. arXiv preprint arXiv: Arxiv2310.12931.
|
| 274 |
+
Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. 2011. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 142-150, Portland, Oregon, USA. Association for Computational Linguistics.
|
| 275 |
+
Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. 2023. Self-refine: Iterative refinement with self-feedback. arXiv preprint arXiv:2303.17651.
|
| 276 |
+
Ofir Nachum, Shixiang (Shane) Gu, Honglak Lee, and Sergey Levine. 2018. Data-efficient hierarchical reinforcement learning. In Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc.
|
| 277 |
+
Reiichiro Nakano, Jacob Hilton, S. Arun 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. ArXiv, abs/2112.09332.
|
| 278 |
+
Andrew Y Ng, Daishi Harada, and Stuart Russell. 1999. Policy invariance under reward transformations: Theory and application to reward shaping. In Icml, volume 99, pages 278-287. Citeseer.
|
| 279 |
+
|
| 280 |
+
Mohammad Norouzi, Samy Bengio, zhifeng Chen, Navdeep Jaitly, Mike Schuster, Yonghui Wu, and Dale Schuurmans. 2016. Reward augmented maximum likelihood for neural structured prediction. In Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc.
|
| 281 |
+
OpenAI. 2023. Gpt-4 technical report. ArXiv, abs/2303.08774.
|
| 282 |
+
Georg Ostrovski, Marc G. Bellemare, AΓ€ron van den Oord, and RΓ©mi Munos. 2017. Count-based exploration with neural density models. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 2721-2730. PMLR.
|
| 283 |
+
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730-27744.
|
| 284 |
+
Richard Yuanzhe Pang and He He. 2021. Text generation by learning from demonstrations. In International Conference on Learning Representations.
|
| 285 |
+
Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. 2017. Curiosity-driven exploration by self-supervised prediction. In International conference on machine learning, pages 2778-2787. PMLR.
|
| 286 |
+
Luiza Pozzobon, Beyza Ermis, Patrick Lewis, and Sara Hooker. 2023. On the challenges of using black-box APIs for toxicity evaluation in research. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 7595-7609, Singapore. Association for Computational Linguistics.
|
| 287 |
+
Martin L. Puterman. 1994. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons.
|
| 288 |
+
Marc'Aurelio Ranzato, Sumit Chopra, Michael Auli, and Wojciech Zaremba. 2016. Sequence level training with recurrent neural networks. In 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings.
|
| 289 |
+
Seonggi Ryang and Takeshi Abekawa. 2012. Framework of automatic text summarization using reinforcement learning. In Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 256-265, Jeju Island, Korea. Association for Computational Linguistics.
|
| 290 |
+
William Saunders, Catherine Yeh, Jeff Wu, Steven Bills, Long Ouyang, Jonathan Ward, and Jan Leike. Self-critiquing models for assisting human evaluators, 2022. URL https://arxiv.org/abs/2206.05802.
|
| 291 |
+
|
| 292 |
+
John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. 2016. High-dimensional continuous control using generalized advantage estimation. In Proceedings of the International Conference on Learning Representations (ICLR).
|
| 293 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347.
|
| 294 |
+
Lei Shu, Liangchen Luo, Jayakumar Hoskere, Yun Zhu, Canoee Liu, Simon Tong, Jindong Chen, and Lei Meng. 2023. Rewritelm: An instruction-tuned large language model for text rewriting. arXiv preprint arXiv:2305.15685.
|
| 295 |
+
Nisan Stiannon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. 2020. Learning to summarize with human feedback. In Advances in Neural Information Processing Systems, volume 33, pages 3008-3021. Curran Associates, Inc.
|
| 296 |
+
Sainbayar Sukhbaatar, Zeming Lin, Ilya Kostrikov, Gabriel Synnaeve, Arthur Szlam, and Rob Fergus. 2018. Intrinsic motivation and automatic curricula via asymmetric self-play. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net.
|
| 297 |
+
Richard S Sutton, David McAllester, Satinder Singh, and Yishay Mansour. 1999. Policy gradient methods for reinforcement learning with function approximation. In Advances in Neural Information Processing Systems, volume 12. MIT Press.
|
| 298 |
+
Haoran Tang, Rein Houthooft, Davis Foote, Adam Stooke, OpenAI Xi Chen, Yan Duan, John Schulman, Filip DeTurck, and Pieter Abbeel. 2017. #exploration: A study of count-based exploration for deep reinforcement learning. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.
|
| 299 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models, 2023. URL https://arxiv.org/abs/2307.09288.
|
| 300 |
+
Michael Volske, Martin Potthast, Shahbaz Syed, and Benno Stein. 2017. TL;DR: Mining Reddit to learn automatic summarization. In Proceedings of the Workshop on New Frontiers in Summarization, pages 59-63, Copenhagen, Denmark. Association for Computational Linguistics.
|
| 301 |
+
Ben Wang and Aran Komatsuzaki. 2021. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax.
|
| 302 |
+
|
| 303 |
+
Zeqiu Wu, Yushi Hu, Weijia Shi, Nouha Dziri, Alane Suhr, Prithviraj Ammanabrolu, Noah A Smith, Mari Ostendorf, and Hannaneh Hajishirzi. 2023. Fine-grained human feedback gives better rewards for language model training. arXiv preprint arXiv:2306.01693.
|
| 304 |
+
Caiming Xiong, Victor Zhong, and Richard Socher. 2018. DCN+: Mixed objective and deep residual coattention for question answering. In International Conference on Learning Representations.
|
| 305 |
+
Jesse Zhang, Haonan Yu, and Wei Xu. 2021. Hierarchical reinforcement learning by discovering intrinsic options. In International Conference on Learning Representations.
|
| 306 |
+
Zeyu Zheng, Junhyuk Oh, and Satinder Singh. 2018. On learning intrinsic rewards for policy gradient methods. In Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc.
|
| 307 |
+
Daniel M. Ziegler, Nisan Stiennon, Jeffrey Wu, Tom B. Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. 2019. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593.
|
| 308 |
+
|
| 309 |
+
A Sentiment Control
|
| 310 |
+
|
| 311 |
+
<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>base model</td><td>GPT2-large</td></tr><tr><td>learning rate</td><td>1.41e-5</td></tr><tr><td>batch size</td><td>16</td></tr><tr><td>mini batch size</td><td>16</td></tr><tr><td>target kl</td><td>6.0</td></tr><tr><td>PPO epochs</td><td>4</td></tr><tr><td>PPO clip range</td><td>0.2</td></tr><tr><td>PPO clip value</td><td>0.2</td></tr><tr><td>kl coefficient</td><td>0.1</td></tr><tr><td>value loss coeff</td><td>0.1</td></tr><tr><td>num. frozen layers</td><td>30</td></tr><tr><td>min new tokens</td><td>15</td></tr><tr><td>max new tokens</td><td>20</td></tr><tr><td>discount factor Ξ³</td><td>1.0</td></tr><tr><td>Ξ±1, Ξ±2</td><td>1.0, 0.2</td></tr></table>
|
| 312 |
+
|
| 313 |
+
# B LM Detoxification
|
| 314 |
+
|
| 315 |
+
In our detoxification experiments, we utilize the REALTOXICITYPROMPTS (RTP) benchmark (Gehman et al., 2020) for training and evaluation. Following the experimental setup of Liu et al. (2021), we employ 85K of these prompts for training. Our evaluation is conducted on the 10K nontoxic test prompts as provided by Liu et al. (2021). Throughout the training phase, prompts with a toxicity probability below 0.5 were excluded to reduce training time. We employed the inverse of the toxicity score from the Perspective API as our reward signal. A score of 1 signifies non-toxicity, while a score of 0 indicates toxicity. For intrinsic reward generation, we use the gpt-3.5-turbo model through OpenAI's API.
|
| 316 |
+
|
| 317 |
+
# C Text Summarization
|
| 318 |
+
|
| 319 |
+
Hyper-parameters used for the summarization experiment can be found in Tabel 9. Instead of using preference score as reward signal, we also conduct another experiment where ROUGE-1 score is used as reward signal (Dong et al., 2018).
|
| 320 |
+
|
| 321 |
+
Figure 9 shows the learning curve of the summarization experiment when ROUGE-1 score is used as reward signals. As shown in the figure, incorporating intrinsic rewards did not yield significant improvements in learning efficiency when
|
| 322 |
+
|
| 323 |
+
Table 7: Hyper-parameters for the sentiment control experiment.
|
| 324 |
+
|
| 325 |
+
<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>base model</td><td>GPT2-large</td></tr><tr><td>learning rate</td><td>1.41e-5</td></tr><tr><td>batch size</td><td>16</td></tr><tr><td>mini batch size</td><td>8</td></tr><tr><td>target kl</td><td>6.0</td></tr><tr><td>PPO epochs</td><td>4</td></tr><tr><td>PPO clip range</td><td>0.2</td></tr><tr><td>PPO clip value</td><td>0.2</td></tr><tr><td>kl coefficient</td><td>0.02</td></tr><tr><td>num. frozen layers</td><td>24</td></tr><tr><td>min new tokens</td><td>30</td></tr><tr><td>max new tokens</td><td>50</td></tr><tr><td>discount factor Ξ³</td><td>1.0</td></tr><tr><td>Ξ±1, Ξ±2</td><td>1.0, 0.2</td></tr></table>
|
| 326 |
+
|
| 327 |
+
Table 8: Hyper-parameters for the detoxification experiment.
|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
Figure 9: Learning curves of the summarization experiment and its ablations, smoothed using a moving average of 10 to improve readability. The extrinsic reward signals are ROUGE-1 scores.
|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
Figure 10: Learning curves of the summarization experiment, smoothed using a moving average of 10 to improve readability.
|
| 334 |
+
|
| 335 |
+
evaluated using the ROUGE-1 score. Additionally, we evaluate the model's performance every 100 training steps on the TL;DR test set using ROUGE
|
| 336 |
+
|
| 337 |
+
Indentify Positive/Negative Sentiment
|
| 338 |
+
|
| 339 |
+
Imagine you're a human annotator. Your task is to review a sentence and pinpoint
|
| 340 |
+
|
| 341 |
+
$\hookrightarrow$ words or phrases that contribute to a positive or negative sentiment. If the
|
| 342 |
+
$\hookrightarrow$ sentence has a neutral sentiment with no discernible positive or negative
|
| 343 |
+
elements, simply report "None identified".
|
| 344 |
+
|
| 345 |
+
Here are the detailed annotation steps:
|
| 346 |
+
|
| 347 |
+
1. Read the Sentence Carefully: Thoroughly read the sentence to grasp its overall
|
| 348 |
+
$\hookrightarrow$ sentiment.
|
| 349 |
+
2. Spot Sentiment-Driven Words/Phrases: Seek words or phrases that convey positive
|
| 350 |
+
$\hookrightarrow$ or negative emotions. For instance, words indicating disapproval, criticism, or
|
| 351 |
+
$\hookrightarrow$ displeasure signify negative sentiments.
|
| 352 |
+
3. Highlight the Most Concise Span: When you find words contributing to the
|
| 353 |
+
$\hookrightarrow$ sentiment, aim to highlight the briefest combination of words that fully convey
|
| 354 |
+
$\hookrightarrow$ the sentiment. The goal is to capture the essence with minimal span.
|
| 355 |
+
4. Avoid Over-Identification: Be mindful not to mark words that are neutral and do
|
| 356 |
+
$\hookrightarrow$ not contribute to any sentiment.
|
| 357 |
+
5. Neutral Sentences: If you conclude that the sentence expresses a neutral
|
| 358 |
+
$\hookrightarrow$ sentiment, indicate it with "None identified".
|
| 359 |
+
|
| 360 |
+
Examples:
|
| 361 |
+
|
| 362 |
+
Example 1
|
| 363 |
+
|
| 364 |
+
Sentence to be Labeled:
|
| 365 |
+
|
| 366 |
+
I didn't enjoy the book because the story was quite boring.
|
| 367 |
+
|
| 368 |
+
Identified Positive Text Span:
|
| 369 |
+
|
| 370 |
+
None identified
|
| 371 |
+
|
| 372 |
+
Identified Negative Text Span:
|
| 373 |
+
|
| 374 |
+
[Span 1]: didn't enjoy
|
| 375 |
+
|
| 376 |
+
[Span 2]: quite boring
|
| 377 |
+
|
| 378 |
+
Example 2
|
| 379 |
+
|
| 380 |
+
Sentence to be Labeled:
|
| 381 |
+
|
| 382 |
+
Mystery Men is one of the worst horror films that I've ever seen. It attempts to be
|
| 383 |
+
|
| 384 |
+
$\hookrightarrow$ a satire of the problems confronting
|
| 385 |
+
|
| 386 |
+
Identified Positive Text Span:
|
| 387 |
+
|
| 388 |
+
None identified
|
| 389 |
+
|
| 390 |
+
Identified Negative Text Span:
|
| 391 |
+
|
| 392 |
+
[Span 1]: the worst
|
| 393 |
+
|
| 394 |
+
Example 3
|
| 395 |
+
|
| 396 |
+
Sentence to be Labeled:
|
| 397 |
+
|
| 398 |
+
This is one of those movies you really need to appreciate to the very end. The film
|
| 399 |
+
|
| 400 |
+
$\hookrightarrow$ is based on a true story
|
| 401 |
+
|
| 402 |
+
Identified Positive Text Span:
|
| 403 |
+
|
| 404 |
+
[Span 1]: really need to appreciate
|
| 405 |
+
|
| 406 |
+
Identified Negative Text Span:
|
| 407 |
+
|
| 408 |
+
None identified
|
| 409 |
+
|
| 410 |
+
Follow the instructions and the example(s) above
|
| 411 |
+
|
| 412 |
+
Sentence to be Labeled:
|
| 413 |
+
|
| 414 |
+
1
|
| 415 |
+
|
| 416 |
+
Identified Positive Text Span:
|
| 417 |
+
|
| 418 |
+
Listing 1: Feedback generation prompt used for the sentiment control task.
|
| 419 |
+
|
| 420 |
+
Indentify Toxic Content in Sentences
|
| 421 |
+
|
| 422 |
+
Imagine you're a human annotator. In the task ahead, you'll be given a sentence, and your job is to identify any spans of words that display toxic language.
|
| 423 |
+
|
| 424 |
+
Definition of Toxic Language:
|
| 425 |
+
|
| 426 |
+
Toxic language refers to any form of communication that expresses strong negative
|
| 427 |
+
|
| 428 |
+
$\hookrightarrow$ sentiments, such as hate, prejudice, discrimination, threats, or derogatory
|
| 429 |
+
$\hookrightarrow$ comments. These sentiments often target individuals or groups based on their race
|
| 430 |
+
$\hookrightarrow$ οΌgenderοΌethnicityοΌnationalityοΌreligionοΌsexual orientationοΌor any other
|
| 431 |
+
$\hookrightarrow$ identifying characteristics. Toxic language can also include aggressive swearing,
|
| 432 |
+
$\hookrightarrow$ calls for harm or violence, and personal attacks. It's essential to note that
|
| 433 |
+
$\hookrightarrow$ toxicity is not always overt; subtle forms of bias or prejudice can also be
|
| 434 |
+
$\hookrightarrow$ considered toxic.
|
| 435 |
+
|
| 436 |
+
Here are the detailed annotation steps:
|
| 437 |
+
|
| 438 |
+
1. Read the entire sentence thoroughly.
|
| 439 |
+
2. Look for words, phrases, or sections of the sentence that display signs of toxic
|
| 440 |
+
$\hookrightarrow$ language.
|
| 441 |
+
3. Mark the beginning and end of the toxic span. If there are multiple toxic spans, $\hookrightarrow$ mark each one separately.
|
| 442 |
+
4. Instead of labeling the entire sentence, aim to identify the shortest span
|
| 443 |
+
$\hookrightarrow$ possible.
|
| 444 |
+
5. If no toxic span identified, specify "None identified".
|
| 445 |
+
|
| 446 |
+
Examples:
|
| 447 |
+
|
| 448 |
+
Example 1
|
| 449 |
+
|
| 450 |
+
Sentence to be Labeled:
|
| 451 |
+
|
| 452 |
+
I don't know why women even bother with physics; they're just not cut out for it.
|
| 453 |
+
|
| 454 |
+
Toxic Spans Identified in the Sentence:
|
| 455 |
+
|
| 456 |
+
[Toxic Span 1]: even bother with
|
| 457 |
+
|
| 458 |
+
[Toxic Span 2]: just not cut out for it.
|
| 459 |
+
|
| 460 |
+
Example 2
|
| 461 |
+
|
| 462 |
+
Sentence to be Labeled:
|
| 463 |
+
|
| 464 |
+
Generally, reward shaping in RL is a challenging issue. No single method works for
|
| 465 |
+
|
| 466 |
+
$\hookrightarrow$ every situation.
|
| 467 |
+
|
| 468 |
+
Toxic Spans Identified in the Sentence:
|
| 469 |
+
|
| 470 |
+
None identified
|
| 471 |
+
|
| 472 |
+
Example 3
|
| 473 |
+
|
| 474 |
+
Sentence to be Labeled:
|
| 475 |
+
|
| 476 |
+
The cabbie then drives away yelling: "I'm going to kill you!"
|
| 477 |
+
|
| 478 |
+
Toxic Spans Identified in the Sentence:
|
| 479 |
+
|
| 480 |
+
[Span 1]: yelling
|
| 481 |
+
|
| 482 |
+
[Span 2]: kill you!
|
| 483 |
+
|
| 484 |
+
Follow the instructions and the example(s) above
|
| 485 |
+
|
| 486 |
+
Sentence to be Labeled:
|
| 487 |
+
|
| 488 |
+
1
|
| 489 |
+
|
| 490 |
+
Toxic Spans Identified in the Sentence:
|
| 491 |
+
|
| 492 |
+
Listing 2: 3-shot prompt used for the detoxification task.
|
| 493 |
+
|
| 494 |
+
```markdown
|
| 495 |
+
You are a helpful, respectful and honest assistant. Always answer as helpfully as $\leftrightarrow$ possible, while being safe. Your answers should not include any harmful,
|
| 496 |
+
$\leftrightarrow$ unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure
|
| 497 |
+
$\leftrightarrow$ that your responses are socially unbiased and positive in nature..
|
| 498 |
+
Toxic language refers to any form of communication that expresses strong negative
|
| 499 |
+
$\leftrightarrow$ sentiments, such as hate, prejudice, discrimination, threats, or derogatory
|
| 500 |
+
$\leftrightarrow$ comments. These sentiments often target individuals or groups based on their race
|
| 501 |
+
$\leftrightarrow$ , gender, ethnicity, nationality, religion, sexual orientation, or any other
|
| 502 |
+
$\leftrightarrow$ identifying characteristics. Toxic language can also include aggressive swearing,
|
| 503 |
+
$\leftrightarrow$ calls for harm or violence, and personal attacks. It's essential to note that
|
| 504 |
+
$\leftrightarrow$ toxicity is not always overt; subtle forms of bias or prejudice can also be
|
| 505 |
+
$\leftrightarrow$ considered toxic.
|
| 506 |
+
Now, please continue the following sentence with around 20 words, ensuring it's free
|
| 507 |
+
$\leftrightarrow$ from any toxic content.
|
| 508 |
+
Examples:
|
| 509 |
+
##### Example 1 ###
|
| 510 |
+
[Sentence]: I swear to Christ, if they try to make me
|
| 511 |
+
[Continuation]: into a morning person, I'll start setting alarms for 2 PM.
|
| 512 |
+
##### Example 2 ###
|
| 513 |
+
[Sentence]: "You know, you're going to have to shut up or I'm going
|
| 514 |
+
[Continuation]: to start believing all those compliments you're throwing my way."
|
| 515 |
+
##### Example 3 ###
|
| 516 |
+
[Sentence]: And the woman responds: "You look like
|
| 517 |
+
[Continuation]: who's seen a fair share of adventures, with stories etched into
|
| 518 |
+
$\leftrightarrow$ every line of your face."
|
| 519 |
+
##### Example 4 ###
|
| 520 |
+
[Sentence]: {}
|
| 521 |
+
[Continuation]:
|
| 522 |
+
```
|
| 523 |
+
|
| 524 |
+
Listing 3: Prompt and few-shot examples used for Llama 2 detoxification.
|
| 525 |
+
|
| 526 |
+
<table><tr><td>##### Indentify Flaws in Machine-Generated Summaries #####</td></tr><tr><td>Imagine you are a human annotator. You will be given a source document, a machine
|
| 527 |
+
β generated summary and score. This score represents the overlap between the
|
| 528 |
+
β machine-generated summary and a reference summary written by a human, which you
|
| 529 |
+
β cannot see. Your task is to identify spans (segments of text) in the machine-
|
| 530 |
+
β generated summary that contain flaws, making them unlikely to match the reference
|
| 531 |
+
β summary.</td></tr><tr><td>Here are the detailed annotation steps:</td></tr><tr><td>1. Familiarize with the Source: Begin by reading the original document in its
|
| 532 |
+
β entirety to fully grasp its content.</td></tr><tr><td>2. Examine the Summary: Thoroughly go through the machine-generated summary.</td></tr><tr><td>3. Indentify Flaws:
|
| 533 |
+
a. Begin with the first sentence of the machine-generated summary.
|
| 534 |
+
b. As you proceed, cross-reference each segment with your understanding from the
|
| 535 |
+
β original document.
|
| 536 |
+
c. Using the summary score as a guide, mark segments that appear flawed,
|
| 537 |
+
β misplaced, incoherent, or factually off. Remember, the higher the score is,
|
| 538 |
+
β the less segments you should mark.</td></tr><tr><td>4. Annotate Identified Issues: Next to each highlighted segment, jot down a concise
|
| 539 |
+
β description of the flaw. Use labels like "Factly Incorrect", "Irrelevant", "
|
| 540 |
+
β Incoherent" or other short descriptions.</td></tr><tr><td>5. Be Precise: Rather than marking entire sentences, strive to pinpoint the most
|
| 541 |
+
β concise and shortest problematic segment possible.</td></tr><tr><td>6. Indicate High-quality Summaries: If you don't find any issues, simply note "None
|
| 542 |
+
β identified".</td></tr><tr><td>Examples:</td></tr><tr><td>##### Example 1 #########</td></tr><tr><td>Source Document:</td></tr><tr><td>SUBREDDIT: r/college TITLE: People who transferred between universities (not CC to
|
| 543 |
+
β university) one or more times, why did you decide to switch and - in retrospect -
|
| 544 |
+
β how do you feel about your decision? POST: First, I have no desire to transfer,
|
| 545 |
+
β so you needn't talk me into or out of anything. That being said, I *always* see
|
| 546 |
+
β people on this sub asking for advice about transferring, as a first or second
|
| 547 |
+
β year, from [X University] to [University of Y] because they're "not happy" or it'
|
| 548 |
+
β s "not what they expected". My opinion - based purely on second-hand, anecdotal
|
| 549 |
+
β evidence - is that in some cases it might be that these students simply weren't
|
| 550 |
+
β adjusting to *college* in general, rather than specific problems with the school
|
| 551 |
+
β itself. I have known people who decided to switch schools, only to realize that
|
| 552 |
+
β the second school was *even worse* and want to transfer somewhere else, perhaps
|
| 553 |
+
β even back to the first one they attended. Since I've seen people on this sub post
|
| 554 |
+
β about similar things, I thought this might be a good place to ask. So, /r/
|
| 555 |
+
β college, I'm very curious to hear your stories. I welcome the idea that I'm
|
| 556 |
+
β totally wrong and/or misunderstanding why people decide to switch universities,
|
| 557 |
+
β so please educate me if this is the case!</td></tr><tr><td>Summary to be Labeled:</td></tr><tr><td>People switched universities and decided to change, why did you decide to switch?</td></tr><tr><td>Summary Score: 0.4/10</td></tr><tr><td>Problematic Spans Identified in the Summary:</td></tr><tr><td>[Span 1]: and decided to change (Label: Irrelevant)</td></tr><tr><td>[Span 2]: why did you decide to switch? (Label: Irrelevant)</td></tr><tr><td>##### Follow the instructions and the example(s) above #####</td></tr><tr><td>Source Document:</td></tr><tr><td>}</td></tr><tr><td>Summary to be Labeled:</td></tr><tr><td>}</td></tr><tr><td>Summary Score: {}/10</td></tr><tr><td>Problematic Spans Identified in the Summary:</td></tr></table>
|
| 558 |
+
|
| 559 |
+
Listing 4: Prompt used for the summarization task. We use 3-shot setting in the experiment, only one example is displayed here for conciseness. We scale the preference score to a range of 1-10 to enhance the critic model's comprehension of the summary's quality.
|
| 560 |
+
|
| 561 |
+
<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>base model</td><td>GPT2-large</td></tr><tr><td>learning rate</td><td>1.41e-5</td></tr><tr><td>batch size</td><td>16</td></tr><tr><td>mini batch size</td><td>8</td></tr><tr><td>target kl</td><td>6.0</td></tr><tr><td>PPO epochs</td><td>4</td></tr><tr><td>PPO clip range</td><td>0.2</td></tr><tr><td>PPO clip value</td><td>0.2</td></tr><tr><td>kl coefficient</td><td>0.02</td></tr><tr><td>num. frozen layers</td><td>24</td></tr><tr><td>min new tokens</td><td>30</td></tr><tr><td>max new tokens</td><td>50</td></tr><tr><td>discount factor Ξ³</td><td>1.0</td></tr><tr><td>Ξ±1, Ξ±2</td><td>1.0, 0.2</td></tr></table>
|
| 562 |
+
|
| 563 |
+
Table 9: Hyper-parameters for the summarization experiment.
|
| 564 |
+
|
| 565 |
+

|
| 566 |
+
Figure 11: Evaluation results on the RL;DR test set after every 100 steps of training. Preference scores are calculated using a 6B GPT-J model fine-tuned on 92k human annotated summary comparison dataset.
|
| 567 |
+
|
| 568 |
+
score and preference score. In Figure 11, we observe that with equivalent training samples and computational resources, our method enables the model to learn considerably faster when evaluated using the preference model. This outcome suggests that intrinsic rewards exhibit a stronger alignment with human preferences compared to the ROUGE score, which we consider a less reliable metric due to its limited correlation with important properties of summary like factuality (Stiennon et al., 2020; Cao et al., 2022b). Table 5 further substantiates these findings, indicating that summaries incorporating intrinsic rewards achieve significantly higher
|
| 569 |
+
|
| 570 |
+
preference scores compared to the PPO baseline.
|
| 571 |
+
|
| 572 |
+
# D Human Evaluation
|
| 573 |
+
|
| 574 |
+
We employed five annotators certified in IELTS to assess the quality of the generated summaries. Each annotator receives compensation that exceeds the local minimum wage.
|
| 575 |
+
|
| 576 |
+
# D.1 Annotation Guideline
|
| 577 |
+
|
| 578 |
+
The purpose of these guidelines is to ensure a standardized and accurate evaluation of model-generated summaries based on three primary metrics: content preservation, factuality, and coherence.
|
| 579 |
+
|
| 580 |
+
# General Instructions
|
| 581 |
+
|
| 582 |
+
1. Read both the original text and the model-generated summary thoroughly.
|
| 583 |
+
2. Evaluate the summary independently for each of the three metrics.
|
| 584 |
+
3. Use the scale provided for each metric to rate the summary.
|
| 585 |
+
4. Provide brief comments to justify your ratings, especially for extreme scores.
|
| 586 |
+
|
| 587 |
+
# Definition of the three metrics
|
| 588 |
+
|
| 589 |
+
Content Preservation: Assess how well the summary captures the essential information, themes, and nuances of the original text.
|
| 590 |
+
|
| 591 |
+
- 5: Excellent - All key points are included, and nothing significant is omitted.
|
| 592 |
+
- 4: Good - Most key points are included, with minor omissions.
|
| 593 |
+
- 3: Fair - Some key points are included, but notable information is missing.
|
| 594 |
+
- 2: Poor - Many key points are missing; the summary captures only a few aspects of the original text.
|
| 595 |
+
1: Very Poor - The summary fails to capture the core ideas of the original text.
|
| 596 |
+
|
| 597 |
+
Factuality: Evaluate the accuracy of the information in the summary relative to the original text.
|
| 598 |
+
|
| 599 |
+
- 5: Completely Accurate - All information in the summary accurately reflects the original text.
|
| 600 |
+
|
| 601 |
+
- 4: Mostly Accurate - Minor inaccuracies, but they do not change the overall understanding.
|
| 602 |
+
- 3: Somewhat Accurate - Some inaccuracies or misinterpretations that affect understanding.
|
| 603 |
+
- 2: Mostly Inaccurate - Frequent inaccuracies, leading to a distorted understanding of the original text.
|
| 604 |
+
1: Completely Inaccurate - The summary contains major factual errors.
|
| 605 |
+
|
| 606 |
+
Coherence: Assess the logical flow, readability, and structure of the summary. The summary is coherent if, when read by itself (without checking against the reference), it's easy to understand, nonambiguous, and logically coherent.
|
| 607 |
+
|
| 608 |
+
- 5: Highly Coherent - The summary is well-structured, logical, and easy to follow.
|
| 609 |
+
- 4: Coherent - Good structure and flow, with minor lapses in clarity.
|
| 610 |
+
- 3: Moderately Coherent - Some disorganization or lack of clarity, but the main message is discernible.
|
| 611 |
+
2: Poorly Coherent - Difficult to follow, with significant structural or logical flaws.
|
| 612 |
+
1: Incoherent - The summary is disjointed and lacks any logical flow.
|
| 613 |
+
|
| 614 |
+
# Final Steps
|
| 615 |
+
|
| 616 |
+
After rating each metric, provide a brief overall assessment of the summary.
|
| 617 |
+
|
| 618 |
+
- 5: Excellent - The summary is exceptional in all aspects. It perfectly preserves the content from the source, maintains complete factual accuracy, and exhibits flawless coherence and fluency.
|
| 619 |
+
- 4: Good - The summary is of high quality with only minor issues. It accurately preserves most of the original content and facts, with slight deviations that don't significantly impact the overall understanding.
|
| 620 |
+
- 3: Mediocre - The summary is average, doing an adequate job of conveying the main points but with noticeable issues.
|
| 621 |
+
|
| 622 |
+
- 2: Poor - The summary has significant shortcomings. It provides a substandard representation of the source material.
|
| 623 |
+
- 1: Very Poor - The summary is severely lacking in quality. It fails to preserve the essential content, contains numerous factual inaccuracies, and is largely incoherent and non-fluent.
|
2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec87eeb1fe2ef96113b3e1dad78dacaf63a68b2db0063ae91c600e2d3f3d0e46
|
| 3 |
+
size 1018614
|
2024/Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Enhancing Systematic Decompositional Natural Language Inference Using Informal Logic/3cfa5ccb-a424-45b8-a317-8d17b00e07fb_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|