Chelsea707 commited on
Commit
924dba1
·
verified ·
1 Parent(s): 8d60710

Add Batch 9cd3ede8-8a91-4d5f-8210-66f480305d98 data

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +64 -0
  2. 2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/6a7588fd-6217-4a89-8c21-556bca64edea_content_list.json +0 -0
  3. 2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/6a7588fd-6217-4a89-8c21-556bca64edea_model.json +0 -0
  4. 2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/6a7588fd-6217-4a89-8c21-556bca64edea_origin.pdf +3 -0
  5. 2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/full.md +736 -0
  6. 2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/images.zip +3 -0
  7. 2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/layout.json +0 -0
  8. 2024/Competition-Level Problems are Effective LLM Evaluators/65598a40-492c-43ff-8fa3-bd8222139986_content_list.json +0 -0
  9. 2024/Competition-Level Problems are Effective LLM Evaluators/65598a40-492c-43ff-8fa3-bd8222139986_model.json +0 -0
  10. 2024/Competition-Level Problems are Effective LLM Evaluators/65598a40-492c-43ff-8fa3-bd8222139986_origin.pdf +3 -0
  11. 2024/Competition-Level Problems are Effective LLM Evaluators/full.md +394 -0
  12. 2024/Competition-Level Problems are Effective LLM Evaluators/images.zip +3 -0
  13. 2024/Competition-Level Problems are Effective LLM Evaluators/layout.json +0 -0
  14. 2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/28987eca-6571-4ea4-b16a-06ab4319ecb4_content_list.json +1905 -0
  15. 2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/28987eca-6571-4ea4-b16a-06ab4319ecb4_model.json +0 -0
  16. 2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/28987eca-6571-4ea4-b16a-06ab4319ecb4_origin.pdf +3 -0
  17. 2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/full.md +369 -0
  18. 2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/images.zip +3 -0
  19. 2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/layout.json +0 -0
  20. 2024/Compositional Generalization with Grounded Language Models/5b07d1a5-aacb-474d-988a-7cd18a966725_content_list.json +1780 -0
  21. 2024/Compositional Generalization with Grounded Language Models/5b07d1a5-aacb-474d-988a-7cd18a966725_model.json +0 -0
  22. 2024/Compositional Generalization with Grounded Language Models/5b07d1a5-aacb-474d-988a-7cd18a966725_origin.pdf +3 -0
  23. 2024/Compositional Generalization with Grounded Language Models/full.md +312 -0
  24. 2024/Compositional Generalization with Grounded Language Models/images.zip +3 -0
  25. 2024/Compositional Generalization with Grounded Language Models/layout.json +0 -0
  26. 2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/d3a0bf80-2ed5-4819-92c1-efa029bb2503_content_list.json +0 -0
  27. 2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/d3a0bf80-2ed5-4819-92c1-efa029bb2503_model.json +0 -0
  28. 2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/d3a0bf80-2ed5-4819-92c1-efa029bb2503_origin.pdf +3 -0
  29. 2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/full.md +401 -0
  30. 2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/images.zip +3 -0
  31. 2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/layout.json +0 -0
  32. 2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/9ded2c84-7d7d-4a7e-b160-6caf16706c14_content_list.json +2307 -0
  33. 2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/9ded2c84-7d7d-4a7e-b160-6caf16706c14_model.json +0 -0
  34. 2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/9ded2c84-7d7d-4a7e-b160-6caf16706c14_origin.pdf +3 -0
  35. 2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/full.md +431 -0
  36. 2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/images.zip +3 -0
  37. 2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/layout.json +0 -0
  38. 2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/4ad4723c-7bbd-4934-855a-91c77ee9c3b0_content_list.json +1415 -0
  39. 2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/4ad4723c-7bbd-4934-855a-91c77ee9c3b0_model.json +1703 -0
  40. 2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/4ad4723c-7bbd-4934-855a-91c77ee9c3b0_origin.pdf +3 -0
  41. 2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/full.md +243 -0
  42. 2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/images.zip +3 -0
  43. 2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/layout.json +0 -0
  44. 2024/Concept-aware Data Construction Improves In-context Learning of Language Models/6dcdff83-7595-4f05-befa-45bf5c5acb01_content_list.json +0 -0
  45. 2024/Concept-aware Data Construction Improves In-context Learning of Language Models/6dcdff83-7595-4f05-befa-45bf5c5acb01_model.json +0 -0
  46. 2024/Concept-aware Data Construction Improves In-context Learning of Language Models/6dcdff83-7595-4f05-befa-45bf5c5acb01_origin.pdf +3 -0
  47. 2024/Concept-aware Data Construction Improves In-context Learning of Language Models/full.md +420 -0
  48. 2024/Concept-aware Data Construction Improves In-context Learning of Language Models/images.zip +3 -0
  49. 2024/Concept-aware Data Construction Improves In-context Learning of Language Models/layout.json +0 -0
  50. 2024/ConceptMath_ A Bilingual Concept-wise Benchmark for Measuring Mathematical Reasoning of Large Language Models/f41f5146-d293-4f16-b60f-2fdf8b7e23fe_content_list.json +0 -0
.gitattributes CHANGED
@@ -3263,3 +3263,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
3263
  2024/Combating[[:space:]]Label[[:space:]]Sparsity[[:space:]]in[[:space:]]Short[[:space:]]Text[[:space:]]Topic[[:space:]]Modeling[[:space:]]via[[:space:]]Nearest[[:space:]]Neighbor[[:space:]]Augmentation/27013318-d5b6-48f4-a4f9-f2dc5331f4ba_origin.pdf filter=lfs diff=lfs merge=lfs -text
3264
  2024/Combining[[:space:]]Hierachical[[:space:]]VAEs[[:space:]]with[[:space:]]LLMs[[:space:]]for[[:space:]]clinically[[:space:]]meaningful[[:space:]]timeline[[:space:]]summarisation[[:space:]]in[[:space:]]social[[:space:]]media/9f586477-94bc-41ec-bcf5-0a8d51f29073_origin.pdf filter=lfs diff=lfs merge=lfs -text
3265
  2024/Comments[[:space:]]as[[:space:]]Natural[[:space:]]Logic[[:space:]]Pivots_[[:space:]]Improve[[:space:]]Code[[:space:]]Generation[[:space:]]via[[:space:]]Comment[[:space:]]Perspective/47cabefe-22dd-4dbf-9d02-cf1f53bc41ce_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3263
  2024/Combating[[:space:]]Label[[:space:]]Sparsity[[:space:]]in[[:space:]]Short[[:space:]]Text[[:space:]]Topic[[:space:]]Modeling[[:space:]]via[[:space:]]Nearest[[:space:]]Neighbor[[:space:]]Augmentation/27013318-d5b6-48f4-a4f9-f2dc5331f4ba_origin.pdf filter=lfs diff=lfs merge=lfs -text
3264
  2024/Combining[[:space:]]Hierachical[[:space:]]VAEs[[:space:]]with[[:space:]]LLMs[[:space:]]for[[:space:]]clinically[[:space:]]meaningful[[:space:]]timeline[[:space:]]summarisation[[:space:]]in[[:space:]]social[[:space:]]media/9f586477-94bc-41ec-bcf5-0a8d51f29073_origin.pdf filter=lfs diff=lfs merge=lfs -text
3265
  2024/Comments[[:space:]]as[[:space:]]Natural[[:space:]]Logic[[:space:]]Pivots_[[:space:]]Improve[[:space:]]Code[[:space:]]Generation[[:space:]]via[[:space:]]Comment[[:space:]]Perspective/47cabefe-22dd-4dbf-9d02-cf1f53bc41ce_origin.pdf filter=lfs diff=lfs merge=lfs -text
3266
+ 2024/Comparing[[:space:]]Data[[:space:]]Augmentation[[:space:]]Methods[[:space:]]for[[:space:]]End-to-End[[:space:]]Task-Oriented[[:space:]]Dialog[[:space:]]Systems/6a7588fd-6217-4a89-8c21-556bca64edea_origin.pdf filter=lfs diff=lfs merge=lfs -text
3267
+ 2024/Competition-Level[[:space:]]Problems[[:space:]]are[[:space:]]Effective[[:space:]]LLM[[:space:]]Evaluators/65598a40-492c-43ff-8fa3-bd8222139986_origin.pdf filter=lfs diff=lfs merge=lfs -text
3268
+ 2024/Complex[[:space:]]Logical[[:space:]]Query[[:space:]]Answering[[:space:]]by[[:space:]]Calibrating[[:space:]]Knowledge[[:space:]]Graph[[:space:]]Completion[[:space:]]Models/28987eca-6571-4ea4-b16a-06ab4319ecb4_origin.pdf filter=lfs diff=lfs merge=lfs -text
3269
+ 2024/Compositional[[:space:]]Generalization[[:space:]]with[[:space:]]Grounded[[:space:]]Language[[:space:]]Models/5b07d1a5-aacb-474d-988a-7cd18a966725_origin.pdf filter=lfs diff=lfs merge=lfs -text
3270
+ 2024/Comprehensive[[:space:]]Abstractive[[:space:]]Comment[[:space:]]Summarization[[:space:]]with[[:space:]]Dynamic[[:space:]]Clustering[[:space:]]and[[:space:]]Chain[[:space:]]of[[:space:]]Thought/d3a0bf80-2ed5-4819-92c1-efa029bb2503_origin.pdf filter=lfs diff=lfs merge=lfs -text
3271
+ 2024/ConTempo_[[:space:]]A[[:space:]]Unified[[:space:]]Temporally[[:space:]]Contrastive[[:space:]]Framework[[:space:]]for[[:space:]]Temporal[[:space:]]Relation[[:space:]]Extraction/9ded2c84-7d7d-4a7e-b160-6caf16706c14_origin.pdf filter=lfs diff=lfs merge=lfs -text
3272
+ 2024/Concept-Best-Matching_[[:space:]]Evaluating[[:space:]]Compositionality[[:space:]]In[[:space:]]Emergent[[:space:]]Communication/4ad4723c-7bbd-4934-855a-91c77ee9c3b0_origin.pdf filter=lfs diff=lfs merge=lfs -text
3273
+ 2024/Concept-aware[[:space:]]Data[[:space:]]Construction[[:space:]]Improves[[:space:]]In-context[[:space:]]Learning[[:space:]]of[[:space:]]Language[[:space:]]Models/6dcdff83-7595-4f05-befa-45bf5c5acb01_origin.pdf filter=lfs diff=lfs merge=lfs -text
3274
+ 2024/ConceptMath_[[:space:]]A[[:space:]]Bilingual[[:space:]]Concept-wise[[:space:]]Benchmark[[:space:]]for[[:space:]]Measuring[[:space:]]Mathematical[[:space:]]Reasoning[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/f41f5146-d293-4f16-b60f-2fdf8b7e23fe_origin.pdf filter=lfs diff=lfs merge=lfs -text
3275
+ 2024/Concise[[:space:]]and[[:space:]]Precise[[:space:]]Context[[:space:]]Compression[[:space:]]for[[:space:]]Tool-Using[[:space:]]Language[[:space:]]Models/314d8c11-72d5-4f55-877f-d7481f6a5b5b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3276
+ 2024/Context[[:space:]]Length[[:space:]]Extension[[:space:]]via[[:space:]]Generalized[[:space:]]Extrapolation[[:space:]]Scale/77308aa4-3460-425f-a22a-59c12e30921d_origin.pdf filter=lfs diff=lfs merge=lfs -text
3277
+ 2024/Context-Aware[[:space:]]Tracking[[:space:]]and[[:space:]]Dynamic[[:space:]]Introduction[[:space:]]for[[:space:]]Incomplete[[:space:]]Utterance[[:space:]]Rewriting[[:space:]]in[[:space:]]Extended[[:space:]]Multi-Turn[[:space:]]Dialogues/2d605738-edbf-4cc5-a3a7-d229c45591ce_origin.pdf filter=lfs diff=lfs merge=lfs -text
3278
+ 2024/ContextBLIP_[[:space:]]Doubly[[:space:]]Contextual[[:space:]]Alignment[[:space:]]for[[:space:]]Contrastive[[:space:]]Image[[:space:]]Retrieval[[:space:]]from[[:space:]]Linguistically[[:space:]]Complex[[:space:]]Descriptions/25906cf4-52f5-4c97-9e90-b0a42d9f53a2_origin.pdf filter=lfs diff=lfs merge=lfs -text
3279
+ 2024/Continual[[:space:]]Contrastive[[:space:]]Spoken[[:space:]]Language[[:space:]]Understanding/066da4e7-65cc-4461-bcbf-d61330a41943_origin.pdf filter=lfs diff=lfs merge=lfs -text
3280
+ 2024/Continual[[:space:]]Dialogue[[:space:]]State[[:space:]]Tracking[[:space:]]via[[:space:]]Reason-of-Select[[:space:]]Distillation/a3398306-1573-48e8-bd62-e210bcef1667_origin.pdf filter=lfs diff=lfs merge=lfs -text
3281
+ 2024/Continual[[:space:]]Few-shot[[:space:]]Relation[[:space:]]Extraction[[:space:]]via[[:space:]]Adaptive[[:space:]]Gradient[[:space:]]Correction[[:space:]]and[[:space:]]Knowledge[[:space:]]Decomposition/ea62657f-318f-4ed0-b713-9a20fa5226a4_origin.pdf filter=lfs diff=lfs merge=lfs -text
3282
+ 2024/Contrastive[[:space:]]Instruction[[:space:]]Tuning/5e0de5dd-0605-498e-83d9-07aeff20f199_origin.pdf filter=lfs diff=lfs merge=lfs -text
3283
+ 2024/Controllable[[:space:]]Data[[:space:]]Augmentation[[:space:]]for[[:space:]]Few-Shot[[:space:]]Text[[:space:]]Mining[[:space:]]with[[:space:]]Chain-of-Thought[[:space:]]Attribute[[:space:]]Manipulation/0e2939fa-4ea2-4cbf-bb11-2d45bef217f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
3284
+ 2024/Controllable[[:space:]]Text[[:space:]]Generation[[:space:]]with[[:space:]]Residual[[:space:]]Memory[[:space:]]Transformer/bccbb46e-7862-425a-b332-c8ce76d11bb9_origin.pdf filter=lfs diff=lfs merge=lfs -text
3285
+ 2024/Controllable[[:space:]]Text[[:space:]]Summarization_[[:space:]]Unraveling[[:space:]]Challenges,[[:space:]]Approaches,[[:space:]]and[[:space:]]Prospects[[:space:]]-[[:space:]]A[[:space:]]Survey/59f2194f-202c-40f6-92d0-279054bab4bb_origin.pdf filter=lfs diff=lfs merge=lfs -text
3286
+ 2024/Controlled[[:space:]]Text[[:space:]]Generation[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]with[[:space:]]Dynamic[[:space:]]Attribute[[:space:]]Graphs/0eee345e-6bb9-47c2-80d8-3ef7cb67effd_origin.pdf filter=lfs diff=lfs merge=lfs -text
3287
+ 2024/Conversational[[:space:]]Question[[:space:]]Answering[[:space:]]with[[:space:]]Language[[:space:]]Models[[:space:]]Generated[[:space:]]Reformulations[[:space:]]over[[:space:]]Knowledge[[:space:]]Graph/c1898db8-3794-4a66-b580-eed1f0e86def_origin.pdf filter=lfs diff=lfs merge=lfs -text
3288
+ 2024/CorNav_[[:space:]]Autonomous[[:space:]]Agent[[:space:]]with[[:space:]]Self-Corrected[[:space:]]Planning[[:space:]]for[[:space:]]Zero-Shot[[:space:]]Vision-and-Language[[:space:]]Navigation/c3dfdcc8-46b1-44b1-b56c-702eb52bf581_origin.pdf filter=lfs diff=lfs merge=lfs -text
3289
+ 2024/CounterCurate_[[:space:]]Enhancing[[:space:]]Physical[[:space:]]and[[:space:]]Semantic[[:space:]]Visio-Linguistic[[:space:]]Compositional[[:space:]]Reasoning[[:space:]]via[[:space:]]Counterfactual[[:space:]]Examples/8e3facea-cd6f-4f1c-b5e6-bc8dd7a97fdb_origin.pdf filter=lfs diff=lfs merge=lfs -text
3290
+ 2024/Countering[[:space:]]Reward[[:space:]]Over-Optimization[[:space:]]in[[:space:]]LLM[[:space:]]with[[:space:]]Demonstration-Guided[[:space:]]Reinforcement[[:space:]]Learning/fdfdcec5-b444-4592-9efc-3d2667eedd04_origin.pdf filter=lfs diff=lfs merge=lfs -text
3291
+ 2024/CriticBench_[[:space:]]Benchmarking[[:space:]]LLMs[[:space:]]for[[:space:]]Critique-Correct[[:space:]]Reasoning/e4340f4d-b565-403d-a5d3-7a91f32a46d3_origin.pdf filter=lfs diff=lfs merge=lfs -text
3292
+ 2024/Critical[[:space:]]Learning[[:space:]]Periods_[[:space:]]Leveraging[[:space:]]Early[[:space:]]Training[[:space:]]Dynamics[[:space:]]for[[:space:]]Efficient[[:space:]]Data[[:space:]]Pruning/f90d12bf-ce13-4e9b-9529-e929e2e0ed5b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3293
+ 2024/Cutting[[:space:]]Off[[:space:]]the[[:space:]]Head[[:space:]]Ends[[:space:]]the[[:space:]]Conflict_[[:space:]]A[[:space:]]Mechanism[[:space:]]for[[:space:]]Interpreting[[:space:]]and[[:space:]]Mitigating[[:space:]]Knowledge[[:space:]]Conflicts[[:space:]]in[[:space:]]Language[[:space:]]Models/e77e1c3b-3932-4dbe-b070-054f0d670f6a_origin.pdf filter=lfs diff=lfs merge=lfs -text
3294
+ 2024/CycleAlign_[[:space:]]Iterative[[:space:]]Distillation[[:space:]]from[[:space:]]Black-box[[:space:]]LLM[[:space:]]to[[:space:]]White-box[[:space:]]Models[[:space:]]for[[:space:]]Better[[:space:]]Human[[:space:]]Alignment/af30bd92-533e-4711-9136-ebf08797a728_origin.pdf filter=lfs diff=lfs merge=lfs -text
3295
+ 2024/Cyclical[[:space:]]Contrastive[[:space:]]Learning[[:space:]]Based[[:space:]]on[[:space:]]Geodesic[[:space:]]for[[:space:]]Zero-shot[[:space:]]Cross-lingual[[:space:]]Spoken[[:space:]]Language[[:space:]]Understanding/8558306c-8739-4d74-8308-07b32b88c489_origin.pdf filter=lfs diff=lfs merge=lfs -text
3296
+ 2024/DADA_[[:space:]]Distribution-Aware[[:space:]]Domain[[:space:]]Adaptation[[:space:]]of[[:space:]]PLMs[[:space:]]for[[:space:]]Information[[:space:]]Retrieval/34beb410-dda8-412f-81f0-1509b78bcbdc_origin.pdf filter=lfs diff=lfs merge=lfs -text
3297
+ 2024/DAFNet_[[:space:]]Dynamic[[:space:]]Auxiliary[[:space:]]Fusion[[:space:]]for[[:space:]]Sequential[[:space:]]Model[[:space:]]Editing[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/b9652acd-2b53-4b00-8894-b191dc357df9_origin.pdf filter=lfs diff=lfs merge=lfs -text
3298
+ 2024/DARA_[[:space:]]Decomposition-Alignment-Reasoning[[:space:]]Autonomous[[:space:]]Language[[:space:]]Agent[[:space:]]for[[:space:]]Question[[:space:]]Answering[[:space:]]over[[:space:]]Knowledge[[:space:]]Graphs/5d83d7ce-d9de-4e35-b2aa-165387b5be2b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3299
+ 2024/DATA-CUBE_[[:space:]]Data[[:space:]]Curriculum[[:space:]]for[[:space:]]Instruction-based[[:space:]]Sentence[[:space:]]Representation[[:space:]]Learning/e73cdea1-d574-4408-ab3c-fec6f7770605_origin.pdf filter=lfs diff=lfs merge=lfs -text
3300
+ 2024/DB-LLM_[[:space:]]Accurate[[:space:]]Dual-Binarization[[:space:]]for[[:space:]]Efficient[[:space:]]LLMs/3e3f574c-4f8a-4286-bffe-74d0823ed8e4_origin.pdf filter=lfs diff=lfs merge=lfs -text
3301
+ 2024/DBQR-QA_[[:space:]]A[[:space:]]Question[[:space:]]Answering[[:space:]]Dataset[[:space:]]on[[:space:]]a[[:space:]]Hybrid[[:space:]]of[[:space:]]Database[[:space:]]Querying[[:space:]]and[[:space:]]Reasoning/27e6809a-c429-4b5e-80a7-d3e9f488b0bd_origin.pdf filter=lfs diff=lfs merge=lfs -text
3302
+ 2024/DEBATE_[[:space:]]Devil’s[[:space:]]Advocate-Based[[:space:]]Assessment[[:space:]]and[[:space:]]Text[[:space:]]Evaluation/400c358d-8401-4ba6-b5c7-c4ed17527c1a_origin.pdf filter=lfs diff=lfs merge=lfs -text
3303
+ 2024/DELL_[[:space:]]Generating[[:space:]]Reactions[[:space:]]and[[:space:]]Explanations[[:space:]]for[[:space:]]LLM-Based[[:space:]]Misinformation[[:space:]]Detection/9848f60d-a165-4ab1-8180-caeb087464de_origin.pdf filter=lfs diff=lfs merge=lfs -text
3304
+ 2024/DIMSIM_[[:space:]]Distilled[[:space:]]Multilingual[[:space:]]Critics[[:space:]]for[[:space:]]Indic[[:space:]]Text[[:space:]]Simplification/1434a169-3705-48d0-8ed9-43e05cbdbeb2_origin.pdf filter=lfs diff=lfs merge=lfs -text
3305
+ 2024/DINER_[[:space:]]Debiasing[[:space:]]Aspect-based[[:space:]]Sentiment[[:space:]]Analysis[[:space:]]with[[:space:]]Multi-variable[[:space:]]Causal[[:space:]]Inference/6e03251b-47e1-4ab2-99e8-2a635bf062d4_origin.pdf filter=lfs diff=lfs merge=lfs -text
3306
+ 2024/DMIN_[[:space:]]A[[:space:]]Discourse-specific[[:space:]]Multi-granularity[[:space:]]Integration[[:space:]]Network[[:space:]]for[[:space:]]Conversational[[:space:]]Aspect-based[[:space:]]Sentiment[[:space:]]Quadruple[[:space:]]Analysis/8cb69d7a-3855-4435-a38d-d509bff5f326_origin.pdf filter=lfs diff=lfs merge=lfs -text
3307
+ 2024/DMoERM_[[:space:]]Recipes[[:space:]]of[[:space:]]Mixture-of-Experts[[:space:]]for[[:space:]]Effective[[:space:]]Reward[[:space:]]Modeling/d2c4c23f-f841-4924-bc86-f452094d1623_origin.pdf filter=lfs diff=lfs merge=lfs -text
3308
+ 2024/DORY_[[:space:]]Deliberative[[:space:]]Prompt[[:space:]]Recovery[[:space:]]for[[:space:]]LLM/45b4fc25-57ac-41ae-a614-821d210fb1e8_origin.pdf filter=lfs diff=lfs merge=lfs -text
3309
+ 2024/DP-MLM_[[:space:]]Differentially[[:space:]]Private[[:space:]]Text[[:space:]]Rewriting[[:space:]]Using[[:space:]]Masked[[:space:]]Language[[:space:]]Models/40487714-af15-4b09-a891-9b89eaf11e62_origin.pdf filter=lfs diff=lfs merge=lfs -text
3310
+ 2024/DPDLLM_[[:space:]]A[[:space:]]Black-box[[:space:]]Framework[[:space:]]for[[:space:]]Detecting[[:space:]]Pre-training[[:space:]]Data[[:space:]]from[[:space:]]Large[[:space:]]Language[[:space:]]Models/d9d688d4-8a66-4fa8-836f-913511435990_origin.pdf filter=lfs diff=lfs merge=lfs -text
3311
+ 2024/Data[[:space:]]Augmentation[[:space:]]using[[:space:]]LLMs_[[:space:]]Data[[:space:]]Perspectives,[[:space:]]Learning[[:space:]]Paradigms[[:space:]]and[[:space:]]Challenges/58c0df28-0b5e-4aae-b808-9532e5546e15_origin.pdf filter=lfs diff=lfs merge=lfs -text
3312
+ 2024/Data[[:space:]]Contamination[[:space:]]Calibration[[:space:]]for[[:space:]]Black-box[[:space:]]LLMs/332d8aa6-ae2d-4b26-8db6-69b9fe2bf5ac_origin.pdf filter=lfs diff=lfs merge=lfs -text
3313
+ 2024/Data-Centric[[:space:]]Explainable[[:space:]]Debiasing[[:space:]]for[[:space:]]Improving[[:space:]]Fairness[[:space:]]in[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Models/305a5cd4-3f70-4119-a632-7a9404d7b06b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3314
+ 2024/Deal,[[:space:]]or[[:space:]]no[[:space:]]deal[[:space:]](or[[:space:]]who[[:space:]]knows)_[[:space:]]Forecasting[[:space:]]Uncertainty[[:space:]]in[[:space:]]Conversations[[:space:]]using[[:space:]]Large[[:space:]]Language[[:space:]]Models/65559e50-9679-491e-9f22-bc63b38e8722_origin.pdf filter=lfs diff=lfs merge=lfs -text
3315
+ 2024/Debatrix_[[:space:]]Multi-dimensional[[:space:]]Debate[[:space:]]Judge[[:space:]]with[[:space:]]Iterative[[:space:]]Chronological[[:space:]]Analysis[[:space:]]Based[[:space:]]on[[:space:]]LLM/8819088b-fe0e-4dbf-b47a-2192cdc5683e_origin.pdf filter=lfs diff=lfs merge=lfs -text
3316
+ 2024/Debiasing[[:space:]]In-Context[[:space:]]Learning[[:space:]]by[[:space:]]Instructing[[:space:]]LLMs[[:space:]]How[[:space:]]to[[:space:]]Follow[[:space:]]Demonstrations/2ad6dc6f-9f27-4771-a982-989c5dea3f87_origin.pdf filter=lfs diff=lfs merge=lfs -text
3317
+ 2024/Debiasing[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Structured[[:space:]]Knowledge/f21892f0-412e-401e-9767-2283b0107bce_origin.pdf filter=lfs diff=lfs merge=lfs -text
3318
+ 2024/Debug[[:space:]]like[[:space:]]a[[:space:]]Human_[[:space:]]A[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Debugger[[:space:]]via[[:space:]]Verifying[[:space:]]Runtime[[:space:]]Execution[[:space:]]Step[[:space:]]by[[:space:]]Step/3f7d94d3-7b6c-42f7-b809-a763d83b1934_origin.pdf filter=lfs diff=lfs merge=lfs -text
3319
+ 2024/DebugBench_[[:space:]]Evaluating[[:space:]]Debugging[[:space:]]Capability[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/e96c5b92-b4f3-4909-bad6-6c833375c50c_origin.pdf filter=lfs diff=lfs merge=lfs -text
3320
+ 2024/Deciphering[[:space:]]Digital[[:space:]]Detectives_[[:space:]]Understanding[[:space:]]LLM[[:space:]]Behaviors[[:space:]]and[[:space:]]Capabilities[[:space:]]in[[:space:]]Multi-Agent[[:space:]]Mystery[[:space:]]Games/ed3ec6c6-7f7d-4915-93ca-035d21d1a00d_origin.pdf filter=lfs diff=lfs merge=lfs -text
3321
+ 2024/Deciphering[[:space:]]the[[:space:]]Impact[[:space:]]of[[:space:]]Pretraining[[:space:]]Data[[:space:]]on[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]through[[:space:]]Machine[[:space:]]Unlearning/cc7f3f99-c1d5-4e17-aaf6-3cd9508d5372_origin.pdf filter=lfs diff=lfs merge=lfs -text
3322
+ 2024/Decoding[[:space:]]the[[:space:]]Narratives_[[:space:]]Analyzing[[:space:]]Personal[[:space:]]Drug[[:space:]]Experiences[[:space:]]Shared[[:space:]]on[[:space:]]Reddit/fd9c4fcb-65a8-4924-9959-9eec47ce127c_origin.pdf filter=lfs diff=lfs merge=lfs -text
3323
+ 2024/Decomposing[[:space:]]Argumentative[[:space:]]Essay[[:space:]]Generation[[:space:]]via[[:space:]]Dialectical[[:space:]]Planning[[:space:]]of[[:space:]]Complex[[:space:]]Reasoning/ca77b89a-30a4-4b65-a333-c7546c8e2032_origin.pdf filter=lfs diff=lfs merge=lfs -text
3324
+ 2024/Decomposing[[:space:]]Co-occurrence[[:space:]]Matrices[[:space:]]into[[:space:]]Interpretable[[:space:]]Components[[:space:]]as[[:space:]]Formal[[:space:]]Concepts/de531c1f-f4ce-4c54-b58a-5cd68611c2dd_origin.pdf filter=lfs diff=lfs merge=lfs -text
3325
+ 2024/Decomposition[[:space:]]for[[:space:]]Enhancing[[:space:]]Attention_[[:space:]]Improving[[:space:]]LLM-based[[:space:]]Text-to-SQL[[:space:]]through[[:space:]]Workflow[[:space:]]Paradigm/37ffbb37-b672-47b6-a5c9-87b33ec4e2f2_origin.pdf filter=lfs diff=lfs merge=lfs -text
3326
+ 2024/Deductive[[:space:]]Closure[[:space:]]Training[[:space:]]of[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Coherence,[[:space:]]Accuracy,[[:space:]]and[[:space:]]Updatability/2028ddc8-224d-44e5-9a9f-53f5f89ccd23_origin.pdf filter=lfs diff=lfs merge=lfs -text
3327
+ 2024/Deep[[:space:]]Exploration[[:space:]]of[[:space:]]Cross-Lingual[[:space:]]Zero-Shot[[:space:]]Generalization[[:space:]]in[[:space:]]Instruction[[:space:]]Tuning/2a268e3d-46f1-4d51-81dc-49553b382363_origin.pdf filter=lfs diff=lfs merge=lfs -text
3328
+ 2024/Deepfake[[:space:]]Defense_[[:space:]]Constructing[[:space:]]and[[:space:]]Evaluating[[:space:]]a[[:space:]]Specialized[[:space:]]Urdu[[:space:]]Deepfake[[:space:]]Audio[[:space:]]Dataset/5ce43a1c-d537-499a-bcea-1fa755e9a22b_origin.pdf filter=lfs diff=lfs merge=lfs -text
3329
+ 2024/Defending[[:space:]]LLMs[[:space:]]against[[:space:]]Jailbreaking[[:space:]]Attacks[[:space:]]via[[:space:]]Backtranslation/ae06abe4-286d-4472-9629-69c12f9e4810_origin.pdf filter=lfs diff=lfs merge=lfs -text
2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/6a7588fd-6217-4a89-8c21-556bca64edea_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/6a7588fd-6217-4a89-8c21-556bca64edea_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/6a7588fd-6217-4a89-8c21-556bca64edea_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6c1d51233d996f49d66795a7dea789257ea42e307e34b157df07aebb85a9261
3
+ size 1156615
2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/full.md ADDED
@@ -0,0 +1,736 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems
2
+
3
+ Christos Vlachos<sup>1,2</sup>, Themos Stafylakis<sup>1,2,3</sup>, Ion Androutsopoulos<sup>1,3</sup>
4
+
5
+ $^{1}$ Department of Informatics, Athens University of Economics and Business, Greece
6
+
7
+ <sup>2</sup>Omium Natural Language Solutions Ltd. <sup>3</sup>Archimedes/Athena RC, Greece
8
+
9
+ # Abstract
10
+
11
+ Creating effective and reliable task-oriented dialog systems (ToDSs) is challenging, not only because of the complex structure of these systems, but also due to the scarcity of training data, especially when several modules need to be trained separately, each one with its own input/output training examples. Data augmentation (DA), whereby synthetic training examples are added to the training data, has been successful in other NLP systems, but has not been explored as extensively in ToDSs. We empirically evaluate the effectiveness of DA methods in an end-to-end ToDS setting, where a single system is trained to handle all processing stages, from user inputs to system outputs. We experiment with two ToDSs (UBAR, GALAXY) on two datasets (MultiWOZ, KVRET). We consider three types of DA methods (word-level, sentence-level, dialog-level), comparing eight DA methods that have shown promising results in ToDSs and other NLP systems. We show that all DA methods considered are beneficial, and we highlight the best ones, also providing advice to practitioners. We also introduce a more challenging few-shot cross-domain ToDS setting, reaching similar conclusions.
12
+
13
+ # 1 Introduction
14
+
15
+ Task-oriented dialog systems (ToDSs) aim to understand and fulfil a user's goal in a particular application domain (e.g., booking tickets, restaurant reservations) through natural language conversation (Bang et al., 2023; Zhao et al., 2022). They traditionally include several modules to handle a variety of processing stages. A natural language understanding (NLU) module typically extracts structured information from each user's utterance, usually in the form of slot-value pairs (e.g., for destination, travel date). A dialog state tracker (DST) keeps track of the information that has been revealed about the user's goal (dialog state) throughout the conversation. A policy optimizer (PO) de
16
+
17
+ cides the system's next action (e.g., request information for a particular unfilled slot of the dialog state, or recommend a restaurant). A natural language generation (NLG) module realises communication actions of the system in natural language. In spoken conversations, automatic speech recognition (ASR) and text-to-speech (TTS) modules are also included (Oesterreich et al., 2023), though here we consider only written conversations.
18
+
19
+ When the modules of a ToDS are trained separately, large volumes of annotated training data are needed, since each module requires its own input/output training examples. In end-to-end ToDSs (Wen et al., 2017; Lei et al., 2018), a single system is jointly trained to handle all (or most) of the processing stages, reducing (or at least harmonising) the kinds of annotated training data required, since each training example can be used by all (or most) of the modules (Deriu et al., 2021). Recent Transformer-based end-to-end ToDSs (Ham et al., 2020; Peng et al., 2021; Sun et al., 2022) aim to reduce the necessary training data further, by leveraging pre-training on unlabelled data. However, the best performance is still obtained by fine-tuning on domain-specific annotated training datasets (Hudeček and Dusek, 2023), which are costly to obtain, especially when moving to a new domain (e.g., from booking airline tickets to reserving restaurants). LLMs that promise adequate results in few- or even zero-shot settings (Radford et al., 2019; Brown et al., 2020) have been underexplored in ToDSs, and work along this direction has focused mostly on the DST module, with contradicting results (Hudeček and Dusek, 2023; Hu et al., 2022). Thus cost-effective methods to obtain or augment training sets for ToDSs are needed.
20
+
21
+ We experiment with data augmentation (DA), which adds synthetic training examples to an existing annotated (possibly small) training set. DA methods have shown promising results in various NLP tasks, e.g., text classification, text generation,
22
+
23
+ question answering (Feng et al., 2021; Shorten et al., 2021; Pappas et al., 2022), but have not been systematically compared in end-to-end ToDSs (Section 6). We simulate the case where the available annotated training set is limited, which is often the case with real-life ToDS applications, especially when moving to new application domains. We experiment with two end-to-end pre-trained Transformer-based TODSs, namely UBAR (Yang et al., 2021) and GALAXY (He et al., 2022b), and two English textual conversational datasets, MultiWOZ 2.0 (Budzianowski et al., 2018) and KVRET (Eric et al., 2017). We vary both the size of the initial annotated training set (e.g., $2\%$ , $10\%$ , $25\%$ of MultiWOZ's training set) and the expansion factor (generating one, two, or four synthetic examples from each original one, i.e., x2, x3, x5 expansion). We also introduce a more challenging few-shot cross-domain setting: in each iteration, we select a single domain as the target one, we remove from the training set all but 20 (few-shot) dialogs of the target domain, we generate synthetic training dialogs from the 20 dialogs, and evaluate only on test dialogs from the left-out target domain.<sup>1</sup>
24
+
25
+ We compare eight DA methods that have shown promising results in ToDSs (mostly when training individual modules) and other NLP systems. The DA methods we consider are of three types. Word-level augmentation methods replace words of the original training examples by similar words, e.g., words that have similar word embeddings or words suggested by models that predict masked words. Sentence-level augmentation includes paraphrasing sentences of the original training data via back-translation (translating to another language and back), invoking systems trained specifically to perform paraphrasing, or by prompting Large Language Models (LLM); we also include in this type methods that rotate (swap) parts of the dependency tree of the original sentence. Finally, dialog-level augmentation methods exploit dialog-specific annotations of the original training examples (e.g., dialog states), which are available in ToDS datasets.
26
+
27
+ Our contributions are: (1) We conduct a systematic comparison of DA methods in an end-to-end ToDS setting, the largest (in terms of DA methods) comparison to date in this setting. (2) We show that substantial performance gains can be obtained with DA methods, even when using pre-trained models,
28
+
29
+ and we offer concrete advice to ToDS practitioners (Section 5). (3) We introduce and utilise a new few-shot cross-domain evaluation setting for DA approaches in ToDS, where we show that DA methods again boost performance.
30
+
31
+ # 2 Data Augmentation Methods
32
+
33
+ # 2.1 Word-level Augmentation
34
+
35
+ Word-level DA methods replace words of the original training examples by similar words, e.g., words with similar word embeddings or words suggested by models that predict masked words (Wei and Zou, 2019; Wang and Yang, 2015). We experiment with word substitutions using either Word2Vec (Mikolov et al., 2013) or RoBERTa (Liu et al., 2019). Apart from boosting performance, word-level DA can generate more synthetic instances per original one, compared to other DA types considered.
36
+
37
+ # 2.1.1 Word2Vec-based Word Substitution
38
+
39
+ We employ Google's 300-dimensional embeddings, created using Word2Vec. We exclude stop-words or delexicalised tokens (special tokens replacing slot values) as candidates for DA. For every word in each dialog utterance, we find the 10 most similar ones in terms of cosine similarity of word embeddings. Preliminary testing showed that this may actually deteriorate performance, as some word replacements create dialog states and system actions inconsistent with the original ones, in agreement with Mi et al. (2021), who note that swapping certain words may change the original semantics. Instead, for every experiment, we train the ToDS with the original training data (the percentage available per experiment). For every word position, we test every candidate substitution from the pool of 10 most similar ones selecting at random, by passing the augmented sentence to that model. If the model's prediction (in terms of dialog state and system action) is different than the original one, the augmentation is discarded and the next word replacement from the pool is considered.
40
+
41
+ # 2.1.2 LM-based Word Substitution
42
+
43
+ Masking a word and using a language model (LM) to predict the masked token is a more advanced case of word substitution, previously used in numerous cases (Pantelidou et al., 2022; Kobayashi, 2018; Mi et al., 2021). We leverage the large version of an out-of-the-box RoBERTa (Liu et al., 2019).
44
+
45
+ The list of candidate substitutions now comprises words that the LM deemed more likely, otherwise the method remains as in Word2Vec-based substitution, including the requirement that the dialog state and system action must remain the same.
46
+
47
+ # 2.2 Sentence-level Augmentation
48
+
49
+ Sentence-level augmentation includes paraphrasing (via back-translation, with systems trained specifically to perform paraphrasing, or by prompting LLMs) and fragment rotation (which moves parts of the dependency tree). These methods cannot generate as many synthetic training instances as word-level substitution, but their synthetic utterances are semantically closer to the original ones.
50
+
51
+ # 2.2.1 Back-translation
52
+
53
+ Back-translation has been used in many NLP tasks (Kumar et al., 2019; Huang et al., 2021; Federmann et al., 2019). It translates a piece of text (an utterance in our case) to a different (pivot) language and back to the original one. We use French as the pivot language and the Google translate API.<sup>3</sup> As explained by Ding et al. (2022), it is important to retain the original names of entities, such as attraction names and addresses. Special tokens used for delexicalisation also face the same issue. To avoid wrongly back-translating these special tokens, we apply back-translation to each utterance only after delexicalising and replacing the special tokens with special numbers (preceded by '#'), which remain unchanged during translation. The special tokens are relexicalized after DA.
54
+
55
+ # 2.2.2 PEGASUS Paraphrasing
56
+
57
+ The utilisation of LMs for paraphrasing was beneficial in the ToDS work of Gao et al. (2020), Hou et al. (2018), and Quan and Xiong (2019). Following Sharma et al. (2022), we leverage an instance of the Transformer-based PEGASUS (Zhang et al., 2020a), fine-tuned for paraphrasing. We set PEGASUS to generate up to two paraphrased utterances, and randomly select one, an approach that allows us the generate multiple synthetic dialogs per training instance. For each synthetic utterance, we check whether the delexicalisable tokens are preserved. If not, the augmentation is not applied.
58
+
59
+ # 2.2.3 Fragment Rotation
60
+
61
+ Cropping or rotating/flipping images is a popular label preserving DA approach in Computer Vision (Krizhevsky et al., 2017; Engstrom et al., 2019). An NLP analog of rotation was proposed by Şahin and Steedman (2018) and has also been tested in a ToDS setting (Louvan and Magnini, 2020, 2021). The main idea is to rotate (swap) in the dependency tree of a sentence, fragments (such as subjects/objects) around the root (usually a verb). We leverage Stanford's dependency parser (Qi et al., 2020) to generate annotations for MultiWOZ 2.0, consistent with the Universal Dependencies 2.1 (Nivre et al., 2020) in Şahin and Steedman's work. We then employ their method to generate synthetic utterances.<sup>6</sup> This may generate multiple outputs per original training instance, from which we sample uniformly. This method is a better fit for more free word-order languages, but both in Louvan and Magnini (2020) and in our experiments, it leads to substantial improvements in English too.
62
+
63
+ # 2.2.4 LLM Paraphrasing
64
+
65
+ LLMs have shown impressive results in tasks they have not encountered during training (Brown et al., 2020; Ouyang et al., 2022). Here we leverage ChatGPT, GPT-3.5-turbo specifically, and prompt it to generate augmented data via paraphrasing. We limit ourselves to two synthetic utterances to minimise the LLM's usage cost, randomly selecting one of the two, provided it includes all of the tokens that will be delexicalised. As a prompt we use a simple instruction and no in-context learning. $^7$
66
+
67
+ # 2.3 Dialog-level Augmentation
68
+
69
+ Dialog-level DA methods exploit dialog-specific annotations that ToD datasets include (e.g., dialog states, system actions). These methods can generate more synthetic data than sentence-level DA methods, but fewer than word-level ones. Also, the dialog-level DA methods considered here assume that dialog turns (user utterance–system response pairs) that have the same dialog state convey the same information, which is not always the case; hence, they may produce erroneous data.
70
+
71
+ # 2.3.1 Dialog Tree
72
+
73
+ The first dialog-level DA method we test was originally proposed by Aksu et al. (2022). Based on
74
+
75
+ their approach, we create a tree structure containing dialogs that can be formed by combining the turns of the available training data in three steps. The first step is the creation of turn templates. Each template comprises a delexicalised turn, along with the current delexicalised dialog state $(Cds)$ and the delexicalised dialog states of the previous $(Pds)$ and next $(Nds)$ turns of the dialog they originate from. If a template refers to the first dialog turn, its $Pds$ is "Root". If a template refers to the last turn, its $Nds$ is "Leaf". Let the set of templates created in the first step be $T = \{r, t_1, \dots, t_n\}$ , where $r$ is a special root template used in the second step.
76
+
77
+ In the second step, templates are linked in a tree structure under a certain condition. A template $t_j$ can be linked with a template $t_i$ as its child node, only if $t_i$ 's Nds matches $t_j$ 's Cds and $t_j$ 's Pds matches $t_i$ 's Cds (see Fig. 7 of Appendix D for an example). All templates $t$ that appear at the beginning of a dialog are automatically assigned as children of the special root template $r$ . The third step is surface realisation, where delexicalised slots are filled with slot values.
78
+
79
+ As the time complexity of this method increases exponentially in the number of dialogs, we sample only 50 dialogs from the original training set in the first step. We then create the tree and generate a new synthetic dialog by starting from the root and randomly selecting a child recursively until we reach a leaf. We then repeat, sampling again 50 dialogs (with replacement) from the original training set and generating another synthetic dialog.
80
+
81
+ # 2.3.2 Act-Response Substitution
82
+
83
+ Multi-Action Data Augmentation (MADA) is another DA approach based on dialog state matching, proposed by Zhang et al. (2020b). For every turn, they identify all other turns (of the original training dialogs) that have the same delexicalised dialog state and extract the system actions associated with the identified turns. They then train their ToDS using the original and extracted system actions per turn. Normally, a ToDS would encounter a single system action in each instance and Zhang et al. (2020b) observe that some system actions are more likely to be the ground truth actions, compared to others that may be correct as well. Instead, through MADA, the model encounters a more balanced set of system actions, helping it generate diverse responses during inference. In our case, along with valid system actions, we also store the corresponding system responses per turn, following the same
84
+
85
+ principle. Then, for each dialog turn we replace the original system action and response by sampling from the set created by the process discussed.
86
+
87
+ # 3 Experimental Setup
88
+
89
+ In all experiments, we use three different randomly sampled training subsets (e.g., 3 different $10\%$ subsets) and report averages.
90
+
91
+ # 3.1 Main Experiments
92
+
93
+ MultiWOZ: For our main experiments, we use MultiWOZ, an English human-to-human conversational dataset produced by a Wizard-of-Oz experiment, which has been used extensively in previous work (Wu et al., 2019; Heck et al., 2020; Zhao et al., 2021; Kulhánek et al., 2021; Wu et al., 2023). MultiWOZ 2.0, the most commonly used version that we also use, includes dialogs spanning 7 domains. It includes 10,438 dialogs in total, of which 1,000 are reserved for validation and another 1,000 for testing. Most dialogs fall into two or more domains making it a challenging benchmark. Of the tasks supported by MultiWOZ 2.0 (e.g., DST, intent classification, action-to-response generation) we select the response generation (RG) task, which UBAR and GALAXY can handle end-to-end.
94
+
95
+ Evaluation measures: Following Budzianowski et al. (2018), we mainly report Score values for MutiWOZ. We also present Inform, Success, and BLEU results in the appendix. Inform is the percentage of dialogs where the system provided a correct recommendation based on the user's constraints (e.g., cheap hotel). Success is the percentage of dialogs where the system satisfied the user's constraints $(\text{Inform} = 100\%)$ and provided all the requested information (Budzianowski et al., 2018; Nekvinda and Dušek, 2021). BLEU (Papineni et al., 2002) measures the word $n$ -gram similarity between the system and the gold response. Finally, $Score = \frac{1}{2}(\text{Inform} + \text{Success}) + \text{BLEU}$ .
96
+
97
+ UBAR: For the MultiWOZ experiments, we use UBAR (Yang et al., 2021), a GPT2-based ToDS (Radford et al., 2019) that remains competitive as shown in recent studies (Nekvinda and Dušek, 2021; Sun et al., 2022), and is also easier (and much less expensive) to use compared to larger LLMs. UBAR is also based on the framework used by MADA (Zhang et al., 2020b), thus facilitating experimenting with dialog-level DA methods.
98
+
99
+ MultiWOZ with all DA methods: In a first set of experiments, we reduce the size of the MultiWOZ
100
+
101
+ training set to 850 dialogs ( $\sim 10\%$ of the training set) and produce an extra synthetic dialog from each original one, doubling ( $\times 2$ ) the training set.
102
+
103
+ MultiWOZ with best three DA methods: In a second set of experiments, we consider only the best three DA methods of the previous experiments, but we now consider generating one, two, or four synthetic dialogs from each original dialog $(\times 2, \times 3, \times 5)$ , using only $\sim 2\%$ (170), $\sim 10\%$ (850), or $\sim 25\%$ (2,125) of the MultiWOZ training dialogs.
104
+
105
+ Few-shot cross-domain experiments: Finally, we test the best three DA methods of the first set of experiments, now in a few-shot, cross-domain setting for the restaurant, hotel and attraction domains of MultiWOZ. As in the first set of experiments, we use $10\%$ of the MultiWOZ training dialogs. Additionally, in three iterations, we leave one domain out of the training set apart from 20 (few-shot) dialogs, and we use only test (and validation) dialogs that include the left-out domain. We generate four synthetic dialogs for each few-shot dialog (x5) in these experiments, which was the augmentation size that worked best in the second set of experiments when there were very few training instances.
106
+
107
+ # 3.2 Additional Experiments
108
+
109
+ To ensure that our previous findings are not dataset-and model-specific, we repeat them using KVRET (Eric et al., 2017) and GALAXY (He et al., 2022b).
110
+
111
+ KVRET is also an English multi-domain dataset, the domains being weather, navigation, schedule. It includes 2,424 dialogs, with 302 being reserved for validation and 304 for testing. Contrary to MultiWOZ, each dialog belongs in a single domain.
112
+
113
+ Evaluation measures: Following He et al. (2022b), for KVRET we report Score (calculated using the same formula as in MultiWOZ), with slight modifications. Match is reported, which is equivalent to the Inform of MultiWOZ. Moreover, Lei et al. (2018) argues that the original Success rate favours recall, as a dialog would be considered successful if the model responded with every possible recommendation. Hence Success $F1$ is used to balance precision and recall instead of Success.
114
+
115
+ GALAXY is a more recent ToDS, pretrained using UniLM (Dong et al., 2019), currently among the best ToDSs on KVRET (He et al., 2022a).
116
+
117
+ Experiments: We conduct similar experiments on KVRET as on MultiWOZ. The initial training sets (before DA) include $\sim 5\%$ (120), $\sim 10\%$ (250),
118
+
119
+ $\sim 25\%$ (600) dialogs from KVRET's training set. We select the three best performing DA approaches on the $5\%$ subset and conduct the same experiments using the $10\%$ and $25\%$ subsets, generating one, two, or four synthetic instances from each original one (x2, x3, x5). KVRET has an average dialog length of 2.5 turns, contrary to MultiWOZ's 13.68. We exclude the two dialog-level DA methods from the KVRET experiments, since they had the worst performance in the first set of experiments on MultiWOZ. As each dialog belongs in a single domain, our cross-domain evaluation setting is also not applicable to KVRET.
120
+
121
+ # 4 Experimental Results and Analysis
122
+
123
+ # 4.1 Results of the Main Experiments
124
+
125
+ MultiWOZ with all DA methods: The results of the first set of experiments (all 8 DA methods, $10\%$ of MultiWOZ's training set, x2 expansion) are presented in Table 1. All DA methods lead to a substantial performance boost. The three highest scores are obtained with Word2Vec substitution, PEGASUS paraphrasing and fragment rotation, improving UBAR without DA ("10% training set") by about 9 points. Surprisingly, fragment rotation is among the best DA method, even though English is not particularly free word-order (Section 2.2.3). The worst results come from the dialog-level DA methods, presumably because matching delexicalised dialog states introduces noise (Aksu et al., 2022).
126
+
127
+ MultiWOZ with best three DA methods: The results of the second set of experiments (best 3 DA methods, $2\%$ , $10\%$ , $25\%$ of original training set, expansion by x2, x3, x5) are shown in Fig. 1. For each original training set size (horizontal axis), we show the Score (vertical axis) of each DA method (curves). To save space, we show scores using the best (per DA method and training set size) expansion size (x2, x3, x5). As expected, DA methods are more beneficial when the original annotated training set is limited (e.g. $2\%$ , $10\%$ ), with much smaller improvements when more annotated data are available ( $25\%$ ). Also, when the original training set is very limited ( $2\%$ ), x5 expansion leads to the best results, but when the original training set is larger ( $10\%$ , $25\%$ ), more conservative ( $x3$ and x2, respectively) expansion is better, presumably because it becomes more important to avoid adding multiple variants of the same original training instance. Overall, the three best DA methods lead to
128
+
129
+ very similar performance boosts, in agreement with the results of the previous experiments (Table 1).
130
+
131
+ Few-shot cross-domain experiments: The results of these experiments are shown in Fig. 2. All DA methods led to substantial improvements in all three few-shot domains, increasing the Score by up to 8, 9 and 10 points for the attraction, hotel and restaurant domains, respectively. Contrary to previous experiments, here PEGASUS paraphrasing was more effective overall compared to the other two DA methods.[8]
132
+
133
+ <table><tr><td>DA Type</td><td>DA Method</td><td>Score</td></tr><tr><td rowspan="2">No DA</td><td>Full training set</td><td>105.1</td></tr><tr><td>10% training set</td><td>75.88</td></tr><tr><td rowspan="2">Word-level</td><td>Word2Vec replace</td><td>84.69</td></tr><tr><td>RoBERTa replace</td><td>80.11</td></tr><tr><td rowspan="4">Sentence-level</td><td>Back-translation (FR)</td><td>81.31</td></tr><tr><td>PEGASUS</td><td>83.16</td></tr><tr><td>Fragment rotation</td><td>84.59</td></tr><tr><td>LLM paraphrase</td><td>81.48</td></tr><tr><td rowspan="2">Dialog-level</td><td>Dialog Tree</td><td>79.94</td></tr><tr><td>Act-Response</td><td>80.78</td></tr></table>
134
+
135
+ Table 1: MultiWOZ Score, for all 8 DA methods, using $10\%$ of the original training dialogs, producing a single synthetic dialog from each original one (x2).
136
+
137
+ ![](images/fa715c3da78b2fa583cca6ea2ef9187db68f2d90289edd29a5d967267367c178.jpg)
138
+ Figure 1: MultiWOZ Score, for the 3 best DA methods of Table 1, using $2\%$ , $10\%$ , $25\%$ of the original training dialogs. We report in brackets the expansion size (x2, x3, x5) that led to the best Score.
139
+
140
+ # 4.2 Results of the Additional Experiments
141
+
142
+ KVRET with all DA methods: GALAXY's results with all 6 applicable (to KVRET) DA methods, using $5\%$ of KVRET's training dialogs, and x2 expansion are reported in Table 2. Word2Vec substitution and fragment rotation remain among the
143
+
144
+ ![](images/aa088dd48c91f99700890794c0db504e25b0e1e8d7cd38708a264baf073f709a.jpg)
145
+ Figure 2: MultiWOZ Score, for the 3 best DA methods of Table 1, in the few-shot cross-domain setting (domains: attraction, hotel, restaurant).
146
+
147
+ top performers, with the LLM-based paraphrasing marginally overtaking PEGASUS paraphrasing.
148
+
149
+ KVRET with best three DA methods: Figure 3 shows results obtained with the best three DA methods of the previous experiment, now using $5\%$ , $10\%$ , $25\%$ of KVRET's training set, and x2, x3, x5 expansion. Interestingly, DA (any method) manages to improve performance only when $5\%$ of KVRET's training set is used. $^{9}$ Although KVRET is smaller than MultiWOZ (2,424 dialogs in total vs. 10,438) and one would expect DA methods to be more useful in KVRET, it is also much easier than MultiWOZ, because each dialog concerns a single domain. This is evident by the fact that GALAXY with only $25\%$ of the KVRET training set and no DA (Fig. 3, rightmost result of the red dashed line) is almost as good as GALAXY trained on the entire KVRET training set, again with no DA (horizontal dotted line). Even with only $10\%$ of KVRET's training set, GALAXY with no DA (red dashed line) obtains a Score of 92.16, leaving very little scope for improvement. When using $5\%$ of the original training set, where there is much larger scope for improvement (Fig. 3, left), all DA methods substantially improve performance, and the best DA method (fragment rotation) improves performance by approx. 9 points (Table 2). The results of Figures 1 and 3 also indicate that there is no universal threshold of initial annotated training instances, below which DA is beneficial; the threshold depends on the difficulty of the particular task (e.g., whether dialogs are single- or multi-domain). Instead, one should examine performance; when it is very low (e.g., with $2\%$ of MultiWOZ or $5\%$
150
+
151
+ of KVRET), DA methods are definitely worth considering, otherwise when performance is already very high (e.g., exceeding 90 Score when using $10\%$ or $25\%$ of KVRET), applying DA is probably pointless. In all cases, generating more than one or two synthetic examples per original one (more than x2 or x3 expansion) is not beneficial.
152
+
153
+ <table><tr><td>DA Type</td><td>DA Method</td><td>Score</td></tr><tr><td rowspan="2">No DA</td><td>Full training data</td><td>102.5</td></tr><tr><td>5% training data</td><td>73.27</td></tr><tr><td rowspan="2">Word-level</td><td>Word2Vec replace</td><td>81.44</td></tr><tr><td>RoBERTa replace</td><td>80.67</td></tr><tr><td rowspan="4">Sentence-level</td><td>Back-translation (FR)</td><td>77.83</td></tr><tr><td>PEGASUS</td><td>75.78</td></tr><tr><td>Fragment rotation</td><td>82.76</td></tr><tr><td>LLM paraphrase</td><td>82.04</td></tr></table>
154
+
155
+ Table 2: KVRET Score, for 6 applicable DA methods, using $5\%$ of original training dialogs, producing a single synthetic dialog from each original one (x2).
156
+
157
+ ![](images/d0db7778d9b4f7617417d601380edd828cd39d402a5b95c0ffb5b62fdea347b6.jpg)
158
+ Figure 3: KVRET Score, for the 3 best DA methods of Table 2, using $5\%$ , $10\%$ , $25\%$ of the original training dialogs. We report in brackets the expansion size (x2, x3, x5) that led to the best Score.
159
+
160
+ # 4.3 Response and Error Analysis
161
+
162
+ In MultiWOZ dialogs the domain may change from utterance to utterance making the benchmark much more challenging, compared to KVRET. Using DA approaches have proven beneficial in terms of the overall Score, but this is not always the case with the underlying metrics Success and BLEU score that concern the generated response as seen in Figures 3 - 23. To gain a better view of the effectiveness of the DA methods tested, we present an error rate per domain category based on Success. To do so, we calculate the percentage of unsuccessful dialogs $(Success = 0)$ per dialog category in the test set. Consider for example the case of
163
+
164
+ using $25\%$ data of the training set for DA leveraging the Word2Vec approach. A comparison of this approach when using x2 and x5 the amount of data is depicted in Figure 4. Additional comparisons for the case of PEGASUS and fragment rotations are presented in Appendix C. In the figure, "tx", "at", "re", "ho" and "tr" refer to the taxi, attraction, restaurant, hotel, and train domains respectively. Multiple domains in each category denote domain switches. It comes as no surprise that the more domain switches a dialog contains, the more errors the model makes. Using x5 the amount of training data seems to amplify this behaviour; an observation that could be attributed to the additional noise introduced mostly in terms of the synthetically generated responses. Thus, generating more than a single synthetic dialog (especially in the x5 case) may not prove as beneficial for all cases (e.g. when $25\%$ of the MultiWOZ dialogs are available). Overall, of the three best performing methods, Word2Vec and PEGASUS seem to perform similarly, making more errors is the same dialog categories (mostly the ones including the restaurant and hotel domains). On the other hand fragment rotation straggles more mostly with dialogs involving the attraction domain. One should keep in mind that, regardless of applying DA or not, many errors made by the model are also to be blamed to the automatic evaluation as during inference the user's utterance remains static and is always in accordance with the ground truth system response, thus potentially confusing the model.
165
+
166
+ After careful, manual examination of system responses on a small sample of the test set across all experimental cases, the responses themselves are fluent and informative. Generally, it is very difficult to deduce which DA method was used to train the model that generated the response. The small differences in scores could be justified by this conclusion, especially when comparing two methods that perform DA at the same level (e.g. the sentence-level PEGASUS and fragment rotation methods). Even when generating multiple synthetic dialogs per training instance (e.g. x5 DA level), the responses remain fluent even though some DA methods may alter the structure of the sentence (e.g. Figure 13). Using fragment rotation to generate four synthetic dialogs is an exception to the above observation, as in few cases the resulting responses may also feature rotated fragments of the respective dependency trees. An example of a dia
167
+
168
+ ![](images/dff295b487281edc4196f4abed216773289a8e1473488b3fa2a0bca2903c76fe.jpg)
169
+
170
+ ![](images/34280bf573b93fd762e9a1fcd11023e1539507555fee1fd5dea71848d4ed91fa.jpg)
171
+ Figure 4: Error rates per MultiWOZ domain category using the Word2Vec DA method and having $25\%$ of the training data available. The upper and lower figures depict error rates when generating a single (x2) and four (x5) synthetic dialogs per instance respectively.
172
+
173
+ log and its corresponding response per DA method is depicted in Figure 17 of Appendix D. Moreover, a comparison of the models' outputs when generating a single and four synthetic dialogs per training instance is depicted in Figure 18.
174
+
175
+ # 5 Advice to ToDS Practitioners
176
+
177
+ Based on our experiments, we provide the following advice to ToDS practitioners. (1) Although DA methods are currently not widely used in ToDS (Section 6), they can lead to very substantial gains when annotated training examples are scarce, even when using pre-trained end-to-end models. However, data scarcity depends on the difficulty of the task (e.g., whether the dialogues are single- or multi-domain), it cannot be judged using a universal threshold of initial annotated training instances, and is best assessed using performance scores. (2) Although all DA methods considered led to substantial improvements, dialog-state DA methods (at least the ones we considered) should be the last choices, as they led to a smaller performance boost and they also require dialog-specific annotations (e.g., dialog states) that are difficult to obtain in practice. (3) Among the other DA methods consid
178
+
179
+ ered, the best overall performers were Word2Verb-based word substitution (Section 2.1.1), rotating parts of the dependency tree (Section 2.2.3), and paraphrasing the utterances by invoking paraphrasing models or prompting LLMs (Sections 2.2.2, 2.2.4). We recommend using any of these methods, provided that the resources they require are available; e.g., rotation requires a dependency parser for the target language, prompting requires an LLM supporting the target language and adds the cost of invoking an LLM. (4) Generating more than two synthetic instances per original one is worth considering only when the original annotated training instances are very scarce (e.g., when using only $2\%$ of MultiWOZ's multi-domain training set).
180
+
181
+ # 6 Related Work
182
+
183
+ DA has been applied to a wide range of tasks from Computer Vision (Krizhevsky et al., 2017; Engstrom et al., 2019) to Speech Processing (Ko et al., 2015) and NLP (Kumar et al., 2019; Huang et al., 2021; Wei and Zou, 2019; Kobayashi, 2018).
184
+
185
+ For NLP specifically, Pappas et al. (2022) carried out one of the most extensive comparisons of DA methods, in the context of biomedical QA, including Word2Vec-based word replacement (but without our semantics preserving test), LM-based word replacement, and back-translation. Word2Vec-based replacement was the most effective of the three methods, with back-translation and LM-based word replacement having similar performance.
186
+
187
+ Whitehouse et al. (2023) and Sahu et al. (2022) prompt off-the-self LLMs to produce synthetic data in cross-lingual commonsense reasoning and intent classification, respectively. Mehri et al. (2022) also leverage an LLM to produce synthetic data for intent classification, slot filling, and next action prediction in a zero-shot ToDS setting, showing improvements in performance. By contrast, Hudeček and Dusek (2023) reported that relying on LLMs to directly generate belief states and system actions was not beneficial, compared to a fine-tuned model.
188
+
189
+ Zhang et al. (2020b) propose the MADA (Multi-Action Data Augmentation) framework that we modified in order to include both the system actions and responses as explained in Section 2.3.2. Aksu et al. (2022) also capitalise on dialog states to produce a tree of possible dialogs (Section 2.3.1). Both of these approaches proved beneficial in our work. Similar to the approach of Aksu et al. (2022), Gritta et al. (2021) also capitalise on a graph struc
190
+
191
+ ture, linking dialog states across all dialogs. In a similar spirit, Qiu et al. (2022) propose clustering dialog turns based on their dialog states. The extracted cluster structure forms the base for an augmentation approach similar to MADA.
192
+
193
+ Louvan and Magnini (2020, 2021), inspired by Şahin and Steedman (2018), introduce an NLP version of image cropping and rotation, based on permutations of sentence fragments (Section 2.2.3). To improve performance on out-of-scope (OOS) dialog utterances (not represented in the training set, e.g., pertaining to new domains), Chen and Yu (2021) augment their training set by mixing OOS utterances with the ones found in their training set. Yin et al. (2020) use Reinforcement Learning to find the optimal (in terms of context) text span replacements (instead of word replacements).
194
+
195
+ Paraphrasing as a form of DA was also used by Hou et al. (2018) and Gao et al. (2020) for slot-tagging (subpart of DST) and RG; they implemented their own paraphrasing model based on RNNs. Similarly, Axman et al. (2023) train a BART model (Lewis et al., 2020) for paraphrasing in an end-to-end ToD setting. Mi et al. (2021), also employ DA in a ToDS setting, by substituting masked tokens of the input using an LM (much as in Section 2.1.1). Song et al. (2021) augment their dataset by replacing slot-values with randomly generated strings to simulate references to out-of-vocabulary (OOV) words, a simple yet effective approach for models that learn to copy words from input to output by incorporating the copy-mechanism (Gu et al., 2016). Huang et al. (2022) randomly change the letter order of slot-values to improve the robustness of their ToDS. Improving robustness is also the main goal of Li et al. (2021), who generate turns with replaced slot-values not encountered in the training set.
196
+
197
+ The closest previous work is that of Quan and Xiong (2019). They experiment with four DA methods in an end-to-end ToDS setting, including stopwords removal, paraphrasing, back-translation, synonym substitution (and their combination). We compare more (eight) DA methods, of three different types (word-level, sentence-level, dialog-level), while Quan and Xiong consider fewer (four) methods of the word-level and sentence-level types only. Furthermore, we also experiment with a more challenging dataset containing dialogs that may belong (the same dialog) in multiple domains (MultiWOZ), whereas Quan and Xiong use the single
198
+
199
+ domain Camrest676 (Wen et al., 2017), and (like us) KVRET, which covers three domains, but each dialog pertains to a single domain. Contrary to the work of Quan and Xiong, we also experiment with several sizes of initial annotated training set (e.g., $2\%$ , $10\%$ , $25\%$ in MultiWOZ) and different expansions (x2, x3, x5), and we also introduce a new few-shot cross domain setting (Section 3.1).
200
+
201
+ # 7 Conclusions and Future Work
202
+
203
+ We performed the largest to date (in terms of methods and types) empirical comparison of DA methods in the context of end-to-end ToDSs, using two pre-trained Transformer ToDSs (UBAR, GALAXY) and two datasets (MultiWOZ, KVRET). We varied both the size of the initial annotated training set (e.g., $2\%$ , $10\%$ , $25\%$ of MultiWOZ's training set) and the expansion factor (generating one, two, or four synthetic instances from each original one). We also introduced a new, more challenging few-shot cross-domain evaluation setting. We showed that substantial performance gains can be obtained with DA methods, even when using pre-trained end-to-end models, and we offered concrete advice to ToDS practitioners regarding when to use DA, which DA methods to prefer, and with which expansion factors (Section 5).
204
+
205
+ In future work, we plan to explore combinations of DA methods, to check if the synthetic training instances they produce are complementary. We also plan to investigate how well DA methods perform in low-resource languages (e.g., languages for which LLMs or reliable dependency parsers may not be available). Finally, we aim to measure the costs (computational, monetary) of DA methods.
206
+
207
+ # 8 Limitations
208
+
209
+ A major limitation of our work is based on the nature of the datasets. Most of our DA methods rely on dialog annotations to ensure that they preserve the original semantics of the dialogs (Subsection 2.1.1) or to directly generate synthetic dialogs (Subsection 2.3.1). Many ToD datasets lack such detailed annotation, as is the case with the second track of DSTC 11 (Soltau et al., 2023). $^{10}$ In real world scenarios such annotations are even harder to come by, even though there is a plethora of structured dialogs covering a wide range of topics. In
210
+
211
+ such cases, DA approaches that rely on the annotations of dialogs are not guaranteed to perform as well or at all on their own, compared to the experiments presented.
212
+
213
+ Another limitation of our work is the lack of detailed tuning/finetuning, in favour of a wider range of DA methods. Taking LLM-based paraphrasing as an example (Subsection 2.2.4), although we do experiment (up to a point) with different prompts during preliminary testing, a more detailed prompt tuning may have led to better results. In the same manner, for the case of PEGASUS paraphrasing (Subsection 2.2.2) or RoBERTa-based word substitution (Subsection 2.1.2), further specialised pretraining on other similar ToD datasets could have led to improved performance as shown by Wu et al. (2020). Similarly we avoid tuning the hyperparameters (e.g., learning rate, context window etc.) of the models used (UBAR and GALAXY). After all, the purpose of our work was not to achieve SOTA performance, but to compare DA methods and show their benefits under a common task (end-to-end).
214
+
215
+ Finally, we only take into account DA methods that can be applied regardless of the ToDS used. ToDSs such as the ones proposed by Gao et al. (2020) and Zhang et al. (2020b) consider online DA methods, that were not covered in our work. We recognise the advantages of such methods but opt not to include them as they are ToDS specific (they are build around a specific ToDS). Instead we experiment with offline DA methods that are architecture-free and have proven beneficial in ToD and NLP in general.
216
+
217
+ # 9 Ethical considerations
218
+
219
+ Implementing the DA methods and training the ToDS proposed in the settings mentioned in Section 3, requires a lot of GPU processing (excluding dialog-level DA and fragment rotation). Leaving aside the cost that comes as a result of the methods' execution, such GPU usage also has environmental impact in the form of CO2 emissions. We hope to alleviate this effect by offering advice to ToDS practitioners (Section 5) and guiding them in choosing the best fit (in terms of DA methods) for their task, in order to avoid such costly experimentation in the future.
220
+
221
+ # 10 Acknowledgements
222
+
223
+ This work was partially supported by Omilia Natural Language Solutions Ltd; the Research Center
224
+
225
+ of the Athens University of Economics and Business (AUEB-RC); and project MIS 5154714 of the National Recovery and Resilience Plan Greece 2.0, funded by the European Union under the NextGenerationEU Program. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or European Commission-EU. Neither the European Union nor the granting authority can be held responsible for them.
226
+
227
+ # References
228
+
229
+ Ibrahim Aksu, Zhengyuan Liu, Min-Yen Kan, and Nancy Chen. 2022. N-shot learning for augmenting task-oriented dialogue state tracking. In *Findings of the Association for Computational Linguistics: ACL* 2022, pages 1659–1671, Dublin, Ireland. Association for Computational Linguistics.
230
+ Dustin Axman, Avik Ray, Shubham Garg, and Jing Huang. 2023. Contextual data augmentation for task-oriented dialog systems. In ECML-PKDD 2023 Workshop on Challenges and Opportunities of Large Language Models in Real-World Machine Learning Applications (COLLM).
231
+ Namo Bang, Jeehyun Lee, and Myoung-Wan Koo. 2023. Task-optimized adapters for an end-to-end task-oriented dialogue system. In Findings of the Association for Computational Linguistics: ACL 2023, pages 7355–7369, Toronto, Canada. Association for Computational Linguistics.
232
+ Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS'20, Red Hook, NY, USA. Curran Associates Inc.
233
+ Paweł Budzianowski, Tsung-Hsien Wen, Bo-Hsiang Tseng, Inigo Casanueva, Stefan Ultes, Osman Ramadan, and Milica Gašić. 2018. MultiWOZ - a large-scale multi-domain Wizard-of-Oz dataset for task-oriented dialogue modelling. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 5016-5026, Brussels, Belgium. Association for Computational Linguistics.
234
+ Derek Chen and Zhou Yu. 2021. GOLD: Improving out-of-scope detection in dialogues using data augmentation. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing,
235
+
236
+ pages 429-442, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
237
+ Jan Deriu, Alvaro Rodrigo, Arantxa Otegi, Guillermo Echegoyen, Sophie Rosset, Eneko Agirre, and Mark Cieliebak. 2021. Survey on evaluation methods for dialogue systems. Artif. Intell. Rev., 54(1):755-810.
238
+ Bosheng Ding, Junjie Hu, Lidong Bing, Mahani Aljunied, Shafiq Joty, Luo Si, and Chunyan Miao. 2022. GlobalWoZ: Globalizing MultiWoZ to develop multilingual task-oriented dialogue systems. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1639-1657, Dublin, Ireland. Association for Computational Linguistics.
239
+ Li Dong, Nan Yang, Wenhui Wang, Furu Wei, Xiaodong Liu, Yu Wang, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. 2019. Unified language model pre-training for natural language understanding and generation. Curran Associates Inc., Red Hook, NY, USA.
240
+ Logan Engstrom, Brandon Tran, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. 2019. A rotation and a translation suffice: Fooling CNNs with simple transformations.
241
+ Mihail Eric, Lakshmi Krishnan, Francois Charette, and Christopher D. Manning. 2017. Key-value retrieval networks for task-oriented dialogue. In Proceedings of the 18th Annual SIGdial Meeting on Discourse and Dialogue, pages 37-49, Saarbrücken, Germany. Association for Computational Linguistics.
242
+ Christian Federmann, Oussama Elachqar, and Chris Quirk. 2019. Multilingual whispers: Generating paraphrases with translation. In Proceedings of the 5th Workshop on Noisy User-generated Text (W-NUT 2019), pages 17-26, Hong Kong, China. Association for Computational Linguistics.
243
+ Steven Y. Feng, Varun Gangal, Jason Wei, Sarath Chandar, Soroush Vosoughi, Teruko Mitamura, and Eduard Hovy. 2021. A survey of data augmentation approaches for NLP. In *Findings of the Association for Computational Linguistics: ACL-IJCNLP* 2021, pages 968-988, Online. Association for Computational Linguistics.
244
+ Silin Gao, Yichi Zhang, Zhijian Ou, and Zhou Yu. 2020. Paraphrase augmented task-oriented dialog generation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 639-649, Online. Association for Computational Linguistics.
245
+ Milan Gritta, Gerasimos Lampouras, and Ignacio Iacobacci. 2021. Conversation graph: Data augmentation, training, and evaluation for non-deterministic dialogue management. Transactions of the Association for Computational Linguistics, 9:36-52.
246
+
247
+ Jiatao Gu, Zhengdong Lu, Hang Li, and Victor O.K. Li. 2016. Incorporating copying mechanism in sequence-to-sequence learning. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1631-1640, Berlin, Germany. Association for Computational Linguistics.
248
+ Donghoon Ham, Jeong-Gwan Lee, Youngsoo Jang, and Kee-Eung Kim. 2020. End-to-end neural pipeline for goal-oriented dialogue systems using GPT-2. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 583-592, Online. Association for Computational Linguistics.
249
+ Wanwei He, Yinpei Dai, Min Yang, Jian Sun, Fei Huang, Luo Si, and Yongbin Li. 2022a. Unified dialog model pre-training for task-oriented dialog understanding and generation. In Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '22, page 187-200, New York, NY, USA. Association for Computing Machinery.
250
+ Wanwei He, Yinpei Dai, Yinhe Zheng, Yuchuan Wu, Zheng Cao, Dermot Liu, Peng Jiang, Min Yang, Fei Huang, Luo Si, Jian Sun, and Yongbin Li. 2022b. Galaxy: A generative pre-trained model for task-oriented dialog with semi-supervised learning and explicit policy injection. Proceedings of the AAAI Conference on Artificial Intelligence, 36(10):10749-10757.
251
+ Michael Heck, Carel van Niekerk, Nurul Lubis, Christian Geishauser, Hsien-Chin Lin, Marco Moresi, and Milica Gasic. 2020. TripPy: A triple copy strategy for value independent neural dialog state tracking. In Proceedings of the 21th Annual Meeting of the Special Interest Group on Discourse and Dialogue, pages 35-44, 1st virtual meeting. Association for Computational Linguistics.
252
+ Yutai Hou, Yijia Liu, Wanxiang Che, and Ting Liu. 2018. Sequence-to-sequence data augmentation for dialogue language understanding. In Proceedings of the 27th International Conference on Computational Linguistics, pages 1234-1245, Santa Fe, New Mexico, USA. Association for Computational Linguistics.
253
+ Yushi Hu, Chia-Hsuan Lee, Tianbao Xie, Tao Yu, Noah A. Smith, and Mari Ostendorf. 2022. Incontext learning for few-shot dialogue state tracking. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 2627-2643, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
254
+ Dandan Huang, Kun Wang, and Yue Zhang. 2021. A comparison between pre-training and large-scale back-translation for neural machine translation. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 1718-1732, Online. Association for Computational Linguistics.
255
+
256
+ Tianjian Huang, Shaunak Ashish Halbe, Chinnadhurai Sankar, Pooyan Amini, Satwik Kottur, Alborz Geramifard, Meisam Razaviyayn, and Ahmad Beirami. 2022. Robustness through data augmentation loss consistency. Transactions on Machine Learning Research.
257
+ Vojtěch Hudeček and Ondrej Dusek. 2023. Are large language models all you need for task-oriented dialogue? In Proceedings of the 24th Annual Meeting of the Special Interest Group on Discourse and Dialogue, pages 216-228, Prague, Czechia. Association for Computational Linguistics.
258
+ Tom Ko, Vijayaditya Peddinti, Daniel Povey, and Sanjeev Khudanpur. 2015. Audio augmentation for speech recognition. In Proc. Interspeech 2015, pages 3586-3589.
259
+ Sosuke Kobayashi. 2018. Contextual augmentation: Data augmentation by words with paradigmatic relations. 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 452-457, New Orleans, Louisiana. Association for Computational Linguistics.
260
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. 2017. Imagenet classification with deep convolutional neural networks. Commun. ACM, 60(6):84-90.
261
+ Jonas Kulhanek, Vojtěch Hudeček, Tomáš Nekvinda, and Ondřej Dusek. 2021. AuGPT: Auxiliary tasks and data augmentation for end-to-end dialogue with pre-trained language models. In Proceedings of the 3rd Workshop on Natural Language Processing for Conversational AI, pages 198-210, Online. Association for Computational Linguistics.
262
+ Vishwajeet Kumar, Nitish Joshi, Arijit Mukherjee, Ganesh Ramakrishnan, and Preethi Jyothi. 2019. Cross-lingual training for automatic question generation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4863-4872, Florence, Italy. Association for Computational Linguistics.
263
+ Wenqiang Lei, Xisen Jin, Min-Yen Kan, Zhaochun Ren, Xiangnan He, and Dawei Yin. 2018. Sequicity: Simplifying task-oriented dialogue systems with single sequence-to-sequence architectures. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1437-1447, Melbourne, Australia. Association for Computational Linguistics.
264
+ Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7871-7880, Online. Association for Computational Linguistics.
265
+
266
+ Shiyang Li, Semih Yavuz, Kazuma Hashimoto, Jia Li, Tong Niu, Nazneen Rajani, Xifeng Yan, Yingbo Zhou, and Caiming Xiong. 2021. Coco: Controllable counterfactuals for evaluating dialogue state trackers. In International Conference on Learning Representations.
267
+ 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. CoRR, abs/1907.11692.
268
+ Samuel Louvan and Bernardo Magnini. 2020. Simple is better! lightweight data augmentation for low resource slot filling and intent classification. In Proceedings of the 34th Pacific Asia Conference on Language, Information and Computation, pages 167-177, Hanoi, Vietnam. Association for Computational Linguistics.
269
+ Samuel Louvan and Bernardo Magnini. 2021. Simple data augmentation for multilingual nlu in task oriented dialogue systems. In Proceedings of the Seventh Italian Conference on Computational Linguistics CLiC-it 2020, pages 250-256, online. Torino: Accademia University Press.
270
+ Shikib Mehri, Yasemin Altun, and Maxine Eskenazi. 2022. LAD: Language models as data for zero-shot dialog. In Proceedings of the 23rd Annual Meeting of the Special Interest Group on Discourse and Dialogue, pages 595-604, Edinburgh, UK. Association for Computational Linguistics.
271
+ Fei Mi, Wanhao Zhou, Lingjing Kong, Fengyu Cai, Minlie Huang, and Boi Faltings. 2021. Self-training improves pre-training for few-shot learning in task-oriented dialog systems. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 1887-1898, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
272
+ Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781.
273
+ Tomáš Nekvinda and Ondřej Dušek. 2021. Shades of BLEU, flavours of success: The case of MultiWOZ. In Proceedings of the 1st Workshop on Natural Language Generation, Evaluation, and Metrics (GEM 2021), pages 34-46, Online. Association for Computational Linguistics.
274
+ Joakim Nivre, Marie-Catherine de Marneffe, Filip Ginter, Jan Hajic, Christopher D. Manning, Sampo Pyysalo, Sebastian Schuster, Francis Tyers, and Daniel Zeman. 2020. Universal Dependencies v2: An evergrowing multilingual treebank collection. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 4034-4043, Marseille, France. European Language Resources Association.
275
+
276
+ Thuy Duong Oesterreich, Eduard Anton, Julian Schuir, Alexander Brehm, and Frank Teuteberg. 2023. How can i help you? design principles for task-oriented speech dialog systems in customer service. In Information Systems and e-Business Management, pages 37-79.
277
+ Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, volume 35, pages 27730-27744. Curran Associates, Inc.
278
+ Kyriaki Pantelidou, Despoina Chatzakou, Theodora Tsikrika, Stefanos Vrochidis, and Ioannis Kompatsiaris. 2022. Selective word substitution for contextualized data augmentation. In *Natural Language Processing and Information Systems*, pages 508-516, Cham. Springer International Publishing.
279
+ 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, pages 311-318, Philadelphia, Pennsylvania, USA. Association for Computational Linguistics.
280
+ Dimitris Pappas, Prodromos Malakasiotis, and Ion Androutsopoulos. 2022. Data augmentation for biomedical factoid question answering. In Proceedings of the 21st Workshop on Biomedical Language Processing, pages 63-81, Dublin, Ireland. Association for Computational Linguistics.
281
+ Baolin Peng, Chunyuan Li, Jinchao Li, Shahin Shayandeh, Lars Liden, and Jianfeng Gao. 2021. Soloist: Building task bots at scale with transfer learning and machine teaching. Transactions of the Association for Computational Linguistics, 9:807-824.
282
+ Peng Qi, Yuhao Zhang, Yuhui Zhang, Jason Bolton, and Christopher D. Manning. 2020. Stanza: A python natural language processing toolkit for many human languages. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 101-108, Online. Association for Computational Linguistics.
283
+ Liang Qiu, Chien-Sheng Wu, Wenhao Liu, and Caiming Xiong. 2022. Structure extraction in task-oriented dialogues with slot clustering. ArXiv, abs/2203.00073.
284
+ Jun Quan and Deyi Xiong. 2019. Effective data augmentation approaches to end-to-end task-oriented dialogue. In 2019 International Conference on Asian Language Processing (IALP), pages 47-52.
285
+ Alec Radford, Jeff Wu, Rewon Child, D. Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners.
286
+
287
+ Radim Rehurek and Petr Sojka. 2010. Software framework for topic modelling with large corpora.
288
+ Gözde Gül Şahin and Mark Steedman. 2018. Data augmentation via dependency tree morphing for low-resource languages. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 5004-5009, Brussels, Belgium. Association for Computational Linguistics.
289
+ Gaurav Sahu, Pau Rodriguez, Issam Laradji, Parmida Atighehchian, David Vazquez, and Dzmitry Bahdanau. 2022. Data augmentation for intent classification with off-the-shelf large language models. In Proceedings of the 4th Workshop on NLP for Conversational AI, pages 47-57, Dublin, Ireland. Association for Computational Linguistics.
290
+ Saket Sharma, Aviral Joshi, Namrata Mukhija, Yiyun Zhao, Hanoz Bhathena, Prateek Singh, Sashank Santhanam, and Pritam Biswas. 2022. Systematic review of effect of data augmentation using paraphrasing on named entity recognition. In NeurIPS 2022 Workshop on Synthetic Data for Empowering ML Research.
291
+ Connor Shorten, Taghi M Khoshgoftaar, and Borko Furht. 2021. Text data augmentation for deep learning. Journal of Big Data, 8(1):101.
292
+ Hagen Soltau, Izhak Shafran, Mingqiu Wang, Abhinav Rastogi, Wei Han, and Yuan Cao. 2023. DSTC-11: Speech aware task-oriented dialog modeling track. In Proceedings of The Eleventh Dialog System Technology Challenge, pages 226-234, Prague, Czech Republic. Association for Computational Linguistics.
293
+ Xiaohui Song, Liangjun Zang, and Songlin Hu. 2021. Data augmentation for copy-mechanism in dialogue state tracking. In Computational Science - ICCS 2021, pages 736-749, Cham. Springer International Publishing.
294
+ Haipeng Sun, Junwei Bao, Youzheng Wu, and Xiaodong He. 2022. BORT: Back and denoising reconstruction for end-to-end task-oriented dialog. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 2156-2170, Seattle, United States. Association for Computational Linguistics.
295
+ William Yang Wang and Diyi Yang. 2015. That's so annoying!!!: A lexical and frame-semantic embedding based data augmentation approach to automatic categorization of annoying behaviors using #petpeeve tweets. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 2557-2563, Lisbon, Portugal. Association for Computational Linguistics.
296
+ Jason Wei and Kai Zou. 2019. EDA: Easy data augmentation techniques for boosting performance on text classification tasks. 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 6382-6388, Hong Kong, China. Association for Computational Linguistics.
297
+
298
+ Tsung-Hsien Wen, David Vandyke, Nikola Mrkšić, Milica Gašić, Lina M. Rojas-Barahona, Pei-Hao Su, Stefan Ultes, and Steve Young. 2017. A network-based end-to-end trainable task-oriented dialogue system. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, pages 438-449, Valencia, Spain. Association for Computational Linguistics.
299
+ Chenxi Whitehouse, Monojit Choudhury, and Alham Aji. 2023. LLM-powered data augmentation for enhanced cross-lingual performance. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 671–686, Singapore. Association for Computational Linguistics.
300
+ Chien-Sheng Wu, Steven C.H. Hoi, Richard Socher, and Caiming Xiong. 2020. TOD-BERT: Pre-trained natural language understanding for task-oriented dialogue. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 917-929, Online. Association for Computational Linguistics.
301
+ Chien-Sheng Wu, Andrea Madotto, Ehsan Hosseini-Asl, Caiming Xiong, Richard Socher, and Pascale Fung. 2019. Transferable multi-domain state generator for task-oriented dialogue systems. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 808-819, Florence, Italy. Association for Computational Linguistics.
302
+ Qingyang Wu, James Gung, Raphael Shu, and Yi Zhang. 2023. DiactTOD: Learning generalizable latent dialogue acts for controllable task-oriented dialogue systems. In Proceedings of the 24th Meeting of the Special Interest Group on Discourse and Dialogue, pages 255-267, Prague, Czechia. Association for Computational Linguistics.
303
+ Yunyi Yang, Yunhao Li, and Xiaojun Quan. 2021. Ubar: Towards fully end-to-end task-oriented dialog system with gpt-2. Proceedings of the AAAI Conference on Artificial Intelligence, 35(16):14230-14238.
304
+ Yichun Yin, Lifeng Shang, Xin Jiang, Xiao Chen, and Qun Liu. 2020. Dialog state tracking with reinforced data augmentation. Proceedings of the AAAI Conference on Artificial Intelligence, 34(05):9474-9481.
305
+ Jingqing Zhang, Yao Zhao, Mohammad Saleh, and Peter J. Liu. 2020a. Pegasus: Pre-training with extracted gap-sentences for abstractive summarization. In Proceedings of the 37th International Conference on Machine Learning, ICML'20. JMLR.org.
306
+ Yichi Zhang, Zhijian Ou, and Zhou Yu. 2020b. Task-oriented dialog systems that consider multiple appropriate responses under the same context. Proceedings of the AAAI Conference on Artificial Intelligence, 34(05):9604-9611.
307
+ Jeffrey Zhao, Raghav Gupta, Yuan Cao, Dian Yu, Mingqiu Wang, Harrison Lee, Abhinav Rastogi,
308
+
309
+ Izhak Shafran, and Yonghui Wu. 2022. Description-driven task-oriented dialog modeling. ArXiv, abs/2201.08904.
310
+ Jeffrey Zhao, Mahdis Mahdieh, Ye Zhang, Yuan Cao, and Yonghui Wu. 2021. Effective sequence-to-sequence dialogue state tracking. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7486-7493, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
311
+
312
+ # Appendix
313
+
314
+ # A LLM prompting
315
+
316
+ We initially construct a simplistic template prompt, without giving any in-context example paraphrases, that has the following form: "Paraphrase the following sentence twice. Maintain as much information as possible intact. The sentence to paraphrase is: {}". The "\{}" symbol denotes the placeholder for the utterance (not delexicalised) to be paraphrased. More elaborate templates were also tested (e.g. providing the LLM with the dialog history), such as "Your job is to augment the given utterance from a dialog between a user and an assistant. You will be given the dialog history as context. The user's utterances start with USER :, while the assistant's utterances with ASSISTANT .. Here is the dialog up to this point : $\{1\}$ . Paraphrase the following sentence twice. Maintain as much information as possible intact. The sentence to paraphrase is : $\{2\}$ ", where " $\{1\}"$ and " $\{2\}"$ denote the placeholders for the dialog history and current utterance respectively. During preliminary testing such templates did not provide a significant improvement, and as a result we opted for the more cost-efficient approach.
317
+
318
+ # B More Detailed Results
319
+
320
+ In this section we present the detailed results of all the experiments conducted, including the additional metrics that accompany each dataset. For MultiWOZ, we include the Inform and Success score along with BLEU score, as explained in Sub-sections 3.1. Similarly for the case of KVRET the Match, Success F1 and BLEU scores are reported. For each case, we first present the performance on the initial experiments where we select the 3 best performing DA methods followed by the results of these there methods in various other settings. From the results, we observe that the additional metrics reported tend to follow the trends of the main metric (Score), especially BLEU and Success.
321
+
322
+ <table><tr><td>DA type</td><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td rowspan="2">No DA</td><td>Full training set</td><td>95.40</td><td>80.70</td><td>17.00</td><td>105.1</td></tr><tr><td>10% training set</td><td>76.37</td><td>53.73</td><td>10.83</td><td>75.88</td></tr><tr><td rowspan="2">Word-level</td><td>Word2Vec replace</td><td>83.57</td><td>61.70</td><td>12.06</td><td>84.69</td></tr><tr><td>RoBERTa replace</td><td>81.57</td><td>55.70</td><td>11.48</td><td>80.11</td></tr><tr><td rowspan="4">Sentence-level</td><td>back-translation (FR)</td><td>80.97</td><td>58.83</td><td>11.41</td><td>81.31</td></tr><tr><td>PEGASUS paraphrase</td><td>83.33</td><td>60.87</td><td>11.06</td><td>83.16</td></tr><tr><td>Fragment rotation</td><td>83.17</td><td>61.37</td><td>12.33</td><td>84.59</td></tr><tr><td>LLM paraphrase</td><td>78.87</td><td>58.70</td><td>12.70</td><td>81.48</td></tr><tr><td rowspan="2">Dialog-level</td><td>Dialog Tree</td><td>78.83</td><td>57.23</td><td>11.90</td><td>79.94</td></tr><tr><td>Act-Response substitution</td><td>79.33</td><td>58.90</td><td>11.66</td><td>80.78</td></tr></table>
323
+
324
+ Table 3: MultiWOZ metrics, for all 8 DA methods, using $10\%$ of the original training dialogs, producing a single synthetic dialog from each original one (x2).
325
+
326
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>10% training set</td><td>76.37</td><td>53.73</td><td>10.83</td><td>75.88</td></tr><tr><td>Word2Vec replace</td><td>83.60</td><td>58.33</td><td>11.42</td><td>82.39</td></tr><tr><td>PEGASUS paraphrase</td><td>82.37</td><td>58.83</td><td>10.50</td><td>81.10</td></tr><tr><td>Fragment rotation</td><td>80.87</td><td>58.93</td><td>11.52</td><td>81.42</td></tr></table>
327
+
328
+ Table 4: MultiWOZ metrics, for the top 3 DA methods, using $10\%$ of the original training dialogs, producing two synthetic dialogs from each original one (x3).
329
+
330
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>10% training set</td><td>76.37</td><td>53.73</td><td>10.83</td><td>75.88</td></tr><tr><td>Word2Vec replace</td><td>83.67</td><td>54.67</td><td>10.45</td><td>79.62</td></tr><tr><td>PEGASUS paraphrase</td><td>82.93</td><td>58.07</td><td>9.73</td><td>80.23</td></tr><tr><td>Fragment rotation</td><td>81.73</td><td>57.47</td><td>10.10</td><td>79.70</td></tr></table>
331
+
332
+ Table 5: MultiWOZ metrics, for the top 3 DA methods, using $10\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5).
333
+
334
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>25% training set</td><td>88.00</td><td>69.73</td><td>13.65</td><td>92.52</td></tr><tr><td>Word2Vec replace</td><td>89.42</td><td>70.40</td><td>13.51</td><td>93.41</td></tr><tr><td>PEGASUS paraphrase</td><td>88.90</td><td>69.27</td><td>13.08</td><td>92.17</td></tr><tr><td>Fragment rotation</td><td>87.57</td><td>69.93</td><td>13.91</td><td>92.66</td></tr></table>
335
+
336
+ Table 6: MultiWOZ metrics, for the top 3 DA methods, using $25\%$ of the original training dialogs, producing a single synthetic dialog from each original one (x2).
337
+
338
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>25% training set</td><td>88.00</td><td>69.73</td><td>13.65</td><td>92.52</td></tr><tr><td>Word2Vec replace</td><td>89.77</td><td>70.33</td><td>13.13</td><td>93.18</td></tr><tr><td>PEGASUS paraphrase</td><td>89.00</td><td>71.03</td><td>12.37</td><td>92.38</td></tr><tr><td>Fragment rotation</td><td>88.17</td><td>69.60</td><td>13.18</td><td>92.06</td></tr></table>
339
+
340
+ Table 7: MultiWOZ metrics, for the top 3 DA methods, using $25\%$ of the original training dialogs, producing two synthetic dialogs from each original one (x3).
341
+
342
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>25% training set</td><td>88.00</td><td>69.73</td><td>13.65</td><td>92.52</td></tr><tr><td>Word2Vec replace</td><td>88.73</td><td>66.97</td><td>12.78</td><td>90.63</td></tr><tr><td>PEGASUS paraphrase</td><td>88.20</td><td>66.13</td><td>10.92</td><td>88.08</td></tr><tr><td>Fragment rotation</td><td>88.37</td><td>67.63</td><td>11.67</td><td>89.67</td></tr></table>
343
+
344
+ Table 8: MultiWOZ metrics, for the top 3 DA methods, using $25\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5).
345
+
346
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>2% training set</td><td>37.20</td><td>15.60</td><td>5.62</td><td>32.02</td></tr><tr><td>Word2Vec replace</td><td>57.87</td><td>7.13</td><td>1.95</td><td>34.45</td></tr><tr><td>PEGASUS paraphrase</td><td>73.33</td><td>14.20</td><td>2.82</td><td>46.59</td></tr><tr><td>Fragment rotation</td><td>62.40</td><td>12.10</td><td>3.23</td><td>40.53</td></tr></table>
347
+
348
+ Table 9: MultiWOZ metrics, for the top 3 DA methods, using $2\%$ of the original training dialogs, producing a single synthetic dialog from each original one (x2).
349
+
350
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>2% training set</td><td>37.20</td><td>15.60</td><td>5.62</td><td>32.02</td></tr><tr><td>Word2Vec replace</td><td>73.93</td><td>29.93</td><td>6.27</td><td>58.20</td></tr><tr><td>PEGASUS paraphrase</td><td>73.50</td><td>34.50</td><td>7.13</td><td>61.13</td></tr><tr><td>Fragment rotation</td><td>70.37</td><td>32.43</td><td>7.14</td><td>58.54</td></tr></table>
351
+
352
+ Table 10: MultiWOZ metrics, for the top 3 DA methods, using $2\%$ of the original training dialogs, producing two synthetic dialogs from each original one (x3).
353
+
354
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>2% training set</td><td>37.20</td><td>15.60</td><td>5.62</td><td>32.02</td></tr><tr><td>Word2Vec replace</td><td>75.17</td><td>37.03</td><td>7.38</td><td>63.48</td></tr><tr><td>PEGASUS paraphrase</td><td>75.50</td><td>41.70</td><td>7.60</td><td>66.20</td></tr><tr><td>Fragment rotation</td><td>71.83</td><td>39.03</td><td>7.25</td><td>62.68</td></tr></table>
355
+
356
+ Table 11: MultiWOZ metrics, for the top 3 DA methods, using $2\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5).
357
+
358
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>10% training set</td><td>28.37</td><td>13.72</td><td>8.61</td><td>29.65</td></tr><tr><td>Word2Vec replace</td><td>33.16</td><td>17.17</td><td>8.63</td><td>33.80</td></tr><tr><td>PEGASUS paraphrase</td><td>38.30</td><td>19.53</td><td>8.64</td><td>37.56</td></tr><tr><td>Fragment rotation</td><td>33.25</td><td>17.93</td><td>8.90</td><td>34.49</td></tr></table>
359
+
360
+ Table 12: MultiWOZ metrics, for the top 3 DA methods, using $10\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5) and leaving out the attraction domain.
361
+
362
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>10% training set</td><td>32.15</td><td>17.43</td><td>7.62</td><td>32.41</td></tr><tr><td>Word2Vec replace</td><td>36.21</td><td>22.17</td><td>7.77</td><td>36.95</td></tr><tr><td>PEGASUS paraphrase</td><td>40.69</td><td>26.06</td><td>7.97</td><td>41.35</td></tr><tr><td>Fragment rotation</td><td>37.06</td><td>24.62</td><td>8.26</td><td>39.10</td></tr></table>
363
+
364
+ Table 13: MultiWOZ metrics, for the top 3 DA methods, using $10\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5) and leaving out the hotel domain.
365
+
366
+ <table><tr><td>DA Method</td><td>Inform</td><td>Success</td><td>BLEU</td><td>Score</td></tr><tr><td>10% training set</td><td>28.37</td><td>13.65</td><td>7.17</td><td>28.19</td></tr><tr><td>Word2Vec replace</td><td>33.41</td><td>16.55</td><td>7.78</td><td>32.76</td></tr><tr><td>PEGASUS paraphrase</td><td>34.55</td><td>19.60</td><td>8.51</td><td>35.59</td></tr><tr><td>Fragment rotation</td><td>37.61</td><td>22.20</td><td>8.55</td><td>38.45</td></tr></table>
367
+
368
+ Table 14: MultiWOZ metrics, for the top 3 DA methods, using $10\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5) and leaving out the restaurant domain.
369
+
370
+ <table><tr><td>DA Type</td><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td rowspan="2">No DA</td><td>Full training set</td><td>81.58</td><td>81.67</td><td>20.86</td><td>102.48</td></tr><tr><td>5% training set</td><td>58.68</td><td>64.99</td><td>11.44</td><td>73.27</td></tr><tr><td rowspan="2">Word-level</td><td>Word2Vec replace</td><td>61.75</td><td>73.62</td><td>13.76</td><td>81.44</td></tr><tr><td>RoBERTa replace</td><td>61.05</td><td>73.75</td><td>13.27</td><td>80.67</td></tr><tr><td rowspan="4">Sentence-level</td><td>back-translation (FR)</td><td>60.00</td><td>72.39</td><td>11.64</td><td>77.83</td></tr><tr><td>PEGASUS paraphrase</td><td>56.49</td><td>69.81</td><td>12.63</td><td>75.78</td></tr><tr><td>Fragment rotation</td><td>64.04</td><td>73.71</td><td>13.89</td><td>82.76</td></tr><tr><td>LLM paraphrase</td><td>64.74</td><td>72.57</td><td>13.39</td><td>82.04</td></tr></table>
371
+
372
+ Table 15: KVRET metrics, for all 6 DA methods, using $5\%$ of the original training dialogs, producing a single synthetic dialog from each original one (x2).
373
+
374
+ <table><tr><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td>5% training set</td><td>58.68</td><td>64.99</td><td>11.44</td><td>73.27</td></tr><tr><td>Word2Vec replace</td><td>54.74</td><td>75.41</td><td>12.83</td><td>77.91</td></tr><tr><td>Fragment rotation</td><td>56.05</td><td>74.98</td><td>11.93</td><td>77.44</td></tr><tr><td>LLM paraphrase</td><td>57.89</td><td>71.87</td><td>10.82</td><td>75.70</td></tr></table>
375
+
376
+ Table 16: KVRET metrics, for the top 3 DA methods, using $5\%$ of the original training dialogs, producing two synthetic dialogs from each original one (x3).
377
+
378
+ <table><tr><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td>5% training set</td><td>58.68</td><td>64.99</td><td>11.44</td><td>73.27</td></tr><tr><td>Word2Vec replace</td><td>56.05</td><td>74.25</td><td>9.58</td><td>74.73</td></tr><tr><td>Fragment rotation</td><td>57.11</td><td>67.00</td><td>10.37</td><td>72.42</td></tr><tr><td>LLM paraphrase</td><td>53.16</td><td>74.10</td><td>11.35</td><td>74.97</td></tr></table>
379
+
380
+ Table 17: KVRET metrics, for the top 3 DA methods, using $5\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5).
381
+
382
+ <table><tr><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td>10% training set</td><td>74.21</td><td>76.69</td><td>16.70</td><td>92.16</td></tr><tr><td>Word2Vec replace</td><td>68.42</td><td>79.00</td><td>15.84</td><td>89.55</td></tr><tr><td>Fragment rotation</td><td>73.94</td><td>78.28</td><td>15.40</td><td>91.51</td></tr><tr><td>LLM paraphrase</td><td>74.47</td><td>77.42</td><td>15.96</td><td>91.91</td></tr></table>
383
+
384
+ Table 18: KVRET metrics, for the top 3 DA methods, using $10\%$ of the original training dialogs, producing a single synthetic dialog from each original one (x2).
385
+
386
+ <table><tr><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td>10% training set</td><td>74.21</td><td>76.69</td><td>16.70</td><td>92.16</td></tr><tr><td>Word2Vec replace</td><td>71.84</td><td>76.10</td><td>13.66</td><td>87.63</td></tr><tr><td>Fragment rotation</td><td>72.90</td><td>77.93</td><td>13.82</td><td>89.22</td></tr><tr><td>LLM paraphrase</td><td>73.94</td><td>79.48</td><td>13.81</td><td>90.53</td></tr></table>
387
+
388
+ Table 19: KVRET metrics, for the top 3 DA methods, using $10\%$ of the original training dialogs, producing two synthetic dialogs from each original one (x3).
389
+
390
+ <table><tr><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td>10% training set</td><td>74.21</td><td>76.69</td><td>16.70</td><td>92.16</td></tr><tr><td>Word2Vec replace</td><td>69.73</td><td>77.16</td><td>13.37</td><td>86.81</td></tr><tr><td>Fragment rotation</td><td>71.58</td><td>77.17</td><td>13.79</td><td>88.16</td></tr><tr><td>LLM paraphrase</td><td>72.10</td><td>75.20</td><td>11.41</td><td>85.06</td></tr></table>
391
+
392
+ Table 20: KVRET metrics, for the top 3 DA methods, using $10\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5).
393
+
394
+ <table><tr><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td>25% training set</td><td>78.94</td><td>80.25</td><td>18.79</td><td>98.38</td></tr><tr><td>Word2Vec replace</td><td>78.95</td><td>79.61</td><td>18.32</td><td>97.61</td></tr><tr><td>Fragment rotation</td><td>77.11</td><td>78.16</td><td>18.09</td><td>95.72</td></tr><tr><td>LLM paraphrase</td><td>80.00</td><td>80.38</td><td>16.54</td><td>96.72</td></tr></table>
395
+
396
+ Table 21: KVRET metrics, for the top 3 DA methods, using $25\%$ of the original training dialogs, producing a single synthetic dialog from each original one (x2).
397
+
398
+ <table><tr><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td>25% training set</td><td>78.94</td><td>80.25</td><td>18.79</td><td>98.38</td></tr><tr><td>Word2Vec replace</td><td>76.31</td><td>80.63</td><td>17.75</td><td>96.22</td></tr><tr><td>Fragment rotation</td><td>78.42</td><td>79.77</td><td>16.95</td><td>96.04</td></tr><tr><td>LLM paraphrase</td><td>78.69</td><td>78.94</td><td>16.34</td><td>95.15</td></tr></table>
399
+
400
+ Table 22: KVRET metrics, for the top 3 DA methods, using $25\%$ of the original training dialogs, producing two synthetic dialogs from each original one (x3).
401
+
402
+ <table><tr><td>DA Method</td><td>Match</td><td>Success F1</td><td>BLEU</td><td>Score</td></tr><tr><td>25% training set</td><td>78.94</td><td>80.25</td><td>18.79</td><td>98.38</td></tr><tr><td>Word2Vec replace</td><td>75.53</td><td>78.14</td><td>14.91</td><td>91.75</td></tr><tr><td>Fragment rotation</td><td>76.58</td><td>78.68</td><td>15.19</td><td>92.81</td></tr><tr><td>LLM paraphrase</td><td>80.53</td><td>79.22</td><td>13.84</td><td>93.72</td></tr></table>
403
+
404
+ Table 23: KVRET metrics, for the top 3 DA methods, using $25\%$ of the original training dialogs, producing four synthetic dialogs from each original one (x5).
405
+
406
+ # C Additional error comparisons
407
+
408
+ ![](images/1217628eb0cb9886746220208c967933cf8cb6d5f5eab25d443f0200f0528c8b.jpg)
409
+
410
+ ![](images/635569ebc1be7172c34a9649fa5774e3900afce106d4a9ebeb2d2be49e8dcf8f.jpg)
411
+ Figure 5: Error rates per MultiWOZ domain category using the PEGASUS DA method and having $25\%$ of the training data available. The upper and lower figure depict error rates when generating a single (x2) and four (x5) synthetic dialogs per instance respectively.
412
+
413
+ ![](images/2bfe9305fbb5d316e5d52eb48d20cae5f554595b900ec65acba7a593f78d4e43.jpg)
414
+
415
+ ![](images/2b14da67ae18e7cef184b4e2753cb69486df0a69936be92872ae1350d15b7949.jpg)
416
+ Figure 6: Error rates per MultiWOZ domain category using the fragment rotation DA method and having $25\%$ of the training data available. The upper and lower figure depict error rates when generating a single (x2) and four (x5) synthetic dialogs per instance respectively.
417
+
418
+ We follow the same procedure of Section 4.3 for the cases of PEGASUS and fragment rotation. Once again, we count the number of unsuccessful dialogs Success $= 0$ (i.e. the ToDS did not provide all the requested information or a valid recommendation), and divide by the number of dialogs belonging to each category, for the case where $25\%$ of the training dialogs of MultiWOZ was used. We focus on Success as it features greater variance compared to BLEU and Inform, which generally remains unaffected. As was the case with Word2Vec, DA using PEGASUS or fragment rotation to generate more that one synthetic dialog reduces the overall Success. Interestingly there are a few instances where using multiple synthetic dialogs managed to increase the performance on specific, stand-alone domain categories such as "tx, ho, re" for PEGASUS and "at, tr" for fragment rotation, but such results may vary from case to case.
419
+
420
+ # D Examples of synthetic and generated dialogs
421
+
422
+ In this section we present an example (Fig. 7) of the template matching performed by the dialog tree DA method (Subsection 2.3.1). In this case the $Cds$ of the first turn of pmul3825 matches the $Pds$ of mul0665's second turn. Similarly, pmul3825's $Nds$ matches mul0665's $Cds$ , thus setting mul0665's turn as the continuation of pmul3825. Repeating the process until reaching a "Leaf" node (turn), creates a new synthetic dialog.
423
+
424
+ Figures 9-16 depict a single delexicalised dialog (woz20572) after applying each of the DA methods, for the case of MultiWOZ. An example of the same dialog, that UBAR is trained on, without any DA is depicted in Figure 8.
425
+
426
+ ![](images/d4dfff3e2db9345d843374f73349e9f4d11cc6feeae66b1472c4332cb0428fce.jpg)
427
+ Figure 7: Two templates (from MultiWOZ dialogs pmul3825 and mul0665) are linked as they satisfy the dialog state conditions (shown in green and purple).
428
+
429
+ USER: i am looking for an expensive restaurant in the south.
430
+
431
+ SYSTEM: hi! we have [value_food], [value_food], [value_food], and [value_food] restaurant-s that fit the bill. do you have any preferences?
432
+
433
+ USER: i do n't have any preference.
434
+
435
+ SYSTEM: [value_name] is located in the [value_area] part of town and in the [value_price] price range.
436
+
437
+ USER:do you have a phone number for them?
438
+
439
+ SYSTEM: the number is [value_phone].
440
+
441
+ USER: have a good evening.
442
+
443
+ SYSTEM: have a good evening.
444
+
445
+ Figure 8: Dialog $woz20572$ of MultiWOZ, as used by Yang et al. (2021) for training UBAR, without any DA applied.
446
+
447
+ USER: i am look for an expensive restaurant in the south.
448
+
449
+ SYSTEM: hello! we have [value_food], [value_food], [value_food], and [value_food] restaurants that suited the legislation. do you have any preference?
450
+
451
+ USER: i do ca have any preferred.
452
+
453
+ SYSTEM: [value_name] is situated in the [value_area] integral part of village and in the [value_pricing] pricing ranging.
454
+
455
+ USER:do you have a telephone numberfor them?
456
+
457
+ SYSTEM: the number is [value_phone].
458
+
459
+ USER: have a great night.
460
+
461
+ SYSTEM: have a great night.
462
+
463
+ Figure 9: A synthetic dialog derived from $woz20572$ of MultiWOZ after applying our word substitution process via Word2Vec.
464
+
465
+ USER: i am searching for an expensive restaurant in the south.
466
+
467
+ SYSTEM: hello! we have [value_food], [value_food], [value_food], and [value_food] restaurants that fill the bill. do you have any recommendations?
468
+
469
+ USER: i do not have any preference
470
+
471
+ SYSTEM: [value_name] is located in the [value_area] side of city and in the [value_price] price zone.
472
+
473
+ USER:do you have a contact number for them?
474
+
475
+ SYSTEM: the phone is [value_phone].
476
+
477
+ USER:haveagreattime.
478
+
479
+ SYSTEM: have a great day.
480
+
481
+ Figure 10: A synthetic dialog derived from $woz20572$ of MultiWOZ after applying our word substitution process using RoBERTa.
482
+
483
+ USER: i am looking for a restaurant expensive in the south.
484
+
485
+ SYSTEM: hi! we have [value_food], [value_food], [value_food] and [value_food] restaurant-s that match your expectations. do you have any preferences?
486
+
487
+ USER: i have no preference.
488
+
489
+ SYSTEM: [value_name] is located in part [value_area] of the city and in the price range [value_price].
490
+
491
+ USER: do you have a phone number for them?
492
+
493
+ SYSTEM: the number is [value_phone].
494
+
495
+ USER: have a good evening.
496
+
497
+ SYSTEM: have a good evening.
498
+
499
+ Figure 11: A synthetic dialog derived from woz20572 of MultiWOZ after applying back-translation.
500
+
501
+ USER: i'm looking for an expensive restaurant in the south.
502
+
503
+ SYSTEM: do you prefer [value_food], [value_food], [value_food], and [value_food] restaurant-s?
504
+
505
+ USER: i do n't have a preference.
506
+
507
+ SYSTEM: the [value_name] is located in the [value_area] part of town in the [value_price] price range.
508
+
509
+ USER: do you have a phone number for them?
510
+
511
+ SYSTEM: the number is [value_phone].
512
+
513
+ USER: have a great evening.
514
+
515
+ SYSTEM: have a great evening.
516
+
517
+ Figure 12: A synthetic dialog derived from $woz20572$ of MultiWOZ after paraphrasing using PEGASUS.
518
+
519
+ USER: looking for an expensive restaurant in the south i.
520
+
521
+ SYSTEM: hi! have [value_food], [value_food], [value_food], and [value_food] restaurant -s that fit the bill we. you have any preferences.
522
+
523
+ USER: have any preference i.
524
+
525
+ SYSTEM: [value_name] located in the [value_area] part of town and in the [value_price] price range.
526
+
527
+ USER: you have a phone number for them.
528
+
529
+ SYSTEM: the number is [value_phone].
530
+
531
+ USER: a good evening have.
532
+
533
+ SYSTEM: a good evening have.
534
+
535
+ # Figure 13: A synthetic dialog derived from $woz20572$ of MultiWOZ after applying fragment rotation.
536
+
537
+ USER: my quest is to find a costly restaurant located in the south.
538
+
539
+ SYSTEM: greetings! we offer restaurant-s that serve [value_food], [value_food], [value_food], and [value_food] cuisine. do you have any specific preferences?
540
+
541
+ USER: i have no particular liking or inclination.
542
+
543
+ SYSTEM: [value_name] can be found in the [value_area]ern area of the city and falls within the higher price bracket.
544
+
545
+ USER: is there a phone number available for them?
546
+
547
+ SYSTEM: [value_phone] is the numerical sequence for the phone number.
548
+
549
+ USER: may your evening be enjoyable.
550
+
551
+ SYSTEM: may your evening be enjoyable.
552
+
553
+ # Figure 14: A synthetic dialog derived from $woz20572$ of MultiWOZ after paraphrasing using the GPT-3.5-turbo LLM.
554
+
555
+ USER: i am looking for an expensive restaurant in the south.
556
+
557
+ SYSTEM: we have some very nice restaurant-s, such as [value_name], offering [value_food] cuisine, [value_name], with [value_food], and the [value_name], with [value_food] fare. what sounds good to you today?
558
+
559
+ USER: i do n't have any preference.
560
+
561
+ SYSTEM: alright, shall i make a reservation for the [value_name] ?
562
+
563
+ USER:do you have a phone number for them?
564
+
565
+ SYSTEM: the number is [value_phone].
566
+
567
+ USER: have a good evening.
568
+
569
+ SYSTEM: have a good evening.
570
+
571
+ # Figure 15: A synthetic dialog derived from $woz20572$ of MultiWOZ after applying our modified MADA approach.
572
+
573
+ USER: i am looking for an expensive restaurant in the south.
574
+
575
+ SYSTEM: hi! we have [value_food], [value_food], [value_food], and [value_food]
576
+
577
+ restaurant -s that fit the bill . do you have any preferences ?
578
+
579
+ USER: i want to eat thai food.
580
+
581
+ SYSTEM: there are n't any [value_food] restaurant -s in that price range in the
582
+
583
+ [value_area].would you like to try something else?
584
+
585
+ USER: let me know about youritalian restaurant-s.
586
+
587
+ SYSTEM: okay, i found [value_choice] options for you : [value_name] and [value_name].
588
+
589
+ do either of those appeal to you?
590
+
591
+ USER: book the 1 in the centre a table for 2 at 13:45 on thursday
592
+
593
+ SYSTEM: i was able to book your table . your reference number is : [value-reference] .
594
+
595
+ USER: thank you . i will also need a hotel in that same area . please , no guest house !
596
+
597
+ SYSTEM: there are [value_choice] options for [value_type] in the [value_area]. there is
598
+
599
+ [value_choice] [valuestars] star, 13 star and 1 [valuestars] star option . which would
600
+
601
+ you prefer ?
602
+
603
+ USER: yes, please. for 2 nights.
604
+
605
+ SYSTEM: how many people will be staying with you and what day would you like to
606
+
607
+ reserve your [value_type] room?
608
+
609
+ USER: 2 for the same day . i need a taxi to commute between the 2 place -s to be sure it
610
+
611
+ arrives by the booked time . the contact number and car type ?
612
+
613
+ SYSTEM: your room is booked, ref# [value_reference], and a [value_car] will pick you
614
+
615
+ up and get you to [valuedestination] for that reservation . contact number
616
+
617
+ [value_phone].
618
+
619
+ USER: thanks, those are all i need for today.
620
+
621
+ SYSTEM: you are welcome. have a great day.
622
+
623
+ USER: you too have a great day
624
+
625
+ SYSTEM: thank you so much.
626
+
627
+ Figure 16: A synthetic dialog derived from the combination of $woz20572$ and $pmul4652$ of MultiWOZ using the dialog tree approach.
628
+
629
+ # Turn 1
630
+
631
+ User : can you help me find a hotel called a and b guest house?
632
+
633
+ GT : it is in the [value_area], and [value_price]. would you like to book a room?
634
+
635
+ No DA : i have [value_choice] [value_type] in the [value_area] and [value_name] in the [value_area].
636
+
637
+ Word2Vec : [value_name] is a [value_price] accommodation in the [value_area]. would you like me to book you a room?
638
+
639
+ RoBERTa : i have [value_name] located in the [value_area] area. it is [value_price]. would you like me to book you a room?
640
+
641
+ BT : [value_name] is a [value_price] [value_type] in the [value_area] with [value-stars] stars. would you like me to book you a room?
642
+
643
+ PEGASUS : it is a [value_price] [value_type] in the [value_area]. it is free to enter. would you like me to book it?
644
+
645
+ Rotate : it is a [value_price] [value-stars] star [value_type] in the [value_area] with free parking and internet. would you like me to book it?
646
+
647
+ LLM : [value_name] is a [value_type] in the [value_area]. it is [value_price] and has [value_price] admission. would you like me to book you a room?
648
+
649
+ Dialog tree : [value_name] is a [value_type] in the [value_area], it is [value_price] and has [value-stars] stars. would you like me to book it?
650
+
651
+ MADA : [value_name] is a [value_type] in the [value_area] area of town. it is [value_price] and has internet. would you like me to book you a room?
652
+
653
+ # Turn 2
654
+
655
+ User : can i get the address and phone number, please?
656
+
657
+ GT : the address is [value_address], postcode [value_postcode]. the phone number is [value_phone] . anything else ?
658
+
659
+ No DA : the address is [value_address] and the phone number is [value_phone].
660
+
661
+ Word2Vec : their address is [value_address] and their phone number is [value_phone].
662
+
663
+ RoBERTa : the address is [value_address]. is there anything else i can help you with?
664
+
665
+ BT : the address is [value_address]. is there anything else i can help you with?
666
+
667
+ PEGASUS : the address is [value_address]. the phone number is [value_phone].
668
+
669
+ Rotate : the address is [value_address]. the phone number is [value_phone].
670
+
671
+ LLM : the address is [value_address] and the phone number is [value_phone]. is there anything else i can help you with?
672
+
673
+ Dialog tree : the address is [value_address] and the phone number is [value_phone].
674
+
675
+ MADA : the address is [value_address]. the phone number is [value_phone]. is there anything else i can help you with?
676
+
677
+ # Turn 3
678
+
679
+ User : that is all. thank you.
680
+
681
+ GT :you are welcome have a great day.
682
+
683
+ No DA :you are welcome. goodbye.
684
+
685
+ Word2Vec : thank you goodbye
686
+
687
+ RoBERTa : you are welcome. have a great day!
688
+
689
+ BT :you are welcome.have a great day!
690
+
691
+ PEGASUS :you are welcome.goodbye.
692
+
693
+ Rotate :you are welcome.have a great day.goodbye.
694
+
695
+ LLM : thank you for using our system today!
696
+
697
+ Dialog tree : you are welcome, goodbye.
698
+
699
+ MADA : thank you goodbye
700
+
701
+ Figure 17: Dialog $sng01386$ of MultiWOZ along with the generated responses using all the DA methods described. The models where trained using $10\%$ of the training data and the augmentation level is $\mathbf{x2}$ . "GT" stands for ground truth while "BT" for back-translation.
702
+
703
+ ```txt
704
+ Turn 0
705
+ User : can you help me find a hotel called a and b guest house?
706
+ GT : it is in the [value_area] , and [value_price] . would you like to book a room ?
707
+ No DA : i have [value_choice] [value_type] in the [value_area] and [value_name] in the [value_area].
708
+ Word2Vec x2 : [value_name] is a [value_price] accommodation in the [value_area]. would you like me to book you a room?
709
+ Word2Vec x5 : it is a [value_price] [value_type] in the [value_area]. would you like me to book it?
710
+ PEGASUS x2 : it is a [value_price] [value_type] in the [value_area]. it is free to enter. would you like me to book it?
711
+ PEGASUS x5 : they are a [value_price] [value_type] in the [value_area]. would you like to make a reservation?
712
+ Rotate x2 : it is a [value_price] [value-stars] star [value_type] in the [value_area] with free parking and internet. would you like me to book it?
713
+ Rotate x5 : happy to help! that is a [value_type] in the [value_area] and is considered [value_price]. would you like to make a reservation?
714
+ Turn 1
715
+ User : can i get the address and phone number, please?
716
+ GT : the address is [value_address], postcode [value_postcode]. the phone number is [value_phone]. anything else ?
717
+ No DA : the address is [value_address] and the phone number is [value_phone].
718
+ Word2Vec x2 : their address is [value_address] and their phone number is [value_phone].
719
+ Word2Vec x5 : their address is [value_address] and their phone number is [value_phone].
720
+ PEGASUS x2 : the address is [value_address]. the phone number is [value_phone].
721
+ PEGASUS x5 : the address is [value_address] and the phone number is [value_phone].
722
+ Rotate x2 : the address is [value_address]. the phone number is [value_phone].
723
+ Rotate x5 : their phone number is [value_phone] and their address is [value_address].
724
+ Turn 2
725
+ User : that is all. thank you.
726
+ GT : you are welcome have a great day .
727
+ No DA : you are welcome. goodbye.
728
+ Word2Vec x2 : thank you goodbye
729
+ Word2Vec x5 : you are welcome, goodbye.
730
+ PEGASUS x2 : you are welcome. goodbye.
731
+ PEGASUS x5 : you are welcome, goodbye.
732
+ Rotate x2 : you are welcome. have a great day. goodbye.
733
+ Rotate x5 : you thank.
734
+ ```
735
+
736
+ Figure 18: Dialog $sng01386$ of MultiWOZ along with the generated responses using the 3 best performing DA methods and $10\%$ of the available training dialogs. The figure depicts 2 responses per model (for x2 and x5 the amount of training data). "GT" stands for ground truth.
2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ee2971f1e48c2a92ddcc8e576d267d8fd606c6987d62a633bc13b3f084a6a3c
3
+ size 1043101
2024/Comparing Data Augmentation Methods for End-to-End Task-Oriented Dialog Systems/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Competition-Level Problems are Effective LLM Evaluators/65598a40-492c-43ff-8fa3-bd8222139986_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Competition-Level Problems are Effective LLM Evaluators/65598a40-492c-43ff-8fa3-bd8222139986_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Competition-Level Problems are Effective LLM Evaluators/65598a40-492c-43ff-8fa3-bd8222139986_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:930b96787a85babac8594578d70d89ce9e9d67c5c8358aa8fade01aa5cb0a85a
3
+ size 1862947
2024/Competition-Level Problems are Effective LLM Evaluators/full.md ADDED
@@ -0,0 +1,394 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Competition-Level Problems are Effective LLM Evaluators
2
+
3
+ Yiming Huang $^{1*†}$ , Zhenghao Lin $^{2*†}$ , Xiao Liu $^{1‡}$ , Yeyun Gong $^{1‡}$ , Shuai Lu $^{1}$ , Fangyu Lei, Yaobo Liang $^{1}$ , Yelong Shen $^{3}$ , Chen Lin $^{2‡}$ , Nan Duan $^{1}$ , Weizhu Chen $^{3‡}$
4
+
5
+ <sup>1</sup> Microsoft Research Asia, <sup>2</sup> Xiamen University, <sup>3</sup> Microsoft Azure AI {xiaoliu2,yegong, wzchen}@microsoft.com, chenlin@xmu.edu.cn
6
+
7
+ # Abstract
8
+
9
+ Large language models (LLMs) have demonstrated impressive reasoning capabilities, yet there is ongoing debate about these abilities and the potential data contamination problem recently. This paper aims to evaluate the reasoning capacities of LLMs, specifically in solving recent competition-level programming problems in Codeforces, which are expert-crafted and unique, requiring deep understanding and robust reasoning skills. We first provide a comprehensive evaluation of GPT-4's perceived zero-shot performance on this task, considering various aspects such as problems' release time, difficulties, and types of errors encountered. Surprisingly, the perceived performance of GPT-4 has experienced a cliff like decline in problems after September 2021 consistently across all the difficulties and types of problems, which shows the potential data contamination, as well as the challenges for any existing LLM to solve unseen complex reasoning problems. We further explore various approaches such as fine-tuning, Chain-of-Thought prompting and problem description simplification. Unfortunately, none of them is able to consistently mitigate the challenges. Through our work, we emphasize the importance of this excellent data source for assessing the genuine reasoning capabilities of LLMs, and foster the development of LLMs with stronger reasoning abilities and better generalization in the future.
10
+
11
+ # 1 Introduction
12
+
13
+ The rise of LLMs has generated significant interest in the artificial intelligence community. These models, notably GPT-4 (OpenAI, 2023), have displayed impressive reasoning capabilities that are being harnessed in various fields (Bubeck et al., 2023). However, questions<sup>1</sup> have been raised about
14
+
15
+ ![](images/c898745c792e916869e3fca693637c97fa7b5cccebac65adc115573d3bfbb57d.jpg)
16
+ Figure 1: The perceived zero-shot performance of GPT-4 sees a sharp decline on problems of varying difficulties (D1, D2 and D3 means easy, medium and difficult, respectively) in Codeforces after September 2021.
17
+
18
+ how to accurately evaluate the reasoning abilities of LLMs and the extent of data contamination issues (Mialon et al., 2023; Zhou et al., 2023).
19
+
20
+ Regarding these issues, our study aims to assess the reasoning capabilities of LLMs through their ability to generate algorithms for solving competition-level programming problems. These questions are meticulously crafted by experts to form rigorous competitions. They possess high quality, are unique, and exhibit excellent discriminative ability. The testing cases are also meticulously prepared. This necessitates that LLMs deduce the solution from the presented scenario, which requires a thorough understanding of algorithms, combined reasoning and coding skills, and strong problem-solving abilities. These problems thus present a significant challenge to both human coders and LLMs. Consequently, competition-level programming problems serve as effective tools for evaluating the two issues previously discussed: they assess the reasoning abilities of LLMs and, due to the strict problem selection process in competitions, reduce the likelihood of data contamination.
21
+
22
+ tion in new problems.
23
+
24
+ Our research provides an in-depth analysis of the zero-shot performances of GPT-4 and other code LLMs on competition-level programming problems in Codeforces, considering factors such as release time, problem difficulty, and the types of errors encountered. The main insights of our study include: (1) GPT-4 performs significantly worse on programming problems released after September 2021, casting doubt on its actual reasoning abilities. (2) GPT-4 shows limited capability to solve difficult problems, indicating potential weaknesses in complex problem-solving. (3) GPT-4 struggles with the first test case, suggesting errors may stem from its understanding of the problem at hand. (4) The related phenomenon can be also observed in other LLMs, indicating that insufficient reasoning ability may be a common problem.
25
+
26
+ To explore possible ways to enhance the zero-shot performances of these LLMs on competition-level programming problems, we investigate several methods to improve performance on unseen problems. These methods include supervised fine-tuning with code-specific LLMs, Chain-of-Thought prompting (Wei et al., 2022), and problem statement simplification. Specifically, we fine-tuned CodeLlama(Rozière et al., 2023) and DeepSeek-Coder(AI, 2023), which are specialized language models designed to handle programming-related tasks. However, none of these methods consistently mitigated the issue or resulted in noticeable performance improvements, particularly for more difficult problems. This finding indicates that difficult and unseen programming problems are effective evaluators of LLMs.
27
+
28
+ Overall, the primary contributions of this study lie in proposing and validating that recent competition-level programming problems serve as an excellent data source for assessing the genuine reasoning capabilities of LLMs. We aim to foster further research in this field by innovating new approaches to address the challenge of complex reasoning problems in LLMs and by establishing reliable evaluation benchmarks for LLMs that minimize the risk of data contamination.
29
+
30
+ # 2 Problem Setup
31
+
32
+ # 2.1 Competition-level Programming
33
+
34
+ Competition-level programming presents a unique arena for testing and developing the reasoning abilities of AI models. In competitive programming, a
35
+
36
+ problem typically consists of a narrative that sets the context, which models need to understand and convert into an algorithmic problem. The challenge lies in comprehending the narrative, identifying the underlying algorithmic issues, and implementing an efficient solution in programming languages such as $\mathrm{C + + }$ and Java. Accepted programs must satisfy stringent testing conditions, including producing outputs that exactly match with test cases, executing within memory limits, and terminating within time constraints. In contrast to prior works (Chen et al., 2021a; Austin et al., 2021; Cassano et al., 2023) focusing on basic coding abilities, competition-level programming problems require advanced reasoning and mathematical modeling skills, essential for AI.
37
+
38
+ Unlike the previous works that focused on LeetCode $^{2}$ (Bubeck et al., 2023; Shen et al., 2023; Sakib et al., 2023), we follow AlphaCode (Li et al., 2022) and choose Codeforces $^{3}$ . Codeforces is universally acknowledged by competitors and enthusiasts in the International Collegiate Programming Competition $^{4}$ (ICPC) and the International Olympiad in Informatics $^{5}$ (IOI) as a popular and suitable platform for developing abilities for algorithm contests. The regular contests hosted on this platform are crafted by human experts, and contain plenty of intricate programming problems and contests of high quality. These contests come with comprehensive and robust test cases and exhibit a low degree of problem overlap. The unique nature of these contest problems makes it highly unlikely to find similar content on the internet before the competition concludes. As a result, utilizing specific time-segmented datasets, like those from contests conducted post the introduction of LLMs, serves as an effective strategy to prevent data contamination (Zhou et al., 2023).
39
+
40
+ Codeforces employs the Elo rating system to rank its users and problems, categorizing all problems into 28 distinct difficulties, ranging from 800 to 3500. Compared to commonly utilized metrics such as the ratio of accepted submissions or users, this difficulty rating mechanism is more suitable as it is based on the ranking and performance of the participants during the competition.[7]
41
+
42
+ 2https://leetcode.com/
43
+ <sup>3</sup>https://codeforces.com/
44
+ 4https://icpc.global/
45
+ <sup>5</sup>https://ioinformatics.org/
46
+ $^{6}$ https://codeforces.com/blog/entry/102
47
+ <sup>7</sup>https://codeforces.com/blog/entry/62865
48
+
49
+ ![](images/6e5e128a147f97ac27dd09c08e6653c4086034e7b0fb786115cbeafe9d82c01f.jpg)
50
+ Figure 2: The figure depicts the problem statement (left), comprising a problem set in a narrative context for participants to decipher, detailed input and output format specifications, and one or more example input-output pairs. In some cases, additional notes may be provided to assist competitors in understanding these example tests. This information is fed into the LLM, aiming to generate relevant code (right). The generated code is then submitted to an online judge for correctness evaluation.
51
+
52
+ Hence, it is not subject to inaccuracies stemming from temporal changes, repeated submissions, plagiarism, and other potential distortions.
53
+
54
+ # 2.2 Problem Definition
55
+
56
+ Figure 2 presents an example of the problem statement $\pi$ . The input of LLM is instantiated with the problem statement $\pi$ and a prompt $\rho$ (like $\rho_{1}$ in Table 8). The LLM $\Gamma$ takes the input to generate the code as $\alpha = \Gamma (\rho (\pi))$ . The generated code $\alpha$ is then evaluated by an online judge (OJ). The evaluation process can be summarized in the following equation:
57
+
58
+ $$
59
+ \mathrm {O J} (\alpha) = \mathrm {O J} (\Gamma (\rho (\pi))) \in \{\mathrm {A C}, \mathrm {W A}, \mathrm {C E}, \dots \}
60
+ $$
61
+
62
+ In this equation, $\Gamma (\rho (\pi))$ denotes the code generated by LLM with the prompt $\rho$ . The OJ platform then rigorously assesses the code for its correctness, computational efficiency, and adherence to specified input/output formats. With an extensive testing mechanism, the platform employs a wide range of test cases and hidden scenarios to ensure the code's robustness across diverse scenarios. The platform provides a spectrum of outcomes, $\mathrm{OJ}(\Gamma (\rho (\pi)))$ , offering a holistic evaluation of the code's performance. This includes results such as Accepted
63
+
64
+ (AC), Wrong Answer (WA), and Compilation Error (CE), among others.
65
+
66
+ # 2.3 Dataset Collection
67
+
68
+ The dataset is compiled from the Codeforces website, extracting all publicly available problem statements from completed contests spanning February 2010 through November 2023. For simplicity, problems requiring interaction, featuring non-standard input/output formats, or incompatible with C++ submission are excluded. For detailed explanations, see Appendix B.
69
+
70
+ The analysis is confined to problems with difficulty levels ranging from 800 to 2400. Based on their difficulty levels, the dataset is divided into three subsets: D1 (800-1100 difficulty, 1683 problems), D2 (1200-1600 difficulty, 1821 problems), and D3 (1700-2400 difficulty, 1453 problems). These problems encompass more than 20 distinct categories of algorithms, as illustrated in Table 7. This diversity in problem types further enhances the comprehensiveness of the dataset and enables a comprehensive assessment of GPT-4's problem-solving abilities across a wide range of competition-level programming problems.
71
+
72
+ <table><tr><td rowspan="2">Metric</td><td colspan="3">D1</td><td colspan="3">D2</td><td colspan="3">D3</td></tr><tr><td>Time1</td><td>Time2</td><td>Δ</td><td>Time1</td><td>Time2</td><td>Δ</td><td>Time1</td><td>Time2</td><td>Δ</td></tr><tr><td>ACC#G</td><td>81.42%</td><td>11.73%</td><td>-69.69%</td><td>43.72%</td><td>0.00%</td><td>-43.72%</td><td>11.41%</td><td>0.00%</td><td>-11.41%</td></tr><tr><td>pass@1</td><td>78.11%</td><td>10.54%</td><td>-67.57%</td><td>42.38%</td><td>0.61%</td><td>-41.77%</td><td>9.45%</td><td>0.18%</td><td>-9.27%</td></tr><tr><td>ACC1#1</td><td>78.05%</td><td>9.38%</td><td>-68.68%</td><td>43.37%</td><td>0.00%</td><td>-43.37%</td><td>8.48%</td><td>0.00%</td><td>-8.48%</td></tr><tr><td>ACC1#5</td><td>94.03%</td><td>20.09%</td><td>-73.94%</td><td>69.02%</td><td>3.06%</td><td>-65.96%</td><td>21.24%</td><td>0.88%</td><td>-20.36%</td></tr><tr><td>ACC2#5</td><td>88.34%</td><td>11.83%</td><td>-76.51%</td><td>54.41%</td><td>0.00%</td><td>-54.41%</td><td>12.36%</td><td>0.00%</td><td>-12.36%</td></tr><tr><td>ACC3#5</td><td>81.82%</td><td>9.38%</td><td>-72.44%</td><td>42.42%</td><td>0.00%</td><td>-42.42%</td><td>7.51%</td><td>0.00%</td><td>-7.51%</td></tr></table>
73
+
74
+ Table 1: Performance of GPT-4 on different groups of problems: Time1 is the problems released from October 2010 to September 2021, and Time2 is the problems released from October 2021 to November 2023.
75
+
76
+ <table><tr><td>Metric</td><td>Definition</td></tr><tr><td>ACC#G</td><td>Proportion of accepted solutions using greedy sampling (temperature t = 0).</td></tr><tr><td>ACC#GN</td><td>The number of accepted solutions using greedy sampling (temperature t = 0) within the sliding window.</td></tr><tr><td>ACCK#n</td><td>Proportion of problems with k or more accepted solution with top-p samplings (t = 0.7, p = 0.95) for n times.</td></tr><tr><td>pass@k</td><td>Estimated proportion of problems with at least one accepted solution.</td></tr></table>
77
+
78
+ Table 2: Definitions of evaluation metrics.
79
+
80
+ # 2.4 Experiment Details
81
+
82
+ In Codeforces, each problem belongs to a contest. Once the contest concludes, the problems are disclosed and become publicly summtable. Therefore, we submit the solutions to the contests that have concluded for evaluation.
83
+
84
+ To evaluate the results, we employ ACC#G, ACC#GN, $\mathrm{ACC}k\# n$ and pass@ $k$ as defined in Table 2. Specifically, for $\mathrm{ACC}k\# n$ metric, we consider two settings: (1) $k = n = 1$ and (2) $k\in \{1,2,3\}$ with $n = 5$ . Following Codex (Chen et al., 2021b), pass@ $k$ is computed as
85
+
86
+ $$
87
+ \operatorname {p a s s} @ k := \underset {\text {P r o b l e m s}} {\mathbb {E}} \left[ 1 - \frac {\binom {n - c} {k}}{\binom {n} {k}} \right]
88
+ $$
89
+
90
+ where $n$ is defined as the total number of generated samples per problem used for evaluation, and $c$ represents the count of correct samples out of $n$ that have successfully passed the unit tests. Here we use $k = 1$ and $n = 5$ for pass@ $k$ .
91
+
92
+ In our experiment, we follow the zero-shot setting. To select an appropriate prompt, we conduct preliminary experiments with three prompts, $\rho_{1},\rho_{2}$ and $\rho_{3}$ , as listed in Table 8, using two subsets of D1 problems: one from February to December 2010 and the other from January to October 2023, each comprising approximately 100 problems. The standard deviations are 0.015 and 0.018, respectively, indicating consistent performance. Therefore, we
93
+
94
+ choose $\rho_{1}$ as the prompt in the subsequent experiments. Furthermore, we employ a sliding window approach for all temporal analyses to smooth the data, addressing the sporadic release schedule of the problems. This ensures a sufficient number of test problems at each time point, using a window size of 51 (25 before and 25 after the time point).
95
+
96
+ # 3 Insights and Implications
97
+
98
+ # 3.1 Faltering on Unseen Problems
99
+
100
+ In this section, we delve into a temporal analysis of GPT-4 (gpt-4-0613)'s performance on programming problems. Figure 1 illustrates GPT-4's performance using the ACC#G metric. On problems released prior to September 2021, GPT-4 exhibits minor fluctuations at different levels across problems of varying difficulty. However, for problems released after September 2021, a significant deviation from the normal fluctuation range is observed. Interestingly, this timing coincides with the cutoff date for the GPT-4 training data as announced by OpenAI $^{8}$ . We then calculate the average performance on problems before and after September 2021, as shown in Table 1. On D1 problems, GPT-4's ACC#G plummets from $81.42\%$ to $11.73\%$ , marking a stark decrease of $69.69\%$ . Even more strikingly, the ACC#G drops to $0.00\%$ on both D2 and D3 problems, from $43.72\%$ and $11.41\%$ , respectively. To validate the reliability of the conclusion, we also calculate the pass@1 metric, which exhibits a similar trend. This observation raises thought-provoking questions about the severity of the drop and the correlation between the data cutoff date and the performance decline.
101
+
102
+ To explore the model's potential to generate correct solutions, we perform random sampling multiple times and calculate the pass rate. The average pass rate are shown in Table 1. As observed, multiple samplings can enhance the chances of gen
103
+
104
+ ![](images/261d909da0554d203e3101f67eb91f919981d9481cc825c12d2eecedabc9b1e5.jpg)
105
+ Figure 3: Random sampling enhances the probability of generating correct solutions on previously encountered problems, but offers no assistance for unseen problems.
106
+
107
+ erating a correct solution. For instance, on the unseen simple D1 problems, ACC1#5 improved by $10.71\%$ compared to ACC1#1. However, across all problems, the performance gap before and after the cut-off date is more pronounced for ACC1#5 than for both ACC1#1 and ACC#G. Figure 3 depicts the performance on D2 problems over time. A notable decline in performance metrics is observed around September 2021. This observation underscores the challenges that LLMs, including the advanced GPT-4, face in addressing unseen programming problems without similar pretraining data.
108
+
109
+ The observed decline in performance on problems outside the model's training range may stem from limitations in reasoning and generalization. As highlighted by Yadlowsky et al. (2023), when confronted with problems beyond their pretraining data, transformer models exhibit various failure modes and their generalization abilities deteriorate, even for simple problems. Similarly, Lu et al. (2023) suggest that the exceptional abilities of large language models primarily stem from in-context learning, and do not necessarily reflect the emergence of reasoning abilities.
110
+
111
+ The observed performance drop on unseen problems raises serious questions about GPT-4's intrinsic reasoning and generalization capabilities. This suggests a potential over-reliance on pattern recognition and reproduction from training, as opposed to grasping underlying principles and applying them to novel problems. This observation aligns with recent debates on large models' data memorization tendencies (Carlini et al., 2023; Yang et al., 2023). Therefore, future evaluations should
112
+
113
+ ![](images/0a666f81b79ea05c0ddaaf870be35a217b2dc7dda542d974db2090d7b4a9b05d.jpg)
114
+ Figure 4: For problems released before September 2021, GPT-4's ACC#G showed a negative linear correlation with difficulty, followed by consistently poor performance afterwards.
115
+
116
+ prioritize the minimization of overlap between testing and training data to accurately assess a model's reasoning abilities, rather than simply its capacity for memorization. Furthermore, it's crucial to explore methods that enhance model generalization and reduce reliance on pre-training data.
117
+
118
+ # 3.2 Limited Ability to Solve Difficult Problems
119
+
120
+ This section provides an analysis of performance in relation to the problem difficulty. The results of ACC#G for problems with different difficulties are reported for two distinct periods: from October 2010 to September 2021, and from October 2021 to November 2023, as illustrated in Figure 4.
121
+
122
+ For the results from October 2010 to September 2021, we calculate Pearson correlation coefficient $(r = -0.97)$ and the Kendall rank correlation coefficient $(\tau = -0.88)$ , which indicate strong linear correlations. Notably, when the difficulty level reaches 2400 (indicating greater challenge than approximately $57\%$ of the problems on Codeforces), the ACC#G drops to zero. However, from October 2021 to November 2023, ACC#G shows a dramatic decrease across all difficulty levels.
123
+
124
+ These findings reveal a significant limitation in the ability of GPT-4 to handle extremely complex problems. Despite its vast knowledge on code and algorithms, GPT-4 lacks of the competence in solving very challenging problems, particularly those with higher difficulty levels, even in the context of previously encountered problems. This indicates a potential area for further improvement and devel
125
+
126
+ ![](images/26ec71bd7de7b0b192d70c4586111c0a695746464fc56e582d81bc710d432786.jpg)
127
+ Figure 5: Error categories in GPT-4's solutions on problems released from 2010 to 2023.
128
+
129
+ opment in future iterations of the model.
130
+
131
+ # 3.3 Struggling with The First Test Case
132
+
133
+ In this section, we gather and analyze the errors returned by GPT-4 upon submission to the Codeforces website, as outlined in Table 6. The most common error is "Wrong answer on test 1", which on average accounts for $70\%$ of the observed errors. Test 1 is the first test case, which almost corresponds to or properly includes the example test case provided in the problem statement. This suggests that the model often struggles at the very beginning of problem-solving, possibly due to difficulties in understanding the problem's requirements or generating a correct solution based on the given test case. As depicted in Figure 5, there is a significant increase in the proportion of "Wrong answer on test 1" errors for problems released between 2021 and 2023. This suggests that GPT-4 is more likely to face challenges in understanding and reasoning during at the onset of tackling unseen problems.
134
+
135
+ Other types of errors account for a smaller proportion, with an average of $10\%$ . They have shown little variation over time. This indicates that GPT-4 demonstrates strong fundamental code-writing capabilities of generating high-quality code.
136
+
137
+ # 3.4 Similar Phenomenon of Other Code LLMs
138
+
139
+ We investigate whether the perceived performance degradation on unseen programming problems is observed for other popular code LLMs, such as
140
+
141
+ ![](images/172f47cc4b63ad6b4b323e30f4d68e9fafa6c2e9809ae3c4804e98c24acef773.jpg)
142
+ Figure 6: ACC#GN of CodeLlama and DeepSeekCoder on D1 problems.
143
+
144
+ <table><tr><td>Problem Release Date</td><td>CodeLlama</td><td>DeepSeek-Coder</td></tr><tr><td>Before 2023.3</td><td>10.30%</td><td>32.74%</td></tr><tr><td>After 2023.3</td><td>4.52% (-5.78%)</td><td>9.03% (-23.71%)</td></tr></table>
145
+
146
+ Table 3: Comparison of ACC#G between CodeLlama and DeepSeek-Coder on D1 problems before and after March 2023.
147
+
148
+ CodeLlama-34B-Instruct (Rozière et al., 2023) and DeepSeek-Coder-33B-Instruct (AI, 2023).
149
+
150
+ We conduct tests on CodeLlama and DeepSeek-Coder using D1 problems, following the settings in §2.3, and the results are shown in Figure 6. The experimental results indicate that CodeLlama consistently underperforms compared to DeepSeek-Coder on D1 problems. Furthermore, the performance of DeepSeek-Coder on D1 problems has been declining with the progression of the problem release date. The ACC#GN of DeepSeek-Coder has declined to a level that is on par with CodeLlama when dealing with newly released problems, as highlighted in the red area of Figure 6.
151
+
152
+ To precisely and intuitively detect this phenomenon, we calculate the ACC#G of CodeLlama and DeepSeek-Coder on D1 problems, both before and after March 2023, and present the results in Table 3. The results reveal a significant difference in the average accuracy of CodeLlama and DeepSeek-Coder before and after March 2023. Regarding the magnitude of the decrease, DeepSeek-Coder, which previously exhibited superior performance, demonstrates a more pronounced decline, with acceptance rates falling below $10\%$ after March 2023. Considering the release dates of CodeLlama and DeepSeek-Coder, we speculate that most of the programming problems after March 2023 are novel to them, which suggests that they also not be able to perform well on unseen programming problems like GPT4 does. This finding indicates that a fun
153
+
154
+ ![](images/ff73e55a8ec67109ef7ede637fe54cfabd04827b780cdca40b785f9621dfd994.jpg)
155
+ Figure 7: Comparison of ACC#GN for GPT-4 and DeepSeek-Coder on D1 problems after 2020.
156
+
157
+ <table><tr><td>Model</td><td>2020.1-2021.9</td><td>2021.9-2023.10</td></tr><tr><td>GPT-4</td><td>73.19% (+50.52%)</td><td>11.53% (-0.97%)</td></tr><tr><td>DeepSeek-Coder</td><td>22.67%</td><td>12.50%</td></tr></table>
158
+
159
+ Table 4: Comparison of ACC#G between GPT-4 and DeepSeek-Coder over time intervals, on D1 problems.
160
+
161
+ damental limitation of current code LLMs in generalizing effectively to complex reasoning tasks.
162
+
163
+ # 3.5 Evaluation Hallucination of LLMs
164
+
165
+ To further analyze the phenomenon, we compare GPT-4 with DeepSeek-Coder on D1 problems as shown in Figure 7 and Table 4.
166
+
167
+ It is noteworthy that while GPT-4 surpasses DeepSeek-Coder in terms of performance on problems that were released prior to September 2021, an unexpected observation is that DeepSeek-Coder exhibits a performance that is on par with GPT-4 when it comes to tackling problems that were released after September 2021. Considering the previous work (Yang et al., 2023; Zhou et al., 2023), although GPT-4 may perform particularly well on some previously seen problems due to its powerful capacity, it cannot be well generalized on unseen programming problems, and its performance is not significantly different from DeepSeek-Coder, which is specifically trained for code. This phenomenon merits attention, which is termed as "evaluation hallucination".
168
+
169
+ Hence, a more equitable evaluation strategy would be to select evaluation sets that all the models have not previously encountered. However, finding such data adhering to stringent conditions is challenging, as LLMs are typically pre-trained on extensive corpora containing diverse content, leading to the potential issue of data contamination. Therefore, if we could devote more attention to the data source and timeline of the evaluation sets, such
170
+
171
+ ![](images/e82d3598f9421184d99cc101d9096f4644b78171a76c1faddf5c27a15deed8e4.jpg)
172
+ Figure 8: Comparison of ACC#GN for CodeLlama on D1 problems before and after fine-tuning.
173
+
174
+ ![](images/42ab4d656c5eb76deabe0fa4a636030dd8d91f4fa002b3156691c5321008d762.jpg)
175
+ Figure 9: Comparison of ACC#GN on D1 problems before and after fine-tuning DeepSeek-Coder.
176
+
177
+ as the problems in Codeforces, it could potentially mitigate the effects of evaluation hallucination.
178
+
179
+ # 4 One Step Forward
180
+
181
+ In this section, we explore some approaches to mitigate the poor performance on unseen problems.
182
+
183
+ # 4.1 Fine-tuning
184
+
185
+ Fine-tuning is a commonly used method to improve performance on specific downstream tasks. In this study, we employ the Description2Code dataset (OpenAI and Sutskever, 2016) for fine-tuning. This dataset is compiled from three competitive programming websites: Codeforces, CodeChef, and HackerEarth, and contains problems published before 2017. CodeChef and HackerEarth, similar to Codeforces, host online coding competitions, and their problem sets are consistent in style and difficulty.
186
+
187
+ The dataset includes 2128 problems from Codeforces, 2435 problems from HackerEarth, and 3201 problems from CodeChef, totaling 7764 problems. However, due to some problems lacking
188
+
189
+ corresponding $\mathrm{C + + }$ solutions, we retained a total of 7000 problems for our study. Each problem has approximately $10\mathrm{C + + }$ solutions, resulting in 70,000 pairs of input-output sequences. These sequences are used for fine-tuning both CodeLlama and DeepSeek-Coder in a supervised manner.
190
+
191
+ As shown in Figure 8 and Figure 9, we compare the performances of the models before and after fine-tuning on D1 problems. We observe that, even after fine-tuning with the same type of data, CodeLlama and DeepSeek-Coder do not exhibit improved performance on recent problems, particularly those post-2022. The significant improvement in ACC#GN before 2017 may result from the models recalling relevant or identical programming problems, rather than mastering the underlying reasoning logic, leading to their inability to adapt well to new programming challenges. Therefore, simple fine-tuning does not effectively enhance the models' performance on new programming problems.
192
+
193
+ # 4.2 Chain-of-Thought Prompting
194
+
195
+ In this section, we explore the application of Chain-of-Thought (CoT) prompting (Wei et al., 2022) to competition-level programming problems. CoT involves prompting GPT-4 to generate an explanation of the algorithm before coding, denoted as $\rho_{\text{cot}}$ in Table 8. We conduct experiments on both the D1 and D3 problems released after October 2021. For D1 problems, employing CoT increases the ACC#G from $11.54\%$ to $16.21\%$ , demonstrating a noticeable improvement. However, for D3 problems, using CoT fails to yield any improvement, leaving the ACC#G at $0.00\%$ . This suggests that while CoT facilitates some improvement for simple D1 problems, it is ineffective for the complex reasoning challenges presented by D3 problems.
196
+
197
+ # 4.3 In-Context Learning
198
+
199
+ In this section, we enhance our experimental exploration into in-context learning by integrating both fixed demonstrations and retrieval-augmented demonstrations.
200
+
201
+ We use D1 problems released before September 2021 as source dataset and those released after as test data. First, we apply the same method as delineated in §4.2 to tackle the source data and validate them on Codeforces. We then retain accepted solutions, resulting in a collection of 1048 problem and CoT response pairs. A demonstration example is presented in Table 12.
202
+
203
+ <table><tr><td>N-shot Prompt</td><td>CoT</td><td>Retrieval</td><td>ACC#G</td></tr><tr><td>0-shot</td><td>No</td><td>No</td><td>11.54%</td></tr><tr><td>0-shot</td><td>Yes</td><td>No</td><td>16.21%</td></tr><tr><td>3-shot</td><td>Yes</td><td>No</td><td>13.73%</td></tr><tr><td>3-shot</td><td>Yes</td><td>Yes</td><td>16.48%</td></tr></table>
204
+
205
+ Table 5: Accuracy of GPT-4 on D1 problems released after September 2021 using different experimental setups
206
+
207
+ In the fixed demonstration experiment, we randomly select three problems to create 3-shot prompts. In the retrieval-augmented demonstration experiment, we first generate embeddings for the statements of the source and test data problems utilizing the OpenAI text-embedding-ada-002 model. We then identify the top three problems in the source data based on cosine similarity for each test problem, incorporating them as example demonstrations within the prompts.
208
+
209
+ The experimental results, summarized in Table 5, show that the retrieval-augmented 3-shot method's accuracy is nearly identical to the 0-shot CoT, while the fixed 3-shot approach is even less effective. This may be due to the highly specialized nature of competitive programming problems, which makes finding valuable references challenging. Furthermore, the model may struggle to acquire problem-solving skills through context learning alone, and inappropriate demonstrations might lead to adverse effects.
210
+
211
+ # 4.4 Problem Statement Simplification
212
+
213
+ Intuitively, even experienced programming competition competitors require time to understand problem statements. Therefore, we conduct a simple experiment to assess whether comprehension of problem statements hinders LLMs' ability to excel at programming problems. We first instruct GPT-4 to simplify the problem statement with $\rho_{sip}$ and then generate the code with $\rho_{sipgen}$ as shown in Table 8. The results are also evaluated on both the D1 and D3 problems released after October 2021. However, for D1 problems, using the simplified problem statement even brings a slight decline in ACC#G from $11.54\%$ to $11.14\%$ . And the ACC#G for D3 problems still remains at $0.00\%$ . Consequently, the challenge of genuinely improving the model's reasoning ability and enhancing its performance on unseen problems represents a significant direction for future research.
214
+
215
+ # 5 Related Work
216
+
217
+ Code LLMs. Code intelligence is an important topic in AI research. Recently, code LLMs (Zhang et al., 2023b) have received widespread attention. Commercial LLMs (OpenAI, 2023) have achieved tremendous success. Meanwhile, research on open-source code LLMs is also thriving, such as CodeLlama (Rozière et al., 2023), StarCoder (Li et al., 2023), CodeGeeX (Zheng et al., 2023), CodeFuse (Di et al., 2023), WizardCoder (Luo et al., 2023) and Lemur (Xu et al., 2023).
218
+
219
+ Reasoning on Code. Programming competition is a specialized domain within the broader landscape of programming problems. Unlike simpler tasks on code, such as HumanEval (Chen et al., 2021a), MBPP (Austin et al., 2021), MultiPLE (Cassano et al., 2023), competition-level programming problems necessitate an advanced understanding of data structures, algorithms, and problem-solving techniques. Enabling models to solve human-designed algorithmic competition problems represents a meaningful research direction, as it reflects the models' integrated capabilities in reasoning, coding, and problem-solving. AlphaCode (Li et al., 2022) simulate evaluations on 10 programming competitions on the Codeforces platform, which is the first work in this topic. ALGO (Zhang et al., 2023a) can integrate with any existing code LLMs in a model-agnostic manner, enhancing its code generation performance.
220
+
221
+ Reasoning on Other Subjects. Researchers have proposed many benchmarks requiring various reasoning skills, including commonsense reasoning (Talmor et al., 2018; Geva et al., 2021), numerical reasoning (Dua et al., 2019), multi-hop reasoning (Yang et al., 2018), arithmetic reasoning (Patel et al., 2021; Cobbe et al., 2021), structured reasoning (Yu et al., 2018; Lei et al., 2023), inductive reasoning (Sinha et al., 2019) and logical reasoning (Yu et al., 2020). LLMs are also widely used in scientific research in other fields (Wang et al., 2023), such as physics (Yeadon and Halliday, 2023), chemistry (Castro Nascimento and Pimentel, 2023; Bran et al., 2023), etc.
222
+
223
+ # 6 Conclusion
224
+
225
+ In this study, we utilize competition-level programming problems from Codeforces to analyze the reasoning capabilities of LLMs. We find a significant
226
+
227
+ decrease in perceived performance of GPT-4 on unseen problems, consistent across a range of difficulties, problem types, and experimental settings. This decrease highlights concerns of data contamination in benchmarks and the need for unseen tasks to properly assess LLMs' reasoning ability with complex challenges. Our research also extends these insights to other open-source LLMs, revealing the common difficulties these models face with complex, previously unencountered reasoning tasks. This is indicative of the LLMs' intrinsic limitations in reasoning. As a primary probe, we explore several straightforward strategies, but none of them consistently mitigated the issues. Through our work, we hope to emphasize the critical need for robust datasets to accurately evaluate LLMs' reasoning abilities and to inspire advancements in LLMs that demonstrate improved reasoning abilities.
228
+
229
+ # Limitations
230
+
231
+ This study identifies expertly-designed, high-quality competition-level programming problems as effective evaluation data for evaluating LLMs. However, comparing to the existing benchmarks, the quantity of such problems is limited. Constructing uncontaminated, high-quality evaluation datasets and extending them to other tasks such as mathematics still poses a challenge to researchers. The identification and creation of such datasets are crucial for enhancing our understanding of the LLMs in complex reasoning tasks. We will endeavor to achieve this goal in our future work.
232
+
233
+ # References
234
+
235
+ DeepSeek AI. 2023. Deepseek coder: Let the code write itself. https://github.com/deepseek-ai/DeepSeek-Coder.
236
+ Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. 2021. Program synthesis with large language models. arXiv preprint arXiv:2108.07732.
237
+ Andres M Bran, Sam Cox, Andrew D White, and Philippe Schwaller. 2023. Chemcrow: Augmenting large-language models with chemistry tools. arXiv preprint arXiv:2304.05376.
238
+ Sebastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. 2023. Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712.
239
+
240
+ Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, Florian Tramer, and Chiyuan Zhang. 2023. Quantifying memorization across neural language models. In The Eleventh International Conference on Learning Representations.
241
+ Federico Cassano, John Gouwar, Daniel Nguyen, Sydney Nguyen, Luna Phipps-Costin, Donald Pinckney, Ming-Ho Yee, Yangtian Zi, Carolyn Jane Anderson, Molly Q Feldman, et al. 2023. Multi-er: a scalable and polyglot approach to benchmarking neural code generation. IEEE Transactions on Software Engineering.
242
+ Cayque Monteiro Castro Nascimento and André Silva Pimentel. 2023. Do large language models understand chemistry? a conversation with chatgpt. Journal of Chemical Information and Modeling, 63(6):1649-1655.
243
+ Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021a. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.
244
+ Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021b. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.
245
+ Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.
246
+ Peng Di, Jianguo Li, Hang Yu, Wei Jiang, Wenting Cai, Yang Cao, Chaoyu Chen, Dajun Chen, Hongwei Chen, Liang Chen, Gang Fan, Jie Gong, Zi Gong, Wen Hu, Tingting Guo, Zhichao Lei, Ting Li, Zheng Li, Ming Liang, Cong Liao, Bingchang Liu, Jiachen Liu, Zhiwei Liu, Shaojun Lu, Min Shen, Guangpei Wang, Huan Wang, Zhi Wang, Zhaogui Xu, Jiawei Yang, Qing Ye, Gehao Zhang, Yu Zhang, Zelin Zhao, Xunjin Zheng, Hailian Zhou, Lifu Zhu, and Xianying Zhu. 2023. Codefuse-13b: A pretrained multi-lingual code large language model. CoRR, abs/2310.06266.
247
+ Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. 2019. Drop: A reading comprehension benchmark requiring discrete reasoning over paragraphs. arXiv preprint arXiv:1903.00161.
248
+ Mor Geva, Daniel Khashabi, Elad Segal, Tushar Khot, Dan Roth, and Jonathan Berant. 2021. Did aristotle use a laptop? a question answering benchmark with implicit reasoning strategies. Transactions of the Association for Computational Linguistics, 9:346-361.
249
+
250
+ Fangyu Lei, Qian Liu, Yiming Huang, Shizhu He, Jun Zhao, and Kang Liu. 2023. S3eval: A synthetic, scalable, systematic evaluation suite for large language models. arXiv preprint arXiv:2310.15147.
251
+ Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, Qian Liu, Evgenii Zheltonozhskii, Terry Yue Zhuo, Thomas Wang, Olivier Dehaene, Mishig Davaadorj, Joel Lamy-Poirier, João Monteiro, Oleh Shliazhko, Nicolas Gontier, Nicholas Meade, Armel Zebaze, Ming-Ho Yee, Logesh Kumar Umapathi, Jian Zhu, Benjamin Lipkin, Muhtasham Oblokulov, Zhiruo Wang, Rudra Murthy V, Jason Stillerman, Siva Sankalp Patel, Dmitry Abulkhanov, Marco Zocca, Manan Dey, Zhihan Zhang, Nour Moustafa-Fahmy, Urvashi Bhattacharyya, Wenhao Yu, Swayam Singh, Sasha Luccioni, Paulo Villegas, Maxim Kunakov, Fedor Zhdanov, Manuel Romero, Tony Lee, Nadav Timor, Jennifer Ding, Claire Schlesinger, Hailey Schoelkopf, Jan Ebert, Tri Dao, Mayank Mishra, Alex Gu, Jennifer Robinson, Carolyn Jane Anderson, Brendan Dolan-Gavitt, Danish Contractor, Siva Reddy, Daniel Fried, Dzmitry Bahdanau, Yacine Jernite, Carlos Munoz Ferrandis, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries. 2023. Starcoder: may the source be with you! CoRR, abs/2305.06161.
252
+ Yujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom Eccles, James Keeling, Felix Gimeno, Agustin Dal Lago, et al. 2022. Competition-level code generation with alphacode. Science, 378(6624):1092-1097.
253
+ Sheng Lu, Irina Bigoulaeva, Rachneet Sachdeva, Harish Tayyar Madabushi, and Iryna Gurevych. 2023. Are emergent abilities in large language models just in-context learning? arXiv preprint arXiv:2309.01809.
254
+ Ziyang Luo, Can Xu, Pu Zhao, Qingfeng Sun, Xi-ubo Geng, Wenxiang Hu, Chongyang Tao, Jing Ma, Qingwei Lin, and Daxin Jiang. 2023. Wizardcoder: Empowering code large language models with evol-instruct. CoRR, abs/2306.08568.
255
+ Grégoire Mialon, Clémentine Fourrier, Craig Swift, Thomas Wolf, Yann LeCun, and Thomas Scialom. 2023. Gaia: a benchmark for general ai assistants. arXiv preprint arXiv:2311.12983.
256
+ OpenAI. 2023. Gpt-4 technical report.
257
+ E. Caballero OpenAI and I. Sutskever. 2016. Description2Code Dataset.
258
+ Arkil Patel, Satwik Bhattachamishra, and Navin Goyal. 2021. Are nlp models really able to solve simple math word problems? arXiv preprint arXiv:2103.07191.
259
+ Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, Artyom
260
+
261
+ Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton-Ferrer, Aaron Grattafori, Wenhan Xiong, Alexandre Defossez, Jade Copet, Faisal Azhar, Hugo Touvron, Louis Martin, Nicolas Usunier, Thomas Scialom, and Gabriel Synnaeve. 2023. Code llama: Open foundation models for code. CoRR, abs/2308.12950.
262
+ Fardin Ahsan Sakib, Saadat Hasan Khan, and AHM Karim. 2023. Extending the frontier of chatgpt: Code generation and debugging. arXiv preprint arXiv:2307.08260.
263
+ Bo Shen, Jiaxin Zhang, Taihong Chen, Daoguang Zan, Bing Geng, An Fu, Muhan Zeng, Ailun Yu, Jichuan Ji, Jingyang Zhao, et al. 2023. Pangu-coder2: Boosting large language models for code with ranking feedback. arXiv preprint arXiv:2307.14936.
264
+ Koustuv Sinha, Shagun Sodhani, Jin Dong, Joelle Pineau, and William L Hamilton. 2019. Clutrr: A diagnostic benchmark for inductive reasoning from text. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 4506-4515.
265
+ Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. 2018. Commonsenseqa: A question answering challenge targeting commonsense knowledge. arXiv preprint arXiv:1811.00937.
266
+ Hanchen Wang, Tianfan Fu, Yuanqi Du, Wenhao Gao, Kexin Huang, Ziming Liu, Payal Chandak, Shengchao Liu, Peter Van Katwyk, Andreea Deac, et al. 2023. Scientific discovery in the age of artificial intelligence. Nature, 620(7972):47-60.
267
+ Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35:24824-24837.
268
+ Yiheng Xu, Hongjin Su, Chen Xing, Boyu Mi, Qian Liu, Weijia Shi, Binyuan Hui, Fan Zhou, Yitao Liu, Tianbao Xie, et al. 2023. Lemur: Harmonizing natural language and code for language agents. arXiv preprint arXiv:2310.06830.
269
+ Steve Yadlowsky, Lyric Doshi, and Nilesh Tripuraneni. 2023. Pretraining data mixtures enable narrow model selection capabilities in transformer models. arXiv preprint arXiv:2311.00871.
270
+ Shuo Yang, Wei-Lin Chiang, Lianmin Zheng, Joseph E Gonzalez, and Ion Stoica. 2023. Rethinking benchmark and contamination for language models with rephrased samples. arXiv preprint arXiv:2311.04850.
271
+ Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D Manning. 2018. Hotpotqa: A dataset for diverse, explainable multi-hop question answering.
272
+
273
+ In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2369-2380.
274
+ Will Yeadon and Douglas P Halliday. 2023. Exploring durham university physics exams with large language models. arXiv preprint arXiv:2306.15609.
275
+ Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, et al. 2018. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3911-3921.
276
+ Weihao Yu, Zihang Jiang, Yanfei Dong, and Jiashi Feng. 2020. Reclor: A reading comprehension dataset requiring logical reasoning. arXiv preprint arXiv:2002.04326.
277
+ Kexun Zhang, Danqing Wang, Jingtao Xia, William Yang Wang, and Lei Li. 2023a. Algo: Synthesizing algorithmic programs with generated oracle verifiers. arXiv preprint arXiv:2305.14591.
278
+ Ziyin Zhang, Chaoyu Chen, Bingchang Liu, Cong Liao, Zi Gong, Hang Yu, Jianguo Li, and Rui Wang. 2023b. A survey on language models for code.
279
+ Qinkai Zheng, Xiao Xia, Xu Zou, Yuxiao Dong, Shan Wang, Yufei Xue, Zihan Wang, Lei Shen, Andi Wang, Yang Li, et al. 2023. Codegeex: A pre-trained model for code generation with multilingual evaluations on humaneval-x. arXiv preprint arXiv:2303.17568.
280
+ Kun Zhou, Yutao Zhu, Zhipeng Chen, Wentong Chen, Wayne Xin Zhao, Xu Chen, Yankai Lin, Ji-Rong Wen, and Jiawei Han. 2023. Don't make your lmm an evaluation benchmark cheater. arXiv preprint arXiv:2311.01964.
281
+
282
+ # A More Results with Different Versions of GPT-4 APIs
283
+
284
+ In this study, we conduct an evaluation of two distinct API versions: GPT-4 and GPT-4-turbo, to assess their performance on D1 problems. The training data for GPT-4 extends up to September 2021, while that for GPT-4-turbo reaches up to April 2023. These evaluations are visually represented in Figure 10. Upon analysis of the results, it is observed that on problems prior to September 2021, the GPT-4-turbo exhibits marginally inferior performance compared to GPT-4. Between September 2021 and April 2023, GPT-4-turbo outperforms GPT-4 on D1 problems, reflecting the benefits of its more recent training data. Nonetheless, a decline in GPT-4's performance is observed for newer problems within this period, likely due to the scarcity of such recent data in its training set.
285
+
286
+ Nevertheless, when faced with problems emerging after April 2023—thus unencountered during their respective training periods—both APIs demonstrate a decline in performance, albeit GPT-4-turbo marginally outperforms GPT-4. Despite this relative improvement, the performance of GPT-4-turbo on problems post-April 2023 noticeably regresses when compared to its performance on problems covered by its training data. This finding is consistent with the conclusions drawn in the §3.1 "Faltering on Unseen Problems", which elucidates the challenges faced by these models when confronted with novel questions that extend beyond their training corpus.
287
+
288
+ # B Dataset Details
289
+
290
+ In the context of competitive programming challenges, a "non-standard input/output format" typically refers to a situation where the program's input and output are not provided through standard methods such as reading from standard input (stdin) or writing to standard output (stdout), which are the conventional ways for programs to receive and provide data during competitions. Instead, they might involve interacting with files, graphical user interfaces, or network connections, which are not commonly used in standard programming contests (like https://codeforces.com/problems/problem/120/A). To filter out problems with non-standard input/output formats, we utilize metadata from the problem descriptions on Codeforces, which indicate whether a problem requires non-standard methods for input and output. By checking this information, we can automatically exclude such problems from our dataset to ensure the consistency of the test data.
291
+
292
+ Statistics of the types of problems in D1, D2, and D3 are shown in Table 7.
293
+
294
+ # C Prompt Details
295
+
296
+ Prompts used in this study are shown in Table 8.
297
+
298
+ # D Case Study
299
+
300
+ Some examples generated by GPT4 are shown in Tables 9-13.
301
+
302
+ ![](images/e4348eb69dc17c80c55ad19b713f605e4065bde8eb3d1362a04c17586b31ad1a.jpg)
303
+ Figure 10: Comparison of ACC#G for GPT-4 and GPT-4-turbo on D1 problems.
304
+
305
+ <table><tr><td>Year</td><td>WA1</td><td>WA2</td><td>WA3</td><td>WA4+</td><td>RE</td><td>CE</td><td>TLE</td><td>MLE</td></tr><tr><td>2010</td><td>0.49</td><td>0.15</td><td>0.04</td><td>0.19</td><td>0.04</td><td>0.03</td><td>0.01</td><td>0.04</td></tr><tr><td>2011</td><td>0.53</td><td>0.13</td><td>0.10</td><td>0.06</td><td>0.07</td><td>0.06</td><td>0.04</td><td>0.01</td></tr><tr><td>2012</td><td>0.55</td><td>0.14</td><td>0.05</td><td>0.12</td><td>0.04</td><td>0.04</td><td>0.03</td><td>0.02</td></tr><tr><td>2013</td><td>0.63</td><td>0.13</td><td>0.06</td><td>0.07</td><td>0.03</td><td>0.03</td><td>0.04</td><td>0.01</td></tr><tr><td>2014</td><td>0.53</td><td>0.18</td><td>0.05</td><td>0.09</td><td>0.04</td><td>0.05</td><td>0.04</td><td>0.01</td></tr><tr><td>2015</td><td>0.62</td><td>0.10</td><td>0.02</td><td>0.14</td><td>0.03</td><td>0.02</td><td>0.04</td><td>0.02</td></tr><tr><td>2016</td><td>0.68</td><td>0.09</td><td>0.02</td><td>0.10</td><td>0.02</td><td>0.05</td><td>0.04</td><td>0.00</td></tr><tr><td>2017</td><td>0.66</td><td>0.13</td><td>0.05</td><td>0.08</td><td>0.03</td><td>0.03</td><td>0.03</td><td>0.02</td></tr><tr><td>2018</td><td>0.58</td><td>0.12</td><td>0.06</td><td>0.13</td><td>0.01</td><td>0.03</td><td>0.05</td><td>0.01</td></tr><tr><td>2019</td><td>0.67</td><td>0.11</td><td>0.04</td><td>0.06</td><td>0.02</td><td>0.05</td><td>0.02</td><td>0.02</td></tr><tr><td>2020</td><td>0.77</td><td>0.06</td><td>0.01</td><td>0.01</td><td>0.05</td><td>0.06</td><td>0.03</td><td>0.01</td></tr><tr><td>2021</td><td>0.82</td><td>0.07</td><td>0.02</td><td>0.01</td><td>0.02</td><td>0.04</td><td>0.02</td><td>0.00</td></tr><tr><td>2022</td><td>0.91</td><td>0.05</td><td>0.00</td><td>0.00</td><td>0.02</td><td>0.00</td><td>0.02</td><td>0.00</td></tr><tr><td>2023</td><td>0.90</td><td>0.03</td><td>0.00</td><td>0.00</td><td>0.03</td><td>0.01</td><td>0.02</td><td>0.01</td></tr><tr><td>Average</td><td>0.70</td><td>0.10</td><td>0.03</td><td>0.06</td><td>0.03</td><td>0.03</td><td>0.03</td><td>0.01</td></tr></table>
306
+
307
+ Table 6: Error category of GPT-4 from 2010 to 2023. The abbreviations stand for: WA1, WA2, WA3, and WA4+ (Wrong Answers on Test 1, 2, 3, and 4 or above), RE (Runtime Error), CE (Compilation Error), TLE (Time Limit Exceeded), and MLE (Memory Limit Exceeded).
308
+
309
+ <table><tr><td>Tag</td><td>#Problems</td><td>Tag</td><td>#Problems</td></tr><tr><td>implementation</td><td>1746</td><td>greedy</td><td>1441</td></tr><tr><td>math</td><td>1382</td><td>brute force</td><td>825</td></tr><tr><td>constructive algorithms</td><td>783</td><td>dp</td><td>577</td></tr><tr><td>sortings</td><td>514</td><td>data structures</td><td>391</td></tr><tr><td>strings</td><td>381</td><td>binary search</td><td>342</td></tr><tr><td>number theory</td><td>309</td><td>graphs</td><td>263</td></tr><tr><td>dfs and similar</td><td>244</td><td>two pointers</td><td>197</td></tr><tr><td>combinatorics</td><td>179</td><td>bitmasks</td><td>154</td></tr><tr><td>geometry</td><td>142</td><td>trees</td><td>137</td></tr><tr><td>games</td><td>87</td><td>dsu</td><td>84</td></tr><tr><td>shortest paths</td><td>66</td><td>*special</td><td>58</td></tr><tr><td>probabilities</td><td>52</td><td>hashing</td><td>48</td></tr><tr><td>divide and conquer</td><td>35</td><td>flows</td><td>24</td></tr><tr><td>graph matchings</td><td>22</td><td>ternary search</td><td>22</td></tr><tr><td>matrices</td><td>22</td><td>expression parsing</td><td>19</td></tr><tr><td>string suffix structures</td><td>10</td><td>2-sat</td><td>7</td></tr><tr><td>chinese remainder theorem</td><td>5</td><td>schedules</td><td>4</td></tr><tr><td>meet-in-the-middle</td><td>4</td><td>fft</td><td>4</td></tr></table>
310
+
311
+ Table 7: Statistics of the types of problems in D1, D2, D3.
312
+
313
+ <table><tr><td>ρ1</td><td>You are given a problem, you need to write a C++ solution and explain the algorithm. {promblem_name} {promblem_description} Input specification: {input_format} Output specification: {output_format} Note: {note} Memory limit: {memory_limit} Time limit: {time_limit} Example: Input: {input} Output: {output} Please provide a C++ code in ` ` `cpp\n...` ` `</td></tr><tr><td>ρ2</td><td>Read the problem, write a C++ solution and explain the algorithm. {promblem_name}: {promblem_description} Input specification is {input_format}. Output specification is {output_format}. Note that {note}. Memory limit is {memory_limit}. Time limit is {time_limit}. Example i input is {input}. Example i output is {output}. Please provide a C++ code in ` ` `cpp\n...` ` `</td></tr><tr><td>ρ3</td><td>Finish the solution of this programming problem. {promblem_name} {promblem_description} Input specification: {input_format} Output specification: {output_format} Note: {note} Memory limit: {memory_limit} Time limit: {time_limit} Example: Input: {input} Output: {output} C++ code solution: ` ` `cpp</td></tr><tr><td>ρcot</td><td>You are given an algorithm problem. First, provide a detailed explanation of the algorithm solution, including the logic behind it, the time and space complexity, and any important considerations or edge cases. Then, implement the solution in C++ code, ensuring it is clean, efficient, and well- Commented. {promblem_name} {promblem_description} Input specification: {input_format} Output specification: {output_format} Note: {note} Memory limit: {memory_limit} Time limit: {time_limit} Example: Input: {input} Output: {output} Please provide a C++ code in ` ` `cpp\n...` ` `</td></tr><tr><td>ρsip</td><td>Please extract the essential components from this algorithm problem for a C++ solution, removing any superfluous narrative or context. {promblem_name} {promblem_description} Input specification: {input_format} Output specification: {output_format} Note: {note}</td></tr><tr><td>ρsipgen</td><td>You are given a problem, you need to write a C++ solution and explain the algorithm. {promblem_simlified} Memory limit: {memory_limit} Time limit: {time_limit} Example: Input: {input} Output: {output} Please provide a C++ code in ` ` `cpp\n...` ` `</td></tr></table>
314
+
315
+ Table 8: Prompts used in this study.
316
+
317
+ <table><tr><td>Problem Name</td><td>1890 B: Qingshan Loves Strings Accepted</td></tr><tr><td>Problem Statement</td><td>Problem Qingshan has a string s, while Daniel has a string t. Both strings only contain 0 and 1. A string a of length k is good if and only if ai ≠ ai+1 for all i = 1, 2, ..., k-1. For example, 1, 101, 0101 are good, while 11, 1001, 001100 are not good. Qingshan wants to make s good. To do this, she can do the following operation any number of times (possibly, zero): insert t to any position of s (getting a new s). Please tell Qingshan if it is possible to make s good.
318
+ Input Format The input consists of multiple test cases. The first line contains a single integer T (1 ≤ T ≤ 2000) — the number of test cases. The description of the test cases follows. The first line of each test case contains two integers n and m (1 ≤ n, m ≤ 50) — the length of the strings s and t, respectively. The second line of each test case contains a string s of length n. The third line of each test case contains a string t of length m. It is guaranteed that s and t only contain 0 and 1.
319
+ Output Format For each test case, print &quot;YES&quot; (without quotes), if it is possible to make s good, and &quot;NO&quot; (without quotes) otherwise. You can print letters in any case (upper or lower).</td></tr><tr><td>Code</td><td></td></tr><tr><td>1</td><td>#include &lt;bits/&lt;stdlib.h&gt;</td></tr><tr><td>2</td><td>using namespace std;</td></tr><tr><td>3</td><td></td></tr><tr><td>4</td><td>bool isGood(string s) {
320
+ for (int i = 0; i &lt; s.size() - 1; i++) {
321
+ if (s[i] == s[i+1]) {
322
+ return false;
323
+ }
324
+ return true;
325
+ }</td></tr><tr><td>5</td><td></td></tr><tr><td>6</td><td></td></tr><tr><td>7</td><td></td></tr><tr><td>8</td><td></td></tr><tr><td>9</td><td></td></tr><tr><td>10</td><td></td></tr><tr><td>11</td><td></td></tr><tr><td>12</td><td></td></tr><tr><td>13</td><td>string solve(string s, string t) {
326
+ if (isGood(s)) {
327
+ return &quot;YES&quot;;
328
+ }
329
+ if (!isGood(t)) {
330
+ return &quot;NO&quot;;
331
+ }</td></tr><tr><td>14</td><td></td></tr><tr><td>15</td><td></td></tr><tr><td>16</td><td></td></tr><tr><td>17</td><td></td></tr><tr><td>18</td><td></td></tr><tr><td>19</td><td></td></tr><tr><td>20</td><td>for (int i = 0; i &lt; s.size() - 1; i++) {
332
+ if (s[i] == s[i+1] &amp;&amp; t[0] != s[i] &amp;&amp; t[t.size() - 1] != s[i+1]) {
333
+ s.insert(i+1, t);
334
+ i += t.size();
335
+ }</td></tr><tr><td>21</td><td></td></tr><tr><td>22</td><td></td></tr><tr><td>23</td><td></td></tr><tr><td>24</td><td></td></tr><tr><td>25</td><td></td></tr><tr><td>26</td><td>if (isGood(s)) {
336
+ return &quot;YES&quot;;
337
+ }</td></tr><tr><td>27</td><td></td></tr><tr><td>28</td><td></td></tr><tr><td>29</td><td>return &quot;NO&quot;;
338
+ }</td></tr><tr><td>30</td><td></td></tr><tr><td>31</td><td></td></tr><tr><td>32</td><td>int main() {
339
+ int T;
340
+ cin &gt;&gt; T;
341
+ while (T--) {
342
+ int n, m;
343
+ cin &gt;&gt; n &gt;&gt; m;
344
+ string s, t;
345
+ cin &gt;&gt; s &gt;&gt; t;
346
+ cout &lt;&lt; solve(s, t) &lt;&lt; endl;
347
+ }</td></tr><tr><td>33</td><td></td></tr><tr><td>34</td><td></td></tr><tr><td>35</td><td></td></tr><tr><td>36</td><td></td></tr><tr><td>37</td><td></td></tr><tr><td>38</td><td></td></tr><tr><td>39</td><td></td></tr><tr><td>40</td><td></td></tr><tr><td>41</td><td></td></tr><tr><td>42</td><td></td></tr><tr><td>43</td><td>return 0;</td></tr></table>
348
+
349
+ Table 9: An accepted example generated by GPT-4
350
+
351
+ # Problem Name
352
+
353
+ # 1893 A: Anonymous Informant
354
+
355
+ # Wrong answer on test 1
356
+
357
+ # Problem Statement
358
+
359
+ Problem You are given an array $b_{1}, b_{2}, \ldots, b_{n}$ . An anonymous informant has told you that the array $b$ was obtained as follows: initially, there existed an array $a_{1}, a_{2}, \ldots, a_{n}$ , after which the following two-component operation was performed $k$ times: A fixed point $^{\dagger} x$ of the array $a$ was chosen. Then, the array $a$ was cyclically shifted to the left $^{\ddagger}$ exactly $x$ times. As a result of $k$ such operations, the array $b_{1}, b_{2}, \ldots, b_{n}$ was obtained. You want to check if the words of the anonymous informant can be true or if they are guaranteed to be false. $^{\dagger}$ A number $x$ is called a fixed point of the array $a_{1}, a_{2}, \ldots, a_{n}$ if $1 \leq x \leq n$ and $a_{x} = x$ . $^{\ddagger}$ A cyclic left shift of the array $a_{1}, a_{2}, \ldots, a_{n}$ is the array $a_{2}, \ldots, a_{n}, a_{1}$ .
360
+
361
+ Input Format Each test contains multiple test cases. The first line contains an integer $t$ ( $1 \leq t \leq 10^4$ ) — the number of test cases. The description of the test cases follows. The first line of each test case contains two integers $n, k$ ( $1 \leq n \leq 2 \cdot 10^5$ , $1 \leq k \leq 10^9$ ) — the length of the array $b$ and the number of operations performed. The second line of each test case contains $n$ integers $b_1, b_2, \ldots, b_n$ ( $1 \leq b_i \leq 10^9$ ) — the elements of the array $b$ . It is guaranteed that the sum of the values of $n$ for all test cases does not exceed $2 \cdot 10^5$ .
362
+
363
+ Output Format For each test case, output "Yes" if the words of the anonymous informant can be true, and "No" if they are guaranteed to be false.
364
+
365
+ # Code
366
+
367
+ ```cpp
368
+ #include <bits>
369
+ using namespace std;
370
+ void solve() { int n, k; cin >> n >> k; vector<int> b(n); for (int i = 0; i < n; i++) cin >> b[i]; vector<int> prefix(n), suffix(n); prefix[0] = b[0]; suffix[n-1] = b[n-1]; for (int i = 1; i < n; i++) prefix[i] = max(prefix[i-1], b[i]); for (int i = n-2; i >= 0; i--) suffix[i] = max(prefix[i+1], b[i]); bool ok = true; for (int i = 0; i < n; i++) { if (b[i] > max((i > 0 ? prefix[i-1] : 0), (i < n-1 ? suffix[i+1] : 0))) { ok = false; break; } if (i > 0 && b[i] - b[i-1] > 1) { ok = false; break; } } if (b[0] != b[n-1]) ok = false; cout << (ok ? "Yes" : "No") << "\n";
371
+ }
372
+ int main() { ios_base::sync_with_std(false); cin.tie(NULL); int t; cin >> t; while(t-- ) solve(); return 0;
373
+ }
374
+ ```
375
+
376
+ Table 10: An wrong example generated by GPT-4
377
+
378
+ <table><tr><td>Problem Name</td><td>1893 A: Anonymous Informant</td><td>Compilation error</td></tr><tr><td>Problem Statement</td><td colspan="2">Problem You are given a set S, which contains the first n positive integers: 1,2,...,n. You can perform the following operation on S any number of times (possibly zero): Choose a positive integer k where 1 ≤ k ≤ n, such that there exists a multiple of k in S. Then, delete the smallest multiple of k from S. This operation requires a cost of k. You are given a set T, which is a subset of S. Find the minimum possible total cost of operations such that S would be transformed into T. We can show that such a transformation is always possible.Input Format The first line of the input contains a single integer t (1 ≤ t ≤ 10000) — the number of test cases. The description of the test cases follows. The first line contains a single positive integer n (1 ≤ n ≤ 10^6). The second line of each test case contains a binary string of length n, describing the set T. The i-th character of the string is &#x27;1&#x27; if and only if i is an element of T, and &#x27;0&#x27; otherwise. It is guaranteed that the sum of n over all test cases does not exceed 10^6.Output Format For each test case, output one non-negative integer — the minimum possible total cost of operations such that S would be trans-formed into T.</td></tr><tr><td>Code</td><td colspan="2"># include &lt;bits&gt; using namespace std;int main() {ios_base::sync_with_std(false);cin.tie(NULL);int t;cin &gt;&gt; t;while(t--){int n;cin &gt;&gt; n;string s;cin &gt;&gt; s;long long cost = 0, max_num = 0;for(int i = n - 1; i &gt;= 0; i--){if(s[i] == &#x27;1&#x27;) {if(i + 1 &gt; max_num) {cost += i + 1;max_num = i + 1;}else{max_num = max(max_num, i + 1);}cout &lt;&lt; cost &lt;&lt; &quot;\n&quot;;}return 0;}</td></tr></table>
379
+
380
+ Table 11: An example of compilation error generated by GPT-4
381
+
382
+ <table><tr><td>Problem Name</td><td>451 A: Game With Sticks Accepted</td></tr><tr><td>Problem Statement</td><td>Problem After winning gold and silver in IOI 2014, Akshit and Malvika want to have some fun. Now they are playing a game on a grid made of n horizontal and m vertical sticks. An intersection point is any point on the grid which is formed by the intersection of one horizontal stick and one vertical stick. In the grid shown below, n=3 and m=3. There are n+m=6 sticks in total (horizontal sticks are shown in red and vertical sticks are shown in green). There are n-m=9 intersection points, numbered from 1 to 9.
383
+ The rules of the game are very simple. The players move in turns. Akshit won gold, so he makes the first move. During his/her move, a player must choose any remaining intersection point and remove from the grid all sticks which pass through this point. A player will lose the game if he/she cannot make a move (i.e. there are no intersection points remaining on the grid at his/her move). Assume that both players play optimally. Who will win the game?
384
+ Input Format The first line of input contains two space-separated integers, n and m (1 ≤ n, m ≤ 100).
385
+ Output Format Print a single line containing &quot;Akshit&quot; or &quot;Malvika&quot; (without the quotes), depending on the winner of the game.</td></tr><tr><td>Response</td><td>The problem can be solved using a simple observation. The game is essentially about removing rows and columns from a grid. Each move removes one row and one column. Therefore, the game ends when there are no rows or columns left, i.e., when the minimum of n and m reaches zero. Since Akshit starts the game, if the minimum of n and m is even, Malvika will make the last move and win the game. Otherwise, Akshit will make the last move and win the game.
386
+ The time complexity of this solution is O(1) because it involves only a constant amount of computation. The space complexity is also O(1) because it uses only a constant amount of space.
387
+ The code first reads the values of n and m. It then checks if the minimum of n and m is even. If it is, it prints &quot;Malvika&quot;. Otherwise, it prints &quot;Akshit&quot;.
388
+ Here is the C++ code for the problem:</td></tr><tr><td>1</td><td>#include &lt;bits/&lt;stdlib.h&gt;</td></tr><tr><td>2</td><td>using namespace std;</td></tr><tr><td>3</td><td>int main() {</td></tr><tr><td>4</td><td>int n, m;</td></tr><tr><td>5</td><td>cin &gt;&gt; n &gt;&gt; m;</td></tr><tr><td>6</td><td>// If the minimum of n and m is even, Malvika wins. Otherwise, Akshit wins.</td></tr><tr><td>7</td><td>if (min(n, m) % 2 == 0) {</td></tr><tr><td>8</td><td>cout &lt;&lt; &quot;Malvika&quot;;</td></tr><tr><td>9</td><td>} else {</td></tr><tr><td>10</td><td>cout &lt;&lt; &quot;Akshit&quot;;</td></tr><tr><td>11</td><td>}</td></tr><tr><td>12</td><td>return 0;</td></tr><tr><td>13</td><td>}</td></tr><tr><td>14</td><td>}</td></tr></table>
389
+
390
+ Table 12: An example generated by GPT-4 with CoT prompt.
391
+
392
+ <table><tr><td>Problem Name</td><td>1890 B: Qingshan Loves Strings</td></tr><tr><td>Problem Statement</td><td>Problem Qingshan has a string s, while Daniel has a string t. Both strings only contain ∅ and 1. A string a of length k is good if and only if ai ≠ ai+1 for all i = 1, 2, ..., k-1. For example, 1, 101, 0101 are good, while 11, 1001, 001100 are not good. Qingshan wants to make s good. To do this, she can do the following operation any number of times (possibly, zero): insert t to any position of s (getting a new s). Please tell Qingshan if it is possible to make s good.Input Format The input consists of multiple test cases. The first line contains a single integer T (1 ≤ T ≤ 2000) — the number of test cases. The description of the test cases follows. The first line of each test case contains two integers n and m (1 ≤ n, m ≤ 50) — the length of the strings s and t, respectively. The second line of each test case contains a string s of length n. The third line of each test case contains a string t of length m. It is guaranteed that s and t only contain ∅ and 1.Output Format For each test case, print &quot;YES&quot; (without quotes), if it is possible to make s good, and &quot;NO&quot; (without quotes) otherwise. You can print letters in any case (upper or lower).</td></tr><tr><td>Simplified Statement</td><td>You are given a problem, you need to write a C++ solution and explain the algorithm.- You are given two strings s and t, both containing only 0s and 1s.- A string a of length k is considered good if no two consecutive characters are the same.- You can insert string t at any position in string s any number of times.- You need to determine if it is possible to make string s good.- The input consists of multiple test cases. The first line contains an integer T (1 ≤ T ≤ 2000) — the number of test cases. Each test case starts with two integers n and m (1 ≤ n, m ≤ 50) — the lengths of the strings s and t, respectively. The next two lines contain the strings s and t.- For each test case, print &quot;YES&quot; if it is possible to make s good, and &quot;NO&quot; otherwise. The output is case-insensitive.</td></tr></table>
393
+
394
+ Table 13: An simplified example generated by GPT-4
2024/Competition-Level Problems are Effective LLM Evaluators/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:351e4cb8b8f0235da66eec2e6abe578c23c87f0f9484fda893f5c04c7267b76c
3
+ size 1854320
2024/Competition-Level Problems are Effective LLM Evaluators/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/28987eca-6571-4ea4-b16a-06ab4319ecb4_content_list.json ADDED
@@ -0,0 +1,1905 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 139,
8
+ 89,
9
+ 860,
10
+ 130
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Changyi Xiao $^{1*}$ , Yixin Cao $^{2}$",
17
+ "bbox": [
18
+ 376,
19
+ 151,
20
+ 621,
21
+ 168
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup>School of Data Science, University of Science and Technology of China",
28
+ "bbox": [
29
+ 203,
30
+ 168,
31
+ 794,
32
+ 185
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "$^{2}$ School of Computer Science, Fudan University",
39
+ "bbox": [
40
+ 302,
41
+ 185,
42
+ 695,
43
+ 202
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "changyi@mail.ustc.edu.cn, caoyixin2011@gmail.com",
50
+ "bbox": [
51
+ 253,
52
+ 203,
53
+ 744,
54
+ 219
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 260,
64
+ 260,
65
+ 342,
66
+ 275
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Complex logical query answering (CLQA) is a challenging task that involves finding answer entities for complex logical queries over incomplete knowledge graphs (KGs). Previous research has explored the use of pre-trained knowledge graph completion (KGC) models, which can predict the missing facts in KGs, to answer complex logical queries. However, KGC models are typically evaluated using ranking evaluation metrics, which may result in values of predictions of KGC models that are not well-calibrated. In this paper, we propose a method for calibrating KGC models, namely CKGC, which enables KGC models to adapt to answering complex logical queries. Notably, CKGC is lightweight and effective. The adaptation function is simple, allowing the model to quickly converge during the adaptation process. The core concept of CKGC is to map the values of predictions of KGC models to the range [0, 1], ensuring that values associated with true facts are close to 1, while values linked to false facts are close to 0. Through experiments on three benchmark datasets, we demonstrate that our proposed calibration method can significantly boost model performance in the CLQA task. Moreover, our approach can enhance the performance of CLQA while preserving the ranking evaluation metrics of KGC models. The code is available at https://github.com/changyi7231/CKGC.",
73
+ "bbox": [
74
+ 144,
75
+ 288,
76
+ 460,
77
+ 731
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 114,
87
+ 743,
88
+ 260,
89
+ 759
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Knowledge graphs (KGs) are composed of structured representations of facts in the form of triplets and have been widely used in various domains. One of the key tasks associated with KGs is complex logical query answering (Ren et al., 2023). Complex logical queries are typically expressed using first-order logic (FOL), which encompasses logical operations such as conjunction $(\\wedge)$ , disjunction $(\\lor)$ ,",
96
+ "bbox": [
97
+ 112,
98
+ 769,
99
+ 490,
100
+ 900
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "negation $(\\neg)$ , and existential quantifier $(\\exists)$ . For example, the query \"Which universities do the Turing Award winners not in the field of deep learning work in?\" can be formulated as a FOL query, as illustrated in Figure 1.",
107
+ "bbox": [
108
+ 507,
109
+ 261,
110
+ 884,
111
+ 341
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Many well-known knowledge graphs (KGs) suffer from incompleteness, rendering it challenging to answer complex queries through simple KG traversal. Building on the accomplishments of knowledge graph completion (KGC) methods (Bordes et al., 2013; Sun et al., 2018; Trouillon et al., 2017) in addressing one-hop KG queries, a research avenue has emerged focusing on learning embeddings for queries to handle complex logical queries (Hamilton et al., 2018; Ren et al., 2020; Zhang et al., 2021). Nonetheless, these methodologies often require extensive training on numerous complex logical queries, leading to substantial training time overhead and limited generalization to out-of-distribution query structures.",
118
+ "bbox": [
119
+ 507,
120
+ 342,
121
+ 885,
122
+ 582
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In addressing these challenges, CQD (Aragelyan et al., 2020) introduces a method for CLQA by leveraging one-hop atom results derived from a pretrained KGC model, thereby removing the necessity for training on complex queries. CQD frames CLQA as an optimization problem and employs techniques like beam search or continuous approximation to estimate the optimal solution. Despite its effectiveness, the approximations made during the process could lead to a decrease in accuracy for CQD. Furthermore, CQD is reliant on a KGC model whose values of output might not be specifically calibrated for CLQA, potentially resulting in inaccuracies in the outcomes.",
129
+ "bbox": [
130
+ 507,
131
+ 583,
132
+ 885,
133
+ 807
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "In this paper, we introduce a method for calibrating KGC models, namely CKGC, which can make KGC models adapt to handling complex logical queries. Our method is lightweight and effective. It is lightweight, as the adaptation function is simple and the model can quickly converge in adaptation process. Moreover, it is effective in significantly",
140
+ "bbox": [
141
+ 507,
142
+ 808,
143
+ 884,
144
+ 921
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "page_footnote",
150
+ "text": "*Corresponding author.",
151
+ "bbox": [
152
+ 136,
153
+ 906,
154
+ 282,
155
+ 921
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "page_number",
161
+ "text": "13792",
162
+ "bbox": [
163
+ 475,
164
+ 927,
165
+ 524,
166
+ 940
167
+ ],
168
+ "page_idx": 0
169
+ },
170
+ {
171
+ "type": "footer",
172
+ "text": "Findings of the Association for Computational Linguistics: ACL 2024, pages 13792-13803 August 11-16, 2024 ©2024 Association for Computational Linguistics",
173
+ "bbox": [
174
+ 220,
175
+ 945,
176
+ 778,
177
+ 972
178
+ ],
179
+ "page_idx": 0
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "enhancing the performance of CLQA.",
184
+ "bbox": [
185
+ 112,
186
+ 84,
187
+ 398,
188
+ 99
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "We first represent every complex logical query as a computation graph over fuzzy sets, of which nodes represent fuzzy sets and edges represent the fuzzy set operations over fuzzy sets. To obtain the answers of a query, we traverse the computation graph and execute the fuzzy set operations through a straightforward forward propagation process, eliminating the need for optimization compared to CQD (Aragelyan et al., 2020). We define four fundamental fuzzy set operations for CLQA: projection operation, complement operation, intersection operation, and union operation, all of which require the KGC model to be calibrated.",
195
+ "bbox": [
196
+ 112,
197
+ 102,
198
+ 489,
199
+ 311
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "However, a KGC model is typically measured by the ranking metrics, which do not need it to be calibrated. Thus, we propose a calibration method for KGC models to make it adapted to CLQA. We define the adaptation function as a monotonically increasing function that preserves the ranking evaluation metrics of the KGC model. The main idea of our method is to map the values of output of a KGC model to the interval [0, 1], and makes the values corresponding to true triplets be as close as possible to 1, while the values corresponding to false triplets be as close as possible to 0.",
206
+ "bbox": [
207
+ 115,
208
+ 312,
209
+ 489,
210
+ 504
211
+ ],
212
+ "page_idx": 1
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "Our experimental evaluation on three standard datasets demonstrates the efficacy of CKGC in CLQA. The results reveal that CKGC achieves state-of-the-art performance across all datasets, showcasing an average relative improvement of $6.7\\%$ on existential positive first-order queries and $53.9\\%$ on negation queries compared to the prior state-of-the-art method.",
217
+ "bbox": [
218
+ 112,
219
+ 507,
220
+ 489,
221
+ 634
222
+ ],
223
+ "page_idx": 1
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "2 Related Work",
228
+ "text_level": 1,
229
+ "bbox": [
230
+ 112,
231
+ 651,
232
+ 270,
233
+ 667
234
+ ],
235
+ "page_idx": 1
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "Knowledge Graph Completion The task of KGC involves predicting missing triplets within a knowledge graph, which can be viewed as predicting answers for one-hop queries. Various methodologies have been proposed to address this task, encompassing embedding techniques (Bordes et al., 2013; Sun et al., 2018; Trouillon et al., 2017), reinforcement learning approaches (Xiong et al., 2017; Das et al., 2018; Hildebrandt et al., 2020; Zhang et al., 2022), rule learning strategies (Yang et al., 2017; Sadeghian et al., 2019; Qu et al., 2020), and graph neural network methodologies (Schlichtkrull et al., 2018; Vashissth et al., 2019; Teru et al., 2020). Embedding methods aim to embed entities and relations into a continuous space and de",
240
+ "bbox": [
241
+ 112,
242
+ 678,
243
+ 492,
244
+ 921
245
+ ],
246
+ "page_idx": 1
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "fine a scoring function based on these embeddings. Reinforcement learning methods train an agent to explore the knowledge graph to predict the missing triplets. Rule learning methods adopt a distinct approach by initially identifying confident logical rules from the knowledge graph. These rules are then utilized to infer missing triplets. Lastly, graph neural network methods utilize graph neural networks to learn representations of entities and relations by leveraging the graph structure.",
251
+ "bbox": [
252
+ 507,
253
+ 84,
254
+ 885,
255
+ 247
256
+ ],
257
+ "page_idx": 1
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "Complex Logical Query Answering CLQA over KGs extends KGC to predict answers for FOL queries, which additionally requires defining relationships between sets of entities. Embedding-based methods represent sets of entities as geometric objects (Hamilton et al., 2018; Ren et al., 2020; Zhang et al., 2021) or probability distributions (Ren and Leskovec, 2020), and then minimize the distance between embeddings of queries and embeddings of their corresponding answers. However, the quality of representation of sets may be compromised when dealing with large sets. To overcome this limitation, some studies have incorporated powerful fuzzy set theory to handle FOL queries (Chen et al., 2022; Zhu et al., 2022). For instance, FuzzQE (Chen et al., 2022) embeds entities and queries into a fuzzy space and leverages fuzzy set operations to perform logical operations on the embeddings. Similarly, GNN-QE (Zhu et al., 2022) decomposes the query into relational projections operations and fuzzy set operations over fuzzy sets, and subsequently learns a graph neural network to execute relational projections.",
262
+ "bbox": [
263
+ 507,
264
+ 260,
265
+ 885,
266
+ 630
267
+ ],
268
+ "page_idx": 1
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "Nevertheless, the aforementioned methods generally necessitate training on numerous complex logical queries, resulting in significant training time overhead and limited generalization to out-of-distribution query structures. Another line of methods first pre-trains a KGC model and then integrates it with fuzzy set theory to infer answers. CQD (Aragelyan et al., 2020) formulates CLQA as an optimization problem and proposes two strategies to approximate the optimal solution: CQD-CO, which directly optimizes in the continuous space, and CQD-Beam, which utilizes beam search. Despite CQD avoiding the need to train on complex logical queries, it suffers from accuracy loss due to the approximated optimization and uncalibrated KGC models. To enhance accuracy, Bai et al. (2023) introduce QTO, which efficiently finds the theoretically optimal solution",
273
+ "bbox": [
274
+ 507,
275
+ 631,
276
+ 885,
277
+ 921
278
+ ],
279
+ "page_idx": 1
280
+ },
281
+ {
282
+ "type": "page_number",
283
+ "text": "13793",
284
+ "bbox": [
285
+ 477,
286
+ 927,
287
+ 524,
288
+ 941
289
+ ],
290
+ "page_idx": 1
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "through a forward-backward propagation on a tree-like computation graph. Additionally, Arakelyan et al. (2023) propose $\\mathrm{CQD}^{\\mathcal{A}}$ , a parameter-efficient adaptation method, to calibrate KGC models. However, the KGC model for QTO is not well calibrated for complex queries, and the optimal solution for $\\mathrm{CQD}^{\\mathcal{A}}$ is still approximated. In contrast, our proposed model not only delivers accurate solutions but also effectively calibrates the KGC models.",
295
+ "bbox": [
296
+ 112,
297
+ 84,
298
+ 489,
299
+ 230
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "3 Background",
306
+ "text_level": 1,
307
+ "bbox": [
308
+ 112,
309
+ 244,
310
+ 257,
311
+ 262
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "In this section, we introduce the related background of our method, complex logical query answering on knowledge graphs and fuzzy sets.",
318
+ "bbox": [
319
+ 112,
320
+ 273,
321
+ 487,
322
+ 322
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "3.1 Complex Logical Query Answering on Knowledge Graphs",
329
+ "text_level": 1,
330
+ "bbox": [
331
+ 112,
332
+ 336,
333
+ 460,
334
+ 369
335
+ ],
336
+ "page_idx": 2
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "Knowledge Graphs Completion Given a set of entities $\\mathcal{V}$ and a set of relations $\\mathcal{R}$ , a knowledge graph $\\mathcal{G}$ contains a set of triplets $\\{(h,r,t)\\} \\subset \\mathcal{V} \\times \\mathcal{R} \\times \\mathcal{V}$ , where each triplet is a fact from head entity $h$ to tail entity $t$ with a relation type $r$ . KGC models define scoring functions $f(h,r,t)$ to measure the likelihood of triplets $(h,r,t)$ based on their corresponding embeddings.",
341
+ "bbox": [
342
+ 112,
343
+ 375,
344
+ 489,
345
+ 505
346
+ ],
347
+ "page_idx": 2
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "First-Order Logic Queries Complex logical queries can be represented by FOL queries with logical operations including conjunction $(\\wedge)$ , disjunction $(\\vee)$ , negation $(\\neg)$ , and existential quantifier $(\\exists)$ . A first-order logic query $q$ can be described in its disjunctive normal form, which consists of a set of non-variable anchor entities $\\mathcal{V}_a \\subseteq \\mathcal{V}$ , existentially quantified bound variables $V_1, \\ldots, V_k$ and a single target variable $V_\\varphi$ , which provides the answers of query $q$ . The disjunctive normal form of a logical query $q$ is a disjunction of one or more conjunctions.",
352
+ "bbox": [
353
+ 112,
354
+ 517,
355
+ 489,
356
+ 712
357
+ ],
358
+ "page_idx": 2
359
+ },
360
+ {
361
+ "type": "equation",
362
+ "text": "\n$$\nq = V _ {j}. \\exists V _ {1}, \\dots , V _ {k}: c _ {1} \\wedge c _ {2} \\wedge , \\dots , c _ {n}.\n$$\n",
363
+ "text_format": "latex",
364
+ "bbox": [
365
+ 151,
366
+ 728,
367
+ 448,
368
+ 744
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "Each $c$ represents a conjunctive query with one or more literals $e$ , i.e., $c_{i} = e_{i1} \\lor e_{i2} \\lor \\dots \\lor e_{im}$ . Each literal $e$ represents an atomic formula or its negation, i.e., $e_{ij} = R(v_{a}, V)$ or $\\neg R(v_{a}, V)$ or $\\neg R(V', V)$ or $\\neg R(V', V)$ , where $v_{a} \\in \\mathcal{V}_{a}$ , $V \\in \\{V?, V_{1}, \\ldots, V_{k}\\}$ , $V \\in \\{V?, V_{1}, \\ldots, V_{k}\\}$ , $V \\neq V'$ , $R(\\cdot, \\cdot)$ is a binary function $R: \\mathcal{V} \\times \\mathcal{V} \\to \\{0, 1\\}$ . Each relation $r \\in \\mathcal{R}$ corresponds to a binary function $R(\\cdot, \\cdot)$ . If $(h, r, t)$ is a true fact, then $R(h, t) = 1$ . If $(h, r, t)$ is a false fact, then $R(h, t) = 0$ .",
375
+ "bbox": [
376
+ 112,
377
+ 760,
378
+ 490,
379
+ 921
380
+ ],
381
+ "page_idx": 2
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "Computation Graph Given a FOL query, we can represent it as a computation graph, of which nodes represent sets of entities and edges represent set operations over sets of entities. The set operations include the complement operation, intersection operation, union operation and projection operation. The root node represents the set of answer entities. See Figure 1 for an example. We map logical operations to set operations according to the following rules.",
386
+ "bbox": [
387
+ 507,
388
+ 84,
389
+ 884,
390
+ 244
391
+ ],
392
+ "page_idx": 2
393
+ },
394
+ {
395
+ "type": "list",
396
+ "sub_type": "text",
397
+ "list_items": [
398
+ "- Negation $\\longrightarrow$ Complement Operation: Given a set of entities $S \\subseteq \\mathcal{V}$ , the complement operator performs set complement to obtain $\\overline{S} = \\mathcal{V} \\backslash S$ .",
399
+ "- Conjunction $\\longrightarrow$ Intersection Operation: Given $n$ sets of entities $\\{S_1, S_2, \\ldots, S_n\\}$ , the intersection operator performs set intersection to obtain $\\cap_{i=1}^{n} S_i$ .",
400
+ "- Disjunction $\\longrightarrow$ Union Operation: Given $n$ sets of entities $\\{S_1, S_2, \\ldots, S_n\\}$ , the union operator performs set union to obtain $\\cup_{i=1}^{n} S_i$ .",
401
+ "- Relation Projection $\\longrightarrow$ Projection Operation: Given a set of entities $S \\subseteq \\mathcal{V}$ and a relation $r \\in \\mathcal{R}$ , the projection operator outputs all the adjacent entities $\\cup_{v \\in S} N(v, r)$ , where $N(v, r)$ is the set of entities such that $(v, r, v')$ are true triplets for all $v' \\in N(v, r)$ ."
402
+ ],
403
+ "bbox": [
404
+ 531,
405
+ 258,
406
+ 882,
407
+ 571
408
+ ],
409
+ "page_idx": 2
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "In order to answer a given FOL query, we can traverse the computation graph and execute the set operations. The answers of a query can be obtained by looking at the set of entities in the root node.",
414
+ "bbox": [
415
+ 507,
416
+ 586,
417
+ 882,
418
+ 650
419
+ ],
420
+ "page_idx": 2
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "3.2 Fuzzy sets",
425
+ "text_level": 1,
426
+ "bbox": [
427
+ 507,
428
+ 663,
429
+ 636,
430
+ 678
431
+ ],
432
+ "page_idx": 2
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "Definition A fuzzy set is a pair $(U,m)$ , where $U$ is a set and $m:U\\to [0,1]$ is a membership function. For each $x\\in U$ , the value $m(x)$ measures the degree of membership of $x$ in $(U,m)$ . The function $m = \\mu_{A}$ is called the membership function of the fuzzy set $A = (U,m)$ . Classical sets are seen as special cases of fuzzy sets, if the membership functions only takes values 0 or 1.",
437
+ "bbox": [
438
+ 507,
439
+ 684,
440
+ 882,
441
+ 813
442
+ ],
443
+ "page_idx": 2
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Fuzzy Set Operations Fuzzy set operations are a generalization of classical set operations for fuzzy sets. The three primary fuzzy set operations are fuzzy complements, fuzzy intersections, and fuzzy unions. For a given fuzzy set $A$ , its complement $\\overline{A}$ is commonly defined by the following membership",
448
+ "bbox": [
449
+ 507,
450
+ 825,
451
+ 882,
452
+ 921
453
+ ],
454
+ "page_idx": 2
455
+ },
456
+ {
457
+ "type": "page_number",
458
+ "text": "13794",
459
+ "bbox": [
460
+ 477,
461
+ 927,
462
+ 524,
463
+ 940
464
+ ],
465
+ "page_idx": 2
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "First-Order Logic",
470
+ "bbox": [
471
+ 137,
472
+ 131,
473
+ 255,
474
+ 146
475
+ ],
476
+ "page_idx": 3
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "$q = V_{?}$ . $\\exists V$ : Win(V, Turing Award) $\\land$ Field(V, Deep Learning) $\\land$ University(V, $V_{?}$ )",
481
+ "bbox": [
482
+ 322,
483
+ 129,
484
+ 818,
485
+ 145
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "Computation Graph",
492
+ "bbox": [
493
+ 117,
494
+ 195,
495
+ 257,
496
+ 210
497
+ ],
498
+ "page_idx": 3
499
+ },
500
+ {
501
+ "type": "image",
502
+ "img_path": "images/021c170312635a28a4cfd923c9d9b6bdd3b3d37803dc2491944602777c1cfc1d.jpg",
503
+ "image_caption": [
504
+ "Figure 1: An query, its corresponding FOL form and its corresponding computation graph."
505
+ ],
506
+ "image_footnote": [],
507
+ "bbox": [
508
+ 357,
509
+ 165,
510
+ 729,
511
+ 249
512
+ ],
513
+ "page_idx": 3
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "function:",
518
+ "bbox": [
519
+ 112,
520
+ 318,
521
+ 184,
522
+ 332
523
+ ],
524
+ "page_idx": 3
525
+ },
526
+ {
527
+ "type": "equation",
528
+ "text": "\n$$\n\\forall x \\in U, \\mu_ {\\overline {{A}}} (x) = 1 - \\mu_ {A} (x)\n$$\n",
529
+ "text_format": "latex",
530
+ "bbox": [
531
+ 189,
532
+ 350,
533
+ 410,
534
+ 368
535
+ ],
536
+ "page_idx": 3
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "Given a pair of fuzzy sets $A, B$ , their intersection $A \\cap B$ is defined by a t-norm $T$ (Klement et al., 2004):",
541
+ "bbox": [
542
+ 112,
543
+ 382,
544
+ 489,
545
+ 431
546
+ ],
547
+ "page_idx": 3
548
+ },
549
+ {
550
+ "type": "equation",
551
+ "text": "\n$$\n\\forall x \\in U, \\mu_ {A \\cap B} (x) = T (\\mu_ {A} (x), \\mu_ {B} (x))\n$$\n",
552
+ "text_format": "latex",
553
+ "bbox": [
554
+ 152,
555
+ 448,
556
+ 448,
557
+ 466
558
+ ],
559
+ "page_idx": 3
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "Prominent examples of t-norms include product t-norm $T(a,b) = ab$ , Gödel t-norm $T(a,b) = \\min \\{a,b\\}$ and so on (Klement et al., 2004). Given a t-norm $T$ and a pair of fuzzy sets $A, B$ , their union $A \\cup B$ is defined by De Morgan's law:",
564
+ "bbox": [
565
+ 112,
566
+ 481,
567
+ 487,
568
+ 562
569
+ ],
570
+ "page_idx": 3
571
+ },
572
+ {
573
+ "type": "equation",
574
+ "text": "\n$$\n\\forall x \\in U, \\mu_ {A \\cup B} (x) = 1 - T \\left(1 - \\mu_ {A} (x), 1 - \\mu_ {B} (x)\\right)\n$$\n",
575
+ "text_format": "latex",
576
+ "bbox": [
577
+ 112,
578
+ 577,
579
+ 500,
580
+ 595
581
+ ],
582
+ "page_idx": 3
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "4 Method",
587
+ "text_level": 1,
588
+ "bbox": [
589
+ 112,
590
+ 612,
591
+ 218,
592
+ 627
593
+ ],
594
+ "page_idx": 3
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "We first define four fuzzy set operations over fuzzy sets in Section 4.1, and then propose a calibration method for KGC models in Section 4.2.",
599
+ "bbox": [
600
+ 112,
601
+ 640,
602
+ 487,
603
+ 688
604
+ ],
605
+ "page_idx": 3
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "4.1 Fuzzy Set Operations",
610
+ "text_level": 1,
611
+ "bbox": [
612
+ 112,
613
+ 703,
614
+ 329,
615
+ 720
616
+ ],
617
+ "page_idx": 3
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "As demonstrated in Section 3.1, a query can be represented as a computation graph. To obtain the fuzzy sets of answers, it is necessary to define the fuzzy set operations utilized in computation graphs. These operations encompass the projection operation, intersection operation, union operation, and complement operation.",
622
+ "bbox": [
623
+ 112,
624
+ 726,
625
+ 487,
626
+ 839
627
+ ],
628
+ "page_idx": 3
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "We represent every fuzzy set of entities as a vector $e \\in [0,1]^d$ , where $d = |\\mathcal{V}|$ and $e_i$ denotes the grade of membership of entity $i$ . The anchor entity is represented by a vector with a single element set to 1 and all other elements set to 0.",
633
+ "bbox": [
634
+ 112,
635
+ 841,
636
+ 489,
637
+ 920
638
+ ],
639
+ "page_idx": 3
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "Complement Operation: The complement operation maps a fuzzy set to the complement of the fuzzy set. We define the complement operation as",
644
+ "bbox": [
645
+ 507,
646
+ 318,
647
+ 884,
648
+ 367
649
+ ],
650
+ "page_idx": 3
651
+ },
652
+ {
653
+ "type": "equation",
654
+ "text": "\n$$\n\\mathcal {C}: [ 0, 1 ] ^ {d} \\to [ 0, 1 ] ^ {d}\n$$\n",
655
+ "text_format": "latex",
656
+ "bbox": [
657
+ 621,
658
+ 374,
659
+ 769,
660
+ 393
661
+ ],
662
+ "page_idx": 3
663
+ },
664
+ {
665
+ "type": "equation",
666
+ "text": "\n$$\n\\mathcal {C} (e) = \\mathbf {1} - e\n$$\n",
667
+ "text_format": "latex",
668
+ "bbox": [
669
+ 663,
670
+ 395,
671
+ 766,
672
+ 412
673
+ ],
674
+ "page_idx": 3
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "Intersection Operation: The intersection operation maps several fuzzy sets into the intersection set of these fuzzy sets. We define the intersection operation by utilizing the product t-norm, which is as follows:",
679
+ "bbox": [
680
+ 507,
681
+ 422,
682
+ 882,
683
+ 500
684
+ ],
685
+ "page_idx": 3
686
+ },
687
+ {
688
+ "type": "equation",
689
+ "text": "\n$$\n\\mathcal {I}: [ 0, 1 ] ^ {n d} \\to [ 0, 1 ] ^ {d}\n$$\n",
690
+ "text_format": "latex",
691
+ "bbox": [
692
+ 591,
693
+ 511,
694
+ 746,
695
+ 529
696
+ ],
697
+ "page_idx": 3
698
+ },
699
+ {
700
+ "type": "equation",
701
+ "text": "\n$$\n\\mathcal {I} \\left(e ^ {1}, e ^ {2}, \\dots , e ^ {n}\\right) = e ^ {1} \\odot e ^ {2} \\odot \\dots \\odot e ^ {n}\n$$\n",
702
+ "text_format": "latex",
703
+ "bbox": [
704
+ 546,
705
+ 531,
706
+ 845,
707
+ 550
708
+ ],
709
+ "page_idx": 3
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "where $\\{e^i\\in [0,1]^d |1\\leq i\\leq n\\}$ are vector representations of fuzzy sets and $\\odot$ is the Hadamard product.",
714
+ "bbox": [
715
+ 507,
716
+ 560,
717
+ 882,
718
+ 609
719
+ ],
720
+ "page_idx": 3
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "Union Operation: The union operation maps several fuzzy sets into the union set of these fuzzy sets. Due to the De Morgan's Law, we do not need to define the union operation directly. We define the union operation by utilizing the intersection operation and complement operation as follows:",
725
+ "bbox": [
726
+ 507,
727
+ 618,
728
+ 882,
729
+ 714
730
+ ],
731
+ "page_idx": 3
732
+ },
733
+ {
734
+ "type": "equation",
735
+ "text": "\n$$\n\\mathcal {U}: [ 0, 1 ] ^ {n d} \\to [ 0, 1 ] ^ {d}\n$$\n",
736
+ "text_format": "latex",
737
+ "bbox": [
738
+ 636,
739
+ 722,
740
+ 794,
741
+ 741
742
+ ],
743
+ "page_idx": 3
744
+ },
745
+ {
746
+ "type": "equation",
747
+ "text": "\n$$\n\\mathcal {U} \\left(\\boldsymbol {e} ^ {1}, \\boldsymbol {e} ^ {2}, \\dots , \\boldsymbol {e} ^ {n}\\right) = \\mathcal {C} \\left(\\mathcal {I} \\left(\\mathcal {C} \\left(\\boldsymbol {e} ^ {1}\\right), \\mathcal {C} \\left(\\boldsymbol {e} ^ {2}\\right), \\dots , \\mathcal {C} \\left(\\boldsymbol {e} ^ {n}\\right)\\right)\\right)\n$$\n",
748
+ "text_format": "latex",
749
+ "bbox": [
750
+ 507,
751
+ 743,
752
+ 895,
753
+ 763
754
+ ],
755
+ "page_idx": 3
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Projection Operation: The projection operation maps a fuzzy set into another fuzzy set with a relation type $r$ . We implement the projection operation by utilizing the G��del t-norm as follows:",
760
+ "bbox": [
761
+ 507,
762
+ 771,
763
+ 884,
764
+ 835
765
+ ],
766
+ "page_idx": 3
767
+ },
768
+ {
769
+ "type": "equation",
770
+ "text": "\n$$\n\\begin{array}{l} \\mathcal {P} _ {r}: [ 0, 1 ] ^ {d} \\to [ 0, 1 ] ^ {d} \\\\ \\mathcal{P}_{r}(\\boldsymbol {e})_{j} = 1 - \\min_{1\\leq i\\leq d}\\bigl(1 - \\boldsymbol{e}_{i}\\boldsymbol{X}_{i,r,j}\\bigr) \\\\ = \\max _ {1 \\leq i \\leq d} e _ {i} X _ {i, r, j} \\\\ \\end{array}\n$$\n",
771
+ "text_format": "latex",
772
+ "bbox": [
773
+ 569,
774
+ 844,
775
+ 821,
776
+ 917
777
+ ],
778
+ "page_idx": 3
779
+ },
780
+ {
781
+ "type": "header",
782
+ "text": "Query",
783
+ "bbox": [
784
+ 179,
785
+ 82,
786
+ 225,
787
+ 95
788
+ ],
789
+ "page_idx": 3
790
+ },
791
+ {
792
+ "type": "header",
793
+ "text": "Which universities do the Turing Award winners in the field of deep learning work in?",
794
+ "bbox": [
795
+ 305,
796
+ 84,
797
+ 880,
798
+ 99
799
+ ],
800
+ "page_idx": 3
801
+ },
802
+ {
803
+ "type": "page_number",
804
+ "text": "13795",
805
+ "bbox": [
806
+ 477,
807
+ 927,
808
+ 524,
809
+ 941
810
+ ],
811
+ "page_idx": 3
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "where $X\\in [0,1]^{|\\mathcal{V}|\\times |\\mathcal{R}|\\times |\\mathcal{V}|}$ is the KG tensor and $\\pmb {X}_{i,r,j}$ denotes the likelihood of a triplet $(i,r,j)$ which is provided by the KGC model. We do not use product t-norm here because continued product often leads to accumulated errors for large $d$ Compared to QTO (Bai et al., 2023), we define the projection operation and the complement operation separately, which make our method more flexible.",
816
+ "bbox": [
817
+ 112,
818
+ 82,
819
+ 487,
820
+ 212
821
+ ],
822
+ "page_idx": 4
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "In the training process, since the value of $X_{i,r,j}$ is constantly changed, we need to recompute the value of $X_{i,r,j}$ . The primary bottleneck of the projection operation is the computation. We can take the nonzero entries of $e$ and multiply them with the corresponding entries in $\\pmb{X}$ to get results. Thus, the computational complexity of projection operation is $\\mathcal{O}(|\\mathcal{V}||\\{e_i|e_i > 0\\})$ .",
827
+ "bbox": [
828
+ 110,
829
+ 212,
830
+ 485,
831
+ 341
832
+ ],
833
+ "page_idx": 4
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "In the test process, since the value of $X_{i,r,j}$ is fixed, we pre-compute the value of $X_{i,r,j}$ to reduce the computation. The primary bottleneck of the projection operation is the memory consumption of tensor $X$ . $X$ contains $|\\mathcal{V}|^2 |\\mathcal{R}|$ entries. Due to the sparsity of the KG, most entries of $X$ have small values, which can be filtered to 0 by a threshold $\\epsilon > 0$ while maintaining precision (Bai et al., 2023).",
838
+ "bbox": [
839
+ 112,
840
+ 342,
841
+ 485,
842
+ 470
843
+ ],
844
+ "page_idx": 4
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "4.2 Calibration",
849
+ "text_level": 1,
850
+ "bbox": [
851
+ 112,
852
+ 482,
853
+ 252,
854
+ 495
855
+ ],
856
+ "page_idx": 4
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Upon establishing the four fuzzy set operations, the sole requirement for computing the results of queries is a calibrated KG tensor $\\mathbf{X}$ . The entries of a calibrated KG tensor $\\mathbf{X}$ are expected to fall within the range of 0 to 1, with values associated with true triplets approaching 1, and those linked to false triplets nearing 0. In the event of possessing a fully calibrated KG tensor $\\mathbf{X}$ , accurate answers of queries can be attained through the utilization of the four fuzzy set operations.",
861
+ "bbox": [
862
+ 112,
863
+ 502,
864
+ 485,
865
+ 663
866
+ ],
867
+ "page_idx": 4
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "The KG tensor $X$ is furnished by a KGC model, which defines a scoring function $f(h,r,t)$ to measure the likelihood of a triplet $(h,r,t)$ . The ranking metrics, MRR and H@N (Bordes et al., 2013), are commonly used to evaluate KGC models. For example, the definition of MRR is as follows:",
872
+ "bbox": [
873
+ 112,
874
+ 665,
875
+ 487,
876
+ 760
877
+ ],
878
+ "page_idx": 4
879
+ },
880
+ {
881
+ "type": "equation",
882
+ "text": "\n$$\n\\mathrm {M R R} = \\sum_ {(h, r, t) \\in \\mathcal {G}} \\frac {1}{| \\mathcal {G} |} \\frac {1}{\\operatorname {r a n k} (h , r , t)}\n$$\n",
883
+ "text_format": "latex",
884
+ "bbox": [
885
+ 174,
886
+ 771,
887
+ 425,
888
+ 812
889
+ ],
890
+ "page_idx": 4
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "where $\\mathcal{G}$ is a dataset and $\\mathrm{rank}(h,r,t)$ is the rank of tail entity $t$ in the predicted list for the query $(h,r,?)$ . $\\mathrm{rank}(h,r,t)$ is computed based on the scoring function $f(h,r,t)$ . The ranking metrics mainly focus on ranking rather than the specific numerical value of $f(h,r,t)$ , which is important",
895
+ "bbox": [
896
+ 112,
897
+ 824,
898
+ 487,
899
+ 921
900
+ ],
901
+ "page_idx": 4
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "for complex query answering. Subsequently, an illustrative example is provided to elucidate this concept.",
906
+ "bbox": [
907
+ 507,
908
+ 84,
909
+ 880,
910
+ 131
911
+ ],
912
+ "page_idx": 4
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "For example, supposing we have a query",
917
+ "bbox": [
918
+ 526,
919
+ 133,
920
+ 831,
921
+ 148
922
+ ],
923
+ "page_idx": 4
924
+ },
925
+ {
926
+ "type": "equation",
927
+ "text": "\n$$\nq = V _ {?}: R _ {1} \\left(a _ {1}, V _ {?} \\right) \\wedge R _ {2} \\left(a _ {2}, V _ {?} \\right)\n$$\n",
928
+ "text_format": "latex",
929
+ "bbox": [
930
+ 566,
931
+ 161,
932
+ 820,
933
+ 177
934
+ ],
935
+ "page_idx": 4
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "where entity $a_1$ can be represented by a vector $\\pmb{a}_1 = [1,0,0,0]$ , entity $a_2$ can be represented by a vector $\\pmb{a}_2 = [0,1,0,0]$ . Assuming the KG tensor $\\pmb{X}$ is satisfied with $\\pmb{X}_{1,1,:} = [0.6,0.4,0.2,0.1]$ and $\\pmb{X}_{2,2,:} = [0.5,0.7,0.2,0.1]$ . Then, we have that $\\mathcal{P}_1(\\pmb{a}_1) = \\pmb{X}_{1,1,:} = [0.6,0.4,0.2,0.1], \\mathcal{P}_2(\\pmb{a}_2) = \\pmb{X}_{2,2,:} = [0.5,0.7,0.2,0.1]$ and the predicted answers",
940
+ "bbox": [
941
+ 507,
942
+ 190,
943
+ 882,
944
+ 316
945
+ ],
946
+ "page_idx": 4
947
+ },
948
+ {
949
+ "type": "equation",
950
+ "text": "\n$$\n\\mathcal {I} \\left(\\mathcal {P} _ {1} (\\boldsymbol {a} _ {1}), \\mathcal {P} _ {2} (\\boldsymbol {a} _ {2})\\right) = [ 0. 3 0, 0. 2 8, 0. 0 4, 0. 0 1 ]\n$$\n",
951
+ "text_format": "latex",
952
+ "bbox": [
953
+ 524,
954
+ 331,
955
+ 862,
956
+ 348
957
+ ],
958
+ "page_idx": 4
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Then the largest entry in $\\mathcal{I}(\\mathcal{P}_1(\\pmb {a}_1),\\mathcal{P}_2(\\pmb {a}_2))$ is the first entry.",
963
+ "bbox": [
964
+ 507,
965
+ 359,
966
+ 880,
967
+ 391
968
+ ],
969
+ "page_idx": 4
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "If we let $\\hat{\\pmb{X}}_{1,1,:} = 0.1\\pmb{X}_{1,1,:} + 0.1$ then we have that $\\mathcal{P}_1(\\pmb {a}_1) = \\hat{\\pmb{X}}_{1,1,:} = [0.16,0.14,0.12,0.11],$ $\\mathcal{P}_2(\\pmb {a}_2) = \\pmb {X}_{2,2,:} = [0.5,0.7,0.2,0.1]$ and the predicted answers",
974
+ "bbox": [
975
+ 507,
976
+ 392,
977
+ 882,
978
+ 456
979
+ ],
980
+ "page_idx": 4
981
+ },
982
+ {
983
+ "type": "equation",
984
+ "text": "\n$$\n\\mathcal {I} \\left(\\mathcal {P} _ {1} \\left(a _ {1}\\right), \\mathcal {P} _ {2} \\left(a _ {2}\\right)\\right) = [ 0. 0 8, 0. 0 9 8, 0. 0 2 4, 0. 0 1 1 ]\n$$\n",
985
+ "text_format": "latex",
986
+ "bbox": [
987
+ 510,
988
+ 469,
989
+ 875,
990
+ 486
991
+ ],
992
+ "page_idx": 4
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "Then the largest entry in $\\mathcal{I}(\\mathcal{P}_1(\\pmb {a}_1),\\mathcal{P}_2(\\pmb {a}_2))$ is the second entry.",
997
+ "bbox": [
998
+ 507,
999
+ 498,
1000
+ 880,
1001
+ 530
1002
+ ],
1003
+ "page_idx": 4
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "While the aforementioned transformation does not alter the ranking metrics of KGC models, it can affect the ranking metrics of CLQA models. Hence, it is imperative to calibrate the KGC models to acquire a calibrated KG tensor $\\mathbf{X}$ for the CLQA task.",
1008
+ "bbox": [
1009
+ 507,
1010
+ 531,
1011
+ 882,
1012
+ 625
1013
+ ],
1014
+ "page_idx": 4
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "We get a calibrated KG tensor $X$ in the following steps:",
1019
+ "bbox": [
1020
+ 507,
1021
+ 627,
1022
+ 882,
1023
+ 659
1024
+ ],
1025
+ "page_idx": 4
1026
+ },
1027
+ {
1028
+ "type": "list",
1029
+ "sub_type": "text",
1030
+ "list_items": [
1031
+ "1. We train a KGC model to get a scoring function $f(h, r, t)$ .",
1032
+ "2. We use softmax function to normalize $f(h, r, t)$ and denote the new scoring function as $\\hat{f}(h, r, t)$ ."
1033
+ ],
1034
+ "bbox": [
1035
+ 522,
1036
+ 670,
1037
+ 882,
1038
+ 760
1039
+ ],
1040
+ "page_idx": 4
1041
+ },
1042
+ {
1043
+ "type": "equation",
1044
+ "text": "\n$$\n\\begin{array}{l} \\hat {f} (h, r, t) = \\min (N \\frac {\\exp (f (h , r , t))}{\\sum_ {t ^ {\\prime} = 1} ^ {| \\mathcal {V} |} \\exp (f (h , r , t ^ {\\prime}))}, 1) \\\\ N = \\left\\{ \\begin{array}{l l} M, & M > 0 \\\\ \\alpha , & M = 0 \\end{array} \\right. \\\\ M = \\left| \\left\\{\\left(h ^ {\\prime}, r ^ {\\prime}, t ^ {\\prime}\\right) \\in \\mathcal {G} _ {\\text {t r a i n}} \\mid h ^ {\\prime} = h, r ^ {\\prime} = r \\right\\} \\right| \\\\ \\end{array}\n$$\n",
1045
+ "text_format": "latex",
1046
+ "bbox": [
1047
+ 544,
1048
+ 771,
1049
+ 889,
1050
+ 876
1051
+ ],
1052
+ "page_idx": 4
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "where $\\mathcal{G}_{\\mathrm{train}}$ denotes the training set of a KG and $\\alpha \\geq 0$ is a hyper-parameter.",
1057
+ "bbox": [
1058
+ 544,
1059
+ 889,
1060
+ 882,
1061
+ 921
1062
+ ],
1063
+ "page_idx": 4
1064
+ },
1065
+ {
1066
+ "type": "page_number",
1067
+ "text": "13796",
1068
+ "bbox": [
1069
+ 477,
1070
+ 927,
1071
+ 524,
1072
+ 940
1073
+ ],
1074
+ "page_idx": 4
1075
+ },
1076
+ {
1077
+ "type": "image",
1078
+ "img_path": "images/85e5d918102b5af67835c2c142aa6e15690573589e670dd915af50ba949c3aa0.jpg",
1079
+ "image_caption": [
1080
+ "Figure 2: Fourteen types of queries used in the datasets, where \"p\" denotes relation projection, \"i\" denotes intersection, \"u\" denotes union, and \"n\" denotes negation."
1081
+ ],
1082
+ "image_footnote": [],
1083
+ "bbox": [
1084
+ 115,
1085
+ 84,
1086
+ 884,
1087
+ 240
1088
+ ],
1089
+ "page_idx": 5
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "3. We adapt the KGC models to complex queries datasets.",
1094
+ "bbox": [
1095
+ 127,
1096
+ 321,
1097
+ 485,
1098
+ 351
1099
+ ],
1100
+ "page_idx": 5
1101
+ },
1102
+ {
1103
+ "type": "equation",
1104
+ "text": "\n$$\n\\tilde {f} (h, r, t) = \\min (\\boldsymbol {W} _ {h, r} \\hat {f} (h, r, t), 1)\n$$\n",
1105
+ "text_format": "latex",
1106
+ "bbox": [
1107
+ 184,
1108
+ 362,
1109
+ 450,
1110
+ 381
1111
+ ],
1112
+ "page_idx": 5
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "where $\\mathbf{W} \\in (0, +\\inf)^{|\\mathcal{V}| \\times |\\mathcal{R}|}$ is a parameter matrix. For a query-answer pair $(q, [[q]])$ , where $[[q]]$ denotes the set of answers of query $q$ , we optimize $\\mathbf{W}$ by the following loss function:",
1117
+ "bbox": [
1118
+ 149,
1119
+ 390,
1120
+ 489,
1121
+ 470
1122
+ ],
1123
+ "page_idx": 5
1124
+ },
1125
+ {
1126
+ "type": "equation",
1127
+ "text": "\n$$\n\\mathcal {L} = - \\frac {1}{| | [ q ] | |} \\sum_ {i \\in [ [ q ] ]} \\log \\boldsymbol {a} _ {i} - \\frac {1}{| | [ q ] | |} \\sum_ {i \\in [ [ q ] ]} \\log (1 - \\boldsymbol {a} _ {i})\n$$\n",
1128
+ "text_format": "latex",
1129
+ "bbox": [
1130
+ 149,
1131
+ 479,
1132
+ 495,
1133
+ 521
1134
+ ],
1135
+ "page_idx": 5
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "where $\\pmb{a}$ is the vector representation of predicted answers.",
1140
+ "bbox": [
1141
+ 149,
1142
+ 531,
1143
+ 489,
1144
+ 561
1145
+ ],
1146
+ "page_idx": 5
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "4. We replace the values of $\\tilde{f}(h, r, t)$ with 1 for triplets $(h, r, t) \\in \\mathcal{G}_{\\mathrm{train}} \\cup \\mathcal{G}_{\\mathrm{validation}}$ to get the calibrated tensor $X$ , i.e.,",
1151
+ "bbox": [
1152
+ 127,
1153
+ 571,
1154
+ 487,
1155
+ 620
1156
+ ],
1157
+ "page_idx": 5
1158
+ },
1159
+ {
1160
+ "type": "equation",
1161
+ "text": "\n$$\n\\boldsymbol {X} _ {h, r, t} =\n$$\n",
1162
+ "text_format": "latex",
1163
+ "bbox": [
1164
+ 163,
1165
+ 632,
1166
+ 235,
1167
+ 649
1168
+ ],
1169
+ "page_idx": 5
1170
+ },
1171
+ {
1172
+ "type": "equation",
1173
+ "text": "\n$$\n\\left\\{ \\begin{array}{l l} 1 & (h, r, t) \\in \\mathcal {G} _ {\\text {t r a i n}} \\cup \\mathcal {G} _ {\\text {v a l i d a t i o n}} \\\\ \\tilde {f} (h, r, t) & (h, r, t) \\notin \\mathcal {G} _ {\\text {t r a i n}} \\cup \\mathcal {G} _ {\\text {v a l i d a t i o n}} \\end{array} \\right.\n$$\n",
1174
+ "text_format": "latex",
1175
+ "bbox": [
1176
+ 166,
1177
+ 652,
1178
+ 472,
1179
+ 694
1180
+ ],
1181
+ "page_idx": 5
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "where $\\mathcal{G}_{\\mathrm{validation}}$ denotes the validation set of a KG.",
1186
+ "bbox": [
1187
+ 149,
1188
+ 702,
1189
+ 485,
1190
+ 733
1191
+ ],
1192
+ "page_idx": 5
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "The first step is to get a pre-train KGC model, which lays the foundation for subsequent steps. Although any KGC model is allowed, it is better to choose a KGC model with good performance.",
1197
+ "bbox": [
1198
+ 112,
1199
+ 744,
1200
+ 487,
1201
+ 808
1202
+ ],
1203
+ "page_idx": 5
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "The second step is to normalize the scoring function $f(h,r,t)$ provided by the first step, which can make the values of $\\hat{f}(h,r,t)$ between 0 and 1, and the larger the value of $f(h,r,t)$ , the larger the value of $\\hat{f}(h,r,t)$ . A good property of softmax function is that it is invariant under translation transformation, i.e., $\\operatorname{softmax}(x + c) = \\operatorname{softmax}(x)$",
1208
+ "bbox": [
1209
+ 112,
1210
+ 809,
1211
+ 489,
1212
+ 921
1213
+ ],
1214
+ "page_idx": 5
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "for any $c \\in \\mathbb{R}$ . The meaning of $N$ is the number of answer tail entities for a query $(h, r, ?)$ . As there can be multiple answer tail entities for a query $(h, r, ?)$ , each of their corresponding predicted values should be close to 1. Thus, we multiply $\\text{softmax}(f(h, r, t))$ by $N$ to make it close to 1. The operation of taking the minimum value is to prevent the value from exceeding 1. The hyperparameter $\\alpha$ is to prevent $\\hat{f}(h, r, t)$ from becoming 0 for the case where $M = 0$ .",
1219
+ "bbox": [
1220
+ 505,
1221
+ 319,
1222
+ 884,
1223
+ 480
1224
+ ],
1225
+ "page_idx": 5
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "The third step adapts the KGC models to CLQA datasets. Since the adaptation function, linear function, is a monotonically increasing function, the new scoring function $\\tilde{f}(h,r,t)$ have the same results of KGC ranking metrics as $f(h,r,t)$ . Thus, our method can improve the performance of CLQA while maintaining the evaluation results of KGC. This step is lightweight because the adaptation function is simple and only the parameter matrix $\\mathbf{W}$ is optimized.",
1230
+ "bbox": [
1231
+ 507,
1232
+ 483,
1233
+ 884,
1234
+ 643
1235
+ ],
1236
+ "page_idx": 5
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "The fourth step replaces the value of $\\tilde{f}(h, r, t)$ with 1 for known true triplets to get a calibrated KG tensor $X$ . While evaluating KGC models, the known true triplets are not typically taken into account. Nonetheless, this step is crucial for CLQA as it ensures the calibration of the tensor $X$ for better performance.",
1241
+ "bbox": [
1242
+ 507,
1243
+ 644,
1244
+ 882,
1245
+ 757
1246
+ ],
1247
+ "page_idx": 5
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "5 Experiments",
1252
+ "text_level": 1,
1253
+ "bbox": [
1254
+ 507,
1255
+ 772,
1256
+ 655,
1257
+ 790
1258
+ ],
1259
+ "page_idx": 5
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "5.1 Experimental Settings",
1264
+ "text_level": 1,
1265
+ "bbox": [
1266
+ 507,
1267
+ 801,
1268
+ 729,
1269
+ 816
1270
+ ],
1271
+ "page_idx": 5
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Datasets We evaluate our method on three popular knowledge graph datasets, including FB15k (Bordes et al., 2013), FB15k-237 (Toutanova et al., 2015), NELL995 (Xiong et al., 2017). We use the standard FOL queries generated in BetaE (Ren and Leskovec, 2020), consisting of 9",
1276
+ "bbox": [
1277
+ 507,
1278
+ 824,
1279
+ 882,
1280
+ 921
1281
+ ],
1282
+ "page_idx": 5
1283
+ },
1284
+ {
1285
+ "type": "page_number",
1286
+ "text": "13797",
1287
+ "bbox": [
1288
+ 477,
1289
+ 927,
1290
+ 524,
1291
+ 940
1292
+ ],
1293
+ "page_idx": 5
1294
+ },
1295
+ {
1296
+ "type": "table",
1297
+ "img_path": "images/88291a588ac3244be3c0c83f39b177c3bdc373d5f9d402e0f7d4ff44d90d22a3.jpg",
1298
+ "table_caption": [],
1299
+ "table_footnote": [],
1300
+ "table_body": "<table><tr><td>Models</td><td>avgp</td><td>avgn</td><td>1p</td><td>2p</td><td>3p</td><td>2i</td><td>3i</td><td>pi</td><td>ip</td><td>2u</td><td>up</td><td>2in</td><td>3in</td><td>inp</td><td>pin</td><td>pni</td></tr><tr><td colspan=\"17\">FB15k</td></tr><tr><td>GQE</td><td>28.0</td><td>-</td><td>54.6</td><td>15.3</td><td>10.8</td><td>39.7</td><td>51.4</td><td>27.6</td><td>19.1</td><td>22.1</td><td>11.6</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Q2B</td><td>38.0</td><td>-</td><td>68.0</td><td>21.0</td><td>14.2</td><td>55.1</td><td>66.5</td><td>39.4</td><td>26.1</td><td>35.1</td><td>16.7</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>BetaE</td><td>41.6</td><td>11.8</td><td>65.1</td><td>25.7</td><td>24.7</td><td>55.8</td><td>66.5</td><td>43.9</td><td>28.1</td><td>40.1</td><td>25.2</td><td>14.3</td><td>14.7</td><td>11.5</td><td>6.5</td><td>12.4</td></tr><tr><td>ConE</td><td>49.8</td><td>14.8</td><td>73.3</td><td>33.8</td><td>29.2</td><td>64.4</td><td>73.7</td><td>50.9</td><td>35.7</td><td>55.7</td><td>31.4</td><td>17.9</td><td>18.7</td><td>12.5</td><td>9.8</td><td>15.1</td></tr><tr><td>GNN-QE</td><td>72.8</td><td>38.6</td><td>88.5</td><td>69.3</td><td>58.7</td><td>79.7</td><td>83.5</td><td>69.9</td><td>70.4</td><td>74.1</td><td>61.0</td><td>44.7</td><td>41.7</td><td>42.0</td><td>30.1</td><td>34.3</td></tr><tr><td>CQD-CO</td><td>46.9</td><td>-</td><td>89.2</td><td>25.3</td><td>13.4</td><td>74.4</td><td>78.3</td><td>44.1</td><td>33.2</td><td>41.8</td><td>21.9</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQD-Beam</td><td>58.2</td><td>-</td><td>89.2</td><td>54.3</td><td>28.6</td><td>74.4</td><td>78.3</td><td>58.2</td><td>67.7</td><td>42.4</td><td>30.9</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQDA</td><td>70.4</td><td>42.8</td><td>89.2</td><td>64.5</td><td>57.9</td><td>76.1</td><td>79.4</td><td>70.0</td><td>70.6</td><td>68.4</td><td>57.9</td><td>54.7</td><td>47.1</td><td>37.6</td><td>35.3</td><td>24.6</td></tr><tr><td>QTO</td><td>74.0</td><td>49.2</td><td>89.5</td><td>67.4</td><td>58.8</td><td>80.3</td><td>83.6</td><td>75.2</td><td>74.0</td><td>76.7</td><td>61.3</td><td>61.1</td><td>61.2</td><td>47.6</td><td>48.9</td><td>27.5</td></tr><tr><td>CKGR</td><td>80.6</td><td>71.0</td><td>89.9</td><td>76.5</td><td>72.8</td><td>84.6</td><td>88.1</td><td>82.1</td><td>80.4</td><td>78.7</td><td>72.1</td><td>75.0</td><td>74.3</td><td>62.6</td><td>70.7</td><td>72.5</td></tr><tr><td colspan=\"17\">FB15k-237</td></tr><tr><td>GQE</td><td>16.3</td><td>-</td><td>35.0</td><td>7.2</td><td>5.3</td><td>23.3</td><td>34.6</td><td>16.5</td><td>10.7</td><td>8.2</td><td>5.7</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Q2B</td><td>20.1</td><td>-</td><td>40.6</td><td>9.4</td><td>6.8</td><td>29.5</td><td>42.3</td><td>21.2</td><td>12.6</td><td>11.3</td><td>7.6</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>BetaE</td><td>20.9</td><td>5.5</td><td>39.0</td><td>10.9</td><td>10.0</td><td>28.8</td><td>42.5</td><td>22.4</td><td>12.6</td><td>12.4</td><td>9.7</td><td>5.1</td><td>7.9</td><td>7.4</td><td>3.5</td><td>3.4</td></tr><tr><td>ConE</td><td>23.4</td><td>5.9</td><td>41.8</td><td>12.8</td><td>11.0</td><td>32.6</td><td>47.3</td><td>25.5</td><td>14.0</td><td>14.5</td><td>10.8</td><td>5.4</td><td>8.6</td><td>7.8</td><td>4.0</td><td>3.6</td></tr><tr><td>FuzzQE</td><td>24.0</td><td>7.8</td><td>42.8</td><td>12.9</td><td>10.3</td><td>33.3</td><td>46.9</td><td>26.9</td><td>17.8</td><td>14.6</td><td>10.3</td><td>8.5</td><td>11.6</td><td>7.8</td><td>5.2</td><td>5.8</td></tr><tr><td>GNN-QE</td><td>26.8</td><td>10.2</td><td>42.8</td><td>14.7</td><td>11.8</td><td>38.3</td><td>54.1</td><td>31.1</td><td>18.9</td><td>16.2</td><td>13.4</td><td>10.0</td><td>16.8</td><td>9.3</td><td>7.2</td><td>7.8</td></tr><tr><td>CQD-CO</td><td>21.8</td><td>-</td><td>46.7</td><td>9.5</td><td>6.3</td><td>31.2</td><td>40.6</td><td>23.6</td><td>16.0</td><td>14.5</td><td>8.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQD-Beam</td><td>22.3</td><td>-</td><td>46.7</td><td>11.6</td><td>8.0</td><td>31.2</td><td>40.6</td><td>21.2</td><td>18.7</td><td>14.6</td><td>8.4</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQDA</td><td>25.7</td><td>10.7</td><td>46.7</td><td>13.6</td><td>11.4</td><td>34.5</td><td>48.3</td><td>27.4</td><td>20.9</td><td>17.6</td><td>11.4</td><td>13.6</td><td>16.8</td><td>7.9</td><td>8.9</td><td>5.8</td></tr><tr><td>QTO</td><td>33.5</td><td>15.5</td><td>49.0</td><td>21.4</td><td>21.2</td><td>43.1</td><td>56.8</td><td>38.1</td><td>28.0</td><td>22.7</td><td>21.4</td><td>16.8</td><td>26.7</td><td>15.1</td><td>13.6</td><td>5.4</td></tr><tr><td>CKGR</td><td>34.8</td><td>25.3</td><td>49.2</td><td>22.3</td><td>22.3</td><td>45.1</td><td>60.3</td><td>40.3</td><td>29.1</td><td>22.9</td><td>22.0</td><td>23.9</td><td>37.5</td><td>21.0</td><td>23.2</td><td>21.2</td></tr><tr><td colspan=\"17\">NELL995</td></tr><tr><td>GQE</td><td>18.6</td><td>-</td><td>32.8</td><td>11.9</td><td>9.6</td><td>27.5</td><td>35.2</td><td>18.4</td><td>14.4</td><td>8.5</td><td>8.8</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Q2B</td><td>22.9</td><td>-</td><td>42.2</td><td>14.0</td><td>11.2</td><td>33.3</td><td>44.5</td><td>22.4</td><td>16.8</td><td>11.3</td><td>10.3</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>BetaE</td><td>24.6</td><td>5.9</td><td>53.0</td><td>13.0</td><td>11.4</td><td>37.6</td><td>47.5</td><td>24.1</td><td>14.3</td><td>12.2</td><td>8.5</td><td>5.1</td><td>7.8</td><td>10.0</td><td>3.1</td><td>3.5</td></tr><tr><td>ConE</td><td>27.2</td><td>6.4</td><td>53.1</td><td>16.1</td><td>13.9</td><td>40.0</td><td>50.8</td><td>26.3</td><td>17.5</td><td>15.3</td><td>11.3</td><td>5.7</td><td>8.1</td><td>10.8</td><td>3.5</td><td>3.9</td></tr><tr><td>FuzzQE</td><td>27.0</td><td>7.8</td><td>47.4</td><td>17.2</td><td>14.6</td><td>39.5</td><td>49.2</td><td>26.2</td><td>20.6</td><td>15.3</td><td>12.6</td><td>7.8</td><td>9.8</td><td>11.1</td><td>4.9</td><td>5.5</td></tr><tr><td>GNN-QE</td><td>28.9</td><td>9.7</td><td>53.3</td><td>18.9</td><td>14.9</td><td>42.4</td><td>52.5</td><td>30.8</td><td>18.9</td><td>15.9</td><td>12.6</td><td>9.9</td><td>14.6</td><td>11.4</td><td>6.3</td><td>6.3</td></tr><tr><td>CQD-CO</td><td>28.8</td><td>-</td><td>60.4</td><td>17.8</td><td>12.7</td><td>39.3</td><td>46.6</td><td>30.1</td><td>22.0</td><td>17.3</td><td>13.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQD-Beam</td><td>28.6</td><td>-</td><td>60.4</td><td>20.6</td><td>11.6</td><td>39.3</td><td>46.6</td><td>25.4</td><td>23.9</td><td>17.5</td><td>12.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQDA</td><td>32.3</td><td>13.3</td><td>60.4</td><td>22.9</td><td>16.7</td><td>43.4</td><td>52.6</td><td>32.1</td><td>26.4</td><td>20.0</td><td>17.0</td><td>15.1</td><td>18.6</td><td>15.8</td><td>10.7</td><td>6.5</td></tr><tr><td>QTO</td><td>32.9</td><td>12.9</td><td>60.7</td><td>24.1</td><td>21.6</td><td>42.5</td><td>50.6</td><td>31.3</td><td>26.5</td><td>20.4</td><td>17.9</td><td>13.8</td><td>17.9</td><td>16.9</td><td>9.9</td><td>5.9</td></tr><tr><td>CKGR</td><td>35.3</td><td>19.9</td><td>61.4</td><td>25.7</td><td>24.1</td><td>45.8</td><td>58.8</td><td>33.9</td><td>29.2</td><td>20.5</td><td>18.7</td><td>19.8</td><td>27.5</td><td>20.4</td><td>17.4</td><td>14.6</td></tr></table>",
1301
+ "bbox": [
1302
+ 154,
1303
+ 80,
1304
+ 838,
1305
+ 435
1306
+ ],
1307
+ "page_idx": 6
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "Table 1: Complex Query Answering results on FB15k, FB15k-237 and NELL995 test sets with MRR metrics. avg ${}_{p}$ is the average on existential positive first-order queries. avg ${}_{n}$ is the average on queries with negation.",
1312
+ "bbox": [
1313
+ 112,
1314
+ 445,
1315
+ 880,
1316
+ 475
1317
+ ],
1318
+ "page_idx": 6
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "types of existential positive first-order queries (1p/2p/3p/2i/3i/pi/ip/2u/up) and 5 types of queries with negation (2in/3in/inp/pin/pni). Specifically, \"p\", \"i\", \"u\", and \"n\" stand for \"projection\", \"intersection\", \"union\", and 'negation' in the query structure, respectively. The query types are shown in Figure 2. During adaptation, we only use queries of type 1p, 2i, 3i, 2in and 3in of the training dataset to reduce computation.",
1323
+ "bbox": [
1324
+ 112,
1325
+ 506,
1326
+ 487,
1327
+ 650
1328
+ ],
1329
+ "page_idx": 6
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "Baselines We compare our method with state-of-the-art methods on complex query answering, query embedding methods, including GQE (Hamilton et al., 2018), Q2B (Ren et al., 2020), BetaE (Ren and Leskovec, 2020)), ConE (Zhang et al., 2021), FuzzQE (Chen et al., 2022), GNN-QE Zhu et al., 2022), complex query decomposition methods, including CQD-CO (Aragelyan et al., 2020), CQD-beam (Aragelyan et al., 2020) CQD (Aragelyan et al., 2023) and QTO (Bai et al., 2023).",
1334
+ "bbox": [
1335
+ 112,
1336
+ 665,
1337
+ 489,
1338
+ 826
1339
+ ],
1340
+ "page_idx": 6
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "Evaluation Metrics We adopt the evaluation framework introduced in BetaE (Ren and Leskovec, 2020), which involves categorizing the answers to each complex query into two distinct groups: easy answers and hard answers. For validation/test",
1345
+ "bbox": [
1346
+ 112,
1347
+ 841,
1348
+ 489,
1349
+ 921
1350
+ ],
1351
+ "page_idx": 6
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "queries, easy answers refer to entities that can be reached by edges in training/validation graph, while hard answers are those that can only be inferred by predicting missing edges in the validation/test graph. We evaluate the method on complex queries by calculating the rank for each hard answer against non-answers and computing the mean reciprocal rank (MRR) (Bordes et al., 2013).",
1356
+ "bbox": [
1357
+ 507,
1358
+ 506,
1359
+ 884,
1360
+ 634
1361
+ ],
1362
+ "page_idx": 6
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "Implementation Details For pre-train, our method can be incorporated with any KGC model. We select a state-of-the-art KGC model, ComplEx (Trouillon et al., 2017) trained with N3 regularization (Lacroix et al., 2018) and auxiliary relation prediction task (Chen et al., 2021). We choose the hyper-parameters with the best MRR on the validation set.",
1367
+ "bbox": [
1368
+ 507,
1369
+ 659,
1370
+ 884,
1371
+ 785
1372
+ ],
1373
+ "page_idx": 6
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "For training of CLQA, we train at most 5 epochs. For testing of CLQA, we pre-compute the KG tensor $X$ to make our method achieve higher efficiency compared to previous query embedding methods (Bai et al., 2023). To save the memory usage of $X$ , we select an appropriate $\\epsilon$ such that after filtering all entries that less than $\\epsilon$ can be stored on a single GPU.",
1378
+ "bbox": [
1379
+ 507,
1380
+ 791,
1381
+ 884,
1382
+ 921
1383
+ ],
1384
+ "page_idx": 6
1385
+ },
1386
+ {
1387
+ "type": "page_number",
1388
+ "text": "13798",
1389
+ "bbox": [
1390
+ 477,
1391
+ 927,
1392
+ 524,
1393
+ 940
1394
+ ],
1395
+ "page_idx": 6
1396
+ },
1397
+ {
1398
+ "type": "table",
1399
+ "img_path": "images/64be0e39599c09b0d00a7763f528364d0e94480dbdbf99d2c42a465c862f8aa1.jpg",
1400
+ "table_caption": [],
1401
+ "table_footnote": [],
1402
+ "table_body": "<table><tr><td>Models</td><td>\\( avg_p \\)</td><td>\\( avg_n \\)</td><td>1p</td><td>2p</td><td>3p</td><td>2i</td><td>3i</td><td>pi</td><td>ip</td><td>2u</td><td>up</td><td>2in</td><td>3in</td><td>inp</td><td>pin</td><td>pni</td></tr><tr><td colspan=\"17\">FB15k</td></tr><tr><td>S12</td><td>78.1</td><td>29.5</td><td>89.9</td><td>73.9</td><td>68.0</td><td>82.2</td><td>84.9</td><td>78.0</td><td>77.0</td><td>78.7</td><td>70.0</td><td>33.8</td><td>34.3</td><td>31.7</td><td>23.7</td><td>23.8</td></tr><tr><td>S123</td><td>78.7</td><td>45.6</td><td>89.9</td><td>74.0</td><td>68.7</td><td>83.3</td><td>86.3</td><td>79.4</td><td>77.9</td><td>78.7</td><td>69.9</td><td>51.4</td><td>50.3</td><td>45.4</td><td>39.5</td><td>41.3</td></tr><tr><td>S1234</td><td>80.6</td><td>71.0</td><td>89.9</td><td>76.5</td><td>72.8</td><td>84.6</td><td>88.1</td><td>82.1</td><td>80.4</td><td>78.7</td><td>72.1</td><td>75.0</td><td>74.3</td><td>62.6</td><td>70.7</td><td>72.5</td></tr><tr><td colspan=\"17\">FB15k-237</td></tr><tr><td>S12</td><td>32.3</td><td>9.6</td><td>49.2</td><td>20.5</td><td>19.8</td><td>41.4</td><td>54.8</td><td>35.9</td><td>26.6</td><td>22.7</td><td>19.9</td><td>9.8</td><td>16.4</td><td>10.0</td><td>7.1</td><td>4.7</td></tr><tr><td>S123</td><td>32.9</td><td>15.7</td><td>49.2</td><td>20.9</td><td>20.4</td><td>42.2</td><td>56.5</td><td>37.1</td><td>26.9</td><td>22.4</td><td>20.2</td><td>15.8</td><td>25.4</td><td>14.1</td><td>12.9</td><td>10.2</td></tr><tr><td>S1234</td><td>34.8</td><td>25.3</td><td>49.2</td><td>22.3</td><td>22.3</td><td>45.1</td><td>60.3</td><td>40.3</td><td>29.1</td><td>22.9</td><td>22.0</td><td>23.9</td><td>37.5</td><td>21.0</td><td>23.2</td><td>21.2</td></tr><tr><td colspan=\"17\">NELL995</td></tr><tr><td>S12</td><td>32.8</td><td>7.3</td><td>61.4</td><td>23.4</td><td>20.9</td><td>42.5</td><td>51.0</td><td>31.8</td><td>26.4</td><td>20.4</td><td>17.6</td><td>7.4</td><td>9.9</td><td>9.9</td><td>4.6</td><td>4.4</td></tr><tr><td>S123</td><td>33.2</td><td>11.3</td><td>61.4</td><td>23.8</td><td>21.4</td><td>43.3</td><td>52.5</td><td>32.0</td><td>26.7</td><td>20.4</td><td>17.8</td><td>12.2</td><td>16.6</td><td>13.5</td><td>8.0</td><td>6.3</td></tr><tr><td>S1234</td><td>35.3</td><td>19.9</td><td>61.4</td><td>25.7</td><td>24.1</td><td>45.8</td><td>58.8</td><td>33.9</td><td>29.2</td><td>20.5</td><td>18.7</td><td>19.8</td><td>27.5</td><td>20.4</td><td>17.4</td><td>14.6</td></tr></table>",
1403
+ "bbox": [
1404
+ 163,
1405
+ 80,
1406
+ 833,
1407
+ 242
1408
+ ],
1409
+ "page_idx": 7
1410
+ },
1411
+ {
1412
+ "type": "table",
1413
+ "img_path": "images/1c88740cd3778120fb6921c8653b61fe528bcee5e5743d6accb2b9f4d609d291.jpg",
1414
+ "table_caption": [
1415
+ "Table 2: Complex Query Answering results on FB15k, FB15k-237 and NELL995 test sets with different settings."
1416
+ ],
1417
+ "table_footnote": [],
1418
+ "table_body": "<table><tr><td>ε</td><td>0.05</td><td>0.01</td><td>0.005</td><td>0.001</td><td>0.0005</td><td>0.0001</td><td>0.00005</td><td>0.00001</td></tr><tr><td>Memory Usage</td><td>22M</td><td>60M</td><td>103M</td><td>383M</td><td>676M</td><td>2.77G</td><td>5.99G</td><td>Out of Memory</td></tr><tr><td>Sparsity Level</td><td>99.999%</td><td>99.997%</td><td>99.995%</td><td>99.980%</td><td>99.965%</td><td>99.851%</td><td>99.678%</td><td>-</td></tr><tr><td>Running Time</td><td>290s</td><td>311s</td><td>314s</td><td>348s</td><td>373s</td><td>482s</td><td>558s</td><td>-</td></tr><tr><td>avgp</td><td>27.9</td><td>32.0</td><td>32.9</td><td>34.0</td><td>34.3</td><td>34.7</td><td>34.8</td><td>-</td></tr><tr><td>avgn</td><td>24.5</td><td>25.2</td><td>25.3</td><td>25.3</td><td>25.3</td><td>25.3</td><td>25.3</td><td>-</td></tr></table>",
1419
+ "bbox": [
1420
+ 119,
1421
+ 284,
1422
+ 873,
1423
+ 375
1424
+ ],
1425
+ "page_idx": 7
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "Table 3: Effect of $\\epsilon$ on memory usage, sparsity level, and $\\mathrm{avg}_p$ and $\\mathrm{avg}_n$ . The experiments are conducted on FB15K-237 datasets. The time is the running time on one NVIDIA A40 GPU.",
1430
+ "bbox": [
1431
+ 112,
1432
+ 384,
1433
+ 882,
1434
+ 413
1435
+ ],
1436
+ "page_idx": 7
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "5.2 Results",
1441
+ "text_level": 1,
1442
+ "bbox": [
1443
+ 112,
1444
+ 444,
1445
+ 218,
1446
+ 458
1447
+ ],
1448
+ "page_idx": 7
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "See Table 1 for the results. $\\mathrm{avg}_p$ is the average on existential positive first-order queries. $\\mathrm{avg}_n$ is the average on queries with negation. GQE, Q2B, CKGCO, and CQD-Beam do not support queries with negation, so the corresponding entries are empty. We observe that our model significantly outperforms baseline methods across all datasets. Our model yields a relative gain of $6.8\\%$ and $52.3\\%$ on $\\mathrm{avg}_p$ and $\\mathrm{avg}_n$ compared to previous state-of-the-art model QTO. This shows that our method has better reasoning skills and superior adaptability when tackling complex query answering tasks. We attribute this improvement to our calibration method, which can adapt the KGC models to answering complex queries very well.",
1453
+ "bbox": [
1454
+ 112,
1455
+ 468,
1456
+ 489,
1457
+ 709
1458
+ ],
1459
+ "page_idx": 7
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "The adaptation function of CKGC is simple, making the model quickly converge during the adaptation process. We next show the training time. The running time for FB15k dataset is an average of 67 seconds per epoch, the running time for FB15k -237 dataset is an average of 32 seconds per epoch, the running time for NELL995 dataset is an average of 83 seconds per epoch. All models can converge within 5 epochs, resulting in a very short training time. In contrast, previous embedding-based models, such as BetaE, ConE, FuzzQE, GNN-QE and so on, often require hundreds of epochs to converge. For instance, BetaE",
1464
+ "bbox": [
1465
+ 112,
1466
+ 711,
1467
+ 489,
1468
+ 921
1469
+ ],
1470
+ "page_idx": 7
1471
+ },
1472
+ {
1473
+ "type": "text",
1474
+ "text": "takes 105 epochs to converge and has an average training running time of 63 seconds per epoch on the FB15k-237 dataset. Compared to our model (32 seconds x 2 epoch = 64 seconds), these models require significantly more runtime for training. The running time is the running time on one NVIDIA A40 GPU.",
1475
+ "bbox": [
1476
+ 507,
1477
+ 444,
1478
+ 884,
1479
+ 556
1480
+ ],
1481
+ "page_idx": 7
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "5.3 Ablation Studies",
1486
+ "text_level": 1,
1487
+ "bbox": [
1488
+ 507,
1489
+ 573,
1490
+ 687,
1491
+ 588
1492
+ ],
1493
+ "page_idx": 7
1494
+ },
1495
+ {
1496
+ "type": "text",
1497
+ "text": "As stated in Section 4.2, we obtain a calibrated knowledge graph completion model by executing four steps. To analyze the impact of each step, we obtain calibrated models by performing only a few steps. We denote the calibrated model with steps 1 and 2 as S12, the model with steps 1, step 2, and step 3 as S123, and the model with steps 1, step 2, step 3, and step 4 as S1234. S12 primarily serves as a baseline. S123 is mainly used to study the impact of adaptation (step 3). S1234 is mainly used to study the impact of calibrating the predicted values corresponding to true triplets (step 4).",
1498
+ "bbox": [
1499
+ 505,
1500
+ 596,
1501
+ 884,
1502
+ 790
1503
+ ],
1504
+ "page_idx": 7
1505
+ },
1506
+ {
1507
+ "type": "text",
1508
+ "text": "See Table 2 for the results. S123 has an average relative improvement of $1.3\\%$ on $\\mathrm{avg}_p$ metric compared to S12, and S1234 has an average relative improvement of $4.8\\%$ on $\\mathrm{avg}_p$ metric compared to S123. S123 has an average relative improvement of $64.8\\%$ on $\\mathrm{avg}_n$ metric compared to S12, and S1234 has an average relative improvement of $64.3\\%$ on $\\mathrm{avg}_n$ metric compared to S123.",
1509
+ "bbox": [
1510
+ 507,
1511
+ 791,
1512
+ 884,
1513
+ 921
1514
+ ],
1515
+ "page_idx": 7
1516
+ },
1517
+ {
1518
+ "type": "page_number",
1519
+ "text": "13799",
1520
+ "bbox": [
1521
+ 477,
1522
+ 927,
1523
+ 524,
1524
+ 940
1525
+ ],
1526
+ "page_idx": 7
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "The results show that the $\\mathrm{avg}_n$ metric has been significantly improved. Since step 3 calibrates both predicted values corresponding to true triplets and predicted values corresponding to false triplets, we cannot determine from this step whether the main improvement on $\\mathrm{avg}_n$ comes from the calibration for true triplets or false triplets. Since step 4 only changes the predicted values corresponding to the true triplets, this indicates that the significant improvement on $\\mathrm{avg}_n$ is primarily due to the more accurate calibration of the predicted values corresponding to the true triplets.",
1531
+ "bbox": [
1532
+ 112,
1533
+ 84,
1534
+ 492,
1535
+ 280
1536
+ ],
1537
+ "page_idx": 8
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "5.4 Hyper-parameters Analysis",
1542
+ "text_level": 1,
1543
+ "bbox": [
1544
+ 112,
1545
+ 294,
1546
+ 379,
1547
+ 311
1548
+ ],
1549
+ "page_idx": 8
1550
+ },
1551
+ {
1552
+ "type": "text",
1553
+ "text": "We analyze the experimental results of our method with respect to the hyper-parameter $\\epsilon$ . We study the changes in memory usage, sparsity level (the ratio of zero entries in the KG tensor $X$ ), $\\mathrm{avg}_p$ and $\\mathrm{avg}_n$ as $\\epsilon$ decreases.",
1554
+ "bbox": [
1555
+ 112,
1556
+ 319,
1557
+ 489,
1558
+ 400
1559
+ ],
1560
+ "page_idx": 8
1561
+ },
1562
+ {
1563
+ "type": "text",
1564
+ "text": "We show the results in Table 3, which show that as $\\epsilon$ decreases, memory usage increases, sparsity level decreases, running time increases, $\\mathrm{avg}_p$ increases, and $\\mathrm{avg}_n$ increases. Thus, we can select a proper $\\epsilon$ to balance the computation or memory usage and model performance.",
1565
+ "bbox": [
1566
+ 112,
1567
+ 403,
1568
+ 489,
1569
+ 501
1570
+ ],
1571
+ "page_idx": 8
1572
+ },
1573
+ {
1574
+ "type": "text",
1575
+ "text": "6 Conclusion",
1576
+ "text_level": 1,
1577
+ "bbox": [
1578
+ 112,
1579
+ 519,
1580
+ 247,
1581
+ 533
1582
+ ],
1583
+ "page_idx": 8
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "CLQA is one of the crucial tasks associated with KGs. In this paper, we introduce CKGC, a calibration method developed to enhance the adaptability of KGC models for CLQA. Through experimental analysis, we illustrate that the implementation of CKGC leads to a substantial improvement in model performance for the CLQA task. Therefore, the calibration of KGC models holds significant importance for the optimization of CLQA models. Moving forward, we encourage the exploration and proposal of additional calibration methods to further enhance the performance of CLQA.",
1588
+ "bbox": [
1589
+ 112,
1590
+ 549,
1591
+ 489,
1592
+ 743
1593
+ ],
1594
+ "page_idx": 8
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Limitations",
1599
+ "text_level": 1,
1600
+ "bbox": [
1601
+ 114,
1602
+ 762,
1603
+ 220,
1604
+ 778
1605
+ ],
1606
+ "page_idx": 8
1607
+ },
1608
+ {
1609
+ "type": "text",
1610
+ "text": "One limitation of our method is the space complexity and time complexity of projection operation. We use an approach to make the predicted tensor $\\mathbf{X}$ sparse. This approach can make the model performance decreases as shown in Table 3. We plan to explore methods that can reduce the computational complexity and memory usage of the method while maintaining good performance.",
1611
+ "bbox": [
1612
+ 112,
1613
+ 791,
1614
+ 489,
1615
+ 921
1616
+ ],
1617
+ "page_idx": 8
1618
+ },
1619
+ {
1620
+ "type": "text",
1621
+ "text": "Acknowledgements",
1622
+ "text_level": 1,
1623
+ "bbox": [
1624
+ 509,
1625
+ 84,
1626
+ 684,
1627
+ 99
1628
+ ],
1629
+ "page_idx": 8
1630
+ },
1631
+ {
1632
+ "type": "text",
1633
+ "text": "This work is supported by the National Key Research and Development Program of China (2020AAA0106000), the National Natural Science Foundation of China (U19A2079), and the CCCD Key Lab of Ministry of Culture and Tourism.",
1634
+ "bbox": [
1635
+ 507,
1636
+ 110,
1637
+ 884,
1638
+ 191
1639
+ ],
1640
+ "page_idx": 8
1641
+ },
1642
+ {
1643
+ "type": "text",
1644
+ "text": "References",
1645
+ "text_level": 1,
1646
+ "bbox": [
1647
+ 510,
1648
+ 217,
1649
+ 608,
1650
+ 233
1651
+ ],
1652
+ "page_idx": 8
1653
+ },
1654
+ {
1655
+ "type": "list",
1656
+ "sub_type": "ref_text",
1657
+ "list_items": [
1658
+ "Erik Arakelyan, Daniel Daza, Pasquale Minervini, and Michael Cochez. 2020. Complex query answering with neural link predictors. In International Conference on Learning Representations.",
1659
+ "Erik Arakelyan, Pasquale Minervini, Daniel Daza, Michael Cochez, and Isabelle Augenstein. 2023. Adapting neural link predictors for data-efficient complex query answering. In Thirty-seventh Conference on Neural Information Processing Systems.",
1660
+ "Yushi Bai, Xin Lv, Juanzi Li, and Lei Hou. 2023. Answering complex logical queries on knowledge graphs via query computation tree optimization. In International Conference on Machine Learning, pages 1472-1491. PMLR.",
1661
+ "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.",
1662
+ "Xuelu Chen, Ziniu Hu, and Yizhou Sun. 2022. Fuzzy logic based logical query answering on knowledge graphs. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 3939-3948.",
1663
+ "Yihong Chen, Pasquale Minervini, Sebastian Riedel, and Pontus Stenetorp. 2021. Relation prediction as an auxiliary training objective for improving multi-relational graph representations. In 3rd Conference on Automated Knowledge Base Construction.",
1664
+ "Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, Luke Vilnis, Ishan Durugkar, Akshay Krishnamurthy, Alex Smola, and Andrew McCallum. 2018. Go for a walk and arrive at the answer: Reasoning over paths in knowledge bases using reinforcement learning. In International Conference on Learning Representations.",
1665
+ "Will Hamilton, Payal Bajaj, Marinka Zitnik, Dan Jurafsky, and Jure Leskovec. 2018. Embedding logical queries on knowledge graphs. Advances in neural information processing systems, 31.",
1666
+ "Marcel Hildebrandt, Jorge Andres Quintero Serna, Yunpu Ma, Martin Ringsquandl, Mitchell Joblin, and Volker Tresp. 2020. Reasoning on knowledge graphs with debate dynamics. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 4123-4131."
1667
+ ],
1668
+ "bbox": [
1669
+ 510,
1670
+ 240,
1671
+ 885,
1672
+ 921
1673
+ ],
1674
+ "page_idx": 8
1675
+ },
1676
+ {
1677
+ "type": "page_number",
1678
+ "text": "13800",
1679
+ "bbox": [
1680
+ 477,
1681
+ 927,
1682
+ 527,
1683
+ 941
1684
+ ],
1685
+ "page_idx": 8
1686
+ },
1687
+ {
1688
+ "type": "list",
1689
+ "sub_type": "ref_text",
1690
+ "list_items": [
1691
+ "Seyed Mehran Kazemi and David Poole. 2018. Simple embedding for link prediction in knowledge graphs. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 4289-4300.",
1692
+ "Erich Peter Klement, Radko Mesiar, and Endre Pap, 2004. Triangular norms. position paper ii: general constructions and parameterized families. Fuzzy sets and Systems, 145(3):411-438.",
1693
+ "Timothée Lacroix, Nicolas Usunier, and Guillaume Obozinski. 2018. Canonical tensor decomposition for knowledge base completion. In International Conference on Machine Learning, pages 2863-2872. PMLR.",
1694
+ "Meng Qu, Junkun Chen, Louis-Pascal Xhonneux, Yoshua Bengio, and Jian Tang. 2020. Rnnlogic: Learning logic rules for reasoning on knowledge graphs. In International Conference on Learning Representations.",
1695
+ "H Ren, W Hu, and J Leskovec. 2020. Query2box: Reasoning over knowledge graphs in vector space using box embeddings. In International Conference on Learning Representations (ICLR).",
1696
+ "Hongyu Ren, Mikhail Galkin, Michael Cochez, Zhaocheng Zhu, and Jure Leskovec. 2023. Neural graph reasoning: Complex logical query answering meets graph databases. arXiv preprint arXiv:2303.14617.",
1697
+ "Hongyu Ren and Jure Leskovec. 2020. Beta embeddings for multi-hop logical reasoning in knowledge graphs. Advances in Neural Information Processing Systems, 33:19716-19726.",
1698
+ "Ali Sadeghian, Mohammadreza Armandpour, Patrick Ding, and Daisy Zhe Wang. 2019. Drum: End-to-end differentiable rule mining on knowledge graphs. Advances in Neural Information Processing Systems, 32.",
1699
+ "Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. 2018. Modeling relational data with graph convolutional networks. In 15th Extended Semantic Web Conference (ESWC), pages 593-607. Springer, Cham.",
1700
+ "Zhiqing Sun, Zhi-Hong Deng, Jian-Yun Nie, and Jian Tang. 2018. Rotate: Knowledge graph embedding by relational rotation in complex space. In International Conference on Learning Representations.",
1701
+ "Komal Teru, Etienne Denis, and Will Hamilton. 2020. Inductive relation prediction by subgraph reasoning. In International Conference on Machine Learning, pages 9448-9457. PMLR.",
1702
+ "Kristina Toutanova, Danqi Chen, Patrick Pantel, Hoifung Poon, Pallavi Choudhury, and Michael Gamon. 2015. Representing text for joint embedding of text and knowledge bases. In Proceedings of the 2015 conference on empirical methods in natural language processing, pages 1499-1509."
1703
+ ],
1704
+ "bbox": [
1705
+ 115,
1706
+ 85,
1707
+ 485,
1708
+ 919
1709
+ ],
1710
+ "page_idx": 9
1711
+ },
1712
+ {
1713
+ "type": "list",
1714
+ "sub_type": "ref_text",
1715
+ "list_items": [
1716
+ "Théo Trouillon, Christopher R Dance, Éric Gaussier, Johannes Welbl, Sebastian Riedel, and Guillaume Bouchard. 2017. Knowledge graph completion via complex tensor factorization. Journal of Machine Learning Research, 18:1-38.",
1717
+ "Shikhar Vashishth, Soumya Sanyal, Vikram Nitin, and Partha Talukdar. 2019. Composition-based multi-relational graph convolutional networks. In International Conference on Learning Representations.",
1718
+ "Wenhan Xiong, Thien Hoang, and William Yang Wang. 2017. Deeppath: A reinforcement learning method for knowledge graph reasoning. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 564-573.",
1719
+ "Bishan Yang, Wen-tau Yih, Xiaodong He, Jianfeng Gao, and Li Deng. 2014. Embedding entities and relations for learning and inference in knowledge bases. arXiv e-prints, pages arXiv-1412.",
1720
+ "Fan Yang, Zhilin Yang, and William W Cohen. 2017. Differentiable learning of logical rules for knowledge base reasoning. Advances in neural information processing systems, 30.",
1721
+ "Denghui Zhang, Zixuan Yuan, Hao Liu, Hui Xiong, et al. 2022. Learning to walk with dual agents for knowledge graph reasoning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 5932-5941.",
1722
+ "Zhanqiu Zhang, Jie Wang, Jiajun Chen, Shuiwang Ji, and Feng Wu. 2021. Cone: Cone embeddings for multi-hop reasoning over knowledge graphs. Advances in Neural Information Processing Systems, 34:19172-19183.",
1723
+ "Zhaocheng Zhu, Mikhail Galkin, Zuobai Zhang, and Jian Tang. 2022. Neural-symbolic models for logical queries on knowledge graphs. In International Conference on Machine Learning, pages 27454-27478. PMLR."
1724
+ ],
1725
+ "bbox": [
1726
+ 510,
1727
+ 85,
1728
+ 880,
1729
+ 640
1730
+ ],
1731
+ "page_idx": 9
1732
+ },
1733
+ {
1734
+ "type": "page_number",
1735
+ "text": "13801",
1736
+ "bbox": [
1737
+ 477,
1738
+ 928,
1739
+ 522,
1740
+ 940
1741
+ ],
1742
+ "page_idx": 9
1743
+ },
1744
+ {
1745
+ "type": "text",
1746
+ "text": "A Appendix",
1747
+ "text_level": 1,
1748
+ "bbox": [
1749
+ 112,
1750
+ 84,
1751
+ 238,
1752
+ 99
1753
+ ],
1754
+ "page_idx": 10
1755
+ },
1756
+ {
1757
+ "type": "text",
1758
+ "text": "A.1 Experimental Details",
1759
+ "text_level": 1,
1760
+ "bbox": [
1761
+ 112,
1762
+ 109,
1763
+ 329,
1764
+ 124
1765
+ ],
1766
+ "page_idx": 10
1767
+ },
1768
+ {
1769
+ "type": "text",
1770
+ "text": "Datasets The detailed statistics for each dataset can be seen in Table 4.",
1771
+ "bbox": [
1772
+ 112,
1773
+ 130,
1774
+ 653,
1775
+ 143
1776
+ ],
1777
+ "page_idx": 10
1778
+ },
1779
+ {
1780
+ "type": "table",
1781
+ "img_path": "images/3347a0fc1f7bfe8a5c27c6d1958ceb3c1a4005e9fc573dbe6284666edee5db27.jpg",
1782
+ "table_caption": [],
1783
+ "table_footnote": [],
1784
+ "table_body": "<table><tr><td>Split</td><td>Query Types</td><td>FB15k</td><td>FB15k-237</td><td>NELL995</td></tr><tr><td rowspan=\"2\">Train</td><td>1p,2p,3p,2i,3i</td><td>273,710</td><td>149,689</td><td>107,982</td></tr><tr><td>2in, 3in, inp, pin, pni</td><td>27,371</td><td>14,968</td><td>10,798</td></tr><tr><td rowspan=\"2\">Validation</td><td>1p</td><td>59,078</td><td>20,094</td><td>16,910</td></tr><tr><td>Others</td><td>8,000</td><td>5,000</td><td>4,000</td></tr><tr><td rowspan=\"2\">Test</td><td>1p</td><td>66,990</td><td>22,804</td><td>17,021</td></tr><tr><td>Others</td><td>8,000</td><td>5,000</td><td>4,000</td></tr></table>",
1785
+ "bbox": [
1786
+ 260,
1787
+ 154,
1788
+ 732,
1789
+ 269
1790
+ ],
1791
+ "page_idx": 10
1792
+ },
1793
+ {
1794
+ "type": "text",
1795
+ "text": "Hyper-parameters Settings Table 5 shows the best hyper-parameters we searched for pre-training KGC models. Table 6 shows the best hyper-parameters we searched for CLQA.",
1796
+ "bbox": [
1797
+ 112,
1798
+ 326,
1799
+ 880,
1800
+ 357
1801
+ ],
1802
+ "page_idx": 10
1803
+ },
1804
+ {
1805
+ "type": "table",
1806
+ "img_path": "images/b2a6c0b2b43fe2b7081e30e7e4842bead437ea6cf3f464f9aae6c9e8568c5c58.jpg",
1807
+ "table_caption": [
1808
+ "Table 4: Detailed statistics on the different types of query structures in FB15K, FB15K-237, and NELL995 datasets."
1809
+ ],
1810
+ "table_footnote": [],
1811
+ "table_body": "<table><tr><td>Dataset</td><td>Dimension</td><td>Epoch</td><td>Batch Size</td><td>Learning Rate</td><td>λ1</td><td>λ2</td></tr><tr><td>FB15k</td><td>2000</td><td>200</td><td>1000</td><td>0.01</td><td>0.0625</td><td>0.005</td></tr><tr><td>FB15k-237</td><td>2000</td><td>200</td><td>1000</td><td>0.1</td><td>4</td><td>0.05</td></tr><tr><td>NELL995</td><td>2000</td><td>200</td><td>1000</td><td>0.1</td><td>0.0625</td><td>0.05</td></tr></table>",
1812
+ "bbox": [
1813
+ 183,
1814
+ 369,
1815
+ 815,
1816
+ 451
1817
+ ],
1818
+ "page_idx": 10
1819
+ },
1820
+ {
1821
+ "type": "table",
1822
+ "img_path": "images/8b61c4c64ac3c72c45d3f1c161e95a7bb414e0abbc8e479a67aa1b683be64ecf.jpg",
1823
+ "table_caption": [
1824
+ "Table 5: The hyper-parameters settings for pre-training KGC models, $\\lambda_{1}$ is the coefficient for relation prediction loss, and $\\lambda_{2}$ is the coefficient for regularization."
1825
+ ],
1826
+ "table_footnote": [],
1827
+ "table_body": "<table><tr><td>Datset</td><td>Dimension</td><td>Epoch</td><td>Batch Size</td><td>Learning Rate</td><td>α</td><td>ε</td></tr><tr><td>FB15k</td><td>2000</td><td>5</td><td>1000</td><td>0.001</td><td>0.1</td><td>0.0005</td></tr><tr><td>FB15k-237</td><td>2000</td><td>5</td><td>1000</td><td>0.001</td><td>0.1</td><td>0.00005</td></tr><tr><td>NELL995</td><td>2000</td><td>5</td><td>1000</td><td>0.001</td><td>0.1</td><td>0.00001</td></tr></table>",
1828
+ "bbox": [
1829
+ 186,
1830
+ 523,
1831
+ 811,
1832
+ 606
1833
+ ],
1834
+ "page_idx": 10
1835
+ },
1836
+ {
1837
+ "type": "text",
1838
+ "text": "Table 6: The hyper-parameters settings for CLQA.",
1839
+ "bbox": [
1840
+ 324,
1841
+ 615,
1842
+ 668,
1843
+ 630
1844
+ ],
1845
+ "page_idx": 10
1846
+ },
1847
+ {
1848
+ "type": "text",
1849
+ "text": "Different KGC models Our proposed method CKGC is effective for any KGC model because it relies solely on the results predicted by the KGC model. Although any KGC model is permissible, it is preferable to select a KGC model with strong performance. In Table 7, we show the results of our method with different KGC models. We select the DistMult (Yang et al., 2014), CP (Lacroix et al., 2018), SimplE (Kazemi and Poole, 2018), and ComplEx (Trouillon et al., 2017) KGC models. The results demonstrate that Step 3 (the adaptation step) can indeed enhance performance across various KGC models.",
1850
+ "bbox": [
1851
+ 112,
1852
+ 659,
1853
+ 884,
1854
+ 758
1855
+ ],
1856
+ "page_idx": 10
1857
+ },
1858
+ {
1859
+ "type": "page_number",
1860
+ "text": "13802",
1861
+ "bbox": [
1862
+ 477,
1863
+ 927,
1864
+ 524,
1865
+ 940
1866
+ ],
1867
+ "page_idx": 10
1868
+ },
1869
+ {
1870
+ "type": "table",
1871
+ "img_path": "images/d47bce84c171f996d5c44731eac48786071a91bb22a4e64d492d91b99a85e502.jpg",
1872
+ "table_caption": [],
1873
+ "table_footnote": [],
1874
+ "table_body": "<table><tr><td>Models</td><td>1p</td><td>avgp(S12)</td><td>avgp(S123)</td><td>avgn(S12)</td><td>avgn(S123)</td></tr><tr><td>DistMult</td><td>47.6</td><td>30.2</td><td>30.8</td><td>9.1</td><td>14.7</td></tr><tr><td>CP</td><td>46.5</td><td>29.4</td><td>30.1</td><td>8.7</td><td>13.8</td></tr><tr><td>SimpleE</td><td>46.3</td><td>29.0</td><td>29.5</td><td>8.6</td><td>13.8</td></tr><tr><td>ComplEx</td><td>49.2</td><td>32.4</td><td>32.9</td><td>9.7</td><td>15.2</td></tr></table>",
1875
+ "bbox": [
1876
+ 223,
1877
+ 419,
1878
+ 771,
1879
+ 519
1880
+ ],
1881
+ "page_idx": 11
1882
+ },
1883
+ {
1884
+ "type": "text",
1885
+ "text": "Table 7: The performance of complex logical quereis answering models with different KGC model, where 1p is the KGC results, $\\mathrm{avg}_p$ is the average results of queries without negation operator, $\\mathrm{avg}_n$ is the average results of queries with negation operator. S12 is the model using direct KGC scores. S123 is the model with adaptation.",
1886
+ "bbox": [
1887
+ 112,
1888
+ 527,
1889
+ 882,
1890
+ 571
1891
+ ],
1892
+ "page_idx": 11
1893
+ },
1894
+ {
1895
+ "type": "page_number",
1896
+ "text": "13803",
1897
+ "bbox": [
1898
+ 477,
1899
+ 927,
1900
+ 524,
1901
+ 940
1902
+ ],
1903
+ "page_idx": 11
1904
+ }
1905
+ ]
2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/28987eca-6571-4ea4-b16a-06ab4319ecb4_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/28987eca-6571-4ea4-b16a-06ab4319ecb4_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe0fd7d6bb90549065b6c42b8f0180685363ea042ddd8fcbe5c73d692ef80f70
3
+ size 1035259
2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/full.md ADDED
@@ -0,0 +1,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models
2
+
3
+ Changyi Xiao $^{1*}$ , Yixin Cao $^{2}$
4
+
5
+ <sup>1</sup>School of Data Science, University of Science and Technology of China
6
+
7
+ $^{2}$ School of Computer Science, Fudan University
8
+
9
+ changyi@mail.ustc.edu.cn, caoyixin2011@gmail.com
10
+
11
+ # Abstract
12
+
13
+ Complex logical query answering (CLQA) is a challenging task that involves finding answer entities for complex logical queries over incomplete knowledge graphs (KGs). Previous research has explored the use of pre-trained knowledge graph completion (KGC) models, which can predict the missing facts in KGs, to answer complex logical queries. However, KGC models are typically evaluated using ranking evaluation metrics, which may result in values of predictions of KGC models that are not well-calibrated. In this paper, we propose a method for calibrating KGC models, namely CKGC, which enables KGC models to adapt to answering complex logical queries. Notably, CKGC is lightweight and effective. The adaptation function is simple, allowing the model to quickly converge during the adaptation process. The core concept of CKGC is to map the values of predictions of KGC models to the range [0, 1], ensuring that values associated with true facts are close to 1, while values linked to false facts are close to 0. Through experiments on three benchmark datasets, we demonstrate that our proposed calibration method can significantly boost model performance in the CLQA task. Moreover, our approach can enhance the performance of CLQA while preserving the ranking evaluation metrics of KGC models. The code is available at https://github.com/changyi7231/CKGC.
14
+
15
+ # 1 Introduction
16
+
17
+ Knowledge graphs (KGs) are composed of structured representations of facts in the form of triplets and have been widely used in various domains. One of the key tasks associated with KGs is complex logical query answering (Ren et al., 2023). Complex logical queries are typically expressed using first-order logic (FOL), which encompasses logical operations such as conjunction $(\wedge)$ , disjunction $(\lor)$ ,
18
+
19
+ negation $(\neg)$ , and existential quantifier $(\exists)$ . For example, the query "Which universities do the Turing Award winners not in the field of deep learning work in?" can be formulated as a FOL query, as illustrated in Figure 1.
20
+
21
+ Many well-known knowledge graphs (KGs) suffer from incompleteness, rendering it challenging to answer complex queries through simple KG traversal. Building on the accomplishments of knowledge graph completion (KGC) methods (Bordes et al., 2013; Sun et al., 2018; Trouillon et al., 2017) in addressing one-hop KG queries, a research avenue has emerged focusing on learning embeddings for queries to handle complex logical queries (Hamilton et al., 2018; Ren et al., 2020; Zhang et al., 2021). Nonetheless, these methodologies often require extensive training on numerous complex logical queries, leading to substantial training time overhead and limited generalization to out-of-distribution query structures.
22
+
23
+ In addressing these challenges, CQD (Aragelyan et al., 2020) introduces a method for CLQA by leveraging one-hop atom results derived from a pretrained KGC model, thereby removing the necessity for training on complex queries. CQD frames CLQA as an optimization problem and employs techniques like beam search or continuous approximation to estimate the optimal solution. Despite its effectiveness, the approximations made during the process could lead to a decrease in accuracy for CQD. Furthermore, CQD is reliant on a KGC model whose values of output might not be specifically calibrated for CLQA, potentially resulting in inaccuracies in the outcomes.
24
+
25
+ In this paper, we introduce a method for calibrating KGC models, namely CKGC, which can make KGC models adapt to handling complex logical queries. Our method is lightweight and effective. It is lightweight, as the adaptation function is simple and the model can quickly converge in adaptation process. Moreover, it is effective in significantly
26
+
27
+ enhancing the performance of CLQA.
28
+
29
+ We first represent every complex logical query as a computation graph over fuzzy sets, of which nodes represent fuzzy sets and edges represent the fuzzy set operations over fuzzy sets. To obtain the answers of a query, we traverse the computation graph and execute the fuzzy set operations through a straightforward forward propagation process, eliminating the need for optimization compared to CQD (Aragelyan et al., 2020). We define four fundamental fuzzy set operations for CLQA: projection operation, complement operation, intersection operation, and union operation, all of which require the KGC model to be calibrated.
30
+
31
+ However, a KGC model is typically measured by the ranking metrics, which do not need it to be calibrated. Thus, we propose a calibration method for KGC models to make it adapted to CLQA. We define the adaptation function as a monotonically increasing function that preserves the ranking evaluation metrics of the KGC model. The main idea of our method is to map the values of output of a KGC model to the interval [0, 1], and makes the values corresponding to true triplets be as close as possible to 1, while the values corresponding to false triplets be as close as possible to 0.
32
+
33
+ Our experimental evaluation on three standard datasets demonstrates the efficacy of CKGC in CLQA. The results reveal that CKGC achieves state-of-the-art performance across all datasets, showcasing an average relative improvement of $6.7\%$ on existential positive first-order queries and $53.9\%$ on negation queries compared to the prior state-of-the-art method.
34
+
35
+ # 2 Related Work
36
+
37
+ Knowledge Graph Completion The task of KGC involves predicting missing triplets within a knowledge graph, which can be viewed as predicting answers for one-hop queries. Various methodologies have been proposed to address this task, encompassing embedding techniques (Bordes et al., 2013; Sun et al., 2018; Trouillon et al., 2017), reinforcement learning approaches (Xiong et al., 2017; Das et al., 2018; Hildebrandt et al., 2020; Zhang et al., 2022), rule learning strategies (Yang et al., 2017; Sadeghian et al., 2019; Qu et al., 2020), and graph neural network methodologies (Schlichtkrull et al., 2018; Vashissth et al., 2019; Teru et al., 2020). Embedding methods aim to embed entities and relations into a continuous space and de
38
+
39
+ fine a scoring function based on these embeddings. Reinforcement learning methods train an agent to explore the knowledge graph to predict the missing triplets. Rule learning methods adopt a distinct approach by initially identifying confident logical rules from the knowledge graph. These rules are then utilized to infer missing triplets. Lastly, graph neural network methods utilize graph neural networks to learn representations of entities and relations by leveraging the graph structure.
40
+
41
+ Complex Logical Query Answering CLQA over KGs extends KGC to predict answers for FOL queries, which additionally requires defining relationships between sets of entities. Embedding-based methods represent sets of entities as geometric objects (Hamilton et al., 2018; Ren et al., 2020; Zhang et al., 2021) or probability distributions (Ren and Leskovec, 2020), and then minimize the distance between embeddings of queries and embeddings of their corresponding answers. However, the quality of representation of sets may be compromised when dealing with large sets. To overcome this limitation, some studies have incorporated powerful fuzzy set theory to handle FOL queries (Chen et al., 2022; Zhu et al., 2022). For instance, FuzzQE (Chen et al., 2022) embeds entities and queries into a fuzzy space and leverages fuzzy set operations to perform logical operations on the embeddings. Similarly, GNN-QE (Zhu et al., 2022) decomposes the query into relational projections operations and fuzzy set operations over fuzzy sets, and subsequently learns a graph neural network to execute relational projections.
42
+
43
+ Nevertheless, the aforementioned methods generally necessitate training on numerous complex logical queries, resulting in significant training time overhead and limited generalization to out-of-distribution query structures. Another line of methods first pre-trains a KGC model and then integrates it with fuzzy set theory to infer answers. CQD (Aragelyan et al., 2020) formulates CLQA as an optimization problem and proposes two strategies to approximate the optimal solution: CQD-CO, which directly optimizes in the continuous space, and CQD-Beam, which utilizes beam search. Despite CQD avoiding the need to train on complex logical queries, it suffers from accuracy loss due to the approximated optimization and uncalibrated KGC models. To enhance accuracy, Bai et al. (2023) introduce QTO, which efficiently finds the theoretically optimal solution
44
+
45
+ through a forward-backward propagation on a tree-like computation graph. Additionally, Arakelyan et al. (2023) propose $\mathrm{CQD}^{\mathcal{A}}$ , a parameter-efficient adaptation method, to calibrate KGC models. However, the KGC model for QTO is not well calibrated for complex queries, and the optimal solution for $\mathrm{CQD}^{\mathcal{A}}$ is still approximated. In contrast, our proposed model not only delivers accurate solutions but also effectively calibrates the KGC models.
46
+
47
+ # 3 Background
48
+
49
+ In this section, we introduce the related background of our method, complex logical query answering on knowledge graphs and fuzzy sets.
50
+
51
+ # 3.1 Complex Logical Query Answering on Knowledge Graphs
52
+
53
+ Knowledge Graphs Completion Given a set of entities $\mathcal{V}$ and a set of relations $\mathcal{R}$ , a knowledge graph $\mathcal{G}$ contains a set of triplets $\{(h,r,t)\} \subset \mathcal{V} \times \mathcal{R} \times \mathcal{V}$ , where each triplet is a fact from head entity $h$ to tail entity $t$ with a relation type $r$ . KGC models define scoring functions $f(h,r,t)$ to measure the likelihood of triplets $(h,r,t)$ based on their corresponding embeddings.
54
+
55
+ First-Order Logic Queries Complex logical queries can be represented by FOL queries with logical operations including conjunction $(\wedge)$ , disjunction $(\vee)$ , negation $(\neg)$ , and existential quantifier $(\exists)$ . A first-order logic query $q$ can be described in its disjunctive normal form, which consists of a set of non-variable anchor entities $\mathcal{V}_a \subseteq \mathcal{V}$ , existentially quantified bound variables $V_1, \ldots, V_k$ and a single target variable $V_\varphi$ , which provides the answers of query $q$ . The disjunctive normal form of a logical query $q$ is a disjunction of one or more conjunctions.
56
+
57
+ $$
58
+ q = V _ {j}. \exists V _ {1}, \dots , V _ {k}: c _ {1} \wedge c _ {2} \wedge , \dots , c _ {n}.
59
+ $$
60
+
61
+ Each $c$ represents a conjunctive query with one or more literals $e$ , i.e., $c_{i} = e_{i1} \lor e_{i2} \lor \dots \lor e_{im}$ . Each literal $e$ represents an atomic formula or its negation, i.e., $e_{ij} = R(v_{a}, V)$ or $\neg R(v_{a}, V)$ or $\neg R(V', V)$ or $\neg R(V', V)$ , where $v_{a} \in \mathcal{V}_{a}$ , $V \in \{V?, V_{1}, \ldots, V_{k}\}$ , $V \in \{V?, V_{1}, \ldots, V_{k}\}$ , $V \neq V'$ , $R(\cdot, \cdot)$ is a binary function $R: \mathcal{V} \times \mathcal{V} \to \{0, 1\}$ . Each relation $r \in \mathcal{R}$ corresponds to a binary function $R(\cdot, \cdot)$ . If $(h, r, t)$ is a true fact, then $R(h, t) = 1$ . If $(h, r, t)$ is a false fact, then $R(h, t) = 0$ .
62
+
63
+ Computation Graph Given a FOL query, we can represent it as a computation graph, of which nodes represent sets of entities and edges represent set operations over sets of entities. The set operations include the complement operation, intersection operation, union operation and projection operation. The root node represents the set of answer entities. See Figure 1 for an example. We map logical operations to set operations according to the following rules.
64
+
65
+ - Negation $\longrightarrow$ Complement Operation: Given a set of entities $S \subseteq \mathcal{V}$ , the complement operator performs set complement to obtain $\overline{S} = \mathcal{V} \backslash S$ .
66
+ - Conjunction $\longrightarrow$ Intersection Operation: Given $n$ sets of entities $\{S_1, S_2, \ldots, S_n\}$ , the intersection operator performs set intersection to obtain $\cap_{i=1}^{n} S_i$ .
67
+ - Disjunction $\longrightarrow$ Union Operation: Given $n$ sets of entities $\{S_1, S_2, \ldots, S_n\}$ , the union operator performs set union to obtain $\cup_{i=1}^{n} S_i$ .
68
+ - Relation Projection $\longrightarrow$ Projection Operation: Given a set of entities $S \subseteq \mathcal{V}$ and a relation $r \in \mathcal{R}$ , the projection operator outputs all the adjacent entities $\cup_{v \in S} N(v, r)$ , where $N(v, r)$ is the set of entities such that $(v, r, v')$ are true triplets for all $v' \in N(v, r)$ .
69
+
70
+ In order to answer a given FOL query, we can traverse the computation graph and execute the set operations. The answers of a query can be obtained by looking at the set of entities in the root node.
71
+
72
+ # 3.2 Fuzzy sets
73
+
74
+ Definition A fuzzy set is a pair $(U,m)$ , where $U$ is a set and $m:U\to [0,1]$ is a membership function. For each $x\in U$ , the value $m(x)$ measures the degree of membership of $x$ in $(U,m)$ . The function $m = \mu_{A}$ is called the membership function of the fuzzy set $A = (U,m)$ . Classical sets are seen as special cases of fuzzy sets, if the membership functions only takes values 0 or 1.
75
+
76
+ Fuzzy Set Operations Fuzzy set operations are a generalization of classical set operations for fuzzy sets. The three primary fuzzy set operations are fuzzy complements, fuzzy intersections, and fuzzy unions. For a given fuzzy set $A$ , its complement $\overline{A}$ is commonly defined by the following membership
77
+
78
+ First-Order Logic
79
+
80
+ $q = V_{?}$ . $\exists V$ : Win(V, Turing Award) $\land$ Field(V, Deep Learning) $\land$ University(V, $V_{?}$ )
81
+
82
+ Computation Graph
83
+
84
+ ![](images/021c170312635a28a4cfd923c9d9b6bdd3b3d37803dc2491944602777c1cfc1d.jpg)
85
+ Figure 1: An query, its corresponding FOL form and its corresponding computation graph.
86
+
87
+ function:
88
+
89
+ $$
90
+ \forall x \in U, \mu_ {\overline {{A}}} (x) = 1 - \mu_ {A} (x)
91
+ $$
92
+
93
+ Given a pair of fuzzy sets $A, B$ , their intersection $A \cap B$ is defined by a t-norm $T$ (Klement et al., 2004):
94
+
95
+ $$
96
+ \forall x \in U, \mu_ {A \cap B} (x) = T (\mu_ {A} (x), \mu_ {B} (x))
97
+ $$
98
+
99
+ Prominent examples of t-norms include product t-norm $T(a,b) = ab$ , Gödel t-norm $T(a,b) = \min \{a,b\}$ and so on (Klement et al., 2004). Given a t-norm $T$ and a pair of fuzzy sets $A, B$ , their union $A \cup B$ is defined by De Morgan's law:
100
+
101
+ $$
102
+ \forall x \in U, \mu_ {A \cup B} (x) = 1 - T \left(1 - \mu_ {A} (x), 1 - \mu_ {B} (x)\right)
103
+ $$
104
+
105
+ # 4 Method
106
+
107
+ We first define four fuzzy set operations over fuzzy sets in Section 4.1, and then propose a calibration method for KGC models in Section 4.2.
108
+
109
+ # 4.1 Fuzzy Set Operations
110
+
111
+ As demonstrated in Section 3.1, a query can be represented as a computation graph. To obtain the fuzzy sets of answers, it is necessary to define the fuzzy set operations utilized in computation graphs. These operations encompass the projection operation, intersection operation, union operation, and complement operation.
112
+
113
+ We represent every fuzzy set of entities as a vector $e \in [0,1]^d$ , where $d = |\mathcal{V}|$ and $e_i$ denotes the grade of membership of entity $i$ . The anchor entity is represented by a vector with a single element set to 1 and all other elements set to 0.
114
+
115
+ Complement Operation: The complement operation maps a fuzzy set to the complement of the fuzzy set. We define the complement operation as
116
+
117
+ $$
118
+ \mathcal {C}: [ 0, 1 ] ^ {d} \to [ 0, 1 ] ^ {d}
119
+ $$
120
+
121
+ $$
122
+ \mathcal {C} (e) = \mathbf {1} - e
123
+ $$
124
+
125
+ Intersection Operation: The intersection operation maps several fuzzy sets into the intersection set of these fuzzy sets. We define the intersection operation by utilizing the product t-norm, which is as follows:
126
+
127
+ $$
128
+ \mathcal {I}: [ 0, 1 ] ^ {n d} \to [ 0, 1 ] ^ {d}
129
+ $$
130
+
131
+ $$
132
+ \mathcal {I} \left(e ^ {1}, e ^ {2}, \dots , e ^ {n}\right) = e ^ {1} \odot e ^ {2} \odot \dots \odot e ^ {n}
133
+ $$
134
+
135
+ where $\{e^i\in [0,1]^d |1\leq i\leq n\}$ are vector representations of fuzzy sets and $\odot$ is the Hadamard product.
136
+
137
+ Union Operation: The union operation maps several fuzzy sets into the union set of these fuzzy sets. Due to the De Morgan's Law, we do not need to define the union operation directly. We define the union operation by utilizing the intersection operation and complement operation as follows:
138
+
139
+ $$
140
+ \mathcal {U}: [ 0, 1 ] ^ {n d} \to [ 0, 1 ] ^ {d}
141
+ $$
142
+
143
+ $$
144
+ \mathcal {U} \left(\boldsymbol {e} ^ {1}, \boldsymbol {e} ^ {2}, \dots , \boldsymbol {e} ^ {n}\right) = \mathcal {C} \left(\mathcal {I} \left(\mathcal {C} \left(\boldsymbol {e} ^ {1}\right), \mathcal {C} \left(\boldsymbol {e} ^ {2}\right), \dots , \mathcal {C} \left(\boldsymbol {e} ^ {n}\right)\right)\right)
145
+ $$
146
+
147
+ Projection Operation: The projection operation maps a fuzzy set into another fuzzy set with a relation type $r$ . We implement the projection operation by utilizing the Gödel t-norm as follows:
148
+
149
+ $$
150
+ \begin{array}{l} \mathcal {P} _ {r}: [ 0, 1 ] ^ {d} \to [ 0, 1 ] ^ {d} \\ \mathcal{P}_{r}(\boldsymbol {e})_{j} = 1 - \min_{1\leq i\leq d}\bigl(1 - \boldsymbol{e}_{i}\boldsymbol{X}_{i,r,j}\bigr) \\ = \max _ {1 \leq i \leq d} e _ {i} X _ {i, r, j} \\ \end{array}
151
+ $$
152
+
153
+ where $X\in [0,1]^{|\mathcal{V}|\times |\mathcal{R}|\times |\mathcal{V}|}$ is the KG tensor and $\pmb {X}_{i,r,j}$ denotes the likelihood of a triplet $(i,r,j)$ which is provided by the KGC model. We do not use product t-norm here because continued product often leads to accumulated errors for large $d$ Compared to QTO (Bai et al., 2023), we define the projection operation and the complement operation separately, which make our method more flexible.
154
+
155
+ In the training process, since the value of $X_{i,r,j}$ is constantly changed, we need to recompute the value of $X_{i,r,j}$ . The primary bottleneck of the projection operation is the computation. We can take the nonzero entries of $e$ and multiply them with the corresponding entries in $\pmb{X}$ to get results. Thus, the computational complexity of projection operation is $\mathcal{O}(|\mathcal{V}||\{e_i|e_i > 0\})$ .
156
+
157
+ In the test process, since the value of $X_{i,r,j}$ is fixed, we pre-compute the value of $X_{i,r,j}$ to reduce the computation. The primary bottleneck of the projection operation is the memory consumption of tensor $X$ . $X$ contains $|\mathcal{V}|^2 |\mathcal{R}|$ entries. Due to the sparsity of the KG, most entries of $X$ have small values, which can be filtered to 0 by a threshold $\epsilon > 0$ while maintaining precision (Bai et al., 2023).
158
+
159
+ # 4.2 Calibration
160
+
161
+ Upon establishing the four fuzzy set operations, the sole requirement for computing the results of queries is a calibrated KG tensor $\mathbf{X}$ . The entries of a calibrated KG tensor $\mathbf{X}$ are expected to fall within the range of 0 to 1, with values associated with true triplets approaching 1, and those linked to false triplets nearing 0. In the event of possessing a fully calibrated KG tensor $\mathbf{X}$ , accurate answers of queries can be attained through the utilization of the four fuzzy set operations.
162
+
163
+ The KG tensor $X$ is furnished by a KGC model, which defines a scoring function $f(h,r,t)$ to measure the likelihood of a triplet $(h,r,t)$ . The ranking metrics, MRR and H@N (Bordes et al., 2013), are commonly used to evaluate KGC models. For example, the definition of MRR is as follows:
164
+
165
+ $$
166
+ \mathrm {M R R} = \sum_ {(h, r, t) \in \mathcal {G}} \frac {1}{| \mathcal {G} |} \frac {1}{\operatorname {r a n k} (h , r , t)}
167
+ $$
168
+
169
+ where $\mathcal{G}$ is a dataset and $\mathrm{rank}(h,r,t)$ is the rank of tail entity $t$ in the predicted list for the query $(h,r,?)$ . $\mathrm{rank}(h,r,t)$ is computed based on the scoring function $f(h,r,t)$ . The ranking metrics mainly focus on ranking rather than the specific numerical value of $f(h,r,t)$ , which is important
170
+
171
+ for complex query answering. Subsequently, an illustrative example is provided to elucidate this concept.
172
+
173
+ For example, supposing we have a query
174
+
175
+ $$
176
+ q = V _ {?}: R _ {1} \left(a _ {1}, V _ {?} \right) \wedge R _ {2} \left(a _ {2}, V _ {?} \right)
177
+ $$
178
+
179
+ where entity $a_1$ can be represented by a vector $\pmb{a}_1 = [1,0,0,0]$ , entity $a_2$ can be represented by a vector $\pmb{a}_2 = [0,1,0,0]$ . Assuming the KG tensor $\pmb{X}$ is satisfied with $\pmb{X}_{1,1,:} = [0.6,0.4,0.2,0.1]$ and $\pmb{X}_{2,2,:} = [0.5,0.7,0.2,0.1]$ . Then, we have that $\mathcal{P}_1(\pmb{a}_1) = \pmb{X}_{1,1,:} = [0.6,0.4,0.2,0.1], \mathcal{P}_2(\pmb{a}_2) = \pmb{X}_{2,2,:} = [0.5,0.7,0.2,0.1]$ and the predicted answers
180
+
181
+ $$
182
+ \mathcal {I} \left(\mathcal {P} _ {1} (\boldsymbol {a} _ {1}), \mathcal {P} _ {2} (\boldsymbol {a} _ {2})\right) = [ 0. 3 0, 0. 2 8, 0. 0 4, 0. 0 1 ]
183
+ $$
184
+
185
+ Then the largest entry in $\mathcal{I}(\mathcal{P}_1(\pmb {a}_1),\mathcal{P}_2(\pmb {a}_2))$ is the first entry.
186
+
187
+ If we let $\hat{\pmb{X}}_{1,1,:} = 0.1\pmb{X}_{1,1,:} + 0.1$ then we have that $\mathcal{P}_1(\pmb {a}_1) = \hat{\pmb{X}}_{1,1,:} = [0.16,0.14,0.12,0.11],$ $\mathcal{P}_2(\pmb {a}_2) = \pmb {X}_{2,2,:} = [0.5,0.7,0.2,0.1]$ and the predicted answers
188
+
189
+ $$
190
+ \mathcal {I} \left(\mathcal {P} _ {1} \left(a _ {1}\right), \mathcal {P} _ {2} \left(a _ {2}\right)\right) = [ 0. 0 8, 0. 0 9 8, 0. 0 2 4, 0. 0 1 1 ]
191
+ $$
192
+
193
+ Then the largest entry in $\mathcal{I}(\mathcal{P}_1(\pmb {a}_1),\mathcal{P}_2(\pmb {a}_2))$ is the second entry.
194
+
195
+ While the aforementioned transformation does not alter the ranking metrics of KGC models, it can affect the ranking metrics of CLQA models. Hence, it is imperative to calibrate the KGC models to acquire a calibrated KG tensor $\mathbf{X}$ for the CLQA task.
196
+
197
+ We get a calibrated KG tensor $X$ in the following steps:
198
+
199
+ 1. We train a KGC model to get a scoring function $f(h, r, t)$ .
200
+ 2. We use softmax function to normalize $f(h, r, t)$ and denote the new scoring function as $\hat{f}(h, r, t)$ .
201
+
202
+ $$
203
+ \begin{array}{l} \hat {f} (h, r, t) = \min (N \frac {\exp (f (h , r , t))}{\sum_ {t ^ {\prime} = 1} ^ {| \mathcal {V} |} \exp (f (h , r , t ^ {\prime}))}, 1) \\ N = \left\{ \begin{array}{l l} M, & M > 0 \\ \alpha , & M = 0 \end{array} \right. \\ M = \left| \left\{\left(h ^ {\prime}, r ^ {\prime}, t ^ {\prime}\right) \in \mathcal {G} _ {\text {t r a i n}} \mid h ^ {\prime} = h, r ^ {\prime} = r \right\} \right| \\ \end{array}
204
+ $$
205
+
206
+ where $\mathcal{G}_{\mathrm{train}}$ denotes the training set of a KG and $\alpha \geq 0$ is a hyper-parameter.
207
+
208
+ ![](images/85e5d918102b5af67835c2c142aa6e15690573589e670dd915af50ba949c3aa0.jpg)
209
+ Figure 2: Fourteen types of queries used in the datasets, where "p" denotes relation projection, "i" denotes intersection, "u" denotes union, and "n" denotes negation.
210
+
211
+ 3. We adapt the KGC models to complex queries datasets.
212
+
213
+ $$
214
+ \tilde {f} (h, r, t) = \min (\boldsymbol {W} _ {h, r} \hat {f} (h, r, t), 1)
215
+ $$
216
+
217
+ where $\mathbf{W} \in (0, +\inf)^{|\mathcal{V}| \times |\mathcal{R}|}$ is a parameter matrix. For a query-answer pair $(q, [[q]])$ , where $[[q]]$ denotes the set of answers of query $q$ , we optimize $\mathbf{W}$ by the following loss function:
218
+
219
+ $$
220
+ \mathcal {L} = - \frac {1}{| | [ q ] | |} \sum_ {i \in [ [ q ] ]} \log \boldsymbol {a} _ {i} - \frac {1}{| | [ q ] | |} \sum_ {i \in [ [ q ] ]} \log (1 - \boldsymbol {a} _ {i})
221
+ $$
222
+
223
+ where $\pmb{a}$ is the vector representation of predicted answers.
224
+
225
+ 4. We replace the values of $\tilde{f}(h, r, t)$ with 1 for triplets $(h, r, t) \in \mathcal{G}_{\mathrm{train}} \cup \mathcal{G}_{\mathrm{validation}}$ to get the calibrated tensor $X$ , i.e.,
226
+
227
+ $$
228
+ \boldsymbol {X} _ {h, r, t} =
229
+ $$
230
+
231
+ $$
232
+ \left\{ \begin{array}{l l} 1 & (h, r, t) \in \mathcal {G} _ {\text {t r a i n}} \cup \mathcal {G} _ {\text {v a l i d a t i o n}} \\ \tilde {f} (h, r, t) & (h, r, t) \notin \mathcal {G} _ {\text {t r a i n}} \cup \mathcal {G} _ {\text {v a l i d a t i o n}} \end{array} \right.
233
+ $$
234
+
235
+ where $\mathcal{G}_{\mathrm{validation}}$ denotes the validation set of a KG.
236
+
237
+ The first step is to get a pre-train KGC model, which lays the foundation for subsequent steps. Although any KGC model is allowed, it is better to choose a KGC model with good performance.
238
+
239
+ The second step is to normalize the scoring function $f(h,r,t)$ provided by the first step, which can make the values of $\hat{f}(h,r,t)$ between 0 and 1, and the larger the value of $f(h,r,t)$ , the larger the value of $\hat{f}(h,r,t)$ . A good property of softmax function is that it is invariant under translation transformation, i.e., $\operatorname{softmax}(x + c) = \operatorname{softmax}(x)$
240
+
241
+ for any $c \in \mathbb{R}$ . The meaning of $N$ is the number of answer tail entities for a query $(h, r, ?)$ . As there can be multiple answer tail entities for a query $(h, r, ?)$ , each of their corresponding predicted values should be close to 1. Thus, we multiply $\text{softmax}(f(h, r, t))$ by $N$ to make it close to 1. The operation of taking the minimum value is to prevent the value from exceeding 1. The hyperparameter $\alpha$ is to prevent $\hat{f}(h, r, t)$ from becoming 0 for the case where $M = 0$ .
242
+
243
+ The third step adapts the KGC models to CLQA datasets. Since the adaptation function, linear function, is a monotonically increasing function, the new scoring function $\tilde{f}(h,r,t)$ have the same results of KGC ranking metrics as $f(h,r,t)$ . Thus, our method can improve the performance of CLQA while maintaining the evaluation results of KGC. This step is lightweight because the adaptation function is simple and only the parameter matrix $\mathbf{W}$ is optimized.
244
+
245
+ The fourth step replaces the value of $\tilde{f}(h, r, t)$ with 1 for known true triplets to get a calibrated KG tensor $X$ . While evaluating KGC models, the known true triplets are not typically taken into account. Nonetheless, this step is crucial for CLQA as it ensures the calibration of the tensor $X$ for better performance.
246
+
247
+ # 5 Experiments
248
+
249
+ # 5.1 Experimental Settings
250
+
251
+ Datasets We evaluate our method on three popular knowledge graph datasets, including FB15k (Bordes et al., 2013), FB15k-237 (Toutanova et al., 2015), NELL995 (Xiong et al., 2017). We use the standard FOL queries generated in BetaE (Ren and Leskovec, 2020), consisting of 9
252
+
253
+ <table><tr><td>Models</td><td>avgp</td><td>avgn</td><td>1p</td><td>2p</td><td>3p</td><td>2i</td><td>3i</td><td>pi</td><td>ip</td><td>2u</td><td>up</td><td>2in</td><td>3in</td><td>inp</td><td>pin</td><td>pni</td></tr><tr><td colspan="17">FB15k</td></tr><tr><td>GQE</td><td>28.0</td><td>-</td><td>54.6</td><td>15.3</td><td>10.8</td><td>39.7</td><td>51.4</td><td>27.6</td><td>19.1</td><td>22.1</td><td>11.6</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Q2B</td><td>38.0</td><td>-</td><td>68.0</td><td>21.0</td><td>14.2</td><td>55.1</td><td>66.5</td><td>39.4</td><td>26.1</td><td>35.1</td><td>16.7</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>BetaE</td><td>41.6</td><td>11.8</td><td>65.1</td><td>25.7</td><td>24.7</td><td>55.8</td><td>66.5</td><td>43.9</td><td>28.1</td><td>40.1</td><td>25.2</td><td>14.3</td><td>14.7</td><td>11.5</td><td>6.5</td><td>12.4</td></tr><tr><td>ConE</td><td>49.8</td><td>14.8</td><td>73.3</td><td>33.8</td><td>29.2</td><td>64.4</td><td>73.7</td><td>50.9</td><td>35.7</td><td>55.7</td><td>31.4</td><td>17.9</td><td>18.7</td><td>12.5</td><td>9.8</td><td>15.1</td></tr><tr><td>GNN-QE</td><td>72.8</td><td>38.6</td><td>88.5</td><td>69.3</td><td>58.7</td><td>79.7</td><td>83.5</td><td>69.9</td><td>70.4</td><td>74.1</td><td>61.0</td><td>44.7</td><td>41.7</td><td>42.0</td><td>30.1</td><td>34.3</td></tr><tr><td>CQD-CO</td><td>46.9</td><td>-</td><td>89.2</td><td>25.3</td><td>13.4</td><td>74.4</td><td>78.3</td><td>44.1</td><td>33.2</td><td>41.8</td><td>21.9</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQD-Beam</td><td>58.2</td><td>-</td><td>89.2</td><td>54.3</td><td>28.6</td><td>74.4</td><td>78.3</td><td>58.2</td><td>67.7</td><td>42.4</td><td>30.9</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQDA</td><td>70.4</td><td>42.8</td><td>89.2</td><td>64.5</td><td>57.9</td><td>76.1</td><td>79.4</td><td>70.0</td><td>70.6</td><td>68.4</td><td>57.9</td><td>54.7</td><td>47.1</td><td>37.6</td><td>35.3</td><td>24.6</td></tr><tr><td>QTO</td><td>74.0</td><td>49.2</td><td>89.5</td><td>67.4</td><td>58.8</td><td>80.3</td><td>83.6</td><td>75.2</td><td>74.0</td><td>76.7</td><td>61.3</td><td>61.1</td><td>61.2</td><td>47.6</td><td>48.9</td><td>27.5</td></tr><tr><td>CKGR</td><td>80.6</td><td>71.0</td><td>89.9</td><td>76.5</td><td>72.8</td><td>84.6</td><td>88.1</td><td>82.1</td><td>80.4</td><td>78.7</td><td>72.1</td><td>75.0</td><td>74.3</td><td>62.6</td><td>70.7</td><td>72.5</td></tr><tr><td colspan="17">FB15k-237</td></tr><tr><td>GQE</td><td>16.3</td><td>-</td><td>35.0</td><td>7.2</td><td>5.3</td><td>23.3</td><td>34.6</td><td>16.5</td><td>10.7</td><td>8.2</td><td>5.7</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Q2B</td><td>20.1</td><td>-</td><td>40.6</td><td>9.4</td><td>6.8</td><td>29.5</td><td>42.3</td><td>21.2</td><td>12.6</td><td>11.3</td><td>7.6</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>BetaE</td><td>20.9</td><td>5.5</td><td>39.0</td><td>10.9</td><td>10.0</td><td>28.8</td><td>42.5</td><td>22.4</td><td>12.6</td><td>12.4</td><td>9.7</td><td>5.1</td><td>7.9</td><td>7.4</td><td>3.5</td><td>3.4</td></tr><tr><td>ConE</td><td>23.4</td><td>5.9</td><td>41.8</td><td>12.8</td><td>11.0</td><td>32.6</td><td>47.3</td><td>25.5</td><td>14.0</td><td>14.5</td><td>10.8</td><td>5.4</td><td>8.6</td><td>7.8</td><td>4.0</td><td>3.6</td></tr><tr><td>FuzzQE</td><td>24.0</td><td>7.8</td><td>42.8</td><td>12.9</td><td>10.3</td><td>33.3</td><td>46.9</td><td>26.9</td><td>17.8</td><td>14.6</td><td>10.3</td><td>8.5</td><td>11.6</td><td>7.8</td><td>5.2</td><td>5.8</td></tr><tr><td>GNN-QE</td><td>26.8</td><td>10.2</td><td>42.8</td><td>14.7</td><td>11.8</td><td>38.3</td><td>54.1</td><td>31.1</td><td>18.9</td><td>16.2</td><td>13.4</td><td>10.0</td><td>16.8</td><td>9.3</td><td>7.2</td><td>7.8</td></tr><tr><td>CQD-CO</td><td>21.8</td><td>-</td><td>46.7</td><td>9.5</td><td>6.3</td><td>31.2</td><td>40.6</td><td>23.6</td><td>16.0</td><td>14.5</td><td>8.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQD-Beam</td><td>22.3</td><td>-</td><td>46.7</td><td>11.6</td><td>8.0</td><td>31.2</td><td>40.6</td><td>21.2</td><td>18.7</td><td>14.6</td><td>8.4</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQDA</td><td>25.7</td><td>10.7</td><td>46.7</td><td>13.6</td><td>11.4</td><td>34.5</td><td>48.3</td><td>27.4</td><td>20.9</td><td>17.6</td><td>11.4</td><td>13.6</td><td>16.8</td><td>7.9</td><td>8.9</td><td>5.8</td></tr><tr><td>QTO</td><td>33.5</td><td>15.5</td><td>49.0</td><td>21.4</td><td>21.2</td><td>43.1</td><td>56.8</td><td>38.1</td><td>28.0</td><td>22.7</td><td>21.4</td><td>16.8</td><td>26.7</td><td>15.1</td><td>13.6</td><td>5.4</td></tr><tr><td>CKGR</td><td>34.8</td><td>25.3</td><td>49.2</td><td>22.3</td><td>22.3</td><td>45.1</td><td>60.3</td><td>40.3</td><td>29.1</td><td>22.9</td><td>22.0</td><td>23.9</td><td>37.5</td><td>21.0</td><td>23.2</td><td>21.2</td></tr><tr><td colspan="17">NELL995</td></tr><tr><td>GQE</td><td>18.6</td><td>-</td><td>32.8</td><td>11.9</td><td>9.6</td><td>27.5</td><td>35.2</td><td>18.4</td><td>14.4</td><td>8.5</td><td>8.8</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Q2B</td><td>22.9</td><td>-</td><td>42.2</td><td>14.0</td><td>11.2</td><td>33.3</td><td>44.5</td><td>22.4</td><td>16.8</td><td>11.3</td><td>10.3</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>BetaE</td><td>24.6</td><td>5.9</td><td>53.0</td><td>13.0</td><td>11.4</td><td>37.6</td><td>47.5</td><td>24.1</td><td>14.3</td><td>12.2</td><td>8.5</td><td>5.1</td><td>7.8</td><td>10.0</td><td>3.1</td><td>3.5</td></tr><tr><td>ConE</td><td>27.2</td><td>6.4</td><td>53.1</td><td>16.1</td><td>13.9</td><td>40.0</td><td>50.8</td><td>26.3</td><td>17.5</td><td>15.3</td><td>11.3</td><td>5.7</td><td>8.1</td><td>10.8</td><td>3.5</td><td>3.9</td></tr><tr><td>FuzzQE</td><td>27.0</td><td>7.8</td><td>47.4</td><td>17.2</td><td>14.6</td><td>39.5</td><td>49.2</td><td>26.2</td><td>20.6</td><td>15.3</td><td>12.6</td><td>7.8</td><td>9.8</td><td>11.1</td><td>4.9</td><td>5.5</td></tr><tr><td>GNN-QE</td><td>28.9</td><td>9.7</td><td>53.3</td><td>18.9</td><td>14.9</td><td>42.4</td><td>52.5</td><td>30.8</td><td>18.9</td><td>15.9</td><td>12.6</td><td>9.9</td><td>14.6</td><td>11.4</td><td>6.3</td><td>6.3</td></tr><tr><td>CQD-CO</td><td>28.8</td><td>-</td><td>60.4</td><td>17.8</td><td>12.7</td><td>39.3</td><td>46.6</td><td>30.1</td><td>22.0</td><td>17.3</td><td>13.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQD-Beam</td><td>28.6</td><td>-</td><td>60.4</td><td>20.6</td><td>11.6</td><td>39.3</td><td>46.6</td><td>25.4</td><td>23.9</td><td>17.5</td><td>12.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CQDA</td><td>32.3</td><td>13.3</td><td>60.4</td><td>22.9</td><td>16.7</td><td>43.4</td><td>52.6</td><td>32.1</td><td>26.4</td><td>20.0</td><td>17.0</td><td>15.1</td><td>18.6</td><td>15.8</td><td>10.7</td><td>6.5</td></tr><tr><td>QTO</td><td>32.9</td><td>12.9</td><td>60.7</td><td>24.1</td><td>21.6</td><td>42.5</td><td>50.6</td><td>31.3</td><td>26.5</td><td>20.4</td><td>17.9</td><td>13.8</td><td>17.9</td><td>16.9</td><td>9.9</td><td>5.9</td></tr><tr><td>CKGR</td><td>35.3</td><td>19.9</td><td>61.4</td><td>25.7</td><td>24.1</td><td>45.8</td><td>58.8</td><td>33.9</td><td>29.2</td><td>20.5</td><td>18.7</td><td>19.8</td><td>27.5</td><td>20.4</td><td>17.4</td><td>14.6</td></tr></table>
254
+
255
+ Table 1: Complex Query Answering results on FB15k, FB15k-237 and NELL995 test sets with MRR metrics. avg ${}_{p}$ is the average on existential positive first-order queries. avg ${}_{n}$ is the average on queries with negation.
256
+
257
+ types of existential positive first-order queries (1p/2p/3p/2i/3i/pi/ip/2u/up) and 5 types of queries with negation (2in/3in/inp/pin/pni). Specifically, "p", "i", "u", and "n" stand for "projection", "intersection", "union", and 'negation' in the query structure, respectively. The query types are shown in Figure 2. During adaptation, we only use queries of type 1p, 2i, 3i, 2in and 3in of the training dataset to reduce computation.
258
+
259
+ Baselines We compare our method with state-of-the-art methods on complex query answering, query embedding methods, including GQE (Hamilton et al., 2018), Q2B (Ren et al., 2020), BetaE (Ren and Leskovec, 2020)), ConE (Zhang et al., 2021), FuzzQE (Chen et al., 2022), GNN-QE Zhu et al., 2022), complex query decomposition methods, including CQD-CO (Aragelyan et al., 2020), CQD-beam (Aragelyan et al., 2020) CQD (Aragelyan et al., 2023) and QTO (Bai et al., 2023).
260
+
261
+ Evaluation Metrics We adopt the evaluation framework introduced in BetaE (Ren and Leskovec, 2020), which involves categorizing the answers to each complex query into two distinct groups: easy answers and hard answers. For validation/test
262
+
263
+ queries, easy answers refer to entities that can be reached by edges in training/validation graph, while hard answers are those that can only be inferred by predicting missing edges in the validation/test graph. We evaluate the method on complex queries by calculating the rank for each hard answer against non-answers and computing the mean reciprocal rank (MRR) (Bordes et al., 2013).
264
+
265
+ Implementation Details For pre-train, our method can be incorporated with any KGC model. We select a state-of-the-art KGC model, ComplEx (Trouillon et al., 2017) trained with N3 regularization (Lacroix et al., 2018) and auxiliary relation prediction task (Chen et al., 2021). We choose the hyper-parameters with the best MRR on the validation set.
266
+
267
+ For training of CLQA, we train at most 5 epochs. For testing of CLQA, we pre-compute the KG tensor $X$ to make our method achieve higher efficiency compared to previous query embedding methods (Bai et al., 2023). To save the memory usage of $X$ , we select an appropriate $\epsilon$ such that after filtering all entries that less than $\epsilon$ can be stored on a single GPU.
268
+
269
+ <table><tr><td>Models</td><td>\( avg_p \)</td><td>\( avg_n \)</td><td>1p</td><td>2p</td><td>3p</td><td>2i</td><td>3i</td><td>pi</td><td>ip</td><td>2u</td><td>up</td><td>2in</td><td>3in</td><td>inp</td><td>pin</td><td>pni</td></tr><tr><td colspan="17">FB15k</td></tr><tr><td>S12</td><td>78.1</td><td>29.5</td><td>89.9</td><td>73.9</td><td>68.0</td><td>82.2</td><td>84.9</td><td>78.0</td><td>77.0</td><td>78.7</td><td>70.0</td><td>33.8</td><td>34.3</td><td>31.7</td><td>23.7</td><td>23.8</td></tr><tr><td>S123</td><td>78.7</td><td>45.6</td><td>89.9</td><td>74.0</td><td>68.7</td><td>83.3</td><td>86.3</td><td>79.4</td><td>77.9</td><td>78.7</td><td>69.9</td><td>51.4</td><td>50.3</td><td>45.4</td><td>39.5</td><td>41.3</td></tr><tr><td>S1234</td><td>80.6</td><td>71.0</td><td>89.9</td><td>76.5</td><td>72.8</td><td>84.6</td><td>88.1</td><td>82.1</td><td>80.4</td><td>78.7</td><td>72.1</td><td>75.0</td><td>74.3</td><td>62.6</td><td>70.7</td><td>72.5</td></tr><tr><td colspan="17">FB15k-237</td></tr><tr><td>S12</td><td>32.3</td><td>9.6</td><td>49.2</td><td>20.5</td><td>19.8</td><td>41.4</td><td>54.8</td><td>35.9</td><td>26.6</td><td>22.7</td><td>19.9</td><td>9.8</td><td>16.4</td><td>10.0</td><td>7.1</td><td>4.7</td></tr><tr><td>S123</td><td>32.9</td><td>15.7</td><td>49.2</td><td>20.9</td><td>20.4</td><td>42.2</td><td>56.5</td><td>37.1</td><td>26.9</td><td>22.4</td><td>20.2</td><td>15.8</td><td>25.4</td><td>14.1</td><td>12.9</td><td>10.2</td></tr><tr><td>S1234</td><td>34.8</td><td>25.3</td><td>49.2</td><td>22.3</td><td>22.3</td><td>45.1</td><td>60.3</td><td>40.3</td><td>29.1</td><td>22.9</td><td>22.0</td><td>23.9</td><td>37.5</td><td>21.0</td><td>23.2</td><td>21.2</td></tr><tr><td colspan="17">NELL995</td></tr><tr><td>S12</td><td>32.8</td><td>7.3</td><td>61.4</td><td>23.4</td><td>20.9</td><td>42.5</td><td>51.0</td><td>31.8</td><td>26.4</td><td>20.4</td><td>17.6</td><td>7.4</td><td>9.9</td><td>9.9</td><td>4.6</td><td>4.4</td></tr><tr><td>S123</td><td>33.2</td><td>11.3</td><td>61.4</td><td>23.8</td><td>21.4</td><td>43.3</td><td>52.5</td><td>32.0</td><td>26.7</td><td>20.4</td><td>17.8</td><td>12.2</td><td>16.6</td><td>13.5</td><td>8.0</td><td>6.3</td></tr><tr><td>S1234</td><td>35.3</td><td>19.9</td><td>61.4</td><td>25.7</td><td>24.1</td><td>45.8</td><td>58.8</td><td>33.9</td><td>29.2</td><td>20.5</td><td>18.7</td><td>19.8</td><td>27.5</td><td>20.4</td><td>17.4</td><td>14.6</td></tr></table>
270
+
271
+ Table 2: Complex Query Answering results on FB15k, FB15k-237 and NELL995 test sets with different settings.
272
+
273
+ <table><tr><td>ε</td><td>0.05</td><td>0.01</td><td>0.005</td><td>0.001</td><td>0.0005</td><td>0.0001</td><td>0.00005</td><td>0.00001</td></tr><tr><td>Memory Usage</td><td>22M</td><td>60M</td><td>103M</td><td>383M</td><td>676M</td><td>2.77G</td><td>5.99G</td><td>Out of Memory</td></tr><tr><td>Sparsity Level</td><td>99.999%</td><td>99.997%</td><td>99.995%</td><td>99.980%</td><td>99.965%</td><td>99.851%</td><td>99.678%</td><td>-</td></tr><tr><td>Running Time</td><td>290s</td><td>311s</td><td>314s</td><td>348s</td><td>373s</td><td>482s</td><td>558s</td><td>-</td></tr><tr><td>avgp</td><td>27.9</td><td>32.0</td><td>32.9</td><td>34.0</td><td>34.3</td><td>34.7</td><td>34.8</td><td>-</td></tr><tr><td>avgn</td><td>24.5</td><td>25.2</td><td>25.3</td><td>25.3</td><td>25.3</td><td>25.3</td><td>25.3</td><td>-</td></tr></table>
274
+
275
+ Table 3: Effect of $\epsilon$ on memory usage, sparsity level, and $\mathrm{avg}_p$ and $\mathrm{avg}_n$ . The experiments are conducted on FB15K-237 datasets. The time is the running time on one NVIDIA A40 GPU.
276
+
277
+ # 5.2 Results
278
+
279
+ See Table 1 for the results. $\mathrm{avg}_p$ is the average on existential positive first-order queries. $\mathrm{avg}_n$ is the average on queries with negation. GQE, Q2B, CKGCO, and CQD-Beam do not support queries with negation, so the corresponding entries are empty. We observe that our model significantly outperforms baseline methods across all datasets. Our model yields a relative gain of $6.8\%$ and $52.3\%$ on $\mathrm{avg}_p$ and $\mathrm{avg}_n$ compared to previous state-of-the-art model QTO. This shows that our method has better reasoning skills and superior adaptability when tackling complex query answering tasks. We attribute this improvement to our calibration method, which can adapt the KGC models to answering complex queries very well.
280
+
281
+ The adaptation function of CKGC is simple, making the model quickly converge during the adaptation process. We next show the training time. The running time for FB15k dataset is an average of 67 seconds per epoch, the running time for FB15k -237 dataset is an average of 32 seconds per epoch, the running time for NELL995 dataset is an average of 83 seconds per epoch. All models can converge within 5 epochs, resulting in a very short training time. In contrast, previous embedding-based models, such as BetaE, ConE, FuzzQE, GNN-QE and so on, often require hundreds of epochs to converge. For instance, BetaE
282
+
283
+ takes 105 epochs to converge and has an average training running time of 63 seconds per epoch on the FB15k-237 dataset. Compared to our model (32 seconds x 2 epoch = 64 seconds), these models require significantly more runtime for training. The running time is the running time on one NVIDIA A40 GPU.
284
+
285
+ # 5.3 Ablation Studies
286
+
287
+ As stated in Section 4.2, we obtain a calibrated knowledge graph completion model by executing four steps. To analyze the impact of each step, we obtain calibrated models by performing only a few steps. We denote the calibrated model with steps 1 and 2 as S12, the model with steps 1, step 2, and step 3 as S123, and the model with steps 1, step 2, step 3, and step 4 as S1234. S12 primarily serves as a baseline. S123 is mainly used to study the impact of adaptation (step 3). S1234 is mainly used to study the impact of calibrating the predicted values corresponding to true triplets (step 4).
288
+
289
+ See Table 2 for the results. S123 has an average relative improvement of $1.3\%$ on $\mathrm{avg}_p$ metric compared to S12, and S1234 has an average relative improvement of $4.8\%$ on $\mathrm{avg}_p$ metric compared to S123. S123 has an average relative improvement of $64.8\%$ on $\mathrm{avg}_n$ metric compared to S12, and S1234 has an average relative improvement of $64.3\%$ on $\mathrm{avg}_n$ metric compared to S123.
290
+
291
+ The results show that the $\mathrm{avg}_n$ metric has been significantly improved. Since step 3 calibrates both predicted values corresponding to true triplets and predicted values corresponding to false triplets, we cannot determine from this step whether the main improvement on $\mathrm{avg}_n$ comes from the calibration for true triplets or false triplets. Since step 4 only changes the predicted values corresponding to the true triplets, this indicates that the significant improvement on $\mathrm{avg}_n$ is primarily due to the more accurate calibration of the predicted values corresponding to the true triplets.
292
+
293
+ # 5.4 Hyper-parameters Analysis
294
+
295
+ We analyze the experimental results of our method with respect to the hyper-parameter $\epsilon$ . We study the changes in memory usage, sparsity level (the ratio of zero entries in the KG tensor $X$ ), $\mathrm{avg}_p$ and $\mathrm{avg}_n$ as $\epsilon$ decreases.
296
+
297
+ We show the results in Table 3, which show that as $\epsilon$ decreases, memory usage increases, sparsity level decreases, running time increases, $\mathrm{avg}_p$ increases, and $\mathrm{avg}_n$ increases. Thus, we can select a proper $\epsilon$ to balance the computation or memory usage and model performance.
298
+
299
+ # 6 Conclusion
300
+
301
+ CLQA is one of the crucial tasks associated with KGs. In this paper, we introduce CKGC, a calibration method developed to enhance the adaptability of KGC models for CLQA. Through experimental analysis, we illustrate that the implementation of CKGC leads to a substantial improvement in model performance for the CLQA task. Therefore, the calibration of KGC models holds significant importance for the optimization of CLQA models. Moving forward, we encourage the exploration and proposal of additional calibration methods to further enhance the performance of CLQA.
302
+
303
+ # Limitations
304
+
305
+ One limitation of our method is the space complexity and time complexity of projection operation. We use an approach to make the predicted tensor $\mathbf{X}$ sparse. This approach can make the model performance decreases as shown in Table 3. We plan to explore methods that can reduce the computational complexity and memory usage of the method while maintaining good performance.
306
+
307
+ # Acknowledgements
308
+
309
+ This work is supported by the National Key Research and Development Program of China (2020AAA0106000), the National Natural Science Foundation of China (U19A2079), and the CCCD Key Lab of Ministry of Culture and Tourism.
310
+
311
+ # References
312
+
313
+ Erik Arakelyan, Daniel Daza, Pasquale Minervini, and Michael Cochez. 2020. Complex query answering with neural link predictors. In International Conference on Learning Representations.
314
+ Erik Arakelyan, Pasquale Minervini, Daniel Daza, Michael Cochez, and Isabelle Augenstein. 2023. Adapting neural link predictors for data-efficient complex query answering. In Thirty-seventh Conference on Neural Information Processing Systems.
315
+ Yushi Bai, Xin Lv, Juanzi Li, and Lei Hou. 2023. Answering complex logical queries on knowledge graphs via query computation tree optimization. In International Conference on Machine Learning, pages 1472-1491. PMLR.
316
+ 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.
317
+ Xuelu Chen, Ziniu Hu, and Yizhou Sun. 2022. Fuzzy logic based logical query answering on knowledge graphs. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 3939-3948.
318
+ Yihong Chen, Pasquale Minervini, Sebastian Riedel, and Pontus Stenetorp. 2021. Relation prediction as an auxiliary training objective for improving multi-relational graph representations. In 3rd Conference on Automated Knowledge Base Construction.
319
+ Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, Luke Vilnis, Ishan Durugkar, Akshay Krishnamurthy, Alex Smola, and Andrew McCallum. 2018. Go for a walk and arrive at the answer: Reasoning over paths in knowledge bases using reinforcement learning. In International Conference on Learning Representations.
320
+ Will Hamilton, Payal Bajaj, Marinka Zitnik, Dan Jurafsky, and Jure Leskovec. 2018. Embedding logical queries on knowledge graphs. Advances in neural information processing systems, 31.
321
+ Marcel Hildebrandt, Jorge Andres Quintero Serna, Yunpu Ma, Martin Ringsquandl, Mitchell Joblin, and Volker Tresp. 2020. Reasoning on knowledge graphs with debate dynamics. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 4123-4131.
322
+
323
+ Seyed Mehran Kazemi and David Poole. 2018. Simple embedding for link prediction in knowledge graphs. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 4289-4300.
324
+ Erich Peter Klement, Radko Mesiar, and Endre Pap, 2004. Triangular norms. position paper ii: general constructions and parameterized families. Fuzzy sets and Systems, 145(3):411-438.
325
+ Timothée Lacroix, Nicolas Usunier, and Guillaume Obozinski. 2018. Canonical tensor decomposition for knowledge base completion. In International Conference on Machine Learning, pages 2863-2872. PMLR.
326
+ Meng Qu, Junkun Chen, Louis-Pascal Xhonneux, Yoshua Bengio, and Jian Tang. 2020. Rnnlogic: Learning logic rules for reasoning on knowledge graphs. In International Conference on Learning Representations.
327
+ H Ren, W Hu, and J Leskovec. 2020. Query2box: Reasoning over knowledge graphs in vector space using box embeddings. In International Conference on Learning Representations (ICLR).
328
+ Hongyu Ren, Mikhail Galkin, Michael Cochez, Zhaocheng Zhu, and Jure Leskovec. 2023. Neural graph reasoning: Complex logical query answering meets graph databases. arXiv preprint arXiv:2303.14617.
329
+ Hongyu Ren and Jure Leskovec. 2020. Beta embeddings for multi-hop logical reasoning in knowledge graphs. Advances in Neural Information Processing Systems, 33:19716-19726.
330
+ Ali Sadeghian, Mohammadreza Armandpour, Patrick Ding, and Daisy Zhe Wang. 2019. Drum: End-to-end differentiable rule mining on knowledge graphs. Advances in Neural Information Processing Systems, 32.
331
+ Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. 2018. Modeling relational data with graph convolutional networks. In 15th Extended Semantic Web Conference (ESWC), pages 593-607. Springer, Cham.
332
+ Zhiqing Sun, Zhi-Hong Deng, Jian-Yun Nie, and Jian Tang. 2018. Rotate: Knowledge graph embedding by relational rotation in complex space. In International Conference on Learning Representations.
333
+ Komal Teru, Etienne Denis, and Will Hamilton. 2020. Inductive relation prediction by subgraph reasoning. In International Conference on Machine Learning, pages 9448-9457. PMLR.
334
+ Kristina Toutanova, Danqi Chen, Patrick Pantel, Hoifung Poon, Pallavi Choudhury, and Michael Gamon. 2015. Representing text for joint embedding of text and knowledge bases. In Proceedings of the 2015 conference on empirical methods in natural language processing, pages 1499-1509.
335
+
336
+ Théo Trouillon, Christopher R Dance, Éric Gaussier, Johannes Welbl, Sebastian Riedel, and Guillaume Bouchard. 2017. Knowledge graph completion via complex tensor factorization. Journal of Machine Learning Research, 18:1-38.
337
+ Shikhar Vashishth, Soumya Sanyal, Vikram Nitin, and Partha Talukdar. 2019. Composition-based multi-relational graph convolutional networks. In International Conference on Learning Representations.
338
+ Wenhan Xiong, Thien Hoang, and William Yang Wang. 2017. Deeppath: A reinforcement learning method for knowledge graph reasoning. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 564-573.
339
+ Bishan Yang, Wen-tau Yih, Xiaodong He, Jianfeng Gao, and Li Deng. 2014. Embedding entities and relations for learning and inference in knowledge bases. arXiv e-prints, pages arXiv-1412.
340
+ Fan Yang, Zhilin Yang, and William W Cohen. 2017. Differentiable learning of logical rules for knowledge base reasoning. Advances in neural information processing systems, 30.
341
+ Denghui Zhang, Zixuan Yuan, Hao Liu, Hui Xiong, et al. 2022. Learning to walk with dual agents for knowledge graph reasoning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 5932-5941.
342
+ Zhanqiu Zhang, Jie Wang, Jiajun Chen, Shuiwang Ji, and Feng Wu. 2021. Cone: Cone embeddings for multi-hop reasoning over knowledge graphs. Advances in Neural Information Processing Systems, 34:19172-19183.
343
+ Zhaocheng Zhu, Mikhail Galkin, Zuobai Zhang, and Jian Tang. 2022. Neural-symbolic models for logical queries on knowledge graphs. In International Conference on Machine Learning, pages 27454-27478. PMLR.
344
+
345
+ # A Appendix
346
+
347
+ # A.1 Experimental Details
348
+
349
+ Datasets The detailed statistics for each dataset can be seen in Table 4.
350
+
351
+ <table><tr><td>Split</td><td>Query Types</td><td>FB15k</td><td>FB15k-237</td><td>NELL995</td></tr><tr><td rowspan="2">Train</td><td>1p,2p,3p,2i,3i</td><td>273,710</td><td>149,689</td><td>107,982</td></tr><tr><td>2in, 3in, inp, pin, pni</td><td>27,371</td><td>14,968</td><td>10,798</td></tr><tr><td rowspan="2">Validation</td><td>1p</td><td>59,078</td><td>20,094</td><td>16,910</td></tr><tr><td>Others</td><td>8,000</td><td>5,000</td><td>4,000</td></tr><tr><td rowspan="2">Test</td><td>1p</td><td>66,990</td><td>22,804</td><td>17,021</td></tr><tr><td>Others</td><td>8,000</td><td>5,000</td><td>4,000</td></tr></table>
352
+
353
+ Hyper-parameters Settings Table 5 shows the best hyper-parameters we searched for pre-training KGC models. Table 6 shows the best hyper-parameters we searched for CLQA.
354
+
355
+ Table 4: Detailed statistics on the different types of query structures in FB15K, FB15K-237, and NELL995 datasets.
356
+
357
+ <table><tr><td>Dataset</td><td>Dimension</td><td>Epoch</td><td>Batch Size</td><td>Learning Rate</td><td>λ1</td><td>λ2</td></tr><tr><td>FB15k</td><td>2000</td><td>200</td><td>1000</td><td>0.01</td><td>0.0625</td><td>0.005</td></tr><tr><td>FB15k-237</td><td>2000</td><td>200</td><td>1000</td><td>0.1</td><td>4</td><td>0.05</td></tr><tr><td>NELL995</td><td>2000</td><td>200</td><td>1000</td><td>0.1</td><td>0.0625</td><td>0.05</td></tr></table>
358
+
359
+ Table 5: The hyper-parameters settings for pre-training KGC models, $\lambda_{1}$ is the coefficient for relation prediction loss, and $\lambda_{2}$ is the coefficient for regularization.
360
+
361
+ <table><tr><td>Datset</td><td>Dimension</td><td>Epoch</td><td>Batch Size</td><td>Learning Rate</td><td>α</td><td>ε</td></tr><tr><td>FB15k</td><td>2000</td><td>5</td><td>1000</td><td>0.001</td><td>0.1</td><td>0.0005</td></tr><tr><td>FB15k-237</td><td>2000</td><td>5</td><td>1000</td><td>0.001</td><td>0.1</td><td>0.00005</td></tr><tr><td>NELL995</td><td>2000</td><td>5</td><td>1000</td><td>0.001</td><td>0.1</td><td>0.00001</td></tr></table>
362
+
363
+ Table 6: The hyper-parameters settings for CLQA.
364
+
365
+ Different KGC models Our proposed method CKGC is effective for any KGC model because it relies solely on the results predicted by the KGC model. Although any KGC model is permissible, it is preferable to select a KGC model with strong performance. In Table 7, we show the results of our method with different KGC models. We select the DistMult (Yang et al., 2014), CP (Lacroix et al., 2018), SimplE (Kazemi and Poole, 2018), and ComplEx (Trouillon et al., 2017) KGC models. The results demonstrate that Step 3 (the adaptation step) can indeed enhance performance across various KGC models.
366
+
367
+ <table><tr><td>Models</td><td>1p</td><td>avgp(S12)</td><td>avgp(S123)</td><td>avgn(S12)</td><td>avgn(S123)</td></tr><tr><td>DistMult</td><td>47.6</td><td>30.2</td><td>30.8</td><td>9.1</td><td>14.7</td></tr><tr><td>CP</td><td>46.5</td><td>29.4</td><td>30.1</td><td>8.7</td><td>13.8</td></tr><tr><td>SimpleE</td><td>46.3</td><td>29.0</td><td>29.5</td><td>8.6</td><td>13.8</td></tr><tr><td>ComplEx</td><td>49.2</td><td>32.4</td><td>32.9</td><td>9.7</td><td>15.2</td></tr></table>
368
+
369
+ Table 7: The performance of complex logical quereis answering models with different KGC model, where 1p is the KGC results, $\mathrm{avg}_p$ is the average results of queries without negation operator, $\mathrm{avg}_n$ is the average results of queries with negation operator. S12 is the model using direct KGC scores. S123 is the model with adaptation.
2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99fecd95339886ec7f8cef6d323aa5d485f17b80af4e750caea2e51e6fea8b45
3
+ size 501474
2024/Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Compositional Generalization with Grounded Language Models/5b07d1a5-aacb-474d-988a-7cd18a966725_content_list.json ADDED
@@ -0,0 +1,1780 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Compositional Generalization with Grounded Language Models",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 166,
8
+ 89,
9
+ 831,
10
+ 111
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Sondre Wold, Étienne Simon, Lucas Georges Gabriel Charpentier, Egor V. Kostylev, Erik Velldal, Lilja Øvrelid \nUniversity of Oslo",
17
+ "bbox": [
18
+ 211,
19
+ 143,
20
+ 784,
21
+ 197
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 260,
31
+ 260,
32
+ 339,
33
+ 275
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Grounded language models use external sources of information, such as knowledge graphs, to meet some of the general challenges associated with pre-training. By extending previous work on compositional generalization in semantic parsing, we allow for a controlled evaluation of the degree to which these models learn and generalize from patterns in knowledge graphs. We develop a procedure for generating natural language questions paired with knowledge graphs that targets different aspects of compositionality and further avoids grounding the language models in information already encoded implicitly in their weights. We evaluate existing methods for combining language models with knowledge graphs and find them to struggle with generalization to sequences of unseen lengths and to novel combinations of seen base components. While our experimental results provide some insight into the expressive power of these models, we hope our work and released datasets motivate future research on how to better combine language models with structured knowledge representations.",
40
+ "bbox": [
41
+ 142,
42
+ 286,
43
+ 460,
44
+ 627
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 114,
54
+ 638,
55
+ 260,
56
+ 653
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Language models (LMs) acquire latent representations of text through their pre-training. One drawback of this paradigm is the implicit encoding of knowledge in a large parameter space, which can lead to factual hallucinations in model outputs. To reduce this effect, there has recently been a widespread interest in what is sometimes referred to as grounded language models, which are LMs grounded in external information sources, such as knowledge graphs (KGs). These approaches typically attempt to enable reasoning over KGs by combining the LM outputs with that of a separate graph encoder, such as a graph neural network (GNN; Lin et al., 2019; Zhang et al., 2022; Sun et al., 2022; Yasunaga et al., 2022; Yu et al., 2022). It can be difficult to determine to what extent grounded models",
63
+ "bbox": [
64
+ 112,
65
+ 664,
66
+ 489,
67
+ 921
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "exhibit any structured reasoning, or what precisely would constitute reasoning in this context, as the information contained in these KGs often targets the same domain as the corpora used for LM pretraining. One example of this is the overlap in information between Wikidata, often used as the KG in previous work on grounded LMs, and Wikipedia, which is a common corpus for pre-training.",
74
+ "bbox": [
75
+ 507,
76
+ 261,
77
+ 884,
78
+ 388
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Central to human reasoning is the ability to form novel combinations from seen components, often referred to as compositional generalization. Studies on compositionality have a long tradition within many fields of study, such as linguistics (Partee et al., 1995), philosophy (Pagin and Westerstahl, 2010), and cognitive science (Churchland, 1990), and determining to what degree neural networks capture compositionality is a long-standing research problem in machine learning, with debates going back several decades (Fodor and Pylyshyn, 1988; Smolensky, 1987). Recent studies in NLP have primarily used semantic parsing of synthetic utterances as a testbed for investigating to what extent neural networks combine syntactic elements to form new complex expressions (Hosseini et al., 2022). One of the most well-known examples of this is from Lake and Baroni (2018), who found seq2seq models to struggle both with systematic compositional skills and generalization to longer sequences than seen during training – abilities that are often taken to be central to compositional generalization. Some of these shortcomings were recently mitigated using a meta-learning framework (Lake and Baroni, 2023), but it is still not clear under what circumstances neural networks can consistently demonstrate compositional generalization, or if they can at all (Dziri et al., 2024).",
85
+ "bbox": [
86
+ 507,
87
+ 391,
88
+ 884,
89
+ 840
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work, we investigate to what extent grounded language models exhibit compositional generalization by combining two orthogonal research directions: compositionality in neural networks and the grounding of LMs in KGs.",
96
+ "bbox": [
97
+ 507,
98
+ 841,
99
+ 885,
100
+ 921
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "page_number",
106
+ "text": "3447",
107
+ "bbox": [
108
+ 480,
109
+ 927,
110
+ 519,
111
+ 940
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "footer",
117
+ "text": "Findings of the Association for Computational Linguistics: ACL 2024, pages 3447-3460 August 11-16, 2024 ©2024 Association for Computational Linguistics",
118
+ "bbox": [
119
+ 228,
120
+ 945,
121
+ 769,
122
+ 972
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Using question answering as a task, we train models to recognize the relation between certain patterns in a synthetic KG and natural language questions. We develop a data generation procedure that targets three aspects of compositionality from Hupkes et al. (2020): substitutivity, productivity, and systematicity. In our experiments, we evaluate LMs that interact with KGs through the use of a GNN, an approach previously proven effective for tasks such as question answering (Lin et al., 2019; Zhang et al., 2022; Sun et al., 2022) and pre-training (Yasunaga et al., 2022).",
129
+ "bbox": [
130
+ 112,
131
+ 84,
132
+ 492,
133
+ 277
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Our work targets two key limitations from the literature: Firstly, by extending existing work on compositional generalization to question answering over KGs, we can assess the capabilities of these models for structured reasoning over natural language questions of varying complexities; and secondly, by using a synthetic knowledge graph we do not run the risk of grounding a language model in a knowledge source containing information that already exists implicitly in the models' weights. The contribution of our work is three-fold: i) We provide the first experimental study on the expressive power of grounded LMs with respect to compositional generalization ii) We develop a procedure for generating dataset samples that target three theoretically motivated aspects of compositionality, and iii) We release a series of generated datasets using this procedure, together with all code and data related to our experiments, which can be used to benchmark grounded language models in a controlled environment.",
140
+ "bbox": [
141
+ 115,
142
+ 279,
143
+ 490,
144
+ 617
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 Compositionality",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 112,
154
+ 632,
155
+ 295,
156
+ 648
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "In what follows we discuss three aspects of compositionality that have been established as tests of compositionality in previous work (Hupkes et al., 2020): substitutivity, systematicity, and productivity. We also describe how we ground these notions to be applicable for our setting, where data consists of both text and KGs. We refer an interested reader to the overview by Szabó (2022) for a more extensive introduction to these terms.",
163
+ "bbox": [
164
+ 112,
165
+ 659,
166
+ 489,
167
+ 804
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Substitutivity One of the most well-known definitions of compositionality is the principle of compositionality from Partee et al. (1995): \"The meaning of a compound expression is a function of the",
174
+ "bbox": [
175
+ 112,
176
+ 818,
177
+ 489,
178
+ 882
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "meanings of its parts and of the way they are syntactically combined\". Closely related to this principle is the notion of substitutivity, which states that any change to a complex expression that maintains the meaning of individual parts also maintains the meaning of the whole expression. On the one hand, in the context of natural languages, this definition is not without controversy. Languages often have elements that do not adhere strictly to such a principle, for example through the use of idioms (Dankers et al., 2022a). On the other hand, in our setting, we can exploit the observation that if an atomic expression in natural language has a node in a graph as its reference, then we can substitute this reference with a compounded expression referencing the same node without changing the meaning of the whole expression. As the principle of compositionality is not committed to any specific theory of semantics, we can use reference as the qualification for semantic equivalence, a theory sometimes referred to as the compositionality of reference (Szabó, 2022). For example, given the KG in Figure 1, we can ask ourselves whether \"Paper2 was authored by Professor2\". We can then replace \"Professor2\" with a compounded reference, such as \"the supervisor of GraduateStudent5\", which gives rise to the question: \"Was Paper2 authored by the supervisor of GraduateStudent5?\" Following the compositionality of reference, we do not change the meaning of the overall question, since we still enquire about the same node in the graph, even though we have substituted a 1-hop reference with a 2-hop reference. Consequently, by constructing highly compositional questions in natural language, we can test whether or not neural networks can learn the mapping between constituents in text and paths in a graph.",
185
+ "bbox": [
186
+ 505,
187
+ 84,
188
+ 885,
189
+ 682
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Productivity Closely related to substitutivity, productivity refers to the ability to construct seemingly infinite constructions using a finite capacity. As Hupkes et al. (2020) point out, this view on the open-endedness of language is typically associated with generative linguistics, and in the context of neural networks, the most direct way of testing for this ability is to test models on generalization to sequences of lengths not seen during training. In our case, we can train models on questions that require reasoning over $k$ -hop paths, for several $k$ , in a graph, and then test on $j$ -hop paths, for various $j$ different from the $k$ 's used in training.",
196
+ "bbox": [
197
+ 507,
198
+ 712,
199
+ 885,
200
+ 921
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "page_footnote",
206
+ "text": "1https://github.com/ltgoslo/text-graph-generalization",
207
+ "bbox": [
208
+ 112,
209
+ 894,
210
+ 351,
211
+ 920
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "page_number",
217
+ "text": "3448",
218
+ "bbox": [
219
+ 480,
220
+ 928,
221
+ 519,
222
+ 940
223
+ ],
224
+ "page_idx": 1
225
+ },
226
+ {
227
+ "type": "image",
228
+ "img_path": "images/d008a6a40165247a751788512afa4e90410d15a303cd357e2fe93e3f8fb02c25.jpg",
229
+ "image_caption": [
230
+ "Figure 1: An example KG illustrating the relationship between entities from the LUBM inventory."
231
+ ],
232
+ "image_footnote": [],
233
+ "bbox": [
234
+ 126,
235
+ 84,
236
+ 480,
237
+ 305
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Systematicity One of the most tested properties of compositionality is systematicity, which was popularized as a term by Fodor and Pylyshyn (1988). Systematicity can loosely be described as the ability to combine seen parts and rules to form new combinations, an ability that has a long tradition within linguistics. In the context of neural networks, tests of systematicity typically involve exposing models to a finite set of items and combinations during training and then evaluating the same models on a test set containing the same set of items, but combined in ways not seen during training. Lake and Baroni (2018) use the example of a person that knows the meaning and usage of words such as \"twice,\" \"and,\" and \"again,\" which upon learning the new verb \"to dax\" can generalize to new constructions such as \"dax twice and then dax again,\" something they find neural networks to struggle with. Recently, there have also been some attempts to formalize and quantify systematic generalization in neural networks (Keysers et al., 2020; Ram et al., 2023). In our setting, we can use the typed relations of the edges in a graph, such as the one illustrated in Figure 1, to test for systematicity. If a model has seen the relations TEACHES, HAS-STUDENT, and ADVISOR in numerous 3-hop paths, but never in this order, a display of systematicity would require generalization to this unseen order.",
244
+ "bbox": [
245
+ 112,
246
+ 372,
247
+ 490,
248
+ 824
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "3 Dataset Generation",
255
+ "text_level": 1,
256
+ "bbox": [
257
+ 112,
258
+ 839,
259
+ 317,
260
+ 853
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "3.1 Overview",
267
+ "text_level": 1,
268
+ "bbox": [
269
+ 112,
270
+ 866,
271
+ 236,
272
+ 881
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "To target the compositional abilities specified above, we generate several datasets consisting of",
279
+ "bbox": [
280
+ 112,
281
+ 889,
282
+ 487,
283
+ 921
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "pairs of KGs and yes/no questions in natural language, all of which are about the information in these graphs. This section explains the properties of these datasets and how they are created.",
290
+ "bbox": [
291
+ 507,
292
+ 84,
293
+ 884,
294
+ 149
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "A KG over a set $\\mathcal{T}$ of types and a set $\\mathcal{R}$ of relations is a directed labeled multi-graph $(\\mathcal{V},\\mathcal{L},\\mathcal{E})$ with nodes $\\nu$ , called entities in this context, set $\\mathcal{L}$ of node labelings, each of which is of the form $(v,t)$ where $v$ is an entity in $\\mathcal{V}$ and $t$ a type in $\\mathcal{T}$ , and set $\\mathcal{E}$ of edges, each of which is of the form $(v,r,v')$ , where $v$ and $v'$ are entities from $\\nu$ , and $r$ is a relation from $\\mathcal{R}$ . In this work, we only concentrate on graphs from the Lehigh University Benchmark (LUBM; Guo et al., 2005), which is a synthetic KG benchmark popular for evaluating various aspects of knowledge graph repositories. In particular, we exploit LUBM's KG generator of customizable and repeatable synthetic data, which can produce KGs of a user-specified size describing a fictitious university domain and committing to a realistic ontology over sets $\\mathcal{T}_{\\text{LUBM}}$ and $\\mathcal{R}_{\\text{LUBM}}$ of university-related types and relations. We generate several graphs with an average number of 685 entities, each labeled by a single type, and 4949 edges, each labeled by a single relation.",
301
+ "bbox": [
302
+ 507,
303
+ 151,
304
+ 884,
305
+ 488
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Each of the natural language questions targets two entities in the corresponding generated LUBM graph $\\mathcal{G}$ and a chain of relations from $\\mathcal{R}_{\\text{LUBM}}$ and inverses of such relations that is to hold between these entities. In particular, for a number of hops (i.e., chain length) $k$ , the questions are semimanually created by first mapping each unique $k$ -hop combination (i.e., chain of length $k$ ) of relations from a selected subset of $\\mathcal{R}_{\\text{LUBM}}$ and their inverses to a natural language template with two parameters, and then substituting these parameters by two entities from $\\mathcal{V}$ as arguments. As a result, the answer to the question is TRUE if there exists a path between the two entities in $\\mathcal{G}$ as prompted by the $k$ -hop combination of the question template, and FALSE otherwise. We create templates for 2, 3, and 4 hops, with 5 relations from $\\mathcal{R}_{\\text{LUBM}}$ and their inverses as $\\mathcal{R}_{\\text{LUBM}}'$ . This makes for over 280 unique templates (while the number of questions depends on $\\mathcal{G}$ ). To illustrate our dataset creation we concentrate on an example and a discussion of a key step, sampling of positive and negative question-graph pairs, in the next two subsections. We refer to Appendix A for further details.",
312
+ "bbox": [
313
+ 507,
314
+ 492,
315
+ 884,
316
+ 878
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "page_footnote",
322
+ "text": "2The ontology is specified in Web Ontology Language OWL (https://www.w3.org/OWL/).",
323
+ "bbox": [
324
+ 507,
325
+ 894,
326
+ 882,
327
+ 921
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "page_number",
333
+ "text": "3449",
334
+ "bbox": [
335
+ 480,
336
+ 928,
337
+ 519,
338
+ 940
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "3.2 Example",
345
+ "text_level": 1,
346
+ "bbox": [
347
+ 112,
348
+ 84,
349
+ 231,
350
+ 99
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "Given the KG in Figure 1, we can create the following templates, for an increasing number of hops, where the “—” superscript denotes the inverse of the relation:",
357
+ "bbox": [
358
+ 112,
359
+ 105,
360
+ 489,
361
+ 168
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "list",
367
+ "sub_type": "text",
368
+ "list_items": [
369
+ "2 hops: [TEACHES, TAKES COURSE $^{-}$ ] $\\rightarrow$ Does $s$ teach a course that has a student named $e$ ?",
370
+ "3 hops: [TEACHES, TAKESCOURSE $^{-}$ , ADVISOR] $\\rightarrow$ Does $s$ teach a course that has a student supervised by $e$ ?",
371
+ "4 hops: [TEACHES, TAKESCOURSE $^{-}$ , ADVISOR, PUBLICATIONAUTHOR] $\\rightarrow$ Does $s$ teach a course that has a student supervised by an author of $e$ ?"
372
+ ],
373
+ "bbox": [
374
+ 112,
375
+ 180,
376
+ 489,
377
+ 347
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "To create questions from these templates that we label TRUE we can use PROFESSOR7 and GRADSTUDENT9 as arguments substituting parameters $s$ and $e$ , respectively, in the 2-hop case, PROFESSOR7 and PROFESSOR2 for the 3-hop case, and PROFESSOR7 and PAPER2 for the 4-hop case. Creating examples labeled as FALSE for these templates then involves sampling two entities to use as $s$ and $e$ that are not connected by the chains of relations, but are similarly connected in the graph as the entities in the positive examples. We describe this negative sampling in the next section.",
384
+ "bbox": [
385
+ 112,
386
+ 357,
387
+ 489,
388
+ 551
389
+ ],
390
+ "page_idx": 3
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "3.3 Sampling Procedure",
395
+ "text_level": 1,
396
+ "bbox": [
397
+ 112,
398
+ 562,
399
+ 321,
400
+ 577
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "As mentioned, we create each question-graph pair by sampling pairs of entities and the relations on the edges that are to hold between them in the graph $\\mathcal{G}$ . The key requirement to this procedure is to guarantee that the $k$ relations and their inverses in every sampled $k$ -hop combination are as likely to be labeled TRUE as they are to be labeled FALSE; failing to do so introduces distributional bias. This means that our sampling procedure must ensure two important properties: $i$ it must be impossible for a text-only model to associate a question template (i.e., all questions produced from this template) to the TRUE or FALSE label, and $ii$ it must be impossible for a graph-only model to associate the presence of a specific set of relations in graph $\\mathcal{G}$ with a specific label.",
407
+ "bbox": [
408
+ 112,
409
+ 583,
410
+ 489,
411
+ 840
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "We ensure property $i$ ) by creating the same number of questions labeled TRUE as FALSE for every unique $k$ -hop combination of relations. We ensure ii) by sampling $k$ -hop relation paths from $\\mathcal{G}$ symmetrically: We first sample i.i.d. two pairs of",
418
+ "bbox": [
419
+ 112,
420
+ 841,
421
+ 489,
422
+ 921
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "different entities, $s_{+}, e_{+}$ and $s_{-}, e_{-}$ , such that $s_{+}$ and $s_{-}$ are of the same entity type, and $e_{+}$ and $e_{-}$ are also of the same entity type. We then identify a $k$ -hop combination over $\\mathcal{R}_{\\text{LUBM}}'$ that exists between $s_{+}$ and $e_{+}$ but not between $s_{-}$ and $e_{-}$ , as well as verify that there exists another (different) $k$ -hop combination over $\\mathcal{R}_{\\text{LUBM}}'$ between $s_{-}$ and $e_{-}$ . If all this succeeds, the pair $s_{+}, e_{+}$ with the question corresponding to the template becomes a positive example, and the pair $s_{-}, e_{-}$ with the same template a negative one. Further details of the sampling procedure can be found in Appendix A.",
429
+ "bbox": [
430
+ 507,
431
+ 84,
432
+ 884,
433
+ 278
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "4 Modeling",
440
+ "text_level": 1,
441
+ "bbox": [
442
+ 507,
443
+ 290,
444
+ 626,
445
+ 307
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "For all experiments, each data point includes a natural language question $q$ and a graph $\\mathcal{G}$ . Following previous work on combining language models with KGs (Lin et al., 2019; Zhang et al., 2020; Yasunaga et al., 2021; Zhang et al., 2022; Kaur et al., 2022; Sun et al., 2022; Yasunaga et al., 2022), we use separate encoders for $q$ and $\\mathcal{G}$ to obtain representations of both modalities. Section 4.1 outlines these encoders and Section 4.2 how we combine them to produce the final output prediction $\\hat{y} \\in \\{\\mathrm{TRUE},\\mathrm{FALSE}\\}$ .",
452
+ "bbox": [
453
+ 507,
454
+ 317,
455
+ 884,
456
+ 495
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "4.1 Encoders",
463
+ "text_level": 1,
464
+ "bbox": [
465
+ 507,
466
+ 508,
467
+ 630,
468
+ 521
469
+ ],
470
+ "page_idx": 3
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Text encoder We obtain representations of $q$ by using the special sentence representation token at the last layer of a pre-trained language model, as per Devlin et al. (2019): $z_{\\mathrm{text}} = \\mathrm{BERT}(q)$ .",
475
+ "bbox": [
476
+ 507,
477
+ 529,
478
+ 882,
479
+ 595
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "Graph encoder As a graph encoder, we use the relational graph convolution model, R-GCN, from Schlichtkrull et al. (2018):",
486
+ "bbox": [
487
+ 507,
488
+ 605,
489
+ 882,
490
+ 653
491
+ ],
492
+ "page_idx": 3
493
+ },
494
+ {
495
+ "type": "equation",
496
+ "text": "\n$$\nh _ {i} ^ {\\ell + 1} = \\sigma \\left(\\sum_ {r \\in \\mathcal {R}} \\sum_ {j \\in \\mathcal {N} _ {i} ^ {r}} \\frac {1}{| \\mathcal {N} _ {i} ^ {r} |} W _ {r} ^ {\\ell} h _ {j} ^ {\\ell} + W _ {0} ^ {\\ell} h _ {i} ^ {\\ell}\\right),\n$$\n",
497
+ "text_format": "latex",
498
+ "bbox": [
499
+ 521,
500
+ 665,
501
+ 870,
502
+ 709
503
+ ],
504
+ "page_idx": 3
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "where $h_i^\\ell$ is the hidden state of a node $i$ in layer $\\ell$ , $\\sigma$ is the ReLU function and $\\mathcal{N}_i^r$ is the set of neighborhood vertices of node $i$ under relation $r$ .",
509
+ "bbox": [
510
+ 507,
511
+ 725,
512
+ 884,
513
+ 774
514
+ ],
515
+ "page_idx": 3
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "4.2 Final models",
520
+ "text_level": 1,
521
+ "bbox": [
522
+ 507,
523
+ 787,
524
+ 658,
525
+ 801
526
+ ],
527
+ "page_idx": 3
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "Inspired by previous work on combining text and graph encoders, we experiment with different approaches to integrating the two modalities and apply them using the above-mentioned encoders and our experimental setup. Figure 2 provides an overview of the differences between these approaches.",
532
+ "bbox": [
533
+ 507,
534
+ 808,
535
+ 884,
536
+ 921
537
+ ],
538
+ "page_idx": 3
539
+ },
540
+ {
541
+ "type": "page_number",
542
+ "text": "3450",
543
+ "bbox": [
544
+ 480,
545
+ 927,
546
+ 521,
547
+ 940
548
+ ],
549
+ "page_idx": 3
550
+ },
551
+ {
552
+ "type": "image",
553
+ "img_path": "images/ec18fa16804874f13ff9aebbbd1e49525cca7b331dd9c610365ee46cbfc0c157.jpg",
554
+ "image_caption": [
555
+ "Figure 2: Overview of the different approaches to combining the two encoders. Purple nodes are initialized at random while green and blue nodes are initialized using a frozen BERT model."
556
+ ],
557
+ "image_footnote": [],
558
+ "bbox": [
559
+ 127,
560
+ 84,
561
+ 297,
562
+ 282
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "image",
568
+ "img_path": "images/fd948d5a75f87705b416757955ce0fc44d15465ce54663ca4268cef329b3c2ad.jpg",
569
+ "image_caption": [],
570
+ "image_footnote": [],
571
+ "bbox": [
572
+ 317,
573
+ 83,
574
+ 489,
575
+ 282
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "image",
581
+ "img_path": "images/b3e03ba17858afb26c81f618dbe7f1b15345b076ddf6df120396084a033a49ed.jpg",
582
+ "image_caption": [],
583
+ "image_footnote": [],
584
+ "bbox": [
585
+ 505,
586
+ 83,
587
+ 678,
588
+ 282
589
+ ],
590
+ "page_idx": 4
591
+ },
592
+ {
593
+ "type": "image",
594
+ "img_path": "images/87a300401d078159659e972953cdee172d11c7d8c7cdaec8f2e1130b6ba66d0f.jpg",
595
+ "image_caption": [],
596
+ "image_footnote": [],
597
+ "bbox": [
598
+ 694,
599
+ 83,
600
+ 867,
601
+ 282
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "Disjoint The simplest way of having the two modalities interact is to initialize and run both encoders separately before conjoining their outputs in a final classification layer. This keeps the encoders disjoint, essentially making a \"two-tower architecture\" – conceptually similar to approaches such as Wang et al. (2019).",
608
+ "bbox": [
609
+ 112,
610
+ 353,
611
+ 487,
612
+ 464
613
+ ],
614
+ "page_idx": 4
615
+ },
616
+ {
617
+ "type": "text",
618
+ "text": "To get a final representation of the graph, $z_{\\mathrm{graph}}$ , we take the embedding of the head and tail node targeted by the question after $L$ rounds of message passing: $z_{\\mathrm{graph}} = h_s^L \\oplus h_e^L$ , where $s$ and $e$ are the indices of the head and tail node and $\\oplus$ is vector concatenation. We initialize these nodes by creating two distinct embeddings, $E_s$ and $E_e$ , with $E_s, E_e \\sim \\mathcal{N}(0,1)$ . We keep these static throughout training and testing and use them for all head and tail nodes targeted by the questions. The initialization of remaining nodes in each graph is discussed in more detail in Section 4.3.",
619
+ "bbox": [
620
+ 112,
621
+ 468,
622
+ 487,
623
+ 659
624
+ ],
625
+ "page_idx": 4
626
+ },
627
+ {
628
+ "type": "text",
629
+ "text": "For the question, we take the output of the text encoder without any modifications. The final output prediction is then obtained by the following: $f(z_{\\mathrm{text}} \\oplus z_{\\mathrm{graph}})$ , where $f$ is a two-layered MLP with a ReLU activation function.",
630
+ "bbox": [
631
+ 112,
632
+ 664,
633
+ 487,
634
+ 744
635
+ ],
636
+ "page_idx": 4
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "Grounded For this model, we concatenate the original question string from $q$ with both the head and tail entity strings, respectively, using a separation token. This is then used as input to the text encoder, obtaining a representation of the head and tail nodes:",
641
+ "bbox": [
642
+ 112,
643
+ 762,
644
+ 487,
645
+ 857
646
+ ],
647
+ "page_idx": 4
648
+ },
649
+ {
650
+ "type": "equation",
651
+ "text": "\n$$\n\\begin{array}{l} h _ {s} ^ {0} = \\operatorname {B E R T} (q < \\text {S E P} > \\text {h e a d s u r f a c e f o r m}), \\\\ h _ {e} ^ {0} = \\operatorname {B E R T} (q < \\text {S E P} > \\text {t a i l s u r f a c e f o r m}). \\\\ \\end{array}\n$$\n",
652
+ "text_format": "latex",
653
+ "bbox": [
654
+ 142,
655
+ 877,
656
+ 455,
657
+ 917
658
+ ],
659
+ "page_idx": 4
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "These are then used to initialize the embeddings for the nodes pertaining to these entities in the graph. This is done in a pre-processing step before the text encoder is fine-tuned on our datasets. The final output prediction is calculated in the same way as with the disjoint model.",
664
+ "bbox": [
665
+ 507,
666
+ 353,
667
+ 882,
668
+ 450
669
+ ],
670
+ "page_idx": 4
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "Unidirectional In this model, we add a unidirectional interaction between the encoders, inspired by works such as Yasunaga et al. (2021). For each question-graph pair, $(q,\\mathcal{G})$ , we introduce a new special context node, $u$ , and connect $u$ to each node in $\\mathcal{G}$ . This special node is connected using two new relations, one for each direction, and its embedding is initialized using the text encoder representation of the question, $\\mathrm{BERT}(q)$ . In Figure 2, $u$ is marked as a blue node. For each $\\mathcal{G}$ , we perform global pooling over the hidden states:",
675
+ "bbox": [
676
+ 507,
677
+ 460,
678
+ 882,
679
+ 637
680
+ ],
681
+ "page_idx": 4
682
+ },
683
+ {
684
+ "type": "equation",
685
+ "text": "\n$$\nz _ {\\text {g r a p h}} = \\frac {1}{| \\mathcal {V} |} \\sum_ {v \\in \\mathcal {V} ^ {\\prime}} h _ {v} ^ {L},\n$$\n",
686
+ "text_format": "latex",
687
+ "bbox": [
688
+ 611,
689
+ 650,
690
+ 778,
691
+ 687
692
+ ],
693
+ "page_idx": 4
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "where $\\mathcal{V}'$ is the set containing the head, tail, and special context nodes. We do not consider the set of all nodes due to the zero-initialization of the remaining nodes in $\\mathcal{G}$ (see Section 4.3). The head and tail nodes are initialized as in the grounded model, using the text encoder representations. We also take the embedding of the special node at the last layer, $h_u^L$ , as a representation of $\\mathcal{G}$ . The final output prediction is then given by: $f(z_{\\mathrm{text}} \\oplus z_{\\mathrm{graph}} \\oplus h_u^L)$ , where $f$ is a two-layered MLP with a ReLU activation function.",
698
+ "bbox": [
699
+ 507,
700
+ 700,
701
+ 880,
702
+ 876
703
+ ],
704
+ "page_idx": 4
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "Bidirectional We also develop a model inspired by the interaction approach used in works such as",
709
+ "bbox": [
710
+ 507,
711
+ 889,
712
+ 880,
713
+ 921
714
+ ],
715
+ "page_idx": 4
716
+ },
717
+ {
718
+ "type": "page_number",
719
+ "text": "3451",
720
+ "bbox": [
721
+ 480,
722
+ 927,
723
+ 517,
724
+ 940
725
+ ],
726
+ "page_idx": 4
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "Zhang et al. (2022) and Yasunaga et al. (2022) to allow for a bidirectional interaction between the two encoders. We keep the special context node $u$ as described in the unidirectional model, but we add a special interaction token, $t$ , to the question $q$ . $t$ is set to be the representation of the special context node $u$ after $L$ layers of message passing: $t = h_u^L$ . This is done after the embedding of $q$ in the text encoder. We produce the final output prediction using the same method as in the unidirectional model.",
731
+ "bbox": [
732
+ 112,
733
+ 84,
734
+ 489,
735
+ 244
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "Baseline We use a sole graph encoder as a baseline. Theoretically, it should not be possible to solve the tasks without having access to both the text and the graph. By using a graph-only system as a baseline we therefore get both a sanity check and an upper bound on the noise produced by the sampling. As the natural language questions are not sampled, but rather constructed deterministically from the paths sampled from our graphs, one positive and one negative, the performance of a text-only encoder will by design be equal to a random classifier. The output of the baseline is calculated the same way as for the disjoint model, taking the representations of the head and tail entity.",
742
+ "bbox": [
743
+ 115,
744
+ 256,
745
+ 489,
746
+ 481
747
+ ],
748
+ "page_idx": 5
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "4.3 Node initialization",
753
+ "text_level": 1,
754
+ "bbox": [
755
+ 112,
756
+ 494,
757
+ 305,
758
+ 508
759
+ ],
760
+ "page_idx": 5
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "Except for the head and tail nodes targeted by each question, and the special context node $u$ , all nodes are initialized as zero-vectors. This means that we leak the position of the head and tail entity in $\\mathcal{G}$ for each sample in the dataset, making any pruning of $\\mathcal{G}$ redundant. It is often necessary to reduce the computational complexity of combining language models and large knowledge graphs using mechanisms such as subgraph retrieval and entity linking, but these steps are also known to be error-prone (Wold et al., 2023). This initialization ensures that we further isolate the application of compositional generalization rules, as opposed to evaluating the performance of a pipeline model with numerous error-prone components.",
765
+ "bbox": [
766
+ 112,
767
+ 516,
768
+ 489,
769
+ 758
770
+ ],
771
+ "page_idx": 5
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "5 Experiments and results",
776
+ "text_level": 1,
777
+ "bbox": [
778
+ 112,
779
+ 771,
780
+ 359,
781
+ 788
782
+ ],
783
+ "page_idx": 5
784
+ },
785
+ {
786
+ "type": "table",
787
+ "img_path": "images/7a94b94650d0a9ebfeaa94940c0974261d2d851a0633f2facc69d7f4cf7863dc.jpg",
788
+ "table_caption": [],
789
+ "table_footnote": [],
790
+ "table_body": "<table><tr><td>Hops</td><td>#relation-paths</td><td>N</td></tr><tr><td>2</td><td>23</td><td>1043±1941</td></tr><tr><td>3</td><td>73</td><td>328±449</td></tr><tr><td>4</td><td>188</td><td>127±260</td></tr></table>",
791
+ "bbox": [
792
+ 174,
793
+ 809,
794
+ 426,
795
+ 878
796
+ ],
797
+ "page_idx": 5
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "Table 1: The mean number of occurrences of the relation paths across 24000 generated graphs per hop $k$ .",
802
+ "bbox": [
803
+ 112,
804
+ 887,
805
+ 487,
806
+ 917
807
+ ],
808
+ "page_idx": 5
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "In this section, we test our suite of models on data specifically targeting substitutivity (Section 5.1), productivity (Section 5.2), and systematicity (Section 5.3), going test by test. For all experiments, the distribution between the two classes is perfectly balanced. Statistics on the diversity of the generated graphs with respect to relation paths can be found in Table 1. Details on the selection of hyperparameters can be found in Appendix B.",
813
+ "bbox": [
814
+ 507,
815
+ 84,
816
+ 884,
817
+ 230
818
+ ],
819
+ "page_idx": 5
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "5.1 Substitutivity",
824
+ "text_level": 1,
825
+ "bbox": [
826
+ 507,
827
+ 239,
828
+ 662,
829
+ 255
830
+ ],
831
+ "page_idx": 5
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "In our first test, we evaluate to what extent the five model configurations can answer questions targeting substitutivity, as defined in Section 2. Success at this task requires recognizing the mapping between the presence of certain relations in the graph and phrases in the natural language questions. Substitutivity is the most basic setting of our experiments and the results on this task demonstrate the general difficulty of the task.",
836
+ "bbox": [
837
+ 507,
838
+ 260,
839
+ 884,
840
+ 404
841
+ ],
842
+ "page_idx": 5
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "Test design We generate 12000 question-graph pairs using our generation procedure. We do this for 2, 3 and 4-hops. Each experiment targets one of the hop lengths, i.e., both training and evaluating on the same number of hops. For all experiments, we use 10000 samples for training and 2000 for testing. All results are reported using mean accuracy and standard deviation from five randomly seeded runs.",
847
+ "bbox": [
848
+ 507,
849
+ 414,
850
+ 882,
851
+ 557
852
+ ],
853
+ "page_idx": 5
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "Results The results of the substitutivity tests can be seen in Table 2. There is a strong generalization in the 2-hop case for all models. In the 3-hop case, performance drops significantly and the variance also increases for most models. There is a further loss in generalization when moving to the 4-hop case, where there is little difference between the models. Figure 3 shows that there is a positive correlation between test accuracy on a specific question type and the frequency of the corresponding relation path in the training data for the 3-hop case. For the 2-hop and 4-hop cases, where the performance is closer to perfect and random classification, respectively, the relationship flattens. This aligns with the increase in unique combinations of relation paths as the number of hops increases, as shown in Table 1. For 2-hops there is either a high number of examples per relation path combination, which enables learning, or very few, which makes the performance on these relation paths negligible on the overall accuracy. For 4-hops, on the other hand, there is too much of a long tail on the dis",
858
+ "bbox": [
859
+ 507,
860
+ 568,
861
+ 884,
862
+ 920
863
+ ],
864
+ "page_idx": 5
865
+ },
866
+ {
867
+ "type": "page_number",
868
+ "text": "3452",
869
+ "bbox": [
870
+ 480,
871
+ 927,
872
+ 519,
873
+ 940
874
+ ],
875
+ "page_idx": 5
876
+ },
877
+ {
878
+ "type": "table",
879
+ "img_path": "images/6d2c7ba0005804248ba85716a9a3a4334e8378de9d433468b73f5b6c0f1f5606.jpg",
880
+ "table_caption": [],
881
+ "table_footnote": [],
882
+ "table_body": "<table><tr><td>Model</td><td>2-hop</td><td>3-hop</td><td>4-hop</td></tr><tr><td>Baseline</td><td>48.88±1.00</td><td>49.8±0.64</td><td>49.36±0.44</td></tr><tr><td>Disjoint</td><td>98.17±0.39</td><td>83.08±0.96</td><td>67.86±1.89</td></tr><tr><td>Grounded</td><td>92.46±0.49</td><td>84.91±0.38</td><td>69.32±1.96</td></tr><tr><td>Unidirectional</td><td>91.78±0.72</td><td>70.88±3.53</td><td>62.0±3.97</td></tr><tr><td>Bidirectional</td><td>92.44±0.23</td><td>73.66±1.04</td><td>63.24±3.36</td></tr></table>",
883
+ "bbox": [
884
+ 117,
885
+ 80,
886
+ 485,
887
+ 174
888
+ ],
889
+ "page_idx": 6
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "ribution of number of samples per combination, making learning difficult. For 3-hops, however, there is a balance, which is reflected in the results. See Figure 4 in Appendix A for an illustration of the relative percentage of each unique combination to the total for each hop.",
894
+ "bbox": [
895
+ 112,
896
+ 225,
897
+ 487,
898
+ 322
899
+ ],
900
+ "page_idx": 6
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "These results show that the models struggle to generalize to the long tail of the training distribution, which is a known attribute of neural networks. However, single relation types are reused extensively throughout our training data, as there are only 10 unique relations of length 1. This means that the distribution only has a long tail if one considers each 4-hop combination to be a single unique type, as opposed to being composed of four individual relations that are individually high-frequent. We argue that these results indicate that these models do not create internal representations of each 1-hop path together with a function for composing them into compounded expressions, but rather learn individual representations for each compound. This also explains why the performance drops as the complexity increases and the number of samples per relation decreases, making such a strategy less viable. This explanation is further explored in the systematicity tests. We also note that there is little difference between the models, indicating that an increase in model complexity does not add any benefits to this task.",
905
+ "bbox": [
906
+ 115,
907
+ 324,
908
+ 489,
909
+ 693
910
+ ],
911
+ "page_idx": 6
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "5.2 Productivity",
916
+ "text_level": 1,
917
+ "bbox": [
918
+ 112,
919
+ 709,
920
+ 257,
921
+ 724
922
+ ],
923
+ "page_idx": 6
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "In our next test, we evaluate to what extent models can answer $k$ -hop questions when trained on $j$ -hops, with $k \\neq j$ . We define experiments requiring extrapolation and interpolation for different values of $k$ and $j$ . Success at this task requires generalization to sequences with a different length than those seen during training.",
928
+ "bbox": [
929
+ 112,
930
+ 731,
931
+ 487,
932
+ 844
933
+ ],
934
+ "page_idx": 6
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "Test design In our first experiment, we use an even amount of 2 and 3-hop questions for training while using 4-hop questions for testing, targeting extrapolation. In our second experiment, we tar",
939
+ "bbox": [
940
+ 112,
941
+ 857,
942
+ 489,
943
+ 921
944
+ ],
945
+ "page_idx": 6
946
+ },
947
+ {
948
+ "type": "table",
949
+ "img_path": "images/7277cc17c798e46391a7c20f8c0f5a0c3d144123159a3627754dc39cc65d33a3.jpg",
950
+ "table_caption": [
951
+ "Table 2: Substitutivity results."
952
+ ],
953
+ "table_footnote": [],
954
+ "table_body": "<table><tr><td>Experiment</td><td>Acc.</td></tr><tr><td colspan=\"2\">TRAIN: 2 AND 3-HOP. TEST: 4-HOP</td></tr><tr><td>Baseline</td><td>49.92±0.82</td></tr><tr><td>Disjoint</td><td>59.42±2.07</td></tr><tr><td>Grounded</td><td>61.79±0.52</td></tr><tr><td>Unidirectional</td><td>62.40±1.02</td></tr><tr><td>Bidirectional</td><td>62.05±0.91</td></tr><tr><td colspan=\"2\">TRAIN: 2 AND 4-HOP. TEST: 3-HOP</td></tr><tr><td>Baseline</td><td>51.19±0.31</td></tr><tr><td>Disjoint</td><td>63.87±2.24</td></tr><tr><td>Grounded</td><td>66.10±2.02</td></tr><tr><td>Unidirectional</td><td>66.65±2.24</td></tr><tr><td>Bidirectional</td><td>66.29±1.25</td></tr><tr><td colspan=\"2\">TRAIN: 3 AND 4-HOP. TEST: 2-HOP</td></tr><tr><td>Baseline</td><td>50.98±0.25</td></tr><tr><td>Disjoint</td><td>60.34±3.25</td></tr><tr><td>Grounded</td><td>62.32±1.98</td></tr><tr><td>Unidirectional</td><td>64.04±4.47</td></tr><tr><td>Bidirectional</td><td>63.03±3.76</td></tr></table>",
955
+ "bbox": [
956
+ 531,
957
+ 80,
958
+ 863,
959
+ 348
960
+ ],
961
+ "page_idx": 6
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Table 3: Productivity results.",
966
+ "bbox": [
967
+ 594,
968
+ 356,
969
+ 794,
970
+ 370
971
+ ],
972
+ "page_idx": 6
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "get interpolation by training on an even amount of 2 and 4-hop questions while testing on 3-hops. For our last experiment, we target extrapolation to lower values, using a training split with an even amount of 3 and 4-hop questions while testing on 2-hops. For all three experiments, we generate 10 000 samples for training and 2 000 for testing.",
977
+ "bbox": [
978
+ 507,
979
+ 397,
980
+ 882,
981
+ 510
982
+ ],
983
+ "page_idx": 6
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Results The results of the productivity tests can be seen in Table 3. In general, we observe that all models struggle to extrapolate to both shorter and longer hops. We observe some generalization for the interpolation test, where the model has seen sequences both shorter and longer during training, but the overall absolute performance is still poor. This aligns with previous work, such as Lake and Baroni (2018) and Hupkes et al. (2020). We observe a tiny increase in performance with the more complex models compared to the simpler, disjoint model, but given the overall low scores and the variance, we do not think these results are significant. This indicates that adding a more complex interaction between the encoders does not provide any added benefit for extrapolation or interpolation.",
988
+ "bbox": [
989
+ 507,
990
+ 519,
991
+ 882,
992
+ 776
993
+ ],
994
+ "page_idx": 6
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "5.3 Systematicity",
999
+ "text_level": 1,
1000
+ "bbox": [
1001
+ 507,
1002
+ 788,
1003
+ 662,
1004
+ 803
1005
+ ],
1006
+ "page_idx": 6
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "In our last test, we evaluate to what extent our models can generalize systematically. This means that all unique 1-hop relations are seen during training in some $k$ -hop combination, but in the test data, we only include unseen combinations. For example, during training the models might see samples using the relations TAKES COURSE and",
1011
+ "bbox": [
1012
+ 507,
1013
+ 809,
1014
+ 882,
1015
+ 921
1016
+ ],
1017
+ "page_idx": 6
1018
+ },
1019
+ {
1020
+ "type": "page_number",
1021
+ "text": "3453",
1022
+ "bbox": [
1023
+ 480,
1024
+ 928,
1025
+ 519,
1026
+ 940
1027
+ ],
1028
+ "page_idx": 6
1029
+ },
1030
+ {
1031
+ "type": "image",
1032
+ "img_path": "images/10738a4e76ea540b1acc4de1b4e5248ec075dcaa6fd4343d2f1fa343585b795e.jpg",
1033
+ "image_caption": [
1034
+ "Figure 3: Relationship between frequency of a $k$ -hop relation and the performance of the Disjoint model on these during testing. Each blue point corresponds to a tuple of $k$ relations for $k = 1,2,3$ . The orange lines are the linear regressions for each setting showing positive correlations between frequencies of $k$ -hop relations and performances of the Disjoint model."
1035
+ ],
1036
+ "image_footnote": [],
1037
+ "bbox": [
1038
+ 127,
1039
+ 84,
1040
+ 366,
1041
+ 209
1042
+ ],
1043
+ "page_idx": 7
1044
+ },
1045
+ {
1046
+ "type": "image",
1047
+ "img_path": "images/4fbdf814a10ededda6e908da8f49d0346c3c26da0b9aa37c372be46a513722dc.jpg",
1048
+ "image_caption": [],
1049
+ "image_footnote": [],
1050
+ "bbox": [
1051
+ 379,
1052
+ 85,
1053
+ 620,
1054
+ 209
1055
+ ],
1056
+ "page_idx": 7
1057
+ },
1058
+ {
1059
+ "type": "image",
1060
+ "img_path": "images/a75cd526d4e524697f521864c00404708a8917440e5ebf1da827813bcdf89ef7.jpg",
1061
+ "image_caption": [],
1062
+ "image_footnote": [],
1063
+ "bbox": [
1064
+ 633,
1065
+ 86,
1066
+ 867,
1067
+ 209
1068
+ ],
1069
+ "page_idx": 7
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "HASTEACHINGASSISTANT, and the 2-hop combination [TAKESCOURSE, HASTEACHINGASSISTANT], but in the test we target [HASTEACHINGASSISTANT, TAKESCOURSE]. Success at this task requires the model to learn that a 3-hop question, for example, consists of three individual parts that are combined, as opposed to encoding the entire sequence as one entity.",
1074
+ "bbox": [
1075
+ 112,
1076
+ 304,
1077
+ 489,
1078
+ 434
1079
+ ],
1080
+ "page_idx": 7
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "Test design With $k$ being 2, 3, or 4, we generate question-graph pairs with length $k$ . Then, for each $k$ , we randomly select a fraction of the available $k$ -length combinations of relations as our test combinations. We then separate the generated pairs into two parts: those who use the test combinations and those who do not. The former is saved as the test set. We note that the use of test combinations is not limited to the relations on the path between the head and tail entities targeted by the question, but any $k$ -hop path that exists between these entities. For the training set, we split the remaining possible combinations into five chunks and collect all samples that use these combinations. This leaves us with five different folds of the training set. Models are then trained on each fold independently, but evaluated on the same test set. We do this to control for the fact that some combinations of relations might have a similar distribution of samples as the relations picked out for the test set, making them better fits for that particular split.",
1085
+ "bbox": [
1086
+ 112,
1087
+ 464,
1088
+ 489,
1089
+ 802
1090
+ ],
1091
+ "page_idx": 7
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "As this tests out-of-distribution generalization, we argue that folding is better suited for finding the true performance and variance of the models than the more straightforward evaluation method used for our substitutivity and productivity experiments. The results are reported as the mean accuracy over all five folds.",
1096
+ "bbox": [
1097
+ 112,
1098
+ 808,
1099
+ 489,
1100
+ 920
1101
+ ],
1102
+ "page_idx": 7
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "Results The results of the systematicity tests can be seen in Table 4. As with the productivity tests, we see that there is no consistent display of generalization for any of the models across hops. We see, however, that for the 3-hops setting the two simpler models achieve some success on the task. As these models had the highest performance on the substitutivity test, we take this to indicate that additional architectural complexity does not provide any performance benefit for this type of generalization. We also note that it is possible that these experiments are sensible to the hyperparameters, and that the two simpler models happened to have a better fit for the 3-hop setting. We did not do a specific hyperparameter search per model for the systematicity experiments but relied on those from the initial hyperparameter search.",
1107
+ "bbox": [
1108
+ 507,
1109
+ 304,
1110
+ 884,
1111
+ 577
1112
+ ],
1113
+ "page_idx": 7
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Overall, these results might come from undersampling, or it might be the case, as is reported in Hupkes et al. (2020), that the models are not able to construct useful representations of smaller syntactic units. We argue that our results further support the intuition from the substitutivity experiments: the models do not learn to create representations that correspond to each 1-hop relation, together with a function for combining them, but rather rely on memorization of whole combinations of relation types. For short-tailed distributions and some settings of hyperparameters this works, but it is not a robust solution to the general problem of matching the text questions to certain patterns in the graphs, illustrated by the significant drop in performance in these results.",
1118
+ "bbox": [
1119
+ 507,
1120
+ 580,
1121
+ 882,
1122
+ 837
1123
+ ],
1124
+ "page_idx": 7
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "We also see adjacent work on assessing compositional generalizations in LLMs to provide possible explanations for our results. Dziri et al. (2024) hypothesize that transformer-based models try to solve a highly compositional problem, like ours, by",
1129
+ "bbox": [
1130
+ 507,
1131
+ 841,
1132
+ 884,
1133
+ 921
1134
+ ],
1135
+ "page_idx": 7
1136
+ },
1137
+ {
1138
+ "type": "page_number",
1139
+ "text": "3454",
1140
+ "bbox": [
1141
+ 480,
1142
+ 927,
1143
+ 519,
1144
+ 940
1145
+ ],
1146
+ "page_idx": 7
1147
+ },
1148
+ {
1149
+ "type": "table",
1150
+ "img_path": "images/da03381620c851168d0fb8528d11c7e81f477a1e7c91fa0058370326f669c35e.jpg",
1151
+ "table_caption": [],
1152
+ "table_footnote": [],
1153
+ "table_body": "<table><tr><td>Model</td><td>2-hop</td><td>3-hop</td><td>4-hop</td></tr><tr><td>Baseline</td><td>49.50±0.24</td><td>49.40±0.33</td><td>49.92±1.01</td></tr><tr><td>Disjoint</td><td>53.62±8.39</td><td>74.05±3.42</td><td>62.18±1.20</td></tr><tr><td>Grounded</td><td>60.02±3.22</td><td>75.68±3.27</td><td>64.96±1.39</td></tr><tr><td>Unidir.</td><td>64.24±0.75</td><td>57.12±1.81</td><td>64.10±3.62</td></tr><tr><td>Bidir.</td><td>64.15±1.10</td><td>60.37±2.31</td><td>63.72±3.63</td></tr></table>",
1154
+ "bbox": [
1155
+ 131,
1156
+ 80,
1157
+ 470,
1158
+ 174
1159
+ ],
1160
+ "page_idx": 8
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Table 4: Systematicity results.",
1165
+ "bbox": [
1166
+ 196,
1167
+ 184,
1168
+ 403,
1169
+ 198
1170
+ ],
1171
+ "page_idx": 8
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "reducing it into linearized path matching. If this is the case, models do not learn the compositional rule needed to solve the task. If the samples from the test distribution only resemble the training distribution superficially, this pattern matching approach is not a viable solution for out-of-distribution generalization in both our productivity and systematicity experiments. In these experiments, the mapping from the input samples to output labels cannot be based on surface-form frequency, due to our balanced sampling, which could then explain the collapse in performance we are observing for these experiments.",
1176
+ "bbox": [
1177
+ 112,
1178
+ 223,
1179
+ 489,
1180
+ 434
1181
+ ],
1182
+ "page_idx": 8
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "6 Previous work",
1187
+ "text_level": 1,
1188
+ "bbox": [
1189
+ 112,
1190
+ 445,
1191
+ 273,
1192
+ 458
1193
+ ],
1194
+ "page_idx": 8
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "There have been numerous works on compositional generalization in neural networks (Andreas, 2019; Lake and Baroni, 2018; Kim and Linzen, 2020; Hupkes et al., 2020; Dankers et al., 2022b; Lake and Baroni, 2023; Dziri et al., 2024). Most similar to our work is Gu et al. (2021), which develops a large-scale dataset targeting aspects of compositional generalization using question answering over Wikidata. Both this work and similar efforts reformulate the problem of integrating the KG to a seq2seq task where the questions are first translated into an intermediate logical form, such as SPARQL, which can be executed over the KG (Shu et al., 2022). Under the same framework, Ravishankar et al. (2022) explicitly tests generalization to unseen combinations of relations in a similar fashion to our systematicity test. They too find that the performance tends to drop significantly for this setting.",
1199
+ "bbox": [
1200
+ 112,
1201
+ 470,
1202
+ 489,
1203
+ 775
1204
+ ],
1205
+ "page_idx": 8
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "The mapping from natural language to logical form can also use techniques from semantic parsing, a topic where compositionality is of special interest (Lindemann et al., 2023). Our work, however, is the first to target compositionality in a setup where the models learn representations of both text and graphs directly, without any logical form as an intermediate step. In contrast to previous work on grounded language models (Lin et al., 2019; Zhang",
1210
+ "bbox": [
1211
+ 112,
1212
+ 776,
1213
+ 489,
1214
+ 921
1215
+ ],
1216
+ "page_idx": 8
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "et al., 2020; Yasunaga et al., 2021; Zhang et al., 2022; Kaur et al., 2022; Sun et al., 2022), our methods can also more precisely quantify the effect of combining LMs with GNNs, as our sampling procedure ensures that the encoders can not achieve above random performance on their own, a property which we believe is unique to our approach.",
1221
+ "bbox": [
1222
+ 507,
1223
+ 84,
1224
+ 884,
1225
+ 197
1226
+ ],
1227
+ "page_idx": 8
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "7 Conclusion",
1232
+ "text_level": 1,
1233
+ "bbox": [
1234
+ 509,
1235
+ 211,
1236
+ 640,
1237
+ 227
1238
+ ],
1239
+ "page_idx": 8
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "Research on compositional generalization in neural networks has a long history. To the best of our knowledge, we provide the first experimental evaluation of compositional generalization in grounded LMs, using question answering over KGs as a task. Our results indicate that these models $i$ ) require large sample sizes and quickly lose generalization power as the complexity of the compositional structure increases, $ii$ ) struggle with extrapolation and interpolation to sequences of lengths not seen during training, and $iii$ ) cannot systematically generalize from seen base components to novel compositions given the sample sizes used in our experiments. We show this across a set of model architectures inspired by the literature. Our results are in line with previous work on compositional generalization in other domains and for other types of neural architectures. Overall, we believe our results show that grounded LMs do not display signs of structured reasoning over KGs and that there is still much to be done on the improvement of models that try to exploit external information stored as symbolic objects. This is the case not only for knowledge graphs but also for other types of data representations, such as tabular data. We hope our generation procedure and released datasets can help motivate future efforts at overcoming these challenges.",
1244
+ "bbox": [
1245
+ 507,
1246
+ 239,
1247
+ 884,
1248
+ 674
1249
+ ],
1250
+ "page_idx": 8
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "Limitations",
1255
+ "text_level": 1,
1256
+ "bbox": [
1257
+ 509,
1258
+ 688,
1259
+ 615,
1260
+ 703
1261
+ ],
1262
+ "page_idx": 8
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "Models Our models are inspired by previous work. However, since our experimental setup differs from the original settings these models were implemented to work in, we had to make multiple simplifications. Consequently, we are not able to conclude anything about the abilities of the specific models from the literature, but rather about the general interaction approach they propose.",
1267
+ "bbox": [
1268
+ 507,
1269
+ 715,
1270
+ 884,
1271
+ 845
1272
+ ],
1273
+ "page_idx": 8
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "Question variety The questions in our dataset are formulated in English, and although they have more linguistic variety than similar studies from semantic parsing, such as Lake and Baroni (2018)",
1278
+ "bbox": [
1279
+ 507,
1280
+ 857,
1281
+ 884,
1282
+ 921
1283
+ ],
1284
+ "page_idx": 8
1285
+ },
1286
+ {
1287
+ "type": "page_number",
1288
+ "text": "3455",
1289
+ "bbox": [
1290
+ 480,
1291
+ 927,
1292
+ 519,
1293
+ 940
1294
+ ],
1295
+ "page_idx": 8
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "and Hupkes et al. (2020), we still use a rather limited version of the language, which is by design devoid of any metaphors, idioms, analogies and other constructs that would make compositionality more difficult to measure. It is not given that our results transfer to real language data.",
1300
+ "bbox": [
1301
+ 112,
1302
+ 84,
1303
+ 489,
1304
+ 181
1305
+ ],
1306
+ "page_idx": 9
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "Acknowledgments",
1311
+ "text_level": 1,
1312
+ "bbox": [
1313
+ 114,
1314
+ 195,
1315
+ 278,
1316
+ 212
1317
+ ],
1318
+ "page_idx": 9
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "We acknowledge Sigma2, Norway, for awarding this project access to the LUMI supercomputer, owned by the EuroHPC Joint Undertaking, hosted by CSC (Finland) and the LUMI consortium.",
1323
+ "bbox": [
1324
+ 112,
1325
+ 223,
1326
+ 490,
1327
+ 287
1328
+ ],
1329
+ "page_idx": 9
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "References",
1334
+ "text_level": 1,
1335
+ "bbox": [
1336
+ 114,
1337
+ 316,
1338
+ 213,
1339
+ 331
1340
+ ],
1341
+ "page_idx": 9
1342
+ },
1343
+ {
1344
+ "type": "list",
1345
+ "sub_type": "ref_text",
1346
+ "list_items": [
1347
+ "Jacob Andreas. 2019. Measuring compositionality in representation learning. In International Conference on Learning Representations.",
1348
+ "Paul M. Churchland. 1990. Cognitive activity in artificial neural netowrks. An invitation to cognitive science: Thinking, 3:199-229.",
1349
+ "Verna Dankers, Elia Bruni, and Dieuwke Hupkes. 2022a. The paradox of the compositionality of natural language: A neural machine translation case study. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4154-4175, Dublin, Ireland. Association for Computational Linguistics.",
1350
+ "Verna Dankers, Christopher Lucas, and Ivan Titov. 2022b. Can transformer be too compositional? analysing idiom processing in neural machine translation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3608-3626, Dublin, Ireland. Association for Computational Linguistics.",
1351
+ "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.",
1352
+ "Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, Sean Welleck, Peter West, Chandra Bhagavatula, Ronan Le Bras, et al. 2024. Faith and fate: Limits of transformers on compositionality. Advances in Neural Information Processing Systems, 36.",
1353
+ "Jerry A Fodor and Zenon W Pylyshyn. 1988. Connectionism and cognitive architecture: A critical analysis. Cognition, 28(1-2):3-71."
1354
+ ],
1355
+ "bbox": [
1356
+ 115,
1357
+ 341,
1358
+ 489,
1359
+ 920
1360
+ ],
1361
+ "page_idx": 9
1362
+ },
1363
+ {
1364
+ "type": "list",
1365
+ "sub_type": "ref_text",
1366
+ "list_items": [
1367
+ "Yu Gu, Sue Kase, Michelle Vanni, Brian Sadler, Percy Liang, Xifeng Yan, and Yu Su. 2021. Beyond iid: three levels of generalization for question answering on knowledge bases. In Proceedings of the Web Conference 2021, pages 3477-3488.",
1368
+ "Yuanbo Guo, Zhengxiang Pan, and Jeff Heflin. 2005. Lubm: A benchmark for owl knowledge base systems. Journal of Web Semantics, 3(2-3):158-182.",
1369
+ "Arian Hosseini, Ankit Vani, Dzmitry Bahdanau, Alessandro Sordoni, and Aaron Courville. 2022. On the compositional generalization gap of in-context learning. In Proceedings of the Fifth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 272-280, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics.",
1370
+ "Dieuwke Hupkes, Verna Dankers, Mathijs Mul, and Elia Bruni. 2020. Compositionality decomposed: How do neural networks generalise? Journal of Artificial Intelligence Research, 67:757-795.",
1371
+ "Jivat Kaur, Sumit Bhatia, Milan Aggarwal, Rachit Bansal, and Balaji Krishnamurthy. 2022. LM-CORE: Language models with contextually relevant external knowledge. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 750-769, Seattle, United States. Association for Computational Linguistics.",
1372
+ "Daniel Keysers, Nathanael Scharli, Nathan Scales, Hylke Buisman, Daniel Furrer, Sergii Kashubin, Nikola Momchev, Danila Sinopalnikov, Lukasz Stafiniak, Tibor Tihon, Dmitry Tsarkov, Xiao Wang, Marc van Zee, and Olivier Bousquet. 2020. Measuring compositional generalization: A comprehensive method on realistic data. In International Conference on Learning Representations.",
1373
+ "Najoung Kim and Tal Linzen. 2020. COGS: A compositional generalization challenge based on semantic interpretation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 9087-9105, Online. Association for Computational Linguistics.",
1374
+ "Brenden M. Lake and Marco Baroni. 2018. Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks.",
1375
+ "Brenden M. Lake and Marco Baroni. 2023. Human-like systematic generalization through a meta-learning neural network. Nature, 623(7985):115-121.",
1376
+ "Bill Yuchen Lin, Xinyue Chen, Jamin Chen, and Xiang Ren. 2019. KagNet: Knowledge-aware graph networks for commonsense reasoning. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2829-2839, Hong Kong, China. Association for Computational Linguistics."
1377
+ ],
1378
+ "bbox": [
1379
+ 510,
1380
+ 85,
1381
+ 884,
1382
+ 920
1383
+ ],
1384
+ "page_idx": 9
1385
+ },
1386
+ {
1387
+ "type": "page_number",
1388
+ "text": "3456",
1389
+ "bbox": [
1390
+ 480,
1391
+ 928,
1392
+ 521,
1393
+ 940
1394
+ ],
1395
+ "page_idx": 9
1396
+ },
1397
+ {
1398
+ "type": "list",
1399
+ "sub_type": "ref_text",
1400
+ "list_items": [
1401
+ "Matthias Lindemann, Alexander Koller, and Ivan Titov. 2023. Compositional generalisation with structured reordering and fertility layers. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 2172-2186, Dubrovnik, Croatia. Association for Computational Linguistics.",
1402
+ "Peter Pagin and Dag Westerstahl. 2010. Compositionality i: Definitions and variants. Philosophy Compass, 5(3):250-264.",
1403
+ "Barbara Partee et al. 1995. Lexical semantics and compositionality. An invitation to cognitive science: Language, 1:311-360.",
1404
+ "Parikshit Ram, Tim Klinger, and Alexander G. Gray. 2023. How compositional is a model? In International Joint Conference on Artificial Intelligence 2023 Workshop on Knowledge-Based Compositional Generalization.",
1405
+ "Srinivas Ravishankar, Dung Thai, Ibrahim Abdelaziz, Nandana Mihindukulasooriya, Tahira Naseem, Pavan Kapanipathi, Gaetano Rossiello, and Achille Fokoue. 2022. A two-stage approach towards generalization in knowledge base question answering. In *Findings of the Association for Computational Linguistics: EMNLP* 2022, pages 5571–5580, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.",
1406
+ "Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne Van Den Berg, Ivan Titov, and Max Welling. 2018. Modeling relational data with graph convolutional networks. In *The Semantic Web: 15th International Conference, ESWC* 2018, Heraklion, Crete, Greece, June 3-7, 2018, Proceedings 15, pages 593-607. Springer.",
1407
+ "Yiheng Shu, Zhiwei Yu, Yuhan Li, Börje Karlsson, Tingting Ma, Yuzhong Qu, and Chin-Yew Lin. 2022. TIARA: Multi-grained retrieval for robust question answering over large knowledge base. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8108-8121, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.",
1408
+ "Paul Smolensky. 1987. Connectionist ai, symbolic ai, and the brain. Artificial Intelligence Review, 1(2):95-109.",
1409
+ "Yueqing Sun, Qi Shi, Le Qi, and Yu Zhang. 2022. JointLK: Joint reasoning with language models and knowledge graphs for commonsense question answering. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5049-5060, Seattle, United States. Association for Computational Linguistics.",
1410
+ "Zoltán Genderler Szabó. 2022. Compositionality. In Edward N. Zalta and Uri Nodelman, editors, The Stanford Encyclopedia of Philosophy, Fall 2022 edition. Metaphysics Research Lab, Stanford University."
1411
+ ],
1412
+ "bbox": [
1413
+ 115,
1414
+ 85,
1415
+ 489,
1416
+ 920
1417
+ ],
1418
+ "page_idx": 10
1419
+ },
1420
+ {
1421
+ "type": "list",
1422
+ "sub_type": "ref_text",
1423
+ "list_items": [
1424
+ "Xiaoyan Wang, Pavan Kapanipathi, Ryan Musa, Mo Yu, Kartik Talamadupula, Ibrahim Abdelaziz, Maria Chang, Achille Fokoue, Bassem Makni, Nicholas Mattei, et al. 2019. Improving natural language inference using external knowledge in the science questions domain. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 7208-7215.",
1425
+ "Sondre Wold, Lilja Øvrelid, and Erik Velldal. 2023. Text-to-KG alignment: Comparing current methods on classification tasks. In Proceedings of the First Workshop on Matching From Unstructured and Structured Data (MATCHING 2023), pages 1-13, Toronto, ON, Canada. Association for Computational Linguistics.",
1426
+ "Michihiro Yasunaga, Antoine Bosselut, Hongyu Ren, Xikun Zhang, Christopher D Manning, Percy Liang, and Jure Leskovec. 2022. Deep bidirectional language-knowledge graph pretraining. In Advances in Neural Information Processing Systems.",
1427
+ "Michihiro Yasunaga, Hongyu Ren, Antoine Bosselut, Percy Liang, and Jure Leskovec. 2021. QA-GNN: Reasoning with language models and knowledge graphs for question answering. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 535-546, Online. Association for Computational Linguistics.",
1428
+ "Donghan Yu, Chenguang Zhu, Yiming Yang, and Michael Zeng. 2022. Jaket: Joint pre-training of knowledge graph and language understanding. Proceedings of the AAAI Conference on Artificial Intelligence, 36(10):11630-11638.",
1429
+ "Houyu Zhang, Zhenghao Liu, Chenyan Xiong, and Zhiyuan Liu. 2020. Grounded conversation generation as guided traverses in commonsense knowledge graphs. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2031-2043, Online. Association for Computational Linguistics.",
1430
+ "Xikun Zhang, Antoine Bosselut, Michihiro Yasunaga, Hongyu Ren, Percy Liang, Christopher D Manning, and Jure Leskovec. 2022. GreaseLM: Graph REASoning enhanced language models. In International Conference on Learning Representations."
1431
+ ],
1432
+ "bbox": [
1433
+ 510,
1434
+ 85,
1435
+ 882,
1436
+ 736
1437
+ ],
1438
+ "page_idx": 10
1439
+ },
1440
+ {
1441
+ "type": "page_number",
1442
+ "text": "3457",
1443
+ "bbox": [
1444
+ 480,
1445
+ 928,
1446
+ 519,
1447
+ 940
1448
+ ],
1449
+ "page_idx": 10
1450
+ },
1451
+ {
1452
+ "type": "text",
1453
+ "text": "A Dataset generation",
1454
+ "text_level": 1,
1455
+ "bbox": [
1456
+ 114,
1457
+ 84,
1458
+ 315,
1459
+ 99
1460
+ ],
1461
+ "page_idx": 11
1462
+ },
1463
+ {
1464
+ "type": "text",
1465
+ "text": "A.1 LUBM",
1466
+ "text_level": 1,
1467
+ "bbox": [
1468
+ 114,
1469
+ 118,
1470
+ 220,
1471
+ 131
1472
+ ],
1473
+ "page_idx": 11
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "We use the LUBM UBA to generate knowledge graphs on the fly. We limit our graphs to the following entity types: Professor, AssociateProfessor, UndergraduateStudent, GraduateStudent, TeachingAssistant, Publication, Course; and the following relations: PUBLICATIONAUTHOR, TEACHEROF, ADVISOR, TAKESCOURSE, TEACHINGASSISTANTOF. We also add reverse edges with reverse relations for all of these to create more diverse question types in our final dataset, making $|\\mathcal{R}_{LUBM}^{\\prime}| = 10$ . We remove all literals. Using a sample size of approximately 14000, we create graphs that have $\\mu = 685$ , $\\sigma = 77.16$ nodes and $\\mu = 4949$ , $\\sigma = 532$ edges after processing.",
1478
+ "bbox": [
1479
+ 112,
1480
+ 147,
1481
+ 885,
1482
+ 261
1483
+ ],
1484
+ "page_idx": 11
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "A.2 Statistics",
1489
+ "text_level": 1,
1490
+ "bbox": [
1491
+ 114,
1492
+ 280,
1493
+ 235,
1494
+ 294
1495
+ ],
1496
+ "page_idx": 11
1497
+ },
1498
+ {
1499
+ "type": "image",
1500
+ "img_path": "images/81adfba236d19aa9a51be36fad045a472638f20f1d072b1b532033d949364823.jpg",
1501
+ "image_caption": [
1502
+ "Figure 4: The relative percentage of each unique relation path to the total for 2, 3, and 4-hops."
1503
+ ],
1504
+ "image_footnote": [],
1505
+ "bbox": [
1506
+ 173,
1507
+ 311,
1508
+ 823,
1509
+ 589
1510
+ ],
1511
+ "page_idx": 11
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "The number of possible combinations of relations on the edges in a $k$ -hop path increases with the number of hops. As our sampling procedure uses 10 distinct relations we have $10^{k}$ theoretical combinations of relations for any $k$ -hop path. As our graphs are committed to the LUBM ontology the number of relations that hold between two entity types is much lower.",
1516
+ "bbox": [
1517
+ 112,
1518
+ 634,
1519
+ 884,
1520
+ 700
1521
+ ],
1522
+ "page_idx": 11
1523
+ },
1524
+ {
1525
+ "type": "page_footnote",
1526
+ "text": "<sup>3</sup>https://swat.cse.lehigh.edu/projects/lubm/",
1527
+ "bbox": [
1528
+ 136,
1529
+ 906,
1530
+ 462,
1531
+ 920
1532
+ ],
1533
+ "page_idx": 11
1534
+ },
1535
+ {
1536
+ "type": "page_number",
1537
+ "text": "3458",
1538
+ "bbox": [
1539
+ 480,
1540
+ 927,
1541
+ 519,
1542
+ 940
1543
+ ],
1544
+ "page_idx": 11
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "A.3 Sampling procedure",
1549
+ "text_level": 1,
1550
+ "bbox": [
1551
+ 114,
1552
+ 84,
1553
+ 324,
1554
+ 101
1555
+ ],
1556
+ "page_idx": 12
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "Given a directed multigraph $G = (\\mathcal{V}, \\mathcal{E})$ with labeled entities $v_i \\in \\mathcal{V}$ and labeled edges $(v_i, r, v_j) \\in \\mathcal{E}$ where $r \\in \\mathcal{R}$ is a relation, we sample a positive and negative example for a $k$ -hop path using the following procedure:",
1561
+ "bbox": [
1562
+ 112,
1563
+ 112,
1564
+ 882,
1565
+ 162
1566
+ ],
1567
+ "page_idx": 12
1568
+ },
1569
+ {
1570
+ "type": "list",
1571
+ "sub_type": "text",
1572
+ "list_items": [
1573
+ "1. Sample two pairs of nodes $(s_{+}$ and $e_+$ ) and $(s_{-}$ and $e_{-})$ from $\\mathcal{V}$ with uniform probability, making sure that $s_{+} \\neq s_{-}$ or $e_{+} \\neq e_{-}$ , that $s_{+}$ and $s_{-}$ are of the same entity type, and that $e_{+}$ and $e_{-}$ are of the same entity type.",
1574
+ "2. Let $R_{+}$ be the set of all relation paths of length $k$ from $s_{+}$ to $e_{+}$ .",
1575
+ "3. Let $R_{-}$ be the set of all relation paths of length $k$ from $s_{-}$ to $e_{-}$ .",
1576
+ "4. Let $P_{+}$ be the set $R_{+} \\setminus R_{-}$",
1577
+ "5. Let $P_{-}$ be the set $R_{-} \\setminus R_{+}$",
1578
+ "6. If $P_{+} \\neq \\emptyset$ and $P_{-} \\neq \\emptyset$ :"
1579
+ ],
1580
+ "bbox": [
1581
+ 127,
1582
+ 181,
1583
+ 878,
1584
+ 359
1585
+ ],
1586
+ "page_idx": 12
1587
+ },
1588
+ {
1589
+ "type": "list",
1590
+ "sub_type": "text",
1591
+ "list_items": [
1592
+ "(a) Sample a relation path $q\\colon q\\sim \\mathcal{U}(P_{+})$",
1593
+ "(b) Return the triple $(q, s_{+}, e_{+})$ as a positive example and $(q, s_{-}, e_{-})$ as a negative example."
1594
+ ],
1595
+ "bbox": [
1596
+ 156,
1597
+ 367,
1598
+ 842,
1599
+ 401
1600
+ ],
1601
+ "page_idx": 12
1602
+ },
1603
+ {
1604
+ "type": "text",
1605
+ "text": "This procedure returns a $k$ -hop relation path, $q$ , that holds between $s_{+}$ and $e_{+}$ but not between $s_{-}$ and $e_{-}$ . However, we also make sure that there are paths that hold between $s_{-}$ and $e_{-}$ but not $s_{+}$ and $e_{+}$ , ensuring symmetry.",
1606
+ "bbox": [
1607
+ 112,
1608
+ 420,
1609
+ 884,
1610
+ 469
1611
+ ],
1612
+ "page_idx": 12
1613
+ },
1614
+ {
1615
+ "type": "text",
1616
+ "text": "In addition, we shuffle entities labels while preserving entity types before running this procedure since the LUBM generator introduces problematic patterns with its entity numbering. For example, in the original graph, Professor1 is more likely to author Paper1 than Paper5. By randomly exchanging the labels of Paper1 and Paper5, we ensure the models cannot exploit this regularity.",
1617
+ "bbox": [
1618
+ 112,
1619
+ 478,
1620
+ 882,
1621
+ 542
1622
+ ],
1623
+ "page_idx": 12
1624
+ },
1625
+ {
1626
+ "type": "text",
1627
+ "text": "B Models",
1628
+ "text_level": 1,
1629
+ "bbox": [
1630
+ 114,
1631
+ 563,
1632
+ 216,
1633
+ 577
1634
+ ],
1635
+ "page_idx": 12
1636
+ },
1637
+ {
1638
+ "type": "text",
1639
+ "text": "B.1 Parameters",
1640
+ "text_level": 1,
1641
+ "bbox": [
1642
+ 114,
1643
+ 596,
1644
+ 253,
1645
+ 611
1646
+ ],
1647
+ "page_idx": 12
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "text": "All our combined models have a total of $\\approx 141000000$ parameters, with the majority of them coming from the language model. Our baseline has $\\approx 30000000$ .",
1652
+ "bbox": [
1653
+ 112,
1654
+ 627,
1655
+ 882,
1656
+ 659
1657
+ ],
1658
+ "page_idx": 12
1659
+ },
1660
+ {
1661
+ "type": "text",
1662
+ "text": "B.2 Computation infrastructure",
1663
+ "text_level": 1,
1664
+ "bbox": [
1665
+ 114,
1666
+ 678,
1667
+ 384,
1668
+ 694
1669
+ ],
1670
+ "page_idx": 12
1671
+ },
1672
+ {
1673
+ "type": "text",
1674
+ "text": "All the experiments ran on the LUMI supercomputer, using a single AMD MI250X GPU. Running all the experiments reported in the paper has a total computing budget of approximately 150 hours.",
1675
+ "bbox": [
1676
+ 112,
1677
+ 708,
1678
+ 882,
1679
+ 741
1680
+ ],
1681
+ "page_idx": 12
1682
+ },
1683
+ {
1684
+ "type": "text",
1685
+ "text": "B.3 Hyperparameters",
1686
+ "text_level": 1,
1687
+ "bbox": [
1688
+ 114,
1689
+ 759,
1690
+ 304,
1691
+ 775
1692
+ ],
1693
+ "page_idx": 12
1694
+ },
1695
+ {
1696
+ "type": "text",
1697
+ "text": "We tune the learning rate for the text encoder from $\\{1 \\times 10^{-6}, 1 \\times 10^{-5}, 2 \\times 10^{-5}, 3 \\times 10^{-5}, 5 \\times 10^{-5}\\}$ , the graph encoder module from $\\{2 \\times 10^{-4}, 5 \\times 10^{-4}, 1 \\times 10^{-3}, 2 \\times 10^{-3}, 1 \\times 10^{-5}\\}$ , and the MLP module from $\\{1 \\times 10^{-4}, 1 \\times 10^{-5}\\}$ ; the dropout value from $\\{0.1, 0.2, 0.3\\}$ and the epochs from $\\{5, 8, 10\\}$ , with no early stopping. The hyperparameters are tuned on a development set targeting the substitutivity task with an equal mix of 2, 3, and 4-hop questions. We run 60 trials for each of the five model configurations and sample a random combination of these parameters for each trial, selecting the best combination for our experiments. We find that all models perform the best with no decay on the learning rate.",
1698
+ "bbox": [
1699
+ 112,
1700
+ 788,
1701
+ 884,
1702
+ 902
1703
+ ],
1704
+ "page_idx": 12
1705
+ },
1706
+ {
1707
+ "type": "page_footnote",
1708
+ "text": "<sup>4</sup>https://www.lumi-supercomputer.eu/sustainable-future/",
1709
+ "bbox": [
1710
+ 134,
1711
+ 906,
1712
+ 547,
1713
+ 920
1714
+ ],
1715
+ "page_idx": 12
1716
+ },
1717
+ {
1718
+ "type": "page_number",
1719
+ "text": "3459",
1720
+ "bbox": [
1721
+ 480,
1722
+ 928,
1723
+ 519,
1724
+ 940
1725
+ ],
1726
+ "page_idx": 12
1727
+ },
1728
+ {
1729
+ "type": "table",
1730
+ "img_path": "images/528e1207b4f20688a0d2a4ce16f4af2cf37c15d54a1fe8757ad53db1d3043be4.jpg",
1731
+ "table_caption": [],
1732
+ "table_footnote": [],
1733
+ "table_body": "<table><tr><td>Hyperparameter</td><td>BASELINE</td><td>DISJOINT</td><td>GROUNDED</td><td>UNIDIRECTIONAL</td><td>BIDIRECTIONAL</td></tr><tr><td>LM lr</td><td>-</td><td>0.00001</td><td>0.00001</td><td>0.00001</td><td>0.00001</td></tr><tr><td>GNN lr</td><td>0.00001</td><td>0.0005</td><td>0.0005</td><td>0.00005</td><td>0.0005</td></tr><tr><td>MLP lr</td><td>0.00001</td><td>0.0001</td><td>0.0001</td><td>0.0001</td><td>0.0001</td></tr><tr><td>Dropout</td><td>0.3</td><td>0.3</td><td>0.3</td><td>0.3</td><td>0.3</td></tr><tr><td>Epochs</td><td>5</td><td>8</td><td>8</td><td>8</td><td>8</td></tr></table>",
1734
+ "bbox": [
1735
+ 179,
1736
+ 215,
1737
+ 815,
1738
+ 315
1739
+ ],
1740
+ "page_idx": 13
1741
+ },
1742
+ {
1743
+ "type": "table",
1744
+ "img_path": "images/bffe4a9925265a1287eba5b6ab6e239d2088f54c8228d76f8d299729ccf5a5a7.jpg",
1745
+ "table_caption": [
1746
+ "Table 5: Variable training hyperparameters for all five model configurations"
1747
+ ],
1748
+ "table_footnote": [],
1749
+ "table_body": "<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Pre-trained LM</td><td>bert-base-uncased (Devlin et al., 2019)</td></tr><tr><td>LM hidden size</td><td>768</td></tr><tr><td>GNN hidden size</td><td>768</td></tr><tr><td>GNN layers</td><td>4</td></tr><tr><td>Batch size</td><td>16</td></tr><tr><td>Sequence length</td><td>64</td></tr><tr><td>Learning rate decay</td><td>constant</td></tr><tr><td>Optimizer</td><td>AdamW</td></tr></table>",
1750
+ "bbox": [
1751
+ 307,
1752
+ 615,
1753
+ 690,
1754
+ 758
1755
+ ],
1756
+ "page_idx": 13
1757
+ },
1758
+ {
1759
+ "type": "text",
1760
+ "text": "Table 6: Constant training hyperparameters for all five model configurations",
1761
+ "bbox": [
1762
+ 238,
1763
+ 768,
1764
+ 756,
1765
+ 783
1766
+ ],
1767
+ "page_idx": 13
1768
+ },
1769
+ {
1770
+ "type": "page_number",
1771
+ "text": "3460",
1772
+ "bbox": [
1773
+ 480,
1774
+ 928,
1775
+ 521,
1776
+ 940
1777
+ ],
1778
+ "page_idx": 13
1779
+ }
1780
+ ]
2024/Compositional Generalization with Grounded Language Models/5b07d1a5-aacb-474d-988a-7cd18a966725_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Compositional Generalization with Grounded Language Models/5b07d1a5-aacb-474d-988a-7cd18a966725_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3a7061c8982090fe804e546a035f1855ccd6ea8ab94542865df4e4d86aa0435
3
+ size 383823
2024/Compositional Generalization with Grounded Language Models/full.md ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Compositional Generalization with Grounded Language Models
2
+
3
+ Sondre Wold, Étienne Simon, Lucas Georges Gabriel Charpentier, Egor V. Kostylev, Erik Velldal, Lilja Øvrelid
4
+ University of Oslo
5
+
6
+ # Abstract
7
+
8
+ Grounded language models use external sources of information, such as knowledge graphs, to meet some of the general challenges associated with pre-training. By extending previous work on compositional generalization in semantic parsing, we allow for a controlled evaluation of the degree to which these models learn and generalize from patterns in knowledge graphs. We develop a procedure for generating natural language questions paired with knowledge graphs that targets different aspects of compositionality and further avoids grounding the language models in information already encoded implicitly in their weights. We evaluate existing methods for combining language models with knowledge graphs and find them to struggle with generalization to sequences of unseen lengths and to novel combinations of seen base components. While our experimental results provide some insight into the expressive power of these models, we hope our work and released datasets motivate future research on how to better combine language models with structured knowledge representations.
9
+
10
+ # 1 Introduction
11
+
12
+ Language models (LMs) acquire latent representations of text through their pre-training. One drawback of this paradigm is the implicit encoding of knowledge in a large parameter space, which can lead to factual hallucinations in model outputs. To reduce this effect, there has recently been a widespread interest in what is sometimes referred to as grounded language models, which are LMs grounded in external information sources, such as knowledge graphs (KGs). These approaches typically attempt to enable reasoning over KGs by combining the LM outputs with that of a separate graph encoder, such as a graph neural network (GNN; Lin et al., 2019; Zhang et al., 2022; Sun et al., 2022; Yasunaga et al., 2022; Yu et al., 2022). It can be difficult to determine to what extent grounded models
13
+
14
+ exhibit any structured reasoning, or what precisely would constitute reasoning in this context, as the information contained in these KGs often targets the same domain as the corpora used for LM pretraining. One example of this is the overlap in information between Wikidata, often used as the KG in previous work on grounded LMs, and Wikipedia, which is a common corpus for pre-training.
15
+
16
+ Central to human reasoning is the ability to form novel combinations from seen components, often referred to as compositional generalization. Studies on compositionality have a long tradition within many fields of study, such as linguistics (Partee et al., 1995), philosophy (Pagin and Westerstahl, 2010), and cognitive science (Churchland, 1990), and determining to what degree neural networks capture compositionality is a long-standing research problem in machine learning, with debates going back several decades (Fodor and Pylyshyn, 1988; Smolensky, 1987). Recent studies in NLP have primarily used semantic parsing of synthetic utterances as a testbed for investigating to what extent neural networks combine syntactic elements to form new complex expressions (Hosseini et al., 2022). One of the most well-known examples of this is from Lake and Baroni (2018), who found seq2seq models to struggle both with systematic compositional skills and generalization to longer sequences than seen during training – abilities that are often taken to be central to compositional generalization. Some of these shortcomings were recently mitigated using a meta-learning framework (Lake and Baroni, 2023), but it is still not clear under what circumstances neural networks can consistently demonstrate compositional generalization, or if they can at all (Dziri et al., 2024).
17
+
18
+ In this work, we investigate to what extent grounded language models exhibit compositional generalization by combining two orthogonal research directions: compositionality in neural networks and the grounding of LMs in KGs.
19
+
20
+ Using question answering as a task, we train models to recognize the relation between certain patterns in a synthetic KG and natural language questions. We develop a data generation procedure that targets three aspects of compositionality from Hupkes et al. (2020): substitutivity, productivity, and systematicity. In our experiments, we evaluate LMs that interact with KGs through the use of a GNN, an approach previously proven effective for tasks such as question answering (Lin et al., 2019; Zhang et al., 2022; Sun et al., 2022) and pre-training (Yasunaga et al., 2022).
21
+
22
+ Our work targets two key limitations from the literature: Firstly, by extending existing work on compositional generalization to question answering over KGs, we can assess the capabilities of these models for structured reasoning over natural language questions of varying complexities; and secondly, by using a synthetic knowledge graph we do not run the risk of grounding a language model in a knowledge source containing information that already exists implicitly in the models' weights. The contribution of our work is three-fold: i) We provide the first experimental study on the expressive power of grounded LMs with respect to compositional generalization ii) We develop a procedure for generating dataset samples that target three theoretically motivated aspects of compositionality, and iii) We release a series of generated datasets using this procedure, together with all code and data related to our experiments, which can be used to benchmark grounded language models in a controlled environment.
23
+
24
+ # 2 Compositionality
25
+
26
+ In what follows we discuss three aspects of compositionality that have been established as tests of compositionality in previous work (Hupkes et al., 2020): substitutivity, systematicity, and productivity. We also describe how we ground these notions to be applicable for our setting, where data consists of both text and KGs. We refer an interested reader to the overview by Szabó (2022) for a more extensive introduction to these terms.
27
+
28
+ Substitutivity One of the most well-known definitions of compositionality is the principle of compositionality from Partee et al. (1995): "The meaning of a compound expression is a function of the
29
+
30
+ meanings of its parts and of the way they are syntactically combined". Closely related to this principle is the notion of substitutivity, which states that any change to a complex expression that maintains the meaning of individual parts also maintains the meaning of the whole expression. On the one hand, in the context of natural languages, this definition is not without controversy. Languages often have elements that do not adhere strictly to such a principle, for example through the use of idioms (Dankers et al., 2022a). On the other hand, in our setting, we can exploit the observation that if an atomic expression in natural language has a node in a graph as its reference, then we can substitute this reference with a compounded expression referencing the same node without changing the meaning of the whole expression. As the principle of compositionality is not committed to any specific theory of semantics, we can use reference as the qualification for semantic equivalence, a theory sometimes referred to as the compositionality of reference (Szabó, 2022). For example, given the KG in Figure 1, we can ask ourselves whether "Paper2 was authored by Professor2". We can then replace "Professor2" with a compounded reference, such as "the supervisor of GraduateStudent5", which gives rise to the question: "Was Paper2 authored by the supervisor of GraduateStudent5?" Following the compositionality of reference, we do not change the meaning of the overall question, since we still enquire about the same node in the graph, even though we have substituted a 1-hop reference with a 2-hop reference. Consequently, by constructing highly compositional questions in natural language, we can test whether or not neural networks can learn the mapping between constituents in text and paths in a graph.
31
+
32
+ Productivity Closely related to substitutivity, productivity refers to the ability to construct seemingly infinite constructions using a finite capacity. As Hupkes et al. (2020) point out, this view on the open-endedness of language is typically associated with generative linguistics, and in the context of neural networks, the most direct way of testing for this ability is to test models on generalization to sequences of lengths not seen during training. In our case, we can train models on questions that require reasoning over $k$ -hop paths, for several $k$ , in a graph, and then test on $j$ -hop paths, for various $j$ different from the $k$ 's used in training.
33
+
34
+ ![](images/d008a6a40165247a751788512afa4e90410d15a303cd357e2fe93e3f8fb02c25.jpg)
35
+ Figure 1: An example KG illustrating the relationship between entities from the LUBM inventory.
36
+
37
+ Systematicity One of the most tested properties of compositionality is systematicity, which was popularized as a term by Fodor and Pylyshyn (1988). Systematicity can loosely be described as the ability to combine seen parts and rules to form new combinations, an ability that has a long tradition within linguistics. In the context of neural networks, tests of systematicity typically involve exposing models to a finite set of items and combinations during training and then evaluating the same models on a test set containing the same set of items, but combined in ways not seen during training. Lake and Baroni (2018) use the example of a person that knows the meaning and usage of words such as "twice," "and," and "again," which upon learning the new verb "to dax" can generalize to new constructions such as "dax twice and then dax again," something they find neural networks to struggle with. Recently, there have also been some attempts to formalize and quantify systematic generalization in neural networks (Keysers et al., 2020; Ram et al., 2023). In our setting, we can use the typed relations of the edges in a graph, such as the one illustrated in Figure 1, to test for systematicity. If a model has seen the relations TEACHES, HAS-STUDENT, and ADVISOR in numerous 3-hop paths, but never in this order, a display of systematicity would require generalization to this unseen order.
38
+
39
+ # 3 Dataset Generation
40
+
41
+ # 3.1 Overview
42
+
43
+ To target the compositional abilities specified above, we generate several datasets consisting of
44
+
45
+ pairs of KGs and yes/no questions in natural language, all of which are about the information in these graphs. This section explains the properties of these datasets and how they are created.
46
+
47
+ A KG over a set $\mathcal{T}$ of types and a set $\mathcal{R}$ of relations is a directed labeled multi-graph $(\mathcal{V},\mathcal{L},\mathcal{E})$ with nodes $\nu$ , called entities in this context, set $\mathcal{L}$ of node labelings, each of which is of the form $(v,t)$ where $v$ is an entity in $\mathcal{V}$ and $t$ a type in $\mathcal{T}$ , and set $\mathcal{E}$ of edges, each of which is of the form $(v,r,v')$ , where $v$ and $v'$ are entities from $\nu$ , and $r$ is a relation from $\mathcal{R}$ . In this work, we only concentrate on graphs from the Lehigh University Benchmark (LUBM; Guo et al., 2005), which is a synthetic KG benchmark popular for evaluating various aspects of knowledge graph repositories. In particular, we exploit LUBM's KG generator of customizable and repeatable synthetic data, which can produce KGs of a user-specified size describing a fictitious university domain and committing to a realistic ontology over sets $\mathcal{T}_{\text{LUBM}}$ and $\mathcal{R}_{\text{LUBM}}$ of university-related types and relations. We generate several graphs with an average number of 685 entities, each labeled by a single type, and 4949 edges, each labeled by a single relation.
48
+
49
+ Each of the natural language questions targets two entities in the corresponding generated LUBM graph $\mathcal{G}$ and a chain of relations from $\mathcal{R}_{\text{LUBM}}$ and inverses of such relations that is to hold between these entities. In particular, for a number of hops (i.e., chain length) $k$ , the questions are semimanually created by first mapping each unique $k$ -hop combination (i.e., chain of length $k$ ) of relations from a selected subset of $\mathcal{R}_{\text{LUBM}}$ and their inverses to a natural language template with two parameters, and then substituting these parameters by two entities from $\mathcal{V}$ as arguments. As a result, the answer to the question is TRUE if there exists a path between the two entities in $\mathcal{G}$ as prompted by the $k$ -hop combination of the question template, and FALSE otherwise. We create templates for 2, 3, and 4 hops, with 5 relations from $\mathcal{R}_{\text{LUBM}}$ and their inverses as $\mathcal{R}_{\text{LUBM}}'$ . This makes for over 280 unique templates (while the number of questions depends on $\mathcal{G}$ ). To illustrate our dataset creation we concentrate on an example and a discussion of a key step, sampling of positive and negative question-graph pairs, in the next two subsections. We refer to Appendix A for further details.
50
+
51
+ # 3.2 Example
52
+
53
+ Given the KG in Figure 1, we can create the following templates, for an increasing number of hops, where the “—” superscript denotes the inverse of the relation:
54
+
55
+ 2 hops: [TEACHES, TAKES COURSE $^{-}$ ] $\rightarrow$ Does $s$ teach a course that has a student named $e$ ?
56
+ 3 hops: [TEACHES, TAKESCOURSE $^{-}$ , ADVISOR] $\rightarrow$ Does $s$ teach a course that has a student supervised by $e$ ?
57
+ 4 hops: [TEACHES, TAKESCOURSE $^{-}$ , ADVISOR, PUBLICATIONAUTHOR] $\rightarrow$ Does $s$ teach a course that has a student supervised by an author of $e$ ?
58
+
59
+ To create questions from these templates that we label TRUE we can use PROFESSOR7 and GRADSTUDENT9 as arguments substituting parameters $s$ and $e$ , respectively, in the 2-hop case, PROFESSOR7 and PROFESSOR2 for the 3-hop case, and PROFESSOR7 and PAPER2 for the 4-hop case. Creating examples labeled as FALSE for these templates then involves sampling two entities to use as $s$ and $e$ that are not connected by the chains of relations, but are similarly connected in the graph as the entities in the positive examples. We describe this negative sampling in the next section.
60
+
61
+ # 3.3 Sampling Procedure
62
+
63
+ As mentioned, we create each question-graph pair by sampling pairs of entities and the relations on the edges that are to hold between them in the graph $\mathcal{G}$ . The key requirement to this procedure is to guarantee that the $k$ relations and their inverses in every sampled $k$ -hop combination are as likely to be labeled TRUE as they are to be labeled FALSE; failing to do so introduces distributional bias. This means that our sampling procedure must ensure two important properties: $i$ it must be impossible for a text-only model to associate a question template (i.e., all questions produced from this template) to the TRUE or FALSE label, and $ii$ it must be impossible for a graph-only model to associate the presence of a specific set of relations in graph $\mathcal{G}$ with a specific label.
64
+
65
+ We ensure property $i$ ) by creating the same number of questions labeled TRUE as FALSE for every unique $k$ -hop combination of relations. We ensure ii) by sampling $k$ -hop relation paths from $\mathcal{G}$ symmetrically: We first sample i.i.d. two pairs of
66
+
67
+ different entities, $s_{+}, e_{+}$ and $s_{-}, e_{-}$ , such that $s_{+}$ and $s_{-}$ are of the same entity type, and $e_{+}$ and $e_{-}$ are also of the same entity type. We then identify a $k$ -hop combination over $\mathcal{R}_{\text{LUBM}}'$ that exists between $s_{+}$ and $e_{+}$ but not between $s_{-}$ and $e_{-}$ , as well as verify that there exists another (different) $k$ -hop combination over $\mathcal{R}_{\text{LUBM}}'$ between $s_{-}$ and $e_{-}$ . If all this succeeds, the pair $s_{+}, e_{+}$ with the question corresponding to the template becomes a positive example, and the pair $s_{-}, e_{-}$ with the same template a negative one. Further details of the sampling procedure can be found in Appendix A.
68
+
69
+ # 4 Modeling
70
+
71
+ For all experiments, each data point includes a natural language question $q$ and a graph $\mathcal{G}$ . Following previous work on combining language models with KGs (Lin et al., 2019; Zhang et al., 2020; Yasunaga et al., 2021; Zhang et al., 2022; Kaur et al., 2022; Sun et al., 2022; Yasunaga et al., 2022), we use separate encoders for $q$ and $\mathcal{G}$ to obtain representations of both modalities. Section 4.1 outlines these encoders and Section 4.2 how we combine them to produce the final output prediction $\hat{y} \in \{\mathrm{TRUE},\mathrm{FALSE}\}$ .
72
+
73
+ # 4.1 Encoders
74
+
75
+ Text encoder We obtain representations of $q$ by using the special sentence representation token at the last layer of a pre-trained language model, as per Devlin et al. (2019): $z_{\mathrm{text}} = \mathrm{BERT}(q)$ .
76
+
77
+ Graph encoder As a graph encoder, we use the relational graph convolution model, R-GCN, from Schlichtkrull et al. (2018):
78
+
79
+ $$
80
+ h _ {i} ^ {\ell + 1} = \sigma \left(\sum_ {r \in \mathcal {R}} \sum_ {j \in \mathcal {N} _ {i} ^ {r}} \frac {1}{| \mathcal {N} _ {i} ^ {r} |} W _ {r} ^ {\ell} h _ {j} ^ {\ell} + W _ {0} ^ {\ell} h _ {i} ^ {\ell}\right),
81
+ $$
82
+
83
+ where $h_i^\ell$ is the hidden state of a node $i$ in layer $\ell$ , $\sigma$ is the ReLU function and $\mathcal{N}_i^r$ is the set of neighborhood vertices of node $i$ under relation $r$ .
84
+
85
+ # 4.2 Final models
86
+
87
+ Inspired by previous work on combining text and graph encoders, we experiment with different approaches to integrating the two modalities and apply them using the above-mentioned encoders and our experimental setup. Figure 2 provides an overview of the differences between these approaches.
88
+
89
+ ![](images/ec18fa16804874f13ff9aebbbd1e49525cca7b331dd9c610365ee46cbfc0c157.jpg)
90
+ Figure 2: Overview of the different approaches to combining the two encoders. Purple nodes are initialized at random while green and blue nodes are initialized using a frozen BERT model.
91
+
92
+ ![](images/fd948d5a75f87705b416757955ce0fc44d15465ce54663ca4268cef329b3c2ad.jpg)
93
+
94
+ ![](images/b3e03ba17858afb26c81f618dbe7f1b15345b076ddf6df120396084a033a49ed.jpg)
95
+
96
+ ![](images/87a300401d078159659e972953cdee172d11c7d8c7cdaec8f2e1130b6ba66d0f.jpg)
97
+
98
+ Disjoint The simplest way of having the two modalities interact is to initialize and run both encoders separately before conjoining their outputs in a final classification layer. This keeps the encoders disjoint, essentially making a "two-tower architecture" – conceptually similar to approaches such as Wang et al. (2019).
99
+
100
+ To get a final representation of the graph, $z_{\mathrm{graph}}$ , we take the embedding of the head and tail node targeted by the question after $L$ rounds of message passing: $z_{\mathrm{graph}} = h_s^L \oplus h_e^L$ , where $s$ and $e$ are the indices of the head and tail node and $\oplus$ is vector concatenation. We initialize these nodes by creating two distinct embeddings, $E_s$ and $E_e$ , with $E_s, E_e \sim \mathcal{N}(0,1)$ . We keep these static throughout training and testing and use them for all head and tail nodes targeted by the questions. The initialization of remaining nodes in each graph is discussed in more detail in Section 4.3.
101
+
102
+ For the question, we take the output of the text encoder without any modifications. The final output prediction is then obtained by the following: $f(z_{\mathrm{text}} \oplus z_{\mathrm{graph}})$ , where $f$ is a two-layered MLP with a ReLU activation function.
103
+
104
+ Grounded For this model, we concatenate the original question string from $q$ with both the head and tail entity strings, respectively, using a separation token. This is then used as input to the text encoder, obtaining a representation of the head and tail nodes:
105
+
106
+ $$
107
+ \begin{array}{l} h _ {s} ^ {0} = \operatorname {B E R T} (q < \text {S E P} > \text {h e a d s u r f a c e f o r m}), \\ h _ {e} ^ {0} = \operatorname {B E R T} (q < \text {S E P} > \text {t a i l s u r f a c e f o r m}). \\ \end{array}
108
+ $$
109
+
110
+ These are then used to initialize the embeddings for the nodes pertaining to these entities in the graph. This is done in a pre-processing step before the text encoder is fine-tuned on our datasets. The final output prediction is calculated in the same way as with the disjoint model.
111
+
112
+ Unidirectional In this model, we add a unidirectional interaction between the encoders, inspired by works such as Yasunaga et al. (2021). For each question-graph pair, $(q,\mathcal{G})$ , we introduce a new special context node, $u$ , and connect $u$ to each node in $\mathcal{G}$ . This special node is connected using two new relations, one for each direction, and its embedding is initialized using the text encoder representation of the question, $\mathrm{BERT}(q)$ . In Figure 2, $u$ is marked as a blue node. For each $\mathcal{G}$ , we perform global pooling over the hidden states:
113
+
114
+ $$
115
+ z _ {\text {g r a p h}} = \frac {1}{| \mathcal {V} |} \sum_ {v \in \mathcal {V} ^ {\prime}} h _ {v} ^ {L},
116
+ $$
117
+
118
+ where $\mathcal{V}'$ is the set containing the head, tail, and special context nodes. We do not consider the set of all nodes due to the zero-initialization of the remaining nodes in $\mathcal{G}$ (see Section 4.3). The head and tail nodes are initialized as in the grounded model, using the text encoder representations. We also take the embedding of the special node at the last layer, $h_u^L$ , as a representation of $\mathcal{G}$ . The final output prediction is then given by: $f(z_{\mathrm{text}} \oplus z_{\mathrm{graph}} \oplus h_u^L)$ , where $f$ is a two-layered MLP with a ReLU activation function.
119
+
120
+ Bidirectional We also develop a model inspired by the interaction approach used in works such as
121
+
122
+ Zhang et al. (2022) and Yasunaga et al. (2022) to allow for a bidirectional interaction between the two encoders. We keep the special context node $u$ as described in the unidirectional model, but we add a special interaction token, $t$ , to the question $q$ . $t$ is set to be the representation of the special context node $u$ after $L$ layers of message passing: $t = h_u^L$ . This is done after the embedding of $q$ in the text encoder. We produce the final output prediction using the same method as in the unidirectional model.
123
+
124
+ Baseline We use a sole graph encoder as a baseline. Theoretically, it should not be possible to solve the tasks without having access to both the text and the graph. By using a graph-only system as a baseline we therefore get both a sanity check and an upper bound on the noise produced by the sampling. As the natural language questions are not sampled, but rather constructed deterministically from the paths sampled from our graphs, one positive and one negative, the performance of a text-only encoder will by design be equal to a random classifier. The output of the baseline is calculated the same way as for the disjoint model, taking the representations of the head and tail entity.
125
+
126
+ # 4.3 Node initialization
127
+
128
+ Except for the head and tail nodes targeted by each question, and the special context node $u$ , all nodes are initialized as zero-vectors. This means that we leak the position of the head and tail entity in $\mathcal{G}$ for each sample in the dataset, making any pruning of $\mathcal{G}$ redundant. It is often necessary to reduce the computational complexity of combining language models and large knowledge graphs using mechanisms such as subgraph retrieval and entity linking, but these steps are also known to be error-prone (Wold et al., 2023). This initialization ensures that we further isolate the application of compositional generalization rules, as opposed to evaluating the performance of a pipeline model with numerous error-prone components.
129
+
130
+ # 5 Experiments and results
131
+
132
+ <table><tr><td>Hops</td><td>#relation-paths</td><td>N</td></tr><tr><td>2</td><td>23</td><td>1043±1941</td></tr><tr><td>3</td><td>73</td><td>328±449</td></tr><tr><td>4</td><td>188</td><td>127±260</td></tr></table>
133
+
134
+ Table 1: The mean number of occurrences of the relation paths across 24000 generated graphs per hop $k$ .
135
+
136
+ In this section, we test our suite of models on data specifically targeting substitutivity (Section 5.1), productivity (Section 5.2), and systematicity (Section 5.3), going test by test. For all experiments, the distribution between the two classes is perfectly balanced. Statistics on the diversity of the generated graphs with respect to relation paths can be found in Table 1. Details on the selection of hyperparameters can be found in Appendix B.
137
+
138
+ # 5.1 Substitutivity
139
+
140
+ In our first test, we evaluate to what extent the five model configurations can answer questions targeting substitutivity, as defined in Section 2. Success at this task requires recognizing the mapping between the presence of certain relations in the graph and phrases in the natural language questions. Substitutivity is the most basic setting of our experiments and the results on this task demonstrate the general difficulty of the task.
141
+
142
+ Test design We generate 12000 question-graph pairs using our generation procedure. We do this for 2, 3 and 4-hops. Each experiment targets one of the hop lengths, i.e., both training and evaluating on the same number of hops. For all experiments, we use 10000 samples for training and 2000 for testing. All results are reported using mean accuracy and standard deviation from five randomly seeded runs.
143
+
144
+ Results The results of the substitutivity tests can be seen in Table 2. There is a strong generalization in the 2-hop case for all models. In the 3-hop case, performance drops significantly and the variance also increases for most models. There is a further loss in generalization when moving to the 4-hop case, where there is little difference between the models. Figure 3 shows that there is a positive correlation between test accuracy on a specific question type and the frequency of the corresponding relation path in the training data for the 3-hop case. For the 2-hop and 4-hop cases, where the performance is closer to perfect and random classification, respectively, the relationship flattens. This aligns with the increase in unique combinations of relation paths as the number of hops increases, as shown in Table 1. For 2-hops there is either a high number of examples per relation path combination, which enables learning, or very few, which makes the performance on these relation paths negligible on the overall accuracy. For 4-hops, on the other hand, there is too much of a long tail on the dis
145
+
146
+ <table><tr><td>Model</td><td>2-hop</td><td>3-hop</td><td>4-hop</td></tr><tr><td>Baseline</td><td>48.88±1.00</td><td>49.8±0.64</td><td>49.36±0.44</td></tr><tr><td>Disjoint</td><td>98.17±0.39</td><td>83.08±0.96</td><td>67.86±1.89</td></tr><tr><td>Grounded</td><td>92.46±0.49</td><td>84.91±0.38</td><td>69.32±1.96</td></tr><tr><td>Unidirectional</td><td>91.78±0.72</td><td>70.88±3.53</td><td>62.0±3.97</td></tr><tr><td>Bidirectional</td><td>92.44±0.23</td><td>73.66±1.04</td><td>63.24±3.36</td></tr></table>
147
+
148
+ ribution of number of samples per combination, making learning difficult. For 3-hops, however, there is a balance, which is reflected in the results. See Figure 4 in Appendix A for an illustration of the relative percentage of each unique combination to the total for each hop.
149
+
150
+ These results show that the models struggle to generalize to the long tail of the training distribution, which is a known attribute of neural networks. However, single relation types are reused extensively throughout our training data, as there are only 10 unique relations of length 1. This means that the distribution only has a long tail if one considers each 4-hop combination to be a single unique type, as opposed to being composed of four individual relations that are individually high-frequent. We argue that these results indicate that these models do not create internal representations of each 1-hop path together with a function for composing them into compounded expressions, but rather learn individual representations for each compound. This also explains why the performance drops as the complexity increases and the number of samples per relation decreases, making such a strategy less viable. This explanation is further explored in the systematicity tests. We also note that there is little difference between the models, indicating that an increase in model complexity does not add any benefits to this task.
151
+
152
+ # 5.2 Productivity
153
+
154
+ In our next test, we evaluate to what extent models can answer $k$ -hop questions when trained on $j$ -hops, with $k \neq j$ . We define experiments requiring extrapolation and interpolation for different values of $k$ and $j$ . Success at this task requires generalization to sequences with a different length than those seen during training.
155
+
156
+ Test design In our first experiment, we use an even amount of 2 and 3-hop questions for training while using 4-hop questions for testing, targeting extrapolation. In our second experiment, we tar
157
+
158
+ Table 2: Substitutivity results.
159
+
160
+ <table><tr><td>Experiment</td><td>Acc.</td></tr><tr><td colspan="2">TRAIN: 2 AND 3-HOP. TEST: 4-HOP</td></tr><tr><td>Baseline</td><td>49.92±0.82</td></tr><tr><td>Disjoint</td><td>59.42±2.07</td></tr><tr><td>Grounded</td><td>61.79±0.52</td></tr><tr><td>Unidirectional</td><td>62.40±1.02</td></tr><tr><td>Bidirectional</td><td>62.05±0.91</td></tr><tr><td colspan="2">TRAIN: 2 AND 4-HOP. TEST: 3-HOP</td></tr><tr><td>Baseline</td><td>51.19±0.31</td></tr><tr><td>Disjoint</td><td>63.87±2.24</td></tr><tr><td>Grounded</td><td>66.10±2.02</td></tr><tr><td>Unidirectional</td><td>66.65±2.24</td></tr><tr><td>Bidirectional</td><td>66.29±1.25</td></tr><tr><td colspan="2">TRAIN: 3 AND 4-HOP. TEST: 2-HOP</td></tr><tr><td>Baseline</td><td>50.98±0.25</td></tr><tr><td>Disjoint</td><td>60.34±3.25</td></tr><tr><td>Grounded</td><td>62.32±1.98</td></tr><tr><td>Unidirectional</td><td>64.04±4.47</td></tr><tr><td>Bidirectional</td><td>63.03±3.76</td></tr></table>
161
+
162
+ Table 3: Productivity results.
163
+
164
+ get interpolation by training on an even amount of 2 and 4-hop questions while testing on 3-hops. For our last experiment, we target extrapolation to lower values, using a training split with an even amount of 3 and 4-hop questions while testing on 2-hops. For all three experiments, we generate 10 000 samples for training and 2 000 for testing.
165
+
166
+ Results The results of the productivity tests can be seen in Table 3. In general, we observe that all models struggle to extrapolate to both shorter and longer hops. We observe some generalization for the interpolation test, where the model has seen sequences both shorter and longer during training, but the overall absolute performance is still poor. This aligns with previous work, such as Lake and Baroni (2018) and Hupkes et al. (2020). We observe a tiny increase in performance with the more complex models compared to the simpler, disjoint model, but given the overall low scores and the variance, we do not think these results are significant. This indicates that adding a more complex interaction between the encoders does not provide any added benefit for extrapolation or interpolation.
167
+
168
+ # 5.3 Systematicity
169
+
170
+ In our last test, we evaluate to what extent our models can generalize systematically. This means that all unique 1-hop relations are seen during training in some $k$ -hop combination, but in the test data, we only include unseen combinations. For example, during training the models might see samples using the relations TAKES COURSE and
171
+
172
+ ![](images/10738a4e76ea540b1acc4de1b4e5248ec075dcaa6fd4343d2f1fa343585b795e.jpg)
173
+ Figure 3: Relationship between frequency of a $k$ -hop relation and the performance of the Disjoint model on these during testing. Each blue point corresponds to a tuple of $k$ relations for $k = 1,2,3$ . The orange lines are the linear regressions for each setting showing positive correlations between frequencies of $k$ -hop relations and performances of the Disjoint model.
174
+
175
+ ![](images/4fbdf814a10ededda6e908da8f49d0346c3c26da0b9aa37c372be46a513722dc.jpg)
176
+
177
+ ![](images/a75cd526d4e524697f521864c00404708a8917440e5ebf1da827813bcdf89ef7.jpg)
178
+
179
+ HASTEACHINGASSISTANT, and the 2-hop combination [TAKESCOURSE, HASTEACHINGASSISTANT], but in the test we target [HASTEACHINGASSISTANT, TAKESCOURSE]. Success at this task requires the model to learn that a 3-hop question, for example, consists of three individual parts that are combined, as opposed to encoding the entire sequence as one entity.
180
+
181
+ Test design With $k$ being 2, 3, or 4, we generate question-graph pairs with length $k$ . Then, for each $k$ , we randomly select a fraction of the available $k$ -length combinations of relations as our test combinations. We then separate the generated pairs into two parts: those who use the test combinations and those who do not. The former is saved as the test set. We note that the use of test combinations is not limited to the relations on the path between the head and tail entities targeted by the question, but any $k$ -hop path that exists between these entities. For the training set, we split the remaining possible combinations into five chunks and collect all samples that use these combinations. This leaves us with five different folds of the training set. Models are then trained on each fold independently, but evaluated on the same test set. We do this to control for the fact that some combinations of relations might have a similar distribution of samples as the relations picked out for the test set, making them better fits for that particular split.
182
+
183
+ As this tests out-of-distribution generalization, we argue that folding is better suited for finding the true performance and variance of the models than the more straightforward evaluation method used for our substitutivity and productivity experiments. The results are reported as the mean accuracy over all five folds.
184
+
185
+ Results The results of the systematicity tests can be seen in Table 4. As with the productivity tests, we see that there is no consistent display of generalization for any of the models across hops. We see, however, that for the 3-hops setting the two simpler models achieve some success on the task. As these models had the highest performance on the substitutivity test, we take this to indicate that additional architectural complexity does not provide any performance benefit for this type of generalization. We also note that it is possible that these experiments are sensible to the hyperparameters, and that the two simpler models happened to have a better fit for the 3-hop setting. We did not do a specific hyperparameter search per model for the systematicity experiments but relied on those from the initial hyperparameter search.
186
+
187
+ Overall, these results might come from undersampling, or it might be the case, as is reported in Hupkes et al. (2020), that the models are not able to construct useful representations of smaller syntactic units. We argue that our results further support the intuition from the substitutivity experiments: the models do not learn to create representations that correspond to each 1-hop relation, together with a function for combining them, but rather rely on memorization of whole combinations of relation types. For short-tailed distributions and some settings of hyperparameters this works, but it is not a robust solution to the general problem of matching the text questions to certain patterns in the graphs, illustrated by the significant drop in performance in these results.
188
+
189
+ We also see adjacent work on assessing compositional generalizations in LLMs to provide possible explanations for our results. Dziri et al. (2024) hypothesize that transformer-based models try to solve a highly compositional problem, like ours, by
190
+
191
+ <table><tr><td>Model</td><td>2-hop</td><td>3-hop</td><td>4-hop</td></tr><tr><td>Baseline</td><td>49.50±0.24</td><td>49.40±0.33</td><td>49.92±1.01</td></tr><tr><td>Disjoint</td><td>53.62±8.39</td><td>74.05±3.42</td><td>62.18±1.20</td></tr><tr><td>Grounded</td><td>60.02±3.22</td><td>75.68±3.27</td><td>64.96±1.39</td></tr><tr><td>Unidir.</td><td>64.24±0.75</td><td>57.12±1.81</td><td>64.10±3.62</td></tr><tr><td>Bidir.</td><td>64.15±1.10</td><td>60.37±2.31</td><td>63.72±3.63</td></tr></table>
192
+
193
+ Table 4: Systematicity results.
194
+
195
+ reducing it into linearized path matching. If this is the case, models do not learn the compositional rule needed to solve the task. If the samples from the test distribution only resemble the training distribution superficially, this pattern matching approach is not a viable solution for out-of-distribution generalization in both our productivity and systematicity experiments. In these experiments, the mapping from the input samples to output labels cannot be based on surface-form frequency, due to our balanced sampling, which could then explain the collapse in performance we are observing for these experiments.
196
+
197
+ # 6 Previous work
198
+
199
+ There have been numerous works on compositional generalization in neural networks (Andreas, 2019; Lake and Baroni, 2018; Kim and Linzen, 2020; Hupkes et al., 2020; Dankers et al., 2022b; Lake and Baroni, 2023; Dziri et al., 2024). Most similar to our work is Gu et al. (2021), which develops a large-scale dataset targeting aspects of compositional generalization using question answering over Wikidata. Both this work and similar efforts reformulate the problem of integrating the KG to a seq2seq task where the questions are first translated into an intermediate logical form, such as SPARQL, which can be executed over the KG (Shu et al., 2022). Under the same framework, Ravishankar et al. (2022) explicitly tests generalization to unseen combinations of relations in a similar fashion to our systematicity test. They too find that the performance tends to drop significantly for this setting.
200
+
201
+ The mapping from natural language to logical form can also use techniques from semantic parsing, a topic where compositionality is of special interest (Lindemann et al., 2023). Our work, however, is the first to target compositionality in a setup where the models learn representations of both text and graphs directly, without any logical form as an intermediate step. In contrast to previous work on grounded language models (Lin et al., 2019; Zhang
202
+
203
+ et al., 2020; Yasunaga et al., 2021; Zhang et al., 2022; Kaur et al., 2022; Sun et al., 2022), our methods can also more precisely quantify the effect of combining LMs with GNNs, as our sampling procedure ensures that the encoders can not achieve above random performance on their own, a property which we believe is unique to our approach.
204
+
205
+ # 7 Conclusion
206
+
207
+ Research on compositional generalization in neural networks has a long history. To the best of our knowledge, we provide the first experimental evaluation of compositional generalization in grounded LMs, using question answering over KGs as a task. Our results indicate that these models $i$ ) require large sample sizes and quickly lose generalization power as the complexity of the compositional structure increases, $ii$ ) struggle with extrapolation and interpolation to sequences of lengths not seen during training, and $iii$ ) cannot systematically generalize from seen base components to novel compositions given the sample sizes used in our experiments. We show this across a set of model architectures inspired by the literature. Our results are in line with previous work on compositional generalization in other domains and for other types of neural architectures. Overall, we believe our results show that grounded LMs do not display signs of structured reasoning over KGs and that there is still much to be done on the improvement of models that try to exploit external information stored as symbolic objects. This is the case not only for knowledge graphs but also for other types of data representations, such as tabular data. We hope our generation procedure and released datasets can help motivate future efforts at overcoming these challenges.
208
+
209
+ # Limitations
210
+
211
+ Models Our models are inspired by previous work. However, since our experimental setup differs from the original settings these models were implemented to work in, we had to make multiple simplifications. Consequently, we are not able to conclude anything about the abilities of the specific models from the literature, but rather about the general interaction approach they propose.
212
+
213
+ Question variety The questions in our dataset are formulated in English, and although they have more linguistic variety than similar studies from semantic parsing, such as Lake and Baroni (2018)
214
+
215
+ and Hupkes et al. (2020), we still use a rather limited version of the language, which is by design devoid of any metaphors, idioms, analogies and other constructs that would make compositionality more difficult to measure. It is not given that our results transfer to real language data.
216
+
217
+ # Acknowledgments
218
+
219
+ We acknowledge Sigma2, Norway, for awarding this project access to the LUMI supercomputer, owned by the EuroHPC Joint Undertaking, hosted by CSC (Finland) and the LUMI consortium.
220
+
221
+ # References
222
+
223
+ Jacob Andreas. 2019. Measuring compositionality in representation learning. In International Conference on Learning Representations.
224
+ Paul M. Churchland. 1990. Cognitive activity in artificial neural netowrks. An invitation to cognitive science: Thinking, 3:199-229.
225
+ Verna Dankers, Elia Bruni, and Dieuwke Hupkes. 2022a. The paradox of the compositionality of natural language: A neural machine translation case study. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4154-4175, Dublin, Ireland. Association for Computational Linguistics.
226
+ Verna Dankers, Christopher Lucas, and Ivan Titov. 2022b. Can transformer be too compositional? analysing idiom processing in neural machine translation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3608-3626, Dublin, Ireland. Association for Computational Linguistics.
227
+ 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.
228
+ Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, Sean Welleck, Peter West, Chandra Bhagavatula, Ronan Le Bras, et al. 2024. Faith and fate: Limits of transformers on compositionality. Advances in Neural Information Processing Systems, 36.
229
+ Jerry A Fodor and Zenon W Pylyshyn. 1988. Connectionism and cognitive architecture: A critical analysis. Cognition, 28(1-2):3-71.
230
+
231
+ Yu Gu, Sue Kase, Michelle Vanni, Brian Sadler, Percy Liang, Xifeng Yan, and Yu Su. 2021. Beyond iid: three levels of generalization for question answering on knowledge bases. In Proceedings of the Web Conference 2021, pages 3477-3488.
232
+ Yuanbo Guo, Zhengxiang Pan, and Jeff Heflin. 2005. Lubm: A benchmark for owl knowledge base systems. Journal of Web Semantics, 3(2-3):158-182.
233
+ Arian Hosseini, Ankit Vani, Dzmitry Bahdanau, Alessandro Sordoni, and Aaron Courville. 2022. On the compositional generalization gap of in-context learning. In Proceedings of the Fifth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 272-280, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics.
234
+ Dieuwke Hupkes, Verna Dankers, Mathijs Mul, and Elia Bruni. 2020. Compositionality decomposed: How do neural networks generalise? Journal of Artificial Intelligence Research, 67:757-795.
235
+ Jivat Kaur, Sumit Bhatia, Milan Aggarwal, Rachit Bansal, and Balaji Krishnamurthy. 2022. LM-CORE: Language models with contextually relevant external knowledge. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 750-769, Seattle, United States. Association for Computational Linguistics.
236
+ Daniel Keysers, Nathanael Scharli, Nathan Scales, Hylke Buisman, Daniel Furrer, Sergii Kashubin, Nikola Momchev, Danila Sinopalnikov, Lukasz Stafiniak, Tibor Tihon, Dmitry Tsarkov, Xiao Wang, Marc van Zee, and Olivier Bousquet. 2020. Measuring compositional generalization: A comprehensive method on realistic data. In International Conference on Learning Representations.
237
+ Najoung Kim and Tal Linzen. 2020. COGS: A compositional generalization challenge based on semantic interpretation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 9087-9105, Online. Association for Computational Linguistics.
238
+ Brenden M. Lake and Marco Baroni. 2018. Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks.
239
+ Brenden M. Lake and Marco Baroni. 2023. Human-like systematic generalization through a meta-learning neural network. Nature, 623(7985):115-121.
240
+ Bill Yuchen Lin, Xinyue Chen, Jamin Chen, and Xiang Ren. 2019. KagNet: Knowledge-aware graph networks for commonsense reasoning. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2829-2839, Hong Kong, China. Association for Computational Linguistics.
241
+
242
+ Matthias Lindemann, Alexander Koller, and Ivan Titov. 2023. Compositional generalisation with structured reordering and fertility layers. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 2172-2186, Dubrovnik, Croatia. Association for Computational Linguistics.
243
+ Peter Pagin and Dag Westerstahl. 2010. Compositionality i: Definitions and variants. Philosophy Compass, 5(3):250-264.
244
+ Barbara Partee et al. 1995. Lexical semantics and compositionality. An invitation to cognitive science: Language, 1:311-360.
245
+ Parikshit Ram, Tim Klinger, and Alexander G. Gray. 2023. How compositional is a model? In International Joint Conference on Artificial Intelligence 2023 Workshop on Knowledge-Based Compositional Generalization.
246
+ Srinivas Ravishankar, Dung Thai, Ibrahim Abdelaziz, Nandana Mihindukulasooriya, Tahira Naseem, Pavan Kapanipathi, Gaetano Rossiello, and Achille Fokoue. 2022. A two-stage approach towards generalization in knowledge base question answering. In *Findings of the Association for Computational Linguistics: EMNLP* 2022, pages 5571–5580, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
247
+ Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne Van Den Berg, Ivan Titov, and Max Welling. 2018. Modeling relational data with graph convolutional networks. In *The Semantic Web: 15th International Conference, ESWC* 2018, Heraklion, Crete, Greece, June 3-7, 2018, Proceedings 15, pages 593-607. Springer.
248
+ Yiheng Shu, Zhiwei Yu, Yuhan Li, Börje Karlsson, Tingting Ma, Yuzhong Qu, and Chin-Yew Lin. 2022. TIARA: Multi-grained retrieval for robust question answering over large knowledge base. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8108-8121, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
249
+ Paul Smolensky. 1987. Connectionist ai, symbolic ai, and the brain. Artificial Intelligence Review, 1(2):95-109.
250
+ Yueqing Sun, Qi Shi, Le Qi, and Yu Zhang. 2022. JointLK: Joint reasoning with language models and knowledge graphs for commonsense question answering. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5049-5060, Seattle, United States. Association for Computational Linguistics.
251
+ Zoltán Genderler Szabó. 2022. Compositionality. In Edward N. Zalta and Uri Nodelman, editors, The Stanford Encyclopedia of Philosophy, Fall 2022 edition. Metaphysics Research Lab, Stanford University.
252
+
253
+ Xiaoyan Wang, Pavan Kapanipathi, Ryan Musa, Mo Yu, Kartik Talamadupula, Ibrahim Abdelaziz, Maria Chang, Achille Fokoue, Bassem Makni, Nicholas Mattei, et al. 2019. Improving natural language inference using external knowledge in the science questions domain. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 7208-7215.
254
+ Sondre Wold, Lilja Øvrelid, and Erik Velldal. 2023. Text-to-KG alignment: Comparing current methods on classification tasks. In Proceedings of the First Workshop on Matching From Unstructured and Structured Data (MATCHING 2023), pages 1-13, Toronto, ON, Canada. Association for Computational Linguistics.
255
+ Michihiro Yasunaga, Antoine Bosselut, Hongyu Ren, Xikun Zhang, Christopher D Manning, Percy Liang, and Jure Leskovec. 2022. Deep bidirectional language-knowledge graph pretraining. In Advances in Neural Information Processing Systems.
256
+ Michihiro Yasunaga, Hongyu Ren, Antoine Bosselut, Percy Liang, and Jure Leskovec. 2021. QA-GNN: Reasoning with language models and knowledge graphs for question answering. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 535-546, Online. Association for Computational Linguistics.
257
+ Donghan Yu, Chenguang Zhu, Yiming Yang, and Michael Zeng. 2022. Jaket: Joint pre-training of knowledge graph and language understanding. Proceedings of the AAAI Conference on Artificial Intelligence, 36(10):11630-11638.
258
+ Houyu Zhang, Zhenghao Liu, Chenyan Xiong, and Zhiyuan Liu. 2020. Grounded conversation generation as guided traverses in commonsense knowledge graphs. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2031-2043, Online. Association for Computational Linguistics.
259
+ Xikun Zhang, Antoine Bosselut, Michihiro Yasunaga, Hongyu Ren, Percy Liang, Christopher D Manning, and Jure Leskovec. 2022. GreaseLM: Graph REASoning enhanced language models. In International Conference on Learning Representations.
260
+
261
+ # A Dataset generation
262
+
263
+ # A.1 LUBM
264
+
265
+ We use the LUBM UBA to generate knowledge graphs on the fly. We limit our graphs to the following entity types: Professor, AssociateProfessor, UndergraduateStudent, GraduateStudent, TeachingAssistant, Publication, Course; and the following relations: PUBLICATIONAUTHOR, TEACHEROF, ADVISOR, TAKESCOURSE, TEACHINGASSISTANTOF. We also add reverse edges with reverse relations for all of these to create more diverse question types in our final dataset, making $|\mathcal{R}_{LUBM}^{\prime}| = 10$ . We remove all literals. Using a sample size of approximately 14000, we create graphs that have $\mu = 685$ , $\sigma = 77.16$ nodes and $\mu = 4949$ , $\sigma = 532$ edges after processing.
266
+
267
+ # A.2 Statistics
268
+
269
+ ![](images/81adfba236d19aa9a51be36fad045a472638f20f1d072b1b532033d949364823.jpg)
270
+ Figure 4: The relative percentage of each unique relation path to the total for 2, 3, and 4-hops.
271
+
272
+ The number of possible combinations of relations on the edges in a $k$ -hop path increases with the number of hops. As our sampling procedure uses 10 distinct relations we have $10^{k}$ theoretical combinations of relations for any $k$ -hop path. As our graphs are committed to the LUBM ontology the number of relations that hold between two entity types is much lower.
273
+
274
+ # A.3 Sampling procedure
275
+
276
+ Given a directed multigraph $G = (\mathcal{V}, \mathcal{E})$ with labeled entities $v_i \in \mathcal{V}$ and labeled edges $(v_i, r, v_j) \in \mathcal{E}$ where $r \in \mathcal{R}$ is a relation, we sample a positive and negative example for a $k$ -hop path using the following procedure:
277
+
278
+ 1. Sample two pairs of nodes $(s_{+}$ and $e_+$ ) and $(s_{-}$ and $e_{-})$ from $\mathcal{V}$ with uniform probability, making sure that $s_{+} \neq s_{-}$ or $e_{+} \neq e_{-}$ , that $s_{+}$ and $s_{-}$ are of the same entity type, and that $e_{+}$ and $e_{-}$ are of the same entity type.
279
+ 2. Let $R_{+}$ be the set of all relation paths of length $k$ from $s_{+}$ to $e_{+}$ .
280
+ 3. Let $R_{-}$ be the set of all relation paths of length $k$ from $s_{-}$ to $e_{-}$ .
281
+ 4. Let $P_{+}$ be the set $R_{+} \setminus R_{-}$
282
+ 5. Let $P_{-}$ be the set $R_{-} \setminus R_{+}$
283
+ 6. If $P_{+} \neq \emptyset$ and $P_{-} \neq \emptyset$ :
284
+
285
+ (a) Sample a relation path $q\colon q\sim \mathcal{U}(P_{+})$
286
+ (b) Return the triple $(q, s_{+}, e_{+})$ as a positive example and $(q, s_{-}, e_{-})$ as a negative example.
287
+
288
+ This procedure returns a $k$ -hop relation path, $q$ , that holds between $s_{+}$ and $e_{+}$ but not between $s_{-}$ and $e_{-}$ . However, we also make sure that there are paths that hold between $s_{-}$ and $e_{-}$ but not $s_{+}$ and $e_{+}$ , ensuring symmetry.
289
+
290
+ In addition, we shuffle entities labels while preserving entity types before running this procedure since the LUBM generator introduces problematic patterns with its entity numbering. For example, in the original graph, Professor1 is more likely to author Paper1 than Paper5. By randomly exchanging the labels of Paper1 and Paper5, we ensure the models cannot exploit this regularity.
291
+
292
+ # B Models
293
+
294
+ # B.1 Parameters
295
+
296
+ All our combined models have a total of $\approx 141000000$ parameters, with the majority of them coming from the language model. Our baseline has $\approx 30000000$ .
297
+
298
+ # B.2 Computation infrastructure
299
+
300
+ All the experiments ran on the LUMI supercomputer, using a single AMD MI250X GPU. Running all the experiments reported in the paper has a total computing budget of approximately 150 hours.
301
+
302
+ # B.3 Hyperparameters
303
+
304
+ We tune the learning rate for the text encoder from $\{1 \times 10^{-6}, 1 \times 10^{-5}, 2 \times 10^{-5}, 3 \times 10^{-5}, 5 \times 10^{-5}\}$ , the graph encoder module from $\{2 \times 10^{-4}, 5 \times 10^{-4}, 1 \times 10^{-3}, 2 \times 10^{-3}, 1 \times 10^{-5}\}$ , and the MLP module from $\{1 \times 10^{-4}, 1 \times 10^{-5}\}$ ; the dropout value from $\{0.1, 0.2, 0.3\}$ and the epochs from $\{5, 8, 10\}$ , with no early stopping. The hyperparameters are tuned on a development set targeting the substitutivity task with an equal mix of 2, 3, and 4-hop questions. We run 60 trials for each of the five model configurations and sample a random combination of these parameters for each trial, selecting the best combination for our experiments. We find that all models perform the best with no decay on the learning rate.
305
+
306
+ <table><tr><td>Hyperparameter</td><td>BASELINE</td><td>DISJOINT</td><td>GROUNDED</td><td>UNIDIRECTIONAL</td><td>BIDIRECTIONAL</td></tr><tr><td>LM lr</td><td>-</td><td>0.00001</td><td>0.00001</td><td>0.00001</td><td>0.00001</td></tr><tr><td>GNN lr</td><td>0.00001</td><td>0.0005</td><td>0.0005</td><td>0.00005</td><td>0.0005</td></tr><tr><td>MLP lr</td><td>0.00001</td><td>0.0001</td><td>0.0001</td><td>0.0001</td><td>0.0001</td></tr><tr><td>Dropout</td><td>0.3</td><td>0.3</td><td>0.3</td><td>0.3</td><td>0.3</td></tr><tr><td>Epochs</td><td>5</td><td>8</td><td>8</td><td>8</td><td>8</td></tr></table>
307
+
308
+ Table 5: Variable training hyperparameters for all five model configurations
309
+
310
+ <table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Pre-trained LM</td><td>bert-base-uncased (Devlin et al., 2019)</td></tr><tr><td>LM hidden size</td><td>768</td></tr><tr><td>GNN hidden size</td><td>768</td></tr><tr><td>GNN layers</td><td>4</td></tr><tr><td>Batch size</td><td>16</td></tr><tr><td>Sequence length</td><td>64</td></tr><tr><td>Learning rate decay</td><td>constant</td></tr><tr><td>Optimizer</td><td>AdamW</td></tr></table>
311
+
312
+ Table 6: Constant training hyperparameters for all five model configurations
2024/Compositional Generalization with Grounded Language Models/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55d48b687c0254e4c08c620b9c31dbf3a82f02edc49e84b90cc7db7561457702
3
+ size 328811
2024/Compositional Generalization with Grounded Language Models/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/d3a0bf80-2ed5-4819-92c1-efa029bb2503_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/d3a0bf80-2ed5-4819-92c1-efa029bb2503_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/d3a0bf80-2ed5-4819-92c1-efa029bb2503_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0f021a595f2ec859c8989b09baf1668c4c46aa6d4c69f527b85408f7a1569aa
3
+ size 1031179
2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/full.md ADDED
@@ -0,0 +1,401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought
2
+
3
+ Longyin Zhang $^{1}$ , Bowei Zou $^{1}$ , Jacintha Wee Yun $\mathbf{Yi}^{1,2*}$ , Ai Ti $\mathbf{A}\mathbf{w}^{1}$
4
+
5
+ 1. Institute for Infocomm Research, A*STAR, Singapore
6
+
7
+ 2. Nanyang Technological University, Singapore
8
+
9
+ {zhang_longyin,zou_bowei,aaiti}@i2r.a-star.edu.sg
10
+
11
+ jaci0003@e.ntu.edu.sg
12
+
13
+ # Abstract
14
+
15
+ Real-world news comments pose a significant challenge due to their noisy and ambiguous nature, which complicates their modeling for clustering and summarization tasks. Most previous research has predominantly focused on extractive summarization methods within specific constraints. This paper concentrates on Clustering and Abstractive Summarization of online news Comments (CASC). First, we introduce an enhanced fast clustering algorithm that maintains a dynamic similarity threshold to ensure the high density of each comment cluster being built. Moreover, we pioneer the exploration of tuning Large Language Models (LLMs) through a chain-of-thought strategy to generate summaries for each comment cluster. On the other hand, a notable challenge in CASC research is the scarcity of evaluation data. To address this problem, we design an annotation scheme and contribute a manual test suite tailored for CASC. Experimental results on the test suite demonstrate the effectiveness of our improvements to the baseline methods. In addition, the quantitative and qualitative analyses illustrate the adaptability of our approach to real-world news comment scenarios.
16
+
17
+ # 1 Introduction
18
+
19
+ With the continued development of handheld devices and the boom of social media, the proliferation of online news is swift and relentless. This has fueled heightened interest among researchers on the topic of public opinion analysis, including tasks like opinion mining (Barker et al., 2016a; Pecar, 2018; Gao et al., 2019; Yang et al., 2019; Huang et al., 2023), sensitive comments detection (Pavlopoulos et al., 2017; Chowdhury et al., 2020; Moldovan et al., 2022; Sousa and Pardo, 2022), and news comments summarization (Khabiri et al., 2011; Dalal and Zaveri,
20
+
21
+ 2013; Aker et al., 2016; Žagar and Robnik-Sikonja, 2021). This study concentrates on the Clustering and Abstractive Summarization of online news Comments (CASC). While the past decade has witnessed substantial progress in text summarization across diverse frameworks (Rush et al., 2015; Liu et al., 2015; Yasunaga et al., 2017; See et al., 2017; Lewis et al., 2020; Wang et al., 2021, 2022; Ouyang et al., 2022; OpenAI, 2023), research specifically targeting CASC remains scarce.
22
+
23
+ Comment summarization involves extracting a collection of comments either by selecting sentences directly from the comments, referred to as extractive comment summarization, or by compressing the original comments through generative techniques for abstractive summarization. While previous studies have explored a methodology of initially clustering comments into distinct groups followed by summarization (Khabiri et al., 2011; Ma et al., 2012; Llewellyn et al., 2016; Barker et al., 2016b; Pecar, 2018; Žagar and Robnik-Sikonja, 2021), these endeavors have focused on extractive summarization. Our investigation of Reddit comments reveals a spectrum of characteristics influenced by context, platform, and user demographics. In particular, these comments exhibit diversity in style, length, level of detail, and relevance to the contextual discussion, posing significant challenges for summarization using extractive approaches.
24
+
25
+ In this status quo, this work focuses on abstractive comment summarization with the goal of providing well-organized and extensive coverage of user comments across diverse topics. We confront two main challenges: Firstly, the CASC task, in its nascent phase, suffers from a lack of a formal task definition, an open-source evaluation scheme, and accessible data. This absence largely hinders the expeditious and streamlined evaluation of diverse methods, models, or algorithms. Secondly, although recent Large Language Models (LLMs) have achieved impressive performance in text sum
26
+
27
+ marization (Zhang et al., 2022; Chung et al., 2022; Touvron et al., 2023a; Ouyang et al., 2022; OpenAI, 2023), there are still limitations when applying such LLMs to CASC. On the one hand, online comments on trending topics can be lengthy, surpassing the strict input sequence length constraints of existing foundational models. On the other hand, while existing LLMs excel as text generators, their efficacy in clustering remains underdeveloped.
28
+
29
+ In this paper, we propose a novel task on abstractive news comment summarization to address the aforementioned challenges. Our contributions encompass three points:
30
+
31
+ - This paper introduces a straightforward yet effective comment clustering algorithm, coupled with a task-specific ranking mechanism, to dynamically adjust the similarity threshold for comment clustering and rank candidate clusters based on both their density and topical relevance. This method ensures that each comment cluster yields high compactness and discernibleness.
32
+ - Based on the clustering algorithm, we propose harnessing moderate-scale LLMs for comment cluster summarization. Particularly, we fine-tune the model through a chain-of-thought manner to first predict aspect terms (ATs) for each comment cluster and then perform AT-based summarization.
33
+ - In particular, this work contributes the first annotation scheme and manual test suite tailored for CASC. Notably, different from previous works on topic-based clustering (Khabiri et al., 2011; Ma et al., 2012), we introduce the concept of aspect-based comment clusters to restrict the granularity of each cluster quantitatively.
34
+
35
+ Quantitative experiments and qualitative analysis of the proposed CASC system demonstrate the effectiveness of our improvements over the baseline systems. Moreover, a real-scenario case study further indicates the practicability of our approach.
36
+
37
+ # 2 Related Work
38
+
39
+ Comment cluster summarization. Previous research on comment cluster summarization can be categorized into three main groups: some solely study comment clustering (Aker et al., 2016; Llewellyn et al., 2016), others focus on summarizing comment clusters in different forms (Dalal and Zaveri, 2013; Barker et al., 2016a; Gao et al.,
40
+
41
+ 2019; Huang et al., 2023), while a third group explores both clustering and summarization of news comments (Khabiri et al., 2011; Hsu et al., 2011; Llewellyn et al., 2014; Barker et al., 2016b; Žagar and Robnik-Sikonja, 2021). Our study falls within the latter category that emphasizes both clustering and summarization of comments.
42
+
43
+ Previous studies of (Khabiri et al., 2011; Ma et al., 2012) are the first to explore extractive summarization of comment clusters, which first group comments into clusters under different topics and then extract comments from each cluster to form the summary. Hsu et al. (2011) alternatively proposed a hierarchical clustering method to summarize YouTube comments based on comment term normalization and key term extraction. Subsequently, Llewellyn et al. (2014) conducted a comprehensive comparison of various clustering methods, including topic-driven clustering, keyword-based clustering, k-means, and cosine distance, demonstrating the superior performance of topic-driven clustering in producing comment clusters suitable for extractive summarization.
44
+
45
+ However, the above topic-oriented approaches often assume that the resulting summary, derived from topically clustered and extracted comments, aligns with user preferences and presents the crux of the discussed matters. Such assumptions may not always hold. Recognizing this problem, Barker et al. (2016b) conducted a series of data analyses and argued that a good comment summary should not only convey the central issues discussed but also encapsulate the opinions surrounding those issues, suggesting that a good summary should cover finer-grained information beyond just topics. In order to capture more informative comment representations, Žagar and Robnik-Sikonja (2021) proposed to utilize neural sentence embedding methods for extractive summarization of comment clusters. Despite these efforts have been made in comment cluster summarization, all previous works concentrated on extractive summarization, while the abstractive CASC task is largely unexplored. In this paper, we aim to conduct an in-depth study of CASC to fill the gap in this field.
46
+
47
+ LLM-based summarization. The recent popular LLMs (Zhang et al., 2022; Chung et al., 2022; Touvron et al., 2023a; Ouyang et al., 2022; OpenAI, 2023) have achieved impressive performance in many NLP tasks including text summarization. Notably, the recent paper (Pu et al., 2023) argues
48
+
49
+ that "summarization is almost dead". In this LLM era, our stance is that summarizing large-scale online user comments remains a challenge even for state-of-the-art (SoTA) foundation models for two reasons: (1) The strict input sequence length limitation of current foundation models makes it infeasible to take all comments as inputs for CASC; (2) Current LLMs are usually pre-trained on text generation tasks, their clustering abilities are far from perfect. Moreover, the quality of text clustering is intricately related to user preference, which is hard to describe using a textual prompt. Our work contributes to building a CASC test suite with user-preferred summaries, which aligns with the new horizons discussed in (Pu et al., 2023).
50
+
51
+ # 3 CASC Test Suite
52
+
53
+ This section introduces the proposed annotation scheme coupled with the manually built test suite for CASC evaluation. Diverging from conventional comment clustering works where the comments are clustered based on the coarse-grained topics, this study focuses more on the finer aspect terms within each news comment. In this paper, we introduce a concept of Comment Aspect Term (CAT), which refers to primary objects of the entire discourse, either extracted or abstracted to represent the central focus. The aspect terms serve as the focal points of explicit or implicit opinion expression within the comment. For example, in the following comment, The current Russian government doesn't represent us, and we definitely don't want a war with our closest people., the CATs are determined as the current Russian government and the war, and the comment is expressing disapproval towards the CATs.
54
+
55
+ With the above background, we formulate the CASC annotation process in three stages: comment aspect term annotation, comment cluster construction, and comment cluster summarization, as detailed below.
56
+
57
+ CAT annotation. The process of annotating CAT presents two challenges: (1) Since aspect terms can be either extracted or abstracted from the original comment, it is difficult to control the granularity of each annotated CAT; (2) User comments usually suffer from unclear reference caused by ellipsis or co-reference, which is hard to avoid when reading each comment independently. The two issues may essentially reduce the annotation consistency.
58
+
59
+ In this work, we allow the case that each comment has multiple $CATs$ , but we impose a quan
60
+
61
+ titative limit of fewer than 10 words to control granularity. Moreover, to better cover the meaning of each comment, the annotators are instructed to read comments chronologically and refer to the pre-context when labeling aspect terms. The scope of permissible context for reference is limited to a single comment tree (the comment-reply structure). To ensure the quality of annotations and discern optimal candidates, we establish the following rules: (1) Preference is given to CATs directly extracted from the original comment rather than artificially induced ones; (2) When CATs convey the same meaning, we prefer using the same textual expression; (3) Aspect terms are not labeled for comments without opinion expression or those devoid of practical meaning.
62
+
63
+ As aspect term annotation inherently involves subjective judgment from annotators, we estimate the consistency of $CAT$ annotation by comparing the annotations of 200 news comments between two annotators. We approximate consistency by calculating the word-level coverage between each pair of summaries, resulting in a score of $43.67\%$ .
64
+
65
+ Comment cluster annotation. Manually clustering a large volume of comments from scratch, depending on the limited memory of human annotators, is time-consuming and challenging, fraught with difficulties in ensuring annotation quality. As stated before, we study clustering comments based on aspect terms. Specifically, we consider semantic affinity inferred from the frequency of word co-occurrence between $CATs$ as a reliable indicator of similarity. First, we represent each comment by averaging the GloVe vectors within the manually annotated aspect terms. Then, the comments are clustered based on the cosine distance between aspect term representations through fast clustering with a high similarity threshold of 0.85. Comments lacking manual aspect terms are assigned to a single unique cluster, labeled as Trivial. Lastly, annotators manually check the correctness of these clusters according to the following guidelines: (1) Given a cluster $G = \{c_1,\dots ,c_N\}$ with $N$ comments, if the aspect terms and content of $c_{k}$ significantly differ from others in the cluster, exclude $c_{k}$ from $G$ and assign it to a suitable comment cluster or the Trivial group. (2) If cluster $G_{i}$ shares a
66
+
67
+ closely related topic with cluster $G_{j}$ , combine them into a unified cluster. (3) Check comments annotated with aspect terms in the Trivial group to determine if they can be reallocated to an existing non-Trivial cluster.
68
+
69
+ Comment summary annotation. Text summarization annotation has long been contentious, primarily due to the inherent subjectivity of annotators, which can easily influence the standard of summary annotation. Recent studies (Goyal et al., 2022; Zhang et al., 2023; Yang et al., 2023; Pu et al., 2023) have demonstrated that LLM summarizers can perform on par with or better than human summarizers. Among them, the research in (Pu et al., 2023) shows that when quantitatively and qualitatively assessed against human annotators, LLM summaries with increased factuality are notably favored by human evaluators. Inspired by this, we transition from manual summary annotation to LLM-assisted summary annotation. Specifically, based on the manually adjusted comment clusters, we first use GPT3.5 to generate an LLM summary for each comment cluster. Then, we manually post-edit the summaries and refine those suffering from hallucinations to produce the final test suite.
70
+
71
+ Annotated data overview. Based on comments of news articles sourced from Reddit and New York Times 2017, our annotated dataset contains 11 article clusters (ACs) covering various topics, which involve a total of 20 news articles and 7,958 comments. Guided by our annotation guidelines and with the assistance of four annotators, we constructed 848 comment clusters (CCs) along with their corresponding summaries. Further details are shown in Table 1.
72
+
73
+ <table><tr><td>Dataset</td><td>Comments (#)</td><td>CCs (#)</td><td>ACs (#)</td></tr><tr><td>DEV</td><td>2,532</td><td>350</td><td>3</td></tr><tr><td>TEST</td><td>5,426</td><td>498</td><td>8</td></tr></table>
74
+
75
+ Table 1: Statistics for the constructed test suite.
76
+
77
+ # 4 Approach
78
+
79
+ Task definition. Given a group of $m$ news articles under the same topic, $A = \{a_{1},\ldots ,a_{m}\}$ , the articles contain a group of $n$ comments in total, $C = \{c_1,\dots ,c_n\}$ , which comment on the articles from various aspects. Each comment yields a flexible length distribution ranging from a short sentence to a paragraph. The CASC task first groups
80
+
81
+ the $n$ news comments into a set of $k$ comment clusters, $G_{1},\ldots ,G_{k}$ , and each cluster represents a hot topic discussed by the netizens. Subsequently, a summary is abstracted for each comment cluster represented by $S_{1},\ldots ,S_{k}$ .
82
+
83
+ # 4.1 Comment Clustering
84
+
85
+ Baseline method. We employ the fast clustering algorithm (Reimers and Gurevych, 2019) $^3$ as our baseline approach for comment clustering, which offers advantages over classical clustering techniques such as K-Means and Affinity Propagation and provides faster processing times while delivering superior performance. Operating on a cosine-similarity threshold coupled with SBERT sentence representation, it retrieves and ranks local communities with highly similar sentences greedily. Tailored for CASC, this paper seeks improvements to the baseline method from the following two aspects for more robust comment clustering.
86
+
87
+ Dynamic comment clustering. Our investigation reveals that comment clusters with hot topics tend to attract more user comments, yielding high comment densities, while those tackling less popular topics exhibit relatively sparse clusters. However, the baseline algorithm maintains a static similarity threshold throughout clustering, which struggles to adapt to fluctuating distributions of comment cluster densities. This paper argues that an adaptive dynamic threshold according to the scale of each comment cluster is more practical. Algorithm 1 shows our core clustering algorithm in pseudocode. As cluster scale increases $(+ \Delta)$ , the similarity threshold increases accordingly, resulting in a higher cluster density. Drawing inspiration from increasing the similarity threshold in the early stage of dynamic clustering to ensure denser comment clusters, this paper proposes a dynamic similarity threshold adjustment process based on a concave function. Formally, the algorithm automatically adjusts the threshold by fitting the following function:
88
+
89
+ $$
90
+ \varsigma_ {t} = \sqrt {\mathrm {K} _ {1} \times \left(\kappa_ {t} + \mathrm {K} _ {2}\right)} \tag {1}
91
+ $$
92
+
93
+ where $\kappa_{t}$ denotes the cluster size, $s_t$ denotes the similarity threshold, and $\mathrm{K}_1$ and $\mathbf{K}_2$ refer to the hyper-parameters to tune on the DEV set.
94
+
95
+ Cluster ranking. The vanilla algorithm maintains a static similarity threshold to ensure that the distance between comments within each cluster is
96
+
97
+ below the threshold. However, this algorithm may still lead to redundancy as some comments may be shared across different clusters. Then, the clusters are ranked with the redundant comments filtered out for final clustering. The baseline method ranks candidate clusters solely based on cluster size, which is not comprehensive enough. This limitation is particularly evident in CASC, where user preference is more focused on both topic relevancy and cluster compactness. Different from the baseline method, we argue that cluster density and relevance between the cluster and article background $^4$ are vital for CASC. With this motivation, we introduce a new ranking mechanism as:
98
+
99
+ $$
100
+ R _ {t} = \Sigma_ {i} ^ {n} \operatorname {c o s i n e} \left(c _ {i}, c _ {t}\right) \times \max \left(\log \left(\xi_ {t} + 1\right), 0. 1\right)
101
+ $$
102
+
103
+ where $c_{t}$ denotes the centroid comment of the $t$ -th cluster, $\xi_{t}$ denotes the stem word intersection between the centroid comment and the background, and $R_{t}$ refers to the resulting ranking score. Notably, the first term in the formula can be regarded as the product of the cluster size and the cluster density. Therefore, our ranking scheme considers the cluster size, density, and the correlation between the cluster and background concurrently.
104
+
105
+ # 4.2 Summarization of Comment Clusters
106
+
107
+ With the rapid development of foundation models (Zhang et al., 2022; Chung et al., 2022; Touvron et al., 2023a; Ouyang et al., 2022; OpenAI, 2023), researchers increasingly recognize the effectiveness of LLMs across various NLP tasks. With this inspiration, we study adapting the compact yet effective Flan_T5 XL (3B) (abbr. FTX) as a benchmark summarization system to fill the gap of foundation models in CASC.
108
+
109
+ Instruction-tuning. In line with our human annotation efforts, we aim to enhance the foundation model's capability to summarize each comment cluster by focusing on the aspect terms central to each cluster. With this goal, we design instruction-tuning data in a chain-of-thought style to tune LLMs to extract aspect terms from a comment cluster and then abstract the summary by considering the extracted aspect terms and comment texts. However, manual annotation of such tuning
110
+
111
+ Algorithm 1 Dynamic Fast Clustering
112
+
113
+ Input: $N$ vectorized news comments $C$
114
+
115
+ Output: A list of comment clusters $G$
116
+
117
+ Initialization: initial cluster size: $\kappa$ , initial threshold: $\varsigma$ , ceiling threshold: $thrM = 0.9$
118
+
119
+ Begin
120
+
121
+ for $t$ -th comment $c_t$ in $C$ do
122
+
123
+ scores $\leftarrow$ pairwise_cos_sim(c_t,C)
124
+
125
+ scores-k← scores.top-k(κ)
126
+
127
+ $\varsigma^{\prime}\gets \varsigma$
128
+
129
+ while scores-k[-1] > $\varsigma'$ and $\kappa < N$ do
130
+
131
+ $\kappa \gets \operatorname{Min}(N, \kappa + \Delta)$
132
+
133
+ $\varsigma^{\prime}\gets \mathrm{Min}(\sqrt{\mathrm{K}_{1}\times(\kappa + \mathrm{K}_{2})},thrM)$
134
+
135
+ scores-k← scores.top-k(κ)
136
+
137
+ end while
138
+
139
+ $G_{t}\gets []$
140
+
141
+ for $s_i$ in scores-k do
142
+
143
+ $G_{t}\gets G_{t}\cup \{c_{i}\}$ when $s_i\geq \varsigma '$
144
+
145
+ end for
146
+
147
+ $G\gets G\cup \{G_t\}$
148
+
149
+ Calculate the ranking score $R_{t}$
150
+
151
+ end for
152
+
153
+ Rank the $N$ clusters in $G$ based on $R_{1\dots N}$
154
+
155
+ End
156
+
157
+ data is labor-intensive and time-consuming. Besides, recent research suggests that current SoTA foundation models perform annotation on par with or better than human (Goyal et al., 2022; Zhang et al., 2023; Yang et al., 2023; Pu et al., 2023). Inspired by this, we automatically build comment clusters from Reddit comments (excluding those in the test suite) and utilize the publicly available gpt-3.5-turbo to build the instruction-tuning data. In particular, to strengthen the model's capability in chained aspect term and summary generation, we transform each tuning instance into three forms with hybrid learning goals: (1) Given clustered news comments, tune the LLM model to predict aspect terms for each comment cluster; (2) Given the comment cluster along with the aspect terms that the cluster is centered on, tune the model to generate a summary for the cluster; (3) Given the comment cluster, tune the model to predict aspect terms first and then generate a summary based on the predicted aspect terms and the comments within the comment cluster. In total, we obtain 26,438 tuning instances, consisting of 25,438 instances for tuning and 1,000 for validation.
158
+
159
+ Hallucination alleviation. Upon manual examination, it was discovered that $28\%$ of the com
160
+
161
+ ment cluster summaries generated by our finetuned LLM model suffer from hallucinations. This phenomenon arises primarily due to the model's inability to grasp the context of the original articles being commented on. To solve this issue, we harness the in-context learning capability of the pretrained LLM and include background information for comment cluster ranking (see Subsection 4.1) as part of the prompt.
162
+
163
+ # 5 Experiments
164
+
165
+ # 5.1 Evaluation Metrics
166
+
167
+ This research evaluates CASC from three aspects: comment clustering, comment cluster summarization, and pipeline evaluation.
168
+
169
+ Clustering. This work considers both the homogeneity and completeness levels between the gold and predicted clusters by reporting the Normalised Mutual Information (NMI) score $\frac{2\times I(C;L)}{H(C) + H(L)}$ as performance, where $C$ refers to the class labels, $L$ refers to the cluster labels, $H(\cdot)$ is the entropy function, and $I(C;L)$ denotes the mutual information between the two group of labels $C$ and $L$ .
170
+
171
+ Summarization. For comment cluster summarization evaluation, we take the gold standard comment clusters as inputs to generate summaries. Afterward, we calculate the F1-based Rouge-1, -2, and -L scores (ROUGE-1.5.5) between the generated summaries and the ground truth as performance.
172
+
173
+ Pipeline evaluation. In the pipeline system, the automatic clustering process could result in mismatches between predicted and standard clusters, making the pipeline evaluation hard to realize. This work introduces a scheme for CASC evaluation. Initially, we define a correct hit as when a predicted summary closely matches the ground truth with a cosine similarity exceeding 0.9 (see examples in Appendix C). On this basis, we report precision (P), recall (R), and F1 scores of the correct hits as the CASC performance.
174
+
175
+ # 5.2 Clustering Results
176
+
177
+ For comment clustering, we compare our approach with the following four baseline methods.
178
+
179
+ <table><tr><td>Method</td><td>NMI</td></tr><tr><td>K-Means (MacQueen et al., 1967)</td><td>22.61</td></tr><tr><td>Affinity Propagation (Frey and Dueck, 2007)</td><td>32.04</td></tr><tr><td>TC (Llewellyn et al., 2014)</td><td>17.92</td></tr><tr><td>FC (Reimers and Gurevych, 2019)</td><td>32.24</td></tr><tr><td>Dynamic FC</td><td>32.84</td></tr><tr><td>+ Cluster Density</td><td>33.07</td></tr><tr><td>+ Cluster Density + BG</td><td>33.87</td></tr></table>
180
+
181
+ Table 2: Performance of comment clustering. BG denotes the background information. FC and TC are abbreviations for fast clustering and topic-focused clustering.
182
+
183
+ - K-Means (MacQueen et al., 1967) is a traditional approach that alternatively moves comments to the nearest comment cluster centers and updates these centers accordingly. The value of K, representing the number of clusters, needs to be manually determined.
184
+ - Affinity Propagation (Frey and Dueck, 2007) is a clustering algorithm that identifies exemplars or representatives within a set of data points. The algorithm can automatically determine the number of clusters based on the input data.
185
+ - Topic-focused clustering (Llewellyn et al., 2014) is one of the most representative works on comment clustering, which comprehensively proves that LDA topic-driven clustering produces better comment clusters for extractive summarization.
186
+ - Fast clustering (Reimers and Gurevych, 2019) is the benchmark system that our dynamic comment clustering algorithm sources from. It utilizes a cosine-similarity threshold in conjunction with SBERT sentence representation to avidly retrieve local communities containing sentences with high similarity.
187
+
188
+ The overall results are presented in Table 2.
189
+
190
+ The baseline fast clustering method yields better performance than K-Means, Affinity Propagation, and the topic-focused clustering method. Moreover, enhancing the fast clustering method with our proposed dynamic clustering algorithm further improves the performance. On top of the dynamic clustering algorithm, we further evaluate our proposed ranking mechanism in two distinct scenarios: one considering only cluster density and the other incorporating both cluster density and background information. The last two rows show our ranking mechanism improves the proposed dynamic clustering algorithm, with the final system settings achieving the best performance.
191
+
192
+ <table><tr><td>Method</td><td>R-1</td><td>R-2</td><td>R-L</td></tr><tr><td>FTX (Chung et al., 2022)</td><td>19.55</td><td>6.40</td><td>14.50</td></tr><tr><td>FTX + TuneCoT</td><td>48.12</td><td>20.01</td><td>32.73</td></tr><tr><td>FTX + TuneCoT + BG</td><td>48.13</td><td>20.27</td><td>33.15</td></tr></table>
193
+
194
+ # 5.3 Summarization Results
195
+
196
+ Abstractive comment summarization is challenging as it requires more training data to understand and summarize noisy online comments. Due to this limitation, previous works have focused solely on extractive summarization. This work takes the compact yet robust FTX model (Chung et al., 2022) as the baseline abstractive summarizer, which uses only 3B parameters while achieving impressive performance. In particular, we contribute two main enhancements to the baseline system. As shown in Table 3, TuneCoT means employing our designed instruction-tuning instances to fine-tune the baseline model on $CAT$ and summary generation in a chain-of-thought style. BG means harnessing the background information extracted from source articles for in-context learning to preserve the contextual integrity of the comment cluster as reflected in the summary. The first two rows show that enhancing the base model with the ability of $CAT$ prediction and $CAT$ -focused summarization improves performance significantly. Moreover, the last two rows indicate that normalizing the output of the LLM with background further improves performance, a point we will illustrate in Section 6.
197
+
198
+ # 5.4 Overall CASC Results
199
+
200
+ We build the benchmark CASC system by combining the SBERT-based fast clustering (Reimers and Gurevych, 2019) module and the FTX-based summarizer. To conduct a thorough performance evaluation, we additionally experiment with recent popular LLMs, including Llama-7B (Touvron et al., 2023a), Llama2-7B (Touvron et al., 2023b), and ChatGPT (gpt-3.5-turbo). The overall results are presented in Table 4.
201
+
202
+ The first two rows show that our instruction-tuning method significantly improves the overall performance, and Line 3 indicates the proposed dynamic clustering method can further boost the performance. To emphasize the importance of clustering in the CASC task, we conducted an ablation experiment with topic-focused clustering applied. The results in Line 4 demonstrate that such an action leads to a significant drop in performance. Fur
203
+
204
+ Table 3: Results of comment cluster summarization.
205
+
206
+ <table><tr><td>Method</td><td>P</td><td>R</td><td>F1</td></tr><tr><td>FC + FTX (3B)</td><td>26.25</td><td>12.00</td><td>16.47</td></tr><tr><td>FC + FTX (3B)♣</td><td>75.41</td><td>32.86</td><td>45.77</td></tr><tr><td>FC† + FTX (3B)♣</td><td>79.58</td><td>54.00</td><td>64.34</td></tr><tr><td>TC + FTX (3B)♣</td><td>12.50</td><td>2.14</td><td>3.66</td></tr><tr><td>FC† + Llama (7B)</td><td>46.66</td><td>31.86</td><td>37.86</td></tr><tr><td>FC† + Llama (7B)♣</td><td>47.59</td><td>32.43</td><td>38.57</td></tr><tr><td>FC† + Llama2 (7B)</td><td>76.32</td><td>51.57</td><td>61.55</td></tr><tr><td>FC† + Llama2 (7B)♣</td><td>76.65</td><td>53.00</td><td>62.67</td></tr><tr><td>FC† + ChatGPT (20B+)</td><td>79.18</td><td>54.86</td><td>64.81</td></tr></table>
207
+
208
+ Table 4: Results of the CASC pipeline system. Sign $\spadesuit$ denotes the model after fine-tuning, while $\dagger$ indicates the use of the dynamic clustering strategy.
209
+
210
+ ![](images/c3db2ef0dee641897bac696be892ee4ca9899ea0be4acb663539c0bf274ec8c1.jpg)
211
+ Figure 1: Distribution of similarity threshold and cluster density concerning the comment cluster size. $\mathbf{Y}_1$ and $\mathbf{Y}_2$ refer to the axes with similarity and cluster size scales.
212
+
213
+ thermore, the results in the lower part of Table 4 show: (1) Our instruction-tuning data and methods can be well extended to other LLMs to enhance their CASC performance. (2) Our tuned FTX-3B model performs better than the larger Llama models and is comparable to ChatGPT. This finding is meaningful for real-world CASC applications.
214
+
215
+ # 6 Analysis & Discussion
216
+
217
+ Comment cluster distribution. Figure 1 presents the distribution of 1,467 comment clusters constructed by our CASC system. The column bars labeled with tag $①$ depict the distribution of comment cluster sizes, the poly-line marked with tag $②$ denotes the similarity threshold applied to each cluster, and the poly-line labeled with $③$ indicates the density value of each cluster. The diagram shows that as the cluster size increases, our dynamic algorithm progressively elevates the similarity threshold, to impose stringent criteria for cluster formation. Since a comment is included in the cluster only when its similarity to the centroid comment surpasses the threshold, the cluster density is distributed above the threshold line, with higher similarity thresholds leading to increased
218
+
219
+ CMT-1. how do you think you came in contact with flu? CMT-2. so, if i caught it, do you think i would know or would i just think it was the regular flu? CMT-3. i am currently trying to avoid other humans. although, that sounds like a good revenge for some people. i probably picked up the flu in a public place. CMT-4. how would you explain the news describing people with "mild symptoms". do they mean mild compared to regular flu, or mild compared with dying? CMT-5. or maybe from a patient who was there for something else and was unknowingly serving as an incubator for the disease. excuse me if you've already answered this, but were you not given every possible vaccination, considering your profession? and even if none are effective, are health-care workers continuing to take every precaution against infection of this flu, or have things been a bit laxer lately? do you mind giving the region of texas in which you work?
220
+
221
+ Auto aspect terms: flu, contact, symptoms, mild symptoms, vaccination, health-care workers.
222
+
223
+ Summary w/o BG: The user comments revolve around various aspects related to the COVID-19 pandemic. Users express concerns about how they may have contracted the flu and how they would know if they had it if they caught it. They also discuss symptoms and severity levels of the virus as well as health-care worker precautions taken against it. Some users speculate about potential incubators of the disease such as patients who may have served as incubators for others. Overall, there is a focus on understanding how best to prevent the flu.
224
+
225
+ Summary w/ BG (H1N1 virus, swine flu): The user comments revolve around various aspects related to the H1N1 virus and swine flu. Users express concerns about how they may have contracted the flu and how they would know if they had it compared to regular flu symptoms. They also discuss how mild symptoms are interpreted and whether they refer to a comparison with dying or if they indicate an unknowingly serving as an incubator for the disease. Additionally, users question whether health-care workers are taking proper precautions against infection and if things have become laxer.
226
+
227
+ Figure 2: Example summaries generated by our CASC system for the comment cluster with a gray background.
228
+
229
+ cluster density. Upon reviewing the real data, it becomes evident that popular topics tend to attract more comments within the cluster, while smaller clusters usually revolve around unpopular topics triggered by the leading comment. In this situation, our method raises the threshold to maintain the integrity of larger clusters and assigns lower threshold values to smaller ones to encourage diversity.
230
+
231
+ Factual error analysis. LLMs enriched with dense knowledge exhibit heightened creativity but also entail risks of factual inaccuracies. Figure 2 presents an example processed by our CASC system, where all the comments are from Reddit under the topic of "swine flu". We observe that the aspect terms encompass most key points expressed in the cluster and are also embodied in the summaries. The results indicate that by establishing a coherent chain of thought for generating aspect terms and summaries, our method mitigates factual errors to some extent. Nevertheless, the first summary (w/o BG), which revolves around the COVID-19 pandemic, is inconsistent with the topic discussed within the original comments. This is due to an information gap, as the pre-trained LLM model lacks specific knowledge about the themes of the articles that the comments are focusing on. In contrast, after manually incorporating the background knowledge "H1N1 virus, swine flu" into the prompt context, the second summary correctly references the background information, thus avoiding factual errors.
232
+
233
+ To quantitatively analyze the impact of the background information incorporated, we further con
234
+
235
+ duct CASC on Reddit comments of ten randomly selected article clusters in real scenarios. On this basis, we perform a manual factuality evaluation based on the summaries of the first five longer comment clusters among each article cluster (fifty summaries in total). For the evaluation guideline, we adhere to the rule that a comment cluster summary is deemed factually accurate only when all the entities, events, and opinions it encompasses are entirely in line with the content of the original comments. The evaluation results in Table 5 demonstrate that utilizing background in our final system significantly enhances its factuality.
236
+
237
+ <table><tr><td>Method</td><td>Factual Error</td></tr><tr><td>Final System</td><td>18%</td></tr><tr><td>w/o BG</td><td>28%</td></tr></table>
238
+
239
+ Table 5: Manual evaluation of summarization factuality.
240
+
241
+ # 7 Conclusion
242
+
243
+ This paper presents an initial exploration into Clustering and Abstractive Summarization of online news Comments (CASC). We introduce a manual annotation scheme, create a test suite, and propose an evaluation metric tailored for the CASC task. On this basis, we introduce a dynamic clustering algorithm and a novel ranking mechanism for effective comment clustering. In particular, we perform the first practice of tuning foundation models for comment cluster summarization. To foster further studies, the data and codes will be released to the research community upon application.
244
+
245
+ # 8 Limitations
246
+
247
+ As an early exploration in CASC, our study faces two notable limitations: (1) Our annotation efforts have been confined to English news comments due to constraints in human resources. In future research endeavors, we will aim to broaden our resources to construct a multi-lingual CASC test suite. (2) This paper establishes a baseline CASC system using LLM. Although we utilize chain-of-thought fine-tuning along with the in-context learning of background information to alleviate the hallucination issue, the strategy is not thorough enough. We envision undertaking task-specific retraining of LLMs in future work to address this issue further. (3) Currently, the pipeline method outlined in this paper does not fully leverage LLMs. Given the rapid advancement of foundation models, further investigation is needed to explore methods that bridge the gap between clustering and summarization and the capacity to learn clustering and summarization using LLMs simultaneously. (4) When constructing the test suite, we considered the comment tree a context when performing manual annotation, but our system does not consider the comment tree. Inspired by previous work (Tan et al., 2022), exploring discourse theory within comment trees could help with more intelligent news comment analysis in future work.
248
+
249
+ # 9 Acknowledgments
250
+
251
+ We thank Tharini De Silva, Yang Ding, Tarun Kumar Vangani, and other team members for their useful discussions and contributions to the data construction. We express our gratitude to the anonymous reviewers who highly rated this paper and offered insightful comments that significantly contributed to the enhancement of this work.
252
+
253
+ # References
254
+
255
+ Ahmet Aker, Monica Paramita, Emina Kurtic, Adam Funk, Emma Barker, Mark Hepple, and Rob Gaizauskas. 2016. Automatic label generation for news comment clusters. In Proceedings of the 9th International Natural Language Generation Conference, pages 61-69. Association for Computational Linguistics.
256
+ Emma Barker, Monica Lestari Paramita, Ahmet Aker, Emina Kurtić, Mark Hepple, and Robert Gaizauskas. 2016a. The sensei annotated corpus: Human summaries of reader comment conversations in on-line news. In Proceedings of the 17th annual meeting of
257
+
258
+ the special interest group on discourse and dialogue, pages 42-52.
259
+ Emma Barker, Monica Lestari Paramita, Adam Funk, Emina Kurtic, Ahmet Aker, Jonathan Foster, Mark Hepple, and Robert Gaizauskas. 2016b. What's the issue here?: Task-based evaluation of reader comment summarization systems. In Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16), pages 3094-3101.
260
+ Shammur Absar Chowdhury, Hamdy Mubarak, Ahmed Abdelali, Soon-gyo Jung, Bernard J Jansen, and Joni Salminen. 2020. A multi-platform arabic news comment dataset for offensive language detection. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 6203-6212.
261
+ Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. 2022. Scaling instruction-finetuned language models. arXiv preprint arXiv:2210.11416.
262
+ Mita K Dalal and Mukesh A Zaveri. 2013. Semisupervised learning based opinion summarization and classification for online product reviews. Applied Computational Intelligence and Soft Computing, 2013:10-10.
263
+ Brendan J Frey and Delbert Dueck. 2007. Clustering by passing messages between data points. science, 315(5814):972-976.
264
+ Shen Gao, Xiuying Chen, Piji Li, Zhaochun Ren, Li-dong Bing, Dongyan Zhao, and Rui Yan. 2019. Abstractive text summarization by incorporating reader comments. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 6399-6406.
265
+ Tanya Goyal, Junyi Jessy Li, and Greg Durrett. 2022. News summarization and evaluation in the era of gpt-3. arXiv preprint arXiv:2209.12356.
266
+ Chiao-Fang Hsu, James Caverlee, and Elham Khabiri. 2011. Hierarchical comments-based clustering. In Proceedings of the 2011 ACM Symposium on Applied Computing, pages 1130-1137.
267
+ Yuxin Huang, Shukai Hou, Gang Li, and Zhengtao Yu. 2023. Abstractive summary of public opinion news based on element graph attention. Information, 14(2):97.
268
+ Elham Khabiri, James Caverlee, and Chiao-Fang Hsu. 2011. Summarizing user-contributed comments. In Proceedings of the International AAAI Conference on Web and Social Media, volume 5, pages 534-537.
269
+ Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. BART: Denoising sequence-to-sequence pre-training
270
+
271
+ for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7871-7880, Online. Association for Computational Linguistics.
272
+ Fei Liu, Jeffrey Flanigan, Sam Thomson, Norman Sadeh, and Noah A. Smith. 2015. Toward abstractive summarization using semantic representations. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1077-1086, Denver, Colorado. Association for Computational Linguistics.
273
+ Clare Llewellyn, Claire Grover, and Jon Oberlander. 2014. Summarizing newspaper comments. In Proceedings of the International AAAI Conference on Web and Social Media, volume 8, pages 599-602.
274
+ Clare Llewellyn, Claire Grover, and Jon Oberlander. 2016. Improving topic model clustering of newspaper comments for summarisation. In Proceedings of the ACL 2016 Student Research Workshop, pages 43-50.
275
+ Zongyang Ma, Aixin Sun, Quan Yuan, and Gao Cong. 2012. Topic-driven reader comments summarization. In Proceedings of the 21st ACM international conference on Information and knowledge management, pages 265-274.
276
+ James MacQueen et al. 1967. Some methods for classification and analysis of multivariate observations. In Proceedings of the fifth Berkeley symposium on mathematical statistics and probability, volume 1, pages 281-297. Oakland, CA, USA.
277
+ Andreea Moldovan, Karla Csüros, Ana-Maria Bucur, and Loredana Bercuci. 2022. Users hate blondes: Detecting sexism in user comments on online Romanian news. In Proceedings of the Sixth Workshop on Online Abuse and Harms (WOAH), pages 230-230.
278
+ OpenAI. 2023. Gpt-4 technical report.
279
+ Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730-27744.
280
+ John Pavlopoulos, Prodromos Malakasiotis, and Ion Androutsopoulos. 2017. Deep learning for user comment moderation. arXiv preprint arXiv:1705.09993.
281
+ Samuel Pecar. 2018. Towards opinion summarization of customer reviews. In Proceedings of ACL 2018, Student Research Workshop, pages 1-8.
282
+ Xiao Pu, Mingqi Gao, and Xiaojun Wan. 2023. Summarization is (almost) dead. arXiv preprint arXiv:2309.09558.
283
+
284
+ Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
285
+ Alexander M. Rush, Sumit Chopra, and Jason Weston. 2015. A neural attention model for abstractive sentence summarization. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 379-389, Lisbon, Portugal. Association for Computational Linguistics.
286
+ Abigail See, Peter J. Liu, and Christopher D. Manning. 2017. Get to the point: Summarization with pointer-generator networks. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1073-1083, Vancouver, Canada. Association for Computational Linguistics.
287
+ Rogério Sousa and Thiago Pardo. 2022. Evaluating content features and classification methods for helpfulness prediction of online reviews: Establishing a benchmark for portuguese. In Proceedings of the 12th Workshop on Computational Approaches to Subjectivity, Sentiment & Social Media Analysis, pages 204-213.
288
+ Hongjin Su, Weijia Shi, Jungo Kasai, Yizhong Wang, Yushi Hu, Mari Ostendorf, Wen-tau Yih, Noah A. Smith, Luke Zettlemoyer, and Tao Yu. 2023. One embedder, any task: Instruction-finetuned text embeddings. In Findings of the Association for Computational Linguistics: ACL 2023, pages 1102-1121, Toronto, Canada. Association for Computational Linguistics.
289
+ Xin Tan, Longyin Zhang, Fang Kong, and Guodong Zhou. 2022. Towards discourse-aware document-level neural machine translation. In *IJCAI*, pages 4383-4389.
290
+ Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Roziere, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023a. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.
291
+ Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023b. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
292
+ Jiaan Wang, Fandong Meng, Ziyao Lu, Duo Zheng, Zhixu Li, Jianfeng Qu, and Jie Zhou. 2022. Clidsum: A benchmark dataset for cross-lingual dialogue summarization. arXiv preprint arXiv:2202.05599.
293
+ Yue Wang, Weishi Wang, Shafiq Joty, and Steven C.H. Hoi. 2021. CodeT5: Identifier-aware unified pretrained encoder-decoder models for code understanding and generation. In Proceedings of the 2021
294
+
295
+ Conference on Empirical Methods in Natural Language Processing, pages 8696-8708, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
296
+
297
+ Sen Yang, Leyang Cui, Jun Xie, and Yue Zhang. 2019. Making the best use of review summary for sentiment analysis. arXiv preprint arXiv:1911.02711.
298
+
299
+ Xianjun Yang, Yan Li, Xinlu Zhang, Haifeng Chen, and Wei Cheng. 2023. Exploring the limits of chatgpt for query or aspect-based text summarization. arXiv preprint arXiv:2302.08081.
300
+
301
+ Michihiro Yasunaga, Rui Zhang, Kshitijh Meelu, Ayush Parek, Krishnan Srinivasan, and Dragomir Radev. 2017. Graph-based neural multi-document summarization. In Proceedings of the 21st Conference on Computational Natural Language Learning (CoNLL 2017), pages 452-462, Vancouver, Canada. Association for Computational Linguistics.
302
+
303
+ Ales Žagar and Marko Robnik-Sikonja. 2021. Unsupervised approach to multilingual user comments summarization. In Proceedings of the EACL Hackashop on News Media Content Analysis and Automated Report Generation, pages 89-98.
304
+
305
+ Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. 2022. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068.
306
+
307
+ Tianyi Zhang, Faisal Ladhak, Esin Durmus, Percy Liang, Kathleen McKeown, and Tatsunori B Hashimoto. 2023. Benchmarking large language models for news summarization. arXiv preprint arXiv:2301.13848.
308
+
309
+ # A System Settings
310
+
311
+ Our system is based on the Flan_T5_XL (Chung et al., 2022) model with 3B parameters. We tuned all the model parameters for 3 epochs using our built 26,438 instruction-tuning instances. We implemented the CASC system using the PyTorch framework. We tuned our model on A40 GPU cards, and a complete model tuning took around 10 GPU hours. All tests were finished in a single run with the random seed 19. We tuned the hyper-parameters like the number of titles used as background (Table 6), the $\Delta$ value (Table 7), the cluster number of the K-Means algorithm (Table 8), the parameters of the curve in Equation 1 (Appendix B), etc., based on the DEV set.
312
+
313
+ # B Tuning Clustering Curve Steepness
314
+
315
+ Our proposed dynamic clustering algorithm maintains two hyper-parameters in Equation 1 to shape
316
+
317
+ <table><tr><td>Title Number</td><td>R-1</td><td>R-2</td><td>R-L</td></tr><tr><td>0</td><td>45.35</td><td>16.59</td><td>29.13</td></tr><tr><td>2</td><td>45.22</td><td>16.61</td><td>29.27</td></tr><tr><td>4</td><td>45.24</td><td>16.49</td><td>29.37</td></tr><tr><td>6</td><td>45.20</td><td>16.67</td><td>29.41</td></tr><tr><td>8</td><td>45.22</td><td>16.80</td><td>29.37</td></tr></table>
318
+
319
+ Table 6: Title number determined on DEV.
320
+
321
+ <table><tr><td>Δ</td><td>NMI</td></tr><tr><td>5</td><td>67.28</td></tr><tr><td>10</td><td>67.38</td></tr><tr><td>20</td><td>67.35</td></tr><tr><td>40</td><td>67.38</td></tr><tr><td>80</td><td>67.17</td></tr></table>
322
+
323
+ Table 7: $\Delta$ value determined on DEV.
324
+
325
+ the curve to control the dynamic similarity thresholds. Figure 3 illustrates an example curve. The curve steepness is determined by the two hyperparameters $\mathrm{K}_1$ and $\mathrm{K}_2$ , which are tuned on DEV by sampling data points with the cluster sizes $\kappa_1 = 50$ and $\kappa_1 = 200$ on the X-axis. The two parameters are determined by the empirical investigation that a comment cluster with 50 comments is considered a common size, so we need to establish a general similarity threshold $\varsigma_1$ to ensure that the comments within the cluster are identifiable; a cluster with 200 comments is deemed long-winded, where we need a higher threshold $\varsigma_2$ to strictly filter out those unrelated comments to make the cluster more readable. To achieve the above goal, we first assume the curve to be a plain horizontal line to test the effects when $\varsigma_1$ takes different values on the Y-axis. Table 9 shows that as the value of $\varsigma_1$ grows, the performance drops sharply. Therefore, we obtain $\varsigma_1 = 0.52$ with the highest NMI score on DEV. Then we anchor $(\kappa_1,\varsigma_1)$ to tune the data point $(\kappa_2,\varsigma_2)$ , where the higher the value of $\varsigma_2$ , the steeper the curve. It shows that it obtains the best performance when the similarity $\varsigma_2$ is 0.8 for the cluster with 200 comments.
326
+
327
+ # C Clustering Speed
328
+
329
+ The section presents the speed of the fast clustering algorithm, K-Means, and Affinity Propagation for reference, as shown in Table 10. Here, the K-Means and Affinity Propagation algorithms we use are implemented by scikit-learn<sup>7</sup>. Notably, the running speed fluctuates greatly with changes in the total number of comments.
330
+
331
+ <table><tr><td>K-Means</td><td>NMI</td></tr><tr><td>2</td><td>16.08</td></tr><tr><td>4</td><td>25.35</td></tr><tr><td>8</td><td>38.16</td></tr><tr><td>16</td><td>27.97</td></tr><tr><td>32</td><td>15.52</td></tr><tr><td>64</td><td>14.43</td></tr><tr><td>128</td><td>15.74</td></tr></table>
332
+
333
+ ![](images/5db82b5b2f78d871b5238d4bbd1a6760a8b88d6b6174d812f9bd53c8f0d47a5f.jpg)
334
+ Figure 3: Example curve with $\mathrm{K}_1 = 2$ and $\mathrm{K}_2 = 2$ .
335
+
336
+ # D Successful Hit Summary Pairs in the Pipeline Evaluation
337
+
338
+ As stated in the main body, this research proposes the pipeline evaluation scheme tailored for the CASC task where we set the cosine similarity threshold to 0.9 to strictly evaluate the quality of the generated summaries. This section presents some summaries that successfully hit the gold standard summaries for reference.
339
+
340
+ # D.1 Example 1
341
+
342
+ Ground truth. The user comments discuss the impact of high cost of living on the poorest in society and how they cannot switch to cheaper brands or travel less. They also criticize msm for claiming that high cost of living has little effect on the poor. Some users express frustration with an article that talks about the poor only focusing on wealthy individuals. There is a call for increasing GST to help the poor while others suggest taking half of mayors' salaries to subsidize them directly.
343
+
344
+ Model prediction. The user comments discuss the high cost of living in Singapore and its impact on the poor. Some users criticize the choice of interviewee for the article, questioning whether it accurately represents the struggles faced by those living in poverty. Others point out that this issue
345
+
346
+ Table 8: K value determined on DEV.
347
+
348
+ <table><tr><td>κ1</td><td>ζ1</td><td>NMI</td><td>κ2</td><td>ζ2</td><td>NMI</td></tr><tr><td rowspan="6">50</td><td>0.48</td><td>64.91</td><td rowspan="6">200</td><td>0.60</td><td>66.65</td></tr><tr><td>0.52</td><td>65.33</td><td>0.65</td><td>66.84</td></tr><tr><td>0.56</td><td>42.32</td><td>0.70</td><td>66.94</td></tr><tr><td>0.60</td><td>35.40</td><td>0.75</td><td>67.12</td></tr><tr><td>0.64</td><td>13.61</td><td>0.80</td><td>67.38</td></tr><tr><td>0.68</td><td>11.31</td><td>0.85</td><td>67.25</td></tr></table>
349
+
350
+ Table 9: Curve steepness tuning on the DEV set.
351
+
352
+ <table><tr><td>Method</td><td>Speed</td></tr><tr><td>K-Means</td><td>228 ms / 512 comments</td></tr><tr><td>Affinity Propagation</td><td>265 ms / 512 comments</td></tr><tr><td>Fast Clustering</td><td>86 ms / 512 comments</td></tr></table>
353
+
354
+ Table 10: Speed of different clustering algorithms.
355
+
356
+ is not unique to Singapore and highlights the need to reduce the gap between rich and poor. There is also discussion about supermarket chains like ntuc fairprice not passing on higher prices to consumers despite being strategically placed. Overall, there is a sense that rising prices are causing hardship for those living in poverty.
357
+
358
+ # D.2 Example 2
359
+
360
+ Ground truth. The user comments revolve around the topic of defining and calculating the poverty line. Some users suggest using minimum income standards as a starting point while others argue that every generation's poverty line is different. There is also discussion about household division and how it can be too low below sustainable levels. The UK's definition of poverty is $60\%$ below median household income after housing costs which some people dislike as it is a relative measure rather than an absolute measure of poverty. Some users suggest using the average wage as a metric but others argue that doing so would include irrelevant people into the calculations, making the metric useless.
361
+
362
+ Model prediction. The user comments discuss different approaches to defining poverty, including the UK's $60\%$ below median household income after housing costs and the living wage as a personal income measure. They also mention the UK's state pension system and minimum income standards for defining the poverty line. One comment suggests that Singapore should have an official poverty line defined by the bottom $0.1\%$ , which may result in fewer poor people.
363
+
364
+ # D.3 Example 3
365
+
366
+ Ground truth. The user comments discuss the high number of people being helped by food banks since COVID. One user questions if this is truly
367
+
368
+ # Comment Cluster
369
+
370
+ 1. [Aspect_Terms: poor line, poor people] Since we don&#39;t have an official poverty line, probably because that way we have less poor people. If we define the bottom $0.1\%$ to be poor, we will have very few poor people.
371
+ 2. [Aspect_Terms: poor line] Tbh I've been working on deriving the poverty line. the idea is that every generation poverty line is different.
372
+ 3. [Aspect_Terms: poor line] The minimum income standards are a good start at trying to define the poverty line.
373
+ 4. [Aspect_Terms: poor line, household division] The household division makes sense, total income divided by pax but the number here is just way too low below sustainable.
374
+ 5. [Aspect_Terms: poor line, metric] Yes, the larger the gap is, the less accurate the metric become
375
+ 6. [Aspect_Terms: poor line, UK] The UK definition of poverty is $60\%$ below median <strong>household</strong> income after housing costs. So that&#39;s a household approach and is used to calculate how many live in poverty. The right don&#39;t like it because it is a relative measure rather than a measure of absolute poverty.
376
+ 7. [Aspect_Terms: poor line, average wage] The average wage should be the poverty line tbh.
377
+ 8. [Aspect_Terms: poor line, average wage] I don&#39;t think the average wage should be poverty line, that would mean like more than $50\%$ of people are poor, inclusive of rich tai tais, stay at home parents etc and all children. It will become a useless metric if too many irrelevant people are included.
378
+
379
+ # Extractive Summary
380
+
381
+ 1. Since we don\&#39;t have an official poverty line, probably because that way we have less poor people. If we define the bottom $0.1\%$ to be poor, we will have very few poor people.
382
+ 2. The minimum income standards are a good start at trying to define the poverty line.
383
+ 3. The household division makes sense, total income divided by pax but the number here is just way too low below sustainable.
384
+ 4. The average wage should be the poverty line tbh.
385
+ 5. I don\&#39;t think the average wage should be poverty line, that would mean like more than $50\%$ of people are poor, inclusive of rich tai tais, stay at home parents etc and all children. It will become a useless metric if too many irrelevant people are included.
386
+
387
+ # Abstractive Summary
388
+
389
+ The user comments revolve around the topic of defining and calculating the poverty line. Some users suggest using minimum income standards as a starting point while others argue that every generation's poverty line is different. There is also discussion about household division and how it can be too low below sustainable levels. The UK's definition of poverty is $60\%$ below median household income after housing costs which some people dislike as it is a relative measure rather than an absolute measure of poverty. Some users suggest using the average wage as a metric but others argue that doing so would include irrelevant people into the calculations, making the metric useless.
390
+
391
+ Figure 4: Example comment cluster annotated with extractive and abstractive summaries.
392
+
393
+ happening while another explains that food banks are used to providing support for those in the poorest $10\%$ of the population but are now supporting more people. It is noted that many families are close to needing their help due to unexpected events such as illness or job loss.
394
+
395
+ Model prediction. The user comments discuss the claim that Singapore's food banks are helping 1 million people since COVID-19. However, one user questions if this is truly the case and suggests that it may be more accurate to say that the poorest $10\%$ of the population is now needing help. Another user points out that many families are close to needing assistance due to unexpected events like illness or job loss. Despite this, there are still over 30,000 households reliant on foodbanks pre-pandemic and over 100k registered with foodbank.sg.
396
+
397
+ # E Abstractive vs. Extractive Comment Summarization
398
+
399
+ In addition to the final dataset presented in the main body of this paper, our initial exploratory research
400
+
401
+ extends to the extractive summarization of news comment clusters. In extractive summarization annotation, the annotators are guided to manually extract comments from the original comment cluster following two rules: (1) Since each comment is manually annotated with aspect terms, the summary content should cover all the annotated aspect terms; (2) Each aspect term could be shared among multiple comments, the annotators should read and select the most representative comments as the summary to avoid duplication and redundancy. With this guideline, we annotated summaries for 6 article clusters. For reference, we present a comment cluster with extractive and abstraction summaries annotated in Figure 4. When compared, extractive summarization proves superior in accuracy, fluency, and conciseness. This showcases the adaptability of LLM-based summary generation to noisy real-world data.
2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:490a801bde0fa9cf1319e4baed015eadc1f8b3c3dfaf25f9e3aaa710cfd0fbec
3
+ size 211894
2024/Comprehensive Abstractive Comment Summarization with Dynamic Clustering and Chain of Thought/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/9ded2c84-7d7d-4a7e-b160-6caf16706c14_content_list.json ADDED
@@ -0,0 +1,2307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ConTempo: A Unified Temporally Contrastive Framework for Temporal Relation Extraction",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 124,
8
+ 89,
9
+ 875,
10
+ 130
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Jingcheng Niu, $^{1,2,3}$ Saifei Liao, $^{2,3}$ Victoria Ng, $^{1}$ Simon De Montigny, $^{1}$ Gerald Penn $^{2,3}$",
17
+ "bbox": [
18
+ 136,
19
+ 149,
20
+ 860,
21
+ 168
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup>Public Health Agency of Canada, <sup>2</sup>University of Toronto, <sup>3</sup>Vector Institute",
28
+ "bbox": [
29
+ 193,
30
+ 168,
31
+ 803,
32
+ 185
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "{niu,liaosaif,gpenn}@cs.toronto.edu",
39
+ "bbox": [
40
+ 322,
41
+ 186,
42
+ 677,
43
+ 202
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "{victoria.ng,simon.demontigny}@phac-aspc.gc.ca",
50
+ "bbox": [
51
+ 265,
52
+ 203,
53
+ 731,
54
+ 219
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 260,
64
+ 261,
65
+ 339,
66
+ 275
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "The task of temporal relation extraction (TRE) involves identifying and extracting temporal relations between events from narratives. We identify two primary issues with TRE systems. First, by formulating TRE as a simple text classification task where every temporal relation is independent, it is hard to enhance the TRE model's representation of meaning of temporal relations, and its facility with the underlying temporal calculus. We solve the issue by proposing a novel Temporally Contrastive learning model (ConTempo) that increase the model's awareness of the meaning of temporal relations by leveraging their symmetric or antisymmetric properties. Second, the reusability of innovations has been limited due to incompatibilities in model architectures. Therefore, we propose a unified framework and show that ConTempo is compatible with all three main branches of TRE research. Our results demonstrate that the performance gains of ConTempo are more pronounced, with the total combination achieving state-of-the-art performance on the widely used MATRES and TBD corpora. We furthermore identified and corrected a large number of annotation errors present in the test set of MATRES, after which the performance increase brought by ConTempo becomes more apparent.",
73
+ "bbox": [
74
+ 144,
75
+ 291,
76
+ 460,
77
+ 703
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 114,
87
+ 717,
88
+ 258,
89
+ 733
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Temporal relation extraction (TRE) is the task of classifying the temporal relations between pairs of events conveyed in narratives (Pustejovsky et al., 2006, 2010). This task is important to the natural language processing (NLP) community because the conception of time is a key component of text comprehension and reasoning. Additionally, it carries practical importance, as TRE is a crucial component of various downstream applications in question answering, information retrieval, and information extraction.",
96
+ "bbox": [
97
+ 112,
98
+ 744,
99
+ 490,
100
+ 920
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "TRE is difficult. Despite its importance and popularity, TRE systems still have relatively poor performance compared to other natural language understanding tasks. TRE is also salient because recent large language models (LLMs) and chat systems have substantially worse performance than smaller, fine-tuned TRE models (Yuan et al., 2023; Huang et al., 2023).",
107
+ "bbox": [
108
+ 507,
109
+ 261,
110
+ 884,
111
+ 388
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this paper, we enhance current TRE systems by identifying and addressing two major issues that hinder their performance:",
118
+ "bbox": [
119
+ 507,
120
+ 391,
121
+ 882,
122
+ 437
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "1. It is difficult to understand relation labels. TRE is typically formulated as a multi-label text classification task. The representation of the relation is determined by a neural classifier, which outputs logits for different label classes. These logits are then converted into label probabilities using a softmax layer. As a result, in a TRE model, all relation types are considered independent. However, temporal relations are inherently structured, governed by an underlying temporal calculus (Allen, 1981, 1983). For instance, if event A occurred before event B, it can be inferred that B happened after A. Integrating the meanings of each temporal relation and the principles of the underlying temporal calculus into the neural classifier presents a complex challenge, as there is no straightforward method to do so.",
129
+ "bbox": [
130
+ 507,
131
+ 445,
132
+ 885,
133
+ 719
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2. The reusability of innovations has been limited. Many of the recent innovations in TRE have not built upon one another, primarily due to the lack of a unified framework (beyond annotation standards) to accommodate them. For example, despite being widely cited and used as a baseline by subsequent systems, the relative time prediction technique (Wen and Ji, 2021) has rarely been applied on top of newer models, due to incompatibilities in model architecture. The evaluation methods employed by earlier systems vary significantly, moreover, which complicates direct comparisons",
140
+ "bbox": [
141
+ 507,
142
+ 728,
143
+ 885,
144
+ 921
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "page_number",
150
+ "text": "1521",
151
+ "bbox": [
152
+ 480,
153
+ 927,
154
+ 519,
155
+ 940
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "footer",
161
+ "text": "Findings of the Association for Computational Linguistics: ACL 2024, pages 1521-1533 August 11-16, 2024 ©2024 Association for Computational Linguistics",
162
+ "bbox": [
163
+ 228,
164
+ 945,
165
+ 768,
166
+ 972
167
+ ],
168
+ "page_idx": 0
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "between models and further hinders the development of future models.",
173
+ "bbox": [
174
+ 112,
175
+ 84,
176
+ 489,
177
+ 115
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "We propose a novel Temporally Contrastive learning method (ConTempo)<sup>1</sup> to enhance the model's representation of the meaning of temporal relations, and its facility with the underlying temporal calculus. The intuition behind ConTempo is very simple. Contrastive learning aims to pull similar (positive) samples closer and push dissimilar (negative) samples apart. We leverage the symmetric and antisymmetric properties of temporal relations to augment a base graph of positive samples for contrastive learning. For antisymmetric relations (A before B), we want to push the relation's representation away from its inverse (B after A). For a symmetric relation (A equals B), we likewise want to pull its representation closer to its inverse (B equals A). Our experimental results indicate that ConTempo is effective at creating distinctive representations for different types of temporal relation pairs and yields a substantial improvement in performance.",
184
+ "bbox": [
185
+ 115,
186
+ 118,
187
+ 489,
188
+ 441
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "Then, building upon ConTempo, we create a unified framework that is compatible with various previous modes of improvement in TRE systems. In particular, we have identified two major threads of innovation in the previous literature on this topic: (1) GNN encoding of event and context information, (2) incorporation of common-sense information, and (3) the soft enforcement of logical constraints. Our experiment shows that ConTempo is compatible with techniques from all three major threads of research and can achieve state-of-the-art performance on major evaluation corpora, including MATRES (Ning et al., 2018b) and TimeBank-Dense (TBD; Cassidy et al., 2014). We nevertheless perceive the need to introduce CleanMATRES, a refined version of MATRES that we created by fixing certain annotation errors.",
195
+ "bbox": [
196
+ 115,
197
+ 443,
198
+ 489,
199
+ 715
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "Among all of these innovations, an ablation study nevertheless shows that ConTempo brings the most significant performance increase. This finding underscores our initial hypothesis: the primary challenge for these models has been their difficulty with making sense of relation labels.",
206
+ "bbox": [
207
+ 112,
208
+ 718,
209
+ 487,
210
+ 814
211
+ ],
212
+ "page_idx": 1
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "During our development of the unified ComTempo framework, we discovered a large number of annotation errors within MATRES and TBD, two commonly utilized corpora. Because of",
217
+ "bbox": [
218
+ 112,
219
+ 816,
220
+ 487,
221
+ 881
222
+ ],
223
+ "page_idx": 1
224
+ },
225
+ {
226
+ "type": "table",
227
+ "img_path": "images/87d09cebd1678aba9e8d7793f5fb1e7256a93ba14101dc2837731344704a327f.jpg",
228
+ "table_caption": [],
229
+ "table_footnote": [],
230
+ "table_body": "<table><tr><td>Corpus</td><td>Relations</td></tr><tr><td>MATRES</td><td>BEFORE, AFTER, EQUAL, VAGUE</td></tr><tr><td>TBD</td><td>BEFORE, AFTER, INCLUDES, IS INCLUDED, EQUAL, VAGUE</td></tr></table>",
231
+ "bbox": [
232
+ 510,
233
+ 82,
234
+ 887,
235
+ 154
236
+ ],
237
+ "page_idx": 1
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "Table 1: Temporal relations used by MATRES and TBD.",
242
+ "bbox": [
243
+ 507,
244
+ 162,
245
+ 880,
246
+ 177
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "TBD's dense annotation scheme, the appropriate level of underspecificity cannot be resolved without further investigation. But we are able to provide a thorough re-examination of the MATRES corpus. After correcting these errors, performance improves yet again, and the performance increase brought by ConTempo becomes more apparent.",
253
+ "bbox": [
254
+ 507,
255
+ 204,
256
+ 882,
257
+ 317
258
+ ],
259
+ "page_idx": 1
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "2 ConTempo",
264
+ "text_level": 1,
265
+ "bbox": [
266
+ 507,
267
+ 330,
268
+ 638,
269
+ 347
270
+ ],
271
+ "page_idx": 1
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "We begin our discussion by first formulating the TRE task. Then, using a comparison of relational representations, we will demonstrate the difficulty that a neural model faces in temporal reasoning and understanding the meaning of temporal labels. In particular, there is a significant correlation between the mistakes a TRE model makes and its degree of inference over the available symmetric and antisymmetric properties. Next, we will present our ConTempo method in detail, which enhances a model's awareness of the meaning of each temporal relation and each principles of temporal reasoning. Finally, we will empirically demonstrate the effectiveness of ConTempo and compare it with previous methods in increasing temporal relation awareness.",
276
+ "bbox": [
277
+ 505,
278
+ 356,
279
+ 884,
280
+ 612
281
+ ],
282
+ "page_idx": 1
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "2.1 TRE: Task Formulation",
287
+ "text_level": 1,
288
+ "bbox": [
289
+ 507,
290
+ 626,
291
+ 744,
292
+ 640
293
+ ],
294
+ "page_idx": 1
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "TRE can be formulated as a classification task. Given an input sequence $S = [t_1, \\dots, t_n]$ and two events represented by two distinct tokens from the sequence, $e_1, e_2 \\in S$ , where $e_1 \\neq e_2$ , the TRE model should classify the relation between the event pair $(e_1, e_2)$ into one of several temporal relations, $\\mathcal{R}$ . Different corpora have different sets of temporal relations. Most TRE benchmark datasets aspire to embody Allen's (1981) 13 original temporal relations, but creating datasets with such fine-grained annotations is challenging. Attempts to utilize all 13 temporal relation types have failed due to low inter-annotator agreement. Therefore, recent TRE datasets typically simplify the relation set to a more coarse subset of the original set. As listed in Table 1, MATRES has 4 relation types, and TBD uses 6 relation types.",
299
+ "bbox": [
300
+ 505,
301
+ 646,
302
+ 884,
303
+ 921
304
+ ],
305
+ "page_idx": 1
306
+ },
307
+ {
308
+ "type": "page_footnote",
309
+ "text": "<sup>1</sup>ConTempo and CleanMATRES are publicly available online: https://github.com/frankniujc/contempo.",
310
+ "bbox": [
311
+ 112,
312
+ 894,
313
+ 487,
314
+ 921
315
+ ],
316
+ "page_idx": 1
317
+ },
318
+ {
319
+ "type": "page_number",
320
+ "text": "1522",
321
+ "bbox": [
322
+ 482,
323
+ 927,
324
+ 519,
325
+ 940
326
+ ],
327
+ "page_idx": 1
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "2.2 Temporal Relation Labels Awareness",
332
+ "text_level": 1,
333
+ "bbox": [
334
+ 112,
335
+ 84,
336
+ 450,
337
+ 99
338
+ ],
339
+ "page_idx": 2
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "After simplification, Allen's (1983) full temporal interval calculus can no longer be maintained. But interval symmetry and antisymmetry (as shown in Equation 1) still apply within both MATRES and TBD. $^2$ In our opinion, it is crucial for TRE models to reason with intervals in order to yield good evaluation results on benchmarks—if the models know A happened before B but do not know that B happened after A, can we really say that the model understands time in narratives?",
344
+ "bbox": [
345
+ 112,
346
+ 105,
347
+ 489,
348
+ 267
349
+ ],
350
+ "page_idx": 2
351
+ },
352
+ {
353
+ "type": "equation",
354
+ "text": "\n$$\nA \\text {I N C l u d e s} B \\Longleftrightarrow B \\text {I S - I N C l u d e d} A\n$$\n",
355
+ "text_format": "latex",
356
+ "bbox": [
357
+ 129,
358
+ 275,
359
+ 450,
360
+ 292
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "equation",
366
+ "text": "\n$$\nA _ {\\text {B E F O R E}} B \\Longleftrightarrow B _ {\\text {A F T E R}} A \\tag {1}\n$$\n",
367
+ "text_format": "latex",
368
+ "bbox": [
369
+ 147,
370
+ 297,
371
+ 487,
372
+ 312
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "equation",
378
+ "text": "\n$$\nA \\text {E Q U A L} B \\iff B \\text {E Q U A L} A\n$$\n",
379
+ "text_format": "latex",
380
+ "bbox": [
381
+ 156,
382
+ 317,
383
+ 396,
384
+ 332
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "Symmetry and antisymmetry also provide us with an opportunity to test a model's understanding of relation labels. In particular, we can measure the similarity of the model's representation of a relation $\\mathbf{h}_r^{\\rightarrow}$ in comparison to its dual $\\mathbf{h}_r^{\\leftarrow}$ :",
391
+ "bbox": [
392
+ 112,
393
+ 344,
394
+ 487,
395
+ 426
396
+ ],
397
+ "page_idx": 2
398
+ },
399
+ {
400
+ "type": "equation",
401
+ "text": "\n$$\n\\operatorname {s i m} \\left(\\mathbf {h} _ {r} ^ {\\rightarrow}, \\mathbf {h} _ {r} ^ {\\leftarrow}\\right) = \\operatorname {s i m} \\left(\\mathbf {h} _ {\\left(e _ {1}, e _ {2}\\right)}, \\mathbf {h} _ {\\left(e _ {2}, e _ {1}\\right)}\\right), \\tag {2}\n$$\n",
402
+ "text_format": "latex",
403
+ "bbox": [
404
+ 141,
405
+ 439,
406
+ 487,
407
+ 458
408
+ ],
409
+ "page_idx": 2
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "It is relatively commonplace in the context of TRE to speak of a representation of a temporal relation, although this in fact refers to the representation of one of its instances over some event pair $\\mathbf{h}_{(e_1,e_2)}$ . Therefore, we will speak of the two interchangeably. If the relation between $e_1$ and $e_2$ is symmetric, then we can interpret high similarity as a sign of awareness concerning the relation's meaning because the relation and its inverse are nearly the same. On the other hand, if the relation is antisymmetric, we should expect the relations to be distinct and, therefore, we should interpret low similarity as a good sign. Here, we measure similarity with cosine similarity $(\\mathrm{sim}(\\mathbf{a},\\mathbf{b}) = \\frac{\\mathbf{a}\\cdot\\mathbf{b}}{\\|\\mathbf{a}\\|\\|\\mathbf{b}\\|})$ .",
414
+ "bbox": [
415
+ 112,
416
+ 470,
417
+ 489,
418
+ 700
419
+ ],
420
+ "page_idx": 2
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "2.3 Temporal Relation Awareness of Fine-tuned BERT-based Models",
425
+ "text_level": 1,
426
+ "bbox": [
427
+ 112,
428
+ 707,
429
+ 415,
430
+ 737
431
+ ],
432
+ "page_idx": 2
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "In this section, we examine the extent to which typical, fine-tuned BERT-based models can be said to understand temporal relations and the temporal calculus. All contemporary TRE systems use this paradigm. Therefore, we experimented with a baseline model (described in Equation 3) to establish a foundation for the capacity of TRE models to summarize the temporal interval calculus.",
437
+ "bbox": [
438
+ 112,
439
+ 744,
440
+ 487,
441
+ 872
442
+ ],
443
+ "page_idx": 2
444
+ },
445
+ {
446
+ "type": "image",
447
+ "img_path": "images/9cc44225faa3052d8d38a98fc3c99faa7173e32b9526019e7bbf1e514ce8f632.jpg",
448
+ "image_caption": [
449
+ "Figure 1: Similarity measures of event pair representations with their inverses. Each dot represents a relation in the MATRES test set: green means the model classified the relation correctly and red means the model made a mistake. The box plots underneath show the quantile statistics. There is an obvious negative correlation between the correctness of the prediction and the similarity measure. This is evident from observing that the incorrect predictions (red points) are located in the upper region of the figure for BEFORE and AFTER."
450
+ ],
451
+ "image_footnote": [],
452
+ "bbox": [
453
+ 517,
454
+ 86,
455
+ 875,
456
+ 272
457
+ ],
458
+ "page_idx": 2
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "The baseline model has three components: a pretrained encoder (we use a RoBERTa-large model (Liu et al., 2019)), a 2-layer MLP module $(f_{1})$ that encodes the relation of the event pair under a unified representation scheme, and another single layer MLP $(f_{2})$ that decodes the relational representation into logits for each, different relational type:",
463
+ "bbox": [
464
+ 507,
465
+ 457,
466
+ 882,
467
+ 570
468
+ ],
469
+ "page_idx": 2
470
+ },
471
+ {
472
+ "type": "equation",
473
+ "text": "\n$$\n\\mathbf {E} = \\operatorname {e n c o d e r} (S) = [ \\mathbf {h} _ {1}, \\dots , \\mathbf {h} _ {n} ],\n$$\n",
474
+ "text_format": "latex",
475
+ "bbox": [
476
+ 557,
477
+ 582,
478
+ 808,
479
+ 599
480
+ ],
481
+ "page_idx": 2
482
+ },
483
+ {
484
+ "type": "equation",
485
+ "text": "\n$$\n\\mathbf {h} _ {\\left(e _ {1}, e _ {2}\\right)} = f _ {1} \\left(\\left[ \\mathbf {h} _ {e _ {1}} \\| \\mathbf {h} _ {e _ {2}} \\right]\\right), \\tag {3}\n$$\n",
486
+ "text_format": "latex",
487
+ "bbox": [
488
+ 557,
489
+ 602,
490
+ 880,
491
+ 620
492
+ ],
493
+ "page_idx": 2
494
+ },
495
+ {
496
+ "type": "equation",
497
+ "text": "\n$$\n\\mathbb {P} _ {\\mathcal {R}} \\left(e _ {1}, e _ {2}\\right) = \\operatorname {s o f t m a x} \\left(f _ {2} \\left(\\mathbf {h} _ {\\left(e _ {1}, e _ {2}\\right)}\\right)\\right).\n$$\n",
498
+ "text_format": "latex",
499
+ "bbox": [
500
+ 557,
501
+ 623,
502
+ 831,
503
+ 642
504
+ ],
505
+ "page_idx": 2
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "The implementation details and hyperparameter settings are described in Appendix A.",
510
+ "bbox": [
511
+ 507,
512
+ 653,
513
+ 880,
514
+ 686
515
+ ],
516
+ "page_idx": 2
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "Baseline Model Temporal Awareness Figure 1 shows the similarity between the relational representations $\\mathbf{h}_r^{\\rightarrow}$ and their symmetric duals $\\mathbf{h}_r^{\\leftarrow}$ as generated by the baseline model. We can see an obvious negative correlation between the correctness of the prediction and the similarity measure. This is evident from observing that the incorrect predictions (red points) are located in the upper region of the figure for BEFORE and AFTER. Furthermore, the baseline model often assigns similar representations to relations and their symmetric duals, even when the two are diametrically opposite in meaning. As shown by the box plot, the first quantile of both the BEFORE and AFTER relations occupy",
521
+ "bbox": [
522
+ 507,
523
+ 696,
524
+ 882,
525
+ 921
526
+ ],
527
+ "page_idx": 2
528
+ },
529
+ {
530
+ "type": "page_footnote",
531
+ "text": "2We ignore the VAGUE relation in this part of the analysis because whether symmetry applies to the VAGUE relation requires more careful consideration (Appendix D.3).",
532
+ "bbox": [
533
+ 112,
534
+ 882,
535
+ 487,
536
+ 921
537
+ ],
538
+ "page_idx": 2
539
+ },
540
+ {
541
+ "type": "page_number",
542
+ "text": "1523",
543
+ "bbox": [
544
+ 482,
545
+ 927,
546
+ 519,
547
+ 940
548
+ ],
549
+ "page_idx": 2
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "the upper part of the figure, which corresponds to high similarity. This shows that while fine-tuned models might have some basic perception of the significance of these temporal labels, it is by no means efficient, as all temporal labels are presented to the model as independent.",
554
+ "bbox": [
555
+ 112,
556
+ 84,
557
+ 487,
558
+ 181
559
+ ],
560
+ "page_idx": 3
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "2.4 ConTempo: The Method",
565
+ "text_level": 1,
566
+ "bbox": [
567
+ 112,
568
+ 193,
569
+ 354,
570
+ 210
571
+ ],
572
+ "page_idx": 3
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "Contrastive learning builds on the idea of pulling similar (positive) data points $(x, x^{+})$ closer together and pushing dissimilar (negative) data points $(x, x^{-})$ apart by adding a contrastive loss term to the training objective (Robinson et al., 2021). We thus need to define positive and negative samples for temporal relation instances, i.e., event pairs. In this section, we will explain how positive and negative samples are constructed based on whether the relation is symmetric (EQUAL) or antisymmetric (BEFORE, AFTER, INCLUDES, and IS INCLUDED), and define how we compute the temporally contrastive loss term $\\ell_{\\mathrm{tc}}$ .",
577
+ "bbox": [
578
+ 110,
579
+ 216,
580
+ 489,
581
+ 425
582
+ ],
583
+ "page_idx": 3
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "Our implementation of ConTempo is inspired by SimCSE's (Gao et al., 2021) use of contrastive learning on natural language inference (NLI) data. We likewise use a normalized temperature-scaled cross-entropy loss (NT-Xent; Chen et al., 2020).",
588
+ "bbox": [
589
+ 112,
590
+ 426,
591
+ 489,
592
+ 507
593
+ ],
594
+ "page_idx": 3
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Antisymmetric Relations For an antisymmetric relation $\\mathbf{h}_r^{\\rightarrow} = \\mathbf{h}_{(e_1,e_2)}$ , we regard the dual of the relation $\\mathbf{h}_r^{\\leftarrow} = \\mathbf{h}_{(e_2,e_1)}$ as a hard negative sample. However, we cannot construct further positive samples using temporal reasoning. Instead, we follow SimCSE's unsupervised approach to obtain positive pairs through the use of independently sampled dropout masks. Standard transformers will apply dropout (default $p = 0.1$ ) at different locations in the model. Therefore, we simply feed the same input to our model twice to obtain two relational representations $\\mathbf{h}_r^{\\rightarrow}$ and $\\mathbf{h}_r^+$ that are slightly different; different dropout masks having been applied during the two encoding passes. Therefore, we can compute the ConTempo loss by:",
599
+ "bbox": [
600
+ 112,
601
+ 519,
602
+ 489,
603
+ 760
604
+ ],
605
+ "page_idx": 3
606
+ },
607
+ {
608
+ "type": "equation",
609
+ "text": "\n$$\n\\ell_ {\\mathrm {t c}} = - \\log \\frac {e ^ {\\operatorname {s i m} \\left(\\mathbf {h} _ {r} ^ {\\rightarrow} , \\mathbf {h} _ {r} ^ {+}\\right) / \\tau}}{e ^ {\\operatorname {s i m} \\left(\\mathbf {h} _ {r} ^ {\\rightarrow} , \\mathbf {h} _ {r} ^ {+}\\right) / \\tau} + e ^ {\\operatorname {s i m} \\left(\\mathbf {h} _ {r} ^ {\\rightarrow} , \\mathbf {h} _ {r} ^ {\\leftarrow}\\right) / \\tau}}, \\tag {4}\n$$\n",
610
+ "text_format": "latex",
611
+ "bbox": [
612
+ 126,
613
+ 774,
614
+ 487,
615
+ 812
616
+ ],
617
+ "page_idx": 3
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "where $\\tau$ is a temperature hyperparameter.",
622
+ "bbox": [
623
+ 112,
624
+ 824,
625
+ 423,
626
+ 839
627
+ ],
628
+ "page_idx": 3
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "Unlike SimCSE, however, we did not treat other relational representations in the same mini-batch as negatives. While we are certain that the relation yields the exact dual when we reverse the order of the two events $((e_1,e_2)$ vs. $(e_2,e_1))$ , the compari",
633
+ "bbox": [
634
+ 112,
635
+ 841,
636
+ 489,
637
+ 921
638
+ ],
639
+ "page_idx": 3
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "son is less clear when it is made between different event pairs. Consider the following examples:",
644
+ "bbox": [
645
+ 507,
646
+ 84,
647
+ 882,
648
+ 116
649
+ ],
650
+ "page_idx": 3
651
+ },
652
+ {
653
+ "type": "list",
654
+ "sub_type": "text",
655
+ "list_items": [
656
+ "(1) Alan Turing studied at Cambridge for his undergraduate degree and attended Princeton for his Ph.D.",
657
+ "(2) I failed $e_3$ my calculus course and then cried $e_4$ all night in a McDonald's."
658
+ ],
659
+ "bbox": [
660
+ 527,
661
+ 126,
662
+ 882,
663
+ 212
664
+ ],
665
+ "page_idx": 3
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "While both temporal relations $r_1 = (e_1, e_2)$ and $r_2 = (e_3, e_4)$ share the same BEFORE label, it is difficult to say whether they can be regarded as a positive pair, because they are different in many respects. First, we know that $e_1$ and $e_2$ are years apart but $e_3$ and $e_4$ happen on the same day. Second, we infer BEFORE for different reasons. We know that $e_1$ happened before $e_2$ through common-sense: a person needs to complete their undergraduate study before working towards a Ph.D. But we conclude that $e_3$ happened before $e_4$ because of and then and a likely causal relation between failing the course and crying. We want to preserve these differences and therefore avoid pushing the representations of $r_1$ and $r_2$ closer together.",
670
+ "bbox": [
671
+ 507,
672
+ 219,
673
+ 882,
674
+ 461
675
+ ],
676
+ "page_idx": 3
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "We also do not need to consider relations with different labels, such as $r_1^{\\rightarrow} = (e_1,e_2)$ and $r_2^{\\leftarrow} = (e_4,e_3)$ , as negative samples. Intuitively, contrastive learning is more effective when the negative samples occur nearby but should be far apart (Robinson et al., 2021). Since event pairs from different sentences contain drastically different syntactic and semantic information, it is not a serious problem for the classifier to distinguish them.",
681
+ "bbox": [
682
+ 507,
683
+ 463,
684
+ 882,
685
+ 607
686
+ ],
687
+ "page_idx": 3
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "Symmetric Relations For a symmetric relation $\\mathbf{h}_r^{\\rightarrow} = \\mathbf{h}_{(e_1,e_2)}$ , we use the dual of the relation $\\mathbf{h}_r^{\\leftarrow} = \\mathbf{h}_{(e_1,e_2)}$ as an additional, positive sample. Unlike with antisymmetric relations, we follow SimCSE and use other relations in the same minibatch $(B)$ as negative samples:",
692
+ "bbox": [
693
+ 507,
694
+ 617,
695
+ 882,
696
+ 713
697
+ ],
698
+ "page_idx": 3
699
+ },
700
+ {
701
+ "type": "equation",
702
+ "text": "\n$$\n\\ell_ {\\mathrm {t c}} = - \\log \\frac {e ^ {\\operatorname {s i m} \\left(\\mathbf {h} _ {r} ^ {\\rightarrow} , \\mathbf {h} _ {r} ^ {\\leftarrow}\\right) / \\tau}}}{\\sum_ {i \\in B} \\left(e ^ {\\operatorname {s i m} \\left(\\mathbf {h} _ {r} ^ {\\rightarrow} , \\mathbf {h} _ {i}\\right) / \\tau} + e ^ {\\operatorname {s i m} \\left(\\mathbf {h} _ {r} ^ {\\leftarrow} , \\mathbf {h} _ {i}\\right) / \\tau}\\right)}. \\tag {5}\n$$\n",
703
+ "text_format": "latex",
704
+ "bbox": [
705
+ 507,
706
+ 725,
707
+ 882,
708
+ 774
709
+ ],
710
+ "page_idx": 3
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "We choose a different design here than for antisymmetric relations because it is impossible to construct true hard negative samples for symmetric relations. Also, we do not check whether other samples in the mini-batch have the same relation label as $\\mathbf{h}_r^{\\rightarrow}$ because EQUAL is the least common relation type. With only $3.8\\%$ in MATRES and $1.7\\%$ of the relations in TBD, it is very rare that there are multiple EQUAL relations in the same",
715
+ "bbox": [
716
+ 507,
717
+ 776,
718
+ 882,
719
+ 920
720
+ ],
721
+ "page_idx": 3
722
+ },
723
+ {
724
+ "type": "page_number",
725
+ "text": "1524",
726
+ "bbox": [
727
+ 482,
728
+ 928,
729
+ 519,
730
+ 940
731
+ ],
732
+ "page_idx": 3
733
+ },
734
+ {
735
+ "type": "image",
736
+ "img_path": "images/6fb1a28fcd93d544baa0cb6b86d36e098a1a1eab2aceb764e346e1c9203aba30.jpg",
737
+ "image_caption": [
738
+ "Figure 2: The efficacy of ConTempo at increasing the model's awareness of temporal relations and their implications through temporal reasoning."
739
+ ],
740
+ "image_footnote": [],
741
+ "bbox": [
742
+ 117,
743
+ 84,
744
+ 480,
745
+ 235
746
+ ],
747
+ "page_idx": 4
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "mini-batch, so the effect of a colliding relation type is negligible.",
752
+ "bbox": [
753
+ 112,
754
+ 322,
755
+ 485,
756
+ 355
757
+ ],
758
+ "page_idx": 4
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "Final Training Objective The ConTempo loss is added to the final training objective with a scaling hyperparameter $\\gamma$ (Equation 6). The classification loss $\\ell_{\\mathrm{clf}}$ is the standard cross-entropy loss computed using the model's output logits:",
763
+ "bbox": [
764
+ 112,
765
+ 374,
766
+ 485,
767
+ 455
768
+ ],
769
+ "page_idx": 4
770
+ },
771
+ {
772
+ "type": "equation",
773
+ "text": "\n$$\n\\ell = \\ell_ {\\mathrm {c l f}} + \\gamma \\cdot \\ell_ {\\mathrm {t c}}. \\tag {6}\n$$\n",
774
+ "text_format": "latex",
775
+ "bbox": [
776
+ 233,
777
+ 476,
778
+ 485,
779
+ 492
780
+ ],
781
+ "page_idx": 4
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "2.5 Experiment: ConTempo at Increasing Temporal Relation Awareness",
786
+ "text_level": 1,
787
+ "bbox": [
788
+ 112,
789
+ 518,
790
+ 457,
791
+ 550
792
+ ],
793
+ "page_idx": 4
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "Here we present the effectiveness of ConTempo at increasing temporal relation awareness. In this section, we trained an enhanced ConTempo baseline that is identical to the fine-tuned baseline but with ConTempo loss added to the model. We trained the model using the same hyperparemeters for the same amount of time.",
798
+ "bbox": [
799
+ 112,
800
+ 561,
801
+ 487,
802
+ 671
803
+ ],
804
+ "page_idx": 4
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "In Figure 2, we compare ConTempo with baselines using the same similarity measures. We can observe that the similarity of the model's representation of a relation in comparison to its dual drops significantly after ConTempo is applied. Furthermore, now we can observe that the vast majority of similarity measures occupy the lower section of the figure, suggesting that ConTempo is effective at making antisymmetric relations generate representations that are distinct from their duals.",
809
+ "bbox": [
810
+ 112,
811
+ 677,
812
+ 487,
813
+ 837
814
+ ],
815
+ "page_idx": 4
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "Unfortunately, we also see a similar drop in similarity for the symmetric relation (EQUAL). We believe this is caused by a data imbalance as there are too few EQUAL instances to balance the overall effect of the antisymmetric relations.",
820
+ "bbox": [
821
+ 112,
822
+ 841,
823
+ 487,
824
+ 920
825
+ ],
826
+ "page_idx": 4
827
+ },
828
+ {
829
+ "type": "table",
830
+ "img_path": "images/ad03bb117c23e0fde3897f0b637d72c73eb3a39c3eeda07c724291c6de5955d4.jpg",
831
+ "table_caption": [],
832
+ "table_footnote": [],
833
+ "table_body": "<table><tr><td>Method</td><td>MATRES</td><td>Antisym. Rel. Sim</td><td>Sym. Rel. Sim</td></tr><tr><td>RoBERTa</td><td>80.76</td><td>0.127</td><td>0.424</td></tr><tr><td>Data Expansion</td><td>80.16</td><td>-0.205</td><td>0.148</td></tr><tr><td>Relative Time</td><td>81.01</td><td>-0.237</td><td>0.144</td></tr><tr><td>Logical Constraints</td><td>81.26</td><td>-0.302</td><td>-0.102</td></tr><tr><td>ConTempo (Ours)</td><td>82.01</td><td>-0.352</td><td>-0.080</td></tr></table>",
834
+ "bbox": [
835
+ 526,
836
+ 80,
837
+ 867,
838
+ 162
839
+ ],
840
+ "page_idx": 4
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Table 2: The effectiveness of different methods at improving temporal relation awareness. The table reports each method's performance together with the average similarity measure for all the antisymmetric and symmetric relations.",
845
+ "bbox": [
846
+ 507,
847
+ 172,
848
+ 882,
849
+ 242
850
+ ],
851
+ "page_idx": 4
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "2.6 Previous Attempts at Increasing Temporal Calculus Awareness",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 507,
859
+ 269,
860
+ 880,
861
+ 300
862
+ ],
863
+ "page_idx": 4
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Does similarity reduction really lead to better temporal label awareness? Also, are there any other ways to increase temporal label awareness? Unfortunately, it is impossible to measure temporal label awareness directly, but we can infer it indirectly by observing the model's performance.",
868
+ "bbox": [
869
+ 507,
870
+ 307,
871
+ 882,
872
+ 401
873
+ ],
874
+ "page_idx": 4
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "In this section we compared ConTempo with three previous methods that attempted to address similar problems. In the following paragraphs, we elucidate these methods, as they could also increase temporal relation awareness. In Table 2, we compare the effectiveness of all three with ConTempo. We use the same model setting for each method for a fair comparison. Overall, ConTempo is the most effective at reducing similarity. It also has the best performance on MATRES. This suggests ConTempo could help the model create more effective representations for TRE prediction.",
879
+ "bbox": [
880
+ 507,
881
+ 404,
882
+ 882,
883
+ 596
884
+ ],
885
+ "page_idx": 4
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "Inverse Data Expansion Huang et al. (2023) simply expand the training set by adding all the inverse relations. This straightforward approach, however, does not address the issue that temporal relation labels are presented independently.",
890
+ "bbox": [
891
+ 507,
892
+ 606,
893
+ 880,
894
+ 686
895
+ ],
896
+ "page_idx": 4
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "Relative Time Prediction Wen and Ji (2021) employed a relative timestamp prediction component to regulate the training process by predicting a real number (\"relative event time,\" RET) that indicates the relative position of events in a timeline. This component is trained to maximize the distance between events in antisymmetric relations and to minimize the distance between events that are equal. This approach shares broad similarities with contrastive learning but faces two major challenges. First, relative event-time prediction in RET is ultimately computed for each single event individually, which is impossible. By contrast, Contempo considers events in pairs and accounts only",
901
+ "bbox": [
902
+ 507,
903
+ 696,
904
+ 882,
905
+ 921
906
+ ],
907
+ "page_idx": 4
908
+ },
909
+ {
910
+ "type": "page_number",
911
+ "text": "1525",
912
+ "bbox": [
913
+ 482,
914
+ 927,
915
+ 519,
916
+ 940
917
+ ],
918
+ "page_idx": 4
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "for relative information. Second, this model cannot specify the absolute distance between events, meaning it does not differentiate between events that occur seconds apart and those that are days apart. It also makes predicting chains of events (e.g., $e_1 < e_2 < \\ldots < e_5$ where $<$ indicates AFTER) difficult, as the model needs to balance various data points across the entire dataset and precisely position each event within the relative time range. ConTempo does not face this issue as the time distance between any two events $(e_1, e_2)$ remains consistent regardless of the direction.",
923
+ "bbox": [
924
+ 112,
925
+ 84,
926
+ 489,
927
+ 277
928
+ ],
929
+ "page_idx": 5
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "Logical Constraints Wang et al. (2020) proposed to impose soft logical constraints by adding a loss term that is calculated based on the model's output logits. In particular:",
934
+ "bbox": [
935
+ 112,
936
+ 287,
937
+ 489,
938
+ 351
939
+ ],
940
+ "page_idx": 5
941
+ },
942
+ {
943
+ "type": "equation",
944
+ "text": "\n$$\n\\ell_ {S} = \\sum \\left| \\log r \\left(e _ {1}, e _ {2}\\right) - \\log \\bar {r} \\left(e _ {2}, e _ {1}\\right) \\right|, \\tag {7}\n$$\n",
945
+ "text_format": "latex",
946
+ "bbox": [
947
+ 139,
948
+ 363,
949
+ 487,
950
+ 387
951
+ ],
952
+ "page_idx": 5
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "where $r(e_1, e_2)$ denotes the logits the model outputs for relation type $r$ given $(e_1, e_2)$ as the input, and $\\bar{r}$ denotes the dual of the relation. Other logical constraints such as transitivity are also enforced by Wang et al. (2020); we temporarily skip those as they are not relevant to the topic of the current section. We will return to a discussion of other types of constraint in Section 3.3.",
957
+ "bbox": [
958
+ 112,
959
+ 398,
960
+ 489,
961
+ 526
962
+ ],
963
+ "page_idx": 5
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "Logical constraint loss has some surface-level resemblance to ConTempo loss, but their method focuses on the output logits whereas ours focuses on regulating the quality of the models' representations. The major motivation for Wang et al. (2020) to add logical constraints was to avoid label conflicts; enhancing the model's understanding of temporal relation labels was secondary.",
968
+ "bbox": [
969
+ 112,
970
+ 527,
971
+ 489,
972
+ 657
973
+ ],
974
+ "page_idx": 5
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "3 The Unified Framework",
979
+ "text_level": 1,
980
+ "bbox": [
981
+ 112,
982
+ 669,
983
+ 357,
984
+ 684
985
+ ],
986
+ "page_idx": 5
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "Our survey of previous systems suggests that the reusability of innovations of TRE has been limited. For example, papers working on GNN-encoding of document-level information (Zhang et al., 2022; Mathur et al., 2021; Yao et al., 2022) rarely incorporate other published innovations, such as additional common-sense information, in their models. We call for more collaboration between different directions of TRE research.",
991
+ "bbox": [
992
+ 112,
993
+ 695,
994
+ 489,
995
+ 838
996
+ ],
997
+ "page_idx": 5
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "In this section, we argue that ConTempo is compatible with various recent innovations across different research directions. In particular, ConTempo is complementary to: (1) GNN encodings of event and context information, (2) incorpora",
1002
+ "bbox": [
1003
+ 112,
1004
+ 841,
1005
+ 489,
1006
+ 921
1007
+ ],
1008
+ "page_idx": 5
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "ing common-sense information, and (3) the soft enforcement of logical constraints.",
1013
+ "bbox": [
1014
+ 507,
1015
+ 84,
1016
+ 882,
1017
+ 116
1018
+ ],
1019
+ "page_idx": 5
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "3.1 Event and Context Encoder",
1024
+ "text_level": 1,
1025
+ "bbox": [
1026
+ 507,
1027
+ 127,
1028
+ 774,
1029
+ 142
1030
+ ],
1031
+ "page_idx": 5
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "All natural language understanding models need methods to encode their input sequence into vectorized representations, and to extract the relevant event and context representations. Currently, researchers typically use pre-trained language models such as BERT (Devlin et al., 2019) or RoBERTa to encode the input sequence because of the rich information these models gather during pre-training.",
1036
+ "bbox": [
1037
+ 505,
1038
+ 148,
1039
+ 884,
1040
+ 275
1041
+ ],
1042
+ "page_idx": 5
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "In TRE, an event is usually described by a complete phrase or even an entire clause. But since it is hard to annotate a discontinuous sequence, TRE corpora typically label the semantic head as the sole event trigger to represent the complete event. Extracting representations from only the event triggers may not obtain all the relevant information to make a correct prediction, however.",
1047
+ "bbox": [
1048
+ 507,
1049
+ 278,
1050
+ 884,
1051
+ 404
1052
+ ],
1053
+ "page_idx": 5
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Therefore, TRE systems now utilize Graph Neural Networks (GNNs) to encode additional information about events and context. Zhang et al. (2022) proposed using dependency trees to help the model access different event arguments. TIMERS (Mathur et al., 2021) proposed using a GNN to encode three graphs: a sentence structure graph, a temporal structure graph, and a discourse structure graph. More recently, MulCo (Yao et al., 2022) reported better results using only the sentence $(\\mathcal{G}_S)$ and temporal $(\\mathcal{G}_T)$ structure graphs. They achieved better results with fewer graphs by using multiscale contrastive learning between the fine-tuning of BERT and the training of the GNN to decrease GPU memory usage. Unlike ConTempo, their contrastive learning is not used to enhance the understanding of temporal labels.",
1058
+ "bbox": [
1059
+ 507,
1060
+ 406,
1061
+ 884,
1062
+ 678
1063
+ ],
1064
+ "page_idx": 5
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "We add MulCo to the unified framework by concatenating the GNNs' outputs to the event representations as $\\tilde{\\mathbf{h}}_e = [\\mathbf{h}_e^{\\mathcal{G}_S} \\parallel \\mathbf{h}_e^{\\mathcal{G}_T} \\parallel \\mathbf{h}_e]$ .",
1069
+ "bbox": [
1070
+ 507,
1071
+ 680,
1072
+ 884,
1073
+ 728
1074
+ ],
1075
+ "page_idx": 5
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Please refer to Yao et al. (2022) for the detailed description of their model. We provide only a quick overview in Appendix B.",
1080
+ "bbox": [
1081
+ 507,
1082
+ 728,
1083
+ 882,
1084
+ 776
1085
+ ],
1086
+ "page_idx": 5
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "3.2 Common-sense Information",
1091
+ "text_level": 1,
1092
+ "bbox": [
1093
+ 507,
1094
+ 788,
1095
+ 774,
1096
+ 802
1097
+ ],
1098
+ "page_idx": 5
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Similar to event and context encoding, we can also add additional features from external sources to enhance the representation. The feasibility of our unified framework is demonstrated by admitting temporal common-sense information.",
1103
+ "bbox": [
1104
+ 507,
1105
+ 809,
1106
+ 882,
1107
+ 887
1108
+ ],
1109
+ "page_idx": 5
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Earlier TRE methods (Ning et al., 2018a, 2019; Wang et al., 2020) used temporal information de",
1114
+ "bbox": [
1115
+ 507,
1116
+ 889,
1117
+ 882,
1118
+ 921
1119
+ ],
1120
+ "page_idx": 5
1121
+ },
1122
+ {
1123
+ "type": "page_number",
1124
+ "text": "1526",
1125
+ "bbox": [
1126
+ 482,
1127
+ 927,
1128
+ 519,
1129
+ 940
1130
+ ],
1131
+ "page_idx": 5
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "GPT-3 Prompt:",
1136
+ "bbox": [
1137
+ 129,
1138
+ 86,
1139
+ 223,
1140
+ 99
1141
+ ],
1142
+ "page_idx": 6
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "But the great-uncle of 6-year-old shipwreck survivor rafter Elian Gonzalez only ducked his head and walked faster.",
1147
+ "bbox": [
1148
+ 127,
1149
+ 105,
1150
+ 473,
1151
+ 140
1152
+ ],
1153
+ "page_idx": 6
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Q: In about 10 words describe how long does the event \"ducked\" typically last.",
1158
+ "bbox": [
1159
+ 129,
1160
+ 141,
1161
+ 472,
1162
+ 165
1163
+ ],
1164
+ "page_idx": 6
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "A: Ducking typically lasts only a few seconds.",
1169
+ "bbox": [
1170
+ 129,
1171
+ 165,
1172
+ 421,
1173
+ 175
1174
+ ],
1175
+ "page_idx": 6
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Figure 3: An example prompt and response for GPT-3. The context sentence is highlighted in orange, the event trigger, in red and GPT-3's response, in green.",
1180
+ "bbox": [
1181
+ 112,
1182
+ 191,
1183
+ 487,
1184
+ 235
1185
+ ],
1186
+ "page_idx": 6
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "rived from simple heuristics, or from corpora such as TempProb, which contains typical temporal-relation information between event triggers. Unfortunately, TempProb's coverage and accuracy is limited. Alternatively, the MC-TACO corpus (Zhou et al., 2019) was developed for temporal commonsense knowledge, presenting typical duration information through answers to multiple-choice questions. This approach, however, requires the model to select a typical duration from a restricted set of pre-defined options, and is incapable of addressing typical granularity and underspecificity problems. Our system is the first to apply temporal commonsense information from LLMs for TRE purposes.",
1191
+ "bbox": [
1192
+ 112,
1193
+ 261,
1194
+ 489,
1195
+ 487
1196
+ ],
1197
+ "page_idx": 6
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "We used GPT-3 (text-davinci-003), employing the template illustrated in Figure 3, to obtain descriptions of the typical durations of events in MATRES. We then use our system's underlying RoBERTa encoder to encode a description of the typical duration, and use the [CLS]-pooler output as the representation, denoted as $\\mathbf{h}_e^{\\mathrm{dur}}$ .",
1202
+ "bbox": [
1203
+ 112,
1204
+ 488,
1205
+ 487,
1206
+ 602
1207
+ ],
1208
+ "page_idx": 6
1209
+ },
1210
+ {
1211
+ "type": "equation",
1212
+ "text": "\n$$\n\\hat {\\mathbf {h}} _ {e} = \\left[ \\mathbf {h} _ {e} ^ {\\text {d u r}} \\| \\tilde {\\mathbf {h}} _ {e} \\right] \\tag {8}\n$$\n",
1213
+ "text_format": "latex",
1214
+ "bbox": [
1215
+ 240,
1216
+ 615,
1217
+ 487,
1218
+ 640
1219
+ ],
1220
+ "page_idx": 6
1221
+ },
1222
+ {
1223
+ "type": "equation",
1224
+ "text": "\n$$\n\\mathbf {h} _ {(e _ {1}, e _ {2})} = f _ {1} \\left(\\left[ \\begin{array}{l l} \\mathbf {h} _ {e _ {1}} & \\parallel \\\\ \\hline \\end{array} \\right] \\mathbf {h} _ {e _ {2}}\\right)\n$$\n",
1225
+ "text_format": "latex",
1226
+ "bbox": [
1227
+ 203,
1228
+ 639,
1229
+ 396,
1230
+ 656
1231
+ ],
1232
+ "page_idx": 6
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "3.3 Training Objective",
1237
+ "text_level": 1,
1238
+ "bbox": [
1239
+ 114,
1240
+ 682,
1241
+ 307,
1242
+ 697
1243
+ ],
1244
+ "page_idx": 6
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "The third type of innovation is the modification of the training objective. ConTempo itself is an innovation to the training objective.",
1249
+ "bbox": [
1250
+ 112,
1251
+ 705,
1252
+ 485,
1253
+ 753
1254
+ ],
1255
+ "page_idx": 6
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "In this section, we show that ConTempo is compatible with other techniques that have been applied to training objectives. We have incorporated the aforementioned soft logical constraints (Wang et al., 2020) into the unified framework.",
1260
+ "bbox": [
1261
+ 112,
1262
+ 753,
1263
+ 487,
1264
+ 833
1265
+ ],
1266
+ "page_idx": 6
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "We add both the symmetric loss $(\\ell_S)$ and the conjunction loss $(\\ell_C)$ to the loss function. There is a bit of overlap between Wang et al.'s (2020)",
1271
+ "bbox": [
1272
+ 112,
1273
+ 835,
1274
+ 487,
1275
+ 883
1276
+ ],
1277
+ "page_idx": 6
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "symmetric loss and ConTempo loss, but as previously discussed, we focus on regulating the representation whereas Wang et al.'s (2020) focus on avoiding label conflicts. ConTempo and the logical constraints complement each other, however, as ConTempo does not attempt to treat transitivity within contrastive learning. Instead, it is covered by conjunction restrictions. The loss terms are:",
1282
+ "bbox": [
1283
+ 507,
1284
+ 84,
1285
+ 884,
1286
+ 212
1287
+ ],
1288
+ "page_idx": 6
1289
+ },
1290
+ {
1291
+ "type": "equation",
1292
+ "text": "\n$$\n\\ell_ {S} = \\sum \\left| \\log r \\left(e _ {1}, e _ {2}\\right) - \\log \\bar {r} \\left(e _ {2}, e _ {1}\\right) \\right|, \\tag {9}\n$$\n",
1293
+ "text_format": "latex",
1294
+ "bbox": [
1295
+ 534,
1296
+ 224,
1297
+ 880,
1298
+ 253
1299
+ ],
1300
+ "page_idx": 6
1301
+ },
1302
+ {
1303
+ "type": "equation",
1304
+ "text": "\n$$\n\\ell_ {C} = \\sum | L _ {t _ {1}} | + \\sum | L _ {t _ {2}} |\n$$\n",
1305
+ "text_format": "latex",
1306
+ "bbox": [
1307
+ 536,
1308
+ 250,
1309
+ 736,
1310
+ 272
1311
+ ],
1312
+ "page_idx": 6
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "where $L_{t_1}$ and $L_{t_2}$ are defined as:",
1317
+ "bbox": [
1318
+ 507,
1319
+ 282,
1320
+ 759,
1321
+ 299
1322
+ ],
1323
+ "page_idx": 6
1324
+ },
1325
+ {
1326
+ "type": "equation",
1327
+ "text": "\n$$\nL _ {t _ {1}} = \\log r _ {1} (e _ {1}, e _ {2}) + \\log r _ {2} (e _ {2}, e _ {3}) - \\log r _ {3} (e _ {1}, e _ {3}),\n$$\n",
1328
+ "text_format": "latex",
1329
+ "bbox": [
1330
+ 509,
1331
+ 309,
1332
+ 852,
1333
+ 324
1334
+ ],
1335
+ "page_idx": 6
1336
+ },
1337
+ {
1338
+ "type": "equation",
1339
+ "text": "\n$$\nL _ {t _ {2}} = \\log r _ {1} \\left(e _ {1}, e _ {2}\\right) + \\log r _ {2} \\left(e _ {2}, e _ {3}\\right) - \\log \\left(1 - r _ {4} \\left(e _ {1}, e _ {3}\\right)\\right). \\tag {10}\n$$\n",
1340
+ "text_format": "latex",
1341
+ "bbox": [
1342
+ 512,
1343
+ 326,
1344
+ 885,
1345
+ 351
1346
+ ],
1347
+ "page_idx": 6
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "See Wang et al. (2020) for details, including the induction table for the conjunctive constraints. The final training objective is:",
1352
+ "bbox": [
1353
+ 507,
1354
+ 362,
1355
+ 882,
1356
+ 411
1357
+ ],
1358
+ "page_idx": 6
1359
+ },
1360
+ {
1361
+ "type": "equation",
1362
+ "text": "\n$$\n\\ell = \\ell_ {\\mathrm {c l f}} + \\gamma \\cdot \\ell_ {\\mathrm {t c}} + \\lambda_ {S} \\cdot \\ell_ {S} + \\lambda_ {C} \\cdot \\ell_ {C}. \\tag {11}\n$$\n",
1363
+ "text_format": "latex",
1364
+ "bbox": [
1365
+ 539,
1366
+ 423,
1367
+ 882,
1368
+ 439
1369
+ ],
1370
+ "page_idx": 6
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "4 Experiments",
1375
+ "text_level": 1,
1376
+ "bbox": [
1377
+ 507,
1378
+ 464,
1379
+ 655,
1380
+ 480
1381
+ ],
1382
+ "page_idx": 6
1383
+ },
1384
+ {
1385
+ "type": "text",
1386
+ "text": "4.1 Experimental Setup",
1387
+ "text_level": 1,
1388
+ "bbox": [
1389
+ 507,
1390
+ 489,
1391
+ 712,
1392
+ 505
1393
+ ],
1394
+ "page_idx": 6
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "The hyperparameter settings and training details are explained in Appendix A.",
1399
+ "bbox": [
1400
+ 507,
1401
+ 510,
1402
+ 880,
1403
+ 542
1404
+ ],
1405
+ "page_idx": 6
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "Data We experimented with both MATRES (Ning et al., 2018b) and TBD (Cassidy et al., 2014), the two popular corpora that are most often used to benchmark TRE systems. Both are derived from the TimeBank Corpus (Pustejovsky et al., 2003), which is annotated using the TimeML standard (Pustejovsky et al., 2005). The VAGUE labels are computed into the F1s for both MATRES and TBD but are regarded as negative labels.",
1410
+ "bbox": [
1411
+ 507,
1412
+ 550,
1413
+ 882,
1414
+ 695
1415
+ ],
1416
+ "page_idx": 6
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "TBD is a dense re-annotation of the TimeBank corpus where every possible pair of events/times in a given window is forced to be annotated regardless of whether there exists a specified temporal relation. As a result, TBD has ample data samples (12715 relations from 39 articles) but a relatively low inter-annotator agreement, with Cohen's (1960) $\\kappa$ ranging between 0.56 and 0.64.",
1421
+ "bbox": [
1422
+ 507,
1423
+ 696,
1424
+ 882,
1425
+ 822
1426
+ ],
1427
+ "page_idx": 6
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "MATRES aimed at reducing noise in TBD's annotation. It introduced the concept of orthogonal temporal axes for hypothetical, negated, opined, and static events. In practice, these events are ignored during temporal relation annotation. They further reduced the number of temporal relations",
1432
+ "bbox": [
1433
+ 507,
1434
+ 825,
1435
+ 882,
1436
+ 920
1437
+ ],
1438
+ "page_idx": 6
1439
+ },
1440
+ {
1441
+ "type": "page_footnote",
1442
+ "text": "3The prompts and the generated responses from GPT-3 will be made publicly accessible online.",
1443
+ "bbox": [
1444
+ 112,
1445
+ 894,
1446
+ 485,
1447
+ 920
1448
+ ],
1449
+ "page_idx": 6
1450
+ },
1451
+ {
1452
+ "type": "page_number",
1453
+ "text": "1527",
1454
+ "bbox": [
1455
+ 482,
1456
+ 927,
1457
+ 519,
1458
+ 940
1459
+ ],
1460
+ "page_idx": 6
1461
+ },
1462
+ {
1463
+ "type": "table",
1464
+ "img_path": "images/2c1caac18c2ffad93f4bf68dd7d3c629fc1311cd0b486acf83a372735e5137e3.jpg",
1465
+ "table_caption": [],
1466
+ "table_footnote": [],
1467
+ "table_body": "<table><tr><td>Model</td><td>CleanMATRES</td><td>MATRES</td><td>TimeBank-Dense</td></tr><tr><td>ChatGPT 3.5</td><td>65.29</td><td>25.94</td><td>53.06</td></tr><tr><td>ChatGPT 3.5 (CoT)</td><td>66.97</td><td>35.54</td><td>57.14</td></tr><tr><td>ChatGPT 4</td><td>76.47</td><td>41.64</td><td>67.58</td></tr><tr><td>ChatGPT 4 (CoT)</td><td>80.76</td><td>56.70</td><td>65.14</td></tr><tr><td>Fine-tuned GPT 3.5</td><td>73.41</td><td>55.27</td><td>61.71</td></tr><tr><td>LSTM (Cheng and Miyao, 2017)</td><td>-</td><td>73.4</td><td>62.2</td></tr><tr><td>SCS-EERE* (Man et al., 2022)</td><td>91.25</td><td>80.98</td><td>65.92</td></tr><tr><td>Joint Constrained Learning (Wang et al., 2020)</td><td>-</td><td>78.8</td><td>-</td></tr><tr><td>Relative Time* (Wen and Ji, 2021)</td><td>89.61</td><td>81.63</td><td>66.81</td></tr><tr><td>MulCo* (Yao et al., 2022)</td><td>91.34</td><td>82.08</td><td>67.51</td></tr><tr><td>TIMERS (Mathur et al., 2021)</td><td>-</td><td>82.3</td><td>67.8</td></tr><tr><td>Endpoint Comparisons (Huang et al., 2023)</td><td>-</td><td>82.6</td><td>68.1</td></tr><tr><td>ConTempo Baseline</td><td>91.35</td><td>82.01</td><td>67.78</td></tr><tr><td>ConTempo + Unified Framework (Ours)</td><td>92.66</td><td>83.17</td><td>68.56</td></tr></table>",
1468
+ "bbox": [
1469
+ 184,
1470
+ 80,
1471
+ 815,
1472
+ 291
1473
+ ],
1474
+ "page_idx": 7
1475
+ },
1476
+ {
1477
+ "type": "text",
1478
+ "text": "down to only four types. They also simplified the annotation scheme by asking the annotators to compare only the start times of events, as the end time of a durative event can often be ambiguous and cause confusion. During our survey of TRE baselines, we found that there are actually several versions of MATRES being used by different research labs (see Appendix C). We use the version that is available on the Ning et al.'s (2018b) GitHub page<sup>4</sup> and reproduced several key baseline systems' performances using our unified evaluation standards.",
1479
+ "bbox": [
1480
+ 112,
1481
+ 354,
1482
+ 487,
1483
+ 530
1484
+ ],
1485
+ "page_idx": 7
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "During the development of ConTempo, we discovered a large number of annotation errors in both MATRES and TBD. To further reduce the noise in the annotations, we re-examined and corrected the test set annotations of MATRES, creating the CleanMATRES test set. We will detail the process and describe the data in Section D.",
1490
+ "bbox": [
1491
+ 112,
1492
+ 532,
1493
+ 489,
1494
+ 644
1495
+ ],
1496
+ "page_idx": 7
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "Baseline Systems We compared ConTempo's performance with seven prior systems: LSTM (Cheng and Miyao, 2017), SCS-EERE (Man et al., 2022), Joint Constrained Learning (Wang et al., 2020), Relative Time (Wen and Ji, 2021), MulCo (Yao et al., 2022), TIMERS (Mathur et al., 2021) and Endpoint Comparisons (Huang et al., 2023). We reproduced the results of SCS-EERE and Relative Time using their publicly available code. Additionally, we reimplemented MulCo according to the specifications provided in the paper.",
1501
+ "bbox": [
1502
+ 112,
1503
+ 657,
1504
+ 489,
1505
+ 834
1506
+ ],
1507
+ "page_idx": 7
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "LLM Baselines We incorporated the performance of LLMs as an additional baseline alongside the aforementioned baseline systems. Specifically,",
1512
+ "bbox": [
1513
+ 112,
1514
+ 846,
1515
+ 489,
1516
+ 895
1517
+ ],
1518
+ "page_idx": 7
1519
+ },
1520
+ {
1521
+ "type": "table",
1522
+ "img_path": "images/6ca3ef3d05076c7930b0bd4b2fb5ebbaefa99cc84294dfc640a9ed4b3a5eef7f.jpg",
1523
+ "table_caption": [
1524
+ "Table 3: F1 on CleanMATRES, MATRES and TBD. ConTempo achieved substantial improvements over strong baselines. Rows with results that we reproduced using the same evaluation settings as our model are labelled with * ."
1525
+ ],
1526
+ "table_footnote": [],
1527
+ "table_body": "<table><tr><td>Model</td><td>CleanMATRES</td></tr><tr><td>ConTempo + Unified Framework</td><td>92.66</td></tr><tr><td>- ConTempo</td><td>91.30 (-1.36)</td></tr><tr><td>- GNN</td><td>91.65 (-1.01)</td></tr><tr><td>- GPT-3 Typical Duration</td><td>92.06 (-0.60)</td></tr><tr><td>- Logical Constraints</td><td>92.14 (-0.52)</td></tr></table>",
1528
+ "bbox": [
1529
+ 526,
1530
+ 351,
1531
+ 867,
1532
+ 447
1533
+ ],
1534
+ "page_idx": 7
1535
+ },
1536
+ {
1537
+ "type": "text",
1538
+ "text": "Table 4: Ablation study results.",
1539
+ "bbox": [
1540
+ 586,
1541
+ 456,
1542
+ 803,
1543
+ 470
1544
+ ],
1545
+ "page_idx": 7
1546
+ },
1547
+ {
1548
+ "type": "text",
1549
+ "text": "we reproduced the results from Yuan et al.'s (2023) using both ChatGPT-3.5 and ChatGPT-4. Chain-of-thought (CoT) was deployed in the experiments. Additionally, we fine-tuned GPT-3.5 utilizing OpenAI's API using the suggested settings to perform the task.",
1550
+ "bbox": [
1551
+ 507,
1552
+ 497,
1553
+ 884,
1554
+ 592
1555
+ ],
1556
+ "page_idx": 7
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "4.2 Experimental Results",
1561
+ "text_level": 1,
1562
+ "bbox": [
1563
+ 507,
1564
+ 607,
1565
+ 726,
1566
+ 621
1567
+ ],
1568
+ "page_idx": 7
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "Table 3 reports the performance of our ConTempo model compared to other baseline models on CleanMATRES, MATRES, and TBD. The results of our models and our reproductions are the average over three different runs with different random seeds.",
1573
+ "bbox": [
1574
+ 507,
1575
+ 627,
1576
+ 882,
1577
+ 708
1578
+ ],
1579
+ "page_idx": 7
1580
+ },
1581
+ {
1582
+ "type": "text",
1583
+ "text": "Overall, ConTempo brings a substantial performance increase to the TRE model. Even the simple ConTempo baseline's performance is in the same ballpark as previous state-of-the-art systems. When enhanced by other innovations under the unified framework, our model outperformed the previous state-of-the-art models by $1.32\\%$ , $0.57\\%$ , and $0.46\\%$ for the three datasets, respectively.",
1584
+ "bbox": [
1585
+ 507,
1586
+ 709,
1587
+ 884,
1588
+ 839
1589
+ ],
1590
+ "page_idx": 7
1591
+ },
1592
+ {
1593
+ "type": "text",
1594
+ "text": "4.3 Ablation Study",
1595
+ "text_level": 1,
1596
+ "bbox": [
1597
+ 507,
1598
+ 851,
1599
+ 675,
1600
+ 866
1601
+ ],
1602
+ "page_idx": 7
1603
+ },
1604
+ {
1605
+ "type": "text",
1606
+ "text": "In order to evaluate the efficacy of the proposed components in the unified framework, we conducted an ablation study, wherein we removed one",
1607
+ "bbox": [
1608
+ 507,
1609
+ 873,
1610
+ 882,
1611
+ 921
1612
+ ],
1613
+ "page_idx": 7
1614
+ },
1615
+ {
1616
+ "type": "page_footnote",
1617
+ "text": "4https://github.com/qiangning/MATRES",
1618
+ "bbox": [
1619
+ 134,
1620
+ 904,
1621
+ 411,
1622
+ 920
1623
+ ],
1624
+ "page_idx": 7
1625
+ },
1626
+ {
1627
+ "type": "page_number",
1628
+ "text": "1528",
1629
+ "bbox": [
1630
+ 482,
1631
+ 927,
1632
+ 519,
1633
+ 940
1634
+ ],
1635
+ "page_idx": 7
1636
+ },
1637
+ {
1638
+ "type": "text",
1639
+ "text": "component at a time and reran the experiment using the aforementioned hyperparameters. The results of this study are presented in Table 4. Among the four components, contrastive learning demonstrated the most substantial impact on performance, with its removal leading to a $1.36\\%$ decrease in the model's effectiveness. The GNN module also makes a substantial contribution to overall performance. Finally, both GPT-3 typical duration information and logical constraints exhibit moderate effects on the system's performance.",
1640
+ "bbox": [
1641
+ 112,
1642
+ 84,
1643
+ 489,
1644
+ 261
1645
+ ],
1646
+ "page_idx": 8
1647
+ },
1648
+ {
1649
+ "type": "text",
1650
+ "text": "The ablation study result confirms our initial hypothesis: the primary challenge for these models has been making sense of relational labels.",
1651
+ "bbox": [
1652
+ 112,
1653
+ 263,
1654
+ 489,
1655
+ 312
1656
+ ],
1657
+ "page_idx": 8
1658
+ },
1659
+ {
1660
+ "type": "text",
1661
+ "text": "5 Conclusion",
1662
+ "text_level": 1,
1663
+ "bbox": [
1664
+ 112,
1665
+ 334,
1666
+ 247,
1667
+ 350
1668
+ ],
1669
+ "page_idx": 8
1670
+ },
1671
+ {
1672
+ "type": "text",
1673
+ "text": "In this paper, we propose a novel ConTempo method that utilizes contrastive learning on the symmetric and antisymmetric properties to enhance the model's awareness of temporal relations. Using ConTempo, we observe an apparent change in the representation of relations generated by the model. Particularly, we see a significant reduction in the similarity between relation representations $\\mathbf{h}_r^{\\rightarrow}$ in comparison to their dual $\\mathbf{h}_r^{\\leftarrow}$ .",
1674
+ "bbox": [
1675
+ 112,
1676
+ 368,
1677
+ 487,
1678
+ 513
1679
+ ],
1680
+ "page_idx": 8
1681
+ },
1682
+ {
1683
+ "type": "text",
1684
+ "text": "ConTempo and GNN encoding, temporal common-sense information, and soft logical constraints can work in synergy to create a unified system that has achieved state-of-the-art performance across various benchmark corpora. Our success demonstrates the flexibility of ConTempo, and we call for more collaboration between different directions of TRE research.",
1685
+ "bbox": [
1686
+ 112,
1687
+ 516,
1688
+ 489,
1689
+ 644
1690
+ ],
1691
+ "page_idx": 8
1692
+ },
1693
+ {
1694
+ "type": "text",
1695
+ "text": "TRE is a rare and curious case where fine-tuned small LMs perform considerably better LLMs. Even with the help of groundbreaking techniques such as chain-of-thought (Wei et al., 2022), the best performance ChatGPT can achieve is $52.4\\%$ on MATRES (Yuan et al., 2023) and $41.0\\%$ on TBD (Huang et al., 2023) — remarkably lower than the fine-tuned small language models' performance. This anomaly presents tremendous opportunity for both TRE researchers and LLM researchers. TRE can be used as a hard task for the LLMs' to analyse their capabilities at reasoning and comprehension. In conclusion, exploring the integration of existing TRE innovations with LLMs and incorporating LLMs as a key component within TRE frameworks could significantly enhance performance and drive forward the advancement of both fields.",
1696
+ "bbox": [
1697
+ 112,
1698
+ 646,
1699
+ 490,
1700
+ 920
1701
+ ],
1702
+ "page_idx": 8
1703
+ },
1704
+ {
1705
+ "type": "text",
1706
+ "text": "Acknowledgement",
1707
+ "text_level": 1,
1708
+ "bbox": [
1709
+ 509,
1710
+ 84,
1711
+ 672,
1712
+ 99
1713
+ ],
1714
+ "page_idx": 8
1715
+ },
1716
+ {
1717
+ "type": "text",
1718
+ "text": "This study is funded by the Canadian Safety and Security Program (CSSP) from Defence Research and Development Canada (DRDC) awarded to the Public Health Agency of Canada (CSSP-2018-CP2334: Incorporating Advanced Data Analytics into a Health Intelligence Surveillance System). We thank the Global Public Health Intelligence Network (GPHIN) and Epidemic Intelligence from Open Sources (EIOS) teams for their support.",
1719
+ "bbox": [
1720
+ 507,
1721
+ 110,
1722
+ 885,
1723
+ 256
1724
+ ],
1725
+ "page_idx": 8
1726
+ },
1727
+ {
1728
+ "type": "text",
1729
+ "text": "Limitations",
1730
+ "text_level": 1,
1731
+ "bbox": [
1732
+ 509,
1733
+ 268,
1734
+ 613,
1735
+ 282
1736
+ ],
1737
+ "page_idx": 8
1738
+ },
1739
+ {
1740
+ "type": "text",
1741
+ "text": "We only evaluate ConTempo's performance using RoBERTa. Other language models, such as DeBERTa (He et al., 2021), T5 (Raffel et al., 2020) and DistilBERT (Sanh et al., 2020) may provide even better performance. We leave further exploration for future work.",
1742
+ "bbox": [
1743
+ 507,
1744
+ 294,
1745
+ 884,
1746
+ 390
1747
+ ],
1748
+ "page_idx": 8
1749
+ },
1750
+ {
1751
+ "type": "text",
1752
+ "text": "Due to restricted dataset resources, our unified model's evaluation was conducted only using TB-Dense and MATRES. There are other TimeML-based and even non-TimeML-based corpora related to TRE. We leave more evaluation to future work and encourage the community to reproduce our results on more datasets.",
1753
+ "bbox": [
1754
+ 507,
1755
+ 392,
1756
+ 885,
1757
+ 502
1758
+ ],
1759
+ "page_idx": 8
1760
+ },
1761
+ {
1762
+ "type": "text",
1763
+ "text": "References",
1764
+ "text_level": 1,
1765
+ "bbox": [
1766
+ 510,
1767
+ 533,
1768
+ 608,
1769
+ 548
1770
+ ],
1771
+ "page_idx": 8
1772
+ },
1773
+ {
1774
+ "type": "list",
1775
+ "sub_type": "ref_text",
1776
+ "list_items": [
1777
+ "James F. Allen. 1981. An interval-based representation of temporal knowledge. In In Proceedings 7th IJCAI, pages 221-226.",
1778
+ "James F. Allen. 1983. Maintaining knowledge about temporal intervals. Communications of the ACM, 26(11):832-843.",
1779
+ "Taylor Cassidy, Bill McDowell, Nathanael Chambers, and Steven Bethard. 2014. An Annotation Framework for Dense Event Ordering. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 501-506, Baltimore, Maryland. Association for Computational Linguistics.",
1780
+ "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A Simple Framework for Contrastive Learning of Visual Representations. In Proceedings of the 37th International Conference on Machine Learning, pages 1597-1607. PMLR.",
1781
+ "Fei Cheng and Yusuke Miyao. 2017. Classifying Temporal Relations by Bidirectional LSTM over Dependency Paths. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1-6, Vancouver, Canada. Association for Computational Linguistics."
1782
+ ],
1783
+ "bbox": [
1784
+ 509,
1785
+ 556,
1786
+ 884,
1787
+ 921
1788
+ ],
1789
+ "page_idx": 8
1790
+ },
1791
+ {
1792
+ "type": "page_number",
1793
+ "text": "1529",
1794
+ "bbox": [
1795
+ 482,
1796
+ 927,
1797
+ 519,
1798
+ 940
1799
+ ],
1800
+ "page_idx": 8
1801
+ },
1802
+ {
1803
+ "type": "list",
1804
+ "sub_type": "ref_text",
1805
+ "list_items": [
1806
+ "Jacob Cohen. 1960. A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement, 20(1):37-46.",
1807
+ "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.",
1808
+ "Tianyu Gao, Xingcheng Yao, and Danqi Chen. 2021. SimCSE: Simple Contrastive Learning of Sentence Embeddings. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 6894-6910, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.",
1809
+ "Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2021. DeBERTa: Decoding-enhanced BERT with Disentangled Attention. In International Conference on Learning Representations.",
1810
+ "Quzhe Huang, Yutong Hu, Shengqi Zhu, Yansong Feng, Chang Liu, and Dongyan Zhao. 2023. More than Classification: A Unified Framework for Event Temporal Relation Extraction. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9631-9646, Toronto, Canada. Association for Computational Linguistics.",
1811
+ "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.",
1812
+ "Ilya Loshchilov and Frank Hutter. 2019. Decoupled Weight Decay Regularization. In ICLR 2019.",
1813
+ "Hieu Man, Nghia Trung Ngo, Linh Ngo Van, and Thien Huu Nguyen. 2022. Selecting Optimal Context Sentences for Event-Event Relation Extraction. Proceedings of the AAAI Conference on Artificial Intelligence, 36(10):11058-11066.",
1814
+ "Puneet Mathur, Rajiv Jain, Franck Dernoncourt, Vlad Morariu, Quan Hung Tran, and Dinesh Manocha. 2021. TIMERS: Document-level Temporal Relation Extraction. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pages 524-533, Online. Association for Computational Linguistics.",
1815
+ "Qiang Ning, Sanjay Subramanian, and Dan Roth. 2019. An Improved Neural Baseline for Temporal Relation Extraction. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference"
1816
+ ],
1817
+ "bbox": [
1818
+ 115,
1819
+ 85,
1820
+ 485,
1821
+ 919
1822
+ ],
1823
+ "page_idx": 9
1824
+ },
1825
+ {
1826
+ "type": "list",
1827
+ "sub_type": "ref_text",
1828
+ "list_items": [
1829
+ "on Natural Language Processing (EMNLP-IJCNLP), pages 6203-6209, Hong Kong, China. Association for Computational Linguistics.",
1830
+ "Qiang Ning, Hao Wu, Haoruo Peng, and Dan Roth. 2018a. Improving Temporal Relation Extraction with a Globally Acquired Statistical Resource. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 841-851, New Orleans, Louisiana. Association for Computational Linguistics.",
1831
+ "Qiang Ning, Hao Wu, and Dan Roth. 2018b. A Multi-Axis Annotation Scheme for Event Temporal Relations. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1318-1328, Melbourne, Australia. Association for Computational Linguistics.",
1832
+ "Jingcheng Niu, Victoria Ng, Erin Rees, Simon De Montigny, and Gerald Penn. 2023. Discourse Information for Document-Level Temporal Dependency Parsing. In Proceedings of the 4th Workshop on Computational Approaches to Discourse (CODI 2023), pages 82-88, Toronto, Canada. Association for Computational Linguistics.",
1833
+ "James Pustejovsky, Patrick Hanks, Roser Saurí, Andrew See, Rob Gaizauskas, Andrea Setzer, Dragomir Radev, Beth Sundheim, David Day, Lisa Ferro, and Marcia Lazo. 2003. The TimeBank corpus. Proceedings of Corpus Linguistics.",
1834
+ "James Pustejovsky, Bob Ingria, Roser Sauri, Jose Castano, Jessica Littman, Rob Gaizauskas, Andrea Setzer, Graham Katz, and Inderjeet Mani. 2005. The specification language TimeML. The language of time: A reader, pages 545-557.",
1835
+ "James Pustejovsky, Kiyong Lee, Harry Bunt, and Laurent Romary. 2010. ISO-TimeML: An International Standard for Semantic Annotation. In Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10), Valletta, Malta. European Language Resources Association (ELRA).",
1836
+ "James Pustejovsky, Marc Verhagen, Roser Sauri, Jessica Littman, Robert Gaizauskas, Graham Katz, Inderjeet Mani, Robert Knippen, and Andrea Setzer. 2006. TimeBank 1.2.",
1837
+ "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. Journal of Machine Learning Research, 21(140):1-67.",
1838
+ "Joshua David Robinson, Ching-Yao Chuang, Suvrit Sra, and Stefanie Jegelka. 2021. Contrastive learning with hard negative samples. In International Conference on Learning Representations."
1839
+ ],
1840
+ "bbox": [
1841
+ 510,
1842
+ 85,
1843
+ 880,
1844
+ 919
1845
+ ],
1846
+ "page_idx": 9
1847
+ },
1848
+ {
1849
+ "type": "page_number",
1850
+ "text": "1530",
1851
+ "bbox": [
1852
+ 482,
1853
+ 928,
1854
+ 519,
1855
+ 940
1856
+ ],
1857
+ "page_idx": 9
1858
+ },
1859
+ {
1860
+ "type": "list",
1861
+ "sub_type": "ref_text",
1862
+ "list_items": [
1863
+ "Victor Sanh, Lysandre Debut, Julien Chaumont, and Thomas Wolf. 2020. DistilBERT, a distilled version of BERT: Smaller, faster, cheaper and lighter.",
1864
+ "Haoyu Wang, Muhao Chen, Hongming Zhang, and Dan Roth. 2020. Joint Constrained Learning for Event-Event Relation Extraction. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 696–706, Online. Association for Computational Linguistics.",
1865
+ "Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian richter, Fei Xia, Ed Chi, Quoc V Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, volume 35, pages 24824-24837. Curran Associates, Inc.",
1866
+ "Haoyang Wen and Heng Ji. 2021. Utilizing Relative Event Time to Enhance Event-Event Temporal Relation Extraction. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 10431–10437, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.",
1867
+ "Hao-Ren Yao, Luke Breitbartler, Aakanksha Naik, Chunxiao Zhou, and Carolyn Rose. 2022. MultiScale Contrastive Co-Training for Event Temporal Relation Extraction.",
1868
+ "Jiarui Yao, Haoling Qiu, Bonan Min, and Nianwen Xue. 2020. Annotating Temporal Dependency Graphs via Crowdsourcing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 5368-5380, Online. Association for Computational Linguistics.",
1869
+ "Chenhan Yuan, Qianqian Xie, and Sophia Ananiadou. 2023. Zero-shot Temporal Relation Extraction with ChatGPT.",
1870
+ "Shuaicheng Zhang, Qiang Ning, and Lifu Huang. 2022. Extracting Temporal Event Relation with Syntax-guided Graph Transformer. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 379–390, Seattle, United States. Association for Computational Linguistics.",
1871
+ "Ben Zhou, Daniel Khashabi, Qiang Ning, and Dan Roth. 2019. \"Going on a vacation\" takes longer than \"Going for a walk\": A Study of Temporal Commonsense Understanding. 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 3363-3369, Hong Kong, China. Association for Computational Linguistics."
1872
+ ],
1873
+ "bbox": [
1874
+ 115,
1875
+ 85,
1876
+ 487,
1877
+ 835
1878
+ ],
1879
+ "page_idx": 10
1880
+ },
1881
+ {
1882
+ "type": "text",
1883
+ "text": "A Training Details",
1884
+ "text_level": 1,
1885
+ "bbox": [
1886
+ 114,
1887
+ 847,
1888
+ 292,
1889
+ 864
1890
+ ],
1891
+ "page_idx": 10
1892
+ },
1893
+ {
1894
+ "type": "text",
1895
+ "text": "We use roberta-large as the pre-trained encoder. The best model is selected with the highest development set performance among 20 epochs of training,",
1896
+ "bbox": [
1897
+ 112,
1898
+ 873,
1899
+ 487,
1900
+ 921
1901
+ ],
1902
+ "page_idx": 10
1903
+ },
1904
+ {
1905
+ "type": "text",
1906
+ "text": "optimized using AdamW (Loshchilov and Hutter, 2019) with an initial learning rate of 1e-5 and a 0.01 weight decay. We use a linear scheduler with a warm-up ratio of 0.1 and a batch size of 64. The dropout rate is 0.1 across the system. For ConTempo, we determined $\\tau = 0.05$ , $\\gamma = 1.0$ using a grid search over $\\{0.1, 0.05, 0.01\\} \\times \\{1, 0.1, 0.01\\}$ .",
1907
+ "bbox": [
1908
+ 507,
1909
+ 84,
1910
+ 882,
1911
+ 197
1912
+ ],
1913
+ "page_idx": 10
1914
+ },
1915
+ {
1916
+ "type": "text",
1917
+ "text": "For the components in the unified systems, we follow the hyperparameter suggested by the corresponding papers (Yao et al., 2022; Wang et al., 2020).",
1918
+ "bbox": [
1919
+ 507,
1920
+ 198,
1921
+ 882,
1922
+ 260
1923
+ ],
1924
+ "page_idx": 10
1925
+ },
1926
+ {
1927
+ "type": "text",
1928
+ "text": "B MulCo",
1929
+ "text_level": 1,
1930
+ "bbox": [
1931
+ 509,
1932
+ 273,
1933
+ 608,
1934
+ 288
1935
+ ],
1936
+ "page_idx": 10
1937
+ },
1938
+ {
1939
+ "type": "text",
1940
+ "text": "MulCon utilized a sentence structure graph $\\mathcal{G}_S$ and a temporal structure graph $\\mathcal{G}_T$ to encode document-level information. The sentence structure graph has three types of nodes: the document, the sentences and the tokens. All sentences are connected to the document node and each token node is connected to the sentence it located in. For an event, $\\mathcal{G}_S$ 's embedding of the event trigger token is used.",
1941
+ "bbox": [
1942
+ 507,
1943
+ 299,
1944
+ 882,
1945
+ 426
1946
+ ],
1947
+ "page_idx": 10
1948
+ },
1949
+ {
1950
+ "type": "text",
1951
+ "text": "The temporal structure graph, on the other hand, also has three types of nodes. The document creation time (DCT) node, the time expressions, and the events. Each time expression is connected to the DCT, and each event is connected to a time expression if there is an E2T link in the corpus. Finally, each event node has an edge point to itself.",
1952
+ "bbox": [
1953
+ 507,
1954
+ 428,
1955
+ 882,
1956
+ 539
1957
+ ],
1958
+ "page_idx": 10
1959
+ },
1960
+ {
1961
+ "type": "text",
1962
+ "text": "C MATRES Versions",
1963
+ "text_level": 1,
1964
+ "bbox": [
1965
+ 507,
1966
+ 552,
1967
+ 710,
1968
+ 567
1969
+ ],
1970
+ "page_idx": 10
1971
+ },
1972
+ {
1973
+ "type": "text",
1974
+ "text": "We found two versions of MATRES that has been used by different works. Ning et al. (2018b) released a version on GitHub $^{5}$ that contains 837 relations in the Platinum test set. Wang et al. (2020) released another version with 818 relations in the Platinum test set. The difference (19 relations) could constitute as $2.32\\%$ of the test set data. We use Ning et al.'s (2018b).",
1975
+ "bbox": [
1976
+ 507,
1977
+ 577,
1978
+ 882,
1979
+ 706
1980
+ ],
1981
+ "page_idx": 10
1982
+ },
1983
+ {
1984
+ "type": "text",
1985
+ "text": "D CleanMATRES",
1986
+ "text_level": 1,
1987
+ "bbox": [
1988
+ 507,
1989
+ 719,
1990
+ 684,
1991
+ 734
1992
+ ],
1993
+ "page_idx": 10
1994
+ },
1995
+ {
1996
+ "type": "text",
1997
+ "text": "As we previously mentioned, we identified a large quantity of annotation errors within both MATRES and TBD. This is not surprising, however, as both corpora reported adequate inter-annotator agreements. TBD reported $\\kappa$ ranged from 0.56 to 0.64 and MATRES reported a good — but not perfect — $\\kappa$ of 0.84 (Table 6). In this section, we will first provide a description of the annotation errors",
1998
+ "bbox": [
1999
+ 505,
2000
+ 744,
2001
+ 882,
2002
+ 872
2003
+ ],
2004
+ "page_idx": 10
2005
+ },
2006
+ {
2007
+ "type": "page_footnote",
2008
+ "text": "$^{5}$ https://github.com/qiangning/MATRES \n $^{6}$ https://github.com/CogComp/ \nJointConstrainedLearning/tree/main/MATRES",
2009
+ "bbox": [
2010
+ 507,
2011
+ 881,
2012
+ 823,
2013
+ 920
2014
+ ],
2015
+ "page_idx": 10
2016
+ },
2017
+ {
2018
+ "type": "page_number",
2019
+ "text": "1531",
2020
+ "bbox": [
2021
+ 482,
2022
+ 928,
2023
+ 517,
2024
+ 940
2025
+ ],
2026
+ "page_idx": 10
2027
+ },
2028
+ {
2029
+ "type": "table",
2030
+ "img_path": "images/c81c8942aad5d46c5f85067d05002e9c4a6481e4c2d791c7e12e4c3959e747a7.jpg",
2031
+ "table_caption": [],
2032
+ "table_footnote": [],
2033
+ "table_body": "<table><tr><td>Relabelling</td><td colspan=\"2\">EQUAL</td><td colspan=\"2\">VAGUE</td><td colspan=\"2\">BEFORE</td><td colspan=\"2\">AFTER</td></tr><tr><td>EQUAL</td><td>10</td><td>32.26%</td><td>15</td><td>13.27%</td><td>1</td><td>0.24%</td><td>0</td><td>0%</td></tr><tr><td>VAGUE</td><td>3</td><td>9.68%</td><td>24</td><td>21.24%</td><td>5</td><td>1.17%</td><td>5</td><td>1.86%</td></tr><tr><td>BEFORE</td><td>6</td><td>19.35%</td><td>39</td><td>34.51%</td><td>405</td><td>95.52%</td><td>0</td><td>0%</td></tr><tr><td>AFTER</td><td>10</td><td>32.26%</td><td>26</td><td>23.01%</td><td>4</td><td>0.94%</td><td>256</td><td>95.17%</td></tr><tr><td>Orth. Axes</td><td>2</td><td>6.45%</td><td>9</td><td>7.96%</td><td>9</td><td>2.12%</td><td>8</td><td>2.97%</td></tr><tr><td>Total</td><td>31</td><td>100%</td><td>113</td><td>100%</td><td>424</td><td>100%</td><td>269</td><td>100%</td></tr></table>",
2034
+ "bbox": [
2035
+ 194,
2036
+ 80,
2037
+ 803,
2038
+ 200
2039
+ ],
2040
+ "page_idx": 11
2041
+ },
2042
+ {
2043
+ "type": "table",
2044
+ "img_path": "images/0d9089518fe1e6c1bc8ef825a1de822056241d8248b569d64539a272e032a88d.jpg",
2045
+ "table_caption": [
2046
+ "Table 5: Re-annotation of the MATRES test set. The statistics of the correct labels are highlighted in bold. Each column corresponds to an original MATRES label. Some relations involve events that should have been placed on one of the orthogonal axes."
2047
+ ],
2048
+ "table_footnote": [],
2049
+ "table_body": "<table><tr><td>Corpus</td><td>Cohen&#x27;s κ</td></tr><tr><td>TimeBank-Dense</td><td>0.56-0.64</td></tr><tr><td>MATRES</td><td>0.84</td></tr><tr><td>MATRES EQUAL</td><td>1.0</td></tr><tr><td>MATRES VAGUE</td><td>0.75</td></tr></table>",
2050
+ "bbox": [
2051
+ 176,
2052
+ 274,
2053
+ 426,
2054
+ 379
2055
+ ],
2056
+ "page_idx": 11
2057
+ },
2058
+ {
2059
+ "type": "text",
2060
+ "text": "Table 6: Detailed inter-annotator agreement of MA-TRES and TBD.",
2061
+ "bbox": [
2062
+ 112,
2063
+ 388,
2064
+ 489,
2065
+ 418
2066
+ ],
2067
+ "page_idx": 11
2068
+ },
2069
+ {
2070
+ "type": "text",
2071
+ "text": "we identified in MATRES. Then, we will describe our re-annotation process. Finally, we will present an overview of the result of the re-annotation — CleanMATRES.",
2072
+ "bbox": [
2073
+ 112,
2074
+ 443,
2075
+ 490,
2076
+ 506
2077
+ ],
2078
+ "page_idx": 11
2079
+ },
2080
+ {
2081
+ "type": "text",
2082
+ "text": "D.1 A Qualitative Analysis of the Annotation Errors",
2083
+ "text_level": 1,
2084
+ "bbox": [
2085
+ 112,
2086
+ 520,
2087
+ 484,
2088
+ 551
2089
+ ],
2090
+ "page_idx": 11
2091
+ },
2092
+ {
2093
+ "type": "text",
2094
+ "text": "(3) He won $_{e_1}$ the Gusher Marathon, finishing $_{e_2}$ in 3:07:35.",
2095
+ "bbox": [
2096
+ 131,
2097
+ 560,
2098
+ 487,
2099
+ 593
2100
+ ],
2101
+ "page_idx": 11
2102
+ },
2103
+ {
2104
+ "type": "text",
2105
+ "text": "Original Annotation: VAGUE Correct Annotation: EQUAL",
2106
+ "bbox": [
2107
+ 169,
2108
+ 606,
2109
+ 371,
2110
+ 633
2111
+ ],
2112
+ "page_idx": 11
2113
+ },
2114
+ {
2115
+ "type": "text",
2116
+ "text": "(4) The last surviving member of the team which first $\\mathbf{conquered}_{e_1}$ Everest in 1953 has $\\mathbf{died}_{e_2}$ in a Derbyshire nursing home.",
2117
+ "bbox": [
2118
+ 131,
2119
+ 653,
2120
+ 485,
2121
+ 702
2122
+ ],
2123
+ "page_idx": 11
2124
+ },
2125
+ {
2126
+ "type": "text",
2127
+ "text": "Original Annotation: VAGUE Correct Annotation: BEFORE",
2128
+ "bbox": [
2129
+ 169,
2130
+ 715,
2131
+ 379,
2132
+ 741
2133
+ ],
2134
+ "page_idx": 11
2135
+ },
2136
+ {
2137
+ "type": "text",
2138
+ "text": "(5) More than 16,000 dead pigs have been found $_{e_1}$ floating $_{e_2}$ in rivers that provide drinking water to Shanghai.",
2139
+ "bbox": [
2140
+ 131,
2141
+ 760,
2142
+ 485,
2143
+ 810
2144
+ ],
2145
+ "page_idx": 11
2146
+ },
2147
+ {
2148
+ "type": "text",
2149
+ "text": "Original Annotation: EQUAL Correct Annotation: AFTER",
2150
+ "bbox": [
2151
+ 169,
2152
+ 824,
2153
+ 371,
2154
+ 850
2155
+ ],
2156
+ "page_idx": 11
2157
+ },
2158
+ {
2159
+ "type": "text",
2160
+ "text": "Examples (3-5) show three examples of incorrect annotations in MATRES. In example 3, the relation between won and finishing is labelled as VAGUE,",
2161
+ "bbox": [
2162
+ 112,
2163
+ 873,
2164
+ 489,
2165
+ 921
2166
+ ],
2167
+ "page_idx": 11
2168
+ },
2169
+ {
2170
+ "type": "text",
2171
+ "text": "but, nonetheless, the two mentions refer to two aspects of the same punctual event. For example 4, it is clear that the member died a long time after they conquered Everest. For example 5, since MATRES annotators were only comparing the start-time of events, the pigs floating in rivers must took place before the event that they were found.",
2172
+ "bbox": [
2173
+ 507,
2174
+ 277,
2175
+ 884,
2176
+ 388
2177
+ ],
2178
+ "page_idx": 11
2179
+ },
2180
+ {
2181
+ "type": "text",
2182
+ "text": "The two examples presented in this study illustrate the main sources of annotation errors commonly found in data sets. As posited by Ning et al. (2018b), the first example's error likely stems from the annotators' lack of comprehension regarding time granularity and event coreference. MATRES annotations are created by asking annotators two heuristic questions:",
2183
+ "bbox": [
2184
+ 507,
2185
+ 392,
2186
+ 884,
2187
+ 518
2188
+ ],
2189
+ "page_idx": 11
2190
+ },
2191
+ {
2192
+ "type": "list",
2193
+ "sub_type": "text",
2194
+ "list_items": [
2195
+ "(Q1) Is it possible that $e_{start}^{1}$ is before $e_{start}^{2}$ ?",
2196
+ "(Q2) Is it possible that $e_{start}^{2}$ is before $e_{start}^{1}$ ?"
2197
+ ],
2198
+ "bbox": [
2199
+ 507,
2200
+ 519,
2201
+ 845,
2202
+ 554
2203
+ ],
2204
+ "page_idx": 11
2205
+ },
2206
+ {
2207
+ "type": "text",
2208
+ "text": "The heuristic questions, Q1 and Q2, do not adequately address these concepts, necessitating the need to develop improved annotation guidelines. By effectively conveying the intricacies of time granularity and event coreference, the frequency of such errors may decrease, although perhaps with a lower $\\kappa$ . The second example's mistake should perhaps be attributed to a misunderstanding of the text.",
2209
+ "bbox": [
2210
+ 507,
2211
+ 571,
2212
+ 884,
2213
+ 715
2214
+ ],
2215
+ "page_idx": 11
2216
+ },
2217
+ {
2218
+ "type": "text",
2219
+ "text": "D.2 CleanMATRES Annotation",
2220
+ "text_level": 1,
2221
+ "bbox": [
2222
+ 507,
2223
+ 734,
2224
+ 774,
2225
+ 750
2226
+ ],
2227
+ "page_idx": 11
2228
+ },
2229
+ {
2230
+ "type": "text",
2231
+ "text": "We undertook a re-annotation of the MATRES test set. The test set were labelled independently by two authors of this paper, who were then forced to reconcile where they disagreed. Our pass through the test set reveals a significant number of annotation inaccuracies, particularly in the cases of the EQUAL and VAGUE relations. As detailed in Table 5, we found a mere $32.26\\%$ of the EQUAL and $21.24\\%$ of the VAGUE edges to have been accurately annotated.",
2232
+ "bbox": [
2233
+ 507,
2234
+ 760,
2235
+ 884,
2236
+ 919
2237
+ ],
2238
+ "page_idx": 11
2239
+ },
2240
+ {
2241
+ "type": "page_number",
2242
+ "text": "1532",
2243
+ "bbox": [
2244
+ 482,
2245
+ 927,
2246
+ 521,
2247
+ 940
2248
+ ],
2249
+ "page_idx": 11
2250
+ },
2251
+ {
2252
+ "type": "text",
2253
+ "text": "D.3 Discussion: Vague Relations",
2254
+ "text_level": 1,
2255
+ "bbox": [
2256
+ 114,
2257
+ 84,
2258
+ 386,
2259
+ 99
2260
+ ],
2261
+ "page_idx": 12
2262
+ },
2263
+ {
2264
+ "type": "text",
2265
+ "text": "We want to take the opportunity to discuss the issues related to the VAGUE relation. The VAGUE relation, which could be better called the underspecified relation, describes relations that are uncertain due to insufficient context. However, this certainty is highly subjective to the annotator and hard to rigorously quantify. TBD adopted an \"80% rule\" that instruct annotators to label a relation as vague if they are \"80% confident that it was the writer's intent that a reader infer that relation.\" As a result, inter-annotator agreement on vague edges is the lowest among all relation types.",
2266
+ "bbox": [
2267
+ 112,
2268
+ 105,
2269
+ 489,
2270
+ 298
2271
+ ],
2272
+ "page_idx": 12
2273
+ },
2274
+ {
2275
+ "type": "text",
2276
+ "text": "MATRES took a different approach and treats certain combinations of the start time comparisons as vague relations. The approach attenuates the issue but by no means solve the issue. The two heuristic questions are also subject and involves a degree of uncertainty. Furthermore, similar to EQUAL relations, a simple heuristic question mistake could result in incorrect VAGUE relation annotation.",
2277
+ "bbox": [
2278
+ 112,
2279
+ 299,
2280
+ 489,
2281
+ 441
2282
+ ],
2283
+ "page_idx": 12
2284
+ },
2285
+ {
2286
+ "type": "text",
2287
+ "text": "With all the aforementioned issues, CleanMATRES excludes all VAGUE relations from the test set. We only consider BEFORE, AFTER, and EQUAL relations during the evaluation of CleanMATRES. We also did not include the analysis of VAGUE relations in Section 2, as it requires a more thorough examination of the application of temporal calculus when underspecificity is involved. Allen's (1983) original temporal calculus assumes all events are intervals with well-defined endpoints. Yao et al. (2020) and Niu et al. (2023) provided a more in-depth analysis to the VAGUE edges and underspecificity.",
2288
+ "bbox": [
2289
+ 112,
2290
+ 443,
2291
+ 490,
2292
+ 652
2293
+ ],
2294
+ "page_idx": 12
2295
+ },
2296
+ {
2297
+ "type": "page_number",
2298
+ "text": "1533",
2299
+ "bbox": [
2300
+ 482,
2301
+ 928,
2302
+ 519,
2303
+ 940
2304
+ ],
2305
+ "page_idx": 12
2306
+ }
2307
+ ]
2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/9ded2c84-7d7d-4a7e-b160-6caf16706c14_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/9ded2c84-7d7d-4a7e-b160-6caf16706c14_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d11d1b92e6ed8c514e491d3f42083eea8c7f876aa9c1b010e88e4d7a78f8a26b
3
+ size 458118
2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/full.md ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ConTempo: A Unified Temporally Contrastive Framework for Temporal Relation Extraction
2
+
3
+ Jingcheng Niu, $^{1,2,3}$ Saifei Liao, $^{2,3}$ Victoria Ng, $^{1}$ Simon De Montigny, $^{1}$ Gerald Penn $^{2,3}$
4
+
5
+ <sup>1</sup>Public Health Agency of Canada, <sup>2</sup>University of Toronto, <sup>3</sup>Vector Institute
6
+
7
+ {niu,liaosaif,gpenn}@cs.toronto.edu
8
+
9
+ {victoria.ng,simon.demontigny}@phac-aspc.gc.ca
10
+
11
+ # Abstract
12
+
13
+ The task of temporal relation extraction (TRE) involves identifying and extracting temporal relations between events from narratives. We identify two primary issues with TRE systems. First, by formulating TRE as a simple text classification task where every temporal relation is independent, it is hard to enhance the TRE model's representation of meaning of temporal relations, and its facility with the underlying temporal calculus. We solve the issue by proposing a novel Temporally Contrastive learning model (ConTempo) that increase the model's awareness of the meaning of temporal relations by leveraging their symmetric or antisymmetric properties. Second, the reusability of innovations has been limited due to incompatibilities in model architectures. Therefore, we propose a unified framework and show that ConTempo is compatible with all three main branches of TRE research. Our results demonstrate that the performance gains of ConTempo are more pronounced, with the total combination achieving state-of-the-art performance on the widely used MATRES and TBD corpora. We furthermore identified and corrected a large number of annotation errors present in the test set of MATRES, after which the performance increase brought by ConTempo becomes more apparent.
14
+
15
+ # 1 Introduction
16
+
17
+ Temporal relation extraction (TRE) is the task of classifying the temporal relations between pairs of events conveyed in narratives (Pustejovsky et al., 2006, 2010). This task is important to the natural language processing (NLP) community because the conception of time is a key component of text comprehension and reasoning. Additionally, it carries practical importance, as TRE is a crucial component of various downstream applications in question answering, information retrieval, and information extraction.
18
+
19
+ TRE is difficult. Despite its importance and popularity, TRE systems still have relatively poor performance compared to other natural language understanding tasks. TRE is also salient because recent large language models (LLMs) and chat systems have substantially worse performance than smaller, fine-tuned TRE models (Yuan et al., 2023; Huang et al., 2023).
20
+
21
+ In this paper, we enhance current TRE systems by identifying and addressing two major issues that hinder their performance:
22
+
23
+ 1. It is difficult to understand relation labels. TRE is typically formulated as a multi-label text classification task. The representation of the relation is determined by a neural classifier, which outputs logits for different label classes. These logits are then converted into label probabilities using a softmax layer. As a result, in a TRE model, all relation types are considered independent. However, temporal relations are inherently structured, governed by an underlying temporal calculus (Allen, 1981, 1983). For instance, if event A occurred before event B, it can be inferred that B happened after A. Integrating the meanings of each temporal relation and the principles of the underlying temporal calculus into the neural classifier presents a complex challenge, as there is no straightforward method to do so.
24
+
25
+ 2. The reusability of innovations has been limited. Many of the recent innovations in TRE have not built upon one another, primarily due to the lack of a unified framework (beyond annotation standards) to accommodate them. For example, despite being widely cited and used as a baseline by subsequent systems, the relative time prediction technique (Wen and Ji, 2021) has rarely been applied on top of newer models, due to incompatibilities in model architecture. The evaluation methods employed by earlier systems vary significantly, moreover, which complicates direct comparisons
26
+
27
+ between models and further hinders the development of future models.
28
+
29
+ We propose a novel Temporally Contrastive learning method (ConTempo)<sup>1</sup> to enhance the model's representation of the meaning of temporal relations, and its facility with the underlying temporal calculus. The intuition behind ConTempo is very simple. Contrastive learning aims to pull similar (positive) samples closer and push dissimilar (negative) samples apart. We leverage the symmetric and antisymmetric properties of temporal relations to augment a base graph of positive samples for contrastive learning. For antisymmetric relations (A before B), we want to push the relation's representation away from its inverse (B after A). For a symmetric relation (A equals B), we likewise want to pull its representation closer to its inverse (B equals A). Our experimental results indicate that ConTempo is effective at creating distinctive representations for different types of temporal relation pairs and yields a substantial improvement in performance.
30
+
31
+ Then, building upon ConTempo, we create a unified framework that is compatible with various previous modes of improvement in TRE systems. In particular, we have identified two major threads of innovation in the previous literature on this topic: (1) GNN encoding of event and context information, (2) incorporation of common-sense information, and (3) the soft enforcement of logical constraints. Our experiment shows that ConTempo is compatible with techniques from all three major threads of research and can achieve state-of-the-art performance on major evaluation corpora, including MATRES (Ning et al., 2018b) and TimeBank-Dense (TBD; Cassidy et al., 2014). We nevertheless perceive the need to introduce CleanMATRES, a refined version of MATRES that we created by fixing certain annotation errors.
32
+
33
+ Among all of these innovations, an ablation study nevertheless shows that ConTempo brings the most significant performance increase. This finding underscores our initial hypothesis: the primary challenge for these models has been their difficulty with making sense of relation labels.
34
+
35
+ During our development of the unified ComTempo framework, we discovered a large number of annotation errors within MATRES and TBD, two commonly utilized corpora. Because of
36
+
37
+ <table><tr><td>Corpus</td><td>Relations</td></tr><tr><td>MATRES</td><td>BEFORE, AFTER, EQUAL, VAGUE</td></tr><tr><td>TBD</td><td>BEFORE, AFTER, INCLUDES, IS INCLUDED, EQUAL, VAGUE</td></tr></table>
38
+
39
+ Table 1: Temporal relations used by MATRES and TBD.
40
+
41
+ TBD's dense annotation scheme, the appropriate level of underspecificity cannot be resolved without further investigation. But we are able to provide a thorough re-examination of the MATRES corpus. After correcting these errors, performance improves yet again, and the performance increase brought by ConTempo becomes more apparent.
42
+
43
+ # 2 ConTempo
44
+
45
+ We begin our discussion by first formulating the TRE task. Then, using a comparison of relational representations, we will demonstrate the difficulty that a neural model faces in temporal reasoning and understanding the meaning of temporal labels. In particular, there is a significant correlation between the mistakes a TRE model makes and its degree of inference over the available symmetric and antisymmetric properties. Next, we will present our ConTempo method in detail, which enhances a model's awareness of the meaning of each temporal relation and each principles of temporal reasoning. Finally, we will empirically demonstrate the effectiveness of ConTempo and compare it with previous methods in increasing temporal relation awareness.
46
+
47
+ # 2.1 TRE: Task Formulation
48
+
49
+ TRE can be formulated as a classification task. Given an input sequence $S = [t_1, \dots, t_n]$ and two events represented by two distinct tokens from the sequence, $e_1, e_2 \in S$ , where $e_1 \neq e_2$ , the TRE model should classify the relation between the event pair $(e_1, e_2)$ into one of several temporal relations, $\mathcal{R}$ . Different corpora have different sets of temporal relations. Most TRE benchmark datasets aspire to embody Allen's (1981) 13 original temporal relations, but creating datasets with such fine-grained annotations is challenging. Attempts to utilize all 13 temporal relation types have failed due to low inter-annotator agreement. Therefore, recent TRE datasets typically simplify the relation set to a more coarse subset of the original set. As listed in Table 1, MATRES has 4 relation types, and TBD uses 6 relation types.
50
+
51
+ # 2.2 Temporal Relation Labels Awareness
52
+
53
+ After simplification, Allen's (1983) full temporal interval calculus can no longer be maintained. But interval symmetry and antisymmetry (as shown in Equation 1) still apply within both MATRES and TBD. $^2$ In our opinion, it is crucial for TRE models to reason with intervals in order to yield good evaluation results on benchmarks—if the models know A happened before B but do not know that B happened after A, can we really say that the model understands time in narratives?
54
+
55
+ $$
56
+ A \text {I N C l u d e s} B \Longleftrightarrow B \text {I S - I N C l u d e d} A
57
+ $$
58
+
59
+ $$
60
+ A _ {\text {B E F O R E}} B \Longleftrightarrow B _ {\text {A F T E R}} A \tag {1}
61
+ $$
62
+
63
+ $$
64
+ A \text {E Q U A L} B \iff B \text {E Q U A L} A
65
+ $$
66
+
67
+ Symmetry and antisymmetry also provide us with an opportunity to test a model's understanding of relation labels. In particular, we can measure the similarity of the model's representation of a relation $\mathbf{h}_r^{\rightarrow}$ in comparison to its dual $\mathbf{h}_r^{\leftarrow}$ :
68
+
69
+ $$
70
+ \operatorname {s i m} \left(\mathbf {h} _ {r} ^ {\rightarrow}, \mathbf {h} _ {r} ^ {\leftarrow}\right) = \operatorname {s i m} \left(\mathbf {h} _ {\left(e _ {1}, e _ {2}\right)}, \mathbf {h} _ {\left(e _ {2}, e _ {1}\right)}\right), \tag {2}
71
+ $$
72
+
73
+ It is relatively commonplace in the context of TRE to speak of a representation of a temporal relation, although this in fact refers to the representation of one of its instances over some event pair $\mathbf{h}_{(e_1,e_2)}$ . Therefore, we will speak of the two interchangeably. If the relation between $e_1$ and $e_2$ is symmetric, then we can interpret high similarity as a sign of awareness concerning the relation's meaning because the relation and its inverse are nearly the same. On the other hand, if the relation is antisymmetric, we should expect the relations to be distinct and, therefore, we should interpret low similarity as a good sign. Here, we measure similarity with cosine similarity $(\mathrm{sim}(\mathbf{a},\mathbf{b}) = \frac{\mathbf{a}\cdot\mathbf{b}}{\|\mathbf{a}\|\|\mathbf{b}\|})$ .
74
+
75
+ # 2.3 Temporal Relation Awareness of Fine-tuned BERT-based Models
76
+
77
+ In this section, we examine the extent to which typical, fine-tuned BERT-based models can be said to understand temporal relations and the temporal calculus. All contemporary TRE systems use this paradigm. Therefore, we experimented with a baseline model (described in Equation 3) to establish a foundation for the capacity of TRE models to summarize the temporal interval calculus.
78
+
79
+ ![](images/9cc44225faa3052d8d38a98fc3c99faa7173e32b9526019e7bbf1e514ce8f632.jpg)
80
+ Figure 1: Similarity measures of event pair representations with their inverses. Each dot represents a relation in the MATRES test set: green means the model classified the relation correctly and red means the model made a mistake. The box plots underneath show the quantile statistics. There is an obvious negative correlation between the correctness of the prediction and the similarity measure. This is evident from observing that the incorrect predictions (red points) are located in the upper region of the figure for BEFORE and AFTER.
81
+
82
+ The baseline model has three components: a pretrained encoder (we use a RoBERTa-large model (Liu et al., 2019)), a 2-layer MLP module $(f_{1})$ that encodes the relation of the event pair under a unified representation scheme, and another single layer MLP $(f_{2})$ that decodes the relational representation into logits for each, different relational type:
83
+
84
+ $$
85
+ \mathbf {E} = \operatorname {e n c o d e r} (S) = [ \mathbf {h} _ {1}, \dots , \mathbf {h} _ {n} ],
86
+ $$
87
+
88
+ $$
89
+ \mathbf {h} _ {\left(e _ {1}, e _ {2}\right)} = f _ {1} \left(\left[ \mathbf {h} _ {e _ {1}} \| \mathbf {h} _ {e _ {2}} \right]\right), \tag {3}
90
+ $$
91
+
92
+ $$
93
+ \mathbb {P} _ {\mathcal {R}} \left(e _ {1}, e _ {2}\right) = \operatorname {s o f t m a x} \left(f _ {2} \left(\mathbf {h} _ {\left(e _ {1}, e _ {2}\right)}\right)\right).
94
+ $$
95
+
96
+ The implementation details and hyperparameter settings are described in Appendix A.
97
+
98
+ Baseline Model Temporal Awareness Figure 1 shows the similarity between the relational representations $\mathbf{h}_r^{\rightarrow}$ and their symmetric duals $\mathbf{h}_r^{\leftarrow}$ as generated by the baseline model. We can see an obvious negative correlation between the correctness of the prediction and the similarity measure. This is evident from observing that the incorrect predictions (red points) are located in the upper region of the figure for BEFORE and AFTER. Furthermore, the baseline model often assigns similar representations to relations and their symmetric duals, even when the two are diametrically opposite in meaning. As shown by the box plot, the first quantile of both the BEFORE and AFTER relations occupy
99
+
100
+ the upper part of the figure, which corresponds to high similarity. This shows that while fine-tuned models might have some basic perception of the significance of these temporal labels, it is by no means efficient, as all temporal labels are presented to the model as independent.
101
+
102
+ # 2.4 ConTempo: The Method
103
+
104
+ Contrastive learning builds on the idea of pulling similar (positive) data points $(x, x^{+})$ closer together and pushing dissimilar (negative) data points $(x, x^{-})$ apart by adding a contrastive loss term to the training objective (Robinson et al., 2021). We thus need to define positive and negative samples for temporal relation instances, i.e., event pairs. In this section, we will explain how positive and negative samples are constructed based on whether the relation is symmetric (EQUAL) or antisymmetric (BEFORE, AFTER, INCLUDES, and IS INCLUDED), and define how we compute the temporally contrastive loss term $\ell_{\mathrm{tc}}$ .
105
+
106
+ Our implementation of ConTempo is inspired by SimCSE's (Gao et al., 2021) use of contrastive learning on natural language inference (NLI) data. We likewise use a normalized temperature-scaled cross-entropy loss (NT-Xent; Chen et al., 2020).
107
+
108
+ Antisymmetric Relations For an antisymmetric relation $\mathbf{h}_r^{\rightarrow} = \mathbf{h}_{(e_1,e_2)}$ , we regard the dual of the relation $\mathbf{h}_r^{\leftarrow} = \mathbf{h}_{(e_2,e_1)}$ as a hard negative sample. However, we cannot construct further positive samples using temporal reasoning. Instead, we follow SimCSE's unsupervised approach to obtain positive pairs through the use of independently sampled dropout masks. Standard transformers will apply dropout (default $p = 0.1$ ) at different locations in the model. Therefore, we simply feed the same input to our model twice to obtain two relational representations $\mathbf{h}_r^{\rightarrow}$ and $\mathbf{h}_r^+$ that are slightly different; different dropout masks having been applied during the two encoding passes. Therefore, we can compute the ConTempo loss by:
109
+
110
+ $$
111
+ \ell_ {\mathrm {t c}} = - \log \frac {e ^ {\operatorname {s i m} \left(\mathbf {h} _ {r} ^ {\rightarrow} , \mathbf {h} _ {r} ^ {+}\right) / \tau}}{e ^ {\operatorname {s i m} \left(\mathbf {h} _ {r} ^ {\rightarrow} , \mathbf {h} _ {r} ^ {+}\right) / \tau} + e ^ {\operatorname {s i m} \left(\mathbf {h} _ {r} ^ {\rightarrow} , \mathbf {h} _ {r} ^ {\leftarrow}\right) / \tau}}, \tag {4}
112
+ $$
113
+
114
+ where $\tau$ is a temperature hyperparameter.
115
+
116
+ Unlike SimCSE, however, we did not treat other relational representations in the same mini-batch as negatives. While we are certain that the relation yields the exact dual when we reverse the order of the two events $((e_1,e_2)$ vs. $(e_2,e_1))$ , the compari
117
+
118
+ son is less clear when it is made between different event pairs. Consider the following examples:
119
+
120
+ (1) Alan Turing studied at Cambridge for his undergraduate degree and attended Princeton for his Ph.D.
121
+ (2) I failed $e_3$ my calculus course and then cried $e_4$ all night in a McDonald's.
122
+
123
+ While both temporal relations $r_1 = (e_1, e_2)$ and $r_2 = (e_3, e_4)$ share the same BEFORE label, it is difficult to say whether they can be regarded as a positive pair, because they are different in many respects. First, we know that $e_1$ and $e_2$ are years apart but $e_3$ and $e_4$ happen on the same day. Second, we infer BEFORE for different reasons. We know that $e_1$ happened before $e_2$ through common-sense: a person needs to complete their undergraduate study before working towards a Ph.D. But we conclude that $e_3$ happened before $e_4$ because of and then and a likely causal relation between failing the course and crying. We want to preserve these differences and therefore avoid pushing the representations of $r_1$ and $r_2$ closer together.
124
+
125
+ We also do not need to consider relations with different labels, such as $r_1^{\rightarrow} = (e_1,e_2)$ and $r_2^{\leftarrow} = (e_4,e_3)$ , as negative samples. Intuitively, contrastive learning is more effective when the negative samples occur nearby but should be far apart (Robinson et al., 2021). Since event pairs from different sentences contain drastically different syntactic and semantic information, it is not a serious problem for the classifier to distinguish them.
126
+
127
+ Symmetric Relations For a symmetric relation $\mathbf{h}_r^{\rightarrow} = \mathbf{h}_{(e_1,e_2)}$ , we use the dual of the relation $\mathbf{h}_r^{\leftarrow} = \mathbf{h}_{(e_1,e_2)}$ as an additional, positive sample. Unlike with antisymmetric relations, we follow SimCSE and use other relations in the same minibatch $(B)$ as negative samples:
128
+
129
+ $$
130
+ \ell_ {\mathrm {t c}} = - \log \frac {e ^ {\operatorname {s i m} \left(\mathbf {h} _ {r} ^ {\rightarrow} , \mathbf {h} _ {r} ^ {\leftarrow}\right) / \tau}}}{\sum_ {i \in B} \left(e ^ {\operatorname {s i m} \left(\mathbf {h} _ {r} ^ {\rightarrow} , \mathbf {h} _ {i}\right) / \tau} + e ^ {\operatorname {s i m} \left(\mathbf {h} _ {r} ^ {\leftarrow} , \mathbf {h} _ {i}\right) / \tau}\right)}. \tag {5}
131
+ $$
132
+
133
+ We choose a different design here than for antisymmetric relations because it is impossible to construct true hard negative samples for symmetric relations. Also, we do not check whether other samples in the mini-batch have the same relation label as $\mathbf{h}_r^{\rightarrow}$ because EQUAL is the least common relation type. With only $3.8\%$ in MATRES and $1.7\%$ of the relations in TBD, it is very rare that there are multiple EQUAL relations in the same
134
+
135
+ ![](images/6fb1a28fcd93d544baa0cb6b86d36e098a1a1eab2aceb764e346e1c9203aba30.jpg)
136
+ Figure 2: The efficacy of ConTempo at increasing the model's awareness of temporal relations and their implications through temporal reasoning.
137
+
138
+ mini-batch, so the effect of a colliding relation type is negligible.
139
+
140
+ Final Training Objective The ConTempo loss is added to the final training objective with a scaling hyperparameter $\gamma$ (Equation 6). The classification loss $\ell_{\mathrm{clf}}$ is the standard cross-entropy loss computed using the model's output logits:
141
+
142
+ $$
143
+ \ell = \ell_ {\mathrm {c l f}} + \gamma \cdot \ell_ {\mathrm {t c}}. \tag {6}
144
+ $$
145
+
146
+ # 2.5 Experiment: ConTempo at Increasing Temporal Relation Awareness
147
+
148
+ Here we present the effectiveness of ConTempo at increasing temporal relation awareness. In this section, we trained an enhanced ConTempo baseline that is identical to the fine-tuned baseline but with ConTempo loss added to the model. We trained the model using the same hyperparemeters for the same amount of time.
149
+
150
+ In Figure 2, we compare ConTempo with baselines using the same similarity measures. We can observe that the similarity of the model's representation of a relation in comparison to its dual drops significantly after ConTempo is applied. Furthermore, now we can observe that the vast majority of similarity measures occupy the lower section of the figure, suggesting that ConTempo is effective at making antisymmetric relations generate representations that are distinct from their duals.
151
+
152
+ Unfortunately, we also see a similar drop in similarity for the symmetric relation (EQUAL). We believe this is caused by a data imbalance as there are too few EQUAL instances to balance the overall effect of the antisymmetric relations.
153
+
154
+ <table><tr><td>Method</td><td>MATRES</td><td>Antisym. Rel. Sim</td><td>Sym. Rel. Sim</td></tr><tr><td>RoBERTa</td><td>80.76</td><td>0.127</td><td>0.424</td></tr><tr><td>Data Expansion</td><td>80.16</td><td>-0.205</td><td>0.148</td></tr><tr><td>Relative Time</td><td>81.01</td><td>-0.237</td><td>0.144</td></tr><tr><td>Logical Constraints</td><td>81.26</td><td>-0.302</td><td>-0.102</td></tr><tr><td>ConTempo (Ours)</td><td>82.01</td><td>-0.352</td><td>-0.080</td></tr></table>
155
+
156
+ Table 2: The effectiveness of different methods at improving temporal relation awareness. The table reports each method's performance together with the average similarity measure for all the antisymmetric and symmetric relations.
157
+
158
+ # 2.6 Previous Attempts at Increasing Temporal Calculus Awareness
159
+
160
+ Does similarity reduction really lead to better temporal label awareness? Also, are there any other ways to increase temporal label awareness? Unfortunately, it is impossible to measure temporal label awareness directly, but we can infer it indirectly by observing the model's performance.
161
+
162
+ In this section we compared ConTempo with three previous methods that attempted to address similar problems. In the following paragraphs, we elucidate these methods, as they could also increase temporal relation awareness. In Table 2, we compare the effectiveness of all three with ConTempo. We use the same model setting for each method for a fair comparison. Overall, ConTempo is the most effective at reducing similarity. It also has the best performance on MATRES. This suggests ConTempo could help the model create more effective representations for TRE prediction.
163
+
164
+ Inverse Data Expansion Huang et al. (2023) simply expand the training set by adding all the inverse relations. This straightforward approach, however, does not address the issue that temporal relation labels are presented independently.
165
+
166
+ Relative Time Prediction Wen and Ji (2021) employed a relative timestamp prediction component to regulate the training process by predicting a real number ("relative event time," RET) that indicates the relative position of events in a timeline. This component is trained to maximize the distance between events in antisymmetric relations and to minimize the distance between events that are equal. This approach shares broad similarities with contrastive learning but faces two major challenges. First, relative event-time prediction in RET is ultimately computed for each single event individually, which is impossible. By contrast, Contempo considers events in pairs and accounts only
167
+
168
+ for relative information. Second, this model cannot specify the absolute distance between events, meaning it does not differentiate between events that occur seconds apart and those that are days apart. It also makes predicting chains of events (e.g., $e_1 < e_2 < \ldots < e_5$ where $<$ indicates AFTER) difficult, as the model needs to balance various data points across the entire dataset and precisely position each event within the relative time range. ConTempo does not face this issue as the time distance between any two events $(e_1, e_2)$ remains consistent regardless of the direction.
169
+
170
+ Logical Constraints Wang et al. (2020) proposed to impose soft logical constraints by adding a loss term that is calculated based on the model's output logits. In particular:
171
+
172
+ $$
173
+ \ell_ {S} = \sum \left| \log r \left(e _ {1}, e _ {2}\right) - \log \bar {r} \left(e _ {2}, e _ {1}\right) \right|, \tag {7}
174
+ $$
175
+
176
+ where $r(e_1, e_2)$ denotes the logits the model outputs for relation type $r$ given $(e_1, e_2)$ as the input, and $\bar{r}$ denotes the dual of the relation. Other logical constraints such as transitivity are also enforced by Wang et al. (2020); we temporarily skip those as they are not relevant to the topic of the current section. We will return to a discussion of other types of constraint in Section 3.3.
177
+
178
+ Logical constraint loss has some surface-level resemblance to ConTempo loss, but their method focuses on the output logits whereas ours focuses on regulating the quality of the models' representations. The major motivation for Wang et al. (2020) to add logical constraints was to avoid label conflicts; enhancing the model's understanding of temporal relation labels was secondary.
179
+
180
+ # 3 The Unified Framework
181
+
182
+ Our survey of previous systems suggests that the reusability of innovations of TRE has been limited. For example, papers working on GNN-encoding of document-level information (Zhang et al., 2022; Mathur et al., 2021; Yao et al., 2022) rarely incorporate other published innovations, such as additional common-sense information, in their models. We call for more collaboration between different directions of TRE research.
183
+
184
+ In this section, we argue that ConTempo is compatible with various recent innovations across different research directions. In particular, ConTempo is complementary to: (1) GNN encodings of event and context information, (2) incorpora
185
+
186
+ ing common-sense information, and (3) the soft enforcement of logical constraints.
187
+
188
+ # 3.1 Event and Context Encoder
189
+
190
+ All natural language understanding models need methods to encode their input sequence into vectorized representations, and to extract the relevant event and context representations. Currently, researchers typically use pre-trained language models such as BERT (Devlin et al., 2019) or RoBERTa to encode the input sequence because of the rich information these models gather during pre-training.
191
+
192
+ In TRE, an event is usually described by a complete phrase or even an entire clause. But since it is hard to annotate a discontinuous sequence, TRE corpora typically label the semantic head as the sole event trigger to represent the complete event. Extracting representations from only the event triggers may not obtain all the relevant information to make a correct prediction, however.
193
+
194
+ Therefore, TRE systems now utilize Graph Neural Networks (GNNs) to encode additional information about events and context. Zhang et al. (2022) proposed using dependency trees to help the model access different event arguments. TIMERS (Mathur et al., 2021) proposed using a GNN to encode three graphs: a sentence structure graph, a temporal structure graph, and a discourse structure graph. More recently, MulCo (Yao et al., 2022) reported better results using only the sentence $(\mathcal{G}_S)$ and temporal $(\mathcal{G}_T)$ structure graphs. They achieved better results with fewer graphs by using multiscale contrastive learning between the fine-tuning of BERT and the training of the GNN to decrease GPU memory usage. Unlike ConTempo, their contrastive learning is not used to enhance the understanding of temporal labels.
195
+
196
+ We add MulCo to the unified framework by concatenating the GNNs' outputs to the event representations as $\tilde{\mathbf{h}}_e = [\mathbf{h}_e^{\mathcal{G}_S} \parallel \mathbf{h}_e^{\mathcal{G}_T} \parallel \mathbf{h}_e]$ .
197
+
198
+ Please refer to Yao et al. (2022) for the detailed description of their model. We provide only a quick overview in Appendix B.
199
+
200
+ # 3.2 Common-sense Information
201
+
202
+ Similar to event and context encoding, we can also add additional features from external sources to enhance the representation. The feasibility of our unified framework is demonstrated by admitting temporal common-sense information.
203
+
204
+ Earlier TRE methods (Ning et al., 2018a, 2019; Wang et al., 2020) used temporal information de
205
+
206
+ GPT-3 Prompt:
207
+
208
+ But the great-uncle of 6-year-old shipwreck survivor rafter Elian Gonzalez only ducked his head and walked faster.
209
+
210
+ Q: In about 10 words describe how long does the event "ducked" typically last.
211
+
212
+ A: Ducking typically lasts only a few seconds.
213
+
214
+ Figure 3: An example prompt and response for GPT-3. The context sentence is highlighted in orange, the event trigger, in red and GPT-3's response, in green.
215
+
216
+ rived from simple heuristics, or from corpora such as TempProb, which contains typical temporal-relation information between event triggers. Unfortunately, TempProb's coverage and accuracy is limited. Alternatively, the MC-TACO corpus (Zhou et al., 2019) was developed for temporal commonsense knowledge, presenting typical duration information through answers to multiple-choice questions. This approach, however, requires the model to select a typical duration from a restricted set of pre-defined options, and is incapable of addressing typical granularity and underspecificity problems. Our system is the first to apply temporal commonsense information from LLMs for TRE purposes.
217
+
218
+ We used GPT-3 (text-davinci-003), employing the template illustrated in Figure 3, to obtain descriptions of the typical durations of events in MATRES. We then use our system's underlying RoBERTa encoder to encode a description of the typical duration, and use the [CLS]-pooler output as the representation, denoted as $\mathbf{h}_e^{\mathrm{dur}}$ .
219
+
220
+ $$
221
+ \hat {\mathbf {h}} _ {e} = \left[ \mathbf {h} _ {e} ^ {\text {d u r}} \| \tilde {\mathbf {h}} _ {e} \right] \tag {8}
222
+ $$
223
+
224
+ $$
225
+ \mathbf {h} _ {(e _ {1}, e _ {2})} = f _ {1} \left(\left[ \begin{array}{l l} \mathbf {h} _ {e _ {1}} & \parallel \\ \hline \end{array} \right] \mathbf {h} _ {e _ {2}}\right)
226
+ $$
227
+
228
+ # 3.3 Training Objective
229
+
230
+ The third type of innovation is the modification of the training objective. ConTempo itself is an innovation to the training objective.
231
+
232
+ In this section, we show that ConTempo is compatible with other techniques that have been applied to training objectives. We have incorporated the aforementioned soft logical constraints (Wang et al., 2020) into the unified framework.
233
+
234
+ We add both the symmetric loss $(\ell_S)$ and the conjunction loss $(\ell_C)$ to the loss function. There is a bit of overlap between Wang et al.'s (2020)
235
+
236
+ symmetric loss and ConTempo loss, but as previously discussed, we focus on regulating the representation whereas Wang et al.'s (2020) focus on avoiding label conflicts. ConTempo and the logical constraints complement each other, however, as ConTempo does not attempt to treat transitivity within contrastive learning. Instead, it is covered by conjunction restrictions. The loss terms are:
237
+
238
+ $$
239
+ \ell_ {S} = \sum \left| \log r \left(e _ {1}, e _ {2}\right) - \log \bar {r} \left(e _ {2}, e _ {1}\right) \right|, \tag {9}
240
+ $$
241
+
242
+ $$
243
+ \ell_ {C} = \sum | L _ {t _ {1}} | + \sum | L _ {t _ {2}} |
244
+ $$
245
+
246
+ where $L_{t_1}$ and $L_{t_2}$ are defined as:
247
+
248
+ $$
249
+ L _ {t _ {1}} = \log r _ {1} (e _ {1}, e _ {2}) + \log r _ {2} (e _ {2}, e _ {3}) - \log r _ {3} (e _ {1}, e _ {3}),
250
+ $$
251
+
252
+ $$
253
+ L _ {t _ {2}} = \log r _ {1} \left(e _ {1}, e _ {2}\right) + \log r _ {2} \left(e _ {2}, e _ {3}\right) - \log \left(1 - r _ {4} \left(e _ {1}, e _ {3}\right)\right). \tag {10}
254
+ $$
255
+
256
+ See Wang et al. (2020) for details, including the induction table for the conjunctive constraints. The final training objective is:
257
+
258
+ $$
259
+ \ell = \ell_ {\mathrm {c l f}} + \gamma \cdot \ell_ {\mathrm {t c}} + \lambda_ {S} \cdot \ell_ {S} + \lambda_ {C} \cdot \ell_ {C}. \tag {11}
260
+ $$
261
+
262
+ # 4 Experiments
263
+
264
+ # 4.1 Experimental Setup
265
+
266
+ The hyperparameter settings and training details are explained in Appendix A.
267
+
268
+ Data We experimented with both MATRES (Ning et al., 2018b) and TBD (Cassidy et al., 2014), the two popular corpora that are most often used to benchmark TRE systems. Both are derived from the TimeBank Corpus (Pustejovsky et al., 2003), which is annotated using the TimeML standard (Pustejovsky et al., 2005). The VAGUE labels are computed into the F1s for both MATRES and TBD but are regarded as negative labels.
269
+
270
+ TBD is a dense re-annotation of the TimeBank corpus where every possible pair of events/times in a given window is forced to be annotated regardless of whether there exists a specified temporal relation. As a result, TBD has ample data samples (12715 relations from 39 articles) but a relatively low inter-annotator agreement, with Cohen's (1960) $\kappa$ ranging between 0.56 and 0.64.
271
+
272
+ MATRES aimed at reducing noise in TBD's annotation. It introduced the concept of orthogonal temporal axes for hypothetical, negated, opined, and static events. In practice, these events are ignored during temporal relation annotation. They further reduced the number of temporal relations
273
+
274
+ <table><tr><td>Model</td><td>CleanMATRES</td><td>MATRES</td><td>TimeBank-Dense</td></tr><tr><td>ChatGPT 3.5</td><td>65.29</td><td>25.94</td><td>53.06</td></tr><tr><td>ChatGPT 3.5 (CoT)</td><td>66.97</td><td>35.54</td><td>57.14</td></tr><tr><td>ChatGPT 4</td><td>76.47</td><td>41.64</td><td>67.58</td></tr><tr><td>ChatGPT 4 (CoT)</td><td>80.76</td><td>56.70</td><td>65.14</td></tr><tr><td>Fine-tuned GPT 3.5</td><td>73.41</td><td>55.27</td><td>61.71</td></tr><tr><td>LSTM (Cheng and Miyao, 2017)</td><td>-</td><td>73.4</td><td>62.2</td></tr><tr><td>SCS-EERE* (Man et al., 2022)</td><td>91.25</td><td>80.98</td><td>65.92</td></tr><tr><td>Joint Constrained Learning (Wang et al., 2020)</td><td>-</td><td>78.8</td><td>-</td></tr><tr><td>Relative Time* (Wen and Ji, 2021)</td><td>89.61</td><td>81.63</td><td>66.81</td></tr><tr><td>MulCo* (Yao et al., 2022)</td><td>91.34</td><td>82.08</td><td>67.51</td></tr><tr><td>TIMERS (Mathur et al., 2021)</td><td>-</td><td>82.3</td><td>67.8</td></tr><tr><td>Endpoint Comparisons (Huang et al., 2023)</td><td>-</td><td>82.6</td><td>68.1</td></tr><tr><td>ConTempo Baseline</td><td>91.35</td><td>82.01</td><td>67.78</td></tr><tr><td>ConTempo + Unified Framework (Ours)</td><td>92.66</td><td>83.17</td><td>68.56</td></tr></table>
275
+
276
+ down to only four types. They also simplified the annotation scheme by asking the annotators to compare only the start times of events, as the end time of a durative event can often be ambiguous and cause confusion. During our survey of TRE baselines, we found that there are actually several versions of MATRES being used by different research labs (see Appendix C). We use the version that is available on the Ning et al.'s (2018b) GitHub page<sup>4</sup> and reproduced several key baseline systems' performances using our unified evaluation standards.
277
+
278
+ During the development of ConTempo, we discovered a large number of annotation errors in both MATRES and TBD. To further reduce the noise in the annotations, we re-examined and corrected the test set annotations of MATRES, creating the CleanMATRES test set. We will detail the process and describe the data in Section D.
279
+
280
+ Baseline Systems We compared ConTempo's performance with seven prior systems: LSTM (Cheng and Miyao, 2017), SCS-EERE (Man et al., 2022), Joint Constrained Learning (Wang et al., 2020), Relative Time (Wen and Ji, 2021), MulCo (Yao et al., 2022), TIMERS (Mathur et al., 2021) and Endpoint Comparisons (Huang et al., 2023). We reproduced the results of SCS-EERE and Relative Time using their publicly available code. Additionally, we reimplemented MulCo according to the specifications provided in the paper.
281
+
282
+ LLM Baselines We incorporated the performance of LLMs as an additional baseline alongside the aforementioned baseline systems. Specifically,
283
+
284
+ Table 3: F1 on CleanMATRES, MATRES and TBD. ConTempo achieved substantial improvements over strong baselines. Rows with results that we reproduced using the same evaluation settings as our model are labelled with * .
285
+
286
+ <table><tr><td>Model</td><td>CleanMATRES</td></tr><tr><td>ConTempo + Unified Framework</td><td>92.66</td></tr><tr><td>- ConTempo</td><td>91.30 (-1.36)</td></tr><tr><td>- GNN</td><td>91.65 (-1.01)</td></tr><tr><td>- GPT-3 Typical Duration</td><td>92.06 (-0.60)</td></tr><tr><td>- Logical Constraints</td><td>92.14 (-0.52)</td></tr></table>
287
+
288
+ Table 4: Ablation study results.
289
+
290
+ we reproduced the results from Yuan et al.'s (2023) using both ChatGPT-3.5 and ChatGPT-4. Chain-of-thought (CoT) was deployed in the experiments. Additionally, we fine-tuned GPT-3.5 utilizing OpenAI's API using the suggested settings to perform the task.
291
+
292
+ # 4.2 Experimental Results
293
+
294
+ Table 3 reports the performance of our ConTempo model compared to other baseline models on CleanMATRES, MATRES, and TBD. The results of our models and our reproductions are the average over three different runs with different random seeds.
295
+
296
+ Overall, ConTempo brings a substantial performance increase to the TRE model. Even the simple ConTempo baseline's performance is in the same ballpark as previous state-of-the-art systems. When enhanced by other innovations under the unified framework, our model outperformed the previous state-of-the-art models by $1.32\%$ , $0.57\%$ , and $0.46\%$ for the three datasets, respectively.
297
+
298
+ # 4.3 Ablation Study
299
+
300
+ In order to evaluate the efficacy of the proposed components in the unified framework, we conducted an ablation study, wherein we removed one
301
+
302
+ component at a time and reran the experiment using the aforementioned hyperparameters. The results of this study are presented in Table 4. Among the four components, contrastive learning demonstrated the most substantial impact on performance, with its removal leading to a $1.36\%$ decrease in the model's effectiveness. The GNN module also makes a substantial contribution to overall performance. Finally, both GPT-3 typical duration information and logical constraints exhibit moderate effects on the system's performance.
303
+
304
+ The ablation study result confirms our initial hypothesis: the primary challenge for these models has been making sense of relational labels.
305
+
306
+ # 5 Conclusion
307
+
308
+ In this paper, we propose a novel ConTempo method that utilizes contrastive learning on the symmetric and antisymmetric properties to enhance the model's awareness of temporal relations. Using ConTempo, we observe an apparent change in the representation of relations generated by the model. Particularly, we see a significant reduction in the similarity between relation representations $\mathbf{h}_r^{\rightarrow}$ in comparison to their dual $\mathbf{h}_r^{\leftarrow}$ .
309
+
310
+ ConTempo and GNN encoding, temporal common-sense information, and soft logical constraints can work in synergy to create a unified system that has achieved state-of-the-art performance across various benchmark corpora. Our success demonstrates the flexibility of ConTempo, and we call for more collaboration between different directions of TRE research.
311
+
312
+ TRE is a rare and curious case where fine-tuned small LMs perform considerably better LLMs. Even with the help of groundbreaking techniques such as chain-of-thought (Wei et al., 2022), the best performance ChatGPT can achieve is $52.4\%$ on MATRES (Yuan et al., 2023) and $41.0\%$ on TBD (Huang et al., 2023) — remarkably lower than the fine-tuned small language models' performance. This anomaly presents tremendous opportunity for both TRE researchers and LLM researchers. TRE can be used as a hard task for the LLMs' to analyse their capabilities at reasoning and comprehension. In conclusion, exploring the integration of existing TRE innovations with LLMs and incorporating LLMs as a key component within TRE frameworks could significantly enhance performance and drive forward the advancement of both fields.
313
+
314
+ # Acknowledgement
315
+
316
+ This study is funded by the Canadian Safety and Security Program (CSSP) from Defence Research and Development Canada (DRDC) awarded to the Public Health Agency of Canada (CSSP-2018-CP2334: Incorporating Advanced Data Analytics into a Health Intelligence Surveillance System). We thank the Global Public Health Intelligence Network (GPHIN) and Epidemic Intelligence from Open Sources (EIOS) teams for their support.
317
+
318
+ # Limitations
319
+
320
+ We only evaluate ConTempo's performance using RoBERTa. Other language models, such as DeBERTa (He et al., 2021), T5 (Raffel et al., 2020) and DistilBERT (Sanh et al., 2020) may provide even better performance. We leave further exploration for future work.
321
+
322
+ Due to restricted dataset resources, our unified model's evaluation was conducted only using TB-Dense and MATRES. There are other TimeML-based and even non-TimeML-based corpora related to TRE. We leave more evaluation to future work and encourage the community to reproduce our results on more datasets.
323
+
324
+ # References
325
+
326
+ James F. Allen. 1981. An interval-based representation of temporal knowledge. In In Proceedings 7th IJCAI, pages 221-226.
327
+ James F. Allen. 1983. Maintaining knowledge about temporal intervals. Communications of the ACM, 26(11):832-843.
328
+ Taylor Cassidy, Bill McDowell, Nathanael Chambers, and Steven Bethard. 2014. An Annotation Framework for Dense Event Ordering. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 501-506, Baltimore, Maryland. Association for Computational Linguistics.
329
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A Simple Framework for Contrastive Learning of Visual Representations. In Proceedings of the 37th International Conference on Machine Learning, pages 1597-1607. PMLR.
330
+ Fei Cheng and Yusuke Miyao. 2017. Classifying Temporal Relations by Bidirectional LSTM over Dependency Paths. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1-6, Vancouver, Canada. Association for Computational Linguistics.
331
+
332
+ Jacob Cohen. 1960. A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement, 20(1):37-46.
333
+ 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.
334
+ Tianyu Gao, Xingcheng Yao, and Danqi Chen. 2021. SimCSE: Simple Contrastive Learning of Sentence Embeddings. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 6894-6910, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
335
+ Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2021. DeBERTa: Decoding-enhanced BERT with Disentangled Attention. In International Conference on Learning Representations.
336
+ Quzhe Huang, Yutong Hu, Shengqi Zhu, Yansong Feng, Chang Liu, and Dongyan Zhao. 2023. More than Classification: A Unified Framework for Event Temporal Relation Extraction. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9631-9646, Toronto, Canada. Association for Computational Linguistics.
337
+ 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.
338
+ Ilya Loshchilov and Frank Hutter. 2019. Decoupled Weight Decay Regularization. In ICLR 2019.
339
+ Hieu Man, Nghia Trung Ngo, Linh Ngo Van, and Thien Huu Nguyen. 2022. Selecting Optimal Context Sentences for Event-Event Relation Extraction. Proceedings of the AAAI Conference on Artificial Intelligence, 36(10):11058-11066.
340
+ Puneet Mathur, Rajiv Jain, Franck Dernoncourt, Vlad Morariu, Quan Hung Tran, and Dinesh Manocha. 2021. TIMERS: Document-level Temporal Relation Extraction. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pages 524-533, Online. Association for Computational Linguistics.
341
+ Qiang Ning, Sanjay Subramanian, and Dan Roth. 2019. An Improved Neural Baseline for Temporal Relation Extraction. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference
342
+
343
+ on Natural Language Processing (EMNLP-IJCNLP), pages 6203-6209, Hong Kong, China. Association for Computational Linguistics.
344
+ Qiang Ning, Hao Wu, Haoruo Peng, and Dan Roth. 2018a. Improving Temporal Relation Extraction with a Globally Acquired Statistical Resource. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 841-851, New Orleans, Louisiana. Association for Computational Linguistics.
345
+ Qiang Ning, Hao Wu, and Dan Roth. 2018b. A Multi-Axis Annotation Scheme for Event Temporal Relations. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1318-1328, Melbourne, Australia. Association for Computational Linguistics.
346
+ Jingcheng Niu, Victoria Ng, Erin Rees, Simon De Montigny, and Gerald Penn. 2023. Discourse Information for Document-Level Temporal Dependency Parsing. In Proceedings of the 4th Workshop on Computational Approaches to Discourse (CODI 2023), pages 82-88, Toronto, Canada. Association for Computational Linguistics.
347
+ James Pustejovsky, Patrick Hanks, Roser Saurí, Andrew See, Rob Gaizauskas, Andrea Setzer, Dragomir Radev, Beth Sundheim, David Day, Lisa Ferro, and Marcia Lazo. 2003. The TimeBank corpus. Proceedings of Corpus Linguistics.
348
+ James Pustejovsky, Bob Ingria, Roser Sauri, Jose Castano, Jessica Littman, Rob Gaizauskas, Andrea Setzer, Graham Katz, and Inderjeet Mani. 2005. The specification language TimeML. The language of time: A reader, pages 545-557.
349
+ James Pustejovsky, Kiyong Lee, Harry Bunt, and Laurent Romary. 2010. ISO-TimeML: An International Standard for Semantic Annotation. In Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10), Valletta, Malta. European Language Resources Association (ELRA).
350
+ James Pustejovsky, Marc Verhagen, Roser Sauri, Jessica Littman, Robert Gaizauskas, Graham Katz, Inderjeet Mani, Robert Knippen, and Andrea Setzer. 2006. TimeBank 1.2.
351
+ Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. Journal of Machine Learning Research, 21(140):1-67.
352
+ Joshua David Robinson, Ching-Yao Chuang, Suvrit Sra, and Stefanie Jegelka. 2021. Contrastive learning with hard negative samples. In International Conference on Learning Representations.
353
+
354
+ Victor Sanh, Lysandre Debut, Julien Chaumont, and Thomas Wolf. 2020. DistilBERT, a distilled version of BERT: Smaller, faster, cheaper and lighter.
355
+ Haoyu Wang, Muhao Chen, Hongming Zhang, and Dan Roth. 2020. Joint Constrained Learning for Event-Event Relation Extraction. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 696–706, Online. Association for Computational Linguistics.
356
+ Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian richter, Fei Xia, Ed Chi, Quoc V Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, volume 35, pages 24824-24837. Curran Associates, Inc.
357
+ Haoyang Wen and Heng Ji. 2021. Utilizing Relative Event Time to Enhance Event-Event Temporal Relation Extraction. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 10431–10437, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
358
+ Hao-Ren Yao, Luke Breitbartler, Aakanksha Naik, Chunxiao Zhou, and Carolyn Rose. 2022. MultiScale Contrastive Co-Training for Event Temporal Relation Extraction.
359
+ Jiarui Yao, Haoling Qiu, Bonan Min, and Nianwen Xue. 2020. Annotating Temporal Dependency Graphs via Crowdsourcing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 5368-5380, Online. Association for Computational Linguistics.
360
+ Chenhan Yuan, Qianqian Xie, and Sophia Ananiadou. 2023. Zero-shot Temporal Relation Extraction with ChatGPT.
361
+ Shuaicheng Zhang, Qiang Ning, and Lifu Huang. 2022. Extracting Temporal Event Relation with Syntax-guided Graph Transformer. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 379–390, Seattle, United States. Association for Computational Linguistics.
362
+ Ben Zhou, Daniel Khashabi, Qiang Ning, and Dan Roth. 2019. "Going on a vacation" takes longer than "Going for a walk": A Study of Temporal Commonsense Understanding. 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 3363-3369, Hong Kong, China. Association for Computational Linguistics.
363
+
364
+ # A Training Details
365
+
366
+ We use roberta-large as the pre-trained encoder. The best model is selected with the highest development set performance among 20 epochs of training,
367
+
368
+ optimized using AdamW (Loshchilov and Hutter, 2019) with an initial learning rate of 1e-5 and a 0.01 weight decay. We use a linear scheduler with a warm-up ratio of 0.1 and a batch size of 64. The dropout rate is 0.1 across the system. For ConTempo, we determined $\tau = 0.05$ , $\gamma = 1.0$ using a grid search over $\{0.1, 0.05, 0.01\} \times \{1, 0.1, 0.01\}$ .
369
+
370
+ For the components in the unified systems, we follow the hyperparameter suggested by the corresponding papers (Yao et al., 2022; Wang et al., 2020).
371
+
372
+ # B MulCo
373
+
374
+ MulCon utilized a sentence structure graph $\mathcal{G}_S$ and a temporal structure graph $\mathcal{G}_T$ to encode document-level information. The sentence structure graph has three types of nodes: the document, the sentences and the tokens. All sentences are connected to the document node and each token node is connected to the sentence it located in. For an event, $\mathcal{G}_S$ 's embedding of the event trigger token is used.
375
+
376
+ The temporal structure graph, on the other hand, also has three types of nodes. The document creation time (DCT) node, the time expressions, and the events. Each time expression is connected to the DCT, and each event is connected to a time expression if there is an E2T link in the corpus. Finally, each event node has an edge point to itself.
377
+
378
+ # C MATRES Versions
379
+
380
+ We found two versions of MATRES that has been used by different works. Ning et al. (2018b) released a version on GitHub $^{5}$ that contains 837 relations in the Platinum test set. Wang et al. (2020) released another version with 818 relations in the Platinum test set. The difference (19 relations) could constitute as $2.32\%$ of the test set data. We use Ning et al.'s (2018b).
381
+
382
+ # D CleanMATRES
383
+
384
+ As we previously mentioned, we identified a large quantity of annotation errors within both MATRES and TBD. This is not surprising, however, as both corpora reported adequate inter-annotator agreements. TBD reported $\kappa$ ranged from 0.56 to 0.64 and MATRES reported a good — but not perfect — $\kappa$ of 0.84 (Table 6). In this section, we will first provide a description of the annotation errors
385
+
386
+ <table><tr><td>Relabelling</td><td colspan="2">EQUAL</td><td colspan="2">VAGUE</td><td colspan="2">BEFORE</td><td colspan="2">AFTER</td></tr><tr><td>EQUAL</td><td>10</td><td>32.26%</td><td>15</td><td>13.27%</td><td>1</td><td>0.24%</td><td>0</td><td>0%</td></tr><tr><td>VAGUE</td><td>3</td><td>9.68%</td><td>24</td><td>21.24%</td><td>5</td><td>1.17%</td><td>5</td><td>1.86%</td></tr><tr><td>BEFORE</td><td>6</td><td>19.35%</td><td>39</td><td>34.51%</td><td>405</td><td>95.52%</td><td>0</td><td>0%</td></tr><tr><td>AFTER</td><td>10</td><td>32.26%</td><td>26</td><td>23.01%</td><td>4</td><td>0.94%</td><td>256</td><td>95.17%</td></tr><tr><td>Orth. Axes</td><td>2</td><td>6.45%</td><td>9</td><td>7.96%</td><td>9</td><td>2.12%</td><td>8</td><td>2.97%</td></tr><tr><td>Total</td><td>31</td><td>100%</td><td>113</td><td>100%</td><td>424</td><td>100%</td><td>269</td><td>100%</td></tr></table>
387
+
388
+ Table 5: Re-annotation of the MATRES test set. The statistics of the correct labels are highlighted in bold. Each column corresponds to an original MATRES label. Some relations involve events that should have been placed on one of the orthogonal axes.
389
+
390
+ <table><tr><td>Corpus</td><td>Cohen&#x27;s κ</td></tr><tr><td>TimeBank-Dense</td><td>0.56-0.64</td></tr><tr><td>MATRES</td><td>0.84</td></tr><tr><td>MATRES EQUAL</td><td>1.0</td></tr><tr><td>MATRES VAGUE</td><td>0.75</td></tr></table>
391
+
392
+ Table 6: Detailed inter-annotator agreement of MA-TRES and TBD.
393
+
394
+ we identified in MATRES. Then, we will describe our re-annotation process. Finally, we will present an overview of the result of the re-annotation — CleanMATRES.
395
+
396
+ # D.1 A Qualitative Analysis of the Annotation Errors
397
+
398
+ (3) He won $_{e_1}$ the Gusher Marathon, finishing $_{e_2}$ in 3:07:35.
399
+
400
+ Original Annotation: VAGUE Correct Annotation: EQUAL
401
+
402
+ (4) The last surviving member of the team which first $\mathbf{conquered}_{e_1}$ Everest in 1953 has $\mathbf{died}_{e_2}$ in a Derbyshire nursing home.
403
+
404
+ Original Annotation: VAGUE Correct Annotation: BEFORE
405
+
406
+ (5) More than 16,000 dead pigs have been found $_{e_1}$ floating $_{e_2}$ in rivers that provide drinking water to Shanghai.
407
+
408
+ Original Annotation: EQUAL Correct Annotation: AFTER
409
+
410
+ Examples (3-5) show three examples of incorrect annotations in MATRES. In example 3, the relation between won and finishing is labelled as VAGUE,
411
+
412
+ but, nonetheless, the two mentions refer to two aspects of the same punctual event. For example 4, it is clear that the member died a long time after they conquered Everest. For example 5, since MATRES annotators were only comparing the start-time of events, the pigs floating in rivers must took place before the event that they were found.
413
+
414
+ The two examples presented in this study illustrate the main sources of annotation errors commonly found in data sets. As posited by Ning et al. (2018b), the first example's error likely stems from the annotators' lack of comprehension regarding time granularity and event coreference. MATRES annotations are created by asking annotators two heuristic questions:
415
+
416
+ (Q1) Is it possible that $e_{start}^{1}$ is before $e_{start}^{2}$ ?
417
+ (Q2) Is it possible that $e_{start}^{2}$ is before $e_{start}^{1}$ ?
418
+
419
+ The heuristic questions, Q1 and Q2, do not adequately address these concepts, necessitating the need to develop improved annotation guidelines. By effectively conveying the intricacies of time granularity and event coreference, the frequency of such errors may decrease, although perhaps with a lower $\kappa$ . The second example's mistake should perhaps be attributed to a misunderstanding of the text.
420
+
421
+ # D.2 CleanMATRES Annotation
422
+
423
+ We undertook a re-annotation of the MATRES test set. The test set were labelled independently by two authors of this paper, who were then forced to reconcile where they disagreed. Our pass through the test set reveals a significant number of annotation inaccuracies, particularly in the cases of the EQUAL and VAGUE relations. As detailed in Table 5, we found a mere $32.26\%$ of the EQUAL and $21.24\%$ of the VAGUE edges to have been accurately annotated.
424
+
425
+ # D.3 Discussion: Vague Relations
426
+
427
+ We want to take the opportunity to discuss the issues related to the VAGUE relation. The VAGUE relation, which could be better called the underspecified relation, describes relations that are uncertain due to insufficient context. However, this certainty is highly subjective to the annotator and hard to rigorously quantify. TBD adopted an "80% rule" that instruct annotators to label a relation as vague if they are "80% confident that it was the writer's intent that a reader infer that relation." As a result, inter-annotator agreement on vague edges is the lowest among all relation types.
428
+
429
+ MATRES took a different approach and treats certain combinations of the start time comparisons as vague relations. The approach attenuates the issue but by no means solve the issue. The two heuristic questions are also subject and involves a degree of uncertainty. Furthermore, similar to EQUAL relations, a simple heuristic question mistake could result in incorrect VAGUE relation annotation.
430
+
431
+ With all the aforementioned issues, CleanMATRES excludes all VAGUE relations from the test set. We only consider BEFORE, AFTER, and EQUAL relations during the evaluation of CleanMATRES. We also did not include the analysis of VAGUE relations in Section 2, as it requires a more thorough examination of the application of temporal calculus when underspecificity is involved. Allen's (1983) original temporal calculus assumes all events are intervals with well-defined endpoints. Yao et al. (2020) and Niu et al. (2023) provided a more in-depth analysis to the VAGUE edges and underspecificity.
2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60769de759a6059739ef6fdd75c06f2fafc5fb8e67512571a64e449a2e469497
3
+ size 359170
2024/ConTempo_ A Unified Temporally Contrastive Framework for Temporal Relation Extraction/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/4ad4723c-7bbd-4934-855a-91c77ee9c3b0_content_list.json ADDED
@@ -0,0 +1,1415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Concept-Best-Matching: Evaluating Compositionality in Emergent Communication",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 196,
8
+ 89,
9
+ 801,
10
+ 129
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Boaz Carmeli Yonatan Belinkov Ron Meir",
17
+ "bbox": [
18
+ 270,
19
+ 142,
20
+ 729,
21
+ 158
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Technion - Israel Institute of Technology",
28
+ "bbox": [
29
+ 332,
30
+ 160,
31
+ 668,
32
+ 175
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "boaz.carmeli@campus.technion.ac.il,",
39
+ "bbox": [
40
+ 290,
41
+ 178,
42
+ 709,
43
+ 192
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "belinkov@technion.ac.il",
50
+ "bbox": [
51
+ 359,
52
+ 193,
53
+ 638,
54
+ 208
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "rmeir@ee.technion.ac.il",
61
+ "bbox": [
62
+ 361,
63
+ 211,
64
+ 640,
65
+ 224
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Abstract",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 260,
75
+ 252,
76
+ 339,
77
+ 266
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Artificial agents that learn to communicate in order to accomplish a given task acquire communication protocols that are typically opaque to a human. A large body of work has attempted to evaluate the emergent communication via various evaluation measures, with compositionality featuring as a prominent desired trait. However, current evaluation procedures do not directly expose the compositionality of the emergent communication. We propose a procedure to assess the compositionality of emergent communication by finding the best-match between emerged words and natural language concepts. The best-match algorithm provides both a global score and a translation-map from emergent words to natural language concepts. To the best of our knowledge, it is the first time that such direct and interpretable mapping between emergent words and human concepts is provided.",
84
+ "bbox": [
85
+ 141,
86
+ 278,
87
+ 460,
88
+ 563
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 Introduction",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 114,
98
+ 574,
99
+ 258,
100
+ 589
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Artificial agents that learn to communicate for accomplishing a given task acquire communication protocols. In the common setting, a sender observes a set of objects and sends a message to a receiver, which then needs to identify the correct target objects out of a set of distractors. The two agents learn a communication protocol over discrete vocabulary of atoms, termed \"words\". The emergent communication (EC) is typically opaque to a human. As a result, a large body of work has attempted to characterize the emergent communication in light of natural language (NL) traits, such as compositionality (Hupkes et al., 2020; Chaabouni et al., 2020), systematic generalization (Vani et al., 2021), pragmatism (Andreas and Klein, 2016; Zaslavsky et al., 2021), and more.",
107
+ "bbox": [
108
+ 112,
109
+ 596,
110
+ 489,
111
+ 853
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Chief among these is compositionality, which enables the construction of complex meanings from the meaning of parts (Li and Bowling, 2019). However, quantifying compositionality in EC is noto",
118
+ "bbox": [
119
+ 112,
120
+ 854,
121
+ 489,
122
+ 919
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "image",
128
+ "img_path": "images/7efaa4f44ab3e074fc1e43b6503b044d6ba4aabf8d4ff81697e353b25ef2af64.jpg",
129
+ "image_caption": [],
130
+ "image_footnote": [],
131
+ "bbox": [
132
+ 517,
133
+ 252,
134
+ 779,
135
+ 286
136
+ ],
137
+ "page_idx": 0
138
+ },
139
+ {
140
+ "type": "image",
141
+ "img_path": "images/4248688314ed681579968ffdf95456aa4afa808659c530ff77dd1101ed2fe46b.jpg",
142
+ "image_caption": [],
143
+ "image_footnote": [],
144
+ "bbox": [
145
+ 517,
146
+ 294,
147
+ 647,
148
+ 343
149
+ ],
150
+ "page_idx": 0
151
+ },
152
+ {
153
+ "type": "image",
154
+ "img_path": "images/16a18c7c7c695ccd954b3173cff82d6d2a4ebecc235529be5809eb2cdf180752.jpg",
155
+ "image_caption": [],
156
+ "image_footnote": [],
157
+ "bbox": [
158
+ 650,
159
+ 294,
160
+ 781,
161
+ 342
162
+ ],
163
+ "page_idx": 0
164
+ },
165
+ {
166
+ "type": "image",
167
+ "img_path": "images/aa617a2e2f45b037d25b4e706d9638828f86706efeb5073ca5cd8486ab92b152.jpg",
168
+ "image_caption": [],
169
+ "image_footnote": [],
170
+ "bbox": [
171
+ 794,
172
+ 249,
173
+ 887,
174
+ 338
175
+ ],
176
+ "page_idx": 0
177
+ },
178
+ {
179
+ "type": "image",
180
+ "img_path": "images/236bd928f13a6cc074ea83943f5cea6065d12ed3eb431002eff37d053ed888cd.jpg",
181
+ "image_caption": [
182
+ "Figure 1: The multi-target shape game played in turns (showing two turns). (a) At each turn, the sender is given a set of images, a subset of them marked as targets by an Oracle. (b) Sender generates messages $[w_1, w_2]$ for the blue-triangle (turn 1) and $[w_2, w_3]$ for the red-triangle (turn 2). (c) During evaluation, we construct a bipartite graph of words generated by the sender and concepts provided by the Oracle for each turn. (d) The best-match algorithm matches EC words to NL concepts and provides the CBM score. In this example, all EC words are matched with NL concepts, resulting in a CBM score of 1.0."
183
+ ],
184
+ "image_footnote": [],
185
+ "bbox": [
186
+ 517,
187
+ 349,
188
+ 647,
189
+ 397
190
+ ],
191
+ "page_idx": 0
192
+ },
193
+ {
194
+ "type": "image",
195
+ "img_path": "images/f02978d4c6f4562f3ae144a079d8597472e6e9040d75faefad646e48a99be6fa.jpg",
196
+ "image_caption": [],
197
+ "image_footnote": [],
198
+ "bbox": [
199
+ 650,
200
+ 349,
201
+ 781,
202
+ 397
203
+ ],
204
+ "page_idx": 0
205
+ },
206
+ {
207
+ "type": "image",
208
+ "img_path": "images/33617a946fab55fb86038746e076be7f423c842a353bb8acbc50ec586bac48ed.jpg",
209
+ "image_caption": [],
210
+ "image_footnote": [],
211
+ "bbox": [
212
+ 794,
213
+ 338,
214
+ 887,
215
+ 404
216
+ ],
217
+ "page_idx": 0
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "riously difficult (Lazaridou et al., 2018). In fact, recent studies found that common compositionality measures in EC, e.g., topographic similarity (Brighton and Kirby, 2006; Li and Bowling, 2019), do not correlate well with success in the task (Chaabouni et al., 2021; Yao et al., 2022). Moreover, while seeking to assess an opaque protocol, common evaluation measures in EC are opaque themselves—they do not provide a human-interpretable characterization of the compositionality of the communication.",
222
+ "bbox": [
223
+ 507,
224
+ 624,
225
+ 884,
226
+ 800
227
+ ],
228
+ "page_idx": 0
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "This work develops a method that characterizes how compositional an EC is. Our method is founded on the key insight that, in an EC setting, a communication is compositional if agents communicate successfully via complex messages formed of simple atoms and these atoms are mapped to NL concepts. Our evaluation is based on the classical",
233
+ "bbox": [
234
+ 507,
235
+ 806,
236
+ 882,
237
+ 917
238
+ ],
239
+ "page_idx": 0
240
+ },
241
+ {
242
+ "type": "page_number",
243
+ "text": "3186",
244
+ "bbox": [
245
+ 480,
246
+ 927,
247
+ 521,
248
+ 940
249
+ ],
250
+ "page_idx": 0
251
+ },
252
+ {
253
+ "type": "footer",
254
+ "text": "Findings of the Association for Computational Linguistics: ACL 2024, pages 3186-3194",
255
+ "bbox": [
256
+ 228,
257
+ 945,
258
+ 768,
259
+ 958
260
+ ],
261
+ "page_idx": 0
262
+ },
263
+ {
264
+ "type": "footer",
265
+ "text": "August 11-16, 2024 ©2024 Association for Computational Linguistics",
266
+ "bbox": [
267
+ 284,
268
+ 959,
269
+ 712,
270
+ 971
271
+ ],
272
+ "page_idx": 0
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "best-match algorithm (Hopcroft and Karp, 1973). Given a set of EC atoms and a set of NL concepts, we construct a bi-partite graph and seek the optimal one-to-one mapping between words and concepts. A perfectly compositional EC would yield a perfect match, where every EC atom is mapped to exactly one NL concept. See Figure 1 for an illustration.",
277
+ "bbox": [
278
+ 112,
279
+ 84,
280
+ 487,
281
+ 197
282
+ ],
283
+ "page_idx": 1
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "We experiment with the proposed procedure in two EC settings and compare it to two popular evaluation measures - topographic similarity and adjusted mutual information (AMI). We demonstrate that our approach provides a fine-grained characterization of emergent protocols, exposing their strengths and weaknesses, while other measures only provide coarse, opaque scores. According to our evaluation, state-of-the-art communication methods do not achieve satisfactory results.",
288
+ "bbox": [
289
+ 115,
290
+ 199,
291
+ 489,
292
+ 357
293
+ ],
294
+ "page_idx": 1
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "2 Background",
299
+ "text_level": 1,
300
+ "bbox": [
301
+ 112,
302
+ 363,
303
+ 257,
304
+ 381
305
+ ],
306
+ "page_idx": 1
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "2.1 Emergent Communication Setup",
311
+ "text_level": 1,
312
+ "bbox": [
313
+ 112,
314
+ 388,
315
+ 418,
316
+ 404
317
+ ],
318
+ "page_idx": 1
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "We follow a recent setup suggested by Mu and Goodman (2021), where a sender needs to communicate with a receiver about a set of target objects out of a larger set of candidate objects. The sender sends a message to the receiver, which uses it to distinguish targets from distractor objects. For example, to identify all red triangles out of objects with different shapes and colors. This setup is more conducive to emergence of compositional communication than the classical referential game (Lazaridou et al., 2017). Senders in this setup need to form a generalization rather than merely transmit the identity of a single target.",
323
+ "bbox": [
324
+ 112,
325
+ 411,
326
+ 489,
327
+ 620
328
+ ],
329
+ "page_idx": 1
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "Formally, assume a world $\\mathbb{X}$ , where each object is characterised by $n$ feature-value pairs (FVPs), $\\langle f_1 : v_1, \\ldots, f_n : v_n \\rangle$ , with feature $i$ having $k_i$ possible values, $v_i \\in \\{f_i[1], \\ldots, f_i[k_i]\\}$ . For instance, the Shape world (Kuhnle and Copestake, 2017) has objects like $\\langle \\text{shape: triangle, color: red} \\rangle$ . Labeling rules are boolean expressions over these FVPs. Each rule $l : \\mathbb{X} \\mapsto \\{0, 1\\}$ labels each object as 0 or 1. For instance, the rule Red Triangle labels all red triangles as positive and all other objects as negative. We identify the rule Red Triangle with the NL phrase \"red triangle\", which comprises the concepts \"red\" and \"triangle\".",
334
+ "bbox": [
335
+ 112,
336
+ 621,
337
+ 489,
338
+ 829
339
+ ],
340
+ "page_idx": 1
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "At each turn of the game, we draw a set of candidate objects $\\tilde{\\mathbb{X}}\\subset \\mathbb{X}$ that is made of target objects, $\\mathbb{T}$ , which obey the rule, and distractors, $\\mathbb{D}$ , which do not: $l(x) = 1$ if $x\\in \\mathbb{T}$ and $l(x) = 0$ if $x\\in \\mathbb{D}$ .",
345
+ "bbox": [
346
+ 112,
347
+ 829,
348
+ 489,
349
+ 895
350
+ ],
351
+ "page_idx": 1
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "The sender encodes the set of target objects $\\mathbb{T}$ into a dense representation $\\pmb{u}^s\\in \\mathbb{R}^d$ , and generates a message $m$ , a sequence of words from some vocabulary. The receiver encodes each candidate object $x\\in \\mathbb{X}$ into a representation $\\pmb {u}_x^r\\in \\mathbb{R}^d$ . It decodes the message $m$ into a representation $\\pmb {z}\\in \\mathbb{R}^{d}$ and computes a matching score between each encoded candidate and the message representation, $g(z,\\pmb {u}_x^r)$ . A candidate is predicted as a target if its score is $>0.5$ . The entire system—sender and receiver networks—is trained jointly with a binary cross entropy on correctly identifying each target.",
356
+ "bbox": [
357
+ 507,
358
+ 84,
359
+ 884,
360
+ 277
361
+ ],
362
+ "page_idx": 1
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "2.2 Compositionality in EC",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 507,
370
+ 285,
371
+ 741,
372
+ 300
373
+ ],
374
+ "page_idx": 1
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Various measures have been proposed to evaluate if an EC protocol is compositional. We mention a few prominent ones below. However, while trying to capture the idea that a complex meaning uses the meaning of its parts, previous measures fail to provide a concrete mapping of parts—EC words and NL concepts. We say an emergent communication is compositional if the following conditions hold:",
379
+ "bbox": [
380
+ 507,
381
+ 307,
382
+ 882,
383
+ 435
384
+ ],
385
+ "page_idx": 1
386
+ },
387
+ {
388
+ "type": "list",
389
+ "sub_type": "text",
390
+ "list_items": [
391
+ "1. EC words are mapped to NL concepts.",
392
+ "2. A complex EC message is composed of simple EC words.",
393
+ "3. Agents communicate successfully via complex messages.",
394
+ "4. An EC message composed of words has the same meaning as an NL phrase composed of the respective concepts."
395
+ ],
396
+ "bbox": [
397
+ 522,
398
+ 438,
399
+ 882,
400
+ 574
401
+ ],
402
+ "page_idx": 1
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Being able to compose EC words while preserving their NL meaning allows agents to generalize to new data while using interpretable communication.",
407
+ "bbox": [
408
+ 507,
409
+ 576,
410
+ 882,
411
+ 624
412
+ ],
413
+ "page_idx": 1
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "2.3 Compositionality Evaluations in EC",
418
+ "text_level": 1,
419
+ "bbox": [
420
+ 507,
421
+ 631,
422
+ 843,
423
+ 646
424
+ ],
425
+ "page_idx": 1
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "We briefly describe two notable measures of compositionality in EC. Appendix A gives more details.",
430
+ "bbox": [
431
+ 507,
432
+ 653,
433
+ 884,
434
+ 686
435
+ ],
436
+ "page_idx": 1
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "Topographic Similarity (TopSim) (Brighton and Kirby, 2006) measures how well messages align with object representations. Given a set of objects and their EC messages, calculate a matrix of distances between every two messages and a separate matrix of distances between every two object representations. TopSim is the Spearman correlation of the two distance matrices.",
441
+ "bbox": [
442
+ 507,
443
+ 693,
444
+ 882,
445
+ 820
446
+ ],
447
+ "page_idx": 1
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "TopSim is a global metric that does not require a reference language and can be applied to any EC setup. However, recent studies found that TopSim does not correlate well with success in the task being played (Chaabouni et al., 2021; Yao et al., 2022). More importantly, it does not provide a",
452
+ "bbox": [
453
+ 507,
454
+ 822,
455
+ 882,
456
+ 917
457
+ ],
458
+ "page_idx": 1
459
+ },
460
+ {
461
+ "type": "page_footnote",
462
+ "text": "In this work we only use conjunctive expressions.",
463
+ "bbox": [
464
+ 134,
465
+ 903,
466
+ 445,
467
+ 917
468
+ ],
469
+ "page_idx": 1
470
+ },
471
+ {
472
+ "type": "page_number",
473
+ "text": "3187",
474
+ "bbox": [
475
+ 480,
476
+ 927,
477
+ 519,
478
+ 940
479
+ ],
480
+ "page_idx": 1
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "mapping between EC words and NL concepts, and thus cannot directly assess compositionality.",
485
+ "bbox": [
486
+ 112,
487
+ 84,
488
+ 485,
489
+ 115
490
+ ],
491
+ "page_idx": 2
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "Adjusted Mutual Information (AMI) (Vinh et al., 2009) measures the MIT between a set of EC messages and a corresponding set of NL phrases, adjusted for chance. Mu and Goodman (2021) showed AMI is a better compositionality measure than TopSim, as it directly assesses the MI between a message and its NL phrases. Still, AMI operates at the level of messages and phrases, rather than atomic words and concepts, respectively.",
496
+ "bbox": [
497
+ 112,
498
+ 117,
499
+ 485,
500
+ 261
501
+ ],
502
+ "page_idx": 2
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "3 Concept Best Matching",
507
+ "text_level": 1,
508
+ "bbox": [
509
+ 112,
510
+ 267,
511
+ 349,
512
+ 282
513
+ ],
514
+ "page_idx": 2
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "Our key insight is that compositionality requires a mapping between words (atomic parts of EC messages) and concepts (a set of FVPs) that compose NL phrases. Given an evaluation set of examples $D$ , consider their corresponding EC messages $\\mathbb{M}$ and NL phrases $\\mathbb{L}$ . Let $\\mathbb{W}$ denote the set of unique words in $\\mathbb{M}$ , and $\\mathbb{V}$ the set of unique FVPs in $\\mathbb{L}$ . Let $\\{w\\}_i, \\{v\\}_i$ be the sets of words and FVPs in sample $i$ , and $m_i = |\\{w\\}_i|, l_i = |\\{v\\}_i|$ their sizes. We construct a weighted bipartite graph $\\mathcal{G} = ((\\mathbb{W}, \\mathbb{V}), \\mathbb{E})$ with words on one side and FVPs on the other side. Edges $\\mathbb{E}$ are defined by the evaluation set. The weight $q_e$ of edge $e_{ij}$ is the number of times word $i$ appeared in a message that the sender transmitted for a labeling rule with FVP $j$ . This construction reflects the intuition that we do not know the correct mapping between words and FVPs (concepts). See Figure 1 for an example.",
519
+ "bbox": [
520
+ 112,
521
+ 288,
522
+ 489,
523
+ 580
524
+ ],
525
+ "page_idx": 2
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "3.1 Best Match Algorithm",
530
+ "text_level": 1,
531
+ "bbox": [
532
+ 112,
533
+ 586,
534
+ 337,
535
+ 600
536
+ ],
537
+ "page_idx": 2
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Given the graph $\\mathcal{G}$ , we seek an optimal pairing between words and concepts (FVPs), such that no two edges share the same word nor the same concept. The score of a match $\\mathbb{B} \\subseteq \\mathbb{E}$ is the sum of its edge weights, $\\sum_{e \\in \\mathbb{B}} q_e$ . The best match, $\\mathrm{BM} = \\mathrm{BM}(\\mathcal{G})$ , maximizes this score:",
542
+ "bbox": [
543
+ 112,
544
+ 607,
545
+ 489,
546
+ 702
547
+ ],
548
+ "page_idx": 2
549
+ },
550
+ {
551
+ "type": "equation",
552
+ "text": "\n$$\n\\mathrm {B M} = \\underset {\\mathbb {B}} {\\operatorname {a r g m a x}} \\sum_ {e \\in \\mathbb {B}} q _ {e} \\tag {1}\n$$\n",
553
+ "text_format": "latex",
554
+ "bbox": [
555
+ 203,
556
+ 712,
557
+ 487,
558
+ 746
559
+ ],
560
+ "page_idx": 2
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Such an ideal mapping is fully interpretable. A high score indicates that the agents learned to generate a unique EC word for each NL concept.",
565
+ "bbox": [
566
+ 112,
567
+ 756,
568
+ 487,
569
+ 803
570
+ ],
571
+ "page_idx": 2
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "Normalizing the BM score by the number of symbols and words, $Q = \\sum_{i\\in D}\\max (|m_i|,|l_i|)$ , guarantees that $\\mathrm{BM}\\in [0,1]$ . The best match for a weighted bipartite graph can be found efficiently by the Hungarian algorithm (Kuhn, 1955;",
576
+ "bbox": [
577
+ 112,
578
+ 804,
579
+ 487,
580
+ 885
581
+ ],
582
+ "page_idx": 2
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "Hopcroft and Karp, 1973). Implementation is provided here.",
587
+ "bbox": [
588
+ 507,
589
+ 84,
590
+ 884,
591
+ 115
592
+ ],
593
+ "page_idx": 2
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "4 Experimental Setup",
598
+ "text_level": 1,
599
+ "bbox": [
600
+ 507,
601
+ 122,
602
+ 717,
603
+ 139
604
+ ],
605
+ "page_idx": 2
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "We experiments with agents that learn to play multi-target referential games, introduced by Mu and Goodman (2021) and described in Section 2.1. All experiments reported in Table 1 have the number of possible words $\\geq$ the number of concepts, allowing perfect match of words to concepts. In Appendix D we report more experiments with sub-optimal configurations.",
610
+ "bbox": [
611
+ 507,
612
+ 145,
613
+ 882,
614
+ 273
615
+ ],
616
+ "page_idx": 2
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Datasets. We experiment with two datasets, described briefly here; Appendix B has more details.",
621
+ "bbox": [
622
+ 507,
623
+ 281,
624
+ 882,
625
+ 312
626
+ ],
627
+ "page_idx": 2
628
+ },
629
+ {
630
+ "type": "list",
631
+ "sub_type": "text",
632
+ "list_items": [
633
+ "(1) SHAPE: A visual reasoning dataset (Kuhnle and Copestake, 2017) of objects over a black background. Our version of the dataset contains four attributes: shape, color, and horizontal and vertical positions. Overall, the SHAPE dataset contains 17 concepts, and a maximal labeling rule of 4 FVPs.",
634
+ "(2) THING: A synthetic dataset of 100,000 objects. Each object has five attributes, each with 10 possible values. Overall, the THING datasets contains 50 concepts and a maximal labeling rule of 5 FVPs."
635
+ ],
636
+ "bbox": [
637
+ 507,
638
+ 313,
639
+ 882,
640
+ 473
641
+ ],
642
+ "page_idx": 2
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "Communication Channel. We train the system with two types of communication channels: the popular Gumbel-Softmax (GS) (Havylov and Titov, 2017; Jang et al., 2017) and quantized communication (QT) (Carmeli et al., 2023). In GS, each word is a $d$ -dimensional one-hot vector. In QT, each word is a $d$ -dimensional binary vector. QT was shown to be superior and easier to optimize compared to GS in EC games. In both cases we use a recurrent network to generate multi-word messages. Appendix C has implementation details.",
647
+ "bbox": [
648
+ 507,
649
+ 480,
650
+ 882,
651
+ 657
652
+ ],
653
+ "page_idx": 2
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "5 Results",
658
+ "text_level": 1,
659
+ "bbox": [
660
+ 507,
661
+ 663,
662
+ 606,
663
+ 678
664
+ ],
665
+ "page_idx": 2
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "Table 1 shows results on several configurations of the two games. As expected, accuracy degrades as the task becomes more difficult, with longer labeling rules. QT communication yields better task accuracy than GS, consistent with Carmeli et al. (2023). TopSim is not well correlated with accuracy, as found in prior work (Section 2.3). AMI and CBM are more correlated with accuracy. With long messages and labeling rules ( $l = 4$ ), AMI is less correlated with accuracy. This may be explained by AMI operating at the level of whole messages and labeling rules—AMI struggles with large numbers of unique messages and NL phrases. In contrast,",
670
+ "bbox": [
671
+ 507,
672
+ 686,
673
+ 882,
674
+ 895
675
+ ],
676
+ "page_idx": 2
677
+ },
678
+ {
679
+ "type": "page_footnote",
680
+ "text": "<sup>3</sup>https://github.com/bcarmeli/cbm",
681
+ "bbox": [
682
+ 529,
683
+ 903,
684
+ 821,
685
+ 917
686
+ ],
687
+ "page_idx": 2
688
+ },
689
+ {
690
+ "type": "page_footnote",
691
+ "text": "2In practice, the lowest bound is $q_{\\tilde{e}} / Q$ , where $\\tilde{e}$ is the edge with the highest weight in $\\mathcal{G}$",
692
+ "bbox": [
693
+ 112,
694
+ 891,
695
+ 487,
696
+ 917
697
+ ],
698
+ "page_idx": 2
699
+ },
700
+ {
701
+ "type": "page_number",
702
+ "text": "3188",
703
+ "bbox": [
704
+ 480,
705
+ 927,
706
+ 519,
707
+ 940
708
+ ],
709
+ "page_idx": 2
710
+ },
711
+ {
712
+ "type": "table",
713
+ "img_path": "images/04ce1a955356389f4deb57721e2eb4a3d196645c1388f110a9af5434a53cee98.jpg",
714
+ "table_caption": [],
715
+ "table_footnote": [],
716
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Com</td><td rowspan=\"2\">l</td><td rowspan=\"2\">d</td><td colspan=\"2\">NL</td><td colspan=\"2\">EC</td><td rowspan=\"2\">Acc</td><td rowspan=\"2\">Top Sim</td><td rowspan=\"2\">AMI</td><td colspan=\"4\">Best Match</td></tr><tr><td>Cons</td><td>Phrs</td><td>#w</td><td>#m</td><td>CBM</td><td>Amb</td><td>Para</td><td>Unm</td></tr><tr><td rowspan=\"4\">Shape</td><td>GS</td><td>1</td><td>17</td><td>17</td><td>17</td><td>11</td><td>11</td><td>0.84</td><td>0.44</td><td>0.76</td><td>0.62</td><td>0.37</td><td>0.01</td><td>0.25</td></tr><tr><td>QT</td><td>1</td><td>5</td><td>17</td><td>17</td><td>26</td><td>26</td><td>0.87</td><td>0.39</td><td>0.85</td><td>0.52</td><td>0.41</td><td>0.08</td><td>0</td></tr><tr><td>GS</td><td>4</td><td>17</td><td>17</td><td>34</td><td>16</td><td>226</td><td>0.78</td><td>0.34</td><td>0.38</td><td>0.52</td><td>0.48</td><td>0</td><td>0.01</td></tr><tr><td>QT</td><td>4</td><td>5</td><td>17</td><td>34</td><td>26</td><td>187</td><td>0.83</td><td>0.23</td><td>0.37</td><td>0.55</td><td>0.37</td><td>0.08</td><td>0</td></tr><tr><td rowspan=\"4\">Thing</td><td>GS</td><td>1</td><td>50</td><td>50</td><td>50</td><td>18</td><td>18</td><td>0.86</td><td>0.45</td><td>0.72</td><td>0.38</td><td>0.62</td><td>0</td><td>0.55</td></tr><tr><td>QT</td><td>1</td><td>6</td><td>50</td><td>50</td><td>50</td><td>50</td><td>0.92</td><td>0.07</td><td>0.74</td><td>0.73</td><td>0.25</td><td>0.02</td><td>0</td></tr><tr><td>GS</td><td>4</td><td>50</td><td>50</td><td>901</td><td>36</td><td>198</td><td>0.63</td><td>0.33</td><td>0.03</td><td>0.24</td><td>0.76</td><td>0</td><td>0.28</td></tr><tr><td>QT</td><td>4</td><td>6</td><td>50</td><td>901</td><td>64</td><td>450</td><td>0.77</td><td>0.14</td><td>0.05</td><td>0.23</td><td>0.69</td><td>0.08</td><td>0</td></tr></table>",
717
+ "bbox": [
718
+ 117,
719
+ 80,
720
+ 884,
721
+ 275
722
+ ],
723
+ "page_idx": 3
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "Table 1: Results for SHAPE and THING games with Gumbel-Softmax (GS) or Quantized (QT) communication using rules of length $l$ and words of length $d$ , showing number of unique NL concepts (Cons) and phrases (Phrs) and EC words (\\#w) and messages (#m). TopSim and AMI give only coarse scores. Our method gives the best match score (CBM) and rates of Ambiguities (Amb), Paraphrases (Para), and Unmatched concepts (Unm).",
728
+ "bbox": [
729
+ 112,
730
+ 282,
731
+ 882,
732
+ 341
733
+ ],
734
+ "page_idx": 3
735
+ },
736
+ {
737
+ "type": "image",
738
+ "img_path": "images/d9ee58b9348d750d002cb8984b3fb9b33670a05da6509829cc76649979539b07.jpg",
739
+ "image_caption": [
740
+ "Figure 2: The word $\\leftrightarrow$ FVP best-match graph for the SHAPE game (GS communication, $l = 1$ ). The algorithm matched just 10 concepts to EC words out of 17 possible concepts."
741
+ ],
742
+ "image_footnote": [],
743
+ "bbox": [
744
+ 127,
745
+ 347,
746
+ 865,
747
+ 441
748
+ ],
749
+ "page_idx": 3
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "CBM assesses word-to-concept matching, so it is less affected by long messages and rules. However, AMI and CBM are well correlated (Pearson 0.7 and 0.79 on the SHAPE and THING games).",
754
+ "bbox": [
755
+ 112,
756
+ 499,
757
+ 487,
758
+ 563
759
+ ],
760
+ "page_idx": 3
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "The table also shows the rate of ambiguities and paraphrases, exposed by our method. Ambiguities happen when the same EC word is mapped to different concepts. Table 1 shows higher rates of ambiguities in GS compared to QT, and in longer rules. Paraphrases are EC words that do not have a best-matched concept node. Paraphrases occur more with QT, which enables 32 and 64 unique EC words for the SHAPE and THING games, while these games have only 17 and 50 NL concepts, respectively. GS allows setting the number of unique words equal to number of concepts, thus is less exposed to this sub-optimal phenomenon.",
765
+ "bbox": [
766
+ 112,
767
+ 564,
768
+ 487,
769
+ 772
770
+ ],
771
+ "page_idx": 3
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "Finally, Unmatched concepts have no matching EC word. They result from a too narrow or underutilized channel. As Table 1 shows, GS communication suffers from a high rate of unmatched concepts (up to 0.5). This phenomenon can be observed by the low # of unique words (18) compared to # of unique concepts (50) for the THING game with GS and $l = 1$ . QT has a sufficient number of words and thus no unmatched concepts.",
776
+ "bbox": [
777
+ 112,
778
+ 774,
779
+ 489,
780
+ 919
781
+ ],
782
+ "page_idx": 3
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "Example Match. Beyond global scores, the CBM provides an interpretable translation graph, which maps EC words to NL concepts, facilitating insights on reasons for sub-optimal communication. Figure 2 shows an example graph for the SHAPE game with GS communication. As seen, the algorithm successfully matched 10 EC words to 10 concepts. The sender generated 11 unique words in this experiment, indicating that one word is a paraphrase of an already matched concept, even within this narrow-channel setup.",
787
+ "bbox": [
788
+ 507,
789
+ 499,
790
+ 884,
791
+ 675
792
+ ],
793
+ "page_idx": 3
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "6 Conclusion",
798
+ "text_level": 1,
799
+ "bbox": [
800
+ 507,
801
+ 681,
802
+ 640,
803
+ 696
804
+ ],
805
+ "page_idx": 3
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "We proposed a new procedure for assessing compositionality of emergent communication. In contrast to other evaluations, our procedure provides a human-interpretable translation map of emerged words to natural concepts. Moreover, our approach provides detailed insights into the reasons for suboptimal translation. We demonstrated it on two EC games with two different communication types. Our evaluation reveals even that quantized communication performs better than Gumbel-softmax, yet none exhibits compositionality in a level similar to natural language.",
810
+ "bbox": [
811
+ 507,
812
+ 703,
813
+ 884,
814
+ 897
815
+ ],
816
+ "page_idx": 3
817
+ },
818
+ {
819
+ "type": "page_footnote",
820
+ "text": "4The exact configuration is given in Table 1, first row.",
821
+ "bbox": [
822
+ 529,
823
+ 904,
824
+ 858,
825
+ 917
826
+ ],
827
+ "page_idx": 3
828
+ },
829
+ {
830
+ "type": "page_number",
831
+ "text": "3189",
832
+ "bbox": [
833
+ 480,
834
+ 927,
835
+ 519,
836
+ 940
837
+ ],
838
+ "page_idx": 3
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Limitations",
843
+ "text_level": 1,
844
+ "bbox": [
845
+ 114,
846
+ 84,
847
+ 220,
848
+ 99
849
+ ],
850
+ "page_idx": 4
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Our analysis is limited to datasets where gold label phrases exist. The evaluated dataset should be composable and the gold language should use finite set of concepts. Preferably, these concepts can be classified into several categories. We further assume an Oracle function that can divide the objects to targets and distractors during training. Importantly, our approach does not require labels during training.",
855
+ "bbox": [
856
+ 112,
857
+ 105,
858
+ 489,
859
+ 236
860
+ ],
861
+ "page_idx": 4
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Acknowledgements",
866
+ "text_level": 1,
867
+ "bbox": [
868
+ 114,
869
+ 242,
870
+ 285,
871
+ 258
872
+ ],
873
+ "page_idx": 4
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "This research was supported by grant no. 2022330 from the United States - Israel Binational Science Foundation (BSF), Jerusalem, Israel. The research of YB was also supported by the Israel Science Foundation (grant 448/20), an Azrieli Foundation Early Career Faculty Fellowship, and an AI Alignment grant from Open Philanthropy. The work of RM was partially supported by the Skillman chair in biomedical sciences and by the Ollendorf center.",
878
+ "bbox": [
879
+ 112,
880
+ 265,
881
+ 489,
882
+ 411
883
+ ],
884
+ "page_idx": 4
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "References",
889
+ "text_level": 1,
890
+ "bbox": [
891
+ 114,
892
+ 432,
893
+ 213,
894
+ 448
895
+ ],
896
+ "page_idx": 4
897
+ },
898
+ {
899
+ "type": "list",
900
+ "sub_type": "ref_text",
901
+ "list_items": [
902
+ "Jacob Andreas and Dan Klein. 2016. Reasoning about pragmatics with neural listeners and speakers. In EMNLP.",
903
+ "Henry Brighton and Simon Kirby. 2006. Understanding linguistic evolution by visualizing the emergence of topographic mappings. Artificial life, 12(2):229-242.",
904
+ "Boaz Carmeli, Ron Meir, and Yonatan Belinkov. 2023. Emergent quantized communication. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 11533-11541.",
905
+ "Rahma Chaabouni, Eugene Kharitonov, Diane Bouchacourt, Emmanuel Dupoux, and Marco Baroni. 2020. Compositionality and generalization in emergent languages. In ACL, pages 4427-4442.",
906
+ "Rahma Chaabouni, Florian Strub, Florent Altché, Eugene Tarassov, Corentin Tallec, Elnaz Davoodi, Kory Wallace Mathewson, Olivier Tieleman, Angeliki Lazaridou, and Bilal Piot. 2021. Emergent communication at scale. In ICLR.",
907
+ "Serhii Havrylov and Ivan Titov. 2017. Emergence of language with multi-agent games: Learning to communicate with sequences of symbols. NeurIPS, 30.",
908
+ "John E Hopcroft and Richard M Karp. 1973. An $\\mathfrak{n}^5 /2$ algorithm for maximum matchings in bipartite graphs. SIAM Journal on computing, 2(4):225-231.",
909
+ "Dieuwke Hupkes, Verna Dankers, Mathijs Mul, and Elia Bruni. 2020. Compositionality decomposed: How do neural networks generalise? Journal of Artificial Intelligence Research, 67:757-795."
910
+ ],
911
+ "bbox": [
912
+ 115,
913
+ 454,
914
+ 489,
915
+ 917
916
+ ],
917
+ "page_idx": 4
918
+ },
919
+ {
920
+ "type": "list",
921
+ "sub_type": "ref_text",
922
+ "list_items": [
923
+ "Eric Jang, Shixiang Gu, and Ben Poole. 2017. Categorical reparameterization with gumbel-softmax. In ICLR.",
924
+ "Eugene Kharitonov, Rahma Chaabouni, Diane Bouchacourt, and Marco Baroni. 2019. EGG: a toolkit for research on emergence of lanGuage in games. In EMNLP-IJCNLP: System Demonstrations, pages 55-60.",
925
+ "Harold W Kuhn. 1955. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83-97.",
926
+ "Alexander Kuhnle and Ann Copestake. 2017. Shapeworld - a new test methodology for multimodal language understanding. arXiv preprint arXiv:1704.04517.",
927
+ "Angeliki Lazaridou, Karl Moritz Hermann, Karl Tuyls, and Stephen Clark. 2018. Emergence of linguistic communication from referential games with symbolic and pixel input. In ICLR.",
928
+ "Angeliki Lazaridou, Alexander Peysakhovich, and Marco Baroni. 2017. Multi-agent cooperation and the emergence of (natural) language. In ICLR.",
929
+ "Vladimir I Levenshtein et al. 1966. Binary codes capable of correcting deletions, insertions, and reversals. In Soviet physics doklady, volume 10, pages 707-710. Soviet Union.",
930
+ "Fushan Li and Michael Bowling. 2019. Ease-of-teaching and language structure from emergent communication. NeurIPS, 32.",
931
+ "Jesse Mu and Noah Goodman. 2021. Emergent communication of generalizations. Advances in Neural Information Processing Systems, 34:17994-18007.",
932
+ "Mycal Tucker, Roger P Levy, Julie Shah, and Noga Zaslavsky. 2022. Generalization and translatability in emergent communication via informational constraints. In NeurIPS 2022 Workshop on Information-Theoretic Principles in Cognitive Systems.",
933
+ "Ankit Vani, Max Schwarzer, Yuchen Lu, Eeshan Dhekane, and Aaron Courville. 2021. Iterated learning for emergent systematicity in VQA. In ICLR.",
934
+ "Nguyen Xuan Vinh, Julien Epps, and James Bailey. 2009. Information theoretic measures for clusterings comparison: is a correction for chance necessary? In Proceedings of the 26th annual international conference on machine learning, pages 1073-1080.",
935
+ "Shunyu Yao, Mo Yu, Yang Zhang, Karthik R Narasimhan, Joshua B. Tenenbaum, and Chuang Gan. 2022. Linking emergent and natural languages via corpus transfer. In ICLR.",
936
+ "Noga Zaslavsky, Jennifer Hu, and Roger P. Levy. 2021. A Rate-Distortion view of human pragmatic reasoning? In Proceedings of the Society for Computation in Linguistics, pages 347-348."
937
+ ],
938
+ "bbox": [
939
+ 510,
940
+ 85,
941
+ 884,
942
+ 908
943
+ ],
944
+ "page_idx": 4
945
+ },
946
+ {
947
+ "type": "page_number",
948
+ "text": "3190",
949
+ "bbox": [
950
+ 480,
951
+ 928,
952
+ 521,
953
+ 940
954
+ ],
955
+ "page_idx": 4
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "Appendices",
960
+ "text_level": 1,
961
+ "bbox": [
962
+ 114,
963
+ 84,
964
+ 218,
965
+ 99
966
+ ],
967
+ "page_idx": 5
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "A Details on Evaluation Measures",
972
+ "text_level": 1,
973
+ "bbox": [
974
+ 114,
975
+ 109,
976
+ 426,
977
+ 124
978
+ ],
979
+ "page_idx": 5
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "We provide here information on how to calculate the topographic similarity (TopSim) (Brighton and Kirby, 2006; Lazaridou et al., 2018; Yao et al., 2022) and adjusted mutual information (AMI) measures (Vinh et al., 2009; Mu and Goodman, 2021), in the context of EC. Refer to the original papers for full details.",
984
+ "bbox": [
985
+ 112,
986
+ 134,
987
+ 489,
988
+ 244
989
+ ],
990
+ "page_idx": 5
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Topographic Similarity. The topographic similarity measures how messages align with the object representations. Concretely, let $\\cos_{ij} = \\cos (\\pmb{x}_i,\\pmb{x}_j) = \\pmb{x}_i\\cdot \\pmb{x}_j / (||\\pmb{x}_i||_2||\\pmb{x}_j||_2)$ be the cosine similarity of object representations $\\pmb{x}_i$ and $\\pmb{x}_j$ and $\\mathrm{edit}_{ij} = \\mathrm{edit}(m_i,m_j)$ be the Levenshtein distance (Levenshtein et al., 1966) between messages $m_{i}$ and $m_j$ . Let $\\mathrm{ncos} = -\\{\\cos_{ij}\\}_{ij}$ be the list of negative cosine similarities, $\\mathrm{edit} = \\{\\mathrm{edit}_{ij}\\}_{ij}$ the list of Levenshtein distances, and $R(\\cdot)$ the ranking function. Then the topographic similarity is the Spearman rank correlation of the two matrices:",
995
+ "bbox": [
996
+ 112,
997
+ 256,
998
+ 489,
999
+ 449
1000
+ ],
1001
+ "page_idx": 5
1002
+ },
1003
+ {
1004
+ "type": "equation",
1005
+ "text": "\n$$\n\\operatorname {T o p s i m} = \\rho (R (\\operatorname {e d i t}), R (\\operatorname {n c o s})) \\tag {2}\n$$\n",
1006
+ "text_format": "latex",
1007
+ "bbox": [
1008
+ 181,
1009
+ 464,
1010
+ 487,
1011
+ 483
1012
+ ],
1013
+ "page_idx": 5
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "where $\\rho$ is the standard Pearson correlation.",
1018
+ "bbox": [
1019
+ 112,
1020
+ 499,
1021
+ 438,
1022
+ 514
1023
+ ],
1024
+ "page_idx": 5
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Topographic similarity is a global metric that does not require a reference language and can be easily applied to every EC setup. However, despite its popularity, recent studies found that topographic similarity does not correlate well with success in the task being played (Chaabouni et al., 2021; Yao et al., 2022). More important, it does not provide a mapping between EC atoms and NL concepts, and thus cannot directly assess compositionality.",
1029
+ "bbox": [
1030
+ 112,
1031
+ 517,
1032
+ 487,
1033
+ 661
1034
+ ],
1035
+ "page_idx": 5
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "Adjusted Mutual Information. Given a test set $D$ , let $\\mathbb{M}$ denote the set of messages generated by the sender and $\\mathbb{L}$ denote the set of NL phrases (e.g., Red Triangle, Blue Square) exist as labels in the data. The adjusted mutual information (AMI) (Vinh et al., 2009) measures the mutual information between messages and labels, adjusted for chance:",
1040
+ "bbox": [
1041
+ 112,
1042
+ 671,
1043
+ 489,
1044
+ 797
1045
+ ],
1046
+ "page_idx": 5
1047
+ },
1048
+ {
1049
+ "type": "equation",
1050
+ "text": "\n$$\n\\operatorname {A M I} (M, L) = \\frac {I (M , L) - \\mathbb {E} (I (M , L)}{\\max (H (M) , H (L)) - \\mathbb {E} (I (M , L))} \\tag {3}\n$$\n",
1051
+ "text_format": "latex",
1052
+ "bbox": [
1053
+ 129,
1054
+ 810,
1055
+ 487,
1056
+ 841
1057
+ ],
1058
+ "page_idx": 5
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "where $I(M,L)$ is the mutual information between $M$ and $L$ , $H(\\cdot)$ is the entropy, and $\\mathbb{E}(I(M,L))$ is computed with respect to a hypergeometric model of randomness.",
1063
+ "bbox": [
1064
+ 112,
1065
+ 854,
1066
+ 487,
1067
+ 917
1068
+ ],
1069
+ "page_idx": 5
1070
+ },
1071
+ {
1072
+ "type": "image",
1073
+ "img_path": "images/a0a68d82b82425ddea7e647f0d26ddc9d6a925173eb17d92cdf7027b1020832a.jpg",
1074
+ "image_caption": [
1075
+ "Figure 3: The SHAPE dataset, presenting one turn. Top 8 images are Yellow targets. Bottom 8 images are distractors."
1076
+ ],
1077
+ "image_footnote": [],
1078
+ "bbox": [
1079
+ 586,
1080
+ 104,
1081
+ 816,
1082
+ 266
1083
+ ],
1084
+ "page_idx": 5
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "B Datasets",
1089
+ "text_level": 1,
1090
+ "bbox": [
1091
+ 509,
1092
+ 363,
1093
+ 621,
1094
+ 380
1095
+ ],
1096
+ "page_idx": 5
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "We use two datasets in our experiments. Both will be made publicly available.",
1101
+ "bbox": [
1102
+ 507,
1103
+ 388,
1104
+ 880,
1105
+ 420
1106
+ ],
1107
+ "page_idx": 5
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Shape. A visual reasoning dataset (Kuhnle and Copestake, 2017) of objects over a black background. Our version of the dataset contains four attributes: the shape attribute has five shapes, the color attribute has six colors. To these we added horizontal and vertical position attributes each with three values. Overall, the SHAPE dataset contains 17 concepts, and a maximal labeling rule of 4 FVPs which sum to 270 unique 4-concept labels. The dataset contains many images that obey the same label. See Figure 3 for an example.",
1112
+ "bbox": [
1113
+ 507,
1114
+ 426,
1115
+ 882,
1116
+ 604
1117
+ ],
1118
+ "page_idx": 5
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Thing. A synthetic dataset of 100,000 objects which we design for controlled experiments. Each object in the dataset has five attributes, each with 10 possible values. Overall, the THING datasets contains 50 concepts and a maximal labeling rule of 5 FVPs. We experiments with label lengths varied from 1, describing a single concept, to 5, which completely describes an object in the dataset.",
1123
+ "bbox": [
1124
+ 507,
1125
+ 611,
1126
+ 882,
1127
+ 740
1128
+ ],
1129
+ "page_idx": 5
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "C Implementation Details",
1134
+ "text_level": 1,
1135
+ "bbox": [
1136
+ 507,
1137
+ 747,
1138
+ 752,
1139
+ 763
1140
+ ],
1141
+ "page_idx": 5
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "We run all experiments over a modified version of the Egg framework (Kharitonov et al., 2019). In our version the communication modules used by the sender and the receiver are totally separated from their perceptual modules, which we term 'agents'. The Quantized (QT) and Gumbel-Softmax (GS) protocols are implemented at the",
1146
+ "bbox": [
1147
+ 507,
1148
+ 770,
1149
+ 884,
1150
+ 882
1151
+ ],
1152
+ "page_idx": 5
1153
+ },
1154
+ {
1155
+ "type": "page_footnote",
1156
+ "text": "Our modification is available at https://github. com/bcarmeli/egg_qtc.",
1157
+ "bbox": [
1158
+ 509,
1159
+ 891,
1160
+ 884,
1161
+ 917
1162
+ ],
1163
+ "page_idx": 5
1164
+ },
1165
+ {
1166
+ "type": "page_number",
1167
+ "text": "3191",
1168
+ "bbox": [
1169
+ 480,
1170
+ 927,
1171
+ 517,
1172
+ 940
1173
+ ],
1174
+ "page_idx": 5
1175
+ },
1176
+ {
1177
+ "type": "table",
1178
+ "img_path": "images/760a9166ecdae8e3b8e2025ff1e9af817a4fc7eeadcf67e0b930851f72e6f241.jpg",
1179
+ "table_caption": [],
1180
+ "table_footnote": [],
1181
+ "table_body": "<table><tr><td>Batch Size</td><td>lr</td><td>Num Targets</td><td>Num Distr</td><td>Cell Type</td><td>Sender Hidden</td><td>Sender Embed</td><td>Receiver Hidden</td><td>Receiver Embed</td></tr><tr><td>10</td><td>0.0005</td><td>8/20</td><td>8/20</td><td>LSTM</td><td>60</td><td>60</td><td>40</td><td>40</td></tr></table>",
1182
+ "bbox": [
1183
+ 173,
1184
+ 93,
1185
+ 823,
1186
+ 158
1187
+ ],
1188
+ "page_idx": 6
1189
+ },
1190
+ {
1191
+ "type": "table",
1192
+ "img_path": "images/033c32f16b6f2a2b4724075fb16863ecac5ce02ce9f60205b7b37bdcec9c8b3c.jpg",
1193
+ "table_caption": [
1194
+ "Table 2: Hyper-parameters for the agents in the SHAPE game."
1195
+ ],
1196
+ "table_footnote": [],
1197
+ "table_body": "<table><tr><td>Exp Num</td><td>Game</td><td>Comm Type</td><td>Label Len</td><td>word Len</td><td>Msg Len</td><td>Best Epoch</td><td>ACC</td><td>AMI</td><td>Best Match</td></tr><tr><td>1</td><td>SHAPE</td><td>gs</td><td>1</td><td>8</td><td>4</td><td>97</td><td>0.829</td><td>0.404</td><td>0.405</td></tr><tr><td>2</td><td>SHAPE</td><td>gs</td><td>1</td><td>64</td><td>4</td><td>96</td><td>0.843</td><td>0.390</td><td>0.339</td></tr><tr><td>3</td><td>SHAPE</td><td>gs</td><td>4</td><td>8</td><td>1</td><td>8</td><td>0.742</td><td>0.490</td><td>0.152</td></tr><tr><td>4</td><td>SHAPE</td><td>gs</td><td>4</td><td>64</td><td>1</td><td>10</td><td>0.748</td><td>0.413</td><td>0.130</td></tr><tr><td>5</td><td>SHAPE</td><td>qt</td><td>1</td><td>3</td><td>4</td><td>86</td><td>0.878</td><td>0.540</td><td>1.401</td></tr><tr><td>6</td><td>SHAPE</td><td>qt</td><td>1</td><td>64</td><td>4</td><td>85</td><td>0.991</td><td>0.000</td><td>0.001</td></tr><tr><td>7</td><td>SHAPE</td><td>qt</td><td>4</td><td>3</td><td>1</td><td>9</td><td>0.768</td><td>0.474</td><td>0.152</td></tr><tr><td>8</td><td>SHAPE</td><td>qt</td><td>4</td><td>64</td><td>1</td><td>12</td><td>0.897</td><td>0.021</td><td>0.009</td></tr><tr><td>9</td><td>THING</td><td>gs</td><td>1</td><td>8</td><td>4</td><td>83</td><td>0.793</td><td>0.102</td><td>0.091</td></tr><tr><td>10</td><td>THING</td><td>gs</td><td>1</td><td>64</td><td>4</td><td>94</td><td>0.798</td><td>0.074</td><td>0.151</td></tr><tr><td>11</td><td>THING</td><td>gs</td><td>4</td><td>8</td><td>1</td><td>97</td><td>0.655</td><td>0.016</td><td>0.052</td></tr><tr><td>12</td><td>THING</td><td>gs</td><td>4</td><td>64</td><td>1</td><td>99</td><td>0.626</td><td>0.014</td><td>0.058</td></tr><tr><td>13</td><td>THING</td><td>qt</td><td>1</td><td>3</td><td>4</td><td>96</td><td>0.838</td><td>0.267</td><td>0.119</td></tr><tr><td>14</td><td>THING</td><td>qt</td><td>1</td><td>64</td><td>4</td><td>100</td><td>0.973</td><td>0.000</td><td>0.014</td></tr><tr><td>15</td><td>THING</td><td>qt</td><td>4</td><td>3</td><td>1</td><td>26</td><td>0.622</td><td>0.020</td><td>0.057</td></tr><tr><td>16</td><td>THING</td><td>qt</td><td>4</td><td>64</td><td>1</td><td>96</td><td>0.844</td><td>0.000</td><td>0.013</td></tr></table>",
1198
+ "bbox": [
1199
+ 220,
1200
+ 211,
1201
+ 778,
1202
+ 489
1203
+ ],
1204
+ "page_idx": 6
1205
+ },
1206
+ {
1207
+ "type": "table",
1208
+ "img_path": "images/b5355e49d030ec6db8fecf751b19e8a7d57022c10e692e9f4f73cfee16166957.jpg",
1209
+ "table_caption": [
1210
+ "Table 3: Configurations for more SHAPE and THING game experiments. In these configuration we intentionally define sub-optimal communication parameters in order to demonstrate the usefulness of the evaluation metrics. Experiment results are provided in Table 4"
1211
+ ],
1212
+ "table_footnote": [],
1213
+ "table_body": "<table><tr><td>Exp Num</td><td>Unq Msgs</td><td>Unq Wrds</td><td>Unq Prs</td><td>Ung Cons</td><td>Totl Edgs</td><td>Good Edgs</td><td>Amb Edgs</td><td>Phrs Edgs</td><td>Totl Cons</td><td>Unm Cons</td><td>Par Scor</td><td>Prc</td><td>Rcl</td></tr><tr><td>1</td><td>258</td><td>7</td><td>17</td><td>17</td><td>4k</td><td>1621</td><td>2379</td><td>0</td><td>1k</td><td>444</td><td>0</td><td>0.137</td><td>0.546</td></tr><tr><td>2</td><td>442</td><td>55</td><td>17</td><td>17</td><td>4k</td><td>1356</td><td>1724</td><td>920</td><td>1k</td><td>0</td><td>0.23</td><td>0.144</td><td>0.577</td></tr><tr><td>3</td><td>8</td><td>8</td><td>34</td><td>17</td><td>4k</td><td>610</td><td>390</td><td>0</td><td>4k</td><td>1457</td><td>0</td><td>0.61</td><td>0.152</td></tr><tr><td>4</td><td>44</td><td>44</td><td>34</td><td>17</td><td>4k</td><td>520</td><td>326</td><td>154</td><td>4k</td><td>0</td><td>0.04</td><td>0.52</td><td>0.13</td></tr><tr><td>5</td><td>238</td><td>8</td><td>17</td><td>17</td><td>4k</td><td>1605</td><td>2395</td><td>0</td><td>1k</td><td>385</td><td>0</td><td>0.144</td><td>0.577</td></tr><tr><td>6</td><td>1000</td><td>3899</td><td>17</td><td>17</td><td>4k</td><td>46</td><td>0</td><td>3954</td><td>1k</td><td>0</td><td>0.99</td><td>0.011</td><td>0.044</td></tr><tr><td>7</td><td>7</td><td>7</td><td>34</td><td>17</td><td>4k</td><td>607</td><td>393</td><td>0</td><td>4k</td><td>1727</td><td>0</td><td>0.607</td><td>0.152</td></tr><tr><td>8</td><td>974</td><td>974</td><td>34</td><td>17</td><td>4k</td><td>38</td><td>0</td><td>962</td><td>4k</td><td>0</td><td>0.24</td><td>0.038</td><td>0.009</td></tr><tr><td>9</td><td>543</td><td>7</td><td>50</td><td>50</td><td>4k</td><td>366</td><td>3634</td><td>0</td><td>1k</td><td>807</td><td>0</td><td>0.048</td><td>0.19</td></tr><tr><td>10</td><td>806</td><td>60</td><td>50</td><td>50</td><td>4k</td><td>601</td><td>3369</td><td>30</td><td>1k</td><td>0</td><td>0.01</td><td>0.1</td><td>0.399</td></tr><tr><td>11</td><td>8</td><td>8</td><td>901</td><td>50</td><td>4k</td><td>210</td><td>790</td><td>0</td><td>4k</td><td>3332</td><td>0</td><td>0.21</td><td>0.052</td></tr><tr><td>12</td><td>21</td><td>21</td><td>901</td><td>50</td><td>4k</td><td>233</td><td>767</td><td>0</td><td>4k</td><td>2267</td><td>0</td><td>0.233</td><td>0.058</td></tr><tr><td>13</td><td>412</td><td>8</td><td>50</td><td>50</td><td>4k</td><td>478</td><td>3522</td><td>0</td><td>1k</td><td>795</td><td>0</td><td>0.046</td><td>0.184</td></tr><tr><td>14</td><td>1000</td><td>3991</td><td>50</td><td>50</td><td>4k</td><td>57</td><td>0</td><td>3943</td><td>1k</td><td>0</td><td>0.99</td><td>0.013</td><td>0.052</td></tr><tr><td>15</td><td>11</td><td>6</td><td>901</td><td>50</td><td>4k</td><td>229</td><td>771</td><td>0</td><td>4k</td><td>3483</td><td>0</td><td>0.229</td><td>0.057</td></tr><tr><td>16</td><td>1000</td><td>1000</td><td>901</td><td>50</td><td>4k</td><td>50</td><td>0</td><td>950</td><td>4k</td><td>0</td><td>0.24</td><td>0.05</td><td>0.013</td></tr></table>",
1214
+ "bbox": [
1215
+ 137,
1216
+ 571,
1217
+ 858,
1218
+ 851
1219
+ ],
1220
+ "page_idx": 6
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Table 4: Results for more SHAPE and THING game configurations described in Table 3. In these experiments we intentionally define sub-optimal communication parameters in order to demonstrate the usefulness of the evaluation metrics.",
1225
+ "bbox": [
1226
+ 112,
1227
+ 860,
1228
+ 882,
1229
+ 902
1230
+ ],
1231
+ "page_idx": 6
1232
+ },
1233
+ {
1234
+ "type": "page_number",
1235
+ "text": "3192",
1236
+ "bbox": [
1237
+ 480,
1238
+ 928,
1239
+ 521,
1240
+ 940
1241
+ ],
1242
+ "page_idx": 6
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "communication layer. For GS we use an implementation provided by the Egg framework, where we do not allow temperature to be learned, and set the straight-through estimator to False. For QT we followed parameter recommendations from Carmeli et al. (2023) and use a binary quantization in all experiments. Both GS and QT uses a recurrent neural network (RNN) for generating multiple words in a message. See Table 2 for RNN details.",
1247
+ "bbox": [
1248
+ 112,
1249
+ 84,
1250
+ 489,
1251
+ 227
1252
+ ],
1253
+ "page_idx": 7
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "The agents for the THING game use fully connected feed-forward networks with input dimension of $d = 270$ . Objects are encoded by concatenating five one-hot vectors, one per attribute. There are 50 unique values and 4 communication words (SOS, EOS, PAD, UNK), thus the total object representation length is $d = 270$ . The agents of the SHAPE game are implemented with a convolutional neural network similar to Mu and Goodman (2021). Network hyper-parameters are provided in Table 2. In the experiments, we report results when varying the communication elements (word length and message length). Experiments in Table 1 are done with 20 targets and 20 distractors, while experiments reported in Tables 3 and 4 are done with 8 targets and 8 distractors. Our main interest in this work is to evaluate the emerged communication and not to achieve the best possible performance, thus we did not conduct a thorough hyper-parameter search for the agents themselves.",
1258
+ "bbox": [
1259
+ 115,
1260
+ 230,
1261
+ 489,
1262
+ 549
1263
+ ],
1264
+ "page_idx": 7
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "We run all experiments on a single A100 GPU with 40 GB of RAM. Model size is less than 10M. We usually trained the model for 200 epochs which took about 10 hours to complete. Our code will be made publicly available upon de-anonymization.",
1269
+ "bbox": [
1270
+ 112,
1271
+ 551,
1272
+ 487,
1273
+ 632
1274
+ ],
1275
+ "page_idx": 7
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "D Evaluating Sub-optimal Configurations",
1280
+ "text_level": 1,
1281
+ "bbox": [
1282
+ 112,
1283
+ 638,
1284
+ 485,
1285
+ 655
1286
+ ],
1287
+ "page_idx": 7
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Here we provide results from experiments with several sub-optimal configurations and demonstrate how CBM identifies these deficiencies. We report configuration parameters for each experiment together with accuracy, AMI, and CBM Score in Table 3. We report all CBM metrics for these experiments in Table 4. Information from the two tables is aligned by the experiment number (first column).",
1292
+ "bbox": [
1293
+ 112,
1294
+ 661,
1295
+ 487,
1296
+ 804
1297
+ ],
1298
+ "page_idx": 7
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Sub-optimal communication may stem from a channel that is either too wide or too narrow. Narrow channels are restricted by a small number of words and short messages. Wide channels allow long words and/or long messages. Past studies (Tucker et al., 2022) suggest that creating an information bottleneck by narrowing the channel en",
1303
+ "bbox": [
1304
+ 112,
1305
+ 806,
1306
+ 489,
1307
+ 917
1308
+ ],
1309
+ "page_idx": 7
1310
+ },
1311
+ {
1312
+ "type": "image",
1313
+ "img_path": "images/4cdf223f77a9db8d1f89800710a787e1795c10df2785c627e982062e118bd7c5.jpg",
1314
+ "image_caption": [
1315
+ "Figure 4: Assessing CBM sensitivity to the size of the evaluation set. We show results for two randomly selected experiments. As seen, the CBM score stabilizes when assessing datasets comprising more than 500 samples."
1316
+ ],
1317
+ "image_footnote": [],
1318
+ "bbox": [
1319
+ 536,
1320
+ 93,
1321
+ 857,
1322
+ 223
1323
+ ],
1324
+ "page_idx": 7
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "courages generalization. As seen, CBM scores for most reported sub-optimal configurations are low. Results from experiments 1, 2, and 5 are the only ones for which the CBM score is higher than 0.2. Experiment 6 (SHAPE) achieves almost perfect accuracy (0.991) due to its wide channel. However, the paraphrase score for this experiment is 0.989 showing that the sender uses many different words to refer to the same concept. This phenomenon can also be seen by the large number of unique words (3899) generated for just 17 unique concepts. A similar phenomenon is observed for the THING game (experiment 14).",
1329
+ "bbox": [
1330
+ 505,
1331
+ 334,
1332
+ 884,
1333
+ 542
1334
+ ],
1335
+ "page_idx": 7
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Experiment 11 (THING) uses a narrow channel. The vocabulary contains only 8 words and the channel allows one-word-long messages. This configuration resulted in 3332 concepts that do not match any word. Interestingly, the number of unmatched concepts remains high even when extending the word length to 64, in experiment 12. We attribute this sub-optimal phenomenon to GS communication deficiencies. The number of unique words generated by the sender in this experiment is only 21 out of the possible 64 words allowed by the configuration. For the SHAPE game, on the other hand, the same wide-channel configuration resulted in 44 unique words generated by the sender for the 17 concepts available in this game and all concepts have matched words.",
1340
+ "bbox": [
1341
+ 507,
1342
+ 543,
1343
+ 885,
1344
+ 799
1345
+ ],
1346
+ "page_idx": 7
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Precision and recall. After finding the best match, precision and recall between words and concepts can be computed. We define message precision (Prc) and recall (Rcl) to be the number of matched edges in a message, divided by the number of words or concepts, respectively. Precision and recall add insights in situation where the num",
1351
+ "bbox": [
1352
+ 507,
1353
+ 806,
1354
+ 885,
1355
+ 917
1356
+ ],
1357
+ "page_idx": 7
1358
+ },
1359
+ {
1360
+ "type": "page_number",
1361
+ "text": "3193",
1362
+ "bbox": [
1363
+ 480,
1364
+ 927,
1365
+ 519,
1366
+ 940
1367
+ ],
1368
+ "page_idx": 7
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "ber of words in messages differs significantly from the number of concepts used for labeling the data. Experiment 5 (SHAPE) shows the highest recall, gained partially due to the long message length (four words) allowed by the channel, compared to the label length (one concept) dictated by the data. In contrast, experiment 3 (SHAPE) shows the highest precision. Indeed, this configuration restricts message the length to one word while the data dictates four-concept long phrases.",
1373
+ "bbox": [
1374
+ 115,
1375
+ 84,
1376
+ 485,
1377
+ 243
1378
+ ],
1379
+ "page_idx": 8
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "E CBM Sensitivity to Dataset Size",
1384
+ "text_level": 1,
1385
+ "bbox": [
1386
+ 115,
1387
+ 250,
1388
+ 423,
1389
+ 266
1390
+ ],
1391
+ "page_idx": 8
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "We evaluated CBM scores on increased data sizes. Figure 4 shows results for two randomly selected experiments. The solid lines indicate the CBM score, computed when accumulating data samples in 100 quintets. The dashed lines indicate CBM score calculated independently for 18 successive data segments of 100 samples each. As seen, scores stabilize for evaluation sets of size larger than 500 samples. Interestingly, the 100-sample scores (dashed) lines are higher than the accumulated scores (solid lines). This is in line with our insight that low evaluation sizes result in higher match scores. Standard deviation for the 18 accumulated measures is 0.009 and 0.016, for the two experiments, respectively. Standard deviation for the 18 segmented measures is 0.044 and 0.040, for the two experiments, respectively.",
1396
+ "bbox": [
1397
+ 115,
1398
+ 273,
1399
+ 485,
1400
+ 546
1401
+ ],
1402
+ "page_idx": 8
1403
+ },
1404
+ {
1405
+ "type": "page_number",
1406
+ "text": "3194",
1407
+ "bbox": [
1408
+ 482,
1409
+ 928,
1410
+ 519,
1411
+ 940
1412
+ ],
1413
+ "page_idx": 8
1414
+ }
1415
+ ]
2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/4ad4723c-7bbd-4934-855a-91c77ee9c3b0_model.json ADDED
@@ -0,0 +1,1703 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ [
3
+ {
4
+ "type": "title",
5
+ "bbox": [
6
+ 0.197,
7
+ 0.09,
8
+ 0.803,
9
+ 0.13
10
+ ],
11
+ "angle": 0,
12
+ "content": "Concept-Best-Matching: Evaluating Compositionality in Emergent Communication"
13
+ },
14
+ {
15
+ "type": "text",
16
+ "bbox": [
17
+ 0.272,
18
+ 0.143,
19
+ 0.731,
20
+ 0.159
21
+ ],
22
+ "angle": 0,
23
+ "content": "Boaz Carmeli Yonatan Belinkov Ron Meir"
24
+ },
25
+ {
26
+ "type": "text",
27
+ "bbox": [
28
+ 0.334,
29
+ 0.161,
30
+ 0.669,
31
+ 0.177
32
+ ],
33
+ "angle": 0,
34
+ "content": "Technion - Israel Institute of Technology"
35
+ },
36
+ {
37
+ "type": "text",
38
+ "bbox": [
39
+ 0.292,
40
+ 0.179,
41
+ 0.71,
42
+ 0.193
43
+ ],
44
+ "angle": 0,
45
+ "content": "boaz.carmeli@campus.technion.ac.il,"
46
+ },
47
+ {
48
+ "type": "text",
49
+ "bbox": [
50
+ 0.361,
51
+ 0.195,
52
+ 0.64,
53
+ 0.209
54
+ ],
55
+ "angle": 0,
56
+ "content": "belinkov@technion.ac.il"
57
+ },
58
+ {
59
+ "type": "text",
60
+ "bbox": [
61
+ 0.362,
62
+ 0.212,
63
+ 0.641,
64
+ 0.225
65
+ ],
66
+ "angle": 0,
67
+ "content": "rmeir@ee.technion.ac.il"
68
+ },
69
+ {
70
+ "type": "title",
71
+ "bbox": [
72
+ 0.261,
73
+ 0.253,
74
+ 0.341,
75
+ 0.267
76
+ ],
77
+ "angle": 0,
78
+ "content": "Abstract"
79
+ },
80
+ {
81
+ "type": "text",
82
+ "bbox": [
83
+ 0.142,
84
+ 0.279,
85
+ 0.461,
86
+ 0.564
87
+ ],
88
+ "angle": 0,
89
+ "content": "Artificial agents that learn to communicate in order to accomplish a given task acquire communication protocols that are typically opaque to a human. A large body of work has attempted to evaluate the emergent communication via various evaluation measures, with compositionality featuring as a prominent desired trait. However, current evaluation procedures do not directly expose the compositionality of the emergent communication. We propose a procedure to assess the compositionality of emergent communication by finding the best-match between emerged words and natural language concepts. The best-match algorithm provides both a global score and a translation-map from emergent words to natural language concepts. To the best of our knowledge, it is the first time that such direct and interpretable mapping between emergent words and human concepts is provided."
90
+ },
91
+ {
92
+ "type": "title",
93
+ "bbox": [
94
+ 0.115,
95
+ 0.575,
96
+ 0.26,
97
+ 0.59
98
+ ],
99
+ "angle": 0,
100
+ "content": "1 Introduction"
101
+ },
102
+ {
103
+ "type": "text",
104
+ "bbox": [
105
+ 0.113,
106
+ 0.598,
107
+ 0.49,
108
+ 0.854
109
+ ],
110
+ "angle": 0,
111
+ "content": "Artificial agents that learn to communicate for accomplishing a given task acquire communication protocols. In the common setting, a sender observes a set of objects and sends a message to a receiver, which then needs to identify the correct target objects out of a set of distractors. The two agents learn a communication protocol over discrete vocabulary of atoms, termed \"words\". The emergent communication (EC) is typically opaque to a human. As a result, a large body of work has attempted to characterize the emergent communication in light of natural language (NL) traits, such as compositionality (Hupkes et al., 2020; Chaabouni et al., 2020), systematic generalization (Vani et al., 2021), pragmatism (Andreas and Klein, 2016; Zaslavsky et al., 2021), and more."
112
+ },
113
+ {
114
+ "type": "text",
115
+ "bbox": [
116
+ 0.113,
117
+ 0.856,
118
+ 0.49,
119
+ 0.92
120
+ ],
121
+ "angle": 0,
122
+ "content": "Chief among these is compositionality, which enables the construction of complex meanings from the meaning of parts (Li and Bowling, 2019). However, quantifying compositionality in EC is noto"
123
+ },
124
+ {
125
+ "type": "image",
126
+ "bbox": [
127
+ 0.518,
128
+ 0.253,
129
+ 0.78,
130
+ 0.287
131
+ ],
132
+ "angle": 0,
133
+ "content": null
134
+ },
135
+ {
136
+ "type": "image",
137
+ "bbox": [
138
+ 0.518,
139
+ 0.295,
140
+ 0.648,
141
+ 0.344
142
+ ],
143
+ "angle": 0,
144
+ "content": null
145
+ },
146
+ {
147
+ "type": "image",
148
+ "bbox": [
149
+ 0.652,
150
+ 0.295,
151
+ 0.782,
152
+ 0.343
153
+ ],
154
+ "angle": 0,
155
+ "content": null
156
+ },
157
+ {
158
+ "type": "image",
159
+ "bbox": [
160
+ 0.795,
161
+ 0.25,
162
+ 0.888,
163
+ 0.34
164
+ ],
165
+ "angle": 0,
166
+ "content": null
167
+ },
168
+ {
169
+ "type": "image",
170
+ "bbox": [
171
+ 0.518,
172
+ 0.35,
173
+ 0.648,
174
+ 0.398
175
+ ],
176
+ "angle": 0,
177
+ "content": null
178
+ },
179
+ {
180
+ "type": "image",
181
+ "bbox": [
182
+ 0.652,
183
+ 0.35,
184
+ 0.782,
185
+ 0.398
186
+ ],
187
+ "angle": 0,
188
+ "content": null
189
+ },
190
+ {
191
+ "type": "image",
192
+ "bbox": [
193
+ 0.795,
194
+ 0.339,
195
+ 0.888,
196
+ 0.405
197
+ ],
198
+ "angle": 0,
199
+ "content": null
200
+ },
201
+ {
202
+ "type": "image_caption",
203
+ "bbox": [
204
+ 0.508,
205
+ 0.42,
206
+ 0.884,
207
+ 0.591
208
+ ],
209
+ "angle": 0,
210
+ "content": "Figure 1: The multi-target shape game played in turns (showing two turns). (a) At each turn, the sender is given a set of images, a subset of them marked as targets by an Oracle. (b) Sender generates messages \\([w_1, w_2]\\) for the blue-triangle (turn 1) and \\([w_2, w_3]\\) for the red-triangle (turn 2). (c) During evaluation, we construct a bipartite graph of words generated by the sender and concepts provided by the Oracle for each turn. (d) The best-match algorithm matches EC words to NL concepts and provides the CBM score. In this example, all EC words are matched with NL concepts, resulting in a CBM score of 1.0."
211
+ },
212
+ {
213
+ "type": "text",
214
+ "bbox": [
215
+ 0.508,
216
+ 0.625,
217
+ 0.885,
218
+ 0.801
219
+ ],
220
+ "angle": 0,
221
+ "content": "riously difficult (Lazaridou et al., 2018). In fact, recent studies found that common compositionality measures in EC, e.g., topographic similarity (Brighton and Kirby, 2006; Li and Bowling, 2019), do not correlate well with success in the task (Chaabouni et al., 2021; Yao et al., 2022). Moreover, while seeking to assess an opaque protocol, common evaluation measures in EC are opaque themselves—they do not provide a human-interpretable characterization of the compositionality of the communication."
222
+ },
223
+ {
224
+ "type": "text",
225
+ "bbox": [
226
+ 0.508,
227
+ 0.807,
228
+ 0.884,
229
+ 0.919
230
+ ],
231
+ "angle": 0,
232
+ "content": "This work develops a method that characterizes how compositional an EC is. Our method is founded on the key insight that, in an EC setting, a communication is compositional if agents communicate successfully via complex messages formed of simple atoms and these atoms are mapped to NL concepts. Our evaluation is based on the classical"
233
+ },
234
+ {
235
+ "type": "page_number",
236
+ "bbox": [
237
+ 0.481,
238
+ 0.928,
239
+ 0.522,
240
+ 0.941
241
+ ],
242
+ "angle": 0,
243
+ "content": "3186"
244
+ },
245
+ {
246
+ "type": "footer",
247
+ "bbox": [
248
+ 0.229,
249
+ 0.946,
250
+ 0.769,
251
+ 0.959
252
+ ],
253
+ "angle": 0,
254
+ "content": "Findings of the Association for Computational Linguistics: ACL 2024, pages 3186-3194"
255
+ },
256
+ {
257
+ "type": "footer",
258
+ "bbox": [
259
+ 0.285,
260
+ 0.96,
261
+ 0.714,
262
+ 0.972
263
+ ],
264
+ "angle": 0,
265
+ "content": "August 11-16, 2024 ©2024 Association for Computational Linguistics"
266
+ }
267
+ ],
268
+ [
269
+ {
270
+ "type": "text",
271
+ "bbox": [
272
+ 0.113,
273
+ 0.085,
274
+ 0.488,
275
+ 0.198
276
+ ],
277
+ "angle": 0,
278
+ "content": "best-match algorithm (Hopcroft and Karp, 1973). Given a set of EC atoms and a set of NL concepts, we construct a bi-partite graph and seek the optimal one-to-one mapping between words and concepts. A perfectly compositional EC would yield a perfect match, where every EC atom is mapped to exactly one NL concept. See Figure 1 for an illustration."
279
+ },
280
+ {
281
+ "type": "text",
282
+ "bbox": [
283
+ 0.117,
284
+ 0.2,
285
+ 0.49,
286
+ 0.358
287
+ ],
288
+ "angle": 0,
289
+ "content": "We experiment with the proposed procedure in two EC settings and compare it to two popular evaluation measures - topographic similarity and adjusted mutual information (AMI). We demonstrate that our approach provides a fine-grained characterization of emergent protocols, exposing their strengths and weaknesses, while other measures only provide coarse, opaque scores. According to our evaluation, state-of-the-art communication methods do not achieve satisfactory results."
290
+ },
291
+ {
292
+ "type": "title",
293
+ "bbox": [
294
+ 0.114,
295
+ 0.365,
296
+ 0.258,
297
+ 0.382
298
+ ],
299
+ "angle": 0,
300
+ "content": "2 Background"
301
+ },
302
+ {
303
+ "type": "title",
304
+ "bbox": [
305
+ 0.114,
306
+ 0.39,
307
+ 0.42,
308
+ 0.405
309
+ ],
310
+ "angle": 0,
311
+ "content": "2.1 Emergent Communication Setup"
312
+ },
313
+ {
314
+ "type": "text",
315
+ "bbox": [
316
+ 0.113,
317
+ 0.412,
318
+ 0.49,
319
+ 0.621
320
+ ],
321
+ "angle": 0,
322
+ "content": "We follow a recent setup suggested by Mu and Goodman (2021), where a sender needs to communicate with a receiver about a set of target objects out of a larger set of candidate objects. The sender sends a message to the receiver, which uses it to distinguish targets from distractor objects. For example, to identify all red triangles out of objects with different shapes and colors. This setup is more conducive to emergence of compositional communication than the classical referential game (Lazaridou et al., 2017). Senders in this setup need to form a generalization rather than merely transmit the identity of a single target."
323
+ },
324
+ {
325
+ "type": "text",
326
+ "bbox": [
327
+ 0.113,
328
+ 0.622,
329
+ 0.49,
330
+ 0.831
331
+ ],
332
+ "angle": 0,
333
+ "content": "Formally, assume a world \\(\\mathbb{X}\\), where each object is characterised by \\(n\\) feature-value pairs (FVPs), \\(\\langle f_1 : v_1, \\ldots, f_n : v_n \\rangle\\), with feature \\(i\\) having \\(k_i\\) possible values, \\(v_i \\in \\{f_i[1], \\ldots, f_i[k_i]\\}\\). For instance, the Shape world (Kuhnle and Copestake, 2017) has objects like \\(\\langle \\text{shape: triangle, color: red} \\rangle\\). Labeling rules are boolean expressions over these FVPs. Each rule \\(l : \\mathbb{X} \\mapsto \\{0, 1\\}\\) labels each object as 0 or 1. For instance, the rule Red Triangle labels all red triangles as positive and all other objects as negative. We identify the rule Red Triangle with the NL phrase \"red triangle\", which comprises the concepts \"red\" and \"triangle\"."
334
+ },
335
+ {
336
+ "type": "text",
337
+ "bbox": [
338
+ 0.113,
339
+ 0.831,
340
+ 0.49,
341
+ 0.896
342
+ ],
343
+ "angle": 0,
344
+ "content": "At each turn of the game, we draw a set of candidate objects \\(\\tilde{\\mathbb{X}}\\subset \\mathbb{X}\\) that is made of target objects, \\(\\mathbb{T}\\), which obey the rule, and distractors, \\(\\mathbb{D}\\), which do not: \\(l(x) = 1\\) if \\(x\\in \\mathbb{T}\\) and \\(l(x) = 0\\) if \\(x\\in \\mathbb{D}\\)."
345
+ },
346
+ {
347
+ "type": "text",
348
+ "bbox": [
349
+ 0.508,
350
+ 0.085,
351
+ 0.885,
352
+ 0.278
353
+ ],
354
+ "angle": 0,
355
+ "content": "The sender encodes the set of target objects \\(\\mathbb{T}\\) into a dense representation \\(\\pmb{u}^s\\in \\mathbb{R}^d\\) , and generates a message \\(m\\) , a sequence of words from some vocabulary. The receiver encodes each candidate object \\(x\\in \\mathbb{X}\\) into a representation \\(\\pmb {u}_x^r\\in \\mathbb{R}^d\\) . It decodes the message \\(m\\) into a representation \\(\\pmb {z}\\in \\mathbb{R}^{d}\\) and computes a matching score between each encoded candidate and the message representation, \\(g(z,\\pmb {u}_x^r)\\) . A candidate is predicted as a target if its score is \\(>0.5\\) . The entire system—sender and receiver networks—is trained jointly with a binary cross entropy on correctly identifying each target."
356
+ },
357
+ {
358
+ "type": "title",
359
+ "bbox": [
360
+ 0.509,
361
+ 0.286,
362
+ 0.742,
363
+ 0.301
364
+ ],
365
+ "angle": 0,
366
+ "content": "2.2 Compositionality in EC"
367
+ },
368
+ {
369
+ "type": "text",
370
+ "bbox": [
371
+ 0.508,
372
+ 0.308,
373
+ 0.884,
374
+ 0.436
375
+ ],
376
+ "angle": 0,
377
+ "content": "Various measures have been proposed to evaluate if an EC protocol is compositional. We mention a few prominent ones below. However, while trying to capture the idea that a complex meaning uses the meaning of its parts, previous measures fail to provide a concrete mapping of parts—EC words and NL concepts. We say an emergent communication is compositional if the following conditions hold:"
378
+ },
379
+ {
380
+ "type": "text",
381
+ "bbox": [
382
+ 0.525,
383
+ 0.439,
384
+ 0.836,
385
+ 0.455
386
+ ],
387
+ "angle": 0,
388
+ "content": "1. EC words are mapped to NL concepts."
389
+ },
390
+ {
391
+ "type": "text",
392
+ "bbox": [
393
+ 0.524,
394
+ 0.457,
395
+ 0.882,
396
+ 0.488
397
+ ],
398
+ "angle": 0,
399
+ "content": "2. A complex EC message is composed of simple EC words."
400
+ },
401
+ {
402
+ "type": "text",
403
+ "bbox": [
404
+ 0.524,
405
+ 0.492,
406
+ 0.884,
407
+ 0.525
408
+ ],
409
+ "angle": 0,
410
+ "content": "3. Agents communicate successfully via complex messages."
411
+ },
412
+ {
413
+ "type": "text",
414
+ "bbox": [
415
+ 0.524,
416
+ 0.527,
417
+ 0.883,
418
+ 0.575
419
+ ],
420
+ "angle": 0,
421
+ "content": "4. An EC message composed of words has the same meaning as an NL phrase composed of the respective concepts."
422
+ },
423
+ {
424
+ "type": "list",
425
+ "bbox": [
426
+ 0.524,
427
+ 0.439,
428
+ 0.884,
429
+ 0.575
430
+ ],
431
+ "angle": 0,
432
+ "content": null
433
+ },
434
+ {
435
+ "type": "text",
436
+ "bbox": [
437
+ 0.508,
438
+ 0.577,
439
+ 0.884,
440
+ 0.625
441
+ ],
442
+ "angle": 0,
443
+ "content": "Being able to compose EC words while preserving their NL meaning allows agents to generalize to new data while using interpretable communication."
444
+ },
445
+ {
446
+ "type": "title",
447
+ "bbox": [
448
+ 0.509,
449
+ 0.632,
450
+ 0.844,
451
+ 0.647
452
+ ],
453
+ "angle": 0,
454
+ "content": "2.3 Compositionality Evaluations in EC"
455
+ },
456
+ {
457
+ "type": "text",
458
+ "bbox": [
459
+ 0.508,
460
+ 0.655,
461
+ 0.885,
462
+ 0.687
463
+ ],
464
+ "angle": 0,
465
+ "content": "We briefly describe two notable measures of compositionality in EC. Appendix A gives more details."
466
+ },
467
+ {
468
+ "type": "text",
469
+ "bbox": [
470
+ 0.508,
471
+ 0.694,
472
+ 0.884,
473
+ 0.821
474
+ ],
475
+ "angle": 0,
476
+ "content": "Topographic Similarity (TopSim) (Brighton and Kirby, 2006) measures how well messages align with object representations. Given a set of objects and their EC messages, calculate a matrix of distances between every two messages and a separate matrix of distances between every two object representations. TopSim is the Spearman correlation of the two distance matrices."
477
+ },
478
+ {
479
+ "type": "text",
480
+ "bbox": [
481
+ 0.508,
482
+ 0.823,
483
+ 0.884,
484
+ 0.919
485
+ ],
486
+ "angle": 0,
487
+ "content": "TopSim is a global metric that does not require a reference language and can be applied to any EC setup. However, recent studies found that TopSim does not correlate well with success in the task being played (Chaabouni et al., 2021; Yao et al., 2022). More importantly, it does not provide a"
488
+ },
489
+ {
490
+ "type": "page_footnote",
491
+ "bbox": [
492
+ 0.136,
493
+ 0.904,
494
+ 0.446,
495
+ 0.919
496
+ ],
497
+ "angle": 0,
498
+ "content": "In this work we only use conjunctive expressions."
499
+ },
500
+ {
501
+ "type": "page_number",
502
+ "bbox": [
503
+ 0.481,
504
+ 0.928,
505
+ 0.521,
506
+ 0.941
507
+ ],
508
+ "angle": 0,
509
+ "content": "3187"
510
+ }
511
+ ],
512
+ [
513
+ {
514
+ "type": "text",
515
+ "bbox": [
516
+ 0.113,
517
+ 0.085,
518
+ 0.486,
519
+ 0.116
520
+ ],
521
+ "angle": 0,
522
+ "content": "mapping between EC words and NL concepts, and thus cannot directly assess compositionality."
523
+ },
524
+ {
525
+ "type": "text",
526
+ "bbox": [
527
+ 0.113,
528
+ 0.118,
529
+ 0.487,
530
+ 0.262
531
+ ],
532
+ "angle": 0,
533
+ "content": "Adjusted Mutual Information (AMI) (Vinh et al., 2009) measures the MIT between a set of EC messages and a corresponding set of NL phrases, adjusted for chance. Mu and Goodman (2021) showed AMI is a better compositionality measure than TopSim, as it directly assesses the MI between a message and its NL phrases. Still, AMI operates at the level of messages and phrases, rather than atomic words and concepts, respectively."
534
+ },
535
+ {
536
+ "type": "title",
537
+ "bbox": [
538
+ 0.114,
539
+ 0.268,
540
+ 0.351,
541
+ 0.284
542
+ ],
543
+ "angle": 0,
544
+ "content": "3 Concept Best Matching"
545
+ },
546
+ {
547
+ "type": "text",
548
+ "bbox": [
549
+ 0.113,
550
+ 0.29,
551
+ 0.49,
552
+ 0.581
553
+ ],
554
+ "angle": 0,
555
+ "content": "Our key insight is that compositionality requires a mapping between words (atomic parts of EC messages) and concepts (a set of FVPs) that compose NL phrases. Given an evaluation set of examples \\(D\\), consider their corresponding EC messages \\(\\mathbb{M}\\) and NL phrases \\(\\mathbb{L}\\). Let \\(\\mathbb{W}\\) denote the set of unique words in \\(\\mathbb{M}\\), and \\(\\mathbb{V}\\) the set of unique FVPs in \\(\\mathbb{L}\\). Let \\(\\{w\\}_i, \\{v\\}_i\\) be the sets of words and FVPs in sample \\(i\\), and \\(m_i = |\\{w\\}_i|, l_i = |\\{v\\}_i|\\) their sizes. We construct a weighted bipartite graph \\(\\mathcal{G} = ((\\mathbb{W}, \\mathbb{V}), \\mathbb{E})\\) with words on one side and FVPs on the other side. Edges \\(\\mathbb{E}\\) are defined by the evaluation set. The weight \\(q_e\\) of edge \\(e_{ij}\\) is the number of times word \\(i\\) appeared in a message that the sender transmitted for a labeling rule with FVP \\(j\\). This construction reflects the intuition that we do not know the correct mapping between words and FVPs (concepts). See Figure 1 for an example."
556
+ },
557
+ {
558
+ "type": "title",
559
+ "bbox": [
560
+ 0.114,
561
+ 0.587,
562
+ 0.338,
563
+ 0.601
564
+ ],
565
+ "angle": 0,
566
+ "content": "3.1 Best Match Algorithm"
567
+ },
568
+ {
569
+ "type": "text",
570
+ "bbox": [
571
+ 0.113,
572
+ 0.608,
573
+ 0.49,
574
+ 0.703
575
+ ],
576
+ "angle": 0,
577
+ "content": "Given the graph \\(\\mathcal{G}\\), we seek an optimal pairing between words and concepts (FVPs), such that no two edges share the same word nor the same concept. The score of a match \\(\\mathbb{B} \\subseteq \\mathbb{E}\\) is the sum of its edge weights, \\(\\sum_{e \\in \\mathbb{B}} q_e\\). The best match, \\(\\mathrm{BM} = \\mathrm{BM}(\\mathcal{G})\\), maximizes this score:"
578
+ },
579
+ {
580
+ "type": "equation",
581
+ "bbox": [
582
+ 0.205,
583
+ 0.713,
584
+ 0.488,
585
+ 0.747
586
+ ],
587
+ "angle": 0,
588
+ "content": "\\[\n\\mathrm {B M} = \\underset {\\mathbb {B}} {\\operatorname {a r g m a x}} \\sum_ {e \\in \\mathbb {B}} q _ {e} \\tag {1}\n\\]"
589
+ },
590
+ {
591
+ "type": "text",
592
+ "bbox": [
593
+ 0.113,
594
+ 0.757,
595
+ 0.488,
596
+ 0.804
597
+ ],
598
+ "angle": 0,
599
+ "content": "Such an ideal mapping is fully interpretable. A high score indicates that the agents learned to generate a unique EC word for each NL concept."
600
+ },
601
+ {
602
+ "type": "text",
603
+ "bbox": [
604
+ 0.113,
605
+ 0.805,
606
+ 0.489,
607
+ 0.886
608
+ ],
609
+ "angle": 0,
610
+ "content": "Normalizing the BM score by the number of symbols and words, \\( Q = \\sum_{i\\in D}\\max (|m_i|,|l_i|) \\), guarantees that \\( \\mathrm{BM}\\in [0,1] \\). The best match for a weighted bipartite graph can be found efficiently by the Hungarian algorithm (Kuhn, 1955;"
611
+ },
612
+ {
613
+ "type": "text",
614
+ "bbox": [
615
+ 0.509,
616
+ 0.085,
617
+ 0.885,
618
+ 0.116
619
+ ],
620
+ "angle": 0,
621
+ "content": "Hopcroft and Karp, 1973). Implementation is provided here."
622
+ },
623
+ {
624
+ "type": "title",
625
+ "bbox": [
626
+ 0.509,
627
+ 0.123,
628
+ 0.719,
629
+ 0.14
630
+ ],
631
+ "angle": 0,
632
+ "content": "4 Experimental Setup"
633
+ },
634
+ {
635
+ "type": "text",
636
+ "bbox": [
637
+ 0.508,
638
+ 0.146,
639
+ 0.884,
640
+ 0.274
641
+ ],
642
+ "angle": 0,
643
+ "content": "We experiments with agents that learn to play multi-target referential games, introduced by Mu and Goodman (2021) and described in Section 2.1. All experiments reported in Table 1 have the number of possible words \\(\\geq\\) the number of concepts, allowing perfect match of words to concepts. In Appendix D we report more experiments with sub-optimal configurations."
644
+ },
645
+ {
646
+ "type": "text",
647
+ "bbox": [
648
+ 0.508,
649
+ 0.282,
650
+ 0.884,
651
+ 0.313
652
+ ],
653
+ "angle": 0,
654
+ "content": "Datasets. We experiment with two datasets, described briefly here; Appendix B has more details."
655
+ },
656
+ {
657
+ "type": "text",
658
+ "bbox": [
659
+ 0.509,
660
+ 0.314,
661
+ 0.883,
662
+ 0.409
663
+ ],
664
+ "angle": 0,
665
+ "content": "(1) SHAPE: A visual reasoning dataset (Kuhnle and Copestake, 2017) of objects over a black background. Our version of the dataset contains four attributes: shape, color, and horizontal and vertical positions. Overall, the SHAPE dataset contains 17 concepts, and a maximal labeling rule of 4 FVPs."
666
+ },
667
+ {
668
+ "type": "text",
669
+ "bbox": [
670
+ 0.509,
671
+ 0.41,
672
+ 0.884,
673
+ 0.474
674
+ ],
675
+ "angle": 0,
676
+ "content": "(2) THING: A synthetic dataset of 100,000 objects. Each object has five attributes, each with 10 possible values. Overall, the THING datasets contains 50 concepts and a maximal labeling rule of 5 FVPs."
677
+ },
678
+ {
679
+ "type": "list",
680
+ "bbox": [
681
+ 0.509,
682
+ 0.314,
683
+ 0.884,
684
+ 0.474
685
+ ],
686
+ "angle": 0,
687
+ "content": null
688
+ },
689
+ {
690
+ "type": "text",
691
+ "bbox": [
692
+ 0.508,
693
+ 0.481,
694
+ 0.884,
695
+ 0.658
696
+ ],
697
+ "angle": 0,
698
+ "content": "Communication Channel. We train the system with two types of communication channels: the popular Gumbel-Softmax (GS) (Havylov and Titov, 2017; Jang et al., 2017) and quantized communication (QT) (Carmeli et al., 2023). In GS, each word is a \\(d\\)-dimensional one-hot vector. In QT, each word is a \\(d\\)-dimensional binary vector. QT was shown to be superior and easier to optimize compared to GS in EC games. In both cases we use a recurrent network to generate multi-word messages. Appendix C has implementation details."
699
+ },
700
+ {
701
+ "type": "title",
702
+ "bbox": [
703
+ 0.509,
704
+ 0.664,
705
+ 0.608,
706
+ 0.679
707
+ ],
708
+ "angle": 0,
709
+ "content": "5 Results"
710
+ },
711
+ {
712
+ "type": "text",
713
+ "bbox": [
714
+ 0.508,
715
+ 0.687,
716
+ 0.884,
717
+ 0.896
718
+ ],
719
+ "angle": 0,
720
+ "content": "Table 1 shows results on several configurations of the two games. As expected, accuracy degrades as the task becomes more difficult, with longer labeling rules. QT communication yields better task accuracy than GS, consistent with Carmeli et al. (2023). TopSim is not well correlated with accuracy, as found in prior work (Section 2.3). AMI and CBM are more correlated with accuracy. With long messages and labeling rules (\\(l = 4\\)), AMI is less correlated with accuracy. This may be explained by AMI operating at the level of whole messages and labeling rules—AMI struggles with large numbers of unique messages and NL phrases. In contrast,"
721
+ },
722
+ {
723
+ "type": "page_footnote",
724
+ "bbox": [
725
+ 0.53,
726
+ 0.904,
727
+ 0.822,
728
+ 0.918
729
+ ],
730
+ "angle": 0,
731
+ "content": "<sup>3</sup>https://github.com/bcarmeli/cbm"
732
+ },
733
+ {
734
+ "type": "page_footnote",
735
+ "bbox": [
736
+ 0.113,
737
+ 0.892,
738
+ 0.488,
739
+ 0.919
740
+ ],
741
+ "angle": 0,
742
+ "content": "2In practice, the lowest bound is \\(q_{\\tilde{e}} / Q\\) , where \\(\\tilde{e}\\) is the edge with the highest weight in \\(\\mathcal{G}\\)"
743
+ },
744
+ {
745
+ "type": "page_number",
746
+ "bbox": [
747
+ 0.481,
748
+ 0.928,
749
+ 0.521,
750
+ 0.941
751
+ ],
752
+ "angle": 0,
753
+ "content": "3188"
754
+ }
755
+ ],
756
+ [
757
+ {
758
+ "type": "table",
759
+ "bbox": [
760
+ 0.118,
761
+ 0.082,
762
+ 0.885,
763
+ 0.276
764
+ ],
765
+ "angle": 0,
766
+ "content": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Com</td><td rowspan=\"2\">l</td><td rowspan=\"2\">d</td><td colspan=\"2\">NL</td><td colspan=\"2\">EC</td><td rowspan=\"2\">Acc</td><td rowspan=\"2\">Top Sim</td><td rowspan=\"2\">AMI</td><td colspan=\"4\">Best Match</td></tr><tr><td>Cons</td><td>Phrs</td><td>#w</td><td>#m</td><td>CBM</td><td>Amb</td><td>Para</td><td>Unm</td></tr><tr><td rowspan=\"4\">Shape</td><td>GS</td><td>1</td><td>17</td><td>17</td><td>17</td><td>11</td><td>11</td><td>0.84</td><td>0.44</td><td>0.76</td><td>0.62</td><td>0.37</td><td>0.01</td><td>0.25</td></tr><tr><td>QT</td><td>1</td><td>5</td><td>17</td><td>17</td><td>26</td><td>26</td><td>0.87</td><td>0.39</td><td>0.85</td><td>0.52</td><td>0.41</td><td>0.08</td><td>0</td></tr><tr><td>GS</td><td>4</td><td>17</td><td>17</td><td>34</td><td>16</td><td>226</td><td>0.78</td><td>0.34</td><td>0.38</td><td>0.52</td><td>0.48</td><td>0</td><td>0.01</td></tr><tr><td>QT</td><td>4</td><td>5</td><td>17</td><td>34</td><td>26</td><td>187</td><td>0.83</td><td>0.23</td><td>0.37</td><td>0.55</td><td>0.37</td><td>0.08</td><td>0</td></tr><tr><td rowspan=\"4\">Thing</td><td>GS</td><td>1</td><td>50</td><td>50</td><td>50</td><td>18</td><td>18</td><td>0.86</td><td>0.45</td><td>0.72</td><td>0.38</td><td>0.62</td><td>0</td><td>0.55</td></tr><tr><td>QT</td><td>1</td><td>6</td><td>50</td><td>50</td><td>50</td><td>50</td><td>0.92</td><td>0.07</td><td>0.74</td><td>0.73</td><td>0.25</td><td>0.02</td><td>0</td></tr><tr><td>GS</td><td>4</td><td>50</td><td>50</td><td>901</td><td>36</td><td>198</td><td>0.63</td><td>0.33</td><td>0.03</td><td>0.24</td><td>0.76</td><td>0</td><td>0.28</td></tr><tr><td>QT</td><td>4</td><td>6</td><td>50</td><td>901</td><td>64</td><td>450</td><td>0.77</td><td>0.14</td><td>0.05</td><td>0.23</td><td>0.69</td><td>0.08</td><td>0</td></tr></table>"
767
+ },
768
+ {
769
+ "type": "table_caption",
770
+ "bbox": [
771
+ 0.113,
772
+ 0.283,
773
+ 0.884,
774
+ 0.342
775
+ ],
776
+ "angle": 0,
777
+ "content": "Table 1: Results for SHAPE and THING games with Gumbel-Softmax (GS) or Quantized (QT) communication using rules of length \\( l \\) and words of length \\( d \\), showing number of unique NL concepts (Cons) and phrases (Phrs) and EC words (\\#w) and messages (#m). TopSim and AMI give only coarse scores. Our method gives the best match score (CBM) and rates of Ambiguities (Amb), Paraphrases (Para), and Unmatched concepts (Unm)."
778
+ },
779
+ {
780
+ "type": "image",
781
+ "bbox": [
782
+ 0.128,
783
+ 0.348,
784
+ 0.866,
785
+ 0.442
786
+ ],
787
+ "angle": 0,
788
+ "content": null
789
+ },
790
+ {
791
+ "type": "image_caption",
792
+ "bbox": [
793
+ 0.113,
794
+ 0.448,
795
+ 0.884,
796
+ 0.478
797
+ ],
798
+ "angle": 0,
799
+ "content": "Figure 2: The word \\(\\leftrightarrow\\) FVP best-match graph for the SHAPE game (GS communication, \\(l = 1\\)). The algorithm matched just 10 concepts to EC words out of 17 possible concepts."
800
+ },
801
+ {
802
+ "type": "text",
803
+ "bbox": [
804
+ 0.113,
805
+ 0.5,
806
+ 0.489,
807
+ 0.564
808
+ ],
809
+ "angle": 0,
810
+ "content": "CBM assesses word-to-concept matching, so it is less affected by long messages and rules. However, AMI and CBM are well correlated (Pearson 0.7 and 0.79 on the SHAPE and THING games)."
811
+ },
812
+ {
813
+ "type": "text",
814
+ "bbox": [
815
+ 0.113,
816
+ 0.565,
817
+ 0.489,
818
+ 0.773
819
+ ],
820
+ "angle": 0,
821
+ "content": "The table also shows the rate of ambiguities and paraphrases, exposed by our method. Ambiguities happen when the same EC word is mapped to different concepts. Table 1 shows higher rates of ambiguities in GS compared to QT, and in longer rules. Paraphrases are EC words that do not have a best-matched concept node. Paraphrases occur more with QT, which enables 32 and 64 unique EC words for the SHAPE and THING games, while these games have only 17 and 50 NL concepts, respectively. GS allows setting the number of unique words equal to number of concepts, thus is less exposed to this sub-optimal phenomenon."
822
+ },
823
+ {
824
+ "type": "text",
825
+ "bbox": [
826
+ 0.113,
827
+ 0.775,
828
+ 0.49,
829
+ 0.92
830
+ ],
831
+ "angle": 0,
832
+ "content": "Finally, Unmatched concepts have no matching EC word. They result from a too narrow or underutilized channel. As Table 1 shows, GS communication suffers from a high rate of unmatched concepts (up to 0.5). This phenomenon can be observed by the low # of unique words (18) compared to # of unique concepts (50) for the THING game with GS and \\( l = 1 \\). QT has a sufficient number of words and thus no unmatched concepts."
833
+ },
834
+ {
835
+ "type": "text",
836
+ "bbox": [
837
+ 0.508,
838
+ 0.5,
839
+ 0.885,
840
+ 0.676
841
+ ],
842
+ "angle": 0,
843
+ "content": "Example Match. Beyond global scores, the CBM provides an interpretable translation graph, which maps EC words to NL concepts, facilitating insights on reasons for sub-optimal communication. Figure 2 shows an example graph for the SHAPE game with GS communication. As seen, the algorithm successfully matched 10 EC words to 10 concepts. The sender generated 11 unique words in this experiment, indicating that one word is a paraphrase of an already matched concept, even within this narrow-channel setup."
844
+ },
845
+ {
846
+ "type": "title",
847
+ "bbox": [
848
+ 0.509,
849
+ 0.682,
850
+ 0.642,
851
+ 0.697
852
+ ],
853
+ "angle": 0,
854
+ "content": "6 Conclusion"
855
+ },
856
+ {
857
+ "type": "text",
858
+ "bbox": [
859
+ 0.508,
860
+ 0.705,
861
+ 0.885,
862
+ 0.898
863
+ ],
864
+ "angle": 0,
865
+ "content": "We proposed a new procedure for assessing compositionality of emergent communication. In contrast to other evaluations, our procedure provides a human-interpretable translation map of emerged words to natural concepts. Moreover, our approach provides detailed insights into the reasons for suboptimal translation. We demonstrated it on two EC games with two different communication types. Our evaluation reveals even that quantized communication performs better than Gumbel-softmax, yet none exhibits compositionality in a level similar to natural language."
866
+ },
867
+ {
868
+ "type": "page_footnote",
869
+ "bbox": [
870
+ 0.53,
871
+ 0.905,
872
+ 0.86,
873
+ 0.919
874
+ ],
875
+ "angle": 0,
876
+ "content": "4The exact configuration is given in Table 1, first row."
877
+ },
878
+ {
879
+ "type": "page_number",
880
+ "bbox": [
881
+ 0.481,
882
+ 0.928,
883
+ 0.521,
884
+ 0.941
885
+ ],
886
+ "angle": 0,
887
+ "content": "3189"
888
+ }
889
+ ],
890
+ [
891
+ {
892
+ "type": "title",
893
+ "bbox": [
894
+ 0.115,
895
+ 0.085,
896
+ 0.221,
897
+ 0.1
898
+ ],
899
+ "angle": 0,
900
+ "content": "Limitations"
901
+ },
902
+ {
903
+ "type": "text",
904
+ "bbox": [
905
+ 0.113,
906
+ 0.107,
907
+ 0.49,
908
+ 0.237
909
+ ],
910
+ "angle": 0,
911
+ "content": "Our analysis is limited to datasets where gold label phrases exist. The evaluated dataset should be composable and the gold language should use finite set of concepts. Preferably, these concepts can be classified into several categories. We further assume an Oracle function that can divide the objects to targets and distractors during training. Importantly, our approach does not require labels during training."
912
+ },
913
+ {
914
+ "type": "title",
915
+ "bbox": [
916
+ 0.115,
917
+ 0.243,
918
+ 0.287,
919
+ 0.259
920
+ ],
921
+ "angle": 0,
922
+ "content": "Acknowledgements"
923
+ },
924
+ {
925
+ "type": "text",
926
+ "bbox": [
927
+ 0.113,
928
+ 0.266,
929
+ 0.49,
930
+ 0.412
931
+ ],
932
+ "angle": 0,
933
+ "content": "This research was supported by grant no. 2022330 from the United States - Israel Binational Science Foundation (BSF), Jerusalem, Israel. The research of YB was also supported by the Israel Science Foundation (grant 448/20), an Azrieli Foundation Early Career Faculty Fellowship, and an AI Alignment grant from Open Philanthropy. The work of RM was partially supported by the Skillman chair in biomedical sciences and by the Ollendorf center."
934
+ },
935
+ {
936
+ "type": "title",
937
+ "bbox": [
938
+ 0.115,
939
+ 0.433,
940
+ 0.214,
941
+ 0.449
942
+ ],
943
+ "angle": 0,
944
+ "content": "References"
945
+ },
946
+ {
947
+ "type": "ref_text",
948
+ "bbox": [
949
+ 0.116,
950
+ 0.455,
951
+ 0.489,
952
+ 0.495
953
+ ],
954
+ "angle": 0,
955
+ "content": "Jacob Andreas and Dan Klein. 2016. Reasoning about pragmatics with neural listeners and speakers. In EMNLP."
956
+ },
957
+ {
958
+ "type": "ref_text",
959
+ "bbox": [
960
+ 0.117,
961
+ 0.506,
962
+ 0.49,
963
+ 0.547
964
+ ],
965
+ "angle": 0,
966
+ "content": "Henry Brighton and Simon Kirby. 2006. Understanding linguistic evolution by visualizing the emergence of topographic mappings. Artificial life, 12(2):229-242."
967
+ },
968
+ {
969
+ "type": "ref_text",
970
+ "bbox": [
971
+ 0.117,
972
+ 0.557,
973
+ 0.49,
974
+ 0.611
975
+ ],
976
+ "angle": 0,
977
+ "content": "Boaz Carmeli, Ron Meir, and Yonatan Belinkov. 2023. Emergent quantized communication. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 11533-11541."
978
+ },
979
+ {
980
+ "type": "ref_text",
981
+ "bbox": [
982
+ 0.117,
983
+ 0.622,
984
+ 0.49,
985
+ 0.675
986
+ ],
987
+ "angle": 0,
988
+ "content": "Rahma Chaabouni, Eugene Kharitonov, Diane Bouchacourt, Emmanuel Dupoux, and Marco Baroni. 2020. Compositionality and generalization in emergent languages. In ACL, pages 4427-4442."
989
+ },
990
+ {
991
+ "type": "ref_text",
992
+ "bbox": [
993
+ 0.117,
994
+ 0.686,
995
+ 0.49,
996
+ 0.751
997
+ ],
998
+ "angle": 0,
999
+ "content": "Rahma Chaabouni, Florian Strub, Florent Altché, Eugene Tarassov, Corentin Tallec, Elnaz Davoodi, Kory Wallace Mathewson, Olivier Tieleman, Angeliki Lazaridou, and Bilal Piot. 2021. Emergent communication at scale. In ICLR."
1000
+ },
1001
+ {
1002
+ "type": "ref_text",
1003
+ "bbox": [
1004
+ 0.117,
1005
+ 0.763,
1006
+ 0.49,
1007
+ 0.804
1008
+ ],
1009
+ "angle": 0,
1010
+ "content": "Serhii Havrylov and Ivan Titov. 2017. Emergence of language with multi-agent games: Learning to communicate with sequences of symbols. NeurIPS, 30."
1011
+ },
1012
+ {
1013
+ "type": "ref_text",
1014
+ "bbox": [
1015
+ 0.117,
1016
+ 0.814,
1017
+ 0.49,
1018
+ 0.855
1019
+ ],
1020
+ "angle": 0,
1021
+ "content": "John E Hopcroft and Richard M Karp. 1973. An \\(\\mathfrak{n}^5 /2\\) algorithm for maximum matchings in bipartite graphs. SIAM Journal on computing, 2(4):225-231."
1022
+ },
1023
+ {
1024
+ "type": "ref_text",
1025
+ "bbox": [
1026
+ 0.117,
1027
+ 0.866,
1028
+ 0.49,
1029
+ 0.919
1030
+ ],
1031
+ "angle": 0,
1032
+ "content": "Dieuwke Hupkes, Verna Dankers, Mathijs Mul, and Elia Bruni. 2020. Compositionality decomposed: How do neural networks generalise? Journal of Artificial Intelligence Research, 67:757-795."
1033
+ },
1034
+ {
1035
+ "type": "list",
1036
+ "bbox": [
1037
+ 0.116,
1038
+ 0.455,
1039
+ 0.49,
1040
+ 0.919
1041
+ ],
1042
+ "angle": 0,
1043
+ "content": null
1044
+ },
1045
+ {
1046
+ "type": "ref_text",
1047
+ "bbox": [
1048
+ 0.511,
1049
+ 0.086,
1050
+ 0.885,
1051
+ 0.126
1052
+ ],
1053
+ "angle": 0,
1054
+ "content": "Eric Jang, Shixiang Gu, and Ben Poole. 2017. Categorical reparameterization with gumbel-softmax. In ICLR."
1055
+ },
1056
+ {
1057
+ "type": "ref_text",
1058
+ "bbox": [
1059
+ 0.512,
1060
+ 0.135,
1061
+ 0.885,
1062
+ 0.201
1063
+ ],
1064
+ "angle": 0,
1065
+ "content": "Eugene Kharitonov, Rahma Chaabouni, Diane Bouchacourt, and Marco Baroni. 2019. EGG: a toolkit for research on emergence of lanGuage in games. In EMNLP-IJCNLP: System Demonstrations, pages 55-60."
1066
+ },
1067
+ {
1068
+ "type": "ref_text",
1069
+ "bbox": [
1070
+ 0.512,
1071
+ 0.21,
1072
+ 0.885,
1073
+ 0.251
1074
+ ],
1075
+ "angle": 0,
1076
+ "content": "Harold W Kuhn. 1955. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83-97."
1077
+ },
1078
+ {
1079
+ "type": "ref_text",
1080
+ "bbox": [
1081
+ 0.512,
1082
+ 0.259,
1083
+ 0.885,
1084
+ 0.312
1085
+ ],
1086
+ "angle": 0,
1087
+ "content": "Alexander Kuhnle and Ann Copestake. 2017. Shapeworld - a new test methodology for multimodal language understanding. arXiv preprint arXiv:1704.04517."
1088
+ },
1089
+ {
1090
+ "type": "ref_text",
1091
+ "bbox": [
1092
+ 0.512,
1093
+ 0.322,
1094
+ 0.885,
1095
+ 0.375
1096
+ ],
1097
+ "angle": 0,
1098
+ "content": "Angeliki Lazaridou, Karl Moritz Hermann, Karl Tuyls, and Stephen Clark. 2018. Emergence of linguistic communication from referential games with symbolic and pixel input. In ICLR."
1099
+ },
1100
+ {
1101
+ "type": "ref_text",
1102
+ "bbox": [
1103
+ 0.512,
1104
+ 0.384,
1105
+ 0.885,
1106
+ 0.424
1107
+ ],
1108
+ "angle": 0,
1109
+ "content": "Angeliki Lazaridou, Alexander Peysakhovich, and Marco Baroni. 2017. Multi-agent cooperation and the emergence of (natural) language. In ICLR."
1110
+ },
1111
+ {
1112
+ "type": "ref_text",
1113
+ "bbox": [
1114
+ 0.512,
1115
+ 0.433,
1116
+ 0.885,
1117
+ 0.486
1118
+ ],
1119
+ "angle": 0,
1120
+ "content": "Vladimir I Levenshtein et al. 1966. Binary codes capable of correcting deletions, insertions, and reversals. In Soviet physics doklady, volume 10, pages 707-710. Soviet Union."
1121
+ },
1122
+ {
1123
+ "type": "ref_text",
1124
+ "bbox": [
1125
+ 0.512,
1126
+ 0.495,
1127
+ 0.885,
1128
+ 0.535
1129
+ ],
1130
+ "angle": 0,
1131
+ "content": "Fushan Li and Michael Bowling. 2019. Ease-of-teaching and language structure from emergent communication. NeurIPS, 32."
1132
+ },
1133
+ {
1134
+ "type": "ref_text",
1135
+ "bbox": [
1136
+ 0.512,
1137
+ 0.544,
1138
+ 0.885,
1139
+ 0.585
1140
+ ],
1141
+ "angle": 0,
1142
+ "content": "Jesse Mu and Noah Goodman. 2021. Emergent communication of generalizations. Advances in Neural Information Processing Systems, 34:17994-18007."
1143
+ },
1144
+ {
1145
+ "type": "ref_text",
1146
+ "bbox": [
1147
+ 0.512,
1148
+ 0.593,
1149
+ 0.885,
1150
+ 0.66
1151
+ ],
1152
+ "angle": 0,
1153
+ "content": "Mycal Tucker, Roger P Levy, Julie Shah, and Noga Zaslavsky. 2022. Generalization and translatability in emergent communication via informational constraints. In NeurIPS 2022 Workshop on Information-Theoretic Principles in Cognitive Systems."
1154
+ },
1155
+ {
1156
+ "type": "ref_text",
1157
+ "bbox": [
1158
+ 0.512,
1159
+ 0.669,
1160
+ 0.885,
1161
+ 0.71
1162
+ ],
1163
+ "angle": 0,
1164
+ "content": "Ankit Vani, Max Schwarzer, Yuchen Lu, Eeshan Dhekane, and Aaron Courville. 2021. Iterated learning for emergent systematicity in VQA. In ICLR."
1165
+ },
1166
+ {
1167
+ "type": "ref_text",
1168
+ "bbox": [
1169
+ 0.512,
1170
+ 0.718,
1171
+ 0.885,
1172
+ 0.784
1173
+ ],
1174
+ "angle": 0,
1175
+ "content": "Nguyen Xuan Vinh, Julien Epps, and James Bailey. 2009. Information theoretic measures for clusterings comparison: is a correction for chance necessary? In Proceedings of the 26th annual international conference on machine learning, pages 1073-1080."
1176
+ },
1177
+ {
1178
+ "type": "ref_text",
1179
+ "bbox": [
1180
+ 0.512,
1181
+ 0.793,
1182
+ 0.885,
1183
+ 0.846
1184
+ ],
1185
+ "angle": 0,
1186
+ "content": "Shunyu Yao, Mo Yu, Yang Zhang, Karthik R Narasimhan, Joshua B. Tenenbaum, and Chuang Gan. 2022. Linking emergent and natural languages via corpus transfer. In ICLR."
1187
+ },
1188
+ {
1189
+ "type": "ref_text",
1190
+ "bbox": [
1191
+ 0.512,
1192
+ 0.855,
1193
+ 0.885,
1194
+ 0.909
1195
+ ],
1196
+ "angle": 0,
1197
+ "content": "Noga Zaslavsky, Jennifer Hu, and Roger P. Levy. 2021. A Rate-Distortion view of human pragmatic reasoning? In Proceedings of the Society for Computation in Linguistics, pages 347-348."
1198
+ },
1199
+ {
1200
+ "type": "list",
1201
+ "bbox": [
1202
+ 0.511,
1203
+ 0.086,
1204
+ 0.885,
1205
+ 0.909
1206
+ ],
1207
+ "angle": 0,
1208
+ "content": null
1209
+ },
1210
+ {
1211
+ "type": "page_number",
1212
+ "bbox": [
1213
+ 0.481,
1214
+ 0.929,
1215
+ 0.522,
1216
+ 0.941
1217
+ ],
1218
+ "angle": 0,
1219
+ "content": "3190"
1220
+ }
1221
+ ],
1222
+ [
1223
+ {
1224
+ "type": "title",
1225
+ "bbox": [
1226
+ 0.115,
1227
+ 0.085,
1228
+ 0.22,
1229
+ 0.101
1230
+ ],
1231
+ "angle": 0,
1232
+ "content": "Appendices"
1233
+ },
1234
+ {
1235
+ "type": "title",
1236
+ "bbox": [
1237
+ 0.115,
1238
+ 0.11,
1239
+ 0.427,
1240
+ 0.126
1241
+ ],
1242
+ "angle": 0,
1243
+ "content": "A Details on Evaluation Measures"
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "bbox": [
1248
+ 0.114,
1249
+ 0.135,
1250
+ 0.49,
1251
+ 0.246
1252
+ ],
1253
+ "angle": 0,
1254
+ "content": "We provide here information on how to calculate the topographic similarity (TopSim) (Brighton and Kirby, 2006; Lazaridou et al., 2018; Yao et al., 2022) and adjusted mutual information (AMI) measures (Vinh et al., 2009; Mu and Goodman, 2021), in the context of EC. Refer to the original papers for full details."
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "bbox": [
1259
+ 0.114,
1260
+ 0.257,
1261
+ 0.49,
1262
+ 0.45
1263
+ ],
1264
+ "angle": 0,
1265
+ "content": "Topographic Similarity. The topographic similarity measures how messages align with the object representations. Concretely, let \\(\\cos_{ij} = \\cos (\\pmb{x}_i,\\pmb{x}_j) = \\pmb{x}_i\\cdot \\pmb{x}_j / (||\\pmb{x}_i||_2||\\pmb{x}_j||_2)\\) be the cosine similarity of object representations \\(\\pmb{x}_i\\) and \\(\\pmb{x}_j\\) and \\(\\mathrm{edit}_{ij} = \\mathrm{edit}(m_i,m_j)\\) be the Levenshtein distance (Levenshtein et al., 1966) between messages \\(m_{i}\\) and \\(m_j\\). Let \\(\\mathrm{ncos} = -\\{\\cos_{ij}\\}_{ij}\\) be the list of negative cosine similarities, \\(\\mathrm{edit} = \\{\\mathrm{edit}_{ij}\\}_{ij}\\) the list of Levenshtein distances, and \\(R(\\cdot)\\) the ranking function. Then the topographic similarity is the Spearman rank correlation of the two matrices:"
1266
+ },
1267
+ {
1268
+ "type": "equation",
1269
+ "bbox": [
1270
+ 0.182,
1271
+ 0.466,
1272
+ 0.488,
1273
+ 0.484
1274
+ ],
1275
+ "angle": 0,
1276
+ "content": "\\[\n\\operatorname {T o p s i m} = \\rho (R (\\operatorname {e d i t}), R (\\operatorname {n c o s})) \\tag {2}\n\\]"
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "bbox": [
1281
+ 0.114,
1282
+ 0.5,
1283
+ 0.44,
1284
+ 0.516
1285
+ ],
1286
+ "angle": 0,
1287
+ "content": "where \\(\\rho\\) is the standard Pearson correlation."
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "bbox": [
1292
+ 0.114,
1293
+ 0.518,
1294
+ 0.489,
1295
+ 0.662
1296
+ ],
1297
+ "angle": 0,
1298
+ "content": "Topographic similarity is a global metric that does not require a reference language and can be easily applied to every EC setup. However, despite its popularity, recent studies found that topographic similarity does not correlate well with success in the task being played (Chaabouni et al., 2021; Yao et al., 2022). More important, it does not provide a mapping between EC atoms and NL concepts, and thus cannot directly assess compositionality."
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "bbox": [
1303
+ 0.114,
1304
+ 0.672,
1305
+ 0.49,
1306
+ 0.799
1307
+ ],
1308
+ "angle": 0,
1309
+ "content": "Adjusted Mutual Information. Given a test set \\(D\\), let \\(\\mathbb{M}\\) denote the set of messages generated by the sender and \\(\\mathbb{L}\\) denote the set of NL phrases (e.g., Red Triangle, Blue Square) exist as labels in the data. The adjusted mutual information (AMI) (Vinh et al., 2009) measures the mutual information between messages and labels, adjusted for chance:"
1310
+ },
1311
+ {
1312
+ "type": "equation",
1313
+ "bbox": [
1314
+ 0.13,
1315
+ 0.811,
1316
+ 0.488,
1317
+ 0.842
1318
+ ],
1319
+ "angle": 0,
1320
+ "content": "\\[\n\\operatorname {A M I} (M, L) = \\frac {I (M , L) - \\mathbb {E} (I (M , L)}{\\max (H (M) , H (L)) - \\mathbb {E} (I (M , L))} \\tag {3}\n\\]"
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "bbox": [
1325
+ 0.114,
1326
+ 0.855,
1327
+ 0.489,
1328
+ 0.919
1329
+ ],
1330
+ "angle": 0,
1331
+ "content": "where \\(I(M,L)\\) is the mutual information between \\(M\\) and \\(L\\), \\(H(\\cdot)\\) is the entropy, and \\(\\mathbb{E}(I(M,L))\\) is computed with respect to a hypergeometric model of randomness."
1332
+ },
1333
+ {
1334
+ "type": "image",
1335
+ "bbox": [
1336
+ 0.588,
1337
+ 0.105,
1338
+ 0.817,
1339
+ 0.267
1340
+ ],
1341
+ "angle": 0,
1342
+ "content": null
1343
+ },
1344
+ {
1345
+ "type": "image_caption",
1346
+ "bbox": [
1347
+ 0.509,
1348
+ 0.296,
1349
+ 0.883,
1350
+ 0.34
1351
+ ],
1352
+ "angle": 0,
1353
+ "content": "Figure 3: The SHAPE dataset, presenting one turn. Top 8 images are Yellow targets. Bottom 8 images are distractors."
1354
+ },
1355
+ {
1356
+ "type": "title",
1357
+ "bbox": [
1358
+ 0.51,
1359
+ 0.365,
1360
+ 0.623,
1361
+ 0.381
1362
+ ],
1363
+ "angle": 0,
1364
+ "content": "B Datasets"
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "bbox": [
1369
+ 0.508,
1370
+ 0.389,
1371
+ 0.882,
1372
+ 0.421
1373
+ ],
1374
+ "angle": 0,
1375
+ "content": "We use two datasets in our experiments. Both will be made publicly available."
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "bbox": [
1380
+ 0.508,
1381
+ 0.428,
1382
+ 0.884,
1383
+ 0.605
1384
+ ],
1385
+ "angle": 0,
1386
+ "content": "Shape. A visual reasoning dataset (Kuhnle and Copestake, 2017) of objects over a black background. Our version of the dataset contains four attributes: the shape attribute has five shapes, the color attribute has six colors. To these we added horizontal and vertical position attributes each with three values. Overall, the SHAPE dataset contains 17 concepts, and a maximal labeling rule of 4 FVPs which sum to 270 unique 4-concept labels. The dataset contains many images that obey the same label. See Figure 3 for an example."
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "bbox": [
1391
+ 0.508,
1392
+ 0.612,
1393
+ 0.884,
1394
+ 0.741
1395
+ ],
1396
+ "angle": 0,
1397
+ "content": "Thing. A synthetic dataset of 100,000 objects which we design for controlled experiments. Each object in the dataset has five attributes, each with 10 possible values. Overall, the THING datasets contains 50 concepts and a maximal labeling rule of 5 FVPs. We experiments with label lengths varied from 1, describing a single concept, to 5, which completely describes an object in the dataset."
1398
+ },
1399
+ {
1400
+ "type": "title",
1401
+ "bbox": [
1402
+ 0.509,
1403
+ 0.748,
1404
+ 0.753,
1405
+ 0.764
1406
+ ],
1407
+ "angle": 0,
1408
+ "content": "C Implementation Details"
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "bbox": [
1413
+ 0.508,
1414
+ 0.771,
1415
+ 0.885,
1416
+ 0.883
1417
+ ],
1418
+ "angle": 0,
1419
+ "content": "We run all experiments over a modified version of the Egg framework (Kharitonov et al., 2019). In our version the communication modules used by the sender and the receiver are totally separated from their perceptual modules, which we term 'agents'. The Quantized (QT) and Gumbel-Softmax (GS) protocols are implemented at the"
1420
+ },
1421
+ {
1422
+ "type": "page_footnote",
1423
+ "bbox": [
1424
+ 0.51,
1425
+ 0.892,
1426
+ 0.885,
1427
+ 0.919
1428
+ ],
1429
+ "angle": 0,
1430
+ "content": "Our modification is available at https://github. com/bcarmeli/egg_qtc."
1431
+ },
1432
+ {
1433
+ "type": "page_number",
1434
+ "bbox": [
1435
+ 0.481,
1436
+ 0.928,
1437
+ 0.519,
1438
+ 0.941
1439
+ ],
1440
+ "angle": 0,
1441
+ "content": "3191"
1442
+ }
1443
+ ],
1444
+ [
1445
+ {
1446
+ "type": "table",
1447
+ "bbox": [
1448
+ 0.174,
1449
+ 0.094,
1450
+ 0.825,
1451
+ 0.159
1452
+ ],
1453
+ "angle": 0,
1454
+ "content": "<table><tr><td>Batch Size</td><td>lr</td><td>Num Targets</td><td>Num Distr</td><td>Cell Type</td><td>Sender Hidden</td><td>Sender Embed</td><td>Receiver Hidden</td><td>Receiver Embed</td></tr><tr><td>10</td><td>0.0005</td><td>8/20</td><td>8/20</td><td>LSTM</td><td>60</td><td>60</td><td>40</td><td>40</td></tr></table>"
1455
+ },
1456
+ {
1457
+ "type": "table_caption",
1458
+ "bbox": [
1459
+ 0.289,
1460
+ 0.169,
1461
+ 0.707,
1462
+ 0.184
1463
+ ],
1464
+ "angle": 0,
1465
+ "content": "Table 2: Hyper-parameters for the agents in the SHAPE game."
1466
+ },
1467
+ {
1468
+ "type": "table",
1469
+ "bbox": [
1470
+ 0.221,
1471
+ 0.212,
1472
+ 0.779,
1473
+ 0.491
1474
+ ],
1475
+ "angle": 0,
1476
+ "content": "<table><tr><td>Exp Num</td><td>Game</td><td>Comm Type</td><td>Label Len</td><td>word Len</td><td>Msg Len</td><td>Best Epoch</td><td>ACC</td><td>AMI</td><td>Best Match</td></tr><tr><td>1</td><td>SHAPE</td><td>gs</td><td>1</td><td>8</td><td>4</td><td>97</td><td>0.829</td><td>0.404</td><td>0.405</td></tr><tr><td>2</td><td>SHAPE</td><td>gs</td><td>1</td><td>64</td><td>4</td><td>96</td><td>0.843</td><td>0.390</td><td>0.339</td></tr><tr><td>3</td><td>SHAPE</td><td>gs</td><td>4</td><td>8</td><td>1</td><td>8</td><td>0.742</td><td>0.490</td><td>0.152</td></tr><tr><td>4</td><td>SHAPE</td><td>gs</td><td>4</td><td>64</td><td>1</td><td>10</td><td>0.748</td><td>0.413</td><td>0.130</td></tr><tr><td>5</td><td>SHAPE</td><td>qt</td><td>1</td><td>3</td><td>4</td><td>86</td><td>0.878</td><td>0.540</td><td>1.401</td></tr><tr><td>6</td><td>SHAPE</td><td>qt</td><td>1</td><td>64</td><td>4</td><td>85</td><td>0.991</td><td>0.000</td><td>0.001</td></tr><tr><td>7</td><td>SHAPE</td><td>qt</td><td>4</td><td>3</td><td>1</td><td>9</td><td>0.768</td><td>0.474</td><td>0.152</td></tr><tr><td>8</td><td>SHAPE</td><td>qt</td><td>4</td><td>64</td><td>1</td><td>12</td><td>0.897</td><td>0.021</td><td>0.009</td></tr><tr><td>9</td><td>THING</td><td>gs</td><td>1</td><td>8</td><td>4</td><td>83</td><td>0.793</td><td>0.102</td><td>0.091</td></tr><tr><td>10</td><td>THING</td><td>gs</td><td>1</td><td>64</td><td>4</td><td>94</td><td>0.798</td><td>0.074</td><td>0.151</td></tr><tr><td>11</td><td>THING</td><td>gs</td><td>4</td><td>8</td><td>1</td><td>97</td><td>0.655</td><td>0.016</td><td>0.052</td></tr><tr><td>12</td><td>THING</td><td>gs</td><td>4</td><td>64</td><td>1</td><td>99</td><td>0.626</td><td>0.014</td><td>0.058</td></tr><tr><td>13</td><td>THING</td><td>qt</td><td>1</td><td>3</td><td>4</td><td>96</td><td>0.838</td><td>0.267</td><td>0.119</td></tr><tr><td>14</td><td>THING</td><td>qt</td><td>1</td><td>64</td><td>4</td><td>100</td><td>0.973</td><td>0.000</td><td>0.014</td></tr><tr><td>15</td><td>THING</td><td>qt</td><td>4</td><td>3</td><td>1</td><td>26</td><td>0.622</td><td>0.020</td><td>0.057</td></tr><tr><td>16</td><td>THING</td><td>qt</td><td>4</td><td>64</td><td>1</td><td>96</td><td>0.844</td><td>0.000</td><td>0.013</td></tr></table>"
1477
+ },
1478
+ {
1479
+ "type": "table_caption",
1480
+ "bbox": [
1481
+ 0.114,
1482
+ 0.501,
1483
+ 0.884,
1484
+ 0.543
1485
+ ],
1486
+ "angle": 0,
1487
+ "content": "Table 3: Configurations for more SHAPE and THING game experiments. In these configuration we intentionally define sub-optimal communication parameters in order to demonstrate the usefulness of the evaluation metrics. Experiment results are provided in Table 4"
1488
+ },
1489
+ {
1490
+ "type": "table",
1491
+ "bbox": [
1492
+ 0.139,
1493
+ 0.572,
1494
+ 0.86,
1495
+ 0.852
1496
+ ],
1497
+ "angle": 0,
1498
+ "content": "<table><tr><td>Exp Num</td><td>Unq Msgs</td><td>Unq Wrds</td><td>Unq Prs</td><td>Ung Cons</td><td>Totl Edgs</td><td>Good Edgs</td><td>Amb Edgs</td><td>Phrs Edgs</td><td>Totl Cons</td><td>Unm Cons</td><td>Par Scor</td><td>Prc</td><td>Rcl</td></tr><tr><td>1</td><td>258</td><td>7</td><td>17</td><td>17</td><td>4k</td><td>1621</td><td>2379</td><td>0</td><td>1k</td><td>444</td><td>0</td><td>0.137</td><td>0.546</td></tr><tr><td>2</td><td>442</td><td>55</td><td>17</td><td>17</td><td>4k</td><td>1356</td><td>1724</td><td>920</td><td>1k</td><td>0</td><td>0.23</td><td>0.144</td><td>0.577</td></tr><tr><td>3</td><td>8</td><td>8</td><td>34</td><td>17</td><td>4k</td><td>610</td><td>390</td><td>0</td><td>4k</td><td>1457</td><td>0</td><td>0.61</td><td>0.152</td></tr><tr><td>4</td><td>44</td><td>44</td><td>34</td><td>17</td><td>4k</td><td>520</td><td>326</td><td>154</td><td>4k</td><td>0</td><td>0.04</td><td>0.52</td><td>0.13</td></tr><tr><td>5</td><td>238</td><td>8</td><td>17</td><td>17</td><td>4k</td><td>1605</td><td>2395</td><td>0</td><td>1k</td><td>385</td><td>0</td><td>0.144</td><td>0.577</td></tr><tr><td>6</td><td>1000</td><td>3899</td><td>17</td><td>17</td><td>4k</td><td>46</td><td>0</td><td>3954</td><td>1k</td><td>0</td><td>0.99</td><td>0.011</td><td>0.044</td></tr><tr><td>7</td><td>7</td><td>7</td><td>34</td><td>17</td><td>4k</td><td>607</td><td>393</td><td>0</td><td>4k</td><td>1727</td><td>0</td><td>0.607</td><td>0.152</td></tr><tr><td>8</td><td>974</td><td>974</td><td>34</td><td>17</td><td>4k</td><td>38</td><td>0</td><td>962</td><td>4k</td><td>0</td><td>0.24</td><td>0.038</td><td>0.009</td></tr><tr><td>9</td><td>543</td><td>7</td><td>50</td><td>50</td><td>4k</td><td>366</td><td>3634</td><td>0</td><td>1k</td><td>807</td><td>0</td><td>0.048</td><td>0.19</td></tr><tr><td>10</td><td>806</td><td>60</td><td>50</td><td>50</td><td>4k</td><td>601</td><td>3369</td><td>30</td><td>1k</td><td>0</td><td>0.01</td><td>0.1</td><td>0.399</td></tr><tr><td>11</td><td>8</td><td>8</td><td>901</td><td>50</td><td>4k</td><td>210</td><td>790</td><td>0</td><td>4k</td><td>3332</td><td>0</td><td>0.21</td><td>0.052</td></tr><tr><td>12</td><td>21</td><td>21</td><td>901</td><td>50</td><td>4k</td><td>233</td><td>767</td><td>0</td><td>4k</td><td>2267</td><td>0</td><td>0.233</td><td>0.058</td></tr><tr><td>13</td><td>412</td><td>8</td><td>50</td><td>50</td><td>4k</td><td>478</td><td>3522</td><td>0</td><td>1k</td><td>795</td><td>0</td><td>0.046</td><td>0.184</td></tr><tr><td>14</td><td>1000</td><td>3991</td><td>50</td><td>50</td><td>4k</td><td>57</td><td>0</td><td>3943</td><td>1k</td><td>0</td><td>0.99</td><td>0.013</td><td>0.052</td></tr><tr><td>15</td><td>11</td><td>6</td><td>901</td><td>50</td><td>4k</td><td>229</td><td>771</td><td>0</td><td>4k</td><td>3483</td><td>0</td><td>0.229</td><td>0.057</td></tr><tr><td>16</td><td>1000</td><td>1000</td><td>901</td><td>50</td><td>4k</td><td>50</td><td>0</td><td>950</td><td>4k</td><td>0</td><td>0.24</td><td>0.05</td><td>0.013</td></tr></table>"
1499
+ },
1500
+ {
1501
+ "type": "table_caption",
1502
+ "bbox": [
1503
+ 0.113,
1504
+ 0.861,
1505
+ 0.884,
1506
+ 0.903
1507
+ ],
1508
+ "angle": 0,
1509
+ "content": "Table 4: Results for more SHAPE and THING game configurations described in Table 3. In these experiments we intentionally define sub-optimal communication parameters in order to demonstrate the usefulness of the evaluation metrics."
1510
+ },
1511
+ {
1512
+ "type": "page_number",
1513
+ "bbox": [
1514
+ 0.481,
1515
+ 0.929,
1516
+ 0.522,
1517
+ 0.941
1518
+ ],
1519
+ "angle": 0,
1520
+ "content": "3192"
1521
+ }
1522
+ ],
1523
+ [
1524
+ {
1525
+ "type": "text",
1526
+ "bbox": [
1527
+ 0.113,
1528
+ 0.085,
1529
+ 0.49,
1530
+ 0.228
1531
+ ],
1532
+ "angle": 0,
1533
+ "content": "communication layer. For GS we use an implementation provided by the Egg framework, where we do not allow temperature to be learned, and set the straight-through estimator to False. For QT we followed parameter recommendations from Carmeli et al. (2023) and use a binary quantization in all experiments. Both GS and QT uses a recurrent neural network (RNN) for generating multiple words in a message. See Table 2 for RNN details."
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "bbox": [
1538
+ 0.117,
1539
+ 0.231,
1540
+ 0.49,
1541
+ 0.55
1542
+ ],
1543
+ "angle": 0,
1544
+ "content": "The agents for the THING game use fully connected feed-forward networks with input dimension of \\( d = 270 \\). Objects are encoded by concatenating five one-hot vectors, one per attribute. There are 50 unique values and 4 communication words (SOS, EOS, PAD, UNK), thus the total object representation length is \\( d = 270 \\). The agents of the SHAPE game are implemented with a convolutional neural network similar to Mu and Goodman (2021). Network hyper-parameters are provided in Table 2. In the experiments, we report results when varying the communication elements (word length and message length). Experiments in Table 1 are done with 20 targets and 20 distractors, while experiments reported in Tables 3 and 4 are done with 8 targets and 8 distractors. Our main interest in this work is to evaluate the emerged communication and not to achieve the best possible performance, thus we did not conduct a thorough hyper-parameter search for the agents themselves."
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "bbox": [
1549
+ 0.113,
1550
+ 0.552,
1551
+ 0.489,
1552
+ 0.633
1553
+ ],
1554
+ "angle": 0,
1555
+ "content": "We run all experiments on a single A100 GPU with 40 GB of RAM. Model size is less than 10M. We usually trained the model for 200 epochs which took about 10 hours to complete. Our code will be made publicly available upon de-anonymization."
1556
+ },
1557
+ {
1558
+ "type": "title",
1559
+ "bbox": [
1560
+ 0.114,
1561
+ 0.639,
1562
+ 0.486,
1563
+ 0.656
1564
+ ],
1565
+ "angle": 0,
1566
+ "content": "D Evaluating Sub-optimal Configurations"
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "bbox": [
1571
+ 0.113,
1572
+ 0.662,
1573
+ 0.489,
1574
+ 0.806
1575
+ ],
1576
+ "angle": 0,
1577
+ "content": "Here we provide results from experiments with several sub-optimal configurations and demonstrate how CBM identifies these deficiencies. We report configuration parameters for each experiment together with accuracy, AMI, and CBM Score in Table 3. We report all CBM metrics for these experiments in Table 4. Information from the two tables is aligned by the experiment number (first column)."
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "bbox": [
1582
+ 0.113,
1583
+ 0.807,
1584
+ 0.49,
1585
+ 0.919
1586
+ ],
1587
+ "angle": 0,
1588
+ "content": "Sub-optimal communication may stem from a channel that is either too wide or too narrow. Narrow channels are restricted by a small number of words and short messages. Wide channels allow long words and/or long messages. Past studies (Tucker et al., 2022) suggest that creating an information bottleneck by narrowing the channel en"
1589
+ },
1590
+ {
1591
+ "type": "image",
1592
+ "bbox": [
1593
+ 0.537,
1594
+ 0.094,
1595
+ 0.858,
1596
+ 0.224
1597
+ ],
1598
+ "angle": 0,
1599
+ "content": null
1600
+ },
1601
+ {
1602
+ "type": "image_caption",
1603
+ "bbox": [
1604
+ 0.508,
1605
+ 0.238,
1606
+ 0.886,
1607
+ 0.309
1608
+ ],
1609
+ "angle": 0,
1610
+ "content": "Figure 4: Assessing CBM sensitivity to the size of the evaluation set. We show results for two randomly selected experiments. As seen, the CBM score stabilizes when assessing datasets comprising more than 500 samples."
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "bbox": [
1615
+ 0.507,
1616
+ 0.335,
1617
+ 0.885,
1618
+ 0.543
1619
+ ],
1620
+ "angle": 0,
1621
+ "content": "courages generalization. As seen, CBM scores for most reported sub-optimal configurations are low. Results from experiments 1, 2, and 5 are the only ones for which the CBM score is higher than 0.2. Experiment 6 (SHAPE) achieves almost perfect accuracy (0.991) due to its wide channel. However, the paraphrase score for this experiment is 0.989 showing that the sender uses many different words to refer to the same concept. This phenomenon can also be seen by the large number of unique words (3899) generated for just 17 unique concepts. A similar phenomenon is observed for the THING game (experiment 14)."
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "bbox": [
1626
+ 0.508,
1627
+ 0.544,
1628
+ 0.886,
1629
+ 0.8
1630
+ ],
1631
+ "angle": 0,
1632
+ "content": "Experiment 11 (THING) uses a narrow channel. The vocabulary contains only 8 words and the channel allows one-word-long messages. This configuration resulted in 3332 concepts that do not match any word. Interestingly, the number of unmatched concepts remains high even when extending the word length to 64, in experiment 12. We attribute this sub-optimal phenomenon to GS communication deficiencies. The number of unique words generated by the sender in this experiment is only 21 out of the possible 64 words allowed by the configuration. For the SHAPE game, on the other hand, the same wide-channel configuration resulted in 44 unique words generated by the sender for the 17 concepts available in this game and all concepts have matched words."
1633
+ },
1634
+ {
1635
+ "type": "text",
1636
+ "bbox": [
1637
+ 0.508,
1638
+ 0.807,
1639
+ 0.886,
1640
+ 0.919
1641
+ ],
1642
+ "angle": 0,
1643
+ "content": "Precision and recall. After finding the best match, precision and recall between words and concepts can be computed. We define message precision (Prc) and recall (Rcl) to be the number of matched edges in a message, divided by the number of words or concepts, respectively. Precision and recall add insights in situation where the num"
1644
+ },
1645
+ {
1646
+ "type": "page_number",
1647
+ "bbox": [
1648
+ 0.481,
1649
+ 0.928,
1650
+ 0.521,
1651
+ 0.941
1652
+ ],
1653
+ "angle": 0,
1654
+ "content": "3193"
1655
+ }
1656
+ ],
1657
+ [
1658
+ {
1659
+ "type": "text",
1660
+ "bbox": [
1661
+ 0.117,
1662
+ 0.085,
1663
+ 0.486,
1664
+ 0.244
1665
+ ],
1666
+ "angle": 0,
1667
+ "content": "ber of words in messages differs significantly from the number of concepts used for labeling the data. Experiment 5 (SHAPE) shows the highest recall, gained partially due to the long message length (four words) allowed by the channel, compared to the label length (one concept) dictated by the data. In contrast, experiment 3 (SHAPE) shows the highest precision. Indeed, this configuration restricts message the length to one word while the data dictates four-concept long phrases."
1668
+ },
1669
+ {
1670
+ "type": "title",
1671
+ "bbox": [
1672
+ 0.117,
1673
+ 0.251,
1674
+ 0.425,
1675
+ 0.267
1676
+ ],
1677
+ "angle": 0,
1678
+ "content": "E CBM Sensitivity to Dataset Size"
1679
+ },
1680
+ {
1681
+ "type": "text",
1682
+ "bbox": [
1683
+ 0.117,
1684
+ 0.274,
1685
+ 0.486,
1686
+ 0.547
1687
+ ],
1688
+ "angle": 0,
1689
+ "content": "We evaluated CBM scores on increased data sizes. Figure 4 shows results for two randomly selected experiments. The solid lines indicate the CBM score, computed when accumulating data samples in 100 quintets. The dashed lines indicate CBM score calculated independently for 18 successive data segments of 100 samples each. As seen, scores stabilize for evaluation sets of size larger than 500 samples. Interestingly, the 100-sample scores (dashed) lines are higher than the accumulated scores (solid lines). This is in line with our insight that low evaluation sizes result in higher match scores. Standard deviation for the 18 accumulated measures is 0.009 and 0.016, for the two experiments, respectively. Standard deviation for the 18 segmented measures is 0.044 and 0.040, for the two experiments, respectively."
1690
+ },
1691
+ {
1692
+ "type": "page_number",
1693
+ "bbox": [
1694
+ 0.483,
1695
+ 0.929,
1696
+ 0.521,
1697
+ 0.941
1698
+ ],
1699
+ "angle": 0,
1700
+ "content": "3194"
1701
+ }
1702
+ ]
1703
+ ]
2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/4ad4723c-7bbd-4934-855a-91c77ee9c3b0_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3ec637fd48657193352b3cbf1a00dfc4e75107101b698c61cda5ef12939f34a
3
+ size 429676
2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/full.md ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Concept-Best-Matching: Evaluating Compositionality in Emergent Communication
2
+
3
+ Boaz Carmeli Yonatan Belinkov Ron Meir
4
+
5
+ Technion - Israel Institute of Technology
6
+
7
+ boaz.carmeli@campus.technion.ac.il,
8
+
9
+ belinkov@technion.ac.il
10
+
11
+ rmeir@ee.technion.ac.il
12
+
13
+ # Abstract
14
+
15
+ Artificial agents that learn to communicate in order to accomplish a given task acquire communication protocols that are typically opaque to a human. A large body of work has attempted to evaluate the emergent communication via various evaluation measures, with compositionality featuring as a prominent desired trait. However, current evaluation procedures do not directly expose the compositionality of the emergent communication. We propose a procedure to assess the compositionality of emergent communication by finding the best-match between emerged words and natural language concepts. The best-match algorithm provides both a global score and a translation-map from emergent words to natural language concepts. To the best of our knowledge, it is the first time that such direct and interpretable mapping between emergent words and human concepts is provided.
16
+
17
+ # 1 Introduction
18
+
19
+ Artificial agents that learn to communicate for accomplishing a given task acquire communication protocols. In the common setting, a sender observes a set of objects and sends a message to a receiver, which then needs to identify the correct target objects out of a set of distractors. The two agents learn a communication protocol over discrete vocabulary of atoms, termed "words". The emergent communication (EC) is typically opaque to a human. As a result, a large body of work has attempted to characterize the emergent communication in light of natural language (NL) traits, such as compositionality (Hupkes et al., 2020; Chaabouni et al., 2020), systematic generalization (Vani et al., 2021), pragmatism (Andreas and Klein, 2016; Zaslavsky et al., 2021), and more.
20
+
21
+ Chief among these is compositionality, which enables the construction of complex meanings from the meaning of parts (Li and Bowling, 2019). However, quantifying compositionality in EC is noto
22
+
23
+ ![](images/7efaa4f44ab3e074fc1e43b6503b044d6ba4aabf8d4ff81697e353b25ef2af64.jpg)
24
+
25
+ ![](images/4248688314ed681579968ffdf95456aa4afa808659c530ff77dd1101ed2fe46b.jpg)
26
+
27
+ ![](images/16a18c7c7c695ccd954b3173cff82d6d2a4ebecc235529be5809eb2cdf180752.jpg)
28
+
29
+ ![](images/aa617a2e2f45b037d25b4e706d9638828f86706efeb5073ca5cd8486ab92b152.jpg)
30
+
31
+ ![](images/236bd928f13a6cc074ea83943f5cea6065d12ed3eb431002eff37d053ed888cd.jpg)
32
+ Figure 1: The multi-target shape game played in turns (showing two turns). (a) At each turn, the sender is given a set of images, a subset of them marked as targets by an Oracle. (b) Sender generates messages $[w_1, w_2]$ for the blue-triangle (turn 1) and $[w_2, w_3]$ for the red-triangle (turn 2). (c) During evaluation, we construct a bipartite graph of words generated by the sender and concepts provided by the Oracle for each turn. (d) The best-match algorithm matches EC words to NL concepts and provides the CBM score. In this example, all EC words are matched with NL concepts, resulting in a CBM score of 1.0.
33
+
34
+ ![](images/f02978d4c6f4562f3ae144a079d8597472e6e9040d75faefad646e48a99be6fa.jpg)
35
+
36
+ ![](images/33617a946fab55fb86038746e076be7f423c842a353bb8acbc50ec586bac48ed.jpg)
37
+
38
+ riously difficult (Lazaridou et al., 2018). In fact, recent studies found that common compositionality measures in EC, e.g., topographic similarity (Brighton and Kirby, 2006; Li and Bowling, 2019), do not correlate well with success in the task (Chaabouni et al., 2021; Yao et al., 2022). Moreover, while seeking to assess an opaque protocol, common evaluation measures in EC are opaque themselves—they do not provide a human-interpretable characterization of the compositionality of the communication.
39
+
40
+ This work develops a method that characterizes how compositional an EC is. Our method is founded on the key insight that, in an EC setting, a communication is compositional if agents communicate successfully via complex messages formed of simple atoms and these atoms are mapped to NL concepts. Our evaluation is based on the classical
41
+
42
+ best-match algorithm (Hopcroft and Karp, 1973). Given a set of EC atoms and a set of NL concepts, we construct a bi-partite graph and seek the optimal one-to-one mapping between words and concepts. A perfectly compositional EC would yield a perfect match, where every EC atom is mapped to exactly one NL concept. See Figure 1 for an illustration.
43
+
44
+ We experiment with the proposed procedure in two EC settings and compare it to two popular evaluation measures - topographic similarity and adjusted mutual information (AMI). We demonstrate that our approach provides a fine-grained characterization of emergent protocols, exposing their strengths and weaknesses, while other measures only provide coarse, opaque scores. According to our evaluation, state-of-the-art communication methods do not achieve satisfactory results.
45
+
46
+ # 2 Background
47
+
48
+ # 2.1 Emergent Communication Setup
49
+
50
+ We follow a recent setup suggested by Mu and Goodman (2021), where a sender needs to communicate with a receiver about a set of target objects out of a larger set of candidate objects. The sender sends a message to the receiver, which uses it to distinguish targets from distractor objects. For example, to identify all red triangles out of objects with different shapes and colors. This setup is more conducive to emergence of compositional communication than the classical referential game (Lazaridou et al., 2017). Senders in this setup need to form a generalization rather than merely transmit the identity of a single target.
51
+
52
+ Formally, assume a world $\mathbb{X}$ , where each object is characterised by $n$ feature-value pairs (FVPs), $\langle f_1 : v_1, \ldots, f_n : v_n \rangle$ , with feature $i$ having $k_i$ possible values, $v_i \in \{f_i[1], \ldots, f_i[k_i]\}$ . For instance, the Shape world (Kuhnle and Copestake, 2017) has objects like $\langle \text{shape: triangle, color: red} \rangle$ . Labeling rules are boolean expressions over these FVPs. Each rule $l : \mathbb{X} \mapsto \{0, 1\}$ labels each object as 0 or 1. For instance, the rule Red Triangle labels all red triangles as positive and all other objects as negative. We identify the rule Red Triangle with the NL phrase "red triangle", which comprises the concepts "red" and "triangle".
53
+
54
+ At each turn of the game, we draw a set of candidate objects $\tilde{\mathbb{X}}\subset \mathbb{X}$ that is made of target objects, $\mathbb{T}$ , which obey the rule, and distractors, $\mathbb{D}$ , which do not: $l(x) = 1$ if $x\in \mathbb{T}$ and $l(x) = 0$ if $x\in \mathbb{D}$ .
55
+
56
+ The sender encodes the set of target objects $\mathbb{T}$ into a dense representation $\pmb{u}^s\in \mathbb{R}^d$ , and generates a message $m$ , a sequence of words from some vocabulary. The receiver encodes each candidate object $x\in \mathbb{X}$ into a representation $\pmb {u}_x^r\in \mathbb{R}^d$ . It decodes the message $m$ into a representation $\pmb {z}\in \mathbb{R}^{d}$ and computes a matching score between each encoded candidate and the message representation, $g(z,\pmb {u}_x^r)$ . A candidate is predicted as a target if its score is $>0.5$ . The entire system—sender and receiver networks—is trained jointly with a binary cross entropy on correctly identifying each target.
57
+
58
+ # 2.2 Compositionality in EC
59
+
60
+ Various measures have been proposed to evaluate if an EC protocol is compositional. We mention a few prominent ones below. However, while trying to capture the idea that a complex meaning uses the meaning of its parts, previous measures fail to provide a concrete mapping of parts—EC words and NL concepts. We say an emergent communication is compositional if the following conditions hold:
61
+
62
+ 1. EC words are mapped to NL concepts.
63
+ 2. A complex EC message is composed of simple EC words.
64
+ 3. Agents communicate successfully via complex messages.
65
+ 4. An EC message composed of words has the same meaning as an NL phrase composed of the respective concepts.
66
+
67
+ Being able to compose EC words while preserving their NL meaning allows agents to generalize to new data while using interpretable communication.
68
+
69
+ # 2.3 Compositionality Evaluations in EC
70
+
71
+ We briefly describe two notable measures of compositionality in EC. Appendix A gives more details.
72
+
73
+ Topographic Similarity (TopSim) (Brighton and Kirby, 2006) measures how well messages align with object representations. Given a set of objects and their EC messages, calculate a matrix of distances between every two messages and a separate matrix of distances between every two object representations. TopSim is the Spearman correlation of the two distance matrices.
74
+
75
+ TopSim is a global metric that does not require a reference language and can be applied to any EC setup. However, recent studies found that TopSim does not correlate well with success in the task being played (Chaabouni et al., 2021; Yao et al., 2022). More importantly, it does not provide a
76
+
77
+ mapping between EC words and NL concepts, and thus cannot directly assess compositionality.
78
+
79
+ Adjusted Mutual Information (AMI) (Vinh et al., 2009) measures the MIT between a set of EC messages and a corresponding set of NL phrases, adjusted for chance. Mu and Goodman (2021) showed AMI is a better compositionality measure than TopSim, as it directly assesses the MI between a message and its NL phrases. Still, AMI operates at the level of messages and phrases, rather than atomic words and concepts, respectively.
80
+
81
+ # 3 Concept Best Matching
82
+
83
+ Our key insight is that compositionality requires a mapping between words (atomic parts of EC messages) and concepts (a set of FVPs) that compose NL phrases. Given an evaluation set of examples $D$ , consider their corresponding EC messages $\mathbb{M}$ and NL phrases $\mathbb{L}$ . Let $\mathbb{W}$ denote the set of unique words in $\mathbb{M}$ , and $\mathbb{V}$ the set of unique FVPs in $\mathbb{L}$ . Let $\{w\}_i, \{v\}_i$ be the sets of words and FVPs in sample $i$ , and $m_i = |\{w\}_i|, l_i = |\{v\}_i|$ their sizes. We construct a weighted bipartite graph $\mathcal{G} = ((\mathbb{W}, \mathbb{V}), \mathbb{E})$ with words on one side and FVPs on the other side. Edges $\mathbb{E}$ are defined by the evaluation set. The weight $q_e$ of edge $e_{ij}$ is the number of times word $i$ appeared in a message that the sender transmitted for a labeling rule with FVP $j$ . This construction reflects the intuition that we do not know the correct mapping between words and FVPs (concepts). See Figure 1 for an example.
84
+
85
+ # 3.1 Best Match Algorithm
86
+
87
+ Given the graph $\mathcal{G}$ , we seek an optimal pairing between words and concepts (FVPs), such that no two edges share the same word nor the same concept. The score of a match $\mathbb{B} \subseteq \mathbb{E}$ is the sum of its edge weights, $\sum_{e \in \mathbb{B}} q_e$ . The best match, $\mathrm{BM} = \mathrm{BM}(\mathcal{G})$ , maximizes this score:
88
+
89
+ $$
90
+ \mathrm {B M} = \underset {\mathbb {B}} {\operatorname {a r g m a x}} \sum_ {e \in \mathbb {B}} q _ {e} \tag {1}
91
+ $$
92
+
93
+ Such an ideal mapping is fully interpretable. A high score indicates that the agents learned to generate a unique EC word for each NL concept.
94
+
95
+ Normalizing the BM score by the number of symbols and words, $Q = \sum_{i\in D}\max (|m_i|,|l_i|)$ , guarantees that $\mathrm{BM}\in [0,1]$ . The best match for a weighted bipartite graph can be found efficiently by the Hungarian algorithm (Kuhn, 1955;
96
+
97
+ Hopcroft and Karp, 1973). Implementation is provided here.
98
+
99
+ # 4 Experimental Setup
100
+
101
+ We experiments with agents that learn to play multi-target referential games, introduced by Mu and Goodman (2021) and described in Section 2.1. All experiments reported in Table 1 have the number of possible words $\geq$ the number of concepts, allowing perfect match of words to concepts. In Appendix D we report more experiments with sub-optimal configurations.
102
+
103
+ Datasets. We experiment with two datasets, described briefly here; Appendix B has more details.
104
+
105
+ (1) SHAPE: A visual reasoning dataset (Kuhnle and Copestake, 2017) of objects over a black background. Our version of the dataset contains four attributes: shape, color, and horizontal and vertical positions. Overall, the SHAPE dataset contains 17 concepts, and a maximal labeling rule of 4 FVPs.
106
+ (2) THING: A synthetic dataset of 100,000 objects. Each object has five attributes, each with 10 possible values. Overall, the THING datasets contains 50 concepts and a maximal labeling rule of 5 FVPs.
107
+
108
+ Communication Channel. We train the system with two types of communication channels: the popular Gumbel-Softmax (GS) (Havylov and Titov, 2017; Jang et al., 2017) and quantized communication (QT) (Carmeli et al., 2023). In GS, each word is a $d$ -dimensional one-hot vector. In QT, each word is a $d$ -dimensional binary vector. QT was shown to be superior and easier to optimize compared to GS in EC games. In both cases we use a recurrent network to generate multi-word messages. Appendix C has implementation details.
109
+
110
+ # 5 Results
111
+
112
+ Table 1 shows results on several configurations of the two games. As expected, accuracy degrades as the task becomes more difficult, with longer labeling rules. QT communication yields better task accuracy than GS, consistent with Carmeli et al. (2023). TopSim is not well correlated with accuracy, as found in prior work (Section 2.3). AMI and CBM are more correlated with accuracy. With long messages and labeling rules ( $l = 4$ ), AMI is less correlated with accuracy. This may be explained by AMI operating at the level of whole messages and labeling rules—AMI struggles with large numbers of unique messages and NL phrases. In contrast,
113
+
114
+ <table><tr><td rowspan="2"></td><td rowspan="2">Com</td><td rowspan="2">l</td><td rowspan="2">d</td><td colspan="2">NL</td><td colspan="2">EC</td><td rowspan="2">Acc</td><td rowspan="2">Top Sim</td><td rowspan="2">AMI</td><td colspan="4">Best Match</td></tr><tr><td>Cons</td><td>Phrs</td><td>#w</td><td>#m</td><td>CBM</td><td>Amb</td><td>Para</td><td>Unm</td></tr><tr><td rowspan="4">Shape</td><td>GS</td><td>1</td><td>17</td><td>17</td><td>17</td><td>11</td><td>11</td><td>0.84</td><td>0.44</td><td>0.76</td><td>0.62</td><td>0.37</td><td>0.01</td><td>0.25</td></tr><tr><td>QT</td><td>1</td><td>5</td><td>17</td><td>17</td><td>26</td><td>26</td><td>0.87</td><td>0.39</td><td>0.85</td><td>0.52</td><td>0.41</td><td>0.08</td><td>0</td></tr><tr><td>GS</td><td>4</td><td>17</td><td>17</td><td>34</td><td>16</td><td>226</td><td>0.78</td><td>0.34</td><td>0.38</td><td>0.52</td><td>0.48</td><td>0</td><td>0.01</td></tr><tr><td>QT</td><td>4</td><td>5</td><td>17</td><td>34</td><td>26</td><td>187</td><td>0.83</td><td>0.23</td><td>0.37</td><td>0.55</td><td>0.37</td><td>0.08</td><td>0</td></tr><tr><td rowspan="4">Thing</td><td>GS</td><td>1</td><td>50</td><td>50</td><td>50</td><td>18</td><td>18</td><td>0.86</td><td>0.45</td><td>0.72</td><td>0.38</td><td>0.62</td><td>0</td><td>0.55</td></tr><tr><td>QT</td><td>1</td><td>6</td><td>50</td><td>50</td><td>50</td><td>50</td><td>0.92</td><td>0.07</td><td>0.74</td><td>0.73</td><td>0.25</td><td>0.02</td><td>0</td></tr><tr><td>GS</td><td>4</td><td>50</td><td>50</td><td>901</td><td>36</td><td>198</td><td>0.63</td><td>0.33</td><td>0.03</td><td>0.24</td><td>0.76</td><td>0</td><td>0.28</td></tr><tr><td>QT</td><td>4</td><td>6</td><td>50</td><td>901</td><td>64</td><td>450</td><td>0.77</td><td>0.14</td><td>0.05</td><td>0.23</td><td>0.69</td><td>0.08</td><td>0</td></tr></table>
115
+
116
+ Table 1: Results for SHAPE and THING games with Gumbel-Softmax (GS) or Quantized (QT) communication using rules of length $l$ and words of length $d$ , showing number of unique NL concepts (Cons) and phrases (Phrs) and EC words (\#w) and messages (#m). TopSim and AMI give only coarse scores. Our method gives the best match score (CBM) and rates of Ambiguities (Amb), Paraphrases (Para), and Unmatched concepts (Unm).
117
+
118
+ ![](images/d9ee58b9348d750d002cb8984b3fb9b33670a05da6509829cc76649979539b07.jpg)
119
+ Figure 2: The word $\leftrightarrow$ FVP best-match graph for the SHAPE game (GS communication, $l = 1$ ). The algorithm matched just 10 concepts to EC words out of 17 possible concepts.
120
+
121
+ CBM assesses word-to-concept matching, so it is less affected by long messages and rules. However, AMI and CBM are well correlated (Pearson 0.7 and 0.79 on the SHAPE and THING games).
122
+
123
+ The table also shows the rate of ambiguities and paraphrases, exposed by our method. Ambiguities happen when the same EC word is mapped to different concepts. Table 1 shows higher rates of ambiguities in GS compared to QT, and in longer rules. Paraphrases are EC words that do not have a best-matched concept node. Paraphrases occur more with QT, which enables 32 and 64 unique EC words for the SHAPE and THING games, while these games have only 17 and 50 NL concepts, respectively. GS allows setting the number of unique words equal to number of concepts, thus is less exposed to this sub-optimal phenomenon.
124
+
125
+ Finally, Unmatched concepts have no matching EC word. They result from a too narrow or underutilized channel. As Table 1 shows, GS communication suffers from a high rate of unmatched concepts (up to 0.5). This phenomenon can be observed by the low # of unique words (18) compared to # of unique concepts (50) for the THING game with GS and $l = 1$ . QT has a sufficient number of words and thus no unmatched concepts.
126
+
127
+ Example Match. Beyond global scores, the CBM provides an interpretable translation graph, which maps EC words to NL concepts, facilitating insights on reasons for sub-optimal communication. Figure 2 shows an example graph for the SHAPE game with GS communication. As seen, the algorithm successfully matched 10 EC words to 10 concepts. The sender generated 11 unique words in this experiment, indicating that one word is a paraphrase of an already matched concept, even within this narrow-channel setup.
128
+
129
+ # 6 Conclusion
130
+
131
+ We proposed a new procedure for assessing compositionality of emergent communication. In contrast to other evaluations, our procedure provides a human-interpretable translation map of emerged words to natural concepts. Moreover, our approach provides detailed insights into the reasons for suboptimal translation. We demonstrated it on two EC games with two different communication types. Our evaluation reveals even that quantized communication performs better than Gumbel-softmax, yet none exhibits compositionality in a level similar to natural language.
132
+
133
+ # Limitations
134
+
135
+ Our analysis is limited to datasets where gold label phrases exist. The evaluated dataset should be composable and the gold language should use finite set of concepts. Preferably, these concepts can be classified into several categories. We further assume an Oracle function that can divide the objects to targets and distractors during training. Importantly, our approach does not require labels during training.
136
+
137
+ # Acknowledgements
138
+
139
+ This research was supported by grant no. 2022330 from the United States - Israel Binational Science Foundation (BSF), Jerusalem, Israel. The research of YB was also supported by the Israel Science Foundation (grant 448/20), an Azrieli Foundation Early Career Faculty Fellowship, and an AI Alignment grant from Open Philanthropy. The work of RM was partially supported by the Skillman chair in biomedical sciences and by the Ollendorf center.
140
+
141
+ # References
142
+
143
+ Jacob Andreas and Dan Klein. 2016. Reasoning about pragmatics with neural listeners and speakers. In EMNLP.
144
+ Henry Brighton and Simon Kirby. 2006. Understanding linguistic evolution by visualizing the emergence of topographic mappings. Artificial life, 12(2):229-242.
145
+ Boaz Carmeli, Ron Meir, and Yonatan Belinkov. 2023. Emergent quantized communication. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 11533-11541.
146
+ Rahma Chaabouni, Eugene Kharitonov, Diane Bouchacourt, Emmanuel Dupoux, and Marco Baroni. 2020. Compositionality and generalization in emergent languages. In ACL, pages 4427-4442.
147
+ Rahma Chaabouni, Florian Strub, Florent Altché, Eugene Tarassov, Corentin Tallec, Elnaz Davoodi, Kory Wallace Mathewson, Olivier Tieleman, Angeliki Lazaridou, and Bilal Piot. 2021. Emergent communication at scale. In ICLR.
148
+ Serhii Havrylov and Ivan Titov. 2017. Emergence of language with multi-agent games: Learning to communicate with sequences of symbols. NeurIPS, 30.
149
+ John E Hopcroft and Richard M Karp. 1973. An $\mathfrak{n}^5 /2$ algorithm for maximum matchings in bipartite graphs. SIAM Journal on computing, 2(4):225-231.
150
+ Dieuwke Hupkes, Verna Dankers, Mathijs Mul, and Elia Bruni. 2020. Compositionality decomposed: How do neural networks generalise? Journal of Artificial Intelligence Research, 67:757-795.
151
+
152
+ Eric Jang, Shixiang Gu, and Ben Poole. 2017. Categorical reparameterization with gumbel-softmax. In ICLR.
153
+ Eugene Kharitonov, Rahma Chaabouni, Diane Bouchacourt, and Marco Baroni. 2019. EGG: a toolkit for research on emergence of lanGuage in games. In EMNLP-IJCNLP: System Demonstrations, pages 55-60.
154
+ Harold W Kuhn. 1955. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83-97.
155
+ Alexander Kuhnle and Ann Copestake. 2017. Shapeworld - a new test methodology for multimodal language understanding. arXiv preprint arXiv:1704.04517.
156
+ Angeliki Lazaridou, Karl Moritz Hermann, Karl Tuyls, and Stephen Clark. 2018. Emergence of linguistic communication from referential games with symbolic and pixel input. In ICLR.
157
+ Angeliki Lazaridou, Alexander Peysakhovich, and Marco Baroni. 2017. Multi-agent cooperation and the emergence of (natural) language. In ICLR.
158
+ Vladimir I Levenshtein et al. 1966. Binary codes capable of correcting deletions, insertions, and reversals. In Soviet physics doklady, volume 10, pages 707-710. Soviet Union.
159
+ Fushan Li and Michael Bowling. 2019. Ease-of-teaching and language structure from emergent communication. NeurIPS, 32.
160
+ Jesse Mu and Noah Goodman. 2021. Emergent communication of generalizations. Advances in Neural Information Processing Systems, 34:17994-18007.
161
+ Mycal Tucker, Roger P Levy, Julie Shah, and Noga Zaslavsky. 2022. Generalization and translatability in emergent communication via informational constraints. In NeurIPS 2022 Workshop on Information-Theoretic Principles in Cognitive Systems.
162
+ Ankit Vani, Max Schwarzer, Yuchen Lu, Eeshan Dhekane, and Aaron Courville. 2021. Iterated learning for emergent systematicity in VQA. In ICLR.
163
+ Nguyen Xuan Vinh, Julien Epps, and James Bailey. 2009. Information theoretic measures for clusterings comparison: is a correction for chance necessary? In Proceedings of the 26th annual international conference on machine learning, pages 1073-1080.
164
+ Shunyu Yao, Mo Yu, Yang Zhang, Karthik R Narasimhan, Joshua B. Tenenbaum, and Chuang Gan. 2022. Linking emergent and natural languages via corpus transfer. In ICLR.
165
+ Noga Zaslavsky, Jennifer Hu, and Roger P. Levy. 2021. A Rate-Distortion view of human pragmatic reasoning? In Proceedings of the Society for Computation in Linguistics, pages 347-348.
166
+
167
+ # Appendices
168
+
169
+ # A Details on Evaluation Measures
170
+
171
+ We provide here information on how to calculate the topographic similarity (TopSim) (Brighton and Kirby, 2006; Lazaridou et al., 2018; Yao et al., 2022) and adjusted mutual information (AMI) measures (Vinh et al., 2009; Mu and Goodman, 2021), in the context of EC. Refer to the original papers for full details.
172
+
173
+ Topographic Similarity. The topographic similarity measures how messages align with the object representations. Concretely, let $\cos_{ij} = \cos (\pmb{x}_i,\pmb{x}_j) = \pmb{x}_i\cdot \pmb{x}_j / (||\pmb{x}_i||_2||\pmb{x}_j||_2)$ be the cosine similarity of object representations $\pmb{x}_i$ and $\pmb{x}_j$ and $\mathrm{edit}_{ij} = \mathrm{edit}(m_i,m_j)$ be the Levenshtein distance (Levenshtein et al., 1966) between messages $m_{i}$ and $m_j$ . Let $\mathrm{ncos} = -\{\cos_{ij}\}_{ij}$ be the list of negative cosine similarities, $\mathrm{edit} = \{\mathrm{edit}_{ij}\}_{ij}$ the list of Levenshtein distances, and $R(\cdot)$ the ranking function. Then the topographic similarity is the Spearman rank correlation of the two matrices:
174
+
175
+ $$
176
+ \operatorname {T o p s i m} = \rho (R (\operatorname {e d i t}), R (\operatorname {n c o s})) \tag {2}
177
+ $$
178
+
179
+ where $\rho$ is the standard Pearson correlation.
180
+
181
+ Topographic similarity is a global metric that does not require a reference language and can be easily applied to every EC setup. However, despite its popularity, recent studies found that topographic similarity does not correlate well with success in the task being played (Chaabouni et al., 2021; Yao et al., 2022). More important, it does not provide a mapping between EC atoms and NL concepts, and thus cannot directly assess compositionality.
182
+
183
+ Adjusted Mutual Information. Given a test set $D$ , let $\mathbb{M}$ denote the set of messages generated by the sender and $\mathbb{L}$ denote the set of NL phrases (e.g., Red Triangle, Blue Square) exist as labels in the data. The adjusted mutual information (AMI) (Vinh et al., 2009) measures the mutual information between messages and labels, adjusted for chance:
184
+
185
+ $$
186
+ \operatorname {A M I} (M, L) = \frac {I (M , L) - \mathbb {E} (I (M , L)}{\max (H (M) , H (L)) - \mathbb {E} (I (M , L))} \tag {3}
187
+ $$
188
+
189
+ where $I(M,L)$ is the mutual information between $M$ and $L$ , $H(\cdot)$ is the entropy, and $\mathbb{E}(I(M,L))$ is computed with respect to a hypergeometric model of randomness.
190
+
191
+ ![](images/a0a68d82b82425ddea7e647f0d26ddc9d6a925173eb17d92cdf7027b1020832a.jpg)
192
+ Figure 3: The SHAPE dataset, presenting one turn. Top 8 images are Yellow targets. Bottom 8 images are distractors.
193
+
194
+ # B Datasets
195
+
196
+ We use two datasets in our experiments. Both will be made publicly available.
197
+
198
+ Shape. A visual reasoning dataset (Kuhnle and Copestake, 2017) of objects over a black background. Our version of the dataset contains four attributes: the shape attribute has five shapes, the color attribute has six colors. To these we added horizontal and vertical position attributes each with three values. Overall, the SHAPE dataset contains 17 concepts, and a maximal labeling rule of 4 FVPs which sum to 270 unique 4-concept labels. The dataset contains many images that obey the same label. See Figure 3 for an example.
199
+
200
+ Thing. A synthetic dataset of 100,000 objects which we design for controlled experiments. Each object in the dataset has five attributes, each with 10 possible values. Overall, the THING datasets contains 50 concepts and a maximal labeling rule of 5 FVPs. We experiments with label lengths varied from 1, describing a single concept, to 5, which completely describes an object in the dataset.
201
+
202
+ # C Implementation Details
203
+
204
+ We run all experiments over a modified version of the Egg framework (Kharitonov et al., 2019). In our version the communication modules used by the sender and the receiver are totally separated from their perceptual modules, which we term 'agents'. The Quantized (QT) and Gumbel-Softmax (GS) protocols are implemented at the
205
+
206
+ <table><tr><td>Batch Size</td><td>lr</td><td>Num Targets</td><td>Num Distr</td><td>Cell Type</td><td>Sender Hidden</td><td>Sender Embed</td><td>Receiver Hidden</td><td>Receiver Embed</td></tr><tr><td>10</td><td>0.0005</td><td>8/20</td><td>8/20</td><td>LSTM</td><td>60</td><td>60</td><td>40</td><td>40</td></tr></table>
207
+
208
+ Table 2: Hyper-parameters for the agents in the SHAPE game.
209
+
210
+ <table><tr><td>Exp Num</td><td>Game</td><td>Comm Type</td><td>Label Len</td><td>word Len</td><td>Msg Len</td><td>Best Epoch</td><td>ACC</td><td>AMI</td><td>Best Match</td></tr><tr><td>1</td><td>SHAPE</td><td>gs</td><td>1</td><td>8</td><td>4</td><td>97</td><td>0.829</td><td>0.404</td><td>0.405</td></tr><tr><td>2</td><td>SHAPE</td><td>gs</td><td>1</td><td>64</td><td>4</td><td>96</td><td>0.843</td><td>0.390</td><td>0.339</td></tr><tr><td>3</td><td>SHAPE</td><td>gs</td><td>4</td><td>8</td><td>1</td><td>8</td><td>0.742</td><td>0.490</td><td>0.152</td></tr><tr><td>4</td><td>SHAPE</td><td>gs</td><td>4</td><td>64</td><td>1</td><td>10</td><td>0.748</td><td>0.413</td><td>0.130</td></tr><tr><td>5</td><td>SHAPE</td><td>qt</td><td>1</td><td>3</td><td>4</td><td>86</td><td>0.878</td><td>0.540</td><td>1.401</td></tr><tr><td>6</td><td>SHAPE</td><td>qt</td><td>1</td><td>64</td><td>4</td><td>85</td><td>0.991</td><td>0.000</td><td>0.001</td></tr><tr><td>7</td><td>SHAPE</td><td>qt</td><td>4</td><td>3</td><td>1</td><td>9</td><td>0.768</td><td>0.474</td><td>0.152</td></tr><tr><td>8</td><td>SHAPE</td><td>qt</td><td>4</td><td>64</td><td>1</td><td>12</td><td>0.897</td><td>0.021</td><td>0.009</td></tr><tr><td>9</td><td>THING</td><td>gs</td><td>1</td><td>8</td><td>4</td><td>83</td><td>0.793</td><td>0.102</td><td>0.091</td></tr><tr><td>10</td><td>THING</td><td>gs</td><td>1</td><td>64</td><td>4</td><td>94</td><td>0.798</td><td>0.074</td><td>0.151</td></tr><tr><td>11</td><td>THING</td><td>gs</td><td>4</td><td>8</td><td>1</td><td>97</td><td>0.655</td><td>0.016</td><td>0.052</td></tr><tr><td>12</td><td>THING</td><td>gs</td><td>4</td><td>64</td><td>1</td><td>99</td><td>0.626</td><td>0.014</td><td>0.058</td></tr><tr><td>13</td><td>THING</td><td>qt</td><td>1</td><td>3</td><td>4</td><td>96</td><td>0.838</td><td>0.267</td><td>0.119</td></tr><tr><td>14</td><td>THING</td><td>qt</td><td>1</td><td>64</td><td>4</td><td>100</td><td>0.973</td><td>0.000</td><td>0.014</td></tr><tr><td>15</td><td>THING</td><td>qt</td><td>4</td><td>3</td><td>1</td><td>26</td><td>0.622</td><td>0.020</td><td>0.057</td></tr><tr><td>16</td><td>THING</td><td>qt</td><td>4</td><td>64</td><td>1</td><td>96</td><td>0.844</td><td>0.000</td><td>0.013</td></tr></table>
211
+
212
+ Table 3: Configurations for more SHAPE and THING game experiments. In these configuration we intentionally define sub-optimal communication parameters in order to demonstrate the usefulness of the evaluation metrics. Experiment results are provided in Table 4
213
+
214
+ <table><tr><td>Exp Num</td><td>Unq Msgs</td><td>Unq Wrds</td><td>Unq Prs</td><td>Ung Cons</td><td>Totl Edgs</td><td>Good Edgs</td><td>Amb Edgs</td><td>Phrs Edgs</td><td>Totl Cons</td><td>Unm Cons</td><td>Par Scor</td><td>Prc</td><td>Rcl</td></tr><tr><td>1</td><td>258</td><td>7</td><td>17</td><td>17</td><td>4k</td><td>1621</td><td>2379</td><td>0</td><td>1k</td><td>444</td><td>0</td><td>0.137</td><td>0.546</td></tr><tr><td>2</td><td>442</td><td>55</td><td>17</td><td>17</td><td>4k</td><td>1356</td><td>1724</td><td>920</td><td>1k</td><td>0</td><td>0.23</td><td>0.144</td><td>0.577</td></tr><tr><td>3</td><td>8</td><td>8</td><td>34</td><td>17</td><td>4k</td><td>610</td><td>390</td><td>0</td><td>4k</td><td>1457</td><td>0</td><td>0.61</td><td>0.152</td></tr><tr><td>4</td><td>44</td><td>44</td><td>34</td><td>17</td><td>4k</td><td>520</td><td>326</td><td>154</td><td>4k</td><td>0</td><td>0.04</td><td>0.52</td><td>0.13</td></tr><tr><td>5</td><td>238</td><td>8</td><td>17</td><td>17</td><td>4k</td><td>1605</td><td>2395</td><td>0</td><td>1k</td><td>385</td><td>0</td><td>0.144</td><td>0.577</td></tr><tr><td>6</td><td>1000</td><td>3899</td><td>17</td><td>17</td><td>4k</td><td>46</td><td>0</td><td>3954</td><td>1k</td><td>0</td><td>0.99</td><td>0.011</td><td>0.044</td></tr><tr><td>7</td><td>7</td><td>7</td><td>34</td><td>17</td><td>4k</td><td>607</td><td>393</td><td>0</td><td>4k</td><td>1727</td><td>0</td><td>0.607</td><td>0.152</td></tr><tr><td>8</td><td>974</td><td>974</td><td>34</td><td>17</td><td>4k</td><td>38</td><td>0</td><td>962</td><td>4k</td><td>0</td><td>0.24</td><td>0.038</td><td>0.009</td></tr><tr><td>9</td><td>543</td><td>7</td><td>50</td><td>50</td><td>4k</td><td>366</td><td>3634</td><td>0</td><td>1k</td><td>807</td><td>0</td><td>0.048</td><td>0.19</td></tr><tr><td>10</td><td>806</td><td>60</td><td>50</td><td>50</td><td>4k</td><td>601</td><td>3369</td><td>30</td><td>1k</td><td>0</td><td>0.01</td><td>0.1</td><td>0.399</td></tr><tr><td>11</td><td>8</td><td>8</td><td>901</td><td>50</td><td>4k</td><td>210</td><td>790</td><td>0</td><td>4k</td><td>3332</td><td>0</td><td>0.21</td><td>0.052</td></tr><tr><td>12</td><td>21</td><td>21</td><td>901</td><td>50</td><td>4k</td><td>233</td><td>767</td><td>0</td><td>4k</td><td>2267</td><td>0</td><td>0.233</td><td>0.058</td></tr><tr><td>13</td><td>412</td><td>8</td><td>50</td><td>50</td><td>4k</td><td>478</td><td>3522</td><td>0</td><td>1k</td><td>795</td><td>0</td><td>0.046</td><td>0.184</td></tr><tr><td>14</td><td>1000</td><td>3991</td><td>50</td><td>50</td><td>4k</td><td>57</td><td>0</td><td>3943</td><td>1k</td><td>0</td><td>0.99</td><td>0.013</td><td>0.052</td></tr><tr><td>15</td><td>11</td><td>6</td><td>901</td><td>50</td><td>4k</td><td>229</td><td>771</td><td>0</td><td>4k</td><td>3483</td><td>0</td><td>0.229</td><td>0.057</td></tr><tr><td>16</td><td>1000</td><td>1000</td><td>901</td><td>50</td><td>4k</td><td>50</td><td>0</td><td>950</td><td>4k</td><td>0</td><td>0.24</td><td>0.05</td><td>0.013</td></tr></table>
215
+
216
+ Table 4: Results for more SHAPE and THING game configurations described in Table 3. In these experiments we intentionally define sub-optimal communication parameters in order to demonstrate the usefulness of the evaluation metrics.
217
+
218
+ communication layer. For GS we use an implementation provided by the Egg framework, where we do not allow temperature to be learned, and set the straight-through estimator to False. For QT we followed parameter recommendations from Carmeli et al. (2023) and use a binary quantization in all experiments. Both GS and QT uses a recurrent neural network (RNN) for generating multiple words in a message. See Table 2 for RNN details.
219
+
220
+ The agents for the THING game use fully connected feed-forward networks with input dimension of $d = 270$ . Objects are encoded by concatenating five one-hot vectors, one per attribute. There are 50 unique values and 4 communication words (SOS, EOS, PAD, UNK), thus the total object representation length is $d = 270$ . The agents of the SHAPE game are implemented with a convolutional neural network similar to Mu and Goodman (2021). Network hyper-parameters are provided in Table 2. In the experiments, we report results when varying the communication elements (word length and message length). Experiments in Table 1 are done with 20 targets and 20 distractors, while experiments reported in Tables 3 and 4 are done with 8 targets and 8 distractors. Our main interest in this work is to evaluate the emerged communication and not to achieve the best possible performance, thus we did not conduct a thorough hyper-parameter search for the agents themselves.
221
+
222
+ We run all experiments on a single A100 GPU with 40 GB of RAM. Model size is less than 10M. We usually trained the model for 200 epochs which took about 10 hours to complete. Our code will be made publicly available upon de-anonymization.
223
+
224
+ # D Evaluating Sub-optimal Configurations
225
+
226
+ Here we provide results from experiments with several sub-optimal configurations and demonstrate how CBM identifies these deficiencies. We report configuration parameters for each experiment together with accuracy, AMI, and CBM Score in Table 3. We report all CBM metrics for these experiments in Table 4. Information from the two tables is aligned by the experiment number (first column).
227
+
228
+ Sub-optimal communication may stem from a channel that is either too wide or too narrow. Narrow channels are restricted by a small number of words and short messages. Wide channels allow long words and/or long messages. Past studies (Tucker et al., 2022) suggest that creating an information bottleneck by narrowing the channel en
229
+
230
+ ![](images/4cdf223f77a9db8d1f89800710a787e1795c10df2785c627e982062e118bd7c5.jpg)
231
+ Figure 4: Assessing CBM sensitivity to the size of the evaluation set. We show results for two randomly selected experiments. As seen, the CBM score stabilizes when assessing datasets comprising more than 500 samples.
232
+
233
+ courages generalization. As seen, CBM scores for most reported sub-optimal configurations are low. Results from experiments 1, 2, and 5 are the only ones for which the CBM score is higher than 0.2. Experiment 6 (SHAPE) achieves almost perfect accuracy (0.991) due to its wide channel. However, the paraphrase score for this experiment is 0.989 showing that the sender uses many different words to refer to the same concept. This phenomenon can also be seen by the large number of unique words (3899) generated for just 17 unique concepts. A similar phenomenon is observed for the THING game (experiment 14).
234
+
235
+ Experiment 11 (THING) uses a narrow channel. The vocabulary contains only 8 words and the channel allows one-word-long messages. This configuration resulted in 3332 concepts that do not match any word. Interestingly, the number of unmatched concepts remains high even when extending the word length to 64, in experiment 12. We attribute this sub-optimal phenomenon to GS communication deficiencies. The number of unique words generated by the sender in this experiment is only 21 out of the possible 64 words allowed by the configuration. For the SHAPE game, on the other hand, the same wide-channel configuration resulted in 44 unique words generated by the sender for the 17 concepts available in this game and all concepts have matched words.
236
+
237
+ Precision and recall. After finding the best match, precision and recall between words and concepts can be computed. We define message precision (Prc) and recall (Rcl) to be the number of matched edges in a message, divided by the number of words or concepts, respectively. Precision and recall add insights in situation where the num
238
+
239
+ ber of words in messages differs significantly from the number of concepts used for labeling the data. Experiment 5 (SHAPE) shows the highest recall, gained partially due to the long message length (four words) allowed by the channel, compared to the label length (one concept) dictated by the data. In contrast, experiment 3 (SHAPE) shows the highest precision. Indeed, this configuration restricts message the length to one word while the data dictates four-concept long phrases.
240
+
241
+ # E CBM Sensitivity to Dataset Size
242
+
243
+ We evaluated CBM scores on increased data sizes. Figure 4 shows results for two randomly selected experiments. The solid lines indicate the CBM score, computed when accumulating data samples in 100 quintets. The dashed lines indicate CBM score calculated independently for 18 successive data segments of 100 samples each. As seen, scores stabilize for evaluation sets of size larger than 500 samples. Interestingly, the 100-sample scores (dashed) lines are higher than the accumulated scores (solid lines). This is in line with our insight that low evaluation sizes result in higher match scores. Standard deviation for the 18 accumulated measures is 0.009 and 0.016, for the two experiments, respectively. Standard deviation for the 18 segmented measures is 0.044 and 0.040, for the two experiments, respectively.
2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:708515bbd4ef315af3bf82bffe149467d2589d7375cff91c16a3f5ee8e187190
3
+ size 381556
2024/Concept-Best-Matching_ Evaluating Compositionality In Emergent Communication/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Concept-aware Data Construction Improves In-context Learning of Language Models/6dcdff83-7595-4f05-befa-45bf5c5acb01_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Concept-aware Data Construction Improves In-context Learning of Language Models/6dcdff83-7595-4f05-befa-45bf5c5acb01_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Concept-aware Data Construction Improves In-context Learning of Language Models/6dcdff83-7595-4f05-befa-45bf5c5acb01_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5eeb3b0e3a2fb8419a7a82c4ae636b72cd293ef66dadb00bcb7ffe34b97c965f
3
+ size 690861
2024/Concept-aware Data Construction Improves In-context Learning of Language Models/full.md ADDED
@@ -0,0 +1,420 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Concept-aware Data Construction Improves In-context Learning of Language Models
2
+
3
+ Michal Štefánik* and Marek Kadlcik* and Petr Sojka*
4
+
5
+ *Faculty of Informatics Masaryk University, Czech Republic
6
+
7
+ # Abstract
8
+
9
+ Many recent language models (LMs) are capable of in-context learning (ICL), manifested in the LMs' ability to perform a new task solely from a natural-language instruction. Previous work curating in-context learners assumes that ICL emerges from a vast over-parametrization or the scale of multi-task training. However, recent theoretical work attributes the ICL ability to concept-dependent training data and creates functional in-context learners even in small-scale, synthetic settings.
10
+
11
+ In this work, we practically explore this newly identified axis of ICL quality. We propose Concept-aware Training (CoAT), a framework for constructing training scenarios that make it beneficial for the LM to learn to utilize the analogical reasoning concepts from demonstrations. We find that by using CoAT, pretrained transformers can learn to better utilise new latent concepts from demonstrations and that such ability makes ICL more robust to the functional deficiencies of the previous models.
12
+
13
+ Finally, we show that concept-aware in-context learners are much more effective in in-context learning a majority of unseen tasks compared to traditional instruction tuning, and fare comparably also to previous in-context learners trained in large-scale multitask learning requiring magnitudes of more training data.
14
+
15
+ # 1 Introduction
16
+
17
+ The in-context learning (ICL), as initially uncovered by Brown et al. (2020), is a setting requiring language models (LMs) to infer and apply correct functional relationships from the pairs of inputs and outputs (i.e. demonstrations) presented in user-provided input prompt (Li et al., 2023b). Given that a small set of demonstrations can be obtained for any machine learning task, in-context learning presents a much more versatile and practical alternative to training task-specific models.
18
+
19
+ ![](images/f111881172adf5df1c2ebff3d96ecf0bbcf6d4c442ee770786f2179b83809492.jpg)
20
+ Figure 1: Example of training instruction constructed from synthetic TeaBReaC dataset where demonstrations share analogical reasoning chain. In Concept-aware Training (CoAT), we construct such examples to train in-context learners to utilise latent reasoning concepts whenever available in demonstrations.
21
+
22
+ Modern in-context learners may perform ICL with quality comparable to task-specialized models (Zhao et al., 2023; Stefánik et al., 2023). However, it remains unclear why some LMs are able of ICL in such quality while others are not; Initial work introducing GPT3 (Brown et al., 2020) followed by Thoppilan et al. (2022); Chowdhery et al. (2022); inter alia explains ICL as an emergent consequence of models' scale. But more recent LMs (Sanh et al., 2022; Wang et al., 2022; Wei et al., 2021; Ouyang et al., 2022) are based on 10 to 100 times smaller models and reach comparable ICL quality, instead attributing the ICL ability to a vast volume and diversity of pre-training tasks and instructions.
23
+
24
+ On the contrary, theoretical studies uncover different determinants of ICL quality than the model or data scale, relating ICL to specific data qualities, such as the occurrence of cases that can not be explained by mere statistical co-occurrence of tokens. Notably, Xie et al. (2022) specify this as the occurrence of training exemplars that can only be resolved by identifying latent concepts, i.e. underlying functional relations that explain the correct prediction. In this and other work surveyed in Sec
25
+
26
+ tion 2, authors prove that ICL can also emerge with both small data and small models.
27
+
28
+ Our work explores the practical potential of concept-dependent data on the quality and robustness of in-context learning. In Section 3, we propose and implement a data construction framework that encourages the occurrence of concept dependencies in training data, and hence, requires models to learn to utilise latent concepts that explain these irregularities (Fig. 1). We call this framework Concept-aware Training (CoAT).
29
+
30
+ In Sections 4, we explore the impact of CoAT in controlled settings. We find that (i) it is possible to train language models for in-context learning of unseen latent concepts and (ii) that such concept-aware in-context learning is more robust to the functional deficiencies of existing in-context learners. Finally, on a set of over 70 tasks of SuperGLUE and Natural-Instructions, we find that CoAT can also improve practical in-context learning performance over traditional instruction tuning approach; in many cases, CoAT enables ICL of otherwise not learnable tasks, and with only two training tasks reaches ICL performance comparable to in-context learners of similar or larger size trained on massive collections of over 1,600 tasks.
31
+
32
+ # 2 Background
33
+
34
+ Methods for training in-context learners Incontext learning ability, including few-shot ICL, was first uncovered in GPT3 (Brown et al., 2020) trained unsupervisedly for causal language modelling. With no other substantial differences to previous GPT models, the emergence of ICL was attributed to GPT3's scale, having grown to over 170-billion parameters since GPT2 ( $\approx$ 800M params).
35
+
36
+ Not long after, a pivotal work of Schick and Schütze (2020) on a Pattern-exploiting training (PET) has shown that even much smaller (110M) models like BERT (Devlin et al., 2019) can be finetuned using self-training in a similarly small data regime, first disputing the assumption on the necessity of the scale in rapidly learning new tasks.
37
+
38
+ A line of generation models further undermined the assumption of the size conditioning of ICL. Among the first, Min et al. (2022a) fine-tune smaller models (<1B parameters) on a large mixture of tasks in the few-shot instructional format and find that such models can perform previously unseen tasks. Following approaches (Sanh et al., 2022; Wang et al., 2022) also train smaller models
39
+
40
+ for instruction following on large mixtures of tasks, assuming that the model's ability to in-context learn an unseen task emerges from a large diversity of instructions and task types. A recently popularised reinforcement learning approach of INSTRUCTGPT (Ouyang et al., 2022) also presents an adaptation of an instruction-following objective, training on mixtures of instructions with automatic feedback.
41
+
42
+ Recently, the instruction following was extended by joint training on programming code generation (Chen et al., 2021) and by Chain-of-Thought (CoT) targets (Wei et al., 2022), where the model is trained to respond with a sequence of natural-language steps deducing the answer (Zhao et al., 2023; Kadlcik et al., 2023). These extensions were empirically shown to enhance ICL ability (Fu and Khot, 2022) and were adopted by FLAN models (Chung et al., 2022).
43
+
44
+ Analyses of ICL Recent studies shed some light on the functioning of ICL in LMs through controlled experimentation, finding that the LMs' decision-making in ICL does not align with humans. Notably, Lu et al. (2022) report on the sensitivity of LMs to the specific formulation of the instructions in the prompt, while Liu et al. (2022) measures sensitivity to the ordering of in-context demonstrations. Further, we find that LMs perform ICL comparably well when the labels of the demonstrations are randomly shuffled (Min et al., 2022b) or when the presented CoT sequences do not make sense (Wang et al., 2023). We note that such behaviours differ from learning a functional relation from demonstrations that we expect from in-context learners (Li et al., 2023b) and can be exploited to lead models to incorrect predictions.
45
+
46
+ Nevertheless, other studies report that under the right conditions, LMs are able to learn functional relationships solely from the input prompt; For instance, Akyurek et al. (2023); Li et al. (2023c) show that Transformers can be trained to accurately learn regression functions solely from the prompt.
47
+
48
+ Xie et al. (2022) identify the key covariate of ICL quality in the occurrence of training examples where correct predictions are conditioned by latent concepts. Consider a pre-training example 'Albert Einstein was [MASK]'; The correct prediction for [MASK] can be resolved if the model can extract and apply a latent reasoning concept from context, such as that the context exhibits a concept of nationalities and hence, [MASK] best substitutes 'German'. Such concept dependencies occur in
49
+
50
+ ![](images/868fbb3d57b1db85ec73c3e5159e2d34f4bc0e1648fd0216f5f9dca10165a475.jpg)
51
+ Figure 2: Demonstrations selection in Concept-aware training (CoAT): From all samples of the training dataset, we first (1) filter out ones sharing a specific reasoning concept $\bigcirc$ with predicted sample $(x_{\mathrm{pred}},y_{\mathrm{pred}})$ . From this subset, we (2) iteratively pick the candidate demonstration(s) $c_{i}$ such that the trained model $\Theta$ ’s probability of generating the correct prediction $y_{\mathrm{pred}}$ if we pick $c_{i}$ among demonstrations is minimal.
52
+
53
+ language sparsely but naturally, allowing the emergence of a certain ICL quality in LMs (Wies et al., 2023). Later work attributes ICL to similar data properties labelled under the terms of statistical burstiness (Chan et al., 2022) or compositionality (Hahn and Goyal, 2023).
54
+
55
+ Our work builds upon this theory, but compared to previous studies limited to in-silico experiments, we elevate the idea of concept-aware training to real-world settings, with publicly available datasets and pre-trained language models. We are first to measure the impact of concept-aware data construction in extrinsic evaluation over 70 diverse tasks and show its potential to substantially enhance data efficiency and robustness in training in-context learners, compared to previous work using magnitudes of more data and compute.
56
+
57
+ # 3 Concept-Aware Training
58
+
59
+ Aiming to create language models able to learn a new latent reasoning concept in-context, we propose a Concept-Aware Training (CoAT) as an instruction-tuning framework specifying conditions for a selection of few-shot demonstrations for the training instructions (Figure 2).
60
+
61
+ We assume the format of training prompts widely used in the previous work training in-context few-shot learners, constructing training instructions from $k$ demonstrations consisting of the input texts $x$ with labels $y$ followed by the predicted sample's input text $x_{\mathrm{pred}}$ :
62
+
63
+ $$
64
+ [ x _ {1}, y _ {1}, \langle s e p \rangle , \dots , x _ {k}, y _ {k}, \langle s e p \rangle , x _ {\mathrm {p r e d}} ] \rightarrow y _ {\mathrm {p r e d}}
65
+ $$
66
+
67
+ In this setting, CoAT proposes to filter in-context demonstrations sequentially by two conditions.
68
+
69
+ The main condition, denoted as informativeness condition, assures to pick demonstrations exhibiting a specific reasoning concept $C$ that is shared between a picked demonstration $(x_{i},y_{i})$ and the predicted example $(x_{\mathrm{pred}},y_{\mathrm{pred}})$ , thus picking only the demonstrations whose reasoning pattern is informative for the correct prediction. Such settings make it beneficial for the trained model to learn to extract and apply concepts presented in demonstrations.
70
+
71
+ However, as the sole informativeness condition may easily pick demonstrations very similar or identical to the predicted sample, we propose a second, non-triviality condition. This condition chooses from the informative demonstrations the ones with which it is 'difficult' for the model to respond correctly. This condition avoids the occurrence of in-context demonstrations identical to the predicted sample and may also increase the heterogeneity of different concepts that co-occur among the demonstrations, avoiding the over-reliance on the presence of a small set of specific concepts in small-data settings.
72
+
73
+ We note that a body of previous work proposes better ways for picking in-context demonstrations during the inference (without updating the model) (Li et al., 2023a; Gupta et al., 2023; Luo et al., 2024). While some of these strategies are applicable in picking informative demonstrations in CoAT, note that this line of work is complementary to ours in assuming an existing in-context learner. More importantly, our motivation is substantially different; CoAT uses demonstrations of instruction training as a vehicle for creating training cases conditioned on latent concepts. This idea is not restricted to instruction tuning, but we note that instruction
74
+
75
+ tuning presents an opportunity to implement it easily.
76
+
77
+ What constitutes a concept applicable in CoAT? We broadly define the term concept as an arbitrary functional relation of input and prediction (Xie et al., 2022) that holds robustly for any sample of a given task. Hypothetically, once the model learns to model a specific concept perfectly, it will never produce a prediction that violates this concept (Stefanik and Kadlcek, 2023). In practice, attempts to clearly present useful concepts to the model can be obstructed by other covariates (Mikula et al., 2024), such as frequent predictive co-occurrences of tokens. Thus, we propose to pick CoAT's concepts among features that are unlikely to be substitutable by non-robust covariates, presenting as best candidates to be features conditioned on a deep or holistic decomposition of the input.
78
+
79
+ Note that the goal of CoAT is not to represent chosen training concepts in the model's weights explicitly but to improve the model's ability to extract and apply available concepts from demonstrations. Towards this goal, CoAT fundamentally assumes that the ability to extract and apply one concept transfers to other concepts beyond the training distribution. We verify this ability later in Section 4.4.
80
+
81
+ # 3.1 Proposed Implementation
82
+
83
+ In our experiments, we implement the proposed CoAT framework in two training stages: First, we train LM on a scalable synthetic QA dataset, which, contrary to traditional QA datasets, contains annotations of reasoning concepts. Second, we refresh the LM's ability to work with natural language prompts by further training on a QA dataset with only natural language inputs. Hence, contrary to previous work utilising massive multitask training, in total, we only use two QA datasets.
84
+
85
+ Informativeness condition We find a large collection of annotated reasoning concepts in a TeaBReaC dataset of Trivedi et al. (2022), containing more than 900 unique explanations over a large set of synthetic QA contexts. Each TeaBReaC's explanation maps a natural question to the answer span through a sequence of declarative reasoning steps, such as "select $\rightarrow$ group $\rightarrow$ project". Within CoAT, we use these explanations as the shared concepts $C$ (Fig. 1); In the training prompts, all demonstrations exhibit the same reasoning chain as the predicted sample.
86
+
87
+ To restore the model's ability to work with a natural language, in the second step, we fit the resulting model to natural inputs by further fine-tuning on AdversarialQA dataset (Bartolo et al., 2021); As the annotations of reasoning concepts in general QA datasets are scarce, in this case, we naively use the initial word of the question ("Who", "Where", ...) as the shared concept, aware that such-grouped samples are not always mutually informative.
88
+
89
+ Non-triviality condition In both training stages, we implement the non-triviality condition in the following steps. (i) We select a random subset of 20 samples that passed the informativeness condition (denoted $X_{\mathrm{info}}$ ). (ii) From $X_{\mathrm{info}}$ , we iteratively pick a sequence of $i \in 1..k$ demonstrations (with $k: 2 \leq k \leq 8$ ) as follows:
90
+
91
+ 1. For each sample $(x_{j},y_{j})\in X_{\mathrm{info}}$ , we use the training model to compute a likelihood of generating the correct prediction $y_{\mathrm{pred}}$ if a given sample $(x_{j},y_{j})$ is included among demonstrations. Whenever $y_{\mathrm{pred}}$ contains more than one token, we compute the likelihood as the average of the likelihoods of all $y_{\mathrm{pred}}$ 's tokens in the teacher-forced generation.
92
+ 2. In each step $i$ , we pick among the demonstrations a sample with which the likelihood of generating correct prediction is minimal.
93
+
94
+ An overview of this process is depicted in Figure 2, with a schematic example of a training prompt in Figure 1. Full training prompts that our implementation of CoAT constructs in training on each dataset can be found in Table 2 in the Appendix.
95
+
96
+ # 4 Experiments
97
+
98
+ Our experiments provide empirical evidence towards answering three research questions (RQs):
99
+
100
+ 1. Can we improve models' ability to benefit from new reasoning concepts in-context?
101
+ 2. Are the concept-aware in-context learners more robust to known functional artifacts?
102
+ 3. Can concept-aware in-context learning also improve performance in real-world tasks?
103
+
104
+ The first two RQs validate our assumptions on concept-aware training: that (1) the implementation of CoAT indeed improves models' utilisation of both seen and out-of-distribution concepts from demonstrations, and that (2) such an ability can
105
+
106
+ make the in-context learning of a CoAT-trained language model more robust to artefacts revealed in previous in-context learners (Wei et al., 2023). Finally, in (3), we assess whether the enhanced models' ability to rely more on latent concepts can also improve the practical quality of low-resource in-context learning.
107
+
108
+ # 4.1 Training and Evaluation
109
+
110
+ To maximise comparability with the previous work, we fine-tune our models from mT5 pre-trained models of Xue et al. (2021). In both training stages (Sec. 3.1), we fine-tune all model parameters in a teacher-forced next-token prediction until convergence of evaluation loss.* We further detail the training parameters in Appendix A.
111
+
112
+ In all experiments, we construct evaluation prompts from $k = 3$ demonstrations chosen consistently for all models, with prompts including the options for expected labels. We complement all our evaluations with confidence intervals from the bootstrapped evaluation (population $n = 100$ , repeats $r = 200$ ). We specify evaluation setup separately for each experiment (§4.4-4.6) with further details and examples in Appendix B.
113
+
114
+ # 4.2 Baselines
115
+
116
+ We assess the impact CoAT's main design choices against two baselines, allowing us to measure the impact of both its data construction conditions.
117
+
118
+ # Random demonstrations selection (TK-RANDOM)
119
+
120
+ We evaluate the impact of all CoAT's components against a baseline trained in identical settings but picking the in-context demonstrations randomly with uniform probability over the whole training set. This baseline reproduces the methodology of a majority of the referenced work on instruction tuning, including Tk-INSTRUCT (Wang et al., 2022) and FLAN (Chung et al., 2022). Apart from the demonstration selection, all other settings, including training data, remain identical ( $\S 4.1$ ) to assure comparability with CoAT models.
121
+
122
+ Demonstrations passing only informativeness condition (Tk-INFO) In this baseline, we perform ablation of CoAT's non-triviality condition (Sec. 3) by picking the demonstrations passing only the informativeness condition. Hence, such-picked demonstrations in the training instructions are informative for the prediction but can exhibit cases
123
+
124
+ where some of the demonstrations are similar or even identical to the predicted sample, making it trivial for the model to perform correct prediction. All other training settings are unchanged (§4.1).
125
+
126
+ # 4.3 Other evaluated models
127
+
128
+ We also evaluate three recent in-context learners for which we can assess which datasets were used in their training mix: (1) T0 of Sanh et al. (2022) trained on a mixture of 35 datasets of different tasks in zero-shot settings, mostly of QA type, mapped into a self-containing human-understandable interaction format; (2) Tk-Instruct of Wang et al. (2022) pre-trained in a few-shot format similar to ours, on a mixture of 1,616 diverse tasks, and (3) FLAN models of Chung et al. (2022) that further extend data settings of Tk-Instruct to a total of 1,836 tasks, including chain-of-thought labels, i.e. a step-by-step reasoning chain mapping input prompt to a label.
129
+
130
+ All these models are based on the same pretrained model (T5), making the results comparable to the level of fine-tuning methodology. TKINSTRUCT and FLAN use the data construction reproduced in our TK-RANDOM baseline, but applied in vastly larger data settings.
131
+
132
+ # 4.4 CoAT's ability to improve models utilisation of latent concepts (RQ1)
133
+
134
+ We pose that if the model can utilize a new reasoning concept $C$ from demonstrations, it will be able to improve the prediction in cases where the demonstrations use the same $C$ as the predicted sample. Thus, to evaluate if training with CoAT improves models' utilisation of concepts, we evaluate models' performance in a few-shot setting where we ensure that the demonstrations share a specific latent concept with the predicted sample. Then, we quantify models' ability to improve from the concept by computing the difference in accuracy between such concept-sharing evaluation and conventional evaluation using randomly chosen demonstrations.
135
+
136
+ We perform the first analysis on TeaBReaC with annotated reasoning chains as concepts $C$ shared between demonstrations and predicted sample (Fig. 1), but to evaluate generalization to unseen concepts, we filter out all samples with reasoning chains that were present in training. This results in 316 evaluation scenarios presenting models with 14 previously unseen reasoning patterns. In this setting, we compare the concept-improving ability of CoAT models with Tk-RANDOM baseline.
137
+
138
+ ![](images/d03af90080ece465d20182dd581520dac25fcbc249299551ec3c7610ff311223.jpg)
139
+ Figure 3: In-context learning of new concepts: Relative change of performance of models when presented with demonstrations exhibiting a reasoning concept informative for prediction. Evaluation with (left) synthetic TeaBReaC samples, and (right) diverse concepts of natural datasets (§4.4).
140
+
141
+ The important limitation of evaluation with TeaBReaC's concepts is that it remains unclear whether evaluation with synthetic samples is representative for concept learning in a natural language. Hence, we also perform this analysis with samples and concepts of natural-language tasks.
142
+
143
+ Previous work of Stefánik and Kadlécik (2023) evaluated ICL ability over four different functional concepts, all extracted from explanations of natural-language datasets. We adopt the concepts of this work and evaluate models for in-context learning of the following concepts: (i) reasoning logic of NLI samples of GLUE-Diagnostic dataset (Wang et al., 2018), (ii) entity relations annotated in human explanations (Inoue et al., 2020) in the HotpotQA dataset (Yang et al., 2018), (iii) functional operations annotated in general elementary-grade tests of OpenBookQA (Mihaylov et al., 2018), and (iv) shared facts in science exams of WorldTree dataset (Jansen et al., 2018; Xie et al., 2020). Examples of prompts with concept-sharing demonstrations for these datasets are shown in Table 3.
144
+
145
+ Identically to the case of synthetic concepts, we evaluate the ability of CoAT models to benefit from these concepts when exhibited in demonstrations and compare to uncontrolled demonstrations' selection (TK-RANDOM) used in previous work.
146
+
147
+ # Results
148
+
149
+ Concept-aware training improves the ability to benefit from unseen concepts Figure 3 evaluates models' ability to improve from presented concepts as the relative difference in performance between
150
+
151
+ random and concept-sharing demonstration selection. First, evaluation with unseen TeaBReaC concepts (left) assesses models' ability to extrapolate the utilisation of latent concepts to 14 previously unseen reasoning chains. Both CoAT and random-demonstration models ( $\S 4.2$ ) can improve from concepts presented in demonstrations. However, the improvement of CoAT-trained models is significantly larger and exceeds gains of $\mathrm{TK}$ -RANDOM by 2-fold and 4-fold with the smaller and larger model, respectively. This comparison verifies that CoAT's data construction really improves our targeted skill of better utilizing concepts of demonstrations.
152
+
153
+ CoAT applied with synthetic data also improves the use of natural concepts Evaluation of improvements on selected natural concepts (Figure 3; right) shows that concept-learning ability obtained with synthetic TeaBReaC concepts transfers to natural-language settings, as the CoAT-trained models can benefit from concepts significantly more than models trained without concept-aware data construction (TK-RANDOM).
154
+
155
+ Despite that, evaluations over the individual reasoning concepts (Figure 7 in Appendix C.3) reveal that even CoAT models can not benefit robustly from all concepts. Nevertheless, we note that in the cases where CoAT models do not improve, also none of the baselines benefit from presented concepts. This might be attributed to several reasons: (i) the presented concepts are not really informative for prediction, (ii) our training data allowed the models to memorize relevant knowledge and, hence, do not need (and benefit from) the concepts' exposition, or (iii) our training concepts were simply not sufficient to generalize over these new concepts.
156
+
157
+ # 4.5 Robustness of concept-aware in-context learners (RQ2)
158
+
159
+ As we overviewed in Section 2, other work reports functional deficiencies of previous in-context learners, including surprising insensitivity of in-context learners to the assigned demonstrations' labels (Min et al., 2022b). Wei et al. (2023) attribute this to models' over-reliance on the semantic priors obtained in pre-training, which may override learning of the functional concepts. Such behaviour is defective, because the ability to learn functional relations is necessary for robust and interpretable in-context learning of truly unseen tasks.
160
+
161
+ To evaluate the impact of concept-aware training on models' reliance on their semantic priors,
162
+
163
+ ![](images/6fe381acf9becec8e38c8f504784c4c23cbf19ab11edd225abcfcaf2b93a571a.jpg)
164
+ Figure 4: Models' reliance on semantic priors: Relative change of models' performance when we (left) replace labels with 'non-sensical' tokens with no correspondence to the semantics of the task, such as 'foo', 'bar', etc.; and (right) flip the original labels, so that e.g. 'negative' label corresponds to a positive-sentiment sample. CoAT models can in-context learn the input-output mapping similarly well with non-sensical labels and rely on the labels' semantics significantly less than previous in-context learners (in grey).
165
+
166
+ we follow the setup of Wei et al. (2023) and assess reliance on labels' semantics in a standard few-shot evaluation (§4.1), with one of the two modifications; (i) We change the labels to tokens with irrelevant meaning for the prediction task, such as 'Foo', 'Bar' etc. (ii) We shuffle the labels so that semantically incorrect labels are assigned in the demonstrations, but the input-label mapping remains consistent. In both settings, the task's functional relation can still be recovered from demonstrations, but the sole reliance on semantics will either not help or will mislead the model.
167
+
168
+ In this setting, we evaluate three model types: (i) CoAT-trained models, (ii) models with uncontrolled data construction (Tk-RANDOM & previous work), and (iii) models with uncontrolled data construction, but fine-tuned only on a natural QA dataset (denoted Tk-QA). We perform the evaluation over 8 SuperGLUE tasks with discrete labels.
169
+
170
+ Results Figure 4 shows the results. Evaluation with non-sensical labels (left) reveals that all models pre-trained on a synthetic TeaBReaC dataset (TK-RANDOM, and TK-CoAT) are more robust to the labels' semantics than our natural-language baseline (TK-QA). However, a comparison of TK-RANDOM and TK-CoAT suggests that TK-CoAT's preference for learning functional relations is a
171
+
172
+ ![](images/d97f354104c1c2935243a225342f1edb0ba840ba359193311ea8699e57238d5e.jpg)
173
+ Figure 5: Effectiveness of Concept-aware training: Natural-Instructions: Win rate of models utilising Concept-aware training (CoAT; §3) and traditional instruction tuning (TK-RANDOM; §4.2) evaluated on (top) all and (bottom) reasoning tasks of Natural-Instructions collection. Values indicate the number of tasks where the referenced model reaches significantly higher accuracy than the other. For the similar tasks, the difference in models' performance is not statistically significant.
174
+
175
+ composition of both using a synthetic dataset in pre-training and CoAT's data construction.
176
+
177
+ A comparison to previous models reveals that all multitask models experience substantially larger decay in performance than our models. We suspect this feature could be a bias specific to massive multi-task learning emerging when label semantics can explain a large portion of training data. This result is consistent with Wei et al. (2023), but contrary to their conclusions, we show that ICL robust to semantic distractions does not emerge exclusively with very large $(\geq 100\mathrm{B})$ model scale.
178
+
179
+ Nevertheless, we note that the smaller CoAT model still relies on labels' semantics when recognizable (Flipped labels; Fig. 4 right), less than previous models, but comparable to our baselines.
180
+
181
+ # 4.6 Practical effectiveness of concept-aware in-context learners (RQ3)
182
+
183
+ Finally, we assess the practical quality of concept-aware ICL on previously unseen tasks in a simulated low-resource application with only three randomly-chosen demonstrations. We evaluate on samples from two collections of tasks: (i) SuperGLUE (Wang et al., 2019) consisting of 10 tasks requiring a variety of reasoning skills, and (ii) a test split of Natural-Instructions (Wang et al., 2022) from which we pick 60 extractive tasks. For SuperGLUE tasks, we verbalize both the demonstrations and predicted sample using all available templates within PromptSource library (Bach et al., 2022) and report results for the best-performing template
184
+
185
+ <table><tr><td></td><td>AxG</td><td>Ax-b</td><td>WSC</td><td>CB</td><td>RTE</td><td>WiC</td><td>ReCoRD</td><td>BoolQ</td><td>COPA</td><td>MultiRC</td></tr><tr><td>TK-RANDOM-1B</td><td>49.4±5.2</td><td>43.6±4.8</td><td>52.7±5.1</td><td>21.8±3.9</td><td>29.3±4.6</td><td>18.0±4.0</td><td>15.3±3.8</td><td>34.0±5.0</td><td>74.7±3.4</td><td>5.1±2.4</td></tr><tr><td>TK-RANDOM-3B</td><td>50.2±5.4</td><td>57.5±4.8</td><td>52.0±5.5</td><td>47.8±5.1</td><td>48.9±4.8</td><td>50.1±4.4</td><td>16.3±7.3</td><td>62.8±4.6</td><td>75.5±2.8</td><td>2.1±1.5</td></tr><tr><td>TKINFO-1B</td><td>50.0±4.2</td><td>42.6±5.7</td><td>52.0±4.3</td><td>47.2±3.9</td><td>49.2±4.8</td><td>53.2±4.5</td><td>15.5±4.0</td><td>19.6±2.3</td><td>61.5±2.3</td><td>3.2±1.2</td></tr><tr><td>TKINFO-3B</td><td>50.8±4.6</td><td>57.2±4.9</td><td>53.5±4.8</td><td>47.3±5.4</td><td>54.7±4.9</td><td>53.6±4.7</td><td>22.6±4.5</td><td>64.4±4.8</td><td>76.3±3.0</td><td>2.7±2.1</td></tr><tr><td>TK-CoAT-1B</td><td>50.4±5.3</td><td>52.7±4.6</td><td>53.6±5.2</td><td>46.9±4.9</td><td>53.7±4.9</td><td>53.5±5.3</td><td>17.0±3.5</td><td>63.8±5.4</td><td>76.1±3.2</td><td>11.4±2.6</td></tr><tr><td>TK-CoAT-3B</td><td>57.9±4.9</td><td>57.2±4.8</td><td>53.6±4.5</td><td>60.4±4.8</td><td>52.0±5.4</td><td>56.9±5.0</td><td>23.1±3.8</td><td>63.6±4.3</td><td>81.3±3.3</td><td>56.9±3.6</td></tr></table>
186
+
187
+ Table 1: Effectiveness of concept-aware training: SuperGLUE: ROUGE-L scores of ICL models evaluated in few-shot setting on SuperGLUE tasks (Wang et al., 2019), trained using (i) random demonstrations sampling used in previous work, (ii) informative demonstrations sampling ( $\S$ 4.2) and (iii) informative+non-trivial sampling (CoAT; $\S$ 3). Underlined are the best results per each task and model size. See Table 5 for a comparison to previous models.
188
+
189
+ for each model. For Natural-Instructions tasks, we prefix the demonstrations with the instruction provided with each task. To maximise evaluation reliability over all models, we analyse the error cases and choose to report the results in ROUGE-L for SuperGLUE, and in a standard accuracy for Natural-Instructions. We specify the metrics selection analysis and other evaluation details in Appendix B, with prompt examples in Table 4.
190
+
191
+ As a primary reference point, we again compare the results of CoAT-trained models to $\mathrm{TK}$ -RANDOM, where we can make sure that all other training configurations except for the data construction method are identical. Further, we compare to $\mathrm{TK}$ -INFO (without Non-triviality condition; §4.2) to also evaluate the importance of the non-triviality condition. Finally, to provide additional context to our results, we also compare the performance of CoAT-trained models to previous in-context learners (§4.3).
192
+
193
+ Results Figure 5 compares the accuracy of CoAT-trained models to our baselines: (i) without systematic demonstrations selection (TK-RANDOM) and (ii) without the non-triviality condition (TK-INFO), over 60 tasks of NaturalInstructions collection. In comparison to TK-RANDOM, CoAT models reach significantly higher accuracy on 41 and 45 of 60 tasks, with comparable performance on a majority (13 and 14) of other tasks. The difference is further magnified on reasoning tasks, which we argue might better evaluate models' ability to in-context learn a functional relation of the new task. A comparison of TK-INFO with TK-RANDOM shows that the performance on reasoning tasks is mainly fostered by the CoAT's informativeness condition, but in a full task collection, TK-CoAT still outperforms TK-INFO in 19 out of 60 tasks. Evaluations on other task segments can be found in Appendix C.2.
194
+
195
+ In the evaluation over the tasks of SuperGLUE collection (Table 1), we additionally report the specific values of ROUGE-L that our baselines
196
+
197
+ and CoAT models achieve. With a single exception, models utilising a concept-based selection of demonstrations (Tk-CoAT and Tk-INFO) consistently reach higher scores than Tk-RANDOM. Our analyses of models' predictions reveal that in 7 out of 20 evaluations, Tk-RANDOM models fail to follow the task's instruction, consequentially responding out of valid label space. Tk-CoAT is shown to mitigate this issue in all cases except for a smaller CoAT-trained model on MultiRC. A comparison of Tk-CoAT with Tk-INFO shows that non-triviality condition is more substantial for a smaller model, but the models of both sizes benefit similarly from the concept-sharing selection of demonstrations.
198
+
199
+ Comparison to multitask learners Figure 6 contextualizes the performance of CoAT models trained on two datasets of a single (QA) task with existing instructional models trained on massive mixtures of 35-1,836 tasks. Over all the NI tasks (Fig. 6; top), CoAT models outperform multitask learners on a majority of tasks in 3 of 6 competitions. CoAT models are outperformed by FLAN models but perform at least similarly for the majority of the tasks in 5 out of 6 competitions. The evaluation on reasoning tasks (Fig. 6; middle) supports our hypothesis that CoAT particularly promotes improvements in in-context learning of new reasoning abilities, winning on reasoning tasks over FLAN and Tk-Instruct in a comparable number of cases than the opponents.
200
+
201
+ Finally, we look at a few tasks with unseen labels for both TK-INSTRUCT and FLAN models (Fig. 6; bottom) where multitask learners can not rely on shortcuts based on unseen tasks' labels. Here, the results of competition between CoAT with FLAN models turns over, with CoAT models performing significantly better on 4 out of 6 tasks. While this sole segment is not big enough for robust conclusions, the results further support our claim that
202
+
203
+ ![](images/217fdad25ee376932b73ce0413b554553900eb67f3b3eb7ccf34e4a78a69d879.jpg)
204
+
205
+ ![](images/822a18d7419bb1220241b7840768bd54db250a506ea5363642c69cf175fcf12c.jpg)
206
+
207
+ ![](images/689576d059001cf0c6f48c14616fab8871e814388bb9416891ea325ff4ab4ec2.jpg)
208
+ Figure 6: Performance comparison to previous work: Natural-Instructions collection: Win rate of CoAT models trained using two (2) tasks and previous in-context learners trained on mixtures of 35 (T0), 1,616 (Tk-Instruct) and 1,836 tasks (Tk-FLAN). Values denote the number of tasks where the model reaches significantly better accuracy. Evaluations over (top) all tasks, (middle) reasoning tasks, (bottom) tasks with labels not present in the training mix of Tk-Instruct and Tk-FLAN.
209
+
210
+ concept-based ICL is more robust to semantic distractions (RQ2).
211
+
212
+ Table 5 in Appendix C details models' scores on SuperGLUE tasks, providing further evidence on overall comparability of CoAT models to multitask learners. For instance, a comparison with Tk-Instruct reveals that CoAT's 1B and 3B models reach higher absolute scores on 3 and 5 out of the 7 Tk-Instruct's unseen tasks.
213
+
214
+ # 5 Conclusion
215
+
216
+ Inspired by data-centric theories on emergence of in-context learning, we propose and implement a Concept-aware Training framework for constructing training scenarios that challenge language models to learn to utilise latent concepts from in-context prompts. We show that language models can be trained to benefit from unseen concepts (RQ1), and that such ICL is more robust in learning functional relations of a new task from demonstrations (RQ2). Finally, in extrinsic evaluation over 70 tasks, we demonstrate the practical efficiency of concept-dependent training data, with CoAT mod
217
+
218
+ els bringing significant improvements on 41 and 45 out of 60 Natural-Instructions tasks, or 6 and 5 of 10 SuperGLUE tasks (RQ3), while reaching a performance comparable to multitask learning requiring magnitudes of more data.
219
+
220
+ More broadly, our work pioneers an alternative direction for scaling the quality of in-context learning to the previously explored model and data scale axes. We wish towards inspire future work to a more proactive approach to refining training data properties so that fitting such data necessitates the emergence of the specific, robust abilities of the models, such as the concept-learning ability.
221
+
222
+ Specifically, future work can build upon our findings in researching ways to upscale concept-dependent data in unsupervised settings, allowing for pre-training more robust language models with a fraction of data and computing budget.
223
+
224
+ # Limitations
225
+
226
+ Although our main objective is to assess the efficiency of concept-aware training, we acknowledge the limitations of our comparison to the previous work, where several aspects convolute the representative comparison of different in-context learners: (i) each of the multitask learners was trained on a different, yet massive set of tasks, making it difficult to find a broader collection that is new for multiple models; For this purpose, we surveyed three standard collections used for few-shot evaluation: CLUES (Mukherjee et al., 2021), RAFT (Alex et al., 2021) and FLEX (Bragg et al., 2021), but found in total only three tasks unseen by the multitask learners of previous work, all of the same type (classification). Therefore, in our evaluations, we use (a) Tk-Instruct's own evaluation set and (b) SuperGLUE, which significantly overlaps with the training tasks of previous work. (ii) many aspects make it "easier" for the model to improve, including the domain of labels or prompt format matching the training distribution (relevant to Tk-InSTRUCT and FLAN evaluated on Natural-Instructions).
227
+
228
+ Another aspect that we neglect in our experiments in favour of more in-depth analyses is the impact of pretraining projected into the properties of the foundation model that we use. We pick T5 as a base model to maximise comparability with previous work. While we do not identify any concrete reason to assume that CoAT would perform worse with other base models, one should note that our results do not provide any evidence in this respect.
229
+
230
+ Finally, we note that the applicability of CoAT is conditioned by the availability of the annotated concepts $C$ in the training datasets, which might be difficult to obtain for natural-language datasets. Our implementation circumvents this issue by using a synthetically curated dataset. Hence, we simultaneously show that concept-aware abilities can also be obtained in the restrictive settings of synthetic-dataset pre-training, where we note that the volume and variability of the synthetic dataset can be scaled further much easier than the natural dataset(s) (Trivedi et al., 2022). Nevertheless, our experiments do not provide any empirical evidence for answering to what extent could further extension of synthetically-generated datasets, possibly covering even more complex concepts, scale to further performance gains.
231
+
232
+ # Ethical Considerations & Broader Impact
233
+
234
+ The primary motivation of our work is to minimise the computing demands for the creation of accurate in-context learners by deepening our understanding of the covariates of the resulting quality. We believe that our presented method, as well as the future data-efficient methods improving our understanding of in-context learning, will enable the democratization of the creation of robust and accurate in-context learning models for both research and industry.
235
+
236
+ Finally, we note that data-efficient methods for training ICLs (as opposed to multitask training) might open possibilities for creating more accurate ICLs specialized to languages outside English, where training datasets are scarce. We look forward for the future work that will explore the potential of data-efficient instruction tuning specifically on the target-language datasets, creating in-context learners specially tailored for target languages outside English.
237
+
238
+ # References
239
+
240
+ Ekin Akyurek, Dale Schuurmans, Jacob Andreas, Tengyu Ma, and Denny Zhou. 2023. What learning algorithm is in-context learning? Investigations with linear models. In The Eleventh International Conference on Learning Representations.
241
+ Neel Alex, Eli Lifland, Lewis Tunstall, Abhishek Thakur, Pegah Maham, C. Jess Riedel, Emmie Hine, Carolyn Ashurst, Paul Sedille, Alexis Carlier, Michael Noetel, and Andreas Stuhlmuller. 2021. RAFT: A real-world few-shot text classification benchmark. In Thirty-fifth Conference on Neural
242
+
243
+ Information Processing Systems Datasets and Benchmarks Track (Round 2).
244
+ Stephen H. Bach, Victor Sanh, Zheng-Xin Yong, Albert Webson, Colin Raffel, Nihal V. Nayak, Abheesht Sharma, Taewoon Kim, M Saiful Bari, Thibault Fevry, Zaid Alyafeai, Manan Dey, Andrea Santilli, Zhiqing Sun, Srulik Ben-David, Canwen Xu, Gunjan Chhablani, Han Wang, Jason Alan Fries, Maged S. Al-shaibani, Shanya Sharma, Urmish Thakker, Khalid Almubarak, Xiangru Tang, Xiangru Tang, Mike Tian-Jian Jiang, and Alexander M. Rush. 2022. PromptSource: An Integrated Development Environment and Repository for Natural Language Prompts.
245
+ Max Bartolo, Tristan Thrush, Robin Jia, Sebastian Riedel, Pontus Stenetorp, and Douwe Kiela. 2021. Improving Question Answering Model Robustness with Synthetic Adversarial Data Generation. In Proceedings of the 2021 Conference EMNLP, pages 8830-8848, Online and Punta Cana, Dominican Republic. ACL.
246
+ Jonathan Bragg, Arman Cohan, Kyle Lo, and Iz Beltagy. 2021. FLEX: Unifying Evaluation for Few-Shot NLP. In Advances in Neural Information Processing Systems, volume 34, pages 15787-15800. Curran Associates, Inc.
247
+ Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language Models are Few-Shot Learners. In Advances in NIPS, volume 33, pages 1877-1901. Curran Associates, Inc.
248
+ Stephanie C.Y. Chan, Adam Santoro, Andrew Kyle Lampinen, Jane X Wang, Aaditya K Singh, Pierre Harvey Richemond, James McClelland, and Felix Hill. 2022. Data Distributional Properties Drive Emergent In-Context Learning in Transformers. In Advances in Neural Information Processing Systems.
249
+ Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N.
250
+
251
+ Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. 2021. Evaluating Large Language Models Trained on Code.
252
+ Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. 2022. PaLM: Scaling Language Modeling with Pathways.
253
+ Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen, Aakanksha Chowdhery, Alex Castro-Ros, Marie Pellat, Kevin Robinson, Dasha Valter, Sharan Narang, Gaurav Mishra, Adams Yu, Vincent Zhao, Yanping Huang, Andrew Dai, Hongkun Yu, Slav Petrov, Ed H. Chi, Jeff Dean, Jacob Devlin, Adam Roberts, Denny Zhou, Quoc V. Le, and Jason Wei. 2022. Scaling Instruction-Finetuned Language Models. arXiv e-prints, page arXiv:2210.11416.
254
+ Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. 2019. BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions. In Proceedings of the 2019 Conference of the North American Chapter of the ACL: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2924–2936, Minneapolis, Minnesota. ACL.
255
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proc. of the 2019 Conference of the NAACL: Human Language Technologies, pages 4171-4186, Minneapolis, USA. ACL.
256
+ Hao Fu, Yao; Peng and Tushar Khot. 2022. How does GPT Obtain its Ability? Tracing Emergent Abilities of Language Models to their Sources. Yao Fu's Notion.
257
+
258
+ Shivanshu Gupta, Matt Gardner, and Sameer Singh. 2023. Coverage-based Example Selection for In-Context Learning. In Findings of the ACL: EMNLP 2023, pages 13924–13950, Singapore. ACL.
259
+ Michael Hahn and Navin Goyal. 2023. A Theory of Emergent In-Context Learning as Implicit Structure Induction.
260
+ Naoya Inoue, Pontus Stenetorp, and Kentaro Inui. 2020. R4C: A benchmark for evaluating RC systems to get the right answer for the right reason. In Proceedings of the 58th Annual Meeting of the ACL, pages 6740-6750, Online. ACL.
261
+ Peter Jansen, Elizabeth Wainwright, Steven Marmorstein, and Clayton Morrison. 2018. WorldTree: A corpus of explanation graphs for elementary science questions supporting multi-hop inference. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan. European Language Resources Association (ELRA).
262
+ Marek Kadlcik, Michal Stefánik, Ondrej Sotolar, and Vlastimil Martinek. 2023. Calc-X and Calcformers: Empowering Arithmetical Chain-of-Thought through Interaction with Symbolic Systems. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 12101-12108, Singapore. ACL.
263
+ Xiaonan Li, Kai Lv, Hang Yan, Tianyang Lin, Wei Zhu, Yuan Ni, Guotong Xie, Xiaoling Wang, and Xipeng Qiu. 2023a. Unified Demonstration Retriever for In-Context Learning. In Proceedings of the 61st Annual Meeting of the ACL (Volume 1: Long Papers), pages 4644-4668, Toronto, Canada. ACL.
264
+ Yingcong Li, M. Emrullah Ildiz, Dimitris Papailiopoulos, and Samet Oymak. 2023b. Transformers as Algorithms: Generalization and Stability in In-context Learning.
265
+ Yingcong Li, Muhammed Emrullah Ildiz, Dimitris Papailopoulos, and Samet Oymak. 2023c. Transformers as Algorithms: Generalization and Stability in In-context Learning.
266
+ Chin-Yew Lin. 2004. ROUGE: A Package for Automatic Evaluation of Summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain. ACL.
267
+ Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan, Lawrence Carin, and Weizhu Chen. 2022. What Makes Good In-Context Examples for GPT-3? In Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, pages 100-114, Dublin, Ireland and Online. ACL.
268
+ Yao Lu, Max Bartolo, Alastair Moore, Sebastian Riedel, and Pontus Stenetorp. 2022. Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity. In Proceedings of the
269
+
270
+ 60th Annual Meeting of the ACL (Volume 1: Long Papers), pages 8086-8098, Dublin, Ireland. ACL.
271
+ Man Luo, Xin Xu, Yue Liu, Panupong Pasupat, and Mehran Kazemi. 2024. In-context Learning with Retrieved Demonstrations for Language Models: A Survey.
272
+ Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. 2018. Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answering. In Proceedings of the 2018 Conference EMNLP, pages 2381-2391, Brussels, Belgium. ACL.
273
+ Lukáš Mikula, Michal Štefánik, Marek Petrovic, and Petr Sojka. 2024. Think Twice: Measuring the Efficiency of Eliminating Prediction Shortcuts of Question Answering Models. In Proceedings of the 18th Conference of the European Chapter of the ACL (Volume 1: Long Papers), pages 2179-2193, St. Julian's, Malta. ACL.
274
+ Sewon Min, Mike Lewis, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2022a. MetaICL: Learning to learn in context. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2791-2809, Seattle, United States. Association for Computational Linguistics.
275
+ Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe, Mike Lewis, Hannaneh Hajishirzi, and Luke Zettlemoyer. 2022b. Rethinking the role of demonstrations: What makes in-context learning work?
276
+ Subhabrata Mukherjee, Xiaodong Liu, Guoqing Zheng, Saghar Hosseini, Hao Cheng, Greg Yang, Christopher Meek, Ahmed Hassan Awadallah, and Jianfeng Gao. 2021. Few-Shot Learning Evaluation in Natural Language Understanding. In NeurIPS 2021.
277
+ Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Proceedings of the 36th International Conference on NIPS, NIPS '22, pages 27730-27744, Red Hook, NY, USA. Curran Associates Inc.
278
+ Mohammad Taher Pilehvar and Jose Camacho-Collados. 2019. WiC: the word-in-context dataset for evaluating context-sensitive meaning representations. In Proceedings of the 2019 Conference of the North American Chapter of the ACL: Human Language Technologies, Volume 1 (Long and Short Papers), pages 1267-1273, Minneapolis, Minnesota. ACL.
279
+ 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 ACL: Human Language Technologies, New Orleans, Louisiana. ACL.
280
+
281
+ Victor Sanh, Albert Webson, Colin Raffel, Stephen Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Arun Raja, Manan Dey, M Saiful Bari, Canwen Xu, Urmish Thakker, Shanya Sharma Sharma, Eliza Szczechla, Taewoon Kim, Gunjan Chhablani, Nihal Nayak, Debajyoti Datta, Jonathan Chang, Mike Tian-Jian Jiang, Han Wang, Matteo Manica, Sheng Shen, Zheng Xin Yong, Harshit Pandey, Rachel Bawden, Thomas Wang, Trishala Neeraj, Jos Rozen, Abheesht Sharma, Andrea Santilli, Thibault Fevry, Jason Alan Fries, Ryan Teehan, Teven Le Scao, Stella Biderman, Leo Gao, Thomas Wolf, and Alexander M Rush. 2022. Multitask Prompted Training Enables Zero-Shot Task Generalization. In International Conference on Learning Representations.
282
+ Timo Schick and Hinrich Schütze. 2020. Exploiting cloze questions for few shot text classification and natural language inference.
283
+ Michal Štefánik and Marek Kadlčík. 2023. Can Incontext Learners Learn a Reasoning Concept from Demonstrations? In Proceedings of the 1st Workshop on Natural Language Reasoning and Structured Explanations (NLRSE), pages 107-115, Toronto, Canada. ACL.
284
+ Michal Štefánik, Marek Kadlčík, Piotr Gramacki, and Petr Sojka. 2023. Resources and Few-shot Learners for In-context Learning in Slavic Languages. In Proceedings of the 9th Workshop on Slavic Natural Language Processing 2023 (SlavicNLP 2023), pages 94-105, Dubrovnik, Croatia. ACL.
285
+ Michal Štefánik, Vít Novotné, Nikola Groverova, and Petr Sojka. 2022. Adaptor: Objective-Centric Adaptation Framework for Language Models. In Proceedings of the 60th Annual Meeting of the ACL: System Demonstrations, pages 261-269, Dublin, Ireland. ACL.
286
+ Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam Shazeer, Apoorv Kulshreshtha, Heng-Tze Cheng, Alicia Jin, Taylor Bos, Leslie Baker, Yu Du, YaGuang Li, Hongrae Lee, Huaixiu Steven Zheng, Amin Ghafouri, Marcelo Menegali, Yanping Huang, Maxim Krikun, Dmitry Lepikhin, James Qin, Dehao Chen, Yuanzhong Xu, Zhifeng Chen, Adam Roberts, Maarten Bosma, Vincent Zhao, Yanqi Zhou, Chung-Ching Chang, Igor Krivokon, Will Rusch, Marc Pickett, Pranesh Srinivasan, Laichee Man, Kathleen Meier-Hellstern, Meredith Ringel Morris, Tulsee Doshi, Renelito Delos Santos, Toju Duke, Johnny Soraker, Ben Zevenbergen, Vinodkumar Prabhakaran, Mark Diaz, Ben Hutchinson, Kristen Olson, Alejandra Molina, Erin Hoffman-John, Josh Lee, Lora Aroyo, Ravi Rajakumar, Alena Butryna, Matthew Lamm, Viktoriya Kuzmina, Joe Fenton, Aaron Cohen, Rachel Bernstein, Ray Kurzweil, Blaise Aguera-Arcas, Claire Cui, Marian Croak, Ed Chi, and Quoc Le. 2022. LaMDA: Language Models for Dialog Applications.
287
+
288
+ Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. 2022. Teaching Broad Reasoning Skills for Multi-Step QA by Generating Hard Contexts. In Proceedings of the 2022 Conference EMNLP, pages 6541–6566, Abu Dhabi, United Arab Emirates. ACL.
289
+ Michal Štefánik and Marek Kadlcík. 2023. Can Incontext Learners Learn a Reasoning Concept from Demonstrations? In Proceedings of the 1st Workshop on Natural Language Reasoning and Structured Explanations (NLRSE), pages 107-115, Toronto, Canada. ACL.
290
+ Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019. SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems, page 3266-3280. Curran Associates Inc., Red Hook, NY, USA.
291
+ 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 Proc. of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 353-355, Brussels, Belgium. ACL.
292
+ Boshi Wang, Sewon Min, Xiang Deng, Jiaming Shen, You Wu, Luke Zettlemoyer, and Huan Sun. 2023. Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matters. In *ICLR* 2023 Workshop on Mathematical and Empirical Understanding of Foundation Models.
293
+ Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Atharva Naik, Arjun Ashok, Arut Selvan Dhanasekaran, Anjana Arunkumar, David Stap, Eshaan Pathak, Giannis Karamanolakis, Haizhi Lai, Ishan Purohit, Ishani Mondal, Jacob Anderson, Kirby Kuznia, Krima Doshi, Kuntal Kumar Pal, Maitreya Patel, Mehrad Moradshahi, Mihir Parmar, Mirali Purohit, Neeraj Varshney, Phani Rohitha Kaza, Pulkit Verma, Ravsehaj Singh Puri, Rushang Karia, Savan Doshi, Shailaja Keyur Sampat, Siddhartha Mishra, Sujan Reddy A, Sumanta Patro, Tanay Dixit, and Xudong Shen. 2022. Super-Natural Instructions: Generalization via Declarative Instructions on 1600+ NLP Tasks. In Proceedings of the 2022 Conference EMNLP, pages 5085-5109, Abu Dhabi, United Arab Emirates. ACL.
294
+ Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V. Le. 2021. Finetuned language models are zero-shot learners.
295
+ Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian richter, Fei Xia, Ed H. Chi, Quoc V Le, and Denny Zhou. 2022. Chain of Thought Prompting Elicits Reasoning in Large Language Models. In Advances in Neural Information Processing Systems.
296
+
297
+ Jerry Wei, Jason Wei, Yi Tay, Dustin Tran, Albert Webson, Yifeng Lu, Xinyun Chen, Hanxiao Liu, Da Huang, Denny Zhou, and Tengyu Ma. 2023. Larger language models do in-context learning differently.
298
+ Noam Wies, Yoav Levine, and Amnon Shashua. 2023. The Learnability of In-Context Learning.
299
+ Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi 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 Rush. 2020. Transformers: State-of-the-Art Natural Language Processing. In Proc. of the 2020 Conf. EMNLP: System Demonstrations, pages 38-45. ACL.
300
+ Sang Michael Xie, Aditi Raghunathan, Percy Liang, and Tengyu Ma. 2022. An Explanation of In-context Learning as Implicit Bayesian Inference. In International Conference on Learning Representations.
301
+ Zhengnan Xie, Sebastian Thiem, Jaycie Martin, Elizabeth Wainwright, Steven Marmorstein, and Peter Jansen. 2020. WorldTree v2: A corpus of science-domain structured explanations and inference patterns supporting multi-hop inference. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 5456-5473, Marseille, France. European Language Resources Association.
302
+ Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, and Colin Raffel. 2021. mT5: A Massively Multilingual Pre-trained Text-to-Text Transformer. In Proceedings of the 2021 Conference of the North American Chapter of the ACL: Human Language Technologies, pages 483-498, Online. ACL.
303
+ Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. 2018. HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering. In Proceedings of the 2018 Conference EMNLP, pages 2369-2380, Brussels, Belgium. ACL.
304
+ Sheng Zhang, Xiaodong Liu, Jingjing Liu, Jianfeng Gao, Kevin Duh, and Benjamin Van Durme. 2018. ReCoRD: Bridging the Gap between Human and Machine Commonsense Reading Comprehension. arXiv e-prints, page arXiv:1810.12885.
305
+ Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen, Zhipeng Chen, Jinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu Tang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, and Ji-Rong Wen. 2023. A Survey of Large Language Models.
306
+
307
+ # A Training details
308
+
309
+ Table 2 shows a full training example for each stage of training: (1) TeaBReaC with synthetic contexts (top) and (2) AdversarialQA with natural-language contexts (bottom). In all our training setups, we fine-tune all model parameters for teacher-forced next-token prediction, conventionally used in training sequence-to-sequence language models. In the two training stages (TeaBReaC and AdversarialQA), we use a learning rate of $5e^{-5}$ and $2e^{-5}$ , respectively. Other parameters remain identical between stages: effective batch size = 30 samples and early stopping with the patience of 2,000 updates based on evaluation loss on a standardized validation set of each dataset. We do not report the absolute values of evaluation loss as these are not directly comparable. In CoAT training, we use a random subsample of 20 informative examples as a candidate set for a selection of non-trivial demonstrations.
310
+
311
+ Other parameters of training configuration default to Training Arguments of Transformers library (Wolf et al., 2020) in version 4.19.1. For readability, we implement the relatively complex demonstrations' selection as a new objective of the Adaptor library (Štefánik et al., 2022). The picked demonstrations are encoded into a format consistent with the evaluation.
312
+
313
+ # B Evaluation details
314
+
315
+ Tables 3 shows an example of an instruction for each evaluation that we perform within the concept-learning evaluation. For readability, we only shorten the examples of HotpotQA, where we omit some sources of data available for the model. In the case of TeaBReaC not shown in this table, the evaluation prompt format is the same as in training (Table 2), whereas we make sure that the reasoning chains of evaluation samples differ from the training.
316
+
317
+ SuperGLUE Evaluation format As mentioned in Section 4.1, we verbalize both the demonstrations and predicted sample using all available templates of PromptSource library (Bach et al., 2022), obtaining prompts for each demonstration prompt $x_{i}$ and its label $y_{i}$ in a free-text form. The prompts commonly contain the full-text match of the possible labels as options for the model.
318
+
319
+ Following the example of Wang et al. (2022), we additionally prepend the demonstrations and
320
+
321
+ labels with keywords "Input" and "Prediction" and separate demonstrations with new lines. Thus, the resulting input $\rightarrow$ output pairs in evaluation take this format:
322
+
323
+ "Input: $x_{1}$ Prediction: $y_{1} < \text{newline} >$ Input: $x_{2}$ Prediction: $y_{2} < \text{newline} >$ Input: $x_{3}$ Prediction: $y_{3} < \text{newline} >$ Input: $x_{pred}$ Prediction: $\mathbf{\theta}^{\prime \prime}\rightarrow \mathbf{\theta}^{\prime \prime}y_{\mathrm{pred}}$
324
+
325
+ where demonstrations $(x_{i},y_{i})$ are picked randomly but consistently between all evaluated models.
326
+
327
+ Natural-Instructions Evaluation format In the evaluations on Natural-Instructions, we closely follow the example of Wang et al. (2022) and additionally prepend the sequence of demonstrations with an instruction provided for each task:
328
+
329
+ “<task instruction> <newline>
330
+ Input: $x_{1}$ Prediction: $y_{1}$ <newline>
331
+ Input: $x_{2}$ Prediction: $y_{2}$ <newline>
332
+ Input: $x_{3}$ Prediction: $y_{3}$ <newline>
333
+ Input: $x_{pred}$ Prediction: $\rightarrow$ "ypred"
334
+
335
+ where the <task instruction> contains the instruction as would be given to the annotators of the evaluation task, usually spanning between 3-6 longer sentences. The demonstrations are again picked randomly but consistently between models.
336
+
337
+ Examples of evaluation prompts for both SuperGLUE and Natural-Instructions can be found in Table 4.
338
+
339
+ Evaluation metrics selection Previous work training in-context few-shot learners is not consistent in the use of evaluation metrics, and the choice usually boils down to either using the exact-match accuracy (Sanh et al., 2022; Chung et al., 2022) or ROUGE-L of Lin (2004) (Wang et al., 2022), evaluating the longest common sequence of tokens. We investigate these two options with the aim of not penalising the models for minor discrepancies in the output format (in the accuracy case) but avoiding false positive evaluations in predictions that are obviously incorrect (in the ROUGE case).
340
+
341
+ Investigation of the models' predictions reveals that the selection of the metric makes a large difference only in the case of Tk-Instruct models, where the situation differs between SuperGLUE and Natural-Instructions, likely due to the character of the evaluation prompts.
342
+
343
+ (1) On SuperGlue, e.g. on MultiRC task, for the evaluation prompt: "Does answer sound like a valid
344
+
345
+ <table><tr><td>Dataset</td><td>Concept</td><td>Training instruction</td><td>Target</td></tr><tr><td>TeaBReaC</td><td>Exactly-matching reasoning chain
346
+ [“select”→
347
+ “maximum”→
348
+ “list”→
349
+ “maximum”→
350
+ “sum”]</td><td>“Input: how many points did the Monte Vesuvio&quot; score in their two highest scoring matches? Context: scores of games of Pentagon&quot;. 99 scores of games of monte vesuvio&quot;. 67 scores of games of Pentagon&quot;. 6 scores of games of monte vesuvio&quot;. 76 scores of games of Pentagon&quot;. 37 scores of games of monte vesuvio&quot;. 56 scores of games of Pentagon&quot;. 8 scores of games of Pentagon&quot;. 90 scores of games of Pentagon&quot;. 20 Answer: Prediction: 143 [2 more examples] Input: how many points did the Bell 212 score in their two highest scoring games? Context: scores of games of bell 212. 90 scores of games of S-50. 54 scores of games of bell 212. 41 scores of games of bell 212. 36 scores of games of S-50. 23 scores of games of bell 212. 6 scores of games of bell 212. 2 scores of games of S-50. Prediction: ”</td><td>“131”</td></tr><tr><td>AdversarialQA</td><td>Matching question-word
351
+ “Who”</td><td>“Input: Who was the Speaker in 1909? Context: Second, Democrats have always elevated their minority floor leader to the speakship upon reclaiming majority status. Republicans have not always followed this leadership succession pattern. In 1919, for instance, Republicans bypassed James R. Mann, R-IL, who had been minority leader for eight years, and elected Frederick Gillett, R-MA, to be Speaker. Mann &quot;had angered many Republicans by objecting to their private bills on the floor,&quot; also he was a protégé of autocratic Speaker Joseph Cannon, R-IL (1903–1911), and many Members &quot;suspected that he would try to re-centralize power in his hands if elected Speaker.&quot; More recently, although Robert H. Michel was the Minority Leader in 1994 when the Republicans regained control of the House in the 1994 midterm elections, he had already announced his retirement and had little or no involvement in the campaign, including the Contract with America which was unveiled six weeks before voting day. Prediction: Joseph Cannon, R-IL. [2 more examples] Input: Who created the legal system still in use in Florida? Context: As a result of these initiatives northeastern Florida prospered economically in a way it never did under Spanish rule. Furthermore, the British governors were directed to call general assemblies as soon as possible in order to make laws for the Floridas and in the meantime they were, with the advice of councils, to establish courts. This would be the first introduction of much of the English-derived legal system which Florida still has today including trial by jury, habeas corpus and county-based government. Neither East Florida nor West Florida would send any representatives to Philadelphia to draft the Declaration of Independence. Florida would remain a Loyalist stronghold for the duration of the American Revolution. Prediction: ”</td><td>“British”</td></tr></table>
352
+
353
+ Table 2: Examples of training instructions with expected outputs, for both our datasets applied in training. Note that the shared reasoning concept is not a part of the model's input.
354
+
355
+ answer to the question: question", TK-INSTRUCT-3B in our evaluation predicts "Yes." or "Yes it is" (instead of "Yes"), or "No not at all" (instead of "No"), likely due to the resemblance with the format of training outputs. As we do not wish to penalize these cases, we use ROUGE-L over all SuperGLUE evaluations.
356
+
357
+ (2) In Natural-Instructions evaluation, we find that Tk-InStruct often predicts longer extracts from the input prompt. This is problematic with ROUGE-L in the cases where the extract contains all possible answers, such as in the Tk-InStruct1B's prediction: "yes or no" to the prompt whose instruction ends with "Please answer in the form of yes or no". As we encounter this behaviour in a large portion of Natural-Instructions tasks, we evaluate all models on Natural-Instructions for exact-match accuracy after the normalization of the casing and the removal of non-alphabetic symbols. To make sure that the model is presented with the exact-matching answer option, we exclude from evaluation the tasks where the correct answer is not presented in the task's instruction. The reference to the list of Natural-Instructions evaluation tasks can be found in Appendix C.4.
358
+
359
+ For the reported evaluations of the Reasoning tasks, we pick from the list of evaluation tasks the
360
+
361
+ ![](images/e0e7d532479e385b1f3973af687e58615cefb4fd580f78d58078d46b6d6a6651.jpg)
362
+ Figure 7: In-context learning of natural concepts for each dataset: While CoAT improves the ability to benefit from reasoning concepts on average (Fig. 3), per-concept evaluation reveals that this ability is not consistently robust.
363
+
364
+ ones concerned with the reasoning task by simply matching the tasks with 'reasoning' in their name, resulting in the collection of 20 evaluation tasks.
365
+
366
+ # C Further evaluations
367
+
368
+ # C.1 SuperGLUE evaluations of other models
369
+
370
+ Table 5 compares the performance over the tasks of SuperGLUE collection (Wang et al., 2019) for CoAT models trained on two tasks of the same (QA) type with in-context learners trained on 35-1,836 tasks of the comparable size. Despite the
371
+
372
+ <table><tr><td>Dataset</td><td>Concept</td><td>Model instruction</td><td>Expected output</td></tr><tr><td>GLUE NLI Diag.</td><td>Double negation</td><td>“Input: I will say that she stole my money. Question: I won’t say that she didn’t steal my money. True, False, or Neither? Prediction: Neither Input: I won’t say that she didn’t steal my money. Question: I will say that she stole my money. True, False, or Neither? Prediction: Neither Input: A rabbi is at this wedding, standing right there standing behind that tree. Question: It’s not the case that there is no rabbi at this wedding; he is right there standing behind that tree. True, False, or Neither? Prediction: True Input: Even after now finding out that it’s animal feed, I won’t ever stop being addicted to Flamin’ Hot Cheetos. Question: Even after now finding out that it’s animal feed, I will never stop being addicted to Flamin’ Hot Cheetos. True, False, or Neither? Prediction: ”</td><td>“True”</td></tr><tr><td>OpenBookQA</td><td>Shared facts: {&quot;Earth is greater in mass than Mars&quot;, &quot;gravity means gravitational pull; gravitational force; gravitational attraction&quot;, &quot;as the force of gravity increases, the weight of objects will increase.&quot;}</td><td>“Facts: a decrease is a kind of change. increase means more. as mass of a planet; of a celestial body increases, the force of gravity on that planet will increase. to change means to become different. an animal is a kind of living thing. the gravitational force of a planet; of a celestial object does not change the mass of an object on that planet or celestial body. an increase is the opposite of a decrease. an astronaut is a kind of human. massive means great in mass. the Mars Rover is a kind of vehicle. a living thing is a kind of object. Earth is greater in mass than Mars. gravity means gravitational pull; gravitational energy; gravitational force; gravitational attraction. greater means higher; more in value. stay the same means not changing. a moon is a kind of celestial object; body. an increase is a kind of change. Earth is a kind of planet. as the force of gravity increases, the weight of objects will increase. less is similar to decrease. Mars is a kind of planet. Input: An object has a weight of 10 kg on the surface of Earth. If the same object were transported to the surface of Mars, the object would have a weight of 3.8 kg. Which best explains why the weight of the object changed when transported from Earth to Mars? (A) The density of the object is greater on Earth than it is on Mars. (B) The volume of the object is greater on Earth than it is on Mars. (C) Gravitational force is greater on Earth than it is on Mars. (D) Atmospheric pressure is less on Earth than it is on Mars. Prediction: Gravitational force is greater on Earth than it is on Mars [two more examples] Input: When astronauts walked on the Moon, they used weighted boots to help them walk due to the lower gravitational pull. What difference between Earth and the Moon accounts for the difference in gravity? (A) density (B) diameter (C) mass (D) volume. Prediction: ”</td><td>&quot;mass”</td></tr><tr><td>HotpotQA</td><td>Shared relation in reasoning: “X is a genus”</td><td>“Input: Are Broughtonia and Laeliocattleya both orchids? Hint: use the information from the paragraphs below to answer the question. Otaara, abbreviated Otr. in the horticultural trade, is an intergeneric hybrid of orchids, with &quot;Brassavola&quot;, &quot;Broughtonia&quot;, &quot;Cattleya&quot;, &quot;Laelia&quot; and &quot;Sophronitis&quot; as parent genera. Paracaleana commonly known as duck orchids, is a genus of flowering plants in the orchid family, Orchidaceae that is found in Australia and New Zealand. Duck orchids have a single leaf and one or a few, dull-coloured, inconspicuous flowers. (...) Prediction: yes [two more examples] Input: Are both Parodia and Thalictrum flowering plants? Hint: use the information from the paragraphs below to answer the question. - Thalictrum () is a genus of 120-200 species of herbaceous perennial flowering plants in the Ranunculaceae (buttercup) family native mostly to temperate regions. Meadow-rue is a common name for plants in this genus. - Parodia is a genus of flowering plants in the cactus family Cactaceae, native to the uplands of Argentina, Peru, Bolivia, Brazil, Colombia and Uruguay. This genus has about 50 species, many of which have been transferred from &quot;Eriocactus&quot;, &quot;Notocactus&quot; and &quot;Wigginsia&quot;. They range from small globose plants to 1 m tall columnar cacti. All are deeply ribbed and spiny, with single flowers at or near the crown. Some species produce offsets at the base. They are popular in cultivation, but must be grown indoors where temperatures fall below 10 degrees. Prediction: ”</td><td>“yes”</td></tr><tr><td>WorldTree</td><td>Relation of objects: &quot;generate&quot;</td><td>“Input: Despite what some think, instead around themselves, our planet spins around...”</td><td>“the closest star from star from</td></tr></table>
373
+
374
+ Table 3: Examples of evaluation instructions with expected outputs, for each dataset used in evaluation of incontext learning of new concepts (RQ1). Note that the demonstrations within the instructions share the annotated Concept with the following predicted sample.
375
+
376
+ <table><tr><td>SuperGLUE</td><td>-</td><td>“Input: The soldiers were concealed in the brush. Select the most plausible cause: - They were armed with rifles. - They wore camouflage uniforms. Prediction: They wore camouflage uniforms. Input: The print on the brochure was tiny. Select the most plausible effect: - The man put his glasses on. - The man retrieved a pen from his pocket. Prediction: The man put his glasses on. Input: I excused myself from the group. Select the most plausible cause: - I turned off my phone. - My phone rang. Prediction: My phone rang. Input: My body cast a shadow over the grass. Select the most plausible cause: - The sun was rising. - The grass was cut. Prediction:”</td><td>“The sun was rising.”</td></tr><tr><td>Natural-Instructions</td><td>-</td><td>“Indicate with ‘Yes’ if the given question involves the provided reasoning ‘Category’. Indicate with ‘No’, “Yes” otherwise. We define five categories of temporal reasoning. First: “event duration” which is defined as the understanding of how long events last. For example, “brushing teeth”, usually takes few minutes. Second: “transient v. stationary” events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence “he was born in the U.S.” contains a stationary event since it will last forever; however, “he is hungry” contains a transient event since it will remain true for a short period of time. Third: “event ordering” which is the understanding of how events are usually ordered in nature. For example, “earning money” usually comes before “spending money”. The fourth one is “absolute timepoint”. This category deals with the understanding of when events usually happen. For example, “going to school” usually happens during the day (not at 2 A.M). The last category is “frequency” which refers to how often an event is likely to be repeated. For example, “taking showers” typically occurs 5 times a week, “going to Saturday market” usually happens every few weeks/months, etc. Input: Sentence: Jack played basketball after school, after which he was very tired. Question: How long did Jack play basketball? Category: Event Duration. Prediction: Yes Input: Sentence: He was born in China, so he went to the Embassy to apply for a U.S. Visa. Question: How often does he apply a Visa? Category: Frequency. Prediction: Yes Input: Sentence: Jack played basketball after school, after which he was very tired. Question: Was Jack still tired the next day? Category: Event Duration. Prediction: No Input: Sentence: It refers to a woman who is dangerously attractive, and lures men to their downfall with her sexual attractiveness. Question: How long does it take to lure men to their downfall? Category: Event Duration. Prediction:”</td><td></td></tr></table>
377
+
378
+ Table 4: Examples of evaluation instructions with expected outputs, for selected tasks of SuperGLUE and Natural-Instructions (RQ3). Displayed samples are from CoPA and MCTato Temporal Reasoning tasks, respectively. Note that in these evaluations, demonstrations are picked randomly, regardless of their concepts.
379
+
380
+ significantly smaller volumes and complexity of the training dataset, CoAT-trained models show competitive results to similar-size or even larger in-context learners of previous work. For instance, the 1-billion-parameter Tk-CoAT performs better than the 3-billion T0 in 3 cases (Ax-b, RTE, COPA) and comparably in another 3 cases (WSC, CB, WiC). In comparison with Tk-INSTRUCT of the same size, Tk-CoAT-1B outperforms Tk-INSTRUCT in 3 out of 7 unseen tasks (WSC, CB, ReCoRD), and reaches similar scores in most other cases, even in 2 out of 3 tasks that were included in Tk-INSTRUCT's training mix. Similarly, larger Tk-CoAT-3B outperforms Tk-INSTRUCT on 4 of 7 new tasks (Ax-b, WSC, WiC, ReCoRD), but with larger gaps on the others.
381
+
382
+ # C.2 Natural-Instructions: other task types
383
+
384
+ Figure 8 evaluates the impact of CoAT's mechanism on the quality of in-context learning separately on the English and non-English tasks. The figure reveals that CoAT works particularly well for non-English tasks. Our analyses found this is mainly due to the low performance of the baseline on the non-English tasks. We speculate that this can be a consequence of the higher reliance of the
385
+
386
+ baseline on token semantics (Section 4.6, RQ2); As our models are fine-tuned on an English-only QA model, such learnt reliance is not applicable in multilingual settings.
387
+
388
+ Figure 9 compares the performance of CoAT models against the models of previous work, separately on the English and non-English tasks. We can see that CoAT is slightly better at the multilingual portion of Natural-Instructions, but the difference is not principal.
389
+
390
+ # C.3 Per-concept evaluations
391
+
392
+ Figure 7 evaluates the performance gains of the baseline models (§4.2) and CoAT-trained models individually per each of the concepts of the natural datasets. While the CoAT models are able to benefit from concepts the largest in the relative change of quality, they are also not consistent in the ability to benefit from all the concepts. However, as discussed in Section 4.4, this does not imply that CoAT is unable to utilize these concepts.
393
+
394
+ # C.4 Evaluation tasks and other configurations
395
+
396
+ SuperGLUE (Wang et al., 2019) consists of the following tasks (as ordered in our Results, §4.6): Winogender Schema Diagnostics (AxG) (Rudinger
397
+
398
+ <table><tr><td></td><td># train tasks</td><td>AxG</td><td>Ax-b</td><td>WSC</td><td>CB</td><td>RTE</td><td>WiC</td><td>ReCoRD</td><td>BoolQ</td><td>COPA</td><td>MultiRC</td></tr><tr><td>FLAN-1B</td><td>1,836</td><td>84.8±3.9</td><td>21.9±4.0</td><td>70.7±4.8</td><td>92.5±2.8*</td><td>92.1±3.0*</td><td>69.9±5.1*</td><td>38.9±5.2*</td><td>92.3±2.7*</td><td>97.8±1.5*</td><td>88.3±3.2*</td></tr><tr><td>FLAN-3B</td><td>1,836</td><td>95.3±3.7</td><td>22.0±8.0</td><td>80.2±9.2</td><td>92.7±6.7*</td><td>96.0±4.0*</td><td>79.7±8.3*</td><td>62.2±9.7*</td><td>92.1±5.1*</td><td>99.3±1.6*</td><td>90.4±6.4*</td></tr><tr><td>TK-INSTRUCT-1B</td><td>1,616</td><td>51.9±4.9</td><td>57.2±5.8</td><td>49.8±4.9</td><td>46.0±5.5</td><td>55.5±4.8</td><td>53.5±5.3</td><td>13.1±3.7</td><td>63.4±3.4*</td><td>76.9±3.2*</td><td>62.2±5.1*</td></tr><tr><td>TK-INSTRUCT-3B</td><td>1,616</td><td>53.5±4.7</td><td>49.9±4.9</td><td>51.2±4.9</td><td>66.3±4.6</td><td>62.7±4.6</td><td>50.4±4.8</td><td>18.6±4.2</td><td>68.8±4.4*</td><td>73.8±3.5*</td><td>59.9±4.9*</td></tr><tr><td>T0-3B</td><td>35</td><td>65.0±4.5</td><td>36.1±4.6</td><td>53.5±5.2</td><td>48.0±5.4</td><td>51.3±5.2</td><td>54.0±5.0</td><td>20.5±4.0</td><td>60.1±4.9</td><td>56.8±3.6</td><td>56.2±4.4</td></tr><tr><td>TK-CoAT-1B</td><td>2</td><td>50.4±5.3</td><td>52.7±4.6</td><td>53.6±5.2</td><td>46.9±4.9</td><td>53.7±4.9</td><td>53.5±5.3</td><td>17.0±3.5</td><td>63.8±5.4</td><td>76.1±3.2</td><td>11.4±2.6</td></tr><tr><td>TK-CoAT-3B</td><td>2</td><td>57.9±4.9</td><td>57.2±4.8</td><td>53.6±4.5</td><td>60.4±4.8</td><td>52.0±5.4</td><td>56.9±5.0</td><td>23.1±3.8</td><td>63.6±4.3</td><td>81.3±3.3</td><td>56.9±3.6</td></tr></table>
399
+
400
+ Table 5: ICL performance: comparison to previous ICL models ROUGE-L of CoAT-trained ICL models and models of comparable size in previous work. Evaluation setup is consistent with Table 1. In cases marked with *, the task was used in the model's training; Underlined are the best results per unseen task and model size.
401
+
402
+ ![](images/54c9eaec815aa3d5492b03da2569c7dceddc8a8964db29a2acbf6d06f7a75b00.jpg)
403
+ Figure 8: Impact of Concept-aware training per different language settings: Pairwise comparison of models trained using selected training configurations ( $\S 4.2$ ) on (top) Non-English tasks and (bottom) English-only tasks of Natural-Instructions collection. Values in green and red bars indicate a number of tasks where the referenced model reaches significantly higher accuracy than the other. For the tasks denoted as similar, the difference in performance falls within the evaluation's confidence intervals.
404
+
405
+ et al., 2018), Broadcoverage Diagnostics (CB), The Winograd Schema Challenge, CommitmentBank (CB), Recognizing Textual Entailment (RTE), ContextWords in Context (WiC) (Pilehvar and Camacho-Collados, 2019), Reading Comprehension with Commonsense Reasoning (ReCoRD) (Zhang et al., 2018), BoolQ (Clark et al., 2019), Choice of Plausible Alternatives (COPA), Multi-Sentence Reading Comprehension (MultiRC).
406
+
407
+ Natural-Instructions consists of a larger mixture of tasks, which we do not enumerate here to maintain readability; the full list of evaluation tasks can be found in the original work of Wang et al. (2022) in Figures 11 and 12.
408
+
409
+ To maintain comparability of evaluations among models, we deterministically fix the demonstration selection procedure so that only the full prediction prompts for all the models are the same. In the analyses comparing the differences in performance
410
+
411
+ ![](images/0253f6049c35103e46365ae97cf8825bb3f7c3cf01d00aa202fa3168fd638ffc.jpg)
412
+
413
+ ![](images/5a436fd3e19d8940612c070722941a99dda9b2aa16b8b6543cd0675e975118bf.jpg)
414
+ Figure 9: Comparison to previous work per different language settings: Pairwise comparison of CoAT models vs. the models of previous work on (top) Non-English tasks and (bottom) English-only tasks of Natural-Instructions collection. Values denote the number of tasks where the model reaches significantly better accuracy. For the tasks denoted as similar, the difference in performance falls within the evaluation's confidence intervals.
415
+
416
+ $(\S 4.4; \mathrm{RQ1} + 2)$ , we fixed the prediction samples $(x_{\mathrm{pred}})$ between different demonstrations' sampling strategies to avoid perplexing our comparison with possible data selection biases. Further details can be found in the referenced implementation.
417
+
418
+ # D Computational Requirements
419
+
420
+ We run both training and evaluation experiments on a machine with dedicated single NVIDIA A100-SXM-80GB, 40 GB of RAM and a single CPU core. Hence, all our reproduction scripts can run on this or a similar configuration. Two stages of training in total take at most 6,600 updates and at most $117\mathrm{h}$ of training for Tk-CoAT to converge.
2024/Concept-aware Data Construction Improves In-context Learning of Language Models/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c06b44666374cf0211b7a3d5ed9b5d9a1fef7150cb4bffa5888740a6807d4247
3
+ size 1328200
2024/Concept-aware Data Construction Improves In-context Learning of Language Models/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/ConceptMath_ A Bilingual Concept-wise Benchmark for Measuring Mathematical Reasoning of Large Language Models/f41f5146-d293-4f16-b60f-2fdf8b7e23fe_content_list.json ADDED
The diff for this file is too large to render. See raw diff