Add Batch 0b746821-0aab-4d81-9c53-d151e01904a6 data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/7bc495d6-5709-4586-9c79-360a9cf4a076_content_list.json +0 -0
- 2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/7bc495d6-5709-4586-9c79-360a9cf4a076_model.json +0 -0
- 2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/7bc495d6-5709-4586-9c79-360a9cf4a076_origin.pdf +3 -0
- 2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/full.md +0 -0
- 2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/images.zip +3 -0
- 2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/layout.json +0 -0
- 2023/Finding the Pillars of Strength for Multi-Head Attention/38358e14-3dcd-47b7-ae9c-67324c5b1765_content_list.json +0 -0
- 2023/Finding the Pillars of Strength for Multi-Head Attention/38358e14-3dcd-47b7-ae9c-67324c5b1765_model.json +0 -0
- 2023/Finding the Pillars of Strength for Multi-Head Attention/38358e14-3dcd-47b7-ae9c-67324c5b1765_origin.pdf +3 -0
- 2023/Finding the Pillars of Strength for Multi-Head Attention/full.md +390 -0
- 2023/Finding the Pillars of Strength for Multi-Head Attention/images.zip +3 -0
- 2023/Finding the Pillars of Strength for Multi-Head Attention/layout.json +0 -0
- 2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/299364f1-0f55-4167-82d9-b2dbc57d8e7b_content_list.json +2055 -0
- 2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/299364f1-0f55-4167-82d9-b2dbc57d8e7b_model.json +0 -0
- 2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/299364f1-0f55-4167-82d9-b2dbc57d8e7b_origin.pdf +3 -0
- 2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/full.md +343 -0
- 2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/images.zip +3 -0
- 2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/layout.json +0 -0
- 2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/02cdb8da-2abe-4d81-a26c-6d3cb079eafb_content_list.json +1773 -0
- 2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/02cdb8da-2abe-4d81-a26c-6d3cb079eafb_model.json +0 -0
- 2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/02cdb8da-2abe-4d81-a26c-6d3cb079eafb_origin.pdf +3 -0
- 2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/full.md +310 -0
- 2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/images.zip +3 -0
- 2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/layout.json +0 -0
- 2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/aad7c0d8-3cef-4a9b-a451-aebedd7604ff_content_list.json +0 -0
- 2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/aad7c0d8-3cef-4a9b-a451-aebedd7604ff_model.json +0 -0
- 2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/aad7c0d8-3cef-4a9b-a451-aebedd7604ff_origin.pdf +3 -0
- 2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/full.md +419 -0
- 2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/images.zip +3 -0
- 2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/layout.json +0 -0
- 2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/374a8618-2dba-4970-9c92-9dbdb98b467b_content_list.json +0 -0
- 2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/374a8618-2dba-4970-9c92-9dbdb98b467b_model.json +0 -0
- 2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/374a8618-2dba-4970-9c92-9dbdb98b467b_origin.pdf +3 -0
- 2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/full.md +416 -0
- 2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/images.zip +3 -0
- 2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/layout.json +0 -0
- 2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/a325db9e-aab0-4f36-8d85-9ab6ad31543b_content_list.json +1893 -0
- 2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/a325db9e-aab0-4f36-8d85-9ab6ad31543b_model.json +0 -0
- 2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/a325db9e-aab0-4f36-8d85-9ab6ad31543b_origin.pdf +3 -0
- 2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/full.md +359 -0
- 2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/images.zip +3 -0
- 2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/layout.json +0 -0
- 2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/c65a65c3-e9ef-4905-b4b9-b1c5f595b48c_content_list.json +0 -0
- 2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/c65a65c3-e9ef-4905-b4b9-b1c5f595b48c_model.json +0 -0
- 2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/c65a65c3-e9ef-4905-b4b9-b1c5f595b48c_origin.pdf +3 -0
- 2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/full.md +0 -0
- 2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/images.zip +3 -0
- 2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/layout.json +0 -0
- 2023/From Characters to Words_ Hierarchical Pre-trained Language Model for Open-vocabulary Language Understanding/f4f9f366-5dd9-495c-abd1-8d340950a184_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -6307,3 +6307,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 6307 |
2023/Few-shot[[:space:]]Event[[:space:]]Detection_[[:space:]]An[[:space:]]Empirical[[:space:]]Study[[:space:]]and[[:space:]]a[[:space:]]Unified[[:space:]]View/98804dde-83ff-470e-902c-85f308893eac_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6308 |
2023/Few-shot[[:space:]]In-context[[:space:]]Learning[[:space:]]on[[:space:]]Knowledge[[:space:]]Base[[:space:]]Question[[:space:]]Answering/d0794d3b-ba5c-4083-800f-0cefb6e721c7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6309 |
2023/Few-shot[[:space:]]Reranking[[:space:]]for[[:space:]]Multi-hop[[:space:]]QA[[:space:]]via[[:space:]]Language[[:space:]]Model[[:space:]]Prompting/d8f6ba4e-6c6c-4724-a558-a788be95bcd3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6307 |
2023/Few-shot[[:space:]]Event[[:space:]]Detection_[[:space:]]An[[:space:]]Empirical[[:space:]]Study[[:space:]]and[[:space:]]a[[:space:]]Unified[[:space:]]View/98804dde-83ff-470e-902c-85f308893eac_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6308 |
2023/Few-shot[[:space:]]In-context[[:space:]]Learning[[:space:]]on[[:space:]]Knowledge[[:space:]]Base[[:space:]]Question[[:space:]]Answering/d0794d3b-ba5c-4083-800f-0cefb6e721c7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6309 |
2023/Few-shot[[:space:]]Reranking[[:space:]]for[[:space:]]Multi-hop[[:space:]]QA[[:space:]]via[[:space:]]Language[[:space:]]Model[[:space:]]Prompting/d8f6ba4e-6c6c-4724-a558-a788be95bcd3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6310 |
+
2023/FiD-ICL_[[:space:]]A[[:space:]]Fusion-in-Decoder[[:space:]]Approach[[:space:]]for[[:space:]]Efficient[[:space:]]In-Context[[:space:]]Learning/7bc495d6-5709-4586-9c79-360a9cf4a076_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6311 |
+
2023/Finding[[:space:]]the[[:space:]]Pillars[[:space:]]of[[:space:]]Strength[[:space:]]for[[:space:]]Multi-Head[[:space:]]Attention/38358e14-3dcd-47b7-ae9c-67324c5b1765_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6312 |
+
2023/Finding[[:space:]]the[[:space:]]SWEET[[:space:]]Spot_[[:space:]]Analysis[[:space:]]and[[:space:]]Improvement[[:space:]]of[[:space:]]Adaptive[[:space:]]Inference[[:space:]]in[[:space:]]Low[[:space:]]Resource[[:space:]]Settings/299364f1-0f55-4167-82d9-b2dbc57d8e7b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6313 |
+
2023/Fine-tuning[[:space:]]Happens[[:space:]]in[[:space:]]Tiny[[:space:]]Subspaces_[[:space:]]Exploring[[:space:]]Intrinsic[[:space:]]Task-specific[[:space:]]Subspaces[[:space:]]of[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Models/02cdb8da-2abe-4d81-a26c-6d3cb079eafb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6314 |
+
2023/Forgotten[[:space:]]Knowledge_[[:space:]]Examining[[:space:]]the[[:space:]]Citational[[:space:]]Amnesia[[:space:]]in[[:space:]]NLP/aad7c0d8-3cef-4a9b-a451-aebedd7604ff_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6315 |
+
2023/FormNetV2_[[:space:]]Multimodal[[:space:]]Graph[[:space:]]Contrastive[[:space:]]Learning[[:space:]]for[[:space:]]Form[[:space:]]Document[[:space:]]Information[[:space:]]Extraction/374a8618-2dba-4970-9c92-9dbdb98b467b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6316 |
+
2023/Free[[:space:]]Lunch[[:space:]]for[[:space:]]Efficient[[:space:]]Textual[[:space:]]Commonsense[[:space:]]Integration[[:space:]]in[[:space:]]Language[[:space:]]Models/a325db9e-aab0-4f36-8d85-9ab6ad31543b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6317 |
+
2023/Free[[:space:]]Lunch_[[:space:]]Robust[[:space:]]Cross-Lingual[[:space:]]Transfer[[:space:]]via[[:space:]]Model[[:space:]]Checkpoint[[:space:]]Averaging/c65a65c3-e9ef-4905-b4b9-b1c5f595b48c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6318 |
+
2023/From[[:space:]]Characters[[:space:]]to[[:space:]]Words_[[:space:]]Hierarchical[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Model[[:space:]]for[[:space:]]Open-vocabulary[[:space:]]Language[[:space:]]Understanding/f4f9f366-5dd9-495c-abd1-8d340950a184_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6319 |
+
2023/From[[:space:]]Dogwhistles[[:space:]]to[[:space:]]Bullhorns_[[:space:]]Unveiling[[:space:]]Coded[[:space:]]Rhetoric[[:space:]]with[[:space:]]Language[[:space:]]Models/b071d935-2f78-4047-b2c2-bb00ac8ef623_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6320 |
+
2023/From[[:space:]]Key[[:space:]]Points[[:space:]]to[[:space:]]Key[[:space:]]Point[[:space:]]Hierarchy_[[:space:]]Structured[[:space:]]and[[:space:]]Expressive[[:space:]]Opinion[[:space:]]Summarization/0ad2e6c6-0465-4779-b837-081dfd6affa3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6321 |
+
2023/From[[:space:]]Pretraining[[:space:]]Data[[:space:]]to[[:space:]]Language[[:space:]]Models[[:space:]]to[[:space:]]Downstream[[:space:]]Tasks_[[:space:]]Tracking[[:space:]]the[[:space:]]Trails[[:space:]]of[[:space:]]Political[[:space:]]Biases[[:space:]]Leading[[:space:]]to[[:space:]]Unfair[[:space:]]NLP[[:space:]]Models/cef0b593-de3e-473e-a574-bf79663c87fc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6322 |
+
2023/From[[:space:]]Ultra-Fine[[:space:]]to[[:space:]]Fine_[[:space:]]Fine-tuning[[:space:]]Ultra-Fine[[:space:]]Entity[[:space:]]Typing[[:space:]]Models[[:space:]]to[[:space:]]Fine-grained/c55e4ab3-0040-4eca-93b1-9a9b346d3e80_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6323 |
+
2023/From[[:space:]]the[[:space:]]One,[[:space:]]Judge[[:space:]]of[[:space:]]the[[:space:]]Whole_[[:space:]]Typed[[:space:]]Entailment[[:space:]]Graph[[:space:]]Construction[[:space:]]with[[:space:]]Predicate[[:space:]]Generation/876fb0ee-8d23-4315-a0f5-d86bf061d9f5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6324 |
+
2023/FutureTOD_[[:space:]]Teaching[[:space:]]Future[[:space:]]Knowledge[[:space:]]to[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Model[[:space:]]for[[:space:]]Task-Oriented[[:space:]]Dialogue/047da146-ba64-48fc-a5e9-ed75055656c2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6325 |
+
2023/GEC-DePenD_[[:space:]]Non-Autoregressive[[:space:]]Grammatical[[:space:]]Error[[:space:]]Correction[[:space:]]with[[:space:]]Decoupled[[:space:]]Permutation[[:space:]]and[[:space:]]Decoding/67f6fd7e-d13b-4356-9d44-a85ba856c8a8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6326 |
+
2023/GENEVA_[[:space:]]Benchmarking[[:space:]]Generalizability[[:space:]]for[[:space:]]Event[[:space:]]Argument[[:space:]]Extraction[[:space:]]with[[:space:]]Hundreds[[:space:]]of[[:space:]]Event[[:space:]]Types[[:space:]]and[[:space:]]Argument[[:space:]]Roles/13acc483-c14a-43ea-ae58-7c52d4238c49_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6327 |
+
2023/GIFT_[[:space:]]Graph-Induced[[:space:]]Fine-Tuning[[:space:]]for[[:space:]]Multi-Party[[:space:]]Conversation[[:space:]]Understanding/35517877-e5b5-4f59-80aa-f6d5982fc7b5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6328 |
+
2023/GanLM_[[:space:]]Encoder-Decoder[[:space:]]Pre-training[[:space:]]with[[:space:]]an[[:space:]]Auxiliary[[:space:]]Discriminator/d55fc85e-5c0d-4306-8600-4800b6e7be8a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6329 |
+
2023/Generalizing[[:space:]]Backpropagation[[:space:]]for[[:space:]]Gradient-Based[[:space:]]Interpretability/a8201b77-6833-408a-bbf4-f6255ea6f420_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6330 |
+
2023/Generating[[:space:]]EDU[[:space:]]Extracts[[:space:]]for[[:space:]]Plan-Guided[[:space:]]Summary[[:space:]]Re-Ranking/a592d928-21b7-4d14-bbc1-188ad5571a26_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6331 |
+
2023/Generating[[:space:]]Hashtags[[:space:]]for[[:space:]]Short-form[[:space:]]Videos[[:space:]]with[[:space:]]Guided[[:space:]]Signals/d317377a-e874-4873-994c-65509e30449e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6332 |
+
2023/Generating[[:space:]]Structured[[:space:]]Pseudo[[:space:]]Labels[[:space:]]for[[:space:]]Noise-resistant[[:space:]]Zero-shot[[:space:]]Video[[:space:]]Sentence[[:space:]]Localization/b583b60f-5aef-423a-b77d-6c4a970fa879_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6333 |
+
2023/Generating[[:space:]]User-Engaging[[:space:]]News[[:space:]]Headlines/bdf8c139-8907-4019-84b9-94d8e088499d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6334 |
+
2023/Generating[[:space:]]Visual[[:space:]]Spatial[[:space:]]Description[[:space:]]via[[:space:]]Holistic[[:space:]]3D[[:space:]]Scene[[:space:]]Understanding/c4a0274c-f434-4383-85a0-34e227bf33d3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6335 |
+
2023/Generic[[:space:]]Temporal[[:space:]]Reasoning[[:space:]]with[[:space:]]Differential[[:space:]]Analysis[[:space:]]and[[:space:]]Explanation/20af3a48-6a9a-47c3-80af-85c2af7d6ed2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6336 |
+
2023/Gloss-Free[[:space:]]End-to-End[[:space:]]Sign[[:space:]]Language[[:space:]]Translation/c41ecb8b-70b9-48f8-923a-6a0c3f6f185a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6337 |
+
2023/Glot500_[[:space:]]Scaling[[:space:]]Multilingual[[:space:]]Corpora[[:space:]]and[[:space:]]Language[[:space:]]Models[[:space:]]to[[:space:]]500[[:space:]]Languages/6b9d3c90-e71b-408f-926f-54c24756d159_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6338 |
+
2023/Gradient-based[[:space:]]Intra-attention[[:space:]]Pruning[[:space:]]on[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Models/a06fe4c0-3bd2-4ac2-962c-79155e5b4846_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6339 |
+
2023/Graph-based[[:space:]]Relation[[:space:]]Mining[[:space:]]for[[:space:]]Context-free[[:space:]]Out-of-vocabulary[[:space:]]Word[[:space:]]Embedding[[:space:]]Learning/da074192-c5fb-4bc4-99a1-967538831140_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6340 |
+
2023/GreenKGC_[[:space:]]A[[:space:]]Lightweight[[:space:]]Knowledge[[:space:]]Graph[[:space:]]Completion[[:space:]]Method/fa509229-7837-401e-a26e-fe23400b96b4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6341 |
+
2023/Grounded[[:space:]]Multimodal[[:space:]]Named[[:space:]]Entity[[:space:]]Recognition[[:space:]]on[[:space:]]Social[[:space:]]Media/1ab9fc00-c46e-4ec0-92d4-ff31c1dafcc4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6342 |
+
2023/Grounding[[:space:]]Characters[[:space:]]and[[:space:]]Places[[:space:]]in[[:space:]]Narrative[[:space:]]Text/ad75ff9d-6707-424a-a5a4-2453a9200bc4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6343 |
+
2023/Guide[[:space:]]the[[:space:]]Many-to-One[[:space:]]Assignment_[[:space:]]Open[[:space:]]Information[[:space:]]Extraction[[:space:]]via[[:space:]]IoU-aware[[:space:]]Optimal[[:space:]]Transport/00b902bf-8370-4964-b663-8c864e2c6606_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6344 |
+
2023/Guiding[[:space:]]Computational[[:space:]]Stance[[:space:]]Detection[[:space:]]with[[:space:]]Expanded[[:space:]]Stance[[:space:]]Triangle[[:space:]]Framework/c2988da6-a241-477c-8f7d-7993fedea512_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6345 |
+
2023/HAHE_[[:space:]]Hierarchical[[:space:]]Attention[[:space:]]for[[:space:]]Hyper-Relational[[:space:]]Knowledge[[:space:]]Graphs[[:space:]]in[[:space:]]Global[[:space:]]and[[:space:]]Local[[:space:]]Level/5f8d032c-785d-4310-984b-8e6396380f63_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6346 |
+
2023/HAUSER_[[:space:]]Towards[[:space:]]Holistic[[:space:]]and[[:space:]]Automatic[[:space:]]Evaluation[[:space:]]of[[:space:]]Simile[[:space:]]Generation/f623667b-73b6-48cd-b02a-a99675eb80b8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6347 |
+
2023/HINT_[[:space:]]Hypernetwork[[:space:]]Instruction[[:space:]]Tuning[[:space:]]for[[:space:]]Efficient[[:space:]]Zero-[[:space:]]and[[:space:]]Few-Shot[[:space:]]Generalisation/b5513170-8ac8-4f5f-a11b-1fb71e815e9c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6348 |
+
2023/Hard[[:space:]]Sample[[:space:]]Aware[[:space:]]Prompt-Tuning/fe9dc30c-709b-4e69-9760-1d3cb57ab0f0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6349 |
+
2023/Hearing[[:space:]]Lips[[:space:]]in[[:space:]]Noise_[[:space:]]Universal[[:space:]]Viseme-Phoneme[[:space:]]Mapping[[:space:]]and[[:space:]]Transfer[[:space:]]for[[:space:]]Robust[[:space:]]Audio-Visual[[:space:]]Speech[[:space:]]Recognition/69a410d1-c2ca-4ede-978e-d71321d874e7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6350 |
+
2023/Helping[[:space:]]a[[:space:]]Friend[[:space:]]or[[:space:]]Supporting[[:space:]]a[[:space:]]Cause_[[:space:]]Disentangling[[:space:]]Active[[:space:]]and[[:space:]]Passive[[:space:]]Cosponsorship[[:space:]]in[[:space:]]the[[:space:]]U.S.[[:space:]]Congress/c53b2af2-6a46-422e-94aa-a70c46f5e353_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6351 |
+
2023/HermEs_[[:space:]]Interactive[[:space:]]Spreadsheet[[:space:]]Formula[[:space:]]Prediction[[:space:]]via[[:space:]]Hierarchical[[:space:]]Formulet[[:space:]]Expansion/df320451-0856-472d-9228-75da74d8d1a6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6352 |
+
2023/HiFi_[[:space:]]High-Information[[:space:]]Attention[[:space:]]Heads[[:space:]]Hold[[:space:]]for[[:space:]]Parameter-Efficient[[:space:]]Model[[:space:]]Adaptation/63f517c7-0224-4382-9251-28e6673c5115_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6353 |
+
2023/HiTIN_[[:space:]]Hierarchy-aware[[:space:]]Tree[[:space:]]Isomorphism[[:space:]]Network[[:space:]]for[[:space:]]Hierarchical[[:space:]]Text[[:space:]]Classification/4cf1d011-887c-4615-84a0-bd8eda770b70_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6354 |
+
2023/Hidden[[:space:]]Schema[[:space:]]Networks/3a37ef8e-4be9-4f30-a649-8cae55d053a3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6355 |
+
2023/Hierarchical[[:space:]]Verbalizer[[:space:]]for[[:space:]]Few-Shot[[:space:]]Hierarchical[[:space:]]Text[[:space:]]Classification/a3227d09-81d9-4beb-94af-5ab4fc49e7bc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6356 |
+
2023/Hints[[:space:]]on[[:space:]]the[[:space:]]data[[:space:]]for[[:space:]]language[[:space:]]modeling[[:space:]]of[[:space:]]synthetic[[:space:]]languages[[:space:]]with[[:space:]]transformers/a4051bf4-ce6d-4d5c-a5eb-c70a0652c755_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6357 |
+
2023/HistRED_[[:space:]]A[[:space:]]Historical[[:space:]]Document-Level[[:space:]]Relation[[:space:]]Extraction[[:space:]]Dataset/c297178f-f502-4116-b229-66a504a6cb21_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6358 |
+
2023/History[[:space:]]Semantic[[:space:]]Graph[[:space:]]Enhanced[[:space:]]Conversational[[:space:]]KBQA[[:space:]]with[[:space:]]Temporal[[:space:]]Information[[:space:]]Modeling/618b61e5-264d-4825-bef4-2b4bdde5195b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6359 |
+
2023/Holistic[[:space:]]Prediction[[:space:]]on[[:space:]]a[[:space:]]Time-Evolving[[:space:]]Attributed[[:space:]]Graph/886b154b-974f-4180-8475-4c56daaee8c2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6360 |
+
2023/Holographic[[:space:]]CCG[[:space:]]Parsing/c398ca54-b5bb-49fc-ae35-23c0968961e7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6361 |
+
2023/How[[:space:]]About[[:space:]]Kind[[:space:]]of[[:space:]]Generating[[:space:]]Hedges[[:space:]]using[[:space:]]End-to-End[[:space:]]Neural[[:space:]]Models_/36757ecb-4c4f-44f8-89a6-ddbefa02b641_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6362 |
+
2023/How[[:space:]]Do[[:space:]]In-Context[[:space:]]Examples[[:space:]]Affect[[:space:]]Compositional[[:space:]]Generalization_/a407c34b-7b87-4879-b635-ef7dd190bbd0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6363 |
+
2023/How[[:space:]]do[[:space:]]humans[[:space:]]perceive[[:space:]]adversarial[[:space:]]text_[[:space:]]A[[:space:]]reality[[:space:]]check[[:space:]]on[[:space:]]the[[:space:]]validity[[:space:]]and[[:space:]]naturalness[[:space:]]of[[:space:]]word-based[[:space:]]adversarial[[:space:]]attacks/d95f1d53-b933-4929-af2d-165c21589074_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6364 |
+
2023/How[[:space:]]poor[[:space:]]is[[:space:]]the[[:space:]]stimulus_[[:space:]]Evaluating[[:space:]]hierarchical[[:space:]]generalization[[:space:]]in[[:space:]]neural[[:space:]]networks[[:space:]]trained[[:space:]]on[[:space:]]child-directed[[:space:]]speech/cec2b93c-5251-41a5-9d24-2e63b103dc76_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6365 |
+
2023/How[[:space:]]to[[:space:]]Plant[[:space:]]Trees[[:space:]]in[[:space:]]Language[[:space:]]Models_[[:space:]]Data[[:space:]]and[[:space:]]Architectural[[:space:]]Effects[[:space:]]on[[:space:]]the[[:space:]]Emergence[[:space:]]of[[:space:]]Syntactic[[:space:]]Inductive[[:space:]]Biases/e2d7d808-003f-48a5-8bfd-f0abc266dc65_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6366 |
+
2023/HuCurl_[[:space:]]Human-induced[[:space:]]Curriculum[[:space:]]Discovery/6892cd90-d456-4e4a-b010-4f3ad96557a4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6367 |
+
2023/Human[[:space:]]Inspired[[:space:]]Progressive[[:space:]]Alignment[[:space:]]and[[:space:]]Comparative[[:space:]]Learning[[:space:]]for[[:space:]]Grounded[[:space:]]Word[[:space:]]Acquisition/b40eef47-5697-4d34-988b-f5e93532b547_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6368 |
+
2023/Human-in-the-loop[[:space:]]Evaluation[[:space:]]for[[:space:]]Early[[:space:]]Misinformation[[:space:]]Detection_[[:space:]]A[[:space:]]Case[[:space:]]Study[[:space:]]of[[:space:]]COVID-19[[:space:]]Treatments/e5be0ea9-db55-46d3-b5c7-70e5625cb3a6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6369 |
+
2023/HyPe_[[:space:]]Better[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Model[[:space:]]Fine-tuning[[:space:]]with[[:space:]]Hidden[[:space:]]Representation[[:space:]]Perturbation/3c38e049-bda1-44c1-95b6-f7d1c8440c5e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6370 |
+
2023/Hybrid[[:space:]]Knowledge[[:space:]]Transfer[[:space:]]for[[:space:]]Improved[[:space:]]Cross-Lingual[[:space:]]Event[[:space:]]Detection[[:space:]]via[[:space:]]Hierarchical[[:space:]]Sample[[:space:]]Selection/7c1c8683-50ab-453c-9b29-307cfb4cd6b1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6371 |
+
2023/Hybrid[[:space:]]Transducer[[:space:]]and[[:space:]]Attention[[:space:]]based[[:space:]]Encoder-Decoder[[:space:]]Modeling[[:space:]]for[[:space:]]Speech-to-Text[[:space:]]Tasks/69d3ffa0-174e-4913-b086-23515473c1e1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6372 |
+
2023/Hybrid[[:space:]]Uncertainty[[:space:]]Quantification[[:space:]]for[[:space:]]Selective[[:space:]]Text[[:space:]]Classification[[:space:]]in[[:space:]]Ambiguous[[:space:]]Tasks/7d371756-40b1-4bce-ac23-c66c03c0a50a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6373 |
+
2023/HyperMixer_[[:space:]]An[[:space:]]MLP-based[[:space:]]Low[[:space:]]Cost[[:space:]]Alternative[[:space:]]to[[:space:]]Transformers/63a68891-4fcc-4c4f-95f1-ebabee884114_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/7bc495d6-5709-4586-9c79-360a9cf4a076_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/7bc495d6-5709-4586-9c79-360a9cf4a076_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/7bc495d6-5709-4586-9c79-360a9cf4a076_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9362211749c9e78479e89b008698502972fc1a1d67a267fe1375f0b99d2e916
|
| 3 |
+
size 775036
|
2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75117611a24576c73d47130abadf2e48aaa968e4852685eaa93cee4c3851bc3f
|
| 3 |
+
size 1734216
|
2023/FiD-ICL_ A Fusion-in-Decoder Approach for Efficient In-Context Learning/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Finding the Pillars of Strength for Multi-Head Attention/38358e14-3dcd-47b7-ae9c-67324c5b1765_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Finding the Pillars of Strength for Multi-Head Attention/38358e14-3dcd-47b7-ae9c-67324c5b1765_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Finding the Pillars of Strength for Multi-Head Attention/38358e14-3dcd-47b7-ae9c-67324c5b1765_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07d22e6e4109417da7312a3a0fe60da72cfe62536f557baa8f41be8ae93a686d
|
| 3 |
+
size 746611
|
2023/Finding the Pillars of Strength for Multi-Head Attention/full.md
ADDED
|
@@ -0,0 +1,390 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Finding the Pillars of Strength for Multi-Head Attention
|
| 2 |
+
|
| 3 |
+
Jinjie Ni and Rui Mao and Zonglin Yang and Han Lei and Erik Cambria
|
| 4 |
+
|
| 5 |
+
Nanyang Technological University, Singapore
|
| 6 |
+
|
| 7 |
+
{jinjie001,leih0003}@e.ntu.edu.sg,
|
| 8 |
+
|
| 9 |
+
{rui.mao, zonglin.yang, cambria}@ntu.edu.sg
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Recent studies have revealed some issues of Multi-Head Attention (MHA), e.g., redundancy and over-parameterization. Specifically, the heads of MHA were originally designed to attend to information from different representation subspaces, whereas prior studies found that some attention heads likely learn similar features and can be pruned without harming performance. Inspired by the minimum-redundancy feature selection, we assume that focusing on the most representative and distinctive features with minimum resources can mitigate the above issues and lead to more effective and efficient MHAs. In particular, we propose Grouped Head Attention, trained with a self-supervised group constraint that group attention heads, where each group focuses on an essential but distinctive feature subset. We additionally propose a Voting-to-Stay procedure to remove redundant heads, thus achieving a transformer with lighter weights. Moreover, our method achieves significant performance gains on three well-established tasks while considerably compressing parameters.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Transformers have shown promising performance across various tasks. However, they have some issues, e.g., redundancy and over-parameterization, which is mainly caused by Multi-Head Attention (MHA) (Michel et al., 2019; Voita et al., 2019) and Feed-Forward Network (FFN) (Sukhbaatar et al., 2019; Wu et al., 2019, 2020) of transformer. We aim to mitigate the redundancy and over-parameterization issues by optimizing the MHA module. The multi-heads were originally designed to attend to different representation subspaces of input (Vaswani et al., 2017). However, prior works (Michel et al., 2019; Voita et al., 2019) have shown that the attention heads are highly redundant and over-parameterized after training because some heads can be switched off with a negligible performance drop.
|
| 18 |
+
|
| 19 |
+
Such an issue is probably caused by their parallel design: the heads naturally work in the same way and likely attend to similar features (Cordonnier et al., 2020). The existing redundancy optimization methods are mainly based on homogenization, diversification, and head significance. However, they all have some limits. (1) The homogenization-based methods mitigate redundancy and over-parameterization by making heads similar and removing unnecessary parameters. Cordonnier et al. (2020) homogenized attention heads by sharing most weights between all heads, which reduced the redundant parameters but sacrificed the performance somewhat because of the lack of diversity. (2) The diversification-based methods diversify the heads to enrich features and reduce the inter-head redundancy. Li et al. (2018) found that diversifying attention heads by adding a regularization could force MHA to reduce inter-head information redundancy, yielding performance gains in Machine Translation. However, such strategy that retains all feature subsets is suboptimal, because it does not address the issue that MHA is over-parameterized. (3) The significance-based methods (Michel et al., 2019; Voita et al., 2019; Li et al., 2021) learn significance scores for the heads to prune unimportant ones. However, the retained important heads still remain inter-head redundancy without diversifying them.
|
| 20 |
+
|
| 21 |
+
Considering the issues of the above-mentioned methods, we hypothesize that attending to the most representative and distinctive feature subsets with minimum resources leads to more effective and efficient MHAs, which is inspired by the minimum-redundancy feature selection (Cordonnier et al., 2020). Accordingly, we propose a divide-and-conquer strategy, including Group-Constrained Training (GCT) and Voting-to-Stay (V2S), to achieve the setting of our assumption and mitigate the above-mentioned issues. We illustrate them below.
|
| 22 |
+
|
| 23 |
+
We first propose a strategy to group and distinguish attention heads, where a Grouped Head Attention (GHA) is obtained via the self-supervised GCT. By encouraging homogenization within a group and diversification between groups, the MHA is forced to divide its heads to work in several separate groups, where each group focuses on an essential but unique feature subset, being in line with the setting of our assumption. Note that the redundancy exists when the resources deployed by the model are more than enough to process current information (Cordonnier et al., 2020). GHA reduces the redundancy in two aspects:
|
| 24 |
+
|
| 25 |
+
- The intra-group homogenization reduces redundancy by encouraging similar intra-group heads and only retaining the most representative one later to lower the resource deployment.
|
| 26 |
+
- The inter-group diversification reduces redundancy by forcing heads to attend to more diversified features (with less overlap between heads) so that the unique information to process increases and matches the resources deployed.
|
| 27 |
+
|
| 28 |
+
Next, we show that GHA-PS (GHA with the Pillar of Strength), a lighter-weight GHA, can be achieved by excluding the redundant heads of GHA via the V2S procedure. V2S culls the redundant heads that share similar patterns with the most representative head (PS head) of a group, which is selected by voting on different training batches. Note that upon the convergence of the GCT, the heads are highly homogenized within a group, thus being redundant because they process similar information. As a result, once the redundant heads are culled, the PS heads can still achieve the essential utility of the original attention layer and yield comparable performance to the unculled model. The Lottery Ticket hypothesis (Frankle and Carbin, 2019) argues that subnetworks in an over-parameterized neural network can converge faster and achieve comparable or better performance than the original network. Our GHA-PS achieving better results is also in line with this hypothesis.
|
| 29 |
+
|
| 30 |
+
Such a divide-and-conquer combination resolves the issues of previous redundancy optimization methods: (1) Our model achieves better parameter efficiency, resolving the issue of previous diversification-based methods; (2) The feature diversity is guaranteed and the inter-head redundancy is reduced, resolving the problems of previous homogenization- and significance-based methods.
|
| 31 |
+
|
| 32 |
+
We evaluate our method on three benchmarking tasks. We denote the corresponding transformer architectures of GHA and GHA-PS as Grouped Head Transformers (GHT) and Grouped Head Transformers with the Pillars of Strength (GHT-PS), respectively. GHT and GHT-PS achieve significant improvements over the strong baselines in Machine Translation (MT) BLEU scores $(+3.8\%)$ and $+4.4\%$ averaged on 7 datasets), Language Modeling (LM) perplexity $(-2.8\%)$ and $-2.9\%$ ), and Abstractive summarization (AS) F1-Rouge $(+6.7\%)$ and $+7.0\%$ on average). GHT-PS exhibits higher efficiency in model size, inference speed, and floating-point operations (FLOPs). The light architecture of GHT-PS reduces $63.6\%$ parameters of the vanilla transformer and yields comparable performance. The key contributions of our work are threefold:
|
| 33 |
+
|
| 34 |
+
- We find that, in a certain range, higher compactness of attention heads (i.e., the intra-group heads become closer to each other and the inter-group ones become farther) improves MHA's performance, forcing MHA to focus on the most representative and distinctive features. It provides guidance for future architectural designs of MHA.
|
| 35 |
+
- We propose a divide-and-conquer strategy that consists of GCT and V2S. It mitigates the redundancy and over-parameterization issues of MHA. Our method uses fewer parameters and achieves better performance, outperforming the existing MHA redundancy/parameter reduction methods.
|
| 36 |
+
- We verify our methods on three well-established NLP tasks. The superior results on datasets with multiple languages, domains, and data sizes demonstrate the effectiveness of our method.
|
| 37 |
+
|
| 38 |
+
# 2 Related Work
|
| 39 |
+
|
| 40 |
+
Parameter efficiency. Different methods were proposed to achieve lightweight transformers: (1) replacing attention with lightweight modules, e.g., convolution modules, such as Dynamic Conv (Wu et al., 2019) and Lite Transformer (Wu et al., 2020); (2) removing or replacing the feed-forward layers, such as Sukhbaatar et al. (2019) and Wu et al. (2020); (3) pruning the model, such as Michel et al. (2019), Voita et al. (2019), and Li et al. (2021).
|
| 41 |
+
|
| 42 |
+
Modified multi-head mechanism. Ahmed et al. (2017) learned to weight the projected output of different heads, performing weighted sum over them. Li et al. (2019) aggregated the output of different heads by dynamic routing; Cui et al. (2019) used different attention mechanisms, e.g., global/local and forward/backward attention for different heads; Shazeer et al. (2020) mixed different heads before and after the softmax operation in an attention function to achieve communication between heads.
|
| 43 |
+
|
| 44 |
+
Head redundancy optimization. Michel et al. (2019) and Voita et al. (2019) found that only a subset of the attention heads have significant utilities in transformer, where the important heads could be identified by Expected Sensitivity and Layer-wise Relevance Propagation (LRP) (Ding et al., 2017). Upon this, Li et al. (2021) learned per-head importance scores and pruned the heads. Cordonnier et al. (2020) homogenized the attention heads by sharing a part of the weights between heads, which lowered the number of parameters but sacrificed performance. Li et al. (2018) found that diversifying attention heads by adding a regularization can force MHA to reduce inter-head redundancy, yielding performance gains for Machine Translation. However, previous methods either traded performance for efficiency or retained extra parameters.
|
| 45 |
+
|
| 46 |
+
# 3 Methodology
|
| 47 |
+
|
| 48 |
+
There are two core components in our method, namely the Group-Constrained Training (GCT) and the Voting-to-Stay (V2S) procedure. GHA (Figure 1) is developed with GCT that removes head redundancy; GHA-PS is developed by removing the redundant parameters of GHA in V2S. In this section, we detail the process of developing the GHA and finding its Pillars of Strength (PS).
|
| 49 |
+
|
| 50 |
+
# 3.1 Grouped Head Attention with Hidden Units
|
| 51 |
+
|
| 52 |
+
First, we detail the core module of GHT, the GHA with hidden units, which is built based on MHA via the GCT. The GCT divides the attention heads of MHA into several groups and makes heads within a group become more similar, whereas heads between groups become more different. Thus, MHA is forced to divide its heads to work in several separate groups, where each group focuses on an essential but unique feature subset to reduce head redundancy. We will show the effectiveness in § 5.
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
Figure 1: The Grouped Head Attention. The heads in a group are under self-supervision of the discovered group hidden units $\mathbf{Z}$ (Eq.4). The non-PS heads (dashed gray boxes in a group) will be culled in the VS procedure (Algorithm 1). $S_{k}$ denotes the $k$ -th representation subspace; $\mathrm{FM}_C$ denotes the $C$ -th feature map group. The output of GHA is omitted for simplicity.
|
| 56 |
+
|
| 57 |
+
Given a transformer model $f(\mathbf{x};\theta)$ with $n$ attention layers, the set of heads at attention layer $l$ is denoted as $\mathbf{H}_l = \{\mathbf{h}_{1,l},\dots,\mathbf{h}_{k,l}\}$ , where $k$ is the number of heads. The outputs of the attention heads are concatenated and projected with $W^{out}$ where the $i$ -th head output $\mathbf{o}_{i,l}$ in layer $l$ results from the computation of the projection matrices $W_{i,l}^{\mathbf{Q}}$ , $W_{i,l}^{\mathbf{K}}$ , and $W_{i,l}^{\mathbf{V}}$ of this head:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
M H A _ {l} (\mathbf {Q}, \mathbf {K}, \mathbf {V}) = C o n c a t e \left(\mathbf {o} _ {1, l}, \dots , \mathbf {o} _ {k, l}\right) W ^ {\text {o u t}} \tag {1}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\mathbf {o} _ {i, l} = \operatorname {s o f t m a x} \left(\frac {\left(\mathbf {Q} W _ {i , l} ^ {\mathbf {Q}}\right) \left(\mathbf {K} W _ {i , l} ^ {\mathbf {K}}\right) ^ {T}}{\sqrt {d _ {k}}}\right) \left(\mathbf {V} W _ {i, l} ^ {\mathbf {V}}\right). \tag {2}
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
Three feature maps (FMs) of GHA are extracted for the self-supervised GCT: (1) the result of $\mathbf{V}W_{l}^{\mathbf{V}}$ , denoted as $\hat{\mathbf{V}}_l = \{\mathbf{v}_{1,l},\dots,\mathbf{v}_{k,l}\}$ (the value FM); (2) the attention weights of the $l$ -th layer, denoted as $\mathbf{A}_l = \{\mathbf{a}_{1,l},\dots,\mathbf{a}_{k,l}\}$ (the attention FM); (3) the output of the $l$ -th layer before the output projection $W^{out}$ , denoted as $\mathbf{O}_l = \{\mathbf{o}_{1,l},\dots,\mathbf{o}_{k,l}\}$ (the head output FM). Moreover, $\hat{\mathbf{V}} = \{\hat{\mathbf{V}}_1,\dots,\hat{\mathbf{V}}_l\}$ , $\mathbf{A} = \{\mathbf{A}_1,\dots,\mathbf{A}_l\}$ , $\mathbf{O} = \{\mathbf{O}_1,\dots,\mathbf{O}_l\}$ . Given the FMs, a Hidden Unit Discovery System (HUDS) $\Omega$ assigns a hidden unit $\mathbf{z}_{i,l}^j$ for each head to represent its group property, where $i$ denotes the $i$ -th head and $j$ denotes the $j$ -th group hidden unit. $\mathbf{z}_{i,l}^j \in \hat{\mathbf{Z}}_l$ , where $\hat{\mathbf{Z}}_l = \{\mathbf{z}_l^1,\dots,\mathbf{z}_l^C\}$ represents the hidden unit candidates, and the hidden units assigned to the heads are denoted as $\mathbf{Z}_l = \{\mathbf{z}_{i,l},\dots,\mathbf{z}_{i,l}\}$ .
|
| 68 |
+
|
| 69 |
+
$\mathbf{Z}_l$ is discovered by the HUDS $\Omega$ : $\mathbf{Z}_l = \Omega(\mathbf{E}_l)$ , where $\mathbf{E}_l$ denotes either one of the $\hat{\mathbf{V}}_l$ , $\mathbf{A}_l$ , or $\mathbf{O}_l$ . Here $\Omega(\cdot)$ is an unsupervised algorithm that divides the heads into $C$ groups given their FMs, such as $\mathrm{K}$ -means<sup>2</sup>:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\Omega (\mathbf {E} _ {l}) = \arg \min _ {\mathbf {Z} _ {l}} \sum_ {i = 1} ^ {C} \sum_ {\mathbf {x} \in \hat {\mathbf {E}} _ {l} ^ {i}} | | \mathbf {x} - \boldsymbol {\mu} _ {i} | | ^ {2}, (3)
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $\hat{\mathbf{E}}_l^i$ is the set of feature maps of the $i$ -th head group in the $l$ -th attention layer. Then, the feature map groups of the $l$ -th attention layer are denoted as $\hat{\mathbf{E}}_l = \{\hat{\mathbf{E}}_l^1,\dots,\hat{\mathbf{E}}_l^i,\dots,\hat{\mathbf{E}}_l^C\}$ . $\mu_i$ is the mean of the feature map vectors in $\hat{\mathbf{E}}_l^i$ . The hidden units $\mathbf{Z} = \{\mathbf{Z}_1,\dots,\mathbf{Z}_l\}$ are $C$ -class categorical variables (Eq.4(A)) or continuous vectors (Eq.4(B)) to supervise the GCT. The objective of the self-supervised GCT is termed as:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\begin{array}{l} L _ {z} (\mathbf {f}; \mathbf {A}, \hat {\mathbf {V}}, \mathbf {O}, \mathbf {Z}) = \\ \left\{ \begin{array}{l} - \frac {1}{k n} \alpha \sum_ {l = 1} ^ {n} \sum_ {i = 1} ^ {k} \log p _ {z} \left(\mathbf {z} _ {i, l} \mid \mathbf {v} _ {i, l}, \mathbf {a} _ {i, l}, \mathbf {o} _ {i, l}\right) + \\ \frac {1}{(C - 1) k n} \beta \sum_ {l = 1} ^ {n} \sum_ {i = 1} ^ {k} \sum_ {j _ {2} \neq j _ {1}} \log p _ {z} \left(\mathbf {z} _ {l} ^ {j _ {2}} \mid \mathbf {v} _ {i, l} ^ {j _ {1}}, \mathbf {a} _ {i, l} ^ {j _ {1}}, \mathbf {o} _ {i, l} ^ {j _ {1}}\right) \\ \frac {1}{k n} \alpha \sum_ {l = 1} ^ {n} \sum_ {i = 1} ^ {k} \varphi \left(\mathbf {v} _ {i, l}, \mathbf {a} _ {i, l}, \mathbf {o} _ {i, l}; \mathbf {z} _ {i, l}\right) - \\ \frac {1}{\binom {C} {2} n} \beta \sum_ {l = 1} ^ {n} \sum_ {j _ {1} = 1} ^ {C - 1} \sum_ {j _ {2} = j _ {1} + 1} ^ {C} \varphi \left(\mathbf {z} _ {l} ^ {j _ {1}}; \mathbf {z} _ {l} ^ {j _ {2}}\right) \end{array} \right. \tag {B4} \\ \end{array}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
Either when $\mathbf{Z}$ are categorical variables (Eq.4(A)) or continuous vectors (Eq.4(B)), the objective is composed of a homogenization term and a diversification term $^3$ . $\mathbf{v}_{i,l}^j$ , $\mathbf{a}_{i,l}^j$ , and $\mathbf{o}_{i,l}^j$ denote the feature maps of the $i$ -th head belonging to the $j$ -th group. $p_z(\mathbf{z}_{i,l}|\mathbf{v}_{i,l},\mathbf{a}_{i,l},\mathbf{o}_{i,l})$ denotes the predicted probability of the assigned group hidden variable $\mathbf{z}_{i,l}$ , given $\mathbf{v}_{i,l}$ , $\mathbf{a}_{i,l}$ , and $\mathbf{o}_{i,l}$ . $\varphi (\mathbf{x};\mathbf{y})$ denotes a cosine similarity measurement between $\mathbf{x}$ and $\mathbf{y}$ (following Li et al. (2018)). $\varphi (\mathbf{v}_{i,l},\mathbf{a}_{i,l},\mathbf{o}_{i,l};\mathbf{z}_{i,l}) = \tau_1\varphi (\mathbf{v}_{i,l};\mathbf{z}_{i,l}) + \tau_2\varphi (\mathbf{a}_{i,l};\mathbf{z}_{i,l}) + \tau_3\varphi (\mathbf{o}_{i,l};\mathbf{z}_{i,l})$ where $\tau$ is a coefficient, determined by the specific settings for each dataset & task. When $\mathbf{Z}$ are categorical variables, the grouping is a classification task whose classification heads project the output into $C$ classes; when $\mathbf{Z}$ are continuous vectors, the grouping process is a metric learning task whose
|
| 82 |
+
|
| 83 |
+
similarity computations are conducted between $\mathbf{Z}$ and the projected FM representations. In both conditions, GHA is supervised by $\mathbf{Z}$ to make the heads in the same group yield similar patterns, whereas those in different groups repulse from each other. The overall objective is given by $L = L_{t} + L_{z}$ , where $L_{t}$ is the task-specific objective.
|
| 84 |
+
|
| 85 |
+
# 3.2 The Pillars of Strength
|
| 86 |
+
|
| 87 |
+
Being consistent with Lottery Ticket hypothesis (Frankle and Carbin, 2019), we establish the GHT-PS from GHT as its subnetwork by removing redundant heads from GHA to achieve higher parameter efficiency. We propose the V2S procedure to find the Pillars of Strength (PS) heads that constitute the core of the GHA and remove other heads. We first describe the V2S roughly. In GHA, the heads within each group exhibit similar patterns upon the convergence of the Group-Constrained Training (GCT). Then, we only keep the heads with the most explicit group patterns (the PS heads), and switch off the other ones within the same group via V2S. The main idea of V2S is to vote on all heads of the GHA, and only retain one head for each group – the head receiving the most votes. Specifically, it takes an entire epoch to collect the layer-wise votes $\mathbf{m}_l^b\in \{0,1\} ^k$ from the whole training set (each data batch $b$ creates one layer-wise vote $\mathbf{m}_l^b$ per attention layer), where $k$ denotes the head number; 0 indicates that the corresponding head should be switched off and 1 indicates that a head is retained.
|
| 88 |
+
|
| 89 |
+
We assume that there are $B$ mini-batches in the training set. Then, each attention layer receives $B$ layer-wise votes within which each head-wise vote is denoted by either 0 or 1. For each group, the head receiving the most '1's are assigned a '1' in the final head mask $\mathbf{m}_l \in \{0,1\}^k$ for attention layer $l$ , indicating that this head will be retained. Following Michel et al. (2019) and Voita et al. (2019), we mask out the output of heads as the equivalent operation of head removal<sup>4</sup>. The V2S procedure is outlined in Algorithm 1. We detail some of its definitions below. (1) $\rho$ indicates the full convergence of GHT, i.e., the hidden units found by $\Omega$ have a center shift less than a threshold. (2) In Step 7-9, given feature maps $\hat{\mathbf{V}}_l$ , $\mathbf{A}_l$ , and $\mathbf{O}_l$ of the $l$ -th attention layer, the vote vectors $\mathbf{m}_{l,v}^b$ , $\mathbf{m}_{l,a}^b$ , and $\mathbf{m}_{l,o}^b \in \{0,1\}^k$ are determined by the group pattern scores $\eta_{i,l}$ of each head, indicating the explicitness of group patterns.
|
| 90 |
+
|
| 91 |
+
Algorithm 1 The Voting-to-Stay (V2S) algorithm
|
| 92 |
+
1: Procedure Voting-to-Stay(f, $\hat{\mathbf{V}}$ , A, O, Z)
|
| 93 |
+
2: if satisfy $\rho$ , and $\mathbf{m}$ is none then
|
| 94 |
+
3: Start voting epoch; Freeze $\mathbf{f}$ .
|
| 95 |
+
4: $\Gamma_l \gets [ ]$ $\triangleright$ Creat $\Gamma_l$ to store votes
|
| 96 |
+
5: for batch $b$ in $B$ training batches do
|
| 97 |
+
6: for layer $l$ in $L$ layers do
|
| 98 |
+
7: for $\mathbf{E}_l$ in $\{\hat{\mathbf{V}}_l, \mathbf{A}_l, \mathbf{O}_l\}$ do
|
| 99 |
+
8: Based on $\eta_l = \{\eta_{1,l}, \dots, \eta_{1,k}\}$ ,
|
| 100 |
+
9: create $\mathbf{m}_{l,v}^b$ , $\mathbf{m}_{l,a}^b$ , $\mathbf{m}_{l,o}^b$ .
|
| 101 |
+
10: Add $\mathbf{m}_{l,v}^b$ , $\mathbf{m}_{l,a}^b$ , $\mathbf{m}_{l,o}^b$ to $\Gamma_l$ .
|
| 102 |
+
11: for $l$ in $n$ do $\triangleright$ Vote at each attn layer
|
| 103 |
+
12: $\mathbf{m}_l \gets VOTE(\Gamma_l)$
|
| 104 |
+
13: $\mathbf{m} \gets [\mathbf{m}_1, \dots, \mathbf{m}_n]$ $\triangleright$ Stack layer votes
|
| 105 |
+
14: Unfreeze $\mathbf{f}$ ; end voting epoch.
|
| 106 |
+
15: $\mathbf{f} = \mathbf{f} \odot \mathbf{m} \triangleright$ Mask GHT outputs with $\mathbf{m}$
|
| 107 |
+
|
| 108 |
+
We set the corresponding digit in the vote vectors as 1 for the head achieving the highest $\eta_{i,l}$ in its group, indicating the most representative head of the group. Here $\eta_{i,l} = p_z(\mathbf{z}_{i,l}|\mathbf{e}_{i,l})$ if $\mathbf{z}$ is categorical; otherwise $\eta_{i,l} = -\varphi (\mathbf{e}_{i,l};\mathbf{z}_{i,l})$ . $\mathbf{e}_{i,l}$ denotes the $i$ -th head feature map (either one of the $\mathbf{v}_{i,l}$ , $\mathbf{a}_{i,l}$ , or $\mathbf{o}_{i,l}$ ). (3) VOTE means counting the '1's for each head based on the $0-1$ votes in $\Gamma_l$ and only keeping the heads with the highest counts<sup>5</sup>. After V2S, a finetuning is applied to adapt the pruned network.
|
| 109 |
+
|
| 110 |
+
GHT-PS compresses considerable parameters. In the case of two head groups, GHT-PS reduces $75\%$ parameters for an attention layer and $32.1\%$ for the entire model<sup>6</sup>. We will show that V2S removing non-PS heads does not sacrifice model performance. Instead, it brings accuracy gains in some cases and improves inference speed.
|
| 111 |
+
|
| 112 |
+
# 4 Experimental Setup
|
| 113 |
+
|
| 114 |
+
In this section, we detail the key architectural configurations. Further training, model, dataset & evaluation setups are detailed in A.1, A.2, & A.3. We follow the transformer of Vaswani et al. (2017) as a backbone architecture for all datasets and tasks in our experiments. Following Wu et al. (2019, 2020), for Machine Translation and Abstractive Summarization, we adopt the same 8-head encoder-decoder architecture with 6 layers for both encoder
|
| 115 |
+
|
| 116 |
+
and decoder, where the model dimension $d_{model} = 512$ and feed-forward dimension $d_f = 2048$ . For LM, we adopt the 16-head decoder-only architecture with 16 layers, where the model dimension $d_{model} = 1024$ and feed-forward dimension $d_f = 4096$ . The layer normalization is applied before the residual connection of each layer. The parameters of decoder input and output projections are shared. Our models are based on fairseq (Ott et al., 2019) implementations.
|
| 117 |
+
|
| 118 |
+
We perform the GCT as a metric learning task because it does not introduce additional projection layers when the shapes of similarity inputs are identical (Eq.4(B)), which makes GHT weight-lighter. In addition, it performs better in our experiments compared to the classification-based grouping.
|
| 119 |
+
|
| 120 |
+
# 5 Results and Analysis
|
| 121 |
+
|
| 122 |
+
# 5.1 Machine Translation
|
| 123 |
+
|
| 124 |
+
Ours vs. vanilla transformer. We first report results by comparing GHT and GHT-PS with the vanilla transformer (Vaswani et al., 2017) which is the backbone of our model. As shown in Table 1, the models are compared at different parameter levels<sup>7</sup>. GHT does not have weight reduction, keeping the same parameter size as the vanilla transformer (44M, the same setting as transformer base (Vaswani et al., 2017)). In contrast, GHT-PS is compressed to 30M parameters via V2S. For a fair comparison, we first compare GHT-PS with two lite architectures, Transformer-Lite1 and Transformer-Lite2, whose parameter numbers are 30M as well. Keeping other settings unchanged, the encoder and decoder of Transformer-Lite1 are reduced to 4 layers, respectively. Transformer-Lite2 reduces the model dimension $d_{model}$ to 424, and $d_f$ to 1696.
|
| 125 |
+
|
| 126 |
+
GHT and GHT-PS consistently and significantly outperform their backbone models at the same parameter level across all datasets. On average, the GHT surpasses 44M vanilla transformer by $3.8\%$ in BLEU (Papineni et al., 2002); GHT-PS surpasses Lite1 and Lite2 by $4.9\%$ and $4.4\%$ , respectively. Although GHT-PS reduces $32.1\%$ parameters, it significantly outperforms both 44M and 30M vanilla transformers, which is comparable to GHT on all datasets. It shows that V2S reduces the parameter size of the original transformer without sacrificing accuracy on MT. Efficiency is analyzed later.
|
| 127 |
+
|
| 128 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Param ↓</td><td rowspan="2">Inference Speed ↑</td><td rowspan="2">FLOPs ↓</td><td colspan="2">BLEU ↑</td><td colspan="3">IWSLT</td><td colspan="2">WMT</td></tr><tr><td>de-en</td><td>it-en</td><td>en-de</td><td>en-it</td><td>en-fr</td><td>en-de</td><td>en-fr</td></tr><tr><td>Vanilla Transformer</td><td>44M</td><td>1012.1 sent/s</td><td>1996M</td><td>34.4</td><td>32.3</td><td>28.0</td><td>30.8</td><td>40.1</td><td>27.3</td><td>38.1</td></tr><tr><td>GHT (ours)</td><td>44M</td><td>1016.4 sent/s</td><td>1996M</td><td>35.4</td><td>32.8</td><td>29.1</td><td>31.6</td><td>41.5</td><td>28.6</td><td>40.7</td></tr><tr><td>Transformer-Lite1</td><td>30M</td><td>1175.4 sent/s</td><td>1549M</td><td>33.8</td><td>31.9</td><td>27.9</td><td>29.3</td><td>39.9</td><td>26.9</td><td>37.7</td></tr><tr><td>Transformer-Lite2</td><td>30M</td><td>1108.7 sent/s</td><td>1465M</td><td>34.0</td><td>32.2</td><td>28.2</td><td>29.5</td><td>40.0</td><td>26.7</td><td>37.8</td></tr><tr><td>GHT-PS (ours)</td><td>30M</td><td>1122.1 sent/s</td><td>1558M</td><td>35.2</td><td>32.7</td><td>28.9</td><td>31.6</td><td>41.4</td><td>28.2</td><td>40.5</td></tr></table>
|
| 129 |
+
|
| 130 |
+
Table 1: Benchmark with vanilla transformer (backbone) on IWSLT and WMT Machine Translation datasets, measured by BLEU. All improvements are statistically significant with $p < 0.05$ under t-test.
|
| 131 |
+
|
| 132 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Param ↓</td><td rowspan="2">Inference Speed ↑</td><td rowspan="2">FLOPs ↓</td><td colspan="2">BLEU ↑</td><td colspan="4">IWSLT</td><td colspan="2">WMT</td></tr><tr><td>de-en</td><td>it-en</td><td>en-de</td><td>en-it</td><td>en-fr</td><td>en-de</td><td>en-fr</td><td></td></tr><tr><td>Cordonnier et al. (2020)</td><td>44M</td><td>416.6 sent/s</td><td>2054M</td><td>34.4</td><td>31.8</td><td>28.2</td><td>31.0</td><td>40.7</td><td>27.6</td><td>38.5</td><td></td></tr><tr><td>Li et al. (2018)</td><td>44M</td><td>1011.2 sent/s</td><td>1996M</td><td>34.7</td><td>31.8</td><td>28.5</td><td>30.7</td><td>40.7</td><td>27.3</td><td>39.3</td><td></td></tr><tr><td>GHT (ours)</td><td>44M</td><td>1016.4 sent/s</td><td>1996M</td><td>35.4*</td><td>32.8*</td><td>29.1*</td><td>31.6*</td><td>41.5*</td><td>28.6*</td><td>40.7*</td><td></td></tr><tr><td>Voita et al. (2019)</td><td>30M</td><td>1099.1 sent/s</td><td>1558M</td><td>32.2</td><td>30.8</td><td>26.5</td><td>30.3</td><td>39.8</td><td>22.0</td><td>34.0</td><td></td></tr><tr><td>Li et al. (2021)</td><td>30M</td><td>1116.9 sent/s</td><td>1558M</td><td>33.2</td><td>31.3</td><td>27.5</td><td>30.0</td><td>39.7</td><td>20.5</td><td>33.6</td><td></td></tr><tr><td>Dynamic conv</td><td>30M</td><td>1050.2 sent/s</td><td>1615M</td><td>34.8</td><td>32.7</td><td>28.7</td><td>31.1</td><td>40.6</td><td>24.0</td><td>36.5</td><td></td></tr><tr><td>Lite Transformer</td><td>30M</td><td>1096.6 sent/s</td><td>1809M</td><td>33.3</td><td>31.4</td><td>27.5</td><td>29.8</td><td>39.4</td><td>24.9</td><td>37.4</td><td></td></tr><tr><td>GHT-PS (ours)</td><td>30M</td><td>1122.1 sent/s</td><td>1558M</td><td>35.2*</td><td>32.7</td><td>28.9*</td><td>31.6*</td><td>41.4*</td><td>28.2*</td><td>40.5*</td><td></td></tr></table>
|
| 133 |
+
|
| 134 |
+
Ours vs. efficient attention models. We compare GHT with two state-of-the-art (SOTA) MHA redundancy optimization baselines. Cordonnier et al. (2020) and Li et al. (2018) are respectively homogenization- and diversification-based methods. In addition, we compare GHT-PS with four SOTA baselines that made major contributions to attention parameter compression and redundancy optimization $^{8}$ . Voita et al. (2019) and Li et al. (2021) are significance-based pruning methods. Dynamic Conv (Wu et al., 2019) and Lite Transformer (Wu et al., 2020) modify the MHA arch to reduce parameters.
|
| 135 |
+
|
| 136 |
+
Table 2 shows that GHT outperforms all its baselines on all datasets, exceeding the strongest baseline by $2.9\%$ in averaged BLEU scores. GHT-PS outperforms all its baselines on 6 out of 7 datasets, exceeding the strongest baseline by $4.4\%$ on average. Model compression of the baselines may sacrifice performance (especially on large datasets, e.g., WMT en-de and en-fr), while GHT-PS is al
|
| 137 |
+
|
| 138 |
+
most not affected by the parameter reduction, even surpassing GHT's baselines with 44M parameters.
|
| 139 |
+
|
| 140 |
+
Table 2: Benchmark with state-of-the-art MHA redundancy/parameter optimization baselines on IWSLT and WMT Machine Translation datasets at the same parameter level, measured by BLEU. * denotes the improvement is statistical significant with $p < 0.05$ under t-test.
|
| 141 |
+
|
| 142 |
+
<table><tr><td rowspan="2">Model</td><td colspan="5">BLEU ↑</td></tr><tr><td>de-en</td><td>it-en</td><td>en-de</td><td>en-it</td><td>en-fr</td></tr><tr><td>GHT</td><td>35.4</td><td>32.8</td><td>29.1</td><td>31.6</td><td>41.5</td></tr><tr><td>- w/o Diversifying</td><td>34.7</td><td>31.8</td><td>28.5</td><td>30.7</td><td>40.7</td></tr><tr><td>- w/o Homologizing</td><td>34.3</td><td>32.0</td><td>28.2</td><td>30.9</td><td>40.2</td></tr><tr><td>GHT-PS</td><td>35.2</td><td>32.7</td><td>28.9</td><td>31.6</td><td>41.4</td></tr><tr><td>- w/o GCT</td><td>33.8</td><td>31.9</td><td>28.1</td><td>30.5</td><td>39.8</td></tr><tr><td>- w/o GC</td><td>34.0</td><td>32.0</td><td>28.4</td><td>31.0</td><td>40.2</td></tr><tr><td>- w/o HUDS</td><td>33.7</td><td>32.0</td><td>28.1</td><td>30.9</td><td>40.3</td></tr><tr><td>- w/o PS stay</td><td>33.6</td><td>31.7</td><td>27.9</td><td>30.7</td><td>40.2</td></tr><tr><td>- w/ stage 2 GC</td><td>33.2</td><td>31.8</td><td>28.1</td><td>30.8</td><td>40.3</td></tr><tr><td>- w/ stage 1& 2 GC</td><td>33.4</td><td>31.9</td><td>27.7</td><td>30.6</td><td>40.2</td></tr></table>
|
| 143 |
+
|
| 144 |
+
Table 3: Ablation study on IWSLT'14. The results are statistically significant with $p < {0.05}$ under t-test.
|
| 145 |
+
|
| 146 |
+
Ablation Study. We evaluate the impacts of the features we choose for GHT and GHT-PS (Table 3). We first ablate the diversification/homogenization term of GCT (see Eq.4), which lowers the BLEU scores. Next, we show the importance of GCT for V2S. w/o GCT denotes that we directly perform V2S at the very beginning without GCT. w/o GC
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 2: The final BLEU scores achieved by GHT (on IWSLT'14 dev set) first rise and then drop, as the final group patterns become more compact (indicated by the increasing SC and DI scores).
|
| 150 |
+
|
| 151 |
+
denotes that V2S is employed after normal training without Group Constrain (GC). Both ablation models yield lower BLEU, because they do not homogenize unnecessary heads and prepare them for pruning. Next, we validate the power of Pillars of Strength. w/o HUDS denotes we replace HUDS with randomly switching off heads after GCT; w/o PS stay denotes we keep random group members instead of the Pillars of Strength after GCT. We observe lower BLEU in w/o HUDS and w/o PS stay. Finally, we find that GC only needs to be added before V2S. We denote the training stages before and after V2S as stages 1 and 2. We compare the proposed Stage 1-based GHT-PS with models that perform GCT at Stage 2 (w/ stage 2 GC) and at both stages (w/ stage 1& 2 GC). BLEU scores of both ablation models decrease.
|
| 152 |
+
|
| 153 |
+
Effect of group compactness. We hypothesize that more compact group patterns bring performance gains to the GHT. Figure 2 shows the correlation between the compactness of the final group patterns and the final BLEU scores GHT achieved on 5 IWSLT'14 development sets when the GHT is fully converged in GCT. One data point corresponds to an independent run. We choose Silhouette Coefficient (SC) (Rousseeuw, 1987) and Dunn's Index (DI) (Bezdek and Pal, 1995) as the measurements of group pattern compactness, both of which increase as the intra-group samples become more similar and the inter-group ones become more separated. The SC and DI are computed with the FMs of GHA (\$3.1) and controlled by tuning the $\alpha$ and $\beta$ (Eq.4).
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
Figure 3: The BLEUs of GHT and GHT-PS by different numbers of hidden units (groups) on IWSLT'14 dev set.
|
| 157 |
+
|
| 158 |
+
Figure 2 shows that, within the normal range, the BLEU scores rise with higher SC/DI scores, which is in line with our assumption. The BLEUs start to drop after the peak as the SC/DI scores increase, because the very heavy group constraint prohibits the model from learning useful task-specific knowledge.
|
| 159 |
+
|
| 160 |
+
Effect of group number. Figure 3 shows the performance trends of 16-head GHT and GHT-PS by different numbers of group hidden units. For GHT, different datasets have different optimal hidden unit quantities, while a similar trend is observed. The optimal group number is between 2 and 8, which is in line with the claim that our group strategy is superior to sole homogenization (1 group) or diversification (16 groups) strategies. For GHT-PS, when the group number is larger than 1, it shows comparable performance to GHT on most datasets. This also verifies that non-PS heads can be switched off without sacrificing performance.
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Figure 4: Intra-group homogeneity (upper) and intergroup diversity (lower) of GHT and vanilla transformer by training steps.
|
| 164 |
+
|
| 165 |
+
<table><tr><td>Model</td><td>Param ↓</td><td>Inference Speed ↑</td><td>FLOPs ↓</td><td>Rouge-1 ↑</td><td>Rouge-2 ↑</td><td>Rouge-L ↑</td></tr><tr><td>LSTM (Paulus et al., 2018)</td><td>-</td><td>-</td><td>-</td><td>38.30</td><td>14.81</td><td>35.49</td></tr><tr><td>CNN (Fan et al., 2018)</td><td>-</td><td>-</td><td>-</td><td>39.06</td><td>15.38</td><td>35.77</td></tr><tr><td>Light Conv (Wu et al., 2019)</td><td>86M</td><td>-</td><td>-</td><td>39.52</td><td>15.97</td><td>36.51</td></tr><tr><td>Dynamic Conv (Wu et al., 2019)</td><td>87M</td><td>-</td><td>-</td><td>39.84</td><td>16.25</td><td>36.73</td></tr><tr><td>Vanilla Transformer (Voita et al., 2019)</td><td>44M</td><td>208.77 sent/s</td><td>1996M</td><td>38.45</td><td>17.97</td><td>36.03</td></tr><tr><td>GHT (ours)</td><td>44M</td><td>208.77 sent/s</td><td>1996M</td><td>40.00</td><td>21.10</td><td>37.51</td></tr><tr><td>GHT-PS (ours)</td><td>30M</td><td>257.62 sent/s</td><td>1558M</td><td>40.01</td><td>21.31</td><td>37.62</td></tr></table>
|
| 166 |
+
|
| 167 |
+
Group pattern trends. Figure 4 shows the trends of intra-group homogeneity (given by the $1st$ term of Eq.4(B)) and inter-group diversity (given by the $2nd$ term of Eq.4(B)) of GHT and vanilla transformer in the training process on five IWSLT datasets. By training, GHT yields higher intra-group homogeneity and inter-group diversity absolute values, leading to more compact groups, while the vanilla transformer shows flattened trends. It shows that GCT can effectively homogenize intra-group heads and diversify inter-group heads.
|
| 168 |
+
|
| 169 |
+
Table 4: Abstractive Summarization results on CNN-DailyMail in terms of F1-Rouge and efficiency (parameter, inference speed, and FLOPs). All improvements are statistically significant with $p < 0.05$ under t-test.
|
| 170 |
+
|
| 171 |
+
<table><tr><td>Model</td><td>BLEU↑</td><td>Param↓</td><td>Infer Speed↑</td><td>FLOPs↓</td></tr><tr><td>Transformer base</td><td>25.8</td><td>44M</td><td>1016.4 sent/s</td><td>1996M</td></tr><tr><td>Transformer big</td><td>26.4</td><td>176M</td><td>707.1 sent/s</td><td>6635M</td></tr><tr><td>Lite Conv</td><td>26.6</td><td>166M</td><td>722.1 sent/s</td><td>6184M</td></tr><tr><td>Dynamic Conv</td><td>26.9</td><td>176M</td><td>710.0 sent/s</td><td>6315M</td></tr><tr><td>GHT-PS-LITE (ours)</td><td>26.6</td><td>16M</td><td>1170.2 sent/s</td><td>1181M</td></tr></table>
|
| 172 |
+
|
| 173 |
+
Efficiency analysis. In Tables 1 and 2, the efficiency metrics are controlled to be identical. Our models with higher inference speed and lower FLOPs show efficiency by culling redundant parameters. We also compare the efficiency metrics by controlling BLEU scores. In Table 5, we select models from the works in Table 1 and 2 that are reported to achieve close BLEU scores on new-stest2013 as the baselines. The GHT-PS-LITE is a light version of GHT-PS that has a $d_{f}$ of 1024. Given BLEU ranges from 25.8 to 26.9, GHT-PS-LITE is much more efficient than the baselines. Noticeably, GHT-PS-LITE achieves $90.36\%$ fewer parameters, $62.05\%$ faster inference speed, and $80.90\%$ fewer FLOPs against Lite Conv which yields the same BLEU as it.
|
| 174 |
+
|
| 175 |
+
# 5.2 Abstractive Summarization
|
| 176 |
+
|
| 177 |
+
We evaluate the ability of our model to process longer inputs via Abstractive Summarization on the CNN-DailyMail dataset. We take vanilla transformer as the backbone. Table 4 shows that both GHT and GHT-PS achieve higher F1-Rouge scores (Lin, 2004a) on this task. GHT-PS achieves $4.1\%$ higher Rouge-1, $18.6\%$ higher Rouge-2, and $4.4\%$ higher Rouge-L against vanilla transformer. It also achieves $0.4\%$ higher Rouge-1, $31.1\%$ higher Rouge-2 and $2.4\%$ higher Rouge-L against the best-performing baseline (Dynamic Conv). Meanwhile, GHT-PS only takes $68.18\%$ parameters of the vanilla transformer and exhibits higher inference speed and fewer FLOPs.
|
| 178 |
+
|
| 179 |
+
Table 5: Efficiency comparison by parameter, inference speed (averaged on five runs), and FLOPs. All results are generated with beam size 5, batch size 256, max decoding length 10 on a NVIDIA Quadro RTX A6000.
|
| 180 |
+
|
| 181 |
+
<table><tr><td>Model</td><td>Param↓</td><td>Infer Spd↑</td><td>FLOPs↓</td><td>Valid↓</td><td>Test↓</td></tr><tr><td>S4</td><td>249M</td><td>-</td><td>-</td><td>19.69</td><td>20.95</td></tr><tr><td>BERT-L-CAS</td><td>395M</td><td>-</td><td>-</td><td>19.67</td><td>20.42</td></tr><tr><td>GPT-2 Large</td><td>762M</td><td>-</td><td>-</td><td>-</td><td>22.05</td></tr><tr><td>VT w/ AI</td><td>201M</td><td>9.9 tok/s</td><td>6106M</td><td>19.03</td><td>19.14</td></tr><tr><td>GHT (ours)</td><td>201M</td><td>9.9 tok/s</td><td>6106M</td><td>18.57</td><td>18.60</td></tr><tr><td>GHT-PS (ours)</td><td>167M</td><td>19.0 tok/s</td><td>4573M</td><td>18.58</td><td>18.59</td></tr></table>
|
| 182 |
+
|
| 183 |
+
Table 6: Language modeling results on WIKITEXT-103 by perplexity and efficiency (parameter, inference speed, and FLOPs). VT w/ AI denotes vanilla transformer with adaptive input. All improvements against the baselines are statistically significant with $p < 0.05$ under t-test.
|
| 184 |
+
|
| 185 |
+
# 5.3 Language Modeling
|
| 186 |
+
|
| 187 |
+
We evaluate LM performance on WIKITTEXT-103 dataset. The backbone is a decoder-only transformer with 16 layers and adaptive inputs (Baevski and Auli, 2019). We compare with the backbone model, as well as comparable SOTA LM models, including S4 (Gu et al., 2022), BERT-Large-CAS (Wang et al., 2019), and GPT-2 Large (Radford et al., 2018).
|
| 188 |
+
|
| 189 |
+
Table 6 shows that both GHT and GHT-PS achieve lower perplexity (Vajapeyam, 2014) than the baselines on both validation and test sets (2.9% and 9.0% less perplexity against the backbone and the best performing LM baseline, respectively). Meanwhile, GHT-PS achieves 16.92% parameter reduction, 2 times faster inference speed, and 75% FLOPs compared with the backbone.
|
| 190 |
+
|
| 191 |
+
# 6 Conclusion
|
| 192 |
+
|
| 193 |
+
In this paper, we assume that only focusing on the most representative and distinctive features with minimum resources may mitigate the redundancy and over-parameterization issues of MHA. Accordingly, we propose a divide-and-conquer strategy, including GCT and V2S to mitigate the issues. The improvements on three tasks and the extensive analysis verify our hypothesis and the effectiveness of our redundancy optimization methods. Our study may inspire future MHA design and training to achieve higher accuracy and efficiency.
|
| 194 |
+
|
| 195 |
+
# Limitations
|
| 196 |
+
|
| 197 |
+
In this work, we evaluate the proposed models for NLP tasks only. However, tasks in other fields such as Computer Vision may present a very different input inductive bias, thus affecting the performance. Moreover, our models are trained from scratch, hence it is unknown whether the same divide-and-conquer strategy works for pre-trained models. We will study these limitations in the future to give a more extensive exploration.
|
| 198 |
+
|
| 199 |
+
# Ethics Statement
|
| 200 |
+
|
| 201 |
+
This article follows the ACL Code of Ethics. The annotations are based on public datasets that do not contain private data. The algorithm we developed is an architectural optimization technique for improving model performance. To our best knowledge, there are no foreseeable potential risks to using this technique.
|
| 202 |
+
|
| 203 |
+
# Acknowledgments
|
| 204 |
+
|
| 205 |
+
This research is supported by the Agency for Science, Technology and Research (A\*STAR) under its AME Programmatic Funding Scheme (Project #A18A2b0046).
|
| 206 |
+
|
| 207 |
+
# References
|
| 208 |
+
|
| 209 |
+
Karim Ahmed, Nitish Shirish Keskar, and Richard Socher. 2017. Weighted transformer network for machine translation. CoRR, abs/1711.02132.
|
| 210 |
+
Alexei Baevski and Michael Auli. 2019. Adaptive input representations for neural language modeling. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net.
|
| 211 |
+
James C Bezdek and Nikhil R Pal. 1995. Cluster validation with generalized dunn's indices. In Proceedings 1995 second New Zealand international two-stream conference on artificial neural networks and expert systems, pages 190-190. IEEE Computer Society.
|
| 212 |
+
Denny Britz, Anna Goldie, Minh-Thang Luong, and Quoc V. Le. 2017. Massive exploration of neural machine translation architectures. CoRR, abs/1703.03906.
|
| 213 |
+
Jean-Baptiste Cordonnier, Andreas Loukas, and Martin Jaggi. 2020. Multi-head attention: Collaborate instead of concatenate. CoRR, abs/2006.16362.
|
| 214 |
+
Hongyi Cui, Shohei Iida, Po-Hsuan Hung, Takehito Utsuro, and Masaaki Nagata. 2019. Mixed multi-head self-attention for neural machine translation. In EMNLP-IJCNLP 2019, Hong Kong, November 4, 2019, pages 206-214.
|
| 215 |
+
Yanzhuo Ding, Yang Liu, Huanbo Luan, and Maosong Sun. 2017. Visualizing and understanding neural machine translation. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1150-1159, Vancouver, Canada.
|
| 216 |
+
Sergey Edunov, Myle Ott, Michael Auli, David Grangier, and Marc'Aurelio Ranzato. 2018. Classical structured prediction losses for sequence to sequence learning. In NAACL-HLT 2018, New Orleans, Louisiana, USA, June 1-6, 2018, Volume 1 (Long Papers), pages 355-364.
|
| 217 |
+
Angela Fan, David Grangier, and Michael Auli. 2018. Controllable abstractive summarization. In Proceedings of the 2nd Workshop on Neural Machine Translation and Generation, NMT@ACL 2018, Melbourne, Australia, July 20, 2018, pages 45-54.
|
| 218 |
+
Jonathan Frankle and Michael Carbin. 2019. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net.
|
| 219 |
+
Albert Gu, Karan Goel, and Christopher Ré. 2022. Efficiently modeling long sequences with structured state spaces. In *The Tenth International Conference on Learning Representations*, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
|
| 220 |
+
|
| 221 |
+
Karl Moritz Hermann, Tomás Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. 2015. Teaching machines to read and comprehend. In NIPs 2015, December 7-12, 2015, Montreal, Quebec, Canada, pages 1693-1701.
|
| 222 |
+
Jian Li, Zhaopeng Tu, Baosong Yang, Michael R. Lyu, and Tong Zhang. 2018. Multi-head attention with disagreement regularization. In EMNLP 2018, Brussels, Belgium, October 31 - November 4, 2018, pages 2897-2903.
|
| 223 |
+
Jian Li, Baosong Yang, Zi-Yi Dou, Xing Wang, Michael R. Lyu, and Zhaopeng Tu. 2019. Information aggregation for multi-head attention with routing-by-agreement. In *NAACL-HLT* 2019, Minneapolis, MN, USA, June 2-7, 2019, Volume 1 (Long and Short Papers), pages 3566-3575.
|
| 224 |
+
Jiaoda Li, Ryan Cotterell, and Mrinmaya Sachan. 2021. Differentiable subset pruning of transformer heads. Trans. Assoc. Comput. Linguistics, 9:1442-1459.
|
| 225 |
+
Chin-Yew Lin. 2004a. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81.
|
| 226 |
+
Chin-Yew Lin. 2004b. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain.
|
| 227 |
+
Ilya Loshchilov and Frank Hutter. 2017. SGDR: stochastic gradient descent with warm restarts. In 5th International Conference on Learning Representations, ICLR 2017, Toulouse, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net.
|
| 228 |
+
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2017. Pointer sentinel mixture models. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. Open-Review.net.
|
| 229 |
+
Paul Michel, Omer Levy, and Graham Neubig. 2019. Are sixteen heads really better than one? In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 14014-14024.
|
| 230 |
+
Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. 2019. *fairoseq: A fast, extensible toolkit for sequence modeling*. In *Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics* (Demonstrations), pages 48-53, Minneapolis, Minnesota.
|
| 231 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, July 6-12, 2002, Philadelphia, PA, USA, pages 311-318. ACL.
|
| 232 |
+
|
| 233 |
+
Razvan Pascanu, Tomás Mikolov, and Yoshua Bengio. 2013. On the difficulty of training recurrent neural networks. 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 1310-1318. JMLR.org.
|
| 234 |
+
Romain Paulus, Caiming Xiong, and Richard Socher. 2018. A deep reinforced model for abstractive summarization. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net.
|
| 235 |
+
Gabriel Pereyra, George Tucker, Jan Chorowski, Lukasz Kaiser, and Geoffrey E. Hinton. 2017. Regularizing neural networks by penalizing confident output distributions. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Workshop Track Proceedings. OpenReview.net.
|
| 236 |
+
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2018. Language models are unsupervised multitask learners.
|
| 237 |
+
Peter J Rousseeuw. 1987. Silhouettes: a graphical aid to the interpretation and validation of cluster analysis. Journal of computational and applied mathematics, 20:53-65.
|
| 238 |
+
Noam Shazeer, Zhenzhong Lan, Youlong Cheng, Nan Ding, and Le Hou. 2020. Talking-heads attention. CoRR, abs/2003.02436.
|
| 239 |
+
Sainbayar Sukhbaatar, Edouard Grave, Guillaume Lample, Hervé Jégou, and Armand Joulin. 2019. Augmenting self-attention with persistent memory. CoRR, abs/1907.01470.
|
| 240 |
+
Ilya Sutskever, James Martens, George E. Dahl, and Geoffrey E. Hinton. 2013. On the importance of initialization and momentum in deep learning. 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 1139-1147. JMLR.org.
|
| 241 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. 2016. Rethinking the inception architecture for computer vision. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 2818-2826. IEEE Computer Society.
|
| 242 |
+
Sriram Vajapeyam. 2014. Understanding shannon's entropy metric for information. CoRR, abs/1405.2061.
|
| 243 |
+
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 Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998-6008.
|
| 244 |
+
|
| 245 |
+
Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. 2019. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28-August 2, 2019, Volume 1: Long Papers, pages 5797-5808.
|
| 246 |
+
Chenguang Wang, Mu Li, and Alexander J. Smola. 2019. Language models with transformers. CoRR, abs/1904.09408.
|
| 247 |
+
Felix Wu, Angela Fan, Alexei Baevski, Yann N. Dauphin, and Michael Auli. 2019. Pay less attention with lightweight and dynamic convolutions. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net.
|
| 248 |
+
Zhanghao Wu, Zhijian Liu, Ji Lin, Yujun Lin, and Song Han. 2020. Lite transformer with long-short range attention. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net.
|
| 249 |
+
|
| 250 |
+
# A Appendix
|
| 251 |
+
|
| 252 |
+
# A.1 Trainig Settings
|
| 253 |
+
|
| 254 |
+
# A.1.1 Machine Translation
|
| 255 |
+
|
| 256 |
+
We use Adam to optimize the MT models and set the $\beta_{1} = 0.9, \beta_{2} = 0.98$ . We use the Inverse Square Root Schedule (Vaswani et al., 2017) where it first warms up for 4K steps until the learning rate reaches $5 \times 10^{-4}$ , and then it exponentially decays the learning rate. We apply early stop as a termination condition. We apply a 0.3 dropout rate for all Machine Translation models. A weight decay of $10^{-4}$ is used for all IWSLT 2014 models, whereas for WMT models we use a weight decay of 0. We apply a 0.1 label smoothing (Szegedy et al., 2016; Pereyra et al., 2017) for the uniform prior distribution over the vocabulary.
|
| 257 |
+
|
| 258 |
+
# A.1.2 Language Modeling
|
| 259 |
+
|
| 260 |
+
Following Baevski and Auli (2019), we use Nesterov's accelerated gradient method (Sutskever et al., 2013) with a momentum of 0.99. We clip the gradient norm if it exceeds 0.1 (Pascanu et al., 2013). The learning rate is linearly warmed up from $10^{-7}$ to 1 for 16K steps and then annealed using a cosine learning rate schedule (Loshchilov and Hutter, 2017) with multiple cycles. Each cycle doubles the number of updates than the previous cycle and we shrink the maximum and minimum learning rates by 0.75 compared to the previous cycle. The initial minimum learning rate is $10^{-4}$ and the maximum is 1. We apply 0.2 adaptive softmax dropout rate, 0.1 attention dropout rate, and 0.1 activation dropout rate.
|
| 261 |
+
|
| 262 |
+
# A.1.3 Abstractive Summarization
|
| 263 |
+
|
| 264 |
+
We use the same training setup with IWSLT 2014 models. We apply 0.1 clip norm and 0.2 attention dropout. The model is warmed up for 10K updates.
|
| 265 |
+
|
| 266 |
+
# A.2 Further Model Settings
|
| 267 |
+
|
| 268 |
+
Different $\alpha$ , $\beta$ , and head feature maps ( $\hat{\mathbf{V}}$ , $\mathbf{A}$ , and $\mathbf{O}$ ) are preferred for different datasets to achieve optimal performance. The Machine Translation configurations are detailed in Table 7; Language Modeling and Abstractive Summarization configurations are detailed in Table 8.
|
| 269 |
+
|
| 270 |
+
Note that $\varphi (\mathbf{v}_{i,l},\mathbf{a}_{i,l},\mathbf{o}_{i,l};\mathbf{z}_{i,l}) = \tau_1\varphi (\mathbf{v}_{i,l};\mathbf{z}_{i,l}) + \tau_2\varphi (\mathbf{a}_{i,l};\mathbf{z}_{i,l}) + \tau_3\varphi (\mathbf{o}_{i,l};\mathbf{z}_{i,l})$ , we set one of the $\{\tau_1,\tau_2,\tau_3\}$ to be 1, the other to be O.
|
| 271 |
+
|
| 272 |
+
# A.3 Datasets and Evaluation<sup>9</sup>
|
| 273 |
+
|
| 274 |
+
# A.3.1 Efficiency Metrics settings
|
| 275 |
+
|
| 276 |
+
Inference speed. All inference speed results are generated with beam size 5, batch size 256, maximum decoding length 10 on a single NVIDIA Quadro RTX A6000.
|
| 277 |
+
|
| 278 |
+
FLOPs. We use the $\mathrm{fvcore}^{10}$ to calculate the FLOPs, with a fixed input length of 30.
|
| 279 |
+
|
| 280 |
+
# A.3.2 Machine Translation
|
| 281 |
+
|
| 282 |
+
To fully evaluate the effectiveness of our methods, we evaluate seven MT datasets of IWSLT'14 and WMT 2014 benchmarks. We closely follow the setup of Vaswani et al. (2017) for data preparation. WMT 2014 English-German dataset consists of about 4.5M sentence pairs. It is encoded with byte-pair encoding (Britz et al., 2017), having a shared source-target vocabulary of about 40K tokens. Following the standard setting (Vaswani et al., 2017), we validate on newstest2013 and test on newstest2014 for experiments on this dataset. The WMT 2014 English-French dataset consists of 36M sentence pairs and is encoded with a joint source-target BPE of about 43K vocabularies. Following the standard split, we validate on a concatenation of newstest2012 and newstest2013 and test on newstest2014. For IWSLT'14 German to English, IWSLT'14 English to German, IWSLT'14 English to French, IWSLT'14 English to Italian and IWSLT'14 Italian to English, we encode the sentence pairs with joint source-target BPE. Following Edunov et al. (2018), the validation set is randomly splited from the training set with a ratio of 1:23. The testset consists TED.tst2010, TED.tst2011, TED.tst2012 and TED.dev2010, TEDX.dev2012 for IWSLT'14 German to English, IWSLT'14 English to German, and IWSLT'14 English to French; the TEDX.dev2012 is replaced by TEDX.dev2014 for IWSLT'14 English to Italian and IWSLT'14 Italian to English.
|
| 283 |
+
|
| 284 |
+
For all Machine Translation datasets, we use detokenized BLEU. WMT 2014 English-German and WMT 2014 English-French are evaluated with a beam size 4 and length penalty 0.6; IWSLT'14 datasets are evaluated with a beam size 5 and without length penalty.
|
| 285 |
+
|
| 286 |
+
<table><tr><td rowspan="2">Model</td><td colspan="5">IWSLT (α/β/FM)</td><td colspan="2">WMT (α/β/FM)</td></tr><tr><td>de-en</td><td>it-en</td><td>en-de</td><td>en-it</td><td>en-fr</td><td>en-de</td><td>en-fr</td></tr><tr><td>GHT</td><td>0.7/0.5/√V</td><td>0.3/0.5/√V</td><td>0.3/0.1/A</td><td>0.3/0.3/√V</td><td>0.7/0.7/√V</td><td>0.5/0.5/√V</td><td>0.3/0.3/√V</td></tr><tr><td>GHT-PS</td><td>0.5/0.7/O</td><td>0.3/0.3/A</td><td>0.3/0.7/O</td><td>0.3/1/√V</td><td>0.5/0.3/A</td><td>0.5/0.5/√V</td><td>0.3/0.3/√V</td></tr></table>
|
| 287 |
+
|
| 288 |
+
Table 7: The configuration of $\alpha ,\beta$ ,and Feature Maps (FM,including $\widehat{\mathbf{V}}$ ,A,and $\mathbf{O}$ ) for GHT and GHT-PS on different Machine Translation datasets.
|
| 289 |
+
|
| 290 |
+
<table><tr><td>Model</td><td>α/β/FM</td></tr><tr><td>GHT</td><td>0.5/0.5/ˆV</td></tr><tr><td>GHT-PS</td><td>0.5/0.5/ˆV</td></tr></table>
|
| 291 |
+
|
| 292 |
+
Table 8: The configuration of $\alpha$ , $\beta$ , and Feature Maps (FM, including $\hat{\mathbf{V}}$ , A, and O) for GHT and GHT-PS in Abstractive Summarization and Language Modeling.
|
| 293 |
+
|
| 294 |
+
# A.3.3 Language Modeling
|
| 295 |
+
|
| 296 |
+
We evaluate LM on WIKITEXT-103 (Merit et al., 2017) which has about 100M tokens and a 260K BPE vocabulary. Following Baevski and Auli (2019), we use perplexity as an evaluation metric and a context window of 2047 at the inference stage.
|
| 297 |
+
|
| 298 |
+
# A.3.4 Abstractive Summarization
|
| 299 |
+
|
| 300 |
+
We also evaluate on CNN-DailyMail (Hermann et al., 2015) for AS to test the ability of GHT in hard tasks with long inputs. The dataset comprises over 280K news articles paired with multi-sentence summaries. Following Wu et al. (2019), articles are truncated to 512 tokens and encoded with 50K BPE. We use F1-Rouge (Lin, 2004b) to evaluate the performance, including Rouge-1, Rouge-2 and Rouge-L.
|
| 301 |
+
|
| 302 |
+
A For every submission:
|
| 303 |
+
|
| 304 |
+
A1. Did you describe the limitations of your work?
|
| 305 |
+
|
| 306 |
+
Section 7
|
| 307 |
+
|
| 308 |
+
A2. Did you discuss any potential risks of your work?
|
| 309 |
+
|
| 310 |
+
The study is theoretical. It does not involve human in the experiment or involve ethnic issues. It will not result in any potential risks.
|
| 311 |
+
|
| 312 |
+
A3. Do the abstract and introduction summarize the paper's main claims?
|
| 313 |
+
|
| 314 |
+
Section 1
|
| 315 |
+
|
| 316 |
+
A4. Have you used AI writing assistants when working on this paper?
|
| 317 |
+
|
| 318 |
+
Left blank.
|
| 319 |
+
|
| 320 |
+
B Did you use or create scientific artifacts?
|
| 321 |
+
|
| 322 |
+
Section 4; Appendix A.3
|
| 323 |
+
|
| 324 |
+
B1. Did you cite the creators of artifacts you used?
|
| 325 |
+
|
| 326 |
+
Section 4; Appendix A.3
|
| 327 |
+
|
| 328 |
+
B2. Did you discuss the license or terms for use and / or distribution of any artifacts?
|
| 329 |
+
|
| 330 |
+
The tools are for public use.
|
| 331 |
+
|
| 332 |
+
B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)?
|
| 333 |
+
|
| 334 |
+
No specific intended use is specified by the artifact creators.
|
| 335 |
+
|
| 336 |
+
B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it?
|
| 337 |
+
|
| 338 |
+
They do not contain any information that names or uniquely identifies individual people or offensive content.
|
| 339 |
+
|
| 340 |
+
B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.?
|
| 341 |
+
|
| 342 |
+
Section 4; Appendix A.3
|
| 343 |
+
|
| 344 |
+
B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be.
|
| 345 |
+
|
| 346 |
+
Appendix A.3
|
| 347 |
+
|
| 348 |
+
C Did you run computational experiments?
|
| 349 |
+
|
| 350 |
+
Section 5
|
| 351 |
+
|
| 352 |
+
C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used?
|
| 353 |
+
|
| 354 |
+
Section 5; Appendix A.1
|
| 355 |
+
|
| 356 |
+
C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values?
|
| 357 |
+
|
| 358 |
+
Section 4, 5; Appendix A.1, 2, 3
|
| 359 |
+
|
| 360 |
+
C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run?
|
| 361 |
+
|
| 362 |
+
Section 5
|
| 363 |
+
|
| 364 |
+
C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)?
|
| 365 |
+
|
| 366 |
+
Appendix A.1, 2, 3
|
| 367 |
+
|
| 368 |
+
D Did you use human annotators (e.g., crowdworkers) or research with human participants?
|
| 369 |
+
|
| 370 |
+
Left blank.
|
| 371 |
+
|
| 372 |
+
D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.?
|
| 373 |
+
|
| 374 |
+
Not applicable. Left blank.
|
| 375 |
+
|
| 376 |
+
D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)?
|
| 377 |
+
|
| 378 |
+
Not applicable. Left blank.
|
| 379 |
+
|
| 380 |
+
D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used?
|
| 381 |
+
|
| 382 |
+
Not applicable. Left blank.
|
| 383 |
+
|
| 384 |
+
D4. Was the data collection protocol approved (or determined exempt) by an ethics review board?
|
| 385 |
+
|
| 386 |
+
Not applicable. Left blank.
|
| 387 |
+
|
| 388 |
+
D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data?
|
| 389 |
+
|
| 390 |
+
Not applicable. Left blank.
|
2023/Finding the Pillars of Strength for Multi-Head Attention/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22c1758801a7fca69ee46f078247648101e87872d66ed6f5d9e1ae02baa0bafb
|
| 3 |
+
size 531526
|
2023/Finding the Pillars of Strength for Multi-Head Attention/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/299364f1-0f55-4167-82d9-b2dbc57d8e7b_content_list.json
ADDED
|
@@ -0,0 +1,2055 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Finding the SWEET Spot: Analysis and Improvement of Adaptive Inference in Low Resource Settings",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
112,
|
| 8 |
+
87,
|
| 9 |
+
884,
|
| 10 |
+
130
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Daniel Rotem $^{\\text{♥}}$ Michael Hassid $^{\\text{♥}}$ Jonathan Mamou $^{\\text{♣}}$ Roy Schwartz $^{\\text{♥}}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
174,
|
| 19 |
+
140,
|
| 20 |
+
825,
|
| 21 |
+
158
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "$^{\\text{©}}$ School of Computer Science & Engineering, Hebrew University of Jerusalem",
|
| 28 |
+
"bbox": [
|
| 29 |
+
181,
|
| 30 |
+
159,
|
| 31 |
+
820,
|
| 32 |
+
175
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "$\\spadesuit$ Intel Labs, Israel",
|
| 39 |
+
"bbox": [
|
| 40 |
+
423,
|
| 41 |
+
175,
|
| 42 |
+
579,
|
| 43 |
+
191
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "{daniel.rotem, michael.hassid, roy.schwartz1}@mail.huji.ac.il jonathan.mamou@intel.com",
|
| 50 |
+
"bbox": [
|
| 51 |
+
201,
|
| 52 |
+
193,
|
| 53 |
+
798,
|
| 54 |
+
225
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Abstract",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
260,
|
| 64 |
+
252,
|
| 65 |
+
339,
|
| 66 |
+
266
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Adaptive inference is a simple method for reducing inference costs. The method works by maintaining multiple classifiers of different capacities, and allocating resources to each test instance according to its difficulty. In this work, we compare the two main approaches for adaptive inference, Early-Exit and Multi-Model, when training data is limited. First, we observe that for models with the same architecture and size, individual Multi-Model classifiers outperform their Early-Exit counterparts by an average of $2.3\\%$ . We show that this gap is caused by Early-Exit classifiers sharing model parameters during training, resulting in conflicting gradient updates of model weights. We find that despite this gap, Early-Exit still provides a better speed-accuracy trade-off due to the overhead of the Multi-Model approach. To address these issues, we propose SWEET, an Early-Exit fine-tuning method that assigns each classifier its own set of unique model weights, not updated by other classifiers. We compare SWEET's speed-accuracy curve to standard Early-Exit and Multi-Model baselines and find that it outperforms both methods at fast speeds while maintaining comparable scores to Early-Exit at slow speeds. Moreover, SWEET individual classifiers outperform Early-Exit ones by $1.1\\%$ on average. SWEET enjoys the benefits of both methods, paving the way for further reduction of inference costs in NLP. We publicly release our code.",
|
| 73 |
+
"bbox": [
|
| 74 |
+
141,
|
| 75 |
+
282,
|
| 76 |
+
460,
|
| 77 |
+
740
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 Introduction",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
114,
|
| 87 |
+
755,
|
| 88 |
+
258,
|
| 89 |
+
770
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Pre-trained Transformer-based language models such as BERT (Devlin et al., 2019), DeBERTa (He et al., 2020), and GPT3 (Brown et al., 2020) have become the go-to tool in NLP. Although powerful, the growing size of these models has been a major drawback (Thompson et al., 2020; Schwartz et al.,",
|
| 96 |
+
"bbox": [
|
| 97 |
+
112,
|
| 98 |
+
783,
|
| 99 |
+
490,
|
| 100 |
+
879
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/e02d2f143e8e6a9dbdce5b944abcf920e1fb215c7a99b9f4a4428e0afbcd70c8.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Early Exit"
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
512,
|
| 113 |
+
269,
|
| 114 |
+
620,
|
| 115 |
+
420
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "image",
|
| 121 |
+
"img_path": "images/f0aabbf61bc333253a8ce10012aed56327a395c2b9555c83d27220e936156953.jpg",
|
| 122 |
+
"image_caption": [
|
| 123 |
+
"Figure 1: Illustration of the adaptive inference approaches compared in this work. In both methods, multiple classifiers of increasing sizes are run serially, until a confident prediction is made. In Early-Exit (left), a single model with multiple classifiers is used, such that early computations are reused by later classifiers. In Multi-Model (right), a sequence of independent models is used, allowing each classifier to decouple its parameters from other classifiers."
|
| 124 |
+
],
|
| 125 |
+
"image_footnote": [],
|
| 126 |
+
"bbox": [
|
| 127 |
+
621,
|
| 128 |
+
252,
|
| 129 |
+
880,
|
| 130 |
+
420
|
| 131 |
+
],
|
| 132 |
+
"page_idx": 0
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"type": "text",
|
| 136 |
+
"text": "2020a), making them costly to run. Various attempts to reduce inference cost have been proposed, including distillation (Hinton et al., 2015), pruning (LeCun et al., 1989) and quantization (Courbariaux et al., 2014). This work focuses on adaptive inference (Graves, 2016; Liu et al., 2020), a recent approach in which the variability of sample difficulty is leveraged toward a smarter allocation of computational resources. An appealing property of adaptive inference is that it enables dynamic control of the speed-accuracy trade-off.",
|
| 137 |
+
"bbox": [
|
| 138 |
+
507,
|
| 139 |
+
594,
|
| 140 |
+
882,
|
| 141 |
+
770
|
| 142 |
+
],
|
| 143 |
+
"page_idx": 0
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"type": "text",
|
| 147 |
+
"text": "There are two main approaches to adaptive inference, both using a set of classifiers of different sizes. In Early-Exit (Schwartz et al., 2020b; Xin et al., 2020), multiple classification heads are added to the same model at different layers, allowing for early exit during inference (Fig. 1, left). Another approach (henceforth Multi-Model) is to apply multiple independent classifiers of varying capacities serially until a prediction is made (Varshney and",
|
| 148 |
+
"bbox": [
|
| 149 |
+
507,
|
| 150 |
+
774,
|
| 151 |
+
884,
|
| 152 |
+
919
|
| 153 |
+
],
|
| 154 |
+
"page_idx": 0
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"type": "page_footnote",
|
| 158 |
+
"text": "$^{1}$ Separating Weights in Early Exit Transformers.",
|
| 159 |
+
"bbox": [
|
| 160 |
+
134,
|
| 161 |
+
890,
|
| 162 |
+
436,
|
| 163 |
+
904
|
| 164 |
+
],
|
| 165 |
+
"page_idx": 0
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"type": "page_footnote",
|
| 169 |
+
"text": "$^{2}$ https://github.com/schwartz-lab-NLP/SWEET",
|
| 170 |
+
"bbox": [
|
| 171 |
+
136,
|
| 172 |
+
904,
|
| 173 |
+
455,
|
| 174 |
+
917
|
| 175 |
+
],
|
| 176 |
+
"page_idx": 0
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"type": "page_number",
|
| 180 |
+
"text": "14836",
|
| 181 |
+
"bbox": [
|
| 182 |
+
475,
|
| 183 |
+
927,
|
| 184 |
+
524,
|
| 185 |
+
940
|
| 186 |
+
],
|
| 187 |
+
"page_idx": 0
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"type": "footer",
|
| 191 |
+
"text": "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics",
|
| 192 |
+
"bbox": [
|
| 193 |
+
226,
|
| 194 |
+
945,
|
| 195 |
+
771,
|
| 196 |
+
958
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 0
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "footer",
|
| 202 |
+
"text": "Volume 1: Long Papers, pages 14836-14851",
|
| 203 |
+
"bbox": [
|
| 204 |
+
361,
|
| 205 |
+
959,
|
| 206 |
+
633,
|
| 207 |
+
971
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 0
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "footer",
|
| 213 |
+
"text": "July 9-14, 2023 ©2023 Association for Computational Linguistics",
|
| 214 |
+
"bbox": [
|
| 215 |
+
295,
|
| 216 |
+
972,
|
| 217 |
+
700,
|
| 218 |
+
985
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 0
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "Baral, 2022a; Li et al., 2020, Fig. 1, right). These approaches have complementary benefits; Multi-Model allows for easier batching at inference time, and potentially larger savings due to using very efficient models (Mamou et al., 2023). Early-Exit on the other hand is more memory efficient, faster to train, and enables re-use of early computation if an early exit was not taken.",
|
| 225 |
+
"bbox": [
|
| 226 |
+
112,
|
| 227 |
+
84,
|
| 228 |
+
487,
|
| 229 |
+
211
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 1
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "In this work, we compare the speed-accuracy behavior of the two approaches when training data is limited. We first observe that Early-Exit model weights are updated by multiple conflicting gradient signals throughout the training process (Fig. 2, left). We show that this leads to a decrease in performance of individual Early-Exit classifiers compared to Multi-Model ones (2.3% gap on average). We find that this gap is higher for the earliest classifiers (5.2% on average) than for later ones (1.4%).",
|
| 236 |
+
"bbox": [
|
| 237 |
+
112,
|
| 238 |
+
212,
|
| 239 |
+
487,
|
| 240 |
+
373
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 1
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "We also find that while each Multi-Model classifier outperforms its Early-Exit counterpart, it does not translate to an overall better speed-accuracy trade-off. Instead, we find that each method dominates performance in a different region: Multi-Model outperforms Early-Exit at fast inference speeds, while Early-Exit is better at slow speeds. Multi-Model downgraded scores at slow speeds are likely caused by the overhead of running models sequentially to predict hard samples.",
|
| 247 |
+
"bbox": [
|
| 248 |
+
112,
|
| 249 |
+
374,
|
| 250 |
+
487,
|
| 251 |
+
533
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 1
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "Inspired by our findings, we present SWEET, $^{4}$ an Early-Exit method for bridging the performance gap between standard Early-Exit and Multi-Model. In SWEET, each Early-Exit classifier only updates the parameters of layers preceding it up to the previous classifier. This way, each model parameter is updated by a single classifier, thus avoiding conflicting gradients during the training of Early-Exit models (Fig. 2, right).",
|
| 258 |
+
"bbox": [
|
| 259 |
+
112,
|
| 260 |
+
533,
|
| 261 |
+
487,
|
| 262 |
+
678
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 1
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "We experiment with two established pretrained models: BERT (Devlin et al., 2019) and DeBERTa (He et al., 2020). We fine-tune Early-Exit models using SWEET on seven text classification tasks from GLUE (Wang et al., 2018) and compare them to Early-Exit and Multi-Model baselines. The speed-accuracy curve of SWEET dominates both baselines at fast speeds for 21 out of 28 experiments conducted. As for individual clas",
|
| 269 |
+
"bbox": [
|
| 270 |
+
112,
|
| 271 |
+
680,
|
| 272 |
+
487,
|
| 273 |
+
822
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 1
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "image",
|
| 279 |
+
"img_path": "images/652a69ab2635e220dde2eaac266bd74a0592eebecba4976a7c033a6a67cd1810.jpg",
|
| 280 |
+
"image_caption": [
|
| 281 |
+
"Figure 2: Left: standard Early-Exit fine-tuning, where lower layers get gradient updates from multiple classifiers. Right: our SWEET method, in which each layer parameters are updated only by the next classifier."
|
| 282 |
+
],
|
| 283 |
+
"image_footnote": [],
|
| 284 |
+
"bbox": [
|
| 285 |
+
514,
|
| 286 |
+
86,
|
| 287 |
+
690,
|
| 288 |
+
381
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 1
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "image",
|
| 294 |
+
"img_path": "images/146761ab93be75ec31f06c845d1921225fda1725520086311ab96fbb67b39117.jpg",
|
| 295 |
+
"image_caption": [],
|
| 296 |
+
"image_footnote": [],
|
| 297 |
+
"bbox": [
|
| 298 |
+
702,
|
| 299 |
+
86,
|
| 300 |
+
880,
|
| 301 |
+
381
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 1
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "sifiers, SWEET performs $1.1\\%$ better on average than Early-Exit, mostly improving earlier classifiers, where conflicting gradients are more dominant.",
|
| 308 |
+
"bbox": [
|
| 309 |
+
507,
|
| 310 |
+
476,
|
| 311 |
+
882,
|
| 312 |
+
541
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 1
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "We summarise our main contributions: (1) We propose a way of measuring conflicting gradients, and show that they exist in Early-Exit training process; (2) We empirically compare Early-Exit and Multi-Model classifiers and show that conflicting gradients lead to individual Early-Exit classifiers being less accurate; (3) We propose a novel finetuning method, SWEET, which alleviates the conflicting gradients problem in Early-Exit, and leads to improved results at fast inference speeds; (4) We publicly release our code.",
|
| 319 |
+
"bbox": [
|
| 320 |
+
507,
|
| 321 |
+
543,
|
| 322 |
+
882,
|
| 323 |
+
720
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 1
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "2 Background: Adaptive Inference",
|
| 330 |
+
"text_level": 1,
|
| 331 |
+
"bbox": [
|
| 332 |
+
507,
|
| 333 |
+
734,
|
| 334 |
+
826,
|
| 335 |
+
752
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 1
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "Adaptive inference aims to reduce inference costs of deep neural nets by matching model and sample complexities. Sample difficulty usually varies in real-world data, meaning not all instances require processing by the most powerful classifier. Therefore, we can allocate fewer resources to easier instances, and reduce the average inference cost, potentially at the cost of performance degradation.",
|
| 342 |
+
"bbox": [
|
| 343 |
+
507,
|
| 344 |
+
763,
|
| 345 |
+
884,
|
| 346 |
+
892
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 1
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "page_footnote",
|
| 352 |
+
"text": "<sup>5</sup>https://github.com/schwartz-lab-NLP/SWEET",
|
| 353 |
+
"bbox": [
|
| 354 |
+
529,
|
| 355 |
+
903,
|
| 356 |
+
850,
|
| 357 |
+
917
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 1
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "page_footnote",
|
| 363 |
+
"text": "$^{3}$ Reducing inference costs is particularly helpful when computational resources are limited. Such conditions are often paired with restricted access to labeled data or a low budget for data annotation. To evaluate the effectiveness of adaptive inference methods in such scenarios, we limit training data size to a few thousand examples in all our experiments.",
|
| 364 |
+
"bbox": [
|
| 365 |
+
112,
|
| 366 |
+
832,
|
| 367 |
+
487,
|
| 368 |
+
904
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 1
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "page_footnote",
|
| 374 |
+
"text": "4 Separating Weights for Early-Exit Transformers.",
|
| 375 |
+
"bbox": [
|
| 376 |
+
134,
|
| 377 |
+
904,
|
| 378 |
+
443,
|
| 379 |
+
917
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 1
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "page_number",
|
| 385 |
+
"text": "14837",
|
| 386 |
+
"bbox": [
|
| 387 |
+
477,
|
| 388 |
+
927,
|
| 389 |
+
524,
|
| 390 |
+
940
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 1
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "Several exit strategies have been developed to control the speed-accuracy trade-off of a model by deciding when to make an early prediction and halt computation (Xin et al., 2020; Zhou et al., 2020; Xin et al., 2021; Schuster et al., 2021; Zhang et al., 2022). In this work, we mainly experiment with confidence-based exiting (Schwartz et al., 2020b), in which computation halts if the softmax probability assigned to a given label exceeds a predetermined threshold. Dynamic control of model's inference speed is gained through setting different threshold values. There are two main adaptive inference approaches, Early-Exit and Multi-Model, which we describe below.",
|
| 397 |
+
"bbox": [
|
| 398 |
+
110,
|
| 399 |
+
82,
|
| 400 |
+
489,
|
| 401 |
+
307
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 2
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "Early-Exit Early-Exit models are deep neural nets with multiple output points, following intermediate layers. In this work, we focus on Early-Exit implementation as presented in Schwartz et al. (2020b). During fine-tuning, instances are passed through the model, and a loss is calculated based on predictions made by all classifiers. This leads to some model weights being updated by gradient signals from multiple classifiers (Fig. 2, left).",
|
| 408 |
+
"bbox": [
|
| 409 |
+
110,
|
| 410 |
+
319,
|
| 411 |
+
489,
|
| 412 |
+
464
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 2
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "At inference time, an instance is passed through the model and its label is predicted sequentially until a decision to exit early is taken, and computation is halted. An appealing property of Early-Exit is that it allows for efficient re-use of previous computation from lower layers in higher classifiers. However, this means that some model parameters are updated by multiple classifiers, which may lead to sub-optimal performance of individual classifiers due to conflicting gradients. In this work, we study the effect of this property on Early-Exit models.",
|
| 419 |
+
"bbox": [
|
| 420 |
+
110,
|
| 421 |
+
466,
|
| 422 |
+
489,
|
| 423 |
+
644
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 2
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "Multi-Model In Multi-Model adaptive inference, a set of independent models of increasing capacity are fine-tuned separately for the same task. At inference time, the models are used sequentially from smallest to largest until a prediction meets some predetermined criterion or until the largest model has been used. This method is more robust than Early-Exit, being easier to extend and enabling the use of different architectures. Additionally, Multi-Model potentially allows for further computational savings by using models smaller than the smallest Early-Exit model (a single layer of the backbone",
|
| 430 |
+
"bbox": [
|
| 431 |
+
110,
|
| 432 |
+
653,
|
| 433 |
+
489,
|
| 434 |
+
847
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 2
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "model, Mamou et al., 2023). However, it may add overhead to the prediction time of hard instances, as those pass through multiple models with early computations being discarded, bringing the total runtime to exceed that of using the largest model.",
|
| 441 |
+
"bbox": [
|
| 442 |
+
507,
|
| 443 |
+
84,
|
| 444 |
+
884,
|
| 445 |
+
165
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 2
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "3 Early-Exit vs. Multi-Model",
|
| 452 |
+
"text_level": 1,
|
| 453 |
+
"bbox": [
|
| 454 |
+
507,
|
| 455 |
+
177,
|
| 456 |
+
779,
|
| 457 |
+
193
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 2
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "3.1 Conflicting Gradients in Early-Exit",
|
| 464 |
+
"text_level": 1,
|
| 465 |
+
"bbox": [
|
| 466 |
+
507,
|
| 467 |
+
204,
|
| 468 |
+
831,
|
| 469 |
+
219
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 2
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "Unlike Multi-Model, when fine-tuning Early-Exit models, model weights are updated by multiple gradient signals, originating in different classification layers (Fig. 2, left). We hypothesize that this leads to sub-optimal performance for all classifiers involved, as gradient signals might conflict with one another and derail the classifiers from their goal. To test this hypothesis, we compare the gradient similarity of different Early-Exit classifiers.",
|
| 476 |
+
"bbox": [
|
| 477 |
+
507,
|
| 478 |
+
225,
|
| 479 |
+
884,
|
| 480 |
+
369
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 2
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "We fine-tune a $\\mathrm{BERT}_{BASE}$ model with four exit points (following layers [1, 4, 6, 12]) for 400 training steps on the MNLI dataset (Williams et al., 2018), using a batch size of 16 with a learning rate of 2e-5. We pass a new training batch through the model, and inspect the gradients with respect to the last feed-forward matrix in each layer preceding a classifier. To measure the degree of alignment between gradient updates of different classifiers, we average the cosine similarity between the rows of gradient matrices for every pair of classifiers. High similarity indicates that the classifiers are updating the weights in a similar direction, while low similarity (in absolute values) suggests that the updates are close to orthogonal and potentially detrimental to both classifiers.",
|
| 487 |
+
"bbox": [
|
| 488 |
+
507,
|
| 489 |
+
370,
|
| 490 |
+
884,
|
| 491 |
+
627
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 2
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "This section studies the strengths and weaknesses of both adaptive inference approaches. We start by describing a limitation of Early-Exit approaches: lower model layers are updated by conflicting gradient signals during training. We show that this leads to inferior performance of individual Early-Exit classifiers compared to corresponding Multi-Model classifiers. We then compare the effects of these performance drops on the speed-accuracy curve of Early-Exit models compared Multi-Model ones.",
|
| 498 |
+
"bbox": [
|
| 499 |
+
507,
|
| 500 |
+
629,
|
| 501 |
+
885,
|
| 502 |
+
804
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 2
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "Fig. 3 shows that the gradients of future classifiers are generally orthogonal to those of the current classifier for each examined Transformer block. This indicates that model weights indeed suffer",
|
| 509 |
+
"bbox": [
|
| 510 |
+
507,
|
| 511 |
+
806,
|
| 512 |
+
884,
|
| 513 |
+
870
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 2
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "page_footnote",
|
| 519 |
+
"text": "<sup>6</sup>Some works have pre-trained Early-Exit Models from scratch (Liu et al., 2021b) but due to budgetary constraints, it is common practice to fine-tune pre-trained models with the added classifiers on the downstream task (Liu et al., 2020; Xin et al., 2020; Schwartz et al., 2020b).",
|
| 520 |
+
"bbox": [
|
| 521 |
+
112,
|
| 522 |
+
856,
|
| 523 |
+
487,
|
| 524 |
+
917
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 2
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "page_footnote",
|
| 530 |
+
"text": "<sup>7</sup>We repeat this experiment with an additional batch. Results (Appendix B) show a very similar trend.",
|
| 531 |
+
"bbox": [
|
| 532 |
+
507,
|
| 533 |
+
879,
|
| 534 |
+
882,
|
| 535 |
+
904
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 2
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "page_footnote",
|
| 541 |
+
"text": "Except for the last layer, updated by a single classifier.",
|
| 542 |
+
"bbox": [
|
| 543 |
+
532,
|
| 544 |
+
904,
|
| 545 |
+
870,
|
| 546 |
+
917
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 2
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "page_number",
|
| 552 |
+
"text": "14838",
|
| 553 |
+
"bbox": [
|
| 554 |
+
477,
|
| 555 |
+
927,
|
| 556 |
+
524,
|
| 557 |
+
940
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 2
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "image",
|
| 563 |
+
"img_path": "images/c7d4a0182aafd37e17a3bc56755485f6155ae2af38b76d8ba4d12fac619246e3.jpg",
|
| 564 |
+
"image_caption": [
|
| 565 |
+
"Figure 3: Average cosine similarity between classifiers' gradient updates of model layers. C-i stands for Classifier $i$ . Layer 1 (preceding C-1) is updated by 3 classifiers, while layers 4 (preceding C-2), and 6 (C-3) are updated by 3 & 2 classifiers respectively. For each layer, the gradient update of the following classifier is roughly orthogonal to those of future classifiers, whereas gradient updates of higher classifiers tend to better align with one another."
|
| 566 |
+
],
|
| 567 |
+
"image_footnote": [],
|
| 568 |
+
"bbox": [
|
| 569 |
+
114,
|
| 570 |
+
80,
|
| 571 |
+
487,
|
| 572 |
+
292
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 3
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "from conflicting gradient updates during the training process, which might affect the performance of each individual classifier. Interestingly, when multiple future classifiers are present, they tend to align with each other, as indicated by the relatively high similarity between layer 1's gradient updates originating in classifiers 2, 3, and 4, and between layer 4's gradient updates from classifiers 3 and 4.",
|
| 579 |
+
"bbox": [
|
| 580 |
+
112,
|
| 581 |
+
457,
|
| 582 |
+
487,
|
| 583 |
+
586
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 3
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "3.2 Effects of Conflicting Gradients",
|
| 590 |
+
"text_level": 1,
|
| 591 |
+
"bbox": [
|
| 592 |
+
112,
|
| 593 |
+
600,
|
| 594 |
+
408,
|
| 595 |
+
615
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 3
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "To evaluate the effect of conflicting gradients on individual Early-Exit classifiers, we compare the different classifiers of an Early-Exit model and a Multi-Model model. For a clean comparison, we use the same backbone model, exit points, hyperparameters, $^{9}$ and random seeds. As an example, for a given 12-layer Transformer model, an Early-Exit model with exit points following layers [4, 12] would be compared to a Multi-Model one consisting of two classifiers: the first four layers fit with a classification head, and a full (12 layer) model. The models differ only in the fact that for the Early-Exit model, model weights are updated by multiple future classifiers during the fine-tuning process, while each Multi-Model classifier is an independent model. To isolate the effect of conflicting gradients",
|
| 602 |
+
"bbox": [
|
| 603 |
+
112,
|
| 604 |
+
621,
|
| 605 |
+
489,
|
| 606 |
+
879
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 3
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "table",
|
| 612 |
+
"img_path": "images/d1dcc21000b014b4408a02bdc867f3c939edef4c3f34f7e53ef17e54d1ac4477.jpg",
|
| 613 |
+
"table_caption": [],
|
| 614 |
+
"table_footnote": [],
|
| 615 |
+
"table_body": "<table><tr><td>Size</td><td>Method</td><td colspan=\"4\">Exit Layer</td></tr><tr><td></td><td></td><td>1</td><td>4</td><td>6</td><td>12</td></tr><tr><td rowspan=\"3\">BASE</td><td>MM</td><td>60.90.6</td><td>71.40.1</td><td>74.71.2</td><td>79.90.9</td></tr><tr><td>EE</td><td>57.30.3</td><td>70.30.3</td><td>74.40.7</td><td>78.70.5</td></tr><tr><td>SWEET</td><td>60.90.5</td><td>71.60.5</td><td>74.00.4</td><td>77.40.6</td></tr><tr><td></td><td></td><td>1</td><td>6</td><td>12</td><td>24</td></tr><tr><td rowspan=\"3\">LARGE</td><td>MM</td><td>60.10.1</td><td>66.90.4</td><td>74.40.9</td><td>81.60.3</td></tr><tr><td>EE</td><td>56.60.3</td><td>65.60.9</td><td>74.00.6</td><td>79.91.9</td></tr><tr><td>SWEET</td><td>59.80.3</td><td>66.50.7</td><td>74.50.3</td><td>81.31.0</td></tr></table>",
|
| 616 |
+
"bbox": [
|
| 617 |
+
509,
|
| 618 |
+
80,
|
| 619 |
+
882,
|
| 620 |
+
271
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 3
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "text",
|
| 626 |
+
"text": "Table 1: Results of individual classification layers averaged across all tasks using BERT as a backbone model. Multi-Model (MM) classifiers outperform their Early-Exit (EE) counterparts, with the gap being the largest for early classifiers. SWEET closes much of this gap, especially for early classifiers. Standard deviation (across random seeds) is reported in subscript. Results for DeBERTa are presented in Table 3.",
|
| 627 |
+
"bbox": [
|
| 628 |
+
507,
|
| 629 |
+
280,
|
| 630 |
+
882,
|
| 631 |
+
395
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 3
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "on the classifiers, we evaluate each one separately on the entire validation set. The performance gap between each individual Multi-Model classifier and its corresponding Early-Exit classifier, allows us to directly measure the latter's downgrade in performance caused by conflicting gradients.",
|
| 638 |
+
"bbox": [
|
| 639 |
+
505,
|
| 640 |
+
425,
|
| 641 |
+
882,
|
| 642 |
+
521
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 3
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "We experiment with BERT and DeBERTa {BASE ( $\\sim$ 110M parameters), and LARGE ( $\\sim$ 350M parameters)}. For BASE versions, we install classifiers following layers [1, 4, 6, 12]. For LARGE versions, we use layers [1, 6, 12, 24]. We fine-tune an Early-Exit model and a corresponding Multi-Model model on seven NLP tasks from the GLUE benchmark (Wang et al., 2019): SST-2 (Socher et al., 2013), MRPC (Dolan and Brockett, 2005), RTE (Dagan et al., 2006; Haim et al., 2006; Giampiccolo et al., 2007; Bentivogli et al., 2009), CoLA (Warstadt et al., 2019), MNLI (Williams et al., 2018), QNLI (Rajpurkar et al., 2016), and QQP (Iyer et al., 2016). We report accuracy for all tasks except for CoLA (Matthews corr.). We fine-tune the models for two epochs on all tasks. As our goal is to test Adaptive inference in a low resource setting, we limit the training set size for each task to $6K$ . We report the mean validation scores and standard deviation across three random seeds. Other hyper-parameters are listed in Appendix A.",
|
| 649 |
+
"bbox": [
|
| 650 |
+
505,
|
| 651 |
+
523,
|
| 652 |
+
882,
|
| 653 |
+
862
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 3
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "page_footnote",
|
| 659 |
+
"text": "<sup>10</sup>For datasets smaller than $6K$ , we use the entire dataset. The training sets are randomly sampled for each random seed, and are shared across methods with the same seed.",
|
| 660 |
+
"bbox": [
|
| 661 |
+
507,
|
| 662 |
+
879,
|
| 663 |
+
882,
|
| 664 |
+
917
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 3
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "page_footnote",
|
| 670 |
+
"text": "${}^{9}$ Except for the learning rate,which was tuned for each task and model individually.",
|
| 671 |
+
"bbox": [
|
| 672 |
+
112,
|
| 673 |
+
891,
|
| 674 |
+
487,
|
| 675 |
+
917
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 3
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "page_number",
|
| 681 |
+
"text": "14839",
|
| 682 |
+
"bbox": [
|
| 683 |
+
477,
|
| 684 |
+
927,
|
| 685 |
+
524,
|
| 686 |
+
940
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 3
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "Table 1 shows results for BERT classifiers, $^{11}$ averaged across all tasks. Our results show that multiple classifiers updating the same weights during fine-tuning diminishes the performance of Early Exit classifiers by $2.3\\%$ on average (1.7% for BERT, 3.0% for DeBERTa), with earliest classifiers affected the most (3.5% for BERT, 7.0% for DeBERTa). The increased effect on early classifiers supports our hypothesis regarding conflicting gradients: parameters used by early classifiers receive updates from the largest number of classifiers, thus increasing the chance for conflicting gradients and leading to a larger decrease in performance.",
|
| 693 |
+
"bbox": [
|
| 694 |
+
112,
|
| 695 |
+
84,
|
| 696 |
+
492,
|
| 697 |
+
294
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 4
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "3.3 Speed-Accuracy Trad-eoff",
|
| 704 |
+
"text_level": 1,
|
| 705 |
+
"bbox": [
|
| 706 |
+
112,
|
| 707 |
+
305,
|
| 708 |
+
369,
|
| 709 |
+
321
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 4
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "So far we observed that Multi-Model classifiers outperform Early-Exit ones. On the other hand, we also note that there is considerable overhead when using a Multi-Model model. For Multi-Model, an instance that makes an exit on classifier $C_i$ , runs all classifiers up to (including) $C_i$ , each being an independent model, while Early-Exit early layer computations are reused by later classifiers. We turn to evaluate the trade-off between these two factors and compare the overall speed-accuracy curve of each adaptive inference method.",
|
| 716 |
+
"bbox": [
|
| 717 |
+
112,
|
| 718 |
+
326,
|
| 719 |
+
487,
|
| 720 |
+
501
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 4
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "We evaluate model scores across different inference speeds using 11 threshold values, evenly spaced in the range $\\left(\\frac{1}{\\# \\text{ of labels}}, 1\\right)$ . We note that $t = \\frac{1}{\\# \\text{ of labels}}$ corresponds to the earliest classifier predicting all labels, while for $t = 1$ , the final classifier is used on the entire validation set.",
|
| 727 |
+
"bbox": [
|
| 728 |
+
112,
|
| 729 |
+
504,
|
| 730 |
+
489,
|
| 731 |
+
606
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 4
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "We compute the speedup ratio for each instance as the number of layers it passes through divided by the number of layers of the full backbone model (12 for BASE models, 24 for LARGE models), and average across all instances. As an example, for classifiers following layers [1, 4, 6, 12], an instance that exits on the third classifier (i.e., after layer 6), will have a speedup ratio of $\\frac{6}{12}$ for Early-Exit and $\\frac{11}{12}$ for Multi-Model $(\\frac{6}{12} + \\frac{4}{12} + \\frac{1}{12})$ .",
|
| 738 |
+
"bbox": [
|
| 739 |
+
112,
|
| 740 |
+
608,
|
| 741 |
+
489,
|
| 742 |
+
753
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 4
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "We evaluate models on the seven tasks listed in Section 3.2, and report the average scores across all tasks. $\\mathrm{BERT}_{BASE}$ results are presented in Fig. 4, while the results for all other models can be found in Fig. 5. The speed-accuracy curves reveal two important observations. First, as expected, MultiModel achieves better scores at fast speeds (when most instances are predicted by early classifiers).",
|
| 749 |
+
"bbox": [
|
| 750 |
+
112,
|
| 751 |
+
753,
|
| 752 |
+
489,
|
| 753 |
+
881
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 4
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "image",
|
| 759 |
+
"img_path": "images/c3c10d4e89b0ca3e40881ee2e1342205ab1768d254d9ebed2e1d0115aef355b4.jpg",
|
| 760 |
+
"image_caption": [
|
| 761 |
+
"Figure 4: Speed-accuracy trade-off comparison of Multi-Model and Early-Exit. Multi-Model performs better only at fast inference times (up to $\\frac{1}{4}$ of original run time), while Early-Exit dominates the remainder of the range. The graph shows the average task scores (y-axis) as a function of the speedup ratio (x-axis)."
|
| 762 |
+
],
|
| 763 |
+
"image_footnote": [],
|
| 764 |
+
"bbox": [
|
| 765 |
+
531,
|
| 766 |
+
91,
|
| 767 |
+
867,
|
| 768 |
+
287
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 4
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Second, although each Multi-Model classifier outperforms its corresponding Early-Exit one, the Multi-Model overhead leads to this approach being outperformed by Early-Exit at slow speeds (when more instances are predicted by later classifiers).",
|
| 775 |
+
"bbox": [
|
| 776 |
+
507,
|
| 777 |
+
423,
|
| 778 |
+
885,
|
| 779 |
+
502
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 4
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "4 SWEET: Separating Weights for Early-Exit Transformers",
|
| 786 |
+
"text_level": 1,
|
| 787 |
+
"bbox": [
|
| 788 |
+
507,
|
| 789 |
+
516,
|
| 790 |
+
826,
|
| 791 |
+
550
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 4
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Based on our findings, we aim to design an Early-Exit method that takes advantage of the benefits of both Multi-Model and Early-Exit approaches: making the lower Early-Exit classifiers as accurate as the Multi-Model ones, without the additional overhead of the Multi-Model approach.",
|
| 798 |
+
"bbox": [
|
| 799 |
+
507,
|
| 800 |
+
560,
|
| 801 |
+
885,
|
| 802 |
+
657
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 4
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "4.1 SWEET",
|
| 809 |
+
"text_level": 1,
|
| 810 |
+
"bbox": [
|
| 811 |
+
507,
|
| 812 |
+
670,
|
| 813 |
+
623,
|
| 814 |
+
684
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 4
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "We present SWEET—a method for fine-tuning Early-Exit models that avoids the harmful impact of conflicting gradients. SWEET grants each classifier exclusive control over part of the model's parameters, such that each model parameter is only updated by a single classifier. This is done by truncating the loss signal from classifier $C_i$ when reaching the Transformer layer corresponding to classifier $C_{i - 1}$ (Fig. 2, right).",
|
| 821 |
+
"bbox": [
|
| 822 |
+
505,
|
| 823 |
+
692,
|
| 824 |
+
884,
|
| 825 |
+
837
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 4
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "In SWEET, each classification head receives complete control over a portion of the Model's parameters and can alter them in a way that optimizes its own goals. Truncating future loss signals make the very first classifier an independent model, as",
|
| 832 |
+
"bbox": [
|
| 833 |
+
507,
|
| 834 |
+
838,
|
| 835 |
+
884,
|
| 836 |
+
917
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 4
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "page_footnote",
|
| 842 |
+
"text": "11See Appendix C, Table 3 for DeBERTa results.",
|
| 843 |
+
"bbox": [
|
| 844 |
+
129,
|
| 845 |
+
890,
|
| 846 |
+
428,
|
| 847 |
+
904
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 4
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "page_footnote",
|
| 853 |
+
"text": "Further experimental details can be found in Appendix A.",
|
| 854 |
+
"bbox": [
|
| 855 |
+
129,
|
| 856 |
+
904,
|
| 857 |
+
485,
|
| 858 |
+
917
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 4
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "page_number",
|
| 864 |
+
"text": "14840",
|
| 865 |
+
"bbox": [
|
| 866 |
+
477,
|
| 867 |
+
927,
|
| 868 |
+
524,
|
| 869 |
+
940
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 4
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "image",
|
| 875 |
+
"img_path": "images/8ff76a1b473522e37cd46613480350baa255c8d2678946bb23110590c7cd0cd9.jpg",
|
| 876 |
+
"image_caption": [
|
| 877 |
+
"Figure 5: Speed-accuracy tradeoff averaged across tasks. SWEET matches the performance of Multi-Model at fast speeds, while maintaining results comparable to Early-Exit at slow speeds."
|
| 878 |
+
],
|
| 879 |
+
"image_footnote": [],
|
| 880 |
+
"bbox": [
|
| 881 |
+
129,
|
| 882 |
+
85,
|
| 883 |
+
873,
|
| 884 |
+
229
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 5
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "opposed to a model that shares its parameters with future classifiers. The following classifiers update only a subset of the model's parameters but are affected by early model parameters, allowing them to still make use of earlier computations when processing an instance. We clarify that all model weights are updated simultaneously, as opposed to training the classifiers (and their corresponding layers) sequentially, which would have led to significantly longer fine-tuning, matching that of a Multi-Model model.",
|
| 891 |
+
"bbox": [
|
| 892 |
+
112,
|
| 893 |
+
300,
|
| 894 |
+
489,
|
| 895 |
+
476
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 5
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "4.2 A Better Speeds-Accuracy Curve",
|
| 902 |
+
"text_level": 1,
|
| 903 |
+
"bbox": [
|
| 904 |
+
112,
|
| 905 |
+
499,
|
| 906 |
+
420,
|
| 907 |
+
514
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 5
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "We turn to evaluate the speed-accuracy curve of SWEET. We use the same experimental setup as in Section 3.2; we fine-tune two pre-trained LMs (BERT and DeBERTa) in two sizes (BASE, LARGE) over the same seven text classification tasks. We use the same exit points and evaluate over the entire validation set using confidence-based exiting. We compare SWEET to two baselines: a standard Early-Exit model and a Multi-Model model. We compute the speedup ratio using the same method as described in Section 3.3. For further implementation details, see Appendix A.",
|
| 914 |
+
"bbox": [
|
| 915 |
+
112,
|
| 916 |
+
526,
|
| 917 |
+
489,
|
| 918 |
+
719
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 5
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "Fig. 5 presents the speed-accuracy curves of all models, averaged across all tasks. The figure shows that at the fastest speeds, SWEET outperforms Early-Exit for all models and is comparable to, or outperforms, Multi-Model. However, for 3 out of the 4 models (all but $\\mathrm{BERT}_{\\text{LARGE}}$ ), Early-Exit surpasses the performance of SWEET at slow speeds. SWEET's reduced scores at slow inference speeds are likely due to the lower capacity of the later classifiers, stemming from their restricted influence on early model parameters during fine-tuning.",
|
| 925 |
+
"bbox": [
|
| 926 |
+
112,
|
| 927 |
+
722,
|
| 928 |
+
489,
|
| 929 |
+
900
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 5
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Fig. 6 presents results on individual tasks for",
|
| 936 |
+
"bbox": [
|
| 937 |
+
131,
|
| 938 |
+
903,
|
| 939 |
+
487,
|
| 940 |
+
917
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 5
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "$\\mathrm{BERT}_{BASE}$ . On five out of seven tasks, SWEET outperforms both baselines at fast speeds (up to a speedup ratio of $1/2$ ), suggesting that SWEET improves the performance of lower Early-Exit classifiers by avoiding conflicting gradients during training. For two tasks (MRPC and CoLA), SWEET suffers a considerable decrease in performance at slow inference speeds. For the other five tasks SWEET maintains comparable results to Early-Exit.",
|
| 947 |
+
"bbox": [
|
| 948 |
+
507,
|
| 949 |
+
299,
|
| 950 |
+
884,
|
| 951 |
+
445
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 5
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "It is also interesting to examine how SWEET affects individual Early-Exit classifiers. Table 1 shows the results of BERT's individual classifiers trained with SWEET compared to Early-Exit and Multi-Model. $^{14}$ SWEET classifiers close much of the gap between Early-Exit and Multi-Model: they outperform those of Early-Exit by $1.1\\%$ on average $(1.2\\%)$ for BERT, $1.0\\%$ for DeBERTa), with the margin being larger for the earliest classifier $(3.4\\%)$ for BERT, $6.2\\%$ for DeBERTa). The final two classifiers trained with SWEET achieve lower scores than those of Early-Exit $(0.9\\%)$ on average), probably due to the restricted influence those classifiers have on early model parameters. Our results hint that SWEET is able to effectively bridge the gap between Early-Exit and Multi-Model early classifiers, leading to a speed-accuracy curve favoring fast inference speeds.",
|
| 958 |
+
"bbox": [
|
| 959 |
+
507,
|
| 960 |
+
449,
|
| 961 |
+
884,
|
| 962 |
+
739
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 5
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "We note that during our experiments with Early-Exit and Multi-Model models, some models did not converge. In order to ensure the validity of our results, we repeated these experiments with different random seeds, which led to convergence. We emphasize that this did not occur during the training of models using SWEET.",
|
| 969 |
+
"bbox": [
|
| 970 |
+
507,
|
| 971 |
+
743,
|
| 972 |
+
885,
|
| 973 |
+
857
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 5
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "page_footnote",
|
| 979 |
+
"text": "<sup>13</sup>Fig. 10 in Appendix D shows individual results for the other models.",
|
| 980 |
+
"bbox": [
|
| 981 |
+
507,
|
| 982 |
+
878,
|
| 983 |
+
882,
|
| 984 |
+
903
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 5
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "page_footnote",
|
| 990 |
+
"text": "14See Table 3 in Appendix C for DeBERTa results.",
|
| 991 |
+
"bbox": [
|
| 992 |
+
527,
|
| 993 |
+
904,
|
| 994 |
+
835,
|
| 995 |
+
917
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 5
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "page_number",
|
| 1001 |
+
"text": "14841",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
477,
|
| 1004 |
+
927,
|
| 1005 |
+
522,
|
| 1006 |
+
940
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 5
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "image",
|
| 1012 |
+
"img_path": "images/01108ddab7f9fa9cf895bcc9b8842ba40f2a87366cb172314bf4ddc52dd82be4.jpg",
|
| 1013 |
+
"image_caption": [
|
| 1014 |
+
"Figure 6: Speed-accuracy curve for individual tasks, using a $\\mathrm{BERT}_{\\mathrm{BASE}}$ model. SWET outperforms both baselines at fast speeds (lower values of $x$ ) on five out of seven tasks. See Fig. 10 for $\\mathrm{BERT}_{\\mathrm{LARGE}}$ and DeBERTa results."
|
| 1015 |
+
],
|
| 1016 |
+
"image_footnote": [],
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
129,
|
| 1019 |
+
84,
|
| 1020 |
+
877,
|
| 1021 |
+
348
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 6
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "image",
|
| 1027 |
+
"img_path": "images/c6793d2840b9d00f1a774a08cede444aa4791440af8632c07dfe627e94e3cccc.jpg",
|
| 1028 |
+
"image_caption": [
|
| 1029 |
+
"Figure 7: Speed-Accuracy curves with the learning-to-exit strategy. As with confidence-based methods, SWEET outperforms both baselines at fast speeds, while maintaining comparable results at slow speeds."
|
| 1030 |
+
],
|
| 1031 |
+
"image_footnote": [],
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
121,
|
| 1034 |
+
414,
|
| 1035 |
+
478,
|
| 1036 |
+
539
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 6
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "5 Further Analysis",
|
| 1043 |
+
"text_level": 1,
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
112,
|
| 1046 |
+
640,
|
| 1047 |
+
295,
|
| 1048 |
+
657
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 6
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "We turn to evaluate the robustness of our approach. We start with evaluating SWEET using a different exit strategy. We then test how our results generalize when using varying amounts of training data.",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
112,
|
| 1057 |
+
667,
|
| 1058 |
+
487,
|
| 1059 |
+
732
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 6
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "A different exit strategy: Learning to Exit Our experiments so far have used a confidence-based exit strategy (Section 2). Here we consider a different strategy—learning to exit (Xin et al., 2021), in which a separate module is trained for each classifier, learning whether the classifier's prediction should be trusted, and an exit should be made. This method also allows for a natural extension to regression problems, unlike confidence-based methods that are limited to classification tasks.",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
112,
|
| 1068 |
+
741,
|
| 1069 |
+
487,
|
| 1070 |
+
900
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 6
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "We use BERT {BASE, LARGE} as a backbone",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
132,
|
| 1079 |
+
903,
|
| 1080 |
+
485,
|
| 1081 |
+
917
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 6
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "model and fine-tune in the same procedure described in Section 3.3. Our results (Fig. 7) reveal that the methods behave similarly to the confidence-based setup; SWEET outperforms both baselines at the early stage of the curve (fast speeds), while performing on par with Early-Exit at slow speeds. We also measure the performance of individual exit layers, as in Section 3.2, for models fine-tuned using learning-to-exit. Our results (Table 4 in Appendix E) reveal a similar behavior to that of models fine-tuned using confidence based early exiting: Multi-Model classifiers surpass the performance of Early-Exit classifiers. Moreover, SWEET's early classifiers outperform those of Early-Exit, while later ones show a slight decrease in performance.",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
507,
|
| 1090 |
+
412,
|
| 1091 |
+
884,
|
| 1092 |
+
653
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 6
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Varying data sizes Our experiments so far have focused on low-resource setups (a training set of several thousand examples). We now evaluate how SWEET performs as we vary the amount of training data. We fine-tune a BERT<sub>BASE</sub> model on different portions of the MNLI dataset using the same experimental setup as in Section 3.2. Our results, shown in Fig. 8, indicate that SWEET is mostly beneficial when training data is limited to a few thousand examples, but still somewhat useful even with as many as 60K training instances. Nonetheless, the effects of conflicting gradients on the earliest Early-Exit classifier tend to disappear when training on the full dataset (400K instances), making it as good as the smallest Multi-Model classifier. Moreover, in that setup, the use of SWEET seems to substan",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
507,
|
| 1101 |
+
661,
|
| 1102 |
+
884,
|
| 1103 |
+
917
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 6
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "page_number",
|
| 1109 |
+
"text": "14842",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
477,
|
| 1112 |
+
927,
|
| 1113 |
+
524,
|
| 1114 |
+
940
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 6
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "image",
|
| 1120 |
+
"img_path": "images/0f13d70cd97c2b81636f607e04efb7f0693cbc46fe5a3fff7bf4c4f888f3e6ff.jpg",
|
| 1121 |
+
"image_caption": [
|
| 1122 |
+
"BERTBASE",
|
| 1123 |
+
"Figure 8: Speed-accuracy curves of $\\mathrm{BERT}_{BASE}$ models trained on varying sizes of the MNLI dataset. The title of each plot describes the amount of training data used in the fine-tuning phase. The benefits of using SWEET vanish with large amounts of training data."
|
| 1124 |
+
],
|
| 1125 |
+
"image_footnote": [],
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
127,
|
| 1128 |
+
102,
|
| 1129 |
+
873,
|
| 1130 |
+
228
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 7
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "tially decrease the performance of later classifiers, suggesting that the harm caused by limiting the influence of classifiers on model parameters may grow with the amount of training data.",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
112,
|
| 1139 |
+
313,
|
| 1140 |
+
487,
|
| 1141 |
+
380
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 7
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "6 Related Work",
|
| 1148 |
+
"text_level": 1,
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
112,
|
| 1151 |
+
392,
|
| 1152 |
+
270,
|
| 1153 |
+
407
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 7
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Several approaches have been proposed for reducing the inference time of large models (Treviso et al., 2022). These include knowledge distillation (Ba and Caruana, 2014; Hinton et al., 2015), in which the knowledge of a large teacher model is transferred to a smaller student model; pruning (LeCun et al., 1989; Frankle and Carbin, 2018), which removes unnecessary model parameters; and weight quantization (Jacob et al., 2018; Zafrir et al., 2019), which reduces the floating point precision of model weights. See (Treviso et al., 2023, Section 6), for a recent survey. Adaptive inference methods studied in this work are an orthogonal approach, which can be used in combination with these methods (Schwartz et al., 2020b).",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
112,
|
| 1162 |
+
419,
|
| 1163 |
+
489,
|
| 1164 |
+
659
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 7
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "The use of Adaptive inference in deep neural networks has been extensively studied, with successful implementations in various types of networks including recurrent neural networks (Graves, 2016) and convolutional neural networks (Teerapittayanon et al., 2016; Huang and Chen, 2018). In the context of this work, it has also been applied to existing backbone pre-trained language models: Xin et al. (2020) implemented early exit strategies on top of classification tasks. Zhou et al. (2020) Introduced a patience-based exiting, requiring sequential classifiers to agree on a label for a prediction to be made. Xin et al. (2021) extended the use of Early-Exit in Transformers to regression tasks, as well as addressed the issue of reduced performance of the final classifier through the use of an alter",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
112,
|
| 1173 |
+
661,
|
| 1174 |
+
490,
|
| 1175 |
+
917
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 7
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "nating training algorithm. Schuster et al. (2021) proposed a confidence-based early exit model with guarantees on the agreement between early exit predictions and the final classifier.",
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
507,
|
| 1184 |
+
313,
|
| 1185 |
+
882,
|
| 1186 |
+
378
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 7
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "Liu et al. (2022) presented a strong baseline for efficient NLP by adding multiple classifiers to a BERT model during pre-training. Recently, Schuster et al. (2022) adjusted the Early-Exit method to language modeling for text generation, making dynamic computation at the single token level.",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
507,
|
| 1195 |
+
379,
|
| 1196 |
+
882,
|
| 1197 |
+
475
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 7
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "Multi-Model approaches to adaptive inference have been proposed for vision tasks (Enomoro and Eda, 2021) as well as for NLP (Li et al., 2020; Varshney and Baral, 2022b). Mamou et al. (2023) introduced a two-tier design with a highly efficient model serving as the first model and a powerful model serving as the second, enabling the possibility of achieving extremely fast inference speed.",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
507,
|
| 1206 |
+
476,
|
| 1207 |
+
884,
|
| 1208 |
+
605
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 7
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "Finally, the concept of conflicting gradients has been mainly studied in the context of multi-task learning, where a single model is faced with solving different tasks (Yu et al., 2020; Liu et al., 2021a). To the best of our knowledge, no previous work examined this in the context of Early-Exit.",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
507,
|
| 1217 |
+
606,
|
| 1218 |
+
882,
|
| 1219 |
+
702
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 7
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "7 Conclusion",
|
| 1226 |
+
"text_level": 1,
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
509,
|
| 1229 |
+
715,
|
| 1230 |
+
640,
|
| 1231 |
+
730
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 7
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "In this work, we analyzed the performance of two common adaptive inference methods—Early-Exit and Multi-Model. We found evidence that model weights are updated by conflicting gradients in the training process of Early-Exit models, causing classifiers to perform at a sub-optimal level. Despite this, we showed that regarding the entire speed-accuracy curve, Early-Exit is still favorable to Multi-Model due to the overhead of using independent model runs in a Multi-Model setup.",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
507,
|
| 1240 |
+
741,
|
| 1241 |
+
884,
|
| 1242 |
+
902
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 7
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "To address these findings, we proposed SWEET,",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
527,
|
| 1251 |
+
903,
|
| 1252 |
+
882,
|
| 1253 |
+
917
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 7
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "page_number",
|
| 1259 |
+
"text": "14843",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
477,
|
| 1262 |
+
927,
|
| 1263 |
+
524,
|
| 1264 |
+
940
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 7
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "a novel Early-Exit method, which avoids conflicting gradients by allocating each Early-Exit classifier a subset of model weights which are updated solely by it. We found that for Early-Exit models trained with SWEET, early classifiers perform better than those of standard Early-Exit, but later classifiers of SWEET are not as good. These measures lead to SWEET outperforming both Early-Exit and Multi-Model in fast speeds, with slightly worse results than Early-Exit at slow speeds.",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
112,
|
| 1273 |
+
84,
|
| 1274 |
+
489,
|
| 1275 |
+
243
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 8
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Overall, our results demonstrate that Early-Exit models can benefit from fine-tuning algorithms that are tailored to their architecture, and that SWEET is a promising approach for improving the speed-accuracy trade-off of Early-Exit models in the context of adaptive inference.",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
112,
|
| 1284 |
+
244,
|
| 1285 |
+
489,
|
| 1286 |
+
342
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 8
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "8 Limitations",
|
| 1293 |
+
"text_level": 1,
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
112,
|
| 1296 |
+
354,
|
| 1297 |
+
250,
|
| 1298 |
+
369
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 8
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "This work focuses on the effects of adaptive inference in a low-resource setting, specifically when training data is limited. Our experiments (Section 5) suggest that the negative impact of conflicting gradients may be less prominent when larger amount of training data is available.",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
112,
|
| 1307 |
+
380,
|
| 1308 |
+
489,
|
| 1309 |
+
476
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 8
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Our experiments were conducted using relatively small pre-trained language models ( $\\leq 350M$ parameters) due to computational constraints, and we defer the replication of our findings with larger, more powerful models to future work. Nonetheless, our results have important implications for the growing trend of increasingly large language models. We hope this work inspires further research on methods to reduce the computational cost of NLP.",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
112,
|
| 1318 |
+
478,
|
| 1319 |
+
489,
|
| 1320 |
+
621
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 8
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "This work concentrates on evaluating the speed-accuracy trade-off of Multi-Model and Early-Exit at inference time. We recognize that there are additional factors, such as memory usage, batch processing, and training duration, that could be considered when comparing these methods.",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
112,
|
| 1329 |
+
623,
|
| 1330 |
+
489,
|
| 1331 |
+
718
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 8
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Finally, we experimented with seven text classification tasks in English. We recognize that results may vary for other tasks and languages.",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
112,
|
| 1340 |
+
719,
|
| 1341 |
+
489,
|
| 1342 |
+
768
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 8
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Acknowledgements",
|
| 1349 |
+
"text_level": 1,
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
112,
|
| 1352 |
+
781,
|
| 1353 |
+
287,
|
| 1354 |
+
796
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 8
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "We acknowledge Yarden Tal for her early contributions to this work, and Gabriel Stanovsky for his advice and meaningful feedback. This work was supported in part by the Israel Science Foundation (grant no. 2045/21), NSF-BSF grant 2020793, and by a grant from Intel Labs.",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
112,
|
| 1363 |
+
806,
|
| 1364 |
+
489,
|
| 1365 |
+
903
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 8
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "References",
|
| 1372 |
+
"text_level": 1,
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
510,
|
| 1375 |
+
83,
|
| 1376 |
+
608,
|
| 1377 |
+
98
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 8
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "list",
|
| 1383 |
+
"sub_type": "ref_text",
|
| 1384 |
+
"list_items": [
|
| 1385 |
+
"Jimmy Ba and Rich Caruana. 2014. Do deep nets really need to be deep? In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems 27, pages 2654-2662. Curran Associates, Inc.",
|
| 1386 |
+
"Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. 2009. The fifth pascal recognizing textual entailment challenge. In Proc. of TAC.",
|
| 1387 |
+
"Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901.",
|
| 1388 |
+
"Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. 2014. Training deep neural networks with low precision multiplications. arXiv preprint arXiv:1412.7024.",
|
| 1389 |
+
"Ido Dagan, Oren Glickman, and Bernardo Magnini. 2006. The pascal recognising textual entailment challenge. In *Machine learning challenges workshop*, pages 177–190. Springer.",
|
| 1390 |
+
"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.",
|
| 1391 |
+
"William B. Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proc. of IWP.",
|
| 1392 |
+
"Shohei Enomoro and Takeharu Eda. 2021. Learning to cascade: Confidence calibration for improving the accuracy and computational cost of cascade inference systems. In Proceedings of the AAAI Conference on Artificial Intelligence.",
|
| 1393 |
+
"Jonathan Frankle and Michael Carbin. 2018. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations.",
|
| 1394 |
+
"Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and William B Dolan. 2007. The third pascal recognizing textual entailment challenge. In Proceedings of the ACL-PASCAL workshop on textual entailment and paraphrasing, pages 1-9.",
|
| 1395 |
+
"Alex Graves. 2016. Adaptive computation time for recurrent neural networks. arXiv:1603.08983.",
|
| 1396 |
+
"Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. 2017. On calibration of modern neural networks. In ICML."
|
| 1397 |
+
],
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
509,
|
| 1400 |
+
105,
|
| 1401 |
+
884,
|
| 1402 |
+
917
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 8
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "page_number",
|
| 1408 |
+
"text": "14844",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
477,
|
| 1411 |
+
927,
|
| 1412 |
+
524,
|
| 1413 |
+
940
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 8
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "list",
|
| 1419 |
+
"sub_type": "ref_text",
|
| 1420 |
+
"list_items": [
|
| 1421 |
+
"R Bar Haim, Ido Dagan, Bill Dolan, Lisa Ferro, Danilo Giampiccolo, Bernardo Magnini, and Idan Szpektor. 2006. The second pascal recognising textual entailment challenge. In Proceedings of the Second PASCAL Challenges Workshop on Recognising Textual Entailment, volume 7.",
|
| 1422 |
+
"Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2020. Deberta: Decoding-enhanced bert with disentangled attention. In International Conference on Learning Representations.",
|
| 1423 |
+
"Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. Cite arxiv:1503.02531 Comment: NIPS 2014 Deep Learning Workshop.",
|
| 1424 |
+
"Gao Huang and Danlu Chen. 2018. Multi-scale dense networks for resource efficient image classification. ICLR 2018.",
|
| 1425 |
+
"Shankar Iyer, Nikhil Dandekar, and Kornél Csernai. 2016. First quora dataset release: Question pairs. https://data.quora.com/First-Quora-Dataset-Release-Question-Pairs.",
|
| 1426 |
+
"Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew G. Howard, Hartwig Adam, and Dmitry Kalenichenko. 2018. Quantization and training of neural networks for efficient integer-arithmetic-only inference. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2704-2713.",
|
| 1427 |
+
"Yann LeCun, John Denker, and Sara Solla. 1989. Optimal brain damage. Advances in neural information processing systems, 2.",
|
| 1428 |
+
"Lei Li, Yankai Lin, Deli Chen, Shuhuai Ren, Peng Li, Jie Zhou, and Xu Sun. 2020. Cascadebert: Accelerating inference of pre-trained language models via calibrated complete models cascade. arXiv preprint arXiv:2012.14682.",
|
| 1429 |
+
"Bo Liu, Xingchao Liu, Xiaojie Jin, Peter Stone, and Qiang Liu. 2021a. Conflict-averse gradient descent for multi-task learning. Advances in Neural Information Processing Systems, 34:18878-18890.",
|
| 1430 |
+
"Weijie Liu, Peng Zhou, Zhiruo Wang, Zhe Zhao, Haotang Deng, and Qi Ju. 2020. FastBERT: a self-distilling BERT with adaptive inference time. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 6035-6044, Online. Association for Computational Linguistics.",
|
| 1431 |
+
"Xiangyang Liu, Tianxiang Sun, Junliang He, Jiawen Wu, Lingling Wu, Xinyu Zhang, Hao Jiang, Zhao Cao, Xuanjing Huang, and Xipeng Qiu. 2022. Towards efficient NLP: A standard evaluation and a strong baseline. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3288-3303, Seattle, United States. Association for Computational Linguistics."
|
| 1432 |
+
],
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
115,
|
| 1435 |
+
85,
|
| 1436 |
+
495,
|
| 1437 |
+
917
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 9
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "list",
|
| 1443 |
+
"sub_type": "ref_text",
|
| 1444 |
+
"list_items": [
|
| 1445 |
+
"Xiangyang Liu, Tianxiang Sun, Junliang He, Lingling Wu, Xinyu Zhang, Hao Jiang, Zhao Cao, Xuanjing Huang, and Xipeng Qiu. 2021b. Towards efficient nlp: A standard evaluation and a strong baseline. arXiv preprint arXiv:2110.07038.",
|
| 1446 |
+
"Jonathan Mamou, Oren Pereg, Moshe Wasserblat, and Roy Schwartz. 2023. TangoBERT: Reducing inference cost by using cascaded architecture. In In Proc. EMC $^2$ .",
|
| 1447 |
+
"Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. Squad: 100,000+ questions for machine comprehension of text. In EMNLP.",
|
| 1448 |
+
"Tal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani, Dara Bahri, Vinh Q Tran, Yi Tay, and Donald Metzler. 2022. Confident adaptive language modeling. arXiv preprint arXiv:2207.07061.",
|
| 1449 |
+
"Tal Schuster, Adam Fisch, Tommi Jaakkola, and Regina Barzilay. 2021. Consistent accelerated inference via confident adaptive transformers. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 4962-4979.",
|
| 1450 |
+
"Roy Schwartz, Jesse Dodge, Noah A Smith, and Oren Etzioni. 2020a. Green AI. Communications of the ACM, 63(12):54-63.",
|
| 1451 |
+
"Roy Schwartz, Gabriel Stanovsky, Swabha Swayamdipta, Jesse Dodge, and Noah A. Smith. 2020b. The right tool for the job: Matching model and instance complexities. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 6640-6651, Online. Association for Computational Linguistics.",
|
| 1452 |
+
"Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proc. of EMNLP.",
|
| 1453 |
+
"Surat Teerapittayanon, Bradley McDanel, and HsiangTsung Kung. 2016. Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd International Conference on Pattern Recognition (ICPR), pages 2464-2469. IEEE.",
|
| 1454 |
+
"Neil C Thompson, Kristjan Greenewald, Keeheon Lee, and Gabriel F Manso. 2020. The computational limits of deep learning. arXiv preprint arXiv:2007.05558.",
|
| 1455 |
+
"Marcos Treviso, Tianchu Ji, Ji-Ung Lee, Betty van Aken, Qingqing Cao, Manuel R. Ciosici, Michael Hassid, Kenneth Heafield, Sara Hooker, Pedro H. Martins, Andre F. T. Martins, Peter Milder, Colin Raffel, Jessica Forde, Edwin Simpson, Noam Slonim, Jesse Dodge, Emma Stubell, Niranjan Balasubramanian, Leon Derczynski, Iryna Gurevych, and Roy Schwartz. 2023. Efficient methods for natural language processing: A survey. TACL."
|
| 1456 |
+
],
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
510,
|
| 1459 |
+
85,
|
| 1460 |
+
880,
|
| 1461 |
+
917
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 9
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "page_number",
|
| 1467 |
+
"text": "14845",
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
477,
|
| 1470 |
+
928,
|
| 1471 |
+
524,
|
| 1472 |
+
940
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 9
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "list",
|
| 1478 |
+
"sub_type": "ref_text",
|
| 1479 |
+
"list_items": [
|
| 1480 |
+
"Marcos Treviso, Tianchu Ji, Ji-Ung Lee, Betty van Aken, Qingqing Cao, Manuel R Ciosici, Michael Hassid, Kenneth Heafield, Sara Hooker, Pedro H Martins, et al. 2022. Efficient methods for natural language processing: A survey. arXiv preprint arXiv:2209.00099.",
|
| 1481 |
+
"Neeraj Varshney and Chitta Baral. 2022a. Model cascading: Towards jointly improving efficiency and accuracy of nlp systems. arXiv preprint arXiv:2210.05528.",
|
| 1482 |
+
"Neeraj Varshney and Chitta Baral. 2022b. Model cascading: Towards jointly improving efficiency and accuracy of nlp systems. In In Proceedings of EMNLP.",
|
| 1483 |
+
"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.",
|
| 1484 |
+
"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 Proc. of ICLR.",
|
| 1485 |
+
"Alex Warstadt, Amanpreet Singh, and Samuel R. Bowman. 2019. Neural network acceptability judgments. TACL.",
|
| 1486 |
+
"Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A broad-coverage challenge corpus for sentence understanding through inference. In Proc. of NAACL.",
|
| 1487 |
+
"Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, 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, pages 38-45, Online. Association for Computational Linguistics.",
|
| 1488 |
+
"Ji Xin, Raphael Tang, Jaejun Lee, Yaoliang Yu, and Jimmy Lin. 2020. DeeBERT: Dynamic early exiting for accelerating BERT inference. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2246-2251, Online. Association for Computational Linguistics.",
|
| 1489 |
+
"Ji Xin, Raphael Tang, Yaoliang Yu, and Jimmy Lin. 2021. BERxiT: Early exiting for BERT with better fine-tuning and extension to regression. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics:"
|
| 1490 |
+
],
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
115,
|
| 1493 |
+
85,
|
| 1494 |
+
485,
|
| 1495 |
+
917
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 10
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "list",
|
| 1501 |
+
"sub_type": "ref_text",
|
| 1502 |
+
"list_items": [
|
| 1503 |
+
"Main Volume, pages 91-104, Online. Association for Computational Linguistics.",
|
| 1504 |
+
"Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman, and Chelsea Finn. 2020. Gradient surgery for multi-task learning. Advances in Neural Information Processing Systems, 33:5824-5836.",
|
| 1505 |
+
"Ofir Zafrir, Guy Boudoukh, Peter Izsak, and Moshe Wasserblat. 2019. Q8bert: Quantized 8bit bert. 2019 Fifth Workshop on Energy Efficient Machine Learning and Cognitive Computing - NeurIPS Edition (EMC2-NIPS), pages 36-39.",
|
| 1506 |
+
"Zhen Zhang, Wei Zhu, Jinfan Zhang, Peng Wang, Rize Jin, and Tae-Sun Chung. 2022. Pcee-bert: Accelerating bert inference via patient and confident early exiting. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 327-338.",
|
| 1507 |
+
"Wangchunshu Zhou, Canwen Xu, Tao Ge, Julian McAuley, Ke Xu, and Furu Wei. 2020. Bert loses patience: fast and robust inference with early exit. In Proceedings of the 34th International Conference on Neural Information Processing Systems, pages 18330-18341."
|
| 1508 |
+
],
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
510,
|
| 1511 |
+
85,
|
| 1512 |
+
882,
|
| 1513 |
+
426
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 10
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "page_number",
|
| 1519 |
+
"text": "14846",
|
| 1520 |
+
"bbox": [
|
| 1521 |
+
477,
|
| 1522 |
+
928,
|
| 1523 |
+
524,
|
| 1524 |
+
940
|
| 1525 |
+
],
|
| 1526 |
+
"page_idx": 10
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "text",
|
| 1530 |
+
"text": "A Implementation Details",
|
| 1531 |
+
"text_level": 1,
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
114,
|
| 1534 |
+
84,
|
| 1535 |
+
356,
|
| 1536 |
+
99
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 11
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "text",
|
| 1542 |
+
"text": "Further implementation details For fine-tuning BERT models, we use a batch size of 16. For fine-tuning DeBERTa, due to GPU memory constraints, we use a batch size of 16 for BASE and 8 for LARGE. We fine tune the models for two epochs with a maximal sequence length of 256. We use $\\beta = 0.9$ , 0.999 for the AdamW optimizer with linear LR-decay. We optimize the initial learning rate for each method, model size & task by performing a search over five values {1e-5, 2e-5, 3e-5, 4e-5, 5e-5} and choose the value leading to the largest area under the speed-accuracy curve. Chosen LRs are presented in table Table 2",
|
| 1543 |
+
"bbox": [
|
| 1544 |
+
112,
|
| 1545 |
+
109,
|
| 1546 |
+
489,
|
| 1547 |
+
317
|
| 1548 |
+
],
|
| 1549 |
+
"page_idx": 11
|
| 1550 |
+
},
|
| 1551 |
+
{
|
| 1552 |
+
"type": "text",
|
| 1553 |
+
"text": "All experiments were run on a single NVIDIA A5000 GPU. The overall computational budget was $\\sim 1000$ GPU hours. We implement all methods using the HuggingFace Transformer library (Wolf et al., 2020).",
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
112,
|
| 1556 |
+
319,
|
| 1557 |
+
487,
|
| 1558 |
+
398
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 11
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "Speedup evaluation The speed-up ratio of the model when using exit threshold $t$ is calculated using the formula:",
|
| 1565 |
+
"bbox": [
|
| 1566 |
+
112,
|
| 1567 |
+
407,
|
| 1568 |
+
487,
|
| 1569 |
+
455
|
| 1570 |
+
],
|
| 1571 |
+
"page_idx": 11
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"type": "equation",
|
| 1575 |
+
"text": "\n$$\n\\operatorname {s p e e d u p} _ {t} = \\frac {\\sum_ {i = 1} ^ {M} S _ {i} ^ {t} \\cdot L _ {i}}{L _ {M} \\cdot \\sum_ {i = 1} ^ {M} S _ {i} ^ {t}} \\tag {1}\n$$\n",
|
| 1576 |
+
"text_format": "latex",
|
| 1577 |
+
"bbox": [
|
| 1578 |
+
196,
|
| 1579 |
+
467,
|
| 1580 |
+
487,
|
| 1581 |
+
507
|
| 1582 |
+
],
|
| 1583 |
+
"page_idx": 11
|
| 1584 |
+
},
|
| 1585 |
+
{
|
| 1586 |
+
"type": "text",
|
| 1587 |
+
"text": "where $M$ is the number of classifiers used for the model, $L_{i}$ denotes the number of the layer preceding the $i$ -th classification head and $S_{i}^{t}$ denotes the number of samples classified by the $i$ -th classifier when using threshold $t$ .",
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
112,
|
| 1590 |
+
516,
|
| 1591 |
+
487,
|
| 1592 |
+
596
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 11
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "text",
|
| 1598 |
+
"text": "The same exit threshold can lead to different speedup ratios amongst models trained with different random seeds. We use linear interpolation to approximate the accuracy score at set speedup ratios. We evaluate at $(1/12, 1/4, 1/2, 3/4, 1)^{15}$ and report the average across three random seeds as well as a $95\\%$ confidence interval. $^{16}$ We use temperature scaling (Guo et al., 2017) to make classifiers confidence, and therefore early-exiting decisions, more reliable. Note that this scaling is monotonic and therefore does not influence predictions.",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
112,
|
| 1601 |
+
596,
|
| 1602 |
+
489,
|
| 1603 |
+
774
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 11
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "text",
|
| 1609 |
+
"text": "B Conflicting Gradients",
|
| 1610 |
+
"text_level": 1,
|
| 1611 |
+
"bbox": [
|
| 1612 |
+
112,
|
| 1613 |
+
785,
|
| 1614 |
+
339,
|
| 1615 |
+
802
|
| 1616 |
+
],
|
| 1617 |
+
"page_idx": 11
|
| 1618 |
+
},
|
| 1619 |
+
{
|
| 1620 |
+
"type": "text",
|
| 1621 |
+
"text": "We replicate the experiment done in Section 3.1 with another batch of size 16 to examine if our findings generalize. results presented in Fig. 9 show",
|
| 1622 |
+
"bbox": [
|
| 1623 |
+
112,
|
| 1624 |
+
810,
|
| 1625 |
+
487,
|
| 1626 |
+
859
|
| 1627 |
+
],
|
| 1628 |
+
"page_idx": 11
|
| 1629 |
+
},
|
| 1630 |
+
{
|
| 1631 |
+
"type": "text",
|
| 1632 |
+
"text": "a similar trend to Fig. 3: Gradient updates of current classifiers are roughly orthogonal to those of future classifiers, whereas future classifier updates are more aligned.",
|
| 1633 |
+
"bbox": [
|
| 1634 |
+
507,
|
| 1635 |
+
84,
|
| 1636 |
+
884,
|
| 1637 |
+
149
|
| 1638 |
+
],
|
| 1639 |
+
"page_idx": 11
|
| 1640 |
+
},
|
| 1641 |
+
{
|
| 1642 |
+
"type": "image",
|
| 1643 |
+
"img_path": "images/2bc7a657c42144c9049f04337c6f7aaa4b25682b0c1cfd7e1eb6aecbe30931b8.jpg",
|
| 1644 |
+
"image_caption": [
|
| 1645 |
+
"Figure 9: Average cosine similarity between classifiers' gradient updates of model layers. C-i stands for Classifier $i$ . Layer 1 (preceding C-1) is updated by 3 classifiers, while layers 4 (preceding C-2), and 6 (C-3) are updated by 3 & 2 classifiers respectively. For each layer, the gradient update of the following classifier is roughly orthogonal to those of future classifiers, whereas gradient updates of higher classifiers tend to better align with one another."
|
| 1646 |
+
],
|
| 1647 |
+
"image_footnote": [],
|
| 1648 |
+
"bbox": [
|
| 1649 |
+
509,
|
| 1650 |
+
165,
|
| 1651 |
+
885,
|
| 1652 |
+
376
|
| 1653 |
+
],
|
| 1654 |
+
"page_idx": 11
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"type": "text",
|
| 1658 |
+
"text": "C DeBERTa Individual Layer Comparison",
|
| 1659 |
+
"text_level": 1,
|
| 1660 |
+
"bbox": [
|
| 1661 |
+
507,
|
| 1662 |
+
556,
|
| 1663 |
+
786,
|
| 1664 |
+
589
|
| 1665 |
+
],
|
| 1666 |
+
"page_idx": 11
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"type": "text",
|
| 1670 |
+
"text": "Table 3 Shows individual classifier results for DeBERTa models. As with the BERT results, Multi-Model classifiers outperform corresponding Early-Exit classifiers. SWEET early classifiers are better than Early-Exit ones, while later classifiers tend to downgrade in performance.",
|
| 1671 |
+
"bbox": [
|
| 1672 |
+
507,
|
| 1673 |
+
605,
|
| 1674 |
+
882,
|
| 1675 |
+
702
|
| 1676 |
+
],
|
| 1677 |
+
"page_idx": 11
|
| 1678 |
+
},
|
| 1679 |
+
{
|
| 1680 |
+
"type": "text",
|
| 1681 |
+
"text": "D Individual Task Results",
|
| 1682 |
+
"text_level": 1,
|
| 1683 |
+
"bbox": [
|
| 1684 |
+
507,
|
| 1685 |
+
725,
|
| 1686 |
+
752,
|
| 1687 |
+
739
|
| 1688 |
+
],
|
| 1689 |
+
"page_idx": 11
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "text",
|
| 1693 |
+
"text": "Fig. 10 shows results on individual tasks for BERTLARGE and DeBERTa (BASE & LARGE). For BERTLARGE, SWEET outperforms both baselines throughout the entire speed-accuracy curve over all tasks examined. For DeBERTa models, results are similar to those of BERTBASE, where SWEET performs better at high speeds (small speedup ratio) and is dominated at low speeds (where later classifiers do most of the heavy lifting).",
|
| 1694 |
+
"bbox": [
|
| 1695 |
+
507,
|
| 1696 |
+
758,
|
| 1697 |
+
884,
|
| 1698 |
+
917
|
| 1699 |
+
],
|
| 1700 |
+
"page_idx": 11
|
| 1701 |
+
},
|
| 1702 |
+
{
|
| 1703 |
+
"type": "page_footnote",
|
| 1704 |
+
"text": "15For LARGE models we evaluate at $1 / 24$ as the fastest speedup ratio.",
|
| 1705 |
+
"bbox": [
|
| 1706 |
+
112,
|
| 1707 |
+
866,
|
| 1708 |
+
487,
|
| 1709 |
+
891
|
| 1710 |
+
],
|
| 1711 |
+
"page_idx": 11
|
| 1712 |
+
},
|
| 1713 |
+
{
|
| 1714 |
+
"type": "page_footnote",
|
| 1715 |
+
"text": "16 For Multi-Model we also use $(13 / 8,13 / 4)$ as overhead causes the model to perform at such \"speedup\" ratios.",
|
| 1716 |
+
"bbox": [
|
| 1717 |
+
112,
|
| 1718 |
+
891,
|
| 1719 |
+
485,
|
| 1720 |
+
917
|
| 1721 |
+
],
|
| 1722 |
+
"page_idx": 11
|
| 1723 |
+
},
|
| 1724 |
+
{
|
| 1725 |
+
"type": "page_number",
|
| 1726 |
+
"text": "14847",
|
| 1727 |
+
"bbox": [
|
| 1728 |
+
477,
|
| 1729 |
+
927,
|
| 1730 |
+
524,
|
| 1731 |
+
940
|
| 1732 |
+
],
|
| 1733 |
+
"page_idx": 11
|
| 1734 |
+
},
|
| 1735 |
+
{
|
| 1736 |
+
"type": "table",
|
| 1737 |
+
"img_path": "images/c23448f8a39989bc129223c54064a0f8048f5ca23d82fbc7d17a5cd74c44a22c.jpg",
|
| 1738 |
+
"table_caption": [],
|
| 1739 |
+
"table_footnote": [],
|
| 1740 |
+
"table_body": "<table><tr><td>Model</td><td>Size</td><td colspan=\"7\">Task</td></tr><tr><td></td><td></td><td>SST-2</td><td>MRPC</td><td>CoLA</td><td>MNLI</td><td>QQP</td><td>QNLI</td><td>RTE</td></tr><tr><td rowspan=\"2\">BERT</td><td>BASE</td><td>5\\5\\5</td><td>5\\3\\4</td><td>4\\4\\5</td><td>5\\5\\5</td><td>5\\5\\5</td><td>5\\4\\5</td><td>5\\5\\4</td></tr><tr><td>LARGE</td><td>4\\2\\2</td><td>4\\5\\4</td><td>4\\3\\4</td><td>4\\3\\4</td><td>5\\3\\4</td><td>4\\4\\3</td><td>3\\3\\3</td></tr><tr><td rowspan=\"2\">DeBERTa</td><td>BASE</td><td>3\\3\\3</td><td>4\\5\\5</td><td>4\\5\\4</td><td>2\\4\\3</td><td>4\\5\\5</td><td>3\\4\\3</td><td>2\\1\\4</td></tr><tr><td>LARGE</td><td>2\\4\\3</td><td>3\\2\\1</td><td>3\\3\\2</td><td>2\\2\\2</td><td>2\\2\\3</td><td>3\\2\\1</td><td>1\\2\\2</td></tr></table>",
|
| 1741 |
+
"bbox": [
|
| 1742 |
+
115,
|
| 1743 |
+
80,
|
| 1744 |
+
884,
|
| 1745 |
+
211
|
| 1746 |
+
],
|
| 1747 |
+
"page_idx": 12
|
| 1748 |
+
},
|
| 1749 |
+
{
|
| 1750 |
+
"type": "table",
|
| 1751 |
+
"img_path": "images/0132e41e732fe157b59694a2757aa1db129df337fb027a284eebe254297c32fa.jpg",
|
| 1752 |
+
"table_caption": [
|
| 1753 |
+
"Table 2: Chosen initial learning rate to optimize area under the speed-accuracy curve of each model, size, task. All numbers should be multiplied by 1e-5. $x \\backslash y \\backslash z$ represent the initial learning rate of Early-Exit\\Multi-Model\\SWEET respectively."
|
| 1754 |
+
],
|
| 1755 |
+
"table_footnote": [],
|
| 1756 |
+
"table_body": "<table><tr><td>Size</td><td>Method</td><td colspan=\"4\">Exit Layer</td></tr><tr><td></td><td></td><td>1</td><td>4</td><td>6</td><td>12</td></tr><tr><td rowspan=\"3\">BASE</td><td>MM</td><td>60.10.4</td><td>74.60.6</td><td>78.31.1</td><td>82.20.7</td></tr><tr><td>EE</td><td>52.30.4</td><td>70.90.6</td><td>77.90.8</td><td>81.70.1</td></tr><tr><td>SWEET</td><td>59.11.5</td><td>72.40.2</td><td>75.11.1</td><td>79.50.5</td></tr><tr><td></td><td></td><td>1</td><td>6</td><td>12</td><td>24</td></tr><tr><td rowspan=\"3\">LARGE</td><td>MM</td><td>61.90.1</td><td>76.20.4</td><td>80.20.9</td><td>86.80.2</td></tr><tr><td>EE</td><td>55.80.9</td><td>74.71.1</td><td>79.20.8</td><td>83.61.9</td></tr><tr><td>SWEET</td><td>61.30.7</td><td>76.00.5</td><td>77.80.4</td><td>82.70.4</td></tr></table>",
|
| 1757 |
+
"bbox": [
|
| 1758 |
+
114,
|
| 1759 |
+
284,
|
| 1760 |
+
487,
|
| 1761 |
+
478
|
| 1762 |
+
],
|
| 1763 |
+
"page_idx": 12
|
| 1764 |
+
},
|
| 1765 |
+
{
|
| 1766 |
+
"type": "table",
|
| 1767 |
+
"img_path": "images/f679cedf9848c233f41ee614d15ec1a84414ccb819881a1b1c7370bd6db30bec.jpg",
|
| 1768 |
+
"table_caption": [
|
| 1769 |
+
"Table 3: Results of individual classification layers averaged over all tasks using DeBERTa as a backbone model. Best scores are highlighted in bold, standard deviation (across random seeds) is reported in subscript. The results for BERT models presented in Table 1."
|
| 1770 |
+
],
|
| 1771 |
+
"table_footnote": [],
|
| 1772 |
+
"table_body": "<table><tr><td>Size</td><td>Method</td><td colspan=\"4\">Exit Layer</td></tr><tr><td></td><td></td><td>1</td><td>4</td><td>6</td><td>12</td></tr><tr><td rowspan=\"3\">BASE</td><td>MM</td><td>53.70.5</td><td>66.10.4</td><td>71.10.3</td><td>75.42.7</td></tr><tr><td>EE</td><td>49.51.1</td><td>63.00.2</td><td>70.00.6</td><td>75.30.4</td></tr><tr><td>SWEET</td><td>53.50.4</td><td>64.90.9</td><td>68.51.4</td><td>74.10.4</td></tr><tr><td></td><td></td><td>1</td><td>6</td><td>12</td><td>24</td></tr><tr><td rowspan=\"3\">LARGE</td><td>MM</td><td>51.60.3</td><td>59.90.4</td><td>67.62.6</td><td>77.90.8</td></tr><tr><td>EE</td><td>50.50.8</td><td>59.30.9</td><td>68.81.3</td><td>76.61.6</td></tr><tr><td>SWEET</td><td>53.90.5</td><td>60.60.2</td><td>69.50.4</td><td>75.811.0</td></tr></table>",
|
| 1773 |
+
"bbox": [
|
| 1774 |
+
509,
|
| 1775 |
+
285,
|
| 1776 |
+
884,
|
| 1777 |
+
478
|
| 1778 |
+
],
|
| 1779 |
+
"page_idx": 12
|
| 1780 |
+
},
|
| 1781 |
+
{
|
| 1782 |
+
"type": "text",
|
| 1783 |
+
"text": "Table 4: Results of individual classification layers averaged over all tasks using BERT as a backbone model, fine-tuned using learning-to-exit. Best scores are highlighted in bold, standard deviation (across random seeds) is reported in subscript.",
|
| 1784 |
+
"bbox": [
|
| 1785 |
+
507,
|
| 1786 |
+
488,
|
| 1787 |
+
882,
|
| 1788 |
+
560
|
| 1789 |
+
],
|
| 1790 |
+
"page_idx": 12
|
| 1791 |
+
},
|
| 1792 |
+
{
|
| 1793 |
+
"type": "text",
|
| 1794 |
+
"text": "E Learning-to-exit Individual Layer Comparison",
|
| 1795 |
+
"text_level": 1,
|
| 1796 |
+
"bbox": [
|
| 1797 |
+
114,
|
| 1798 |
+
664,
|
| 1799 |
+
443,
|
| 1800 |
+
697
|
| 1801 |
+
],
|
| 1802 |
+
"page_idx": 12
|
| 1803 |
+
},
|
| 1804 |
+
{
|
| 1805 |
+
"type": "text",
|
| 1806 |
+
"text": "Table 4 Shows individual classifier results for BERT models fine tuned with the learning to exit strategy. As with the confidence-based results, Multi-Model classifiers outperform corresponding Early-Exit classifiers. SWEET early classifiers are better than Early-Exit ones, while later classifiers tend to downgrade in performance.",
|
| 1807 |
+
"bbox": [
|
| 1808 |
+
112,
|
| 1809 |
+
806,
|
| 1810 |
+
489,
|
| 1811 |
+
917
|
| 1812 |
+
],
|
| 1813 |
+
"page_idx": 12
|
| 1814 |
+
},
|
| 1815 |
+
{
|
| 1816 |
+
"type": "page_number",
|
| 1817 |
+
"text": "14848",
|
| 1818 |
+
"bbox": [
|
| 1819 |
+
477,
|
| 1820 |
+
928,
|
| 1821 |
+
524,
|
| 1822 |
+
940
|
| 1823 |
+
],
|
| 1824 |
+
"page_idx": 12
|
| 1825 |
+
},
|
| 1826 |
+
{
|
| 1827 |
+
"type": "image",
|
| 1828 |
+
"img_path": "images/bc16d91f92dc31c537519873d571f956a0c710c5e20a2d2d51fb11e886a19432.jpg",
|
| 1829 |
+
"image_caption": [
|
| 1830 |
+
"Figure 10: Speed-accuracy curves for individual tasks. For $\\text{BERT}_{\\text{LARGE}}$ , SWEET outperforms both baselines across the entire curve. For DeBERTa, SWEET performs better than Early-Exit at high speeds on 9 out of 14 experiments."
|
| 1831 |
+
],
|
| 1832 |
+
"image_footnote": [],
|
| 1833 |
+
"bbox": [
|
| 1834 |
+
127,
|
| 1835 |
+
117,
|
| 1836 |
+
875,
|
| 1837 |
+
843
|
| 1838 |
+
],
|
| 1839 |
+
"page_idx": 13
|
| 1840 |
+
},
|
| 1841 |
+
{
|
| 1842 |
+
"type": "page_number",
|
| 1843 |
+
"text": "14849",
|
| 1844 |
+
"bbox": [
|
| 1845 |
+
477,
|
| 1846 |
+
928,
|
| 1847 |
+
524,
|
| 1848 |
+
940
|
| 1849 |
+
],
|
| 1850 |
+
"page_idx": 13
|
| 1851 |
+
},
|
| 1852 |
+
{
|
| 1853 |
+
"type": "text",
|
| 1854 |
+
"text": "A For every submission:",
|
| 1855 |
+
"bbox": [
|
| 1856 |
+
114,
|
| 1857 |
+
107,
|
| 1858 |
+
322,
|
| 1859 |
+
122
|
| 1860 |
+
],
|
| 1861 |
+
"page_idx": 14
|
| 1862 |
+
},
|
| 1863 |
+
{
|
| 1864 |
+
"type": "list",
|
| 1865 |
+
"sub_type": "text",
|
| 1866 |
+
"list_items": [
|
| 1867 |
+
"A1. Did you describe the limitations of your work? Section 8",
|
| 1868 |
+
"A2. Did you discuss any potential risks of your work? Our work does not present any risks.",
|
| 1869 |
+
"A3. Do the abstract and introduction summarize the paper's main claims? Section 1",
|
| 1870 |
+
"A4. Have you used AI writing assistants when working on this paper? We used ChatGPT for assistance, purely with the language of the paper"
|
| 1871 |
+
],
|
| 1872 |
+
"bbox": [
|
| 1873 |
+
129,
|
| 1874 |
+
126,
|
| 1875 |
+
695,
|
| 1876 |
+
288
|
| 1877 |
+
],
|
| 1878 |
+
"page_idx": 14
|
| 1879 |
+
},
|
| 1880 |
+
{
|
| 1881 |
+
"type": "text",
|
| 1882 |
+
"text": "B Did you use or create scientific artifacts?",
|
| 1883 |
+
"bbox": [
|
| 1884 |
+
114,
|
| 1885 |
+
299,
|
| 1886 |
+
489,
|
| 1887 |
+
316
|
| 1888 |
+
],
|
| 1889 |
+
"page_idx": 14
|
| 1890 |
+
},
|
| 1891 |
+
{
|
| 1892 |
+
"type": "text",
|
| 1893 |
+
"text": "Section 3 + 4",
|
| 1894 |
+
"bbox": [
|
| 1895 |
+
132,
|
| 1896 |
+
321,
|
| 1897 |
+
236,
|
| 1898 |
+
334
|
| 1899 |
+
],
|
| 1900 |
+
"page_idx": 14
|
| 1901 |
+
},
|
| 1902 |
+
{
|
| 1903 |
+
"type": "list",
|
| 1904 |
+
"sub_type": "text",
|
| 1905 |
+
"list_items": [
|
| 1906 |
+
"B1. Did you cite the creators of artifacts you used? Section 3 + 4",
|
| 1907 |
+
"B2. Did you discuss the license or terms for use and / or distribution of any artifacts? We use publicly available data sets which are commonly used during research",
|
| 1908 |
+
"B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)? Such terms were not specified.",
|
| 1909 |
+
"B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it? We use publicly available data sets which are commonly used during research",
|
| 1910 |
+
"B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.? We use publicly available data sets which are commonly used during research",
|
| 1911 |
+
"B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be. Section 3 + 4, Appendix A"
|
| 1912 |
+
],
|
| 1913 |
+
"bbox": [
|
| 1914 |
+
129,
|
| 1915 |
+
346,
|
| 1916 |
+
880,
|
| 1917 |
+
753
|
| 1918 |
+
],
|
| 1919 |
+
"page_idx": 14
|
| 1920 |
+
},
|
| 1921 |
+
{
|
| 1922 |
+
"type": "text",
|
| 1923 |
+
"text": "C Did you run computational experiments?",
|
| 1924 |
+
"bbox": [
|
| 1925 |
+
114,
|
| 1926 |
+
764,
|
| 1927 |
+
492,
|
| 1928 |
+
781
|
| 1929 |
+
],
|
| 1930 |
+
"page_idx": 14
|
| 1931 |
+
},
|
| 1932 |
+
{
|
| 1933 |
+
"type": "text",
|
| 1934 |
+
"text": "Section 3 + 4",
|
| 1935 |
+
"bbox": [
|
| 1936 |
+
132,
|
| 1937 |
+
785,
|
| 1938 |
+
236,
|
| 1939 |
+
800
|
| 1940 |
+
],
|
| 1941 |
+
"page_idx": 14
|
| 1942 |
+
},
|
| 1943 |
+
{
|
| 1944 |
+
"type": "text",
|
| 1945 |
+
"text": "C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used? Section 1 + 3, Appendix A",
|
| 1946 |
+
"bbox": [
|
| 1947 |
+
129,
|
| 1948 |
+
812,
|
| 1949 |
+
880,
|
| 1950 |
+
860
|
| 1951 |
+
],
|
| 1952 |
+
"page_idx": 14
|
| 1953 |
+
},
|
| 1954 |
+
{
|
| 1955 |
+
"type": "header",
|
| 1956 |
+
"text": "ACL 2023 Responsible NLP Checklist",
|
| 1957 |
+
"bbox": [
|
| 1958 |
+
132,
|
| 1959 |
+
84,
|
| 1960 |
+
433,
|
| 1961 |
+
99
|
| 1962 |
+
],
|
| 1963 |
+
"page_idx": 14
|
| 1964 |
+
},
|
| 1965 |
+
{
|
| 1966 |
+
"type": "page_footnote",
|
| 1967 |
+
"text": "The Responsible NLP Checklist used at ACL 2023 is adopted from NAACL 2022, with the addition of a question on AI writing assistance.",
|
| 1968 |
+
"bbox": [
|
| 1969 |
+
112,
|
| 1970 |
+
868,
|
| 1971 |
+
877,
|
| 1972 |
+
892
|
| 1973 |
+
],
|
| 1974 |
+
"page_idx": 14
|
| 1975 |
+
},
|
| 1976 |
+
{
|
| 1977 |
+
"type": "page_number",
|
| 1978 |
+
"text": "14850",
|
| 1979 |
+
"bbox": [
|
| 1980 |
+
477,
|
| 1981 |
+
928,
|
| 1982 |
+
524,
|
| 1983 |
+
940
|
| 1984 |
+
],
|
| 1985 |
+
"page_idx": 14
|
| 1986 |
+
},
|
| 1987 |
+
{
|
| 1988 |
+
"type": "list",
|
| 1989 |
+
"sub_type": "text",
|
| 1990 |
+
"list_items": [
|
| 1991 |
+
"C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values? Section 3 + 4, Appendix A",
|
| 1992 |
+
"C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run? Section 3 + 4",
|
| 1993 |
+
"C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)? Appendix A"
|
| 1994 |
+
],
|
| 1995 |
+
"bbox": [
|
| 1996 |
+
129,
|
| 1997 |
+
83,
|
| 1998 |
+
878,
|
| 1999 |
+
282
|
| 2000 |
+
],
|
| 2001 |
+
"page_idx": 15
|
| 2002 |
+
},
|
| 2003 |
+
{
|
| 2004 |
+
"type": "text",
|
| 2005 |
+
"text": "D Did you use human annotators (e.g., crowdworkers) or research with human participants?",
|
| 2006 |
+
"text_level": 1,
|
| 2007 |
+
"bbox": [
|
| 2008 |
+
112,
|
| 2009 |
+
293,
|
| 2010 |
+
877,
|
| 2011 |
+
310
|
| 2012 |
+
],
|
| 2013 |
+
"page_idx": 15
|
| 2014 |
+
},
|
| 2015 |
+
{
|
| 2016 |
+
"type": "text",
|
| 2017 |
+
"text": "Left blank.",
|
| 2018 |
+
"bbox": [
|
| 2019 |
+
132,
|
| 2020 |
+
313,
|
| 2021 |
+
213,
|
| 2022 |
+
329
|
| 2023 |
+
],
|
| 2024 |
+
"page_idx": 15
|
| 2025 |
+
},
|
| 2026 |
+
{
|
| 2027 |
+
"type": "list",
|
| 2028 |
+
"sub_type": "text",
|
| 2029 |
+
"list_items": [
|
| 2030 |
+
"D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.? No response.",
|
| 2031 |
+
"D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)? No response.",
|
| 2032 |
+
"D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used? No response.",
|
| 2033 |
+
"D4. Was the data collection protocol approved (or determined exempt) by an ethics review board? No response.",
|
| 2034 |
+
"D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data? No response."
|
| 2035 |
+
],
|
| 2036 |
+
"bbox": [
|
| 2037 |
+
127,
|
| 2038 |
+
340,
|
| 2039 |
+
878,
|
| 2040 |
+
640
|
| 2041 |
+
],
|
| 2042 |
+
"page_idx": 15
|
| 2043 |
+
},
|
| 2044 |
+
{
|
| 2045 |
+
"type": "page_number",
|
| 2046 |
+
"text": "14851",
|
| 2047 |
+
"bbox": [
|
| 2048 |
+
477,
|
| 2049 |
+
927,
|
| 2050 |
+
522,
|
| 2051 |
+
940
|
| 2052 |
+
],
|
| 2053 |
+
"page_idx": 15
|
| 2054 |
+
}
|
| 2055 |
+
]
|
2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/299364f1-0f55-4167-82d9-b2dbc57d8e7b_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/299364f1-0f55-4167-82d9-b2dbc57d8e7b_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:812b3c7a5e283405dae39046db496868e889a8804ba647ac100171c4104258a3
|
| 3 |
+
size 1161476
|
2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/full.md
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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^{\text{©}}$ School of Computer Science & Engineering, Hebrew University of Jerusalem
|
| 6 |
+
|
| 7 |
+
$\spadesuit$ Intel Labs, Israel
|
| 8 |
+
|
| 9 |
+
{daniel.rotem, michael.hassid, roy.schwartz1}@mail.huji.ac.il jonathan.mamou@intel.com
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Adaptive inference is a simple method for reducing inference costs. The method works by maintaining multiple classifiers of different capacities, and allocating resources to each test instance according to its difficulty. In this work, we compare the two main approaches for adaptive inference, Early-Exit and Multi-Model, when training data is limited. First, we observe that for models with the same architecture and size, individual Multi-Model classifiers outperform their Early-Exit counterparts by an average of $2.3\%$ . We show that this gap is caused by Early-Exit classifiers sharing model parameters during training, resulting in conflicting gradient updates of model weights. We find that despite this gap, Early-Exit still provides a better speed-accuracy trade-off due to the overhead of the Multi-Model approach. To address these issues, we propose SWEET, an Early-Exit fine-tuning method that assigns each classifier its own set of unique model weights, not updated by other classifiers. We compare SWEET's speed-accuracy curve to standard Early-Exit and Multi-Model baselines and find that it outperforms both methods at fast speeds while maintaining comparable scores to Early-Exit at slow speeds. Moreover, SWEET individual classifiers outperform Early-Exit ones by $1.1\%$ on average. SWEET enjoys the benefits of both methods, paving the way for further reduction of inference costs in NLP. We publicly release our code.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Pre-trained Transformer-based language models such as BERT (Devlin et al., 2019), DeBERTa (He et al., 2020), and GPT3 (Brown et al., 2020) have become the go-to tool in NLP. Although powerful, the growing size of these models has been a major drawback (Thompson et al., 2020; Schwartz et al.,
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Early Exit
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 1: Illustration of the adaptive inference approaches compared in this work. In both methods, multiple classifiers of increasing sizes are run serially, until a confident prediction is made. In Early-Exit (left), a single model with multiple classifiers is used, such that early computations are reused by later classifiers. In Multi-Model (right), a sequence of independent models is used, allowing each classifier to decouple its parameters from other classifiers.
|
| 24 |
+
|
| 25 |
+
2020a), making them costly to run. Various attempts to reduce inference cost have been proposed, including distillation (Hinton et al., 2015), pruning (LeCun et al., 1989) and quantization (Courbariaux et al., 2014). This work focuses on adaptive inference (Graves, 2016; Liu et al., 2020), a recent approach in which the variability of sample difficulty is leveraged toward a smarter allocation of computational resources. An appealing property of adaptive inference is that it enables dynamic control of the speed-accuracy trade-off.
|
| 26 |
+
|
| 27 |
+
There are two main approaches to adaptive inference, both using a set of classifiers of different sizes. In Early-Exit (Schwartz et al., 2020b; Xin et al., 2020), multiple classification heads are added to the same model at different layers, allowing for early exit during inference (Fig. 1, left). Another approach (henceforth Multi-Model) is to apply multiple independent classifiers of varying capacities serially until a prediction is made (Varshney and
|
| 28 |
+
|
| 29 |
+
Baral, 2022a; Li et al., 2020, Fig. 1, right). These approaches have complementary benefits; Multi-Model allows for easier batching at inference time, and potentially larger savings due to using very efficient models (Mamou et al., 2023). Early-Exit on the other hand is more memory efficient, faster to train, and enables re-use of early computation if an early exit was not taken.
|
| 30 |
+
|
| 31 |
+
In this work, we compare the speed-accuracy behavior of the two approaches when training data is limited. We first observe that Early-Exit model weights are updated by multiple conflicting gradient signals throughout the training process (Fig. 2, left). We show that this leads to a decrease in performance of individual Early-Exit classifiers compared to Multi-Model ones (2.3% gap on average). We find that this gap is higher for the earliest classifiers (5.2% on average) than for later ones (1.4%).
|
| 32 |
+
|
| 33 |
+
We also find that while each Multi-Model classifier outperforms its Early-Exit counterpart, it does not translate to an overall better speed-accuracy trade-off. Instead, we find that each method dominates performance in a different region: Multi-Model outperforms Early-Exit at fast inference speeds, while Early-Exit is better at slow speeds. Multi-Model downgraded scores at slow speeds are likely caused by the overhead of running models sequentially to predict hard samples.
|
| 34 |
+
|
| 35 |
+
Inspired by our findings, we present SWEET, $^{4}$ an Early-Exit method for bridging the performance gap between standard Early-Exit and Multi-Model. In SWEET, each Early-Exit classifier only updates the parameters of layers preceding it up to the previous classifier. This way, each model parameter is updated by a single classifier, thus avoiding conflicting gradients during the training of Early-Exit models (Fig. 2, right).
|
| 36 |
+
|
| 37 |
+
We experiment with two established pretrained models: BERT (Devlin et al., 2019) and DeBERTa (He et al., 2020). We fine-tune Early-Exit models using SWEET on seven text classification tasks from GLUE (Wang et al., 2018) and compare them to Early-Exit and Multi-Model baselines. The speed-accuracy curve of SWEET dominates both baselines at fast speeds for 21 out of 28 experiments conducted. As for individual clas
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
Figure 2: Left: standard Early-Exit fine-tuning, where lower layers get gradient updates from multiple classifiers. Right: our SWEET method, in which each layer parameters are updated only by the next classifier.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+
sifiers, SWEET performs $1.1\%$ better on average than Early-Exit, mostly improving earlier classifiers, where conflicting gradients are more dominant.
|
| 45 |
+
|
| 46 |
+
We summarise our main contributions: (1) We propose a way of measuring conflicting gradients, and show that they exist in Early-Exit training process; (2) We empirically compare Early-Exit and Multi-Model classifiers and show that conflicting gradients lead to individual Early-Exit classifiers being less accurate; (3) We propose a novel finetuning method, SWEET, which alleviates the conflicting gradients problem in Early-Exit, and leads to improved results at fast inference speeds; (4) We publicly release our code.
|
| 47 |
+
|
| 48 |
+
# 2 Background: Adaptive Inference
|
| 49 |
+
|
| 50 |
+
Adaptive inference aims to reduce inference costs of deep neural nets by matching model and sample complexities. Sample difficulty usually varies in real-world data, meaning not all instances require processing by the most powerful classifier. Therefore, we can allocate fewer resources to easier instances, and reduce the average inference cost, potentially at the cost of performance degradation.
|
| 51 |
+
|
| 52 |
+
Several exit strategies have been developed to control the speed-accuracy trade-off of a model by deciding when to make an early prediction and halt computation (Xin et al., 2020; Zhou et al., 2020; Xin et al., 2021; Schuster et al., 2021; Zhang et al., 2022). In this work, we mainly experiment with confidence-based exiting (Schwartz et al., 2020b), in which computation halts if the softmax probability assigned to a given label exceeds a predetermined threshold. Dynamic control of model's inference speed is gained through setting different threshold values. There are two main adaptive inference approaches, Early-Exit and Multi-Model, which we describe below.
|
| 53 |
+
|
| 54 |
+
Early-Exit Early-Exit models are deep neural nets with multiple output points, following intermediate layers. In this work, we focus on Early-Exit implementation as presented in Schwartz et al. (2020b). During fine-tuning, instances are passed through the model, and a loss is calculated based on predictions made by all classifiers. This leads to some model weights being updated by gradient signals from multiple classifiers (Fig. 2, left).
|
| 55 |
+
|
| 56 |
+
At inference time, an instance is passed through the model and its label is predicted sequentially until a decision to exit early is taken, and computation is halted. An appealing property of Early-Exit is that it allows for efficient re-use of previous computation from lower layers in higher classifiers. However, this means that some model parameters are updated by multiple classifiers, which may lead to sub-optimal performance of individual classifiers due to conflicting gradients. In this work, we study the effect of this property on Early-Exit models.
|
| 57 |
+
|
| 58 |
+
Multi-Model In Multi-Model adaptive inference, a set of independent models of increasing capacity are fine-tuned separately for the same task. At inference time, the models are used sequentially from smallest to largest until a prediction meets some predetermined criterion or until the largest model has been used. This method is more robust than Early-Exit, being easier to extend and enabling the use of different architectures. Additionally, Multi-Model potentially allows for further computational savings by using models smaller than the smallest Early-Exit model (a single layer of the backbone
|
| 59 |
+
|
| 60 |
+
model, Mamou et al., 2023). However, it may add overhead to the prediction time of hard instances, as those pass through multiple models with early computations being discarded, bringing the total runtime to exceed that of using the largest model.
|
| 61 |
+
|
| 62 |
+
# 3 Early-Exit vs. Multi-Model
|
| 63 |
+
|
| 64 |
+
# 3.1 Conflicting Gradients in Early-Exit
|
| 65 |
+
|
| 66 |
+
Unlike Multi-Model, when fine-tuning Early-Exit models, model weights are updated by multiple gradient signals, originating in different classification layers (Fig. 2, left). We hypothesize that this leads to sub-optimal performance for all classifiers involved, as gradient signals might conflict with one another and derail the classifiers from their goal. To test this hypothesis, we compare the gradient similarity of different Early-Exit classifiers.
|
| 67 |
+
|
| 68 |
+
We fine-tune a $\mathrm{BERT}_{BASE}$ model with four exit points (following layers [1, 4, 6, 12]) for 400 training steps on the MNLI dataset (Williams et al., 2018), using a batch size of 16 with a learning rate of 2e-5. We pass a new training batch through the model, and inspect the gradients with respect to the last feed-forward matrix in each layer preceding a classifier. To measure the degree of alignment between gradient updates of different classifiers, we average the cosine similarity between the rows of gradient matrices for every pair of classifiers. High similarity indicates that the classifiers are updating the weights in a similar direction, while low similarity (in absolute values) suggests that the updates are close to orthogonal and potentially detrimental to both classifiers.
|
| 69 |
+
|
| 70 |
+
This section studies the strengths and weaknesses of both adaptive inference approaches. We start by describing a limitation of Early-Exit approaches: lower model layers are updated by conflicting gradient signals during training. We show that this leads to inferior performance of individual Early-Exit classifiers compared to corresponding Multi-Model classifiers. We then compare the effects of these performance drops on the speed-accuracy curve of Early-Exit models compared Multi-Model ones.
|
| 71 |
+
|
| 72 |
+
Fig. 3 shows that the gradients of future classifiers are generally orthogonal to those of the current classifier for each examined Transformer block. This indicates that model weights indeed suffer
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
Figure 3: Average cosine similarity between classifiers' gradient updates of model layers. C-i stands for Classifier $i$ . Layer 1 (preceding C-1) is updated by 3 classifiers, while layers 4 (preceding C-2), and 6 (C-3) are updated by 3 & 2 classifiers respectively. For each layer, the gradient update of the following classifier is roughly orthogonal to those of future classifiers, whereas gradient updates of higher classifiers tend to better align with one another.
|
| 76 |
+
|
| 77 |
+
from conflicting gradient updates during the training process, which might affect the performance of each individual classifier. Interestingly, when multiple future classifiers are present, they tend to align with each other, as indicated by the relatively high similarity between layer 1's gradient updates originating in classifiers 2, 3, and 4, and between layer 4's gradient updates from classifiers 3 and 4.
|
| 78 |
+
|
| 79 |
+
# 3.2 Effects of Conflicting Gradients
|
| 80 |
+
|
| 81 |
+
To evaluate the effect of conflicting gradients on individual Early-Exit classifiers, we compare the different classifiers of an Early-Exit model and a Multi-Model model. For a clean comparison, we use the same backbone model, exit points, hyperparameters, $^{9}$ and random seeds. As an example, for a given 12-layer Transformer model, an Early-Exit model with exit points following layers [4, 12] would be compared to a Multi-Model one consisting of two classifiers: the first four layers fit with a classification head, and a full (12 layer) model. The models differ only in the fact that for the Early-Exit model, model weights are updated by multiple future classifiers during the fine-tuning process, while each Multi-Model classifier is an independent model. To isolate the effect of conflicting gradients
|
| 82 |
+
|
| 83 |
+
<table><tr><td>Size</td><td>Method</td><td colspan="4">Exit Layer</td></tr><tr><td></td><td></td><td>1</td><td>4</td><td>6</td><td>12</td></tr><tr><td rowspan="3">BASE</td><td>MM</td><td>60.90.6</td><td>71.40.1</td><td>74.71.2</td><td>79.90.9</td></tr><tr><td>EE</td><td>57.30.3</td><td>70.30.3</td><td>74.40.7</td><td>78.70.5</td></tr><tr><td>SWEET</td><td>60.90.5</td><td>71.60.5</td><td>74.00.4</td><td>77.40.6</td></tr><tr><td></td><td></td><td>1</td><td>6</td><td>12</td><td>24</td></tr><tr><td rowspan="3">LARGE</td><td>MM</td><td>60.10.1</td><td>66.90.4</td><td>74.40.9</td><td>81.60.3</td></tr><tr><td>EE</td><td>56.60.3</td><td>65.60.9</td><td>74.00.6</td><td>79.91.9</td></tr><tr><td>SWEET</td><td>59.80.3</td><td>66.50.7</td><td>74.50.3</td><td>81.31.0</td></tr></table>
|
| 84 |
+
|
| 85 |
+
Table 1: Results of individual classification layers averaged across all tasks using BERT as a backbone model. Multi-Model (MM) classifiers outperform their Early-Exit (EE) counterparts, with the gap being the largest for early classifiers. SWEET closes much of this gap, especially for early classifiers. Standard deviation (across random seeds) is reported in subscript. Results for DeBERTa are presented in Table 3.
|
| 86 |
+
|
| 87 |
+
on the classifiers, we evaluate each one separately on the entire validation set. The performance gap between each individual Multi-Model classifier and its corresponding Early-Exit classifier, allows us to directly measure the latter's downgrade in performance caused by conflicting gradients.
|
| 88 |
+
|
| 89 |
+
We experiment with BERT and DeBERTa {BASE ( $\sim$ 110M parameters), and LARGE ( $\sim$ 350M parameters)}. For BASE versions, we install classifiers following layers [1, 4, 6, 12]. For LARGE versions, we use layers [1, 6, 12, 24]. We fine-tune an Early-Exit model and a corresponding Multi-Model model on seven NLP tasks from the GLUE benchmark (Wang et al., 2019): SST-2 (Socher et al., 2013), MRPC (Dolan and Brockett, 2005), RTE (Dagan et al., 2006; Haim et al., 2006; Giampiccolo et al., 2007; Bentivogli et al., 2009), CoLA (Warstadt et al., 2019), MNLI (Williams et al., 2018), QNLI (Rajpurkar et al., 2016), and QQP (Iyer et al., 2016). We report accuracy for all tasks except for CoLA (Matthews corr.). We fine-tune the models for two epochs on all tasks. As our goal is to test Adaptive inference in a low resource setting, we limit the training set size for each task to $6K$ . We report the mean validation scores and standard deviation across three random seeds. Other hyper-parameters are listed in Appendix A.
|
| 90 |
+
|
| 91 |
+
Table 1 shows results for BERT classifiers, $^{11}$ averaged across all tasks. Our results show that multiple classifiers updating the same weights during fine-tuning diminishes the performance of Early Exit classifiers by $2.3\%$ on average (1.7% for BERT, 3.0% for DeBERTa), with earliest classifiers affected the most (3.5% for BERT, 7.0% for DeBERTa). The increased effect on early classifiers supports our hypothesis regarding conflicting gradients: parameters used by early classifiers receive updates from the largest number of classifiers, thus increasing the chance for conflicting gradients and leading to a larger decrease in performance.
|
| 92 |
+
|
| 93 |
+
# 3.3 Speed-Accuracy Trad-eoff
|
| 94 |
+
|
| 95 |
+
So far we observed that Multi-Model classifiers outperform Early-Exit ones. On the other hand, we also note that there is considerable overhead when using a Multi-Model model. For Multi-Model, an instance that makes an exit on classifier $C_i$ , runs all classifiers up to (including) $C_i$ , each being an independent model, while Early-Exit early layer computations are reused by later classifiers. We turn to evaluate the trade-off between these two factors and compare the overall speed-accuracy curve of each adaptive inference method.
|
| 96 |
+
|
| 97 |
+
We evaluate model scores across different inference speeds using 11 threshold values, evenly spaced in the range $\left(\frac{1}{\# \text{ of labels}}, 1\right)$ . We note that $t = \frac{1}{\# \text{ of labels}}$ corresponds to the earliest classifier predicting all labels, while for $t = 1$ , the final classifier is used on the entire validation set.
|
| 98 |
+
|
| 99 |
+
We compute the speedup ratio for each instance as the number of layers it passes through divided by the number of layers of the full backbone model (12 for BASE models, 24 for LARGE models), and average across all instances. As an example, for classifiers following layers [1, 4, 6, 12], an instance that exits on the third classifier (i.e., after layer 6), will have a speedup ratio of $\frac{6}{12}$ for Early-Exit and $\frac{11}{12}$ for Multi-Model $(\frac{6}{12} + \frac{4}{12} + \frac{1}{12})$ .
|
| 100 |
+
|
| 101 |
+
We evaluate models on the seven tasks listed in Section 3.2, and report the average scores across all tasks. $\mathrm{BERT}_{BASE}$ results are presented in Fig. 4, while the results for all other models can be found in Fig. 5. The speed-accuracy curves reveal two important observations. First, as expected, MultiModel achieves better scores at fast speeds (when most instances are predicted by early classifiers).
|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
Figure 4: Speed-accuracy trade-off comparison of Multi-Model and Early-Exit. Multi-Model performs better only at fast inference times (up to $\frac{1}{4}$ of original run time), while Early-Exit dominates the remainder of the range. The graph shows the average task scores (y-axis) as a function of the speedup ratio (x-axis).
|
| 105 |
+
|
| 106 |
+
Second, although each Multi-Model classifier outperforms its corresponding Early-Exit one, the Multi-Model overhead leads to this approach being outperformed by Early-Exit at slow speeds (when more instances are predicted by later classifiers).
|
| 107 |
+
|
| 108 |
+
# 4 SWEET: Separating Weights for Early-Exit Transformers
|
| 109 |
+
|
| 110 |
+
Based on our findings, we aim to design an Early-Exit method that takes advantage of the benefits of both Multi-Model and Early-Exit approaches: making the lower Early-Exit classifiers as accurate as the Multi-Model ones, without the additional overhead of the Multi-Model approach.
|
| 111 |
+
|
| 112 |
+
# 4.1 SWEET
|
| 113 |
+
|
| 114 |
+
We present SWEET—a method for fine-tuning Early-Exit models that avoids the harmful impact of conflicting gradients. SWEET grants each classifier exclusive control over part of the model's parameters, such that each model parameter is only updated by a single classifier. This is done by truncating the loss signal from classifier $C_i$ when reaching the Transformer layer corresponding to classifier $C_{i - 1}$ (Fig. 2, right).
|
| 115 |
+
|
| 116 |
+
In SWEET, each classification head receives complete control over a portion of the Model's parameters and can alter them in a way that optimizes its own goals. Truncating future loss signals make the very first classifier an independent model, as
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 5: Speed-accuracy tradeoff averaged across tasks. SWEET matches the performance of Multi-Model at fast speeds, while maintaining results comparable to Early-Exit at slow speeds.
|
| 120 |
+
|
| 121 |
+
opposed to a model that shares its parameters with future classifiers. The following classifiers update only a subset of the model's parameters but are affected by early model parameters, allowing them to still make use of earlier computations when processing an instance. We clarify that all model weights are updated simultaneously, as opposed to training the classifiers (and their corresponding layers) sequentially, which would have led to significantly longer fine-tuning, matching that of a Multi-Model model.
|
| 122 |
+
|
| 123 |
+
# 4.2 A Better Speeds-Accuracy Curve
|
| 124 |
+
|
| 125 |
+
We turn to evaluate the speed-accuracy curve of SWEET. We use the same experimental setup as in Section 3.2; we fine-tune two pre-trained LMs (BERT and DeBERTa) in two sizes (BASE, LARGE) over the same seven text classification tasks. We use the same exit points and evaluate over the entire validation set using confidence-based exiting. We compare SWEET to two baselines: a standard Early-Exit model and a Multi-Model model. We compute the speedup ratio using the same method as described in Section 3.3. For further implementation details, see Appendix A.
|
| 126 |
+
|
| 127 |
+
Fig. 5 presents the speed-accuracy curves of all models, averaged across all tasks. The figure shows that at the fastest speeds, SWEET outperforms Early-Exit for all models and is comparable to, or outperforms, Multi-Model. However, for 3 out of the 4 models (all but $\mathrm{BERT}_{\text{LARGE}}$ ), Early-Exit surpasses the performance of SWEET at slow speeds. SWEET's reduced scores at slow inference speeds are likely due to the lower capacity of the later classifiers, stemming from their restricted influence on early model parameters during fine-tuning.
|
| 128 |
+
|
| 129 |
+
Fig. 6 presents results on individual tasks for
|
| 130 |
+
|
| 131 |
+
$\mathrm{BERT}_{BASE}$ . On five out of seven tasks, SWEET outperforms both baselines at fast speeds (up to a speedup ratio of $1/2$ ), suggesting that SWEET improves the performance of lower Early-Exit classifiers by avoiding conflicting gradients during training. For two tasks (MRPC and CoLA), SWEET suffers a considerable decrease in performance at slow inference speeds. For the other five tasks SWEET maintains comparable results to Early-Exit.
|
| 132 |
+
|
| 133 |
+
It is also interesting to examine how SWEET affects individual Early-Exit classifiers. Table 1 shows the results of BERT's individual classifiers trained with SWEET compared to Early-Exit and Multi-Model. $^{14}$ SWEET classifiers close much of the gap between Early-Exit and Multi-Model: they outperform those of Early-Exit by $1.1\%$ on average $(1.2\%)$ for BERT, $1.0\%$ for DeBERTa), with the margin being larger for the earliest classifier $(3.4\%)$ for BERT, $6.2\%$ for DeBERTa). The final two classifiers trained with SWEET achieve lower scores than those of Early-Exit $(0.9\%)$ on average), probably due to the restricted influence those classifiers have on early model parameters. Our results hint that SWEET is able to effectively bridge the gap between Early-Exit and Multi-Model early classifiers, leading to a speed-accuracy curve favoring fast inference speeds.
|
| 134 |
+
|
| 135 |
+
We note that during our experiments with Early-Exit and Multi-Model models, some models did not converge. In order to ensure the validity of our results, we repeated these experiments with different random seeds, which led to convergence. We emphasize that this did not occur during the training of models using SWEET.
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 6: Speed-accuracy curve for individual tasks, using a $\mathrm{BERT}_{\mathrm{BASE}}$ model. SWET outperforms both baselines at fast speeds (lower values of $x$ ) on five out of seven tasks. See Fig. 10 for $\mathrm{BERT}_{\mathrm{LARGE}}$ and DeBERTa results.
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 7: Speed-Accuracy curves with the learning-to-exit strategy. As with confidence-based methods, SWEET outperforms both baselines at fast speeds, while maintaining comparable results at slow speeds.
|
| 142 |
+
|
| 143 |
+
# 5 Further Analysis
|
| 144 |
+
|
| 145 |
+
We turn to evaluate the robustness of our approach. We start with evaluating SWEET using a different exit strategy. We then test how our results generalize when using varying amounts of training data.
|
| 146 |
+
|
| 147 |
+
A different exit strategy: Learning to Exit Our experiments so far have used a confidence-based exit strategy (Section 2). Here we consider a different strategy—learning to exit (Xin et al., 2021), in which a separate module is trained for each classifier, learning whether the classifier's prediction should be trusted, and an exit should be made. This method also allows for a natural extension to regression problems, unlike confidence-based methods that are limited to classification tasks.
|
| 148 |
+
|
| 149 |
+
We use BERT {BASE, LARGE} as a backbone
|
| 150 |
+
|
| 151 |
+
model and fine-tune in the same procedure described in Section 3.3. Our results (Fig. 7) reveal that the methods behave similarly to the confidence-based setup; SWEET outperforms both baselines at the early stage of the curve (fast speeds), while performing on par with Early-Exit at slow speeds. We also measure the performance of individual exit layers, as in Section 3.2, for models fine-tuned using learning-to-exit. Our results (Table 4 in Appendix E) reveal a similar behavior to that of models fine-tuned using confidence based early exiting: Multi-Model classifiers surpass the performance of Early-Exit classifiers. Moreover, SWEET's early classifiers outperform those of Early-Exit, while later ones show a slight decrease in performance.
|
| 152 |
+
|
| 153 |
+
Varying data sizes Our experiments so far have focused on low-resource setups (a training set of several thousand examples). We now evaluate how SWEET performs as we vary the amount of training data. We fine-tune a BERT<sub>BASE</sub> model on different portions of the MNLI dataset using the same experimental setup as in Section 3.2. Our results, shown in Fig. 8, indicate that SWEET is mostly beneficial when training data is limited to a few thousand examples, but still somewhat useful even with as many as 60K training instances. Nonetheless, the effects of conflicting gradients on the earliest Early-Exit classifier tend to disappear when training on the full dataset (400K instances), making it as good as the smallest Multi-Model classifier. Moreover, in that setup, the use of SWEET seems to substan
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
BERTBASE
|
| 157 |
+
Figure 8: Speed-accuracy curves of $\mathrm{BERT}_{BASE}$ models trained on varying sizes of the MNLI dataset. The title of each plot describes the amount of training data used in the fine-tuning phase. The benefits of using SWEET vanish with large amounts of training data.
|
| 158 |
+
|
| 159 |
+
tially decrease the performance of later classifiers, suggesting that the harm caused by limiting the influence of classifiers on model parameters may grow with the amount of training data.
|
| 160 |
+
|
| 161 |
+
# 6 Related Work
|
| 162 |
+
|
| 163 |
+
Several approaches have been proposed for reducing the inference time of large models (Treviso et al., 2022). These include knowledge distillation (Ba and Caruana, 2014; Hinton et al., 2015), in which the knowledge of a large teacher model is transferred to a smaller student model; pruning (LeCun et al., 1989; Frankle and Carbin, 2018), which removes unnecessary model parameters; and weight quantization (Jacob et al., 2018; Zafrir et al., 2019), which reduces the floating point precision of model weights. See (Treviso et al., 2023, Section 6), for a recent survey. Adaptive inference methods studied in this work are an orthogonal approach, which can be used in combination with these methods (Schwartz et al., 2020b).
|
| 164 |
+
|
| 165 |
+
The use of Adaptive inference in deep neural networks has been extensively studied, with successful implementations in various types of networks including recurrent neural networks (Graves, 2016) and convolutional neural networks (Teerapittayanon et al., 2016; Huang and Chen, 2018). In the context of this work, it has also been applied to existing backbone pre-trained language models: Xin et al. (2020) implemented early exit strategies on top of classification tasks. Zhou et al. (2020) Introduced a patience-based exiting, requiring sequential classifiers to agree on a label for a prediction to be made. Xin et al. (2021) extended the use of Early-Exit in Transformers to regression tasks, as well as addressed the issue of reduced performance of the final classifier through the use of an alter
|
| 166 |
+
|
| 167 |
+
nating training algorithm. Schuster et al. (2021) proposed a confidence-based early exit model with guarantees on the agreement between early exit predictions and the final classifier.
|
| 168 |
+
|
| 169 |
+
Liu et al. (2022) presented a strong baseline for efficient NLP by adding multiple classifiers to a BERT model during pre-training. Recently, Schuster et al. (2022) adjusted the Early-Exit method to language modeling for text generation, making dynamic computation at the single token level.
|
| 170 |
+
|
| 171 |
+
Multi-Model approaches to adaptive inference have been proposed for vision tasks (Enomoro and Eda, 2021) as well as for NLP (Li et al., 2020; Varshney and Baral, 2022b). Mamou et al. (2023) introduced a two-tier design with a highly efficient model serving as the first model and a powerful model serving as the second, enabling the possibility of achieving extremely fast inference speed.
|
| 172 |
+
|
| 173 |
+
Finally, the concept of conflicting gradients has been mainly studied in the context of multi-task learning, where a single model is faced with solving different tasks (Yu et al., 2020; Liu et al., 2021a). To the best of our knowledge, no previous work examined this in the context of Early-Exit.
|
| 174 |
+
|
| 175 |
+
# 7 Conclusion
|
| 176 |
+
|
| 177 |
+
In this work, we analyzed the performance of two common adaptive inference methods—Early-Exit and Multi-Model. We found evidence that model weights are updated by conflicting gradients in the training process of Early-Exit models, causing classifiers to perform at a sub-optimal level. Despite this, we showed that regarding the entire speed-accuracy curve, Early-Exit is still favorable to Multi-Model due to the overhead of using independent model runs in a Multi-Model setup.
|
| 178 |
+
|
| 179 |
+
To address these findings, we proposed SWEET,
|
| 180 |
+
|
| 181 |
+
a novel Early-Exit method, which avoids conflicting gradients by allocating each Early-Exit classifier a subset of model weights which are updated solely by it. We found that for Early-Exit models trained with SWEET, early classifiers perform better than those of standard Early-Exit, but later classifiers of SWEET are not as good. These measures lead to SWEET outperforming both Early-Exit and Multi-Model in fast speeds, with slightly worse results than Early-Exit at slow speeds.
|
| 182 |
+
|
| 183 |
+
Overall, our results demonstrate that Early-Exit models can benefit from fine-tuning algorithms that are tailored to their architecture, and that SWEET is a promising approach for improving the speed-accuracy trade-off of Early-Exit models in the context of adaptive inference.
|
| 184 |
+
|
| 185 |
+
# 8 Limitations
|
| 186 |
+
|
| 187 |
+
This work focuses on the effects of adaptive inference in a low-resource setting, specifically when training data is limited. Our experiments (Section 5) suggest that the negative impact of conflicting gradients may be less prominent when larger amount of training data is available.
|
| 188 |
+
|
| 189 |
+
Our experiments were conducted using relatively small pre-trained language models ( $\leq 350M$ parameters) due to computational constraints, and we defer the replication of our findings with larger, more powerful models to future work. Nonetheless, our results have important implications for the growing trend of increasingly large language models. We hope this work inspires further research on methods to reduce the computational cost of NLP.
|
| 190 |
+
|
| 191 |
+
This work concentrates on evaluating the speed-accuracy trade-off of Multi-Model and Early-Exit at inference time. We recognize that there are additional factors, such as memory usage, batch processing, and training duration, that could be considered when comparing these methods.
|
| 192 |
+
|
| 193 |
+
Finally, we experimented with seven text classification tasks in English. We recognize that results may vary for other tasks and languages.
|
| 194 |
+
|
| 195 |
+
# Acknowledgements
|
| 196 |
+
|
| 197 |
+
We acknowledge Yarden Tal for her early contributions to this work, and Gabriel Stanovsky for his advice and meaningful feedback. This work was supported in part by the Israel Science Foundation (grant no. 2045/21), NSF-BSF grant 2020793, and by a grant from Intel Labs.
|
| 198 |
+
|
| 199 |
+
# References
|
| 200 |
+
|
| 201 |
+
Jimmy Ba and Rich Caruana. 2014. Do deep nets really need to be deep? In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems 27, pages 2654-2662. Curran Associates, Inc.
|
| 202 |
+
Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. 2009. The fifth pascal recognizing textual entailment challenge. In Proc. of TAC.
|
| 203 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901.
|
| 204 |
+
Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. 2014. Training deep neural networks with low precision multiplications. arXiv preprint arXiv:1412.7024.
|
| 205 |
+
Ido Dagan, Oren Glickman, and Bernardo Magnini. 2006. The pascal recognising textual entailment challenge. In *Machine learning challenges workshop*, pages 177–190. Springer.
|
| 206 |
+
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.
|
| 207 |
+
William B. Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proc. of IWP.
|
| 208 |
+
Shohei Enomoro and Takeharu Eda. 2021. Learning to cascade: Confidence calibration for improving the accuracy and computational cost of cascade inference systems. In Proceedings of the AAAI Conference on Artificial Intelligence.
|
| 209 |
+
Jonathan Frankle and Michael Carbin. 2018. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations.
|
| 210 |
+
Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and William B Dolan. 2007. The third pascal recognizing textual entailment challenge. In Proceedings of the ACL-PASCAL workshop on textual entailment and paraphrasing, pages 1-9.
|
| 211 |
+
Alex Graves. 2016. Adaptive computation time for recurrent neural networks. arXiv:1603.08983.
|
| 212 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. 2017. On calibration of modern neural networks. In ICML.
|
| 213 |
+
|
| 214 |
+
R Bar Haim, Ido Dagan, Bill Dolan, Lisa Ferro, Danilo Giampiccolo, Bernardo Magnini, and Idan Szpektor. 2006. The second pascal recognising textual entailment challenge. In Proceedings of the Second PASCAL Challenges Workshop on Recognising Textual Entailment, volume 7.
|
| 215 |
+
Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2020. Deberta: Decoding-enhanced bert with disentangled attention. In International Conference on Learning Representations.
|
| 216 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. Cite arxiv:1503.02531 Comment: NIPS 2014 Deep Learning Workshop.
|
| 217 |
+
Gao Huang and Danlu Chen. 2018. Multi-scale dense networks for resource efficient image classification. ICLR 2018.
|
| 218 |
+
Shankar Iyer, Nikhil Dandekar, and Kornél Csernai. 2016. First quora dataset release: Question pairs. https://data.quora.com/First-Quora-Dataset-Release-Question-Pairs.
|
| 219 |
+
Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew G. Howard, Hartwig Adam, and Dmitry Kalenichenko. 2018. Quantization and training of neural networks for efficient integer-arithmetic-only inference. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2704-2713.
|
| 220 |
+
Yann LeCun, John Denker, and Sara Solla. 1989. Optimal brain damage. Advances in neural information processing systems, 2.
|
| 221 |
+
Lei Li, Yankai Lin, Deli Chen, Shuhuai Ren, Peng Li, Jie Zhou, and Xu Sun. 2020. Cascadebert: Accelerating inference of pre-trained language models via calibrated complete models cascade. arXiv preprint arXiv:2012.14682.
|
| 222 |
+
Bo Liu, Xingchao Liu, Xiaojie Jin, Peter Stone, and Qiang Liu. 2021a. Conflict-averse gradient descent for multi-task learning. Advances in Neural Information Processing Systems, 34:18878-18890.
|
| 223 |
+
Weijie Liu, Peng Zhou, Zhiruo Wang, Zhe Zhao, Haotang Deng, and Qi Ju. 2020. FastBERT: a self-distilling BERT with adaptive inference time. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 6035-6044, Online. Association for Computational Linguistics.
|
| 224 |
+
Xiangyang Liu, Tianxiang Sun, Junliang He, Jiawen Wu, Lingling Wu, Xinyu Zhang, Hao Jiang, Zhao Cao, Xuanjing Huang, and Xipeng Qiu. 2022. Towards efficient NLP: A standard evaluation and a strong baseline. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3288-3303, Seattle, United States. Association for Computational Linguistics.
|
| 225 |
+
|
| 226 |
+
Xiangyang Liu, Tianxiang Sun, Junliang He, Lingling Wu, Xinyu Zhang, Hao Jiang, Zhao Cao, Xuanjing Huang, and Xipeng Qiu. 2021b. Towards efficient nlp: A standard evaluation and a strong baseline. arXiv preprint arXiv:2110.07038.
|
| 227 |
+
Jonathan Mamou, Oren Pereg, Moshe Wasserblat, and Roy Schwartz. 2023. TangoBERT: Reducing inference cost by using cascaded architecture. In In Proc. EMC $^2$ .
|
| 228 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. Squad: 100,000+ questions for machine comprehension of text. In EMNLP.
|
| 229 |
+
Tal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani, Dara Bahri, Vinh Q Tran, Yi Tay, and Donald Metzler. 2022. Confident adaptive language modeling. arXiv preprint arXiv:2207.07061.
|
| 230 |
+
Tal Schuster, Adam Fisch, Tommi Jaakkola, and Regina Barzilay. 2021. Consistent accelerated inference via confident adaptive transformers. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 4962-4979.
|
| 231 |
+
Roy Schwartz, Jesse Dodge, Noah A Smith, and Oren Etzioni. 2020a. Green AI. Communications of the ACM, 63(12):54-63.
|
| 232 |
+
Roy Schwartz, Gabriel Stanovsky, Swabha Swayamdipta, Jesse Dodge, and Noah A. Smith. 2020b. The right tool for the job: Matching model and instance complexities. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 6640-6651, Online. Association for Computational Linguistics.
|
| 233 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proc. of EMNLP.
|
| 234 |
+
Surat Teerapittayanon, Bradley McDanel, and HsiangTsung Kung. 2016. Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd International Conference on Pattern Recognition (ICPR), pages 2464-2469. IEEE.
|
| 235 |
+
Neil C Thompson, Kristjan Greenewald, Keeheon Lee, and Gabriel F Manso. 2020. The computational limits of deep learning. arXiv preprint arXiv:2007.05558.
|
| 236 |
+
Marcos Treviso, Tianchu Ji, Ji-Ung Lee, Betty van Aken, Qingqing Cao, Manuel R. Ciosici, Michael Hassid, Kenneth Heafield, Sara Hooker, Pedro H. Martins, Andre F. T. Martins, Peter Milder, Colin Raffel, Jessica Forde, Edwin Simpson, Noam Slonim, Jesse Dodge, Emma Stubell, Niranjan Balasubramanian, Leon Derczynski, Iryna Gurevych, and Roy Schwartz. 2023. Efficient methods for natural language processing: A survey. TACL.
|
| 237 |
+
|
| 238 |
+
Marcos Treviso, Tianchu Ji, Ji-Ung Lee, Betty van Aken, Qingqing Cao, Manuel R Ciosici, Michael Hassid, Kenneth Heafield, Sara Hooker, Pedro H Martins, et al. 2022. Efficient methods for natural language processing: A survey. arXiv preprint arXiv:2209.00099.
|
| 239 |
+
Neeraj Varshney and Chitta Baral. 2022a. Model cascading: Towards jointly improving efficiency and accuracy of nlp systems. arXiv preprint arXiv:2210.05528.
|
| 240 |
+
Neeraj Varshney and Chitta Baral. 2022b. Model cascading: Towards jointly improving efficiency and accuracy of nlp systems. In In Proceedings of EMNLP.
|
| 241 |
+
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.
|
| 242 |
+
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 Proc. of ICLR.
|
| 243 |
+
Alex Warstadt, Amanpreet Singh, and Samuel R. Bowman. 2019. Neural network acceptability judgments. TACL.
|
| 244 |
+
Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A broad-coverage challenge corpus for sentence understanding through inference. In Proc. of NAACL.
|
| 245 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, 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, pages 38-45, Online. Association for Computational Linguistics.
|
| 246 |
+
Ji Xin, Raphael Tang, Jaejun Lee, Yaoliang Yu, and Jimmy Lin. 2020. DeeBERT: Dynamic early exiting for accelerating BERT inference. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2246-2251, Online. Association for Computational Linguistics.
|
| 247 |
+
Ji Xin, Raphael Tang, Yaoliang Yu, and Jimmy Lin. 2021. BERxiT: Early exiting for BERT with better fine-tuning and extension to regression. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics:
|
| 248 |
+
|
| 249 |
+
Main Volume, pages 91-104, Online. Association for Computational Linguistics.
|
| 250 |
+
Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman, and Chelsea Finn. 2020. Gradient surgery for multi-task learning. Advances in Neural Information Processing Systems, 33:5824-5836.
|
| 251 |
+
Ofir Zafrir, Guy Boudoukh, Peter Izsak, and Moshe Wasserblat. 2019. Q8bert: Quantized 8bit bert. 2019 Fifth Workshop on Energy Efficient Machine Learning and Cognitive Computing - NeurIPS Edition (EMC2-NIPS), pages 36-39.
|
| 252 |
+
Zhen Zhang, Wei Zhu, Jinfan Zhang, Peng Wang, Rize Jin, and Tae-Sun Chung. 2022. Pcee-bert: Accelerating bert inference via patient and confident early exiting. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 327-338.
|
| 253 |
+
Wangchunshu Zhou, Canwen Xu, Tao Ge, Julian McAuley, Ke Xu, and Furu Wei. 2020. Bert loses patience: fast and robust inference with early exit. In Proceedings of the 34th International Conference on Neural Information Processing Systems, pages 18330-18341.
|
| 254 |
+
|
| 255 |
+
# A Implementation Details
|
| 256 |
+
|
| 257 |
+
Further implementation details For fine-tuning BERT models, we use a batch size of 16. For fine-tuning DeBERTa, due to GPU memory constraints, we use a batch size of 16 for BASE and 8 for LARGE. We fine tune the models for two epochs with a maximal sequence length of 256. We use $\beta = 0.9$ , 0.999 for the AdamW optimizer with linear LR-decay. We optimize the initial learning rate for each method, model size & task by performing a search over five values {1e-5, 2e-5, 3e-5, 4e-5, 5e-5} and choose the value leading to the largest area under the speed-accuracy curve. Chosen LRs are presented in table Table 2
|
| 258 |
+
|
| 259 |
+
All experiments were run on a single NVIDIA A5000 GPU. The overall computational budget was $\sim 1000$ GPU hours. We implement all methods using the HuggingFace Transformer library (Wolf et al., 2020).
|
| 260 |
+
|
| 261 |
+
Speedup evaluation The speed-up ratio of the model when using exit threshold $t$ is calculated using the formula:
|
| 262 |
+
|
| 263 |
+
$$
|
| 264 |
+
\operatorname {s p e e d u p} _ {t} = \frac {\sum_ {i = 1} ^ {M} S _ {i} ^ {t} \cdot L _ {i}}{L _ {M} \cdot \sum_ {i = 1} ^ {M} S _ {i} ^ {t}} \tag {1}
|
| 265 |
+
$$
|
| 266 |
+
|
| 267 |
+
where $M$ is the number of classifiers used for the model, $L_{i}$ denotes the number of the layer preceding the $i$ -th classification head and $S_{i}^{t}$ denotes the number of samples classified by the $i$ -th classifier when using threshold $t$ .
|
| 268 |
+
|
| 269 |
+
The same exit threshold can lead to different speedup ratios amongst models trained with different random seeds. We use linear interpolation to approximate the accuracy score at set speedup ratios. We evaluate at $(1/12, 1/4, 1/2, 3/4, 1)^{15}$ and report the average across three random seeds as well as a $95\%$ confidence interval. $^{16}$ We use temperature scaling (Guo et al., 2017) to make classifiers confidence, and therefore early-exiting decisions, more reliable. Note that this scaling is monotonic and therefore does not influence predictions.
|
| 270 |
+
|
| 271 |
+
# B Conflicting Gradients
|
| 272 |
+
|
| 273 |
+
We replicate the experiment done in Section 3.1 with another batch of size 16 to examine if our findings generalize. results presented in Fig. 9 show
|
| 274 |
+
|
| 275 |
+
a similar trend to Fig. 3: Gradient updates of current classifiers are roughly orthogonal to those of future classifiers, whereas future classifier updates are more aligned.
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
Figure 9: Average cosine similarity between classifiers' gradient updates of model layers. C-i stands for Classifier $i$ . Layer 1 (preceding C-1) is updated by 3 classifiers, while layers 4 (preceding C-2), and 6 (C-3) are updated by 3 & 2 classifiers respectively. For each layer, the gradient update of the following classifier is roughly orthogonal to those of future classifiers, whereas gradient updates of higher classifiers tend to better align with one another.
|
| 279 |
+
|
| 280 |
+
# C DeBERTa Individual Layer Comparison
|
| 281 |
+
|
| 282 |
+
Table 3 Shows individual classifier results for DeBERTa models. As with the BERT results, Multi-Model classifiers outperform corresponding Early-Exit classifiers. SWEET early classifiers are better than Early-Exit ones, while later classifiers tend to downgrade in performance.
|
| 283 |
+
|
| 284 |
+
# D Individual Task Results
|
| 285 |
+
|
| 286 |
+
Fig. 10 shows results on individual tasks for BERTLARGE and DeBERTa (BASE & LARGE). For BERTLARGE, SWEET outperforms both baselines throughout the entire speed-accuracy curve over all tasks examined. For DeBERTa models, results are similar to those of BERTBASE, where SWEET performs better at high speeds (small speedup ratio) and is dominated at low speeds (where later classifiers do most of the heavy lifting).
|
| 287 |
+
|
| 288 |
+
<table><tr><td>Model</td><td>Size</td><td colspan="7">Task</td></tr><tr><td></td><td></td><td>SST-2</td><td>MRPC</td><td>CoLA</td><td>MNLI</td><td>QQP</td><td>QNLI</td><td>RTE</td></tr><tr><td rowspan="2">BERT</td><td>BASE</td><td>5\5\5</td><td>5\3\4</td><td>4\4\5</td><td>5\5\5</td><td>5\5\5</td><td>5\4\5</td><td>5\5\4</td></tr><tr><td>LARGE</td><td>4\2\2</td><td>4\5\4</td><td>4\3\4</td><td>4\3\4</td><td>5\3\4</td><td>4\4\3</td><td>3\3\3</td></tr><tr><td rowspan="2">DeBERTa</td><td>BASE</td><td>3\3\3</td><td>4\5\5</td><td>4\5\4</td><td>2\4\3</td><td>4\5\5</td><td>3\4\3</td><td>2\1\4</td></tr><tr><td>LARGE</td><td>2\4\3</td><td>3\2\1</td><td>3\3\2</td><td>2\2\2</td><td>2\2\3</td><td>3\2\1</td><td>1\2\2</td></tr></table>
|
| 289 |
+
|
| 290 |
+
Table 2: Chosen initial learning rate to optimize area under the speed-accuracy curve of each model, size, task. All numbers should be multiplied by 1e-5. $x \backslash y \backslash z$ represent the initial learning rate of Early-Exit\Multi-Model\SWEET respectively.
|
| 291 |
+
|
| 292 |
+
<table><tr><td>Size</td><td>Method</td><td colspan="4">Exit Layer</td></tr><tr><td></td><td></td><td>1</td><td>4</td><td>6</td><td>12</td></tr><tr><td rowspan="3">BASE</td><td>MM</td><td>60.10.4</td><td>74.60.6</td><td>78.31.1</td><td>82.20.7</td></tr><tr><td>EE</td><td>52.30.4</td><td>70.90.6</td><td>77.90.8</td><td>81.70.1</td></tr><tr><td>SWEET</td><td>59.11.5</td><td>72.40.2</td><td>75.11.1</td><td>79.50.5</td></tr><tr><td></td><td></td><td>1</td><td>6</td><td>12</td><td>24</td></tr><tr><td rowspan="3">LARGE</td><td>MM</td><td>61.90.1</td><td>76.20.4</td><td>80.20.9</td><td>86.80.2</td></tr><tr><td>EE</td><td>55.80.9</td><td>74.71.1</td><td>79.20.8</td><td>83.61.9</td></tr><tr><td>SWEET</td><td>61.30.7</td><td>76.00.5</td><td>77.80.4</td><td>82.70.4</td></tr></table>
|
| 293 |
+
|
| 294 |
+
Table 3: Results of individual classification layers averaged over all tasks using DeBERTa as a backbone model. Best scores are highlighted in bold, standard deviation (across random seeds) is reported in subscript. The results for BERT models presented in Table 1.
|
| 295 |
+
|
| 296 |
+
<table><tr><td>Size</td><td>Method</td><td colspan="4">Exit Layer</td></tr><tr><td></td><td></td><td>1</td><td>4</td><td>6</td><td>12</td></tr><tr><td rowspan="3">BASE</td><td>MM</td><td>53.70.5</td><td>66.10.4</td><td>71.10.3</td><td>75.42.7</td></tr><tr><td>EE</td><td>49.51.1</td><td>63.00.2</td><td>70.00.6</td><td>75.30.4</td></tr><tr><td>SWEET</td><td>53.50.4</td><td>64.90.9</td><td>68.51.4</td><td>74.10.4</td></tr><tr><td></td><td></td><td>1</td><td>6</td><td>12</td><td>24</td></tr><tr><td rowspan="3">LARGE</td><td>MM</td><td>51.60.3</td><td>59.90.4</td><td>67.62.6</td><td>77.90.8</td></tr><tr><td>EE</td><td>50.50.8</td><td>59.30.9</td><td>68.81.3</td><td>76.61.6</td></tr><tr><td>SWEET</td><td>53.90.5</td><td>60.60.2</td><td>69.50.4</td><td>75.811.0</td></tr></table>
|
| 297 |
+
|
| 298 |
+
Table 4: Results of individual classification layers averaged over all tasks using BERT as a backbone model, fine-tuned using learning-to-exit. Best scores are highlighted in bold, standard deviation (across random seeds) is reported in subscript.
|
| 299 |
+
|
| 300 |
+
# E Learning-to-exit Individual Layer Comparison
|
| 301 |
+
|
| 302 |
+
Table 4 Shows individual classifier results for BERT models fine tuned with the learning to exit strategy. As with the confidence-based results, Multi-Model classifiers outperform corresponding Early-Exit classifiers. SWEET early classifiers are better than Early-Exit ones, while later classifiers tend to downgrade in performance.
|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
Figure 10: Speed-accuracy curves for individual tasks. For $\text{BERT}_{\text{LARGE}}$ , SWEET outperforms both baselines across the entire curve. For DeBERTa, SWEET performs better than Early-Exit at high speeds on 9 out of 14 experiments.
|
| 306 |
+
|
| 307 |
+
A For every submission:
|
| 308 |
+
|
| 309 |
+
A1. Did you describe the limitations of your work? Section 8
|
| 310 |
+
A2. Did you discuss any potential risks of your work? Our work does not present any risks.
|
| 311 |
+
A3. Do the abstract and introduction summarize the paper's main claims? Section 1
|
| 312 |
+
A4. Have you used AI writing assistants when working on this paper? We used ChatGPT for assistance, purely with the language of the paper
|
| 313 |
+
|
| 314 |
+
B Did you use or create scientific artifacts?
|
| 315 |
+
|
| 316 |
+
Section 3 + 4
|
| 317 |
+
|
| 318 |
+
B1. Did you cite the creators of artifacts you used? Section 3 + 4
|
| 319 |
+
B2. Did you discuss the license or terms for use and / or distribution of any artifacts? We use publicly available data sets which are commonly used during research
|
| 320 |
+
B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)? Such terms were not specified.
|
| 321 |
+
B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it? We use publicly available data sets which are commonly used during research
|
| 322 |
+
B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.? We use publicly available data sets which are commonly used during research
|
| 323 |
+
B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be. Section 3 + 4, Appendix A
|
| 324 |
+
|
| 325 |
+
C Did you run computational experiments?
|
| 326 |
+
|
| 327 |
+
Section 3 + 4
|
| 328 |
+
|
| 329 |
+
C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used? Section 1 + 3, Appendix A
|
| 330 |
+
|
| 331 |
+
C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values? Section 3 + 4, Appendix A
|
| 332 |
+
C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run? Section 3 + 4
|
| 333 |
+
C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)? Appendix A
|
| 334 |
+
|
| 335 |
+
# D Did you use human annotators (e.g., crowdworkers) or research with human participants?
|
| 336 |
+
|
| 337 |
+
Left blank.
|
| 338 |
+
|
| 339 |
+
D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.? No response.
|
| 340 |
+
D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)? No response.
|
| 341 |
+
D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used? No response.
|
| 342 |
+
D4. Was the data collection protocol approved (or determined exempt) by an ethics review board? No response.
|
| 343 |
+
D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data? No response.
|
2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd69bebfd6a39d357ddec648024f91845e74ca16df75a350b72f71189efbe8e1
|
| 3 |
+
size 622597
|
2023/Finding the SWEET Spot_ Analysis and Improvement of Adaptive Inference in Low Resource Settings/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/02cdb8da-2abe-4d81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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Fine-tuning Happens in Tiny Subspaces: Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
117,
|
| 8 |
+
79,
|
| 9 |
+
878,
|
| 10 |
+
118
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Zhong Zhang $^{1,2}$ , Bang Liu $^{3,*,\\dagger}$ , Junming Shao $^{1,2,\\dagger}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
295,
|
| 19 |
+
124,
|
| 20 |
+
715,
|
| 21 |
+
142
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "<sup>1</sup>University of Electronic Science and Technology of China, Chengdu, China",
|
| 28 |
+
"bbox": [
|
| 29 |
+
191,
|
| 30 |
+
142,
|
| 31 |
+
811,
|
| 32 |
+
158
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "$^{2}$ Shenzhen Institute for Advanced Study, UESTC, Shenzhen, China",
|
| 39 |
+
"bbox": [
|
| 40 |
+
228,
|
| 41 |
+
158,
|
| 42 |
+
773,
|
| 43 |
+
174
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "<sup>3</sup>Mila & Université de Montréal, Montréal, Canada",
|
| 50 |
+
"bbox": [
|
| 51 |
+
294,
|
| 52 |
+
175,
|
| 53 |
+
709,
|
| 54 |
+
191
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "zhongzhang@std.uestc.edu.cn,",
|
| 61 |
+
"bbox": [
|
| 62 |
+
332,
|
| 63 |
+
193,
|
| 64 |
+
667,
|
| 65 |
+
208
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "bang.liu@umontreal.ca,",
|
| 72 |
+
"bbox": [
|
| 73 |
+
369,
|
| 74 |
+
210,
|
| 75 |
+
631,
|
| 76 |
+
224
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "junmshao@uestc.edu.cn",
|
| 83 |
+
"bbox": [
|
| 84 |
+
374,
|
| 85 |
+
227,
|
| 86 |
+
628,
|
| 87 |
+
241
|
| 88 |
+
],
|
| 89 |
+
"page_idx": 0
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "text",
|
| 93 |
+
"text": "Abstract",
|
| 94 |
+
"text_level": 1,
|
| 95 |
+
"bbox": [
|
| 96 |
+
260,
|
| 97 |
+
252,
|
| 98 |
+
339,
|
| 99 |
+
266
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "Pre-trained language models (PLMs) are known to be overly parameterized and have significant redundancy, indicating a small degree of freedom of the PLMs. Motivated by the observation, in this paper, we study the problem of re-parameterizing and fine-tuning PLMs from a new perspective: Discovery of intrinsic task-specific subspace. Specifically, by exploiting the dynamics of the fine-tuning process for a given task, the parameter optimization trajectory is learned to uncover its intrinsic task-specific subspace. A key finding is that PLMs can be effectively fine-tuned in the subspace with a small number of free parameters. Beyond, we observe some outlier dimensions emerging during fine-tuning in the subspace. Disabling these dimensions degrades the model performance significantly. This suggests that these dimensions are crucial to induce task-specific knowledge to downstream tasks.",
|
| 106 |
+
"bbox": [
|
| 107 |
+
141,
|
| 108 |
+
278,
|
| 109 |
+
460,
|
| 110 |
+
575
|
| 111 |
+
],
|
| 112 |
+
"page_idx": 0
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"type": "text",
|
| 116 |
+
"text": "1 Introduction",
|
| 117 |
+
"text_level": 1,
|
| 118 |
+
"bbox": [
|
| 119 |
+
114,
|
| 120 |
+
587,
|
| 121 |
+
258,
|
| 122 |
+
601
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Pre-trained Language Models (PLMs) have become the de facto methods for various natural language processing (NLP) tasks (Devlin et al., 2019; Radford et al., 2019; Liu et al., 2019). The typical paradigm is to pre-train a big language model on large-scale corpora and then fine-tune the model on small task-specific datasets to adapt to the downstream tasks. Despite the great success of this paradigm, two questions still come to our mind: (1) Why can a PLM with hundreds of millions of parameters be successfully fine-tuned on different downstream tasks using only hundreds or thousands of labeled samples? (2) Do we really need a full fine-tuning of all parameters of a PLM to reach state-of-the-art performance on downstream tasks? In this paper, we try to provide a new viewpoint on the two questions, and",
|
| 129 |
+
"bbox": [
|
| 130 |
+
112,
|
| 131 |
+
611,
|
| 132 |
+
489,
|
| 133 |
+
885
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "claim that: Fine-tuning happens only in some tiny task-specific subspaces, which can be effectively learned with a small number of free parameters.",
|
| 140 |
+
"bbox": [
|
| 141 |
+
507,
|
| 142 |
+
253,
|
| 143 |
+
884,
|
| 144 |
+
315
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "Recent studies have shown that PLMs are highly over-parameterized and robust to pruning (Frankle and Carbin, 2019; Chen et al., 2020; Prasanna et al., 2020; Gordon et al., 2020; Liang et al., 2021, 2022), and can be fine-tuned in parameter-efficient ways (Gong et al., 2022; Zaken et al., 2022; Mahabadi et al., 2021; Li and Liang, 2021). This emerging empirical evidence tends to point to one fact that there exist some intrinsic structures in PLMs that are responsible for inducing task-specific knowledge to downstream tasks. Notably, the recent work (Aghajanyan et al., 2021) provides a promising conclusion that PLMs can be re-parameterized and fine-tuned in random low-dimensional subspaces using random projection, and the dimensionality of the random subspace is orders of magnitude smaller than the dimensionality of the full parameter space. Their findings implicitly suggest the existence of such intrinsic structure in the PLMs, which is, however, understudied. To bridge this gap, we explicitly demonstrate that there exist task-specific low-dimensional subspaces in which PLMs can be effectively fine-tuned.",
|
| 151 |
+
"bbox": [
|
| 152 |
+
507,
|
| 153 |
+
319,
|
| 154 |
+
884,
|
| 155 |
+
705
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "Inspired by the low dimensional landscape hypothesis (Li et al., 2022a) that a training trajectory of a neural network lies in a low-dimensional subspace, in this work, we thus resort to the fine-tuning trajectory to study the intrinsic task-specific subspaces of PLMs. We show that it is possible to uncover the intrinsic task-specific subspaces with a fine-tuning trajectory by finding its principal directions. The uncovered intrinsic task-specific subspaces usually have very low dimensionalities, but are quite effective in inducing task-specific knowledge. For example, by re-parameterizing the encoder and optimizing only 32 free parameters per",
|
| 162 |
+
"bbox": [
|
| 163 |
+
507,
|
| 164 |
+
709,
|
| 165 |
+
884,
|
| 166 |
+
917
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 0
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "page_footnote",
|
| 172 |
+
"text": "* Canada CIFAR AI Chair.",
|
| 173 |
+
"bbox": [
|
| 174 |
+
139,
|
| 175 |
+
891,
|
| 176 |
+
310,
|
| 177 |
+
904
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "page_footnote",
|
| 183 |
+
"text": "† Corresponding authors.",
|
| 184 |
+
"bbox": [
|
| 185 |
+
139,
|
| 186 |
+
904,
|
| 187 |
+
300,
|
| 188 |
+
917
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 0
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "page_number",
|
| 194 |
+
"text": "1701",
|
| 195 |
+
"bbox": [
|
| 196 |
+
480,
|
| 197 |
+
927,
|
| 198 |
+
519,
|
| 199 |
+
940
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 0
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "footer",
|
| 205 |
+
"text": "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics",
|
| 206 |
+
"bbox": [
|
| 207 |
+
226,
|
| 208 |
+
945,
|
| 209 |
+
771,
|
| 210 |
+
958
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 0
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "footer",
|
| 216 |
+
"text": "Volume 1: Long Papers, pages 1701-1713",
|
| 217 |
+
"bbox": [
|
| 218 |
+
368,
|
| 219 |
+
958,
|
| 220 |
+
628,
|
| 221 |
+
971
|
| 222 |
+
],
|
| 223 |
+
"page_idx": 0
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "footer",
|
| 227 |
+
"text": "July 9-14, 2023 ©2023 Association for Computational Linguistics",
|
| 228 |
+
"bbox": [
|
| 229 |
+
295,
|
| 230 |
+
972,
|
| 231 |
+
700,
|
| 232 |
+
985
|
| 233 |
+
],
|
| 234 |
+
"page_idx": 0
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"text": "layer in the intrinsic task-specific subspace, the model allows achieving nearly the same performance as fine-tuning in the full parameter space. Moreover, we further show that the uncovered intrinsic task-specific subspaces have a certain transferability.",
|
| 239 |
+
"bbox": [
|
| 240 |
+
112,
|
| 241 |
+
84,
|
| 242 |
+
490,
|
| 243 |
+
179
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 1
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "Beyond this, we find that the model contains some outlier dimensions with abnormal spikes when fine-tuning in the intrinsic task-specific subspaces instead of a random subspace. Disabling these outlier dimensions degrades the model performance significantly. We believe that this phenomenon is related to the previously discovered outlier dimensions of PLMs (Luo et al., 2021; Kovaleva et al., 2021; Puccetti et al., 2022). However, there are essential differences between them, which we will discuss in the latter section.",
|
| 250 |
+
"bbox": [
|
| 251 |
+
115,
|
| 252 |
+
181,
|
| 253 |
+
489,
|
| 254 |
+
356
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 1
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "By exploring the intrinsic task-specific subspaces of PLMs, the main contributions of this paper are summarized as follows.",
|
| 261 |
+
"bbox": [
|
| 262 |
+
112,
|
| 263 |
+
357,
|
| 264 |
+
489,
|
| 265 |
+
405
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 1
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "list",
|
| 271 |
+
"sub_type": "text",
|
| 272 |
+
"list_items": [
|
| 273 |
+
"1. We interpret the ease of adapting PLMs to downstream tasks as fine-tuning happens in tiny intrinsic task-specific subspaces. Within this interpretation, we propose a method to uncover the subspaces by finding the principal directions of the fine-tuning trajectory.",
|
| 274 |
+
"2. We conduct extensive experiments on the GLUE benchmark using BERT and RoBERTa models to support our claims. We show that the models can be effectively fine-tuned with a very small number of parameters in the uncovered intrinsic task-specific subspaces.",
|
| 275 |
+
"3. We identify some outlier dimensions when fine-tuning in the intrinsic task-specific subspaces, and some empirical analysis is further given."
|
| 276 |
+
],
|
| 277 |
+
"bbox": [
|
| 278 |
+
127,
|
| 279 |
+
414,
|
| 280 |
+
489,
|
| 281 |
+
706
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 1
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "2 Related Work",
|
| 288 |
+
"text_level": 1,
|
| 289 |
+
"bbox": [
|
| 290 |
+
114,
|
| 291 |
+
717,
|
| 292 |
+
270,
|
| 293 |
+
732
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 1
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "Intrinsic Dimensionality. Li et al. (2018) first defined the intrinsic dimension of an objective function in the context of deep learning. They showed that various neural networks can be effectively re-parameterized and trained in random low-dimensional subspaces. Their findings shed light on understanding the high-dimensional landscape of complex neural networks. Following this, Aghajanyan et al. (2021) further measured the intrinsic dimensions of PLMs fine-tuning on downstream tasks. They showed that PLMs have very",
|
| 300 |
+
"bbox": [
|
| 301 |
+
112,
|
| 302 |
+
741,
|
| 303 |
+
490,
|
| 304 |
+
917
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 1
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "low intrinsic dimensions ranging from hundreds to thousands. Qin et al. (2021) exploited the idea of intrinsic subspace and proposed a prompt tuning method for efficient training. In addition, the concept of intrinsic dimension is also related to the low-rank approximation of PLMs (Hu et al., 2022; Mahabadi et al., 2021; Chen et al., 2021), but their motivations are entirely different. The former aims to open the black box of models and explore the internal mechanisms of why they are effective, while the latter focuses on developing new methods to train the models efficiently.",
|
| 311 |
+
"bbox": [
|
| 312 |
+
507,
|
| 313 |
+
84,
|
| 314 |
+
885,
|
| 315 |
+
277
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 1
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "The random projection has a long history in machine learning research community, and is a key tool to analyze the intrinsic dimension (Li et al., 2018; Aghajanyan et al., 2021). In the context of optimization, Gressmann et al. (2020) proposed a random bases descent algorithm to train neural networks in low-dimensional subspaces. However, the random projection inevitably introduces task-irrelevant information, and is not optimal for subspace learning. We believe that a more compact and task-specific subspace can be found in the model, which is the main motivation of this work. Gur-Ari et al. (2018) empirically found that gradient descent of neural networks happens in a tiny subspace, Li et al. (2022a) further developed a subspace learning algorithm DLDR that dynamically extracts the subspace from the optimization trajectory. Li et al. (2022b) leveraged the DLDR algorithm for adversarial training. However, to the best of our knowledge, there is no research on the discovery of non-random intrinsic task-specific subspace of PLMs.",
|
| 322 |
+
"bbox": [
|
| 323 |
+
507,
|
| 324 |
+
284,
|
| 325 |
+
885,
|
| 326 |
+
653
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 1
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "Outlier Dimensions in Pre-trained Language Models. Multiple studies have identified outlier dimensions in PLMs. Some works were motivated by calibrating the anisotropy behavior of hidden representation of PLMs (Timkey and van Schijndel, 2021; Ding et al., 2022; Luo et al., 2021; Su et al., 2021; Zhang et al., 2020). Another line of work identified certain outlier dimensions in PLMs that are very sensitive to the finetuning of downstream tasks (Kovaleva et al., 2021; Puccetti et al., 2022). Disabling these outlier dimensions degrades the model performance significantly. Luo et al. (2021) showed that the outlier dimensions are artefacts derived from positional embeddings and layer normalization. Puccetti et al. (2022) identified a correlation between outlier di",
|
| 333 |
+
"bbox": [
|
| 334 |
+
507,
|
| 335 |
+
661,
|
| 336 |
+
885,
|
| 337 |
+
917
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 1
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "page_number",
|
| 343 |
+
"text": "1702",
|
| 344 |
+
"bbox": [
|
| 345 |
+
480,
|
| 346 |
+
927,
|
| 347 |
+
521,
|
| 348 |
+
940
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 1
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "mensions and token frequency. It is worth noting that our findings differ largely from previous works in three ways: 1) The outlier dimensions in their context actually refer to output neurons. In our context, an outlier dimension refers to a specific model parameter. In other words, they consider abnormal outputs, while we consider abnormal weights. 2) The ways of identifying outlier dimensions are different. They identify outlier dimensions by examining abnormal outputs, while we find outlier dimensions by examining abnormal updates to weights. 3) The effects of disabling outlier dimensions are different. They show that disabling just one outlier neuron can result in a significant drop in performance. In contrast, disabling the top outlier weight has almost no effect on the model performance. However, the model performance will drop significantly if we disable more outlier weights. The reason for the emergence of these outlier dimensions remains unclear, and we aim to conduct further in-depth analysis in future work.",
|
| 355 |
+
"bbox": [
|
| 356 |
+
112,
|
| 357 |
+
84,
|
| 358 |
+
492,
|
| 359 |
+
437
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 2
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "3 Intrinsic Task-specific Subspaces Discovery in PLMs",
|
| 366 |
+
"text_level": 1,
|
| 367 |
+
"bbox": [
|
| 368 |
+
112,
|
| 369 |
+
450,
|
| 370 |
+
433,
|
| 371 |
+
483
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 2
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "3.1 Preliminary: Intrinsic Dimensionality",
|
| 378 |
+
"text_level": 1,
|
| 379 |
+
"bbox": [
|
| 380 |
+
112,
|
| 381 |
+
493,
|
| 382 |
+
457,
|
| 383 |
+
508
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 2
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "The intrinsic dimension of an objective landscape is first defined by Li et al. (2018), which is the number of independent optimization variables with regard to minimizing the objective function. However, finding the exact intrinsic dimension is computationally intractable for complex objective functions like deep neural networks. Therefore, a random subspace training method is usually employed to estimate the intrinsic dimension (Li et al., 2018; Aghajanyan et al., 2021).",
|
| 390 |
+
"bbox": [
|
| 391 |
+
112,
|
| 392 |
+
514,
|
| 393 |
+
489,
|
| 394 |
+
674
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 2
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "Formally, let $\\pmb{\\theta}^{D} \\in \\mathbb{R}^{D}$ be a parameter vector that parameterizes a model $f(\\pmb{x};\\pmb{\\theta})$ . Take the BERT-base model as an example, $\\pmb{\\theta}^{D}$ represents all BERT's parameters that are flattened into a 110M-dimensional vector. $\\pmb{\\theta}_{0}^{D} \\in \\mathbb{R}^{D}$ denotes the initial parameterization, $\\pmb{P} \\in \\mathbb{R}^{D \\times d}$ denotes a random projection matrix whose columns form an orthonormal basis for a randomly oriented $d$ -dimensional subspace of $\\mathbb{R}^{D}$ , $\\pmb{\\theta}^{d} \\in \\mathbb{R}^{d}$ denotes a parameter vector in a lower $d$ -dimensional space. The model is fine-tuned in the lower $d$ -dimensional subspace via the following reparameterization method:",
|
| 401 |
+
"bbox": [
|
| 402 |
+
112,
|
| 403 |
+
674,
|
| 404 |
+
489,
|
| 405 |
+
883
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 2
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "equation",
|
| 411 |
+
"text": "\n$$\n\\boldsymbol {\\theta} ^ {D} = \\boldsymbol {\\theta} _ {0} ^ {D} + \\boldsymbol {P} \\boldsymbol {\\theta} ^ {d}. \\tag {1}\n$$\n",
|
| 412 |
+
"text_format": "latex",
|
| 413 |
+
"bbox": [
|
| 414 |
+
228,
|
| 415 |
+
895,
|
| 416 |
+
487,
|
| 417 |
+
916
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 2
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "image",
|
| 423 |
+
"img_path": "images/71499a923b15013325fe1faa71e06c1d05bb8ccd45c6c86117c98b4a4bbe5449.jpg",
|
| 424 |
+
"image_caption": [
|
| 425 |
+
"Figure 1: An illustrative example of optimizing a model in the 3-dimensional space, while the optimization trajectory only lies in a 2-dimensional subspace. We call the subspace the intrinsic subspace for the model."
|
| 426 |
+
],
|
| 427 |
+
"image_footnote": [],
|
| 428 |
+
"bbox": [
|
| 429 |
+
576,
|
| 430 |
+
82,
|
| 431 |
+
821,
|
| 432 |
+
252
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 2
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "Note that $\\theta_0^D$ and $P$ are frozen during the training process, and only $\\theta^d$ is trained by the gradient descent. In practice, the re-parameterization can be done in a layer-wise manner to save computational resources (Aghajanyan et al., 2021), and we also follow the layer-wise setting for our analysis.",
|
| 439 |
+
"bbox": [
|
| 440 |
+
507,
|
| 441 |
+
365,
|
| 442 |
+
884,
|
| 443 |
+
462
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 2
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "The intrinsic dimension of a PLM is estimated by grid searching the minimal $d$ that makes the model reach $90\\%$ of the full fine-tuning performance. Take the BERT-base model as an example, the intrinsic dimension for fine-tuning on the MRPC dataset is only 1861 (Aghajanyan et al., 2021), which is surprisingly small considering the original model has up to 110 million parameters.",
|
| 450 |
+
"bbox": [
|
| 451 |
+
507,
|
| 452 |
+
464,
|
| 453 |
+
882,
|
| 454 |
+
592
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 2
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "3.2 Finding Intrinsic Task-specific Subspaces",
|
| 461 |
+
"text_level": 1,
|
| 462 |
+
"bbox": [
|
| 463 |
+
507,
|
| 464 |
+
606,
|
| 465 |
+
878,
|
| 466 |
+
621
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 2
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "Gur-Ari et al. (2018) showed strong empirical evidence that the gradient dynamically converges to a very small subspace in various large-scale deep-learning scenarios. The subspace is spanned by a few top eigenvectors of the Hessian, and the dimension is equal to the number of data classes. This also indicates that the training trajectory of neural networks lies in a low-dimensional subspace, which is in line with the conclusion of Li et al. (2022a). Considering an illustrative example in Fig. 1, the full parameter space contains three dimensions, but the training trajectory $\\{\\pmb{\\theta}_i^D\\}_{i = 0,\\dots ,t}$ only lies in a 2-dimensional subspace $S$ spanned by $e_1$ and $e_2$ . We call this subspace the intrinsic subspace because it has a minimal degree of freedom (Li et al., 2018) for the objective function to reach the optimum. The aforementioned random subspace can be seen as a naive estimation of $S$ .",
|
| 473 |
+
"bbox": [
|
| 474 |
+
507,
|
| 475 |
+
629,
|
| 476 |
+
884,
|
| 477 |
+
917
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 2
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "page_number",
|
| 483 |
+
"text": "1703",
|
| 484 |
+
"bbox": [
|
| 485 |
+
480,
|
| 486 |
+
927,
|
| 487 |
+
519,
|
| 488 |
+
940
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 2
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "We hypothesize that an intrinsic task-specific subspace exists for each downstream task when fine-tuning a PLM. Generally, it is intractable to search such an intrinsic task-specific subspace directly. However, if our hypothesis is true, the finetuning trajectory will lie in a low-dimensional subspace. Thus we can resort to the fine-tuning trajectory to obtain an approximation of the intrinsic task-specific subspace. Specifically, given a finetuning trajectory $\\{\\pmb{\\theta}_i^D\\}_{i=0,\\dots,t}$ of a PLM on a downstream task, we stack it into a matrix $\\mathbf{W} \\in \\mathbb{R}^{t \\times D}$ , and apply Singular Value Decomposition (SVD) on it.",
|
| 495 |
+
"bbox": [
|
| 496 |
+
112,
|
| 497 |
+
84,
|
| 498 |
+
492,
|
| 499 |
+
294
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "equation",
|
| 505 |
+
"text": "\n$$\n\\boldsymbol {W} = \\boldsymbol {U} \\boldsymbol {\\Sigma} \\boldsymbol {V} ^ {T}, \\tag {2}\n$$\n",
|
| 506 |
+
"text_format": "latex",
|
| 507 |
+
"bbox": [
|
| 508 |
+
240,
|
| 509 |
+
304,
|
| 510 |
+
489,
|
| 511 |
+
325
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 3
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "where $\\pmb{\\Sigma} \\in \\mathbb{R}^{t \\times t}$ is the singular value matrix, $U \\in \\mathbb{R}^{t \\times t}$ and $V \\in \\mathbb{R}^{D \\times t}$ are two real orthogonal matrices whose columns are left and right singular vectors, respectively<sup>1</sup>. It is worth noting that the columns of $V$ are actually the principal directions of the given trajectory if zero empirical means of columns, and these directions constitute an orthonormal basis of the subspace in which the trajectory lies. Theoretically, a $(t-1)$ -dimensional subspace needs only $t$ independent points to determine. We can regard this subspace as an approximation of the intrinsic task-specific subspace whose dimension is equal to the number of points in the trajectory. Thus, we can replace the random projection matrix $P$ in Eq. (1) with $V$ to re-parameterize the model.",
|
| 518 |
+
"bbox": [
|
| 519 |
+
112,
|
| 520 |
+
334,
|
| 521 |
+
489,
|
| 522 |
+
593
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 3
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "3.3 Fine-tuning in Intrinsic Task-specific Subspaces",
|
| 529 |
+
"text_level": 1,
|
| 530 |
+
"bbox": [
|
| 531 |
+
112,
|
| 532 |
+
602,
|
| 533 |
+
450,
|
| 534 |
+
634
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 3
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "Given an approximated intrinsic task-specific subspace $V$ , we reformulate Eq. (1) by letting the model train in the subspace as follows.",
|
| 541 |
+
"bbox": [
|
| 542 |
+
112,
|
| 543 |
+
640,
|
| 544 |
+
489,
|
| 545 |
+
688
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 3
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "equation",
|
| 551 |
+
"text": "\n$$\n\\boldsymbol {\\theta} ^ {D} = \\boldsymbol {\\theta} _ {0} ^ {D} + \\boldsymbol {V} \\boldsymbol {\\theta} ^ {t}. \\tag {3}\n$$\n",
|
| 552 |
+
"text_format": "latex",
|
| 553 |
+
"bbox": [
|
| 554 |
+
228,
|
| 555 |
+
697,
|
| 556 |
+
487,
|
| 557 |
+
719
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 3
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "In our early exploration, we can achieve good performance close to full fine-tuning by Eq. (3). However, the performance is not stable, and sensitive to the initialization of $\\pmb{\\theta}^{t}$ . To solve this problem, we propose an ensemble-like method that combines multiple $\\pmb{\\theta}^{t}$ of different initialization to reduce variance, which is as follows.",
|
| 564 |
+
"bbox": [
|
| 565 |
+
112,
|
| 566 |
+
730,
|
| 567 |
+
492,
|
| 568 |
+
843
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 3
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "equation",
|
| 574 |
+
"text": "\n$$\n\\boldsymbol {\\theta} ^ {D} = \\boldsymbol {\\theta} _ {0} ^ {D} + \\boldsymbol {V} \\sum_ {i = 1} ^ {h} \\frac {1}{h} \\boldsymbol {\\theta} ^ {t (i)}, \\tag {4}\n$$\n",
|
| 575 |
+
"text_format": "latex",
|
| 576 |
+
"bbox": [
|
| 577 |
+
198,
|
| 578 |
+
852,
|
| 579 |
+
489,
|
| 580 |
+
896
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 3
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "where $h$ is the number of vectors to combine, and we set it as 16 in this paper. Note that although the ensemble increases the number of parameters to optimize, it does not change the intrinsic dimensionality of the subspace (i.e., the degree of freedom).",
|
| 587 |
+
"bbox": [
|
| 588 |
+
507,
|
| 589 |
+
84,
|
| 590 |
+
884,
|
| 591 |
+
179
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 3
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "In the following experimental evaluation, we will investigate subspace fine-tuning in both transductive and inductive settings to verify our hypotheses. The former is to verify the existence of intrinsic task-specific subspaces when fine-tuning PLMs on the downstream tasks, and the effectiveness of our method to uncover the subspaces. The latter further examines how well the intrinsic task-specific subspaces can be transferred to other similar tasks.",
|
| 598 |
+
"bbox": [
|
| 599 |
+
507,
|
| 600 |
+
181,
|
| 601 |
+
885,
|
| 602 |
+
341
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 3
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "4 Experiment and Analysis",
|
| 609 |
+
"text_level": 1,
|
| 610 |
+
"bbox": [
|
| 611 |
+
507,
|
| 612 |
+
360,
|
| 613 |
+
764,
|
| 614 |
+
376
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 3
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "4.1 Experimental Settings",
|
| 621 |
+
"text_level": 1,
|
| 622 |
+
"bbox": [
|
| 623 |
+
507,
|
| 624 |
+
388,
|
| 625 |
+
732,
|
| 626 |
+
405
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 3
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "Datasets and models. We evaluate the performance of the methods on the commonly used GLUE benchmark (Wang et al., 2018; Warstadt et al., 2019; Socher et al., 2013; Dolan and Brockett, 2005; Cer et al., 2017; Williams et al., 2018; Rajpurkar et al., 2016). For evaluation metrics, we report the matched accuracy for MNLI, Matthews correlation for CoLA, Pearson correlation for STS-B, and accuracy for other tasks. We choose the publicly available pre-trained language models RoBERTa-base (Liu et al., 2019) and BERT-base-cased (Devlin et al., 2019) for analysis. All experimental results are averaged over 5 runs of different seeds.",
|
| 633 |
+
"bbox": [
|
| 634 |
+
507,
|
| 635 |
+
414,
|
| 636 |
+
885,
|
| 637 |
+
639
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 3
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "Implementation details. Our implementation is based on HuggingFace's Transformers toolkit (Wolf et al., 2020). We first need to produce a set of fine-tuning trajectories of GLUE tasks for calculating projection matrices. We use the default script in the toolkit for fine-tuning, and save a checkpoint every epoch to obtain optimization trajectories. We set the trajectory length to 32 except for the MNLI dataset, which is set to 64 since it is the largest dataset and needs more parameters to fit. We flatten all parameters in an encoder layer into a wide vector, and then stack all vectors of different checkpoints into a matrix to perform SVD. We compute independent projection matrices for all layers, resulting in 12 projection matrices. For transductive subspace fine-tuning, the projection matrix is calculated from the same task,",
|
| 644 |
+
"bbox": [
|
| 645 |
+
507,
|
| 646 |
+
645,
|
| 647 |
+
885,
|
| 648 |
+
919
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 3
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "page_footnote",
|
| 654 |
+
"text": "<sup>1</sup>We assume $t \\ll D$ and thus compact SVD is applied.",
|
| 655 |
+
"bbox": [
|
| 656 |
+
134,
|
| 657 |
+
903,
|
| 658 |
+
470,
|
| 659 |
+
919
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 3
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "page_number",
|
| 665 |
+
"text": "1704",
|
| 666 |
+
"bbox": [
|
| 667 |
+
480,
|
| 668 |
+
927,
|
| 669 |
+
521,
|
| 670 |
+
940
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 3
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "table",
|
| 676 |
+
"img_path": "images/16f5cda4aff688f555ac4ebab1282e9a8b097d9d24180975403c67102cc6c021.jpg",
|
| 677 |
+
"table_caption": [],
|
| 678 |
+
"table_footnote": [],
|
| 679 |
+
"table_body": "<table><tr><td></td><td>CoLA</td><td>MRPC</td><td>SST-2</td><td>STS-B</td><td>QQP</td><td>MNLI</td><td>QNLI</td><td>RTE</td><td>Avg.</td></tr><tr><td>BERT-Full</td><td>59.37</td><td>84.46</td><td>91.95</td><td>89.08</td><td>91.07</td><td>83.39</td><td>90.77</td><td>66.93</td><td>82.13</td></tr><tr><td>BERT-Freeze</td><td>27.52</td><td>69.66</td><td>88.81</td><td>78.35</td><td>84.48</td><td>71.55</td><td>81.61</td><td>56.46</td><td>69.81</td></tr><tr><td>BERT-Random</td><td>37.89</td><td>70.78</td><td>89.47</td><td>81.41</td><td>85.86</td><td>72.91</td><td>83.38</td><td>58.63</td><td>72.54</td></tr><tr><td>BERT-Intrinsic</td><td>60.27</td><td>84.31</td><td>89.93</td><td>89.51</td><td>89.73</td><td>81.21</td><td>87.73</td><td>67.00</td><td>81.21</td></tr><tr><td>RoBERTa-Full</td><td>61.04</td><td>89.31</td><td>94.29</td><td>90.70</td><td>91.72</td><td>87.23</td><td>92.48</td><td>76.68</td><td>85.43</td></tr><tr><td>RoBERTa-Freeze</td><td>0.00</td><td>68.38</td><td>85.32</td><td>15.69</td><td>82.81</td><td>71.16</td><td>79.11</td><td>53.86</td><td>57.04</td></tr><tr><td>RoBERTa-Random</td><td>27.58</td><td>68.38</td><td>91.45</td><td>75.47</td><td>86.33</td><td>77.10</td><td>84.49</td><td>58.27</td><td>71.13</td></tr><tr><td>RoBERTa-Intrinsic</td><td>61.07</td><td>87.21</td><td>92.43</td><td>89.43</td><td>90.18</td><td>85.53</td><td>90.57</td><td>78.77</td><td>84.40</td></tr></table>",
|
| 680 |
+
"bbox": [
|
| 681 |
+
115,
|
| 682 |
+
80,
|
| 683 |
+
884,
|
| 684 |
+
239
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 4
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "Table 1: Transductive intrinsic subspace fine-tuning on the GLUE benchmark. Full denotes fine-tuning in the full-parameter space. Freeze denotes fine-tuning with the encoder frozen. Random denotes fine-tuning in a random subspace. Intrinsic denotes fine-tuning in the intrinsic task-specific subspaces. The subspace dimension is set to 32 except MNLI is 64. The best results are marked in bold, and the second-best results are underlined.",
|
| 691 |
+
"bbox": [
|
| 692 |
+
112,
|
| 693 |
+
247,
|
| 694 |
+
884,
|
| 695 |
+
307
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 4
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "image",
|
| 701 |
+
"img_path": "images/ffc8363cc35eadc79654a4627f0070b0bc09882e1a5abaf40bdcb8d23e1c722a.jpg",
|
| 702 |
+
"image_caption": [
|
| 703 |
+
"Figure 2: Inductive intrinsic subspace fine-tuning on the GLUE benchmark. Columns are the target tasks to be fine-tuned, and rows are source tasks that provide the transferred subspaces. Numbers in cells are performance drop of fine-tuning target tasks with the subspaces provided by source tasks. The last column is the average of other columns. Note that the numbers cannot be compared across columns because they are in different metrics."
|
| 704 |
+
],
|
| 705 |
+
"image_footnote": [],
|
| 706 |
+
"bbox": [
|
| 707 |
+
129,
|
| 708 |
+
321,
|
| 709 |
+
490,
|
| 710 |
+
533
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 4
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "image",
|
| 716 |
+
"img_path": "images/7b2044ad67456248c8fcc648244f1d2aa3a52c023ef38c4e2834ed94d50aa743.jpg",
|
| 717 |
+
"image_caption": [],
|
| 718 |
+
"image_footnote": [],
|
| 719 |
+
"bbox": [
|
| 720 |
+
505,
|
| 721 |
+
321,
|
| 722 |
+
867,
|
| 723 |
+
533
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 4
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "while for inductive subspace fine-tuning, it is calculated from other tasks. We only re-parameterize the encoder layers into the subspaces and leave the embedding layer and the last classification layer in their original parameter space. We freeze the initial model $\\theta_0^D$ and the projection matrix $V$ , and only tune the low-dimensional vector $\\theta^t$ . We keep the learning rate of the embedding and classification layers unchanged and set the learning rate of $\\theta^t$ to 0.01.",
|
| 730 |
+
"bbox": [
|
| 731 |
+
112,
|
| 732 |
+
636,
|
| 733 |
+
489,
|
| 734 |
+
796
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 4
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "4.2 Transductive Intrinsic Subspace Fine-tuning",
|
| 741 |
+
"text_level": 1,
|
| 742 |
+
"bbox": [
|
| 743 |
+
112,
|
| 744 |
+
814,
|
| 745 |
+
415,
|
| 746 |
+
845
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 4
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "Table 1 summarizes the experimental results. We can see that freezing the encoder significantly degrades the model performance as it serves as a naive baseline (Note that it implies fine-tuning in",
|
| 753 |
+
"bbox": [
|
| 754 |
+
112,
|
| 755 |
+
854,
|
| 756 |
+
489,
|
| 757 |
+
919
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 4
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "the null space, i.e., $V\\theta^t = 0$ , which brings no information to update the model). For intrinsic subspace fine-tuning, we can clearly see that it shows comparable performance to the full fine-tuning across all GLUE tasks and models. In contrast, random projection only yields a marginal improvement over the baseline, and significantly underperforms intrinsic subspace fine-tuning.",
|
| 764 |
+
"bbox": [
|
| 765 |
+
507,
|
| 766 |
+
636,
|
| 767 |
+
884,
|
| 768 |
+
765
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 4
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "From these empirical results, we first conclude that PLMs can be re-parameterized and fine-tuned in some low-dimensional subspaces. Secondly, there exist some subspaces in which the PLMs can most effectively adapt to downstream tasks, and we can uncover these subspaces by finding the principal directions of fine-tuning trajectories in the full parameter space. This conclusion in turn suggests that fine-tuning of PLMs happens in tiny",
|
| 775 |
+
"bbox": [
|
| 776 |
+
507,
|
| 777 |
+
774,
|
| 778 |
+
884,
|
| 779 |
+
919
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 4
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "page_number",
|
| 785 |
+
"text": "1705",
|
| 786 |
+
"bbox": [
|
| 787 |
+
482,
|
| 788 |
+
928,
|
| 789 |
+
519,
|
| 790 |
+
940
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 4
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "table",
|
| 796 |
+
"img_path": "images/86feb5f8e5dd90448ebea216ee240e49b22ad22b9544ee71a64df65efda33b38.jpg",
|
| 797 |
+
"table_caption": [],
|
| 798 |
+
"table_footnote": [],
|
| 799 |
+
"table_body": "<table><tr><td></td><td>CoLA</td><td>MRPC</td><td>SST-2</td><td>STS-B</td><td>QQP</td><td>MNLI</td><td>QNLI</td><td>RTE</td><td>Avg.</td></tr><tr><td>BERT-Full</td><td>59.37</td><td>84.46</td><td>91.95</td><td>89.08</td><td>91.07</td><td>83.39</td><td>90.77</td><td>66.93</td><td>82.13</td></tr><tr><td>BERT-Random</td><td>32.49</td><td>70.15</td><td>88.65</td><td>79.29</td><td>84.84</td><td>71.75</td><td>82.29</td><td>57.11</td><td>70.82</td></tr><tr><td>BERT-Zeroshot</td><td>35.35</td><td>78.09</td><td>91.06</td><td>85.17</td><td>87.57</td><td>75.29</td><td>84.01</td><td>75.23</td><td>76.47</td></tr><tr><td>BERT-Unified</td><td>61.58</td><td>84.41</td><td>91.06</td><td>89.71</td><td>91.27</td><td>83.85</td><td>90.97</td><td>67.00</td><td>82.48</td></tr><tr><td>RoBERTa-Full</td><td>61.04</td><td>89.31</td><td>94.29</td><td>90.70</td><td>91.72</td><td>87.23</td><td>92.48</td><td>76.68</td><td>85.43</td></tr><tr><td>RoBERTa-Random</td><td>0.00</td><td>68.38</td><td>89.47</td><td>27.60</td><td>84.51</td><td>73.16</td><td>82.10</td><td>54.44</td><td>59.96</td></tr><tr><td>RoBERTa-Zeroshot</td><td>32.93</td><td>80.44</td><td>90.60</td><td>83.10</td><td>87.12</td><td>78.76</td><td>84.46</td><td>67.12</td><td>75.57</td></tr><tr><td>RoBERTa-Unified</td><td>63.80</td><td>89.12</td><td>93.55</td><td>90.88</td><td>91.85</td><td>87.20</td><td>92.36</td><td>77.91</td><td>85.83</td></tr></table>",
|
| 800 |
+
"bbox": [
|
| 801 |
+
115,
|
| 802 |
+
80,
|
| 803 |
+
884,
|
| 804 |
+
239
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 5
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Table 2: Intrinsic subspace fine-tuning in the unified task subspace. Random denotes fine-tuning in a random subspace (dim=8). Zereshot denotes fine-tuning in the unified task subspace with itself removed (dim=7). Unified denotes fine-tuning in the unified task subspace (dim=8).",
|
| 811 |
+
"bbox": [
|
| 812 |
+
112,
|
| 813 |
+
248,
|
| 814 |
+
882,
|
| 815 |
+
292
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 5
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "subspaces, which provides an explanation of the ease of adapting PLMs to downstream tasks.",
|
| 822 |
+
"bbox": [
|
| 823 |
+
112,
|
| 824 |
+
316,
|
| 825 |
+
485,
|
| 826 |
+
350
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 5
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "4.3 Inductive Intrinsic Subspace Fine-tuning",
|
| 833 |
+
"text_level": 1,
|
| 834 |
+
"bbox": [
|
| 835 |
+
112,
|
| 836 |
+
376,
|
| 837 |
+
480,
|
| 838 |
+
392
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 5
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Next, we conduct inductive intrinsic subspace finetuning to examine the transferability of the discovered subspaces. We generally follow the same training protocol as in the last section, except that we replace the projection matrices with the ones calculated from other tasks.",
|
| 845 |
+
"bbox": [
|
| 846 |
+
112,
|
| 847 |
+
406,
|
| 848 |
+
487,
|
| 849 |
+
501
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 5
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "We can observe the performance drop using transferred task subspaces in Fig. 2. Generally, we can see that even though the models are finetuned in transferred subspaces, they still outperform the random subspace baseline, which suggests the transferability of intrinsic task-specific subspaces.",
|
| 856 |
+
"bbox": [
|
| 857 |
+
112,
|
| 858 |
+
507,
|
| 859 |
+
489,
|
| 860 |
+
619
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 5
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "The transferability of subspaces seems to correlate with the scale of the transferred task. For example, big datasets like SST-2, QQP, MNLI and QNLI underperform small datasets like CoLA, MRPC, STS-B, and RTE in providing subspaces. This is because the intrinsic task-specific subspaces of complex tasks have higher dimensions and need more parameters to estimate.",
|
| 867 |
+
"bbox": [
|
| 868 |
+
112,
|
| 869 |
+
625,
|
| 870 |
+
489,
|
| 871 |
+
753
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 5
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "When comparing within one column, we can see significant difference between distinct subspaces used for fine-tuning one task. We assume similar tasks may have substantial subspace intersections and thus be easier to transfer. Still, this claim needs further analysis to confirm, we will leave it further study since transferability is not the main focus of this paper. In summary, we empirically show that the intrinsic task-specific subspace has a certain transferability.",
|
| 878 |
+
"bbox": [
|
| 879 |
+
112,
|
| 880 |
+
758,
|
| 881 |
+
489,
|
| 882 |
+
919
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 5
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "4.4 Unified Intrinsic Task Subspace",
|
| 889 |
+
"text_level": 1,
|
| 890 |
+
"bbox": [
|
| 891 |
+
507,
|
| 892 |
+
316,
|
| 893 |
+
806,
|
| 894 |
+
332
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 5
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "Qin et al. (2021) showed that a unified low-dimensional intrinsic task subspace can be constructed by a multi-task prompt tuning method. In our case, we can also construct a unified subspace by stacking the fine-tuning trajectories of different tasks into a matrix, and applying SVD on it. Specifically, we sample one checkpoint for each task and gather them to calculate the unified subspace, which forms an 8-dimensional subspace. And we additionally calculate a zero-shot subspace of a task for comparison, which is calculated by excluding the checkpoint of this task. The results are given in Table 2. We can see that the models can be effectively fine-tuned in the unified subspace. For the zero-shot setting, the model performance decreases significantly, but still outperforms the random baseline.",
|
| 901 |
+
"bbox": [
|
| 902 |
+
507,
|
| 903 |
+
337,
|
| 904 |
+
884,
|
| 905 |
+
609
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 5
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "image",
|
| 911 |
+
"img_path": "images/20fef6782993afbd12ec69771f05760723f0d4ba880e00872a54316e3d0f657b.jpg",
|
| 912 |
+
"image_caption": [
|
| 913 |
+
"Figure 3: The cosine similarities between the low-dimensional parameter vectors $\\pmb{\\theta}^t$ of different tasks in the unified intrinsic task subspace. Similarities are averaged over layers and ensembles."
|
| 914 |
+
],
|
| 915 |
+
"image_footnote": [],
|
| 916 |
+
"bbox": [
|
| 917 |
+
515,
|
| 918 |
+
626,
|
| 919 |
+
875,
|
| 920 |
+
825
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 5
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "page_number",
|
| 926 |
+
"text": "1706",
|
| 927 |
+
"bbox": [
|
| 928 |
+
482,
|
| 929 |
+
928,
|
| 930 |
+
521,
|
| 931 |
+
940
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 5
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "image",
|
| 937 |
+
"img_path": "images/fee98878f24a83d5adce07984caf52dc14b67ee78fa3ca194ca123083c31de08.jpg",
|
| 938 |
+
"image_caption": [],
|
| 939 |
+
"image_footnote": [],
|
| 940 |
+
"bbox": [
|
| 941 |
+
157,
|
| 942 |
+
85,
|
| 943 |
+
843,
|
| 944 |
+
259
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 6
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "image",
|
| 950 |
+
"img_path": "images/926085918447465bfda2e47173e00e1f0138f842bb7389fcdb56f2e0aa9a421e.jpg",
|
| 951 |
+
"image_caption": [
|
| 952 |
+
"Figure 4: Visualization of product of $V\\theta^t$ using the BERT model to fine-tune in the intrinsic task-specific subspace (top) and a random subspace (bottom) on the MRPC dataset. Outlier dimensions appear in the intrinsic subspace but not in a random subspace."
|
| 953 |
+
],
|
| 954 |
+
"image_footnote": [],
|
| 955 |
+
"bbox": [
|
| 956 |
+
157,
|
| 957 |
+
263,
|
| 958 |
+
845,
|
| 959 |
+
441
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 6
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Next, we take the BERT model as an example and examine the low-dimensional parameter vector $\\theta^t$ learned within the unified intrinsic subspace. We calculate the cosine similarities between the $\\theta^t$ vectors corresponding to different tasks and present the results in Fig. 3. As shown in the figure, the cosine similarities between different tasks are significantly low, indicating that the unified intrinsic subspace contains disentangled knowledge distributed in different dimensions, and the low-dimensional parameter vector $\\theta^t$ serves as an (unnormized) probability distribution to induce task-specific knowledge.",
|
| 966 |
+
"bbox": [
|
| 967 |
+
112,
|
| 968 |
+
529,
|
| 969 |
+
489,
|
| 970 |
+
737
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 6
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "Based on these empirical findings, we conclude that a unified intrinsic task subspace is feasible and it contains disentangled knowledge. However, in-domain knowledge still plays a crucial role in forming the subspace as we can see that the zero-shot setting still has a large perform gap.",
|
| 977 |
+
"bbox": [
|
| 978 |
+
112,
|
| 979 |
+
739,
|
| 980 |
+
489,
|
| 981 |
+
835
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 6
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "4.5 Outlier Dimensions",
|
| 988 |
+
"text_level": 1,
|
| 989 |
+
"bbox": [
|
| 990 |
+
112,
|
| 991 |
+
848,
|
| 992 |
+
314,
|
| 993 |
+
862
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 6
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "We find that PLMs have a small number of outlier dimensions exhibiting abnormal spikes when fine-tuning in the intrinsic task-specific subspaces.",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
112,
|
| 1002 |
+
870,
|
| 1003 |
+
489,
|
| 1004 |
+
919
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 6
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "We examine each dimension of the product of $V\\theta^t$ and consider the dimension whose absolute value is greater than a threshold as outlier. Note that the product of $V\\theta^t$ is the learned parameter update in the full parameter space and we re-parameterize the encoder of the PLM layer-wisely, thus it is a vector with the dimension equal to the number of all parameters of an encoder layer.",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
507,
|
| 1013 |
+
527,
|
| 1014 |
+
882,
|
| 1015 |
+
657
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 6
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "It is important to note that the outlier dimension in our context is different from the previous studies (Kovaleva et al., 2021; Luo et al., 2021; Puccetti et al., 2022). Previous studies use the outlier dimension to refer to the output channel (768 dimensions for BERT-base). In our context, we flatten all parameters of a layer into a vector (7,087,872 dimensions for BERT-base). Then an outlier dimension refers to a specific parameter weight in the layer. We use the BERT model and MRPC dataset for illustration, and visualize the product of $V\\theta^{t}$ in Fig. 4 to show the outlier patterns. As we can see from the figure, when fine-tuning in the intrinsic task-specific subspace, the outlier patterns exist in all layers. In contrast, these outlier patterns disappear when fine-tuning in a random subspace.",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
507,
|
| 1024 |
+
661,
|
| 1025 |
+
884,
|
| 1026 |
+
919
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 6
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "page_number",
|
| 1032 |
+
"text": "1707",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
482,
|
| 1035 |
+
927,
|
| 1036 |
+
519,
|
| 1037 |
+
940
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 6
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "table",
|
| 1043 |
+
"img_path": "images/79fefb5b3496cf3b51c43a7684d3928b367827e5ac52bc8b797ff7c26c86a327.jpg",
|
| 1044 |
+
"table_caption": [],
|
| 1045 |
+
"table_footnote": [],
|
| 1046 |
+
"table_body": "<table><tr><td></td><td>CoLA</td><td>MRPC</td><td>SST-2</td><td>STS-B</td><td>QQP</td><td>MNLI</td><td>QNLI</td><td>RTE</td></tr><tr><td>BERT-Full</td><td>59.37</td><td>84.46</td><td>91.95</td><td>89.08</td><td>91.07</td><td>83.39</td><td>90.77</td><td>66.93</td></tr><tr><td>BERT-Random</td><td>57.27</td><td>84.46</td><td>91.79</td><td>88.66</td><td>90.66</td><td>83.68</td><td>90.41</td><td>64.48</td></tr><tr><td>BERT-Outlier</td><td>0.00</td><td>68.38</td><td>50.92</td><td>0.00</td><td>63.18</td><td>33.64</td><td>49.89</td><td>52.71</td></tr><tr><td>RoBERTa-Full</td><td>61.04</td><td>89.31</td><td>94.29</td><td>90.70</td><td>91.72</td><td>87.23</td><td>92.48</td><td>76.68</td></tr><tr><td>RoBERTa-Random</td><td>58.80</td><td>87.65</td><td>93.95</td><td>89.52</td><td>91.29</td><td>87.76</td><td>92.61</td><td>68.88</td></tr><tr><td>RoBERTa-Outlier</td><td>0.00</td><td>70.49</td><td>50.92</td><td>28.05</td><td>63.67</td><td>36.15</td><td>49.89</td><td>52.71</td></tr></table>",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
115,
|
| 1049 |
+
80,
|
| 1050 |
+
884,
|
| 1051 |
+
206
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 7
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "table",
|
| 1057 |
+
"img_path": "images/ec0920cb94e8a5cd438583d7f634a97a19932fd932eaf1110a92c940cba41616.jpg",
|
| 1058 |
+
"table_caption": [
|
| 1059 |
+
"Table 3: Evaluation on the GLUE benchmark when the outlier dimensions are zeroed. The results with the most performance loss are marked in bold."
|
| 1060 |
+
],
|
| 1061 |
+
"table_footnote": [],
|
| 1062 |
+
"table_body": "<table><tr><td>Model component</td><td>Layer</td><td># of outliers each layer</td></tr><tr><td>attention.self.query.weight</td><td>1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12</td><td>3, 1, 1, 1, 4, 4, 8, 3, 3, 2, 4</td></tr><tr><td>attention.self.query.bias</td><td>1</td><td>1</td></tr><tr><td>attention.self.key.bias</td><td>10, 11</td><td>2, 1</td></tr><tr><td>attention.output LayerNorm.weight</td><td>1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12</td><td>1, 2, 3, 5, 4, 1, 2, 4, 1, 3, 2</td></tr><tr><td>attention.output LayerNorm.bias</td><td>1, 2, 3</td><td>1, 1, 1</td></tr><tr><td>intermediate.dense.weight</td><td>1, 12</td><td>2, 1</td></tr><tr><td>output.dense.weight</td><td>1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11</td><td>2, 6, 5, 4, 2, 4, 3, 2, 3, 4, 4</td></tr><tr><td>output LayerNorm.weight</td><td>5, 6, 7, 12</td><td>4, 1, 1, 3</td></tr></table>",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
114,
|
| 1065 |
+
256,
|
| 1066 |
+
882,
|
| 1067 |
+
414
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 7
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Table 4: Sampled outlier dimensions in the BERT model. The left column shows the model component containing outlier dimensions. The middle column shows the layer where the model component contains outlier dimensions. The right column shows the number of outlier dimensions in the corresponding layer.",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
112,
|
| 1076 |
+
423,
|
| 1077 |
+
882,
|
| 1078 |
+
468
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 7
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "This phenomenon is universal for different models and different datasets.",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
112,
|
| 1087 |
+
492,
|
| 1088 |
+
485,
|
| 1089 |
+
524
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 7
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "To investigate the effect of the outlier dimensions on the models, we disable them by setting them to zero and examine how this affects model performance. We first disable the top outlier dimension of each encoder layer and fine-tune the model in the full parameter space, which has almost no impact on model performance. This result is not surprising because disabling only one weight in a layer definitely has a negligible effect on the output than disabling an output channel as the previous studies do. We continue to disable more outlier dimensions, and these deviating at least $3\\sigma$ from the mean are disabled. Approximately $0.3\\%$ of encoder parameters are disabled. We also randomly sample and disable the same number of dimensions for comparison, and the results are shown in Table 3. We can see that disabling outlier dimensions degrades the model performance significantly while disabling random dimensions does not.",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
112,
|
| 1098 |
+
527,
|
| 1099 |
+
489,
|
| 1100 |
+
850
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 7
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Next, we qualitatively examine the positions in which the outlier dimensions emerge. We sample each layer's top 10 outlier dimensions and record their positions in Table 4. We can see",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
112,
|
| 1109 |
+
854,
|
| 1110 |
+
489,
|
| 1111 |
+
919
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 7
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "that the outlier dimensions are ubiquitous in various model components. Then, we identify one outlier dimension $O1$ that consistently produces high-magnitude weights in almost all BERT layers. Furthermore, we find that there is a considerable overlap in the outlier dimensions of each layer, which suggests that these dimensions can propagate through layers.",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
507,
|
| 1120 |
+
492,
|
| 1121 |
+
884,
|
| 1122 |
+
621
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 7
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Why do outlier dimensions emerge? Previous studies came up with several explanations like high-magnitude scaling factors (Kovaleva et al., 2021), LayerNorm and residual connection (Luo et al., 2021), and unbalanced token frequency (Puccetti et al., 2022). However, these explanations cannot apply to our case because the definitions of the outlier dimension are different. Recall that our approach to identifying outlier dimensions is actually examining re-parameterized parameter updates given the intrinsic task-specific subspace. The magnitude of the updates represents the importance of corresponding parameters with respect to solving the task. We have reason to believe that these dimensions play an important role in constituting the intrinsic subspace and are crucial to induce task-specific knowledge to adapt to downstream tasks.",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
507,
|
| 1131 |
+
629,
|
| 1132 |
+
885,
|
| 1133 |
+
917
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 7
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "page_number",
|
| 1139 |
+
"text": "1708",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
482,
|
| 1142 |
+
928,
|
| 1143 |
+
521,
|
| 1144 |
+
940
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 7
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "5 Conclusion",
|
| 1151 |
+
"text_level": 1,
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
114,
|
| 1154 |
+
83,
|
| 1155 |
+
247,
|
| 1156 |
+
98
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 8
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "In this paper, we claim that the fine-tuning of PLMs happens in tiny subspaces. To uncover such intrinsic task-specific subspaces, we exploit the fine-tuning trajectory to find its main direction. Our empirical experiments show that PLMs can effectively adapt to downstream tasks when re-parameterizing and training in the found subspaces, which well explains the ease of adapting PLMs to downstream tasks. Furthermore, we find outlier dimensions in PLMs during the subspace training. We consider that these dimensions are crucial to induce task-specific knowledge to downstream tasks. Still, we need further in-depth analysis to understand the reasons and impact of the emergence of outlier patterns.",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
115,
|
| 1165 |
+
109,
|
| 1166 |
+
489,
|
| 1167 |
+
350
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 8
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "Limitations",
|
| 1174 |
+
"text_level": 1,
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
114,
|
| 1177 |
+
362,
|
| 1178 |
+
220,
|
| 1179 |
+
376
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 8
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "text",
|
| 1185 |
+
"text": "Despite the insights obtained through our analysis, certain limitations persist, which we outline in this section.",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
112,
|
| 1188 |
+
387,
|
| 1189 |
+
487,
|
| 1190 |
+
434
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 8
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "With respect to the re-parameterization of parameters as presented in Eq. (3), we adopted the layer-wise setting as proposed by Aghajanyan et al. (2021) in order to alleviate memory and computational burdens. Nonetheless, such a setting restricts us to only identifying local subspaces, rather than discovering global subspaces within the entire parameter space of a pre-trained language model. The existence of a task-specific global subspace is yet to be ascertained. If such a subspace does exist, the correlation between this global subspace and the identified local subspaces needs to be explored in future research.",
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
115,
|
| 1199 |
+
437,
|
| 1200 |
+
489,
|
| 1201 |
+
643
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 8
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"text": "In terms of experimental settings, the evaluation tasks are limited to natural language understanding tasks, with a lack of natural language generation tasks. On model architecture, decoder-only (e.g., GPT) and encoder-decoder (e.g., T5) models are not included. On model scale, we use basic-size models rather than large ones due to limited computational resources. Consequently, the conclusions drawn in this study may not be applicable to the above situations.",
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
115,
|
| 1210 |
+
646,
|
| 1211 |
+
489,
|
| 1212 |
+
804
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 8
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"text": "The analysis presented in Section 4.5 demonstrates that pre-trained language models exhibit a small number of outlier dimensions when finetuning in the intrinsic task-specific subspaces. Although we have observed a significant decline in model performance when disabling these dimensions, the underlying mechanism responsible for",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
112,
|
| 1221 |
+
806,
|
| 1222 |
+
489,
|
| 1223 |
+
917
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 8
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "the emergence of these outlier dimensions remains unclear.",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
507,
|
| 1232 |
+
84,
|
| 1233 |
+
880,
|
| 1234 |
+
115
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 8
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "text",
|
| 1240 |
+
"text": "Acknowledgments",
|
| 1241 |
+
"text_level": 1,
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
509,
|
| 1244 |
+
130,
|
| 1245 |
+
663,
|
| 1246 |
+
147
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 8
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "This work is supported by the Sichuan key research program (22ZDYF3388), Fundamental Research Funds for the Central Universities (ZYGX2019Z014), National Natural Science Foundation of China (61976044, 52079026), Fok YingTong Education Foundation for Young Teachers in the Higher Education Institutions of China (161062), the Canada CIFAR AI Chair Program, and the Canada NSERC Discovery Grant (RGPIN-2021-03115).",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
507,
|
| 1255 |
+
156,
|
| 1256 |
+
885,
|
| 1257 |
+
317
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 8
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "References",
|
| 1264 |
+
"text_level": 1,
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
510,
|
| 1267 |
+
346,
|
| 1268 |
+
610,
|
| 1269 |
+
361
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 8
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "list",
|
| 1275 |
+
"sub_type": "ref_text",
|
| 1276 |
+
"list_items": [
|
| 1277 |
+
"Armen Aghajanyan, Sonal Gupta, and Luke Zettlemoyer. 2021. Intrinsic dimensionality explains the effectiveness of language model fine-tuning. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 7319-7328.",
|
| 1278 |
+
"Daniel Cer, Mona Diab, Eneko Agirre, Inigo Lopez-Gazpio, and Lucia Specia. 2017. SemEval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In Proceedings of the 11th International Workshop on Semantic Evaluation, pages 1-14.",
|
| 1279 |
+
"Patrick H. Chen, Hsiang-Fu Yu, Inderjit S. Dhillon, and Cho-Jui Hsieh. 2021. DRONE: data-aware low-rank compression for large NLP models. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pages 29321-29334.",
|
| 1280 |
+
"Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Zhangyang Wang, and Michael Carbin. 2020. The lottery ticket hypothesis for pretrained BERT networks. In Advances in Neural Information Processing Systems 33.",
|
| 1281 |
+
"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, pages 4171-4186.",
|
| 1282 |
+
"Yue Ding, Karolis Martinkus, Damian Pascual, Simon Clematide, and Roger Wattenhofer. 2022. On isotropy calibration of transformer models. In Proceedings of the Third Workshop on Insights from Negative Results in NLP, pages 1-9."
|
| 1283 |
+
],
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
510,
|
| 1286 |
+
370,
|
| 1287 |
+
885,
|
| 1288 |
+
917
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 8
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "page_number",
|
| 1294 |
+
"text": "1709",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
482,
|
| 1297 |
+
928,
|
| 1298 |
+
521,
|
| 1299 |
+
940
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 8
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "list",
|
| 1305 |
+
"sub_type": "ref_text",
|
| 1306 |
+
"list_items": [
|
| 1307 |
+
"William B. Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing.",
|
| 1308 |
+
"Jonathan Frankle and Michael Carbin. 2019. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In *The 7th International Conference on Learning Representations*.",
|
| 1309 |
+
"Zhuocheng Gong, Di He, Yelong Shen, Tie-Yan Liu, Weizhu Chen, Dongyan Zhao, Ji-Rong Wen, and Rui Yan. 2022. Finding the dominant winning ticket in pre-trained language models. In Findings of the Association for Computational Linguistics: ACL 2022, pages 1459-1472.",
|
| 1310 |
+
"Mitchell Gordon, Kevin Duh, and Nicholas Andrews. 2020. Compressing BERT: Studying the effects of weight pruning on transfer learning. In Proceedings of the 5th Workshop on Representation Learning for NLP, pages 143-155.",
|
| 1311 |
+
"Frithjof Gressmann, Zach Eaton-Rosen, and Carlo Luschi. 2020. Improving neural network training in low dimensional random bases. In Advances in Neural Information Processing Systems 33.",
|
| 1312 |
+
"Guy Gur-Ari, Daniel A Roberts, and Ethan Dyer. 2018. Gradient descent happens in a tiny subspace. arXiv preprint arXiv:1812.04754.",
|
| 1313 |
+
"Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. Lora: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations.",
|
| 1314 |
+
"Olga Kovaleva, Saurabh Kulshreshtha, Anna Rogers, and Anna Rumshisky. 2021. BERT busters: Outlier dimensions that disrupt transformers. In *Findings of the Association for Computational Linguistics: ACL/IJCNLP* 2021, pages 3392-3405.",
|
| 1315 |
+
"Chunyuan Li, Heerad Farkhoor, Rosanne Liu, and Jason Yosinski. 2018. Measuring the intrinsic dimension of objective landscapes. In International Conference on Learning Representations.",
|
| 1316 |
+
"Tao Li, Lei Tan, Zhehao Huang, Qinghua Tao, Yipeng Liu, and Xiaolin Huang. 2022a. Low dimensional trajectory hypothesis is true: Dnns can be trained in tiny subspaces. IEEE Transactions on Pattern Analysis and Machine Intelligence.",
|
| 1317 |
+
"Tao Li, Yingwen Wu, Sizhe Chen, Kun Fang, and Xiaolin Huang. 2022b. Subspace adversarial training. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13399-13408.",
|
| 1318 |
+
"Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 4582-4597."
|
| 1319 |
+
],
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
115,
|
| 1322 |
+
85,
|
| 1323 |
+
485,
|
| 1324 |
+
917
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 9
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "list",
|
| 1330 |
+
"sub_type": "ref_text",
|
| 1331 |
+
"list_items": [
|
| 1332 |
+
"Chen Liang, Haoming Jiang, Simiao Zuo, Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen, and Tuo Zhao. 2022. No parameters left behind: Sensitivity guided adaptive learning rate for training large transformer models. In The Tenth International Conference on Learning Representations.",
|
| 1333 |
+
"Chen Liang, Simiao Zuo, Minshuo Chen, Haoming Jiang, Xiaodong Liu, Pengcheng He, Tuo Zhao, and Weizhu Chen. 2021. Super tickets in pre-trained language models: From model compression to improving generalization. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 6524-6538.",
|
| 1334 |
+
"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. In arXiv preprint arXiv:1907.11692.",
|
| 1335 |
+
"Ziyang Luo, Artur Kulmizev, and Xiaoxi Mao. 2021. Positional artefacts propagate through masked language model embeddings. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 5312-5327.",
|
| 1336 |
+
"Rabeeh Karimi Mahabadi, James Henderson, and Sebastian Ruder. 2021. Compacter: Efficient low-rank hypercomplex adapter layers. In Advances in Neural Information Processing Systems 34, pages 1022-1035.",
|
| 1337 |
+
"Sai Prasanna, Anna Rogers, and Anna Rumshisky. 2020. When BERT plays the lottery, all tickets are winning. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, pages 3208-3229.",
|
| 1338 |
+
"Giovanni Puccetti, Anna Rogers, Aleksandr Drozd, and Felice Dell'Orletta. 2022. Outlier dimensions that disrupt transformers are driven by frequency. In *Findings of the Association for Computational Linguistics: EMNLP* 2022, pages 1286-1304.",
|
| 1339 |
+
"Yujia Qin, Xiaozhi Wang, Yusheng Su, Yankai Lin, Ning Ding, Zhiyuan Liu, Juanzi Li, Lei Hou, Peng Li, Maosong Sun, et al. 2021. Exploring low-dimensional intrinsic task subspace via prompt tuning. arXiv preprint arXiv:2110.07867.",
|
| 1340 |
+
"Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI.",
|
| 1341 |
+
"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."
|
| 1342 |
+
],
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
510,
|
| 1345 |
+
85,
|
| 1346 |
+
880,
|
| 1347 |
+
917
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 9
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "page_number",
|
| 1353 |
+
"text": "1710",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
482,
|
| 1356 |
+
928,
|
| 1357 |
+
519,
|
| 1358 |
+
940
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 9
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1631-1642.",
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
114,
|
| 1367 |
+
85,
|
| 1368 |
+
487,
|
| 1369 |
+
178
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 10
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "text",
|
| 1375 |
+
"text": "Jianlin Su, Jiarun Cao, Weijie Liu, and Yangyiwen Ou. 2021. Whitening sentence representations for better semantics and faster retrieval. arXiv preprint arXiv:2103.15316.",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
114,
|
| 1378 |
+
187,
|
| 1379 |
+
489,
|
| 1380 |
+
242
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 10
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "text",
|
| 1386 |
+
"text": "William Timkey and Marten van Schijndel. 2021. All bark and no bite: Rogue dimensions in transformer language models obscure representational quality. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 4527-4546.",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
114,
|
| 1389 |
+
253,
|
| 1390 |
+
489,
|
| 1391 |
+
332
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 10
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "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.",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
114,
|
| 1400 |
+
344,
|
| 1401 |
+
489,
|
| 1402 |
+
437
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 10
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "Alex Warstadt, Amanpreet Singh, and Samuel R. Bowman. 2019. Neural network acceptability judgments. Transactions of the Association for Computational Linguistics, 7:625-641.",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
114,
|
| 1411 |
+
449,
|
| 1412 |
+
489,
|
| 1413 |
+
502
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 10
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "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, pages 1112-1122.",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
114,
|
| 1422 |
+
513,
|
| 1423 |
+
489,
|
| 1424 |
+
605
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 10
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "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, pages 38-45.",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
114,
|
| 1433 |
+
617,
|
| 1434 |
+
489,
|
| 1435 |
+
763
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 10
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "text",
|
| 1441 |
+
"text": "Elad Ben Zaken, Yoav Goldberg, and Shauli Ravfogel. 2022. Bitfit: Simple parameter-efficient fine-tuning for transformer-based masked language-models. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics, pages 1-9.",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
114,
|
| 1444 |
+
772,
|
| 1445 |
+
489,
|
| 1446 |
+
841
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 10
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "Zhong Zhang, Chongming Gao, Cong Xu, Rui Miao, Qinli Yang, and Junming Shao. 2020. Revisiting representation degeneration problem in language modeling. In *Findings of the Association for Computational Linguistics: EMNLP* 2020, pages 518-527.",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
114,
|
| 1455 |
+
851,
|
| 1456 |
+
489,
|
| 1457 |
+
917
|
| 1458 |
+
],
|
| 1459 |
+
"page_idx": 10
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"type": "text",
|
| 1463 |
+
"text": "A Appendix",
|
| 1464 |
+
"text_level": 1,
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
509,
|
| 1467 |
+
83,
|
| 1468 |
+
633,
|
| 1469 |
+
99
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 10
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "A.1 Hyperparameters",
|
| 1476 |
+
"text_level": 1,
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
509,
|
| 1479 |
+
108,
|
| 1480 |
+
700,
|
| 1481 |
+
124
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 10
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "We first fine-tune the BERT and RoBERTa models for calculating projection matrices. We use the fine-tuning script in the Transformers toolkit<sup>2</sup>. All hyperparameters remain default except for the number of epochs, which is set to 32 and 64 for the MNLI and all other tasks, respectively. For intrinsic subspace fine-tuning, the dimensionality of $\\theta^t$ is set to 32 and 64 for the MNLI and all other tasks, respectively. The learning rate of $\\theta^t$ is set to 0.01. The number of ensembles $h$ is set to 16. Other hyperparameter are the same as those in the script. All experimental results are averaged over 5 runs of different seeds. Each experiment is conducted on a single GeForce RTX 2080Ti GPU with environment of Pytorch 1.11.0 + CUDA 11.3.1.",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
505,
|
| 1490 |
+
129,
|
| 1491 |
+
884,
|
| 1492 |
+
370
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 10
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "A.2 Ablation study",
|
| 1499 |
+
"text_level": 1,
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
507,
|
| 1502 |
+
380,
|
| 1503 |
+
675,
|
| 1504 |
+
395
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 10
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "We conduct an ablation experiment over the number of dimensions of the subspaces. The results are given in Table 5 and Table 6. The performance increases as the number of dimensions increases.",
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
507,
|
| 1513 |
+
401,
|
| 1514 |
+
882,
|
| 1515 |
+
464
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 10
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "table",
|
| 1521 |
+
"img_path": "images/908cd998bc960f8b14a8a287c4d02a44501f4d385b1b53516142a7d9d9825612.jpg",
|
| 1522 |
+
"table_caption": [],
|
| 1523 |
+
"table_footnote": [],
|
| 1524 |
+
"table_body": "<table><tr><td>Tasks</td><td>dim=8</td><td>dim=16</td><td>dim=32</td></tr><tr><td>CoLA</td><td>54.06</td><td>57.17</td><td>60.27</td></tr><tr><td>MRPC</td><td>75.05</td><td>77.94</td><td>84.31</td></tr><tr><td>SST-2</td><td>89.52</td><td>90.05</td><td>89.93</td></tr><tr><td>STS-B</td><td>87.95</td><td>89.02</td><td>89.51</td></tr><tr><td>QQP</td><td>87.61</td><td>89.12</td><td>89.73</td></tr><tr><td>MNLI</td><td>76.93</td><td>78.48</td><td>78.70</td></tr><tr><td>QNLI</td><td>86.54</td><td>86.83</td><td>87.73</td></tr><tr><td>RTE</td><td>65.41</td><td>66.07</td><td>67.00</td></tr></table>",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
510,
|
| 1527 |
+
473,
|
| 1528 |
+
882,
|
| 1529 |
+
629
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 10
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "table",
|
| 1535 |
+
"img_path": "images/1d637de4446bbd3a0079a8f60f29db649c8bfc664b2c657cdd4f720ffe0ac079.jpg",
|
| 1536 |
+
"table_caption": [
|
| 1537 |
+
"Table 5: Ablation study for the BERT model."
|
| 1538 |
+
],
|
| 1539 |
+
"table_footnote": [],
|
| 1540 |
+
"table_body": "<table><tr><td>Tasks</td><td>dim=8</td><td>dim=16</td><td>dim=32</td></tr><tr><td>CoLA</td><td>58.04</td><td>60.27</td><td>61.07</td></tr><tr><td>MRPC</td><td>75.59</td><td>78.20</td><td>87.21</td></tr><tr><td>SST-2</td><td>91.93</td><td>92.34</td><td>92.43</td></tr><tr><td>STS-B</td><td>84.10</td><td>88.10</td><td>89.43</td></tr><tr><td>QQP</td><td>87.58</td><td>89.25</td><td>90.18</td></tr><tr><td>MNLI</td><td>79.96</td><td>81.77</td><td>82.32</td></tr><tr><td>QNLI</td><td>89.35</td><td>89.14</td><td>90.57</td></tr><tr><td>RTE</td><td>74.30</td><td>78.56</td><td>78.77</td></tr></table>",
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
510,
|
| 1543 |
+
678,
|
| 1544 |
+
880,
|
| 1545 |
+
834
|
| 1546 |
+
],
|
| 1547 |
+
"page_idx": 10
|
| 1548 |
+
},
|
| 1549 |
+
{
|
| 1550 |
+
"type": "text",
|
| 1551 |
+
"text": "Table 6: Ablation study for the RoBERTa model.",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
527,
|
| 1554 |
+
844,
|
| 1555 |
+
860,
|
| 1556 |
+
859
|
| 1557 |
+
],
|
| 1558 |
+
"page_idx": 10
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"type": "page_footnote",
|
| 1562 |
+
"text": "$^{2}$ https://github.com/huggingface/ transformers/tree/main/examples/pytorch/text-classification",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
507,
|
| 1565 |
+
879,
|
| 1566 |
+
875,
|
| 1567 |
+
917
|
| 1568 |
+
],
|
| 1569 |
+
"page_idx": 10
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"type": "page_number",
|
| 1573 |
+
"text": "1711",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
480,
|
| 1576 |
+
927,
|
| 1577 |
+
519,
|
| 1578 |
+
940
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 10
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "text",
|
| 1584 |
+
"text": "A For every submission:",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
115,
|
| 1587 |
+
107,
|
| 1588 |
+
322,
|
| 1589 |
+
122
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 11
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "list",
|
| 1595 |
+
"sub_type": "text",
|
| 1596 |
+
"list_items": [
|
| 1597 |
+
"A1. Did you describe the limitations of your work? Section Limitations.",
|
| 1598 |
+
"A2. Did you discuss any potential risks of your work? Section Limitations.",
|
| 1599 |
+
"A3. Do the abstract and introduction summarize the paper's main claims? Abstract, Section 1.",
|
| 1600 |
+
"A4. Have you used AI writing assistants when working on this paper? Left blank."
|
| 1601 |
+
],
|
| 1602 |
+
"bbox": [
|
| 1603 |
+
129,
|
| 1604 |
+
126,
|
| 1605 |
+
695,
|
| 1606 |
+
287
|
| 1607 |
+
],
|
| 1608 |
+
"page_idx": 11
|
| 1609 |
+
},
|
| 1610 |
+
{
|
| 1611 |
+
"type": "text",
|
| 1612 |
+
"text": "B Did you use or create scientific artifacts?",
|
| 1613 |
+
"bbox": [
|
| 1614 |
+
114,
|
| 1615 |
+
299,
|
| 1616 |
+
487,
|
| 1617 |
+
316
|
| 1618 |
+
],
|
| 1619 |
+
"page_idx": 11
|
| 1620 |
+
},
|
| 1621 |
+
{
|
| 1622 |
+
"type": "text",
|
| 1623 |
+
"text": "Section 4.",
|
| 1624 |
+
"bbox": [
|
| 1625 |
+
132,
|
| 1626 |
+
321,
|
| 1627 |
+
208,
|
| 1628 |
+
335
|
| 1629 |
+
],
|
| 1630 |
+
"page_idx": 11
|
| 1631 |
+
},
|
| 1632 |
+
{
|
| 1633 |
+
"type": "list",
|
| 1634 |
+
"sub_type": "text",
|
| 1635 |
+
"list_items": [
|
| 1636 |
+
"B1. Did you cite the creators of artifacts you used? Section 4.",
|
| 1637 |
+
"B2. Did you discuss the license or terms for use and / or distribution of any artifacts? We use open-source artifacts which can be used for academic research purposes.",
|
| 1638 |
+
"B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)? We use the artifacts in compliance with their licenses.",
|
| 1639 |
+
"B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it? We use the open-source GLUE dataset which does not contain sensitive information.",
|
| 1640 |
+
"B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.? Not applicable. Left blank.",
|
| 1641 |
+
"B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be. Section 4."
|
| 1642 |
+
],
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
129,
|
| 1645 |
+
346,
|
| 1646 |
+
880,
|
| 1647 |
+
752
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 11
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "C Did you run computational experiments?",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
114,
|
| 1656 |
+
764,
|
| 1657 |
+
492,
|
| 1658 |
+
781
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 11
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "text",
|
| 1664 |
+
"text": "Section 4.",
|
| 1665 |
+
"bbox": [
|
| 1666 |
+
132,
|
| 1667 |
+
785,
|
| 1668 |
+
208,
|
| 1669 |
+
800
|
| 1670 |
+
],
|
| 1671 |
+
"page_idx": 11
|
| 1672 |
+
},
|
| 1673 |
+
{
|
| 1674 |
+
"type": "text",
|
| 1675 |
+
"text": "C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used? Appendix.",
|
| 1676 |
+
"bbox": [
|
| 1677 |
+
129,
|
| 1678 |
+
812,
|
| 1679 |
+
880,
|
| 1680 |
+
860
|
| 1681 |
+
],
|
| 1682 |
+
"page_idx": 11
|
| 1683 |
+
},
|
| 1684 |
+
{
|
| 1685 |
+
"type": "header",
|
| 1686 |
+
"text": "ACL 2023 Responsible NLP Checklist",
|
| 1687 |
+
"bbox": [
|
| 1688 |
+
132,
|
| 1689 |
+
84,
|
| 1690 |
+
433,
|
| 1691 |
+
99
|
| 1692 |
+
],
|
| 1693 |
+
"page_idx": 11
|
| 1694 |
+
},
|
| 1695 |
+
{
|
| 1696 |
+
"type": "page_footnote",
|
| 1697 |
+
"text": "The Responsible NLP Checklist used at ACL 2023 is adopted from NAACL 2022, with the addition of a question on AI writing assistance.",
|
| 1698 |
+
"bbox": [
|
| 1699 |
+
112,
|
| 1700 |
+
868,
|
| 1701 |
+
877,
|
| 1702 |
+
892
|
| 1703 |
+
],
|
| 1704 |
+
"page_idx": 11
|
| 1705 |
+
},
|
| 1706 |
+
{
|
| 1707 |
+
"type": "page_number",
|
| 1708 |
+
"text": "1712",
|
| 1709 |
+
"bbox": [
|
| 1710 |
+
480,
|
| 1711 |
+
927,
|
| 1712 |
+
519,
|
| 1713 |
+
940
|
| 1714 |
+
],
|
| 1715 |
+
"page_idx": 11
|
| 1716 |
+
},
|
| 1717 |
+
{
|
| 1718 |
+
"type": "list",
|
| 1719 |
+
"sub_type": "text",
|
| 1720 |
+
"list_items": [
|
| 1721 |
+
"C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values? No response.",
|
| 1722 |
+
"C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run? Section 4",
|
| 1723 |
+
"C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)? Section 4"
|
| 1724 |
+
],
|
| 1725 |
+
"bbox": [
|
| 1726 |
+
127,
|
| 1727 |
+
84,
|
| 1728 |
+
882,
|
| 1729 |
+
281
|
| 1730 |
+
],
|
| 1731 |
+
"page_idx": 12
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"type": "text",
|
| 1735 |
+
"text": "D Did you use human annotators (e.g., crowdworkers) or research with human participants? Left blank.",
|
| 1736 |
+
"bbox": [
|
| 1737 |
+
112,
|
| 1738 |
+
293,
|
| 1739 |
+
877,
|
| 1740 |
+
330
|
| 1741 |
+
],
|
| 1742 |
+
"page_idx": 12
|
| 1743 |
+
},
|
| 1744 |
+
{
|
| 1745 |
+
"type": "list",
|
| 1746 |
+
"sub_type": "text",
|
| 1747 |
+
"list_items": [
|
| 1748 |
+
"D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.? Not applicable. Left blank.",
|
| 1749 |
+
"D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)? Not applicable. Left blank.",
|
| 1750 |
+
"D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used? Not applicable. Left blank.",
|
| 1751 |
+
"D4. Was the data collection protocol approved (or determined exempt) by an ethics review board? Not applicable. Left blank.",
|
| 1752 |
+
"D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data? Not applicable. Left blank."
|
| 1753 |
+
],
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
127,
|
| 1756 |
+
340,
|
| 1757 |
+
882,
|
| 1758 |
+
640
|
| 1759 |
+
],
|
| 1760 |
+
"page_idx": 12
|
| 1761 |
+
},
|
| 1762 |
+
{
|
| 1763 |
+
"type": "page_number",
|
| 1764 |
+
"text": "1713",
|
| 1765 |
+
"bbox": [
|
| 1766 |
+
482,
|
| 1767 |
+
928,
|
| 1768 |
+
519,
|
| 1769 |
+
940
|
| 1770 |
+
],
|
| 1771 |
+
"page_idx": 12
|
| 1772 |
+
}
|
| 1773 |
+
]
|
2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/02cdb8da-2abe-4d81-a26c-6d3cb079eafb_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/02cdb8da-2abe-4d81-a26c-6d3cb079eafb_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3408370cbb52f1a2599661876860f978713af23d08930b216a311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|
| 3 |
+
Zhong Zhang $^{1,2}$ , Bang Liu $^{3,*,\dagger}$ , Junming Shao $^{1,2,\dagger}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>University of Electronic Science and Technology of China, Chengdu, China
|
| 6 |
+
|
| 7 |
+
$^{2}$ Shenzhen Institute for Advanced Study, UESTC, Shenzhen, China
|
| 8 |
+
|
| 9 |
+
<sup>3</sup>Mila & Université de Montréal, Montréal, Canada
|
| 10 |
+
|
| 11 |
+
zhongzhang@std.uestc.edu.cn,
|
| 12 |
+
|
| 13 |
+
bang.liu@umontreal.ca,
|
| 14 |
+
|
| 15 |
+
junmshao@uestc.edu.cn
|
| 16 |
+
|
| 17 |
+
# Abstract
|
| 18 |
+
|
| 19 |
+
Pre-trained language models (PLMs) are known to be overly parameterized and have significant redundancy, indicating a small degree of freedom of the PLMs. Motivated by the observation, in this paper, we study the problem of re-parameterizing and fine-tuning PLMs from a new perspective: Discovery of intrinsic task-specific subspace. Specifically, by exploiting the dynamics of the fine-tuning process for a given task, the parameter optimization trajectory is learned to uncover its intrinsic task-specific subspace. A key finding is that PLMs can be effectively fine-tuned in the subspace with a small number of free parameters. Beyond, we observe some outlier dimensions emerging during fine-tuning in the subspace. Disabling these dimensions degrades the model performance significantly. This suggests that these dimensions are crucial to induce task-specific knowledge to downstream tasks.
|
| 20 |
+
|
| 21 |
+
# 1 Introduction
|
| 22 |
+
|
| 23 |
+
Pre-trained Language Models (PLMs) have become the de facto methods for various natural language processing (NLP) tasks (Devlin et al., 2019; Radford et al., 2019; Liu et al., 2019). The typical paradigm is to pre-train a big language model on large-scale corpora and then fine-tune the model on small task-specific datasets to adapt to the downstream tasks. Despite the great success of this paradigm, two questions still come to our mind: (1) Why can a PLM with hundreds of millions of parameters be successfully fine-tuned on different downstream tasks using only hundreds or thousands of labeled samples? (2) Do we really need a full fine-tuning of all parameters of a PLM to reach state-of-the-art performance on downstream tasks? In this paper, we try to provide a new viewpoint on the two questions, and
|
| 24 |
+
|
| 25 |
+
claim that: Fine-tuning happens only in some tiny task-specific subspaces, which can be effectively learned with a small number of free parameters.
|
| 26 |
+
|
| 27 |
+
Recent studies have shown that PLMs are highly over-parameterized and robust to pruning (Frankle and Carbin, 2019; Chen et al., 2020; Prasanna et al., 2020; Gordon et al., 2020; Liang et al., 2021, 2022), and can be fine-tuned in parameter-efficient ways (Gong et al., 2022; Zaken et al., 2022; Mahabadi et al., 2021; Li and Liang, 2021). This emerging empirical evidence tends to point to one fact that there exist some intrinsic structures in PLMs that are responsible for inducing task-specific knowledge to downstream tasks. Notably, the recent work (Aghajanyan et al., 2021) provides a promising conclusion that PLMs can be re-parameterized and fine-tuned in random low-dimensional subspaces using random projection, and the dimensionality of the random subspace is orders of magnitude smaller than the dimensionality of the full parameter space. Their findings implicitly suggest the existence of such intrinsic structure in the PLMs, which is, however, understudied. To bridge this gap, we explicitly demonstrate that there exist task-specific low-dimensional subspaces in which PLMs can be effectively fine-tuned.
|
| 28 |
+
|
| 29 |
+
Inspired by the low dimensional landscape hypothesis (Li et al., 2022a) that a training trajectory of a neural network lies in a low-dimensional subspace, in this work, we thus resort to the fine-tuning trajectory to study the intrinsic task-specific subspaces of PLMs. We show that it is possible to uncover the intrinsic task-specific subspaces with a fine-tuning trajectory by finding its principal directions. The uncovered intrinsic task-specific subspaces usually have very low dimensionalities, but are quite effective in inducing task-specific knowledge. For example, by re-parameterizing the encoder and optimizing only 32 free parameters per
|
| 30 |
+
|
| 31 |
+
layer in the intrinsic task-specific subspace, the model allows achieving nearly the same performance as fine-tuning in the full parameter space. Moreover, we further show that the uncovered intrinsic task-specific subspaces have a certain transferability.
|
| 32 |
+
|
| 33 |
+
Beyond this, we find that the model contains some outlier dimensions with abnormal spikes when fine-tuning in the intrinsic task-specific subspaces instead of a random subspace. Disabling these outlier dimensions degrades the model performance significantly. We believe that this phenomenon is related to the previously discovered outlier dimensions of PLMs (Luo et al., 2021; Kovaleva et al., 2021; Puccetti et al., 2022). However, there are essential differences between them, which we will discuss in the latter section.
|
| 34 |
+
|
| 35 |
+
By exploring the intrinsic task-specific subspaces of PLMs, the main contributions of this paper are summarized as follows.
|
| 36 |
+
|
| 37 |
+
1. We interpret the ease of adapting PLMs to downstream tasks as fine-tuning happens in tiny intrinsic task-specific subspaces. Within this interpretation, we propose a method to uncover the subspaces by finding the principal directions of the fine-tuning trajectory.
|
| 38 |
+
2. We conduct extensive experiments on the GLUE benchmark using BERT and RoBERTa models to support our claims. We show that the models can be effectively fine-tuned with a very small number of parameters in the uncovered intrinsic task-specific subspaces.
|
| 39 |
+
3. We identify some outlier dimensions when fine-tuning in the intrinsic task-specific subspaces, and some empirical analysis is further given.
|
| 40 |
+
|
| 41 |
+
# 2 Related Work
|
| 42 |
+
|
| 43 |
+
Intrinsic Dimensionality. Li et al. (2018) first defined the intrinsic dimension of an objective function in the context of deep learning. They showed that various neural networks can be effectively re-parameterized and trained in random low-dimensional subspaces. Their findings shed light on understanding the high-dimensional landscape of complex neural networks. Following this, Aghajanyan et al. (2021) further measured the intrinsic dimensions of PLMs fine-tuning on downstream tasks. They showed that PLMs have very
|
| 44 |
+
|
| 45 |
+
low intrinsic dimensions ranging from hundreds to thousands. Qin et al. (2021) exploited the idea of intrinsic subspace and proposed a prompt tuning method for efficient training. In addition, the concept of intrinsic dimension is also related to the low-rank approximation of PLMs (Hu et al., 2022; Mahabadi et al., 2021; Chen et al., 2021), but their motivations are entirely different. The former aims to open the black box of models and explore the internal mechanisms of why they are effective, while the latter focuses on developing new methods to train the models efficiently.
|
| 46 |
+
|
| 47 |
+
The random projection has a long history in machine learning research community, and is a key tool to analyze the intrinsic dimension (Li et al., 2018; Aghajanyan et al., 2021). In the context of optimization, Gressmann et al. (2020) proposed a random bases descent algorithm to train neural networks in low-dimensional subspaces. However, the random projection inevitably introduces task-irrelevant information, and is not optimal for subspace learning. We believe that a more compact and task-specific subspace can be found in the model, which is the main motivation of this work. Gur-Ari et al. (2018) empirically found that gradient descent of neural networks happens in a tiny subspace, Li et al. (2022a) further developed a subspace learning algorithm DLDR that dynamically extracts the subspace from the optimization trajectory. Li et al. (2022b) leveraged the DLDR algorithm for adversarial training. However, to the best of our knowledge, there is no research on the discovery of non-random intrinsic task-specific subspace of PLMs.
|
| 48 |
+
|
| 49 |
+
Outlier Dimensions in Pre-trained Language Models. Multiple studies have identified outlier dimensions in PLMs. Some works were motivated by calibrating the anisotropy behavior of hidden representation of PLMs (Timkey and van Schijndel, 2021; Ding et al., 2022; Luo et al., 2021; Su et al., 2021; Zhang et al., 2020). Another line of work identified certain outlier dimensions in PLMs that are very sensitive to the finetuning of downstream tasks (Kovaleva et al., 2021; Puccetti et al., 2022). Disabling these outlier dimensions degrades the model performance significantly. Luo et al. (2021) showed that the outlier dimensions are artefacts derived from positional embeddings and layer normalization. Puccetti et al. (2022) identified a correlation between outlier di
|
| 50 |
+
|
| 51 |
+
mensions and token frequency. It is worth noting that our findings differ largely from previous works in three ways: 1) The outlier dimensions in their context actually refer to output neurons. In our context, an outlier dimension refers to a specific model parameter. In other words, they consider abnormal outputs, while we consider abnormal weights. 2) The ways of identifying outlier dimensions are different. They identify outlier dimensions by examining abnormal outputs, while we find outlier dimensions by examining abnormal updates to weights. 3) The effects of disabling outlier dimensions are different. They show that disabling just one outlier neuron can result in a significant drop in performance. In contrast, disabling the top outlier weight has almost no effect on the model performance. However, the model performance will drop significantly if we disable more outlier weights. The reason for the emergence of these outlier dimensions remains unclear, and we aim to conduct further in-depth analysis in future work.
|
| 52 |
+
|
| 53 |
+
# 3 Intrinsic Task-specific Subspaces Discovery in PLMs
|
| 54 |
+
|
| 55 |
+
# 3.1 Preliminary: Intrinsic Dimensionality
|
| 56 |
+
|
| 57 |
+
The intrinsic dimension of an objective landscape is first defined by Li et al. (2018), which is the number of independent optimization variables with regard to minimizing the objective function. However, finding the exact intrinsic dimension is computationally intractable for complex objective functions like deep neural networks. Therefore, a random subspace training method is usually employed to estimate the intrinsic dimension (Li et al., 2018; Aghajanyan et al., 2021).
|
| 58 |
+
|
| 59 |
+
Formally, let $\pmb{\theta}^{D} \in \mathbb{R}^{D}$ be a parameter vector that parameterizes a model $f(\pmb{x};\pmb{\theta})$ . Take the BERT-base model as an example, $\pmb{\theta}^{D}$ represents all BERT's parameters that are flattened into a 110M-dimensional vector. $\pmb{\theta}_{0}^{D} \in \mathbb{R}^{D}$ denotes the initial parameterization, $\pmb{P} \in \mathbb{R}^{D \times d}$ denotes a random projection matrix whose columns form an orthonormal basis for a randomly oriented $d$ -dimensional subspace of $\mathbb{R}^{D}$ , $\pmb{\theta}^{d} \in \mathbb{R}^{d}$ denotes a parameter vector in a lower $d$ -dimensional space. The model is fine-tuned in the lower $d$ -dimensional subspace via the following reparameterization method:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\boldsymbol {\theta} ^ {D} = \boldsymbol {\theta} _ {0} ^ {D} + \boldsymbol {P} \boldsymbol {\theta} ^ {d}. \tag {1}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
Figure 1: An illustrative example of optimizing a model in the 3-dimensional space, while the optimization trajectory only lies in a 2-dimensional subspace. We call the subspace the intrinsic subspace for the model.
|
| 67 |
+
|
| 68 |
+
Note that $\theta_0^D$ and $P$ are frozen during the training process, and only $\theta^d$ is trained by the gradient descent. In practice, the re-parameterization can be done in a layer-wise manner to save computational resources (Aghajanyan et al., 2021), and we also follow the layer-wise setting for our analysis.
|
| 69 |
+
|
| 70 |
+
The intrinsic dimension of a PLM is estimated by grid searching the minimal $d$ that makes the model reach $90\%$ of the full fine-tuning performance. Take the BERT-base model as an example, the intrinsic dimension for fine-tuning on the MRPC dataset is only 1861 (Aghajanyan et al., 2021), which is surprisingly small considering the original model has up to 110 million parameters.
|
| 71 |
+
|
| 72 |
+
# 3.2 Finding Intrinsic Task-specific Subspaces
|
| 73 |
+
|
| 74 |
+
Gur-Ari et al. (2018) showed strong empirical evidence that the gradient dynamically converges to a very small subspace in various large-scale deep-learning scenarios. The subspace is spanned by a few top eigenvectors of the Hessian, and the dimension is equal to the number of data classes. This also indicates that the training trajectory of neural networks lies in a low-dimensional subspace, which is in line with the conclusion of Li et al. (2022a). Considering an illustrative example in Fig. 1, the full parameter space contains three dimensions, but the training trajectory $\{\pmb{\theta}_i^D\}_{i = 0,\dots ,t}$ only lies in a 2-dimensional subspace $S$ spanned by $e_1$ and $e_2$ . We call this subspace the intrinsic subspace because it has a minimal degree of freedom (Li et al., 2018) for the objective function to reach the optimum. The aforementioned random subspace can be seen as a naive estimation of $S$ .
|
| 75 |
+
|
| 76 |
+
We hypothesize that an intrinsic task-specific subspace exists for each downstream task when fine-tuning a PLM. Generally, it is intractable to search such an intrinsic task-specific subspace directly. However, if our hypothesis is true, the finetuning trajectory will lie in a low-dimensional subspace. Thus we can resort to the fine-tuning trajectory to obtain an approximation of the intrinsic task-specific subspace. Specifically, given a finetuning trajectory $\{\pmb{\theta}_i^D\}_{i=0,\dots,t}$ of a PLM on a downstream task, we stack it into a matrix $\mathbf{W} \in \mathbb{R}^{t \times D}$ , and apply Singular Value Decomposition (SVD) on it.
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
\boldsymbol {W} = \boldsymbol {U} \boldsymbol {\Sigma} \boldsymbol {V} ^ {T}, \tag {2}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
where $\pmb{\Sigma} \in \mathbb{R}^{t \times t}$ is the singular value matrix, $U \in \mathbb{R}^{t \times t}$ and $V \in \mathbb{R}^{D \times t}$ are two real orthogonal matrices whose columns are left and right singular vectors, respectively<sup>1</sup>. It is worth noting that the columns of $V$ are actually the principal directions of the given trajectory if zero empirical means of columns, and these directions constitute an orthonormal basis of the subspace in which the trajectory lies. Theoretically, a $(t-1)$ -dimensional subspace needs only $t$ independent points to determine. We can regard this subspace as an approximation of the intrinsic task-specific subspace whose dimension is equal to the number of points in the trajectory. Thus, we can replace the random projection matrix $P$ in Eq. (1) with $V$ to re-parameterize the model.
|
| 83 |
+
|
| 84 |
+
# 3.3 Fine-tuning in Intrinsic Task-specific Subspaces
|
| 85 |
+
|
| 86 |
+
Given an approximated intrinsic task-specific subspace $V$ , we reformulate Eq. (1) by letting the model train in the subspace as follows.
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\boldsymbol {\theta} ^ {D} = \boldsymbol {\theta} _ {0} ^ {D} + \boldsymbol {V} \boldsymbol {\theta} ^ {t}. \tag {3}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
In our early exploration, we can achieve good performance close to full fine-tuning by Eq. (3). However, the performance is not stable, and sensitive to the initialization of $\pmb{\theta}^{t}$ . To solve this problem, we propose an ensemble-like method that combines multiple $\pmb{\theta}^{t}$ of different initialization to reduce variance, which is as follows.
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\boldsymbol {\theta} ^ {D} = \boldsymbol {\theta} _ {0} ^ {D} + \boldsymbol {V} \sum_ {i = 1} ^ {h} \frac {1}{h} \boldsymbol {\theta} ^ {t (i)}, \tag {4}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $h$ is the number of vectors to combine, and we set it as 16 in this paper. Note that although the ensemble increases the number of parameters to optimize, it does not change the intrinsic dimensionality of the subspace (i.e., the degree of freedom).
|
| 99 |
+
|
| 100 |
+
In the following experimental evaluation, we will investigate subspace fine-tuning in both transductive and inductive settings to verify our hypotheses. The former is to verify the existence of intrinsic task-specific subspaces when fine-tuning PLMs on the downstream tasks, and the effectiveness of our method to uncover the subspaces. The latter further examines how well the intrinsic task-specific subspaces can be transferred to other similar tasks.
|
| 101 |
+
|
| 102 |
+
# 4 Experiment and Analysis
|
| 103 |
+
|
| 104 |
+
# 4.1 Experimental Settings
|
| 105 |
+
|
| 106 |
+
Datasets and models. We evaluate the performance of the methods on the commonly used GLUE benchmark (Wang et al., 2018; Warstadt et al., 2019; Socher et al., 2013; Dolan and Brockett, 2005; Cer et al., 2017; Williams et al., 2018; Rajpurkar et al., 2016). For evaluation metrics, we report the matched accuracy for MNLI, Matthews correlation for CoLA, Pearson correlation for STS-B, and accuracy for other tasks. We choose the publicly available pre-trained language models RoBERTa-base (Liu et al., 2019) and BERT-base-cased (Devlin et al., 2019) for analysis. All experimental results are averaged over 5 runs of different seeds.
|
| 107 |
+
|
| 108 |
+
Implementation details. Our implementation is based on HuggingFace's Transformers toolkit (Wolf et al., 2020). We first need to produce a set of fine-tuning trajectories of GLUE tasks for calculating projection matrices. We use the default script in the toolkit for fine-tuning, and save a checkpoint every epoch to obtain optimization trajectories. We set the trajectory length to 32 except for the MNLI dataset, which is set to 64 since it is the largest dataset and needs more parameters to fit. We flatten all parameters in an encoder layer into a wide vector, and then stack all vectors of different checkpoints into a matrix to perform SVD. We compute independent projection matrices for all layers, resulting in 12 projection matrices. For transductive subspace fine-tuning, the projection matrix is calculated from the same task,
|
| 109 |
+
|
| 110 |
+
<table><tr><td></td><td>CoLA</td><td>MRPC</td><td>SST-2</td><td>STS-B</td><td>QQP</td><td>MNLI</td><td>QNLI</td><td>RTE</td><td>Avg.</td></tr><tr><td>BERT-Full</td><td>59.37</td><td>84.46</td><td>91.95</td><td>89.08</td><td>91.07</td><td>83.39</td><td>90.77</td><td>66.93</td><td>82.13</td></tr><tr><td>BERT-Freeze</td><td>27.52</td><td>69.66</td><td>88.81</td><td>78.35</td><td>84.48</td><td>71.55</td><td>81.61</td><td>56.46</td><td>69.81</td></tr><tr><td>BERT-Random</td><td>37.89</td><td>70.78</td><td>89.47</td><td>81.41</td><td>85.86</td><td>72.91</td><td>83.38</td><td>58.63</td><td>72.54</td></tr><tr><td>BERT-Intrinsic</td><td>60.27</td><td>84.31</td><td>89.93</td><td>89.51</td><td>89.73</td><td>81.21</td><td>87.73</td><td>67.00</td><td>81.21</td></tr><tr><td>RoBERTa-Full</td><td>61.04</td><td>89.31</td><td>94.29</td><td>90.70</td><td>91.72</td><td>87.23</td><td>92.48</td><td>76.68</td><td>85.43</td></tr><tr><td>RoBERTa-Freeze</td><td>0.00</td><td>68.38</td><td>85.32</td><td>15.69</td><td>82.81</td><td>71.16</td><td>79.11</td><td>53.86</td><td>57.04</td></tr><tr><td>RoBERTa-Random</td><td>27.58</td><td>68.38</td><td>91.45</td><td>75.47</td><td>86.33</td><td>77.10</td><td>84.49</td><td>58.27</td><td>71.13</td></tr><tr><td>RoBERTa-Intrinsic</td><td>61.07</td><td>87.21</td><td>92.43</td><td>89.43</td><td>90.18</td><td>85.53</td><td>90.57</td><td>78.77</td><td>84.40</td></tr></table>
|
| 111 |
+
|
| 112 |
+
Table 1: Transductive intrinsic subspace fine-tuning on the GLUE benchmark. Full denotes fine-tuning in the full-parameter space. Freeze denotes fine-tuning with the encoder frozen. Random denotes fine-tuning in a random subspace. Intrinsic denotes fine-tuning in the intrinsic task-specific subspaces. The subspace dimension is set to 32 except MNLI is 64. The best results are marked in bold, and the second-best results are underlined.
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
Figure 2: Inductive intrinsic subspace fine-tuning on the GLUE benchmark. Columns are the target tasks to be fine-tuned, and rows are source tasks that provide the transferred subspaces. Numbers in cells are performance drop of fine-tuning target tasks with the subspaces provided by source tasks. The last column is the average of other columns. Note that the numbers cannot be compared across columns because they are in different metrics.
|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
|
| 119 |
+
while for inductive subspace fine-tuning, it is calculated from other tasks. We only re-parameterize the encoder layers into the subspaces and leave the embedding layer and the last classification layer in their original parameter space. We freeze the initial model $\theta_0^D$ and the projection matrix $V$ , and only tune the low-dimensional vector $\theta^t$ . We keep the learning rate of the embedding and classification layers unchanged and set the learning rate of $\theta^t$ to 0.01.
|
| 120 |
+
|
| 121 |
+
# 4.2 Transductive Intrinsic Subspace Fine-tuning
|
| 122 |
+
|
| 123 |
+
Table 1 summarizes the experimental results. We can see that freezing the encoder significantly degrades the model performance as it serves as a naive baseline (Note that it implies fine-tuning in
|
| 124 |
+
|
| 125 |
+
the null space, i.e., $V\theta^t = 0$ , which brings no information to update the model). For intrinsic subspace fine-tuning, we can clearly see that it shows comparable performance to the full fine-tuning across all GLUE tasks and models. In contrast, random projection only yields a marginal improvement over the baseline, and significantly underperforms intrinsic subspace fine-tuning.
|
| 126 |
+
|
| 127 |
+
From these empirical results, we first conclude that PLMs can be re-parameterized and fine-tuned in some low-dimensional subspaces. Secondly, there exist some subspaces in which the PLMs can most effectively adapt to downstream tasks, and we can uncover these subspaces by finding the principal directions of fine-tuning trajectories in the full parameter space. This conclusion in turn suggests that fine-tuning of PLMs happens in tiny
|
| 128 |
+
|
| 129 |
+
<table><tr><td></td><td>CoLA</td><td>MRPC</td><td>SST-2</td><td>STS-B</td><td>QQP</td><td>MNLI</td><td>QNLI</td><td>RTE</td><td>Avg.</td></tr><tr><td>BERT-Full</td><td>59.37</td><td>84.46</td><td>91.95</td><td>89.08</td><td>91.07</td><td>83.39</td><td>90.77</td><td>66.93</td><td>82.13</td></tr><tr><td>BERT-Random</td><td>32.49</td><td>70.15</td><td>88.65</td><td>79.29</td><td>84.84</td><td>71.75</td><td>82.29</td><td>57.11</td><td>70.82</td></tr><tr><td>BERT-Zeroshot</td><td>35.35</td><td>78.09</td><td>91.06</td><td>85.17</td><td>87.57</td><td>75.29</td><td>84.01</td><td>75.23</td><td>76.47</td></tr><tr><td>BERT-Unified</td><td>61.58</td><td>84.41</td><td>91.06</td><td>89.71</td><td>91.27</td><td>83.85</td><td>90.97</td><td>67.00</td><td>82.48</td></tr><tr><td>RoBERTa-Full</td><td>61.04</td><td>89.31</td><td>94.29</td><td>90.70</td><td>91.72</td><td>87.23</td><td>92.48</td><td>76.68</td><td>85.43</td></tr><tr><td>RoBERTa-Random</td><td>0.00</td><td>68.38</td><td>89.47</td><td>27.60</td><td>84.51</td><td>73.16</td><td>82.10</td><td>54.44</td><td>59.96</td></tr><tr><td>RoBERTa-Zeroshot</td><td>32.93</td><td>80.44</td><td>90.60</td><td>83.10</td><td>87.12</td><td>78.76</td><td>84.46</td><td>67.12</td><td>75.57</td></tr><tr><td>RoBERTa-Unified</td><td>63.80</td><td>89.12</td><td>93.55</td><td>90.88</td><td>91.85</td><td>87.20</td><td>92.36</td><td>77.91</td><td>85.83</td></tr></table>
|
| 130 |
+
|
| 131 |
+
Table 2: Intrinsic subspace fine-tuning in the unified task subspace. Random denotes fine-tuning in a random subspace (dim=8). Zereshot denotes fine-tuning in the unified task subspace with itself removed (dim=7). Unified denotes fine-tuning in the unified task subspace (dim=8).
|
| 132 |
+
|
| 133 |
+
subspaces, which provides an explanation of the ease of adapting PLMs to downstream tasks.
|
| 134 |
+
|
| 135 |
+
# 4.3 Inductive Intrinsic Subspace Fine-tuning
|
| 136 |
+
|
| 137 |
+
Next, we conduct inductive intrinsic subspace finetuning to examine the transferability of the discovered subspaces. We generally follow the same training protocol as in the last section, except that we replace the projection matrices with the ones calculated from other tasks.
|
| 138 |
+
|
| 139 |
+
We can observe the performance drop using transferred task subspaces in Fig. 2. Generally, we can see that even though the models are finetuned in transferred subspaces, they still outperform the random subspace baseline, which suggests the transferability of intrinsic task-specific subspaces.
|
| 140 |
+
|
| 141 |
+
The transferability of subspaces seems to correlate with the scale of the transferred task. For example, big datasets like SST-2, QQP, MNLI and QNLI underperform small datasets like CoLA, MRPC, STS-B, and RTE in providing subspaces. This is because the intrinsic task-specific subspaces of complex tasks have higher dimensions and need more parameters to estimate.
|
| 142 |
+
|
| 143 |
+
When comparing within one column, we can see significant difference between distinct subspaces used for fine-tuning one task. We assume similar tasks may have substantial subspace intersections and thus be easier to transfer. Still, this claim needs further analysis to confirm, we will leave it further study since transferability is not the main focus of this paper. In summary, we empirically show that the intrinsic task-specific subspace has a certain transferability.
|
| 144 |
+
|
| 145 |
+
# 4.4 Unified Intrinsic Task Subspace
|
| 146 |
+
|
| 147 |
+
Qin et al. (2021) showed that a unified low-dimensional intrinsic task subspace can be constructed by a multi-task prompt tuning method. In our case, we can also construct a unified subspace by stacking the fine-tuning trajectories of different tasks into a matrix, and applying SVD on it. Specifically, we sample one checkpoint for each task and gather them to calculate the unified subspace, which forms an 8-dimensional subspace. And we additionally calculate a zero-shot subspace of a task for comparison, which is calculated by excluding the checkpoint of this task. The results are given in Table 2. We can see that the models can be effectively fine-tuned in the unified subspace. For the zero-shot setting, the model performance decreases significantly, but still outperforms the random baseline.
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 3: The cosine similarities between the low-dimensional parameter vectors $\pmb{\theta}^t$ of different tasks in the unified intrinsic task subspace. Similarities are averaged over layers and ensembles.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
Figure 4: Visualization of product of $V\theta^t$ using the BERT model to fine-tune in the intrinsic task-specific subspace (top) and a random subspace (bottom) on the MRPC dataset. Outlier dimensions appear in the intrinsic subspace but not in a random subspace.
|
| 156 |
+
|
| 157 |
+
Next, we take the BERT model as an example and examine the low-dimensional parameter vector $\theta^t$ learned within the unified intrinsic subspace. We calculate the cosine similarities between the $\theta^t$ vectors corresponding to different tasks and present the results in Fig. 3. As shown in the figure, the cosine similarities between different tasks are significantly low, indicating that the unified intrinsic subspace contains disentangled knowledge distributed in different dimensions, and the low-dimensional parameter vector $\theta^t$ serves as an (unnormized) probability distribution to induce task-specific knowledge.
|
| 158 |
+
|
| 159 |
+
Based on these empirical findings, we conclude that a unified intrinsic task subspace is feasible and it contains disentangled knowledge. However, in-domain knowledge still plays a crucial role in forming the subspace as we can see that the zero-shot setting still has a large perform gap.
|
| 160 |
+
|
| 161 |
+
# 4.5 Outlier Dimensions
|
| 162 |
+
|
| 163 |
+
We find that PLMs have a small number of outlier dimensions exhibiting abnormal spikes when fine-tuning in the intrinsic task-specific subspaces.
|
| 164 |
+
|
| 165 |
+
We examine each dimension of the product of $V\theta^t$ and consider the dimension whose absolute value is greater than a threshold as outlier. Note that the product of $V\theta^t$ is the learned parameter update in the full parameter space and we re-parameterize the encoder of the PLM layer-wisely, thus it is a vector with the dimension equal to the number of all parameters of an encoder layer.
|
| 166 |
+
|
| 167 |
+
It is important to note that the outlier dimension in our context is different from the previous studies (Kovaleva et al., 2021; Luo et al., 2021; Puccetti et al., 2022). Previous studies use the outlier dimension to refer to the output channel (768 dimensions for BERT-base). In our context, we flatten all parameters of a layer into a vector (7,087,872 dimensions for BERT-base). Then an outlier dimension refers to a specific parameter weight in the layer. We use the BERT model and MRPC dataset for illustration, and visualize the product of $V\theta^{t}$ in Fig. 4 to show the outlier patterns. As we can see from the figure, when fine-tuning in the intrinsic task-specific subspace, the outlier patterns exist in all layers. In contrast, these outlier patterns disappear when fine-tuning in a random subspace.
|
| 168 |
+
|
| 169 |
+
<table><tr><td></td><td>CoLA</td><td>MRPC</td><td>SST-2</td><td>STS-B</td><td>QQP</td><td>MNLI</td><td>QNLI</td><td>RTE</td></tr><tr><td>BERT-Full</td><td>59.37</td><td>84.46</td><td>91.95</td><td>89.08</td><td>91.07</td><td>83.39</td><td>90.77</td><td>66.93</td></tr><tr><td>BERT-Random</td><td>57.27</td><td>84.46</td><td>91.79</td><td>88.66</td><td>90.66</td><td>83.68</td><td>90.41</td><td>64.48</td></tr><tr><td>BERT-Outlier</td><td>0.00</td><td>68.38</td><td>50.92</td><td>0.00</td><td>63.18</td><td>33.64</td><td>49.89</td><td>52.71</td></tr><tr><td>RoBERTa-Full</td><td>61.04</td><td>89.31</td><td>94.29</td><td>90.70</td><td>91.72</td><td>87.23</td><td>92.48</td><td>76.68</td></tr><tr><td>RoBERTa-Random</td><td>58.80</td><td>87.65</td><td>93.95</td><td>89.52</td><td>91.29</td><td>87.76</td><td>92.61</td><td>68.88</td></tr><tr><td>RoBERTa-Outlier</td><td>0.00</td><td>70.49</td><td>50.92</td><td>28.05</td><td>63.67</td><td>36.15</td><td>49.89</td><td>52.71</td></tr></table>
|
| 170 |
+
|
| 171 |
+
Table 3: Evaluation on the GLUE benchmark when the outlier dimensions are zeroed. The results with the most performance loss are marked in bold.
|
| 172 |
+
|
| 173 |
+
<table><tr><td>Model component</td><td>Layer</td><td># of outliers each layer</td></tr><tr><td>attention.self.query.weight</td><td>1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12</td><td>3, 1, 1, 1, 4, 4, 8, 3, 3, 2, 4</td></tr><tr><td>attention.self.query.bias</td><td>1</td><td>1</td></tr><tr><td>attention.self.key.bias</td><td>10, 11</td><td>2, 1</td></tr><tr><td>attention.output LayerNorm.weight</td><td>1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12</td><td>1, 2, 3, 5, 4, 1, 2, 4, 1, 3, 2</td></tr><tr><td>attention.output LayerNorm.bias</td><td>1, 2, 3</td><td>1, 1, 1</td></tr><tr><td>intermediate.dense.weight</td><td>1, 12</td><td>2, 1</td></tr><tr><td>output.dense.weight</td><td>1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11</td><td>2, 6, 5, 4, 2, 4, 3, 2, 3, 4, 4</td></tr><tr><td>output LayerNorm.weight</td><td>5, 6, 7, 12</td><td>4, 1, 1, 3</td></tr></table>
|
| 174 |
+
|
| 175 |
+
Table 4: Sampled outlier dimensions in the BERT model. The left column shows the model component containing outlier dimensions. The middle column shows the layer where the model component contains outlier dimensions. The right column shows the number of outlier dimensions in the corresponding layer.
|
| 176 |
+
|
| 177 |
+
This phenomenon is universal for different models and different datasets.
|
| 178 |
+
|
| 179 |
+
To investigate the effect of the outlier dimensions on the models, we disable them by setting them to zero and examine how this affects model performance. We first disable the top outlier dimension of each encoder layer and fine-tune the model in the full parameter space, which has almost no impact on model performance. This result is not surprising because disabling only one weight in a layer definitely has a negligible effect on the output than disabling an output channel as the previous studies do. We continue to disable more outlier dimensions, and these deviating at least $3\sigma$ from the mean are disabled. Approximately $0.3\%$ of encoder parameters are disabled. We also randomly sample and disable the same number of dimensions for comparison, and the results are shown in Table 3. We can see that disabling outlier dimensions degrades the model performance significantly while disabling random dimensions does not.
|
| 180 |
+
|
| 181 |
+
Next, we qualitatively examine the positions in which the outlier dimensions emerge. We sample each layer's top 10 outlier dimensions and record their positions in Table 4. We can see
|
| 182 |
+
|
| 183 |
+
that the outlier dimensions are ubiquitous in various model components. Then, we identify one outlier dimension $O1$ that consistently produces high-magnitude weights in almost all BERT layers. Furthermore, we find that there is a considerable overlap in the outlier dimensions of each layer, which suggests that these dimensions can propagate through layers.
|
| 184 |
+
|
| 185 |
+
Why do outlier dimensions emerge? Previous studies came up with several explanations like high-magnitude scaling factors (Kovaleva et al., 2021), LayerNorm and residual connection (Luo et al., 2021), and unbalanced token frequency (Puccetti et al., 2022). However, these explanations cannot apply to our case because the definitions of the outlier dimension are different. Recall that our approach to identifying outlier dimensions is actually examining re-parameterized parameter updates given the intrinsic task-specific subspace. The magnitude of the updates represents the importance of corresponding parameters with respect to solving the task. We have reason to believe that these dimensions play an important role in constituting the intrinsic subspace and are crucial to induce task-specific knowledge to adapt to downstream tasks.
|
| 186 |
+
|
| 187 |
+
# 5 Conclusion
|
| 188 |
+
|
| 189 |
+
In this paper, we claim that the fine-tuning of PLMs happens in tiny subspaces. To uncover such intrinsic task-specific subspaces, we exploit the fine-tuning trajectory to find its main direction. Our empirical experiments show that PLMs can effectively adapt to downstream tasks when re-parameterizing and training in the found subspaces, which well explains the ease of adapting PLMs to downstream tasks. Furthermore, we find outlier dimensions in PLMs during the subspace training. We consider that these dimensions are crucial to induce task-specific knowledge to downstream tasks. Still, we need further in-depth analysis to understand the reasons and impact of the emergence of outlier patterns.
|
| 190 |
+
|
| 191 |
+
# Limitations
|
| 192 |
+
|
| 193 |
+
Despite the insights obtained through our analysis, certain limitations persist, which we outline in this section.
|
| 194 |
+
|
| 195 |
+
With respect to the re-parameterization of parameters as presented in Eq. (3), we adopted the layer-wise setting as proposed by Aghajanyan et al. (2021) in order to alleviate memory and computational burdens. Nonetheless, such a setting restricts us to only identifying local subspaces, rather than discovering global subspaces within the entire parameter space of a pre-trained language model. The existence of a task-specific global subspace is yet to be ascertained. If such a subspace does exist, the correlation between this global subspace and the identified local subspaces needs to be explored in future research.
|
| 196 |
+
|
| 197 |
+
In terms of experimental settings, the evaluation tasks are limited to natural language understanding tasks, with a lack of natural language generation tasks. On model architecture, decoder-only (e.g., GPT) and encoder-decoder (e.g., T5) models are not included. On model scale, we use basic-size models rather than large ones due to limited computational resources. Consequently, the conclusions drawn in this study may not be applicable to the above situations.
|
| 198 |
+
|
| 199 |
+
The analysis presented in Section 4.5 demonstrates that pre-trained language models exhibit a small number of outlier dimensions when finetuning in the intrinsic task-specific subspaces. Although we have observed a significant decline in model performance when disabling these dimensions, the underlying mechanism responsible for
|
| 200 |
+
|
| 201 |
+
the emergence of these outlier dimensions remains unclear.
|
| 202 |
+
|
| 203 |
+
# Acknowledgments
|
| 204 |
+
|
| 205 |
+
This work is supported by the Sichuan key research program (22ZDYF3388), Fundamental Research Funds for the Central Universities (ZYGX2019Z014), National Natural Science Foundation of China (61976044, 52079026), Fok YingTong Education Foundation for Young Teachers in the Higher Education Institutions of China (161062), the Canada CIFAR AI Chair Program, and the Canada NSERC Discovery Grant (RGPIN-2021-03115).
|
| 206 |
+
|
| 207 |
+
# References
|
| 208 |
+
|
| 209 |
+
Armen Aghajanyan, Sonal Gupta, and Luke Zettlemoyer. 2021. Intrinsic dimensionality explains the effectiveness of language model fine-tuning. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 7319-7328.
|
| 210 |
+
Daniel Cer, Mona Diab, Eneko Agirre, Inigo Lopez-Gazpio, and Lucia Specia. 2017. SemEval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In Proceedings of the 11th International Workshop on Semantic Evaluation, pages 1-14.
|
| 211 |
+
Patrick H. Chen, Hsiang-Fu Yu, Inderjit S. Dhillon, and Cho-Jui Hsieh. 2021. DRONE: data-aware low-rank compression for large NLP models. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pages 29321-29334.
|
| 212 |
+
Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Zhangyang Wang, and Michael Carbin. 2020. The lottery ticket hypothesis for pretrained BERT networks. In Advances in Neural Information Processing Systems 33.
|
| 213 |
+
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, pages 4171-4186.
|
| 214 |
+
Yue Ding, Karolis Martinkus, Damian Pascual, Simon Clematide, and Roger Wattenhofer. 2022. On isotropy calibration of transformer models. In Proceedings of the Third Workshop on Insights from Negative Results in NLP, pages 1-9.
|
| 215 |
+
|
| 216 |
+
William B. Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing.
|
| 217 |
+
Jonathan Frankle and Michael Carbin. 2019. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In *The 7th International Conference on Learning Representations*.
|
| 218 |
+
Zhuocheng Gong, Di He, Yelong Shen, Tie-Yan Liu, Weizhu Chen, Dongyan Zhao, Ji-Rong Wen, and Rui Yan. 2022. Finding the dominant winning ticket in pre-trained language models. In Findings of the Association for Computational Linguistics: ACL 2022, pages 1459-1472.
|
| 219 |
+
Mitchell Gordon, Kevin Duh, and Nicholas Andrews. 2020. Compressing BERT: Studying the effects of weight pruning on transfer learning. In Proceedings of the 5th Workshop on Representation Learning for NLP, pages 143-155.
|
| 220 |
+
Frithjof Gressmann, Zach Eaton-Rosen, and Carlo Luschi. 2020. Improving neural network training in low dimensional random bases. In Advances in Neural Information Processing Systems 33.
|
| 221 |
+
Guy Gur-Ari, Daniel A Roberts, and Ethan Dyer. 2018. Gradient descent happens in a tiny subspace. arXiv preprint arXiv:1812.04754.
|
| 222 |
+
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. Lora: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations.
|
| 223 |
+
Olga Kovaleva, Saurabh Kulshreshtha, Anna Rogers, and Anna Rumshisky. 2021. BERT busters: Outlier dimensions that disrupt transformers. In *Findings of the Association for Computational Linguistics: ACL/IJCNLP* 2021, pages 3392-3405.
|
| 224 |
+
Chunyuan Li, Heerad Farkhoor, Rosanne Liu, and Jason Yosinski. 2018. Measuring the intrinsic dimension of objective landscapes. In International Conference on Learning Representations.
|
| 225 |
+
Tao Li, Lei Tan, Zhehao Huang, Qinghua Tao, Yipeng Liu, and Xiaolin Huang. 2022a. Low dimensional trajectory hypothesis is true: Dnns can be trained in tiny subspaces. IEEE Transactions on Pattern Analysis and Machine Intelligence.
|
| 226 |
+
Tao Li, Yingwen Wu, Sizhe Chen, Kun Fang, and Xiaolin Huang. 2022b. Subspace adversarial training. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13399-13408.
|
| 227 |
+
Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 4582-4597.
|
| 228 |
+
|
| 229 |
+
Chen Liang, Haoming Jiang, Simiao Zuo, Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen, and Tuo Zhao. 2022. No parameters left behind: Sensitivity guided adaptive learning rate for training large transformer models. In The Tenth International Conference on Learning Representations.
|
| 230 |
+
Chen Liang, Simiao Zuo, Minshuo Chen, Haoming Jiang, Xiaodong Liu, Pengcheng He, Tuo Zhao, and Weizhu Chen. 2021. Super tickets in pre-trained language models: From model compression to improving generalization. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 6524-6538.
|
| 231 |
+
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. In arXiv preprint arXiv:1907.11692.
|
| 232 |
+
Ziyang Luo, Artur Kulmizev, and Xiaoxi Mao. 2021. Positional artefacts propagate through masked language model embeddings. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, pages 5312-5327.
|
| 233 |
+
Rabeeh Karimi Mahabadi, James Henderson, and Sebastian Ruder. 2021. Compacter: Efficient low-rank hypercomplex adapter layers. In Advances in Neural Information Processing Systems 34, pages 1022-1035.
|
| 234 |
+
Sai Prasanna, Anna Rogers, and Anna Rumshisky. 2020. When BERT plays the lottery, all tickets are winning. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, pages 3208-3229.
|
| 235 |
+
Giovanni Puccetti, Anna Rogers, Aleksandr Drozd, and Felice Dell'Orletta. 2022. Outlier dimensions that disrupt transformers are driven by frequency. In *Findings of the Association for Computational Linguistics: EMNLP* 2022, pages 1286-1304.
|
| 236 |
+
Yujia Qin, Xiaozhi Wang, Yusheng Su, Yankai Lin, Ning Ding, Zhiyuan Liu, Juanzi Li, Lei Hou, Peng Li, Maosong Sun, et al. 2021. Exploring low-dimensional intrinsic task subspace via prompt tuning. arXiv preprint arXiv:2110.07867.
|
| 237 |
+
Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI.
|
| 238 |
+
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.
|
| 239 |
+
|
| 240 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1631-1642.
|
| 241 |
+
|
| 242 |
+
Jianlin Su, Jiarun Cao, Weijie Liu, and Yangyiwen Ou. 2021. Whitening sentence representations for better semantics and faster retrieval. arXiv preprint arXiv:2103.15316.
|
| 243 |
+
|
| 244 |
+
William Timkey and Marten van Schijndel. 2021. All bark and no bite: Rogue dimensions in transformer language models obscure representational quality. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 4527-4546.
|
| 245 |
+
|
| 246 |
+
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.
|
| 247 |
+
|
| 248 |
+
Alex Warstadt, Amanpreet Singh, and Samuel R. Bowman. 2019. Neural network acceptability judgments. Transactions of the Association for Computational Linguistics, 7:625-641.
|
| 249 |
+
|
| 250 |
+
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, pages 1112-1122.
|
| 251 |
+
|
| 252 |
+
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, pages 38-45.
|
| 253 |
+
|
| 254 |
+
Elad Ben Zaken, Yoav Goldberg, and Shauli Ravfogel. 2022. Bitfit: Simple parameter-efficient fine-tuning for transformer-based masked language-models. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics, pages 1-9.
|
| 255 |
+
|
| 256 |
+
Zhong Zhang, Chongming Gao, Cong Xu, Rui Miao, Qinli Yang, and Junming Shao. 2020. Revisiting representation degeneration problem in language modeling. In *Findings of the Association for Computational Linguistics: EMNLP* 2020, pages 518-527.
|
| 257 |
+
|
| 258 |
+
# A Appendix
|
| 259 |
+
|
| 260 |
+
# A.1 Hyperparameters
|
| 261 |
+
|
| 262 |
+
We first fine-tune the BERT and RoBERTa models for calculating projection matrices. We use the fine-tuning script in the Transformers toolkit<sup>2</sup>. All hyperparameters remain default except for the number of epochs, which is set to 32 and 64 for the MNLI and all other tasks, respectively. For intrinsic subspace fine-tuning, the dimensionality of $\theta^t$ is set to 32 and 64 for the MNLI and all other tasks, respectively. The learning rate of $\theta^t$ is set to 0.01. The number of ensembles $h$ is set to 16. Other hyperparameter are the same as those in the script. All experimental results are averaged over 5 runs of different seeds. Each experiment is conducted on a single GeForce RTX 2080Ti GPU with environment of Pytorch 1.11.0 + CUDA 11.3.1.
|
| 263 |
+
|
| 264 |
+
# A.2 Ablation study
|
| 265 |
+
|
| 266 |
+
We conduct an ablation experiment over the number of dimensions of the subspaces. The results are given in Table 5 and Table 6. The performance increases as the number of dimensions increases.
|
| 267 |
+
|
| 268 |
+
<table><tr><td>Tasks</td><td>dim=8</td><td>dim=16</td><td>dim=32</td></tr><tr><td>CoLA</td><td>54.06</td><td>57.17</td><td>60.27</td></tr><tr><td>MRPC</td><td>75.05</td><td>77.94</td><td>84.31</td></tr><tr><td>SST-2</td><td>89.52</td><td>90.05</td><td>89.93</td></tr><tr><td>STS-B</td><td>87.95</td><td>89.02</td><td>89.51</td></tr><tr><td>QQP</td><td>87.61</td><td>89.12</td><td>89.73</td></tr><tr><td>MNLI</td><td>76.93</td><td>78.48</td><td>78.70</td></tr><tr><td>QNLI</td><td>86.54</td><td>86.83</td><td>87.73</td></tr><tr><td>RTE</td><td>65.41</td><td>66.07</td><td>67.00</td></tr></table>
|
| 269 |
+
|
| 270 |
+
Table 5: Ablation study for the BERT model.
|
| 271 |
+
|
| 272 |
+
<table><tr><td>Tasks</td><td>dim=8</td><td>dim=16</td><td>dim=32</td></tr><tr><td>CoLA</td><td>58.04</td><td>60.27</td><td>61.07</td></tr><tr><td>MRPC</td><td>75.59</td><td>78.20</td><td>87.21</td></tr><tr><td>SST-2</td><td>91.93</td><td>92.34</td><td>92.43</td></tr><tr><td>STS-B</td><td>84.10</td><td>88.10</td><td>89.43</td></tr><tr><td>QQP</td><td>87.58</td><td>89.25</td><td>90.18</td></tr><tr><td>MNLI</td><td>79.96</td><td>81.77</td><td>82.32</td></tr><tr><td>QNLI</td><td>89.35</td><td>89.14</td><td>90.57</td></tr><tr><td>RTE</td><td>74.30</td><td>78.56</td><td>78.77</td></tr></table>
|
| 273 |
+
|
| 274 |
+
Table 6: Ablation study for the RoBERTa model.
|
| 275 |
+
|
| 276 |
+
A For every submission:
|
| 277 |
+
|
| 278 |
+
A1. Did you describe the limitations of your work? Section Limitations.
|
| 279 |
+
A2. Did you discuss any potential risks of your work? Section Limitations.
|
| 280 |
+
A3. Do the abstract and introduction summarize the paper's main claims? Abstract, Section 1.
|
| 281 |
+
A4. Have you used AI writing assistants when working on this paper? Left blank.
|
| 282 |
+
|
| 283 |
+
B Did you use or create scientific artifacts?
|
| 284 |
+
|
| 285 |
+
Section 4.
|
| 286 |
+
|
| 287 |
+
B1. Did you cite the creators of artifacts you used? Section 4.
|
| 288 |
+
B2. Did you discuss the license or terms for use and / or distribution of any artifacts? We use open-source artifacts which can be used for academic research purposes.
|
| 289 |
+
B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)? We use the artifacts in compliance with their licenses.
|
| 290 |
+
B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it? We use the open-source GLUE dataset which does not contain sensitive information.
|
| 291 |
+
B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.? Not applicable. Left blank.
|
| 292 |
+
B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be. Section 4.
|
| 293 |
+
|
| 294 |
+
C Did you run computational experiments?
|
| 295 |
+
|
| 296 |
+
Section 4.
|
| 297 |
+
|
| 298 |
+
C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used? Appendix.
|
| 299 |
+
|
| 300 |
+
C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values? No response.
|
| 301 |
+
C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run? Section 4
|
| 302 |
+
C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)? Section 4
|
| 303 |
+
|
| 304 |
+
D Did you use human annotators (e.g., crowdworkers) or research with human participants? Left blank.
|
| 305 |
+
|
| 306 |
+
D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.? Not applicable. Left blank.
|
| 307 |
+
D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)? Not applicable. Left blank.
|
| 308 |
+
D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used? Not applicable. Left blank.
|
| 309 |
+
D4. Was the data collection protocol approved (or determined exempt) by an ethics review board? Not applicable. Left blank.
|
| 310 |
+
D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data? Not applicable. Left blank.
|
2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f44595fe78f16742f04aa36fb21d3ecca3ca63d80fb6c0fae02d2db262026aa
|
| 3 |
+
size 645974
|
2023/Fine-tuning Happens in Tiny Subspaces_ Exploring Intrinsic Task-specific Subspaces of Pre-trained Language Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/aad7c0d8-3cef-4a9b-a451-aebedd7604ff_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/aad7c0d8-3cef-4a9b-a451-aebedd7604ff_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/aad7c0d8-3cef-4a9b-a451-aebedd7604ff_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b65fd51d5437d16b1d8c683d0d8faeef5c005b13dc0121d3eac0aa6484cdf900
|
| 3 |
+
size 2234607
|
2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/full.md
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Forgotten Knowledge: Examining the Citational Amnesia in NLP
|
| 2 |
+
|
| 3 |
+
Janvijay Singh\*, Mukund Rungta\*, Diyi Yang, Saif M. Mohammad
|
| 4 |
+
|
| 5 |
+
$^{\diamond}$ Georgia Institute of Technology, $^{\diamond}$ Stanford University, $^{\Phi}$ National Research Council Canada {iamjanvijay, mrungta8}@gatech.edu, diyiy@cs.stanford.edu, saif.mohammad@nrc-cnrc.gc.ca
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Citing papers is the primary method through which modern scientific writing discusses and builds on past work. Collectively, citing a diverse set of papers (in time and area of study) is an indicator of how widely the community is reading. Yet there is little work looking at broad temporal patterns of citation. This work, systematically and empirically examines: How far back in time do we tend to go to cite papers? How has that changed over time, and what factors correlate with this citational attention/amnesia? We chose NLP as our domain of interest, and analyzed $\sim 71.5\mathrm{K}$ papers to show and quantify several key trends in citation. Notably, $\sim 62\%$ of cited papers are from the immediate five years prior to publication, whereas only $\sim 17\%$ are more than ten years old. Furthermore, we show that the median age and age diversity of cited papers was steadily increasing from 1990 to 2014, but since then the trend has reversed, and current NLP papers have an all-time low temporal citation diversity. Finally, we show that unlike the 1990s, the highly cited papers in the last decade were also papers with the least citation diversity; likely contributing to the intense (and arguably harmful) recency focus. Code, data, and a demo are available at the project homepage.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Study the past if you would define the future.
|
| 14 |
+
|
| 15 |
+
Confucius
|
| 16 |
+
|
| 17 |
+
The goal of scientific research is to create a better future for humanity. To do this we innovate on ideas and knowledge from the past. Thus, a central characteristic of the scientific method and modern scientific writing is to discuss other work: to build on ideas, to critique or reject earlier conclusions,
|
| 18 |
+
|
| 19 |
+
to borrow ideas from other fields, and to situate the proposed work. Even when proposing something that others might consider dramatically novel, it is widely believed that these new ideas have been made possible because of a number of older ideas (Verstak et al., 2014). Citation (referring to another paper in a prescribed format) is the primary mechanism to point the reader to these prior pieces of work and also to assign credit for shaping current work (Mohammad, 2020a; Rungta et al., 2022). Thus, we argue that examining citation patterns across time can lead to crucial insights into what we value, what we have forgotten, and what we should do in the future.
|
| 20 |
+
|
| 21 |
+
Of particular interest is the extent to which good older work is being forgotten — citational amnesia. More specifically, for this paper, we define citational amnesia as shown below:
|
| 22 |
+
|
| 23 |
+
Citational Amnesia: the tendency to not cite enough relevant good work from the past (more than a few years old).
|
| 24 |
+
|
| 25 |
+
We cannot directly measure citational amnesia empirically because determining "enough", "relevance", and "good" require expert researcher judgment. However, what we can measure is the collective tendency of a field to cite older work. Such an empirical finding enables reflection on citational amnesia. A dramatic drop in our tendency to cite older work should give us cause to ponder whether we are putting enough effort to read older papers (and stand on the proverbial shoulders of giants).
|
| 26 |
+
|
| 27 |
+
Note that we are not saying that old work should be cited simply because it exists. We are saying that we should consciously reflect on the diversity of the papers we explore when conducting research. Diversity can take many forms, including reading relevant papers from diverse fields, by authors from diverse regions, and relevant papers published from various time periods — the focus of this paper. Exploring a diverse set of papers allows us to ben
|
| 28 |
+
|
| 29 |
+
efit from important and diverse research perspectives. Looking at older literature makes us privy to broader trends, and informs us in ways that are beneficial well beyond the immediate work.
|
| 30 |
+
|
| 31 |
+
Historically, citational amnesia was impacted by various factors around access and invention. For example, the invention of the printing press in the year 1440 allowed a much larger number of people to access scientific writing (Eisenstein, 1985). The era of the internet and digitization of scientific literature that began in the 1990s also greatly increased the ease with which one could access past work (Verstak et al., 2014). However, other factors such as the birth of paradigm-changing technologies may also impact citation patterns; ushering in a trend of citing very new work or citing work from previously ignored fields of work. Such dramatic changes are largely seen as beneficial; however, strong tailwinds may also lead to a myopic focus on recent papers and those from only some areas, at the expense of benefiting from a wide array of work (Pan et al., 2018; Martin-Martín et al., 2016).
|
| 32 |
+
|
| 33 |
+
We choose as our domain of interest, papers on Natural Language Processing (NLP), specifically those in the ACL Anthology. This choice is motivated by the fact that NLP (and other related fields of Artificial Intelligence) are in a period of dramatic change: There are notable and frequent gains on benchmark datasets; NLP technology is becoming increasingly ubiquitous in society; and new sub-fields of NLP such as Computational Social Science, Ethics and NLP, and Sustainable NLP are emerging at an accelerated rate. The incredibly short research-to-production cycle and move-fast-and-break-things attitude in NLP (and Machine Learning more broadly) has also led to considerable adverse outcomes for various sections of society, especially those with the least power (Buolamwini and Gebru, 2018; ARTICLE19, 2021; Mohammad, 2021). Thus reading and citing more broadly is especially important now.
|
| 34 |
+
|
| 35 |
+
In this work, we compiled a temporal citation network of 71.5K NLP papers that were published between 1990 and 2021, along with their meta-information such as the number of citations they received in each of the years since they were published — the Age of Citations (AoC) dataset. We use AoC to answer a series of specific research questions on what we value, what we have forgotten, what factors are associated with this citational attention/amnesia, what are the citation patterns
|
| 36 |
+
|
| 37 |
+
of different types of papers, and how these citation patterns have changed over time. Finally, we show that many of the highly cited papers from the past decade have very low temporal citation diversity; and because of their wide reach, may have contributed to the intense recency focus in NLP. All of the data and code associated with the project will be made freely available on the project homepage.
|
| 38 |
+
|
| 39 |
+
# 2 Related Work
|
| 40 |
+
|
| 41 |
+
In the broad area of Scientometrics (study of quantitative aspects of scientific literature), citations and their networks have been studied from several perspectives, including: paper quality (Buela-Casal and Zych, 2010), field of study (Costas et al., 2009), novelty, length of paper (Antoniou et al., 2015; Falagas et al., 2013), impact factor (Callaham et al., 2002), venue of publication (Callaham et al., 2002; Wahle et al., 2022), language of publication (Lira et al., 2013), and number of authors (Della Sala and Brooks, 2008; Bosquet and Combes, 2013), collaboration (Nomaler et al., 2013), self-citation (Costas et al., 2010), as well as author's reputation (Collet et al., 2014), affiliation (Sin, 2011; Lou and He, 2015), geographic location (Nielsen and Andersen, 2021; Lee et al., 2010; Pasterkamp et al., 2007; Paris et al., 1998), gender, race and age (Ayres and Vars, 2000; Leimu and Koricheva, 2005; Chatterjee and Werner, 2021; Llorens et al., 2021).
|
| 42 |
+
|
| 43 |
+
However, there has been relatively little work exploring the temporal patterns of citation. Verstak et al. (2014) analyzed scholarly articles published in 1990-2013 to show that the percentage of older papers being cited steadily increased from 1990 to 2013, for seven of the nine fields of study explored. (They treated papers that were published more than ten years before a particular citation as old papers.) For Computer Science papers published in 2013, on average, $28\%$ of the cited papers were published more than ten years before. This represented an increase of $39\%$ from 1990. They attributed this increasing trend in citing old papers to the ease of access of scientific literature on the world wide web, as well as the then relatively new scientific-literature-aggregating services such as Google Scholar.
|
| 44 |
+
|
| 45 |
+
Parolo et al. (2015) analyzed about 25 million papers from Clinical Medicine, Molecular Biology, Physics, and Chemistry published until 2014 to show that typically the number of citations a paper receives per year increases in the years after
|
| 46 |
+
|
| 47 |
+
publication, reaches a peak, and then decays exponentially. Interestingly they showed that this rate of decay was increasing in the more recent papers of their study. They attribute this quicker decay (or more "forgetting" of recent papers) to the substantial increase in the number of publications; a lot more papers are being published, and due to the limited attention span of subsequent researchers, on average, papers are being forgotten faster.
|
| 48 |
+
|
| 49 |
+
Past work on NLP papers and their citations includes work on gender bias (Schluter, 2018; Vogel and Jurafsky, 2012; Mohammad, 2020b), author location diversity (Rungta et al., 2022), author institution diversity (Abdalla et al., 2023), and on broad general trends such as average number of citations over time and by type of paper (Mohammad, 2020a,c; Wahle et al., 2022).
|
| 50 |
+
|
| 51 |
+
Bollmann and Elliott (2020) were the first to explore the recency bias of citations in NLP papers. They showed that the ACL Anthology papers published between 2017 and 2019 cited more recent work than papers published between 2010 and 2014. Question 3 in Section 4 of our paper is of the same spirit that was explored in their work; however, our work examines a much larger spread of NLP papers (published between 1965 and 2021). This will shed light on the reproducibility of those findings and, more importantly, determine the broader trajectory of temporal citation patterns (from the start of ACL to present day). Additionally, our work introduces a new citation age diversity metric to quantify the degree of spread of citations over time, as well as an interactive online demo system to visualize the citation age diversity of any paper. Going beyond how overall citation patterns have changed over time, our work takes a deep dive into six other novel research questions, notably around temporal citation patterns in sub-areas of NLP, of cited topics, and across sparsely and highly cited papers.
|
| 52 |
+
|
| 53 |
+
# 3 Dataset
|
| 54 |
+
|
| 55 |
+
The ACL Anthology (AA) Citation Corpus (Rungta et al., 2022) contains meta data (paper title, year of publication, and venue, etc. for the 71,568 papers in the ACL Anthology repository (published until January 2022). We used the Semantic Scholar API to gather the references for each paper in the AA Citation Corpus, using the paper's unique Semantic Scholar ID (SSID). This allowed us to obtain
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 1: Average number of unique references in an AA paper published in different years.
|
| 59 |
+
|
| 60 |
+
<table><tr><td></td><td>Mean</td><td>Median</td></tr><tr><td>Journal</td><td>23.24</td><td>15</td></tr><tr><td>Conference</td><td>21.11</td><td>19</td></tr><tr><td>Workshop</td><td>19.07</td><td>17</td></tr><tr><td>Overall</td><td>20.63</td><td>18</td></tr></table>
|
| 61 |
+
|
| 62 |
+
Table 1: Mean and median of the number of unique references in an AA paper.
|
| 63 |
+
|
| 64 |
+
additional information about the cited papers, such as their title, year of publication, and venue of publication. Note that these cited papers may or may not be part of AA. To study the dynamics of citations over time, we constructed year-wise citation networks using the data collected. Specifically, we created the citation networks for every year from 1965 to 2001. This representation of citation data allows us to answer several interesting questions, such as the number of citations a paper receives in a particular year after its publication. We refer to this dataset as Age of Citations (AoC) dataset.
|
| 65 |
+
|
| 66 |
+
# 4 Age of Citation
|
| 67 |
+
|
| 68 |
+
We used the AoC dataset to answer a series of questions on how research papers are cited and the trends across years.
|
| 69 |
+
|
| 70 |
+
Q1. What is the average number of unique references in the AA papers? How does this number vary by publication type, such as workshop, conference, and journal? Has this average stayed roughly the same or has it changed markedly over the years?
|
| 71 |
+
|
| 72 |
+
Ans. We calculated the average number of unique references for all papers in the AoC dataset, as well as for each publication type (workshops, conferences, and journals). We then binned all papers by publication year, computed the mean and median for each bin for each year.
|
| 73 |
+
|
| 74 |
+
Results The scores are shown in Table 1. Figure 1 shows how the mean has changed across the years.4 The graph shows a general upward trend. The trend seems roughly linear until the mid 2000s, at which point we see that the slope of the trend line increases markedly. Even just considering the last 7 years, there has been a $41.74\%$ increase in referenced papers in 2021 compared to 2014.
|
| 75 |
+
|
| 76 |
+
Similar overall trends can be observed when papers are grouped by publication type. Not surprisingly, the longer journal articles cite markedly more papers than conference and workshop papers. The plot for conferences and workshops is relatively smooth compared to journal articles. This is because the number of papers for each year in journals is far less. For example, in the year 2015, only 139 papers were published in journals, whereas 1709 and 983 papers were published in conferences and workshops respectively.
|
| 77 |
+
|
| 78 |
+
Discussion The steady increase in the number of unique references from 1965 is likely because of the increasing number of relevant papers as the field develops and grows. However, it is interesting that this growth has not plateaued even after 55 years. By the late-2000s, with the advent of widely accessible electronic proceedings, *ACL venues started experimenting with more generous page limits: relaxing it from a strict 8 pages to first allowing one or two additional pages for references to eventually allowing unlimited pages for references.<sup>5</sup> Other factors that may have contributed to more papers being referred to (cited) within a paper, include: an additional page for incorporating reviewer comments, allowing Appendices, and the inclusion of an increasing number of experiments.
|
| 79 |
+
|
| 80 |
+
# Q2. On average, how far back in time do we go to cite papers? As in, what is the average age of cited papers? What is the distribution of this age across all citations? How do these vary by publication type?
|
| 81 |
+
|
| 82 |
+
Ans. If a paper $x$ cites a paper $y_{i}$ , then the age of the citation (AoC) is taken to be the difference between the year of publication (YoP) of $x$ and $y_{i}$ :
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
A o C \left(x, y _ {i}\right) = Y o P (x) - Y o P \left(y _ {i}\right) \tag {1}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
We calculated the AoC for each of the citations in the AoC dataset. For each paper, we also calculated the mean $AoC$ of all papers cited by it:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
m A o C (x) = \frac {1}{N} \sum_ {i = 1} ^ {N} A o C (x, y _ {i}) \tag {2}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
here $N$ refers to the number of papers cited by $x$ .
|
| 95 |
+
|
| 96 |
+
Results The average mAoC for all the papers in the AoC dataset is 6.01. The scores were 7.16 for journal articles, 5.91 for conference papers, and 6.01 for workshop papers. Figure 2 shows the distribution of AoCs in the dataset across the years after the publication of the cited paper (overall, and across publication types). For example, the y-axis point for year 0 corresponds to the average of the percentage of citations papers received in the same year as it they were published. The y-axis point for year 1 corresponds to the average of percentage of citations the papers received in the year after they were published. And so on.
|
| 97 |
+
|
| 98 |
+
Observe that the majority of the citations are for papers published one year prior, $(\mathrm{AoC} = 1)$ . This is true for conference and workshop subsets as well, but in journal papers, the most frequent citations are for papers published two years prior. Overall though all the arcs have a similar shape, rising sharply from the number in year 0 to the peak value and then dropping off at an exponential rate in the years after the peak is reached. For the full set of citations, this exponential decay from the peak has a half life of about 4 years. Roughly speaking, the line plot for journals is shifted to the right by a year compared to the line plots for conferences and workshops. It also has a lower peak value and its citations for the years after the peak are at a higher percentage than those for conferences and workshops. Additionally, citations in workshop papers have the highest percentage of current year citations (age 0), whereas citations in journal article have the lowest percentage of current year citations.
|
| 99 |
+
|
| 100 |
+
Analogous to Figure 2, Figure 3 presents the distribution of AoCs, albeit broken down by the total citations received by a paper. It is worth noting that the distribution leans more towards the right for papers with a higher number of citations. This shows that papers with a higher citation count continue to receive significant citations even far ahead in the future, which is intuitive.
|
| 101 |
+
|
| 102 |
+
Discussion Overall, we observe that papers are cited most in years immediately after publication, and their chances of citation fall exponentially after
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
Figure 2: Distribution of $AoC$ for papers in AA (overall and by publication type).
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
Figure 3: Distribution of $AoC$ for AA papers with different citation counts (shown in legend).
|
| 109 |
+
|
| 110 |
+
that. The slight right-shift for the journal article citations is likely, at least in part, because journal submissions have a long turn-around time from the first submission to the date of publication (usually between 6 and 18 months). A list of the oldest papers cited by AA papers is available on the project's GitHub repository.
|
| 111 |
+
|
| 112 |
+
# Q3. What is the trend in the variation of $AoC$ over time and how does this variation differ across different publication venues in NLP?
|
| 113 |
+
|
| 114 |
+
Ans. To answer this question, we split the papers into bins corresponding to the year of publication, and then examined the distribution of $mAoC$ in each bin. We define a new metric called the Citation Age Diversity (CAD) Index, which measures the diversity in the $mAoC$ for a set of papers. In simpler terms, a higher CAD Index indicates that $mAoCs$ covers a broader range, implying that the cited papers span a wider time period of publication. This metric offers valuable insights into the temporal spread of scholarly influence and the long-term impact of research. Precisely, the CAD Index for a bin of papers $b$ , is defined using the Gini
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 4: Citation Age Diversity Index across years.
|
| 118 |
+
|
| 119 |
+
Coefficient as follows:
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
C A D (b) = 1 - \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {N} \frac {\left| m A o C \left(b _ {i}\right) - m A o C \left(b _ {j}\right) \right|}{2 N ^ {2} \bar {b}} \tag {3}
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
here, $b_{i}$ corresponds to $i^{th}$ paper within bin $b$ , $N$ denotes the total number of papers in bin $b$ and $\bar{b}$ represents the mean of $mA_{oC}$ of papers' associated with bin $b$ . A CAD Index close to 0 indicates minimum temporal diversity in citations (citing papers from just one year), whereas a CAD Index of 1 indicates maximum temporal diversity in citations (citing papers uniformly from past years). In addition to CAD Index, we also compute median $mA_{oC}$ of each such yearly bin. The results for both CAD Index and median $mA_{oC}$ have roughly identical trends across the years. We discuss the CAD Index analysis below. (The discussion of the median $mA_{oC}$ results is in the Appendix A.1.)
|
| 126 |
+
|
| 127 |
+
Results Figure 4 shows the CAD Index across years (higher CAD Index indicates high diversity), and across different publication types. The CAD Index plot of Figure 4 shows that the temporal diversity of citations had an increasing trend from 1990 to 2014, but the period from 1998 to 2004, and 2014 to 2021 (dramatically so) were periods of decline in temporal diversity (decreasing CAD Index scores). These intervals coincide with the year intervals in which we observed a decreasing trend in median $mA_{o}C$ of published papers (discussed in the Appendix). This suggests that the increase or decrease in diversity is largely because of the decreased or increased focus on papers from recent years, respectively.
|
| 128 |
+
|
| 129 |
+
The CAD Index plots by publication type all have similar trends, with journal paper submissions consistently having markedly higher scores (indicating markedly higher temporal diversity) across the years studied. However, they also seem to be
|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
Figure 5: Percentage of citations in AA papers where the cited paper is at least 10 years old.
|
| 133 |
+
|
| 134 |
+
most impacted by the trend since 2014 to cite very recent papers. (CAD Index not only goes back to the 1990 level, but also undershoots beyond it.)
|
| 135 |
+
|
| 136 |
+
Discussion Overall, we find that all the gains in temporal diversity of citations from 1990 to 2014 (a period of 35 years), have been negated in the 7 years from 2014. This change is driven largely by the deep neural revolution in the early 2010's and strengthened further by the substantial impact of transformers on NLP and Machine Learning. Interestingly, our results until 2013 are in line with what Verstak et al. (2014) found for many fields of study, but since 2014 there has been a marked shift in trends in NLP. We hope future work will explore whether similar shifts in trends have occurred in other fields. Our results add to (and are consistent with) the mean-citation age results found by Bollmann and Elliott (2020), who examined mean citation age between 2010 and 2019. Our analysis of the broader period (from 1965 to 2021), situates those results in the overall trajectory of how temporal citation patterns have evolved since the beginning of the Association of Computational Linguistics to the present period. Additionally, the new CAD Index metric quantifies the degree temporal citation diversity as opposed to the recency focus of citations captured by mean citation age.
|
| 137 |
+
|
| 138 |
+
# Q4. What percentage of cited papers are old papers? How has this varied across years and publication venues?
|
| 139 |
+
|
| 140 |
+
Ans. Just as Verstak et al. (2014), we define a cited paper as older if it was published at least ten years prior to the citing paper. We then divided all AA papers into groups based on the year in which they were published. For each AA paper, we determined the number of citations to older papers.
|
| 141 |
+
|
| 142 |
+
Results Figure 5 shows the percentage of older papers cited by papers published in different years. Observe that this percentage increased steadily from 1990 to 1999, before decreasing until 2002. After 2002, the trend of citing older papers picked up again; reaching an all time high of $\sim 30\%$ by 2014. However, since 2014, the percentage of citations to older papers has dropped dramatically, falling by $12.5\%$ and reaching a historical low of $\sim 17.5\%$ in 2021. Similar patterns are observed for different publication types. However, we note that a greater (usually around $5\%$ more) percentage of a journal paper's citations are to older papers, than in conference and workshop papers.
|
| 143 |
+
|
| 144 |
+
Discussion These results confirm that the trends in diversity discussed in Q2 are aligned with the trends in citing older papers. This dramatic drop in citing older papers since 2014 can largely be attributed to the explosion of paper count and the paradigm shift in the field of NLP brought on by deep learning and transformers.
|
| 145 |
+
|
| 146 |
+
# Q5. What is the $mAoC$ distribution for different areas within NLP? Relative to each other, which areas tend to cite more older papers and which areas have a strong bias towards recent papers?
|
| 147 |
+
|
| 148 |
+
Ans. The ACL Anthology does not include metadata for sub-areas within NLP. Further, a paper may be associated with more than one area and the distinction between areas can often be fuzzy. Thus, we follow a rather simple approach used earlier in Mohammad (2020b): using paper title word bigrams as indicators of topics relevant to the paper. A paper with machine translation in the title is likely to be relevant to the area of machine translation. Using title bigrams for this analysis also allows for a finer analysis within areas. For example, two bigrams pertaining to finer subareas within the same area can be examined separately. (Papers in different sub-areas of an area need not be similar in terms of the age of the papers they cite.)
|
| 149 |
+
|
| 150 |
+
We first compiled a list of the top 60 most frequent bigrams from the titles of AA papers. Next, for each of these bigrams, we created a bin containing all AA papers that had that bigram in their title. For each paper included in any of these bins, we computed $mA_{o}C$ . Finally, we plotted the distribution of $mA_{o}C$ values for the papers in each bin,
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
Figure 6: Distribution of $mA_{o}C$ for frequent bigrams appearing in the titles of citing papers.
|
| 154 |
+
|
| 155 |
+
as shown in Figure 6. Note that, for the purpose of improving the visibility of the plot, only selected $mAoC$ distributions are depicted in the figure 6. We then examined the distribution of $mAoC$ for each of these bins.
|
| 156 |
+
|
| 157 |
+
Results Figure 6 shows the $mAoC$ violin plots for each of the bins pertaining to the title bigrams (in decreasing order of median $mAoC$ ). Observe that papers with the title bigrams word alignment, parallel corpus/corpora, Penn Treebank, sense disambiguation and word sense (common in the word sense disambiguation area), speech tagging, coreference resolution, named entity and entity recognition (common in the named entity recognition area), and dependency parsing have some of the highest median $mAoC$ (cite more older papers). In contrast, papers with the title bigrams glove vector, BERT pre, deep bidirectional, and bidirectional transformers (which correspond to new technologies) and papers with title bigrams reading comprehension, shared task, question answering, language inference, language models, and social media (which correspond to NLP subareas or domains) have some of the lowest median $mAoC$ (cite more recent papers).
|
| 158 |
+
|
| 159 |
+
Discussion The above results suggest that not all NLP subfields are equal in terms of the age of cited papers. In fact, some papers cited markedly more newer papers than others. This could be due to factors such as early adoption or greater applicability of the latest developments, the relative newness of the area itself (possibly enabled by new inventions such as social media), etc.
|
| 160 |
+
|
| 161 |
+
# Q6. What topics are more pronounced in cited papers across different periods of time?
|
| 162 |
+
|
| 163 |
+
Ans. To address this question, we partitioned the re
|
| 164 |
+
|
| 165 |
+
search papers into those published between: 1990-1999, 2000-2009, 2010-2015, and 2016-2021. For papers from each period: we first extracted all unigrams and bigrams from the titles of the cited papers. Next, for the top 100 most frequent unigrams and bigrams, we calculated the percentage of all citations that had the respective ngram in the cited paper's title — the ngram citation percentage.
|
| 166 |
+
|
| 167 |
+
Results Upon examining various bigram citation percentages, we found that bigrams pertaining to areas such as tree-adjoining grammars have been in decline since the 1990s (cited less as with every subsequent interval). Bigrams pertaining to areas such as conditional random fields and coreference resolution gained momentum in the middle periods (2000–2016) but have since lost popularity post-2016. On the other hand, techniques such as domain adaptation have consistently gained momentum since the 2010s. Post-2016 keywords related to deep learning technologies such as convolutional neural nets, deep bi-directional, deep learning, deep neural, Global vectors, and jointly learning experienced a substantial surge in popularity. Additionally, certain areas such as cross-lingual and entity recognition consistently gained momentum since the 1990s.
|
| 168 |
+
|
| 169 |
+
Upon examining various unigram citation percentages, we found that deep-learning-related terms such as attention, bert, deep, neural, embeddings, and recurrent saw a substantial increase in citation post-2016. Furthermore, we observed that since the 1990s, there has been a growing trend in NLP papers towards citing research on the social aspects of language processing, as evidenced by the increasing popularity of keywords such as social and sentiment.
|
| 170 |
+
|
| 171 |
+
Figures 9 and 10 in the Appendix show a number of unigrams and bigrams with the most notable changes in the ngram citation percentage across the chosen time intervals.
|
| 172 |
+
|
| 173 |
+
# Q7. Do well-cited papers cite more old papers and have more AoC diversity?
|
| 174 |
+
|
| 175 |
+
Ans. We introduce three hypotheses to explore the correlation between temporal citation patterns of target papers and the number of citations the target papers themselves get in the future.
|
| 176 |
+
|
| 177 |
+
H1. The degree of citation has no correlation with temporal citation patterns of papers.
|
| 178 |
+
H2. Highly cited papers have more temporal citation diversity than less cited papers.
|
| 179 |
+
H3. Highly cited papers have less temporal citation diversity than less cited papers.
|
| 180 |
+
|
| 181 |
+
Without an empirical experiment, it is difficult to know which hypothesis is true. H1 seemed likely, however, there were reasons to suspect H2 and H3 also. Perhaps cite more widely is correlated with other factors such the quality of work and thus correlates with higher citations (supporting H2). Or, perhaps, early work in a new area receives lots of subsequent citations and work in a new area often tends to have limited citation diversity as there is no long history of publications in the area (supporting H3).
|
| 182 |
+
|
| 183 |
+
On, Nov 30, 2022, we used the Semantic Scholar API to extract the number of citations for each of the papers in the AoC dataset. We divided the AoC papers into nine different bins as per the number of citations: 0, 1–9, 10–49, 50–99, 100–499, 500–999, 1000–1999, 2000–4999, or $5000+$ citations. For each bin, we calculated the mean of $mAoC$ and $CAD\ Index$ . We also computed the Spearman's Rank Correlation between the $CAD\ Index$ of the citation bins and the mean of the citation range of each of these bins.
|
| 184 |
+
|
| 185 |
+
Results Figure 7 shows the $mAoC$ and $CADIndex$ for each bin (a) for the full AoC dataset, and (b) for the subset of papers published between 1990 and 2000. (Figures 11a and 11b in the Appendix show plots for papers from two additional time periods.) On the full dataset (Figure 7a), we observe a clear pattern that the $CADIndex$ decreases with increasing citation bin (with the exception of papers in the 1K-2K and 2K-5K bins). The mean $mAoC$ follows similar trend w.r.t. the $CADIndex$ .
|
| 186 |
+
|
| 187 |
+
<table><tr><td>1990–99</td><td>2000-09</td><td>2010-15</td><td>1965-2021 (All)</td></tr><tr><td>0.16</td><td>-1.00*</td><td>-0.97*</td><td>-0.72*</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 2: Correlation between the mean number of citations received and CAD Index for papers from various time periods. The * indicates statistically significant correlation (p-value < 0.05).
|
| 190 |
+
|
| 191 |
+
These results show that, for the full dataset, the higher citation count papers tend to have less temporal citation diversity than lower-citation count papers. However, on the 1990s subset (Figure 7b), the CAD Index decreased till the citation count $< 50$ and increased markedly after that. This shows that during the 1990s, the highly cited papers also cited papers more widely in time. Plots for the 2000s and 2010s (Figure 11) follow a similar trend as the overall plot (Figure 7a), indicating that trend of highly cited papers having less temporally diverse citations started around the year 2000.
|
| 192 |
+
|
| 193 |
+
The Spearman's rank Correlation Coefficients between the mean number of citations for a bin and the mean $mA_{o}C$ of the citation bins are shown in Table 2. Observe that for the 1990's papers there is essentially no correlation, but there are strong correlations for the 2000s, 2010s, and the full dataset papers.
|
| 194 |
+
|
| 195 |
+
Similar to Figure 7a, in Figure 12 (in the Appendix) we show how mean $mA_{o}C$ and $CAD$ Index of AA papers published between 1965 and 2021 but when broken down by research topics. This examination across various research topics consistently shows a trend: the higher the citations, the lower the age diversity of citations. This may be because "mainstream" work in an area tends to cite lots of other very recent work and brings in proportionately fewer ideas from the past. In contrast, "non-mainstream" work tends to incorporate proportionally more ideas from outside, yet receives fewer citations as there may be less future work in that space to cite it.
|
| 196 |
+
|
| 197 |
+
Discussion Papers may receive high citations for a number of reasons; and those that receive high citations are not necessarily model research papers. While they may have some aspects that are appreciated by the community (leading to high citations), they also have flaws. High-citation papers (by definition) are more visible to the broader research community and are likely to influence early researchers more. Thus their strong recency focus in
|
| 198 |
+
|
| 199 |
+

|
| 200 |
+
(a) Papers published between 1965 and 2021.
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
(b) Papers published between 1990 and 2000.
|
| 204 |
+
Figure 7: Variation of mean $mA_{o}C$ and Citation Age Diversity (CAD) Index (shown on y-axis) for papers with different citation counts (shown on x-axis).
|
| 205 |
+
|
| 206 |
+
citations is a cause of concern. Multiple anecdotal incidents in the community have suggested how early researchers often consider papers that were published more than two or three years back as "old papers". This goes hand-in-hand with a feeling that they should not cite old papers and therefore, do not need to read them. The lack of temporal citation diversity in recent highly cited papers may be perpetuating such harmful beliefs.
|
| 207 |
+
|
| 208 |
+
# 5 Demo: CAD Index of Your Paper
|
| 209 |
+
|
| 210 |
+
To encourage authors to be more cognizant of the age of papers they cite, we created an online demonstration page where one can provide the Semantic Scholar ID of any paper and the system returns the number of papers referenced, mean Age of Citation (mAoC), top-5 oldest cited papers, and their years of publication. Notable, the demo also plots the distribution of mAoC for all the considered papers (all papers published till 2021) and compares it with mean Age of Citation of the input paper. Figure 13 in the Appendix shows a screenshot of the demo portal for an example input.
|
| 211 |
+
|
| 212 |
+
# 6 Conclusions and Discussion
|
| 213 |
+
|
| 214 |
+
This work looks at temporal patterns of citations by presenting a set of comprehensive analyses of the trend in the diversity of age of citations and the percentage of older papers cited in the field of NLP. To enable this analysis, we compiled a dataset of papers from the ACL Anthology and their meta-information; notably, the number of citations they received each year since they were published.
|
| 215 |
+
|
| 216 |
+
We showed that both the diversity of age of citations and the percentage of older papers cited increased from 1990 to 2014, but since then there has been a dramatic reversal of the trend. By the year 2021 (the final year of analysis), both the diversity of age of citations and the percentage of older papers cited have reached historical lows. We also studied the correlation between the number of citations a paper receives and the diversity of age of cited papers, and found that while there was roughly no correlation in the 1990s, the 2000s marked the beginning of a period where the higher citation levels correlated strongly with lower temporal citation diversity.
|
| 217 |
+
|
| 218 |
+
It is a common belief among researchers in the field that the advent of deep neural revolution in the early 2010's has led us to cite more recent papers than before. This analysis confirms and quantifies the extent to which temporal diversity is reduced in this recent period. In fact, it shows that the reduction in temporal diversity of citations is so dramatic that it has wiped out steady gains from 1990 to 2014. While some amount of increased focus on recent papers is expected (and perhaps beneficial) after large technological advances, an open question, now, is whether, as a community, we have gone too far, ignoring important older work. Our work calls for an urgent need for reflection on the intense recency focus in NLP: How are we contributing to this as researchers, advisors, reviewers, area chairs, and funding agencies?
|
| 219 |
+
|
| 220 |
+
# 7 Ethics Statement
|
| 221 |
+
|
| 222 |
+
This paper analyses scientific literature at an aggregate level. The ACL Anthology freely provides information about NLP papers, such as their title, authors, and year of publication. We do not make use of or redistribute any copyrighted information. All of the analyses in this work are at aggregate-level, and not about individual papers or authors. In fact, we desist from showing any breakdown of results involving 30 or fewer papers to avoid singling out a small group of papers.
|
| 223 |
+
|
| 224 |
+
# 8 Limitation
|
| 225 |
+
|
| 226 |
+
A limitation of this study is that it is based solely on papers published in the ACL Anthology, which primarily represents the international English-language NLP conference community. While the ACL Anthology is a reputable source of NLP research, it should be acknowledged that a significant amount of research is also published in other venues such as AAAI, ICLR, ICML, and WWW. Additionally, there are also vibrant local NLP communities and venues, often publishing in non-English languages, that are not represented in the ACL Anthology. As a result, the conclusions drawn from our experiments may not fully capture the global landscape of NLP research and further work is needed to explore the diversity of sub-communities and venues across the world.
|
| 227 |
+
|
| 228 |
+
This work focuses on the aggregate trends of citing older work in NLP, but does not investigate the reasons for lower citation of certain older papers. There may be various factors that contribute to this, such as the accessibility to these older papers, the large number of recent papers, the applicability of these old works, and the technical relevance of the older work. Determining the relative impact of each reason is a challenging task. Therefore, more research is needed to fully understand the underlying mechanisms that influence the citation of older NLP papers.
|
| 229 |
+
|
| 230 |
+
This study aims to investigate the factors that contribute to the citation of older works in the field of NLP. We have analyzed different factors such as the mean age of citation, diversity in the age of citations, venue of publication, and subfield of research. Our results indicate that these factors are associated with the citation of older works, but it should be noted that these associations do not establish any causal relationship between them.
|
| 231 |
+
|
| 232 |
+
Lastly, it is important to note that citations can
|
| 233 |
+
|
| 234 |
+
be heterogeneous and can be categorized in different ways. For example, some classifications of citations include background, method, and result citations. However, certain citations may be more important than others, as shown by previous research such as "Identifying Meaningful Citations" by (Valenzuela-Escarcega et al., 2015).
|
| 235 |
+
|
| 236 |
+
# Acknowledgments
|
| 237 |
+
|
| 238 |
+
Many thanks to Roland Kuhn, Rebecca Knowles, and Tara Small for thoughtful discussions.
|
| 239 |
+
|
| 240 |
+
# References
|
| 241 |
+
|
| 242 |
+
Mohamed Abdalla, Jan Philip Wahle, Terry Ruas, Aurélie Néveol, Fanny Ducel, Saif M. Mohammad, and Karen Fort. 2023. The elephant in the room: Analyzing the presence of big tech in natural language processing research.
|
| 243 |
+
George A Antoniou, Stavros A Antoniou, Efstratios I Georgakarakos, George S Sfyroeras, and George S Georgiadis. 2015. Bibliometric analysis of factors predicting increased citations in the vascular and endovascular literature. Annals of vascular surgery, 29(2):286-292.
|
| 244 |
+
ARTICLE19. 2021. Emotional entanglement: China's emotion recognition market and its implications for human rights.
|
| 245 |
+
Ian Ayres and Fredrick E Vars. 2000. Determinants of citations to articles in elite law reviews. The Journal of Legal Studies, 29(S1):427-450.
|
| 246 |
+
Marcel Bollmann and Desmond Elliott. 2020. On forgetting to cite older papers: An analysis of the ACL Anthology. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7819-7827, Online. Association for Computational Linguistics.
|
| 247 |
+
Clément Bosquet and Pierre-Philippe Combes. 2013. Are academics who publish more also more cited? individual determinants of publication and citation records. Scientometrics, 97(3):831-857.
|
| 248 |
+
Gualberto Buela-Casal and Izabela Zych. 2010. Analysis of the relationship between the number of citations and the quality evaluated by experts in psychology journals. Psicothema, pages 270-276.
|
| 249 |
+
Joy Buolamwini and Timnit Gebru. 2018. Gender shades: Intersectional accuracy disparities in commercial gender classification. In *Conference on fairness*, accountability and transparency, pages 77-91. PMLR.
|
| 250 |
+
Michael Callaham, Robert L Wears, and Ellen Weber. 2002. Journal prestige, publication bias, and other characteristics associated with citation of published studies in peer-reviewed journals. *Jama*, 287(21):2847-2850.
|
| 251 |
+
|
| 252 |
+
Paula Chatterjee and Rachel M Werner. 2021. Gender disparity in citations in high-impact journal articles. JAMA Network Open, 4(7):e2114509-e2114509.
|
| 253 |
+
François Collet, Duncan A Robertson, and Daniela Lup. 2014. When does brokerage matter? Citation impact of research teams in an emerging academic field. Strategic Organization, 12(3):157-179.
|
| 254 |
+
Rodrigo Costas, Maria Bordons, Thed N Van Leeuwen, and Anthony FJ Van Raan. 2009. Scaling rules in the science system: Influence of field-specific citation characteristics on the impact of individual researchers. Journal of the American Society for Information Science and Technology, 60(4):740-753.
|
| 255 |
+
Rodrigo Costas, Thed van Leeuwen, and María Bordons. 2010. Self-citations at the meso and individual levels: effects of different calculation methods. Scientometrics, 82(3):517-537.
|
| 256 |
+
Sergio Della Sala and Joanna Brooks. 2008. Multi-authors' self-citation: A further impact factor bias? Cortex; a journal devoted to the study of the nervous system and behavior, 44(9):1139-1145.
|
| 257 |
+
Elizabeth L Eisenstein. 1985. The printing press as an agent of change. Cambridge: Cambridge.
|
| 258 |
+
Matthew E Falagas, Angeliki Zarkali, Drosos E Karageorgopoulos, Vangelis Bardakas, and Michael N Mavros. 2013. The impact of article length on the number of future citations: a bibliometric analysis of general medicine journals. PLoS One, 8(2):e49476.
|
| 259 |
+
Shi Young Lee, Sanghack Lee, and Sung Hee Jun. 2010. Author and article characteristics, journal quality and citation in economic research. Applied Economics Letters, 17(17):1697-1701.
|
| 260 |
+
Roosa Leimu and Julia Koricheva. 2005. What determines the citation frequency of ecological papers? Trends in ecology & evolution, 20(1):28-32.
|
| 261 |
+
Rodrigo Pessoa Cavalcanti Lira, Rafael Marsicano Cezar Vieira, Fauze Abdulmassih Gonçalves, Maria Carolina Alves Ferreira, Diana Maziero, Thais Helena Moreira Passos, and Carlos Eduardo Leite Arieta. 2013. Influence of English language in the number of citations of articles published in brazilian journals of ophthalmology. Arquivos Brasileiros de Oftalmologia, 76:26-28.
|
| 262 |
+
Anaïs Llorens, Athina Tzovara, Ludovic Bellier, Ilina Bhaya-Grossman, Aurélie Bidet-Caulet, William K Chang, Zachariah R Cross, Rosa Dominguez-Faus, Adeen Flinker, Yvonne Fonken, et al. 2021. Gender bias in academia: A lifetime problem that needs solutions. Neuron, 109(13):2047-2074.
|
| 263 |
+
Wen Lou and Jiangen He. 2015. Does author affiliation reputation affect uncitedness? Proceedings of the AIST, 52(1):1-4.
|
| 264 |
+
|
| 265 |
+
Alberto Martín-Martín, Enrique Orduña-Malea, Juan Ayllón, and Emilio Delgado. 2016. Back to the past: On the shoulders of an academic search engine giant. Scientometrics, 107(3):1477-1487.
|
| 266 |
+
Saif M. Mohammad. 2020a. Examining Citations of Natural Language Processing Literature. In Proceedings of the 58th ACL, pages 5199-5209, Online.
|
| 267 |
+
Saif M. Mohammad. 2020b. Gender gap in natural language processing research: Disparities in authorship and citations. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7860-7870, Online. Association for Computational Linguistics.
|
| 268 |
+
Saif M. Mohammad. 2020c. NLP Scholar: A dataset for examining the state of NLP research. In Proceedings of the 12th LREC, pages 868-877, Marseille, France.
|
| 269 |
+
Saif M. Mohammad. 2021. Ethics sheets for AI tasks. In Proceedings of the 60th ACL, Dublin, Ireland.
|
| 270 |
+
Mathias Wullum Nielsen and Jens Peter Andersen. 2021. Global citation inequality is on the rise. Proceedings of the National Academy of Sciences, 118(7):e2012208118.
|
| 271 |
+
Önder Nomaler, Koen Frenken, and Gaston Heimeriks. 2013. Do more distant collaborations have more citation impact? Journal of Informetrics, 7(4):966-971.
|
| 272 |
+
Raj K Pan, Alexander M Petersen, Fabio Pammolli, and Santo Fortunato. 2018. The memory of science: Inflation, myopia, and the knowledge network. Journal of Informetrics, 12(3):656-678.
|
| 273 |
+
Gianmarco Paris, Giulio De Leo, Paolo Menozzi, and Marino Gatto. 1998. Region-based citation bias in science. Nature, 396(6708):210-210.
|
| 274 |
+
Pietro Della Briotta Parolo, Raj Kumar Pan, Rumi Ghosh, Bernardo A. Huberman, Kimmo Kaski, and Santo Fortunato. 2015. Attention decay in science. Journal of Informetrics, 9(4):734-745.
|
| 275 |
+
Gerard Pasterkamp, Joris Rotmans, Dominique de Kleijn, and Cornelius Borst. 2007. Citation frequency: A biased measure of research impact significantly influenced by the geographical origin of research articles. Scientometrics, 70(1):153-165.
|
| 276 |
+
Mukund Rungta, Janvijay Singh, Saif M. Mohammad, and Diyi Yang. 2022. Geographic citation gaps in NLP research. In Proceedings of the 2022 EMNLP, page 1371-1383, Abu Dhabi.
|
| 277 |
+
Natalie Schluter. 2018. The glass ceiling in nlp. In Proceedings of the 2018 EMNLP, pages 2793-2798.
|
| 278 |
+
Sei-Ching Joanna Sin. 2011. International coauthorship and citation impact: A bibliometric study of six LIS journals, 1980-2008. Journal of the American Society for Information Science and Technology, 62(9):1770-1783.
|
| 279 |
+
|
| 280 |
+
Marco Antonio Valenzuela-Escarcega, Vu A. Ha, and Oren Etzioni. 2015. Identifying meaningful citations. In AAAI Workshop: Scholarly Big Data.
|
| 281 |
+
|
| 282 |
+
Alex Verstak, Anurag Acharya, Helder Suzuki, Sean Henderson, Mikhail Iakhiaev, Cliff Chiung Yu Lin, and Namit Shetty. 2014. On the shoulders of giants: The growing impact of older articles. arXiv preprint arXiv:1411.0275.
|
| 283 |
+
|
| 284 |
+
Adam Vogel and Dan Jurafsky. 2012. He said, she said: Gender in the ACL Anthology. In Proceedings of the ACL-2012 Special Workshop on Rediscovering 50 Years of Discoveries, pages 33-41, Jeju Island, Korea. Association for Computational Linguistics.
|
| 285 |
+
|
| 286 |
+
Jan Philip Wahle, Terry Ruas, Saif M. Mohammad, and Bela Gipp. 2022. D3: A Massive Dataset of Scholarly Metadata for Analyzing the State of Computer Science Research. arXiv:2204.13384 [cs].
|
| 287 |
+
|
| 288 |
+
# A Supplementary Statistics and Plots
|
| 289 |
+
|
| 290 |
+
In addition to the primary results presented in the main body of the paper, here, we describe included supplementary material in the form of additional statistics and plots.
|
| 291 |
+
|
| 292 |
+
# A.1 Q3 Results Supplement: Distribution of mAoC Over Years
|
| 293 |
+
|
| 294 |
+
Figure 8 shows the violin plots for distributions of $mA_{o}C$ across various years. If a paper $x$ was published in year $t$ , then $mA_{o}C(x)$ will be a data point for plotting the distribution for year $t$ . The median $mA_{o}C$ for a given year (marked with a white dot within the grey rectangle) reflects the recency of citations, with a lower median $mA_{o}C$ indicating that papers published in that year have cited relatively recent papers.
|
| 295 |
+
|
| 296 |
+
The two halves of the grey rectangle on either side of the median correspond to the second and third quartiles. Observe that the third quartile is always longer (spread across more years than the second quartile. This shows that the rate at which papers are cited is higher in years before the median than in the years after the median. The violin plots indicate that the distributions have a single peak in each of the years considered.
|
| 297 |
+
|
| 298 |
+
Observe that the median $mA_{o}C$ has an increasing trend from 1990 to 2014 (a trend towards citing more older papers) with the exception of a period between 1998 and 2004 when the median decreased. However, most notably, from 2014 onward the median $mA_{o}C$ decreased markedly with every year. (The median $mA_{o}C$ in 2021 is nearly 2.5 years less than that of 2014.)
|
| 299 |
+
|
| 300 |
+
<table><tr><td rowspan="2">Citation Bin</td><td colspan="4">Full AoC</td></tr><tr><td>1965–2021</td><td>1990–1999</td><td>2000–09</td><td>2010–15</td></tr><tr><td>0</td><td>5559</td><td>457</td><td>1062</td><td>1453</td></tr><tr><td>1–9</td><td>26794</td><td>1813</td><td>5354</td><td>7090</td></tr><tr><td>10–49</td><td>21926</td><td>1714</td><td>5804</td><td>6272</td></tr><tr><td>50–99</td><td>4843</td><td>515</td><td>1517</td><td>1275</td></tr><tr><td>100–499</td><td>3860</td><td>496</td><td>1296</td><td>954</td></tr><tr><td>500–999</td><td>332</td><td>45</td><td>105</td><td>94</td></tr><tr><td>1000–1999</td><td>123</td><td>26</td><td>26</td><td>49</td></tr><tr><td>2000+</td><td>106</td><td>21</td><td>34</td><td>27</td></tr></table>
|
| 301 |
+
|
| 302 |
+
Table 3: Number of papers belonging to each citation bin on full AoC dataset, subset of papers published between 1990 to 2000, 2001 to 2010 and 2011 to 2016
|
| 303 |
+
|
| 304 |
+
The blue line in Figure 8 is the mean $mAoC$ . The mean follows a similar trend as the median, with slight variations. In particular, it is consistently higher than the median, indicating that the data is skewed to the right, with a few papers having large $mAoC$ that significantly affect the mean.
|
| 305 |
+
|
| 306 |
+
# A.2 Q6 Results Supplement: Pronounced Topics in the Cited Papers Across Year Intervals
|
| 307 |
+
|
| 308 |
+
We investigated the distribution of the most frequent unigrams and bigrams (ngrams) found in the title of cited papers, grouped by the publication years of the citing paper. Figures 9 and 10 show the unigrams and bigrams with notable changes in citation percentages across the chosen time intervals. A single star $(^{*})$ indicates that the change in the ngram's percentage from the minimum interval value to maximum interval value is more than $1500\%$ for unigrams and $3000\%$ for bigrams. A double star $(^{**})$ denotes that the ngram was not cited at all in at least one of the intervals.
|
| 309 |
+
|
| 310 |
+
# A.3 Q7 Results Supplement: Variation of mAoC and CAD Index Across Citation Count Bins
|
| 311 |
+
|
| 312 |
+
Table 3 shows the number of papers in each citation bin for different segments of papers. We can see that for all the time periods most of the papers have a citation count $< {50}$ .
|
| 313 |
+
|
| 314 |
+
Figures 11a and 11b show the variation of mean $mA_{o}C$ and $CADIndex$ for subsets of papers published between 2001 to 2010 and 2011 to 2016, respectively. These two plots follow a similar pattern to Figure 7a on the full $AoC$ dataset. The $CADIndex$ decreases with increasing the citation bin and the mean $mA_{o}C$ also varies inversely with the citation bin.
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure 8: Distribution of $mAoC$ for papers published between 1990 and 2021.
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 9: Unigram citation percentages of some notable terms found in the titles of cited papers across different time intervals. For example, "Neural" occurred in $11.41\%$ of the titles of cited papers in the 2016-2021 interval.
|
| 321 |
+
|
| 322 |
+
<table><tr><td></td><td>90-99</td><td>00-09</td><td>10-15</td><td>16-21</td></tr><tr><td>Adjoining Grammars*</td><td>0.635</td><td>0.274</td><td>0.084</td><td>0.020</td></tr><tr><td>Alignment Models**</td><td>0.000</td><td>0.513</td><td>0.382</td><td>0.061</td></tr><tr><td>Bert Pre**</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.912</td></tr><tr><td>Bidirectional Transformers**</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.917</td></tr><tr><td>Conditional Random**</td><td>0.000</td><td>0.619</td><td>0.684</td><td>0.284</td></tr><tr><td>Convolutional Neural**</td><td>0.000</td><td>0.000</td><td>0.084</td><td>0.817</td></tr><tr><td>Coreference Resolution*</td><td>0.022</td><td>0.321</td><td>0.765</td><td>0.428</td></tr><tr><td>Cross Lingual*</td><td>0.019</td><td>0.133</td><td>0.408</td><td>1.165</td></tr><tr><td>Deep Bidirectional**</td><td>0.000</td><td>0.000</td><td>0.002</td><td>0.916</td></tr><tr><td>Deep Learning**</td><td>0.000</td><td>0.002</td><td>0.064</td><td>0.679</td></tr><tr><td>Deep Neural**</td><td>0.000</td><td>0.002</td><td>0.119</td><td>0.467</td></tr><tr><td>Distributed Representations*</td><td>0.009</td><td>0.005</td><td>0.158</td><td>0.594</td></tr><tr><td>Domain Adaptation*</td><td>0.002</td><td>0.124</td><td>0.612</td><td>0.506</td></tr><tr><td>Entity Recognition*</td><td>0.007</td><td>0.654</td><td>0.652</td><td>0.954</td></tr><tr><td>Error Rate*</td><td>0.007</td><td>0.343</td><td>0.523</td><td>0.078</td></tr><tr><td>Global Vectors**</td><td>0.000</td><td>0.000</td><td>0.038</td><td>0.527</td></tr><tr><td>Jointly Learning**</td><td>0.009</td><td>0.000</td><td>0.031</td><td>0.461</td></tr><tr><td>Language Inference*</td><td>0.034</td><td>0.011</td><td>0.030</td><td>0.520</td></tr><tr><td>Long Short**</td><td>0.000</td><td>0.005</td><td>0.035</td><td>0.656</td></tr><tr><td>Multi Task*</td><td>0.004</td><td>0.004</td><td>0.046</td><td>0.621</td></tr><tr><td>Named Entity*</td><td>0.028</td><td>1.052</td><td>0.965</td><td>1.052</td></tr><tr><td>Neural Machine**</td><td>0.019</td><td>0.000</td><td>0.031</td><td>3.313</td></tr><tr><td>Open Source*</td><td>0.002</td><td>0.343</td><td>0.829</td><td>0.420</td></tr><tr><td>Parts Program*</td><td>0.464</td><td>0.042</td><td>0.005</td><td>0.001</td></tr><tr><td>Phrase Parser*</td><td>0.464</td><td>0.042</td><td>0.005</td><td>0.001</td></tr><tr><td>Pre Training**</td><td>0.000</td><td>0.000</td><td>0.006</td><td>1.551</td></tr><tr><td>Reading Comprehension*</td><td>0.009</td><td>0.058</td><td>0.050</td><td>0.637</td></tr><tr><td>Recurrent Neural*</td><td>0.015</td><td>0.006</td><td>0.177</td><td>1.144</td></tr><tr><td>Reinforcement Learning*</td><td>0.007</td><td>0.099</td><td>0.155</td><td>0.593</td></tr><tr><td>Relation Extraction**</td><td>0.000</td><td>0.199</td><td>0.463</td><td>0.736</td></tr><tr><td>Semantic Role**</td><td>0.000</td><td>0.462</td><td>0.445</td><td>0.352</td></tr><tr><td>Semi Supervised**</td><td>0.000</td><td>0.209</td><td>0.713</td><td>0.522</td></tr><tr><td>Sentiment Analysis**</td><td>0.000</td><td>0.136</td><td>1.136</td><td>1.289</td></tr><tr><td>Sentiment Classification**</td><td>0.000</td><td>0.109</td><td>0.421</td><td>0.454</td></tr><tr><td>Sequence Learning**</td><td>0.006</td><td>0.000</td><td>0.020</td><td>0.513</td></tr><tr><td>Shared Task**</td><td>0.000</td><td>0.373</td><td>0.869</td><td>1.159</td></tr><tr><td>Short Term*</td><td>0.013</td><td>0.012</td><td>0.045</td><td>0.669</td></tr><tr><td>Social Media**</td><td>0.000</td><td>0.005</td><td>0.258</td><td>0.970</td></tr><tr><td>Source Toolkit*</td><td>0.002</td><td>0.151</td><td>0.487</td><td>0.224</td></tr><tr><td>Stochastic Optimization*</td><td>0.007</td><td>0.006</td><td>0.048</td><td>0.652</td></tr><tr><td>Stochastic Parts*</td><td>0.464</td><td>0.042</td><td>0.005</td><td>0.001</td></tr><tr><td>Support Vector*</td><td>0.004</td><td>0.825</td><td>0.652</td><td>0.188</td></tr><tr><td>Term Memory*</td><td>0.011</td><td>0.009</td><td>0.042</td><td>0.662</td></tr><tr><td>Transfer Learning**</td><td>0.000</td><td>0.010</td><td>0.045</td><td>0.463</td></tr><tr><td>Tree Adjoining*</td><td>1.158</td><td>0.582</td><td>0.155</td><td>0.037</td></tr><tr><td>Unrestricted Text*</td><td>0.579</td><td>0.114</td><td>0.024</td><td>0.006</td></tr><tr><td>Vector Machines*</td><td>0.004</td><td>0.593</td><td>0.473</td><td>0.122</td></tr><tr><td>Word Embeddings**</td><td>0.000</td><td>0.000</td><td>0.076</td><td>1.070</td></tr><tr><td>Word Representations**</td><td>0.000</td><td>0.000</td><td>0.367</td><td>1.065</td></tr></table>
|
| 323 |
+
|
| 324 |
+
Figure 10: Bigram citation percentages of some notable terms found in the titles of cited papers across different time intervals. For example, "Neural Machine" occurred in $3.313\%$ of the titles of cited papers in the 2016-2021 interval.
|
| 325 |
+
|
| 326 |
+

|
| 327 |
+
(a) Papers published between 2000 and 2010.
|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
(b) Papers published between 2010 and 2016.
|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
Figure 11: Variation of mean $mAoC$ and Citation Age Diversity (CAD) (shown on y-axis) for papers with different citation counts (shown on x-axis).
|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
(b) Language model.
|
| 337 |
+
|
| 338 |
+

|
| 339 |
+
(a) Language inference.
|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
(c) Entity recognition.
|
| 345 |
+
(d) Sense disambiguation.
|
| 346 |
+
(e) Speech tagging.
|
| 347 |
+
Figure 12: Variation of mean $mAoC$ and $CADIndex$ (shown on y-axis) for papers with different citation counts (shown on x-axis) for papers published between 1965 and 2021 across various research topics.
|
| 348 |
+
|
| 349 |
+
# Citational Amnesia
|
| 350 |
+
|
| 351 |
+
Demo to predict the number of references, mean age of citation(mAoC), and comparison of mAoC with all the papers in the ACL Anthology. Kindly enter the Semantic Scholar ID(SSID) of the paper in the box and click "Generate"
|
| 352 |
+
|
| 353 |
+
# Retrieving SSID
|
| 354 |
+
|
| 355 |
+
For paper : https://wwwsemanticscholar.org/paper/BERT%3A-Pre-training-of-Deep-Bidirectional-for-Devlin-Chang/df2b0e26d0599ce3e70df8a9da02e51594e0e992SSID is : df2b0e26d0599ce3e70df8a9da02e51594e0e992Note: Currently we only support SSID as the input format
|
| 356 |
+
|
| 357 |
+
Semantic Scholar ID
|
| 358 |
+
|
| 359 |
+
df2b0e26d0599ce3e70df8a9da02e51594e0e992
|
| 360 |
+
|
| 361 |
+
# Generate
|
| 362 |
+
|
| 363 |
+
Number of references
|
| 364 |
+
|
| 365 |
+
56
|
| 366 |
+
|
| 367 |
+
Mean AoC
|
| 368 |
+
|
| 369 |
+
6.142857142857143
|
| 370 |
+
|
| 371 |
+
# Top 5 oldest papers cited:
|
| 372 |
+
|
| 373 |
+
[1953] Title: "Cloze Procedure": A New Tool for Measuring Readability
|
| 374 |
+
[1992] Title: Class-Based n-gram Models of Natural Language
|
| 375 |
+
[2003] Title: Introduction to the CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition
|
| 376 |
+
[2005] Title: A Framework for Learning Predictive Structures from Multiple Tasks and Unlabeled Data
|
| 377 |
+
[2005] Title: Automatically Constructing a Corpus of Sentential
|
| 378 |
+
|
| 379 |
+

|
| 380 |
+
Plot mAoc of your paper is at 49.45-th percentile of all the papers in our database (papers published until 2021 years)
|
| 381 |
+
Figure 13: Screenshot of the online demo to compute Age-of-Citation metrics for a paper.
|
| 382 |
+
|
| 383 |
+
A For every submission:
|
| 384 |
+
|
| 385 |
+
A1. Did you describe the limitations of your work? 8
|
| 386 |
+
A2. Did you discuss any potential risks of your work? Not applicable. Left blank.
|
| 387 |
+
A3. Do the abstract and introduction summarize the paper's main claims?
|
| 388 |
+
A4. Have you used AI writing assistants when working on this paper? Left blank.
|
| 389 |
+
|
| 390 |
+
B Did you use or create scientific artifacts?
|
| 391 |
+
|
| 392 |
+
Not applicable. Left blank.
|
| 393 |
+
|
| 394 |
+
B1. Did you cite the creators of artifacts you used? Not applicable. Left blank.
|
| 395 |
+
B2. Did you discuss the license or terms for use and / or distribution of any artifacts? Not applicable. Left blank.
|
| 396 |
+
B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)? Not applicable. Left blank.
|
| 397 |
+
B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it? Not applicable. Left blank.
|
| 398 |
+
B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.? Not applicable. Left blank.
|
| 399 |
+
B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be. Not applicable. Left blank.
|
| 400 |
+
|
| 401 |
+
C Did you run computational experiments?
|
| 402 |
+
|
| 403 |
+
Left blank.
|
| 404 |
+
|
| 405 |
+
C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used? No response.
|
| 406 |
+
|
| 407 |
+
C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values? No response.
|
| 408 |
+
C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run? No response.
|
| 409 |
+
C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)? No response.
|
| 410 |
+
|
| 411 |
+
# D Did you use human annotators (e.g., crowdworkers) or research with human participants?
|
| 412 |
+
|
| 413 |
+
Left blank.
|
| 414 |
+
|
| 415 |
+
D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.? No response.
|
| 416 |
+
D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)? No response.
|
| 417 |
+
D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used? No response.
|
| 418 |
+
D4. Was the data collection protocol approved (or determined exempt) by an ethics review board? No response.
|
| 419 |
+
D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data? No response.
|
2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a93d83e54e338051779da96d87f0d43a055f0c4e9dbf861a6f8b2ffbcfa541fa
|
| 3 |
+
size 772500
|
2023/Forgotten Knowledge_ Examining the Citational Amnesia in NLP/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/374a8618-2dba-4970-9c92-9dbdb98b467b_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/374a8618-2dba-4970-9c92-9dbdb98b467b_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/374a8618-2dba-4970-9c92-9dbdb98b467b_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:883d02c679beb3fc974e86c9ba7f7cab4204de66b77b7e245d46dea3329dc896
|
| 3 |
+
size 2095886
|
2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/full.md
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FormNetV2: Multimodal Graph Contrastive Learning for Form Document Information Extraction
|
| 2 |
+
|
| 3 |
+
Chen-Yu Lee $^{1*}$ , Chun-Liang Li $^{1}$ , Hao Zhang $^{2}$ , Timothy Dozat $^{2}$ , Vincent Perot $^{2}$ , Guolong Su $^{2}$ , Xiang Zhang $^{1}$ , Kihyuk Sohn $^{2}$ , Nikolai Glushnev $^{3}$ , Renshen Wang $^{2}$ , Joshua Ainslie $^{2}$ , Shangbang Long $^{2}$ , Siyang Qin $^{2}$ , Yasuhisa Fujii $^{2}$ , Nan Hua $^{2}$ , Tomas Pfister $^{1}$ $^{1}$ Google Cloud AI Research, $^{2}$ Google Research, $^{3}$ Google Cloud AI
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
The recent advent of self-supervised pretraining techniques has led to a surge in the use of multimodal learning in form document understanding. However, existing approaches that extend the mask language modeling to other modalities require careful multitask tuning, complex reconstruction target designs, or additional pre-training data. In FormNetV2, we introduce a centralized multimodal graph contrastive learning strategy to unify self-supervised pre-training for all modalities in one loss. The graph contrastive objective maximizes the agreement of multimodal representations, providing a natural interplay for all modalities without special customization. In addition, we extract image features within the bounding box that joins a pair of tokens connected by a graph edge, capturing more targeted visual cues without loading a sophisticated and separately pre-trained image encoder. FormNetV2 establishes new state-of-the-art performance on FUNSD, CORD, SROIE and Payment benchmarks with a more compact model size.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Automated information extraction is essential for many practical applications, with form-like documents posing unique challenges compared to article-like documents, which have led to an abundance of recent research in the area. In particular, form-like documents often have complex layouts that contain structured objects like tables, columns, and fillable regions. Layout-aware language modeling has been critical for many successes (Xu et al., 2020; Majumder et al., 2020; Lee et al., 2022).
|
| 12 |
+
|
| 13 |
+
To further boost the performance, many recent approaches adopt multiple modalities (Xu et al.,
|
| 14 |
+
|
| 15 |
+
2021; Huang et al., 2022; Appalaraju et al., 2021). Specifically, the image modality adds more structural information and visual cues to the existing layout and text modalities. They therefore extend the masked language modeling (MLM) from text to masked image modeling (MIM) for image and text-image alignment (TIA) for cross-modal learning. The alignment objective may also help to prime the layout modality, though it does not directly involve text layouts or document structures.
|
| 16 |
+
|
| 17 |
+
In this work, we propose FormNetV2, a multimodal transformer model for form information extraction. Unlike existing works – which may use the whole image as one representation (Appalaraju et al., 2021), or image patches (Xu et al., 2021), or image features of token bounding boxes (Xu et al., 2020) – we propose using image features extracted from the region bounded by a pair of tokens connected in the constructed graph. This allows us to capture a richer and more targeted visual component of the intra- and inter-entity information. Furthermore, instead of using multiple self-supervised objectives for each individual modality, we introduce graph contrastive learning (Li et al., 2019; You et al., 2020; Zhu et al., 2021) to learn multimodal embeddings jointly. These two additions to FormNetV1 (Lee et al., 2022) enable the graph convolutions to produce better super-tokens, resulting in both improved performance and a smaller model size.
|
| 18 |
+
|
| 19 |
+
In experiments, FormNetV2 outperforms its predecessor FormNetV1 as well as the existing multimodal approaches on four standard benchmarks. In particular, compared with FormNetV1, FormNetV2 outperforms it by a large margin on FUNSD (86.35 v.s. 84.69) and Payment (94.90 v.s. 92.19); compared with DocFormer (Appalaraju et al., 2021), FormNetV2 outperforms it on FUNSD and CORD with nearly $2.5\mathrm{x}$ less number of parameters.
|
| 20 |
+
|
| 21 |
+
# 2 Related Work
|
| 22 |
+
|
| 23 |
+
Early works on form document information extraction are based on rule-based models or learning-based models with handcrafted features (Lebourgeois et al., 1992; O'Gorman, 1993; Ha et al., 1995; Simon et al., 1997; Marinai et al., 2005; Chiticariu et al., 2013). Later on, various deep neural models have been proposed, including methods based on recurrent nets (Palm et al., 2017; Aggarwal et al., 2020), convolutional nets (Katti et al., 2018; Zhao et al., 2019; Denk and Reisswig, 2019), and transformers (Majumder et al., 2020; Garncarek et al., 2020; Wang et al., 2022c).
|
| 24 |
+
|
| 25 |
+
Recently, in addition to the text, researchers have explored the layout attribute in form document modeling, such as the OCR word reading order (Lee et al., 2021; Gu et al., 2022b), text coordinates (Majumder et al., 2020; Xu et al., 2020; Garncarek et al., 2020; Li et al., 2021a; Lee et al., 2022), layout grids (Lin et al., 2021), and layout graphs (Lee et al., 2022). The image attribute also provides essential visual cues such as fonts, colors, and sizes. Other visual signals can be useful as well, including logos and separating lines from form tables. Xu et al. (2020) uses Faster R-CNN (Ren et al., 2015) to extract token image features; Appalaraju et al. (2021) uses ResNet50 (He et al., 2016) to extract full document image features; Li et al. (2022) use ViT (Dosovitskiy et al., 2020) with FPN (Lin et al., 2017) to extract non-overlapping patch image features. These sophisticated image embedders require a separate pre-training step using external image datasets (e.g. ImageNet (Russakovsky et al., 2015) or PubLayNet (Zhong et al., 2019)), and sometimes depend upon a visual codebook pre-trained by a discrete variational autoencoder (dVAE).
|
| 26 |
+
|
| 27 |
+
When multiple modalities come into play, different supervised or self-supervised multimodal pre-training techniques have been proposed. They include mask prediction, reconstruction, and matching for one or more modalities (Xu et al., 2020, 2021; Appalaraju et al., 2021; Li et al., 2021b; Gu et al., 2022a; Huang et al., 2022; Li et al., 2022; Pramanik et al., 2020). Next-word prediction (Kim et al., 2022) or length prediction (Li et al., 2021c) have been studied to bridge text and image modalities. Direct and relative position predictions (Cosma et al., 2020; Wei et al., 2020; Li et al., 2021a; Wang et al., 2022a; Li et al., 2021c) have been proposed to explore the underlying lay
|
| 28 |
+
|
| 29 |
+
out semantics of documents. Nevertheless, these pre-training objectives require strong domain expertise, specialized designs, and multi-task tuning between involved modalities. In this work, our proposed graph contrastive learning performs multimodal pre-training in a centralized design, unifying the interplay between all involved modalities without the need for prior domain knowledge.
|
| 30 |
+
|
| 31 |
+
# 3 FormNetV2
|
| 32 |
+
|
| 33 |
+
We briefly review the backbone architecture FormNetV1 (Lee et al., 2022) in Sec 3.1, introduce the multimodal input design in Sec 3.2, and detail the multimodal graph contrastive learning in Sec 3.3.
|
| 34 |
+
|
| 35 |
+
# 3.1 Preliminaries
|
| 36 |
+
|
| 37 |
+
ETC. FormNetV1 (Lee et al., 2022) uses Extended Transformer Construction (ETC; Ainslie et al., 2020) as the backbone to work around the quadratic memory cost of attention for long form documents. ETC permits only a few special tokens to attend to every token in the sequence (global attention); all other tokens may only attend to $k$ local neighbors within a small window, in addition to these special tokens (local attention). This reduces the computational complexity from $O(n^{2})$ query-key pairs that need scoring to $O(kn)$ . Eq. (2) formalizes the computation of the attention vector $\mathbf{a}_0$ for a model with one global token at index 0, and Eq. (2) formalizes computation of the attention vector $\mathbf{a}_{i > 0}$ for the rest of the tokens in the model.
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\mathbf {a} _ {0} = \operatorname {a t t e n d} \left(\mathbf {h} _ {0}, \left[ \mathbf {h} _ {0}, \mathbf {h} _ {1}, \dots , \mathbf {h} _ {n} \right]\right) \tag {1}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\mathbf {a} _ {i > 0} = \operatorname {a t t e n d} \left(\mathbf {h} _ {i}, \left[ \mathbf {h} _ {0}, \mathbf {h} _ {i - k}, \dots , \mathbf {h} _ {i + k} \right]\right) \tag {2}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
Rich Attention. To address the distorted semantic relatedness of tokens created by imperfect OCR serialization, FormNetV1 adapts the attention mechanism to model spatial relationships between tokens by proposing Rich Attention, a mathematically sound way of conditioning attention on low-level spatial features without resorting to quantizing the document into regions associated with distinct embeddings in a lookup table. In Rich Attention, the model constructs the (pre-softmax) attention score (Eq. 10) from multiple components: the usual transformer attention score (Eq. 7); the order of tokens along the x-axis and the y-axis (Eq. 8); and the log distance (in number of pixels) between tokens, again along both axes (Eq. 9). The expression for a transformer head with Rich Attention on the x-axis is provided in Eqs. (3-10); we
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 1: Graph of a sample region from a form. Token bounding boxes are identified, and from them the graph is constructed. Nodes are labeled and the graph structure is shown abstracted away from its content.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: Multimodal graph representations are composed from three modalities: text at node-level; concatenation of layout and image at edge-level.
|
| 54 |
+
|
| 55 |
+
refer the interested reader to Lee et al. (2022) for further details.
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
o _ {i j} = \operatorname {i n t} \left(x _ {i} < x _ {j}\right) \tag {3}
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
d _ {i j} = \ln \left(1 + \left| x _ {i} - x _ {j} \right|\right) \tag {4}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
p _ {i j} = \operatorname {S i g m o i d} \left(\operatorname {a f f i n e} ^ {(p)} \left([ \mathbf {q} _ {i}; \mathbf {k} _ {j} ]\right)\right) \tag {5}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\mu_ {i j} = \operatorname {a f f i n e} ^ {(\mu)} ([ \mathbf {q} _ {i}; \mathbf {k} _ {j} ]) \tag {6}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
s _ {i j} ^ {(t)} = \mathbf {q} _ {i} ^ {\top} \mathbf {k} _ {j} \tag {7}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
s _ {i j} ^ {(o)} = o _ {i j} \ln \left(p _ {i j}\right) + \left(1 - o _ {i j}\right) \ln \left(1 - p _ {i j}\right) \tag {8}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
s _ {i j} ^ {(d)} = - \frac {\theta^ {2} \left(d _ {i j} - \mu_ {i j}\right) ^ {2}}{2} \tag {9}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
s _ {i j} = s _ {i j} ^ {(t)} + s _ {i j} ^ {(o)} + s _ {i j} ^ {(d)} \tag {10}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
GCN. Finally, FormNetV1 includes a graph convolutional network (GCN) contextualization step before serializing the text to send to the ETC transformer component. The graph for the GCN locates up to $K$ neighbors for each token - defined broadly by geographic "nearness" - before convolving their token embeddings to build up supertoken representations as shown in Figure 1. This allows the network to build a weaker but more complete picture of the layout modality than Rich Attention, which is constrained by local attention.
|
| 90 |
+
|
| 91 |
+
The final system was pretrained end-to-end with a standard masked language modeling (MLM) objective. See Sec A.3 in Appendix for more details.
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
(a) Within entity
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
(b) Cross entity
|
| 98 |
+
Figure 3: Image features are extracted from bounding boxes (red) that join pairs of tokens connected by edges to capture (a) similar patterns within an entity, or (b) dissimilar patterns or separating lines between entities.
|
| 99 |
+
|
| 100 |
+
# 3.2 Multimodal Input
|
| 101 |
+
|
| 102 |
+
In FormNetV2, we propose adding the image modality to the model in addition to the text and layout modalities that are already used in FormNetV1 (Sec 3.3 in Lee et al. (2022)). We expect that image features from documents contain information absent from the text or the layout, such as fonts, colors, and sizes of OCR words.
|
| 103 |
+
|
| 104 |
+
To do this, we run a ConvNet to extract dense image features on the whole document image, and then use Region-of-Interest (RoI) pooling (He et al., 2017) to pool the features within the bounding box that joins a pair of tokens connected by a GCN edge. Finally, the RoI pooled features go through another small ConvNet for refinement. After the image features are extracted, they are injected into the network through concatenation with the existing layout features at edges of the GCN. Figure 2 illustrates how all three modalities are utilized in this work and Sec 4.2 details the architecture.
|
| 105 |
+
|
| 106 |
+
Most of the recent approaches (Table 1) that incorporate image modality extract features from either (a) the whole image as one vector, (b) non-overlapping image patches as extra input tokens to transformers, or (c) token bounding boxes that are added to the text features for all tokens.
|
| 107 |
+
|
| 108 |
+
However, form document images often contain OCR words that are relatively small individually and are densely distributed in text blocks. They also contain a large portion of the background region without any texts. Therefore, the aforementioned method (a) only generates global visual representations with large noisy background regions but not
|
| 109 |
+
|
| 110 |
+

|
| 111 |
+
Figure 4: Multimodal graph contrastive learning. Two corrupted graphs are sampled from an input graph by corruption of graph topology (edges) and attributes (multimodal features). The system is trained to identify which pair of nodes across all pairs of corrupted nodes (including within the same graph) came from the same node.
|
| 112 |
+
|
| 113 |
+
targeted entity representations; method (b) tends to be sensitive to the patch size and often chops OCR words or long entities to different patches, while also increasing computational cost due to the increased token length; and method (c) only sees regions within each token's bounding box and lacks context between or outside of tokens.
|
| 114 |
+
|
| 115 |
+
On the other hand, the proposed edge-level image feature representation can precisely model the relationship between two nearby, potentially related "neighbor" tokens and the surrounding region, while ignoring all irrelevant or distracting regions. Figure 3 demonstrates that the targeted RoI image feature pooling through the union bounding box can capture any similar patterns (e.g. font, color, size) within an entity (left) or dissimilar patterns or separating lines between entities (right). See Sec 4.4 for detailed discussion.
|
| 116 |
+
|
| 117 |
+
# 3.3 Multimodal Graph Contrastive Learning
|
| 118 |
+
|
| 119 |
+
Previous work in multimodal document understanding requires manipulating multiple supervised or self-supervised objectives to learn embeddings from one or multiple modalities during pre-training. By contrast, in FormNetV2, we propose utilizing the graph representation of a document to learn multimodal embeddings with a contrastive loss.
|
| 120 |
+
|
| 121 |
+
Specifically, we first perform stochastic graph corruption to sample two corrupted graphs from the original input graph of each training instance. This step generates node embeddings based on partial contexts. Then, we apply a contrastive objective by maximizing agreement between tokens at node-level. That is, the model is asked to identify which pairs of nodes across all pairs of nodes - within the same graph and across graphs - came from the
|
| 122 |
+
|
| 123 |
+
same original node. We adopt the standard normalized temperature-scaled cross entropy (NT-Xent) loss formulation (Chen et al., 2020; Wu et al., 2018; Oord et al., 2018; Sohn, 2016) with temperature 0.1 in all experiments.
|
| 124 |
+
|
| 125 |
+
To build a centralized contrastive loss that unifies the interactions between multiple input modalities, we corrupt the original graph at both graph topology level and graph feature level. Topology corruption includes edge dropping by randomly removing edges in the original graph. Feature corruption includes applying dropping to all three modalities: dropping layout and image features from edges and dropping text features from nodes. Note that we only corrupt the graph in the GCN encoder and keep the ETC decoder intact to leverage the semantically meaningful graph representation of the document during graph contrastive learning.
|
| 126 |
+
|
| 127 |
+
To further diversify the contexts in two corrupted graphs and reduce the risk of training the model to over-rely on certain modalities, we further design an inductive graph feature dropping mechanism by adopting imbalanced drop-rates of modalities between the two corrupted graphs. Precisely, for a given modality, we discard $p$ percent of the features in the first corrupted graph and discard $1 - p$ percent of the features in the second corrupted graph. Experiments in Sec 4.4 show that $p = 0.8$ works best empirically and the inductive feature dropping mechanism provides further performance boost over the vanilla version. We stipulate that this boom-and-bust approach to regularization allows the model to learn rich, complex representations that take full advantage of the model's capacity without becoming overly dependent on specific feature interactions. Figure 4 illustrates the overall
|
| 128 |
+
|
| 129 |
+
process.
|
| 130 |
+
|
| 131 |
+
The proposed graph contrastive objective is also general enough in principle to adopt other corruption mechanisms (Zhu et al., 2020; Hassani and Khasahmadi, 2020; You et al., 2020; Velickovic et al., 2019). The multimodal feature dropping provides a natural playground to consume and allow interactions between multiple input modalities in one single loss design. It is straightforward to extend the framework to include more modalities without the need for hand crafting specialized loss by domain experts. To the best of our knowledge, we are the first to use graph contrastive learning during pre-training for form document understanding.
|
| 132 |
+
|
| 133 |
+
# 4 Evaluation
|
| 134 |
+
|
| 135 |
+
# 4.1 Datasets
|
| 136 |
+
|
| 137 |
+
FUNSD. FUNSD (Jaume et al., 2019) contains a collection of research, marketing, and advertising forms that vary extensively in their structure and appearance. The dataset consists of 199 annotated forms with 9,707 entities and 31,485 word-level annotations for 4 entity types: header, question, answer, and other. We use the official 75-25 split for the training and test sets.
|
| 138 |
+
|
| 139 |
+
CORD. CORD (Park et al., 2019) contains over 11,000 Indonesian receipts from shops and restaurants. The annotations are provided in 30 fine-grained semantic entities such as store name, quantity of menu, tax amount, discounted price, etc. We use the official 800-100-100 split for training, validation, and test sets.
|
| 140 |
+
|
| 141 |
+
SROIE. The ICDAR 2019 Challenge on Scanned Receipts OCR and key Information Extraction (SROIE) (Huang et al., 2019) offers 1,000 whole scanned receipt images and annotations. 626 samples are for training and 347 samples are for testing. The task is to extract four predefined entities: company, date, address, or total.
|
| 142 |
+
|
| 143 |
+
Payment. We use the large-scale payment data (Majumder et al., 2020) that consists of roughly 10,000 documents and 7 semantic entity labels from human annotators. We follow the same evaluation protocol and dataset splits used in Majumder et al. (2020).
|
| 144 |
+
|
| 145 |
+
# 4.2 Experimental Setup
|
| 146 |
+
|
| 147 |
+
We follow the FormNetV1 (Lee et al., 2022) architecture with a slight modification to incorporate multiple modalities used in the proposed method.
|
| 148 |
+
|
| 149 |
+
Our backbone model consists of a 6-layer GCN encoder to generate structure-aware super-tokens, followed by a 12-layer ETC transformer decoder equipped with Rich Attention for document entity extraction. The number of hidden units is set to 768 for both GCN and ETC. The number of attention heads is set to 1 in GCN and 12 in ETC. The maximum sequence length is set to 1024. We follow Ainslie et al. (2020); Lee et al. (2022) for other hyper-parameter settings. For the image embedder architecture, see Sec A.1 in Appendix.
|
| 150 |
+
|
| 151 |
+
Pre-training. We pre-train FormNetV2 using two unsupervised objectives: Masked Language Modeling (MLM) (Taylor, 1953; Devlin et al., 2019) and the proposed multimodal Graph Contrastive Learning (GCL).
|
| 152 |
+
|
| 153 |
+
Different from BERT (Devlin et al., 2019), here MLM has access to layout and image modalities during pre-training similar to Appalaraju et al. (2021); Xu et al. (2021, 2020). Nevertheless, the layout and image features are constructed at edge level instead of at node level, supplementing the text features for better underlying representation learning without directly leaking the trivial information.
|
| 154 |
+
|
| 155 |
+
GCL provides a natural playground for effective interactions between all three modalities from a document in a contrastive fashion. For each graph representation of a document, we generate two corrupted views by edge dropping, edge feature dropping, and node feature dropping with dropping rates $\{0.3, 0.8, 0.8\}$ , respectively. The weight matrices in both GCN and ETC are shared across the two views.
|
| 156 |
+
|
| 157 |
+
We follow Appalaraju et al. (2021); Xu et al. (2021, 2020) and use the large-scale IIT-CDIP document collection (Lewis et al., 2006) for pretraining, which contains 11 million document images. We train the models from scratch using Adam optimizer with batch size of 512. The learning rate is set to 0.0002 with a warm-up proportion of 0.01. We find that GCL generally converges faster than MLM, therefore we set the loss weightings to 1 and 0.5 for MLM and GCL, respectively.
|
| 158 |
+
|
| 159 |
+
Note that we do not separately pre-train or load a pre-trained checkpoint for the image embedder as done in other recent approaches shown in Table 1. In fact, in our implementation, we find that using sophisticated image embedders or pre-training with natural images, such as ImageNet (Russakovsky et al., 2015), do not improve the final downstream
|
| 160 |
+
|
| 161 |
+
<table><tr><td>Dataset</td><td>Method</td><td>P</td><td>R</td><td>F1</td><td>F1†</td><td>Modality</td><td>Image Embedder</td><td>#Params</td></tr><tr><td rowspan="11">FUNSD</td><td>SPADE (Hwang et al., 2021)</td><td>-</td><td>-</td><td>70.5</td><td>-</td><td>T+L</td><td>-</td><td>110M</td></tr><tr><td>UniLMv2 (Bao et al., 2020)</td><td>67.80</td><td>73.91</td><td>70.72</td><td>-</td><td>T</td><td>-</td><td>355M</td></tr><tr><td>LayoutLMv1 (Xu et al., 2020)</td><td>75.36</td><td>80.61</td><td>77.89</td><td>-</td><td>T+L</td><td>-</td><td>343M</td></tr><tr><td>DocFormer (Appalaraju et al., 2021)</td><td>81.33</td><td>85.44</td><td>83.33</td><td>-</td><td>T+L+I</td><td>ResNet50</td><td>502M</td></tr><tr><td>FormNetV1 (Lee et al., 2022)</td><td>85.21</td><td>84.18</td><td>84.69</td><td>-</td><td>T+L</td><td>-</td><td>217M</td></tr><tr><td>LayoutLMv1 (Xu et al., 2020)</td><td>76.77</td><td>81.95</td><td>79.27</td><td>-</td><td>T+L+I</td><td>ResNet101</td><td>160M</td></tr><tr><td>LayoutLMv2 (Xu et al., 2021)</td><td>83.24</td><td>85.19</td><td>84.20</td><td>-</td><td>T+L+I</td><td>ResNeXt101-FPN</td><td>426M</td></tr><tr><td>DocFormer (Appalaraju et al., 2021)</td><td>82.29</td><td>86.94</td><td>84.55</td><td>-</td><td>T+L+I</td><td>ResNet50</td><td>536M</td></tr><tr><td>StructuralLM (Li et al., 2021a)</td><td>-</td><td>-</td><td>-</td><td>85.14</td><td>T+L</td><td>-</td><td>355M</td></tr><tr><td>LayoutLMv3 (Huang et al., 2022)</td><td>81.35</td><td>83.75</td><td>82.53</td><td>92.08</td><td>T+L+I</td><td>Tokenization</td><td>368M</td></tr><tr><td>FormNetV2 (ours)</td><td>85.78</td><td>86.94</td><td>86.35</td><td>92.51</td><td>T+L+I</td><td>3-layer ConvNet</td><td>204M</td></tr><tr><td rowspan="10">CORD</td><td>SPADE (Hwang et al., 2021)</td><td>-</td><td>-</td><td>91.5</td><td>-</td><td>T+L</td><td>-</td><td>110M</td></tr><tr><td>UniLMv2 (Bao et al., 2020)</td><td>91.23</td><td>92.89</td><td>92.05</td><td>-</td><td>T</td><td>-</td><td>355M</td></tr><tr><td>LayoutLMv1 (Xu et al., 2021)</td><td>94.32</td><td>95.54</td><td>94.93</td><td>-</td><td>T+L</td><td>-</td><td>343M</td></tr><tr><td>DocFormer (Appalaraju et al., 2021)</td><td>96.46</td><td>96.14</td><td>96.30</td><td>-</td><td>T+L+I</td><td>ResNet50</td><td>502M</td></tr><tr><td>FormNetV1 (Lee et al., 2022)</td><td>98.02</td><td>96.55</td><td>97.28</td><td>-</td><td>T+L</td><td>-</td><td>345M</td></tr><tr><td>LayoutLMv2 (Xu et al., 2021)</td><td>95.65</td><td>96.37</td><td>96.01</td><td>-</td><td>T+L+I</td><td>ResNeXt101-FPN</td><td>426M</td></tr><tr><td>TILT (Powalski et al., 2021)</td><td>-</td><td>-</td><td>96.33</td><td>-</td><td>T+L+I</td><td>U-Net</td><td>780M</td></tr><tr><td>DocFormer (Appalaraju et al., 2021)</td><td>97.25</td><td>96.74</td><td>96.99</td><td>-</td><td>T+L+I</td><td>ResNet50</td><td>536M</td></tr><tr><td>LayoutLMv3 (Huang et al., 2022)</td><td>95.82</td><td>96.03</td><td>95.92</td><td>97.46</td><td>T+L+I</td><td>Tokenization</td><td>368M</td></tr><tr><td>FormNetV2 (ours)</td><td>97.74</td><td>97.00</td><td>97.37</td><td>97.70</td><td>T+L+I</td><td>3-layer ConvNet</td><td>204M</td></tr><tr><td rowspan="4">SROIE</td><td>UniLMv2 (Bao et al., 2020)</td><td>-</td><td>-</td><td>94.88</td><td>-</td><td>T</td><td>-</td><td>355M</td></tr><tr><td>LayoutLMv1 (Xu et al., 2021)</td><td>95.24</td><td>95.24</td><td>95.24</td><td>-</td><td>T+L</td><td>-</td><td>343M</td></tr><tr><td>LayoutLMv2 (Xu et al., 2021)</td><td>99.04</td><td>96.61</td><td>97.81</td><td>-</td><td>T+L+I</td><td>ResNeXt101-FPN</td><td>426M</td></tr><tr><td>FormNetV2 (ours)</td><td>98.56</td><td>98.05</td><td>98.31</td><td>-</td><td>T+L+I</td><td>3-layer ConvNet</td><td>204M</td></tr><tr><td rowspan="3">Payment</td><td>NeuralScoring (Majumder et al., 2020)</td><td>-</td><td>-</td><td>87.80</td><td>-</td><td>T+L</td><td>-</td><td>-</td></tr><tr><td>FormNetV1 (Lee et al., 2022)</td><td>92.70</td><td>91.69</td><td>92.19</td><td>-</td><td>T+L</td><td>-</td><td>217M</td></tr><tr><td>FormNetV2 (ours)</td><td>94.11</td><td>95.71</td><td>94.90</td><td>-</td><td>T+L+I</td><td>3-layer ConvNet</td><td>204M</td></tr></table>
|
| 162 |
+
|
| 163 |
+
Table 1: Entity-level precision, recall, and F1 score comparisons on four standard benchmarks. “T/L/I” denotes “text/layout/image” modality. The proposed FormNetV2 establishes new state-of-the-art results on all four datasets. FormNetV2 significantly outperforms the most recent DocFormer (Appalaraju et al., 2021) and LayoutLMv3 (Huang et al., 2022) while using a $38\%$ and $55\%$ sized model, respectively. Note that LayoutLMv3 (Huang et al., 2022) and StructuralLM (Li et al., 2021a) use segment-level layout positions that incorporate ground truth entity bounding boxes, which is less practical for real-world applications. We nevertheless report our results under the same protocol in column $\mathbf{F}1^{\dagger}$ . See Sec 4.3 and Sec A.2 in Appendix for details.
|
| 164 |
+
|
| 165 |
+
entity extraction F1 scores, and they sometimes even degrade the performance. This might be because the visual patterns presented in form documents are drastically different from natural images that have multiple real objects. The best practice for conventional vision tasks (classification, detection, segmentation) might not be optimal for form document understanding.
|
| 166 |
+
|
| 167 |
+
Fine-tuning. We fine-tune all models for the downstream entity extraction tasks in the experiments using Adam optimizer with batch size of 8. The learning rate is set to 0.0001 without warm-up. The fine-tuning is conducted on Tesla V100 GPUs for approximately 10 hours on the largest corpus. Other hyper-parameters follow the settings in Lee et al. (2022).
|
| 168 |
+
|
| 169 |
+
# 4.3 Benchmark Results
|
| 170 |
+
|
| 171 |
+
Table 1 lists the results that are based on the same evaluation protocol<sup>1</sup>.
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 5: Model Size vs. Entity Extraction F1 Score on FUNSD benchmark. The FormNetV2 family significantly outperforms other recent approaches – FormNetV2 achieves highest F1 score (86.35%) while using a 2.6x smaller model than DocFormer (84.55%; Appalaraju et al., 2021). FormNetV2 also outperforms FormNetV1 (Lee et al., 2022) by a large margin (1.66 F1) while using fewer parameters.
|
| 175 |
+
|
| 176 |
+
As the field is actively growing, researchers have started to explore incorporating additional
|
| 177 |
+
|
| 178 |
+
information into the system. For example, LayoutLMv3 (Huang et al., 2022) and StructuralLM (Li et al., 2021a) use segment-level layout positions derived from ground truth entity bounding boxes - the {Begin, Inside, Outside, End, Single} schema information (Ratinov and Roth, 2009) that determine the spans of entities are given to the model, which is less practical for real-world applications. We nevertheless report our results under the same protocol in column $\mathbf{F1}^{\dagger}$ in Table 1. We also report LayoutLMv3 results without ground-truth entity segments for comparisons.
|
| 179 |
+
|
| 180 |
+
Furthermore, UDoc (Gu et al., 2022a) uses additional paragraph-level supervision returned by a third-party OCR engine EasyOCR $^2$ . Additional PubLayNet (Zhong et al., 2019) dataset is used to pre-train the vision backbone. UDoc also uses different training/test splits (626/247) on CORD instead of the official one (800/100) adopted by other works. ERNIE-mmLayout (Wang et al., 2022b) utilizes a third-party library $\mathrm{spaCy}^3$ to provide external knowledge for the Common Sense Enhancement module in the system. The F1 scores on FUNSD and CORD are $85.74\%$ and $96.31\%$ without the external knowledge. We hope the above discussion can help clarify the standard evaluation protocol and decouple the performance improvement from modeling design vs. additional information.
|
| 181 |
+
|
| 182 |
+
Figure 5 shows model size vs. F1 score for the recent approaches that are directly comparable. The proposed method significantly outperforms other approaches in both F1 score and parameter efficiency: FormNetV2 achieves highest F1 score (86.35%) while using a 38% sized model than DocFormer (84.55%; Appalaraju et al., 2021). FormNetV2 also outperforms FormNetV1 (Lee et al., 2022) by a large margin (1.66 F1) while using fewer parameters. Table 1 shows that FormNetV2 outperforms LayoutLMv3 (Huang et al., 2022) and StructuralLM (Li et al., 2021a) with a considerable performance leap while using a 55% and 57% sized model, respectively. From Table 1 we also observe that using all three modalities (text+layout+image) generally outperforms using two modalities (text+layout), and using two modalities (text+layout) outperforms using one modality (text) only across different approaches.
|
| 183 |
+
|
| 184 |
+
# 4.4 Ablation Studies
|
| 185 |
+
|
| 186 |
+
We perform studies over the effect of image modality, graph contrastive learning, and decoupled graph corruption. The backbone for these studies is a 4-layer 1-attention-head GCN encoder followed by a 4-layer 8-attention-head ETC transformers decoder with 512 hidden units. The model is pre-trained on the 1M IIT-CDIP subset. All other hyperparameters follow Sec 4.2.
|
| 187 |
+
|
| 188 |
+
Effect of Image Modality and Image Embedder. Table 2 lists results of FormNetV1 (a) backbone only, (b) with additional tokens constructed from image patches $^4$ , and (c) with the proposed image feature extracted from edges of a graph. The networks are pre-trained with MLM only to showcase the impact of input with image modality.
|
| 189 |
+
|
| 190 |
+
We observe that while (b) provides slight F1 score improvement, it requires $32\%$ additional parameters over baseline (a). The proposed (c) approach achieves a significant F1 boost with less than $1\%$ additional parameters over baseline (a). Secondly, we find the performance of more advanced image embedders (He et al., 2016) is inferior to the 3-layer ConvNet used here, which suggests that these methods may be ineffective in utilizing image modality. Nevertheless, the results demonstrate the importance of image modality as part of the multimodal input. Next we will validate the importance of an effective multimodal pre-training mechanism through graph contrastive learning.
|
| 191 |
+
|
| 192 |
+
<table><tr><td>Method</td><td>FUNSD</td><td>CORD</td><td>#Params</td></tr><tr><td>FormNetV1</td><td>82.53</td><td>95.16</td><td>81.7M</td></tr><tr><td>FormNetV1+Image Patch</td><td>82.65</td><td>95.43</td><td>107.0M</td></tr><tr><td>FormNetV1+Edge Image (ours)</td><td>83.13</td><td>95.85</td><td>82.3M</td></tr></table>
|
| 193 |
+
|
| 194 |
+
Table 2: F1 with different image modality setups.
|
| 195 |
+
|
| 196 |
+
Effect of Graph Contrastive Learning. The graph corruption step (Figure 4) in the proposed multimodal graph contrastive learning requires corruption of the original graph at both topology and feature levels. Considering the corruption happens in multiple places: edges, edge features, and node features, a naive graph corruption implementation would be to use the same drop-rate value everywhere. In Figure 6(a)(b), we show the downstream entity extraction F1 scores on FUNSD and CORD datasets by varying the dropping rate value during the graph contrastive pre-training. The selected
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
(a) FUNSD
|
| 200 |
+
|
| 201 |
+

|
| 202 |
+
(b) CORD
|
| 203 |
+
|
| 204 |
+

|
| 205 |
+
(c) FUNSD
|
| 206 |
+
Figure 6: Entity Extraction F1 Score vs. Graph Corruption Mechanism on FUNSD and CORD benchmarks. (a)(b) show results using the same drop-rate across modalities. The proposed multimodal graph contrastive learning improves MLM pretraining at almost all drop-rates; (c)(d) show results using different drop-rates across modalities. The decoupled dropping mechanism permits further boosts to the F1 scores over non-decoupled counterparts. See Sec 4.4 for discussion.
|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
(d) CORD
|
| 210 |
+
|
| 211 |
+
dropping rate is shared across all aforementioned places.
|
| 212 |
+
|
| 213 |
+
Results show that the proposed multimodal graph contrastive learning works out of the box across a wide range of dropping rates. It demonstrates the necessity of multimodal corruption at both topology level and feature level - it brings up to $0.66\%$ and $0.64\%$ F1 boost on FUNSD and CORD respectively, when the model is pre-trained on MLM plus the proposed graph contrastive learning over MLM only. Our method is also stable to perturbation of different drop-rates.
|
| 214 |
+
|
| 215 |
+
We observe less or no performance improvement when extreme drop-rates are used; for example, dropping $10\%$ edges and features or dropping $90\%$ edges and features. Intuitively, dropping too few or too much information provides either no node context changes or too few remaining node contexts in different corrupted graphs for effective contrastive learning.
|
| 216 |
+
|
| 217 |
+
Effect of Decoupled Graph Corruption. In this study, we investigate whether decoupling the drop-rate in different places of graph corruption can learn better representations during pre-training and bring further improvement to the downstream entity extraction tasks. Specifically, we select different dropping rates for all four different places: edge, layout and image features at edge level, and text features at node level. At feature level (layout, image, text), when one of the corrupted graphs selects dropping rate $p$ for a certain feature, the other corrupted graph will use the complement of the selected dropping rate $1 - p$ for the same feature as introduced in Sec 3.3. This inductive multimodal contrastive design creates stochastically imbalanced information access to the features between two cor
|
| 218 |
+
|
| 219 |
+
rupted views. It provides more diverse contexts at node level in different views and makes the optimization of the contrastive objective harder, ideally generating more semantically meaningful representations between the three modalities.
|
| 220 |
+
|
| 221 |
+
Figure 6(c)(d) show the downstream entity extraction F1 scores on FUNSD and CORD datasets by pre-training with three different edge dropping rates and three different feature dropping rates. We observe that decoupling the dropping rate at various levels further boosts the performance on both datasets - it brings another $0.34\%$ and $0.07\%$ F1 boost on FUNSD and CORD respectively, when decoupled dropping rates are used over the non-decoupled ones.
|
| 222 |
+
|
| 223 |
+
We also observe nonlinear interactions between different dropping rates at edge level and feature level. The best performing feature dropping rate might be sub-optimal when a different edge dropping rate is applied. This is noteworthy but not surprising behavior, since different edge dropping rates would drastically change the graph topology (and therefore the node embeddings). We expect the amount of information needed for maximizing the agreement of node contexts between two corrupted graphs to be different when the graph topology is altered. Nevertheless, we find that low edge dropping rates (e.g. 0.3) generally perform better than high edge dropping rates, and therefore select a low edge dropping rate in our final design.
|
| 224 |
+
|
| 225 |
+
Visualization. We visualize (Vig, 2019) the local-to-local attention scores of a CORD example for model pre-trained with MLM only and MLM+GCL but before fine-tuning in Figure 7(a). We observe that with GCL, the model can identify more meaningful token clusterings, leveraging
|
| 226 |
+
|
| 227 |
+

|
| 228 |
+
(a) Attention scores w/ and w/o GCL
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
Figure 7: (a) The attention scores for MLM and MLM+GCL(Graph Contrastive Learning) models on CORD before fine-tuning. When pre-trained with the proposed GCL, the model can identify more meaningful token clusterings, leveraging multimodal input effectively; (b) Difficult cases where the model predictions do not match the human-annotated ground truth. In this visualization we highlight disagreements only.
|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
|
| 235 |
+

|
| 236 |
+
(b) Model outputs for difficult cases.
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
|
| 240 |
+
multimodal input more effectively.
|
| 241 |
+
|
| 242 |
+
We also show sample model outputs that do not match the human-annotated ground truth in Figure 7(b). The model confuses between 'header' and 'other' on the top of the form and between 'question' and 'answer' for the multiple choice questions on the bottom half of the form. More visualization can be found in Figure 9 in Appendix.
|
| 243 |
+
|
| 244 |
+
# 5 Conclusion
|
| 245 |
+
|
| 246 |
+
FormNetV2 augments an existing strong FormNetV1 backbone with image features bounded by pairs of neighboring tokens and the graph contrastive objective that learns to differentiate between the multimodal token representations of two corrupted versions of an input graph. The centralized design sheds new light to the understanding of multimodal form understanding.
|
| 247 |
+
|
| 248 |
+
# 6 Limitations
|
| 249 |
+
|
| 250 |
+
Our work follows the general assumption that the training and test set contain the same list of predefined entities. Without additional or necessary modifications, the few-shot or zero-shot capability of the model is expected to be limited. Future work includes exploring prompt-based architectures to unify pre-training and fine-tuning into the same query-based procedure.
|
| 251 |
+
|
| 252 |
+
# 7 Ethics Consideration
|
| 253 |
+
|
| 254 |
+
We have read and compiled with the ACL Code of Ethics. The proposed FormNetV2 follows the prevailing large-scale pre-training then fine-tuning framework. Although we use the standard IIT-
|
| 255 |
+
|
| 256 |
+
CDIP dataset for pre-training in all experiments, the proposed method is not limited to using specific datasets for pre-training. Therefore, it shares the same potential concerns of existing large language models, such as biases from the pre-training data and privacy considerations. We suggest following a rigorous and careful protocol when preparing the pre-training data for public-facing applications.
|
| 257 |
+
|
| 258 |
+
# References
|
| 259 |
+
|
| 260 |
+
Milan Aggarwal, Hiresh Gupta, Mausoom Sarkar, and Balaji Krishnamurthy. 2020. Form2seq: A framework for higher-order form structure extraction. In EMNLP.
|
| 261 |
+
Joshua Ainslie, Santiago Ontañón, Chris Alberti, Vaclav Cvicek, Zachary Fisher, Philip Pham, Anirudh Ravula, Sumit Sanghai, Qifan Wang, and Li Yang. 2020. Etc: Encoding long and structured data in transformers. In EMNLP.
|
| 262 |
+
Srikar Appalaraju, Bhavan Jasani, Bhargava Urala Kota, Yusheng Xie, and R Manmatha. 2021. Docformer: End-to-end transformer for document understanding. In ICCV.
|
| 263 |
+
Hangbo Bao, Li Dong, Furu Wei, Wenhui Wang, Nan Yang, Xiaodong Liu, Yu Wang, Jianfeng Gao, Songhao Piao, Ming Zhou, et al. 2020. Unilmv2: Pseudomasked language models for unified language model pre-training. In ICML.
|
| 264 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A simple framework for contrastive learning of visual representations. In ICML.
|
| 265 |
+
Laura Chiticariu, Yunyao Li, and Frederick Reiss. 2013. Rule-based information extraction is dead! long live rule-based information extraction systems! In EMNLP.
|
| 266 |
+
|
| 267 |
+
Adrian Cosma, Mihai Ghidoveanu, Michael Panaitescu-Liess, and Marius Popescu. 2020. Self-supervised representation learning on document images. In International Workshop on Document Analysis Systems, pages 103-117. Springer.
|
| 268 |
+
Timo I Denk and Christian Reisswig. 2019. Bertgrid: Contextualized embedding for 2d document representation and understanding. arXiv preprint arXiv:1909.04948.
|
| 269 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In *NAACL-HLT*.
|
| 270 |
+
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. 2020. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929.
|
| 271 |
+
Łukasz Garncarek, Rafał Powalski, Tomasz Stanisławek, Bartosz Topolski, Piotr Halama, Michal Turski, and Filip Graliński. 2020. Lambert: Layout-aware (language) modeling for information extraction. arXiv preprint arXiv:2002.08087.
|
| 272 |
+
Jiuxiang Gu, Jason Kuen, Vlad I Morariu, Handong Zhao, Nikolaos Barmpalios, Rajiv Jain, Ani Nenkova, and Tong Sun. 2022a. Unified pretraining framework for document understanding. arXiv preprint arXiv:2204.10939.
|
| 273 |
+
Zhangxuan Gu, Changhua Meng, Ke Wang, Jun Lan, Weiqiang Wang, Ming Gu, and Liqing Zhang. 2022b. Xlayoutlm: Towards layout-aware multimodal networks for visually-rich document understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4583-4592.
|
| 274 |
+
Jaekyu Ha, Robert M Haralick, and Ihsin T Phillips. 1995. Recursive xy cut using bounding boxes of connected components. In ICDAR.
|
| 275 |
+
Kaveh Hassani and Amir Hosein Khasahmadi. 2020. Contrastive multi-view representation learning on graphs. In International Conference on Machine Learning. PMLR.
|
| 276 |
+
Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. 2017. Mask r-cnn. In ICCV.
|
| 277 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In CVPR.
|
| 278 |
+
Yupan Huang, Tengchao Lv, Lei Cui, Yutong Lu, and Furu Wei. 2022. Layoutmv3: Pre-training for document ai with unified text and image masking. In Proceedings of the 30th ACM International Conference on Multimedia.
|
| 279 |
+
|
| 280 |
+
Zheng Huang, Kai Chen, Jianhua He, Xiang Bai, Di-mosthenis Karatzas, Shijian Lu, and CV Jawahar. 2019. Icdar2019 competition on scanned receiptOCR and information extraction. In ICDAR.
|
| 281 |
+
Wonseok Hwang, Jinyeong Yim, Seunghyun Park, Sohee Yang, and Minjoon Seo. 2021. Spatial dependency parsing for semi-structured document information extraction. In ACL-IJCNLP (Findings).
|
| 282 |
+
Guillaume Jaume, Hazim Kemal Ekenel, and JeanPhilippe Thiran. 2019. Funsd: A dataset for form understanding in noisy scanned documents. In ICDAR-OST.
|
| 283 |
+
Anoop Raveendra Katti, Christian Reisswig, Cordula Guder, Sebastian Brarda, Steffen Bickel, Johannes Höhne, and Jean Baptiste Faddoul. 2018. Chargrid: Towards understanding 2d documents. In EMNLP.
|
| 284 |
+
Geewook Kim, Teakgyu Hong, Moonbin Yim, JeongYeon Nam, Jinyoung Park, Jinyeong Yim, Wonseok Hwang, Sangdoo Yun, Dongyoon Han, and Seunghyun Park. 2022. Ocr-free document understanding transformer. In European Conference on Computer Vision, pages 498-517. Springer.
|
| 285 |
+
Frank Lebourgeois, Zbigniew Bublinski, and Hubert Emptoz. 1992. A fast and efficient method for extracting text paragraphs and graphics from unconstrained documents. In ICPR.
|
| 286 |
+
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 ACL.
|
| 287 |
+
Chen-Yu Lee, Chun-Liang Li, Chu Wang, Renshen Wang, Yasuhisa Fujii, Siyang Qin, Ashok Popat, and Tomas Pfister. 2021. Rope: Reading order equivariant positional encoding for graph-based document information extraction. In ACL-IJCNLP.
|
| 288 |
+
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.
|
| 289 |
+
Chenliang Li, Bin Bi, Ming Yan, Wei Wang, Songfang Huang, Fei Huang, and Luo Si. 2021a. Structurallm: Structural pre-training for form understanding. In ACL.
|
| 290 |
+
Junlong Li, Yiheng Xu, Tengchao Lv, Lei Cui, Cha Zhang, and Furu Wei. 2022. Dit: Self-supervised pre-training for document image transformer. arXiv preprint arXiv:2203.02378.
|
| 291 |
+
Peizhao Li, Jiumiang Gu, Jason Kuen, Vlad I Morariu, Handong Zhao, Rajiv Jain, Varun Manjunatha, and
|
| 292 |
+
|
| 293 |
+
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.
|
| 294 |
+
Yujia Li, Chenjie Gu, Thomas Dullien, Oriol Vinyals, and Pushmeet Kohli. 2019. Graph matching networks for learning the similarity of graph structured objects. In International conference on machine learning, pages 3835-3845. PMLR.
|
| 295 |
+
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.
|
| 296 |
+
Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. 2017. Feature pyramid networks for object detection. In CVPR.
|
| 297 |
+
Weihong Lin, Qifang Gao, Lei Sun, Zhuoyao Zhong, Kai Hu, Qin Ren, and Qiang Huo. 2021. Vibertgrid: a jointly trained multi-modal 2d document representation for key information extraction from documents. In International Conference on Document Analysis and Recognition, pages 548-563. Springer.
|
| 298 |
+
Bodhisattwa Prasad Majumder, Navneet Potti, Sandeep Tata, James Bradley Wendt, Qi Zhao, and Marc Najork. 2020. Representation learning for information extraction from form-like documents. In ACL.
|
| 299 |
+
Simone Marinai, Marco Gori, and Giovanni Soda. 2005. Artificial neural networks for document analysis and recognition. IEEE Transactions on pattern analysis and machine intelligence.
|
| 300 |
+
Lawrence O'Gorman. 1993. The document spectrum for page layout analysis. IEEE Transactions on pattern analysis and machine intelligence.
|
| 301 |
+
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. 2018. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748.
|
| 302 |
+
Rasmus Berg Palm, Ole Winther, and Florian Laws. 2017. Cloudscan-a configuration-free invoice analysis system using recurrent neural networks. In IC-DAR.
|
| 303 |
+
Seunghyun Park, Seung Shin, Bado Lee, Junyeop Lee, Jaeheung Surh, Minjoon Seo, and Hwalsuk Lee. 2019. Cord: A consolidated receipt dataset for postocr parsing. In Workshop on Document Intelligence at NeurIPS 2019.
|
| 304 |
+
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 ICDAR.
|
| 305 |
+
|
| 306 |
+
Subhojeet Pramanik, Shashank Mujumdar, and Hima Patel. 2020. Towards a multi-modal, multi-task learning based pre-training framework for document representation learning. arXiv preprint arXiv:2009.14457.
|
| 307 |
+
Lev Ratinov and Dan Roth. 2009. Design challenges and misconceptions in named entity recognition. In Conference on Computational Natural Language Learning (CoNLL).
|
| 308 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. 2015. Faster r-cnn: Towards real-time object detection with region proposal networks. Advances in neural information processing systems.
|
| 309 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. 2015. Imagenet large scale visual recognition challenge. IJCV.
|
| 310 |
+
Anikó Simon, J-C Pret, and A Peter Johnson. 1997. A fast algorithm for bottom-up document layout analysis. IEEE Transactions on Pattern Analysis and Machine Intelligence.
|
| 311 |
+
Kihyuk Sohn. 2016. Improved deep metric learning with multi-class n-pair loss objective. Advances in neural information processing systems.
|
| 312 |
+
Wilson L Taylor. 1953. "cloze procedure": A new tool for measuring readability. Journalism quarterly.
|
| 313 |
+
Petar Velickovic, William Fedus, William L Hamilton, Pietro Lio, Yoshua Bengio, and R Devon Hjelm. 2019. Deep graph infomax. ICLR.
|
| 314 |
+
Jesse Vig. 2019. A multiscale visualization of attention in the transformer model. In ACL: System Demonstrations.
|
| 315 |
+
Jiapeng Wang, Lianwen Jin, and Kai Ding. 2022a. Lilt: A simple yet effective language-independent layout transformer for structured document understanding. arXiv preprint arXiv:2202.13669.
|
| 316 |
+
Wenjin Wang, Zhengjie Huang, Bin Luo, Qianglong Chen, Qiming Peng, Yinxu Pan, Weichong Yin, Shikun Feng, Yu Sun, Dianhai Yu, et al. 2022b. Ernie-mmlayout: Multi-grained multimodal transformer for document understanding. Proceedings of the 30th ACM International Conference on Multimedia.
|
| 317 |
+
Zifeng Wang, Zizhao Zhang, Jacob Devlin, Chen-Yu Lee, Guolong Su, Hao Zhang, Jennifer Dy, Vincent Perot, and Tomas Pfister. 2022c. Queryform: A simple zero-shot form entity query framework. arXiv preprint arXiv:2211.07730.
|
| 318 |
+
Mengxi Wei, Yifan He, and Qiong Zhang. 2020. Robust layout-aware ie for visually rich documents with pre-trained language models. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 2367-2376.
|
| 319 |
+
|
| 320 |
+
Zhanghao Wu, Paras Jain, Matthew Wright, Azalia Mirhoseini, Joseph E Gonzalez, and Ion Stoica. 2021. Representing long-range context for graph neural networks with global attention. Advances in Neural Information Processing Systems, 34:13266-13279.
|
| 321 |
+
Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. 2018. Unsupervised feature learning via non-parametric instance discrimination. In CVPR.
|
| 322 |
+
Yang Xu, Yiheng Xu, Tengchao Lv, Lei Cui, Furu Wei, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, Wanxiang Che, et al. 2021. Layoutmv2: Multi-modal pre-training for visually-rich document understanding. In ACL-IJCNLP.
|
| 323 |
+
Yiheng Xu, Minghao Li, Lei Cui, Shaohan Huang, Furu Wei, and Ming Zhou. 2020. Layoutm: Pretraining of text and layout for document image understanding. In KDD.
|
| 324 |
+
Yuning You, Tianlong Chen, Yongduo Sui, Ting Chen, Zhangyang Wang, and Yang Shen. 2020. Graph contrastive learning with augmentations. Advances in Neural Information Processing Systems.
|
| 325 |
+
Xiaohui Zhao, Endi Niu, Zhuo Wu, and Xiaoguang Wang. 2019. Cutie: Learning to understand documents with convolutional universal text information extractor. In ICDAR.
|
| 326 |
+
Xu Zhong, Jianbin Tang, and Antonio Jimeno Yepes. 2019. Publaynet: largest dataset ever for document layout analysis. In ICDAR.
|
| 327 |
+
Yanqiao Zhu, Yichen Xu, Qiang Liu, and Shu Wu. 2021. An empirical study of graph contrastive learning. arXiv preprint arXiv:2109.01116.
|
| 328 |
+
Yanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu, Shu Wu, and Liang Wang. 2020. Deep graph contrastive representation learning. arXiv preprint arXiv:2006.04131.
|
| 329 |
+
|
| 330 |
+
# A Appendix
|
| 331 |
+
|
| 332 |
+
# A.1 Image Embedder Architecture
|
| 333 |
+
|
| 334 |
+
Our image embedder is a 3-layer ConvNet with filter sizes \{32, 64, 128\} and kernel size 3 throughout. Stride 2 is used in the middle layer and stride 1 is used everywhere else. We resize the input document image to $512 \times 512$ with aspect ratio fixed and zero padding for the background region. After extracting the dense features of the whole input image, we perform feature RoI pooling (He et al., 2017) within the bounding box that joins a pair of tokens connected by a GCN edge. The height and width of the pooled region are set to 3 and 16, respectively. Finally, the pooled features go through another 3-layer ConvNet with filter size \{64, 32, 16\} and kernel size 3 throughout. Stride 2 is used in the first 2 layers horizontally and stride 1 is used everywhere else. To consume image modality in our backbone model, we simply concatenate the pooled image features with the existing layout features at edge level of GCN as shown in Figure 2.
|
| 335 |
+
|
| 336 |
+
# A.2 More Implementation Details
|
| 337 |
+
|
| 338 |
+
We conduct additional experiments on FUNSD and CORD using base and large versions of LayoutLMv3 (Huang et al., 2022). Instead of using entity segment indexes inferred from ground truth, we use word boxes provided by OCR. We observe considerable performance degradation when the model has access to word-level box information instead of segment-level. The results are shown in Table 3.
|
| 339 |
+
|
| 340 |
+
<table><tr><td>Method</td><td>Setting</td><td>FUNSD</td><td>CORD</td></tr><tr><td rowspan="3">LayoutLMv3-base</td><td>Reported</td><td>90.29</td><td>96.56</td></tr><tr><td>Reproduced</td><td>90.59</td><td>95.85</td></tr><tr><td>Word box</td><td>78.35</td><td>95.81</td></tr><tr><td rowspan="3">LayoutLMv3-large</td><td>Reported</td><td>92.08</td><td>97.46</td></tr><tr><td>Reproduced</td><td>92.14</td><td>96.78</td></tr><tr><td>Word box</td><td>82.53</td><td>95.92</td></tr></table>
|
| 341 |
+
|
| 342 |
+
Table 3: LayoutLMv3 results with entity segment indexes (reproduced) or word level indexes (word box). We observe considerable performance degradation when the model has access to word-level box information instead of segment-level.
|
| 343 |
+
|
| 344 |
+
# A.3 Preliminaries
|
| 345 |
+
|
| 346 |
+
FormNetV1 (Lee et al., 2022) simplifies the task of document entity extraction by framing it as fundamentally text-centric, and then seeks to solve the
|
| 347 |
+
|
| 348 |
+
problems that immediately arise from this. Serialized forms can be very long, so FormNetV1 uses a transformer architecture with a local attention window (ETC) as the backbone to work around the quadratic memory cost of attention. This component of the system effectively captures the text modality.
|
| 349 |
+
|
| 350 |
+
OCR serialization also distorts strong cues of semantic relatedness - a word that is just above another word may be related to it, but if there are many tokens to the right of the upper word or to the left of the lower word, they will intervene between the two after serialization, and the model will be unable to take advantage of the heuristic that nearby tokens tend to be related. To address this, FormNetV1 adapts the attention mechanism to model spatial relationships between tokens using Rich Attention, a mathematically sound way of conditioning attention on low-level spatial features without resorting to quantizing the document into regions associated with distinct embeddings in a lookup table. This allows the system to build powerful representations from the layout modality for tokens that fall within the local attention window.
|
| 351 |
+
|
| 352 |
+
Finally, while Rich Attention maximizes the potential of local attention, there remains the problem of what to do when there are so many interveners between two related tokens that they do not fall within the local attention window and cannot attend to each other at all. To this end FormNetV1 includes a graph convolutional network (GCN) contextualization step before serializing the text to send to the transformer component. The graph for the GCN locates up to $K$ potentially related neighbors for each token before convolving to build up the token representations that will be fed to the transformer after OCR serialization. Unlike with Rich Attention, which directly learns concepts like "above", "below", and infinitely many degrees of "nearness", the graph at this stage does not consider spatial relationships beyond "is a neighbor" and "is not a neighbor" - see Figure 1. This allows the network to build a weaker but more complete picture of the layout modality than Rich Attention, which is constrained by local attention. A similar architecture is also found to be useful in graph learning tasks by Wu et al. (2021).
|
| 353 |
+
|
| 354 |
+
Thus the three main components of FormNetV1 cover each other's weaknesses, strategically trading off representational power and computational efficiency in order to allow the system to construct
|
| 355 |
+
|
| 356 |
+

|
| 357 |
+
Figure 8: (a) During multimodal graph contrastive pre-training, two corrupted graphs are sampled from an input graph by corruption of graph topology (edges) and attributes (multimodal features). (b) During task-specific fine-tuning, only the original input graph is used.
|
| 358 |
+
|
| 359 |
+

|
| 360 |
+
|
| 361 |
+

|
| 362 |
+
Figure 9: The ambiguous cases where the model predictions do not match the human-annotated ground truth. In this visualization we only showcase mismatched entities.
|
| 363 |
+
|
| 364 |
+
useful representations while simplifying the problem to be fundamentally textual rather than visual. The final system was pretrained end-to-end on large scale unlabeled form documents with a standard masked language modeling (MLM) objective.
|
| 365 |
+
|
| 366 |
+
ing footnotes.
|
| 367 |
+
|
| 368 |
+
# A.4 Output Visualization
|
| 369 |
+
|
| 370 |
+
Figure 9 shows additional FormNetV2 model outputs on FUNSD.
|
| 371 |
+
|
| 372 |
+
# A.5 License or Terms
|
| 373 |
+
|
| 374 |
+
Please see the license or terms for IIT-CDIP $^{6}$ , FUNSD $^{7}$ , CORD $^{8}$ , and SROIE $^{9}$ in the correspond
|
| 375 |
+
|
| 376 |
+
$^{6}$ ir.nist.gov/cdip/README.txt
|
| 377 |
+
<sup>7</sup>guillaumejaume.github.io/FUNSD/work/
|
| 378 |
+
$^{8}$ github.com/clovaai/cord/blob/master/License-CC-BY
|
| 379 |
+
9rrc.cvc.uab.es/?ch=13
|
| 380 |
+
|
| 381 |
+
A For every submission:
|
| 382 |
+
|
| 383 |
+
A1. Did you describe the limitations of your work? Sec 6
|
| 384 |
+
A2. Did you discuss any potential risks of your work? Sec 7
|
| 385 |
+
A3. Do the abstract and introduction summarize the paper's main claims? Main claims are in Sec 3 with experimental validation in Sec 4.
|
| 386 |
+
A4. Have you used AI writing assistants when working on this paper? Left blank.
|
| 387 |
+
|
| 388 |
+
B Did you use or create scientific artifacts?
|
| 389 |
+
|
| 390 |
+
Sec 4
|
| 391 |
+
|
| 392 |
+
B1. Did you cite the creators of artifacts you used? Sec 4.2
|
| 393 |
+
B2. Did you discuss the license or terms for use and / or distribution of any artifacts? Sec A5
|
| 394 |
+
B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)? Sec 7
|
| 395 |
+
B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it? Not applicable. Left blank.
|
| 396 |
+
B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.? Sec A5
|
| 397 |
+
B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be. Sec 4.1
|
| 398 |
+
|
| 399 |
+
C Did you run computational experiments?
|
| 400 |
+
|
| 401 |
+
Sec 4
|
| 402 |
+
|
| 403 |
+
C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used? Sec 4
|
| 404 |
+
|
| 405 |
+
C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values? Sec 4
|
| 406 |
+
C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run?
|
| 407 |
+
Sec 4
|
| 408 |
+
C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)? Sec 4
|
| 409 |
+
|
| 410 |
+
D Did you use human annotators (e.g., crowdworkers) or research with human participants? Left blank.
|
| 411 |
+
|
| 412 |
+
D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.? No response.
|
| 413 |
+
D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)? No response.
|
| 414 |
+
D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used? No response.
|
| 415 |
+
D4. Was the data collection protocol approved (or determined exempt) by an ethics review board? No response.
|
| 416 |
+
D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data? No response.
|
2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9be31c4feb9e766aba0d2d9ae73ea4c599baf4f632f14799719cbecc4a0ddf29
|
| 3 |
+
size 665078
|
2023/FormNetV2_ Multimodal Graph Contrastive Learning for Form Document Information Extraction/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/a325db9e-aab0-4f36-8d85-9ab6ad31543b_content_list.json
ADDED
|
@@ -0,0 +1,1893 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Wanyun Cui",
|
| 17 |
+
"bbox": [
|
| 18 |
+
277,
|
| 19 |
+
155,
|
| 20 |
+
389,
|
| 21 |
+
170
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Shanghai University of Finance and Economics",
|
| 28 |
+
"bbox": [
|
| 29 |
+
139,
|
| 30 |
+
171,
|
| 31 |
+
527,
|
| 32 |
+
187
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "cui.wanyun@shufe.edu.cn",
|
| 39 |
+
"bbox": [
|
| 40 |
+
194,
|
| 41 |
+
189,
|
| 42 |
+
473,
|
| 43 |
+
204
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Xingran Chen",
|
| 50 |
+
"bbox": [
|
| 51 |
+
601,
|
| 52 |
+
155,
|
| 53 |
+
729,
|
| 54 |
+
170
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "University of Michigan",
|
| 61 |
+
"bbox": [
|
| 62 |
+
571,
|
| 63 |
+
172,
|
| 64 |
+
761,
|
| 65 |
+
187
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "chenxran@umich.edu",
|
| 72 |
+
"bbox": [
|
| 73 |
+
556,
|
| 74 |
+
189,
|
| 75 |
+
774,
|
| 76 |
+
203
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Abstract",
|
| 83 |
+
"text_level": 1,
|
| 84 |
+
"bbox": [
|
| 85 |
+
260,
|
| 86 |
+
252,
|
| 87 |
+
339,
|
| 88 |
+
266
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "Recent years have witnessed the emergence of textual commonsense knowledge bases, aimed at providing more nuanced and context-rich knowledge. The integration of external commonsense into language models has been shown to be a key enabler in advancing the state-of-the-art for a wide range of NLP tasks. However, incorporating textual commonsense descriptions is computationally expensive, as compared to encoding conventional symbolic knowledge. In this paper, we propose a method to improve its efficiency without modifying the model. We group training samples with similar commonsense descriptions into a single batch, thus reusing the encoded description across multiple samples. One key observation is that the upper bound of batch partitioning can be reduced to the classic graph $k$ -cut problem. Consequently, we propose a spectral clustering-based algorithm to solve this problem. Extensive experiments illustrate that the proposed batch partitioning approach effectively reduces the computational cost while preserving performance. The efficiency improvement is more pronounced on larger datasets and on devices with more memory capacity, attesting to its practical utility for large-scale applications.",
|
| 95 |
+
"bbox": [
|
| 96 |
+
144,
|
| 97 |
+
277,
|
| 98 |
+
460,
|
| 99 |
+
659
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "1 Introduction",
|
| 106 |
+
"text_level": 1,
|
| 107 |
+
"bbox": [
|
| 108 |
+
114,
|
| 109 |
+
668,
|
| 110 |
+
258,
|
| 111 |
+
684
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "While pre-trained language models have made substantial progress in natural language processing, they still lack certain knowledge. Thus it is critical to incorporate external knowledge sources (Peters et al., 2019; Zhang et al., 2019; Logan et al., 2019). Previous research has primarily focused on incorporating symbolic knowledge from structured knowledge graphs. Recently, realizing the lack of expressiveness and contextualization of symbolic knowledge, many forms of commonsense knowledge bases are constructed, such as if-then knowledge (Sap et al., 2019) and discourse knowledge (Fang et al., 2021). The integration of such textual commonsense knowledge into language",
|
| 118 |
+
"bbox": [
|
| 119 |
+
112,
|
| 120 |
+
693,
|
| 121 |
+
490,
|
| 122 |
+
919
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "models has been shown to improve the state of the art for various tasks, such as named entity recognition (Wu et al., 2020) and commonsense knowledge base completion (Malaviya et al., 2020).",
|
| 129 |
+
"bbox": [
|
| 130 |
+
507,
|
| 131 |
+
253,
|
| 132 |
+
884,
|
| 133 |
+
316
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "However, integrating such commonsense knowledge are computationally expensive. Commonsense knowledge in text form requires more complex encoders (e.g. Transformer (Vaswani et al., 2017)), as opposed to the simple lookup operation for discrete symbolic knowledge. The feedforward and back-propagation process for the text encoder is significantly more computationally expensive than the standalone symbolic knowledge embeddings. Therefore, it is essential to reduce the computational cost for efficient integration of textual commonsense knowledge, particularly for large-scale applications.",
|
| 140 |
+
"bbox": [
|
| 141 |
+
507,
|
| 142 |
+
319,
|
| 143 |
+
884,
|
| 144 |
+
527
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "In this paper, we propose a method to accelerate the process of incorporating textual commonsense knowledge into language models. Our approach is based on the observation that if multiple training samples in a mini-batch share the same commonsense description, the encoding for that description can be reused across those samples. In other words, we only need to encode each distinct description in a mini-batch once. For example, consider the training samples $x_{1\\dots 4}$ and the associated commonsense $t_{1\\dots 4}$ in Fig. 1. In the batch partitioning in Fig. 1a, the samples in one batch have no shared descriptions, requiring seven times of commonsense encoding for $t_i$ . However, in the batch partitioning shown in Fig. 1b, each description will be encoded only once, resulting in only four times of encoding for $t_i$ . The cost of encoding the commonsense is significantly reduced by effective partitioning of the training samples. Therefore, our goal is to group the training samples in such a way as to minimize the total number of distinct commonsense descriptions per mini-batch.",
|
| 151 |
+
"bbox": [
|
| 152 |
+
507,
|
| 153 |
+
531,
|
| 154 |
+
884,
|
| 155 |
+
884
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "To optimize the batch partitioning, we begin by theoretically analyzing the objective (§2.1). Our",
|
| 162 |
+
"bbox": [
|
| 163 |
+
507,
|
| 164 |
+
887,
|
| 165 |
+
882,
|
| 166 |
+
919
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 0
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "page_number",
|
| 172 |
+
"text": "3759",
|
| 173 |
+
"bbox": [
|
| 174 |
+
480,
|
| 175 |
+
927,
|
| 176 |
+
519,
|
| 177 |
+
940
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "footer",
|
| 183 |
+
"text": "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics",
|
| 184 |
+
"bbox": [
|
| 185 |
+
226,
|
| 186 |
+
945,
|
| 187 |
+
771,
|
| 188 |
+
957
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 0
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "footer",
|
| 194 |
+
"text": "Volume 1: Long Papers, pages 3759-3770",
|
| 195 |
+
"bbox": [
|
| 196 |
+
369,
|
| 197 |
+
958,
|
| 198 |
+
628,
|
| 199 |
+
971
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 0
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "footer",
|
| 205 |
+
"text": "July 9-14, 2023 ©2023 Association for Computational Linguistics",
|
| 206 |
+
"bbox": [
|
| 207 |
+
295,
|
| 208 |
+
972,
|
| 209 |
+
700,
|
| 210 |
+
985
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 0
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "image",
|
| 216 |
+
"img_path": "images/c35b5b81f8681f5b5e8aa3e40211045bd0b81af122f065d8d982b4f08f5e3e5c.jpg",
|
| 217 |
+
"image_caption": [],
|
| 218 |
+
"image_footnote": [],
|
| 219 |
+
"bbox": [
|
| 220 |
+
119,
|
| 221 |
+
84,
|
| 222 |
+
287,
|
| 223 |
+
159
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "image",
|
| 229 |
+
"img_path": "images/56a3b649cda9e075cfa5532338baf0f4fd6c64a07c3ba4ba1bb2aa17ac598a4a.jpg",
|
| 230 |
+
"image_caption": [],
|
| 231 |
+
"image_footnote": [],
|
| 232 |
+
"bbox": [
|
| 233 |
+
309,
|
| 234 |
+
83,
|
| 235 |
+
478,
|
| 236 |
+
159
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "image",
|
| 242 |
+
"img_path": "images/933a5d86ed8bc186c324d784281d08659a2dd6161b5b176f4e16b36a53cf7f36.jpg",
|
| 243 |
+
"image_caption": [
|
| 244 |
+
"(a) If samples are divided randomly into batches, a total of 7 times of encoding for $t_i$ is required.",
|
| 245 |
+
"Figure 1: Idea of batch partitioning."
|
| 246 |
+
],
|
| 247 |
+
"image_footnote": [],
|
| 248 |
+
"bbox": [
|
| 249 |
+
119,
|
| 250 |
+
162,
|
| 251 |
+
287,
|
| 252 |
+
237
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "image",
|
| 258 |
+
"img_path": "images/84faf0256f9a788c89ba90d160196ec7a64a373964f9b537701c4da0fa65b807.jpg",
|
| 259 |
+
"image_caption": [
|
| 260 |
+
"(b) If samples are divided delicately, only a total of 4 times of encoding for $t_i$ is required."
|
| 261 |
+
],
|
| 262 |
+
"image_footnote": [],
|
| 263 |
+
"bbox": [
|
| 264 |
+
310,
|
| 265 |
+
162,
|
| 266 |
+
478,
|
| 267 |
+
237
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 1
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "key observation is that the upper bound of the cost can be reduced to the well-studied graph $k$ -cut problem (Rangapuram et al., 2014) ( $\\S 3.1$ $\\S 3.2$ ). As a result, we minimize the upper bound instead by adapting the classic spectral clustering algorithm ( $\\S 3.3$ ). The average distinct commonsense descriptions per batch are approximated by the distance to the cluster centroid, and is optimized by spectral clustering. This is also empirically verified ( $\\S 5.4$ ).",
|
| 274 |
+
"bbox": [
|
| 275 |
+
112,
|
| 276 |
+
348,
|
| 277 |
+
487,
|
| 278 |
+
493
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 1
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "The main contributions of this paper are as follows: (1) We propose the use of batch partitioning for improving the efficiency of textual commonsense integration for language models. (2) We theoretically demonstrate that the batch partitioning problem can be reduced to the classic graph $k$ -cut problem, and we use the well-studied spectral clustering to optimize it. (3) We empirically show that the efficiency of integrating commonsense descriptions can be significantly improved without sacrificing effectiveness. The acceleration is even more pronounced for large-scale training.",
|
| 285 |
+
"bbox": [
|
| 286 |
+
112,
|
| 287 |
+
494,
|
| 288 |
+
489,
|
| 289 |
+
687
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 1
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "2 The Batch Partitioning Problem",
|
| 296 |
+
"text_level": 1,
|
| 297 |
+
"bbox": [
|
| 298 |
+
112,
|
| 299 |
+
699,
|
| 300 |
+
426,
|
| 301 |
+
715
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 1
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "In this section, we analyze the training efficiency w.r.t. batch partitioning. We first show in § 2.1 that the complexity of the model depends on the number of corresponding knowledge descriptions per sample. Then, in § 2.2, we formally define this batch partitioning problem.",
|
| 308 |
+
"bbox": [
|
| 309 |
+
112,
|
| 310 |
+
725,
|
| 311 |
+
487,
|
| 312 |
+
821
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 1
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "2.1 Model Setup and Complexity Analysis",
|
| 319 |
+
"text_level": 1,
|
| 320 |
+
"bbox": [
|
| 321 |
+
112,
|
| 322 |
+
833,
|
| 323 |
+
460,
|
| 324 |
+
848
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 1
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "In this paper, we use the OK-Transformer (Cui and Chen, 2022) as the backbone. OK-Transformer is a recently proposed model that effectively introduces commonsense knowledge into language",
|
| 331 |
+
"bbox": [
|
| 332 |
+
112,
|
| 333 |
+
854,
|
| 334 |
+
487,
|
| 335 |
+
917
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 1
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "models. Traditional approaches for such introduction required pre-training language models on a large corpus along with external commonsense, which was time-consuming (Peters et al., 2019; Zhang et al., 2019). The OK-Transformer model, on the other hand, is able to directly incorporate extra knowledge without pre-training. This model utilizes commonsense tokens and attention mechanisms to effectively integrate textual commonsense. Our proposed batch partitioning method is also applicable to other models that encode target sentences and associated commonsense descriptions.",
|
| 342 |
+
"bbox": [
|
| 343 |
+
507,
|
| 344 |
+
84,
|
| 345 |
+
884,
|
| 346 |
+
275
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 1
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "To analyze the computational complexity of encoding commonsense knowledge and formulate the problem, we briefly describe how the original OK-Transformer works. It consists of three Transformers, where $\\mathrm{Transformer}^{(1)}$ is used to represent the target sentence, $\\mathrm{Transformer}^{(2)}$ is used to represent each textual commonsense description, and $\\mathrm{Transformer}^{(3)}$ is used to incorporate commonsense embeddings from $\\mathrm{Transformer}^{(2)}$ into $\\mathrm{Transformer}^{(1)}$ .",
|
| 353 |
+
"bbox": [
|
| 354 |
+
507,
|
| 355 |
+
278,
|
| 356 |
+
884,
|
| 357 |
+
436
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 1
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "We now concretely analyze the complexity of integrating external textual commonsense. When encoding a sample with associated commonsense descriptions, the complexity consists of three modules:",
|
| 364 |
+
"bbox": [
|
| 365 |
+
507,
|
| 366 |
+
438,
|
| 367 |
+
882,
|
| 368 |
+
516
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 1
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "list",
|
| 374 |
+
"sub_type": "text",
|
| 375 |
+
"list_items": [
|
| 376 |
+
"- For encoding the target sentence via $\\mathrm{Transformer}^{(1)}$ , the complexity of encoding a sentence of length $L$ into dimension $D$ is $O(L^2 D)$ .",
|
| 377 |
+
"- For encoding textual commonsense descriptions via Transformer $^{(2)}$ , the complexity of encoding $C$ knowledge descriptions of length $L$ is $O(CL^2 D)$ .",
|
| 378 |
+
"- For integrating the knowledge embeddings into the target sentence via Transformer $^{(3)}$ , the complexity is $O(C^2 D)$ ."
|
| 379 |
+
],
|
| 380 |
+
"bbox": [
|
| 381 |
+
531,
|
| 382 |
+
526,
|
| 383 |
+
882,
|
| 384 |
+
721
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 1
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "table",
|
| 390 |
+
"img_path": "images/72bd3f13af46e5e2d15c52d9042a892510893234aad91c8b84f9f56096ec6acb.jpg",
|
| 391 |
+
"table_caption": [],
|
| 392 |
+
"table_footnote": [],
|
| 393 |
+
"table_body": "<table><tr><td>Module</td><td>Complexity</td></tr><tr><td>Target sentence encoding</td><td>O(L2D)</td></tr><tr><td>External knowledge encoding</td><td>O(CL2D)</td></tr><tr><td>Knowledge integration</td><td>O(C2D)</td></tr></table>",
|
| 394 |
+
"bbox": [
|
| 395 |
+
521,
|
| 396 |
+
739,
|
| 397 |
+
870,
|
| 398 |
+
816
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 1
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "Table 1: Module complexities.",
|
| 405 |
+
"bbox": [
|
| 406 |
+
589,
|
| 407 |
+
825,
|
| 408 |
+
800,
|
| 409 |
+
840
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 1
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "We summarize the complexity in Table 1. Since in practice we usually have $L^2 \\gg C$ , the key is to reduce the complexity of encoding for textual commonsense descriptions, i.e., reduce $O(CL^2 D)$ .",
|
| 416 |
+
"bbox": [
|
| 417 |
+
507,
|
| 418 |
+
854,
|
| 419 |
+
882,
|
| 420 |
+
917
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 1
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "page_number",
|
| 426 |
+
"text": "3760",
|
| 427 |
+
"bbox": [
|
| 428 |
+
480,
|
| 429 |
+
927,
|
| 430 |
+
521,
|
| 431 |
+
940
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 1
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "Relation to retrieval-based knowledge incorporation Integrating text commonsense is related to learning dense retrievers for efficiently retrieving and introducing external textual commonsense, such as REALM (Guu et al., 2020). In commonsense incorporation, each sample only retrieves a small number of knowledge descriptions based on trigger words. So the key of our problem is to efficiently and effectively incorporate certain knowledge descriptions, rather than the information retrieval in dense retrievers. Specifically, dense retrievers typically consist of a retriever and a knowledge-augmented encoder. Our work can be analogous to reducing the cost of the knowledge-augmented encoder.",
|
| 438 |
+
"bbox": [
|
| 439 |
+
112,
|
| 440 |
+
84,
|
| 441 |
+
489,
|
| 442 |
+
325
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 2
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "2.2 Problem Formulation",
|
| 449 |
+
"text_level": 1,
|
| 450 |
+
"bbox": [
|
| 451 |
+
112,
|
| 452 |
+
337,
|
| 453 |
+
331,
|
| 454 |
+
351
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 2
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "We now formulate the problem of batch partitioning. As stated in the introduction, different samples may correspond to the same textual commonsense description. We only need to encode the distinct commonsense descriptions once for a batch of samples. Therefore, the goal of batch partitioning is to minimize the number of distinct commonsense descriptions per batch.",
|
| 461 |
+
"bbox": [
|
| 462 |
+
112,
|
| 463 |
+
357,
|
| 464 |
+
487,
|
| 465 |
+
485
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 2
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "More formally, suppose the training data is $\\mathcal{D}_{train} = \\{x_i,T(x_i),y_i\\}_{i = 1}^N$ , where $x_{i}$ is the original sample, $y_{i}$ is the corresponding label, and $T(x_{i}) = \\{t_{i1},\\dots ,t_{ic_{i}}\\}$ is a collection of external knowledge descriptions for $x_{i}$ . For a batch with $s$ samples $x_{1},\\dots ,x_{s}$ , the number of knowledge descriptions we need to encode is $|\\bigcup_{i = 1}^{s}T(x_{i})|$",
|
| 472 |
+
"bbox": [
|
| 473 |
+
112,
|
| 474 |
+
487,
|
| 475 |
+
487,
|
| 476 |
+
600
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 2
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "For convenience, we assume that $N$ is divisible by batch size $s$ . To reduce the time complexity, we need to partition $\\mathcal{D}_{train}$ into $k = N / s$ batches $B_{1},\\dots ,B_{k}$ such that each batch contains $s$ samples and the total number of distinct textual commonsense descriptions in each batch is minimized:",
|
| 483 |
+
"bbox": [
|
| 484 |
+
112,
|
| 485 |
+
600,
|
| 486 |
+
489,
|
| 487 |
+
696
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 2
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "equation",
|
| 493 |
+
"text": "\n$$\n\\min \\sum_ {i = 1} ^ {k} | \\bigcup_ {x \\in B _ {i}} T (x) |\n$$\n",
|
| 494 |
+
"text_format": "latex",
|
| 495 |
+
"bbox": [
|
| 496 |
+
127,
|
| 497 |
+
721,
|
| 498 |
+
292,
|
| 499 |
+
766
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 2
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "s.t. $|B_i| = s$ (size constraint for each batch) (1)",
|
| 506 |
+
"bbox": [
|
| 507 |
+
134,
|
| 508 |
+
769,
|
| 509 |
+
485,
|
| 510 |
+
800
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 2
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "3 Solving the Batch Partitioning Problem",
|
| 517 |
+
"text_level": 1,
|
| 518 |
+
"bbox": [
|
| 519 |
+
112,
|
| 520 |
+
812,
|
| 521 |
+
485,
|
| 522 |
+
829
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 2
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "To solve the batch partitioning problem, we first approximate the upper bound of Eq. (1) in § 3.1. We minimize its upper bound instead of directly minimizing Eq. (1). In § 3.2, we show that optimizing the upper bound can be reduced to the classic",
|
| 529 |
+
"bbox": [
|
| 530 |
+
112,
|
| 531 |
+
838,
|
| 532 |
+
489,
|
| 533 |
+
917
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 2
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "minimum graph $k$ -cut problem, so that some well-studied algorithms can be applied. We show how we adapt the classical spectral clustering to this problem in $\\S 3.3$ , and how to scale it up in $\\S 3.4$ .",
|
| 540 |
+
"bbox": [
|
| 541 |
+
507,
|
| 542 |
+
84,
|
| 543 |
+
882,
|
| 544 |
+
149
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 2
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "3.1 Upper Bound Analysis",
|
| 551 |
+
"text_level": 1,
|
| 552 |
+
"bbox": [
|
| 553 |
+
507,
|
| 554 |
+
159,
|
| 555 |
+
732,
|
| 556 |
+
174
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 2
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "We analyze the upper bound of Eq. (1) in Theorem 1.",
|
| 563 |
+
"bbox": [
|
| 564 |
+
507,
|
| 565 |
+
180,
|
| 566 |
+
882,
|
| 567 |
+
209
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 2
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "Theorem 1 (Upper bound).",
|
| 574 |
+
"bbox": [
|
| 575 |
+
507,
|
| 576 |
+
212,
|
| 577 |
+
715,
|
| 578 |
+
227
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 2
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "equation",
|
| 584 |
+
"text": "\n$$\n\\begin{array}{l} \\sum_ {i = 1} ^ {k} \\left| \\bigcup_ {x \\in B _ {i}} T (x) \\right| \\\\ \\leq \\sum_ {i = 1} ^ {k} \\left[ \\sum_ {x \\in B _ {i}} | T (x) | - s \\mathbb {E} _ {x _ {a}, x _ {b} \\in B _ {i}, x _ {a} \\neq x _ {b}} | T (x _ {a}) \\cap T (x _ {b}) | \\right] \\tag {2} \\\\ \\end{array}\n$$\n",
|
| 585 |
+
"text_format": "latex",
|
| 586 |
+
"bbox": [
|
| 587 |
+
515,
|
| 588 |
+
231,
|
| 589 |
+
880,
|
| 590 |
+
317
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 2
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "Proof. For a batch $B$ with $s$ samples $\\{x_{1},\\dots ,x_{s}\\}$ we have:",
|
| 597 |
+
"bbox": [
|
| 598 |
+
507,
|
| 599 |
+
326,
|
| 600 |
+
882,
|
| 601 |
+
356
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 2
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "equation",
|
| 607 |
+
"text": "\n$$\n\\begin{array}{l} \\left| \\bigcup_ {i = 1} ^ {s} T (x _ {i}) \\right| = \\sum_ {i = 1} ^ {s} \\left| T (x _ {i}) - \\bigcup_ {j = 1} ^ {i - 1} T (x _ {j}) \\right| \\\\ = \\sum_ {i = 1} ^ {s} | T (x _ {i}) - \\bigcup_ {j = 1} ^ {i - 1} T (x _ {j}) \\cap T (x _ {i}) | \\tag {3} \\\\ = \\sum_ {i = 1} ^ {s} | T (x _ {i}) | - \\sum_ {i = 1} ^ {s} \\left| \\bigcup_ {j = 1} ^ {i - 1} T (x _ {j}) \\cap T (x _ {i}) \\right| \\\\ \\leq \\sum_ {i = 1} ^ {s} | T (x _ {i}) | - \\sum_ {i = 1} ^ {s} \\max _ {1 \\leq j \\leq i - 1} | T (x _ {j}) \\cap T (x _ {i}) | \\\\ \\end{array}\n$$\n",
|
| 608 |
+
"text_format": "latex",
|
| 609 |
+
"bbox": [
|
| 610 |
+
554,
|
| 611 |
+
357,
|
| 612 |
+
880,
|
| 613 |
+
507
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 2
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "The upper bound in Eq. (3) after relaxation is related to the sample order of that batch, while our original objective in Eq. (1) is actually order-independent. To introduce order-independence, let $\\pi$ be an arrangement of $1\\cdots s$ that $\\pi_i \\in \\{1, \\cdots, s\\}$ . Noticing that $\\sum_{i=1}^{s}|T(x_i)|$ is a constant, based on the order-independence, we transform Eq. (3) into the expectation under different $\\pi$ s:",
|
| 620 |
+
"bbox": [
|
| 621 |
+
507,
|
| 622 |
+
517,
|
| 623 |
+
882,
|
| 624 |
+
646
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 2
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "equation",
|
| 630 |
+
"text": "\n$$\n\\begin{array}{l} \\mathbb {E} _ {\\pi} \\sum_ {i = 1} ^ {s} \\max _ {1 \\leq j \\leq i - 1} | T (x _ {\\pi_ {j}}) \\cap T (x _ {\\pi_ {i}}) | \\\\ = \\sum_ {i = 1} ^ {s} \\mathbb {E} _ {\\pi} \\max _ {1 \\leq j \\leq i - 1} | T \\left(x _ {\\pi_ {j}}\\right) \\cap T \\left(x _ {\\pi_ {i}}\\right) | \\tag {4} \\\\ \\geq \\sum_ {i = 1} ^ {s} \\max _ {1 \\leq j \\leq i - 1} \\mathbb {E} _ {\\pi} | T (x _ {\\pi_ {j}}) \\cap T (x _ {\\pi_ {i}}) | \\\\ = s \\mathbb {E} _ {x _ {a}, x _ {b} \\in B _ {i}, x _ {a} \\neq x _ {b}} | T (x _ {a}) \\cap T (x _ {b}) | \\\\ \\end{array}\n$$\n",
|
| 631 |
+
"text_format": "latex",
|
| 632 |
+
"bbox": [
|
| 633 |
+
561,
|
| 634 |
+
657,
|
| 635 |
+
880,
|
| 636 |
+
804
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 2
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Therefore Theorem 1 holds.",
|
| 643 |
+
"bbox": [
|
| 644 |
+
527,
|
| 645 |
+
814,
|
| 646 |
+
737,
|
| 647 |
+
829
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 2
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "image",
|
| 653 |
+
"img_path": "images/bffd5dc32c5e08715f73edb9171483e670d37c7257156076b14537714679565f.jpg",
|
| 654 |
+
"image_caption": [],
|
| 655 |
+
"image_footnote": [],
|
| 656 |
+
"bbox": [
|
| 657 |
+
863,
|
| 658 |
+
815,
|
| 659 |
+
880,
|
| 660 |
+
827
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 2
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "It is worth highlighting that the relaxation in the last inequality of Eq. (3) is valid due to the nonrandom distribution of words in samples. Specifically, samples with similar meanings tend to have similar word distributions. By grouping similar",
|
| 667 |
+
"bbox": [
|
| 668 |
+
507,
|
| 669 |
+
838,
|
| 670 |
+
882,
|
| 671 |
+
917
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 2
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "page_number",
|
| 677 |
+
"text": "3761",
|
| 678 |
+
"bbox": [
|
| 679 |
+
480,
|
| 680 |
+
927,
|
| 681 |
+
517,
|
| 682 |
+
940
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 2
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "samples into the same batch, each sample pair within a batch will possess similar textual commonsense knowledge descriptions. This allows us to use the maximal common descriptions between $T(x_{i})$ and $T(x_{j})$ as an approximation for the common descriptions between $T(x_{i})$ and $\\bigcup_{j = 1}^{i - 1}T(x_j)$ .",
|
| 689 |
+
"bbox": [
|
| 690 |
+
112,
|
| 691 |
+
84,
|
| 692 |
+
489,
|
| 693 |
+
181
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 3
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "According to Theorem 1, since $\\sum_{i=1}^{s} \\sum_{x \\in B_i} |T(x)| = \\sum_{x \\in D_{train}} |T(x)|$ is a constant, minimizing Eq. (1) is equivalent to maximizing:",
|
| 700 |
+
"bbox": [
|
| 701 |
+
112,
|
| 702 |
+
181,
|
| 703 |
+
487,
|
| 704 |
+
246
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 3
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "equation",
|
| 710 |
+
"text": "\n$$\n\\sum_ {i = 1} ^ {k} \\mathbb {E} _ {x _ {a}, x _ {b} \\in B _ {i}, x _ {a} \\neq x _ {b}} | T (x _ {a}) \\cap T (x _ {b}) | \\tag {5}\n$$\n",
|
| 711 |
+
"text_format": "latex",
|
| 712 |
+
"bbox": [
|
| 713 |
+
159,
|
| 714 |
+
256,
|
| 715 |
+
487,
|
| 716 |
+
299
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 3
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "We will show that this is a balanced graph $k$ -cut problem in § 3.2.",
|
| 723 |
+
"bbox": [
|
| 724 |
+
112,
|
| 725 |
+
310,
|
| 726 |
+
487,
|
| 727 |
+
342
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 3
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "3.2 Connection to the Graph $k$ -Cut Problem",
|
| 734 |
+
"text_level": 1,
|
| 735 |
+
"bbox": [
|
| 736 |
+
112,
|
| 737 |
+
353,
|
| 738 |
+
478,
|
| 739 |
+
369
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 3
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "We now illustrate the relationship between Eq. (5) and the graph $k$ -cut problem. We demonstrate that, with proper transformation, maximizing Eq. (5) can be reduced to the graph $k$ -cut problem. Additionally, in § 3.3, we explain how to incorporate the constraint of the size of each mini-batch using the balanced graph $k$ -cut.",
|
| 746 |
+
"bbox": [
|
| 747 |
+
112,
|
| 748 |
+
373,
|
| 749 |
+
487,
|
| 750 |
+
485
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 3
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "Consider constructing a weighted graph $G(V,E)$ as follows:",
|
| 757 |
+
"bbox": [
|
| 758 |
+
112,
|
| 759 |
+
486,
|
| 760 |
+
487,
|
| 761 |
+
517
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 3
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "list",
|
| 767 |
+
"sub_type": "text",
|
| 768 |
+
"list_items": [
|
| 769 |
+
"- For each sample $x_{i}$ in the training data, create a vertex $v_{i}$ .",
|
| 770 |
+
"- For each pair of distinct vertices $(v_{i}, v_{j})$ , create an edge between them with a weight of $|T(x_{i}) \\cap T(x_{j})|$ ."
|
| 771 |
+
],
|
| 772 |
+
"bbox": [
|
| 773 |
+
134,
|
| 774 |
+
529,
|
| 775 |
+
487,
|
| 776 |
+
621
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 3
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "The graph $k$ -cut for $G(V,E)$ partitions $G(V,E)$ into $k$ non-empty components: $V_{1},\\dots ,V_{k}$ such that the sum weight of cross-component edges is minimized. According to the construction of $G(V,E)$ , maximizing Eq. (5) is equivalent to minimizing the sum weight of the cut. This is formalized in Theorem 2.",
|
| 783 |
+
"bbox": [
|
| 784 |
+
112,
|
| 785 |
+
630,
|
| 786 |
+
489,
|
| 787 |
+
741
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 3
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "Theorem 2 (Relation to minimum $k$ -cut problem). Suppose the weight of the $k$ -cut for $G(V,E)$ is $w$ , then we have:",
|
| 794 |
+
"bbox": [
|
| 795 |
+
112,
|
| 796 |
+
747,
|
| 797 |
+
489,
|
| 798 |
+
794
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 3
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "equation",
|
| 804 |
+
"text": "\n$$\nE q. (5) = \\frac {2}{s (s - 1)} \\sum_ {i = 1} ^ {n - 1} \\sum_ {j = i} ^ {n} | T (x _ {i}) \\cap T (x _ {j}) | - w \\tag {6}\n$$\n",
|
| 805 |
+
"text_format": "latex",
|
| 806 |
+
"bbox": [
|
| 807 |
+
115,
|
| 808 |
+
804,
|
| 809 |
+
487,
|
| 810 |
+
863
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 3
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "Proof. A k-cut of $G(V, E)$ consists of $k$ components. These $k$ components correspond to $k$ batches in the $k$ -partition. Therefore, the sum weight of",
|
| 817 |
+
"bbox": [
|
| 818 |
+
112,
|
| 819 |
+
870,
|
| 820 |
+
489,
|
| 821 |
+
919
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 3
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "text",
|
| 827 |
+
"text": "inner-component edges of the $k$ -cut is equal to Eq. (5) $\\frac{s(s - 1)}{2}$ . Since the total weight of edges in $G(V,E)$ is equal to the sum weight of inner-component edges plus the sum weight of the cut, Theorem 2 holds.",
|
| 828 |
+
"bbox": [
|
| 829 |
+
507,
|
| 830 |
+
84,
|
| 831 |
+
884,
|
| 832 |
+
165
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 3
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "text",
|
| 838 |
+
"text": "As $\\sum_{i=1}^{n-1} \\sum_{j=i}^{n} |T(x_i) \\cap T(x_j)|$ is a constant for the given training data, Theorem 2 shows that maximizing Eq. (5) is equivalent to minimizing the $k$ -cut for $G(V, E)$ . Thus, we convert the problem of maximizing Eq. (5) into the classic minimum $k$ -cut problem.",
|
| 839 |
+
"bbox": [
|
| 840 |
+
507,
|
| 841 |
+
173,
|
| 842 |
+
882,
|
| 843 |
+
269
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 3
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"text": "3.3 Spectral Clustering for the Balanced $k$ -Cut",
|
| 850 |
+
"text_level": 1,
|
| 851 |
+
"bbox": [
|
| 852 |
+
507,
|
| 853 |
+
281,
|
| 854 |
+
842,
|
| 855 |
+
311
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 3
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Based on the analysis in § 3.2, we propose to use spectral clustering, a widely used approach for solving the minimum graph $k$ -cut problem, as our batch partition algorithm. Spectral clustering employs spectral relaxation of the ratio/normalized cut and uses $k$ -means in the embedding of the vertices found by the first $k$ eigenvectors of the graph Laplacian in order to obtain the clustering. In addition to the classic minimum graph $k$ -cut problem, we need to incorporate the constraint that each cut/batch must have a size of $s$ .",
|
| 862 |
+
"bbox": [
|
| 863 |
+
507,
|
| 864 |
+
317,
|
| 865 |
+
882,
|
| 866 |
+
493
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 3
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "To incorporate the batch size constraint, we make a simple modification to the k-means step in spectral clustering. In the traditional k-means, each node is assigned to the nearest cluster center. In our algorithm, if the nearest cluster center has already been assigned $s$ nodes, the node will be assigned to the nearest center that has fewer than $s$ assigned nodes. The specific spectral clustering algorithm is presented as follows.",
|
| 873 |
+
"bbox": [
|
| 874 |
+
507,
|
| 875 |
+
495,
|
| 876 |
+
882,
|
| 877 |
+
639
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 3
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "list",
|
| 883 |
+
"sub_type": "text",
|
| 884 |
+
"list_items": [
|
| 885 |
+
"1. Compute the spectral embedding $Y\\in \\mathbb{R}^{n\\times k}$ by stacking the normalized first $k$ eigenvectors of $G(V,E)$ in columns as described in (Ng et al., 2002).",
|
| 886 |
+
"2. Treat the $i$ -th row of $Y$ as the feature of the $i$ -th training point $e_i \\in \\mathbb{R}^k$ .",
|
| 887 |
+
"3. Given an initial set of $k$ means $m_{1},\\dots ,m_{k}$ by randomly selecting $k$ nodes as centers, repeat the following two steps until convergence:"
|
| 888 |
+
],
|
| 889 |
+
"bbox": [
|
| 890 |
+
522,
|
| 891 |
+
648,
|
| 892 |
+
882,
|
| 893 |
+
828
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 3
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "(a) Assignment step Assign nodes to centers:",
|
| 900 |
+
"bbox": [
|
| 901 |
+
554,
|
| 902 |
+
837,
|
| 903 |
+
882,
|
| 904 |
+
866
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 3
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "i. Compute distances to centers $dis_{i,j} = \\text{distance}(e_i, m_j)$ , where the Euclidean distance is used.",
|
| 911 |
+
"bbox": [
|
| 912 |
+
589,
|
| 913 |
+
871,
|
| 914 |
+
880,
|
| 915 |
+
917
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 3
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "page_number",
|
| 921 |
+
"text": "3762",
|
| 922 |
+
"bbox": [
|
| 923 |
+
480,
|
| 924 |
+
927,
|
| 925 |
+
521,
|
| 926 |
+
940
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 3
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "ii. Sort $i,j$ in ascending order of $dis_{i,j}$ for all $1\\leq i\\leq n,1\\leq j\\leq k$",
|
| 933 |
+
"bbox": [
|
| 934 |
+
189,
|
| 935 |
+
84,
|
| 936 |
+
485,
|
| 937 |
+
115
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 4
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "iii. Iterate through all $i, j$ . If node $i$ is not assigned in this round and center $j$ has less than $s$ assigned nodes, assign node $i$ to center $j$ .",
|
| 944 |
+
"bbox": [
|
| 945 |
+
184,
|
| 946 |
+
118,
|
| 947 |
+
487,
|
| 948 |
+
181
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 4
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "(b) Update step Compute new centers by taking the mean of their assigned nodes.",
|
| 955 |
+
"bbox": [
|
| 956 |
+
157,
|
| 957 |
+
185,
|
| 958 |
+
487,
|
| 959 |
+
217
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 4
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "3.4 Spectral Clustering at Scale",
|
| 966 |
+
"text_level": 1,
|
| 967 |
+
"bbox": [
|
| 968 |
+
112,
|
| 969 |
+
230,
|
| 970 |
+
379,
|
| 971 |
+
244
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 4
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "The above algorithm consists of computation of the eigenvectors, and the use of k-means. K-means is efficient even for large-scale data. However, when $n$ and $k$ are large, the graph construction and eigenvectors computation become computationally expensive.",
|
| 978 |
+
"bbox": [
|
| 979 |
+
112,
|
| 980 |
+
250,
|
| 981 |
+
487,
|
| 982 |
+
348
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 4
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "To compute the spectral embeddings at scale, high-performance optimization techniques are available such as (Liu et al., 2013; Kolev and Mehlhorn, 2016; Boutsidis et al., 2015; Tremblay et al., 2016). Also, in our experiments, a simple trick was found that yields meaningful results: only calculate $k'$ -dimensional feature vectors ( $k' < k$ ) and perform k-means with the $k'$ dimensions. We found that $k' = 8$ is a good practice in our experiments.",
|
| 989 |
+
"bbox": [
|
| 990 |
+
112,
|
| 991 |
+
349,
|
| 992 |
+
489,
|
| 993 |
+
508
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 4
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "4 Related Work",
|
| 1000 |
+
"text_level": 1,
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
112,
|
| 1003 |
+
521,
|
| 1004 |
+
270,
|
| 1005 |
+
537
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 4
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Integrating knowledge into language models has been one of the focuses of language modeling research in recent years. The main integration methods currently include using pre-trained entity embeddings, and constructing knowledge-aware corpora. ERNIE (Zhang et al., 2019), KnowBERT (Peters et al., 2019), and KGLM (Logan et al., 2019) are typical methods using pre-trained entity embeddings. ERNIE uses Wikidata (Vrandečić and Krötzsch, 2014) as the knowledge base and uses TransE (Bordes et al., 2013) to encode knowledge. KnowBERT, on the other hand, uses skip-gram like objective (Mikolov et al., 2013) based on Wikipedia descriptions as the pre-trained entity embeddings. In addition, KnowBERT adds a loss on entity linking to the pre-trained objective. KGLM (Logan et al., 2019) allows modification/updating of knowledge by building a local knowledge graph for the target sentence. WKLM (Xiong et al., 2019) constructs a corpus of incorrect knowledge descriptions by replacing Wikipedia's entities with different entities of the same type. It trains the model to identify incorrect and correct knowl",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
112,
|
| 1014 |
+
549,
|
| 1015 |
+
489,
|
| 1016 |
+
917
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 4
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "edge descriptions. Recently, models that integrate textual knowledge have also been proposed. In this paper, we adopt the model structure in OK-Transformer (Cui and Chen, 2022).",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
507,
|
| 1025 |
+
84,
|
| 1026 |
+
884,
|
| 1027 |
+
149
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 4
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Textual knowledge bases Noting the deficiencies of symbolic knowledge in terms of expressiveness and contextual information representation, some work has started to use text as a form of knowledge. ATOMIC (Sap et al., 2019; Hwang et al., 2021) is a large-scale manually annotated common-sense textual knowledge base that includes social interaction, event-centered, physical entity. ATOMIC contains knowledge like (PersonX reaches PersonX's home, Before, PersonX needs to park the car). ASER (Zhang et al., 2020) is an eventuality knowledge graph of activities, states, events, and their relations. Its knowledge atoms are in natural language form, e.g. (I do not have lunch, succession, I am hungry). COMET (Bosselut et al., 2019) is an extension of ATOMIC based on the generative language model. It mainly solves the problem of insufficient coverage of ATOMIC. Some primitive research (Guan et al., 2020; Shwartz et al., 2020) has started to apply these textual knowledge bases in some specific tasks. OK-Transformer (Cui and Chen, 2022) is proposed to integrate textual knowledge for general purposes. However, in our experimental tests, it takes too much time in encoding the commonsense. To our knowledge, there is still a lack of research on how to integrate textual knowledge into general text understanding tasks efficiently.",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
507,
|
| 1036 |
+
153,
|
| 1037 |
+
885,
|
| 1038 |
+
604
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 4
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Comparison with dense textual knowledge retriever When introducing external texts, another style is to use a retriever that returns only top $k$ candidate texts in terms of similarity (Chen et al., 2017; Karpukhin et al., 2020; Wang et al., 2019). However, this method requires a heavy pre-training process to learn the retriever. On the other hand, for the textual knowledge base we use in this paper, we can directly use the manually labeled trigger words for each knowledge description to retrieve knowledge. Therefore, in this paper, we focus on how to efficiently and effectively integrate knowledge from a textual knowledge base.",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
507,
|
| 1047 |
+
609,
|
| 1048 |
+
885,
|
| 1049 |
+
818
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 4
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "High-performance language models More general techniques for high-performance language models have also received extensive studies. The main approaches of previous studies include (1) model compression and quantization (Sanh et al., 2019; Jacob et al., 2018), and (2) efficient repre",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
507,
|
| 1058 |
+
822,
|
| 1059 |
+
885,
|
| 1060 |
+
919
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 4
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "page_number",
|
| 1066 |
+
"text": "3763",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
480,
|
| 1069 |
+
927,
|
| 1070 |
+
519,
|
| 1071 |
+
940
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 4
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "sensation of long texts (Kitaev et al., 2019; Peng et al., 2020). However, the model compression approaches require heavy pre-training before they can be adapted to language models. Moreover, the techniques for optimizing the efficiency for long text do not have significant effects on short texts (Peng et al., 2020). Besides, each commonsense description we considered in this paper tends to be short. In addition, these works have not considered the characteristics of the knowledge integration problem in this paper, i.e., a training sample corresponds to multiple candidate textual knowledge from the knowledge base.",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
112,
|
| 1080 |
+
84,
|
| 1081 |
+
492,
|
| 1082 |
+
294
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 5
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "5 Experiments",
|
| 1089 |
+
"text_level": 1,
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
112,
|
| 1092 |
+
305,
|
| 1093 |
+
260,
|
| 1094 |
+
322
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 5
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "In this section, we conducted extensive experiments to evaluate batch partitioning. We aim to address the following key questions:",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
112,
|
| 1103 |
+
330,
|
| 1104 |
+
489,
|
| 1105 |
+
379
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 5
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "list",
|
| 1111 |
+
"sub_type": "text",
|
| 1112 |
+
"list_items": [
|
| 1113 |
+
"1. ( $\\S 5.2$ ) How much is the efficiency improvement of batch partitioning? Can it improve efficiency without sacrificing effectiveness?",
|
| 1114 |
+
"2. ( $\\S 5.3$ ) What is the scalability of batch partitioning as an acceleration method, and can it be applied to large-scale training?",
|
| 1115 |
+
"3. (§ 5.4) Is the main theoretical contribution of this paper, i.e., solving the balanced graph- $k$ cut by spectral clustering, consistent with the real datasets?"
|
| 1116 |
+
],
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
127,
|
| 1119 |
+
387,
|
| 1120 |
+
489,
|
| 1121 |
+
565
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 5
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "5.1 Implementation Details and Setup",
|
| 1128 |
+
"text_level": 1,
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
112,
|
| 1131 |
+
576,
|
| 1132 |
+
428,
|
| 1133 |
+
593
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 5
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Textual knowledge base We follow (Cui and Chen, 2022) to use ATOMIC2020 (Hwang et al., 2021) as the textual knowledge base. Each atom in ATOMIC2020 is commonsense in text form. For each sentence in the downstream task, we retrieve the knowledge associated with it from the textual knowledge base. Note that, unlike retrieving knowledge from free text (Guu et al., 2020), the textual knowledge base ATOMIC2020 is constructed manually, and each knowledge description has corresponding trigger words. These trigger words are usually verbs or verb phrases. We retrieve related textual commonsense descriptions by keyword-matching of these trigger words.",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
112,
|
| 1142 |
+
596,
|
| 1143 |
+
489,
|
| 1144 |
+
821
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 5
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Model architecture We use OK-Transformer (Cui and Chen, 2022) as the backbone of our model. It directly incorporates extra knowledge without pre-training. OK-Transformer is based on either BERT or RoBERTa. We use OK-Transformer based on BERT by",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
112,
|
| 1153 |
+
822,
|
| 1154 |
+
489,
|
| 1155 |
+
917
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 5
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "default. We also follow the hyperparameter settings of OK-Transformer. All experiments were run on 8 Nvidia RTX 3090Ti GPUs.",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
507,
|
| 1164 |
+
84,
|
| 1165 |
+
882,
|
| 1166 |
+
131
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 5
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Datasets We evaluate batch partitioning via commonsense reasoning and sentence classification. Since the textual knowledge introduced in this paper is commonsense descriptions, we first verify whether the proposed method in this paper could be applied to the commonsense reasoning tasks. To this end, we choose a wide range of commonsense reasoning tasks to conduct the experiments: CommonsenseQA (Talmor et al., 2019), PhysicalQA (Bisk et al., 2020), as well as several Winograd Schema Challenge (WSC) datasets including WSC273 (Levesque et al., 2012), PDP (Morgenstern et al., 2016), WinoGrande (Sakaguchi et al., 2019), WinoGender (Rudinger et al., 2018). Furthermore, for a comprehensive comparison, we also evaluate the efficiency and effectiveness of the proposed batch partitioning method on the text classification benchmark GLUE (Wang et al., 2018).",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
507,
|
| 1175 |
+
133,
|
| 1176 |
+
884,
|
| 1177 |
+
422
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 5
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "5.2 Effectiveness and Efficiency",
|
| 1184 |
+
"text_level": 1,
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
507,
|
| 1187 |
+
432,
|
| 1188 |
+
774,
|
| 1189 |
+
448
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 5
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "Baselines To verify the efficiency and effectiveness of batch partitioning, we used the following baselines:",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
507,
|
| 1198 |
+
451,
|
| 1199 |
+
882,
|
| 1200 |
+
500
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 5
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "list",
|
| 1206 |
+
"sub_type": "text",
|
| 1207 |
+
"list_items": [
|
| 1208 |
+
"- Vanilla BERT/RoBERTa without external knowledge.",
|
| 1209 |
+
"- OK-Transformer To show the efficiency gains of the batch partitioning proposed in this paper, we compare it with the original OK-Transformer. The baseline randomly partitions samples into batches. We consider this baseline as the lower upper bound of effectiveness of commonsense integration.",
|
| 1210 |
+
"- Frozen knowledge encodings For a comprehensive comparison, we propose to freeze the encoding of commonsense descriptions during fine-tuning. This approach allows us to introduce external textual commonsense descriptions via embedding lookup with minimal time cost. We consider this baseline as the upper bound on the efficiency of commonsense integration."
|
| 1211 |
+
],
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
531,
|
| 1214 |
+
508,
|
| 1215 |
+
884,
|
| 1216 |
+
814
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 5
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "The results of commonsense reasoning and text classification are presented in Table 2 and Table 3, respectively. The effectiveness of our batch partitioning approach is demonstrated by its improvement over vanilla language models on both commonsense reasoning and text classification tasks.",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
507,
|
| 1225 |
+
822,
|
| 1226 |
+
882,
|
| 1227 |
+
917
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 5
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "page_number",
|
| 1233 |
+
"text": "3764",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
480,
|
| 1236 |
+
927,
|
| 1237 |
+
521,
|
| 1238 |
+
940
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 5
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "table",
|
| 1244 |
+
"img_path": "images/9732fa5924c0e0d2b64c99092fe4a51de6010bf00f3e9ca3e95a977903d8757f.jpg",
|
| 1245 |
+
"table_caption": [],
|
| 1246 |
+
"table_footnote": [],
|
| 1247 |
+
"table_body": "<table><tr><td></td><td>LM</td><td>Comm.QA</td><td>PhysicalQA</td><td>WSC273</td><td>PDP</td><td>WinoGrande</td><td>WinoGender</td><td>Avg.</td><td>Speed-up ↑</td></tr><tr><td>BERT</td><td>BERT</td><td>55.86</td><td>68.71</td><td>66.30</td><td>85.00</td><td>51.38</td><td>68.19</td><td>65.44</td><td>-</td></tr><tr><td>Frozen knowledge</td><td>BERT</td><td>56.43</td><td>68.06</td><td>65.93</td><td>83.33</td><td>51.30</td><td>68.47</td><td>65.59</td><td>1.4×</td></tr><tr><td>OK-Transformer</td><td>BERT</td><td>56.27</td><td>69.09</td><td>67.40</td><td>86.67</td><td>52.64</td><td>71.53</td><td>66.56</td><td>1.0×</td></tr><tr><td>Batch Partitioning</td><td>BERT</td><td>56.59</td><td>69.53</td><td>66.67</td><td>86.67</td><td>52.17</td><td>72.78</td><td>67.40</td><td>1.4×</td></tr><tr><td>RoBERTa</td><td>RoB.</td><td>73.55</td><td>79.76</td><td>90.10</td><td>90.00</td><td>-</td><td>94.60</td><td>83.95</td><td>-</td></tr><tr><td>Frozen knowledge</td><td>RoB.</td><td>75.02</td><td>52.77</td><td>90.48</td><td>88.33</td><td>-</td><td>96.81</td><td>80.01</td><td>1.5×</td></tr><tr><td>OK-Transformer</td><td>RoB.</td><td>75.92</td><td>80.09</td><td>91.58</td><td>90.00</td><td>-</td><td>95.00</td><td>84.75</td><td>1.0×</td></tr><tr><td>Batch Partitioning</td><td>RoB.</td><td>75.59</td><td>80.20</td><td>90.48</td><td>91.66</td><td>-</td><td>96.25</td><td>85.14</td><td>1.4×</td></tr></table>",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
126,
|
| 1250 |
+
80,
|
| 1251 |
+
873,
|
| 1252 |
+
205
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 6
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "table",
|
| 1258 |
+
"img_path": "images/e5c1bdde97afc51c02061c6b61c92ffdee4500ef585970332b92c0d873bc95f3.jpg",
|
| 1259 |
+
"table_caption": [
|
| 1260 |
+
"Table 2: Results on commonsense reasoning tasks. The effectiveness of batch partitioning surpasses the vanilla BERT/RoBERTa, and is competitive with its upper bound (OK-Transformer). In terms of efficiency, the speed-up of batch partitioning is also competitive to its upper bound (frozen knowledge). RoB. denotes RoBERTa."
|
| 1261 |
+
],
|
| 1262 |
+
"table_footnote": [],
|
| 1263 |
+
"table_body": "<table><tr><td></td><td>LM</td><td>MRPC</td><td>CoLA</td><td>RTE</td><td>QNLI</td><td>STS-B</td><td>SST-2</td><td>Avg.</td><td>Speed-up</td></tr><tr><td>BERT</td><td>BERT</td><td>86.52/90.66</td><td>59.50</td><td>71.43</td><td>91.20</td><td>89.35/88.93</td><td>91.97</td><td>82.28</td><td>-</td></tr><tr><td>Frozen knowledge</td><td>BERT</td><td>87.50/91.28</td><td>57.31</td><td>70.76</td><td>91.71</td><td>87.31/87.20</td><td>92.43</td><td>81.78</td><td>2.3×</td></tr><tr><td>OK-Transformer</td><td>BERT</td><td>87.50/91.04</td><td>58.29</td><td>72.20</td><td>91.58</td><td>89.82/89.46</td><td>92.66</td><td>82.54</td><td>1.0×</td></tr><tr><td>Batch Partitioning</td><td>BERT</td><td>87.99/91.45</td><td>61.41</td><td>71.48</td><td>91.32</td><td>89.64/89.19</td><td>93.69</td><td>83.09</td><td>2.1×</td></tr><tr><td>RoBERTa</td><td>RoB.</td><td>90.49/93.07</td><td>66.84</td><td>86.28</td><td>93.37</td><td>91.83/91.95</td><td>95.64</td><td>87.86</td><td>-</td></tr><tr><td>Frozen knowledge</td><td>RoB.</td><td>89.71/92.61</td><td>68.22</td><td>87.36</td><td>94.39</td><td>90.74/90.47</td><td>96.10</td><td>88.19</td><td>2.4×</td></tr><tr><td>OK-Transformer</td><td>RoB.</td><td>91.91/94.24</td><td>66.89</td><td>86.28</td><td>94.71</td><td>92.19/92.36</td><td>96.44</td><td>88.49</td><td>1.0×</td></tr><tr><td>Batch Partitioning</td><td>RoB.</td><td>90.69/93.44</td><td>67.75</td><td>85.92</td><td>94.07</td><td>92.41/92.20</td><td>96.22</td><td>88.27</td><td>2.1×</td></tr></table>",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
127,
|
| 1266 |
+
271,
|
| 1267 |
+
870,
|
| 1268 |
+
397
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 6
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Table 3: Results on text classification tasks. Both the effectiveness and the efficiency of batch partitioning are competitive to their upper bounds (OK-Transformer and frozen knowledge).",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
112,
|
| 1277 |
+
406,
|
| 1278 |
+
882,
|
| 1279 |
+
437
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 6
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "image",
|
| 1285 |
+
"img_path": "images/2b84a00213ca9264976d97800cd6418a4691e3d5279678013e3ca95bd4d39dbe.jpg",
|
| 1286 |
+
"image_caption": [
|
| 1287 |
+
"Figure 2: The effect of the scale of extra commonsense. We control the scale by limiting the upper number of commonsense descriptions per sample in SST-2."
|
| 1288 |
+
],
|
| 1289 |
+
"image_footnote": [],
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
147,
|
| 1292 |
+
463,
|
| 1293 |
+
455,
|
| 1294 |
+
636
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 6
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "The effectiveness is comparable or slightly superior to that of OK-Transformer, which serves as the upper bound for effectiveness. In terms of efficiency, our approach significantly accelerates knowledge integration models across a range of tasks. On average, it reduces the time cost for knowledge encoding by $40\\%$ for commonsense reasoning tasks, and $110\\%$ for text classification tasks. This acceleration is close to the frozen knowledge, and serves as the upper bound for efficiency. Overall, our approach is close to its efficiency upper bound without losing effectiveness.",
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
112,
|
| 1303 |
+
726,
|
| 1304 |
+
489,
|
| 1305 |
+
917
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 6
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "5.3 Scalability for Dataset Sizes, Device Capacities, and Knowledge Sizes",
|
| 1312 |
+
"text_level": 1,
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
507,
|
| 1315 |
+
460,
|
| 1316 |
+
835,
|
| 1317 |
+
493
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 6
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"type": "text",
|
| 1323 |
+
"text": "In this subsection, we investigate the scalability of batch partitioning with different batch sizes, as well as the different dataset sizes. Larger dataset sizes usually mean devices with larger memory. In particular, we calculated the speedups of knowledge encoding for different batch sizes and different tasks. The results are shown in Fig. 4. The datasets are sorted by size in descending order.",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
505,
|
| 1326 |
+
498,
|
| 1327 |
+
884,
|
| 1328 |
+
627
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 6
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "It can be clearly seen that as the size of the dataset rises or the memory of the device rises (larger batch size), the speedup of batch partitioning becomes more significant. This is because, for data-intensive tasks, the knowledge overlapping among different samples is more significant, which increases the feasibility of using batch partitioning. This result verifies the scalability of batch partitioning.",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
507,
|
| 1337 |
+
627,
|
| 1338 |
+
884,
|
| 1339 |
+
772
|
| 1340 |
+
],
|
| 1341 |
+
"page_idx": 6
|
| 1342 |
+
},
|
| 1343 |
+
{
|
| 1344 |
+
"type": "text",
|
| 1345 |
+
"text": "We also investigate the scalability of batch partitioning over different scales of integrated commonsense. To control the scale, we set the upper number of commonsense descriptions for each sample to 16/32/64, respectively, and study the efficiency. Intuitively, richer commonsense descriptions lead to higher effectiveness but more computation cost. The results are shown in Fig. 2.",
|
| 1346 |
+
"bbox": [
|
| 1347 |
+
507,
|
| 1348 |
+
772,
|
| 1349 |
+
885,
|
| 1350 |
+
902
|
| 1351 |
+
],
|
| 1352 |
+
"page_idx": 6
|
| 1353 |
+
},
|
| 1354 |
+
{
|
| 1355 |
+
"type": "text",
|
| 1356 |
+
"text": "As commonsense knowledge becomes richer, the",
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
527,
|
| 1359 |
+
903,
|
| 1360 |
+
880,
|
| 1361 |
+
917
|
| 1362 |
+
],
|
| 1363 |
+
"page_idx": 6
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"type": "page_number",
|
| 1367 |
+
"text": "3765",
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
480,
|
| 1370 |
+
927,
|
| 1371 |
+
519,
|
| 1372 |
+
940
|
| 1373 |
+
],
|
| 1374 |
+
"page_idx": 6
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"type": "image",
|
| 1378 |
+
"img_path": "images/8d1a9452fc02a40f4b0244a059b736350110a565bc1ad139471c1e3ea1ba0062.jpg",
|
| 1379 |
+
"image_caption": [
|
| 1380 |
+
"(a) MRPC"
|
| 1381 |
+
],
|
| 1382 |
+
"image_footnote": [],
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
124,
|
| 1385 |
+
84,
|
| 1386 |
+
300,
|
| 1387 |
+
186
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 7
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "image",
|
| 1393 |
+
"img_path": "images/5066d569d43d450f479e7f435d24e869a41a877df5e839e063ee4b91e172d923.jpg",
|
| 1394 |
+
"image_caption": [
|
| 1395 |
+
"(b) CoLA",
|
| 1396 |
+
"Figure 3: Strong correlation between the distinct commonsense descriptions per batch and the average distance to the centroid during clustering."
|
| 1397 |
+
],
|
| 1398 |
+
"image_footnote": [],
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
314,
|
| 1401 |
+
85,
|
| 1402 |
+
492,
|
| 1403 |
+
186
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 7
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "image",
|
| 1409 |
+
"img_path": "images/65abbb33676dfb3e6a8d644ffe711a19cec5ecd9bb0d7c19d513bddf95067c00.jpg",
|
| 1410 |
+
"image_caption": [
|
| 1411 |
+
"(c) RTE"
|
| 1412 |
+
],
|
| 1413 |
+
"image_footnote": [],
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
505,
|
| 1416 |
+
85,
|
| 1417 |
+
682,
|
| 1418 |
+
186
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 7
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "image",
|
| 1424 |
+
"img_path": "images/2717bd99cdb36ae3036299b9159deff06406a683a9f7d37abe0c978f182d85b8.jpg",
|
| 1425 |
+
"image_caption": [
|
| 1426 |
+
"(d) STS-B"
|
| 1427 |
+
],
|
| 1428 |
+
"image_footnote": [],
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
697,
|
| 1431 |
+
85,
|
| 1432 |
+
873,
|
| 1433 |
+
186
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 7
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "image",
|
| 1439 |
+
"img_path": "images/1594c7c7a6069f48db4954328bb329e516bb706105c6f90148c45a85be5ab1b5.jpg",
|
| 1440 |
+
"image_caption": [
|
| 1441 |
+
"Figure 4: Speed-up of proposed batch partitioning method over different training batch size and dataset size. Note that the datasets are arranged in descending order according to dataset size."
|
| 1442 |
+
],
|
| 1443 |
+
"image_footnote": [],
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
124,
|
| 1446 |
+
292,
|
| 1447 |
+
455,
|
| 1448 |
+
441
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 7
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "effectiveness and the acceleration both increase. This is because the knowledge overlapping among samples also becomes more significant. The result verifies that batch partitioning is applicable for incorporating large-scale commonsense knowledge bases.",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
112,
|
| 1457 |
+
541,
|
| 1458 |
+
487,
|
| 1459 |
+
634
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 7
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "5.4 Effect of Spectral Clustering Theory",
|
| 1466 |
+
"text_level": 1,
|
| 1467 |
+
"bbox": [
|
| 1468 |
+
112,
|
| 1469 |
+
653,
|
| 1470 |
+
445,
|
| 1471 |
+
669
|
| 1472 |
+
],
|
| 1473 |
+
"page_idx": 7
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"type": "text",
|
| 1477 |
+
"text": "In this paper, we propose the use of spectral clustering to solve the batch partitioning problem. We approximate and optimize the distinct number of descriptions per batch in Eq. (1) by minimizing the distance of each node to the centroid of the cluster in spectral clustering. In this subsection, we demonstrate the rationale behind this approximation by highlighting the strong correlation between the objective of Eq. (1) and the distance minimization in spectral embeddings.",
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
112,
|
| 1480 |
+
676,
|
| 1481 |
+
487,
|
| 1482 |
+
837
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 7
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "text",
|
| 1488 |
+
"text": "To this end, we plot how the centroid distance and the distinct descriptions per batch vary at each iteration of the spectral clustering algorithm in Fig. 3. The results show a strong correlation between the value we directly optimize (i.e., the cen",
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
112,
|
| 1491 |
+
839,
|
| 1492 |
+
489,
|
| 1493 |
+
917
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 7
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "troid distance) and the target of the batch partitioning (i.e., distinct descriptions per batch). This supports the feasibility of using spectral clustering to convert the batch partitioning problem into a balanced graph $k$ -cut problem and solve it efficiently.",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
507,
|
| 1502 |
+
275,
|
| 1503 |
+
884,
|
| 1504 |
+
355
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 7
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "6 Conclusion",
|
| 1511 |
+
"text_level": 1,
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
507,
|
| 1514 |
+
376,
|
| 1515 |
+
640,
|
| 1516 |
+
392
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 7
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "In this paper, we study how to improve the efficiency of incorporating commonsense knowledge in language models. Due to the high encoding costs of commonsense descriptions, it is crucial to reduce their encoding complexity. Our idea is that by carefully dividing samples with similar descriptions into the same batch, the knowledge encoding utilization can be improved.",
|
| 1523 |
+
"bbox": [
|
| 1524 |
+
505,
|
| 1525 |
+
410,
|
| 1526 |
+
882,
|
| 1527 |
+
539
|
| 1528 |
+
],
|
| 1529 |
+
"page_idx": 7
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"type": "text",
|
| 1533 |
+
"text": "With such an idea, we theoretically analyze the optimization objective of this batch partitioning. We found that the upper bound of this problem can be reduced to the classical graph $k$ -cut problem. We propose to use the well-studied spectral clustering algorithm to optimize the batch partitioning. By experimenting with a variety of tasks, we show that the proposed batch partitioning approaches its upper bound in terms of both effectiveness and efficiency. And the method is more applicable for larger datasets and on devices with more capabilities.",
|
| 1534 |
+
"bbox": [
|
| 1535 |
+
507,
|
| 1536 |
+
542,
|
| 1537 |
+
884,
|
| 1538 |
+
734
|
| 1539 |
+
],
|
| 1540 |
+
"page_idx": 7
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"type": "text",
|
| 1544 |
+
"text": "7 Limitations",
|
| 1545 |
+
"text_level": 1,
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
509,
|
| 1548 |
+
757,
|
| 1549 |
+
643,
|
| 1550 |
+
772
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 7
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "The theoretical results and the algorithm should be applicable for other knowledge integration models which encode target sentences and associated textual knowledge descriptions in mini-batches. However, this paper does not extensively apply the proposed method to various knowledge integration models to explore its efficiency and effectiveness.",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
507,
|
| 1559 |
+
790,
|
| 1560 |
+
882,
|
| 1561 |
+
903
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 7
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "page_number",
|
| 1567 |
+
"text": "3766",
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
480,
|
| 1570 |
+
928,
|
| 1571 |
+
519,
|
| 1572 |
+
940
|
| 1573 |
+
],
|
| 1574 |
+
"page_idx": 7
|
| 1575 |
+
},
|
| 1576 |
+
{
|
| 1577 |
+
"type": "text",
|
| 1578 |
+
"text": "References",
|
| 1579 |
+
"text_level": 1,
|
| 1580 |
+
"bbox": [
|
| 1581 |
+
115,
|
| 1582 |
+
84,
|
| 1583 |
+
213,
|
| 1584 |
+
98
|
| 1585 |
+
],
|
| 1586 |
+
"page_idx": 8
|
| 1587 |
+
},
|
| 1588 |
+
{
|
| 1589 |
+
"type": "list",
|
| 1590 |
+
"sub_type": "ref_text",
|
| 1591 |
+
"list_items": [
|
| 1592 |
+
"Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 7432-7439.",
|
| 1593 |
+
"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.",
|
| 1594 |
+
"Antoine Bosselut, Hannah Rashkin, Maarten Sap, Chaitanya Malaviya, Asli Celikyilmaz, and Yejin Choi. 2019. COMET: Commonsense transformers for automatic knowledge graph construction. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4762-4779, Florence, Italy. Association for Computational Linguistics.",
|
| 1595 |
+
"Christos Boutsidis, Prabhanjan Kambadur, and Alex Gittens. 2015. Spectral clustering via the power method-provably. In International conference on machine learning, pages 40-48. PMLR.",
|
| 1596 |
+
"Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading Wikipedia to answer open-domain questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1870-1879, Vancouver, Canada. Association for Computational Linguistics.",
|
| 1597 |
+
"Wanyun Cui and Xingran Chen. 2022. Enhancing natural language representation with large-scale out-of-domain commonsense. In *Findings of the Association for Computational Linguistics: ACL 2022*, pages 1746–1756, Dublin, Ireland. Association for Computational Linguistics.",
|
| 1598 |
+
"Tianqing Fang, Hongming Zhang, Weiqi Wang, Yangqiu Song, and Bin He. 2021. Discos: Bridging the gap between discourse knowledge and commonsense knowledge. In Proceedings of the Web Conference 2021, pages 2648-2659.",
|
| 1599 |
+
"Jian Guan, Fei Huang, Zhihao Zhao, Xiaoyan Zhu, and Minlie Huang. 2020. A knowledge-enhanced pretraining model for commonsense story generation. Transactions of the Association for Computational Linguistics, 8:93-108.",
|
| 1600 |
+
"Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In International Conference on Machine Learning, pages 3929-3938. PMLR.",
|
| 1601 |
+
"Jena D. Hwang, Chandra Bhagavatula, Ronan Le Bras, Jeff Da, Keisuke Sakaguchi, Antoine Bosselut, and Yejin Choi. 2021. Comet-atomic 2020: On symbolic and neural commonsense knowledge graphs. In AAAI."
|
| 1602 |
+
],
|
| 1603 |
+
"bbox": [
|
| 1604 |
+
115,
|
| 1605 |
+
105,
|
| 1606 |
+
489,
|
| 1607 |
+
917
|
| 1608 |
+
],
|
| 1609 |
+
"page_idx": 8
|
| 1610 |
+
},
|
| 1611 |
+
{
|
| 1612 |
+
"type": "list",
|
| 1613 |
+
"sub_type": "ref_text",
|
| 1614 |
+
"list_items": [
|
| 1615 |
+
"Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. 2018. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2704-2713.",
|
| 1616 |
+
"Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6769-6781, Online. Association for Computational Linguistics.",
|
| 1617 |
+
"Nikita Kitaev, Lukasz Kaiser, and Anselm Levskaya. 2019. Reformer: The efficient transformer. In International Conference on Learning Representations.",
|
| 1618 |
+
"Pavel Kolev and Kurt Mehlhorn. 2016. A note on spectral clustering. In 24th Annual European Symposium on Algorithms (ESA 2016). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik.",
|
| 1619 |
+
"Hector Levesque, Ernest Davis, and Leora Morgenstern. 2012. The winograd schema challenge. In Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning. CiteSeer.",
|
| 1620 |
+
"Jialu Liu, Chi Wang, Marina Danilevsky, and Jiawei Han. 2013. Large-scale spectral clustering on graphs. In Twenty-Third International Joint Conference on Artificial Intelligence.",
|
| 1621 |
+
"Robert Logan, Nelson F. Liu, Matthew E. Peters, Matt Gardner, and Sameer Singh. 2019. Barack's wife hillary: Using knowledge graphs for fact-aware language modeling. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5962-5971, Florence, Italy. Association for Computational Linguistics.",
|
| 1622 |
+
"Chaitanya Malaviya, Chandra Bhagavatula, Antoine Bosselut, and Yejin Choi. 2020. Commonsense knowledge base completion with structural and semantic context. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 2925-2933.",
|
| 1623 |
+
"Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pages 3111-3119.",
|
| 1624 |
+
"Leora Morgenstern, Ernest Davis, and Charles L Ortiz. 2016. Planning, executing, and evaluating the winograd schema challenge. AI Magazine, 37(1):50-54.",
|
| 1625 |
+
"Andrew Y Ng, Michael I Jordan, and Yair Weiss. 2002. On spectral clustering: Analysis and an algorithm. In Advances in neural information processing systems, pages 849-856."
|
| 1626 |
+
],
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
510,
|
| 1629 |
+
85,
|
| 1630 |
+
884,
|
| 1631 |
+
917
|
| 1632 |
+
],
|
| 1633 |
+
"page_idx": 8
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"type": "page_number",
|
| 1637 |
+
"text": "3767",
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
480,
|
| 1640 |
+
928,
|
| 1641 |
+
519,
|
| 1642 |
+
940
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 8
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "list",
|
| 1648 |
+
"sub_type": "ref_text",
|
| 1649 |
+
"list_items": [
|
| 1650 |
+
"Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah Smith, and Lingpeng Kong. 2020. Random feature attention. In International Conference on Learning Representations.",
|
| 1651 |
+
"Matthew E Peters, Mark Neumann, Robert Logan, Roy Schwartz, Vidur Joshi, Sameer Singh, and Noah A Smith. 2019. Knowledge enhanced contextual word representations. In *Conference on Empirical Methods in Natural Language Processing* and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).",
|
| 1652 |
+
"Syama Sundar Rangapuram, Pramod Kaushik Mudrakarta, and Matthias Hein. 2014. Tight continuous relaxation of the balanced k-cut problem. Advances in Neural Information Processing Systems, 27:3131-3139.",
|
| 1653 |
+
"Rachel Rudinger, Jason Naradowsky, Brian Leonard, and Benjamin Van Durme. 2018. Gender bias in coreference resolution. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 8-14.",
|
| 1654 |
+
"Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2019. Winogrande: An adversarial winograd schema challenge at scale. arXiv preprint arXiv:1907.10641.",
|
| 1655 |
+
"Victor Sanh, Lysandre Debut, Julien Chaumont, and Thomas Wolf. 2019. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.",
|
| 1656 |
+
"Maarten Sap, Ronan Le Bras, Emily Allaway, Chandra Bhagavatula, Nicholas Lourie, Hannah Rashkin, Brendan Roof, Noah A Smith, and Yejin Choi. 2019. Atomic: An atlas of machine commonsense for if-then reasoning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3027-3035.",
|
| 1657 |
+
"Vered Shwartz, Peter West, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2020. Unsupervised commonsense question answering with self-talk. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 4615-4629.",
|
| 1658 |
+
"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.",
|
| 1659 |
+
"Nicolas Tremblay, Gilles Puy, Rémi Gribonval, and Pierre Vandergheynst. 2016. Compressive spectral clustering. In International conference on machine learning, pages 1002-1011. PMLR."
|
| 1660 |
+
],
|
| 1661 |
+
"bbox": [
|
| 1662 |
+
115,
|
| 1663 |
+
85,
|
| 1664 |
+
489,
|
| 1665 |
+
917
|
| 1666 |
+
],
|
| 1667 |
+
"page_idx": 9
|
| 1668 |
+
},
|
| 1669 |
+
{
|
| 1670 |
+
"type": "list",
|
| 1671 |
+
"sub_type": "ref_text",
|
| 1672 |
+
"list_items": [
|
| 1673 |
+
"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 Advances in neural information processing systems, pages 5998-6008.",
|
| 1674 |
+
"Denny Vrandecic and Markus Krötzsch. 2014. Wiki-data: a free collaborative knowledgebase. Communications of the ACM, 57(10):78-85.",
|
| 1675 |
+
"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.",
|
| 1676 |
+
"Zhiguo Wang, Patrick Ng, Xiaofei Ma, Ramesh Nallapati, and Bing Xiang. 2019. Multi-passage bert: A globally normalized bert model for open-domain question answering. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 5878-5882.",
|
| 1677 |
+
"Ledell Wu, Fabio Petroni, Martin Josifoski, Sebastian Riedel, and Luke Zettlemoyer. 2020. Scalable zero-shot entity linking with dense entity retrieval. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6397-6407.",
|
| 1678 |
+
"Wenhan Xiong, Jingfei Du, William Yang Wang, and Veselin Stoyanov. 2019. Pretrained encyclopedia: Weakly supervised knowledge-pretrained language model. In International Conference on Learning Representations.",
|
| 1679 |
+
"Hongming Zhang, Xin Liu, Haojie Pan, Yangqiu Song, and Cane Wing-Ki Leung. 2020. Aser: A large-scale eventuality knowledge graph. In Proceedings of the web conference 2020, pages 201-211.",
|
| 1680 |
+
"Zhengyan Zhang, Xu Han, Zhiyuan Liu, Xin Jiang, Maosong Sun, and Qun Liu. 2019. Ernie: Enhanced language representation with informative entities. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1441-1451."
|
| 1681 |
+
],
|
| 1682 |
+
"bbox": [
|
| 1683 |
+
510,
|
| 1684 |
+
85,
|
| 1685 |
+
884,
|
| 1686 |
+
732
|
| 1687 |
+
],
|
| 1688 |
+
"page_idx": 9
|
| 1689 |
+
},
|
| 1690 |
+
{
|
| 1691 |
+
"type": "page_number",
|
| 1692 |
+
"text": "3768",
|
| 1693 |
+
"bbox": [
|
| 1694 |
+
480,
|
| 1695 |
+
928,
|
| 1696 |
+
519,
|
| 1697 |
+
940
|
| 1698 |
+
],
|
| 1699 |
+
"page_idx": 9
|
| 1700 |
+
},
|
| 1701 |
+
{
|
| 1702 |
+
"type": "text",
|
| 1703 |
+
"text": "A For every submission:",
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
114,
|
| 1706 |
+
107,
|
| 1707 |
+
322,
|
| 1708 |
+
122
|
| 1709 |
+
],
|
| 1710 |
+
"page_idx": 10
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"type": "list",
|
| 1714 |
+
"sub_type": "text",
|
| 1715 |
+
"list_items": [
|
| 1716 |
+
"A1. Did you describe the limitations of your work? Sec 5",
|
| 1717 |
+
"A2. Did you discuss any potential risks of your work? Not applicable. Left blank.",
|
| 1718 |
+
"A3. Do the abstract and introduction summarize the paper's main claims? Left blank.",
|
| 1719 |
+
"A4. Have you used AI writing assistants when working on this paper? Left blank."
|
| 1720 |
+
],
|
| 1721 |
+
"bbox": [
|
| 1722 |
+
127,
|
| 1723 |
+
126,
|
| 1724 |
+
695,
|
| 1725 |
+
288
|
| 1726 |
+
],
|
| 1727 |
+
"page_idx": 10
|
| 1728 |
+
},
|
| 1729 |
+
{
|
| 1730 |
+
"type": "text",
|
| 1731 |
+
"text": "B Did you use or create scientific artifacts?",
|
| 1732 |
+
"bbox": [
|
| 1733 |
+
114,
|
| 1734 |
+
300,
|
| 1735 |
+
489,
|
| 1736 |
+
316
|
| 1737 |
+
],
|
| 1738 |
+
"page_idx": 10
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"type": "text",
|
| 1742 |
+
"text": "Left blank.",
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
132,
|
| 1745 |
+
321,
|
| 1746 |
+
215,
|
| 1747 |
+
336
|
| 1748 |
+
],
|
| 1749 |
+
"page_idx": 10
|
| 1750 |
+
},
|
| 1751 |
+
{
|
| 1752 |
+
"type": "list",
|
| 1753 |
+
"sub_type": "text",
|
| 1754 |
+
"list_items": [
|
| 1755 |
+
"B1. Did you cite the creators of artifacts you used? Not applicable. Left blank.",
|
| 1756 |
+
"B2. Did you discuss the license or terms for use and / or distribution of any artifacts? Not applicable. Left blank.",
|
| 1757 |
+
"B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)? Not applicable. Left blank.",
|
| 1758 |
+
"B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it? Not applicable. Left blank.",
|
| 1759 |
+
"B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.? Not applicable. Left blank.",
|
| 1760 |
+
"B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be. Left blank."
|
| 1761 |
+
],
|
| 1762 |
+
"bbox": [
|
| 1763 |
+
127,
|
| 1764 |
+
347,
|
| 1765 |
+
880,
|
| 1766 |
+
753
|
| 1767 |
+
],
|
| 1768 |
+
"page_idx": 10
|
| 1769 |
+
},
|
| 1770 |
+
{
|
| 1771 |
+
"type": "text",
|
| 1772 |
+
"text": "C Did you run computational experiments?",
|
| 1773 |
+
"bbox": [
|
| 1774 |
+
114,
|
| 1775 |
+
764,
|
| 1776 |
+
492,
|
| 1777 |
+
781
|
| 1778 |
+
],
|
| 1779 |
+
"page_idx": 10
|
| 1780 |
+
},
|
| 1781 |
+
{
|
| 1782 |
+
"type": "text",
|
| 1783 |
+
"text": "we discuss the experiments in sec5",
|
| 1784 |
+
"bbox": [
|
| 1785 |
+
132,
|
| 1786 |
+
785,
|
| 1787 |
+
391,
|
| 1788 |
+
801
|
| 1789 |
+
],
|
| 1790 |
+
"page_idx": 10
|
| 1791 |
+
},
|
| 1792 |
+
{
|
| 1793 |
+
"type": "text",
|
| 1794 |
+
"text": "C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used? parameters same as BERT/RoBERTa.",
|
| 1795 |
+
"bbox": [
|
| 1796 |
+
127,
|
| 1797 |
+
813,
|
| 1798 |
+
880,
|
| 1799 |
+
860
|
| 1800 |
+
],
|
| 1801 |
+
"page_idx": 10
|
| 1802 |
+
},
|
| 1803 |
+
{
|
| 1804 |
+
"type": "header",
|
| 1805 |
+
"text": "ACL 2023 Responsible NLP Checklist",
|
| 1806 |
+
"bbox": [
|
| 1807 |
+
132,
|
| 1808 |
+
84,
|
| 1809 |
+
433,
|
| 1810 |
+
99
|
| 1811 |
+
],
|
| 1812 |
+
"page_idx": 10
|
| 1813 |
+
},
|
| 1814 |
+
{
|
| 1815 |
+
"type": "page_footnote",
|
| 1816 |
+
"text": "The Responsible NLP Checklist used at ACL 2023 is adopted from NAACL 2022, with the addition of a question on AI writing assistance.",
|
| 1817 |
+
"bbox": [
|
| 1818 |
+
112,
|
| 1819 |
+
868,
|
| 1820 |
+
877,
|
| 1821 |
+
892
|
| 1822 |
+
],
|
| 1823 |
+
"page_idx": 10
|
| 1824 |
+
},
|
| 1825 |
+
{
|
| 1826 |
+
"type": "page_number",
|
| 1827 |
+
"text": "3769",
|
| 1828 |
+
"bbox": [
|
| 1829 |
+
480,
|
| 1830 |
+
928,
|
| 1831 |
+
519,
|
| 1832 |
+
940
|
| 1833 |
+
],
|
| 1834 |
+
"page_idx": 10
|
| 1835 |
+
},
|
| 1836 |
+
{
|
| 1837 |
+
"type": "list",
|
| 1838 |
+
"sub_type": "text",
|
| 1839 |
+
"list_items": [
|
| 1840 |
+
"C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values? in sec5",
|
| 1841 |
+
"C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run? Fig. 2",
|
| 1842 |
+
"C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)? We follow the implementation and experiments setting of OK-Transformer as we mentioned in sec 5."
|
| 1843 |
+
],
|
| 1844 |
+
"bbox": [
|
| 1845 |
+
129,
|
| 1846 |
+
83,
|
| 1847 |
+
878,
|
| 1848 |
+
282
|
| 1849 |
+
],
|
| 1850 |
+
"page_idx": 11
|
| 1851 |
+
},
|
| 1852 |
+
{
|
| 1853 |
+
"type": "text",
|
| 1854 |
+
"text": "D Did you use human annotators (e.g., crowdworkers) or research with human participants? Left blank.",
|
| 1855 |
+
"text_level": 1,
|
| 1856 |
+
"bbox": [
|
| 1857 |
+
112,
|
| 1858 |
+
293,
|
| 1859 |
+
877,
|
| 1860 |
+
330
|
| 1861 |
+
],
|
| 1862 |
+
"page_idx": 11
|
| 1863 |
+
},
|
| 1864 |
+
{
|
| 1865 |
+
"type": "list",
|
| 1866 |
+
"sub_type": "text",
|
| 1867 |
+
"list_items": [
|
| 1868 |
+
"D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.? Not applicable. Left blank.",
|
| 1869 |
+
"D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)? Not applicable. Left blank.",
|
| 1870 |
+
"D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used? Not applicable. Left blank.",
|
| 1871 |
+
"D4. Was the data collection protocol approved (or determined exempt) by an ethics review board? Not applicable. Left blank.",
|
| 1872 |
+
"D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data? Not applicable. Left blank."
|
| 1873 |
+
],
|
| 1874 |
+
"bbox": [
|
| 1875 |
+
127,
|
| 1876 |
+
340,
|
| 1877 |
+
878,
|
| 1878 |
+
640
|
| 1879 |
+
],
|
| 1880 |
+
"page_idx": 11
|
| 1881 |
+
},
|
| 1882 |
+
{
|
| 1883 |
+
"type": "page_number",
|
| 1884 |
+
"text": "3770",
|
| 1885 |
+
"bbox": [
|
| 1886 |
+
480,
|
| 1887 |
+
927,
|
| 1888 |
+
521,
|
| 1889 |
+
940
|
| 1890 |
+
],
|
| 1891 |
+
"page_idx": 11
|
| 1892 |
+
}
|
| 1893 |
+
]
|
2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/a325db9e-aab0-4f36-8d85-9ab6ad31543b_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/a325db9e-aab0-4f36-8d85-9ab6ad31543b_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8cd2e73623856e778200136e0a2a4bd19ed628b715c11bebaf73c87ee32e51bf
|
| 3 |
+
size 517763
|
2023/Free Lunch for Efficient Textual Commonsense Integration in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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Free Lunch for Efficient Textual Commonsense Integration in Language Models
|
| 2 |
+
|
| 3 |
+
Wanyun Cui
|
| 4 |
+
|
| 5 |
+
Shanghai University of Finance and Economics
|
| 6 |
+
|
| 7 |
+
cui.wanyun@shufe.edu.cn
|
| 8 |
+
|
| 9 |
+
Xingran Chen
|
| 10 |
+
|
| 11 |
+
University of Michigan
|
| 12 |
+
|
| 13 |
+
chenxran@umich.edu
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Recent years have witnessed the emergence of textual commonsense knowledge bases, aimed at providing more nuanced and context-rich knowledge. The integration of external commonsense into language models has been shown to be a key enabler in advancing the state-of-the-art for a wide range of NLP tasks. However, incorporating textual commonsense descriptions is computationally expensive, as compared to encoding conventional symbolic knowledge. In this paper, we propose a method to improve its efficiency without modifying the model. We group training samples with similar commonsense descriptions into a single batch, thus reusing the encoded description across multiple samples. One key observation is that the upper bound of batch partitioning can be reduced to the classic graph $k$ -cut problem. Consequently, we propose a spectral clustering-based algorithm to solve this problem. Extensive experiments illustrate that the proposed batch partitioning approach effectively reduces the computational cost while preserving performance. The efficiency improvement is more pronounced on larger datasets and on devices with more memory capacity, attesting to its practical utility for large-scale applications.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
While pre-trained language models have made substantial progress in natural language processing, they still lack certain knowledge. Thus it is critical to incorporate external knowledge sources (Peters et al., 2019; Zhang et al., 2019; Logan et al., 2019). Previous research has primarily focused on incorporating symbolic knowledge from structured knowledge graphs. Recently, realizing the lack of expressiveness and contextualization of symbolic knowledge, many forms of commonsense knowledge bases are constructed, such as if-then knowledge (Sap et al., 2019) and discourse knowledge (Fang et al., 2021). The integration of such textual commonsense knowledge into language
|
| 22 |
+
|
| 23 |
+
models has been shown to improve the state of the art for various tasks, such as named entity recognition (Wu et al., 2020) and commonsense knowledge base completion (Malaviya et al., 2020).
|
| 24 |
+
|
| 25 |
+
However, integrating such commonsense knowledge are computationally expensive. Commonsense knowledge in text form requires more complex encoders (e.g. Transformer (Vaswani et al., 2017)), as opposed to the simple lookup operation for discrete symbolic knowledge. The feedforward and back-propagation process for the text encoder is significantly more computationally expensive than the standalone symbolic knowledge embeddings. Therefore, it is essential to reduce the computational cost for efficient integration of textual commonsense knowledge, particularly for large-scale applications.
|
| 26 |
+
|
| 27 |
+
In this paper, we propose a method to accelerate the process of incorporating textual commonsense knowledge into language models. Our approach is based on the observation that if multiple training samples in a mini-batch share the same commonsense description, the encoding for that description can be reused across those samples. In other words, we only need to encode each distinct description in a mini-batch once. For example, consider the training samples $x_{1\dots 4}$ and the associated commonsense $t_{1\dots 4}$ in Fig. 1. In the batch partitioning in Fig. 1a, the samples in one batch have no shared descriptions, requiring seven times of commonsense encoding for $t_i$ . However, in the batch partitioning shown in Fig. 1b, each description will be encoded only once, resulting in only four times of encoding for $t_i$ . The cost of encoding the commonsense is significantly reduced by effective partitioning of the training samples. Therefore, our goal is to group the training samples in such a way as to minimize the total number of distinct commonsense descriptions per mini-batch.
|
| 28 |
+
|
| 29 |
+
To optimize the batch partitioning, we begin by theoretically analyzing the objective (§2.1). Our
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
(a) If samples are divided randomly into batches, a total of 7 times of encoding for $t_i$ is required.
|
| 37 |
+
Figure 1: Idea of batch partitioning.
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
(b) If samples are divided delicately, only a total of 4 times of encoding for $t_i$ is required.
|
| 41 |
+
|
| 42 |
+
key observation is that the upper bound of the cost can be reduced to the well-studied graph $k$ -cut problem (Rangapuram et al., 2014) ( $\S 3.1$ $\S 3.2$ ). As a result, we minimize the upper bound instead by adapting the classic spectral clustering algorithm ( $\S 3.3$ ). The average distinct commonsense descriptions per batch are approximated by the distance to the cluster centroid, and is optimized by spectral clustering. This is also empirically verified ( $\S 5.4$ ).
|
| 43 |
+
|
| 44 |
+
The main contributions of this paper are as follows: (1) We propose the use of batch partitioning for improving the efficiency of textual commonsense integration for language models. (2) We theoretically demonstrate that the batch partitioning problem can be reduced to the classic graph $k$ -cut problem, and we use the well-studied spectral clustering to optimize it. (3) We empirically show that the efficiency of integrating commonsense descriptions can be significantly improved without sacrificing effectiveness. The acceleration is even more pronounced for large-scale training.
|
| 45 |
+
|
| 46 |
+
# 2 The Batch Partitioning Problem
|
| 47 |
+
|
| 48 |
+
In this section, we analyze the training efficiency w.r.t. batch partitioning. We first show in § 2.1 that the complexity of the model depends on the number of corresponding knowledge descriptions per sample. Then, in § 2.2, we formally define this batch partitioning problem.
|
| 49 |
+
|
| 50 |
+
# 2.1 Model Setup and Complexity Analysis
|
| 51 |
+
|
| 52 |
+
In this paper, we use the OK-Transformer (Cui and Chen, 2022) as the backbone. OK-Transformer is a recently proposed model that effectively introduces commonsense knowledge into language
|
| 53 |
+
|
| 54 |
+
models. Traditional approaches for such introduction required pre-training language models on a large corpus along with external commonsense, which was time-consuming (Peters et al., 2019; Zhang et al., 2019). The OK-Transformer model, on the other hand, is able to directly incorporate extra knowledge without pre-training. This model utilizes commonsense tokens and attention mechanisms to effectively integrate textual commonsense. Our proposed batch partitioning method is also applicable to other models that encode target sentences and associated commonsense descriptions.
|
| 55 |
+
|
| 56 |
+
To analyze the computational complexity of encoding commonsense knowledge and formulate the problem, we briefly describe how the original OK-Transformer works. It consists of three Transformers, where $\mathrm{Transformer}^{(1)}$ is used to represent the target sentence, $\mathrm{Transformer}^{(2)}$ is used to represent each textual commonsense description, and $\mathrm{Transformer}^{(3)}$ is used to incorporate commonsense embeddings from $\mathrm{Transformer}^{(2)}$ into $\mathrm{Transformer}^{(1)}$ .
|
| 57 |
+
|
| 58 |
+
We now concretely analyze the complexity of integrating external textual commonsense. When encoding a sample with associated commonsense descriptions, the complexity consists of three modules:
|
| 59 |
+
|
| 60 |
+
- For encoding the target sentence via $\mathrm{Transformer}^{(1)}$ , the complexity of encoding a sentence of length $L$ into dimension $D$ is $O(L^2 D)$ .
|
| 61 |
+
- For encoding textual commonsense descriptions via Transformer $^{(2)}$ , the complexity of encoding $C$ knowledge descriptions of length $L$ is $O(CL^2 D)$ .
|
| 62 |
+
- For integrating the knowledge embeddings into the target sentence via Transformer $^{(3)}$ , the complexity is $O(C^2 D)$ .
|
| 63 |
+
|
| 64 |
+
<table><tr><td>Module</td><td>Complexity</td></tr><tr><td>Target sentence encoding</td><td>O(L2D)</td></tr><tr><td>External knowledge encoding</td><td>O(CL2D)</td></tr><tr><td>Knowledge integration</td><td>O(C2D)</td></tr></table>
|
| 65 |
+
|
| 66 |
+
Table 1: Module complexities.
|
| 67 |
+
|
| 68 |
+
We summarize the complexity in Table 1. Since in practice we usually have $L^2 \gg C$ , the key is to reduce the complexity of encoding for textual commonsense descriptions, i.e., reduce $O(CL^2 D)$ .
|
| 69 |
+
|
| 70 |
+
Relation to retrieval-based knowledge incorporation Integrating text commonsense is related to learning dense retrievers for efficiently retrieving and introducing external textual commonsense, such as REALM (Guu et al., 2020). In commonsense incorporation, each sample only retrieves a small number of knowledge descriptions based on trigger words. So the key of our problem is to efficiently and effectively incorporate certain knowledge descriptions, rather than the information retrieval in dense retrievers. Specifically, dense retrievers typically consist of a retriever and a knowledge-augmented encoder. Our work can be analogous to reducing the cost of the knowledge-augmented encoder.
|
| 71 |
+
|
| 72 |
+
# 2.2 Problem Formulation
|
| 73 |
+
|
| 74 |
+
We now formulate the problem of batch partitioning. As stated in the introduction, different samples may correspond to the same textual commonsense description. We only need to encode the distinct commonsense descriptions once for a batch of samples. Therefore, the goal of batch partitioning is to minimize the number of distinct commonsense descriptions per batch.
|
| 75 |
+
|
| 76 |
+
More formally, suppose the training data is $\mathcal{D}_{train} = \{x_i,T(x_i),y_i\}_{i = 1}^N$ , where $x_{i}$ is the original sample, $y_{i}$ is the corresponding label, and $T(x_{i}) = \{t_{i1},\dots ,t_{ic_{i}}\}$ is a collection of external knowledge descriptions for $x_{i}$ . For a batch with $s$ samples $x_{1},\dots ,x_{s}$ , the number of knowledge descriptions we need to encode is $|\bigcup_{i = 1}^{s}T(x_{i})|$
|
| 77 |
+
|
| 78 |
+
For convenience, we assume that $N$ is divisible by batch size $s$ . To reduce the time complexity, we need to partition $\mathcal{D}_{train}$ into $k = N / s$ batches $B_{1},\dots ,B_{k}$ such that each batch contains $s$ samples and the total number of distinct textual commonsense descriptions in each batch is minimized:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\min \sum_ {i = 1} ^ {k} | \bigcup_ {x \in B _ {i}} T (x) |
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
s.t. $|B_i| = s$ (size constraint for each batch) (1)
|
| 85 |
+
|
| 86 |
+
# 3 Solving the Batch Partitioning Problem
|
| 87 |
+
|
| 88 |
+
To solve the batch partitioning problem, we first approximate the upper bound of Eq. (1) in § 3.1. We minimize its upper bound instead of directly minimizing Eq. (1). In § 3.2, we show that optimizing the upper bound can be reduced to the classic
|
| 89 |
+
|
| 90 |
+
minimum graph $k$ -cut problem, so that some well-studied algorithms can be applied. We show how we adapt the classical spectral clustering to this problem in $\S 3.3$ , and how to scale it up in $\S 3.4$ .
|
| 91 |
+
|
| 92 |
+
# 3.1 Upper Bound Analysis
|
| 93 |
+
|
| 94 |
+
We analyze the upper bound of Eq. (1) in Theorem 1.
|
| 95 |
+
|
| 96 |
+
Theorem 1 (Upper bound).
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\begin{array}{l} \sum_ {i = 1} ^ {k} \left| \bigcup_ {x \in B _ {i}} T (x) \right| \\ \leq \sum_ {i = 1} ^ {k} \left[ \sum_ {x \in B _ {i}} | T (x) | - s \mathbb {E} _ {x _ {a}, x _ {b} \in B _ {i}, x _ {a} \neq x _ {b}} | T (x _ {a}) \cap T (x _ {b}) | \right] \tag {2} \\ \end{array}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
Proof. For a batch $B$ with $s$ samples $\{x_{1},\dots ,x_{s}\}$ we have:
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
\begin{array}{l} \left| \bigcup_ {i = 1} ^ {s} T (x _ {i}) \right| = \sum_ {i = 1} ^ {s} \left| T (x _ {i}) - \bigcup_ {j = 1} ^ {i - 1} T (x _ {j}) \right| \\ = \sum_ {i = 1} ^ {s} | T (x _ {i}) - \bigcup_ {j = 1} ^ {i - 1} T (x _ {j}) \cap T (x _ {i}) | \tag {3} \\ = \sum_ {i = 1} ^ {s} | T (x _ {i}) | - \sum_ {i = 1} ^ {s} \left| \bigcup_ {j = 1} ^ {i - 1} T (x _ {j}) \cap T (x _ {i}) \right| \\ \leq \sum_ {i = 1} ^ {s} | T (x _ {i}) | - \sum_ {i = 1} ^ {s} \max _ {1 \leq j \leq i - 1} | T (x _ {j}) \cap T (x _ {i}) | \\ \end{array}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
The upper bound in Eq. (3) after relaxation is related to the sample order of that batch, while our original objective in Eq. (1) is actually order-independent. To introduce order-independence, let $\pi$ be an arrangement of $1\cdots s$ that $\pi_i \in \{1, \cdots, s\}$ . Noticing that $\sum_{i=1}^{s}|T(x_i)|$ is a constant, based on the order-independence, we transform Eq. (3) into the expectation under different $\pi$ s:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\begin{array}{l} \mathbb {E} _ {\pi} \sum_ {i = 1} ^ {s} \max _ {1 \leq j \leq i - 1} | T (x _ {\pi_ {j}}) \cap T (x _ {\pi_ {i}}) | \\ = \sum_ {i = 1} ^ {s} \mathbb {E} _ {\pi} \max _ {1 \leq j \leq i - 1} | T \left(x _ {\pi_ {j}}\right) \cap T \left(x _ {\pi_ {i}}\right) | \tag {4} \\ \geq \sum_ {i = 1} ^ {s} \max _ {1 \leq j \leq i - 1} \mathbb {E} _ {\pi} | T (x _ {\pi_ {j}}) \cap T (x _ {\pi_ {i}}) | \\ = s \mathbb {E} _ {x _ {a}, x _ {b} \in B _ {i}, x _ {a} \neq x _ {b}} | T (x _ {a}) \cap T (x _ {b}) | \\ \end{array}
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
Therefore Theorem 1 holds.
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
|
| 118 |
+
It is worth highlighting that the relaxation in the last inequality of Eq. (3) is valid due to the nonrandom distribution of words in samples. Specifically, samples with similar meanings tend to have similar word distributions. By grouping similar
|
| 119 |
+
|
| 120 |
+
samples into the same batch, each sample pair within a batch will possess similar textual commonsense knowledge descriptions. This allows us to use the maximal common descriptions between $T(x_{i})$ and $T(x_{j})$ as an approximation for the common descriptions between $T(x_{i})$ and $\bigcup_{j = 1}^{i - 1}T(x_j)$ .
|
| 121 |
+
|
| 122 |
+
According to Theorem 1, since $\sum_{i=1}^{s} \sum_{x \in B_i} |T(x)| = \sum_{x \in D_{train}} |T(x)|$ is a constant, minimizing Eq. (1) is equivalent to maximizing:
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\sum_ {i = 1} ^ {k} \mathbb {E} _ {x _ {a}, x _ {b} \in B _ {i}, x _ {a} \neq x _ {b}} | T (x _ {a}) \cap T (x _ {b}) | \tag {5}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
We will show that this is a balanced graph $k$ -cut problem in § 3.2.
|
| 129 |
+
|
| 130 |
+
# 3.2 Connection to the Graph $k$ -Cut Problem
|
| 131 |
+
|
| 132 |
+
We now illustrate the relationship between Eq. (5) and the graph $k$ -cut problem. We demonstrate that, with proper transformation, maximizing Eq. (5) can be reduced to the graph $k$ -cut problem. Additionally, in § 3.3, we explain how to incorporate the constraint of the size of each mini-batch using the balanced graph $k$ -cut.
|
| 133 |
+
|
| 134 |
+
Consider constructing a weighted graph $G(V,E)$ as follows:
|
| 135 |
+
|
| 136 |
+
- For each sample $x_{i}$ in the training data, create a vertex $v_{i}$ .
|
| 137 |
+
- For each pair of distinct vertices $(v_{i}, v_{j})$ , create an edge between them with a weight of $|T(x_{i}) \cap T(x_{j})|$ .
|
| 138 |
+
|
| 139 |
+
The graph $k$ -cut for $G(V,E)$ partitions $G(V,E)$ into $k$ non-empty components: $V_{1},\dots ,V_{k}$ such that the sum weight of cross-component edges is minimized. According to the construction of $G(V,E)$ , maximizing Eq. (5) is equivalent to minimizing the sum weight of the cut. This is formalized in Theorem 2.
|
| 140 |
+
|
| 141 |
+
Theorem 2 (Relation to minimum $k$ -cut problem). Suppose the weight of the $k$ -cut for $G(V,E)$ is $w$ , then we have:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
E q. (5) = \frac {2}{s (s - 1)} \sum_ {i = 1} ^ {n - 1} \sum_ {j = i} ^ {n} | T (x _ {i}) \cap T (x _ {j}) | - w \tag {6}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
Proof. A k-cut of $G(V, E)$ consists of $k$ components. These $k$ components correspond to $k$ batches in the $k$ -partition. Therefore, the sum weight of
|
| 148 |
+
|
| 149 |
+
inner-component edges of the $k$ -cut is equal to Eq. (5) $\frac{s(s - 1)}{2}$ . Since the total weight of edges in $G(V,E)$ is equal to the sum weight of inner-component edges plus the sum weight of the cut, Theorem 2 holds.
|
| 150 |
+
|
| 151 |
+
As $\sum_{i=1}^{n-1} \sum_{j=i}^{n} |T(x_i) \cap T(x_j)|$ is a constant for the given training data, Theorem 2 shows that maximizing Eq. (5) is equivalent to minimizing the $k$ -cut for $G(V, E)$ . Thus, we convert the problem of maximizing Eq. (5) into the classic minimum $k$ -cut problem.
|
| 152 |
+
|
| 153 |
+
# 3.3 Spectral Clustering for the Balanced $k$ -Cut
|
| 154 |
+
|
| 155 |
+
Based on the analysis in § 3.2, we propose to use spectral clustering, a widely used approach for solving the minimum graph $k$ -cut problem, as our batch partition algorithm. Spectral clustering employs spectral relaxation of the ratio/normalized cut and uses $k$ -means in the embedding of the vertices found by the first $k$ eigenvectors of the graph Laplacian in order to obtain the clustering. In addition to the classic minimum graph $k$ -cut problem, we need to incorporate the constraint that each cut/batch must have a size of $s$ .
|
| 156 |
+
|
| 157 |
+
To incorporate the batch size constraint, we make a simple modification to the k-means step in spectral clustering. In the traditional k-means, each node is assigned to the nearest cluster center. In our algorithm, if the nearest cluster center has already been assigned $s$ nodes, the node will be assigned to the nearest center that has fewer than $s$ assigned nodes. The specific spectral clustering algorithm is presented as follows.
|
| 158 |
+
|
| 159 |
+
1. Compute the spectral embedding $Y\in \mathbb{R}^{n\times k}$ by stacking the normalized first $k$ eigenvectors of $G(V,E)$ in columns as described in (Ng et al., 2002).
|
| 160 |
+
2. Treat the $i$ -th row of $Y$ as the feature of the $i$ -th training point $e_i \in \mathbb{R}^k$ .
|
| 161 |
+
3. Given an initial set of $k$ means $m_{1},\dots ,m_{k}$ by randomly selecting $k$ nodes as centers, repeat the following two steps until convergence:
|
| 162 |
+
|
| 163 |
+
(a) Assignment step Assign nodes to centers:
|
| 164 |
+
|
| 165 |
+
i. Compute distances to centers $dis_{i,j} = \text{distance}(e_i, m_j)$ , where the Euclidean distance is used.
|
| 166 |
+
|
| 167 |
+
ii. Sort $i,j$ in ascending order of $dis_{i,j}$ for all $1\leq i\leq n,1\leq j\leq k$
|
| 168 |
+
|
| 169 |
+
iii. Iterate through all $i, j$ . If node $i$ is not assigned in this round and center $j$ has less than $s$ assigned nodes, assign node $i$ to center $j$ .
|
| 170 |
+
|
| 171 |
+
(b) Update step Compute new centers by taking the mean of their assigned nodes.
|
| 172 |
+
|
| 173 |
+
# 3.4 Spectral Clustering at Scale
|
| 174 |
+
|
| 175 |
+
The above algorithm consists of computation of the eigenvectors, and the use of k-means. K-means is efficient even for large-scale data. However, when $n$ and $k$ are large, the graph construction and eigenvectors computation become computationally expensive.
|
| 176 |
+
|
| 177 |
+
To compute the spectral embeddings at scale, high-performance optimization techniques are available such as (Liu et al., 2013; Kolev and Mehlhorn, 2016; Boutsidis et al., 2015; Tremblay et al., 2016). Also, in our experiments, a simple trick was found that yields meaningful results: only calculate $k'$ -dimensional feature vectors ( $k' < k$ ) and perform k-means with the $k'$ dimensions. We found that $k' = 8$ is a good practice in our experiments.
|
| 178 |
+
|
| 179 |
+
# 4 Related Work
|
| 180 |
+
|
| 181 |
+
Integrating knowledge into language models has been one of the focuses of language modeling research in recent years. The main integration methods currently include using pre-trained entity embeddings, and constructing knowledge-aware corpora. ERNIE (Zhang et al., 2019), KnowBERT (Peters et al., 2019), and KGLM (Logan et al., 2019) are typical methods using pre-trained entity embeddings. ERNIE uses Wikidata (Vrandečić and Krötzsch, 2014) as the knowledge base and uses TransE (Bordes et al., 2013) to encode knowledge. KnowBERT, on the other hand, uses skip-gram like objective (Mikolov et al., 2013) based on Wikipedia descriptions as the pre-trained entity embeddings. In addition, KnowBERT adds a loss on entity linking to the pre-trained objective. KGLM (Logan et al., 2019) allows modification/updating of knowledge by building a local knowledge graph for the target sentence. WKLM (Xiong et al., 2019) constructs a corpus of incorrect knowledge descriptions by replacing Wikipedia's entities with different entities of the same type. It trains the model to identify incorrect and correct knowl
|
| 182 |
+
|
| 183 |
+
edge descriptions. Recently, models that integrate textual knowledge have also been proposed. In this paper, we adopt the model structure in OK-Transformer (Cui and Chen, 2022).
|
| 184 |
+
|
| 185 |
+
Textual knowledge bases Noting the deficiencies of symbolic knowledge in terms of expressiveness and contextual information representation, some work has started to use text as a form of knowledge. ATOMIC (Sap et al., 2019; Hwang et al., 2021) is a large-scale manually annotated common-sense textual knowledge base that includes social interaction, event-centered, physical entity. ATOMIC contains knowledge like (PersonX reaches PersonX's home, Before, PersonX needs to park the car). ASER (Zhang et al., 2020) is an eventuality knowledge graph of activities, states, events, and their relations. Its knowledge atoms are in natural language form, e.g. (I do not have lunch, succession, I am hungry). COMET (Bosselut et al., 2019) is an extension of ATOMIC based on the generative language model. It mainly solves the problem of insufficient coverage of ATOMIC. Some primitive research (Guan et al., 2020; Shwartz et al., 2020) has started to apply these textual knowledge bases in some specific tasks. OK-Transformer (Cui and Chen, 2022) is proposed to integrate textual knowledge for general purposes. However, in our experimental tests, it takes too much time in encoding the commonsense. To our knowledge, there is still a lack of research on how to integrate textual knowledge into general text understanding tasks efficiently.
|
| 186 |
+
|
| 187 |
+
Comparison with dense textual knowledge retriever When introducing external texts, another style is to use a retriever that returns only top $k$ candidate texts in terms of similarity (Chen et al., 2017; Karpukhin et al., 2020; Wang et al., 2019). However, this method requires a heavy pre-training process to learn the retriever. On the other hand, for the textual knowledge base we use in this paper, we can directly use the manually labeled trigger words for each knowledge description to retrieve knowledge. Therefore, in this paper, we focus on how to efficiently and effectively integrate knowledge from a textual knowledge base.
|
| 188 |
+
|
| 189 |
+
High-performance language models More general techniques for high-performance language models have also received extensive studies. The main approaches of previous studies include (1) model compression and quantization (Sanh et al., 2019; Jacob et al., 2018), and (2) efficient repre
|
| 190 |
+
|
| 191 |
+
sensation of long texts (Kitaev et al., 2019; Peng et al., 2020). However, the model compression approaches require heavy pre-training before they can be adapted to language models. Moreover, the techniques for optimizing the efficiency for long text do not have significant effects on short texts (Peng et al., 2020). Besides, each commonsense description we considered in this paper tends to be short. In addition, these works have not considered the characteristics of the knowledge integration problem in this paper, i.e., a training sample corresponds to multiple candidate textual knowledge from the knowledge base.
|
| 192 |
+
|
| 193 |
+
# 5 Experiments
|
| 194 |
+
|
| 195 |
+
In this section, we conducted extensive experiments to evaluate batch partitioning. We aim to address the following key questions:
|
| 196 |
+
|
| 197 |
+
1. ( $\S 5.2$ ) How much is the efficiency improvement of batch partitioning? Can it improve efficiency without sacrificing effectiveness?
|
| 198 |
+
2. ( $\S 5.3$ ) What is the scalability of batch partitioning as an acceleration method, and can it be applied to large-scale training?
|
| 199 |
+
3. (§ 5.4) Is the main theoretical contribution of this paper, i.e., solving the balanced graph- $k$ cut by spectral clustering, consistent with the real datasets?
|
| 200 |
+
|
| 201 |
+
# 5.1 Implementation Details and Setup
|
| 202 |
+
|
| 203 |
+
Textual knowledge base We follow (Cui and Chen, 2022) to use ATOMIC2020 (Hwang et al., 2021) as the textual knowledge base. Each atom in ATOMIC2020 is commonsense in text form. For each sentence in the downstream task, we retrieve the knowledge associated with it from the textual knowledge base. Note that, unlike retrieving knowledge from free text (Guu et al., 2020), the textual knowledge base ATOMIC2020 is constructed manually, and each knowledge description has corresponding trigger words. These trigger words are usually verbs or verb phrases. We retrieve related textual commonsense descriptions by keyword-matching of these trigger words.
|
| 204 |
+
|
| 205 |
+
Model architecture We use OK-Transformer (Cui and Chen, 2022) as the backbone of our model. It directly incorporates extra knowledge without pre-training. OK-Transformer is based on either BERT or RoBERTa. We use OK-Transformer based on BERT by
|
| 206 |
+
|
| 207 |
+
default. We also follow the hyperparameter settings of OK-Transformer. All experiments were run on 8 Nvidia RTX 3090Ti GPUs.
|
| 208 |
+
|
| 209 |
+
Datasets We evaluate batch partitioning via commonsense reasoning and sentence classification. Since the textual knowledge introduced in this paper is commonsense descriptions, we first verify whether the proposed method in this paper could be applied to the commonsense reasoning tasks. To this end, we choose a wide range of commonsense reasoning tasks to conduct the experiments: CommonsenseQA (Talmor et al., 2019), PhysicalQA (Bisk et al., 2020), as well as several Winograd Schema Challenge (WSC) datasets including WSC273 (Levesque et al., 2012), PDP (Morgenstern et al., 2016), WinoGrande (Sakaguchi et al., 2019), WinoGender (Rudinger et al., 2018). Furthermore, for a comprehensive comparison, we also evaluate the efficiency and effectiveness of the proposed batch partitioning method on the text classification benchmark GLUE (Wang et al., 2018).
|
| 210 |
+
|
| 211 |
+
# 5.2 Effectiveness and Efficiency
|
| 212 |
+
|
| 213 |
+
Baselines To verify the efficiency and effectiveness of batch partitioning, we used the following baselines:
|
| 214 |
+
|
| 215 |
+
- Vanilla BERT/RoBERTa without external knowledge.
|
| 216 |
+
- OK-Transformer To show the efficiency gains of the batch partitioning proposed in this paper, we compare it with the original OK-Transformer. The baseline randomly partitions samples into batches. We consider this baseline as the lower upper bound of effectiveness of commonsense integration.
|
| 217 |
+
- Frozen knowledge encodings For a comprehensive comparison, we propose to freeze the encoding of commonsense descriptions during fine-tuning. This approach allows us to introduce external textual commonsense descriptions via embedding lookup with minimal time cost. We consider this baseline as the upper bound on the efficiency of commonsense integration.
|
| 218 |
+
|
| 219 |
+
The results of commonsense reasoning and text classification are presented in Table 2 and Table 3, respectively. The effectiveness of our batch partitioning approach is demonstrated by its improvement over vanilla language models on both commonsense reasoning and text classification tasks.
|
| 220 |
+
|
| 221 |
+
<table><tr><td></td><td>LM</td><td>Comm.QA</td><td>PhysicalQA</td><td>WSC273</td><td>PDP</td><td>WinoGrande</td><td>WinoGender</td><td>Avg.</td><td>Speed-up ↑</td></tr><tr><td>BERT</td><td>BERT</td><td>55.86</td><td>68.71</td><td>66.30</td><td>85.00</td><td>51.38</td><td>68.19</td><td>65.44</td><td>-</td></tr><tr><td>Frozen knowledge</td><td>BERT</td><td>56.43</td><td>68.06</td><td>65.93</td><td>83.33</td><td>51.30</td><td>68.47</td><td>65.59</td><td>1.4×</td></tr><tr><td>OK-Transformer</td><td>BERT</td><td>56.27</td><td>69.09</td><td>67.40</td><td>86.67</td><td>52.64</td><td>71.53</td><td>66.56</td><td>1.0×</td></tr><tr><td>Batch Partitioning</td><td>BERT</td><td>56.59</td><td>69.53</td><td>66.67</td><td>86.67</td><td>52.17</td><td>72.78</td><td>67.40</td><td>1.4×</td></tr><tr><td>RoBERTa</td><td>RoB.</td><td>73.55</td><td>79.76</td><td>90.10</td><td>90.00</td><td>-</td><td>94.60</td><td>83.95</td><td>-</td></tr><tr><td>Frozen knowledge</td><td>RoB.</td><td>75.02</td><td>52.77</td><td>90.48</td><td>88.33</td><td>-</td><td>96.81</td><td>80.01</td><td>1.5×</td></tr><tr><td>OK-Transformer</td><td>RoB.</td><td>75.92</td><td>80.09</td><td>91.58</td><td>90.00</td><td>-</td><td>95.00</td><td>84.75</td><td>1.0×</td></tr><tr><td>Batch Partitioning</td><td>RoB.</td><td>75.59</td><td>80.20</td><td>90.48</td><td>91.66</td><td>-</td><td>96.25</td><td>85.14</td><td>1.4×</td></tr></table>
|
| 222 |
+
|
| 223 |
+
Table 2: Results on commonsense reasoning tasks. The effectiveness of batch partitioning surpasses the vanilla BERT/RoBERTa, and is competitive with its upper bound (OK-Transformer). In terms of efficiency, the speed-up of batch partitioning is also competitive to its upper bound (frozen knowledge). RoB. denotes RoBERTa.
|
| 224 |
+
|
| 225 |
+
<table><tr><td></td><td>LM</td><td>MRPC</td><td>CoLA</td><td>RTE</td><td>QNLI</td><td>STS-B</td><td>SST-2</td><td>Avg.</td><td>Speed-up</td></tr><tr><td>BERT</td><td>BERT</td><td>86.52/90.66</td><td>59.50</td><td>71.43</td><td>91.20</td><td>89.35/88.93</td><td>91.97</td><td>82.28</td><td>-</td></tr><tr><td>Frozen knowledge</td><td>BERT</td><td>87.50/91.28</td><td>57.31</td><td>70.76</td><td>91.71</td><td>87.31/87.20</td><td>92.43</td><td>81.78</td><td>2.3×</td></tr><tr><td>OK-Transformer</td><td>BERT</td><td>87.50/91.04</td><td>58.29</td><td>72.20</td><td>91.58</td><td>89.82/89.46</td><td>92.66</td><td>82.54</td><td>1.0×</td></tr><tr><td>Batch Partitioning</td><td>BERT</td><td>87.99/91.45</td><td>61.41</td><td>71.48</td><td>91.32</td><td>89.64/89.19</td><td>93.69</td><td>83.09</td><td>2.1×</td></tr><tr><td>RoBERTa</td><td>RoB.</td><td>90.49/93.07</td><td>66.84</td><td>86.28</td><td>93.37</td><td>91.83/91.95</td><td>95.64</td><td>87.86</td><td>-</td></tr><tr><td>Frozen knowledge</td><td>RoB.</td><td>89.71/92.61</td><td>68.22</td><td>87.36</td><td>94.39</td><td>90.74/90.47</td><td>96.10</td><td>88.19</td><td>2.4×</td></tr><tr><td>OK-Transformer</td><td>RoB.</td><td>91.91/94.24</td><td>66.89</td><td>86.28</td><td>94.71</td><td>92.19/92.36</td><td>96.44</td><td>88.49</td><td>1.0×</td></tr><tr><td>Batch Partitioning</td><td>RoB.</td><td>90.69/93.44</td><td>67.75</td><td>85.92</td><td>94.07</td><td>92.41/92.20</td><td>96.22</td><td>88.27</td><td>2.1×</td></tr></table>
|
| 226 |
+
|
| 227 |
+
Table 3: Results on text classification tasks. Both the effectiveness and the efficiency of batch partitioning are competitive to their upper bounds (OK-Transformer and frozen knowledge).
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
Figure 2: The effect of the scale of extra commonsense. We control the scale by limiting the upper number of commonsense descriptions per sample in SST-2.
|
| 231 |
+
|
| 232 |
+
The effectiveness is comparable or slightly superior to that of OK-Transformer, which serves as the upper bound for effectiveness. In terms of efficiency, our approach significantly accelerates knowledge integration models across a range of tasks. On average, it reduces the time cost for knowledge encoding by $40\%$ for commonsense reasoning tasks, and $110\%$ for text classification tasks. This acceleration is close to the frozen knowledge, and serves as the upper bound for efficiency. Overall, our approach is close to its efficiency upper bound without losing effectiveness.
|
| 233 |
+
|
| 234 |
+
# 5.3 Scalability for Dataset Sizes, Device Capacities, and Knowledge Sizes
|
| 235 |
+
|
| 236 |
+
In this subsection, we investigate the scalability of batch partitioning with different batch sizes, as well as the different dataset sizes. Larger dataset sizes usually mean devices with larger memory. In particular, we calculated the speedups of knowledge encoding for different batch sizes and different tasks. The results are shown in Fig. 4. The datasets are sorted by size in descending order.
|
| 237 |
+
|
| 238 |
+
It can be clearly seen that as the size of the dataset rises or the memory of the device rises (larger batch size), the speedup of batch partitioning becomes more significant. This is because, for data-intensive tasks, the knowledge overlapping among different samples is more significant, which increases the feasibility of using batch partitioning. This result verifies the scalability of batch partitioning.
|
| 239 |
+
|
| 240 |
+
We also investigate the scalability of batch partitioning over different scales of integrated commonsense. To control the scale, we set the upper number of commonsense descriptions for each sample to 16/32/64, respectively, and study the efficiency. Intuitively, richer commonsense descriptions lead to higher effectiveness but more computation cost. The results are shown in Fig. 2.
|
| 241 |
+
|
| 242 |
+
As commonsense knowledge becomes richer, the
|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
(a) MRPC
|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
(b) CoLA
|
| 249 |
+
Figure 3: Strong correlation between the distinct commonsense descriptions per batch and the average distance to the centroid during clustering.
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
(c) RTE
|
| 253 |
+
|
| 254 |
+

|
| 255 |
+
(d) STS-B
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
Figure 4: Speed-up of proposed batch partitioning method over different training batch size and dataset size. Note that the datasets are arranged in descending order according to dataset size.
|
| 259 |
+
|
| 260 |
+
effectiveness and the acceleration both increase. This is because the knowledge overlapping among samples also becomes more significant. The result verifies that batch partitioning is applicable for incorporating large-scale commonsense knowledge bases.
|
| 261 |
+
|
| 262 |
+
# 5.4 Effect of Spectral Clustering Theory
|
| 263 |
+
|
| 264 |
+
In this paper, we propose the use of spectral clustering to solve the batch partitioning problem. We approximate and optimize the distinct number of descriptions per batch in Eq. (1) by minimizing the distance of each node to the centroid of the cluster in spectral clustering. In this subsection, we demonstrate the rationale behind this approximation by highlighting the strong correlation between the objective of Eq. (1) and the distance minimization in spectral embeddings.
|
| 265 |
+
|
| 266 |
+
To this end, we plot how the centroid distance and the distinct descriptions per batch vary at each iteration of the spectral clustering algorithm in Fig. 3. The results show a strong correlation between the value we directly optimize (i.e., the cen
|
| 267 |
+
|
| 268 |
+
troid distance) and the target of the batch partitioning (i.e., distinct descriptions per batch). This supports the feasibility of using spectral clustering to convert the batch partitioning problem into a balanced graph $k$ -cut problem and solve it efficiently.
|
| 269 |
+
|
| 270 |
+
# 6 Conclusion
|
| 271 |
+
|
| 272 |
+
In this paper, we study how to improve the efficiency of incorporating commonsense knowledge in language models. Due to the high encoding costs of commonsense descriptions, it is crucial to reduce their encoding complexity. Our idea is that by carefully dividing samples with similar descriptions into the same batch, the knowledge encoding utilization can be improved.
|
| 273 |
+
|
| 274 |
+
With such an idea, we theoretically analyze the optimization objective of this batch partitioning. We found that the upper bound of this problem can be reduced to the classical graph $k$ -cut problem. We propose to use the well-studied spectral clustering algorithm to optimize the batch partitioning. By experimenting with a variety of tasks, we show that the proposed batch partitioning approaches its upper bound in terms of both effectiveness and efficiency. And the method is more applicable for larger datasets and on devices with more capabilities.
|
| 275 |
+
|
| 276 |
+
# 7 Limitations
|
| 277 |
+
|
| 278 |
+
The theoretical results and the algorithm should be applicable for other knowledge integration models which encode target sentences and associated textual knowledge descriptions in mini-batches. However, this paper does not extensively apply the proposed method to various knowledge integration models to explore its efficiency and effectiveness.
|
| 279 |
+
|
| 280 |
+
# References
|
| 281 |
+
|
| 282 |
+
Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 7432-7439.
|
| 283 |
+
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.
|
| 284 |
+
Antoine Bosselut, Hannah Rashkin, Maarten Sap, Chaitanya Malaviya, Asli Celikyilmaz, and Yejin Choi. 2019. COMET: Commonsense transformers for automatic knowledge graph construction. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4762-4779, Florence, Italy. Association for Computational Linguistics.
|
| 285 |
+
Christos Boutsidis, Prabhanjan Kambadur, and Alex Gittens. 2015. Spectral clustering via the power method-provably. In International conference on machine learning, pages 40-48. PMLR.
|
| 286 |
+
Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading Wikipedia to answer open-domain questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1870-1879, Vancouver, Canada. Association for Computational Linguistics.
|
| 287 |
+
Wanyun Cui and Xingran Chen. 2022. Enhancing natural language representation with large-scale out-of-domain commonsense. In *Findings of the Association for Computational Linguistics: ACL 2022*, pages 1746–1756, Dublin, Ireland. Association for Computational Linguistics.
|
| 288 |
+
Tianqing Fang, Hongming Zhang, Weiqi Wang, Yangqiu Song, and Bin He. 2021. Discos: Bridging the gap between discourse knowledge and commonsense knowledge. In Proceedings of the Web Conference 2021, pages 2648-2659.
|
| 289 |
+
Jian Guan, Fei Huang, Zhihao Zhao, Xiaoyan Zhu, and Minlie Huang. 2020. A knowledge-enhanced pretraining model for commonsense story generation. Transactions of the Association for Computational Linguistics, 8:93-108.
|
| 290 |
+
Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In International Conference on Machine Learning, pages 3929-3938. PMLR.
|
| 291 |
+
Jena D. Hwang, Chandra Bhagavatula, Ronan Le Bras, Jeff Da, Keisuke Sakaguchi, Antoine Bosselut, and Yejin Choi. 2021. Comet-atomic 2020: On symbolic and neural commonsense knowledge graphs. In AAAI.
|
| 292 |
+
|
| 293 |
+
Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. 2018. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2704-2713.
|
| 294 |
+
Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6769-6781, Online. Association for Computational Linguistics.
|
| 295 |
+
Nikita Kitaev, Lukasz Kaiser, and Anselm Levskaya. 2019. Reformer: The efficient transformer. In International Conference on Learning Representations.
|
| 296 |
+
Pavel Kolev and Kurt Mehlhorn. 2016. A note on spectral clustering. In 24th Annual European Symposium on Algorithms (ESA 2016). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik.
|
| 297 |
+
Hector Levesque, Ernest Davis, and Leora Morgenstern. 2012. The winograd schema challenge. In Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning. CiteSeer.
|
| 298 |
+
Jialu Liu, Chi Wang, Marina Danilevsky, and Jiawei Han. 2013. Large-scale spectral clustering on graphs. In Twenty-Third International Joint Conference on Artificial Intelligence.
|
| 299 |
+
Robert Logan, Nelson F. Liu, Matthew E. Peters, Matt Gardner, and Sameer Singh. 2019. Barack's wife hillary: Using knowledge graphs for fact-aware language modeling. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5962-5971, Florence, Italy. Association for Computational Linguistics.
|
| 300 |
+
Chaitanya Malaviya, Chandra Bhagavatula, Antoine Bosselut, and Yejin Choi. 2020. Commonsense knowledge base completion with structural and semantic context. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 2925-2933.
|
| 301 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pages 3111-3119.
|
| 302 |
+
Leora Morgenstern, Ernest Davis, and Charles L Ortiz. 2016. Planning, executing, and evaluating the winograd schema challenge. AI Magazine, 37(1):50-54.
|
| 303 |
+
Andrew Y Ng, Michael I Jordan, and Yair Weiss. 2002. On spectral clustering: Analysis and an algorithm. In Advances in neural information processing systems, pages 849-856.
|
| 304 |
+
|
| 305 |
+
Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah Smith, and Lingpeng Kong. 2020. Random feature attention. In International Conference on Learning Representations.
|
| 306 |
+
Matthew E Peters, Mark Neumann, Robert Logan, Roy Schwartz, Vidur Joshi, Sameer Singh, and Noah A Smith. 2019. Knowledge enhanced contextual word representations. In *Conference on Empirical Methods in Natural Language Processing* and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).
|
| 307 |
+
Syama Sundar Rangapuram, Pramod Kaushik Mudrakarta, and Matthias Hein. 2014. Tight continuous relaxation of the balanced k-cut problem. Advances in Neural Information Processing Systems, 27:3131-3139.
|
| 308 |
+
Rachel Rudinger, Jason Naradowsky, Brian Leonard, and Benjamin Van Durme. 2018. Gender bias in coreference resolution. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 8-14.
|
| 309 |
+
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2019. Winogrande: An adversarial winograd schema challenge at scale. arXiv preprint arXiv:1907.10641.
|
| 310 |
+
Victor Sanh, Lysandre Debut, Julien Chaumont, and Thomas Wolf. 2019. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
|
| 311 |
+
Maarten Sap, Ronan Le Bras, Emily Allaway, Chandra Bhagavatula, Nicholas Lourie, Hannah Rashkin, Brendan Roof, Noah A Smith, and Yejin Choi. 2019. Atomic: An atlas of machine commonsense for if-then reasoning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3027-3035.
|
| 312 |
+
Vered Shwartz, Peter West, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2020. Unsupervised commonsense question answering with self-talk. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 4615-4629.
|
| 313 |
+
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.
|
| 314 |
+
Nicolas Tremblay, Gilles Puy, Rémi Gribonval, and Pierre Vandergheynst. 2016. Compressive spectral clustering. In International conference on machine learning, pages 1002-1011. PMLR.
|
| 315 |
+
|
| 316 |
+
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 Advances in neural information processing systems, pages 5998-6008.
|
| 317 |
+
Denny Vrandecic and Markus Krötzsch. 2014. Wiki-data: a free collaborative knowledgebase. Communications of the ACM, 57(10):78-85.
|
| 318 |
+
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.
|
| 319 |
+
Zhiguo Wang, Patrick Ng, Xiaofei Ma, Ramesh Nallapati, and Bing Xiang. 2019. Multi-passage bert: A globally normalized bert model for open-domain question answering. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 5878-5882.
|
| 320 |
+
Ledell Wu, Fabio Petroni, Martin Josifoski, Sebastian Riedel, and Luke Zettlemoyer. 2020. Scalable zero-shot entity linking with dense entity retrieval. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6397-6407.
|
| 321 |
+
Wenhan Xiong, Jingfei Du, William Yang Wang, and Veselin Stoyanov. 2019. Pretrained encyclopedia: Weakly supervised knowledge-pretrained language model. In International Conference on Learning Representations.
|
| 322 |
+
Hongming Zhang, Xin Liu, Haojie Pan, Yangqiu Song, and Cane Wing-Ki Leung. 2020. Aser: A large-scale eventuality knowledge graph. In Proceedings of the web conference 2020, pages 201-211.
|
| 323 |
+
Zhengyan Zhang, Xu Han, Zhiyuan Liu, Xin Jiang, Maosong Sun, and Qun Liu. 2019. Ernie: Enhanced language representation with informative entities. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1441-1451.
|
| 324 |
+
|
| 325 |
+
A For every submission:
|
| 326 |
+
|
| 327 |
+
A1. Did you describe the limitations of your work? Sec 5
|
| 328 |
+
A2. Did you discuss any potential risks of your work? Not applicable. Left blank.
|
| 329 |
+
A3. Do the abstract and introduction summarize the paper's main claims? Left blank.
|
| 330 |
+
A4. Have you used AI writing assistants when working on this paper? Left blank.
|
| 331 |
+
|
| 332 |
+
B Did you use or create scientific artifacts?
|
| 333 |
+
|
| 334 |
+
Left blank.
|
| 335 |
+
|
| 336 |
+
B1. Did you cite the creators of artifacts you used? Not applicable. Left blank.
|
| 337 |
+
B2. Did you discuss the license or terms for use and / or distribution of any artifacts? Not applicable. Left blank.
|
| 338 |
+
B3. Did you discuss if your use of existing artifact(s) was consistent with their intended use, provided that it was specified? For the artifacts you create, do you specify intended use and whether that is compatible with the original access conditions (in particular, derivatives of data accessed for research purposes should not be used outside of research contexts)? Not applicable. Left blank.
|
| 339 |
+
B4. Did you discuss the steps taken to check whether the data that was collected / used contains any information that names or uniquely identifies individual people or offensive content, and the steps taken to protect / anonymize it? Not applicable. Left blank.
|
| 340 |
+
B5. Did you provide documentation of the artifacts, e.g., coverage of domains, languages, and linguistic phenomena, demographic groups represented, etc.? Not applicable. Left blank.
|
| 341 |
+
B6. Did you report relevant statistics like the number of examples, details of train / test / dev splits, etc. for the data that you used / created? Even for commonly-used benchmark datasets, include the number of examples in train / validation / test splits, as these provide necessary context for a reader to understand experimental results. For example, small differences in accuracy on large test sets may be significant, while on small test sets they may not be. Left blank.
|
| 342 |
+
|
| 343 |
+
C Did you run computational experiments?
|
| 344 |
+
|
| 345 |
+
we discuss the experiments in sec5
|
| 346 |
+
|
| 347 |
+
C1. Did you report the number of parameters in the models used, the total computational budget (e.g., GPU hours), and computing infrastructure used? parameters same as BERT/RoBERTa.
|
| 348 |
+
|
| 349 |
+
C2. Did you discuss the experimental setup, including hyperparameter search and best-found hyperparameter values? in sec5
|
| 350 |
+
C3. Did you report descriptive statistics about your results (e.g., error bars around results, summary statistics from sets of experiments), and is it transparent whether you are reporting the max, mean, etc. or just a single run? Fig. 2
|
| 351 |
+
C4. If you used existing packages (e.g., for preprocessing, for normalization, or for evaluation), did you report the implementation, model, and parameter settings used (e.g., NLTK, Spacy, ROUGE, etc.)? We follow the implementation and experiments setting of OK-Transformer as we mentioned in sec 5.
|
| 352 |
+
|
| 353 |
+
# D Did you use human annotators (e.g., crowdworkers) or research with human participants? Left blank.
|
| 354 |
+
|
| 355 |
+
D1. Did you report the full text of instructions given to participants, including e.g., screenshots, disclaimers of any risks to participants or annotators, etc.? Not applicable. Left blank.
|
| 356 |
+
D2. Did you report information about how you recruited (e.g., crowdsourcing platform, students) and paid participants, and discuss if such payment is adequate given the participants' demographic (e.g., country of residence)? Not applicable. Left blank.
|
| 357 |
+
D3. Did you discuss whether and how consent was obtained from people whose data you're using/curating? For example, if you collected data via crowdsourcing, did your instructions to crowdworkers explain how the data would be used? Not applicable. Left blank.
|
| 358 |
+
D4. Was the data collection protocol approved (or determined exempt) by an ethics review board? Not applicable. Left blank.
|
| 359 |
+
D5. Did you report the basic demographic and geographic characteristics of the annotator population that is the source of the data? Not applicable. Left blank.
|
2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:547da40430fbab3b134033babc2131b09427dff09eb1d642e89de8147267516c
|
| 3 |
+
size 334057
|
2023/Free Lunch for Efficient Textual Commonsense Integration in Language Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/c65a65c3-e9ef-4905-b4b9-b1c5f595b48c_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/c65a65c3-e9ef-4905-b4b9-b1c5f595b48c_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/c65a65c3-e9ef-4905-b4b9-b1c5f595b48c_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f64d057a65d23bada65b5ab041c1330b0a042c9344b58aa76846f8c66bd8f345
|
| 3 |
+
size 628114
|
2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:582c571be3146999d4be1149bb69bdc993af647e332e18a3fb0666f7d6277ecb
|
| 3 |
+
size 1928584
|
2023/Free Lunch_ Robust Cross-Lingual Transfer via Model Checkpoint Averaging/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/From Characters to Words_ Hierarchical Pre-trained Language Model for Open-vocabulary Language Understanding/f4f9f366-5dd9-495c-abd1-8d340950a184_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|