Add Batch 6deaede3-f475-4605-b942-23cce4e9976c data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/8b1ff79e-86f8-41a0-b232-69890219b3c0_content_list.json +0 -0
- 2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/8b1ff79e-86f8-41a0-b232-69890219b3c0_model.json +0 -0
- 2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/8b1ff79e-86f8-41a0-b232-69890219b3c0_origin.pdf +3 -0
- 2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/full.md +407 -0
- 2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/images.zip +3 -0
- 2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/layout.json +0 -0
- 2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/d96254f1-428d-46b8-a6d6-93195d523d44_content_list.json +1368 -0
- 2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/d96254f1-428d-46b8-a6d6-93195d523d44_model.json +1652 -0
- 2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/d96254f1-428d-46b8-a6d6-93195d523d44_origin.pdf +3 -0
- 2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/full.md +236 -0
- 2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/images.zip +3 -0
- 2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/layout.json +0 -0
- 2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/760982cd-198b-4b18-bf81-2220eb7cee90_content_list.json +0 -0
- 2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/760982cd-198b-4b18-bf81-2220eb7cee90_model.json +0 -0
- 2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/760982cd-198b-4b18-bf81-2220eb7cee90_origin.pdf +3 -0
- 2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/full.md +467 -0
- 2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/images.zip +3 -0
- 2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/layout.json +0 -0
- 2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/2a27a382-8887-432f-9ceb-8755944db9bd_content_list.json +0 -0
- 2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/2a27a382-8887-432f-9ceb-8755944db9bd_model.json +0 -0
- 2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/2a27a382-8887-432f-9ceb-8755944db9bd_origin.pdf +3 -0
- 2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/full.md +573 -0
- 2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/images.zip +3 -0
- 2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/layout.json +0 -0
- 2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/beafff83-c9df-49bb-b9ec-7ceed8a9cd94_content_list.json +0 -0
- 2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/beafff83-c9df-49bb-b9ec-7ceed8a9cd94_model.json +0 -0
- 2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/beafff83-c9df-49bb-b9ec-7ceed8a9cd94_origin.pdf +3 -0
- 2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/full.md +808 -0
- 2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/images.zip +3 -0
- 2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/layout.json +0 -0
- 2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/9c6b6800-9da6-4040-92e8-0aab3c4bf7f8_content_list.json +0 -0
- 2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/9c6b6800-9da6-4040-92e8-0aab3c4bf7f8_model.json +0 -0
- 2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/9c6b6800-9da6-4040-92e8-0aab3c4bf7f8_origin.pdf +3 -0
- 2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/full.md +482 -0
- 2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/images.zip +3 -0
- 2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/layout.json +0 -0
- 2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/fc2d1e06-8d86-4d7d-9ced-4589565dfec7_content_list.json +1634 -0
- 2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/fc2d1e06-8d86-4d7d-9ced-4589565dfec7_model.json +1984 -0
- 2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/fc2d1e06-8d86-4d7d-9ced-4589565dfec7_origin.pdf +3 -0
- 2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/full.md +281 -0
- 2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/images.zip +3 -0
- 2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/layout.json +0 -0
- 2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/c8dbec2f-8ae8-4d52-9d1b-2529ec7e7ec7_content_list.json +0 -0
- 2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/c8dbec2f-8ae8-4d52-9d1b-2529ec7e7ec7_model.json +0 -0
- 2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/c8dbec2f-8ae8-4d52-9d1b-2529ec7e7ec7_origin.pdf +3 -0
- 2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/full.md +500 -0
- 2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/images.zip +3 -0
- 2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/layout.json +0 -0
- 2023/Bi-Drop_ Enhancing Fine-tuning Generalization via Synchronous sub-net Estimation and Optimization/fc79fd27-d381-42b1-96b3-f41ef565aa43_content_list.json +2013 -0
.gitattributes
CHANGED
|
@@ -5657,3 +5657,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 5657 |
2023/Battle[[:space:]]of[[:space:]]the[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]Dolly[[:space:]]vs[[:space:]]LLaMA[[:space:]]vs[[:space:]]Vicuna[[:space:]]vs[[:space:]]Guanaco[[:space:]]vs[[:space:]]Bard[[:space:]]vs[[:space:]]ChatGPT[[:space:]]-[[:space:]]A[[:space:]]Text-to-SQL[[:space:]]Parsing[[:space:]]Comparison/db1abdf3-8a77-49fd-974a-4c80de40f0d9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5658 |
2023/Bayesian[[:space:]]Multi-Task[[:space:]]Transfer[[:space:]]Learning[[:space:]]for[[:space:]]Soft[[:space:]]Prompt[[:space:]]Tuning/5b563047-3cef-415a-9610-649881c42524_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5659 |
2023/Beneath[[:space:]]Surface[[:space:]]Similarity_[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]Make[[:space:]]Reasonable[[:space:]]Scientific[[:space:]]Analogies[[:space:]]after[[:space:]]Structure[[:space:]]Abduction/168e18e6-5c6d-4515-bf10-d937840db913_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5657 |
2023/Battle[[:space:]]of[[:space:]]the[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]Dolly[[:space:]]vs[[:space:]]LLaMA[[:space:]]vs[[:space:]]Vicuna[[:space:]]vs[[:space:]]Guanaco[[:space:]]vs[[:space:]]Bard[[:space:]]vs[[:space:]]ChatGPT[[:space:]]-[[:space:]]A[[:space:]]Text-to-SQL[[:space:]]Parsing[[:space:]]Comparison/db1abdf3-8a77-49fd-974a-4c80de40f0d9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5658 |
2023/Bayesian[[:space:]]Multi-Task[[:space:]]Transfer[[:space:]]Learning[[:space:]]for[[:space:]]Soft[[:space:]]Prompt[[:space:]]Tuning/5b563047-3cef-415a-9610-649881c42524_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5659 |
2023/Beneath[[:space:]]Surface[[:space:]]Similarity_[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]Make[[:space:]]Reasonable[[:space:]]Scientific[[:space:]]Analogies[[:space:]]after[[:space:]]Structure[[:space:]]Abduction/168e18e6-5c6d-4515-bf10-d937840db913_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5660 |
+
2023/Beneath[[:space:]]the[[:space:]]Surface_[[:space:]]Unveiling[[:space:]]Harmful[[:space:]]Memes[[:space:]]with[[:space:]]Multimodal[[:space:]]Reasoning[[:space:]]Distilled[[:space:]]from[[:space:]]Large[[:space:]]Language[[:space:]]Models/8b1ff79e-86f8-41a0-b232-69890219b3c0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5661 |
+
2023/Better[[:space:]]Together_[[:space:]]Enhancing[[:space:]]Generative[[:space:]]Knowledge[[:space:]]Graph[[:space:]]Completion[[:space:]]with[[:space:]]Language[[:space:]]Models[[:space:]]and[[:space:]]Neighborhood[[:space:]]Information/d96254f1-428d-46b8-a6d6-93195d523d44_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5662 |
+
2023/Beyond[[:space:]]Candidates[[:space:]]_[[:space:]]Adaptive[[:space:]]Dialogue[[:space:]]Agent[[:space:]]Utilizing[[:space:]]Persona[[:space:]]and[[:space:]]Knowledge/760982cd-198b-4b18-bf81-2220eb7cee90_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5663 |
+
2023/Beyond[[:space:]]Denouncing[[:space:]]Hate_[[:space:]]Strategies[[:space:]]for[[:space:]]Countering[[:space:]]Implied[[:space:]]Biases[[:space:]]and[[:space:]]Stereotypes[[:space:]]in[[:space:]]Language/2a27a382-8887-432f-9ceb-8755944db9bd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5664 |
+
2023/Beyond[[:space:]]Good[[:space:]]Intentions_[[:space:]]Reporting[[:space:]]the[[:space:]]Research[[:space:]]Landscape[[:space:]]of[[:space:]]NLP[[:space:]]for[[:space:]]Social[[:space:]]Good/beafff83-c9df-49bb-b9ec-7ceed8a9cd94_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5665 |
+
2023/Beyond[[:space:]]Labels_[[:space:]]Empowering[[:space:]]Human[[:space:]]Annotators[[:space:]]with[[:space:]]Natural[[:space:]]Language[[:space:]]Explanations[[:space:]]through[[:space:]]a[[:space:]]Novel[[:space:]]Active-Learning[[:space:]]Architecture/9c6b6800-9da6-4040-92e8-0aab3c4bf7f8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5666 |
+
2023/Beyond[[:space:]]Layout[[:space:]]Embedding_[[:space:]]Layout[[:space:]]Attention[[:space:]]with[[:space:]]Gaussian[[:space:]]Biases[[:space:]]for[[:space:]]Structured[[:space:]]Document[[:space:]]Understanding/fc2d1e06-8d86-4d7d-9ced-4589565dfec7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5667 |
+
2023/Beyond[[:space:]]Testers’[[:space:]]Biases_[[:space:]]Guiding[[:space:]]Model[[:space:]]Testing[[:space:]]with[[:space:]]Knowledge[[:space:]]Bases[[:space:]]using[[:space:]]LLMs/c8dbec2f-8ae8-4d52-9d1b-2529ec7e7ec7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5668 |
+
2023/Bi-Drop_[[:space:]]Enhancing[[:space:]]Fine-tuning[[:space:]]Generalization[[:space:]]via[[:space:]]Synchronous[[:space:]]sub-net[[:space:]]Estimation[[:space:]]and[[:space:]]Optimization/fc79fd27-d381-42b1-96b3-f41ef565aa43_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5669 |
+
2023/BiSPN_[[:space:]]Generating[[:space:]]Entity[[:space:]]Set[[:space:]]and[[:space:]]Relation[[:space:]]Set[[:space:]]Coherently[[:space:]]in[[:space:]]One[[:space:]]Pass/a862ee15-a0a6-4d7a-bd48-ef570da0796c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5670 |
+
2023/Bidirectional[[:space:]]Masked[[:space:]]Self-attention[[:space:]]and[[:space:]]N-gram[[:space:]]Span[[:space:]]Attention[[:space:]]for[[:space:]]Constituency[[:space:]]Parsing/f5e31a3a-d826-442c-98e8-45640c99dd82_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5671 |
+
2023/BioDEX_[[:space:]]Large-Scale[[:space:]]Biomedical[[:space:]]Adverse[[:space:]]Drug[[:space:]]Event[[:space:]]Extraction[[:space:]]for[[:space:]]Real-World[[:space:]]Pharmacovigilance/f41b8812-c41f-48fd-857f-ab406caa3fd1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5672 |
+
2023/Bipartite[[:space:]]Graph[[:space:]]Pre-training[[:space:]]for[[:space:]]Unsupervised[[:space:]]Extractive[[:space:]]Summarization[[:space:]]with[[:space:]]Graph[[:space:]]Convolutional[[:space:]]Auto-Encoders/daa5ee5a-7c98-4f88-8f84-752b6f1149b7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5673 |
+
2023/Black-Box[[:space:]]Tuning[[:space:]]of[[:space:]]Vision-Language[[:space:]]Models[[:space:]]with[[:space:]]Effective[[:space:]]Gradient[[:space:]]Approximation/6fb348dc-2dc9-431b-97b3-40c27709220e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5674 |
+
2023/Blackbird[[:space:]]language[[:space:]]matrices[[:space:]](BLM),[[:space:]]a[[:space:]]new[[:space:]]task[[:space:]]for[[:space:]]rule-like[[:space:]]generalization[[:space:]]in[[:space:]]neural[[:space:]]networks_[[:space:]]Can[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]pass[[:space:]]the[[:space:]]test_/b1c7d238-6457-4ee0-8362-e6b724473e6a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5675 |
+
2023/Boosting[[:space:]]Inference[[:space:]]Efficiency_[[:space:]]Unleashing[[:space:]]the[[:space:]]Power[[:space:]]of[[:space:]]Parameter-Shared[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Models/f09ed2a9-36ac-4d14-ac8d-f1ead191fa09_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5676 |
+
2023/Boosting[[:space:]]Prompt-Based[[:space:]]Self-Training[[:space:]]With[[:space:]]Mapping-Free[[:space:]]Automatic[[:space:]]Verbalizer[[:space:]]for[[:space:]]Multi-Class[[:space:]]Classification/50e686cb-33ef-4605-9198-cf817ea71134_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5677 |
+
2023/Boot[[:space:]]and[[:space:]]Switch_[[:space:]]Alternating[[:space:]]Distillation[[:space:]]for[[:space:]]Zero-Shot[[:space:]]Dense[[:space:]]Retrieval/13f82f25-b7e4-4964-851a-89236aec3336_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5678 |
+
2023/BotPercent_[[:space:]]Estimating[[:space:]]Bot[[:space:]]Populations[[:space:]]in[[:space:]]Twitter[[:space:]]Communities/7072b640-48c1-4f19-930f-082fe27f46a0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5679 |
+
2023/Breaking[[:space:]]Boundaries[[:space:]]in[[:space:]]Retrieval[[:space:]]Systems_[[:space:]]Unsupervised[[:space:]]Domain[[:space:]]Adaptation[[:space:]]with[[:space:]]Denoise-Finetuning/4935d8b0-98b3-4bdb-b52e-79b4f13c7e83_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5680 |
+
2023/Breaking[[:space:]]the[[:space:]]Language[[:space:]]Barrier_[[:space:]]Improving[[:space:]]Cross-Lingual[[:space:]]Reasoning[[:space:]]with[[:space:]]Structured[[:space:]]Self-Attention/1c0a780a-7da1-4536-a9a1-221e3976889b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5681 |
+
2023/Breaking[[:space:]]through[[:space:]]Deterministic[[:space:]]Barriers_[[:space:]]Randomized[[:space:]]Pruning[[:space:]]Mask[[:space:]]Generation[[:space:]]and[[:space:]]Selection/d3d064e9-44a5-4cd8-b9c0-54566368ab97_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5682 |
+
2023/C2D2[[:space:]]Dataset_[[:space:]]A[[:space:]]Resource[[:space:]]for[[:space:]]the[[:space:]]Cognitive[[:space:]]Distortion[[:space:]]Analysis[[:space:]]and[[:space:]]Its[[:space:]]Impact[[:space:]]on[[:space:]]Mental[[:space:]]Health/8a14b413-225a-415d-966f-d11db860d3c3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5683 |
+
2023/CAR_[[:space:]]Conceptualization-Augmented[[:space:]]Reasoner[[:space:]]for[[:space:]]Zero-Shot[[:space:]]Commonsense[[:space:]]Question[[:space:]]Answering/0fa11a0a-7acb-4ee3-a0e2-4f6bca28b75f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5684 |
+
2023/CASE_[[:space:]]Commonsense-Augmented[[:space:]]Score[[:space:]]with[[:space:]]an[[:space:]]Expanded[[:space:]]Answer[[:space:]]Space/58d25ff8-aae2-4500-b669-7dc84af11b70_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5685 |
+
2023/CASSI_[[:space:]]Contextual[[:space:]]and[[:space:]]Semantic[[:space:]]Structure-based[[:space:]]Interpolation[[:space:]]Augmentation[[:space:]]for[[:space:]]Low-Resource[[:space:]]NER/f0aa68de-02fc-404f-8aa9-6c26e632d457_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5686 |
+
2023/CCEval_[[:space:]]A[[:space:]]Representative[[:space:]]Evaluation[[:space:]]Benchmark[[:space:]]for[[:space:]]the[[:space:]]Chinese-centric[[:space:]]Multilingual[[:space:]]Machine[[:space:]]Translation/38cb74e6-2f4d-4466-bb0b-7a17a3afb690_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5687 |
+
2023/CCIM_[[:space:]]Cross-modal[[:space:]]Cross-lingual[[:space:]]Interactive[[:space:]]Image[[:space:]]Translation/6f26f1e2-c14a-4bb4-a32b-17866bea12d7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5688 |
+
2023/CCSRD_[[:space:]]Content-Centric[[:space:]]Speech[[:space:]]Representation[[:space:]]Disentanglement[[:space:]]Learning[[:space:]]for[[:space:]]End-to-End[[:space:]]Speech[[:space:]]Translation/6184179b-f5cc-48ec-84c7-04f492192545_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5689 |
+
2023/CHiLL_[[:space:]]Zero-shot[[:space:]]Custom[[:space:]]Interpretable[[:space:]]Feature[[:space:]]Extraction[[:space:]]from[[:space:]]Clinical[[:space:]]Notes[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/0bb4c981-0a16-4056-84bc-59c7c7708d84_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5690 |
+
2023/CITB_[[:space:]]A[[:space:]]Benchmark[[:space:]]for[[:space:]]Continual[[:space:]]Instruction[[:space:]]Tuning/fb619505-b582-4d81-a815-4f6d680394af_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5691 |
+
2023/CLASS_[[:space:]]A[[:space:]]Design[[:space:]]Framework[[:space:]]for[[:space:]]Building[[:space:]]Intelligent[[:space:]]Tutoring[[:space:]]Systems[[:space:]]Based[[:space:]]on[[:space:]]Learning[[:space:]]Science[[:space:]]principles/75434230-4356-4958-86db-255f49978ca0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5692 |
+
2023/CLMSM_[[:space:]]A[[:space:]]Multi-Task[[:space:]]Learning[[:space:]]Framework[[:space:]]for[[:space:]]Pre-training[[:space:]]on[[:space:]]Procedural[[:space:]]Text/33fbf183-8509-4080-889d-8337871219ea_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5693 |
+
2023/COMET-M_[[:space:]]Reasoning[[:space:]]about[[:space:]]Multiple[[:space:]]Events[[:space:]]in[[:space:]]Complex[[:space:]]Sentences/f11404a7-66ae-4595-b232-f5772d594594_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5694 |
+
2023/CONTRASTE_[[:space:]]Supervised[[:space:]]Contrastive[[:space:]]Pre-training[[:space:]]With[[:space:]]Aspect-based[[:space:]]Prompts[[:space:]]For[[:space:]]Aspect[[:space:]]Sentiment[[:space:]]Triplet[[:space:]]Extraction/f63c8dbc-0acb-4790-a07a-5890e1ec0b23_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5695 |
+
2023/COUNT_[[:space:]]COntrastive[[:space:]]UNlikelihood[[:space:]]Text[[:space:]]Style[[:space:]]Transfer[[:space:]]for[[:space:]]Text[[:space:]]Detoxification/9289e4c9-05d2-4e64-9041-c57373c229d5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5696 |
+
2023/CR-COPEC_[[:space:]]Causal[[:space:]]Rationale[[:space:]]of[[:space:]]Corporate[[:space:]]Performance[[:space:]]Changes[[:space:]]to[[:space:]]learn[[:space:]]from[[:space:]]Financial[[:space:]]Reports/0654d924-16a0-4437-b505-b2513d3a5138_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5697 |
+
2023/CREATOR_[[:space:]]Tool[[:space:]]Creation[[:space:]]for[[:space:]]Disentangling[[:space:]]Abstract[[:space:]]and[[:space:]]Concrete[[:space:]]Reasoning[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/334d22cf-ece5-4e08-8125-564851f4d144_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5698 |
+
2023/CReTIHC_[[:space:]]Designing[[:space:]]Causal[[:space:]]Reasoning[[:space:]]Tasks[[:space:]]about[[:space:]]Temporal[[:space:]]Interventions[[:space:]]and[[:space:]]Hallucinated[[:space:]]Confoundings/2c567978-9048-4b22-94b2-11a464c1d365_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5699 |
+
2023/CTQScorer_[[:space:]]Combining[[:space:]]Multiple[[:space:]]Features[[:space:]]for[[:space:]]In-context[[:space:]]Example[[:space:]]Selection[[:space:]]for[[:space:]]Machine[[:space:]]Translation/59925f92-3916-4661-80ce-f34d877fd1f8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5700 |
+
2023/Cache[[:space:]]me[[:space:]]if[[:space:]]you[[:space:]]Can_[[:space:]]an[[:space:]]Online[[:space:]]Cost-aware[[:space:]]Teacher-Student[[:space:]]framework[[:space:]]to[[:space:]]Reduce[[:space:]]the[[:space:]]Calls[[:space:]]to[[:space:]]Large[[:space:]]Language[[:space:]]Models/a2513d3d-80d9-4b51-b1a6-630cdab7063b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5701 |
+
2023/Calibrated[[:space:]]Seq2seq[[:space:]]Models[[:space:]]for[[:space:]]Efficient[[:space:]]and[[:space:]]Generalizable[[:space:]]Ultra-fine[[:space:]]Entity[[:space:]]Typing/889dc1b7-2e45-4791-81ef-dda8e7809ca3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5702 |
+
2023/Can[[:space:]]Brain[[:space:]]Signals[[:space:]]Reveal[[:space:]]Inner[[:space:]]Alignment[[:space:]]with[[:space:]]Human[[:space:]]Languages_/b6beb03c-e804-4904-8bc7-8e09f3e9229f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5703 |
+
2023/Can[[:space:]]ChatGPT[[:space:]]Assess[[:space:]]Human[[:space:]]Personalities_[[:space:]]A[[:space:]]General[[:space:]]Evaluation[[:space:]]Framework/9a7fe5cb-ed88-46d7-a2f6-8a715a0366a3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5704 |
+
2023/Can[[:space:]]ChatGPT[[:space:]]Defend[[:space:]]its[[:space:]]Belief[[:space:]]in[[:space:]]Truth_[[:space:]]Evaluating[[:space:]]LLM[[:space:]]Reasoning[[:space:]]via[[:space:]]Debate/5bf6cf55-99bb-44de-89ef-885871ac45e7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5705 |
+
2023/Can[[:space:]]ChatGPT[[:space:]]Perform[[:space:]]Reasoning[[:space:]]Using[[:space:]]the[[:space:]]IRAC[[:space:]]Method[[:space:]]in[[:space:]]Analyzing[[:space:]]Legal[[:space:]]Scenarios[[:space:]]Like[[:space:]]a[[:space:]]Lawyer_/c510e2ca-0973-4275-ada2-23f7793b7ed9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5706 |
+
2023/Can[[:space:]]Foundation[[:space:]]Models[[:space:]]Watch,[[:space:]]Talk[[:space:]]and[[:space:]]Guide[[:space:]]You[[:space:]]Step[[:space:]]by[[:space:]]Step[[:space:]]to[[:space:]]Make[[:space:]]a[[:space:]]Cake_/fa09d223-8a8c-4be3-806e-1e478667d240_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5707 |
+
2023/Can[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]Fix[[:space:]]Data[[:space:]]Annotation[[:space:]]Errors_[[:space:]]An[[:space:]]Empirical[[:space:]]Study[[:space:]]Using[[:space:]]Debatepedia[[:space:]]for[[:space:]]Query-Focused[[:space:]]Text[[:space:]]Summarization/2900f3fa-3801-4a0c-b57b-808040cb7eb2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5708 |
+
2023/Can[[:space:]]Retriever-Augmented[[:space:]]Language[[:space:]]Models[[:space:]]Reason_[[:space:]]The[[:space:]]Blame[[:space:]]Game[[:space:]]Between[[:space:]]the[[:space:]]Retriever[[:space:]]and[[:space:]]the[[:space:]]Language[[:space:]]Model/bb397cbb-de22-4cc6-b126-3f7a4f37c040_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5709 |
+
2023/Can[[:space:]]Word[[:space:]]Sense[[:space:]]Distribution[[:space:]]Detect[[:space:]]Semantic[[:space:]]Changes[[:space:]]of[[:space:]]Words_/14c715bd-ebf3-48b3-9ac7-b88c85f6c248_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5710 |
+
2023/Can[[:space:]]you[[:space:]]Summarize[[:space:]]my[[:space:]]learnings_[[:space:]]Towards[[:space:]]Perspective-based[[:space:]]Educational[[:space:]]Dialogue[[:space:]]Summarization/2c5959b4-531d-4827-bdaf-93e11faa81ad_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5711 |
+
2023/Causal[[:space:]]Inference[[:space:]]from[[:space:]]Text_[[:space:]]Unveiling[[:space:]]Interactions[[:space:]]between[[:space:]]Variables/e27dd2a5-1bc9-4ff4-8c48-faf1d5dfd79f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5712 |
+
2023/Causal[[:space:]]Intervention[[:space:]]for[[:space:]]Abstractive[[:space:]]Related[[:space:]]Work[[:space:]]Generation/63034cf8-72b0-4adc-b303-e140ae70064b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5713 |
+
2023/Causal[[:space:]]Intervention-based[[:space:]]Few-Shot[[:space:]]Named[[:space:]]Entity[[:space:]]Recognition/62d38232-03b6-4635-ac34-fb73a1798bf0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5714 |
+
2023/Chain[[:space:]]of[[:space:]]Thought[[:space:]]with[[:space:]]Explicit[[:space:]]Evidence[[:space:]]Reasoning[[:space:]]for[[:space:]]Few-shot[[:space:]]Relation[[:space:]]Extraction/aeb3fd94-bc5c-4537-a5b5-b79c2473373e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5715 |
+
2023/Chain-of-Thought[[:space:]]Embeddings[[:space:]]for[[:space:]]Stance[[:space:]]Detection[[:space:]]on[[:space:]]Social[[:space:]]Media/a9be1538-0429-43c0-b462-8aacd7b82214_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5716 |
+
2023/Chain-of-Thought[[:space:]]Reasoning[[:space:]]in[[:space:]]Tabular[[:space:]]Language[[:space:]]Models/5bab9731-b90a-4047-ba49-4a953b3b1fb7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5717 |
+
2023/ChatCoT_[[:space:]]Tool-Augmented[[:space:]]Chain-of-Thought[[:space:]]Reasoning[[:space:]]on[[:space:]]Chat-based[[:space:]]Large[[:space:]]Language[[:space:]]Models/15b6fd47-b405-466f-a0ab-98f0c331a96f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5718 |
+
2023/ChatGPT[[:space:]]Beyond[[:space:]]English_[[:space:]]Towards[[:space:]]a[[:space:]]Comprehensive[[:space:]]Evaluation[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]in[[:space:]]Multilingual[[:space:]]Learning/f554f3a2-e1b0-465e-94b0-2ad4189205ac_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5719 |
+
2023/Chinese[[:space:]]Metaphorical[[:space:]]Relation[[:space:]]Extraction/5b41eac4-5306-403f-92fe-bce36d102b6d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5720 |
+
2023/Citance-Contextualized[[:space:]]Summarization[[:space:]]of[[:space:]]Scientific[[:space:]]Papers/e5fca700-3944-47d0-b7f9-960629b56431_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5721 |
+
2023/Closed[[:space:]]Boundary[[:space:]]Learning[[:space:]]for[[:space:]]Classification[[:space:]]Tasks[[:space:]]with[[:space:]]the[[:space:]]Universum[[:space:]]Class/db424ebb-4e4d-4c49-b57e-38b53d012857_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5722 |
+
2023/ClozEx_[[:space:]]A[[:space:]]Task[[:space:]]toward[[:space:]]Generation[[:space:]]of[[:space:]]English[[:space:]]Cloze[[:space:]]Explanation/e2b26955-4bd3-414a-8163-bec8ae60bc7e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5723 |
+
2023/ClusterPrompt_[[:space:]]Cluster[[:space:]]Semantic[[:space:]]Enhanced[[:space:]]Prompt[[:space:]]Learning[[:space:]]for[[:space:]]New[[:space:]]Intent[[:space:]]Discovery/7fb52757-8668-4c5f-873f-273e42ce63a2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/8b1ff79e-86f8-41a0-b232-69890219b3c0_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/8b1ff79e-86f8-41a0-b232-69890219b3c0_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/8b1ff79e-86f8-41a0-b232-69890219b3c0_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c164a755601b1307023d1cc1f7eb0db02341842b4a2102d9acea92ccb72785e3
|
| 3 |
+
size 5521995
|
2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/full.md
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beneath the Surface: Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models
|
| 2 |
+
|
| 3 |
+
Hongzhan Lin<sup>1</sup>, Ziyang Luo<sup>1</sup>, Jing Ma<sup>1*</sup>, Long Chen<sup>2</sup>
|
| 4 |
+
|
| 5 |
+
$^{1}$ Hong Kong Baptist University
|
| 6 |
+
|
| 7 |
+
2The Hong Kong University of Science and Technology
|
| 8 |
+
|
| 9 |
+
{cshzlin,cszyluo,majing}@comp.hkbu.edu.hk,longchen@ust.hk
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
The age of social media is rife with memes. Understanding and detecting harmful memes pose a significant challenge due to their implicit meaning that is not explicitly conveyed through the surface text and image. However, existing harmful meme detection approaches only recognize superficial harm-indicative signals in an end-to-end classification manner but ignore in-depth cognition of the meme text and image. In this paper, we attempt to detect harmful memes based on advanced reasoning over the interplay of multimodal information in memes. Inspired by the success of Large Language Models (LLMs) on complex reasoning, we first conduct abductive reasoning with LLMs. Then we propose a novel generative framework to learn reasonable thoughts from LLMs for better multimodal fusion and lightweight fine-tuning, which consists of two training stages: 1) Distill multimodal reasoning knowledge from LLMs; and 2) Fine-tune the generative framework to infer harmfulness. Extensive experiments conducted on three meme datasets demonstrate that our proposed approach achieves superior performance than state-of-the-art methods on the harmful meme detection task.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
The development of social media platforms has given rise to a new form of multimodal content known as: meme. A meme typically comprises a picture that is combined with a concise text component. Memes possess the capacity to quickly spread across the internet, especially on social media platforms, due to their ease of dissemination. While memes are often seen as humorous, there is a potential for harm when the combination of images and texts is strategically used to promote political and sociocultural divisions. For instance as in Figure 1(a), during the COVID-19 pandemic, a widely
|
| 18 |
+
|
| 19 |
+
circulated meme falsely claimed that the mRNA vaccine would alter human genetic code (DNA) $^{1}$ . Such multimodal disinformation spread caused vaccine safety and effectiveness concerns, hindering the formation of strong immune defenses in impacted areas globally (Basch et al., 2021; Lin et al., 2022). Besides, another meme example shown in Figure 1(b) perpetuates harmful stereotypes and generalizations about Asians. Therefore, it is necessary to develop automatic approaches to facilitate harmful meme detection for unveiling the dark side of memes.
|
| 20 |
+
|
| 21 |
+
Harmful memes $^2$ are generally defined as “multimodal units consisting of an image and accompanying text that has the potential to cause harm to an individual, an organization, a community, or the whole society” (Sharma et al., 2022). Previous studies (Kiela et al., 2020; Pramanick et al., 2021a,b) attempted to straightforwardly utilize pretrained vision-language models (Li et al., 2019; Lu et al., 2019) for harmful meme detection by training additional task-specific classification layers. More recently, Cao et al. (2022) proposed a prompt-tuning method with the meme text and image caption as the prompt for masked language modeling (Devlin et al., 2019; Liu et al., 2019).
|
| 22 |
+
|
| 23 |
+
However, existing harmful meme detection approaches oversimplified the problem as an end-to-end classification paradigm, which only recognizes the superficial signals conveyed through the surface text and image. But more in-depth investigation and cognition on the implicit meaning is required especially when the image and text are not obviously correlated (Pramanick et al., 2021b). Intuitively, the key to harmful meme detection is to excavate rich correlations beneath the surface
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
(a) Harmful
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
(b) Harmful
|
| 30 |
+
Figure 1: Examples of harmful and harmless memes. Memetext: (a) Chance a virus with a $99.97\%$ recovery rate; Alter my DNA from an experimental vaccine, with NO liability, from a corrupt industry. (b) when you date an asian boy and you trynna get his family to accept you. (c) you either die a hero, or live long enough to become the villain.
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
(c) Harmless
|
| 34 |
+
|
| 35 |
+
of the seemingly uncorrelated text and image in the meme: 1) For example as in Figure 1(b), the image and the text are not harmful when considered in isolation, but are harmful when taken as a whole. A human checker should cognize that, the “biting” action in the image of a young woman with her pet dog ridicules Asians’ “dog-eating” behavior, which corresponds to the “asian” word in the text. 2) In contrast, some harmful signals (e.g., “die” or “villain”) are observed in the text of Figure 1(c), but the meme itself actually does not promote hate or discrimination against a particular group of people. Because the text is a quote from a popular movie and is often used as a philosophical statement about the choices people make in life. And the image further adds a celebratory and joyful tone to the overall message. In comparison, conventional detection methods just focused on recognizing shallow harm-indicative signals without such multimodal reasoning and essential background knowledge consideration, so the social dynamics of different races or the origin of the meme text from classical movie lines may not be well-cognized. Unlike such recognition-level detection models, we argue that establishing reasonable thought between textual and visual information can further improve meme understanding with background knowledge for better harmful meme detection.
|
| 36 |
+
|
| 37 |
+
Inspired by the success of LLMs for reasoning at the cognition level with contextual background knowledge (Wei et al., 2022; Kojima et al., 2022; Zhang et al., 2022), we propose a novel approach: MR.HARM, by leveraging the Multimodal reasoning knowledge distilled from LLMs for Harmful meme detection. To this end, we first prompt LLMs for abductive reasoning, and then propose a two-stage generative framework based on smaller language models to learn reasonable thoughts from LLMs for better multimodal fusion
|
| 38 |
+
|
| 39 |
+
and lightweight fine-tuning. More specifically, we incorporate the meme text and image into a two-stage training paradigm: 1) Reasoning Distillation: In the first stage, we fine-tune our smaller language models with the interaction of language and vision features to distill multimodal reasoning knowledge from LLMs, which empowers our framework with the ability to conduct cognitive reasoning for the harmfulness prediction. 2) Harmfulness Inference: In the second stage, we exploit the fine-tuned small language models to infer the final harmfulness prediction. In this manner, we augment the harmful meme detection model with multimodal reasoning knowledge to unmask the implicit meaning hidden in holistic multimodal information from memes.
|
| 40 |
+
|
| 41 |
+
We evaluate our proposed approach based on three public meme datasets. The results not only show that our method outperforms strong harmful meme detection baselines by a large margin, but also provide fine-grained analysis for interpreting how our approach works. Our contributions are summarized as follows in three folds:
|
| 42 |
+
|
| 43 |
+
- To our best knowledge, we are the first to alleviate the issue of superficial understanding for harmful meme detection by explicitly utilizing commonsense knowledge, from a fresh perspective on harnessing advanced LLMs.3
|
| 44 |
+
- We propose a novel generative framework to fine-tune smaller language models augmented with the multimodal reasoning knowledge distilled from LLMs, which facilitates better multimodal fusion and lightweight fine-tuning for harmfulness prediction.
|
| 45 |
+
- Extensive ablations on three meme datasets confirm that our method could yield superior
|
| 46 |
+
|
| 47 |
+
performance than state-of-the-art baselines for the harmful meme detection task.
|
| 48 |
+
|
| 49 |
+
# 2 Related Work
|
| 50 |
+
|
| 51 |
+
# 2.1 Harmful Meme Detection
|
| 52 |
+
|
| 53 |
+
Harmful meme detection is a rapidly growing area in the research community, driven by the recent availability of large meme benchmarks (Kiela et al., 2019; Suryawanshi et al., 2020; Pramanick et al., 2021a). The Hateful Memes Challenge organized by Facebook (Kiela et al., 2020) further encouraged researchers to develop solutions for detecting harmful memes in hate speech (Das et al., 2020). More recently, Pramanick et al. (2021a) firstly defined the harmful meme concept and demonstrated its dependence on contextual factors. The complex nature of memes, which often rely on multiple modalities, makes them challenging and struggle to yield good performance only using unimodal detection methods (Simonyan and Zisserman, 2014; He et al., 2016; Devlin et al., 2019). Therefore, recent studies in this area attempted to apply multimodal approaches on the harmful meme detection task.
|
| 54 |
+
|
| 55 |
+
Previous studies have employed classical two-stream models that integrate text and vision features, which are learned from text and image encoders, using attention-based mechanisms and multimodal fusion techniques for classifying harmful memes (Kiela et al., 2019, 2020; Suryawanshi et al., 2020). Another branch was to fine-tune pre-trained multimodal models specifically for the task (Lippe et al., 2020; Muennighoff, 2020; Velioglu and Rose, 2020; Hee et al., 2022). Recent related efforts have also sought to explore the use of data augmentation techniques (Zhou et al., 2021; Zhu et al., 2022), ensemble methods (Zhu, 2020; Velioglu and Rose, 2020; Sandulescu, 2020) and harmful target disentanglement (Lee et al., 2021). More recently, Pramanick et al. (2021b) proposed a multimodal framework by using global and local perspectives to detect harmful memes which achieves state-of-the-art performances. A follow-up prompt-based approach (Cao et al., 2022) attempted to concatenate the meme text and extracted image captions to fine-tune masked language models (Liu et al., 2019) for harmful meme detection. However, existing solutions only capture the superficial signals of different modalities in memes in an end-to-end manner, which largely ignore explicit deductive reasoning to guide the model for understanding background knowledge about the complex and diverse
|
| 56 |
+
|
| 57 |
+
relations between the visual and textual elements.
|
| 58 |
+
|
| 59 |
+
# 2.2 Large Language Models
|
| 60 |
+
|
| 61 |
+
Recently, LLMs have demonstrated remarkable capability in complex reasoning (Brown et al., 2020; Thoppilan et al., 2022; Rae et al., 2021; Chowdhery et al., 2022), such as generating intermediate inference procedures before the final output (Nye et al., 2021; Wei et al., 2022; Kojima et al., 2022; Zhang et al., 2022). Unfortunately, the large size of LLMs restricts their deployment on detecting harmful memes with different modalities, regardless of how they are enhanced with strategic text prompting. Knowledge distillation has been successfully used to transfer knowledge from larger, more competent teacher models into smaller student models affordable for practical applications (Bucilua et al., 2006; Hinton et al., 2015; Beyer et al., 2022). However, existing researches on knowledge distillation from LLMs (Wang et al., 2022; Ho et al., 2022; Magister et al., 2022) only consider the language modality, they are not suitable for harmful meme detection because harmful memes can convey holistic synergy information through multimodal features. In this work, we conduct abductive reasoning with LLMs, which further advocates a multimodal reasoning paradigm to fine-tune smaller language models (LMs) for harmful meme detection.
|
| 62 |
+
|
| 63 |
+
# 3 Our Approach
|
| 64 |
+
|
| 65 |
+
Problem Statement We define a harmful meme detection dataset as a set of memes where each meme $M = \{y, \mathcal{I}, \mathcal{T}\}$ is a triplet representing an image $\mathcal{I}$ that is associated with a text $\mathcal{T}$ , and a ground-truth harmfulness label $y \in \{\text{harmful, harmless}\}$ . In this work, to investigate multimodal reasoning distilled from LLMs, we convert the harmful meme detection task into a natural language generation paradigm, where our model takes the text $\mathcal{T}$ and image $\mathcal{I}$ as the input and generates a text sequence that contains the label $y$ to clearly express whether the meme is harmful.
|
| 66 |
+
|
| 67 |
+
Our core idea is to reason and evolve with the cognition-level rationale beyond the recognition-level perception (Davis and Marcus, 2015) by capturing the inter-relationship between visual and textual elements in memes. The overview of our framework is shown in Figure 2, which consists of abductive reasoning with LLMs (see Sec. 3.1) and two training stages, i.e., reasoning distillation (see Sec. 3.2) and harmfulness inference (see Sec. 3.3).
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
Figure 2: The overall pipeline of our method. We first conduct abductive reasoning with LLMs to extract harmfulness rationales (pink) by the prompt consisting of the meme text (green), the image caption (blue), and the label (orange). We then use the generated rationales to train small task-specific models with multimodal inputs as the first fine-tuning stage and feed the same inputs to the updated model for harmfulness inference as the second fine-tuning stage.
|
| 71 |
+
|
| 72 |
+
# 3.1 Abductive Reasoning with LLMs
|
| 73 |
+
|
| 74 |
+
In this paper, we propose to utilize abductive reasoning with multimodal inputs to train smaller downstream models. LLMs can produce natural language rationales unveiling the implicit meaning beneath the surface of the memes to justify the reason why the meme is harmful or not. This shares a similar intuition as heuristic teaching (Pintrich and Schunk, 2002) where a teacher who has rich experience and knowledge can impart to students the correct way of thinking and reasoning based on questions with corresponding answers. The students then learn how to deduce their own ways to the correct answers from questions accordingly. Thus we aim to activate explicit reasoning knowledge in LLMs as a teacher model, e.g., contextual and cultural information related to memes, to guide our model to strengthen harmfulness prediction.
|
| 75 |
+
|
| 76 |
+
Given a meme sample $M = \{y, \mathcal{I}, \mathcal{T}\}$ from the training data, to prompt large language models in uniform language modality, we first extract the text caption $\tilde{\mathcal{I}}$ of the image $\mathcal{I}$ by off-the-shelf captioning models (Mokady et al., 2021). Then we curate a template $p$ that consists of a triplet $\{y, \tilde{\mathcal{I}}, \mathcal{T}\}$ as observed attributes, to prompt the LLMs to generate a rationale $r$ that elicits the reasoning knowledge about how to infer the harmfulness label $y$ based on the interplay of the meme text $\mathcal{T}$ and the image caption $\tilde{\mathcal{I}}$ as illustrated in Figure 2. Specifically, we design $p$ as:
|
| 77 |
+
|
| 78 |
+
"Given a Text: [T], which is embedded in an Image: [I]; and a harmfulness label [y], please give me a streamlined rationale associated with the meme, without explicitly indicating the label, for how it is reasoned as [y]."
|
| 79 |
+
|
| 80 |
+
As we clarify the ground-truth harmfulness label in the observed attributes of the prompt, the hallucination issue (Bang et al., 2023) of LLMs could be effectively alleviated. Because the rich contextual background knowledge could be activated by abductive reasoning based on the ground truth and invalid rationales are naturally filtered out.
|
| 81 |
+
|
| 82 |
+
# 3.2 Reasoning Distillation with Small LMs
|
| 83 |
+
|
| 84 |
+
Since we utilize image captions to represent the meme images, we could perform abductive reasoning with large language models pre-trained with language modality. However, only using the captions as opposed to original vision features may suffer from a lack of mutual synergy in the representation space of different modalities in memes due to the inductive bias of possible information loss in the captioning process. On the other hand, LLMs can be used to conduct abductive reasoning only for the training data whose harmfulness label is given in prior but is challenging to be fine-tuned for this task due to the huge amount of model parameters. To facilitate the interactions between the meme text and the image, we propose to fine-tune a smaller language model for the harmful meme detection task, which allows flexibility in adjusting model architectures to incorporate multimodal features and is more lightweight for task-specific fine-tuning.
|
| 85 |
+
|
| 86 |
+
In this section, we train a small language model as a student model distilled from the LLMs with multimodal reasoning knowledge. Specifically, we leverage generated rationales from LLMs as informative supervision, to fine-tune a smaller pretrained language model to excavate the rich interrelationship between language and vision modali
|
| 87 |
+
|
| 88 |
+
ties of memes.
|
| 89 |
+
|
| 90 |
+
Encoding For a meme sample $M$ from the training data, we first encode the text $\mathcal{T}$ and the image $\mathcal{I}$ to obtain their embedding vectors as follows:
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
H _ {\mathcal {T}} ^ {0} = \operatorname {T E} (\mathcal {T}), \tag {1}
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
H _ {\mathcal {I}} = \operatorname {V E} (\mathcal {I}),
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
where $\mathrm{TE}(\cdot)$ denotes the text embedding layer of the LM Encoder. And $H_{\mathcal{T}}^{0}\in \mathbb{R}^{m\times d}$ is the token embeddings in the Transformer encoder (Vaswani et al., 2017) where $m$ is the text token length and $d$ is the dimension of the hidden states. $\mathrm{VE}(\cdot)$ is the Vision Extractor implemented as frozen pre-trained vision Transformers (Radford et al., 2021) to fetch the patch-level features of the image with $n$ patches, which is projected into the visual representations $H_{\mathcal{I}}\in \mathbb{R}^{n\times d}$ . Next, to support semantic alignment between the text and the image for better context understanding, we exploit a cross-attention mechanism (Luo et al., 2022) for multimodal fusion of the textual and visual information:
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
Q _ {\mathcal {T}} = W _ {Q} ^ {i} H _ {\mathcal {T}} ^ {i} + b _ {Q} ^ {i},
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
K _ {\mathcal {I}} = W _ {K} ^ {i} H _ {\mathcal {I}} + b _ {K} ^ {i},
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
V _ {\mathcal {I}} = W _ {V} ^ {i} H _ {\mathcal {I}} + b _ {V} ^ {i}, \tag {2}
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
H _ {\mathcal {I}} ^ {i} = \mathrm {s o f t m a x} \left(\frac {Q _ {\mathcal {T}} K _ {\mathcal {I}} ^ {\top}}{\sqrt {d _ {k}}}\right) V _ {\mathcal {I}},
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
where $H_{\mathcal{T}}^{i}$ is the input hidden states of each LM Encoder layer and $H_{\mathcal{I}}^{i}$ is the attended visual features. Then we can fuse $H_{\mathcal{I}}^{i}$ with $H_{\mathcal{T}}^{i}$ to attain the interplay representations for a meme:
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
H _ {\mathcal {T}} ^ {i + 1} = \operatorname {L M E} ^ {i} \left(H _ {\mathcal {T}} ^ {i}\right) + W _ {O} ^ {i} H _ {\mathcal {I}} ^ {i} + b _ {O} ^ {i}, \tag {3}
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
where $\mathrm{LME}^i (\cdot)$ is the $i$ -th layer of the LM Encoder, $W_{*}^{i}$ denotes the linear projection, $b_{*}^{i}$ is the bias, and $\hat{H} = H_{T}^{L}$ is the final interplay representations after going through an L-layer LM Encoder fused with the visual features.
|
| 125 |
+
|
| 126 |
+
Decoding Finally, we feed the interplay representations $\hat{H} \in \mathbb{R}^{m \times d}$ into the LM Decoder, implemented as a Transformer-based decoder, to generate the reasonable rationale. Overall, the smaller language model $f$ is trained by minimizing the following distillation loss:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\mathcal {L} _ {\text {d i s t i l l}} = \operatorname {C E} (f (\mathcal {I}, \mathcal {T}), r), \tag {4}
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
where $\mathrm{CE}(\cdot)$ denotes the cross-entropy loss (Sutskever et al., 2014) between the predicted text and the target rationale $r$ generated by LLMs. In this way, multimodal reasoning knowledge about the meme could be explicitly distilled from
|
| 133 |
+
|
| 134 |
+
LLMs and injected into the smaller language model specific to harmful meme detection.
|
| 135 |
+
|
| 136 |
+
# 3.3 Harmfulness Inference
|
| 137 |
+
|
| 138 |
+
During the first fine-tuning stage, we conducted explicit deductive reasoning to empower our model with the capability of multimodal reasoning distilled from LLMs. As the goal of this task is to determine whether the meme is harmful or not, we conduct the second fine-tuning stage for Harmfulness Inference, which shares the same model architecture, parameters, and encoding procedure as Sec. 3.2 but differs in the decoding output. To make the output consistent with harmfulness prediction, the smaller model $f$ is further trained by minimizing the following inference loss:
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\mathcal {L} _ {\text {i n f e r}} = \operatorname {C E} (f (\mathcal {I}, \mathcal {T}), y), \tag {5}
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
where the cross-entropy loss is computed between the generated text and ground-truth harmfulness label $y$ . With the generative objective (Raffel et al., 2020) adapted to the previous Reasoning Distillation stage, the prior reasoning knowledge absorbed in Reasoning Distillation could be well induced for Harmfulness Inference.
|
| 145 |
+
|
| 146 |
+
Model Training The model training consists of two fine-tuning stages: 1) Reasoning Distillation and 2) Harmfulness Inference, where Reasoning Distillation is the predecessor fine-tuning phase of Harmfulness Inference. Note that for model testing, we directly input the test sample into our fine-tuned language model to predict the meme harmfulness.
|
| 147 |
+
|
| 148 |
+
# 4 Experiments
|
| 149 |
+
|
| 150 |
+
# 4.1 Experimental Setup
|
| 151 |
+
|
| 152 |
+
Datasets We use three publicly available meme datasets for evaluation: (1) Harm-C (Pramanick et al., 2021a), (2) Harm-P (Pramanick et al., 2021b), and (3) FHM (Kiela et al., 2020). Harm-C and Harm-P consist of memes related to COVID-19 and US politics, respectively. FHM was released by Facebook as part of a challenge to crowd-source multimodal harmful meme detection in hate speech solutions. Different from FHM that each meme was labeled as harmful or harmless, Harm-C and Harm-P were originally labeled with three classes: very harmful, partially harmful, and harmless. For a fair comparison, we merge the very harmful and partially harmful memes into harmful ones, following the evaluation setting of recent work (Pramanick et al., 2021b; Cao et al., 2022). We provide
|
| 153 |
+
|
| 154 |
+
<table><tr><td>Dataset</td><td colspan="2">Harm-C</td><td colspan="2">Harm-P</td><td colspan="2">FHM</td></tr><tr><td>Model</td><td>Accuracy</td><td>Macro-F1</td><td>Accuracy</td><td>Macro-F1</td><td>Accuracy</td><td>Macro-F1</td></tr><tr><td>Text BERT (Devlin et al., 2019)</td><td>70.17</td><td>66.25</td><td>80.12</td><td>78.35</td><td>57.12</td><td>41.52</td></tr><tr><td>Image-Region (He et al., 2016)</td><td>68.74</td><td>62.97</td><td>73.14</td><td>72.77</td><td>52.34</td><td>34.19</td></tr><tr><td>Late Fusion (Pramanick et al., 2021a)</td><td>73.24</td><td>70.25</td><td>78.26</td><td>78.50</td><td>59.14</td><td>44.81</td></tr><tr><td>MMBT (Kiela et al., 2019)</td><td>73.48</td><td>67.12</td><td>82.54</td><td>80.23</td><td>65.06</td><td>61.93</td></tr><tr><td>VisualBERT COCO (Li et al., 2019)</td><td>81.36</td><td>80.13</td><td>86.80</td><td>86.07</td><td>61.48</td><td>47.26</td></tr><tr><td>ViLBERT CC (Lu et al., 2019)</td><td>78.70</td><td>78.09</td><td>87.25</td><td>86.03</td><td>64.70</td><td>55.78</td></tr><tr><td>MOMENTA (Pramanick et al., 2021b)</td><td>83.82</td><td>82.80</td><td>89.84</td><td>88.26</td><td>61.34</td><td>57.45</td></tr><tr><td>MaskPrompt (Cao et al., 2022)</td><td>84.47</td><td>81.51</td><td>88.17</td><td>87.09</td><td>72.98</td><td>65.24</td></tr><tr><td>MR.HARM</td><td>86.16</td><td>85.43</td><td>89.58</td><td>89.57</td><td>75.40</td><td>75.10</td></tr></table>
|
| 155 |
+
|
| 156 |
+
Table 1: Harmful meme detection results on three datasets. The accuracy and macro-averaged F1 score $(\%)$ are reported as the metrics. The best and second results are in bold and underlined.
|
| 157 |
+
|
| 158 |
+
statistics of the three datasets in the Appendix.
|
| 159 |
+
|
| 160 |
+
Baselines We compare MR.HARM with several state-of-the-art harmful meme detection systems: 1) Text BERT (Devlin et al., 2019); 2) Image-Region (Ren et al., 2016; He et al., 2016); 3) Late Fusion (Pramanick et al., 2021a); 4) MMBT (Kiela et al., 2019); 5) VisualBERT COCO (Li et al., 2019; Lin et al., 2014); 6) ViL-BERT CC (Lu et al., 2019; Sharma et al., 2018); 7) MOMENTA (Pramanick et al., 2021b); 8) MaskPrompt (Cao et al., 2022). We use the accuracy and macro-averaged F1 score as the evaluation metrics. More implementation details and baseline descriptions are provided in Appendix.
|
| 161 |
+
|
| 162 |
+
# 4.2 Harmful Meme Detection Performance
|
| 163 |
+
|
| 164 |
+
Table 1 shows the performance of our proposed method versus all the compared methods on the Harm-C, Harm-P and FHM datasets. It is observed that 1) The performance of the baselines in the first group is obviously poor due to only unimodal features like text-only or image-only being captured. In comparison, the other baselines exploit the multimodal features from both the text and image in memes. 2) The multimodal models in the second group outperform the unimodal ones. The early-fusion models with multimodal pre-training (i.e., VisualBERT COCO and ViLBERT CC) outperform that of the simple fusion with unimodal pretraining (i.e., Late Fusion and MMBT) on Harm-C/P datasets, while MOMENTA performs best in the second group by considering global and local information of memes. 3) However, as the images in FHM dataset are more informative and high-quality, MaskPrompt yields the best performance among all the baselines by incorporating additional
|
| 165 |
+
|
| 166 |
+
extracted entities and demographic information of the image into the masked language models, besides just captioning the image into the prompt.
|
| 167 |
+
|
| 168 |
+
Our proposed MR.HARM improves over the best baselines by $2.63\%$ , $1.31\%$ , and $9.86\%$ in terms of Macro-F1 score on Harm-C, Harm-P, and FHM datasets, respectively. We observe that 1) the improvement on the Harm-P dataset is relatively milder than that on the other two datasets. Meanwhile, all the baselines just have tiny differences among their performances on Harm-P. We speculate the reason falls into the smaller dataset scale of Harm-P which only contains politics-related harmful memes. 2) A similar trend can also be observed in Harm-C and FHM datasets: the more challenging the dataset is, the greater performance improvement MR.HARM achieves. Our model performs flexibly and stably across all datasets with its keen judgment on harmful memes. This is because all the baselines are only designed at the recognition level, but MR.HARM is further empowered with multimodal reasoning knowledge distilled from LLMs to unearth harmful content from the seemingly uncorrelated text and image modalities of memes.
|
| 169 |
+
|
| 170 |
+
# 4.3 Ablative Study
|
| 171 |
+
|
| 172 |
+
We perform ablative studies on several variants of MR.HARM: 1) w/o Reasoning Distillation: Simply fine-tune the smaller language models in the stage of Harmfulness Inference without the stage of Reasoning Distillation based on LLMs; 2) w/o Visual Features: Discard the features from the meme image while keeping those from the meme text; 3) w/o Multimodal Fusion: Instead of the fusion mechanism on the multimodal features in our language model, we only append the lingual features from image captioning together with the meme text
|
| 173 |
+
|
| 174 |
+
<table><tr><td>Dataset</td><td colspan="2">Harm-C</td><td colspan="2">Harm-P</td><td colspan="2">FHM</td></tr><tr><td>Model</td><td>Accuracy</td><td>Macro-F1</td><td>Accuracy</td><td>Macro-F1</td><td>Accuracy</td><td>Macro-F1</td></tr><tr><td>MR.HARM</td><td>86.16</td><td>85.43</td><td>89.58</td><td>89.57</td><td>75.40</td><td>75.10</td></tr><tr><td>w/o Reasoning Distillation</td><td>83.33</td><td>81.44</td><td>88.17</td><td>88.17</td><td>73.60</td><td>73.41</td></tr><tr><td>w/o Visual Features</td><td>82.48</td><td>80.30</td><td>87.04</td><td>87.03</td><td>58.80</td><td>57.01</td></tr><tr><td>w/o Multimodal Fusion</td><td>79.38</td><td>75.36</td><td>87.46</td><td>87.45</td><td>74.40</td><td>74.25</td></tr><tr><td>w/o Two-stage Training</td><td>83.05</td><td>81.45</td><td>63.32</td><td>63.32</td><td>67.40</td><td>65.77</td></tr><tr><td>w/o Fine-tuning Small LMs</td><td>71.75</td><td>66.86</td><td>61.13</td><td>60.27</td><td>60.00</td><td>57.72</td></tr></table>
|
| 175 |
+
|
| 176 |
+
Table 2: Ablation studies on our proposed framework.
|
| 177 |
+
|
| 178 |
+
during encoding; 4) w/o Two-stage Training: Concatenate the rationales generated from LLMs and golden harmfulness label as the target for model training, to replace the two-stage training paradigm; 5) w/o Fine-tuning Small LMs: Directly prompt the representative large language model ChatGPT based on InstructGPT (Ouyang et al., 2022) for harmful meme detection.
|
| 179 |
+
|
| 180 |
+
As demonstrated in Table 2, the ablative models suffer different degrees of performance degradation, indicating the effectiveness of our proposed components for harmful meme detection with multimodal reasoning distilled from LLMs. Specifically, the performance of MR.HARM significantly decreases in the 'w/o Reasoning Distillation' setting due to the lack of multimodal reasoning knowledge transferred from LLMs about the seemingly uncorrelated modalities in memes. The 'w/o Visual Features' setting also achieves worse performance than MR.HARM, suggesting that the visual representations are complementary to the meme text for harm-indicative pattern extraction in the language model. MR.HARM makes improvements over 'w/o Multimodal Fusion', which implies the promoting role of our fusion mechanism that incorporates original vision features into the language model, hardly compromised when there could be severe information loss in the captioning process. Moreover, the 'w/o Two-stage Training' setting leads to large-margin performance degradation, which verifies the effectiveness of our two-stage training paradigm. This is because this setting causes mutual interference between intermediate reasoning and final prediction, which affects the convergence effect of harmfulness inference and damages the model's performance and stability. Compared with MR.HARM, the performance of 'w/o Fine-tuning Small LMs' also significantly decreases, highlighting the importance of abductive reasoning with LLMs to alleviate the hallucination issue during
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
|
| 184 |
+
Meme text: DONT WORRY, AMERICA. THE CORONAVIRUS IS NOTHING COMPARED TO WINDMILL CANCER!
|
| 185 |
+
|
| 186 |
+
Intermediate Reasoning: the meme contains a political message that promotes a political agenda. the text suggests that the coronavirus is nothing compared to windmill cancer, which is a harmful and offensive message. the image of a politician in a suit and tie, possibly related to the inauguration of president trump, further reinforces the harmful message. the use of a political message in this context could be seen as insensitive and disrespectful to those who have been affected by the pandemic.
|
| 187 |
+
|
| 188 |
+
(a)
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
|
| 192 |
+
Memo text: THE DEMOCRAT PARTY AMERICAS OLDEST HATÉ GROUP
|
| 193 |
+
|
| 194 |
+
Intermediate Reasoning: based on the text and image it appears that the meme is making an inflammatory statement about the democrat party. the image shows a close up of a confederate flag with stars, which could be interpreted as an implication of the democrat party. the text also mentions the oldest hate group in the united states, which could be interpreted as a reference to the democrat party being associated with racism and white supremacy.
|
| 195 |
+
|
| 196 |
+
(b)
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
Figure 3: Examples of correctly predicted harmful memes in (a) Harm-C, (b) Harm-P, and (c) FHM dataset.
|
| 200 |
+
|
| 201 |
+
Meme text: it's the goat humper, looks like a bunch of pigs just walked over your grave
|
| 202 |
+
|
| 203 |
+
Intermediate Reasoning: the text in the meme contains a derogatory and offensive statement "goat humper" towards a particular group of Muslim individuals, associated with an image of a Muslim man praying in front of a mosque, which is highly offensive and discriminatory. The phrase "looks like a bunch of pigs just walked over your grave" can be interpreted as a disrespectful reference to the Muslim practice of abstaining from pork.
|
| 204 |
+
|
| 205 |
+
(c)
|
| 206 |
+
|
| 207 |
+
deductive reasoning for harmfulness prediction.
|
| 208 |
+
|
| 209 |
+
# 4.4 Cognition-view Reasoning Analysis
|
| 210 |
+
|
| 211 |
+
Note that our smaller language model is explicitly trained in the Reasoning Distillation stage for rationale generation to distill multimodal reasoning knowledge from LLMs. Although intermediate
|
| 212 |
+
|
| 213 |
+
reasoning is not the final target output for harmful meme detection, after the first fine-tuning stage, we elicit reasonable thoughts from our smaller language model with the test samples as input, to understand the cognition view of our proposed MR.HARM on the test meme samples more transparently and intuitively, as exemplified in Figure 3.
|
| 214 |
+
|
| 215 |
+
From the visualized intermediate reasoning, we observe that 1) our model could understand the multimodal information related to the meme text (in green) and image (in blue) with commonsense knowledge. For example, in Figure 3(a), the recognized "politician" in the image could be related to "president trump", which could be linked to the "AMERICA" in the text; in Figure 3(b), the recognized "flag" in the image could be cognized to satire "the democrat party" in the text; and in terms of Figure 3(c), the "goat humper" and "pigs" in the text could be associated with the attacks to "a Muslim man" recognized in the image. 2) Furthermore, our model learns to cognize the interplay (in pink) of multimodal information with advanced reasoning. Benefitting from the rich multimodal understanding of the memes, the perpetuates harmful stereotypes could be reasoned over the context to the target like "who affected by the pandemic" in Figure 3(a), "the democrat party" in Figure 3(b), and "the Muslim" in Figure 3(c). In this way, the rich correlation beneath the surface of the meme text and image could be excavated to facilitate harmfulness inference with better reasoning knowledge by harnessing advanced LLMs. Such readable pieces of rationales are also potentially valuable for aiding human checkers to verify the final answer predicted by our model.
|
| 216 |
+
|
| 217 |
+
# 4.5 Error Analysis
|
| 218 |
+
|
| 219 |
+
To better understand the behavior of our model and facilitate future studies, we conduct an error analysis on the wrongly predicted memes by our proposed framework. We found that the major error exists in that our framework still cannot fully recognize the images that require rich background knowledge though we exploited the advanced cross-attention mechanism by incorporating visual features into the language model. Figure 4 shows two examples of memes wrongly classified by MR.HARM. For the harmful meme in Figure 4(a), the phrase "and for my next class project!" suggests that the image is being used for an academic or educational purpose, which can be seen as glorifying
|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
Meme text: and for my next class project!
|
| 223 |
+
|
| 224 |
+
# Intermediate Reasoning:
|
| 225 |
+
|
| 226 |
+
based on the image and text presented in the meme, it appears to be a harmless and relatable scenario. the image shows a group of women in traditional dress walking on a beach, which is a common and harmless activity. the text, "and for my next class project," seems to be a playful and lighthearted comment about the topic of the class project. there is no indication of any harmful or offensive content in the image or text.
|
| 227 |
+
|
| 228 |
+

|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
(a)
|
| 232 |
+
Memo text: in 1979Jimmy carter created the department of education since then the u.s. has gone from 1st to 17th in education
|
| 233 |
+
(b)
|
| 234 |
+
Figure 4: Examples of wrongly predicted memes by our proposed framework with the ground truth (a) harmful and (b) harmless.
|
| 235 |
+
|
| 236 |
+
or normalizing the behavior depicted in the image. The image features "a group of Ku Klux Klan members walking on a beach", which is a symbol of white supremacy and racism. The combination of the phrase in the text and the use of imagery associated with hate groups can contribute to the glorification of harmful behaviors and the perpetuation of negative stereotypes, which makes the meme harmful. However, due to the lack of related background knowledge about the Ku Klux Klan members and their wear, our framework cannot well recognize the image correctly during the original vision feature extraction, which leads to error propagation for wrongly concluding that the meme is harmless. Also, in terms of the harmless meme in Figure 4(b), the image that "Jimmy Carter with a smile on his face" is mistakenly recognized as "an older man with a funny expression on his face", furthermore, the model hallucinates that the meme text "can be considered harmful and offensive to individuals who identify with the politician", resulting in the wrong prediction that the meme is harmful. Therefore, it is possible to improve MR.HARM by incorporating more informative vision features and improving language-vision interaction to be capable of understanding the images with more complex background knowledge.
|
| 237 |
+
|
| 238 |
+
<table><tr><td>Version</td><td>Harm-C</td><td>Harm-P</td><td>FHM</td></tr><tr><td>Small</td><td>84.99</td><td>85.33</td><td>72.96</td></tr><tr><td>Base</td><td>85.43</td><td>89.57</td><td>75.10</td></tr><tr><td>Large</td><td>84.02</td><td>90.14</td><td>77.80</td></tr></table>
|
| 239 |
+
|
| 240 |
+
Table 3: Macro-averaged F1 score $(\%)$ achieved with different versions of our fine-tuned LMs.
|
| 241 |
+
|
| 242 |
+
# 4.6 Discussion
|
| 243 |
+
|
| 244 |
+
As our two-stage training paradigm requires distilling the reasoning knowledge and leveraging original vision features, we utilize the T5 encoder-decoder architecture (Raffel et al., 2020; Chung et al., 2022) to initialize our generative framework. To test the generality of the benefits of our approach to different versions of the backbone, we alter the underlying LMs to other variants in different sizes. As shown in Table 3, one interesting phenomenon is that our model has already achieved outstanding performance on the three benchmarks with the Small (about 60M parameters) or Base ((about 220M parameters)) version as the backbone, which has a smaller size than the state-of-the-art baseline MaskPrompt (over 300M parameters). The Large version of our backbone generally achieved better performance than the other two backbone versions because the larger the fine-tuned LMs, the more it alleviates the hallucination issue (Ji et al., 2023). Overall, the results show that our framework does not rely excessively on the size of the backbone to improve performance and is generally effective with different versions of the backbone model.
|
| 245 |
+
|
| 246 |
+
# 5 Conclusion and Future Work
|
| 247 |
+
|
| 248 |
+
In this paper, we propose to capture implicit meaning that is not explicitly conveyed through the surface of the text and image in memes for harmful meme detection. We first conduct abductive reasoning with LLMs. Then we present a novel generative framework to distill multimodal reasoning knowledge from LLMs, which includes two training stages: 1) reasoning distillation and 2) harmfulness inference. Results on three meme benchmarks confirm the advantages of our proposed framework. For future work, since it is harder to judge the quality of the intermediate reasoning, where the evaluation is necessarily qualitative, we plan to do some sort of systematic study towards explainable harmful meme detection to claim explainability through a human subjects study for evaluation.
|
| 249 |
+
|
| 250 |
+
# Limitations
|
| 251 |
+
|
| 252 |
+
There are multiple ways to further improve this work:
|
| 253 |
+
|
| 254 |
+
- Despite this work focusing on performance improvement of harmful meme detection, it is harder to judge the quality of the intermediate reasoning, where the evaluation is necessarily qualitative. Considering that our framework could generate readable snippets for cognition-view reasoning, we plan to do some sort of systematic study to claim explainability for the evaluation, which would be another more targeted research.
|
| 255 |
+
- New benchmarks to evaluate the reasoning ability of our framework are demanded. We are going to further exploit LLMs toward explainable harmful meme detection from the perspectives like dataset construction and automatic evaluation.
|
| 256 |
+
- We only use the textual prompt to conduct abductive reasoning with accessible LLMs pretrained with the language modality. We would further update our framework by leveraging visual LLMs if accessible in the future to improve the visual feature extraction for exploring better multimodal reasoning knowledge distillation, and avoid several common deficiencies of existing language models including hallucination and limited generalization as much as possible.
|
| 257 |
+
|
| 258 |
+
# Acknowledgements
|
| 259 |
+
|
| 260 |
+
This work was partially supported by Hong Kong RGC ECS (Ref. 22200722) and National Natural Science Foundation of China Young Scientists Fund(No.62206233).
|
| 261 |
+
|
| 262 |
+
# Broader Impact
|
| 263 |
+
|
| 264 |
+
The purpose of this work is to prevent the spread of harmful meme information and to ensure that people are not subjected to prejudice, racial and gender discrimination. Nevertheless, we are aware of the potential for malicious users to reverse-engineer and create memes that go undetected or misunderstood by MR.HARM-trained AI systems. This is strongly discouraged and condemned. Intervention with human moderation would be required in order to ensure that this does not occur.
|
| 265 |
+
|
| 266 |
+
# References
|
| 267 |
+
|
| 268 |
+
Yejin Bang, Samuel Cahyawijaya, Nayeon Lee, Wenliang Dai, Dan Su, Bryan Wilie, Holy Lovenia, Ziwei Ji, Tiezheng Yu, Willy Chung, et al. 2023. A multitask, multilingual, multimodal evaluation of chatgpt on reasoning, hallucination, and interactivity. arXiv preprint arXiv:2302.04023.
|
| 269 |
+
Corey H Basch, Zoe Meleo-Erwin, Joseph Fera, Christie Jaime, and Charles E Basch. 2021. A global pandemic in the time of viral memes: Covid-19 vaccine misinformation and disinformation on tiktok. Human vaccines & immunotherapeutics, 17(8):2373-2377.
|
| 270 |
+
Lucas Beyer, Xiaohua Zhai, Amélie Royer, Larisa Markeeva, Rohan Anil, and Alexander Kolesnikov. 2022. Knowledge distillation: A good teacher is patient and consistent. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10925-10934.
|
| 271 |
+
Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. In Proceedings of the 34th International Conference on Neural Information Processing Systems, pages 1877-1901.
|
| 272 |
+
Cristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. 2006. Model compression. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pages 535-541.
|
| 273 |
+
Rui Cao, Roy Ka-Wei Lee, Wen-Haw Chong, and Jing Jiang. 2022. Prompting for multimodal hateful meme classification. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 321-332.
|
| 274 |
+
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2022. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311.
|
| 275 |
+
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.
|
| 276 |
+
Abhishek Das, Japsimar Singh Wahi, and Siyao Li. 2020. Detecting hate speech in multi-modal memes. arXiv preprint arXiv:2012.14891.
|
| 277 |
+
Ernest Davis and Gary Marcus. 2015. Commonsense reasoning and commonsense knowledge in artificial intelligence. Communications of the ACM, 58(9):92-103.
|
| 278 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep
|
| 279 |
+
|
| 280 |
+
bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171-4186.
|
| 281 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778.
|
| 282 |
+
Ming Shan Hee, Roy Ka-Wei Lee, and Wen-Haw Chong. 2022. On explaining multimodal hateful meme detection models. In Proceedings of the ACM Web Conference 2022, pages 3651-3655.
|
| 283 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.
|
| 284 |
+
Namgyu Ho, Laura Schmid, and Se-Young Yun. 2022. Large language models are reasoning teachers. arXiv preprint arXiv:2212.10071.
|
| 285 |
+
Ziwei Ji, Nayeon Lee, Rita Frieske, Tiezheng Yu, Dan Su, Yan Xu, Etsuko Ishii, Ye Jin Bang, Andrea Madotto, and Pascale Fung. 2023. Survey of hallucination in natural language generation. ACM Computing Surveys, 55(12):1-38.
|
| 286 |
+
Douwe Kiela, Suvrat Bhooshan, Hamed Firooz, Ethan Perez, and Davide Testuggine. 2019. Supervised multimodal bittransformers for classifying images and text. arXiv preprint arXiv:1909.02950.
|
| 287 |
+
Douwe Kiela, Hamed Firooz, Aravind Mohan, Vedanuj Goswami, Amanpreet Singh, Pratik Ringshia, and Davide Testuggine. 2020. The hateful memes challenge: detecting hate speech in multimodal memes. In Proceedings of the 34th International Conference on Neural Information Processing Systems, pages 2611-2624.
|
| 288 |
+
Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. 2023. Segment anything. arXiv preprint arXiv:2304.02643.
|
| 289 |
+
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. In ICML 2022 Workshop on Knowledge Retrieval and Language Models.
|
| 290 |
+
Zhanghui Kuang, Hongbin Sun, Zhizhong Li, Xiaoyu Yue, Tsui Hin Lin, Jianyong Chen, Huaqiang Wei, Yiqin Zhu, Tong Gao, Wenwei Zhang, et al. 2021. Mmocr: a comprehensive toolbox for text detection, recognition and understanding. In Proceedings of the 29th ACM International Conference on Multimedia, pages 3791-3794.
|
| 291 |
+
Roy Ka-Wei Lee, Rui Cao, Ziqing Fan, Jing Jiang, and Wen-Haw Chong. 2021. Disentangling hate in online memes. In Proceedings of the 29th ACM International Conference on Multimedia, pages 5138-5147.
|
| 292 |
+
|
| 293 |
+
Lianian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. 2019. Visualbert: A simple and performant baseline for vision and language. arXiv preprint arXiv:1908.03557.
|
| 294 |
+
Hongzhan Lin, Jing Ma, Liangliang Chen, Zhiwei Yang, Mingfei Cheng, and Chen Guang. 2022. Detect rumors in microblog posts for low-resource domains via adversarial contrastive learning. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 2543-2556.
|
| 295 |
+
Hongzhan Lin, Jing Ma, Mingfei Cheng, Zhiwei Yang, Liangliang Chen, and Guang Chen. 2021. Rumor detection on twitter with claim-guided hierarchical graph attention networks. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 10035-10047.
|
| 296 |
+
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. 2014. Microsoft coco: Common objects in context. In Computer Vision-ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13, pages 740-755. Springer.
|
| 297 |
+
Phillip Lippe, Nithin Holla, Shantanu Chandra, Santhosh Rajamanickam, Georgios Antoniou, Ekaterina Shutova, and Helen Yannakoudakis. 2020. A multimodal framework for the detection of hateful memes. arXiv preprint arXiv:2012.12871.
|
| 298 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
|
| 299 |
+
Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. 2019. Vilbert: pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In Proceedings of the 33rd International Conference on Neural Information Processing Systems, pages 13-23.
|
| 300 |
+
Ziyang Luo, Zhipeng Hu, Yadong Xi, Rongsheng Zhang, and Jing Ma. 2022. I-tuning: Tuning frozen language models with image for lightweight image captioning. ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP).
|
| 301 |
+
Jing Ma and Wei Gao. 2020. Debunking rumors on twitter with tree transformer. In Proceedings of the 28th International Conference on Computational Linguistics, pages 5455-5466.
|
| 302 |
+
Jing Ma, Wei Gao, Shafiq Joty, and Kam-Fai Wong. 2020. An attention-based rumor detection model with tree-structured recursive neural networks. ACM Transactions on Intelligent Systems and Technology (TIST), 11(4):1-28.
|
| 303 |
+
|
| 304 |
+
Lucie Charlotte Magister, Jonathan Mallinson, Jakub Adamek, Eric Malmi, and Aliaksei Severyn. 2022. Teaching small language models to reason. arXiv preprint arXiv:2212.08410.
|
| 305 |
+
Ron Mokady, Amir Hertz, and Amit H Bermano. 2021. Clipcap: Clip prefix for image captioning. arXiv preprint arXiv:2111.09734.
|
| 306 |
+
Niklas Muennighoff. 2020. Vilio: State-of-the-art visio-linguistic models applied to hateful memes. arXiv preprint arXiv:2012.07788.
|
| 307 |
+
Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, et al. 2021. Show your work: Scratchpads for intermediate computation with language models. arXiv preprint arXiv:2112.00114.
|
| 308 |
+
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.
|
| 309 |
+
Paul R Pintrich and Dale H Schunk. 2002. Motivation in education: Theory, research, and applications. Prentice Hall.
|
| 310 |
+
Shraman Pramanick, Dimitar Dimitrov, Rituparna Mukherjee, Shivam Sharma, Md Shad Akhtar, Preslav Nakov, and Tanmoy Chakraborty. 2021a. Detecting harmful memes and their targets. In *Findings of the Association for Computational Linguistics: ACL-IJCNLP* 2021, pages 2783-2796.
|
| 311 |
+
Shraman Pramanick, Shivam Sharma, Dimitar Dimitrov, Md Shad Akhtar, Preslav Nakov, and Tanmoy Chakraborty. 2021b. Momenta: A multimodal framework for detecting harmful memes and their targets. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 4439-4455.
|
| 312 |
+
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. 2021. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748-8763.
|
| 313 |
+
Jack W Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, et al. 2021. Scaling language models: Methods, analysis & insights from training gopher. arXiv preprint arXiv:2112.11446.
|
| 314 |
+
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.
|
| 315 |
+
|
| 316 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. 2016. Faster r-cnn: Towards real-time object detection with region proposal networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(6):1137-1149.
|
| 317 |
+
Vlad Sandulescu. 2020. Detecting hateful memes using a multimodal deep ensemble. arXiv preprint arXiv:2012.13235.
|
| 318 |
+
Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. 2018. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2556-2565.
|
| 319 |
+
Shivam Sharma, Firoj Alam, Md Shad Akhtar, Dimitar Dimitrov, Giovanni Da San Martino, Hamed Firooz, Alon Halevy, Fabrizio Silvestri, Preslav Nakov, and Tanmoy Chakraborty. 2022. Detecting and understanding harmful memes: A survey. In Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, pages 5597-5606.
|
| 320 |
+
Karen Simonyan and Andrew Zisserman. 2014. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556.
|
| 321 |
+
Shardul Suryawanshi, Bharathi Raja Chakravarthi, Michael Arcan, and Paul Buitelaar. 2020. Multimodal meme dataset (multioff) for identifying offensive content in image and text. In Proceedings of the second workshop on trolling, aggression and cyberbullying, pages 32-41.
|
| 322 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V Le. 2014. Sequence to sequence learning with neural networks. In Proceedings of the 27th International Conference on Neural Information Processing Systems-Volume 2, pages 3104-3112.
|
| 323 |
+
Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam Shazeer, Apoorv Kulshreshtha, Heng-Tze Cheng, Alicia Jin, Taylor Bos, Leslie Baker, Yu Du, et al. 2022. Lamda: Language models for dialog applications. arXiv preprint arXiv:2201.08239.
|
| 324 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In NIPS.
|
| 325 |
+
Riza Velioglu and Jewgeni Rose. 2020. Detecting hate speech in memes using multimodal deep learning approaches: Prize-winning solution to hateful memes challenge. arXiv preprint arXiv:2012.12975.
|
| 326 |
+
Peifeng Wang, Aaron Chan, Filip Ilievski, Muhao Chen, and Xiang Ren. 2022. Pinto: Faithful language reasoning using prompt-generated rationales. arXiv preprint arXiv:2211.01562.
|
| 327 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed H Chi, Quoc V Le, Denny Zhou,
|
| 328 |
+
|
| 329 |
+
et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems.
|
| 330 |
+
Zhuosheng Zhang, Aston Zhang, Mu Li, and Alex Smola. 2022. Automatic chain of thought prompting in large language models. arXiv preprint arXiv:2210.03493.
|
| 331 |
+
Yi Zhou, Zhenhao Chen, and Huiyuan Yang. 2021. Multimodal learning for hateful memes detection. In 2021 IEEE International Conference on Multimedia & Expo Workshops (ICMEW), pages 1-6. IEEE.
|
| 332 |
+
Jiawen Zhu, Roy Ka-Wei Lee, and Wen Haw Chong. 2022. Multimodal zero-shot hateful meme detection. In 14th ACM Web Science Conference 2022, pages 382-389.
|
| 333 |
+
Ron Zhu. 2020. Enhance multimodal transformer with external label and in-domain pretrain: Hateful meme challenge winning solution. arXiv preprint arXiv:2012.08290.
|
| 334 |
+
|
| 335 |
+
<table><tr><td rowspan="2">Datasets</td><td colspan="2">Train</td><td colspan="2">Test</td></tr><tr><td>#harmful</td><td>#harmless</td><td>#harmful</td><td>#harmless</td></tr><tr><td>Harm-C</td><td>1064</td><td>1949</td><td>124</td><td>230</td></tr><tr><td>Harm-P</td><td>1486</td><td>1534</td><td>173</td><td>182</td></tr><tr><td>FHM</td><td>3050</td><td>5450</td><td>250</td><td>250</td></tr></table>
|
| 336 |
+
|
| 337 |
+
# A Datasets
|
| 338 |
+
|
| 339 |
+
The detailed statistics of the three datasets are shown in Table 4.
|
| 340 |
+
|
| 341 |
+
# B Implementation Details
|
| 342 |
+
|
| 343 |
+
To separate the text and image in the memes, we first in-paint the memes by combining MMOCR (Kuang et al., 2021) with SAM (Kirillov et al., 2023) to extract the text and pure image. Then during the captioning process, since the focus of this work is primarily on the multimodal reasoning for harmful meme detection from a fresh perspective on harnessing LLMs, we apply a pretrained image captioning model ClipCap (Mokady et al., 2021) used in recent work (Cao et al., 2022), to generate textual descriptions about the dominant objects or events in the memes' image, which is utilized as the inputs into LLMs for abductive reasoning. To generate the rationale for each meme, we employed ChatGPT (Ouyang et al., 2022), a widely used LLM developed by OpenAI, specifically utilizing the "gpt-3.5-turbo" version. To make our results reproducible, we set the temperature as 0 and the maximum length as 256.
|
| 344 |
+
|
| 345 |
+
For the system prompt to the "gpt-3.5-turbo" model, we design the message as:
|
| 346 |
+
|
| 347 |
+
"You have been specially designed to perform abductive reasoning for the harmful meme detection task. Your primary function is that, according to a harmfulness label about an image with a text embedded, please provide a streamlined rationale, without explicitly indicating the label, for how it is reasoned as the given harmfulness label. The image and the textual content in the meme are often uncorrelated, but its overall semantics is presented holistically. Thus it is important to note that you are prohibited from relying on your own imagination, as your goal is to provide the most accurate and reliable rationale possible so that people can infer the harmfulness according to your reasoning about the background context and relationship between the given text and image."
|
| 348 |
+
|
| 349 |
+
Moreover, to prompt the LLMs to generate rea
|
| 350 |
+
|
| 351 |
+
Table 4: Statistics of Datasets.
|
| 352 |
+
|
| 353 |
+
<table><tr><td>Hyper-Parameter</td><td>Harm-C</td><td>Harm-P</td><td>FHM</td></tr><tr><td colspan="4">First-Stage</td></tr><tr><td>epoch</td><td>10</td><td>10</td><td>10</td></tr><tr><td>batch size</td><td>32</td><td>32</td><td>32</td></tr><tr><td>Learning Rate</td><td>5e-5</td><td>5e-5</td><td>5e-5</td></tr><tr><td>Warmup Step</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Warmup Strategy</td><td>Linear</td><td>Linear</td><td>Linear</td></tr><tr><td>Image Size</td><td>224</td><td>224</td><td>224</td></tr><tr><td colspan="4">Second-Stage</td></tr><tr><td>epoch</td><td>30</td><td>30</td><td>30</td></tr><tr><td>batch size</td><td>32</td><td>32</td><td>32</td></tr><tr><td>Learning Rate</td><td>5e-5</td><td>5e-4</td><td>1e-4</td></tr><tr><td>Warmup Step</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Warmup Strategy</td><td>Linear</td><td>Linear</td><td>Linear</td></tr><tr><td>Image Size</td><td>224</td><td>224</td><td>224</td></tr></table>
|
| 354 |
+
|
| 355 |
+
Table 5: Hyper-parameters.
|
| 356 |
+
|
| 357 |
+
sonable rationales with the triplet $\{y,\tilde{\mathcal{I}},\mathcal{T}\}$ as observed attributes, we design the template $p$ for the user prompt as:
|
| 358 |
+
|
| 359 |
+
"Given a Text: [T], which is embedded in an Image: [I]; and a harmfulness label [y], please give me a streamlined rationale associated with the meme, without explicitly indicating the label, for how it is reasoned as [y].".
|
| 360 |
+
|
| 361 |
+
Our MR.HARM model utilizes the T5 encoder-decoder architecture (Raffel et al., 2020; Chung et al., 2022) as its foundational framework, specifically utilizing the "flan-t5-base" version. For the extraction of image features, following previous work (Pramanick et al., 2021b), we adopted the state-of-the-art vision Transformer known as CLIPViT-B/32 (Radford et al., 2021), and this module remains static throughout the training process. To effectively integrate the multi-modal information, we incorporated a simple one-head cross-attention mechanism in each layer of the T5 encoder. During the fusion process, the text features are utilized as the query, while the image features act as the key and value. It is noteworthy that these fusion modules were initialized randomly. For the finetuning phase, we provide a comprehensive list of the hyper-parameters in Table 5. Results are averaged over ten random runs. All experiments were conducted using a single V100 32GiB GPU.
|
| 362 |
+
|
| 363 |
+
# C Baselines
|
| 364 |
+
|
| 365 |
+
We compare our model MR.HARM with several state-of-the-art harmful meme detection systems:
|
| 366 |
+
|
| 367 |
+
<table><tr><td>Dataset</td><td colspan="2">Harm-C</td><td colspan="2">Harm-P</td><td colspan="2">FHM</td></tr><tr><td>Version</td><td>Accuracy</td><td>Macro-F1</td><td>Accuracy</td><td>Macro-F1</td><td>Accuracy</td><td>Macro-F1</td></tr><tr><td>Small</td><td>85.59</td><td>84.99</td><td>85.35</td><td>85.33</td><td>73.20</td><td>72.96</td></tr><tr><td>Base</td><td>86.16</td><td>85.43</td><td>89.58</td><td>89.57</td><td>75.40</td><td>75.10</td></tr><tr><td>Large</td><td>85.03</td><td>84.02</td><td>90.14</td><td>90.14</td><td>78.20</td><td>77.80</td></tr></table>
|
| 368 |
+
|
| 369 |
+
Table 6: The detailed results with different sizes of our fine-tuned LMs.
|
| 370 |
+
|
| 371 |
+
<table><tr><td>Models</td><td>MOMENTA</td><td>MaskPrompt</td><td>MR.HARM</td></tr><tr><td>Multimodal Fusion</td><td>✓</td><td>✗</td><td>✓</td></tr><tr><td>Prompt Tuning</td><td>✗</td><td>✓</td><td>✓</td></tr><tr><td>Explicit Reasoning</td><td>✗</td><td>✗</td><td>✓</td></tr><tr><td>Leveraging LLMs</td><td>✗</td><td>✗</td><td>✓</td></tr></table>
|
| 372 |
+
|
| 373 |
+
Table 7: Comparison of characteristics between our MR.HARM with state-of-the-art models for harmful meme detection.
|
| 374 |
+
|
| 375 |
+
1) Text BERT: BERT (Devlin et al., 2019) is utilized as the unimodal text-only model; 2) ImageRegion: a unimodal visual-only model that processes meme images using Faster R-CNN (Ren et al., 2016) with ResNet-152 (He et al., 2016) to feed into a classification layer; 3) Late Fusion: a multimodal model uses the average prediction scores of BERT and ResNet-152 for harmful meme detection (Pramanick et al., 2021a); 4) MMBT: a multimodal Bi-Transformer (Kiela et al., 2019) that captures the intra-modal and inter-modal dynamics of the two modalities; 5) VisualBERT COCO: Visual BERT (Li et al., 2019) pre-trained on the COCO dataset (Lin et al., 2014); 6) ViLBERT CC: Vision and Language BERT (Lu et al., 2019) trained on an intermediate multimodal objective (Sharma et al., 2018) for task-agnostic joint representations of image and text; 7) MOMENTA: a multimodal harmful meme detection system (Pramanick et al., 2021b) that takes the global and local information in two modalities of memes into account; 8) MaskPrompt: a prompt learning approach (Cao et al., 2022) that converts harmful meme detection as a masked language modeling problem based on RoBERTa-large (Liu et al., 2019). We use accuracy and macro-averaged F1 score as the evaluation metrics, where the macro-averaged F1 is the more important metric owing to the imbalanced class prevalence (see Table 4), to capture competitive performance beyond the majority class.
|
| 376 |
+
|
| 377 |
+
While LLMs offer strong zero/few-shot performance as shown in the 'w/o Fine-tuning Small
|
| 378 |
+
|
| 379 |
+

|
| 380 |
+
Figure 5: The details of our Multimodal Fusion module.
|
| 381 |
+
|
| 382 |
+
LMs' setting in Table 2, they are challenging to serve in practice that requires at least 350GB GPU memory using specialized infrastructure for a single 175 billion LLM. This work presents a novel paradigm to leverage the reasoning ability and rich background knowledge of LLMs for better harmful meme detection, but just need to fine-tune the small language model even with a smaller size than the state-of-the-art baseline. Table 6 illustrates the detailed results on the three meme datasets with different versions of our fine-tuned backbone model. Table 7 illustrates the comparison of characteristics between MR.HARM and the state-of-the-art baselines like MOMENTA and MaskPrompt.
|
| 383 |
+
|
| 384 |
+
# D Illustration of Multimodal Fusion
|
| 385 |
+
|
| 386 |
+
Figure 5 illustrates the details of our multimodal fusion module in the encoding phase of MR.HARM.
|
| 387 |
+
|
| 388 |
+
# E Discussion about One-stage Training
|
| 389 |
+
|
| 390 |
+
We further investigate the one-stage training to figure out the intrinsic property of the chain-of-thought reasoning. We compare the performance with two proposed variants for the one-stage training: 1) Explanation where the rationale is utilized for explaining the harmfulness inference; 2) Reasoning where harmfulness inference is conditioned
|
| 391 |
+
|
| 392 |
+
<table><tr><td>Dataset</td><td colspan="2">Harm-C</td><td colspan="2">Harm-P</td><td colspan="2">FHM</td></tr><tr><td>Model</td><td>Accuracy</td><td>Macro-F1</td><td>Accuracy</td><td>Macro-F1</td><td>Accuracy</td><td>Macro-F1</td></tr><tr><td>Explanation</td><td>83.05</td><td>81.45</td><td>63.32</td><td>63.32</td><td>67.40</td><td>65.77</td></tr><tr><td>Reasoning</td><td>68.93</td><td>56.19</td><td>56.90</td><td>56.67</td><td>63.00</td><td>59.29</td></tr></table>
|
| 393 |
+
|
| 394 |
+
Table 8: Effects of the one-stage training.
|
| 395 |
+
|
| 396 |
+
to the rationale. As shown in Tabel 8, the reasoning setting performs worse than the explanation setting with a large margin. We conjecture that this is because the reasoning setting in the one-stage training could lead to error propagation if our small language model generates hallucinated rationales that mislead the harmfulness inference, which however could be well avoided by the two-stage training paradigm. Meanwhile, as there exists mutual interference between rationale generation and harmfulness prediction, the explanation setting could give the harmfulness inference higher priority in the sequence generation so that it performs better than the reasoning setting. We argue that such a one-stage training paradigm could be improved in the future by applying a filtering mechanism, e.g., using only the effective chain-of-thought reasoning to infer the harmfulness of memes and get rid of irrelevant rationales. In summary, both settings in the one-stage training paradigm suffer different degrees of performance degradation, which reaffirms the necessity of our two-stage training paradigm.
|
| 397 |
+
|
| 398 |
+
# F Future Work
|
| 399 |
+
|
| 400 |
+
We will explore the following directions in the future:
|
| 401 |
+
|
| 402 |
+
- Considering that our framework could generate readable snippets for cognition-view reasoning, we plan to do some sort of systematic study to claim explainability (possibly through a human subjects study) for the evaluation.
|
| 403 |
+
- In this work we target exploring the underlying reasoning process to empower the harmful meme detection model with the ability of explicit reasoning, to arrive at correct harmfulness predictions. We are going to further exploit LLMs toward explainable harmful meme detection from perspectives like dataset construction on social media with propagation structure (Lin et al., 2021; Ma and Gao, 2020;
|
| 404 |
+
|
| 405 |
+
Ma et al., 2020), automatic evaluation, and human evaluation.
|
| 406 |
+
|
| 407 |
+
- We would further update our framework by leveraging visual LLMs if accessible in the future to improve the visual feature extraction for better multimodal reasoning, and avoid several common deficiencies of existing language models including hallucination and limited generalization as much as possible.
|
2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48a7e9d795151df04e567fb9668ac01a4a9eb86cae16ee089fb3d5dda41f2c3a
|
| 3 |
+
size 614406
|
2023/Beneath the Surface_ Unveiling Harmful Memes with Multimodal Reasoning Distilled from Large Language Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/d96254f1-428d-46b8-a6d6-93195d523d44_content_list.json
ADDED
|
@@ -0,0 +1,1368 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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3 |
+
"type": "text",
|
| 4 |
+
"text": "Better Together: Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
132,
|
| 8 |
+
79,
|
| 9 |
+
867,
|
| 10 |
+
118
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Alla Chepurova<sup>1</sup> Aydar Bulatov<sup>1</sup> Yuri Kuratov<sup>1,2</sup> Mikhail Burtsev<sup>3</sup>",
|
| 17 |
+
"bbox": [
|
| 18 |
+
189,
|
| 19 |
+
124,
|
| 20 |
+
815,
|
| 21 |
+
142
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{1}$ Neural Networks and Deep Learning Lab, MIPT, Dolgoprudny, Russia $^{2}$ AIRI, Moscow, Russia",
|
| 28 |
+
"bbox": [
|
| 29 |
+
208,
|
| 30 |
+
158,
|
| 31 |
+
791,
|
| 32 |
+
190
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "$^{3}$ London Institute for Mathematical Sciences, London, UK\nchepurova@deeppavlov.ai, {bulatov.as, yurii.kuratov}@phystech.edu, mb@lims.ac.uk",
|
| 39 |
+
"bbox": [
|
| 40 |
+
110,
|
| 41 |
+
192,
|
| 42 |
+
892,
|
| 43 |
+
225
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
252,
|
| 54 |
+
339,
|
| 55 |
+
266
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Real-world Knowledge Graphs (KGs) often suffer from incompleteness, which limits their potential performance. Knowledge Graph Completion (KGC) techniques aim to address this issue. However, traditional KGC methods are computationally intensive and impractical for large-scale KGs, necessitating the learning of dense node embeddings and computing pairwise distances. Generative transformer-based language models (e.g., T5 and recent KGT5) offer a promising solution as they can predict the tail nodes directly. In this study, we propose to include node neighborhoods as additional information to improve KGC methods based on language models. We examine the effects of this imputation and show that, on both inductive and transductive Wikidata subsets, our method outperforms KGT5 and conventional KGC approaches. We also provide an extensive analysis of the impact of neighborhood on model prediction and show its importance. Furthermore, we point the way to significantly improve KGC through more effective neighborhood selection.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
141,
|
| 64 |
+
280,
|
| 65 |
+
460,
|
| 66 |
+
621
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
114,
|
| 76 |
+
634,
|
| 77 |
+
258,
|
| 78 |
+
651
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Knowledge graphs (KG) represent structured information in the form of a directed multi-relational graph with entities as the graph's nodes and relations between entities as the graph's edges. Entities in such graphs could be both real-world objects or abstract concepts. KGs are represented as a set of triplets with representation entities and a relation between them, i.e. (head entity, relation, tail entity) or (h, r, t) for short. Due to KGs' recent rapid development, they are now widely used in a variety of applications, including data mining, information retrieval, question answering, and recommendation systems. However, most real-world knowledge graphs suffer from incompleteness. Knowledge graph completion (KGC) algorithms attempt to fill in the gaps in the KG in order to solve this problem.",
|
| 85 |
+
"bbox": [
|
| 86 |
+
112,
|
| 87 |
+
661,
|
| 88 |
+
490,
|
| 89 |
+
919
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/6c44ba12738f48bf1c00f3a91a33c87e489458c8b3a0b7bde9195a8c4a966177.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Graph completion pipeline. We extract and verbalize neighborhood of a triplet head node from the Knowledge Graph (KG). Language Model uses verbalized input triplet and neighborhood to make predictions. Predictions can be used for question answering or KG completion."
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
510,
|
| 102 |
+
250,
|
| 103 |
+
877,
|
| 104 |
+
399
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "KG link prediction commonly involves learning knowledge graph embeddings (KGE), which capture structural and semantic information about KG nodes, relations, and their neighborhoods in a way that a simple distance-based function would be able to distinguish real triplets from false ones. However, building a unique embedding for each node and relation leads to a linear increase in model size and inference time as the KG size grows. Another drawback is that KG updating requires full re-training of KGEs, rather than simply learning new embeddings for updated entities or relations.",
|
| 111 |
+
"bbox": [
|
| 112 |
+
507,
|
| 113 |
+
511,
|
| 114 |
+
884,
|
| 115 |
+
705
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Application of language models (LMs) to KGC tasks is a promising direction (Pan et al., 2023). State-of-the-art performance in most natural language processing (NLP) tasks has recently been demonstrated by pre-trained language models like BERT (Devlin et al., 2019) and more recent large or foundational language models (Brown et al., 2020; Chowdhery et al., 2022; Touvron et al., 2023). Language models-based approaches, such as KG-BERT (Yao et al., 2019), BERTRL (Zha et al., 2022), KGT5 (Saxena et al., 2022) and GenKGC (Xie et al., 2022) consider a triplet in the KG as a text sequence. While distance-based",
|
| 122 |
+
"bbox": [
|
| 123 |
+
507,
|
| 124 |
+
709,
|
| 125 |
+
884,
|
| 126 |
+
919
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 0
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "page_number",
|
| 132 |
+
"text": "5306",
|
| 133 |
+
"bbox": [
|
| 134 |
+
480,
|
| 135 |
+
927,
|
| 136 |
+
521,
|
| 137 |
+
940
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 0
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "footer",
|
| 143 |
+
"text": "Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5306-5316 December 6-10, 2023 ©2023 Association for Computational Linguistics",
|
| 144 |
+
"bbox": [
|
| 145 |
+
216,
|
| 146 |
+
945,
|
| 147 |
+
781,
|
| 148 |
+
973
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 0
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "methods incorporate more structural information in dense embeddings, language models tend to capture more semantic information contained in both relations and entities of KG, enabling such models to embed previously unseen entities and operate on new facts based on semantic information contained in triplets textual representation. Thus, KGT5 positions KG link prediction as sequence-to-sequence tasks. KGT5 model trained to generate target node using textually verbalized triplets achieves competitive performance and offers a scalable and simple framework for KGC and QA tasks.",
|
| 155 |
+
"bbox": [
|
| 156 |
+
112,
|
| 157 |
+
84,
|
| 158 |
+
492,
|
| 159 |
+
277
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "Current methods based on language models (KG-BERT, BERTRL, KGT5, and GenKGC) rely only on information that can be extracted from LMs parameters. However, since KG itself is available, we build a method that relies on both internal language model knowledge and external information from KG. For the link prediction task $(h,r,\\ref{eq:1})$ , we propose to extract nodes and relations adjacent to $h$ from the KG, i.e. the neighborhood. Node $h$ with its neighborhood better together represents $h$ itself: neighborhood may contain clues such as Palo Alto and United States of America for the triplet (Steve Jobs, place of birth, ?) on Figure 1.",
|
| 166 |
+
"bbox": [
|
| 167 |
+
115,
|
| 168 |
+
282,
|
| 169 |
+
490,
|
| 170 |
+
491
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Though some efforts have been made to incorporate neighborhood into the KGC algorithms (Chen et al., 2020), our proposed pipeline inherits the benefits of generative LLMs compared to KGE approaches: (1) scalability and size of the model, (2) applicability to both transductive and inductive KGs due to an ability to generalize unseen entities, (3) no need to rank all possible candidate triplets due to direct generation of tail entity. Also, a concurrent work by the KGT5 authors, KGT5-context (Kochsiek et al., 2023), proposed a similar idea of integrating node neighborhood in the context of the generative LM model, supporting the main concerns and results of our study.",
|
| 177 |
+
"bbox": [
|
| 178 |
+
112,
|
| 179 |
+
495,
|
| 180 |
+
490,
|
| 181 |
+
721
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "Our contributions are as follows: (1) we propose a generative graph completion method which effectively integrates language models with graph neighborhood information. (2) We show that incorporating graph information into multiple generative language models achieve strong performance improvement of link prediction in both transductive and inductive settings. Moreover, our approach achieves state-of-the-art results on the inductive ILPC dataset. (3) We analyze and evaluate the impact of adding neighborhood information on the performance of the models.",
|
| 188 |
+
"bbox": [
|
| 189 |
+
112,
|
| 190 |
+
726,
|
| 191 |
+
492,
|
| 192 |
+
919
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "2 Methods",
|
| 199 |
+
"text_level": 1,
|
| 200 |
+
"bbox": [
|
| 201 |
+
509,
|
| 202 |
+
83,
|
| 203 |
+
621,
|
| 204 |
+
98
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "One can represent KG more formally as $\\mathcal{G} = (\\mathcal{T},\\mathcal{E},\\mathcal{R})$ , where $\\mathcal{E}$ is a set of entities, $\\mathcal{R}$ is a set of relations and $\\mathcal{T}$ is a set of triplets $\\mathcal{T} \\in \\mathcal{E} \\times \\mathcal{R} \\times \\mathcal{E}$ . Therefore, the formulation of the KGC task is the following: for each triplet $\\mathcal{T}_i = (h,r,t)$ , where $h \\in \\mathcal{E}, t \\in \\mathcal{E}, r \\in \\mathcal{R}$ , answer both $(h,r,?)$ and $(?,r,t)$ queries on the graph $\\mathcal{G} / \\mathcal{T}_i$ . The KGC tasks can have different variations depending on the KG type: inductive and transductive. In a transductive setting the KGC task is formulated as follows: given a train KG $\\mathcal{G}_{train} = (\\mathcal{T}_{train},\\mathcal{E},\\mathcal{R})$ train the model to predict on the inference KG $\\mathcal{G}_{inference} = (\\mathcal{T}_{inference},\\mathcal{E},\\mathcal{R})$ , therefore in the train and inference KG there is a same set of entities and relations. In inductive KGC the model is trained on the KG $\\mathcal{G}_{train} = (\\mathcal{T}_{train},\\mathcal{R},\\mathcal{E}_{train})$ and predicts the inference KG $\\mathcal{G}_{inference} = (\\mathcal{T}_{inference},\\mathcal{R},\\mathcal{E}_{inference})$ , so the trained model observed only on the entities from train subgraph of KG.",
|
| 211 |
+
"bbox": [
|
| 212 |
+
507,
|
| 213 |
+
112,
|
| 214 |
+
885,
|
| 215 |
+
418
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "We followed the KGT5 (Saxena et al., 2022) approach to the KGC task using an encoder-decoder Transformer based on T5 (Raffel et al., 2020). The link prediction task was posed as follows: for each triplet $(entity_1, relation, entity_2)$ from KG we had to predict the tail in the queries $(entity_1, relation, ?)$ and $(entity_2, relation^{-1}, ?)$ . To generate input for the model, we converted such queries into a text form. Apart from the query verbalization only as in KGT5, we formed a neighborhood for the node and relations for each triplet in KG. Thus, verbalized queries and their neighborhoods in the form of text were fed to the input of the model for training (see Figure 1) and later to predict incomplete triplets. We form a neighborhood of nodes that have an edge with the triplet head node (1-hop neighbors). The number of adjacent nodes may be too large to fit into the context size of selected language models. Therefore, we sort them based on relation semantic similarity. We take only those verbalized nodes and relations that fit into the max sequence length. We provide more details on neighborhood formation in Appendix B and verbalization in Appendix C.",
|
| 222 |
+
"bbox": [
|
| 223 |
+
507,
|
| 224 |
+
419,
|
| 225 |
+
885,
|
| 226 |
+
820
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 1
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "To evaluate our approach to link prediction tasks we used publically available transductive and inductive KGs. Specifically, we used the Wiki-data5M (Wang et al., 2021) dataset, which is one of the largest publicly available transductive KG up-to-date and large and small versions of ILPC",
|
| 233 |
+
"bbox": [
|
| 234 |
+
507,
|
| 235 |
+
822,
|
| 236 |
+
885,
|
| 237 |
+
919
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 1
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "page_number",
|
| 243 |
+
"text": "5307",
|
| 244 |
+
"bbox": [
|
| 245 |
+
480,
|
| 246 |
+
927,
|
| 247 |
+
521,
|
| 248 |
+
940
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 1
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "dataset (Galkin et al., 2022), the largest fully inductive benchmark. ILPC inference graph size is challenging for modern GNN methods with inductive capabilities (Galkin et al., 2022). Apart from being challenging to solve by common approaches, the ILPC KGs are much more sparse than the transductive Wikidata5M. The graph size and sparseness of the data make the task hard for existing methods and result in modest performance metrics. Still, there were no existing solutions that beat the baseline provided in the ILPC paper. Both used datasets are the subsets of the real-world KG - Wikidata. Datasets' statistics are provided in the Table 4).",
|
| 255 |
+
"bbox": [
|
| 256 |
+
110,
|
| 257 |
+
84,
|
| 258 |
+
492,
|
| 259 |
+
294
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "We compared models with and without neighborhoods to evaluate our hypothesis that neighborhoods help to better together represent graph node. In addition, unlike the KGT5, we experimented with different model configurations, both fine-tuning an existing pre-trained model and training from scratch as common knowledge obtained during language models pre-training might be useful on real-world knowledge graphs like Wikidata.",
|
| 266 |
+
"bbox": [
|
| 267 |
+
110,
|
| 268 |
+
294,
|
| 269 |
+
490,
|
| 270 |
+
439
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "We used the T5-small with 60M parameters as our base model with both pretrained and randomly initialized weights to evaluate the effect of pretraining of the language model on the KG task. We added additional \"[SEP]\" tokens to the tokenizer with 30K tokens vocabulary to separate query and neighborhood. The model was trained using AdamW optimizer (Loshchilov and Hutter, 2019), 1e-5 learning rate, $10\\%$ dropout, and batch size equals 320. The number of training steps was equal to 5M for the Wikidata5M dataset and 2M for all others. For multi-gpu training, we used the Horovod parallelization framework (Sergeev and Balso, 2018). In cases where a batch size equal to 320 did not fit GPU, we used gradient accumulation steps. We also benchmarked OpenAI gpt-3.5-turbo<sup>1</sup> zero-shot link prediction and evaluate the benefits of a neighborhood on LLM (see Appendix G). The code for all the described experiments is available at the link<sup>2</sup>.",
|
| 277 |
+
"bbox": [
|
| 278 |
+
110,
|
| 279 |
+
439,
|
| 280 |
+
489,
|
| 281 |
+
760
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "As KGT5, our model produces a probability distribution over all possible tokens in the vocabulary at each step of decoding. Such distribution is penalized for not matching the actual distribution, i.e., for the difference between the real target token at position $i$ and the generated token at step $i$ using",
|
| 288 |
+
"bbox": [
|
| 289 |
+
112,
|
| 290 |
+
760,
|
| 291 |
+
489,
|
| 292 |
+
858
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 2
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "text",
|
| 298 |
+
"text": "CE loss. Such an approach is principally different from distance-based methods as it does not require generating negative samples to make them further from the target prediction for each training query. In this way, training iteration becomes independent of the KG size.",
|
| 299 |
+
"bbox": [
|
| 300 |
+
507,
|
| 301 |
+
84,
|
| 302 |
+
884,
|
| 303 |
+
179
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "To form predictions, we first verbalize the query (head, relation,?) and pass it as an input to the generative model to produce an output sequence, which will be a verbalization of the target entity id. For inference, we employed two strategies. The first one was sampling $k$ most probable sequences from the decoder. We follow the KGT5 (Saxena et al., 2022) setting and use a sample size of 50. We apply this approach to Wikidata5M datasets as it is transductive. The second option for inference was to search for the closest entities in KG to the generated one. We apply the second approach to ILPC inductive datasets as language models have to generate previously unseen entities. More details on inference procedure are in Appendix D.",
|
| 310 |
+
"bbox": [
|
| 311 |
+
507,
|
| 312 |
+
181,
|
| 313 |
+
884,
|
| 314 |
+
423
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "3 Results",
|
| 321 |
+
"text_level": 1,
|
| 322 |
+
"bbox": [
|
| 323 |
+
509,
|
| 324 |
+
439,
|
| 325 |
+
608,
|
| 326 |
+
455
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "The hypothesis behind our approach was that neighborhood information incorporated in a context fed to the language model should enhance link prediction of generative LM. Tables 1 and 2 demonstrate the performance of our technique on Wikidata5M and ILPC datasets under various conditions, including training a T5 model with and without neighbors, using a pre-trained model or training a model from scratch, and zero-shot with gpt-3.5-turbo.",
|
| 333 |
+
"bbox": [
|
| 334 |
+
507,
|
| 335 |
+
467,
|
| 336 |
+
884,
|
| 337 |
+
611
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "These results support the hypothesis that the quality of link prediction increases with the use of neighbors in the context of the generative model in both transductive and inductive settings. Moreover, our approach demonstrated SOTA performance on the ILPC dataset, while on Wikidata we achieved the best result among generative link prediction models, which is still comparable to scores of SOTA graph and LM methods with many more parameters. Relatively small absolute values of scores on the ILPC dataset can be explained by its fully inductive setup and larger sparseness compared to Wikidata5M. Still, there are no publicly available solutions that exceed the baseline score provided by ILPC authors. Our solution overperforms the existing baseline, is elegantly simple, and more interpretable than GNN-based solutions. Experiments on pre-trained models revealed that pre-training speeds up convergence but degrades",
|
| 344 |
+
"bbox": [
|
| 345 |
+
507,
|
| 346 |
+
613,
|
| 347 |
+
884,
|
| 348 |
+
919
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "page_footnote",
|
| 354 |
+
"text": "$^{1}$ gpt-3.5-turbo-0613: https://platform.openai.com/docs/models/gpt-3-5 \n $^{2}$ https://github.com/screemix/kgc-t5-with-neighbors",
|
| 355 |
+
"bbox": [
|
| 356 |
+
112,
|
| 357 |
+
866,
|
| 358 |
+
489,
|
| 359 |
+
917
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 2
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "page_number",
|
| 365 |
+
"text": "5308",
|
| 366 |
+
"bbox": [
|
| 367 |
+
480,
|
| 368 |
+
928,
|
| 369 |
+
519,
|
| 370 |
+
940
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 2
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "table",
|
| 376 |
+
"img_path": "images/7f6ebbe7967f00a87dd33eb144e9a1ba3edc8877cd8ec1114a0c6d8f1de2652f.jpg",
|
| 377 |
+
"table_caption": [
|
| 378 |
+
"Table 1: Adding a neighborhood persistently improves results on the link prediction task. We report Hits@k metrics on Wikidata5M, ILPC-small, and ILPC-large test sets. Arrows $\\uparrow\\downarrow$ show the effect of the neighborhood on language models. Neighbors allow to achieve the best performance considering the number of model parameters."
|
| 379 |
+
],
|
| 380 |
+
"table_footnote": [],
|
| 381 |
+
"table_body": "<table><tr><td rowspan=\"2\">MODEL</td><td colspan=\"3\">WIKIDATA5M</td><td colspan=\"3\">ILPC-SMALL</td><td colspan=\"3\">ILPC-LARGE</td><td rowspan=\"2\">#PARAMS</td></tr><tr><td>H@1</td><td>H@3</td><td>H@10</td><td>H@1</td><td>H@3</td><td>H@10</td><td>H@1</td><td>H@3</td><td>H@10</td></tr><tr><td>KGT5 (SAXENA ET AL., 2022)</td><td>0.267</td><td>0.318</td><td>0.365</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>TRANSE (BORDES ET AL., 2013)</td><td>0.170</td><td>0.311</td><td>0.392</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>2,400M</td></tr><tr><td>COMPLEX (TROULLON ET AL., 2016)</td><td>0.255</td><td>-</td><td>0.398</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>614M</td></tr><tr><td>KEPLER (WANG ET AL., 2021)</td><td>0.173</td><td>0.224</td><td>0.277</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>125M</td></tr><tr><td>SIMKGC (WANG ET AL., 2022)</td><td>0.313</td><td>0.376</td><td>0.441</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>220M</td></tr><tr><td>INDNODEPIECE (GALKIN ET AL., 2022)</td><td>-</td><td>-</td><td>-</td><td>0.007</td><td>0.022</td><td>0.092</td><td>0.037</td><td>0.054</td><td>0.125</td><td>15.5K</td></tr><tr><td>INDNODEPIECEGNN (GALKIN ET AL., 2022)</td><td>-</td><td>-</td><td>-</td><td>0.076</td><td>0.140</td><td>0.251</td><td>0.032</td><td>0.073</td><td>0.146</td><td>24K</td></tr><tr><td>T5-SMALL NOT PRE-TRAINED</td><td>0.240</td><td>0.286</td><td>0.323</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>T5-SMALL NOT PRE-TRAINED + NEIGHBORS</td><td>0.327↑</td><td>0.363↑</td><td>0.386↑</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>T5-SMALL PRE-TRAINED</td><td>0.205</td><td>0.248</td><td>0.282</td><td>0.073</td><td>0.117</td><td>0.177</td><td>0.112</td><td>0.137</td><td>0.194</td><td>60M</td></tr><tr><td>T5-SMALL PRE-TRAINED + NEIGHBORS</td><td>0.306↑</td><td>0.342↑</td><td>0.361↑</td><td>0.076↑</td><td>0.137↑</td><td>0.209↑</td><td>0.114↑</td><td>0.139↑</td><td>0.200↑</td><td>60M</td></tr><tr><td>T5-BASE PRE-TRAINED</td><td>-</td><td>-</td><td>-</td><td>0.073</td><td>0.130</td><td>0.199</td><td>0.110</td><td>0.136</td><td>0.198</td><td>220M</td></tr><tr><td>T5-BASE PRE-TRAINED + NEIGHBORS</td><td>-</td><td>-</td><td>-</td><td>0.082↑</td><td>0.142↑</td><td>0.216↑</td><td>0.116↑</td><td>0.141↑</td><td>0.215↑</td><td>220M</td></tr></table>",
|
| 382 |
+
"bbox": [
|
| 383 |
+
117,
|
| 384 |
+
134,
|
| 385 |
+
880,
|
| 386 |
+
296
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "table",
|
| 392 |
+
"img_path": "images/7a2c7e6eddfe32cfd6aa5ad214cfee308d13a2d992cf388cf97109f4823de9f1.jpg",
|
| 393 |
+
"table_caption": [
|
| 394 |
+
"Table 2: Neighbor information improves zero-shot link prediction with OpenAI gpt-3.5-turbo-0613. *ILPC-Large results were obtained on 5000 random samples from the test set."
|
| 395 |
+
],
|
| 396 |
+
"table_footnote": [],
|
| 397 |
+
"table_body": "<table><tr><td rowspan=\"2\">DATASET</td><td colspan=\"2\">GPT</td><td colspan=\"2\">GPT+NEIGH</td></tr><tr><td>H@1</td><td>H@3</td><td>H@1</td><td>H@3</td></tr><tr><td>WIKIDATA5M</td><td>0.098</td><td>0.131</td><td>0.113↑</td><td>0.157↑</td></tr><tr><td>ILPC-SMOTE</td><td>0.079</td><td>0.107</td><td>0.084↑</td><td>0.118↑</td></tr><tr><td>ILPC-LARGE*</td><td>0.103</td><td>0.134</td><td>0.114↑</td><td>0.150↑</td></tr></table>",
|
| 398 |
+
"bbox": [
|
| 399 |
+
117,
|
| 400 |
+
382,
|
| 401 |
+
482,
|
| 402 |
+
464
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 3
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "the quality of the model by a few points compared to the one trained from scratch.",
|
| 409 |
+
"bbox": [
|
| 410 |
+
112,
|
| 411 |
+
481,
|
| 412 |
+
487,
|
| 413 |
+
513
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "Also, we demonstrated that neighbors' information enhances performance across different generative models. This includes open-source models such as T5, as well as proprietary models like OpenAI GPTs that are distributed as a model-as-a-service. Although both types of models have their own advantages and limitations, it should be noted that OpenAI GPTs are black box models that cannot be modified or interpreted further. Usage of OpenAI GPTs is restricted in the case of more specialized or proprietary KGs that can store secure or non-public information. In the context of our study, OpenAI's gpt-3.5-turbo has a much larger size and cost, compared to smaller and transparent T5, still our approach improves the performance of both models.",
|
| 420 |
+
"bbox": [
|
| 421 |
+
112,
|
| 422 |
+
514,
|
| 423 |
+
489,
|
| 424 |
+
772
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "To get an understanding of how proposed models learn to use neighboring triplets we compared predictions of models trained with and without graph information in the input. One possible case when neighbors help in link prediction is when a target entity is somehow mentioned in the model input. Because of neighborhood filtering, the target triplet never appears in the model input, however in some cases target entity can occur with different relations",
|
| 431 |
+
"bbox": [
|
| 432 |
+
112,
|
| 433 |
+
774,
|
| 434 |
+
489,
|
| 435 |
+
919
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 3
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "or as a substring of another entity in a neighborhood or even in the task itself (Table 3). Despite the tail appearing in input only in a small portion of the test set, the neighborhood model learns to make use of such hints, outperforming the baseline T5 in all selected cases. The high solution rate of more than 4 out of 5 samples with hinted targets supports the importance of properly selected neighborhoods.",
|
| 442 |
+
"bbox": [
|
| 443 |
+
507,
|
| 444 |
+
319,
|
| 445 |
+
884,
|
| 446 |
+
449
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 3
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "image",
|
| 452 |
+
"img_path": "images/5698b3c281989d6aa2353541bb11b453758af5dddfb1167abd98b62546208800.jpg",
|
| 453 |
+
"image_caption": [
|
| 454 |
+
"Figure 2: KG neighborhood is critical for the model performance. The plot shows how the quality of link prediction depends on the number of neighborhood triplets removed from the input context Wikidata5M T5-small not pre-trained model. The blue solid line corresponds to removing the most relevant triplets and the dashed red line represents random selection."
|
| 455 |
+
],
|
| 456 |
+
"image_footnote": [],
|
| 457 |
+
"bbox": [
|
| 458 |
+
512,
|
| 459 |
+
461,
|
| 460 |
+
878,
|
| 461 |
+
606
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "To evaluate the impact of neighborhoods, we analyzed triplets' importance by sorting them based on how they affect the probability of the target node prediction. As Figure 2 shows, a performance of the model quickly deteriorates with the removal of important triplets from the context. This implies potential avenues for improvement by prioritizing significant triplets selection prior to model training. Moreover, we analyzed attention maps of the model train on Wikidata5M and found that it indeed pays attention to relevant neighbors, e.g. Appendix F.",
|
| 468 |
+
"bbox": [
|
| 469 |
+
507,
|
| 470 |
+
725,
|
| 471 |
+
884,
|
| 472 |
+
902
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "The analysis shows that adding relevant graph",
|
| 479 |
+
"bbox": [
|
| 480 |
+
526,
|
| 481 |
+
903,
|
| 482 |
+
882,
|
| 483 |
+
919
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 3
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "page_number",
|
| 489 |
+
"text": "5309",
|
| 490 |
+
"bbox": [
|
| 491 |
+
480,
|
| 492 |
+
927,
|
| 493 |
+
519,
|
| 494 |
+
940
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 3
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "table",
|
| 500 |
+
"img_path": "images/44aa4c813723da2c78153b8d920bb89837ac5bf36c49d54eb0ac363c450af5da.jpg",
|
| 501 |
+
"table_caption": [
|
| 502 |
+
"Table 3: Adding relevant neighbors improves link prediction for T5-small on the Wikidata test set. The table shows the exact match depending on a hint of the target entity's appearance as a part of the model input."
|
| 503 |
+
],
|
| 504 |
+
"table_footnote": [],
|
| 505 |
+
"table_body": "<table><tr><td>Target position</td><td>T5</td><td>T5 + Neighbors</td><td>frequency</td></tr><tr><td>In task</td><td>0.93</td><td>0.94↑</td><td>5 %</td></tr><tr><td>In neighborhood</td><td>0.34</td><td>0.82↑</td><td>8 %</td></tr><tr><td>Not in input</td><td>0.18</td><td>0.24↑</td><td>87 %</td></tr><tr><td>Total</td><td>0.23</td><td>0.32↑</td><td>100 %</td></tr></table>",
|
| 506 |
+
"bbox": [
|
| 507 |
+
115,
|
| 508 |
+
149,
|
| 509 |
+
482,
|
| 510 |
+
227
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 4
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "context information greatly enhances link prediction. Hence one way of improving performance is increasing neighborhood size by adding k-hop neighbors. Due to the quadratic complexity of attention and the limited input size of pretrained transformers, processing exponentially growing neighborhoods would be computationally expensive. To deal with large input sizes one can use efficient T5 architectures with input sizes up to 32k (Guo et al., 2022) and 64k (Ainslie et al., 2023) tokens or recurrent approaches (Bulatov et al., 2022; Hutchins et al., 2022) that can sequentially process effectively unlimited neighborhood sizes. Another potential way of subgraph selection is to add relevant but more distant knowledge graph information, such as random walks or more sophisticated methods (Das et al., 2018).",
|
| 517 |
+
"bbox": [
|
| 518 |
+
115,
|
| 519 |
+
244,
|
| 520 |
+
489,
|
| 521 |
+
518
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 4
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "4 Conclusions and Future work",
|
| 528 |
+
"text_level": 1,
|
| 529 |
+
"bbox": [
|
| 530 |
+
112,
|
| 531 |
+
536,
|
| 532 |
+
405,
|
| 533 |
+
551
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "Our study found that incorporating KG neighborhood information into a generative model's context can enhance the quality of the link prediction task. We trained the T5-small model on transductive Wikidata5M and inductive ILPC datasets with various configurations and showed that coupling the node and its neighborhood information together better represents the node. Our approach significantly outperformed baselines on the largest real-world KGCs, with a comparable or fewer number of parameters. We also demonstrated that OpenAI's gpt-3.5-turbo performance on the KGC task also benefits from neighborhood information without prior fine-tuning. In addition to the quality improvement, we analyzed the impact of neighborhood imputation, highlighting the significance of selecting relevant triplets or extending the model's context in future works. Furthermore, future studies could explore the impact of model size, the effect of neighborhood imputation on the datasets from other domains, and neighborhood selection strategies.",
|
| 540 |
+
"bbox": [
|
| 541 |
+
115,
|
| 542 |
+
565,
|
| 543 |
+
489,
|
| 544 |
+
917
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "Limitations",
|
| 551 |
+
"text_level": 1,
|
| 552 |
+
"bbox": [
|
| 553 |
+
509,
|
| 554 |
+
83,
|
| 555 |
+
615,
|
| 556 |
+
98
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "Limitations of this study include the training of only relatively small models, with only T5 being employed. Further study of the benefits of larger models applied to KGC tasks should be performed. Additionally, each knowledge graph in this study was limited to only one model, which may not accurately represent more complex graphs that involve multiple datasets. Another limitation is that language models are better suited for real-world textual data and may not work well for KGC representing more specialized concepts, such as biology or medicine. Also, although neighborhood selection was performed, we cannot guarantee that the selected neighborhoods are optimal. Further works should include the way of extending the ability of models to capture larger parts of a graph or selecting the most relevant neighbors. Moreover, constructing prompts for testing GPT performance may not be optimal, and the model's maximal performance cannot be guaranteed without knowledge of its training data.",
|
| 563 |
+
"bbox": [
|
| 564 |
+
507,
|
| 565 |
+
111,
|
| 566 |
+
884,
|
| 567 |
+
449
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "Ethics Statement",
|
| 574 |
+
"text_level": 1,
|
| 575 |
+
"bbox": [
|
| 576 |
+
509,
|
| 577 |
+
463,
|
| 578 |
+
660,
|
| 579 |
+
479
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "As a field of study in the intersection of natural language processing and knowledge graphs, this work inherits the main ethical considerations of both of these domains. Automated graph completion tasks may produce various types of mistakes, including but not limited to factual and grammatical errors. Consequently, any application based on this work should employ robust error detection mechanisms prior to deployment. Additionally, given that our system employs a generative language model, there exists a risk of generating false or misleading content such as hallucinations and biases existing in pre-training and knowledge graph data. Users of the proposed method or any application based on it should be warned about the potential risks of using generative language models. Potential misuses may include purposeful disinformation and misleading language or factual information. Taking into account the aforementioned considerations, we believe that under ethically responsible usage this work will have a positive impact on artificial intelligence research and applications.",
|
| 586 |
+
"bbox": [
|
| 587 |
+
507,
|
| 588 |
+
491,
|
| 589 |
+
884,
|
| 590 |
+
845
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 4
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "Acknowledgements",
|
| 597 |
+
"text_level": 1,
|
| 598 |
+
"bbox": [
|
| 599 |
+
509,
|
| 600 |
+
860,
|
| 601 |
+
680,
|
| 602 |
+
876
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 4
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "We are grateful to Mikhail Galkin for valuable advice on knowledge graphs and introduction to the",
|
| 609 |
+
"bbox": [
|
| 610 |
+
507,
|
| 611 |
+
887,
|
| 612 |
+
882,
|
| 613 |
+
917
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 4
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "page_number",
|
| 619 |
+
"text": "5310",
|
| 620 |
+
"bbox": [
|
| 621 |
+
480,
|
| 622 |
+
927,
|
| 623 |
+
521,
|
| 624 |
+
940
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "ILPC dataset. We are thankful to SberDevices for granting us access to additional computational resources. A.C., A.B., and Y.K.'s work was supported by a grant for research centers in the field of artificial intelligence, provided by the Analytical Center for the Government of the Russian Federation in accordance with the subsidy agreement (agreement identifier 000000D730321P5Q0002) and the agreement with the Moscow Institute of Physics and Technology dated November 1, 2021 No. 70-2021-00138.",
|
| 631 |
+
"bbox": [
|
| 632 |
+
112,
|
| 633 |
+
84,
|
| 634 |
+
492,
|
| 635 |
+
261
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "References",
|
| 642 |
+
"text_level": 1,
|
| 643 |
+
"bbox": [
|
| 644 |
+
114,
|
| 645 |
+
287,
|
| 646 |
+
213,
|
| 647 |
+
303
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "list",
|
| 653 |
+
"sub_type": "ref_text",
|
| 654 |
+
"list_items": [
|
| 655 |
+
"Joshua Ainslie, Tao Lei, Michiel de Jong, Santiago Ontañón, Siddhartha Brahma, Yury Zemlyanskiy, David Uthus, Mandy Guo, James Lee-Thorp, Yi Tay, YunHsuan Sung, and Sumit Sanghai. 2023. Colt5: Faster long-range transformers with conditional computation.",
|
| 656 |
+
"Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. 2017. Enriching word vectors with subword information. Transactions of the association for computational linguistics, 5:135-146.",
|
| 657 |
+
"Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi-relational data. Advances in neural information processing systems, 26.",
|
| 658 |
+
"Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877-1901. Curran Associates, Inc.",
|
| 659 |
+
"Aydar Bulatov, Yury Kuratov, and Mikhail Burtsev. 2022. Recurrent memory transformer. In Advances in Neural Information Processing Systems, volume 35, pages 11079-11091. Curran Associates, Inc.",
|
| 660 |
+
"Sanxing Chen, Xiaodong Liu, Jianfeng Gao, Jian Jiao, Ruofei Zhang, and Yangfeng Ji. 2020. Hitter: Hierarchical transformers for knowledge graph embeddings. arXiv preprint arXiv:2008.12813.",
|
| 661 |
+
"Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2022. Palm: Scaling"
|
| 662 |
+
],
|
| 663 |
+
"bbox": [
|
| 664 |
+
115,
|
| 665 |
+
309,
|
| 666 |
+
489,
|
| 667 |
+
917
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 5
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "list",
|
| 673 |
+
"sub_type": "ref_text",
|
| 674 |
+
"list_items": [
|
| 675 |
+
"language modeling with pathways. arXiv preprint arXiv:2204.02311.",
|
| 676 |
+
"Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, Luke Vilnis, Ishan Durugkar, Akshay Krishnamurthy, Alex Smola, and Andrew McCallum. 2018. Go for a walk and arrive at the answer: Reasoning over paths in knowledge bases using reinforcement learning. In International Conference on Learning Representations.",
|
| 677 |
+
"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.",
|
| 678 |
+
"Mikhail Galkin, Max Berrendorf, and Charles Tapley Hoyt. 2022. An Open Challenge for Inductive Link Prediction on Knowledge Graphs. arXiv preprint arXiv:2203.01520.",
|
| 679 |
+
"Mandy Guo, Joshua Ainslie, David Uthus, Santiago Ontanon, Jianmo Ni, Yun-Hsuan Sung, and Yinfei Yang. 2022. LongT5: Efficient text-to-text transformer for long sequences. In Findings of the Association for Computational Linguistics: NAACL 2022, pages 724-736, Seattle, United States. Association for Computational Linguistics.",
|
| 680 |
+
"DeLesley Hutchins, Imanol Schlag, Yuhuai Wu, Ethan Dyer, and Behnam Neyshabur. 2022. Block-recurrent transformers. In Advances in Neural Information Processing Systems.",
|
| 681 |
+
"Jeff Johnson, Matthijs Douze, and Hervé Jégou. 2019. Billion-scale similarity search with GPUs. IEEE Transactions on Big Data, 7(3):535-547.",
|
| 682 |
+
"Adrian Kochsiek, Apoorv Saxena, Inderjeet Nair, and Rainer Gemulla. 2023. Friendly neighbors: Contextualized sequence-to-sequence link prediction. arXiv preprint arXiv:2305.13059.",
|
| 683 |
+
"Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations.",
|
| 684 |
+
"Shirui Pan, Linhao Luo, Yufei Wang, Chen Chen, Jiapu Wang, and Xindong Wu. 2023. Unifying large language models and knowledge graphs: A roadmap. arXiv preprint arXiv:2306.08302.",
|
| 685 |
+
"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."
|
| 686 |
+
],
|
| 687 |
+
"bbox": [
|
| 688 |
+
510,
|
| 689 |
+
85,
|
| 690 |
+
884,
|
| 691 |
+
917
|
| 692 |
+
],
|
| 693 |
+
"page_idx": 5
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"type": "page_number",
|
| 697 |
+
"text": "5311",
|
| 698 |
+
"bbox": [
|
| 699 |
+
480,
|
| 700 |
+
928,
|
| 701 |
+
519,
|
| 702 |
+
940
|
| 703 |
+
],
|
| 704 |
+
"page_idx": 5
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "text",
|
| 708 |
+
"text": "Nils Reimers and Iryna Gurevych. 2019. SentenceBERT: Sentence embeddings using Siamese BERT-networks. 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 3982-3992, Hong Kong, China. Association for Computational Linguistics.",
|
| 709 |
+
"bbox": [
|
| 710 |
+
114,
|
| 711 |
+
85,
|
| 712 |
+
489,
|
| 713 |
+
191
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 6
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "Apoory Saxena, Adrian Kochsiek, and Rainer Gemulla. 2022. Sequence-to-sequence knowledge graph completion and question answering. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2814-2828, Dublin, Ireland. Association for Computational Linguistics.",
|
| 720 |
+
"bbox": [
|
| 721 |
+
114,
|
| 722 |
+
200,
|
| 723 |
+
489,
|
| 724 |
+
292
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 6
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "Alexander Sergeev and Mike Del Balso. 2018. Horovod: fast and easy distributed deep learning in TensorFlow. arXiv preprint arXiv:1802.05799.",
|
| 731 |
+
"bbox": [
|
| 732 |
+
114,
|
| 733 |
+
302,
|
| 734 |
+
489,
|
| 735 |
+
342
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 6
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.",
|
| 742 |
+
"bbox": [
|
| 743 |
+
114,
|
| 744 |
+
351,
|
| 745 |
+
489,
|
| 746 |
+
444
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 6
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier, and Guillaume Bouchard. 2016. Complex embeddings for simple link prediction. In International conference on machine learning, pages 2071-2080. PMLR.",
|
| 753 |
+
"bbox": [
|
| 754 |
+
114,
|
| 755 |
+
454,
|
| 756 |
+
489,
|
| 757 |
+
520
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 6
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "Liang Wang, Wei Zhao, Zhuoyu Wei, and Jingming Liu. 2022. Simkgc: Simple contrastive knowledge graph completion with pre-trained language models. arXiv preprint arXiv:2203.02167.",
|
| 764 |
+
"bbox": [
|
| 765 |
+
114,
|
| 766 |
+
530,
|
| 767 |
+
487,
|
| 768 |
+
583
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 6
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Xiaozhi Wang, Tianyu Gao, Zhaocheng Zhu, Zhengyan Zhang, Zhiyuan Liu, Juanzi Li, and Jian Tang. 2021. Kepler: A unified model for knowledge embedding and pre-trained language representation. Transactions of the Association for Computational Linguistics, 9:176-194.",
|
| 775 |
+
"bbox": [
|
| 776 |
+
114,
|
| 777 |
+
592,
|
| 778 |
+
489,
|
| 779 |
+
671
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 6
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "Xin Xie, Ningyu Zhang, Zhoubo Li, Shumin Deng, Hui Chen, Feiyu Xiong, Mosha Chen, and Huajun Chen. 2022. From discrimination to generation: Knowledge graph completion with generative transformer. In Companion Proceedings of the Web Conference 2022, pages 162-165.",
|
| 786 |
+
"bbox": [
|
| 787 |
+
114,
|
| 788 |
+
681,
|
| 789 |
+
489,
|
| 790 |
+
760
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 6
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "Liang Yao, Chengsheng Mao, and Yuan Luo. 2019. Kgbert: Bert for knowledge graph completion. arXiv preprint arXiv:1909.03193.",
|
| 797 |
+
"bbox": [
|
| 798 |
+
114,
|
| 799 |
+
770,
|
| 800 |
+
489,
|
| 801 |
+
810
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 6
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "Hanwen Zha, Zhiyu Chen, and Xifeng Yan. 2022. Inductive relation prediction by bert. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 5923-5931.",
|
| 808 |
+
"bbox": [
|
| 809 |
+
114,
|
| 810 |
+
820,
|
| 811 |
+
489,
|
| 812 |
+
873
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 6
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "A Input data pipeline",
|
| 819 |
+
"text_level": 1,
|
| 820 |
+
"bbox": [
|
| 821 |
+
509,
|
| 822 |
+
83,
|
| 823 |
+
714,
|
| 824 |
+
101
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 6
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "image",
|
| 830 |
+
"img_path": "images/e52446d7e7fac270556b26bfb341a8dbd8e2a15c981e3ad93e6742aa342e2d4b.jpg",
|
| 831 |
+
"image_caption": [
|
| 832 |
+
"Figure 3: Visualization of the complete pipeline for the preparation of the input data of the language model: 0) pre-calculate FastText embeddings for each relation in KG and form a static similarity matrix out of them; 1) form a neighborhood for the input triplet; 2) sort the neighborhood by relation similarity to the relation in the input query; 3) verbalize and concatenate query triplet and its neighborhood."
|
| 833 |
+
],
|
| 834 |
+
"image_footnote": [],
|
| 835 |
+
"bbox": [
|
| 836 |
+
515,
|
| 837 |
+
126,
|
| 838 |
+
875,
|
| 839 |
+
218
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 6
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "B Neighborhood formation",
|
| 846 |
+
"text_level": 1,
|
| 847 |
+
"bbox": [
|
| 848 |
+
507,
|
| 849 |
+
374,
|
| 850 |
+
761,
|
| 851 |
+
390
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 6
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "To augment the semantic information contained in the entity and relationship names with the structural one, we used triplet neighborhoods. A triplet neighborhood is formed as follows: for a query (head, relation, ?) search for 1-hop neighbors associated with head entity, while excluding from the formed neighborhood target tail entity, which is associated with head by relation; head can be both head or tail entity in triplets that form this 1-hop neighborhood. In this manner, we obtain the context as a neighborhood of the graph, avoiding the leakage of the target entity. The process of neighborhood formation is illustrated on Figure 4.",
|
| 858 |
+
"bbox": [
|
| 859 |
+
507,
|
| 860 |
+
399,
|
| 861 |
+
884,
|
| 862 |
+
625
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 6
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "image",
|
| 868 |
+
"img_path": "images/60c8842423a94a2ddf5d89c2077e80bb83cd500968069bb1e92ea0909f266f8d.jpg",
|
| 869 |
+
"image_caption": [
|
| 870 |
+
"Figure 4: Neighborhood formation - taking the input triplet, search for the triplets in which the head from the input triplet is either head or tail, then exclude the triplet with relation and tail from the input. As a result, there is a list of triplets that form the neighborhood for a given triplet. The represented neighborhood from the Wikidata5m KG is incomplete and textually verbalized for ease of understanding."
|
| 871 |
+
],
|
| 872 |
+
"image_footnote": [],
|
| 873 |
+
"bbox": [
|
| 874 |
+
519,
|
| 875 |
+
651,
|
| 876 |
+
668,
|
| 877 |
+
788
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 6
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "image",
|
| 883 |
+
"img_path": "images/33a5f1a557f19445f767a4ac92e9b1330d2fa15176d3bd1b8b631f0b8ae28dbe.jpg",
|
| 884 |
+
"image_caption": [],
|
| 885 |
+
"image_footnote": [],
|
| 886 |
+
"bbox": [
|
| 887 |
+
670,
|
| 888 |
+
651,
|
| 889 |
+
875,
|
| 890 |
+
788
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 6
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "page_number",
|
| 896 |
+
"text": "5312",
|
| 897 |
+
"bbox": [
|
| 898 |
+
480,
|
| 899 |
+
927,
|
| 900 |
+
521,
|
| 901 |
+
940
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 6
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "However, some of the triplets from KGs result in extremely large neighborhoods, e.g. hub nodes such as \"human\". Therefore, we needed to tackle the problem of large neighborhoods to fit it into the model's context, which is limited to 512 tokens for most language models including T5. We propose to do it as follows: 1) sort the neighborhood by semantic similarity of relations from its triplets to the relation from the input triplet in order to prioritize more important information in the context; 2) limit the sorted neighborhood to 512 triplets, since this will always be at least as big as the size of the allowed context, and, after verbalization, specify the maximum length of 512 for the model tokenizer to fit the resulting verbalized neighborhood representation into the language model context. Neighborhood sorting by semantic proximity was performed using a pre-calculated matrix of cosine similarity of relations in KG, for similarity calculation the relations were embedded by the fasttext model (Bojanowski et al., 2017). Figure 5 displays a pipeline for neighborhood sorting.",
|
| 908 |
+
"bbox": [
|
| 909 |
+
112,
|
| 910 |
+
84,
|
| 911 |
+
492,
|
| 912 |
+
441
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 7
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "image",
|
| 918 |
+
"img_path": "images/900ff71c1b5af1e623f3b58f162086b4f508001636b10ee89ab8e698121641b8.jpg",
|
| 919 |
+
"image_caption": [
|
| 920 |
+
"Figure 5: Neighborhood sorting - taking the input triplet, its neighborhood, and pre-calculated similarity matrix for verbalized relation embedded by the FastText model, sort the neighborhood by the similarity of relations in its triplets to the relation in the input query."
|
| 921 |
+
],
|
| 922 |
+
"image_footnote": [],
|
| 923 |
+
"bbox": [
|
| 924 |
+
137,
|
| 925 |
+
468,
|
| 926 |
+
463,
|
| 927 |
+
596
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 7
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "Neighborhood composition was a relatively straightforward task for a smaller graph like ILPC, but for Wikidata KG with a large number of triplets in the graph, neighborhood formation took a significant amount of time and RAM. To solve this problem, we used the MongoDB database<sup>3</sup>, which stored knowledge graph triplets in its collection in JSON format and contained indices for 'head' and 'tail' fields to speed up retrieving. In order not to store verbalized data in memory either during the verbalization process or during model training, verbalized representations were outputted to the",
|
| 934 |
+
"bbox": [
|
| 935 |
+
112,
|
| 936 |
+
702,
|
| 937 |
+
489,
|
| 938 |
+
897
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 7
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "MongoDB collection too, and retrieved by batches from the database during training.",
|
| 945 |
+
"bbox": [
|
| 946 |
+
507,
|
| 947 |
+
84,
|
| 948 |
+
882,
|
| 949 |
+
118
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 7
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "C Triplets verbalization",
|
| 956 |
+
"text_level": 1,
|
| 957 |
+
"bbox": [
|
| 958 |
+
507,
|
| 959 |
+
162,
|
| 960 |
+
736,
|
| 961 |
+
180
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 7
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "To pass the resulting representations of queries to the input of the language model, we had to perform a transformation of these queries and their neighborhoods into textual form. In order to do this, we first needed to generate a mapping of entity and relationship Wikidata IDs into corresponding texts. For all the datasets we performed our experiments on there is such textual mapping. However, often there is no unambiguous encoding in such mappings because many entities have the same name. The problem of non-unique textual representations concerns Wikidata KG entities, not relations, e.g. apple as a fruit of the apple tree and Apple as an American multinational technology company. To tackle this issue we used the same method KGT5 authors proposed: 1) concatenate non-unique entity names with corresponding descriptions if ones exist; 2) in case there is no description or after description, concatenation text representations cannot be disambiguated, add unique numeric ids. For all other smaller datasets we only added a unique numeric identifier at the end of the name of non-unique entities. The full disambiguation pipeline is displayed in Figure 6. No such transformations were required for KG relations, as they were fully distinguishable by their text representation.",
|
| 968 |
+
"bbox": [
|
| 969 |
+
505,
|
| 970 |
+
190,
|
| 971 |
+
885,
|
| 972 |
+
609
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 7
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "image",
|
| 978 |
+
"img_path": "images/48977740a01ba71507731a50655fa00925b12280dc5ec8b0655739350e2213b3.jpg",
|
| 979 |
+
"image_caption": [
|
| 980 |
+
"Figure 6: Disambiguation schema for wikidata5m entities: 1) concatenate entities' textual representation with corresponding description if there is one in the KG metadata; 2) if there is no description for some entities - concatenate their names with unique numerical id."
|
| 981 |
+
],
|
| 982 |
+
"image_footnote": [],
|
| 983 |
+
"bbox": [
|
| 984 |
+
542,
|
| 985 |
+
637,
|
| 986 |
+
847,
|
| 987 |
+
782
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 7
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "The next step after obtaining 1to1 mapping of entities and relation IDs to their text representations",
|
| 994 |
+
"bbox": [
|
| 995 |
+
507,
|
| 996 |
+
887,
|
| 997 |
+
885,
|
| 998 |
+
919
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 7
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "page_footnote",
|
| 1004 |
+
"text": "<sup>3</sup>https://www.mongodb.com",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
136,
|
| 1007 |
+
903,
|
| 1008 |
+
312,
|
| 1009 |
+
917
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 7
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "page_number",
|
| 1015 |
+
"text": "5313",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
480,
|
| 1018 |
+
927,
|
| 1019 |
+
521,
|
| 1020 |
+
940
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 7
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "was verbalization of the resulting queries and corresponding neighborhoods in the KG. Textual representations of the query $(head_q, relation_q, ?)$ from KG were formed as follows:",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
112,
|
| 1029 |
+
84,
|
| 1030 |
+
489,
|
| 1031 |
+
148
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 8
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "list",
|
| 1037 |
+
"sub_type": "text",
|
| 1038 |
+
"list_items": [
|
| 1039 |
+
"1. first part of query verbalization was formed via concatenation of headq's and relation's text mappings with \"predict\" string, e.g. \"predict Steve Jobs place of birth\";",
|
| 1040 |
+
"2. for each i-th triplet $(head_q, relation_i, tail_i)$ or $(head_i, relation_i, head_q)$ from the sorted query's neighborhood we formed a string consisting of $relation_i$ and entity not belonging to the input query, i.e. for query (Steve Jobs, place of birth,?) the verbalized triplet (Steve Jobs, occupation, entrepreneur) from its neighborhood will be \"occupation entrepreneur\"; in case of so-called inverse triplet, e.g. in triplet $(head_i, relation_i, head_q)$ , where $head_q$ is a tail of the neighborhood triplet, we add \"inverse of\" to the textual mapping of $relation_i$ , i.e. for (Apple, founded by, Steve Jobs) verbalization will be \"inverse of founded by Apple\";",
|
| 1041 |
+
"3. at the end we concatenate the verbalization obtained in stage (1) and all the verbalizations from stage (2) using the\" [SEP] \" string inserted between all the above-mentioned strings."
|
| 1042 |
+
],
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
127,
|
| 1045 |
+
167,
|
| 1046 |
+
490,
|
| 1047 |
+
624
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 8
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "image",
|
| 1053 |
+
"img_path": "images/72647039607e1bbef33364bcaf9700e471cd2be33bd1e3d15073d8246d0ac364.jpg",
|
| 1054 |
+
"image_caption": [
|
| 1055 |
+
"Figure 7: Query verbalization - map each entity and relation id from query triplet and its neighborhood triplets with corresponding textual representations; concatenate \"predict\" string, obtained query verbalization excluding target and the sorted triplets' verbalization without head entity from the query, separating each verbalized triplet by \"[SEP]\" token."
|
| 1056 |
+
],
|
| 1057 |
+
"image_footnote": [],
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
122,
|
| 1060 |
+
664,
|
| 1061 |
+
480,
|
| 1062 |
+
749
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 8
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Example of query and its neighborhood verbalization is represented on a Figure 7.",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
112,
|
| 1071 |
+
887,
|
| 1072 |
+
489,
|
| 1073 |
+
917
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 8
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "D Link prediction inference",
|
| 1080 |
+
"text_level": 1,
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
509,
|
| 1083 |
+
83,
|
| 1084 |
+
766,
|
| 1085 |
+
99
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 8
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "As in KGT5 (Saxena et al., 2022), to evaluate top-k possible answers, we sample k most probable sequences from the decoder and assign them their corresponding probabilities, which is a sum of log probabilities of each token in the sequence. Then, we assign $-\\infty$ score for all the nodes that were not generated by the sampling procedure. In this way, we are producing results comparable with traditional KG models as we obtain plausibility scores for all possible triplets in KG. By such procedure, we can obtain whether a real score of the model (if the target sequence persists in k generated sequences) or the score that will be worse than a real (if the target sequence was not generated as one in the top-k probable sequences), thus not overestimating the resulting metric even though we do not score all the possible triplets. Additionally, to exclude both entities that do not belong to KG and known links from the train and valid graph in a transductive setting, we performed a filtering procedure specific to KGC evaluation protocol as described in the previous studies (Bordes et al., 2013).",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
505,
|
| 1094 |
+
112,
|
| 1095 |
+
884,
|
| 1096 |
+
482
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 8
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "As a main metric for choosing the best model during evaluation, we used Exact Match (EM) or in other words Hits@1, which returns 1 in case the generated and target sequences are exactly the same or 0 otherwise. However, an exact match between the target and the generated sequence can be a rather strict metric for long target entity names, and for previously unseen entities. Thus, we came up with a new approach for scoring entities produced by generative models such as T5 for inductive KGC. In this approach, we first embedded verbalized entities from the inference part of KG by Sbert model (Reimers and Gurevych, 2019) and then indexed the resulted vectors using FAISS index (Johnson et al., 2019). In such a way, we used a simple flat FAISS index to perform a lookup for the k most similar entities from inference KG to the generated one. Using the index for the inductive ILPC dataset, we retrieve entities from the KG that are semantically closest to the generated sequence even if the generated string is imperfect, but contains the right tokens referring to the target entity. In this manner, we could calculate Hits@k retrieving top-k closest to the generated entity names in a similar way as distance-based methods. Overall, in the case of inductive setup, we used a combination of exact match (EM) and FAISS-based met",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
507,
|
| 1105 |
+
483,
|
| 1106 |
+
884,
|
| 1107 |
+
917
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 8
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "page_number",
|
| 1113 |
+
"text": "5314",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
480,
|
| 1116 |
+
928,
|
| 1117 |
+
519,
|
| 1118 |
+
940
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 8
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "rics Hits@k calculated by the following formula: $1000EM + Hits@1$ . In this way, we give more weight to the exact match metric, but in the case of equal EM in different checkpoints, the model with the best Hits@1 will be chosen.",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
112,
|
| 1127 |
+
84,
|
| 1128 |
+
487,
|
| 1129 |
+
162
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 9
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "E Datasets statistics",
|
| 1136 |
+
"text_level": 1,
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
114,
|
| 1139 |
+
184,
|
| 1140 |
+
305,
|
| 1141 |
+
200
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 9
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "table",
|
| 1147 |
+
"img_path": "images/6903ec33c6b18a63664ba2e2781a8f90019122ee144115d4e1fc5bed1c0b5c92.jpg",
|
| 1148 |
+
"table_caption": [
|
| 1149 |
+
"Table 4: Statistics of used KGs."
|
| 1150 |
+
],
|
| 1151 |
+
"table_footnote": [],
|
| 1152 |
+
"table_body": "<table><tr><td>Dataset</td><td># Entities</td><td># Relations</td><td># Triplets</td></tr><tr><td>Wikidata5M</td><td>4.8M</td><td>828</td><td>21M</td></tr><tr><td>ILPC-small</td><td>10,230</td><td>96</td><td>78,616</td></tr><tr><td>ILPC-large</td><td>46,626</td><td>130</td><td>202,446</td></tr></table>",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
119,
|
| 1155 |
+
258,
|
| 1156 |
+
484,
|
| 1157 |
+
323
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 9
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"text": "F Attention map interpretation",
|
| 1164 |
+
"text_level": 1,
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
114,
|
| 1167 |
+
369,
|
| 1168 |
+
401,
|
| 1169 |
+
386
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "image",
|
| 1175 |
+
"img_path": "images/6cf43a2fc0250015cb8fd0d8a8288c49ba80cf20f705226aff9c48fcdb0f7ce5.jpg",
|
| 1176 |
+
"image_caption": [
|
| 1177 |
+
"Figure 8: Example of cross-encoder attention map highlighting the importance of neighborhood triplets from the input"
|
| 1178 |
+
],
|
| 1179 |
+
"image_footnote": [],
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
117,
|
| 1182 |
+
420,
|
| 1183 |
+
485,
|
| 1184 |
+
491
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 9
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Figure 8 demonstrates a cross-encoder attention map highlighting the input neighborhood's significance for the target prediction. The query (Arman Kirakossian, country of citizenship, ?) identifies Yerevan, Armenia's capital, as the birthplace of the target entity, thereby amplifying its role in predicting the right country of citizenship.",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
112,
|
| 1193 |
+
576,
|
| 1194 |
+
487,
|
| 1195 |
+
688
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 9
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "G Zero-shot link prediction with gpt-3.5-turbo",
|
| 1202 |
+
"text_level": 1,
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
112,
|
| 1205 |
+
707,
|
| 1206 |
+
413,
|
| 1207 |
+
740
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 9
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Since OpenAI API only returns generated text, we cannot get its probabilities. Therefore, we use a slightly different evaluation pipeline from other models. We generate up to three predictions with gpt-3.5-turbo-0613. If any of the randomly selected $k$ predictions match the target entity after cleaning and normalization, we set that model prediction as correct (Hits@ $k$ in Table 2).",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
112,
|
| 1216 |
+
756,
|
| 1217 |
+
487,
|
| 1218 |
+
883
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 9
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "We use the following prompts to control the gpt-3.5-turbo-0613.",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
112,
|
| 1227 |
+
887,
|
| 1228 |
+
487,
|
| 1229 |
+
917
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 9
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "G.1 Zero-shot link prediction without neighborhood",
|
| 1236 |
+
"text_level": 1,
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
507,
|
| 1239 |
+
84,
|
| 1240 |
+
821,
|
| 1241 |
+
115
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 9
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "System prompt: You will be provided with a incomplete triplet from the Wikidata knowledge graph. Your task is to complete the triplet with a tail (subject) based on the given triplet head (object) and relation. Your answer must only include the tail of the triplet with prefix 'Tail':'. Do not include relation into the answer.",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
505,
|
| 1250 |
+
124,
|
| 1251 |
+
882,
|
| 1252 |
+
235
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 9
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "text",
|
| 1258 |
+
"text": "User prompt: Triplet to complete: <verbalized triplet>.",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
507,
|
| 1261 |
+
237,
|
| 1262 |
+
882,
|
| 1263 |
+
269
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 9
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "G.2 Zero-shot link prediction with neighborhood",
|
| 1270 |
+
"text_level": 1,
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
507,
|
| 1273 |
+
285,
|
| 1274 |
+
796,
|
| 1275 |
+
316
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 9
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "System prompt: You will be provided with a incomplete triplet from the Wikidata knowledge graph. Your task is to complete the triplet with a tail (subject) based on the given triplet head (object) and relation. Triplet to complete IS NOT in the list of related nodes, but it may contain helpful clues. Your answer must only include the tail of the triplet with prefix 'Tail':'. Do not include relation into the answer.",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
505,
|
| 1284 |
+
324,
|
| 1285 |
+
882,
|
| 1286 |
+
467
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 9
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "User prompt: Adjacent relations: <verbalized neighborhood> $\\backslash n$ Triplet to complete: <verbalized triplet>.",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
507,
|
| 1295 |
+
470,
|
| 1296 |
+
882,
|
| 1297 |
+
518
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 9
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "H Overview of concurrent work",
|
| 1304 |
+
"text_level": 1,
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
507,
|
| 1307 |
+
535,
|
| 1308 |
+
803,
|
| 1309 |
+
550
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 9
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "While our work was under review, the concurrent work KGT5-context (Kochsiek et al., 2023) was published. Following the same idea, KGT5-context uses verbalized node neighborhood as additional context for KGC with the KGT5 model. However, KGT5-context explores the applicability of neighborhood information for KGC only in transductive setup. Also, neighborhood sampling in KGT5-context was performed randomly instead of prioritizing the neighbors, which makes the results less reproducible and does not consider the importance of neighbors in the context of a query. Furthermore, we show that this approach generalizes well to other pre-trained language models like gpt-3.5-turbo in a zero-shot setting without pre-training on KGC datasets.",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
505,
|
| 1318 |
+
564,
|
| 1319 |
+
882,
|
| 1320 |
+
820
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 9
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "We have made the effort and tried our best to reproduce the results of the KGT5 model (Saxena et al., 2022) on Wikidata5M. We report the results of T5-small not pre-trained (Table 1), which is our version of the KGT5 model. Therefore, all our other models were trained and evaluated in",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
507,
|
| 1329 |
+
822,
|
| 1330 |
+
882,
|
| 1331 |
+
917
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 9
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "page_number",
|
| 1337 |
+
"text": "5315",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
480,
|
| 1340 |
+
927,
|
| 1341 |
+
519,
|
| 1342 |
+
940
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 9
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "the same setting and with the same pipeline as for T5-small not pre-trained model.",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
114,
|
| 1351 |
+
85,
|
| 1352 |
+
487,
|
| 1353 |
+
116
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 10
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "page_number",
|
| 1359 |
+
"text": "5316",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
480,
|
| 1362 |
+
928,
|
| 1363 |
+
521,
|
| 1364 |
+
940
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 10
|
| 1367 |
+
}
|
| 1368 |
+
]
|
2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/d96254f1-428d-46b8-a6d6-93195d523d44_model.json
ADDED
|
@@ -0,0 +1,1652 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
[
|
| 3 |
+
{
|
| 4 |
+
"type": "title",
|
| 5 |
+
"bbox": [
|
| 6 |
+
0.134,
|
| 7 |
+
0.08,
|
| 8 |
+
0.868,
|
| 9 |
+
0.12
|
| 10 |
+
],
|
| 11 |
+
"angle": 0,
|
| 12 |
+
"content": "Better Together: Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"bbox": [
|
| 17 |
+
0.191,
|
| 18 |
+
0.125,
|
| 19 |
+
0.816,
|
| 20 |
+
0.143
|
| 21 |
+
],
|
| 22 |
+
"angle": 0,
|
| 23 |
+
"content": "Alla Chepurova<sup>1</sup> Aydar Bulatov<sup>1</sup> Yuri Kuratov<sup>1,2</sup> Mikhail Burtsev<sup>3</sup>"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"bbox": [
|
| 28 |
+
0.21,
|
| 29 |
+
0.159,
|
| 30 |
+
0.792,
|
| 31 |
+
0.191
|
| 32 |
+
],
|
| 33 |
+
"angle": 0,
|
| 34 |
+
"content": "\\(^{1}\\)Neural Networks and Deep Learning Lab, MIPT, Dolgoprudny, Russia \\(^{2}\\)AIRI, Moscow, Russia"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"bbox": [
|
| 39 |
+
0.111,
|
| 40 |
+
0.193,
|
| 41 |
+
0.894,
|
| 42 |
+
0.227
|
| 43 |
+
],
|
| 44 |
+
"angle": 0,
|
| 45 |
+
"content": "\\(^{3}\\)London Institute for Mathematical Sciences, London, UK\nchepurova@deeppavlov.ai, {bulatov.as, yurii.kuratov}@phystech.edu, mb@lims.ac.uk"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "title",
|
| 49 |
+
"bbox": [
|
| 50 |
+
0.261,
|
| 51 |
+
0.253,
|
| 52 |
+
0.341,
|
| 53 |
+
0.267
|
| 54 |
+
],
|
| 55 |
+
"angle": 0,
|
| 56 |
+
"content": "Abstract"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"bbox": [
|
| 61 |
+
0.142,
|
| 62 |
+
0.281,
|
| 63 |
+
0.461,
|
| 64 |
+
0.622
|
| 65 |
+
],
|
| 66 |
+
"angle": 0,
|
| 67 |
+
"content": "Real-world Knowledge Graphs (KGs) often suffer from incompleteness, which limits their potential performance. Knowledge Graph Completion (KGC) techniques aim to address this issue. However, traditional KGC methods are computationally intensive and impractical for large-scale KGs, necessitating the learning of dense node embeddings and computing pairwise distances. Generative transformer-based language models (e.g., T5 and recent KGT5) offer a promising solution as they can predict the tail nodes directly. In this study, we propose to include node neighborhoods as additional information to improve KGC methods based on language models. We examine the effects of this imputation and show that, on both inductive and transductive Wikidata subsets, our method outperforms KGT5 and conventional KGC approaches. We also provide an extensive analysis of the impact of neighborhood on model prediction and show its importance. Furthermore, we point the way to significantly improve KGC through more effective neighborhood selection."
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "title",
|
| 71 |
+
"bbox": [
|
| 72 |
+
0.115,
|
| 73 |
+
0.636,
|
| 74 |
+
0.26,
|
| 75 |
+
0.652
|
| 76 |
+
],
|
| 77 |
+
"angle": 0,
|
| 78 |
+
"content": "1 Introduction"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"bbox": [
|
| 83 |
+
0.113,
|
| 84 |
+
0.662,
|
| 85 |
+
0.491,
|
| 86 |
+
0.92
|
| 87 |
+
],
|
| 88 |
+
"angle": 0,
|
| 89 |
+
"content": "Knowledge graphs (KG) represent structured information in the form of a directed multi-relational graph with entities as the graph's nodes and relations between entities as the graph's edges. Entities in such graphs could be both real-world objects or abstract concepts. KGs are represented as a set of triplets with representation entities and a relation between them, i.e. (head entity, relation, tail entity) or (h, r, t) for short. Due to KGs' recent rapid development, they are now widely used in a variety of applications, including data mining, information retrieval, question answering, and recommendation systems. However, most real-world knowledge graphs suffer from incompleteness. Knowledge graph completion (KGC) algorithms attempt to fill in the gaps in the KG in order to solve this problem."
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "image",
|
| 93 |
+
"bbox": [
|
| 94 |
+
0.511,
|
| 95 |
+
0.251,
|
| 96 |
+
0.878,
|
| 97 |
+
0.4
|
| 98 |
+
],
|
| 99 |
+
"angle": 0,
|
| 100 |
+
"content": null
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"type": "image_caption",
|
| 104 |
+
"bbox": [
|
| 105 |
+
0.509,
|
| 106 |
+
0.409,
|
| 107 |
+
0.885,
|
| 108 |
+
0.496
|
| 109 |
+
],
|
| 110 |
+
"angle": 0,
|
| 111 |
+
"content": "Figure 1: Graph completion pipeline. We extract and verbalize neighborhood of a triplet head node from the Knowledge Graph (KG). Language Model uses verbalized input triplet and neighborhood to make predictions. Predictions can be used for question answering or KG completion."
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"type": "text",
|
| 115 |
+
"bbox": [
|
| 116 |
+
0.508,
|
| 117 |
+
0.512,
|
| 118 |
+
0.885,
|
| 119 |
+
0.706
|
| 120 |
+
],
|
| 121 |
+
"angle": 0,
|
| 122 |
+
"content": "KG link prediction commonly involves learning knowledge graph embeddings (KGE), which capture structural and semantic information about KG nodes, relations, and their neighborhoods in a way that a simple distance-based function would be able to distinguish real triplets from false ones. However, building a unique embedding for each node and relation leads to a linear increase in model size and inference time as the KG size grows. Another drawback is that KG updating requires full re-training of KGEs, rather than simply learning new embeddings for updated entities or relations."
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"type": "text",
|
| 126 |
+
"bbox": [
|
| 127 |
+
0.508,
|
| 128 |
+
0.71,
|
| 129 |
+
0.885,
|
| 130 |
+
0.92
|
| 131 |
+
],
|
| 132 |
+
"angle": 0,
|
| 133 |
+
"content": "Application of language models (LMs) to KGC tasks is a promising direction (Pan et al., 2023). State-of-the-art performance in most natural language processing (NLP) tasks has recently been demonstrated by pre-trained language models like BERT (Devlin et al., 2019) and more recent large or foundational language models (Brown et al., 2020; Chowdhery et al., 2022; Touvron et al., 2023). Language models-based approaches, such as KG-BERT (Yao et al., 2019), BERTRL (Zha et al., 2022), KGT5 (Saxena et al., 2022) and GenKGC (Xie et al., 2022) consider a triplet in the KG as a text sequence. While distance-based"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"type": "page_number",
|
| 137 |
+
"bbox": [
|
| 138 |
+
0.481,
|
| 139 |
+
0.928,
|
| 140 |
+
0.522,
|
| 141 |
+
0.941
|
| 142 |
+
],
|
| 143 |
+
"angle": 0,
|
| 144 |
+
"content": "5306"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"type": "footer",
|
| 148 |
+
"bbox": [
|
| 149 |
+
0.218,
|
| 150 |
+
0.946,
|
| 151 |
+
0.782,
|
| 152 |
+
0.974
|
| 153 |
+
],
|
| 154 |
+
"angle": 0,
|
| 155 |
+
"content": "Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5306-5316 December 6-10, 2023 ©2023 Association for Computational Linguistics"
|
| 156 |
+
}
|
| 157 |
+
],
|
| 158 |
+
[
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"bbox": [
|
| 162 |
+
0.113,
|
| 163 |
+
0.085,
|
| 164 |
+
0.493,
|
| 165 |
+
0.278
|
| 166 |
+
],
|
| 167 |
+
"angle": 0,
|
| 168 |
+
"content": "methods incorporate more structural information in dense embeddings, language models tend to capture more semantic information contained in both relations and entities of KG, enabling such models to embed previously unseen entities and operate on new facts based on semantic information contained in triplets textual representation. Thus, KGT5 positions KG link prediction as sequence-to-sequence tasks. KGT5 model trained to generate target node using textually verbalized triplets achieves competitive performance and offers a scalable and simple framework for KGC and QA tasks."
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"bbox": [
|
| 173 |
+
0.117,
|
| 174 |
+
0.283,
|
| 175 |
+
0.492,
|
| 176 |
+
0.492
|
| 177 |
+
],
|
| 178 |
+
"angle": 0,
|
| 179 |
+
"content": "Current methods based on language models (KG-BERT, BERTRL, KGT5, and GenKGC) rely only on information that can be extracted from LMs parameters. However, since KG itself is available, we build a method that relies on both internal language model knowledge and external information from KG. For the link prediction task \\((h,r,\\ref{eq:1})\\), we propose to extract nodes and relations adjacent to \\(h\\) from the KG, i.e. the neighborhood. Node \\(h\\) with its neighborhood better together represents \\(h\\) itself: neighborhood may contain clues such as Palo Alto and United States of America for the triplet (Steve Jobs, place of birth, ?) on Figure 1."
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"bbox": [
|
| 184 |
+
0.113,
|
| 185 |
+
0.497,
|
| 186 |
+
0.492,
|
| 187 |
+
0.722
|
| 188 |
+
],
|
| 189 |
+
"angle": 0,
|
| 190 |
+
"content": "Though some efforts have been made to incorporate neighborhood into the KGC algorithms (Chen et al., 2020), our proposed pipeline inherits the benefits of generative LLMs compared to KGE approaches: (1) scalability and size of the model, (2) applicability to both transductive and inductive KGs due to an ability to generalize unseen entities, (3) no need to rank all possible candidate triplets due to direct generation of tail entity. Also, a concurrent work by the KGT5 authors, KGT5-context (Kochsiek et al., 2023), proposed a similar idea of integrating node neighborhood in the context of the generative LM model, supporting the main concerns and results of our study."
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"bbox": [
|
| 195 |
+
0.113,
|
| 196 |
+
0.727,
|
| 197 |
+
0.493,
|
| 198 |
+
0.92
|
| 199 |
+
],
|
| 200 |
+
"angle": 0,
|
| 201 |
+
"content": "Our contributions are as follows: (1) we propose a generative graph completion method which effectively integrates language models with graph neighborhood information. (2) We show that incorporating graph information into multiple generative language models achieve strong performance improvement of link prediction in both transductive and inductive settings. Moreover, our approach achieves state-of-the-art results on the inductive ILPC dataset. (3) We analyze and evaluate the impact of adding neighborhood information on the performance of the models."
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "title",
|
| 205 |
+
"bbox": [
|
| 206 |
+
0.51,
|
| 207 |
+
0.084,
|
| 208 |
+
0.622,
|
| 209 |
+
0.099
|
| 210 |
+
],
|
| 211 |
+
"angle": 0,
|
| 212 |
+
"content": "2 Methods"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"bbox": [
|
| 217 |
+
0.508,
|
| 218 |
+
0.113,
|
| 219 |
+
0.887,
|
| 220 |
+
0.419
|
| 221 |
+
],
|
| 222 |
+
"angle": 0,
|
| 223 |
+
"content": "One can represent KG more formally as \\(\\mathcal{G} = (\\mathcal{T},\\mathcal{E},\\mathcal{R})\\), where \\(\\mathcal{E}\\) is a set of entities, \\(\\mathcal{R}\\) is a set of relations and \\(\\mathcal{T}\\) is a set of triplets \\(\\mathcal{T} \\in \\mathcal{E} \\times \\mathcal{R} \\times \\mathcal{E}\\). Therefore, the formulation of the KGC task is the following: for each triplet \\(\\mathcal{T}_i = (h,r,t)\\), where \\(h \\in \\mathcal{E}, t \\in \\mathcal{E}, r \\in \\mathcal{R}\\), answer both \\((h,r,?)\\) and \\((?,r,t)\\) queries on the graph \\(\\mathcal{G} / \\mathcal{T}_i\\). The KGC tasks can have different variations depending on the KG type: inductive and transductive. In a transductive setting the KGC task is formulated as follows: given a train KG \\(\\mathcal{G}_{train} = (\\mathcal{T}_{train},\\mathcal{E},\\mathcal{R})\\) train the model to predict on the inference KG \\(\\mathcal{G}_{inference} = (\\mathcal{T}_{inference},\\mathcal{E},\\mathcal{R})\\), therefore in the train and inference KG there is a same set of entities and relations. In inductive KGC the model is trained on the KG \\(\\mathcal{G}_{train} = (\\mathcal{T}_{train},\\mathcal{R},\\mathcal{E}_{train})\\) and predicts the inference KG \\(\\mathcal{G}_{inference} = (\\mathcal{T}_{inference},\\mathcal{R},\\mathcal{E}_{inference})\\), so the trained model observed only on the entities from train subgraph of KG."
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"bbox": [
|
| 228 |
+
0.508,
|
| 229 |
+
0.42,
|
| 230 |
+
0.886,
|
| 231 |
+
0.821
|
| 232 |
+
],
|
| 233 |
+
"angle": 0,
|
| 234 |
+
"content": "We followed the KGT5 (Saxena et al., 2022) approach to the KGC task using an encoder-decoder Transformer based on T5 (Raffel et al., 2020). The link prediction task was posed as follows: for each triplet \\((entity_1, relation, entity_2)\\) from KG we had to predict the tail in the queries \\((entity_1, relation, ?)\\) and \\((entity_2, relation^{-1}, ?)\\). To generate input for the model, we converted such queries into a text form. Apart from the query verbalization only as in KGT5, we formed a neighborhood for the node and relations for each triplet in KG. Thus, verbalized queries and their neighborhoods in the form of text were fed to the input of the model for training (see Figure 1) and later to predict incomplete triplets. We form a neighborhood of nodes that have an edge with the triplet head node (1-hop neighbors). The number of adjacent nodes may be too large to fit into the context size of selected language models. Therefore, we sort them based on relation semantic similarity. We take only those verbalized nodes and relations that fit into the max sequence length. We provide more details on neighborhood formation in Appendix B and verbalization in Appendix C."
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"bbox": [
|
| 239 |
+
0.508,
|
| 240 |
+
0.823,
|
| 241 |
+
0.887,
|
| 242 |
+
0.92
|
| 243 |
+
],
|
| 244 |
+
"angle": 0,
|
| 245 |
+
"content": "To evaluate our approach to link prediction tasks we used publically available transductive and inductive KGs. Specifically, we used the Wiki-data5M (Wang et al., 2021) dataset, which is one of the largest publicly available transductive KG up-to-date and large and small versions of ILPC"
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "page_number",
|
| 249 |
+
"bbox": [
|
| 250 |
+
0.481,
|
| 251 |
+
0.928,
|
| 252 |
+
0.522,
|
| 253 |
+
0.941
|
| 254 |
+
],
|
| 255 |
+
"angle": 0,
|
| 256 |
+
"content": "5307"
|
| 257 |
+
}
|
| 258 |
+
],
|
| 259 |
+
[
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"bbox": [
|
| 263 |
+
0.112,
|
| 264 |
+
0.085,
|
| 265 |
+
0.493,
|
| 266 |
+
0.295
|
| 267 |
+
],
|
| 268 |
+
"angle": 0,
|
| 269 |
+
"content": "dataset (Galkin et al., 2022), the largest fully inductive benchmark. ILPC inference graph size is challenging for modern GNN methods with inductive capabilities (Galkin et al., 2022). Apart from being challenging to solve by common approaches, the ILPC KGs are much more sparse than the transductive Wikidata5M. The graph size and sparseness of the data make the task hard for existing methods and result in modest performance metrics. Still, there were no existing solutions that beat the baseline provided in the ILPC paper. Both used datasets are the subsets of the real-world KG - Wikidata. Datasets' statistics are provided in the Table 4)."
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"bbox": [
|
| 274 |
+
0.112,
|
| 275 |
+
0.295,
|
| 276 |
+
0.492,
|
| 277 |
+
0.44
|
| 278 |
+
],
|
| 279 |
+
"angle": 0,
|
| 280 |
+
"content": "We compared models with and without neighborhoods to evaluate our hypothesis that neighborhoods help to better together represent graph node. In addition, unlike the KGT5, we experimented with different model configurations, both fine-tuning an existing pre-trained model and training from scratch as common knowledge obtained during language models pre-training might be useful on real-world knowledge graphs like Wikidata."
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"bbox": [
|
| 285 |
+
0.112,
|
| 286 |
+
0.44,
|
| 287 |
+
0.49,
|
| 288 |
+
0.761
|
| 289 |
+
],
|
| 290 |
+
"angle": 0,
|
| 291 |
+
"content": "We used the T5-small with 60M parameters as our base model with both pretrained and randomly initialized weights to evaluate the effect of pretraining of the language model on the KG task. We added additional \"[SEP]\" tokens to the tokenizer with 30K tokens vocabulary to separate query and neighborhood. The model was trained using AdamW optimizer (Loshchilov and Hutter, 2019), 1e-5 learning rate, \\(10\\%\\) dropout, and batch size equals 320. The number of training steps was equal to 5M for the Wikidata5M dataset and 2M for all others. For multi-gpu training, we used the Horovod parallelization framework (Sergeev and Balso, 2018). In cases where a batch size equal to 320 did not fit GPU, we used gradient accumulation steps. We also benchmarked OpenAI gpt-3.5-turbo<sup>1</sup> zero-shot link prediction and evaluate the benefits of a neighborhood on LLM (see Appendix G). The code for all the described experiments is available at the link<sup>2</sup>."
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"bbox": [
|
| 296 |
+
0.113,
|
| 297 |
+
0.762,
|
| 298 |
+
0.49,
|
| 299 |
+
0.859
|
| 300 |
+
],
|
| 301 |
+
"angle": 0,
|
| 302 |
+
"content": "As KGT5, our model produces a probability distribution over all possible tokens in the vocabulary at each step of decoding. Such distribution is penalized for not matching the actual distribution, i.e., for the difference between the real target token at position \\(i\\) and the generated token at step \\(i\\) using"
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"bbox": [
|
| 307 |
+
0.508,
|
| 308 |
+
0.085,
|
| 309 |
+
0.885,
|
| 310 |
+
0.18
|
| 311 |
+
],
|
| 312 |
+
"angle": 0,
|
| 313 |
+
"content": "CE loss. Such an approach is principally different from distance-based methods as it does not require generating negative samples to make them further from the target prediction for each training query. In this way, training iteration becomes independent of the KG size."
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"bbox": [
|
| 318 |
+
0.508,
|
| 319 |
+
0.183,
|
| 320 |
+
0.885,
|
| 321 |
+
0.424
|
| 322 |
+
],
|
| 323 |
+
"angle": 0,
|
| 324 |
+
"content": "To form predictions, we first verbalize the query (head, relation,?) and pass it as an input to the generative model to produce an output sequence, which will be a verbalization of the target entity id. For inference, we employed two strategies. The first one was sampling \\( k \\) most probable sequences from the decoder. We follow the KGT5 (Saxena et al., 2022) setting and use a sample size of 50. We apply this approach to Wikidata5M datasets as it is transductive. The second option for inference was to search for the closest entities in KG to the generated one. We apply the second approach to ILPC inductive datasets as language models have to generate previously unseen entities. More details on inference procedure are in Appendix D."
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "title",
|
| 328 |
+
"bbox": [
|
| 329 |
+
0.51,
|
| 330 |
+
0.44,
|
| 331 |
+
0.61,
|
| 332 |
+
0.456
|
| 333 |
+
],
|
| 334 |
+
"angle": 0,
|
| 335 |
+
"content": "3 Results"
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"bbox": [
|
| 340 |
+
0.508,
|
| 341 |
+
0.468,
|
| 342 |
+
0.885,
|
| 343 |
+
0.612
|
| 344 |
+
],
|
| 345 |
+
"angle": 0,
|
| 346 |
+
"content": "The hypothesis behind our approach was that neighborhood information incorporated in a context fed to the language model should enhance link prediction of generative LM. Tables 1 and 2 demonstrate the performance of our technique on Wikidata5M and ILPC datasets under various conditions, including training a T5 model with and without neighbors, using a pre-trained model or training a model from scratch, and zero-shot with gpt-3.5-turbo."
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"bbox": [
|
| 351 |
+
0.508,
|
| 352 |
+
0.614,
|
| 353 |
+
0.885,
|
| 354 |
+
0.92
|
| 355 |
+
],
|
| 356 |
+
"angle": 0,
|
| 357 |
+
"content": "These results support the hypothesis that the quality of link prediction increases with the use of neighbors in the context of the generative model in both transductive and inductive settings. Moreover, our approach demonstrated SOTA performance on the ILPC dataset, while on Wikidata we achieved the best result among generative link prediction models, which is still comparable to scores of SOTA graph and LM methods with many more parameters. Relatively small absolute values of scores on the ILPC dataset can be explained by its fully inductive setup and larger sparseness compared to Wikidata5M. Still, there are no publicly available solutions that exceed the baseline score provided by ILPC authors. Our solution overperforms the existing baseline, is elegantly simple, and more interpretable than GNN-based solutions. Experiments on pre-trained models revealed that pre-training speeds up convergence but degrades"
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "page_footnote",
|
| 361 |
+
"bbox": [
|
| 362 |
+
0.113,
|
| 363 |
+
0.868,
|
| 364 |
+
0.49,
|
| 365 |
+
0.919
|
| 366 |
+
],
|
| 367 |
+
"angle": 0,
|
| 368 |
+
"content": "\\(^{1}\\)gpt-3.5-turbo-0613: https://platform.openai.com/docs/models/gpt-3-5 \n\\(^{2}\\)https://github.com/screemix/kgc-t5-with-neighbors"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "page_number",
|
| 372 |
+
"bbox": [
|
| 373 |
+
0.481,
|
| 374 |
+
0.929,
|
| 375 |
+
0.521,
|
| 376 |
+
0.941
|
| 377 |
+
],
|
| 378 |
+
"angle": 0,
|
| 379 |
+
"content": "5308"
|
| 380 |
+
}
|
| 381 |
+
],
|
| 382 |
+
[
|
| 383 |
+
{
|
| 384 |
+
"type": "table_caption",
|
| 385 |
+
"bbox": [
|
| 386 |
+
0.113,
|
| 387 |
+
0.083,
|
| 388 |
+
0.885,
|
| 389 |
+
0.127
|
| 390 |
+
],
|
| 391 |
+
"angle": 0,
|
| 392 |
+
"content": "Table 1: Adding a neighborhood persistently improves results on the link prediction task. We report Hits@k metrics on Wikidata5M, ILPC-small, and ILPC-large test sets. Arrows \\(\\uparrow\\downarrow\\) show the effect of the neighborhood on language models. Neighbors allow to achieve the best performance considering the number of model parameters."
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "table",
|
| 396 |
+
"bbox": [
|
| 397 |
+
0.118,
|
| 398 |
+
0.135,
|
| 399 |
+
0.881,
|
| 400 |
+
0.297
|
| 401 |
+
],
|
| 402 |
+
"angle": 0,
|
| 403 |
+
"content": "<table><tr><td rowspan=\"2\">MODEL</td><td colspan=\"3\">WIKIDATA5M</td><td colspan=\"3\">ILPC-SMALL</td><td colspan=\"3\">ILPC-LARGE</td><td rowspan=\"2\">#PARAMS</td></tr><tr><td>H@1</td><td>H@3</td><td>H@10</td><td>H@1</td><td>H@3</td><td>H@10</td><td>H@1</td><td>H@3</td><td>H@10</td></tr><tr><td>KGT5 (SAXENA ET AL., 2022)</td><td>0.267</td><td>0.318</td><td>0.365</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>TRANSE (BORDES ET AL., 2013)</td><td>0.170</td><td>0.311</td><td>0.392</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>2,400M</td></tr><tr><td>COMPLEX (TROULLON ET AL., 2016)</td><td>0.255</td><td>-</td><td>0.398</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>614M</td></tr><tr><td>KEPLER (WANG ET AL., 2021)</td><td>0.173</td><td>0.224</td><td>0.277</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>125M</td></tr><tr><td>SIMKGC (WANG ET AL., 2022)</td><td>0.313</td><td>0.376</td><td>0.441</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>220M</td></tr><tr><td>INDNODEPIECE (GALKIN ET AL., 2022)</td><td>-</td><td>-</td><td>-</td><td>0.007</td><td>0.022</td><td>0.092</td><td>0.037</td><td>0.054</td><td>0.125</td><td>15.5K</td></tr><tr><td>INDNODEPIECEGNN (GALKIN ET AL., 2022)</td><td>-</td><td>-</td><td>-</td><td>0.076</td><td>0.140</td><td>0.251</td><td>0.032</td><td>0.073</td><td>0.146</td><td>24K</td></tr><tr><td>T5-SMALL NOT PRE-TRAINED</td><td>0.240</td><td>0.286</td><td>0.323</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>T5-SMALL NOT PRE-TRAINED + NEIGHBORS</td><td>0.327↑</td><td>0.363↑</td><td>0.386↑</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>T5-SMALL PRE-TRAINED</td><td>0.205</td><td>0.248</td><td>0.282</td><td>0.073</td><td>0.117</td><td>0.177</td><td>0.112</td><td>0.137</td><td>0.194</td><td>60M</td></tr><tr><td>T5-SMALL PRE-TRAINED + NEIGHBORS</td><td>0.306↑</td><td>0.342↑</td><td>0.361↑</td><td>0.076↑</td><td>0.137↑</td><td>0.209↑</td><td>0.114↑</td><td>0.139↑</td><td>0.200↑</td><td>60M</td></tr><tr><td>T5-BASE PRE-TRAINED</td><td>-</td><td>-</td><td>-</td><td>0.073</td><td>0.130</td><td>0.199</td><td>0.110</td><td>0.136</td><td>0.198</td><td>220M</td></tr><tr><td>T5-BASE PRE-TRAINED + NEIGHBORS</td><td>-</td><td>-</td><td>-</td><td>0.082↑</td><td>0.142↑</td><td>0.216↑</td><td>0.116↑</td><td>0.141↑</td><td>0.215↑</td><td>220M</td></tr></table>"
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "table_caption",
|
| 407 |
+
"bbox": [
|
| 408 |
+
0.113,
|
| 409 |
+
0.318,
|
| 410 |
+
0.49,
|
| 411 |
+
0.375
|
| 412 |
+
],
|
| 413 |
+
"angle": 0,
|
| 414 |
+
"content": "Table 2: Neighbor information improves zero-shot link prediction with OpenAI gpt-3.5-turbo-0613. *ILPC-Large results were obtained on 5000 random samples from the test set."
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "table",
|
| 418 |
+
"bbox": [
|
| 419 |
+
0.118,
|
| 420 |
+
0.383,
|
| 421 |
+
0.484,
|
| 422 |
+
0.466
|
| 423 |
+
],
|
| 424 |
+
"angle": 0,
|
| 425 |
+
"content": "<table><tr><td rowspan=\"2\">DATASET</td><td colspan=\"2\">GPT</td><td colspan=\"2\">GPT+NEIGH</td></tr><tr><td>H@1</td><td>H@3</td><td>H@1</td><td>H@3</td></tr><tr><td>WIKIDATA5M</td><td>0.098</td><td>0.131</td><td>0.113↑</td><td>0.157↑</td></tr><tr><td>ILPC-SMOTE</td><td>0.079</td><td>0.107</td><td>0.084↑</td><td>0.118↑</td></tr><tr><td>ILPC-LARGE*</td><td>0.103</td><td>0.134</td><td>0.114↑</td><td>0.150↑</td></tr></table>"
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"bbox": [
|
| 430 |
+
0.113,
|
| 431 |
+
0.482,
|
| 432 |
+
0.489,
|
| 433 |
+
0.514
|
| 434 |
+
],
|
| 435 |
+
"angle": 0,
|
| 436 |
+
"content": "the quality of the model by a few points compared to the one trained from scratch."
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"bbox": [
|
| 441 |
+
0.113,
|
| 442 |
+
0.516,
|
| 443 |
+
0.49,
|
| 444 |
+
0.773
|
| 445 |
+
],
|
| 446 |
+
"angle": 0,
|
| 447 |
+
"content": "Also, we demonstrated that neighbors' information enhances performance across different generative models. This includes open-source models such as T5, as well as proprietary models like OpenAI GPTs that are distributed as a model-as-a-service. Although both types of models have their own advantages and limitations, it should be noted that OpenAI GPTs are black box models that cannot be modified or interpreted further. Usage of OpenAI GPTs is restricted in the case of more specialized or proprietary KGs that can store secure or non-public information. In the context of our study, OpenAI's gpt-3.5-turbo has a much larger size and cost, compared to smaller and transparent T5, still our approach improves the performance of both models."
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"bbox": [
|
| 452 |
+
0.113,
|
| 453 |
+
0.775,
|
| 454 |
+
0.49,
|
| 455 |
+
0.92
|
| 456 |
+
],
|
| 457 |
+
"angle": 0,
|
| 458 |
+
"content": "To get an understanding of how proposed models learn to use neighboring triplets we compared predictions of models trained with and without graph information in the input. One possible case when neighbors help in link prediction is when a target entity is somehow mentioned in the model input. Because of neighborhood filtering, the target triplet never appears in the model input, however in some cases target entity can occur with different relations"
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"bbox": [
|
| 463 |
+
0.508,
|
| 464 |
+
0.32,
|
| 465 |
+
0.885,
|
| 466 |
+
0.45
|
| 467 |
+
],
|
| 468 |
+
"angle": 0,
|
| 469 |
+
"content": "or as a substring of another entity in a neighborhood or even in the task itself (Table 3). Despite the tail appearing in input only in a small portion of the test set, the neighborhood model learns to make use of such hints, outperforming the baseline T5 in all selected cases. The high solution rate of more than 4 out of 5 samples with hinted targets supports the importance of properly selected neighborhoods."
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "image",
|
| 473 |
+
"bbox": [
|
| 474 |
+
0.514,
|
| 475 |
+
0.462,
|
| 476 |
+
0.88,
|
| 477 |
+
0.607
|
| 478 |
+
],
|
| 479 |
+
"angle": 0,
|
| 480 |
+
"content": null
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "image_caption",
|
| 484 |
+
"bbox": [
|
| 485 |
+
0.508,
|
| 486 |
+
0.618,
|
| 487 |
+
0.884,
|
| 488 |
+
0.719
|
| 489 |
+
],
|
| 490 |
+
"angle": 0,
|
| 491 |
+
"content": "Figure 2: KG neighborhood is critical for the model performance. The plot shows how the quality of link prediction depends on the number of neighborhood triplets removed from the input context Wikidata5M T5-small not pre-trained model. The blue solid line corresponds to removing the most relevant triplets and the dashed red line represents random selection."
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"bbox": [
|
| 496 |
+
0.508,
|
| 497 |
+
0.726,
|
| 498 |
+
0.885,
|
| 499 |
+
0.903
|
| 500 |
+
],
|
| 501 |
+
"angle": 0,
|
| 502 |
+
"content": "To evaluate the impact of neighborhoods, we analyzed triplets' importance by sorting them based on how they affect the probability of the target node prediction. As Figure 2 shows, a performance of the model quickly deteriorates with the removal of important triplets from the context. This implies potential avenues for improvement by prioritizing significant triplets selection prior to model training. Moreover, we analyzed attention maps of the model train on Wikidata5M and found that it indeed pays attention to relevant neighbors, e.g. Appendix F."
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"bbox": [
|
| 507 |
+
0.527,
|
| 508 |
+
0.904,
|
| 509 |
+
0.883,
|
| 510 |
+
0.92
|
| 511 |
+
],
|
| 512 |
+
"angle": 0,
|
| 513 |
+
"content": "The analysis shows that adding relevant graph"
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "page_number",
|
| 517 |
+
"bbox": [
|
| 518 |
+
0.481,
|
| 519 |
+
0.928,
|
| 520 |
+
0.521,
|
| 521 |
+
0.941
|
| 522 |
+
],
|
| 523 |
+
"angle": 0,
|
| 524 |
+
"content": "5309"
|
| 525 |
+
}
|
| 526 |
+
],
|
| 527 |
+
[
|
| 528 |
+
{
|
| 529 |
+
"type": "table_caption",
|
| 530 |
+
"bbox": [
|
| 531 |
+
0.114,
|
| 532 |
+
0.083,
|
| 533 |
+
0.488,
|
| 534 |
+
0.141
|
| 535 |
+
],
|
| 536 |
+
"angle": 0,
|
| 537 |
+
"content": "Table 3: Adding relevant neighbors improves link prediction for T5-small on the Wikidata test set. The table shows the exact match depending on a hint of the target entity's appearance as a part of the model input."
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "table",
|
| 541 |
+
"bbox": [
|
| 542 |
+
0.116,
|
| 543 |
+
0.15,
|
| 544 |
+
0.484,
|
| 545 |
+
0.228
|
| 546 |
+
],
|
| 547 |
+
"angle": 0,
|
| 548 |
+
"content": "<table><tr><td>Target position</td><td>T5</td><td>T5 + Neighbors</td><td>frequency</td></tr><tr><td>In task</td><td>0.93</td><td>0.94↑</td><td>5 %</td></tr><tr><td>In neighborhood</td><td>0.34</td><td>0.82↑</td><td>8 %</td></tr><tr><td>Not in input</td><td>0.18</td><td>0.24↑</td><td>87 %</td></tr><tr><td>Total</td><td>0.23</td><td>0.32↑</td><td>100 %</td></tr></table>"
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"bbox": [
|
| 553 |
+
0.117,
|
| 554 |
+
0.246,
|
| 555 |
+
0.49,
|
| 556 |
+
0.519
|
| 557 |
+
],
|
| 558 |
+
"angle": 0,
|
| 559 |
+
"content": "context information greatly enhances link prediction. Hence one way of improving performance is increasing neighborhood size by adding k-hop neighbors. Due to the quadratic complexity of attention and the limited input size of pretrained transformers, processing exponentially growing neighborhoods would be computationally expensive. To deal with large input sizes one can use efficient T5 architectures with input sizes up to 32k (Guo et al., 2022) and 64k (Ainslie et al., 2023) tokens or recurrent approaches (Bulatov et al., 2022; Hutchins et al., 2022) that can sequentially process effectively unlimited neighborhood sizes. Another potential way of subgraph selection is to add relevant but more distant knowledge graph information, such as random walks or more sophisticated methods (Das et al., 2018)."
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "title",
|
| 563 |
+
"bbox": [
|
| 564 |
+
0.114,
|
| 565 |
+
0.537,
|
| 566 |
+
0.406,
|
| 567 |
+
0.552
|
| 568 |
+
],
|
| 569 |
+
"angle": 0,
|
| 570 |
+
"content": "4 Conclusions and Future work"
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"bbox": [
|
| 575 |
+
0.117,
|
| 576 |
+
0.566,
|
| 577 |
+
0.49,
|
| 578 |
+
0.919
|
| 579 |
+
],
|
| 580 |
+
"angle": 0,
|
| 581 |
+
"content": "Our study found that incorporating KG neighborhood information into a generative model's context can enhance the quality of the link prediction task. We trained the T5-small model on transductive Wikidata5M and inductive ILPC datasets with various configurations and showed that coupling the node and its neighborhood information together better represents the node. Our approach significantly outperformed baselines on the largest real-world KGCs, with a comparable or fewer number of parameters. We also demonstrated that OpenAI's gpt-3.5-turbo performance on the KGC task also benefits from neighborhood information without prior fine-tuning. In addition to the quality improvement, we analyzed the impact of neighborhood imputation, highlighting the significance of selecting relevant triplets or extending the model's context in future works. Furthermore, future studies could explore the impact of model size, the effect of neighborhood imputation on the datasets from other domains, and neighborhood selection strategies."
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "title",
|
| 585 |
+
"bbox": [
|
| 586 |
+
0.51,
|
| 587 |
+
0.084,
|
| 588 |
+
0.616,
|
| 589 |
+
0.099
|
| 590 |
+
],
|
| 591 |
+
"angle": 0,
|
| 592 |
+
"content": "Limitations"
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"bbox": [
|
| 597 |
+
0.509,
|
| 598 |
+
0.112,
|
| 599 |
+
0.885,
|
| 600 |
+
0.45
|
| 601 |
+
],
|
| 602 |
+
"angle": 0,
|
| 603 |
+
"content": "Limitations of this study include the training of only relatively small models, with only T5 being employed. Further study of the benefits of larger models applied to KGC tasks should be performed. Additionally, each knowledge graph in this study was limited to only one model, which may not accurately represent more complex graphs that involve multiple datasets. Another limitation is that language models are better suited for real-world textual data and may not work well for KGC representing more specialized concepts, such as biology or medicine. Also, although neighborhood selection was performed, we cannot guarantee that the selected neighborhoods are optimal. Further works should include the way of extending the ability of models to capture larger parts of a graph or selecting the most relevant neighbors. Moreover, constructing prompts for testing GPT performance may not be optimal, and the model's maximal performance cannot be guaranteed without knowledge of its training data."
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "title",
|
| 607 |
+
"bbox": [
|
| 608 |
+
0.51,
|
| 609 |
+
0.464,
|
| 610 |
+
0.662,
|
| 611 |
+
0.48
|
| 612 |
+
],
|
| 613 |
+
"angle": 0,
|
| 614 |
+
"content": "Ethics Statement"
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"bbox": [
|
| 619 |
+
0.509,
|
| 620 |
+
0.492,
|
| 621 |
+
0.885,
|
| 622 |
+
0.846
|
| 623 |
+
],
|
| 624 |
+
"angle": 0,
|
| 625 |
+
"content": "As a field of study in the intersection of natural language processing and knowledge graphs, this work inherits the main ethical considerations of both of these domains. Automated graph completion tasks may produce various types of mistakes, including but not limited to factual and grammatical errors. Consequently, any application based on this work should employ robust error detection mechanisms prior to deployment. Additionally, given that our system employs a generative language model, there exists a risk of generating false or misleading content such as hallucinations and biases existing in pre-training and knowledge graph data. Users of the proposed method or any application based on it should be warned about the potential risks of using generative language models. Potential misuses may include purposeful disinformation and misleading language or factual information. Taking into account the aforementioned considerations, we believe that under ethically responsible usage this work will have a positive impact on artificial intelligence research and applications."
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "title",
|
| 629 |
+
"bbox": [
|
| 630 |
+
0.51,
|
| 631 |
+
0.861,
|
| 632 |
+
0.682,
|
| 633 |
+
0.877
|
| 634 |
+
],
|
| 635 |
+
"angle": 0,
|
| 636 |
+
"content": "Acknowledgements"
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"bbox": [
|
| 641 |
+
0.509,
|
| 642 |
+
0.888,
|
| 643 |
+
0.884,
|
| 644 |
+
0.919
|
| 645 |
+
],
|
| 646 |
+
"angle": 0,
|
| 647 |
+
"content": "We are grateful to Mikhail Galkin for valuable advice on knowledge graphs and introduction to the"
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "page_number",
|
| 651 |
+
"bbox": [
|
| 652 |
+
0.481,
|
| 653 |
+
0.928,
|
| 654 |
+
0.522,
|
| 655 |
+
0.941
|
| 656 |
+
],
|
| 657 |
+
"angle": 0,
|
| 658 |
+
"content": "5310"
|
| 659 |
+
}
|
| 660 |
+
],
|
| 661 |
+
[
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"bbox": [
|
| 665 |
+
0.113,
|
| 666 |
+
0.085,
|
| 667 |
+
0.493,
|
| 668 |
+
0.262
|
| 669 |
+
],
|
| 670 |
+
"angle": 0,
|
| 671 |
+
"content": "ILPC dataset. We are thankful to SberDevices for granting us access to additional computational resources. A.C., A.B., and Y.K.'s work was supported by a grant for research centers in the field of artificial intelligence, provided by the Analytical Center for the Government of the Russian Federation in accordance with the subsidy agreement (agreement identifier 000000D730321P5Q0002) and the agreement with the Moscow Institute of Physics and Technology dated November 1, 2021 No. 70-2021-00138."
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "title",
|
| 675 |
+
"bbox": [
|
| 676 |
+
0.115,
|
| 677 |
+
0.288,
|
| 678 |
+
0.214,
|
| 679 |
+
0.304
|
| 680 |
+
],
|
| 681 |
+
"angle": 0,
|
| 682 |
+
"content": "References"
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "ref_text",
|
| 686 |
+
"bbox": [
|
| 687 |
+
0.117,
|
| 688 |
+
0.31,
|
| 689 |
+
0.49,
|
| 690 |
+
0.39
|
| 691 |
+
],
|
| 692 |
+
"angle": 0,
|
| 693 |
+
"content": "Joshua Ainslie, Tao Lei, Michiel de Jong, Santiago Ontañón, Siddhartha Brahma, Yury Zemlyanskiy, David Uthus, Mandy Guo, James Lee-Thorp, Yi Tay, YunHsuan Sung, and Sumit Sanghai. 2023. Colt5: Faster long-range transformers with conditional computation."
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"type": "ref_text",
|
| 697 |
+
"bbox": [
|
| 698 |
+
0.117,
|
| 699 |
+
0.399,
|
| 700 |
+
0.49,
|
| 701 |
+
0.452
|
| 702 |
+
],
|
| 703 |
+
"angle": 0,
|
| 704 |
+
"content": "Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. 2017. Enriching word vectors with subword information. Transactions of the association for computational linguistics, 5:135-146."
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "ref_text",
|
| 708 |
+
"bbox": [
|
| 709 |
+
0.117,
|
| 710 |
+
0.461,
|
| 711 |
+
0.49,
|
| 712 |
+
0.528
|
| 713 |
+
],
|
| 714 |
+
"angle": 0,
|
| 715 |
+
"content": "Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi-relational data. Advances in neural information processing systems, 26."
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "ref_text",
|
| 719 |
+
"bbox": [
|
| 720 |
+
0.117,
|
| 721 |
+
0.536,
|
| 722 |
+
0.49,
|
| 723 |
+
0.719
|
| 724 |
+
],
|
| 725 |
+
"angle": 0,
|
| 726 |
+
"content": "Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877-1901. Curran Associates, Inc."
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "ref_text",
|
| 730 |
+
"bbox": [
|
| 731 |
+
0.117,
|
| 732 |
+
0.728,
|
| 733 |
+
0.49,
|
| 734 |
+
0.794
|
| 735 |
+
],
|
| 736 |
+
"angle": 0,
|
| 737 |
+
"content": "Aydar Bulatov, Yury Kuratov, and Mikhail Burtsev. 2022. Recurrent memory transformer. In Advances in Neural Information Processing Systems, volume 35, pages 11079-11091. Curran Associates, Inc."
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "ref_text",
|
| 741 |
+
"bbox": [
|
| 742 |
+
0.117,
|
| 743 |
+
0.804,
|
| 744 |
+
0.49,
|
| 745 |
+
0.857
|
| 746 |
+
],
|
| 747 |
+
"angle": 0,
|
| 748 |
+
"content": "Sanxing Chen, Xiaodong Liu, Jianfeng Gao, Jian Jiao, Ruofei Zhang, and Yangfeng Ji. 2020. Hitter: Hierarchical transformers for knowledge graph embeddings. arXiv preprint arXiv:2008.12813."
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "ref_text",
|
| 752 |
+
"bbox": [
|
| 753 |
+
0.117,
|
| 754 |
+
0.866,
|
| 755 |
+
0.49,
|
| 756 |
+
0.919
|
| 757 |
+
],
|
| 758 |
+
"angle": 0,
|
| 759 |
+
"content": "Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2022. Palm: Scaling"
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "list",
|
| 763 |
+
"bbox": [
|
| 764 |
+
0.117,
|
| 765 |
+
0.31,
|
| 766 |
+
0.49,
|
| 767 |
+
0.919
|
| 768 |
+
],
|
| 769 |
+
"angle": 0,
|
| 770 |
+
"content": null
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "ref_text",
|
| 774 |
+
"bbox": [
|
| 775 |
+
0.529,
|
| 776 |
+
0.086,
|
| 777 |
+
0.882,
|
| 778 |
+
0.113
|
| 779 |
+
],
|
| 780 |
+
"angle": 0,
|
| 781 |
+
"content": "language modeling with pathways. arXiv preprint arXiv:2204.02311."
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "ref_text",
|
| 785 |
+
"bbox": [
|
| 786 |
+
0.512,
|
| 787 |
+
0.126,
|
| 788 |
+
0.885,
|
| 789 |
+
0.218
|
| 790 |
+
],
|
| 791 |
+
"angle": 0,
|
| 792 |
+
"content": "Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, Luke Vilnis, Ishan Durugkar, Akshay Krishnamurthy, Alex Smola, and Andrew McCallum. 2018. Go for a walk and arrive at the answer: Reasoning over paths in knowledge bases using reinforcement learning. In International Conference on Learning Representations."
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "ref_text",
|
| 796 |
+
"bbox": [
|
| 797 |
+
0.512,
|
| 798 |
+
0.232,
|
| 799 |
+
0.885,
|
| 800 |
+
0.35
|
| 801 |
+
],
|
| 802 |
+
"angle": 0,
|
| 803 |
+
"content": "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."
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "ref_text",
|
| 807 |
+
"bbox": [
|
| 808 |
+
0.512,
|
| 809 |
+
0.363,
|
| 810 |
+
0.882,
|
| 811 |
+
0.415
|
| 812 |
+
],
|
| 813 |
+
"angle": 0,
|
| 814 |
+
"content": "Mikhail Galkin, Max Berrendorf, and Charles Tapley Hoyt. 2022. An Open Challenge for Inductive Link Prediction on Knowledge Graphs. arXiv preprint arXiv:2203.01520."
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "ref_text",
|
| 818 |
+
"bbox": [
|
| 819 |
+
0.512,
|
| 820 |
+
0.429,
|
| 821 |
+
0.885,
|
| 822 |
+
0.521
|
| 823 |
+
],
|
| 824 |
+
"angle": 0,
|
| 825 |
+
"content": "Mandy Guo, Joshua Ainslie, David Uthus, Santiago Ontanon, Jianmo Ni, Yun-Hsuan Sung, and Yinfei Yang. 2022. LongT5: Efficient text-to-text transformer for long sequences. In Findings of the Association for Computational Linguistics: NAACL 2022, pages 724-736, Seattle, United States. Association for Computational Linguistics."
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "ref_text",
|
| 829 |
+
"bbox": [
|
| 830 |
+
0.512,
|
| 831 |
+
0.534,
|
| 832 |
+
0.882,
|
| 833 |
+
0.587
|
| 834 |
+
],
|
| 835 |
+
"angle": 0,
|
| 836 |
+
"content": "DeLesley Hutchins, Imanol Schlag, Yuhuai Wu, Ethan Dyer, and Behnam Neyshabur. 2022. Block-recurrent transformers. In Advances in Neural Information Processing Systems."
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "ref_text",
|
| 840 |
+
"bbox": [
|
| 841 |
+
0.512,
|
| 842 |
+
0.601,
|
| 843 |
+
0.882,
|
| 844 |
+
0.641
|
| 845 |
+
],
|
| 846 |
+
"angle": 0,
|
| 847 |
+
"content": "Jeff Johnson, Matthijs Douze, and Hervé Jégou. 2019. Billion-scale similarity search with GPUs. IEEE Transactions on Big Data, 7(3):535-547."
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "ref_text",
|
| 851 |
+
"bbox": [
|
| 852 |
+
0.512,
|
| 853 |
+
0.654,
|
| 854 |
+
0.882,
|
| 855 |
+
0.707
|
| 856 |
+
],
|
| 857 |
+
"angle": 0,
|
| 858 |
+
"content": "Adrian Kochsiek, Apoorv Saxena, Inderjeet Nair, and Rainer Gemulla. 2023. Friendly neighbors: Contextualized sequence-to-sequence link prediction. arXiv preprint arXiv:2305.13059."
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "ref_text",
|
| 862 |
+
"bbox": [
|
| 863 |
+
0.512,
|
| 864 |
+
0.72,
|
| 865 |
+
0.882,
|
| 866 |
+
0.761
|
| 867 |
+
],
|
| 868 |
+
"angle": 0,
|
| 869 |
+
"content": "Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations."
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "ref_text",
|
| 873 |
+
"bbox": [
|
| 874 |
+
0.512,
|
| 875 |
+
0.773,
|
| 876 |
+
0.882,
|
| 877 |
+
0.827
|
| 878 |
+
],
|
| 879 |
+
"angle": 0,
|
| 880 |
+
"content": "Shirui Pan, Linhao Luo, Yufei Wang, Chen Chen, Jiapu Wang, and Xindong Wu. 2023. Unifying large language models and knowledge graphs: A roadmap. arXiv preprint arXiv:2306.08302."
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "ref_text",
|
| 884 |
+
"bbox": [
|
| 885 |
+
0.512,
|
| 886 |
+
0.84,
|
| 887 |
+
0.882,
|
| 888 |
+
0.919
|
| 889 |
+
],
|
| 890 |
+
"angle": 0,
|
| 891 |
+
"content": "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. The Journal of Machine Learning Research, 21(1):5485-5551."
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "list",
|
| 895 |
+
"bbox": [
|
| 896 |
+
0.512,
|
| 897 |
+
0.086,
|
| 898 |
+
0.885,
|
| 899 |
+
0.919
|
| 900 |
+
],
|
| 901 |
+
"angle": 0,
|
| 902 |
+
"content": null
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "page_number",
|
| 906 |
+
"bbox": [
|
| 907 |
+
0.481,
|
| 908 |
+
0.929,
|
| 909 |
+
0.52,
|
| 910 |
+
0.941
|
| 911 |
+
],
|
| 912 |
+
"angle": 0,
|
| 913 |
+
"content": "5311"
|
| 914 |
+
}
|
| 915 |
+
],
|
| 916 |
+
[
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"bbox": [
|
| 920 |
+
0.115,
|
| 921 |
+
0.086,
|
| 922 |
+
0.49,
|
| 923 |
+
0.192
|
| 924 |
+
],
|
| 925 |
+
"angle": 0,
|
| 926 |
+
"content": "Nils Reimers and Iryna Gurevych. 2019. SentenceBERT: Sentence embeddings using Siamese BERT-networks. 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 3982-3992, Hong Kong, China. Association for Computational Linguistics."
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "text",
|
| 930 |
+
"bbox": [
|
| 931 |
+
0.115,
|
| 932 |
+
0.201,
|
| 933 |
+
0.49,
|
| 934 |
+
0.293
|
| 935 |
+
],
|
| 936 |
+
"angle": 0,
|
| 937 |
+
"content": "Apoory Saxena, Adrian Kochsiek, and Rainer Gemulla. 2022. Sequence-to-sequence knowledge graph completion and question answering. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2814-2828, Dublin, Ireland. Association for Computational Linguistics."
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "text",
|
| 941 |
+
"bbox": [
|
| 942 |
+
0.115,
|
| 943 |
+
0.303,
|
| 944 |
+
0.49,
|
| 945 |
+
0.343
|
| 946 |
+
],
|
| 947 |
+
"angle": 0,
|
| 948 |
+
"content": "Alexander Sergeev and Mike Del Balso. 2018. Horovod: fast and easy distributed deep learning in TensorFlow. arXiv preprint arXiv:1802.05799."
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "text",
|
| 952 |
+
"bbox": [
|
| 953 |
+
0.115,
|
| 954 |
+
0.352,
|
| 955 |
+
0.49,
|
| 956 |
+
0.445
|
| 957 |
+
],
|
| 958 |
+
"angle": 0,
|
| 959 |
+
"content": "Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971."
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"bbox": [
|
| 964 |
+
0.115,
|
| 965 |
+
0.455,
|
| 966 |
+
0.49,
|
| 967 |
+
0.521
|
| 968 |
+
],
|
| 969 |
+
"angle": 0,
|
| 970 |
+
"content": "Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier, and Guillaume Bouchard. 2016. Complex embeddings for simple link prediction. In International conference on machine learning, pages 2071-2080. PMLR."
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"bbox": [
|
| 975 |
+
0.115,
|
| 976 |
+
0.531,
|
| 977 |
+
0.489,
|
| 978 |
+
0.584
|
| 979 |
+
],
|
| 980 |
+
"angle": 0,
|
| 981 |
+
"content": "Liang Wang, Wei Zhao, Zhuoyu Wei, and Jingming Liu. 2022. Simkgc: Simple contrastive knowledge graph completion with pre-trained language models. arXiv preprint arXiv:2203.02167."
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"bbox": [
|
| 986 |
+
0.115,
|
| 987 |
+
0.593,
|
| 988 |
+
0.49,
|
| 989 |
+
0.673
|
| 990 |
+
],
|
| 991 |
+
"angle": 0,
|
| 992 |
+
"content": "Xiaozhi Wang, Tianyu Gao, Zhaocheng Zhu, Zhengyan Zhang, Zhiyuan Liu, Juanzi Li, and Jian Tang. 2021. Kepler: A unified model for knowledge embedding and pre-trained language representation. Transactions of the Association for Computational Linguistics, 9:176-194."
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"bbox": [
|
| 997 |
+
0.115,
|
| 998 |
+
0.682,
|
| 999 |
+
0.49,
|
| 1000 |
+
0.762
|
| 1001 |
+
],
|
| 1002 |
+
"angle": 0,
|
| 1003 |
+
"content": "Xin Xie, Ningyu Zhang, Zhoubo Li, Shumin Deng, Hui Chen, Feiyu Xiong, Mosha Chen, and Huajun Chen. 2022. From discrimination to generation: Knowledge graph completion with generative transformer. In Companion Proceedings of the Web Conference 2022, pages 162-165."
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
0.115,
|
| 1009 |
+
0.771,
|
| 1010 |
+
0.49,
|
| 1011 |
+
0.812
|
| 1012 |
+
],
|
| 1013 |
+
"angle": 0,
|
| 1014 |
+
"content": "Liang Yao, Chengsheng Mao, and Yuan Luo. 2019. Kgbert: Bert for knowledge graph completion. arXiv preprint arXiv:1909.03193."
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
0.115,
|
| 1020 |
+
0.821,
|
| 1021 |
+
0.49,
|
| 1022 |
+
0.875
|
| 1023 |
+
],
|
| 1024 |
+
"angle": 0,
|
| 1025 |
+
"content": "Hanwen Zha, Zhiyu Chen, and Xifeng Yan. 2022. Inductive relation prediction by bert. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 5923-5931."
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "title",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
0.51,
|
| 1031 |
+
0.084,
|
| 1032 |
+
0.715,
|
| 1033 |
+
0.102
|
| 1034 |
+
],
|
| 1035 |
+
"angle": 0,
|
| 1036 |
+
"content": "A Input data pipeline"
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "image",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
0.517,
|
| 1042 |
+
0.127,
|
| 1043 |
+
0.877,
|
| 1044 |
+
0.219
|
| 1045 |
+
],
|
| 1046 |
+
"angle": 0,
|
| 1047 |
+
"content": null
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "image_caption",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
0.508,
|
| 1053 |
+
0.232,
|
| 1054 |
+
0.885,
|
| 1055 |
+
0.347
|
| 1056 |
+
],
|
| 1057 |
+
"angle": 0,
|
| 1058 |
+
"content": "Figure 3: Visualization of the complete pipeline for the preparation of the input data of the language model: 0) pre-calculate FastText embeddings for each relation in KG and form a static similarity matrix out of them; 1) form a neighborhood for the input triplet; 2) sort the neighborhood by relation similarity to the relation in the input query; 3) verbalize and concatenate query triplet and its neighborhood."
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "title",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
0.509,
|
| 1064 |
+
0.375,
|
| 1065 |
+
0.762,
|
| 1066 |
+
0.391
|
| 1067 |
+
],
|
| 1068 |
+
"angle": 0,
|
| 1069 |
+
"content": "B Neighborhood formation"
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
0.508,
|
| 1075 |
+
0.4,
|
| 1076 |
+
0.885,
|
| 1077 |
+
0.626
|
| 1078 |
+
],
|
| 1079 |
+
"angle": 0,
|
| 1080 |
+
"content": "To augment the semantic information contained in the entity and relationship names with the structural one, we used triplet neighborhoods. A triplet neighborhood is formed as follows: for a query (head, relation, ?) search for 1-hop neighbors associated with head entity, while excluding from the formed neighborhood target tail entity, which is associated with head by relation; head can be both head or tail entity in triplets that form this 1-hop neighborhood. In this manner, we obtain the context as a neighborhood of the graph, avoiding the leakage of the target entity. The process of neighborhood formation is illustrated on Figure 4."
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "image",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
0.52,
|
| 1086 |
+
0.652,
|
| 1087 |
+
0.67,
|
| 1088 |
+
0.789
|
| 1089 |
+
],
|
| 1090 |
+
"angle": 0,
|
| 1091 |
+
"content": null
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "image",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
0.671,
|
| 1097 |
+
0.652,
|
| 1098 |
+
0.876,
|
| 1099 |
+
0.789
|
| 1100 |
+
],
|
| 1101 |
+
"angle": 0,
|
| 1102 |
+
"content": null
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "image_caption",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
0.508,
|
| 1108 |
+
0.801,
|
| 1109 |
+
0.885,
|
| 1110 |
+
0.915
|
| 1111 |
+
],
|
| 1112 |
+
"angle": 0,
|
| 1113 |
+
"content": "Figure 4: Neighborhood formation - taking the input triplet, search for the triplets in which the head from the input triplet is either head or tail, then exclude the triplet with relation and tail from the input. As a result, there is a list of triplets that form the neighborhood for a given triplet. The represented neighborhood from the Wikidata5m KG is incomplete and textually verbalized for ease of understanding."
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "page_number",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
0.481,
|
| 1119 |
+
0.928,
|
| 1120 |
+
0.522,
|
| 1121 |
+
0.941
|
| 1122 |
+
],
|
| 1123 |
+
"angle": 0,
|
| 1124 |
+
"content": "5312"
|
| 1125 |
+
}
|
| 1126 |
+
],
|
| 1127 |
+
[
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
0.113,
|
| 1132 |
+
0.085,
|
| 1133 |
+
0.493,
|
| 1134 |
+
0.442
|
| 1135 |
+
],
|
| 1136 |
+
"angle": 0,
|
| 1137 |
+
"content": "However, some of the triplets from KGs result in extremely large neighborhoods, e.g. hub nodes such as \"human\". Therefore, we needed to tackle the problem of large neighborhoods to fit it into the model's context, which is limited to 512 tokens for most language models including T5. We propose to do it as follows: 1) sort the neighborhood by semantic similarity of relations from its triplets to the relation from the input triplet in order to prioritize more important information in the context; 2) limit the sorted neighborhood to 512 triplets, since this will always be at least as big as the size of the allowed context, and, after verbalization, specify the maximum length of 512 for the model tokenizer to fit the resulting verbalized neighborhood representation into the language model context. Neighborhood sorting by semantic proximity was performed using a pre-calculated matrix of cosine similarity of relations in KG, for similarity calculation the relations were embedded by the fasttext model (Bojanowski et al., 2017). Figure 5 displays a pipeline for neighborhood sorting."
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "image",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
0.139,
|
| 1143 |
+
0.469,
|
| 1144 |
+
0.465,
|
| 1145 |
+
0.598
|
| 1146 |
+
],
|
| 1147 |
+
"angle": 0,
|
| 1148 |
+
"content": null
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "image_caption",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
0.113,
|
| 1154 |
+
0.612,
|
| 1155 |
+
0.49,
|
| 1156 |
+
0.687
|
| 1157 |
+
],
|
| 1158 |
+
"angle": 0,
|
| 1159 |
+
"content": "Figure 5: Neighborhood sorting - taking the input triplet, its neighborhood, and pre-calculated similarity matrix for verbalized relation embedded by the FastText model, sort the neighborhood by the similarity of relations in its triplets to the relation in the input query."
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
0.113,
|
| 1165 |
+
0.703,
|
| 1166 |
+
0.49,
|
| 1167 |
+
0.898
|
| 1168 |
+
],
|
| 1169 |
+
"angle": 0,
|
| 1170 |
+
"content": "Neighborhood composition was a relatively straightforward task for a smaller graph like ILPC, but for Wikidata KG with a large number of triplets in the graph, neighborhood formation took a significant amount of time and RAM. To solve this problem, we used the MongoDB database<sup>3</sup>, which stored knowledge graph triplets in its collection in JSON format and contained indices for 'head' and 'tail' fields to speed up retrieving. In order not to store verbalized data in memory either during the verbalization process or during model training, verbalized representations were outputted to the"
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
0.509,
|
| 1176 |
+
0.085,
|
| 1177 |
+
0.883,
|
| 1178 |
+
0.119
|
| 1179 |
+
],
|
| 1180 |
+
"angle": 0,
|
| 1181 |
+
"content": "MongoDB collection too, and retrieved by batches from the database during training."
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "title",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
0.509,
|
| 1187 |
+
0.163,
|
| 1188 |
+
0.737,
|
| 1189 |
+
0.181
|
| 1190 |
+
],
|
| 1191 |
+
"angle": 0,
|
| 1192 |
+
"content": "C Triplets verbalization"
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
0.507,
|
| 1198 |
+
0.191,
|
| 1199 |
+
0.886,
|
| 1200 |
+
0.61
|
| 1201 |
+
],
|
| 1202 |
+
"angle": 0,
|
| 1203 |
+
"content": "To pass the resulting representations of queries to the input of the language model, we had to perform a transformation of these queries and their neighborhoods into textual form. In order to do this, we first needed to generate a mapping of entity and relationship Wikidata IDs into corresponding texts. For all the datasets we performed our experiments on there is such textual mapping. However, often there is no unambiguous encoding in such mappings because many entities have the same name. The problem of non-unique textual representations concerns Wikidata KG entities, not relations, e.g. apple as a fruit of the apple tree and Apple as an American multinational technology company. To tackle this issue we used the same method KGT5 authors proposed: 1) concatenate non-unique entity names with corresponding descriptions if ones exist; 2) in case there is no description or after description, concatenation text representations cannot be disambiguated, add unique numeric ids. For all other smaller datasets we only added a unique numeric identifier at the end of the name of non-unique entities. The full disambiguation pipeline is displayed in Figure 6. No such transformations were required for KG relations, as they were fully distinguishable by their text representation."
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "image",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
0.543,
|
| 1209 |
+
0.638,
|
| 1210 |
+
0.848,
|
| 1211 |
+
0.783
|
| 1212 |
+
],
|
| 1213 |
+
"angle": 0,
|
| 1214 |
+
"content": null
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "image_caption",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
0.508,
|
| 1220 |
+
0.795,
|
| 1221 |
+
0.887,
|
| 1222 |
+
0.869
|
| 1223 |
+
],
|
| 1224 |
+
"angle": 0,
|
| 1225 |
+
"content": "Figure 6: Disambiguation schema for wikidata5m entities: 1) concatenate entities' textual representation with corresponding description if there is one in the KG metadata; 2) if there is no description for some entities - concatenate their names with unique numerical id."
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
0.509,
|
| 1231 |
+
0.888,
|
| 1232 |
+
0.886,
|
| 1233 |
+
0.92
|
| 1234 |
+
],
|
| 1235 |
+
"angle": 0,
|
| 1236 |
+
"content": "The next step after obtaining 1to1 mapping of entities and relation IDs to their text representations"
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "page_footnote",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
0.137,
|
| 1242 |
+
0.904,
|
| 1243 |
+
0.313,
|
| 1244 |
+
0.919
|
| 1245 |
+
],
|
| 1246 |
+
"angle": 0,
|
| 1247 |
+
"content": "<sup>3</sup>https://www.mongodb.com"
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "page_number",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
0.481,
|
| 1253 |
+
0.928,
|
| 1254 |
+
0.522,
|
| 1255 |
+
0.941
|
| 1256 |
+
],
|
| 1257 |
+
"angle": 0,
|
| 1258 |
+
"content": "5313"
|
| 1259 |
+
}
|
| 1260 |
+
],
|
| 1261 |
+
[
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
0.114,
|
| 1266 |
+
0.085,
|
| 1267 |
+
0.49,
|
| 1268 |
+
0.149
|
| 1269 |
+
],
|
| 1270 |
+
"angle": 0,
|
| 1271 |
+
"content": "was verbalization of the resulting queries and corresponding neighborhoods in the KG. Textual representations of the query \\((head_q, relation_q, ?)\\) from KG were formed as follows:"
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
0.13,
|
| 1277 |
+
0.168,
|
| 1278 |
+
0.49,
|
| 1279 |
+
0.232
|
| 1280 |
+
],
|
| 1281 |
+
"angle": 0,
|
| 1282 |
+
"content": "1. first part of query verbalization was formed via concatenation of headq's and relation's text mappings with \"predict\" string, e.g. \"predict Steve Jobs place of birth\";"
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
0.129,
|
| 1288 |
+
0.251,
|
| 1289 |
+
0.492,
|
| 1290 |
+
0.526
|
| 1291 |
+
],
|
| 1292 |
+
"angle": 0,
|
| 1293 |
+
"content": "2. for each i-th triplet \\((head_q, relation_i, tail_i)\\) or \\((head_i, relation_i, head_q)\\) from the sorted query's neighborhood we formed a string consisting of \\(relation_i\\) and entity not belonging to the input query, i.e. for query (Steve Jobs, place of birth,?) the verbalized triplet (Steve Jobs, occupation, entrepreneur) from its neighborhood will be \"occupation entrepreneur\"; in case of so-called inverse triplet, e.g. in triplet \\((head_i, relation_i, head_q)\\), where \\(head_q\\) is a tail of the neighborhood triplet, we add \"inverse of\" to the textual mapping of \\(relation_i\\), i.e. for (Apple, founded by, Steve Jobs) verbalization will be \"inverse of founded by Apple\";"
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
0.129,
|
| 1299 |
+
0.544,
|
| 1300 |
+
0.49,
|
| 1301 |
+
0.625
|
| 1302 |
+
],
|
| 1303 |
+
"angle": 0,
|
| 1304 |
+
"content": "3. at the end we concatenate the verbalization obtained in stage (1) and all the verbalizations from stage (2) using the\" [SEP] \" string inserted between all the above-mentioned strings."
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "list",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
0.129,
|
| 1310 |
+
0.168,
|
| 1311 |
+
0.492,
|
| 1312 |
+
0.625
|
| 1313 |
+
],
|
| 1314 |
+
"angle": 0,
|
| 1315 |
+
"content": null
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "image",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
0.123,
|
| 1321 |
+
0.665,
|
| 1322 |
+
0.481,
|
| 1323 |
+
0.75
|
| 1324 |
+
],
|
| 1325 |
+
"angle": 0,
|
| 1326 |
+
"content": null
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "image_caption",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
0.113,
|
| 1332 |
+
0.767,
|
| 1333 |
+
0.49,
|
| 1334 |
+
0.868
|
| 1335 |
+
],
|
| 1336 |
+
"angle": 0,
|
| 1337 |
+
"content": "Figure 7: Query verbalization - map each entity and relation id from query triplet and its neighborhood triplets with corresponding textual representations; concatenate \"predict\" string, obtained query verbalization excluding target and the sorted triplets' verbalization without head entity from the query, separating each verbalized triplet by \"[SEP]\" token."
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
0.114,
|
| 1343 |
+
0.888,
|
| 1344 |
+
0.49,
|
| 1345 |
+
0.919
|
| 1346 |
+
],
|
| 1347 |
+
"angle": 0,
|
| 1348 |
+
"content": "Example of query and its neighborhood verbalization is represented on a Figure 7."
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "title",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
0.51,
|
| 1354 |
+
0.084,
|
| 1355 |
+
0.768,
|
| 1356 |
+
0.101
|
| 1357 |
+
],
|
| 1358 |
+
"angle": 0,
|
| 1359 |
+
"content": "D Link prediction inference"
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
0.507,
|
| 1365 |
+
0.113,
|
| 1366 |
+
0.885,
|
| 1367 |
+
0.483
|
| 1368 |
+
],
|
| 1369 |
+
"angle": 0,
|
| 1370 |
+
"content": "As in KGT5 (Saxena et al., 2022), to evaluate top-k possible answers, we sample k most probable sequences from the decoder and assign them their corresponding probabilities, which is a sum of log probabilities of each token in the sequence. Then, we assign \\(-\\infty\\) score for all the nodes that were not generated by the sampling procedure. In this way, we are producing results comparable with traditional KG models as we obtain plausibility scores for all possible triplets in KG. By such procedure, we can obtain whether a real score of the model (if the target sequence persists in k generated sequences) or the score that will be worse than a real (if the target sequence was not generated as one in the top-k probable sequences), thus not overestimating the resulting metric even though we do not score all the possible triplets. Additionally, to exclude both entities that do not belong to KG and known links from the train and valid graph in a transductive setting, we performed a filtering procedure specific to KGC evaluation protocol as described in the previous studies (Bordes et al., 2013)."
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
0.508,
|
| 1376 |
+
0.485,
|
| 1377 |
+
0.885,
|
| 1378 |
+
0.919
|
| 1379 |
+
],
|
| 1380 |
+
"angle": 0,
|
| 1381 |
+
"content": "As a main metric for choosing the best model during evaluation, we used Exact Match (EM) or in other words Hits@1, which returns 1 in case the generated and target sequences are exactly the same or 0 otherwise. However, an exact match between the target and the generated sequence can be a rather strict metric for long target entity names, and for previously unseen entities. Thus, we came up with a new approach for scoring entities produced by generative models such as T5 for inductive KGC. In this approach, we first embedded verbalized entities from the inference part of KG by Sbert model (Reimers and Gurevych, 2019) and then indexed the resulted vectors using FAISS index (Johnson et al., 2019). In such a way, we used a simple flat FAISS index to perform a lookup for the k most similar entities from inference KG to the generated one. Using the index for the inductive ILPC dataset, we retrieve entities from the KG that are semantically closest to the generated sequence even if the generated string is imperfect, but contains the right tokens referring to the target entity. In this manner, we could calculate Hits@k retrieving top-k closest to the generated entity names in a similar way as distance-based methods. Overall, in the case of inductive setup, we used a combination of exact match (EM) and FAISS-based met"
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "page_number",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
0.481,
|
| 1387 |
+
0.929,
|
| 1388 |
+
0.521,
|
| 1389 |
+
0.941
|
| 1390 |
+
],
|
| 1391 |
+
"angle": 0,
|
| 1392 |
+
"content": "5314"
|
| 1393 |
+
}
|
| 1394 |
+
],
|
| 1395 |
+
[
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
0.113,
|
| 1400 |
+
0.085,
|
| 1401 |
+
0.488,
|
| 1402 |
+
0.164
|
| 1403 |
+
],
|
| 1404 |
+
"angle": 0,
|
| 1405 |
+
"content": "rics Hits@k calculated by the following formula: \\(1000EM + Hits@1\\). In this way, we give more weight to the exact match metric, but in the case of equal EM in different checkpoints, the model with the best Hits@1 will be chosen."
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "title",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
0.115,
|
| 1411 |
+
0.185,
|
| 1412 |
+
0.307,
|
| 1413 |
+
0.201
|
| 1414 |
+
],
|
| 1415 |
+
"angle": 0,
|
| 1416 |
+
"content": "E Datasets statistics"
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "table_caption",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
0.192,
|
| 1422 |
+
0.227,
|
| 1423 |
+
0.409,
|
| 1424 |
+
0.241
|
| 1425 |
+
],
|
| 1426 |
+
"angle": 0,
|
| 1427 |
+
"content": "Table 4: Statistics of used KGs."
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "table",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
0.12,
|
| 1433 |
+
0.259,
|
| 1434 |
+
0.485,
|
| 1435 |
+
0.324
|
| 1436 |
+
],
|
| 1437 |
+
"angle": 0,
|
| 1438 |
+
"content": "<table><tr><td>Dataset</td><td># Entities</td><td># Relations</td><td># Triplets</td></tr><tr><td>Wikidata5M</td><td>4.8M</td><td>828</td><td>21M</td></tr><tr><td>ILPC-small</td><td>10,230</td><td>96</td><td>78,616</td></tr><tr><td>ILPC-large</td><td>46,626</td><td>130</td><td>202,446</td></tr></table>"
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "title",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
0.115,
|
| 1444 |
+
0.37,
|
| 1445 |
+
0.402,
|
| 1446 |
+
0.387
|
| 1447 |
+
],
|
| 1448 |
+
"angle": 0,
|
| 1449 |
+
"content": "F Attention map interpretation"
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "image",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
0.118,
|
| 1455 |
+
0.421,
|
| 1456 |
+
0.486,
|
| 1457 |
+
0.492
|
| 1458 |
+
],
|
| 1459 |
+
"angle": 0,
|
| 1460 |
+
"content": null
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "image_caption",
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
0.113,
|
| 1466 |
+
0.512,
|
| 1467 |
+
0.487,
|
| 1468 |
+
0.556
|
| 1469 |
+
],
|
| 1470 |
+
"angle": 0,
|
| 1471 |
+
"content": "Figure 8: Example of cross-encoder attention map highlighting the importance of neighborhood triplets from the input"
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"bbox": [
|
| 1476 |
+
0.113,
|
| 1477 |
+
0.577,
|
| 1478 |
+
0.489,
|
| 1479 |
+
0.689
|
| 1480 |
+
],
|
| 1481 |
+
"angle": 0,
|
| 1482 |
+
"content": "Figure 8 demonstrates a cross-encoder attention map highlighting the input neighborhood's significance for the target prediction. The query (Arman Kirakossian, country of citizenship, ?) identifies Yerevan, Armenia's capital, as the birthplace of the target entity, thereby amplifying its role in predicting the right country of citizenship."
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "title",
|
| 1486 |
+
"bbox": [
|
| 1487 |
+
0.114,
|
| 1488 |
+
0.708,
|
| 1489 |
+
0.414,
|
| 1490 |
+
0.741
|
| 1491 |
+
],
|
| 1492 |
+
"angle": 0,
|
| 1493 |
+
"content": "G Zero-shot link prediction with gpt-3.5-turbo"
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"bbox": [
|
| 1498 |
+
0.113,
|
| 1499 |
+
0.757,
|
| 1500 |
+
0.489,
|
| 1501 |
+
0.884
|
| 1502 |
+
],
|
| 1503 |
+
"angle": 0,
|
| 1504 |
+
"content": "Since OpenAI API only returns generated text, we cannot get its probabilities. Therefore, we use a slightly different evaluation pipeline from other models. We generate up to three predictions with gpt-3.5-turbo-0613. If any of the randomly selected \\(k\\) predictions match the target entity after cleaning and normalization, we set that model prediction as correct (Hits@ \\(k\\) in Table 2)."
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
0.114,
|
| 1510 |
+
0.888,
|
| 1511 |
+
0.488,
|
| 1512 |
+
0.919
|
| 1513 |
+
],
|
| 1514 |
+
"angle": 0,
|
| 1515 |
+
"content": "We use the following prompts to control the gpt-3.5-turbo-0613."
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "title",
|
| 1519 |
+
"bbox": [
|
| 1520 |
+
0.509,
|
| 1521 |
+
0.085,
|
| 1522 |
+
0.822,
|
| 1523 |
+
0.116
|
| 1524 |
+
],
|
| 1525 |
+
"angle": 0,
|
| 1526 |
+
"content": "G.1 Zero-shot link prediction without neighborhood"
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "text",
|
| 1530 |
+
"bbox": [
|
| 1531 |
+
0.507,
|
| 1532 |
+
0.125,
|
| 1533 |
+
0.884,
|
| 1534 |
+
0.236
|
| 1535 |
+
],
|
| 1536 |
+
"angle": 0,
|
| 1537 |
+
"content": "System prompt: You will be provided with a incomplete triplet from the Wikidata knowledge graph. Your task is to complete the triplet with a tail (subject) based on the given triplet head (object) and relation. Your answer must only include the tail of the triplet with prefix 'Tail':'. Do not include relation into the answer."
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "text",
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
0.508,
|
| 1543 |
+
0.239,
|
| 1544 |
+
0.883,
|
| 1545 |
+
0.27
|
| 1546 |
+
],
|
| 1547 |
+
"angle": 0,
|
| 1548 |
+
"content": "User prompt: Triplet to complete: <verbalized triplet>."
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"type": "title",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
0.509,
|
| 1554 |
+
0.286,
|
| 1555 |
+
0.797,
|
| 1556 |
+
0.317
|
| 1557 |
+
],
|
| 1558 |
+
"angle": 0,
|
| 1559 |
+
"content": "G.2 Zero-shot link prediction with neighborhood"
|
| 1560 |
+
},
|
| 1561 |
+
{
|
| 1562 |
+
"type": "text",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
0.507,
|
| 1565 |
+
0.325,
|
| 1566 |
+
0.884,
|
| 1567 |
+
0.468
|
| 1568 |
+
],
|
| 1569 |
+
"angle": 0,
|
| 1570 |
+
"content": "System prompt: You will be provided with a incomplete triplet from the Wikidata knowledge graph. Your task is to complete the triplet with a tail (subject) based on the given triplet head (object) and relation. Triplet to complete IS NOT in the list of related nodes, but it may contain helpful clues. Your answer must only include the tail of the triplet with prefix 'Tail':'. Do not include relation into the answer."
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "text",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
0.508,
|
| 1576 |
+
0.472,
|
| 1577 |
+
0.884,
|
| 1578 |
+
0.519
|
| 1579 |
+
],
|
| 1580 |
+
"angle": 0,
|
| 1581 |
+
"content": "User prompt: Adjacent relations: <verbalized neighborhood> \\(\\backslash n\\) Triplet to complete: <verbalized triplet>."
|
| 1582 |
+
},
|
| 1583 |
+
{
|
| 1584 |
+
"type": "title",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
0.509,
|
| 1587 |
+
0.536,
|
| 1588 |
+
0.804,
|
| 1589 |
+
0.551
|
| 1590 |
+
],
|
| 1591 |
+
"angle": 0,
|
| 1592 |
+
"content": "H Overview of concurrent work"
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
0.507,
|
| 1598 |
+
0.565,
|
| 1599 |
+
0.884,
|
| 1600 |
+
0.821
|
| 1601 |
+
],
|
| 1602 |
+
"angle": 0,
|
| 1603 |
+
"content": "While our work was under review, the concurrent work KGT5-context (Kochsiek et al., 2023) was published. Following the same idea, KGT5-context uses verbalized node neighborhood as additional context for KGC with the KGT5 model. However, KGT5-context explores the applicability of neighborhood information for KGC only in transductive setup. Also, neighborhood sampling in KGT5-context was performed randomly instead of prioritizing the neighbors, which makes the results less reproducible and does not consider the importance of neighbors in the context of a query. Furthermore, we show that this approach generalizes well to other pre-trained language models like gpt-3.5-turbo in a zero-shot setting without pre-training on KGC datasets."
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "text",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
0.508,
|
| 1609 |
+
0.824,
|
| 1610 |
+
0.883,
|
| 1611 |
+
0.918
|
| 1612 |
+
],
|
| 1613 |
+
"angle": 0,
|
| 1614 |
+
"content": "We have made the effort and tried our best to reproduce the results of the KGT5 model (Saxena et al., 2022) on Wikidata5M. We report the results of T5-small not pre-trained (Table 1), which is our version of the KGT5 model. Therefore, all our other models were trained and evaluated in"
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "page_number",
|
| 1618 |
+
"bbox": [
|
| 1619 |
+
0.481,
|
| 1620 |
+
0.928,
|
| 1621 |
+
0.521,
|
| 1622 |
+
0.941
|
| 1623 |
+
],
|
| 1624 |
+
"angle": 0,
|
| 1625 |
+
"content": "5315"
|
| 1626 |
+
}
|
| 1627 |
+
],
|
| 1628 |
+
[
|
| 1629 |
+
{
|
| 1630 |
+
"type": "text",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
0.115,
|
| 1633 |
+
0.086,
|
| 1634 |
+
0.489,
|
| 1635 |
+
0.117
|
| 1636 |
+
],
|
| 1637 |
+
"angle": 0,
|
| 1638 |
+
"content": "the same setting and with the same pipeline as for T5-small not pre-trained model."
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "page_number",
|
| 1642 |
+
"bbox": [
|
| 1643 |
+
0.481,
|
| 1644 |
+
0.929,
|
| 1645 |
+
0.522,
|
| 1646 |
+
0.941
|
| 1647 |
+
],
|
| 1648 |
+
"angle": 0,
|
| 1649 |
+
"content": "5316"
|
| 1650 |
+
}
|
| 1651 |
+
]
|
| 1652 |
+
]
|
2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/d96254f1-428d-46b8-a6d6-93195d523d44_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb1778887d0ec631b15ad0c5323f451dc088eac7e1bfee98f94e2969d1875089
|
| 3 |
+
size 811940
|
2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/full.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Better Together: Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information
|
| 2 |
+
|
| 3 |
+
Alla Chepurova<sup>1</sup> Aydar Bulatov<sup>1</sup> Yuri Kuratov<sup>1,2</sup> Mikhail Burtsev<sup>3</sup>
|
| 4 |
+
|
| 5 |
+
$^{1}$ Neural Networks and Deep Learning Lab, MIPT, Dolgoprudny, Russia $^{2}$ AIRI, Moscow, Russia
|
| 6 |
+
|
| 7 |
+
$^{3}$ London Institute for Mathematical Sciences, London, UK
|
| 8 |
+
chepurova@deeppavlov.ai, {bulatov.as, yurii.kuratov}@phystech.edu, mb@lims.ac.uk
|
| 9 |
+
|
| 10 |
+
# Abstract
|
| 11 |
+
|
| 12 |
+
Real-world Knowledge Graphs (KGs) often suffer from incompleteness, which limits their potential performance. Knowledge Graph Completion (KGC) techniques aim to address this issue. However, traditional KGC methods are computationally intensive and impractical for large-scale KGs, necessitating the learning of dense node embeddings and computing pairwise distances. Generative transformer-based language models (e.g., T5 and recent KGT5) offer a promising solution as they can predict the tail nodes directly. In this study, we propose to include node neighborhoods as additional information to improve KGC methods based on language models. We examine the effects of this imputation and show that, on both inductive and transductive Wikidata subsets, our method outperforms KGT5 and conventional KGC approaches. We also provide an extensive analysis of the impact of neighborhood on model prediction and show its importance. Furthermore, we point the way to significantly improve KGC through more effective neighborhood selection.
|
| 13 |
+
|
| 14 |
+
# 1 Introduction
|
| 15 |
+
|
| 16 |
+
Knowledge graphs (KG) represent structured information in the form of a directed multi-relational graph with entities as the graph's nodes and relations between entities as the graph's edges. Entities in such graphs could be both real-world objects or abstract concepts. KGs are represented as a set of triplets with representation entities and a relation between them, i.e. (head entity, relation, tail entity) or (h, r, t) for short. Due to KGs' recent rapid development, they are now widely used in a variety of applications, including data mining, information retrieval, question answering, and recommendation systems. However, most real-world knowledge graphs suffer from incompleteness. Knowledge graph completion (KGC) algorithms attempt to fill in the gaps in the KG in order to solve this problem.
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
Figure 1: Graph completion pipeline. We extract and verbalize neighborhood of a triplet head node from the Knowledge Graph (KG). Language Model uses verbalized input triplet and neighborhood to make predictions. Predictions can be used for question answering or KG completion.
|
| 20 |
+
|
| 21 |
+
KG link prediction commonly involves learning knowledge graph embeddings (KGE), which capture structural and semantic information about KG nodes, relations, and their neighborhoods in a way that a simple distance-based function would be able to distinguish real triplets from false ones. However, building a unique embedding for each node and relation leads to a linear increase in model size and inference time as the KG size grows. Another drawback is that KG updating requires full re-training of KGEs, rather than simply learning new embeddings for updated entities or relations.
|
| 22 |
+
|
| 23 |
+
Application of language models (LMs) to KGC tasks is a promising direction (Pan et al., 2023). State-of-the-art performance in most natural language processing (NLP) tasks has recently been demonstrated by pre-trained language models like BERT (Devlin et al., 2019) and more recent large or foundational language models (Brown et al., 2020; Chowdhery et al., 2022; Touvron et al., 2023). Language models-based approaches, such as KG-BERT (Yao et al., 2019), BERTRL (Zha et al., 2022), KGT5 (Saxena et al., 2022) and GenKGC (Xie et al., 2022) consider a triplet in the KG as a text sequence. While distance-based
|
| 24 |
+
|
| 25 |
+
methods incorporate more structural information in dense embeddings, language models tend to capture more semantic information contained in both relations and entities of KG, enabling such models to embed previously unseen entities and operate on new facts based on semantic information contained in triplets textual representation. Thus, KGT5 positions KG link prediction as sequence-to-sequence tasks. KGT5 model trained to generate target node using textually verbalized triplets achieves competitive performance and offers a scalable and simple framework for KGC and QA tasks.
|
| 26 |
+
|
| 27 |
+
Current methods based on language models (KG-BERT, BERTRL, KGT5, and GenKGC) rely only on information that can be extracted from LMs parameters. However, since KG itself is available, we build a method that relies on both internal language model knowledge and external information from KG. For the link prediction task $(h,r,\ref{eq:1})$ , we propose to extract nodes and relations adjacent to $h$ from the KG, i.e. the neighborhood. Node $h$ with its neighborhood better together represents $h$ itself: neighborhood may contain clues such as Palo Alto and United States of America for the triplet (Steve Jobs, place of birth, ?) on Figure 1.
|
| 28 |
+
|
| 29 |
+
Though some efforts have been made to incorporate neighborhood into the KGC algorithms (Chen et al., 2020), our proposed pipeline inherits the benefits of generative LLMs compared to KGE approaches: (1) scalability and size of the model, (2) applicability to both transductive and inductive KGs due to an ability to generalize unseen entities, (3) no need to rank all possible candidate triplets due to direct generation of tail entity. Also, a concurrent work by the KGT5 authors, KGT5-context (Kochsiek et al., 2023), proposed a similar idea of integrating node neighborhood in the context of the generative LM model, supporting the main concerns and results of our study.
|
| 30 |
+
|
| 31 |
+
Our contributions are as follows: (1) we propose a generative graph completion method which effectively integrates language models with graph neighborhood information. (2) We show that incorporating graph information into multiple generative language models achieve strong performance improvement of link prediction in both transductive and inductive settings. Moreover, our approach achieves state-of-the-art results on the inductive ILPC dataset. (3) We analyze and evaluate the impact of adding neighborhood information on the performance of the models.
|
| 32 |
+
|
| 33 |
+
# 2 Methods
|
| 34 |
+
|
| 35 |
+
One can represent KG more formally as $\mathcal{G} = (\mathcal{T},\mathcal{E},\mathcal{R})$ , where $\mathcal{E}$ is a set of entities, $\mathcal{R}$ is a set of relations and $\mathcal{T}$ is a set of triplets $\mathcal{T} \in \mathcal{E} \times \mathcal{R} \times \mathcal{E}$ . Therefore, the formulation of the KGC task is the following: for each triplet $\mathcal{T}_i = (h,r,t)$ , where $h \in \mathcal{E}, t \in \mathcal{E}, r \in \mathcal{R}$ , answer both $(h,r,?)$ and $(?,r,t)$ queries on the graph $\mathcal{G} / \mathcal{T}_i$ . The KGC tasks can have different variations depending on the KG type: inductive and transductive. In a transductive setting the KGC task is formulated as follows: given a train KG $\mathcal{G}_{train} = (\mathcal{T}_{train},\mathcal{E},\mathcal{R})$ train the model to predict on the inference KG $\mathcal{G}_{inference} = (\mathcal{T}_{inference},\mathcal{E},\mathcal{R})$ , therefore in the train and inference KG there is a same set of entities and relations. In inductive KGC the model is trained on the KG $\mathcal{G}_{train} = (\mathcal{T}_{train},\mathcal{R},\mathcal{E}_{train})$ and predicts the inference KG $\mathcal{G}_{inference} = (\mathcal{T}_{inference},\mathcal{R},\mathcal{E}_{inference})$ , so the trained model observed only on the entities from train subgraph of KG.
|
| 36 |
+
|
| 37 |
+
We followed the KGT5 (Saxena et al., 2022) approach to the KGC task using an encoder-decoder Transformer based on T5 (Raffel et al., 2020). The link prediction task was posed as follows: for each triplet $(entity_1, relation, entity_2)$ from KG we had to predict the tail in the queries $(entity_1, relation, ?)$ and $(entity_2, relation^{-1}, ?)$ . To generate input for the model, we converted such queries into a text form. Apart from the query verbalization only as in KGT5, we formed a neighborhood for the node and relations for each triplet in KG. Thus, verbalized queries and their neighborhoods in the form of text were fed to the input of the model for training (see Figure 1) and later to predict incomplete triplets. We form a neighborhood of nodes that have an edge with the triplet head node (1-hop neighbors). The number of adjacent nodes may be too large to fit into the context size of selected language models. Therefore, we sort them based on relation semantic similarity. We take only those verbalized nodes and relations that fit into the max sequence length. We provide more details on neighborhood formation in Appendix B and verbalization in Appendix C.
|
| 38 |
+
|
| 39 |
+
To evaluate our approach to link prediction tasks we used publically available transductive and inductive KGs. Specifically, we used the Wiki-data5M (Wang et al., 2021) dataset, which is one of the largest publicly available transductive KG up-to-date and large and small versions of ILPC
|
| 40 |
+
|
| 41 |
+
dataset (Galkin et al., 2022), the largest fully inductive benchmark. ILPC inference graph size is challenging for modern GNN methods with inductive capabilities (Galkin et al., 2022). Apart from being challenging to solve by common approaches, the ILPC KGs are much more sparse than the transductive Wikidata5M. The graph size and sparseness of the data make the task hard for existing methods and result in modest performance metrics. Still, there were no existing solutions that beat the baseline provided in the ILPC paper. Both used datasets are the subsets of the real-world KG - Wikidata. Datasets' statistics are provided in the Table 4).
|
| 42 |
+
|
| 43 |
+
We compared models with and without neighborhoods to evaluate our hypothesis that neighborhoods help to better together represent graph node. In addition, unlike the KGT5, we experimented with different model configurations, both fine-tuning an existing pre-trained model and training from scratch as common knowledge obtained during language models pre-training might be useful on real-world knowledge graphs like Wikidata.
|
| 44 |
+
|
| 45 |
+
We used the T5-small with 60M parameters as our base model with both pretrained and randomly initialized weights to evaluate the effect of pretraining of the language model on the KG task. We added additional "[SEP]" tokens to the tokenizer with 30K tokens vocabulary to separate query and neighborhood. The model was trained using AdamW optimizer (Loshchilov and Hutter, 2019), 1e-5 learning rate, $10\%$ dropout, and batch size equals 320. The number of training steps was equal to 5M for the Wikidata5M dataset and 2M for all others. For multi-gpu training, we used the Horovod parallelization framework (Sergeev and Balso, 2018). In cases where a batch size equal to 320 did not fit GPU, we used gradient accumulation steps. We also benchmarked OpenAI gpt-3.5-turbo<sup>1</sup> zero-shot link prediction and evaluate the benefits of a neighborhood on LLM (see Appendix G). The code for all the described experiments is available at the link<sup>2</sup>.
|
| 46 |
+
|
| 47 |
+
As KGT5, our model produces a probability distribution over all possible tokens in the vocabulary at each step of decoding. Such distribution is penalized for not matching the actual distribution, i.e., for the difference between the real target token at position $i$ and the generated token at step $i$ using
|
| 48 |
+
|
| 49 |
+
CE loss. Such an approach is principally different from distance-based methods as it does not require generating negative samples to make them further from the target prediction for each training query. In this way, training iteration becomes independent of the KG size.
|
| 50 |
+
|
| 51 |
+
To form predictions, we first verbalize the query (head, relation,?) and pass it as an input to the generative model to produce an output sequence, which will be a verbalization of the target entity id. For inference, we employed two strategies. The first one was sampling $k$ most probable sequences from the decoder. We follow the KGT5 (Saxena et al., 2022) setting and use a sample size of 50. We apply this approach to Wikidata5M datasets as it is transductive. The second option for inference was to search for the closest entities in KG to the generated one. We apply the second approach to ILPC inductive datasets as language models have to generate previously unseen entities. More details on inference procedure are in Appendix D.
|
| 52 |
+
|
| 53 |
+
# 3 Results
|
| 54 |
+
|
| 55 |
+
The hypothesis behind our approach was that neighborhood information incorporated in a context fed to the language model should enhance link prediction of generative LM. Tables 1 and 2 demonstrate the performance of our technique on Wikidata5M and ILPC datasets under various conditions, including training a T5 model with and without neighbors, using a pre-trained model or training a model from scratch, and zero-shot with gpt-3.5-turbo.
|
| 56 |
+
|
| 57 |
+
These results support the hypothesis that the quality of link prediction increases with the use of neighbors in the context of the generative model in both transductive and inductive settings. Moreover, our approach demonstrated SOTA performance on the ILPC dataset, while on Wikidata we achieved the best result among generative link prediction models, which is still comparable to scores of SOTA graph and LM methods with many more parameters. Relatively small absolute values of scores on the ILPC dataset can be explained by its fully inductive setup and larger sparseness compared to Wikidata5M. Still, there are no publicly available solutions that exceed the baseline score provided by ILPC authors. Our solution overperforms the existing baseline, is elegantly simple, and more interpretable than GNN-based solutions. Experiments on pre-trained models revealed that pre-training speeds up convergence but degrades
|
| 58 |
+
|
| 59 |
+
Table 1: Adding a neighborhood persistently improves results on the link prediction task. We report Hits@k metrics on Wikidata5M, ILPC-small, and ILPC-large test sets. Arrows $\uparrow\downarrow$ show the effect of the neighborhood on language models. Neighbors allow to achieve the best performance considering the number of model parameters.
|
| 60 |
+
|
| 61 |
+
<table><tr><td rowspan="2">MODEL</td><td colspan="3">WIKIDATA5M</td><td colspan="3">ILPC-SMALL</td><td colspan="3">ILPC-LARGE</td><td rowspan="2">#PARAMS</td></tr><tr><td>H@1</td><td>H@3</td><td>H@10</td><td>H@1</td><td>H@3</td><td>H@10</td><td>H@1</td><td>H@3</td><td>H@10</td></tr><tr><td>KGT5 (SAXENA ET AL., 2022)</td><td>0.267</td><td>0.318</td><td>0.365</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>TRANSE (BORDES ET AL., 2013)</td><td>0.170</td><td>0.311</td><td>0.392</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>2,400M</td></tr><tr><td>COMPLEX (TROULLON ET AL., 2016)</td><td>0.255</td><td>-</td><td>0.398</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>614M</td></tr><tr><td>KEPLER (WANG ET AL., 2021)</td><td>0.173</td><td>0.224</td><td>0.277</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>125M</td></tr><tr><td>SIMKGC (WANG ET AL., 2022)</td><td>0.313</td><td>0.376</td><td>0.441</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>220M</td></tr><tr><td>INDNODEPIECE (GALKIN ET AL., 2022)</td><td>-</td><td>-</td><td>-</td><td>0.007</td><td>0.022</td><td>0.092</td><td>0.037</td><td>0.054</td><td>0.125</td><td>15.5K</td></tr><tr><td>INDNODEPIECEGNN (GALKIN ET AL., 2022)</td><td>-</td><td>-</td><td>-</td><td>0.076</td><td>0.140</td><td>0.251</td><td>0.032</td><td>0.073</td><td>0.146</td><td>24K</td></tr><tr><td>T5-SMALL NOT PRE-TRAINED</td><td>0.240</td><td>0.286</td><td>0.323</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>T5-SMALL NOT PRE-TRAINED + NEIGHBORS</td><td>0.327↑</td><td>0.363↑</td><td>0.386↑</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60M</td></tr><tr><td>T5-SMALL PRE-TRAINED</td><td>0.205</td><td>0.248</td><td>0.282</td><td>0.073</td><td>0.117</td><td>0.177</td><td>0.112</td><td>0.137</td><td>0.194</td><td>60M</td></tr><tr><td>T5-SMALL PRE-TRAINED + NEIGHBORS</td><td>0.306↑</td><td>0.342↑</td><td>0.361↑</td><td>0.076↑</td><td>0.137↑</td><td>0.209↑</td><td>0.114↑</td><td>0.139↑</td><td>0.200↑</td><td>60M</td></tr><tr><td>T5-BASE PRE-TRAINED</td><td>-</td><td>-</td><td>-</td><td>0.073</td><td>0.130</td><td>0.199</td><td>0.110</td><td>0.136</td><td>0.198</td><td>220M</td></tr><tr><td>T5-BASE PRE-TRAINED + NEIGHBORS</td><td>-</td><td>-</td><td>-</td><td>0.082↑</td><td>0.142↑</td><td>0.216↑</td><td>0.116↑</td><td>0.141↑</td><td>0.215↑</td><td>220M</td></tr></table>
|
| 62 |
+
|
| 63 |
+
Table 2: Neighbor information improves zero-shot link prediction with OpenAI gpt-3.5-turbo-0613. *ILPC-Large results were obtained on 5000 random samples from the test set.
|
| 64 |
+
|
| 65 |
+
<table><tr><td rowspan="2">DATASET</td><td colspan="2">GPT</td><td colspan="2">GPT+NEIGH</td></tr><tr><td>H@1</td><td>H@3</td><td>H@1</td><td>H@3</td></tr><tr><td>WIKIDATA5M</td><td>0.098</td><td>0.131</td><td>0.113↑</td><td>0.157↑</td></tr><tr><td>ILPC-SMOTE</td><td>0.079</td><td>0.107</td><td>0.084↑</td><td>0.118↑</td></tr><tr><td>ILPC-LARGE*</td><td>0.103</td><td>0.134</td><td>0.114↑</td><td>0.150↑</td></tr></table>
|
| 66 |
+
|
| 67 |
+
the quality of the model by a few points compared to the one trained from scratch.
|
| 68 |
+
|
| 69 |
+
Also, we demonstrated that neighbors' information enhances performance across different generative models. This includes open-source models such as T5, as well as proprietary models like OpenAI GPTs that are distributed as a model-as-a-service. Although both types of models have their own advantages and limitations, it should be noted that OpenAI GPTs are black box models that cannot be modified or interpreted further. Usage of OpenAI GPTs is restricted in the case of more specialized or proprietary KGs that can store secure or non-public information. In the context of our study, OpenAI's gpt-3.5-turbo has a much larger size and cost, compared to smaller and transparent T5, still our approach improves the performance of both models.
|
| 70 |
+
|
| 71 |
+
To get an understanding of how proposed models learn to use neighboring triplets we compared predictions of models trained with and without graph information in the input. One possible case when neighbors help in link prediction is when a target entity is somehow mentioned in the model input. Because of neighborhood filtering, the target triplet never appears in the model input, however in some cases target entity can occur with different relations
|
| 72 |
+
|
| 73 |
+
or as a substring of another entity in a neighborhood or even in the task itself (Table 3). Despite the tail appearing in input only in a small portion of the test set, the neighborhood model learns to make use of such hints, outperforming the baseline T5 in all selected cases. The high solution rate of more than 4 out of 5 samples with hinted targets supports the importance of properly selected neighborhoods.
|
| 74 |
+
|
| 75 |
+

|
| 76 |
+
Figure 2: KG neighborhood is critical for the model performance. The plot shows how the quality of link prediction depends on the number of neighborhood triplets removed from the input context Wikidata5M T5-small not pre-trained model. The blue solid line corresponds to removing the most relevant triplets and the dashed red line represents random selection.
|
| 77 |
+
|
| 78 |
+
To evaluate the impact of neighborhoods, we analyzed triplets' importance by sorting them based on how they affect the probability of the target node prediction. As Figure 2 shows, a performance of the model quickly deteriorates with the removal of important triplets from the context. This implies potential avenues for improvement by prioritizing significant triplets selection prior to model training. Moreover, we analyzed attention maps of the model train on Wikidata5M and found that it indeed pays attention to relevant neighbors, e.g. Appendix F.
|
| 79 |
+
|
| 80 |
+
The analysis shows that adding relevant graph
|
| 81 |
+
|
| 82 |
+
Table 3: Adding relevant neighbors improves link prediction for T5-small on the Wikidata test set. The table shows the exact match depending on a hint of the target entity's appearance as a part of the model input.
|
| 83 |
+
|
| 84 |
+
<table><tr><td>Target position</td><td>T5</td><td>T5 + Neighbors</td><td>frequency</td></tr><tr><td>In task</td><td>0.93</td><td>0.94↑</td><td>5 %</td></tr><tr><td>In neighborhood</td><td>0.34</td><td>0.82↑</td><td>8 %</td></tr><tr><td>Not in input</td><td>0.18</td><td>0.24↑</td><td>87 %</td></tr><tr><td>Total</td><td>0.23</td><td>0.32↑</td><td>100 %</td></tr></table>
|
| 85 |
+
|
| 86 |
+
context information greatly enhances link prediction. Hence one way of improving performance is increasing neighborhood size by adding k-hop neighbors. Due to the quadratic complexity of attention and the limited input size of pretrained transformers, processing exponentially growing neighborhoods would be computationally expensive. To deal with large input sizes one can use efficient T5 architectures with input sizes up to 32k (Guo et al., 2022) and 64k (Ainslie et al., 2023) tokens or recurrent approaches (Bulatov et al., 2022; Hutchins et al., 2022) that can sequentially process effectively unlimited neighborhood sizes. Another potential way of subgraph selection is to add relevant but more distant knowledge graph information, such as random walks or more sophisticated methods (Das et al., 2018).
|
| 87 |
+
|
| 88 |
+
# 4 Conclusions and Future work
|
| 89 |
+
|
| 90 |
+
Our study found that incorporating KG neighborhood information into a generative model's context can enhance the quality of the link prediction task. We trained the T5-small model on transductive Wikidata5M and inductive ILPC datasets with various configurations and showed that coupling the node and its neighborhood information together better represents the node. Our approach significantly outperformed baselines on the largest real-world KGCs, with a comparable or fewer number of parameters. We also demonstrated that OpenAI's gpt-3.5-turbo performance on the KGC task also benefits from neighborhood information without prior fine-tuning. In addition to the quality improvement, we analyzed the impact of neighborhood imputation, highlighting the significance of selecting relevant triplets or extending the model's context in future works. Furthermore, future studies could explore the impact of model size, the effect of neighborhood imputation on the datasets from other domains, and neighborhood selection strategies.
|
| 91 |
+
|
| 92 |
+
# Limitations
|
| 93 |
+
|
| 94 |
+
Limitations of this study include the training of only relatively small models, with only T5 being employed. Further study of the benefits of larger models applied to KGC tasks should be performed. Additionally, each knowledge graph in this study was limited to only one model, which may not accurately represent more complex graphs that involve multiple datasets. Another limitation is that language models are better suited for real-world textual data and may not work well for KGC representing more specialized concepts, such as biology or medicine. Also, although neighborhood selection was performed, we cannot guarantee that the selected neighborhoods are optimal. Further works should include the way of extending the ability of models to capture larger parts of a graph or selecting the most relevant neighbors. Moreover, constructing prompts for testing GPT performance may not be optimal, and the model's maximal performance cannot be guaranteed without knowledge of its training data.
|
| 95 |
+
|
| 96 |
+
# Ethics Statement
|
| 97 |
+
|
| 98 |
+
As a field of study in the intersection of natural language processing and knowledge graphs, this work inherits the main ethical considerations of both of these domains. Automated graph completion tasks may produce various types of mistakes, including but not limited to factual and grammatical errors. Consequently, any application based on this work should employ robust error detection mechanisms prior to deployment. Additionally, given that our system employs a generative language model, there exists a risk of generating false or misleading content such as hallucinations and biases existing in pre-training and knowledge graph data. Users of the proposed method or any application based on it should be warned about the potential risks of using generative language models. Potential misuses may include purposeful disinformation and misleading language or factual information. Taking into account the aforementioned considerations, we believe that under ethically responsible usage this work will have a positive impact on artificial intelligence research and applications.
|
| 99 |
+
|
| 100 |
+
# Acknowledgements
|
| 101 |
+
|
| 102 |
+
We are grateful to Mikhail Galkin for valuable advice on knowledge graphs and introduction to the
|
| 103 |
+
|
| 104 |
+
ILPC dataset. We are thankful to SberDevices for granting us access to additional computational resources. A.C., A.B., and Y.K.'s work was supported by a grant for research centers in the field of artificial intelligence, provided by the Analytical Center for the Government of the Russian Federation in accordance with the subsidy agreement (agreement identifier 000000D730321P5Q0002) and the agreement with the Moscow Institute of Physics and Technology dated November 1, 2021 No. 70-2021-00138.
|
| 105 |
+
|
| 106 |
+
# References
|
| 107 |
+
|
| 108 |
+
Joshua Ainslie, Tao Lei, Michiel de Jong, Santiago Ontañón, Siddhartha Brahma, Yury Zemlyanskiy, David Uthus, Mandy Guo, James Lee-Thorp, Yi Tay, YunHsuan Sung, and Sumit Sanghai. 2023. Colt5: Faster long-range transformers with conditional computation.
|
| 109 |
+
Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. 2017. Enriching word vectors with subword information. Transactions of the association for computational linguistics, 5:135-146.
|
| 110 |
+
Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi-relational data. Advances in neural information processing systems, 26.
|
| 111 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877-1901. Curran Associates, Inc.
|
| 112 |
+
Aydar Bulatov, Yury Kuratov, and Mikhail Burtsev. 2022. Recurrent memory transformer. In Advances in Neural Information Processing Systems, volume 35, pages 11079-11091. Curran Associates, Inc.
|
| 113 |
+
Sanxing Chen, Xiaodong Liu, Jianfeng Gao, Jian Jiao, Ruofei Zhang, and Yangfeng Ji. 2020. Hitter: Hierarchical transformers for knowledge graph embeddings. arXiv preprint arXiv:2008.12813.
|
| 114 |
+
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2022. Palm: Scaling
|
| 115 |
+
|
| 116 |
+
language modeling with pathways. arXiv preprint arXiv:2204.02311.
|
| 117 |
+
Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, Luke Vilnis, Ishan Durugkar, Akshay Krishnamurthy, Alex Smola, and Andrew McCallum. 2018. Go for a walk and arrive at the answer: Reasoning over paths in knowledge bases using reinforcement learning. In International Conference on Learning Representations.
|
| 118 |
+
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.
|
| 119 |
+
Mikhail Galkin, Max Berrendorf, and Charles Tapley Hoyt. 2022. An Open Challenge for Inductive Link Prediction on Knowledge Graphs. arXiv preprint arXiv:2203.01520.
|
| 120 |
+
Mandy Guo, Joshua Ainslie, David Uthus, Santiago Ontanon, Jianmo Ni, Yun-Hsuan Sung, and Yinfei Yang. 2022. LongT5: Efficient text-to-text transformer for long sequences. In Findings of the Association for Computational Linguistics: NAACL 2022, pages 724-736, Seattle, United States. Association for Computational Linguistics.
|
| 121 |
+
DeLesley Hutchins, Imanol Schlag, Yuhuai Wu, Ethan Dyer, and Behnam Neyshabur. 2022. Block-recurrent transformers. In Advances in Neural Information Processing Systems.
|
| 122 |
+
Jeff Johnson, Matthijs Douze, and Hervé Jégou. 2019. Billion-scale similarity search with GPUs. IEEE Transactions on Big Data, 7(3):535-547.
|
| 123 |
+
Adrian Kochsiek, Apoorv Saxena, Inderjeet Nair, and Rainer Gemulla. 2023. Friendly neighbors: Contextualized sequence-to-sequence link prediction. arXiv preprint arXiv:2305.13059.
|
| 124 |
+
Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations.
|
| 125 |
+
Shirui Pan, Linhao Luo, Yufei Wang, Chen Chen, Jiapu Wang, and Xindong Wu. 2023. Unifying large language models and knowledge graphs: A roadmap. arXiv preprint arXiv:2306.08302.
|
| 126 |
+
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.
|
| 127 |
+
|
| 128 |
+
Nils Reimers and Iryna Gurevych. 2019. SentenceBERT: Sentence embeddings using Siamese BERT-networks. 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 3982-3992, Hong Kong, China. Association for Computational Linguistics.
|
| 129 |
+
|
| 130 |
+
Apoory Saxena, Adrian Kochsiek, and Rainer Gemulla. 2022. Sequence-to-sequence knowledge graph completion and question answering. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2814-2828, Dublin, Ireland. Association for Computational Linguistics.
|
| 131 |
+
|
| 132 |
+
Alexander Sergeev and Mike Del Balso. 2018. Horovod: fast and easy distributed deep learning in TensorFlow. arXiv preprint arXiv:1802.05799.
|
| 133 |
+
|
| 134 |
+
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.
|
| 135 |
+
|
| 136 |
+
Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier, and Guillaume Bouchard. 2016. Complex embeddings for simple link prediction. In International conference on machine learning, pages 2071-2080. PMLR.
|
| 137 |
+
|
| 138 |
+
Liang Wang, Wei Zhao, Zhuoyu Wei, and Jingming Liu. 2022. Simkgc: Simple contrastive knowledge graph completion with pre-trained language models. arXiv preprint arXiv:2203.02167.
|
| 139 |
+
|
| 140 |
+
Xiaozhi Wang, Tianyu Gao, Zhaocheng Zhu, Zhengyan Zhang, Zhiyuan Liu, Juanzi Li, and Jian Tang. 2021. Kepler: A unified model for knowledge embedding and pre-trained language representation. Transactions of the Association for Computational Linguistics, 9:176-194.
|
| 141 |
+
|
| 142 |
+
Xin Xie, Ningyu Zhang, Zhoubo Li, Shumin Deng, Hui Chen, Feiyu Xiong, Mosha Chen, and Huajun Chen. 2022. From discrimination to generation: Knowledge graph completion with generative transformer. In Companion Proceedings of the Web Conference 2022, pages 162-165.
|
| 143 |
+
|
| 144 |
+
Liang Yao, Chengsheng Mao, and Yuan Luo. 2019. Kgbert: Bert for knowledge graph completion. arXiv preprint arXiv:1909.03193.
|
| 145 |
+
|
| 146 |
+
Hanwen Zha, Zhiyu Chen, and Xifeng Yan. 2022. Inductive relation prediction by bert. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 5923-5931.
|
| 147 |
+
|
| 148 |
+
# A Input data pipeline
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
Figure 3: Visualization of the complete pipeline for the preparation of the input data of the language model: 0) pre-calculate FastText embeddings for each relation in KG and form a static similarity matrix out of them; 1) form a neighborhood for the input triplet; 2) sort the neighborhood by relation similarity to the relation in the input query; 3) verbalize and concatenate query triplet and its neighborhood.
|
| 152 |
+
|
| 153 |
+
# B Neighborhood formation
|
| 154 |
+
|
| 155 |
+
To augment the semantic information contained in the entity and relationship names with the structural one, we used triplet neighborhoods. A triplet neighborhood is formed as follows: for a query (head, relation, ?) search for 1-hop neighbors associated with head entity, while excluding from the formed neighborhood target tail entity, which is associated with head by relation; head can be both head or tail entity in triplets that form this 1-hop neighborhood. In this manner, we obtain the context as a neighborhood of the graph, avoiding the leakage of the target entity. The process of neighborhood formation is illustrated on Figure 4.
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 4: Neighborhood formation - taking the input triplet, search for the triplets in which the head from the input triplet is either head or tail, then exclude the triplet with relation and tail from the input. As a result, there is a list of triplets that form the neighborhood for a given triplet. The represented neighborhood from the Wikidata5m KG is incomplete and textually verbalized for ease of understanding.
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
|
| 162 |
+
However, some of the triplets from KGs result in extremely large neighborhoods, e.g. hub nodes such as "human". Therefore, we needed to tackle the problem of large neighborhoods to fit it into the model's context, which is limited to 512 tokens for most language models including T5. We propose to do it as follows: 1) sort the neighborhood by semantic similarity of relations from its triplets to the relation from the input triplet in order to prioritize more important information in the context; 2) limit the sorted neighborhood to 512 triplets, since this will always be at least as big as the size of the allowed context, and, after verbalization, specify the maximum length of 512 for the model tokenizer to fit the resulting verbalized neighborhood representation into the language model context. Neighborhood sorting by semantic proximity was performed using a pre-calculated matrix of cosine similarity of relations in KG, for similarity calculation the relations were embedded by the fasttext model (Bojanowski et al., 2017). Figure 5 displays a pipeline for neighborhood sorting.
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
Figure 5: Neighborhood sorting - taking the input triplet, its neighborhood, and pre-calculated similarity matrix for verbalized relation embedded by the FastText model, sort the neighborhood by the similarity of relations in its triplets to the relation in the input query.
|
| 166 |
+
|
| 167 |
+
Neighborhood composition was a relatively straightforward task for a smaller graph like ILPC, but for Wikidata KG with a large number of triplets in the graph, neighborhood formation took a significant amount of time and RAM. To solve this problem, we used the MongoDB database<sup>3</sup>, which stored knowledge graph triplets in its collection in JSON format and contained indices for 'head' and 'tail' fields to speed up retrieving. In order not to store verbalized data in memory either during the verbalization process or during model training, verbalized representations were outputted to the
|
| 168 |
+
|
| 169 |
+
MongoDB collection too, and retrieved by batches from the database during training.
|
| 170 |
+
|
| 171 |
+
# C Triplets verbalization
|
| 172 |
+
|
| 173 |
+
To pass the resulting representations of queries to the input of the language model, we had to perform a transformation of these queries and their neighborhoods into textual form. In order to do this, we first needed to generate a mapping of entity and relationship Wikidata IDs into corresponding texts. For all the datasets we performed our experiments on there is such textual mapping. However, often there is no unambiguous encoding in such mappings because many entities have the same name. The problem of non-unique textual representations concerns Wikidata KG entities, not relations, e.g. apple as a fruit of the apple tree and Apple as an American multinational technology company. To tackle this issue we used the same method KGT5 authors proposed: 1) concatenate non-unique entity names with corresponding descriptions if ones exist; 2) in case there is no description or after description, concatenation text representations cannot be disambiguated, add unique numeric ids. For all other smaller datasets we only added a unique numeric identifier at the end of the name of non-unique entities. The full disambiguation pipeline is displayed in Figure 6. No such transformations were required for KG relations, as they were fully distinguishable by their text representation.
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
Figure 6: Disambiguation schema for wikidata5m entities: 1) concatenate entities' textual representation with corresponding description if there is one in the KG metadata; 2) if there is no description for some entities - concatenate their names with unique numerical id.
|
| 177 |
+
|
| 178 |
+
The next step after obtaining 1to1 mapping of entities and relation IDs to their text representations
|
| 179 |
+
|
| 180 |
+
was verbalization of the resulting queries and corresponding neighborhoods in the KG. Textual representations of the query $(head_q, relation_q, ?)$ from KG were formed as follows:
|
| 181 |
+
|
| 182 |
+
1. first part of query verbalization was formed via concatenation of headq's and relation's text mappings with "predict" string, e.g. "predict Steve Jobs place of birth";
|
| 183 |
+
2. for each i-th triplet $(head_q, relation_i, tail_i)$ or $(head_i, relation_i, head_q)$ from the sorted query's neighborhood we formed a string consisting of $relation_i$ and entity not belonging to the input query, i.e. for query (Steve Jobs, place of birth,?) the verbalized triplet (Steve Jobs, occupation, entrepreneur) from its neighborhood will be "occupation entrepreneur"; in case of so-called inverse triplet, e.g. in triplet $(head_i, relation_i, head_q)$ , where $head_q$ is a tail of the neighborhood triplet, we add "inverse of" to the textual mapping of $relation_i$ , i.e. for (Apple, founded by, Steve Jobs) verbalization will be "inverse of founded by Apple";
|
| 184 |
+
3. at the end we concatenate the verbalization obtained in stage (1) and all the verbalizations from stage (2) using the" [SEP] " string inserted between all the above-mentioned strings.
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Figure 7: Query verbalization - map each entity and relation id from query triplet and its neighborhood triplets with corresponding textual representations; concatenate "predict" string, obtained query verbalization excluding target and the sorted triplets' verbalization without head entity from the query, separating each verbalized triplet by "[SEP]" token.
|
| 188 |
+
|
| 189 |
+
Example of query and its neighborhood verbalization is represented on a Figure 7.
|
| 190 |
+
|
| 191 |
+
# D Link prediction inference
|
| 192 |
+
|
| 193 |
+
As in KGT5 (Saxena et al., 2022), to evaluate top-k possible answers, we sample k most probable sequences from the decoder and assign them their corresponding probabilities, which is a sum of log probabilities of each token in the sequence. Then, we assign $-\infty$ score for all the nodes that were not generated by the sampling procedure. In this way, we are producing results comparable with traditional KG models as we obtain plausibility scores for all possible triplets in KG. By such procedure, we can obtain whether a real score of the model (if the target sequence persists in k generated sequences) or the score that will be worse than a real (if the target sequence was not generated as one in the top-k probable sequences), thus not overestimating the resulting metric even though we do not score all the possible triplets. Additionally, to exclude both entities that do not belong to KG and known links from the train and valid graph in a transductive setting, we performed a filtering procedure specific to KGC evaluation protocol as described in the previous studies (Bordes et al., 2013).
|
| 194 |
+
|
| 195 |
+
As a main metric for choosing the best model during evaluation, we used Exact Match (EM) or in other words Hits@1, which returns 1 in case the generated and target sequences are exactly the same or 0 otherwise. However, an exact match between the target and the generated sequence can be a rather strict metric for long target entity names, and for previously unseen entities. Thus, we came up with a new approach for scoring entities produced by generative models such as T5 for inductive KGC. In this approach, we first embedded verbalized entities from the inference part of KG by Sbert model (Reimers and Gurevych, 2019) and then indexed the resulted vectors using FAISS index (Johnson et al., 2019). In such a way, we used a simple flat FAISS index to perform a lookup for the k most similar entities from inference KG to the generated one. Using the index for the inductive ILPC dataset, we retrieve entities from the KG that are semantically closest to the generated sequence even if the generated string is imperfect, but contains the right tokens referring to the target entity. In this manner, we could calculate Hits@k retrieving top-k closest to the generated entity names in a similar way as distance-based methods. Overall, in the case of inductive setup, we used a combination of exact match (EM) and FAISS-based met
|
| 196 |
+
|
| 197 |
+
rics Hits@k calculated by the following formula: $1000EM + Hits@1$ . In this way, we give more weight to the exact match metric, but in the case of equal EM in different checkpoints, the model with the best Hits@1 will be chosen.
|
| 198 |
+
|
| 199 |
+
# E Datasets statistics
|
| 200 |
+
|
| 201 |
+
Table 4: Statistics of used KGs.
|
| 202 |
+
|
| 203 |
+
<table><tr><td>Dataset</td><td># Entities</td><td># Relations</td><td># Triplets</td></tr><tr><td>Wikidata5M</td><td>4.8M</td><td>828</td><td>21M</td></tr><tr><td>ILPC-small</td><td>10,230</td><td>96</td><td>78,616</td></tr><tr><td>ILPC-large</td><td>46,626</td><td>130</td><td>202,446</td></tr></table>
|
| 204 |
+
|
| 205 |
+
# F Attention map interpretation
|
| 206 |
+
|
| 207 |
+

|
| 208 |
+
Figure 8: Example of cross-encoder attention map highlighting the importance of neighborhood triplets from the input
|
| 209 |
+
|
| 210 |
+
Figure 8 demonstrates a cross-encoder attention map highlighting the input neighborhood's significance for the target prediction. The query (Arman Kirakossian, country of citizenship, ?) identifies Yerevan, Armenia's capital, as the birthplace of the target entity, thereby amplifying its role in predicting the right country of citizenship.
|
| 211 |
+
|
| 212 |
+
# G Zero-shot link prediction with gpt-3.5-turbo
|
| 213 |
+
|
| 214 |
+
Since OpenAI API only returns generated text, we cannot get its probabilities. Therefore, we use a slightly different evaluation pipeline from other models. We generate up to three predictions with gpt-3.5-turbo-0613. If any of the randomly selected $k$ predictions match the target entity after cleaning and normalization, we set that model prediction as correct (Hits@ $k$ in Table 2).
|
| 215 |
+
|
| 216 |
+
We use the following prompts to control the gpt-3.5-turbo-0613.
|
| 217 |
+
|
| 218 |
+
# G.1 Zero-shot link prediction without neighborhood
|
| 219 |
+
|
| 220 |
+
System prompt: You will be provided with a incomplete triplet from the Wikidata knowledge graph. Your task is to complete the triplet with a tail (subject) based on the given triplet head (object) and relation. Your answer must only include the tail of the triplet with prefix 'Tail':'. Do not include relation into the answer.
|
| 221 |
+
|
| 222 |
+
User prompt: Triplet to complete: <verbalized triplet>.
|
| 223 |
+
|
| 224 |
+
# G.2 Zero-shot link prediction with neighborhood
|
| 225 |
+
|
| 226 |
+
System prompt: You will be provided with a incomplete triplet from the Wikidata knowledge graph. Your task is to complete the triplet with a tail (subject) based on the given triplet head (object) and relation. Triplet to complete IS NOT in the list of related nodes, but it may contain helpful clues. Your answer must only include the tail of the triplet with prefix 'Tail':'. Do not include relation into the answer.
|
| 227 |
+
|
| 228 |
+
User prompt: Adjacent relations: <verbalized neighborhood> $\backslash n$ Triplet to complete: <verbalized triplet>.
|
| 229 |
+
|
| 230 |
+
# H Overview of concurrent work
|
| 231 |
+
|
| 232 |
+
While our work was under review, the concurrent work KGT5-context (Kochsiek et al., 2023) was published. Following the same idea, KGT5-context uses verbalized node neighborhood as additional context for KGC with the KGT5 model. However, KGT5-context explores the applicability of neighborhood information for KGC only in transductive setup. Also, neighborhood sampling in KGT5-context was performed randomly instead of prioritizing the neighbors, which makes the results less reproducible and does not consider the importance of neighbors in the context of a query. Furthermore, we show that this approach generalizes well to other pre-trained language models like gpt-3.5-turbo in a zero-shot setting without pre-training on KGC datasets.
|
| 233 |
+
|
| 234 |
+
We have made the effort and tried our best to reproduce the results of the KGT5 model (Saxena et al., 2022) on Wikidata5M. We report the results of T5-small not pre-trained (Table 1), which is our version of the KGT5 model. Therefore, all our other models were trained and evaluated in
|
| 235 |
+
|
| 236 |
+
the same setting and with the same pipeline as for T5-small not pre-trained model.
|
2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e29b7bc13fe60fcea8f8302ca285d3712c2f20544639e343570b14e878e934f2
|
| 3 |
+
size 307883
|
2023/Better Together_ Enhancing Generative Knowledge Graph Completion with Language Models and Neighborhood Information/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/760982cd-198b-4b18-bf81-2220eb7cee90_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/760982cd-198b-4b18-bf81-2220eb7cee90_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/760982cd-198b-4b18-bf81-2220eb7cee90_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c79560d7969d4fbdb3f1a01d360a81734bf329adef0559b1c4fde7fdd1d84ea4
|
| 3 |
+
size 607560
|
2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/full.md
ADDED
|
@@ -0,0 +1,467 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beyond Candidates
|
| 2 |
+
|
| 3 |
+
# : Adaptive Dialogue Agent Utilizing Persona and Knowledge
|
| 4 |
+
|
| 5 |
+
# Jungwoo Lim*, Myunghoon Kang*, Jinsung Kim*, Jeongwook Kim, Yuna Hur, Heuiseok Lim†
|
| 6 |
+
|
| 7 |
+
Department of Computer Science and Engineering, Korea University {wjddn803,chaos8527,jin62304,k0s1k0s1k0,yj72722,limhseok}@korea.ac.kr
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
To build ultimate dialogue agents, previous studies suggest models that ground both persona and knowledge. However, applying the dialogue system directly to the usual conversation is still limited because the system requires a complete sentence-formed persona and knowledge candidate sets from the given dataset. In contrast to the dialogue setting in the dataset, humans utilize semantic concepts in their minds rather than a set of predefined candidate sentences. Following this manner of human dialogue, we suggest an adaptive dialogue system that is applicable to situations where complete sentence-formed candidates are not given. Our model generates consistent and relevant persona descriptions and identifies relevant knowledge for engaging and knowledgeable responses, even with fragmentary information. We show that our model outperforms previous baselines that utilize persona and knowledge candidate sentences and conduct the human evaluation on the machine-generated responses. In addition, we conduct ablation studies to demonstrate the effectiveness of each component of our model. Furthermore, we apply our model to other dialogue datasets that only ground knowledge or persona to showcase its adaptability. Our code is available at https://github.com/dlawjddn803/BeCand.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
In usual conversations, humans utilize the semantic concept in their minds in terms of the dialogue topic and the preference of the interlocutor. With the semantic-level of concepts, humans communicate each other by aggregating the concepts to convey knowledgeable and empathetic responses (Collins and Quillian, 1969). It implies that people converse by adaptively reorganizing and retrieving additional information with their
|
| 16 |
+
|
| 17 |
+
*These authors contributed equally to this work.
|
| 18 |
+
|
| 19 |
+
† Corresponding author.
|
| 20 |
+
|
| 21 |
+
# (a) Candidate-Free Conversational Setting
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
|
| 25 |
+
Human: Ah, it must look very similar to somewhere I have been before. What is this studio known for?
|
| 26 |
+
|
| 27 |
+
Machine's Answer (Ours):
|
| 28 |
+
|
| 29 |
+
As you are interested in filmmaking, you might have heard of this studio before. This studio is known for the first American studio of its kind.
|
| 30 |
+
|
| 31 |
+
# (b) Previous Conversational Setting
|
| 32 |
+
|
| 33 |
+
Topic : Norman Studios
|
| 34 |
+
|
| 35 |
+
Persona Candidates :
|
| 36 |
+
|
| 37 |
+
1) I am interested in filmmaking.
|
| 38 |
+
2) I am a dancer.
|
| 39 |
+
3) I enjoy visiting museums.
|
| 40 |
+
|
| 41 |
+
Knowledge Candidates :
|
| 42 |
+
|
| 43 |
+
1) Norman Studios was an American film studio in Jacksonville, Florida. Founded by Richard Edward Norman, the studio produced silent films featuring African-American casts from 1919 to 1928.
|
| 44 |
+
2) The roof of this temple was of marble. Many diagrams and reconstructions of this structure show a door in the western side-wall; ...
|
| 45 |
+
3) Since its opening day, the Staples Center has hosted seven NBA Finals series with the Lakers, the 2012 and 2014 Stanley Cup Finals, three WNBA Finals ...
|
| 46 |
+
|
| 47 |
+
Human: Ah, it must look very similar to somewhere I have been before. What is this studio known for?
|
| 48 |
+
|
| 49 |
+
Machine's Answer (BART):
|
| 50 |
+
|
| 51 |
+
The studio produced silent films from the 1920s to the present.
|
| 52 |
+
|
| 53 |
+
The studio is considered one of the most important silent film studios in the world.
|
| 54 |
+
|
| 55 |
+
Figure 1: Comparison of conversational settings. (a) is a candidate-free conversational setting and the machine's answer in (a) is a generated response from our model. (b) is a previous conversational setting and the machine's answer in (b) is the response from the BART-large model trained on FoCus dataset.
|
| 56 |
+
|
| 57 |
+
semantic concepts, encompassing knowledge and persona, not by relying on pre-defined sources (Young et al., 2018; Zou et al., 2021; Li et al., 2023).
|
| 58 |
+
|
| 59 |
+
It seems that Jang et al. (2022a) and Lim et al. (2022) adhere to this human-like approach
|
| 60 |
+
|
| 61 |
+
on the conversation by referring to persona and knowledge. However, it neglects the humans' semantic concept reconstruction and retrieval capability by requiring pre-defined candidate sets to ground as in Figure 1 (b). As knowledge and persona candidates for the agents are not given in usual conversation, the dependency on the candidates eventually limits their applicability to candidate-free situations as depicted in Figure 1 (a).
|
| 62 |
+
|
| 63 |
+
To build the dialogue agents adaptive to the candidate-agnostic situation, two branches of studies are conducted. In knowledge-grounded conversation, the knowledgeable agents employ the non-parametric memory-based retrieval to overcome candidate-agnostic situations (Lewis et al., 2020b; Paranjape et al.). Similarly, persona-aware dialogue agents consider the out-of-persona situations by extending persona sentences from a few persona concept (Xu et al., 2020; Liu et al., 2022; Li et al., 2023). Even though both streams of research focus on the candidate-agnostic conversational situation, they only leverage a single source for grounding, rather than utilizing both persona and knowledge, simultaneously.
|
| 64 |
+
|
| 65 |
+
In this paper, we propose a dialogue agent utilizing persona and knowledge that is adaptive to the candidate-free situation. To this end, our method consists of 1) a knowledge-retriever 2) a concept-based persona generator, 3) a dialogue-persona aligner, and 4) a response generator. When the knowledge concept is given, a knowledge retriever finds the relevant knowledge from the knowledge base. Our concept-based persona generator then produces complete sentences with fragmentary persona concepts. The generated persona descriptions are then validated based on the persona aligner regarding both consistency and relevancy. The validated persona descriptions are used as the input of the response generator.
|
| 66 |
+
|
| 67 |
+
Experimental results show that our candidate-free model outperforms other baselines. Also, we show that the concept-based persona generator and persona aligner boost the performance of the dialogue agents with the ablation studies. We conduct the human evaluation of our model's responses, and the result implies that our method is effective in building a persona-knowledge dialogue agent without candidate sentences. Moreover, we demonstrate that our method is capable of utilizing other dialogue datasets grounding single source,
|
| 68 |
+
|
| 69 |
+
such as PersonaChat (Zhang et al., 2018) or Wizard-of-Wikipedia (WoW) (Dinan et al., 2018), and shows the adaptiveness of our proposed model. In qualitative results, it is shown that the generated responses are comparable to the ground truth answers without the given candidates.
|
| 70 |
+
|
| 71 |
+
# 2 Related Works
|
| 72 |
+
|
| 73 |
+
# 2.1 Knowledge-grounded Dialogue System
|
| 74 |
+
|
| 75 |
+
For the informative dialogue generation, Dinan et al. (2018) and Zhou et al. (2018) introduce open-domain dialogue datasets. Various works directly exploit external knowledge to obtain informative responses (Karpukhin et al., 2020; Lee et al., 2021; Wu et al., 2022a) in knowledge-grounded conversation. Other studies exploit augmenting knowledge base to the language model with non-parametric memory-based retriever (Lewis et al., 2020b; Guu et al., 2020; Izacard and Grave, 2021). It is found that a retrieval-augmented generator also reduces hallucination in knowledge-grounded conversation as well (Shuster et al., 2021), and a similar approach recently achieves comparable performance in knowledge-grounded conversation (Paranjape et al., 2021).
|
| 76 |
+
|
| 77 |
+
# 2.2 Persona-grounded Dialogue System
|
| 78 |
+
|
| 79 |
+
Also, persona-concentrated datasets have been proposed for constructing persona-engaging dialogue agents (Zhang et al., 2018; Rashkin et al., 2019; Dinan et al., 2020; Smith et al., 2020). While Song et al. (2020) and Wu et al. (2021) focus on injecting persona with utterance post-editing, Zheng et al. (2020) devises the attention routing mechanism for handling persona dialogue. Furthermore, another research takes into account the consistency and relevancy of the persona by employing natural language inference-based critic with a consistency score in reinforcement learning. Moreover, to maintain a consistent persona perceived by the dialogue agent, Bae et al. (2022) use iterative feedback between pre-trained language models (PLMs) and human annotators.
|
| 80 |
+
|
| 81 |
+
Along with the previous studies, research that attempts to expand the persona sentences to cover candidate-free conversational settings has appeared. In other words, when given fragmentary information on the user's persona, research to complete the insufficient information is conducted using retrieval (Liu et al., 2022; Majumder et al.,
|
| 82 |
+
|
| 83 |
+
2021; Han et al., 2022) or generation (Zhou et al., 2021; Lu et al., 2022). In addition, the persona extension approach leveraging commonsense is introduced. Majumder et al. (2020) expands the given persona sentences by fetching additional information from a commonsense knowledge graph.
|
| 84 |
+
|
| 85 |
+
# 2.3 Persona and Knowledge Grounded Dialogue System
|
| 86 |
+
|
| 87 |
+
In recent studies, there has been research on fusing persona and knowledge to generate engaging and knowledgeable responses. Fu et al. (2022) suggest a persona memory in knowledge selection for persona-consistent response generation. In addition, Jang et al. (2022b) and Lim et al. (2022) propose a model that explicitly grounds both persona and knowledge simultaneously. Along with the studies, Wu et al. (2022b) ground persona, knowledge, and commonsense by fusing separate encoder-decoder structures. Furthermore, Blenderbot 3 (Shuster et al., 2022) models the persona as the long-term memory of both users and chatbot. However, none of these systems cannot be adopted to the candidate-free conversation setting due to the dependency on the given sentence-formed candidates.
|
| 88 |
+
|
| 89 |
+
# 3 Method
|
| 90 |
+
|
| 91 |
+
We propose adaptive dialogue agents that generate the responses without the persona and knowledge candidates. To this end, we assume that the knowledge and persona concepts are only given to the agent for knowledgeable and engaging responses. First, 1) knowledge retriever retrieves the relevant paragraphs with the knowledge concept, and 2) concept-based persona generator produces the persona descriptions with the given short persona concepts. Then, 3) persona aligner decides whether the generated persona descriptions are relevant to the dialogue history and whether the sentences are consistent with the previous dialogue history. Afterward, 4) response generator provides knowledgeable and engaging responses with the predicted knowledge paragraphs and persona descriptions.
|
| 92 |
+
|
| 93 |
+
# 3.1 Notation
|
| 94 |
+
|
| 95 |
+
The given dialogue $D$ is notated as $\{(u_1^{hm}, u_1^{mc}), \ldots, (u_n^{hm}, u_n^{mc})\}$ and where $n$ is the number of rounds. $u^{hm}$ and $u^{mc}$ denote
|
| 96 |
+
|
| 97 |
+
the utterances of human and machines, respectively. The dialogue history $H$ is $\{(u_{n - w}^{hm}, u_{n - w}^{mc}), \dots, (u_{n - 1}^{hm}, u_{n - 1}^{mc}), (u_n^{hm})\}$
|
| 98 |
+
|
| 99 |
+
where $w$ is the window size. The set of given persona sentences $P = \{p_1, p_2 \dots p_{|P|}\}$ and $|P|$ is the number of persona sentences. Also, $C^P = \{c_1^p, c_2^p, \dots, c_{|P|}^p\}$ indicates the persona concepts whereas $C^K$ is a knowledge concept which is a title of the knowledge.
|
| 100 |
+
|
| 101 |
+
# 3.2 Knowledge Retriever
|
| 102 |
+
|
| 103 |
+
To let the model adapt to the situation where the knowledge candidates are absent, we use a nonparametric memory-based retrieval. We combine the query encoder and dense vector index, which is obtained from a pre-trained dense passage retriever (DPR) (Karpukhin et al., 2020) for enhanced semantic search. The retriever refers to the knowledge index from the Wikipedia knowledge which is leveraged with FAISS (Johnson et al., 2019) library. Therefore, our retriever $R(\cdot)$ finds the relevant knowledge from the index with the knowledge concept $C^K$ by using maximum inner-product search (MIPS) following Lewis et al. (2020b). The predicted top-k relevant paragraphs are then used as the input for the model and denoted as $\hat{K}$ .
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
R (\hat {K} | C ^ {K}) \propto e x p (\mathbf {e} (\hat {K}) ^ {\top} \mathbf {q} (C ^ {K})), \tag {1}
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
where $\mathbf{e}(\cdot)$ is an embedding from a context encoder, and $\mathbf{q}(\cdot)$ is a representation from a query encoder, both implemented with BERT (Kenton and Toutanova, 2019) pre-trained on natural-question dataset (Kwiatkowski et al., 2019).
|
| 110 |
+
|
| 111 |
+
# 3.3 Concept-based Persona Generator
|
| 112 |
+
|
| 113 |
+
To let the model exploit the semantic concept from the candidate-free situation, we propose a concept-based persona generator to provide complete persona descriptions only with the persona concepts. In detail, our persona generator is pre-trained to generate plausible full persona descriptions with only persona concepts in a retrieve-and-generate manner, following Hashimoto et al. (2018). Then, we freeze the persona generator for the response generation.
|
| 114 |
+
|
| 115 |
+
For the pre-training process, we first build the persona pool with the collections of unique persona sentences from FoCus (Jang et al., 2022a) and PersonaChat (Zhang et al., 2018).
|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
Figure 2: Overall architecture of our model.
|
| 119 |
+
|
| 120 |
+
Then, we pre-train the persona retriever using DPR (Karpukhin et al., 2020) and regard highly ranked persona sentences from BM25 (Robertson and Zaragoza, 2009) as negative samples. We then train the generator by considering top $k$ relevant persona sentences $P_{k}^{\prime} = \{p_{1}^{\prime}, p_{2}^{\prime}, \dots, p_{k}^{\prime}\}$ as positive samples with BART (Lewis et al., 2020a). Our concept-based persona generator provides complete persona sentences $G^{P}$ . The training details are presented in Appendix A.
|
| 121 |
+
|
| 122 |
+
# 3.4 Persona Aligner
|
| 123 |
+
|
| 124 |
+
The persona aligner consists of two modules, i.e., the persona consistency (PC) module and the persona relevancy module (PR). When the generated persona sentences $G^{P}$ are obtained, the persona consistency module predicts whether the generated persona sentences contradict the previous dialogue history $H$ . However, collecting the labels of generated personas' consistency is time-consuming and labor-intensive. Therefore, we distill ChatGPT (OpenAI-Blog, 2022) as model annotators with the BERT-base model (Kenton and Toutanova, 2019) inspired by the high reasoning capability on natural language inference of the ChatGPT (Laskar et al., 2023). We asked the ChatGPT to predict whether the single persona sentence contradicts the given dialogue or not. The prompt for an alignment check is illustrated in Appendix 9. Then, the consistency module trains on the label that ChatGPT provided in a
|
| 125 |
+
|
| 126 |
+
binary classification manner. The trained persona consistency module is then frozen and predicts whether the sentence is consistent with the dialogue history in the inference stage.
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\hat {G} _ {i} ^ {P C} = \operatorname {P C} ([ H; G _ {i} ^ {P} ]) \tag {2}
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
Different from the persona consistency module, the persona relevancy module takes charge of the relevancy by selecting proper persona sentences that are relevant to dialogue. Even though the persona descriptions do not conflict with the dialogue history, it is still unrevealed the level of relevancy of the persona sentence. For enhanced relevancy prediction, we first separately encode the dialogue and generated persona sentences with the question encoder with DPR, and obtain each hidden state from the last layer. Then, we concatenate the embeddings and pass them into the two linear layers to predict the relevancy of the persona sentences to the dialogue.
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\hat {G} _ {i} ^ {P R} = \operatorname {P R} ([ H; G _ {i} ^ {P} ]) \tag {3}
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
If the two modules both predict the sentence as relevant and consistent, we assume the sentences are aligned with the given dialogue.
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\hat {G} _ {i} ^ {P C R} = \left\{\hat {G} _ {i} ^ {P C} \cap \hat {G} _ {i} ^ {P R} \right\}, \tag {4}
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
We compute the loss as Equation 5.
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\begin{array}{l} \mathcal {L} _ {P} = \\ - \sum_ {j} l _ {j} \cdot \log \hat {l _ {j}} + (1 - l _ {j}) \cdot \log (1 - \hat {l _ {j}}) \tag {5} \\ \end{array}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
<table><tr><td>Model</td><td>Backbone</td><td>Candidate Usage</td><td>BLEU</td><td>chrF++</td><td>R-1</td><td>R-2</td><td>R-L</td></tr><tr><td colspan="8">Baselines (w/ Candidates)</td></tr><tr><td rowspan="4">Jang et al. (2022a)</td><td>GPT2-small</td><td>O</td><td>11.43</td><td>28.73</td><td>36.58</td><td>19.44</td><td>32.62</td></tr><tr><td>GPT2-medium</td><td>O</td><td>12.31</td><td>30.12</td><td>38.29</td><td>21.17</td><td>34.12</td></tr><tr><td>BART-base</td><td>O</td><td>11.99</td><td>29.77</td><td>36.24</td><td>19.73</td><td>32.13</td></tr><tr><td>BART-large</td><td>O</td><td>11.91</td><td>30.69</td><td>36.57</td><td>19.83</td><td>32.05</td></tr><tr><td>INFO (Lim et al. (2022))</td><td>RAG</td><td>O</td><td>31.46</td><td>53.29</td><td>58.26</td><td>42.35</td><td>53.06</td></tr><tr><td colspan="8">w/o Candidates</td></tr><tr><td>Lewis et al. (2020a)</td><td>BART-large</td><td>X</td><td>13.14</td><td>31.45</td><td>38.67</td><td>19.93</td><td>34.13</td></tr><tr><td>Lewis et al. (2020b)</td><td>RAG</td><td>X</td><td>15.90</td><td>35.50</td><td>41.21</td><td>22.80</td><td>36.45</td></tr><tr><td rowspan="2">Ours</td><td>BART-large</td><td>X</td><td>20.86</td><td>40.12</td><td>45.89</td><td>28.06</td><td>40.97</td></tr><tr><td>RAG</td><td>X</td><td>20.30</td><td>39.53</td><td>45.17</td><td>28.05</td><td>40.51</td></tr></table>
|
| 151 |
+
|
| 152 |
+
Table 1: Focus Results. Main results on the official validation set. The models are evaluated by generation metrics, including BLEU,chrF++,ROUGE-1 (R-1),ROUGE-2 (R-2),ROUGE-L (R-L).
|
| 153 |
+
|
| 154 |
+
Note that $l_{j}$ is the ground-truth label of the $j$ -th example.
|
| 155 |
+
|
| 156 |
+
# 3.5 Response Generator
|
| 157 |
+
|
| 158 |
+
With the predicted relevant knowledge passages and persona descriptions, we concatenate them into one sequence along with the concept of the knowledge and dialogue as $I = [C^K; H; \hat{G}^{PCR}; \hat{K}]$ . Then, we pass into the generative language model to obtain the responses, and the language modeling loss is computed as Equation 6.
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\mathcal {L} _ {L M} = - \sum_ {i = 1} ^ {T} \log \operatorname {P r o b} \left(t _ {i} \mid t _ {1}, \dots , t _ {i - 1}\right), \tag {6}
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
where $\operatorname{Prob}(\cdot)$ denotes a probability of the generative language model, $t_i$ is $i$ -th token of target sentence, and $T$ is the number of tokens. The final loss function $\mathcal{L}_{Final}$ is computed as Equation 7 and $\lambda_P$ and $\lambda_{LM}$ are hyperparameters.
|
| 165 |
+
|
| 166 |
+
$$
|
| 167 |
+
\mathcal {L} _ {\text {F i n a l}} = \lambda_ {P} \mathcal {L} _ {P} + \lambda_ {L M} \mathcal {L} _ {L M} \tag {7}
|
| 168 |
+
$$
|
| 169 |
+
|
| 170 |
+
# 4 Experimental Setup
|
| 171 |
+
|
| 172 |
+
# 4.1 Dataset
|
| 173 |
+
|
| 174 |
+
FoCus (Jang et al., 2022a) is a dataset designed for dialogue models that utilize knowledge and persona simultaneously. It comprises 12,484 dialogues, 5,152 Wikipedia knowledge, and 32,855 persona sentences. We conduct the experiments on the official FoCus validation set since the official test set can only be confirmed via the leaderboard on the Codalab platform<sup>1</sup>.
|
| 175 |
+
|
| 176 |
+
Wizard of Wikipedia (WoW) WoW (Dinan et al., 2018) contains 22,311 dialogues with 201,999 turns that utilize Wikipedia articles, primarily aimed at facilitating knowledge-based dialogue. In WoW datasets, the wizard responds to the apprentice based on selected knowledge. We utilized the test splits for Wizard of Wikipedia (WoW) for the experiments.
|
| 177 |
+
|
| 178 |
+
PersonaChat PersonaChat (Zhang et al., 2018) consists of 162,064 utterances between two interlocutors, each with 3-5 different persona sentences. The interlocutors converse with their persona, attempting to figure out the persona of others. We used the revised validation set for PersonaChat experiments.
|
| 179 |
+
|
| 180 |
+
# 4.2 Baselines
|
| 181 |
+
|
| 182 |
+
BART (Lewis et al., 2020a) is a language model that integrates concepts from both autoregressive and denoising autoencoder models, making it highly effective for text generation. For the experiments, we only use the BARTlarge model.
|
| 183 |
+
|
| 184 |
+
RAG Retrieval-augmented generator (RAG) (Lewis et al., 2020b) is a model which combines pre-trained parametric and non-parametric memory for language generation. It shows comparable performances on open-domain question-answering and conversation.
|
| 185 |
+
|
| 186 |
+
BART+PG+KG Jang et al. (2022a) introduce the dialogue system that can provide personalized responses by considering the interlocutor's persona and external knowledge. The model finds relevant paragraphs by considering the last utterance and selects proper sources from the persona (PG) and
|
| 187 |
+
|
| 188 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Backbone</td><td>Info. ↑</td><td>Hal. (K) ↓</td><td>Hal. (P) ↓</td><td>Rel. (P) ↑</td><td>Con. (P) ↑</td><td>Flu. ↑</td></tr><tr><td rowspan="4">FoCus</td><td>Lewis et al. (2020a)</td><td rowspan="2">BART-large</td><td>2.33</td><td>1.97</td><td>1.57</td><td>2.06</td><td>2.11</td><td>2.55</td></tr><tr><td>Ours</td><td>2.42</td><td>1.74</td><td>1.44</td><td>2.32</td><td>2.39</td><td>2.61</td></tr><tr><td>Lewis et al. (2020b)</td><td rowspan="2">RAG</td><td>2.15</td><td>1.98</td><td>1.46</td><td>1.86</td><td>1.99</td><td>2.29</td></tr><tr><td>Ours</td><td>2.52</td><td>1.64</td><td>1.38</td><td>2.48</td><td>2.46</td><td>2.60</td></tr></table>
|
| 189 |
+
|
| 190 |
+
Table 2: Human evaluation results. Info.: informativeness, Hal.(K): hallucination in knowledge and Hal.(P): hallucination in persona, Rel. (P): relevancy of persona usage, Con. (P): consistency of persona usage, Flu.: fluency.
|
| 191 |
+
|
| 192 |
+
knowledge candidates (KG). After obtaining useful sources, the model generates the responses in an auto-regressive manner.
|
| 193 |
+
|
| 194 |
+
INFO Lim et al. (2022) propose a conversational model that grounds both persona and knowledge. The model consists of a knowledge selector, a persona selector, and a responses generator. Each selector is implemented with polyencoder (Humeau et al., 2020) and the output is used as the query for the response generator based on RAG (Lewis et al., 2020b).
|
| 195 |
+
|
| 196 |
+
# 4.3 Evaluation Metrics
|
| 197 |
+
|
| 198 |
+
The official automatic evaluation metrics for the FoCus benchmark include BLEU (Papineni et al., 2002), $\mathrm{chrF} + +$ (Popovic, 2017), ROUGE-1, ROUGE-2, and ROUGE-L (Lin, 2004). These metrics are frequently employed to compare machine-generated responses to gold responses in generation tasks. In our experiments on PersonaChat, we also report the performance of the unigram F1 metrics.
|
| 199 |
+
|
| 200 |
+
For human evaluation, we adopt six metrics on response generation. 1) Informativeness measures the extent of the information conveyed within a response and denotes the degree of providing new, valuable, or relevant details, insights, or facts to the conversation. We also have two criteria for hallucination regarding persona and knowledge. 2) Knowledge hallucination is the metric that shows the level of hallucination of generated output that contradicts reality. Similarly, 3) Persona hallucination is the metric that indicates the hallucination level based on the given persona descriptions. Along with the persona-related metrics, 4) Persona relevancy metric denotes how much the given persona directly relates to the ongoing conversation. Moreover, 5) Persona consistency refers to how consistently the persona is maintained in a given dialogue. Lastly, 6) Fluency measures the ability to communicate
|
| 201 |
+
|
| 202 |
+
smoothly, effortlessly, and coherently. Details of our experiments are provided in Appendix B.
|
| 203 |
+
|
| 204 |
+
# 5 Results and Discussion
|
| 205 |
+
|
| 206 |
+
# 5.1 Automatic Evaluation
|
| 207 |
+
|
| 208 |
+
We conduct the experiments on FoCUS dataset to show our method's effectiveness without the given candidates. Table 1 demonstrates that our method achieves the second-highest score while the first-ranked model directly exploits the persona and knowledge candidate set. In addition, our method outperforms the performance of Jang et al. (2022a) even though it utilizes the candidates from the dataset. Furthermore, all models incorporating our method outperform their vanilla backbone models significantly.
|
| 209 |
+
|
| 210 |
+
# 5.2 Human Evaluation
|
| 211 |
+
|
| 212 |
+
We also demonstrate the effectiveness of our method through human evaluations. We recruit nine human workers who have at least bachelor's degree and are proficient in English. We randomly chose 30 dialogues from each datasets. We asked the workers to evaluate the machine-generated responses according to six criteria described earlier. The score is scaled from 1 to 3, and the results are indicated in Table 2. The results indicate that our method is effective in achieving both persona consistency and persona relevancy. Moreover, our method shows comparable performance in decreasing both knowledge hallucination and persona hallucination in the FoCUS dataset.
|
| 213 |
+
|
| 214 |
+
# 5.3 Ablation Studies
|
| 215 |
+
|
| 216 |
+
We also conduct ablation studies on our methods with respect to the knowledge retriever, concept-based persona generator, and persona aligner.
|
| 217 |
+
|
| 218 |
+
Knowledge Retriever To demonstrate the effectiveness of our knowledge retriever in our model, we compare vanilla backbone which is fine-tuned on the FoCUS dataset, and our model.
|
| 219 |
+
|
| 220 |
+
As shown in Table 3, incorporating relevant knowledge into the input of the vanilla generative language models enhances the performance of the response generation regardless of the backbone language models. Also, the knowledge retriever enhances the performances consistently, even when the persona generator and aligner are combined in our method. The performance decrease of the models without the knowledge retriever<sup>2</sup> suggests that our knowledge retriever is effective.
|
| 221 |
+
|
| 222 |
+
<table><tr><td>Model</td><td>Backbone</td><td>K-Retr.</td><td>BLEU</td><td>chrF++</td><td>R-1</td><td>R-2</td><td>R-L</td></tr><tr><td rowspan="2">Lewis et al. (2020a)</td><td rowspan="2">BART</td><td>X</td><td>13.14</td><td>31.45</td><td>38.67</td><td>19.93</td><td>34.13</td></tr><tr><td>O</td><td>14.83</td><td>33.86</td><td>39.90</td><td>21.07</td><td>34.95</td></tr><tr><td rowspan="2">Lewis et al. (2020b)</td><td rowspan="2">RAG</td><td>X</td><td>15.90</td><td>35.50</td><td>41.21</td><td>22.80</td><td>36.45</td></tr><tr><td>O</td><td>14.66</td><td>33.90</td><td>38.79</td><td>20.42</td><td>33.87</td></tr><tr><td rowspan="4">Ours</td><td rowspan="2">BART</td><td>X</td><td>12.66</td><td>34.22</td><td>38.73</td><td>19.69</td><td>32.96</td></tr><tr><td>O</td><td>20.86</td><td>40.12</td><td>45.89</td><td>28.06</td><td>40.97</td></tr><tr><td rowspan="2">RAG</td><td>X</td><td>19.46</td><td>38.21</td><td>43.58</td><td>25.98</td><td>38.87</td></tr><tr><td>O</td><td>20.30</td><td>39.53</td><td>45.17</td><td>28.05</td><td>40.51</td></tr></table>
|
| 223 |
+
|
| 224 |
+
Persona Generator We also compare the performance of models by ablating the type of persona descriptions. "GT" refers to our model utilizing ground-truth persona sentences, while "random" indicates the models with five random persona descriptions from the persona pool. As shown in Table 4, the models in random settings exhibit a decrease in performance, regardless of the backbone models. However, the proposed method based on the RAG model outperforms the model that utilizes ground-truth persona descriptions. This suggests that the generated persona descriptions from our concept-based persona generator are comparable to the ground-truth persona sentences and that our concept-based persona generator can replace the labor-intensive human annotating process.
|
| 225 |
+
|
| 226 |
+
Table 3: Ablation study on knowledge retriever. K-Retr. denotes the knowledge retriever.
|
| 227 |
+
|
| 228 |
+
<table><tr><td>Model</td><td>Backbone</td><td>Persona Desc.</td><td>BLEU</td><td>chrF++</td><td>R-1</td><td>R-2</td><td>R-L</td></tr><tr><td rowspan="6">Ours</td><td rowspan="3">BART</td><td>GT.</td><td>20.86</td><td>40.23</td><td>46.31</td><td>28.42</td><td>41.37</td></tr><tr><td>Random</td><td>19.76</td><td>38.85</td><td>45.40</td><td>27.45</td><td>40.55</td></tr><tr><td>Ours</td><td>20.86</td><td>40.12</td><td>45.89</td><td>28.06</td><td>40.97</td></tr><tr><td rowspan="3">RAG</td><td>GT.</td><td>19.55</td><td>38.77</td><td>44.65</td><td>27.02</td><td>39.9</td></tr><tr><td>Random</td><td>17.50</td><td>36.51</td><td>42.50</td><td>24.72</td><td>37.8</td></tr><tr><td>Ours</td><td>20.30</td><td>39.53</td><td>45.17</td><td>28.05</td><td>40.51</td></tr></table>
|
| 229 |
+
|
| 230 |
+
Table 4: Ablation study on concept-based persona generator. GT. denotes the ground truth persona sentences which are given from the dataset.
|
| 231 |
+
|
| 232 |
+
<table><tr><td>Model</td><td>Backbone</td><td>Persona Aligner</td><td>BLEU</td><td>chrF++</td><td>R-1</td><td>R-2</td><td>R-L</td></tr><tr><td rowspan="6">Ours</td><td rowspan="3">BART</td><td>GT.</td><td>20.96</td><td>40.45</td><td>48.08</td><td>29.24</td><td>42.67</td></tr><tr><td>Random</td><td>3.79</td><td>14.79</td><td>19.41</td><td>3.94</td><td>16.69</td></tr><tr><td>Ours</td><td>20.86</td><td>40.12</td><td>45.89</td><td>28.06</td><td>40.97</td></tr><tr><td rowspan="3">RAG</td><td>GT.</td><td>20.74</td><td>40.77</td><td>47.01</td><td>28.29</td><td>41.55</td></tr><tr><td>Random</td><td>17.54</td><td>36.81</td><td>42.08</td><td>23.89</td><td>37.16</td></tr><tr><td>Ours</td><td>20.30</td><td>39.53</td><td>45.17</td><td>28.05</td><td>40.51</td></tr></table>
|
| 233 |
+
|
| 234 |
+
Table 5: Ablation study on persona aligner. GT. indicates the ground truth label of persona selection from the dataset.
|
| 235 |
+
|
| 236 |
+
<table><tr><td>Dataset</td><td>Model</td><td>F1</td><td>BLEU</td><td>chrF++</td><td>RL</td></tr><tr><td rowspan="6">WoW</td><td>RAG† (2020b)</td><td>-</td><td>-</td><td>-</td><td>11.57</td></tr><tr><td>FiD (2021)</td><td>-</td><td>-</td><td>-</td><td>16.06</td></tr><tr><td>Hindsight (2021)</td><td>-</td><td>-</td><td>-</td><td>17.06</td></tr><tr><td>QKConv (2022)</td><td>-</td><td>-</td><td>-</td><td>17.72</td></tr><tr><td>BART (Ours)</td><td>17.11</td><td>8.31</td><td>18.59</td><td>16.35</td></tr><tr><td>RAG (Ours)</td><td>16.39</td><td>8.07</td><td>18.33</td><td>15.91</td></tr><tr><td rowspan="6">PersonaChat</td><td>KV Profile Memory (2018)</td><td>13.65</td><td>-</td><td>-</td><td>-</td></tr><tr><td>TransferTransfo (2019)</td><td>15.71</td><td>-</td><td>-</td><td>-</td></tr><tr><td>P2Bot (2020)</td><td>19.08</td><td>-</td><td>-</td><td>-</td></tr><tr><td>LMEDR (2023)</td><td>21.99</td><td>-</td><td>-</td><td>-</td></tr><tr><td>BART (Ours)</td><td>19.46</td><td>12.78</td><td>15.7</td><td>18.44</td></tr><tr><td>RAG (Ours)</td><td>18.67</td><td>11.26</td><td>16.73</td><td>17.48</td></tr></table>
|
| 237 |
+
|
| 238 |
+
Table 6: Automatic evaluation results on the other dialogue datasets.† denotes the vanilla model and the scores of other models in WoW are imported from KILT benchmark (Petroni et al., 2021).
|
| 239 |
+
|
| 240 |
+
Persona Aligner We evaluate the impact of our consistency and relevancy module by employing the persona relevancy label. "GT" refers to utilizing the ground-truth persona relevancy label in the FoCus dataset, while "random" indicates the model with randomly assigned persona relevancy labels. As shown in Table 5, our method performs comparably to the GT performance when trained on both BART and RAG. However, performance significantly decreases in random settings. This indicates that our persona aligner effectively captures the consistency and relevancy of the generated persona with respect to the dialogue context.
|
| 241 |
+
|
| 242 |
+
# 5.4 Adaptation to Other Dialogue Datasets
|
| 243 |
+
|
| 244 |
+
To evaluate the adaptiveness of our method, we conduct experiments on the other dialogue datasets, Wizard of Wikipedia (WoW) and PersonaChat. Since both datasets consist of dialogues grounding a single source, there are no candidates for the other source. In other words, there are no persona candidates in WoW dataset, and knowledge candidates are absent in PersonaChat. Therefore, we report the results of applying our method to these single-source datasets. Table 6 demonstrates that the models with our method show comparable
|
| 245 |
+
|
| 246 |
+
performances in ROUGE-L. Also, our method based on BART exceeds FiD (Izacard and Grave, 2021) which shows remarkable performances in knowledge-grounded conversation. Also, our BART-based model in PersonaChat also surpasses the $\mathcal{P}^2$ Bot (Liu et al., 2020) according to the unigram-F1 metric.
|
| 247 |
+
|
| 248 |
+
# 5.5 Qualitative Results
|
| 249 |
+
|
| 250 |
+
# Knowledge Concepts
|
| 251 |
+
|
| 252 |
+
Cardiff Bay Barrage
|
| 253 |
+
|
| 254 |
+
# Human's Persona Concepts
|
| 255 |
+
|
| 256 |
+
love, area.
|
| 257 |
+
|
| 258 |
+
have, Wales, been
|
| 259 |
+
|
| 260 |
+
engineering, am, fan
|
| 261 |
+
|
| 262 |
+
Europe, like, visit
|
| 263 |
+
|
| 264 |
+
Kingdom, not, United, am
|
| 265 |
+
|
| 266 |
+
# Dialogue
|
| 267 |
+
|
| 268 |
+
Human: Where is it located?
|
| 269 |
+
|
| 270 |
+
Machine: You've never been there before, but this can be found in Wales
|
| 271 |
+
|
| 272 |
+
between the Queen Alexandra Dock and Penarth Head.
|
| 273 |
+
|
| 274 |
+
Human: Was this a large project?
|
| 275 |
+
|
| 276 |
+
# Generated Persona
|
| 277 |
+
|
| 278 |
+
I love the downtown area.
|
| 279 |
+
|
| 280 |
+
I have never been to Wales.
|
| 281 |
+
|
| 282 |
+
I am a fan of engineering.
|
| 283 |
+
|
| 284 |
+
I would like to visit Europe.
|
| 285 |
+
|
| 286 |
+
I am from the United Kingdom.
|
| 287 |
+
|
| 288 |
+
# Predicted Responses
|
| 289 |
+
|
| 290 |
+
<table><tr><td>BART‡</td><td>Oh yes. You’d be interested in this barrage, which was around 60 million deep and was the largest civil engineering project in the world.</td></tr><tr><td>RAG‡</td><td>Oh yes. You’ll be interested in this barrage, with its 4.75 mile long effect. It was the largest civil engineering project in Europe.</td></tr><tr><td>Ours (BART)</td><td>Oh yes, it was very large. You’d be a fan of this engineering work, which was considered one of the largest civil engineering projects ever undertaken in the country.</td></tr><tr><td>Ours (RAG)</td><td>It was very large in scale, and you’d be a fan of this engineering, as it was one of the largest civil engineering projects in the country.</td></tr></table>
|
| 291 |
+
|
| 292 |
+
# Ground Truth Knowledge
|
| 293 |
+
|
| 294 |
+
It was one of the largest civil engineering projects in Europe during construction in the 1990s.
|
| 295 |
+
|
| 296 |
+
# Ground Truth Persona
|
| 297 |
+
|
| 298 |
+
I love the bay area.
|
| 299 |
+
|
| 300 |
+
I have never been to Wales.
|
| 301 |
+
|
| 302 |
+
I am a fan of engineering.
|
| 303 |
+
|
| 304 |
+
I would like to visit Europe.
|
| 305 |
+
|
| 306 |
+
I am not from the United Kingdom.
|
| 307 |
+
|
| 308 |
+
# Ground Truth Response
|
| 309 |
+
|
| 310 |
+
Oh yes, very large. With you being a fan of engineering, you'd be
|
| 311 |
+
|
| 312 |
+
interested to hear that this was one of the largest civil engineering projects
|
| 313 |
+
|
| 314 |
+
in Europe during the time.
|
| 315 |
+
|
| 316 |
+
Table 7: Qualitative result. $\ddagger$ denotes the vanilla models, and red and blue each indicate the parts utilized by Ours in the persona and the knowledge. All the predicted results are from our model.
|
| 317 |
+
|
| 318 |
+
Table 7 demonstrates the prediction results from the baselines and our models on the FoCus dataset. It is noteworthy that the vanilla BART and RAG
|
| 319 |
+
|
| 320 |
+
models tend to generate shallow responses that revolve around the topic of Cardiff Bay Barrage. Furthermore, the models tend to provide numerical information that lacks factual support regarding the knowledge concept. To sum up, these models fail to achieve a deep understanding of human preferences based on the provided persona concepts, leading to less engaging responses that lack any personal-related expressions.
|
| 321 |
+
|
| 322 |
+
Furthermore, our proposed models generate informative and empathetic responses, striking a balance between incorporating external information relevant to the knowledge concept and avoiding any distortion. For instance, our models generate expressions such as "it was one of the largest civil engineering projects in the country," which provide sufficient information. These results suggest that our method is well-suited for scenarios where the sentence-formed knowledge and persona candidates are absent.
|
| 323 |
+
|
| 324 |
+
# 6 Conclusions
|
| 325 |
+
|
| 326 |
+
In this paper, we introduced an adaptive dialogue agent utilizing persona and knowledge without the given candidates from the dataset. Due to the absence of knowledge candidates, the knowledge retriever retrieves the relevant paragraphs with the knowledge concept from the knowledge base. Also, the concept-based persona generator outputs the persona descriptions with the fragmentary persona concepts from retrieve-and-generate architecture. The generated persona descriptions are then validated through a persona aligner regarding relevancy and consistency. From experiments, we showed that our method is effective even though the persona concept and knowledge concept are given with the dialogue. We also presented the ablation studies on each component of our model. Moreover, we conducted the human evaluation to show the improved quality of the responses of our models and it is also shown in qualitative results. To show its applicability and adaptiveness, we denoted the experimental results of our method on FoCUS, WoW, and PersonaChat datasets.
|
| 327 |
+
|
| 328 |
+
# 7 Acknowledgement
|
| 329 |
+
|
| 330 |
+
This research was supported by the MSIT(Ministry of Science and ICT), Korea, under the ITRC(Information Technology Research Center) support program(IITP-2023-2018-0-01405) supervised by the IITP(Institute for
|
| 331 |
+
|
| 332 |
+
Information & Communications Technology Planning & Evaluation). This work was supported by Institute of Information & communications Technology Planning & Evaluation(IITP) grant funded by the Korea government(MSIT) (No. 2020-0-00368, A Neural-Symbolic Model for Knowledge Acquisition and Inference Techniques). This research was supported by Basic Science Research Program through the National Research Foundation of Korea(NRF) funded by the Ministry of Education(NRF-2022R1A2C1007616)
|
| 333 |
+
|
| 334 |
+
# Limitations
|
| 335 |
+
|
| 336 |
+
Our model deal with response generation in the candidate-agnostic conversation setting, which is the limitation of INFO (Lim et al., 2022) model, proving the possibility of application in the real world. Still, hallucinations regarding personas and knowledge are observed occasionally in the generated responses. However, since the case of hallucinations is a severe problem even in large language models with enormous parameter sizes, it is required for our NLP communities to continue to solve the challenge. Also, although we conducted a human evaluation to validate the diverse capabilities of the proposed model, such as hallucination, consistency, and informativeness in dialogue generation, the number of cases is relatively small for evaluating the entire aspects of the capabilities. Finally, our model demands high GPU computation resources as it marginalizes loss at the token level.
|
| 337 |
+
|
| 338 |
+
We plan to improve our model for future work by conducting human evaluations with more cases and enhancing the way of qualitative analysis for the model's hallucinated answers. Improving the model's generator with more computationally efficient components is also a desirable direction for the GPU resource issues.
|
| 339 |
+
|
| 340 |
+
# Ethics Statement
|
| 341 |
+
|
| 342 |
+
We discuss the main ethical considerations of the model we proposed: (1) Privacy. the datasets adopted to construct our model provide factual knowledge and fictional person's preferences, and our model does not contain privacy issues. (2) Human evaluation. During the human evaluation process, we paid human workers the legal wage determined by the average time of evaluation and local labor compensation standards. We also guided them to take a rest when they are in a state
|
| 343 |
+
|
| 344 |
+
of fatigue during work. (3) Potential problems. Although we take conscientious steps to ensure the quality of our models, there can still be potential problems with the generated responses' quality, which can lead to incorrect predictions in applications that leverage factual information and human preferences. (4) Model deployment. Our approach employs the pre-trained language models (PLMs) for the downstream tasks, which have the risk of reflecting the bias of the training data. It is a well-known threat in tasks using PLMs, and we should be careful about social impact when using this method since our model aims to handle factual knowledge.
|
| 345 |
+
|
| 346 |
+
# References
|
| 347 |
+
|
| 348 |
+
Sanghwan Bae, Donghyun Kwak, Sungdong Kim, Donghoon Ham, Soyoung Kang, Sang-Woo Lee, and Woomyoung Park. 2022. Building a role specified open-domain dialogue system leveraging large-scale language models. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2128-2150, Seattle, United States. Association for Computational Linguistics.
|
| 349 |
+
Mingzhu Cai, Siqi Bao, Xin Tian, Huang He, Fan Wang, and Hua Wu. 2022. Query enhanced knowledge-intensive conversation via unsupervised joint modeling. arXiv preprint arXiv:2212.09588.
|
| 350 |
+
Ruijun Chen, Jin Wang, Liang-Chih Yu, and Xuejie Zhang. 2023. Learning to memorize entailment and discourse relations for persona-consistent dialogues. arXiv preprint arXiv:2301.04871.
|
| 351 |
+
Allan M Collins and M Ross Quillian. 1969. Retrieval time from semantic memory. Journal of Verbal Learning & Verbal Behavior.
|
| 352 |
+
Emily Dinan, Varvara Logacheva, Valentin Malykh, Alexander Miller, Kurt Shuster, Jack Urbanek, Douwe Kiela, Arthur Szlam, Iulian Serban, Ryan Lowe, Shrimai Prabhumoye, Alan W. Black, Alexander Rudnicky, Jason Williams, Joelle Pineau, Mikhail Burtsev, and Jason Weston. 2020. The second conversational intelligence challenge (convai2). In *The NeurIPS '18 Competition*, pages 187–208, Cham. Springer International Publishing.
|
| 353 |
+
Emily Dinan, Stephen Roller, Kurt Shuster, Angela Fan, Michael Auli, and Jason Weston. 2018. Wizard of wikipedia: Knowledge-powered conversational agents. In International Conference on Learning Representations.
|
| 354 |
+
Tingchen Fu, Xueliang Zhao, Chongyang Tao, Ji-Rong Wen, and Rui Yan. 2022. There are a thousand hamlets in a thousand people's eyes:
|
| 355 |
+
|
| 356 |
+
Enhancing knowledge-grounded dialogue with personal memory. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3901-3913, Dublin, Ireland. Association for Computational Linguistics.
|
| 357 |
+
Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Ming-Wei Chang. 2020. Realm: Retrievalaugmented language model pre-training. ICML'20. JMLR.org.
|
| 358 |
+
Seungju Han, Beomsu Kim, Jin Yong Yoo, Seokjun Seo, Sangbum Kim, Enkhbayar Erdenee, and Buru Chang. 2022. Meet your favorite character: Open-domain chatbot mimicking fictional characters with only a few utterances. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5114-5132, Seattle, United States. Association for Computational Linguistics.
|
| 359 |
+
Tatsunori B Hashimoto, Kelvin Guu, Yonatan Oren, and Percy S Liang. 2018. A retrieve-and-edit framework for predicting structured outputs. Advances in Neural Information Processing Systems, 31.
|
| 360 |
+
Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. 2020. Poly-encoders: Architectures and pre-training strategies for fast and accurate multi-sentence scoring. In International Conference on Learning Representations.
|
| 361 |
+
Gautier Izacard and Edouard Grave. 2021. Leveraging passage retrieval with generative models for open domain question answering. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 874-880, Online. Association for Computational Linguistics.
|
| 362 |
+
Yoonna Jang, Jungwoo Lim, Yuna Hur, Dongsuk Oh, Suhyune Son, Yeonsoo Lee, Donghoon Shin, Seungryong Kim, and Heuseok Lim. 2022a. Call for customized conversation: Customized conversation grounding persona and knowledge. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 10803-10812.
|
| 363 |
+
Yoonna Jang, Jungwoo Lim, Yuna Hur, Dongsuk Oh, Suhyune Son, Yeonsoo Lee, Donghoon Shin, Seungryong Kim, and Heuseok Lim. 2022b. Call for customized conversation: Customized conversation grounding persona and knowledge. Proceedings of the AAAI Conference on Artificial Intelligence, 36(10):10803-10812.
|
| 364 |
+
Jeff Johnson, Matthijs Douze, and Herve Jégou. 2019. Billion-scale similarity search with GPUs. IEEE Transactions on Big Data, 7(3):535-547.
|
| 365 |
+
Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of the
|
| 366 |
+
|
| 367 |
+
2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6769-6781, Online. Association for Computational Linguistics.
|
| 368 |
+
Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171-4186.
|
| 369 |
+
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. 2019. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452-466.
|
| 370 |
+
Md Tahmid Rahman Laskar, M Saiful Bari, Mizanur Rahman, Md Amran Hossen Bhuiyan, Shafiq Joty, and Jimmy Xiangji Huang. 2023. A systematic study and comprehensive evaluation of chatgpt on benchmark datasets. arXiv preprint arXiv:2305.18486.
|
| 371 |
+
Jinhyuk Lee, Mujeen Sung, Jaewoo Kang, and Danqi Chen. 2021. Learning dense representations of phrases at scale. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume I: Long Papers), pages 6634-6647, Online. Association for Computational Linguistics.
|
| 372 |
+
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020a. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7871-7880, Online. Association for Computational Linguistics.
|
| 373 |
+
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Kuttler, Mike Lewis, Wen-tau Yih, Tim Roektaschel, Sebastian Riedel, and Douwe Kiela. 2020b. Retrieval-augmented generation for knowledge-intensive nlp tasks. In Advances in Neural Information Processing Systems, volume 33, pages 9459-9474. Curran Associates, Inc.
|
| 374 |
+
Yunpeng Li, Yue Hu, Wei Peng, and Yuqiang Xie. 2023. Think before you speak: Concept-guided explicit persona reasoning for personalized dialogue generation. In ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5. IEEE.
|
| 375 |
+
Jungwoo Lim, Myugnhoon Kang, Yuna Hur, Seung Won Jeong, Jinsung Kim, Yoonna Jang, Dongyub Lee, Hyesung Ji, DongHoon Shin, Seungryong Kim, et al. 2022. You truly understand what i need: Intellectual and friendly dialog agents
|
| 376 |
+
|
| 377 |
+
grounding persona and knowledge. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 1053-1066.
|
| 378 |
+
Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain. Association for Computational Linguistics.
|
| 379 |
+
Qian Liu, Yihong Chen, Bei Chen, Jian-Guang Lou, Zixuan Chen, Bin Zhou, and Dongmei Zhang. 2020. You impress me: Dialogue generation via mutual persona perception. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 1417-1427.
|
| 380 |
+
Yifan Liu, Wei Wei, Jiayi Liu, Xianling Mao, Rui Fang, and Dangyang Chen. 2022. Improving personality consistency in conversation by personal extending. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management, pages 1350-1359.
|
| 381 |
+
Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations.
|
| 382 |
+
Hongyuan Lu, Wai Lam, Hong Cheng, and Helen Meng. 2022. Partner personas generation for dialogue response generation. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5200-5212, Seattle, United States. Association for Computational Linguistics.
|
| 383 |
+
Bodhisattwa Prasad Majumder, Taylor Berg-Kirkpatrick, Julian McAuley, and Harsh Jhamtani. 2021. Unsupervised enrichment of person-grounded dialog with background stories. 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 585-592, Online. Association for Computational Linguistics.
|
| 384 |
+
Bodhisattwa Prasad Majumder, Harsh Jhamtani, Taylor Berg-Kirkpatrick, and Julian McAuley. 2020. Like hiking? you probably enjoy nature: Personagrounded dialog with commonsense expansions. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 9194-9206, Online. Association for Computational Linguistics.
|
| 385 |
+
OpenAI-Blog. 2022. Chatgpt: Optimizing language models for dialogue.
|
| 386 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. pages 311-318.
|
| 387 |
+
Ashwin Paranjape, Omar Khattab, Christopher Potts, Matei Zaharia, and Christopher D Manning. Hindsight: Posterior-guided training of retrievers for
|
| 388 |
+
|
| 389 |
+
improved open-ended generation. In International Conference on Learning Representations.
|
| 390 |
+
Ashwin Paranjape, Omar Khattab, Christopher Potts, Matei Zaharia, and Christopher D Manning. 2021. Hindsight: Posterior-guided training of retrievers for improved open-ended generation. In International Conference on Learning Representations.
|
| 391 |
+
F Petroni, A Piktus, A Fan, PSH Lewis, M Yazdani, ND Cao, J Thorne, Y Jernite, V Karpukhin, J Maillard, et al. 2021. Kilt: a benchmark for knowledge intensive language tasks. In NAACL-HLT, pages 2523-2544. Association for Computational Linguistics.
|
| 392 |
+
Maja Popovic. 2017. $\mathrm{chrF}++$ : words helping character n-grams. In Proceedings of the Second Conference on Machine Translation, pages 612-618, Copenhagen, Denmark. Association for Computational Linguistics.
|
| 393 |
+
Hannah Rashkin, Eric Michael Smith, Margaret Li, and Y-Lan Boureau. 2019. Towards empathetic open-domain conversation models: A new benchmark and dataset. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5370-5381, Florence, Italy. Association for Computational Linguistics.
|
| 394 |
+
Stephen Robertson and Hugo Zaragoza. 2009. The probabilistic relevance framework: Bm25 and beyond. Found. Trends Inf. Retr., 3(4):333-389.
|
| 395 |
+
Kurt Shuster, Spencer Poff, Moya Chen, Douwe Kiela, and Jason Weston. 2021. Retrieval augmentation reduces hallucination in conversation. In *Findings of the Association for Computational Linguistics: EMNLP* 2021, pages 3784-3803.
|
| 396 |
+
Kurt Shuster, Jing Xu, Mojtaba Komeili, Da Ju, Eric Michael Smith, Stephen Roller, Megan Ung, Moya Chen, Kushal Arora, Joshua Lane, et al. 2022. Blenderbot 3: a deployed conversational agent that continually learns to responsibly engage. arXiv preprint arXiv:2208.03188.
|
| 397 |
+
Eric Michael Smith, Mary Williamson, Kurt Shuster, Jason Weston, and Y-Lan Boureau. 2020. Can you put it all together: Evaluating conversational agents' ability to blend skills. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2021-2030, Online. Association for Computational Linguistics.
|
| 398 |
+
Haoyu Song, Yan Wang, Wei-Nan Zhang, Xiaojiang Liu, and Ting Liu. 2020. Generate, delete and rewrite: A three-stage framework for improving personal consistency of dialogue generation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5821-5831, Online. Association for Computational Linguistics.
|
| 399 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierrick Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz,
|
| 400 |
+
|
| 401 |
+
Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38-45, Online. Association for Computational Linguistics.
|
| 402 |
+
Thomas Wolf, Victor Sanh, Julien Chaumont, and Clement Delangue. 2019. Transfertransfo: A transfer learning approach for neural network based conversational agents. arXiv e-prints, pages arXiv-1901.
|
| 403 |
+
Bohong Wu, Zhuosheng Zhang, Jinyuan Wang, and Hai Zhao. 2022a. Sentence-aware contrastive learning for open-domain passage retrieval. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1062-1074, Dublin, Ireland. Association for Computational Linguistics.
|
| 404 |
+
Chen Henry Wu, Yinhe Zheng, Xiaoxi Mao, and Minlie Huang. 2021. Transferable person-grounded dialogues via grounded minimal edits. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 2368-2382, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 405 |
+
Sixing Wu, Ying Li, Dawei Zhang, and Zhonghai Wu. 2022b. KSAM: Infusing multi-source knowledge into dialogue generation via knowledge source aware multi-head decoding. In Findings of the Association for Computational Linguistics: ACL 2022, pages 353-363, Dublin, Ireland. Association for Computational Linguistics.
|
| 406 |
+
Minghong Xu, Piji Li, Haoran Yang, Pengjie Ren, Zhaochun Ren, Zhumin Chen, and Jun Ma. 2020. A neural topical expansion framework for unstructured persona-oriented dialogue generation. In ECAI 2020, pages 2244-2251. IOS Press.
|
| 407 |
+
Tom Young, Erik Cambria, Iti Chaturvedi, Hao Zhou, Subham Biswas, and Minlie Huang. 2018. Augmenting end-to-end dialogue systems with commonsense knowledge. In Proceedings of the AAAI conference on artificial intelligence, volume 32.
|
| 408 |
+
Saizheng Zhang, Emily Dinan, Jack Urbanek, Arthur Szlam, Douwe Kiela, and Jason Weston. 2018. Personalizing dialogue agents: I have a dog, do you have pets too? In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2204-2213.
|
| 409 |
+
Yinhe Zheng, Rongsheng Zhang, Minlie Huang, and Xiaoxi Mao. 2020. A pre-training based personalized dialogue generation model with persona-sparse data. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 9693-9700.
|
| 410 |
+
|
| 411 |
+
Kangyan Zhou, Shrimai Prabhumoye, and Alan W Black. 2018. A dataset for document grounded conversations. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 708-713.
|
| 412 |
+
Wangchunshu Zhou, Qifei Li, and Chenle Li. 2021 Learning to predict persona information for dialogue personalization without explicit persona description arXiv preprint arXiv:2111.15093.
|
| 413 |
+
Yicheng Zou, Zhihua Liu, Xingwu Hu, and Qi Zhang 2021. Thinking clearly, talking fast: Concept-guided non-autoregressive generation for open-domain dialogue systems. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 2215-2226.
|
| 414 |
+
|
| 415 |
+
# A Training details for Concept-based Persona Generator
|
| 416 |
+
|
| 417 |
+
# A.1 Persona Retriever
|
| 418 |
+
|
| 419 |
+
For training persona retriever, we first construct persona pool. The statistics for persona pool is shown in Table 8. To train the persona retriever, we created a training and validation dataset using the persona pool. To construct a DPR-style dataset, we set the query as the persona-concept, the positive sample as the complete persona sentence, and the negative samples as lexically similar persona sentences retrieved from BM25 (Robertson and Zaragoza, 2009). We use $\mathrm{haystack}^3$ and Hugging Face (Wolf et al., 2020) to implement persona retriever. The hyperparameters utilized for training persona retriever are batch size 32, learning rate $1 \times 10^{-6}$ , AdamW optimizer (Loshchilov and Hutter, 2019) ( $\beta_{1} = 0.9$ , $\beta_{2} = 0.999$ , and $\epsilon = 1e - 8$ ). We initialized the query and context encoder with bert-base-uncased model and the training is carried out 5 epochs.
|
| 420 |
+
|
| 421 |
+
# A.2 Concept-based Persona Generator
|
| 422 |
+
|
| 423 |
+
For training the concept-based persona generator, we set top $k$ as 10 to augment ten relevant persona sentences to the input for training BART (Lewis et al., 2020a). The hyperparameters utilized for the training the BART are batch size 64, learning rate $5 \times 10^{-5}$ , and the AdamW optimizer (Loshchilov and Hutter, 2019) $(\beta_{1} = 0.9, \beta_{2} = 0.999$ , and $\epsilon = 1e - 8$ ). We initialized BART with facebook/bart-base from the Hugging Face and the training is carried out 5 epochs.
|
| 424 |
+
|
| 425 |
+
<table><tr><td>Model</td><td># Sentences</td></tr><tr><td>FoCus (Jang et al., 2022b)</td><td>42,105</td></tr><tr><td>PersonaChat (Zhang et al., 2018)</td><td>4,795</td></tr><tr><td>Total</td><td>46,900</td></tr></table>
|
| 426 |
+
|
| 427 |
+
Table 8: Statistics for the persona pool used in persona retriever
|
| 428 |
+
|
| 429 |
+
# B Experimental Details
|
| 430 |
+
|
| 431 |
+
For the dialogue generation, we implement our method with Hugging Face (Wolf et al., 2020). We set the learning rate $6.25 \times 10^{-5}$ with the AdamW optimizer (Loshchilov and Hutter, 2019). We employ a BARTlarge model with 12 encoder and decoder layers and RAG-Token that have the same number of layers for a fair comparison. The batch size is set as 128 for BART and 16 for RAG. $\lambda_{P}$ and $\lambda_{LM}$ are 0.5 and founded by manual search. The number of dialogue history window sizes is 2 and the beam size is 4. The whole model was trained for three epochs on RTX A6000 GPU and took 8 hours per epoch.
|
| 432 |
+
|
| 433 |
+
# C Prompt for Building Aligner
|
| 434 |
+
|
| 435 |
+
# Prompt
|
| 436 |
+
|
| 437 |
+
"Check for aligning" is whether the "Persona" is explicitly or implicitly reflected in "Dialogue". Classify if a given "Dialogue" aligns with "Persona". You must answer with Yes or No.
|
| 438 |
+
|
| 439 |
+
New Sample
|
| 440 |
+
|
| 441 |
+
Persona: I would like to visit the Nazareth House again.
|
| 442 |
+
|
| 443 |
+
Dialogue:
|
| 444 |
+
|
| 445 |
+
A: I think I've been there before but I don't remember the name of this place.
|
| 446 |
+
|
| 447 |
+
B: This place is the Nazareth House, which you would like to visit again.
|
| 448 |
+
|
| 449 |
+
A: Can you describe this house to me?
|
| 450 |
+
|
| 451 |
+
B: You have curiosity about the description of Nazareth House and I will tell you. Nazareth House is prominently located on an elevation along Wynnum North Road. The complex consists of a number of buildings including the original building, the Convent and Chapel and two more recent additions, St Joseph's Hostel and the nursing home known as Larmeniere.
|
| 452 |
+
|
| 453 |
+
A: Does this house look old to me, when it was built?
|
| 454 |
+
|
| 455 |
+
B: This house is relatively old, but since you would like to know when it was built, I will explain it to you. Nazareth House was built from 1924 to 1939.
|
| 456 |
+
|
| 457 |
+
A: What is the history of this house?
|
| 458 |
+
|
| 459 |
+
B: The history of the house you are interested in began in 1925 when it was opened by Archbishop James Duhig as part of the charity established on the site by the Poor Sisters of Nazareth. The Nazareth House, located in Tingal Hill, Wynnum, was designed by the Brisbane architecture firm, Hennessy, Hennessy, Keesing Co and JP Donoghue and built by George Turner.
|
| 460 |
+
|
| 461 |
+
Check for aligning:
|
| 462 |
+
|
| 463 |
+
# expected answer
|
| 464 |
+
|
| 465 |
+
Yes or No
|
| 466 |
+
|
| 467 |
+
Table 9: Prompt used for alignment on consistency by referring to persona and dialogue. Our persona consistency module is trained by gathering the responses.
|
2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c379f3a7413e06772469b7e2fe873fa37c4a1995e2640bb05728478f8a00ffd1
|
| 3 |
+
size 382517
|
2023/Beyond Candidates _ Adaptive Dialogue Agent Utilizing Persona and Knowledge/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/2a27a382-8887-432f-9ceb-8755944db9bd_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/2a27a382-8887-432f-9ceb-8755944db9bd_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/2a27a382-8887-432f-9ceb-8755944db9bd_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2a04d5314a0fde8e2611956935198dbda852f314a8b88db63fffb59123f60d1
|
| 3 |
+
size 835240
|
2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/full.md
ADDED
|
@@ -0,0 +1,573 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beyond Denouncing Hate: Strategies for Countering Implied Biases and Stereotypes in Language
|
| 2 |
+
|
| 3 |
+
Warning: content in this paper may be upsetting or offensive.
|
| 4 |
+
|
| 5 |
+
Jimin Mun $^{\text{♥}}$ Laura Vianna
|
| 6 |
+
|
| 7 |
+
Carnegie Mellon University
|
| 8 |
+
|
| 9 |
+
Emily Allaway\* Sarah-Jane Leslie
|
| 10 |
+
|
| 11 |
+
$\spadesuit$ Columbia University
|
| 12 |
+
|
| 13 |
+
Akhila Yerukola Maarten Sap
|
| 14 |
+
|
| 15 |
+
†University of Washington
|
| 16 |
+
|
| 17 |
+
$\diamond$ Princeton University
|
| 18 |
+
|
| 19 |
+
*Allen Institute for AI
|
| 20 |
+
|
| 21 |
+
# Abstract
|
| 22 |
+
|
| 23 |
+
Counterspeech, i.e., responses to counteract potential harms of hateful speech, has become an increasingly popular solution to address online hate speech without censorship. However, properly countering hateful language requires countering and dispelling the underlying inaccurate stereotypes implied by such language. In this work, we draw from psychology and philosophy literature to craft six psychologically inspired strategies to challenge the underlying stereotypical implications of hateful language. We first examine the convincingness of each of these strategies through a user study, and then compare their usages in both human- and machine-generated counterspeech datasets. Our results show that human-written counterspeech uses countering strategies that are more specific to the implied stereotype (e.g., counter examples to the stereotype, external factors about the stereotype's origins), whereas machine-generated counterspeech uses less specific strategies (e.g., generally denouncing the hatefulness of speech). Furthermore, machine-generated counterspeech often employs strategies that humans deem less convincing compared to human-produced counterspeech. Our findings point to the importance of accounting for the underlying stereotypical implications of speech when generating counterspeech and for better machine reasoning about anti-stereotypical examples.
|
| 24 |
+
|
| 25 |
+
# 1 Introduction
|
| 26 |
+
|
| 27 |
+
Counterspeech, i.e., responses that counteract hateful or dangerous content (Benesch et al., 2016), has emerged as a widely supported solution to address hateful online speech without censorship risks of deletion-based content moderation (Myers West, 2018; Sap et al., 2019). However, as the scale of hateful content increases online (Leetaru, 2019; Baggs, 2021), effectively responding with counterspeech is infeasible for humans to do alone. As
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
Figure 1: Responses to same implication where humans are able use appropriate countering strategies to target the implication by presenting alternate groups, counterexamples, and external factors while LLMs focus on denouncing.
|
| 31 |
+
|
| 32 |
+
such, NLP systems can provide a promising opportunity to further understand counterspeech and assist content moderators and other stake holders in generating responses (Parker and Ruths, 2023).
|
| 33 |
+
|
| 34 |
+
One major challenge towards effectively combatting hateful and prejudiced content is that counter-speech should dispel the implied stereotypical beliefs about social groups (Buerger, 2021b), beyond simply denouncing the speech. For instance, in Figure 1, the human-written counterspeech targets the stereotype that "gay men are promiscuous" implied in the original post. If left unchallenged, such prejudiced implications can perpetuate and maintain existing stereotypes (Beukeboom and Burgers, 2019) and exacerbate discrimination and intergroup conflict (Fiske, 1998; Macrae and Bodenhausen, 2000). However, exactly how to convincingly combat stereotypical implications with counterspeech
|
| 35 |
+
|
| 36 |
+
remains an open question (Buerger, 2022).
|
| 37 |
+
|
| 38 |
+
To investigate this question, we analyze the usage and convincingness of psychologically inspired strategies for countering implied biases and stereotypes, in both human- and machine-generated counterspeech. In contrast to prior work, which has examined tone- or style-based effectiveness (Hangartner et al., 2021; Han et al., 2018), we design and analyze six stereotype-targeting strategies drawing from literature in social psychology, social cognition, and philosophy of language.
|
| 39 |
+
|
| 40 |
+
Our strategies aim to directly combat the stereotypical association between a group and an attribute (e.g., "gay men", "promiscuous"): reducing the association between the attribute and the group by suggesting alternate groups that exhibit similar attributes, or focusing on different attributes of the targeted group, providing counterexamples to the stereotype, reducing the intrinsic implication of the stereotype through external factors about stereotype origins, broadening the group boundaries to emphasize individual variation, and generally labeling the stereotype as negative.
|
| 41 |
+
|
| 42 |
+
We first investigate how prevalent and convincing these strategies are in human-generated counterspeech. Specifically, we conduct a crowdsourced user study to examine which strategies workers prefer, and analyze two corpora of human-written counterspeech. Our results show that humans perceive countering strategies that present different qualities of the targeted group as most persuasive, and generally prefer strategies that require deeper reasoning about the implied stereotype (e.g., presenting external factors or counterexamples).
|
| 43 |
+
|
| 44 |
+
Furthermore, when comparing human-written and machine-generated counterspeech, we find that machines often generate nonspecific strategies (e.g., general denouncing) whereas humans use more nuanced and specific strategies, like counterexamples. Our findings highlight the potential for understanding counterspeech strategies that persuasively challenge stereotypical beliefs and reveal the inherent limitations of current NLP models in generating effective stereotype-targeting counterspeech.
|
| 45 |
+
|
| 46 |
+
# 2 Background: Language, Stereotypes, and Counterspeech
|
| 47 |
+
|
| 48 |
+
Our goal is to investigate stereotype-targeting counterspeech strategies that most convincingly challenge the underlying implications of hate speech. Our analyses and strategies are based on the fact
|
| 49 |
+
|
| 50 |
+
that prejudiced language about social groups can often convey and exacerbate stereotypes through subtle implicature (Fiske, 1998; Sap et al., 2020; Perez Gomez, 2021, §2.1). Properly combating such language requires convincingly dispelling and fact-checking the stereotypical implications beyond simple deflection or norm-setting (Lepoutre, 2019, §2.2). Additionally, our investigations aim to shed light on how NLP systems can help humans better analyze and produce counterspeech (§2.3).
|
| 51 |
+
|
| 52 |
+
# 2.1 Language and Stereotypes
|
| 53 |
+
|
| 54 |
+
Prejudiced language reflects and perpetuates social inequalities and stereotypical beliefs (Beukeboom and Burgers, 2019). As argued by Perez Gomez (2021), when accepting subtly prejudiced statements as true, we inherently accept the underlying stereotype as true. Therefore, the harmful implications of hate speech must be challenged to mitigate the spread of such beliefs.
|
| 55 |
+
|
| 56 |
+
These underlying stereotypes are often in the form of generics, i.e., generalizing statements such as "girls wear pink", (Rhodes et al., 2012) which are difficult to counter due to their unquantified structure (Leslie, 2014). Generics show especially strong association to the group when the characteristics are striking and negative (Leslie, 2017), and once formed, these beliefs become extremely difficult to change (Scheffer et al., 2022). Thus, countering hate speech is important yet challenging because it requires extensive reasoning about the underlying implications.
|
| 57 |
+
|
| 58 |
+
# 2.2 Countering Hate vs. Implied Stereotypes
|
| 59 |
+
|
| 60 |
+
Counterspeech can have many intended effects to a diverse audience including original speakers and bystanders (Buerger, 2021a, 2022). Therefore, counterspeech, and more broadly countering hate, has been studied from a number of different angles. Observing Twitter interactions, Hangartner et al. (2021) found that empathy resulted in better outcomes (e.g., deletion, decrease in number of hate tweets) compared to using humor or warnings of consequences. Benesch et al. (2016) suggests various strategies for countering hate such as empathy, shaming, humor, warning of consequences, and fact-checking. Moreover, studies show the contagion effect (Buerger, 2021a) where social feedback (Berry and Taylor, 2017) and the quality of the comments (e.g., civility) impact subsequent comments and discussions (Friess et al., 2021; Han et al., 2018). These works provide insights into
|
| 61 |
+
|
| 62 |
+
preferences for strategies to counter the explicit content of hate speech. In contrast, our work studies strategies for persuasive arguments against hate conveyed through implied stereotypes.
|
| 63 |
+
|
| 64 |
+
To specifically target stereotypes and group perception, previous works in psychology have studied humanization of targeted groups through reminding people that individuals belong in multiple categories (Prati et al., 2016), exposure to positive outgroup examples (Cernat, 2011), and anti stereotypes (Finnegan et al., 2015) and have shown promising results. Moreover, the positive impacts on belief change of fact-checking (Porter and Wood, 2021) and counter narratives (Lewandowsky et al., 2012) call for counterspeech beyond just rejecting the original speech.
|
| 65 |
+
|
| 66 |
+
# 2.3 NLP for Counterspeech
|
| 67 |
+
|
| 68 |
+
With the ability to analyze and generate text at a large scale, NLP is an invaluable asset for counterspeech and number of works in NLP have collected and generated counterspeech datasets (Mathew et al., 2019; Garland et al., 2020; Qian et al., 2019; Chung et al., 2019; Bonaldi et al., 2022; Fanton et al., 2021) for the detection, analysis, and generation of counterspeech. Yu et al. (2022) observed that question marks and words related to awareness and problem solving are frequently used in counterspeech. Similarly, Lasser et al. (2023) noted that responding with simple opinions or sarcasm reduced extreme hate. Generative approaches to counterspeech have incorporate stylistic strategies (e.g., politeness, joyfulness, detoxification; Saha et al. 2022) and relevance (Zhu and Bhat, 2021). Although previous works have made progress towards observing and generating using different counterspeech strategies, the focus has been on stylistic differences and while promising, do not explicitly target the underlying stereotypes in hate speech.
|
| 69 |
+
|
| 70 |
+
Fraser et al. (2021) and Allaway et al. (2023) have more closely investigated computational methods to counter stereotypes. Fraser et al. (2021) investigated stereotypes and counter stereotypes using warmth and competence of the groups and associated words and noted the difficulty in automatically generating anti-stereotypes. Moreover, Allaway et al. (2023) have studied automatic generation of counterstatements to implied stereotypes and provides a proof-of-concept for countering strategies. Our work, on the other hand, adds upon the proposed strategies and analyzes their usage by
|
| 71 |
+
|
| 72 |
+
Post: Do girls think guys flex muscles n stroke their c\*\*ks before taking pics Bc that's basically what pathetic girls do in every pic Implied Stereotype: Women are shallow.
|
| 73 |
+
|
| 74 |
+
ALT-GRP This statement implies an inaccurate stereotype because many men can also be shallow.
|
| 75 |
+
|
| 76 |
+
ALT-QUAL This statement implies an inaccurate stereotype because many women are intelligent, profound, and multi-dimensional.
|
| 77 |
+
|
| 78 |
+
CNTR-EXS This statement implies an inaccurate stereotype because a lot of women are profound, including women philosophers, women scientists, and women writers.
|
| 79 |
+
|
| 80 |
+
EXTERNAL This statement implies an inaccurate stereotype; historical contexts such as gender inequality and sexism have perpetuated this false stereotype that women are shallow.
|
| 81 |
+
|
| 82 |
+
BROAD This statement implies an inaccurate stereotype because women have all sorts of personality types and characteristics, just like all groups of people; we cannot characterize them all as shallow.
|
| 83 |
+
|
| 84 |
+
GEN-DEN This statement's implication is an inaccurate and unnecessarily hurtful generalization about women that they are shallow.
|
| 85 |
+
|
| 86 |
+
Table 1: Example statements of each countering strategy. These statements were also used as counter statements for user study in §4.
|
| 87 |
+
|
| 88 |
+
humans and machines to understand these strategies and improve counterspeech. Building on these prior works, we aim to provide insights into how language models can help counter stereotypes and mitigate the harmful effects of hate speech.
|
| 89 |
+
|
| 90 |
+
# 3 Stereotype-Targeting Strategies
|
| 91 |
+
|
| 92 |
+
To investigate how counterspeech can address stereotypical speech, we examine stereotypes through the lens of generics about social groups (Rhodes et al., 2012; Sap et al., 2020), i.e., short unquantified statements that link a social group with a quality:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\mathrm {G R O U P} + \text {r e l a t i o n} + \mathrm {Q U A L I T Y}.
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
For example, the stereotype in Table 1 "Women are shallow" can be separated into three components: "Women" (GROUP), "are" (relation) and "shallow" (QUALITY). The GROUP typically refers to demographic groups such as black people, gay men, etc. The relation is typically a stative verb like "are" or a verb indicating a lack of ability, such as "can't". A QUALITY usually has negative meaning or connotation (e.g., shallow, terrorist), but can sometimes be positive (e.g., for positive stereotypes; Cheryan and Bodenhausen, 2000).
|
| 99 |
+
|
| 100 |
+
Through this formulation, we introduce six countering strategies that aim to challenge the acceptability, validity, or truthfulness of stereotypes ex
|
| 101 |
+
|
| 102 |
+
pressed as generics, crafted based on prior work on combating stereotypes and essentialism in social psychology and finding exceptions to generics in philosophy of language.
|
| 103 |
+
|
| 104 |
+
Alternate Groups (ALT-GRP) People often accept generics of the form 'G relation $q$ ' as true based on relatively weak evidence (Cimpian et al., 2010). However, for unfamiliar groups, we often attribute qualities more assertively, claiming that (almost) 'all G relation $q$ ' even with scarce supporting evidence (Rooij and Schulz, 2020). To counter such inferences, we can remind readers that alternate groups' relation to $q$ is often higher than commonly recognized.
|
| 105 |
+
|
| 106 |
+
We define the ALT-GRP strategy as follows:
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
A l t (\text {G R O U P}) + r e l a t i o n + \text {Q U A L I T Y}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
Here, $Alt(G)$ represents a relevant set of alternative groups to $G$ with the same set of separating characteristic (e.g., gender). For instance, if $G = \text{"women" }$ , $Alt(G)$ would consist of a group like "men" rather than a set of unrelated groups.
|
| 113 |
+
|
| 114 |
+
Alternate Qualities (ALT-QUAL) Similarly, we construct a strategy that highlights alternate distinctive or defining qualities of $G$ . We consider values of $Alt(q)$ to promote a more nuanced understanding and challenge preconceived notions about the group. Thus, we formulate the ALT-QUAL strategy as the following:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\text {G R O U P} + \text {r e l a t i o n} + \text {A l t (Q U A L I T Y)}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
In this case, $Alt(q)$ represents alternate contextually relevant qualities. For example, if $S =$ Women are shallow., $Alt(q)$ would include qualities like "intelligent" and "profound" but not positive and unrelated quality (e.g., fun). This aims to combat the definitional aspect of a stereotype.
|
| 121 |
+
|
| 122 |
+
Counterexamples (CNTR-Exs) Counterexamples aim to point out exceptions to the stereotype and thereby challenge the implication that the stereotype holds for all members of the GROUP.
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
x + \left\{ \begin{array}{l} r e l a t i o n + A l t (\text {Q U A L I T Y}) \\ \neg r e l a t i o n + \text {Q U A L I T Y} \end{array} \right.
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
where $x$ is a specific individual member of GROUP or a subgroup of GROUP<sup>2</sup>.
|
| 129 |
+
|
| 130 |
+
External Factors (EXTERNAL) When readers are reminded that stereotypical characteristics of a group $G$ exist due to external conditions (i.e. 'G relation $q$ is due to external factor $f$ ), they have been shown to exhibit more flexible and dispensable thinking towards the group $G$ (Vasilyeva and Lombrozo, 2020). This style of unconfounding is referred to as structural construal (Berkowitz, 1984) in social psychology.
|
| 131 |
+
|
| 132 |
+
Thus, we propose the EXTERNAL strategy, in which counterspeech employs external causes or factors to demonstrate why a stereotype might have been formed (e.g., historical context such as gender inequality). Note that it differs from CNTR-EXS by focusing on external factors or details for refutation, rather than specific instances within the group.
|
| 133 |
+
|
| 134 |
+
Broadening (BROAD) The broadening strategy questions the validity of a GROUP in a generic or stereotype by employing humanizing techniques. Essentially, broadening emphasizes either the uniqueness of a certain quality to the group or highlights the complexity of individual group members, suggesting that they cannot be defined by merely one quality.
|
| 135 |
+
|
| 136 |
+
An example of broadening can be formalized as:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\text {A l l p e o p l e} + \text {r e l a t i o n} + \left\{ \begin{array}{l} A l t (\text {Q U A L I T Y}) \\ \text {Q U A L I T Y} \end{array} \right.
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
General Denouncing (GEN-DEN) Another commonly observed countering strategy in NLP is denouncing (Mathew et al., 2019; Qian et al., 2019). Denouncing involves expressing general disapproval for the hate speech (e.g., "This is just wrong"). This approach has the potential to establish discursive norms and preemptively dismiss similar instances of hate speech (Lepoutre, 2019). Here, counterspeech assigns general negative values to the stereotypical statement, using terms like "hurtful", "unhelpful" or "not okay" to express disapproval and challenge the stereotype.
|
| 143 |
+
|
| 144 |
+
# 4 Human Evaluation of Stereotype-Targeting Strategies
|
| 145 |
+
|
| 146 |
+
In order to determine which strategies are persuasive in countering implied stereotypical beliefs, we first conduct a user study on Amazon Mechanical Turk (MTurk) to measure the convincingness of expert-crafted counter-statements, i.e., short sentences that embody a specific countering strategy.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 2: First and second choices of countering strategies sorted by the sum of the two responses. Percentage is calculated separately for first and second choice.
|
| 150 |
+
|
| 151 |
+
# 4.1 Experimental Setup
|
| 152 |
+
|
| 153 |
+
We first collected social media posts with their corresponding implied stereotype for 10 demographic groups from the Social Bias Inference Corpus (SBIC; Sap et al., 2020). The groups were selected from the top 25 most targeted groups in $\mathrm{SBIC}^3$ , and the stereotypes were selected from the top 10 most frequent stereotypes for each group. The selected groups and stereotypes are shown in Figure 7.
|
| 154 |
+
|
| 155 |
+
Counter-statements For each stereotype, six counter-statements (one for each strategy) were crafted collaboratively by the authors, to ensure maximal faithfulness to the strategy definitions. This resulted in a total of 60 counter-statements; see Table 1 for examples.
|
| 156 |
+
|
| 157 |
+
Task Description Each participant is presented with a post and its implied stereotype, along with six counter-statements in random order. Annotators are asked to select the first and second most convincing counter-statements according to them (i.e., following a descriptive data labeling paradigm; Röttger et al., 2022). We recruited annotators from a pool of pre-qualified participants who were paid 0.27 USD for each text and stereotype pair. Please refer to Appendix G for further details.
|
| 158 |
+
|
| 159 |
+
# 4.2 Results
|
| 160 |
+
|
| 161 |
+
Our results in Figure 2 suggest that there is a clear distinction and ordering of convincing countering strategies. Although the order of preference for the first choice and the second choices are different, the cumulative top choices remain consistent:
|
| 162 |
+
|
| 163 |
+
ALT-QUAL, BROAD, CNTR-EXS, and EXTERNAL. These results are mostly consistent with findings from social psychology that highlight the value of strategies similar to ALT-QUAL (Leslie, 2008, 2017), BROAD (Foster-Hanson et al., 2022), and EXTERNAL (Vasilyeva and Lombrozo, 2020).
|
| 164 |
+
|
| 165 |
+
We also observe that less complex strategies are not necessarily the most convincing. In particular, while GEN-DEN and BROAD require the least amount of reasoning about the stereotypical quality or group to understand, they have very different levels of convincingness: BROAD is the most preferred first choice while GEN-DEN is the least preferred. Furthermore, strategies that require a similar level of involved reasoning can have drastically different levels of convincingness (e.g., ALT-QUAL is chosen as convincing twice as frequently as ALT-GRP, cumulatively). This suggests that differences in strategy complexity are not sufficient to account for convincingness.
|
| 166 |
+
|
| 167 |
+
There are also clear differences in strategy preferences depending on the group and stereotype (see Figure 7). For example, BROAD is not chosen at all for the stereotype about feminists (Fig. 7, fourth from the bottom), despite its popularity in countering other stereotypes such as "women are shallow".
|
| 168 |
+
|
| 169 |
+
# 5 Countering Strategies in Human vs. Machine-generated Data
|
| 170 |
+
|
| 171 |
+
The results from the previous section suggest that some strategies are more convincing than others. To further investigate this, we examine the usage of these six strategies in human-written counterspeech. Additionally, we compare human and machine-generated counterspeech to understand whether machines use these strategies. In this section, we discuss the methods and datasets used for this analysis, while our findings are presented in §6.
|
| 172 |
+
|
| 173 |
+
# 5.1 Datasets
|
| 174 |
+
|
| 175 |
+
We consider two datasets that contain posts paired with counterspeech comments: Multitag-CONAN (Fanton et al., 2021), a dataset of hate speech and counterspeech pairs generated using human-machine collaboration, and the Winning Arguments (ChangeMyView) Corpus (Tan et al., 2016) extended with more recent posts from the same subreddit, r/ChangeMyView (hence forth CMV) for the period 2016-2022.4 Appendix A
|
| 176 |
+
|
| 177 |
+
shows details on datasets and their collection and filtering process.
|
| 178 |
+
|
| 179 |
+
These two datasets offer insights into how countering strategies are employed in two distinct types of online interactions: in CONAN, users share short comment replies without necessarily seeking change, while in CMV, users actively engage via long comment posts to challenge or potentially alter their opinions.
|
| 180 |
+
|
| 181 |
+
# 5.2 Selecting Data
|
| 182 |
+
|
| 183 |
+
For both MTCONAN and CMV datasets, we are interested in analyzing the implied stereotype of the original post as well as the strategies used in the counter-statements (counterspeech in MTCONAN; $\Delta$ and non- $\Delta$ comments in CMV). We use the process outlined below to filter and select data that contain specific implied stereotypes.
|
| 184 |
+
|
| 185 |
+
Implied Stereotype Extraction To analyze strategies for combating stereotypical implications, we filter our two datasets to include only posts that target or reference a specific stereotype about a demographic group. Based on evidence of its labeling abilities (Ziems et al., 2023), we use GPT-4 to identify such posts and generate the target group and implied stereotype, by prompting it with three in-context examples (see Appendix B for details). Table 3 shows the number of unique harmful posts in each dataset.
|
| 186 |
+
|
| 187 |
+
# 5.3 Counterspeech Generation
|
| 188 |
+
|
| 189 |
+
To investigate machine-generated counterspeech, we prompt two large language models (LLMs) to respond to posts with counterspeech: GPT-4 (OpenAI, 2023) and Alpaca (Taori et al., 2023). We instruct the LLMs to assist a user in responding to harmful posts without providing any specific counter strategy definitions, to avoid biasing the model's output towards predetermined approaches.
|
| 190 |
+
|
| 191 |
+
# 5.4 Counter Strategy Labeling
|
| 192 |
+
|
| 193 |
+
To detect the usage of any our six stereotype-targeting strategies within a reply to a post, we leverage the labeling abilities of two LLMs, namely GPT-3.5 $^{6}$ and GPT-4. We prompt these models
|
| 194 |
+
|
| 195 |
+
with the strategy definition and two in-context examples (one using the strategy and one without it), and instruct them to provide a binary label that indicates the presence of the strategy. We also prompt them to output the text span that contains it. Please refer to Appendix D.2 for detailed prompts used for analysis.
|
| 196 |
+
|
| 197 |
+
Test Set Creation To validate the reliability of using LLMs for detecting these nuanced counter- ing strategies, we randomly sampled 100 examples from each dataset. These samples were assigned gold labels through expert annotation conducted by three of the authors. The authors manually reviewed the examples independently, resolving disagreements through discussions. This process led to the creation of a test set comprising of 200 expert-annotated samples.
|
| 198 |
+
|
| 199 |
+
Evaluating Strategy Detection We utilize these gold labels to assess the performance of each LLM in detecting strategies, as shown in Table 2. Although performance is only moderate, both models are outperform the majority class classifiers, which include both the 0 and 1 majority classes. This finding is particularly notable given that the majority class of the entire dataset is unknown. It suggests that these models have recognized some meaningful signals within the data. GPT-4 shows similar or improved performance on strategy detection compared to GPT-3.5 for all strategies and is thus used in subsequent experiments for strategy labeling. However, akin to expert-annotators, determining whether a reply contains a specific strategy is not trivial for LLMs. For example, we observed during a qualitative inspection that models occasionally confuse simple mention of alternative qualities or groups for the presence of ALT-QUAL or ALT-GRP, respectively. See Appendix F for further analysis.
|
| 200 |
+
|
| 201 |
+
# 6 Usage and Convincingness Results
|
| 202 |
+
|
| 203 |
+
In this section, we discuss the results of our investigations regarding the usage and persuasive power of our six stereotype-targeting strategies, for both human and machine-written counterspeech.
|
| 204 |
+
|
| 205 |
+
# 6.1 CMV: Persuasive vs. Non-persuasive Comments
|
| 206 |
+
|
| 207 |
+
The comparison of strategy usage between $\Delta$ and non- $\Delta$ comments in CMV dataset is shown in Figure 3. Overall, the most frequently used strategies were ALT-QUAL (84.8%) followed by EXTERNAL
|
| 208 |
+
|
| 209 |
+
<table><tr><td rowspan="2">Strategy\Method</td><td colspan="3">GPT-4</td><td colspan="3">GPT-3.5</td><td colspan="3">Majority Class (0)</td><td colspan="3">Majority Class (1)</td></tr><tr><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td><td>Precision</td><td>Recall</td><td>F1</td></tr><tr><td>ALT-GRP</td><td>0.64</td><td>0.75</td><td>0.60</td><td>0.62</td><td>0.71</td><td>0.59</td><td>0.42</td><td>0.5</td><td>0.45</td><td>0.09</td><td>0.5</td><td>0.15</td></tr><tr><td>ALT-QUAL</td><td>0.68</td><td>0.66</td><td>0.61</td><td>0.66</td><td>0.64</td><td>0.58</td><td>0.31</td><td>0.5</td><td>0.38</td><td>0.20</td><td>0.5</td><td>0.28</td></tr><tr><td>CCTR-EXS</td><td>0.74</td><td>0.80</td><td>0.73</td><td>0.73</td><td>0.78</td><td>0.72</td><td>0.36</td><td>0.5</td><td>0.42</td><td>0.14</td><td>0.5</td><td>0.22</td></tr><tr><td>EXTERNAL</td><td>0.69</td><td>0.72</td><td>0.68</td><td>0.70</td><td>0.72</td><td>0.68</td><td>0.34</td><td>0.5</td><td>0.40</td><td>0.16</td><td>0.5</td><td>0.25</td></tr><tr><td>BROAD</td><td>0.60</td><td>0.66</td><td>0.52</td><td>0.61</td><td>0.67</td><td>0.52</td><td>0.41</td><td>0.5</td><td>0.45</td><td>0.10</td><td>0.5</td><td>0.16</td></tr><tr><td>GEN-DEN</td><td>0.55</td><td>0.57</td><td>0.46</td><td>0.55</td><td>0.57</td><td>0.47</td><td>0.40</td><td>0.5</td><td>0.44</td><td>0.11</td><td>0.5</td><td>0.17</td></tr></table>
|
| 210 |
+
|
| 211 |
+
Table 2: GPT-4 and GPT-3.5 strategy labeling performance over two datasets using expert-annotations shown with majority class classifiers. While performance is moderate, both models significantly outperform majority class classifiers, and GPT-4 outperforms or shows similar performance to GPT-3.5 for all strategies.
|
| 212 |
+
|
| 213 |
+
<table><tr><td>Dataset</td><td>Harmful Posts</td><td>Counterspeech</td></tr><tr><td>CMV</td><td>1586</td><td>5191</td></tr><tr><td>MTCONAN</td><td>876</td><td>1000</td></tr></table>
|
| 214 |
+
|
| 215 |
+
Table 3: Number of unique harmful posts and counter-speech for each dataset.
|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
Figure 3: Delta and non-delta comments comparisons of strategy usage annotated with independent $t$ -test $P$ values. The legends used in this graph are ns ( $p < .00$ ), * ( $p < .05$ ), ** ( $p < .01$ ), and *** ( $p < .001$ ). Error bars indicate standard error.
|
| 219 |
+
|
| 220 |
+
(66.7%), BROAD (66.5%), ALT-GRP (61.4%), CNTR-EXS (42.3%), and GEN-DEN (34.3%). On average, each comment used 3.56 strategies.
|
| 221 |
+
|
| 222 |
+
Using an independent $t$ -test, we find that the most significant difference in strategy usage is for the BROAD strategy, with $68.8\%$ and $64.1\%$ for $\Delta$ and non- $\Delta$ comments respectively ( $p < 0.001$ ). We also see that GEN-DEN strategy usage is less persuasive (32.6% in $\Delta$ comments vs $36.1\%$ in non- $\Delta$ comments; $p < 0.01$ ). Additionally, CNTR-EXS and BROAD were found to be more persuasive.
|
| 223 |
+
|
| 224 |
+
Strategies by Demographic Identity Types The analysis of results categorized by target group demographic types is shown in Figure 5. The keywords corresponding to each demographic group can be found at Appendix H. Among the persuasive
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
Figure 4: Delta comments and machine-generated counterspeech comparisons of strategy usage annotated with independent $t$ -test $P$ values. The legends indicate ns ( $p < 1.00$ ), ** ( $p < .01$ ), and **** ( $p < .0001$ ). Error bars indicate standard error.
|
| 228 |
+
|
| 229 |
+
$\Delta$ comments, the highest proportion of targeted demographic types were related to gender identity, accounting for $42.5\%$ of the total. This was followed by race/ethnicity $(10.9\%)$ , sexual orientation $(8.0\%)$ , appearance $(7.7\%)$ , socio-economic status $(4.8\%)$ , and religion $(4.8\%)$ . We notice that the most distinguishing strategies for addressing various demographic types were EXTERNAL and GEN-DEN. Further, GPT-4 showed a higher usage of GEN-DEN when countering stereotypes concerning race/ethnicity, appearance, and religion.
|
| 230 |
+
|
| 231 |
+
# 6.2 CMV:Persuasive Comments vs.
|
| 232 |
+
|
| 233 |
+
# Machine-generated Counterstatements
|
| 234 |
+
|
| 235 |
+
The comparison between persuasive human responses ( $\Delta$ comments) and machine-generated responses in the CMV dataset is shown in Figure 4. Both GPT-4 and Alpaca generated counterspeech showed significant differences in strategy usage compared to persuasive human responses. Alpaca-generated counterspeech contained an average of
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
Figure 5: Delta comments and machine-generated counterspeech strategy usage categorized by target group demographic identity types. GPT-4 shows much higher denouncing for certain demographic groups than others.
|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
Figure 6: Delta comments and CONAN counterspeech comparisons of strategy usage annotated with independent $t$ -test $P$ values. The legends indicate ns ( $p < .00$ ), ** ( $p < .01$ ), and **** ( $p < .0001$ ).
|
| 242 |
+
|
| 243 |
+
2.30 strategies per counterstatement, while GPT-4-generated ones used the most out of the three variations, averaging 4.05 per counterstatement.
|
| 244 |
+
|
| 245 |
+
Most notably, GPT-4-generated counterspeech contained GEN-DEN more frequently (55.6%) compared to persuasive human (32.6%) and Alpaca-generated (32.3%) responses. Further, both GPT-4 and Alpaca generated counterspeech used CNTR-EXS significantly lesser than human responses (43.6% vs. 31.5% and 11.4% for GPT-4 and Alpaca respectively). Also, GPT-4-generated counterspeech used lower ALT-GRP (56.6%) than human responses (61.4%). The comparison between non-persuasive human responses (non- $\Delta$ comments) and machine-generated responses shown in Appendix C show a similar pattern where GPT-4 uses more GEN-DEN and machines use less CNTR-EXS.
|
| 246 |
+
|
| 247 |
+
# 6.3 MTCONAN: Counter Narratives vs Machine-generated Counterstatements
|
| 248 |
+
|
| 249 |
+
The usage of countering strategies in the MTCO-NAN dataset, compared to machine responses, is presented in Figure 6. In contrast to CMV $\Delta$ comments, the observed trends of counter narra
|
| 250 |
+
|
| 251 |
+
tives in MTCONAN indicate a higher use of general denoucing and lower usage of all other strategies. The most frequent strategies are ALT-QUAL (54.0%) and GEN-DEN (48.3%), while the least frequent ones are EXTERNAL (16.9%), and CNTR-EXS (12.6%). This analysis reveals that uncivil stereotypical speech is countered differently from civil engagements.
|
| 252 |
+
|
| 253 |
+
In contrast, machine-generated responses to MTCONAN posts show high usage of GEN-DEN and ALT-QUAL at $96.9\%$ and $94.4\%$ respectively, significantly differing from MTCONAN counter narratives using $48.3\%$ and $54\%$ respectively. GPT-4-generated responses demonstrate higher usage of all the strategies averaging 4.24 strategies per comment, followed by alpaca (2.91) and MTCONAN counter narratives (1.87).
|
| 254 |
+
|
| 255 |
+
# 7 Conclusion & Discussion
|
| 256 |
+
|
| 257 |
+
In this work, we investigated stereotype-targeting strategies that convincingly counter the underlying implication of harmful speech. We crafted six different strategies (§3) and observed human preferences under a controlled setting (§4) and in two datasets (§5). We compared the strategy usage in persuasive vs. unpersuasive human generated counterspeech and in human vs. machine-generated counterspeech (§6).
|
| 258 |
+
|
| 259 |
+
Humans prefer more specific strategies. In both our user study (\$4) and data study (\$5), ALTQUAL was the most preferred and used method. Similarly, the delta award difference and the preference ranking both showed EXTERNAL, BROAD, and CNTR-EXS as more convincing. These top strategies, with the exception of broadening, are methods that require specific reasoning about the implication. Moreover, correctly identifying external factors and devise counter examples requires up-to-date world knowledge. In this work, we did not focus on the correctness of the usage of these strategies by machines, but - given their persuasiveness to humans - further study is required to
|
| 260 |
+
|
| 261 |
+
ensure their quality.
|
| 262 |
+
|
| 263 |
+
LLMs use less anti-stereotypical examples. Across the two models, GPT-4 and Alpaca, we see that LLMs do not use anti-stereotypical examples as often as humans, and instead use more general strategies such as denouncing. However, we see from our results and previous work (Finnegan et al., 2015) that humans prefer countering strategies with specific examples. These findings suggest that LLMs may lack exposure to anti-stereotypical examples and reveals an interesting challenge for improving machine-generated counterspeech.
|
| 264 |
+
|
| 265 |
+
Stereotypes about each target group are handled differently. From both our human evaluations and data analysis, we see different usage of strategies for each stereotype. For example, we observe increased use of EXTERNAL to challenge socio-economic stereotypes (e.g., poor folks, homeless). Similarly, stereotypes about race-ethnicity (e.g., black, person of color, Asian) and appearance (e.g, fat, overweight, slim) also use more EXTERNAL. These results suggest that there are similarities in strategy usage between identity groups that might be associated with stereotypes with similar characteristics. These results show that there is no one correct strategy for counterspeech and a deeper examination is necessary to select strategies with an understanding of the stereotype and group.
|
| 266 |
+
|
| 267 |
+
Different intended effects result in different strategy usage. Our results (§6.1, §6.3) also show that different intended effects (e.g., changing a viewpoint) result in different strategy usage. Although most hate speech datasets are limited to short social media comments (Mathew et al., 2019; Yu et al., 2022), as our Reddit data shows, there are diverse forms of harmful speech that requires countering. Therefore, our findings highlight the importance of further investigation into contextual differences in countering hate speech.
|
| 268 |
+
|
| 269 |
+
# Limitations & Ethical Considerations
|
| 270 |
+
|
| 271 |
+
While we attempt a comprehensive understanding of countering strategies through user study and analysis of human and machine-generated counterspeech, we face several limitations as well as unanswered ethical considerations, which are discussed below.
|
| 272 |
+
|
| 273 |
+
Human Judgement Variations in Counterstatements Despite our efforts at creating and
|
| 274 |
+
|
| 275 |
+
evaluating a diverse set of stereotypes and counterstatements with human evaluators, there are still variations in human judgement that we need further investigation. We also only test relatively short counter-statements and limited variations in how the strategies are presented. Therefore, it would be an important step in future works to understand these human variations and account for diversity in both counter-statements and participant pool.
|
| 276 |
+
|
| 277 |
+
Human Strategy Evaluation Instructions To intrinsically motivate and empower annotators, which can increase annotation quality (August et al., 2018), we instructed annotators to select the most convincing statement as a "content moderator". However, this framing could limit the context of convincingness of counter-statements to one group of users whose values and decisions can sometimes disagree with the community members (Weld et al., 2022). Therefore, future works should expand this framing and perform experiments under multiple contexts with varying audiences and intentions, especially focusing on counterspeaker motivations (Buerger, 2022), to understand how these variations interact with strategy effects and preferences.
|
| 278 |
+
|
| 279 |
+
Limitations in Strategy Labeling While we explored different prompts and settings for strategy labeling to improve performance, we did not explore different methods or models. We have also made an effort to create high quality annotations among the authors but were only able to annotate a total of 200 samples across two datasets. This points to a possible further direction into investigating strategy labeling and extraction methods.
|
| 280 |
+
|
| 281 |
+
Limitations in Counterspeech Generation In this work, we only explore two LLMs for counterspeech generation: GPT-4, a closed model which we have limited information about, and Alpaca. Especially with GPT-4, our lack of understanding of training data and procedure leads to unanswered questions about the results shown in this work. We also used naive prompting where we ask the model to "help respond" to the original post to simulate a non-expert interaction with these models. Therefore, future work should explore different settings and prompts including various definitions of counterspeech and countering strategies to improve counterspeech generation.
|
| 282 |
+
|
| 283 |
+
Limited Definition of Harm While counterspeech avoids censoring, it can still have some biases and backfiring effects (Lasser et al., 2023). Additionally, due to differences in perceptions of toxicity (Sap et al., 2022), deciding which posts to respond to could introduce biases, and excessive machine responses could limit conversations. Therefore, future works should strive to understand when these systems should be used to generate counterspeech and how they should be integrated into applications.
|
| 284 |
+
|
| 285 |
+
Machine-generated Persuasive Content Automatic language generation systems have a potential to affect the way users think (Jakesch et al., 2023). Since our main research question asks strategies to persuade readers against harmful beliefs, there is a greater risk of it being used in unintended applications to do the opposite. Additionally, automatically generated counterspeech can be incorrect and therefore can spread false information especially about social groups. Considering these risks, it is important to also investigate into systems and regulations that can protect stakeholders from dangers of malfunctioning or misused systems (Crawford, 2021).
|
| 286 |
+
|
| 287 |
+
# References
|
| 288 |
+
|
| 289 |
+
Emily Allaway, Nina Taneja, Sarah-Jane Leslie, and Maarten Sap. 2023. Towards countering essentialism through social bias reasoning.
|
| 290 |
+
Tal August, Nigini Oliveira, Chenhao Tan, Noah Smith, and Katharina Reinecke. 2018. Framing effects: Choice of slogans used to advertise online experiments can boost recruitment and lead to sample biases. Proc. ACM Hum.-Comput. Interact., 2(CSCW).
|
| 291 |
+
Michael Baggs. 2021. Online hate speech rose $20\%$ during pandemic: 'we've normalised it'. BBC.
|
| 292 |
+
Susan Benesch, Derek Ruths, Haji Mohammad Saleem, Kelly P. Dillon, and Lucas Wright. 2016. Considerations for Successful Counterspeech.
|
| 293 |
+
Leonard Berkowitz. 1984. Advances in experimental social psychology. Academic Press.
|
| 294 |
+
George Berry and Sean J. Taylor. 2017. Discussion quality diffuses in the digital public square. In Proceedings of the 26th International Conference on World Wide Web, WWW '17, page 1371-1380, Republic and Canton of Geneva, CHE. International World Wide Web Conferences Steering Committee.
|
| 295 |
+
Camiel J. Beukeboom and Christian Burgers. 2019. How Stereotypes Become Shared Knowledge: An Integrative Review on the Role of Biased Language
|
| 296 |
+
|
| 297 |
+
Use in Communication about Categorized Individuals. Review of Communication Research, 7:1-37.
|
| 298 |
+
Helena Bonaldi, Sara Dellantonio, Serra Sinem Tekiroglu, and Marco Guerini. 2022. Human-machine collaboration approaches to build a dialogue dataset for hate speech countering. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8031-8049, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 299 |
+
Catherine Buerger. 2021a. Counterspeech: A Literature Review.
|
| 300 |
+
Catherine Buerger. 2021b. Speech as a Driver of Intergroup Violence: A Literature Review.
|
| 301 |
+
Catherine Buerger. 2022. Why They Do It: Counterspeech Theories of Change.
|
| 302 |
+
Vasile Cernat. 2011. Extended Contact Effects: Is Exposure to Positive Outgroup Exemplars Sufficient or Is Interaction With Ingroup Members Necessary? The Journal of Social Psychology, 151(6):737-753.
|
| 303 |
+
S Cheryan and G V Bodenhausen. 2000. When positive stereotypes threaten intellectual performance: the psychological hazards of "model minority" status. Psychological science, 11(5):399-402.
|
| 304 |
+
Yi-Ling Chung, Elizaveta Kuzmenko, Serra Sinem Tekiroglu, and Marco Guerini. 2019. CONAN - COUNTER NArratives through nichesourcing: a multilingual dataset of responses to fight online hate speech. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 2819-2829, Florence, Italy. Association for Computational Linguistics.
|
| 305 |
+
Andrei Cimpian, Amanda C. Brandone, and Susan A. Gelman. 2010. Generic statements require little evidence for acceptance but have powerful implications. Cognitive Science, 34(8):1452-1482.
|
| 306 |
+
Kate Crawford. 2021. The Atlas of AI: Power, Politics, and the Planetary Costs of Artificial Intelligence. Yale University Press.
|
| 307 |
+
Margherita Fanton, Helena Bonaldi, Serra Sinem Tekiroglu, and Marco Guerini. 2021. Human-in-the-Loop for Data Collection: A Multi-Target Counter Narrative Dataset to Fight Online Hate Speech. 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 3226-3240. Association for Computational Linguistics.
|
| 308 |
+
Eimear Finnegan, Jane Oakhill, and Alan Garnham. 2015. Counter-stereotypical pictures as a strategy for overcoming spontaneous gender stereotypes. Frontiers in Psychology, 6.
|
| 309 |
+
Susan Fiske. 1998. Stereotyping, prejudice, and discrimination. The handbook of social psychology, 1.
|
| 310 |
+
|
| 311 |
+
Emily Foster-Hanson, Sarah-Jane Leslie, and Marjorie Rhodes. 2022. Speaking of kinds: How correcting generic statements can shape children's concepts. Cognitive Science, 46(12):e13223.
|
| 312 |
+
Kathleen C. Fraser, Isar Nejadgholi, and Svetlana Kiritchenko. 2021. Understanding and countering stereotypes: A computational approach to the stereotype content model. 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 600-616, Online. Association for Computational Linguistics.
|
| 313 |
+
Dennis Friess, Marc Ziegele, and Dominique Heinbach. 2021. Collective Civic Moderation for Deliberation? Exploring the Links between Citizens' Organized Engagement in Comment Sections and the Deliberative Quality of Online Discussions. Political Communication, 38(5):624-646.
|
| 314 |
+
Joshua Garland, Keyan Ghazi-Zahedi, Jean-Gabriel Young, Laurent Hébert-Dufresne, and Mirta Galesic. 2020. Countering hate on social media: Large scale classification of hate and counter speech. In Proceedings of the Fourth Workshop on Online Abuse and Harms, pages 102-112, Online. Association for Computational Linguistics.
|
| 315 |
+
Soo-Hye Han, LeAnn M. Brazeal, and Natalie Pennington. 2018. Is Civility Contagious? Examining the Impact of Modeling in Online Political Discussions. Social Media + Society, 4(3):2056305118793404.
|
| 316 |
+
Dominik Hangartner, Gloria Gennaro, Sary Alasiri, Nicholas Bahrich, Alexandra Bornhoft, Joseph Boucher, Buket Buse Demirci, Laurenz Derksen, Aldo Hall, Matthias Jochum, Maria Murias Munoz, Marc Richter, Franziska Vogel, Salomé Wittwer, Felix Wüthrich, Fabrizio Gilardi, and Karsten Donnay. 2021. Empathy-based counterspeech can reduce racist hate speech in a social media field experiment. Proceedings of the National Academy of Sciences, 118(50):e2116310118.
|
| 317 |
+
Maurice Jakesch, Advait Bhat, Daniel Buschek, Lior Zalmanson, and Mor Naaman. 2023. Co-writing with opinionated language models affects users' views. In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, CHI '23, New York, NY, USA. Association for Computing Machinery.
|
| 318 |
+
Jana Lasser, Alina Herderich, Joshua Garland, Segun Taofeek Aroyehun, David Garcia, and Mirta Galesic. 2023. Collective moderation of hate, toxicity, and extremity in online discussions.
|
| 319 |
+
Kalev Leetaru. 2019. Online toxicity is as old as the web itself but the return to communities may help. Forbes Magazine.
|
| 320 |
+
Maxime Charles Lepoutre. 2019. Can 'More Speech' Counter Ignorant Speech? Tackling the Stickiness of Verbal Ignorance. Journal of Ethics and Social Philosophy, 16(3).
|
| 321 |
+
|
| 322 |
+
Sarah-Jane Leslie. 2008. Generics: Cognition and acquisition. Philosophical Review, 117(1).
|
| 323 |
+
Sarah-Jane Leslie. 2014. Carving up the social world with generics. Oxford studies in experimental philosophy, 1.
|
| 324 |
+
Sarah-Jane Leslie. 2017. The Original Sin of Cognition: Fear, Prejudice, and Generalization. The Journal of Philosophy, 114(8):393-421.
|
| 325 |
+
Stephan Lewandowsky, Ullrich K. H. Ecker, Colleen M. Seifert, Norbert Schwarz, and John Cook. 2012. Misinformation and its correction: Continued influence and successful debiasing. Psychological Science in the Public Interest, 13(3):106-131. PMID: 26173286.
|
| 326 |
+
C. Neil Macrae and Galen V. Bodenhausen. 2000. Social cognition: Thinking categorically about others. Annual Review of Psychology, 51(1):93-120. PMID: 10751966.
|
| 327 |
+
Binny Mathew, Punyajoy Saha, Hardik Tharad, Subham Rajgaria, Prajwal Singhania, Suman Kalyan Maity, Pawan Goyal, and Animesh Mukherjee. 2019. Thou shalt not hate: Countering online hate speech. ICWSM, 13:369-380.
|
| 328 |
+
Sarah Myers West. 2018. Censored, suspended, shadow-banned: User interpretations of content moderation on social media platforms. New Media & Society, 20(11):4366-4383.
|
| 329 |
+
OpenAI. 2023. Gpt-4 technical report.
|
| 330 |
+
Sara Parker and Derek Ruths. 2023. Is hate speech detection the solution the world wants? Proceedings of the National Academy of Sciences, 120(10):e2209384120.
|
| 331 |
+
Javiera Perez Gomez. 2021. Verbal Microaggressions as Hyper-implicatures*. Journal of Political Philosophy, 29(3):375–403.
|
| 332 |
+
Ethan Porter and Thomas J. Wood. 2021. The global effectiveness of fact-checking: Evidence from simultaneous experiments in Argentina, Nigeria, South Africa, and the United Kingdom. Proceedings of the National Academy of Sciences, 118(37):e2104235118.
|
| 333 |
+
Francesca Prati, Richard J. Crisp, Rose Meleady, and Monica Rubini. 2016. Humanizing Outgroups Through Multiple Categorization: The Roles of Individuation and Threat. *Personality and Social Psychology Bulletin*, 42(4):526-539.
|
| 334 |
+
Jing Qian, Anna Bethke, Yinyin Liu, Elizabeth Belding, and William Yang Wang. 2019. A benchmark dataset for learning to intervene in online hate speech. 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 4755-4764, Hong Kong, China. Association for Computational Linguistics.
|
| 335 |
+
|
| 336 |
+
Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks.
|
| 337 |
+
Marjorie Rhodes, Sarah-Jane Leslie, and Christina M. Tworek. 2012. Cultural transmission of social essentialism. Proceedings of the National Academy of Sciences, 109(34):13526-13531.
|
| 338 |
+
Robert Rooij and Katrin Schulz. 2020. Generics and typicality: A bounded rationality approach. Linguistics and Philosophy, 43(1):83-117.
|
| 339 |
+
Paul Röttger, Bertie Vidgen, Dirk Hovy, and Janet B Pierrehumbert. 2022. Two contrasting data annotation paradigms for subjective NLP tasks. In *NAACL*.
|
| 340 |
+
Punyajoy Saha, Kanishk Singh, Adarsh Kumar, Binny Mathew, and Animesh Mukherjee. 2022. Counteredi: A controllable approach to generate polite, detoxified and emotional counterspeech. In Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI-22, pages 5157-5163. International Joint Conferences on Artificial Intelligence Organization. AI for Good.
|
| 341 |
+
Maarten Sap, Dallas Card, Saadia Gabriel, Yejin Choi, and Noah A Smith. 2019. The risk of racial bias in hate speech detection. In ACL.
|
| 342 |
+
Maarten Sap, Saadia Gabriel, Lianhui Qin, Dan Jurafsky, Noah A Smith, and Yejin Choi. 2020. Social bias frames: Reasoning about social and power implications of language. In ACL.
|
| 343 |
+
Maarten Sap, Swabha Swayamdipta, Laura Vianna, Xuhui Zhou, Yejin Choi, and Noah A. Smith. 2022. Annotators with attitudes: How annotator beliefs and identities bias toxic language detection. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5884-5906, Seattle, United States. Association for Computational Linguistics.
|
| 344 |
+
Marten Scheffer, Denny Borsboom, Sander Nieuwenhuis, and Frances Westley. 2022. Belief traps: Tackling the inertia of harmful beliefs. Proceedings of the National Academy of Sciences, 119(32):e2203149119.
|
| 345 |
+
Chenhao Tan, Vlad Niculae, Cristian Danescu-Niculescu-Mizil, and Lillian Lee. 2016. Winning Arguments: Interaction Dynamics and Persuasion Strategies in Good-faith Online Discussions. In Proceedings of the 25th International Conference on World Wide Web, pages 613-624. International World Wide Web Conferences Steering Committee.
|
| 346 |
+
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.
|
| 347 |
+
|
| 348 |
+
Nadya Vasilyeva and Tania Lombrozo. 2020. Structural thinking about social categories: Evidence from formal explanations, generics, and generalization. Cognition, 204:104383.
|
| 349 |
+
Galen Weld, Amy X. Zhang, and Tim Althoff. 2022. What makes online communities 'better'? measuring values, consensus, and conflict across thousands of subreddits. Proceedings of the International AAAI Conference on Web and Social Media, 16(1):1121-1132.
|
| 350 |
+
Xinchen Yu, Eduardo Blanco, and Lingzi Hong. 2022. Hate Speech and Counter Speech Detection: Conversational Context Does Matter. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5918-5930. Association for Computational Linguistics.
|
| 351 |
+
Wanzheng Zhu and Suma Bhat. 2021. Generate, prune, select: A pipeline for counterspeech generation against online hate speech. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 134-149, Online. Association for Computational Linguistics.
|
| 352 |
+
Caleb Ziems, William Held, Omar Shaikh, Jiaao Chen, Zhehao Zhang, and Diyi Yang. 2023. Can large language models transform computational social science?
|
| 353 |
+
|
| 354 |
+
# A Dataset Details
|
| 355 |
+
|
| 356 |
+
Below sections describe the datasets used in the experiments in detail.
|
| 357 |
+
|
| 358 |
+
# A.1 Multitarget-CONAN (MTCONAN)
|
| 359 |
+
|
| 360 |
+
Starting with a seed dataset of human generated hate speech and counterspeech pairs $(N = 880)$ from NGO workers, Fanton et al. (2021) generate a total of 5,003 hate speech and counterspeech pairs using human-in-the-loop methods. In particular, they used a machine author and human reviewer paradigm where data was generated iteratively using edits made by NGO workers.
|
| 361 |
+
|
| 362 |
+
# A.2 Change My View (CMV)
|
| 363 |
+
|
| 364 |
+
The CMV community on Reddit is "dedicated to civil discourse" and utilizes the delta system to explicitly mark view-changing posts. When a comment changes a user's view, either the original poster or other community members can respond with a "Δ" symbol, marking the comment as persuasive. This unique interaction among community members highlights the persuasiveness of various countering strategies and offers valuable insights into their usage and impact on readers.
|
| 365 |
+
|
| 366 |
+

|
| 367 |
+
Figure 7: The most convincing strategies by stereotypes.
|
| 368 |
+
|
| 369 |
+
(a) Winning Argument Corpus The Winning Argument Corpus is a dataset of delta and non-delta awarded threads. For each Reddit thread, we consider only the root comment (i.e., direct replies to the original post) to evaluate the arguments used for countering the original post, rather than subsequent interactions. The corpus covers data collected from 2013 to 2015, and to supplement this dataset, we gather additional comments from 2016 to 2022.
|
| 370 |
+
|
| 371 |
+
(b) Additional Reddit Data To select the most relevant subset of the scraped data (2016-2022)<sup>9</sup>, we follow these steps:
|
| 372 |
+
|
| 373 |
+
1. Extract posts (longer than 50 words) with demographic-related words in the title<sup>10</sup>, similar to Tan et al.
|
| 374 |
+
2. For these posts, retrieve only the (root, $\Delta$ -comment) pairs, where a delta has been awarded to the comment<sup>11</sup>.
|
| 375 |
+
3. Augment this subset with (root, non- $\Delta$ comment) pairs, where non- $\Delta$ comments are direct replies to the root post that did not receive a delta. For each root post, we select a non- $\Delta$ comment based on the highest sentence-BERT similarity (Reimers and Gurevych, 2019) and at least $30\%$ word count overlap with the $\Delta$ comment.
|
| 376 |
+
|
| 377 |
+
Finally, we result in a dataset (referred to as CMV) of 5,191 comments across the Winning Argument Corpus (Tan et al., 2016) and the additionally scraped Reddit data.
|
| 378 |
+
|
| 379 |
+
# B Implied Stereotype Extraction
|
| 380 |
+
|
| 381 |
+
Our goal is to label posts from both the MTCO-NAN and CMV datasets with the following information: (1) whether the post is harmful towards
|
| 382 |
+
|
| 383 |
+
a demographic group (harmful_to_group), (2) if harmful_to_group, which demographic group the post is targeting (target_group), and (3) if harmful_to_group, the stereotypes implied by the post in the form of a generic.
|
| 384 |
+
|
| 385 |
+
Based on evidence of its labeling abilities (Ziems et al., 2023), we prompt GPT-4 with 3 example posts (two harmful and one non-harmful) to generate these annotations. Following this, we annotate the hate speech posts from the MTCONAN dataset and the titles from the CMV dataset.[12] The results were then validated by three human expert-annotators and the percentage of those marked correct were $99.0\%$ , $98.5\%$ , and $98.5\%$ for harmful_to_group, target_group, and the generated generics respectively. The detailed settings and prompts are listed in the following sections.
|
| 386 |
+
|
| 387 |
+
# B.1 GPT-4 Stereotype Extraction Settings
|
| 388 |
+
|
| 389 |
+
We use the following setting for stereotype extraction mentioned above: max_tokens $= 256$ tempearture $= 0.7$ and top_p $= 1$
|
| 390 |
+
|
| 391 |
+
We also use the following system message "You are evaluating and analyzing posts found online on whether they contain hate and how they express potentially harmful beliefs. Give all answers in JSON format." and the user message shown below filled with the original post.
|
| 392 |
+
|
| 393 |
+
User message: "Is the following post harmful towards a demographic group? If so, which groups is the post targeting? Give the implication of the statement in a generic format (e.g., fat folks don't exercise, women are shallow, asian folks can't drive).\n\n"{}"\n\nGive an answer in the following format: {"is_hate_speech": bool, "harmful_to_group": bool, "target_group": str, "implied.Generic": str}
|
| 394 |
+
|
| 395 |
+
Few-shot Examples We use the following posts as few-shot examples along with the correct labels:
|
| 396 |
+
|
| 397 |
+
- "CMV: Black people are biologically more prone to violence."
|
| 398 |
+
- "Did you hear the one about the Jewish philanthropist? Me neither."
|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
Figure 8: Non-delta comments and machine-generated counterspeech comparisons of strategy usage annotated with independent $t$ -test $P$ values. The legends indicate ns ( $p < 1.00$ ), ** ( $p < .01$ ), and **** ( $p < .0001$ ). Error bars indicate standard error.
|
| 402 |
+
|
| 403 |
+
- "Why? So you can get angry and pretend that all women make false rape claims and having sex with a woman is the biggest risk in the history of mankind?"
|
| 404 |
+
|
| 405 |
+
The fist two examples are used as harmful posts and the last example is used as a non-harmful post.
|
| 406 |
+
|
| 407 |
+
# C Extended Analysis
|
| 408 |
+
|
| 409 |
+
In addition to our analysis in §6, here we provide a comparison of strategy usage between non-persuasive comments and machine-generated counterspeech and a qualitative analysis of human and machine-generated counterspeech.
|
| 410 |
+
|
| 411 |
+
# C.1 CMV: Non-persuasive Comments vs Machine-generated Counterstatements
|
| 412 |
+
|
| 413 |
+
As seen in Figure 8, machine-generated counter-speech shows similar discrepancies mentioned earlier in §6.2. Compared to persuasive (Δ) comments, non-persuasive (non-Δ) comments used more GEN-DEN, but still, GPT-4 used the strategy more significantly than humans whereas Alpaca used it slightly less. CNTR-EXS was used significantly less for both Alpaca and GPT-4.
|
| 414 |
+
|
| 415 |
+
# C.2 Qualitative Analysis
|
| 416 |
+
|
| 417 |
+
In Table 4 we show one example of a harmful post from our Reddit dataset. The original post, which claims that "gay men are incapable of a committed relationship", and its implication that, "gay men are promiscuous", is countered by community members with counter examples. However, GPT-4's
|
| 418 |
+
|
| 419 |
+
repsonse is characterized by longer and frequent denouncing statements and lack of countering examples. Moreover, the broadening method used and labelled by GPT-4 does not actually counter the implication but rather sets the tone (e.g., "let's promote understanding [...] for everyone's individual choices").
|
| 420 |
+
|
| 421 |
+
Across a number of samples, we observe some common patterns in the usage of countering strategies. First, GEN-DEN has higher occurrence in the beginning or end of the countering posts and is often supplemented with CNTR-EXS or EXTERNAL descriptions as supporting evidence. Additionally, many CNTR-EXS are from first person experiences (e.g., "my gay friends") or the use of second person pronouns (e.g., "you'd get made fun of"). These observations point to future directions in generating counterstatements, including tone setting and directly addressing the reader.
|
| 422 |
+
|
| 423 |
+
# D GPT-4 Generation Settings & Prompts
|
| 424 |
+
|
| 425 |
+
For all generation, we set max_tokens to 256 and use tempearture $= 0.7$ , and top_p = 1.
|
| 426 |
+
|
| 427 |
+
# D.1 Counterspeech Generation
|
| 428 |
+
|
| 429 |
+
We provide the following system message to GPT-4: "You are helping people respond to harmful posts online. Reply directly to the post." along with the following user message where we {post} is replaced with the original post.
|
| 430 |
+
|
| 431 |
+
User message: "How should I respond to a post that says: "\{post\}?"
|
| 432 |
+
|
| 433 |
+
# D.2 Strategy Labeling
|
| 434 |
+
|
| 435 |
+
We use the following system message: "You are analyzing countering strategies used in counter arguments of stereotypes expressed as generics. Give all answers in a JSON format." along with user message and few-shot examples that differ by strategy.
|
| 436 |
+
|
| 437 |
+
The prompts are shown in Table 5. We fill each prompt with counterspeech and implication. Moreover, we use the examples shown in Table 6 and their respective labeling as few shot examples to the model. We use two examples for each strategy labeling task.
|
| 438 |
+
|
| 439 |
+
# E Alpaca Generation Setting & Prompts
|
| 440 |
+
|
| 441 |
+
For counterspeech generation, we used alpaca-7b model from huggingface
|
| 442 |
+
|
| 443 |
+
Title: Gay men are incapable of a committed loving, monogamous relationship. CMV
|
| 444 |
+
|
| 445 |
+
Implied Stereotype: Gay men cannot have committed, loving, monogamous relationships
|
| 446 |
+
|
| 447 |
+
Post: This is from my personal anecdotal experiences. There are exceptions, but $98\%$ of gay men prefer a lifestyle of casual, multiple sexual relationships. A partial cause of this is the trauma of being marginalized and demonized by society; but given the choice and freedom to choose, a gay man will overwhelmingly choose a lifestyle of multiple partners over a monogamous committed relationship. I support gay marriage, but our portrayal of a gay family unit is a rarity from what is actually happening, statistically
|
| 448 |
+
|
| 449 |
+
$\Delta$ I'll just chime in on a similar note to others. If you're view is based on anecdotal experience, you should be swayed by the anecdotal experiences of others. I've met lots of gay people, but most of them I honestly don't know what their sexual lifestyle is. But the two close gay friends I have are *both* in long-term monogamous relationships. Meanwhile, I know lots of heterosexual friends who at least at this point in their lives seem entirely disinterested in a long term monogamous relationship. So my experiences seem to refute your position.\n\n
|
| 450 |
+
|
| 451 |
+
Of course my evidence is only anecdotal, but I am gay and have been in a committed monogamous relationship for 17 years. That is the longest term relationship in my family, including immediate family who have all been married at least there times. I am also part of several gay themes meetups and am,active in several gay organizations, in all instances, majority of men are partnered and most of those relationships are a decade if not decades long.\nAlso, of course you admitted this. It is wildly unfair to judge gay people by criteria that they are not permitted to engage in, namely marriage.
|
| 452 |
+
|
| 453 |
+
While I understand that you're sharing your personal anecdotal experiences, it's important not to generalize the experiences and preferences of an entire group based on individual cases. The preferences and choices of individuals within the LGBTQ+ community are as diverse as those in any other community. It's crucial to recognize that people's choices and lifestyles are influenced by various factors, and it's not fair to assume that one's sexual orientation is the primary determinant of their relationship preferences. Moreover, using a percentage like "98%" without any supporting data or research can be misleading and perpetuate harmful stereotypes. It's essential to remember that people's choices and preferences are personal and should not be used to judge or define an entire community. Instead, let's promote understanding, acceptance, and respect for everyone's individual choices and lifestyles, irrespective of their sexual orientation.
|
| 454 |
+
|
| 455 |
+
Table 4: Examples of responses for comparison where $\Delta$ denotes delta awarded comment, $\nabla$ denotes non-delta comment, and $\square$ denotes GPT-4 generated counterspeech. Highlights were added to example quotes chosen by GPT-4 during each counter strategy labeling task.
|
| 456 |
+
|
| 457 |
+
chavinlo/alpaca-native with max_new_token set to 512.
|
| 458 |
+
|
| 459 |
+
We used the following prompt template where $\{\mathrm{input}\}$ is replaced by the post.
|
| 460 |
+
|
| 461 |
+
Prompt: “Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
|
| 462 |
+
|
| 463 |
+
Instruction:
|
| 464 |
+
|
| 465 |
+
You are helping people respond to harmful posts online. Generate a response to the following input.
|
| 466 |
+
|
| 467 |
+
Input:
|
| 468 |
+
|
| 469 |
+
{input}
|
| 470 |
+
|
| 471 |
+
## Response:
|
| 472 |
+
|
| 473 |
+
# F Strategy Labeling Error Analysis
|
| 474 |
+
|
| 475 |
+
An example of a post with its predictions and labels are shown in Table 7. Our research team labelled 1
|
| 476 |
+
|
| 477 |
+
for strategy ALT-GRP since the comment mentions another group "an amputee"; however, GPT-4 did not label this strategy as present.
|
| 478 |
+
|
| 479 |
+
Moreover, the commenter provides an EXTER- NAL reason for misunderstanding of the original poster by pointing out that "it's typically not so much the malefemale roles they're refuting, but that the way their brain sees their body." This strategy, however, was also predicted to be not present by GPT-4. Such errors highlight the difficulty of the task and model shortcomings.
|
| 480 |
+
|
| 481 |
+
# G User Study Details
|
| 482 |
+
|
| 483 |
+
We use the following settings for user study experiment in $\S 4$
|
| 484 |
+
|
| 485 |
+
# G.1 Qualification Process & Attention Check
|
| 486 |
+
|
| 487 |
+
The qualification process included three questions:
|
| 488 |
+
|
| 489 |
+
1. Humans are mammals.
|
| 490 |
+
|
| 491 |
+
How true do you think is the above statement?
|
| 492 |
+
|
| 493 |
+
2. People are right handed.
|
| 494 |
+
|
| 495 |
+
What percentage of people do you think are right handed?
|
| 496 |
+
|
| 497 |
+
<table><tr><td>Strategy</td><td>User Message</td></tr><tr><td>ALT-GRP</td><td>Alternate groups are used to challenge generic stereotypes (e.g., women are emotional) and emphasize the presence of various other groups that share similar characteristics (e.g., men can also be emotional). Does the following post include alternate groups to counter the statement that {implied stereotype}?\n\nPost:{counterspeech}\n\n{"alt_groups": bool, "alt_groups_quotes": [str]}</td></tr><tr><td>ALT-QUAL</td><td>Alternate qualities are used to challenge stereotypical generic statements (e.g., feminists hate men) by presenting additional qualities that emphasize more positive or accurate characteristics (e.g., feminists are inclusive, respectful, and supportive of equality for both men and women). Does the following post include alternate qualities to counter the statement that {implied stereotype}?\n\nPost:{counterspeech}\n\n{"altqualities": bool, "altqualities_quotes": [str]}</td></tr><tr><td>CNTR-EXS</td><td>Counter examples challenge stereotypical generic statements (e.g., women are domestic) by highlighting the existence of numerous instances that contradict such statements (e.g., many women are very career-driven such as women in the medical field, women CEOs, and women professors). Does the following post include counter examples to counter the statement that {implied stereotype}?\n\nPost:{counterspeech}\n\n{"counterexamples": bool, "counterexamples quotes": [str]}</td></tr><tr><td>EXTERNAL</td><td>External justifications are used to refute stereotypical generic statements (e.g., fat individuals don't engage in exercise) by highlighting external factors that have contributed to the perpetuation of such stereotypes (e.g., media portrayals and beauty standards have reinforced this stereotype, despite the fact that fat individuals do exercise). Does the following post include external reasons to counter the statement that {implied stereotype}?\n\nPost:{counterspeech}\n\n{"external": bool, "external quotes": [str]}</td></tr><tr><td>BROAD</td><td>Broadening is used to counter stereotypical generic statements (e.g., women are shallow) by questioning the boundaries imposed on the group to demonstrate either the multitude of variations within the group that render the boundary meaningless or the shared characteristics among all humans (e.g., women are complex individuals like everyone else, and some may be shallow but that cannot be generalized to all women). Does the following post use broadening to counter the statement that {implied stereotype}?\n\nPost:{counterspeech}\n\n{"broadening": bool, "broadening_quotes": [str]}</td></tr><tr><td>GEN-DEN</td><td>General denouncing is used to challenge stereotypical generic statements (e.g., feminists hate men) by showing broad disapproval (e.g., this is an unnecessary and hurtful generalization about feminists). Does the following post use general denouncing to counter the statement that {implied stereotype}?\n\nPost:{counterspeech}\n\n{"general-denouncing": bool, "general-denouncing_quotes": [str]}</td></tr></table>
|
| 498 |
+
|
| 499 |
+
Table 5: Prompts used for strategy labeling. We fill {implied stereotype} and {counterspeech} with respective values.
|
| 500 |
+
|
| 501 |
+
# 3. Penguins can't fly.
|
| 502 |
+
|
| 503 |
+
What percentage of penguins do you think can't fly?
|
| 504 |
+
|
| 505 |
+
The workers answer using a slider with percentage ranging 0 to 100 or 11 point likert scale. We accept the answer to correct for each question if they answer 1) 10, 2) greater than or equal to $50\%$ , and 3) 10. We consider a worker qualified if they score 3 on this task. The workers were paid 0.22 USD for the qualification task. We had 110 participants out of which 95 passed both attention check and choosing different options for most convincing and second most convincing option.
|
| 506 |
+
|
| 507 |
+
# G.2 Task Instructions
|
| 508 |
+
|
| 509 |
+
In our task instructions, we asked participants to choose the counter-statement that they found most effective in countering the stereotype.
|
| 510 |
+
|
| 511 |
+
The exact wording in the instruction was the following: "Pretend you are playing the role of an online content moderator and fact-checker, where your job is to provide counter-statements or corrections when people say things that are stereotypical, generalizations, or blatant biases against certain demographic groups."
|
| 512 |
+
|
| 513 |
+
Additionally, we provided the following details:
|
| 514 |
+
|
| 515 |
+
- Determine which of the 6 statements is most effective in counteracting the stereotype by selecting one of 6 options.
|
| 516 |
+
Note: please select the counter-statements that you think are best to counter the stereotype. There is no right answer.
|
| 517 |
+
|
| 518 |
+
# G.3 Example UI
|
| 519 |
+
|
| 520 |
+
UI used for human evaluation is shown in Figure 9. We use attention check, which asks the annotator to
|
| 521 |
+
|
| 522 |
+
<table><tr><td>Implication</td><td>counterspeech</td></tr><tr><td>lesbians are butch</td><td>"That stereotype is prevalent cause it's the easiest to see. There are tons of lesbians that do not look butch and you wouldn't know without asking their sexuality. To expand this think of the stereotype of gay feminine men. The bears normally aren't outted because they don't look stereotypical most of the time."</td></tr><tr><td>black folks are violent</td><td>"What should be done with this information?\\n\\nShould police target more black people and put them in jail with less scrutiny? Because that what cops in US already do."
|
| 523 |
+
"I mean you are not taking into account all the things that affect testosterone production. Eg smoking is more prevalent among black people than it is with white people.(Smoking increases testosterone fyi) Also talking about blacks as an ethnic group is fucking idiotic since african people are genetically by far more varied than people of european descent."</td></tr><tr><td>feminists are not willing to acknowledge false accusations and women's capacity for wrongdoing</td><td>"No one is saying women never do anything wrong - you're pretty much completely strawmanning the position. They're saying false accusations are rare and unpunished sexual assault is common. None of this has anything to do with accountability, either."</td></tr></table>
|
| 524 |
+
|
| 525 |
+
Table 6: Counterspeech and implications used for few-shot prompting.
|
| 526 |
+
|
| 527 |
+
<table><tr><td>Implied Generic Comment</td><td colspan="6">“Alternative gender identities are invalid and not to be acknowledged”
|
| 528 |
+
“How do you feel about transgenderism? From people who I’ve spoken to about being transgender, it’s typically not so much the male/female roles they’re refuting, but that the way their brain sees their body and how it ought to feel is different from what it actually is; almost like the way an amputee has phantom limbs, someone who is transgender feels the different parts of their body.”</td></tr><tr><td>Strategies</td><td>ALT-GRP</td><td>ALT-QUAL</td><td>CNTR-EXS</td><td>EXTERNAL</td><td>BROAD</td><td>GEN-DEN</td></tr><tr><td>Predictions</td><td>0</td><td>1</td><td>0</td><td>0</td><td>1</td><td>0</td></tr><tr><td>Labels</td><td>1</td><td>0</td><td>0</td><td>1</td><td>0</td><td>0</td></tr></table>
|
| 529 |
+
|
| 530 |
+
Table 7: An example of a comment from CMV with GPT-4 predictions and labels for each strategy.
|
| 531 |
+
|
| 532 |
+
select the number between 1 to 5 that is randomly populated.
|
| 533 |
+
|
| 534 |
+
# H Demographic Identity Related Words
|
| 535 |
+
|
| 536 |
+
The demographic related words used for data filtering and analysis of countering strategies are shown in Table 8.
|
| 537 |
+
|
| 538 |
+
# Task
|
| 539 |
+
|
| 540 |
+
Statement: $(post)
|
| 541 |
+
|
| 542 |
+
This statement implies the following stereotype: ${stereo}
|
| 543 |
+
|
| 544 |
+
It may not be politically correct to say, but how much do you agree that this stereotype is true?
|
| 545 |
+
|
| 546 |
+
Strongly disagree Somewhat disagree Neither disagree nor agree Somewhat agree Strongly agree
|
| 547 |
+
|
| 548 |
+
# Counter Statements:
|
| 549 |
+
|
| 550 |
+
<table><tr><td>Counter Statement 1:
|
| 551 |
+
${example1}</td></tr><tr><td>Counter Statement 2:
|
| 552 |
+
${example2}</td></tr><tr><td>Counter Statement 3:
|
| 553 |
+
${example3}</td></tr><tr><td>Counter Statement 4:
|
| 554 |
+
${example4}</td></tr><tr><td>Counter Statement 5:
|
| 555 |
+
${example5}</td></tr><tr><td>Counter Statement 6:
|
| 556 |
+
${example6}</td></tr></table>
|
| 557 |
+
|
| 558 |
+
Now choose the most convincing counter-statement out of the previous 6 statements:
|
| 559 |
+
|
| 560 |
+
<table><tr><td>Statement 1: ${example1}</td></tr><tr><td>Statement 2: ${example2}</td></tr><tr><td>Statement 3: ${example3}</td></tr><tr><td>Statement 4: ${example4}</td></tr><tr><td>Statement 5: ${example5}</td></tr><tr><td>Statement 6: ${example6}</td></tr></table>
|
| 561 |
+
|
| 562 |
+
Please select the fourth option from the left, to double check you're doing this task attentively.
|
| 563 |
+
|
| 564 |
+

|
| 565 |
+
Figure 9: UI used for human evaluation in $\S 4$
|
| 566 |
+
|
| 567 |
+
Now choose the second-most convincing counter-statement out of the remaining statements (excluding the one you selected above):
|
| 568 |
+
|
| 569 |
+
<table><tr><td>Statement 1: $(example1)</td></tr><tr><td>Statement 2: $(example2)</td></tr><tr><td>Statement 3: $(example3)</td></tr><tr><td>Statement 4: $(example4)</td></tr><tr><td>Statement 5: $(example5)</td></tr><tr><td>Statement 6: $(example6)</td></tr></table>
|
| 570 |
+
|
| 571 |
+
<table><tr><td>Demographic Dimension</td><td>Terms</td></tr><tr><td>gender identity</td><td>women, men, guys, girls, nonbinary, transgender, cisgender, agender, trans, non-binary, cis, sex, gender</td></tr><tr><td>intersectional</td><td>white men, black women, black men, white women, straight white, queer of color, straight white men, queer white men, queer white women, queer men of color, queer women of color, queer men, queer women, trans of color, cishet white, cisgender heterosexual white, transgender of color, non-disabled white, disabled of color</td></tr><tr><td>sexual orientation</td><td>straight, heterosexual, gay, lesbians, bisexuals, queer, asexual, homosexual, lgbtq, lgbt, monogamous, polyamorous, gay men, lesbian women, butch, bear, femme, feminine</td></tr><tr><td>age</td><td>teenagers, older, millennials, elderly, old, young, middle aged, younger</td></tr><tr><td>race ethnicity</td><td>person of color, people of color, asian americans, asian-americans, asians, asian, african americans, african-americans, black, white-americans, white americans, white, caucasians, hispanic, latinx, latinos, latinas, latin americans, native americans, native, indigenous, native american/first nation, arabs, american indians, alaska native, native hawaiians, pacific islanders</td></tr><tr><td>nationality</td><td>Chinese, Japanese, American, Canadian, Indian, Middle Eastern, European, African, Korean, Mexican, Russian, Cuban, Italian, German, French, Jamaican, Filipino, non-American, foreign, foreigners, Americans</td></tr><tr><td>religion</td><td>buddhists, hindus, christians, jewish, jews, agnostic, muslims, mormons, orthodox, atheists, Taoists, protestants, christian, catholics, sikhs, amish, non-religious, satanists, muslim</td></tr><tr><td>disability</td><td>able-bodied, non-disabled, disabled, paralyzed, vision impaired, blind, hearing impaired, deaf, hard of hearing, differently abled, hearing impairment, a visual impairment, vision impairment, disability, paraplegia, quadriplegia, short, cognitive disability, intellectual disability, learning disability, ADHD, a brain injury, autism, autistic, depression, bipolar disorder, psychosocial disability, a mental health condition, mentally disabled, mental illness, mental disorder</td></tr><tr><td>appearance</td><td>tall, short, fat, thin, slim, overweight, bald, ugly, beautiful, light skinned, dark skinned, attractive, unattractive, obese, obesity</td></tr><tr><td>education</td><td>highly educated, less educated, smart, less smart, dumb, stupid</td></tr><tr><td>personality</td><td>introverts, extroverts</td></tr><tr><td>politics</td><td>democrats, libertarians, liberals, republicans, conservatives, feminists</td></tr><tr><td>socio</td><td>rich, wealthy, poor, homeless, lower class, welfare, middle class, working class, upper class, formerly incarcerated, first generation, immigrants, refugees, US citizens</td></tr><tr><td>country</td><td>China, India, the United States, Indonesia, Pakistan, Brazil, Nigeria, Bangladesh, Russia, Mexico, Japan, Ethiopia, Philippines, Egypt, Vietnam, DR Congo, Turkey, Iran, Germany, Thailand, the United Kingdom, France, Italy, South Africa, Myanmar, Kenya, South Korea, Colombia, Spain, Uganda, Argentina, Algeria, Sudan, Ukraine, Iraq, Afghanistan, Poland, Canada, Morocco, Saudi Arabia, Uzbekistan, Peru, Angola, Malaysia, Mozambique, Ghana, Yemen, Nepal, Venezuela, Madagascar, Cameroon, North Korea, Australia, Belgium, Cuba, Greece, Portugal, Sweden, Austria, Israel, Switzerland, Singapore, Norway, Finland, Denmark, New Zealand, Cambodia, Ethiopian, Arabic, Polish, Italians</td></tr><tr><td>continents</td><td>Africa, Asia, the Middle-East, Europe, North America, Central America, South America, Oceania</td></tr><tr><td>other</td><td>racism, sexism</td></tr></table>
|
| 572 |
+
|
| 573 |
+
Table 8: Demographic dimensions and related terms.
|
2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99411436e8b7fef5a33c1e3e612283410edd38f613cb273e21d1e98ffd489f58
|
| 3 |
+
size 1209261
|
2023/Beyond Denouncing Hate_ Strategies for Countering Implied Biases and Stereotypes in Language/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/beafff83-c9df-49bb-b9ec-7ceed8a9cd94_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/beafff83-c9df-49bb-b9ec-7ceed8a9cd94_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/beafff83-c9df-49bb-b9ec-7ceed8a9cd94_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7f2f94dcef8c614a8abb18c9b5ae5f5f0774eff3aecd89403884239521b673c
|
| 3 |
+
size 3966558
|
2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/full.md
ADDED
|
@@ -0,0 +1,808 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beyond Good Intentions: Reporting the Research Landscape of NLP for Social Good
|
| 2 |
+
|
| 3 |
+
Fernando Gonzalez $^{1,\ast}$ Zhijing Jin $^{1,2,\ast}$ Bernhard Scholkopf $^{1,2}$ Tom Hope $^{4,5}$ Mrimmaya Sachan $^{1,\dagger}$ and Rada Mihalcea $^{3,\dagger}$ $^{1}$ ETH Zürich $^{2}$ MPI for Intelligent Systems $^{3}$ University of Michigan
|
| 4 |
+
$^{4}$ The Hebrew University of Jerusalem $^{5}$ Allen Institute for AI (AI2) {fgonzalez, jinzhi, msachan} @ethz.ch bs@tue.mpg.de tomh@allenai.org mihalcea@umich.edu
|
| 5 |
+
|
| 6 |
+
# Abstract
|
| 7 |
+
|
| 8 |
+
With the recent advances in natural language processing (NLP), a vast number of applications have emerged across various use cases. Among the plethora of NLP applications, many academic researchers are motivated to do work that has a positive social impact, in line with the recent initiatives of NLP for Social Good (NLP4SG). However, it is not always obvious to researchers how their research efforts tackle today's big social problems. Thus, in this paper, we introduce NLP4SGPAPERS, a scientific dataset with three associated tasks that can help identify NLP4SG papers and characterize the NLP4SG landscape by: (1) identifying the papers that address a social problem, (2) mapping them to the corresponding UN Sustainable Development Goals (SDGs), and (3) identifying the task they solve and the methods they use. Using state-of-the-art NLP models, we address each of these tasks and use them on the entire ACL Anthology, resulting in a visualization workspace that gives researchers a comprehensive overview of the field of NLP4SG.
|
| 9 |
+
|
| 10 |
+
# 1 Introduction
|
| 11 |
+
|
| 12 |
+
With the rapid advancement of natural language processing (NLP) technology (Radford et al., 2018; Devlin et al., 2019; Brown et al., 2020; Ouyang et al., 2022), there has been a growing interest in using NLP for applications with social impact in recent years (Wu et al., 2020; de Mello et al., 2019; Jin and Mihalcea, 2023). This effort has been condensed into the initiative of "NLP for Social Good" (NLP4SG) (Jin et al., 2021), which began with an overall theoretical framework
|
| 13 |
+
|
| 14 |
+

|
| 15 |
+
Figure 1: To generate the NLP4SG progress report, we provide a PaperAnalyzer, which identifies social good papers (Task 1), classifies the relevant UN SDGs (Task 2), and analyzes salient scientific terms (Task 3). We process all ACL Anthology papers to create a Sankey diagram (bottom) on our website.
|
| 16 |
+
|
| 17 |
+
(Jin et al., 2021) in 2021, and is reaching broader community impact through various workshops at NLP conferences (Field et al., 2021; Biester et al., 2022).
|
| 18 |
+
|
| 19 |
+
However, most of the efforts so far have consisted of disparate community discussions, opinion pieces, and projects, yet without a unifying community-based insight. This is partly due to a lack of understanding of how NLP research efforts align with social good implications. We argue that it is critical to have community reports
|
| 20 |
+
|
| 21 |
+
based on solid empirical evidence, similar to the United Nations' (UN) annual compilation of the report on Sustainable Development Goals (SDGs) (e.g., United Nations, 2021, 2022). Such progress reports for NLP4SG can help calibrate intuitions with facts and (1) inspire the NLP community to understand how well NLP research address social good; (2) raise awareness of under- or unaddressed areas; (3) serve as a reference for researchers who start in the field when deciding on what topics to take on; and (4) foster better connections between the research community and social science experts, allowing for more impactful research and feedback to improve NLP4SG.
|
| 22 |
+
|
| 23 |
+
To this end, we design a new suite of tasks for analysing NLP4SG papers, spanning from identification of NLP4SG papers, classifying them into SDGs, to identifying the task and methods used in them. We create NLP4SGPAPERS, a scientific dataset of 5,000 papers annotated with the above three tasks, and use the dataset to build an "NLP for NLP" PaperAnalyzer system (Figure 1) that applies the state-of-the-art NLP models to the NLP papers.
|
| 24 |
+
|
| 25 |
+
Using our PaperAnalyzer system, we parse the entire database of 76K ACL Anthology papers, and find the following trends: (1) $13.07\%$ of the papers are related to social good; (2) healthcare and education are popular goals among NLP4SG papers, but goals such as poverty and hunger are largely unaddressed; (3) most common tasks addressed by the community in NLP4SG are machine translation, text classification, and toxicity detection, and although the most common models are large language models (LLMs) (e.g., Radford et al., 2018; Devlin et al., 2019; Liu et al., 2019), these innovations have not been deployed in all tasks.
|
| 26 |
+
|
| 27 |
+
In summary, our contributions are as follows:
|
| 28 |
+
|
| 29 |
+
1. We introduce a suite of novel tasks to analyze NLP4SG papers, and support it with NLP4SGPAPERS, a scientific dataset annotated with 5,000 NLP papers.
|
| 30 |
+
2. We provide our PaperAnalyzer system, which consists of LLM-based models on the three tasks.
|
| 31 |
+
3. We analyze the entire ACL Anthology to understand key trends in NLP4SG from 1980.
|
| 32 |
+
4. We open-source our NLP tools, and build a publicly accessible website to visualize the
|
| 33 |
+
|
| 34 |
+
analysis results, making the progress tracking accessible for anyone interested in NLP4SG.
|
| 35 |
+
|
| 36 |
+
# 2 Goals of the NLP4SG Report
|
| 37 |
+
|
| 38 |
+
We begin by listing the key questions that drive our NLP4SG progress report and the desired properties of a good NLP4SG report, and highlight what purpose the report will serve. Finally, we introduce our proposed NLP-for-NLP pipeline.
|
| 39 |
+
|
| 40 |
+
Key Questions. When envisioning the NLP4SG progress report, we find the following questions crucial to address:
|
| 41 |
+
|
| 42 |
+
Q1 Overall estimate. How large is the proportion of NLP4SG papers among all NLP papers? How does this proportion change over the years?
|
| 43 |
+
Q2 Social good aspects. Among NLP4SG papers, what specific social good aspects do they tend to address?
|
| 44 |
+
Q3 Technical solutions. For each social good goal, how are the papers addressing them? For example, what tasks do people formulate, and what models do people use? Is there an overlooked space?
|
| 45 |
+
|
| 46 |
+
Properties of a Good Progress Report. After settling in the key questions that the report should aim to answer, we propose several criteria for a good automation of the NLP4SG progress report. A good report should (P1) comprehensively address the questions; (P2) base its answers on representative, large data; (P3) require little repetitive manual effort, ideally largely automated; (P4) be transparent and open-sourced so that it is trustworthy; (P5) be reader-friendly for both technical and non-technical audiences; and (P6) be easy to access for all parties, including but not limited to researchers, social good organizations such as NGOs, funding agencies, and the general public.
|
| 47 |
+
|
| 48 |
+
Missions. This report aims to serve several purposes. First, we want to convey an overall positive and encouraging message that there is a growing and diverse community of researchers who are interested in NLP4SG. Second, we want to improve the cohesion of this community, by making the information on the existing research landscape easier to access, so that people can build on each other's research. Third, we aim to inspire more people to develop novel tasks and use
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
Figure 2: Our pipeline to automate the NLP4SG report.
|
| 52 |
+
|
| 53 |
+
cases to fill in the under-addressed social impact areas. Finally, we want to make the current progress transparent and public to all interested parties, especially non-research parties, including organizations such as NGOs working on NLP4SG, decision-makers, and the general public. By doing this, we can better connect the research community with all other related communities, not only to broadcast the impact of NLP4SG to the broader community, but also to help improve NLP research with external feedback, and formulate research questions more aligned with real-world problems.
|
| 54 |
+
|
| 55 |
+
Our Proposed NLP-for-NLP pipeline. We develop an NLP-for-NLP pipeline to automatically analyze papers for the NLP4SG report, as shown in Figure 2. As part of this pipeline, we develop a PaperAnalyzer system consisting of various models trained to answer the three questions (Q1-Q3).
|
| 56 |
+
|
| 57 |
+
The pipeline consists of the following steps: (1) We annotate various datasets that can help us answer the three questions (meeting P1 and P2). (2) We use this data to train and evaluated our PaperAnalyzer models. (3) Next, we run our NLP4SG PaperAnalyzer (which meets P3) on a large repository of NLP papers, and compose a comprehensive NLP4SG progress report, together with an open-source GitHub release of our code (which meets P4) and an interactive interface whose screenshots are in Appendix A (which meets P5 and P6). (4) Finally, we distill some key findings for the NLP community, to pave the way for more cooperative, evidence-guided community efforts to fuel NLP4SG.
|
| 58 |
+
|
| 59 |
+
# 3 NLP4SGPAPERS Dataset
|
| 60 |
+
|
| 61 |
+
We build a NLP4SGPAPERS dataset to address the following three tasks as illustrated in Figure 1:
|
| 62 |
+
|
| 63 |
+
- Task 1: Binary classification of NLP4SG papers (for Q1).
|
| 64 |
+
- Task 2: Multi-label multi-class categorization of NLP4SG papers into the 17 UN SDGs (for Q2).
|
| 65 |
+
- Task 3: Identification of salient scientific terms (tasks and methods) in NLP4SG papers (for Q3).
|
| 66 |
+
|
| 67 |
+
Next, we introduce the data collection process, and then analyze the data statistics for each task.
|
| 68 |
+
|
| 69 |
+
# 3.1 Dataset Collection
|
| 70 |
+
|
| 71 |
+
Data Source and Preprocessing. We identify the ACL Anthology as an ideal data source. We obtain 76,229 papers from ACL Anthology that were published by May 27, 2022. We randomly sample 5,000 papers uniformly over the entire ACL Anthology and parse their titles and abstracts. See Appendices B.1 and B.2 for discussions about the data sources and our data preprocessing details. We split the dataset into 2,500 train samples, 500 development samples, and 2,000 test samples. Statistics of the data are shown in Table 1.
|
| 72 |
+
|
| 73 |
+
Task Formulation. Let us denote our dataset as $D := \{x_i\}_{i=1}^N$ consisting of $N$ papers, each paper $x := (t, a)$ contains a title $t$ and abstract $a$ .
|
| 74 |
+
|
| 75 |
+
Task 1 is a binary classification task $f_{1}:\mathcal{X}\to \mathcal{Y}$ , which maps each paper to a binary label space $\mathcal{Y} = \{0,1\}$ representing whether a paper address a social good task $(y = 1)$ or not $(y = 0)$ .
|
| 76 |
+
|
| 77 |
+
Task 2 is a multi-label multi-class classification task $f_{2}:\mathcal{X}^{\prime}\to \mathcal{Z}$ , which maps NLP4SG papers $\mathcal{X}^{\prime} = \{\pmb {x}|f_{1}(\pmb {x}) = 1,\pmb {x}\in D\}$ to a space $\mathcal{Z}$ , which is the power set of all 17 UN SDGs.
|
| 78 |
+
|
| 79 |
+
In Task 3, we extract the main NLP tasks addressed and methods used in the NLP4SG papers, $f_{3}: \mathcal{X}' \to \mathcal{W}_{\mathrm{t}} \times \mathcal{W}_{\mathrm{m}}$ , where $\mathcal{W}_{\mathrm{t}}$ and $\mathcal{W}_{\mathrm{m}}$ represent the space of the power sets of the main tasks and methods in NLP4SG papers, respectively. Given our desiderata, it is better to make the extracted terms easy to use for summarizing trends in our
|
| 80 |
+
|
| 81 |
+
Sankey diagram (Figure 1). Inspired by the annotation scheme of Papers with Code, we use task names such as "machine translation" and "toxicity detection"; and we use method names such as "BERT-based models," "long short-term memory networks (LSTMs)," and "support vector machines (SVMs)." We provide the detailed list in Appendix B.3.4. This allows us to use Task 3 to provide evidence that can help us answer high-level questions such as what NLP4SG work uses what type of technology, as shown in Figure 1.
|
| 82 |
+
|
| 83 |
+
Data Annotation. The data associated with each task was annotated by two NLP researchers who are proficient in English. We provide detailed annotation guidelines for each task in Appendix B.3. Briefly, the inter-annotator agreements are $92.93\%$ Cohen's kappa for Task 1, $88.67\%$ Cohen's kappa for Task 2, and achieve a high similarity score of $84.63\%$ BERTScore (Zhang et al., 2020) between the annotator's responses for Task 3. We resolved cases of disagreement by first asking them to review potential oversights, and then clarifying the annotation principles for samples that are ambiguous. With these clarifications, the annotators converged to an agreement through re-iteration and discussions.
|
| 84 |
+
|
| 85 |
+
# 3.2 Dataset Characteristics
|
| 86 |
+
|
| 87 |
+
Data Overview for Task 1. We show the overall statistics in Table 1. We can observe that $11.84\%$ of the papers are related to social good (592 papers of our sample of 5000).
|
| 88 |
+
|
| 89 |
+
<table><tr><td></td><td># All Papers</td><td># SG Papers</td><td># Sents</td><td># Tokens</td><td>Vocab</td></tr><tr><td>Total</td><td>5,000</td><td>592 (11.84%)</td><td>40,533</td><td>656,939</td><td>45,088</td></tr><tr><td>Train</td><td>2,500</td><td>284</td><td>20,305</td><td>330,618</td><td>29,274</td></tr><tr><td>Dev</td><td>500</td><td>57</td><td>4,112</td><td>65,705</td><td>10,511</td></tr><tr><td>Test</td><td>2,000</td><td>251</td><td>16,116</td><td>260,616</td><td>24,913</td></tr></table>
|
| 90 |
+
|
| 91 |
+
Table 1: Statistics for Task 1. We show the number of social good-related papers (# SG Papers), along with the general statistics, including the total number of papers (# All Papers), sentences (# Sents), tokens (# Tokens), and vocabulary size (Vocab).
|
| 92 |
+
|
| 93 |
+
Data Overview for Task 2. For Task 2, we first show in Table 2 the distribution of all 17 UN SDGs among all the 592 social good-related papers. The distribution is strongly skewed, with some goals covering the majority of the data. For example,
|
| 94 |
+
|
| 95 |
+
the top three goals - G3 Health (34.12%), G16 Peace (31.93%), and G4 Education (16.22%) - cover a total of 82.27% of the NLP4SG papers. Many goals rarely occur or are even not present in the dataset, such as G1 Poverty and G2 Hunger. This distribution suggests either a lack of attention from the NLP4SG community to some of these UN goals or challenges in addressing these goals through NLP. Additional analyses are presented in Section 5.
|
| 96 |
+
|
| 97 |
+
To enrich the data for low- or zero-occurrence classes, we perform upsampling to increase the number of samples corresponding to all the classes that constitute less than $5\%$ of our dataset. Specifically, we take the unannotated part of the ACL Anthology, run the best model for Task 1 to identify social good papers, and use SDG-specific keywords to obtain highly possible paper candidates for the under-addressed SDGs. Then, we manually check the SDGs that these papers address. By this procedure, we enrich the original data by 167 more papers, which are more distributed over the low- or zero-occurrence classes. Details of the upsampling procedure are in Appendix B.3.3.
|
| 98 |
+
|
| 99 |
+
We report the statistics of the upsampled dataset in Table 2 and more in Appendix B.3.3. Since each paper can correspond to several UN SDGs (on average, 1.10 goals per paper), we plot the heatmap of co-occurrences of the SDGs in Figure 3. As we can see, some of the top correlations are seen between G2 Hunger and G8 Economy, as well as between G5 Gender and G10 Inequalities.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 3: The correlation heatmap of the 17 UN SDGs.
|
| 103 |
+
|
| 104 |
+
<table><tr><td>UN SDG</td><td>Proportion</td><td># Samples
|
| 105 |
+
(Before → After)</td></tr><tr><td>G1. Poverty</td><td>0.00%</td><td>0 → 0</td></tr><tr><td>G2. Hunger</td><td>0.00%</td><td>0 → 4</td></tr><tr><td>G3. Health</td><td>34.12%</td><td>202 → 202</td></tr><tr><td>G4. Education</td><td>16.22%</td><td>96 → 97</td></tr><tr><td>G5. Gender</td><td>3.04%</td><td>18 → 85</td></tr><tr><td>G6. Water</td><td>0.00%</td><td>0 → 1</td></tr><tr><td>G7. Energy</td><td>0.00%</td><td>0 → 0</td></tr><tr><td>G8. Economy</td><td>2.36%</td><td>14 → 58</td></tr><tr><td>G9. Innovation</td><td>13.85%</td><td>82 → 97</td></tr><tr><td>G10. Inequalities</td><td>5.24%</td><td>31 → 32</td></tr><tr><td>G11. Sustainable Cities</td><td>0.84%</td><td>5 → 16</td></tr><tr><td>G12. Consumption</td><td>0.17%</td><td>1 → 1</td></tr><tr><td>G13. Climate</td><td>0.17%</td><td>1 → 20</td></tr><tr><td>G14. Life Below Water</td><td>0.00%</td><td>0 → 2</td></tr><tr><td>G15. Life on Land</td><td>0.00%</td><td>0 → 0</td></tr><tr><td>G16. Peace</td><td>31.93%</td><td>189 → 201</td></tr><tr><td>G17. Partnership</td><td>2.70%</td><td>16 → 21</td></tr></table>
|
| 106 |
+
|
| 107 |
+
Table 2: Statistics of the data for Task 2. We first show the natural proportion of UN SDGs in the dataset, which motivates us to do upsampling. And we show the number of samples before and after upsampling. G1, G7, and G15 remain absent from the dataset even after upsampling.
|
| 108 |
+
|
| 109 |
+
Data Overview for Task 3. Since there has been significant previous work (Jain et al., 2020; Luan et al., 2018) on extracting salient information from scientific literature, we only annotate test data for this task to evaluate existing models in our domain of NLP4SG. On average, the spans of task terms are 3.6 words long, and the spans of method terms have 2.4 words long. Also, each paper has an average of 1.06 tasks and 1.5 methods, and the entire set has a total of 263 unique tasks and 335 unique methods.
|
| 110 |
+
|
| 111 |
+
# 4 NLP4SG PaperAnalyzer
|
| 112 |
+
|
| 113 |
+
Our PaperAnalyzer system works as shown in Figure 1, with three sequential steps: we first train a binary classifier (addressing Task 1), followed by a UN SDG goal classifier (addressing Task 2), and finally processing the paper with a pretrained task and method extractor (addressing Task 3).
|
| 114 |
+
|
| 115 |
+
# 4.1 NLP4SG Binary Classifier
|
| 116 |
+
|
| 117 |
+
Experimental Setup. We adopt several commonly used LLMs on our NLP4SGPAPERS dataset, including BERT (Devlin et al., 2019), RoBERTa (Liu et al., 2019), SciBERT (Beltagy et al., 2019), and InstructGPT (Ouyang et al., 2022) text-davinci-002.
|
| 118 |
+
|
| 119 |
+
We use distant supervision (DS) for data augmentation when finetuning the models. To obtain dis
|
| 120 |
+
|
| 121 |
+
tantly supervised data, we use two methods to identify additional NLP4SG papers from the unannotated set of almost 76K papers. We first apply keyword matching using a list of curated NLP4SG keywords such as "healthcare" and "education", and then we also include papers with high cosine similarity with the textual descriptions of the UN SDGs. See the full list of keywords and details of how we compile the distantly supervised data in Appendix D.1.1, and see our model implementation details in Appendix D.1.2.
|
| 122 |
+
|
| 123 |
+
<table><tr><td></td><td>F1</td><td>Acc</td><td>P</td><td>R</td></tr><tr><td>Random (Proportional)</td><td>6.68</td><td>79.05</td><td>7.61</td><td>5.95</td></tr><tr><td>Random (Uniform)</td><td>15.65</td><td>46.65</td><td>9.77</td><td>39.29</td></tr><tr><td>InstructGPT (Zero-Shot)</td><td>28.83</td><td>80.25</td><td>27.49</td><td>30.30</td></tr><tr><td>InstructGPT (Few-Shot)</td><td>40.72</td><td>86.75</td><td>49.73</td><td>34.47</td></tr><tr><td>BERT</td><td>65.87</td><td>92.90</td><td>83.03</td><td>54.58</td></tr><tr><td>BERT + DS</td><td>73.14</td><td>94.05</td><td>84.38</td><td>64.54</td></tr><tr><td>RoBERTa</td><td>74.89</td><td>94.30</td><td>83.74</td><td>67.73</td></tr><tr><td>RoBERTa + DS</td><td>75.16</td><td>94.35</td><td>83.82</td><td>68.13</td></tr><tr><td>SciBERT</td><td>73.42</td><td>94.10</td><td>84.90</td><td>64.68</td></tr><tr><td>SciBERT + DS</td><td>75.98</td><td>94.15</td><td>78.39</td><td>73.71</td></tr><tr><td colspan="5">Ablation Study</td></tr><tr><td>SciBERT + DS by Similarity</td><td>62.96</td><td>89.35</td><td>55.86</td><td>72.11</td></tr><tr><td>SciBERT + DS by Keyword</td><td>74.68</td><td>94.10</td><td>80.93</td><td>69.32</td></tr></table>
|
| 124 |
+
|
| 125 |
+
Table 3: Model performance on Task 1, including the random baselines, whose distribution are proportional to the label distribution or uniform; as well as common LLMs, with and without our proposed DS technique. We report the F1 score, precision (P), and recall (R) of the positive class, as well as accuracy (Acc). For the best-performing model, SciBERT+DS, we also conducted ablation studies removing the different subsets of our DS data.
|
| 126 |
+
|
| 127 |
+
Results. We show our model performance for the binary classification task in Table 3. The best-performing model is SciBERT+DS, which is enhanced by the addition of our DS technique. DS contributes 2.56 percentage points (pp) improvement over the baseline SciBERT model on fully supervised data only. Moreover, with the ablation study, we show that by using only DS by keyword we get an improvement of $1.26\mathrm{pp}$ on the F1 score. Using only similarity DS does not improve the F1 score, but causes an increase in recall of $7.43\mathrm{pp}$ . Both DS techniques combined help the model to increase the F1 score to $75.98\%$ . We choose the model with the best F1 score because we want to get a precise but also a complete report of the NLP4SG landscape.
|
| 128 |
+
|
| 129 |
+
Interpretability & Error Analysis. To understand the working of our model, we apply a
|
| 130 |
+
|
| 131 |
+
commonly used interpretability tool, the local interpretable model-agnostic explanations (LIME) (Ribeiro et al., 2016) to our best performing model, SciBERT+DS. LIME outputs the words that our model relies on as positive and negative evidence for the classification. Some common positive keywords for our model include "biomedical", "students", and "social", while some negative keywords are "lexical", "Parsing" and "grammar". The details of our LIME implementation and more visualized examples can be found in Appendix E.1.
|
| 132 |
+
|
| 133 |
+
Our model makes a few common error types, including: (1) For false positives (FP), many papers include the common word "social", which appears in $10.10\%$ of the FP papers. We suspect that this is due to the frequent use of "social media", which is not necessarily related to social good, and the fact that "social" is a good indicator of an NLP4SG paper since it appears in $15.03\%$ of the true positive papers. (2) Among false negative (FN) samples, a large subset is innovation and education-related papers, constituting $30.30\%$ and $27.27\%$ respectively among the FN, larger than their proportion $(13.55\%$ and $23.90\%)$ in the entire test set. A reason might be that the frequent use of words like "learning" and scientific vocabulary makes our model struggle identifying a research paper that uses machine learning vs one addressing education topics.
|
| 134 |
+
|
| 135 |
+
# 4.2 UN SDG Goal Classifier
|
| 136 |
+
|
| 137 |
+
Experimental Setup. For Task 2, we evaluate zero-shot models using all the 759 annotated NLP4SG papers as our test set, as it is challenging to train classifiers for 17-class classification with large imbalance that results in several low-occurrence classes. Specifically, we first adopt the pretrained MNLI classifiers, including BART (Lewis et al., 2020), DistilBERT (Sanh et al., 2019), and DeBERTa (He et al., 2021). We also include the InstructGPT model (Ouyang et al., 2022), which we ask to generate a list of relevant SDGs for the paper. More experimental setup details are in Appendix D.2, including the prompts, implementation details for the models, and the evaluation metrics.
|
| 138 |
+
|
| 139 |
+
Results & Error Analysis. We evaluate all models and report their results in Table 4. Among all the models, InstructGPT has the highest perfor
|
| 140 |
+
|
| 141 |
+
mance, scoring $69.37\%$ F1. It also has the highest performance on all other measures, such as partial list match with $74.57\%$ of the samples, and exact list match with $66.66\%$ of the samples.
|
| 142 |
+
|
| 143 |
+
<table><tr><td>Model</td><td>F1</td><td>PM</td><td>EM</td><td>P</td><td>R</td></tr><tr><td>BART</td><td>27.30</td><td>37.55</td><td>10.80</td><td>44.22</td><td>35.65</td></tr><tr><td>DistilBERT</td><td>26.09</td><td>58.23</td><td>3.95</td><td>17.78</td><td>56.66</td></tr><tr><td>DeBERTa</td><td>25.50</td><td>39.13</td><td>11.20</td><td>37.82</td><td>35.89</td></tr><tr><td>InstructGPT</td><td>69.37</td><td>74.57</td><td>66.66</td><td>77.64</td><td>67.95</td></tr></table>
|
| 144 |
+
|
| 145 |
+
Table 4: Model performance on Task 2. We report the weighted F1, percentage of samples whose ground-truth list of goals exactly matches (EM) with the model output, percentage of samples whose ground-truth list of goals partially matches (PM) with the model output, precision (P), and recall (R).
|
| 146 |
+
|
| 147 |
+
<table><tr><td>UN SDG</td><td>F1</td><td>P</td><td>R</td></tr><tr><td>G1. Poverty</td><td>-</td><td>-</td><td>-</td></tr><tr><td>G2. Hunger</td><td>75.00</td><td>75.00</td><td>75.00</td></tr><tr><td>G3. Health</td><td>88.78</td><td>87.50</td><td>90.10</td></tr><tr><td>G4. Education</td><td>73.45</td><td>64.34</td><td>85.57</td></tr><tr><td>G5. Gender</td><td>84.56</td><td>98.44</td><td>74.12</td></tr><tr><td>G6. Water</td><td>100.00</td><td>100.00</td><td>100.00</td></tr><tr><td>G7. Energy</td><td>-</td><td>-</td><td>-</td></tr><tr><td>G8. Economy</td><td>54.32</td><td>95.65</td><td>37.93</td></tr><tr><td>G9. Innovation</td><td>26.45</td><td>66.67</td><td>16.49</td></tr><tr><td>G10. Inequalities</td><td>27.40</td><td>24.39</td><td>31.25</td></tr><tr><td>G11. Sustainable Cities</td><td>44.78</td><td>29.41</td><td>93.75</td></tr><tr><td>G12. Consumption</td><td>50.00</td><td>33.33</td><td>100.00</td></tr><tr><td>G13. Climate</td><td>85.71</td><td>100.00</td><td>75.00</td></tr><tr><td>G14. Life Below Water</td><td>80.00</td><td>66.67</td><td>100.00</td></tr><tr><td>G15. Life on Land</td><td>-</td><td>-</td><td>-</td></tr><tr><td>G16. Peace</td><td>80.74</td><td>84.07</td><td>77.66</td></tr><tr><td>G17. Partnership</td><td>0.00</td><td>0.00</td><td>0.00</td></tr><tr><td>Weighted Average</td><td>69.37</td><td>77.64</td><td>67.95</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Table 5: The class-specific performance of our best-performing InstructGPT method.
|
| 150 |
+
|
| 151 |
+
We also perform a more detailed breakdown of the performance of our best-performing model by different UN SDGs in Table 5. We can see that it is easy for the model to distinguish goals such as health, gender equality, and climate. However, other goals such as social inequalities and innovation are ambiguous for the model. One possible reason is that some NLP papers use domain-specific words such as "bias," which can also mean data bias, or spurious correlations in the data, so the model might confuse it with the general meaning of bias towards or against certain groups of people in society.
|
| 152 |
+
|
| 153 |
+
# 4.3 Task and Method Analyzer
|
| 154 |
+
|
| 155 |
+
Experimental Setup. Although our goal is to extract the main tasks and methods for our Sankey diagram, our setting is novel and distinct from tra
|
| 156 |
+
|
| 157 |
+
ditional sentence-level named entity recognition (NER), which aims at span-level extraction of all named entities. Instead, our setting is document-level as we just need one mention of the same term in case there are co-references or paraphrases. We also accept generative answers if there are no appropriate existing spans. Thus, we evaluate Task 3 using common metrics for extractive and generative question answering (QA) (Rajpurkar et al., 2016; Chen et al., 2019; Sai et al., 2023), such as exact match, F1, and BERTScore (Zhang et al., 2020).
|
| 158 |
+
|
| 159 |
+
We first apply commonly used LLMs finetuned on QA datasets, such as BERT (Devlin et al., 2019), RoBERTa, and DeBERTa (He et al., 2021). We also include the scientific NER models, PURE (Zhong and Chen, 2021) and SciREX (Jain et al., 2020). Finally, we include the general-purpose model, InstructGPT (Ouyang et al., 2022). Model implementation details are in Appendix D.3.
|
| 160 |
+
|
| 161 |
+
<table><tr><td rowspan="2">Model</td><td colspan="3">Task</td><td colspan="3">Method</td></tr><tr><td>BS</td><td>F1</td><td>EM</td><td>BS</td><td>F1</td><td>EM</td></tr><tr><td>BERT</td><td>82.29</td><td>35.08</td><td>15.94</td><td>75.04</td><td>23.08</td><td>4.38</td></tr><tr><td>RoBERTa</td><td>81.39</td><td>33.43</td><td>14.74</td><td>76.47</td><td>27.30</td><td>9.56</td></tr><tr><td>DeBERTa</td><td>80.36</td><td>31.28</td><td>11.16</td><td>75.62</td><td>26.05</td><td>4.78</td></tr><tr><td>PURE</td><td>71.30</td><td>34.67</td><td>5.58</td><td>69.65</td><td>30.43</td><td>5.98</td></tr><tr><td>SciREX</td><td>84.30</td><td>49.03</td><td>14.74</td><td>72.14</td><td>33.70</td><td>6.37</td></tr><tr><td>InstructGPT</td><td>84.65</td><td>43.94</td><td>19.12</td><td>77.95</td><td>32.05</td><td>11.55</td></tr></table>
|
| 162 |
+
|
| 163 |
+
Table 6: Model performance on Task 3 by BERTScore F1 (BS), F1, and Exact Match (EM). Due to space limitations, we omit the "text-davinci" when describing the InstructGPT.
|
| 164 |
+
|
| 165 |
+
Results. We show the model performance for Task 3 in Table 6. The best model by BERTScore is InstructGPT-002, reaching $84.65\%$ for task extraction, and $77.95\%$ for method extraction. It also achieves a higher exact match score than other strong models such as SciREX.
|
| 166 |
+
|
| 167 |
+
# 5 Insights
|
| 168 |
+
|
| 169 |
+
Using our NLP4SG PaperAnalyzer system, we analyze all the 76K NLP papers from ACL Anthology to answer our driving questions Q1, Q2, and Q3. Additionally, we also build a demo website at nlp4sg. vercel. app to make our analysis results more accessible to all parties interested in NLP4SG. Our website starts with a homepage in Figure 4, whose visualization plots we will refer to for the related analysis in this section. For a full overview of various demos on the website, see
|
| 170 |
+
|
| 171 |
+
Appendix A.
|
| 172 |
+
|
| 173 |
+
# NLP for Social Good
|
| 174 |
+
|
| 175 |
+
An initiative aiming to empower natural language processing (NLP) researchers to expand the societal impact of their work.
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
NLP4SG Research Overview
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
Topic Clustering
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
NLP4SG Tasks and Methods
|
| 185 |
+
Figure 4: The homepage of our NLP4SG website.
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
Organizations Diagram
|
| 189 |
+
|
| 190 |
+
Q1. How Many NLP4SG Papers Are There? We apply our NLP4SG binary classifier to the entire ACL Anthology with 76K papers. Overall, there are around $13.07\%$ social good-related papers. For a more detailed overview, we plot the proportion of social good-related papers among all NLP papers every year from 1980 in Figure 5. We can see a clear rising trend of NLP4SG in recent years. Notably, the proportion of NLP4SG papers increased to $19.0\%$ in 2020 from the initial percentage of $8.2\%$ in 1980. It is important to note that while these percentages provide us with directional insight into the trend, their accuracy is contingent on the precision of the model used for analysis.
|
| 191 |
+
|
| 192 |
+
Q2. What Aspects of Social Good Do the Pap-ers Address? Next, we are interested in the question of what social good aspects are addressed by NLP research.
|
| 193 |
+
|
| 194 |
+
In Figure 6, we show three bar charts side by side. The left one shows the importance scores of all the 17 SDGs according to Yang et al. (2020)'s worldwide survey of 360 sustainability researchers, where they incorporate all expert ratings into an overall priority score. The chart in
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
Figure 5: Percentage of social good-related papers (top) and the total number of papers (bottom) in ACL Anthology each year from 1980.
|
| 198 |
+
|
| 199 |
+

|
| 200 |
+
Figure 6: SDGs importance vs actual efforts. We use darker red for shorter bars, so the overlooked goals (especially on the right chart) can draw more attention.
|
| 201 |
+
|
| 202 |
+
the middle is compiled from our survey on "How current NLP researchers think about NLP4SG" at ACL 2021 of 80 NLP researchers, where we ask the subjects "What social good applications do you think the NLP community should consider?" and then map the answers (e.g., NLP for education, and combating misinformation) to corresponding SDGs. The survey details are in Appendix F.1. Finally, we apply our UN SDG goal classifier to all the ACL Anthology papers, and visualize the distribution of the 17 goals into the right panel of Figure 6. Our demo website contains a version of this tri-view comparison in Appendix A.1, where the user can specify whether they want to look at the overall trend, or the trend in any specific year.
|
| 203 |
+
|
| 204 |
+
From the overall comparison in Figure 6, we can
|
| 205 |
+
|
| 206 |
+
see a strong mismatch between the importance of the goals (left) and the actual size of research efforts (right). For example, NLP4SG papers mostly address health, peace, and education, which are admittedly important goals. However, they hardly address other important goals such as poverty and climate, which are pressing social issues. This might be because it may be more challenging to address these topics, e.g., lack of available datasets and expertise, trends dominating researchers' attention, funding climate (e.g., healthcare research being better funded), ease of publishing papers, the popularity of the field which may help gain citations more easily, the existence of good benchmark datasets, and so on. Note that we intentionally avoid getting into technological solutionism, and a more accurate framing should be trying to make the best use of the space where NLP can help (Appendix F.2), and the first two bar charts are all references to help gain better insights into this.
|
| 207 |
+
|
| 208 |
+
Q3. What Technical Solutions Are There? Div- ing deeper into our analysis, we study how existing research formulates tasks for each social good goal, and what methods they tend to adopt.
|
| 209 |
+
|
| 210 |
+
We visualize the distribution of tasks and methods in a Sankey diagram at the bottom of Figure 1, and add the connections to the SDGs. Briefly, the Sankey diagram takes as input the SDG-task-method information identified from each of the 9K NLP4SG papers from ACL Anthology. Hence, the diagram forms a comprehensive overview of what goals are addressed by what kind of task formulations, and then solved by what kind of models. Thus, researchers can quickly gain insights into NLP4SG and get an overview of the technical landscape in one place, and then spot opportunities where a better solution is yet to be proposed, e.g., new task proposals for an under-addressed goal such as poverty, or methodological upgrades for existing tasks so that the field can benefit from the latest advancement of NLP models.
|
| 211 |
+
|
| 212 |
+
The most common tasks in NLP4SG papers are: machine translation, which is present in $6.30\%$ of the papers; classification in $4.06\%$ ; toxicity detection in $3.32\%$ ; named entity recognition in $2.19\%$ ; and sentiment analysis in $1.51\%$ . The most common methods are: LLMs present in $12.18\%$ of the NLP4SG papers, classifiers in $2.98\%$ , deep neural networks in $2.51\%$ , word embeddings in $1.80\%$ , and SVMs in $1.62\%$ .
|
| 213 |
+
|
| 214 |
+
On our Sankey diagram demo page, we also enable clicks into each goal, task, or method to see the corresponding list of papers. We show the titles and abstracts of the papers and highlight text spans that contain the tasks and methods, as illustrated in Figure 7. This function is helpful to facilitate NLP4SG literature review, and saves time for future researchers.
|
| 215 |
+
|
| 216 |
+
List of NLP4SG Papers
|
| 217 |
+
|
| 218 |
+
Goal: Good Health and Well-Being Task: named entity recognition
|
| 219 |
+
|
| 220 |
+
1. Named Entity Recognition in Swedish Health Records with Character Based Deep Bidirectional LSTMs
|
| 221 |
+
|
| 222 |
+
Goal: Good Health and Well-Being
|
| 223 |
+
|
| 224 |
+
Tasks: named entity recognition
|
| 225 |
+
|
| 226 |
+
Methods: character based deep bidirectional recurrent neural network
|
| 227 |
+
|
| 228 |
+
We propose an approach for named entity recognition in medical data, using a character based deep bidirectional recurrent neural network. Such models can learn features and patterns based on the character sequence, and are not limited to a fixed vocabulary. This makes them very well suited for the NER task in the medical domain. Our experimental evaluation shows promising results, with a $60\%$ improvement in F 1 score over the baseline, and our system generalizes well between different datasets
|
| 229 |
+
|
| 230 |
+
Figure 7: An example paper in the paper list after clicking on "Health" and "Named Entity Recognition."
|
| 231 |
+
|
| 232 |
+
# 6 Related Work
|
| 233 |
+
|
| 234 |
+
AI for Social Good. Recent years have seen a rising effort to apply AI technologies to various aspects of social good (e.g., Chen et al., 2020; Yu et al., 2018). To enhance the community which cares about AI for social good (Tomasev et al., 2020; Jin et al., 2021; Hager et al., 2019), it is crucial to gain insights about the progress overview. However, existing efforts mostly rely on time-consuming manual compilation, from surveying hundreds of papers (Cowls et al., 2021; Jin et al., 2021), conducting limited case studies (Floridi et al., 2020; Hager et al., 2019), to pairing existing papers on tasks and datasets with SDGs (Yeh et al., 2021). Some work uses keyword matching to extract social good-related papers (Shi et al., 2020; Fortuna et al., 2021), but our work is the first to build a comprehensive paper analysis system, and we are the only work designing a suit of various tasks, annotating a dataset, and using state-of-the-art NLP models to support such analysis.
|
| 235 |
+
|
| 236 |
+
NLP on Scientific Literature. is an active research area on building NLP models for analysing scientific text. Example research directions include dataset creation (Ammar et al., 2018; Lo et al., 2020; Wang et al., 2020); modeling for tasks such as information extraction (Jain et al., 2020; Luan et al., 2018; Zhong and Chen, 2021; Hope
|
| 237 |
+
|
| 238 |
+
et al., 2021), summarization (Cachola et al., 2020), question answering (Dasigi et al., 2021), and general language modeling (Beltagy et al., 2019; Taylor et al., 2022). There are notable visualization platforms e.g. for COVID-19 research papers, such as search engines to browse papers (Bhatia et al., 2020), challenges and directions (Lahav et al., 2022), and associations between research groups and topics (Hope et al., 2020). Our work has a unique focus on identifying NLP4SG papers, aligning them with SDGs, and visualizing the research landscape, and it is the first visualization platform for NLP4SG based on NLP papers.
|
| 239 |
+
|
| 240 |
+
# 7 Conclusion
|
| 241 |
+
|
| 242 |
+
In this work, we make possible the reporting of the state of NLP4SG, with the help of several novel tasks specific to NLP4SG papers, the construction of a richly annotated NLP4SGPAPERS dataset, and the development of a PaperAnalyzer system based on state-of-the-art LLMs. We use this system to provide researchers insights into the landscape of NLP4SG research, paving the way for a more evidence-driven pursuit of NLP4SG that goes beyond good intentions. To make this information more accessible, we also create a website to visualize our analysis.
|
| 243 |
+
|
| 244 |
+
# Limitations
|
| 245 |
+
|
| 246 |
+
One limitation of this work is that the models are not yet perfect, so the insights on the entire ACL Anthology are bottlenecked by the best model performance. To make up for this, we also provide in Appendix G.2 an additional analysis with only the gold, annotated data, which are accurate, but smaller and less representative of the entire landscape of NLP4SG. Since our system is modular, and we can plug in better models for each task, we welcome future work to further improve the current models. One example improvement direction is to model more inputs than the title and abstract, for instance by taking into consideration the full text and meta information such as the venue and publication year of the paper.
|
| 247 |
+
|
| 248 |
+
Our sampling technique is designed to ensure the representativeness of our sample within the larger population of academic papers in our dataset, in line with our primary objective to reflect the distribution of each SDG. We acknowledge that there may be variations in the distribution of papers over
|
| 249 |
+
|
| 250 |
+
the years, particularly in earlier years with limited number of papers. In future work, a more detailed analysis could be conducted to track the distribution of NLP4SG papers over time, providing a more nuanced understanding of how these papers have evolved and complementing our broader findings regarding SDG representation.
|
| 251 |
+
|
| 252 |
+
Another limitation is that the definition of social good might experience a gradual shift when society evolves its ethical standards. There is no fixed, definitive answer, so we welcome community discussions. This paper is a snapshot of existing thinking frameworks (Cowls et al., 2021; Jin et al., 2021) and our understanding by 2023. Updating the definition of social good is key to mitigating the risks of overlooking important societal problems. In the long run, we suggest community-wide discussions and iterations to update the definition of social good over time.
|
| 253 |
+
|
| 254 |
+
Finally, beyond the three tasks we propose for NLP4SG papers, there could be potentially other tasks, such as generating task formulations for under-addressed goals, suggesting new task-method combinations, and so on. For example, some NLP tasks that could address issues related to poverty could include sentiment analysis to understand public perceptions of poverty and related issues, information extraction from government documents to identify and track funding for poverty reduction programs, and machine translation to make information about poverty reduction programs and resources available to non-English speakers. Moreover, currently our work is limited to the knowledge within NLP, so it will be better if future work can collect data about the downstream real-world impact of each research trace, which can provide better feedback for the community.
|
| 255 |
+
|
| 256 |
+
# Ethical Considerations
|
| 257 |
+
|
| 258 |
+
This work aims to provide insights about the state of NLP4SG research. It helps to increase the awareness of NLP researchers about applying NLP for positive social applications. In addition, the data we use is based on the open-sourced ACL Anthology dataset, so there are no user privacy concerns. To make this line of work more inclusive and comprehensive, we suggest a regular update of the social good identifier to keep up with the ethical standards of the community.
|
| 259 |
+
|
| 260 |
+
# Author Contributions
|
| 261 |
+
|
| 262 |
+
The idea and mission of the paper were mainly devised by Zhijing and Rada as an important step in the NLP for Social Good initiative.
|
| 263 |
+
|
| 264 |
+
Fernando put tremendous efforts into running all the models, building the demo website, and various analyses. Zhijing guided the work, and supervised the entire implementation process. Fernando and Zhijing equally contributed to the dataset collection.
|
| 265 |
+
|
| 266 |
+
Mrinmaya supervised Fernando's Master thesis, from which this work extended. Mrinmaya and Bernhard gave high-level feedbacks of the project. Tom gave insightful suggestions about how to design the paper and the dataset, as well as the common NLP models to use for scientific text. Zhijing, Fernando, Mrinmaya and Rada led the paper writing, and all authors contributed to improving the writing.
|
| 267 |
+
|
| 268 |
+
# Acknowledgments
|
| 269 |
+
|
| 270 |
+
We thank Niklas Stoehr for his feedbacks on our earlier work (Jin et al., 2021) and his suggestion that we could further automate that framework. We appreciate Dan Lahav for his insightful discussions to improve the orientations of this paper and its role in NLP4SG initiative. We acknowledge Jad Beydoun for helping with the dataset collection process, and Flavio Schneider for deploying the basic structure of the website based on which we built the visualizations. We thank Ariel Holtzman for the brilliant brainstorming of the paper title, Laura Biester for insightful suggestions when proofreading the paper, and LIT labmates Ashkan Kazemi and Artem Abzaliev for suggestions to improve the messages that this paper convey.
|
| 271 |
+
|
| 272 |
+
This material is based in part upon works supported by the Swiss National Science Foundation (Project No. 197155); a Responsible AI grant by the Haslerstiftung; an ETH Grant (ETH-1921-1); the German Federal Ministry of Education and Research (BMBF): Tübingen AI Center, FKZ:01IS18039B; the Machine Learning Cluster of Excellence, EXC number 2064/1 - Project number 390727645; and by the John Templeton Foundation (grant #61156). Zhijing Jin is supported by PhD fellowships from the Future of Life Institute and Open Philanthropy.
|
| 273 |
+
|
| 274 |
+
# References
|
| 275 |
+
|
| 276 |
+
Waleed Ammar, Dirk Groeneveld, Chandra Bhagavatula, Iz Beltagy, Miles Crawford, Doug Downey, Jason Dunkelberger, Ahmed Elghohary, Sergey Feldman, Vu Ha, Rodney Kinney, Sebastian Kohlmeier, Kyle Lo, Tyler Murray, Hsu-Han Ooi, Matthew Peters, Joanna Power, Sam Skjonsberg, Lucy Lu Wang, Chris Wilhelm, Zheng Yuan, Madeleine van Zuylen, and Oren Etzioni. 2018. Construction of the literature graph in semantic scholar. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 3 (Industry Papers), pages 84-91, New Orleans - Louisiana. Association for Computational Linguistics. 9
|
| 277 |
+
|
| 278 |
+
Iz Beltagy, Kyle Lo, and Arman Cohan. 2019. SciBERT: A pretrained language model for scientific text. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 3615-3620, Hong Kong, China. Association for Computational Linguistics. 5, 9, 20
|
| 279 |
+
|
| 280 |
+
Parminder Bhatia, Kristjan Arumae, Nima Pourdamghani, Suyog Deshpande, Ben Snively, Mona Mona, Colby Wise, George Price, Shyam Ramaswamy, and Taha A. Kass-Hout. 2020. AWS cord19-search: A scientific literature search engine for COVID-19. CoRR, abs/2007.09186. 9
|
| 281 |
+
|
| 282 |
+
Laura Biester, Dorottya Demszky, Zhijing Jin, Minmaya Sachan, Joel Tetreault, Steven Wilson, Lu Xiao, and Jieyu Zhao, editors. 2022. Proceedings of the 2nd Workshop on NLP for Positive Impact. Association for Computational Linguistics, Online. 1
|
| 283 |
+
|
| 284 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877-1901. Curran Associates, Inc. 1
|
| 285 |
+
|
| 286 |
+
Isabel Cachola, Kyle Lo, Arman Cohan, and Daniel Weld. 2020. TLDR: Extreme summarization of scientific documents. In Findings of the Association for Computational Linguistics: EMNLP 2020, pages 4766-4777, Online. Association for Computational Linguistics. 9
|
| 287 |
+
|
| 288 |
+
Ricardo J. G. B. Campello, Davoud Moulavi, and Joerg Sander. 2013. Density-based clustering based on hierarchical density estimates. In Advances in Knowledge Discovery and Data Mining, pages 160-172, Berlin, Heidelberg. Springer Berlin Heidelberg. 15
|
| 289 |
+
|
| 290 |
+
Anthony Chen, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. 2019. Evaluating question answering evaluation. In Proceedings of the 2nd Workshop on Machine Reading for Question Answering, pages 119-124, Hong Kong, China. Association for Computational Linguistics. 7
|
| 291 |
+
|
| 292 |
+
Lijia Chen, Pingping Chen, and Zhijian Lin. 2020. Artificial intelligence in education: A review. *IEEE Access*, 8:75264-75278. 9
|
| 293 |
+
|
| 294 |
+
Josh Cowls, Andreas Tsamados, Mariarosaria Taddeo, and Luciano Floridi. 2021. A definition, benchmark and database of AI for social good initiatives. Nat. Mach. Intell., 3(2):111-115. 9, 10, 15, 16
|
| 295 |
+
|
| 296 |
+
Pradeep Dasigi, Kyle Lo, Iz Beltagy, Arman Cohan, Noah A. Smith, and Matt Gardner. 2021. A dataset of information-seeking questions and answers anchored in research papers. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 4599-4610, Online. Association for Computational Linguistics. 9
|
| 297 |
+
|
| 298 |
+
Rafael Ferreira Leite de Mello, Maverick Andre Dionisio Ferreira, Anderson Pinheiro Cavalcanti, Evandro Costa, and Cristóbal Romero. 2019. Text mining in education. WIREs Data Mining Knowl. Discov., 9(6). 1
|
| 299 |
+
|
| 300 |
+
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. 1, 2, 5, 7
|
| 301 |
+
|
| 302 |
+
Anjalie Field, Shrimai Prabhumoye, Maarten Sap, Zhi- jing Jin, Jieyu Zhao, and Chris Brockett, editors. 2021. Proceedings of the 1st Workshop on NLP for Positive Impact. Association for Computational Linguistics, Online. 1
|
| 303 |
+
|
| 304 |
+
Luciano Floridi, Josh Cowls, Thomas C. King, and Mariarosaria Taddeo. 2020. How to design AI for social good: Seven essential factors. Sci. Eng. Ethics, 26(3):1771-1796. 9
|
| 305 |
+
|
| 306 |
+
Paula Fortuna, Laura Pérez-Mayos, Ahmed AbuRa'ed, Juan Soler-Company, and Leo Wanner. 2021. Cartography of natural language processing for social good (NLP4SG): Searching for definitions, statistics and white spots. In Proceedings of the 1st Workshop on NLP for Positive Impact, pages 19–26, Online. Association for Computational Linguistics. 9
|
| 307 |
+
|
| 308 |
+
Gregory D. Hager, Ann W. Drobnis, Fei Fang, Rayid Ghani, Amy Greenwald, Terah Lyons, David C. Parkes, Jason Schultz, Suchi Saria, Stephen F. Smith, and Milind Tambe. 2019. Artificial intelligence for social good. CoRR, abs/1901.05406. 9
|
| 309 |
+
|
| 310 |
+
Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2021. Deberta: Decoding-enhanced
|
| 311 |
+
|
| 312 |
+
Bert with disentangled attention. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net. 6, 7
|
| 313 |
+
Tom Hope, Aida Amini, David Wadden, Madeleine van Zuylen, Sravanthi Parasa, Eric Horvitz, Daniel Weld, Roy Schwartz, and Hannaneh Hajishirzi. 2021. Extracting a knowledge base of mechanisms from COVID-19 papers. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 4489-4503, Online. Association for Computational Linguistics. 9
|
| 314 |
+
Tom Hope, Jason Portenoy, Kishore Vasan, Jonathan Borchardt, Eric Horvitz, Daniel Weld, Marti Hearst, and Jevin West. 2020. SciSight: Combining faceted navigation and research group detection for COVID-19 exploratory scientific search. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 135–143, Online. Association for Computational Linguistics. 9
|
| 315 |
+
Sarthak Jain, Madeleine van Zuylen, Hannaneh Hajishirzi, and Iz Beltagy. 2020. SciREX: A challenge dataset for document-level information extraction. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7506-7516, Online. Association for Computational Linguistics. 5, 7, 9, 21
|
| 316 |
+
Zhijing Jin, Geeticka Chauhan, Brian Tse, Mrinmaya Sachan, and Rada Mihalcea. 2021. How good is NLP? A sober look at NLP tasks through the lens of social impact. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 3099-3113, Online. Association for Computational Linguistics. 1, 9, 10, 15, 16
|
| 317 |
+
Zhijing Jin and Rada Mihalcea. 2023. Natural language processing for policymaking. In Eleonora Bertoni, Matteo Fontana, Lorenzo Gabrielli, Serena Signorelli, and Michele Vespe, editors, Handbook of Computational Social Science for Policy, chapter 7, pages 141-162. Springer Cham. 1
|
| 318 |
+
Dan Lahav, Jon Saad-Falcon, Bailey Kuehl, Sophie Johnson, Sravanthi Parasa, Noam Shomron, Duen Horng Chau, Diyi Yang, Eric Horvitz, Daniel S. Weld, and Tom Hope. 2022. A search engine for discovery of scientific challenges and directions. In Thirty-Sixth AAAI Conference on Artificial Intelligence, AAAI 2022, Thirty-Fourth Conference on Innovative Applications of Artificial Intelligence, IAAI 2022, The Twelveth Symposium on Educational Advances in Artificial Intelligence, EAAI 2022 Virtual Event, February 22 - March 1, 2022, pages 11982-11990. AAAI Press. 9
|
| 319 |
+
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension.
|
| 320 |
+
|
| 321 |
+
sion. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7871-7880, Online. Association for Computational Linguistics. 6
|
| 322 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692. 2, 5
|
| 323 |
+
Kyle Lo, Lucy Lu Wang, Mark Neumann, Rodney Kinney, and Daniel Weld. 2020. S2ORC: The semantic scholar open research corpus. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4969-4983, Online. Association for Computational Linguistics. 9
|
| 324 |
+
Yi Luan, Luheng He, Mari Ostendorf, and Hannaneh Hajishirzi. 2018. Multi-task identification of entities, relations, and coreference for scientific knowledge graph construction. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3219-3232, Brussels, Belgium. Association for Computational Linguistics. 5, 9, 21
|
| 325 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Distributed representations of words and phrases and their compositionality. In Proceedings of the 26th International Conference on Neural Information Processing Systems - Volume 2, NIPS 2013, page 3111-3119, Red Hook, NY, USA. Curran Associates Inc. 24
|
| 326 |
+
Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F. Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. CoRR, abs/2203.02155. 1, 5, 6, 7
|
| 327 |
+
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. 2011. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825-2830. 24
|
| 328 |
+
Peng Qi, Yuhao Zhang, Yuhui Zhang, Jason Bolton, and Christopher D. Manning. 2020. Stanza: A python natural language processing toolkit for many human languages. arXiv. 14
|
| 329 |
+
Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. Technical report, OpenAI. 1, 2
|
| 330 |
+
Pranav Rajpurkar, Robin Jia, and Percy Liang. 2018. Know what you don't know: Unanswerable questions for SQuAD. In Association for Computational Linguistics (ACL). 21
|
| 331 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and
|
| 332 |
+
|
| 333 |
+
Percy Liang. 2016. SQuAD: 100,000+ questions for machine comprehension of text. In Empirical Methods in Natural Language Processing (EMNLP). 7
|
| 334 |
+
Paulo E. Rauber, Alexandre X. Falc
|
| 335 |
+
textasciitilde ao, and Alexandru C. Telea. 2016. Visualizing time-dependent data using dynamic t-sne. In 18th Eurographics Conference on Visualization, EuroVis 2016 - Short Papers, Groningen, The Netherlands, June 6-10, 2016, pages 73-77. Eurographics Association. 15
|
| 336 |
+
Nils Reimers and Iryna Gurevych. 2019. SentenceBERT: Sentence embeddings using Siamese BERT-networks. 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 3982-3992, Hong Kong, China. Association for Computational Linguistics. 15
|
| 337 |
+
Marco Ribeiro, Sameer Singh, and Carlos Guestrin. 2016. "why should I trust you?": Explaining the predictions of any classifier. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations, pages 97-101, San Diego, California. Association for Computational Linguistics. 6
|
| 338 |
+
Ananya B. Sai, Akash Kumar Mohankumar, and Mitesh M. Khapra. 2023. A survey of evaluation metrics used for NLG systems. ACM Comput. Surv., 55(2):26:1-26:39. 7
|
| 339 |
+
Victor Sanh, Lysandre Debut, Julien Chaumont, and Thomas Wolf. 2019. Distilbert, a distilled version of BERT: smaller, faster, cheaper and lighter. CoRR, abs/1910.01108. 6, 20
|
| 340 |
+
Zheyuan Ryan Shi, Claire Wang, and Fei Fang. 2020. Artificial intelligence for social good: A survey. CoRR, abs/2001.01818. 9, 19
|
| 341 |
+
Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. 2022. Galactica: A large language model for science. CoRR, abs/2211.09085. 9
|
| 342 |
+
Nenad Tomašev, Julien Cornebise, Frank Hutter, Shakir Mohamed, Angela Picciariello, Bec Connelly, Danielle CM Belgrave, Daphne Ezer, Fanny Cachat van der Haert, Frank Mugisha, et al. 2020. AI for social good: Unlocking the opportunity for positive impact. Nature Communications, 11(1):1-6. 9
|
| 343 |
+
United Nations. 2021. The Sustainable Development Goals Report 2021. United Nations. 2
|
| 344 |
+
United Nations. 2022. The Sustainable Development Goals Report 2022. United Nations. 2
|
| 345 |
+
Lucy Lu Wang, Kyle Lo, Yoganand Chandrasekhar, Russell Reas, Jiangjiang Yang, Darrin Eide, Kathryn Funk, Rodney Kinney, Ziyang Liu, William Merrill, Paul Mooney, Dewey A. Murdick, Devvret Rishi, Jerry Sheehan, Zhihong Shen, Brandon Stilson, Alex D.
|
| 346 |
+
|
| 347 |
+
Wade, Kuansan Wang, Chris Wilhelm, Boya Xie, Douglas Raymond, Daniel S. Weld, Oren Etzioni, and Sebastian Kohlmeier. 2020. CORD-19: the Covid-19 open research dataset. CoRR, abs/2004.10706. 9
|
| 348 |
+
Stephen Wu, Kirk Roberts, Surabhi Datta, Jingcheng Du, Zongcheng Ji, Yuqi Si, Sarvesh Soni, Qiong Wang, Qiang Wei, Yang Xiang, Bo Zhao, and Hua Xu. 2020. Deep learning in clinical natural language processing: A methodical review. J. Am. Medical Informatics Assoc., 27(3):457-470. 1
|
| 349 |
+
Siqi Yang, Wenwu Zhao, Yanxu Liu, Francesco Cherubini, Bojie Fu, and Paulo Pereira. 2020. Prioritizing sustainable development goals and linking them to ecosystem services: A global expert's knowledge evaluation. Geography and Sustainability, 1(4):321-330. 7, 14
|
| 350 |
+
Christopher Yeh, Chenlin Meng, Sherrie Wang, Anne Driscoll, Erik Rozi, Patrick Liu, Jihyeon Janel Lee, Marshall Burke, David B. Lobell, and Stefano Ermon. 2021. SustainBench: Benchmarks for monitoring the sustainable development goals with machine learning. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1, NeurIPS Datasets and Benchmarks 2021, December 2021, virtual. 9
|
| 351 |
+
Wenpeng Yin, Jamaal Hay, and Dan Roth. 2019. Benchmarking zero-shot text classification: Datasets, evaluation and entailment approach. 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 3914-3923, Hong Kong, China. Association for Computational Linguistics. 21
|
| 352 |
+
Kun-Hsing Yu, Andrew L Beam, and Isaac S Kohane. 2018. Artificial intelligence in healthcare. Nature biomedical engineering, 2(10):719-731. 9
|
| 353 |
+
Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger, and Yoav Artzi. 2020. BERTScore: Evaluating text generation with BERT. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net. 4, 7
|
| 354 |
+
Zexuan Zhong and Danqi Chen. 2021. A frustratingly easy approach for entity and relation extraction. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 50-61, Online. Association for Computational Linguistics. 7, 9, 21
|
| 355 |
+
|
| 356 |
+
# A Overview of the Demo Website
|
| 357 |
+
|
| 358 |
+
We create a demo website at https:// nlp4sg.verbel.app/. Our website starts with a homepage in Figure 4, which provides access to all the analysis visualization plots made in Javascript. We introduce each visualization function in detail below.
|
| 359 |
+
|
| 360 |
+
# A.1 Visualization 1: SDG Alignment
|
| 361 |
+
|
| 362 |
+
We first provide a visualization in Figure 8 of the SDGs (Section 5) from three aspects: the importance scores of SDGs collected in a survey on sustainability researchers (Yang et al., 2020), NLP researchers' opinions, and the number of ACL Anthology papers addressing the goals. In addition to the static plot in Figure 6, we enable a scroll bar on the top to select the view of papers only in a certain year at https://nlp4sg.verbcl.app/sdg.
|
| 363 |
+
|
| 364 |
+

|
| 365 |
+
Figure 8: Visualization of the importance of/efforts on the SDGs by the sustainability researchers, NLP researchers, and actual ACL Anthology papers.
|
| 366 |
+
|
| 367 |
+
# A.2 Visualization 2: Sankey Diagram of the Research Landscape
|
| 368 |
+
|
| 369 |
+
The Sankey diagram of the research landscape is shown in the bottom of Figure 1 or it can be directed accessed at https://nlp4sg. vercel.app/sankey. We include in Appendix G.1 the details of the scientific term normalization to clean the data for the Sankey diagram.
|
| 370 |
+
|
| 371 |
+
# A.3 Visualization 3: Paper Browser
|
| 372 |
+
|
| 373 |
+
Corresponding to the Sankey diagram, we also enable clicks into each goal, task, or method to see the corresponding list of papers, an example of which is shown in Figure 7 (https://nlp4sg.verbcl.app/sankey). We show the titles and abstracts of the papers and highlight
|
| 374 |
+
|
| 375 |
+
text spans that contain the tasks and methods. This function is helpful to facilitate NLP4SG literature review, and saves time for future researchers.
|
| 376 |
+
|
| 377 |
+
# A.4 Visualization 4: Supporting Organizations
|
| 378 |
+
|
| 379 |
+
To understand the support structure behind the pursuit of the SDGs, we collect the organizations supporting each research paper. We ran named entity recognition models by the Stanza Python package (Qi et al., 2020) over the Acknowledgment section. In case no organizations can be identified, then we use hand-crafted rules such as taking the main organization name of the authors if it is not a research institute, as these organizations could be self-supported. We visualize the distribution of organizations in the forms of a word cloud in Figure 9 and a Sankey diagram corresponding to each SDG in Figure 10.
|
| 380 |
+
|
| 381 |
+

|
| 382 |
+
Figure 9: Word cloud of the organizations mentioned in the NLP4SG papers.
|
| 383 |
+
|
| 384 |
+

|
| 385 |
+
Figure 10: Sankey diagram of the organizations supporting the NLP4SG research work on each SDG.
|
| 386 |
+
|
| 387 |
+
# A.5 Visualization 5: Paper Cluster Visualization
|
| 388 |
+
|
| 389 |
+
We also make a bottom-up plot of all the papers at a glance at https://nlp4sg.verbcl.
|
| 390 |
+
|
| 391 |
+
app/papers. Specifically, we use the text embeddings of the papers by sentence transformer (Reimers and Gurevych, 2019), project them using t-SNE (Rauber et al., 2016), and cluster by the HDBSCAN clustering algorithm (Campello et al., 2013). A screenshot of the paper clustering visualization page is in Figure 11.
|
| 392 |
+
|
| 393 |
+

|
| 394 |
+
Figure 11: Clustering of the NLP4SG papers.
|
| 395 |
+
|
| 396 |
+
# B Data Collection Details
|
| 397 |
+
|
| 398 |
+
# B.1 Data Source
|
| 399 |
+
|
| 400 |
+
We identify ACL Anthology as a quality source of data, since it contains a large set of peer-reviewed NLP papers. There are other potential sources of peer-reviewed NLP papers, such as papers submitted to the NLP track at other venues such as NeurIPS and ICLR; as well as non-peer-reviewed papers on arXiv under the category cs.CL. However, for the former, it is hard to algorithmically identify NLP papers with high precision and recall, not to mention the different copyright regulations; for the latter, it is hard to control the paper quality if we open to non-peer-reviewed data. After balancing all the concerns and also thinking of our target audience, the NLP community, we think ACL Anthology, which is peer-reviewed and maintained by the NLP community, is a good data source for our work.
|
| 401 |
+
|
| 402 |
+
# B.2 Preprocessing
|
| 403 |
+
|
| 404 |
+
We conduct the following preprocessing on the ACL Anthology data. To identify the paper entries in the entire anthology, we remove those that are workshop proceedings, invited talks, and book reviews, by a set of hand-crafted rules, such as identifying the title starting with "Book Reviews: ..."
|
| 405 |
+
|
| 406 |
+
or ending with "... Workshop." To clean the titles, we remove the special symbols "\{}" and "\}" in titles such as "\{N\}o{P}ropaganda at \{S\}em{E}\val-2020 Task 11: A Borrowed Approach to Sequence Tagging and Text Classification."
|
| 407 |
+
|
| 408 |
+
Moreover, not all entries on the anthology provide a non-empty abstract, so for papers with missing abstracts, we parse their PDFs using the PDF-to-JSON converter doc2json Python package<sup>7</sup> to extract the abstracts.
|
| 409 |
+
|
| 410 |
+
# B.3 Annotation Scheme
|
| 411 |
+
|
| 412 |
+
We introduce the annotation scheme for the three tasks below.
|
| 413 |
+
|
| 414 |
+
# B.3.1 Annotating Task 1: NLP4SG Classification
|
| 415 |
+
|
| 416 |
+
Inspired by previous frameworks defining NLP4SG (Jin et al., 2021) and AI for social good (Cowls et al., 2021), we design a decision flowchart to identify whether an NLP paper addresses a social good-related problem in Figure 12.
|
| 417 |
+
|
| 418 |
+

|
| 419 |
+
Figure 12: A decision flowchart used for the annotation of Task 1, NLP4SG binary classification.
|
| 420 |
+
|
| 421 |
+
Specifically, there are two important decision criteria. One is about the relevance to social good topics, e.g., the 17 UN SDGs. We also include social problems in the digital era, such as online toxicity, fake news, and privacy, into their corresponding SDG, i.e., (Goal 16) Peace, justice and strong institutions. The second criterion is about how directly the paper addresses the social problem. For
|
| 422 |
+
|
| 423 |
+
example, general linguistic tools such as syntax parsing could be an important technology, but not carrying direct social implications. We adopt the categorization of the stage of a technology in Jin et al. (2021), and only count those with a clear implication for downstream applications (i.e., Stage 3 and 4).
|
| 424 |
+
|
| 425 |
+
To get the idea through to the annotators, we provide both the formal guideline above, and also concrete examples as follows.
|
| 426 |
+
|
| 427 |
+
What is included: (Example set 1) Directly related to the high-level definition of SDGs, mentioning, e.g., healthcare; mental health (psycho-counseling, hope speech); education; facilitating efficient scientific research (which belongs to Goal 9 Industry, innovation and infrastructure); helping employment (job matching, training job skills); helping collaboration among decision-makers. (Example set 2) Related to the fine-grained subcategories of SDGs, e.g., encouraging civic engagement, and enabling social problem tracking for the goal of (Goal 16) Peace, justice and strong institutions. (Example set 3) Social problems in the digital era: e.g., online toxicity, misinformation, privacy protection, and deception detection.
|
| 428 |
+
|
| 429 |
+
What is excluded: (Example set 1) General-purpose, coarse-grained NLP tasks: machine translation, language modeling, summarization, sentiment analysis, etc. (Example set 2) General-purpose, fine-grained NLP tasks: news classification; humor detection; technologies to increasing productivity, e.g., email classification, report generation, meeting note compilation (because they are application-agnostic which could be used for both good and bad purposes, and also a bit too general); textbook-related QA but using it as a benchmark to improve the general modeling capabilities; tasks whose data is socially relevant, but the task is neutral (e.g., POS tagging for parliament speech); NLP to help other neutral disciplines, e.g., chemistry; tasks a bit too indirectly related to SDGs, e.g., parsing historical language document, or cultural heritage-related tasks, low-resource MT, which bridges resources from one community to another, but is a bit too indirect, and also depends case by case on the actual language community, plus there is a tradeoff between efficiency and equality. (Example set 3) Tasks with controversial nature or unknown effect (varying a
|
| 430 |
+
|
| 431 |
+
lot by how people use them in the future): e.g., news comment generation; financialNLP, which could be used in either way to help the economy, or perturb the market for private profits; simulated NLP tools for the battlefield; user-level demographic prediction.
|
| 432 |
+
|
| 433 |
+
As mentioned in the Limitations and Ethical Implications sections, the definition of social good might experience a gradual shift when society evolves its ethical standards. There is no fixed, definitive answer, so we start with relatively inclusive criteria here, and welcome community discussions and iterations to improve the definitions. This paper is a snapshot of existing thinking frameworks (Cowls et al., 2021; Jin et al., 2021) and our understanding by 2023. In the long run, we suggest community-wide discussions and iterations to update the definition of social good from time to time.
|
| 434 |
+
|
| 435 |
+
# B.3.2 Annotating Task 2: SDG Classification
|
| 436 |
+
|
| 437 |
+
We let the annotators read the official descriptions and indicators of the 17 SDGs on the UN website such as https://sdgs.un.org/goals/goal1. For each paper identified as NLP4SG in Task 1, we ask the annotators to label all relevant SDGs.
|
| 438 |
+
|
| 439 |
+
We present examples of NLP4SG paper titles corresponding to each SDG below.
|
| 440 |
+
|
| 441 |
+
# G2. Hunger
|
| 442 |
+
|
| 443 |
+
A Gold Standard for CLIR evaluation in the Organic Agriculture Domain
|
| 444 |
+
- CRITTER: a translation system for agricultural market reports
|
| 445 |
+
|
| 446 |
+
# G3. Health
|
| 447 |
+
|
| 448 |
+
- A Treebank for the Healthcare Domain
|
| 449 |
+
Automatic Analysis of Patient History Episodes in Bulgarian Hospital Discharge Letters
|
| 450 |
+
|
| 451 |
+
# G4. Education
|
| 452 |
+
|
| 453 |
+
- An MT learning environment for computational linguistics students
|
| 454 |
+
- Salinlahi III: An Intelligent Tutoring System for Filipino Heritage Language Learners
|
| 455 |
+
|
| 456 |
+
# G5. Gender
|
| 457 |
+
|
| 458 |
+
- An Annotated Corpus for Sexism Detection in French Tweets
|
| 459 |
+
- Mitigating Gender Bias in Machine Translation with Target Gender Annotations
|
| 460 |
+
|
| 461 |
+
# G6. Water
|
| 462 |
+
|
| 463 |
+
- A conceptual ontology in the water domain of knowledge to bridge the lexical semantics of stratified discursive strata
|
| 464 |
+
|
| 465 |
+
# G8. Economy
|
| 466 |
+
|
| 467 |
+
- Multilingual Generation and Summarization of Job Adverts: the TREE Project
|
| 468 |
+
- Situational Language Training for Hotel Receptionists
|
| 469 |
+
|
| 470 |
+
# G9. Innovation
|
| 471 |
+
|
| 472 |
+
- An Annotated Corpus for Machine Reading of Instructions in Wet Lab Protocols
|
| 473 |
+
- Retrieval of Research-level Mathematical Information Needs: A Test Collection and Technical Terminology Experiment
|
| 474 |
+
|
| 475 |
+
# G10. Inequalities
|
| 476 |
+
|
| 477 |
+
- Analyzing Stereotypes in Generative Text Inference Tasks
|
| 478 |
+
- Recognition of Static Features in Sign Language Using Key-Points
|
| 479 |
+
|
| 480 |
+
# G11. Sustainable Cities
|
| 481 |
+
|
| 482 |
+
- FloDusTA: Saudi Tweets Dataset for Flood, Dust Storm, and Traffic Accident Events
|
| 483 |
+
- Trouble on the Road: Finding Reasons for Commuter Stress from Tweets
|
| 484 |
+
|
| 485 |
+
# G12. Consumption
|
| 486 |
+
|
| 487 |
+
- Multiple Teacher Distillation for Robust and Greener Models
|
| 488 |
+
|
| 489 |
+
# G13. Climate
|
| 490 |
+
|
| 491 |
+
- CLIMATE-FEVER: A Dataset for Verification of Real-World Climate Claims
|
| 492 |
+
- Tackling Climate Change with Machine Learning
|
| 493 |
+
|
| 494 |
+
# G14. Life Below Water
|
| 495 |
+
|
| 496 |
+
- Marine Variable Linker: Exploring Relations between Changing Variables in Marine Science Literature
|
| 497 |
+
- Literature-based discovery for Oceanographic climate science
|
| 498 |
+
|
| 499 |
+
# G16. Peace
|
| 500 |
+
|
| 501 |
+
- On Unifying Misinformation Detection
|
| 502 |
+
- Fully Connected Neural Network with Advance Preprocessor to Identify Aggression over Facebook and Twitter
|
| 503 |
+
|
| 504 |
+
Since Goal 16 is a big category including tasks such as toxicity detection, and fighting misinformation, we provide an additional label when a paper within Peace addresses more fine-grained tasks. We collect statistics for the main subcategories: 44 samples $(23.28\%)$ for toxicity detection, 44 samples $(23.28\%)$ for fighting misinformation, 11 samples $(5.82\%)$ for privacy protection, and 6 samples $(3.17\%)$ for deception detection.
|
| 505 |
+
|
| 506 |
+
# G17. Partnership
|
| 507 |
+
|
| 508 |
+
- MEDAR: Collaboration between European and Mediterranean Arabic Partners to Support the Development of Language Technology for Arabic
|
| 509 |
+
- The Telling Tail: Signals of Success in Electronic Negotiation Texts
|
| 510 |
+
|
| 511 |
+
# B.3.3 Annotating Additional Data for Task 2: Upsampling
|
| 512 |
+
|
| 513 |
+
To enrich the data for Task 2, we upsample the low-occurrence classes. We denote all the classes with less than $5\%$ proportion in our dataset as the low-occurrence classes. We first automatically extract candidate papers that might correspond to the low-occurrence classes, and then manually annotate their SDG classes. To automatically identify a candidate pool of papers regarding the low-occurrence classes, we first run the best model of Task 1 on the entire ACL Anthology to extract 9K NLP4SG papers, and among them, we use our curated keywords corresponding to the SDGs to extract candidate papers.
|
| 514 |
+
|
| 515 |
+
In Table 7, we can see that by the automatic matching algorithm, we get 261 candidate papers in total, including 1 candidate paper for poverty, 25 for hunger, 67 for gender, ..., and 40 for partnership. And after manually annotating these 261 papers, we obtain 4 confirmed papers for hunger, 67 for gender, 1 for water, 44 for economy, ..., and 5 for partnership. We use this upsampled data as additional data for Task 2, resulting in 759 total NLP4SG papers for Task 2.
|
| 516 |
+
|
| 517 |
+
<table><tr><td>UN SDG</td><td>#Matched Papers</td><td>#Papers after Annotation</td></tr><tr><td>G1. Poverty</td><td>1</td><td>0</td></tr><tr><td>G2. Hunger</td><td>25</td><td>4</td></tr><tr><td>G3. Health</td><td>High Occurrence</td><td>0</td></tr><tr><td>G4. Education</td><td>High Occurrence</td><td>0</td></tr><tr><td>G5. Gender</td><td>67</td><td>67</td></tr><tr><td>G6. Water</td><td>3</td><td>1</td></tr><tr><td>G7. Energy</td><td>2</td><td>0</td></tr><tr><td>G8. Economy</td><td>67</td><td>44</td></tr><tr><td>G9. Innovation</td><td>High Occurrence</td><td>15</td></tr><tr><td>G10. Inequalities</td><td>High Occurrence</td><td>1</td></tr><tr><td>G11. Sustainable Cities</td><td>33</td><td>11</td></tr><tr><td>G12. Consumption</td><td>0</td><td>0</td></tr><tr><td>G13. Climate</td><td>21</td><td>19</td></tr><tr><td>G14. Life Below Water</td><td>2</td><td>2</td></tr><tr><td>G15. Life on Land</td><td>0</td><td>0</td></tr><tr><td>G16. Peace</td><td>High Occurrence</td><td>12</td></tr><tr><td>G17. Partnership</td><td>40</td><td>5</td></tr><tr><td>Total</td><td>261</td><td>167</td></tr></table>
|
| 518 |
+
|
| 519 |
+
Table 7: Number of upsampled papers by SDGs. We first identify the candidate papers (# Matched Papers), and then manually annotate them (# Papers after Annotation). In total, there are 261 candidate papers, from which 167 are identified as relevant for NLP4SG.
|
| 520 |
+
|
| 521 |
+
# B.3.4 Annotating Task 3: Salient Scientific Term Analysis
|
| 522 |
+
|
| 523 |
+
We present the title and abstract of social good papers to the annotator and ask them to write down a list of the primary tasks and methods addressed by each paper. In case there are hyponymy and hypernymy relationships among the scientific terms, we take the more specific term that is still common enough to show up in the Sankey diagram. For example, we would use the term LSTMs, but not neural networks (too broad), or stacked BiLSTMs with co-attention (too specific to be frequent enough to show up on the Sankey diagram). We utilized this information to enable the annotators to choose the relevant task and method spans from the title and abstract, along with an extra text box as an option in case an exact span was not available.
|
| 524 |
+
|
| 525 |
+
Below are the list of some common tasks and methods.
|
| 526 |
+
|
| 527 |
+
List of common tasks: automatic speech recognition, COVID-19-related analysis, text classification, data collection, event extraction, fact checking, fake news detection, gender bias mitigation, information extraction, information retrieval, linguistic analysis, machine translation, NLP applications, named entity recognition, natural language generation, question answering, relation extraction, rumor detection, sentiment analysis, stance detection, text summarization, toxicity detection, etc.
|
| 528 |
+
|
| 529 |
+
List of common methods: BERT, classifiers, computational models, conditional random fields, convolutional neural networks, ensemble methods, LSTM, multi-task learning, RoBERTa, supervised learning, support vector machines, topic models, transfer learning, word embeddings, etc. In the absence of more specific methods, it is also acceptable to annotate more coarse-grained methods if they are the only ones mentioned in the paper: language models, language technology, machine learning methods, machine translation system, NLP models, neural networks, recurrent neural networks, transformers, etc.
|
| 530 |
+
|
| 531 |
+
Title: Applying deep learning on electronic health records in Swedish to predict healthcare-associated infections Abstract: Detecting healthcare-associated infections poses a major challenge in healthcare. Using natural language processing and machine learning applied on electronic patient records is one approach that has been shown to work. However the results indicate that there was room for improvement and therefore we have applied deep learning methods. Specifically we implemented a network of stacked sparse autoencoders and a network of stacked restricted Boltzmann machines. Our best results were obtained using the stacked restricted Boltzmann machines with a precision of 0.79 and a recall of 0.88.
|
| 532 |
+
|
| 533 |
+
Task: predict healthcare-associated infections
|
| 534 |
+
|
| 535 |
+
Method: restricted Boltzmann machines, autoencoders
|
| 536 |
+
|
| 537 |
+
Table 8: Example annotation of Task 3.
|
| 538 |
+
|
| 539 |
+
# B.4 Annotator Background
|
| 540 |
+
|
| 541 |
+
The data associated with each task was annotated by two NLP researchers who are proficient in English. There are both female and male researchers, as well as white and Asian demographic backgrounds.
|
| 542 |
+
|
| 543 |
+
# B.5 Inter-Annotator Agreement
|
| 544 |
+
|
| 545 |
+
For Task 2, we computed the Cohen's Kappa score of the binary classification of each SDG as shown in Table 9, and calculate the weighted average as $88.67\%$ . Moreover, the partial match score is $96.46\%$ and the exact match is $85.35\%$ .
|
| 546 |
+
|
| 547 |
+
# C More Dataset Information
|
| 548 |
+
|
| 549 |
+
# C.1 License
|
| 550 |
+
|
| 551 |
+
License or terms for use and/or distribution: The dataset is open-sourced with the Creative Commons Attribution Share Alike 4.0 license. We provide the ACL Anthology paper IDs, title, abstract, publication year, and acknowledgements section from ACL Anthology, with our annotations. Ma
|
| 552 |
+
|
| 553 |
+
<table><tr><td>UN SDG</td><td>Cohen's kappa</td></tr><tr><td>G1. Poverty</td><td>-</td></tr><tr><td>G2. Hunger</td><td>-</td></tr><tr><td>G3. Health</td><td>92.48%</td></tr><tr><td>G4. Education</td><td>95.19%</td></tr><tr><td>G5. Gender</td><td>86.32%</td></tr><tr><td>G6. Water</td><td>-</td></tr><tr><td>G7. Energy</td><td>-</td></tr><tr><td>G8. Economy</td><td>73.49%</td></tr><tr><td>G9. Innovation</td><td>84.92%</td></tr><tr><td>G10. Inequalities</td><td>68.96%</td></tr><tr><td>G11. Sustainable Cities</td><td>33.15%</td></tr><tr><td>G12. Consumption</td><td>100.00%</td></tr><tr><td>G13. Climate</td><td>100.00%</td></tr><tr><td>G14. Life Below Water</td><td>-</td></tr><tr><td>G15. Life on Land</td><td>-</td></tr><tr><td>G16. Peace</td><td>89.63%</td></tr><tr><td>G17. Partnership</td><td>79.31%</td></tr></table>
|
| 554 |
+
|
| 555 |
+
Table 9: Cohen's kappa coefficients for each SDG.
|
| 556 |
+
|
| 557 |
+
terials prior to 2016 in the ACL Anthology are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 International License, and materials published in or after 2016 are licensed on a Creative Commons Attribution 4.0 International License.
|
| 558 |
+
|
| 559 |
+
# C.2 NLP4SG through the years
|
| 560 |
+
|
| 561 |
+
While papers addressing social problems in NLP have been predominantly published in recent years, it's important to include older papers in our analysis to get a complete picture of the growth of NLP4SG. Some examples of NLPSG papers for every decade are:
|
| 562 |
+
|
| 563 |
+
1960s: Automated Processing of Medical English. https://aclanthology.org/C69-1101
|
| 564 |
+
1970s: Powerful ideas in computational linguistics - Implications for problem solving, and education. https://aclanthology.org/P79-1028.pdf
|
| 565 |
+
1980s: Temporal Inferences in Medical Texts. https://aclanthology.org/P85-1002
|
| 566 |
+
1990s: ANTHEM: advanced natural language interface for multilingual text generation in healthcare (LRE 62-007). https://aclanthology.org/1996. amta-1.27
|
| 567 |
+
2000s: Collaborative Annotation of Sign Language Data with Peer-to-Peer Technology. https://aclanthology.org/L04-1280/
|
| 568 |
+
2010s: Detecting Offensive Tweets in Hindi
|
| 569 |
+
|
| 570 |
+
English Code-Switched Language. https://aclanthology.org/W18-3504/
|
| 571 |
+
|
| 572 |
+
2020s: Gender Bias in Machine Translation. https://aclanthology.org/2021.tacl-1.51/
|
| 573 |
+
|
| 574 |
+
# C.3 Task 2 Co-Occurrence Matrix
|
| 575 |
+
|
| 576 |
+
In Figure 13, we show the co-occurrence matrix with the absolute number of co-occurrences.
|
| 577 |
+
|
| 578 |
+

|
| 579 |
+
Figure 13: Heatmap of co-occurrences of UN SDGs on NLP4SG papers.
|
| 580 |
+
|
| 581 |
+
# D Experimental Details
|
| 582 |
+
|
| 583 |
+
# D.1 Models for Task 1
|
| 584 |
+
|
| 585 |
+
# D.1.1 Distant Supervision
|
| 586 |
+
|
| 587 |
+
For the keyword matching, we curate a list of social good-related keywords provided in our GitHub repository which extends the AI for social good keywords by Shi et al. (2020). We compare the performance of keyword matching based on the title vs. title and abstract in Table 10, and find that keyword matching in titles gives higher performance, so we adopt the title keyword matching as the first DS method.
|
| 588 |
+
|
| 589 |
+
For the second DS method, cosine similarity matching, we calculate the cosine similarity scores between the text embeddings of the title + abstract of the paper and the text embeddings of the description of each one of the UN SDGs and take the most similar UN SDG. We add a paper to the positive set if its text similarity is among the top $1\%$ most similar papers in the unlabeled data from the ACL Anthology. We add a paper to the negative set if its similarity is in the bottom
|
| 590 |
+
|
| 591 |
+
$50\%$ percentile. For the text embedding similarity, we use a general-purpose sentence similarity model, all-distilroberta-v1 which is a pre-trained distilroberta-base (Sanh et al., 2019) model finetuned on a 1B sentence pairs dataset.
|
| 592 |
+
|
| 593 |
+
Merging both DS sets, the entire DS set consists of positive samples from papers whose titles match the keywords, and papers which are very similar to the UN SDG descriptions; and negative samples from papers that are very different from the UN SDG descriptions.
|
| 594 |
+
|
| 595 |
+
We report the quality of data extracted by these DS methods evaluated on the training set in Table 10, which correlates with the ablation study results in Table 11. We can see that the performance of the entire DS set is higher than that of the keyword-only set, which is higher than the similarity-only set.
|
| 596 |
+
|
| 597 |
+
<table><tr><td></td><td>F1</td><td>P</td><td>R</td></tr><tr><td>Keyword Match (Title)</td><td>66.67</td><td>79.90</td><td>57.19</td></tr><tr><td>Keyword Match (Title+Abstract)</td><td>55.17</td><td>42.50</td><td>78.60</td></tr><tr><td>Cosine Similarity</td><td>8.33</td><td>47.06</td><td>4.57</td></tr><tr><td>Keyword Match (Title) + Cosine Similarity</td><td>72.02</td><td>76.85</td><td>67.76</td></tr></table>
|
| 598 |
+
|
| 599 |
+
Table 10: Quality evaluation of the distant supervision heuristics reported on the training set.
|
| 600 |
+
|
| 601 |
+
<table><tr><td></td><td>F1</td><td>Acc</td><td>P</td><td>R</td></tr><tr><td>SciBERT with No DS</td><td>73.42</td><td>94.10</td><td>84.90</td><td>64.68</td></tr><tr><td>SciBERT + DS by Similarity</td><td>62.96</td><td>89.35</td><td>55.86</td><td>72.11</td></tr><tr><td>SciBERT + DS by Keyword</td><td>74.68</td><td>94.10</td><td>80.93</td><td>69.32</td></tr></table>
|
| 602 |
+
|
| 603 |
+
Table 11: For the best-performing model, SciBERT+DS, we conduct ablation studies by removing the different subsets of our DS data. The resulting performance correlates with the DS data quality reported in Table 10, where keyword + similarity gets the best quality, and similarity only gets a very low quality.
|
| 604 |
+
|
| 605 |
+
# D.1.2 Models Implementation Details
|
| 606 |
+
|
| 607 |
+
BERT, RoBERTa, and SciBERT We finetune SciBERT (Beltagy et al., 2019) on the NLP4SG text classification task. We freeze the embedding layer and the first 11 encoder layers, and we finetune the parameters of the 12th encoder layer, the pooled, and the classifier layer.
|
| 608 |
+
|
| 609 |
+
We use one GPU model NVIDIA Quadro RTX 6000 with 24 GiB. We train the classifier for 15 epochs using a batch size of 32. The train
|
| 610 |
+
|
| 611 |
+
ing time for our best-performing model is approximately 1.5 hours. We manually grid search with different learning rates (5e-03, 5e-04, 5e-05, 5e-06) and different scheduler types ("constant", "linear", "cosine with restarts") to make a total of 12 runs and chose the best hyperparameters based on f1 score on the dev set. The chosen learning rate is 5e-05 and a linear scheduler. All the runs together make a total of around 18 GPU hours. We tried with a similar setting using BERT-large and RoBERTa-large, obtaining lower performances.
|
| 612 |
+
|
| 613 |
+
InstructGPT For the second approach, we design a prompt and ask InstructGPT in a zero-shot setting if a paper is NLP4SG or not. The prompt contains 3 elements:
|
| 614 |
+
|
| 615 |
+
- Introduction to the task: We use the sentence "There is an NLP paper with the title and abstract:"
|
| 616 |
+
- Content of the paper: The title and abstract concatenated
|
| 617 |
+
- Final question: We use the sentence "Is this paper contributing to the UN Sustainable Development Goals? Answer yes or no."
|
| 618 |
+
|
| 619 |
+
We use the OpenAI $\mathrm{API}^9$ to access GPT. We use "davinci-text-002." We keep the default values of the API, and set the temperature to zero and maximum number of tokens of the response as 50.
|
| 620 |
+
|
| 621 |
+
Few-shot InstructGPT We also perform experiments using few-shot settings, i.e., 2,4,8,16, and 32 shots, and report the results for the setting with the best performance in the dev set. For those experiments, we only use the title of the paper and the same proportion of positive and negative examples.
|
| 622 |
+
|
| 623 |
+
Are these papers contributing to the UN Sustainable Development Goals or helping society?
|
| 624 |
+
|
| 625 |
+
Paper: [Title + Abstract]
|
| 626 |
+
|
| 627 |
+
Answer: [Yes/No]
|
| 628 |
+
|
| 629 |
+
Paper: [Title + Abstract]
|
| 630 |
+
|
| 631 |
+
Answer: [Yes/No]
|
| 632 |
+
|
| 633 |
+
Paper: [Title + Abstract]
|
| 634 |
+
|
| 635 |
+
Answer:
|
| 636 |
+
|
| 637 |
+
[InstructGPT response]
|
| 638 |
+
|
| 639 |
+
# D.2 Models for Task 2
|
| 640 |
+
|
| 641 |
+
Model 1: InstructGPT We design a prompt to get which UN goal a paper contributes to. Since InstructGPT already has background knowledge of which are the UN SDGs, and what is the purpose of each one of them we do not need to include that explanation in the prompt. The prompt has the following components:
|
| 642 |
+
|
| 643 |
+
- Introduction to the task: We use the sentence "There is an NLP paper with the title and abstract:"
|
| 644 |
+
- Content of the paper: The title and abstract concatenated.
|
| 645 |
+
- Final question: We use the sentence "Which of the UN goals does this paper directly contribute to? Provide the goal number and name."
|
| 646 |
+
|
| 647 |
+
We parse the response, allowing multiple goals for each paper.
|
| 648 |
+
|
| 649 |
+
Model 2: Pretrained MNLI classifier We use a pretrained MNLI classifier (bart-large-mnli) as a zero-shot text classifier, an approach proposed by Yin et al. (2019). We get the probability of entailment/contradiction of the content of the paper with the description of each one of the UN goals obtained from the UN website. We consider that a paper contributes to a UN SDG if the probability of entailment is 0.5 or higher. If there is no SDG with a probability higher than 0.5 we take the SDG with the highest probability. We also tested distilbert (typeform/distilbert-base-uncased-mnli) and DeBERTa (MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli).
|
| 650 |
+
|
| 651 |
+
# D.3 Models for Task 3
|
| 652 |
+
|
| 653 |
+
PURE and SciREX PURE (Zhong and Chen, 2021) is a model for end-to-end relation extraction. We use PURE trained on the SciERC (Luan et al., 2018) dataset of scientific abstracts.
|
| 654 |
+
|
| 655 |
+
SciREX (Jain et al., 2020) is a document level IE model that not only identifies mentions, but also models their saliency, and their coreference links.
|
| 656 |
+
|
| 657 |
+
For SciREX and PURE, we run them on a GPU model NVIDIA Quadro RTX 6000 with 24 GiB. It takes around one hour to extract the information from 9K social good papers.
|
| 658 |
+
|
| 659 |
+
BERT-based Models We used LLM finetunned on the SQUAD dataset (Rajpurkar et al., 2018). We provide as context the title and abstract of the paper and asked "Which NLP task does this paper address?" and "Which NLP method(s) does this paper use?". In particular we used the following models "bert-large-uncased-whole-word-masking-finetuned-squad", "deepset/roberta-large-squad2", and "deepset/deberta-v3-large-squad2".
|
| 660 |
+
|
| 661 |
+
InstructGPT We use InstructGPT in a zero-shot setting in order to extract the relevant information. We use a different prompt for each of the 2 extraction tasks (tasks and methods). The prompt consists of 3 elements:
|
| 662 |
+
|
| 663 |
+
- Instruction: Here we tell InstructGPT what to do in natural language form.
|
| 664 |
+
- Paper content: We concatenate the title and abstract of the paper.
|
| 665 |
+
- Final question: We present the question again to reinforce the explanation.
|
| 666 |
+
|
| 667 |
+
# Prompt to obtain the tasks
|
| 668 |
+
|
| 669 |
+
Identify the NLP task(s) that this paper is dealing with. Select a text span that is an appropriate answer, or if no span serves as a good answer, just come up with a phrase. Examples of tasks are: fake news detection, name entity recognition, question answering, etc.
|
| 670 |
+
|
| 671 |
+
$$
|
| 672 |
+
[ T i t l e + A b s t r a c t ]
|
| 673 |
+
$$
|
| 674 |
+
|
| 675 |
+
The primary NLP task(s) addressed in this paper are:
|
| 676 |
+
|
| 677 |
+
$$
|
| 678 |
+
[ \text {I n s t r u c t G P T}
|
| 679 |
+
$$
|
| 680 |
+
|
| 681 |
+
# Prompt to obtain the methods
|
| 682 |
+
|
| 683 |
+
Identify the NLP method(s) used in this paper. Select a text span that is an appropriate answer, or if no span serves as a good answer, just come up with a phrase. Separate the methods with commas and don't include NLP tasks. Examples of methods are: BERT, SVM, CNN, etc.
|
| 684 |
+
|
| 685 |
+
$$
|
| 686 |
+
[ T i t l e + A b s t r a c t ]
|
| 687 |
+
$$
|
| 688 |
+
|
| 689 |
+
The primary NLP method(s) used in this paper are:
|
| 690 |
+
|
| 691 |
+
# E Details of the Interpretability Analysis
|
| 692 |
+
|
| 693 |
+
# E.1 Task 1: Example LIME Outputs
|
| 694 |
+
|
| 695 |
+
Using the best model, we show examples of LIME output for true positive (TP), true negative (TN), false positive (FP), and false negative (FN) data samples in Figures 14 to 17, respectively.
|
| 696 |
+
|
| 697 |
+

|
| 698 |
+
Figure 14: LIME output for a TP example.
|
| 699 |
+
|
| 700 |
+

|
| 701 |
+
Figure 15: LIME output for a TN example.
|
| 702 |
+
|
| 703 |
+

|
| 704 |
+
Figure 16: LIME output for an FP example.
|
| 705 |
+
|
| 706 |
+
# E.2 Task 2: Analyzing the Reasoning Chain of InstructGPT
|
| 707 |
+
|
| 708 |
+
For the correctly classified samples by the best InstructGPT method, we perform further analysis to check the explanation quality of the model.
|
| 709 |
+
|
| 710 |
+
We show two motivating examples in Table 12, where the first example shows sufficient intermediate reasoning steps starting from what the paper contributes, to intermediate effects of the paper, and finally to the end social impact, while the second example lacks intermediate reasoning steps, and mentions only what the paper does, followed the UN SDG right after, without intermediate explanations.
|
| 711 |
+
|
| 712 |
+
Specifically, we denote a good "impact chain" as a complete and cohesive reasoning chain from the direct description of the paper's research output
|
| 713 |
+
|
| 714 |
+

|
| 715 |
+
Figure 17: LIME output for an FN example.
|
| 716 |
+
|
| 717 |
+
to intermediate impact, and end impact. Then we randomly select 200 test samples, and use the following two criteria to check the explanation quality of InstrutGPT: (1) whether the mentioned "impact chain(s)" sound cohesive and reasonable, e.g., not missing necessary intermediate reasoning steps, which is analogous to the precision score, and (2) whether there are other obvious impact chains that are missing, which is analogous to the recall score. For each criterion, we assign 1 for good performance, 0 for bad performance, and 0.5 for partially good performance.
|
| 718 |
+
|
| 719 |
+
We find that $77.6\%$ of the explanations contain cohesive and convincing reasoning chains, and $18\%$ of the explanations miss at least one obvious impact chain of how the paper contributes to UN SDGs.
|
| 720 |
+
|
| 721 |
+
# SDG classification explanation
|
| 722 |
+
|
| 723 |
+
There is an NLP paper with the title and abstract:
|
| 724 |
+
|
| 725 |
+
[Title + Abstract]
|
| 726 |
+
|
| 727 |
+
Is this paper contributing to the UN Sustainable Development Goals?
|
| 728 |
+
|
| 729 |
+
Answer yes or no. If the answer is "yes", mention which goal the paper is contributing to and in which way it is contributing to that goal.
|
| 730 |
+
|
| 731 |
+
[InstructGPT response]
|
| 732 |
+
|
| 733 |
+
# F More Insights
|
| 734 |
+
|
| 735 |
+
# F.1 Survey
|
| 736 |
+
|
| 737 |
+
We conduct a survey from July 31, 2021 to August 31, 2021 about "How current NLP researchers think about NLP4SG." We receive 80 responses from NLP researchers, among which more than $30\%$ are NLP professors. We reach the subjects at the ACL conference and also through emails. The demographics of the survey subjects are shown in Figure 18.
|
| 738 |
+
|
| 739 |
+
# An Example with Sufficient Reasoning Steps for the Impact Chain
|
| 740 |
+
|
| 741 |
+
Title: Extracting Symptoms and their Status from Clinical Conversations
|
| 742 |
+
|
| 743 |
+
Abstract: This paper describes novel models tailored for a new application, that of extracting the symptoms mentioned in clinical conversations along with their status. [...] We propose two novel deep learning approaches to infer the symptom names and their status: [...] This task stems from a realistic application of assisting medical providers in capturing symptoms mentioned by patients from their clinical conversations. [...]
|
| 744 |
+
|
| 745 |
+
InstructGPT Response: Yes, this paper is contributing to the UN Sustainable Development Goal of Good Health and Well-Being. The paper describes models that are designed to extract symptoms from clinical conversations, which can assist medical providers in capturing symptoms mentioned by patients. This can ultimately lead to better diagnosis and treatment of diseases, and improve overall health and well-being.
|
| 746 |
+
|
| 747 |
+
# An Example Lacking Intermediate Reasoning Steps for the Impact Chain
|
| 748 |
+
|
| 749 |
+
Title: Extracting Symptoms and their Status from Clinical Conversations
|
| 750 |
+
|
| 751 |
+
Abstract: Lexically-Triggered Hidden Markov Models for Clinical Document Coding. The automatic coding of clinical documents is an important task for today's healthcare providers. Though it can be viewed as multi-label document classification, the coding problem has the interesting property that most code assignments can be supported by a single phrase found in the input document. We propose a Lexically-Triggered Hidden Markov Model (LT-HMM) that leverages these phrases to improve coding accuracy. [...]
|
| 752 |
+
|
| 753 |
+
InstructGPT Response: Yes, this paper is contributing to the UN Sustainable Development Goal of good health and well-being. The paper is doing this by proposing a Lexically-Triggered Hidden Markov Model (LT-HMM) that leverages phrases to improve coding accuracy for clinical documents. This will ultimately help healthcare providers provide better care to patients.
|
| 754 |
+
|
| 755 |
+
Table 12: Examples of sufficient and insufficient reasoning about the impact chain of NLP4SG papers.
|
| 756 |
+
|
| 757 |
+
The question in the survey that contributes to the SDG visualization is "What social good applications do you think the NLP community should consider?", for which we manually parse the open-ended answers to corresponding SDGs. Example answers are NLP for Education (22.9%), physical and mental health (18.6%), and combating misinformation (17.1%).
|
| 758 |
+
|
| 759 |
+
# F.2 Ideal SDG alignment we want to push for
|
| 760 |
+
|
| 761 |
+
We show an ideal framework in Figure 19, where for each goal, NLP can help with a subset of the things. And the meaningful action space is the gap between the current NLP research landscape vs. what NLP can potentially do.
|
| 762 |
+
|
| 763 |
+

|
| 764 |
+
Background - Experience in NLP research
|
| 765 |
+
|
| 766 |
+

|
| 767 |
+
Background - What career stage(s) are you in?
|
| 768 |
+
|
| 769 |
+

|
| 770 |
+
Background - Main research area(s)
|
| 771 |
+
Figure 18: Backgrounds of the survey subjects, including the number of years in NLP research, career stage, and research areas.
|
| 772 |
+
|
| 773 |
+
# G More Website Details
|
| 774 |
+
|
| 775 |
+
# G.1 Implementation Details
|
| 776 |
+
|
| 777 |
+
Although we run the PaperAnalyzer on the entire ACL Anthology. For visualization, we mostly visualize 1980 to 2021, because there were not many papers before 1980, and also the progress tracking of NLP4SG in the recent decades might be more relevant for the audience. Also, since our data was crawled in the middle of 2022, the trend of 2022 is not comparable to the previous year 2021, so we omit 2022 for the moment, but it could be added in the future.
|
| 778 |
+
|
| 779 |
+
For the visualization of the Sankey diagram, we conduct some preprocessing over the salient scientific terms produced by the model. Since there are variances in the expression of the same task or method, such as "long short-term memory networks," and "LSTMs", we group similar terms to
|
| 780 |
+
|
| 781 |
+

|
| 782 |
+
Figure 19: Illustration of the action space NLP researchers can aim for.
|
| 783 |
+
|
| 784 |
+

|
| 785 |
+
|
| 786 |
+
gether with the following procedure:
|
| 787 |
+
|
| 788 |
+
- We get a vector representation for each word with Word2Vec (Mikolov et al., 2013). We train Word2Vec with the abstracts of all the ACL Anthology papers, we set the parameter window to 10 and vector size 100.
|
| 789 |
+
- We use the agglomerative clustering function in scikit-learn (Pedregosa et al., 2011) on the word vectors, with the parameter distance threshold set to 0.2.
|
| 790 |
+
- We measure the ratio score similarity between each word of a group to its centroid and just keep words in the cluster that have a similarity score greater than 75. We used the library "TheFuzz"10 which uses Levenshtein distance to compute its similarity measure.
|
| 791 |
+
- We take that automatic clustering as a starting point and then manually check each one of the clusters, add new elements and create new clusters if necessary.
|
| 792 |
+
|
| 793 |
+
# G.2 Demo on the Gold Data
|
| 794 |
+
|
| 795 |
+
As mentioned in the Limitations section, one constraint is that the visualizations are bottle-necked by the model performance. As a supplementary, we also provide the visualization based on our annotated NLP4SGPAPERS dataset, which is smaller but accurate.
|
| 796 |
+
|
| 797 |
+
We produce all the visualization figures mentioned in Section 5, but based on the ground-truth annotation in our NLP4SGPAPERS dataset. Figure 20 visualizes the proportion of NLP4SG papers over the years, where the proportion of NLP4SG papers steadily increased from 2000.
|
| 798 |
+
|
| 799 |
+
We also show the Sankey diagram, using the gold data only, in Figure 21 and the SDG visualization in Figure 22.
|
| 800 |
+
|
| 801 |
+

|
| 802 |
+
Figure 20: Percentage of social good-related papers (top) and the total number of papers (bottom) in NLP4SGPAPERS each year from 1980.
|
| 803 |
+
|
| 804 |
+

|
| 805 |
+
Figure 21: Sankey diagram based on gold annotations at https://nlp4sg.verbel.app/sankey_gold.
|
| 806 |
+
|
| 807 |
+

|
| 808 |
+
Figure 22: SDG visualization based on gold annotations at https://nlp4sg.verbel.app/sdg_gold.
|
2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1d49ae29481935a64a373da6551829f51bd2194c2e78db6d0c0a327e47435ad
|
| 3 |
+
size 1092734
|
2023/Beyond Good Intentions_ Reporting the Research Landscape of NLP for Social Good/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/9c6b6800-9da6-4040-92e8-0aab3c4bf7f8_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/9c6b6800-9da6-4040-92e8-0aab3c4bf7f8_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/9c6b6800-9da6-4040-92e8-0aab3c4bf7f8_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a96d746eb5d696721102a963fabe5628abf466c018139653d80ae39fb61cb6f
|
| 3 |
+
size 1179051
|
2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/full.md
ADDED
|
@@ -0,0 +1,482 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beyond Labels: Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture
|
| 2 |
+
|
| 3 |
+
Bingsheng Yao
|
| 4 |
+
|
| 5 |
+
Rensselaer Polytechnic Institute
|
| 6 |
+
|
| 7 |
+
Ishan Jindal
|
| 8 |
+
|
| 9 |
+
IBM Research
|
| 10 |
+
|
| 11 |
+
Lucian Popa
|
| 12 |
+
|
| 13 |
+
IBM Research
|
| 14 |
+
|
| 15 |
+
Yannis Katsis
|
| 16 |
+
|
| 17 |
+
IBM Research
|
| 18 |
+
|
| 19 |
+
Sayan Ghosh
|
| 20 |
+
|
| 21 |
+
UNC Chapel Hill
|
| 22 |
+
|
| 23 |
+
Lihong He
|
| 24 |
+
|
| 25 |
+
IBM Research
|
| 26 |
+
|
| 27 |
+
Yuxuan Lu
|
| 28 |
+
|
| 29 |
+
Northeastern University
|
| 30 |
+
|
| 31 |
+
Shashank Srivastava
|
| 32 |
+
|
| 33 |
+
UNC Chapel Hill
|
| 34 |
+
|
| 35 |
+
Yunyao Li
|
| 36 |
+
|
| 37 |
+
Apple
|
| 38 |
+
|
| 39 |
+
# James Hendler
|
| 40 |
+
|
| 41 |
+
Rensselaer Polytechnic Institute
|
| 42 |
+
|
| 43 |
+
# Dakuo Wang
|
| 44 |
+
|
| 45 |
+
Northeastern University
|
| 46 |
+
|
| 47 |
+
# Abstract
|
| 48 |
+
|
| 49 |
+
Real-world domain experts (e.g., doctors) rarely annotate only a decision label in their day-to-day workflow without providing explanations. Yet, existing low-resource learning techniques, such as Active Learning (AL), that aim to support human annotators mostly focus on the label while neglecting the natural language explanation of a data point. This work proposes a novel AL architecture to support experts' real-world need for label and explanation annotations in low-resource scenarios. Our AL architecture leverages an explanation-generation model to produce explanations guided by human explanations, a prediction model that utilizes generated explanations toward prediction faithfully, and a novel data diversity-based AL sampling strategy that benefits from the explanation annotations. Automated and human evaluations demonstrate the effectiveness of incorporating explanations into AL sampling and the improved human annotation efficiency and trustworthiness with our AL architecture. Additional ablation studies illustrate the potential of our AL architecture for transfer learning, generalizability, and integration with large language models (LLMs). While LLMs exhibit exceptional explanation-generation capabilities for relatively simple tasks, their effectiveness in complex real-world tasks warrants further in-depth study.
|
| 50 |
+
|
| 51 |
+
# 1 Introduction
|
| 52 |
+
|
| 53 |
+
State-of-the-art (SoTA) language models (Devlin et al., 2019; Radford et al., 2019; Winata et al.,
|
| 54 |
+
|
| 55 |
+

|
| 56 |
+
Figure 1: Our dual-model AL system architecture at every iteration: 1) the AL data selector chooses a few unlabeled examples; 2) human annotators provide an explanation and label for each data instance; 3) the annotated explanations are used to finetune the explanation-generation model; 4) the annotated labels and generated explanations are used to finetune the prediction model. Then, humans can review the predicted labels and generated explanations for unlabeled data and start the next iteration. Green arrows indicate the training target.
|
| 57 |
+
|
| 58 |
+
2021) demonstrate astonishing performance on various NLP tasks, including Question Answering (QA) and Question Generation (QG) (Rajpurkar et al., 2016; Duan et al., 2017; Kočisky et al., 2018; Yao et al., 2022), Natural Language Inference (NLI) (Bowman et al., 2015; Wang et al.,
|
| 59 |
+
|
| 60 |
+
2018), etc. Despite the superior generative capabilities, the lack of faithful explainability within these "black boxes" may lead to mistrust of their predictions (Lipton, 2018), where humans, on the other hand, can develop intermediate rationales to facilitate the decision-making process.
|
| 61 |
+
|
| 62 |
+
The lack of explainability and untrustworthiness of models is magnified in the real world (Drozdal et al., 2020), where domain experts rarely only annotate a decision label in their daily workflow without providing explanations (i.e., clinical diagnoses by clinicians) (Zhang et al., 2023), and humans need explanations to understand and trust model predictions (Zhang et al., 2021). Therefore, a few approaches were proposed to retrospectively analyze the probability distribution within the model or ask models to generate explanations along with predictions (Ribeiro et al., 2016; Lundberg and Lee, 2017; Yu et al., 2019; Rajagopal et al., 2021; Chen et al., 2021), despite, the former is still very difficult for laymen to understand while the latter explanations are not faithful toward predictions.
|
| 63 |
+
|
| 64 |
+
As researchers looked into the quality (Carton et al., 2020; Yao et al., 2023) of human-annotated natural language explanations (Camburu et al., 2018; Rajani et al., 2019; Aggarwal et al., 2021), they discovered numerous issues in existing datasets (Geva et al., 2019; Chmielewski and Kucker, 2020; Narang et al., 2020; Sun et al., 2022), such that the human annotations are of low quality and significant inconsistency. Furthermore, the ever-increasing costs in terms of labor, finances, and time for large-scale, high-quality data annotations remain a persistent challenge for the research community. This challenge has given rise to various methodologies to reduce reliance on human annotations, such as Active Learning (AL) (Settles, 2009). AL is a human-in-the-loop framework that utilizes AL sampling strategies to iteratively select a small number of representative examples, request oracle annotations, and subsequently fine-tune the model using the annotated data. However, prior AL works predominantly focus on labels and overlook the fact that real-world scenarios often need both labels and natural language explanations.
|
| 65 |
+
|
| 66 |
+
In this work, we propose a dual-model AL architecture for human annotation of labels and explanations, drawing inspiration from the human decision-making process. Our system consists of:
|
| 67 |
+
|
| 68 |
+
1) An explanation-generation model guided by human-provided explanations
|
| 69 |
+
|
| 70 |
+
2) A prediction model that accepts the data content and the generated explanations for prediction.
|
| 71 |
+
|
| 72 |
+
We integrate AL to reduce human annotation efforts and establish human trustworthiness by actively engaging humans in the training process. We design a novel data diversity-based AL sampling strategy to select the most representative examples by exploiting the explanation annotations, which is analogous to the prevalent core-set (Sener and Savarese, 2017) strategy. Our AL architecture aims to support low-resource model predictions and AI trustworthiness by explicitly generating natural language explanations. Specifically, we request label and free-form explanation annotations for a very limited number of examples (e.g., 3 or 10) selected by our AL sampling strategy at every AL iteration. Subsequently, the generated explanations serve as input for the final prediction, demonstrating the potential for these explanations to support the model's predictions faithfully.
|
| 73 |
+
|
| 74 |
+
We conduct two AL simulations with different amounts of samplings and iterations on a large-scale NLI dataset with human-annotated explanations to justify incorporating explanations in AL data selection can consistently outperform random, traditional data diversity-based, and model probability-based sampling strategies. We make the code publicly available<sup>1</sup>.
|
| 75 |
+
|
| 76 |
+
A human evaluation of perceived validity, explainability, and preference of the generated explanations among our system, a SoTA explanation-generation system, and human-annotated explanations shows that, despite human explanations being ranked highest, explanations generated by our system are preferred over the SOTA system. Additionally, we conduct three ablation studies to explore the capability and potential of our proposed AL architecture in transfer learning, generalizability, and incorporating large language models (LLMs) for explanation generation to further reduce human efforts. LLMs demonstrate exceptional explanation-generation capabilities on relatively simple tasks. However, their effectiveness in handling complex real-world tasks warrants in-depth study.
|
| 77 |
+
|
| 78 |
+
# 2 Related Work
|
| 79 |
+
|
| 80 |
+
# 2.1 Datasets with Natural Language Explanations
|
| 81 |
+
|
| 82 |
+
Wiegrefe and Marasovic (2021) conducted a com
|
| 83 |
+
|
| 84 |
+
prehensive review of 65 datasets with explanations and provided a 3-class taxonomy: highlights, free-text, and structured. Among the large-scale datasets with free-text explanations, e-SNLI (Camburu et al., 2018) is a prominent one, which extended the Stanford Natural Language Inference (SNLI) corpus (Bowman et al., 2015), a classification task to determine the inference relation between two textual contexts (premise and hypothesis): entailment, contradiction, or neutral. The e-SNLI dataset (examples are shown in Appendix A) contains human-annotated free-form explanations for 549, 367 examples in train, 9, 842 in validation, and 9, 824 in test split.
|
| 85 |
+
|
| 86 |
+
Another popular group of datasets extended the Commonsense QA (CQA v1.0 and v1.11 versions) datasets (Talmor et al., 2019), including two variants of Cos-E dataset (CoS-E v1.0 and CoS-E v1.11 (Rajani et al., 2019)) and the ECQA (Aggarwal et al., 2021) dataset. Many recent works (Narang et al., 2020; Sun et al., 2022) have found explanations in CoS-E to be noisy and low-quality, and thus, Aggarwal et al. (2021) carefully designed and followed the explanation annotation protocols to created ECQA, which is of higher quality compared with CoS-E.
|
| 87 |
+
|
| 88 |
+
In this paper, we leverage the e-SNLI dataset as the benchmark dataset for our AL simulation experiment because 1) the classification task is popular and representative, 2) the massive data size ensures data diversity, and 3) explanations for a classification task may provide more effective help compared to CQA task where training and testing data may be unrelated. We additionally conduct an ablation study on the ECQA dataset to explore the generalizability of our proposed AL architecture.
|
| 89 |
+
|
| 90 |
+
# 2.2 Active Learning for Data Annotation
|
| 91 |
+
|
| 92 |
+
Owning to the paucity of high-quality, large-scale benchmarks for a long tail of NLP tasks, learning better methods for low-resource learning is acquiring more attention, such as Active Learning (AL) (Sharma et al., 2015; Shen et al., 2017; Ash et al., 2019; Teso and Kersting, 2019; Kasai et al., 2019; Zhang et al., 2022). AL iteratively 1) selects samples from the unlabeled data pool (based on AL sampling strategies) and queries their annotation from human annotators, 2) fine-tunes the underlying model with newly annotated data, and 3) evaluates model performance.
|
| 93 |
+
|
| 94 |
+
A few AL surveys (Settles, 2009; Olsson, 2009;
|
| 95 |
+
|
| 96 |
+
Fu et al., 2013; Schröder and Niekler, 2020; Ren et al., 2021) of sampling strategies provide two high-level selection concepts: data diversity and model probability. We propose a novel data diversity-based strategy that leverages human-annotated explanations to select data. Our data selector shares a similar concept with the established data-based clustering strategies (Xu et al., 2003; Nguyen and Smeulders, 2004) and core-set (Sener and Savarese, 2017) that aim to select the most representative data while maximizing diversity. Compared with model probability-based strategies, data diversity-based ones are model-agnostic and need much less computing resources, whereas the former requires inference on unlabeled examples to calculate probability.
|
| 97 |
+
|
| 98 |
+
In addition to AL, Marasovic et al. (2022) introduces a few-shot self-rationalization setting that asks a model to generate free-form explanations and the labels simultaneously. Similarly, Bhat et al. (2021) proposes a multi-task self-teaching framework with only 100 train data per category, and Bragg et al. (2021) provides guidance on unifying evaluation for few-shot settings.
|
| 99 |
+
|
| 100 |
+
# 2.3 Natural Language Explanation Generation
|
| 101 |
+
|
| 102 |
+
Different approaches have been explored to enhance the model's explainability by asking them to generate natural language explanations. Some of them (Talmor et al., 2020; Tafjord et al., 2021; Latcinnik and Berant, 2020) propose systems to generate text explanations for specific tasks. Dalvi et al. (2022) propose a 3-fold reasoning system that generates a reasoning chain and asks users for correction. Other recent works (Paranjape et al., 2021; Liu et al., 2022; Chen et al., 2022) explore different prompt-based approaches to generate additional information for the task and examine the robustness and validity. We believe that our dual-model system provides and uses explanations explicitly towards prediction, while the self-rationalization setting falls short. Hase and Bansal (2022) argues that explanations are most suitable as input for predicting, and Kumar and Talukdar (2020) designed a system to generate label-wise explanations, which is aligned with our design hypothesis. Nevertheless, there exist other works (Wiegreffe et al., 2021; Marasovic et al., 2022; Zelikman et al., 2022) that explore the use of self-rationalization setting. We include the self-rationalization setting in our human
|
| 103 |
+
|
| 104 |
+
evaluation of the explanation quality in Section 4.4.
|
| 105 |
+
|
| 106 |
+
# 3 Dual-Model AL System
|
| 107 |
+
|
| 108 |
+
# 3.1 System Architecture
|
| 109 |
+
|
| 110 |
+
Figure 1 illustrates our proposed dual-model AL framework. The system comprises three primary modules: 1) an explanation-generation model that takes the data, fine-tunes on human-annotated explanations, and generates free-form explanations; 2) a prediction model that accepts the data content and the generated explanations as input, fine-tunes on human-provided labels, and predicts the final label; 3) an AL data selector that selects a set of representative examples in terms of the semantic similarity between each unlabeled data text and labeled data's human explanations. The AL data selector plays a crucial role in finding a small, highly representative set of samples at every iteration, and further details of our AL selector are in Section 3.2.
|
| 111 |
+
|
| 112 |
+
In each AL iteration, after the data selector samples unlabeled examples for human annotations, we first fine-tune the explanation-generation model supervised by human-provided free-form explanations. Then, we instruct this model to generate explanations for the same set of data. Subsequently, we fine-tune a prediction model using the data content and explanations generated by the previous model as input, supervised by human-annotated labels. The fine-tuning process teaches the prediction model to rely on the explanations for predictions (Yao et al., 2023). Additionally, we fine-tune the prediction model with model-generated explanations instead of human-annotated ones for better alignment during inference, especially when no human annotations are available. After each AL iteration, we evaluate the framework on a standalone evaluation data split.
|
| 113 |
+
|
| 114 |
+
Both the explanation-generation model and the prediction model can be any SoTA sequence-to-sequence models, such as BART (Lewis et al., 2020) and T5 (Raffel et al., 2020). In this work, we utilize T5 as the backbone for both models and design a prompt-based input template for both models, as shown in Table 1, inspired by a few existing works (Schick and Schütze, 2021; Gao et al., 2021; Zhou et al., 2023). To elucidate how each prompt addresses a different part of data content:
|
| 115 |
+
|
| 116 |
+
1) "explain:" and "question:" are the leading prompts in the explanation-generation model and the prediction model, respectively, indicating different tasks for both models and are followed by
|
| 117 |
+
|
| 118 |
+
# Explanation-generation Model:
|
| 119 |
+
|
| 120 |
+
Training Input explain: what is the relationship between
|
| 121 |
+
|
| 122 |
+
[hypothesis] and [premise] choice1: entailment choice2:
|
| 123 |
+
|
| 124 |
+
neutral choice3: contradiction
|
| 125 |
+
|
| 126 |
+
Training Target [human annotated explanations]
|
| 127 |
+
|
| 128 |
+
Model Generation [generated free-form explanation]
|
| 129 |
+
|
| 130 |
+
# Prediction Model:
|
| 131 |
+
|
| 132 |
+
Training Input question: what is the relationship between [hypothesis] and [premise] choice1: entailment choice2: neutral choice3: contradiction $< \mathrm{sep}>$ because [generated free-form explanation]
|
| 133 |
+
|
| 134 |
+
Training Target [human annotated label]
|
| 135 |
+
|
| 136 |
+
Model Prediction [predicted category]
|
| 137 |
+
|
| 138 |
+
Table 1: The prompt-based input templates for both models in our system, with the e-SNLI (Camburu et al., 2018) dataset as an example.
|
| 139 |
+
|
| 140 |
+
the original task content. For the e-SNLI dataset, the task content becomes "what is the relationship between" the hypothesis and premise sentences;
|
| 141 |
+
|
| 142 |
+
2) "choiceN" is followed by candidate answers, where $N \in [1,3]$ for the e-SNLI dataset corresponds to entailment, neutral, and contradiction. We pass the choices to the explanation-generation model, expecting that it will learn to generate freetext explanations that may reflect potential relationships between the data content and the task;
|
| 143 |
+
3) for the prediction model, an additional prompt "because:" is followed by the explanations generated by the explanation-generation model. We use a special token to separate the original task content and the explanation."
|
| 144 |
+
|
| 145 |
+
# 3.2 AL Data Selector
|
| 146 |
+
|
| 147 |
+
# Algorithm 1 Our Data Diversity-based AL Selector
|
| 148 |
+
|
| 149 |
+
# Variables:
|
| 150 |
+
|
| 151 |
+
$D_{train} \Rightarrow$ unlabeled data in train split
|
| 152 |
+
|
| 153 |
+
$D_{prev} \Rightarrow$ previously-annotated data
|
| 154 |
+
|
| 155 |
+
$d_p^{data} \Rightarrow$ data content as a string of $d_p$ (for e-SNLI, it is the premise and hypothesis
|
| 156 |
+
|
| 157 |
+
$d_p^{exp} \Rightarrow$ previously-annotated free-form explanation of $d_p$ $x \Rightarrow$ number of data to be selected each iteration
|
| 158 |
+
|
| 159 |
+
$n_{train} = \text{len}(D_{train})$ ; $n_{prev} = \text{len}(D_{prev})$
|
| 160 |
+
|
| 161 |
+
for $D_{i}\in D_{train}$ do
|
| 162 |
+
|
| 163 |
+
if iteration $= = 0$ then
|
| 164 |
+
|
| 165 |
+
$score_{d_i} = \frac{1}{n_{train}} \cdot \sum_{d_p \in D_{train}} similarity(d_i^{data}, d_p^{data})$
|
| 166 |
+
|
| 167 |
+
else
|
| 168 |
+
|
| 169 |
+
$score_{d_i} = \frac{1}{n_{prev}} \cdot \sum_{d_p \in D_{prev}} similarity(d_i^{data}, d_p^{exp})$
|
| 170 |
+
|
| 171 |
+
end if
|
| 172 |
+
|
| 173 |
+
end for
|
| 174 |
+
|
| 175 |
+
$D_{train}^{\prime}$ = rank $D_{train}$ by score
|
| 176 |
+
|
| 177 |
+
$D_{\text{selected}} = \text{select} x \text{ data from } D_{\text{train}}^{\prime} \text{ with equal intervals}$
|
| 178 |
+
|
| 179 |
+
Human annotation on $D_{\text{selected}}$
|
| 180 |
+
|
| 181 |
+
$D_{train} = D_{selected};D_{prev} + = D_{selected}$
|
| 182 |
+
|
| 183 |
+
According to recent surveys of AL (Settles, 2009; Olsson, 2009; Fu et al., 2013; Schroder and Niekler, 2020; Ren et al., 2021), there are two primary approaches for AL data selection:
|
| 184 |
+
|
| 185 |
+
model probability-based and data diversity-based approaches. Model probability-based approaches, firstly, aim to select examples about which the models are least confident. These approaches involve conducting inference on unlabeled data at every iteration, which consumes more time and computing resources. Unlike data diversity-based approaches, they are not model-agnostic, which may affect the effectiveness of the sampling strategies depending on the model in use.
|
| 186 |
+
|
| 187 |
+
Secondly, data diversity-based approaches leverage various data features, such as data distribution and similarity, to select a representative set of examples from the candidate pool while maximizing diversity. This paper introduces a data diversity-based AL selection strategy that shares a concept similar to traditional data-based clustering strategy Nguyen and Smeulders (2004) and core-set strategy. However, our strategy differs from traditional strategies because ours incorporates human-annotated explanations for selection. More specifically, our data selector aims to choose examples that are representative of the unlabeled data pool in terms of average similarity to human-annotated explanations of all previously-labeled data while maximizing the diversity of newly-selected data.
|
| 188 |
+
|
| 189 |
+
We assume that human-annotated explanations contribute significantly to the model's prediction and convey more information than the original data content alone. These explanations can reveal underlying relationships between concepts in the data content and the relations between the data content and choices. For instance, in the e-SNLI dataset, the data content consists of the concatenation of hypothesis and premise sentences. Later, we construct a baseline selector in the AL simulation experiment (Sec. 4.2) with the same setup, except that it only compares the similarity between data content. Additionally, we include random baseline and probability-based baseline strategies. Our results demonstrate that using human-annotated explanations for data selection consistently leads to improved prediction performance compared to using data content alone.
|
| 190 |
+
|
| 191 |
+
Here we delve into the details of our data-based AL data selector (shown in Algorithm 1). For each unlabeled data instance, we use sentence-transformers (Reimers and Gurevych, 2019) to calculate the semantic similarity between its data content and every previously annotated explanation. Then, we take the averaged similarity scores for
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
Figure 2: Preliminary experiment result of our dual-model system on e-SNLI (Camburu et al., 2018) dataset.
|
| 195 |
+
|
| 196 |
+
each unlabeled example and rank all the unlabeled data in terms of the average similarity score. To select the most representative data in the candidate pool while maximizing diversity, we choose examples from the ranked data list with equal intervals. Note that in the first iteration, since no previously annotated explanations are available, we compare the similarity between the data content.
|
| 197 |
+
|
| 198 |
+
# 4 Evaluation
|
| 199 |
+
|
| 200 |
+
We conduct the AL simulation experiment with the e-SNLI (Camburu et al., 2018) dataset. The primary objective is to justify that our proposed dual-model framework, when combined with human-annotated explanations in AL data selection, can effectively identify more representative and helpful data from a reasonably large-scale dataset.
|
| 201 |
+
|
| 202 |
+
Given that e-SNLI dataset comprises a substantial 549,367 examples in the train split, we performed a preliminary experiment to determine a reasonable number of candidate data for the AL simulation. This approach aims to save time and computing resources. Our goal is to identify an ideal candidate data size that would not introduce potentially biased feature distributions or significantly degrade model performance when compared to fine-tuning on the full dataset. We employ the pre-trained T5-base (Raffel et al., 2020) as the backbone for all the experiments and provide the hyperparameters in Appendix C.
|
| 203 |
+
|
| 204 |
+
# 4.1 Preliminary Experiment
|
| 205 |
+
|
| 206 |
+
The expected outcome of the aforementioned preliminary experiment is 1) to determine the upper bound of performance and observe how the performance of our dual-model system gradually decreases as we reduce the amount of training data, and 2) to identify a suitable candidate data size for
|
| 207 |
+
|
| 208 |
+
the AL simulation.
|
| 209 |
+
|
| 210 |
+
We also randomly sample the same amount of data for each category in the preliminary experiment to minimize potential bias introduced by uneven distribution, especially when the sampling size per iteration is very small. Specifically, we select eight different sampling amounts per category from the e-SNLI training split, ranging from [10, 50, 100, 500, 1500, 3000, 5000] and the complete data per category. Since the e-SNLI dataset consists of three categories: entailment, neutral, and contradiction, the total sampling size in each setting becomes [30, 150, 300, 1500, 4500, 9000, 15000, and 549, 367 (full train split)], respectively, as shown in Figure 2.
|
| 211 |
+
|
| 212 |
+
For each sampling setting, we conduct three trials to obtain an averaged result. In each trial, we fine-tune the explanation generation model and the prediction model once and conduct a hyperparameter search. The framework is then evaluated on the test split of e-SNLI (9, 824 examples).
|
| 213 |
+
|
| 214 |
+
The preliminary experiment results are shown in Figure 2, where the blue dot denotes the averaged prediction accuracy (in percentages) at each setting, and the red bar indicates the standard deviation of accuracy among three trials. Notably, with more than 1,500 data per category, the performance drop compared to the full train split is inconspicuous (84.08% to 87.02%), while the standard deviation is below 0.5%. This observation indicates that using 1% of the original training data size only leads to a performance drop of merely 3%. Additionally, we found that even with only 10 data points per category (30 data in total), our system still achieves an average accuracy of 45%, although the deviation is relatively significant. Furthermore, when we extend the training data size from 100 to 500 data per category (300 to 1500 in total), a reasonably applicable setting in real-world scenarios, the accuracy can reach over 80% accuracy, showing promising results considering that the amount of training data is much smaller than the size of evaluation samples.
|
| 215 |
+
|
| 216 |
+
# 4.2 Simulation Experiment: Evaluation Setup
|
| 217 |
+
|
| 218 |
+
Based on the findings from the preliminary experiment, we decide to use 3,000 examples per category (9,000 in total) as the candidate unlabeled data pool for the Active Learning simulation.
|
| 219 |
+
|
| 220 |
+
Inspired by the few-shot evaluation guidance (Bragg et al., 2021), we conduct 80 trials for each AL setting and calculate the averaged per
|
| 221 |
+
|
| 222 |
+

|
| 223 |
+
(a) Setting 1: 9 examples per iteration + 20 iterations
|
| 224 |
+
|
| 225 |
+

|
| 226 |
+
(b) Setting 2: 30 examples per iteration + 15 iterations
|
| 227 |
+
Figure 3: Results of AL Simulation experiment on our Dual-model system with different data selectors.
|
| 228 |
+
|
| 229 |
+
formance for ours and the baseline data selectors at every iteration. During each trial, we start by randomly selecting 3,000 examples per category from the complete train dataset, then use the same data to conduct AL simulations with different data selectors in our dual-model framework. This way, we can ensure the performance differences during each trial are not due to different unlabeled data pools but to actual differences in the performance of the AL data selectors. For the evaluation, we randomly sample 300 examples per category (900 in total) from the test split of e-SNLI every trial and evaluate with the same test data after each iteration.
|
| 230 |
+
|
| 231 |
+
The AL simulation comprises two settings, where we simulate annotating 180 and 450 data instances, respectively. These two levels of data annotations reasonably mimic real-world scenarios where users have limited budgets, annotators, and data for annotation. Specifically, we experiment with the following two settings:
|
| 232 |
+
|
| 233 |
+
1) For every iteration, select 3 examples per category (9 in total) with 20 iterations, which results in 180 examples altogether;
|
| 234 |
+
2) For every iteration, select 10 examples per category (30 in total) with 15 iterations, which results in 450 examples altogether.
|
| 235 |
+
|
| 236 |
+
Our AL simulation experiment involves our data selector, two baselines, and an additional model
|
| 237 |
+
|
| 238 |
+
probability-based selector. Our data selector, described in Section 3.2, is a novel data diversity-based sampling strategy that leverages human-annotated explanations. For comparison, we use a random data selector as the basic benchmark and another traditional data diversity-based algorithm that shares the same procedures with ours, except that it only compares the similarity between each unlabeled data's content and the previously-labeled data's content, not using the human-annotated explanations. The probability-based selector conducts inference on unlabeled data and selects examples with the least probability at every iteration. We fix the same set of hyperparameters (Appendix C).
|
| 239 |
+
|
| 240 |
+
Worth noting that our data selector does not use task content in previously labeled examples; instead, we exclusively rely on human-annotated explanations to demonstrate their greater utility compared to task content. In the first iteration, both ours and the data diversity baseline perform identically because no previously annotated data is available.
|
| 241 |
+
|
| 242 |
+
# 4.3 Simulation Experiment: Result
|
| 243 |
+
|
| 244 |
+
The AL simulation results are presented in Figure 3. To explain the diagrams in detail, each dot is the average accuracy on 80 trials at every iteration for each data selector. The green/yellow/red/blue dots denote our data selector/data diversity-based baseline/random selector/model probability-based selector, respectively. We observe that our data selector consistently maintains an advantage over the traditional data-based sampling baseline, while the traditional one consistently beats the random baseline by a significant margin. Additionally, we observe that the model probability-based selector outperforms the random baseline in both settings.
|
| 245 |
+
|
| 246 |
+
To summarize, our data selector outperforms both baselines in every iteration for both AL settings, indicating that using human-annotated explanations in the data selector with our dual-model AL framework is more beneficial than using the data content alone. Even with only 180 and 450 data to be annotated in each setting, our system can achieve $55\%$ and $72\%$ accuracy on average, respectively. We anticipate that our experiment will reach a similar performance around $85\%$ as shown in Figure 2 but converge much faster than the random selector if we continue the AL process.
|
| 247 |
+
|
| 248 |
+
# 4.4 Human Evaluation Setup and Results
|
| 249 |
+
|
| 250 |
+
To qualitatively evaluate the explainability of the generated explanations from our system against
|
| 251 |
+
|
| 252 |
+
<table><tr><td>Yes / No Count</td><td>Label</td><td>Exp.</td><td>Exp. → Label</td><td>Trustworthy AI</td></tr><tr><td>Ground-truth</td><td>83 / 7</td><td>86 / 4</td><td>87 / 3</td><td>78 / 12</td></tr><tr><td>Dual-model (ours)</td><td>64 / 26</td><td>68 / 22</td><td>48 / 42</td><td>35 / 55</td></tr><tr><td>Self-rationalization</td><td>42 / 48</td><td>67 / 23</td><td>51 / 39</td><td>21 / 69</td></tr></table>
|
| 253 |
+
|
| 254 |
+
Table 2: Human evaluation results.
|
| 255 |
+
|
| 256 |
+
a SoTA few-shot explanation-generation system, the self-rationalization baseline (Marasovic et al., 2022), and the human ground-truth, we recruited three human participants to conduct a human evaluation following the prior literature (Xu et al., 2022). The self-rationalization baseline is a T5-base model, which uses the same input template of our explanation-generation model shown in Table 1 but asks the model to generate both the label and explanation simultaneously.
|
| 257 |
+
|
| 258 |
+
We leverage AL setting 1 described in Section 4.2 to fine-tune our system with a total of 180 examples over 20 epochs and use the same 180 examples to fine-tune the self-rationalization baseline. Both systems are used to infer the complete test split of e-SNLI after fine-tuning; then, we randomly sample 80 examples for the human study.
|
| 259 |
+
|
| 260 |
+
For each data instance, the rater is presented with the textual content of the premise and hypothesis of the original data paired with three sets of labels and explanations from our system, baseline system, and the human-annotated ground-truth from the eSNLI dataset. Participants who are not aware of the source of each label-explanation pair are asked to answer four questions with [Yes/No]:
|
| 261 |
+
|
| 262 |
+
1) Is the Prediction correct?
|
| 263 |
+
2) Is the Explanation itself a correct statement?
|
| 264 |
+
3) Regardless of whether the AI Prediction and Explanation is correct or not, can the Explanation help you to understand why AI has such Prediction?
|
| 265 |
+
4) Will you trust & use this AI in real-world decision-making?
|
| 266 |
+
|
| 267 |
+
To ensure inter-coder consistency, we first conduct a 30-min tutorial session to educate all three participants with ten examples to build a consensus among them. In the actual experiment, each of the three participants is then asked to rate 30 data instances (20 unique ones and 10 shared ones), which make up a total of 70 data instances, and 360 ratings (3 rater*30 instances*4 questions). We first calculated the Inter-Rater Reliability score (IRR) among them for each of the four questions. With the IRR score of (Q1: 1, Q2: 0.89, Q3: 0.98, Q4: 0.87), we are confident that the three coders have the same criteria for further result analysis.
|
| 268 |
+
|
| 269 |
+
Our questions all have binary responses, and we
|
| 270 |
+
|
| 271 |
+
rely on Chi-square analysis (Elliott and Woodward, 2007) to examine the statistical significance of the rating groups' differences. As shown in Table 2, the participants rated human ground-truth explanations highest across all four dimensions. Between our system and the few-shot self-rationalization system (baseline), participants believe our systems' predicted labels are more likely to be correct, with 64 'valid' ratings out of 90 for our system versus 42 out of 90 ratings for the baseline. Chi-square test indicates such a difference is statistically significant $(\chi^2(1) = 21.61, p < 0.01)$ .
|
| 272 |
+
|
| 273 |
+
When asked whether they would trust the AI if there were such AI systems supporting their real-world decision-making, 35 out of 90 answered 'Yes' for our system, and it is significantly better than the baseline system (21 'Yes' out of 90) $(\chi^2(1) = 12.17, p < 0.01)$ . In comparison, 78 out of 90 times people voted that they would trust the human-annotated explanation's quality.
|
| 274 |
+
|
| 275 |
+
As for Question 2 ("the validity of the generated explanation") and Question 3 ("whether the generated explanation is supporting its prediction"), the human evaluation fails to suggest statistically meaningful results between our system and the baseline system $(\chi^2(1) = 0.06, p = 0.89$ for explanation validity, and $\chi^2(1) = 0.41, p = 0.52$ for explanation supporting prediction). In summary, human participants believe our system can outperform the baseline system on the label prediction's quality and the trustworthiness of AI dimensions. Still, there is a large space to improve as human evaluators believe the ground-truth label and explanation quality is much better than either AI system.
|
| 276 |
+
|
| 277 |
+
# 4.5 Ablation Study 1: Transfer to Multi-NLI
|
| 278 |
+
|
| 279 |
+
We conduct an ablation study with transfer learning through AL simulation from e-SNLI to Multi-NLI (Williams et al., 2018). This study explores whether the explanation-generation model trained on e-SNLI is helpful for AL on a similar task.
|
| 280 |
+
|
| 281 |
+
The transfer-learning ablation study consists of the following steps: 1) fine-tune an explanation-generation model using our AL framework on the e-SNLI dataset; 2) freeze the explanation-generation model and use it to generate explanations in the AL simulation for Multi-NLI; 3) fine-tune the prediction model for Multi-NLI at every iteration. Unlike the e-SNLI experiment, our AL data selection algorithm will use model-generated explanations to select examples at every iteration in the transfer learn
|
| 282 |
+
|
| 283 |
+

|
| 284 |
+
(a) Setting 1: 9 examples per iteration + 20 iterations
|
| 285 |
+
|
| 286 |
+

|
| 287 |
+
(b) Setting 2: 30 examples per iteration + 15 iterations
|
| 288 |
+
Figure 4: Ablation study results of AL simulation experiment on our Dual-model system with different data selectors on ECQA dataset.
|
| 289 |
+
|
| 290 |
+
ing AL simulation. We fine-tune the explanation-generation models on e-SNLI with the same two settings in the previous experiment, average the result on 15 trials of experiments, and keep consistent with every other hyper-parameters.
|
| 291 |
+
|
| 292 |
+
The ablation results are shown in Figure 6 of Appendix B. The blue/red lines denote the explanation-generation model is fine-tuned on e-SNLI with each setting in Section 4.2 correspondingly. We observe that the explanation-generation model consistently provided helpful explanations, leading to an improvement in the system's prediction performance, with accuracy reaching more than $65\%$ . In addition, the explanation-generation model fine-tuned on more data can perform better, suggesting that it had learned to generate more helpful explanations.
|
| 293 |
+
|
| 294 |
+
# 4.6 Ablation Study 2: Our AL Framework on ECQA
|
| 295 |
+
|
| 296 |
+
We additionally conduct an AL Simulation experiment on ECQA (Aggarwal et al., 2021) (a recent dataset extends the CommonsenseQA dataset with high-quality human-annotated explanations) with our data selector, random baseline, and similarity-based baseline that does not use explanations. We comply with the same experiment settings for the eSNLI AL simulations described in Section 4.2. The
|
| 297 |
+
|
| 298 |
+

|
| 299 |
+
(a) e-SNLI Dataset
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
(b) ECQA Dataset
|
| 303 |
+
Figure 5: Ablation study results of AL simulation experiment with FLAN-T5-XL for explanation (exp.) generation in our Dual-model framework compared with best human-annotated explanations on e-SNLI (top) and ECQA (bottom) datasets.
|
| 304 |
+
|
| 305 |
+
results are shown in Figure 4, where our proposed data selection strategy can consistently outperform both baselines in both simulation settings. Interestingly, the similarity-based baseline performs similarly to the random baseline, which could be because using data content alone is not sufficient to select more helpful and representative examples while using human-annotated explanations can facilitate better data selection consistently.
|
| 306 |
+
|
| 307 |
+
# 4.7 Ablation Study 3: LLM for Explanation Generation
|
| 308 |
+
|
| 309 |
+
The recent prevalence of instructional-finetuned large language models (LLMs) (Wei et al., 2021; Chowdhery et al., 2022; Ouyang et al., 2022) with exceptional generation capabilities off-the-shelf enabled a straightforward idea upon our dual-model framework: can LLMs generate natural language explanations that are on par or even of higher quality than human-annotated ones, to facilitate the prediction model fine-tuning process? We conduct ablation experiments to leverage FLAN-T5-XL (Chung et al., 2022) for explanation generation in our framework to substitute the T5 model fine-tuned on human explanations (LLM-AL, hereinafter). We conduct the AL simulations
|
| 310 |
+
|
| 311 |
+
on e-SNLI and ECQA datasets to explore whether we can further reduce human annotation efforts.
|
| 312 |
+
|
| 313 |
+
The results are presented in Figure 5, where a horizontal dotted line represents the benchmark of the explanation generation model fine-tuned on human-annotated explanations in Section 4.3 and 4.6. The LLM-AL framework significantly outperforms the explanation generation model guided by human annotation in both Active Learning settings. However, we hypothesize the LLM's explanation generation capability can vary from task to task. It may be highly efficient in relatively easy tasks, such as e-SNLI and ECQA datasets, both of which are training datasets for FLAN-T5. Yet, LLMs may struggle to provide helpful explanations in complex real-world domain-specific tasks, where human experts' feedback may still be necessary and preferred. This leads to another potential avenue for future work: exploring the capability and limitations of leveraging LLMs for explanation generation in real-world scenarios.
|
| 314 |
+
|
| 315 |
+
# 5 Conclusion and Future Work
|
| 316 |
+
|
| 317 |
+
In summary, this paper introduces a novel dual-model AL system designed to address the common real-world need for domain experts to provide both classification labels and natural language explanations. Our system comprises a purpose-built data diversity-based AL example selector and two sequence-to-sequence language models, one for explanation generation and the other for label prediction. Through an AL simulation evaluation and a human assessment of the e-SNLI dataset, our results demonstrate the effectiveness of explanations in AL sampling with our system. They consistently outperform both baselines, and the explanations generated by our system are preferred over a state-of-the-art explanation-generation system.
|
| 318 |
+
|
| 319 |
+
Our work lays a step-stone towards a human-centered interactive AI solution (it can be easily implemented as an interactive system as illustrated in Fig 7 in Appendix D) that supports domain experts for their data annotation tasks. Many real-world tasks still require domain experts to review and annotate each data instance with a decision and an explanation for accountability purposes (e.g., a lawyer reviewing and signing off on a legal document). We invite fellow researchers to join us in advancing this research direction, essential for supporting this prevalent real-world requirement.
|
| 320 |
+
|
| 321 |
+
# 6 Limitations
|
| 322 |
+
|
| 323 |
+
In this paper, we demonstrate the effectiveness of our framework on a representative large-scale classification dataset (e-SNLI), but there are many other NLP tasks, such as question answering and commonsense reasoning. The generalizability of our system on other NLP tasks remains unexplored. Another limitation is that this work proposed a data diversity-based AL selector design. We benchmark it with a traditional data diversity-based selector as well as a model probability-based design to demonstrate the usefulness of explanations. Prior literature has proposed other designs, such as ensemble approaches, which are not evaluated in this paper.
|
| 324 |
+
|
| 325 |
+
# Acknowledgements
|
| 326 |
+
|
| 327 |
+
This work was supported by the Rensselaer-IBM AI Research Collaboration (http://airc.rpi.edu), which is part of the IBM AI Horizons Network (http://ibm.biz/AIHorizons).
|
| 328 |
+
|
| 329 |
+
# References
|
| 330 |
+
|
| 331 |
+
Shourya Aggarwal, Divyanshu Mandowara, Vishwajeet Agrawal, Dinesh Khandelwal, Parag Singla, and Dinesh Garg. 2021. *Explanations for Common-senseQA: New Dataset and Models*. 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 3050–3065, Online. Association for Computational Linguistics.
|
| 332 |
+
Jordan T Ash, Chicheng Zhang, Akshay Krishnamurthy, John Langford, and Alekh Agarwal. 2019. Deep batch active learning by diverse, uncertain gradient lower bounds. arXiv preprint arXiv:1906.03671.
|
| 333 |
+
Meghana Moorthy Bhat, Alessandro Sordoni, and Subhabrata Mukherjee. 2021. Self-training with few-shot rationalization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 10702-10712, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 334 |
+
Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. 2015. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 632-642, Lisbon, Portugal. Association for Computational Linguistics.
|
| 335 |
+
Jonathan Bragg, Arman Cohan, Kyle Lo, and Iz Beltagy. 2021. Flex: Unifying evaluation for few-shot nlp. Advances in Neural Information Processing Systems, 34:15787-15800.
|
| 336 |
+
|
| 337 |
+
Oana-Maria Camburu, Tim Rocktäschel, Thomas Lukasiewicz, and Phil Blunsom. 2018. e-SNLI: Natural language inference with natural language explanations. Advances in Neural Information Processing Systems, 31.
|
| 338 |
+
Samuel Carton, Anirudh Rathore, and Chenhao Tan. 2020. Evaluating and characterizing human rationales. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 9294-9307, Online. Association for Computational Linguistics.
|
| 339 |
+
Hanxiong Chen, Xu Chen, Shaoyun Shi, and Yongfeng Zhang. 2021. Generate natural language explanations for recommendation. arXiv preprint arXiv:2101.03392.
|
| 340 |
+
Howard Chen, Jacqueline He, Karthik Narasimhan, and Danqi Chen. 2022. Can rationalization improve robustness? In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3792-3805, Seattle, United States. Association for Computational Linguistics.
|
| 341 |
+
Michael Chmielewski and Sarah C Kucker. 2020. An mturk crisis? shifts in data quality and the impact on study results. Social Psychological and Personality Science, 11(4):464-473.
|
| 342 |
+
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2022. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311.
|
| 343 |
+
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.
|
| 344 |
+
Bhavana Dalvi, Oyvind Tafjord, and Peter Clark. 2022. Towards teachable reasoning systems. arXiv preprint arXiv:2204.13074.
|
| 345 |
+
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.
|
| 346 |
+
Jaimie Drozdal, Justin Weisz, Dakuo Wang, Gaurav Dass, Bingsheng Yao, Changruo Zhao, Michael Muller, Lin Ju, and Hui Su. 2020. Trust in automl: exploring information needs for establishing trust in automated machine learning systems. In Proceedings of the 25th international conference on intelligent user interfaces, pages 297-307.
|
| 347 |
+
|
| 348 |
+
Nan Duan, Duyu Tang, Peng Chen, and Ming Zhou. 2017. Question generation for question answering. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 866-874, Copenhagen, Denmark. Association for Computational Linguistics.
|
| 349 |
+
Alan C Elliott and Wayne A Woodward. 2007. Statistical analysis quick reference guidebook: With SPSS examples. Sage.
|
| 350 |
+
Yifan Fu, Xingquan Zhu, and Bin Li. 2013. A survey on instance selection for active learning. Knowledge and information systems, 35:249-283.
|
| 351 |
+
Tianyu Gao, Adam Fisch, and Danqi Chen. 2021. Making pre-trained language models better few-shot learners. 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 3816-3830, Online. Association for Computational Linguistics.
|
| 352 |
+
Mor Geva, Yoav Goldberg, and Jonathan Berant. 2019. Are we modeling the task or the annotator? an investigation of annotator bias in natural language understanding datasets. arXiv preprint arXiv:1908.07898.
|
| 353 |
+
Peter Hase and Mohit Bansal. 2022. When can models learn from explanations? a formal framework for understanding the roles of explanation data. In Proceedings of the First Workshop on Learning with Natural Language Supervision, pages 29-39, Dublin, Ireland. Association for Computational Linguistics.
|
| 354 |
+
Jungo Kasai, Kun Qian, Sairam Gurajada, Yunyao Li, and Lucian Popa. 2019. Low-resource deep entity resolution with transfer and active learning. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5851-5861, Florence, Italy. Association for Computational Linguistics.
|
| 355 |
+
Tomáš Kocisky, Jonathan Schwarz, Phil Blunsom, Chris Dyer, Karl Moritz Hermann, Gábor Melis, and Edward Grefenstette. 2018. The NarrativeQA reading comprehension challenge. Transactions of the Association for Computational Linguistics, 6:317-328.
|
| 356 |
+
Sawan Kumar and Partha Talukdar. 2020. NILE: Natural language inference with faithful natural language explanations. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8730-8742, Online. Association for Computational Linguistics.
|
| 357 |
+
Veronica Latcinnik and Jonathan Berant. 2020. Explaining question answering models through text generation. arXiv preprint arXiv:2004.05569.
|
| 358 |
+
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. BART: Denoising sequence-to-sequence pre-training
|
| 359 |
+
|
| 360 |
+
for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7871-7880, Online. Association for Computational Linguistics.
|
| 361 |
+
Zachary C Lipton. 2018. The mythos of model interpretability: In machine learning, the concept of interpretability is both important and slippery. Queue, 16(3):31-57.
|
| 362 |
+
Jiacheng Liu, Alisa Liu, Ximing Lu, Sean Welleck, Peter West, Ronan Le Bras, Yejin Choi, and Hannaneh Hajishirzi. 2022. Generated knowledge prompting for commonsense reasoning. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3154-3169, Dublin, Ireland. Association for Computational Linguistics.
|
| 363 |
+
Scott M Lundberg and Su-In Lee. 2017. A unified approach to interpreting model predictions. Advances in neural information processing systems, 30.
|
| 364 |
+
Ana Marasovic, Iz Beltagy, Doug Downey, and Matthew Peters. 2022. Few-shot self-rationalization with natural language prompts. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 410-424, Seattle, United States. Association for Computational Linguistics.
|
| 365 |
+
Sharan Narang, Colin Raffel, Katherine Lee, Adam Roberts, Noah Fiedel, and Karishma Malkan. 2020. Wt5?! training text-to-text models to explain their predictions. arXiv preprint arXiv:2004.14546.
|
| 366 |
+
Hieu T Nguyen and Arnold Smeulders. 2004. Active learning using pre-clustering. In Proceedings of the twenty-first international conference on Machine learning, page 79.
|
| 367 |
+
Fredrik Olsson. 2009. A literature survey of active machine learning in the context of natural language processing.
|
| 368 |
+
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.
|
| 369 |
+
Bhargavi Paranjape, Julian Michael, Marjan Ghazvininejad, Hannaneh Hajishirzi, and Luke Zettlemoyer. 2021. Prompting contrastive explanations for commonsense reasoning tasks. In *Findings of the Association for Computational Linguistics: ACL-IJCNLP* 2021, pages 4179-4192, Online. Association for Computational Linguistics.
|
| 370 |
+
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9.
|
| 371 |
+
|
| 372 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J Liu, et al. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140):1-67.
|
| 373 |
+
Dheeraj Rajagopal, Vidhisha Balachandran, Eduard H Hovy, and Yulia Tsvetkov. 2021. SELFFEXPLAIN: A self-explaining architecture for neural text classifiers. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 836-850, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 374 |
+
Nazneen Fatema Rajani, Bryan McCann, Caiming Xiong, and Richard Socher. 2019. Explain yourself! leveraging language models for commonsense reasoning. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4932-4942, Florence, Italy. Association for Computational Linguistics.
|
| 375 |
+
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.
|
| 376 |
+
Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
|
| 377 |
+
Pengzhen Ren, Yun Xiao, Xiaojun Chang, Po-Yao Huang, Zhihui Li, Brij B Gupta, Xiaojiang Chen, and Xin Wang. 2021. A survey of deep active learning. ACM computing surveys (CSUR), 54(9):1-40.
|
| 378 |
+
Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. 2016. "why should i trust you?" explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pages 1135-1144.
|
| 379 |
+
Timo Schick and Hinrich Schütze. 2021. Exploiting cloze-questions for few-shot text classification and natural language inference. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 255–269, Online. Association for Computational Linguistics.
|
| 380 |
+
Christopher Schröder and Andreas Niekler. 2020. A survey of active learning for text classification using deep neural networks. arXiv preprint arXiv:2008.07267.
|
| 381 |
+
Ozan Sener and Silvio Savarese. 2017. Active learning for convolutional neural networks: A core-set approach. arXiv preprint arXiv:1708.00489.
|
| 382 |
+
Burr Settles. 2009. Active learning literature survey.
|
| 383 |
+
|
| 384 |
+
Manali Sharma, Di Zhuang, and Mustafa Bilgic. 2015. Active learning with rationales for text classification. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 441-451, Denver, Colorado. Association for Computational Linguistics.
|
| 385 |
+
Yanyao Shen, Hyokun Yun, Zachary Lipton, Yakov Kronrod, and Animashree Anandkumar. 2017. Deep active learning for named entity recognition. In Proceedings of the 2nd Workshop on Representation Learning for NLP, pages 252-256, Vancouver, Canada. Association for Computational Linguistics.
|
| 386 |
+
Jiao Sun, Swabha Swayamdipta, Jonathan May, and Xuezhe Ma. 2022. Investigating the benefits of freeform rationales. arXiv preprint arXiv:2206.11083.
|
| 387 |
+
Oyvind Tafjord, Bhavana Dalvi, and Peter Clark. 2021. ProofWriter: Generating implications, proofs, and abductive statements over natural language. In *Findings of the Association for Computational Linguistics: ACL-IJCNLP* 2021, pages 3621-3634, Online. Association for Computational Linguistics.
|
| 388 |
+
Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. 2019. CommonsenseQA: A question answering challenge targeting commonsense knowledge. 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 4149-4158, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 389 |
+
Alon Talmor, Oyvind Tafjord, Peter Clark, Yoav Goldberg, and Jonathan Berant. 2020. Leap-of-thought: Teaching pre-trained models to systematically reason over implicit knowledge. Advances in Neural Information Processing Systems, 33:20227-20237.
|
| 390 |
+
Stefano Teso and Kristian Kersting. 2019. Explanatory interactive machine learning. In Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society, pages 239-245.
|
| 391 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2018. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 353-355, Brussels, Belgium. Association for Computational Linguistics.
|
| 392 |
+
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.
|
| 393 |
+
Sarah Wiegreffe and Ana Marasovic. 2021. Teach me to explain: A review of datasets for explainable natural language processing. In Thirty-fifth Conference on
|
| 394 |
+
|
| 395 |
+
Neural Information Processing Systems Datasets and Benchmarks Track (Round 1).
|
| 396 |
+
Sarah Wegreffe, Ana Marasovic, and Noah A. Smith. 2021. Measuring association between labels and free-text rationales. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 10266-10284, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 397 |
+
Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 1112-1122, New Orleans, Louisiana. Association for Computational Linguistics.
|
| 398 |
+
Genta Indra Winata, Andrea Madotto, Zhaojiang Lin, Rosanne Liu, Jason Yosinski, and Pascale Fung. 2021. Language models are few-shot multilingual learners. In Proceedings of the 1st Workshop on Multilingual Representation Learning, pages 1-15, Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 399 |
+
Ying Xu, Dakuo Wang, Mo Yu, Daniel Ritchie, Bingsheng Yao, Tongshuang Wu, Zheng Zhang, Toby Jia-Jun Li, Nora Bradford, Branda Sun, et al. 2022. Fantastic questions and where to find them: Fairy Taleqa-an authentic dataset for narrative comprehension. ACL'22.
|
| 400 |
+
Zhao Xu, Kai Yu, Volker Tresp, Xiaowei Xu, and Jizhi Wang. 2003. Representative sampling for text classification using support vector machines. In European conference on information retrieval, pages 393-407. Springer.
|
| 401 |
+
Bingsheng Yao, Prithviraj Sen, Lucian Popa, James Hendler, and Dakuo Wang. 2023. Are human explanations always helpful? towards objective evaluation of human natural language explanations. arXiv preprint arXiv:2305.03117.
|
| 402 |
+
Bingsheng Yao, Dakuo Wang, Tongshuang Wu, Zheng Zhang, Toby Li, Mo Yu, and Ying Xu. 2022. It is AI's turn to ask humans a question: Question-answer pair generation for children's story books. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 731-744, Dublin, Ireland. Association for Computational Linguistics.
|
| 403 |
+
Mo Yu, Shiyu Chang, Yang Zhang, and Tommi Jaakkola. 2019. Rethinking cooperative rationalization: Intra prospective extraction and complement control. 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 4094-4103, Hong Kong, China. Association for Computational Linguistics.
|
| 404 |
+
|
| 405 |
+
Eric Zelikman, Jesse Mu, Noah D Goodman, and Yuhuai Tony Wu. 2022. Star: Self-taught reasoner bootstrapping reasoning with reasoning.
|
| 406 |
+
Shao Zhang, Jianing Yu, Xuhai Xu, Changchang Yin, Yuxuan Lu, Bingsheng Yao, Melanie Tory, Lace M Padilla, Jeffrey Caterino, Ping Zhang, et al. 2023. Rethinking human-ai collaboration in complex medical decision making: A case study in sepsis diagnosis. arXiv preprint arXiv:2309.12368.
|
| 407 |
+
Shujian Zhang, Chengyue Gong, Xingchao Liu, Pengcheng He, Weizhu Chen, and Mingyuan Zhou. 2022. ALLSH: Active learning guided by local sensitivity and hardness. In Findings of the Association for Computational Linguistics: NAACL 2022, pages 1328-1342, Seattle, United States. Association for Computational Linguistics.
|
| 408 |
+
Zhan Zhang, Yegin Genc, Dakuo Wang, Mehmet Eren Ahsen, and Xiangmin Fan. 2021. Effect of ai explanations on human perceptions of patient-facing ai-powered healthcare systems. Journal of Medical Systems, 45(6):64.
|
| 409 |
+
Yangqiaoyu Zhou, Yiming Zhang, and Chenhao Tan. 2023. FLamE: Few-shot learning from natural language explanations. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6743-6763, Toronto, Canada. Association for Computational Linguistics.
|
| 410 |
+
|
| 411 |
+
# Appendix
|
| 412 |
+
|
| 413 |
+
# A e-SNLI Examples
|
| 414 |
+
|
| 415 |
+
Table 3 illustrates an example data of each category in the e-SNLI dataset. Every data instance contains a premise and hypothesis along with a human annotated label and free-form explanation.
|
| 416 |
+
|
| 417 |
+
Premise: This church choir sings to the masses as they sing joyous songs from the book at a church.
|
| 418 |
+
|
| 419 |
+
Hypothesis: The church is filled with song.
|
| 420 |
+
|
| 421 |
+
Label: entailment
|
| 422 |
+
|
| 423 |
+
Human-annotated explanation: "Filled with song" is a rephrasing of the "choir sings to the masses.
|
| 424 |
+
|
| 425 |
+
Premise: A man playing an electric guitar on stage.
|
| 426 |
+
|
| 427 |
+
Hypothesis: A man is performing for cash.
|
| 428 |
+
|
| 429 |
+
Label: neutral
|
| 430 |
+
|
| 431 |
+
Human-annotated explanation: It is unknown if the man is performing for cash.
|
| 432 |
+
|
| 433 |
+
Premise: A couple walk hand in hand down a street.
|
| 434 |
+
|
| 435 |
+
Hypothesis: A couple is sitting on a bench.
|
| 436 |
+
|
| 437 |
+
Label: contradiction
|
| 438 |
+
|
| 439 |
+
Human-annotated explanation: The couple cannot be walking and sitting a the same time.
|
| 440 |
+
|
| 441 |
+
Table 3: Sample data of each category in e-SNLI (Camburu et al., 2018) dataset.
|
| 442 |
+
|
| 443 |
+
# B Transfer Learning Ablation Study Diagrams
|
| 444 |
+
|
| 445 |
+
Figure 6 shows the results of our Ablation Study results described in Section 4.5. The explanation-generation model is fine-tuned from AL on e-SNLI dataset with two different AL settings, then we freeze the explanation-generation model to train the prediction model in AL simulation for Multi-NLI dataset under two settings. Setting $1/2$ refers to the settings for Active Learning Simulation in Section 4.2.
|
| 446 |
+
|
| 447 |
+
# C System Environment and Hyper-Parameters
|
| 448 |
+
|
| 449 |
+
The computing resource of all the experiments we conducted in this paper has 128 Gigabytes of RAM. In addition, we use 2 NVIDIA Tesla V100 GPU for the preliminary experiment and 8 NVIDIA Tesla V100 GPU for the AL simulation experiment.
|
| 450 |
+
|
| 451 |
+
# C.1 Preliminary Experiment
|
| 452 |
+
|
| 453 |
+
For the Preliminary experiment described in Section 4.1, we leverage the same set of finetuning hyper-parameters other than the number of fine-tuning epochs for the explanation-generation model (denotes as $M_{EG}$ ) and the prediction model (denotes as $M_P$ ). The same set
|
| 454 |
+
|
| 455 |
+

|
| 456 |
+
|
| 457 |
+

|
| 458 |
+
(a) Active Learning on Multit-NLI using explanation-generation model from e-SNLI with Setting 1
|
| 459 |
+
(b) Active Learning on Multit-NLI using explanation-generation model from e-SNLI with Setting 2
|
| 460 |
+
|
| 461 |
+
Figure 6: Results of Transfer Learning Ablation Study of AL Simulation experiment on our Dual-model system from e-SNLI to Multi-NLI. Setting $1/2$ refers to the settings for Active Learning Simulation in Section 4.2.
|
| 462 |
+
|
| 463 |
+
of hyper-parameters is: batch_size_per_GPU = 2; learning_rate = $1e^{-4}$ ; input_max_length = 512; target_max_length = 64
|
| 464 |
+
|
| 465 |
+
We conduct a hyper-parameter search for the number of fine-tuning epochs for each amount of sampled examples, details are shown in Table 4.
|
| 466 |
+
|
| 467 |
+
<table><tr><td># of train data per category / total</td><td>epoch for MRG</td><td>epoch for MP</td></tr><tr><td>10 / 30</td><td>25</td><td>100</td></tr><tr><td>50 / 150</td><td>25</td><td>250</td></tr><tr><td>100 / 300</td><td>10</td><td>250</td></tr><tr><td>500 / 1500</td><td>5</td><td>50</td></tr><tr><td>1500 / 4500</td><td>5</td><td>50</td></tr><tr><td>3000 / 9000</td><td>5</td><td>25</td></tr><tr><td>5000 / 15000</td><td>5</td><td>25</td></tr><tr><td>Full</td><td>1</td><td>1</td></tr></table>
|
| 468 |
+
|
| 469 |
+
Table 4: Fine-tuning epochs of each model in our dual-model system with different data amount settings.
|
| 470 |
+
|
| 471 |
+
# C.2 AL Simulation Experiment
|
| 472 |
+
|
| 473 |
+
For both of the AL Simulation settings we experimented in Section 4.2, we leverage the same set of hyper-parameters for fine-tuning our dual-model AL system: batch_size_per_GPU =
|
| 474 |
+
|
| 475 |
+
2; learning_rate = 1e-4; $M_{EG}$ _train_epoch = 20, $M_P$ _train_epoch = 250; input_max_length = 512; target_max_length = 64
|
| 476 |
+
|
| 477 |
+
# D Proposal for an Interactive System
|
| 478 |
+
|
| 479 |
+
Our proposed dual-model system can be easily implemented as an interactive human-centered AI system for supporting domain experts and human annotators in labeling both labels and explanations.
|
| 480 |
+
|
| 481 |
+

|
| 482 |
+
Figure 7: Our proposed dual-model system can be implemented as an interactive AL-based data annotation system to speed up users' annotation productivity. Such a system can simply have an interface with four output functions (i.e., display unlabeled data, display AL selected data, display generated-explanation, and display predicted labeled) and one input function (i.e., annotate label and explanation for the unlabeled data.
|
2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4f8f27b2178b4f974e931d54363f2d31d54339afc52ed8fc5d178c090258499
|
| 3 |
+
size 291605
|
2023/Beyond Labels_ Empowering Human Annotators with Natural Language Explanations through a Novel Active-Learning Architecture/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/fc2d1e06-8d86-4d7d-9ced-4589565dfec7_content_list.json
ADDED
|
@@ -0,0 +1,1634 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Beyond Layout Embedding: Layout Attention with Gaussian Biases for Structured Document Understanding",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
131,
|
| 8 |
+
89,
|
| 9 |
+
867,
|
| 10 |
+
130
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Xi Zhu, Xue Han, Shuyuan Peng, Shuo Lei, Chao Deng and Junlan Feng*",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
154,
|
| 20 |
+
823,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "JIUTIAN Team, China Mobile Research Institute, Beijing, China",
|
| 28 |
+
"bbox": [
|
| 29 |
+
235,
|
| 30 |
+
173,
|
| 31 |
+
764,
|
| 32 |
+
187
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "{zhuqian,hanxueai,pengshuyuan,leishuo,dengchao,fengjunlan}@chinamobile.com",
|
| 39 |
+
"bbox": [
|
| 40 |
+
127,
|
| 41 |
+
189,
|
| 42 |
+
873,
|
| 43 |
+
204
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
252,
|
| 54 |
+
339,
|
| 55 |
+
267
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Effectively encoding layout information is a central problem in structured document understanding. Most existing methods rely heavily on millions of trainable parameters to learn the layout features of each word from Cartesian coordinates. However, two unresolved questions remain: (1) Is the Cartesian coordinate system the optimal choice for layout modeling? (2) Are massive learnable parameters truly necessary for layout representation? In this paper, we address these questions by proposing Layout Attention with Gaussian Biases (LAGaBi): Firstly, we find that polar coordinates provide a superior choice over Cartesian coordinates as they offer a measurement of both distance and angle between word pairs, capturing relative positions more effectively. Furthermore, by feeding the distances and angles into 2-D Gaussian kernels, we model intuitive inductive layout biases, i.e., the words closer within a document should receive more attention, which will act as the attention biases to revise the textual attention distribution. LAGaBi is model-agnostic and language-independent, which can be applied to a range of transformer-based models, such as the text pre-training models from the BERT series and the LayoutLM series that incorporate visual features. Experimental results on three widely used benchmarks demonstrate that, despite reducing the number of layout parameters from millions to 48, LAGaBi achieves competitive or even superior performance. Our code is available on GitHub<sup>1</sup>.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
142,
|
| 64 |
+
279,
|
| 65 |
+
460,
|
| 66 |
+
749
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
114,
|
| 76 |
+
762,
|
| 77 |
+
258,
|
| 78 |
+
778
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Structured document understanding (SDU) has gained significant research attention in the field of intelligent document processing (Park et al., 2019; Jaume et al., 2019; Han et al., 2023). It focuses on extracting layout structures and contents from scanned or digital documents, leading to enhanced",
|
| 85 |
+
"bbox": [
|
| 86 |
+
112,
|
| 87 |
+
787,
|
| 88 |
+
487,
|
| 89 |
+
883
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "performance in several downstream tasks like form comprehension and receipt understanding.",
|
| 96 |
+
"bbox": [
|
| 97 |
+
507,
|
| 98 |
+
253,
|
| 99 |
+
880,
|
| 100 |
+
285
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Unlike conventional text understanding (Liu et al., 2019; Vaswani et al., 2017; Kenton and Toutanova, 2019), SDU goes beyond comprehending serialized text and requires the ability to interpret documents with diverse layouts (Xu et al., 2020; Huang et al., 2022; Powalski et al., 2021; Li et al., 2021a; Wang et al., 2022a). Documents with varying layouts often contain text fields positioned in different ways. To take advantage of existing pre-trained language models, early methods (Xu et al., 2020; Li et al., 2021a,c; Appalaraju et al., 2021; Chi et al., 2020) propose to directly add 2-D position embedding to the word embedding for each word as input for Transformer. The position embedding encode the 2-D absolute coordinates $(x_0, y_0, x_1, y_1)$ of each word in the document through multi position encoding layers, where $(x_0, y_0)$ represents the upper left point and $(x_1, y_1)$ represents the lower right point of the bounding box for each word. Some researches (Powalski et al., 2021; Hong et al., 2022; Lee et al., 2022; Xu et al., 2021a; Huang et al., 2022) further proposed that absolute positions are inefficient for representing the spatial relationships between words. They employ relative positions between words to encode spatial relationships. For example, Hong et al.(2022) map the relative positions into embeddings, which are then multiplied with the semantic embedding of the word to calculate inter-word layout scores. This score is incorporated into the self-attention layers to combine semantic and layout features.",
|
| 107 |
+
"bbox": [
|
| 108 |
+
507,
|
| 109 |
+
288,
|
| 110 |
+
884,
|
| 111 |
+
785
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Despite the significant progress made, we argue that current methods, whether based on absolute or relative positioning, heavily rely on a large number of trainable parameters for position embeddings from Cartesian coordinates, often comprising millions of parameters. This raises two unexplored questions: (1) Is the Cartesian coordinate system the optimal choice for layout modeling? (2) Are",
|
| 118 |
+
"bbox": [
|
| 119 |
+
507,
|
| 120 |
+
790,
|
| 121 |
+
882,
|
| 122 |
+
917
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "page_footnote",
|
| 128 |
+
"text": "*Junlan Feng is the corresponding author.",
|
| 129 |
+
"bbox": [
|
| 130 |
+
139,
|
| 131 |
+
891,
|
| 132 |
+
396,
|
| 133 |
+
904
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "page_footnote",
|
| 139 |
+
"text": "<sup>1</sup> https://github.com/zxilucky/LAGaBi",
|
| 140 |
+
"bbox": [
|
| 141 |
+
137,
|
| 142 |
+
904,
|
| 143 |
+
371,
|
| 144 |
+
917
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "page_number",
|
| 150 |
+
"text": "7773",
|
| 151 |
+
"bbox": [
|
| 152 |
+
478,
|
| 153 |
+
927,
|
| 154 |
+
519,
|
| 155 |
+
940
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "footer",
|
| 161 |
+
"text": "Findings of the Association for Computational Linguistics: EMNLP 2023, pages 7773-7784",
|
| 162 |
+
"bbox": [
|
| 163 |
+
216,
|
| 164 |
+
945,
|
| 165 |
+
779,
|
| 166 |
+
957
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 0
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "footer",
|
| 172 |
+
"text": "December 6-10, 2023 ©2023 Association for Computational Linguistics",
|
| 173 |
+
"bbox": [
|
| 174 |
+
277,
|
| 175 |
+
957,
|
| 176 |
+
719,
|
| 177 |
+
971
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "massive learnable layout parameters truly necessary? Concerning the former, various coordinate systems exist, including Cartesian, polar, and spherical coordinates, yet previous research has solely focused on Cartesian coordinates. Regarding the latter, it is intuitively expected that words closer within a document should receive more attention. However, this simple inductive bias may not be effectively learned solely through gradient updates.",
|
| 184 |
+
"bbox": [
|
| 185 |
+
112,
|
| 186 |
+
84,
|
| 187 |
+
492,
|
| 188 |
+
230
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "In this paper, we present a unified investigation of the two aforementioned problems. Regarding the choice of coordinate systems, we find that polar coordinates offer a more efficient representation than Cartesian coordinates for expressing relative positions. By computing the differences in distance and angle between two words in polar space, polar coordinates outperform their Cartesian counterparts by providing extra angle information. For layout learning, we discover that layout modeling can be achieved by a specific distribution: words closer in space receive higher layout scores, eliminating the need for extra position embeddings. Combining these two choices, we propose LAGaBi (Layout Attention with Gaussian Biases). LAGaBi formulates pairwise spatial relationships between tokens using the distance and angle in the polar coordinate system. Moreover, the distance and angle are fed into a 2-D Gaussian distribution to output a layout score. We choose the Gaussian distribution because it guarantees that the layout score decreases when either the distance or angle variables increase, making it the most commonly used distribution for this purpose. The layout score is then incorporated into the original self-attention as attention bias, resulting in a revised distribution that considers both text and layout features. We introduce trainable Gaussian kernels to better align the semantic and layout scores at different scales, adding just $4 \\times$ attention heads extra parameters. For instance, based on RoBERTa (Liu et al., 2019) with 12 attention heads, there are only 48 additional parameters that need to be learned for encoding layout features.",
|
| 195 |
+
"bbox": [
|
| 196 |
+
112,
|
| 197 |
+
235,
|
| 198 |
+
490,
|
| 199 |
+
766
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 1
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"text": "Extensive experiments demonstrate that LAGaBi achieves remarkable performance on diverse SDU benchmarks, including FUNSD (Jaume et al., 2019), CORD (Park et al., 2019), and XFUND (Xu et al., 2021b), across both monolingual and multilingual scenarios. LAGaBi emerges as a versatile module that seamlessly integrates with transformer-based language models, such as BERT (Kenton and Toutanova, 2019), RoBERTa, and InfoXLM (Chi",
|
| 206 |
+
"bbox": [
|
| 207 |
+
112,
|
| 208 |
+
774,
|
| 209 |
+
490,
|
| 210 |
+
919
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 1
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"text": "et al., 2020), empowering them to effectively process structured documents and achieve significant performance gains of up to 27.01 points. Additionally, LAGaBi can be incorporated into complex SDU models that leverage visual features, such as LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a), and LayoutLMv3 (Huang et al., 2022), leading to further performance enhancements and establishing new state-of-the-art results.",
|
| 217 |
+
"bbox": [
|
| 218 |
+
507,
|
| 219 |
+
84,
|
| 220 |
+
885,
|
| 221 |
+
230
|
| 222 |
+
],
|
| 223 |
+
"page_idx": 1
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"text": "2 Related Works",
|
| 228 |
+
"text_level": 1,
|
| 229 |
+
"bbox": [
|
| 230 |
+
509,
|
| 231 |
+
244,
|
| 232 |
+
672,
|
| 233 |
+
260
|
| 234 |
+
],
|
| 235 |
+
"page_idx": 1
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"type": "text",
|
| 239 |
+
"text": "Significant progress has recently been made by using the Transformer-based pre-trained model (PTM) to learn the cross-modality interaction between textual and layout information, which has been demonstrated to be critical for structured document understanding (Xu et al., 2020; Huang et al., 2022; Powalski et al., 2021; Li et al., 2021a; Wang et al., 2022a). LayoutLM (Xu et al., 2020) modified the input of BERT (Kenton and Toutanova, 2019) by adding position embedding layers to encode word-level 2-D coordinates, while StructuralLM (Li et al., 2021a) proposed to encode segment-level positions. LiLT (Wang et al., 2022a) encoded text and layout using two different transformer layers separately and adopted bi-directional attention to fuse them. Besides, there are a series of works that use multi-modal transformers to model text, layout, and image simultaneously, such as SelfDoc (Li et al., 2021b), DocFormer (Appalaraju et al., 2021), StrucTexT (Li et al., 2021c), ERNIE-Layout (Peng et al., 2022), mmLayout (Wang et al., 2022b).",
|
| 240 |
+
"bbox": [
|
| 241 |
+
507,
|
| 242 |
+
274,
|
| 243 |
+
885,
|
| 244 |
+
611
|
| 245 |
+
],
|
| 246 |
+
"page_idx": 1
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"type": "text",
|
| 250 |
+
"text": "Most of the above approaches encode the 2-D absolute positions, ignoring the critical relative spatial relationships between words that are essential to textual semantic understanding. Hong et al.(2022) proposed to encode the spatial relationships as relative position embeddings, which are then multiplied with the semantic embedding of the token to calculate inter-word layout scores. This score is incorporated into the self-attention to combine semantic and layout features. GeoLay-outLM (Luo et al., 2023) introduces geometric relations and brand-new geometric pre-training tasks in different levels for learning the geometric layout representation, whose geometric relations are largely dependent on some pre-defined manual rules. TITL (Powalski et al., 2021) encodes the relative positions between words in a simpler manner, and it adopts linear layers to convert the 2-D discrete distance (implemented through bucketing)",
|
| 251 |
+
"bbox": [
|
| 252 |
+
507,
|
| 253 |
+
613,
|
| 254 |
+
885,
|
| 255 |
+
919
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 1
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "page_number",
|
| 261 |
+
"text": "7774",
|
| 262 |
+
"bbox": [
|
| 263 |
+
480,
|
| 264 |
+
928,
|
| 265 |
+
521,
|
| 266 |
+
940
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 1
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "image",
|
| 272 |
+
"img_path": "images/35671b573bf6ab9b3d1aaa4a0135314602f2ac360e439889814a9b5af1808c19.jpg",
|
| 273 |
+
"image_caption": [
|
| 274 |
+
"Layout Attention with Gaussian Biases",
|
| 275 |
+
"Figure 1: An illustration of our Layout Attention with Gaussian Biases (LAGaBi). For each query word, we first compute the spatial relationships of each keyword in a polar system centered on it. Then Gaussian kernels are employed to transform these spatial relationships into attention biases, which will revise the original query-key attention distribution. Such biases are shared across different Transformer layers. When using LAGaBi, we can encode the document layout structure without adding position embedding layers at the bottom of the network."
|
| 276 |
+
],
|
| 277 |
+
"image_footnote": [],
|
| 278 |
+
"bbox": [
|
| 279 |
+
127,
|
| 280 |
+
99,
|
| 281 |
+
868,
|
| 282 |
+
405
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "between words into attention biases motivated by T5 (Raffel et al., 2020). Such relative attention biases have also been employed by LayoutLMv2 (Xu et al., 2021a) and LayoutLMv3 (Huang et al., 2022), yielding notable results. Different from them, we model the relative positions from a new perspective, i.e. introducing polar coordinates with distance and angle that are more efficient in representing relative spatial relationships. Furthermore, we employ the extremely lightweight Gaussian kernels to encode polar coordinates into attention biases, offering a more streamlined approach with fewer trainable parameters and aligning better with human intuition compared to linear layers.",
|
| 289 |
+
"bbox": [
|
| 290 |
+
112,
|
| 291 |
+
514,
|
| 292 |
+
489,
|
| 293 |
+
741
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "3 Methodology",
|
| 300 |
+
"text_level": 1,
|
| 301 |
+
"bbox": [
|
| 302 |
+
112,
|
| 303 |
+
759,
|
| 304 |
+
263,
|
| 305 |
+
777
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "Structured documents typically contain both textual words and layouts, where textual words denote the main content of the document, while layouts record the organizational form of text. Optical character recognition (OCR) as a classical technique for image document parsing can recognize the text as well as its locations. Formally, given a document $\\mathcal{D}$ , OCR identifies the text words",
|
| 312 |
+
"bbox": [
|
| 313 |
+
112,
|
| 314 |
+
790,
|
| 315 |
+
490,
|
| 316 |
+
919
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 2
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "$\\mathcal{W} = \\{w_i\\}_{i=1}^N$ and their associated layout positions \n $\\mathcal{C} = \\{c_i\\}_{i=1}^N$ , where $N$ is the number of words while $c_i = [x_i^0, y_i^0, x_i^1, y_i^1]$ represents the left-top and right-bottom coordinates of the bounding box that contains the $i_{th}$ word. An ideal model for document understanding should take both text words and their layout positions into consideration.",
|
| 323 |
+
"bbox": [
|
| 324 |
+
507,
|
| 325 |
+
514,
|
| 326 |
+
884,
|
| 327 |
+
627
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 2
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "The key to structured document comprehension, building upon the achievements of text understanding techniques such as Transformer (Vaswani et al., 2017), lies in effectively representing document layouts while remaining compatible with language representation. Therefore, there are two crucial problems that need to be solved: 1. How to model document layouts efficiently? 2. How to integrate the layouts into Transformer to guide textual semantic understanding of the document content?",
|
| 334 |
+
"bbox": [
|
| 335 |
+
507,
|
| 336 |
+
627,
|
| 337 |
+
884,
|
| 338 |
+
789
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 2
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "In this paper, we introduce a novel layout modeling method for structured document understanding, namely Layout Attention with Gaussian Biases (LAGaBi). As shown in Figure 1, it mainly consists of two parts: modeling relative positions with polar coordinates and layout attention with Gaussian biases. The former is responsible for modeling the 2-D relative positions between words by po",
|
| 345 |
+
"bbox": [
|
| 346 |
+
507,
|
| 347 |
+
790,
|
| 348 |
+
885,
|
| 349 |
+
919
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 2
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "page_number",
|
| 355 |
+
"text": "7775",
|
| 356 |
+
"bbox": [
|
| 357 |
+
480,
|
| 358 |
+
927,
|
| 359 |
+
519,
|
| 360 |
+
940
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 2
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "lar coordinates which are capable of representing inter-word spatial relationships; The latter focuses on transforming polar coordinates into attention biases, which will modify the original semantic query-key attentions between words into a more suitable distribution that accurately captures the underlying layout structure of documents.",
|
| 367 |
+
"bbox": [
|
| 368 |
+
112,
|
| 369 |
+
84,
|
| 370 |
+
487,
|
| 371 |
+
197
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 3
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "3.1 Spatial Relationships with Polar Coordinates",
|
| 378 |
+
"text_level": 1,
|
| 379 |
+
"bbox": [
|
| 380 |
+
112,
|
| 381 |
+
209,
|
| 382 |
+
413,
|
| 383 |
+
239
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "In a structured document, the relative spatial relationships between words are shown to be more important than their absolute coordinates, which can assist humans in better understanding pair-wise semantic dependencies. For example, tokens in the same line generally have stronger semantic associations with each other, while tokens that are farther away and on different lines are more difficult to form strong associations. Although some previous works (Powalski et al., 2021; Xu et al., 2021a; Li et al., 2021a) have proposed to model the relative distances, which acted as learnable attention biases, they still rely on learnable positional embeddings and only utilize the relative horizontal and vertical distances in Cartesian coordinate system.",
|
| 390 |
+
"bbox": [
|
| 391 |
+
112,
|
| 392 |
+
247,
|
| 393 |
+
489,
|
| 394 |
+
487
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 3
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "Different from previous works, we propose to capture inter-word spatial relationships through polar coordinates, in which both orientations and distances can be preserved. For each query token, we can build a polar coordinate system centered at its position, and calculate the polar coordinates (spatial relationships) of its keys. More concretely, the position of the query token is regarded as the reference point (pole), and the horizontal direction in the current Cartesian coordinate system is set as the reference direction (polar axis) following the most common reading habit, i.e., left-to-right and top-to-down. Formally, given a query token with its 2-D coordinates $c_{i}$ as the pole, the polar coordinates $\\mathbf{u}_{ij} = (\\rho_{ij},\\theta_{ij})$ of the $j_{th}$ key in this document page can be calculated as below:",
|
| 401 |
+
"bbox": [
|
| 402 |
+
112,
|
| 403 |
+
489,
|
| 404 |
+
489,
|
| 405 |
+
746
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 3
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "equation",
|
| 411 |
+
"text": "\n$$\n\\rho_ {i j} = \\sqrt {\\left(x _ {j} - x _ {i}\\right) ^ {2} + \\left(y _ {j} - y _ {i}\\right) ^ {2}} \\tag {1}\n$$\n",
|
| 412 |
+
"text_format": "latex",
|
| 413 |
+
"bbox": [
|
| 414 |
+
176,
|
| 415 |
+
760,
|
| 416 |
+
487,
|
| 417 |
+
785
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "equation",
|
| 423 |
+
"text": "\n$$\n\\theta_ {i j} = \\tan^ {- 1} \\left(\\left(y _ {j} - y _ {i}\\right) / \\left(x _ {j} - x _ {i}\\right)\\right) \\tag {2}\n$$\n",
|
| 424 |
+
"text_format": "latex",
|
| 425 |
+
"bbox": [
|
| 426 |
+
169,
|
| 427 |
+
795,
|
| 428 |
+
487,
|
| 429 |
+
814
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "where $\\rho_{ij} \\in [0,1]$ and $\\theta_{ij} \\in [-\\pi / 2, \\pi / 2]$ denote the distance and angle (orientation) from the $i_{th}$ token to the $j_{th}$ token respectively, and $(x_i, y_i)$ are the normalized coordinates of the top-left point of the $i_{th}$ bounding box. For instance, in Figure 1, when taking \"REPORT\" as the reference point, the",
|
| 436 |
+
"bbox": [
|
| 437 |
+
112,
|
| 438 |
+
822,
|
| 439 |
+
489,
|
| 440 |
+
917
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 3
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "spatial relationship between the words \"FORM\" and \"REPORT\" can be represented as a polar coordinate (0.064, 0), indicating a distance of 0.064 and an angle of 0 degrees, while that between the words \"YEAR\" and \"REPORT\" is (0.297, 1.432).",
|
| 447 |
+
"bbox": [
|
| 448 |
+
507,
|
| 449 |
+
84,
|
| 450 |
+
884,
|
| 451 |
+
164
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 3
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "3.2 Layout Attention with Gaussian Biases",
|
| 458 |
+
"text_level": 1,
|
| 459 |
+
"bbox": [
|
| 460 |
+
507,
|
| 461 |
+
175,
|
| 462 |
+
860,
|
| 463 |
+
190
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 3
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "How to use the essential relative spatial relationships to guide the model to perceive layout information is a problem worth exploring. Inspired by ALiBi (Press et al., 2021) and T5 bias (Raffel et al., 2020) that encode the 1-D relative position information as attention biases upon the query-key scores instead of positional embedding, we propose to revise attention scores/distribution with 2-D attention biases that integrate spatial relationships. Specifically, the attention score in a single-head self-attention can be modified as:",
|
| 470 |
+
"bbox": [
|
| 471 |
+
507,
|
| 472 |
+
195,
|
| 473 |
+
884,
|
| 474 |
+
370
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 3
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "equation",
|
| 480 |
+
"text": "\n$$\na _ {i j} = \\frac {\\exp \\left(\\mathbf {q} _ {i} \\mathbf {k} _ {j} ^ {T} / \\sqrt {d _ {k}} + \\alpha (\\mathbf {g} \\left(\\mathbf {u} _ {i j}\\right) - 1)\\right)}{\\sum_ {j = 1} ^ {N} \\exp \\left(\\mathbf {q} _ {i} \\mathbf {k} _ {j} ^ {T} / \\sqrt {d _ {k}} + \\alpha (\\mathbf {g} \\left(\\mathbf {u} _ {i j}\\right) - 1)\\right)} \\tag {3}\n$$\n",
|
| 481 |
+
"text_format": "latex",
|
| 482 |
+
"bbox": [
|
| 483 |
+
514,
|
| 484 |
+
380,
|
| 485 |
+
880,
|
| 486 |
+
434
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 3
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "where $\\mathbf{q}_i$ is the $i_{th}$ query vector, $\\mathbf{q}_i$ is the $j_{th}$ key vector, and $d_k$ is the dimension of the attention head. $\\mathbf{g}(\\mathbf{u}_{ij})$ denotes the attention biases, which is derived from the 2-D Gaussian kernel with learnable parameters based on polar coordinates $\\mathbf{u}$ indicating spatial relationships. The Gaussian kernel ensures that words farther within the document are assigned a smaller layout score. Therefore, by incorporating a reversed term $(\\mathbf{g}(\\mathbf{u}_{ij}) - 1)$ , we can significantly penalize the attention scores of query-key pairs that are farther, while making only slight revisions to the scores of closer pairs. $\\alpha$ is a hyper-parameter that makes a trade-off between semantic association and spatial dependency. It denotes how much the spatial relationship between the key and the query contributes to their semantic association. In particular, a convenient formula of $\\mathbf{g}(\\mathbf{u})$ is:",
|
| 493 |
+
"bbox": [
|
| 494 |
+
507,
|
| 495 |
+
435,
|
| 496 |
+
882,
|
| 497 |
+
709
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 3
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "equation",
|
| 503 |
+
"text": "\n$$\n\\mathbf {g} (\\mathbf {u}) = e x p \\left(- \\frac {1}{2} (\\mathbf {u} - \\boldsymbol {\\mu}) ^ {T} \\boldsymbol {\\Sigma} ^ {- 1} (\\mathbf {u} - \\boldsymbol {\\mu})\\right) \\tag {4}\n$$\n",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
534,
|
| 507 |
+
719,
|
| 508 |
+
882,
|
| 509 |
+
749
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "where $\\boldsymbol{\\Sigma}$ and $\\pmb{\\mu}$ are learnable $2\\times 2$ and $2\\times 1$ covariance matrix and mean vector of a Gaussian kernel, respectively. We further restrict the covariances to have diagonal form, resulting in $2\\times 2$ parameters per kernel for each attention head. Note that the Gaussian kernels are different across different attention heads, but are shared across different self-attention layers. Thus, there is a total of $2\\times$ $2\\times N_{\\mathrm{heads}}$ learnable parameters for our attention biases, where $N_{\\mathrm{heads}}$ denotes the attention head",
|
| 516 |
+
"bbox": [
|
| 517 |
+
507,
|
| 518 |
+
758,
|
| 519 |
+
884,
|
| 520 |
+
917
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 3
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "page_number",
|
| 526 |
+
"text": "7776",
|
| 527 |
+
"bbox": [
|
| 528 |
+
480,
|
| 529 |
+
927,
|
| 530 |
+
521,
|
| 531 |
+
940
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "number in each self-attention layer. For example, taking the RoBERTa base as the backbone, there are 48 parameters that need to be learned. Notably, we only include layout information in the keys and queries but not in the values, ensuring that the text semantics are not corrupted.",
|
| 538 |
+
"bbox": [
|
| 539 |
+
112,
|
| 540 |
+
84,
|
| 541 |
+
487,
|
| 542 |
+
180
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Properties of our LAGaBi: (1) It is easy to implement and can be adapted to any transformer-based model without changing its structure. (2) The position embedding layer is discarded, and there are very few parameters to learn, which can be done during the fine-tuning stage, so it is quite efficient. (3) It decouples layout and text understanding, allowing the potential of language models to be fully exploited in structured document understanding.",
|
| 549 |
+
"bbox": [
|
| 550 |
+
112,
|
| 551 |
+
181,
|
| 552 |
+
489,
|
| 553 |
+
325
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "4 Experiments",
|
| 560 |
+
"text_level": 1,
|
| 561 |
+
"bbox": [
|
| 562 |
+
112,
|
| 563 |
+
337,
|
| 564 |
+
260,
|
| 565 |
+
353
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "4.1 Datasets",
|
| 572 |
+
"text_level": 1,
|
| 573 |
+
"bbox": [
|
| 574 |
+
112,
|
| 575 |
+
363,
|
| 576 |
+
228,
|
| 577 |
+
376
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 4
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "Pre-training Dataset. Following LayoutLM (Xu et al., 2020), we also pre-train our model using the IIT-CDIP Test Collection 1.0 (Lewis et al., 2006), which is a large-scale dataset with over 11 million scanned document images. Only 1 million of them are used for fast pre-training. We pre-process each document page using Tesseract $^2$ , an open-source OCR engine, to retrieve the textual contents as well as their layouts. We normalize the coordinates of each token to integers in the range of 0 to 1000 and add an empty bounding box $[0,0,0,0]$ to the special tokens [CLS], [SEP], and [PAD].",
|
| 584 |
+
"bbox": [
|
| 585 |
+
112,
|
| 586 |
+
384,
|
| 587 |
+
487,
|
| 588 |
+
576
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "Fine-tuning Datasets. We evaluate our method on both monolingual (English) and multilingual document information extraction datasets listed below. FUNSD (Jaume et al., 2019) is a form dataset that uses forms to extract and organize textual information. It contains 199 documents, 149 of which are for training and 50 of which are for testing. CORD (Park et al., 2019) is a dataset for receipt key information extraction that includes 800, 100, and 100 receipts for training, validating, and testing, respectively. XFUND (Xu et al., 2021b) is a multilingual version of FUNSD with 8 languages, each language containing 199 instances (149 for training and 50 for testing) as FUNSD.",
|
| 595 |
+
"bbox": [
|
| 596 |
+
112,
|
| 597 |
+
577,
|
| 598 |
+
489,
|
| 599 |
+
802
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 4
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "4.2 Implementation Details",
|
| 606 |
+
"text_level": 1,
|
| 607 |
+
"bbox": [
|
| 608 |
+
112,
|
| 609 |
+
814,
|
| 610 |
+
329,
|
| 611 |
+
829
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 4
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "Our approach is model-agnostic and language-independent, which can be applied to a range of transformer-based models. In this paper, we have evaluated our method based on three kinds",
|
| 618 |
+
"bbox": [
|
| 619 |
+
112,
|
| 620 |
+
834,
|
| 621 |
+
487,
|
| 622 |
+
897
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 4
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "of baselines: 1) monolingual models (BERT (Kenton and Toutanova, 2019) and RoBERTa (Liu et al., 2019)), 2) multilingual model (InfoXLM (Chi et al., 2020)), and 3) document understanding models (LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a), and LayoutLMv3 (Huang et al., 2022)). Gaussian kernels will be included in the self-attention blocks of each model, which describe the relative spatial relationship between tokens.",
|
| 629 |
+
"bbox": [
|
| 630 |
+
507,
|
| 631 |
+
84,
|
| 632 |
+
882,
|
| 633 |
+
227
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 4
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "Pre-training. We only conduct pre-training tasks for the two monolingual models: BERT+LAGaBi and RoBERTa+LAGaBi. We initialize the weight of them with the corresponding baselines, except the Gaussian kernels. The parameters of the Gaussian kernels, namely covariance matrixes and mean vectors, are randomly initialized. Both models are simply supervised by masked language modeling (MLM) loss during pre-training. Adam optimizer (Kingma and Ba, 2014) is adopted with a learning rate of $5e - 5$ , weight decay of $1e - 2$ and $(\\beta_{1},\\beta_{2}) = (0.9,0.999)$ . The batch size is set to 128 and all the two models are trained for 200,000 steps on 8 NVIDIA v100 32GB GPUs.",
|
| 640 |
+
"bbox": [
|
| 641 |
+
507,
|
| 642 |
+
229,
|
| 643 |
+
884,
|
| 644 |
+
451
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 4
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "Fine-tuning. In this paper, we mainly focus on the document understanding task of semantic entity labeling, which aims at assigning each semantic entity a BIO label. We add a token-level classification layer upon the base models (including monolingual, multilingual, and document understanding models) to predict the BIO labels for this task. Word-level F1 score is adopted as the evaluation metric. The fine-tuning process takes 2000 steps using a batch size of 16 and the Adam optimizer with a learning rate of 5e-5 for FUNSD and 7e-5 for CORD and XFUND. Fine-tuning configurations for document understanding models follow their official releases. Hyper-parameter $\\alpha$ is set to 4 for all experiments, which has been tuned on the CORD's val set.",
|
| 651 |
+
"bbox": [
|
| 652 |
+
507,
|
| 653 |
+
455,
|
| 654 |
+
882,
|
| 655 |
+
695
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 4
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "4.3 Experimental Results",
|
| 662 |
+
"text_level": 1,
|
| 663 |
+
"bbox": [
|
| 664 |
+
507,
|
| 665 |
+
712,
|
| 666 |
+
724,
|
| 667 |
+
726
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 4
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "4.3.1 Performance on monolingual datasets",
|
| 674 |
+
"text_level": 1,
|
| 675 |
+
"bbox": [
|
| 676 |
+
507,
|
| 677 |
+
736,
|
| 678 |
+
865,
|
| 679 |
+
751
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 4
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "We first evaluate our method on the monolingual form and receipt understanding datasets. From the results shown in Table 1, we can observe that:",
|
| 686 |
+
"bbox": [
|
| 687 |
+
507,
|
| 688 |
+
758,
|
| 689 |
+
880,
|
| 690 |
+
804
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 4
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "(1) The lightweight LAGaBi enables simple integration with language models, allowing them to effectively process structured documents. For example, without any pre-training on document data, RoBERTa+LAGaBi has achieved $84.84\\%$ and $95.97\\%$ F1 scores on FUNSD and CORD, surpassing baseline model RoBERTa by $18.38\\%$ and",
|
| 697 |
+
"bbox": [
|
| 698 |
+
507,
|
| 699 |
+
806,
|
| 700 |
+
882,
|
| 701 |
+
917
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 4
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "page_footnote",
|
| 707 |
+
"text": "$^{2}$ https://github.com/tesseract-ocr/tesseract",
|
| 708 |
+
"bbox": [
|
| 709 |
+
134,
|
| 710 |
+
903,
|
| 711 |
+
391,
|
| 712 |
+
917
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 4
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "page_number",
|
| 718 |
+
"text": "7777",
|
| 719 |
+
"bbox": [
|
| 720 |
+
480,
|
| 721 |
+
927,
|
| 722 |
+
519,
|
| 723 |
+
940
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 4
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "table",
|
| 729 |
+
"img_path": "images/a49f32eac86de81824f97348bb3cf3c88611aa46cdd732b3e1d021d01591f33f.jpg",
|
| 730 |
+
"table_caption": [],
|
| 731 |
+
"table_footnote": [],
|
| 732 |
+
"table_body": "<table><tr><td>Model</td><td>#Parameters</td><td>Pre-training</td><td>Modality</td><td>FUNSD</td><td>CORD</td></tr><tr><td>BERT (Kenton and Toutanova, 2019)</td><td>110M</td><td>-</td><td>T</td><td>60.26</td><td>89.68</td></tr><tr><td>RoBERTa (Liu et al., 2019)</td><td>125M</td><td>-</td><td>T</td><td>66.48</td><td>93.54</td></tr><tr><td>BROS (Hong et al., 2022)</td><td>110M</td><td>11M</td><td>T+L</td><td>81.21</td><td>-</td></tr><tr><td>FormNet (Lee et al., 2022)</td><td>217M</td><td>11M</td><td>T+L</td><td>84.69</td><td>-</td></tr><tr><td>LiLT (Wang et al., 2022a)</td><td>131M</td><td>11M</td><td>T+L</td><td>88.41</td><td>96.07</td></tr><tr><td>BERT+LAGaBi(w/o pre-train)</td><td>110M+48</td><td>-</td><td>T+L</td><td>74.14 (+13.88)</td><td>93.44 (+3.76)</td></tr><tr><td>BERT+LAGaBi(w/ pre-train)</td><td>110M+48</td><td>1M</td><td>T+L</td><td>87.27 (+27.01)</td><td>95.82 (+6.14)</td></tr><tr><td>RoBERTa+LAGaBi(w/o pre-train)</td><td>125M+48</td><td>-</td><td>T+L</td><td>84.84 (+18.36)</td><td>95.97 (+2.43)</td></tr><tr><td>RoBERTa+LAGaBi(w/ pre-train)</td><td>125M+48</td><td>1M</td><td>T+L</td><td>89.15 (+22.67)</td><td>96.56 (+3.02)</td></tr><tr><td>LayoutLM (Xu et al., 2020)</td><td>160M</td><td>11M</td><td>T+L+I</td><td>79.27</td><td>94.31*</td></tr><tr><td>LayoutLMv2 (Xu et al., 2021a)</td><td>200M</td><td>11M</td><td>T+L+I</td><td>82.70</td><td>94.95</td></tr><tr><td>StrucTexT (Li et al., 2021c)</td><td>107M</td><td>11M</td><td>T+L+I</td><td>83.09</td><td>-</td></tr><tr><td>DocFormer (Appalaraju et al., 2021)</td><td>183M</td><td>11M</td><td>T+L+I</td><td>83.34</td><td>96.33</td></tr><tr><td>LayoutLMv3 (Huang et al., 2022)</td><td>133M</td><td>11M</td><td>T+L+I</td><td>90.29</td><td>96.56</td></tr><tr><td>LayoutLM+LAGaBi(w/o pre-train)</td><td>160M+48</td><td>-</td><td>T+L+I</td><td>87.77 (+8.10)</td><td>94.93(+0.62)</td></tr><tr><td>LayoutLMv2+LAGaBi(w/o pre-train)</td><td>200M+48</td><td>-</td><td>T+L+I</td><td>88.16 (+5.49)</td><td>97.05(+2.10)</td></tr><tr><td>LayoutLMv3+LAGaBi(w/o pre-train)</td><td>133M+48</td><td>-</td><td>T+L+I</td><td>91.00 (+0.71)</td><td>97.05 (+0.49)</td></tr></table>",
|
| 733 |
+
"bbox": [
|
| 734 |
+
122,
|
| 735 |
+
80,
|
| 736 |
+
877,
|
| 737 |
+
381
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 5
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "Table 1: Performance on FUNSD and CORD for monolingual structured document understanding. \"T/L/I\" denotes the \"text/layout/image\" modality. (+x) denotes the gain in F1 score compared to base model, while * show the result from our re-implementation. All the F1 scores in percentage (%) are reported.",
|
| 744 |
+
"bbox": [
|
| 745 |
+
112,
|
| 746 |
+
390,
|
| 747 |
+
882,
|
| 748 |
+
434
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 5
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "$2.43\\%$ respectively. RoBERTa+LAGaBi also outperforms several representative document understanding models such as LayoutLM (Xu et al., 2020) and LayoutLMv2 (Xu et al., 2021a). The results show that LAGaBi is a powerful method for capturing essential layout features, allowing language models to be easily extended to adapt to structured document understanding tasks.",
|
| 755 |
+
"bbox": [
|
| 756 |
+
112,
|
| 757 |
+
458,
|
| 758 |
+
487,
|
| 759 |
+
587
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 5
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "list",
|
| 765 |
+
"sub_type": "text",
|
| 766 |
+
"list_items": [
|
| 767 |
+
"(2) Pre-training brings profits. After pre-training on 1 million unlabeled document data, our method exhibits extra improvements. RoBERTa+LAGaBi with pre-train surpasses all other approaches except LayoutLMv3 (Huang et al., 2022). While there is still a minor difference on FUNSD between our model and LayoutLMv3, our method is significantly easier to implement, introducing only 48 extra learnable parameters to the vanilla Transformers structure, making it more computationally efficient and flexible.",
|
| 768 |
+
"(3) The LAGaBi could also be seamlessly coupled with other layout embedding and multimodal-based document understanding models, improving their performance even further. Performance improvements on LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a) and LayoutLmv3 (Huang et al., 2022)) are obvious, with F1 score gains of $8.10\\%$ $5.49\\%$ $0.71\\%$ on FUNSD and $0.62\\%$ $2.10\\%$ $0.49\\%$ on CORD. The process"
|
| 769 |
+
],
|
| 770 |
+
"bbox": [
|
| 771 |
+
112,
|
| 772 |
+
588,
|
| 773 |
+
489,
|
| 774 |
+
910
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 5
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "is particularly efficient since it only requires fine-tuning based on the published pre-trained weights rather than pre-training from scratch. Furthermore, by combining LAGaBi with the top-performing LayoutLMv3 model, we achieve new state-of-the-art results on both FUNSD and CORD datasets.",
|
| 781 |
+
"bbox": [
|
| 782 |
+
507,
|
| 783 |
+
458,
|
| 784 |
+
884,
|
| 785 |
+
555
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 5
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "4.3.2 Performance on multilingual dataset",
|
| 792 |
+
"text_level": 1,
|
| 793 |
+
"bbox": [
|
| 794 |
+
507,
|
| 795 |
+
573,
|
| 796 |
+
855,
|
| 797 |
+
589
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 5
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Following the multi-lingual LayoutXLM (Xu et al., 2021b) and LiLT (Wang et al., 2022a), we also evaluate our method based on InfoXLM (Chi et al., 2020) on three sub-tasks: language-specific fine-tuning, multi-task fine-tuning, and zero-shot transfer learning. We first perform fine-tuning based on the Gaussian kernels with random initialization. For a fair comparison, following LiLT, we also adopt the pre-trained Gaussian kernels for further fine-tuning, and we employ the Gaussian kernels in RoBERTa+LAGaBi which have been pre-trained on 1M monolingual document data in Sec 4.3.1. Results on XFUND are shown in Table 2.",
|
| 804 |
+
"bbox": [
|
| 805 |
+
505,
|
| 806 |
+
596,
|
| 807 |
+
884,
|
| 808 |
+
804
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 5
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "LAGaBi is also valid in multilingual scenarios, allowing multilingual language models to understand structured documents and outperform existing best-performing methods. LAGaBi can largely increase the performance of the multilingual language model InfoXLM on all three tasks, regardless of whether the Gaussian kernels are",
|
| 815 |
+
"bbox": [
|
| 816 |
+
507,
|
| 817 |
+
807,
|
| 818 |
+
884,
|
| 819 |
+
917
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 5
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "page_number",
|
| 825 |
+
"text": "7778",
|
| 826 |
+
"bbox": [
|
| 827 |
+
480,
|
| 828 |
+
927,
|
| 829 |
+
519,
|
| 830 |
+
940
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 5
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "table",
|
| 836 |
+
"img_path": "images/b79103ec84c7f26479f4c5c306f05f2d4a6118e2737e47ba9a4d5a96f8d31072.jpg",
|
| 837 |
+
"table_caption": [],
|
| 838 |
+
"table_footnote": [],
|
| 839 |
+
"table_body": "<table><tr><td rowspan=\"2\">Task</td><td rowspan=\"2\">Model</td><td rowspan=\"2\">Pre-train Data size & language</td><td rowspan=\"2\">FUNSD EN</td><td colspan=\"7\">XFUND</td><td rowspan=\"2\">Avg.</td></tr><tr><td>ZH</td><td>JA</td><td>ES</td><td>FR</td><td>IT</td><td>DE</td><td>PT</td></tr><tr><td rowspan=\"6\">Language-specific</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.70</td><td>87.74</td><td>77.61</td><td>61.05</td><td>67.43</td><td>66.87</td><td>68.14</td><td>68.18</td><td>70.47</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>68.52</td><td>88.68</td><td>78.65</td><td>62.30</td><td>70.15</td><td>67.51</td><td>70.63</td><td>70.08</td><td>72.07</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.40</td><td>89.24</td><td>79.21</td><td>75.50</td><td>79.02</td><td>80.82</td><td>82.22</td><td>79.03</td><td>80.56</td></tr><tr><td>LiLT (2022a)</td><td>11M-Mono</td><td>84.15</td><td>89.38</td><td>79.64</td><td>79.11</td><td>79.53</td><td>83.76</td><td>82.31</td><td>82.20</td><td>82.51</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>83.35</td><td>89.38</td><td>84.01</td><td>78.06</td><td>82.80</td><td>84.40</td><td>84.95</td><td>83.25</td><td>83.78</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>84.17</td><td>89.65</td><td>84.73</td><td>77.51</td><td>83.86</td><td>85.19</td><td>83.89</td><td>83.47</td><td>84.06</td></tr><tr><td rowspan=\"6\">Zero-shot</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.70</td><td>41.44</td><td>30.23</td><td>30.55</td><td>37.10</td><td>27.67</td><td>32.86</td><td>39.36</td><td>38.24</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>68.52</td><td>44.08</td><td>36.03</td><td>31.02</td><td>40.21</td><td>28.80</td><td>35.87</td><td>45.02</td><td>41.19</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.40</td><td>60.19</td><td>47.15</td><td>45.65</td><td>57.57</td><td>48.46</td><td>52.52</td><td>53.90</td><td>55.61</td></tr><tr><td>LiLT (2022a)</td><td>11M-Mono</td><td>84.15</td><td>61.52</td><td>51.84</td><td>51.01</td><td>59.23</td><td>53.71</td><td>60.13</td><td>63.25</td><td>60.61</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>83.35</td><td>47.91</td><td>46.13</td><td>48.98</td><td>54.84</td><td>47.40</td><td>53.23</td><td>58.82</td><td>55.08</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>84.17</td><td>39.88</td><td>35.77</td><td>44.82</td><td>54.45</td><td>46.72</td><td>51.64</td><td>56.37</td><td>51.73</td></tr><tr><td rowspan=\"6\">Multi-task</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.33</td><td>88.30</td><td>77.86</td><td>62.23</td><td>70.35</td><td>68.14</td><td>71.46</td><td>67.26</td><td>71.49</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>65.38</td><td>87.41</td><td>78.55</td><td>59.79</td><td>70.57</td><td>68.26</td><td>70.55</td><td>67.96</td><td>71.06</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.24</td><td>89.73</td><td>79.64</td><td>77.98</td><td>81.73</td><td>82.10</td><td>83.22</td><td>82.41</td><td>82.01</td></tr><tr><td>LiLT (2022a)</td><td>1M-Mono</td><td>85.74</td><td>90.47</td><td>80.88</td><td>83.40</td><td>85.77</td><td>87.92</td><td>87.69</td><td>84.93</td><td>85.85</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>86.67</td><td>90.90</td><td>86.49</td><td>81.74</td><td>86.44</td><td>87.74</td><td>88.18</td><td>86.72</td><td>86.89</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>86.35</td><td>92.00</td><td>86.86</td><td>81.50</td><td>87.00</td><td>87.96</td><td>87.58</td><td>87.24</td><td>87.22</td></tr></table>",
|
| 840 |
+
"bbox": [
|
| 841 |
+
119,
|
| 842 |
+
82,
|
| 843 |
+
877,
|
| 844 |
+
430
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 6
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "Table 2: The performance on FUNSD and XFUND with different settings, including language-specific fine-tuning (fine-tuning on X, testing on X), zero-shot transfer (fine-tuning on FUNSD, testing on X), and multi-task fine-tuning (fine-tuning on all 8 languages, testing on X). \"1M-Mono\" denotes 1 million monolingual (English) documents used for pre-training, while \"30M-Multi\" is the multilingual version. All the $F_1$ scores in percentage (\\%) are reported.",
|
| 851 |
+
"bbox": [
|
| 852 |
+
112,
|
| 853 |
+
441,
|
| 854 |
+
882,
|
| 855 |
+
500
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 6
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "pre-trained or not. InfoXLM+LAGaBi using the pre-trained Gaussian kernels outperforms the top-performing method LiLT on both language-specific and multi-task fine-tuning tasks, with average F1 scores of $84.06\\%$ and $87.22\\%$ , demonstrating the efficacy of LAGaBi in multilingual scenarios. On the zero-shot transfer learning task, LAGaBi fell slightly behind its counterparts. This may be due to the inherent gaps between different languages, such as differences in reading order and semantic density. For example, English usually uses spaces to separate words and has uneven word lengths, while Chinese appears as a tighter sequence with smaller semantic units (i.e., characters). Such layout knowledge learned from a specific language shows limited contributions to other languages. This phenomenon also proves the effectiveness of LAGaBi in modeling layouts, i.e. it actually has acquired the layout knowledge for a specific language after fine-tuning on the corresponding data.",
|
| 862 |
+
"bbox": [
|
| 863 |
+
112,
|
| 864 |
+
523,
|
| 865 |
+
489,
|
| 866 |
+
845
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 6
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "4.4 Ablation Studies",
|
| 873 |
+
"text_level": 1,
|
| 874 |
+
"bbox": [
|
| 875 |
+
112,
|
| 876 |
+
862,
|
| 877 |
+
292,
|
| 878 |
+
878
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 6
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "To investigate the impacts of our learnable Gaussian kernels and polar coordinates, we have con",
|
| 885 |
+
"bbox": [
|
| 886 |
+
112,
|
| 887 |
+
887,
|
| 888 |
+
489,
|
| 889 |
+
917
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 6
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "duced extensive ablation experiments based on several RoBERTa variants equipped with different layout encoding mechanisms (e.g. layout embedding layers, linear bias layers, and fixed/learnable Gaussian Kernels), and spatial relationships (e.g. distance, angle, and 2D-xy distance). All the variants are evaluated without further pre-training, and only fine-tuned for 2000 steps on FUNSD and CORD. Results on FUNSD's test set and CORD's validation set are shown in Table 3. From the result, we can observe that LAGaBi with learnable Gaussian kernels and polar coordinates (#8) can significantly outperform the baseline (#1) and the model with linear layout embedding layers (#2), indicating that models encoding layouts as attention biases are superior to layout embedding-based methods.",
|
| 896 |
+
"bbox": [
|
| 897 |
+
507,
|
| 898 |
+
523,
|
| 899 |
+
884,
|
| 900 |
+
782
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 6
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "Impact of the Gaussian kernels. To study the effects of various methods for converting polar coordinates to attention biases, we compared linear layers (#3), fixed Gaussian kernels (#4), and learnable Gaussian kernels (#8). The results demonstrate that linear layers are far less effective than Gaussian kernels, which is likely due to the fact that the Gaussian kernels are more in line with human",
|
| 907 |
+
"bbox": [
|
| 908 |
+
507,
|
| 909 |
+
790,
|
| 910 |
+
884,
|
| 911 |
+
917
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 6
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "page_number",
|
| 917 |
+
"text": "7779",
|
| 918 |
+
"bbox": [
|
| 919 |
+
480,
|
| 920 |
+
927,
|
| 921 |
+
519,
|
| 922 |
+
940
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 6
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "image",
|
| 928 |
+
"img_path": "images/acbeb1cef02eb76200a1cf61c2bc39a5fa2106feb98842a9778acc11239fe0e9.jpg",
|
| 929 |
+
"image_caption": [
|
| 930 |
+
"Figure 2: Visualization of the attention maps. The word-word attention scores are obtained by aggregating token-level attention in the last layer of transformers. We also annotate the position and order of each word in the original document page, and the attention scores are rounded to two decimal places for better visualization."
|
| 931 |
+
],
|
| 932 |
+
"image_footnote": [],
|
| 933 |
+
"bbox": [
|
| 934 |
+
126,
|
| 935 |
+
86,
|
| 936 |
+
307,
|
| 937 |
+
260
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 7
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "image",
|
| 943 |
+
"img_path": "images/0161785d95db7d0dfc41b3c7d76f5f37cd54d1afd9fc2ad28f21c9d1982ea513.jpg",
|
| 944 |
+
"image_caption": [],
|
| 945 |
+
"image_footnote": [],
|
| 946 |
+
"bbox": [
|
| 947 |
+
364,
|
| 948 |
+
86,
|
| 949 |
+
608,
|
| 950 |
+
266
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 7
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "image",
|
| 956 |
+
"img_path": "images/6989db1cdeefe9b10f61d6b4d16edecf0e49d27bce976180af2b668cd3820c94.jpg",
|
| 957 |
+
"image_caption": [],
|
| 958 |
+
"image_footnote": [],
|
| 959 |
+
"bbox": [
|
| 960 |
+
630,
|
| 961 |
+
86,
|
| 962 |
+
872,
|
| 963 |
+
266
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 7
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "table",
|
| 969 |
+
"img_path": "images/b18acf3111c30e7ed338078dee2896a079a2d1df2123a6b6f932c5979bd1f359.jpg",
|
| 970 |
+
"table_caption": [],
|
| 971 |
+
"table_footnote": [],
|
| 972 |
+
"table_body": "<table><tr><td>Task</td><td>#</td><td>Ablation Strategy</td><td>FUNSD</td><td>CORD</td></tr><tr><td></td><td>1</td><td>RoBERTa(baseline)</td><td>66.48</td><td>92.29</td></tr><tr><td></td><td>2</td><td>+ embedding layers</td><td>69.59</td><td>92.67</td></tr><tr><td rowspan=\"2\">Impact of Gaussian</td><td>3</td><td>+ linear bias layers</td><td>76.32</td><td>93.00</td></tr><tr><td>4</td><td>+ fixed kernels</td><td>83.81</td><td>93.00</td></tr><tr><td rowspan=\"3\">Impact of Polar-Coor.</td><td>5</td><td>+ Euclidean distance</td><td>73.05</td><td>93.72</td></tr><tr><td>6</td><td>+ Angle</td><td>84.48</td><td>94.70</td></tr><tr><td>7</td><td>+ 2D-xy distance</td><td>79.85</td><td>94.21</td></tr><tr><td></td><td>8</td><td>+ LAGaBi</td><td>84.84</td><td>94.77</td></tr></table>",
|
| 973 |
+
"bbox": [
|
| 974 |
+
124,
|
| 975 |
+
346,
|
| 976 |
+
478,
|
| 977 |
+
512
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 7
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "intuition than linear layers. Learnable Gaussian kernels (#8) also achieve better performance than fixed Gaussian kernels whose mean is 0 and variance is 1 (#4), since the learnable Gaussian kernels enjoy better flexibility to adapt to different formats. Impact of the polar coordinates. Polar coordinates, which consist of two elements: distance and angle, is a typical technique for describing spatial relationships. We analyzed the effects of distance (#5) and angle (#6), as well as the classical 2-D relative horizontal and vertical distances proposed by TITL (Powalski et al., 2021) (#7). The results suggest that the model with angle information (#6) is more effective than the model with distance information (#5 and #7). We hypothesize that this is because angles are less impacted by size scaling than distances, but they are more sensitive to location changes. Furthermore, LAGaBi achieves much better performance than the model that employs horizontal and vertical distances, which further reveals the superiority of polar coordinates.",
|
| 984 |
+
"bbox": [
|
| 985 |
+
112,
|
| 986 |
+
579,
|
| 987 |
+
489,
|
| 988 |
+
919
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 7
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "4.5 Analysis",
|
| 995 |
+
"text_level": 1,
|
| 996 |
+
"bbox": [
|
| 997 |
+
507,
|
| 998 |
+
349,
|
| 999 |
+
621,
|
| 1000 |
+
363
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 7
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Impact of $\\alpha$ . Hyper-parameter $\\alpha$ makes a tradeoff between semantic and layout contributions when computing pair-wise attention scores in our LABaBi, which is important. We conduct several experiments with different $\\alpha$ settings to study the impact of $\\alpha$ based on RoBERTa without any further pre-training. $F_{1}$ scores on CORD's validation set are listed in Table 4, showing the model achieves its best performance when $\\alpha = 4$ .",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
507,
|
| 1009 |
+
370,
|
| 1010 |
+
882,
|
| 1011 |
+
514
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 7
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "table",
|
| 1017 |
+
"img_path": "images/f1704fbeee8bb400f5d4443695270528c61f7682150762795336edf3ebd405f7.jpg",
|
| 1018 |
+
"table_caption": [
|
| 1019 |
+
"Table 3: Ablation studies on the effectiveness of the learnable Gaussian kernels and the polar coordinates."
|
| 1020 |
+
],
|
| 1021 |
+
"table_footnote": [],
|
| 1022 |
+
"table_body": "<table><tr><td>α =</td><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td>CORD</td><td>92.29</td><td>92.82</td><td>93.08</td><td>93.46</td><td>94.77</td><td>94.39</td></tr></table>",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
522,
|
| 1025 |
+
527,
|
| 1026 |
+
870,
|
| 1027 |
+
573
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 7
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Table 4: Impact of different $\\alpha$ settings. All the scores are from CORD's validation set.",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
507,
|
| 1036 |
+
583,
|
| 1037 |
+
882,
|
| 1038 |
+
612
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 7
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Visualization analysis. We visualize the word-level attention maps of the baseline RoBERTa and our RoBERTa+LAGaBi. Due to space limitations, in this paper, we only show the attention maps of the first 8 words in the input sequence. The case in Figure 2 is from the test set of FUNSD. As shown in Figure 2, the RoBERTa incorrectly associates the character \"R.\" with all the words, while most other words are treated as unrelated. According to the attention map in the RoBERTa+LAGaBi, greater attention scores arise between \"R.\" and \"F.\", \"J.\" and \"D.\", all of which are placed in the signature area, whereas attention scores between remote irrelevant words such as \"DATE\" and \"STRU\" are zeros. This demonstrates that LAGaBi indeed learns more accurate semantic associations by incorporating layout information. More examples and detailed analysis can be seen in Appendix.A.",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
507,
|
| 1047 |
+
629,
|
| 1048 |
+
884,
|
| 1049 |
+
919
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 7
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "page_number",
|
| 1055 |
+
"text": "7780",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
480,
|
| 1058 |
+
927,
|
| 1059 |
+
519,
|
| 1060 |
+
940
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 7
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "5 Conclusion",
|
| 1067 |
+
"text_level": 1,
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
114,
|
| 1070 |
+
83,
|
| 1071 |
+
247,
|
| 1072 |
+
98
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 8
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "In this paper, we propose a model-agnostic and language-independent method that leverages Layout Attention with Gaussian Biases to encode the relative spatial positions for structured document understanding (SDU). Specifically, we first model the inter-word spatial relationships using polar coordinates. Then the query-key attention scores are revised by the Gaussian biases that are related to their spatial relationships. Our method can be applied to a series of Transformer-based models with extremely few parameters, improving their performance for SDU tasks. Experiments based on six transformer-based SDU models and three monolingual/multilingual benchmarks fully demonstrate the effectiveness of our proposal. This research provides new ideas for structured document understanding tasks, which are expected to promote the efficient development of document intelligence.",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
115,
|
| 1081 |
+
109,
|
| 1082 |
+
489,
|
| 1083 |
+
398
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 8
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Limitations",
|
| 1090 |
+
"text_level": 1,
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
114,
|
| 1093 |
+
410,
|
| 1094 |
+
218,
|
| 1095 |
+
425
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 8
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Despite the superior performance exhibited by LAGaBi, it does have some limitations. Firstly, in our experiments with the LayoutLM series that integrate multi-modal features, LAGaBi was only fine-tuned for validation without pre-training. We believe that leveraging multi-modal pre-training could further improve LAGaBi's performance based on LayoutLM, and this will be explored in future investigations. Secondly, although we have empirically demonstrated the effectiveness of polar coordinates and Gaussian distribution in layout learning, our motivation is driven by a simple intuition rather than rigorous mathematical proof.",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
115,
|
| 1104 |
+
436,
|
| 1105 |
+
489,
|
| 1106 |
+
645
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 8
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "Acknowledgements",
|
| 1113 |
+
"text_level": 1,
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
114,
|
| 1116 |
+
657,
|
| 1117 |
+
285,
|
| 1118 |
+
671
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 8
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "We sincerely thank all the anonymous reviewers for their valuable comments and suggestions.",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
112,
|
| 1127 |
+
682,
|
| 1128 |
+
487,
|
| 1129 |
+
714
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 8
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "References",
|
| 1136 |
+
"text_level": 1,
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
114,
|
| 1139 |
+
740,
|
| 1140 |
+
213,
|
| 1141 |
+
755
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 8
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "list",
|
| 1147 |
+
"sub_type": "ref_text",
|
| 1148 |
+
"list_items": [
|
| 1149 |
+
"Srikar Appalaraju, Bhavan Jasani, Bhargava Urala Kota, Yusheng Xie, and R Manmatha. 2021. Docformer: End-to-end transformer for document understanding. In Proceedings of the IEEE/CVF international conference on computer vision, pages 993-1003.",
|
| 1150 |
+
"Zewen Chi, Li Dong, Furu Wei, Nan Yang, Saksham Singhal, Wenhui Wang, Xia Song, Xian-Ling Mao, Heyan Huang, and Ming Zhou. 2020. Infoxm: An information-theoretic framework for cross-lingual language model pre-training. arXiv preprint arXiv:2007.07834."
|
| 1151 |
+
],
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
115,
|
| 1154 |
+
763,
|
| 1155 |
+
489,
|
| 1156 |
+
917
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 8
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "list",
|
| 1162 |
+
"sub_type": "ref_text",
|
| 1163 |
+
"list_items": [
|
| 1164 |
+
"Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Édouard Grave, Myle Ott, Luke Zettle-moyer, and Veselin Stoyanov. 2020. Unsupervised cross-lingual representation learning at scale. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8440-8451.",
|
| 1165 |
+
"Xue Han, Yi-Tong Wang, Jun-Lan Feng, Chao Deng, Zhan-Heng Chen, Yu-An Huang, Hui Su, Lun Hu, and Peng-Wei Hu. 2023. A survey of transformer-based multimodal pre-trained modals. Neurocomputing, 515:89-106.",
|
| 1166 |
+
"Teakgyu Hong, Donghyun Kim, Mingi Ji, Wonseok Hwang, Daehyun Nam, and Sungrae Park. 2022. Bros: A pre-trained language model focusing on text and layout for better key information extraction from documents. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 10767-10775.",
|
| 1167 |
+
"Yupan Huang, Tengchao Lv, Lei Cui, Yutong Lu, and Furu Wei. 2022. Layoutlmv3: Pre-training for document ai with unified text and image masking. In Proceedings of the 30th ACM International Conference on Multimedia, pages 4083-4091.",
|
| 1168 |
+
"Guillaume Jaume, Hazim Kemal Ekenel, and Jean-Philippe Thiran. 2019. Funsd: A dataset for form understanding in noisy scanned documents. In 2019 International Conference on Document Analysis and Recognition Workshops (ICDARW), volume 2, pages 1-6. IEEE.",
|
| 1169 |
+
"Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171-4186.",
|
| 1170 |
+
"Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980.",
|
| 1171 |
+
"Chen-Yu Lee, Chun-Liang Li, Timothy Dozat, Vincent Perot, Guolong Su, Nan Hua, Joshua Ainslie, Renshen Wang, Yasuhisa Fujii, and Tomas Pfister. 2022. Formnet: Structural encoding beyond sequential modeling in form document information extraction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3735-3754.",
|
| 1172 |
+
"David Lewis, Gady Agam, Shlomo Argamon, Ophir Frieder, David Grossman, and Jefferson Heard. 2006. Building a test collection for complex document information processing. In Proceedings of the 29th annual international ACM SIGIR conference on Research and development in information retrieval, pages 665-666.",
|
| 1173 |
+
"Chenliang Li, Bin Bi, Ming Yan, Wei Wang, Songfang Huang, Fei Huang, and Luo Si. 2021a. Structurallm: Structural pre-training for form understanding. arXiv preprint arXiv:2105.11210."
|
| 1174 |
+
],
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
510,
|
| 1177 |
+
85,
|
| 1178 |
+
885,
|
| 1179 |
+
917
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 8
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "page_number",
|
| 1185 |
+
"text": "7781",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
480,
|
| 1188 |
+
928,
|
| 1189 |
+
517,
|
| 1190 |
+
940
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 8
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "list",
|
| 1196 |
+
"sub_type": "ref_text",
|
| 1197 |
+
"list_items": [
|
| 1198 |
+
"Peizhao Li, Jieuxiang Gu, Jason Kuen, Vlad I Morariu, Handong Zhao, Rajiv Jain, Varun Manjunatha, and Hongfu Liu. 2021b. Selfdoc: Self-supervised document representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5652-5660.",
|
| 1199 |
+
"Yulin Li, Yuxi Qian, Yuechen Yu, Xiameng Qin, Chengquan Zhang, Yan Liu, Kun Yao, Junyu Han, Jingtuo Liu, and Errui Ding. 2021c. Structext: Structured text understanding with multi-modal transformers. In Proceedings of the 29th ACM International Conference on Multimedia, pages 1912-1920.",
|
| 1200 |
+
"Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.",
|
| 1201 |
+
"Chuwei Luo, Changxu Cheng, Qi Zheng, and Cong Yao. 2023. Geolayoutm: Geometric pre-training for visual information extraction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7092-7101.",
|
| 1202 |
+
"Seunghyun Park, Seung Shin, Bado Lee, Junyeop Lee, Jaeheung Surh, Minjoon Seo, and Hwalsuk Lee. 2019. Cord: a consolidated receipt dataset for post-ocr parsing. In Workshop on Document Intelligence at NeurIPS 2019.",
|
| 1203 |
+
"Qiming Peng, Yinxu Pan, Wenjin Wang, Bin Luo, Zhenyu Zhang, Zhengjie Huang, Yuhui Cao, Weichong Yin, Yongfeng Chen, Yin Zhang, et al. 2022. Ernie layout: Layout knowledge enhanced pretraining for visually-rich document understanding. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 3744-3756.",
|
| 1204 |
+
"Rafał Powalski, Łukasz Borchmann, Dawid Jurkiewicz, Tomasz Dwojak, Michal Pietruszka, and Gabriela Pałka. 2021. Going full-tilt boogie on document understanding with text-image layout transformer. In Document Analysis and Recognition-ICDAR 2021: 16th International Conference, Lausanne, Switzerland, September 5–10, 2021, Proceedings, Part II 16, pages 732–747. Springer.",
|
| 1205 |
+
"Ofir Press, Noah A Smith, and Mike Lewis. 2021. Train short, test long: Attention with linear biases enables input length extrapolation. arXiv preprint arXiv:2108.12409.",
|
| 1206 |
+
"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.",
|
| 1207 |
+
"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."
|
| 1208 |
+
],
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
115,
|
| 1211 |
+
85,
|
| 1212 |
+
489,
|
| 1213 |
+
917
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 9
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "list",
|
| 1219 |
+
"sub_type": "ref_text",
|
| 1220 |
+
"list_items": [
|
| 1221 |
+
"Jiapeng Wang, Lianwen Jin, and Kai Ding. 2022a. Lilt: A simple yet effective language-independent layout transformer for structured document understanding. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7747-7757.",
|
| 1222 |
+
"Wenjin Wang, Zhengjie Huang, Bin Luo, Qianglong Chen, Qiming Peng, Yinxu Pan, Weichong Yin, Shikun Feng, Yu Sun, Dianhai Yu, et al. 2022b. mmlayout: Multi-grained multimodal transformer for document understanding. In Proceedings of the 30th ACM International Conference on Multimedia, pages 4877-4886.",
|
| 1223 |
+
"Yang Xu, Yiheng Xu, Tengchao Lv, Lei Cui, Furu Wei, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, Wanxiang Che, et al. 2021a. Layoutmv2: Multi-modal pre-training for visually-rich document understanding. 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 2579-2591.",
|
| 1224 |
+
"Yiheng Xu, Minghao Li, Lei Cui, Shaohan Huang, Furu Wei, and Ming Zhou. 2020. Layoutm: Pre-training of text and layout for document image understanding. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1192-1200.",
|
| 1225 |
+
"Yiheng Xu, Tengchao Lv, Lei Cui, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, and Furu Wei. 2021b. Layoutxlm: Multimodal pre-training for multilingual visually-rich document understanding. arXiv preprint arXiv:2104.08836."
|
| 1226 |
+
],
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
510,
|
| 1229 |
+
85,
|
| 1230 |
+
882,
|
| 1231 |
+
550
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 9
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "A Appendix",
|
| 1238 |
+
"text_level": 1,
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
510,
|
| 1241 |
+
557,
|
| 1242 |
+
633,
|
| 1243 |
+
573
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 9
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Figure 3 in this section shows the attention distribution of four additional examples on FUNSD. From all the examples, it can be observed that the RoBERTa model typically treats each word in isolation, while RoBERTa+LAGaBi can learn the more accurate correlations between different words based on their layout relationships.",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
510,
|
| 1252 |
+
581,
|
| 1253 |
+
882,
|
| 1254 |
+
693
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 9
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "We also visualize the word-level attention maps of LayoutLMv3 and LayoutLMv3+LAGaBi. LayoutLMv3 is currently the top-performing method for structured document understanding, which utilizes the 2-D relative positions through linear attention biases. From the attention maps shown in Figure 4, we can observe that LayoutLMv3+LAGaBi refers more to layout information when modeling the inter-word semantic correlations, while LayoutLMv3 is relatively independent. For example, in the third sample of Figure 4, LAGaBi learns more dense associations among \"Tiers\", \"II.\", and \"&\" in the neighborhood than LayoutLMv3, which is in line with human intuition.",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
510,
|
| 1263 |
+
694,
|
| 1264 |
+
882,
|
| 1265 |
+
917
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 9
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "page_number",
|
| 1271 |
+
"text": "7782",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
480,
|
| 1274 |
+
928,
|
| 1275 |
+
519,
|
| 1276 |
+
940
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 9
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "image",
|
| 1282 |
+
"img_path": "images/903c95f39a22e8025aa128c2921706d4eb5dea5705036df1a9eae46fb0c72410.jpg",
|
| 1283 |
+
"image_caption": [],
|
| 1284 |
+
"image_footnote": [],
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
117,
|
| 1287 |
+
93,
|
| 1288 |
+
336,
|
| 1289 |
+
282
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 10
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "image",
|
| 1295 |
+
"img_path": "images/cd0d87129439097797a1b581314654b9cc2aa903bd591128a3dc41864422e2f2.jpg",
|
| 1296 |
+
"image_caption": [],
|
| 1297 |
+
"image_footnote": [],
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
361,
|
| 1300 |
+
103,
|
| 1301 |
+
608,
|
| 1302 |
+
282
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 10
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "image",
|
| 1308 |
+
"img_path": "images/a48aea16930ec3a40831fdd3f204d75e7a241cf5a3233735b1107d8cb997e330.jpg",
|
| 1309 |
+
"image_caption": [],
|
| 1310 |
+
"image_footnote": [],
|
| 1311 |
+
"bbox": [
|
| 1312 |
+
623,
|
| 1313 |
+
103,
|
| 1314 |
+
867,
|
| 1315 |
+
282
|
| 1316 |
+
],
|
| 1317 |
+
"page_idx": 10
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"type": "image",
|
| 1321 |
+
"img_path": "images/979758abe48e19b4ff5042cf20dac36801785fd72895e1f1e16a6795a47a0aab.jpg",
|
| 1322 |
+
"image_caption": [],
|
| 1323 |
+
"image_footnote": [],
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
129,
|
| 1326 |
+
300,
|
| 1327 |
+
321,
|
| 1328 |
+
466
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 10
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "image",
|
| 1334 |
+
"img_path": "images/17a54380952e9988a04ac48bc19da9771ef735455aa5010c68b5d092e40db72e.jpg",
|
| 1335 |
+
"image_caption": [],
|
| 1336 |
+
"image_footnote": [],
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
364,
|
| 1339 |
+
299,
|
| 1340 |
+
608,
|
| 1341 |
+
475
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 10
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "image",
|
| 1347 |
+
"img_path": "images/581aa816021be15f2eb97a0778f907dd50520579506720f5921c5ae7541058fe.jpg",
|
| 1348 |
+
"image_caption": [],
|
| 1349 |
+
"image_footnote": [],
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
625,
|
| 1352 |
+
299,
|
| 1353 |
+
867,
|
| 1354 |
+
475
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 10
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "image",
|
| 1360 |
+
"img_path": "images/0ef7f90d6685ef9569087e356b5a3ce5fb011f82fcede01161803c37a13e7de0.jpg",
|
| 1361 |
+
"image_caption": [],
|
| 1362 |
+
"image_footnote": [],
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
144,
|
| 1365 |
+
489,
|
| 1366 |
+
336,
|
| 1367 |
+
664
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 10
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "image",
|
| 1373 |
+
"img_path": "images/6b6f21c23f9410218481326ec1a4777f4f1cbc25740442353057334816bd5448.jpg",
|
| 1374 |
+
"image_caption": [],
|
| 1375 |
+
"image_footnote": [],
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
361,
|
| 1378 |
+
491,
|
| 1379 |
+
608,
|
| 1380 |
+
671
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 10
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "image",
|
| 1386 |
+
"img_path": "images/a58d8e90bc57e3a0597bf487f6ce16e25314db5e6e4771743136eeb34d706d77.jpg",
|
| 1387 |
+
"image_caption": [],
|
| 1388 |
+
"image_footnote": [],
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
621,
|
| 1391 |
+
491,
|
| 1392 |
+
868,
|
| 1393 |
+
671
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 10
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "image",
|
| 1399 |
+
"img_path": "images/820c7896ab0eb269f67c07ebe992751282368009f57867b008502dfd37ab9d8d.jpg",
|
| 1400 |
+
"image_caption": [
|
| 1401 |
+
"Figure 3: Visualization of more examples based on RoBERTa."
|
| 1402 |
+
],
|
| 1403 |
+
"image_footnote": [],
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
142,
|
| 1406 |
+
684,
|
| 1407 |
+
332,
|
| 1408 |
+
870
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 10
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "image",
|
| 1414 |
+
"img_path": "images/2035bf1163d8e846625bb9b306572796c65963b734808ac7b2ae8c3b4a9e3ff1.jpg",
|
| 1415 |
+
"image_caption": [],
|
| 1416 |
+
"image_footnote": [],
|
| 1417 |
+
"bbox": [
|
| 1418 |
+
357,
|
| 1419 |
+
686,
|
| 1420 |
+
610,
|
| 1421 |
+
872
|
| 1422 |
+
],
|
| 1423 |
+
"page_idx": 10
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"type": "image",
|
| 1427 |
+
"img_path": "images/fceaf9bac74f2f698ca4ee8c66d7d12f55feb79a24e94b18ac782eba85447594.jpg",
|
| 1428 |
+
"image_caption": [],
|
| 1429 |
+
"image_footnote": [],
|
| 1430 |
+
"bbox": [
|
| 1431 |
+
621,
|
| 1432 |
+
686,
|
| 1433 |
+
870,
|
| 1434 |
+
872
|
| 1435 |
+
],
|
| 1436 |
+
"page_idx": 10
|
| 1437 |
+
},
|
| 1438 |
+
{
|
| 1439 |
+
"type": "page_number",
|
| 1440 |
+
"text": "7783",
|
| 1441 |
+
"bbox": [
|
| 1442 |
+
480,
|
| 1443 |
+
927,
|
| 1444 |
+
519,
|
| 1445 |
+
940
|
| 1446 |
+
],
|
| 1447 |
+
"page_idx": 10
|
| 1448 |
+
},
|
| 1449 |
+
{
|
| 1450 |
+
"type": "image",
|
| 1451 |
+
"img_path": "images/26e9e2060390ca1cc62c0481b4dfcc165b4b7f55f6caf19a237c74bc06e0703c.jpg",
|
| 1452 |
+
"image_caption": [],
|
| 1453 |
+
"image_footnote": [],
|
| 1454 |
+
"bbox": [
|
| 1455 |
+
127,
|
| 1456 |
+
108,
|
| 1457 |
+
310,
|
| 1458 |
+
281
|
| 1459 |
+
],
|
| 1460 |
+
"page_idx": 11
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "image",
|
| 1464 |
+
"img_path": "images/3f5a18375e510a380ac7ad47340ad33d6b30b94bf4e6d2d8556d6ec4aaf9a52c.jpg",
|
| 1465 |
+
"image_caption": [
|
| 1466 |
+
"Attention Map of LayoutLMv3"
|
| 1467 |
+
],
|
| 1468 |
+
"image_footnote": [],
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
364,
|
| 1471 |
+
124,
|
| 1472 |
+
601,
|
| 1473 |
+
284
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 11
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "image",
|
| 1479 |
+
"img_path": "images/5d9f824eceb838ebc52c2784600b6fc5bf7b2ec5c865b16150471efc1458d2e0.jpg",
|
| 1480 |
+
"image_caption": [
|
| 1481 |
+
"Attention Map of LayoutLMv3+LAGaBi"
|
| 1482 |
+
],
|
| 1483 |
+
"image_footnote": [],
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
628,
|
| 1486 |
+
124,
|
| 1487 |
+
865,
|
| 1488 |
+
284
|
| 1489 |
+
],
|
| 1490 |
+
"page_idx": 11
|
| 1491 |
+
},
|
| 1492 |
+
{
|
| 1493 |
+
"type": "image",
|
| 1494 |
+
"img_path": "images/3ed0b884e3896841f2f11dd6adf40a3ca5894236d9f6167c3baeb3d19b0656ff.jpg",
|
| 1495 |
+
"image_caption": [],
|
| 1496 |
+
"image_footnote": [],
|
| 1497 |
+
"bbox": [
|
| 1498 |
+
122,
|
| 1499 |
+
288,
|
| 1500 |
+
329,
|
| 1501 |
+
481
|
| 1502 |
+
],
|
| 1503 |
+
"page_idx": 11
|
| 1504 |
+
},
|
| 1505 |
+
{
|
| 1506 |
+
"type": "image",
|
| 1507 |
+
"img_path": "images/1a4b52ad62e69e18779fcd61f03e98ab7e93f2ba037e409afa4f0d10b2186f3d.jpg",
|
| 1508 |
+
"image_caption": [
|
| 1509 |
+
"Attention Map of LayoutLMv3"
|
| 1510 |
+
],
|
| 1511 |
+
"image_footnote": [],
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
361,
|
| 1514 |
+
313,
|
| 1515 |
+
603,
|
| 1516 |
+
476
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 11
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "image",
|
| 1522 |
+
"img_path": "images/bc608cdffcacade1c58e0fdfe1c99304fecba16281c4da31a14abe520d44d95c.jpg",
|
| 1523 |
+
"image_caption": [
|
| 1524 |
+
"Attention Map of LayoutLMv3+LAGaBi"
|
| 1525 |
+
],
|
| 1526 |
+
"image_footnote": [],
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
625,
|
| 1529 |
+
313,
|
| 1530 |
+
867,
|
| 1531 |
+
476
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 11
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "image",
|
| 1537 |
+
"img_path": "images/718e93874932acae5942ba24a5863d6d9f8b674e9b4a3822692cbb6424cf3b2b.jpg",
|
| 1538 |
+
"image_caption": [],
|
| 1539 |
+
"image_footnote": [],
|
| 1540 |
+
"bbox": [
|
| 1541 |
+
127,
|
| 1542 |
+
492,
|
| 1543 |
+
321,
|
| 1544 |
+
659
|
| 1545 |
+
],
|
| 1546 |
+
"page_idx": 11
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "image",
|
| 1550 |
+
"img_path": "images/3f9afb43d3edb32c3ca017587ed463d9a1e9b272e213895f18f63b6a4ded74b6.jpg",
|
| 1551 |
+
"image_caption": [
|
| 1552 |
+
"Attention Map of LayoutLMv3"
|
| 1553 |
+
],
|
| 1554 |
+
"image_footnote": [],
|
| 1555 |
+
"bbox": [
|
| 1556 |
+
364,
|
| 1557 |
+
506,
|
| 1558 |
+
605,
|
| 1559 |
+
670
|
| 1560 |
+
],
|
| 1561 |
+
"page_idx": 11
|
| 1562 |
+
},
|
| 1563 |
+
{
|
| 1564 |
+
"type": "image",
|
| 1565 |
+
"img_path": "images/3d058190ed60280d9f356dcce16503493053b3271a09d9101e856330565b56f0.jpg",
|
| 1566 |
+
"image_caption": [
|
| 1567 |
+
"Attention Map of LayoutLMv3+LAGaBi"
|
| 1568 |
+
],
|
| 1569 |
+
"image_footnote": [],
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
626,
|
| 1572 |
+
506,
|
| 1573 |
+
868,
|
| 1574 |
+
670
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 11
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "image",
|
| 1580 |
+
"img_path": "images/935e44a5917362fb0ee7fb4fa2e7da2ee6b3f0484a6372769be032e5e44f4907.jpg",
|
| 1581 |
+
"image_caption": [
|
| 1582 |
+
"Figure 4: Visualization of examples base on LayoutLMv3."
|
| 1583 |
+
],
|
| 1584 |
+
"image_footnote": [],
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
126,
|
| 1587 |
+
684,
|
| 1588 |
+
321,
|
| 1589 |
+
865
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 11
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "image",
|
| 1595 |
+
"img_path": "images/f44a5ec858eaf4732acc05e6f71b38bc30be6bb65877755518a8710fc30d2d16.jpg",
|
| 1596 |
+
"image_caption": [
|
| 1597 |
+
"Attention Map of LayoutLMv3"
|
| 1598 |
+
],
|
| 1599 |
+
"image_footnote": [],
|
| 1600 |
+
"bbox": [
|
| 1601 |
+
346,
|
| 1602 |
+
702,
|
| 1603 |
+
598,
|
| 1604 |
+
869
|
| 1605 |
+
],
|
| 1606 |
+
"page_idx": 11
|
| 1607 |
+
},
|
| 1608 |
+
{
|
| 1609 |
+
"type": "image",
|
| 1610 |
+
"img_path": "images/61a05c058e9592a17b6f691c042d716c245c0f2db78bc0847b84398f0a25f6fe.jpg",
|
| 1611 |
+
"image_caption": [
|
| 1612 |
+
"Attention Map of LayoutLMv3+LAGaBi"
|
| 1613 |
+
],
|
| 1614 |
+
"image_footnote": [],
|
| 1615 |
+
"bbox": [
|
| 1616 |
+
611,
|
| 1617 |
+
701,
|
| 1618 |
+
860,
|
| 1619 |
+
869
|
| 1620 |
+
],
|
| 1621 |
+
"page_idx": 11
|
| 1622 |
+
},
|
| 1623 |
+
{
|
| 1624 |
+
"type": "page_number",
|
| 1625 |
+
"text": "7784",
|
| 1626 |
+
"bbox": [
|
| 1627 |
+
480,
|
| 1628 |
+
928,
|
| 1629 |
+
521,
|
| 1630 |
+
940
|
| 1631 |
+
],
|
| 1632 |
+
"page_idx": 11
|
| 1633 |
+
}
|
| 1634 |
+
]
|
2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/fc2d1e06-8d86-4d7d-9ced-4589565dfec7_model.json
ADDED
|
@@ -0,0 +1,1984 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
| 9 |
+
0.131
|
| 10 |
+
],
|
| 11 |
+
"angle": 0,
|
| 12 |
+
"content": "Beyond Layout Embedding: Layout Attention with Gaussian Biases for Structured Document Understanding"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"bbox": [
|
| 17 |
+
0.186,
|
| 18 |
+
0.155,
|
| 19 |
+
0.824,
|
| 20 |
+
0.173
|
| 21 |
+
],
|
| 22 |
+
"angle": 0,
|
| 23 |
+
"content": "Xi Zhu, Xue Han, Shuyuan Peng, Shuo Lei, Chao Deng and Junlan Feng*"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"bbox": [
|
| 28 |
+
0.236,
|
| 29 |
+
0.174,
|
| 30 |
+
0.766,
|
| 31 |
+
0.188
|
| 32 |
+
],
|
| 33 |
+
"angle": 0,
|
| 34 |
+
"content": "JIUTIAN Team, China Mobile Research Institute, Beijing, China"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"bbox": [
|
| 39 |
+
0.129,
|
| 40 |
+
0.19,
|
| 41 |
+
0.875,
|
| 42 |
+
0.205
|
| 43 |
+
],
|
| 44 |
+
"angle": 0,
|
| 45 |
+
"content": "{zhuqian,hanxueai,pengshuyuan,leishuo,dengchao,fengjunlan}@chinamobile.com"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "title",
|
| 49 |
+
"bbox": [
|
| 50 |
+
0.261,
|
| 51 |
+
0.253,
|
| 52 |
+
0.341,
|
| 53 |
+
0.268
|
| 54 |
+
],
|
| 55 |
+
"angle": 0,
|
| 56 |
+
"content": "Abstract"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"bbox": [
|
| 61 |
+
0.144,
|
| 62 |
+
0.28,
|
| 63 |
+
0.461,
|
| 64 |
+
0.75
|
| 65 |
+
],
|
| 66 |
+
"angle": 0,
|
| 67 |
+
"content": "Effectively encoding layout information is a central problem in structured document understanding. Most existing methods rely heavily on millions of trainable parameters to learn the layout features of each word from Cartesian coordinates. However, two unresolved questions remain: (1) Is the Cartesian coordinate system the optimal choice for layout modeling? (2) Are massive learnable parameters truly necessary for layout representation? In this paper, we address these questions by proposing Layout Attention with Gaussian Biases (LAGaBi): Firstly, we find that polar coordinates provide a superior choice over Cartesian coordinates as they offer a measurement of both distance and angle between word pairs, capturing relative positions more effectively. Furthermore, by feeding the distances and angles into 2-D Gaussian kernels, we model intuitive inductive layout biases, i.e., the words closer within a document should receive more attention, which will act as the attention biases to revise the textual attention distribution. LAGaBi is model-agnostic and language-independent, which can be applied to a range of transformer-based models, such as the text pre-training models from the BERT series and the LayoutLM series that incorporate visual features. Experimental results on three widely used benchmarks demonstrate that, despite reducing the number of layout parameters from millions to 48, LAGaBi achieves competitive or even superior performance. Our code is available on GitHub<sup>1</sup>."
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "title",
|
| 71 |
+
"bbox": [
|
| 72 |
+
0.115,
|
| 73 |
+
0.763,
|
| 74 |
+
0.26,
|
| 75 |
+
0.779
|
| 76 |
+
],
|
| 77 |
+
"angle": 0,
|
| 78 |
+
"content": "1 Introduction"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"bbox": [
|
| 83 |
+
0.113,
|
| 84 |
+
0.788,
|
| 85 |
+
0.489,
|
| 86 |
+
0.884
|
| 87 |
+
],
|
| 88 |
+
"angle": 0,
|
| 89 |
+
"content": "Structured document understanding (SDU) has gained significant research attention in the field of intelligent document processing (Park et al., 2019; Jaume et al., 2019; Han et al., 2023). It focuses on extracting layout structures and contents from scanned or digital documents, leading to enhanced"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "text",
|
| 93 |
+
"bbox": [
|
| 94 |
+
0.509,
|
| 95 |
+
0.254,
|
| 96 |
+
0.882,
|
| 97 |
+
0.286
|
| 98 |
+
],
|
| 99 |
+
"angle": 0,
|
| 100 |
+
"content": "performance in several downstream tasks like form comprehension and receipt understanding."
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"type": "text",
|
| 104 |
+
"bbox": [
|
| 105 |
+
0.509,
|
| 106 |
+
0.289,
|
| 107 |
+
0.885,
|
| 108 |
+
0.787
|
| 109 |
+
],
|
| 110 |
+
"angle": 0,
|
| 111 |
+
"content": "Unlike conventional text understanding (Liu et al., 2019; Vaswani et al., 2017; Kenton and Toutanova, 2019), SDU goes beyond comprehending serialized text and requires the ability to interpret documents with diverse layouts (Xu et al., 2020; Huang et al., 2022; Powalski et al., 2021; Li et al., 2021a; Wang et al., 2022a). Documents with varying layouts often contain text fields positioned in different ways. To take advantage of existing pre-trained language models, early methods (Xu et al., 2020; Li et al., 2021a,c; Appalaraju et al., 2021; Chi et al., 2020) propose to directly add 2-D position embedding to the word embedding for each word as input for Transformer. The position embedding encode the 2-D absolute coordinates \\((x_0, y_0, x_1, y_1)\\) of each word in the document through multi position encoding layers, where \\((x_0, y_0)\\) represents the upper left point and \\((x_1, y_1)\\) represents the lower right point of the bounding box for each word. Some researches (Powalski et al., 2021; Hong et al., 2022; Lee et al., 2022; Xu et al., 2021a; Huang et al., 2022) further proposed that absolute positions are inefficient for representing the spatial relationships between words. They employ relative positions between words to encode spatial relationships. For example, Hong et al.(2022) map the relative positions into embeddings, which are then multiplied with the semantic embedding of the word to calculate inter-word layout scores. This score is incorporated into the self-attention layers to combine semantic and layout features."
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"type": "text",
|
| 115 |
+
"bbox": [
|
| 116 |
+
0.508,
|
| 117 |
+
0.791,
|
| 118 |
+
0.884,
|
| 119 |
+
0.919
|
| 120 |
+
],
|
| 121 |
+
"angle": 0,
|
| 122 |
+
"content": "Despite the significant progress made, we argue that current methods, whether based on absolute or relative positioning, heavily rely on a large number of trainable parameters for position embeddings from Cartesian coordinates, often comprising millions of parameters. This raises two unexplored questions: (1) Is the Cartesian coordinate system the optimal choice for layout modeling? (2) Are"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"type": "page_footnote",
|
| 126 |
+
"bbox": [
|
| 127 |
+
0.14,
|
| 128 |
+
0.892,
|
| 129 |
+
0.398,
|
| 130 |
+
0.906
|
| 131 |
+
],
|
| 132 |
+
"angle": 0,
|
| 133 |
+
"content": "*Junlan Feng is the corresponding author."
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"type": "page_footnote",
|
| 137 |
+
"bbox": [
|
| 138 |
+
0.138,
|
| 139 |
+
0.906,
|
| 140 |
+
0.373,
|
| 141 |
+
0.918
|
| 142 |
+
],
|
| 143 |
+
"angle": 0,
|
| 144 |
+
"content": "<sup>1</sup> https://github.com/zxilucky/LAGaBi"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"type": "list",
|
| 148 |
+
"bbox": [
|
| 149 |
+
0.138,
|
| 150 |
+
0.892,
|
| 151 |
+
0.398,
|
| 152 |
+
0.918
|
| 153 |
+
],
|
| 154 |
+
"angle": 0,
|
| 155 |
+
"content": null
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"type": "page_number",
|
| 159 |
+
"bbox": [
|
| 160 |
+
0.48,
|
| 161 |
+
0.928,
|
| 162 |
+
0.521,
|
| 163 |
+
0.941
|
| 164 |
+
],
|
| 165 |
+
"angle": 0,
|
| 166 |
+
"content": "7773"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"type": "footer",
|
| 170 |
+
"bbox": [
|
| 171 |
+
0.218,
|
| 172 |
+
0.946,
|
| 173 |
+
0.78,
|
| 174 |
+
0.958
|
| 175 |
+
],
|
| 176 |
+
"angle": 0,
|
| 177 |
+
"content": "Findings of the Association for Computational Linguistics: EMNLP 2023, pages 7773-7784"
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"type": "footer",
|
| 181 |
+
"bbox": [
|
| 182 |
+
0.278,
|
| 183 |
+
0.958,
|
| 184 |
+
0.72,
|
| 185 |
+
0.972
|
| 186 |
+
],
|
| 187 |
+
"angle": 0,
|
| 188 |
+
"content": "December 6-10, 2023 ©2023 Association for Computational Linguistics"
|
| 189 |
+
}
|
| 190 |
+
],
|
| 191 |
+
[
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"bbox": [
|
| 195 |
+
0.113,
|
| 196 |
+
0.085,
|
| 197 |
+
0.493,
|
| 198 |
+
0.231
|
| 199 |
+
],
|
| 200 |
+
"angle": 0,
|
| 201 |
+
"content": "massive learnable layout parameters truly necessary? Concerning the former, various coordinate systems exist, including Cartesian, polar, and spherical coordinates, yet previous research has solely focused on Cartesian coordinates. Regarding the latter, it is intuitively expected that words closer within a document should receive more attention. However, this simple inductive bias may not be effectively learned solely through gradient updates."
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"bbox": [
|
| 206 |
+
0.113,
|
| 207 |
+
0.236,
|
| 208 |
+
0.492,
|
| 209 |
+
0.768
|
| 210 |
+
],
|
| 211 |
+
"angle": 0,
|
| 212 |
+
"content": "In this paper, we present a unified investigation of the two aforementioned problems. Regarding the choice of coordinate systems, we find that polar coordinates offer a more efficient representation than Cartesian coordinates for expressing relative positions. By computing the differences in distance and angle between two words in polar space, polar coordinates outperform their Cartesian counterparts by providing extra angle information. For layout learning, we discover that layout modeling can be achieved by a specific distribution: words closer in space receive higher layout scores, eliminating the need for extra position embeddings. Combining these two choices, we propose LAGaBi (Layout Attention with Gaussian Biases). LAGaBi formulates pairwise spatial relationships between tokens using the distance and angle in the polar coordinate system. Moreover, the distance and angle are fed into a 2-D Gaussian distribution to output a layout score. We choose the Gaussian distribution because it guarantees that the layout score decreases when either the distance or angle variables increase, making it the most commonly used distribution for this purpose. The layout score is then incorporated into the original self-attention as attention bias, resulting in a revised distribution that considers both text and layout features. We introduce trainable Gaussian kernels to better align the semantic and layout scores at different scales, adding just \\(4 \\times\\) attention heads extra parameters. For instance, based on RoBERTa (Liu et al., 2019) with 12 attention heads, there are only 48 additional parameters that need to be learned for encoding layout features."
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"bbox": [
|
| 217 |
+
0.113,
|
| 218 |
+
0.775,
|
| 219 |
+
0.491,
|
| 220 |
+
0.92
|
| 221 |
+
],
|
| 222 |
+
"angle": 0,
|
| 223 |
+
"content": "Extensive experiments demonstrate that LAGaBi achieves remarkable performance on diverse SDU benchmarks, including FUNSD (Jaume et al., 2019), CORD (Park et al., 2019), and XFUND (Xu et al., 2021b), across both monolingual and multilingual scenarios. LAGaBi emerges as a versatile module that seamlessly integrates with transformer-based language models, such as BERT (Kenton and Toutanova, 2019), RoBERTa, and InfoXLM (Chi"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"bbox": [
|
| 228 |
+
0.508,
|
| 229 |
+
0.085,
|
| 230 |
+
0.887,
|
| 231 |
+
0.231
|
| 232 |
+
],
|
| 233 |
+
"angle": 0,
|
| 234 |
+
"content": "et al., 2020), empowering them to effectively process structured documents and achieve significant performance gains of up to 27.01 points. Additionally, LAGaBi can be incorporated into complex SDU models that leverage visual features, such as LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a), and LayoutLMv3 (Huang et al., 2022), leading to further performance enhancements and establishing new state-of-the-art results."
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "title",
|
| 238 |
+
"bbox": [
|
| 239 |
+
0.51,
|
| 240 |
+
0.246,
|
| 241 |
+
0.673,
|
| 242 |
+
0.261
|
| 243 |
+
],
|
| 244 |
+
"angle": 0,
|
| 245 |
+
"content": "2 Related Works"
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"bbox": [
|
| 250 |
+
0.508,
|
| 251 |
+
0.275,
|
| 252 |
+
0.886,
|
| 253 |
+
0.612
|
| 254 |
+
],
|
| 255 |
+
"angle": 0,
|
| 256 |
+
"content": "Significant progress has recently been made by using the Transformer-based pre-trained model (PTM) to learn the cross-modality interaction between textual and layout information, which has been demonstrated to be critical for structured document understanding (Xu et al., 2020; Huang et al., 2022; Powalski et al., 2021; Li et al., 2021a; Wang et al., 2022a). LayoutLM (Xu et al., 2020) modified the input of BERT (Kenton and Toutanova, 2019) by adding position embedding layers to encode word-level 2-D coordinates, while StructuralLM (Li et al., 2021a) proposed to encode segment-level positions. LiLT (Wang et al., 2022a) encoded text and layout using two different transformer layers separately and adopted bi-directional attention to fuse them. Besides, there are a series of works that use multi-modal transformers to model text, layout, and image simultaneously, such as SelfDoc (Li et al., 2021b), DocFormer (Appalaraju et al., 2021), StrucTexT (Li et al., 2021c), ERNIE-Layout (Peng et al., 2022), mmLayout (Wang et al., 2022b)."
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"bbox": [
|
| 261 |
+
0.508,
|
| 262 |
+
0.614,
|
| 263 |
+
0.886,
|
| 264 |
+
0.92
|
| 265 |
+
],
|
| 266 |
+
"angle": 0,
|
| 267 |
+
"content": "Most of the above approaches encode the 2-D absolute positions, ignoring the critical relative spatial relationships between words that are essential to textual semantic understanding. Hong et al.(2022) proposed to encode the spatial relationships as relative position embeddings, which are then multiplied with the semantic embedding of the token to calculate inter-word layout scores. This score is incorporated into the self-attention to combine semantic and layout features. GeoLay-outLM (Luo et al., 2023) introduces geometric relations and brand-new geometric pre-training tasks in different levels for learning the geometric layout representation, whose geometric relations are largely dependent on some pre-defined manual rules. TITL (Powalski et al., 2021) encodes the relative positions between words in a simpler manner, and it adopts linear layers to convert the 2-D discrete distance (implemented through bucketing)"
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "page_number",
|
| 271 |
+
"bbox": [
|
| 272 |
+
0.481,
|
| 273 |
+
0.929,
|
| 274 |
+
0.522,
|
| 275 |
+
0.941
|
| 276 |
+
],
|
| 277 |
+
"angle": 0,
|
| 278 |
+
"content": "7774"
|
| 279 |
+
}
|
| 280 |
+
],
|
| 281 |
+
[
|
| 282 |
+
{
|
| 283 |
+
"type": "image_caption",
|
| 284 |
+
"bbox": [
|
| 285 |
+
0.386,
|
| 286 |
+
0.086,
|
| 287 |
+
0.601,
|
| 288 |
+
0.097
|
| 289 |
+
],
|
| 290 |
+
"angle": 0,
|
| 291 |
+
"content": "Layout Attention with Gaussian Biases"
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "image",
|
| 295 |
+
"bbox": [
|
| 296 |
+
0.129,
|
| 297 |
+
0.1,
|
| 298 |
+
0.87,
|
| 299 |
+
0.406
|
| 300 |
+
],
|
| 301 |
+
"angle": 0,
|
| 302 |
+
"content": null
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "image_caption",
|
| 306 |
+
"bbox": [
|
| 307 |
+
0.113,
|
| 308 |
+
0.419,
|
| 309 |
+
0.884,
|
| 310 |
+
0.492
|
| 311 |
+
],
|
| 312 |
+
"angle": 0,
|
| 313 |
+
"content": "Figure 1: An illustration of our Layout Attention with Gaussian Biases (LAGaBi). For each query word, we first compute the spatial relationships of each keyword in a polar system centered on it. Then Gaussian kernels are employed to transform these spatial relationships into attention biases, which will revise the original query-key attention distribution. Such biases are shared across different Transformer layers. When using LAGaBi, we can encode the document layout structure without adding position embedding layers at the bottom of the network."
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"bbox": [
|
| 318 |
+
0.113,
|
| 319 |
+
0.516,
|
| 320 |
+
0.49,
|
| 321 |
+
0.742
|
| 322 |
+
],
|
| 323 |
+
"angle": 0,
|
| 324 |
+
"content": "between words into attention biases motivated by T5 (Raffel et al., 2020). Such relative attention biases have also been employed by LayoutLMv2 (Xu et al., 2021a) and LayoutLMv3 (Huang et al., 2022), yielding notable results. Different from them, we model the relative positions from a new perspective, i.e. introducing polar coordinates with distance and angle that are more efficient in representing relative spatial relationships. Furthermore, we employ the extremely lightweight Gaussian kernels to encode polar coordinates into attention biases, offering a more streamlined approach with fewer trainable parameters and aligning better with human intuition compared to linear layers."
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "title",
|
| 328 |
+
"bbox": [
|
| 329 |
+
0.114,
|
| 330 |
+
0.76,
|
| 331 |
+
0.264,
|
| 332 |
+
0.778
|
| 333 |
+
],
|
| 334 |
+
"angle": 0,
|
| 335 |
+
"content": "3 Methodology"
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"bbox": [
|
| 340 |
+
0.113,
|
| 341 |
+
0.791,
|
| 342 |
+
0.491,
|
| 343 |
+
0.92
|
| 344 |
+
],
|
| 345 |
+
"angle": 0,
|
| 346 |
+
"content": "Structured documents typically contain both textual words and layouts, where textual words denote the main content of the document, while layouts record the organizational form of text. Optical character recognition (OCR) as a classical technique for image document parsing can recognize the text as well as its locations. Formally, given a document \\(\\mathcal{D}\\), OCR identifies the text words"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"bbox": [
|
| 351 |
+
0.508,
|
| 352 |
+
0.515,
|
| 353 |
+
0.885,
|
| 354 |
+
0.628
|
| 355 |
+
],
|
| 356 |
+
"angle": 0,
|
| 357 |
+
"content": "\\(\\mathcal{W} = \\{w_i\\}_{i=1}^N\\) and their associated layout positions \n\\(\\mathcal{C} = \\{c_i\\}_{i=1}^N\\), where \\(N\\) is the number of words while \\(c_i = [x_i^0, y_i^0, x_i^1, y_i^1]\\) represents the left-top and right-bottom coordinates of the bounding box that contains the \\(i_{th}\\) word. An ideal model for document understanding should take both text words and their layout positions into consideration."
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"bbox": [
|
| 362 |
+
0.508,
|
| 363 |
+
0.629,
|
| 364 |
+
0.885,
|
| 365 |
+
0.79
|
| 366 |
+
],
|
| 367 |
+
"angle": 0,
|
| 368 |
+
"content": "The key to structured document comprehension, building upon the achievements of text understanding techniques such as Transformer (Vaswani et al., 2017), lies in effectively representing document layouts while remaining compatible with language representation. Therefore, there are two crucial problems that need to be solved: 1. How to model document layouts efficiently? 2. How to integrate the layouts into Transformer to guide textual semantic understanding of the document content?"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"bbox": [
|
| 373 |
+
0.508,
|
| 374 |
+
0.791,
|
| 375 |
+
0.887,
|
| 376 |
+
0.92
|
| 377 |
+
],
|
| 378 |
+
"angle": 0,
|
| 379 |
+
"content": "In this paper, we introduce a novel layout modeling method for structured document understanding, namely Layout Attention with Gaussian Biases (LAGaBi). As shown in Figure 1, it mainly consists of two parts: modeling relative positions with polar coordinates and layout attention with Gaussian biases. The former is responsible for modeling the 2-D relative positions between words by po"
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "page_number",
|
| 383 |
+
"bbox": [
|
| 384 |
+
0.481,
|
| 385 |
+
0.928,
|
| 386 |
+
0.521,
|
| 387 |
+
0.941
|
| 388 |
+
],
|
| 389 |
+
"angle": 0,
|
| 390 |
+
"content": "7775"
|
| 391 |
+
}
|
| 392 |
+
],
|
| 393 |
+
[
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"bbox": [
|
| 397 |
+
0.113,
|
| 398 |
+
0.085,
|
| 399 |
+
0.488,
|
| 400 |
+
0.198
|
| 401 |
+
],
|
| 402 |
+
"angle": 0,
|
| 403 |
+
"content": "lar coordinates which are capable of representing inter-word spatial relationships; The latter focuses on transforming polar coordinates into attention biases, which will modify the original semantic query-key attentions between words into a more suitable distribution that accurately captures the underlying layout structure of documents."
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "title",
|
| 407 |
+
"bbox": [
|
| 408 |
+
0.114,
|
| 409 |
+
0.21,
|
| 410 |
+
0.414,
|
| 411 |
+
0.24
|
| 412 |
+
],
|
| 413 |
+
"angle": 0,
|
| 414 |
+
"content": "3.1 Spatial Relationships with Polar Coordinates"
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"bbox": [
|
| 419 |
+
0.113,
|
| 420 |
+
0.248,
|
| 421 |
+
0.49,
|
| 422 |
+
0.488
|
| 423 |
+
],
|
| 424 |
+
"angle": 0,
|
| 425 |
+
"content": "In a structured document, the relative spatial relationships between words are shown to be more important than their absolute coordinates, which can assist humans in better understanding pair-wise semantic dependencies. For example, tokens in the same line generally have stronger semantic associations with each other, while tokens that are farther away and on different lines are more difficult to form strong associations. Although some previous works (Powalski et al., 2021; Xu et al., 2021a; Li et al., 2021a) have proposed to model the relative distances, which acted as learnable attention biases, they still rely on learnable positional embeddings and only utilize the relative horizontal and vertical distances in Cartesian coordinate system."
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"bbox": [
|
| 430 |
+
0.113,
|
| 431 |
+
0.49,
|
| 432 |
+
0.49,
|
| 433 |
+
0.747
|
| 434 |
+
],
|
| 435 |
+
"angle": 0,
|
| 436 |
+
"content": "Different from previous works, we propose to capture inter-word spatial relationships through polar coordinates, in which both orientations and distances can be preserved. For each query token, we can build a polar coordinate system centered at its position, and calculate the polar coordinates (spatial relationships) of its keys. More concretely, the position of the query token is regarded as the reference point (pole), and the horizontal direction in the current Cartesian coordinate system is set as the reference direction (polar axis) following the most common reading habit, i.e., left-to-right and top-to-down. Formally, given a query token with its 2-D coordinates \\( c_{i} \\) as the pole, the polar coordinates \\( \\mathbf{u}_{ij} = (\\rho_{ij},\\theta_{ij}) \\) of the \\( j_{th} \\) key in this document page can be calculated as below:"
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "equation",
|
| 440 |
+
"bbox": [
|
| 441 |
+
0.177,
|
| 442 |
+
0.761,
|
| 443 |
+
0.488,
|
| 444 |
+
0.787
|
| 445 |
+
],
|
| 446 |
+
"angle": 0,
|
| 447 |
+
"content": "\\[\n\\rho_ {i j} = \\sqrt {\\left(x _ {j} - x _ {i}\\right) ^ {2} + \\left(y _ {j} - y _ {i}\\right) ^ {2}} \\tag {1}\n\\]"
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "equation",
|
| 451 |
+
"bbox": [
|
| 452 |
+
0.171,
|
| 453 |
+
0.796,
|
| 454 |
+
0.488,
|
| 455 |
+
0.815
|
| 456 |
+
],
|
| 457 |
+
"angle": 0,
|
| 458 |
+
"content": "\\[\n\\theta_ {i j} = \\tan^ {- 1} \\left(\\left(y _ {j} - y _ {i}\\right) / \\left(x _ {j} - x _ {i}\\right)\\right) \\tag {2}\n\\]"
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"bbox": [
|
| 463 |
+
0.113,
|
| 464 |
+
0.823,
|
| 465 |
+
0.49,
|
| 466 |
+
0.919
|
| 467 |
+
],
|
| 468 |
+
"angle": 0,
|
| 469 |
+
"content": "where \\(\\rho_{ij} \\in [0,1]\\) and \\(\\theta_{ij} \\in [-\\pi / 2, \\pi / 2]\\) denote the distance and angle (orientation) from the \\(i_{th}\\) token to the \\(j_{th}\\) token respectively, and \\((x_i, y_i)\\) are the normalized coordinates of the top-left point of the \\(i_{th}\\) bounding box. For instance, in Figure 1, when taking \"REPORT\" as the reference point, the"
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"bbox": [
|
| 474 |
+
0.508,
|
| 475 |
+
0.085,
|
| 476 |
+
0.885,
|
| 477 |
+
0.165
|
| 478 |
+
],
|
| 479 |
+
"angle": 0,
|
| 480 |
+
"content": "spatial relationship between the words \"FORM\" and \"REPORT\" can be represented as a polar coordinate (0.064, 0), indicating a distance of 0.064 and an angle of 0 degrees, while that between the words \"YEAR\" and \"REPORT\" is (0.297, 1.432)."
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "title",
|
| 484 |
+
"bbox": [
|
| 485 |
+
0.509,
|
| 486 |
+
0.176,
|
| 487 |
+
0.862,
|
| 488 |
+
0.191
|
| 489 |
+
],
|
| 490 |
+
"angle": 0,
|
| 491 |
+
"content": "3.2 Layout Attention with Gaussian Biases"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"bbox": [
|
| 496 |
+
0.508,
|
| 497 |
+
0.196,
|
| 498 |
+
0.885,
|
| 499 |
+
0.372
|
| 500 |
+
],
|
| 501 |
+
"angle": 0,
|
| 502 |
+
"content": "How to use the essential relative spatial relationships to guide the model to perceive layout information is a problem worth exploring. Inspired by ALiBi (Press et al., 2021) and T5 bias (Raffel et al., 2020) that encode the 1-D relative position information as attention biases upon the query-key scores instead of positional embedding, we propose to revise attention scores/distribution with 2-D attention biases that integrate spatial relationships. Specifically, the attention score in a single-head self-attention can be modified as:"
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "equation",
|
| 506 |
+
"bbox": [
|
| 507 |
+
0.515,
|
| 508 |
+
0.381,
|
| 509 |
+
0.882,
|
| 510 |
+
0.435
|
| 511 |
+
],
|
| 512 |
+
"angle": 0,
|
| 513 |
+
"content": "\\[\na _ {i j} = \\frac {\\exp \\left(\\mathbf {q} _ {i} \\mathbf {k} _ {j} ^ {T} / \\sqrt {d _ {k}} + \\alpha (\\mathbf {g} \\left(\\mathbf {u} _ {i j}\\right) - 1)\\right)}{\\sum_ {j = 1} ^ {N} \\exp \\left(\\mathbf {q} _ {i} \\mathbf {k} _ {j} ^ {T} / \\sqrt {d _ {k}} + \\alpha (\\mathbf {g} \\left(\\mathbf {u} _ {i j}\\right) - 1)\\right)} \\tag {3}\n\\]"
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"bbox": [
|
| 518 |
+
0.508,
|
| 519 |
+
0.436,
|
| 520 |
+
0.884,
|
| 521 |
+
0.71
|
| 522 |
+
],
|
| 523 |
+
"angle": 0,
|
| 524 |
+
"content": "where \\(\\mathbf{q}_i\\) is the \\(i_{th}\\) query vector, \\(\\mathbf{q}_i\\) is the \\(j_{th}\\) key vector, and \\(d_k\\) is the dimension of the attention head. \\(\\mathbf{g}(\\mathbf{u}_{ij})\\) denotes the attention biases, which is derived from the 2-D Gaussian kernel with learnable parameters based on polar coordinates \\(\\mathbf{u}\\) indicating spatial relationships. The Gaussian kernel ensures that words farther within the document are assigned a smaller layout score. Therefore, by incorporating a reversed term \\((\\mathbf{g}(\\mathbf{u}_{ij}) - 1)\\), we can significantly penalize the attention scores of query-key pairs that are farther, while making only slight revisions to the scores of closer pairs. \\(\\alpha\\) is a hyper-parameter that makes a trade-off between semantic association and spatial dependency. It denotes how much the spatial relationship between the key and the query contributes to their semantic association. In particular, a convenient formula of \\(\\mathbf{g}(\\mathbf{u})\\) is:"
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "equation",
|
| 528 |
+
"bbox": [
|
| 529 |
+
0.535,
|
| 530 |
+
0.72,
|
| 531 |
+
0.883,
|
| 532 |
+
0.75
|
| 533 |
+
],
|
| 534 |
+
"angle": 0,
|
| 535 |
+
"content": "\\[\n\\mathbf {g} (\\mathbf {u}) = e x p \\left(- \\frac {1}{2} (\\mathbf {u} - \\boldsymbol {\\mu}) ^ {T} \\boldsymbol {\\Sigma} ^ {- 1} (\\mathbf {u} - \\boldsymbol {\\mu})\\right) \\tag {4}\n\\]"
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"bbox": [
|
| 540 |
+
0.508,
|
| 541 |
+
0.759,
|
| 542 |
+
0.885,
|
| 543 |
+
0.919
|
| 544 |
+
],
|
| 545 |
+
"angle": 0,
|
| 546 |
+
"content": "where \\(\\boldsymbol{\\Sigma}\\) and \\(\\pmb{\\mu}\\) are learnable \\(2\\times 2\\) and \\(2\\times 1\\) covariance matrix and mean vector of a Gaussian kernel, respectively. We further restrict the covariances to have diagonal form, resulting in \\(2\\times 2\\) parameters per kernel for each attention head. Note that the Gaussian kernels are different across different attention heads, but are shared across different self-attention layers. Thus, there is a total of \\(2\\times\\) \\(2\\times N_{\\mathrm{heads}}\\) learnable parameters for our attention biases, where \\(N_{\\mathrm{heads}}\\) denotes the attention head"
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "page_number",
|
| 550 |
+
"bbox": [
|
| 551 |
+
0.481,
|
| 552 |
+
0.928,
|
| 553 |
+
0.522,
|
| 554 |
+
0.941
|
| 555 |
+
],
|
| 556 |
+
"angle": 0,
|
| 557 |
+
"content": "7776"
|
| 558 |
+
}
|
| 559 |
+
],
|
| 560 |
+
[
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"bbox": [
|
| 564 |
+
0.113,
|
| 565 |
+
0.085,
|
| 566 |
+
0.488,
|
| 567 |
+
0.181
|
| 568 |
+
],
|
| 569 |
+
"angle": 0,
|
| 570 |
+
"content": "number in each self-attention layer. For example, taking the RoBERTa base as the backbone, there are 48 parameters that need to be learned. Notably, we only include layout information in the keys and queries but not in the values, ensuring that the text semantics are not corrupted."
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"bbox": [
|
| 575 |
+
0.113,
|
| 576 |
+
0.182,
|
| 577 |
+
0.49,
|
| 578 |
+
0.326
|
| 579 |
+
],
|
| 580 |
+
"angle": 0,
|
| 581 |
+
"content": "Properties of our LAGaBi: (1) It is easy to implement and can be adapted to any transformer-based model without changing its structure. (2) The position embedding layer is discarded, and there are very few parameters to learn, which can be done during the fine-tuning stage, so it is quite efficient. (3) It decouples layout and text understanding, allowing the potential of language models to be fully exploited in structured document understanding."
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "title",
|
| 585 |
+
"bbox": [
|
| 586 |
+
0.114,
|
| 587 |
+
0.338,
|
| 588 |
+
0.262,
|
| 589 |
+
0.354
|
| 590 |
+
],
|
| 591 |
+
"angle": 0,
|
| 592 |
+
"content": "4 Experiments"
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "title",
|
| 596 |
+
"bbox": [
|
| 597 |
+
0.114,
|
| 598 |
+
0.364,
|
| 599 |
+
0.229,
|
| 600 |
+
0.378
|
| 601 |
+
],
|
| 602 |
+
"angle": 0,
|
| 603 |
+
"content": "4.1 Datasets"
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"bbox": [
|
| 608 |
+
0.113,
|
| 609 |
+
0.385,
|
| 610 |
+
0.489,
|
| 611 |
+
0.577
|
| 612 |
+
],
|
| 613 |
+
"angle": 0,
|
| 614 |
+
"content": "Pre-training Dataset. Following LayoutLM (Xu et al., 2020), we also pre-train our model using the IIT-CDIP Test Collection 1.0 (Lewis et al., 2006), which is a large-scale dataset with over 11 million scanned document images. Only 1 million of them are used for fast pre-training. We pre-process each document page using Tesseract\\(^2\\), an open-source OCR engine, to retrieve the textual contents as well as their layouts. We normalize the coordinates of each token to integers in the range of 0 to 1000 and add an empty bounding box \\([0,0,0,0]\\) to the special tokens [CLS], [SEP], and [PAD]."
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"bbox": [
|
| 619 |
+
0.113,
|
| 620 |
+
0.578,
|
| 621 |
+
0.49,
|
| 622 |
+
0.803
|
| 623 |
+
],
|
| 624 |
+
"angle": 0,
|
| 625 |
+
"content": "Fine-tuning Datasets. We evaluate our method on both monolingual (English) and multilingual document information extraction datasets listed below. FUNSD (Jaume et al., 2019) is a form dataset that uses forms to extract and organize textual information. It contains 199 documents, 149 of which are for training and 50 of which are for testing. CORD (Park et al., 2019) is a dataset for receipt key information extraction that includes 800, 100, and 100 receipts for training, validating, and testing, respectively. XFUND (Xu et al., 2021b) is a multilingual version of FUNSD with 8 languages, each language containing 199 instances (149 for training and 50 for testing) as FUNSD."
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "title",
|
| 629 |
+
"bbox": [
|
| 630 |
+
0.114,
|
| 631 |
+
0.815,
|
| 632 |
+
0.331,
|
| 633 |
+
0.83
|
| 634 |
+
],
|
| 635 |
+
"angle": 0,
|
| 636 |
+
"content": "4.2 Implementation Details"
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"bbox": [
|
| 641 |
+
0.113,
|
| 642 |
+
0.835,
|
| 643 |
+
0.489,
|
| 644 |
+
0.898
|
| 645 |
+
],
|
| 646 |
+
"angle": 0,
|
| 647 |
+
"content": "Our approach is model-agnostic and language-independent, which can be applied to a range of transformer-based models. In this paper, we have evaluated our method based on three kinds"
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"bbox": [
|
| 652 |
+
0.508,
|
| 653 |
+
0.085,
|
| 654 |
+
0.883,
|
| 655 |
+
0.228
|
| 656 |
+
],
|
| 657 |
+
"angle": 0,
|
| 658 |
+
"content": "of baselines: 1) monolingual models (BERT (Kenton and Toutanova, 2019) and RoBERTa (Liu et al., 2019)), 2) multilingual model (InfoXLM (Chi et al., 2020)), and 3) document understanding models (LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a), and LayoutLMv3 (Huang et al., 2022)). Gaussian kernels will be included in the self-attention blocks of each model, which describe the relative spatial relationship between tokens."
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"bbox": [
|
| 663 |
+
0.508,
|
| 664 |
+
0.23,
|
| 665 |
+
0.885,
|
| 666 |
+
0.453
|
| 667 |
+
],
|
| 668 |
+
"angle": 0,
|
| 669 |
+
"content": "Pre-training. We only conduct pre-training tasks for the two monolingual models: BERT+LAGaBi and RoBERTa+LAGaBi. We initialize the weight of them with the corresponding baselines, except the Gaussian kernels. The parameters of the Gaussian kernels, namely covariance matrixes and mean vectors, are randomly initialized. Both models are simply supervised by masked language modeling (MLM) loss during pre-training. Adam optimizer (Kingma and Ba, 2014) is adopted with a learning rate of \\(5e - 5\\), weight decay of \\(1e - 2\\) and \\((\\beta_{1},\\beta_{2}) = (0.9,0.999)\\). The batch size is set to 128 and all the two models are trained for 200,000 steps on 8 NVIDIA v100 32GB GPUs."
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"bbox": [
|
| 674 |
+
0.508,
|
| 675 |
+
0.456,
|
| 676 |
+
0.884,
|
| 677 |
+
0.696
|
| 678 |
+
],
|
| 679 |
+
"angle": 0,
|
| 680 |
+
"content": "Fine-tuning. In this paper, we mainly focus on the document understanding task of semantic entity labeling, which aims at assigning each semantic entity a BIO label. We add a token-level classification layer upon the base models (including monolingual, multilingual, and document understanding models) to predict the BIO labels for this task. Word-level F1 score is adopted as the evaluation metric. The fine-tuning process takes 2000 steps using a batch size of 16 and the Adam optimizer with a learning rate of 5e-5 for FUNSD and 7e-5 for CORD and XFUND. Fine-tuning configurations for document understanding models follow their official releases. Hyper-parameter \\(\\alpha\\) is set to 4 for all experiments, which has been tuned on the CORD's val set."
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "title",
|
| 684 |
+
"bbox": [
|
| 685 |
+
0.509,
|
| 686 |
+
0.713,
|
| 687 |
+
0.725,
|
| 688 |
+
0.727
|
| 689 |
+
],
|
| 690 |
+
"angle": 0,
|
| 691 |
+
"content": "4.3 Experimental Results"
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "title",
|
| 695 |
+
"bbox": [
|
| 696 |
+
0.509,
|
| 697 |
+
0.737,
|
| 698 |
+
0.866,
|
| 699 |
+
0.752
|
| 700 |
+
],
|
| 701 |
+
"angle": 0,
|
| 702 |
+
"content": "4.3.1 Performance on monolingual datasets"
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"bbox": [
|
| 707 |
+
0.508,
|
| 708 |
+
0.759,
|
| 709 |
+
0.882,
|
| 710 |
+
0.806
|
| 711 |
+
],
|
| 712 |
+
"angle": 0,
|
| 713 |
+
"content": "We first evaluate our method on the monolingual form and receipt understanding datasets. From the results shown in Table 1, we can observe that:"
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"bbox": [
|
| 718 |
+
0.508,
|
| 719 |
+
0.807,
|
| 720 |
+
0.884,
|
| 721 |
+
0.919
|
| 722 |
+
],
|
| 723 |
+
"angle": 0,
|
| 724 |
+
"content": "(1) The lightweight LAGaBi enables simple integration with language models, allowing them to effectively process structured documents. For example, without any pre-training on document data, RoBERTa+LAGaBi has achieved \\(84.84\\%\\) and \\(95.97\\%\\) F1 scores on FUNSD and CORD, surpassing baseline model RoBERTa by \\(18.38\\%\\) and"
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "page_footnote",
|
| 728 |
+
"bbox": [
|
| 729 |
+
0.136,
|
| 730 |
+
0.904,
|
| 731 |
+
0.393,
|
| 732 |
+
0.918
|
| 733 |
+
],
|
| 734 |
+
"angle": 0,
|
| 735 |
+
"content": "\\(^{2}\\)https://github.com/tesseract-ocr/tesseract"
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "page_number",
|
| 739 |
+
"bbox": [
|
| 740 |
+
0.481,
|
| 741 |
+
0.928,
|
| 742 |
+
0.521,
|
| 743 |
+
0.941
|
| 744 |
+
],
|
| 745 |
+
"angle": 0,
|
| 746 |
+
"content": "7777"
|
| 747 |
+
}
|
| 748 |
+
],
|
| 749 |
+
[
|
| 750 |
+
{
|
| 751 |
+
"type": "table",
|
| 752 |
+
"bbox": [
|
| 753 |
+
0.123,
|
| 754 |
+
0.082,
|
| 755 |
+
0.878,
|
| 756 |
+
0.382
|
| 757 |
+
],
|
| 758 |
+
"angle": 0,
|
| 759 |
+
"content": "<table><tr><td>Model</td><td>#Parameters</td><td>Pre-training</td><td>Modality</td><td>FUNSD</td><td>CORD</td></tr><tr><td>BERT (Kenton and Toutanova, 2019)</td><td>110M</td><td>-</td><td>T</td><td>60.26</td><td>89.68</td></tr><tr><td>RoBERTa (Liu et al., 2019)</td><td>125M</td><td>-</td><td>T</td><td>66.48</td><td>93.54</td></tr><tr><td>BROS (Hong et al., 2022)</td><td>110M</td><td>11M</td><td>T+L</td><td>81.21</td><td>-</td></tr><tr><td>FormNet (Lee et al., 2022)</td><td>217M</td><td>11M</td><td>T+L</td><td>84.69</td><td>-</td></tr><tr><td>LiLT (Wang et al., 2022a)</td><td>131M</td><td>11M</td><td>T+L</td><td>88.41</td><td>96.07</td></tr><tr><td>BERT+LAGaBi(w/o pre-train)</td><td>110M+48</td><td>-</td><td>T+L</td><td>74.14 (+13.88)</td><td>93.44 (+3.76)</td></tr><tr><td>BERT+LAGaBi(w/ pre-train)</td><td>110M+48</td><td>1M</td><td>T+L</td><td>87.27 (+27.01)</td><td>95.82 (+6.14)</td></tr><tr><td>RoBERTa+LAGaBi(w/o pre-train)</td><td>125M+48</td><td>-</td><td>T+L</td><td>84.84 (+18.36)</td><td>95.97 (+2.43)</td></tr><tr><td>RoBERTa+LAGaBi(w/ pre-train)</td><td>125M+48</td><td>1M</td><td>T+L</td><td>89.15 (+22.67)</td><td>96.56 (+3.02)</td></tr><tr><td>LayoutLM (Xu et al., 2020)</td><td>160M</td><td>11M</td><td>T+L+I</td><td>79.27</td><td>94.31*</td></tr><tr><td>LayoutLMv2 (Xu et al., 2021a)</td><td>200M</td><td>11M</td><td>T+L+I</td><td>82.70</td><td>94.95</td></tr><tr><td>StrucTexT (Li et al., 2021c)</td><td>107M</td><td>11M</td><td>T+L+I</td><td>83.09</td><td>-</td></tr><tr><td>DocFormer (Appalaraju et al., 2021)</td><td>183M</td><td>11M</td><td>T+L+I</td><td>83.34</td><td>96.33</td></tr><tr><td>LayoutLMv3 (Huang et al., 2022)</td><td>133M</td><td>11M</td><td>T+L+I</td><td>90.29</td><td>96.56</td></tr><tr><td>LayoutLM+LAGaBi(w/o pre-train)</td><td>160M+48</td><td>-</td><td>T+L+I</td><td>87.77 (+8.10)</td><td>94.93(+0.62)</td></tr><tr><td>LayoutLMv2+LAGaBi(w/o pre-train)</td><td>200M+48</td><td>-</td><td>T+L+I</td><td>88.16 (+5.49)</td><td>97.05(+2.10)</td></tr><tr><td>LayoutLMv3+LAGaBi(w/o pre-train)</td><td>133M+48</td><td>-</td><td>T+L+I</td><td>91.00 (+0.71)</td><td>97.05 (+0.49)</td></tr></table>"
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "table_caption",
|
| 763 |
+
"bbox": [
|
| 764 |
+
0.113,
|
| 765 |
+
0.391,
|
| 766 |
+
0.883,
|
| 767 |
+
0.435
|
| 768 |
+
],
|
| 769 |
+
"angle": 0,
|
| 770 |
+
"content": "Table 1: Performance on FUNSD and CORD for monolingual structured document understanding. \"T/L/I\" denotes the \"text/layout/image\" modality. (+x) denotes the gain in F1 score compared to base model, while * show the result from our re-implementation. All the F1 scores in percentage (%) are reported."
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"bbox": [
|
| 775 |
+
0.113,
|
| 776 |
+
0.46,
|
| 777 |
+
0.489,
|
| 778 |
+
0.588
|
| 779 |
+
],
|
| 780 |
+
"angle": 0,
|
| 781 |
+
"content": "\\(2.43\\%\\) respectively. RoBERTa+LAGaBi also outperforms several representative document understanding models such as LayoutLM (Xu et al., 2020) and LayoutLMv2 (Xu et al., 2021a). The results show that LAGaBi is a powerful method for capturing essential layout features, allowing language models to be easily extended to adapt to structured document understanding tasks."
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"bbox": [
|
| 786 |
+
0.113,
|
| 787 |
+
0.589,
|
| 788 |
+
0.489,
|
| 789 |
+
0.764
|
| 790 |
+
],
|
| 791 |
+
"angle": 0,
|
| 792 |
+
"content": "(2) Pre-training brings profits. After pre-training on 1 million unlabeled document data, our method exhibits extra improvements. RoBERTa+LAGaBi with pre-train surpasses all other approaches except LayoutLMv3 (Huang et al., 2022). While there is still a minor difference on FUNSD between our model and LayoutLMv3, our method is significantly easier to implement, introducing only 48 extra learnable parameters to the vanilla Transformers structure, making it more computationally efficient and flexible."
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"bbox": [
|
| 797 |
+
0.113,
|
| 798 |
+
0.766,
|
| 799 |
+
0.49,
|
| 800 |
+
0.911
|
| 801 |
+
],
|
| 802 |
+
"angle": 0,
|
| 803 |
+
"content": "(3) The LAGaBi could also be seamlessly coupled with other layout embedding and multimodal-based document understanding models, improving their performance even further. Performance improvements on LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a) and LayoutLmv3 (Huang et al., 2022)) are obvious, with F1 score gains of \\(8.10\\%\\) \\(5.49\\%\\) \\(0.71\\%\\) on FUNSD and \\(0.62\\%\\) \\(2.10\\%\\) \\(0.49\\%\\) on CORD. The process"
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "list",
|
| 807 |
+
"bbox": [
|
| 808 |
+
0.113,
|
| 809 |
+
0.589,
|
| 810 |
+
0.49,
|
| 811 |
+
0.911
|
| 812 |
+
],
|
| 813 |
+
"angle": 0,
|
| 814 |
+
"content": null
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"bbox": [
|
| 819 |
+
0.508,
|
| 820 |
+
0.46,
|
| 821 |
+
0.885,
|
| 822 |
+
0.556
|
| 823 |
+
],
|
| 824 |
+
"angle": 0,
|
| 825 |
+
"content": "is particularly efficient since it only requires fine-tuning based on the published pre-trained weights rather than pre-training from scratch. Furthermore, by combining LAGaBi with the top-performing LayoutLMv3 model, we achieve new state-of-the-art results on both FUNSD and CORD datasets."
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "title",
|
| 829 |
+
"bbox": [
|
| 830 |
+
0.509,
|
| 831 |
+
0.574,
|
| 832 |
+
0.857,
|
| 833 |
+
0.59
|
| 834 |
+
],
|
| 835 |
+
"angle": 0,
|
| 836 |
+
"content": "4.3.2 Performance on multilingual dataset"
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"bbox": [
|
| 841 |
+
0.507,
|
| 842 |
+
0.598,
|
| 843 |
+
0.885,
|
| 844 |
+
0.805
|
| 845 |
+
],
|
| 846 |
+
"angle": 0,
|
| 847 |
+
"content": "Following the multi-lingual LayoutXLM (Xu et al., 2021b) and LiLT (Wang et al., 2022a), we also evaluate our method based on InfoXLM (Chi et al., 2020) on three sub-tasks: language-specific fine-tuning, multi-task fine-tuning, and zero-shot transfer learning. We first perform fine-tuning based on the Gaussian kernels with random initialization. For a fair comparison, following LiLT, we also adopt the pre-trained Gaussian kernels for further fine-tuning, and we employ the Gaussian kernels in RoBERTa+LAGaBi which have been pre-trained on 1M monolingual document data in Sec 4.3.1. Results on XFUND are shown in Table 2."
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"bbox": [
|
| 852 |
+
0.508,
|
| 853 |
+
0.808,
|
| 854 |
+
0.885,
|
| 855 |
+
0.919
|
| 856 |
+
],
|
| 857 |
+
"angle": 0,
|
| 858 |
+
"content": "LAGaBi is also valid in multilingual scenarios, allowing multilingual language models to understand structured documents and outperform existing best-performing methods. LAGaBi can largely increase the performance of the multilingual language model InfoXLM on all three tasks, regardless of whether the Gaussian kernels are"
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "page_number",
|
| 862 |
+
"bbox": [
|
| 863 |
+
0.481,
|
| 864 |
+
0.928,
|
| 865 |
+
0.521,
|
| 866 |
+
0.941
|
| 867 |
+
],
|
| 868 |
+
"angle": 0,
|
| 869 |
+
"content": "7778"
|
| 870 |
+
}
|
| 871 |
+
],
|
| 872 |
+
[
|
| 873 |
+
{
|
| 874 |
+
"type": "table",
|
| 875 |
+
"bbox": [
|
| 876 |
+
0.12,
|
| 877 |
+
0.083,
|
| 878 |
+
0.878,
|
| 879 |
+
0.431
|
| 880 |
+
],
|
| 881 |
+
"angle": 0,
|
| 882 |
+
"content": "<table><tr><td rowspan=\"2\">Task</td><td rowspan=\"2\">Model</td><td rowspan=\"2\">Pre-train Data size & language</td><td rowspan=\"2\">FUNSD EN</td><td colspan=\"7\">XFUND</td><td rowspan=\"2\">Avg.</td></tr><tr><td>ZH</td><td>JA</td><td>ES</td><td>FR</td><td>IT</td><td>DE</td><td>PT</td></tr><tr><td rowspan=\"6\">Language-specific</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.70</td><td>87.74</td><td>77.61</td><td>61.05</td><td>67.43</td><td>66.87</td><td>68.14</td><td>68.18</td><td>70.47</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>68.52</td><td>88.68</td><td>78.65</td><td>62.30</td><td>70.15</td><td>67.51</td><td>70.63</td><td>70.08</td><td>72.07</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.40</td><td>89.24</td><td>79.21</td><td>75.50</td><td>79.02</td><td>80.82</td><td>82.22</td><td>79.03</td><td>80.56</td></tr><tr><td>LiLT (2022a)</td><td>11M-Mono</td><td>84.15</td><td>89.38</td><td>79.64</td><td>79.11</td><td>79.53</td><td>83.76</td><td>82.31</td><td>82.20</td><td>82.51</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>83.35</td><td>89.38</td><td>84.01</td><td>78.06</td><td>82.80</td><td>84.40</td><td>84.95</td><td>83.25</td><td>83.78</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>84.17</td><td>89.65</td><td>84.73</td><td>77.51</td><td>83.86</td><td>85.19</td><td>83.89</td><td>83.47</td><td>84.06</td></tr><tr><td rowspan=\"6\">Zero-shot</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.70</td><td>41.44</td><td>30.23</td><td>30.55</td><td>37.10</td><td>27.67</td><td>32.86</td><td>39.36</td><td>38.24</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>68.52</td><td>44.08</td><td>36.03</td><td>31.02</td><td>40.21</td><td>28.80</td><td>35.87</td><td>45.02</td><td>41.19</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.40</td><td>60.19</td><td>47.15</td><td>45.65</td><td>57.57</td><td>48.46</td><td>52.52</td><td>53.90</td><td>55.61</td></tr><tr><td>LiLT (2022a)</td><td>11M-Mono</td><td>84.15</td><td>61.52</td><td>51.84</td><td>51.01</td><td>59.23</td><td>53.71</td><td>60.13</td><td>63.25</td><td>60.61</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>83.35</td><td>47.91</td><td>46.13</td><td>48.98</td><td>54.84</td><td>47.40</td><td>53.23</td><td>58.82</td><td>55.08</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>84.17</td><td>39.88</td><td>35.77</td><td>44.82</td><td>54.45</td><td>46.72</td><td>51.64</td><td>56.37</td><td>51.73</td></tr><tr><td rowspan=\"6\">Multi-task</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.33</td><td>88.30</td><td>77.86</td><td>62.23</td><td>70.35</td><td>68.14</td><td>71.46</td><td>67.26</td><td>71.49</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>65.38</td><td>87.41</td><td>78.55</td><td>59.79</td><td>70.57</td><td>68.26</td><td>70.55</td><td>67.96</td><td>71.06</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.24</td><td>89.73</td><td>79.64</td><td>77.98</td><td>81.73</td><td>82.10</td><td>83.22</td><td>82.41</td><td>82.01</td></tr><tr><td>LiLT (2022a)</td><td>1M-Mono</td><td>85.74</td><td>90.47</td><td>80.88</td><td>83.40</td><td>85.77</td><td>87.92</td><td>87.69</td><td>84.93</td><td>85.85</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>86.67</td><td>90.90</td><td>86.49</td><td>81.74</td><td>86.44</td><td>87.74</td><td>88.18</td><td>86.72</td><td>86.89</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>86.35</td><td>92.00</td><td>86.86</td><td>81.50</td><td>87.00</td><td>87.96</td><td>87.58</td><td>87.24</td><td>87.22</td></tr></table>"
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "table_caption",
|
| 886 |
+
"bbox": [
|
| 887 |
+
0.113,
|
| 888 |
+
0.442,
|
| 889 |
+
0.883,
|
| 890 |
+
0.501
|
| 891 |
+
],
|
| 892 |
+
"angle": 0,
|
| 893 |
+
"content": "Table 2: The performance on FUNSD and XFUND with different settings, including language-specific fine-tuning (fine-tuning on X, testing on X), zero-shot transfer (fine-tuning on FUNSD, testing on X), and multi-task fine-tuning (fine-tuning on all 8 languages, testing on X). \"1M-Mono\" denotes 1 million monolingual (English) documents used for pre-training, while \"30M-Multi\" is the multilingual version. All the \\( F_1 \\) scores in percentage (\\%) are reported."
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"bbox": [
|
| 898 |
+
0.113,
|
| 899 |
+
0.524,
|
| 900 |
+
0.49,
|
| 901 |
+
0.846
|
| 902 |
+
],
|
| 903 |
+
"angle": 0,
|
| 904 |
+
"content": "pre-trained or not. InfoXLM+LAGaBi using the pre-trained Gaussian kernels outperforms the top-performing method LiLT on both language-specific and multi-task fine-tuning tasks, with average F1 scores of \\(84.06\\%\\) and \\(87.22\\%\\), demonstrating the efficacy of LAGaBi in multilingual scenarios. On the zero-shot transfer learning task, LAGaBi fell slightly behind its counterparts. This may be due to the inherent gaps between different languages, such as differences in reading order and semantic density. For example, English usually uses spaces to separate words and has uneven word lengths, while Chinese appears as a tighter sequence with smaller semantic units (i.e., characters). Such layout knowledge learned from a specific language shows limited contributions to other languages. This phenomenon also proves the effectiveness of LAGaBi in modeling layouts, i.e. it actually has acquired the layout knowledge for a specific language after fine-tuning on the corresponding data."
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "title",
|
| 908 |
+
"bbox": [
|
| 909 |
+
0.114,
|
| 910 |
+
0.863,
|
| 911 |
+
0.293,
|
| 912 |
+
0.879
|
| 913 |
+
],
|
| 914 |
+
"angle": 0,
|
| 915 |
+
"content": "4.4 Ablation Studies"
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"bbox": [
|
| 920 |
+
0.113,
|
| 921 |
+
0.888,
|
| 922 |
+
0.49,
|
| 923 |
+
0.919
|
| 924 |
+
],
|
| 925 |
+
"angle": 0,
|
| 926 |
+
"content": "To investigate the impacts of our learnable Gaussian kernels and polar coordinates, we have con"
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "text",
|
| 930 |
+
"bbox": [
|
| 931 |
+
0.508,
|
| 932 |
+
0.524,
|
| 933 |
+
0.885,
|
| 934 |
+
0.783
|
| 935 |
+
],
|
| 936 |
+
"angle": 0,
|
| 937 |
+
"content": "duced extensive ablation experiments based on several RoBERTa variants equipped with different layout encoding mechanisms (e.g. layout embedding layers, linear bias layers, and fixed/learnable Gaussian Kernels), and spatial relationships (e.g. distance, angle, and 2D-xy distance). All the variants are evaluated without further pre-training, and only fine-tuned for 2000 steps on FUNSD and CORD. Results on FUNSD's test set and CORD's validation set are shown in Table 3. From the result, we can observe that LAGaBi with learnable Gaussian kernels and polar coordinates (#8) can significantly outperform the baseline (#1) and the model with linear layout embedding layers (#2), indicating that models encoding layouts as attention biases are superior to layout embedding-based methods."
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "text",
|
| 941 |
+
"bbox": [
|
| 942 |
+
0.508,
|
| 943 |
+
0.791,
|
| 944 |
+
0.885,
|
| 945 |
+
0.919
|
| 946 |
+
],
|
| 947 |
+
"angle": 0,
|
| 948 |
+
"content": "Impact of the Gaussian kernels. To study the effects of various methods for converting polar coordinates to attention biases, we compared linear layers (#3), fixed Gaussian kernels (#4), and learnable Gaussian kernels (#8). The results demonstrate that linear layers are far less effective than Gaussian kernels, which is likely due to the fact that the Gaussian kernels are more in line with human"
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "page_number",
|
| 952 |
+
"bbox": [
|
| 953 |
+
0.481,
|
| 954 |
+
0.928,
|
| 955 |
+
0.521,
|
| 956 |
+
0.941
|
| 957 |
+
],
|
| 958 |
+
"angle": 0,
|
| 959 |
+
"content": "7779"
|
| 960 |
+
}
|
| 961 |
+
],
|
| 962 |
+
[
|
| 963 |
+
{
|
| 964 |
+
"type": "image",
|
| 965 |
+
"bbox": [
|
| 966 |
+
0.127,
|
| 967 |
+
0.087,
|
| 968 |
+
0.308,
|
| 969 |
+
0.261
|
| 970 |
+
],
|
| 971 |
+
"angle": 0,
|
| 972 |
+
"content": null
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "image",
|
| 976 |
+
"bbox": [
|
| 977 |
+
0.365,
|
| 978 |
+
0.087,
|
| 979 |
+
0.609,
|
| 980 |
+
0.267
|
| 981 |
+
],
|
| 982 |
+
"angle": 0,
|
| 983 |
+
"content": null
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "image",
|
| 987 |
+
"bbox": [
|
| 988 |
+
0.631,
|
| 989 |
+
0.087,
|
| 990 |
+
0.873,
|
| 991 |
+
0.267
|
| 992 |
+
],
|
| 993 |
+
"angle": 0,
|
| 994 |
+
"content": null
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "image_caption",
|
| 998 |
+
"bbox": [
|
| 999 |
+
0.113,
|
| 1000 |
+
0.281,
|
| 1001 |
+
0.885,
|
| 1002 |
+
0.325
|
| 1003 |
+
],
|
| 1004 |
+
"angle": 0,
|
| 1005 |
+
"content": "Figure 2: Visualization of the attention maps. The word-word attention scores are obtained by aggregating token-level attention in the last layer of transformers. We also annotate the position and order of each word in the original document page, and the attention scores are rounded to two decimal places for better visualization."
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "table",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
0.126,
|
| 1011 |
+
0.347,
|
| 1012 |
+
0.48,
|
| 1013 |
+
0.513
|
| 1014 |
+
],
|
| 1015 |
+
"angle": 0,
|
| 1016 |
+
"content": "<table><tr><td>Task</td><td>#</td><td>Ablation Strategy</td><td>FUNSD</td><td>CORD</td></tr><tr><td></td><td>1</td><td>RoBERTa(baseline)</td><td>66.48</td><td>92.29</td></tr><tr><td></td><td>2</td><td>+ embedding layers</td><td>69.59</td><td>92.67</td></tr><tr><td rowspan=\"2\">Impact of Gaussian</td><td>3</td><td>+ linear bias layers</td><td>76.32</td><td>93.00</td></tr><tr><td>4</td><td>+ fixed kernels</td><td>83.81</td><td>93.00</td></tr><tr><td rowspan=\"3\">Impact of Polar-Coor.</td><td>5</td><td>+ Euclidean distance</td><td>73.05</td><td>93.72</td></tr><tr><td>6</td><td>+ Angle</td><td>84.48</td><td>94.70</td></tr><tr><td>7</td><td>+ 2D-xy distance</td><td>79.85</td><td>94.21</td></tr><tr><td></td><td>8</td><td>+ LAGaBi</td><td>84.84</td><td>94.77</td></tr></table>"
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "table_caption",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
0.114,
|
| 1022 |
+
0.522,
|
| 1023 |
+
0.487,
|
| 1024 |
+
0.552
|
| 1025 |
+
],
|
| 1026 |
+
"angle": 0,
|
| 1027 |
+
"content": "Table 3: Ablation studies on the effectiveness of the learnable Gaussian kernels and the polar coordinates."
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
0.113,
|
| 1033 |
+
0.58,
|
| 1034 |
+
0.49,
|
| 1035 |
+
0.92
|
| 1036 |
+
],
|
| 1037 |
+
"angle": 0,
|
| 1038 |
+
"content": "intuition than linear layers. Learnable Gaussian kernels (#8) also achieve better performance than fixed Gaussian kernels whose mean is 0 and variance is 1 (#4), since the learnable Gaussian kernels enjoy better flexibility to adapt to different formats. Impact of the polar coordinates. Polar coordinates, which consist of two elements: distance and angle, is a typical technique for describing spatial relationships. We analyzed the effects of distance (#5) and angle (#6), as well as the classical 2-D relative horizontal and vertical distances proposed by TITL (Powalski et al., 2021) (#7). The results suggest that the model with angle information (#6) is more effective than the model with distance information (#5 and #7). We hypothesize that this is because angles are less impacted by size scaling than distances, but they are more sensitive to location changes. Furthermore, LAGaBi achieves much better performance than the model that employs horizontal and vertical distances, which further reveals the superiority of polar coordinates."
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "title",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
0.509,
|
| 1044 |
+
0.35,
|
| 1045 |
+
0.623,
|
| 1046 |
+
0.365
|
| 1047 |
+
],
|
| 1048 |
+
"angle": 0,
|
| 1049 |
+
"content": "4.5 Analysis"
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
0.508,
|
| 1055 |
+
0.371,
|
| 1056 |
+
0.883,
|
| 1057 |
+
0.516
|
| 1058 |
+
],
|
| 1059 |
+
"angle": 0,
|
| 1060 |
+
"content": "Impact of \\(\\alpha\\). Hyper-parameter \\(\\alpha\\) makes a tradeoff between semantic and layout contributions when computing pair-wise attention scores in our LABaBi, which is important. We conduct several experiments with different \\(\\alpha\\) settings to study the impact of \\(\\alpha\\) based on RoBERTa without any further pre-training. \\(F_{1}\\) scores on CORD's validation set are listed in Table 4, showing the model achieves its best performance when \\(\\alpha = 4\\)."
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "table",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
0.524,
|
| 1066 |
+
0.528,
|
| 1067 |
+
0.871,
|
| 1068 |
+
0.574
|
| 1069 |
+
],
|
| 1070 |
+
"angle": 0,
|
| 1071 |
+
"content": "<table><tr><td>α =</td><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td>CORD</td><td>92.29</td><td>92.82</td><td>93.08</td><td>93.46</td><td>94.77</td><td>94.39</td></tr></table>"
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "table_caption",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
0.508,
|
| 1077 |
+
0.584,
|
| 1078 |
+
0.883,
|
| 1079 |
+
0.613
|
| 1080 |
+
],
|
| 1081 |
+
"angle": 0,
|
| 1082 |
+
"content": "Table 4: Impact of different \\(\\alpha\\) settings. All the scores are from CORD's validation set."
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
0.508,
|
| 1088 |
+
0.63,
|
| 1089 |
+
0.885,
|
| 1090 |
+
0.92
|
| 1091 |
+
],
|
| 1092 |
+
"angle": 0,
|
| 1093 |
+
"content": "Visualization analysis. We visualize the word-level attention maps of the baseline RoBERTa and our RoBERTa+LAGaBi. Due to space limitations, in this paper, we only show the attention maps of the first 8 words in the input sequence. The case in Figure 2 is from the test set of FUNSD. As shown in Figure 2, the RoBERTa incorrectly associates the character \"R.\" with all the words, while most other words are treated as unrelated. According to the attention map in the RoBERTa+LAGaBi, greater attention scores arise between \"R.\" and \"F.\", \"J.\" and \"D.\", all of which are placed in the signature area, whereas attention scores between remote irrelevant words such as \"DATE\" and \"STRU\" are zeros. This demonstrates that LAGaBi indeed learns more accurate semantic associations by incorporating layout information. More examples and detailed analysis can be seen in Appendix.A."
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "page_number",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
0.481,
|
| 1099 |
+
0.928,
|
| 1100 |
+
0.521,
|
| 1101 |
+
0.941
|
| 1102 |
+
],
|
| 1103 |
+
"angle": 0,
|
| 1104 |
+
"content": "7780"
|
| 1105 |
+
}
|
| 1106 |
+
],
|
| 1107 |
+
[
|
| 1108 |
+
{
|
| 1109 |
+
"type": "title",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
0.115,
|
| 1112 |
+
0.084,
|
| 1113 |
+
0.248,
|
| 1114 |
+
0.099
|
| 1115 |
+
],
|
| 1116 |
+
"angle": 0,
|
| 1117 |
+
"content": "5 Conclusion"
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
0.117,
|
| 1123 |
+
0.11,
|
| 1124 |
+
0.49,
|
| 1125 |
+
0.399
|
| 1126 |
+
],
|
| 1127 |
+
"angle": 0,
|
| 1128 |
+
"content": "In this paper, we propose a model-agnostic and language-independent method that leverages Layout Attention with Gaussian Biases to encode the relative spatial positions for structured document understanding (SDU). Specifically, we first model the inter-word spatial relationships using polar coordinates. Then the query-key attention scores are revised by the Gaussian biases that are related to their spatial relationships. Our method can be applied to a series of Transformer-based models with extremely few parameters, improving their performance for SDU tasks. Experiments based on six transformer-based SDU models and three monolingual/multilingual benchmarks fully demonstrate the effectiveness of our proposal. This research provides new ideas for structured document understanding tasks, which are expected to promote the efficient development of document intelligence."
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "title",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
0.115,
|
| 1134 |
+
0.411,
|
| 1135 |
+
0.22,
|
| 1136 |
+
0.426
|
| 1137 |
+
],
|
| 1138 |
+
"angle": 0,
|
| 1139 |
+
"content": "Limitations"
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
0.117,
|
| 1145 |
+
0.437,
|
| 1146 |
+
0.49,
|
| 1147 |
+
0.646
|
| 1148 |
+
],
|
| 1149 |
+
"angle": 0,
|
| 1150 |
+
"content": "Despite the superior performance exhibited by LAGaBi, it does have some limitations. Firstly, in our experiments with the LayoutLM series that integrate multi-modal features, LAGaBi was only fine-tuned for validation without pre-training. We believe that leveraging multi-modal pre-training could further improve LAGaBi's performance based on LayoutLM, and this will be explored in future investigations. Secondly, although we have empirically demonstrated the effectiveness of polar coordinates and Gaussian distribution in layout learning, our motivation is driven by a simple intuition rather than rigorous mathematical proof."
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "title",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
0.115,
|
| 1156 |
+
0.658,
|
| 1157 |
+
0.287,
|
| 1158 |
+
0.673
|
| 1159 |
+
],
|
| 1160 |
+
"angle": 0,
|
| 1161 |
+
"content": "Acknowledgements"
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
0.114,
|
| 1167 |
+
0.683,
|
| 1168 |
+
0.488,
|
| 1169 |
+
0.715
|
| 1170 |
+
],
|
| 1171 |
+
"angle": 0,
|
| 1172 |
+
"content": "We sincerely thank all the anonymous reviewers for their valuable comments and suggestions."
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "title",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
0.115,
|
| 1178 |
+
0.741,
|
| 1179 |
+
0.214,
|
| 1180 |
+
0.756
|
| 1181 |
+
],
|
| 1182 |
+
"angle": 0,
|
| 1183 |
+
"content": "References"
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "ref_text",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
0.116,
|
| 1189 |
+
0.764,
|
| 1190 |
+
0.49,
|
| 1191 |
+
0.831
|
| 1192 |
+
],
|
| 1193 |
+
"angle": 0,
|
| 1194 |
+
"content": "Srikar Appalaraju, Bhavan Jasani, Bhargava Urala Kota, Yusheng Xie, and R Manmatha. 2021. Docformer: End-to-end transformer for document understanding. In Proceedings of the IEEE/CVF international conference on computer vision, pages 993-1003."
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "ref_text",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
0.116,
|
| 1200 |
+
0.839,
|
| 1201 |
+
0.49,
|
| 1202 |
+
0.919
|
| 1203 |
+
],
|
| 1204 |
+
"angle": 0,
|
| 1205 |
+
"content": "Zewen Chi, Li Dong, Furu Wei, Nan Yang, Saksham Singhal, Wenhui Wang, Xia Song, Xian-Ling Mao, Heyan Huang, and Ming Zhou. 2020. Infoxm: An information-theoretic framework for cross-lingual language model pre-training. arXiv preprint arXiv:2007.07834."
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "list",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
0.116,
|
| 1211 |
+
0.764,
|
| 1212 |
+
0.49,
|
| 1213 |
+
0.919
|
| 1214 |
+
],
|
| 1215 |
+
"angle": 0,
|
| 1216 |
+
"content": null
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "ref_text",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
0.511,
|
| 1222 |
+
0.086,
|
| 1223 |
+
0.886,
|
| 1224 |
+
0.192
|
| 1225 |
+
],
|
| 1226 |
+
"angle": 0,
|
| 1227 |
+
"content": "Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Édouard Grave, Myle Ott, Luke Zettle-moyer, and Veselin Stoyanov. 2020. Unsupervised cross-lingual representation learning at scale. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8440-8451."
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "ref_text",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
0.511,
|
| 1233 |
+
0.201,
|
| 1234 |
+
0.886,
|
| 1235 |
+
0.268
|
| 1236 |
+
],
|
| 1237 |
+
"angle": 0,
|
| 1238 |
+
"content": "Xue Han, Yi-Tong Wang, Jun-Lan Feng, Chao Deng, Zhan-Heng Chen, Yu-An Huang, Hui Su, Lun Hu, and Peng-Wei Hu. 2023. A survey of transformer-based multimodal pre-trained modals. Neurocomputing, 515:89-106."
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "ref_text",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
0.511,
|
| 1244 |
+
0.276,
|
| 1245 |
+
0.886,
|
| 1246 |
+
0.368
|
| 1247 |
+
],
|
| 1248 |
+
"angle": 0,
|
| 1249 |
+
"content": "Teakgyu Hong, Donghyun Kim, Mingi Ji, Wonseok Hwang, Daehyun Nam, and Sungrae Park. 2022. Bros: A pre-trained language model focusing on text and layout for better key information extraction from documents. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 10767-10775."
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "ref_text",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
0.511,
|
| 1255 |
+
0.377,
|
| 1256 |
+
0.886,
|
| 1257 |
+
0.444
|
| 1258 |
+
],
|
| 1259 |
+
"angle": 0,
|
| 1260 |
+
"content": "Yupan Huang, Tengchao Lv, Lei Cui, Yutong Lu, and Furu Wei. 2022. Layoutlmv3: Pre-training for document ai with unified text and image masking. In Proceedings of the 30th ACM International Conference on Multimedia, pages 4083-4091."
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "ref_text",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
0.511,
|
| 1266 |
+
0.452,
|
| 1267 |
+
0.886,
|
| 1268 |
+
0.531
|
| 1269 |
+
],
|
| 1270 |
+
"angle": 0,
|
| 1271 |
+
"content": "Guillaume Jaume, Hazim Kemal Ekenel, and Jean-Philippe Thiran. 2019. Funsd: A dataset for form understanding in noisy scanned documents. In 2019 International Conference on Document Analysis and Recognition Workshops (ICDARW), volume 2, pages 1-6. IEEE."
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "ref_text",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
0.511,
|
| 1277 |
+
0.54,
|
| 1278 |
+
0.886,
|
| 1279 |
+
0.594
|
| 1280 |
+
],
|
| 1281 |
+
"angle": 0,
|
| 1282 |
+
"content": "Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171-4186."
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "ref_text",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
0.511,
|
| 1288 |
+
0.602,
|
| 1289 |
+
0.886,
|
| 1290 |
+
0.641
|
| 1291 |
+
],
|
| 1292 |
+
"angle": 0,
|
| 1293 |
+
"content": "Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980."
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "ref_text",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
0.511,
|
| 1299 |
+
0.65,
|
| 1300 |
+
0.886,
|
| 1301 |
+
0.757
|
| 1302 |
+
],
|
| 1303 |
+
"angle": 0,
|
| 1304 |
+
"content": "Chen-Yu Lee, Chun-Liang Li, Timothy Dozat, Vincent Perot, Guolong Su, Nan Hua, Joshua Ainslie, Renshen Wang, Yasuhisa Fujii, and Tomas Pfister. 2022. Formnet: Structural encoding beyond sequential modeling in form document information extraction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3735-3754."
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "ref_text",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
0.511,
|
| 1310 |
+
0.765,
|
| 1311 |
+
0.886,
|
| 1312 |
+
0.858
|
| 1313 |
+
],
|
| 1314 |
+
"angle": 0,
|
| 1315 |
+
"content": "David Lewis, Gady Agam, Shlomo Argamon, Ophir Frieder, David Grossman, and Jefferson Heard. 2006. Building a test collection for complex document information processing. In Proceedings of the 29th annual international ACM SIGIR conference on Research and development in information retrieval, pages 665-666."
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "ref_text",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
0.511,
|
| 1321 |
+
0.866,
|
| 1322 |
+
0.886,
|
| 1323 |
+
0.919
|
| 1324 |
+
],
|
| 1325 |
+
"angle": 0,
|
| 1326 |
+
"content": "Chenliang Li, Bin Bi, Ming Yan, Wei Wang, Songfang Huang, Fei Huang, and Luo Si. 2021a. Structurallm: Structural pre-training for form understanding. arXiv preprint arXiv:2105.11210."
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "list",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
0.511,
|
| 1332 |
+
0.086,
|
| 1333 |
+
0.886,
|
| 1334 |
+
0.919
|
| 1335 |
+
],
|
| 1336 |
+
"angle": 0,
|
| 1337 |
+
"content": null
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "page_number",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
0.481,
|
| 1343 |
+
0.929,
|
| 1344 |
+
0.519,
|
| 1345 |
+
0.941
|
| 1346 |
+
],
|
| 1347 |
+
"angle": 0,
|
| 1348 |
+
"content": "7781"
|
| 1349 |
+
}
|
| 1350 |
+
],
|
| 1351 |
+
[
|
| 1352 |
+
{
|
| 1353 |
+
"type": "ref_text",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
0.117,
|
| 1356 |
+
0.086,
|
| 1357 |
+
0.49,
|
| 1358 |
+
0.166
|
| 1359 |
+
],
|
| 1360 |
+
"angle": 0,
|
| 1361 |
+
"content": "Peizhao Li, Jieuxiang Gu, Jason Kuen, Vlad I Morariu, Handong Zhao, Rajiv Jain, Varun Manjunatha, and Hongfu Liu. 2021b. Selfdoc: Self-supervised document representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5652-5660."
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"type": "ref_text",
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
0.117,
|
| 1367 |
+
0.174,
|
| 1368 |
+
0.49,
|
| 1369 |
+
0.254
|
| 1370 |
+
],
|
| 1371 |
+
"angle": 0,
|
| 1372 |
+
"content": "Yulin Li, Yuxi Qian, Yuechen Yu, Xiameng Qin, Chengquan Zhang, Yan Liu, Kun Yao, Junyu Han, Jingtuo Liu, and Errui Ding. 2021c. Structext: Structured text understanding with multi-modal transformers. In Proceedings of the 29th ACM International Conference on Multimedia, pages 1912-1920."
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "ref_text",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
0.117,
|
| 1378 |
+
0.262,
|
| 1379 |
+
0.49,
|
| 1380 |
+
0.329
|
| 1381 |
+
],
|
| 1382 |
+
"angle": 0,
|
| 1383 |
+
"content": "Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692."
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "ref_text",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
0.117,
|
| 1389 |
+
0.337,
|
| 1390 |
+
0.488,
|
| 1391 |
+
0.404
|
| 1392 |
+
],
|
| 1393 |
+
"angle": 0,
|
| 1394 |
+
"content": "Chuwei Luo, Changxu Cheng, Qi Zheng, and Cong Yao. 2023. Geolayoutm: Geometric pre-training for visual information extraction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7092-7101."
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "ref_text",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
0.117,
|
| 1400 |
+
0.412,
|
| 1401 |
+
0.488,
|
| 1402 |
+
0.477
|
| 1403 |
+
],
|
| 1404 |
+
"angle": 0,
|
| 1405 |
+
"content": "Seunghyun Park, Seung Shin, Bado Lee, Junyeop Lee, Jaeheung Surh, Minjoon Seo, and Hwalsuk Lee. 2019. Cord: a consolidated receipt dataset for post-ocr parsing. In Workshop on Document Intelligence at NeurIPS 2019."
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "ref_text",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
0.117,
|
| 1411 |
+
0.487,
|
| 1412 |
+
0.488,
|
| 1413 |
+
0.58
|
| 1414 |
+
],
|
| 1415 |
+
"angle": 0,
|
| 1416 |
+
"content": "Qiming Peng, Yinxu Pan, Wenjin Wang, Bin Luo, Zhenyu Zhang, Zhengjie Huang, Yuhui Cao, Weichong Yin, Yongfeng Chen, Yin Zhang, et al. 2022. Ernie layout: Layout knowledge enhanced pretraining for visually-rich document understanding. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 3744-3756."
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "ref_text",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
0.117,
|
| 1422 |
+
0.588,
|
| 1423 |
+
0.488,
|
| 1424 |
+
0.695
|
| 1425 |
+
],
|
| 1426 |
+
"angle": 0,
|
| 1427 |
+
"content": "Rafał Powalski, Łukasz Borchmann, Dawid Jurkiewicz, Tomasz Dwojak, Michal Pietruszka, and Gabriela Pałka. 2021. Going full-tilt boogie on document understanding with text-image layout transformer. In Document Analysis and Recognition-ICDAR 2021: 16th International Conference, Lausanne, Switzerland, September 5–10, 2021, Proceedings, Part II 16, pages 732–747. Springer."
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "ref_text",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
0.117,
|
| 1433 |
+
0.703,
|
| 1434 |
+
0.488,
|
| 1435 |
+
0.755
|
| 1436 |
+
],
|
| 1437 |
+
"angle": 0,
|
| 1438 |
+
"content": "Ofir Press, Noah A Smith, and Mike Lewis. 2021. Train short, test long: Attention with linear biases enables input length extrapolation. arXiv preprint arXiv:2108.12409."
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "ref_text",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
0.117,
|
| 1444 |
+
0.764,
|
| 1445 |
+
0.488,
|
| 1446 |
+
0.844
|
| 1447 |
+
],
|
| 1448 |
+
"angle": 0,
|
| 1449 |
+
"content": "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. The Journal of Machine Learning Research, 21(1):5485-5551."
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "ref_text",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
0.117,
|
| 1455 |
+
0.852,
|
| 1456 |
+
0.488,
|
| 1457 |
+
0.919
|
| 1458 |
+
],
|
| 1459 |
+
"angle": 0,
|
| 1460 |
+
"content": "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."
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "list",
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
0.117,
|
| 1466 |
+
0.086,
|
| 1467 |
+
0.49,
|
| 1468 |
+
0.919
|
| 1469 |
+
],
|
| 1470 |
+
"angle": 0,
|
| 1471 |
+
"content": null
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "ref_text",
|
| 1475 |
+
"bbox": [
|
| 1476 |
+
0.511,
|
| 1477 |
+
0.086,
|
| 1478 |
+
0.883,
|
| 1479 |
+
0.166
|
| 1480 |
+
],
|
| 1481 |
+
"angle": 0,
|
| 1482 |
+
"content": "Jiapeng Wang, Lianwen Jin, and Kai Ding. 2022a. Lilt: A simple yet effective language-independent layout transformer for structured document understanding. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7747-7757."
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "ref_text",
|
| 1486 |
+
"bbox": [
|
| 1487 |
+
0.512,
|
| 1488 |
+
0.173,
|
| 1489 |
+
0.883,
|
| 1490 |
+
0.264
|
| 1491 |
+
],
|
| 1492 |
+
"angle": 0,
|
| 1493 |
+
"content": "Wenjin Wang, Zhengjie Huang, Bin Luo, Qianglong Chen, Qiming Peng, Yinxu Pan, Weichong Yin, Shikun Feng, Yu Sun, Dianhai Yu, et al. 2022b. mmlayout: Multi-grained multimodal transformer for document understanding. In Proceedings of the 30th ACM International Conference on Multimedia, pages 4877-4886."
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "ref_text",
|
| 1497 |
+
"bbox": [
|
| 1498 |
+
0.512,
|
| 1499 |
+
0.272,
|
| 1500 |
+
0.883,
|
| 1501 |
+
0.391
|
| 1502 |
+
],
|
| 1503 |
+
"angle": 0,
|
| 1504 |
+
"content": "Yang Xu, Yiheng Xu, Tengchao Lv, Lei Cui, Furu Wei, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, Wanxiang Che, et al. 2021a. Layoutmv2: Multi-modal pre-training for visually-rich document understanding. 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 2579-2591."
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "ref_text",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
0.512,
|
| 1510 |
+
0.398,
|
| 1511 |
+
0.883,
|
| 1512 |
+
0.477
|
| 1513 |
+
],
|
| 1514 |
+
"angle": 0,
|
| 1515 |
+
"content": "Yiheng Xu, Minghao Li, Lei Cui, Shaohan Huang, Furu Wei, and Ming Zhou. 2020. Layoutm: Pre-training of text and layout for document image understanding. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1192-1200."
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "ref_text",
|
| 1519 |
+
"bbox": [
|
| 1520 |
+
0.512,
|
| 1521 |
+
0.484,
|
| 1522 |
+
0.883,
|
| 1523 |
+
0.551
|
| 1524 |
+
],
|
| 1525 |
+
"angle": 0,
|
| 1526 |
+
"content": "Yiheng Xu, Tengchao Lv, Lei Cui, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, and Furu Wei. 2021b. Layoutxlm: Multimodal pre-training for multilingual visually-rich document understanding. arXiv preprint arXiv:2104.08836."
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "list",
|
| 1530 |
+
"bbox": [
|
| 1531 |
+
0.511,
|
| 1532 |
+
0.086,
|
| 1533 |
+
0.883,
|
| 1534 |
+
0.551
|
| 1535 |
+
],
|
| 1536 |
+
"angle": 0,
|
| 1537 |
+
"content": null
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "title",
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
0.512,
|
| 1543 |
+
0.558,
|
| 1544 |
+
0.634,
|
| 1545 |
+
0.574
|
| 1546 |
+
],
|
| 1547 |
+
"angle": 0,
|
| 1548 |
+
"content": "A Appendix"
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"type": "text",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
0.512,
|
| 1554 |
+
0.582,
|
| 1555 |
+
0.883,
|
| 1556 |
+
0.694
|
| 1557 |
+
],
|
| 1558 |
+
"angle": 0,
|
| 1559 |
+
"content": "Figure 3 in this section shows the attention distribution of four additional examples on FUNSD. From all the examples, it can be observed that the RoBERTa model typically treats each word in isolation, while RoBERTa+LAGaBi can learn the more accurate correlations between different words based on their layout relationships."
|
| 1560 |
+
},
|
| 1561 |
+
{
|
| 1562 |
+
"type": "text",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
0.511,
|
| 1565 |
+
0.695,
|
| 1566 |
+
0.883,
|
| 1567 |
+
0.918
|
| 1568 |
+
],
|
| 1569 |
+
"angle": 0,
|
| 1570 |
+
"content": "We also visualize the word-level attention maps of LayoutLMv3 and LayoutLMv3+LAGaBi. LayoutLMv3 is currently the top-performing method for structured document understanding, which utilizes the 2-D relative positions through linear attention biases. From the attention maps shown in Figure 4, we can observe that LayoutLMv3+LAGaBi refers more to layout information when modeling the inter-word semantic correlations, while LayoutLMv3 is relatively independent. For example, in the third sample of Figure 4, LAGaBi learns more dense associations among \"Tiers\", \"II.\", and \"&\" in the neighborhood than LayoutLMv3, which is in line with human intuition."
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "page_number",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
0.481,
|
| 1576 |
+
0.929,
|
| 1577 |
+
0.521,
|
| 1578 |
+
0.941
|
| 1579 |
+
],
|
| 1580 |
+
"angle": 0,
|
| 1581 |
+
"content": "7782"
|
| 1582 |
+
}
|
| 1583 |
+
],
|
| 1584 |
+
[
|
| 1585 |
+
{
|
| 1586 |
+
"type": "image",
|
| 1587 |
+
"bbox": [
|
| 1588 |
+
0.119,
|
| 1589 |
+
0.094,
|
| 1590 |
+
0.337,
|
| 1591 |
+
0.284
|
| 1592 |
+
],
|
| 1593 |
+
"angle": 0,
|
| 1594 |
+
"content": null
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "image",
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
0.362,
|
| 1600 |
+
0.104,
|
| 1601 |
+
0.61,
|
| 1602 |
+
0.283
|
| 1603 |
+
],
|
| 1604 |
+
"angle": 0,
|
| 1605 |
+
"content": null
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "image",
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
0.624,
|
| 1611 |
+
0.104,
|
| 1612 |
+
0.868,
|
| 1613 |
+
0.283
|
| 1614 |
+
],
|
| 1615 |
+
"angle": 0,
|
| 1616 |
+
"content": null
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "image",
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
0.131,
|
| 1622 |
+
0.302,
|
| 1623 |
+
0.322,
|
| 1624 |
+
0.467
|
| 1625 |
+
],
|
| 1626 |
+
"angle": 0,
|
| 1627 |
+
"content": null
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "image",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
0.365,
|
| 1633 |
+
0.3,
|
| 1634 |
+
0.609,
|
| 1635 |
+
0.476
|
| 1636 |
+
],
|
| 1637 |
+
"angle": 0,
|
| 1638 |
+
"content": null
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "image",
|
| 1642 |
+
"bbox": [
|
| 1643 |
+
0.626,
|
| 1644 |
+
0.3,
|
| 1645 |
+
0.868,
|
| 1646 |
+
0.476
|
| 1647 |
+
],
|
| 1648 |
+
"angle": 0,
|
| 1649 |
+
"content": null
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "image",
|
| 1653 |
+
"bbox": [
|
| 1654 |
+
0.145,
|
| 1655 |
+
0.491,
|
| 1656 |
+
0.337,
|
| 1657 |
+
0.665
|
| 1658 |
+
],
|
| 1659 |
+
"angle": 0,
|
| 1660 |
+
"content": null
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "image",
|
| 1664 |
+
"bbox": [
|
| 1665 |
+
0.362,
|
| 1666 |
+
0.492,
|
| 1667 |
+
0.61,
|
| 1668 |
+
0.673
|
| 1669 |
+
],
|
| 1670 |
+
"angle": 0,
|
| 1671 |
+
"content": null
|
| 1672 |
+
},
|
| 1673 |
+
{
|
| 1674 |
+
"type": "image",
|
| 1675 |
+
"bbox": [
|
| 1676 |
+
0.622,
|
| 1677 |
+
0.492,
|
| 1678 |
+
0.869,
|
| 1679 |
+
0.673
|
| 1680 |
+
],
|
| 1681 |
+
"angle": 0,
|
| 1682 |
+
"content": null
|
| 1683 |
+
},
|
| 1684 |
+
{
|
| 1685 |
+
"type": "image",
|
| 1686 |
+
"bbox": [
|
| 1687 |
+
0.144,
|
| 1688 |
+
0.686,
|
| 1689 |
+
0.334,
|
| 1690 |
+
0.871
|
| 1691 |
+
],
|
| 1692 |
+
"angle": 0,
|
| 1693 |
+
"content": null
|
| 1694 |
+
},
|
| 1695 |
+
{
|
| 1696 |
+
"type": "image",
|
| 1697 |
+
"bbox": [
|
| 1698 |
+
0.359,
|
| 1699 |
+
0.687,
|
| 1700 |
+
0.611,
|
| 1701 |
+
0.873
|
| 1702 |
+
],
|
| 1703 |
+
"angle": 0,
|
| 1704 |
+
"content": null
|
| 1705 |
+
},
|
| 1706 |
+
{
|
| 1707 |
+
"type": "image",
|
| 1708 |
+
"bbox": [
|
| 1709 |
+
0.622,
|
| 1710 |
+
0.687,
|
| 1711 |
+
0.871,
|
| 1712 |
+
0.873
|
| 1713 |
+
],
|
| 1714 |
+
"angle": 0,
|
| 1715 |
+
"content": null
|
| 1716 |
+
},
|
| 1717 |
+
{
|
| 1718 |
+
"type": "image_caption",
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
0.287,
|
| 1721 |
+
0.888,
|
| 1722 |
+
0.71,
|
| 1723 |
+
0.904
|
| 1724 |
+
],
|
| 1725 |
+
"angle": 0,
|
| 1726 |
+
"content": "Figure 3: Visualization of more examples based on RoBERTa."
|
| 1727 |
+
},
|
| 1728 |
+
{
|
| 1729 |
+
"type": "page_number",
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
0.481,
|
| 1732 |
+
0.928,
|
| 1733 |
+
0.52,
|
| 1734 |
+
0.941
|
| 1735 |
+
],
|
| 1736 |
+
"angle": 0,
|
| 1737 |
+
"content": "7783"
|
| 1738 |
+
}
|
| 1739 |
+
],
|
| 1740 |
+
[
|
| 1741 |
+
{
|
| 1742 |
+
"type": "image",
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
0.129,
|
| 1745 |
+
0.109,
|
| 1746 |
+
0.312,
|
| 1747 |
+
0.282
|
| 1748 |
+
],
|
| 1749 |
+
"angle": 0,
|
| 1750 |
+
"content": null
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"type": "image_caption",
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
0.446,
|
| 1756 |
+
0.11,
|
| 1757 |
+
0.569,
|
| 1758 |
+
0.119
|
| 1759 |
+
],
|
| 1760 |
+
"angle": 0,
|
| 1761 |
+
"content": "Attention Map of LayoutLMv3"
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"type": "image",
|
| 1765 |
+
"bbox": [
|
| 1766 |
+
0.365,
|
| 1767 |
+
0.125,
|
| 1768 |
+
0.603,
|
| 1769 |
+
0.285
|
| 1770 |
+
],
|
| 1771 |
+
"angle": 0,
|
| 1772 |
+
"content": null
|
| 1773 |
+
},
|
| 1774 |
+
{
|
| 1775 |
+
"type": "image_caption",
|
| 1776 |
+
"bbox": [
|
| 1777 |
+
0.692,
|
| 1778 |
+
0.11,
|
| 1779 |
+
0.85,
|
| 1780 |
+
0.119
|
| 1781 |
+
],
|
| 1782 |
+
"angle": 0,
|
| 1783 |
+
"content": "Attention Map of LayoutLMv3+LAGaBi"
|
| 1784 |
+
},
|
| 1785 |
+
{
|
| 1786 |
+
"type": "image",
|
| 1787 |
+
"bbox": [
|
| 1788 |
+
0.629,
|
| 1789 |
+
0.125,
|
| 1790 |
+
0.866,
|
| 1791 |
+
0.285
|
| 1792 |
+
],
|
| 1793 |
+
"angle": 0,
|
| 1794 |
+
"content": null
|
| 1795 |
+
},
|
| 1796 |
+
{
|
| 1797 |
+
"type": "image",
|
| 1798 |
+
"bbox": [
|
| 1799 |
+
0.123,
|
| 1800 |
+
0.289,
|
| 1801 |
+
0.331,
|
| 1802 |
+
0.482
|
| 1803 |
+
],
|
| 1804 |
+
"angle": 0,
|
| 1805 |
+
"content": null
|
| 1806 |
+
},
|
| 1807 |
+
{
|
| 1808 |
+
"type": "image_caption",
|
| 1809 |
+
"bbox": [
|
| 1810 |
+
0.449,
|
| 1811 |
+
0.3,
|
| 1812 |
+
0.572,
|
| 1813 |
+
0.309
|
| 1814 |
+
],
|
| 1815 |
+
"angle": 0,
|
| 1816 |
+
"content": "Attention Map of LayoutLMv3"
|
| 1817 |
+
},
|
| 1818 |
+
{
|
| 1819 |
+
"type": "image",
|
| 1820 |
+
"bbox": [
|
| 1821 |
+
0.362,
|
| 1822 |
+
0.314,
|
| 1823 |
+
0.605,
|
| 1824 |
+
0.478
|
| 1825 |
+
],
|
| 1826 |
+
"angle": 0,
|
| 1827 |
+
"content": null
|
| 1828 |
+
},
|
| 1829 |
+
{
|
| 1830 |
+
"type": "image_caption",
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
0.695,
|
| 1833 |
+
0.3,
|
| 1834 |
+
0.853,
|
| 1835 |
+
0.309
|
| 1836 |
+
],
|
| 1837 |
+
"angle": 0,
|
| 1838 |
+
"content": "Attention Map of LayoutLMv3+LAGaBi"
|
| 1839 |
+
},
|
| 1840 |
+
{
|
| 1841 |
+
"type": "image",
|
| 1842 |
+
"bbox": [
|
| 1843 |
+
0.626,
|
| 1844 |
+
0.314,
|
| 1845 |
+
0.868,
|
| 1846 |
+
0.478
|
| 1847 |
+
],
|
| 1848 |
+
"angle": 0,
|
| 1849 |
+
"content": null
|
| 1850 |
+
},
|
| 1851 |
+
{
|
| 1852 |
+
"type": "image",
|
| 1853 |
+
"bbox": [
|
| 1854 |
+
0.129,
|
| 1855 |
+
0.493,
|
| 1856 |
+
0.322,
|
| 1857 |
+
0.66
|
| 1858 |
+
],
|
| 1859 |
+
"angle": 0,
|
| 1860 |
+
"content": null
|
| 1861 |
+
},
|
| 1862 |
+
{
|
| 1863 |
+
"type": "image_caption",
|
| 1864 |
+
"bbox": [
|
| 1865 |
+
0.45,
|
| 1866 |
+
0.493,
|
| 1867 |
+
0.572,
|
| 1868 |
+
0.502
|
| 1869 |
+
],
|
| 1870 |
+
"angle": 0,
|
| 1871 |
+
"content": "Attention Map of LayoutLMv3"
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"type": "image",
|
| 1875 |
+
"bbox": [
|
| 1876 |
+
0.365,
|
| 1877 |
+
0.507,
|
| 1878 |
+
0.606,
|
| 1879 |
+
0.671
|
| 1880 |
+
],
|
| 1881 |
+
"angle": 0,
|
| 1882 |
+
"content": null
|
| 1883 |
+
},
|
| 1884 |
+
{
|
| 1885 |
+
"type": "image_caption",
|
| 1886 |
+
"bbox": [
|
| 1887 |
+
0.696,
|
| 1888 |
+
0.493,
|
| 1889 |
+
0.854,
|
| 1890 |
+
0.502
|
| 1891 |
+
],
|
| 1892 |
+
"angle": 0,
|
| 1893 |
+
"content": "Attention Map of LayoutLMv3+LAGaBi"
|
| 1894 |
+
},
|
| 1895 |
+
{
|
| 1896 |
+
"type": "image",
|
| 1897 |
+
"bbox": [
|
| 1898 |
+
0.628,
|
| 1899 |
+
0.507,
|
| 1900 |
+
0.87,
|
| 1901 |
+
0.671
|
| 1902 |
+
],
|
| 1903 |
+
"angle": 0,
|
| 1904 |
+
"content": null
|
| 1905 |
+
},
|
| 1906 |
+
{
|
| 1907 |
+
"type": "image",
|
| 1908 |
+
"bbox": [
|
| 1909 |
+
0.127,
|
| 1910 |
+
0.685,
|
| 1911 |
+
0.322,
|
| 1912 |
+
0.866
|
| 1913 |
+
],
|
| 1914 |
+
"angle": 0,
|
| 1915 |
+
"content": null
|
| 1916 |
+
},
|
| 1917 |
+
{
|
| 1918 |
+
"type": "image_caption",
|
| 1919 |
+
"bbox": [
|
| 1920 |
+
0.444,
|
| 1921 |
+
0.687,
|
| 1922 |
+
0.565,
|
| 1923 |
+
0.696
|
| 1924 |
+
],
|
| 1925 |
+
"angle": 0,
|
| 1926 |
+
"content": "Attention Map of LayoutLMv3"
|
| 1927 |
+
},
|
| 1928 |
+
{
|
| 1929 |
+
"type": "image",
|
| 1930 |
+
"bbox": [
|
| 1931 |
+
0.347,
|
| 1932 |
+
0.703,
|
| 1933 |
+
0.599,
|
| 1934 |
+
0.87
|
| 1935 |
+
],
|
| 1936 |
+
"angle": 0,
|
| 1937 |
+
"content": null
|
| 1938 |
+
},
|
| 1939 |
+
{
|
| 1940 |
+
"type": "image_caption",
|
| 1941 |
+
"bbox": [
|
| 1942 |
+
0.689,
|
| 1943 |
+
0.687,
|
| 1944 |
+
0.846,
|
| 1945 |
+
0.696
|
| 1946 |
+
],
|
| 1947 |
+
"angle": 0,
|
| 1948 |
+
"content": "Attention Map of LayoutLMv3+LAGaBi"
|
| 1949 |
+
},
|
| 1950 |
+
{
|
| 1951 |
+
"type": "image",
|
| 1952 |
+
"bbox": [
|
| 1953 |
+
0.612,
|
| 1954 |
+
0.702,
|
| 1955 |
+
0.862,
|
| 1956 |
+
0.87
|
| 1957 |
+
],
|
| 1958 |
+
"angle": 0,
|
| 1959 |
+
"content": null
|
| 1960 |
+
},
|
| 1961 |
+
{
|
| 1962 |
+
"type": "image_caption",
|
| 1963 |
+
"bbox": [
|
| 1964 |
+
0.3,
|
| 1965 |
+
0.884,
|
| 1966 |
+
0.698,
|
| 1967 |
+
0.899
|
| 1968 |
+
],
|
| 1969 |
+
"angle": 0,
|
| 1970 |
+
"content": "Figure 4: Visualization of examples base on LayoutLMv3."
|
| 1971 |
+
},
|
| 1972 |
+
{
|
| 1973 |
+
"type": "page_number",
|
| 1974 |
+
"bbox": [
|
| 1975 |
+
0.481,
|
| 1976 |
+
0.929,
|
| 1977 |
+
0.522,
|
| 1978 |
+
0.941
|
| 1979 |
+
],
|
| 1980 |
+
"angle": 0,
|
| 1981 |
+
"content": "7784"
|
| 1982 |
+
}
|
| 1983 |
+
]
|
| 1984 |
+
]
|
2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/fc2d1e06-8d86-4d7d-9ced-4589565dfec7_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20b9609e3f1e40b96922081a3823bb7cbad9d277690ef01b3c4d1a2c4fed52ac
|
| 3 |
+
size 1816162
|
2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/full.md
ADDED
|
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beyond Layout Embedding: Layout Attention with Gaussian Biases for Structured Document Understanding
|
| 2 |
+
|
| 3 |
+
Xi Zhu, Xue Han, Shuyuan Peng, Shuo Lei, Chao Deng and Junlan Feng*
|
| 4 |
+
|
| 5 |
+
JIUTIAN Team, China Mobile Research Institute, Beijing, China
|
| 6 |
+
|
| 7 |
+
{zhuqian,hanxueai,pengshuyuan,leishuo,dengchao,fengjunlan}@chinamobile.com
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Effectively encoding layout information is a central problem in structured document understanding. Most existing methods rely heavily on millions of trainable parameters to learn the layout features of each word from Cartesian coordinates. However, two unresolved questions remain: (1) Is the Cartesian coordinate system the optimal choice for layout modeling? (2) Are massive learnable parameters truly necessary for layout representation? In this paper, we address these questions by proposing Layout Attention with Gaussian Biases (LAGaBi): Firstly, we find that polar coordinates provide a superior choice over Cartesian coordinates as they offer a measurement of both distance and angle between word pairs, capturing relative positions more effectively. Furthermore, by feeding the distances and angles into 2-D Gaussian kernels, we model intuitive inductive layout biases, i.e., the words closer within a document should receive more attention, which will act as the attention biases to revise the textual attention distribution. LAGaBi is model-agnostic and language-independent, which can be applied to a range of transformer-based models, such as the text pre-training models from the BERT series and the LayoutLM series that incorporate visual features. Experimental results on three widely used benchmarks demonstrate that, despite reducing the number of layout parameters from millions to 48, LAGaBi achieves competitive or even superior performance. Our code is available on GitHub<sup>1</sup>.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Structured document understanding (SDU) has gained significant research attention in the field of intelligent document processing (Park et al., 2019; Jaume et al., 2019; Han et al., 2023). It focuses on extracting layout structures and contents from scanned or digital documents, leading to enhanced
|
| 16 |
+
|
| 17 |
+
performance in several downstream tasks like form comprehension and receipt understanding.
|
| 18 |
+
|
| 19 |
+
Unlike conventional text understanding (Liu et al., 2019; Vaswani et al., 2017; Kenton and Toutanova, 2019), SDU goes beyond comprehending serialized text and requires the ability to interpret documents with diverse layouts (Xu et al., 2020; Huang et al., 2022; Powalski et al., 2021; Li et al., 2021a; Wang et al., 2022a). Documents with varying layouts often contain text fields positioned in different ways. To take advantage of existing pre-trained language models, early methods (Xu et al., 2020; Li et al., 2021a,c; Appalaraju et al., 2021; Chi et al., 2020) propose to directly add 2-D position embedding to the word embedding for each word as input for Transformer. The position embedding encode the 2-D absolute coordinates $(x_0, y_0, x_1, y_1)$ of each word in the document through multi position encoding layers, where $(x_0, y_0)$ represents the upper left point and $(x_1, y_1)$ represents the lower right point of the bounding box for each word. Some researches (Powalski et al., 2021; Hong et al., 2022; Lee et al., 2022; Xu et al., 2021a; Huang et al., 2022) further proposed that absolute positions are inefficient for representing the spatial relationships between words. They employ relative positions between words to encode spatial relationships. For example, Hong et al.(2022) map the relative positions into embeddings, which are then multiplied with the semantic embedding of the word to calculate inter-word layout scores. This score is incorporated into the self-attention layers to combine semantic and layout features.
|
| 20 |
+
|
| 21 |
+
Despite the significant progress made, we argue that current methods, whether based on absolute or relative positioning, heavily rely on a large number of trainable parameters for position embeddings from Cartesian coordinates, often comprising millions of parameters. This raises two unexplored questions: (1) Is the Cartesian coordinate system the optimal choice for layout modeling? (2) Are
|
| 22 |
+
|
| 23 |
+
massive learnable layout parameters truly necessary? Concerning the former, various coordinate systems exist, including Cartesian, polar, and spherical coordinates, yet previous research has solely focused on Cartesian coordinates. Regarding the latter, it is intuitively expected that words closer within a document should receive more attention. However, this simple inductive bias may not be effectively learned solely through gradient updates.
|
| 24 |
+
|
| 25 |
+
In this paper, we present a unified investigation of the two aforementioned problems. Regarding the choice of coordinate systems, we find that polar coordinates offer a more efficient representation than Cartesian coordinates for expressing relative positions. By computing the differences in distance and angle between two words in polar space, polar coordinates outperform their Cartesian counterparts by providing extra angle information. For layout learning, we discover that layout modeling can be achieved by a specific distribution: words closer in space receive higher layout scores, eliminating the need for extra position embeddings. Combining these two choices, we propose LAGaBi (Layout Attention with Gaussian Biases). LAGaBi formulates pairwise spatial relationships between tokens using the distance and angle in the polar coordinate system. Moreover, the distance and angle are fed into a 2-D Gaussian distribution to output a layout score. We choose the Gaussian distribution because it guarantees that the layout score decreases when either the distance or angle variables increase, making it the most commonly used distribution for this purpose. The layout score is then incorporated into the original self-attention as attention bias, resulting in a revised distribution that considers both text and layout features. We introduce trainable Gaussian kernels to better align the semantic and layout scores at different scales, adding just $4 \times$ attention heads extra parameters. For instance, based on RoBERTa (Liu et al., 2019) with 12 attention heads, there are only 48 additional parameters that need to be learned for encoding layout features.
|
| 26 |
+
|
| 27 |
+
Extensive experiments demonstrate that LAGaBi achieves remarkable performance on diverse SDU benchmarks, including FUNSD (Jaume et al., 2019), CORD (Park et al., 2019), and XFUND (Xu et al., 2021b), across both monolingual and multilingual scenarios. LAGaBi emerges as a versatile module that seamlessly integrates with transformer-based language models, such as BERT (Kenton and Toutanova, 2019), RoBERTa, and InfoXLM (Chi
|
| 28 |
+
|
| 29 |
+
et al., 2020), empowering them to effectively process structured documents and achieve significant performance gains of up to 27.01 points. Additionally, LAGaBi can be incorporated into complex SDU models that leverage visual features, such as LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a), and LayoutLMv3 (Huang et al., 2022), leading to further performance enhancements and establishing new state-of-the-art results.
|
| 30 |
+
|
| 31 |
+
# 2 Related Works
|
| 32 |
+
|
| 33 |
+
Significant progress has recently been made by using the Transformer-based pre-trained model (PTM) to learn the cross-modality interaction between textual and layout information, which has been demonstrated to be critical for structured document understanding (Xu et al., 2020; Huang et al., 2022; Powalski et al., 2021; Li et al., 2021a; Wang et al., 2022a). LayoutLM (Xu et al., 2020) modified the input of BERT (Kenton and Toutanova, 2019) by adding position embedding layers to encode word-level 2-D coordinates, while StructuralLM (Li et al., 2021a) proposed to encode segment-level positions. LiLT (Wang et al., 2022a) encoded text and layout using two different transformer layers separately and adopted bi-directional attention to fuse them. Besides, there are a series of works that use multi-modal transformers to model text, layout, and image simultaneously, such as SelfDoc (Li et al., 2021b), DocFormer (Appalaraju et al., 2021), StrucTexT (Li et al., 2021c), ERNIE-Layout (Peng et al., 2022), mmLayout (Wang et al., 2022b).
|
| 34 |
+
|
| 35 |
+
Most of the above approaches encode the 2-D absolute positions, ignoring the critical relative spatial relationships between words that are essential to textual semantic understanding. Hong et al.(2022) proposed to encode the spatial relationships as relative position embeddings, which are then multiplied with the semantic embedding of the token to calculate inter-word layout scores. This score is incorporated into the self-attention to combine semantic and layout features. GeoLay-outLM (Luo et al., 2023) introduces geometric relations and brand-new geometric pre-training tasks in different levels for learning the geometric layout representation, whose geometric relations are largely dependent on some pre-defined manual rules. TITL (Powalski et al., 2021) encodes the relative positions between words in a simpler manner, and it adopts linear layers to convert the 2-D discrete distance (implemented through bucketing)
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
Layout Attention with Gaussian Biases
|
| 39 |
+
Figure 1: An illustration of our Layout Attention with Gaussian Biases (LAGaBi). For each query word, we first compute the spatial relationships of each keyword in a polar system centered on it. Then Gaussian kernels are employed to transform these spatial relationships into attention biases, which will revise the original query-key attention distribution. Such biases are shared across different Transformer layers. When using LAGaBi, we can encode the document layout structure without adding position embedding layers at the bottom of the network.
|
| 40 |
+
|
| 41 |
+
between words into attention biases motivated by T5 (Raffel et al., 2020). Such relative attention biases have also been employed by LayoutLMv2 (Xu et al., 2021a) and LayoutLMv3 (Huang et al., 2022), yielding notable results. Different from them, we model the relative positions from a new perspective, i.e. introducing polar coordinates with distance and angle that are more efficient in representing relative spatial relationships. Furthermore, we employ the extremely lightweight Gaussian kernels to encode polar coordinates into attention biases, offering a more streamlined approach with fewer trainable parameters and aligning better with human intuition compared to linear layers.
|
| 42 |
+
|
| 43 |
+
# 3 Methodology
|
| 44 |
+
|
| 45 |
+
Structured documents typically contain both textual words and layouts, where textual words denote the main content of the document, while layouts record the organizational form of text. Optical character recognition (OCR) as a classical technique for image document parsing can recognize the text as well as its locations. Formally, given a document $\mathcal{D}$ , OCR identifies the text words
|
| 46 |
+
|
| 47 |
+
$\mathcal{W} = \{w_i\}_{i=1}^N$ and their associated layout positions
|
| 48 |
+
$\mathcal{C} = \{c_i\}_{i=1}^N$ , where $N$ is the number of words while $c_i = [x_i^0, y_i^0, x_i^1, y_i^1]$ represents the left-top and right-bottom coordinates of the bounding box that contains the $i_{th}$ word. An ideal model for document understanding should take both text words and their layout positions into consideration.
|
| 49 |
+
|
| 50 |
+
The key to structured document comprehension, building upon the achievements of text understanding techniques such as Transformer (Vaswani et al., 2017), lies in effectively representing document layouts while remaining compatible with language representation. Therefore, there are two crucial problems that need to be solved: 1. How to model document layouts efficiently? 2. How to integrate the layouts into Transformer to guide textual semantic understanding of the document content?
|
| 51 |
+
|
| 52 |
+
In this paper, we introduce a novel layout modeling method for structured document understanding, namely Layout Attention with Gaussian Biases (LAGaBi). As shown in Figure 1, it mainly consists of two parts: modeling relative positions with polar coordinates and layout attention with Gaussian biases. The former is responsible for modeling the 2-D relative positions between words by po
|
| 53 |
+
|
| 54 |
+
lar coordinates which are capable of representing inter-word spatial relationships; The latter focuses on transforming polar coordinates into attention biases, which will modify the original semantic query-key attentions between words into a more suitable distribution that accurately captures the underlying layout structure of documents.
|
| 55 |
+
|
| 56 |
+
# 3.1 Spatial Relationships with Polar Coordinates
|
| 57 |
+
|
| 58 |
+
In a structured document, the relative spatial relationships between words are shown to be more important than their absolute coordinates, which can assist humans in better understanding pair-wise semantic dependencies. For example, tokens in the same line generally have stronger semantic associations with each other, while tokens that are farther away and on different lines are more difficult to form strong associations. Although some previous works (Powalski et al., 2021; Xu et al., 2021a; Li et al., 2021a) have proposed to model the relative distances, which acted as learnable attention biases, they still rely on learnable positional embeddings and only utilize the relative horizontal and vertical distances in Cartesian coordinate system.
|
| 59 |
+
|
| 60 |
+
Different from previous works, we propose to capture inter-word spatial relationships through polar coordinates, in which both orientations and distances can be preserved. For each query token, we can build a polar coordinate system centered at its position, and calculate the polar coordinates (spatial relationships) of its keys. More concretely, the position of the query token is regarded as the reference point (pole), and the horizontal direction in the current Cartesian coordinate system is set as the reference direction (polar axis) following the most common reading habit, i.e., left-to-right and top-to-down. Formally, given a query token with its 2-D coordinates $c_{i}$ as the pole, the polar coordinates $\mathbf{u}_{ij} = (\rho_{ij},\theta_{ij})$ of the $j_{th}$ key in this document page can be calculated as below:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\rho_ {i j} = \sqrt {\left(x _ {j} - x _ {i}\right) ^ {2} + \left(y _ {j} - y _ {i}\right) ^ {2}} \tag {1}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\theta_ {i j} = \tan^ {- 1} \left(\left(y _ {j} - y _ {i}\right) / \left(x _ {j} - x _ {i}\right)\right) \tag {2}
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $\rho_{ij} \in [0,1]$ and $\theta_{ij} \in [-\pi / 2, \pi / 2]$ denote the distance and angle (orientation) from the $i_{th}$ token to the $j_{th}$ token respectively, and $(x_i, y_i)$ are the normalized coordinates of the top-left point of the $i_{th}$ bounding box. For instance, in Figure 1, when taking "REPORT" as the reference point, the
|
| 71 |
+
|
| 72 |
+
spatial relationship between the words "FORM" and "REPORT" can be represented as a polar coordinate (0.064, 0), indicating a distance of 0.064 and an angle of 0 degrees, while that between the words "YEAR" and "REPORT" is (0.297, 1.432).
|
| 73 |
+
|
| 74 |
+
# 3.2 Layout Attention with Gaussian Biases
|
| 75 |
+
|
| 76 |
+
How to use the essential relative spatial relationships to guide the model to perceive layout information is a problem worth exploring. Inspired by ALiBi (Press et al., 2021) and T5 bias (Raffel et al., 2020) that encode the 1-D relative position information as attention biases upon the query-key scores instead of positional embedding, we propose to revise attention scores/distribution with 2-D attention biases that integrate spatial relationships. Specifically, the attention score in a single-head self-attention can be modified as:
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
a _ {i j} = \frac {\exp \left(\mathbf {q} _ {i} \mathbf {k} _ {j} ^ {T} / \sqrt {d _ {k}} + \alpha (\mathbf {g} \left(\mathbf {u} _ {i j}\right) - 1)\right)}{\sum_ {j = 1} ^ {N} \exp \left(\mathbf {q} _ {i} \mathbf {k} _ {j} ^ {T} / \sqrt {d _ {k}} + \alpha (\mathbf {g} \left(\mathbf {u} _ {i j}\right) - 1)\right)} \tag {3}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
where $\mathbf{q}_i$ is the $i_{th}$ query vector, $\mathbf{q}_i$ is the $j_{th}$ key vector, and $d_k$ is the dimension of the attention head. $\mathbf{g}(\mathbf{u}_{ij})$ denotes the attention biases, which is derived from the 2-D Gaussian kernel with learnable parameters based on polar coordinates $\mathbf{u}$ indicating spatial relationships. The Gaussian kernel ensures that words farther within the document are assigned a smaller layout score. Therefore, by incorporating a reversed term $(\mathbf{g}(\mathbf{u}_{ij}) - 1)$ , we can significantly penalize the attention scores of query-key pairs that are farther, while making only slight revisions to the scores of closer pairs. $\alpha$ is a hyper-parameter that makes a trade-off between semantic association and spatial dependency. It denotes how much the spatial relationship between the key and the query contributes to their semantic association. In particular, a convenient formula of $\mathbf{g}(\mathbf{u})$ is:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\mathbf {g} (\mathbf {u}) = e x p \left(- \frac {1}{2} (\mathbf {u} - \boldsymbol {\mu}) ^ {T} \boldsymbol {\Sigma} ^ {- 1} (\mathbf {u} - \boldsymbol {\mu})\right) \tag {4}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $\boldsymbol{\Sigma}$ and $\pmb{\mu}$ are learnable $2\times 2$ and $2\times 1$ covariance matrix and mean vector of a Gaussian kernel, respectively. We further restrict the covariances to have diagonal form, resulting in $2\times 2$ parameters per kernel for each attention head. Note that the Gaussian kernels are different across different attention heads, but are shared across different self-attention layers. Thus, there is a total of $2\times$ $2\times N_{\mathrm{heads}}$ learnable parameters for our attention biases, where $N_{\mathrm{heads}}$ denotes the attention head
|
| 89 |
+
|
| 90 |
+
number in each self-attention layer. For example, taking the RoBERTa base as the backbone, there are 48 parameters that need to be learned. Notably, we only include layout information in the keys and queries but not in the values, ensuring that the text semantics are not corrupted.
|
| 91 |
+
|
| 92 |
+
Properties of our LAGaBi: (1) It is easy to implement and can be adapted to any transformer-based model without changing its structure. (2) The position embedding layer is discarded, and there are very few parameters to learn, which can be done during the fine-tuning stage, so it is quite efficient. (3) It decouples layout and text understanding, allowing the potential of language models to be fully exploited in structured document understanding.
|
| 93 |
+
|
| 94 |
+
# 4 Experiments
|
| 95 |
+
|
| 96 |
+
# 4.1 Datasets
|
| 97 |
+
|
| 98 |
+
Pre-training Dataset. Following LayoutLM (Xu et al., 2020), we also pre-train our model using the IIT-CDIP Test Collection 1.0 (Lewis et al., 2006), which is a large-scale dataset with over 11 million scanned document images. Only 1 million of them are used for fast pre-training. We pre-process each document page using Tesseract $^2$ , an open-source OCR engine, to retrieve the textual contents as well as their layouts. We normalize the coordinates of each token to integers in the range of 0 to 1000 and add an empty bounding box $[0,0,0,0]$ to the special tokens [CLS], [SEP], and [PAD].
|
| 99 |
+
|
| 100 |
+
Fine-tuning Datasets. We evaluate our method on both monolingual (English) and multilingual document information extraction datasets listed below. FUNSD (Jaume et al., 2019) is a form dataset that uses forms to extract and organize textual information. It contains 199 documents, 149 of which are for training and 50 of which are for testing. CORD (Park et al., 2019) is a dataset for receipt key information extraction that includes 800, 100, and 100 receipts for training, validating, and testing, respectively. XFUND (Xu et al., 2021b) is a multilingual version of FUNSD with 8 languages, each language containing 199 instances (149 for training and 50 for testing) as FUNSD.
|
| 101 |
+
|
| 102 |
+
# 4.2 Implementation Details
|
| 103 |
+
|
| 104 |
+
Our approach is model-agnostic and language-independent, which can be applied to a range of transformer-based models. In this paper, we have evaluated our method based on three kinds
|
| 105 |
+
|
| 106 |
+
of baselines: 1) monolingual models (BERT (Kenton and Toutanova, 2019) and RoBERTa (Liu et al., 2019)), 2) multilingual model (InfoXLM (Chi et al., 2020)), and 3) document understanding models (LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a), and LayoutLMv3 (Huang et al., 2022)). Gaussian kernels will be included in the self-attention blocks of each model, which describe the relative spatial relationship between tokens.
|
| 107 |
+
|
| 108 |
+
Pre-training. We only conduct pre-training tasks for the two monolingual models: BERT+LAGaBi and RoBERTa+LAGaBi. We initialize the weight of them with the corresponding baselines, except the Gaussian kernels. The parameters of the Gaussian kernels, namely covariance matrixes and mean vectors, are randomly initialized. Both models are simply supervised by masked language modeling (MLM) loss during pre-training. Adam optimizer (Kingma and Ba, 2014) is adopted with a learning rate of $5e - 5$ , weight decay of $1e - 2$ and $(\beta_{1},\beta_{2}) = (0.9,0.999)$ . The batch size is set to 128 and all the two models are trained for 200,000 steps on 8 NVIDIA v100 32GB GPUs.
|
| 109 |
+
|
| 110 |
+
Fine-tuning. In this paper, we mainly focus on the document understanding task of semantic entity labeling, which aims at assigning each semantic entity a BIO label. We add a token-level classification layer upon the base models (including monolingual, multilingual, and document understanding models) to predict the BIO labels for this task. Word-level F1 score is adopted as the evaluation metric. The fine-tuning process takes 2000 steps using a batch size of 16 and the Adam optimizer with a learning rate of 5e-5 for FUNSD and 7e-5 for CORD and XFUND. Fine-tuning configurations for document understanding models follow their official releases. Hyper-parameter $\alpha$ is set to 4 for all experiments, which has been tuned on the CORD's val set.
|
| 111 |
+
|
| 112 |
+
# 4.3 Experimental Results
|
| 113 |
+
|
| 114 |
+
# 4.3.1 Performance on monolingual datasets
|
| 115 |
+
|
| 116 |
+
We first evaluate our method on the monolingual form and receipt understanding datasets. From the results shown in Table 1, we can observe that:
|
| 117 |
+
|
| 118 |
+
(1) The lightweight LAGaBi enables simple integration with language models, allowing them to effectively process structured documents. For example, without any pre-training on document data, RoBERTa+LAGaBi has achieved $84.84\%$ and $95.97\%$ F1 scores on FUNSD and CORD, surpassing baseline model RoBERTa by $18.38\%$ and
|
| 119 |
+
|
| 120 |
+
<table><tr><td>Model</td><td>#Parameters</td><td>Pre-training</td><td>Modality</td><td>FUNSD</td><td>CORD</td></tr><tr><td>BERT (Kenton and Toutanova, 2019)</td><td>110M</td><td>-</td><td>T</td><td>60.26</td><td>89.68</td></tr><tr><td>RoBERTa (Liu et al., 2019)</td><td>125M</td><td>-</td><td>T</td><td>66.48</td><td>93.54</td></tr><tr><td>BROS (Hong et al., 2022)</td><td>110M</td><td>11M</td><td>T+L</td><td>81.21</td><td>-</td></tr><tr><td>FormNet (Lee et al., 2022)</td><td>217M</td><td>11M</td><td>T+L</td><td>84.69</td><td>-</td></tr><tr><td>LiLT (Wang et al., 2022a)</td><td>131M</td><td>11M</td><td>T+L</td><td>88.41</td><td>96.07</td></tr><tr><td>BERT+LAGaBi(w/o pre-train)</td><td>110M+48</td><td>-</td><td>T+L</td><td>74.14 (+13.88)</td><td>93.44 (+3.76)</td></tr><tr><td>BERT+LAGaBi(w/ pre-train)</td><td>110M+48</td><td>1M</td><td>T+L</td><td>87.27 (+27.01)</td><td>95.82 (+6.14)</td></tr><tr><td>RoBERTa+LAGaBi(w/o pre-train)</td><td>125M+48</td><td>-</td><td>T+L</td><td>84.84 (+18.36)</td><td>95.97 (+2.43)</td></tr><tr><td>RoBERTa+LAGaBi(w/ pre-train)</td><td>125M+48</td><td>1M</td><td>T+L</td><td>89.15 (+22.67)</td><td>96.56 (+3.02)</td></tr><tr><td>LayoutLM (Xu et al., 2020)</td><td>160M</td><td>11M</td><td>T+L+I</td><td>79.27</td><td>94.31*</td></tr><tr><td>LayoutLMv2 (Xu et al., 2021a)</td><td>200M</td><td>11M</td><td>T+L+I</td><td>82.70</td><td>94.95</td></tr><tr><td>StrucTexT (Li et al., 2021c)</td><td>107M</td><td>11M</td><td>T+L+I</td><td>83.09</td><td>-</td></tr><tr><td>DocFormer (Appalaraju et al., 2021)</td><td>183M</td><td>11M</td><td>T+L+I</td><td>83.34</td><td>96.33</td></tr><tr><td>LayoutLMv3 (Huang et al., 2022)</td><td>133M</td><td>11M</td><td>T+L+I</td><td>90.29</td><td>96.56</td></tr><tr><td>LayoutLM+LAGaBi(w/o pre-train)</td><td>160M+48</td><td>-</td><td>T+L+I</td><td>87.77 (+8.10)</td><td>94.93(+0.62)</td></tr><tr><td>LayoutLMv2+LAGaBi(w/o pre-train)</td><td>200M+48</td><td>-</td><td>T+L+I</td><td>88.16 (+5.49)</td><td>97.05(+2.10)</td></tr><tr><td>LayoutLMv3+LAGaBi(w/o pre-train)</td><td>133M+48</td><td>-</td><td>T+L+I</td><td>91.00 (+0.71)</td><td>97.05 (+0.49)</td></tr></table>
|
| 121 |
+
|
| 122 |
+
Table 1: Performance on FUNSD and CORD for monolingual structured document understanding. "T/L/I" denotes the "text/layout/image" modality. (+x) denotes the gain in F1 score compared to base model, while * show the result from our re-implementation. All the F1 scores in percentage (%) are reported.
|
| 123 |
+
|
| 124 |
+
$2.43\%$ respectively. RoBERTa+LAGaBi also outperforms several representative document understanding models such as LayoutLM (Xu et al., 2020) and LayoutLMv2 (Xu et al., 2021a). The results show that LAGaBi is a powerful method for capturing essential layout features, allowing language models to be easily extended to adapt to structured document understanding tasks.
|
| 125 |
+
|
| 126 |
+
(2) Pre-training brings profits. After pre-training on 1 million unlabeled document data, our method exhibits extra improvements. RoBERTa+LAGaBi with pre-train surpasses all other approaches except LayoutLMv3 (Huang et al., 2022). While there is still a minor difference on FUNSD between our model and LayoutLMv3, our method is significantly easier to implement, introducing only 48 extra learnable parameters to the vanilla Transformers structure, making it more computationally efficient and flexible.
|
| 127 |
+
(3) The LAGaBi could also be seamlessly coupled with other layout embedding and multimodal-based document understanding models, improving their performance even further. Performance improvements on LayoutLM (Xu et al., 2020), LayoutLMv2 (Xu et al., 2021a) and LayoutLmv3 (Huang et al., 2022)) are obvious, with F1 score gains of $8.10\%$ $5.49\%$ $0.71\%$ on FUNSD and $0.62\%$ $2.10\%$ $0.49\%$ on CORD. The process
|
| 128 |
+
|
| 129 |
+
is particularly efficient since it only requires fine-tuning based on the published pre-trained weights rather than pre-training from scratch. Furthermore, by combining LAGaBi with the top-performing LayoutLMv3 model, we achieve new state-of-the-art results on both FUNSD and CORD datasets.
|
| 130 |
+
|
| 131 |
+
# 4.3.2 Performance on multilingual dataset
|
| 132 |
+
|
| 133 |
+
Following the multi-lingual LayoutXLM (Xu et al., 2021b) and LiLT (Wang et al., 2022a), we also evaluate our method based on InfoXLM (Chi et al., 2020) on three sub-tasks: language-specific fine-tuning, multi-task fine-tuning, and zero-shot transfer learning. We first perform fine-tuning based on the Gaussian kernels with random initialization. For a fair comparison, following LiLT, we also adopt the pre-trained Gaussian kernels for further fine-tuning, and we employ the Gaussian kernels in RoBERTa+LAGaBi which have been pre-trained on 1M monolingual document data in Sec 4.3.1. Results on XFUND are shown in Table 2.
|
| 134 |
+
|
| 135 |
+
LAGaBi is also valid in multilingual scenarios, allowing multilingual language models to understand structured documents and outperform existing best-performing methods. LAGaBi can largely increase the performance of the multilingual language model InfoXLM on all three tasks, regardless of whether the Gaussian kernels are
|
| 136 |
+
|
| 137 |
+
<table><tr><td rowspan="2">Task</td><td rowspan="2">Model</td><td rowspan="2">Pre-train Data size & language</td><td rowspan="2">FUNSD EN</td><td colspan="7">XFUND</td><td rowspan="2">Avg.</td></tr><tr><td>ZH</td><td>JA</td><td>ES</td><td>FR</td><td>IT</td><td>DE</td><td>PT</td></tr><tr><td rowspan="6">Language-specific</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.70</td><td>87.74</td><td>77.61</td><td>61.05</td><td>67.43</td><td>66.87</td><td>68.14</td><td>68.18</td><td>70.47</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>68.52</td><td>88.68</td><td>78.65</td><td>62.30</td><td>70.15</td><td>67.51</td><td>70.63</td><td>70.08</td><td>72.07</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.40</td><td>89.24</td><td>79.21</td><td>75.50</td><td>79.02</td><td>80.82</td><td>82.22</td><td>79.03</td><td>80.56</td></tr><tr><td>LiLT (2022a)</td><td>11M-Mono</td><td>84.15</td><td>89.38</td><td>79.64</td><td>79.11</td><td>79.53</td><td>83.76</td><td>82.31</td><td>82.20</td><td>82.51</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>83.35</td><td>89.38</td><td>84.01</td><td>78.06</td><td>82.80</td><td>84.40</td><td>84.95</td><td>83.25</td><td>83.78</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>84.17</td><td>89.65</td><td>84.73</td><td>77.51</td><td>83.86</td><td>85.19</td><td>83.89</td><td>83.47</td><td>84.06</td></tr><tr><td rowspan="6">Zero-shot</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.70</td><td>41.44</td><td>30.23</td><td>30.55</td><td>37.10</td><td>27.67</td><td>32.86</td><td>39.36</td><td>38.24</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>68.52</td><td>44.08</td><td>36.03</td><td>31.02</td><td>40.21</td><td>28.80</td><td>35.87</td><td>45.02</td><td>41.19</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.40</td><td>60.19</td><td>47.15</td><td>45.65</td><td>57.57</td><td>48.46</td><td>52.52</td><td>53.90</td><td>55.61</td></tr><tr><td>LiLT (2022a)</td><td>11M-Mono</td><td>84.15</td><td>61.52</td><td>51.84</td><td>51.01</td><td>59.23</td><td>53.71</td><td>60.13</td><td>63.25</td><td>60.61</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>83.35</td><td>47.91</td><td>46.13</td><td>48.98</td><td>54.84</td><td>47.40</td><td>53.23</td><td>58.82</td><td>55.08</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>84.17</td><td>39.88</td><td>35.77</td><td>44.82</td><td>54.45</td><td>46.72</td><td>51.64</td><td>56.37</td><td>51.73</td></tr><tr><td rowspan="6">Multi-task</td><td>XLM-RoBERTa (2020)</td><td>-</td><td>66.33</td><td>88.30</td><td>77.86</td><td>62.23</td><td>70.35</td><td>68.14</td><td>71.46</td><td>67.26</td><td>71.49</td></tr><tr><td>InfoXLM (2020)</td><td>-</td><td>65.38</td><td>87.41</td><td>78.55</td><td>59.79</td><td>70.57</td><td>68.26</td><td>70.55</td><td>67.96</td><td>71.06</td></tr><tr><td>LayoutXLM (2021b)</td><td>30M-Mutli</td><td>79.24</td><td>89.73</td><td>79.64</td><td>77.98</td><td>81.73</td><td>82.10</td><td>83.22</td><td>82.41</td><td>82.01</td></tr><tr><td>LiLT (2022a)</td><td>1M-Mono</td><td>85.74</td><td>90.47</td><td>80.88</td><td>83.40</td><td>85.77</td><td>87.92</td><td>87.69</td><td>84.93</td><td>85.85</td></tr><tr><td>InfoXLM+LAGaBi</td><td>-</td><td>86.67</td><td>90.90</td><td>86.49</td><td>81.74</td><td>86.44</td><td>87.74</td><td>88.18</td><td>86.72</td><td>86.89</td></tr><tr><td>InfoXLM+LAGaBi</td><td>1M-Mono</td><td>86.35</td><td>92.00</td><td>86.86</td><td>81.50</td><td>87.00</td><td>87.96</td><td>87.58</td><td>87.24</td><td>87.22</td></tr></table>
|
| 138 |
+
|
| 139 |
+
Table 2: The performance on FUNSD and XFUND with different settings, including language-specific fine-tuning (fine-tuning on X, testing on X), zero-shot transfer (fine-tuning on FUNSD, testing on X), and multi-task fine-tuning (fine-tuning on all 8 languages, testing on X). "1M-Mono" denotes 1 million monolingual (English) documents used for pre-training, while "30M-Multi" is the multilingual version. All the $F_1$ scores in percentage (\%) are reported.
|
| 140 |
+
|
| 141 |
+
pre-trained or not. InfoXLM+LAGaBi using the pre-trained Gaussian kernels outperforms the top-performing method LiLT on both language-specific and multi-task fine-tuning tasks, with average F1 scores of $84.06\%$ and $87.22\%$ , demonstrating the efficacy of LAGaBi in multilingual scenarios. On the zero-shot transfer learning task, LAGaBi fell slightly behind its counterparts. This may be due to the inherent gaps between different languages, such as differences in reading order and semantic density. For example, English usually uses spaces to separate words and has uneven word lengths, while Chinese appears as a tighter sequence with smaller semantic units (i.e., characters). Such layout knowledge learned from a specific language shows limited contributions to other languages. This phenomenon also proves the effectiveness of LAGaBi in modeling layouts, i.e. it actually has acquired the layout knowledge for a specific language after fine-tuning on the corresponding data.
|
| 142 |
+
|
| 143 |
+
# 4.4 Ablation Studies
|
| 144 |
+
|
| 145 |
+
To investigate the impacts of our learnable Gaussian kernels and polar coordinates, we have con
|
| 146 |
+
|
| 147 |
+
duced extensive ablation experiments based on several RoBERTa variants equipped with different layout encoding mechanisms (e.g. layout embedding layers, linear bias layers, and fixed/learnable Gaussian Kernels), and spatial relationships (e.g. distance, angle, and 2D-xy distance). All the variants are evaluated without further pre-training, and only fine-tuned for 2000 steps on FUNSD and CORD. Results on FUNSD's test set and CORD's validation set are shown in Table 3. From the result, we can observe that LAGaBi with learnable Gaussian kernels and polar coordinates (#8) can significantly outperform the baseline (#1) and the model with linear layout embedding layers (#2), indicating that models encoding layouts as attention biases are superior to layout embedding-based methods.
|
| 148 |
+
|
| 149 |
+
Impact of the Gaussian kernels. To study the effects of various methods for converting polar coordinates to attention biases, we compared linear layers (#3), fixed Gaussian kernels (#4), and learnable Gaussian kernels (#8). The results demonstrate that linear layers are far less effective than Gaussian kernels, which is likely due to the fact that the Gaussian kernels are more in line with human
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 2: Visualization of the attention maps. The word-word attention scores are obtained by aggregating token-level attention in the last layer of transformers. We also annotate the position and order of each word in the original document page, and the attention scores are rounded to two decimal places for better visualization.
|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
|
| 158 |
+
<table><tr><td>Task</td><td>#</td><td>Ablation Strategy</td><td>FUNSD</td><td>CORD</td></tr><tr><td></td><td>1</td><td>RoBERTa(baseline)</td><td>66.48</td><td>92.29</td></tr><tr><td></td><td>2</td><td>+ embedding layers</td><td>69.59</td><td>92.67</td></tr><tr><td rowspan="2">Impact of Gaussian</td><td>3</td><td>+ linear bias layers</td><td>76.32</td><td>93.00</td></tr><tr><td>4</td><td>+ fixed kernels</td><td>83.81</td><td>93.00</td></tr><tr><td rowspan="3">Impact of Polar-Coor.</td><td>5</td><td>+ Euclidean distance</td><td>73.05</td><td>93.72</td></tr><tr><td>6</td><td>+ Angle</td><td>84.48</td><td>94.70</td></tr><tr><td>7</td><td>+ 2D-xy distance</td><td>79.85</td><td>94.21</td></tr><tr><td></td><td>8</td><td>+ LAGaBi</td><td>84.84</td><td>94.77</td></tr></table>
|
| 159 |
+
|
| 160 |
+
intuition than linear layers. Learnable Gaussian kernels (#8) also achieve better performance than fixed Gaussian kernels whose mean is 0 and variance is 1 (#4), since the learnable Gaussian kernels enjoy better flexibility to adapt to different formats. Impact of the polar coordinates. Polar coordinates, which consist of two elements: distance and angle, is a typical technique for describing spatial relationships. We analyzed the effects of distance (#5) and angle (#6), as well as the classical 2-D relative horizontal and vertical distances proposed by TITL (Powalski et al., 2021) (#7). The results suggest that the model with angle information (#6) is more effective than the model with distance information (#5 and #7). We hypothesize that this is because angles are less impacted by size scaling than distances, but they are more sensitive to location changes. Furthermore, LAGaBi achieves much better performance than the model that employs horizontal and vertical distances, which further reveals the superiority of polar coordinates.
|
| 161 |
+
|
| 162 |
+
# 4.5 Analysis
|
| 163 |
+
|
| 164 |
+
Impact of $\alpha$ . Hyper-parameter $\alpha$ makes a tradeoff between semantic and layout contributions when computing pair-wise attention scores in our LABaBi, which is important. We conduct several experiments with different $\alpha$ settings to study the impact of $\alpha$ based on RoBERTa without any further pre-training. $F_{1}$ scores on CORD's validation set are listed in Table 4, showing the model achieves its best performance when $\alpha = 4$ .
|
| 165 |
+
|
| 166 |
+
Table 3: Ablation studies on the effectiveness of the learnable Gaussian kernels and the polar coordinates.
|
| 167 |
+
|
| 168 |
+
<table><tr><td>α =</td><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td>CORD</td><td>92.29</td><td>92.82</td><td>93.08</td><td>93.46</td><td>94.77</td><td>94.39</td></tr></table>
|
| 169 |
+
|
| 170 |
+
Table 4: Impact of different $\alpha$ settings. All the scores are from CORD's validation set.
|
| 171 |
+
|
| 172 |
+
Visualization analysis. We visualize the word-level attention maps of the baseline RoBERTa and our RoBERTa+LAGaBi. Due to space limitations, in this paper, we only show the attention maps of the first 8 words in the input sequence. The case in Figure 2 is from the test set of FUNSD. As shown in Figure 2, the RoBERTa incorrectly associates the character "R." with all the words, while most other words are treated as unrelated. According to the attention map in the RoBERTa+LAGaBi, greater attention scores arise between "R." and "F.", "J." and "D.", all of which are placed in the signature area, whereas attention scores between remote irrelevant words such as "DATE" and "STRU" are zeros. This demonstrates that LAGaBi indeed learns more accurate semantic associations by incorporating layout information. More examples and detailed analysis can be seen in Appendix.A.
|
| 173 |
+
|
| 174 |
+
# 5 Conclusion
|
| 175 |
+
|
| 176 |
+
In this paper, we propose a model-agnostic and language-independent method that leverages Layout Attention with Gaussian Biases to encode the relative spatial positions for structured document understanding (SDU). Specifically, we first model the inter-word spatial relationships using polar coordinates. Then the query-key attention scores are revised by the Gaussian biases that are related to their spatial relationships. Our method can be applied to a series of Transformer-based models with extremely few parameters, improving their performance for SDU tasks. Experiments based on six transformer-based SDU models and three monolingual/multilingual benchmarks fully demonstrate the effectiveness of our proposal. This research provides new ideas for structured document understanding tasks, which are expected to promote the efficient development of document intelligence.
|
| 177 |
+
|
| 178 |
+
# Limitations
|
| 179 |
+
|
| 180 |
+
Despite the superior performance exhibited by LAGaBi, it does have some limitations. Firstly, in our experiments with the LayoutLM series that integrate multi-modal features, LAGaBi was only fine-tuned for validation without pre-training. We believe that leveraging multi-modal pre-training could further improve LAGaBi's performance based on LayoutLM, and this will be explored in future investigations. Secondly, although we have empirically demonstrated the effectiveness of polar coordinates and Gaussian distribution in layout learning, our motivation is driven by a simple intuition rather than rigorous mathematical proof.
|
| 181 |
+
|
| 182 |
+
# Acknowledgements
|
| 183 |
+
|
| 184 |
+
We sincerely thank all the anonymous reviewers for their valuable comments and suggestions.
|
| 185 |
+
|
| 186 |
+
# References
|
| 187 |
+
|
| 188 |
+
Srikar Appalaraju, Bhavan Jasani, Bhargava Urala Kota, Yusheng Xie, and R Manmatha. 2021. Docformer: End-to-end transformer for document understanding. In Proceedings of the IEEE/CVF international conference on computer vision, pages 993-1003.
|
| 189 |
+
Zewen Chi, Li Dong, Furu Wei, Nan Yang, Saksham Singhal, Wenhui Wang, Xia Song, Xian-Ling Mao, Heyan Huang, and Ming Zhou. 2020. Infoxm: An information-theoretic framework for cross-lingual language model pre-training. arXiv preprint arXiv:2007.07834.
|
| 190 |
+
|
| 191 |
+
Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Édouard Grave, Myle Ott, Luke Zettle-moyer, and Veselin Stoyanov. 2020. Unsupervised cross-lingual representation learning at scale. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8440-8451.
|
| 192 |
+
Xue Han, Yi-Tong Wang, Jun-Lan Feng, Chao Deng, Zhan-Heng Chen, Yu-An Huang, Hui Su, Lun Hu, and Peng-Wei Hu. 2023. A survey of transformer-based multimodal pre-trained modals. Neurocomputing, 515:89-106.
|
| 193 |
+
Teakgyu Hong, Donghyun Kim, Mingi Ji, Wonseok Hwang, Daehyun Nam, and Sungrae Park. 2022. Bros: A pre-trained language model focusing on text and layout for better key information extraction from documents. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 10767-10775.
|
| 194 |
+
Yupan Huang, Tengchao Lv, Lei Cui, Yutong Lu, and Furu Wei. 2022. Layoutlmv3: Pre-training for document ai with unified text and image masking. In Proceedings of the 30th ACM International Conference on Multimedia, pages 4083-4091.
|
| 195 |
+
Guillaume Jaume, Hazim Kemal Ekenel, and Jean-Philippe Thiran. 2019. Funsd: A dataset for form understanding in noisy scanned documents. In 2019 International Conference on Document Analysis and Recognition Workshops (ICDARW), volume 2, pages 1-6. IEEE.
|
| 196 |
+
Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171-4186.
|
| 197 |
+
Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980.
|
| 198 |
+
Chen-Yu Lee, Chun-Liang Li, Timothy Dozat, Vincent Perot, Guolong Su, Nan Hua, Joshua Ainslie, Renshen Wang, Yasuhisa Fujii, and Tomas Pfister. 2022. Formnet: Structural encoding beyond sequential modeling in form document information extraction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3735-3754.
|
| 199 |
+
David Lewis, Gady Agam, Shlomo Argamon, Ophir Frieder, David Grossman, and Jefferson Heard. 2006. Building a test collection for complex document information processing. In Proceedings of the 29th annual international ACM SIGIR conference on Research and development in information retrieval, pages 665-666.
|
| 200 |
+
Chenliang Li, Bin Bi, Ming Yan, Wei Wang, Songfang Huang, Fei Huang, and Luo Si. 2021a. Structurallm: Structural pre-training for form understanding. arXiv preprint arXiv:2105.11210.
|
| 201 |
+
|
| 202 |
+
Peizhao Li, Jieuxiang Gu, Jason Kuen, Vlad I Morariu, Handong Zhao, Rajiv Jain, Varun Manjunatha, and Hongfu Liu. 2021b. Selfdoc: Self-supervised document representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5652-5660.
|
| 203 |
+
Yulin Li, Yuxi Qian, Yuechen Yu, Xiameng Qin, Chengquan Zhang, Yan Liu, Kun Yao, Junyu Han, Jingtuo Liu, and Errui Ding. 2021c. Structext: Structured text understanding with multi-modal transformers. In Proceedings of the 29th ACM International Conference on Multimedia, pages 1912-1920.
|
| 204 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
|
| 205 |
+
Chuwei Luo, Changxu Cheng, Qi Zheng, and Cong Yao. 2023. Geolayoutm: Geometric pre-training for visual information extraction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7092-7101.
|
| 206 |
+
Seunghyun Park, Seung Shin, Bado Lee, Junyeop Lee, Jaeheung Surh, Minjoon Seo, and Hwalsuk Lee. 2019. Cord: a consolidated receipt dataset for post-ocr parsing. In Workshop on Document Intelligence at NeurIPS 2019.
|
| 207 |
+
Qiming Peng, Yinxu Pan, Wenjin Wang, Bin Luo, Zhenyu Zhang, Zhengjie Huang, Yuhui Cao, Weichong Yin, Yongfeng Chen, Yin Zhang, et al. 2022. Ernie layout: Layout knowledge enhanced pretraining for visually-rich document understanding. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 3744-3756.
|
| 208 |
+
Rafał Powalski, Łukasz Borchmann, Dawid Jurkiewicz, Tomasz Dwojak, Michal Pietruszka, and Gabriela Pałka. 2021. Going full-tilt boogie on document understanding with text-image layout transformer. In Document Analysis and Recognition-ICDAR 2021: 16th International Conference, Lausanne, Switzerland, September 5–10, 2021, Proceedings, Part II 16, pages 732–747. Springer.
|
| 209 |
+
Ofir Press, Noah A Smith, and Mike Lewis. 2021. Train short, test long: Attention with linear biases enables input length extrapolation. arXiv preprint arXiv:2108.12409.
|
| 210 |
+
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.
|
| 211 |
+
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.
|
| 212 |
+
|
| 213 |
+
Jiapeng Wang, Lianwen Jin, and Kai Ding. 2022a. Lilt: A simple yet effective language-independent layout transformer for structured document understanding. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7747-7757.
|
| 214 |
+
Wenjin Wang, Zhengjie Huang, Bin Luo, Qianglong Chen, Qiming Peng, Yinxu Pan, Weichong Yin, Shikun Feng, Yu Sun, Dianhai Yu, et al. 2022b. mmlayout: Multi-grained multimodal transformer for document understanding. In Proceedings of the 30th ACM International Conference on Multimedia, pages 4877-4886.
|
| 215 |
+
Yang Xu, Yiheng Xu, Tengchao Lv, Lei Cui, Furu Wei, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, Wanxiang Che, et al. 2021a. Layoutmv2: Multi-modal pre-training for visually-rich document understanding. 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 2579-2591.
|
| 216 |
+
Yiheng Xu, Minghao Li, Lei Cui, Shaohan Huang, Furu Wei, and Ming Zhou. 2020. Layoutm: Pre-training of text and layout for document image understanding. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1192-1200.
|
| 217 |
+
Yiheng Xu, Tengchao Lv, Lei Cui, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, and Furu Wei. 2021b. Layoutxlm: Multimodal pre-training for multilingual visually-rich document understanding. arXiv preprint arXiv:2104.08836.
|
| 218 |
+
|
| 219 |
+
# A Appendix
|
| 220 |
+
|
| 221 |
+
Figure 3 in this section shows the attention distribution of four additional examples on FUNSD. From all the examples, it can be observed that the RoBERTa model typically treats each word in isolation, while RoBERTa+LAGaBi can learn the more accurate correlations between different words based on their layout relationships.
|
| 222 |
+
|
| 223 |
+
We also visualize the word-level attention maps of LayoutLMv3 and LayoutLMv3+LAGaBi. LayoutLMv3 is currently the top-performing method for structured document understanding, which utilizes the 2-D relative positions through linear attention biases. From the attention maps shown in Figure 4, we can observe that LayoutLMv3+LAGaBi refers more to layout information when modeling the inter-word semantic correlations, while LayoutLMv3 is relatively independent. For example, in the third sample of Figure 4, LAGaBi learns more dense associations among "Tiers", "II.", and "&" in the neighborhood than LayoutLMv3, which is in line with human intuition.
|
| 224 |
+
|
| 225 |
+

|
| 226 |
+
|
| 227 |
+

|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
|
| 235 |
+

|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
Figure 3: Visualization of more examples based on RoBERTa.
|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
|
| 250 |
+

|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
Attention Map of LayoutLMv3
|
| 254 |
+
|
| 255 |
+

|
| 256 |
+
Attention Map of LayoutLMv3+LAGaBi
|
| 257 |
+
|
| 258 |
+

|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
Attention Map of LayoutLMv3
|
| 262 |
+
|
| 263 |
+

|
| 264 |
+
Attention Map of LayoutLMv3+LAGaBi
|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
Attention Map of LayoutLMv3
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
Attention Map of LayoutLMv3+LAGaBi
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 4: Visualization of examples base on LayoutLMv3.
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
Attention Map of LayoutLMv3
|
| 279 |
+
|
| 280 |
+

|
| 281 |
+
Attention Map of LayoutLMv3+LAGaBi
|
2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f7737626f6aaca3cdd061250ee5553a93ee8617b882f9624ae9cc1a1245b5aa
|
| 3 |
+
size 1024904
|
2023/Beyond Layout Embedding_ Layout Attention with Gaussian Biases for Structured Document Understanding/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/c8dbec2f-8ae8-4d52-9d1b-2529ec7e7ec7_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/c8dbec2f-8ae8-4d52-9d1b-2529ec7e7ec7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/c8dbec2f-8ae8-4d52-9d1b-2529ec7e7ec7_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cac73951c8f30a16efd05e3e9091c3ec6407d57a30c62a9c72a296f65f8394fb
|
| 3 |
+
size 956106
|
2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/full.md
ADDED
|
@@ -0,0 +1,500 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beyond Testers' Biases: Guiding Model Testing with Knowledge Bases using LLMs
|
| 2 |
+
|
| 3 |
+
Chenyang Yang $^{1}$ Rishabh Rustogi $^{1}$ Rachel Brower-Sinning $^{2}$ Grace A. Lewis $^{2}$ Christian Kästner $^{1}$ Tongshuang Wu $^{1}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Carnegie Mellon University $^{2}$ Carnegie Mellon Software Engineering Institute
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Current model testing work has mostly focused on creating test cases. Identifying what to test is a step that is largely ignored and poorly supported. We propose WEAKER, an interactive tool that supports requirements elicitation for guiding model testing.1 WEAKER uses large language models to generate knowledge bases and recommends concepts from them interactively, allowing testers to elicit requirements for further testing. WEAKER provides rich external knowledge to testers, and encourages testers to systematically explore diverse concepts beyond their own biases. In a user study, we show that both NLP experts and non-experts identified more, as well as more diverse concepts worth testing when using WEAKER. Collectively, they found more than 200 failing test cases for stance detection with zero-shot ChatGPT. Our case studies further show that WEAKER can help practitioners test models in real-world settings, where developers define more nuanced application scenarios (e.g., code understanding and transcript summarization) using LLMs.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Despite being increasingly deployed in real-world products, ML models still suffer from falsehoods (Maynez et al., 2020), biases (Shah et al., 2020), and shortcuts (Geirhos et al., 2020), leading to usability, fairness, and safety issues in those products (Liang et al., 2023; Nahar et al., 2023). For example, toxicity detection models are used by social media platforms to flag or remove harmful content, but their biases amplify harm against minority groups (Sap et al., 2019). As standard benchmarks are often too coarse to expose these issues, recent work has proposed to test nuanced behaviors of ML models (Ribeiro et al., 2020; Goel et al., 2021; Ribeiro and Lundberg, 2022).
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: The V-model (Sommerville, 2015), a widely used development process in many fields of engineering, adapted for testing models within a system. This layering and planning is also compatible with more agile development approaches, where the different activities may be iterated in different ways but are still linked.
|
| 17 |
+
|
| 18 |
+
Such model testing of nuanced behaviors usually requires translating behavior expectations into test cases (input-output pairs). To enable such test case creation, prior work has taken inspiration from the long-established software testing approaches: For example, in their CheckList framework, Ribeiro et al. (2020) used templates to form minimal functionality test cases, which was inspired by unit tests. Morris et al. (2020)'s work on editing inputs (e.g., synonym swap) for testing model invariances is akin to metamorphic testing. To enable testing generative models, Ribeiro (2023) have also explored specifying properties that any correct output should follow, similar to property-based testing.
|
| 19 |
+
|
| 20 |
+
However, prior work has focused on how to write test cases, not what tests to write. In software engineering, tests are fundamentally grounded in requirements and design work, as commonly expressed in the V-model (Sommerville, 2015, Figure 1). Ideally, each test can be traced back to a requirement and all requirements are tested. Software engineering research has long established the importance of requirements for development and testing, and studied many approaches for requirements elicitation (Van Lamsweerde, 2009).
|
| 21 |
+
|
| 22 |
+
In comparison, little work has explicitly supported identifying what to test in model testing. Researchers and practitioners seem to rely mostly
|
| 23 |
+
|
| 24 |
+
on intuition and generic domain knowledge (McCoy et al., 2019; Dhole et al., 2021), or debug a small set of issues initially identified through error analysis (Naik et al., 2018; Wu et al., 2019b). Such approaches are often shaped heavily by individual knowledge and biases (Rastogi et al., 2023; Lam et al., 2023), driving practitioners to focus on local areas of a few related concepts where they find problems, while neglecting the larger space (Ribeiro and Lundberg, 2022), as exemplified in Figure 2. For example, to test toxicity detection models, practitioners may identify and test (1) racism with handcrafted test cases and (2) robustness to paraphrasing with CheckList. However, they are likely to miss many concepts in the space (e.g., spreading misinformation as a way to spread toxicity) if they have never seen or worked on similar aspects, as often observed in the fairness literature (Holstein et al., 2019).
|
| 25 |
+
|
| 26 |
+
In this work, we contribute the concept and method of requirements engineering ("what to test") for improving model testing. We connect testing to requirements with WEAKER, an interactive tool that supports requirements elicitation for guiding model testing. Our goal is to provide comprehensive external knowledge, encouraging testers to systematically explore diverse concepts beyond their biases (Figure 2), while balancing the completeness of requirements collection and the effort of practitioners exploring these requirements. WEAKER systematically generates knowledge bases (KB) by querying large language models (LLMs) with well-defined relations from ConceptNet, allowing testers to elicit requirements for any use cases (as opposed to being limited by prebuilt KBs). For example, in Figure 3, from a seed concept "online toxicity", the LLM generates a KB showing "spreading misinformation" with relation "done via." To not overwhelm users and encourage iterative exploration, WEAKER shows only a subset of the concepts from the KBs, balancing relevance and diversity, while allowing users to still explore more concepts on demand.
|
| 27 |
+
|
| 28 |
+
We demonstrate the usefulness and generality of WEAKER through a user study and case studies. In the user study (§4), users identified more, as well as more diverse concepts worth testing when using WEAKER. Collectively, they found more than 200 failing test cases for stance detection with zero-shot ChatGPT (gpt-turbo-3.5). Our case studies (§5) further show that WEAKER can help practitioners
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
Figure 2: Local exploitation (left) vs. global exploration (right). Most model testing is opportunistic in terms of what to test, often "hill-climbing" by searching near existing problems, with the risk of getting stuck in local areas. In contrast, WEAVER supports exploring concepts globally across the entire space.
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
|
| 35 |
+
test models in real-world settings, from transcript summarization to code understanding.
|
| 36 |
+
|
| 37 |
+
# 2 WEAVER
|
| 38 |
+
|
| 39 |
+
Our key idea is to provide a knowledge base to support systematic exploration of domain concepts to guide model testing. This allows testers to consider requirements broadly, mitigating their biases as testers otherwise tend to opportunistically explore concepts in local areas (Figure 2). Our tool, WEAYER, has three primary building blocks: (1) An LLM-generated knowledge base for a given testing task, for encouraging more systematic and diverse requirement elicitation beyond individual biases; (2) a graph-inspired recommendation paradigm that prioritizes diverse yet relevant concepts for user inspection; and (3) an intuitive interface that can be easily paired with any test case creation methods, for supporting users to interactively navigate the knowledge base(s) for their own purposes. Below, we walk through the design choices and corresponding rationales.
|
| 40 |
+
|
| 41 |
+
# 2.1 LLM-generated Knowledge Base
|
| 42 |
+
|
| 43 |
+
To support testers to explore different concepts relevant to the problem, WEAVER needs to provide comprehensive knowledge beyond individual testers' biases. As such, we choose to power WEAVER using knowledge bases (KBs) generated by LLMs. As LLMs store diverse world knowledge that can be easily extracted through prompting (Cohen et al., 2023), they empower WEAVER to support a wide range of domains, tasks, and topics.
|
| 44 |
+
|
| 45 |
+
We start knowledge base construction with a seed concept, i.e., a user-provided high-level term that can represent their tasks well. These seeds can be as simple as the task name and description, or can be more customized depending on user needs. Using the seed, we will then automatically query an
|
| 46 |
+
|
| 47 |
+
$\mathsf{LLM}^2$ to build a partial knowledge base of related concepts (Wang et al., 2020; Cohen et al., 2023). Specifically, we iteratively prompt LLMs for entities or concepts that have different relations to the queried concept, using fluent zero-shot prompts paraphrased from well-established relations used in knowledge bases. For example, prompting LLMs with "List some types of online toxicity." can help us extract specific TypeOf online toxicity. By default, we use 25 relations from ConceptNet $^3$ (Speer et al., 2017), e.g., MotivatedBy and LocatedAt, and manually curated corresponding zero-shot templates. These relations prove to be reusable across many different domains in our studies, but users can also specify custom relations they want to explore (a complete list of prompts in Appendix A).
|
| 48 |
+
|
| 49 |
+
As the KB is used to support exploration (explained more below), we initially pre-generate two layers of the KB, and iteratively expand the knowledge base based on user interactions.
|
| 50 |
+
|
| 51 |
+
# 2.2 Recommend Diverse & Relevant Concepts
|
| 52 |
+
|
| 53 |
+
A comprehensive KB comes at a higher cost of exploration—a single tester can easily get overwhelmed if presented with the entire KB. To assist users to navigate through the KB more efficiently, we employ the “overview first, details-on-demand” taxonomy (Shneiderman, 1996): We provide initial recommendations as starting points to user explorations. In particular, we strive to make recommendations that are diverse (so as to bring diverse perspectives to users) but still relevant (so users do not feel disconnected from their goals).
|
| 54 |
+
|
| 55 |
+
The trade-off between relevant and diverse resonates with the common exploration-exploitation trade-off in information retrieval (Athukorala et al., 2016), and can be naturally translated to a graph problem: If we have all candidate concepts to form a fully-connected graph, where edge weights are distances between different concepts and node weights are the concepts' relevance to the queried concept, then our goal becomes to recommend a diverse subset where concepts have large distances
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 3: WEAVER interface, where users can interactively explore concepts in the LLM-generated KB to elicit requirements for model testing. $①$ : seed concept, $②$ : recommended children concepts with relations (translated to a user-friendly form), $③$ : options for users to expand a concept or $④$ : get more recommendations on any concepts, $⑤$ : editing, creating, or removing concepts manually, $⑥$ : selecting important concepts for testing.
|
| 59 |
+
|
| 60 |
+
between each other, while they are still relevant in the sense that they occur frequently in the context of the queried concept. Essentially, we aim to find a subgraph $G'$ of size $k$ that maximizes a weighted $(\alpha > 0)$ sum of edge weights $w_{E}$ (diversity) and node weights $w_{V}$ (relevance):
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\arg \max _ {G ^ {\prime} \subset G, | G ^ {\prime} | = k} w _ {E} (G ^ {\prime}) + \alpha \cdot w _ {V} (G ^ {\prime})
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
To build the graph, we measure concept differences with cosine distance between concept embeddings using SentenceBERT (Reimers and Gurevych, 2019), and measure relevance with the perplexity of sentence " $\{\text{concept}\}$ often occurs in the context of $\{\text{queried\_concept}\}$ ", using GPT-2 (Radford et al., 2019). Since finding the optimal subgraph is computationally expensive, we apply the classic greedy peeling algorithm (Wormald, 1995) to approximate it in linear time. That is, we greedily remove nodes with the smallest weights (sum of node and all edge weights) one at a time until the graph size reaches $k$ ( $= 10$ for initial recommendation, but grows with user expansion). We empirically show that the recommended concepts are of high quality and diverse in our evaluation.
|
| 67 |
+
|
| 68 |
+
# 2.3 Interactive Interface for Exploration
|
| 69 |
+
|
| 70 |
+
Besides the recommended starting points, we allow users to iteratively and interactively locate their concepts of interest. WEaver visualizes the knowledge base in a tree structure (Figure 3), a representation that is familiar to most ML practitioners.
|
| 71 |
+
|
| 72 |
+
The knowledge base starts with $①$ the seed concept users specify, with each recommended concept represented as $②$ a node in the tree, accompanied by its relation to the parent concept. The interface allows users to identify concepts by $③$ diving deeper and $④$ exploring broadly before $⑥$ selecting a concept to test. Alternatively, users can also distill personal knowledge by $⑤$ creating concepts manually.
|
| 73 |
+
|
| 74 |
+
To assist users in creating concrete test cases, WEAVER incorporates AdaTest (Ribeiro and Lundberg, 2022) as the default test case creation method, which uses LLMs to suggest test cases. However, the design of WEAVER is compatible with any other techniques to test models once requirements are identified (e.g., Zeno, Cabrera et al., 2023). The full interface including the AdaTest integration can be seen in Appendix B.
|
| 75 |
+
|
| 76 |
+
# 3 Intrinsic Evaluation
|
| 77 |
+
|
| 78 |
+
As the primary goal of WEAKER is to provide external knowledge to guide testing, it is important that the knowledge provided is comprehensive in the first place. Here, we quantitatively evaluate:
|
| 79 |
+
|
| 80 |
+
Q.1 How comprehensive are the knowledge bases generated by WEAYER?
|
| 81 |
+
|
| 82 |
+
Tasks, data, and metrics. We select four tasks for the evaluation: Hateful meme detection, Pedestrian detection, Stance detection for feminism, and Stance detection for climate change (task descriptions in Appendix C). These tasks cover diverse domains and modalities, and importantly, provide us with gold concepts that can be used to evaluate our LLM-generated KB. The first two tasks have been studied in prior work, and we directly use their ground-truth concepts collected from existing documents (Barzamini et al., 2022b) and user studies (Lam et al., 2023). For the last two tasks, we aggregate all concepts identified by 20 participants without using WEAKER as part of our user study (discussed later in §4), which we consider as our ground truth. Intuitively, such aggregation should help represent what concepts are generally deemed important. As shown in Table 1, the tasks have on average 144 ground-truth concepts. $^{4}$
|
| 83 |
+
|
| 84 |
+
Independently, we generated a knowledge base for each task using WEAKER with default relations. We derived the seed concepts directly from the task names: (1) "hateful meme", (2) "pedestrian", (3) "feminism", and (4) "climate change."
|
| 85 |
+
|
| 86 |
+
We evaluate the comprehensiveness of the generated knowledge using recall, i.e., the fraction of existing concepts that also appear in the KB. Since there are many phrasing variations of the same concept, we decide that a concept is in the KB if it appears exactly the same in the KB, or our manual check decides that it matches one of the 10 most similar concepts from the KB, as measured by the cosine distance (cf. §2.1). We established that the manual process is reliable by evaluating inter-rater reliability where two authors independently labeled a random sample of 50 concepts, finding substantial agreement ( $\kappa = 69.4\%$ ).
|
| 87 |
+
|
| 88 |
+
We also evaluate the validity of the generated knowledge using precision, i.e., the fraction of KB edges that are valid. Note that because our ground truths are incomplete by nature (collected from dataset analysis and user study), KB edges that are not in the ground truths can still be valid. Following prior work (Cohen et al., 2023), we performed manual validation on sampled KB edges. We sampled 50 edges from each of the four generated KBs.
|
| 89 |
+
|
| 90 |
+
Results Overall, our KBs cover $91\%$ of ground-truth concepts on average (Table 1), with $81\%$ of sampled generated edges being valid. Qualitatively, we found that there are two distinct types of concepts the KB failed to cover: First, there are some very specific concepts (e.g., old photo in hateful meme detection). Although the 2-layer KB does not cover them, it does often cover their hypernyms (e.g., photo). Therefore, these concepts can be discovered if users choose to explore deeper. Second, some concepts are interactions of two concepts (e.g., fossil fuel uses in developing countries in climate change stance detection). These can be identified by users manually, as both of their components (fossil fuel uses and developing countries) usually already exist in the KB.
|
| 91 |
+
|
| 92 |
+
# 4 User Study
|
| 93 |
+
|
| 94 |
+
Does WEAVER support effective requirements elicitation? We conduct a user study to evaluate:
|
| 95 |
+
|
| 96 |
+
Q.2 To what degree does WEaver help users explore concepts faster?
|
| 97 |
+
Q.3 To what degree does WEaver help users explore concepts broadly?
|
| 98 |
+
Q.4 How much does WEAVER mitigate user biases when exploring concepts?
|
| 99 |
+
|
| 100 |
+
We expect that our interaction design (§2.3) supports faster exploration (Q.2) and that the recommendations (§2.2) support broader and less biased
|
| 101 |
+
|
| 102 |
+
<table><tr><td>Task</td><td>Recall</td><td>Precision</td><td># Concept</td></tr><tr><td>Hateful meme detection</td><td>93.1%</td><td>88.0%</td><td>101</td></tr><tr><td>Pedestrian detection</td><td>91.8%</td><td>74.0%</td><td>146</td></tr><tr><td>Stance detection for feminism</td><td>86.9%</td><td>84.0%</td><td>145</td></tr><tr><td>Stance det. for climate change</td><td>91.4%</td><td>76.0%</td><td>185</td></tr><tr><td>Average</td><td>90.6%</td><td>80.5%</td><td>144</td></tr></table>
|
| 103 |
+
|
| 104 |
+
Table 1: Knowledge bases generated by WEAVER cover ${90.6}\%$ of existing concepts on average.
|
| 105 |
+
|
| 106 |
+
exploration (Q.3 and Q.4).
|
| 107 |
+
|
| 108 |
+
# 4.1 Study Design
|
| 109 |
+
|
| 110 |
+
Conditions. We design an IRB-approved user study as a within-subject controlled experiment, where participants test models in two conditions: A treatment condition, where users use WEAVER to find concepts for testing, and a control condition, where users add the concepts manually while they explore test cases. In both conditions, users have access to AdaTest's LLM-based test case suggestions (cf. §2.3). In essence, the control interface is a re-implementation of AdaTest with WEAVER's interface and interaction experience.
|
| 111 |
+
|
| 112 |
+
Tasks and models. We select two tasks of similar difficulty for our user study: Stance detection for feminism, and stance detection for climate change. They are accessible to participants from different backgrounds. We had participants test the performance of zero-shot ChatGPT (OpenAI, 2022) for both tasks, as we observed that it easily outperformed any available fine-tuned models on Huggingface—the latter failed at simple test cases (full prompts in Appendix A).
|
| 113 |
+
|
| 114 |
+
Procedure. We recruited 20 participants (graduate students with varying ML/NLP experience, details in Appendix D.1) for a 90-minute experiment session. We started by walking through the study instructions and asked them to try WEAYER in an interactive tutorial session. Then participants tested the two aforementioned stance detection models for 30 minutes each, one in the treatment condition and one in control condition. To mitigate learning effects, we use a Latin square design (Box, 2009) with four groups, counterbalancing (1) which condition a participant encounters first, and (2) which model is tested first. Within each session, they were first asked to perform model testing for 25 minutes, and then identify (select or create) concepts worth future testing for 5 minutes. The first phase
|
| 115 |
+
|
| 116 |
+
of model testing is designed to ground participants in what concepts are worth testing. The second phase of concept exploration is designed to approximate a longer time of model testing. This final design was derived from an earlier pilot study, where we observed that writing test cases for each concept took more time than identifying interesting concepts (WEAVER's objective). In the end, participants filled out a post-study survey (details in Appendix D.2). Participants were compensated for their time.
|
| 117 |
+
|
| 118 |
+
Metrics and analysis. We use two measurements to approximate participants' exploration procedure: (1) the number of concepts they explore (representing exploration speed, Q.2), and (2) the number of distinct concepts they explore (Q.3).
|
| 119 |
+
|
| 120 |
+
Specifically, for distinctiveness, we want to distinguish the local vs. global exploration patterns (cf. Figure 2), which requires us to locate clusters of similar concepts, or concepts that only differ in granularity. Quantitative, this is reflected through inter-relevance between concepts, e.g., rising sea level should be considered close to sea surface temperature increase but distinct from waste management. To find a set of distinct concept clusters, we again measure the concept distance using SentenceBERT, and run Hierarchical Clustering (Ward Jr, 1963) on all available concepts collectively selected or created by our 20 user study participants, which, as argued in §3, forms a representative set of what end users may care about for a given task. Note that we do not use all concepts from our KB for clustering as it would influence the ground truth. Hierarchical clustering allows us to choose concept clusters that have similar granularities using a single distance threshold. Empirically, we use the threshold of 0.7, which produces reasonably distinct clusters for both tasks (41 and 46 clusters for feminism and climate change respectively with an average size of 6.1 concepts).
|
| 121 |
+
|
| 122 |
+

|
| 123 |
+
Figure 4: Participants with WEAKER identified more concepts and hit more clusters.
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 5: Participants without WEAKER converged to hitting previously identified concept clusters as they identified more concepts. The gap between the two groups widened over the process.
|
| 127 |
+
|
| 128 |
+
As such, distinctiveness is represented by the number of hit cluster in each user's exploration.
|
| 129 |
+
|
| 130 |
+
We analyze both measurements with a repeated measures ANOVA analysis, which highlights the significance of our test condition (whether participants use WEAKER) while considering the potential impact from other independent variables. In our analysis, we test to what degree our tool, the task, and the order (tool first or tool last) explain variance in the outcome variables. Detailed analysis results can be found in Appendix D.3.
|
| 131 |
+
|
| 132 |
+
# 4.2 Results
|
| 133 |
+
|
| 134 |
+
WEAVER helps users identify more concepts (Q.2). We first observe that with WEAVER, participants identified $57.6\%$ $(p < 0.01)$ more concepts (Figure 4). This is likely because users can more easily explore a wider range of concepts with the external knowledge base, as confirmed by participant P6: "... (KB) gives ideas beyond what I had in mind so I explored a wider base of concepts."
|
| 135 |
+
|
| 136 |
+
We also observe that bug-finding is relatively independent of concept exploration. On average, participants found around 11 failing test cases (0.44 per minute), regardless of whether they used WEAKER or not. Since testing is orthogonal, participants who explore more concepts will find more failing test cases. We expect that if participants test longer, those with WEAKER will find more bugs while others will run out of concepts to test.
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
Figure 6: We project the SentenceBERT embeddings of concepts explored by two participants (P15 and P16) into a 2D space, using t-SNE (van der Maaten and Hinton, 2008). Without WEAVER, participants explore less space, as they performed more local exploitation than global exploration.
|
| 140 |
+
|
| 141 |
+
WEAVER helps users cover more concept clusters (Q.3). More interestingly, we observe that with WEAVER, participants not only found more concepts but also covered $47.7\%$ $(p < 0.01)$ more clusters in the space, i.e., they also explored more diverse concepts (Figure 4). This aligns with the survey responses, where $80\%$ of participants agree that WEAVER helps them test the model more holistically and $76\%$ of participants agree that WEAVER helps them find more diverse model bugs. We conjecture that this is because users with WEAVER explore more concepts not only in quantity (Q.2) but also in diversity, which is confirmed by many participants, e.g., "... (KB) encouraged me to explore more areas of the domain than I would have otherwise considered" (P10).
|
| 142 |
+
|
| 143 |
+
Looking at their exploration trajectory (Figure 5), we see evidence indicating that WEAKER enables users to continuously discover distinct concepts. In contrast, participants in the control condition converged to hitting previously identified concept clusters as they identified more concepts. We observed that without WEAKER, participants tended to refine existing concepts later in the exploration, as exploring new distinct areas becomes increasingly difficult.
|
| 144 |
+
|
| 145 |
+
These contrasting trajectories eventually lead to different exploration results. As reflected in Figure 6, the participant without WEAVER performed noticeably more local exploitation, finding highly related concepts in local areas, whereas WEAVER helped the other participant explore more diverse
|
| 146 |
+
|
| 147 |
+
Figure 7: Visualizing the identified concepts for feminism by their corresponding clusters, we see participants in different conditions had different focuses in model testing. This shows that WEAKER suggests concepts complementary to human intuitions. In each test, the red strike-through labels are the wrong model predictions and the green ones are user-specified ground-truths.
|
| 148 |
+

|
| 149 |
+
[Violence]: Verbal abuse of women is not as bad as physical violence. None against
|
| 150 |
+
[Sexual Harassment]: Sexual harassment in the workplace against women should not be tolerated. Sexual harassment against men is not a big deal. #MeToo favor against
|
| 151 |
+
[STEM]: Women are underrepresented in STEM due to a lack of access to education and resources. none favor
|
| 152 |
+
[Admission]: It's not important to ensure that admissions processes are free of gender bias and discrimination.
|
| 153 |
+
|
| 154 |
+
concepts globally, without losing the ability to dive deeper into a few local areas.
|
| 155 |
+
|
| 156 |
+
WEAVER shifts users towards a different concept distribution (Q.4). We also observe that participants collectively explored different concepts with WEAVER, as shown in Figure 7. Some concepts (e.g., violence) are much more explored by participants with WEAVER. This suggests that WEAVER helps mitigate participants' own biases and explore new concepts, as supported by participant P13: "... (KB) gives some inspiration in concepts I would not have otherwise thought of..."
|
| 157 |
+
|
| 158 |
+
That said, WEaver also brings in its own biases, e.g. participants with WEaver rarely explored concepts like STEM compared to those without, possibly because they were too heavily anchored by the suggested concepts. This indicates that humans and knowledge bases are complementary – future work can support humans to better exploit their prior knowledge while exploring diverse concepts.
|
| 159 |
+
|
| 160 |
+
# 5 Case Studies
|
| 161 |
+
|
| 162 |
+
Using two case studies, we demonstrate that WEAVER can help practitioners test their own models and find various bugs in real-world settings, and has the potential to provide support beyond post-hoc model testing. In the studies, we provided sufficient supports to the practitioners, including
|
| 163 |
+
|
| 164 |
+
integrating WEAKER into their natural evaluation environment (Jupyter Notebook), joining each user to explore their models for approximately three hours, and offering feedback and discussions whenever necessary (e.g., as practitioners brainstormed their seed concepts).
|
| 165 |
+
|
| 166 |
+
Case selection. We approached researchers in our contact network to identify projects that were actively developing and improving models to be integrated into software products, such that (1) model testing has real stakes for them, and (2) the model needs to meet real-world requirements of a product, not just succeed on a standard benchmark.
|
| 167 |
+
|
| 168 |
+
We ended up recruiting practitioners working on two projects that matched our scope to try WEaver. The first practitioner (C1) is building a pipeline for knowledge transfer, where they prompt an LLM to summarize content from transcripts into instructions. The second practitioner (C2) is building an IDE plugin to help developers understand unfamiliar code, developing LLM prompts to generate text summary for code segments. While these are two distinct scenarios, their shared challenge is that for practitioners working on novel tasks, it is often non-trivial to perform prompt engineering, especially because they do not have appropriate datasets for evaluating their prompts.
|
| 169 |
+
|
| 170 |
+
The case studies were IRB-approved and participants were compensated for their time.
|
| 171 |
+
|
| 172 |
+
Weaver supports quick and effective iterations. Both C1 and C2 started with a seed concept and then refined the seed concept at least once based on their observations. For example, C2 first tried seed concepts "challenges for summarizing a code script" and "reasons why people look for code summary", finding the recommended concepts generic and not their major concerns. They self-reflected through the process and identified the key scenario their plugin wants to support: (1) it targets novice programmers and (2) the most important application domain is data visualization. After this, they tried the seed concept "specific challenges that novice programmers might have in comprehending data visualization code" and found recommended concepts much more helpful.
|
| 173 |
+
|
| 174 |
+
WEAVER helps practitioners find new model bugs by augmenting their existing analyses. While we did not have participants rate each concept they explored, based on their think-aloud reflection, we note that they were able to find
|
| 175 |
+
|
| 176 |
+
many helpful concepts in a short amount of time. Even though practitioners have been working on their (LLM-backed) models for a while, they both obtained new insights into their models. First, WEAVER helped them observe issues they did not consider before. For example, in the seven concepts C1 tested, they found that the resulting instructions are always chronological even when there are detours in the input and steps reordering is desired. Second, WEAVER also helped them turn their prior, often fuzzy knowledge of problems or requirements into concrete testable concepts. For example, C1 turned their vague notion "useful summaries should not take transcripts literal" into concrete theories, including "behind the transcript, there is a hidden thought process important for identifying key action steps." Third, they were able to confirm model deficiencies they already suspected through systematic tests (e.g., "transcript summaries are often too verbose"). Similarly, C2 tested seven concepts and found "different parameters for customization" and "when to use different data visualization APIs" particularly novel and insightful.
|
| 177 |
+
|
| 178 |
+
Notably, while C1 used AdaTest for testing models on different concepts, C2 reused test cases from their existing datasets, showing WEAKER's flexibility with different test case creation techniques. That C2 still discovered new insights within their own dataset demonstrates WEAKER's capability for encouraging nuanced testing following requirements.
|
| 179 |
+
|
| 180 |
+
WEAVER is useful beyond testing models after the-fact. While we mostly position WEAVER as a model testing tool, we find that its support for requirements elicitation supports the entire model development cycle (cf. the V-model, Fig. 1).
|
| 181 |
+
|
| 182 |
+
Although practitioners sometimes found it initially challenging to define seed concepts, they found the process itself valuable. For example, C2 eventually settled on "specific challenges that novice programmers might have in comprehending [domain] code"; they self-reflected how finding a good seed nudged them to state their goal explicitly for the first time. For them, this reflection happened too late to radically redesign their product, but it shows that WEAKER has the potential to support early-stage requirements engineering both for products and models. Meanwhile, C1 was inspired by concepts identified with WEAKER on model improvement. They experimented with different changes to prompts, encoding context for concepts they found challenging (e.g., step ordering).
|
| 183 |
+
|
| 184 |
+
# 6 Related Work
|
| 185 |
+
|
| 186 |
+
Requirements elicitation. Requirements engineering has been extensively studied (Van Lamsweerde, 2009). Despite many calls for the importance of requirements in ML (e.g., Rahimi et al., 2019; Vogelsang and Borg, 2019), requirements in ML projects are often poorly understood and documented (Nahar et al., 2022), which means that testers can rarely rely on existing requirements to guide their testing. Requirements elicitation is usually a manual and laborious process (e.g., interviews, focus groups, document analysis, prototyping), but the community has long been interested in automating parts of the process (Meth et al., 2013), e.g., by automatically extracting domain concepts from unstructured text (Shen and Breaux, 2022; Barzamini et al., 2022a). We rely on the insight that LLMs contain knowledge for many domains that can be extracted as KBs (Wang et al., 2020; Cohen et al., 2023), and apply this idea to requirements elicitation.
|
| 187 |
+
|
| 188 |
+
Model evaluation, testing, and auditing. Recent work on ML model evaluation (e.g., Ribeiro et al., 2020; Goel et al., 2021; Röttger et al., 2021; Yang et al., 2022) has pivoted from i.i.d. traditional accuracy evaluation to nuanced evaluation of model behaviors. As surveyed in our prior work (Yang et al., 2023), this line of research uses various test creation techniques, including slicing, perturbations, and template-based generation. While providing many useful tools, these approaches often assume an existing list of requirements and rarely engage with the question of what to test. Existing research relied mostly on the knowledge of particular researchers, resulting in incomplete and biased requirements. For example, Ribeiro et al. (2020) explicitly state that their list of requirements in CheckList is not exhaustive and should be augmented by users with additional ones that are task-specific. Through LLM-assisted requirements elicitation, WEAVER helps users identify what to test systematically.
|
| 189 |
+
|
| 190 |
+
Various alternative methods have been proposed for identifying what to test. For example, error analysis (e.g., Naik et al., 2018; Wu et al., 2019a) and slice discovery (Eyuboglu et al., 2022) can help identify issues in existing datasets, but datasets are often incomplete and biased (Rogers, 2021), and can even be missing for emerging LLM applications where no dataset has been
|
| 191 |
+
|
| 192 |
+
pre-collected. Dataset-agnostic approaches like adaptive testing (Ribeiro and Lundberg, 2022; Gao et al., 2022) help users iteratively ideate concepts abstracted from generated test cases, but, as we confirmed, users tend to explore only local areas. These approaches engage in bottom-up style elicitation, which is reactive and may fare poorly with distribution shift. In contrast, WEAVER engages in top-down style elicitation, a more proactive process grounded in an understanding of the problem and domain.
|
| 193 |
+
|
| 194 |
+
Furthermore, algorithmic auditing (Metaxa et al., 2021) elicits concerns from people with different backgrounds, usually on fairness issues, to avoid being limited by the ideas of a single tester. However, it can be challenging to recruit, incentivize, and scaffold the auditors (Deng et al., 2023). In a way, WEAKER might complement such work by providing diverse requirements for individual testers or crowd auditors.
|
| 195 |
+
|
| 196 |
+
# 7 Discussion and Conclusion
|
| 197 |
+
|
| 198 |
+
In this work, we propose WEAKER, a tool that uses knowledge bases to guide model testing, helping testers consider requirements broadly. Thorough user studies and case studies, we show that WEAKER supports users to identify more, as well as more diverse concepts worth testing, can successfully mitigating users' biases, and can support real-world applications. Beyond being a useful testing tool, the underlying concept of WEAKER have interesting implications on ML model testing and development, which we detail below.
|
| 199 |
+
|
| 200 |
+
Model testing in the era of LLMs. Throughout our user studies and case studies, we focused on testing "models" achieved by prompting LLMs. Here, we would like to highlight the importance of requirements in such cases. LLMs are increasingly deployed in different applications, and traditional model evaluations are becoming less indicative. With these models trained on massive web text, it is unclear what should be considered as "in-distribution evaluation data." Instead, the evaluation objectives heavily depend on what practitioners need, which should be reflected through well-documented requirements.
|
| 201 |
+
|
| 202 |
+
Meanwhile, as most practitioners are not NLP experts, they face challenges articulating how and what they should test about their prompted models (Zamfirescu-Pereira et al., 2023). As their use cases become more nuanced, it is also less likely for
|
| 203 |
+
|
| 204 |
+
them to find pre-existing collections on important concepts. As such, enabling each individual to identify what-to-test is essential. We hope WEAKER can be used for democratizing rigorous testing, just as LLMs democratized access to powerful models. Still, currently WEAKER relies purely on practitioners to identify requirements worth testing, which may result in mis-matched requirement granularity (cf. §3). Future work can explore more complex structures that can represent knowledge (e.g., from KBs to knowledge graphs), and advanced recommendation mechanisms for practitioners to find the best requirements to explore first.
|
| 205 |
+
|
| 206 |
+
Though we position WEAKER to ground model testing in requirements, we expect it to be useful also in other development stages (cf. §5). For example, we expect that it can help developers think about high-level goals and success measures for their products (Rahimi et al., 2019; Passi and Barocas, 2019), to guide development early on. For example, building on the observation that requirement-based testing may help practitioners perform prompt engineering, we envision that future practitioners can use WEAKER for rapid prototyping, where they identify unique requirements, pair them with corresponding test cases, and achieve better overall performance either through ensembled prompts (Pitis et al., 2023) or prompt pipelines (Wu et al., 2022). Moreover, elicited model requirements themselves can serve as descriptions and documentation, which can foster collaboration and coordination in interdisciplinary teamwork (Nahar et al., 2022; Subramonyam et al., 2022). Notably, we believe WEAKER can support such iterations because it is built to be lightweight. In prior research, requirements engineering has sometimes been criticized to be too slow and bureaucratic, making developers less willing to dedicate time to this step. In contrast, WEAKER allows developers to easily adjust their exploration directions (through seeds and interactions), which makes it feasible to be integrated into more agile and iterative development of ML products where requirements are evolving quickly.
|
| 207 |
+
|
| 208 |
+
# Limitations
|
| 209 |
+
|
| 210 |
+
Availability of domain knowledge in LLMs. LLMs encode a vast amount of knowledge, but may not include very domain-specific knowledge for specialized tasks, very new tasks, or tasks where
|
| 211 |
+
|
| 212 |
+
relevant information is confidential. Our technical implementation fundamentally relies on extracting knowledge from LLMs and will provide subpar guidance if the model has not captured relevant domain knowledge. Conceptually our approach to guide testing with domain knowledge would also work with other sources of the knowledge base, whether manually created, extracted from a text corpus (Shen and Breaux, 2022; Barzamini et al., 2022a), or crowdsourced (Metaxa et al., 2021).
|
| 213 |
+
|
| 214 |
+
Impacts from biases in LLMs. WEAKER uses LLMs to build knowledge bases such that users can elicit diverse requirements. However, LLMs themselves are found to be biased, sometimes untruthful, and can cause harm (Nadeem et al., 2021; Kumar et al., 2023). Therefore, users should carefully interpret results from WEAKER in high-stake applications.
|
| 215 |
+
|
| 216 |
+
Threats to validity in human-subject evaluations. Every study design has tradeoffs and limitations. In our evaluation, we intentionally combined multiple different kinds of user studies to triangulate results.
|
| 217 |
+
|
| 218 |
+
First, we conducted a user study as a controlled experiment. While the results are very specific and created in somewhat artificial settings and must be generalized with care (limited external validity), the study design can enact a high level of control to ensure high confidence in the reliability of the findings in the given context with statistical techniques (high internal validity). For example, regarding external validity, results may not generalize easily to other tasks that require different amounts of domain understanding or are differently supported by the chosen test case creation technique, and our participant population drawn from graduate students with a technical background may not equally generalize to all ML practitioners. There are also some threats to internal validity that remain, for example, despite careful control for ordering and learning effects with a Latin square design and assuring that the four groups were balanced in experience ('years of ML experience' and 'NLP expertise' asked in the recruitment survey before assignment), we cannot control for all possible confounding factors such as prior domain knowledge, gender, and motivation. In addition, we rely on clustering and similarity measures among concepts for our dependent variables, which build on well-established concepts but may not always
|
| 219 |
+
|
| 220 |
+
align with individual subjective judgment.
|
| 221 |
+
|
| 222 |
+
Second, we conducted case studies in real-world settings with practitioners (high external validity) but can naturally not control the setting or conduct repeated independent observations (limited internal validity). With only two case studies, generalizations must be made with care.
|
| 223 |
+
|
| 224 |
+
This tradeoff of external and internal validity is well understood (Siegmund et al., 2015). Conducting both forms of studies allows us to perform some limited form of triangulation, increasing confidence as we see similar positive results regarding WEAKER's usefulness for discovering diverse concepts.
|
| 225 |
+
|
| 226 |
+
Subjectivity in human judgments. All model testing requires judgment whether a model's prediction for a test example is correct. We noticed that user study participants and sometimes also case study practitioners struggled with determining whether model output for a specific test example was a problem, and multiple raters may sometimes disagree. For our purposes, we assume it is the tester's responsibility of identifying which model outputs they consider problematic, and we do not question any provided labels. This, however, reminds us that like data annotation (Santy et al., 2023), any model testing process will likely bring in testers' biases, as they get to decide what is right and what is wrong. In practice, a broader discussion among multiple stakeholders may be required to identify what model behavior is actually expected and a decomposition of model testing using requirements might be helpful to foster such engagement.
|
| 227 |
+
|
| 228 |
+
# Ethics Statement
|
| 229 |
+
|
| 230 |
+
Research Reproducibility. While our experiments are mostly conducted on the closed API (text-davinci-003) provided by OpenAI, none of the conceptual contributions of our paper relate to specific models or APIs. The concrete evaluation results depend on how humans interact with specific models, but the approach can be used with other models. Indeed, our extra experiments with llama-2-13b-chat on the climate change task show that the generated concepts from open-source models achieve substantial levels of recall (83% vs. 91% originally). This supports that the idea behind WEAKER is reproducible. While users may see somewhat different KBs through different runs of the same/different LLMs, they get similar chances of seeing useful concepts, receive a similar level of
|
| 231 |
+
|
| 232 |
+
support on requirement elicitation (our core contribution), and will be able to yield similar model testing effectiveness.
|
| 233 |
+
|
| 234 |
+
Human-subject Experiments. Our studies had been approved by our IRB before it was conducted, as is standard practice for human-subject experiments. We recruited all participants through emails, and all of them are graduate students with varying ML/NLP experience (see details in Appendix D.1). The participants were compensated for their time (\(20 per hour). As part of testing, they may write or review text that is abusive, dangerous, hateful, or offensive—they were made aware of this fact and could end participation at any time.
|
| 235 |
+
|
| 236 |
+
# Acknowledgements
|
| 237 |
+
|
| 238 |
+
This work was supported in part by the National Science Foundation (#2131477) and gift funds from Adobe, Oracle, and Google. Work by Brower-Sinning and Lewis was funded and supported by the Department of Defense under Contract No. FA8702-15-D-0002 with Carnegie Mellon University for the operation of the Software Engineering Institute, a federally funded research and development center (DM23-2019).
|
| 239 |
+
|
| 240 |
+
# References
|
| 241 |
+
|
| 242 |
+
Kumaripaba Athukorala, Alan Medlar, Antti Oulasvirta, Giulio Jacucci, and Dorota Glowacka. 2016. Beyond relevance: Adapting exploration/exploitation in information retrieval. In Proceedings of the 21st International Conference on Intelligent User Interfaces, IUI '16, page 359-369, New York, NY, USA. Association for Computing Machinery.
|
| 243 |
+
Hamed Barzamini, Mona Rahimi, Murteza Shahzad, and Hamed Alhouri. 2022a. Improving generalizability of ml-enabled software through domain specification. In Proceedings of the 1st International Conference on AI Engineering: Software Engineering for AI, CAIN '22, page 181-192, New York, NY, USA. Association for Computing Machinery.
|
| 244 |
+
Hamed Barzamini, Murtuza Shahzad, Hamed Alhoori, and Mona Rahimi. 2022b. A multi-level semantic web for hard-to-specify domain concept, pedestrian, in ml-based software. *Requir. Eng.*, 27(2):161-182.
|
| 245 |
+
George E. P. Box. 2009. Statistics for experimenters: design, innovation, and discovery. Wiley-Blackwell.
|
| 246 |
+
Ángel Alexander Cabrera, Erica Fu, Donald Bertucci, Kenneth Holstein, Ameet Talwalkar, Jason I. Hong, and Adam Perer. 2023. Zeno: An interactive framework for behavioral evaluation of machine learning.
|
| 247 |
+
|
| 248 |
+
In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, CHI '23, New York, NY, USA. Association for Computing Machinery.
|
| 249 |
+
Roi Cohen, Mor Geva, Jonathan Berant, and Amir Globerson. 2023. Crawling the internal knowledgebase of language models.
|
| 250 |
+
Wesley Hanwen Deng, Boyuan Guo, Alicia Devrio, Hong Shen, Motahhare Eslami, and Kenneth Holstein. 2023. Understanding practices, challenges, and opportunities for user-engaged algorithm auditing in industry practice. In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, CHI '23, New York, NY, USA. Association for Computing Machinery.
|
| 251 |
+
Kaustubh D Dhole, Varun Gangal, Sebastian Gehrmann, Aadesh Gupta, Zhenhao Li, Saad Mahamood, Abinaya Mahendiran, Simon Mille, Ashish Shrivastava, Samson Tan, et al. 2021. Nl-augmenter: A framework for task-sensitive natural language augmentation. arXiv preprint arXiv:2112.02721.
|
| 252 |
+
Sabri Eyuboglu, Maya Varma, Khaled Kamal Saab, Jean-Benoit Delbrouck, Christopher Lee-Messer, Jared Dunnmon, James Zou, and Christopher Re. 2022. Domino: Discovering systematic errors with cross-modal embeddings. In International Conference on Learning Representations.
|
| 253 |
+
Irena Gao, Gabriel Ilharco, Scott Lundberg, and Marco Tulio Ribeiro. 2022. Adaptive testing of computer vision models.
|
| 254 |
+
Robert Geirhos, Jorn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, and Felix A Wichmann. 2020. Shortcut learning in deep neural networks. Nature Machine Intelligence, 2(11):665-673.
|
| 255 |
+
Karan Goel, Nazneen Fatema Rajani, Jesse Vig, Zachary Taschdjian, Mohit Bansal, and Christopher Ré. 2021. Robustness gym: Unifying the NLP evaluation landscape. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Demonstrations, pages 42-55, Online. Association for Computational Linguistics.
|
| 256 |
+
Irtiza Hasan, Shengcai Liao, Jinping Li, Saad Ullah Akram, and Ling Shao. 2021. Generalizable pedestrian detection: The elephant in the room. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11323-11332.
|
| 257 |
+
Kenneth Holstein, Jennifer Wortman Vaughan, Hal Daume, Miro Dudik, and Hanna Wallach. 2019. Improving fairness in machine learning systems: What do industry practitioners need? In Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems, CHI '19, page 1-16, New York, NY, USA. Association for Computing Machinery.
|
| 258 |
+
|
| 259 |
+
Douwe Kiela, Hamed Firooz, Aravind Mohan, Vedanuj Goswami, Amanpreet Singh, Pratik Ringshia, and Davide Testuggine. 2020. The hateful memes challenge: Detecting hate speech in multimodal memes. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS'20, Red Hook, NY, USA. Curran Associates Inc.
|
| 260 |
+
Sachin Kumar, Vidhisha Balachandran, Lucille Njoo, Antonios Anastasopoulos, and Yulia Tsvetkov. 2023. Language generation models can cause harm: So what can we do about it? an actionable survey. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 3299-3321, Dubrovnik, Croatia. Association for Computational Linguistics.
|
| 261 |
+
Michelle S Lam, Zixian Ma, Anne Li, Izequiel Freitas, Dakuo Wang, James A Landay, and Michael S Bernstein. 2023. Model sketching: Centering concepts in early-stage machine learning model design. arXiv preprint arXiv:2303.02884.
|
| 262 |
+
Jenny T Liang, Chenyang Yang, and Brad A Myers. 2023. Understanding the usability of ai programming assistants. arXiv preprint arXiv:2303.17125.
|
| 263 |
+
Joshua Maynez, Shashi Narayan, Bernd Bohnet, and Ryan McDonald. 2020. On faithfulness and factuality in abstractive summarization. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 1906-1919, Online. Association for Computational Linguistics.
|
| 264 |
+
R Thomas McCoy, Ellie Pavlick, and Tal Linzen. 2019. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. arXiv preprint arXiv:1902.01007.
|
| 265 |
+
Danaë Metaxa, Joon Sung Park, Ronald E. Robertson, Karrie Karahalios, Christo Wilson, Jeff Hancock, and Christian Sandvig. 2021. Auditing algorithms: Understanding algorithmic systems from the outside in. Found. Trends Hum.-Comput. Interact., 14(4):272-344.
|
| 266 |
+
Hendrik Meth, Manuel Brhel, and Alexander Maedche. 2013. The state of the art in automated requirements elicitation. Information and Software Technology, 55(10):1695-1709.
|
| 267 |
+
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, San Diego, California. Association for Computational Linguistics.
|
| 268 |
+
John Morris, Eli Lifland, Jin Yong Yoo, Jake Grigsby, Di Jin, and Yanjun Qi. 2020. TextAttack: A framework for adversarial attacks, data augmentation, and adversarial training in NLP. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages
|
| 269 |
+
|
| 270 |
+
119-126, Online. Association for Computational Linguistics.
|
| 271 |
+
Moin Nadeem, Anna Bethke, and Siva Reddy. 2021. StereoSet: Measuring stereotypical bias in pretrained language models. 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 5356-5371, Online. Association for Computational Linguistics.
|
| 272 |
+
Nadia Nahar, Haoran Zhang, Grace Lewis, Shurui Zhou, and Christian Kästner. 2023. A meta-summary of challenges in building products with ml components – collecting experiences from $4758+$ practitioners. In Proceedings of the International Conference on AI Engineering - Software Engineering for AI (CAIN).
|
| 273 |
+
Nadia Nahar, Shurui Zhou, Grace Lewis, and Christian Kästner. 2022. Collaboration challenges in building ml-enabled systems: Communication, documentation, engineering, and process. In Proceedings of the 44th International Conference on Software Engineering (ICSE), pages 413-425, New York, NY. ACM Press. **Distinguished Paper Award**.
|
| 274 |
+
Aakanksha Naik, Abhilasha Ravichander, Norman Sadeh, Carolyn Rose, and Graham Neubig. 2018. Stress test evaluation for natural language inference. In Proceedings of the 27th International Conference on Computational Linguistics, pages 2340-2353, Santa Fe, New Mexico, USA. Association for Computational Linguistics.
|
| 275 |
+
OpenAI. 2022. Introducing chatgpt.
|
| 276 |
+
Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback.
|
| 277 |
+
Samir Passi and Solon Barocas. 2019. Problem formulation and fairness. In Proceedings of the Conference on Fairness, Accountability, and Transparency, FAT* '19, page 39-48, New York, NY, USA. Association for Computing Machinery.
|
| 278 |
+
Silviu Pitis, Michael R Zhang, Andrew Wang, and Jimmy Ba. 2023. Boosted prompt ensembles for large language models. arXiv preprint arXiv:2304.05970.
|
| 279 |
+
Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners.
|
| 280 |
+
Mona Rahimi, Jin LC Guo, Sahar Kokaly, and Marsha Chechik. 2019. Toward requirements specification for machine-learned components. In IEEE 27th International Requirements Engineering Conference Workshops, pages 241-244. IEEE.
|
| 281 |
+
|
| 282 |
+
Charvi Rastogi, Marco Tulio Ribeiro, Nicholas King, and Saleema Amershi. 2023. Supporting humanai collaboration in auditing llms with llms. arXiv preprint arXiv:2304.09991.
|
| 283 |
+
Nils Reimers and Iryna Gurevych. 2019. SentenceBERT: Sentence embeddings using Siamese BERTnetworks. 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 3982-3992, Hong Kong, China. Association for Computational Linguistics.
|
| 284 |
+
Marco Tulio Ribeiro. 2023. Testing language models (and prompts) like we test software. Medium.
|
| 285 |
+
Marco Tulio Ribeiro and Scott Lundberg. 2022. Adaptive testing and debugging of NLP models. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3253-3267, Dublin, Ireland. Association for Computational Linguistics.
|
| 286 |
+
Marco Tulio Ribeiro, Tongshuang Wu, Carlos Guestrin, and Sameer Singh. 2020. Beyond accuracy: Behavioral testing of NLP models with CheckList. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4902-4912, Online. Association for Computational Linguistics.
|
| 287 |
+
Anna Rogers. 2021. Changing the world by changing the data. 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 2182-2194, Online. Association for Computational Linguistics.
|
| 288 |
+
Paul Röttger, Bertie Vidgen, Dong Nguyen, Zeerak Waseem, Helen Margetts, and Janet Pierrehumbert. 2021. HateCheck: Functional tests for hate speech detection models. 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 41-58, Online. Association for Computational Linguistics.
|
| 289 |
+
Sebastin Santy, Jenny T. Liang, Ronan Le Bras, Katharina Reinecke, and Maarten Sap. 2023. Nlpositionality: Characterizing design biases of datasets and models. In ACL.
|
| 290 |
+
Maarten Sap, Dallas Card, Saadia Gabriel, Yejin Choi, and Noah A. Smith. 2019. The risk of racial bias in hate speech detection. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1668-1678, Florence, Italy. Association for Computational Linguistics.
|
| 291 |
+
Deven Santosh Shah, H. Andrew Schwartz, and Dirk Hovy. 2020. Predictive biases in natural language processing models: A conceptual framework and overview. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics,
|
| 292 |
+
|
| 293 |
+
pages 5248-5264, Online. Association for Computational Linguistics.
|
| 294 |
+
Yuchen Shen and Travis Breaux. 2022. Domain model extraction from user-authored scenarios and word embeddings. In 2022 IEEE 30th International Requirements Engineering Conference Workshops (REW), pages 143-151.
|
| 295 |
+
Ben Shneiderman. 1996. The eyes have it: A task by data type taxonomy for information visualizations. In Proceedings 1996 IEEE symposium on visual languages, pages 336-343. IEEE.
|
| 296 |
+
Janet Siegmund, Norbert Siegmund, and Sven Apel. 2015. Views on internal and external validity in empirical software engineering. In Proc. IEEE/ACM 37th International Conference on Software Engineering, volume 1, pages 9-19. IEEE.
|
| 297 |
+
Ian Sommerville. 2015. Software Engineering, 10th edition. Pearson.
|
| 298 |
+
Robyn Speer, Joshua Chin, and Catherine Havasi. 2017. Conceptnet 5.5: An open multilingual graph of general knowledge. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, AAAI'17, page 4444-4451. AAAI Press.
|
| 299 |
+
Hariharan Subramonyam, Jane Im, Colleen Seifert, and Eytan Adar. 2022. Solving separation-of-concerns problems in collaborative design of human-ai systems through leaky abstractions. In Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems.
|
| 300 |
+
Laurens van der Maaten and Geoffrey Hinton. 2008. Visualizing data using t-sne. Journal of Machine Learning Research, 9(86):2579-2605.
|
| 301 |
+
Axel Van Lamsweerde. 2009. Requirements engineering: From system goals to UML models to software, volume 10. Chichester, UK: John Wiley & Sons.
|
| 302 |
+
Andreas Vogelsang and Markus Borg. 2019. Requirements engineering for machine learning: Perspectives from data scientists. In IEEE 27th International Requirements Engineering Conference Workshops, pages 245-251. IEEE.
|
| 303 |
+
Chenguang Wang, Xiao Liu, and Dawn Song. 2020. Language models are open knowledge graphs. arXiv preprint arXiv:2010.11967.
|
| 304 |
+
Joe H Ward Jr. 1963. Hierarchical grouping to optimize an objective function. Journal of the American statistical association, 58(301):236-244.
|
| 305 |
+
Nicholas C. Wormald. 1995. Differential Equations for Random Processes and Random Graphs. The Annals of Applied Probability, 5(4):1217 - 1235.
|
| 306 |
+
Tongshuang Wu, Marco Tulio Ribeiro, Jeffrey Heer, and Daniel Weld. 2019a. Errudite: Scalable, reproducible, and testable error analysis. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 747-763, Florence, Italy. Association for Computational Linguistics.
|
| 307 |
+
|
| 308 |
+
Tongshuang Wu, Marco Tulio Ribeiro, Jeffrey Heer, and Daniel S Weld. 2019b. Errudite: Scalable, reproducible, and testable error analysis. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 747-763.
|
| 309 |
+
Tongshuang Wu, Michael Terry, and Carrie Jun Cai. 2022. Ai chains: Transparent and controllable human-ai interaction by chaining large language model prompts. In Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems, pages 1-22.
|
| 310 |
+
Chenyang Yang, Rachel A Brower-Sinning, Grace Lewis, Christian Kästner, and Tongshuang Wu. 2023. Capabilities for better ml engineering. In Proceedings of the AAAI-23 Workshop on Artificial Intelligence Safety (SafeAI).
|
| 311 |
+
Guanqun Yang, Mirazul Haque, Qiaochu Song, Wei Yang, and Xueqing Liu. 2022. TestAug: A framework for augmenting capability-based NLP tests. In Proceedings of the 29th International Conference on Computational Linguistics, pages 3480-3495, Gyeongju, Republic of Korea. International Committee on Computational Linguistics.
|
| 312 |
+
J.D. Zamfirescu-Pereira, Richmond Y. Wong, Bjoern Hartmann, and Qian Yang. 2023. Why johnny can't prompt: How non-ai experts try (and fail) to design llm prompts. In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, CHI '23, New York, NY, USA. Association for Computing Machinery.
|
| 313 |
+
Shanshan Zhang, Rodrigo Benenson, and Bernt Schiele. 2017. Citypersons: A diverse dataset for pedestrian detection. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4457-4465.
|
| 314 |
+
|
| 315 |
+
# A Complete List of Used Prompts
|
| 316 |
+
|
| 317 |
+
# Prompts for expanding knowledge bases
|
| 318 |
+
|
| 319 |
+
{context}
|
| 320 |
+
|
| 321 |
+
{list_prompt} Pay attention to the context above. Summarize in a JSON list.
|
| 322 |
+
|
| 323 |
+
'''json
|
| 324 |
+
|
| 325 |
+
Example list prompts
|
| 326 |
+
|
| 327 |
+
TYPEOF: List $\{\mathsf{N}\}$ types of {concept}.
|
| 328 |
+
|
| 329 |
+
PARTOF: List $\{\mathsf{N}\}$ parts or aspects of {concept}.
|
| 330 |
+
|
| 331 |
+
HASPROPERTY: List $\{\mathsf{N}\}$ descriptions of {concept}.
|
| 332 |
+
|
| 333 |
+
USEDFOR: List {N} things {concept} could be used for.
|
| 334 |
+
|
| 335 |
+
ATLOCATION: List {N} locations {concept} could appear in.
|
| 336 |
+
|
| 337 |
+
CAUSES: List $\{\mathsf{N}\}$ consequences of {concept}.
|
| 338 |
+
|
| 339 |
+
MOTIVATEDBY: List {N} motivations behind { concept}.
|
| 340 |
+
|
| 341 |
+
OBSTRUCTEDBY: List {N} things, entities, or people against {concept}.
|
| 342 |
+
|
| 343 |
+
MANNEROF: List $\{\mathsf{N}\}$ ways to do {concept}.
|
| 344 |
+
|
| 345 |
+
LOCATEDNEAR: List {N} things that often locates near {concept}.
|
| 346 |
+
|
| 347 |
+
CAPABLEOF: List $\{\mathsf{N}\}$ things that {concept} is capable of.
|
| 348 |
+
|
| 349 |
+
HASSUBEVENT: List $\{\mathsf{N}\}$ subevents of {concept}.
|
| 350 |
+
|
| 351 |
+
HASPREREQUISITE: List {N} things that happen before {concept}.
|
| 352 |
+
|
| 353 |
+
DESIRES: List $\{\mathsf{N}\}$ things that {concept} desires.
|
| 354 |
+
|
| 355 |
+
CREATEDBY: List $\{\mathsf{N}\}$ creators of {concept}.
|
| 356 |
+
|
| 357 |
+
SYMBOLOF:List $\{N\}$ symbols of {concept}
|
| 358 |
+
|
| 359 |
+
CAUSESDESIRe: List $\{N\}$ desires caused by { concept}.
|
| 360 |
+
|
| 361 |
+
MADEOF: List $\{\mathsf{N}\}$ materials of {concept}.
|
| 362 |
+
|
| 363 |
+
RECEIVESACTION: List $\{\mathsf{N}\}$ actions that can be done to {concept}.
|
| 364 |
+
|
| 365 |
+
DESIREDBY: List $\{\mathsf{N}\}$ entities or people that desire {concept}.
|
| 366 |
+
|
| 367 |
+
CREATES: List $\{\mathsf{N}\}$ things that {concept} creates.
|
| 368 |
+
|
| 369 |
+
CAUSEDBY: List $\{\mathsf{N}\}$ things that cause {concept}.
|
| 370 |
+
|
| 371 |
+
DONEBY: List {N} entities or people that can do {concept}.
|
| 372 |
+
|
| 373 |
+
DESIReCAUSEDBY: List $\{N\}$ things that cause desire of {concept}.
|
| 374 |
+
|
| 375 |
+
DONETO: List {N} entities or people that { concept} can be done to.
|
| 376 |
+
|
| 377 |
+
RELATEDTO: List {N} concepts related to {concept }.
|
| 378 |
+
|
| 379 |
+
Example contexts prompts
|
| 380 |
+
|
| 381 |
+
TYPEOF: {concept} is a type of {parent_concept}.
|
| 382 |
+
|
| 383 |
+
PARTOF: {concept} is a part of {parent_concept}.
|
| 384 |
+
|
| 385 |
+
HASPROPERTY: {parent_concept} is described as { concept}.
|
| 386 |
+
|
| 387 |
+
USEDFOR: {parent_concept} is used for {concept}.
|
| 388 |
+
|
| 389 |
+
ATLOCATION: {parent_concept} locates at {concept}.
|
| 390 |
+
|
| 391 |
+
CAUSES: {parent_concept} causes {concept}.
|
| 392 |
+
|
| 393 |
+
MOTIVATEDBY: {parent_concept} is motivated by { concept}.
|
| 394 |
+
|
| 395 |
+
OBSTRUCTEDBY: {parent_concept} is obstructed by {concept}.
|
| 396 |
+
|
| 397 |
+
MANNEROF: {concept} is a way to do {parent_concept}.
|
| 398 |
+
|
| 399 |
+
LOCATEDNEAR: {concept} locates near {parent_concept}.
|
| 400 |
+
|
| 401 |
+
CAPABLEOF: {parent_concept} is capable of { concept}.
|
| 402 |
+
|
| 403 |
+
HASSUBEVENT: {concept} happens during {parent_concept}.
|
| 404 |
+
|
| 405 |
+
HASPREREQUISITE: {concept} happens before {parent_concept}.
|
| 406 |
+
|
| 407 |
+
DESIRES: {parent_concept} desires {concept}.
|
| 408 |
+
|
| 409 |
+
CREATEDBY: {concept} creates {parent_concept}.
|
| 410 |
+
|
| 411 |
+
SYMBOLOF: {concept} is a symbol of {parent_concept}.
|
| 412 |
+
|
| 413 |
+
CAUSESDESIRe: {parent_concept} causes desire of {concept}.
|
| 414 |
+
|
| 415 |
+
MADEOF: {parent_concept} is made of {concept}.
|
| 416 |
+
|
| 417 |
+
RECEIVESACTION: {parent_concept} receives action of {concept}.
|
| 418 |
+
|
| 419 |
+
DESIREDBY: {concept} desires {parent_concept}.
|
| 420 |
+
|
| 421 |
+
CREATES: {parent_concept} creates {concept}.
|
| 422 |
+
|
| 423 |
+
CAUSEDBY: {concept} causes {parent_concept}.
|
| 424 |
+
|
| 425 |
+
DONEBY: {concept} does {parent_concept}.
|
| 426 |
+
|
| 427 |
+
DESIReCAUSEDBY: {concept} causes desire of { parent_concept}.
|
| 428 |
+
|
| 429 |
+
DONETO: {parent_concept} is done to {concept}.
|
| 430 |
+
|
| 431 |
+
RELATEDTO: {concept} is related to {parent_concept}.
|
| 432 |
+
|
| 433 |
+
```yaml
|
| 434 |
+
# Prompts for the tested models in the user study
|
| 435 |
+
# Stance detection on feminism
|
| 436 |
+
Carefully classify a sentence's stance on feminism. The labels are \"favor\", \"against\” or \"none\". Only reply with the label.
|
| 437 |
+
Sentence: {example}
|
| 438 |
+
# Stance detection on climate change
|
| 439 |
+
Carefully classify a sentence's stance on combating climate change. The labels are \"favor\", \"against\” or \"none\". Only reply with the label.
|
| 440 |
+
Sentence: {example}
|
| 441 |
+
```
|
| 442 |
+
|
| 443 |
+
The path contexts in our full prompt are used to mitigate the issue of polysemy and deviation when users explore deeper in the graph.
|
| 444 |
+
|
| 445 |
+
# SURVEY QUESTIONS
|
| 446 |
+
|
| 447 |
+
- Rate whether you agree with the statement: Concept knowledge graph helps me find more diverse model bugs. Write a justification for your rating.
|
| 448 |
+
- Rate whether you agree with the statement: Concept knowledge graph helps me find more important model bugs. Write a justification for your rating.
|
| 449 |
+
- Rate whether you agree with the statement: Concept knowledge graph helps me test the model more holistically. Write a justification for your rating.
|
| 450 |
+
- Rate whether you agree with the statement: I want to use the tool with knowledge graph to test the model I build/use in the future.. Write a justification for your rating.
|
| 451 |
+
- If you want to use the tool in the future, what is the model and task you want to use it for?
|
| 452 |
+
- Feedback on how to improve the tool in the future.
|
| 453 |
+
|
| 454 |
+
Figure 8: Post-study survey questions.
|
| 455 |
+
|
| 456 |
+
# B User Interface
|
| 457 |
+
|
| 458 |
+
In Figure 9, we show the complete user interface.
|
| 459 |
+
|
| 460 |
+
# C Task Descriptions
|
| 461 |
+
|
| 462 |
+
Hateful meme detection. Hateful meme detection (Kiela et al., 2020) requires classifying an image (meme with text) as hateful or non-hateful. This task is challenging in that it requires multimodal reasoning in order to classify the original meme and its confounders correctly
|
| 463 |
+
|
| 464 |
+
Pedestrian detection. Pedestrian detection (Zhang et al., 2017) requires detecting and localizing pedestrians in images. Though it is one of the longest-standing problems in computer vision, people still observe generalizability issues in existing detectors (Hasan et al., 2021).
|
| 465 |
+
|
| 466 |
+
Stance detection. Stance detection requires classifying texts as either being in favor of, against, or neutral toward the given target (Mohammad et al., 2016). The task is crucial for understanding the public's perception of given targets We selected two targets for our evaluation: feminism and climate change, which are previously explored for Tweets (Mohammad et al., 2016).
|
| 467 |
+
|
| 468 |
+
# D User Study
|
| 469 |
+
|
| 470 |
+
# D.1 Study Design Details
|
| 471 |
+
|
| 472 |
+
Participants. We recruited 20 participants (graduate students with varying ML/NLP experience). Among them, $70\%$ have worked on ML for more than three years; $80\%$ rate themselves as at least somewhat familiar with NLP; $60\%$ are working on a project using NLP at the time of the study. We randomly assigned participants to the four experimental groups. The four groups are comparable in terms of ML/NLP experience and familiarity. The participants were compensated $20 per hour.
|
| 473 |
+
|
| 474 |
+
# D.2 Post-study Survey
|
| 475 |
+
|
| 476 |
+
We share our survey questions (Figure 8) and users' responses (Table 2).
|
| 477 |
+
|
| 478 |
+
# D.3 Quantitative Analysis
|
| 479 |
+
|
| 480 |
+
We show the ANOVA analysis results in Table 3.
|
| 481 |
+
|
| 482 |
+
# E Additional Data on Running WEAKER
|
| 483 |
+
|
| 484 |
+
It takes 30 seconds on average to generate a default KB from scratch (with around 500 concepts) on our machine (Precision 3650 workstation, with Intel(R) Xeon(R) W-1350 CPU and 32GB memory). When users explore the KB interactively and expand a node, the query takes 8 seconds on average. The wait can be greatly reduced via pre-fetching (i.e., expanding the node on display in the background before the actual query), which has been implemented in WEAKER.
|
| 485 |
+
|
| 486 |
+
# F WEAKER with Open-source LLMs
|
| 487 |
+
|
| 488 |
+
We conducted an extra experiment to evaluate whether open-source LLMs can also generate comprehensive KBs. We generated another KB on the climate change task, using 11ama-2-13b-chat with 4-bit quantization. We found that the generated KB achieved comparable levels of recall (83% vs. 91% with text-davinci-003).
|
| 489 |
+
|
| 490 |
+

|
| 491 |
+
Figure 9: Complete user interface for WEaver. On the right is our re-implemented version of AdaTest to assist users to create test cases.
|
| 492 |
+
|
| 493 |
+

|
| 494 |
+
|
| 495 |
+

|
| 496 |
+
Table 2: Participants' responses in the post-study survey.
|
| 497 |
+
|
| 498 |
+
<table><tr><td>Number of found concepts</td><td>ges</td></tr><tr><td>Interv.: Used WEAKER?</td><td>0.307**</td></tr><tr><td>Order: Tool in first task?</td><td>0.008</td></tr><tr><td>Task number</td><td>0.000</td></tr><tr><td>Number of hit clusters</td><td>ges</td></tr><tr><td>Interv.: Used WEAKER?</td><td>0.408**</td></tr><tr><td>Order: Tool in first task?</td><td>0.039</td></tr><tr><td>Task number</td><td>0.006</td></tr><tr><td>**p<0.01</td><td>N=40</td></tr></table>
|
| 499 |
+
|
| 500 |
+
Table 3: User study ANOVA analysis results. We measure effect size with ges (generalized Eta-Squared measure of effect size).
|
2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2de7a746e656595e8c0e112d09e84a6a74a641039406655d7ce67539b5343bd4
|
| 3 |
+
size 319099
|
2023/Beyond Testers’ Biases_ Guiding Model Testing with Knowledge Bases using LLMs/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Bi-Drop_ Enhancing Fine-tuning Generalization via Synchronous sub-net Estimation and Optimization/fc79fd27-d381-42b1-96b3-f41ef565aa43_content_list.json
ADDED
|
@@ -0,0 +1,2013 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Bi-Drop: Enhancing Fine-tuning Generalization via Synchronous sub-net Estimation and Optimization",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
119,
|
| 8 |
+
79,
|
| 9 |
+
878,
|
| 10 |
+
118
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Shoujie Tong $^{1,2*}$ Heming Xia $^{1,2*}$ Damai Dai $^{1,4}$ Runxin Xu $^{1,4}$ Tianyu Liu $^{3}$ \nBinghuai Lin $^{5}$ Yunbo Cao $^{5}$ Zhifang Sui $^{1,4}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
154,
|
| 19 |
+
123,
|
| 20 |
+
840,
|
| 21 |
+
159
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{1}$ National Key Laboratory for Multimedia Information Processing, Peking University $^{2}$ School of Software & Microelectronics, Peking University $^{3}$ Alibaba Group $^{4}$ School of Computer Science, Peking University $^{5}$ Tencent Cloud AI $\\{\\text{tong}\\}@\\text{stu.pku.edu.cn}$ $\\{\\text{xiaheming,daidamai,tianyu0421,szf}\\}@\\text{pku.edu.cn}$ $\\{\\text{runxinxu}\\}@\\text{gmail.com}$ $\\{\\text{binghuailin,yunbocao}\\}@\\text{tencent.com}$",
|
| 28 |
+
"bbox": [
|
| 29 |
+
152,
|
| 30 |
+
159,
|
| 31 |
+
845,
|
| 32 |
+
243
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
260,
|
| 42 |
+
252,
|
| 43 |
+
339,
|
| 44 |
+
266
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Pretrained language models have achieved remarkable success in natural language understanding. However, fine-tuning pretrained models on limited training data tends to overfit and thus diminish performance. This paper presents Bi-Drop, a fine-tuning strategy that selectively updates model parameters using gradients from various sub-nets dynamically generated by dropout. The sub-net estimation of Bi-Drop is performed in an in-batch manner, so it overcomes the problem of hysteresis in sub-net updating, which is possessed by previous methods that perform asynchronous sub-net estimation. Also, Bi-Drop needs only one mini-batch to estimate the sub-net so it achieves higher utility of training data. Experiments on the GLUE benchmark demonstrate that Bi-Drop consistently outperforms previous fine-tuning methods. Furthermore, empirical results also show that Bi-Drop exhibits excellent generalization ability and robustness for domain transfer, data imbalance, and low-resource scenarios.",
|
| 51 |
+
"bbox": [
|
| 52 |
+
141,
|
| 53 |
+
277,
|
| 54 |
+
460,
|
| 55 |
+
590
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
114,
|
| 65 |
+
600,
|
| 66 |
+
260,
|
| 67 |
+
615
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In recent years, Natural Language Processing (NLP) has achieved significant progress due to the emergence of large-scale Pretrained Language Models (PLMs) (Devlin et al., 2018; Liu et al., 2019; Raffel et al., 2019; Clark et al., 2020). For downstream tasks, compared with training from scratch, fine-tuning pretrained models can usually achieve efficient adaptation and result in better performance. Despite the great success, fine-tuning methods still face challenges in maintaining generalization performance on downstream tasks - they tend to run into the overfitting issue when the training data is limited (Phang et al., 2018; Devlin et al., 2018; Lee et al., 2020).",
|
| 74 |
+
"bbox": [
|
| 75 |
+
112,
|
| 76 |
+
625,
|
| 77 |
+
489,
|
| 78 |
+
848
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To improve the generalization ability of finetuning methods, many regularization techniques have been proposed (Chen et al., 2020; Aghajanyan",
|
| 85 |
+
"bbox": [
|
| 86 |
+
112,
|
| 87 |
+
850,
|
| 88 |
+
489,
|
| 89 |
+
898
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/381214e8a1bf9893e687d2b6c2dd321f014152a40b11e2c555128f5de304cef6.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Comparisons between Bi-Drop and previous methods. Unlike previous methods that require multiple mini-batches of data to asynchronously determine the sub-net to optimize, Bi-Drop has a synchronous sub-net selection strategy with a higher data utility."
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
529,
|
| 102 |
+
249,
|
| 103 |
+
865,
|
| 104 |
+
378
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "et al., 2021; Wu et al., 2021; Xu et al., 2021; Yuan et al., 2022), such as sub-net optimization strategies like Child-Tuning $D$ (Xu et al., 2021) and DPS (Zhang et al., 2022). Child-Tuning $D$ selects a static sub-net for updating based on parameter importance estimated by Fisher Information (FI). As an improved variant of Child-Tuning $D$ , DPS dynamically decides the sub-net to be updated by estimating FI with multiple mini-batches of data. Although these FI-based methods achieve better generalization ability than vanilla fine-tuning, they still have two limitations: (1) hysteresis in sub-net updating: the sub-net preference is estimated with the model parameters in previous iterations and may be incompatible with the current update step; and (2) insufficient utility of training data: FI estimation requires cumulative gradients through multiple mini-batches, so these methods cannot fit in situations with data scarcity.",
|
| 111 |
+
"bbox": [
|
| 112 |
+
507,
|
| 113 |
+
480,
|
| 114 |
+
884,
|
| 115 |
+
785
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "In this paper, we delve deeper into adaptive subnet optimization strategies and propose Bi-Drop, a FI-free strategy for fine-tuning pretrained language models. Unlike Fisher information estimation, which requires cumulative gradients of minibatches, Bi-Drop only relies on information in a single mini-batch to select the parameters to update. Specifically, Bi-Drop utilizes gradient information",
|
| 122 |
+
"bbox": [
|
| 123 |
+
507,
|
| 124 |
+
790,
|
| 125 |
+
885,
|
| 126 |
+
919
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 0
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "page_footnote",
|
| 132 |
+
"text": "*Equal contributions",
|
| 133 |
+
"bbox": [
|
| 134 |
+
141,
|
| 135 |
+
904,
|
| 136 |
+
272,
|
| 137 |
+
917
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 0
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "page_number",
|
| 143 |
+
"text": "5214",
|
| 144 |
+
"bbox": [
|
| 145 |
+
480,
|
| 146 |
+
927,
|
| 147 |
+
521,
|
| 148 |
+
940
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 0
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "footer",
|
| 154 |
+
"text": "Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5214-5227 December 6-10, 2023 ©2023 Association for Computational Linguistics",
|
| 155 |
+
"bbox": [
|
| 156 |
+
216,
|
| 157 |
+
945,
|
| 158 |
+
779,
|
| 159 |
+
973
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 0
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "from different sub-nets dynamically generated by dropout in each mini-batch. As illustrated in Figure 1, within a single training step of Bi-Drop, a minibatch will go through the forward pass multiple times and, due to the randomness introduced by dropout, yield various distinct sub-nets. We then apply a parameter selection algorithm with perturbation and scaling factors to stabilize the gradient updates. With this synchronous parameter selection strategy, Bi-Drop can selectively update model parameters according to the information from only the current mini-batch, and thus mitigate overfitting with a high utility of training data.",
|
| 166 |
+
"bbox": [
|
| 167 |
+
110,
|
| 168 |
+
84,
|
| 169 |
+
492,
|
| 170 |
+
294
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Extensive experiments on the GLUE benchmark demonstrate that Bi-Drop shows remarkable superiority over the state-of-the-art fine-tuning regularization methods, with a considerable margin of 0.53 $\\sim$ 1.50 average score. Moreover, Bi-Drop consistently outperforms vanilla fine-tuning by 0.83 $\\sim$ 1.58 average score across various PLMs. Further analysis indicates that Bi-Drop attains superb generalization ability for domain transfer and task transfer, and is robust for data imbalance and low-resource scenarios.",
|
| 177 |
+
"bbox": [
|
| 178 |
+
110,
|
| 179 |
+
294,
|
| 180 |
+
490,
|
| 181 |
+
470
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "To sum up, our contributions are three-fold:",
|
| 188 |
+
"bbox": [
|
| 189 |
+
132,
|
| 190 |
+
472,
|
| 191 |
+
458,
|
| 192 |
+
487
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "list",
|
| 198 |
+
"sub_type": "text",
|
| 199 |
+
"list_items": [
|
| 200 |
+
"- We propose Bi-Drop, a step-wise sub-net optimization strategy that adaptively selects the updated sub-net based on the current minibatch data. Compared with prior FI-based methods, Bi-Drop derives a more stable and robust training trajectory with simultaneous sub-net update and high utility of training data.",
|
| 201 |
+
"- With extensive experiments on various PLMs, we demonstrate that Bi-Drop achieves consistent and remarkable superiority over prior fine-tuning regularization methods.",
|
| 202 |
+
"Further analysis shows that Bi-drop attains superb generalization ability for domain transfer and task transfer, and is robust for data imbalance and low-resource scenarios."
|
| 203 |
+
],
|
| 204 |
+
"bbox": [
|
| 205 |
+
134,
|
| 206 |
+
495,
|
| 207 |
+
489,
|
| 208 |
+
753
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 1
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "2 Related Work",
|
| 215 |
+
"text_level": 1,
|
| 216 |
+
"bbox": [
|
| 217 |
+
112,
|
| 218 |
+
774,
|
| 219 |
+
270,
|
| 220 |
+
789
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 1
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "Pretrained Language Models In recent years, the field of natural language processing (NLP) has witnessed significant advancements due to the development of large-scale pretrained language models (PLMs). The introduction of BERT (Devlin",
|
| 227 |
+
"bbox": [
|
| 228 |
+
112,
|
| 229 |
+
802,
|
| 230 |
+
490,
|
| 231 |
+
881
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 1
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "table",
|
| 237 |
+
"img_path": "images/1ff341212c3fc36ede17e113f62a3b84052bf1b10dc75d25054f89604d51428a.jpg",
|
| 238 |
+
"table_caption": [],
|
| 239 |
+
"table_footnote": [],
|
| 240 |
+
"table_body": "<table><tr><td>Models</td><td>Sub-net Granularity</td><td>Hyste- resis</td><td>Data Depend.</td></tr><tr><td>Child-TuningD</td><td>task-wise</td><td>Yes</td><td>Yes</td></tr><tr><td>DPS</td><td>cycle-wise</td><td>Yes</td><td>Yes</td></tr><tr><td>Bi-Drop</td><td>step-wise</td><td>No</td><td>No</td></tr></table>",
|
| 241 |
+
"bbox": [
|
| 242 |
+
512,
|
| 243 |
+
82,
|
| 244 |
+
884,
|
| 245 |
+
161
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 1
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "Table 1: Comparison of Bi-Drop with prior FI-based sub-net optimization methods. \"cycle-wise\" refers to the granularity that includes multiple mini-batches of data.",
|
| 252 |
+
"bbox": [
|
| 253 |
+
507,
|
| 254 |
+
170,
|
| 255 |
+
884,
|
| 256 |
+
227
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 1
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "et al., 2018) sparked a continuous emergence of various pre-trained models, including RoBERTa (Liu et al., 2019), ELECTRA (Clark et al., 2020), XLNet (Yang et al., 2019), GPT-2 (Radford et al., 2019), and GPT-3 (Brown et al., 2020), which have brought remarkable improvements in model structures and scales. Until now, fine-tuning is still one of the most popular approaches to adapting large pretrained language models to downstream tasks.",
|
| 263 |
+
"bbox": [
|
| 264 |
+
507,
|
| 265 |
+
266,
|
| 266 |
+
884,
|
| 267 |
+
411
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 1
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "Regularization Methods for Fine-tuning Large-scale PLMs are prone to over-fitting (Phang et al., 2018; Devlin et al., 2018) and exhibit inadequate generalization ability when fine-tuned with limited training data (Aghajanyan et al., 2021; Mahabadi et al., 2021), resulting in degraded performance. To tackle this issue, various regularization techniques have been suggested to enhance the generalization capacity of models, including advanced dropout alternatives (Wan et al., 2013; Wu et al., 2021), applying adversarial perturbations (Aghajanyan et al., 2021; Wu et al., 2022; Yuan et al., 2022) and constrained regularization methods (DauméIII, 2007; Chen et al., 2020). In recent years, Child-tuning (Xu et al., 2021) and DPS (Zhang et al., 2022) propose to estimate parameter importance based on Fisher Information (FI) and selectively optimize a sub-net during fine-tuning to mitigate overfitting.",
|
| 274 |
+
"bbox": [
|
| 275 |
+
507,
|
| 276 |
+
457,
|
| 277 |
+
884,
|
| 278 |
+
747
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 1
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "FI-based methods have a strong dependence on the training data and exhibit hysteresis in sub-net updating. As shown in Table 1, compared with prior FI-based methods, Bi-Drop introduces a stepwise sub-net optimization strategy that adaptively selects the sub-net to be updated based on the current mini-batch. It is worth noting that, as a model-agnostic technique, Bi-Drop is orthogonal to most previous fine-tuning methods, which could further boost the model's performance.",
|
| 285 |
+
"bbox": [
|
| 286 |
+
507,
|
| 287 |
+
758,
|
| 288 |
+
885,
|
| 289 |
+
919
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 1
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "page_footnote",
|
| 295 |
+
"text": "$^{1}$ Our code is available at https://github.com/tongshoujie/Bi-Drop",
|
| 296 |
+
"bbox": [
|
| 297 |
+
112,
|
| 298 |
+
891,
|
| 299 |
+
489,
|
| 300 |
+
917
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 1
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "page_number",
|
| 306 |
+
"text": "5215",
|
| 307 |
+
"bbox": [
|
| 308 |
+
480,
|
| 309 |
+
927,
|
| 310 |
+
519,
|
| 311 |
+
940
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 1
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "image",
|
| 317 |
+
"img_path": "images/874689c9145fb4cf78d240b43a79eb64d4c5dac25a186a3715433a8155b69780.jpg",
|
| 318 |
+
"image_caption": [
|
| 319 |
+
"Figure 2: An overall illustration of Bi-Drop. Bi-Drop splits each training step into three sub-steps: (1) Multiple forward propagations: each mini-batch sample goes through the forward pass multiple times (denoted as $k$ ) with dropout; (2) sub-net selection: an advanced strategy is adopted to select the sub-net to be updated based on the gradients of distinct sub-nets generated by dropout; (3) Parameter updating: only the parameters of the selected sub-net are updated to mitigate overfitting."
|
| 320 |
+
],
|
| 321 |
+
"image_footnote": [],
|
| 322 |
+
"bbox": [
|
| 323 |
+
132,
|
| 324 |
+
80,
|
| 325 |
+
867,
|
| 326 |
+
250
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "3 Methodology",
|
| 333 |
+
"text_level": 1,
|
| 334 |
+
"bbox": [
|
| 335 |
+
112,
|
| 336 |
+
354,
|
| 337 |
+
260,
|
| 338 |
+
370
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 2
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "3.1 Background",
|
| 345 |
+
"text_level": 1,
|
| 346 |
+
"bbox": [
|
| 347 |
+
112,
|
| 348 |
+
379,
|
| 349 |
+
257,
|
| 350 |
+
395
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 2
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "We first introduce the paradigm of sub-net optimization by giving general formulations of the backpropagation during the vanilla fine-tuning and CHILD-TUNING $D$ . We denote the parameters of the model at $t$ -th iteration as $\\theta_{t} = \\{\\theta_{t,i}\\}_{i=1}^{n}$ , where $\\theta_{t,i}$ represent the $i$ -th element of $\\theta_{t}$ at the $t$ -th training iteration. $\\theta_{0}$ denotes the parameter matrix of the pre-trained model. The vanilla fine-tuning adopts Stochastic Gradient Descent (SGD) to all the model parameters, formally:",
|
| 357 |
+
"bbox": [
|
| 358 |
+
112,
|
| 359 |
+
400,
|
| 360 |
+
487,
|
| 361 |
+
561
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "equation",
|
| 367 |
+
"text": "\n$$\n\\boldsymbol {\\theta} _ {t + 1} = \\boldsymbol {\\theta} _ {t} - \\eta \\frac {\\partial \\mathcal {L} \\left(\\boldsymbol {\\theta} _ {t}\\right)}{\\partial \\boldsymbol {\\theta} _ {t}} \\tag {1}\n$$\n",
|
| 368 |
+
"text_format": "latex",
|
| 369 |
+
"bbox": [
|
| 370 |
+
223,
|
| 371 |
+
571,
|
| 372 |
+
487,
|
| 373 |
+
599
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 2
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "where $\\mathcal{L}$ represents the training loss within a batch; $\\eta$ is the learning rate. Instead of fine-tuning the entire network, CHILD-TUNING $_D$ proposes to only optimize a subset of parameters (i.e., the sub-net). It first adopts the Fisher Information (FI) to estimate the relative importance of the parameters for a specific downstream task, which can be formulated as:",
|
| 380 |
+
"bbox": [
|
| 381 |
+
112,
|
| 382 |
+
602,
|
| 383 |
+
489,
|
| 384 |
+
728
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 2
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "equation",
|
| 390 |
+
"text": "\n$$\nF \\left(\\boldsymbol {\\theta} _ {0}\\right) = \\sum_ {j = 1} ^ {| \\mathcal {D} |} \\left(\\frac {\\partial \\mathcal {L} \\left(\\boldsymbol {\\theta} _ {0}\\right)}{\\partial \\boldsymbol {\\theta} _ {0}}\\right) ^ {2} \\tag {2}\n$$\n",
|
| 391 |
+
"text_format": "latex",
|
| 392 |
+
"bbox": [
|
| 393 |
+
213,
|
| 394 |
+
741,
|
| 395 |
+
487,
|
| 396 |
+
778
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 2
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "equation",
|
| 402 |
+
"text": "\n$$\n\\boldsymbol {M} _ {C T _ {D}} = F (\\boldsymbol {\\theta} _ {0}) > \\operatorname {s o r t} (F (\\boldsymbol {\\theta} _ {0})) _ {p} \\tag {3}\n$$\n",
|
| 403 |
+
"text_format": "latex",
|
| 404 |
+
"bbox": [
|
| 405 |
+
173,
|
| 406 |
+
784,
|
| 407 |
+
487,
|
| 408 |
+
803
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 2
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "where $\\mathcal{D}$ is the training data, $F(\\theta_0)$ denotes the fisher information matrix of the pretrained parameters; $\\mathrm{sort}(\\cdot)_p$ represents the highest value of $p$ percentile in $F(\\theta_0)$ after sorting in ascending order; $M_{CT_D}$ is a mask matrix that is the same-sized as $\\theta_0$ . During fine-tuning, CHILD-TUNING $_D$ only optimizes the selected sub-net in $M_{CT_D}$ :",
|
| 415 |
+
"bbox": [
|
| 416 |
+
112,
|
| 417 |
+
806,
|
| 418 |
+
489,
|
| 419 |
+
920
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 2
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "equation",
|
| 425 |
+
"text": "\n$$\n\\boldsymbol {\\theta} _ {t + 1} = \\boldsymbol {\\theta} _ {t} - \\eta \\frac {\\partial \\mathcal {L} (\\boldsymbol {\\theta} _ {t})}{\\partial \\boldsymbol {\\theta} _ {t}} \\boldsymbol {M} _ {C T _ {D}} \\tag {4}\n$$\n",
|
| 426 |
+
"text_format": "latex",
|
| 427 |
+
"bbox": [
|
| 428 |
+
596,
|
| 429 |
+
367,
|
| 430 |
+
882,
|
| 431 |
+
394
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 2
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "3.2 Bi-Drop",
|
| 438 |
+
"text_level": 1,
|
| 439 |
+
"bbox": [
|
| 440 |
+
507,
|
| 441 |
+
404,
|
| 442 |
+
618,
|
| 443 |
+
420
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 2
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "As introduced in Section 3.1, CHILD-TUNING $_D$ only optimizes an unchanged sub-net during fine-tuning and ignores the update of other parameters, which may degrade the model's performance on downstream tasks. In this section, we offer a detailed introduction to our proposed method, BiDrop, which selects the updated parameters adaptively at each fine-tuning step. Specifically, BiDrop splits each training step into three sub-steps: (1) multiple forward propagations, (2) sub-net selection, and (3) parameter updating. We provide a pseudo-code of Bi-Drop in Algorithm 1.",
|
| 450 |
+
"bbox": [
|
| 451 |
+
505,
|
| 452 |
+
426,
|
| 453 |
+
882,
|
| 454 |
+
620
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 2
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "3.2.1 Multiple Forward Propagations",
|
| 461 |
+
"text_level": 1,
|
| 462 |
+
"bbox": [
|
| 463 |
+
507,
|
| 464 |
+
631,
|
| 465 |
+
818,
|
| 466 |
+
646
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 2
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "Instead of prior FI-based methods that require accumulated gradients to measure the parameter importance, Bi-Drop leverages distinct sub-nets generated by dropout to select the sub-net to be updated. Inspired by Wu et al. (2021), given the training data $\\mathcal{D} = \\{(x_i,y_i)\\}_{i=1}^m$ , at each training step, we feed $x_i$ to the model multiple times in the forward pass with different dropouts, and obtain their gradients correspondingly:",
|
| 473 |
+
"bbox": [
|
| 474 |
+
507,
|
| 475 |
+
651,
|
| 476 |
+
882,
|
| 477 |
+
796
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 2
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "equation",
|
| 483 |
+
"text": "\n$$\n\\mathbf {g} _ {t} ^ {(j)} = \\frac {\\partial \\mathcal {L} \\left(\\boldsymbol {\\theta} _ {t} ^ {(j)}\\right)}{\\partial \\boldsymbol {\\theta} _ {t} ^ {(j)}}, \\quad j = 1, 2, \\dots , k \\tag {5}\n$$\n",
|
| 484 |
+
"text_format": "latex",
|
| 485 |
+
"bbox": [
|
| 486 |
+
584,
|
| 487 |
+
809,
|
| 488 |
+
882,
|
| 489 |
+
841
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 2
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "where $\\pmb{\\theta}_t^{(j)}$ and $\\mathbf{g}_t^{(j)}$ represents the parameters of the $j$ -th forward pass and its corresponding gradients. $k$ denotes the number of forward passes, i.e., the number of distinct sub-nets with different dropouts.",
|
| 496 |
+
"bbox": [
|
| 497 |
+
507,
|
| 498 |
+
851,
|
| 499 |
+
882,
|
| 500 |
+
917
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 2
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "page_number",
|
| 506 |
+
"text": "5216",
|
| 507 |
+
"bbox": [
|
| 508 |
+
480,
|
| 509 |
+
927,
|
| 510 |
+
519,
|
| 511 |
+
940
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 2
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "Algorithm 1 Bi-Drop for Adam Optimizer",
|
| 518 |
+
"text_level": 1,
|
| 519 |
+
"bbox": [
|
| 520 |
+
115,
|
| 521 |
+
83,
|
| 522 |
+
436,
|
| 523 |
+
99
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 3
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "Require: $\\theta_0$ : initial pretrained weights; $\\mathcal{L}(\\pmb{\\theta})$ : stochastic objective function with parameters $\\pmb{\\theta}$ ; $\\beta_{1},\\beta_{2}\\in [0,1)$ : exponential decay rates for the moment estimates; $\\eta$ : learning rate;",
|
| 530 |
+
"bbox": [
|
| 531 |
+
115,
|
| 532 |
+
103,
|
| 533 |
+
485,
|
| 534 |
+
167
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 3
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "list",
|
| 540 |
+
"sub_type": "text",
|
| 541 |
+
"list_items": [
|
| 542 |
+
"1: initialize timestep $t \\gets 0$ , first moment vector $\\mathbf{m}_0 \\gets \\mathbf{0}$ , second moment vector $\\mathbf{v}_0 \\gets \\mathbf{0}$",
|
| 543 |
+
"2: while not converged do",
|
| 544 |
+
"3: $t\\gets t + 1$ //Multipleforwardpropagations",
|
| 545 |
+
"4: $\\mathbf{g}_t^{(j)}\\gets \\frac{\\partial\\mathcal{L}(\\pmb{\\theta}_t^{(j)})}{\\partial\\pmb{\\theta}_t^{(j)}},\\quad j = 1,2,\\dots,k$ // Sub-net selection",
|
| 546 |
+
"5: $M_{t} \\gets \\text{SelectSubNetwork}(\\mathbf{g}_{t})$ // Gradients Updating",
|
| 547 |
+
"6: $\\mathbf{g}_t\\gets \\mathbf{g}_t\\odot M_t$",
|
| 548 |
+
"7: $\\mathbf{m}_t\\gets \\beta_1\\cdot \\mathbf{m}_{t - 1} + (1 - \\beta_1)\\cdot \\mathbf{g}_t$",
|
| 549 |
+
"8: $\\mathbf{v}_t\\gets \\beta_2\\cdot \\mathbf{v}_{t - 1} + (1 - \\beta_2)\\cdot \\mathbf{g}_t^2$",
|
| 550 |
+
"9: $\\hat{\\mathbf{m}}_t\\gets \\mathbf{m}_t / (1 - \\beta_1^t)$",
|
| 551 |
+
"10: $\\hat{\\mathbf{v}}_t\\gets \\mathbf{v}_t / (1 - \\beta_2^t)$ // Update weights",
|
| 552 |
+
"11: $\\mathbf{w}_t\\gets \\mathbf{w}_{t - 1} - \\eta \\cdot \\hat{\\pmb{m}}_t / (\\sqrt{\\hat{\\pmb{v}}_t} +\\epsilon)$",
|
| 553 |
+
"12: end while",
|
| 554 |
+
"13: return $\\mathbf{w}_t$"
|
| 555 |
+
],
|
| 556 |
+
"bbox": [
|
| 557 |
+
119,
|
| 558 |
+
168,
|
| 559 |
+
485,
|
| 560 |
+
466
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 3
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "3.2.2 Sub-net Selection",
|
| 567 |
+
"text_level": 1,
|
| 568 |
+
"bbox": [
|
| 569 |
+
114,
|
| 570 |
+
495,
|
| 571 |
+
310,
|
| 572 |
+
508
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 3
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "In this subsection, we introduce our sub-net selection strategy, which estimates the relevant importance of parameters based on the gradients of distinct sub-nets generated by different dropouts. Concretely, our strategy is based on two estimation factors: the perturbation factor and the scaling factor.",
|
| 579 |
+
"bbox": [
|
| 580 |
+
112,
|
| 581 |
+
514,
|
| 582 |
+
489,
|
| 583 |
+
626
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 3
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "Perturbation Factor We propose the perturbation factor, which estimates the importance of parameters according to their stability with different dropouts in the forward pass. We point out that various sub-nets generated by dropout can be viewed as adversarial perturbations to the vanilla model. The perturbation factor is formalized as follows:",
|
| 590 |
+
"bbox": [
|
| 591 |
+
112,
|
| 592 |
+
638,
|
| 593 |
+
489,
|
| 594 |
+
750
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 3
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "equation",
|
| 600 |
+
"text": "\n$$\n\\boldsymbol {\\mu} _ {t} = \\frac {1}{k} \\sum_ {j = 1} ^ {k} \\mathbf {g} _ {t} ^ {(j)} \\tag {6}\n$$\n",
|
| 601 |
+
"text_format": "latex",
|
| 602 |
+
"bbox": [
|
| 603 |
+
245,
|
| 604 |
+
764,
|
| 605 |
+
487,
|
| 606 |
+
800
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 3
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "equation",
|
| 612 |
+
"text": "\n$$\n\\mathbf {F} _ {\\text {p e r}} \\left(\\boldsymbol {\\theta} _ {t}\\right) = \\left| \\boldsymbol {\\mu} _ {t} \\right| \\cdot \\left[ \\sum_ {j} \\left(\\mathbf {g} _ {t} ^ {(j)} - \\boldsymbol {\\mu} _ {t}\\right) ^ {2} \\right] ^ {- \\frac {1}{2}} \\tag {7}\n$$\n",
|
| 613 |
+
"text_format": "latex",
|
| 614 |
+
"bbox": [
|
| 615 |
+
166,
|
| 616 |
+
808,
|
| 617 |
+
487,
|
| 618 |
+
848
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 3
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "where $\\mu_t$ is the average gradients of parameters. $\\mathbf{F}_{\\mathrm{per}}$ measures the stability of parameters by both considering the mean and variance of gradients with adversarial perturbations, i.e. sub-nets with",
|
| 625 |
+
"bbox": [
|
| 626 |
+
112,
|
| 627 |
+
854,
|
| 628 |
+
487,
|
| 629 |
+
917
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 3
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "consistently larger gradients and smaller variances are more favorable by this factor.",
|
| 636 |
+
"bbox": [
|
| 637 |
+
507,
|
| 638 |
+
84,
|
| 639 |
+
880,
|
| 640 |
+
115
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 3
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "Scaling Factor We further propose the scaling factor as a regularization term. This factor measures the ratio of the average parameter gradients to the original parameters. Parameters whose gradient scale is much smaller than the original parameters will not be updated, which is similar in spirit to gradient clipping.",
|
| 647 |
+
"bbox": [
|
| 648 |
+
507,
|
| 649 |
+
130,
|
| 650 |
+
882,
|
| 651 |
+
243
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 3
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "equation",
|
| 657 |
+
"text": "\n$$\n\\mathbf {F} _ {\\mathrm {s c a}} \\left(\\boldsymbol {\\theta} _ {t}\\right) = \\left| \\boldsymbol {\\mu} _ {t} \\right| \\cdot \\left| \\boldsymbol {\\theta} _ {t} \\right| ^ {- 1} \\tag {8}\n$$\n",
|
| 658 |
+
"text_format": "latex",
|
| 659 |
+
"bbox": [
|
| 660 |
+
605,
|
| 661 |
+
263,
|
| 662 |
+
882,
|
| 663 |
+
282
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 3
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "3.2.3 Parameter Updating",
|
| 670 |
+
"text_level": 1,
|
| 671 |
+
"bbox": [
|
| 672 |
+
507,
|
| 673 |
+
297,
|
| 674 |
+
732,
|
| 675 |
+
313
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 3
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "Following prior work (Xu et al., 2021; Zhang et al., 2022), we derive a step-wise mask matrix $M_{t}$ filtered by selecting the highest value of $p$ percentile measured by the aforementioned two estimation factors.",
|
| 682 |
+
"bbox": [
|
| 683 |
+
507,
|
| 684 |
+
319,
|
| 685 |
+
882,
|
| 686 |
+
397
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 3
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "equation",
|
| 692 |
+
"text": "\n$$\n\\mathbf {F} _ {\\text {f i n a l}} \\left(\\boldsymbol {\\theta} _ {t}\\right) = \\mathbf {F} _ {\\text {p e r}} \\left(\\boldsymbol {\\theta} _ {t}\\right) \\cdot \\mathbf {F} _ {\\text {s c a}} \\left(\\boldsymbol {\\theta} _ {t}\\right) \\tag {9}\n$$\n",
|
| 693 |
+
"text_format": "latex",
|
| 694 |
+
"bbox": [
|
| 695 |
+
589,
|
| 696 |
+
419,
|
| 697 |
+
882,
|
| 698 |
+
434
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 3
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "equation",
|
| 704 |
+
"text": "\n$$\n\\boldsymbol {M} _ {t} = \\mathbf {F} _ {\\text {f i n a l}} (\\boldsymbol {\\theta} _ {t}) > \\operatorname {s o r t} \\left(\\mathbf {F} _ {\\text {f i n a l}} (\\boldsymbol {\\theta} _ {t}))\\right) _ {p} \\tag {10}\n$$\n",
|
| 705 |
+
"text_format": "latex",
|
| 706 |
+
"bbox": [
|
| 707 |
+
571,
|
| 708 |
+
449,
|
| 709 |
+
880,
|
| 710 |
+
464
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 3
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "Then, we utilize $M_t$ to update the sub-net which consists of important parameters at each training step. We denote the formulation by simply replacing Eq.4 with our step-wise mask matrix $M_t$ :",
|
| 717 |
+
"bbox": [
|
| 718 |
+
507,
|
| 719 |
+
479,
|
| 720 |
+
882,
|
| 721 |
+
542
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 3
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "equation",
|
| 727 |
+
"text": "\n$$\n\\boldsymbol {\\theta} _ {t + 1} = \\boldsymbol {\\theta} _ {t} - \\eta \\boldsymbol {\\mu} _ {t} \\cdot \\boldsymbol {M} _ {t} \\tag {11}\n$$\n",
|
| 728 |
+
"text_format": "latex",
|
| 729 |
+
"bbox": [
|
| 730 |
+
620,
|
| 731 |
+
563,
|
| 732 |
+
880,
|
| 733 |
+
577
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 3
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "4 Experiments",
|
| 740 |
+
"text_level": 1,
|
| 741 |
+
"bbox": [
|
| 742 |
+
507,
|
| 743 |
+
608,
|
| 744 |
+
653,
|
| 745 |
+
624
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 3
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "4.1 Datasets",
|
| 752 |
+
"text_level": 1,
|
| 753 |
+
"bbox": [
|
| 754 |
+
507,
|
| 755 |
+
637,
|
| 756 |
+
621,
|
| 757 |
+
651
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 3
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "GLUE Benchmark Following previous work (Lee et al., 2020; Dodge et al., 2020; Zhang et al., 2021), we conduct extensive experiments on the GLUE benchmark, including natural language inference (RTE, QNLI, MNLI), paraphrase and similarity (MRPC, STS-B, QQP), linguistic acceptability (CoLA), and sentiment classification (SST-2). We include the detailed statistics and metrics of the datasets in Appendix A. Since the test results are only accessible online with limited submission times, we follow prior studies (Phang et al., 2018; Lee et al., 2020; Aghajanyan et al., 2021; Dodge et al., 2020; Xu et al., 2021; Zhang et al., 2022) that fine-tune the pretrained model on the training set and report the results on the development sets using the last checkpoint.",
|
| 764 |
+
"bbox": [
|
| 765 |
+
505,
|
| 766 |
+
661,
|
| 767 |
+
882,
|
| 768 |
+
917
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 3
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "page_number",
|
| 774 |
+
"text": "5217",
|
| 775 |
+
"bbox": [
|
| 776 |
+
480,
|
| 777 |
+
927,
|
| 778 |
+
519,
|
| 779 |
+
940
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 3
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "table",
|
| 785 |
+
"img_path": "images/b34c5bd45f7826f384c861923edc9849f777fe954f59f590f25d6105f0254a6d.jpg",
|
| 786 |
+
"table_caption": [],
|
| 787 |
+
"table_footnote": [],
|
| 788 |
+
"table_body": "<table><tr><td>Method</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td><td>Δ</td></tr><tr><td>Vanilla</td><td>63.76(65.55)</td><td>90.41(91.91)</td><td>70.97(74.01)</td><td>89.70(90.58)</td><td>78.71(80.51)</td><td>0.00</td></tr><tr><td>Weight Decay</td><td>63.70(65.53)</td><td>90.89(91.98)</td><td>72.24(74.37)</td><td>89.66(90.22)</td><td>79.12(80.53)</td><td>+0.41(0.02)</td></tr><tr><td>Top-K Tuning</td><td>63.89(65.37)</td><td>91.09(92.05)</td><td>72.84(75.17)</td><td>89.64(90.83)</td><td>79.37(80.86)</td><td>+0.66(0.35)</td></tr><tr><td>Mixout</td><td>64.05(65.41)</td><td>91.19(92.05)</td><td>72.32(75.52)</td><td>89.89(90.42)</td><td>79.36(80.85)</td><td>+0.65(0.34)</td></tr><tr><td>RecAdam</td><td>64.09(65.35)</td><td>90.88(91.89)</td><td>72.48(74.30)</td><td>89.67(90.62)</td><td>79.28(80.54)</td><td>+0.57(0.03)</td></tr><tr><td>ChildTuningD</td><td>64.25(65.81)</td><td>91.19(92.20)</td><td>72.35(76.53)</td><td>90.18(90.88)</td><td>79.49(81.36)</td><td>+0.78(0.85)</td></tr><tr><td>R3F</td><td>64.88(66.33)</td><td>91.55(92.28)</td><td>72.42(74.37)</td><td>89.70(90.58)*</td><td>79.64(80.89)</td><td>+0.93(0.38)</td></tr><tr><td>DPSmix</td><td>64.40(66.21)</td><td>91.05(92.17)</td><td>72.88(75.81)</td><td>90.47(91.02)</td><td>79.70(81.30)</td><td>+0.99(0.79)</td></tr><tr><td>R-Drop</td><td>64.83(66.79)</td><td>91.76(92.17)</td><td>73.12(76.53)</td><td>90.14(90.42)</td><td>79.96(81.48)</td><td>+1.25(0.97)</td></tr><tr><td>Bi-Drop</td><td>64.94(66.69)</td><td>91.79(92.68)</td><td>73.79(77.61)</td><td>90.59(91.04)</td><td>80.26(82.01)</td><td>+1.55(1.50)</td></tr></table>",
|
| 789 |
+
"bbox": [
|
| 790 |
+
117,
|
| 791 |
+
80,
|
| 792 |
+
880,
|
| 793 |
+
243
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 4
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "Table 2: Comparison between Bi-Drop with prior fine-tuning methods. We report the mean (max) results of 10 random seeds. The best results are bold. Note that since R3F is not applicable to regression, the result on STS-B (marked with *) remains the same as vanilla. Bi-Drop achieves the best performance compared with other methods.",
|
| 800 |
+
"bbox": [
|
| 801 |
+
112,
|
| 802 |
+
252,
|
| 803 |
+
882,
|
| 804 |
+
296
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 4
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "NLI Datasets We also evaluate the generalization ability of Bi-Drop on several Natural Language Inference (NLI) tasks, including SNLI (Bowman et al., 2015), MNLI (Williams et al., 2018), MNLI-M (Williams et al., 2018) and SICK (Marelli et al., 2014). We report all results by Accuracy on the development sets consistent with GLUE.",
|
| 811 |
+
"bbox": [
|
| 812 |
+
112,
|
| 813 |
+
321,
|
| 814 |
+
487,
|
| 815 |
+
434
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 4
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "4.2 Baselines",
|
| 822 |
+
"text_level": 1,
|
| 823 |
+
"bbox": [
|
| 824 |
+
112,
|
| 825 |
+
461,
|
| 826 |
+
233,
|
| 827 |
+
474
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 4
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "Besides the vanilla fine-tuning method, we mainly compare Bi-Drop with the following baselines:",
|
| 834 |
+
"bbox": [
|
| 835 |
+
112,
|
| 836 |
+
491,
|
| 837 |
+
487,
|
| 838 |
+
523
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 4
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Mixout (Lee et al., 2020) is a fine-tuning technique that stochastically replaces the parameters with their pretrained weight based on the Bernoulli distribution. R3F (Aghajanyan et al., 2021) is a fine-tuning strategy motivated by trust-region theory, which injects noise sampled from either a normal or uniform distribution into the pre-trained representations. R-Drop (Wu et al., 2021) minimizes the bidirectional KL-divergence to force the output distributions of two sub-nets sampled by dropout to be consistent with each other. Child-Tuning $_D$ (Xu et al., 2021) selects the task-relevant parameters as the sub-net based on the Fisher information and only updates the sub-net during fine-tuning. DPS (Zhang et al., 2022) is a dynamic sub-net optimization algorithm based on Child-Tuning $_D$ . It estimates Fisher information with multiple minibatches of data and selects the sub-net adaptively during fine-tuning.",
|
| 845 |
+
"bbox": [
|
| 846 |
+
112,
|
| 847 |
+
527,
|
| 848 |
+
489,
|
| 849 |
+
834
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 4
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "For reference, we also show other prior finetuning techniques in our main experimental results, such as Weight Decay (DauméIII, 2007), Top-K Tuning (Houlsby et al., 2019) and RecAdam (Chen et al., 2020).",
|
| 856 |
+
"bbox": [
|
| 857 |
+
112,
|
| 858 |
+
839,
|
| 859 |
+
489,
|
| 860 |
+
917
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 4
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "4.3 Experiments Setup",
|
| 867 |
+
"text_level": 1,
|
| 868 |
+
"bbox": [
|
| 869 |
+
507,
|
| 870 |
+
321,
|
| 871 |
+
705,
|
| 872 |
+
337
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 4
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "We conduct our experiments based on the Hugging-Face transformers library ${}^{2}$ (Wolf et al., 2020) and follow the default hyper-parameters and settings unless noted otherwise. We report the averaged results over 10 random seeds. Other detailed experimental setups are presented in Appendix B.",
|
| 879 |
+
"bbox": [
|
| 880 |
+
507,
|
| 881 |
+
341,
|
| 882 |
+
884,
|
| 883 |
+
439
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 4
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "4.4 Results on GLUE",
|
| 890 |
+
"text_level": 1,
|
| 891 |
+
"bbox": [
|
| 892 |
+
507,
|
| 893 |
+
449,
|
| 894 |
+
692,
|
| 895 |
+
463
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 4
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "Comparison with Prior Methods We compare Bi-Drop with various prior fine-tuning methods based on $\\mathrm{BERT}_{\\mathrm{large}}$ and report the mean (and max) scores on GLUE benchmark in Table 2, following Lee et al. (2020) and Xu et al. (2021). The results indicate that Bi-Drop yields the best average performance across all tasks, showing its effectiveness. Moreover, the average of the maximum scores attained by Bi-Drop is superior to that of other methods, providing further evidence of the effectiveness of Bi-Drop. We also conducted the same experiment on RobertaLarge, and the details can be found in Appendix E.",
|
| 902 |
+
"bbox": [
|
| 903 |
+
507,
|
| 904 |
+
469,
|
| 905 |
+
882,
|
| 906 |
+
678
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 4
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "Comparison with Vanilla Fine-tuning We show the experimental results of six widely used large-scale PLMs on the GLUE Benchmark in Table 3. The results show that Bi-Drop outperforms vanilla fine-tuning consistently and significantly across all tasks performed on various PLMs. For instance, Bi-Drop achieves an improvement of up to 1.58 average score on $\\mathrm{BERT}_{\\mathrm{base}}$ and 1.35 average score on Robertabase. The results highlight the universal effectiveness of Bi-Drop in enhancing the fine-tuning performance of PLMs. Additionally, because BiDrop forward-propagate twice, we present an additional study of the baseline with doubled batch",
|
| 913 |
+
"bbox": [
|
| 914 |
+
507,
|
| 915 |
+
687,
|
| 916 |
+
884,
|
| 917 |
+
896
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 4
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "page_footnote",
|
| 923 |
+
"text": "2https://github.com/huggingface/transformers",
|
| 924 |
+
"bbox": [
|
| 925 |
+
529,
|
| 926 |
+
903,
|
| 927 |
+
865,
|
| 928 |
+
917
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 4
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "page_number",
|
| 934 |
+
"text": "5218",
|
| 935 |
+
"bbox": [
|
| 936 |
+
480,
|
| 937 |
+
927,
|
| 938 |
+
519,
|
| 939 |
+
940
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 4
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "table",
|
| 945 |
+
"img_path": "images/f614f9a977bb1886a9601dc22d8de2ea389288c509cea739e63c65784cddecee.jpg",
|
| 946 |
+
"table_caption": [],
|
| 947 |
+
"table_footnote": [],
|
| 948 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">BERTbase</td><td colspan=\"5\">Robertabase</td></tr><tr><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td></tr><tr><td>Vanilla</td><td>57.67</td><td>90.38</td><td>69.57</td><td>89.35</td><td>76.74</td><td>59.45</td><td>91.94</td><td>76.28</td><td>90.60</td><td>79.57</td></tr><tr><td>Bi-Drop</td><td>60.76</td><td>91.01</td><td>71.73</td><td>89.78</td><td>78.32</td><td>61.28</td><td>92.40</td><td>78.99</td><td>91.00</td><td>80.92</td></tr><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">BERTlarge</td><td colspan=\"5\">Robertalarge</td></tr><tr><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td></tr><tr><td>Vanilla</td><td>63.76</td><td>90.41</td><td>70.97</td><td>89.70</td><td>78.71</td><td>66.01</td><td>92.56</td><td>84.51</td><td>92.05</td><td>83.78</td></tr><tr><td>Bi-Drop</td><td>64.94</td><td>91.79</td><td>73.79</td><td>90.50</td><td>80.26</td><td>68.03</td><td>92.95</td><td>86.10</td><td>92.36</td><td>84.86</td></tr><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">DeBERTlarge</td><td colspan=\"5\">ELECTRALarge</td></tr><tr><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td></tr><tr><td>Vanilla</td><td>65.18</td><td>92.32</td><td>85.60</td><td>91.64</td><td>83.69</td><td>70.02</td><td>92.94</td><td>88.37</td><td>91.91</td><td>85.81</td></tr><tr><td>Bi-Drop</td><td>66.91</td><td>92.88</td><td>86.72</td><td>92.33</td><td>84.71</td><td>71.29</td><td>93.68</td><td>88.98</td><td>92.61</td><td>86.64</td></tr></table>",
|
| 949 |
+
"bbox": [
|
| 950 |
+
171,
|
| 951 |
+
80,
|
| 952 |
+
826,
|
| 953 |
+
291
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 5
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "table",
|
| 959 |
+
"img_path": "images/7ce4c84a7fe7557b2a69be0984a06c65e630ab4c4d32a009551e786d69575da2.jpg",
|
| 960 |
+
"table_caption": [
|
| 961 |
+
"Table 3: Comparison between Bi-Drop and vanilla fine-tuning applied to six widely-used large-scale PLMs. We report the mean results of 10 random seeds. Average scores on all tasks are underlined. The best results are bold. It shows that Bi-Drop yields consistent improvements across all tasks among different PLMs."
|
| 962 |
+
],
|
| 963 |
+
"table_footnote": [],
|
| 964 |
+
"table_body": "<table><tr><td rowspan=\"2\">Datasets</td><td colspan=\"5\">SNLI</td><td colspan=\"5\">MNLI</td></tr><tr><td>Vanilla</td><td>CTD</td><td>R-Drop</td><td>DPS</td><td>Bi-Drop</td><td>Vanilla</td><td>CTD</td><td>R-Drop</td><td>DPS</td><td>Bi-Drop</td></tr><tr><td>MNLI</td><td>64.53</td><td>64.16</td><td>64.51</td><td>64.70</td><td>66.88</td><td>75.78</td><td>76.27</td><td>76.85</td><td>75.48</td><td>76.63</td></tr><tr><td>MNLI-m</td><td>66.11</td><td>66.30</td><td>66.59</td><td>67.29</td><td>68.49</td><td>77.31</td><td>77.30</td><td>77.93</td><td>77.45</td><td>77.98</td></tr><tr><td>SNLI</td><td>83.37</td><td>83.53</td><td>83.59</td><td>82.95</td><td>83.62</td><td>70.87</td><td>70.76</td><td>71.48</td><td>71.56</td><td>71.63</td></tr><tr><td>SICK</td><td>52.59</td><td>53.73</td><td>53.59</td><td>55.89</td><td>54.28</td><td>53.27</td><td>55.35</td><td>54.21</td><td>54.81</td><td>54.93</td></tr><tr><td>Avg</td><td>61.08</td><td>61.40</td><td>61.56</td><td>62.63</td><td>63.22</td><td>67.15</td><td>67.80</td><td>67.87</td><td>67.94</td><td>68.18</td></tr><tr><td>Δavg</td><td>-</td><td>↑0.32</td><td>↑0.48</td><td>↑1.55</td><td>↑2.14</td><td>-</td><td>↑0.65</td><td>↑0.72</td><td>↑0.79</td><td>↑1.03</td></tr></table>",
|
| 965 |
+
"bbox": [
|
| 966 |
+
142,
|
| 967 |
+
356,
|
| 968 |
+
857,
|
| 969 |
+
483
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 5
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "Table 4: Evaluation for out-of-domain generalization. The models are trained on MNLI/SNLI and tested on out-of-domain data. Average scores are computed excluding in-domain results (underlined). The best results are bold. Bi-Drop can better maintain the out-of-domain generalization ability of the model.",
|
| 976 |
+
"bbox": [
|
| 977 |
+
112,
|
| 978 |
+
492,
|
| 979 |
+
882,
|
| 980 |
+
536
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 5
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "size in Appendix D.",
|
| 987 |
+
"bbox": [
|
| 988 |
+
112,
|
| 989 |
+
560,
|
| 990 |
+
265,
|
| 991 |
+
576
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 5
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "4.5 Out-of-Domain Generalization",
|
| 998 |
+
"text_level": 1,
|
| 999 |
+
"bbox": [
|
| 1000 |
+
112,
|
| 1001 |
+
590,
|
| 1002 |
+
401,
|
| 1003 |
+
605
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 5
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "We further evaluate the generalization ability of Bi-Drop on a widely used experimental setting in prior research (Aghajanyan et al., 2021; Xu et al., 2021; Zhang et al., 2022): out-of-domain generalization. In detail, we finetune $\\mathrm{BERT}_{\\text {large }}$ with different strategies on $5k$ subsampled MNLI and SNLI datasets respectively, and directly evaluate the fine-tuned model on other NLI datasets. The experimental results in Table 4 illustrate that Bi-Drop outperforms vanilla fine-tuning and prior methods across various datasets. Specifically, compared with other fine-tuning methods on SNLI, Bi-Drop demonstrates consistent and substantial improvement, with an average score increase of 2.14. In particular, Bi-Drop achieves an improvement of 2.35 on MNLI task and 2.38 on MNLI-m task. For models trained on MNLI, Bi-Drop also consistently outperforms prior methods, with an average improvement of 1.03 score. The experimental results",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
112,
|
| 1012 |
+
613,
|
| 1013 |
+
489,
|
| 1014 |
+
919
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 5
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "indicate that Bi-Drop encourages the model to learn deeper and more generic semantic features and alleviate superficial biases of specific tasks, which improves the model's generalization ability.",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
507,
|
| 1023 |
+
560,
|
| 1024 |
+
884,
|
| 1025 |
+
625
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 5
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "4.6 Task Generalization",
|
| 1032 |
+
"text_level": 1,
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
507,
|
| 1035 |
+
639,
|
| 1036 |
+
714,
|
| 1037 |
+
653
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 5
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "We also evaluate the generalization ability of finetuned models following the experimental setting of Aghajanyan et al. (2021) and Xu et al. (2021), which freezes the representations of the model finetuned on one task and only trains the linear classifier on the other task. Specifically, we finetune $\\mathrm{BERT}_{\\mathrm{large}}$ among one task selected among MRPC, CoLA, and RTE and then transfer the model to the other two tasks. Figure 3 shows that Bi-Drop consistently outperforms vanilla fine-tuning when the fine-tuned model is transferred to other tasks. In particular, Bi-Drop improves by 3.50 and 3.28, when models trained on MRPC and RTE respectively are evaluated on CoLA. The results further verify the conclusion that Bi-Drop helps models learn more generalizable representations, com",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
505,
|
| 1046 |
+
661,
|
| 1047 |
+
885,
|
| 1048 |
+
919
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 5
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "page_number",
|
| 1054 |
+
"text": "5219",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
480,
|
| 1057 |
+
928,
|
| 1058 |
+
519,
|
| 1059 |
+
940
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 5
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "image",
|
| 1065 |
+
"img_path": "images/dd33905fdd777bcacbdab7c60d16e4a908b144638f0b57131777cffc35dbd799.jpg",
|
| 1066 |
+
"image_caption": [
|
| 1067 |
+
"Figure 3: Evaluation for task generalization. The model is fine-tuned on a specific task among MRPC, CoLA, RTE and transferred to the other two tasks. Bi-Drop can be more generalizable."
|
| 1068 |
+
],
|
| 1069 |
+
"image_footnote": [],
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
149,
|
| 1072 |
+
80,
|
| 1073 |
+
379,
|
| 1074 |
+
231
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 6
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "image",
|
| 1080 |
+
"img_path": "images/67de11bf44d994a0e46c84841d3b3e43c21ced99fb95e20e9e119647ef9fc504.jpg",
|
| 1081 |
+
"image_caption": [],
|
| 1082 |
+
"image_footnote": [],
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
383,
|
| 1085 |
+
80,
|
| 1086 |
+
613,
|
| 1087 |
+
233
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 6
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "image",
|
| 1093 |
+
"img_path": "images/58307480d36b35eb933e0a80ecbfa039246e32f1311c3bac9a9f0198c9c876a6.jpg",
|
| 1094 |
+
"image_caption": [],
|
| 1095 |
+
"image_footnote": [],
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
618,
|
| 1098 |
+
80,
|
| 1099 |
+
845,
|
| 1100 |
+
231
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 6
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "image",
|
| 1106 |
+
"img_path": "images/7d4e647ee224e3cc8affbbd6d424fa43b711baca39a5eeaed099c3258d9cea29.jpg",
|
| 1107 |
+
"image_caption": [
|
| 1108 |
+
"Figure 4: Results of Bi-Drop across four experimental settings. Each method includes a violin plot for 10 random runs. Compared with other methods, the shorter and thicker violin plot of Bi-Drop proves its better stability."
|
| 1109 |
+
],
|
| 1110 |
+
"image_footnote": [],
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
114,
|
| 1113 |
+
282,
|
| 1114 |
+
884,
|
| 1115 |
+
430
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 6
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "pared with the vanilla fine-tuning approach.",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
112,
|
| 1124 |
+
492,
|
| 1125 |
+
440,
|
| 1126 |
+
508
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 6
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "5 Analysis",
|
| 1133 |
+
"text_level": 1,
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
112,
|
| 1136 |
+
521,
|
| 1137 |
+
223,
|
| 1138 |
+
537
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 6
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "5.1 Stability to Random Seeds",
|
| 1145 |
+
"text_level": 1,
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
112,
|
| 1148 |
+
548,
|
| 1149 |
+
366,
|
| 1150 |
+
564
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 6
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "We further investigate the stability properties of fine-tuned models. Figure 4 shows the output distributions of models with four experimental settings and across 10 random seeds. The results demonstrate that Bi-Drop outperforms other strategies in terms of average performance, and also exhibits greater stability by achieving more consistent results across 10 random seeds with lower variance.",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
112,
|
| 1159 |
+
569,
|
| 1160 |
+
489,
|
| 1161 |
+
697
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 6
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "5.2 Robustness Analysis",
|
| 1168 |
+
"text_level": 1,
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
112,
|
| 1171 |
+
709,
|
| 1172 |
+
319,
|
| 1173 |
+
726
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 6
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "Recent research has brought to light that the vanilla fine-tuning approach is prone to deception and vulnerability in many aspects. In this study, we assess the robustness of Bi-Drop by designing evaluation tasks that focus on two common scenarios, aiming to examine its ability to withstand various forms of perturbations while maintaining its robustness.",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
112,
|
| 1182 |
+
731,
|
| 1183 |
+
487,
|
| 1184 |
+
844
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 6
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Robustness to Label Noise Due to the inherent limitations of human annotation, widely-used large-scale datasets inevitably contain a certain amount of incorrect labels (Vasudevan et al., 2022). To",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
112,
|
| 1193 |
+
854,
|
| 1194 |
+
489,
|
| 1195 |
+
917
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 6
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "investigate the robustness of Bi-Drop to label noise, we conduct simple simulation experiments on RTE, MRPC, and CoLA by randomly corrupting a predetermined fraction of labels with erroneous values. We evaluate the robustness of various fine-tuning methods trained on noisy data. The results shown in the left panel of Table 5 demonstrate that Bi-Drop achieves consistent superiority to other fine-tuning methods on noisy data. Furthermore, we conducted a comparison of model performance degradation across varying noise ratios. We calculated the degradation and presented it in brackets, as compared with Table 2. It indicates that Bi-Drop has the smallest performance drop compared with other fine-tuning methods. These results collectively demonstrate that Bi-Drop is more robust to label noise than prior methods.",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
507,
|
| 1204 |
+
492,
|
| 1205 |
+
884,
|
| 1206 |
+
765
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 6
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "Robustness to Data Imbalance Minority class refers to the class that owns insufficient instances in the training set. In this section, we strive to explore the robustness of diverse fine-tuning approaches for the minority class by carrying out experiments on synthetic RTE, MRPC, and CoLA datasets. The experimental results are illustrated in the right panel of Table 5, which shows that Bi-Drop significantly outperforms other fine-tuning methods. Bi-Drop",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
507,
|
| 1215 |
+
774,
|
| 1216 |
+
882,
|
| 1217 |
+
917
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 6
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "page_number",
|
| 1223 |
+
"text": "5220",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
480,
|
| 1226 |
+
927,
|
| 1227 |
+
519,
|
| 1228 |
+
940
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 6
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "table",
|
| 1234 |
+
"img_path": "images/986a2d74989499b997d60091fb54cbe3b90fd508b144a9e952e71384b06ad2d8.jpg",
|
| 1235 |
+
"table_caption": [],
|
| 1236 |
+
"table_footnote": [],
|
| 1237 |
+
"table_body": "<table><tr><td>Method</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>Avg</td></tr><tr><td colspan=\"5\">Noise Ratio: 5%</td></tr><tr><td>vanilla</td><td>61.39</td><td>90.24</td><td>69.78</td><td>73.80 (↓ 1.25)</td></tr><tr><td>CTD</td><td>61.66</td><td>90.39</td><td>71.47</td><td>74.51 (↓ 1.77)</td></tr><tr><td>R-Drop</td><td>62.33</td><td>91.21</td><td>73.16</td><td>75.57 (↓ 1.00)</td></tr><tr><td>Bi-Drop</td><td>62.29</td><td>91.85</td><td>73.57</td><td>75.90 (↓ 0.94)</td></tr><tr><td colspan=\"5\">Noise Ratio: 10%</td></tr><tr><td>vanilla</td><td>59.35</td><td>89.78</td><td>68.51</td><td>72.55 (↓ 2.50)</td></tr><tr><td>CTD</td><td>61.56</td><td>89.88</td><td>69.78</td><td>73.72 (↓ 2.56)</td></tr><tr><td>R-Drop</td><td>61.12</td><td>91.10</td><td>71.36</td><td>74.53 (↓ 2.04)</td></tr><tr><td>Bi-Drop</td><td>61.65</td><td>91.12</td><td>71.96</td><td>74.91 (↓ 1.93)</td></tr><tr><td colspan=\"5\">Noise Ratio: 15%</td></tr><tr><td>vanilla</td><td>58.96</td><td>88.10</td><td>68.14</td><td>71.73 (↓ 3.32)</td></tr><tr><td>CTD</td><td>59.99</td><td>88.10</td><td>68.88</td><td>72.32 (↓ 3.96)</td></tr><tr><td>R-Drop</td><td>60.80</td><td>89.26</td><td>69.55</td><td>73.20 (↓ 3.36)</td></tr><tr><td>Bi-Drop</td><td>60.08</td><td>89.73</td><td>70.88</td><td>73.56 (↓ 3.28)</td></tr></table>",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
151,
|
| 1240 |
+
80,
|
| 1241 |
+
494,
|
| 1242 |
+
321
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 7
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "table",
|
| 1248 |
+
"img_path": "images/ca185687139fd7d2deb994e7f08cdb7d51c9ce93e7afee2a287fc276602b5644.jpg",
|
| 1249 |
+
"table_caption": [],
|
| 1250 |
+
"table_footnote": [],
|
| 1251 |
+
"table_body": "<table><tr><td>Method</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>Avg</td></tr><tr><td colspan=\"5\">Reduction Ratio: 70%</td></tr><tr><td>Vanilla</td><td>81.12</td><td>78.88</td><td>27.71</td><td>62.57 ( - )</td></tr><tr><td>CTD</td><td>83.10</td><td>79.50</td><td>28.14</td><td>63.58 (↑ 1.01)</td></tr><tr><td>R-Drop</td><td>81.37</td><td>76.46</td><td>32.61</td><td>63.48 (↑ 0.91)</td></tr><tr><td>Bi-Drop</td><td>81.88</td><td>80.17</td><td>37.66</td><td>66.57 (↑ 4.00)</td></tr><tr><td colspan=\"5\">Reduction Ratio: 60%</td></tr><tr><td>Vanilla</td><td>83.30</td><td>83.98</td><td>39.32</td><td>68.87 ( - )</td></tr><tr><td>CTD</td><td>85.78</td><td>84.55</td><td>37.65</td><td>69.33 (↑ 0.46)</td></tr><tr><td>R-Drop</td><td>83.55</td><td>85.07</td><td>43.51</td><td>70.71 (↑ 1.84)</td></tr><tr><td>Bi-Drop</td><td>84.33</td><td>85.35</td><td>49.62</td><td>73.10 (↑ 4.23)</td></tr><tr><td colspan=\"5\">Reduction Ratio: 50%</td></tr><tr><td>Vanilla</td><td>86.07</td><td>87.40</td><td>45.27</td><td>72.91 ( - )</td></tr><tr><td>CTD</td><td>87.98</td><td>87.64</td><td>50.78</td><td>75.47 (↑ 2.56)</td></tr><tr><td>R-Drop</td><td>86.04</td><td>88.89</td><td>55.73</td><td>76.89 (↑ 3.98)</td></tr><tr><td>Bi-Drop</td><td>86.73</td><td>89.61</td><td>58.27</td><td>78.20 (↑ 5.29)</td></tr></table>",
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
502,
|
| 1254 |
+
80,
|
| 1255 |
+
847,
|
| 1256 |
+
322
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 7
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "table",
|
| 1262 |
+
"img_path": "images/b8e212e030cd774d55a1ccfe6295eae6956ac88a80f7fb71c04bbe6a7ea340a3.jpg",
|
| 1263 |
+
"table_caption": [
|
| 1264 |
+
"Table 5: Left: Robustness to label noise. The noise ratio is the percentage of training instances whose labels are transferred to incorrect labels. Right: Robustness to data imbalance. We reduce the number of instances labeled 1 by $70\\% /60\\% /50\\%$ in the training set and test the accuracy of instances labeled 1 (as the minority class) in the validation set. Bi-Drop can maintain more robust representations compared with other fine-tuning methods."
|
| 1265 |
+
],
|
| 1266 |
+
"table_footnote": [],
|
| 1267 |
+
"table_body": "<table><tr><td rowspan=\"2\">Datasets</td><td colspan=\"4\">0.5K</td><td colspan=\"4\">1K</td></tr><tr><td>Vanilla</td><td>CTD</td><td>DPS</td><td>Bi-Drop</td><td>Vanilla</td><td>CTD</td><td>DPS</td><td>Bi-Drop</td></tr><tr><td>CoLA</td><td>36.23</td><td>40.77</td><td>41.87</td><td>44.78</td><td>48.92</td><td>51.63</td><td>52.89</td><td>54.76</td></tr><tr><td>MRPC</td><td>81.33</td><td>81.95</td><td>83.29</td><td>83.18</td><td>83.90</td><td>84.62</td><td>85.03</td><td>85.44</td></tr><tr><td>RTE</td><td>58.87</td><td>59.27</td><td>59.16</td><td>60.04</td><td>62.17</td><td>63.85</td><td>64.92</td><td>66.96</td></tr><tr><td>STS-B</td><td>82.60</td><td>82.79</td><td>83.41</td><td>85.19</td><td>85.91</td><td>86.92</td><td>87.26</td><td>87.53</td></tr><tr><td>SST-2</td><td>86.11</td><td>88.19</td><td>89.08</td><td>89.38</td><td>89.95</td><td>89.88</td><td>90.44</td><td>90.41</td></tr><tr><td>QNLI</td><td>78.76</td><td>79.32</td><td>79.27</td><td>80.48</td><td>82.49</td><td>83.65</td><td>83.86</td><td>84.35</td></tr><tr><td>QQP</td><td>71.88</td><td>73.43</td><td>74.22</td><td>74.61</td><td>77.65</td><td>78.57</td><td>78.79</td><td>79.01</td></tr><tr><td>MNLI</td><td>46.44</td><td>45.74</td><td>47.63</td><td>50.79</td><td>56.55</td><td>60.96</td><td>59.47</td><td>61.25</td></tr><tr><td>Avg</td><td>67.78</td><td>68.93</td><td>69.74</td><td>71.06</td><td>73.44</td><td>75.01</td><td>75.33</td><td>76.21</td></tr><tr><td>Δavg</td><td>-</td><td>↑1.15</td><td>↑1.96</td><td>↑3.28</td><td>-</td><td>↑1.57</td><td>↑1.89</td><td>↑2.77</td></tr></table>",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
164,
|
| 1270 |
+
401,
|
| 1271 |
+
835,
|
| 1272 |
+
576
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 7
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "Table 6: Comparison between Bi-Drop and prior sub-net optimization strategies with varying low-resource scenarios (0.5K, 1K). We report the results of 10 random seeds and the best results are bold. Bi-Drop performs better than other methods in low-resource scenarios.",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
112,
|
| 1281 |
+
585,
|
| 1282 |
+
882,
|
| 1283 |
+
629
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 7
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "achieves up to 4.00, 4.23, and 5.29 average score improvements on $30\\%$ , $40\\%$ , and $50\\%$ reduction ratios respectively, outperforming other fine-tuning methods at lower reduction ratios and showcasing its robustness towards the minority class.",
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
112,
|
| 1292 |
+
653,
|
| 1293 |
+
487,
|
| 1294 |
+
736
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 7
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "5.3 Performance in Low-Resource Scenarios",
|
| 1301 |
+
"text_level": 1,
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
112,
|
| 1304 |
+
750,
|
| 1305 |
+
480,
|
| 1306 |
+
766
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 7
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "As illustrated in Section 1 and 2, compared with prior FI-based sub-net optimization methods that have a strong dependence on the training data, BiDrop proposes a step-wise sub-net selection strategy, which chooses the optimized parameters with the current mini-batch. In this section, we conduct extensive experiments to analyze how this dependency affects the performance of models. Concretely, we adopt various fine-tuning methods on",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
112,
|
| 1315 |
+
774,
|
| 1316 |
+
490,
|
| 1317 |
+
919
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 7
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"type": "text",
|
| 1323 |
+
"text": "$\\mathrm{BERT}_{\\mathrm{large}}$ with a limited amount of training data. The results are illustrated in Table 6. As the data amount decreases from $1.0\\mathrm{K}$ to $0.5\\mathrm{K}$ , the average improvement score of Child-Tuning $_D$ over vanilla fine-tuning decreases from 1.57 to 1.15, while its improved variant DPS maintains a relatively stable improvement. But Bi-Drop improves the average improvement score from 2.77 to 3.28. The results indicate the superiority of Bi-Drop over prior methods in low-resource scenarios.",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
507,
|
| 1326 |
+
653,
|
| 1327 |
+
884,
|
| 1328 |
+
814
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 7
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "5.4 Ablation Study",
|
| 1335 |
+
"text_level": 1,
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
507,
|
| 1338 |
+
831,
|
| 1339 |
+
675,
|
| 1340 |
+
847
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 7
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "To evaluate the effectiveness of our proposed finetuning strategy, we conduct an ablation study in Table 7. The results show that both our sub-net selection strategy and gradient averaging strategy",
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
507,
|
| 1349 |
+
854,
|
| 1350 |
+
884,
|
| 1351 |
+
920
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 7
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "page_number",
|
| 1357 |
+
"text": "5221",
|
| 1358 |
+
"bbox": [
|
| 1359 |
+
480,
|
| 1360 |
+
928,
|
| 1361 |
+
519,
|
| 1362 |
+
941
|
| 1363 |
+
],
|
| 1364 |
+
"page_idx": 7
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "table",
|
| 1368 |
+
"img_path": "images/82db6f2fc5fd3873520f6adcebf91b0fef23f964a10e2b5203e581679e448483.jpg",
|
| 1369 |
+
"table_caption": [],
|
| 1370 |
+
"table_footnote": [],
|
| 1371 |
+
"table_body": "<table><tr><td>Method</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td><td>Δ</td></tr><tr><td>Bi-Drop (gavg + ESS)</td><td>64.94</td><td>91.79</td><td>73.79</td><td>90.59</td><td>80.26</td><td>+1.55</td></tr><tr><td>gavg + Perturbation Factor</td><td>64.71</td><td>91.67</td><td>73.21</td><td>90.36</td><td>79.99</td><td>+1.28</td></tr><tr><td>gavg + Scaling Factor</td><td>64.38</td><td>91.63</td><td>72.96</td><td>90.41</td><td>79.85</td><td>+1.14</td></tr><tr><td>gavg + RSS</td><td>64.24</td><td>90.96</td><td>71.73</td><td>90.25</td><td>79.30</td><td>+0.59</td></tr><tr><td>gavg</td><td>63.82</td><td>91.26</td><td>71.16</td><td>89.81</td><td>79.01</td><td>+0.30</td></tr><tr><td>Vanilla</td><td>63.76</td><td>90.41</td><td>70.97</td><td>89.70</td><td>78.71</td><td>0.00</td></tr></table>",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
157,
|
| 1374 |
+
80,
|
| 1375 |
+
838,
|
| 1376 |
+
212
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 8
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "Table 7: Ablation results. ESS represents our Effective Sub-net Selection strategy using both factors Perturbation and Scaling. RSS stands for Random Sub-net Selection strategy. Both our sub-net selection strategy and gradient averaging strategy are effective.",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
112,
|
| 1385 |
+
221,
|
| 1386 |
+
882,
|
| 1387 |
+
265
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 8
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "text",
|
| 1393 |
+
"text": "contribute to the performance improvement of BiDrop.",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
112,
|
| 1396 |
+
290,
|
| 1397 |
+
489,
|
| 1398 |
+
321
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 8
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"type": "text",
|
| 1404 |
+
"text": "6 Conclusion",
|
| 1405 |
+
"text_level": 1,
|
| 1406 |
+
"bbox": [
|
| 1407 |
+
112,
|
| 1408 |
+
334,
|
| 1409 |
+
245,
|
| 1410 |
+
349
|
| 1411 |
+
],
|
| 1412 |
+
"page_idx": 8
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "text",
|
| 1416 |
+
"text": "In this work, we propose a new sub-net optimization technique for large-scale PLMs, named BiDrop, which leverages the gradients of multiple sub-nets generated by dropout to select the updated parameters. Extensive experiments on various downstream tasks demonstrate that Bi-Drop achieves consistent and remarkable improvements over vanilla fine-tuning and prior excellent approaches by a considerable margin, across various model architectures. Further analysis indicates the generalizability and robustness of Bi-Drop over transferring, data imbalance and low-resource experiments.",
|
| 1417 |
+
"bbox": [
|
| 1418 |
+
112,
|
| 1419 |
+
361,
|
| 1420 |
+
489,
|
| 1421 |
+
570
|
| 1422 |
+
],
|
| 1423 |
+
"page_idx": 8
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"type": "text",
|
| 1427 |
+
"text": "7 Limitations",
|
| 1428 |
+
"text_level": 1,
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
112,
|
| 1431 |
+
582,
|
| 1432 |
+
250,
|
| 1433 |
+
598
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 8
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "We propose a novel and effective fine-tuning method, Bi-Drop, which achieves a considerable performance improvement in downstream tasks. However, similar to some previous studies(Jiang et al., 2020; Aghajanyan et al., 2021; Wu et al., 2021), Bi-Drop requires multiple forward propagations, which makes its training time efficiency not good enough compared with the vanilla fine-tuning method.",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
112,
|
| 1442 |
+
609,
|
| 1443 |
+
489,
|
| 1444 |
+
751
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 8
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "text",
|
| 1450 |
+
"text": "Acknowledgements",
|
| 1451 |
+
"text_level": 1,
|
| 1452 |
+
"bbox": [
|
| 1453 |
+
112,
|
| 1454 |
+
766,
|
| 1455 |
+
285,
|
| 1456 |
+
782
|
| 1457 |
+
],
|
| 1458 |
+
"page_idx": 8
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"type": "text",
|
| 1462 |
+
"text": "This paper is supported by the National Key Research and Development Program of China 2020AAA0106700 and NSFC project U19A2065.",
|
| 1463 |
+
"bbox": [
|
| 1464 |
+
112,
|
| 1465 |
+
791,
|
| 1466 |
+
487,
|
| 1467 |
+
840
|
| 1468 |
+
],
|
| 1469 |
+
"page_idx": 8
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "text",
|
| 1473 |
+
"text": "References",
|
| 1474 |
+
"text_level": 1,
|
| 1475 |
+
"bbox": [
|
| 1476 |
+
114,
|
| 1477 |
+
868,
|
| 1478 |
+
213,
|
| 1479 |
+
882
|
| 1480 |
+
],
|
| 1481 |
+
"page_idx": 8
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"type": "text",
|
| 1485 |
+
"text": "Armen Aghajanyan, Akshit Shrivastava, Anchit Gupta, Naman Goyal, Luke Zettlemoyer, and Sonal Gupta.",
|
| 1486 |
+
"bbox": [
|
| 1487 |
+
114,
|
| 1488 |
+
891,
|
| 1489 |
+
489,
|
| 1490 |
+
917
|
| 1491 |
+
],
|
| 1492 |
+
"page_idx": 8
|
| 1493 |
+
},
|
| 1494 |
+
{
|
| 1495 |
+
"type": "text",
|
| 1496 |
+
"text": "2021. Better fine-tuning by reducing representational collapse. In ICLR.",
|
| 1497 |
+
"bbox": [
|
| 1498 |
+
527,
|
| 1499 |
+
290,
|
| 1500 |
+
880,
|
| 1501 |
+
318
|
| 1502 |
+
],
|
| 1503 |
+
"page_idx": 8
|
| 1504 |
+
},
|
| 1505 |
+
{
|
| 1506 |
+
"type": "text",
|
| 1507 |
+
"text": "Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. 2015. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, EMNLP 2015, Lisbon, Portugal, September 17-21, 2015, pages 632-642. The Association for Computational Linguistics.",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
510,
|
| 1510 |
+
326,
|
| 1511 |
+
884,
|
| 1512 |
+
432
|
| 1513 |
+
],
|
| 1514 |
+
"page_idx": 8
|
| 1515 |
+
},
|
| 1516 |
+
{
|
| 1517 |
+
"type": "text",
|
| 1518 |
+
"text": "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. In NeurIPS.",
|
| 1519 |
+
"bbox": [
|
| 1520 |
+
509,
|
| 1521 |
+
439,
|
| 1522 |
+
882,
|
| 1523 |
+
506
|
| 1524 |
+
],
|
| 1525 |
+
"page_idx": 8
|
| 1526 |
+
},
|
| 1527 |
+
{
|
| 1528 |
+
"type": "text",
|
| 1529 |
+
"text": "Sanyuan Chen, Yutai Hou, Yiming Cui, Wanxiang Che, Ting Liu, and Xiangzhan Yu. 2020. Recall and learn: Fine-tuning deep pretrained language models with less forgetting. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, EMNLP 2020, Online, November 16-20, 2020, pages 7870-7881. Association for Computational Linguistics.",
|
| 1530 |
+
"bbox": [
|
| 1531 |
+
509,
|
| 1532 |
+
514,
|
| 1533 |
+
882,
|
| 1534 |
+
620
|
| 1535 |
+
],
|
| 1536 |
+
"page_idx": 8
|
| 1537 |
+
},
|
| 1538 |
+
{
|
| 1539 |
+
"type": "text",
|
| 1540 |
+
"text": "Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. 2020. ELECTRA: pretraining text encoders as discriminators rather than generators. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net.",
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
509,
|
| 1543 |
+
627,
|
| 1544 |
+
882,
|
| 1545 |
+
708
|
| 1546 |
+
],
|
| 1547 |
+
"page_idx": 8
|
| 1548 |
+
},
|
| 1549 |
+
{
|
| 1550 |
+
"type": "text",
|
| 1551 |
+
"text": "Hal DauméIII. 2007. Frustratingly easy domain adaptation. In ACL 2007, Proceedings of the 45th Annual Meeting of the Association for Computational Linguistics, June 23-30, 2007, Prague, Czech Republic. The Association for Computational Linguistics.",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
509,
|
| 1554 |
+
715,
|
| 1555 |
+
882,
|
| 1556 |
+
782
|
| 1557 |
+
],
|
| 1558 |
+
"page_idx": 8
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"type": "text",
|
| 1562 |
+
"text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. In *NAACL*.",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
509,
|
| 1565 |
+
790,
|
| 1566 |
+
882,
|
| 1567 |
+
843
|
| 1568 |
+
],
|
| 1569 |
+
"page_idx": 8
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"type": "text",
|
| 1573 |
+
"text": "Jesse Dodge, Gabriel Ilharco, Roy Schwartz, Ali Farhadi, Hannaneh Hajishirzi, and Noah A. Smith. 2020. Fine-tuning pretrained language models: Weight initializations, data orders, and early stopping. CoRR, abs/2002.06305.",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
509,
|
| 1576 |
+
851,
|
| 1577 |
+
882,
|
| 1578 |
+
917
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 8
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "page_number",
|
| 1584 |
+
"text": "5222",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
480,
|
| 1587 |
+
927,
|
| 1588 |
+
519,
|
| 1589 |
+
940
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 8
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "list",
|
| 1595 |
+
"sub_type": "ref_text",
|
| 1596 |
+
"list_items": [
|
| 1597 |
+
"Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin de Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-efficient transfer learning for NLP. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 2790-2799. PMLR.",
|
| 1598 |
+
"Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Tuo Zhao. 2020. SMART: Robust and efficient fine-tuning for pretrained natural language models through principled regularized optimization. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL).",
|
| 1599 |
+
"Cheolhyoung Lee, Kyunghyun Cho, and Wanmo Kang. 2020. Mixout: Effective regularization to finetune large-scale pretrained language models. In ICLR.",
|
| 1600 |
+
"Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.",
|
| 1601 |
+
"Rabeeh Karimi Mahabadi, Yonatan Belinkov, and James Henderson. 2021. Variational information bottleneck for effective low-resource fine-tuning. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net.",
|
| 1602 |
+
"Marco Marelli, Stefano Menini, Marco Baroni, Luisa Bentivogli, Raffaella Bernardi, and Roberto Zamparelli. 2014. A SICK cure for the evaluation of compositional distributional semantic models. In Proceedings of the Ninth International Conference on Language Resources and Evaluation, LREC 2014, Reykjavik, Iceland, May 26-31, 2014, pages 216-223. European Language Resources Association (ELRA).",
|
| 1603 |
+
"Jason Phang, Thibault Févry, and Samuel R. Bowman. 2018. Sentence encoders on stilts: Supplementary training on intermediate labeled-data tasks. CoRR, abs/1811.01088.",
|
| 1604 |
+
"Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI blog.",
|
| 1605 |
+
"Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683.",
|
| 1606 |
+
"Vijay Vasudevan, Benjamin Caine, Raphael Gontijo Lopes, Sara Fridovich-Keil, and Rebecca Roelofs. 2022. When does dough become a bagel? analyzing the remaining mistakes on imagenet. In NeurIPS."
|
| 1607 |
+
],
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
115,
|
| 1610 |
+
85,
|
| 1611 |
+
489,
|
| 1612 |
+
917
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 9
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "list",
|
| 1618 |
+
"sub_type": "ref_text",
|
| 1619 |
+
"list_items": [
|
| 1620 |
+
"Li Wan, Matthew D. Zeiler, Sixin Zhang, Yann LeCun, and Rob Fergus. 2013. Regularization of neural networks using dropconnect. In Proceedings of the 30th International Conference on Machine Learning, ICML 2013, Atlanta, GA, USA, 16-21 June 2013, volume 28 of JMLR Workshop and Conference Proceedings, pages 1058-1066. JMLR.org.",
|
| 1621 |
+
"Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. 2019. Glue: A multi-task benchmark and analysis platform for natural language understanding. In ICLR.",
|
| 1622 |
+
"Adina Williams, Nikita Nangia, and Samuel R. Bowman. 2018. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2018, New Orleans, Louisiana, USA, June 1-6, 2018, Volume 1 (Long Papers), pages 1112-1122. Association for Computational Linguistics.",
|
| 1623 |
+
"Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, EMNLP 2020 - Demos, Online, November 16-20, 2020, pages 38-45. Association for Computational Linguistics.",
|
| 1624 |
+
"Chuhan Wu, Fangzhao Wu, Tao Qi, and Yongfeng Huang. 2022. Noisytune: A little noise can help you finetune pretrained language models better. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), ACL 2022, Dublin, Ireland, May 22-27, 2022, pages 680-685. Association for Computational Linguistics.",
|
| 1625 |
+
"Lijun Wu, Juntao Li, Yue Wang, Qi Meng, Tao Qin, Wei Chen, Min Zhang, Tie-Yan Liu, et al. 2021. R-drop: regularized dropout for neural networks. In NeurIPS.",
|
| 1626 |
+
"Runxin Xu, Fuli Luo, Zhiyuan Zhang, Chuanqi Tan, Baobao Chang, Songfang Huang, and Fei Huang. 2021. Raise a child in large language model: Towards effective and generalizable fine-tuning. In EMNLP.",
|
| 1627 |
+
"Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. 2019. Xlnet: Generalized autoregressive pretraining for language understanding. In NeurIPS.",
|
| 1628 |
+
"Hongyi Yuan, Zheng Yuan, Chuanqi Tan, Fei Huang, and Songfang Huang. 2022. Hype: Better pre-trained language model fine-tuning with hidden representation perturbation. CoRR, abs/2212.08853."
|
| 1629 |
+
],
|
| 1630 |
+
"bbox": [
|
| 1631 |
+
510,
|
| 1632 |
+
85,
|
| 1633 |
+
882,
|
| 1634 |
+
917
|
| 1635 |
+
],
|
| 1636 |
+
"page_idx": 9
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"type": "page_number",
|
| 1640 |
+
"text": "5223",
|
| 1641 |
+
"bbox": [
|
| 1642 |
+
480,
|
| 1643 |
+
928,
|
| 1644 |
+
519,
|
| 1645 |
+
940
|
| 1646 |
+
],
|
| 1647 |
+
"page_idx": 9
|
| 1648 |
+
},
|
| 1649 |
+
{
|
| 1650 |
+
"type": "list",
|
| 1651 |
+
"sub_type": "ref_text",
|
| 1652 |
+
"list_items": [
|
| 1653 |
+
"Haojie Zhang, Ge Li, Jia Li, Zhongjin Zhang, Yuqi Zhu, and Zhi Jin. 2022. Fine-tuning pre-trained language models effectively by optimizing subnetworks adaptively. In NeurIPS.",
|
| 1654 |
+
"Tianyi Zhang, Felix Wu, Arzoo Katiyar, Kilian Q. Weinberger, and Yoav Artzi. 2021. Revisiting few-sample BERT fine-tuning. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net."
|
| 1655 |
+
],
|
| 1656 |
+
"bbox": [
|
| 1657 |
+
115,
|
| 1658 |
+
85,
|
| 1659 |
+
489,
|
| 1660 |
+
214
|
| 1661 |
+
],
|
| 1662 |
+
"page_idx": 10
|
| 1663 |
+
},
|
| 1664 |
+
{
|
| 1665 |
+
"type": "page_number",
|
| 1666 |
+
"text": "5224",
|
| 1667 |
+
"bbox": [
|
| 1668 |
+
480,
|
| 1669 |
+
928,
|
| 1670 |
+
519,
|
| 1671 |
+
940
|
| 1672 |
+
],
|
| 1673 |
+
"page_idx": 10
|
| 1674 |
+
},
|
| 1675 |
+
{
|
| 1676 |
+
"type": "text",
|
| 1677 |
+
"text": "Appendix",
|
| 1678 |
+
"text_level": 1,
|
| 1679 |
+
"bbox": [
|
| 1680 |
+
114,
|
| 1681 |
+
84,
|
| 1682 |
+
203,
|
| 1683 |
+
99
|
| 1684 |
+
],
|
| 1685 |
+
"page_idx": 11
|
| 1686 |
+
},
|
| 1687 |
+
{
|
| 1688 |
+
"type": "text",
|
| 1689 |
+
"text": "A GLUE Benchmark Datasets",
|
| 1690 |
+
"text_level": 1,
|
| 1691 |
+
"bbox": [
|
| 1692 |
+
114,
|
| 1693 |
+
112,
|
| 1694 |
+
394,
|
| 1695 |
+
128
|
| 1696 |
+
],
|
| 1697 |
+
"page_idx": 11
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"type": "text",
|
| 1701 |
+
"text": "In this paper, we conduct experiments on datasets in GLUE benchmark (Wang et al., 2019). The statistical information of the GLUE benchmark is shown in Table 8.",
|
| 1702 |
+
"bbox": [
|
| 1703 |
+
112,
|
| 1704 |
+
141,
|
| 1705 |
+
487,
|
| 1706 |
+
204
|
| 1707 |
+
],
|
| 1708 |
+
"page_idx": 11
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"type": "table",
|
| 1712 |
+
"img_path": "images/44c19b502c5acf069e74de0ab5ed29590b5798000136cfceb9d8d9a3dddf522a.jpg",
|
| 1713 |
+
"table_caption": [],
|
| 1714 |
+
"table_footnote": [],
|
| 1715 |
+
"table_body": "<table><tr><td>Dataset</td><td>#Train</td><td>#Dev</td><td>Metrics</td></tr><tr><td colspan=\"4\">Single-sentence Tasks</td></tr><tr><td>CoLA</td><td>8.5k</td><td>1.0k</td><td>Matthews Corr</td></tr><tr><td>SST-2</td><td>67k</td><td>872</td><td>Accuracy</td></tr><tr><td colspan=\"4\">Inference</td></tr><tr><td>RTE</td><td>2.5k</td><td>277</td><td>Accuracy</td></tr><tr><td>QNLI</td><td>105k</td><td>5.5k</td><td>Accuracy</td></tr><tr><td>MNLI</td><td>393k</td><td>9.8k</td><td>Accuracy</td></tr><tr><td colspan=\"4\">Similarity and Paraphrase</td></tr><tr><td>MRPC</td><td>3.7k</td><td>408</td><td>F1</td></tr><tr><td>STS-B</td><td>5.7k</td><td>1.5k</td><td>Spearman Corr</td></tr><tr><td>QQP</td><td>364k</td><td>40k</td><td>F1</td></tr></table>",
|
| 1716 |
+
"bbox": [
|
| 1717 |
+
124,
|
| 1718 |
+
216,
|
| 1719 |
+
478,
|
| 1720 |
+
444
|
| 1721 |
+
],
|
| 1722 |
+
"page_idx": 11
|
| 1723 |
+
},
|
| 1724 |
+
{
|
| 1725 |
+
"type": "text",
|
| 1726 |
+
"text": "Table 8: Statistics and metrics of eight datasets used in this paper form GLUE benchmark.",
|
| 1727 |
+
"bbox": [
|
| 1728 |
+
112,
|
| 1729 |
+
451,
|
| 1730 |
+
485,
|
| 1731 |
+
481
|
| 1732 |
+
],
|
| 1733 |
+
"page_idx": 11
|
| 1734 |
+
},
|
| 1735 |
+
{
|
| 1736 |
+
"type": "text",
|
| 1737 |
+
"text": "B Experimental Details",
|
| 1738 |
+
"text_level": 1,
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
114,
|
| 1741 |
+
518,
|
| 1742 |
+
334,
|
| 1743 |
+
535
|
| 1744 |
+
],
|
| 1745 |
+
"page_idx": 11
|
| 1746 |
+
},
|
| 1747 |
+
{
|
| 1748 |
+
"type": "text",
|
| 1749 |
+
"text": "In this paper, we fine-tune different large pretrained language models with Bi-Drop, including BERT<sub>BASE</sub> <sup>3</sup>, BERT<sub>LARGE</sub> <sup>4</sup>, RoBERTa<sub>BASE</sub> <sup>5</sup>, RoBERTa<sub>LARGE</sub> <sup>6</sup>, DeBERTa<sub>LARGE</sub> <sup>7</sup>, and ELECTRA<sub>LARGE</sub> <sup>8</sup>. The training epochs/steps, batch size, and warmup steps are listed in Table 9.",
|
| 1750 |
+
"bbox": [
|
| 1751 |
+
112,
|
| 1752 |
+
546,
|
| 1753 |
+
487,
|
| 1754 |
+
644
|
| 1755 |
+
],
|
| 1756 |
+
"page_idx": 11
|
| 1757 |
+
},
|
| 1758 |
+
{
|
| 1759 |
+
"type": "text",
|
| 1760 |
+
"text": "For the glue dataset, our maximum length is set as 128. We use grid search for learning rate from $\\{1\\mathrm{e} - 5,2\\mathrm{e} - 5,\\dots ,1\\mathrm{e} - 4\\}$ . For Bi-Drop, we use grid search for dropout rate from $\\{0.05,0.1\\}$ . The number of forward passes is fixed to two $(k = 2)$ . We conduct all the experiments on a single A40 GPU.",
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
112,
|
| 1763 |
+
646,
|
| 1764 |
+
487,
|
| 1765 |
+
755
|
| 1766 |
+
],
|
| 1767 |
+
"page_idx": 11
|
| 1768 |
+
},
|
| 1769 |
+
{
|
| 1770 |
+
"type": "text",
|
| 1771 |
+
"text": "C Hyper-Parameter Analysis",
|
| 1772 |
+
"text_level": 1,
|
| 1773 |
+
"bbox": [
|
| 1774 |
+
509,
|
| 1775 |
+
83,
|
| 1776 |
+
779,
|
| 1777 |
+
99
|
| 1778 |
+
],
|
| 1779 |
+
"page_idx": 11
|
| 1780 |
+
},
|
| 1781 |
+
{
|
| 1782 |
+
"type": "text",
|
| 1783 |
+
"text": "Bi-Drop uses two dropout techniques. In order to analyze the impact of the dropout rate on the experimental results, a simple analysis experiment was done here. In order to make the comparison fair, all the parameters except the dropout rate are kept the same in the experiment. For simplicity, the dropout values are the same twice. The experimental results are shown in 5. It can be seen that different datasets have different preferences for dropout values. CoLA and RTE achieve the best results when the dropout value is 0.05; while MRPC achieves the best results when the dropout value is 0.1; STSB is insensitive to the dropout value until the dropout value is less than 0.1.",
|
| 1784 |
+
"bbox": [
|
| 1785 |
+
507,
|
| 1786 |
+
109,
|
| 1787 |
+
882,
|
| 1788 |
+
332
|
| 1789 |
+
],
|
| 1790 |
+
"page_idx": 11
|
| 1791 |
+
},
|
| 1792 |
+
{
|
| 1793 |
+
"type": "image",
|
| 1794 |
+
"img_path": "images/b8311c05816e0f0ebcf9cc01216fb55c5c6e25b04c2178d11bee761898a614a4.jpg",
|
| 1795 |
+
"image_caption": [],
|
| 1796 |
+
"image_footnote": [],
|
| 1797 |
+
"bbox": [
|
| 1798 |
+
515,
|
| 1799 |
+
344,
|
| 1800 |
+
695,
|
| 1801 |
+
430
|
| 1802 |
+
],
|
| 1803 |
+
"page_idx": 11
|
| 1804 |
+
},
|
| 1805 |
+
{
|
| 1806 |
+
"type": "image",
|
| 1807 |
+
"img_path": "images/0609d070c281c03fa421a20cb1d41bf430416ebc01f5548c0cf1c2a29f33d067.jpg",
|
| 1808 |
+
"image_caption": [],
|
| 1809 |
+
"image_footnote": [],
|
| 1810 |
+
"bbox": [
|
| 1811 |
+
695,
|
| 1812 |
+
344,
|
| 1813 |
+
875,
|
| 1814 |
+
429
|
| 1815 |
+
],
|
| 1816 |
+
"page_idx": 11
|
| 1817 |
+
},
|
| 1818 |
+
{
|
| 1819 |
+
"type": "image",
|
| 1820 |
+
"img_path": "images/42c40b77085fb1977e89073bb7380ed782e00e29dd85774a01dc8efaf2b9bfb3.jpg",
|
| 1821 |
+
"image_caption": [
|
| 1822 |
+
"Figure 5: The effect of dropout rate on experimental results"
|
| 1823 |
+
],
|
| 1824 |
+
"image_footnote": [],
|
| 1825 |
+
"bbox": [
|
| 1826 |
+
515,
|
| 1827 |
+
430,
|
| 1828 |
+
695,
|
| 1829 |
+
513
|
| 1830 |
+
],
|
| 1831 |
+
"page_idx": 11
|
| 1832 |
+
},
|
| 1833 |
+
{
|
| 1834 |
+
"type": "image",
|
| 1835 |
+
"img_path": "images/e69eaa05ba5b842037e6a6faf46043155e8d37e392f4314595480062ee221fee.jpg",
|
| 1836 |
+
"image_caption": [],
|
| 1837 |
+
"image_footnote": [],
|
| 1838 |
+
"bbox": [
|
| 1839 |
+
695,
|
| 1840 |
+
430,
|
| 1841 |
+
875,
|
| 1842 |
+
513
|
| 1843 |
+
],
|
| 1844 |
+
"page_idx": 11
|
| 1845 |
+
},
|
| 1846 |
+
{
|
| 1847 |
+
"type": "text",
|
| 1848 |
+
"text": "D Batch Size Doubled Training",
|
| 1849 |
+
"text_level": 1,
|
| 1850 |
+
"bbox": [
|
| 1851 |
+
507,
|
| 1852 |
+
580,
|
| 1853 |
+
798,
|
| 1854 |
+
596
|
| 1855 |
+
],
|
| 1856 |
+
"page_idx": 11
|
| 1857 |
+
},
|
| 1858 |
+
{
|
| 1859 |
+
"type": "text",
|
| 1860 |
+
"text": "We implement Bi-Drop by repeating the input data twice and forward-propagating twice. This is similar to doubling the batch size at each step. The difference is that half of the data is the same as the other half, and directly doubling the batch size, the data in the same mini-batch is all different. So for a fair comparison, we experimented with directly doubling the batch size. So for a fair comparison, we experimented with directly doubling the batch size. The experimental results are shown in Table 10, results show that directly doubling the batch size has basically no improvement, and Bi-Drop is significantly better than directly doubling the batch size.",
|
| 1861 |
+
"bbox": [
|
| 1862 |
+
507,
|
| 1863 |
+
606,
|
| 1864 |
+
882,
|
| 1865 |
+
829
|
| 1866 |
+
],
|
| 1867 |
+
"page_idx": 11
|
| 1868 |
+
},
|
| 1869 |
+
{
|
| 1870 |
+
"type": "text",
|
| 1871 |
+
"text": "E Comparison with Prior Methods on Roberta large",
|
| 1872 |
+
"text_level": 1,
|
| 1873 |
+
"bbox": [
|
| 1874 |
+
507,
|
| 1875 |
+
844,
|
| 1876 |
+
853,
|
| 1877 |
+
878
|
| 1878 |
+
],
|
| 1879 |
+
"page_idx": 11
|
| 1880 |
+
},
|
| 1881 |
+
{
|
| 1882 |
+
"type": "text",
|
| 1883 |
+
"text": "We compare Bi-Drop with various prior fine-tuning methods based on $\\mathrm{BERT}_{\\mathrm{large}}$ and report the mean",
|
| 1884 |
+
"bbox": [
|
| 1885 |
+
507,
|
| 1886 |
+
887,
|
| 1887 |
+
880,
|
| 1888 |
+
919
|
| 1889 |
+
],
|
| 1890 |
+
"page_idx": 11
|
| 1891 |
+
},
|
| 1892 |
+
{
|
| 1893 |
+
"type": "page_footnote",
|
| 1894 |
+
"text": "3https://huggingface.co/bert-base-uncased/ tree/main 4https://huggingface.co/bert-large-cased/tree/ main 5https://huggingface.co/roberta-base/tree/ main 6https://huggingface.co/roberta-large/tree/ main 7https://huggingface.co/microsoft/ deberta-large/tree/main 8https://huggingface.co/google/ electra-large-discriminator/tree/main",
|
| 1895 |
+
"bbox": [
|
| 1896 |
+
114,
|
| 1897 |
+
768,
|
| 1898 |
+
487,
|
| 1899 |
+
920
|
| 1900 |
+
],
|
| 1901 |
+
"page_idx": 11
|
| 1902 |
+
},
|
| 1903 |
+
{
|
| 1904 |
+
"type": "page_number",
|
| 1905 |
+
"text": "5225",
|
| 1906 |
+
"bbox": [
|
| 1907 |
+
480,
|
| 1908 |
+
927,
|
| 1909 |
+
519,
|
| 1910 |
+
940
|
| 1911 |
+
],
|
| 1912 |
+
"page_idx": 11
|
| 1913 |
+
},
|
| 1914 |
+
{
|
| 1915 |
+
"type": "table",
|
| 1916 |
+
"img_path": "images/6f028938470dde92569d9672825b8d1acd5b017a25fb7495393521400736142d.jpg",
|
| 1917 |
+
"table_caption": [],
|
| 1918 |
+
"table_footnote": [],
|
| 1919 |
+
"table_body": "<table><tr><td>Model</td><td>Dataset</td><td>Batch Size</td><td>Epochs/Steps</td><td>Warmup Ratio/Steps</td></tr><tr><td>BERT</td><td>all</td><td>16</td><td>3 epochs</td><td>10%</td></tr><tr><td rowspan=\"4\">Roberta</td><td>CoLA</td><td>16</td><td>5336 steps</td><td>320 steps</td></tr><tr><td>RTE</td><td>16</td><td>2036 steps</td><td>122 steps</td></tr><tr><td>MRPC</td><td>16</td><td>2296 steps</td><td>137 steps</td></tr><tr><td>STS-B</td><td>16</td><td>3598 steps</td><td>214steps</td></tr><tr><td rowspan=\"4\">ELECTRA</td><td>CoLA</td><td>32</td><td>3 epochs</td><td>10%</td></tr><tr><td>RTE</td><td>32</td><td>10 epochs</td><td>10%</td></tr><tr><td>MRPC</td><td>32</td><td>3 epochs</td><td>10%</td></tr><tr><td>STS-B</td><td>32</td><td>10 epochs</td><td>10%</td></tr><tr><td rowspan=\"4\">DeBERTa</td><td>CoLA</td><td>32</td><td>6 epochs</td><td>100 steps</td></tr><tr><td>RTE</td><td>32</td><td>6 epochs</td><td>50 steps</td></tr><tr><td>MRPC</td><td>32</td><td>6 epochs</td><td>10 steps</td></tr><tr><td>STS-B</td><td>32</td><td>4 epochs</td><td>100 steps</td></tr></table>",
|
| 1920 |
+
"bbox": [
|
| 1921 |
+
248,
|
| 1922 |
+
80,
|
| 1923 |
+
747,
|
| 1924 |
+
286
|
| 1925 |
+
],
|
| 1926 |
+
"page_idx": 12
|
| 1927 |
+
},
|
| 1928 |
+
{
|
| 1929 |
+
"type": "table",
|
| 1930 |
+
"img_path": "images/e9daa61562c7822621e1f7861b98918fbb8bc97587fd38735e294466d908a6d7.jpg",
|
| 1931 |
+
"table_caption": [
|
| 1932 |
+
"Table 9: Hyperparameters settings for different pretrained models on variant tasks. These settings are reported in their official repository for best practice."
|
| 1933 |
+
],
|
| 1934 |
+
"table_footnote": [],
|
| 1935 |
+
"table_body": "<table><tr><td>Method</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td></tr><tr><td>Vanilla</td><td>57.67</td><td>90.38</td><td>69.57</td><td>89.35</td><td>76.74</td></tr><tr><td>Vanilla(double bsz)</td><td>57.69</td><td>90.08</td><td>69.85</td><td>89.55</td><td>76.79</td></tr><tr><td>Bi-Drop</td><td>60.76</td><td>91.01</td><td>71.73</td><td>89.78</td><td>78.32</td></tr></table>",
|
| 1936 |
+
"bbox": [
|
| 1937 |
+
263,
|
| 1938 |
+
337,
|
| 1939 |
+
732,
|
| 1940 |
+
401
|
| 1941 |
+
],
|
| 1942 |
+
"page_idx": 12
|
| 1943 |
+
},
|
| 1944 |
+
{
|
| 1945 |
+
"type": "text",
|
| 1946 |
+
"text": "Table 10: Comparison of Bi-Drop and directly doubling the batch size. Bi-Drop is significantly better than directly doubling the batch size.",
|
| 1947 |
+
"bbox": [
|
| 1948 |
+
112,
|
| 1949 |
+
411,
|
| 1950 |
+
882,
|
| 1951 |
+
439
|
| 1952 |
+
],
|
| 1953 |
+
"page_idx": 12
|
| 1954 |
+
},
|
| 1955 |
+
{
|
| 1956 |
+
"type": "text",
|
| 1957 |
+
"text": "(and max) scores on GLUE benchmark in Table 11, following Lee et al. (2020) and Xu et al. (2021).",
|
| 1958 |
+
"bbox": [
|
| 1959 |
+
112,
|
| 1960 |
+
466,
|
| 1961 |
+
489,
|
| 1962 |
+
498
|
| 1963 |
+
],
|
| 1964 |
+
"page_idx": 12
|
| 1965 |
+
},
|
| 1966 |
+
{
|
| 1967 |
+
"type": "page_number",
|
| 1968 |
+
"text": "5226",
|
| 1969 |
+
"bbox": [
|
| 1970 |
+
480,
|
| 1971 |
+
928,
|
| 1972 |
+
519,
|
| 1973 |
+
940
|
| 1974 |
+
],
|
| 1975 |
+
"page_idx": 12
|
| 1976 |
+
},
|
| 1977 |
+
{
|
| 1978 |
+
"type": "table",
|
| 1979 |
+
"img_path": "images/97d1803c8a3b734a717d4098652fd02bb4c7ee79cfb8590c2a8b4188d0b4482c.jpg",
|
| 1980 |
+
"table_caption": [],
|
| 1981 |
+
"table_footnote": [],
|
| 1982 |
+
"table_body": "<table><tr><td>Method</td><td>CoLA</td><td>MRPC</td><td>RTE</td><td>STS-B</td><td>Avg</td><td>Δ</td></tr><tr><td>Vanilla</td><td>66.01(68.03)</td><td>92.56(93.66)</td><td>84.51(86.28)</td><td>92.05(92.22)</td><td>83.78(85.05)</td><td>0.00</td></tr><tr><td>ChildTuningD</td><td>66.82(68.21)</td><td>92.67(93.58)</td><td>85.89(87.72)</td><td>92.36(92.53)</td><td>84.44(85.51)</td><td>+0.66(0.46)</td></tr><tr><td>DPSmix</td><td>66.86(68.53)</td><td>92.51(93.89)</td><td>85.37(87.72)</td><td>92.47(92.73)</td><td>84.30(85.72)</td><td>+0.52(0.67)</td></tr><tr><td>R-Drop</td><td>67.26(69.63)</td><td>92.47(93.62)</td><td>85.44(87.63)</td><td>92.42(92.58)</td><td>84.40(85.87)</td><td>+0.62(0.82)</td></tr><tr><td>Bi-Drop</td><td>68.03(70.89)</td><td>92.95(94.66)</td><td>86.10(88.09)</td><td>92.36(92.58)</td><td>84.86(86.56)</td><td>+1.08(1.51)</td></tr></table>",
|
| 1983 |
+
"bbox": [
|
| 1984 |
+
124,
|
| 1985 |
+
420,
|
| 1986 |
+
870,
|
| 1987 |
+
521
|
| 1988 |
+
],
|
| 1989 |
+
"page_idx": 13
|
| 1990 |
+
},
|
| 1991 |
+
{
|
| 1992 |
+
"type": "text",
|
| 1993 |
+
"text": "Table 11: Comparison between Bi-Drop with prior fine-tuning methods. We report the mean (max) results of 10 random seeds. The best results are bold. Note that since R3F is not applicable to regression, the result on STS-B (marked with *) remains the same as vanilla. Bi-Drop achieves the best performance compared with other methods.",
|
| 1994 |
+
"bbox": [
|
| 1995 |
+
112,
|
| 1996 |
+
532,
|
| 1997 |
+
882,
|
| 1998 |
+
576
|
| 1999 |
+
],
|
| 2000 |
+
"page_idx": 13
|
| 2001 |
+
},
|
| 2002 |
+
{
|
| 2003 |
+
"type": "page_number",
|
| 2004 |
+
"text": "5227",
|
| 2005 |
+
"bbox": [
|
| 2006 |
+
480,
|
| 2007 |
+
928,
|
| 2008 |
+
519,
|
| 2009 |
+
940
|
| 2010 |
+
],
|
| 2011 |
+
"page_idx": 13
|
| 2012 |
+
}
|
| 2013 |
+
]
|