Add Batch bb854e6c-ec8c-4079-844d-f5f6ccbc61f9 data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/4933ce75-2f8b-4d94-99a0-a97b4270db9a_content_list.json +0 -0
- 2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/4933ce75-2f8b-4d94-99a0-a97b4270db9a_model.json +0 -0
- 2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/4933ce75-2f8b-4d94-99a0-a97b4270db9a_origin.pdf +3 -0
- 2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/full.md +1023 -0
- 2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/images.zip +3 -0
- 2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/layout.json +0 -0
- 2024/Tree of Problems_ Improving structured problem solving with compositionality/418dcc40-3e0e-4ed6-aa5d-caf94c578b26_content_list.json +0 -0
- 2024/Tree of Problems_ Improving structured problem solving with compositionality/418dcc40-3e0e-4ed6-aa5d-caf94c578b26_model.json +0 -0
- 2024/Tree of Problems_ Improving structured problem solving with compositionality/418dcc40-3e0e-4ed6-aa5d-caf94c578b26_origin.pdf +3 -0
- 2024/Tree of Problems_ Improving structured problem solving with compositionality/full.md +466 -0
- 2024/Tree of Problems_ Improving structured problem solving with compositionality/images.zip +3 -0
- 2024/Tree of Problems_ Improving structured problem solving with compositionality/layout.json +0 -0
- 2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/2bfc46f7-f4ed-4d88-9bf5-1ead6a8c1d52_content_list.json +2514 -0
- 2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/2bfc46f7-f4ed-4d88-9bf5-1ead6a8c1d52_model.json +0 -0
- 2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/2bfc46f7-f4ed-4d88-9bf5-1ead6a8c1d52_origin.pdf +3 -0
- 2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/full.md +493 -0
- 2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/images.zip +3 -0
- 2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/layout.json +0 -0
- 2024/TroL_ Traversal of Layers for Large Language and Vision Models/d3959391-dc37-4afa-81df-706ce45ce8e9_content_list.json +0 -0
- 2024/TroL_ Traversal of Layers for Large Language and Vision Models/d3959391-dc37-4afa-81df-706ce45ce8e9_model.json +0 -0
- 2024/TroL_ Traversal of Layers for Large Language and Vision Models/d3959391-dc37-4afa-81df-706ce45ce8e9_origin.pdf +3 -0
- 2024/TroL_ Traversal of Layers for Large Language and Vision Models/full.md +0 -0
- 2024/TroL_ Traversal of Layers for Large Language and Vision Models/images.zip +3 -0
- 2024/TroL_ Traversal of Layers for Large Language and Vision Models/layout.json +0 -0
- 2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/78b71285-cba8-4c67-9072-33097abe467c_content_list.json +0 -0
- 2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/78b71285-cba8-4c67-9072-33097abe467c_model.json +0 -0
- 2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/78b71285-cba8-4c67-9072-33097abe467c_origin.pdf +3 -0
- 2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/full.md +367 -0
- 2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/images.zip +3 -0
- 2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/layout.json +0 -0
- 2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/75d52286-5b60-4f2d-833b-11b4a49fb28d_content_list.json +0 -0
- 2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/75d52286-5b60-4f2d-833b-11b4a49fb28d_model.json +0 -0
- 2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/75d52286-5b60-4f2d-833b-11b4a49fb28d_origin.pdf +3 -0
- 2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/full.md +632 -0
- 2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/images.zip +3 -0
- 2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/layout.json +0 -0
- 2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/1d2b554e-cf0c-46d1-9ba0-ee7589838c7b_content_list.json +0 -0
- 2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/1d2b554e-cf0c-46d1-9ba0-ee7589838c7b_model.json +0 -0
- 2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/1d2b554e-cf0c-46d1-9ba0-ee7589838c7b_origin.pdf +3 -0
- 2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/full.md +367 -0
- 2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/images.zip +3 -0
- 2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/layout.json +0 -0
- 2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/24977746-f195-40b6-ae76-06cf317c5f92_content_list.json +0 -0
- 2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/24977746-f195-40b6-ae76-06cf317c5f92_model.json +0 -0
- 2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/24977746-f195-40b6-ae76-06cf317c5f92_origin.pdf +3 -0
- 2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/full.md +538 -0
- 2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/images.zip +3 -0
- 2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/layout.json +0 -0
- 2024/UOUO_ Uncontextualized Uncommon Objects for Measuring Knowledge Horizons of Vision Language Models/3fd78e6a-da2e-45dd-83ff-a49b6a122da9_content_list.json +1350 -0
.gitattributes
CHANGED
|
@@ -5423,3 +5423,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 5423 |
2024/Training-free[[:space:]]Deep[[:space:]]Concept[[:space:]]Injection[[:space:]]Enables[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Video[[:space:]]Question[[:space:]]Answering/30bc2320-3072-42e8-b045-7ea96ee374bf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5424 |
2024/TransferTOD_[[:space:]]A[[:space:]]Generalizable[[:space:]]Chinese[[:space:]]Multi-Domain[[:space:]]Task-Oriented[[:space:]]Dialogue[[:space:]]System[[:space:]]with[[:space:]]Transfer[[:space:]]Capabilities/ac2486b2-5117-4e14-b15a-c57808d7db92_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5425 |
2024/Transformers[[:space:]]are[[:space:]]Multi-State[[:space:]]RNNs/21a138ef-7a87-4091-bbf0-b72e8fb5c9c9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5423 |
2024/Training-free[[:space:]]Deep[[:space:]]Concept[[:space:]]Injection[[:space:]]Enables[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Video[[:space:]]Question[[:space:]]Answering/30bc2320-3072-42e8-b045-7ea96ee374bf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5424 |
2024/TransferTOD_[[:space:]]A[[:space:]]Generalizable[[:space:]]Chinese[[:space:]]Multi-Domain[[:space:]]Task-Oriented[[:space:]]Dialogue[[:space:]]System[[:space:]]with[[:space:]]Transfer[[:space:]]Capabilities/ac2486b2-5117-4e14-b15a-c57808d7db92_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5425 |
2024/Transformers[[:space:]]are[[:space:]]Multi-State[[:space:]]RNNs/21a138ef-7a87-4091-bbf0-b72e8fb5c9c9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5426 |
+
2024/TraveLER_[[:space:]]A[[:space:]]Modular[[:space:]]Multi-LMM[[:space:]]Agent[[:space:]]Framework[[:space:]]for[[:space:]]Video[[:space:]]Question-Answering/4933ce75-2f8b-4d94-99a0-a97b4270db9a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5427 |
+
2024/Tree[[:space:]]of[[:space:]]Problems_[[:space:]]Improving[[:space:]]structured[[:space:]]problem[[:space:]]solving[[:space:]]with[[:space:]]compositionality/418dcc40-3e0e-4ed6-aa5d-caf94c578b26_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5428 |
+
2024/Triad_[[:space:]]A[[:space:]]Framework[[:space:]]Leveraging[[:space:]]a[[:space:]]Multi-Role[[:space:]]LLM-based[[:space:]]Agent[[:space:]]to[[:space:]]Solve[[:space:]]Knowledge[[:space:]]Base[[:space:]]Question[[:space:]]Answering/2bfc46f7-f4ed-4d88-9bf5-1ead6a8c1d52_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5429 |
+
2024/TroL_[[:space:]]Traversal[[:space:]]of[[:space:]]Layers[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]and[[:space:]]Vision[[:space:]]Models/d3959391-dc37-4afa-81df-706ce45ce8e9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5430 |
+
2024/Turn[[:space:]]Waste[[:space:]]into[[:space:]]Worth_[[:space:]]Rectifying[[:space:]]Top-k[[:space:]]Router[[:space:]]of[[:space:]]MoE/78b71285-cba8-4c67-9072-33097abe467c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5431 |
+
2024/Twists,[[:space:]]Humps,[[:space:]]and[[:space:]]Pebbles_[[:space:]]Multilingual[[:space:]]Speech[[:space:]]Recognition[[:space:]]Models[[:space:]]Exhibit[[:space:]]Gender[[:space:]]Performance[[:space:]]Gaps/75d52286-5b60-4f2d-833b-11b4a49fb28d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5432 |
+
2024/UNICORN_[[:space:]]A[[:space:]]Unified[[:space:]]Causal[[:space:]]Video-Oriented[[:space:]]Language-Modeling[[:space:]]Framework[[:space:]]for[[:space:]]Temporal[[:space:]]Video-Language[[:space:]]Tasks/1d2b554e-cf0c-46d1-9ba0-ee7589838c7b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5433 |
+
2024/UNO[[:space:]]Arena[[:space:]]for[[:space:]]Evaluating[[:space:]]Sequential[[:space:]]Decision-Making[[:space:]]Capability[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/24977746-f195-40b6-ae76-06cf317c5f92_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5434 |
+
2024/UOUO_[[:space:]]Uncontextualized[[:space:]]Uncommon[[:space:]]Objects[[:space:]]for[[:space:]]Measuring[[:space:]]Knowledge[[:space:]]Horizons[[:space:]]of[[:space:]]Vision[[:space:]]Language[[:space:]]Models/3fd78e6a-da2e-45dd-83ff-a49b6a122da9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5435 |
+
2024/Uncertainty[[:space:]]in[[:space:]]Language[[:space:]]Models_[[:space:]]Assessment[[:space:]]through[[:space:]]Rank-Calibration/d8e5286d-2bde-41fc-9990-e94616eb0d3f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5436 |
+
2024/Understanding[[:space:]]Higher-Order[[:space:]]Correlations[[:space:]]Among[[:space:]]Semantic[[:space:]]Components[[:space:]]in[[:space:]]Embeddings/ed00e30a-36cc-4a2e-875b-0dcb4f0bf780_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5437 |
+
2024/Understanding[[:space:]]Slang[[:space:]]with[[:space:]]LLMs_[[:space:]]Modelling[[:space:]]Cross-Cultural[[:space:]]Nuances[[:space:]]through[[:space:]]Paraphrasing/2cac368e-4fa1-4ae1-90e1-97e1526bf1a4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5438 |
+
2024/Understanding[[:space:]]and[[:space:]]Mitigating[[:space:]]Language[[:space:]]Confusion[[:space:]]in[[:space:]]LLMs/a17d276a-4ede-4d17-8ae9-0bb2aabfd0ba_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5439 |
+
2024/Understanding[[:space:]]“Democratization”[[:space:]]in[[:space:]]NLP[[:space:]]and[[:space:]]ML[[:space:]]Research/c89f1e1f-0e52-436d-8857-021230fe75c4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5440 |
+
2024/UniFashion_[[:space:]]A[[:space:]]Unified[[:space:]]Vision-Language[[:space:]]Model[[:space:]]for[[:space:]]Multimodal[[:space:]]Fashion[[:space:]]Retrieval[[:space:]]and[[:space:]]Generation/3e796285-bb56-451d-96bb-ccd6a0715b22_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5441 |
+
2024/UniGen_[[:space:]]Universal[[:space:]]Domain[[:space:]]Generalization[[:space:]]for[[:space:]]Sentiment[[:space:]]Classification[[:space:]]via[[:space:]]Zero-shot[[:space:]]Dataset[[:space:]]Generation/bf48bad7-34ec-4a98-b33e-bf2b09fa1389_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5442 |
+
2024/Unifying[[:space:]]Multimodal[[:space:]]Retrieval[[:space:]]via[[:space:]]Document[[:space:]]Screenshot[[:space:]]Embedding/26ce9ccc-7065-489f-9318-f1b2e02225ea_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5443 |
+
2024/Universal[[:space:]]Vulnerabilities[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]Backdoor[[:space:]]Attacks[[:space:]]for[[:space:]]In-context[[:space:]]Learning/0b7a94b2-5288-4cc1-9fe6-c38d61f1ca9a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5444 |
+
2024/Unknown[[:space:]]Claims_[[:space:]]Generation[[:space:]]of[[:space:]]Fact-Checking[[:space:]]Training[[:space:]]Examples[[:space:]]from[[:space:]]Unstructured[[:space:]]and[[:space:]]Structured[[:space:]]Data/456b11db-cffd-49db-a2e9-75d096d1ba80_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5445 |
+
2024/Unlabeled[[:space:]]Debiasing[[:space:]]in[[:space:]]Downstream[[:space:]]Tasks[[:space:]]via[[:space:]]Class-wise[[:space:]]Low[[:space:]]Variance[[:space:]]Regularization/21a44796-0af0-4b39-9dff-b7f79824f089_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5446 |
+
2024/Unleashing[[:space:]]the[[:space:]]Power[[:space:]]of[[:space:]]Emojis[[:space:]]in[[:space:]]Texts[[:space:]]via[[:space:]]Self-supervised[[:space:]]Graph[[:space:]]Pre-Training/3a3d1d25-e00c-4be7-aa6e-c18a814604b1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5447 |
+
2024/Unlocking[[:space:]]Anticipatory[[:space:]]Text[[:space:]]Generation_[[:space:]]A[[:space:]]Constrained[[:space:]]Approach[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]Decoding/37ebe6b9-99be-4117-976d-ac9494e79145_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5448 |
+
2024/Unlocking[[:space:]]Markets_[[:space:]]A[[:space:]]Multilingual[[:space:]]Benchmark[[:space:]]to[[:space:]]Cross-Market[[:space:]]Question[[:space:]]Answering/19bff1ee-9aa9-454d-8066-616391a08b9f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5449 |
+
2024/Unlocking[[:space:]]Memorization[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Dynamic[[:space:]]Soft[[:space:]]Prompting/4d23614f-8034-43fe-89f2-b8b14d1cd07c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5450 |
+
2024/Unlocking[[:space:]]the[[:space:]]Future_[[:space:]]Exploring[[:space:]]Look-Ahead[[:space:]]Planning[[:space:]]Mechanistic[[:space:]]Interpretability[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/c70e9fe9-8cc3-4232-bbdf-0acd9fe7b58a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5451 |
+
2024/Unraveling[[:space:]]Babel_[[:space:]]Exploring[[:space:]]Multilingual[[:space:]]Activation[[:space:]]Patterns[[:space:]]of[[:space:]]LLMs[[:space:]]and[[:space:]]Their[[:space:]]Applications/20faf9dd-a711-4451-a786-64a8197f3675_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5452 |
+
2024/Unsupervised[[:space:]]Discrete[[:space:]]Representations[[:space:]]of[[:space:]]American[[:space:]]Sign[[:space:]]Language/68a1b196-1fb9-4176-9817-a09f4fad1db5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5453 |
+
2024/Unsupervised[[:space:]]End-to-End[[:space:]]Task-Oriented[[:space:]]Dialogue[[:space:]]with[[:space:]]LLMs_[[:space:]]The[[:space:]]Power[[:space:]]of[[:space:]]the[[:space:]]Noisy[[:space:]]Channel/dee5a84a-0347-4d5d-a0d2-007e0b51fa63_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5454 |
+
2024/Unsupervised[[:space:]]Extraction[[:space:]]of[[:space:]]Dialogue[[:space:]]Policies[[:space:]]from[[:space:]]Conversations/28a8e11c-62f5-4e66-90d8-cbc56c121ba6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5455 |
+
2024/Unsupervised[[:space:]]Human[[:space:]]Preference[[:space:]]Learning/d65fa1bb-fb94-40be-b99b-bb60f941644f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5456 |
+
2024/Unsupervised[[:space:]]Named[[:space:]]Entity[[:space:]]Disambiguation[[:space:]]for[[:space:]]Low[[:space:]]Resource[[:space:]]Domains/736a9954-3a70-4fe0-acf8-f73180e61c06_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5457 |
+
2024/Unveiling[[:space:]]Factual[[:space:]]Recall[[:space:]]Behaviors[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]through[[:space:]]Knowledge[[:space:]]Neurons/da3898cb-a9b5-48b9-93aa-6ff653780c83_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5458 |
+
2024/Unveiling[[:space:]]In-Context[[:space:]]Learning_[[:space:]]A[[:space:]]Coordinate[[:space:]]System[[:space:]]to[[:space:]]Understand[[:space:]]Its[[:space:]]Working[[:space:]]Mechanism/65efef7c-e037-42f6-83c8-48d4d3818d34_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5459 |
+
2024/Unveiling[[:space:]]Multi-level[[:space:]]and[[:space:]]Multi-modal[[:space:]]Semantic[[:space:]]Representations[[:space:]]in[[:space:]]the[[:space:]]Human[[:space:]]Brain[[:space:]]using[[:space:]]Large[[:space:]]Language[[:space:]]Models/1b772ab9-2fd4-4015-ab91-d517630c9a55_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5460 |
+
2024/Unveiling[[:space:]]and[[:space:]]Consulting[[:space:]]Core[[:space:]]Experts[[:space:]]in[[:space:]]Retrieval-Augmented[[:space:]]MoE-based[[:space:]]LLMs/c89b18e4-3233-4a72-abfd-8c8810fda162_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5461 |
+
2024/Unveiling[[:space:]]the[[:space:]]Lexical[[:space:]]Sensitivity[[:space:]]of[[:space:]]LLMs_[[:space:]]Combinatorial[[:space:]]Optimization[[:space:]]for[[:space:]]Prompt[[:space:]]Enhancement/d288ed33-e1be-4361-9a3f-54f5d41cb86a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5462 |
+
2024/Unveiling[[:space:]]the[[:space:]]Role[[:space:]]of[[:space:]]Pretraining[[:space:]]in[[:space:]]Direct[[:space:]]Speech[[:space:]]Translation/daa1343f-7493-4883-b30d-ad4a0cbe4b54_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5463 |
+
2024/Unveiling[[:space:]]the[[:space:]]mystery[[:space:]]of[[:space:]]visual[[:space:]]attributes[[:space:]]of[[:space:]]concrete[[:space:]]and[[:space:]]abstract[[:space:]]concepts_[[:space:]]Variability,[[:space:]]nearest[[:space:]]neighbors,[[:space:]]and[[:space:]]challenging[[:space:]]categories/48bdd261-56d1-4ff8-84c9-fe0f21fa3a2c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5464 |
+
2024/Updating[[:space:]]CLIP[[:space:]]to[[:space:]]Prefer[[:space:]]Descriptions[[:space:]]Over[[:space:]]Captions/f0c647ce-69d8-4137-aa93-9d81996d6c7c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5465 |
+
2024/User[[:space:]]Inference[[:space:]]Attacks[[:space:]]on[[:space:]]Large[[:space:]]Language[[:space:]]Models/7fb0a5c7-4f58-4624-b110-c12b5db45e45_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5466 |
+
2024/Using[[:space:]]Language[[:space:]]Models[[:space:]]to[[:space:]]Disambiguate[[:space:]]Lexical[[:space:]]Choices[[:space:]]in[[:space:]]Translation/3a3c6065-7af4-4f2b-aafe-06a7a5452851_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5467 |
+
2024/VGBench_[[:space:]]Evaluating[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]on[[:space:]]Vector[[:space:]]Graphics[[:space:]]Understanding[[:space:]]and[[:space:]]Generation/98dc2bce-3483-4d81-88a7-d36e896930d3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5468 |
+
2024/VHASR_[[:space:]]A[[:space:]]Multimodal[[:space:]]Speech[[:space:]]Recognition[[:space:]]System[[:space:]]With[[:space:]]Vision[[:space:]]Hotwords/a8d1073c-00eb-4cb8-a0d7-a720f041c382_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5469 |
+
2024/VIEWS_[[:space:]]Entity-Aware[[:space:]]News[[:space:]]Video[[:space:]]Captioning/3f3ff6e8-02af-4f8f-a333-a5895b619cac_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5470 |
+
2024/VIMI_[[:space:]]Grounding[[:space:]]Video[[:space:]]Generation[[:space:]]through[[:space:]]Multi-modal[[:space:]]Instruction/f4aa2209-e928-47c4-86a7-3e032e5d4a13_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5471 |
+
2024/VIVA_[[:space:]]A[[:space:]]Benchmark[[:space:]]for[[:space:]]Vision-Grounded[[:space:]]Decision-Making[[:space:]]with[[:space:]]Human[[:space:]]Values/9ff2016e-5dd9-4d3d-8928-931410d0ee52_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5472 |
+
2024/VLEU_[[:space:]]a[[:space:]]Method[[:space:]]for[[:space:]]Automatic[[:space:]]Evaluation[[:space:]]for[[:space:]]Generalizability[[:space:]]of[[:space:]]Text-to-Image[[:space:]]Models/0e5d7611-70dd-44f5-ba72-757ecfd1362f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5473 |
+
2024/VLFeedback_[[:space:]]A[[:space:]]Large-Scale[[:space:]]AI[[:space:]]Feedback[[:space:]]Dataset[[:space:]]for[[:space:]]Large[[:space:]]Vision-Language[[:space:]]Models[[:space:]]Alignment/3dbb750c-6a3d-4753-aaa8-1820eb5ac143_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5474 |
+
2024/VPTQ_[[:space:]]Extreme[[:space:]]Low-bit[[:space:]]Vector[[:space:]]Post-Training[[:space:]]Quantization[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models/dc1b1285-bd15-42a4-8eeb-7fdd1fc54c89_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5475 |
+
2024/Varying[[:space:]]Sentence[[:space:]]Representations[[:space:]]via[[:space:]]Condition-Specified[[:space:]]Routers/94cdf4c7-5041-4b15-9e7d-472bf0be4dc6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5476 |
+
2024/Verba[[:space:]]volant,[[:space:]]scripta[[:space:]]volant_[[:space:]]Don’t[[:space:]]worry![[:space:]]There[[:space:]]are[[:space:]]computational[[:space:]]solutions[[:space:]]for[[:space:]]protoword[[:space:]]reconstruction/130c1e55-2f23-46b0-88fd-3063af812fba_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5477 |
+
2024/Verifiable,[[:space:]]Debuggable,[[:space:]]and[[:space:]]Repairable[[:space:]]Commonsense[[:space:]]Logical[[:space:]]Reasoning[[:space:]]via[[:space:]]LLM-based[[:space:]]Theory[[:space:]]Resolution/305dec4e-09b9-4585-a76a-73ac2690b3e8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5478 |
+
2024/Verification[[:space:]]and[[:space:]]Refinement[[:space:]]of[[:space:]]Natural[[:space:]]Language[[:space:]]Explanations[[:space:]]through[[:space:]]LLM-Symbolic[[:space:]]Theorem[[:space:]]Proving/c0c4dff5-2a30-47d2-ab85-f2f3c064b3ae_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5479 |
+
2024/VerifyMatch_[[:space:]]A[[:space:]]Semi-Supervised[[:space:]]Learning[[:space:]]Paradigm[[:space:]]for[[:space:]]Natural[[:space:]]Language[[:space:]]Inference[[:space:]]with[[:space:]]Confidence-Aware[[:space:]]MixUp/8b7badd7-2ce9-4772-b9f0-4930358cccd1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5480 |
+
2024/Video-LLaVA_[[:space:]]Learning[[:space:]]United[[:space:]]Visual[[:space:]]Representation[[:space:]]by[[:space:]]Alignment[[:space:]]Before[[:space:]]Projection/c90213b6-1945-4d4b-b267-39e43d584c58_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5481 |
+
2024/Video-Text[[:space:]]Prompting[[:space:]]for[[:space:]]Weakly[[:space:]]Supervised[[:space:]]Spatio-Temporal[[:space:]]Video[[:space:]]Grounding/039a8f2d-ad13-4096-8415-3b51e4f6fd77_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5482 |
+
2024/VideoCLIP-XL_[[:space:]]Advancing[[:space:]]Long[[:space:]]Description[[:space:]]Understanding[[:space:]]for[[:space:]]Video[[:space:]]CLIP[[:space:]]Models/7b1d1562-6261-47c1-bbc7-f9746261c17c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5483 |
+
2024/VideoScore_[[:space:]]Building[[:space:]]Automatic[[:space:]]Metrics[[:space:]]to[[:space:]]Simulate[[:space:]]Fine-grained[[:space:]]Human[[:space:]]Feedback[[:space:]]for[[:space:]]Video[[:space:]]Generation/7abc75a1-5df8-434d-afdd-b3eb2c40558b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5484 |
+
2024/Virtual[[:space:]]Personas[[:space:]]for[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]an[[:space:]]Anthology[[:space:]]of[[:space:]]Backstories/510458f5-561c-4e99-8259-c4b547c29fbc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5485 |
+
2024/Vision-Language[[:space:]]Model[[:space:]]Fine-Tuning[[:space:]]via[[:space:]]Simple[[:space:]]Parameter-Efficient[[:space:]]Modification/48625390-bfb2-4c3a-82f4-62af86aff7d4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5486 |
+
2024/Visual[[:space:]]Prompting[[:space:]]in[[:space:]]LLMs[[:space:]]for[[:space:]]Enhancing[[:space:]]Emotion[[:space:]]Recognition/ee83fe1d-9e45-445f-9c38-464febbe95b0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5487 |
+
2024/Visual[[:space:]]Text[[:space:]]Matters_[[:space:]]Improving[[:space:]]Text-KVQA[[:space:]]with[[:space:]]Visual[[:space:]]Text[[:space:]]Entity[[:space:]]Knowledge-aware[[:space:]]Large[[:space:]]Multimodal[[:space:]]Assistant/f1ce05bf-03aa-441a-aa86-9172ea2ec142_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5488 |
+
2024/Voices[[:space:]]Unheard_[[:space:]]NLP[[:space:]]Resources[[:space:]]and[[:space:]]Models[[:space:]]for[[:space:]]Yorùbá[[:space:]]Regional[[:space:]]Dialects/7f844077-1247-42e2-80dc-d49bf87b4b2f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5489 |
+
2024/Voices[[:space:]]in[[:space:]]a[[:space:]]Crowd_[[:space:]]Searching[[:space:]]for[[:space:]]clusters[[:space:]]of[[:space:]]unique[[:space:]]perspectives/a8cd7604-e232-4bd2-8dbf-cfb9b597ec3d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/4933ce75-2f8b-4d94-99a0-a97b4270db9a_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/4933ce75-2f8b-4d94-99a0-a97b4270db9a_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/4933ce75-2f8b-4d94-99a0-a97b4270db9a_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00991b4dfce974adcf8010237b72e6762dfdefdf3bc9a12f9a26ab92c36eaaf7
|
| 3 |
+
size 34254489
|
2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/full.md
ADDED
|
@@ -0,0 +1,1023 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TraveLER: A Modular Multi-LMM Agent Framework for Video Question-Answering
|
| 2 |
+
|
| 3 |
+
Chuyi Shang\* Amos You\* Sanjay Subramanian Trevor Darrell Roei Herzig
|
| 4 |
+
|
| 5 |
+
University of California, Berkeley
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Recently, image-based Large Multimodal Models (LMMs) have made significant progress in video question-answering (VideoQA) using a frame-wise approach by leveraging large-scale pretraining in a zero-shot manner. Nevertheless, these models need to be capable of finding relevant information, extracting it, and answering the question simultaneously. Currently, existing methods perform all of these steps in a single pass without being able to adapt if insufficient or incorrect information is collected. To overcome this, we introduce a modular multi-LMM agent framework based on several agents with different roles, instructed by a Planner agent that updates its instructions using shared feedback from the other agents. Specifically, we propose TraveLER, a method that can create a plan to "Traverse" through the video, ask questions about individual frames to "Locate" and store key information, and then "Evaluate" if there is enough information to answer the question. Finally, if there is not enough information, our method is able to "Replan" based on its collected knowledge. Through extensive experiments, we find that the proposed TraveLER approach improves performance on several VideoQA benchmarks without the need to fine-tune on specific datasets. Our code is available at https://github.com/traveler-framework/TraveLER.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Over the last few years, Large Multimodal Models (LMMs) have demonstrated tremendous progress in the area of video understanding, particularly for the video question-answering (VideoQA) domain (Fu et al., 2023; Wang et al., 2024). More recently, LMMs have been able to achieve impressive results through video-based models (Lin et al., 2023a; Sun et al., 2022; Ye et al., 2023; Li et al., 2023). However, video models require a high level
|
| 14 |
+
|
| 15 |
+
of computational complexity to fine-tune, and annotations are difficult and expensive to collect. As a result, many recent approaches (Xue et al., 2023; Yu et al., 2023; Zhang et al., 2023a) operate on the frame level, leveraging large-scale image-based pretrained models in a zero-shot manner.
|
| 16 |
+
|
| 17 |
+
Moreover, these models may need to do several tasks simultaneously in a single step. In particular, they should identify the correct events in videos by understanding what information is relevant and ignoring irrelevant information. Next, they would need to extract specific and question-relevant visual details and use them to answer the question. As such, one iteration might not be enough to collect all the necessary information. For example, many current approaches use simple captioning, which is often too general to extract specific details, or they might miss important events. In these cases, current approaches cannot revisit the video to find additional information. Decomposing this process into different components allows each component to adapt to newly collected information.
|
| 18 |
+
|
| 19 |
+
To address this, we introduce a modular multi-LMM agent framework for VideoQA. A Planner agent instructs agents in charge of different tasks, such as navigating through the video, extracting visual information through a question-answering process, and reviewing this information to select an answer. Feedback from the agents is then passed on to each other and back to the Planner, who uses the feedback to update its instructions. In this way, we can revisit the video to narrow our focus or expand our search to more relevant information and extract specific details to answer the question.
|
| 20 |
+
|
| 21 |
+
Consider the example in Figure 1. Suppose we are asked why the boy turned over in the middle of the video. In the first iteration, our method uses temporal cues from the question to skip to the middle of the video and asks questions to find the relevant frames. In the next iteration, we gather more information. Asking about what the boy is doing,
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: A simplified overview of our TravelLER framework. Our proposed framework aims to answer the question by collecting relevant information from keyframes through interactive question-asking. To accomplish this, several agents (in colored boxes) with different roles interact (left-to-right in each row) over several iterations. TravelLER creates a plan (in blue) to "traverse" (in orange) through the video, asks questions regarding individual frames (in yellow) to "locate" and store key information and, "evaluates" whether there is sufficient information to answer the question (in green), and "replans" using past collected knowledge if there is not enough information. Click on the image to see the video.
|
| 25 |
+
|
| 26 |
+
we learn that he is "standing up at the bottom of the slide" and is not looking at anything specific, which informs us that the boy is no longer "sitting down" (choice B) or "resting on the yellow object" (choice D). To eliminate these choices, we must confirm that the boy does not sit back down again by traveling to a timestamp near the end of the video. Finally, since we have collected enough information and followed the plans, we can select the right choice that the boy turns over to be on his stomach "to get down from slide" (Choice E).
|
| 27 |
+
|
| 28 |
+
Our proposed approach - Traverse, Locate, Evaluate, and Replan (TraveLER), has four main stages. First, in the Traversal stage, an agent creates a plan to answer the question. In the Location stage, an agent uses the plan to decide which timestamp of the video to select. The corresponding frames are then sent to another agent, which asks ques
|
| 29 |
+
|
| 30 |
+
tions and stores the answers in a memory bank for future iterations. Finally, in the Evaluation stage, an agent reviews all collected information and decides whether to answer or create a modified plan (Replan) to start the next iteration if necessary.
|
| 31 |
+
|
| 32 |
+
To summarize, our main contributions are: (i) We introduce TraveLER, a modular multi-LMM agent framework for video question-answering. (ii) Our method shows improved performance on multiple difficult video question-answering benchmarks, such as NExT-QA, EgoSchema, Perception Test, and STAR. (iii) Our method is easy to employ with different LLMs and LMMs, highlighting the effectiveness of our modular approach.
|
| 33 |
+
|
| 34 |
+
# 2 Related Work
|
| 35 |
+
|
| 36 |
+
Video Question-Answering. VideoQA involves answering free-form or multiple-choice questions
|
| 37 |
+
|
| 38 |
+
given an input video. Compared to image question answering, VideoQA poses unique challenges because it often requires strong temporal understanding and the ability to deal with long input sequences. Many recent works have focused on training end-to-end video-language models (Fu et al., 2023; Sun et al., 2022; Wang et al., 2024; Ye et al., 2023; Yu et al., 2022; Li et al., 2023), but doing so remains challenging due to computational constraints and difficulties in architecture scaling. As a result, many approaches adopt pretrained image models to the video domain by extracting information independently from each frame (Xue et al., 2023; Yu et al., 2023; Zhang et al., 2023a). Here, we design a framework that builds an adaptive plan to find and extract relevant information using a question-answering approach.
|
| 39 |
+
|
| 40 |
+
LMMs for Video Understanding. LMMs have been shown to be extremely useful for VideoQA. Some methods use supervised or contrastive training to perform video-LMM pretraining (Zhao et al., 2023; Yang et al., 2023; Chen et al., 2024), while others adapt existing LMMs and use instruction tuning to adapt them to the video domain (Zhang et al., 2023b; Maaz et al., 2024; Lin et al., 2023a). However, recent improvements in LMM capabilities have allowed for many strong approaches for few-shot (Alayrac et al., 2022; Wang et al., 2022) and zero-shot VideoQA (Yang et al., 2022). In particular, zero-shot methods, such as LLoVi (Zhang et al., 2023a), use pre-trained LMMs to generate captions for each frame in the video. Nevertheless, uniformly sampling frames at random may miss important visual information and focus on unimportant frames (Wu et al., 2019; Lei et al., 2021b). Recent works like SeViLA (Yu et al., 2023) addressed this problem by performing parameter-efficient finetuning using captions to identify keyframes (Lu et al., 2022; Buch et al., 2022; Qian et al., 2023), but this requires fine-tuning on specific datasets. Unlike these works, which select all keyframes in a single pass, we introduce a novel iterative and modular approach instructed by a planner.
|
| 41 |
+
|
| 42 |
+
LMM-based Agents for Videos. The strong reasoning abilities of LLMs (Brown et al., 2020; Chung et al., 2022) have made them effective in LLM-based agent approaches for videos, where an LLM performs much of the reasoning after collecting information from different modules (Chen et al., 2023; Lin et al., 2023b; Zhang et al., 2024; Zeng et al., 2023). For example, Socratic Models (Zeng et al., 2023) proposes a method to reason
|
| 43 |
+
|
| 44 |
+
about videos based on generated audio transcriptions and CLIP frame similarity scores, while other works like VideoChatCaptioner (Chen et al., 2023) proposes a way to caption videos through chat dialogues between an LLM and a LMM. Recently, there have also been works that use program generation using an LLM to answer questions (Choudhury et al., 2023; Min et al., 2024). However, these works still use a single-pass approach and provide very general captions. In contrast, our work uses an iterative question-answering process to extract specific, relevant information in the frame.
|
| 45 |
+
|
| 46 |
+
# 3 TravelER Framework
|
| 47 |
+
|
| 48 |
+
We begin by describing some background on the LLM and LMM architectures (Section 3.1), then introduce each component of our framework (Section 3.2) and implementation details (Section 3.3). Our method is shown in Figure 2.
|
| 49 |
+
|
| 50 |
+
# 3.1 Preliminaries
|
| 51 |
+
|
| 52 |
+
Large language and multimodal models. LLMs are text-conditioned generative models. Given a prompt $P$ , they encode it into a fixed language embedding $l$ in an embedding space $f(\cdot)$ and use this to produce text response $R$ : $R = f(l(P))$ . Similarly, Large Multimodal Models (LMMs) are adapted to jointly reason over vision and language. To map different modalities into the shared embedding space $f(\cdot)$ , an image $I$ is encoded using an encoder $v$ , and the prompt $P$ is encoded using a fixed language embedding $l$ . The LMM outputs a textual response $R$ : $R = f(v(I), l(P))$ .
|
| 53 |
+
|
| 54 |
+
Video question-answering. VideoQA involves viewing a video and answering questions. The model is usually evaluated through top-1 accuracy, which chooses the best answer out of a set of possible choices. Specifically, given a question $Q$ , video input $V$ consisting of a set of frames $\{I_1, \dots, I_n\}$ , and a set of choices $C = \{c_1, \dots, c_n\}$ , the model is asked to choose the best $c_i$ to answer $Q$ . Next, we introduce each component of our method.
|
| 55 |
+
|
| 56 |
+
# 3.2 TravelER Components
|
| 57 |
+
|
| 58 |
+
Traversal. In the Traversal stage, we create a plan for how to traverse through the video, which is a list of textual instructions that guide our approach to answering the question. To achieve this, we use the task prompt $P_T$ , which is an instruction to create a plan for answering the question. We combine $P_T$ with the question $Q$ , and memory bank $M$ , which
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
Figure 2: TravelER framework. Our framework consists of four different modules, the Planner, Retriever, Extractor, and Evaluator. The Planner creates a plan and sends it to the Retriever. The Retriever uses the plan to select the next timestamp and sends this to the Extractor. The Extractor captions and generates questions about the timestamp, answers the questions, and saves the output in the memory bank. Finally, the Evaluator determines if there is enough information and if the plan has been followed. If yes, the Evaluator returns the answer, else the existing information is sent back to the Planner to begin a new iteration.
|
| 62 |
+
|
| 63 |
+
is a dictionary of collected information keyed by timestamps and containing information from the corresponding frame, to receive the final prompt $P_{\mathrm{T}}^{(1)}$ : $P_{\mathrm{T}}^{(1)} = {}^{\prime \prime}[Q][M][P_T]$ .
|
| 64 |
+
|
| 65 |
+
Our method uses a memory bank $M$ to store collected information, which allows information to persist and to be updated as we proceed through different iterations. We initialize $M$ with captions of 5 evenly sampled frames throughout the video. We find that this memory initialization gives the model good context for the general idea of the video, and performs better than starting with an empty memory $M$ . After the first iteration, we add information iteratively using the Extractor module, which we discuss later in this section.
|
| 66 |
+
|
| 67 |
+
Next, we input the prompt $P_{\mathrm{T}}^{(1)}$ into $\mathrm{LLM}_{\mathrm{planner}}$ , which returns response $R_{T}$ , a step-by-step plan on how to traverse through the video and what information should be collected. This plan is revised in future iterations using collected information.
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
R _ {T} = \mathrm {L L M} _ {\text {p l a n n e r}} (l \left(P _ {\mathrm {T}} ^ {(1)}\right))
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
Our next step is to use the plan $R_{T}$ in the Locator stage to locate relevant events and extract the information that we will use to answer the question.
|
| 74 |
+
|
| 75 |
+
Locator. The Locator is a component that consists of two submodules, the Retriever and the Extractor. The Retriever selects the timestamps of the next frames to view, while the Extractor extracts relevant information from these frames using a question-answering process. Next, we discuss each component in more detail.
|
| 76 |
+
|
| 77 |
+
(i) Retriever: The Retriever carries out the given plan $R_{T}$ by selecting which frames to view next. The Retriever is an LLM-based submodule that finds the next timestamp $t$ to view, given the plan $R_{T}$ , collected information $M$ , and video metadata (frame rate, length). The task prompt $P_{R}$ is an instruction that contains information about the video length and asks which timestamp to view next. Thus, we insert the question $Q$ , the plan $R_{T}$ , and the collected information $M$ into the task prompt $P_{R}$ to create the new prompt $P_{\mathrm{R}}^{(1)}$ : $P_{\mathrm{R}}^{(1)} = [P_R][Q][R_T][M]$ .
|
| 78 |
+
|
| 79 |
+
Given prompt $P_{\mathrm{R}}^{(1)}$ , the LLM in the Retriever, $\mathrm{LLM}_{\mathrm{retriever}}$ returns $t$ , the next set of timestamps. Then, it retrieves frames $I_{t}$ at timestamp $t$
|
| 80 |
+
|
| 81 |
+
(ii) Extractor: The Extractor is important because it allows us to capture more relevant and question-specific details from the visual input, unlike using only captions. We pass the frames selected by the retriever $I_{t}$ into the Extractor submodule, which consists of two large models: $\mathrm{LLM}_{\mathrm{extractor}}$ , to generate context-dependent questions about the frames $I_{t}$ , and a different vision-language model $\mathrm{LMM}_{\mathrm{extractor}}$ , which extracts the desired information from the same frames. We note that we use both an LLM and LMM since the LLM is better at reasoning about the plan and the collected information, while the LMM is able to collect visual information requested by the LLM.
|
| 82 |
+
|
| 83 |
+
We first generate a general caption $c_t$ for frame $I_t$ using the LMMextractor. Then, we concatenate the caption $c_t$ , plan $R_T$ , and memory $M$ , and the Extractor task prompt $P_E$ , which is an instruction that asks to use available information to create 3 questions to ask about the current frame. This results in the new prompt $P_{\mathrm{E}}^{(1)}: P_{\mathrm{E}}^{(1)} = [P_E][c_t][R_T][M]$ .
|
| 84 |
+
|
| 85 |
+
Next, we input this new prompt $P_{\mathrm{E}}^{(1)}$ into the LLM to get a set of questions $\{q_1, q_2, \dots, q_n\}$ about each frame, where $n$ is a parameter for how many questions to ask about each frame.
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\left\{q _ {1}, q _ {2}, \dots , q _ {n} \right\} = \mathrm {L L M} _ {\text {e x t r a c t o r}} (l \left(P _ {\mathrm {E}} ^ {(1)}\right))
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where $l$ is the fixed language embedding.
|
| 92 |
+
|
| 93 |
+
In this way, the generated questions take into account both the plan $R_{T}$ and information from past and future frames of the video $M$ . We then use the frame $I_{t}$ , and the corresponding questions $\{q_1,q_2,\dots ,q_n\}$ as input into $\mathrm{LMM}_{\mathrm{extractor}}$ . The $\mathrm{LMM}_{\mathrm{extractor}}$ then outputs a set of answers $\{a_{1},a_{2},\dots ,a_{3}\}$ , where each answer $a_{i}$ corresponds to the question $q_{i}$ .
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\left\{a _ {1}, \dots , a _ {n} \right\} = \operatorname {L M M} _ {\text {e x t r a c t o r}} (v (I _ {t}), l (\left\{q _ {1}, \dots , q _ {n} \right\}))
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
where $v$ is the visual encoder.
|
| 100 |
+
|
| 101 |
+
Finally, to use this collected information in future iterations, we update our memory bank $M$ . To do this, we use the timestamp $t$ of $I_{t}$ as our key and the question-answer pair list as the value, and append this to our memory $M$ . If the memory bank dictionary $M$ is too long, we summarize it by using the memory bank as an input to another LLM and instruct it to make the memory bank entries more
|
| 102 |
+
|
| 103 |
+
concise, while retaining the same keys and format. This output becomes our new memory bank.
|
| 104 |
+
|
| 105 |
+
Evaluator. The Evaluator decides if there is enough information and determines if the plan has been followed. We concatenate the memory information $M$ , the plan $R_{T}$ , the question $Q$ , and the choices $C$ with the task prompt $P_{V}$ . The task prompt $P_{V}$ is an instruction to evaluate if there is enough information to answer the question and if the given plan $R_{T}$ has been fulfilled. Thus, we get the new prompt $P_{\mathrm{V}}^{(1)}: P_{\mathrm{V}}^{(1)} = [P_{\mathrm{V}}][Q][C][R_{T}][M]$ .
|
| 106 |
+
|
| 107 |
+
We use this prompt $P_{\mathrm{V}}^{(1)}$ as input into the LLM in the Evaluator, $\mathrm{LLM}_{\mathrm{evaluator}}$ , which evaluates if there is enough information to answer the question and if the plan has been completely followed. If both are true, $\mathrm{LLM}_{\mathrm{evaluator}}$ outputs the best choice $c^*$ to answer the question $Q$ . Otherwise, it provides an explanation $E$ on why there is insufficient information and gives this explanation to the Planner to start a new iteration of the process.
|
| 108 |
+
|
| 109 |
+
Re-planning. After each iteration, if the evaluator decides that there is not enough information to answer the question $Q$ or if the plan $P$ has not been completed, the existing memory $M$ will be provided to the Planner in the next iteration, in addition to an explanation $E$ for why an answer was not chosen. The Planner then outputs a new plan, restarting the process. We also set a limit on the number of iterations a question can take to prevent infinite loops. After reaching this limit, we force the Evaluator to choose the best choice.
|
| 110 |
+
|
| 111 |
+
Summarizer. The Summarizer is an optional module used for some datasets to summarize the information. It is given the question $Q$ , choices $C$ , memory bank $M$ , and task prompt $P_{S}$ , which is an instruction to summarize the information in each timestamp of the memory bank $M$ . The outputted summary is then used to replace the original memory bank $M$ . This process helps reduce the amount of information passed to the LLM in future steps, which may struggle with very long inputs.
|
| 112 |
+
|
| 113 |
+
# 3.3 Implementation Details
|
| 114 |
+
|
| 115 |
+
Here, we discuss how we implement various components of our framework. More implementation details, such as prompts and dataset-specific details are in the Supplementary in Section B.
|
| 116 |
+
|
| 117 |
+
Memory bank. We represent past collected information as a Python dictionary, with the timestamp of different frames as keys and a list of extracted
|
| 118 |
+
|
| 119 |
+
Table 1: Results on Datasets. We show zero-shot results on different datasets. For fair comparisons, we gray out methods with fine-tuned components in their model.
|
| 120 |
+
|
| 121 |
+
<table><tr><td colspan="5">(a) NExT-QA</td><td colspan="2">(b) EgoSchema (Full)</td><td colspan="2">(c) STAR</td><td colspan="2">(d) Perception Test</td></tr><tr><td>Model</td><td>Cau.</td><td>Tem.</td><td>Des.</td><td>Avg.</td><td>Model</td><td>Acc.</td><td>Model</td><td>Avg.</td><td>Model</td><td>Acc.</td></tr><tr><td>SeViLA</td><td>61.3</td><td>61.5</td><td>75.6</td><td>63.6</td><td>mPLUG-Owl</td><td>31.1</td><td>SeViLA</td><td>44.6</td><td>SeViLA</td><td>46.2</td></tr><tr><td rowspan="2">MC-ViT-L</td><td rowspan="2">-</td><td rowspan="2">-</td><td rowspan="2">-</td><td rowspan="2">65.0</td><td>InternVideo</td><td>32.1</td><td>Flamingo-9B</td><td>41.8</td><td>MC-ViT-B</td><td>47.0</td></tr><tr><td>LongViViT</td><td>33.3</td><td>InternVideo</td><td>41.6</td><td>MC-ViT-L</td><td>48.1</td></tr><tr><td>InternVideo</td><td>43.4</td><td>48.0</td><td>65.1</td><td>49.1</td><td>Vamos</td><td>48.3</td><td>BLIP-2voting</td><td>40.3</td><td>Flamingo-3B</td><td>43.6</td></tr><tr><td>ViperGPT</td><td>-</td><td>-</td><td>-</td><td>60.0</td><td>LLoVi</td><td>50.3</td><td>BLIP-2concat</td><td>42.2</td><td>LongViViT</td><td>45.7</td></tr><tr><td>ProViQ</td><td>-</td><td>-</td><td>-</td><td>63.8</td><td rowspan="2">TravelLER</td><td rowspan="2">53.3 (+3.0)</td><td rowspan="2">TravelLER</td><td rowspan="2">44.9 (+2.7)</td><td rowspan="2">TravelLER</td><td rowspan="2">50.2 (+4.5)</td></tr><tr><td>LLoVi</td><td>69.5</td><td>61.0</td><td>75.6</td><td>67.7</td></tr><tr><td>TravelLER</td><td>70.0</td><td>60.5</td><td>78.2</td><td>68.2 (+0.5)</td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 122 |
+
|
| 123 |
+
information from the frame as the values. This extracted information consists of a brief caption of the frame and a list of question-answer pairs. To prevent the memory bank from becoming too large, we also implement a summarizer module that instructs an LLM to summarize the memory bank and return a more concise version in the same dictionary format as before.
|
| 124 |
+
|
| 125 |
+
Agent model selection. Our modular approach has the benefit of allowing us to easily swap in different LLMs and LMMs (see Section 4.4). For our main experiments, we use LLaVA-1.6 (Liu et al., 2023) for $\mathrm{LMM}_{\mathrm{extractor}}$ and GPT-3.5/GPT-4 (OpenAI et al., 2023) for $\mathrm{LLM}_{\mathrm{planner}}$ , $\mathrm{LLM}_{\mathrm{retriever}}$ , $\mathrm{LLM}_{\mathrm{extractor}}$ , and $\mathrm{LLM}_{\mathrm{evaluator}}$ .
|
| 126 |
+
|
| 127 |
+
Multi-frame selection. We also allow the Retriever to select multiple frames instead of one. This helps to capture better events that happen quickly or require more context to recognize. For example, if we want to find the action of "a woman clapping her hands", a single frame selection may cause us to incorrectly assume the woman is not clapping if we view the frame where their hands are apart. We do this by creating an optional parameter called window size. The window size refers to the number of frames the Retriever extracts each time. When the window size is non-zero, the Retriever still specifies a single timestamp to go to, but when retrieving the frame at that timestamp, we also take the number of frames specified by the window size before and after the selected frame.
|
| 128 |
+
|
| 129 |
+
# 4 Evaluation
|
| 130 |
+
|
| 131 |
+
We evaluated our TraveLER framework on several benchmarks described in Section 4.1, and compared it to multiple baselines in Section 4.2. The results and ablations are in Section 4.3 and Sec
|
| 132 |
+
|
| 133 |
+
tion 4.4. Additional results and ablations are in the Supplementary in Section A.
|
| 134 |
+
|
| 135 |
+
# 4.1 Datasets
|
| 136 |
+
|
| 137 |
+
We use the following datasets: (1) NExT-QA (Xiao et al., 2021) is a dataset that tests causal action reasoning and temporal understanding. Following the trend of works before us, we evaluate our method on the 5,000 questions in the NExT-QA validation set. (2) EgoSchema (Mangalam et al., 2023) is a challenging dataset that tests long-form video understanding. Viewers need to view 100 seconds of the video on average to answer the question correctly. (3) STAR (Wu et al., 2021) tests reasoning in real-world video situations. (4) Perception Test (Patraucean et al., 2023) is a challenging dataset that focuses on skills such as memory, abstraction, physics, and semantics and is intended to be approached in a few-shot or zero-shot manner.
|
| 138 |
+
|
| 139 |
+
# 4.2 Baselines
|
| 140 |
+
|
| 141 |
+
In our experiments, we compare our method to recent state-of-the-art zero-shot (ZS) methods, such as LLoVi (Zhang et al., 2023a), ProViQ (Choudhury et al., 2023), and other methods that are not necessarily ZS, such as SeViLA (Yu et al., 2023), and MC-ViT (Balazevic et al., 2024). We note that SeViLA uses fine-tuned components on QVHighlights (Lei et al., 2021a), while MC-ViT is fine-tuned on NExT-QA for Perception Test. Additional baselines are in Supplementary in Section A.2.
|
| 142 |
+
|
| 143 |
+
# 4.3 Results
|
| 144 |
+
|
| 145 |
+
Our results are shown in Table 1. We use GPT-4 for NExT-QA to ensure a fair comparison with LLoVi, which is the current state-of-the-art that uses GPT-4 to uniformly caption frames across the entire video. Interestingly, our method outperforms
|
| 146 |
+
|
| 147 |
+
LLoVi despite viewing $50\%$ fewer frames on average. Second, we also outperform SeViLA by $+4.6\%$ , although SeViLA uses a keyframe selector that is fine-tuned on a video moment retrieval and grounding task while our method is fully ZS.
|
| 148 |
+
|
| 149 |
+
For EgoSchema, we use GPT-4 with a retrained version of LaViLa that excludes overlapping Ego4D and EgoSchema videos to prevent data leakage. We show strong performance on long-form videos, where we outperform LLoVi by $+3.0\%$ , while viewing $95\%$ fewer clips on average.
|
| 150 |
+
|
| 151 |
+
We use GPT-3.5 for Perception Test and STAR because it is cheaper than GPT-4, but results are likely to be improved even further with GPT-4. Nevertheless, we achieve higher accuracy than LongViViT on Perception Test by $+4.5\%$ and MCViT by $+2.1\%$ , although it was fine-tuned on NExTQA. We surpass both the best zero-shot approach by $+2.7\%$ and the best fine-tuned result by $+0.3\%$ .
|
| 152 |
+
|
| 153 |
+
Finally, please refer to Section A for more experimental and ablation results, and Section D for additional visualizations. For example, in Figure 8, we see that question-answering is able to extract more relevant details in comparison to simple captioning. This may explain why our method significantly outperforms the descriptive split of NExT-QA. In Figure 7, we see our method is able to reason about vague references and correctly identify relevant objects through question-answering.
|
| 154 |
+
|
| 155 |
+
# 4.4 Agent Ablations
|
| 156 |
+
|
| 157 |
+
We perform ablations using 1000 randomly selected questions from the NExT-QA training set (see Table 2). Unless specified, we use GPT-3.5/LLaVA-1.6 as the LLM/LMM for all agents.
|
| 158 |
+
|
| 159 |
+
Ablating the Planner. The Planner module outputs a plan, a list of instructions that guides the behavior of all other modules. We test the impact of removing it from our framework and find that it is worse. We hypothesize this is because the Planner provides many temporal cues that guide the Retriever module's search, such as "go to the middle of the video", and without these cues, the Retriever is not as good at selecting the next timestamp. Moreover, the Planner also helps the Evaluator better decide when to stop since in our iterative approach, the Evaluator uses the plan to determine when to stop. We also try removing re-planning by only running the Planner once in the beginning and keeping this plan fixed throughout. We find that this also reduces performance, showing the importance of adjusting plans to new information.
|
| 160 |
+
|
| 161 |
+
Table 2: Ablations on the agents in our framework.
|
| 162 |
+
|
| 163 |
+
<table><tr><td>Agent</td><td>Ablation</td><td>Avg. (%)</td></tr><tr><td>——</td><td>Baseline</td><td>60.4</td></tr><tr><td rowspan="2">Planner</td><td>Removal</td><td>58.1</td></tr><tr><td>Fixed Plan</td><td>58.1</td></tr><tr><td>Retriever</td><td>Removal</td><td>56.9</td></tr><tr><td>Extractor</td><td>Caption Only</td><td>58.2</td></tr><tr><td>Evaluator</td><td>No Iteration</td><td>56.8</td></tr><tr><td>Summarizer</td><td>Removal</td><td>57.2</td></tr></table>
|
| 164 |
+
|
| 165 |
+
Ablating the Retriever. The Retriever module determines the next timestamps to view, which helps focus our information collection. We ablate it by uniformly sampling frames from the video at 2-second intervals, similar to other methods like LLoVi, which performs worse. We believe this is because the Retriever allows us to capture frames that might have otherwise been skipped through uniform sampling and selects fewer unimportant frames that might mislead the model.
|
| 166 |
+
|
| 167 |
+
Ablating the Extractor. Question asking is important as it allows us to capture more fine-grained and question-relevant information compared to simple caption generation, which produces a generic description. Thus, we ablate the Extractor by only allowing the LMM to caption frames. We find that this decreases performance by $-2.2\%$ , suggesting that the ability to ask specific questions about a frame is important. We notice many generated captions capture the main idea of visual information in the frame, but are lacking in fine-grained details.
|
| 168 |
+
|
| 169 |
+
Ablating the Evaluator. The Evaluator reflects on the collected information and decides if there is enough information to answer the question. To examine the impact of this reflection process, we make the Evaluator answer on the first iteration, finding it results in a $-3.6\%$ performance decrease.
|
| 170 |
+
|
| 171 |
+
Ablating the Summarizer. When collecting large amounts of information from videos, we use a Summarizer to condense the information, since long inputs can be challenging for LLMs. This has also been observed in recent work (Zhang et al., 2023a). To understand the impact of the Summarizer, we remove it. The results indicate that removing it degrades performance by $-3.2\%$ , demonstrating the advantage of more concise information.
|
| 172 |
+
|
| 173 |
+
# 4.5 Additional Experiments
|
| 174 |
+
|
| 175 |
+
Substituting different LLMs/LMMs. To see how the choice of the LLM and LMM affects our framework's performance, we swap different LLMs and
|
| 176 |
+
|
| 177 |
+
Table 3: Ablation Results. We perform ablations on 1000 randomly selected questions from the NExT-QA training set. We report (a), (b) replacing different LLMs and LMMs, (c) selecting different numbers of frames to view in the Retriever, and (d) changing the number of questions asked in the Extractor. We use GPT-3.5/LLaVA-1.6 as the LLM/LMM, 5 frames for the Retriever, and 3 questions for the Extractor, unless otherwise specified.
|
| 178 |
+
(a) Replacing Diff. LLMs
|
| 179 |
+
|
| 180 |
+
<table><tr><td>LLM</td><td>LMM</td><td>Accuracy</td></tr><tr><td>GPT-3.5</td><td></td><td>60.4</td></tr><tr><td>Llama 3</td><td rowspan="2">LLaVA-1.6</td><td>63.9</td></tr><tr><td>GPT-4</td><td>65.8</td></tr><tr><td>GPT-4o</td><td></td><td>68.0</td></tr></table>
|
| 181 |
+
|
| 182 |
+
(b) Replacing Diff. LMMs
|
| 183 |
+
|
| 184 |
+
<table><tr><td>LLM</td><td>LMM</td><td>Accuracy</td></tr><tr><td>GPT-4</td><td>GPT-4V</td><td>64.7</td></tr><tr><td></td><td>BLIP-2</td><td>52.7</td></tr><tr><td>GPT-3.5</td><td>GPT-4V</td><td>59.5</td></tr><tr><td></td><td>LLaVA-1.6</td><td>60.4</td></tr></table>
|
| 185 |
+
|
| 186 |
+
(c) # of Frames
|
| 187 |
+
|
| 188 |
+
<table><tr><td>#Frames</td><td>Accuracy</td></tr><tr><td>1</td><td>59.0</td></tr><tr><td>3</td><td>57.9</td></tr><tr><td>5</td><td>60.4</td></tr><tr><td>7</td><td>59.0</td></tr></table>
|
| 189 |
+
|
| 190 |
+
(d) # of Questions
|
| 191 |
+
|
| 192 |
+
<table><tr><td># Questions</td><td>Accuracy</td></tr><tr><td>0</td><td>58.1</td></tr><tr><td>1</td><td>58.4</td></tr><tr><td>3</td><td>60.4</td></tr><tr><td>5</td><td>59.6</td></tr></table>
|
| 193 |
+
|
| 194 |
+
LMMs into our framework (see Table 3a and Table 3b). We first try different LLMs while fixing the LMM to be LLaVA-1.6. While GPT-4 performs better than GPT-3.5 by a significant margin of $+5.4\%$ , open-source model Llama 3 is very close $(-1.9\%)$ , while incurring no additional cost. We also evaluate the newly released GPT-4o, which outperforms GPT-4 by $+2.2\%$ while being $61\%$ cheaper, showing that our method can leverage better future models. Second, we use different LMMs while fixing the LLM to be GPT-3.5. We find that LLaVA-1.6 does best, GPT-4V is slightly worse $(-0.9\%)$ , and BLIP-2 is significantly worse $(-7.7\%)$ . Finally, we run an experiment using GPT-4V as both the LLM and LMM, and find that this does worse than GPT-4 and LLaVA-1.6 by $-1.1\%$ .
|
| 195 |
+
|
| 196 |
+
GPT-4V Baseline. To get a baseline using GPT-4V, we use a method similar to LLoVi using a subset of 500 examples. We use GPT-4V to caption the video uniformly, then ask it to answer the question given the choices, which results in a performance change of $-2.0\%$ . We note our motivation is to refrain from captioning every single frame, instead finding frames that help us answer the question.
|
| 197 |
+
|
| 198 |
+
Retriever window size. We experiment with different window sizes in Table 3c which is the number of frames the Retriever extracts centered around the selected frame. This allows us to capture better actions that occur quickly or require more context to understand. We find that choosing 5 frames yields the best results and a $+1.4\%$ increase when compared to selecting a single frame, but viewing more than 5 decreases performance. This suggests retrieving multiple frames can help the model better capture relevant information, but retrieving too many frames can lead to too much information.
|
| 199 |
+
|
| 200 |
+
Memory Initialization. In order for the Planner to create effective plans, it is beneficial to initialize the memory bank properly. Memory initialization
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
Figure 3: Comparison of different Memory Initialization (1, 3, 5 frames). 5 frames is optimal.
|
| 204 |
+
|
| 205 |
+
allows the Planner to have a high-level overview of the video, and create a corresponding plan on how to traverse the video given the initial frames. We perform three different initializations with 1, 3, 5, 7, and 9 frames and display our results in Figure 3. We observe that initializing the memory bank with 5 frames uniformly sampled from the video (0, 0.25, 0.5, 0.75, 1 for beginning, quarter, middle, three-quarter, end) yields the best result. In contrast, we notice a decrease in accuracy of $-2.9\%$ when using 9 frames, $-3.1\%$ when using 7 frames, $-0.6\%$ when initializing with 3 frames (0, 0.5, 1 for beginning, middle, end), and $-2.5\%$ when initializing with 1 frame (0.5 for middle).
|
| 206 |
+
|
| 207 |
+
Robustness to choosing incorrect frames. To see if our approach can recover from viewing incorrect frames, we choose random frames for the first 3 iterations (out of 5 total iterations) before using the Retriever. This leads to an accuracy drop of only $2.8\%$ , showing our method is capable of recovering from viewing incorrect frames.
|
| 208 |
+
|
| 209 |
+
The number of questions. Question answering allows us to extract more specific details from our visual inputs. However, we noticed that too many questions can yield irrelevant questions and false positives. As such, we experiment with modifying
|
| 210 |
+
|
| 211 |
+
Table 4: Comparison of TraveLER with other few-shot and zero-shot keyframe localization methods. For fair comparisons, we gray out methods with fine-tuned components in their model. The best scores are in bold.
|
| 212 |
+
|
| 213 |
+
<table><tr><td rowspan="2">Method</td><td colspan="4">NExT-QA (Random Subset)</td></tr><tr><td>Temporal</td><td>Causal</td><td>Descriptive</td><td>Average</td></tr><tr><td>SeViLA - Localizer (Yu et al., 2023)</td><td>48.8</td><td>61.2</td><td>68.3</td><td>58.2</td></tr><tr><td>Moment-DETR (Lei et al., 2021a)</td><td>45.3</td><td>55.8</td><td>70.8</td><td>54.6</td></tr><tr><td>SigLIP (Zhai et al., 2023)</td><td>48.4</td><td>61.5</td><td>73.8</td><td>59.1</td></tr><tr><td>TraveLER - Planner & Retriever (ours)</td><td>50.9</td><td>62.7</td><td>72.4</td><td>60.3</td></tr></table>
|
| 214 |
+
|
| 215 |
+
the number of questions asked for each frame by our extractor (see Table 3d). We record results for a 5-question, 3-question, and 1-question maximum. Note that 0-questions asked is equivalent to only allowing captions, which is discussed in the Extractor ablation. From our results, we find that a 3-question limit yields the best results compared to asking 1 or 5 questions $(+2.0 / +0.8\%)$ . This suggests that asking questions helps in extracting relevant information, but too many questions can lead to false positives or too much irrelevant information.
|
| 216 |
+
|
| 217 |
+
Memory bank initialization and formatting. Our memory bank $M$ stores information that all modules rely on to make decisions. First, we experiment with different initializations as $M$ must be initialized in the first iteration. We experiment with initialization of 1, 3, and 5 uniformly sampled captions. We find using 5 evenly spaced frames yields the best results, possibly because it starts the model with a general overview of the video before it starts to collect more relevant information. We also experiment with changing the format of the memory bank from JSON to markdown tables. We find this does worse by $-2.9\%$ , possibly because LLMs are better able to understand JSON formats.
|
| 218 |
+
|
| 219 |
+
Comparison with other keyframe selection methods. In Table 4, we compare our Planner and Retriever with other keyframe localization methods by replacing our Planner and Retriever with each of the other methods, and use our Extractor and Evaluator to perform the question answering. For all these methods, we use GPT-3.5 and LLaVA-1.6, and we evaluate these methods on a random subset of 1000 examples from the training set of NExTQA. Note that other methods find keyframes in one inference iteration, whereas our inference occurs over multiple iterations. Therefore, to ensure fair comparisons, we uniformly sample 32 frames and extract out 4 keyframes in the other methods,
|
| 220 |
+
|
| 221 |
+
and we run 4 iterations of TravelLER using the Retriever with a window size of 2 to similarly find 4 keyframes among fewer than 32 viewed frames.
|
| 222 |
+
|
| 223 |
+
We find that our Planner and Retriever surpasses other keyframe localization methods, despite considering fewer total frames (\(\sim\)25 total frames; we have 5 for memory initialization, and up to 5 frames each iteration). We would like to highlight that while our method is effective at finding keyframes, we do not need to find all keyframes to answer a question. Instead, we are often able to choose the correct answer with only a subset of the keyframes. Cost of inference. We test costs for GPT-3.5 and GPT-4, which have costs per inference of \(0.03\) and \)0.67$, respectively. We also test the open-source model Llama 3, which is free to run with only a minor performance decrease (-1.9%). Finally, we also try the new GPT-4o model, which is both better (+2.2%) and cheaper (61%) than GPT-4. We believe this trend will only continue as models become better and cheaper in the future.
|
| 224 |
+
|
| 225 |
+
# 5 Conclusion
|
| 226 |
+
|
| 227 |
+
We design a modular, multi-LMM agent framework for video-question answering based on several agents with different roles, instructed by a Planner agent that updates its instructions using shared feedback between the other agents. Our method creates a plan to "traverse" through the video, asking questions about individual frames to "locate" and store key information, and then "evaluate" if there is enough information to answer the question, "replanning" using new feedback if necessary. Through extensive experiments and ablations, we find that the proposed TravelER approach is not only easy to employ with different models but also improves performance on several video question-answering benchmarks without the need to fine-tune on specific datasets.
|
| 228 |
+
|
| 229 |
+
# 6 Limitations
|
| 230 |
+
|
| 231 |
+
In this work, we present a modular, zero-shot framework for video question answering (VideoQA) and demonstrate its effectiveness by improving on multiple state-of-the-art benchmarks. While TraveLER offers substantial benefits for VideoQA, it is important to recognize certain limitations that accompany our approach. Firstly, the effectiveness of our model relies heavily on the strength of the LLM and LMM. We notice that false-positives and incorrect statements from the LMM heavily impact performance. Our method's runtime also depends on the runtime of current existing methods, and with the modularity of our method we expect this to improve with faster and better models in the future. Finally, we do not anticipate negative impacts of this work, but, as with any Machine Learning method, we recommend exercising caution.
|
| 232 |
+
|
| 233 |
+
# 7 Acknowledgements
|
| 234 |
+
|
| 235 |
+
We would like to thank Suzie Petryk, Chancharik Mitra, Alon Mendelson, David Chan, Assaf Arbelle, and Leonid Karlinsky for helpful feedback and discussions. This project was supported in part by DoD, including PTG and/or LwLL programs, as well as BAIR's industrial alliance programs.
|
| 236 |
+
|
| 237 |
+
# References
|
| 238 |
+
|
| 239 |
+
Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, Roman Ring, Eliza Rutherford, Serkan Cabi, Tengda Han, Zhitao Gong, Sina Samangooei, Marianne Monteiro, Jacob Menick, Sebastian Borgeaud, Andrew Brock, Aida Nematzadeh, Sahand Sharifzadeh, Mikolaj Binkowski, Ricardo Barreira, Oriol Vinyals, Andrew Zisserman, and Karen Simonyan. 2022. Flamingo: a visual language model for few-shot learning. In Advances in Neural Information Processing Systems.
|
| 240 |
+
Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. 2016. Neural module networks. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 39-48.
|
| 241 |
+
Elad Ben Avraham, Roei Herzig, Karttikeya Mangalam, Amir Bar, Anna Rohrbach, Leonid Karlinsky, Trevor Darrell, and Amir Globerson. 2022. Bringing image scene structure to video via frame-clip consistency of object tokens. In Thirty-Sixth Conference on Neural Information Processing Systems.
|
| 242 |
+
Ivana Balazevic, Yuge Shi, Pinelopi Papalampidi, Rahma Chaabouni, Skanda Koppula, and Olivier J
|
| 243 |
+
|
| 244 |
+
Henaff. 2024. Memory consolidation enables long-context video understanding. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 2527-2542. PMLR.
|
| 245 |
+
Amir Bar, Roei Herzig, Xiaolong Wang, Anna Rohrbach, Gal Chechik, Trevor Darrell, and A. Globerson. 2021. Compositional video synthesis with action graphs. In ICML.
|
| 246 |
+
Fabien Baradel, Natalia Neverova, Christian Wolf, Julien Mille, and Greg Mori. 2018. Object level visual reasoning in videos. In European Conference on Computer Vision, pages 105-121.
|
| 247 |
+
Peter Battaglia, Jessica Blake Chandler Hamrick, Victor Bapst, Alvaro Sanchez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, Caglar Gulcehre, Francis Song, Andy Ballard, Justin Gilmer, George E. Dahl, Ashish Vaswani, Kelsey Allen, Charles Nash, Victoria Jayne Langston, Chris Dyer, Nicolas Heess, Daan Wierstra, Pushmeet Kohli, Matt Botvinick, Oriol Vinyals, Yujia Li, and Razvan Pascanu. 2018. Relational inductive biases, deep learning, and graph networks. arXiv.
|
| 248 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877-1901. Curran Associates, Inc.
|
| 249 |
+
Shyamal Buch, Cristobal Eyzaguirre, Adrien Gaidon, Jiajun Wu, Li Fei-Fei, and Juan Carlos Niebles. 2022. Revisiting the "Video" in Video-Language Understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).
|
| 250 |
+
Jun Chen, Deyao Zhu, Kilichbek Haydarov, Xiang Li, and Mohamed Elhoseiny. 2023. Video chat captioner: Towards enriched spatiotemporal descriptions. Preprint, arXiv:2304.04227.
|
| 251 |
+
Sihan Chen, Handong Li, Qunbo Wang, Zijia Zhao, Mingzhen Sun, Xinxin Zhu, and Jing Liu. 2024. Vast: A vision-audio-subtitle-text omni-modality foundation model and dataset. Advances in Neural Information Processing Systems, 36.
|
| 252 |
+
Rohan Choudhury, Koichiro Niinuma, Kris M. Kitani, and László A. Jeni. 2023. Zero-shot video question answering with procedural programs. Preprint, arXiv:2312.00937.
|
| 253 |
+
|
| 254 |
+
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. Preprint, arXiv:2210.11416.
|
| 255 |
+
Tsu-Jui Fu, Linjie Li, Zhe Gan, Kevin Lin, William Yang Wang, Lijuan Wang, and Zicheng Liu. 2023. An empirical study of end-to-end videolanguage transformers with masked visual modeling. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22898-22909.
|
| 256 |
+
Jiaxin Ge, Sanjay Subramanian, Baifeng Shi, Roei Herzig, and Trevor Darrell. 2023. Recursive visual programming. Preprint, arXiv:2312.02249.
|
| 257 |
+
Tanmay Gupta and Aniruddha Kembhavi. 2023. Visual programming: Compositional visual reasoning without training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14953-14962.
|
| 258 |
+
Roei Herzig, Ofir Abramovich, Elad Ben Avraham, Assaf Arbelle, Leonid Karlinsky, Ariel Shamir, Trevor Darrell, and Amir Globerson. 2024. Promptomyvit: Multi-task prompt learning improves video transformers using synthetic scene data. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 6803-6815.
|
| 259 |
+
Roei Herzig, Amir Bar, Huijuan Xu, Gal Chechik, Trevor Darrell, and Amir Globerson. 2020. Learning canonical representations for scene graph to image generation. In European Conference on Computer Vision.
|
| 260 |
+
Roei Herzig, Elad Ben-Avraham, Karttikeya Mangalam, Amir Bar, Gal Chechik, Anna Rohrbach, Trevor Darryll, and Amir Globerson. 2022. Object-region video transformers. In Conference on Computer Vision and Pattern Recognition (CVPR).
|
| 261 |
+
Roei Herzig, Elad Levi, Huijuan Xu, Hang Gao, Eli Brosh, Xiaolong Wang, Amir Globerson, and Trevor Darrell. 2019. Spatio-temporal action graph networks. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 0-0.
|
| 262 |
+
Roei Herzig, Alon Mendelson, Leonid Karlinsky, Assaf Arbelle, Rogerio Feris, Trevor Darrell, and Amir Globerson. 2023. Incorporating structured representations into pretrained vision $\&$ language models using scene graphs. In The 2023 Conference on Empirical Methods in Natural Language Processing.
|
| 263 |
+
|
| 264 |
+
Roei Herzig, Moshiko Raboh, Gal Chechik, Jonathan Berant, and Amir Globerson. 2018. Mapping images to scene graphs with permutation-invariant structured prediction. In Advances in Neural Information Processing Systems (NIPS).
|
| 265 |
+
Achiya Jerbi, Roei Herzig, Jonathan Berant, Gal Chechik, and Amir Globerson. 2020. Learning object detection from captions via textual scene attributes. ArXiv, abs/2009.14558.
|
| 266 |
+
Ranjay Krishna, Ines Chami, Michael S. Bernstein, and Li Fei-Fei. 2018. Referring relationships. European Conference on Computer Vision.
|
| 267 |
+
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles.
|
| 268 |
+
Jie Lei, Tamara Lee Berg, and Mohit Bansal. 2021a. Qvhighlights: Detecting moments and highlights in videos via natural language queries. In Advances in Neural Information Processing Systems.
|
| 269 |
+
Jie Lei, Linjie Li, Luowei Zhou, Zhe Gan, Tamara L. Berg, Mohit Bansal, and Jingjing Liu. 2021b. Less is more: Clipbert for video-and-language learning via sparse sampling. In CVPR.
|
| 270 |
+
Jiangtong Li, Li Niu, and Liqing Zhang. 2022. From representation to reasoning: Towards both evidence and commonsense reasoning for video question-answering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).
|
| 271 |
+
Linjie Li, Zhe Gan, Kevin Lin, Chung-Ching Lin, Ce Liu, Zicheng Liu, and Lijuan Wang. 2023. Lavender: Unifying video-language understanding as masked language modeling. In Conference on Computer Vision and Pattern Recognition (CVPR).
|
| 272 |
+
Bin Lin, Yang Ye, Bin Zhu, Jiaxi Cui, Munan Ning, Peng Jin, and Li Yuan. 2023a. Video-llava: Learning united visual representation by alignment before projection. Preprint, arXiv:2311.10122.
|
| 273 |
+
Kevin Lin, Faisal Ahmed, Linjie Li, Chung-Ching Lin, Ehsan Azarnasab, Zhengyuan Yang, Jianfeng Wang, Lin Liang, Zicheng Liu, Yumao Lu, Ce Liu, and Lijuan Wang. 2023b. Mm-vid: Advancing video understanding with gpt-4v(ison). Preprint, arXiv:2310.19773.
|
| 274 |
+
Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023. Visual instruction tuning. In Thirty-seventh Conference on Neural Information Processing Systems.
|
| 275 |
+
Haoyu Lu, Mingyu Ding, Nanyi Fei, Yuqi Huo, and Zhiwu Lu. 2022. LGDN: Language-guided denoising network for video-language modeling. In Advances in Neural Information Processing Systems.
|
| 276 |
+
|
| 277 |
+
Muhammad Maaz, Hanoona Rasheed, Salman Khan, and Fahad Shahbaz Khan. 2024. Video-chatgpt: Towards detailed video understanding via large vision and language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL 2024).
|
| 278 |
+
Tegan Maharaj, Nicolas Ballas, Anna Rohrbach, Aaron Courville, and Christopher Pal. 2017. A dataset and exploration of models for understanding video data through fill-in-the-blank question-answering. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7359-7368.
|
| 279 |
+
Karttikeya Mangalam, Raiymbek Akshulakov, and Jitendra Malik. 2023. Egoschema: A diagnostic benchmark for very long-form video language understanding. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track.
|
| 280 |
+
Juhong Min, Shyamal Buch, Arsha Nagrani, Minsu Cho, and Cordelia Schmid. 2024. Morevqa: Exploring modular reasoning models for video question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR).
|
| 281 |
+
Chancharik Mitra, Brandon Huang, Trevor Darrell, and Roei Herzig. 2024. Compositional chain of thought prompting for large multimodal models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).
|
| 282 |
+
OpenAI, :, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, Red Avila, Igor Babuschkin, Suchir Balaji, Valerie Balcom, Paul Baltescu, Haiming Bao, Mo Bavarian, Jeff Belgium, Irwan Bello, Jake Berdine, Gabriel Bernadett-Shapiro, Christopher Berner, Lenny Bogdonoff, Oleg Boiko, Madelaine Boyd, Anna-Luisa Brakman, Greg Brockman, Tim Brooks, Miles Brundage, Kevin Button, Trevor Cai, Rosie Campbell, Andrew Cann, Brittany Carey, Chelsea Carlson, Rory Carmichael, Brooke Chan, Che Chang, Fotis Chantzis, Derek Chen, Sully Chen, Ruby Chen, Jason Chen, Mark Chen, Ben Chess, Chester Cho, Casey Chu, Hyung Won Chung, Dave Cummings, Jeremiah Currier, Yunxing Dai, Cory Decareaux, Thomas Degry, Noah Deutsch, Damien Deville, Arka Dhar, David Dohan, Steve Dowling, Sheila Dunning, Adrien Ecoffet, Atty Eleti, Tyna Eloundou, David Farhi, Liam Fedus, Niko Felix, Simón Posada Fishman, Juston Forte, Isabella Fulford, Leo Gao, Elie Georges, Christian Gibson, Vik Goel, Tarun Gogineni, Gabriel Goh, Rapha Gontijo-Lopes, Jonathan Gordon, Morgan Grafstein, Scott Gray, Ryan Greene, Joshua Gross, Shixiang Shane Gu, Yufei Guo, Chris Hallacy, Jesse Han, Jeff Harris, Yuchen He, Mike Heaton, Johannes Heidecke, Chris Hesse, Alan Hickey, Wade Hickey, Peter Hoeschele, Brandon Houghton, Kenny Hsu, Shengli Hu, Xin Hu, Joost Huizinga, Shantanu Jain, Shawn Jain, Joanne Jang, Angela Jiang, Roger Jiang, Haozhun Jin, Denny Jin, Shino Jomoto, Billie
|
| 283 |
+
|
| 284 |
+
Jonn, Heewoo Jun, Tomer Kaftan, Lukasz Kaiser, Ali Kamali, Ingmar Kanitscheider, Nitish Shirish Keskar, Tabarak Khan, Logan Kilpatrick, Jong Wook Kim, Christina Kim, Yongjik Kim, Hendrik Kirchner, Jamie Kiros, Matt Knight, Daniel Kokotajlo, Lukasz Kondraciuk, Andrew Kondrich, Aris Konstantinidis, Kyle Kosic, Gretchen Krueger, Vishal Kuo, Michael Lampe, Ikai Lan, Teddy Lee, Jan Leike, Jade Leung, Daniel Levy, Chak Ming Li, Rachel Lim, Molly Lin, Stephanie Lin, Mateusz Litwin, Theresa Lopez, Ryan Lowe, Patricia Lue, Anna Makanju, Kim Malfacini, Sam Manning, Todor Markov, Yaniv Markovski, Bianca Martin, Katie Mayer, Andrew Mayne, Bob McGrew, Scott Mayer McKinney, Christine McLeavey, Paul McMillan, Jake McNeil, David Medina, Aalok Mehta, Jacob Menick, Luke Metz, Andrey Mishchenko, Pamela Mishkin, Vinnie Monaco, Evan Morikawa, Daniel Mossing, Tong Mu, Mira Murati, Oleg Murk, David Mely, Ashvin Nair, Reiichiro Nakano, Rajeev Nayak, Arvind Neelakantan, Richard Ngo, Hyeonwoo Noh, Long Ouyang, Cullen O'Keefe, Jakub Pachocki, Alex Paino, Joe Palermo, Ashley Pantuliano, Giambattista Parascandolo, Joel Parish, Emy Parparita, Alex Passos, Mikhail Pavlov, Andrew Peng, Adam Perelman, Filipe de Avila Belbute Peres, Michael Petrov, Henrique Ponde de Oliveira Pinto, Michael Pokorny, Michelle Pokrass, Vitchyr Pong, Tolly Powell, Alethea Power, Boris Power, Elizabeth Proehl, Raul Puri, Alec Radford, Jack Rae, Aditya Ramesh, Cameron Raymond, Francis Real, Kendra Rimbach, Carl Ross, Bob Rotsted, Henri Roussez, Nick Ryder, Mario Saltarelli, Ted Sanders, Shibani Santurkar, Girish Sastry, Heather Schmidt, David Schnurr, John Schulman, Daniel Selsam, Kyla Sheppard, Toki Sherbakov, Jessica Shieh, Sarah Shoker, Pranav Shyam, Szymon Sidor, Eric Sigler, Maddie Simens, Jordan Sitkin, Katarina Slama, Ian Sohl, Benjamin Sokolowsky, Yang Song, Natalie Staudacher, Felipe Petroski Such, Natalie Summers, Ilya Sutskever, Jie Tang, Nikolas Tezak, Madeleine Thompson, Phil Tillet, Amin Tootoonchian, Elizabeth Tseng, Preston Tuggle, Nick Turley, Jerry Tworek, Juan Felipe Cerón Uribe, Andrea Vallone, Arun Vijayvergiya Chelsea Voss, Carroll Wainwright, Justin Jay Wang. Alvin Wang. Ben Wang. Jonathan Ward. Jason Wei CJ Weinmann Akila Welihinda Peter Welinder Jiayi WengLilian WengMatt Wiethoff Dave Willner Clemens Winter,Samuel WolrichHannah Wong Lauren Workman. Sherwin Wu. Jeff Wu. Michael Wu. Kai Xiao Tao Xu Sarah Yoo Kevin Yu Qiming Yuan Wojciech Zaremba Rowan Zellers Chong Zhang. Marvin Zhang. Shengjia Zhao. Tianhao Zheng. Juntang Zhuang. William Zhuk and Barret Zoph. 2023. Gpt-4 technical report. Preprint arXiv:2303.08774.
|
| 285 |
+
|
| 286 |
+
Pinelopi Papalampidi, Skanda Koppula, Shreya Pathak, Justin Chiu, Joe Heyward, Viorica Patraucean, Jiajun Shen, Antoine Miech, Andrew Zisserman, and Aida Nematzdeh. 2024. A simple recipe for contrastively pre-training video-first encoders beyond 16 frames. In Proceedings of the IEEE/CVF Conference on Com
|
| 287 |
+
|
| 288 |
+
puter Vision and Pattern Recognition (CVPR), pages 14386-14397.
|
| 289 |
+
Viorica Patraucean, Lucas Smaira, Ankush Gupta, Adria Recasens Continente, Larisa Markeeva, Dylan Sunil Banarse, Skanda Koppula, Joseph Heyward, Mateusz Malinowski, Yi Yang, Carl Doersch, Tatiana Matejovicova, Yury Sulsky, Antoine Miech, Alexandre Fréchette, Hanna Klimczak, Raphael Koster, Junlin Zhang, Stephanie Winkler, Yusuf Aytar, Simon Osindero, Dima Damen, Andrew Zisserman, and Joao Carreira. 2023. Perception test: A diagnostic benchmark for multimodal video models. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track.
|
| 290 |
+
Tianwen Qian, Ran Cui, Jingjing Chen, Pai Peng, Xiaowei Guo, and Yu-Gang Jiang. 2023. Locate before answering: Answer guided question localization for video question answering. Trans. Multi., 26:4554-4563.
|
| 291 |
+
Hung-Ting Su, Yulei Niu, Xudong Lin, Winston H. Hsu, and Shih-Fu Chang. 2023. Language models are causal knowledge extractors for zero-shot video question answering. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 4951-4960.
|
| 292 |
+
Sanjay Subramanian, Medhini Narasimhan, Kushal Khangaonkar, Kevin Yang, Arsha Nagrani, Cordelia Schmid, Andy Zeng, Trevor Darrell, and Dan Klein. 2023. Modular visual question answering via code generation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics, Toronto, Canada. Association for Computational Linguistics.
|
| 293 |
+
Yuchong Sun, Hongwei Xue, Ruihua Song, Bei Liu, Huan Yang, and Jianlong Fu. 2022. Long-form video-language pre-training with multimodal temporal contrastive learning. In Advances in Neural Information Processing Systems, volume 35, pages 38032-38045. Curran Associates, Inc.
|
| 294 |
+
Dídac Surís, Sachit Menon, and Carl Vondrick. 2023. Vipergpt: Visual inference via python execution for reasoning. Proceedings of IEEE International Conference on Computer Vision (ICCV).
|
| 295 |
+
Yi Wang, Yinan He, Yizhuo Li, Kunchang Li, Jiashuo Yu, Xin Ma, Xinhao Li, Guo Chen, Xinyuan Chen, Yaohui Wang, Ping Luo, Ziwei Liu, Yali Wang, Limin Wang, and Yu Qiao. 2024. Internvid: A large-scale video-text dataset for multimodal understanding and generation. In The Twelfth International Conference on Learning Representations.
|
| 296 |
+
Zhenhailong Wang, Manling Li, Ruochen Xu, Luowei Zhou, Jie Lei, Xudong Lin, Shuohang Wang, Ziyi Yang, Chenguang Zhu, Derek Hoiem, Shih-Fu Chang, Mohit Bansal, and Heng Ji. 2022. Language models with image descriptors are strong few-shot video-language learners. In Advances in Neural Information Processing Systems, volume 35, pages 8483-8497. Curran Associates, Inc.
|
| 297 |
+
|
| 298 |
+
Bo Wu, Shoubin Yu, Zhenfang Chen, Joshua B Tenenbaum, and Chuang Gan. 2021. Star: A benchmark for situated reasoning in real-world videos. In Thirty-fifth Conference on Neural Information Processing Systems (NeurIPS).
|
| 299 |
+
Wenhao Wu, Dongliang He, Xiao Tan, Shifeng Chen, and Shilei Wen. 2019. Multi-agent reinforcement learning based frame sampling for effective untrimmed video recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV).
|
| 300 |
+
Junbin Xiao, Xindi Shang, Angela Yao, and Tat-Seng Chua. 2021. Next-qa: Next phase of question-answering to explaining temporal actions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9777-9786.
|
| 301 |
+
Hongwei Xue, Yuchong Sun, Bei Liu, Jianlong Fu, Ruihua Song, Houqiang Li, and Jiebo Luo. 2023. CLIPvip: Adapting pre-trained image-text model to video-language alignment. In The Eleventh International Conference on Learning Representations.
|
| 302 |
+
Hongyang Xue, Zhou Zhao, and Deng Cai. 2017. Unifying the video and question attentions for open-ended video question answering. IEEE Transactions on Image Processing, 26(12):5656-5666.
|
| 303 |
+
Antoine Yang, Antoine Miech, Josef Sivic, Ivan Laptev, and Cordelia Schmid. 2021. Just ask: Learning to answer questions from millions of narrated videos. In ICCV.
|
| 304 |
+
Antoine Yang, Antoine Miech, Josef Sivic, Ivan Laptev, and Cordelia Schmid. 2022. Zero-shot video question answering via frozen bidirectional language models. In NeurIPS.
|
| 305 |
+
Antoine Yang, Arsha Nagrani, Paul Hongsuck Seo, Antoine Miech, Jordi Pont-Tuset, Ivan Laptev, Josef Sivic, and Cordelia Schmid. 2023. Vid2seq: Large-scale pretraining of a visual language model for dense video captioning. In CVPR.
|
| 306 |
+
Qinghao Ye, Guohai Xu, Ming Yan, Haiyang Xu, Qi Qian, Ji Zhang, and Fei Huang. 2023. Hitea: Hierarchical temporal-aware video-language pre-training. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 15405-15416.
|
| 307 |
+
Jiahui Yu, Zirui Wang, Vijay Vasudevan, Legg Yeung, Mojtaba Seyedhosseini, and Yonghui Wu. 2022. Coca: Contrastive captioners are image-text foundation models. Transactions on Machine Learning Research.
|
| 308 |
+
Shoubin Yu, Jaemin Cho, Prateek Yadav, and Mohit Bansal. 2023. Self-chained image-language model for video localization and question answering. In NeurIPS.
|
| 309 |
+
|
| 310 |
+
Andy Zeng, Maria Attarian, brian richter, Krzysztof Marcin Choromanski, Adrian Wong, Stefan Welker, Federico Tombari, Aveek Purohit, Michael S Ryoo, Vikas Sindhwani, Johnny Lee, Vincent Vanhoucke, and Pete Florence. 2023. Socratic models: Composing zero-shot multimodal reasoning with language. In The Eleventh International Conference on Learning Representations.
|
| 311 |
+
Kuo-Hao Zeng, Tseng-Hung Chen, Ching-Yao Chuang, Yuan-Hong Liao, Juan Carlos Niebles, and Min Sun. 2017. Leveraging video descriptions to learn video question answering. Proceedings of the AAAI Conference on Artificial Intelligence, 31(1).
|
| 312 |
+
Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. 2023. Sigmoid loss for language image pre-training. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 11941-11952.
|
| 313 |
+
Ce Zhang, Taixi Lu, Md Mohaiminul Islam, Ziyang Wang, Shoubin Yu, Mohit Bansal, and Gedas Bertasius. 2023a. A simple llm framework for long-range video question-answering. Preprint, arXiv:2312.17235.
|
| 314 |
+
Chaoyi Zhang, Kevin Lin, Zhengyuan Yang, Jianfeng Wang, Linjie Li, Chung-Ching Lin, Zicheng Liu, and Lijuan Wang. 2024. Mm-narrator: Narrating long-form videos with multimodal in-context learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).
|
| 315 |
+
Hang Zhang, Xin Li, and Lidong Bing. 2023b. VideoLLaMA: An instruction-tuned audio-visual language model for video understanding. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 543–553, Singapore. Association for Computational Linguistics.
|
| 316 |
+
Yue Zhao, Ishan Misra, Philipp Krahenbuhl, and Rohit Girdhar. 2023. Learning video representations from large language models. In CVPR.
|
| 317 |
+
Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Jeff Huang, Chuyue Sun, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E. Gonzalez, Clark Barrett, and Ying Sheng. 2023. Efficiently programming large language models using sglang. Preprint, arXiv:2312.07104.
|
| 318 |
+
Linchao Zhu, Zhongwen Xu, Yi Yang, and Alexander G. Hauptmann. 2017. Uncovering the temporal context for video question answering. International Journal of Computer Vision, 124(3):409-421.
|
| 319 |
+
|
| 320 |
+
# Supplementary Material for "TraveLER"
|
| 321 |
+
|
| 322 |
+
Here we provide additional information about our experimental results, qualitative examples, implementation details, and datasets. Specifically, Section A provides more experiment results, Section B provides additional implementation details, Section C provides additional related work, and Section D provides qualitative visualizations to illustrate our approach.
|
| 323 |
+
|
| 324 |
+
# A Additional Experiment Results
|
| 325 |
+
|
| 326 |
+
We begin by presenting several additional ablations in Section A.1 that further demonstrate the benefits of our TraveLER approach. We also present additional results in Section A.2.
|
| 327 |
+
|
| 328 |
+
# A.1 Additional Ablations
|
| 329 |
+
|
| 330 |
+
In what follows, we provide additional ablations that further illustrate the benefits of TraveLER. For all ablations, we compare the ablated experiment with the corresponding best-performing TraveLER results on a random sample of 1000 examples from the training set of the NExT-QA dataset. We use GPT-3.5 as the LLM and LLaVA-1.6 as the LMM. LMM response length. The LMM in our framework is crucial because it allows us to capture more relevant and question-specific details from visual input. However, if the LMM's responses are too long, the memory bank will become too large, whereas if the LMM's responses are too short, insufficient information will be captured. Thus, we conduct an experiment to determine the optimal LMM response length, and display our results in Fig 4. We find that limiting the LMM response to 150 tokens yields the most optimal performance, while accuracy decreases by $-2.2\%$ and $-1.7\%$ if the response is limited to 75 tokens and 300 tokens respectively. This supports the fact that there is a tradeoff between not collecting enough information for short response lengths and collecting too much information as the LMM response size increases.
|
| 331 |
+
|
| 332 |
+
Prompt analysis. In each module of our framework, we use a task prompt to provide instructions to our agents (LLMs or LMMs). The construction of these prompts plays a large role in how instructions are executed. Currently, we use the question $Q$ as input into all prompts $(P_{\mathrm{T}}^{(1)}), (P_{\mathrm{R}}^{(1)}), (P_{\mathrm{E}}^{(1)}), (P_{\mathrm{V}}^{(1)})$ . However, we use the choices $C$ as input only for the Planner and Evaluator prompts since the Planner needs the choices to tailor its plan, and the Evaluator needs
|
| 333 |
+
|
| 334 |
+

|
| 335 |
+
Figure 4: Comparison of different LMM Response Length (75, 150, 300 max tokens). 150 is optimal.
|
| 336 |
+
|
| 337 |
+
the choices to answer the question. We experiment with adding the choices $C$ to the Retriever and Extractor prompts, and find that this degrades performance by $-1.6\%$ . This may be because the incorrect choices mislead the Retriever into searching for non-existent events or the Extractor into asking irrelevant questions.
|
| 338 |
+
|
| 339 |
+
# A.2 Additional Results
|
| 340 |
+
|
| 341 |
+
Results on Causal-VidQA. We also report zero-shot results on Causal-VidQA (Li et al., 2022), a dataset designed to focus on causal related questions to facilitate deeper video understanding towards video reasoning. We see that our method outperforms the best zero-shot method by $16.9\%$ .
|
| 342 |
+
|
| 343 |
+
Additional Baselines. We also compare our approach with the concurrent work MoReVQA (Min et al., 2024). It can be seen that MoReVQA performs better on NExT-QA by $1\%$ , while our method performs better on the more difficult long-form video understanding EgoSchema benchmark by $1.6\%$ . We also note some key differences. Firstly, our method is able to re-plan based on feedback from previous iterations while MoReVQA uses a single forward pass through the stages and cannot modify its approach during the process. Secondly, we use an iterative approach while MoReVQA does not, which allows our method to adjust and improve using feedback from previous iterations.
|
| 344 |
+
|
| 345 |
+
# B Additional Implementation Details
|
| 346 |
+
|
| 347 |
+
To run our models on larger benchmarks, we use 8 NVIDIA RTX 6000 GPUs and split the dataset across multiple processes. In addition, we use the
|
| 348 |
+
|
| 349 |
+
Table 5: Zero-shot (ZS) results on Causal-VidQA.
|
| 350 |
+
|
| 351 |
+
<table><tr><td>Model</td><td>Acc. (%)</td></tr><tr><td>Just-Ask (Yang et al., 2021)</td><td>27.1</td></tr><tr><td>CaKE + CoMem (Su et al., 2023)</td><td>30.0</td></tr><tr><td>CaKE + HGA (Su et al., 2023)</td><td>30.6</td></tr><tr><td>TraveLER (ours)</td><td>47.5 (+16.9)</td></tr></table>
|
| 352 |
+
|
| 353 |
+
SGLang (Zheng et al., 2023) package, which provides a variety of performance optimizations for our LMMs and enables us to perform batched inference for models that do not natively support doing so. We serve our LMM on a single GPU and implement a queue that is shared across all runs. This allows individual runs to asynchronously call the LMM using an API request instead of creating a new instance of the LMM for each run. Typically, we have 4-5 processes sharing the same LMM.
|
| 354 |
+
|
| 355 |
+
Next, we use all default parameters. For our LMMs, we experiment with modifying the maximum output token length as an ablation, but use all default parameters otherwise. For the Llama 3 ablation in 3a, we serve Llama 3 70B on 4 NVIDIA A100s using vLLM (Kwon et al., 2023). We report results from a single run for all experiments.
|
| 356 |
+
|
| 357 |
+
# B.1 Prompts
|
| 358 |
+
|
| 359 |
+
Our prompts are shown in Table 6, Table 7, Table 8, and 9. The black text is the base prompt template, and we replace the blue text with the corresponding information from the relevant video. The generated outputs are in the orange text.
|
| 360 |
+
|
| 361 |
+
# B.2 NExT-QA
|
| 362 |
+
|
| 363 |
+
Dataset. NExT-QA is a challenging dataset that tests causal action reasoning and temporal understanding. It contains 5,440 videos with an average length of 44s. Compared to earlier VideoQA benchmarks (Papalampidi et al., 2024; Xue et al., 2017; Zeng et al., 2017; Zhu et al., 2017), NExT-QA requires going beyond simple recognition of objects and actions to answer the questions correctly. Each question requires selecting the best option out of 5 choices, often with very similar degrees of plausibility. Additionally, each question is categorized into either a Temporal, Causal, or Descriptive type. Temporal questions often ask what happens during, before, or after an event or action, while causal questions require advanced reasoning and inference about why an event or action occurs. Following the trend of works before us, we evaluate our method
|
| 364 |
+
|
| 365 |
+
on the 5,000 questions in the NExT-QA validation set, which consist of 500 different videos. This dataset is in English.
|
| 366 |
+
|
| 367 |
+
Inference Details. For NExT-QA, we use LLaVA-1.6 (Vicuna 13B) as the LMM and GPT-4 (gpt-4-1106-preview) as the LLM. We used the longer, comprehensive prompts, with no answer choices included in the Extractor prompt. We also initialize the memory bank with 5 frames, and use the multi-frame Retriever with 5 frames.
|
| 368 |
+
|
| 369 |
+
# B.3 Perception Test
|
| 370 |
+
|
| 371 |
+
Dataset. In comparison with earlier VideoQA datasets (Maharaj et al., 2017; Zhu et al., 2017; Zeng et al., 2017) that focus on computational tasks such as classification, detection, or tracking, Perception Test is a dataset that focuses on skills such as memory, abstraction, physics, and semantics. Moreover, it is designed to test the transfer capabilities of different models and intended to be approached in a few-shot or zero-shot manner. The dataset consists of 11.6k real-world videos with an average length of 23 seconds, and 38K multiple choice QA questions. This dataset is in English.
|
| 372 |
+
|
| 373 |
+
Inference Details. For Perception Test, we use LLaVA-1.6 (Vicuna 13B) as the LMM and GPT-3.5 (gpt-3.5-turbo-0125) as the LLM. We used shorter, simplified prompts, with no answer choices included in the Extractor prompt. We also initialize the memory bank with 5 frames, and use the multi-frame Retriever with 5 frames.
|
| 374 |
+
|
| 375 |
+
# B.4 EgoSchema
|
| 376 |
+
|
| 377 |
+
Dataset. EgoSchema is a dataset that tests long-form video reasoning and is intended to be answered in a few-shot or zero-shot manner. It introduces the idea of certificate lengths, which are the minimum number of seconds it takes to be able to answer the question correctly. It has 5k questions in the full set, and a 500 question subset is used as the validation set. We use the full test set for evaluation. This dataset is in English.
|
| 378 |
+
|
| 379 |
+
Inference Details. For EgoSchema, we use GPT-4 (gpt-4-1106-preview) as the LLM and LaViLa as the LMM. To prevent data leakage, we use a retrained version of LaViLa that does not use overlapping videos between Ego4D and EgoSchema. For window size in the Retriever, we take the selected frame, along with the frame 1 second before and 1-2 seconds after the selected frame.
|
| 380 |
+
|
| 381 |
+
# User:
|
| 382 |
+
|
| 383 |
+
Create the best plan to gather information to answer the question.
|
| 384 |
+
|
| 385 |
+
# QUESTION: QUESTION CHOICES: CHOICES
|
| 386 |
+
|
| 387 |
+
You are provided information collected from individual frames of the video and is represented as a dictionary keyed by the timestamps of the frames.
|
| 388 |
+
|
| 389 |
+
# INFORMATION: INFO
|
| 390 |
+
|
| 391 |
+
You are also given an explanation for why you aren't able to definitively answer the question with the current information.
|
| 392 |
+
|
| 393 |
+
# EXPLANATION: EXPLANATION
|
| 394 |
+
|
| 395 |
+
# Follow these rules:
|
| 396 |
+
|
| 397 |
+
1. You only have access to individual frames of the video, with no audio. You can go to a certain timestamp, search for actions or settings, and describe or ask questions about individual frames.
|
| 398 |
+
2. Make sure that you have viewed the relevant frames.
|
| 399 |
+
|
| 400 |
+
Make your plan as simple and straightforward as possible, and no longer than 5 steps long. Return your plan as a numbered list, after PLAN. Do not include any other response or explanation. Let's think step-by-step.
|
| 401 |
+
|
| 402 |
+
Assistant: Output: PLAN
|
| 403 |
+
|
| 404 |
+
Table 6: Planner prompt ${P}_{T}$ :
|
| 405 |
+
|
| 406 |
+
# User:
|
| 407 |
+
|
| 408 |
+
You are given the following information about a LENGTH second video, with information from individual frames at different timestamps.
|
| 409 |
+
|
| 410 |
+
# INFORMATION: INFO
|
| 411 |
+
|
| 412 |
+
# PLAN: PLAN
|
| 413 |
+
|
| 414 |
+
Currently, you are viewing second CURR. Choose the timestamp, in seconds, of the next frame to view. When choosing the next frame to view, remember that you are trying to collect information to answer this multiple choice question: QUESTION
|
| 415 |
+
|
| 416 |
+
Think of what information you need, and consider what information you already have. Use the temporal nature of the video and your past information to choose the next frame. Do not choose a frame you already have information about, and make sure that the frame you choose is at least WINDOW SIZE seconds apart from the second you are currently viewing.
|
| 417 |
+
|
| 418 |
+
Return your answer as a single Python float representing the second you want to view. Don't provide any other response or explanation.
|
| 419 |
+
|
| 420 |
+
Assistant: Output: TIMESTAMP
|
| 421 |
+
|
| 422 |
+
Table 7: Retriever prompt ${P}_{R}$ :
|
| 423 |
+
|
| 424 |
+
# User:
|
| 425 |
+
|
| 426 |
+
You are given the following information about a LENGTH second video, with information from individual frames at different timestamps.
|
| 427 |
+
|
| 428 |
+
INFORMATION: INFO
|
| 429 |
+
|
| 430 |
+
Currently, you are viewing second CURRENT TIMITAMP, which has the caption: FRAME CAPTION
|
| 431 |
+
|
| 432 |
+
Form up to 3 questions about this frame to best help answer the multiple-choice question: QUESTION.
|
| 433 |
+
|
| 434 |
+
Follow these rules:
|
| 435 |
+
|
| 436 |
+
1. Use the given information to decide what further visual information you need to answer the question.
|
| 437 |
+
2. Since you are asking questions about a single frame, you cannot ask about other frames, reference past or future events, or ask about specific timestamps.
|
| 438 |
+
|
| 439 |
+
Return your questions as a Python list of strings (in double quotes) and don't include any numbered lists, backsticks, or language hints. Follow Python syntax. Make sure you have followed the steps. Don't provide any other response or explanation.
|
| 440 |
+
|
| 441 |
+
Assistant: Output: QUESTIONS
|
| 442 |
+
|
| 443 |
+
Table 8: Extractor prompt ${P}_{E}$ :
|
| 444 |
+
|
| 445 |
+
# User:
|
| 446 |
+
|
| 447 |
+
Evaluate if there is enough information to answer a multiple-choice question about a video and if the plan has been completed.
|
| 448 |
+
|
| 449 |
+
If there is enough information to choose the correct answer with complete certainty and the plan has been followed, return the index of the choice after a brief explanation. Otherwise, return None after a brief explanation of why you can't narrow down to a single answer choice.
|
| 450 |
+
|
| 451 |
+
Be strict and don't guess
|
| 452 |
+
|
| 453 |
+
INFORMATION: INFO
|
| 454 |
+
|
| 455 |
+
PLAN: PLAN
|
| 456 |
+
|
| 457 |
+
QUESTION: QUESTION
|
| 458 |
+
|
| 459 |
+
CHOICES: CHOICES
|
| 460 |
+
|
| 461 |
+
Give a brief explanation. Then, include your final answer after the words "Final Answer:" in your response at the end. Do not include anything other than the answer as an integer or None after "Final Answer:"
|
| 462 |
+
|
| 463 |
+
Let's think step by step.
|
| 464 |
+
|
| 465 |
+
Assistant: Output: ANSWER
|
| 466 |
+
|
| 467 |
+
Table 9:Evaluator prompt $P_V$ ..
|
| 468 |
+
|
| 469 |
+
# B.5 STAR
|
| 470 |
+
|
| 471 |
+
Dataset. STAR is a dataset that tests reasoning in real-world video situations. It consists of 22K video clips, with 60K situated reasoning questions, with 4 possible choices each. Questions are broadly divided into 4 main categories: interaction, sequence, prediction, and feasibility. This dataset is in English.
|
| 472 |
+
|
| 473 |
+
Inference Details. For STAR, we use LLaVA-1.6 (Vicuna 13B) as the LMM and GPT-3.5 (gpt-3.5-turbo-0125) as the LLM. We used shorter, simplified prompts, with no answer choices included in the Extractor prompt. We also initialize the memory bank with 5 frames, and use the multi-frame Retriever with 3 frames, since the videos are shorter.
|
| 474 |
+
|
| 475 |
+
# C Additional Related Work
|
| 476 |
+
|
| 477 |
+
Modular Vision Frameworks. There has been a long history of work (Andreas et al., 2016; Herzig et al., 2018; Krishna et al., 2018; Baradel et al., 2018; Battaglia et al., 2018; Herzig et al., 2020, 2022, 2019, 2023; Bar et al., 2021; Avraham et al., 2022; Jerbi et al., 2020; Herzig et al., 2024; Mitra et al., 2024) that attempts to combine deep neural networks with modularity. Recently, works like VisProg (Gupta and Kembhavi, 2023), CodeVQA (Subramanian et al., 2023), RVP (Ge et al., 2023), and ViperGPT (Surís et al., 2023) have leveraged the improved coding capabilities of LMMs to generate code to compose different submodules together to answer visual questions. In addition, ProViQ (Choudhury et al., 2023) extends ViperGPT's work in the video domain by adding more modules for VideoQA. Similarly, we leverage the strong power of LMMs in a modular approach. However, while these approaches have shown promising results, they are limited to single-shot planning when generating code, resulting in a fixed plan that cannot adapt. In contrast to these works, our approach has the advantage of being able to iteratively replan based on new information collected.
|
| 478 |
+
|
| 479 |
+
# D Qualitative Visualizations
|
| 480 |
+
|
| 481 |
+
We present further qualitative success and failure cases of our TraveLER framework. For each dataset, we display qualitative visualizations for 2 successes and 2 failure cases. For the success cases, we show expanded visualizations in Figures Table 5, Table 6, Table 7, and abridged versions in 8 that demonstrate the benefits of our question-answering approach compared to regular caption
|
| 482 |
+
|
| 483 |
+
ing. For failures, we also present abridged versions for each dataset in Figures Table 9, 10, and 11. Finally, we present some additional success and failure cases in 12. For the visualizations, we display 3 iterations of the question answering process with 2 Extractor QA pairs each, compressing the output text by displaying the most important parts for brevity. For the abridged versions, we display the video on top, and the traversal order using the numbered orange circles. In the row beneath, we display the frames in the order they are selected, and display corresponding Extractor question-answer output in yellow and captions in gray.
|
| 484 |
+
|
| 485 |
+
# E Licenses and Privacy
|
| 486 |
+
|
| 487 |
+
The license, PII, and consent details of each dataset are in the respective papers. In addition, we wish to emphasize that the datasets we use do not contain any harmful or offensive content, as many other papers in the field also use them. Thus, we do not anticipate a specific negative impact, but, as with any Machine Learning method, we recommend to exercise caution.
|
| 488 |
+
|
| 489 |
+
# Successes
|
| 490 |
+
|
| 491 |
+
# NeXT-QA
|
| 492 |
+
|
| 493 |
+
# Question and Choices
|
| 494 |
+
|
| 495 |
+
Q: Why is there a ladder in the middle of the land?
|
| 496 |
+
|
| 497 |
+
A: (A) for child to play in (B) supervising boy (C) tree trimming (D) cross over fence (E) to play
|
| 498 |
+
|
| 499 |
+

|
| 500 |
+
Iteration 1
|
| 501 |
+
|
| 502 |
+

|
| 503 |
+
Iteration 2
|
| 504 |
+
|
| 505 |
+

|
| 506 |
+
Iteration 3
|
| 507 |
+
Current Frame
|
| 508 |
+
Figure 5: NeXT-QA Success Predictions. We can see that our framework can adapt to new information collected in past iterations. For example, in Iteration 3, our Planner module is able to use information about the wooden post from a previous iteration and ask further questions to identify the correct answer.
|
| 509 |
+
|
| 510 |
+
# Successes
|
| 511 |
+
|
| 512 |
+
# STAR
|
| 513 |
+
|
| 514 |
+
# Question and Choices
|
| 515 |
+
|
| 516 |
+
Q: What happened before the person took the blanket?
|
| 517 |
+
|
| 518 |
+
A: (A) Opened the box. (B) Opened the door. (C) Ate the sandwich. (D) Threw the towel.
|
| 519 |
+
|
| 520 |
+

|
| 521 |
+
Iteration 1
|
| 522 |
+
Iteration 3
|
| 523 |
+
Current Frame
|
| 524 |
+
|
| 525 |
+

|
| 526 |
+
|
| 527 |
+

|
| 528 |
+
Iteration 4
|
| 529 |
+
Current Frame
|
| 530 |
+
Figure 6: STAR Success Predictions. Here, we can see that our method does not require viewing frames sequentially. For example, we view the beginning of the video in Iteration 1, the middle of the video in Iterations 2 and 3, and return to the beginning in Iteration 4. Moreover, our method can collect information and double-check ambiguous information across different timestamps. For example, in Iteration 2, we are told the man is taking a blanket, and then we can view a different frame to confirm that he is indeed holding a towel in Iteration 3.
|
| 531 |
+
|
| 532 |
+
# Successes
|
| 533 |
+
|
| 534 |
+
# Perception Test
|
| 535 |
+
|
| 536 |
+
# Question and Choices
|
| 537 |
+
|
| 538 |
+
Q: What stops the motion of the object placed on the slanted plane after being released by the person the first time? A: (A) I don't know. (B) The person or collision with another object. (C) High friction with the surface.
|
| 539 |
+
|
| 540 |
+

|
| 541 |
+
Current Frame
|
| 542 |
+
|
| 543 |
+

|
| 544 |
+
Iteration 2
|
| 545 |
+
Current Frame
|
| 546 |
+
|
| 547 |
+

|
| 548 |
+
Iteration 3
|
| 549 |
+
Current Frame
|
| 550 |
+
Figure 7: Perception Test Success Predictions. We display some success cases for the challenging Perception Test dataset. Here, our method is able to infer which objects the question refers to through our question-asking approach, even though the question does not explicitly describe them.
|
| 551 |
+
|
| 552 |
+
# Successes
|
| 553 |
+
|
| 554 |
+
# NeXT-QA
|
| 555 |
+
|
| 556 |
+
# Question and Choices
|
| 557 |
+
|
| 558 |
+
Q: What is the color of the shirt of the lady cycling?
|
| 559 |
+
|
| 560 |
+
A: (A) black (B) light blue (C) white and red (D) blue (E) purple
|
| 561 |
+
|
| 562 |
+

|
| 563 |
+
|
| 564 |
+
# TravelER Output (Ours)
|
| 565 |
+
|
| 566 |
+

|
| 567 |
+
|
| 568 |
+
# Caption Comparison (Others)
|
| 569 |
+
|
| 570 |
+
C: A man is holding a keyboard instrument in a desert
|
| 571 |
+
|
| 572 |
+
C: A man holds a keyboard and a woman is on a bike
|
| 573 |
+
|
| 574 |
+
C: A man holds a keyboard and a woman is on a bike
|
| 575 |
+
|
| 576 |
+
C: Two men are in a desert, possibly dancing together
|
| 577 |
+
|
| 578 |
+
# STAR
|
| 579 |
+
|
| 580 |
+
# Question and Choices
|
| 581 |
+
|
| 582 |
+
Q: What object did the person throw before they took the book?
|
| 583 |
+
|
| 584 |
+
A: (A) the towel (B) the laptop (C) the bag (D) the blanket
|
| 585 |
+
|
| 586 |
+

|
| 587 |
+
|
| 588 |
+
# TravelER Output (Ours)
|
| 589 |
+
|
| 590 |
+

|
| 591 |
+
|
| 592 |
+
# Caption Comparison (Others)
|
| 593 |
+
|
| 594 |
+

|
| 595 |
+
|
| 596 |
+
# Perception Test
|
| 597 |
+
|
| 598 |
+
# Question and Choices
|
| 599 |
+
|
| 600 |
+
Q: Is the paper lined or plain?
|
| 601 |
+
|
| 602 |
+
A: (A) lined (B) I don't know (C) plain
|
| 603 |
+
|
| 604 |
+

|
| 605 |
+
Figure 8: Comparison with Captioning Approaches. For each example, we display the videos on top, and the traversal order using the numbered orange circles. In the rows beneath, we display the frames in the order they are selected, and display corresponding Extractor question-answer output in yellow and captions in gray. We display compressed versions of GPT-4V-generated captions for a visual comparison. By asking specific questions, we can extract more detailed and relevant information than a general description.
|
| 606 |
+
|
| 607 |
+
# TravelER Output (Ours)
|
| 608 |
+
|
| 609 |
+

|
| 610 |
+
|
| 611 |
+
# Caption Comparison (Others)
|
| 612 |
+
|
| 613 |
+
C: Person seated with paper and a blue pen
|
| 614 |
+
|
| 615 |
+
C: Person writing with toys in the background
|
| 616 |
+
|
| 617 |
+
C: Person flips the paper, showing what they wrote
|
| 618 |
+
|
| 619 |
+
C: Person shows the paper with "MOON" written
|
| 620 |
+
|
| 621 |
+
# Failures
|
| 622 |
+
|
| 623 |
+
# NeXT-QA
|
| 624 |
+
|
| 625 |
+
# Example 1
|
| 626 |
+
|
| 627 |
+
Question and Choices
|
| 628 |
+
|
| 629 |
+
Q: How many drums in total are there for the people to play?
|
| 630 |
+
|
| 631 |
+
A: (A) four (B) two (C) six (D) three (E) eleven
|
| 632 |
+
|
| 633 |
+

|
| 634 |
+
|
| 635 |
+
# TravelER Output (Ours)
|
| 636 |
+
|
| 637 |
+

|
| 638 |
+
|
| 639 |
+
Q: How many drums are there?
|
| 640 |
+
|
| 641 |
+
A:Four
|
| 642 |
+
|
| 643 |
+

|
| 644 |
+
|
| 645 |
+
Q: How many drums are there?
|
| 646 |
+
|
| 647 |
+
A:Four
|
| 648 |
+
|
| 649 |
+

|
| 650 |
+
|
| 651 |
+
Q: How many drums are there?
|
| 652 |
+
|
| 653 |
+
A: None
|
| 654 |
+
|
| 655 |
+

|
| 656 |
+
|
| 657 |
+
Q: How many drums are there?
|
| 658 |
+
|
| 659 |
+
A: Three
|
| 660 |
+
|
| 661 |
+
# Caption Comparison (Others)
|
| 662 |
+
|
| 663 |
+
C: A child holds a drum set and looks forward
|
| 664 |
+
|
| 665 |
+
C: A child is focused, while another person plays the drums in the foreground
|
| 666 |
+
|
| 667 |
+
C: A woman appears to be instructing the people playing the drums
|
| 668 |
+
|
| 669 |
+
C: A child is playing a drum with concentration, with another person behind them
|
| 670 |
+
|
| 671 |
+
# Example 2
|
| 672 |
+
|
| 673 |
+
Question and Choices
|
| 674 |
+
|
| 675 |
+
Q: How is the atmosphere of this group discussion?
|
| 676 |
+
|
| 677 |
+
A: (A) happy (B) serious (C) sad (D) angry (E) shocking
|
| 678 |
+
|
| 679 |
+

|
| 680 |
+
|
| 681 |
+
# TravelER Output (Ours)
|
| 682 |
+
|
| 683 |
+

|
| 684 |
+
|
| 685 |
+
Q: What are the person's emotions?
|
| 686 |
+
|
| 687 |
+
A: They are focused
|
| 688 |
+
|
| 689 |
+

|
| 690 |
+
|
| 691 |
+
Q: Is anyone smiling or laughing?
|
| 692 |
+
|
| 693 |
+
A: Yes, the two women are smiling.
|
| 694 |
+
|
| 695 |
+

|
| 696 |
+
|
| 697 |
+
Q: Is the person angry or shouting?
|
| 698 |
+
|
| 699 |
+
A: No
|
| 700 |
+
|
| 701 |
+

|
| 702 |
+
|
| 703 |
+
Q: Are they surprised or shocked?
|
| 704 |
+
|
| 705 |
+
A:No
|
| 706 |
+
|
| 707 |
+
# Caption Comparison (Others)
|
| 708 |
+
|
| 709 |
+
C: A person looking towards something off-camera
|
| 710 |
+
|
| 711 |
+
C: Two people smiling and engaged in conversation
|
| 712 |
+
|
| 713 |
+
C: A person looking towards something off-camera
|
| 714 |
+
|
| 715 |
+
C: People gathered in a cozy living room
|
| 716 |
+
|
| 717 |
+
Figure 9: NeXT-QA Failure Predictions. Here, we display some failure cases for NeXT-QA. Like before, we display the video on top, and the traversal order using the numbered orange circles. In the row beneath, we display the frames in the order they are selected, and display corresponding Extractor question-answer output in yellow and captions in gray. We can see that conflicting information or false positives can mislead our approach. We also observe that counting can be a challenge for certain LMMs, but this can be mitigated in the future by swapping in stronger LMMs.
|
| 718 |
+
|
| 719 |
+
# Failures
|
| 720 |
+
|
| 721 |
+
# STAR
|
| 722 |
+
|
| 723 |
+
# Example 1
|
| 724 |
+
|
| 725 |
+
# Answer
|
| 726 |
+
|
| 727 |
+
Q: What did the person do to the window after holding the broom?
|
| 728 |
+
|
| 729 |
+
A: (A) Closed. (B) Opened. (C) Washed. (D) Lied on.
|
| 730 |
+
|
| 731 |
+

|
| 732 |
+
|
| 733 |
+
# TravelER Output (Ours)
|
| 734 |
+
|
| 735 |
+

|
| 736 |
+
|
| 737 |
+
Q: Is the person holding a broom?
|
| 738 |
+
|
| 739 |
+
A: Yes
|
| 740 |
+
|
| 741 |
+

|
| 742 |
+
|
| 743 |
+
Q: Is the person interacting with a window?
|
| 744 |
+
|
| 745 |
+
A: Yes
|
| 746 |
+
|
| 747 |
+

|
| 748 |
+
|
| 749 |
+
Q: Are they opening or closing the window
|
| 750 |
+
|
| 751 |
+
A: Opening
|
| 752 |
+
|
| 753 |
+

|
| 754 |
+
|
| 755 |
+
Q: Are they opening or closing the window
|
| 756 |
+
|
| 757 |
+
A: Opening
|
| 758 |
+
|
| 759 |
+
# Caption Comparison (Others)
|
| 760 |
+
|
| 761 |
+
C: Person standing near washing machine with object in hand
|
| 762 |
+
|
| 763 |
+
C: Person moving towards the right, reaching upwards
|
| 764 |
+
|
| 765 |
+
C: A person mid gesture, next to washing machines
|
| 766 |
+
|
| 767 |
+
C: A person near a wall and washing machines
|
| 768 |
+
|
| 769 |
+
# Example 2
|
| 770 |
+
|
| 771 |
+
# Answer
|
| 772 |
+
|
| 773 |
+
Q: What did the person do with the book?
|
| 774 |
+
|
| 775 |
+
A: (A) Took. (B) Opened. (C) Threw. (D) Put down.
|
| 776 |
+
|
| 777 |
+

|
| 778 |
+
Figure 10: STAR Failure Cases. Here, we display some failure cases for the STAR dataset, using the same abridged representation described previously. We see that a limitation of a framewise approach is that it may be difficult to capture very temporal actions. For example, in Example 1, it is difficult to understand if the woman is opening or closing the window.
|
| 779 |
+
|
| 780 |
+
# TravelER Output (Ours)
|
| 781 |
+
|
| 782 |
+

|
| 783 |
+
|
| 784 |
+
Q: What is the person doing?
|
| 785 |
+
|
| 786 |
+
A: They are standing with a book
|
| 787 |
+
|
| 788 |
+

|
| 789 |
+
|
| 790 |
+
Q: What is the person doing?
|
| 791 |
+
|
| 792 |
+
A: They are reading a book
|
| 793 |
+
|
| 794 |
+

|
| 795 |
+
|
| 796 |
+
Q: Is the person still reading?
|
| 797 |
+
|
| 798 |
+
A: No, they are standing
|
| 799 |
+
|
| 800 |
+

|
| 801 |
+
|
| 802 |
+
Q: Does the person put down or throw the book?
|
| 803 |
+
|
| 804 |
+
A: No
|
| 805 |
+
|
| 806 |
+
# Caption Comparison (Others)
|
| 807 |
+
|
| 808 |
+
C: A person sitting upright with a book or tablet in hand
|
| 809 |
+
|
| 810 |
+
C: A person sitting in a living room reading a book
|
| 811 |
+
|
| 812 |
+
C: A person standing up in a living room
|
| 813 |
+
|
| 814 |
+
C: A person sitting in a living room reading a book
|
| 815 |
+
|
| 816 |
+
# Failures
|
| 817 |
+
|
| 818 |
+
# Perception Test
|
| 819 |
+
|
| 820 |
+
# Example 1
|
| 821 |
+
|
| 822 |
+
# Question and Choices
|
| 823 |
+
|
| 824 |
+
Q: The person uses multiple similar objects to play an occlusion game. Where is the hidden object at the end of the game from the person's point of view?
|
| 825 |
+
|
| 826 |
+
A: (A) Under the third object from the left. (B) Under the second object from the left. (C) Under the first object from the left.
|
| 827 |
+
|
| 828 |
+

|
| 829 |
+
|
| 830 |
+
# TravelER Output (Ours)
|
| 831 |
+
|
| 832 |
+

|
| 833 |
+
|
| 834 |
+
# Caption Comparison (Others)
|
| 835 |
+
|
| 836 |
+
C: A hand is positioned above three red mugs on a table
|
| 837 |
+
|
| 838 |
+
C: A hand touches one of the mugs, about to move it
|
| 839 |
+
|
| 840 |
+
C: A hand holds a spoon above a cup
|
| 841 |
+
|
| 842 |
+
C: A hand is hovering around the rightmost mug
|
| 843 |
+
|
| 844 |
+
# Example 2
|
| 845 |
+
|
| 846 |
+
# Question and Choices
|
| 847 |
+
|
| 848 |
+
Q: Can the person close the door during the last attempt?
|
| 849 |
+
|
| 850 |
+
A: (A) No, the person cannot close the door. (B) Yes, the person can close the door. (C) The person didn't attempt to close the door in this video.
|
| 851 |
+
|
| 852 |
+

|
| 853 |
+
Figure 11: Perception Test Failure Cases. We display some qualitative visualizations for Perception Test failure cases using the abridged representation discussed previously. We see that for some cases where objects of interest are occluded or not in the frame, our method might have difficulties extracting useful information.
|
| 854 |
+
|
| 855 |
+
# TravelER Output (Ours)
|
| 856 |
+
|
| 857 |
+

|
| 858 |
+
|
| 859 |
+
# Caption Comparison (Others)
|
| 860 |
+
|
| 861 |
+
C: A finger points at a small red bottle on a tiled floor
|
| 862 |
+
|
| 863 |
+
C: A finger is pushing the bottle, causing it to tip
|
| 864 |
+
|
| 865 |
+
C: A bottle is falling, it is upside down
|
| 866 |
+
|
| 867 |
+
C: A jar and a fallen bottle are on a red tile floor
|
| 868 |
+
|
| 869 |
+
# Successes
|
| 870 |
+
|
| 871 |
+
# NExT-QA
|
| 872 |
+
|
| 873 |
+
Q: Why are the men wearing hats?
|
| 874 |
+
|
| 875 |
+
A: (A) Sunny (B) Fashion (C) Costume of play (D) Uniform costume (E) Road repairing
|
| 876 |
+
|
| 877 |
+

|
| 878 |
+
|
| 879 |
+
Q: What is the weather like?
|
| 880 |
+
|
| 881 |
+
A: It is sunny
|
| 882 |
+
|
| 883 |
+

|
| 884 |
+
|
| 885 |
+
Q: Are the men wearing uniforms
|
| 886 |
+
|
| 887 |
+
A: No, they wear outdoor gear
|
| 888 |
+
|
| 889 |
+
C: A group of hikers, with one person resting an arm on another
|
| 890 |
+
|
| 891 |
+

|
| 892 |
+
|
| 893 |
+
Q: What are the men doing?
|
| 894 |
+
|
| 895 |
+
A: They are walking
|
| 896 |
+
|
| 897 |
+
C: Friends hiking together, with one's arm on another
|
| 898 |
+
|
| 899 |
+

|
| 900 |
+
|
| 901 |
+
Q: Are there shadows that show sunny weather?
|
| 902 |
+
|
| 903 |
+
A: Yes, there are
|
| 904 |
+
|
| 905 |
+
C: A group of hikers, walking together along a road
|
| 906 |
+
|
| 907 |
+
# Perception Test
|
| 908 |
+
|
| 909 |
+
Q: Why can't the box be closed at the end?
|
| 910 |
+
|
| 911 |
+
A: (A) The person put one or more objects that are too large to fit in the box, even if placed by themselves. (B) Each of the objects would fit in the box individually, but the person put too many objects. (C) The lid does not match the box.
|
| 912 |
+
|
| 913 |
+

|
| 914 |
+
|
| 915 |
+
Q: Why can't the box be closed?
|
| 916 |
+
|
| 917 |
+
A: It is not clear
|
| 918 |
+
|
| 919 |
+
C: A person standing behind a table, presenting a shoebox with a GoPro logo on it.
|
| 920 |
+
|
| 921 |
+

|
| 922 |
+
|
| 923 |
+
Q: What is in the box?
|
| 924 |
+
|
| 925 |
+
A: A small bottle and container
|
| 926 |
+
|
| 927 |
+
C: A person is unpacking it on a table. There are objects like a plant vase and boxes
|
| 928 |
+
|
| 929 |
+

|
| 930 |
+
|
| 931 |
+
Q: Are the objects smaller than the box?
|
| 932 |
+
|
| 933 |
+
A: Yes, they are
|
| 934 |
+
|
| 935 |
+
C: A person organizes items on a table with objects like a box with a yellow lid, and a potted plant.
|
| 936 |
+
|
| 937 |
+

|
| 938 |
+
|
| 939 |
+
Q: Are there too many objects?
|
| 940 |
+
|
| 941 |
+
A: Yes, it is overflowing
|
| 942 |
+
|
| 943 |
+
C: A person appears to be sorting through items on a table, with a stack of boxes and containers
|
| 944 |
+
|
| 945 |
+
# Failures
|
| 946 |
+
|
| 947 |
+
# NExT-QA
|
| 948 |
+
|
| 949 |
+
Q: What does the lady do after taking the microphone from the man in red cape at the start?
|
| 950 |
+
|
| 951 |
+
A: (A) put 2 fingers up (B) talk to the audience (C) turn behind her (D) eat (E) put hands together
|
| 952 |
+
|
| 953 |
+

|
| 954 |
+
|
| 955 |
+
Q: Does the lady have the mic?
|
| 956 |
+
|
| 957 |
+
A: No, the man has it
|
| 958 |
+
|
| 959 |
+
C: A karaoke night with participants on stage, one draped in a Swiss flag.
|
| 960 |
+
|
| 961 |
+

|
| 962 |
+
|
| 963 |
+
Q: Does the lady have the mic?
|
| 964 |
+
|
| 965 |
+
A: Yes
|
| 966 |
+
|
| 967 |
+
C: An eclectic performance at a colorful music event.
|
| 968 |
+
|
| 969 |
+

|
| 970 |
+
|
| 971 |
+
Q: What is the lady doing?
|
| 972 |
+
|
| 973 |
+
A: She is holding it
|
| 974 |
+
|
| 975 |
+
C: Band performing on stage with vocalist as other members look on.
|
| 976 |
+
|
| 977 |
+

|
| 978 |
+
|
| 979 |
+
Q: What is she doing?
|
| 980 |
+
|
| 981 |
+
A: She is high-fiving
|
| 982 |
+
|
| 983 |
+
C: A high-spirited karaoke night where a performer gets a high-five on stage.
|
| 984 |
+
|
| 985 |
+
# Perception Test
|
| 986 |
+
|
| 987 |
+
Q: The person interacts with a lighting device among other objects. Is the lighting device on at any point?
|
| 988 |
+
|
| 989 |
+
A: (A) I don't know (B) yes (C) no
|
| 990 |
+
|
| 991 |
+

|
| 992 |
+
|
| 993 |
+
Q: Is there a lighting device?
|
| 994 |
+
|
| 995 |
+
A: Yes, a lamp
|
| 996 |
+
|
| 997 |
+
C: A person is reaching out towards an electronic device with wires and routers.
|
| 998 |
+
|
| 999 |
+

|
| 1000 |
+
|
| 1001 |
+
Q: Is the lamp on?
|
| 1002 |
+
|
| 1003 |
+
A: No, it is off
|
| 1004 |
+
|
| 1005 |
+
C: A person is standing next to a shelf with household items.
|
| 1006 |
+
|
| 1007 |
+

|
| 1008 |
+
|
| 1009 |
+
Q: Is the lamp on?
|
| 1010 |
+
|
| 1011 |
+
A: No, is off
|
| 1012 |
+
|
| 1013 |
+
C: An individual is standing by a shelf with electronic devices and a router.
|
| 1014 |
+
|
| 1015 |
+

|
| 1016 |
+
|
| 1017 |
+
Q: Is the lamp on?
|
| 1018 |
+
|
| 1019 |
+
A: No, it is off
|
| 1020 |
+
|
| 1021 |
+
C: A person is standing next to a shelf with household items.
|
| 1022 |
+
|
| 1023 |
+
Figure 12: An additional visualization of predictions. We show more qualitative visualizations of our method on NExT-QA and Perception Test using our abridged representation, with successes on top and failures on the bottom. We compare our generated question-answer pairs for each frame (in yellow) with captions (labeled C in gray) generated from the same frame. We see that our method is able to extract more fine-grained and relevant information compared to simple captioning.
|
2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:deb7b5324a88ff350cf73c15334ed19adf5ad1d69b9058a6905e4f187a1d0e78
|
| 3 |
+
size 1920567
|
2024/TraveLER_ A Modular Multi-LMM Agent Framework for Video Question-Answering/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Tree of Problems_ Improving structured problem solving with compositionality/418dcc40-3e0e-4ed6-aa5d-caf94c578b26_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Tree of Problems_ Improving structured problem solving with compositionality/418dcc40-3e0e-4ed6-aa5d-caf94c578b26_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Tree of Problems_ Improving structured problem solving with compositionality/418dcc40-3e0e-4ed6-aa5d-caf94c578b26_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96682abd52c6bc61112f87befa3cad2b2232be3fabd8f0a256bc3a0ea2169d9f
|
| 3 |
+
size 562431
|
2024/Tree of Problems_ Improving structured problem solving with compositionality/full.md
ADDED
|
@@ -0,0 +1,466 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tree of Problems: Improving structured problem solving with compositionality
|
| 2 |
+
|
| 3 |
+
Armel Zebaze, Benoit Sagot, Rachel Bawden
|
| 4 |
+
|
| 5 |
+
Inria, Paris, France
|
| 6 |
+
|
| 7 |
+
{firstname这个名字}@inria.fr
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Large Language Models (LLMs) have demonstrated remarkable performance across multiple tasks through in-context learning. For complex reasoning tasks that require step-by-step thinking, Chain-of-Thought (CoT) prompting has given impressive results, especially when combined with self-consistency. Nonetheless, some tasks remain particularly difficult for LLMs to solve. Tree of Thoughts (ToT) and Graph of Thoughts (GoT) emerged as alternatives, dividing the complex problem into paths of subproblems. In this paper, we propose Tree of Problems (ToP), a simpler version of ToT, which we hypothesise can work better for complex tasks that can be divided into identical subtasks. Our empirical results show that our approach outperforms ToT and GoT, and in addition performs better than CoT on complex reasoning tasks. All code for this paper is publicly available here: https://github.com/ArmelRandy/tree-of-problems.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
In-Context Learning (ICL) (Brown et al., 2020) is the ability of Large Language Models (LLMs) to perform a task with the help of a few demonstrations within their context. It is widely used to evaluate LLMs on various tasks. These models, whose number of parameters and training corpus size has increased massively over recent years, keep pushing the state of the art on a wide range of natural language tasks (Anil et al., 2023; Touvron et al., 2023; Gemma Team et al., 2024). However, they still struggle to perform complex tasks, notably those requiring multiple reasoning steps (Hendrycks et al., 2021a,b; Suzgun et al., 2023). Recently, Chain-of-Thought (CoT) prompting (Wei et al., 2022; Kojima et al., 2022) has greatly helped to enhance reasoning abilities of LLMs by helping them to mimic step-by-step reasoning. However, CoT implicitly requires the model to generalize beyond
|
| 16 |
+
|
| 17 |
+
the cases seen in its prompt, which often leads to poor out-of-domain performance (Zhou et al., 2023). Applying CoT with self-consistency (Wang et al., 2023b) drives the model to explore multiple reasoning paths and to choose the most consistent answer, usually yielding better performance, but helping only marginally with out-of-distribution generalization. Moreover, solving complex problems involves understanding their underlying structure; this can help to avoid lengthy CoTs that are prone to reasoning errors.
|
| 18 |
+
|
| 19 |
+
In this paper, we propose to tackle complex problem-solving and out-of-distribution generalization by dividing complex tasks into a series of simpler sub-tasks. We draw inspiration from techniques such as dynamic programming and divide and conquer in order to efficiently guide LLMs through complex problem solving. Such problems have previously been tackled using approaches adding structure to CoT, such as Tree of Thoughts (ToT) (Yao et al., 2023) and Graph of Thoughts (GoT) (Besta et al., 2024), which consist in sampling diverse reasoning paths (where path states represent subproblems) and finding the optimal path. We argue that for a subset of complex reasoning problems, where an instance can be decomposed into multiple analogous subinstances, ToT and GoT are overly complex, and the tasks can be better solved by a simpler approach. This simpler approach, which we name Tree of Problems (ToP) consists in building a tree structure, where each node represents a problem instance similar to the main instance. The deepest instances, which correspond to atomic problems, are solved first with CoT prompting and the internal nodes are recursively solved by merging their children's solutions. Figure 1 illustrates our method on the tasks of Last Letter Concatenation and Navigate from the BIG-Bench Hard benchmark (Suzgun et al., 2023).
|
| 20 |
+
|
| 21 |
+
We conduct a comprehensive evaluation on several LLMs, including GPT-3.5, on multiple hard
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Overview of the Tree of Problems (ToP) framework for two tasks. On the left (a canonical task consisting of independent subproblems organised in a tree structure), the task is to concatenate the last letters of a list of names, accomplished by breaking the list in two, finding their solutions, and recombining them. On the right (an extension of the canonical structure to handle sequential tasks), the task is to determine the final position of an object after a series of steps. We first find its position after half of the steps, and then determine the final position by tracing the object through the remaining steps. See Section 3 for a description of ToP.
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
|
| 28 |
+
tasks. We find that ToP improves LLMs' problem solving abilities on structured tasks outperforming CoT, ToT and GoT by a large margin.
|
| 29 |
+
|
| 30 |
+
# 2 Related Work
|
| 31 |
+
|
| 32 |
+
CoT prompting was proposed to enhance reasoning by incorporating step-by-step logic into few-shot prompt demonstrations (Wei et al., 2022). It showed significant improvement over standard input-output (IO) prompting across various mathematical and symbolic reasoning benchmarks. Building on this, Kojima et al. (2022) and Wang et al. (2023a) inter alia demonstrated that zero-shot CoT could be achieved by using reasoning-inducing words at the end of the zero-shot prompt. Other works showed that wisely designing the CoT demonstrations could yield further improvements (Zhang et al., 2023; Fu et al., 2022). CoT Self-Consistency (CoT-SC; Wang et al. 2023b) improved on CoT by sampling diverse reasoning steps and selecting the most consistent answer after marginalizing over the reasoning paths. Our research also builds on the body of work addressing problem-solving through compositionality, which involves teaching LLMs to tackle complex problems by breaking them down into a series of subproblems and recursively solving them to derive
|
| 33 |
+
|
| 34 |
+
the final answer, e.g. Least-to-Most (Zhou et al., 2023), decomposed (Khot et al., 2023) and successive (Dua et al., 2022) prompting. While these works align with our approach through their use of problem decomposition, we focus on breaking a main task into multiple similar subtasks, solvable using the same prompt. Moreover, our approach uses a tree structure that allows for greater flexibility and coverage in problem solving. The most closely related approaches are Tree of Thoughts (ToT) (Yao et al., 2023) and Graph of Thoughts (GoT) (Besta et al., 2024). ToT builds on the idea of sampling diverse reasoning paths but redefines problem solving as a search over a thought space, where states represent partial solutions. GoT extends ToT by including thought aggregation, which is analogous to our merge operation and by allowing refining (Madaan et al., 2023). While a "thought" represents a general reasoning step in their approach, we focus on reasoning through subproblems. We do not perform a search over a tree of thoughts, nor do we score or refine (improve) our tree nodes. Instead, each node in the tree of problems is directly relevant to solving the problem, and their bottom-up recombination produces the final solution. ToP is therefore a simpler and more cost-effective alternative to ToT and GoT.
|
| 35 |
+
|
| 36 |
+
# 3 Our method
|
| 37 |
+
|
| 38 |
+
Solving a complex problem often requires reasoning, partly explaining the success of CoT prompting for such problems. Reasoning involves understanding a problem's structure and design. This aspect is frequently overlooked in CoT because incorporating it can be challenging. Our method addresses this by constructing a tree of simpler, closely related subproblems to solve a more complex problem. We hypothesize that the capability of an LLM to solve simple instances can be extended to more complex ones. The ability of an LLM to solve a complex instance therefore lies in how accurately it can solve simpler ones and then combine their answers. The main class of problems we aim to tackle are complex problems that are divisible into independent subproblems resembling the initial one (we refer to these as canonical tasks). However, we also experiment with relaxing the independency constraint in order to tackle sequential tasks, which require finding the final state of a system after a series of independent processing steps (See the right of Figure 1). Our method relies on the following components:
|
| 39 |
+
|
| 40 |
+
- A decomposer divides a problem instance into a series of smaller related instances, algorithmically or via few-shot prompting with a divide_prompt. We recursively build a tree of problems (nodes) considering 2 parameters: the breadth (the number of children of each internal node) and the depth of the tree, directly related to the granularity of the atomic subproblems. The root of the tree is the main problem. In this paper, ToP $(b, d)$ refers to using breadth $b$ and depth $d$ .
|
| 41 |
+
- A solver is used to do the task of interest, namely the simplest instances obtained after decomposition (in our case an LLM with a task-specific solve_prompt).
|
| 42 |
+
- A merger receives the solved subproblems (problem statement and solution) at level $k$ to build and solve the problem at level $k - 1$ . It uses a specific merge_prompt to get the LLM to learn to combine the subproblems' solutions into the parent solution. As opposed to L2M, the prompt to get the solution of a problem at a level $k$ only depends on the directly connected problems (at the level $k + 1$ ).
|
| 43 |
+
|
| 44 |
+
The workflow can be described as follows: The decomposer builds the tree of problems, the solver addresses the subproblems at the tree's leaves, and the merger recursively derives each node's solution
|
| 45 |
+
|
| 46 |
+
by combining its children's solutions in a bottom-up approach. The total number of inference calls (omitting the cost of problem decomposition) is equal to the number of nodes in the tree structure.
|
| 47 |
+
|
| 48 |
+
In addition to canonical tasks with a classic tree structure (see the left of Figure 1), ToP can also be used for sequential tasks, where a given subproblem needs the result of a previous subproblem as an input (see the right of Figure 1). Our standard ToP paradigm described above can be used to solve such problems by setting the breadth to 1. This has the effect that the problem is decomposed into a sequence of $n$ subproblems organised as hierarchy of depth $n$ . When solving the $(k + 1)$ -th subproblem, the solver will have access to its child subproblem's result, i.e. the result of subproblem $k$ , thereby accounting for the sequentiality of the decomposition. The LLM is no longer required to merge subproblems' solutions; it is directly fed with a new problem formulation automatically computed using the corresponding child's solution. The final solution is obtained by solving the last subproblem, and so the main problem instance (root node) does not influence the inference cost.
|
| 49 |
+
|
| 50 |
+
For both tasks, all problems at the same level of the tree are solved in parallel to promote efficiency. We further detail the method with more examples in Appendix A.
|
| 51 |
+
|
| 52 |
+
# 4 Experiments
|
| 53 |
+
|
| 54 |
+
We first compare ToP to ToT and GoT to test our hypothesis that our simpler approach is more adapted to canonical tasks. We do this using the GoT tasks proposed by Besta et al. (2024). We then show that ToP is more effective in comparison to IO (direct input-output) and CoT prompting across a wider ranger of canonical tasks, namely Last Letter Concatenation (Wei et al., 2022) and 5 BIG-Bench Hard (Srivastava et al., 2023) tasks fitting the description. Finally, we test ToP on sequential tasks.
|
| 55 |
+
|
| 56 |
+
# 4.1 Datasets
|
| 57 |
+
|
| 58 |
+
GoT tasks. Besta et al. (2024) compared GoT to ToT, IO, and CoT prompting on three tasks (each with 100 examples): (i) Sorting, which involves arranging a list of 32 numbers ranging from 0 to 9 (both inclusive) in order, (ii) Set Intersection, which involves finding the common elements between two sets, each containing 32 elements and (iii) Keyword Counting, which involves identifying countries mentioned in a text and counting how
|
| 59 |
+
|
| 60 |
+
many times each country appears.
|
| 61 |
+
|
| 62 |
+
Symbolic Reasoning. We use two toy tasks introduced by Wei et al. (2022) (each with 500 examples): (i) Last Letter Concatenation, where the LLM is tasked with recovering the concatenation of the last letters from a list of names and (ii) Coin Flip, which evaluates if the LLM can deduce the final state of a coin (heads or tails) after people either flip it or not. During evaluation, we consider various list lengths (4, 8 and 16) for the first task, and different numbers of people involved (4, 8 and 16) for the second.
|
| 63 |
+
|
| 64 |
+
BIG-Bench Hard (BBH). BBH consists of 23 BIG-Bench (Srivastava et al., 2023) tasks that have been shown to benefit from CoT (Suzgun et al., 2023). We use 8 tasks: Boolean Expressions, Hyperbaton, Multi-Step Arithmetic Two, Navigate, Object Counting, Tracking Shuffled Objects (3, 5, 7), Web of Lies and Word Sorting.
|
| 65 |
+
|
| 66 |
+
# 4.2 Language models and prompts
|
| 67 |
+
|
| 68 |
+
We experiment with gpt-3.5-turbo and gpt-3.5-turbo-instruct. For the solve_prompts, we use the CoT prompts of Suzgun et al. (2023) on BBH tasks, with minor changes. The CoT prompts for Symbolic Reasoning are inspired by those in (Wei et al., 2022), which contain 8 examples of 2-letters or 2-flips and those for GoT tasks are the same as in Besta et al. (2024). We report some implementation details in Appendix D and Appendix E.
|
| 69 |
+
|
| 70 |
+
# 4.3 Main results
|
| 71 |
+
|
| 72 |
+
GoT tasks. Table 1 compares our results on the GoT tasks with those obtained by rerunning the CoT, ToT and GoT approaches from (Besta et al., 2024). More precisely, we use the highest accuracy achieved with ToT and GoT on each task with gpt-3.5-turbo-0125. For Sorting, we intuitively choose $b = 2$ as in merge sort and $d = 2$ for performance. We use the same $b$ for Keyword Counting, with $d = 4$ to get simple atomic instances. In Set Intersection, we use $b = 4$ because each set is divided into two disjoint subsets, resulting in four pairs of subsets (one pair per subproblem). Such a large breadth was sufficient to produce simple atomic problems, so we used $d = 1$ . ToP outperforms
|
| 73 |
+
|
| 74 |
+
ToT and GoT by a large margin on sorting with an absolute improvement of $40\%$ over GoT. Similarly, ToP outperforms GoT by $19\%$ and $5\%$ respectively on Set Intersection and Keyword Counting.
|
| 75 |
+
|
| 76 |
+
<table><tr><td rowspan="2">GoT Tasks</td><td colspan="4">gpt-3.5-turbo</td></tr><tr><td>CoT</td><td>ToT (best)</td><td>GoT (best)</td><td>ToP (ours)</td></tr><tr><td>Sorting</td><td>0.02</td><td>0.17</td><td>0.28</td><td>0.68</td></tr><tr><td>Set Intersection</td><td>0.07</td><td>0.25</td><td>0.46</td><td>0.65</td></tr><tr><td>Keyword Counting</td><td>0.00</td><td>0.00</td><td>0.26</td><td>0.31</td></tr></table>
|
| 77 |
+
|
| 78 |
+
Last Letter Concatenation. We consider ToP (2, 1). Subproblems are obtained by dividing the main list into $b = 2$ lists of equal length.
|
| 79 |
+
|
| 80 |
+
Table 1: Results on 3 tasks from (Besta et al., 2024). In all results tables, best results are highlighted in bold.
|
| 81 |
+
|
| 82 |
+
<table><tr><td rowspan="2">Last Letter Concatenation</td><td colspan="3">gpt-3.5-turbo-instruct</td></tr><tr><td>IO</td><td>CoT</td><td>ToP (ours)</td></tr><tr><td>Four</td><td>0.032</td><td>0.900</td><td>0.990</td></tr><tr><td>Eight</td><td>0.000</td><td>0.662</td><td>0.854</td></tr><tr><td>Sixteen</td><td>0.000</td><td>0.252</td><td>0.444</td></tr></table>
|
| 83 |
+
|
| 84 |
+
Table 2: Results on Symbolic Reasoning tasks.
|
| 85 |
+
|
| 86 |
+
Comparison to Least-to-Most Prompting and CoT with Self-consistency. Least-to-most (L2M) prompting has also been successfully applied to Last Letter Concatenation (Zhou et al., 2023). Given a list of $L$ names, L2M requires $L - 1$ inference calls, the first to concatenate the first 2 last letters and the $L - 2$ other to add the remaining last letters one after the other. Following Huang et al. (2024), we provide a fair comparison of L2M to ToP by adapting ToP's tree structure to require the same number of inference calls as L2M. This is done by using trees of breadth 2 and depth $\log_2(L) - 1$ for lists of length $L$ . We compare ToP to L2M as well as CoT self-consistency with $L$ reasoning paths. The results (Table 3) show that for $L = 4$ or $L = 8$ , ToP (breadth = 2, depth = 1) achieves comparable performance to L2M while requiring half as many inference calls. When the number of inference calls is matched between the two methods, ToP demonstrates superior performance in all scenarios. CoT-SC lags behind both L2M and ToP.
|
| 87 |
+
|
| 88 |
+
Moreover, since L2M is similar to ToP $(1, L - 1)$ , we compare its accuracy to ToP (match) at each level of the tree. As illustrated in Figure 2, both methods start with a perfect score that gradually
|
| 89 |
+
|
| 90 |
+
<table><tr><td rowspan="2">Last Letter Concatenation</td><td colspan="4">gpt-3.5-turbo-instruct</td></tr><tr><td>CoT-SC</td><td>L2M</td><td>ToP</td><td>ToP (match)</td></tr><tr><td>Four</td><td>0.908</td><td>0.988</td><td>0.990</td><td>0.990</td></tr><tr><td>Eight</td><td>0.574</td><td>0.870</td><td>0.854</td><td>0.932</td></tr><tr><td>Sixteen</td><td>0.116</td><td>0.742</td><td>0.444</td><td>0.858</td></tr></table>
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 2: Per-level accuracy of Least to Most prompting and ToP (match) for Last Letter Concatenation.
|
| 94 |
+
|
| 95 |
+
decreases as they approach the task's resolution. ToP (match) consistently outperforms L2M at each step across all three settings.
|
| 96 |
+
|
| 97 |
+
# 4.4 Complementary results
|
| 98 |
+
|
| 99 |
+
We have successfully applied ToP to problems that can be divided into multiple independent instances. In this section, we report additional results for more such tasks and sequential tasks.
|
| 100 |
+
|
| 101 |
+
# 4.4.1 Canonical BBH tasks
|
| 102 |
+
|
| 103 |
+
BBH tasks such as Boolean Expressions, Hyperbaton, Multistep Arithmetic Two, Object Counting, and Word Sorting can be decomposed into multiple independent instances, whose solutions are later combined. They therefore correspond to canonical ToP tasks. We apply ToP (2, 1) to them and report results in Table 4. ToP yields an absolute improvement over CoT of $21.2\%$ on Word Sorting and $9.8\%$ on Hyperbaton. However, it is slightly worse than CoT on Boolean Expressions, Multistep Arithmetic Two and Object Counting with an average deterioration of $3.6\%$ on the 3 tasks. We attribute this loss of accuracy to reasoning inconsistencies and we explore this in more detail in Appendix C.4.
|
| 104 |
+
|
| 105 |
+
Table 3: Comparison of ToP to L2M and CoT-SC for Last Letter Concatenation. ToP (match) refers to ToP with the same number of inference calls as L2M.
|
| 106 |
+
|
| 107 |
+
<table><tr><td></td><td colspan="3">gpt-3.5-turbo-instruct</td></tr><tr><td></td><td>IO</td><td>CoT</td><td>ToP</td></tr><tr><td>Boolean Expressions</td><td>0.908</td><td>0.924</td><td>0.896</td></tr><tr><td>Hyperbaton</td><td>0.528</td><td>0.804</td><td>0.902</td></tr><tr><td>Multistep Arithmetic Two</td><td>0.032</td><td>0.780</td><td>0.736</td></tr><tr><td>Object Counting</td><td>0.412</td><td>0.928</td><td>0.892</td></tr><tr><td>Word Sorting</td><td>0.837</td><td>0.619</td><td>0.831</td></tr></table>
|
| 108 |
+
|
| 109 |
+
# 4.4.2 Sequential tasks
|
| 110 |
+
|
| 111 |
+
Coin Flip is an example of a sequential task. Using ToP (1, 2), the problem at the leaves is to find the state of the coin after going through the first half of the people. The final solution is obtained by determining how this state changes as the coin goes through the remaining half of the people. Navigate, Tracking Shuffled Objects, and Web of Lies can be modeled in a similar way. ToP outperforms CoT on all tasks, as shown in Table 5. ToP reaches near perfect accuracy on Coin Flip with 4 and 8 people. Moreover, it is more robust to the out-of-distribution setting than CoT, showing a lesser performance drop as the number of people increases. Compared to CoT, it yields an absolute improvement of $5.2\%$ on Web of Lies, $5.9\%$ on average on Tracking Shuffled Objects and $2\%$ on Navigate.
|
| 112 |
+
|
| 113 |
+
Table 4: Results on the canonical BBH tasks.
|
| 114 |
+
|
| 115 |
+
<table><tr><td></td><td colspan="3">gpt-3.5-turbo-instruct</td></tr><tr><td></td><td>IO</td><td>CoT</td><td>ToP</td></tr><tr><td>Coin Flip</td><td></td><td></td><td></td></tr><tr><td>Four</td><td>0.512</td><td>0.998</td><td>0.998</td></tr><tr><td>Eight</td><td>0.502</td><td>0.840</td><td>0.998</td></tr><tr><td>Sixteen</td><td>0.476</td><td>0.718</td><td>0.756</td></tr><tr><td>BIG-Bench Hard</td><td></td><td></td><td></td></tr><tr><td>Navigate</td><td>0.204</td><td>0.864</td><td>0.884</td></tr><tr><td>Tracking Shuffled Objects (3)</td><td>0.004</td><td>0.536</td><td>0.524</td></tr><tr><td>Tracking Shuffled Objects (5)</td><td>0.004</td><td>0.324</td><td>0.440</td></tr><tr><td>Tracking Shuffled Objects (7)</td><td>0.000</td><td>0.044</td><td>0.118</td></tr><tr><td>Web of Lies</td><td>0.528</td><td>0.920</td><td>0.972</td></tr></table>
|
| 116 |
+
|
| 117 |
+
Table 5: Results on Coin Flip and sequential BBH tasks.
|
| 118 |
+
|
| 119 |
+
# Conclusion
|
| 120 |
+
|
| 121 |
+
We use compositionality to grant the ability to solve complex and structured problems to LLMs via the Tree of Problems (ToP) framework. ToP is a simplification of the ToT framework, and involves decomposing complex tasks into identical subtasks. Our experiments demonstrate that LLMs can benefit from ToP and solve certain complex problems better than ToT, GoT and L2M approaches and generalize better than with CoT.
|
| 122 |
+
|
| 123 |
+
# Acknowledgements
|
| 124 |
+
|
| 125 |
+
This work was partly funded by the last two authors' chairs in the PRAIRIE institute funded by the French national agency ANR as part of the "Investissements d'avvenir" programme under the reference ANR-19-P3IA-0001. The authors are grateful to the OPAL infrastructure from Université Côte d'Azur for providing resources and support. We thank Maciej Besta for answering our questions regarding Graph of Thoughts and Lydia Nishimwe for her helpful feedback.
|
| 126 |
+
|
| 127 |
+
# Limitations
|
| 128 |
+
|
| 129 |
+
Applicability of the Tree of Problems framework. Although ToP is a powerful prompting strategy that significantly widens the range of tasks that LLMs can handle accurately; it is limited to problems which have a structure (mathematical tasks, algorithmic tasks etc.) that can be decomposed into analogous subproblems. The founding hypothesis of ToP is the fact that LLMs can solve simple instances of a task and this ability can be efficiently translated to more complex instances.
|
| 130 |
+
|
| 131 |
+
Reasoning consistency of LLMs. LLMs can surprisingly fail to be robust to minor changes in a problem formulation. They can fail to solve a problem closely related to another one that they are capable to solve. We note this as a typical failure case of ToP in Appendix C.4 on Object Counting and Multistep Arithmetic Two.
|
| 132 |
+
|
| 133 |
+
# References
|
| 134 |
+
|
| 135 |
+
Rohan Anil, Andrew M. Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, Eric Chu, Jonathan H. Clark, Laurent El Shafey, Yanping Huang, Kathy Meier-Hellstern, Gaurav Mishra, Erica Moreira, Mark Omernick, Kevin Robinson, Sebastian Ruder, Yi Tay, Kefan Xiao, Yuanzhong Xu, Yujing Zhang, Gustavo Hernandez Abrego, Junwhan Ahn, Jacob Austin, Paul Barham, Jan Botha, James Bradbury, Siddhartha Brahma, Kevin Brooks, Michele Catasta, Yong Cheng, Colin Cherry, Christopher A. Choquette-Choo, Aakanksha Chowdhery, Clement Crepy, Shachi Dave, Mostafa Dehghani, Sunipa Dev, Jacob Devlin, Mark Diaz, Nan Du, Ethan Dyer, Vlad Feinberg, Fangxiaoyu Feng, Vlad Fienber, Markus Freitag, Xavier Garcia, Sebastian Gehrmann, Lucas Gonzalez, Guy Gur-Ari, Steven Hand, Hadi Hashemi, Le Hou, Joshua Howland, Andrea Hu, Jeffrey Hui, Jeremy Hurwitz, Michael Isard, Abe Ittycheriah, Matthew Jagielski, Wenhao Jia, Kathleen Kenealy, Maxim Krikun
|
| 136 |
+
|
| 137 |
+
Sneha Kudugunta, Chang Lan, Katherine Lee, Benjamin Lee, Eric Li, Music Li, Wei Li, YaGuang Li, Jian Li, Hyeontaek Lim, Hanzhao Lin, Zhongtao Liu, Frederick Liu, Marcello Maggioni, Aroma Mahendru, Joshua Maynez, Vedant Misra, Maysam Moussalem, Zachary Nado, John Nham, Eric Ni, Andrew Nystrom, Alicia Parrish, Marie Pellat, Martin Polacek, Alex Polozov, Reiner Pope, Siyuan Qiao, Emily Reif, Bryan Richter, Parker Riley, Alex Castro Ros, Aurko Roy, Brennan Saeta, Rajkumar Samuel, Renee Shelby, Ambrose Slone, Daniel Smilkov, David R. So, Daniel Sohn, Simon Tokumine, Dasha Valter, Vijay Vasudevan, Kiran Vodrahalli, Xuezhi Wang, Pidong Wang, Zirui Wang, Tao Wang, John Wieting, Yuhuai Wu, Kelvin Xu, Yunhan Xu, Linting Xue, Pengcheng Yin, Jiahui Yu, Qiao Zhang, Steven Zheng, Ce Zheng, Weikang Zhou, Denny Zhou, Slav Petrov, and Yonghui Wu. 2023. Palm 2 technical report. Preprint, arXiv:2305.10403.
|
| 138 |
+
|
| 139 |
+
Maciej Besta, Nils Blach, Ales Kubicek, Robert Gerstenberger, Michal Podstawski, Lukas Gianinazzi, Joanna Gajda, Tomasz Lehmann, Hubert Niewiadomski, Piotr Nczyk, and Torsten Hoefler. 2024. Graph of thoughts: Solving elaborate problems with large language models. Proceedings of the AAAI Conference on Artificial Intelligence, 38(16):17682-17690.
|
| 140 |
+
|
| 141 |
+
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877-1901. Curran Associates, Inc.
|
| 142 |
+
|
| 143 |
+
Dheeru Dua, Shivanshu Gupta, Sameer Singh, and Matt Gardner. 2022. Successive prompting for decomposing complex questions. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 1251-1265, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 144 |
+
|
| 145 |
+
Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aurelien Rodriguez, Austen Gregerson, Ava Spataru, Baptiste Roziere, Bethany Biron, Binh Tang, Bobbie Chern, Charlotte Caucheteux, Chaya Nayak, Chloe Bi, Chris Marra, Chris McConnell, Christian Keller, Christophe Touret, Chunyang Wu, Corinne Wong, Cristian Canton Ferrer, Cyrus Nikolaidis, Damien Alonsius, Daniel Song, Danielle Pintz, Danny Livshits, David Esiobu, Dhruv Choudhary, Dhruv Mahajan,
|
| 146 |
+
|
| 147 |
+
Diego Garcia-Olano, Diego Perino, Dieuwke Hupkes, Egor Lakomkin, Ehab AlBadawy, Elina Lobanova, Emily Dinan, Eric Michael Smith, Filip Radenovic, Frank Zhang, Gabriel Synnaeve, Gabrielle Lee, Georgia Lewis Anderson, Graeme Nail, Gregoire Mialon, Guan Pang, Guillem Cucurell, Hailey Nguyen, Hannah Korevaar, Hu Xu, Hugo Touvron, Iliyan Zarov, Imanol Arrieta Ibarra, Isabel Kloumann, Ishan Misra, Ivan Evtimov, Jade Copet, Jaewon Lee, Jan Geffert, Jana Vranes, Jason Park, Jay Mahadeokar, Jeet Shah, Jelmer van der Linde, Jennifer Billock, Jenny Hong, Jenya Lee, Jeremy Fu, Jianfeng Chi, Jianyu Huang, Jiawen Liu, Jie Wang, Jiecao Yu, Joanna Bitton, Joe Spisak, Jongsoo Park, Joseph Rocca, Joshua Johnstun, Joshua Saxe, Junteng Jia, Kalyan Vasuden Alwala, Kartikeya Upasani, Kate Plawiak, Ke Li, Kenneth Heafield, Kevin Stone, Khalid El-Arini, Krithika Iyer, Kshitiz Malik, Kuenley Chiu, Kunal Bhalla, Lauren Rantala-Yeary, Laurens van der Maaten, Lawrence Chen, Liang Tan, Liz Jenkins, Louis Martin, Lovish Madaan, Lubo Malo, Lukas Blecher, Lukas Landzaat, Luke de Oliveira, Madeline Muzzi, Mahesh Pasupuleti, Mannat Singh, Manohar Paluri, Marcin Kardas, Mathew Oldham, Mathieu Rita, Maya Pavlova, Melanie Kambadur, Mike Lewis, Min Si, Mitesh Kumar Singh, Mona Hassan, Naman Goyal, Narjes Torabi, Nikolay Bashlykov, Nikolay Bogoychev, Niladri Chatterji, Olivier Duchenne, Onur Celebi, Patrick Alrassy, Pengchuan Zhang, Pengwei Li, Petar Vasic, Peter Weng, Prajjwal Bhargava, Pratik Dubal, Praveen Krishnan Punit Singh Koura, Puxin Xu, Qing He, Qingxiao Dong, Ragavan Srinivasan, Raj Ganapathy, Ramon Calderer, Ricardo Silveira Cabral, Robert Stojnic Roberta Raileanu Rohit Girdhar Rohit Patel,Romain SauvestreRonnie Polidoro Roshan Sumbaly Ross Taylor Ruan Silva Rui Hou Rui Wang Saghar Hosseini,Sahana Chennabasappa,Sanjay Singh Sean Bell Seohyun Sonia Kim,Sergey Edunov Shaoliang Nie, Sharan Narang, Sharath Raparthy Sheng Shen Shengye Wan Shruti BhosaleShun ZhangSimon Vandenhende Soumya Batra Spencer WhitmanSten Sootla Stephane CollotSuchin GururanganSydney BorodinskyTamar Herman,Tara Fowler Tarek Sheasha Thomas GeorgiouThomas Scialom Tobias Speckbacher,Todor Mihaylov Tong Xiao Ujjwal Karn,Vedanuj GoswamiVibhor Gupta,Vignesh Ramanathan,Viktor Kerkez,Vincent Gonguet,Virginie Do,Vish Vogeti,Vladan Petrovic Weiwei Chu,Wenhan Xiong,Wenyin Fu whitney Meers Xavier Martinet Xiaodong WangXiaqing Ellen Tan Xinfeng Xie Xuchao Jia Xuewei Wang,Yaelle Goldschlag,Yashesh Gaur,Yasmine Babaei Yi WenYiwen Song Yuchen Zhang Yue Li,Yuning Mao,Zacharie Delpierre Coudert Zheng YanZhengxing Chen,Zoe Papakipos,Aaditya Singh Aaron Grattafori Abha Jain Adam KelseyAdam Shajnfeld Adithya Gangidi Adolfo Victoria,Ahuva Goldstand Ajay Menon Ajay Sharma Alex BoesenbergAlex Vaughan Alexei Baevski Allie Feinstein Amanda Kallet Amit Sangani Anam Yunus Andrei Lupu Andres Alvarado Andrew Caples Andrew GuAndrew Ho Andrew Poulton Andrew Ryan Ankit Ramchandani Annie Franco Apara
|
| 148 |
+
|
| 149 |
+
jita Saraf, Arkabandhu Chowdhury, Ashley Gabriel, Ashwin Bharambe, Assaf Eisenman, Azadeh Yazdan, Beau James, Ben Maurer, Benjamin Leonhardi, Bernie Huang, Beth Loyd, Beto De Paola, Bhargavi Paranjape, Bing Liu, Bo Wu, Boyu Ni, Braden Hancock, Bram Wasti, Brandon Spence, Brani Stojkovic, Brian Gamido, Britt Montalvo, Carl Parker, Carly Burton, Catalina Mejia, Changhan Wang, Changkyu Kim, Chao Zhou, Chester Hu, Ching-Hsiang Chu, Chris Cai, Chris Tindal, Christoph Feichtenhofer, Damon Civin, Dana Beaty, Daniel Kreymer, Daniel Li, Danny Wyatt, David Adkins, David Xu, Davide Testuggine, Delia David, Devi Parikh, Diana Liskovich, Didem Foss, Dingkang Wang, Duc Le, Dustin Holland, Edward Dowling, Eissa Jamil, Elaine Montgomery, Eleonora Presani, Emily Hahn, Emily Wood, Erik Brinkman, Esteban Arcaute, Evan Dunbar, Evan Smothers, Fei Sun, Felix Kreuk, Feng Tian, Firat Ozgenel, Francesco Caggioni, Francisco Guzmán, Frank Kanayet, Frank Seide, Gabriela Medina Florez, Gabriella Schwarz, Gada Badeer, Georgia Swee, Gil Halpern, Govind Thattai, Grant Herman, Grigory Sizov, Guangyi, Zhang, Guna Lakshminarayanan, Hamid Shojanazeri, Han Zou, Hannah Wang, Hanwen Zha, Haroun Habeeb, Harrison Rudolph, Helen Suk, Henry Aspegren, Hunter Goldman, Ibrahim Damlaj, Igor Molybog, Igor Tufanov, Irina-Elena Veliche, Itai Gat, Jake Weissman, James Geboski, James Kohli, Japhet Asher, Jean-Baptiste Gaya, Jeff Marcus, Jeff Tang, Jennifer Chan, Jenny Zhen Jeremy Reizenstein, Jeremy Teboul Jessica Zhong. Jian Jin,Jingyi Yang Joe Cummings Jon Carvill Jon Shepard Jonathan McPhie Jonathan Torres Josh Ginsburg Junjie Wang Kai Wu Kam Hou U,Karan Saxena,Karthik Prasad,Kartikay Khandealwal Katayoun Zand Kathy Matosich Kaushik Veeraraghavan Kelly Michelena Keqian Li Kun HuangKunal ChawlaKushal LakhotiaKyle Huang Lailin ChenLakshya Garg Lavender A. Leandro Silva,Lee Bell Lei Zhang Liangpeng Guo Licheng YuLiron MoshkovichLuca WehrstedtMadian Khabsa Manav Avalani Manish Bhatt Maria Tsimpoukelli,Martynas Mankus,Matan Hasson Matthew LennieMatthias Reso Maxim GroshevMaxim NaumovMaya Lathi Meghan Keneally Michael L. SeltzerMichal Valko Michelle RestrepoMihir Patel,Mik Vyatskov,Mikayel Samvelyan Mike Clark,Mike Macey,Mike Wang,Miquel Jubert Hermoso Mo Metanat Mohammad Rastegari Munish Bansal Nandhini Santhanam,Natascha Parks Natasha White,Navyata Bawa,Nayan Singhal,Nick EgeboNicolas Usunier,Nikolay Pavlovich Laptev Ning DongNing ZhangNorman ChengOleg ChernoguzOlivia Hart Omkar Salpekar Ozlem Kalinli Parkin Kent Parth ParekhPaul Saab,Pavan Balaji Pedro Rittner Philip Bontrager Pierre Roux Piotr DollarPolina ZvyaginaPrashant Ratanchandani,Pritish Yuvraj Qian Liang,Rachad Alao Rachel RodriguezRafi Ayub Ragtoham Murthy Raghu Nayani,Rahul MitraRaymond LiRebekkah Hogan Robin Battey,Rocky Wang Rohan Maheswari Russ Howes,Ruty Rinott Sai Jayesh Bondu Samyak Datta Sara Chugh Sara Hunt Sargun Dhillon,Sasha Sidorov,Satadru PanSaurabh Verma
|
| 150 |
+
|
| 151 |
+
Seiji Yamamoto, Sharadh Ramaswamy, Shaun Lindsay, Shaun Lindsay, Sheng Feng, Shenghao Lin, Shengxin Cindy Zha, Shiva Shankar, Shuqiang Zhang, Shuqiang Zhang, Sinong Wang, Sneha Agarwal, Soji Sajuyigbe, Soumith Chintala, Stephanie Max, Stephen Chen, Steve Kehoe, Steve Satterfield, Sudarshan Govindaprasad, Sumit Gupta, Sungmin Cho, Sunny Virk, Suraj Subramanian, Sy Choudhury, Sydney Goldman, Tal Remez, Tamar Glaser, Tamara Best, Thilo Kohler, Thomas Robinson, Tianhe Li, Tianjun Zhang, Tim Matthews, Timothy Chou, Tzook Shaked, Varun Vontimitta, Victoria Ajayi, Victoria Montanez, Vijai Mohan, Vinay Satish Kumar, Vishal Mangla, Vitor Albiero, Vlad Ionescu, Vlad Poenaru, Vlad Tiberiu Mihailescu, Vladimir Ivanov, Wei Li, Wenchen Wang, Wenwen Jiang, Wes Bouaziz, Will Constable, Xiaocheng Tang, Xiaofang Wang, Xiaojian Wu, Xiaolan Wang, Xide Xia, Xilun Wu, Xinbo Gao, Yanjun Chen, Ye Hu, Ye Jia, Ye Qi, Yenda Li, Yilin Zhang, Ying Zhang, Yossi Adi, Youngjin Nam, Yu, Wang, Yuchen Hao, Yundi Qian, Yuzi He, Zach Rait, Zachary DeVito, Zef Rosnbrick, Zhaoduo Wen, Zhenyu Yang, and Zhiwei Zhao. 2024. The llama 3 herd of models. Preprint, arXiv:2407.21783.
|
| 152 |
+
|
| 153 |
+
Yao Fu, Hao Peng, Ashish Sabharwal, Peter Clark, and Tushar Khot. 2022. Complexity-based prompting for multi-step reasoning. In *The Eleventh International Conference on Learning Representations*.
|
| 154 |
+
|
| 155 |
+
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021a. Measuring massive multitask language understanding. In International Conference on Learning Representations.
|
| 156 |
+
|
| 157 |
+
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021b. Measuring mathematical problem solving with the math dataset. NeurIPS.
|
| 158 |
+
|
| 159 |
+
Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xinying Song, and Denny Zhou. 2024. Large language models cannot self-correct reasoning yet. In The Twelfth International Conference on Learning Representations.
|
| 160 |
+
|
| 161 |
+
Tushar Khot, Harsh Trivedi, Matthew Finlayson, Yao Fu, Kyle Richardson, Peter Clark, and Ashish Sabharwal. 2023. Decomposed prompting: A modular approach for solving complex tasks. In *The Eleventh International Conference on Learning Representations*.
|
| 162 |
+
|
| 163 |
+
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. In Advances in Neural Information Processing Systems.
|
| 164 |
+
|
| 165 |
+
Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder,
|
| 166 |
+
|
| 167 |
+
Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. 2023. Self-refine: Iterative refinement with self-feedback. In Thirty-seventh Conference on Neural Information Processing Systems.
|
| 168 |
+
|
| 169 |
+
Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, Pouya Tafti, Léonard Hussenot, Pier Giuseppe Sessa, Aakanksha Chowdhery, Adam Roberts, Aditya Barua, Alex Botev, Alex Castro-Ros, Ambrose Slone, Amélie Héliou, Andrea Tacchetti, Anna Bulanova, Antonia Paterson, Beth Tsai, Bobak Shahriari, Charline Le Lan, Christopher A. Choquette-Choo, Clément Crepy, Daniel Cer, Daphne Ippolito, David Reid, Elena Buchatskaya, Eric Ni, Eric Noland, Geng Yan, George Tucker, George-Christian Muraru, Grigory Rozhdestvenskiy, Henryk Michalewski, Ian Tenney, Ivan Grishchenko, Jacob Austin, James Keeling, Jane Labanowski, Jean-Baptiste Lespiau, Jeff Stanway, Jenny Brennan, Jeremy Chen, Johan Ferret, Justin Chiu, Justin Mao-Jones, Katherine Lee, Kathy Yu, Katie Millican, Lars Lowe Sjoesund, Lisa Lee, Lucas Dixon, Rachel Reid, Maciej Mikula, Mateo Wirth, Michael Sharman, Nikolai Chinaev, Nithum Thain, Olivier Bachem, Oscar Chang, Oscar Wahltinez, Paige Bailey, Paul Michel, Petko Yotov, Rahma Chaabouni, Ramona Comanescu, Reena Jana, Rohan Anil, Ross McIlroy, Ruibo Liu, Ryan Mullins, Samuel L Smith, Sebastian Borgeaud, Sertan Girgin, Sholto Douglas, Shree Pandya, Siamak Shakeri, Soham De, Ted Klimenko, Tom Hennigan, Vlad Feinberg, Wojciech Stokowiec, Yu hui Chen, Zafarali Ahmed, Zhitao Gong, Tris Warkentin, Ludovic Peran, Minh Giang, Clément Farabet, Oriol Vinyals, Jeff Dean, Koray Kavukcuoglu, Demis Hassabis, Zoubin Ghahramani, Douglas Eck, Joelle Barral, Fernando Pereira, Eli Collins, Armand Joulin, Noah Fiedel, Evan Senter, Alek Andreev, and Kathleen Kenealy. 2024. Gemma: Open models based on gemini research and technology. Preprint, arXiv:2403.08295.
|
| 170 |
+
|
| 171 |
+
Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R. Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, Agnieszka Kluska, Aitor Lewkowycz, Akshit Agarwal, Alethea Power, Alex Ray, Alex Warstadt, Alexander W. Kocurek, Ali Safaya, Ali Tazarv, Alice Xiang, Alicia Parrish, Allen Nie, Aman Hussain, Amanda Askell, Amanda Dsouza, Ambrose Slone, Ameet Rahane, Anantharaman S. Iyer, Anders Johan Andreassen, Andrea Madotto, Andrea Santilli, Andreas Stuhlmüller, Andrew M. Dai, Andrew La, Andrew Lampinen, Andy Zou, Angela Jiang, Angelica Chen, Anh Vuong, Animesh Gupta, Anna Gottardi, Antonio Norelli, Anu Venkatesh, Arash Gholamidavoodi, Arfa Tabassum, Arul Menezes, Arun Kirubarajan, Asher Mullokandov, Ashish Sabharwal, Austin Herrick, Avia Efrat, Aykut Erdem, Ayla Karakas, B. Ryan Roberts, Bao Sheng Loe, Barret Zoph, Bartlomiej Bojanowski, Batuhan Özyurt, Behnam
|
| 172 |
+
|
| 173 |
+
Hedayatnia, Behnam Neyshabur, Benjamin Inden, Benno Stein, Berk Ekmekci, Bill Yuchen Lin, Blake Howald, Bryan Orion, Cameron Diao, Cameron Dour, Catherine Stinson, Cedrick Argueta, Cesar Ferri, Chandan Singh, Charles Rathkopf, Chenlin Meng, Chitta Baral, Chiyu Wu, Chris Callison-Burch, Christopher Waites, Christian Voigt, Christopher D Manning, Christopher Potts, Cindy Ramirez, Clara E. Rivera, Clemencia Siro, Colin Raffel, Courtney Ashcraft, Cristina Garbacea, Damien Sileo, Dan Garrette, Dan Hendrycks, Dan Kilman, Dan Roth, C. Daniel Freeman, Daniel Khashabi, Daniel Levy, Daniel Mosegui Gonzalez, Danielle Perszyk, Danny Hernandez, Danqi Chen, Daphne Ippolito, Dar Gilboa, David Dohan, David Drakard, David Jurrgens, Debajyoti Datta, Deep Ganguli, Denis Emelin, Denis Kleyko, Deniz Yuret, Derek Chen, Derek Tam, Dieuwke Hupkes, Diganta Misra, Dilyar Buzan, Dimitri Coelho Mollo, Diyi Yang, Dong-Ho Lee, Dylan Schrader, Ekaterina Shutova, Ekin Dogus Cubuk, Elad Segal, Eleanor Hagerman, Elizabeth Barnes, Elizabeth Donoway, Ellie Pavlick, Emanuele Rodolà, Emma Lam, Eric Chu, Eric Tang, Erkut Erdem, Ernie Chang, Ethan A Chi, Ethan Dyer, Ethan Jerzak, Ethan Kim, Eunice Engefu Manyasi, Evgenii Zheltonozhskii, Fanyue Xia, Fatemeh Siar, Fernando Martínez-Plumed, Francesca Happé, François Chollet, Frieda Rong, Gaurav Mishra, Genta Indra Winata, Gerard de Melo, Germán Kruszewski Giambattista Parascandolo, Giorgio Mariani Gloria Xinyue Wang, Gonzalo Jaimovitch-Lopez, Gregor Betz, Guy Gur-Ari, Hana Galijasevic, Hannah Kim, Hannah Rashkin, Hannaneh Hajishirzi, Harsh Mehta, Hayden Bogar, Henry Francis Anthony Shevlin, Hinrich Schuetze Hiromu Yakura Hongming Zhang Hugh Mee Wong Ian Ng Isaac Noble Jaap Jumelet Jack Geissinger Jackson Kernion Jacob Hilton Jaehoon Lee Jaime Fernández Fisac James B Simon James Koppel James Zheng James Zou Jan Kocon Jana Thompson Janelle Wingfield Jared Kaplan Jarema Radom Jascha Sohl-Dickstein Jason Phang Jason Wei Jason Yosinski Jekaterina Novikova Jelle Bosscher Jennifer Marsh Jeremy Kim Jeroen Taal Jesse Engel Jesujoba Alabi Jiacheng Xu Jiaming Song Jillian Tang Joan Waweru John Burden John Miller John U. Balis Jonathan Batchelder Jonathan Berant Jörg Frohberg Jos Rozen Jose FernandezOrallo Joseph Boudeman Joseph Guerr Joseph Jones Joshua B. TenenbaumJoshua S. RuleJoyce Chua Kamil Kanclerz Karen Livescu Karl Krauth Karthik Gopalakrishnan Katerina Ignatyeva Katja Markert Kaustubh Dhole Kevin Gimpel Kevin Omondi Kory Wallace Mathewson Kristen Chiafullo Ksenia Shkaruta Kumar Shridhar Kyle McDonell Kyle Richardson Laria Reynolds Leo Gao Li Zhang Liam Dugan Lianhui Qin Lidia Contreras-Ochando Louis-Philippe Morency Luca Moschella Lucas Lam Lucy Noble Ludwig Schmidt Luheng He Luis Oliveros-Colón Luke Metz Lütfi Kerem Senel Maarten Bosma Maarten Sap Maartje Ter Hoeve Maheen Farooqi Manaal Faruqui Mantas Mazeika Marco Baturan Marco Marelli Marco Maru Maria Jose Ramirez-Quintana Marie Volkiehn Mario Giulianelli Martha Lewis Martin Pothast
|
| 174 |
+
|
| 175 |
+
Matthew L Leavitt, Matthias Hagen, Mátías Schubert, Medina Orduna Baitemirova, Melody Arnaud, Melvin McElrath, Michael Andrew Yee, Michael Cohen, Michael Gu, Michael Ivanitskiy, Michael Starritt, Michael Strube, Michal Swedrowski, Michele Bevilacqua, Michihiro Yasunaga, Mihir Kale, Mike Cain, Minnie Xu, Mirac Suzgun, Mitch Walker, Mo Tiwari, Mohit Bansal, Moin Aminnaseri, Mor Geva, Mozhdeh Gheini, Mukund Varma T, Nanyun Peng, Nathan Andrew Chi, Nayeon Lee, Neta Gur-Ari Krakover, Nicholas Cameron, Nicholas Roberts, Nick Doiron, Nicole Martinez, Nikita Nangia, Niklas Deckers, Niklas Muennighoff, Nitish Shirish Keskar, Niveditha S. Iyer, Noah Constant, Noah Fiedel, Nuan Wen, Oliver Zhang, Omar Agha, Omar Elbaghdadi, Omer Levy, Owain Evans, Pablo Antonio Moreno Casares, Parth Doshi, Pascale Fung, Paul Pu Liang, Paul Vicol, Pegah Alipoformolabashi, Peiyuan Liao, Percy Liang, Peter W Chang, Peter Eckersley, Phu Mon Htut, Pinyu Hwang, Piotr Młkowski, Piyush Patil, Pouya Pezeshkpour, Priti Oli, Qiaozhu Mei, Qing Lyu, Qinlang Chen, Rabin Banjade, Rachel Etta Rudolph, Raefer Gabriel, Rahul Habacker, Ramon Risco, Raphael Milliere, Rhythm Garg, Richard Barnes, Rif A. Saurous, Riku Arakawa, Robbe Raymaekers, Robert Frank, Rohan Sikand, Roman Novak, Roman Sitelew, Ronan Le Bras, Rosanne Liu, Rowan Jacobs, Rui Zhang, Russ Salakhutdinov, Ryan Andrew Chi, Seungjae Ryan Lee, Ryan Stovall, Ryan Teehan, Ryan Yang, Sahib Singh, Saif M. Mohammad, Sajant Anand, Sam Dillavou, Sam Shleifer, Sam Wiseman, Samuel Gruetter, Samuel R. Bowman, Samuel Stern Schoenholz, Sanghyun Han, Sanjeev Kwatra, Sarah A. Rous, Sarik Ghazarian, Sayan Ghosh, Sean Casey, Sebastian Bischoff, Sebastian Gehrmann, Sebastian Schuster, Sepideh Sadeghi, Shadi Hamdan, Sharon Zhou, Shashank Srivastava, Sherry Shi, Shikhar Singh, Shima Asaadi, Shixiang Shane Gu, Shubh Pachchigar, Shubham Toshiwal, Shyam Upadhyay, Shyamolima Shammie Debnath, Siamak Shakeri, Simon Thormeyer, Simone Melzi, Siva Reddy, Sneha Priscilla Makini, Soo-Hwan Lee, Spencer Tirene, Sriharsha Hatwar, Stanislas Dehaene, Stefan Divic, Stefano Ermon, Stella Biderman, Stephanie Lin, Stephen Prasad Steven Piantadosi, Stuart Shieber, Summer Misherghi, Svetlana Kiritchenko, Swaroop Mishra Tal Linzen, Tal Schuster Tao Li Tao Yu Tariq Ali Tatsunori Hashimoto Te-Lin Wu Theo Desbordes Theodore Rothschild Thomas Phan Tianle Wang Tiberius Nkinyili Timo Schick Timofei Kornev Titus Tunduny Tobias Gerstenberg Trenton Chang Trishala Neeraj Tushar Khot Tyler Shultz Uri Shaham,Vedant Misra,Vera Demberg,Victoria Nyamai,Vikas Raunak,Vinay Venkatesh Ramasesh vinay uday prabhu,Vishakh Padmakumar Vivek Srikumar William Fedus William Saunders William Zhang,Wout Vossen Xiang Ren Xiaoyu TongXinran Zhao Xinyi WuXudong Shen Yadollah Yaghoobzadeh,Yair Lakretz,Yangqiu Song Yasaman Bahri,Yejin Choi,Yichi Yang,Yiding HaoYifu ChenYonatan BelinkovYu HouYu fang Hou Yuntao Bai Zachary Seid Zhuoye Zhao
|
| 176 |
+
|
| 177 |
+
Zijian Wang, Zijie J. Wang, Zirui Wang, and Ziyi Wu. 2023. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. Transactions on Machine Learning Research.
|
| 178 |
+
|
| 179 |
+
Mirac Suzgun, Nathan Scales, Nathanael Scharli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc Le, Ed Chi, Denny Zhou, and Jason Wei. 2023. Challenging BIG-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, pages 13003-13051, Toronto, Canada. Association for Computational Linguistics.
|
| 180 |
+
|
| 181 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinez, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open foundation and finetuned chat models. Preprint, arXiv:2307.09288.
|
| 182 |
+
|
| 183 |
+
Lei Wang, Wanyu Xu, Yihuai Lan, Zhiqiang Hu, Yunshi Lan, Roy Ka-Wei Lee, and Ee-Peng Lim. 2023a. Plan-and-solve prompting: Improving zero-shot chain-of-thought reasoning by large language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2609-2634, Toronto, Canada. Association for Computational Linguistics.
|
| 184 |
+
|
| 185 |
+
Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2023b. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations.
|
| 186 |
+
|
| 187 |
+
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.
|
| 188 |
+
|
| 189 |
+
Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L. Griffiths, Yuan Cao, and Karthik R Narasimhan. 2023. Tree of thoughts: Deliberate
|
| 190 |
+
|
| 191 |
+
problem solving with large language models. In Thirty-seventh Conference on Neural Information Processing Systems.
|
| 192 |
+
|
| 193 |
+
Zhuosheng Zhang, Aston Zhang, Mu Li, and Alex Smola. 2023. Automatic chain of thought prompting in large language models. In *The Eleventh International Conference on Learning Representations*.
|
| 194 |
+
|
| 195 |
+
Denny Zhou, Nathanael Scharli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Claire Cui, Olivier Bousquet, Quoc V Le, and Ed H. Chi. 2023. Least-to-most prompting enables complex reasoning in large language models. In The Eleventh International Conference on Learning Representations.
|
| 196 |
+
|
| 197 |
+
# A Clarifications
|
| 198 |
+
|
| 199 |
+
# A.1 Canonical Tasks
|
| 200 |
+
|
| 201 |
+
In Figure 1 we showed how to apply $\text{ToP}(2,1)$ to an instance of Last Letter Concatenation. We illustrate how $\text{ToP}(2,2)$ would look for concatenating the last letters of a list of 8 words in Figure 3. The decomposition is done on two levels, the leaves being solved first and the merge operation being recursively applied from the bottom to the top.
|
| 202 |
+
|
| 203 |
+
# A.2 Sequential tasks
|
| 204 |
+
|
| 205 |
+
Let us say that we have a system at state $s_0$ , and we want to find its state after going through $m$ processing steps $(p_1, \ldots, p_m)$ in this order (i.e. a sequential task). Applying $ToP(1, k)$ is equivalent to grouping the above steps into $k$ groups $G_1 = (p_1, \ldots, p_{\lceil \frac{m}{k} \rceil}), \ldots, G_k = (p_{m - \lfloor \frac{m}{k} \rfloor + 1}, \ldots, p_m)$ . We build a path graph from top to bottom, where the root is the main instance, and the leaf is the instance defined by $s_0$ and $G_1$ . Solving it yields a state $s_1$ to which we apply the steps $G_2$ and so on until we reach $G_k$ . Tracking Shuffled Objects is an example of such a task. At the start, $L$ people are assigned one object each. We are interested in recovering the assignment between people and objects after $L$ swaps (transpositions). Figure 4 illustrates the application of $ToP(1, 3)$ to an instance with 3 swaps. We first decompose the main instance into 3 subinstances; here, each instance corresponds to one swap. After decomposition, only the first instance has the correct initial assignment (grey part). For the remaining instances, placeholders are used, which will later be replaced by the solutions to the problems they depend on.
|
| 206 |
+
|
| 207 |
+

|
| 208 |
+
Figure 3: Overview of ToP (2, 2) for Last Letter Concatenation. The list of words is divided into 2 sublists which are recursively divided into two sublists. The problems at the leaves, which consist into concatenating the last letters of 2-word lists are solved first. The solutions are then merged in a bottom-up way until the main instance is solved.
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 4: Overview of $\text{ToP}(1,3)$ on an instance of Tracking Shuffled Objects (three objects).
|
| 212 |
+
|
| 213 |
+
# A.3 Comparison with Least-to-Most Prompting
|
| 214 |
+
|
| 215 |
+
Least-to-Most prompting also handles Last Letter Concatenation as a sequential task. In this regards, it is similar to $\text{ToP}(1, L)$ on list with $L$ words. As illustrated in Figure 5, L2M uses all couples
|
| 216 |
+
|
| 217 |
+
instance-solution preceding an instance to build the prompt to solve it whereas ToP only uses the couples directly connected to it in the tree hierarchy.
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 5: Overview of L2M prompting on Last Letter Concatenation with 4 words.
|
| 221 |
+
|
| 222 |
+
# B Additional Experiments
|
| 223 |
+
|
| 224 |
+
# B.1 Scaling behaviour
|
| 225 |
+
|
| 226 |
+
In this section, we study how ToP behaves as we vary the model scale. In Figure 6, we plot the performance of both IO and CoT prompting and ToP as a function of model scale for LLaMA 2 models (Touvron et al., 2023) and 3 BBH tasks. We use ToP (2, 1) for canonical tasks and ToP (1, 2) for sequential tasks. For all tasks, scaling up model size improved the performance of ToP beyond CoT prompting. LLaMA 2 70B achieves a $98\%$ accuracy on Object Counting, an absolute improvement of $18.8\%$ over CoT. ToP improves over random accuracy of IO and CoT on Web of Lies with LLaMA 2 7B, with an accuracy of $72.8\%$ .
|
| 227 |
+
|
| 228 |
+
We report IO prompting, CoT prompting and ToP performance on 8 BBH tasks in Table 6. ToP consistently yields an improvement of performance compared to IO and CoT prompting for most tasks and at all scales.
|
| 229 |
+
|
| 230 |
+
# C Analysis
|
| 231 |
+
|
| 232 |
+
We aim to gain a comprehensive understanding of the performance improvements offered by the ToP framework. We theoretically derive an upper bound of expected ToP's performance, then we study the impact of the tree structure on the results obtained. For the experiments in this section, we
|
| 233 |
+
|
| 234 |
+
use LLaMA 3 8B (Dubey et al., 2024) unless stated otherwise.
|
| 235 |
+
|
| 236 |
+
# C.1 Theoretical Analysis
|
| 237 |
+
|
| 238 |
+
Let us consider a task with $n$ problems. Each problem is further divided into $k$ subproblems, resulting in a total of $nk$ subproblems. If we evaluate an LLM on these $nk$ subproblems and obtain $m$ incorrect answers, we can infer the number of incorrect answers likely to occur when evaluating the original $n$ problems. Assuming that an incorrect answer to a subproblem implies an incorrect answer to its corresponding main problem, we can analyze the outcomes in two scenarios. In the worst case, each of the $m$ incorrect subproblems is associated with a distinct main problem and thus there would be $m$ main problems with incorrect answers. The best case is when the $m$ incorrect subproblems are distributed such that each affected main problem has $k$ or $m\% k$ incorrect subproblems. Consequently, the number of main problems with incorrect answers would be at most $\lceil \frac{m}{k} \rceil$ . From this analysis, we can deduce that the accuracy at any level $l$ of the problem hierarchy is constrained by the accuracy at level $l - 1$ . Therefore, the accuracy for the overall task (the root of the hierarchy) is bounded by the accuracy observed at the most granular level (the leaves of the hierarchy). We validate this analysis by comparing the accuracy at level 1 to the accuracy at level 0 (main problem) for some of the
|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
|
| 246 |
+
Figure 6: Scaling behavior of ToP compared to IO and CoT with the LLaMA 2 family on 3 BBH tasks.
|
| 247 |
+
|
| 248 |
+
<table><tr><td rowspan="2">BBH Tasks</td><td colspan="3">LLaMA 2 7B</td><td colspan="3">LLaMA 2 13B</td><td colspan="3">LLaMA 2 70B</td></tr><tr><td>IO</td><td>CoT</td><td>ToP</td><td>IO</td><td>CoT</td><td>ToP</td><td>IO</td><td>CoT</td><td>ToP</td></tr><tr><td>Boolean Expressions</td><td>0.680</td><td>0.628</td><td>0.672</td><td>0.728</td><td>0.768</td><td>0.728</td><td>0.812</td><td>0.868</td><td>0.924</td></tr><tr><td>Hyperbaton</td><td>0.530</td><td>0.550</td><td>0.562</td><td>0.508</td><td>0.666</td><td>0.700</td><td>0.530</td><td>0.684</td><td>0.830</td></tr><tr><td>Multistep Arithmetic Two</td><td>0.008</td><td>0.004</td><td>0.012</td><td>0.012</td><td>0.024</td><td>0.044</td><td>0.016</td><td>0.196</td><td>0.216</td></tr><tr><td>Navigate</td><td>0.272</td><td>0.164</td><td>0.088</td><td>0.340</td><td>0.308</td><td>0.156</td><td>0.336</td><td>0.400</td><td>0.284</td></tr><tr><td>Object Counting</td><td>0.404</td><td>0.476</td><td>0.516</td><td>0.492</td><td>0.532</td><td>0.616</td><td>0.540</td><td>0.792</td><td>0.98</td></tr><tr><td colspan="10">Tracking Shuffled Objects</td></tr><tr><td>Three</td><td>0.156</td><td>0.156</td><td>0.136</td><td>0.076</td><td>0.184</td><td>0.132</td><td>0.056</td><td>0.584</td><td>0.568</td></tr><tr><td>Five</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.012</td><td>0.044</td><td>0.048</td><td>0.080</td><td>0.528</td><td>0.664</td></tr><tr><td>Seven</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.004</td><td>0.000</td><td>0.288</td><td>0.592</td></tr><tr><td>Web of Lies</td><td>0.488</td><td>0.528</td><td>0.728</td><td>0.552</td><td>0.984</td><td>1.000</td><td>0.488</td><td>0.996</td><td>0.984</td></tr><tr><td>Word Sorting</td><td>0.418</td><td>0.146</td><td>0.244</td><td>0.538</td><td>0.261</td><td>0.320</td><td>0.788</td><td>0.445</td><td>0.717</td></tr></table>
|
| 249 |
+
|
| 250 |
+
Table 6: Few-shot prompting performance of the LLaMA 2 family on BIG-Bench Hard (BBH).
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
Figure 7: Comparison between CoT, ToP, ToP with an Oracle Merger and the leaves' accuracy on 3 BBH tasks.
|
| 254 |
+
|
| 255 |
+
aforementioned BBH tasks. The results are summarized in Figure 7. The Oracle Merger represents the accuracy that would be achieved if the merger process were flawless.
|
| 256 |
+
|
| 257 |
+
As expected, the accuracy at the leaves acts as an upper bound for ToP. Moreover, the Oracle Merger yields better performance than vanilla ToP. This suggests that there is a loss in accuracy when going from level $k$ to level $k - 1$ , which can prevent ToP from achieving an even higher performance. Interestingly, what happens with Multistep Arithmetic Two comes close to the worst case scenario that we depicted earlier. Despite the leaves' accuracy be
|
| 258 |
+
|
| 259 |
+
ing $55\%$ , ToP + Oracle Merger fails to outperform CoT's $34\%$ accuracy, showing that the distribution of the correct leaves' instances inherently undermines ToP performance in this scenario.
|
| 260 |
+
|
| 261 |
+
# C.2 Impact of the tree structure.
|
| 262 |
+
|
| 263 |
+
GoT Tasks. We analyze the impact of the tree structure on ToP's results. As shown previously, there may be a loss in accuracy during the merge operation. A deeper tree means more of these losses, but it also means easier subproblems. For the three GoT tasks, we analyze the impact of the tree's depth when the breadth is set to two with LLaMA 3 70B Instruct (Dubey et al., 2024).
|
| 264 |
+
|
| 265 |
+
As suggested by Figure 8, deeper trees led to a higher accuracy for all three tasks. This is because we observed very few errors during the merge operation performed by the LLM. Going deeper, even with a near perfect merger can negatively affect performance as observed with the Set Intersection task, which has an accuracy of $47\%$ with $d = 4$ but $74\%$ with $d = 3$ and $62\%$ with $d = 2$ . The small errors performed at the leaves being propa
|
| 266 |
+
|
| 267 |
+

|
| 268 |
+
Figure 8: Impact of the tree structure (depth) on the accuracy on the 3 GoT Tasks with LLaMA 3 70B Instruct. Depth = 0 represents CoT prompting.
|
| 269 |
+
|
| 270 |
+
gated during the repetitive merge operations impact the overall accuracy of ToP. In terms of breadth, applying ToP (4, 1) to Set Intersection yields the same accuracy of $62\%$ as ToP (2, 2). We observed ToP (4, 2) to have a $49\%$ accuracy, comparable to ToP (2, 4)'s $47\%$ .
|
| 271 |
+
|
| 272 |
+
BBH Tasks. Tracking Shuffled Objects involves recovering the final assignment of $L$ objects given to $L$ people ( $L \in \{3, 5, 7\}$ ) after a series of $L$ transpositions (pairwise swaps). Applying ToP ( $1, d$ ) to these tasks implies using $d$ even subseries of swaps in a manner akin to Navigate (see Figure 1). We study the impact of various depths and we report the results in Figure 9.
|
| 273 |
+
|
| 274 |
+
Across all settings, the task accuracy gradually increases with deeper trees and reaches its maximum when all the subproblems involve only one swap (depth $= L - 1$ ). The trade-off between the number of merge operations and the accuracy of simple instances is not at play here.
|
| 275 |
+
|
| 276 |
+
On Multistep Arithmetic Two, ToP (2, 1) and ToP (2, 2) respectively achieve $30.8\%$ and $57.2\%$ accuracy where CoT is at $34\%$ . Similarly, ToP (1, 2) and ToP (1, 3) respectively achieve $60\%$ and $66.4\%$ where CoT is at $60.4\%$ on Navigate. This suggests that the tree structure can greatly affect the quality of ToP.
|
| 277 |
+
|
| 278 |
+
# C.3 Robustness to the solve prompt.
|
| 279 |
+
|
| 280 |
+
Throughout our experiments, we used CoT prompting to solve the most granular subproblems (the tree's leaves). In this section, we examine the impact of using IO prompting to solve the leaves. We conduct experiments on Word Sorting, which did not benefit from CoT prompting as shown in
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
Figure 9: Impact of the tree structure (depth) on the accuracy of ToP on Tracking Shuffled Objects $(L\in \{3,5,7\})$ . Depth $= 0$ and depth $= 1$ represent CoT prompting.
|
| 284 |
+
|
| 285 |
+
Table 4. Additionally, we include Tracking Shuffled Objects (3, 5), Boolean Expressions, Multistep Arithmetic Two, and Object Counting, where IO prompting produced much poorer results compared to CoT. The results are summarized in Table 7.
|
| 286 |
+
|
| 287 |
+
<table><tr><td rowspan="2">BBH tasks</td><td colspan="2">LLaMA 3 8B</td></tr><tr><td>IO</td><td>IO + ToP</td></tr><tr><td>Boolean Expressions</td><td>0.824</td><td>0.876</td></tr><tr><td>Multistep Arithmetic Two</td><td>0.008</td><td>0.036</td></tr><tr><td>Object Counting</td><td>0.492</td><td>0.552</td></tr><tr><td>Tracking Shuffled Objects</td><td></td><td></td></tr><tr><td>Three</td><td>0.132</td><td>0.196</td></tr><tr><td>Five</td><td>0.004</td><td>0.008</td></tr><tr><td>Web of Lies</td><td>0.528</td><td>0.484</td></tr><tr><td>Word Sorting</td><td>0.647</td><td>0.679</td></tr></table>
|
| 288 |
+
|
| 289 |
+
Table 7: Comparison of IO prompting and IO + ToP on BBH tasks.
|
| 290 |
+
|
| 291 |
+
We observe that $\mathrm{IO} + \mathrm{ToP}$ consistently outperforms standalone IO prompting on all the BBH tasks except Web of Lies. This is because the LLM's performance is random (0.528) on that specific task and dividing it into simpler instances does not resolve the issue (leaves' $\mathrm{EM} = 0.496$ ). Moreover, applying $\mathrm{IO} + \mathrm{ToP}$ on Multistep Arithmetic Two with a depth of 2 instead of 1 gives a $22\%$ accuracy. These results demonstrate that ToP is robust to low-quality solve_prompt but achieves the best results with a good solve_prompt.
|
| 292 |
+
|
| 293 |
+
# C.4 Analysis of failure cases
|
| 294 |
+
|
| 295 |
+
In Table 4, we showed that ToP induces considerable performance gains on various complex BBH tasks with gpt-3.5-turbo-instruct. However, ToP specifically failed to improve performance on Multistep Arithmetic Two and Object Counting. An analysis of the model's outputs suggests 2 main causes:
|
| 296 |
+
|
| 297 |
+
1. The founding hypothesis of ToP is not always verified. The founding hypothesis of ToP is the ability of an LLM to perform better on simpler instances of a task compared to more complex ones. When this is not verified, ToP's performance tends to fall behind CoT prompting. We strikingly observe such a behaviour on Object Counting. For multiple instances, the LLM was able to count the relevant items in a given list but fails to do so in a subset of the same list, as illustrated in Table 8. This also frequently occurs with Multistep Arithmetic Two instances, where the $73.6\%$ ToP's accuracy cannot be improved even with an Oracle merger.
|
| 298 |
+
|
| 299 |
+
MAININSTANCE
|
| 300 |
+
|
| 301 |
+
<table><tr><td>Q: I have three oranges, a pig, a frog, a cow, three bananas, a nectarine, and a snail. How many animals do I have?</td></tr><tr><td>Let's think step by step.We first identify the animals on the list and include their quantity in parentheses:- pig (1)- frog (1)- cow (1)- snail (1)Now, let's add the numbers in parentheses: 1 + 1 + 1 + 1 = 4. So the answer is 4.</td></tr><tr><td>SUBSTANCE</td></tr><tr><td>Q: I have three bananas, a nectarine, and a snail. How many animals do I have?</td></tr><tr><td>Let's think step by step.We first identify the animals on the list and include their quantity in parentheses:- bananas (3)- nectarine (1)- snail (1)Now, let's add the numbers in parentheses: 3 + 1 + 1 = 5. So the answer is 5.</td></tr></table>
|
| 302 |
+
|
| 303 |
+
Table 8: gpt-3.5-turbo-instruct is able to accurately count the number of animals in a given list but fails to count it in a sublist.
|
| 304 |
+
|
| 305 |
+
2. The LLM fails to merge subproblems' solutions into their parent's solution. In Appendix C.1, we showed that the use of an oracle
|
| 306 |
+
|
| 307 |
+
merger leads to even greater improvements in the ToP framework. Additionally, a bad merger can bring ToP below CoT performance. Table 9 shows an example on the Object Counting task, where the LLM accurately solve both subproblems but fail to combine their answers. We believe that such issues can be significantly alleviated with a better merge_prompt.
|
| 308 |
+
|
| 309 |
+
SUBSTANCE 1
|
| 310 |
+
|
| 311 |
+
<table><tr><td>Q: I have a yam, a cauliflower, a bed, two cabbages, a garlic, and an oven. How many vegetables do I have?</td></tr><tr><td>Let's think step by step.</td></tr><tr><td>We first identify the vegetables on the list and include their quantity in parentheses:</td></tr><tr><td>- yam (1)</td></tr><tr><td>- cauliflower (1)</td></tr><tr><td>- cabbage (2)</td></tr><tr><td>- garlic (1)</td></tr><tr><td>Now, let's add the numbers in parentheses: 1 + 1 + 2 + 1 = 5. So the answer is 5.</td></tr></table>
|
| 312 |
+
|
| 313 |
+
SUBSTANCE 2
|
| 314 |
+
|
| 315 |
+
<table><tr><td>Q: I have a carrot, a head of broccoli, a potato, a stalk of celery, a lettuce head, and a toaster. How many vegeta-
|
| 316 |
+
bles do I have?</td></tr><tr><td>Let's think step by step.
|
| 317 |
+
We first identify the vegetables on the list and include their quantity in parentheses:
|
| 318 |
+
- carrot (1)
|
| 319 |
+
- broccoli (1)
|
| 320 |
+
- potato (1)
|
| 321 |
+
- celery (1)
|
| 322 |
+
- lettuce (1)</td></tr><tr><td>Now, let's add the numbers in parentheses: 1 + 1 + 1 + 1 + 1 = 5. So the answer is 5.</td></tr><tr><td>MAIN instance</td></tr><tr><td>Q: I have a yam, a cauliflower, a bed, two cabbages, a garlic, an oven, a carrot, a head of broccoli, a potato, a stalk of celery, a lettuce head, and a toaster. How many vegetables do I have?</td></tr><tr><td>Let's think step by step.
|
| 323 |
+
The list of words can be written as the concatenation of A and B where
|
| 324 |
+
- A = a yam, a cauliflower, a bed, two cabbages, and a garlic.
|
| 325 |
+
- B = an oven, a carrot, a head of broccoli, a potato, a stalk of celery, and a lettuce head.
|
| 326 |
+
According to the premises, A contains 5 vegetables.
|
| 327 |
+
According to the premises, B contains 6 vegetables.
|
| 328 |
+
Then, the total number of vegetables is A + B = 5 + 6 = 11. So the answer is 11.</td></tr></table>
|
| 329 |
+
|
| 330 |
+
Table 9: gpt-3.5-turbo-instruct is unable to use the information in its context to solve the given problem.
|
| 331 |
+
|
| 332 |
+
# D Implementation details
|
| 333 |
+
|
| 334 |
+
# D.1 Language Models and Datasets
|
| 335 |
+
|
| 336 |
+
In Table 10, we list the links to the relevant resources used to build this work.
|
| 337 |
+
|
| 338 |
+
# D.2 Sampling scheme and evaluation metrics
|
| 339 |
+
|
| 340 |
+
For prompting strategies that require sampling, we use nucleus sampling with $T = 0.7$ and top-p $= 0.95$ . Otherwise, we use greedy decoding $(T = 0.0)$ . In all experiments, we generate at most 2000 new tokens and use Exact String Match (EM) as the evaluation metric.
|
| 341 |
+
|
| 342 |
+
# D.3 Decomposition
|
| 343 |
+
|
| 344 |
+
All the decomposers are algorithmic. For sorting and set intersection, a list $\mathsf{L}$ is divided into $\mathsf{L}[\emptyset : \mathsf{len}(\mathsf{L}) // 2]$ and $\mathsf{L}[\mathsf{len}(\mathsf{L}) // 2]$ . For keyword sorting, we decompose the input text based on its sentences with the help of a sentence splitter module.<sup>4</sup>
|
| 345 |
+
|
| 346 |
+
# D.4 How to choose the breadth and the depth
|
| 347 |
+
|
| 348 |
+
ToP depends on 2 parameters, the breadth and the depth of the tree structure. A quick analysis of the problem can lead to an informed guess about what a good breadth should be. This is typically the case of sorting problems when a breadth of 2 helps to mimic the merge sort algorithm. We mostly experimented with a breadth of 2 for canonical tasks and saw that it yielded very good results. When it comes to sequential problems, the breadth is 1 and the depth plays the role of the number of block of steps before reaching the final state (depth-wise decomposition). Using 2 blocks also gave good results, but deeper trees tend to always give better results for such problems.
|
| 349 |
+
|
| 350 |
+
# E Prompts
|
| 351 |
+
|
| 352 |
+
# E.1 GoT Tasks
|
| 353 |
+
|
| 354 |
+
We provide the links to all the prompts used to solve the GoT tasks in Table 11.
|
| 355 |
+
|
| 356 |
+
# E.2 BBH tasks
|
| 357 |
+
|
| 358 |
+
We describe the modification applied to 3 BBH tasks: Hyperbaton, Navigate and Tracking Shuffled Objects. Instead of choosing which of two sentences has the right adjective ordering, we turned
|
| 359 |
+
|
| 360 |
+
each instance of Hyperbaton into 2 separate instances of Yes/No questions relative to adjectives ordering. Table 12 shows an example instance before and after the modification (we only reported one separate instance for visibility). We modify Navigate to require to find the final position after a series of instructions instead of asking if they lead to the starting point. Table 13 shows an example instance before and after modification. In Tracking Shuffled Objects, we ask the LLM to recover the final object assignments after the pairwise swaps as exemplified in Table 14.
|
| 361 |
+
|
| 362 |
+
We provide the links to all the prompts used to solve the BBH tasks in Table 15.
|
| 363 |
+
|
| 364 |
+
# E.3 Symbolic Reasoning
|
| 365 |
+
|
| 366 |
+
We provide the links to all the prompts used to solve Coin Flip and Last Letter Concatenation in Table 16.
|
| 367 |
+
|
| 368 |
+
<table><tr><td colspan="2">Datasets for Comparisons</td></tr><tr><td>BIG-Bench Hard</td><td>https://huggingface.co/datasets/lukaemon/bbh</td></tr><tr><td colspan="2">Models for Evaluations</td></tr><tr><td>GPT-3.5-Turbo</td><td>gpt-3.5-turbo (gpt-3.5-turbo-0125)</td></tr><tr><td>GPT-3.5-Turbo-Instruct</td><td>gpt-3.5-turbo-instruct</td></tr><tr><td>LLaMA 3 8B</td><td>https://huggingface.co/meta-llama/Meta-Llama-3-8B</td></tr><tr><td>LLaMA 3 70B</td><td>https://huggingface.co/casperhausen/llama-3-70b-instruct-awq</td></tr><tr><td>LLaMA 2 7B</td><td>https://huggingface.co/meta-llama/Llama-2-7b-hf</td></tr><tr><td>LLaMA 2 13B</td><td>https://huggingface.co/meta-llama/Llama-2-13b-hf</td></tr><tr><td>LLaMA 2 70B</td><td>https://huggingface.co/TheBloke/Llama-2-70B-AWQ</td></tr></table>
|
| 369 |
+
|
| 370 |
+
Table 10: Links to datasets, benchmarks and language models.
|
| 371 |
+
|
| 372 |
+
<table><tr><td colspan="2">CoT</td></tr><tr><td>Sorting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/got/prompts/cot/sorting.txt</td></tr><tr><td>Set Intersection</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/got/prompts/cot/set Intersection.txt</td></tr><tr><td>Keyword Counting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/got/prompts/cot/keyword_counting.txt</td></tr><tr><td colspan="2">Merge</td></tr><tr><td>Sorting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/got/prompts/merge/sorting.txt</td></tr><tr><td>Set Intersection (2)</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/got/prompts/merge/set Intersection.txt</td></tr><tr><td>Set Intersection (4)</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/got/prompts/merge/set Intersection_4.txt</td></tr><tr><td>Keyword Counting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/got/prompts/merge/keyword_counting.txt</td></tr></table>
|
| 373 |
+
|
| 374 |
+
Table 11: Links to solve and merge prompts of the GoT Tasks.
|
| 375 |
+
|
| 376 |
+
<table><tr><td>BEFORE</td></tr><tr><td>Q: Which sentence has the correct adjective order:
|
| 377 |
+
Options:
|
| 378 |
+
(A) rubber terrible ship
|
| 379 |
+
(B) terrible rubber ship</td></tr><tr><td>IO Answer</td></tr><tr><td>(B)</td></tr><tr><td>CoT Answer</td></tr><tr><td>A: Let's think step by step.
|
| 380 |
+
When there is more than one adjective before a noun, the adjectives need to respect the following order before a noun: "[1. opinion] [2. size] [3. age] [4. shape] [5. color] [6. origin] [7. material] [8. purpose] noun".
|
| 381 |
+
Option (A): "rubber terrible ship". (1) rubber" falls into the material category. (2) "terrible" falls into the opinion category.
|
| 382 |
+
Option (A) has the following adjective order: [7. material] [1. opinion] (or, in numeric terms, 7 1). Because 7 < 1 is not correct, (A) does not have the correct ordering.
|
| 383 |
+
Option (B): "terrible rubber ship". Option (B) has the following adjective order: [1. opinion] [7. material] (or, in numeric terms, 1 7). Because 1 < 7 is correct, (B) has the correct ordering. So the answer is (B).</td></tr><tr><td>AFTER</td></tr><tr><td>Q: Answer with Yes or No. Does the following sentence have the correct adjective order?
|
| 384 |
+
rubber terrible ship</td></tr><tr><td>IO Answer</td></tr><tr><td>No</td></tr><tr><td>CoT Answer</td></tr><tr><td>A: Let's think step by step.
|
| 385 |
+
When there is more than one adjective before a noun, the adjectives need to respect the following order before a noun: "[1. opinion] [2. size] [3. age] [4. shape] [5. color] [6. origin] [7. material] [8. purpose] noun".
|
| 386 |
+
The sentence is "rubber terrible ship". (1) rubber" falls into the material category. (2) "terrible" falls into the opinion category.
|
| 387 |
+
The sentence has the following adjective order: [7. material] [1. opinion] (or, in numeric terms, 7 1). Because 7 < 1 is not correct, the sentence does not have the correct ordering. So the answer is No.</td></tr></table>
|
| 388 |
+
|
| 389 |
+
Table 12: Modification applied to Hyperbaton.
|
| 390 |
+
|
| 391 |
+
<table><tr><td>BEFORE</td></tr><tr><td>Q: If you follow these instructions, do you return to the starting point? Turn left. Turn around. Turn left. Take 7 steps. Take 2 steps. Take 4 steps. Take 8 steps.</td></tr><tr><td>IO Answer</td></tr><tr><td>No</td></tr><tr><td>CoT Answer</td></tr><tr><td>A: Let's think step by step. We start at the origin (0, 0), facing the positive y-axis.
|
| 392 |
+
(1) Turn left: (0, 0), facing the negative x-axis.
|
| 393 |
+
(2) Turn around: (0, 0), facing the positive x-axis.
|
| 394 |
+
(3) Turn left: (0, 0), facing the positive y-axis.
|
| 395 |
+
(4) Take 7 steps: (0, 7), facing the positive y-axis.
|
| 396 |
+
(5) Take 2 steps: (0, 9), facing the positive y-axis.
|
| 397 |
+
(6) Take 4 steps: (0, 13), facing the positive y-axis.
|
| 398 |
+
(7) Take 8 steps: (0, 21), facing the positive y-axis.
|
| 399 |
+
Since (0, 21) is not (0, 0), we are not where we started. So the answer is No.</td></tr><tr><td>AFTER</td></tr><tr><td>Q: If you follow these instructions, what are the coordinates of the end point if you start at the point (0, 0), facing the positive y-axis? Turn left. Turn around. Turn left. Take 7 steps. Take 2 steps. Take 4 steps. Take 8 steps.</td></tr><tr><td>IO Answer</td></tr><tr><td>(0, 21)</td></tr><tr><td>CoT Answer</td></tr><tr><td>A: Let's think step by step. We start at the origin (0, 0), facing the positive y-axis.
|
| 400 |
+
(1) Turn left: (0, 0), facing the negative x-axis.
|
| 401 |
+
(2) Turn around: (0, 0), facing the positive x-axis.
|
| 402 |
+
(3) Turn left: (0, 0), facing the positive y-axis.
|
| 403 |
+
(4) Take 7 steps: (0. 7), facing the positive y-axis.
|
| 404 |
+
(5) Take 2 steps: (0, 9), facing the positive y-axis.
|
| 405 |
+
(6) Take 4 steps: (0, 13), facing the positive y-axis.
|
| 406 |
+
(7) Take 8 steps: (0, 21), facing the positive y-axis.
|
| 407 |
+
So the answer is (0, 21).</td></tr></table>
|
| 408 |
+
|
| 409 |
+
Table 13: Modification applied to Navigate.
|
| 410 |
+
|
| 411 |
+
# BEFORE
|
| 412 |
+
|
| 413 |
+
Q: Alice, Bob, and Claire are friends and avid readers who occasionally trade books. At the start of the semester, they each buy one new book: Alice gets Ulysses, Bob gets Frankenstein, and Claire gets Lolita. As the semester proceeds, they start trading around the new books. First, Claire and Bob swap books. Then, Bob and Alice swap books. Finally, Claire and Bob swap books.
|
| 414 |
+
|
| 415 |
+
At the end of the semester, Bob has
|
| 416 |
+
|
| 417 |
+
Options:
|
| 418 |
+
|
| 419 |
+
(A) Ulysses
|
| 420 |
+
(B) Frankenstein
|
| 421 |
+
(C) Lolita
|
| 422 |
+
|
| 423 |
+
# IO Answer
|
| 424 |
+
|
| 425 |
+
# (B)
|
| 426 |
+
|
| 427 |
+
# CoT Answer
|
| 428 |
+
|
| 429 |
+
A: Let's think step by step.
|
| 430 |
+
|
| 431 |
+
(0) At the start: Alice: Ulysses, Bob: Frankenstein, Claire: Lolita.
|
| 432 |
+
(1) Claire and Bob swap books: Alice: Ulysses, Bob: Lolita, Claire: Frankenstein.
|
| 433 |
+
(2) Bob and Alice swap books: Alice: Lolita, Bob: Ulysses, Claire: Frankenstein.
|
| 434 |
+
(3) Claire and Bob swap books: Alice: Lolita, Bob: Frankenstein, Claire: Ulysses.
|
| 435 |
+
|
| 436 |
+
At the end of the semester, Bob has Frankenstein. So the answer is (B).
|
| 437 |
+
|
| 438 |
+
# AFTER
|
| 439 |
+
|
| 440 |
+
Q: Alice, Bob, and Claire are friends and avid readers who occasionally trade books. At the start of the semester, they each buy one new book: Alice gets Ulysses, Bob gets Frankenstein, and Claire gets Lolita. As the semester proceeds, they start trading around the new books. First, Claire and Bob swap books. Then, Bob and Alice swap books. Finally, Claire and Bob swap books.
|
| 441 |
+
|
| 442 |
+
At the end of the semester, what is the assignment of books?
|
| 443 |
+
|
| 444 |
+
# IO Answer
|
| 445 |
+
|
| 446 |
+
# Alice: Lolita, Bob: Frankenstein, Claire: Ulysses
|
| 447 |
+
|
| 448 |
+
# CoT Answer
|
| 449 |
+
|
| 450 |
+
A: Let's think step by step.
|
| 451 |
+
|
| 452 |
+
(0) At the start: Alice: Ulysses, Bob: Frankenstein, Claire: Lolita.
|
| 453 |
+
(1) Claire and Bob swap books: Alice: Ulysses, Bob: Lolita, Claire: Frankenstein.
|
| 454 |
+
(2) Bob and Alice swap books: Alice: Lolita, Bob: Ulysses, Claire: Frankenstein.
|
| 455 |
+
(3) Claire and Bob swap books: Alice: Lolita, Bob: Frankenstein, Claire: Ulysses.
|
| 456 |
+
So the answer is Alice: Lolita, Bob: Frankenstein, Claire: Ulysses.
|
| 457 |
+
|
| 458 |
+
Table 14: Modification applied to Tracking Shuffled Objects (Three objects).
|
| 459 |
+
|
| 460 |
+
<table><tr><td colspan="2">CoT</td></tr><tr><td>Boolean Expressions</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/cot/booleanExpressions.txt</td></tr><tr><td>Hyperbaton</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/cot/hyperbaton.txt</td></tr><tr><td>Multistep Arithmetic Two</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/cot/multistep_arithmetic_two.txt</td></tr><tr><td>Navigate</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/cot/navate.txt</td></tr><tr><td>Object Counting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/cot/object_counting.txt</td></tr><tr><td>Tracking Shuffled Objects</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/cot/tracking_shuffled Objects.txt</td></tr><tr><td>Web of Lies</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/cot/web_of Lies.txt</td></tr><tr><td>Word Sorting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/cot/word_sorting.txt</td></tr><tr><td colspan="2">IO</td></tr><tr><td>Boolean Expressions</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/standard/booleanExpressions.txt</td></tr><tr><td>Hyperbaton</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/standard/hyperbaton.txt</td></tr><tr><td>Multistep Arithmetic Two</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/standard/multistep_arithmetic_two.txt</td></tr><tr><td>Navigate</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/standard/navate.txt</td></tr><tr><td>Object Counting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/standard/object_counting.txt</td></tr><tr><td>Tracking Shuffled Objects</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/standard/tracking_shuffled Objects.txt</td></tr><tr><td>Web of Lies</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/standard/web_of Lies.txt</td></tr><tr><td>Word Sorting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/standard/word_sorting.txt</td></tr><tr><td colspan="2">Merge</td></tr><tr><td>Boolean Expressions</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/merge/booleanExpressions.txt</td></tr><tr><td>Hyperbaton</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/merge/hyperbaton.txt</td></tr><tr><td>Multistep Arithmetic Two</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/merge/multistep_arithmetic_two.txt</td></tr><tr><td>Navigate</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/merge/navate.txt</td></tr><tr><td>Object Counting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/merge/object_counting.txt</td></tr><tr><td>Tracking Shuffled Objects</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/merge/tracking_shuffled Objects.txt</td></tr><tr><td>Web of Lies</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/merge/web_of Lies.txt</td></tr><tr><td>Word Sorting</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/bbh/prompts/merge/word_sorting.txt</td></tr></table>
|
| 461 |
+
|
| 462 |
+
Table 15: Links to solve and merge prompts for the BBH tasks.
|
| 463 |
+
|
| 464 |
+
<table><tr><td colspan="2">CoT</td></tr><tr><td>Coin</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/coin/prompts/cot/cot8.txt</td></tr><tr><td>Concatenation</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/concatenation/prompts/cot/cot8.txt</td></tr><tr><td colspan="2">IO</td></tr><tr><td>Coin</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/coin/prompts/standard/standard8.txt</td></tr><tr><td>Concatenation</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/concatenation/prompts/standard/standard8.txt</td></tr><tr><td colspan="2">Merge</td></tr><tr><td>Coin</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/coin/prompts/merge/merge.txt</td></tr><tr><td>Concatenation</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/concatenation/prompts/merge/merge.txt</td></tr><tr><td colspan="2">L2M</td></tr><tr><td>Coin</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/coin/prompts/merge/12m.txt</td></tr><tr><td>Concatenation</td><td>https://github.com/ArmelRandy/tree-of-problems/blob/master/top/concatenation/prompts/merge/12m.txt</td></tr></table>
|
| 465 |
+
|
| 466 |
+
Table 16: Links to solve and merge prompts for Coin Flip and Last Letter Concatenation.
|
2024/Tree of Problems_ Improving structured problem solving with compositionality/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1bfd889775a93ca2006878ad52c1bee3629eaea29b979438998e17490d9c1122
|
| 3 |
+
size 1759805
|
2024/Tree of Problems_ Improving structured problem solving with compositionality/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/2bfc46f7-f4ed-4d88-9bf5-1ead6a8c1d52_content_list.json
ADDED
|
@@ -0,0 +1,2514 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Triad: A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
117,
|
| 8 |
+
85,
|
| 9 |
+
878,
|
| 10 |
+
124
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Chang Zong $^{1}$ , Yuchen Yan $^{1}$ , Weiming Lu $^{1\\dagger}$ , Jian Shao $^{1}$ \nYongfeng Huang $^{2}$ , Heng Chang $^{3}$ , Yueting Zhuang $^{1\\dagger}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
258,
|
| 19 |
+
135,
|
| 20 |
+
739,
|
| 21 |
+
170
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "<sup>1</sup>College of Computer Science and Technology, Zhejiang University \n<sup>2</sup>The Chinese University of Hong Kong \n<sup>3</sup>Tsinghua University \n{zongchang, luwm, yzhuang}@zju.edu.cn",
|
| 28 |
+
"bbox": [
|
| 29 |
+
226,
|
| 30 |
+
171,
|
| 31 |
+
776,
|
| 32 |
+
237
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
260,
|
| 42 |
+
260,
|
| 43 |
+
339,
|
| 44 |
+
275
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Recent progress with LLM-based agents has shown promising results across various tasks. However, their use in answering questions from knowledge bases remains largely unexplored. Implementing a KBQA system using traditional methods is challenging due to the shortage of task-specific training data and the complexity of creating task-focused model structures. In this paper, we present Triad, a unified framework that utilizes an LLM-based agent with multiple roles for KBQA tasks. The agent is assigned three roles to tackle different KBQA subtasks: agent as a generalist for mastering various subtasks, as a decision maker for the selection of candidates, and as an advisor for answering questions with knowledge. Our KBQA framework is executed in four phases, involving the collaboration of the agent's multiple roles. We evaluated the performance of our framework using three benchmark datasets, and the results show that our framework outperforms state-of-the-art systems on the LC-QuAD and YAGO-QA benchmarks, yielding F1 scores of $11.8\\%$ and $20.7\\%$ , respectively.",
|
| 51 |
+
"bbox": [
|
| 52 |
+
141,
|
| 53 |
+
288,
|
| 54 |
+
460,
|
| 55 |
+
631
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
114,
|
| 65 |
+
645,
|
| 66 |
+
258,
|
| 67 |
+
659
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "A question-answering system is designed to extract information by converting a natural language question into a structured query that can retrieve precise information from an existing knowledge base (Omar et al., 2023a). The resolution of Knowledge Base Question Answering (KBQA) typically involves phases including question understanding, URI linking, and query execution. Traditional KBQA systems require the use of specialized models trained with domain datasets for question parsing and entity linking (Hu et al., 2018; Omar et al., 2023a; Hu et al., 2021). Large language models (LLMs), however, have shown promising competencies in in-context learning using task-specific",
|
| 74 |
+
"bbox": [
|
| 75 |
+
112,
|
| 76 |
+
671,
|
| 77 |
+
490,
|
| 78 |
+
896
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "demonstrations (Dong et al., 2022). LLMs have recently been employed as agents in the execution of complex problems. A framework that employs LLM-augmented agents can generate actions or coordinate multiple agents, thus improving the capacity to handle complex situations (Liu et al., 2023). Despite the remarkable performance of LLMs in various tasks as evidenced in previous studies, a comprehensive qualitative and quantitative evaluation of KBQA frameworks empowered with an LLM-based agent remains insufficiently explored.",
|
| 85 |
+
"bbox": [
|
| 86 |
+
507,
|
| 87 |
+
261,
|
| 88 |
+
884,
|
| 89 |
+
439
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/99ca4918bdf6bc83a47e697322f730e3148f67aa4f29ce2ff8375a19d1064a9d.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: A system with multiple roles who focus on sub-problems of each phase to solve a complex task."
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
542,
|
| 102 |
+
453,
|
| 103 |
+
852,
|
| 104 |
+
646
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "Studies on KBQA with LLMs has attracted considerable attention. Some works focus primarily on highlighting the inability of LLMs to generate complete factoid results (Hu et al., 2023b; Tan et al., 2023c) or demonstrating their potential efficacy in future research (Omar et al., 2023b; Tan et al., 2023b). Other works concentrates on generating answers by prompt learning and incorporating external knowledge bases (Baek et al., 2023; Tan et al., 2023a). Concurrently, LLMs can be deployed to address each phase within Text2SQL challenges(Li et al., 2023, 2024) or theorem proof tasks(Dong et al., 2023). However, each phase of",
|
| 111 |
+
"bbox": [
|
| 112 |
+
507,
|
| 113 |
+
712,
|
| 114 |
+
884,
|
| 115 |
+
921
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "page_footnote",
|
| 121 |
+
"text": "†Corresponding authors.",
|
| 122 |
+
"bbox": [
|
| 123 |
+
142,
|
| 124 |
+
906,
|
| 125 |
+
294,
|
| 126 |
+
920
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 0
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "page_number",
|
| 132 |
+
"text": "1698",
|
| 133 |
+
"bbox": [
|
| 134 |
+
480,
|
| 135 |
+
927,
|
| 136 |
+
519,
|
| 137 |
+
940
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 0
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "footer",
|
| 143 |
+
"text": "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 1698-1710 November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 144 |
+
"bbox": [
|
| 145 |
+
159,
|
| 146 |
+
945,
|
| 147 |
+
836,
|
| 148 |
+
973
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 0
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "KBQA can be further decomposed into subtasks and completed through an agentic approach that provides feedback and cooperation. Additionally, decomposing the task reduces the complexity of cooperative working by allowing each role to concentrate on smaller sub-problems (Wang et al., 2020). As illustrated in Figure 1, three roles in an organization work together to provide the final answer for the overall task. The above observations spur our exploration into the following question: How does an LLM-based agent solve KBQA tasks by serving as multiple roles, and its performance is comparable to systems trained specifically?",
|
| 155 |
+
"bbox": [
|
| 156 |
+
112,
|
| 157 |
+
84,
|
| 158 |
+
490,
|
| 159 |
+
294
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "In this study, we introduce Triad, a unified framework that leverages an LLM-based agent with three roles to address KBQA tasks. Specifically, we implement the agent consisting of an LLM as the core, supplemented by various task-specific modules such as memory and executing functions. The agent is assigned three distinct roles: a generalist (G-Agent) adept at mastering numerous small tasks by the given examples, a decision maker (D-Agent) proficient at identifying options and selecting candidates, and an advisor (A-Agent) skilled at providing answers using internal and external knowledge. The cooperation of these agent roles composes a KBQA process containing four phases: question parsing, URI linking, query construction, and answer generation. We evaluate our framework on three benchmark datasets in various difficulties. The results show that our framework outperforms state-of-the-art systems, demonstrated by $11.8\\%$ and $20.7\\%$ F1 scores on the LC-QuAD and YAGO-QA benchmarks, respectively<sup>1</sup>.",
|
| 166 |
+
"bbox": [
|
| 167 |
+
115,
|
| 168 |
+
294,
|
| 169 |
+
490,
|
| 170 |
+
632
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "The contributions of this study can be summarized as follows:",
|
| 177 |
+
"bbox": [
|
| 178 |
+
112,
|
| 179 |
+
633,
|
| 180 |
+
489,
|
| 181 |
+
664
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "list",
|
| 187 |
+
"sub_type": "text",
|
| 188 |
+
"list_items": [
|
| 189 |
+
"- We propose Triad, the first framework that leverages an LLM-based agent to solve KBQA tasks in all its four phases, without specialized training models.",
|
| 190 |
+
"- We implement an LLM-based agent with various task-specific modules that can act as three roles, including a generalist, a decision maker, and an advisor, to collaboratively solve KBQA via focusing on subtasks.",
|
| 191 |
+
"- We evaluate the performance of Triad. The results show a competitive ability compared"
|
| 192 |
+
],
|
| 193 |
+
"bbox": [
|
| 194 |
+
136,
|
| 195 |
+
678,
|
| 196 |
+
489,
|
| 197 |
+
883
|
| 198 |
+
],
|
| 199 |
+
"page_idx": 1
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"type": "text",
|
| 203 |
+
"text": "to both state-of-the-art KBQA systems and pure LLM methods.",
|
| 204 |
+
"bbox": [
|
| 205 |
+
544,
|
| 206 |
+
84,
|
| 207 |
+
880,
|
| 208 |
+
116
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 1
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "2 Preliminaries",
|
| 215 |
+
"text_level": 1,
|
| 216 |
+
"bbox": [
|
| 217 |
+
507,
|
| 218 |
+
128,
|
| 219 |
+
662,
|
| 220 |
+
143
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 1
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "2.1 Phases of KBQA",
|
| 227 |
+
"text_level": 1,
|
| 228 |
+
"bbox": [
|
| 229 |
+
507,
|
| 230 |
+
155,
|
| 231 |
+
687,
|
| 232 |
+
171
|
| 233 |
+
],
|
| 234 |
+
"page_idx": 1
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "text",
|
| 238 |
+
"text": "A typical KBQA system has a process that encompasses four phases:",
|
| 239 |
+
"bbox": [
|
| 240 |
+
507,
|
| 241 |
+
177,
|
| 242 |
+
884,
|
| 243 |
+
209
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 1
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "Question parsing involves converting natural language questions into a structured format that incorporates references to entities and relations.",
|
| 250 |
+
"bbox": [
|
| 251 |
+
507,
|
| 252 |
+
218,
|
| 253 |
+
882,
|
| 254 |
+
266
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 1
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "URI linking entails associating and replacing these entity and relation mentions with their corresponding URIs within a knowledge base.",
|
| 261 |
+
"bbox": [
|
| 262 |
+
507,
|
| 263 |
+
275,
|
| 264 |
+
884,
|
| 265 |
+
325
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 1
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "Query construction involves creating executable queries in a standard format to extract answers from knowledge bases.",
|
| 272 |
+
"bbox": [
|
| 273 |
+
507,
|
| 274 |
+
335,
|
| 275 |
+
884,
|
| 276 |
+
382
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 1
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "Answer generation seeks to obtain the ultimate answers either by performing queries within knowledge bases or by directly querying an agent.",
|
| 283 |
+
"bbox": [
|
| 284 |
+
507,
|
| 285 |
+
392,
|
| 286 |
+
882,
|
| 287 |
+
441
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 1
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "2.2 Roles of LLM-based Agent",
|
| 294 |
+
"text_level": 1,
|
| 295 |
+
"bbox": [
|
| 296 |
+
507,
|
| 297 |
+
451,
|
| 298 |
+
768,
|
| 299 |
+
467
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 1
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "Drawing an analogy to a software development scenario, where coders complete small development tasks, with the process and plan being decided by the manager, and ultimately the outcome inspected by the leader, we assign the following three roles to an LLM-based agent to solve the KBQA task:",
|
| 306 |
+
"bbox": [
|
| 307 |
+
507,
|
| 308 |
+
473,
|
| 309 |
+
882,
|
| 310 |
+
569
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 1
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "Agent as a generalist (G-Agent) is capable of mastering various small tasks by providing a few examples.",
|
| 317 |
+
"bbox": [
|
| 318 |
+
507,
|
| 319 |
+
579,
|
| 320 |
+
882,
|
| 321 |
+
627
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 1
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "Agent as a decision-maker (D-Agent) adepts at analyzing options and providing candidate results as procedural feedback.",
|
| 328 |
+
"bbox": [
|
| 329 |
+
507,
|
| 330 |
+
637,
|
| 331 |
+
880,
|
| 332 |
+
684
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 1
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "Agent as an advisor (A-Agent) is skilled in providing final answers with the aid of both external and its own knowledge.",
|
| 339 |
+
"bbox": [
|
| 340 |
+
507,
|
| 341 |
+
696,
|
| 342 |
+
882,
|
| 343 |
+
744
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 1
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "2.3 Task Formulation",
|
| 350 |
+
"text_level": 1,
|
| 351 |
+
"bbox": [
|
| 352 |
+
507,
|
| 353 |
+
755,
|
| 354 |
+
695,
|
| 355 |
+
769
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 1
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "A KBQA task refers to the process of solving a set of subtasks $S$ . Each subtask $S_{t} \\in S$ contributes to one phase of the whole process. An LLM-based agent $Agent_{r}$ with a role $r$ can be used to resolve a type of subtasks by its task-specific components, including a language model $LLM$ , a memory $Mem_{t}$ , a function $F_{t}$ , a prompt $Pmt_{t}$ and a set of parameters $\\theta_{t}$ , using the set of role-related hyperparameters $\\sigma_{r}$ . The task can be formulated as follows:",
|
| 362 |
+
"bbox": [
|
| 363 |
+
507,
|
| 364 |
+
776,
|
| 365 |
+
884,
|
| 366 |
+
920
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 1
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "page_footnote",
|
| 372 |
+
"text": "$^{1}$ Code and data are available at https://github.com/ZJU-DCDLab/Triad.",
|
| 373 |
+
"bbox": [
|
| 374 |
+
112,
|
| 375 |
+
894,
|
| 376 |
+
487,
|
| 377 |
+
919
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 1
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "page_number",
|
| 383 |
+
"text": "1699",
|
| 384 |
+
"bbox": [
|
| 385 |
+
482,
|
| 386 |
+
928,
|
| 387 |
+
519,
|
| 388 |
+
940
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 1
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "equation",
|
| 394 |
+
"text": "\n$$\nf (K B Q A) = \\bigoplus_ {t = 1} ^ {T} f (S _ {t})\n$$\n",
|
| 395 |
+
"text_format": "latex",
|
| 396 |
+
"bbox": [
|
| 397 |
+
179,
|
| 398 |
+
110,
|
| 399 |
+
368,
|
| 400 |
+
152
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 2
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "equation",
|
| 406 |
+
"text": "\n$$\nf \\left(S _ {t}\\right) = A g e n t _ {r} \\left(L L M, M e m _ {t}, F _ {t}, P m t _ {t}, \\theta_ {t}, \\sigma_ {r}\\right) \\tag {1}\n$$\n",
|
| 407 |
+
"text_format": "latex",
|
| 408 |
+
"bbox": [
|
| 409 |
+
115,
|
| 410 |
+
156,
|
| 411 |
+
487,
|
| 412 |
+
186
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 2
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": ", where $T$ is the total number of subtasks, $\\bigoplus$ is the way to coordinate subtasks to solve the whole.",
|
| 419 |
+
"bbox": [
|
| 420 |
+
112,
|
| 421 |
+
187,
|
| 422 |
+
485,
|
| 423 |
+
219
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 2
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "3 Triad Framework",
|
| 430 |
+
"text_level": 1,
|
| 431 |
+
"bbox": [
|
| 432 |
+
112,
|
| 433 |
+
231,
|
| 434 |
+
304,
|
| 435 |
+
247
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 2
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "The overall architecture of Triad is shown in Figure 2. Each role of the LLM-based agent, along with its associated subtasks, is illustrated as follows.",
|
| 442 |
+
"bbox": [
|
| 443 |
+
112,
|
| 444 |
+
258,
|
| 445 |
+
487,
|
| 446 |
+
306
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 2
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "3.1 G-Agent as a Generalized Solver",
|
| 453 |
+
"text_level": 1,
|
| 454 |
+
"bbox": [
|
| 455 |
+
112,
|
| 456 |
+
319,
|
| 457 |
+
416,
|
| 458 |
+
334
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 2
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "A generalized agent (G-Agent) proficiently manages numerous tasks by leveraging learning from limited examples through an LLM. In our framework, a G-Agent can perform question parsing, query template generation, or answer type classification as actions solely utilizing an LLM. These three subtasks are illustrated as follows:",
|
| 465 |
+
"bbox": [
|
| 466 |
+
112,
|
| 467 |
+
340,
|
| 468 |
+
487,
|
| 469 |
+
451
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 2
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "Triplet mention extraction: The process of extracting triplet mentions in question parsing involves the conversion of a naturally phrased question, denoted as $Q$ , into formatted triplets of entities and relations. This subtask is executed employing an LLM, which is guided by a prompt with a set of prerequisites and a selection of examples. This subtask can be represented as follows:",
|
| 476 |
+
"bbox": [
|
| 477 |
+
112,
|
| 478 |
+
463,
|
| 479 |
+
489,
|
| 480 |
+
590
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 2
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "equation",
|
| 486 |
+
"text": "\n$$\nf \\left(S _ {t r i}\\right) = A g e n t _ {g} \\left(L L M, P m t _ {t r i}, Q, \\mathcal {N}\\right) \\tag {2}\n$$\n",
|
| 487 |
+
"text_format": "latex",
|
| 488 |
+
"bbox": [
|
| 489 |
+
136,
|
| 490 |
+
604,
|
| 491 |
+
487,
|
| 492 |
+
627
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 2
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "equation",
|
| 498 |
+
"text": "\n$$\nP m t _ {t r i} = \\left[ I n s _ {t r i}, S h o t _ {t r i}, C o T _ {t r i} \\right]\n$$\n",
|
| 499 |
+
"text_format": "latex",
|
| 500 |
+
"bbox": [
|
| 501 |
+
137,
|
| 502 |
+
626,
|
| 503 |
+
400,
|
| 504 |
+
640
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 2
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": ", where $A g e n t_{g}$ is the agent as a generalist to perform the triplet extraction subtask with $\\mathcal{N}$ examples. $P m t_{tri}$ is the prompt to guide LLM to generate triplets from the question $Q$ , which consists of instruction $I n s_{tri}$ , examples $S h o t_{tri}$ , and chain-of-thought prompt $C o T_{tri}$ (Kojima et al., 2022).",
|
| 511 |
+
"bbox": [
|
| 512 |
+
112,
|
| 513 |
+
653,
|
| 514 |
+
489,
|
| 515 |
+
750
|
| 516 |
+
],
|
| 517 |
+
"page_idx": 2
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"type": "text",
|
| 521 |
+
"text": "SPARQL template generation: The generation of SPARQL templates in query construction involves the use of an LLM to create a SPARQL template that articulates the question using standard SPARQL syntax, replacing URI identifiers with entity and relation variables. To derive precise and comprehensive answers from the knowledge base using SPARQL queries, there are two potential strategies. One approach involves the direct generation of an executable SPARQL using",
|
| 522 |
+
"bbox": [
|
| 523 |
+
112,
|
| 524 |
+
760,
|
| 525 |
+
489,
|
| 526 |
+
921
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 2
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "an LLM, though this method may significantly increase LLM call times and error rates when numerous candidate queries are in play. Alternatively, a SPARQL template can initially be generated with entity and relation variables, which are subsequently replaced with linked URIs. For the sake of stability and efficiency, we opt for the second strategy. This subtask can be denoted as:",
|
| 533 |
+
"bbox": [
|
| 534 |
+
507,
|
| 535 |
+
84,
|
| 536 |
+
884,
|
| 537 |
+
212
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 2
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "equation",
|
| 543 |
+
"text": "\n$$\nf (S _ {q t}) = A g e n t _ {g} (L L M, P m t _ {q t}, \\theta_ {q t}, \\mathcal {N}),\n$$\n",
|
| 544 |
+
"text_format": "latex",
|
| 545 |
+
"bbox": [
|
| 546 |
+
529,
|
| 547 |
+
223,
|
| 548 |
+
838,
|
| 549 |
+
241
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 2
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "equation",
|
| 555 |
+
"text": "\n$$\nP m t _ {q t} = \\left[ I n s _ {q t}, S h o t _ {q t}, C o T _ {q t} \\right], \\tag {3}\n$$\n",
|
| 556 |
+
"text_format": "latex",
|
| 557 |
+
"bbox": [
|
| 558 |
+
531,
|
| 559 |
+
243,
|
| 560 |
+
880,
|
| 561 |
+
260
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 2
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "equation",
|
| 567 |
+
"text": "\n$$\n\\theta_ {q t} = [ Q, f (S _ {t r i}) ]\n$$\n",
|
| 568 |
+
"text_format": "latex",
|
| 569 |
+
"bbox": [
|
| 570 |
+
559,
|
| 571 |
+
263,
|
| 572 |
+
695,
|
| 573 |
+
280
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 2
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": ", where $A g e n t_{g}$ is the agent as a generalist to perform SPARQL template generation with $\\mathcal{N}$ examples, $f(S_{tri})$ is the triplets derived from the previous subtask, $P m t_{q t}$ is the prompt for LLM to generate SPARQL template.",
|
| 580 |
+
"bbox": [
|
| 581 |
+
507,
|
| 582 |
+
288,
|
| 583 |
+
884,
|
| 584 |
+
369
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 2
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "Answer type classification: In the phase of answer generation, the answer type classification subtask refers to the process of assigning a specific category to a response according to the question. This process serves as a guiding mechanism for the framework to generate comprehensive and accurate answers. This classification subtask is denoted as:",
|
| 591 |
+
"bbox": [
|
| 592 |
+
507,
|
| 593 |
+
378,
|
| 594 |
+
882,
|
| 595 |
+
489
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 2
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "equation",
|
| 601 |
+
"text": "\n$$\nf \\left(S _ {c l s}\\right) = A g e n t _ {g} \\left(L L M, P m t _ {c l s}, Q, \\mathcal {N}\\right), \\tag {4}\n$$\n",
|
| 602 |
+
"text_format": "latex",
|
| 603 |
+
"bbox": [
|
| 604 |
+
529,
|
| 605 |
+
497,
|
| 606 |
+
882,
|
| 607 |
+
523
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 2
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "equation",
|
| 613 |
+
"text": "\n$$\nP m t _ {c l s} = \\left[ I n s _ {c l s}, S h o t _ {c l s}, C o T _ {c l s} \\right]\n$$\n",
|
| 614 |
+
"text_format": "latex",
|
| 615 |
+
"bbox": [
|
| 616 |
+
531,
|
| 617 |
+
518,
|
| 618 |
+
794,
|
| 619 |
+
533
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 2
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": ", where $A g e n t_{g}$ is the agent as a generalist to perform type classification subtask with $\\mathcal{N}$ examples, $P m t_{c l s}$ is the prompt for LLM.",
|
| 626 |
+
"bbox": [
|
| 627 |
+
507,
|
| 628 |
+
544,
|
| 629 |
+
882,
|
| 630 |
+
592
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 2
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "3.2 D-Agent as a Decision-Maker",
|
| 637 |
+
"text_level": 1,
|
| 638 |
+
"bbox": [
|
| 639 |
+
507,
|
| 640 |
+
602,
|
| 641 |
+
786,
|
| 642 |
+
617
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 2
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "An agent as a decision maker (D-Agent) is capable of making candidate selections step by step through filtering and choosing from given options, harnessing the capabilities of an LLM and KB as memory. The D-Agent can effectively handle three subtasks, which are delineated as follows:",
|
| 649 |
+
"bbox": [
|
| 650 |
+
507,
|
| 651 |
+
623,
|
| 652 |
+
882,
|
| 653 |
+
718
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 2
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "text",
|
| 659 |
+
"text": "Candidate entity selection: The selection of candidate entities in URI linking is pivotal to the ultimate efficacy of KBQA. Prior research has focused primarily on developing a semantic similarity model to address this linking challenge. However, the linking task requires numerous iterations of searching within the knowledge base, which poses a compatibility issue for LLM-oriented methods. In our framework, an agent as a decision maker is utilized initially to filter all potential entity URIs from the knowledge base, subsequently deploying an LLM to select candidate URIs from a pool of",
|
| 660 |
+
"bbox": [
|
| 661 |
+
507,
|
| 662 |
+
728,
|
| 663 |
+
882,
|
| 664 |
+
920
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 2
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "page_number",
|
| 670 |
+
"text": "1700",
|
| 671 |
+
"bbox": [
|
| 672 |
+
482,
|
| 673 |
+
928,
|
| 674 |
+
519,
|
| 675 |
+
940
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 2
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "image",
|
| 681 |
+
"img_path": "images/65f8a985484e660617f9c6e72ffacae12e9ff46eef3caef196387195c75dbcf4.jpg",
|
| 682 |
+
"image_caption": [
|
| 683 |
+
"Figure 2: Our Triad framework leverages an LLM-based agent with three different roles including a generalist, a decision-maker, and an advisor to cooperatively handle a series of subtasks in the four phases of a KBQA process."
|
| 684 |
+
],
|
| 685 |
+
"image_footnote": [],
|
| 686 |
+
"bbox": [
|
| 687 |
+
115,
|
| 688 |
+
83,
|
| 689 |
+
394,
|
| 690 |
+
312
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 3
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "image",
|
| 696 |
+
"img_path": "images/19cd017a6f14bd1a81b57338bff9017ac9b677a59f7f97203cdb46895b63f89a.jpg",
|
| 697 |
+
"image_caption": [],
|
| 698 |
+
"image_footnote": [],
|
| 699 |
+
"bbox": [
|
| 700 |
+
400,
|
| 701 |
+
83,
|
| 702 |
+
895,
|
| 703 |
+
312
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 3
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "potential identifiers. For each entity, our aim is to find the $\\kappa$ most possible entity URIs which can be used to traverse over the KB to get the final answer. The entity selection subtask can be denoted as:",
|
| 710 |
+
"bbox": [
|
| 711 |
+
112,
|
| 712 |
+
384,
|
| 713 |
+
487,
|
| 714 |
+
447
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 3
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "equation",
|
| 720 |
+
"text": "\n$$\nf (S _ {e s}) = A g e n t _ {d} (L L M, M e m _ {e s}, F _ {e s},\n$$\n",
|
| 721 |
+
"text_format": "latex",
|
| 722 |
+
"bbox": [
|
| 723 |
+
132,
|
| 724 |
+
480,
|
| 725 |
+
423,
|
| 726 |
+
497
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 3
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "equation",
|
| 732 |
+
"text": "\n$$\n\\left. P m t _ {e s}, \\theta_ {e s}, \\mathcal {K}\\right), \\tag {5}\n$$\n",
|
| 733 |
+
"text_format": "latex",
|
| 734 |
+
"bbox": [
|
| 735 |
+
205,
|
| 736 |
+
500,
|
| 737 |
+
485,
|
| 738 |
+
516
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 3
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "equation",
|
| 744 |
+
"text": "\n$$\nM e m _ {e s} = [ K B, L i s t _ {e s} ], \\theta_ {e s} = [ Q, f (S _ {t r i}) ]\n$$\n",
|
| 745 |
+
"text_format": "latex",
|
| 746 |
+
"bbox": [
|
| 747 |
+
127,
|
| 748 |
+
519,
|
| 749 |
+
455,
|
| 750 |
+
537
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 3
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": ", where $Agent_d$ is the agent as a decision maker to perform the entity selection subtask with question $Q$ , extracted triplets $f(S_{tri})$ and memory $Mem_{es}$ , $Mem_{es}$ is composed of a knowledge base $KB$ and a list of entity URIs $List_{es}$ filtered from $KB$ using a text similarity matching function $F_{es}$ , $Pmt_{es}$ is the prompt for LLM to perform the subtask, $\\mathcal{K}$ is the hyperparameter of $Agent_d$ , indicating the number of candidates selected by LLM.",
|
| 757 |
+
"bbox": [
|
| 758 |
+
112,
|
| 759 |
+
552,
|
| 760 |
+
487,
|
| 761 |
+
697
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 3
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "Candidate relation selection: The task of candidate relation selection in URI linking presents considerable challenges due to the discrepancies between word forms and meanings. Nevertheless, the existence of reasoning paths in the knowledge base can be utilized to allow for a significant reduction of the search space in relation linking. In our framework, an agent as a decision maker endeavors to sieve through all potential relation URIs by navigating the knowledge base with candidate entity URIs generated from the previous subtask. Subsequently, an LLM is used to select the top $\\kappa$ most probable relation URIs for output. The relation",
|
| 768 |
+
"bbox": [
|
| 769 |
+
112,
|
| 770 |
+
712,
|
| 771 |
+
489,
|
| 772 |
+
921
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 3
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "selection subtask can be denoted as:",
|
| 779 |
+
"bbox": [
|
| 780 |
+
507,
|
| 781 |
+
384,
|
| 782 |
+
779,
|
| 783 |
+
399
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 3
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "equation",
|
| 789 |
+
"text": "\n$$\nf \\left(S _ {r s}\\right) = A g e n t _ {d} (L L M, M e m _ {r s}, F _ {r s},\n$$\n",
|
| 790 |
+
"text_format": "latex",
|
| 791 |
+
"bbox": [
|
| 792 |
+
529,
|
| 793 |
+
409,
|
| 794 |
+
818,
|
| 795 |
+
425
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 3
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "equation",
|
| 801 |
+
"text": "\n$$\n\\left. P m t _ {r s}, \\theta_ {r s}, \\mathcal {K}\\right), \\tag {6}\n$$\n",
|
| 802 |
+
"text_format": "latex",
|
| 803 |
+
"bbox": [
|
| 804 |
+
601,
|
| 805 |
+
428,
|
| 806 |
+
880,
|
| 807 |
+
445
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 3
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "equation",
|
| 813 |
+
"text": "\n$$\nM e m _ {r s} = \\left[ K B, L i s t _ {r s} \\right], \\theta_ {r s} = \\left[ Q, f \\left(S _ {e s}\\right) \\right]\n$$\n",
|
| 814 |
+
"text_format": "latex",
|
| 815 |
+
"bbox": [
|
| 816 |
+
522,
|
| 817 |
+
448,
|
| 818 |
+
848,
|
| 819 |
+
464
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 3
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": ", where memory $Mem_{rs}$ is composed of the knowledge base $KB$ and a list of possible relation URIs $List_{rs}$ filtered from $KB$ using a one-order traversing function $F_{rs}$ . $Pmt_{rs}$ is the prompt for LLM to perform relation selection. $\\kappa$ is the number of relation URIs selected by LLM.",
|
| 826 |
+
"bbox": [
|
| 827 |
+
507,
|
| 828 |
+
476,
|
| 829 |
+
884,
|
| 830 |
+
571
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 3
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "Candidate SPARQL selection: The subtask of candidate SPARQL selection in query construction involves determining the appropriate SPARQL queries to obtain the final answers. Given a SPARQL template generated by the G-Agent, along with multiple candidate URIs selected from the D-Agent in previous subtasks, our D-Agent is targeted to identify the most plausible query. To further reduce the difficulty of selection, an executor function is applied to eliminate queries that cannot retrieve any results from the knowledge base. In conclusion, our aim in this subtask is to use D-Agent to construct executable SPARQLs and find the most possible one given a query candidate list with supported information. The SPARQL selection subtask can be denoted as:",
|
| 837 |
+
"bbox": [
|
| 838 |
+
507,
|
| 839 |
+
580,
|
| 840 |
+
884,
|
| 841 |
+
837
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 3
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "equation",
|
| 847 |
+
"text": "\n$$\n\\begin{array}{l} f (S _ {q s}) = A g e n t _ {d} (L L M, M e m _ {q s}, F _ {q s}, \\\\ \\left. \\begin{array}{l} P m t _ {q s}, \\theta_ {q s}, \\mathcal {K}), \\\\ [ ] \\end{array} \\right. \\tag {7} \\\\ \\end{array}\n$$\n",
|
| 848 |
+
"text_format": "latex",
|
| 849 |
+
"bbox": [
|
| 850 |
+
544,
|
| 851 |
+
847,
|
| 852 |
+
880,
|
| 853 |
+
891
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 3
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "equation",
|
| 859 |
+
"text": "\n$$\nM e m _ {q s} = \\left[ K B, L i s t _ {q s} \\right],\n$$\n",
|
| 860 |
+
"text_format": "latex",
|
| 861 |
+
"bbox": [
|
| 862 |
+
539,
|
| 863 |
+
887,
|
| 864 |
+
729,
|
| 865 |
+
904
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 3
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "equation",
|
| 871 |
+
"text": "\n$$\n\\theta_ {q s} = [ Q, f (S _ {e s}), f (S _ {r s}), f (S _ {q t}) ]\n$$\n",
|
| 872 |
+
"text_format": "latex",
|
| 873 |
+
"bbox": [
|
| 874 |
+
574,
|
| 875 |
+
906,
|
| 876 |
+
821,
|
| 877 |
+
923
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 3
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "page_number",
|
| 883 |
+
"text": "1701",
|
| 884 |
+
"bbox": [
|
| 885 |
+
482,
|
| 886 |
+
927,
|
| 887 |
+
517,
|
| 888 |
+
940
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 3
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": ", where memory $Mem_{qs}$ is composed of a knowledge base $KB$ and a list of possible SPARQLs $List_{qs}$ constructed with SPARQL template $f(S_{qt})$ , entity URIs $f(S_{es})$ , and relation URIs $f(S_{rs})$ by the function $F_{qs}$ , $Pmt_{qs}$ is the prompt for LLM to perform query selection, $\\mathcal{K} = 1$ is the number of queries selected by LLM.",
|
| 895 |
+
"bbox": [
|
| 896 |
+
112,
|
| 897 |
+
84,
|
| 898 |
+
489,
|
| 899 |
+
197
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 4
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "3.3 A-Agent as a Comprehensive Advisor",
|
| 906 |
+
"text_level": 1,
|
| 907 |
+
"bbox": [
|
| 908 |
+
112,
|
| 909 |
+
218,
|
| 910 |
+
455,
|
| 911 |
+
233
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 4
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "An advisory agent (A-Agent) is capable of processing a question and a corresponding type of answer as input. Its response is generated by either extracting information from an external knowledge base or by utilizing its internal knowledge to provide a direct answer. This comprehensive answering subtask can be described as follows:",
|
| 918 |
+
"bbox": [
|
| 919 |
+
112,
|
| 920 |
+
244,
|
| 921 |
+
489,
|
| 922 |
+
356
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 4
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "Comprehensive answering: The objective of comprehensive answering in the answer generation phase is to derive a definitive response based on an incoming question. Previous work (Omar et al., 2023b) has demonstrated that LLMs are more proficient in delivering single-fact responses and making Boolean judgments. Given this understanding, we implement an advisory agent that incorporates a simple policy to facilitate a comprehensive answering approach. Specifically, if a question yields a final SPARQL generated from the preceding steps, A-Agent extracts elements from the knowledge base to give the answer. Conversely, if the agent does not receive a feasible SPARQL, A-Agent provides a direct response with LLM's internal knowledge, following the prompt based on the type of the answer. Additionally, A-Agent will send a retry signal to previous phases if no result is generated. The subtask can be formulated as below:",
|
| 929 |
+
"bbox": [
|
| 930 |
+
112,
|
| 931 |
+
376,
|
| 932 |
+
489,
|
| 933 |
+
697
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 4
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "equation",
|
| 939 |
+
"text": "\n$$\nf (S _ {c a}) = A g e n t _ {a} (L L M, M e m _ {c a}, F _ {c a},\n$$\n",
|
| 940 |
+
"text_format": "latex",
|
| 941 |
+
"bbox": [
|
| 942 |
+
129,
|
| 943 |
+
715,
|
| 944 |
+
425,
|
| 945 |
+
733
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 4
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "equation",
|
| 951 |
+
"text": "\n$$\n\\left. P m t _ {c a}, \\theta_ {c a}, \\mathcal {T}\\right), \\tag {8}\n$$\n",
|
| 952 |
+
"text_format": "latex",
|
| 953 |
+
"bbox": [
|
| 954 |
+
203,
|
| 955 |
+
736,
|
| 956 |
+
485,
|
| 957 |
+
753
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 4
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "equation",
|
| 963 |
+
"text": "\n$$\nM e m _ {c a} = [ K B ], \\theta_ {c a} = [ Q, f (S _ {q s}), f (S _ {c l s}) ]\n$$\n",
|
| 964 |
+
"text_format": "latex",
|
| 965 |
+
"bbox": [
|
| 966 |
+
124,
|
| 967 |
+
755,
|
| 968 |
+
457,
|
| 969 |
+
774
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 4
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": ", where $A g e n t_{a}$ is the agent as an advisor to perform a comprehensive answering for the question $Q$ with a memory $M e m_{c a}$ of knowledge base, $P m t_{c a}$ is the prompt for LLM to perform a direct response according to the type of the answer, $f(S_{q s})$ is the final query and $f(S_{c l s})$ is the answer type, $\\mathcal{T}$ is the maximum times to retry for previous phases if no result is returned from $K B$ .",
|
| 976 |
+
"bbox": [
|
| 977 |
+
112,
|
| 978 |
+
791,
|
| 979 |
+
489,
|
| 980 |
+
921
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 4
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "4 Performance Evaluation",
|
| 987 |
+
"text_level": 1,
|
| 988 |
+
"bbox": [
|
| 989 |
+
507,
|
| 990 |
+
83,
|
| 991 |
+
754,
|
| 992 |
+
98
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 4
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "4.1 Experimental Settings",
|
| 999 |
+
"text_level": 1,
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
507,
|
| 1002 |
+
109,
|
| 1003 |
+
732,
|
| 1004 |
+
124
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 4
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "Indexed Knowledge Bases: The efficacy of our framework is assessed through the collection of two real knowledge bases, specifically DBpedia and YAGO. DBpedia (Auer et al., 2007) serves as an accessible knowledge base extracted from Wikipedia, while YAGO (Pellissier Tanon et al., 2020) is a large knowledge base that includes individuals, cities, nations, and organizations. We index the triples and the mentions of entities and relations in a Virtuoso endpoint and an Elasticsearch server, respectively.",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
507,
|
| 1013 |
+
130,
|
| 1014 |
+
884,
|
| 1015 |
+
307
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 4
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "KBQA Benchmark Datasets: We evaluate our framework on datasets including YAGO-QA, LCQuAD 1.0, and QALD-9, which have various difficulties in interpreting the questions. These datasets contain questions in English, paired with their respective SPARQL queries, and accurate responses derived from a specific knowledge base. QALD-9 (Usbeck et al., 2018) and LC-QuAD 1.0 (Trivedi et al., 2017) are frequently used to evaluate QA systems with DBpedia. The recently published YAGO-QA in (Omar et al., 2023a), features questions accompanied by annotated SPARQL queries sourced from YAGO. The statistics for three benchmarks, along with their associated knowledge bases, are depicted in Table 1.",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
507,
|
| 1024 |
+
316,
|
| 1025 |
+
885,
|
| 1026 |
+
557
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 4
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "Baseline Methods: We evaluate Triad against traditional KBQA systems such as KGQAN (Omar et al., 2023a), EDGQA (Hu et al., 2021) and gAnswer (Hu et al., 2018). This comparison shows how our LLM-based agent framework can rival full-shot systems with just a few examples. Additionally, we contrast our framework with pure GPT models like GPT-3.5 Turbo and GPT-4 to exhibit Triad's architectural performance. We treat these foundation models as few-shot methods to answer the questions referring to some examples.",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
507,
|
| 1035 |
+
565,
|
| 1036 |
+
885,
|
| 1037 |
+
744
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 4
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "Implementation Details: Triad is implemented with Python 3.9. We incorporate LLM capabilities to our multi-role agent via OpenAI's API services. The names of entities and relations from knowledge bases are indexed in an ElasticSearch 7.5.2 server for text matching. All triples are imported into an SPARQL endpoint of Virtuoso 07.20.3237 for retrieval. Triad requires four hyperparameters: the number of examples G-Agent uses for subtask",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
507,
|
| 1046 |
+
753,
|
| 1047 |
+
885,
|
| 1048 |
+
897
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 4
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "page_footnote",
|
| 1054 |
+
"text": "$^{2}$ https://platform.openai.com/docs/models",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
529,
|
| 1057 |
+
904,
|
| 1058 |
+
791,
|
| 1059 |
+
920
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 4
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "page_number",
|
| 1065 |
+
"text": "1702",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
480,
|
| 1068 |
+
927,
|
| 1069 |
+
519,
|
| 1070 |
+
940
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 4
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "table",
|
| 1076 |
+
"img_path": "images/f067ba9e32c5b22450e5b7df9e37764fac19483a3acaad5a39656811da784653.jpg",
|
| 1077 |
+
"table_caption": [],
|
| 1078 |
+
"table_footnote": [],
|
| 1079 |
+
"table_body": "<table><tr><td rowspan=\"2\">Benchmarks</td><td colspan=\"5\">Benchmark Statistics</td></tr><tr><td>#Questions</td><td>KB</td><td>#Triples</td><td>Virtuoso Size</td><td>ES size</td></tr><tr><td>LC-QuAD 1.0</td><td>1000</td><td>DBpedia-04</td><td>397M</td><td>35.40G</td><td>1.56G</td></tr><tr><td>QALD-9</td><td>150</td><td>DBpedia-10</td><td>374M</td><td>36.89G</td><td>1.57G</td></tr><tr><td>YAGO-QA</td><td>100</td><td>YAGO-4</td><td>207M</td><td>24.85G</td><td>0.54G</td></tr></table>",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
181,
|
| 1082 |
+
83,
|
| 1083 |
+
816,
|
| 1084 |
+
172
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 5
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "table",
|
| 1090 |
+
"img_path": "images/92754dd5a326d2ead11fd35555850845ce66281773f19eace5e83b1357fce48b.jpg",
|
| 1091 |
+
"table_caption": [
|
| 1092 |
+
"Table 1: The statistics of KBQA benchmarks, including the number of questions number, the number of triples, the size of index in Virtuoso and Elasticsearch."
|
| 1093 |
+
],
|
| 1094 |
+
"table_footnote": [],
|
| 1095 |
+
"table_body": "<table><tr><td rowspan=\"2\">Type</td><td rowspan=\"2\">Frameworks</td><td colspan=\"3\">LC-QuAD 1.0</td><td colspan=\"3\">QALD-9</td><td colspan=\"3\">YAGO-QA</td></tr><tr><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td></tr><tr><td rowspan=\"3\">full-shot</td><td>gAnswer</td><td>-</td><td>-</td><td>-</td><td>0.293</td><td>0.327</td><td>0.298</td><td>0.585</td><td>0.341</td><td>0.430</td></tr><tr><td>EDGQA</td><td>0.505</td><td>0.560</td><td>0.531</td><td>0.313</td><td>0.403</td><td>0.320</td><td>0.419</td><td>0.408</td><td>0.414</td></tr><tr><td>KGQAN</td><td>0.587</td><td>0.461</td><td>0.516</td><td>0.511</td><td>0.387</td><td>0.441</td><td>0.485</td><td>0.652</td><td>0.556</td></tr><tr><td rowspan=\"4\">few-shot</td><td>GPT-3.5</td><td>0.269</td><td>0.251</td><td>0.266</td><td>0.240</td><td>0.217</td><td>0.228</td><td>0.171</td><td>0.142</td><td>0.155</td></tr><tr><td>GPT-4</td><td>0.336</td><td>0.344</td><td>0.340</td><td>0.250</td><td>0.249</td><td>0.249</td><td>0.193</td><td>0.190</td><td>0.191</td></tr><tr><td>Triad-GPT3.5</td><td>0.490</td><td>0.519</td><td>0.504</td><td>0.293</td><td>0.302</td><td>0.297</td><td>0.660</td><td>0.639</td><td>0.649</td></tr><tr><td>Triad-GPT4</td><td>0.561</td><td>0.568</td><td>0.564</td><td>0.408</td><td>0.425</td><td>0.416</td><td>0.690</td><td>0.664</td><td>0.677</td></tr></table>",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
117,
|
| 1098 |
+
225,
|
| 1099 |
+
880,
|
| 1100 |
+
379
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 5
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Table 2: The performance of our proposed Triad on three benchmarks, comparing with traditional KBQA systems (full-shot) and pure LLM (few-shot) baselines. The optimal and suboptimal scores are highlighted with bold and underlined text, respectively.",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
112,
|
| 1109 |
+
388,
|
| 1110 |
+
882,
|
| 1111 |
+
432
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 5
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "learning, the number of candidates D-Agent selects for entity and relation linking, and the retry times for handling non-response SPARQLs. The optimal values for these parameters are 3, 2, 2, and 3, respectively. The framework and its variants are tested five times on each benchmark, with the average scores reported as the final results. For traditional systems, we report the results recorded in their papers. For pure LLM baselines, we write prompts to hire an LLM to answer questions directly referring to examples, and then link the mentions from the responses to the URIs in our indexed knowledge bases via built-in similarity search.",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
112,
|
| 1120 |
+
457,
|
| 1121 |
+
489,
|
| 1122 |
+
667
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 5
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "4.2 Performance Comparison",
|
| 1129 |
+
"text_level": 1,
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
112,
|
| 1132 |
+
680,
|
| 1133 |
+
364,
|
| 1134 |
+
696
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 5
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "The performance of Triad compared to traditional KBQA systems and pure LLM generation methods is shown in Table 2. Evaluation metrics precision(P), recall(R), and F1-score(F1) are reported. We can observe from the experimental results that:",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
112,
|
| 1143 |
+
703,
|
| 1144 |
+
489,
|
| 1145 |
+
784
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 5
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "Few-shot can be competitive with full-shot. Our multi-role LLM-based agent framework, though executing a few-shot prompt learning, exhibits competitive performance with cutting-edge full-shot KBQA systems.",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
112,
|
| 1154 |
+
796,
|
| 1155 |
+
489,
|
| 1156 |
+
878
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 5
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "Underlying capability matters. The use of GPT-4 as the core in an LLM-based agent significantly",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
112,
|
| 1165 |
+
889,
|
| 1166 |
+
489,
|
| 1167 |
+
921
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 5
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "outperforms GPT-3.5 on all benchmarks, demonstrating the importance of the underlying capabilities of an agent.",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
507,
|
| 1176 |
+
457,
|
| 1177 |
+
884,
|
| 1178 |
+
505
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 5
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "Explicit knowledge is necessary. Pure LLM models with GPT-3.5 and GPT-4 display deficiencies in generating accurate responses without an auxiliary knowledge base as a memory for intermediary steps such as URI linking.",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
507,
|
| 1187 |
+
513,
|
| 1188 |
+
884,
|
| 1189 |
+
594
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 5
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "Performance varies with complexity. Triad demonstrates superior results on the LC-QuAD and YAGO-QA benchmarks compared to QALD-9, due to an increasing failure in response to complex questions, which will be discussed later.",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
507,
|
| 1198 |
+
601,
|
| 1199 |
+
882,
|
| 1200 |
+
681
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 5
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "4.3 Study on Capabilities of Agent Roles",
|
| 1207 |
+
"text_level": 1,
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
507,
|
| 1210 |
+
690,
|
| 1211 |
+
843,
|
| 1212 |
+
707
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 5
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"text": "We assess the efficacy of G-Agent with various other language models as the core. The framework without G-task uses the text-davinci-002, which is not as powerful as GPT-3.5 and GPT-4 in solving many tasks, and the one without G-chat uses text-davinci-003 to eliminate the chat and alignment abilities. We test the ability of D-Agent without D-uri and D-query by replacing the URI selection and query selection with URI matching and query generation, respectively. We evaluate the contribution of A-Agent eliminating A-llm and A-fact by responding to questions without using LLM's assistance or use an LLM to answer Boolean questions",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
507,
|
| 1221 |
+
712,
|
| 1222 |
+
884,
|
| 1223 |
+
921
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 5
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "page_number",
|
| 1229 |
+
"text": "1703",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
482,
|
| 1232 |
+
927,
|
| 1233 |
+
519,
|
| 1234 |
+
940
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 5
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "text",
|
| 1240 |
+
"text": "for auxiliary rather than single-fact questions. The F1 results of the role ablation experiments on two representative datasets are shown in Table 3. The results indicate that every component pertaining to each role contributes to the overall performance. More specifically, a G-Agent that employs a less powerful LLM as its core can drastically undermine performance. D-Agent assumes a more pivotal role during the linking phase compared to the query construction phase. A-Agent, on the other hand, proves to be an efficient solution for managing situations where SPARQL results are absent.",
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
112,
|
| 1243 |
+
84,
|
| 1244 |
+
492,
|
| 1245 |
+
277
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 6
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "table",
|
| 1251 |
+
"img_path": "images/346b10410304a8645f02c845b5225d26628bf1517956ef6cf0536a24af650bb4.jpg",
|
| 1252 |
+
"table_caption": [],
|
| 1253 |
+
"table_footnote": [],
|
| 1254 |
+
"table_body": "<table><tr><td>G-task</td><td>G-chat</td><td>LC-QuAD 1.0</td><td>QALD-9</td></tr><tr><td>X</td><td>X</td><td>0.343</td><td>0.159</td></tr><tr><td>✓</td><td>X</td><td>0.443</td><td>0.248</td></tr><tr><td>✓</td><td>✓</td><td>0.564</td><td>0.416</td></tr><tr><td>D-uri</td><td>D-query</td><td>LC-QuAD 1.0</td><td>QALD-9</td></tr><tr><td>X</td><td>✓</td><td>0.274</td><td>0.210</td></tr><tr><td>✓</td><td>X</td><td>0.431</td><td>0.301</td></tr><tr><td>✓</td><td>✓</td><td>0.564</td><td>0.416</td></tr><tr><td>A-llm</td><td>A-fact</td><td>LC-QuAD 1.0</td><td>QALD-9</td></tr><tr><td>X</td><td>X</td><td>0.459</td><td>0.382</td></tr><tr><td>✓</td><td>X</td><td>0.473</td><td>0.385</td></tr><tr><td>✓</td><td>✓</td><td>0.564</td><td>0.416</td></tr></table>",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
115,
|
| 1257 |
+
291,
|
| 1258 |
+
500,
|
| 1259 |
+
514
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 6
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "4.4 Analysis of Role Hyperparameters",
|
| 1266 |
+
"text_level": 1,
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
112,
|
| 1269 |
+
586,
|
| 1270 |
+
431,
|
| 1271 |
+
602
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 6
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "We concentrate on three hyperparameters of roles, including the number of examples $(\\mathcal{N}\\in$ $\\{1,2,3\\})$ provided for G-Agent to learn subtasks, the number of URI candidates $(\\mathcal{K}\\in$ $\\{(1,1),(1,2),(2,2),(2,3)\\})$ selected by D-Agent for query construction, and the number of retry times $(\\mathcal{T}\\in \\{1,2,3\\})$ launched by A-Agent when there is no response. Table 4 presents the F1 results of Triad's performance, employing three hyperparameters on two benchmarks. We discover that:",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
112,
|
| 1280 |
+
608,
|
| 1281 |
+
489,
|
| 1282 |
+
769
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 6
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Quality is more important than quantity. More examples provided to G-Agent do not always improve the performance. The efficacy of G-Agent is significantly influenced by the quality of examples.",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
112,
|
| 1291 |
+
781,
|
| 1292 |
+
489,
|
| 1293 |
+
845
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 6
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "More options may harm the result. Choosing more candidate URIs for entities and relations could potentially disrupt subsequent query phases, thus affecting overall performance.",
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
112,
|
| 1302 |
+
857,
|
| 1303 |
+
489,
|
| 1304 |
+
921
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 6
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "table",
|
| 1310 |
+
"img_path": "images/472bc0a6457be2ac74c5ba9f2054b1ee8eadd96e56c36024c036244c93a9f362.jpg",
|
| 1311 |
+
"table_caption": [
|
| 1312 |
+
"Table 3: Study on the roles of LLM-based agent by eliminating an element or downgrading the capability."
|
| 1313 |
+
],
|
| 1314 |
+
"table_footnote": [],
|
| 1315 |
+
"table_body": "<table><tr><td>Triad Variants</td><td>LC-QuAD 1.0</td><td>QALD-9</td></tr><tr><td>Triad-1-Shot</td><td>0.556</td><td>0.376</td></tr><tr><td>Triad-2-Shot</td><td>0.511</td><td>0.402</td></tr><tr><td>Triad-3-Shot</td><td>0.564</td><td>0.416</td></tr><tr><td>Triad-Top1-1</td><td>0.528</td><td>0.281</td></tr><tr><td>Triad-Top1-2</td><td>0.562</td><td>0.375</td></tr><tr><td>Triad-Top2-2</td><td>0.564</td><td>0.416</td></tr><tr><td>Triad-Top2-3</td><td>0.558</td><td>0.384</td></tr><tr><td>Triad-1-Try</td><td>0.529</td><td>0.375</td></tr><tr><td>Triad-2-Tries</td><td>0.561</td><td>0.407</td></tr><tr><td>Triad-3-Tries</td><td>0.564</td><td>0.416</td></tr></table>",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
515,
|
| 1318 |
+
83,
|
| 1319 |
+
878,
|
| 1320 |
+
269
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 6
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Table 4: Performance evaluation on three hyperparameters that related to each role of an LLM-based agent.",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
507,
|
| 1329 |
+
279,
|
| 1330 |
+
884,
|
| 1331 |
+
307
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 6
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "More chances benefits the framework. Persistently attempting to construct and execute SPARQL queries is an effective strategy that improves the probability of obtaining accurate answers. Considering the efficiency of overall execution, we set the maximum retry times as 3 in practice.",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
507,
|
| 1340 |
+
332,
|
| 1341 |
+
884,
|
| 1342 |
+
430
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 6
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "4.5 Analysis of Linking Recall",
|
| 1349 |
+
"text_level": 1,
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
507,
|
| 1352 |
+
441,
|
| 1353 |
+
764,
|
| 1354 |
+
456
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 6
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "The process of linking is a relatively complex subtask in both the Text2SQL and the KBQA process (Li et al., 2024). Calculating the recall ratio of accurate URIs using D-Agent provides clarity on which step most adversely impacts performance. In the entity linking phase, considering all URIs of entities in the testing set as the ground truth of the linking results, $80.75\\%$ of the correct URIs are contained from the output of the entity matching filter in D-Agent and $70.50\\%$ of the correct URIs are retained from the entity selection performed by the LLM in D-Agent. Whereas, in the relation linking phase, only $52.54\\%$ of the correct relation URIs survive from the selection of LLM, which indicates a greater difficulty in relation linking.",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
507,
|
| 1363 |
+
462,
|
| 1364 |
+
882,
|
| 1365 |
+
703
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 6
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "4.6 Study on Complex Cases",
|
| 1372 |
+
"text_level": 1,
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
507,
|
| 1375 |
+
714,
|
| 1376 |
+
752,
|
| 1377 |
+
730
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 6
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"text": "Despite the impressive performance of Triad in certain benchmarks, notable deficiencies remain in its ability to understand questions and generate queries for complex questions. A critical analysis of unsuccessful cases in QALD-9, which has the lowest F1 score, has revealed three primary reasons for this failure, as detailed below:",
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
507,
|
| 1386 |
+
734,
|
| 1387 |
+
880,
|
| 1388 |
+
847
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 6
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"text": "Complex Syntax signifies that advanced SPARQL queries incorporate keywords such as GROUP BY and HAVING. These terms augment the error propensity in the generation of SPARQL",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
507,
|
| 1397 |
+
857,
|
| 1398 |
+
882,
|
| 1399 |
+
921
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 6
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "page_number",
|
| 1405 |
+
"text": "1704",
|
| 1406 |
+
"bbox": [
|
| 1407 |
+
480,
|
| 1408 |
+
927,
|
| 1409 |
+
521,
|
| 1410 |
+
940
|
| 1411 |
+
],
|
| 1412 |
+
"page_idx": 6
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "table",
|
| 1416 |
+
"img_path": "images/074382887f1027b7651a3c35651684bf409c981a5e197bb4363268df4d63760d.jpg",
|
| 1417 |
+
"table_caption": [],
|
| 1418 |
+
"table_footnote": [],
|
| 1419 |
+
"table_body": "<table><tr><td>Fail Reason</td><td>Ratio</td><td>Example</td></tr><tr><td>Complex Syntax</td><td>20%</td><td>Q42: Which countries have places with more than two caves?</td></tr><tr><td>Unexploited Semantics</td><td>17%</td><td>Q199: Give me all Argentine films.</td></tr><tr><td>Implicit Reasoning</td><td>5%</td><td>Q133: What are the names of the Teenage Mutant Ninja Turtles?</td></tr></table>",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
132,
|
| 1422 |
+
83,
|
| 1423 |
+
472,
|
| 1424 |
+
269
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 7
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "Table 5: The major reasons of complexity that result in failures, with their corresponding ratios of occurrence in failed cases.",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
112,
|
| 1433 |
+
278,
|
| 1434 |
+
489,
|
| 1435 |
+
321
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 7
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "text",
|
| 1441 |
+
"text": "templates such as the example: Which frequent flyer program has the most airlines?",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
110,
|
| 1444 |
+
353,
|
| 1445 |
+
487,
|
| 1446 |
+
387
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 7
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "Unexploited Semantics indicates that semantics of an implicit entity should be comprehended in order to exclude irrelevant URIs. In the example Give me all Argentine films, the meaning of films should be used to narrow down the scope of potential entities in order to eliminate unrelated answers.",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
112,
|
| 1455 |
+
404,
|
| 1456 |
+
489,
|
| 1457 |
+
501
|
| 1458 |
+
],
|
| 1459 |
+
"page_idx": 7
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"type": "text",
|
| 1463 |
+
"text": "Implicit Reasoning presents a challenge that requires a deeper level of traversal by the framework to deduce accurate results from the posed question. For example, another failure question, How many grand-children did Jacques Cousteau have?, the term grand-children must be interpreted to son of son to ensure an accurate response.",
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
112,
|
| 1466 |
+
520,
|
| 1467 |
+
490,
|
| 1468 |
+
633
|
| 1469 |
+
],
|
| 1470 |
+
"page_idx": 7
|
| 1471 |
+
},
|
| 1472 |
+
{
|
| 1473 |
+
"type": "text",
|
| 1474 |
+
"text": "4.7 Cost Comparison and Analysis",
|
| 1475 |
+
"text_level": 1,
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
112,
|
| 1478 |
+
653,
|
| 1479 |
+
403,
|
| 1480 |
+
669
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 7
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "text",
|
| 1486 |
+
"text": "According to our evaluation on the three datasets, the average cost of running a single case is 0.007 USD on average using Triad-GPT3.5 and 0.05 USD on average using Triad-GPT4. Specifically, most API calls occur in the phases of URL linking and comprehensive answering. Meanwhile, traditional KBQA baselines require a lot of training data and local training resources to achieve the SOTA performance, whereas Triad follows a zero- or few-shot manner to save computational cost locally. Furthermore, as shown in Section 4.4, in practice, adjusting the hyperparameters can make the cost as low as possible while preserving overall performance. As the cost of LLM services decreases, the value of Triad will increase accordingly.",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
112,
|
| 1489 |
+
680,
|
| 1490 |
+
489,
|
| 1491 |
+
921
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 7
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "5 Related Work",
|
| 1498 |
+
"text_level": 1,
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
507,
|
| 1501 |
+
83,
|
| 1502 |
+
665,
|
| 1503 |
+
98
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 7
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "5.1 SPARQL-based and LLM-based KBQA",
|
| 1510 |
+
"text_level": 1,
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
507,
|
| 1513 |
+
109,
|
| 1514 |
+
870,
|
| 1515 |
+
124
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 7
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "text",
|
| 1521 |
+
"text": "Traditional KBQA methods transform natural language queries into SPARQL requests for data extraction. Specific models are employed either for question understanding or URI linking, utilizing domain-based training datasets. Hu et al. (2018) introduces a semantic query graph to structurally represent the natural language query, thereby simplifying the task into a subgraph matching problem. Hu et al. (2021) proposes an entity description graph to represent natural language queries for question parsing and element linking. Omar et al. (2023a) restructures the question parsing task as a text generation issue using a sequence-to-sequence model. With the advent of LLMs, certain phases of KBQA can be enhanced with LLM-integrated methods. Baek et al. (2023) aims to augment LLM-based QA tasks with pertinent facts extracted from knowledge bases, offering a fully zero-shot architecture. Tan et al. (2023a) leverages the general applicability of LLMs to filter linking candidates by making selections via few-shot in-context learning. Omar et al. (2023b) provides a thorough comparison between LLMs and QA systems, recommending further studies to improve KBQA with LLM capabilities. However, apart from the above studies, our study proposes a complete framework incorporating both an LLM and few-shot learning across all KBQA phases from a systematic perspective.",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
505,
|
| 1524 |
+
131,
|
| 1525 |
+
885,
|
| 1526 |
+
583
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 7
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "5.2 LLM-based Agents for Complex Tasks",
|
| 1533 |
+
"text_level": 1,
|
| 1534 |
+
"bbox": [
|
| 1535 |
+
507,
|
| 1536 |
+
594,
|
| 1537 |
+
858,
|
| 1538 |
+
609
|
| 1539 |
+
],
|
| 1540 |
+
"page_idx": 7
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"type": "text",
|
| 1544 |
+
"text": "LLMs have recently gained significant attention due to their ability to approximate human-level intelligence. This has led to numerous studies focusing on LLM-based agents. A recent survey (Wang et al., 2023) proposes a unified architecture for LLM-based agents, which consists of four modules that include profile, memory, plan, and action. CHATDB(Hu et al., 2023a) employs an LLM controller to generate SQL instructions, which allows for symbolic memory and complex multi-hop reasoning. ART(Paranjape et al., 2023) uses a frozen LLM to generate reasoning steps and further integrates tools for new tasks with minimal human intervention. Toolformer(Schick et al., 2024) takes a different approach by training an LLM to plan and execute tools for the next token prediction by learning API calls generation. ReAct(Yao et al., 2023) focuses on overcoming LLM hallucination by interacting with external knowledge bases,",
|
| 1545 |
+
"bbox": [
|
| 1546 |
+
505,
|
| 1547 |
+
615,
|
| 1548 |
+
885,
|
| 1549 |
+
921
|
| 1550 |
+
],
|
| 1551 |
+
"page_idx": 7
|
| 1552 |
+
},
|
| 1553 |
+
{
|
| 1554 |
+
"type": "page_number",
|
| 1555 |
+
"text": "1705",
|
| 1556 |
+
"bbox": [
|
| 1557 |
+
480,
|
| 1558 |
+
927,
|
| 1559 |
+
519,
|
| 1560 |
+
940
|
| 1561 |
+
],
|
| 1562 |
+
"page_idx": 7
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"type": "text",
|
| 1566 |
+
"text": "thus generating interpretable task-solving strategies. CodeAgent(Tang et al., 2024) designs a multiagent collaboration system across four phases in a code review process. Divergent from the aforementioned studies, our framework concentrates on the solving KBQA tasks by introducing a multirole LLM-based agent that specializes in various subtasks distributed across different phases.",
|
| 1567 |
+
"bbox": [
|
| 1568 |
+
112,
|
| 1569 |
+
84,
|
| 1570 |
+
492,
|
| 1571 |
+
212
|
| 1572 |
+
],
|
| 1573 |
+
"page_idx": 8
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"type": "text",
|
| 1577 |
+
"text": "6 Conclusion",
|
| 1578 |
+
"text_level": 1,
|
| 1579 |
+
"bbox": [
|
| 1580 |
+
112,
|
| 1581 |
+
224,
|
| 1582 |
+
247,
|
| 1583 |
+
239
|
| 1584 |
+
],
|
| 1585 |
+
"page_idx": 8
|
| 1586 |
+
},
|
| 1587 |
+
{
|
| 1588 |
+
"type": "text",
|
| 1589 |
+
"text": "In this study, we aim to bridge the gap between KBQA tasks and the investigation of LLM-based agents. We introduce Triad, a framework to address the KBQA task through an LLM-based agent acting as multiple roles, including a generalist capable of mastering diverse tasks given minimal examples, a decision-maker concentrating on option analysis and candidate selection, and an advisor skilled in answering questions with the aid of both external and internal knowledge. Triad achieves the best or competitive performance across three benchmark datasets compared to traditional KBQA systems and pure LLM models. In future research, we plan to broaden our framework to handle more intricate questions, such as multi-hop reasoning, and exploring the integration between our framework and retrieval-augmented generation.",
|
| 1590 |
+
"bbox": [
|
| 1591 |
+
112,
|
| 1592 |
+
249,
|
| 1593 |
+
490,
|
| 1594 |
+
523
|
| 1595 |
+
],
|
| 1596 |
+
"page_idx": 8
|
| 1597 |
+
},
|
| 1598 |
+
{
|
| 1599 |
+
"type": "text",
|
| 1600 |
+
"text": "Limitations",
|
| 1601 |
+
"text_level": 1,
|
| 1602 |
+
"bbox": [
|
| 1603 |
+
114,
|
| 1604 |
+
533,
|
| 1605 |
+
220,
|
| 1606 |
+
549
|
| 1607 |
+
],
|
| 1608 |
+
"page_idx": 8
|
| 1609 |
+
},
|
| 1610 |
+
{
|
| 1611 |
+
"type": "text",
|
| 1612 |
+
"text": "The limitation of our research lies in following aspects: (1) In terms of data, a broader range of QA datasets needs to be evaluated, encompassing datasets from different domains, languages, and difficulty levels. (2) In terms of model, more LLMs need to be evaluated, including open-source and commercial models from different organizations and on various scales. (3) In terms of framework, more types of agent collaboration methods can be explored to solve KBQA problems.",
|
| 1613 |
+
"bbox": [
|
| 1614 |
+
112,
|
| 1615 |
+
558,
|
| 1616 |
+
489,
|
| 1617 |
+
720
|
| 1618 |
+
],
|
| 1619 |
+
"page_idx": 8
|
| 1620 |
+
},
|
| 1621 |
+
{
|
| 1622 |
+
"type": "text",
|
| 1623 |
+
"text": "Ethics Considerations",
|
| 1624 |
+
"text_level": 1,
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
114,
|
| 1627 |
+
731,
|
| 1628 |
+
309,
|
| 1629 |
+
746
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 8
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "text",
|
| 1635 |
+
"text": "All datasets utilized in this study are publicly available and we have adhered to ethical considerations by not introducing additional information as input during LLM text generation.",
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
112,
|
| 1638 |
+
756,
|
| 1639 |
+
490,
|
| 1640 |
+
821
|
| 1641 |
+
],
|
| 1642 |
+
"page_idx": 8
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"type": "text",
|
| 1646 |
+
"text": "Acknowledgements",
|
| 1647 |
+
"text_level": 1,
|
| 1648 |
+
"bbox": [
|
| 1649 |
+
114,
|
| 1650 |
+
832,
|
| 1651 |
+
285,
|
| 1652 |
+
848
|
| 1653 |
+
],
|
| 1654 |
+
"page_idx": 8
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"type": "text",
|
| 1658 |
+
"text": "This work is supported by the \"Pioneer\" and \"Leading Goose\" R&D Program of Zhejiang (Grant No. 2023C01152 and No. 2024C01034).",
|
| 1659 |
+
"bbox": [
|
| 1660 |
+
112,
|
| 1661 |
+
857,
|
| 1662 |
+
489,
|
| 1663 |
+
904
|
| 1664 |
+
],
|
| 1665 |
+
"page_idx": 8
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"type": "text",
|
| 1669 |
+
"text": "References",
|
| 1670 |
+
"text_level": 1,
|
| 1671 |
+
"bbox": [
|
| 1672 |
+
510,
|
| 1673 |
+
84,
|
| 1674 |
+
608,
|
| 1675 |
+
98
|
| 1676 |
+
],
|
| 1677 |
+
"page_idx": 8
|
| 1678 |
+
},
|
| 1679 |
+
{
|
| 1680 |
+
"type": "list",
|
| 1681 |
+
"sub_type": "ref_text",
|
| 1682 |
+
"list_items": [
|
| 1683 |
+
"Sören Auer, Christian Bizer, Georgi Kobilarov, Jens Lehmann, Richard Cyganiak, and Zachary Ives. 2007. Dbpedia: A nucleus for a web of open data. In The Semantic Web, pages 722-735, Berlin, Heidelberg. Springer Berlin Heidelberg.",
|
| 1684 |
+
"Jinheon Baek, AlhamFikri Aji, and Amir Saffari. 2023. Knowledge-augmented language model prompting for zero-shot knowledge graph question answering. arXiv preprint arXiv:2306.04136.",
|
| 1685 |
+
"Qingxiu Dong, Li Dong, Ke Xu, Guangyan Zhou, Yaru Hao, Zhifang Sui, and Furu Wei. 2023. Large language model for science: A study on p vs. np. arXiv preprint arXiv:2309.05689.",
|
| 1686 |
+
"Qingxiu Dong, Lei Li, Damai Dai, Ce Zheng, Zhiyong Wu, Baobao Chang, Xu Sun, Jingjing Xu, and Zhifang Sui. 2022. A survey for in-context learning. arXiv preprint arXiv:2301.00234.",
|
| 1687 |
+
"Chenxu Hu, Jie Fu, Chenzhuang Du, Simian Luo, Junbo Zhao, and Hang Zhao. 2023a. Chatdb: Augmenting llms with databases as their symbolic memory. arXiv preprint arXiv:2306.03901.",
|
| 1688 |
+
"Nan Hu, Yike Wu, Guilin Qi, Dehai Min, Jiaoyan Chen, Jeff Z Pan, and Zafar Ali. 2023b. An empirical study of pre-trained language models in simple knowledge graph question answering. _World Wide Web_, pages 1-32.",
|
| 1689 |
+
"Sen Hu, Lei Zou, Jeffrey Xu Yu, Haixun Wang, and Dongyan Zhao. 2018. Answering natural language questions by subgraph matching over knowledge graphs. IEEE Transactions on Knowledge and Data Engineering, page 824-837.",
|
| 1690 |
+
"Xixin Hu, Yiheng Shu, Xiang Huang, and Yuzhong Qu. 2021. Edg-based question decomposition for complex question answering over knowledge bases. In The Semantic Web – ISWC 2021: 20th International Semantic Web Conference, ISWC 2021, Virtual Event, October 24–28, 2021, Proceedings, page 128–145, Berlin, Heidelberg. Springer-Verlag.",
|
| 1691 |
+
"Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213.",
|
| 1692 |
+
"Jinyang Li, Binyuan Hui, Reynold Cheng, Bowen Qin, Chenhao Ma, Nan Huo, Fei Huang, Wenyu Du, Luo Si, and Yongbin Li. 2023. Graphix-t5: Mixing pre-trained transformers with graph-aware layers for text-to-sql parsing. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 13076-13084.",
|
| 1693 |
+
"Jinyang Li, Binyuan Hui, Ge Qu, Jiaxi Yang, Binhua Li, Bowen Li, Bailin Wang, Bowen Qin, Ruiying Geng, Nan Huo, et al. 2024. Can llm already serve as a database interface? a big bench for large-scale"
|
| 1694 |
+
],
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
510,
|
| 1697 |
+
105,
|
| 1698 |
+
885,
|
| 1699 |
+
921
|
| 1700 |
+
],
|
| 1701 |
+
"page_idx": 8
|
| 1702 |
+
},
|
| 1703 |
+
{
|
| 1704 |
+
"type": "page_number",
|
| 1705 |
+
"text": "1706",
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
482,
|
| 1708 |
+
928,
|
| 1709 |
+
521,
|
| 1710 |
+
940
|
| 1711 |
+
],
|
| 1712 |
+
"page_idx": 8
|
| 1713 |
+
},
|
| 1714 |
+
{
|
| 1715 |
+
"type": "list",
|
| 1716 |
+
"sub_type": "ref_text",
|
| 1717 |
+
"list_items": [
|
| 1718 |
+
"database grounded text-to-sqls. Advances in Neural Information Processing Systems, 36.",
|
| 1719 |
+
"Zhiwei Liu, Weiran Yao, Jianguo Zhang, Le Xue, Shelby Heinecke, Rithesh Murthy, Yihao Feng, Zeyuan Chen, Juan Carlos Niebles, Devansh Arpit, et al. 2023. Bolaa: Benchmarking and orchestrating llm-augmented autonomous agents. arXiv preprint arXiv:2308.05960.",
|
| 1720 |
+
"Reham Omar, Ishika Dhall, Panos Kalnis, and Essam Mansour. 2023a. A universal question-answering platform for knowledge graphs. Proceedings of the ACM on Management of Data, 1(1):1-25.",
|
| 1721 |
+
"Reham Omar, Omij Mangukiya, Panos Kalnis, and Essam Mansour. 2023b. Chatgpt versus traditional question answering for knowledge graphs: Current status and future directions towards knowledge graph chatbots. arXiv preprint arXiv:2302.06466.",
|
| 1722 |
+
"Bhargavi Paranjape, Scott Lundberg, Sameer Singh, Hannaneh Hajishirzi, Luke Zettlemoyer, and MarcoTulio Ribeiro. 2023. Art: Automatic multi-step reasoning and tool-use for large language models. arXiv preprint arXiv:2303.09014.",
|
| 1723 |
+
"Thomas Pellissier Tanon, Gerhard Weikum, and Fabian Suchanek. 2020. Yago 4: A reason-able knowledge base. In The Semantic Web, pages 583–596, Cham. Springer International Publishing.",
|
| 1724 |
+
"Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettle-moyer, Nicola Cancedda, and Thomas Scialom. 2024. Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems, 36.",
|
| 1725 |
+
"Chuanyuan Tan, Yuehe Chen, Wenbiao Shao, Wenliang Chen, Zhefeng Wang, Baoxing Huai, and Min Zhang. 2023a. Make a choice! knowledge base question answering with in-context learning. arXiv preprint arXiv:2305.13972.",
|
| 1726 |
+
"Yiming Tan, Dehai Min, Yu Li, Wenbo Li, Nan Hu, Yongrui Chen, and Guilin Qi. 2023b. Can chatgpt replace traditional kbqa models? an in-depth analysis of the question answering performance of the gpt llm family. In International Semantic Web Conference, pages 348-367. Springer.",
|
| 1727 |
+
"Yiming Tan, Dehai Min, Yu Li, Wenbo Li, Nan Hu, Yongrui Chen, and Guilin Qi. 2023c. Evaluation of chatgpt as a question answering system for answering complex questions. arXiv preprint arXiv:2303.07992.",
|
| 1728 |
+
"Daniel Tang, Zhenghan Chen, Kisub Kim, Yewei Song, Haoye Tian, Saad Ezzini, Yongfeng Huang, and Jacques Klein Tegawende F Bissyande. 2024. Collaborative agents for software engineering. arXiv preprint arXiv:2402.02172."
|
| 1729 |
+
],
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
115,
|
| 1732 |
+
85,
|
| 1733 |
+
485,
|
| 1734 |
+
920
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 9
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "list",
|
| 1740 |
+
"sub_type": "ref_text",
|
| 1741 |
+
"list_items": [
|
| 1742 |
+
"Priyansh Trivedi, Gaurav Maheshwari, Mohnish Dubey, and Jens Lehmann. 2017. Lc-quad: A corpus for complex question answering over knowledge graphs. In The Semantic Web – ISWC 2017, pages 210–218, Cham. Springer International Publishing.",
|
| 1743 |
+
"Ricardo Usbeck, Ria Hari Gusmita, Axel-Cyrille Ngonga Ngomo, and Muhammad Saleem. 2018. 9th challenge on question answering over linked data (qald-9) (invited paper). In Semdeep/NLIWoD@ISWC.",
|
| 1744 |
+
"Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, et al. 2023. A survey on large language model based autonomous agents. arXiv preprint arXiv:2308.11432.",
|
| 1745 |
+
"Tonghan Wang, Tarun Gupta, Anuj Mahajan, Bei Peng, Shimon Whiteson, and Chongjie Zhang. 2020. Rode: Learning roles to decompose multi-agent tasks. arXiv preprint arXiv:2010.01523.",
|
| 1746 |
+
"Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. React: Synergizing reasoning and acting in language models."
|
| 1747 |
+
],
|
| 1748 |
+
"bbox": [
|
| 1749 |
+
510,
|
| 1750 |
+
85,
|
| 1751 |
+
880,
|
| 1752 |
+
426
|
| 1753 |
+
],
|
| 1754 |
+
"page_idx": 9
|
| 1755 |
+
},
|
| 1756 |
+
{
|
| 1757 |
+
"type": "page_number",
|
| 1758 |
+
"text": "1707",
|
| 1759 |
+
"bbox": [
|
| 1760 |
+
482,
|
| 1761 |
+
928,
|
| 1762 |
+
519,
|
| 1763 |
+
940
|
| 1764 |
+
],
|
| 1765 |
+
"page_idx": 9
|
| 1766 |
+
},
|
| 1767 |
+
{
|
| 1768 |
+
"type": "text",
|
| 1769 |
+
"text": "A Response Time Analysis",
|
| 1770 |
+
"text_level": 1,
|
| 1771 |
+
"bbox": [
|
| 1772 |
+
114,
|
| 1773 |
+
84,
|
| 1774 |
+
361,
|
| 1775 |
+
99
|
| 1776 |
+
],
|
| 1777 |
+
"page_idx": 10
|
| 1778 |
+
},
|
| 1779 |
+
{
|
| 1780 |
+
"type": "text",
|
| 1781 |
+
"text": "We analyze various QA frameworks in response time to a question. The average latency of each phase including question parsing (QP), URI linking (UL), and answer generation (AG) for each knowledge base is reported. We randomly select 10 samples from each dataset for evaluation to obtain the average response times for Triad-1 and Triad-3, which represent retrying three times and generating an answer in one go, respectively, during the answer generation phase. The comparison between traditional QA systems and Triad is shown in Figure 3. Triad generally shows a competitive time-consuming performance to latest traditional QA systems. Specifically, compared to other phases, URL linking consumes more time due to the need to invoke LLM multiple times. Moreover, according to Section 4.4, with smaller retry times of A-Agent, Triad can significantly reduce time cost while only causing slight performance degradation, revealing the advantages of our framework in balancing performance and efficiency.",
|
| 1782 |
+
"bbox": [
|
| 1783 |
+
112,
|
| 1784 |
+
108,
|
| 1785 |
+
490,
|
| 1786 |
+
447
|
| 1787 |
+
],
|
| 1788 |
+
"page_idx": 10
|
| 1789 |
+
},
|
| 1790 |
+
{
|
| 1791 |
+
"type": "image",
|
| 1792 |
+
"img_path": "images/f49b3177223a6632d6f88a99553a955e45e71fb82605a396c8fdba2b7fe01725.jpg",
|
| 1793 |
+
"image_caption": [
|
| 1794 |
+
"Figure 3: Response time of traditional KBQA systems and Triad on three datasets. Each bar shows average response time of a particular phase of KBQA."
|
| 1795 |
+
],
|
| 1796 |
+
"image_footnote": [],
|
| 1797 |
+
"bbox": [
|
| 1798 |
+
117,
|
| 1799 |
+
457,
|
| 1800 |
+
490,
|
| 1801 |
+
615
|
| 1802 |
+
],
|
| 1803 |
+
"page_idx": 10
|
| 1804 |
+
},
|
| 1805 |
+
{
|
| 1806 |
+
"type": "text",
|
| 1807 |
+
"text": "B Role Performance on YAGO-QA",
|
| 1808 |
+
"text_level": 1,
|
| 1809 |
+
"bbox": [
|
| 1810 |
+
114,
|
| 1811 |
+
700,
|
| 1812 |
+
431,
|
| 1813 |
+
717
|
| 1814 |
+
],
|
| 1815 |
+
"page_idx": 10
|
| 1816 |
+
},
|
| 1817 |
+
{
|
| 1818 |
+
"type": "text",
|
| 1819 |
+
"text": "We choose LC-QuAD 1.0 and QALD-9 as our two representative datasets in Section 4.3, as the questions among them vary in difficulty, and the tasks in these two datasets are relatively more challenging than YAGO-QA. We provide the performance of agent roles on YAGO-QA in Table 6, which shows a consistent result with other datasets in Table 3.",
|
| 1820 |
+
"bbox": [
|
| 1821 |
+
112,
|
| 1822 |
+
724,
|
| 1823 |
+
487,
|
| 1824 |
+
838
|
| 1825 |
+
],
|
| 1826 |
+
"page_idx": 10
|
| 1827 |
+
},
|
| 1828 |
+
{
|
| 1829 |
+
"type": "text",
|
| 1830 |
+
"text": "C Prompts Provided to LLMs of G-Agent for Solving Various Subtasks in KBQA",
|
| 1831 |
+
"text_level": 1,
|
| 1832 |
+
"bbox": [
|
| 1833 |
+
114,
|
| 1834 |
+
848,
|
| 1835 |
+
487,
|
| 1836 |
+
881
|
| 1837 |
+
],
|
| 1838 |
+
"page_idx": 10
|
| 1839 |
+
},
|
| 1840 |
+
{
|
| 1841 |
+
"type": "text",
|
| 1842 |
+
"text": "The prompt given to LLMs of $Agent_{g}$ to perform triplet extraction from the question $Q$ is as follows:",
|
| 1843 |
+
"bbox": [
|
| 1844 |
+
112,
|
| 1845 |
+
889,
|
| 1846 |
+
489,
|
| 1847 |
+
921
|
| 1848 |
+
],
|
| 1849 |
+
"page_idx": 10
|
| 1850 |
+
},
|
| 1851 |
+
{
|
| 1852 |
+
"type": "table",
|
| 1853 |
+
"img_path": "images/d5794f62b29a5ef9829e89ab726e9fe1b28602047520412768658df88e9e4ccd.jpg",
|
| 1854 |
+
"table_caption": [],
|
| 1855 |
+
"table_footnote": [],
|
| 1856 |
+
"table_body": "<table><tr><td>G-task</td><td>G-chat</td><td>YAGO-QA</td></tr><tr><td>×</td><td>×</td><td>0.427</td></tr><tr><td>✓</td><td>×</td><td>0.553</td></tr><tr><td>✓</td><td>✓</td><td>0.677</td></tr><tr><td>D-uri</td><td>D-query</td><td>YAGO-QA</td></tr><tr><td>×</td><td>✓</td><td>0.346</td></tr><tr><td>✓</td><td>×</td><td>0.534</td></tr><tr><td>✓</td><td>✓</td><td>0.677</td></tr><tr><td>A-llm</td><td>A-fact</td><td>YAGO-QA</td></tr><tr><td>×</td><td>×</td><td>0.626</td></tr><tr><td>✓</td><td>×</td><td>0.647</td></tr><tr><td>✓</td><td>✓</td><td>0.677</td></tr></table>",
|
| 1857 |
+
"bbox": [
|
| 1858 |
+
563,
|
| 1859 |
+
83,
|
| 1860 |
+
831,
|
| 1861 |
+
307
|
| 1862 |
+
],
|
| 1863 |
+
"page_idx": 10
|
| 1864 |
+
},
|
| 1865 |
+
{
|
| 1866 |
+
"type": "text",
|
| 1867 |
+
"text": "Table 6: Performance of roles of LLM-based agent by eliminating an element or downgrading the capability.",
|
| 1868 |
+
"bbox": [
|
| 1869 |
+
507,
|
| 1870 |
+
317,
|
| 1871 |
+
882,
|
| 1872 |
+
347
|
| 1873 |
+
],
|
| 1874 |
+
"page_idx": 10
|
| 1875 |
+
},
|
| 1876 |
+
{
|
| 1877 |
+
"type": "text",
|
| 1878 |
+
"text": "You are an assistant to identify triples within a provided sentence. Please adhere to the following guidelines:",
|
| 1879 |
+
"text_level": 1,
|
| 1880 |
+
"bbox": [
|
| 1881 |
+
514,
|
| 1882 |
+
393,
|
| 1883 |
+
889,
|
| 1884 |
+
441
|
| 1885 |
+
],
|
| 1886 |
+
"page_idx": 10
|
| 1887 |
+
},
|
| 1888 |
+
{
|
| 1889 |
+
"type": "list",
|
| 1890 |
+
"sub_type": "text",
|
| 1891 |
+
"list_items": [
|
| 1892 |
+
"1. Triples should be structured in the format <entity1, relation, entity2>.",
|
| 1893 |
+
"2. The sentence must contain at least one triple, so you should provide at least one.",
|
| 1894 |
+
"3. Entities should represent the smallest semantic units and should not contain descriptive details.",
|
| 1895 |
+
"4. Entities can take the form of explicit or implicit references. Explicit entities refer to specific named resources, whereas implicit entities are less certain.",
|
| 1896 |
+
"5. When an entity is implicit, utilize a variable format such as '?variable' to denote it, for example, '?location' or '?person'."
|
| 1897 |
+
],
|
| 1898 |
+
"bbox": [
|
| 1899 |
+
514,
|
| 1900 |
+
457,
|
| 1901 |
+
887,
|
| 1902 |
+
650
|
| 1903 |
+
],
|
| 1904 |
+
"page_idx": 10
|
| 1905 |
+
},
|
| 1906 |
+
{
|
| 1907 |
+
"type": "text",
|
| 1908 |
+
"text": "Here are some examples:",
|
| 1909 |
+
"text_level": 1,
|
| 1910 |
+
"bbox": [
|
| 1911 |
+
515,
|
| 1912 |
+
667,
|
| 1913 |
+
714,
|
| 1914 |
+
682
|
| 1915 |
+
],
|
| 1916 |
+
"page_idx": 10
|
| 1917 |
+
},
|
| 1918 |
+
{
|
| 1919 |
+
"type": "text",
|
| 1920 |
+
"text": "Which city's founder is John Forbes? : <?city, foundeer, John Forbes>",
|
| 1921 |
+
"bbox": [
|
| 1922 |
+
514,
|
| 1923 |
+
683,
|
| 1924 |
+
887,
|
| 1925 |
+
713
|
| 1926 |
+
],
|
| 1927 |
+
"page_idx": 10
|
| 1928 |
+
},
|
| 1929 |
+
{
|
| 1930 |
+
"type": "text",
|
| 1931 |
+
"text": "How many races have the horses bred by Jacques Van't Hart participated in? : <?horse, participated in, ?race> <?horse, breeder, Jacques Van't Hart>",
|
| 1932 |
+
"bbox": [
|
| 1933 |
+
514,
|
| 1934 |
+
715,
|
| 1935 |
+
887,
|
| 1936 |
+
762
|
| 1937 |
+
],
|
| 1938 |
+
"page_idx": 10
|
| 1939 |
+
},
|
| 1940 |
+
{
|
| 1941 |
+
"type": "text",
|
| 1942 |
+
"text": "Is camel of the chordate phylum? : <camel, phylum, chordate>",
|
| 1943 |
+
"bbox": [
|
| 1944 |
+
514,
|
| 1945 |
+
764,
|
| 1946 |
+
887,
|
| 1947 |
+
794
|
| 1948 |
+
],
|
| 1949 |
+
"page_idx": 10
|
| 1950 |
+
},
|
| 1951 |
+
{
|
| 1952 |
+
"type": "text",
|
| 1953 |
+
"text": "Sentence: <Question Sentence>",
|
| 1954 |
+
"bbox": [
|
| 1955 |
+
514,
|
| 1956 |
+
812,
|
| 1957 |
+
757,
|
| 1958 |
+
827
|
| 1959 |
+
],
|
| 1960 |
+
"page_idx": 10
|
| 1961 |
+
},
|
| 1962 |
+
{
|
| 1963 |
+
"type": "text",
|
| 1964 |
+
"text": "Output:",
|
| 1965 |
+
"text_level": 1,
|
| 1966 |
+
"bbox": [
|
| 1967 |
+
515,
|
| 1968 |
+
828,
|
| 1969 |
+
584,
|
| 1970 |
+
843
|
| 1971 |
+
],
|
| 1972 |
+
"page_idx": 10
|
| 1973 |
+
},
|
| 1974 |
+
{
|
| 1975 |
+
"type": "text",
|
| 1976 |
+
"text": "The prompt given to LLMs of $A g e n t_{g}$ for SPARQL template generation is as follows:",
|
| 1977 |
+
"bbox": [
|
| 1978 |
+
507,
|
| 1979 |
+
857,
|
| 1980 |
+
882,
|
| 1981 |
+
889
|
| 1982 |
+
],
|
| 1983 |
+
"page_idx": 10
|
| 1984 |
+
},
|
| 1985 |
+
{
|
| 1986 |
+
"type": "page_number",
|
| 1987 |
+
"text": "1708",
|
| 1988 |
+
"bbox": [
|
| 1989 |
+
480,
|
| 1990 |
+
927,
|
| 1991 |
+
519,
|
| 1992 |
+
940
|
| 1993 |
+
],
|
| 1994 |
+
"page_idx": 10
|
| 1995 |
+
},
|
| 1996 |
+
{
|
| 1997 |
+
"type": "text",
|
| 1998 |
+
"text": "You are an assistant to generate a SPARQL query to address a specific question. Here are the guidelines to follow:",
|
| 1999 |
+
"bbox": [
|
| 2000 |
+
119,
|
| 2001 |
+
84,
|
| 2002 |
+
494,
|
| 2003 |
+
131
|
| 2004 |
+
],
|
| 2005 |
+
"page_idx": 11
|
| 2006 |
+
},
|
| 2007 |
+
{
|
| 2008 |
+
"type": "list",
|
| 2009 |
+
"sub_type": "text",
|
| 2010 |
+
"list_items": [
|
| 2011 |
+
"1. Ensure that the resulting SPARQL query is designed to answer the provided question.",
|
| 2012 |
+
"2. Adhere to the commonly accepted SPARQL standards when generating the query.",
|
| 2013 |
+
"3. Make an effort to leverage the information provided to assist in the creation of the SPARQL query.",
|
| 2014 |
+
"4. Strive to keep the generated SPARQL query as straightforward as possible.",
|
| 2015 |
+
"5. Avoid including 'PREFIX' or ':' in the SPARQL query.",
|
| 2016 |
+
"6. Enclose condition entities and predicates within angle brackets, such as <entity> or <predicate>.",
|
| 2017 |
+
"7. Maintain the original order of the given triples without altering their sequence."
|
| 2018 |
+
],
|
| 2019 |
+
"bbox": [
|
| 2020 |
+
119,
|
| 2021 |
+
148,
|
| 2022 |
+
494,
|
| 2023 |
+
390
|
| 2024 |
+
],
|
| 2025 |
+
"page_idx": 11
|
| 2026 |
+
},
|
| 2027 |
+
{
|
| 2028 |
+
"type": "text",
|
| 2029 |
+
"text": "Question: <question sentence>",
|
| 2030 |
+
"bbox": [
|
| 2031 |
+
119,
|
| 2032 |
+
406,
|
| 2033 |
+
357,
|
| 2034 |
+
420
|
| 2035 |
+
],
|
| 2036 |
+
"page_idx": 11
|
| 2037 |
+
},
|
| 2038 |
+
{
|
| 2039 |
+
"type": "text",
|
| 2040 |
+
"text": "Triplets: <extracted triplets>",
|
| 2041 |
+
"bbox": [
|
| 2042 |
+
119,
|
| 2043 |
+
422,
|
| 2044 |
+
339,
|
| 2045 |
+
438
|
| 2046 |
+
],
|
| 2047 |
+
"page_idx": 11
|
| 2048 |
+
},
|
| 2049 |
+
{
|
| 2050 |
+
"type": "text",
|
| 2051 |
+
"text": "Output:",
|
| 2052 |
+
"bbox": [
|
| 2053 |
+
119,
|
| 2054 |
+
438,
|
| 2055 |
+
188,
|
| 2056 |
+
454
|
| 2057 |
+
],
|
| 2058 |
+
"page_idx": 11
|
| 2059 |
+
},
|
| 2060 |
+
{
|
| 2061 |
+
"type": "text",
|
| 2062 |
+
"text": "You are an assistant to select $\\langle K \\rangle$ URIs from a provided list of possible URIs for a specified entity, following these guidelines:",
|
| 2063 |
+
"bbox": [
|
| 2064 |
+
514,
|
| 2065 |
+
84,
|
| 2066 |
+
889,
|
| 2067 |
+
131
|
| 2068 |
+
],
|
| 2069 |
+
"page_idx": 11
|
| 2070 |
+
},
|
| 2071 |
+
{
|
| 2072 |
+
"type": "list",
|
| 2073 |
+
"sub_type": "text",
|
| 2074 |
+
"list_items": [
|
| 2075 |
+
"1. Identify the $\\langle \\mathrm{K} \\rangle$ most appropriate URIs from the given list that best represent the entity in question.",
|
| 2076 |
+
"2. Seek to understand the semantic information associated with the specified entity by examining the provided question.",
|
| 2077 |
+
"3. The output should consist of $\\langle \\mathrm{K} \\rangle$ URIs chosen from the provided list of possible URIs.",
|
| 2078 |
+
"4. Simply output these $\\langle \\mathrm{K} \\rangle$ target URIs, each on a separate line, without providing any additional explanations."
|
| 2079 |
+
],
|
| 2080 |
+
"bbox": [
|
| 2081 |
+
514,
|
| 2082 |
+
148,
|
| 2083 |
+
887,
|
| 2084 |
+
325
|
| 2085 |
+
],
|
| 2086 |
+
"page_idx": 11
|
| 2087 |
+
},
|
| 2088 |
+
{
|
| 2089 |
+
"type": "text",
|
| 2090 |
+
"text": "Sentence: <question sentence>",
|
| 2091 |
+
"bbox": [
|
| 2092 |
+
514,
|
| 2093 |
+
341,
|
| 2094 |
+
752,
|
| 2095 |
+
357
|
| 2096 |
+
],
|
| 2097 |
+
"page_idx": 11
|
| 2098 |
+
},
|
| 2099 |
+
{
|
| 2100 |
+
"type": "text",
|
| 2101 |
+
"text": "Entity: <entity mention>",
|
| 2102 |
+
"bbox": [
|
| 2103 |
+
514,
|
| 2104 |
+
357,
|
| 2105 |
+
707,
|
| 2106 |
+
373
|
| 2107 |
+
],
|
| 2108 |
+
"page_idx": 11
|
| 2109 |
+
},
|
| 2110 |
+
{
|
| 2111 |
+
"type": "text",
|
| 2112 |
+
"text": "Possible entity URIs: <Entity URI list>",
|
| 2113 |
+
"bbox": [
|
| 2114 |
+
514,
|
| 2115 |
+
374,
|
| 2116 |
+
818,
|
| 2117 |
+
388
|
| 2118 |
+
],
|
| 2119 |
+
"page_idx": 11
|
| 2120 |
+
},
|
| 2121 |
+
{
|
| 2122 |
+
"type": "text",
|
| 2123 |
+
"text": "Output:",
|
| 2124 |
+
"bbox": [
|
| 2125 |
+
514,
|
| 2126 |
+
390,
|
| 2127 |
+
584,
|
| 2128 |
+
406
|
| 2129 |
+
],
|
| 2130 |
+
"page_idx": 11
|
| 2131 |
+
},
|
| 2132 |
+
{
|
| 2133 |
+
"type": "text",
|
| 2134 |
+
"text": "The prompt given to LLMs of $Agent_d$ for candidate relation selection is as follows:",
|
| 2135 |
+
"bbox": [
|
| 2136 |
+
507,
|
| 2137 |
+
418,
|
| 2138 |
+
884,
|
| 2139 |
+
448
|
| 2140 |
+
],
|
| 2141 |
+
"page_idx": 11
|
| 2142 |
+
},
|
| 2143 |
+
{
|
| 2144 |
+
"type": "text",
|
| 2145 |
+
"text": "The prompt given to LLMs of $Agent_g$ for question type classification is as follows:",
|
| 2146 |
+
"bbox": [
|
| 2147 |
+
114,
|
| 2148 |
+
470,
|
| 2149 |
+
489,
|
| 2150 |
+
502
|
| 2151 |
+
],
|
| 2152 |
+
"page_idx": 11
|
| 2153 |
+
},
|
| 2154 |
+
{
|
| 2155 |
+
"type": "text",
|
| 2156 |
+
"text": "You are an assistant to determine the specific type of a given question according to the following guidelines:",
|
| 2157 |
+
"bbox": [
|
| 2158 |
+
119,
|
| 2159 |
+
538,
|
| 2160 |
+
492,
|
| 2161 |
+
586
|
| 2162 |
+
],
|
| 2163 |
+
"page_idx": 11
|
| 2164 |
+
},
|
| 2165 |
+
{
|
| 2166 |
+
"type": "list",
|
| 2167 |
+
"sub_type": "text",
|
| 2168 |
+
"list_items": [
|
| 2169 |
+
"1. You must determine the most probable question type for the input question.",
|
| 2170 |
+
"2. The type of question should be enclosed within angle brackets, denoted as $\\text{’} < \\text{’}$ and $\\text{’} > \\text{’}$ .",
|
| 2171 |
+
"3. Possible question types include: <count>, <select>, and <yes or no>."
|
| 2172 |
+
],
|
| 2173 |
+
"bbox": [
|
| 2174 |
+
119,
|
| 2175 |
+
602,
|
| 2176 |
+
494,
|
| 2177 |
+
699
|
| 2178 |
+
],
|
| 2179 |
+
"page_idx": 11
|
| 2180 |
+
},
|
| 2181 |
+
{
|
| 2182 |
+
"type": "text",
|
| 2183 |
+
"text": "Question: <question sentence>",
|
| 2184 |
+
"bbox": [
|
| 2185 |
+
119,
|
| 2186 |
+
715,
|
| 2187 |
+
357,
|
| 2188 |
+
730
|
| 2189 |
+
],
|
| 2190 |
+
"page_idx": 11
|
| 2191 |
+
},
|
| 2192 |
+
{
|
| 2193 |
+
"type": "text",
|
| 2194 |
+
"text": "Output:",
|
| 2195 |
+
"bbox": [
|
| 2196 |
+
119,
|
| 2197 |
+
732,
|
| 2198 |
+
188,
|
| 2199 |
+
747
|
| 2200 |
+
],
|
| 2201 |
+
"page_idx": 11
|
| 2202 |
+
},
|
| 2203 |
+
{
|
| 2204 |
+
"type": "text",
|
| 2205 |
+
"text": "You are an assistant tasked with selecting the $\\langle K\\rangle$ relation URIs between entities mentioned in a sentence. Here are the guidelines:",
|
| 2206 |
+
"bbox": [
|
| 2207 |
+
514,
|
| 2208 |
+
476,
|
| 2209 |
+
889,
|
| 2210 |
+
526
|
| 2211 |
+
],
|
| 2212 |
+
"page_idx": 11
|
| 2213 |
+
},
|
| 2214 |
+
{
|
| 2215 |
+
"type": "list",
|
| 2216 |
+
"sub_type": "text",
|
| 2217 |
+
"list_items": [
|
| 2218 |
+
"1. The two entities are listed one after the other, without a specific order.",
|
| 2219 |
+
"2. Use the provided sentence to discern the semantic meaning of these entities.",
|
| 2220 |
+
"3. The potential relation URIs are listed one by one.",
|
| 2221 |
+
"4. Your output should consist of a maximum of $\\langle \\mathrm{K} \\rangle$ possible relation URIs, although you may also output fewer if appropriate.",
|
| 2222 |
+
"5. Ensure that your output is organized, prioritizing the most likely relationship first.",
|
| 2223 |
+
"6. Provide a list of no more than $\\langle \\mathrm{K} \\rangle$ relation URIs (each on a separate line if there are multiple) without any additional descriptions."
|
| 2224 |
+
],
|
| 2225 |
+
"bbox": [
|
| 2226 |
+
514,
|
| 2227 |
+
542,
|
| 2228 |
+
887,
|
| 2229 |
+
766
|
| 2230 |
+
],
|
| 2231 |
+
"page_idx": 11
|
| 2232 |
+
},
|
| 2233 |
+
{
|
| 2234 |
+
"type": "text",
|
| 2235 |
+
"text": "Sentence: <question sentence>",
|
| 2236 |
+
"bbox": [
|
| 2237 |
+
514,
|
| 2238 |
+
783,
|
| 2239 |
+
752,
|
| 2240 |
+
797
|
| 2241 |
+
],
|
| 2242 |
+
"page_idx": 11
|
| 2243 |
+
},
|
| 2244 |
+
{
|
| 2245 |
+
"type": "text",
|
| 2246 |
+
"text": "Entities: <entity pair>",
|
| 2247 |
+
"bbox": [
|
| 2248 |
+
514,
|
| 2249 |
+
799,
|
| 2250 |
+
687,
|
| 2251 |
+
815
|
| 2252 |
+
],
|
| 2253 |
+
"page_idx": 11
|
| 2254 |
+
},
|
| 2255 |
+
{
|
| 2256 |
+
"type": "text",
|
| 2257 |
+
"text": "Possible relation URIs: <URI list>",
|
| 2258 |
+
"bbox": [
|
| 2259 |
+
514,
|
| 2260 |
+
816,
|
| 2261 |
+
784,
|
| 2262 |
+
829
|
| 2263 |
+
],
|
| 2264 |
+
"page_idx": 11
|
| 2265 |
+
},
|
| 2266 |
+
{
|
| 2267 |
+
"type": "text",
|
| 2268 |
+
"text": "Output:",
|
| 2269 |
+
"bbox": [
|
| 2270 |
+
514,
|
| 2271 |
+
831,
|
| 2272 |
+
584,
|
| 2273 |
+
847
|
| 2274 |
+
],
|
| 2275 |
+
"page_idx": 11
|
| 2276 |
+
},
|
| 2277 |
+
{
|
| 2278 |
+
"type": "text",
|
| 2279 |
+
"text": "D Prompts Provided to LLMs of D-Agent for Solving Selection Subtasks in KBQA",
|
| 2280 |
+
"bbox": [
|
| 2281 |
+
114,
|
| 2282 |
+
778,
|
| 2283 |
+
487,
|
| 2284 |
+
829
|
| 2285 |
+
],
|
| 2286 |
+
"page_idx": 11
|
| 2287 |
+
},
|
| 2288 |
+
{
|
| 2289 |
+
"type": "text",
|
| 2290 |
+
"text": "The prompt given to LLMs of $Agent_d$ for candidate entities selection is as follows:",
|
| 2291 |
+
"bbox": [
|
| 2292 |
+
112,
|
| 2293 |
+
851,
|
| 2294 |
+
489,
|
| 2295 |
+
883
|
| 2296 |
+
],
|
| 2297 |
+
"page_idx": 11
|
| 2298 |
+
},
|
| 2299 |
+
{
|
| 2300 |
+
"type": "text",
|
| 2301 |
+
"text": "The prompt given to LLMs of $Agent_d$ for the final SPARQL selection is as follows:",
|
| 2302 |
+
"bbox": [
|
| 2303 |
+
509,
|
| 2304 |
+
859,
|
| 2305 |
+
882,
|
| 2306 |
+
890
|
| 2307 |
+
],
|
| 2308 |
+
"page_idx": 11
|
| 2309 |
+
},
|
| 2310 |
+
{
|
| 2311 |
+
"type": "page_number",
|
| 2312 |
+
"text": "1709",
|
| 2313 |
+
"bbox": [
|
| 2314 |
+
482,
|
| 2315 |
+
927,
|
| 2316 |
+
521,
|
| 2317 |
+
940
|
| 2318 |
+
],
|
| 2319 |
+
"page_idx": 11
|
| 2320 |
+
},
|
| 2321 |
+
{
|
| 2322 |
+
"type": "text",
|
| 2323 |
+
"text": "You are an assistant to select an appropriate SPARQL query from the provided list in order to respond to a specific question. Please adhere to the following guidelines:",
|
| 2324 |
+
"bbox": [
|
| 2325 |
+
119,
|
| 2326 |
+
84,
|
| 2327 |
+
494,
|
| 2328 |
+
149
|
| 2329 |
+
],
|
| 2330 |
+
"page_idx": 12
|
| 2331 |
+
},
|
| 2332 |
+
{
|
| 2333 |
+
"type": "list",
|
| 2334 |
+
"sub_type": "text",
|
| 2335 |
+
"list_items": [
|
| 2336 |
+
"1. Select the most suitable SPARQL query from the given query list to address the question.",
|
| 2337 |
+
"2. Select a SPARQL query solely from the provided list; avoid crafting your own SPARQL query.",
|
| 2338 |
+
"3. The selected SPARQL query must be applicable to answer the given question."
|
| 2339 |
+
],
|
| 2340 |
+
"bbox": [
|
| 2341 |
+
119,
|
| 2342 |
+
164,
|
| 2343 |
+
490,
|
| 2344 |
+
275
|
| 2345 |
+
],
|
| 2346 |
+
"page_idx": 12
|
| 2347 |
+
},
|
| 2348 |
+
{
|
| 2349 |
+
"type": "text",
|
| 2350 |
+
"text": "Sentence: <question sentence>",
|
| 2351 |
+
"bbox": [
|
| 2352 |
+
119,
|
| 2353 |
+
294,
|
| 2354 |
+
356,
|
| 2355 |
+
307
|
| 2356 |
+
],
|
| 2357 |
+
"page_idx": 12
|
| 2358 |
+
},
|
| 2359 |
+
{
|
| 2360 |
+
"type": "text",
|
| 2361 |
+
"text": "SPARQL candidates: <SPARQLs to choose> Output:",
|
| 2362 |
+
"bbox": [
|
| 2363 |
+
119,
|
| 2364 |
+
309,
|
| 2365 |
+
468,
|
| 2366 |
+
341
|
| 2367 |
+
],
|
| 2368 |
+
"page_idx": 12
|
| 2369 |
+
},
|
| 2370 |
+
{
|
| 2371 |
+
"type": "text",
|
| 2372 |
+
"text": "E Prompts Provided to LLMs of A-Agent for Solving Answering Subtask in KBQA",
|
| 2373 |
+
"text_level": 1,
|
| 2374 |
+
"bbox": [
|
| 2375 |
+
114,
|
| 2376 |
+
353,
|
| 2377 |
+
487,
|
| 2378 |
+
404
|
| 2379 |
+
],
|
| 2380 |
+
"page_idx": 12
|
| 2381 |
+
},
|
| 2382 |
+
{
|
| 2383 |
+
"type": "text",
|
| 2384 |
+
"text": "The prompt given to LLMs of $Agent_{a}$ to generate a yes or no answer for the give question is as follows:",
|
| 2385 |
+
"bbox": [
|
| 2386 |
+
112,
|
| 2387 |
+
413,
|
| 2388 |
+
489,
|
| 2389 |
+
445
|
| 2390 |
+
],
|
| 2391 |
+
"page_idx": 12
|
| 2392 |
+
},
|
| 2393 |
+
{
|
| 2394 |
+
"type": "text",
|
| 2395 |
+
"text": "You are an assistant to answer a yes-or-no question. Please adhere to the following guidelines:",
|
| 2396 |
+
"bbox": [
|
| 2397 |
+
119,
|
| 2398 |
+
464,
|
| 2399 |
+
494,
|
| 2400 |
+
495
|
| 2401 |
+
],
|
| 2402 |
+
"page_idx": 12
|
| 2403 |
+
},
|
| 2404 |
+
{
|
| 2405 |
+
"type": "list",
|
| 2406 |
+
"sub_type": "text",
|
| 2407 |
+
"list_items": [
|
| 2408 |
+
"1. If you believe that the answer is yes, provide an output of 'True'. If not, provide an output of 'False'.",
|
| 2409 |
+
"2. Please do not include additional information or explanations in your response."
|
| 2410 |
+
],
|
| 2411 |
+
"bbox": [
|
| 2412 |
+
119,
|
| 2413 |
+
512,
|
| 2414 |
+
492,
|
| 2415 |
+
592
|
| 2416 |
+
],
|
| 2417 |
+
"page_idx": 12
|
| 2418 |
+
},
|
| 2419 |
+
{
|
| 2420 |
+
"type": "text",
|
| 2421 |
+
"text": "Sentence: <question sentence>",
|
| 2422 |
+
"bbox": [
|
| 2423 |
+
119,
|
| 2424 |
+
609,
|
| 2425 |
+
356,
|
| 2426 |
+
623
|
| 2427 |
+
],
|
| 2428 |
+
"page_idx": 12
|
| 2429 |
+
},
|
| 2430 |
+
{
|
| 2431 |
+
"type": "text",
|
| 2432 |
+
"text": "Output:",
|
| 2433 |
+
"text_level": 1,
|
| 2434 |
+
"bbox": [
|
| 2435 |
+
121,
|
| 2436 |
+
625,
|
| 2437 |
+
186,
|
| 2438 |
+
640
|
| 2439 |
+
],
|
| 2440 |
+
"page_idx": 12
|
| 2441 |
+
},
|
| 2442 |
+
{
|
| 2443 |
+
"type": "text",
|
| 2444 |
+
"text": "The prompt given to LLMs of $Agent_{a}$ to generate a single-fact answer for the give question is as follows:",
|
| 2445 |
+
"bbox": [
|
| 2446 |
+
114,
|
| 2447 |
+
646,
|
| 2448 |
+
489,
|
| 2449 |
+
693
|
| 2450 |
+
],
|
| 2451 |
+
"page_idx": 12
|
| 2452 |
+
},
|
| 2453 |
+
{
|
| 2454 |
+
"type": "text",
|
| 2455 |
+
"text": "You are an assistant to answer a question. Please adhere to the following guidelines:",
|
| 2456 |
+
"bbox": [
|
| 2457 |
+
119,
|
| 2458 |
+
713,
|
| 2459 |
+
492,
|
| 2460 |
+
745
|
| 2461 |
+
],
|
| 2462 |
+
"page_idx": 12
|
| 2463 |
+
},
|
| 2464 |
+
{
|
| 2465 |
+
"type": "list",
|
| 2466 |
+
"sub_type": "text",
|
| 2467 |
+
"list_items": [
|
| 2468 |
+
"1. The answer to the question is a single entity.",
|
| 2469 |
+
"2. You should just output the full expression of the answer without any punctuation.",
|
| 2470 |
+
"3. Do not output any other description."
|
| 2471 |
+
],
|
| 2472 |
+
"bbox": [
|
| 2473 |
+
119,
|
| 2474 |
+
760,
|
| 2475 |
+
489,
|
| 2476 |
+
826
|
| 2477 |
+
],
|
| 2478 |
+
"page_idx": 12
|
| 2479 |
+
},
|
| 2480 |
+
{
|
| 2481 |
+
"type": "text",
|
| 2482 |
+
"text": "Sentence: <question sentence>",
|
| 2483 |
+
"bbox": [
|
| 2484 |
+
119,
|
| 2485 |
+
841,
|
| 2486 |
+
356,
|
| 2487 |
+
857
|
| 2488 |
+
],
|
| 2489 |
+
"page_idx": 12
|
| 2490 |
+
},
|
| 2491 |
+
{
|
| 2492 |
+
"type": "text",
|
| 2493 |
+
"text": "Output:",
|
| 2494 |
+
"text_level": 1,
|
| 2495 |
+
"bbox": [
|
| 2496 |
+
121,
|
| 2497 |
+
859,
|
| 2498 |
+
186,
|
| 2499 |
+
873
|
| 2500 |
+
],
|
| 2501 |
+
"page_idx": 12
|
| 2502 |
+
},
|
| 2503 |
+
{
|
| 2504 |
+
"type": "page_number",
|
| 2505 |
+
"text": "1710",
|
| 2506 |
+
"bbox": [
|
| 2507 |
+
482,
|
| 2508 |
+
927,
|
| 2509 |
+
521,
|
| 2510 |
+
940
|
| 2511 |
+
],
|
| 2512 |
+
"page_idx": 12
|
| 2513 |
+
}
|
| 2514 |
+
]
|
2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/2bfc46f7-f4ed-4d88-9bf5-1ead6a8c1d52_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/2bfc46f7-f4ed-4d88-9bf5-1ead6a8c1d52_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:772344d74851f1c20a1fa34994b7a8732ea429515b4528dfa408ba9a8e1660a9
|
| 3 |
+
size 445917
|
2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/full.md
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Triad: A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering
|
| 2 |
+
|
| 3 |
+
Chang Zong $^{1}$ , Yuchen Yan $^{1}$ , Weiming Lu $^{1\dagger}$ , Jian Shao $^{1}$
|
| 4 |
+
Yongfeng Huang $^{2}$ , Heng Chang $^{3}$ , Yueting Zhuang $^{1\dagger}$
|
| 5 |
+
|
| 6 |
+
<sup>1</sup>College of Computer Science and Technology, Zhejiang University
|
| 7 |
+
<sup>2</sup>The Chinese University of Hong Kong
|
| 8 |
+
<sup>3</sup>Tsinghua University
|
| 9 |
+
{zongchang, luwm, yzhuang}@zju.edu.cn
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Recent progress with LLM-based agents has shown promising results across various tasks. However, their use in answering questions from knowledge bases remains largely unexplored. Implementing a KBQA system using traditional methods is challenging due to the shortage of task-specific training data and the complexity of creating task-focused model structures. In this paper, we present Triad, a unified framework that utilizes an LLM-based agent with multiple roles for KBQA tasks. The agent is assigned three roles to tackle different KBQA subtasks: agent as a generalist for mastering various subtasks, as a decision maker for the selection of candidates, and as an advisor for answering questions with knowledge. Our KBQA framework is executed in four phases, involving the collaboration of the agent's multiple roles. We evaluated the performance of our framework using three benchmark datasets, and the results show that our framework outperforms state-of-the-art systems on the LC-QuAD and YAGO-QA benchmarks, yielding F1 scores of $11.8\%$ and $20.7\%$ , respectively.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
A question-answering system is designed to extract information by converting a natural language question into a structured query that can retrieve precise information from an existing knowledge base (Omar et al., 2023a). The resolution of Knowledge Base Question Answering (KBQA) typically involves phases including question understanding, URI linking, and query execution. Traditional KBQA systems require the use of specialized models trained with domain datasets for question parsing and entity linking (Hu et al., 2018; Omar et al., 2023a; Hu et al., 2021). Large language models (LLMs), however, have shown promising competencies in in-context learning using task-specific
|
| 18 |
+
|
| 19 |
+
demonstrations (Dong et al., 2022). LLMs have recently been employed as agents in the execution of complex problems. A framework that employs LLM-augmented agents can generate actions or coordinate multiple agents, thus improving the capacity to handle complex situations (Liu et al., 2023). Despite the remarkable performance of LLMs in various tasks as evidenced in previous studies, a comprehensive qualitative and quantitative evaluation of KBQA frameworks empowered with an LLM-based agent remains insufficiently explored.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: A system with multiple roles who focus on sub-problems of each phase to solve a complex task.
|
| 23 |
+
|
| 24 |
+
Studies on KBQA with LLMs has attracted considerable attention. Some works focus primarily on highlighting the inability of LLMs to generate complete factoid results (Hu et al., 2023b; Tan et al., 2023c) or demonstrating their potential efficacy in future research (Omar et al., 2023b; Tan et al., 2023b). Other works concentrates on generating answers by prompt learning and incorporating external knowledge bases (Baek et al., 2023; Tan et al., 2023a). Concurrently, LLMs can be deployed to address each phase within Text2SQL challenges(Li et al., 2023, 2024) or theorem proof tasks(Dong et al., 2023). However, each phase of
|
| 25 |
+
|
| 26 |
+
KBQA can be further decomposed into subtasks and completed through an agentic approach that provides feedback and cooperation. Additionally, decomposing the task reduces the complexity of cooperative working by allowing each role to concentrate on smaller sub-problems (Wang et al., 2020). As illustrated in Figure 1, three roles in an organization work together to provide the final answer for the overall task. The above observations spur our exploration into the following question: How does an LLM-based agent solve KBQA tasks by serving as multiple roles, and its performance is comparable to systems trained specifically?
|
| 27 |
+
|
| 28 |
+
In this study, we introduce Triad, a unified framework that leverages an LLM-based agent with three roles to address KBQA tasks. Specifically, we implement the agent consisting of an LLM as the core, supplemented by various task-specific modules such as memory and executing functions. The agent is assigned three distinct roles: a generalist (G-Agent) adept at mastering numerous small tasks by the given examples, a decision maker (D-Agent) proficient at identifying options and selecting candidates, and an advisor (A-Agent) skilled at providing answers using internal and external knowledge. The cooperation of these agent roles composes a KBQA process containing four phases: question parsing, URI linking, query construction, and answer generation. We evaluate our framework on three benchmark datasets in various difficulties. The results show that our framework outperforms state-of-the-art systems, demonstrated by $11.8\%$ and $20.7\%$ F1 scores on the LC-QuAD and YAGO-QA benchmarks, respectively<sup>1</sup>.
|
| 29 |
+
|
| 30 |
+
The contributions of this study can be summarized as follows:
|
| 31 |
+
|
| 32 |
+
- We propose Triad, the first framework that leverages an LLM-based agent to solve KBQA tasks in all its four phases, without specialized training models.
|
| 33 |
+
- We implement an LLM-based agent with various task-specific modules that can act as three roles, including a generalist, a decision maker, and an advisor, to collaboratively solve KBQA via focusing on subtasks.
|
| 34 |
+
- We evaluate the performance of Triad. The results show a competitive ability compared
|
| 35 |
+
|
| 36 |
+
to both state-of-the-art KBQA systems and pure LLM methods.
|
| 37 |
+
|
| 38 |
+
# 2 Preliminaries
|
| 39 |
+
|
| 40 |
+
# 2.1 Phases of KBQA
|
| 41 |
+
|
| 42 |
+
A typical KBQA system has a process that encompasses four phases:
|
| 43 |
+
|
| 44 |
+
Question parsing involves converting natural language questions into a structured format that incorporates references to entities and relations.
|
| 45 |
+
|
| 46 |
+
URI linking entails associating and replacing these entity and relation mentions with their corresponding URIs within a knowledge base.
|
| 47 |
+
|
| 48 |
+
Query construction involves creating executable queries in a standard format to extract answers from knowledge bases.
|
| 49 |
+
|
| 50 |
+
Answer generation seeks to obtain the ultimate answers either by performing queries within knowledge bases or by directly querying an agent.
|
| 51 |
+
|
| 52 |
+
# 2.2 Roles of LLM-based Agent
|
| 53 |
+
|
| 54 |
+
Drawing an analogy to a software development scenario, where coders complete small development tasks, with the process and plan being decided by the manager, and ultimately the outcome inspected by the leader, we assign the following three roles to an LLM-based agent to solve the KBQA task:
|
| 55 |
+
|
| 56 |
+
Agent as a generalist (G-Agent) is capable of mastering various small tasks by providing a few examples.
|
| 57 |
+
|
| 58 |
+
Agent as a decision-maker (D-Agent) adepts at analyzing options and providing candidate results as procedural feedback.
|
| 59 |
+
|
| 60 |
+
Agent as an advisor (A-Agent) is skilled in providing final answers with the aid of both external and its own knowledge.
|
| 61 |
+
|
| 62 |
+
# 2.3 Task Formulation
|
| 63 |
+
|
| 64 |
+
A KBQA task refers to the process of solving a set of subtasks $S$ . Each subtask $S_{t} \in S$ contributes to one phase of the whole process. An LLM-based agent $Agent_{r}$ with a role $r$ can be used to resolve a type of subtasks by its task-specific components, including a language model $LLM$ , a memory $Mem_{t}$ , a function $F_{t}$ , a prompt $Pmt_{t}$ and a set of parameters $\theta_{t}$ , using the set of role-related hyperparameters $\sigma_{r}$ . The task can be formulated as follows:
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
f (K B Q A) = \bigoplus_ {t = 1} ^ {T} f (S _ {t})
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
f \left(S _ {t}\right) = A g e n t _ {r} \left(L L M, M e m _ {t}, F _ {t}, P m t _ {t}, \theta_ {t}, \sigma_ {r}\right) \tag {1}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
, where $T$ is the total number of subtasks, $\bigoplus$ is the way to coordinate subtasks to solve the whole.
|
| 75 |
+
|
| 76 |
+
# 3 Triad Framework
|
| 77 |
+
|
| 78 |
+
The overall architecture of Triad is shown in Figure 2. Each role of the LLM-based agent, along with its associated subtasks, is illustrated as follows.
|
| 79 |
+
|
| 80 |
+
# 3.1 G-Agent as a Generalized Solver
|
| 81 |
+
|
| 82 |
+
A generalized agent (G-Agent) proficiently manages numerous tasks by leveraging learning from limited examples through an LLM. In our framework, a G-Agent can perform question parsing, query template generation, or answer type classification as actions solely utilizing an LLM. These three subtasks are illustrated as follows:
|
| 83 |
+
|
| 84 |
+
Triplet mention extraction: The process of extracting triplet mentions in question parsing involves the conversion of a naturally phrased question, denoted as $Q$ , into formatted triplets of entities and relations. This subtask is executed employing an LLM, which is guided by a prompt with a set of prerequisites and a selection of examples. This subtask can be represented as follows:
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
f \left(S _ {t r i}\right) = A g e n t _ {g} \left(L L M, P m t _ {t r i}, Q, \mathcal {N}\right) \tag {2}
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
P m t _ {t r i} = \left[ I n s _ {t r i}, S h o t _ {t r i}, C o T _ {t r i} \right]
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
, where $A g e n t_{g}$ is the agent as a generalist to perform the triplet extraction subtask with $\mathcal{N}$ examples. $P m t_{tri}$ is the prompt to guide LLM to generate triplets from the question $Q$ , which consists of instruction $I n s_{tri}$ , examples $S h o t_{tri}$ , and chain-of-thought prompt $C o T_{tri}$ (Kojima et al., 2022).
|
| 95 |
+
|
| 96 |
+
SPARQL template generation: The generation of SPARQL templates in query construction involves the use of an LLM to create a SPARQL template that articulates the question using standard SPARQL syntax, replacing URI identifiers with entity and relation variables. To derive precise and comprehensive answers from the knowledge base using SPARQL queries, there are two potential strategies. One approach involves the direct generation of an executable SPARQL using
|
| 97 |
+
|
| 98 |
+
an LLM, though this method may significantly increase LLM call times and error rates when numerous candidate queries are in play. Alternatively, a SPARQL template can initially be generated with entity and relation variables, which are subsequently replaced with linked URIs. For the sake of stability and efficiency, we opt for the second strategy. This subtask can be denoted as:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
f (S _ {q t}) = A g e n t _ {g} (L L M, P m t _ {q t}, \theta_ {q t}, \mathcal {N}),
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
P m t _ {q t} = \left[ I n s _ {q t}, S h o t _ {q t}, C o T _ {q t} \right], \tag {3}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\theta_ {q t} = [ Q, f (S _ {t r i}) ]
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
, where $A g e n t_{g}$ is the agent as a generalist to perform SPARQL template generation with $\mathcal{N}$ examples, $f(S_{tri})$ is the triplets derived from the previous subtask, $P m t_{q t}$ is the prompt for LLM to generate SPARQL template.
|
| 113 |
+
|
| 114 |
+
Answer type classification: In the phase of answer generation, the answer type classification subtask refers to the process of assigning a specific category to a response according to the question. This process serves as a guiding mechanism for the framework to generate comprehensive and accurate answers. This classification subtask is denoted as:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
f \left(S _ {c l s}\right) = A g e n t _ {g} \left(L L M, P m t _ {c l s}, Q, \mathcal {N}\right), \tag {4}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
P m t _ {c l s} = \left[ I n s _ {c l s}, S h o t _ {c l s}, C o T _ {c l s} \right]
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
, where $A g e n t_{g}$ is the agent as a generalist to perform type classification subtask with $\mathcal{N}$ examples, $P m t_{c l s}$ is the prompt for LLM.
|
| 125 |
+
|
| 126 |
+
# 3.2 D-Agent as a Decision-Maker
|
| 127 |
+
|
| 128 |
+
An agent as a decision maker (D-Agent) is capable of making candidate selections step by step through filtering and choosing from given options, harnessing the capabilities of an LLM and KB as memory. The D-Agent can effectively handle three subtasks, which are delineated as follows:
|
| 129 |
+
|
| 130 |
+
Candidate entity selection: The selection of candidate entities in URI linking is pivotal to the ultimate efficacy of KBQA. Prior research has focused primarily on developing a semantic similarity model to address this linking challenge. However, the linking task requires numerous iterations of searching within the knowledge base, which poses a compatibility issue for LLM-oriented methods. In our framework, an agent as a decision maker is utilized initially to filter all potential entity URIs from the knowledge base, subsequently deploying an LLM to select candidate URIs from a pool of
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
Figure 2: Our Triad framework leverages an LLM-based agent with three different roles including a generalist, a decision-maker, and an advisor to cooperatively handle a series of subtasks in the four phases of a KBQA process.
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
|
| 137 |
+
potential identifiers. For each entity, our aim is to find the $\kappa$ most possible entity URIs which can be used to traverse over the KB to get the final answer. The entity selection subtask can be denoted as:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
f (S _ {e s}) = A g e n t _ {d} (L L M, M e m _ {e s}, F _ {e s},
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
\left. P m t _ {e s}, \theta_ {e s}, \mathcal {K}\right), \tag {5}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
M e m _ {e s} = [ K B, L i s t _ {e s} ], \theta_ {e s} = [ Q, f (S _ {t r i}) ]
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
, where $Agent_d$ is the agent as a decision maker to perform the entity selection subtask with question $Q$ , extracted triplets $f(S_{tri})$ and memory $Mem_{es}$ , $Mem_{es}$ is composed of a knowledge base $KB$ and a list of entity URIs $List_{es}$ filtered from $KB$ using a text similarity matching function $F_{es}$ , $Pmt_{es}$ is the prompt for LLM to perform the subtask, $\mathcal{K}$ is the hyperparameter of $Agent_d$ , indicating the number of candidates selected by LLM.
|
| 152 |
+
|
| 153 |
+
Candidate relation selection: The task of candidate relation selection in URI linking presents considerable challenges due to the discrepancies between word forms and meanings. Nevertheless, the existence of reasoning paths in the knowledge base can be utilized to allow for a significant reduction of the search space in relation linking. In our framework, an agent as a decision maker endeavors to sieve through all potential relation URIs by navigating the knowledge base with candidate entity URIs generated from the previous subtask. Subsequently, an LLM is used to select the top $\kappa$ most probable relation URIs for output. The relation
|
| 154 |
+
|
| 155 |
+
selection subtask can be denoted as:
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
f \left(S _ {r s}\right) = A g e n t _ {d} (L L M, M e m _ {r s}, F _ {r s},
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\left. P m t _ {r s}, \theta_ {r s}, \mathcal {K}\right), \tag {6}
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
M e m _ {r s} = \left[ K B, L i s t _ {r s} \right], \theta_ {r s} = \left[ Q, f \left(S _ {e s}\right) \right]
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
, where memory $Mem_{rs}$ is composed of the knowledge base $KB$ and a list of possible relation URIs $List_{rs}$ filtered from $KB$ using a one-order traversing function $F_{rs}$ . $Pmt_{rs}$ is the prompt for LLM to perform relation selection. $\kappa$ is the number of relation URIs selected by LLM.
|
| 170 |
+
|
| 171 |
+
Candidate SPARQL selection: The subtask of candidate SPARQL selection in query construction involves determining the appropriate SPARQL queries to obtain the final answers. Given a SPARQL template generated by the G-Agent, along with multiple candidate URIs selected from the D-Agent in previous subtasks, our D-Agent is targeted to identify the most plausible query. To further reduce the difficulty of selection, an executor function is applied to eliminate queries that cannot retrieve any results from the knowledge base. In conclusion, our aim in this subtask is to use D-Agent to construct executable SPARQLs and find the most possible one given a query candidate list with supported information. The SPARQL selection subtask can be denoted as:
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
\begin{array}{l} f (S _ {q s}) = A g e n t _ {d} (L L M, M e m _ {q s}, F _ {q s}, \\ \left. \begin{array}{l} P m t _ {q s}, \theta_ {q s}, \mathcal {K}), \\ [ ] \end{array} \right. \tag {7} \\ \end{array}
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
M e m _ {q s} = \left[ K B, L i s t _ {q s} \right],
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
\theta_ {q s} = [ Q, f (S _ {e s}), f (S _ {r s}), f (S _ {q t}) ]
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
, where memory $Mem_{qs}$ is composed of a knowledge base $KB$ and a list of possible SPARQLs $List_{qs}$ constructed with SPARQL template $f(S_{qt})$ , entity URIs $f(S_{es})$ , and relation URIs $f(S_{rs})$ by the function $F_{qs}$ , $Pmt_{qs}$ is the prompt for LLM to perform query selection, $\mathcal{K} = 1$ is the number of queries selected by LLM.
|
| 186 |
+
|
| 187 |
+
# 3.3 A-Agent as a Comprehensive Advisor
|
| 188 |
+
|
| 189 |
+
An advisory agent (A-Agent) is capable of processing a question and a corresponding type of answer as input. Its response is generated by either extracting information from an external knowledge base or by utilizing its internal knowledge to provide a direct answer. This comprehensive answering subtask can be described as follows:
|
| 190 |
+
|
| 191 |
+
Comprehensive answering: The objective of comprehensive answering in the answer generation phase is to derive a definitive response based on an incoming question. Previous work (Omar et al., 2023b) has demonstrated that LLMs are more proficient in delivering single-fact responses and making Boolean judgments. Given this understanding, we implement an advisory agent that incorporates a simple policy to facilitate a comprehensive answering approach. Specifically, if a question yields a final SPARQL generated from the preceding steps, A-Agent extracts elements from the knowledge base to give the answer. Conversely, if the agent does not receive a feasible SPARQL, A-Agent provides a direct response with LLM's internal knowledge, following the prompt based on the type of the answer. Additionally, A-Agent will send a retry signal to previous phases if no result is generated. The subtask can be formulated as below:
|
| 192 |
+
|
| 193 |
+
$$
|
| 194 |
+
f (S _ {c a}) = A g e n t _ {a} (L L M, M e m _ {c a}, F _ {c a},
|
| 195 |
+
$$
|
| 196 |
+
|
| 197 |
+
$$
|
| 198 |
+
\left. P m t _ {c a}, \theta_ {c a}, \mathcal {T}\right), \tag {8}
|
| 199 |
+
$$
|
| 200 |
+
|
| 201 |
+
$$
|
| 202 |
+
M e m _ {c a} = [ K B ], \theta_ {c a} = [ Q, f (S _ {q s}), f (S _ {c l s}) ]
|
| 203 |
+
$$
|
| 204 |
+
|
| 205 |
+
, where $A g e n t_{a}$ is the agent as an advisor to perform a comprehensive answering for the question $Q$ with a memory $M e m_{c a}$ of knowledge base, $P m t_{c a}$ is the prompt for LLM to perform a direct response according to the type of the answer, $f(S_{q s})$ is the final query and $f(S_{c l s})$ is the answer type, $\mathcal{T}$ is the maximum times to retry for previous phases if no result is returned from $K B$ .
|
| 206 |
+
|
| 207 |
+
# 4 Performance Evaluation
|
| 208 |
+
|
| 209 |
+
# 4.1 Experimental Settings
|
| 210 |
+
|
| 211 |
+
Indexed Knowledge Bases: The efficacy of our framework is assessed through the collection of two real knowledge bases, specifically DBpedia and YAGO. DBpedia (Auer et al., 2007) serves as an accessible knowledge base extracted from Wikipedia, while YAGO (Pellissier Tanon et al., 2020) is a large knowledge base that includes individuals, cities, nations, and organizations. We index the triples and the mentions of entities and relations in a Virtuoso endpoint and an Elasticsearch server, respectively.
|
| 212 |
+
|
| 213 |
+
KBQA Benchmark Datasets: We evaluate our framework on datasets including YAGO-QA, LCQuAD 1.0, and QALD-9, which have various difficulties in interpreting the questions. These datasets contain questions in English, paired with their respective SPARQL queries, and accurate responses derived from a specific knowledge base. QALD-9 (Usbeck et al., 2018) and LC-QuAD 1.0 (Trivedi et al., 2017) are frequently used to evaluate QA systems with DBpedia. The recently published YAGO-QA in (Omar et al., 2023a), features questions accompanied by annotated SPARQL queries sourced from YAGO. The statistics for three benchmarks, along with their associated knowledge bases, are depicted in Table 1.
|
| 214 |
+
|
| 215 |
+
Baseline Methods: We evaluate Triad against traditional KBQA systems such as KGQAN (Omar et al., 2023a), EDGQA (Hu et al., 2021) and gAnswer (Hu et al., 2018). This comparison shows how our LLM-based agent framework can rival full-shot systems with just a few examples. Additionally, we contrast our framework with pure GPT models like GPT-3.5 Turbo and GPT-4 to exhibit Triad's architectural performance. We treat these foundation models as few-shot methods to answer the questions referring to some examples.
|
| 216 |
+
|
| 217 |
+
Implementation Details: Triad is implemented with Python 3.9. We incorporate LLM capabilities to our multi-role agent via OpenAI's API services. The names of entities and relations from knowledge bases are indexed in an ElasticSearch 7.5.2 server for text matching. All triples are imported into an SPARQL endpoint of Virtuoso 07.20.3237 for retrieval. Triad requires four hyperparameters: the number of examples G-Agent uses for subtask
|
| 218 |
+
|
| 219 |
+
<table><tr><td rowspan="2">Benchmarks</td><td colspan="5">Benchmark Statistics</td></tr><tr><td>#Questions</td><td>KB</td><td>#Triples</td><td>Virtuoso Size</td><td>ES size</td></tr><tr><td>LC-QuAD 1.0</td><td>1000</td><td>DBpedia-04</td><td>397M</td><td>35.40G</td><td>1.56G</td></tr><tr><td>QALD-9</td><td>150</td><td>DBpedia-10</td><td>374M</td><td>36.89G</td><td>1.57G</td></tr><tr><td>YAGO-QA</td><td>100</td><td>YAGO-4</td><td>207M</td><td>24.85G</td><td>0.54G</td></tr></table>
|
| 220 |
+
|
| 221 |
+
Table 1: The statistics of KBQA benchmarks, including the number of questions number, the number of triples, the size of index in Virtuoso and Elasticsearch.
|
| 222 |
+
|
| 223 |
+
<table><tr><td rowspan="2">Type</td><td rowspan="2">Frameworks</td><td colspan="3">LC-QuAD 1.0</td><td colspan="3">QALD-9</td><td colspan="3">YAGO-QA</td></tr><tr><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td><td>P</td><td>R</td><td>F1</td></tr><tr><td rowspan="3">full-shot</td><td>gAnswer</td><td>-</td><td>-</td><td>-</td><td>0.293</td><td>0.327</td><td>0.298</td><td>0.585</td><td>0.341</td><td>0.430</td></tr><tr><td>EDGQA</td><td>0.505</td><td>0.560</td><td>0.531</td><td>0.313</td><td>0.403</td><td>0.320</td><td>0.419</td><td>0.408</td><td>0.414</td></tr><tr><td>KGQAN</td><td>0.587</td><td>0.461</td><td>0.516</td><td>0.511</td><td>0.387</td><td>0.441</td><td>0.485</td><td>0.652</td><td>0.556</td></tr><tr><td rowspan="4">few-shot</td><td>GPT-3.5</td><td>0.269</td><td>0.251</td><td>0.266</td><td>0.240</td><td>0.217</td><td>0.228</td><td>0.171</td><td>0.142</td><td>0.155</td></tr><tr><td>GPT-4</td><td>0.336</td><td>0.344</td><td>0.340</td><td>0.250</td><td>0.249</td><td>0.249</td><td>0.193</td><td>0.190</td><td>0.191</td></tr><tr><td>Triad-GPT3.5</td><td>0.490</td><td>0.519</td><td>0.504</td><td>0.293</td><td>0.302</td><td>0.297</td><td>0.660</td><td>0.639</td><td>0.649</td></tr><tr><td>Triad-GPT4</td><td>0.561</td><td>0.568</td><td>0.564</td><td>0.408</td><td>0.425</td><td>0.416</td><td>0.690</td><td>0.664</td><td>0.677</td></tr></table>
|
| 224 |
+
|
| 225 |
+
Table 2: The performance of our proposed Triad on three benchmarks, comparing with traditional KBQA systems (full-shot) and pure LLM (few-shot) baselines. The optimal and suboptimal scores are highlighted with bold and underlined text, respectively.
|
| 226 |
+
|
| 227 |
+
learning, the number of candidates D-Agent selects for entity and relation linking, and the retry times for handling non-response SPARQLs. The optimal values for these parameters are 3, 2, 2, and 3, respectively. The framework and its variants are tested five times on each benchmark, with the average scores reported as the final results. For traditional systems, we report the results recorded in their papers. For pure LLM baselines, we write prompts to hire an LLM to answer questions directly referring to examples, and then link the mentions from the responses to the URIs in our indexed knowledge bases via built-in similarity search.
|
| 228 |
+
|
| 229 |
+
# 4.2 Performance Comparison
|
| 230 |
+
|
| 231 |
+
The performance of Triad compared to traditional KBQA systems and pure LLM generation methods is shown in Table 2. Evaluation metrics precision(P), recall(R), and F1-score(F1) are reported. We can observe from the experimental results that:
|
| 232 |
+
|
| 233 |
+
Few-shot can be competitive with full-shot. Our multi-role LLM-based agent framework, though executing a few-shot prompt learning, exhibits competitive performance with cutting-edge full-shot KBQA systems.
|
| 234 |
+
|
| 235 |
+
Underlying capability matters. The use of GPT-4 as the core in an LLM-based agent significantly
|
| 236 |
+
|
| 237 |
+
outperforms GPT-3.5 on all benchmarks, demonstrating the importance of the underlying capabilities of an agent.
|
| 238 |
+
|
| 239 |
+
Explicit knowledge is necessary. Pure LLM models with GPT-3.5 and GPT-4 display deficiencies in generating accurate responses without an auxiliary knowledge base as a memory for intermediary steps such as URI linking.
|
| 240 |
+
|
| 241 |
+
Performance varies with complexity. Triad demonstrates superior results on the LC-QuAD and YAGO-QA benchmarks compared to QALD-9, due to an increasing failure in response to complex questions, which will be discussed later.
|
| 242 |
+
|
| 243 |
+
# 4.3 Study on Capabilities of Agent Roles
|
| 244 |
+
|
| 245 |
+
We assess the efficacy of G-Agent with various other language models as the core. The framework without G-task uses the text-davinci-002, which is not as powerful as GPT-3.5 and GPT-4 in solving many tasks, and the one without G-chat uses text-davinci-003 to eliminate the chat and alignment abilities. We test the ability of D-Agent without D-uri and D-query by replacing the URI selection and query selection with URI matching and query generation, respectively. We evaluate the contribution of A-Agent eliminating A-llm and A-fact by responding to questions without using LLM's assistance or use an LLM to answer Boolean questions
|
| 246 |
+
|
| 247 |
+
for auxiliary rather than single-fact questions. The F1 results of the role ablation experiments on two representative datasets are shown in Table 3. The results indicate that every component pertaining to each role contributes to the overall performance. More specifically, a G-Agent that employs a less powerful LLM as its core can drastically undermine performance. D-Agent assumes a more pivotal role during the linking phase compared to the query construction phase. A-Agent, on the other hand, proves to be an efficient solution for managing situations where SPARQL results are absent.
|
| 248 |
+
|
| 249 |
+
<table><tr><td>G-task</td><td>G-chat</td><td>LC-QuAD 1.0</td><td>QALD-9</td></tr><tr><td>X</td><td>X</td><td>0.343</td><td>0.159</td></tr><tr><td>✓</td><td>X</td><td>0.443</td><td>0.248</td></tr><tr><td>✓</td><td>✓</td><td>0.564</td><td>0.416</td></tr><tr><td>D-uri</td><td>D-query</td><td>LC-QuAD 1.0</td><td>QALD-9</td></tr><tr><td>X</td><td>✓</td><td>0.274</td><td>0.210</td></tr><tr><td>✓</td><td>X</td><td>0.431</td><td>0.301</td></tr><tr><td>✓</td><td>✓</td><td>0.564</td><td>0.416</td></tr><tr><td>A-llm</td><td>A-fact</td><td>LC-QuAD 1.0</td><td>QALD-9</td></tr><tr><td>X</td><td>X</td><td>0.459</td><td>0.382</td></tr><tr><td>✓</td><td>X</td><td>0.473</td><td>0.385</td></tr><tr><td>✓</td><td>✓</td><td>0.564</td><td>0.416</td></tr></table>
|
| 250 |
+
|
| 251 |
+
# 4.4 Analysis of Role Hyperparameters
|
| 252 |
+
|
| 253 |
+
We concentrate on three hyperparameters of roles, including the number of examples $(\mathcal{N}\in$ $\{1,2,3\})$ provided for G-Agent to learn subtasks, the number of URI candidates $(\mathcal{K}\in$ $\{(1,1),(1,2),(2,2),(2,3)\})$ selected by D-Agent for query construction, and the number of retry times $(\mathcal{T}\in \{1,2,3\})$ launched by A-Agent when there is no response. Table 4 presents the F1 results of Triad's performance, employing three hyperparameters on two benchmarks. We discover that:
|
| 254 |
+
|
| 255 |
+
Quality is more important than quantity. More examples provided to G-Agent do not always improve the performance. The efficacy of G-Agent is significantly influenced by the quality of examples.
|
| 256 |
+
|
| 257 |
+
More options may harm the result. Choosing more candidate URIs for entities and relations could potentially disrupt subsequent query phases, thus affecting overall performance.
|
| 258 |
+
|
| 259 |
+
Table 3: Study on the roles of LLM-based agent by eliminating an element or downgrading the capability.
|
| 260 |
+
|
| 261 |
+
<table><tr><td>Triad Variants</td><td>LC-QuAD 1.0</td><td>QALD-9</td></tr><tr><td>Triad-1-Shot</td><td>0.556</td><td>0.376</td></tr><tr><td>Triad-2-Shot</td><td>0.511</td><td>0.402</td></tr><tr><td>Triad-3-Shot</td><td>0.564</td><td>0.416</td></tr><tr><td>Triad-Top1-1</td><td>0.528</td><td>0.281</td></tr><tr><td>Triad-Top1-2</td><td>0.562</td><td>0.375</td></tr><tr><td>Triad-Top2-2</td><td>0.564</td><td>0.416</td></tr><tr><td>Triad-Top2-3</td><td>0.558</td><td>0.384</td></tr><tr><td>Triad-1-Try</td><td>0.529</td><td>0.375</td></tr><tr><td>Triad-2-Tries</td><td>0.561</td><td>0.407</td></tr><tr><td>Triad-3-Tries</td><td>0.564</td><td>0.416</td></tr></table>
|
| 262 |
+
|
| 263 |
+
Table 4: Performance evaluation on three hyperparameters that related to each role of an LLM-based agent.
|
| 264 |
+
|
| 265 |
+
More chances benefits the framework. Persistently attempting to construct and execute SPARQL queries is an effective strategy that improves the probability of obtaining accurate answers. Considering the efficiency of overall execution, we set the maximum retry times as 3 in practice.
|
| 266 |
+
|
| 267 |
+
# 4.5 Analysis of Linking Recall
|
| 268 |
+
|
| 269 |
+
The process of linking is a relatively complex subtask in both the Text2SQL and the KBQA process (Li et al., 2024). Calculating the recall ratio of accurate URIs using D-Agent provides clarity on which step most adversely impacts performance. In the entity linking phase, considering all URIs of entities in the testing set as the ground truth of the linking results, $80.75\%$ of the correct URIs are contained from the output of the entity matching filter in D-Agent and $70.50\%$ of the correct URIs are retained from the entity selection performed by the LLM in D-Agent. Whereas, in the relation linking phase, only $52.54\%$ of the correct relation URIs survive from the selection of LLM, which indicates a greater difficulty in relation linking.
|
| 270 |
+
|
| 271 |
+
# 4.6 Study on Complex Cases
|
| 272 |
+
|
| 273 |
+
Despite the impressive performance of Triad in certain benchmarks, notable deficiencies remain in its ability to understand questions and generate queries for complex questions. A critical analysis of unsuccessful cases in QALD-9, which has the lowest F1 score, has revealed three primary reasons for this failure, as detailed below:
|
| 274 |
+
|
| 275 |
+
Complex Syntax signifies that advanced SPARQL queries incorporate keywords such as GROUP BY and HAVING. These terms augment the error propensity in the generation of SPARQL
|
| 276 |
+
|
| 277 |
+
<table><tr><td>Fail Reason</td><td>Ratio</td><td>Example</td></tr><tr><td>Complex Syntax</td><td>20%</td><td>Q42: Which countries have places with more than two caves?</td></tr><tr><td>Unexploited Semantics</td><td>17%</td><td>Q199: Give me all Argentine films.</td></tr><tr><td>Implicit Reasoning</td><td>5%</td><td>Q133: What are the names of the Teenage Mutant Ninja Turtles?</td></tr></table>
|
| 278 |
+
|
| 279 |
+
Table 5: The major reasons of complexity that result in failures, with their corresponding ratios of occurrence in failed cases.
|
| 280 |
+
|
| 281 |
+
templates such as the example: Which frequent flyer program has the most airlines?
|
| 282 |
+
|
| 283 |
+
Unexploited Semantics indicates that semantics of an implicit entity should be comprehended in order to exclude irrelevant URIs. In the example Give me all Argentine films, the meaning of films should be used to narrow down the scope of potential entities in order to eliminate unrelated answers.
|
| 284 |
+
|
| 285 |
+
Implicit Reasoning presents a challenge that requires a deeper level of traversal by the framework to deduce accurate results from the posed question. For example, another failure question, How many grand-children did Jacques Cousteau have?, the term grand-children must be interpreted to son of son to ensure an accurate response.
|
| 286 |
+
|
| 287 |
+
# 4.7 Cost Comparison and Analysis
|
| 288 |
+
|
| 289 |
+
According to our evaluation on the three datasets, the average cost of running a single case is 0.007 USD on average using Triad-GPT3.5 and 0.05 USD on average using Triad-GPT4. Specifically, most API calls occur in the phases of URL linking and comprehensive answering. Meanwhile, traditional KBQA baselines require a lot of training data and local training resources to achieve the SOTA performance, whereas Triad follows a zero- or few-shot manner to save computational cost locally. Furthermore, as shown in Section 4.4, in practice, adjusting the hyperparameters can make the cost as low as possible while preserving overall performance. As the cost of LLM services decreases, the value of Triad will increase accordingly.
|
| 290 |
+
|
| 291 |
+
# 5 Related Work
|
| 292 |
+
|
| 293 |
+
# 5.1 SPARQL-based and LLM-based KBQA
|
| 294 |
+
|
| 295 |
+
Traditional KBQA methods transform natural language queries into SPARQL requests for data extraction. Specific models are employed either for question understanding or URI linking, utilizing domain-based training datasets. Hu et al. (2018) introduces a semantic query graph to structurally represent the natural language query, thereby simplifying the task into a subgraph matching problem. Hu et al. (2021) proposes an entity description graph to represent natural language queries for question parsing and element linking. Omar et al. (2023a) restructures the question parsing task as a text generation issue using a sequence-to-sequence model. With the advent of LLMs, certain phases of KBQA can be enhanced with LLM-integrated methods. Baek et al. (2023) aims to augment LLM-based QA tasks with pertinent facts extracted from knowledge bases, offering a fully zero-shot architecture. Tan et al. (2023a) leverages the general applicability of LLMs to filter linking candidates by making selections via few-shot in-context learning. Omar et al. (2023b) provides a thorough comparison between LLMs and QA systems, recommending further studies to improve KBQA with LLM capabilities. However, apart from the above studies, our study proposes a complete framework incorporating both an LLM and few-shot learning across all KBQA phases from a systematic perspective.
|
| 296 |
+
|
| 297 |
+
# 5.2 LLM-based Agents for Complex Tasks
|
| 298 |
+
|
| 299 |
+
LLMs have recently gained significant attention due to their ability to approximate human-level intelligence. This has led to numerous studies focusing on LLM-based agents. A recent survey (Wang et al., 2023) proposes a unified architecture for LLM-based agents, which consists of four modules that include profile, memory, plan, and action. CHATDB(Hu et al., 2023a) employs an LLM controller to generate SQL instructions, which allows for symbolic memory and complex multi-hop reasoning. ART(Paranjape et al., 2023) uses a frozen LLM to generate reasoning steps and further integrates tools for new tasks with minimal human intervention. Toolformer(Schick et al., 2024) takes a different approach by training an LLM to plan and execute tools for the next token prediction by learning API calls generation. ReAct(Yao et al., 2023) focuses on overcoming LLM hallucination by interacting with external knowledge bases,
|
| 300 |
+
|
| 301 |
+
thus generating interpretable task-solving strategies. CodeAgent(Tang et al., 2024) designs a multiagent collaboration system across four phases in a code review process. Divergent from the aforementioned studies, our framework concentrates on the solving KBQA tasks by introducing a multirole LLM-based agent that specializes in various subtasks distributed across different phases.
|
| 302 |
+
|
| 303 |
+
# 6 Conclusion
|
| 304 |
+
|
| 305 |
+
In this study, we aim to bridge the gap between KBQA tasks and the investigation of LLM-based agents. We introduce Triad, a framework to address the KBQA task through an LLM-based agent acting as multiple roles, including a generalist capable of mastering diverse tasks given minimal examples, a decision-maker concentrating on option analysis and candidate selection, and an advisor skilled in answering questions with the aid of both external and internal knowledge. Triad achieves the best or competitive performance across three benchmark datasets compared to traditional KBQA systems and pure LLM models. In future research, we plan to broaden our framework to handle more intricate questions, such as multi-hop reasoning, and exploring the integration between our framework and retrieval-augmented generation.
|
| 306 |
+
|
| 307 |
+
# Limitations
|
| 308 |
+
|
| 309 |
+
The limitation of our research lies in following aspects: (1) In terms of data, a broader range of QA datasets needs to be evaluated, encompassing datasets from different domains, languages, and difficulty levels. (2) In terms of model, more LLMs need to be evaluated, including open-source and commercial models from different organizations and on various scales. (3) In terms of framework, more types of agent collaboration methods can be explored to solve KBQA problems.
|
| 310 |
+
|
| 311 |
+
# Ethics Considerations
|
| 312 |
+
|
| 313 |
+
All datasets utilized in this study are publicly available and we have adhered to ethical considerations by not introducing additional information as input during LLM text generation.
|
| 314 |
+
|
| 315 |
+
# Acknowledgements
|
| 316 |
+
|
| 317 |
+
This work is supported by the "Pioneer" and "Leading Goose" R&D Program of Zhejiang (Grant No. 2023C01152 and No. 2024C01034).
|
| 318 |
+
|
| 319 |
+
# References
|
| 320 |
+
|
| 321 |
+
Sören Auer, Christian Bizer, Georgi Kobilarov, Jens Lehmann, Richard Cyganiak, and Zachary Ives. 2007. Dbpedia: A nucleus for a web of open data. In The Semantic Web, pages 722-735, Berlin, Heidelberg. Springer Berlin Heidelberg.
|
| 322 |
+
Jinheon Baek, AlhamFikri Aji, and Amir Saffari. 2023. Knowledge-augmented language model prompting for zero-shot knowledge graph question answering. arXiv preprint arXiv:2306.04136.
|
| 323 |
+
Qingxiu Dong, Li Dong, Ke Xu, Guangyan Zhou, Yaru Hao, Zhifang Sui, and Furu Wei. 2023. Large language model for science: A study on p vs. np. arXiv preprint arXiv:2309.05689.
|
| 324 |
+
Qingxiu Dong, Lei Li, Damai Dai, Ce Zheng, Zhiyong Wu, Baobao Chang, Xu Sun, Jingjing Xu, and Zhifang Sui. 2022. A survey for in-context learning. arXiv preprint arXiv:2301.00234.
|
| 325 |
+
Chenxu Hu, Jie Fu, Chenzhuang Du, Simian Luo, Junbo Zhao, and Hang Zhao. 2023a. Chatdb: Augmenting llms with databases as their symbolic memory. arXiv preprint arXiv:2306.03901.
|
| 326 |
+
Nan Hu, Yike Wu, Guilin Qi, Dehai Min, Jiaoyan Chen, Jeff Z Pan, and Zafar Ali. 2023b. An empirical study of pre-trained language models in simple knowledge graph question answering. _World Wide Web_, pages 1-32.
|
| 327 |
+
Sen Hu, Lei Zou, Jeffrey Xu Yu, Haixun Wang, and Dongyan Zhao. 2018. Answering natural language questions by subgraph matching over knowledge graphs. IEEE Transactions on Knowledge and Data Engineering, page 824-837.
|
| 328 |
+
Xixin Hu, Yiheng Shu, Xiang Huang, and Yuzhong Qu. 2021. Edg-based question decomposition for complex question answering over knowledge bases. In The Semantic Web – ISWC 2021: 20th International Semantic Web Conference, ISWC 2021, Virtual Event, October 24–28, 2021, Proceedings, page 128–145, Berlin, Heidelberg. Springer-Verlag.
|
| 329 |
+
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213.
|
| 330 |
+
Jinyang Li, Binyuan Hui, Reynold Cheng, Bowen Qin, Chenhao Ma, Nan Huo, Fei Huang, Wenyu Du, Luo Si, and Yongbin Li. 2023. Graphix-t5: Mixing pre-trained transformers with graph-aware layers for text-to-sql parsing. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 13076-13084.
|
| 331 |
+
Jinyang Li, Binyuan Hui, Ge Qu, Jiaxi Yang, Binhua Li, Bowen Li, Bailin Wang, Bowen Qin, Ruiying Geng, Nan Huo, et al. 2024. Can llm already serve as a database interface? a big bench for large-scale
|
| 332 |
+
|
| 333 |
+
database grounded text-to-sqls. Advances in Neural Information Processing Systems, 36.
|
| 334 |
+
Zhiwei Liu, Weiran Yao, Jianguo Zhang, Le Xue, Shelby Heinecke, Rithesh Murthy, Yihao Feng, Zeyuan Chen, Juan Carlos Niebles, Devansh Arpit, et al. 2023. Bolaa: Benchmarking and orchestrating llm-augmented autonomous agents. arXiv preprint arXiv:2308.05960.
|
| 335 |
+
Reham Omar, Ishika Dhall, Panos Kalnis, and Essam Mansour. 2023a. A universal question-answering platform for knowledge graphs. Proceedings of the ACM on Management of Data, 1(1):1-25.
|
| 336 |
+
Reham Omar, Omij Mangukiya, Panos Kalnis, and Essam Mansour. 2023b. Chatgpt versus traditional question answering for knowledge graphs: Current status and future directions towards knowledge graph chatbots. arXiv preprint arXiv:2302.06466.
|
| 337 |
+
Bhargavi Paranjape, Scott Lundberg, Sameer Singh, Hannaneh Hajishirzi, Luke Zettlemoyer, and MarcoTulio Ribeiro. 2023. Art: Automatic multi-step reasoning and tool-use for large language models. arXiv preprint arXiv:2303.09014.
|
| 338 |
+
Thomas Pellissier Tanon, Gerhard Weikum, and Fabian Suchanek. 2020. Yago 4: A reason-able knowledge base. In The Semantic Web, pages 583–596, Cham. Springer International Publishing.
|
| 339 |
+
Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettle-moyer, Nicola Cancedda, and Thomas Scialom. 2024. Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems, 36.
|
| 340 |
+
Chuanyuan Tan, Yuehe Chen, Wenbiao Shao, Wenliang Chen, Zhefeng Wang, Baoxing Huai, and Min Zhang. 2023a. Make a choice! knowledge base question answering with in-context learning. arXiv preprint arXiv:2305.13972.
|
| 341 |
+
Yiming Tan, Dehai Min, Yu Li, Wenbo Li, Nan Hu, Yongrui Chen, and Guilin Qi. 2023b. Can chatgpt replace traditional kbqa models? an in-depth analysis of the question answering performance of the gpt llm family. In International Semantic Web Conference, pages 348-367. Springer.
|
| 342 |
+
Yiming Tan, Dehai Min, Yu Li, Wenbo Li, Nan Hu, Yongrui Chen, and Guilin Qi. 2023c. Evaluation of chatgpt as a question answering system for answering complex questions. arXiv preprint arXiv:2303.07992.
|
| 343 |
+
Daniel Tang, Zhenghan Chen, Kisub Kim, Yewei Song, Haoye Tian, Saad Ezzini, Yongfeng Huang, and Jacques Klein Tegawende F Bissyande. 2024. Collaborative agents for software engineering. arXiv preprint arXiv:2402.02172.
|
| 344 |
+
|
| 345 |
+
Priyansh Trivedi, Gaurav Maheshwari, Mohnish Dubey, and Jens Lehmann. 2017. Lc-quad: A corpus for complex question answering over knowledge graphs. In The Semantic Web – ISWC 2017, pages 210–218, Cham. Springer International Publishing.
|
| 346 |
+
Ricardo Usbeck, Ria Hari Gusmita, Axel-Cyrille Ngonga Ngomo, and Muhammad Saleem. 2018. 9th challenge on question answering over linked data (qald-9) (invited paper). In Semdeep/NLIWoD@ISWC.
|
| 347 |
+
Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, et al. 2023. A survey on large language model based autonomous agents. arXiv preprint arXiv:2308.11432.
|
| 348 |
+
Tonghan Wang, Tarun Gupta, Anuj Mahajan, Bei Peng, Shimon Whiteson, and Chongjie Zhang. 2020. Rode: Learning roles to decompose multi-agent tasks. arXiv preprint arXiv:2010.01523.
|
| 349 |
+
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. React: Synergizing reasoning and acting in language models.
|
| 350 |
+
|
| 351 |
+
# A Response Time Analysis
|
| 352 |
+
|
| 353 |
+
We analyze various QA frameworks in response time to a question. The average latency of each phase including question parsing (QP), URI linking (UL), and answer generation (AG) for each knowledge base is reported. We randomly select 10 samples from each dataset for evaluation to obtain the average response times for Triad-1 and Triad-3, which represent retrying three times and generating an answer in one go, respectively, during the answer generation phase. The comparison between traditional QA systems and Triad is shown in Figure 3. Triad generally shows a competitive time-consuming performance to latest traditional QA systems. Specifically, compared to other phases, URL linking consumes more time due to the need to invoke LLM multiple times. Moreover, according to Section 4.4, with smaller retry times of A-Agent, Triad can significantly reduce time cost while only causing slight performance degradation, revealing the advantages of our framework in balancing performance and efficiency.
|
| 354 |
+
|
| 355 |
+

|
| 356 |
+
Figure 3: Response time of traditional KBQA systems and Triad on three datasets. Each bar shows average response time of a particular phase of KBQA.
|
| 357 |
+
|
| 358 |
+
# B Role Performance on YAGO-QA
|
| 359 |
+
|
| 360 |
+
We choose LC-QuAD 1.0 and QALD-9 as our two representative datasets in Section 4.3, as the questions among them vary in difficulty, and the tasks in these two datasets are relatively more challenging than YAGO-QA. We provide the performance of agent roles on YAGO-QA in Table 6, which shows a consistent result with other datasets in Table 3.
|
| 361 |
+
|
| 362 |
+
# C Prompts Provided to LLMs of G-Agent for Solving Various Subtasks in KBQA
|
| 363 |
+
|
| 364 |
+
The prompt given to LLMs of $Agent_{g}$ to perform triplet extraction from the question $Q$ is as follows:
|
| 365 |
+
|
| 366 |
+
<table><tr><td>G-task</td><td>G-chat</td><td>YAGO-QA</td></tr><tr><td>×</td><td>×</td><td>0.427</td></tr><tr><td>✓</td><td>×</td><td>0.553</td></tr><tr><td>✓</td><td>✓</td><td>0.677</td></tr><tr><td>D-uri</td><td>D-query</td><td>YAGO-QA</td></tr><tr><td>×</td><td>✓</td><td>0.346</td></tr><tr><td>✓</td><td>×</td><td>0.534</td></tr><tr><td>✓</td><td>✓</td><td>0.677</td></tr><tr><td>A-llm</td><td>A-fact</td><td>YAGO-QA</td></tr><tr><td>×</td><td>×</td><td>0.626</td></tr><tr><td>✓</td><td>×</td><td>0.647</td></tr><tr><td>✓</td><td>✓</td><td>0.677</td></tr></table>
|
| 367 |
+
|
| 368 |
+
Table 6: Performance of roles of LLM-based agent by eliminating an element or downgrading the capability.
|
| 369 |
+
|
| 370 |
+
# You are an assistant to identify triples within a provided sentence. Please adhere to the following guidelines:
|
| 371 |
+
|
| 372 |
+
1. Triples should be structured in the format <entity1, relation, entity2>.
|
| 373 |
+
2. The sentence must contain at least one triple, so you should provide at least one.
|
| 374 |
+
3. Entities should represent the smallest semantic units and should not contain descriptive details.
|
| 375 |
+
4. Entities can take the form of explicit or implicit references. Explicit entities refer to specific named resources, whereas implicit entities are less certain.
|
| 376 |
+
5. When an entity is implicit, utilize a variable format such as '?variable' to denote it, for example, '?location' or '?person'.
|
| 377 |
+
|
| 378 |
+
# Here are some examples:
|
| 379 |
+
|
| 380 |
+
Which city's founder is John Forbes? : <?city, foundeer, John Forbes>
|
| 381 |
+
|
| 382 |
+
How many races have the horses bred by Jacques Van't Hart participated in? : <?horse, participated in, ?race> <?horse, breeder, Jacques Van't Hart>
|
| 383 |
+
|
| 384 |
+
Is camel of the chordate phylum? : <camel, phylum, chordate>
|
| 385 |
+
|
| 386 |
+
Sentence: <Question Sentence>
|
| 387 |
+
|
| 388 |
+
# Output:
|
| 389 |
+
|
| 390 |
+
The prompt given to LLMs of $A g e n t_{g}$ for SPARQL template generation is as follows:
|
| 391 |
+
|
| 392 |
+
You are an assistant to generate a SPARQL query to address a specific question. Here are the guidelines to follow:
|
| 393 |
+
|
| 394 |
+
1. Ensure that the resulting SPARQL query is designed to answer the provided question.
|
| 395 |
+
2. Adhere to the commonly accepted SPARQL standards when generating the query.
|
| 396 |
+
3. Make an effort to leverage the information provided to assist in the creation of the SPARQL query.
|
| 397 |
+
4. Strive to keep the generated SPARQL query as straightforward as possible.
|
| 398 |
+
5. Avoid including 'PREFIX' or ':' in the SPARQL query.
|
| 399 |
+
6. Enclose condition entities and predicates within angle brackets, such as <entity> or <predicate>.
|
| 400 |
+
7. Maintain the original order of the given triples without altering their sequence.
|
| 401 |
+
|
| 402 |
+
Question: <question sentence>
|
| 403 |
+
|
| 404 |
+
Triplets: <extracted triplets>
|
| 405 |
+
|
| 406 |
+
Output:
|
| 407 |
+
|
| 408 |
+
You are an assistant to select $\langle K \rangle$ URIs from a provided list of possible URIs for a specified entity, following these guidelines:
|
| 409 |
+
|
| 410 |
+
1. Identify the $\langle \mathrm{K} \rangle$ most appropriate URIs from the given list that best represent the entity in question.
|
| 411 |
+
2. Seek to understand the semantic information associated with the specified entity by examining the provided question.
|
| 412 |
+
3. The output should consist of $\langle \mathrm{K} \rangle$ URIs chosen from the provided list of possible URIs.
|
| 413 |
+
4. Simply output these $\langle \mathrm{K} \rangle$ target URIs, each on a separate line, without providing any additional explanations.
|
| 414 |
+
|
| 415 |
+
Sentence: <question sentence>
|
| 416 |
+
|
| 417 |
+
Entity: <entity mention>
|
| 418 |
+
|
| 419 |
+
Possible entity URIs: <Entity URI list>
|
| 420 |
+
|
| 421 |
+
Output:
|
| 422 |
+
|
| 423 |
+
The prompt given to LLMs of $Agent_d$ for candidate relation selection is as follows:
|
| 424 |
+
|
| 425 |
+
The prompt given to LLMs of $Agent_g$ for question type classification is as follows:
|
| 426 |
+
|
| 427 |
+
You are an assistant to determine the specific type of a given question according to the following guidelines:
|
| 428 |
+
|
| 429 |
+
1. You must determine the most probable question type for the input question.
|
| 430 |
+
2. The type of question should be enclosed within angle brackets, denoted as $\text{’} < \text{’}$ and $\text{’} > \text{’}$ .
|
| 431 |
+
3. Possible question types include: <count>, <select>, and <yes or no>.
|
| 432 |
+
|
| 433 |
+
Question: <question sentence>
|
| 434 |
+
|
| 435 |
+
Output:
|
| 436 |
+
|
| 437 |
+
You are an assistant tasked with selecting the $\langle K\rangle$ relation URIs between entities mentioned in a sentence. Here are the guidelines:
|
| 438 |
+
|
| 439 |
+
1. The two entities are listed one after the other, without a specific order.
|
| 440 |
+
2. Use the provided sentence to discern the semantic meaning of these entities.
|
| 441 |
+
3. The potential relation URIs are listed one by one.
|
| 442 |
+
4. Your output should consist of a maximum of $\langle \mathrm{K} \rangle$ possible relation URIs, although you may also output fewer if appropriate.
|
| 443 |
+
5. Ensure that your output is organized, prioritizing the most likely relationship first.
|
| 444 |
+
6. Provide a list of no more than $\langle \mathrm{K} \rangle$ relation URIs (each on a separate line if there are multiple) without any additional descriptions.
|
| 445 |
+
|
| 446 |
+
Sentence: <question sentence>
|
| 447 |
+
|
| 448 |
+
Entities: <entity pair>
|
| 449 |
+
|
| 450 |
+
Possible relation URIs: <URI list>
|
| 451 |
+
|
| 452 |
+
Output:
|
| 453 |
+
|
| 454 |
+
D Prompts Provided to LLMs of D-Agent for Solving Selection Subtasks in KBQA
|
| 455 |
+
|
| 456 |
+
The prompt given to LLMs of $Agent_d$ for candidate entities selection is as follows:
|
| 457 |
+
|
| 458 |
+
The prompt given to LLMs of $Agent_d$ for the final SPARQL selection is as follows:
|
| 459 |
+
|
| 460 |
+
You are an assistant to select an appropriate SPARQL query from the provided list in order to respond to a specific question. Please adhere to the following guidelines:
|
| 461 |
+
|
| 462 |
+
1. Select the most suitable SPARQL query from the given query list to address the question.
|
| 463 |
+
2. Select a SPARQL query solely from the provided list; avoid crafting your own SPARQL query.
|
| 464 |
+
3. The selected SPARQL query must be applicable to answer the given question.
|
| 465 |
+
|
| 466 |
+
Sentence: <question sentence>
|
| 467 |
+
|
| 468 |
+
SPARQL candidates: <SPARQLs to choose> Output:
|
| 469 |
+
|
| 470 |
+
# E Prompts Provided to LLMs of A-Agent for Solving Answering Subtask in KBQA
|
| 471 |
+
|
| 472 |
+
The prompt given to LLMs of $Agent_{a}$ to generate a yes or no answer for the give question is as follows:
|
| 473 |
+
|
| 474 |
+
You are an assistant to answer a yes-or-no question. Please adhere to the following guidelines:
|
| 475 |
+
|
| 476 |
+
1. If you believe that the answer is yes, provide an output of 'True'. If not, provide an output of 'False'.
|
| 477 |
+
2. Please do not include additional information or explanations in your response.
|
| 478 |
+
|
| 479 |
+
Sentence: <question sentence>
|
| 480 |
+
|
| 481 |
+
# Output:
|
| 482 |
+
|
| 483 |
+
The prompt given to LLMs of $Agent_{a}$ to generate a single-fact answer for the give question is as follows:
|
| 484 |
+
|
| 485 |
+
You are an assistant to answer a question. Please adhere to the following guidelines:
|
| 486 |
+
|
| 487 |
+
1. The answer to the question is a single entity.
|
| 488 |
+
2. You should just output the full expression of the answer without any punctuation.
|
| 489 |
+
3. Do not output any other description.
|
| 490 |
+
|
| 491 |
+
Sentence: <question sentence>
|
| 492 |
+
|
| 493 |
+
# Output:
|
2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2aa5ef7ac6fe968f60cfc5b76a1bcb549a0ee3e64aa53e973d8c2d3097d6f00
|
| 3 |
+
size 551387
|
2024/Triad_ A Framework Leveraging a Multi-Role LLM-based Agent to Solve Knowledge Base Question Answering/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/TroL_ Traversal of Layers for Large Language and Vision Models/d3959391-dc37-4afa-81df-706ce45ce8e9_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/TroL_ Traversal of Layers for Large Language and Vision Models/d3959391-dc37-4afa-81df-706ce45ce8e9_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/TroL_ Traversal of Layers for Large Language and Vision Models/d3959391-dc37-4afa-81df-706ce45ce8e9_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f56736f7d011a91ae4844282af853ce9a7e0d68c2b992741c592a6d729652fd
|
| 3 |
+
size 6466745
|
2024/TroL_ Traversal of Layers for Large Language and Vision Models/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/TroL_ Traversal of Layers for Large Language and Vision Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:797e620160e3ef2335aea452f7e269143688991275aca1908c7833c5e8158615
|
| 3 |
+
size 1613573
|
2024/TroL_ Traversal of Layers for Large Language and Vision Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/78b71285-cba8-4c67-9072-33097abe467c_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/78b71285-cba8-4c67-9072-33097abe467c_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/78b71285-cba8-4c67-9072-33097abe467c_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b9eaf7b0d3c839c8cd0d340c8e00c86e0dce5a6c4a13b85b6df1e369fdcdc0b
|
| 3 |
+
size 553993
|
2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/full.md
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Turn Waste into Worth: Rectifying Top- $k$ Router of MoE
|
| 2 |
+
|
| 3 |
+
Zhiyuan Zeng $^{1}$ , Qipeng Guo $^{2}$ , Zhaoye Fei $^{1,2}$ , Zhangyue Yin $^{1}$ , Yunhua Zhou $^{2}$ , Linyang Li $^{2}$ , Tianxiang Sun $^{1}$ , Hang Yan $^{2}$ , Dahua Lin $^{2}$ , Xipeng Qiu $^{1\dagger}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ School of Computer Science, Fudan University, Shanghai, China
|
| 6 |
+
|
| 7 |
+
$^{2}$ Shanghai AI Laboratory
|
| 8 |
+
|
| 9 |
+
cengzy23@m.fudan.edu.cn; xpqiu@fudan.edu.cn
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Sparse Mixture of Experts (MoE) models are popular for training large language models due to their computational efficiency. However, the commonly used top- $k$ routing mechanism suffers from redundancy computation and memory costs due to the unbalanced routing. Some experts are overflow, where the exceeding tokens are dropped. While some experts are empty, which are padded with zeros, negatively impacting model performance. To address the dropped tokens and padding, we propose the Rectify-Router, comprising the Intra-GPU Rectification and the Fill-in Rectification. The Intra-GPU Rectification handles dropped tokens, efficiently routing them to experts within the GPU where they are located to avoid inter-GPU communication. The Fill-in Rectification addresses padding by replacing padding tokens with the tokens that have high routing scores. Our experimental results demonstrate that the Intra-GPU Rectification and the Fill-in Rectification effectively handle dropped tokens and padding, respectively. Furthermore, the combination of them achieves superior performance, surpassing the accuracy of the vanilla top-1 router by $4.7\%$ .
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Sparse Mixture of Experts (MoE) is gaining popularity as a model architecture for training large language models (Fedus et al., 2022; Du et al., 2022; Zoph et al., 2022; Jiang et al., 2024; Dai et al., 2024) owing to its computational efficiency. In a sparse MoE model, each token is assigned to one or more experts based on a routing mechanism. The top- $k$ router is currently the most widely used routing mechanism, where tokens are directed to the experts with the top- $k$ scores.
|
| 18 |
+
|
| 19 |
+
However, top- $k$ router is unbalanced, where the number of tokens routed to different GPUs is not
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: The illustration of dropped token and padding in top- $k$ router of MoE. Queue $i$ represents the queue of tokens to be sent to expert $i$ . The capacity of each expert is fixed to 3.
|
| 23 |
+
|
| 24 |
+
the same. In order to achieve a balanced workload across GPUs, the top- $k$ routing imposes a maximum limit on the number of tokens that each expert can process, resulting in any tokens that exceed this limit being dropped and empty experts being filled with zeros, which negatively affects overall model performance (Gale et al., 2022).
|
| 25 |
+
|
| 26 |
+
Previous studies have attempted to address the balance issue in routing by introducing auxiliary loss mechanisms (Shazeer et al., 2017; Lepikhin et al., 2021; Zoph et al., 2022). But there are drawbacks to the way, the performance degradation due to dropped tokens is still significant (Zhou et al., 2022; Gale et al., 2022). Even some methods have made improvements to propose absolutely balanced routers, but they have been found to underperform the original top- $k$ routing methodology (Yu et al., 2022).
|
| 27 |
+
|
| 28 |
+
Rather than focusing on improving the balance of the top- $k$ router, We propose an alternative approach called the Rectify-Router, which rectifies top- $k$ router by post-processing the dropped tokens and padding from the top- $k$ router. We propose two
|
| 29 |
+
|
| 30 |
+
Rectify-Routers: the Intra-GPU Rectification and the Fill-in Rectification. The Intra-GPU Rectification is designed to handle the dropped tokens, while the Fill-in Rectification specifically addresses the padding issue.
|
| 31 |
+
|
| 32 |
+
Post-processing the dropped tokens with another router may bring expensive communication cost. Therefore, we propose the Intra-GPU Rectification which routes the dropped tokens to the experts within the GPU where they are located, eliminating the need for inter-GPU communication. Our empirical experiments have demonstrated that the Intra-GPU Rectification effectively handles the post-processing of dropped tokens and is more efficient than the commonly used routers, in terms of communication.
|
| 33 |
+
|
| 34 |
+
To address the padding issue, we present the Fill-in Rectification, which replace padding tokens with the tokens that have high routing scores. Fill-in Rectification first identifies the optimal expert for each token based on the routing scores and subsequently selects the tokens with the highest routing score to replace the padding for each expert. By employing Fill-in Rectification, tokens with the higher routing scores receive more computational allocation.
|
| 35 |
+
|
| 36 |
+
The Intra-GPU Rectification and Fill-in Rectification are orthogonal approaches that can be seamlessly combined. Our experiments have demonstrated their effectiveness in handling dropped tokens and padding. Furthermore, combing the Intra-GPU Rectification and Fill-in Rectification yield improved performance compared to using them individually.
|
| 37 |
+
|
| 38 |
+
Contributions The contributions of our work can be summarized as follows:
|
| 39 |
+
|
| 40 |
+
1. We introduce the concept of Rectify-Router to handle the dropped tokens and padding in MoE models. Specifically, the dropped tokens are efficiently processed using the Intra-GPU Rectification, while the padding tokens are optimally managed using the Fill-in Rectification.
|
| 41 |
+
2. Our experiments validate that both the Intra-GPU Rectification and the Fill-in Rectification significantly improve the performance of the top- $k$ routing, even without additional training.
|
| 42 |
+
3. Experiments present that our methods are robust to various settings of expert capacity and
|
| 43 |
+
|
| 44 |
+
that Intra-GPU Rectification can be used for accelerating MoE by reducing expert capacities.
|
| 45 |
+
|
| 46 |
+
# 2 Related Works
|
| 47 |
+
|
| 48 |
+
The routing of MoE can be classified into two categories: balanced and unbalanced. The balanced routing assigns the same number of tokens to each expert, while the unbalanced routing does not make sure that the number of tokens received by each expert is the same.
|
| 49 |
+
|
| 50 |
+
Unbalanced Routing Top- $k$ routing was the most commonly used unbalanced routing proposed by Shazeer et al. (2017), which greedily assigns tokens to experts, according to the token-expert assignment scores. Numerous MoE models have adopted top- $k$ routing, including Switch Transformer (Fedus et al., 2022), Glam (Du et al., 2022), ST-MoE (Zoph et al., 2022), Flan-MoE (Shen et al., 2023), and NLLB (Koishekenov et al., 2022), to name just a few.
|
| 51 |
+
|
| 52 |
+
It is worth noting that many unbalanced routing methods are variations or derivatives of top- $k$ routing. For example, Switch Transformer (Fedus et al., 2022) argues in favor of using top-1 routing instead of top-2 routing for improved efficiency. ST-MoE (Zoph et al., 2022) and LIMoE (Mustafa et al., 2022) propose auxiliary loss functions to enhance the stability of MoE during training. Additionally, SCoMoE (Zeng and Xiong, 2023) and Gating-Dropout (Liu et al., 2022) improve the efficiency of top- $k$ routing by designing hierarchical routing systems based on the hierarchical structure of the communication topology.
|
| 53 |
+
|
| 54 |
+
The routing method proposed in this paper is also a variation of top- $k$ routing. However, unlike the aforementioned approaches, our objective is to address the issues of dropped tokens and padding that arise from unbalanced routing. Switch Transformer (Fedus et al., 2022) tackles the problem of dropped tokens by increasing the capacity of experts, allowing each expert to handle more tokens. While this approach reduces the number of dropped tokens, it introduces additional overhead in terms of both speed and memory. On the other hand, Megablocks (Gale et al., 2022) addresses the challenges of padding and dropped tokens by gathering all experts onto the same GPU and employing model parallelism rather than expert parallelism. However, the model parallelism is shown to be more expensive than the expert parallelism
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
Figure 2: Left: Post-processing of dropped tokens at GPU 0 with Intra-GPU Rectification. Right: Post-processing of padding at GPU 0 with Fill-in Rectification.
|
| 58 |
+
|
| 59 |
+
by Tutel (Hwang et al., 2022).
|
| 60 |
+
|
| 61 |
+
Balanced Routing In response to the imbalance issue inherent in top- $k$ routing, several balanced routing methods have been proposed. For instance, the Base Layer approach (Lewis et al., 2021) employs a balanced assignment algorithm to evenly distribute tokens among experts. However, their assumption that tokens within the same batch can be evenly clustered may not hold true in all cases, which can potentially result in poorer performance (Yu et al., 2022). Another alternative to balanced routing is random routing (Zuo et al., 2022), which assigns tokens to experts in a random manner. While random routing achieves balance and efficiency, it lacks any specialization or optimization in the routing process. Another approach called expert choices (Zhou et al., 2022) allows each expert to select a fixed number of tokens, rather than relying on tokens to determine their target experts. This approach helps to avoid padding issues but still results in dropped tokens. Soft routing (Puigcerver et al., 2023) is a method that compresses tokens by applying a linear transformation to generate fixed-size hidden states for each expert. However, this method is only suitable for encoder models with fixed input lengths and may not be applicable to autoregressive decoder models.
|
| 62 |
+
|
| 63 |
+
# 3 Preliminary
|
| 64 |
+
|
| 65 |
+
In this section, we will introduce expert parallelism, top- $k$ routing, and two prevalent challenges that emerge while employing top- $k$ routing: padding and dropped tokens.
|
| 66 |
+
|
| 67 |
+
Expert Parallelism and Top- $k$ Routing In expert parallelism, experts are distributed across GPUs uniformly. If there are $n$ experts and $k$ GPUs, each GPU contains $k/n$ experts. The process of transmitting tokens to the respective experts entails inter-GPU communication.
|
| 68 |
+
|
| 69 |
+
Top- $k$ routing greedily assigns tokens to experts according to the routing score:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\mathbb {R} _ {i} = \operatorname {a r g t o p k} _ {j \in [ m ]} \left\{a _ {i j} \mid a _ {i j} = w _ {j} ^ {T} x _ {i} \right\} \tag {1}
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $a_{ij}$ is the score of assigning the $i$ th token to the $j$ th expert, $w_{j}$ denotes the embedding vector of the $j$ th expert, $x_{i}$ corresponds to the hidden states of the $i$ token. The index set $\mathbb{R}_i$ signifies the target experts of the $i$ th token. Given the scores of assigning token $x_{i}$ to $m$ experts, denoted as $a_{i0}, a_{i1}, \ldots, a_{im}, \mathbb{R}_i$ contains the indices of experts with top- $k$ scores.
|
| 76 |
+
|
| 77 |
+
Since each token undergoes processing by multiple experts, the outputs of these experts for the same token are consolidated through linear combination. The combining weights are determined by
|
| 78 |
+
|
| 79 |
+
the normalized routing scores, as defined in Eq. (1):
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
o _ {i} = \sum_ {j \in \mathbb {R} _ {i}} \frac {e ^ {a _ {i j}}}{\sum_ {j \in \mathbb {R} _ {i}} e ^ {a _ {i j}}} E _ {j} \left(x _ {i}\right). \tag {2}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
Here, $o_i$ represents the combined result of token $x_i$ . The term $\frac{e^{a_{ij}}}{\sum_j^k e^{a_{ij}}}$ denotes the normalized routing scores, while $E_j(x_i)$ refers to the outputs of the $j$ th expert with token $x_i$ as its input.
|
| 86 |
+
|
| 87 |
+
The top- $k$ routing approach exhibits an inherent imbalance, wherein the distribution of tokens among different experts is not uniform. However, the current distributed framework exclusively supports balanced computation across GPUs. Consequently, there exists a limitation on the maximum number of tokens that each expert can receive, which is referred to as the capacity. The capacity is determined by the capacity factor, which is typically set to $k$ for top- $k$ routing (Lepikhin et al., 2021; Rajbhandari et al., 2022). Mathematically, the capacity can be expressed as:
|
| 88 |
+
|
| 89 |
+
capacity = capacity factor × $\frac{\text{number of tokens}}{\text{number of experts}}$ .
|
| 90 |
+
|
| 91 |
+
Dropped Tokens and Padding The issue of dropped tokens and padding arises naturally when dealing with the expert capacity setting, as depicted in Figure 1. With a fixed expert capacity, overflow experts are compelled to drop tokens with the lowest routing scores and directly pass them to the next layer through residual connections, as highlighted in red in Figure 1. Consequently, due to the dropped tokens, the set $\mathbb{R}_i$ defined in Eq. (1) only includes the successfully routed experts, i.e., $|\mathbb{R}_i| \leq k$ .
|
| 92 |
+
|
| 93 |
+
Conversely, certain experts may receive fewer tokens than the capacity limitation, leading to redundant computation in the form of padding. These padding instances are illustrated in yellow in Figure 1.
|
| 94 |
+
|
| 95 |
+
If the capacity factor for top- $k$ routing is set to $k$ , the number of dropped tokens and padding tokens will be equal. However, this equality does not hold if we modify the capacity factor. Increasing the capacity factor results in fewer dropped tokens but more padding. Conversely, reducing the capacity factor reduces padding tokens but increases the number of dropped tokens.
|
| 96 |
+
|
| 97 |
+
# 4 Method
|
| 98 |
+
|
| 99 |
+
In this paper, we introduce a novel approach to address both the dropped tokens and padding as
|
| 100 |
+
|
| 101 |
+
sociated with top- $k$ routing by utilizing Rectify-Routers. Specifically, we propose two Rectify-Routers: the Intra-GPU Rectification and the Fill-in Rectification, which are visualized in Figure 2. The Intra-GPU Rectification is designed to efficiently post-process the dropped tokens, while the Fill-in Rectification is dedicated to addressing the padding problem.
|
| 102 |
+
|
| 103 |
+
# 4.1 Rectify-Router for Dropped Tokens: Intra-GPU Rectification
|
| 104 |
+
|
| 105 |
+
We expect to post-process the dropped tokens by evenly routing them across GPUs. But sending tokens among GPUs requires expensive communication cost. Furthermore, the dropped tokens have the lower routing scores than the other tokens routed to the same expert, which may be less important. Therefore, we propose an efficient Rectify-Router for the dropped tokens: Intra-GPU Rectification, which dispatch the dropped tokens to the experts inside GPU, which does not require any communication among GPUs. This process is visualized in the left part of Figure 2, where the dropped tokens from GPU 0 are routed to the expert 0 or expert 1 at GPU 0.
|
| 106 |
+
|
| 107 |
+
Given the input token $x_{i}$ , the Intra-GPU Rectification greedily assigns token $x_{i}$ to the optimal expert within the same GPU according to the routing scores. The Intra-GPU Rectification can be seen as a variant of the top- $k$ routing. If all experts are distributed in the same GPU, then the Intra-GPU Rectification is exactly the top-1 routing.
|
| 108 |
+
|
| 109 |
+
In top- $k$ routing, the same token may be dropped by multiple times. Take the top-2 routing as an example, if a token $x_{i}$ is dropped at both the first and second routing, it should be sent to two experts at Intra-GPU Rectification. To simplify the problem, we only send $x_{i}$ to one expert, although it is dropped twice. In another example, the token $x_{i}$ is dropped only at the second routing, while the first routing is successful. In this case, we have to combine the results of top- $k$ routing and Intra-GPU Rectification. We combine them linearly according to the routing scores:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
o _ {i} = \frac {\sum_ {j \in \mathbb {R} _ {i}} e ^ {a _ {i j}} E _ {j} \left(x _ {i}\right) + (k - \left| \mathbb {R} _ {i} \right|) e ^ {a _ {i h}} E _ {h} \left(x _ {i}\right)}{\left(\sum_ {j \in \mathbb {R} _ {i}} e ^ {a _ {i j}}\right) + (k - \left| \mathbb {R} _ {i} \right|) e ^ {a _ {i h}}}, \tag {3}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where $E_{j}(x_{i})$ represents the expert outputs obtained through top- $k$ routing, while $E_{h}(x_{i})$ denotes the expert outputs from Intra-GPU Rectification. We normalize the routing scores $a_{ij}$ and $a_{ih}$ as
|
| 116 |
+
|
| 117 |
+
the combining weights of $E_{j}(x_{i})$ and $E_{h}(x_{i})$ respectively. Specifically, we scale the combining weights of $E_{h}(x_{i})$ with a constant factor $(k - |\mathbb{R}_i|)$ , because a token is dropped $(k - |\mathbb{R}_i|)$ times but only processed by one expert in the Intra-GPU Rectification.
|
| 118 |
+
|
| 119 |
+
Similar to the top- $k$ router, the Intra-GPU Rectification also exhibits imbalance. However, this imbalance does not affect the computational fairness among GPUs. Although the balance of routing determines the number of dropped tokens within a batch, it does not influence the variation in the number of dropped tokens across different batches. The number of dropped tokens in different batches is similar due to their identical data distribution. Since batches on different GPUs are sampled independently and identically distributed, the number of dropped tokens across GPUs is comparable.
|
| 120 |
+
|
| 121 |
+
# 4.2 Rectify-Router for Padding: Fill-in Rectification
|
| 122 |
+
|
| 123 |
+
Fill-in Rectification aims to replace the unnecessary padding with the tokens that have high routing scores, which is visualized in the right part of Figure 2. This process is divided into two separate stages. Firstly, we identify the most suitable expert for each token, and subsequently, we select the optimal tokens for each expert.
|
| 124 |
+
|
| 125 |
+
During the initial stage, each token will choose the expert ranked as the $k + 1$ th highest score as the optimal expert. This decision is based on the fact that the top- $k$ experts have already been assigned, and the $k + 1$ th expert is considered the most suitable among the remaining experts. Furthermore, each token is only allowed to select one expert, which avoids the same token being processed by multiple experts during the second stage.
|
| 126 |
+
|
| 127 |
+
Upon completion of the first stage, we transition to the second stage. It is worth noting that multiple tokens may select the same expert. Consequently, it is possible that the number of tokens choosing a particular expert surpasses the number of padding tokens of that expert. In such scenarios, we prioritize the tokens with higher routing scores for replacing the padding tokens.
|
| 128 |
+
|
| 129 |
+
Indeed, implementing this algorithm can be achieved by extending the top- $k$ router to a top $k + 1$ router while ensuring the expert capacity remains unchanged. As the expert capacity is fixed, introducing the Fill-in Rectification incurs minimal additional overhead. Alternatively, we can view
|
| 130 |
+
|
| 131 |
+
this approach as reducing the capacity factor of the top- $k + 1$ routing from $k + 1$ to $k$ to avoid the padding.
|
| 132 |
+
|
| 133 |
+
The Fill-in Rectification has a potential issue related to the normalization of routing scores, where the gradient of routing scores may vanish due to the invalid normalization. We address this issue in Appendix A with straight-through trick (Bengio et al., 2013).
|
| 134 |
+
|
| 135 |
+
# 5 Experiments
|
| 136 |
+
|
| 137 |
+
# 5.1 Experiment Settings
|
| 138 |
+
|
| 139 |
+
Model We follow previous work (Komatsuzaki et al., 2023) to train MoE models from a pretrained dense model. We initialize all experts in the same layer of MoE as the FFN parameters of the corresponding layer in the Dense model. We use the LLama2-7b (Touvron et al., 2023) to initialize MoE models. In most of our experiments, we employ eight experts per layer in the MoE models. But in Appendix B, we explore the extension of the number of experts to 32. Our experiments are conducted using the MoE implementation of DeepSpeed (Rajbhandari et al., 2022) and the training framework of gpt-neox (Aandonian et al., 2021).
|
| 140 |
+
|
| 141 |
+
For simplicity, we denote our Intra-GPU Rectification as IR, and the Fill-in Rectification as FR. The top- $k$ router, depending on whether it uses the Intra-GPU Rectification or the Fill-in Rectification, will be denoted as Top-k +IR or Top-k+FR, respectively.
|
| 142 |
+
|
| 143 |
+
Training During the training phase, we utilize the OpenOrca dataset (Lian et al., 2023) with 1.78B tokens, which is an open-source reimplementation of Orca dataset (Mukherjee et al., 2023). It augments the instructions from flan data (Longpre et al., 2023) by adding complex system prompts and generate the step-by-step reasoning or explanation using chatgpt (OpenAI et al., 2023).
|
| 144 |
+
|
| 145 |
+
We conduct our model training on a cluster of 32 GPUs (80GB). The training process consists of 10k steps with a global batch size of 256 and a micro batch size of 8. Following Mukherjee et al. (2023), we construct training examples by concatenating instructions with their corresponding responses: "[instruct][response]". However, only the tokens in the response are utilized for the next-token-prediction loss. For optimization, we use the Adam optimizer (Kingma and Ba, 2015) with an initial learning rate of 1e-5, which is decayed to 1e
|
| 146 |
+
|
| 147 |
+
<table><tr><td>Model</td><td>Router</td><td>CF</td><td>Train Speed</td><td>MMLU</td><td>SuperGLUE</td><td>TruthfulQA</td><td>LogiQA</td><td>Avg</td></tr><tr><td>LLama2-raw</td><td>-</td><td>-</td><td>3.2k</td><td>25.85</td><td>59.06</td><td>25.21</td><td>25.03</td><td>33.78</td></tr><tr><td>LLama2</td><td>-</td><td>-</td><td>3.2k</td><td>35.01</td><td>63.74</td><td>30.23</td><td>27.64</td><td>39.15</td></tr><tr><td rowspan="4">LLama-MoE (Top-1)</td><td>Top-1</td><td>1.0</td><td>2.4k</td><td>33.05</td><td>64.34</td><td>29.49</td><td>28.11</td><td>38.74</td></tr><tr><td>Top-1+IR</td><td>1.0</td><td>2.3k</td><td>36.27</td><td>64.52</td><td>30.35</td><td>30.56</td><td>40.42</td></tr><tr><td>Top-1+FR</td><td>1.0</td><td>2.3k</td><td>34.66</td><td>63.97</td><td>28.51</td><td>29.18</td><td>39.08</td></tr><tr><td>Top-1+FR+IR</td><td>1.0</td><td>2.2k</td><td>35.81</td><td>65.08</td><td>30.84</td><td>30.56</td><td>40.57</td></tr><tr><td rowspan="4">LLama-MoE (Top-2)</td><td>Top-2</td><td>2.0</td><td>1.7k</td><td>35.39</td><td>64.58</td><td>29.98</td><td>29.33</td><td>39.82</td></tr><tr><td>Top-2+IR</td><td>2.0</td><td>1.6k</td><td>35.92</td><td>65.11</td><td>29.98</td><td>29.03</td><td>40.01</td></tr><tr><td>Top-2 + FR</td><td>2.0</td><td>1.6k</td><td>35.90</td><td>64.35</td><td>31.08</td><td>29.80</td><td>40.28</td></tr><tr><td>Top-2 +FR+IR</td><td>2.0</td><td>1.5k</td><td>36.01</td><td>65.60</td><td>30.72</td><td>29.95</td><td>40.57</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Table 1: The performance of LLama2-7b and MoE models on MMLU, SuperGLUE, TruthfulQA and LogiQA. CF denotes the capacity factor defined in Eq. (3). Avg represents the average accuracy. The training speed is measured as the number of tokens that each GPU can process per second. All models were trained on OpenOrca except for LLama2-raw. Top- $k+$ FR and Top- $k+$ IR represents the top- $k$ router using Fill-in Rectification and Intra-GPU Rectification respectively. Top- $k+$ FR+IR combines both the Fill-in Rectification and the Intra-GPU Rectification.
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 3: The proportion of dropped/padding tokens varied by training steps. Both the MoE models of 8 experts and 32 experts are trained on OpenOrca based on LLama2-7b. The proportion of the dropped tokens is the same as that of the padding tokens.
|
| 153 |
+
|
| 154 |
+
6 using a cosine learning rate scheduler. Regarding the load-balance loss for the top- $k$ router, we set the weights to 1e-2, following Fedus et al. (2022).
|
| 155 |
+
|
| 156 |
+
Evaluation We evaluated our models on multiple benchmarks, including MMLU (Li et al., 2023), SuperGLUE (Wang et al., 2019), TruthfulQA (Lin et al., 2022) and LogiQA (Liu et al., 2020), which covers the evaluation in knowledge, natural language understanding, safety, and logical reasoning respectively. All evaluations were conducted in a zero-shot setting. Our evaluation metric was accuracy, and we utilized the lm-evaluation-harness (Gao et al., 2023) framework for conducting the evaluations.
|
| 157 |
+
|
| 158 |
+
# 5.2 Proportion of Dropped/Padding Tokens
|
| 159 |
+
|
| 160 |
+
In Figure 3, we show the proportion of dropped/padding tokens. Initially, the proportion of dropped tokens decreases and stabilizes after 2000 steps. This reduction is due to the load-balance loss proposed by Lepikhin et al. (2021). However, even with this loss, the proportion of dropped tokens remains high— $15\%$ for 32 experts. Additionally, the number of dropped tokens is significantly larger for 32 experts compared to 8 experts. This is expected, as balancing the routing for more experts is more challenging. With only one expert, there is no imbalance, but as the number of experts increases, the issue of dropped tokens becomes more pronounced.
|
| 161 |
+
|
| 162 |
+
# 5.3 Main Results
|
| 163 |
+
|
| 164 |
+
We trained both LLama2-7b and LLama-based MoE on OpenOrca and evaluated them on MMLU (knowledge), SuperGLUE (NLU), TruthfulQA (Safety) and LogiQA (Reasoning), the results of which are shown in Table 1. Comparing the performance of LLama2-raw (pretrained) and LLama2 (trained on OpenOrca), we observed that the LLama2 outperforms LLama2-raw substantially, which demonstrates the effectiveness of finetuning on openorca. To evaluate the effectiveness of our methods, we applied our Intra-GPU Rectification (IR) and Fill-in Rectification (FR) to both the top-1 router and top-2 router. These configurations are grouped as LLama-MoE (Top-1) and LLama-MoE (Top-2) in Table 1.
|
| 165 |
+
|
| 166 |
+
<table><tr><td>Train Router</td><td>Test Router</td><td>Test CF</td><td>Test Speed</td><td>MMLU</td><td>SuperGLUE</td><td>TruthfulQA</td><td>LogiQA</td><td>Avg</td></tr><tr><td rowspan="6">Top-1</td><td>Top-1</td><td></td><td>9.4k</td><td>33.05</td><td>64.34</td><td>29.49</td><td>28.11</td><td>38.74</td></tr><tr><td>Expert Choices</td><td></td><td>9.4k</td><td>30.27</td><td>64.50</td><td>27.66</td><td>28.87</td><td>37.82</td></tr><tr><td>Megablocks</td><td>1.0</td><td>-1</td><td>36.39</td><td>64.09</td><td>29.98</td><td>30.41</td><td>40.21</td></tr><tr><td>Top-1+IR</td><td></td><td>9.2k</td><td>36.21</td><td>64.64</td><td>29.86</td><td>29.18</td><td>39.97</td></tr><tr><td>Top-1+FR</td><td></td><td>8.9k</td><td>33.28</td><td>62.76</td><td>28.51</td><td>29.49</td><td>38.51</td></tr><tr><td>Top-1+FR+IR</td><td></td><td>8.6k</td><td>36.40</td><td>63.94</td><td>29.98</td><td>29.80</td><td>40.03</td></tr><tr><td rowspan="6">Top-2</td><td>Top-2</td><td></td><td>6.2k</td><td>35.39</td><td>64.58</td><td>29.98</td><td>29.33</td><td>39.82</td></tr><tr><td>Expert Choices</td><td></td><td>6.2k</td><td>32.80</td><td>61.76</td><td>26.80</td><td>28.57</td><td>37.48</td></tr><tr><td>Megablocks</td><td>2.0</td><td>-</td><td>35.95</td><td>64.59</td><td>30.47</td><td>30.26</td><td>40.31</td></tr><tr><td>Top-2+IR</td><td></td><td>6.0k</td><td>35.70</td><td>64.40</td><td>30.47</td><td>29.95</td><td>40.13</td></tr><tr><td>Top-2+FR</td><td></td><td>5.8k</td><td>35.96</td><td>65.37</td><td>30.35</td><td>30.26</td><td>40.48</td></tr><tr><td>Top-2+FR+IR</td><td></td><td>5.5k</td><td>36.14</td><td>65.16</td><td>30.35</td><td>31.49</td><td>40.78</td></tr></table>
|
| 167 |
+
|
| 168 |
+
Table 2: The performance of applying Intra-GPU Rectification and Fill-in Rectification only at inference. All models are trained with the vanilla top-1 router and top-2 router (referred to as the train router), but they were evaluated with Intra-GPU Rectification or Fill-in Rectification at inference (referred to as the test router). Test CF denotes the capacity factor set during inference. Test speed represents the number of tokens processed per second on each GPU during inference.
|
| 169 |
+
|
| 170 |
+
LLama-MoE (Top-1) We conducted 4 top-1 based MoE models (Top-1, Top-1+FR, Top-1+IR, Top-1+FR+IR). The performance of the vanilla top-1 router is subpar, and it is even inferior to the dense model (LLama2-FT) on both MMLU and TruthfulQA. But after incorporating our proposed Intra-GPU Rectification (Top-1+IR), the performance of the top-1 router are significantly improved on all benchmarks, especially on MMLU and LogiQA. This indicates that the dropped tokens have a substantial impact on model performance, and the Intra-GPU Rectification effectively handles these dropped tokens. Our Fill-in Rectification (Top-1+FR) also significantly improves the performance of the model on MMLU and LogiQA tasks. But it is worth noting that the performance of the model declined on the other two benchmarks. Therefore, it can be concluded that the primary issue with top-1 routing lies in dropped tokens rather than padding. Combing the Intra-GPU Rectification and Fill-in Rectification resulted in the best top-1-based router (Top-1+FR+IR), which outperforms the vanilla top-1 router by 1.83 (4.7%) in terms of the average accuracy across benchmarks.
|
| 171 |
+
|
| 172 |
+
LLama-MoE (Top-2) Top-2 based routers also encompass 4 routers (Top-2, Top-2-FR, Top-2-IR, Top-2-FR+IR). Both the Intra-GPU Rectification and Fill-in Rectification significantly enhance the performance of Top-2 router on at least 2 benchmarks, which demonstrate that our methods are effective for the top-2 router as well. Just as we observed with the top-1 routing results, combining
|
| 173 |
+
|
| 174 |
+
the Intra-GPU Rectification and the Fill-in Rectification in the top-2 router yielded the best performance on all benchmarks. Specifically, the Top-2+FR+IR outperformed the vanilla top-2 router by a margin of 0.75 (1.8%) in terms of the average accuracy across benchmarks.
|
| 175 |
+
|
| 176 |
+
Interestingly, we observed that the top-1 router outperformed the top-2 router in some benchmarks. For example, Top-1+FR+IR outperforms Top-1+FR+IR on both TruthfulQA and LogiQA, which raises concerns about potential overfitting in the top-2 router. Finally, it is important to note that that both the Intra-GPU Rectification and Fill-in Rectification do not alter the capacity of experts, hence they do not significantly influence the training speed.
|
| 177 |
+
|
| 178 |
+
# 5.4 Improve Top- $k$ Routing at Inference
|
| 179 |
+
|
| 180 |
+
In this experiment, we conducted a study to evaluate the effectiveness of applying Rectify-Routers at the inference stage of MoE models. The results are presented in Table 2. We found that both the Intra-GPU Rectification and Fill-in Rectification can improve the performance of top-1 and top-2 routers at inference, even they are not applied at training. Similar to the results in Table 1, combining Intra-GPU Rectification and Fill-in Rectification yielded better results than using either method alone. Moreover, both the Intra-GPU Rectification and Fill-in Rectification only slightly slows down $(< 10\%)$ the inference speed of top- $k$ routers. For top-2 based models, the application of Rectify-Routers solely during the inference stage proves to be sufficient, as
|
| 181 |
+
|
| 182 |
+
it demonstrates comparable performance to using them during both training and inference.
|
| 183 |
+
|
| 184 |
+
We also compared our methods with Expert Choices and Megablocks. Expert Choices addressed the issue of padding but still suffers from the problem of dropped tokens. According to the results presented in Table 2, incorporating expert choices during the model inference phase reduces the model's performance. This suggests that expert choices need to be trained to perform well, whereas our method can be applied directly during the inference phase of MoE trained with a Top-k router. Megablocks overcomes both the issues of dropped tokens and padding by switching from expert parallelism to model parallelism. Although the performance of Megablocks is comparable to our method, the communication complexity of Megablocks $(O(C_{g} \cdot W))$ is much higher than that of expert parallelism $(O(C_{g}))$ (Hwang et al., 2022), where $C_{g}$ denotes the token capacity per GPU and $W$ denotes the world size of communication. As Tutel (Hwang et al., 2022) suggests, it is better to combine model parallelism with expert parallelism for greater efficiency. Therefore, our method and Megablocks are complementary.
|
| 185 |
+
|
| 186 |
+
# 5.5 Capacity Factor Variation
|
| 187 |
+
|
| 188 |
+
In the previous experiments, we maintained a fixed capacity factor of $k$ for top- $k$ routing. However, there are instances where it may be beneficial to adjust the capacity factor for improved efficiency or performance. Therefore, in this section, we examine the performance of our Rectify-Routers under different capacity factors.
|
| 189 |
+
|
| 190 |
+
To minimize training costs, we train MoE models using the vanilla top- $k$ router with a capacity factor of $k$ , and evaluate models with different capacity factors. We only present the average accuracy of models in Table 3 and Table 4. The complete results are shown in Appendix D
|
| 191 |
+
|
| 192 |
+
Post Routing with Low Capacity From Table 3, we can see that decreasing the capacity factor improves the efficiency of both top-1 and top-2 based models. However, It also leads to noticeable decrease in the model performance on benchmarks. It is interesting that the top-2 router is more robust to the decrease in capacity factor. Specifically, reducing the capacity factor of the vanilla top-2 router
|
| 193 |
+
|
| 194 |
+
<table><tr><td>Train Router</td><td>Test Router</td><td>Test CF</td><td>Test Speed</td><td>Avg</td></tr><tr><td rowspan="6">Top-1</td><td>Top-1</td><td rowspan="2">1.0</td><td>9.4k</td><td>38.74</td></tr><tr><td>Top-1+IR</td><td>9.2k</td><td>39.97</td></tr><tr><td>Top-1</td><td rowspan="2">0.75</td><td>12.1k</td><td>37.83</td></tr><tr><td>Top-1+IR</td><td>9.9k</td><td>40.06</td></tr><tr><td>Top-1</td><td rowspan="2">0.5</td><td>16k</td><td>34.84</td></tr><tr><td>Top-1+IR</td><td>10.6k</td><td>40.40</td></tr><tr><td rowspan="6">Top-2</td><td>Top-2</td><td rowspan="2">2.0</td><td>6.2k</td><td>39.82</td></tr><tr><td>Top-2+IR</td><td>6.0k</td><td>40.13</td></tr><tr><td>Top-2</td><td rowspan="2">1.5</td><td>7.4k</td><td>39.50</td></tr><tr><td>Top-2+IR</td><td>6.6k</td><td>39.60</td></tr><tr><td>Top-2</td><td rowspan="2">1.0</td><td>8.9k</td><td>38.51</td></tr><tr><td>Top-2+IR</td><td>7.3k</td><td>40.01</td></tr></table>
|
| 195 |
+
|
| 196 |
+
Table 3: Performance of top- $k$ routers and their variants with low capacity factors $\left( { < = k}\right)$ .
|
| 197 |
+
|
| 198 |
+
from 2 to 1.5 only results in a slight performance decline (0.32).
|
| 199 |
+
|
| 200 |
+
In contrast to the vanilla top-1 or top-2 routers, the MoE models incorporating our Intra-GPU Rectification (Top-1+IR and Top-2+IR) are robust to the decrease of capacity factor. We even observed that the lower capacity factor leads to a better performance for both Top-1+IR and Top-2+IR, which suggests that the Intra-GPU Rectification acts as a form of regularization for the MoE models by constraining the choices made by the experts. The similar results are also observed in Zeng and Xiong (2023); Liu et al. (2022). By setting the capacity factor of Top-1+IR to 0.5 and that of Top-2-IR to 1.0, we observed that they are faster than the vanilla top-1 (1.13x) and top-2 routers (1.18x) respectively, while maintaining comparable or superior performance.
|
| 201 |
+
|
| 202 |
+
Fill-in Rectification with High Capacity Increasing the capacity factor of MoE models has been widely suggested in previous research studies (Fedus et al., 2022; Zoph et al., 2022). In alignment with these findings, we have also observed the benefits of increasing the capacity factor in terms of improving model performance, as demonstrated in Table 4. Notably, we have found that increasing the capacity factor of the top-1 router leads to a more substantial improvement in model performance than that of the top-2 router.
|
| 203 |
+
|
| 204 |
+
Our Fill-in Rectification introduces a more significant and consistent improvement with the increase in capacity factor. Top-1+FR and Top-2+FR consistently outperform Top-1 and Top-2, respectively, across various capacity factor settings.
|
| 205 |
+
|
| 206 |
+
<table><tr><td>Train Router</td><td>Test Router</td><td>Test CF</td><td>Test Speed</td><td>Avg</td></tr><tr><td rowspan="6">Top-1</td><td>Top-1</td><td rowspan="2">1.0</td><td>9.4k</td><td>38.74</td></tr><tr><td>Top-1+FR</td><td>8.9k</td><td>38.51</td></tr><tr><td>Top-1</td><td rowspan="2">1.25</td><td>8.6k</td><td>39.59</td></tr><tr><td>Top-1+FR</td><td>8.1k</td><td>40.10</td></tr><tr><td>Top-1</td><td rowspan="2">1.5</td><td>7.9k</td><td>39.86</td></tr><tr><td>Top-1+FR</td><td>7.3k</td><td>40.33</td></tr><tr><td rowspan="6">Top-2</td><td>Top-2</td><td rowspan="2">2.0</td><td>6.2k</td><td>39.82</td></tr><tr><td>Top-2+FR</td><td>5.8k</td><td>40.48</td></tr><tr><td>Top-2</td><td rowspan="2">2.5</td><td>5.4k</td><td>39.89</td></tr><tr><td>Top-2+FR</td><td>5.1k</td><td>40.51</td></tr><tr><td>Top-2</td><td rowspan="2">3.0</td><td>4.9k</td><td>40.03</td></tr><tr><td>Top-2+FR</td><td>4.5k</td><td>40.44</td></tr></table>
|
| 207 |
+
|
| 208 |
+
Table 4: Performance of top- $k$ routers and their variants with high capacity factors $\left( { > = k}\right)$ .
|
| 209 |
+
|
| 210 |
+
<table><tr><td>Router</td><td>Experts/GPU</td><td>Avg</td></tr><tr><td rowspan="3">Top-1+IR</td><td>1</td><td>39.97</td></tr><tr><td>2</td><td>39.95</td></tr><tr><td>4</td><td>39.83</td></tr><tr><td rowspan="3">Top-2+IR</td><td>1</td><td>40.13</td></tr><tr><td>2</td><td>40.01</td></tr><tr><td>4</td><td>40.17</td></tr></table>
|
| 211 |
+
|
| 212 |
+
# 5.6 Impact of Expert Distribution
|
| 213 |
+
|
| 214 |
+
Our Intra-GPU Rectification is a variant of the top-1 router, where tokens are assigned to the top-1 expert within GPU. When all experts are situated in the same GPU, the Intra-GPU Rectification essentially functions as the top-1 router. Therefore, the distribution of experts across GPUs can potentially influence the performance of the Intra-GPU Rectification. We conducted an investigation to explore this aspect and present the results in Table 5.
|
| 215 |
+
|
| 216 |
+
Interestingly, we found that increasing the number of experts per GPU did not yield significant improvements for either the top-1 router or the top-2 router. This suggests that the Intra-GPU Rectification demonstrates robustness to variations in the number of experts per GPU.
|
| 217 |
+
|
| 218 |
+
# 5.7 Impact of Load-Balance Loss
|
| 219 |
+
|
| 220 |
+
The Rectify-Routers proposed in this paper were designed to address the issues of dropped tokens and padding resulting from unbalanced routing.
|
| 221 |
+
|
| 222 |
+
Table 5: The performance of Intra-GPU Rectification evaluated under various settings of the number of experts per GPU.
|
| 223 |
+
|
| 224 |
+
<table><tr><td>Model</td><td>Aux-loss</td><td>Avg</td></tr><tr><td>Top-1</td><td>yes</td><td>38.74</td></tr><tr><td>Top-1</td><td>no</td><td>38.21</td></tr><tr><td>Top-1+FR+IR</td><td>yes</td><td>40.03</td></tr><tr><td>Top-1+FR+IR</td><td>no</td><td>39.98</td></tr></table>
|
| 225 |
+
|
| 226 |
+
Table 6: The performance comparison of using vs. not using load-balance loss. Aux-loss represents whether load-balance loss is used.
|
| 227 |
+
|
| 228 |
+
In our previous experiments, we utilized the loadbalanced loss introduced by Lepikhin et al. (2021) to enhance the balance of routing for all models, including those utilizing the Rectify-Routers. However, it is intriguing to investigate whether the Rectify-Routers remain effective in the absence of the load-balance loss. The results of this exploration are presented in Table 6.
|
| 229 |
+
|
| 230 |
+
Upon analyzing the results in Table 6, we observed a notable disparity in the performance of the vanilla top-1 router with and without the load-balance loss, particularly in the case of SuperGLUE and TruthfulQA. This discrepancy suggests that the load-balance loss plays a crucial role in improving the performance of the vanilla top-1 router. However, when considering our Rectify-Routers $(\mathrm{Top - 1 + FR + IR})$ , removing the load-balance loss does not result in a significant loss of performance. This finding indicates that our Rectify-Routers enhance the resilience of the top-1 router against the load-balance loss.
|
| 231 |
+
|
| 232 |
+
Other Experiments 1) We scale the number of experts from 8 to 32 in Appendix B; 2) We validate the importance of straight-through trick in Appendix C.1;
|
| 233 |
+
|
| 234 |
+
# 6 Conclusion
|
| 235 |
+
|
| 236 |
+
In this paper, we present the Rectify-Router, a method to tackle dropped tokens and padding in MoE models. By introducing the Intra-GPU Rectification and the Fill-in Rectification, we effectively handle the issues of dropped tokens and padding, respectively. Experimental results demonstrate the individual effectiveness of both techniques and the synergistic performance improvement when they are combined. Furthermore, our methods prove to be effective in diverse settings, including varying numbers of experts, different expert capacities, and even without the load-balance loss.
|
| 237 |
+
|
| 238 |
+
# 7 Limitation
|
| 239 |
+
|
| 240 |
+
1. The MoE models were initialized from a dense model (LLama2-7b). Due to the high costs, we have not validated our methods by training from scratch. But our experimental results in Table 1 demonstrate that finetuning the pre-trained LLama2-7b into an MoE model can bring significant performance improvements.
|
| 241 |
+
2. Our experiments were conducted using LLama2-7b, while other configurations, such as LLama2-70B, were not explored due to high costs. But we have validated the scalability of our method by increasing the number of experts, which is presented in Appendix B.
|
| 242 |
+
These limitations highlight potential areas for future research and expansion of our work.
|
| 243 |
+
|
| 244 |
+
# References
|
| 245 |
+
|
| 246 |
+
Alex Andonian, Quentin Anthony, Stella Biderman, Sid Black, Preetham Gali, Leo Gao, Eric Hallahan, Josh Levy-Kramer, Connor Leahy, Lucas Nestler, Kip Parker, Michael Pieler, Shivanshu Purohit, Tri Songz, Wang Phil, and Samuel Weinbach. 2021. GPT-NeoX: Large Scale Autoregressive Language Modeling in PyTorch.
|
| 247 |
+
Yoshua Bengio, Nicholas Léonard, and Aaron C. Courville. 2013. Estimating or propagating gradients through stochastic neurons for conditional computation. CoRR, abs/1308.3432.
|
| 248 |
+
Damai Dai, Chengqi Deng, Chenggang Zhao, R. X. Xu, Huazuo Gao, Deli Chen, Jiashi Li, Wangding Zeng, Xingkai Yu, Y. Wu, Zhenda Xie, Y. K. Li, Panpan Huang, Fuli Luo, Chong Ruan, Zhifang Sui, and Wenfeng Liang. 2024. Deepseekmoe: Towards ultimate expert specialization in mixture-of-experts language models. CoRR, abs/2401.06066.
|
| 249 |
+
Nan Du, Yanping Huang, Andrew M. Dai, Simon Tong, Dmitry Lepikhin, Yuanzhong Xu, Maxim Krikun, Yanqi Zhou, Adams Wei Yu, Orhan First, Barret Zoph, Liam Fedus, Maarten P. Bosma, Zongwei Zhou, Tao Wang, Yu Emma Wang, Kellie Webster, Marie Pellat, Kevin Robinson, Kathleen S. Meier-Hellstern, Toju Duke, Lucas Dixon, Kun Zhang, Quoc V. Le, Yonghui Wu, Zhifeng Chen, and Claire Cui. 2022. Glam: Efficient scaling of language models with mixture-of-experts. In International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, volume 162 of Proceedings of Machine Learning Research, pages 5547-5569. PMLR.
|
| 250 |
+
William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter
|
| 251 |
+
|
| 252 |
+
models with simple and efficient sparsity. J. Mach. Learn. Res., 23:120:1-120:39.
|
| 253 |
+
Trevor Gale, Deepak Narayanan, Cliff Young, and Matei Zaharia. 2022. Megablocks: Efficient sparse training with mixture-of-experts. CoRR, abs/2211.15841.
|
| 254 |
+
Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. 2023. A framework for few-shot language model evaluation.
|
| 255 |
+
Changho Hwang, Wei Cui, Yifan Xiong, Ziyue Yang, Ze Liu, Han Hu, Zilong Wang, Rafael Salas, Jithin Jose, Prabhat Ram, Joe Chau, Peng Cheng, Fan Yang, Mao Yang, and Yongqiang Xiong. 2022. Tutel: Adaptive mixture-of-experts at scale. CoRR, abs/2206.03382.
|
| 256 |
+
Albert Q. Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de Las Casas, Emma Bou Hanna, Florian Bressand, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Sandeep Subramanian, Sophia Yang, Szymon Antoniak, Teven Le Scao, Théophile Gervet, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2024. Mixtral of experts. CoRR, abs/2401.04088.
|
| 257 |
+
Diederik P. Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings.
|
| 258 |
+
Yeskendir Koishekenov, Vassilina Nikoulina, and Alexandre Berard. 2022. Memory-efficient NLLB-200: language-specific expert pruning of a massively multilingual machine translation model. CoRR, abs/2212.09811.
|
| 259 |
+
Aran Komatsuzaki, Joan Puigcerver, James Lee-Thorp, Carlos Riquelme Ruiz, Basil Mustafa, Joshua Ainslie, Yi Tay, Mostafa Dehghani, and Neil Houlsby. 2023. Sparse upcycling: Training mixture-of-experts from dense checkpoints. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
|
| 260 |
+
Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan First, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. 2021. Gshard: Scaling giant models with conditional computation and automatic sharding. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net.
|
| 261 |
+
|
| 262 |
+
Mike Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal, and Luke Zettlemoyer. 2021. BASE layers: Simplifying training of large, sparse models. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pages 6265-6274. PMLR.
|
| 263 |
+
Haonan Li, Yixuan Zhang, Fajri Koto, Yifei Yang, Hai Zhao, Yeyun Gong, Nan Duan, and Timothy Baldwin. 2023. CMMLU: measuring massive multitask language understanding in chinese. CoRR, abs/2306.09212.
|
| 264 |
+
Wing Lian, Bleys Goodson, Eugene Pentland, Austin Cook, Chanvichet Vong, and "Teknium". 2023. Openorca: An open dataset of gpt augmented flan reasoning traces. https://https://huggingface.co/Open-Orca/OpenOrca.
|
| 265 |
+
Stephanie Lin, Jacob Hilton, and Owain Evans. 2022. Truthfulqa: Measuring how models mimic human falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2022, Dublin, Ireland, May 22-27, 2022, pages 3214-3252. Association for Computational Linguistics.
|
| 266 |
+
Jian Liu, Leyang Cui, Hanmeng Liu, Dandan Huang, Yile Wang, and Yue Zhang. 2020. Logiqa: A challenge dataset for machine reading comprehension with logical reasoning. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI 2020, pages 3622-3628. ijcai.org.
|
| 267 |
+
Rui Liu, Young Jin Kim, Alexandre Muzio, and Hany Hassan. 2022. Gating dropout: Communication-efficient regularization for sparsely activated transformers. In International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, volume 162 of Proceedings of Machine Learning Research, pages 13782-13792. PMLR.
|
| 268 |
+
Shayne Longpre, Le Hou, Tu Vu, Albert Webson, Hyung Won Chung, Yi Tay, Denny Zhou, Quoc V. Le, Barret Zoph, Jason Wei, and Adam Roberts. 2023. The flan collection: Designing data and methods for effective instruction tuning.
|
| 269 |
+
Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. 2023. Orca: Progressive learning from complex explanation traces of GPT-4. CoRR, abs/2306.02707.
|
| 270 |
+
Basil Mustafa, Carlos Riquelme, Joan Puigcerver, Rodolphe Jenatton, and Neil Houlsby. 2022. Multimodal contrastive learning with limoe: the language-image mixture of experts. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022.
|
| 271 |
+
|
| 272 |
+
OpenAI, , Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, Red Avila, Igor Babuschkin, Suchir Balaji, Valerie Balcom, Paul Baltescu, Haiming Bao, Mo Bavarian, Jeff Belgium, Irwan Bello, Jake Berdine, Gabriel Bernadett-Shapiro, Christopher Berner, Lenny Bogdonoff, Oleg Boiko, Madelaine Boyd, Anna-Luisa Brakman, Greg Brockman, Tim Brooks, Miles Brundage, Kevin Button, Trevor Cai, Rosie Campbell, Andrew Cann, Brittany Carey, Chelsea Carlson, Rory Carmichael, Brooke Chan, Che Chang, Fotis Chantzis, Derek Chen, Sully Chen, Ruby Chen, Jason Chen, Mark Chen, Ben Chess, Chester Cho, Casey Chu, Hyung Won Chung, Dave Cummings, Jeremiah Currier, Yunxing Dai, Cory Decareaux, Thomas Degry, Noah Deutsch, Damien Deville, Arka Dhar, David Dohan, Steve Dowling, Sheila Dunning, Adrien Ecoffet, Atty Eleti, Tyna Eloundou, David Farhi, Liam Fedus, Niko Felix, Simón Posada Fishman, Juston Forte, Isabella Fulford, Leo Gao, Elie Georges, Christian Gibson, Vik Goel, Tarun Gogineni, Gabriel Goh, Rapha Gontijo-Lopes, Jonathan Gordon, Morgan Grafstein, Scott Gray, Ryan Greene, Joshua Gross, Shixiang Shane Gu, Yufei Guo, Chris Hallacy, Jesse Han, Jeff Harris, Yuchen He, Mike Heaton, Johannes Heidecke, Chris Hesse, Alan Hickey, Wade Hickey, Peter Hoeschele, Brandon Houghton, Kenny Hsu, Shengli Hu, Xin Hu, Joost Huizinga, Shantanu Jain, Shawn Jain, Joanne Jang, Angela Jiang, Roger Jiang, Haozhun Jin, Denny Jin, Shino Jomoto, Billie Jonn, Heewoo Jun, Tomer Kaftan, Lukasz Kaiser, Ali Kamali, Ingmar Kanitscheider, Nitish Shirish Keskar, Tabarak Khan, Logan Kilpatrick, Jong Wook Kim, Christina Kim, Yongjik Kim, Hendrik Kirchner, Jamie Kiros, Matt Knight, Daniel Kokotajlo, Lukasz Kondraciuk, Andrew Kondrich, Aris Konstantinidis, Kyle Kosic, Gretchen Krueger, Vishal Kuo, Michael Lampe, Ikai Lan, Teddy Lee, Jan Leike, Jade Leung, Daniel Levy, Chak Ming Li. Rachel Lim Molly Lin Stephanie Lin Mateusz Litwin Theresa Lopez Ryan Lowe Patricia Lue. Anna Makanju Kim Malfacini Sam Manning Todor Markov Yaniv Markovski Bianca Martin Katie Mayer. Andrew Mayne Bob McGrew Scott Mayer McKinney Christine McLeavey Paul McMillan. Jake McNeil David Medina Aalok Mehta Jacob Menick Luke Metz. Andrey Mishchenko Pamela Mishkin Vinnie Monaco Evan Morikawa Daniel Mossing Tong Mu Mira Murati Oleg Murk David Mély. Ashvin Nair. Reiichiro Nakano Rajeev Nayak. Arvind Neelakantan Richard Ngo. Hyeonwoo Noh Long Ouyang Cullen O'Keefe. Jakub Pachocki Alex Paino Joe Palermo Ashley Pantuliano Giambattista Parascandolo Joel Parish. Emy Parparita Alex Passos. Mikhail Pavlov. Andrew Peng Adam Perelman Filipe de Avila Belbute Peres Michael Petrov. Henrique Ponde de Oliveira Pinto Michael Pokorny. Michelle Pokrass. Vitchyr Pong. Tolly Powell. Alethea Power. Boris Power. Elizabeth Proehl. Raul Puri. Alec Radford. Jack Rae. Aditya Ramesh. Cameron Raymond. Francis Real. Kendra Rimbach
|
| 273 |
+
|
| 274 |
+
Carl Ross, Bob Rotsted, Henri Roussez, Nick Ryder, Mario Saltarelli, Ted Sanders, Shibani Santurkar, Girish Sastry, Heather Schmidt, David Schnurr, John Schulman, Daniel Selsam, Kyla Sheppard, Toki Sherbakov, Jessica Shieh, Sarah Shoker, Pranav Shyam, Szymon Sidor, Eric Sigler, Maddie Simens, Jordan Sitkin, Katarina Slama, Ian Sohl, Benjamin Sokolowsky, Yang Song, Natalie Staudacher, Felipe Petroski Such, Natalie Summers, Ilya Sutskever, Jie Tang, Nikolas Tezak, Madeleine Thompson, Phil Tillet, Amin Tootoonchian, Elizabeth Tseng, Preston Tuggle, Nick Turley, Jerry Tworek, Juan Felipe Cerón Uribe, Andrea Vallone, Arun Vijayvergiya, Chelsea Voss, Carroll Wainwright, Justin Jay Wang, Alvin Wang, Ben Wang, Jonathan Ward, Jason Wei, CJ Weinmann, Akila Welihinda, Peter Welinder, Jiayi Weng, Lilian Weng, Matt Wiethoff, Dave Willner, Clemens Winter, Samuel Wolrich, Hannah Wong, Lauren Workman, Sherwin Wu, Jeff Wu, Michael Wu, Kai Xiao, Tao Xu, Sarah Yoo, Kevin Yu, Qiming Yuan, Wojciech Zaremba, Rowan Zellers, Chong Zhang, Marvin Zhang, Shengjia Zhao, Tianhao Zheng, Juntang Zhuang, William Zhuk, and Barret Zoph. 2023. Gpt-4 technical report.
|
| 275 |
+
|
| 276 |
+
Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. 2019. *fairoseq: A fast, extensible toolkit for sequence modeling*. In *Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies*, NAACL-HLT 2019, Minneapolis, MN, USA, June 2-7, 2019, Demonstrations, pages 48-53. Association for Computational Linguistics.
|
| 277 |
+
|
| 278 |
+
Joan Puigcerver, Carlos Riquelme, Basil Mustafa, and Neil Houlsby. 2023. From sparse to soft mixtures of experts. CoRR, abs/2308.00951.
|
| 279 |
+
|
| 280 |
+
Samyam Rajbhandari, Conglong Li, Zhewei Yao, Minjia Zhang, Reza Yazdani Aminabadi, Ammar Ahmad Awan, Jeff Rasley, and Yuxiong He. 2022. Deepspeed-moe: Advancing mixture-of-experts inference and training to power next-generation AI scale. In International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, volume 162 of Proceedings of Machine Learning Research, pages 18332-18346. PMLR.
|
| 281 |
+
|
| 282 |
+
Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc V. Le, Geoffrey E. Hinton, and Jeff Dean. 2017. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net.
|
| 283 |
+
|
| 284 |
+
Sheng Shen, Le Hou, Yanqi Zhou, Nan Du, Shayne Longpre, Jason Wei, Hyung Won Chung, Barret Zoph, William Fedus, Xinyun Chen, Tu Vu, Yuexin Wu, Wuyang Chen, Albert Webson, Yunxuan Li, Vincent Zhao, Hongkun Yu, Kurt Keutzer, Trevor Darrell, and Denny Zhou. 2023. Mixture-of-experts meets
|
| 285 |
+
|
| 286 |
+
instruction tuning:a winning combination for large language models.
|
| 287 |
+
|
| 288 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton-Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open foundation and finetuned chat models. CoRR, abs/2307.09288.
|
| 289 |
+
|
| 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. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 3261-3275.
|
| 291 |
+
|
| 292 |
+
Ping Yu, Mikel Artetxe, Myle Ott, Sam Shleifer, Hongyu Gong, Ves Stoyanov, and Xian Li. 2022. Efficient language modeling with sparse all-mlp. CoRR, abs/2203.06850.
|
| 293 |
+
|
| 294 |
+
Zhiyuan Zeng and Deyi Xiong. 2023. Scomoe: Efficient mixtures of experts with structured communication. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
|
| 295 |
+
|
| 296 |
+
Yanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du, Yanping Huang, Vincent Zhao, Andrew M. Dai, Zhifeng Chen, Quoc V. Le, and James Laudon. 2022. Mixture-of-experts with expert choice routing. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022.
|
| 297 |
+
|
| 298 |
+
Barret Zoph, Irwan Bello, Sameer Kumar, Nan Du, Yanping Huang, Jeff Dean, Noam Shazeer, and William Fedus. 2022. St-moe: Designing stable and transferable sparse expert models.
|
| 299 |
+
|
| 300 |
+
Simiao Zuo, Xiaodong Liu, Jian Jiao, Young Jin Kim, Hany Hassan, Ruofei Zhang, Jianfeng Gao, and Tuo Zhao. 2022. Taming sparsely activated transformer
|
| 301 |
+
|
| 302 |
+
# A Gradient Issues in Fill-in Rectification
|
| 303 |
+
|
| 304 |
+
There is a potential issue in the Fill-in Rectification, which stems from the implementation of the top- $k$ routing. According to Eq. (1), the routing scores of top- $k$ routing are normalized on the selected experts $\mathbb{R}_i$ , rather than considering all expert choices. Several implementations like deepspeed-moe (Rajbhandari et al., 2022) and fairseq-moe (Ott et al., 2019) first normalize the routing scores on all experts and then re-normalize the scores specifically for the selected experts:
|
| 305 |
+
|
| 306 |
+
$$
|
| 307 |
+
\begin{array}{l} g _ {i j} = \frac {e ^ {a _ {i j}}}{\sum_ {j} ^ {m} e ^ {a _ {i j}}} \tag {4} \\ o _ {i} = \sum_ {j \in \mathbb {R} _ {i}} \frac {g _ {i j}}{\sum_ {j} g _ {i j}} E _ {j} (x _ {i}), \\ \end{array}
|
| 308 |
+
$$
|
| 309 |
+
|
| 310 |
+
where $g_{ij}$ represents the routing scores that are initially normalized across all experts and then further normalized specifically on the selected experts $(\mathbb{R}_i)$ . However, their implementation is equivalent to directly normalizing the routing scores on $\mathbb{R}_i$ .
|
| 311 |
+
|
| 312 |
+
There are two potential issues of normalizing routing scores on $\mathbb{R}_i$ : 1) the routing scores of activated experts can not influence those of inactivated experts. For example, the increase of $a_{ij}(j \in \mathbb{R}_i)$ does not lead to the decrease of $a_{il}(l \notin \mathbb{R}_i)$ . 2) In the case of top-2 routing, if the first routing of $x_i$ is successful while the second routing fails due to the expert overflow, the gradients of all routing scores of $x_i$ will be zero ( $\frac{\partial L}{\partial a_{ij}} = 0$ ). This is because that there is only one available expert choice for $x_i$ ( $|\mathbb{R}_i| = 1$ ). Normalizing on $|\mathbb{R}_i|$ would always yield a value of 1, regardless of the actual value of $a_{ij}$ , leading to invalid gradients.
|
| 313 |
+
|
| 314 |
+
This problem is more prominent for the Fill-in Rectification, since it brings more dropped tokens, i.e., more unsuccessful routing. To address this problem, we utilize the straight-through trick to stop the gradient of normalization item in Eq. (4), which ensures that the gradient of routing scores remain valid:
|
| 315 |
+
|
| 316 |
+
$$
|
| 317 |
+
\frac {\partial L}{\partial a _ {i j}} \equiv \frac {\partial L}{\sum_ {j} g _ {i j} \partial \frac {g _ {i j}}{\sum_ {j} g _ {i j}}} \frac {\partial g _ {i j}}{\partial a _ {i j}} \tag {5}
|
| 318 |
+
$$
|
| 319 |
+
|
| 320 |
+
No modifications have been made to the forward stage. But at the backward stage, the gradient of the routing score $\frac{\partial L}{\partial g_{ij}}$ is calculated as $\frac{\partial L}{\sum_{j} g_{ij} \partial \frac{g_{ij}}{\sum_{j} g_{ij}}}$ rather than 0, where the normalization item $\sum_{j} g_{ij}$ is taken as a constant number without gradient.
|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
(a) The performance of 8-experts and 32-experts MoEs on MMLU
|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
(b) The performance of 8-experts and 32-experts MoEs on SuperGLUE
|
| 327 |
+
|
| 328 |
+

|
| 329 |
+
(c) The performance of 8-experts and 32-experts MoEs on TruthfulQA
|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
(d) The performance of 8-experts and 32-experts MoEs on LogiQA
|
| 333 |
+
Figure 4: The performance of 8-experts and 32-experts MoEs on MMLU, SuperGLUE, TruthfulQA and LogiQA.
|
| 334 |
+
|
| 335 |
+
# B Scaling to 32 Experts
|
| 336 |
+
|
| 337 |
+
In this experiment, we aimed to investigate the effectiveness of our methods when applied to a larger number of experts. We expanded the number of experts from 8 to 32. To reduce training costs, we only applied the Rectify-Routers (Intra-GPU Rectification and Fill-in Rectification) during evaluation. The results of this experiment are presented in Figure 4.
|
| 338 |
+
|
| 339 |
+
Interestingly, our findings indicate that increasing the number of experts from 8 to 32 does not necessarily result in improved model performance. In fact, in certain benchmarks, such as SuperGLUE, the performance of the model even declined. This observation aligns with previous research (Komatsuzaki et al., 2023), suggesting that increasing the number of experts can potentially be detrimental. One plausible explanation for this phenomenon is
|
| 340 |
+
|
| 341 |
+
that a larger number of experts may lead to overfitting of the model. We believe that increasing the number of experts is helpful with enough training data. Notably, scaling from 8 to 32 experts only yielded notable benefits in the case of TruthfulQA.
|
| 342 |
+
|
| 343 |
+
Despite the lack of consistent improvement when increasing the number of experts, our methods (Intra-GPU Rectification and Fill-in Rectification) still demonstrated significant enhancements compared to the vanilla top- $k$ routing approach in the context of 32 experts. For instance, while the vanilla top-1 and top-2 routers with 32 experts underperformed those with 8 experts on MMLU, our methods (Top-2+FR+IR) enabled the 32-expert models to outperform their 8-expert counterparts.
|
| 344 |
+
|
| 345 |
+
<table><tr><td>Model</td><td>ST</td><td>MMLU</td><td colspan="2">SuperGLUETruthfulQA</td><td>LogiQA</td><td>Avg</td></tr><tr><td>Top-1+FR</td><td>Yes</td><td>34.66</td><td>63.97</td><td>28.51</td><td>29.18</td><td>39.08</td></tr><tr><td>Top-1+FR</td><td>No</td><td>33.96</td><td>62.75</td><td>29.25</td><td>28.57</td><td>38.63</td></tr><tr><td>Top-2</td><td>Yes</td><td>35.39</td><td>64.58</td><td>29.98</td><td>29.33</td><td>39.82</td></tr><tr><td>Top-2</td><td>No</td><td>35.86</td><td>64.73</td><td>29.98</td><td>28.26</td><td>39.70</td></tr></table>
|
| 346 |
+
|
| 347 |
+
Table 7: The performance of Top-1+FR and Top-2 router with and without straight-through trick. The second column (ST) denotes whether the straight-through trick is used.
|
| 348 |
+
|
| 349 |
+
# C Analysis
|
| 350 |
+
|
| 351 |
+
# C.1 Impact of Straight-through Trick
|
| 352 |
+
|
| 353 |
+
In Appendix A, we propose a solution to address the gradient issue associated with the Fill-in Rectification by utilizing the straight-through trick. To evaluate the effectiveness of this technique, we conducted an experiment comparing the performance of the Fill-in Rectification with versus without the straight-through trick. The results of this comparison are presented in Table 7.
|
| 354 |
+
|
| 355 |
+
Our findings indicate that the straight-through trick proves to be beneficial in improving the performance of the Fill-in Rectification (Top-1+FR). This suggests that the straight-through trick is necessary for the Fill-in Rectification to achieve optimal results. However, the application of the straight-through trick does not yield a significant improvement in the performance of the top-2 router. This can be attributed to the fact that the proportion of unsuccessful routing is relatively small $(5\%)$ for the top-2 router, while it is considerably large $(50\%)$ when employing the Fill-in Rectification.
|
| 356 |
+
|
| 357 |
+
# D Complete Results of Capacity Factor Variation
|
| 358 |
+
|
| 359 |
+
In Section 5.5, we have discussed the performance of MoE models across various capacity factor settings. However, it is worth noting that only the average accuracy are reported in Table 3 and Table 4. For a comprehensive overview, we present the complete results in Table 8 and Table 9, which encompass the evaluation outcomes across all benchmarks.
|
| 360 |
+
|
| 361 |
+
<table><tr><td>Train Router</td><td>Test Router</td><td>Test CF</td><td>Test Speed</td><td>MMLU</td><td>SuperGLUE</td><td>TruthfulQA</td><td>LogiQA</td><td>Avg</td></tr><tr><td rowspan="2">Top-1</td><td>Top-1</td><td rowspan="2">1.0</td><td>9.4k</td><td>33.05</td><td>64.34</td><td>29.49</td><td>28.11</td><td>38.74</td></tr><tr><td>Top-1+IR</td><td>9.2k</td><td>36.21</td><td>64.64</td><td>29.86</td><td>29.18</td><td>39.97</td></tr><tr><td rowspan="2">Top-1</td><td>Top-1</td><td rowspan="2">0.75</td><td>12.1k</td><td>30.88</td><td>62.68</td><td>29.37</td><td>28.41</td><td>37.83</td></tr><tr><td>Top-1+IR</td><td>9.9k</td><td>36.12</td><td>64.61</td><td>29.74</td><td>29.80</td><td>40.06</td></tr><tr><td rowspan="2">Top-1</td><td>Top-1</td><td rowspan="2">0.5</td><td>16k</td><td>26.43</td><td>59.71</td><td>26.68</td><td>26.57</td><td>34.84</td></tr><tr><td>Top-1+IR</td><td>10.6k</td><td>36.32</td><td>65.23</td><td>29.98</td><td>30.10</td><td>40.40</td></tr><tr><td rowspan="2">Top-2</td><td>Top-2</td><td rowspan="2">2.0</td><td>6.2k</td><td>35.39</td><td>64.58</td><td>29.98</td><td>29.33</td><td>39.82</td></tr><tr><td>Top-2+IR</td><td>6.0k</td><td>35.70</td><td>64.40</td><td>30.47</td><td>29.95</td><td>40.13</td></tr><tr><td rowspan="2">Top-2</td><td>Top-2</td><td rowspan="2">1.5</td><td>7.4k</td><td>35.22</td><td>65.00</td><td>30.47</td><td>27.34</td><td>39.50</td></tr><tr><td>Top-2+IR</td><td>6.6k</td><td>35.71</td><td>64.47</td><td>29.98</td><td>28.26</td><td>39.60</td></tr><tr><td rowspan="2">Top-2</td><td>Top-2</td><td rowspan="2">1.0</td><td>8.9k</td><td>33.28</td><td>62.76</td><td>28.51</td><td>29.49</td><td>38.51</td></tr><tr><td>Top-2+IR</td><td>7.3k</td><td>35.93</td><td>64.40</td><td>29.62</td><td>30.10</td><td>40.01</td></tr></table>
|
| 362 |
+
|
| 363 |
+
Table 8: Performance of top- $k$ routers and their variants with low capacity factors $\left( { < = k}\right)$ . The difference between this table and Table 3 is that the evaluation results on all benchmarks are reported in this table, but only the average accuracy is reported in Table 3
|
| 364 |
+
|
| 365 |
+
<table><tr><td>Train Router</td><td>Test Router</td><td>Test CF</td><td>Test Speed</td><td>MMLU</td><td>SuperGLUE</td><td>TruthfulQA</td><td>LogiQA</td><td>Avg</td></tr><tr><td rowspan="6">Top-1</td><td>Top-1</td><td rowspan="2">1.0</td><td>9.4k</td><td>33.05</td><td>64.34</td><td>29.49</td><td>28.11</td><td>38.74</td></tr><tr><td>Top-1+FR</td><td>8.9k</td><td>33.28</td><td>62.76</td><td>28.51</td><td>29.49</td><td>38.51</td></tr><tr><td>Top-1</td><td rowspan="2">1.25</td><td>8.6k</td><td>34.51</td><td>62.94</td><td>29.13</td><td>31.79</td><td>39.59</td></tr><tr><td>Top-1+FR</td><td>8.1k</td><td>35.01</td><td>65.22</td><td>30.23</td><td>29.95</td><td>40.10</td></tr><tr><td>Top-1</td><td rowspan="2">1.5</td><td>7.9k</td><td>36.40</td><td>64.21</td><td>28.88</td><td>29.95</td><td>39.86</td></tr><tr><td>Top-1+FR</td><td>7.3k</td><td>36.10</td><td>64.89</td><td>30.23</td><td>30.10</td><td>40.33</td></tr><tr><td rowspan="6">Top-2</td><td>Top-2</td><td rowspan="2">2.0</td><td>6.2k</td><td>35.39</td><td>64.58</td><td>29.98</td><td>29.33</td><td>39.82</td></tr><tr><td>Top-2+FR</td><td>5.8k</td><td>35.96</td><td>65.37</td><td>30.35</td><td>30.26</td><td>40.48</td></tr><tr><td>Top-2</td><td rowspan="2">2.5</td><td>5.4k</td><td>35.96</td><td>64.53</td><td>30.23</td><td>28.87</td><td>39.89</td></tr><tr><td>Top-2+FR</td><td>5.1k</td><td>36.00</td><td>64.92</td><td>30.59</td><td>30.56</td><td>40.51</td></tr><tr><td>Top-2</td><td rowspan="2">3.0</td><td>4.9k</td><td>35.72</td><td>64.65</td><td>30.59</td><td>29.18</td><td>40.03</td></tr><tr><td>Top-2+FR</td><td>4.5k</td><td>35.98</td><td>65.31</td><td>30.23</td><td>30.26</td><td>40.44</td></tr></table>
|
| 366 |
+
|
| 367 |
+
Table 9: Performance of top- $k$ routers and their variants with high capacity factors $\left( { > = k}\right)$ . The difference between this table and Table 4 is that the evaluation results on all benchmarks are reported in this table, but only the average accuracy is reported in Table 4
|
2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f033e8df73a456b89ea1c7ca6e47e66c9756151dec4a2b6f80ddf9ff465cf5d5
|
| 3 |
+
size 659833
|
2024/Turn Waste into Worth_ Rectifying Top-k Router of MoE/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/75d52286-5b60-4f2d-833b-11b4a49fb28d_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/75d52286-5b60-4f2d-833b-11b4a49fb28d_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/75d52286-5b60-4f2d-833b-11b4a49fb28d_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f12c4705263676fb230a23fe7f688e09d7c7e22702d6d40a86a8edd90da33a50
|
| 3 |
+
size 2307010
|
2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/full.md
ADDED
|
@@ -0,0 +1,632 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Twists, Humps, and Pebbles: Multilingual Speech Recognition Models Exhibit Gender Performance Gaps
|
| 2 |
+
|
| 3 |
+
Giuseppe Attanasio $^{\text{♥}}$ , Beatrice Savoldi $^{\text{♣}}$ , Dennis Fucci $^{\text{◇}\text{♣}}$ , Dirk Hovy $^{\text{♣}}$
|
| 4 |
+
|
| 5 |
+
$\Leftrightarrow$ Instituto de Telecomunicações, Lisbon, Portugal
|
| 6 |
+
|
| 7 |
+
$\diamond$ University of Trento, Trento, Italy
|
| 8 |
+
|
| 9 |
+
Fondazione Bruno Kessler, Trento, Italy
|
| 10 |
+
|
| 11 |
+
$\clubsuit$ Bocconi University, Milan, Italy
|
| 12 |
+
|
| 13 |
+
giuseppe.attenasio@lx.it.pt
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Current automatic speech recognition (ASR) models are designed to be used across many languages and tasks without substantial changes. However, this broad language coverage hides performance gaps within languages, for example, across genders. Our study systematically evaluates the performance of two widely used multilingual ASR models on three datasets, encompassing 19 languages from eight language families and two speaking conditions. Our findings reveal clear gender disparities, with the advantaged group varying across languages and models. Surprisingly, those gaps are not explained by acoustic or lexical properties. However, probing internal model states reveals a correlation with gendered performance gap. That is, the easier it is to distinguish speaker gender in a language using probes, the more the gap reduces, favoring female speakers. Our results show that gender disparities persist even in state-of-the-art models. Our findings have implications for the improvement of multilingual ASR systems, underscoring the importance of accessibility to training data and nuanced evaluation to predict and mitigate gender gaps. We release all code and artifacts at https://github.com/g8a9/multilingual-asr-gender-gap.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
A new class of multi-task, multilingual neural networks (Radford et al., 2022; Communication et al., 2023; Chu et al., 2023) has recently pushed the boundaries of several speech-related tasks, including automatic speech recognition (ASR). As these models offer support to an increasing number of languages at no cost, they have found widespread adoption and have been integrated into applications for the general public, such as real-time voice tran
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Study overview. We transcribe three speech datasets across 19 languages and compute gender performance gaps. Next, we investigate the models for possible causes of these gaps.
|
| 25 |
+
|
| 26 |
+
scription. $^{1}$ However, while the user base expands, one question has yet to be answered: will usability be the same for everyone? In this paper, we seek an answer to this question by studying how systems understand the voices of different genders and across multiple languages. These two axes of analysis are motivated by complementary interests.
|
| 27 |
+
|
| 28 |
+
On the one hand, voice and language production are among the strongest identity traits. They vary across individuals, sociodemographic groups (Labov, 1964; Wolfram, 2004; Alim, 2004), and, crucially, across genders. Gendered differences in the voice—rooted in physiological factors linked to biological sex (e.g., vocal tract length), as well as in sociocultural ones (e.g., prescribed registers) (Zimman, 2017, 2020)—have been extensively studied in sociolinguistics (e.g., Coleman, 1976; Busby and Plant, 1995; Hillenbrand and Clark, 2009). Also,
|
| 29 |
+
|
| 30 |
+
empirical studies have shown that gender affects the performance of traditional ASR systems in English (Garnerin et al., 2019). On the other hand, voice and speech can change drastically across languages, cultures, and in function of gender. For example, males' and females' pitch—a measure of the highness of the voice—is much closer in Japanese- than in English-speaking people (Loveday, 1981; Yuasa, 2008).
|
| 31 |
+
|
| 32 |
+
Despite a large literature on gender, voice, and ASR, to our knowledge, no studies have tested whether multi-task, multilingual ASR models serve genders to a comparable level across languages. Arguably, overlooking potential disparities can result in unequal service quality for already socially disadvantaged individuals (Mengesha et al., 2021; Tatman, 2017).
|
| 33 |
+
|
| 34 |
+
To fill this gap, we systematically study gendered performance gaps in massively multilingual ASR models. We set out to answer two research questions. (Q1) Do multi-task, multilingual ASR models perform equally well across speakers identifying as women, men, or neither of the two? If so, (Q2), can we relate gender gaps to acoustic and lexical variation in data or model internal states?
|
| 35 |
+
|
| 36 |
+
To answer Q1, we evaluate two state-of-the-art multilingual open-weight ASR models on three datasets, covering 19 languages and two speech conditions (i.e. read and spontaneous). The results of our extensive evaluation show that models systematically exhibit gender performance gaps. However, whether models favor male or female speakers depends on the dataset and language. Results on one dataset also highlight subpar performance for speakers who do not identify with either gender compared to males.
|
| 37 |
+
|
| 38 |
+
While studying acoustic and lexical phenomena in test data (Q2), we found no significant correlations of specific features with performance gaps between male and female speakers. This objective finding underscores the complexity of the issue and the need for further research. Instead, interpretability analyses suggest that when presented with speech from men and women, models build different internal representations that can serve as a proxy for gender disparities.
|
| 39 |
+
|
| 40 |
+
Contributions. We conduct the first extensive evaluation of two widely used multilingual ASR models for gender performance differences. We document significant gender gaps by inspecting model internal states. We release code, data, and
|
| 41 |
+
|
| 42 |
+
all artifacts we produce for future research.
|
| 43 |
+
|
| 44 |
+
Bias Statement. When using gender as a variable, we rely on speakers' declared identity (see §8). We evaluate whether speech from individuals identifying as female, male, or neither of the two is processed equally well by multilingual ASR models. We measure disparities of minority groups versus the socially advantaged group, i.e., men. Performance parity is the ideal outcome. We define a system to be biased if it risks further contributing allocative (i.e., quality of service, technology less accessible) and representational harms impacting the minority groups, e.g., feeding into stereotypes about the inadequacy of women and speech technology or "shrill," "incorrect" voice (Tallon, 2019).
|
| 45 |
+
|
| 46 |
+
# 2 Background
|
| 47 |
+
|
| 48 |
+
Multi-task Multilingual Speech Models. Contemporary speech recognition systems process audio and text separately and use common cross-modal interactions—e.g., OpenAI's Whisper (Radford et al., 2022) is loosely inspired by the standard Transformer (Vaswani et al., 2017). Crucially, multitasking and multilinguality come at virtually no cost for the user. With Whisper, for example, special "task" and "language" tokens can be prepended to the decoder input to change its functions. This strategy allows multi-tasking and multilinguality without architectural changes or fine-tuning (see Figure 1, top-right, in Radford et al. (2022)). Similarly, Meta's SeamlessM4T (Communication et al., 2023) uses a speech encoder for audio and an encoder-decoder transformer for text (Costa-jussa et al., 2022, NLLB).
|
| 49 |
+
|
| 50 |
+
Gender and Speech (Technologies). Gendered aspects of the voice are one of the most salient individual traits (Kreiman and Sirdis, 2011; Azul, 2015; Zimman, 2021) and have long been studied in linguistics (Zimman, 2020). The anatomy and makeup of the vocal tract do play a role, as it determines pitch range and formant variations, often regarded as the most distinctive vocal features of cisgender men and women. However, gender variation in the voice has been shown to arise from several aspects besides physical ones (Oates and
|
| 51 |
+
|
| 52 |
+
Dacakis, 2015; Zimman, 2018; Becker et al., 2022). As studies including transgender individuals show (Zimman, 2017), sociocultural factors influence vocal use, including which parts of the pitch range are used (Loveday, 1981; Yuasa, 2008), and articulatory practices for sibilant consonants and vowels that are perceived as gender characterizing (Pharaoh et al., 2014; Podesva et al., 2016; Li, 2017).
|
| 53 |
+
|
| 54 |
+
For speech technologies, sociodemographic variation has posed challenges to ASR systems (Sawalha and Abu Shariah, 2013; Liu et al., 2022; Rajan et al., 2022; Fucci et al., 2023). Various works have found ASR models for English and French to recognize better male speech and voices (Tatman, 2017; Garnerin et al., 2019, 2021). This effect is often a result of the under-representation of women in the training data (Meyer et al., 2020; Gaido et al., 2020; Garnerin et al., 2020). However, various works have found the reverse to be true. Several studies found comparatively better performance for women in more spontaneous, conversational data in Dutch (Feng et al., 2022) and English (Adda-Decker and Lamel, 2005; Koenecke et al., 2020). They attribute these findings to sociolinguistic factors, like the higher incidence of disfluencies and informal speech in men.
|
| 55 |
+
|
| 56 |
+
Thus, the current literature provides a fragmented picture of gender disparities in speech technologies. However, most studies focus primarily on a single language, usually English, albeit across multiple datasets and models. We broaden this research to include large-scale multilingual speech models. In addition, we evaluate performance in a third gender category, which includes individuals who do not identify as male or female.
|
| 57 |
+
|
| 58 |
+
# 3 Methodology
|
| 59 |
+
|
| 60 |
+
This section describes the experimental design to answer Q1, i.e., whether there are gendered performance differences in multi-task multilingual ASR models. Our results (§4) confirm it.
|
| 61 |
+
|
| 62 |
+
Models. We experiment with OpenAI's Whisper (Radford et al., 2022, WHISPER) and Meta's SeamlessM4T (Communication et al., 2023, SEAMLESS), two widely used, state-of-the-art multilingual ASR models (details in Appendix A.1).
|
| 63 |
+
|
| 64 |
+
Datasets. Among other multilingual datasets available for ASR (Gales et al., 2014; Black, 2019; Pratap et al., 2020; Iranzo-Sanchez et al., 2022; Valk and Alumae, 2021), we use Mozilla Com
|
| 65 |
+
|
| 66 |
+
mon Voice (CV, Ardila et al., 2020), $^{4}$ Fleurs (Connieu et al., 2023) and VoxPopuli (Wang et al., 2021). Mainly, dataset selection is bound to the availability of reliable speakers' gender information. We use the gender labels that come with each dataset. $^{5}$ Moreover, these datasets cover two distinct recording and speech conditions: $i$ read, where speech is typically well-articulated and based on the reading of pre-defined texts (CV and Fleurs), and $ii$ spontaneous conditions elicited from public speeches (VoxPopuli), which allow for more speaker-dependent articulations and variation in word usage (Gabler et al., 2023), and thus represent a testbed closer to real-world use cases of ASR technologies. We base our analysis on the concatenation of validation and test splits of each dataset to avoid unreliable results due to training data contamination. See Appendix A.5 for a discussion on data contamination and how transcription performance varies across splits in our setup.
|
| 67 |
+
|
| 68 |
+
Languages. We include 19 languages from CV and Fleurs, and a subset of those—11 in total, due to data availability—from VoxPopuli. They represent eight diverse language families and data availability conditions (i.e., high-low resource). The dataset choice depended on whether sufficient utterances stratified across genders were available for meaningful comparisons. See Tables 5-7, Appendix A.6 for all the statistics.
|
| 69 |
+
|
| 70 |
+
# 3.1 Evaluation
|
| 71 |
+
|
| 72 |
+
Quality Metrics. We use standard Word- and Character-Error Rate (WER and CER, respectively) to evaluate transcription quality. Following Radford et al. (2022), we $i$ ) report WER for all languages but Yoruba and Japanese—where variability in orthography and ambiguous word units may affect evaluation (Rowlands, 1954; Matsuoka et al., 1997)—for which we use CER, $ii$ ) transliterate all Russian and Serbian references and hypotheses into Cyrillic, and $iii$ ) apply the official normalization routines to texts when evaluating Whisper. Moreover, we trim audio to the initial 30 seconds and
|
| 73 |
+
|
| 74 |
+
filter out dataset noise by removing records with an empty reference and silence in the snippet.8
|
| 75 |
+
|
| 76 |
+
When evaluated in terms of overall quality, both WHISPER and SEAMLESS showcase competitive results, respectively, on Fleurs (12.68 and 19.87 - avg. 19 langs); CV (17.51 and 16.42 - avg. 19 langs); VP (13.59 and 12.74 - avg. 11 langs). For disaggregated error rate (ER) scores, see Figure 6 in Appendix A.1.
|
| 77 |
+
|
| 78 |
+
Gap Metrics. Measuring the ASR gender gap is equivalent to seeking what is commonly known in the field of machine learning as group fairness (Chouldechova and Roth, 2020), or, more specifically, demographic parity (Dwork et al., 2012). Conceptually, parity is achieved when a given statistical measure is equal across different groups.
|
| 79 |
+
|
| 80 |
+
We operationalize demographic parity using the notation from Czarnowska et al. (2021). We introduce a Pairwise Comparison Metric, loosely inspired by the Disparity Score in Gaut et al. (2020), defined as follows:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
E \left(r _ {A}, r _ {B}\right) = 1 0 0 \cdot \left(\phi \left(r _ {A}\right) - \phi \left(r _ {B}\right)\right) / \phi \left(r _ {B}\right) \tag {1}
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where $r_A$ and $r_B$ are the set of audio snippets belonging to given groups (e.g., either "male", "female", or "other" in CV), and $\phi(\cdot)$ is one of the quality metrics defined above (i.e., WER or CER). The ideal score is 0—i.e., the model performs perfectly equally on the two groups.
|
| 87 |
+
|
| 88 |
+
Significance test. We use a bootstrapped approach (Koehn, 2004; Søgaard et al., 2014) to estimate $\phi(\cdot)$ . We sample $40\%$ of the smallest group and the same number of records from the largest group for $n = 1000$ iterations. We sample stratifying on speakers to avoid skewing the speaker distribution. Stratified, gender-balanced sampling ensures a reliable comparison. We compute $E(\cdot)$ on the arithmetic means of $\phi(\cdot)$ across the $n$ runs and use a two-sided Student's t-test to compute the statistical difference between the means. See Appendix A.5 for more details on comparing sampling performance vs. complete sets.
|
| 89 |
+
|
| 90 |
+
Note that sampling requires attributing each record to an individual speaker—information not
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
|
| 94 |
+

|
| 95 |
+
(a) VoxPopuli
|
| 96 |
+
|
| 97 |
+

|
| 98 |
+
(b) Fleurs
|
| 99 |
+
(c) CV
|
| 100 |
+
Figure 2: Model error rate gap (Eq. 1). Positive values indicate better performance on men, negative ones on women. $p < 0.05$ .
|
| 101 |
+
|
| 102 |
+
available in Fleurs. For consistency, we attribute a speaker ID to each record automatically. Specifically, we $i$ use state-of-the-art speaker verification embedding models to encode each recording, ii) cluster them using HDBSCAN (Campello et al., 2013), and iii) assign a speaker ID to each cluster. See Appendix A.4 for details on the pipeline.
|
| 103 |
+
|
| 104 |
+
# 4 Gender Performance Gaps
|
| 105 |
+
|
| 106 |
+
In the following, we report the results of evaluating WHISPER and SEAMLESS, focusing on gender performance disparities. We first investigate whether models are equally able to recognize female and male speakers (§4.1). Then, limited to CV, we repeat the analysis for speakers identifying with neither of the two against males (§4.2).
|
| 107 |
+
|
| 108 |
+
# 4.1 "Female" - "Male" Gap
|
| 109 |
+
|
| 110 |
+
Figure 2 reports $E(r_{F}, r_{M})$ , i.e., the gender gap results for WHISPER and SEAMLESS on each dataset. Concerning our Q1, a broad overview reveals that these models do not perform equally across female and male speakers, often showing a preference for one gender over the other. This gender disparity in multilingual models is a key point of our investigation. Our analysis does not consistently reveal models disadvantageing the feminine group—see values below 0. This finding stands in stark contrast with mounting evidence of a strong masculine bias affecting a wide range of Natural Language Processing (NLP) tasks (e.g., Sun et al., 2019; Stanczak et al., 2022). It is especially noteworthy given the well-known under-representation of women in current resources used for model training (Garnerin et al., 2019; Zanon Boito et al., 2022; Sun and Peng, 2021). We observe that both speech models—albeit to varying degrees—better recognize female speech on average in two out of the three considered datasets (i.e., F1eurs and VP).
|
| 111 |
+
|
| 112 |
+
Upon closer examination, we also observe substantially different behaviors across datasets. First, despite the higher degree of spoken language variation to be expected in spontaneous recordings from the VP dataset (Figure 2a), results show a comparatively reduced gender gap, with overlapping values between WHISPER and SEAMLESS for most languages (i.e., hu, es, fr, nl, cs, de). Conversely, it is on read resource that we attest to a higher degree of variability across models as well as languages, with occasional wide disparities toward either females or males in CV (2c). Notably, SEAMLESS remains closer to performance equality for most instances on Fleurs (2b), i.e., values between 11 and -10.
|
| 113 |
+
|
| 114 |
+
As such, in line with previous research (see §2), analysis of (binary) gender disparities for the ASR reveals a complex picture, which we further analyze and unpack in the following sections.
|
| 115 |
+
|
| 116 |
+
# 4.2 "Other" - "Male" Gap
|
| 117 |
+
|
| 118 |
+
Restricting our analysis to validation and test sets leaves us with few records for speakers who do not identify as either male or female. As such, we report results for five high-resource languages, Catalan, German, English, Spanish, and French.[10]
|
| 119 |
+
|
| 120 |
+
Table 1 reports $E(r_{O}, r_{M})$ for both models. Results suggest that models penalize non-male speech and that gaps are larger than disparities
|
| 121 |
+
|
| 122 |
+
<table><tr><td></td><td>ca</td><td>de</td><td>en</td><td>es</td><td>fr</td></tr><tr><td>WHISPER</td><td>4.68</td><td>37.20</td><td>28.50</td><td>-2.00</td><td>5.21</td></tr><tr><td>SEAMLESS</td><td>52.76</td><td>17.19</td><td>38.70</td><td>11.37</td><td>-0.50</td></tr></table>
|
| 123 |
+
|
| 124 |
+
Table 1: Model error rate gap (Eq. 1). Positive values indicate better performance on men, negative ones on "Other." $p < {0.05}$ .
|
| 125 |
+
|
| 126 |
+
observed for the female/male groups. Given the limited sample size, we deem this analysis only exploratory. However, it is a valuable first overview of the model's behaviors for gender-non-conforming voices. We underscore the need for more representation of diverse voices and sociodemographic groups in current resources, and for which monitoring fairness in existing speech models remains out of reach. See §7 for an expanded discussion.
|
| 127 |
+
|
| 128 |
+
# 5 Acoustic and Lexical Analysis
|
| 129 |
+
|
| 130 |
+
Gendered performance gaps vary across languages and datasets. Here, we dive into a focused analysis on acoustic aspects or lexical phenomena present in the test data (Q2). Due to data availability, we conduct this analysis on the "Female" - "Male" setup.
|
| 131 |
+
|
| 132 |
+
# 5.1 Acoustic Analysis
|
| 133 |
+
|
| 134 |
+
Motivated by sociophonetic evidence for gendered differences in speech (§2), we examine voice and language production across speakers of different genders. Specifically, we measure three acoustic features in our evaluation records, and explore whether potential acoustic differences across gender groups relate to gender performance gaps.
|
| 135 |
+
|
| 136 |
+
We include: i) pitch, measured as the mean of the fundamental frequency values (Hirst and de Looze, 2021), known to vary between biological sexes (Coleman, 1976; Hillenbrand and Clark, 2009) and languages (Loveday, 1981; Yuasa, 2008); ii) intensity, measured as the mean of fundamental frequencies (Pausewang Gelfer and Young, 1997), subject to recording conditions (Maryn and Zarowski, 2015); iii) speaking rate, measured as the number of tokens per minute (Künzel, 2013), subject to language and gender variation (Borsel and Maesschalck, 2008; Coupé et al., 2019) as well as read vs. spontaneous speech (Nakamura et al., 2008).<sup>11</sup>
|
| 137 |
+
|
| 138 |
+
Findings. We started by exploring whether pitch, intensity, and speaking rate differ between genders in each dataset-language pair. Independent-sample T-tests revealed significant differences for most setups $(p < 0.05)$ , consistent with previous literature. For example, pitch consistently showed statistically significant differences (see Appendix B.1).
|
| 139 |
+
|
| 140 |
+
Motivated by these observations, we computed the mean acoustic values of each gender group and correlated it with performance gaps, i.e., $E(r_{F}, r_{M})$ , aggregating by dataset and model. No clear trends emerged overall. Sporadically, we found a strong and significant linear correlation, e.g., for SEAMLESS and VoxPopuli where Pearson's rho for pitch is $-0.83$ (see Appendix B.1 for complete details). Fitting an ordinary least squares (OLS) regressor to predict $E(r_{F}, r_{M})$ led to similar conclusions, as low $\mathbb{R}^2$ scores suggest (max: 0.42, average $_{\sigma}$ : 0.24 $_{\pm 0.11}$ ). For a more fine-grained analysis, we repeated the analysis fitting an OLS model to predict sentence-level error rates (i.e., $r_{F}, r_{M}$ ) but found low $\mathbb{R}^2$ scores (max: 0.20, average $_{\sigma}$ : 0.03 $_{\pm 0.04}$ ).
|
| 141 |
+
|
| 142 |
+
In summary, despite pitch, intensity, and speaking rate vary significantly across gender groups within the same dataset and language, such variation seldom correlates with performance differences. These findings suggest that performance gaps are a complex phenomenon, and our analysis should expand elsewhere to explain it.
|
| 143 |
+
|
| 144 |
+
# 5.2 Lexical Analysis
|
| 145 |
+
|
| 146 |
+
In §5.1, we explored acoustic aspects of speech. However, what is uttered can be as crucial as how it is uttered. Indeed, prior work has found that overall speech perception can be impacted by aspects related to lexical and syntactic complexities (van Kni-jff et al., 2018; Carroll and Ruigendijk, 2012). Besides, certain lexical phenomena such as named entities represent a well-known challenge for speech models, especially in multilingual contexts (Gaido et al., 2021). Thus, we focus on speech content and study whether lexical phenomena—as measured in the reference transcripts—explain ASR disparities.
|
| 147 |
+
|
| 148 |
+
For each record, we counted $i$ ) the occurrences of part-of-speech tags and $ii$ ) named entities, and computed $iii$ ) lexical density (Halliday, 1989). Similarly to acoustic features, we contrast distribution between gender groups (details in Appendix B.2).
|
| 149 |
+
|
| 150 |
+
Findings. Comparing the distribution of lexical features between female and male speakers, we
|
| 151 |
+
|
| 152 |
+
found mixed results. Several dataset-language setups have significantly different distributions $(p < 0.05)$ , but not all. Different distributions are also present in read datasets, suggesting that lexical variability is not controlled when collecting data. We proceeded similarly to the acoustic analysis to verify whether such differences explain error rates. Fitting an OLS model to predict error rates from lexical features only yields low $\mathbf{R}^2$ scores (max: 0.35, average $_\sigma$ : $0.09_{\pm 0.08}$ , across all datasets and languages). Moreover, we found no significant (linear) correlation between the difference of group means and $E(r_F, r_M)$ .
|
| 153 |
+
|
| 154 |
+
This finding echoes those from acoustic analysis: Lexical phenomena do not explain gender performance gaps in our data. We must research other aspects beyond the lexical content of utterances.
|
| 155 |
+
|
| 156 |
+
# 6 Probing Gender in ASR Models
|
| 157 |
+
|
| 158 |
+
The field of natural language processing (NLP) has now established that transformer language models encode syntactic (Hewitt and Manning, 2019), semantic (Tenney et al., 2019), and factual (Petroni et al., 2019; Meng et al., 2022) information in hidden representations. As such, recent work has focused on extracting this information through probes, i.e., supervised classifiers trained on the model's embeddings (Alain and Bengio, 2016; Belinkov and Glass, 2019). Compellingly, some have related extractability of sensitive attributes, e.g., gender, to bias in downstream application (Orgad et al., 2022). Probing is primarily motivated by the risk that models entangle protected attributes and predictions in sensitive use cases (Zhao et al., 2018; Ravfogel et al., 2020).
|
| 159 |
+
|
| 160 |
+
Motivated by this line of research, we measure gender extractability in ASR models and ask (Q2) whether and to what extent it explains gender-based performance gaps. To our knowledge, ours is the first study of this kind.[12]
|
| 161 |
+
|
| 162 |
+
Experimental design. We focus on one dataset-model configuration, namely WHISPER and CV. We attach our probes to the model encoder's last layer embeddings and train one distinct probe for every position. We use Logistic Regression and Mini
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
Figure 3: F1 Macro (top) and measured code length (bottom) for Logistic Regression and MDL probes, respectively. English, F-M setup, first 10 seconds of context. Actual score (blue pale line), exponential moving average (solid line, $n = 3$ ), and average length of test snippets (dashed line).
|
| 166 |
+
|
| 167 |
+
mum Description Length (MDL) (Voita and Titov, 2020) to probe gender in the female-male binary setup (see Appendix B.3 for details).
|
| 168 |
+
|
| 169 |
+
Findings. Figure 3 shows gender extractability on the English CV split for the F-M setup. Trends are similar across languages (full results in Figure 9a). First, F1 scores suggest that gender extractability is relatively easy. Whisper produces representations of female and male speech that can be easily separated. Second, extractability is not constant over time. It starts high in the first milliseconds, drops during the actual signal (i.e., the speaker is talking), and finally plateaus around the initial value. This finding recalls the "attention sink" theory, implicating that transformers prioritize initial positions for specific tasks (Xiao et al., 2023). Third, the trends observed in MDL probes—where lower codelength indicates an easier task and higher extractability—suggest that simple logistic regression is a robust method, countering the issues identified in NLP (Voita and Titov, 2020).<sup>13</sup>
|
| 170 |
+
|
| 171 |
+
Correlation with Error Rate. Do gender probing scores tell us something about ASR quality and gender bias (Q2)? To answer this question, we compare F1 scores from logistic regression scores and ASR error rates. We measure $\mathrm{F1}_S$ , i.e., the average F1 score achieved by probes at the posi
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 4: Logistic probe $\mathbf{F1}_S$ vs. $E(r_{F},r_{M})$ . CV. The purple dashed line is a linear interpolation.
|
| 175 |
+
|
| 176 |
+
tions corresponding to actual speech, $^{14}$ $\phi(r_{M})$ and $\phi(r_{F})$ (error rates on male and female segments), and the disparity score $E(r_{F}, r_{M})$ .
|
| 177 |
+
|
| 178 |
+
$\mathrm{F1}_S$ has a weak linear correlation with $\phi (r_M)$ and $\phi (r_F)$ (Pearson's $\rho$ is 0.13 and -0.003, respectively), hinting that $\mathrm{F1}_S$ cannot explain per-group quality. However, $\rho$ between $\mathrm{F1}_S$ and $E(r_{F},r_{M})$ is -0.65 ( $n = 19$ , see Figure 4). In other words, linear correlation suggests that the better probes can extract gender from WHISPER's hidden states, the lower the F-M error rate gap is. Note that, as per its definition, $E(r_{F},r_{F})$ can be negative (see points below the zero line in Figure 4). Negative values indicate performance favoring the minority group (here, women). This finding suggests that WHISPER does encode recordings from speakers that identify as men and women differently. This aspect can serve as a proxy for measuring and mitigating gender disparities, e.g. by reducing gender extractability from hidden representations (Krishnan et al., 2024). However, we caution the reader from attributing high extractability to gendered voice and discourage using probes on people's voice to predict gender (see Ethical considerations, §8).
|
| 179 |
+
|
| 180 |
+
# 7 Discussion
|
| 181 |
+
|
| 182 |
+
Twists, humps, and pebbles—the way to equitable multilingual speech recognition models is no straight line. We have discovered that gender disparities vary across spoken setups and languages and that consistency is also weak between models. Perhaps of greater interest, the advantaged group is sometimes women, sometimes men, and never
|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
Figure 5: Share of records (y axis, %) having a WER greater than the value on the x axis. WHISPER, Fleurs nl (top) and ar (bottom).
|
| 186 |
+
|
| 187 |
+
anyone who does not identify with either.
|
| 188 |
+
|
| 189 |
+
Such a high variability prevents us from foreseeing gender disparities and, in turn, the actual impact on system users. We discuss here how to $i)$ reduce such variability and $ii)$ better use the metrics and test data at our disposal.
|
| 190 |
+
|
| 191 |
+
Free! the training data. While our acoustic and lexical inquiries on test data were inconsequential, experiments with probes on the model's internals showed that models learned and encoded properties to differentiate genders. Intuitively, a follow-up study would focus on what shaped those model's properties in the first place: training data. Models encode facts and information from training data, and some studies looked into how different sociodemographic groups are represented (Muller et al., 2023; Elazar et al., 2024). Studying gender distributions in pretraining multilingual speech data would be extremely valuable, as we could establish how gendered gaps and underrepresentation correlate. However, this analysis was impossible, as neither Whisper (Radford et al., 2022) nor SeamlessM4T (Communication et al., 2023) released such information. We call for more transparency.
|
| 192 |
+
|
| 193 |
+
Go beyond group-wise metrics. A crucial choice in our design was measuring differences between two groups of speakers. We opted for $E(\cdot)$ , measured as the relative difference between the group means. While the metric was primarily meant to make results across datasets, languages, and models comparable, it does not provide a complete picture of gender disparity's concrete impact. For instance, it hides absolute gaps: a $E(\cdot) = 10$
|
| 194 |
+
|
| 195 |
+
gap corresponds to a 0.2 WER gap if the model averages a WER of 2 on male speakers and to a 2 WER gap if the average is 20. These gaps may or may not be significant given many contextual factors (e.g., what the model is being used for, who is using it, and which ramifications such gaps can have). This thinking echoes that of recent critiques on measuring social bias in NLP, advocating for explicit statements about what system behavior must be considered good or bad and under which social values (Blodgett et al., 2020), and how to build contextualized metrics (Lum et al., 2024).
|
| 196 |
+
|
| 197 |
+
We would like a metric to indicate a more precise estimation of ASR model failures and their severity for users. A step in this direction would be going beyond group-wise metrics and studying sentence-level errors. Drawing on the concepts of wealth distribution and inequality (O'sullivan et al., 2003), we can inspect error distributions between speakers and groups and address the question "assuming $X$ is an acceptable error rate, what fraction of records from each group will be served to a satisfactory level?" Following Koenecke et al. (2020), we report in Figure 5 the proportion of records having an error rate at least that large. Due to space constraints, we focus on WHISPER's transcriptions of Fleur's Arabic and Dutch data. This visualization lets us identify where performance between genders starts to diverge. If, given our use case, we hypothesize that transcriptions become unusable for $\mathrm{WER} > 20$ , men and women would be equally affected in Dutch. However, it would not be the case in Arabic where $40\%$ of records from female speakers, but half of those from males, would not be acceptable. Parity is reached around $\mathrm{WER} = 40$ .
|
| 198 |
+
|
| 199 |
+
This concrete analysis highlighted gender disparities that group-wise metrics could not capture otherwise. It also served as an example of a broader argumentation: Future inquiries can benefit from using metrics and observations more closely related to real-world scenarios.
|
| 200 |
+
|
| 201 |
+
Improve sociodemographic representation. Empirical studies like ours rely on the quality and quantity of evaluation data. To test speech recognition, we need representative splits from diverse speakers. However, current datasets are gender-skewed, with men often overrepresented in terms of records and speakers. While downsampling can help at evaluation time, it does not address the lack of speaker diversity. Skewed distributions are even more evident in
|
| 202 |
+
|
| 203 |
+
low-resource languages when building standard train/Validation/test sets is required—e.g., in CV, Yoruba counts only 14 and 20 unique males and females, respectively. Catalan counts only 8 within "Other."
|
| 204 |
+
|
| 205 |
+
Therefore, we call for much needed considerations when comparing gender groups in high-resource languages, and new collective efforts to collect more representative data for low-resource languages and gender identities beyond the binary.
|
| 206 |
+
|
| 207 |
+
# 8 Conclusion
|
| 208 |
+
|
| 209 |
+
We conducted the first extensive evaluation on gender-based performance gaps of Whisper (Radford et al., 2022) and SeamlessM4T (Communication et al., 2023) for ASR. These models consistently exhibit gender bias across 19 languages from eight language families. Depending on the language, disparities can favor men or women but rarely favor speakers who identify as neither. We locate a potential source of these gaps using gender probes from interpretability approaches. Our results show that probes can be a proxy for gender gaps and that group fairness in multi-task multilingual models remains unsolved.
|
| 210 |
+
|
| 211 |
+
# Ethical Considerations
|
| 212 |
+
|
| 213 |
+
The use of gender as a variable in this paper warrants ethical reflections.
|
| 214 |
+
|
| 215 |
+
As one of the most salient perceptual traits of one's identity (Kreiman and Sirdis, 2011; Azul, 2015; Zimman, 2021) gendered differences represent a linchpin of much (socio)phonetic research (Zimman, 2020), which has unpacked several physical and sociocultural factors contributing to such gendered characteristics in the voice. Based on this evidence, our work does not intend to be normative nor assumes the existence of a single, unidimensional "female" or "male" voice. Instead, we question whether different gendered groups are equally recognized by current multilingual ASR models and incorporate sociophonetic knowledge in our analysis and discussions to isolate why that might not be the case. To do so, we do not make any inference about the gender of the speakers in the employed data. Instead, we rely on the declared gender of the speakers in the employed speech resources. In this regard, part of our analysis of the Mozilla Common Voice dataset uses a third category, "Other", which potentially aggregates diverse identities (e.g., transgender, non-binary, and other
|
| 216 |
+
|
| 217 |
+
marginalized individuals) $^{15}$ under one single umbrella term. While this third category also allows us to include genders non-conforming to the binary in our study, we recognize that this label and category might be an oversimplification and risk erasing the experiences and representativity of many gender identities.
|
| 218 |
+
|
| 219 |
+
Finally, gender probes represent a methodological approach to studying how models encode different audios from input signals. It is, hence, essential to remember the inherent limitations and ethical implications of relying on probes for gender classification. While these tools may offer a convenient means of categorization and can be suitable for exploring the models' behavior, they often overlook the nuanced and multifaceted nature of gender identity.
|
| 220 |
+
|
| 221 |
+
# Limitations
|
| 222 |
+
|
| 223 |
+
Our paper comes with a series of limitations. We divide them into two categories: data and methods.
|
| 224 |
+
|
| 225 |
+
Data. Gender is the driving variable of our analysis. However, it is widely recognized that gender interacts with other sociocultural factors, e.g., dialect (Wolfram, 2004) or sexual orientation (Zimman, 2013), in voice production. By limiting to self-identified gender provided with the datasets, our analysis can only provide a partial view. We thus advocate for speech dataset releases that include a principled set of such factors.
|
| 226 |
+
|
| 227 |
+
The scarcity of data limits the generalizability of our results in two more setups in our analysis. First, the category "Other" counts a deficient number of speakers and records in most of our setups (see §7). Second, the number of speakers we extracted from Fleurs is compared to CV and VoxPopuli (see 3.1). These factors hamper cross-dataset comparison and overall generalizability.
|
| 228 |
+
|
| 229 |
+
We did not control for data quality on references. It might be that references are noisy (e.g., single words, empty) and can lead to over- or underestimation of our measurements.
|
| 230 |
+
|
| 231 |
+
Finally, data contamination. Although we chose validation and test sets as our analysis targets, we cannot exclude that models were trained on part or all of them. We conducted a side analysis (Appendix A.5) that suggested that this might not be the case.
|
| 232 |
+
|
| 233 |
+
Methods. Since we miss reliable multilingual tools for acoustic analyses, we estimated the speaking rate using Whisper's pre-trained tokenizer. We acknowledge that pretrained tokenizers yield fewer tokens for high-resource languages. Hence, our measurement of low-resource might be overestimating the phenomenon.
|
| 234 |
+
|
| 235 |
+
If framed in the context of bias evaluation paradigms—which we are currently not doing—probing can be seen as an intrinsic bias paradigm. We correlate probing performance to a downstream task (and potential harm), i.e., quality gaps in ASR. However, studies in the field of NLP recognize that intrinsic and extrinsic (downstream) bias metrics do not necessarily correlate (Goldfarb-Tarrant et al., 2021; Kaneko et al., 2022). To our knowledge, ours is the first study to inspect such aspects in transformers for speech, and findings may not hold across modalities. We leave this research question to future work.
|
| 236 |
+
|
| 237 |
+
# Acknowledgments
|
| 238 |
+
|
| 239 |
+
We thank the reviewers, the members of the SARDINE and MilaNLP research groups, and Marco Gaido for the insightful comments. Giuseppe Attanasio was supported by the Portuguese Recovery and Resilience Plan through project C645008882-00000055 (Center for Responsible AI) and by Fundação para a Ciência e Tecnologia through contract UIDB/50008/2020. He conducted part of the work as a member of the MilaNLP group at Bocconi University, Milan. Dirk Hovy was supported by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation program (grant agreement No. 949944, INTEGRATOR) and a MUR FARE 2020 initiative under grant agreement Prot. R20YSMBZ8S (INDOMITA). He is director of the Data and Marketing Insights Unit of the Bocconi Institute for Data Science and Analysis (BIDSA). Beatrice Savoldi was supported by the PNRR project FAIR - Future AI Research (PE00000013), under the NRRP MUR program funded by the NextGenerationEU.
|
| 240 |
+
|
| 241 |
+
# References
|
| 242 |
+
|
| 243 |
+
Martine Adda-Decker and Lori Lamel. 2005. Do speech recognizers prefer female speakers? In Proc. Interspeech 2005, pages 2205-2208.
|
| 244 |
+
Guillaume Alain and Yoshua Bengio. 2016. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644.
|
| 245 |
+
|
| 246 |
+
H Samy Alim. 2004. You know my steez: An ethnographic and sociolinguistic study of styleshifting in a Black American speech community. Stanford University.
|
| 247 |
+
Rosana Ardila, Megan Branson, Kelly Davis, Michael Kohler, Josh Meyer, Michael Henrtty, Reuben Morais, Lindsay Saunders, Francis Tyers, and Gregor Weber. 2020. Common voice: A massively-multilingual speech corpus. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 4218-4222.
|
| 248 |
+
David Azul. 2015. On the varied and complex factors affecting gender diverse people's vocal situations: Implications for clinical practice. Perspectives on Voice and Voice Disorders, 25(2):75-86.
|
| 249 |
+
Kara Becker, Sameer ud Dowla Khan, and Lal Zimman. 2022. Beyond binary gender: creaky voice, gender, and the variationist enterprise. Language Variation and Change, 34(2):215-238.
|
| 250 |
+
Yonatan Belinkov and James Glass. 2019. Analysis methods in neural language processing: A survey. Transactions of the Association for Computational Linguistics, 7:49-72.
|
| 251 |
+
Michael Beukman and Manuel Fokam. 2023. Analysing cross-lingual transfer in low-resourced African named entity recognition. In Proceedings of the 13th International Joint Conference on Natural Language Processing and the 3rd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 199–224, Nusa Dua, Bali. Association for Computational Linguistics.
|
| 252 |
+
Alan W Black. 2019. Cmu wilderness multilingual speech dataset. In ICASSP 2019 - 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5971-5975.
|
| 253 |
+
Su Lin Blodgett, Solon Barocas, Hal Daumé III, and Hanna Wallach. 2020. Language (technology) is power: A critical survey of "bias" in NLP. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5454-5476, Online. Association for Computational Linguistics.
|
| 254 |
+
Paul Boersma and David Weenink. 2001. Praat, a system for doing phonetics by computer. *Glot International*, 5(9/10):341-345.
|
| 255 |
+
John Van Borsel and Dorothy De Maesschalck. 2008. Speech rate in males, females, and male-to-female transsexuals. Clinical Linguistics & Phonetics, 22(9):679-685. PMID: 18608249.
|
| 256 |
+
Peter A Busby and Geoff L Plant. 1995. Formant frequency values of vowels produced by preadolescent boys and girls. The Journal of the Acoustical Society of America, 97(4):2603-2606.
|
| 257 |
+
|
| 258 |
+
Ricardo JGB Campello, Davoud Moulavi, and Jörg Sander. 2013. Density-based clustering based on hierarchical density estimates. In Pacific-Asia conference on knowledge discovery and data mining, pages 160-172. Springer.
|
| 259 |
+
Rebecca Carroll and Esther Ruigendijk. 2012. The effects of syntactic complexity on processing sentences in noise. Journal of Psycholinguistic Research, 42:139 - 159.
|
| 260 |
+
Alexandra Chouldechova and Aaron Roth. 2020. A snapshot of the frontiers of fairness in machine learning. Communications of the ACM, 63(5):82-89.
|
| 261 |
+
Yunfei Chu, Jin Xu, Xiaohuan Zhou, Qian Yang, Shiliang Zhang, Zhijie Yan, Chang Zhou, and Jingren Zhou. 2023. Qwen-audio: Advancing universal audio understanding via unified large-scale audiolanguage models. arXiv preprint arXiv:2311.07919.
|
| 262 |
+
Ralph O. Coleman. 1976. A comparison of the contributions of two voice quality characteristics to the perception of maleness and femaleness in the voice. Journal of Speech & Hearing Research, 19(1):168-180.
|
| 263 |
+
Seamless Communication, Loic Barrault, Yu-An Chung, Mariano Coria Meglioli, David Dale, Ning Dong, Mark Duppenthaler, Paul-Ambroise Duquenne, Brian Ellis, Hady Elsahar, Justin Haaheim, John Hoffman, Min-Jae Hwang, Hirofumi Inaguma, Christopher Klaiber, Ilia Kulikov, Pengwei Li, Daniel Licht, Jean Maillard, Ruslan Mavlyutov, Alice Rakotoarison, Kaushik Ram Sadagopan, Abinesh Ramakrishnan, Tuan Tran, Guillaume Wenzek, Yilin Yang, Ethan Ye, Ivan Evtimov, Pierre Fernandez, Cynthia Gao, Prangthip Hansanti, Elahe Kalbassi, Amanda Kallet, Artyom Kozhevnikov, Gabriel Mejia Gonzalez, Robin San Roman, Christophe Touret, Corinne Wong, Carleigh Wood, Bokai Yu, Pierre Andrews, Can Balioglu, Peng-Jen Chen, Marta R. Costa-jussa, Maha Elbayad, Hongyu Gong, Francisco Guzmán, Kevin Heffernan, Somya Jain, Justine Kao, Ann Lee, Xutai Ma, Alex Mourachko, Benjamin Peloquin, Juan Pino, Sravya Popuri, Christophe Ropers, Safiyyah Saleem, Holger Schwenk, Anna Sun, Paden Tomasello, Changhan Wang, Jeff Wang, Skyler Wang and Mary Williamson. 2023. Seamless: Multilingual Expressive and Streaming Speech Translation.
|
| 264 |
+
Alexis Conneau, Min Ma, Simran Khanuja, Yu Zhang, Vera Axelrod, Siddharth Dalmia, Jason Riesa, Clara Rivera, and Ankur Bapna. 2023. Fleurs: Few-shot learning evaluation of universal representations of speech. In 2022 IEEE Spoken Language Technology Workshop (SLT), pages 798-805. IEEE.
|
| 265 |
+
Marta R Costa-jussà, James Cross, Onur Çelebi, Maha Elbayad, Kenneth Heafield, Kevin Heffernan, Elahe Kalbassi, Janice Lam, Daniel Licht, Jean Maillard, et al. 2022. No language left behind: Scaling human-centered machine translation. arXiv preprint arXiv:2207.04672.
|
| 266 |
+
|
| 267 |
+
Christophe Coupe, Yoon Mi Oh, Dan Dediu, and François Pellegrino. 2019. Different languages, similar encoding efficiency: Comparable information rates across the human communicative niche. Science Advances, 5(9):eaaw2594.
|
| 268 |
+
Paula Czarnowska, Yogarshi Vyas, and Kashif Shah. 2021. Quantifying social biases in NLP: A generalization and empirical comparison of extrinsic fairness metrics. Transactions of the Association for Computational Linguistics, 9:1249-1267.
|
| 269 |
+
Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Richard Zemel. 2012. Fairness through awareness. In Proceedings of the 3rd innovations in theoretical computer science conference, pages 214-226.
|
| 270 |
+
Yanai Elazar, Akshita Bhagia, Ian Helgi Magnusson, Abhilasha Ravichander, Dustin Schwenk, Alane Suhr, Evan Pete Walsh, Dirk Groeneveld, Luca Soldaini, Sameer Singh, Hannaneh Hajishirzi, Noah A. Smith, and Jesse Dodge. 2024. What's in my big data? In The Twelfth International Conference on Learning Representations.
|
| 271 |
+
Rui Feng, Chen Luo, Qingyu Yin, Bing Yin, Tuo Zhao, and Chao Zhang. 2022. CERES: Pretraining of graph-conditioned transformer for semi-structured session data. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 219–230, Seattle, United States. Association for Computational Linguistics.
|
| 272 |
+
Dennis Fucci, Marco Gaido, Matteo Negri, Mauro Cettolo, and Luisa Bentivogli. 2023. No pitch left behind: Addressing gender unbalance in automatic speech recognition through pitch manipulation. arXiv preprint arXiv:2310.06590.
|
| 273 |
+
Susanne Fuchs and Martine Toda. 2010. Do differences in male versus female/s/reflect biological or sociophonetic factors. *Turbulent sounds: An interdisciplinary guide*, 21:281-302.
|
| 274 |
+
Philipp Gabler, Bernhard C Geiger, Barbara Schuppler, and Roman Kern. 2023. Reconsidering Read and Spontaneous Speech: Causal Perspectives on the Generation of Training Data for Automatic Speech Recognition. Information, 14(2):137.
|
| 275 |
+
Marco Gaido, Susana Rodríguez, Matteo Negri, Luisa Bentivogli, and Marco Turchi. 2021. Is "moby dick" a whale or a bird? named entities and terminology in speech translation. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 1707-1716.
|
| 276 |
+
Marco Gaido, Beatrice Savoldi, Luisa Bentivogli, Matteo Negri, and Marco Turchi. 2020. Breeding gender-aware direct speech translation systems. In Proceedings of the 28th International Conference on Computational Linguistics, pages 3951-3964, Barcelona, Spain (Online). International Committee on Computational Linguistics.
|
| 277 |
+
|
| 278 |
+
Mark JF Gales, Kate M Knill, Anton Ragni, and Shakti P Rath. 2014. Speech recognition and keyword spotting for low-resource languages: Babel project research at cued. In Fourth International workshop on spoken language technologies for under-resourced languages (SLTU-2014), pages 16-23. International Speech Communication Association (ISCA).
|
| 279 |
+
Mahault Garnerin, Solange Rossato, and Laurent Be-sacier. 2019. Gender Representation in French Broadcast Corpora and Its Impact on ASR Performance. In 1st International Workshop on AI for Smart TV Content Production, Access and Delivery, page 3-9.
|
| 280 |
+
Mahault Garnerin, Solange Rossato, and Laurent Besacier. 2020. Gender representation in open source speech resources. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 6599-6605, Marseille, France. European Language Resources Association.
|
| 281 |
+
Mahault Garnerin, Solange Rossato, and Laurent Be-sacier. 2021. Investigating the Impact of Gender Representation in ASR Training Data: a Case Study on Librispeech. In 3rd Workshop on Gender Bias in Natural Language Processing, pages 86-92.
|
| 282 |
+
Andrew Gaut, Tony Sun, Shirlyn Tang, Yuxin Huang, Jing Qian, Mai ElSherief, Jieyu Zhao, Diba Mirza, Elizabeth Belding, Kai-Wei Chang, and William Yang Wang. 2020. Towards understanding gender bias in relation extraction. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2943-2953, Online. Association for Computational Linguistics.
|
| 283 |
+
Seraphina Goldfarb-Tarrant, Rebecca Marchant, Ricardo Muñoz Sánchez, Mugdha Pandya, and Adam Lopez. 2021. Intrinsic bias metrics do not correlate with application bias. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1926-1940, Online. Association for Computational Linguistics.
|
| 284 |
+
Michael A.K. Halliday. 1989. Spoken and written language.
|
| 285 |
+
John Hewitt and Christopher D. Manning. 2019. A structural probe for finding syntax in word representations. 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 4129-4138, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 286 |
+
James M. Hillenbrand and Michael J. Clark. 2009. The role of f0 and formant frequencies in distinguishing the voices of men and women. Attention Perception & Psychophysics, 71(5):1150-1166.
|
| 287 |
+
Daniel J. Hirst and Céline de Looze. 2021. Measuring Speech. Fundamental frequency and pitch. In
|
| 288 |
+
|
| 289 |
+
Rachael-Anne Knight and Jane Setter, editors, Cambridge Handbook of Phonetics, 1, pages 336-361. Cambridge University Press.
|
| 290 |
+
Aliakbar Imani and Hadina Habil. 2017. Lexical features of academic writing.
|
| 291 |
+
Javier Iranzo-Sanchez, Javier Jorge Cano, Alejandro Pérez-González-de Martos, Adrián Giménez Pastor, Gonçal Garcés Díaz-Munio, Pau Baquero-Arnal, Joan Albert Silvestre-Cerdà, Jorge Civera Saiz, Albert Sanchis, and Alfons Juan. 2022. MLLP-VRAIN UPV systems for the IWSLT 2022 simultaneous speech translation and speech-to-speech translation tasks. In Proceedings of the 19th International Conference on Spoken Language Translation (IWSLT 2022), pages 255-264, Dublin, Ireland (in-person and online). Association for Computational Linguistics.
|
| 292 |
+
Masahiro Kaneko, Danushka Bollegala, and Naoaki Okazaki. 2022. Debiasing isn't enough! - on the effectiveness of debiasing MLMs and their social biases in downstream tasks. In Proceedings of the 29th International Conference on Computational Linguistics, pages 1299-1310, Gyeongju, Republic of Korea. International Committee on Computational Linguistics.
|
| 293 |
+
Philipp Koehn. 2004. Statistical significance tests for machine translation evaluation. In Proceedings of the 2004 Conference on Empirical Methods in Natural Language Processing, pages 388-395, Barcelona, Spain. Association for Computational Linguistics.
|
| 294 |
+
Allison Koenecke, Andrew Nam, Emily Lake, Joe Nudell, Minnie Quartey, Zion Mengesha, Connor Toups, John R. Rickford, Dan Jurafsky, and Sharad Goel. 2020. Racial disparities in automated speech recognition. Proceedings of the National Academy of Sciences, 117(14):7684-7689.
|
| 295 |
+
Jody Kreiman and Diana Sirdis. 2011. Foundations of voice studies: An interdisciplinary approach to voice production and perception. John Wiley & Sons.
|
| 296 |
+
Aravind Krishnan, Badr M. Abdullah, and Dietrich Klakow. 2024. On the encoding of gender in transformer-based asr representations.
|
| 297 |
+
Hermann J. Künzel. 2013. Some general phonetic and forensic aspects of speaking tempo. International Journal of Speech Language and The Law, 4:48-83.
|
| 298 |
+
William Labov. 1964. The social stratification of English in New York city. Ph.D. thesis, Columbia University.
|
| 299 |
+
Fangfang Li. 2017. The development of gender-specific patterns in the production of voiceless sibilant fricatives in Mandarin Chinese. Linguistics, 55(5):1021-1044.
|
| 300 |
+
Chunxi Liu, Michael Picheny, Leda Sarı, Pooja Chitkara, Alex Xiao, Xiaohui Zhang, Mark Chou, Andres Alvarado, Caner Hazirbas, and Yatharth Saraf. 2022.
|
| 301 |
+
|
| 302 |
+
Towards measuring fairness in speech recognition: Casual conversations dataset transcriptions. In ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6162-6166.
|
| 303 |
+
Leo Loveday. 1981. Pitch, politeness and sexual role: An exploratory investigation into the pitch correlates of English and Japanese politeness formulae. Language and Speech, 24(1):71-89.
|
| 304 |
+
Kristian Lum, Macy Reese Anthis, Chirag Nagpal, and Alexander D'Amour. 2024. Bias in language models: Beyond trick tests and toward ruted evaluation. arXiv preprint arXiv:2402.12649.
|
| 305 |
+
Youri Maryn and Andrzej Zarowski. 2015. Calibration of clinical audio recording and analysis systems for sound intensity measurement. American Journal of Speech-Language Pathology, 24(4):608-618.
|
| 306 |
+
Tatsuo Matsuoka, Katsutoshi Ohtsuki, Takeshi Mori, Kotaro Yoshida, Sadaoki Furui, and Katsuhiko Shirai. 1997. Japanese large-vocabulary continuous-speech recognition using a business-newspaper corpus. In 1997 IEEE International Conference on Acoustics, Speech, and Signal Processing, volume 3, pages 1803-1806. IEEE.
|
| 307 |
+
Leland McInnes, John Healy, and James Melville. 2018. Umap: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426.
|
| 308 |
+
Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2022. Locating and editing factual associations in gpt. Advances in Neural Information Processing Systems, 35:17359-17372.
|
| 309 |
+
Zion Mengesha, Courtney Heldreth, Michal Lahav, Juliana Sublewski, and Elyse Tuennerman. 2021. "I don't Think These Devices are Very Culturally Sensitive."—Impact of Automated Speech Recognition Errors on African Americans. Frontiers in Artificial Intelligence, 4.
|
| 310 |
+
Josh Meyer, Lindy Rauchenstein, Joshua D Eisenberg, and Nicholas Howell. 2020. Artie bias corpus: An open dataset for detecting demographic bias in speech applications. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 6462-6468.
|
| 311 |
+
Hosein Mohebbi, Grzegorz Chrupa, Willem Zuidema, and Afra Alishahi. 2023. Homophone disambiguation reveals patterns of context mixing in speech transformers. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 8249-8260, Singapore. Association for Computational Linguistics.
|
| 312 |
+
Benjamin Muller, Belen Alastruey, Prangthip Hansanti, Elahe Kalbassi, Christophe Ropers, Eric Smith, Adina Williams, Luke Zettlemoyer, Pierre Andrews, and Marta R. Costa-jussa. 2023. The gender-GAP
|
| 313 |
+
|
| 314 |
+
pipeline: A gender-aware polyglot pipeline for gender characterisation in 55 languages. In Proceedings of the Eighth Conference on Machine Translation, pages 536-550, Singapore. Association for Computational Linguistics.
|
| 315 |
+
Masanobu Nakamura, Koji Iwano, and Sadaoki Furui. 2008. Differences between acoustic characteristics of spontaneous and read speech and their effects on speech recognition performance. Computer Speech & Language, 22(2):171-184.
|
| 316 |
+
Jennifer Oates and Georgia Dacakis. 2015. Transgender voice and communication: Research evidence underpinning voice intervention for male-to-female transsexual women. Perspectives on Voice and Voice Disorders, 25(2):48-58.
|
| 317 |
+
Hadas Orgad, Seraphina Goldfarb-Tarrant, and Yonatan Belinkov. 2022. How gender debiasing affects internal model representations, and why it matters. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2602-2628, Seattle, United States. Association for Computational Linguistics.
|
| 318 |
+
Arthur O'sullivan, Steven M Sheffrin, and Kathy Swan. 2003. Economics: Principles in action.
|
| 319 |
+
Eliana Pastor, Algis Koudounas, Giuseppe Attanasio, Dirk Hovy, and Elena Baralis. 2023. Explaining speech classification models via word-level audio segments and paralinguistic features. arXiv preprint arXiv:2309.07733.
|
| 320 |
+
Marylou Pausewang Gelfer and Shannon Ryan Young. 1997. Comparisons of intensity measures and their stability in male and female sneakers. Journal of Voice, 11(2):178-186.
|
| 321 |
+
Fabio Petroni, Tim Rocttäschel, Sebastian Riedel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, and Alexander Miller. 2019. Language models as knowledge bases? 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 2463-2473, Hong Kong, China. Association for Computational Linguistics.
|
| 322 |
+
Nicolai Pharaoh, Marie Maegaard, Janus Spindler Møller, and Tore Kristiansen. 2014. Indexical meanings of [s] among Copenhagen youth: Social perception of a phonetic variant in different prosodic contexts. Language in Society, 43(1):1-31.
|
| 323 |
+
Robert J. Podesva, Janneke Van Hofwegen, Erez Levon, and Ronald Beline Mendes. 2016. S/exuality in small-town California: Gender normativity and the acoustic realization of/s. Language, sexuality, and power: Studies in intersectional linguistics, pages 16-88.
|
| 324 |
+
|
| 325 |
+
Vineel Pratap, Qiantong Xu, Anuroop Sriram, Gabriel Synnaeve, and Ronan Collobert. 2020. Mls: A large-scale multilingual dataset for speech research. *ArXiv*, abs/2012.03411.
|
| 326 |
+
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.
|
| 327 |
+
Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, and Ilya Sutskever. 2022. Robust Speech Recognition via Large-Scale Weak Supervision. ArXiv:2212.04356 [cs, eess].
|
| 328 |
+
Sai Sathiesh Rajan, Sakshi Udeshi, and Sudipta Chattopadhyay. 2022. Aquevox: Automated fairness testing of speech recognition systems. In International Conference on Fundamental Approaches to Software Engineering, pages 245-267. Springer International Publishing Cham.
|
| 329 |
+
Mirco Ravanelli, Titouan Parcollet, Peter Plantinga, Aku Rouhe, Samuele Cornell, Loren Lugosch, Cem Subakan, Nauman Dawalatabad, Abdelwahab Heba, Jianyuan Zhong, Ju-Chieh Chou, Sung-Lin Yeh, Szu-Wei Fu, Chien-Feng Liao, Elena Rastorgueva, François Grondin, William Aris, Hwidong Na, Yan Gao, Renato De Mori, and Yoshua Bengio. 2021. SpeechBrain: A general-purpose speech toolkit. ArXiv:2106.04624.
|
| 330 |
+
Shauli Ravfogel, Yanai Elazar, Hila Gonen, Michael Twiton, and Yoav Goldberg. 2020. Null it out: Guarding protected attributes by iterative nullspace projection. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7237-7256, Online. Association for Computational Linguistics.
|
| 331 |
+
Evan C Rowlands. 1954. Types of word junction in yoruba. Bulletin of the School of Oriental and African Studies, 16(2):376-388.
|
| 332 |
+
Majdi Sawalha and Mohammad Abu Shariah. 2013. The effects of speakers' gender, age, and region on overall performance of Arabic automatic speech recognition systems using the phonetically rich and balanced Modern Standard Arabic speech corpus. In Proceedings of the 2nd Workshop of Arabic Corpus Linguistics WACL-2. Leeds.
|
| 333 |
+
Adrian P. Simpson. 2009. Phonetic differences between male and female speech. Language and linguistics compass, 3(2):621-640.
|
| 334 |
+
Anders Søgaard, Anders Johannsen, Barbara Plank, Dirk Hovy, and Hector Martínez Alonso. 2014. What's in a p-value in NLP? In Proceedings of the Eighteenth Conference on Computational Natural Language Learning, pages 1-10, Ann Arbor, Michigan. Association for Computational Linguistics.
|
| 335 |
+
|
| 336 |
+
Karolina Stanczak, Edoardo Ponti, Lucas Torroba Hennigen, Ryan Cotterell, and Isabelle Augenstein. 2022. Same neurons, different languages: Probing morphosyntax in multilingual pre-trained models. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1589-1598, Seattle, United States. Association for Computational Linguistics.
|
| 337 |
+
Jiao Sun and Nanyun Peng. 2021. Men are elected, women are married: Events gender bias on wikipedia. 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 350-360.
|
| 338 |
+
Tony Sun, Andrew Gaut, Shirlyn Tang, Yuxin Huang, Mai ElSherief, Jieyu Zhao, Diba Mirza, Elizabeth Belding, Kai-Wei Chang, and William Yang Wang. 2019. Mitigating gender bias in natural language processing: Literature review. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1630–1640, Florence, Italy. Association for Computational Linguistics.
|
| 339 |
+
Tina Tallon. 2019. A Century of "Shrill": How Bias in Technology Has Hurt Women's Voices. The New Yorker.
|
| 340 |
+
Rachael Tatman. 2017. Gender and dialect bias in YouTube's automatic captions. In Proceedings of the First ACL Workshop on Ethics in Natural Language Processing, pages 53-59, Valencia, Spain. Association for Computational Linguistics.
|
| 341 |
+
Ian Tenney, Dipanjan Das, and Ellie Pavlick. 2019. BERT rediscovers the classical NLP pipeline. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4593-4601, Florence, Italy. Association for Computational Linguistics.
|
| 342 |
+
Jörgen Valk and Tanel Alumäe. 2021. Voxlingua107: a dataset for spoken language recognition. In 2021 IEEE Spoken Language Technology Workshop (SLT), pages 652-658. IEEE.
|
| 343 |
+
Eline C van Knijff, Martine Coene, and Paul J. Govaerts. 2018. Speech understanding in noise in elderly adults: the effect of inhibitory control and syntactic complexity. International journal of language & communication disorders, 53 3:628-642.
|
| 344 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30.
|
| 345 |
+
Elena Voita and Ivan Titov. 2020. Information-theoretic probing with minimum description length. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 183-196, Online. Association for Computational Linguistics.
|
| 346 |
+
|
| 347 |
+
Changhan Wang, Morgane Riviere, Ann Lee, Anne Wu, Chaitanya Talnikar, Daniel Haziza, Mary Williamson, Juan Pino, and Emmanuel Dupoux. 2021. VoxPopuli: A large-scale multilingual speech corpus for representation learning, semi-supervised learning and interpretation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 993-1003, Online. Association for Computational Linguistics.
|
| 348 |
+
|
| 349 |
+
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 Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38-45, Online. Association for Computational Linguistics.
|
| 350 |
+
|
| 351 |
+
Walt Wolfram. 2004. Urban african american vernacular english: Morphology and syntax. A handbook of varieties of English, 1:319-340.
|
| 352 |
+
|
| 353 |
+
Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. 2023. Efficient streaming language models with attention sinks. arXiv preprint arXiv:2309.17453.
|
| 354 |
+
|
| 355 |
+
Ikuko Patricia Yuasa. 2008. Culture and gender of voice pitch: A sociophonetic comparison of the Japanese and Americans. Equinox Publishing.
|
| 356 |
+
|
| 357 |
+
Marcely Zanon Boito, Fethi Bouguares, Florentin Barbier, Souhir Gahbiche, Loic Barrault, Mickael Rouvier, and Yannick Esteve. 2022. Speech resources in the Tamasheq language. In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 2066-2071, Marseille, France. European Language Resources Association.
|
| 358 |
+
|
| 359 |
+
Jieyu Zhao, Yichao Zhou, Zeyu Li, Wei Wang, and Kai-Wei Chang. 2018. Learning gender-neutral word embeddings. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 4847-4853, Brussels, Belgium. Association for Computational Linguistics.
|
| 360 |
+
|
| 361 |
+
Lal Zimman. 2013. Hegemonic masculinity and the variability of gay-sounding speech: The perceived sexuality of transgender men. Journal of Language and Sexuality, 2(1):1-39.
|
| 362 |
+
|
| 363 |
+
Lal Zimman. 2017. Gender as stylistic bricolage: Transmasculine voices and the relationship between fundamental frequency and/s. Language in Society, 46(3):339-370.
|
| 364 |
+
|
| 365 |
+
Lal Zimman. 2018. Transgender voices: Insights on identity, embodiment, and the gender of the voice. Language and Linguistics Compass, 12(8):e12284.
|
| 366 |
+
|
| 367 |
+
Lal Zimman. 2020. Sociophonetics. The International Encyclopedia of Linguistic Anthropology, pages 1-5.
|
| 368 |
+
|
| 369 |
+
Lal Zimman. 2021. Gender diversity and the voice. In *The Routledge handbook of language, gender, and sexuality*, pages 69–90. Routledge.
|
| 370 |
+
|
| 371 |
+
# A Experimental Details
|
| 372 |
+
|
| 373 |
+
# A.1 Multilingual ASR Models
|
| 374 |
+
|
| 375 |
+
For both Whisper and SeamlessM4T, we used code and model checkpoints in transformers (Wolf et al., 2020). The Hub's model IDs are openai/whisper-large-v3 and facebook/seamless-m4t-v2-large, respectively. Both checkpoints correspond to the latest and best-performing versions available at the time of writing, February 2024.
|
| 376 |
+
|
| 377 |
+
We used each models's standard decoding configurations to transcribe each audio snippet.
|
| 378 |
+
|
| 379 |
+
In figure 6, we report WER results for SEAMLESS and WHISPER on the languages and datasets used in our experiments.
|
| 380 |
+
|
| 381 |
+
# A.2 Languages
|
| 382 |
+
|
| 383 |
+
We studied 19 languages in CV and Fleurs and 11 in VoxPopuli. Languages cover eight distinct language families. Due to data availability, we limited the comparison between speaker identifying with "Male" and "Other" in CV to Catalan, German, English, Spanish, and French. Table 4 reports an overview of languages and language families.
|
| 384 |
+
|
| 385 |
+
# A.3 Voice Activity Detection
|
| 386 |
+
|
| 387 |
+
While conducting our experiments, we noticed that other than records with an empty reference, datasets can contain also empty audio snippets. More precisely, these recordings do have a signal but it is mostly silence. We found this phenomenon primarily in Fleurs-es, with silence mostly coming from snippets attributed to women.
|
| 388 |
+
|
| 389 |
+
Therefore, we used pyannote.audio's pretrained neural models and code for voice activity detection.16 After counting the number of segments where voice was detected, we filter out all snippets were no segment was detected. We release the the counts and IDs of silence records in our repository.
|
| 390 |
+
|
| 391 |
+
# A.4 Speaker ID Attribution in Fleurs
|
| 392 |
+
|
| 393 |
+
Speaker IDs are crucial in our pipeline to avoid over- or under-estimating performance gaps due to overly present speakers. Since F1eurs does not provide this piece of information, we attribute it automatically.
|
| 394 |
+
|
| 395 |
+

|
| 396 |
+
(a) VoxPopuli
|
| 397 |
+
|
| 398 |
+

|
| 399 |
+
(b) Fleurs
|
| 400 |
+
|
| 401 |
+

|
| 402 |
+
(c) CV
|
| 403 |
+
|
| 404 |
+

|
| 405 |
+
Figure 6: SEAMLESS and WHISPER transcription quality. Error rate results are computed on test splits.
|
| 406 |
+
Figure 7: UMAP projections of snippets in Fleur-en. We found 13 male speakers (left) and 16 female speakers (right). Color indicates cluster ID assigned by HDBSCAN.
|
| 407 |
+
|
| 408 |
+
<table><tr><td colspan="2"></td><td>test</td><td>train</td><td>val</td><td>gender set</td><td>gender subset</td></tr><tr><td rowspan="2">Fleurs</td><td>Whisper</td><td>12.68±.11.3</td><td>12.64±.11.4</td><td>12.49±.11</td><td>12.60±.11.2</td><td>12.62±.11.2</td></tr><tr><td>S M4T</td><td>19.87±.6.4</td><td>19.72±.6.3</td><td>18.75±.6.2</td><td>19.65±.6.3</td><td>19.67±.6.3</td></tr><tr><td rowspan="2">CV</td><td>Whisper</td><td>17.51±.17.5</td><td>16.65±.19.8</td><td>17.02±.18.7</td><td>16.88±.19.2</td><td>18.45±.19.2</td></tr><tr><td>S M4T</td><td>16.42±.9.5</td><td>12.68±9.9</td><td>14.7±.8.9</td><td>13.06±.9.6</td><td>15.58±.9.3</td></tr><tr><td rowspan="2">VP</td><td>Whisper</td><td>13.59±.4.45</td><td>12.63±.3.79</td><td>12.99±.4.22</td><td>12.69±.3.8</td><td>13.32±.4.2</td></tr><tr><td>S M4T</td><td>12.74±.3.27</td><td>11.27±.2.63</td><td>12.33±.2.68</td><td>11.39±.2.6</td><td>12.54±.2.9</td></tr></table>
|
| 409 |
+
|
| 410 |
+
Table 2: Error rate distribution across datasets splits (test/train/Validation), all pre-sampled female/male records, and on the sampled gender subset we used. Results averaged over 19 languages in CV and Fleurs, and 11 for VoxPopuli.
|
| 411 |
+
|
| 412 |
+
<table><tr><td colspan="2"></td><td>test</td><td>train</td><td>val</td><td>presample_all</td><td>overall</td></tr><tr><td rowspan="2">Fleurs</td><td>Whisper</td><td>-1.18±.2.9</td><td>-0.659±.1.8</td><td>-0.255±.2.6</td><td>-0.893±.1.7</td><td>-0.997±.1.9</td></tr><tr><td>SM4T</td><td>0.153±.1.9</td><td>-0.880±.1</td><td>-0.257±.2.7</td><td>-0.735±.0.72</td><td>-0.809±.0.72</td></tr><tr><td rowspan="2">CV</td><td>Whisper</td><td>1.17±.5.7</td><td>-0.65±.2.7</td><td>0.88±.5.6</td><td>-0.14±.3.5</td><td>1.06±.5.3</td></tr><tr><td>SM4T</td><td>2.01±.5.4</td><td>-1.22±.5.9</td><td>0.40±.2.7</td><td>0.59±.2.9</td><td>1.05±.3.3</td></tr><tr><td rowspan="2">VP</td><td>Whisper</td><td>0.31±.3.5</td><td>-0.80±.0.97</td><td>-0.58±.1.9</td><td>-0.73±.0.9</td><td>-0.104±.2.2</td></tr><tr><td>SM4T</td><td>0.16±.2.8</td><td>-0.77±.0.54</td><td>-0.71±.2.1</td><td>-0.75±.0.6</td><td>-0.268±.2.2</td></tr></table>
|
| 413 |
+
|
| 414 |
+
Table 3: Average F-M ER absolute difference across datasets splits (test/train/validation), all pre-sampled female/male records, and on the sampled gender subset used in our experiments. The results are averaged over 19 languages for CV and 11 for VoxPopuli. For Fleurs, we average results over the only 9 languages comprising female/male speakers in all splits.
|
| 415 |
+
|
| 416 |
+
<table><tr><td>Language</td><td>ISO</td><td>Family</td></tr><tr><td>Japanese</td><td>ja</td><td>Japonic</td></tr><tr><td>Dutch</td><td>nl</td><td>Germanic</td></tr><tr><td>English</td><td>en</td><td></td></tr><tr><td>German</td><td>de</td><td></td></tr><tr><td>Swahili</td><td>sw</td><td>NC / Bantu</td></tr><tr><td>Yoruba</td><td>yo</td><td>NC / Volta-Niger</td></tr><tr><td>Catalan</td><td>ca</td><td>Romance</td></tr><tr><td>French</td><td>fr</td><td></td></tr><tr><td>Italian</td><td>it</td><td></td></tr><tr><td>Portuguese</td><td>pt</td><td></td></tr><tr><td>Romanian</td><td>ro</td><td></td></tr><tr><td>Spanish</td><td>es</td><td></td></tr><tr><td>Arab</td><td>ar</td><td>Semitic</td></tr><tr><td>Czech</td><td>cs</td><td>Slavic</td></tr><tr><td>Russian</td><td>ru</td><td></td></tr><tr><td>Serbian</td><td>sr</td><td></td></tr><tr><td>Slovak</td><td>sk</td><td></td></tr><tr><td>Finnish</td><td>fi</td><td>Uralic</td></tr><tr><td>Hungarian</td><td>hu</td><td></td></tr></table>
|
| 417 |
+
|
| 418 |
+
Table 4: Languages, their ISO code, and family studied in this paper.
|
| 419 |
+
|
| 420 |
+
Specifically, we encode each snippet using a pre
|
| 421 |
+
|
| 422 |
+
trained ECAPA-TDNN model for speaker verification. We use code from SpeechBrain (Ravanelli et al., 2021) and the model checkpoint with Hub ID speechbrain/spkrec-ecapa-voxceleb. Next, we cluster embeddings separately per gender using HDBSCAN (Campello et al., 2013), with code from scikit-learn. We use set min_cluster_size to 2 and use cosine similarity. Finally, we assign a numerical ID to each found cluster. Figure 7 shows an example of clustered snippets projected with UMAP (McInnes et al., 2018). We release per dataset and language IDs in our repository.
|
| 423 |
+
|
| 424 |
+
# A.5 Subset selection and data splits
|
| 425 |
+
|
| 426 |
+
To ensure the soundness of our experimental framework and of the gender subsample selection described in Section 3, we conducted preliminary analyses by comparing WER transcription quality scores (Table 2) and gender F-M gap results (Figure 3) across: $i$ ) different datasets splits (test/train/validation), ii) all female/male records available from any split, and iii) the sampled female/male subset used in our main experiments.
|
| 427 |
+
|
| 428 |
+
Since no precise information concerning the data
|
| 429 |
+
|
| 430 |
+
used to train WHISPER and SEAMLESS is publicly available, this evaluation is carried out with the goal of spotting potential data contamination issues. Namely, to ensure that we are not testing models on data samples comprised in their underlying training, thus posing the risk of obtaining unreliable results, which cannot be compared across datasets and models.
|
| 431 |
+
|
| 432 |
+
Table 2 shows no notable WER variations for Fleurs. Instead, both models perform better on the train splits of CV and VP, especially for the former dataset. The influence of the split accounted in CV and VP can thus be reflective of the F-M WER differences reported in Figure 3. Informed by such results, the gender subset used in our experiments is sampled from the test and validation split only for CV and VP, whereas for Fleurs, we leverage gender data from the whole corpus.
|
| 433 |
+
|
| 434 |
+
# A.6 Dataset Statistics
|
| 435 |
+
|
| 436 |
+
Table 5, 7, and 6 reports all collected statistics on CV, Fleurs, and VoxPopuli, respectively.
|
| 437 |
+
|
| 438 |
+
# A.7 Energy Statement
|
| 439 |
+
|
| 440 |
+
Experiments were conducted using a private infrastructure on hardware of type A100 PCIe 80GB (TDP of 250W) with carbon efficiency of 0.233 kgCO2eq/kWh. $^{17}$ Consumption is mostly due to inference to generate transcripts. We estimate a total emission of $3.6\mathrm{kgCO2eq}$ for experiments in the main body (transcripts of test and validation sets). Transcripts on training sets account for additional $104.24\mathrm{kgCO2eq}$ . No emission was directly offset. Total emissions are equivalent to driving an internal combustion engine car for $980\mathrm{km}$ . $^{18}$ Estimate was conducted using codecarbon $^{19}$ but does not account for energy for cooling the infrastructure.
|
| 441 |
+
|
| 442 |
+
# B Details on the exploratory analysis
|
| 443 |
+
|
| 444 |
+
# B.1 Acoustic Analysis
|
| 445 |
+
|
| 446 |
+
We provide further details about the acoustic analysis carried out in §5, comparing male and female speakers. Specifically, Table 9 reports the statistics of the T-tests conducted between acoustic features comparing genders across different languages and datasets, and Table 8 presents statistics on the Pearson correlation between differences in acous
|
| 447 |
+
|
| 448 |
+
tic features and error rate gaps, separately for each (dataset, model) configuration.
|
| 449 |
+
|
| 450 |
+
We discuss the results of two representative languages only: Italian and Slovak. Italian exemplifies languages with comparable performance across genders, whereas Slovak is biased towards men and belongs to the set of languages with larger gender gap trends (see §4 for details). For both languages, acoustic features are, in most cases, statistically different. As shown in Figure 8, the most significant differences are found in mean pitch values, confirming the well-known differences between males and females. The distributions align with ranges suggested by the literature (Simpson, 2009) for both languages and all datasets. In contrast, differences in speaking rate are much less evident but still statistically significant according to the T-test (see Table 9). Intensity shows the most variability across all dimensions, even within gender groups, particularly noticeable in the Fleur's dataset.[20] In Italian (VoxPopuli), there is no difference in intensity between the two gender groups ( $p = 0.356$ ), and similarly in Slovak (CV) ( $p = 0.376$ ). However, for both languages, fitting an OLS regression at the sentence level using acoustic features to predict sentence-level error rates ( $r_F$ , $r_M$ ) showed no significant contribution, similar to other languages ( $\mathbf{R}^2$ with max: 0.20 and average $_\sigma$ : 0.03 $_{\pm 0.04}$ )
|
| 451 |
+
|
| 452 |
+
# B.2 Lexical Analysis
|
| 453 |
+
|
| 454 |
+
To capture lexical phenomena, we extracted from the reference transcript of each record two sets of features. Part-of-speech tags include NOUN, PROPN, VERB, ADJ, ADV, PRON, AUX, CCONJ, DET, PART. Named entities tags include F_LOC, F_ORG, F_PER, and MISC. For each language, we used the corresponding SpaCy (https://spacy.io/models) "medium" text analyzer (e.g., for English en_core_web_sm and de_core_news_sm for German) when available. For hu an ar we used models available in Stanza (Qi et al., 2020). For yo and sw we limited the analysis to POS tags due to NE parses unavailability. We used mbeukman/xlm-roberta-base-finetuned-ner-y orub and mbeukman/xlm-roberta-base-finetuned-swahili-finetuned-ner-swahili for yo and sw, respectively (Beukman and Fokam, 2023). We left sr, sk, and cs out of this analysis since no taggers were available. We normalized
|
| 455 |
+
|
| 456 |
+
<table><tr><td>Lang</td><td># records</td><td>Seconds</td><td># Tokens</td><td># M</td><td>Gini (M)</td><td># F</td><td>Gini (F)</td><td># O</td><td>Gini (O)</td></tr><tr><td>ar</td><td>14013</td><td>4.37±1.51</td><td>19.92±17.55</td><td>319</td><td>0.66</td><td>102</td><td>0.68</td><td></td><td></td></tr><tr><td>ca</td><td>1645</td><td>6.12±1.73</td><td>17.05±6.22</td><td>265</td><td>0.22</td><td>241</td><td>0.22</td><td>8</td><td>0.26</td></tr><tr><td>cs</td><td>13746</td><td>4.60±1.38</td><td>20.77±8.71</td><td>293</td><td>0.64</td><td>39</td><td>0.61</td><td></td><td></td></tr><tr><td>de</td><td>3641</td><td>6.10±1.75</td><td>16.74±6.08</td><td>807</td><td>0.22</td><td>129</td><td>0.24</td><td>17</td><td>0.24</td></tr><tr><td>en</td><td>4938</td><td>5.96±2.28</td><td>11.08±3.99</td><td>2262</td><td>0.25</td><td>476</td><td>0.25</td><td>33</td><td>0.21</td></tr><tr><td>es</td><td>6404</td><td>6.09±1.60</td><td>15.61±5.01</td><td>1476</td><td>0.29</td><td>517</td><td>0.30</td><td>42</td><td>0.34</td></tr><tr><td>fi</td><td>1695</td><td>4.74±1.66</td><td>18.22±8.93</td><td>52</td><td>0.57</td><td>17</td><td>0.57</td><td></td><td></td></tr><tr><td>fr</td><td>4214</td><td>5.81±1.67</td><td>16.40±5.56</td><td>876</td><td>0.19</td><td>213</td><td>0.19</td><td>19</td><td>0.23</td></tr><tr><td>hu</td><td>12245</td><td>5.45±1.52</td><td>22.84±9.23</td><td>173</td><td>0.57</td><td>277</td><td>0.53</td><td></td><td></td></tr><tr><td>it</td><td>7088</td><td>6.14±1.69</td><td>17.52±6.44</td><td>888</td><td>0.29</td><td>203</td><td>0.28</td><td></td><td></td></tr><tr><td>ja</td><td>7981</td><td>5.02±2.29</td><td>22.64±15.07</td><td>1033</td><td>0.44</td><td>632</td><td>0.41</td><td></td><td></td></tr><tr><td>nl</td><td>12808</td><td>4.83±1.38</td><td>16.29±5.57</td><td>487</td><td>0.62</td><td>130</td><td>0.63</td><td></td><td></td></tr><tr><td>pt</td><td>7319</td><td>4.61±1.63</td><td>10.66±5.44</td><td>620</td><td>0.41</td><td>82</td><td>0.37</td><td></td><td></td></tr><tr><td>ro</td><td>6489</td><td>4.05±0.90</td><td>15.70±4.13</td><td>167</td><td>0.56</td><td>39</td><td>0.57</td><td></td><td></td></tr><tr><td>ru</td><td>10466</td><td>5.51±1.85</td><td>18.87±9.18</td><td>702</td><td>0.45</td><td>248</td><td>0.43</td><td></td><td></td></tr><tr><td>sk</td><td>3008</td><td>4.34±1.74</td><td>13.66±9.64</td><td>58</td><td>0.64</td><td>13</td><td>0.65</td><td></td><td></td></tr><tr><td>sr</td><td>1895</td><td>2.86±0.89</td><td>8.63±5.97</td><td>39</td><td>0.57</td><td>11</td><td>0.64</td><td></td><td></td></tr><tr><td>sw</td><td>13730</td><td>5.61±1.80</td><td>21.04±8.13</td><td>248</td><td>0.62</td><td>251</td><td>0.58</td><td></td><td></td></tr><tr><td>yo</td><td>1226</td><td>5.77±1.40</td><td>41.97±9.89</td><td>14</td><td>0.48</td><td>20</td><td>0.64</td><td></td><td></td></tr></table>
|
| 457 |
+
|
| 458 |
+
Table 5: Statistic for CV. We used validation and test sets. Total number of records, average length in seconds, number of tokens as tokenized by Whisper's pretrained tokenizer, number of unique speakers and, gini index of the snippets-per-speaker dispersion for male (M), female (F), and “other” (O) subgroups.
|
| 459 |
+
|
| 460 |
+
<table><tr><td>Lang</td><td># records</td><td>Seconds</td><td># Tokens</td><td># M</td><td>Gini (M)</td><td># F</td><td>Gini (F)</td></tr><tr><td>cs</td><td>2208</td><td>9.93±5.38</td><td>60.04±31.51</td><td>45</td><td>0.58</td><td>16</td><td>0.47</td></tr><tr><td>de</td><td>4064</td><td>8.74±5.87</td><td>32.34±20.82</td><td>147</td><td>0.55</td><td>64</td><td>0.57</td></tr><tr><td>en</td><td>3485</td><td>9.92±6.17</td><td>24.48±15.05</td><td>274</td><td>0.52</td><td>104</td><td>0.52</td></tr><tr><td>es</td><td>3130</td><td>11.56±6.78</td><td>42.89±25.15</td><td>95</td><td>0.57</td><td>48</td><td>0.48</td></tr><tr><td>fi</td><td>1141</td><td>9.99±5.44</td><td>46.65±26.61</td><td>25</td><td>0.63</td><td>16</td><td>0.45</td></tr><tr><td>fr</td><td>3341</td><td>10.23±6.15</td><td>38.19±23.92</td><td>151</td><td>0.52</td><td>84</td><td>0.54</td></tr><tr><td>hu</td><td>2145</td><td>10.47±6.05</td><td>62.48±35.59</td><td>45</td><td>0.48</td><td>21</td><td>0.50</td></tr><tr><td>it</td><td>2419</td><td>13.00±7.19</td><td>52.78±28.99</td><td>87</td><td>0.47</td><td>37</td><td>0.53</td></tr><tr><td>nl</td><td>2351</td><td>8.16±5.23</td><td>36.63±22.88</td><td>69</td><td>0.54</td><td>42</td><td>0.54</td></tr><tr><td>ro</td><td>2701</td><td>11.29±5.75</td><td>57.31±31.54</td><td>51</td><td>0.52</td><td>19</td><td>0.57</td></tr><tr><td>sk</td><td>1266</td><td>10.33±5.55</td><td>62.52±35.16</td><td>26</td><td>0.57</td><td>10</td><td>0.47</td></tr></table>
|
| 461 |
+
|
| 462 |
+
Table 6: Statistic for VoxPopuli. We used validation and test sets. Total number of records, average length in seconds, number of tokens as tokenized by Whisper's pretrained tokenizer, number of unique speakers and, gini index of the snippets-per-speaker dispersion for male (M) and female (F) subgroups.
|
| 463 |
+
|
| 464 |
+
tags from different modes accordingly (e.g., we consider Stanza's PERSON and SpaCy F_PER the same feature). Moreover, we computed lexical complexity as specified in Imani and Habil (2017), i.e., the ratio between the sum of [NOUN, PROPN, VERB, ADJ, ADV] and the sum of [PRON, AUX, CCONJ, DET, PART].
|
| 465 |
+
|
| 466 |
+
# B.3 Probing Analysis
|
| 467 |
+
|
| 468 |
+
Training and test set for probing experiments are sampled from the concatenation of each language's validation and test sets for consistency with error rate experiments. We balanced the samples on gender, stratifying on the speaker distribution.
|
| 469 |
+
|
| 470 |
+
We used standard logistic regression probes as per scikit-learn's implementation and standard parameters but a larger allowance of steps for con
|
| 471 |
+
|
| 472 |
+
vergence (n=1000). For MDL probes, we used logistic regression as the backbone classifier for comparability and operationalized the probe via the online code configuration (Voita and Titov, 2020). Following previous work (Orgad et al., 2022), we set the dataset slices to (percentage): [0.2, 0.4, 0.8, 1.6, 3.2, 6.25, 12.5, 25, 50, 100].
|
| 473 |
+
|
| 474 |
+
We probe a total of 1000 distinct positions that correspond roughly to the first tens seconds of each recording (Whisper encodes audio with 25 milliseconds-long rolling frame and stride of 10 milliseconds) (Radford et al., 2022).
|
| 475 |
+
|
| 476 |
+
# C Release Statement
|
| 477 |
+
|
| 478 |
+
The following is a list of artifacts we produced in this work that we release to facilitate future research.
|
| 479 |
+
|
| 480 |
+
<table><tr><td>Lang</td><td># records</td><td>Seconds</td><td># Tokens</td><td># M</td><td>Gini (M)</td><td># F</td><td>Gini (F)</td></tr><tr><td>ar</td><td>836</td><td>10.83±4.08</td><td>57.52±21.70</td><td>9</td><td>0.31</td><td>38</td><td>0.51</td></tr><tr><td>ca</td><td>2914</td><td>11.87±4.00</td><td>39.93±14.87</td><td>5</td><td>0.15</td><td>5</td><td>0.05</td></tr><tr><td>cs</td><td>3772</td><td>12.05±4.45</td><td>53.38±19.93</td><td>7</td><td>0.36</td><td>5</td><td>0.21</td></tr><tr><td>de</td><td>3326</td><td>12.98±6.32</td><td>37.19±13.30</td><td>4</td><td>0.07</td><td>4</td><td>0.47</td></tr><tr><td>en</td><td>2832</td><td>9.75±3.58</td><td>24.55±8.54</td><td>13</td><td>0.33</td><td>15</td><td>0.28</td></tr><tr><td>es</td><td>3082</td><td>12.16±3.80</td><td>37.88±13.67</td><td>6</td><td>0.38</td><td>7</td><td>0.35</td></tr><tr><td>fi</td><td>3482</td><td>12.74±4.43</td><td>47.38±18.27</td><td>12</td><td>0.34</td><td>18</td><td>0.47</td></tr><tr><td>fr</td><td>3194</td><td>10.25±3.58</td><td>38.80±15.06</td><td>4</td><td>0.06</td><td>6</td><td>0.15</td></tr><tr><td>hu</td><td>4374</td><td>12.09±4.12</td><td>54.90±21.68</td><td>5</td><td>0.03</td><td>5</td><td>0.05</td></tr><tr><td>it</td><td>3528</td><td>14.53±5.34</td><td>40.59±14.30</td><td>6</td><td>0.33</td><td>6</td><td>0.31</td></tr><tr><td>ja</td><td>2348</td><td>12.99±3.77</td><td>49.50±18.25</td><td>6</td><td>0.50</td><td>16</td><td>0.66</td></tr><tr><td>nl</td><td>2594</td><td>9.55±3.73</td><td>40.59±14.63</td><td>8</td><td>0.53</td><td>6</td><td>0.23</td></tr><tr><td>pt</td><td>3944</td><td>12.50±4.24</td><td>35.32±12.88</td><td>5</td><td>0.08</td><td>4</td><td>0.19</td></tr><tr><td>ro</td><td>4022</td><td>10.22±3.63</td><td>48.98±18.03</td><td>5</td><td>0.08</td><td>7</td><td>0.35</td></tr><tr><td>ru</td><td>3496</td><td>11.39±3.97</td><td>42.57±16.14</td><td>13</td><td>0.36</td><td>11</td><td>0.26</td></tr><tr><td>sk</td><td>2600</td><td>11.65±3.81</td><td>53.15±19.93</td><td>8</td><td>0.41</td><td>10</td><td>0.57</td></tr><tr><td>sr</td><td>2820</td><td>10.76±3.40</td><td>59.46±21.59</td><td>4</td><td>0.07</td><td>6</td><td>0.08</td></tr><tr><td>sw</td><td>3588</td><td>14.08±4.52</td><td>49.60±17.25</td><td>18</td><td>0.42</td><td>17</td><td>0.39</td></tr><tr><td>yo</td><td>2850</td><td>16.32±5.66</td><td>73.91±34.05</td><td>7</td><td>0.36</td><td>6</td><td>0.50</td></tr></table>
|
| 481 |
+
|
| 482 |
+
Table 7: Statistic for Fleurs. We used validation and test sets. Total number of records, average length in seconds, number of tokens as tokenized by Whisper's pretrained tokenizer, number of unique speakers and, gini index of the snippets-per-speaker dispersion for male (M) and female (F) subgroups. Speakers are extracted automatically.
|
| 483 |
+
|
| 484 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Feature</td><td>rho</td><td>p</td></tr><tr><td rowspan="6">VoxPopuli</td><td rowspan="4">SEAMLESS</td><td>Sp. rate</td><td>-0.10</td><td>0.76</td></tr><tr><td>Intensity</td><td>-0.43</td><td>0.18</td></tr><tr><td>Pitch</td><td>-0.83</td><td>0.00</td></tr><tr><td>Sp. rate</td><td>-0.33</td><td>0.32</td></tr><tr><td rowspan="2">WHISPER</td><td>Intensity</td><td>0.23</td><td>0.50</td></tr><tr><td>Pitch</td><td>-0.30</td><td>0.36</td></tr><tr><td rowspan="6">Fleurs</td><td rowspan="4">SEAMLESS</td><td>Sp. rate</td><td>0.62</td><td>0.00</td></tr><tr><td>Intensity</td><td>0.11</td><td>0.66</td></tr><tr><td>Pitch</td><td>-0.06</td><td>0.82</td></tr><tr><td>Sp. rate</td><td>0.20</td><td>0.42</td></tr><tr><td rowspan="2">WHISPER</td><td>Intensity</td><td>-0.26</td><td>0.29</td></tr><tr><td>Pitch</td><td>-0.53</td><td>0.02</td></tr><tr><td rowspan="6">CV</td><td rowspan="4">SEAMLESS</td><td>Sp. rate</td><td>-0.51</td><td>0.02</td></tr><tr><td>Intensity</td><td>-0.25</td><td>0.31</td></tr><tr><td>Pitch</td><td>0.20</td><td>0.41</td></tr><tr><td>Sp. rate</td><td>-0.39</td><td>0.10</td></tr><tr><td rowspan="2">WHISPER</td><td>Intensity</td><td>-0.10</td><td>0.69</td></tr><tr><td>Pitch</td><td>0.38</td><td>0.11</td></tr></table>
|
| 485 |
+
|
| 486 |
+
Table 8: Correlation between Acoustic Features and Error Rate Gaps. Pearson correlation between the difference of the mean of subgroups an and $E(r_{F}, r_{M})$ . In bold the statistically relevant correlation ( $p < 0.05$ ).
|
| 487 |
+
|
| 488 |
+
- Transcriptions obtained with Whisper and SeamlessM4T of the full datasets Mozilla Common Voice, Google Fleurs, and Meta Vox-Populi.
|
| 489 |
+
- Segment-level annotations of segments with voice activity extracted from the voice activity detection pipeline (§A.3).
|
| 490 |
+
- Segment-level acoustic features from our acoustic analysis ( $\S 5$ ).
|
| 491 |
+
|
| 492 |
+
- Segment-level embeddings and cluster IDs extracted on Fleurs with the speaker identification pipeline (§A.4).
|
| 493 |
+
- Extensive statistics on speaker, gender, and record distributions on the three datasets—which we could not find anywhere else online.
|
| 494 |
+
- Dataset samples on which we computed the quality and gap metrics for reproducibility purposes ( $\S 3$ ).
|
| 495 |
+
|
| 496 |
+
<table><tr><td></td><td>ar</td><td>ca</td><td>cs</td><td>de</td><td>en</td><td>es</td><td>fi</td><td>fr</td><td>hu</td><td>it</td><td>ja</td><td>nl</td><td>pt</td><td>ro</td><td>ru</td><td>sk</td><td>sr</td><td>sw</td><td>yo</td></tr><tr><td colspan="20">Fleurs</td></tr><tr><td>Intensity</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Pitch</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Speaking rate</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✘</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✘</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td colspan="20">VoxPopuli</td></tr><tr><td>Intensity</td><td></td><td>✓</td><td>✓</td><td>✘</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✘</td><td></td><td>✓</td><td></td><td>✓</td><td></td><td>✓</td><td></td><td></td><td></td></tr><tr><td>Pitch</td><td></td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td></td><td>✓</td><td></td><td>✓</td><td></td><td>✓</td><td></td><td></td><td></td></tr><tr><td>Speaking rate</td><td></td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✘</td><td>✘</td><td>✓</td><td>✓</td><td></td><td>✘</td><td></td><td>✓</td><td></td><td>✓</td><td></td><td></td><td></td><td></td></tr><tr><td colspan="20">CV</td></tr><tr><td>Intensity</td><td>✘</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✘</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✘</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Pitch</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Speaking rate</td><td>✓</td><td>✘</td><td>✓</td><td>✓</td><td>✘</td><td>✘</td><td>✓</td><td>✘</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✘</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr></table>
|
| 497 |
+
|
| 498 |
+
Table 9: Statistical differences of acoustic features between genders, separately by language and dataset.
|
| 499 |
+
√ indicates statistical difference, × indicates no difference (independent-sample Student's T-test, $p < 0.05$ ).
|
| 500 |
+
|
| 501 |
+

|
| 502 |
+
|
| 503 |
+

|
| 504 |
+
|
| 505 |
+

|
| 506 |
+
|
| 507 |
+

|
| 508 |
+
|
| 509 |
+

|
| 510 |
+
|
| 511 |
+

|
| 512 |
+
Figure 8: Acoustic features. Distributions of mean intensity, mean pitch, and speaking rate for Italian and Slovak on our three datasets. "Male" (green, solid line), "Female" (red, dashed line).
|
| 513 |
+
|
| 514 |
+

|
| 515 |
+
|
| 516 |
+

|
| 517 |
+
ru
|
| 518 |
+
|
| 519 |
+

|
| 520 |
+
CS
|
| 521 |
+
|
| 522 |
+

|
| 523 |
+
es
|
| 524 |
+
|
| 525 |
+

|
| 526 |
+
ro
|
| 527 |
+
|
| 528 |
+

|
| 529 |
+
ja
|
| 530 |
+
|
| 531 |
+

|
| 532 |
+
ar
|
| 533 |
+
Embedding position in time (s)
|
| 534 |
+
|
| 535 |
+

|
| 536 |
+
|
| 537 |
+

|
| 538 |
+
sr
|
| 539 |
+
|
| 540 |
+

|
| 541 |
+
it
|
| 542 |
+
|
| 543 |
+

|
| 544 |
+
ca
|
| 545 |
+
|
| 546 |
+

|
| 547 |
+
SW
|
| 548 |
+
|
| 549 |
+

|
| 550 |
+
hu
|
| 551 |
+
Embedding position in time (s)
|
| 552 |
+
|
| 553 |
+

|
| 554 |
+
nI
|
| 555 |
+
|
| 556 |
+

|
| 557 |
+
sk
|
| 558 |
+
|
| 559 |
+

|
| 560 |
+
fr
|
| 561 |
+
|
| 562 |
+

|
| 563 |
+
pt
|
| 564 |
+
|
| 565 |
+

|
| 566 |
+
yo
|
| 567 |
+
|
| 568 |
+

|
| 569 |
+
fi
|
| 570 |
+
Embedding position in time (s)
|
| 571 |
+
|
| 572 |
+

|
| 573 |
+
(a) Probes trained on the original labels.
|
| 574 |
+
|
| 575 |
+

|
| 576 |
+
ru
|
| 577 |
+
|
| 578 |
+

|
| 579 |
+
CS
|
| 580 |
+
|
| 581 |
+

|
| 582 |
+
es
|
| 583 |
+
|
| 584 |
+

|
| 585 |
+
ro
|
| 586 |
+
|
| 587 |
+

|
| 588 |
+
ia
|
| 589 |
+
|
| 590 |
+

|
| 591 |
+
ar
|
| 592 |
+
Embedding position in time (s)
|
| 593 |
+
(b) Probes trained on the shuffled labels.
|
| 594 |
+
Figure 9: F-M gender probing F1 Macro performance for every contextual embedding in Whisper-large-v3 within the first 10 seconds (x axis). Logistic regression probe with L2 regularization trained on standard (a) and shuffled (b) training labels. Orange lines indicate the average length of test segments. All CV languages.
|
| 595 |
+
|
| 596 |
+

|
| 597 |
+
en
|
| 598 |
+
|
| 599 |
+

|
| 600 |
+
sr
|
| 601 |
+
|
| 602 |
+

|
| 603 |
+
it
|
| 604 |
+
|
| 605 |
+

|
| 606 |
+
ca
|
| 607 |
+
|
| 608 |
+

|
| 609 |
+
sw
|
| 610 |
+
|
| 611 |
+

|
| 612 |
+
hu
|
| 613 |
+
Embedding position in time (s)
|
| 614 |
+
|
| 615 |
+

|
| 616 |
+
nl
|
| 617 |
+
|
| 618 |
+

|
| 619 |
+
sk
|
| 620 |
+
|
| 621 |
+

|
| 622 |
+
fr
|
| 623 |
+
|
| 624 |
+

|
| 625 |
+
pt
|
| 626 |
+
|
| 627 |
+

|
| 628 |
+
yo
|
| 629 |
+
|
| 630 |
+

|
| 631 |
+
fi
|
| 632 |
+
Embedding position in time (s)
|
2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee37ff3f8db37afba9e1ffc239dbadefcaacfb990a75fcab7d840dc7800f101d
|
| 3 |
+
size 1146445
|
2024/Twists, Humps, and Pebbles_ Multilingual Speech Recognition Models Exhibit Gender Performance Gaps/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/1d2b554e-cf0c-46d1-9ba0-ee7589838c7b_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/1d2b554e-cf0c-46d1-9ba0-ee7589838c7b_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/1d2b554e-cf0c-46d1-9ba0-ee7589838c7b_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edd19f6eb00c2ea9b3f1af8c7b959a9b5b7c2a0e7fea6a32635819c7105678c4
|
| 3 |
+
size 5922342
|
2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/full.md
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNICORN: A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks
|
| 2 |
+
|
| 3 |
+
Yuanhao Xiong $^{1,2}$ , Yixin Nie $^{2}$ , Haotian Liu $^{3}$ , Boxin Wang $^{4}$ , Jun Chen $^{2}$ , Rong Jin $^{2}$ , Cho-Jui Hsieh $^{1}$ , Lorenzo Torresani $^{2}$ , Jie Lei $^{2}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ UCLA, $^{2}$ Meta, $^{3}$ University of Wisconsin-Madison, $^{4}$ UIUC
|
| 6 |
+
|
| 7 |
+
{yhxiong, chohsieh}@cs.ucla.edu, lht@cs.wisc.edu, boxinw2@illinois.edu
|
| 8 |
+
|
| 9 |
+
{ynie, junchen20, rongjinml, torresani, jielei}@meta.com
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
The great success of large language models has encouraged the development of large multimodal models, with a focus on image-language interaction. Despite promising results in various image-language downstream tasks, it is still challenging and unclear how to extend the capabilities of these models to the more complex video domain, especially when dealing with explicit temporal signals. To address the problem in existing large multimodal models, in this paper we adopt visual instruction tuning to build a unified causal video-oriented language modeling framework, named UNICORN. Specifically, we collect a comprehensive dataset under the instruction-following format, and instruction-tune the model accordingly. Experimental results demonstrate that without customized training objectives and intensive pre-training, UNICORN can achieve comparable or better performance on established temporal video-language tasks including moment retrieval, video paragraph captioning and dense video captioning. Moreover, the instruction-tuned model can be used to automatically annotate internet videos with temporally-aligned captions. Compared to commonly used ASR captions, we show that training on our generated captions improves the performance of video-language models on both zero-shot and fine-tuning settings. Source code can be found at https://github.com/xyh97/UNICORN.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Recent breakthroughs in large language models (LLMs) (Ouyang et al., 2022; cha, 2023; OpenAI, 2023; vic, 2023; Touvron et al., 2023a,b) have reignited the enthusiasm about the achievement of artificial general intelligence where a single foundation model can accomplish a large variety of downstream tasks based on human instructions. Towards this ultimate goal, the community has witnessed promising advances in large multimodal models (LMMs) for vision and language (Liu et al.,
|
| 18 |
+
|
| 19 |
+
# Visual input example, Playing Tennis (34s in total):
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
|
| 23 |
+
Task 1: Moment Retrieval
|
| 24 |
+
|
| 25 |
+
<table><tr><td>Instruction</td><td>Please predict start and end time of the following moment: He hits the ball over the net several times. The output format should be <start><end>.</td></tr></table>
|
| 26 |
+
|
| 27 |
+
Response <16><48>
|
| 28 |
+
Task 2: Video Paragraph Captioning
|
| 29 |
+
|
| 30 |
+
<table><tr><td>Instruction</td><td>Provide a detailed description of the video, capturing its key moments.</td></tr><tr><td>Response</td><td>A man is bouncing a tennis ball on an outdoor court. He hits the ball over the net several times. The balls roll over to the opposing fence, broken in half from the impact.</td></tr></table>
|
| 31 |
+
|
| 32 |
+
Table 1: Example of instruction-following data. The response of moment retrieval is computed by time tokenization for the window [7.7s, 22.1s] with 75 bins.
|
| 33 |
+
|
| 34 |
+
2023b,a; Wang et al., 2023b; Dai et al., 2023; Bai et al., 2023; Li et al., 2023a; Zhu et al., 2023), the two essential modalities to understand the world. Most of these LMMs follow the pipeline of visual instruction tuning (Liu et al., 2023b) and demonstrate strong capabilities in vision-centric tasks like image classification and object detection (Wang et al., 2023b), and vision-language tasks like image captioning and visual question answering (Dai et al., 2023; Liu et al., 2023b).
|
| 35 |
+
|
| 36 |
+
Despite impressive results in the image domain, videos, another important data format in the vision modality, are under-explored. In contrast to images, videos have an extra temporal dimension and are much more difficult to process due to increased complexity. Existing approaches either directly apply LMMs trained on image-text pairs (Dai et al., 2023) to the video domain without fine-tuning or develop video-oriented LMMs (Zhang et al., 2023a; Muhammad Maaz and Khan, 2023; Li et al., 2023c) on short trimmed videos. However, such models
|
| 37 |
+
|
| 38 |
+
focus more on problems which are less dependent on temporal information like action recognition and video question answering. It still remains unclear how to solve video-language tasks that requires explicitly modeling temporal information, including moment retrieval (Hendricks et al., 2017; Lei et al., 2021), video paragraph captioning (Park et al., 2019), and dense video captioning (Krishna et al., 2017) in one single LMM.
|
| 39 |
+
|
| 40 |
+
In fact, the inherent disparities among these task formats pose a challenge to the development of such models: moment retrieval requires predicting the temporal location of a moment described by language, paragraph captioning entails to write a coherent story from an untrimmed video, while the goal of dense video captioning is to generate captions and temporal locations for a series of moments simultaneously. These tasks are typically solved individually by specifically-designed models (Lei et al., 2020a; Yang et al., 2023; Lei et al., 2021; Lin et al., 2023). While attempts have been made to unify these temporal video-language tasks (Wang et al., 2023a; Yan et al., 2023), separate modules and training objectives tailored for each task are involved in these methods, making them complicated in both training and inference.
|
| 41 |
+
|
| 42 |
+
To address the above challenge, we propose a UNIFIED Causal videO-oRiented laNguage modeling framework (UNICORN) that unifies the tasks as a simple yet generic language modeling problem. For moment retrieval and video paragraph captioning, we convert original training datasets into corresponding instruction-following formats, as shown in Table 1. In particular, inspired by previous efforts in discretizing bounding box coordinates (Chen et al., 2022; Peng et al., 2023; Zhang et al., 2023b), our approach represents the continuous event boundaries as a sequence of discrete time tokens and processes them similarly as language tokens. On a range of datasets and tasks, we show that this unified approach achieve comparable or better performance over previous methods.
|
| 43 |
+
|
| 44 |
+
On the other hand, the development of large video-language models is hindered by the lack of semantically- and temporally-aligned videotext pairs, an issue unique to the video domain. As pointed out in (Han et al., 2022), the models pre-trained on commonly-used noisy datasets such as HowTo100M (Miech et al., 2019) and YT-Temporal-1B (Zellers et al., 2022) suffer from the misalignment between videos and ASR captions severely. Thanks to the generalization ability of
|
| 45 |
+
|
| 46 |
+
LMMs, our UNICORN can be leveraged to automatically generate captions for internet videos. We demonstrate that qualitatively the generated captions are better semantically- and temporally-aligned with the videos than the original ASR captions, and quantitatively incorporating our generated captions in either instruction-tuning for moment retrieval or end-to-end video representation learning leads to significant performance gains.
|
| 47 |
+
|
| 48 |
+
Our contributions are threefold: (1) We propose UNICORN, a simple and generic framework that unifies various temporal video-language tasks via language modeling; (2) Our approach achieves comparable or better performance to state-of-the-art methods on multiple downstream tasks, including moment retrieval, video paragraph captioning, and dense video captioning; (3) Compared to existing captions, those automatically generated by our method have shown to be better aligned with the videos, both semantically and temporally. Empirically, the generated captions have demonstrated to improve performance of models trained on them. Our automatic annotation pipeline is useful for empowering the development of future LMMs.
|
| 49 |
+
|
| 50 |
+
# 2 Related Work
|
| 51 |
+
|
| 52 |
+
Large Multimodal Models. Large language models are taking the world by storm with their incredible capabilities to answer questions in a coherent and informative way aligned with human instructions (cha, 2023; Ouyang et al., 2022; vic, 2023; OpenAI, 2023; Touvron et al., 2023a,b). The universality and generalization of LLMs make it potential to unlock the door to a foundation general-purpose model. Towards this goal, a variety of large multimodal models are emerging to bridge different modalities, in particular vision and language (Liu et al., 2023b,a; Wang et al., 2023b; Dai et al., 2023; Bai et al., 2023; Li et al., 2023a; Zhu et al., 2023). Such LMMs adopt the pipeline of visual instruction tuning (Liu et al., 2023b) by converting original datasets into the instruction-following format and casting traditional vision problems as a language modeling task. For instance, LLaVa (Liu et al., 2023b) generates multimodal language-image instructional data using GPT-4 (OpenAI, 2023) and develops an LMM connecting a pre-trained image encoder and a pre-trained large language model to deal with vision-language tasks. InstructBLIP (Dai et al., 2023) enlarges the task coverage by gathering 26 publicly available datasets and proposes
|
| 53 |
+
|
| 54 |
+
an instruction-aware visual feature extraction process. These models achieve the state-of-the-art performance on numerous downstream tasks, ranging from vision-centric ones such as image classification and object detection to vision-language ones such as image captioning and visual reasoning. Despite efforts in understanding images, few attempts have been made for video-language tasks due to additional complexity. Thus, in this paper we study how to model the interaction between long untrimmed videos and captions from the perspective of language modeling.
|
| 55 |
+
|
| 56 |
+
Video-Language Modeling. Video-language tasks have been widely studied, especially these require specific temporal modeling, such as moment retrieval (Lei et al., 2021; Lin et al., 2023; Mun et al., 2020; Zeng et al., 2020), video paragraph captioning (Lei et al., 2020a; Park et al., 2019; Yang et al., 2023; Wang et al., 2021), and dense video captioning (Krishna et al., 2017; Yang et al., 2023; Wang et al., 2021). Some methods (Lin et al., 2023; Yan et al., 2023; Wang et al., 2023a; Li et al., 2022) pre-train a model on large-scale corpus to generate latent video and language representations, which can be then adapted to different downstream tasks. This line of work typically requires elaborate architectural designs and multiple training objectives tailored for each target task. In contrast, we propose a more elegant unified framework to integrate various temporal video-language tasks into a simple yet generic language modeling problem. Compared with existing video-oriented LMMs targeting at short video clips (Li et al., 2023c; Zhang et al., 2023a; Muhammad Maaz and Khan, 2023), UNICORN attaches more attention to long untrimmed videos. The most relevant method to UNICORN is Vid2Seq (Yang et al., 2023), which also formulates dense video captioning as language modeling. However, it should be emphasized that Vid2Seq depends heavily on video-language pre-training and is unable to handle tasks other than captioning. On the contrary, by visual instruction tuning on high quality datasets, UNICORN demonstrates superior performance on a series of video-language tasks without intensive pre-training. Moreover, our method can be applied towards noisy video datasets to generate better-aligned captions.
|
| 57 |
+
|
| 58 |
+
# 3 Method
|
| 59 |
+
|
| 60 |
+
In this section, we introduce our unified framework UNICORN in detail. We start by discussing how to
|
| 61 |
+
|
| 62 |
+
transform the original datasets for different downstream tasks into the general instruction-following format in Section 3.1. Then in Section 3.2, we describe the model architecture designed for videolanguage interaction. In Section 3.3, we present the training pipeline of UNICORN including datasets and training objective. Finally in Section 3.3, we demonstrate how to conduct inference with the obtained model on downstream tasks together with the process to generate captions for noisy datasets.
|
| 63 |
+
|
| 64 |
+
# 3.1 Instruction-Following Data Generation
|
| 65 |
+
|
| 66 |
+
As the ultimate goal is to unify various temporal video-language tasks, we cast moment retrieval and video paragraph captioning datasets into a common instruction following format. For dense video captioning, it can be regarded as a two-stage procedure of paragraphing captioning and moment retrieval and thus no specific training data are required. We provide details in following sections.
|
| 67 |
+
|
| 68 |
+
Moment Retrieval In moment retrieval (MR) (Hendricks et al., 2017; Gao et al., 2017; Krishna et al., 2017; Lei et al., 2020b, 2021), a continuous time window is predicted given an untrimmed video and a language moment query. With the task definition, an example instruction can be: "Please predict start and end time of the following moment: {target}", where {target} is replaced by the specific query. We curate a template instruction list in Appendix B, to explicitly teach the underlying model the concepts of the task and the objective.
|
| 69 |
+
|
| 70 |
+
A key challenge here is how to generate output sequences to represent moment locations. To reduce the exploration space for more controllable predictions, we follow previous sequence generation strategies for such continuous values (Chen et al., 2022; Peng et al., 2023; Yang et al., 2023; Wang et al., 2023b; Chen et al., 2023), and discretize the timestamp $t$ in a $d$ -s long video into an integer in $\{0,1,\dots,N_{\mathrm{bin}} - 1\}$ with $N_{\mathrm{bin}}$ equally-spaced bins by $\lfloor t\times N_{\mathrm{bin}}\rfloor /d$ . Moreover, since recent LLMs exhibit surprising performance in mathematical reasoning, we use the original vocabulary without extra time tokens, which in turn reduces the number of trainable parameters and avoids pretraining to re-acquire the ability to reason about numbers. Meanwhile, to distinguish our discrete relative timestamps from other numerical expressions such as "5 apples", we enclose the timestamp values by "<start><end>" where start and end are replaced by corresponding converted timestamps. For instance, the moment in Table 1 starting at
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
Figure 1: UNICORN framework using video paragraph captioning as an example. We encode each video frame separately and concatenate their resulting visual tokens to represent the video. We highlight the encoding process of one frame in red. All modules are instruction-tuned with the language modeling loss except the image encoder.
|
| 74 |
+
|
| 75 |
+
7.7s and ending at 22.1s within a 34s-long video is transformed into the desired output sequence $"<16><48>"$ after our proposed time tokenization with 75 bins. To make output predictions consistent in format, we append a language constraint to our instruction: "The output format should be <start><end)." For a moment query associated with multiple time windows, we regard each query-location pair as an individual data sample.
|
| 76 |
+
|
| 77 |
+
Video Paragraph Captioning The task of video paragraph captioning (VPC) (Park et al., 2019; Lei et al., 2020a) aims at generating a set of coherent sentences to describe an untrimmed video that contains several events. While previous pipelines (Park et al., 2019; Lei et al., 2020a) segment the video into multiple clips from ground-truth event boundary proposals, our method takes as input frames sampled from the whole video together with the instruction "Provide a detailed description of the given video, capturing its key moments". We generate a diverse template set in Appendix B to reduce overfitting and strengthen the understanding of the task. We leverage the paragraph caption of the target video as the prediction.
|
| 78 |
+
|
| 79 |
+
Dense Video Captioning The goal of dense video captioning (DVC) (Krishna et al., 2017) is to generate multiple corresponding captions for a series of events together with their temporal locations from the untrimmed video. It is much harder than moment retrieval and paragraph captioning since it requires predicting events and their timestamps simultaneously. The most straightforward way to convert the task into the instruction-following format is to
|
| 80 |
+
|
| 81 |
+
construct a sequence with both events and locations given a specific input prompt. However, design choices such as event serialization (e.g., chronological or random) and where to insert time windows might affect the performance significantly (Chen et al., 2022; Yang et al., 2023). Furthermore, the training of such models is challenged by the longer input sequence with both timestamps and event descriptions. It also takes extra computational costs to learn redundant information from moment retrieval and video paragraph captioning again. Considering the inherent property of DVC, we find that it can be naturally decomposed into a two-stage procedure of video paragraph captioning followed by moment retrieval. Thus, no additional training data are required and this task can be addressed at inference-time by the model instruction-tuned on two tasks above, with more details in Section 3.3.
|
| 82 |
+
|
| 83 |
+
# 3.2 Model Architecture
|
| 84 |
+
|
| 85 |
+
To bridge together video frames and natural language instructions as the ultimate input sequence, we propose a large multimodal language model, demonstrated in Figure 1. Specifically, a sequence of visual tokens are obtained by feeding frames and the corresponding instruction from an untrimmed video into our per-frame encoding module. Visual tokens are then processed by a projection layer to the same latent space as the large language model (LLM). The LLM takes the concatenation of visual tokens and instruction tokens as input and generates the desired output given different task instructions.
|
| 86 |
+
|
| 87 |
+
Compared with image-language interaction, few attempts have been made in the video domain due
|
| 88 |
+
|
| 89 |
+
to increased complexity. However, using image encoders to conduct per-frame encoding for videos by brute force will lead to an extremely long sequence of visual tokens proportional to the number of frames. On the other hand, a completely new encoder might require a considerable amount of training to align modalities of vision and language again. To strike a balance between two aforementioned issues, we resort to the recently proposed InstructBLIP (Dai et al., 2023) with a Q-Former. Specifically, Q-Former is a stack of self-attention and cross-attention layers with a number of learnable query tokens and aims at compressing the information of image embeddings and reducing the number of vision tokens. On top of Q-Former, we make some adoptions to handle the video input. In detail, our method first extracts $n_q$ visual tokens from each frame using the frame-based encoding of the original Q-Former. For efficiency, we then apply average pooling in a frame-wise manner, which results in one token for each frame. Given a video of $N$ frames, these $N$ tokens are further processed by a module with two self-attention layers to integrate temporal information. Our design maintains a reasonable length of visual tokens for instruction tuning and takes advantage of pre-trained LLMs for feature alignment between the two modalities.
|
| 90 |
+
|
| 91 |
+
# 3.3 Training and Inference
|
| 92 |
+
|
| 93 |
+
With the data in instruction-following format, we now present a unified framework of instruction tuning on various downstream tasks.
|
| 94 |
+
|
| 95 |
+
Training. The instruction-following format makes it feasible to train the model to predict next tokens with an auto-regressive language modeling loss. Given input video frames $X = \{x_{i}\}_{i=1}^{N}$ and task instruction $Y = \{y_{j}\}_{j=1}^{M}$ , we maximize the log likelihood of the output sequence $Z = \{z_{k}\}_{k=1}^{L}$ : $\max \sum_{k=1}^{L} \log p_{\theta}(z_{k}|X,Y,z_{1:k-1})$ , where $L$ is the output sequence length, $p_{\theta}$ is the output probability distribution over the LLM vocabulary given model parameters $\theta$ . We finetune the whole model except the image encoder using LoRA (Hu et al., 2022).
|
| 96 |
+
|
| 97 |
+
Inference. For moment retrieval and paragraph captioning, we prompt the instruction tuned model using corresponding task instructions to generate responses via beam search. For dense video captioning, we divide it into two stages, where the model first generates a paragraph caption, and then temporally locate each sentence in the paragraph with moment retrieval task instruction.
|
| 98 |
+
|
| 99 |
+
# 4 Experiments
|
| 100 |
+
|
| 101 |
+
In this section, we evaluate UNICORN comprehensively against state-of-the-art methods to show its effectiveness. We first introduce experimental setup in Section 4.1. Then we present results on downstream tasks including moment retrieval, video paragraph captioning and dense video captioning in Section 4.2. Ablation studies are conducted in Section 4.3 for better understanding of our designs. Finally, in Section 4.4 we investigate the quality of the automatic annotation generated by UNICORN on HowTo100M.
|
| 102 |
+
|
| 103 |
+
# 4.1 Experimental Setups
|
| 104 |
+
|
| 105 |
+
Architecture. The backbone of our video encoding module is adapted from InstructBLIP (Dai et al., 2023). Specifically, we implement the video encoder with the same image encoder (ViTG/14) (Fang et al., 2023), Q-Former with 32 learnable query embeddings and a fully-connected projection layer as the original InstructBLIP structure, plus a temporal modeling module with 2 self-attention layers. For the language side, we select Vicuna-7B (vic, 2023), a publicly available LLM fine-tuned from LLaMa (Touvron et al., 2023a).
|
| 106 |
+
|
| 107 |
+
Datasets. Rather than intensive pre-training on a large scale noisy dataset without annotations, we directly fine-tune our model on a comprehensive set of publicly available video-language datasets, including QVHighlights (Lei et al., 2021), CharadesSTA (Gao et al., 2017), ActivityNet Captions (Krishna et al., 2017), and YouCook2 (Zhou et al., 2018a). The collection covers various domains with different length distributions. More details about datasets are included in Appendix C.
|
| 108 |
+
|
| 109 |
+
Implementation details. We adopt LAVIS (Li et al., 2023b) under BSD 3-Clause License to run all the experiments and our usage is compatible with its license. The model is instruction tuned for 5 epochs with a batch size of 32. We randomly sample a task at a time based on data size. We use AdamW (Loshchilov and Hutter, 2019) with $\beta_{1} = 0.9$ , $\beta_{2} = 0.999$ , and weight decay 0.05 for optimization. The learning rate is warmuped from $10^{-6}$ to $10^{-4}$ in the first epoch, followed by a cosine decay with a minimum of $10^{-5}$ . We freeze the image encoder and fine-tune the rest of the model, with LoRA applied on the LLM. There are around 243M trainable parameters. UNICORN is trained with 8 NVIDIA A100 (80G) GPUs in 12 hours.
|
| 110 |
+
|
| 111 |
+
Evaluation. For moment retrieval, we evaluate
|
| 112 |
+
|
| 113 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">QVHighlights</td><td colspan="3">Charades-STA</td><td colspan="3">ActivityNet Captions</td></tr><tr><td>R@0.5</td><td>R@0.7</td><td>mAP avg</td><td>R@0.5</td><td>R@0.7</td><td>mIoU</td><td>R@0.5</td><td>R@0.7</td><td>mIoU</td></tr><tr><td>LGI (Mun et al., 2020)</td><td>—</td><td>—</td><td>—</td><td>59.5</td><td>35.5</td><td>51.4</td><td>41.5</td><td>23.1</td><td>41.1</td></tr><tr><td>2D TAN (Zhang et al., 2020b)</td><td>—</td><td>—</td><td>—</td><td>46.0</td><td>27.5</td><td>41.2</td><td>44.5</td><td>26.5</td><td>—</td></tr><tr><td>VSLNet (Zhang et al., 2020a)</td><td>—</td><td>—</td><td>—</td><td>42.7</td><td>24.1</td><td>41.6</td><td>43.2</td><td>26.2</td><td>43.2</td></tr><tr><td>MDETR (Lei et al., 2021)</td><td>59.8</td><td>40.3</td><td>36.1</td><td>52.1</td><td>30.6</td><td>45.5</td><td>—</td><td>—</td><td>—</td></tr><tr><td>GVL (Wang et al., 2023a)</td><td>—</td><td>—</td><td>—</td><td>—</td><td>—</td><td>—</td><td>48.9</td><td>27.2</td><td>46.4</td></tr><tr><td>UnLoc (Yan et al., 2023)</td><td>64.5</td><td>48.8</td><td>—</td><td>58.1</td><td>35.4</td><td>—</td><td>48.0</td><td>29.7</td><td>—</td></tr><tr><td>UniVTG (Lin et al., 2023)</td><td>58.9</td><td>40.9</td><td>35.5</td><td>58.0</td><td>35.6</td><td>50.1</td><td>—</td><td>—</td><td>—</td></tr><tr><td>UniVTG, PT (Lin et al., 2023)</td><td>65.4</td><td>50.1</td><td>43.6</td><td>60.2</td><td>38.5</td><td>52.2</td><td>—</td><td>—</td><td>—</td></tr><tr><td>UNICORN</td><td>68.4</td><td>51.9</td><td>45.0</td><td>69.0</td><td>45.6</td><td>58.9</td><td>48.4</td><td>29.8</td><td>47.1</td></tr></table>
|
| 114 |
+
|
| 115 |
+
on QVHighlights, Charades-STA, and ActivityNet Captions. We report the standard metrics Recall at 1 under temporal Intersection over Union (IoU) thresholds of 0.5 and 0.7, abbreviated as R@0.5 and R@0.7. Besides, we use the average mAP over IoU thresholds [0.5:0.05:0.95] on QVHighlights with multiple ground-truth segments for one moment, and mean IoU (mIoU) for the other two datasets. For video paragraph captioning, we use commonly-adopted metrics CIDEr (Vedantam et al., 2015) (C) and METEOR (Banerjee and Lavie, 2005) (M) and report results on YouCook2 and ActivityNet Captions. As to dense video captioning, we follow the existing protocol (Krishna et al., 2017) to compute captioning metrics over the matched pairs between generated sentences and the ground truth. SODA_c (Fujita et al., 2020) (S) is also used to measure the temporal coherence for a set of captions. This task is evaluated on YouCook2 and ActivityNet Captions as well.
|
| 116 |
+
|
| 117 |
+
# 4.2 Results
|
| 118 |
+
|
| 119 |
+
We evaluate our instruction-tuned model on three video-language tasks: moment retrieval, video paragraph captioning, and dense video captioning. Note that all results are obtained from one shared model and different tasks are addressed by changing the prompting instructions at inference time only.
|
| 120 |
+
|
| 121 |
+
Moment retrieval. In Table 2, our method is compared with state-of-the-art algorithms for this task on three representative datasets, QVHighlights (Lei et al., 2021), Charades-STA (Gao et al., 2017), and ActivityNet Captions (Krishna et al., 2017). It can be observed that our method achieves comparable (mostly better) performance on all three datasets. In particular, on QVHighlights we achieve 68.4, 51.9, and 45.0 for R@0.5, R@0.7 and average mAP respectively, improving the best-performing baseline UniVTG with pre-training substantially by +3.0,
|
| 122 |
+
|
| 123 |
+
Table 2: Moment retrieval on QVHighlights (test), Charades-STA (test), and ActivityNet Captions (val_2). We bold the best, underline the second-best.
|
| 124 |
+
|
| 125 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Backbone</td><td colspan="2">YouCook2</td><td colspan="2">ActivityNet</td></tr><tr><td>C</td><td>M</td><td>C</td><td>M</td></tr><tr><td colspan="6">With GT Proposals</td></tr><tr><td>VTransformer (Zhou et al., 2018b)</td><td>V (ResNet-200) + F</td><td>32.3</td><td>15.7</td><td>22.2</td><td>15.6</td></tr><tr><td>Transformer-XL (Dai et al., 2019)</td><td>V (ResNet-200) + F</td><td>26.4</td><td>14.8</td><td>21.7</td><td>15.1</td></tr><tr><td>MART (Lei et al., 2020a)</td><td>V (ResNet-200) + F</td><td>35.7</td><td>15.9</td><td>23.4</td><td>15.7</td></tr><tr><td>GVDSup (Zhou et al., 2019)</td><td>V (ResNet-101) + F + O</td><td>—</td><td>—</td><td>22.9</td><td>16.4</td></tr><tr><td>AdvInf (Park et al., 2019)</td><td>V (ResNet-101) + F + O</td><td>—</td><td>—</td><td>21.0</td><td>16.6</td></tr><tr><td>PDVC (Wang et al., 2021)</td><td>V + F (TSN)</td><td>—</td><td>—</td><td>27.3</td><td>15.9</td></tr><tr><td colspan="6">With Learned Proposals</td></tr><tr><td>MFT (Xiong et al., 2018)</td><td>V + F (TSN)</td><td>—</td><td>—</td><td>19.1</td><td>14.7</td></tr><tr><td>PDVC (Wang et al., 2021)</td><td>V + F (TSN)</td><td>—</td><td>—</td><td>20.5</td><td>15.8</td></tr><tr><td>PDVC (Wang et al., 2021)</td><td>V (CLIP)</td><td>—</td><td>—</td><td>23.6</td><td>15.9</td></tr><tr><td>TDPC (Song et al., 2021)</td><td>V (ResNet-200) + F</td><td>—</td><td>—</td><td>26.5</td><td>15.6</td></tr><tr><td>Vid2Seq (Yang et al., 2023)</td><td>V (CLIP)</td><td>—</td><td>—</td><td>28.0</td><td>17.0</td></tr><tr><td>GVL (Wang et al., 2023a)</td><td>V (TSN)</td><td>—</td><td>—</td><td>26.0</td><td>16.3</td></tr><tr><td>Video-LLaMA (Zhang et al., 2023a)</td><td>V (CLIP)</td><td>36.2</td><td>16.5</td><td>32.8</td><td>15.9</td></tr><tr><td>MovieChat (Song et al., 2023)</td><td>V (CLIP)</td><td>38.5</td><td>18.8</td><td>35.6</td><td>18.2</td></tr><tr><td>UNICORN</td><td>V (CLIP)</td><td>37.8</td><td>18.3</td><td>34.8</td><td>17.3</td></tr></table>
|
| 126 |
+
|
| 127 |
+
Table 3: Video paragraph captioning results on YouCook2 (val) and ActivityNet Captions (ae-test). V/F/O refers to visual/flow/object features.
|
| 128 |
+
|
| 129 |
+
+1.8 and +1.4. In contrast to complicated designs such as a localization loss in previous approaches, we remove most of the specification and only use a generic language modeling loss: UNICORN is mainly based on the intuition that if a model knows about where the moment is, we just need to teach it how to read the location out. In summary, UNICORN makes minimal assumptions on the task yet accomplishes it with superior performance.
|
| 130 |
+
|
| 131 |
+
Video paragraph captioning. Table 3 shows the video paragraph captioning results. In UNICORN, we consider this task as a general captioning problem. Without any customized training objectives or prior knowledge on the input such as ground-truth event proposals as in previous methods (Park et al., 2019; Lei et al., 2020a), our method demonstrates outstanding performance over other baselines under both settings of ground truth or learned proposals. It further showcases the strong adaptation of LMMs to downstream tasks through instruction tuning with high-quality instruction-following data.
|
| 132 |
+
|
| 133 |
+
Dense video captioning. We generate dense video captions following the procedure in Section 3.1 and
|
| 134 |
+
|
| 135 |
+
(a) Comparison of training strategies.
|
| 136 |
+
|
| 137 |
+
<table><tr><td rowspan="2">Training Setup</td><td colspan="3">QVHighlights</td><td colspan="2">ActivityNet</td></tr><tr><td>R@0.5</td><td>R@0.7</td><td>mAP</td><td>C</td><td>M</td></tr><tr><td>Single-task, single-dataset</td><td>66.3</td><td>51.5</td><td>42.8</td><td>33.6</td><td>16.4</td></tr><tr><td>Single-task, multi-dataset</td><td>68.2</td><td>52.3</td><td>44.8</td><td>34.6</td><td>16.9</td></tr><tr><td>Multi-task, multi-dataset</td><td>69.5</td><td>54.4</td><td>45.3</td><td>34.8</td><td>17.3</td></tr></table>
|
| 138 |
+
|
| 139 |
+
(b) The number of frames.
|
| 140 |
+
|
| 141 |
+
<table><tr><td rowspan="2">frames</td><td colspan="3">QVHighlights</td><td colspan="2">ActivityNet</td></tr><tr><td>R@0.5</td><td>R@0.7</td><td>mAP</td><td>C</td><td>M</td></tr><tr><td>25</td><td>61.5</td><td>37.4</td><td>35.0</td><td>33.4</td><td>16.9</td></tr><tr><td>50</td><td>65.4</td><td>47.9</td><td>41.4</td><td>34.5</td><td>17.0</td></tr><tr><td>75</td><td>69.5</td><td>54.4</td><td>45.3</td><td>34.8</td><td>17.3</td></tr><tr><td>100</td><td>67.8</td><td>52.8</td><td>44.7</td><td>34.6</td><td>17.3</td></tr></table>
|
| 142 |
+
|
| 143 |
+
(c) LoRA & temporal modeling.
|
| 144 |
+
|
| 145 |
+
<table><tr><td rowspan="2">LoRA</td><td rowspan="2">Temporal modeling</td><td colspan="3">QVHighlights</td><td colspan="2">ActivityNet</td></tr><tr><td>R@0.5</td><td colspan="2">R@0.7 mAP</td><td>C</td><td>M</td></tr><tr><td>X</td><td>X</td><td>60.6</td><td>36.4</td><td>33.2</td><td>23.0</td><td>16.0</td></tr><tr><td>✓</td><td>X</td><td>66.7</td><td>49.2</td><td>39.8</td><td>34.4</td><td>17.2</td></tr><tr><td>X</td><td>✓</td><td>65.5</td><td>47.0</td><td>40.4</td><td>27.6</td><td>16.8</td></tr><tr><td>✓</td><td>✓</td><td>69.5</td><td>54.4</td><td>45.3</td><td>34.8</td><td>17.3</td></tr></table>
|
| 146 |
+
|
| 147 |
+
Table 4: Ablation studies on training strategies and model designs of LoRA and temporal modeling.
|
| 148 |
+
|
| 149 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Backbone</td><td colspan="3">YouCook2</td><td colspan="3">ActivityNet</td></tr><tr><td>S</td><td>C</td><td>M</td><td>S</td><td>C</td><td>M</td></tr><tr><td>MT (Zhou et al., 2018b)</td><td>TSN</td><td>—</td><td>6.1</td><td>3.2</td><td>—</td><td>9.3</td><td>5.0</td></tr><tr><td>ECHR (Wang et al., 2020)</td><td>C3D</td><td>—</td><td>—</td><td>3.8</td><td>3.2</td><td>14.7</td><td>7.2</td></tr><tr><td>PDVC (Wang et al., 2021)</td><td>TSN</td><td>4.4</td><td>22.7</td><td>4.7</td><td>5.4</td><td>29.0</td><td>8.0</td></tr><tr><td>PDVC (Wang et al., 2021)</td><td>CLIP</td><td>4.9</td><td>28.9</td><td>5.7</td><td>6.0</td><td>29.3</td><td>7.6</td></tr><tr><td>UEDVC (Zhang et al., 2022)</td><td>TSN</td><td>—</td><td>—</td><td>—</td><td>5.5</td><td>26.9</td><td>7.3</td></tr><tr><td>E2ESG (Zhu et al., 2022)</td><td>C3D</td><td>—</td><td>25.0</td><td>3.5</td><td>—</td><td>—</td><td>—</td></tr><tr><td>Vid2Seq (Yang et al., 2023)</td><td>CLIP</td><td>5.7</td><td>25.3</td><td>—</td><td>5.9</td><td>30.2</td><td>8.5</td></tr><tr><td>GVL (Wang et al., 2023a)</td><td>TSN</td><td>4.9</td><td>26.5</td><td>5.0</td><td>6.2</td><td>32.8</td><td>8.5</td></tr><tr><td>UNICORN</td><td>CLIP</td><td>5.7</td><td>37.0</td><td>7.7</td><td>6.3</td><td>35.4</td><td>9.2</td></tr></table>
|
| 150 |
+
|
| 151 |
+
Table 5: Results of DVC on YouCook2 (val) and ActivityNet Captions (val_1 and val_2).
|
| 152 |
+
|
| 153 |
+
evaluate the performance in Table 5. It can be observed that our method takes the lead among the compared approaches, including Vid2Seq which leverages language models to predict captions and timestamps simultaneously. These promising results also validate our divide-and-conquer strategy for dense video captioning. Such an inference design makes the training more efficient without learning on redundant and lengthy DVC data again while still achieving competitive results.
|
| 154 |
+
|
| 155 |
+
# 4.3 Ablation Studies
|
| 156 |
+
|
| 157 |
+
We conduct ablation studies to analyze effects of the key components in UNICORN, including training strategies, the choice of time tokens, and various model designs. We evaluate on QVHighlights (val) for moment retrieval and ActivityNet Captions (ae-test) for video paragraph captioning. Additional analysis including base model selection can be found at Appendix D.
|
| 158 |
+
|
| 159 |
+
Training strategies. We study the effects of training strategies for UNICORN. Specifically, three strategies are considered: single-task & single dataset, single task & multi-dataset, and multitask & multi-dataset. For the single-task version, we fine-tune two separate models with corresponding instructions tailored for moment retrieval and video paragraph captioning respectively, and select one representative dataset for each task for evaluation. For the single-dataset version, we train only on the training split of the evaluation dataset (i.e., QVHighlights for moment retrieval and Activ
|
| 160 |
+
|
| 161 |
+
ityNet Captions for video paragraph captioning)
|
| 162 |
+
|
| 163 |
+
We report detailed results in Table 4a. By introducing datasets from different domains for the same task, we can improve the model's capability on the single dataset. Besides, in contrast to traditional multi-task training strategies, instruction tuning on various descriptions works as a unified approach to integrate different tasks and can even boost the performance from understanding a video from multiple perspectives. Meanwhile, it is more convenient to store only one model to accomplish distinct tasks, which narrows the gap from constructing a general-purpose foundation model.
|
| 164 |
+
|
| 165 |
+
Number of frames. By default, we evenly sample 75 frames from a video as model inputs. In Table 4b, we study the impact with #frames of 25, 50, 75, and 100. The performance generally improves when we adopt more frames while it saturates or even gets worse around 100 frames. Since the videos in the datasets we studied are usually not very long (e.g., videos in QVHighlights are on average 150 seconds long), we hypothesize that 75 frames are enough to cover the semantic information needed for the tasks. We report more results about #frames in Appendix D.
|
| 166 |
+
|
| 167 |
+
LoRA. We use a parameter-efficient fine-tuning method LoRA to fine-tune the LLM of UNICORN. In Table 4c, LoRA has been proven effective in boosting performance for downstream tasks (row 1 vs. 2 and row 3 vs. 4). It is expected that frozen LLM would not work properly as we have assigned new meanings to original digit tokens to represent discrete time bins, and LoRA training mitigates the issue without tuning the whole LLM intensively.
|
| 168 |
+
|
| 169 |
+
Temporal modeling. Since our model is adapted from image-based InstructBLIP, we include an additional module with self-attention layers to incorporate temporal information for videos in Figure 3. As shown in Table 4c, when temporal modeling is enabled from average pooling to self-attention interaction (row 1 vs. 3 and row 2 vs. 4), there is substantial improvement in moment retrieval and paragraph captioning, indicating the necessity of
|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
Figure 2: Comparison among captions from HTM-ASR, HTM-AA, and UNICORN respectively. For HTM-UNICORN, we show three sets of generated captions via beam search, coded with different colors.
|
| 173 |
+
|
| 174 |
+
this module for temporal video-language tasks.
|
| 175 |
+
|
| 176 |
+
Time tokens. We can either introduce new dedicated time tokens or directly
|
| 177 |
+
|
| 178 |
+
<table><tr><td>Time tokens</td><td>R@0.5</td><td>R@0.7</td><td>mAP</td></tr><tr><td>Dedicated</td><td>64.1</td><td>48.2</td><td>40.7</td></tr><tr><td>Original vocab</td><td>66.3</td><td>51.5</td><td>42.8</td></tr></table>
|
| 179 |
+
|
| 180 |
+
Table 6: Different time token.
|
| 181 |
+
|
| 182 |
+
use the digits in the original vocabulary to represent time. We investigate the impact of the two strategies in the single-task, single-dataset setup on QVHighlights in Table 6. We observed that the original vocabulary performs better than new dedicated tokens, which indicates the knowledge of digits in LLM can be readily transferred to our tasks. Meanwhile, new tokens would introduce extra training overheads and increase the number of trainable parameters by 262M, more than double of the original value, see details in Appendix D.
|
| 183 |
+
|
| 184 |
+
# 4.4 Auto Annotation of HowTo100M
|
| 185 |
+
|
| 186 |
+
Thanks to the generalization of LMMs, the model to handle temporal video-language tasks can be deployed on unseen public internet videos such as HowTo100M (Miech et al., 2019). These videos are paired with auto speech recognition (ASR) transcripts, a majority of which are not visually and temporally aligned (Miech et al., 2020; Tang et al., 2021; Han et al., 2022). Since our model is capable of generating dense captions, it is promising to leverage UNICORN for annotating the dataset automatically. We use our trained model to densely caption a subset of 240K videos from HowTo100M (Han et al., 2022) and denote the dataset as HTM-UNICORN. We anonymize names with their pronouns and prompt the model not to generate offensive responses. We compare it with
|
| 187 |
+
|
| 188 |
+
two variants with the same set of videos, HTM-ASR (Miech et al., 2019) with original ASR transcripts, and HTM-AA (Han et al., 2022) which has been aligned temporally via an automated process. Note that UNICORN can output diverse captions using beam search (Vijayakumar et al., 2016), which can increase the training data size and as a result improve model performance with more data.
|
| 189 |
+
|
| 190 |
+
In Figure 2, we present an qualitative comparison of three variants. Our HTM-UNICORN is the best aligned with the input video both visually and temporally, compared with HTM-ASR and HTM-AA. In addition, captions from different sets can complement each other, leading to more comprehensive descriptions of the video. Quantitatively, we use three HowTo100M variants to pre-train the model for moment retrieval, and evaluate on QVHighlights under zero-shot and fine-tuning settings. We convert these datasets into the instruction-following format described in Section 3.1, and train the model from the same initialization. In Table 7, we observe that our automatically annotated HTM achieves superior zero-shot performance, which shows the better alignment of moments and timestamps. For fine-tuning, we notice that performance even degrades when pre-trained on HTM-ASR and HTM-AA, potentially due to data noise, while the model pre-trained on HTM-UNICORN outperforms other variants, reflecting the high quality of the generated dataset.
|
| 191 |
+
|
| 192 |
+
Besides, we follow (Han et al., 2022) to conduct end-to-end representation learning with an InfoNCE loss (Miech et al., 2020). After contrastive pre-training, we evaluate video representations by
|
| 193 |
+
|
| 194 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">#queries</td><td colspan="3">Zero-shot</td><td colspan="3">Fine-tuning</td></tr><tr><td>R@0.5</td><td>R@0.7</td><td>mAP</td><td>R@0.5</td><td>R@0.7</td><td>mAP</td></tr><tr><td>InstructBLIP</td><td>—</td><td>—</td><td>—</td><td>—</td><td>66.3</td><td>51.5</td><td>42.8</td></tr><tr><td>HTM-ASR (Miech et al., 2019)</td><td>5.0M</td><td>7.7</td><td>2.8</td><td>1.9</td><td>63.5</td><td>48.3</td><td>40.3</td></tr><tr><td>HTM-AA (Han et al., 2022)</td><td>3.3M</td><td>13.0</td><td>4.8</td><td>3.5</td><td>65.8</td><td>50.6</td><td>42.1</td></tr><tr><td>HTM-UNICORN</td><td>690K</td><td>44.2</td><td>26.4</td><td>26.0</td><td>68.9</td><td>53.6</td><td>45.0</td></tr><tr><td>HTM-UNICORN × 2</td><td>1.4M</td><td>47.5</td><td>30.8</td><td>29.9</td><td>69.5</td><td>54.0</td><td>45.2</td></tr><tr><td>HTM-UNICORN × 3</td><td>2.1M</td><td>50.0</td><td>32.7</td><td>30.4</td><td>70.2</td><td>54.6</td><td>45.5</td></tr></table>
|
| 195 |
+
|
| 196 |
+
Table 7: Zero-shot and fine-tuning moment retrieval evaluation on QVHighlights (val). HTM-UNICORN $\times n$ indicates we generated $n$ sets of captions for a video.
|
| 197 |
+
|
| 198 |
+
<table><tr><td>PT Dataset</td><td>Backbone</td><td>UCF101</td><td>HMDB51</td><td>K400</td></tr><tr><td>HTM-ASR (Miech et al., 2020)</td><td>S3D</td><td>82.1</td><td>55.2</td><td>55.7</td></tr><tr><td>HTM-AA (Han et al., 2022)</td><td>S3D</td><td>83.2</td><td>56.7</td><td>56.2</td></tr><tr><td>HTM-UNICORN</td><td>S3D</td><td>84.1</td><td>57.7</td><td>56.6</td></tr></table>
|
| 199 |
+
|
| 200 |
+
Table 8: Linear probing accuracy for action recognition.
|
| 201 |
+
|
| 202 |
+
linear probing on three action recognition datasets, UCF101 (Soomro et al., 2012), HMDB51 (Kuehne et al., 2011), and Kinetics-400 (K400) (Kay et al., 2017) in Table 8. UNICORN achieves the highest accuracy on all three datasets, which again demonstrates the best quality of our generated captions.
|
| 203 |
+
|
| 204 |
+
Captions generated from our automated annotation pipeline has shown to be better than noisy web data both qualitatively and quantitatively. As data quality and quantity are crucial for the performance of large models (Zhou et al., 2024; Ji et al., 2023; Liu et al., 2023a), we hope such a pipeline could be useful for empowering the development of future large multimodal models.
|
| 205 |
+
|
| 206 |
+
# 5 Conclusion
|
| 207 |
+
|
| 208 |
+
In this paper, we propose a unified causal video-oriented language modeling framework UNICORN to address temporal video-language tasks. By fine-tuning on instruction-following data constructed from existing datasets, our model achieves outstanding performance on various downstream tasks including moment retrieval, video paragraph captioning and dense video captioning. We further show that UNICORN can be leveraged in automatic annotation on internet videos such as HowTo100M for semantically- and temporally-aligned captions. These captions can be used to improve video-language model performance against ASR ones. In conclusion, UNICORN paves the way towards a general-purpose foundation model that explicitly considers temporal information.
|
| 209 |
+
|
| 210 |
+
# 6 Limitations
|
| 211 |
+
|
| 212 |
+
Currently, UNICORN is good at localizing an event which only appears once in the video, but would be confused when an event happens more than once.
|
| 213 |
+
|
| 214 |
+
This is due to the training data mostly have events appearing once. Future work can be collecting data with events that appear more than once to improve models' ability on these scenarios. Besides, it is a promising direction to include more sophisticated and efficient temporal designs, such as leveraging a video perceiver to encode video information more comprehensively using more frames. We will also consider human evaluation to better understand the quality of generated captions.
|
| 215 |
+
|
| 216 |
+
# References
|
| 217 |
+
|
| 218 |
+
2023. Chatgpt. https://openai.com/blog/chatgpt.
|
| 219 |
+
2023. Vicuna. https://github.com/lm-sys/ FastChat.
|
| 220 |
+
Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. 2023. Qwen-vl: A frontier large vision-language model with versatile abilities. arXiv preprint arXiv:2308.12966.
|
| 221 |
+
Satanjeev Banerjee and Alon Lavie. 2005. Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In ACL workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization.
|
| 222 |
+
Keqin Chen, Zhao Zhang, Weili Zeng, Richong Zhang, Feng Zhu, and Rui Zhao. 2023. Shikra: Unleashing multimodal llm's referential dialogue magic. arXiv preprint arXiv:2306.15195.
|
| 223 |
+
Ting Chen, Saurabh Saxena, Lala Li, David J Fleet, and Geoffrey Hinton. 2022. Pix2seq: A language modeling framework for object detection. In ICLR.
|
| 224 |
+
Wenliang Dai, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale Fung, and Steven Hoi. 2023. Instructblip: Towards general-purpose vision-language models with instruction tuning. In NeurIPS.
|
| 225 |
+
Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. 2019. Transformer-xl: Attentive language models beyond a fixed-length context. In ACL.
|
| 226 |
+
Yuxin Fang, Wen Wang, Binhui Xie, Quan Sun, Ledell Wu, Xinggang Wang, Tiejun Huang, Xinlong Wang, and Yue Cao. 2023. Eva: Exploring the limits of masked visual representation learning at scale. In CVPR.
|
| 227 |
+
Soichiro Fujita, Tsutomu Hirao, Hidetaka Kamigaito, Manabu Okumura, and Masaaki Nagata. 2020. Soda: Story oriented dense video captioning evaluation framework. In ECCV.
|
| 228 |
+
|
| 229 |
+
Jiyang Gao, Chen Sun, Zhenheng Yang, and Ram Nevata. 2017. Tall: Temporal activity localization via language query. In ICCV.
|
| 230 |
+
Tengda Han, Weidi Xie, and Andrew Zisserman. 2022. Temporal alignment networks for long-term video. In CVPR.
|
| 231 |
+
Lisa Anne Hendricks, Oliver Wang, Eli Shechtman, Josef Sivic, Trevor Darrell, and Bryan Russell. 2017. Localizing moments in video with natural language. In ICCV.
|
| 232 |
+
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In ICLR.
|
| 233 |
+
Yunjie Ji, Yong Deng, Yan Gong, Yiping Peng, Qiang Niu, Lei Zhang, Baochang Ma, and Xiangang Li. 2023. Exploring the impact of instruction data scaling on large language models: An empirical study on real-world use cases. arXiv preprint arXiv:2303.14742.
|
| 234 |
+
Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. 2017. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950.
|
| 235 |
+
Ranjay Krishna, Kenji Hata, Frederic Ren, Li Fei-Fei, and Juan Carlos Niebles. 2017. Dense-captioning events in videos. In CVPR.
|
| 236 |
+
Hildegard Kuehne, Hueihan Jhuang, Estíbaliz Garrote, Tomaso Poggio, and Thomas Serre. 2011. Hmdb: a large video database for human motion recognition. In ICCV.
|
| 237 |
+
Jie Lei, Tamara L Berg, and Mohit Bansal. 2021. Detecting moments and highlights in videos via natural language queries. In NeurIPS.
|
| 238 |
+
Jie Lei, Liwei Wang, Yelong Shen, Dong Yu, Tamara Berg, and Mohit Bansal. 2020a. Mart: Memory-augmented recurrent transformer for coherent video paragraph captioning. In ACL.
|
| 239 |
+
Jie Lei, Licheng Yu, Tamara L Berg, and Mohit Bansal. 2020b. Tvr: A large-scale dataset for video-subtitle moment retrieval. In ECCV.
|
| 240 |
+
Bo Li, Yuanhan Zhang, Liangyu Chen, Jinghao Wang, Fanyi Pu, Jingkang Yang, Chunyuan Li, and Ziwei Liu. 2023a. Mimic-it: Multi-modal in-context instruction tuning. arXiv preprint arXiv:2306.05425.
|
| 241 |
+
Dongxu Li, Junnan Li, Hung Le, Guangsen Wang, Silvio Savarese, and Steven C.H. Hoi. 2023b. LAVIS: A one-stop library for language-vision intelligence. In ACL.
|
| 242 |
+
Dongxu Li, Junnan Li, Hongdong Li, Juan Carlos Niebles, and Steven CH Hoi. 2022. Align and prompt: Video-and-language pre-training with entity prompts. In CVPR.
|
| 243 |
+
|
| 244 |
+
KunChang Li, Yinan He, Yi Wang, Yizhuo Li, Wenhai Wang, Ping Luo, Yali Wang, Limin Wang, and Yu Qiao. 2023c. Videochat: Chat-centric video understanding. arXiv preprint arXiv:2305.06355.
|
| 245 |
+
Kevin Qinghong Lin, Pengchuan Zhang, Joya Chen, Shraman Pramanick, Difei Gao, Alex Jinpeng Wang, Rui Yan, and Mike Zheng Shou. 2023. Univtg: Towards unified video-language temporal grounding. In ICCV.
|
| 246 |
+
Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. 2023a. Improved baselines with visual instruction tuning. arXiv preprint arXiv:2310.03744.
|
| 247 |
+
Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023b. Visual instruction tuning. In NeurIPS.
|
| 248 |
+
Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In ICLR.
|
| 249 |
+
Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. 2020. End-to-end learning of visual representations from uncurated instructional videos. In CVPR.
|
| 250 |
+
Antoine Miech, Dimitri Zhukov, Jean-Baptiste Alayrac, Makarand Tapaswi, Ivan Laptev, and Josef Sivic. 2019. Howto100m: Learning a text-video embedding by watching hundred million narrated video clips. In ICCV.
|
| 251 |
+
Salman Khan Muhammad Maaz, Hanoona Rasheed and Fahad Khan. 2023. Video-chatgpt: Towards detailed video understanding via large vision and language models. ArXiv 2306.05424.
|
| 252 |
+
Jonghwan Mun, Minsu Cho, and Bohyung Han. 2020. Local-global video-text interactions for temporal grounding. In CVPR.
|
| 253 |
+
OpenAI. 2023. Gpt-4 technical report. ArXiv, abs/2303.08774.
|
| 254 |
+
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. In NeurIPS.
|
| 255 |
+
Jae Sung Park, Marcus Rohrbach, Trevor Darrell, and Anna Rohrbach. 2019. Adversarial inference for multi-sentence video description. In CVPR.
|
| 256 |
+
Zhiliang Peng, Wenhui Wang, Li Dong, Yaru Hao, Shaohan Huang, Shuming Ma, and Furu Wei. 2023. Kosmos-2: Grounding multimodal large language models to the world. arXiv preprint arXiv:2306.14824.
|
| 257 |
+
Enxin Song, Wenhao Chai, Guanhong Wang, Yucheng Zhang, Haoyang Zhou, Feiyang Wu, Xun Guo, Tian Ye, Yan Lu, Jenq-Neng Hwang, et al. 2023. Moviechat: From dense token to sparse memory for long video understanding. arXiv preprint arXiv:2307.16449.
|
| 258 |
+
|
| 259 |
+
Yuqing Song, Shizhe Chen, and Qin Jin. 2021. Towards diverse paragraph captioning for untrimmed videos. In CVPR.
|
| 260 |
+
Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. 2012. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402.
|
| 261 |
+
Zineng Tang, Jie Lei, and Mohit Bansal. 2021. DeCEMBERT: Learning from noisy instructional videos via dense captions and entropy minimization. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.
|
| 262 |
+
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023a. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.
|
| 263 |
+
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.
|
| 264 |
+
Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. 2015. Cider: Consensus-based image description evaluation. In CVPR.
|
| 265 |
+
Ashwin K Vijayakumar, Michael Cogswell, Ramprasath R Selvaraju, Qing Sun, Stefan Lee, David Crandall, and Dhruv Batra. 2016. Diverse beam search: Decoding diverse solutions from neural sequence models. arXiv preprint arXiv:1610.02424.
|
| 266 |
+
Teng Wang, Jinrui Zhang, Feng Zheng, Wenhao Jiang, Ran Cheng, and Ping Luo. 2023a. Learning grounded vision-language representation for versatile understanding in untrimmed videos. arXiv preprint arXiv:2303.06378.
|
| 267 |
+
Teng Wang, Ruimao Zhang, Zhichao Lu, Feng Zheng, Ran Cheng, and Ping Luo. 2021. End-to-end dense video captioning with parallel decoding. In ICCV.
|
| 268 |
+
Teng Wang, Huicheng Zheng, Mingjing Yu, Qian Tian, and Haifeng Hu. 2020. Event-centric hierarchical representation for dense video captioning. IEEE Transactions on Circuits and Systems for Video Technology.
|
| 269 |
+
Wenhai Wang, Zhe Chen, Xiaokang Chen, Jiannan Wu, Xizhou Zhu, Gang Zeng, Ping Luo, Tong Lu, Jie Zhou, Yu Qiao, et al. 2023b. Vision-llm: Large language model is also an open-ended decoder for vision-centric tasks. arXiv preprint arXiv:2305.11175.
|
| 270 |
+
Yilei Xiong, Bo Dai, and Dahua Lin. 2018. Move forward and tell: A progressive generator of video descriptions. In ECCV.
|
| 271 |
+
|
| 272 |
+
Shen Yan, Xuehan Xiong, Arsha Nagrani, Anurag Arnab, Zhonghao Wang, Weina Ge, David Ross, and Cordelia Schmid. 2023. Unloc: A unified framework for video localization tasks. In ICCV.
|
| 273 |
+
Antoine Yang, Arsha Nagrani, Paul Hongsuck Seo, Antoine Miech, Jordi Pont-Tuset, Ivan Laptev, Josef Sivic, and Cordelia Schmid. 2023. Vid2seq: Large-scale pretraining of a visual language model for dense video captioning. In CVPR.
|
| 274 |
+
Rowan Zellers, Jiasen Lu, Ximing Lu, Youngjae Yu, Yanpeng Zhao, Mohammadreza Salehi, Aditya Kusupati, Jack Hessel, Ali Farhadi, and Yejin Choi. 2022. Merlot reserve: Neural script knowledge through vision and language and sound. In CVPR.
|
| 275 |
+
Runhao Zeng, Haoming Xu, Wenbing Huang, Peihao Chen, Mingkui Tan, and Chuang Gan. 2020. Dense regression network for video grounding. In CVPR.
|
| 276 |
+
Hang Zhang, Xin Li, and Lidong Bing. 2023a. Video-llama: An instruction-tuned audio-visual language model for video understanding. arXiv preprint arXiv:2306.02858.
|
| 277 |
+
Hao Zhang, Aixin Sun, Wei Jing, and Joey Tianyi Zhou. 2020a. Span-based localizing network for natural language video localization. In ACL.
|
| 278 |
+
Qi Zhang, Yuqing Song, and Qin Jin. 2022. Unifying event detection and captioning as sequence generation via pre-training. In ECCV.
|
| 279 |
+
Shilong Zhang, Peize Sun, Shoufa Chen, Min Xiao, Wenqi Shao, Wenwei Zhang, Kai Chen, and Ping Luo. 2023b. Gpt4roi: Instruction tuning large language model on region-of-interest. arXiv preprint arXiv:2307.03601.
|
| 280 |
+
Songyang Zhang, Houwen Peng, Jianlong Fu, and Jiebo Luo. 2020b. Learning 2d temporal adjacent networks for moment localization with natural language. In AAAI.
|
| 281 |
+
Chunting Zhou, Pengfei Liu, Puxin Xu, Srinivasan Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia Efrat, Ping Yu, Lili Yu, et al. 2024. Lima: Less is more for alignment. NeurIPS, 36.
|
| 282 |
+
Luowei Zhou, Yannis Kalantidis, Xinlei Chen, Jason J Corso, and Marcus Rohrbach. 2019. Grounded video description. In CVPR.
|
| 283 |
+
Luowei Zhou, Chenliang Xu, and Jason J Corso. 2018a. Towards automatic learning of procedures from web instructional videos. In AAAI.
|
| 284 |
+
Luowei Zhou, Yingbo Zhou, Jason J Corso, Richard Socher, and Caiming Xiong. 2018b. End-to-end dense video captioning with masked transformer. In CVPR.
|
| 285 |
+
Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. 2023. Minigpt-4: Enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592.
|
| 286 |
+
|
| 287 |
+
Wanrong Zhu, Bo Pang, Ashish V Thapliyal, William Yang Wang, and Radu Soricut. 2022. End-to-end dense video captioning as sequence generation. In COLING.
|
| 288 |
+
|
| 289 |
+
# A Societal Impact
|
| 290 |
+
|
| 291 |
+
Similar to many data-driven methods, the predictions from our model might be inaccurate and biased towards the distribution of data on which it is trained on. Therefore, users should not completely rely on the model in real-world scenarios.
|
| 292 |
+
|
| 293 |
+
# B Instruction Templates
|
| 294 |
+
|
| 295 |
+
We provide the list of instruction templates for moment retrieval and video paragraph captioning respectively in Table 9 and Table 10.
|
| 296 |
+
|
| 297 |
+
- "Please predict start and end time of the following moment."
|
| 298 |
+
- "Can you tell me the time window of this event?"
|
| 299 |
+
What is the location of the moment?
|
| 300 |
+
|
| 301 |
+
Table 9: The list of instructions for moment retrieval.
|
| 302 |
+
|
| 303 |
+
- "Provide a detailed description of the given video, capturing its key moments."
|
| 304 |
+
Describe the following video in detail, including the actions and scenes.
|
| 305 |
+
- "Clarify the contents of the displayed video with great detail, focusing on its progression."
|
| 306 |
+
- "Offer a thorough analysis of the video, discussing its various elements and storyline."
|
| 307 |
+
|
| 308 |
+
# C Datasets
|
| 309 |
+
|
| 310 |
+
In this section, we present more details about datasets used for both instruction-tuning and evaluation. An overview of statistics of training data is presented in Table 11. We mix all samples of the same task across datasets and obtain two large training sets: one for moment retrieval $S_{\mathrm{MR}}$ with $|S_{\mathrm{MR}}| = 71829$ video-query pairs, and the other for paragraph captioning $S_{\mathrm{VPC}}$ with $|S_{\mathrm{VPC}}| = 16533$ videos. These datasets are introduced comprehensively below.
|
| 311 |
+
|
| 312 |
+
QVHighlights (Lei et al., 2021). This dataset includes 10,148 trimmed videos with an average length of 150 sec that covers daily vlogs, travel vlogs, and news events scenarios. There are in total 10,310 queries associated with 18, 367 moments. Following (Lei et al., 2021), we use train split for
|
| 313 |
+
|
| 314 |
+
Table 10: The list of instructions for video paragraph captioning.
|
| 315 |
+
|
| 316 |
+
<table><tr><td>Dataset</td><td>Domain</td><td>#Videos</td><td>#Queries</td><td>MR</td><td>VPC</td></tr><tr><td>QVHighlights</td><td>Vlog</td><td>7100</td><td>12803</td><td>✓</td><td>✗</td></tr><tr><td>Charades-STA</td><td>Activity</td><td>5336</td><td>12404</td><td>✓</td><td>✓</td></tr><tr><td>ActivityNet Captions</td><td>Activity</td><td>10009</td><td>37421</td><td>✓</td><td>✓</td></tr><tr><td>Youcook2</td><td>Instruction</td><td>1188</td><td>9201</td><td>✓</td><td>✓</td></tr></table>
|
| 317 |
+
|
| 318 |
+
Table 11: Statistics of training data.
|
| 319 |
+
|
| 320 |
+
instruction tuning of moment retrieval, test split for evaluation, and val split for ablation studies. The license is Attribution-NonCommercial-ShareAlike 4.0 International and our usage is consistent with its license.
|
| 321 |
+
|
| 322 |
+
Charades-STA (Gao et al., 2017). The dataset contains 6,672 videos with an average duration of 30.6 sec and 16,128 moment/caption pairs. Each video is annotated with 2.4 segments on average. We use train split for instruction tuning and test for evaluation. The license is License Non-Commercial Use and our usage is consistent with its license.
|
| 323 |
+
|
| 324 |
+
ActivityNet Captions (Krishna et al., 2017). The dataset contains 14,934 untrimmed videos of various human activities from YouTube. On average, each video lasts 120s and is annotated with 3.7 temporally-localized sentences. The dataset is split into 10,009 and 4,925 videos for training and validation, respectively. train split is included in instruction tuning for both moment retrieval and video paragraph captioning. The validation set has two independent dense video captioning annotations (val_1 and val_2). For moment retrieval, we evaluate on val_2 according to prior work (Yan et al., 2023). For video paragraph captioning, we report results on the ae-test split following (Lei et al., 2020a; Zhou et al., 2019). For dense video captioning, we use both val_1 and val_2 for evaluation, by computing the average of the scores over each set for SODA_c and by using the standard evaluation tool (Krishna et al., 2017) for all other dense event captioning metrics. The license is not specified by the original authors.
|
| 325 |
+
|
| 326 |
+
YouCook2 (Zhou et al., 2018a). It has 1,790 untrimmed videos of cooking procedures. On average, each video lasts 320s and is annotated with 7.7 temporally-localized sentences. The dataset is split into 1,333 videos for training and 457 videos for validation. We use train split for instruction tuning and evaluate on val split. The license is MIT License and our usage is consistent with its license.
|
| 327 |
+
|
| 328 |
+
Besides, we adopt a subset of HowTo100M (Han et al., 2022) with 240K videos for automatic an
|
| 329 |
+
|
| 330 |
+
<table><tr><td rowspan="2">#frames</td><td colspan="3">QVHighlights</td><td colspan="3">Charades-STA</td><td colspan="3">ActivityNet Captions</td></tr><tr><td>R@0.5</td><td>R@0.7</td><td>mAP avg</td><td>R@0.5</td><td>R@0.7</td><td>mIoU</td><td>R@0.5</td><td>R@0.7</td><td>mIoU</td></tr><tr><td>25</td><td>61.5</td><td>37.4</td><td>35.0</td><td>63.4</td><td>38.0</td><td>55.0</td><td>43.6</td><td>25.9</td><td>43.9</td></tr><tr><td>50</td><td>65.4</td><td>47.9</td><td>41.4</td><td>67.3</td><td>46.0</td><td>58.1</td><td>46.2</td><td>28.3</td><td>46.1</td></tr><tr><td>75</td><td>69.5</td><td>54.4</td><td>45.3</td><td>69.0</td><td>45.6</td><td>58.9</td><td>48.4</td><td>29.8</td><td>47.1</td></tr><tr><td>100</td><td>67.8</td><td>52.8</td><td>44.7</td><td>68.4</td><td>46.0</td><td>58.4</td><td>48.5</td><td>29.3</td><td>46.5</td></tr></table>
|
| 331 |
+
|
| 332 |
+
Table 12: Effects of the number of frames on moment retrieval.
|
| 333 |
+
|
| 334 |
+
<table><tr><td rowspan="2">LoRA</td><td rowspan="2">Temporal modeling</td><td colspan="3">QVHighlights</td><td colspan="3">Charades-STA</td><td colspan="3">ActivityNet Captions</td></tr><tr><td>R@0.5</td><td>R@0.7</td><td>mAP avg</td><td>R@0.5</td><td>R@0.7</td><td>mIoU</td><td>R@0.5</td><td>R@0.7</td><td>mIoU</td></tr><tr><td>X</td><td>X</td><td>60.6</td><td>36.4</td><td>33.2</td><td>62.3</td><td>36.8</td><td>55.0</td><td>43.1</td><td>25.9</td><td>43.8</td></tr><tr><td>✓</td><td>X</td><td>66.7</td><td>49.2</td><td>39.8</td><td>67.6</td><td>44.5</td><td>58.2</td><td>44.3</td><td>27.5</td><td>45.1</td></tr><tr><td>X</td><td>✓</td><td>65.5</td><td>47.0</td><td>40.4</td><td>66.8</td><td>43.4</td><td>57.3</td><td>44.9</td><td>27.7</td><td>45.3</td></tr><tr><td>✓</td><td>✓</td><td>69.5</td><td>54.5</td><td>45.3</td><td>69.0</td><td>45.6</td><td>58.9</td><td>48.4</td><td>29.8</td><td>47.1</td></tr></table>
|
| 335 |
+
|
| 336 |
+
notation. It is a large-scale dataset of narrated videos with an emphasis on instructional videos where content creators teach complex tasks with an explicit intention of explaining the visual content on screen (Miech et al., 2019). The license is not specified by the original authors. For evaluation, we leverage three action recognition tasks: UCF101 (license not specified) (Soomro et al., 2012), HMDB51 (CC BY 4.0) (Kuehne et al., 2011) and Kinetics-400 (CC BY 4.0) (Kay et al., 2017). Our usage is consistent with their licenses.
|
| 337 |
+
|
| 338 |
+
# D Additional Results
|
| 339 |
+
|
| 340 |
+
Additional experimental results are reported in this section, including the analysis of dedicated time tokens, effects of the number of frames, effects of LoRA and temporal modeling, and the influence of different pre-training data ratios. We only run instruction tuning once and all results in Section 4 and this section are from this single model.
|
| 341 |
+
|
| 342 |
+
Extra overheads of dedicated time tokens. As mentioned in Section 4.3, new dedicated time tokens would introduce a considerably larger number of trainable parameters. In particular, given the current implementation of LLMs, it is challenging to train new tokens only without affecting the rest of parameters in the embedding layer and the final output layer. Thus, we take an alternative to tune all parameters in these two layers: given the original vocabulary size of 32000, the number of new time tokens of 75, and the hidden dimension of 4096, the total number of trainable parameters is computed as: $(32000 + 75) \times 4096 \times 2 = 262\mathrm{M}$ .
|
| 343 |
+
|
| 344 |
+
Number of frames. In addition to results presented in Table 4b, we show more complete experiments on moment retrieval and video paragraph captioning in Table 12 and Table 14. The trends are consistent with what we observed in Table 4b, where 75 frames are enough to cover all the semantic information needed for these two tasks.
|
| 345 |
+
|
| 346 |
+
Table 13: Effects of LoRA and temporal modeling on moment retrieval.
|
| 347 |
+
|
| 348 |
+
<table><tr><td rowspan="2">#frames</td><td colspan="2">YouCook2</td><td colspan="2">ActivityNet</td></tr><tr><td>C</td><td>M</td><td>C</td><td>M</td></tr><tr><td>25</td><td>29.2</td><td>16.9</td><td>33.4</td><td>16.9</td></tr><tr><td>50</td><td>34.3</td><td>17.8</td><td>34.5</td><td>17.0</td></tr><tr><td>75</td><td>37.8</td><td>18.3</td><td>34.8</td><td>17.3</td></tr><tr><td>100</td><td>37.4</td><td>18.5</td><td>34.6</td><td>17.3</td></tr></table>
|
| 349 |
+
|
| 350 |
+
LoRA and temporal modeling. We present more thorough and comprehensive experimental results to understand the effects of LoRA and temporal modeling. In Table 13 and 15, we can conclude that both LoRA training and temporal modeling contribute to performance gains in moment retrieval and video paragraph captioning.
|
| 351 |
+
|
| 352 |
+
Table 14: Effects of the number of frames on video paragraph captioning.
|
| 353 |
+
|
| 354 |
+
<table><tr><td rowspan="2">LoRA</td><td rowspan="2">Temporal modeling</td><td colspan="2">YouCook2</td><td colspan="2">ActivityNet</td></tr><tr><td>C</td><td>M</td><td>C</td><td>M</td></tr><tr><td>X</td><td>X</td><td>25.7</td><td>16.9</td><td>23.0</td><td>16.0</td></tr><tr><td>✓</td><td>X</td><td>32.3</td><td>17.7</td><td>34.4</td><td>17.2</td></tr><tr><td>X</td><td>✓</td><td>26.5</td><td>17.4</td><td>27.6</td><td>16.8</td></tr><tr><td>✓</td><td>✓</td><td>37.8</td><td>18.3</td><td>34.8</td><td>17.3</td></tr></table>
|
| 355 |
+
|
| 356 |
+
Table 15: Effects of LoRA and temporal modeling on video paragraph captioning.
|
| 357 |
+
|
| 358 |
+
Base model selection. It should be emphasized that UNICORN is a generic framework to which we can flexibly utilize various LMMs as the base model with a simple re-design to take video inputs. We analyze the effects of adopting different base models like LLaVA (Liu et al., 2023b) here to justify our framework design. Specifically, we instruction-tuned LLaVA for moment retrieval and video paragraph captioning. Results are shown in Table 16 and it is expected that the performance of LLaVA variant drops compared with our InstructBLIP variant, due to the information loss from 256 frame-level tokens pooled to one token. Besides, InstructBLIP has a QFormer while LLaVA only uses a simple projection layer, which may be insufficient to align video and language. We also added an experiment with InstrutBLIP-13B and observed performance gains with a larger model size.
|
| 359 |
+
|
| 360 |
+
<table><tr><td rowspan="2">Base model</td><td colspan="3">QVHighlights</td><td colspan="2">ActivityNet</td></tr><tr><td>R@0.5</td><td>R@0.7</td><td>mAP</td><td>C</td><td>M</td></tr><tr><td>LLaVA-7B (Liu et al., 2023b)</td><td>66.3</td><td>51.5</td><td>42.8</td><td>33.6</td><td>16.4</td></tr><tr><td>InstructBLIP-7B (Dai et al., 2023)</td><td>68.2</td><td>52.3</td><td>44.8</td><td>34.6</td><td>16.9</td></tr><tr><td>InstructBLIP-13B (Dai et al., 2023)</td><td>69.5</td><td>54.4</td><td>45.3</td><td>34.8</td><td>17.3</td></tr></table>
|
| 361 |
+
|
| 362 |
+
Table 16: Comparison of different base models.
|
| 363 |
+
|
| 364 |
+
Ratios of PT dataset. We also alter the ratio of pre-training dataset and record corresponding performance in Figure 3. With only $25\%$ of the videos, the model using UNICORN captions far outperforms other counterparts trained on all videos, demonstrating the effectiveness of our captions compared to ASR captions and its de-noised version. Meanwhile, UNICORN can generate multiple captions for the same video, with more sets of captions, we see a consistent performance gain from the model. Notably, when using 3 sets of captions $(\times 3)$ , the performance is improved from 44.2 to 50.0 for R@0.5.
|
| 365 |
+
|
| 366 |
+

|
| 367 |
+
Figure 3: Zero-shot moment retrieval on QVHighlights (val) under different data ratios.
|
2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:005cb9ea53515076e3967f87cac6eafba983c707c117c6dd722b9d149ef9c38a
|
| 3 |
+
size 648118
|
2024/UNICORN_ A Unified Causal Video-Oriented Language-Modeling Framework for Temporal Video-Language Tasks/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/24977746-f195-40b6-ae76-06cf317c5f92_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/24977746-f195-40b6-ae76-06cf317c5f92_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/24977746-f195-40b6-ae76-06cf317c5f92_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6e57042e0be2e3a6dcbf107f8b5c2e1a46b6fb468a8a403fe9d301a47425af8
|
| 3 |
+
size 1970343
|
2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/full.md
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models
|
| 2 |
+
|
| 3 |
+
Zhanyue Qin $^{1}$ , Haochuan Wang $^{1}$ , Deyuan Liu $^{1}$ , Ziyang Song $^{1}$ , Cunhang Fan $^{2}$ , Zhao Lv $^{2}$ , Jinlin Wu $^{3,4}$ , Zhen Lei $^{3,4,5}$ , Zhiying Tu $^{1}$ , Dianhui Chu $^{1}$ , Xiaoyan Yu $^{6}$ , Dianbo Sui $^{1}$ *
|
| 4 |
+
|
| 5 |
+
<sup>1</sup> Harbin Institute of Technology, <sup>2</sup> Anhui University,
|
| 6 |
+
|
| 7 |
+
$^{3}$ CAIR, HKISI-CAS, $^{4}$ CASIA, $^{5}$ UCAS,
|
| 8 |
+
|
| 9 |
+
$^{6}$ Beijing Institute of Technology
|
| 10 |
+
|
| 11 |
+
johnneyqin@gmail.com, suidianbo@hit.edu.cn
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Sequential decision-making refers to algorithms that take into account the dynamics of the environment, where early decisions affect subsequent decisions. With large language models (LLMs) demonstrating powerful capabilities among various tasks, we cannot help but ask: Can Current LLMs Make Sequential Decisions Effectively? In order to answer this question, we propose the UNO Arena based on the card game UNO for evaluating the sequential decision-making capability of LLMs and explain in detail why we choose the UNO game. In the UNO Arena, we also involve some novel metrics based on Monte Carlo methods for evaluating the sequential decision-making capability of LLMs dynamically. Besides, we set up random players, DQN-based reinforcement learning players, and LLM players (e.g. GPT-4, Gemini-pro) for comparison testing. Furthermore, in order to improve the sequential decision-making capability of LLMs, we propose the TUTRI player, which can involve enabling LLMs to reflect on their actions with the summary of game history and the game strategy. Various experimental results demonstrate that the TUTRI player can achieve a notable breakthrough in the performance of sequential decision-making compared to the vanilla LLM player.<sup>1</sup>
|
| 16 |
+
|
| 17 |
+
# 1 Introduction
|
| 18 |
+
|
| 19 |
+
In artificial intelligence, sequential decision-making refers to algorithms that take the dynamics of the world into consideration (Frankish and Ramsey, 2014), and it can be described as a procedural approach to decision-making, or as a step by step decision theory. As a consequence, sequential decision-making has the intertemporal choice problem, where earlier decisions influences the later available choices (Amir, 2014).
|
| 20 |
+
|
| 21 |
+
In recent years, Large language models (LLMs) are gaining increasing popularity in both academia and industry, owing to their unprecedented performances in various applications (Chang et al., 2023), ranging from chatbots to medical diagnoses (Wang et al., 2023a) to robotics (He et al., 2022). From robots handling complex tasks (Amiri et al., 2020) to entrepreneurial action (McMullen, 2015), sequential decision-making permeates diverse domains. Hence, an interesting question arises: Can Current LLMs Make Sequential Decisions Effectively?
|
| 22 |
+
|
| 23 |
+
To answer this question, we need to design a benchmark to evaluate the sequential decision-making ability of LLMs. However, evaluating LLMs' abilities is not trivial. Many studies have been proposed to test LLMs' performances on either a large-scale static benchmark such as MMLU (Hendrycks et al., 2021), or with A/B tests judged by humans (Ganguli et al., 2023). One common and evident limitation of these methods, however, is that the environment for LLMs to be tested is static (Aiyappa et al., 2023; Zhou et al., 2023), which can not reflect the domino effect in sequential decision-making. Besides, data contamination (Sainz et al., 2023; Zeng et al., 2024; Xu et al., 2024), which means the inclusion of test data examples and labels in the pre-training data, also challenges the efficacy of these static benchmarks in differentiating model capabilities.
|
| 24 |
+
|
| 25 |
+
Unlike static evaluation, dynamic evaluation by treating LLMs as game-playing agents attracted more and more attention of researchers recently, such as beauty contests and private-value second price auctions (Guo et al., 2024a), Warewolf (Xu et al., 2023), Avalon (Wang et al., 2023b; Light et al., 2023) and Leduc Hold'em (Guo et al., 2023). However, current attempts do not account for sequential decision-making, and these games are either challenging to evaluate for intermediate results (such as Werewolf) or have too few decision points
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: In this figure, (A) demonstrates the sequential decision-making process in the UNO Arena, (B) presents the execution process of the vanilla LLM player, and (C) shows the execution process of the TUTRI player. Note that, the Module (D) and the Module (E) are completely identical.
|
| 29 |
+
|
| 30 |
+
per round (such as Leduc Hold'em). Meanwhile, we should also note that studies of dynamically evaluating sequential decision-making capability in the reinforcement learning, such as games like Go (Silver et al., 2017), Dou Di Zhu (You et al., 2019), and Mahjong (Li et al., 2020). However, these games present an excessively large action space. For instance, in Dou Di Zhu, players can use any combination of their cards in each round, posing significant challenges for current LLMs (Zhai et al., 2024).
|
| 31 |
+
|
| 32 |
+
Considering the above aspects, we make the following efforts in this paper:
|
| 33 |
+
|
| 34 |
+
First, we build the UNO Arena to dynamically evaluate the sequential decision-making capability of current LLMs. In the UNO Arena, we allow LLMs to participate as players in the UNO game $^2$ , aiming to play all the cards in their hand as quickly as possible. Compared to games like Leduc Hold'em, which have fewer moves per game, UNO features an average of dozens of moves per game, making it an ideal testbed for sequential decision-making (Pfann, 2021). Additionally, unlike common games in the reinforcement learning, legal actions in the UNO Arena are limited, only including drawing cards, playing cards, selecting colors to convert, and choosing whether to challenge the wild draw four card. Furthermore, to monitor the behaviours of LLMs in the UNO Arena, we propose some real-time quantitative evaluation metrics by leveraging the Monte Carlo method (Kroese et al., 2014) as the reference, which provide a window to observe the intermediate results and various phenomena (like domino effect) in LLMs' se
|
| 35 |
+
|
| 36 |
+
quental decision-making.
|
| 37 |
+
|
| 38 |
+
Second, based on the proposed UNO Arena, we set up a family of strong and representative players. In detail, we first build the random player, which makes decisions based on chance rather than a specific, consistent plan, without considering the game's current state or potential outcomes. Then, we built heuristic players based on a conservative heuristic UNO play strategy and implement the reinforcement learning based player, which leverages DQN (Mnih et al., 2013) to develop sophisticated strategies for playing UNO. Finally, to probing the capability of LLMs in sequential decision-making, we provides the task description and then prompt LLMs, like GPT-4 (Achiam et al., 2023) and Gemini-pro (Team et al., 2023), to generate their reasoning steps that lead to the final action.
|
| 39 |
+
|
| 40 |
+
Third, to unleash the fully potential capability of LLMs in sequential decision-making, we propose the TUTRI player with reflection mechanism (Shinn et al., 2024), which can enable LLMs to analyze their own actions based on the game history and the game strategy. In detail, the proposed agent framework consists of two key reflection modules: the game history reflection module and the game strategy reflection module. In the game history reflection module, we provide the statistical data of game history and then prompt the LLMs to rethink their decision, which simulates the process of card memorization by humans when playing UNO. In the game strategy reflection module, LLMs further take into account the game strategy, like saving wild draw four, and proceed to make the final decision, which simulates the use and adherence to strategies by humans when playing UNO.
|
| 41 |
+
|
| 42 |
+
In the experiment, we comprehensively evaluate some mainstream LLMs' ability of sequential decision-making, including GPT-3.5 (OpenAI, 2022), GPT-4 (Achiam et al., 2023), Gemini-pro (Team et al., 2023), Llama 2 (Touvron et al., 2023), and ChatGLM3 (Du et al., 2021; Zeng et al., 2022). Our experimental results show that among these LLMs, GPT-4 is the most effective sequential decision-maker.
|
| 43 |
+
|
| 44 |
+
In summary, our contributions are as follows:
|
| 45 |
+
|
| 46 |
+
- We propose a dynamic evaluation method, named UNO Arena, for assessing the sequential decision-making capability of large language models (LLMs) based on the card game UNO. This method supports the evaluation of 2-10 LLM players, reinforcement learning players, heuristic players, or random players engaged in a single UNO game.
|
| 47 |
+
- We introduce multiple unique evaluation metrics based on the Monte Carlo method for evaluating the sequential decision-making capabilities of players in the UNO Arena.
|
| 48 |
+
- To improve the sequential decision-making capabilities of LLMs and enhance their performance in the highly dynamic and complex UNO game, we have developed the TUTRI player and compared it horizontally with the vanilla LLM player.
|
| 49 |
+
|
| 50 |
+
# 2 Related Work
|
| 51 |
+
|
| 52 |
+
Evaluate LLMs Dynamically with Game: LLMs have presented increasingly emerging ability on game-playing (Brookins and DeBacker, 2023; Akata et al., 2023) in recent development and iterations. Wang et al. (2023b) use the Avalon, which contains elements of deception, to evaluate the capability of LLMs to recognize and handle deceptive information. Gong et al. (2023) leverage the Cuisine World and Minecraft to assess the planning and emergency cooperation capabilities of LLMs. Guo et al. (2024a) employ beauty contests and auction games to evaluate the rationality, strategic reasoning capability, and adherence to instructions of LLMs. Xu et al. (2023) use the Werewolf game to evaluate the capability of LLMs to infer player roles. Despite evaluating with game becoming a popular trend, exploring into sequential decision-making capability is still of scarcity in current works.
|
| 53 |
+
|
| 54 |
+
Development of Agent Framework: LLM agents have been perceived as a promising way to realiz
|
| 55 |
+
|
| 56 |
+
ing Artificial General Intelligence(AGI) (Xi et al., 2023) and recently have shown emergent abilities to execute various tasks in the complex environment (Wei et al., 2022). SiLLM (Guo et al., 2024b) merges large language models with synchronous machine translation, using policy decision agents and translation agents. LLM-Vectorizer (Taneja et al., 2024) uses multiple agents to generate vectorized code by leveraging large language models and test-based feedback. We tailor a special framework for UNO in this paper, featuring self-refinement and iterative thinking.
|
| 57 |
+
|
| 58 |
+
Sequential Decision-Making Capability: Sequential decision-making refers to the process of making a series of decisions over time, where each decision may impact future choices and outcomes (Amir, 2014). Though certain algorithms or reinforcement learning provide solutions for some sequential decision-making problems (Littman, 1996), LLM-based sequential decision-making are only employed in limited field like recommendation (Wang et al., 2023c). In our work, we utilize the UNO game, which is not an easy one even for human (Demaine et al., 2014), to explore the sequential decision-making ability of LLMs. With certain methods like integrating past experiences and expert advice or demonstrations (Chen et al., 2023), we make efforts to maximally leverage the decision making ability as possible in a sequential manner.
|
| 59 |
+
|
| 60 |
+
# 3 The UNO Arena
|
| 61 |
+
|
| 62 |
+
In this section, we first provide a brief overview of the version of UNO we adopt in the subsection §3.1. Then, we present the four different types of players in the UNO Arena in the subsection §3.2. Next, we detail how to use Monte Carlo methods to determine whether a player has made an optimal decision in subsection §3.3. In the end, we introduce our evaluation metrics in subsection §3.4.
|
| 63 |
+
|
| 64 |
+
# 3.1 The UNO Game
|
| 65 |
+
|
| 66 |
+
We select the UNO as the foundation within our arena due to its widespread popularity, simplicity and mathematical value. There are various versions of the UNO game. In this section, we briefly introduce the rules of the version we adopt in this work.
|
| 67 |
+
|
| 68 |
+
UNO Cards: A deck of UNO cards comprises a total of 108 cards. UNO cards are divided into three types: number cards, function cards, and wild
|
| 69 |
+
|
| 70 |
+
cards. A number card is composed of a color (Red, Blue, Yellow and Green) and a number (ranging from 0 to 9). A function card is composed of a color (Red, Blue, Yellow and Green) and a function (Skip, Reverse, Draw Two). The wild cards have no color and is only composed of Wild cards and Wild Draw Four cards. The effects of the function cards and wild cards are shown in the Table 1.
|
| 71 |
+
|
| 72 |
+
UNO Process: First, deal each player 7 initial cards in clockwise order, then continue drawing cards until a number card is drawn and set as the top card of the initial discard pile. All players take rounds playing cards in clockwise order (it will be reversed by a reverse card) until a player runs out of his cards or the draw pile is exhausted, signaling the end of the game.
|
| 73 |
+
|
| 74 |
+
UNO Action: From the beginning to the end of the game, players continuously take actions in UNO. In our work, UNO includes the following types of actions:
|
| 75 |
+
|
| 76 |
+
- Select Card: When a player comes his playing round, he need to play a card that matches the color, number, or function of the top card in the discard pile, or play a Wild card. If he does not have a card to play, he must draw one card.
|
| 77 |
+
- Select Color: After a player plays a Wild card or a Wild Draw Four card, the player need to change the color of the current top card to one of Red, Yellow, Blue or Green.
|
| 78 |
+
- Select ChallengeFlag: After a player's previous opponent plays a Wild Draw Four card, the player need to decide whether to challenge the legality of the previous opponent's Wild Draw Four card.
|
| 79 |
+
|
| 80 |
+
For more details about the UNO games, please refer to Appendix A. The Figure 1 (A) shows the workflow diagrams of UNO Arena.
|
| 81 |
+
|
| 82 |
+
# 3.2 Players in the UNO Arena
|
| 83 |
+
|
| 84 |
+
In the UNO Arena, we initially involve three types of players: random player, reinforcement learning based player, vanilla LLM player. To further unleash the potential capability of LLMs in sequential decision-making, we propose TUTRI player, which involves reflection mechanism.
|
| 85 |
+
|
| 86 |
+
Random Player: As like its name suggests, the random player performs all actions randomly, such as randomly selecting a regulative card to play when it is his turn. The random player can be considered the baseline of the UNO Arena, mainly
|
| 87 |
+
|
| 88 |
+
<table><tr><td>Card</td><td>Sample</td><td>Effect</td></tr><tr><td>Skip</td><td></td><td>The next player in sequence misses a round.</td></tr><tr><td>Reverse</td><td></td><td>Order of play switches directions (clockwise to counterclockwise, or vice versa).</td></tr><tr><td>Draw Two</td><td>+2</td><td>The next player in sequence draws two cards and misses a round.</td></tr><tr><td>Wild</td><td></td><td>Player declares the next color to be matched (it can be used on any round even if the player has any card of matching color).</td></tr><tr><td>Wild Draw Four</td><td>+4</td><td>Player declares the next color to be matched. The next player in sequence draws four cards and misses a round. May be legally played if the player has cards of the current color.</td></tr></table>
|
| 89 |
+
|
| 90 |
+
Table 1: The effects of function and wild cards.
|
| 91 |
+
|
| 92 |
+
serving to maintain the flow of the UNO game. If some players outperform the random player, we can infer that these players are consciously playing UNO with an understanding of the game rules.
|
| 93 |
+
|
| 94 |
+
Heuristic Player: The heuristic player here is a player who follows the following strategy: (1) The number cards are matched first, and since the numbers 0 and 9 are half the number of other number cards, 0 number cards and 9 number cards have higher priority than other number cards. (2) Keep the function cards as much as possible, first match the type of function cards, and the priority is: Reverse cards, Skip cards and Draw Two cards. (3) Keep the wild cards as much as possible, and choose the most color in your hand when using the wild card to change the color of the top card in the current discard pile.
|
| 95 |
+
|
| 96 |
+
Reinforcement Learning Based Player: Previous research has sought breakthroughs in the UNO game by using reinforcement learning models (Pfann, 2021). We built our reinforcement learning player with DQN (Mnih et al., 2013) model based on the open-source project RLcard (Zha et al., 2019).
|
| 97 |
+
|
| 98 |
+
Vanilla LLM Player: During the vanilla LLM player's turn, the game host transmits all publicly available information through a prompt to the LLM. The LLM then returns a JSON containing the decision and reasoning as required by the prompt. The Figure 1 (B) shows the workflow diagrams of vanilla LLM player.
|
| 99 |
+
|
| 100 |
+
TUTRI Player: While LLMs do not always generate the best output on their first try just as hu
|
| 101 |
+
|
| 102 |
+
man (Madaan et al., 2023), iterative feedback and refinement could be a necessity for a better agent framework. Moreover, human-like thinking patterns, such as introspective reflections foster divergent thinking processes (Zhang et al., 2023), inspire us to propose the TUTRI player. This advanced framework is designed to navigate the intricacies of UNO game play, offering a more structured approach to strategic sequential decision-making. The original decision for TUTRI player is exactly the same as the vanilla LLM player's decision, after that are two additional reflection modules.
|
| 103 |
+
|
| 104 |
+
- The Game History Reflection Module: In this module, we provide statistical information about game history to the TUTRI player, and the player is told to reflect the action you just selected with these auxiliary information. Just like human thinking when playing UNO, if there is a large number of green cards that have already been played in the game's history, it is very advantageous for the player to play a green card. After reflection, the player need to output both reflection thoughts and the updated action.
|
| 105 |
+
- The Game Strategy Reflection Module: In this module, we provide additional useful game strategies to the TUTRI player, and the player is again told to reflect the action you just selected based on game strategies. For example, since wild cards can be played at any situations and disrupt other players, saving the wild cards in your hand as long as possible is a very useful game strategy. After reflection, the player should output both reflection thoughts and updated action (the final action).
|
| 106 |
+
|
| 107 |
+
It must be emphasized that the TUTRI player should work in a conversational manner, with exactly 3 times Q&A per round. Moreover, the TUTRI player may keep their original decision, in other words, literally updating the action is not a necessity, nevertheless, the reflection process, instead of simple I-O prompting of interaction, providing more opportunities for mistake correcting and divergent thinking. The Figure 1(C) shows the workflow diagrams of TUTRI player.
|
| 108 |
+
|
| 109 |
+
# 3.3 Monte Carlo Simulation Method for Monitoring Players' Behavior
|
| 110 |
+
|
| 111 |
+
In the game play, the change in each player's winning rate after making a decision is the key for tracking. In the classical combinatorial games, like
|
| 112 |
+
|
| 113 |
+
Nim (Bouton, 1901) or Wythoff's Game (Wythoff, 1907), positions space are limited and thus computationally affordable, while UNO is more intricate, where positional space exponentially increases as cards number increases and the calculation gets tougher (Demaine et al., 2014).
|
| 114 |
+
|
| 115 |
+
To make a plausible ranking mechanism of the candidate decisions, we define the concept of optimal decision, meaning the state transferred by the decision from last state, has a highest winning rate concerning all subsequent outcomes, and thus adopt Monte Carlo Simulation (Mooney, 1997) to calculate the estimated winning rate.
|
| 116 |
+
|
| 117 |
+
Detailedly, with $S_{i}$ representing the state of the game after the $i$ -th step taken, $D_{i,j}$ representing the $j$ -th legal decision candidates at state $S_{i}$ , $\mathcal{T}$ representing the state transfer function, $\mathcal{E}$ representing the estimate function of state, thereby we have the definition of the optimal decision $D_{i,opt}$ at the $i$ -th step where
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
o p t = \underset {j} {\arg \max } \mathcal {E} \left(\mathcal {T} \left(S _ {i - 1}, D _ {i, j}\right)\right) \tag {1}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
In calculation of $\mathcal{E}(S_i)$ , we massively randomly generate the subsequent decision sequence $\{D_{i+1}, D_{i+2}, \ldots\}$ and thus obtain the subsequent state sequence $\{S_{i+1}, S_{i+2}, \ldots\}$ . Then $\mathcal{E}(S_i)$ is assigned to the ratio of number of sequences where the player plays the state $S_{i-1}$ comes as the winner, to the total number of sequences simulated.
|
| 124 |
+
|
| 125 |
+
As the times we simulate the subsequent sequence increases, the approximate value $\mathcal{E}(S_i)$ gets more precise, though we could not enumerate all the possible situations. To balance the time expenditure and the precision of the metrics, we control the simulation times in a certain range. Additionally, a threshold parameter $p$ is set to identify critical decisions. We say a decision $D \coloneqq D_i$ is critical if among its all candidate choices $D_j$
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\max \mathcal {E} (\mathcal {T} (S, D _ {j})) - \min \mathcal {E} (\mathcal {T} (S, D _ {j})) \geq p \tag {2}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
Actual decisions made on critical positions may have a huge effect on the winning rate, which is consistent with the game nature.
|
| 132 |
+
|
| 133 |
+
# 3.4 Evaluation Metrics in the UNO Arena
|
| 134 |
+
|
| 135 |
+
In our work, we design three evaluation metrics, including WR, ODHR@K and ADR@K, in conjunction with the UNO game to comprehensively evaluate the sequential decision-making capability of LLMs. Among these metrics, ODHR@K and
|
| 136 |
+
|
| 137 |
+
ADR@K can off a glimpse into the intermediate results in the sequential decision-making of LLMs.
|
| 138 |
+
|
| 139 |
+
Winning Rate (WR). WR denotes the proportion of player wins to total game innings, and can be represented as:
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\mathrm {W R} = \frac {N _ {\text {W i n}}}{N _ {\text {G a m e}}} \tag {3}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
where $N_{\mathrm{Win}}$ represents the total number of times the given player has won, and $N_{\mathrm{Game}}$ denotes the total game innings.
|
| 146 |
+
|
| 147 |
+
Optimal Decision Hit Rate at K Decision Points (ODHR@K): This metric measure the proportion of times players make the best decision to all decision times, when facing K decision points:
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
\mathrm {O D H R} @ \mathrm {K} = \frac {N _ {\text {H i t} @ \mathrm {K}}}{N _ {\text {D e c i s i o n} @ \mathrm {K}}} \tag {4}
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
where $N_{\mathrm{Hit@K}}$ is the number of times the player makes the optimal decision when facing K optional decision points, and $N_{\mathrm{Decision@K}}$ represents the total number of times the agent player makes decision when it faces K optional decision points.
|
| 154 |
+
|
| 155 |
+
Average Decision Rank at K Decision Points (ADR@K). This metric looks at the rank of output decision made by the player, and can be denoted as:
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
\mathrm {A D R} @ \mathrm {K} = \frac {\sum_ {i = 1} ^ {N _ {\text {D e c i s i o n}} @ \mathrm {K}} \operatorname {R a n k} \left(D _ {i}\right)}{N _ {\text {D e c i s i o n}} @ \mathrm {K}} \tag {5}
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
where $\operatorname{Rank}(D_i)$ represents the rank from best to worst among all legal decisions in its decision-making process, and $N_{\text{Decision}@\mathbf{K}}$ represents the total number of times the agent player makes decision when it faces $\mathbf{K}$ optional decision points.
|
| 162 |
+
|
| 163 |
+
For metrics ODHR@K and ADR@K, according to the characteristics of UNO, we only focus on the situations where $K$ is equal to 2, 3 or 4, because the vast majority of decisions in UNO do not exceed 4 (Pfann, 2021).
|
| 164 |
+
|
| 165 |
+
# 4 Experiments
|
| 166 |
+
|
| 167 |
+
In this section, we first conduct preliminary experiments with vanilla LLM players, RL players, and random players in subsection §4.1. Then, we have multiple different LLM-based vanilla players compete in UNO Arena to identify the best LLM in subsection §4.2. Next, we test the superiority of the TUTRI players compared to the vanilla LLM players in subsection §4.3. Finally, we perform
|
| 168 |
+
|
| 169 |
+
<table><tr><td rowspan="2">Metrics</td><td colspan="6">Vanilla LLM Players & RL Player with DNQ</td></tr><tr><td>GPT-3.5</td><td>GPT-4</td><td>Gemini-Pro</td><td>Llama 2</td><td>ChatGLM3</td><td>DNQ</td></tr><tr><td>WR (↑)</td><td>55.80</td><td>63.20</td><td>53.80</td><td>53.60</td><td>48.80</td><td>57.40</td></tr><tr><td>ODHR@2 (↑)</td><td>57.34</td><td>61.47</td><td>53.94</td><td>53.69</td><td>49.75</td><td>54.96</td></tr><tr><td>ADR@2 (↓)</td><td>1.427</td><td>1.385</td><td>1.461</td><td>1.463</td><td>1.503</td><td>1.450</td></tr><tr><td>ODHR@3 (↑)</td><td>32.15</td><td>39.30</td><td>34.42</td><td>33.84</td><td>34.45</td><td>35.98</td></tr><tr><td>ADR@3 (↓)</td><td>2.010</td><td>1.904</td><td>2.017</td><td>1.994</td><td>2.034</td><td>1.947</td></tr><tr><td>ODHR@4 (↑)</td><td>27.20</td><td>36.99</td><td>31.05</td><td>27.39</td><td>25.36</td><td>37.74</td></tr><tr><td>ADR@4 (↓)</td><td>2.399</td><td>2.142</td><td>2.331</td><td>2.436</td><td>2.460</td><td>2.247</td></tr></table>
|
| 170 |
+
|
| 171 |
+
ablation experiments on the TUTRI player in subsection $\S 4.4$
|
| 172 |
+
|
| 173 |
+
To ensure the generalization of the experiments, we take the mainstream LLMs mentioned in the introduction: (1) gpt-3.5-turbo-16k-0613 (OpenAI, 2022); (2) gpt-4-1106-preview (Achiam et al., 2023); (3) Gemini-pro (Team et al., 2023); (4) Llama-2-7b-chat (Touvron et al., 2023); (5) ChatGLM3-6b (Du et al., 2021; Zeng et al., 2022).
|
| 174 |
+
|
| 175 |
+
# 4.1 1v1 UNO Arena between vanilla LLM players, RL players and random players
|
| 176 |
+
|
| 177 |
+
In order to verify the rationality of using UNO Arena to evaluate the sequential decision-making ability of LLMs, we first conduct experiments on vanilla LLM players, RL players and random players in 1V1 UNO Arena. We randomly generate 500 sets of UNO initial decks. Each vanilla LLM player or RL player have to play with the random player in these 500 initial decks. In addition, the random players are the first to play cards in all games. The results are shown in the Table 2.
|
| 178 |
+
|
| 179 |
+
Table 2: Statistical results of random player VS vanilla LLM player or RL player with DNQ. The decision threshold $p$ for critical decision in ODHR@K and ADR@K is 0.15. Bold indicates the best result, underline the second best result, and the Table 3 below follows this pattern.
|
| 180 |
+
|
| 181 |
+
<table><tr><td rowspan="2">Metrics</td><td colspan="5">Vanilla LLM Players</td></tr><tr><td>GPT-3.5</td><td>GPT-4</td><td>Gemini-Pro</td><td>Llama 2</td><td>ChatGLM3</td></tr><tr><td>WR (↑)</td><td>22.80</td><td>24.20</td><td>20.40</td><td>20.00</td><td>15.60</td></tr><tr><td>ODHR@2 (↑)</td><td>52.57</td><td>54.77</td><td>49.88</td><td>54.08</td><td>50.52</td></tr><tr><td>ADR@2 (↓)</td><td>1.474</td><td>1.452</td><td>1.501</td><td>1.459</td><td>1.495</td></tr><tr><td>ODHR@3 (↑)</td><td>39.56</td><td>41.41</td><td>33.14</td><td>34.78</td><td>33.13</td></tr><tr><td>ADR@3 (↓)</td><td>1.889</td><td>1.885</td><td>2.034</td><td>1.978</td><td>2.043</td></tr><tr><td>ODHR@4 (↑)</td><td>26.75</td><td>29.03</td><td>25.74</td><td>24.90</td><td>25.04</td></tr><tr><td>ADR@4 (↓)</td><td>2.407</td><td>2.366</td><td>2.516</td><td>2.471</td><td>2.477</td></tr></table>
|
| 182 |
+
|
| 183 |
+
Table 3: Statistical results of competition among 5 vanilla LLM players in UNO Arena. The decision threshold $p$ for critical decision in ODHR@K and ADR@K is 0.00.
|
| 184 |
+
|
| 185 |
+
From the Table 2, we can find that (1) Except for
|
| 186 |
+
|
| 187 |
+
<table><tr><td>LLM</td><td>WR (↑)</td><td>ODHR@2 (↑)</td><td>ADR@2 (↓)</td><td>ODHR@3 (↑)</td><td>ADR@3 (↓)</td><td>ODHR@4 (↑)</td><td>ADR@4 (↓)</td></tr><tr><td>GPT-3.5 (vanilla)</td><td>48.00</td><td>53.05</td><td>1.4695</td><td>34.97</td><td>1.9508</td><td>34.47</td><td>2.2340</td></tr><tr><td>GPT-3.5 (TUTRI)</td><td>52.50 (+4.50%)</td><td>54.01 (+0.06%)</td><td>1.4599 (-0.06%)</td><td>43.13 (+8.16%)</td><td>1.8563 (-4.73%)</td><td>32.92 (-1.55%)</td><td>2.2667 (+1.09%)</td></tr><tr><td>GPT-4 (vanilla)</td><td>49.00</td><td>56.27</td><td>1.4373</td><td>39.38</td><td>1.9375</td><td>36.24</td><td>2.2140</td></tr><tr><td>GPT-4 (TUTRI)</td><td>51.00 (+2.00%)</td><td>56.60 (+0.33%)</td><td>1.4340 (-0.33%)</td><td>40.14 (+0.76%)</td><td>1.8592 (-3.92%)</td><td>36.33 (+0.09%)</td><td>2.1510 (-2.10%)</td></tr><tr><td>Gemini-pro (vanilla)</td><td>44.00</td><td>50.62</td><td>1.4938</td><td>37.04</td><td>2.0159</td><td>25.44</td><td>2.4737</td></tr><tr><td>Gemini-pro (TUTRI)</td><td>56.50 (+12.50%)</td><td>53.64 (+3.02%)</td><td>1.4636 (-3.02%)</td><td>34.13 (-2.91%)</td><td>1.9461 (-3.49%)</td><td>30.36 (+4.92%)</td><td>2.3482 (-4.18%)</td></tr><tr><td>Llama 2 (vanilla)</td><td>47.00</td><td>49.54</td><td>1.5046</td><td>33.11</td><td>1.9595</td><td>29.11</td><td>2.3944</td></tr><tr><td>Llama 2 (TUTRI)</td><td>54.00 (+7.00%)</td><td>55.07 (+5.53%)</td><td>1.4493 (-5.53%)</td><td>37.31 (+4.20%)</td><td>1.8507 (-5.44%)</td><td>26.75 (-2.36%)</td><td>2.4650 (+2.35%)</td></tr><tr><td>ChatGLM3 (vanilla)</td><td>47.00</td><td>55.82</td><td>1.4418</td><td>29.05</td><td>2.0541</td><td>31.84</td><td>2.2935</td></tr><tr><td>ChatGLM3 (TUTRI)</td><td>54.00 (+7.00%)</td><td>57.24 (+1.42%)</td><td>1.4276 (-1.42%)</td><td>39.51 (+10.46%)</td><td>1.8642 (-9.50%)</td><td>30.62 (-1.22%)</td><td>2.4689 (+5.85%)</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 4: Statistical results of vanilla LLM players VS TUTRI players. The decision threshold $p$ for critical decision in ODHR@K and ADR@K is 0.00. Red annotations indicate favorable experimental results, while blue annotations indicate unfavorable experimental results.
|
| 190 |
+
|
| 191 |
+
<table><tr><td>LLM</td><td>WR (↑)</td><td>ODHR@2 (↑)</td><td>ADR@2 (↓)</td><td>ODHR@3 (↑)</td><td>ADR@3 (↓)</td><td>ODHR@4 (↑)</td><td>ADR@4(↓)</td></tr><tr><td>Gemini-pro (TUTRI)</td><td>56.50</td><td>53.64</td><td>1.4636</td><td>34.13</td><td>1.9461</td><td>30.36</td><td>2.3482</td></tr><tr><td>Gemini-pro + TUTRI'</td><td>52.50 (-4.00%)</td><td>54.33 (+0.69%)</td><td>1.4567 (-0.69%)</td><td>29.88 (-4.25%)</td><td>2.0610 (+5.75%)</td><td>31.25 (+0.89%)</td><td>2.4219 (+2.46%)</td></tr><tr><td>Gemini-pro + TUTRI''</td><td>53.50 (-3.00%)</td><td>54.59 (+0.95%)</td><td>1.4541 (-0.95%)</td><td>31.95 (-2.18%)</td><td>2.0384 (+4.62%)</td><td>27.59 (-2.77%)</td><td>2.3824 (-1.14%)</td></tr></table>
|
| 192 |
+
|
| 193 |
+
Table 5: Statistical results of the ablation study. Where TUTRI' represents the TUTRI player which remove the game history reflection module, and TUTRI'' represents the TUTRI player which remove the game strategy reflection module. The decision threshold $p$ for critical decision in ODHR@K and ADR@K is 0.15. Red annotations indicate favorable experimental results, while blue annotations indicate unfavorable experimental results.
|
| 194 |
+
|
| 195 |
+
ChatGLM3, the WR of other vanilla LLM players and RL players are all above $50.00\%$ ; (2) The performance of GPT-4 is the best, and GPT-4 performs excellently on the 7 evaluation metrics. Especially, the WR of GPT-4 is $63.20\%$ , $13.20\%$ higher than $50.00\%$ .
|
| 196 |
+
|
| 197 |
+
# 4.2 5-players UNO Arena with 5 LLMs
|
| 198 |
+
|
| 199 |
+
To find the best LLM, we place 5 LLMs in a 5- players UNO Arena to compete against each other. We fix the initial playing order of UNO Arena in the sequence of GPT-3.5, GPT-4, Gemini-Pro, Llama 2, and ChatGLM3. We conduct experiment on 200 decks generated randomly. All players are the vanilla LLM players. The results are shown in the Table 3.
|
| 200 |
+
|
| 201 |
+
From the Table 3, we can find that (1) GPT-4 has the best performance, with a WR of $24.20\%$ , $4.2\%$ higher than the average $(20.00\%)$ and $1.4\%$ higher than the second highest ranked GPT-3.5. Not only that, GPT-4 also performs the best in other 6 evaluation metrics; (2) ChatGLM3 has the worst performance, with a WR of $15.60\%$ , which is $4.4\%$ lower than the average $(20.00\%)$ and $8.6\%$ lower than the highest ranked GPT-4. Not only that, ChatGLM3 also performs the worst in ODHR@2, ADR@2, ADR@3, ODHR@4, and ADR@4.
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
Figure 2: The Pearson Correlation Heatmap among WR, ODHR@K (K=2,3,4), and ADR@K (K=2,3,4).
|
| 205 |
+
|
| 206 |
+
# 4.3 Validation of the superiority of the TUTRI player compared to the vanilla LLM player
|
| 207 |
+
|
| 208 |
+
To verify that our TUTRI player can improve the sequential decision-making ability of LLMs, we compare the vanilla LLM players (baseline) with TUTRI players. We let 5 LLMs serve as the backend LLMs for both the vanilla LLM players and TUTRI players, and play two-players UNO Arena on 200 decks generated randomly. The results are shown in the Table 4.
|
| 209 |
+
|
| 210 |
+
From the Table 4, we can find that: (1) All LLMs (the TUTRI player) are better than LLM (the vanilla LLM player) on WR, ODHR@2, and ADR@3.
|
| 211 |
+
|
| 212 |
+

|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
|
| 216 |
+

|
| 217 |
+
Figure 3: GPT-4 (the vanilla LLM player) real-time winning rate variations on 4 decks.
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
|
| 221 |
+
Gemini-Pro (the TUTRI player) has a $12.50\%$ higher than Gemini-Pro (the vanilla LLM player) on WR; (2) For ODHR@3, except for Gemini-Pro which performed slightly worse $(-2.91\%)$ , the other 4 LLMs achieved good results. For ODHR@4 and ADR@4, GPT-4 and Gemini-Pro both performed well. It can be seen that the TUTRI player based on reflection can significantly improve its abilities of sequential decision-making after two rounds of reflection on the summary of game history and the game strategies. The experimental results strongly support the superiority of our TUTRI player based on the reflection mechanism over the vanilla LLM player.
|
| 222 |
+
|
| 223 |
+
# 4.4 Ablation studies on TUTRI player
|
| 224 |
+
|
| 225 |
+
To illustrate the necessity of the two reflection modules in the TUTRI player, we further conduct some ablation studies. We remove the game history reflection module and the game strategy reflection module from the TUTRI players, and conduct two-players UNO Arena with vanilla LLM player respectively. The results are shown in the Table 5.
|
| 226 |
+
|
| 227 |
+
From the Table 5, we can find that: (1) After removing the game history reflection module, the WR of decreased by $4\%$ , the ODHR@3 of decreased $4.25\%$ , and the ADR@3 of increase by $5.75\%$ . (2) After removing the game strategy reflection module, the WR of decreased by $3\%$ , the ODHR@3 of decreased $2.18\%$ , and the ADR@3 of increase by $4.62\%$ . The game history holds significant potential information for incomplete information games. Therefore, removing the game history reflection module has a greater adverse impact on the TUTRI player.
|
| 228 |
+
|
| 229 |
+
# 5 Discussion
|
| 230 |
+
|
| 231 |
+
# 5.1 Further Exploration of ODHR@K and ADR@K
|
| 232 |
+
|
| 233 |
+
To better analyze the relationship between our unique evaluation metrics (ODHR@K and ADR@K), and the evaluation metric WR, we conduct a Pearson correlation analysis of the experimental results from the Table 2. The results are shown in the Figure 2. From the Figure 2, we can find that (1) WR shows a positive correlation with ODHR@K $(\mathrm{K} = 2,3,4)$ , and simultaneously, WR shows a negative correlation with ADR@K $(\mathrm{K} = 2,3,4)$ ; (2) The strongest positive correlation, reaching 0.85, exists between WR and ODHR@3, while the strongest negative correlation, reaching -0.86, exists between WR and ADR@3. Overall, our unique ODHR@K and ADR@K have a good correlation with WR, so they can serve as reference evaluation metrics for evaluating LLMs in the UNO Arena.
|
| 234 |
+
|
| 235 |
+
# 5.2 Case Study
|
| 236 |
+
|
| 237 |
+
In order to more intuitively see the advantages of LLM versus random player, we conduct a case study. We utilized GPT-4 as the backend LLM for the vanilla LLM player to engage in the game across 4 decks generated randomly, with the random player plays first. We recorded all decision points (for both the vanilla LLM player and the random player) and employed the Monte Carlo method to calculate the real-time percentage change in winning rate for both sides following each decision point. The results are shown in the Figure 3.
|
| 238 |
+
|
| 239 |
+
From the Figure 3, we can find that: (1) In the
|
| 240 |
+
|
| 241 |
+
<table><tr><td>Player</td><td>WR (↑)</td><td>ODHR@2 (↑)</td><td>ADR@2 (↓)</td><td>ODHR@3 (↑)</td><td>ADR@3 (↓)</td><td>ODHR@4 (↑)</td><td>ADR@4(↓)</td></tr><tr><td>Heuristic Players</td><td>63.60</td><td>62.68</td><td>1.373</td><td>37.55</td><td>1.931</td><td>37.03</td><td>2.227</td></tr><tr><td>Random Players</td><td>36.40</td><td>37.12</td><td>1.630</td><td>28.92</td><td>2.153</td><td>16.64</td><td>2.615</td></tr><tr><td>Heuristic Players</td><td>60.80</td><td>59.74</td><td>1.402</td><td>36.37</td><td>1.932</td><td>34.81</td><td>2.252</td></tr><tr><td>Vanilla LLM Players</td><td>39.60</td><td>38.31</td><td>1.618</td><td>29.12</td><td>2.148</td><td>17.23</td><td>2.651</td></tr></table>
|
| 242 |
+
|
| 243 |
+
Table 6: The experimental results of heuristic players compared to random players and vanilla LLM players.
|
| 244 |
+
|
| 245 |
+
UNO Arena, winning rates fluctuate significantly. For example, in deck 1, from round 28 to 29, the random player's winning rate dropped by $34.5\%$ , while the vanilla LLM player by $34.67\%$ ; (2) Turning points, like rounds 44 and 67 in deck 3, show shifts in dominance. Initially, the vanilla LLM player leads until round 44, then loses advantage until round 67, before regaining control; (3) Brief game durations occur, notably in deck 4, where the agent player consistently makes exceptional decisions, steadily increasing its winning rate until achieving victory. These findings underscore LLM's adeptness at identifying crucial decision junctures and exploiting its capabilities, highlighting its potential in sequential decision-making scenarios.
|
| 246 |
+
|
| 247 |
+
# 5.3 Exploring the Capabilities of Heuristic Players
|
| 248 |
+
|
| 249 |
+
We conduct two experiments: one where heuristic players face random players in 500 different UNO decks, and another where heuristic players compete against vanilla LLM players using Llama-2 in the same 500 decks. The experimental results are shown in the Table 6.
|
| 250 |
+
|
| 251 |
+
From the Table 6, we can find that: (1) Heuristic players significantly outperform random players across all evaluation metrics. (2) Heuristic players also demonstrate strong capabilities compared to vanilla LLM players (Llama 2), although the performance of vanilla LLM players is still superior to that of random players.
|
| 252 |
+
|
| 253 |
+
# 5.4 Concerns about Data Contamination
|
| 254 |
+
|
| 255 |
+
As previous studies suggest (Topsakal et al., 2024; Karvonen, 2024), we usually assume LLMs are not trained explicitly for games, like UNO and Tic-Tac-Toe. The LLMs know the description/rules of the games but the experimental results show that even the strongest LLM, like GPT-4, struggles. Besides, As we mention in the introduction section, there are static methods and dynamic methods (such as UNO Arena and Warewolf) in evaluating LLMs'
|
| 256 |
+
|
| 257 |
+
ability. Compared to static methods, UNO Arena is less prone to data contamination due to vast game sampling space and vast game state (for a given game) space. Specifically, we sample 500 UNO games and find that among these 500 games, the maximum game state is $1.610^{34}$ , and the average game state is $5.310^{31}$ . Considering the enormous game state space and almost infinite game space, LLMs are extremely difficult to learn or overfit genuinely useful patterns or strategies. Therefore, we don't need to worry about data contamination potentially skewing the results.
|
| 258 |
+
|
| 259 |
+
# 6 Conclusion
|
| 260 |
+
|
| 261 |
+
In conclusion, LLMs possess the capability for sequential decision-making, as evidenced by the experimental results of LLMs playing the UNO game. Our proposed UNO Arena and unique evaluation metrics enable LLMs to compete with each other in the same UNO Arena game, thereby providing a better dynamic assessment of LLMs' sequential decision-making abilities. Furthermore, we propose that the TUTRI player effectively addresses how to enhance LLMs' sequential decision-making abilities for better performance in playing UNO Arena.
|
| 262 |
+
|
| 263 |
+
# Acknowledgements
|
| 264 |
+
|
| 265 |
+
This work is supported by the National Key R&D Program of China (Grant No. 2023YFB3307500). This work is also supported by the National Natural Science Foundation of China (Grant No. 62306087, No. 62472121 and No.62306313), the Natural Science Foundation of Shandong Province (Grant No. ZR2023QF154), Special Funding Program of Shandong Taishan Scholars Project, the Open Project of Anhui Provincial Key Laboratory of Multimodal Cognitive Computation, Anhui University (Grant No. MMC202420) and the InnoHK program. Besides, we sincerely thank the anonymous reviewers for their valuable feedback.
|
| 266 |
+
|
| 267 |
+
# Limitations
|
| 268 |
+
|
| 269 |
+
The method of dynamically evaluating the sequential decision-making ability of LLMs using the UNO Arena, as well as the TUTRI player, is only applicable to LLMs that support chat. The unique evaluation metrics, ODHR@K and ADR@K, introduced in this paper are only applicable to games or tasks with a limited action space.
|
| 270 |
+
|
| 271 |
+
# References
|
| 272 |
+
|
| 273 |
+
Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.
|
| 274 |
+
Rachith Aiyappa, Jisun An, Haewoon Kwak, and Yong-Yeol Ahn. 2023. Can we trust the evaluation on chatgpt?
|
| 275 |
+
Elif Akata, Lion Schulz, Julian Coda-Forno, Seong Joon Oh, Matthias Bethge, and Eric Schulz. 2023. Playing repeated games with large language models. arXiv preprint arXiv:2305.16867.
|
| 276 |
+
Eyal Amir. 2014. Reasoning and decision making. The Cambridge handbook of artificial intelligence, pages 191-212.
|
| 277 |
+
Saeid Amiri, Mohammad Shokrolah Shirazi, and Shiqi Zhang. 2020. Learning and reasoning for robot sequential decision making under uncertainty. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 2726-2733.
|
| 278 |
+
Charles L Bouton. 1901. Nim, a game with a complete mathematical theory. The Annals of Mathematics, 3(1/4):35-39.
|
| 279 |
+
Philip Brookins and Jason Matthew DeBacker. 2023. Playing games with gpt: What can we learn about a large language model from canonical strategic games? Available at SSRN 4493398.
|
| 280 |
+
Yupeng Chang, Xu Wang, Jindong Wang, Yuan Wu, Linyi Yang, Kaijie Zhu, Hao Chen, Xiaoyuan Yi, Cunxiang Wang, Yidong Wang, et al. 2023. A survey on evaluation of large language models. ACM Transactions on Intelligent Systems and Technology.
|
| 281 |
+
Liting Chen, Lu Wang, Hang Dong, Yali Du, Jie Yan, Fangkai Yang, Shuang Li, Pu Zhao, Si Qin, Saravan Rajmohan, et al. 2023. Introspective tips: Large language model for in-context decision making. arXiv preprint arXiv:2305.11598.
|
| 282 |
+
Erik D Demaine, Martin L Demaine, Nicholas JA Harvey, Ryuhei Uehara, Takeaki Uno, and Yushi Uno. 2014. Uno is hard, even for a single player. Theoretical Computer Science, 521:51-61.
|
| 283 |
+
|
| 284 |
+
Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. 2021. Glm: General language model pretraining with autoregressive blank infilling. arXiv preprint arXiv:2103.10360.
|
| 285 |
+
Keith Frankish and William M Ramsey. 2014. The Cambridge handbook of artificial intelligence. Cambridge University Press.
|
| 286 |
+
Deep Ganguli, Nicholas Schiefer, Marina Favaro, and Jack Clark. 2023. Challenges in evaluating AI systems.
|
| 287 |
+
Ran Gong, Qiuyuan Huang, Xiaojian Ma, Hoi Vo, Zane Durante, Yusuke Noda, Zilong Zheng, Song-Chun Zhu, Demetri Terzopoulos, Li Fei-Fei, et al. 2023. Mindagent: Emergent gaming interaction. arXiv preprint arXiv:2309.09971.
|
| 288 |
+
Jiaxian Guo, Bo Yang, Paul Yoo, Bill Yuchen Lin, Yusuke Iwasawa, and Yutaka Matsuo. 2023. Suspicion-agent: Playing imperfect information games with theory of mind aware gpt-4.
|
| 289 |
+
Shangmin Guo, Haoran Bu, Haochuan Wang, Yi Ren, Dianbo Sui, Yuming Shang, and Siting Lu. 2024a. Economics arena for large language models. arXiv preprint arXiv:2401.01735.
|
| 290 |
+
Shoutao Guo, Shaolei Zhang, Zhengrui Ma, Min Zhang, and Yang Feng. 2024b. Sillm: Large language models for simultaneous machine translation. arXiv preprint arXiv:2402.13036.
|
| 291 |
+
Zexue He, Yu Wang, Julian McAuley, and Bodhisattwa Prasad Majumder. 2022. Controlling bias exposure for fair interpretable predictions. arXiv preprint arXiv:2210.07455.
|
| 292 |
+
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language understanding.
|
| 293 |
+
Adam Karvonen. 2024. Emergent world models and latent variable estimation in chess-playing language models.
|
| 294 |
+
Dirk P Kroese, Tim Brereton, Thomas Taimre, and Zdravko I Botev. 2014. Why the monte carlo method is so important today. Wiley Interdisciplinary Reviews: Computational Statistics, 6(6):386-392.
|
| 295 |
+
Junjie Li, Sotetsu Koyamada, Qiwei Ye, Guoqing Liu, Chao Wang, Ruihan Yang, Li Zhao, Tao Qin, Tie-Yan Liu, and Hsiao-Wuen Hon. 2020. Suphx: Mastering mahjong with deep reinforcement learning. arXiv preprint arXiv:2003.13590.
|
| 296 |
+
Jonathan Light, Min Cai, Sheng Shen, and Ziniu Hu. 2023. Avalonbench: Evaluating llms playing the game of avalon.
|
| 297 |
+
Michael Lederman Littman. 1996. Algorithms for sequential decision-making. Brown University.
|
| 298 |
+
|
| 299 |
+
Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. 2023. Self-refine: Iterative refinement with self-feedback. arXiv preprint arXiv:2303.17651.
|
| 300 |
+
Jeffery S McMullen. 2015. Entrepreneurial judgment as empathic accuracy: A sequential decision-making approach to entrepreneurial action. Journal of Institutional Economics, 11(3):651-681.
|
| 301 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. 2013. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602.
|
| 302 |
+
Christopher Z Mooney. 1997. Monte carlo simulation. 116. Sage.
|
| 303 |
+
OpenAI. 2022. Introducing chatgpt. https://openai.com/blog/chatgpt. Accessed: 2023-09-30.
|
| 304 |
+
Bernhard Pfann. 2021. Tackling the uno card game with reinforcement learning. Towards Data Science: tackling-uno-card-game-with-reinforcement-learning.
|
| 305 |
+
Oscar Sainz, Jon Campos, Iker García-Ferrero, Julien Etxaniz, Oier Lopez de Lacalle, and Eneko Agirre. 2023. NLP evaluation in trouble: On the need to measure LLM data contamination for each benchmark. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 10776-10787, Singapore. Association for Computational Linguistics.
|
| 306 |
+
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2024. Reflexion: Language agents with verbal reinforcement learning. Advances in Neural Information Processing Systems, 36.
|
| 307 |
+
David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. 2017. Mastering the game of go without human knowledge. nature, 550(7676):354-359.
|
| 308 |
+
Jubi Taneja, Avery Laird, Cong Yan, Madan Musuvathi, and Shuvendu K Lahiri. 2024. Llm-vectorizer: Llm-based verified loop vectorizer. arXiv preprint arXiv:2406.04693.
|
| 309 |
+
Gemini Team, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. 2023. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805.
|
| 310 |
+
Oguzhan Topsakal, Colby Jacob Edell, and Jackson Bailey Harper. 2024. Evaluating large language models with grid-based game competitions: An extensible lmm benchmark and leaderboard.
|
| 311 |
+
|
| 312 |
+
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothee Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.
|
| 313 |
+
Sheng Wang, Zihao Zhao, Xi Ouyang, Qian Wang, and Dinggang Shen. 2023a. Chatcad: Interactive computer-aided diagnosis on medical image using large language models. arXiv preprint arXiv:2302.07257.
|
| 314 |
+
Shenzhi Wang, Chang Liu, Zilong Zheng, Siyuan Qi, Shuo Chen, Qisen Yang, Andrew Zhao, Chaofei Wang, Shiji Song, and Gao Huang. 2023b. Avalon's game of thoughts: Battle against deception through recursive contemplation.
|
| 315 |
+
Yu Wang, Zhiwei Liu, Jianguo Zhang, Weiran Yao, Shelby Heinecke, and Philip S Yu. 2023c. Drdt: Dynamic reflection with divergent thinking for lmbased sequential recommendation. arXiv preprint arXiv:2312.11336.
|
| 316 |
+
Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. 2022. Emergent abilities of large language models. arXiv preprint arXiv:2206.07682.
|
| 317 |
+
Willem A Wythoff. 1907. A modification of the game of nim. Nieuw Arch. Wisk, 7(2):199-202.
|
| 318 |
+
Zhiheng Xi, Wenxiang Chen, Xin Guo, Wei He, Yiwen Ding, Boyang Hong, Ming Zhang, Junzhe Wang, Senjie Jin, Enyu Zhou, et al. 2023. The rise and potential of large language model based agents: A survey. arXiv preprint arXiv:2309.07864.
|
| 319 |
+
Cheng Xu, Shuhao Guan, Derek Greene, and M-Tahar Kechadi. 2024. Benchmark data contamination of large language models: A survey.
|
| 320 |
+
Yuzhuang Xu, Shuo Wang, Peng Li, Fuwen Luo, Xiaolong Wang, Weidong Liu, and Yang Liu. 2023. Exploring large language models for communication games: An empirical study on werewolf.
|
| 321 |
+
Yang You, Liangwei Li, Baisong Guo, Weiming Wang, and Cewu Lu. 2019. Combinational q-learning for dou di zhu. arXiv preprint arXiv:1901.08925.
|
| 322 |
+
Aohan Zeng, Xiao Liu, Zhengxiao Du, Zihan Wang, Hanyu Lai, Ming Ding, Zhuoyi Yang, Yifan Xu, Wendi Zheng, Xiao Xia, et al. 2022. Glm-130b: An open bilingual pre-trained model. arXiv preprint arXiv:2210.02414.
|
| 323 |
+
Zhongshen Zeng, Pengguang Chen, Shu Liu, Haiyun Jiang, and Jiaya Jia. 2024. Mr-gsm8k: A meta-reasoning revolution in large language model evaluation.
|
| 324 |
+
|
| 325 |
+
Daochen Zha, Kwei-Herng Lai, Yuanpu Cao, Songyi Huang, Ruzhe Wei, Junyu Guo, and Xia Hu. 2019. Rlcard: A toolkit for reinforcement learning in card games. arXiv preprint arXiv:1910.04376.
|
| 326 |
+
|
| 327 |
+
Yuexiang Zhai, Hao Bai, Zipeng Lin, Jiayi Pan, Shengbang Tong, Yifei Zhou, Alane Suhr, Saining Xie, Yann LeCun, Yi Ma, and Sergey Levine. 2024. Finetuning large vision-language models as decision-making agents via reinforcement learning.
|
| 328 |
+
|
| 329 |
+
Jintian Zhang, Xin Xu, and Shumin Deng. 2023. Exploring collaboration mechanisms for llm agents: A social psychology view. arXiv preprint arXiv:2310.02124.
|
| 330 |
+
|
| 331 |
+
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 llm an evaluation benchmark theater.
|
| 332 |
+
|
| 333 |
+
# Appendix
|
| 334 |
+
|
| 335 |
+
# A UNO Game
|
| 336 |
+
|
| 337 |
+
In this section of appendix, you will learn what UNO Game is, and in order to facilitate the evaluation of LLMs with the UNO Game, we have made some slight modifications to it.
|
| 338 |
+
|
| 339 |
+
# A.1 Game Objective
|
| 340 |
+
|
| 341 |
+
In the modified UNO game, We simply set the game objective as to be the first player to clear out the hand. Players play alternatively(2 players) or in circle manner(3 or more players) and strive to achieve the unique goal. It should be noted that if the cards in the deck are exhausted by players, the player with the fewest number of cards in hand wins, so there may be multiple winners in the same game.
|
| 342 |
+
|
| 343 |
+
# A.2 UNO Cards
|
| 344 |
+
|
| 345 |
+
UNO comprises 3 categories of cards: number cards, function cards, and wild cards. In total, UNO features 108 cards.
|
| 346 |
+
|
| 347 |
+
- The Number Cards: the number cards can be expressed in the form of COLOR + NUMBER, where COLOR is belong to the set $\{Red, Blue, Yellow, Green\}$ , and NUMBER is an integer from 0 to 9. It is important to note that there is only one 0-number card per color, while there are two 1-9 number cards per color. There are a total of 76 number cards.
|
| 348 |
+
- The Function Cards: the function cards can be expressed in the form of COLOR
|
| 349 |
+
|
| 350 |
+
+ FUNCTION, where COLOR is belong to the set $\{Red,Blue,Yellow,Green\}$ and FUNCTION is belong to the set $\{Skip,Reverse,DrawTwo\}$ . There are two cards of the same COLOR for each FUNCTION. There are a total of 24 function cards.
|
| 351 |
+
|
| 352 |
+
- **Skip:** the player's next player skips this round of play.
|
| 353 |
+
- Reverse: the player reverses the order of play (from clockwise to counterclockwise, or from counterclockwise to clockwise).
|
| 354 |
+
- Draw Two: The player's next player draws two cards and skips this round of play.
|
| 355 |
+
|
| 356 |
+
- The Wild Cards: the wild card includes 4 Black Wild cards and 4 Black Wild Draw Four cards, totaling 8 cards.
|
| 357 |
+
|
| 358 |
+
- Wild: the player selects one color from the COLOR set $\{Red,Blue,Yellow,Green\}$ as the new color for the top card in the discard pile.
|
| 359 |
+
- Wild Draw Four: the player selects one color from the COLOR set $\{\text{Red}, \text{Blue}, \text{Yellow}, \text{Green}\}$ as the new color for the top card in the discard pile, and the player's next player draws 4 cards.
|
| 360 |
+
|
| 361 |
+
# A.3 Game Progress
|
| 362 |
+
|
| 363 |
+
First, deal each player 7 initial cards in clockwise order, then continue drawing cards until a number card is drawn and set as the top card of the initial discard pile. All players take rounds playing cards in clockwise order (it will be reversed by a reverse card) until a player runs out of his cards or the draw pile is exhausted, signaling the end of the game.
|
| 364 |
+
|
| 365 |
+
# A.4 Legal Decision(Action)
|
| 366 |
+
|
| 367 |
+
In every round of the game, player in charge can using rules to match the top card of the discard pile otherwise pick up a new card into hand. The rules, or say, the legal decisions consists of several sorts:
|
| 368 |
+
|
| 369 |
+
- Draw Card: If a player does not have any cards to play during their playing round, they must draw a card, or their previous
|
| 370 |
+
|
| 371 |
+
player used Draw Two or Wild Draw Four cards to make the player draw multiple cards.
|
| 372 |
+
|
| 373 |
+
- Select Card: In a player's playing round, they need to play a card that matches either the COLOR, NUMBER, or FUNCTION of the top card in the discard pile, or play a Wild card(include Wild Draw Four card) to match. The card played by the player then becomes the new top card.
|
| 374 |
+
- Select Color: After selecting either Wild Card or Wild Draw Four Card, the player needs to convert the color of the current top card to one of $\{Red, Blue, Yellow, Green\}$ .
|
| 375 |
+
- Select ChallengeFlag: The use of the Wild Draw Four card may be illegal. After a player plays a Wild Draw Four card, their next player can choose to challenge its use. If the player who played the Wild Draw Four card still holds non-Wild cards matching the color of the current top card, the use of the Wild Draw Four card is illegal. Possible scenarios are as follows: (1) If the player's play is illegal and their next player challenges it, the player must draw 4 cards, and their next player faces no penalty; (2) If the player's play is legal and their next player challenges it, the player's next player must draw 6 cards. (3) If the player's next player does not challenge, regardless of the legality of the player's play, the player's next player must draw 4 cards. Note that Challenge is not a stand-alone action to complete turns, it should be accompanied by a card draw or card match action.
|
| 376 |
+
|
| 377 |
+
# B Prompt
|
| 378 |
+
|
| 379 |
+
Here is the prompt design for the entire experiment.
|
| 380 |
+
|
| 381 |
+
# B.1 Select Card
|
| 382 |
+
|
| 383 |
+
The input1 prompt of the select card shared by the vanilla LLM player and the TUTRI player is shown in the Figure 4. The game history Reflection module prompt of the select card for the TUTRI player is shown in the Figure 5. The game strategy reflection module prompt of the select card for the TUTRI player is shown
|
| 384 |
+
|
| 385 |
+
in the Figure 6.
|
| 386 |
+
|
| 387 |
+
# B.2 Select Color
|
| 388 |
+
|
| 389 |
+
The input1 prompt of the select color shared by the vanilla LLM player and the TUTRI player is shown in the Figure 7. The game history reflection module prompt of the select color for the TUTRI player is shown in the Figure 8. The game strategy reflection module prompt of the select color for the TUTRI player is shown in the Figure 9.
|
| 390 |
+
|
| 391 |
+
# B.3 Select ChallengeFlag
|
| 392 |
+
|
| 393 |
+
The input1 prompt of the select ChallengeFlag shared by the vanilla LLM player and the TUTRI player is shown in the Figure 10. The game history reflection module prompt of the select ChallengeFlag for the TUTRI player is shown in the Figure 11. The game strategy reflection module prompt of the select ChallengeFlag for the TUTRI player is shown in the Figure 12.
|
| 394 |
+
|
| 395 |
+
# Select Card Input Prompt
|
| 396 |
+
|
| 397 |
+
You are playing a two-player UNO game.
|
| 398 |
+
|
| 399 |
+
- You are the player{player_id}, and your opponent is the player{opponent_id}.
|
| 400 |
+
- Currently, there are {len_deck} cards in the deck, and the discard pile has {len_discard_pile} cards.
|
| 401 |
+
- The number of cards in the hand of your opponent is $\{\text{len\_opponent\_hand}\}$ .
|
| 402 |
+
- The game history of the last {len_history} rounds is {history}.
|
| 403 |
+
- Your entire hand consists of $\{\text{hand}\}$ .
|
| 404 |
+
- The cards you can play are: {playable_card}.
|
| 405 |
+
|
| 406 |
+
Please note that you are not playing a normal UNO game, if the cards in the deck are depleted, the person who has the minimum cards will win directly. The goal of the game is to minimize the number of cards in your possession. In order to win the UNO game, you must consider all the provided information and select the best card from the cards you can play.
|
| 407 |
+
|
| 408 |
+
The output should strictly be a JSON object with two keys: 'thoughts' and 'action'.
|
| 409 |
+
|
| 410 |
+
- In this context, the value corresponding to the 'thoughts' key represents your thoughts and considerations, with its data type being a string.
|
| 411 |
+
- Simultaneously, the value corresponding to the 'action' key is a int which represents the card index of the card you have selected.
|
| 412 |
+
|
| 413 |
+
Figure 4: The input1 prompt of the select card shared by the vanilla LLM player and the TUTRI player.
|
| 414 |
+
|
| 415 |
+
# Select Card Reflection1 Prompt
|
| 416 |
+
|
| 417 |
+
Here is the statistical data of the game history: {history_summary}
|
| 418 |
+
|
| 419 |
+
Now, in order to win the game, you must consider the statistical data carefully and reflect the action you just selected. You should strictly output a JSON object with two keys: 'reflection' and 'action'.
|
| 420 |
+
|
| 421 |
+
- The value corresponding to the 'reflection' key is your reflection.
|
| 422 |
+
- The value corresponding to the 'action' key is the card index you currently select.
|
| 423 |
+
|
| 424 |
+
Figure 5: The game history reflection module prompt of the select card for TUTRI player.
|
| 425 |
+
|
| 426 |
+
# Select Card Reflection2 Prompt
|
| 427 |
+
|
| 428 |
+
Here is an useful tip that you can follow:
|
| 429 |
+
|
| 430 |
+
- The card values range from low to high, starting with number cards 0, followed by number cards (1-9), reverse cards, skip cards and wild cards.
|
| 431 |
+
- It is better to start with low-value cards before playing high-value cards.
|
| 432 |
+
Unless your opponent is on the verge of victory, it is time to play some high-value cards to disrupt your opponent's strategy.
|
| 433 |
+
|
| 434 |
+
Now, in order to win the game, you should reflect the action you just selected based on the tip. You should strictly output a JSON object with two keys: 'reflection' and 'action'.
|
| 435 |
+
|
| 436 |
+
- The value corresponding to the 'reflection' key is your reflection.
|
| 437 |
+
- The value corresponding to the 'action' key is the final card index you currently select.
|
| 438 |
+
|
| 439 |
+
Figure 6: The game strategy reflection module prompt of the select card for TUTRI player.
|
| 440 |
+
|
| 441 |
+
# Select Color Input Prompt
|
| 442 |
+
|
| 443 |
+
You are playing a two-player UNO game.
|
| 444 |
+
|
| 445 |
+
- You are the player{player_id}, and your opponent is the player{opponent_id}.
|
| 446 |
+
- Currently, there are {len_deck} cards in the deck, and the discard pile has {len_discard_pile} cards.
|
| 447 |
+
- The number of cards in the hand of your opponent is $\{\text{len\_opponent\_hand}\}$ .
|
| 448 |
+
- The game history of the last $\{\text{len\_history}\}$ rounds is $\{\text{history}\}$ .
|
| 449 |
+
- Your entire hand consists of $\{\text{hand}\}$ .
|
| 450 |
+
|
| 451 |
+
Please note that you are not playing a normal UNO game, if the cards in the deck are depleted, the person who has the minimum cards will win directly. The goal of the game is to minimize the number of cards in your possession. In order to win the UNO game, you just played a {wild_type} card, and you must consider all the provided information and select the best color from Red, Yellow, Blue and Green to switch.
|
| 452 |
+
|
| 453 |
+
The output should strictly be a JSON object with two keys: 'thoughts' and 'action'.
|
| 454 |
+
|
| 455 |
+
- In this context, the value corresponding to the 'thoughts' key represents your thoughts and considerations, with its data type being a string.
|
| 456 |
+
- Simultaneously, the value corresponding to the 'action' key is one of Red, Yellow, Blue or Green, indicating the color you have selected.
|
| 457 |
+
|
| 458 |
+
Figure 7: The input1 prompt of the select color shared by the vanilla LLM player and the TUTRI player.
|
| 459 |
+
|
| 460 |
+
# Select Color Reflection1 Prompt
|
| 461 |
+
|
| 462 |
+
Here is the statistical data of the game history:
|
| 463 |
+
|
| 464 |
+
{history_summary}
|
| 465 |
+
|
| 466 |
+
Now, in order to win the game, you must consider the statistical data carefully and reflect the action you just selected.
|
| 467 |
+
|
| 468 |
+
You should strictly output a JSON object with two keys: 'reflection' and 'action'.
|
| 469 |
+
|
| 470 |
+
- The value corresponding to the 'reflection' key is your reflection.
|
| 471 |
+
- The value corresponding to the 'action' key is the color you currently select.
|
| 472 |
+
|
| 473 |
+
Figure 8: The game history reflection module prompt of the select color for TUTRI player.
|
| 474 |
+
|
| 475 |
+
# Select Color Reflection2 Prompt
|
| 476 |
+
|
| 477 |
+
Here are some useful tips that you can follow:
|
| 478 |
+
|
| 479 |
+
It is better to select the color with the highest frequency of occurrence in your hand.
|
| 480 |
+
- It is better to avoid selecting the color with the lowest frequency of occurrence in your hand.
|
| 481 |
+
- Consider carefully which color of cards is relatively more frequent in your opponent's hand and try to avoid selecting that color.
|
| 482 |
+
|
| 483 |
+
Now, in order to win the game, you should reflect the action you just selected based on these tips.
|
| 484 |
+
|
| 485 |
+
You should strictly output a JSON object with two keys: 'reflection' and 'action'.
|
| 486 |
+
|
| 487 |
+
- The value corresponding to the 'reflection' key is your reflection.
|
| 488 |
+
- The value corresponding to the 'action' key is the final color you currently select."
|
| 489 |
+
|
| 490 |
+
Figure 9: The game strategy reflection module prompt of the select color for TUTRI player.
|
| 491 |
+
|
| 492 |
+
# Select ChallengeFlag Input Prompt
|
| 493 |
+
|
| 494 |
+
You are playing a two-player UNO game.
|
| 495 |
+
|
| 496 |
+
- You are the player{player_id}, and your opponent is the player{opponent_id}.
|
| 497 |
+
- Currently, there are {len_deck} cards in the deck, and the discard pile has {len_discard_pile} cards.
|
| 498 |
+
- The number of cards in the hand of your opponent is $\{\text{len\_opponent\_hand}\}$ .
|
| 499 |
+
- The game history of the last $\{\text{len\_history}\}$ rounds is $\{\text{history}\}$ .
|
| 500 |
+
- Your entire hand consists of $\{\text{hand}\}$ .
|
| 501 |
+
|
| 502 |
+
Your opponent played a Wild Draw Four card, and changed the color of the current discard pile's top card to {new_color}. But the use of the Wild Draw Four card may be illegal, when your opponent still has cards in {old_color}. Please note that you are not playing a normal UNO game, if the cards in the deck are depleted, the person who has the minimum cards will win directly. The goal of the game is to minimize the number of cards in your possession. In order to win the UNO game, you must consider all the provided information and select whether to challenge the use of the Wild Draw Four card which played by your opponent.
|
| 503 |
+
|
| 504 |
+
The output should strictly be a JSON object with two keys: 'thoughts' and 'action'.
|
| 505 |
+
|
| 506 |
+
- In this context, the value corresponding to the 'thoughts' key represents your thoughts and considerations, with its data type being a string.
|
| 507 |
+
- Simultaneously, the value corresponding to the 'action' key is 'Yes' or 'No', indicating that you select to challenge or not to challenge, respectively."
|
| 508 |
+
|
| 509 |
+
Figure 10: The input1 prompt of the select ChallengeFlag shared by the vanilla LLM player and the TUTRI player.
|
| 510 |
+
|
| 511 |
+
# Select ChallengeFlag Reflection1 Prompt
|
| 512 |
+
|
| 513 |
+
Here is the statistical data of the game history:
|
| 514 |
+
|
| 515 |
+
{history_summary}
|
| 516 |
+
|
| 517 |
+
Now, in order to win the game, you must consider the statistical data carefully and reflect the action you just selected. You should strictly output a JSON object with two keys: 'reflection' and 'action'.
|
| 518 |
+
|
| 519 |
+
- The value corresponding to the 'reflection' key is your reflection.
|
| 520 |
+
- The value corresponding to the 'action' key is the choice you currently select.
|
| 521 |
+
|
| 522 |
+
Figure 11: The game history reflection module prompt of the select ChallengeFlag for TUTRI player.
|
| 523 |
+
|
| 524 |
+
# Select ChallengeFlag Reflection2 Prompt
|
| 525 |
+
|
| 526 |
+
Here are some useful tips that you can follow:
|
| 527 |
+
|
| 528 |
+
- Please remember the penalty for a failed challenge: you must draw 6 cards.
|
| 529 |
+
- Please remember the benefits of a successful challenge: your opponent must draw 4 cards.
|
| 530 |
+
- Wild Draw Four is only illegal if your opponent has cards of {old_color} color in his hand.
|
| 531 |
+
Please carefully consider whether your opponent's Wild Draw Four card is genuinely illegal. Now, in order to win the game, you should reflect the action you just selected based on these tips.
|
| 532 |
+
|
| 533 |
+
You should strictly output a JSON object with two keys: 'reflection' and 'action'.
|
| 534 |
+
|
| 535 |
+
- The value corresponding to the 'reflection' key is your reflection.
|
| 536 |
+
- The value corresponding to the 'action' key is the final choice you currently select.
|
| 537 |
+
|
| 538 |
+
Figure 12: The game strategy reflection module prompt of the select ChallengeFlag for TUTRI player.
|
2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81e8b821130aeed0fa11798abb661a473665b0bda158f74b369fc0f839cbba86
|
| 3 |
+
size 477157
|
2024/UNO Arena for Evaluating Sequential Decision-Making Capability of Large Language Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/UOUO_ Uncontextualized Uncommon Objects for Measuring Knowledge Horizons of Vision Language Models/3fd78e6a-da2e-45dd-83ff-a49b6a122da9_content_list.json
ADDED
|
@@ -0,0 +1,1350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "UOUO: Uncontextualized Uncommon Objects for Measuring Knowledge Horizons of Vision Language Models",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
122,
|
| 8 |
+
89,
|
| 9 |
+
875,
|
| 10 |
+
130
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Xinyu Pi*1 Mingyuan Wu*2 Jize Jiang*2 Haozhen Zheng*2",
|
| 17 |
+
"bbox": [
|
| 18 |
+
220,
|
| 19 |
+
146,
|
| 20 |
+
779,
|
| 21 |
+
162
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Beitong Tian² Chengxiang Zhai² Klara Nahrstedt² Zhiting Hu¹",
|
| 28 |
+
"bbox": [
|
| 29 |
+
203,
|
| 30 |
+
162,
|
| 31 |
+
791,
|
| 32 |
+
180
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "<sup>1</sup>University of California San Diego <sup>2</sup>University of Illinois Urbana-Champaign",
|
| 39 |
+
"bbox": [
|
| 40 |
+
181,
|
| 41 |
+
180,
|
| 42 |
+
815,
|
| 43 |
+
197
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "xpi@ucsd.edu, {mw34, jizej2, haozhen3}@illinois.edu",
|
| 50 |
+
"bbox": [
|
| 51 |
+
238,
|
| 52 |
+
197,
|
| 53 |
+
754,
|
| 54 |
+
212
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "* indicates equal contribution",
|
| 61 |
+
"bbox": [
|
| 62 |
+
344,
|
| 63 |
+
214,
|
| 64 |
+
650,
|
| 65 |
+
229
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Abstract",
|
| 72 |
+
"text_level": 1,
|
| 73 |
+
"bbox": [
|
| 74 |
+
260,
|
| 75 |
+
260,
|
| 76 |
+
339,
|
| 77 |
+
275
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "Smaller-scale Vision-Language Models (VLMs) often claim to perform on par with larger models in general-domain visual grounding and question-answering benchmarks while offering advantages in computational efficiency and storage. However, their ability to handle rare objects, which fall into the long tail of data distributions, is less understood. To rigorously evaluate this aspect, we introduce the \"Uncontextualized Uncommon Objects\" (UOOU) benchmark. This benchmark focuses on systematically testing VLMs with both large and small parameter counts on rare and specialized objects. Our comprehensive analysis reveals that while smaller VLMs maintain competitive performance on common datasets, they significantly underperform on tasks involving uncommon objects. We also propose an advanced, scalable pipeline for data collection and cleaning, ensuring the UOOU benchmark provides high-quality, challenging instances. These findings highlight the need to consider long-tail distributions when assessing the true capabilities of VLMs. Code and project details for UOOU can be found at https://zoezheng126.github.io/UOOU-Website/.",
|
| 84 |
+
"bbox": [
|
| 85 |
+
144,
|
| 86 |
+
284,
|
| 87 |
+
460,
|
| 88 |
+
667
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "1 Introduction",
|
| 95 |
+
"text_level": 1,
|
| 96 |
+
"bbox": [
|
| 97 |
+
114,
|
| 98 |
+
687,
|
| 99 |
+
258,
|
| 100 |
+
702
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "The advent of Vision-Language Models (VLMs) has marked a revolutionary leap in the integration of natural language processing and computer vision, largely due to the capabilities of the self-attention mechanism and the Transformer architecture (Vaswani et al., 2023). These technologies allow VLMs to effectively process and fuse information from both text and images, leading to significant advancements in tasks that require multimodal understanding, such as visual question answering and image captioning (Radford et al., 2021; Li et al., 2023; Alayrac et al., 2022; Xu et al., 2023; Young et al., 2014).",
|
| 107 |
+
"bbox": [
|
| 108 |
+
112,
|
| 109 |
+
711,
|
| 110 |
+
489,
|
| 111 |
+
921
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "VLMs, trained on large-scale datasets, typically boast high performance on general tasks involving everyday objects and common scenarios (Li et al., 2024; Du et al., 2022; Wang et al., 2023). However, models of smaller scale, defined here as having fewer than 70 billion parameters, often claim to match the capabilities of their larger counterparts on general domain tasks (Lin et al., 2015; Agrawal et al., 2016; Yu et al., 2016; Liu et al., 2024; Goyal et al., 2017; Yu et al., 2023b) while offering advantages in computational efficiency and storage. Despite these claims, the No-Free-Lunch Theorem (Wolpert and Macready, 1997) suggests that these smaller models may compromise on their ability to handle less common or more complex scenarios that lie in the long tail of data distributions.",
|
| 118 |
+
"bbox": [
|
| 119 |
+
507,
|
| 120 |
+
260,
|
| 121 |
+
884,
|
| 122 |
+
518
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "One natural and intuitive hypothesis is that they are sacrificing their fitness to the elements on the long tail of the distribution. Empirical observations of real-world data frequently align with Zipf's and Power Law (Piantadosi, 2014; Clauset et al., 2009), which indicates that while some objects and concepts are exceedingly common, a vast number of them are rare and fall into the long tail of the distribution. Understanding how well VLMs handle these rare and uncommon instances is crucial for assessing their true robustness and applicability across diverse and nuanced contexts.",
|
| 129 |
+
"bbox": [
|
| 130 |
+
507,
|
| 131 |
+
519,
|
| 132 |
+
885,
|
| 133 |
+
709
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "Despite the importance of this evaluation, there is currently a lack of dedicated benchmarks that systematically test VLMs on objects and concepts that are significantly outside the everyday norm. To address this gap, we introduce the \"Uncontextualized Uncommon Objects\" (UOUO) benchmark. The object class distribution of UOUO is systematically out of common image sources such as ImageNet (Russakovsky et al., 2015), COCO (Lin et al., 2015), and Open Image Dataset (Kuznetsova et al., 2020). Our goal is to rigorously test and quantify the performance of both large-scale and small-scale VLMs on elements from the long tail of",
|
| 140 |
+
"bbox": [
|
| 141 |
+
507,
|
| 142 |
+
711,
|
| 143 |
+
885,
|
| 144 |
+
921
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "page_number",
|
| 150 |
+
"text": "6432",
|
| 151 |
+
"bbox": [
|
| 152 |
+
478,
|
| 153 |
+
927,
|
| 154 |
+
519,
|
| 155 |
+
940
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "footer",
|
| 161 |
+
"text": "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 6432-6441 November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 162 |
+
"bbox": [
|
| 163 |
+
159,
|
| 164 |
+
945,
|
| 165 |
+
835,
|
| 166 |
+
972
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 0
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "image",
|
| 172 |
+
"img_path": "images/6898fd3fb1b89d0bb395714add135a57deb41ef29b6939a1c09716bfc297982d.jpg",
|
| 173 |
+
"image_caption": [
|
| 174 |
+
"Figure 1: UOUO Data Curation Pipeline. Snowflake means frozen weights, and fire means tune-able weights."
|
| 175 |
+
],
|
| 176 |
+
"image_footnote": [],
|
| 177 |
+
"bbox": [
|
| 178 |
+
119,
|
| 179 |
+
58,
|
| 180 |
+
880,
|
| 181 |
+
272
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "the distribution to showcase their knowledge gap.",
|
| 188 |
+
"bbox": [
|
| 189 |
+
112,
|
| 190 |
+
316,
|
| 191 |
+
480,
|
| 192 |
+
331
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "The contribution of our work is three-fold. (1) We compile a million-scale dataset specifically designed to include uncommon and uncontextualized objects, which are rarely encountered in everyday contexts but are significant in specialized domains. (2) We evaluate the performance gap between large-scale and small-scale VLMs when dealing with these rare elements, showcasing the significant knowledge and performance gap between large-and small-scale model on the long-tail distributions. (3) We propose a systematic pipeline for automatic and scalable data collection and cleaning, ensuring high-quality and representative testing instances.",
|
| 199 |
+
"bbox": [
|
| 200 |
+
112,
|
| 201 |
+
332,
|
| 202 |
+
489,
|
| 203 |
+
541
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "2 Related Work",
|
| 210 |
+
"text_level": 1,
|
| 211 |
+
"bbox": [
|
| 212 |
+
114,
|
| 213 |
+
556,
|
| 214 |
+
270,
|
| 215 |
+
570
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Real-world VQA Benchmarks Based on our survey, the typical real-world visual question answering datasets (excluding mathematics, celebrity, landmark, place, OCR and chart-reading) used in popular open-source VLMs such as LLaVa (Li et al., 2024), CogVLM (Wang et al., 2023) BLIP2 (Li et al., 2023), Qwen VL (Bai et al., 2023) and MiniCPM-V (Yu et al., 2023a) includes the following: COCO (Lin et al., 2015), RefCOCO (Yu et al., 2016), NoCAPs (Agrawal et al., 2019), MMBench (Liu et al., 2024), VQA-v2 (Goyal et al., 2017), OK-VQA (Marino et al., 2019), MME (Fu et al., 2024), GQA (Hudson and Manning, 2019).",
|
| 222 |
+
"bbox": [
|
| 223 |
+
112,
|
| 224 |
+
583,
|
| 225 |
+
489,
|
| 226 |
+
791
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 1
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "Much to our surprise, it turns out that the image sources of GQA, RefCoCo, OK-VQA, MME Coarse-Grained Recognition, VQA-v2, and a significant proportion of MMBench are all direct random samples from COCO. Only NoCAPs features novel object classes (sourced from the 600-categories Open Image Dataset (Kuznetsova et al., 2020) outside COCO's less-than-100 common",
|
| 233 |
+
"bbox": [
|
| 234 |
+
112,
|
| 235 |
+
793,
|
| 236 |
+
489,
|
| 237 |
+
920
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 1
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "classes. This showcases the significant limitation of categorical diversity of extant VQA datasets. The knowledge and performance gap between the small- and large- scale VLMs might be concealed in such low coverage and diversity.",
|
| 244 |
+
"bbox": [
|
| 245 |
+
507,
|
| 246 |
+
316,
|
| 247 |
+
884,
|
| 248 |
+
395
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 1
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "Existing Datasets with Uncommon Object Labels In extant datasets, Stanford Cars (Krause et al., 2013), CUB-bird (Wah et al., 2011), Deepfish (Saleh et al., 2020), ROCOv2 (Rückert et al., 2024), FGVC-Aircraft (Maji et al., 2013) also features rare object labels. Some non-academic mine & stone datasets, and chemical objects datasets can also be found on internet. However, the typical emphasis of these datasets is either fine-grained subtype or subspecies of common objects, or domain-specific expert knowledge. In realistic use cases such as autonomous car or embodied robotics, such knowledge might have limited generalizability.",
|
| 255 |
+
"bbox": [
|
| 256 |
+
507,
|
| 257 |
+
407,
|
| 258 |
+
884,
|
| 259 |
+
617
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 1
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "3 Data Curation and Filtering",
|
| 266 |
+
"text_level": 1,
|
| 267 |
+
"bbox": [
|
| 268 |
+
507,
|
| 269 |
+
630,
|
| 270 |
+
788,
|
| 271 |
+
646
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 1
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "3.1 Domain Selection and Scraping",
|
| 278 |
+
"text_level": 1,
|
| 279 |
+
"bbox": [
|
| 280 |
+
507,
|
| 281 |
+
657,
|
| 282 |
+
803,
|
| 283 |
+
673
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 1
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "To construct the UOUO (Uncontextualized Uncommon Objects) benchmark, we began by selecting specific domains that are rich in specialized knowledge yet contain objects and tools that are rarely encountered by the general public. Our focus was on the industry sector, given its diversity and the presence of numerous specialized tools and equipment. These artificial tools are significantly out of the distribution of ImageNet, COCO, and Open Image Dataset.",
|
| 290 |
+
"bbox": [
|
| 291 |
+
505,
|
| 292 |
+
678,
|
| 293 |
+
884,
|
| 294 |
+
839
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 1
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "We used Wikipedia as a starting point, targeting the page dedicated to manufacturing (https://en.wikipedia.org/wiki/Manufacturing). For each sub-sector identified within this domain, we employed GPT-4-Turbo (OpenAI, 2024) to gener",
|
| 301 |
+
"bbox": [
|
| 302 |
+
507,
|
| 303 |
+
841,
|
| 304 |
+
884,
|
| 305 |
+
921
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 1
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "page_number",
|
| 311 |
+
"text": "6433",
|
| 312 |
+
"bbox": [
|
| 313 |
+
480,
|
| 314 |
+
928,
|
| 315 |
+
519,
|
| 316 |
+
940
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 1
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "ate a list of the top 50 objects or tools pertinent to experts in the field but obscure to the general populace. This list was generated through prompt-based querying, asking the model to identify objects that are crucial within the industry but not commonly known.",
|
| 323 |
+
"bbox": [
|
| 324 |
+
112,
|
| 325 |
+
84,
|
| 326 |
+
487,
|
| 327 |
+
179
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 2
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "Once we had our list of uncommon objects, we performed a Google Image Search for each object name. For each query, we collected the top 50 image results. This approach allowed us to gather a diverse set of images representing each object under different conditions and contexts. For detailed dataset statistics of UOUO, we refer readers to Appendix C.",
|
| 334 |
+
"bbox": [
|
| 335 |
+
112,
|
| 336 |
+
181,
|
| 337 |
+
487,
|
| 338 |
+
309
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 2
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "Manuall Annotation The image instances collected from Google Image Search can be noisy, with perhaps one fifth irrelevant instances for each queried uncommon category. To ensure the quality and relevance of the dataset, we implemented a rigorous annotation and cleaning process, combining manual and automated techniques. Our team manually reviewed and annotated on a subset of the collected categories of images to identify and remove outliers and noisy data. Categories with consistent visual representation across examples were retained, while those filled with ambiguous or irrelevant images were discarded. This initial curation aimed to maintain high fidelity to the object's intended representation. The instruction for manual annotation of UOUO can be found in Appendix B.",
|
| 345 |
+
"bbox": [
|
| 346 |
+
112,
|
| 347 |
+
317,
|
| 348 |
+
489,
|
| 349 |
+
589
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 2
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "Automatic Data Cleaning We utilized the CLIP model to further enhance the dataset. CLIP (Contrastive Language-Image Pre-training) provides embeddings for both images and text, enabling us to compute similarities within and across categories. For each image, we extracted its CLIP image embedding $E_{i}^{c}$ and the text embedding $T_{c}$ of its corresponding category name (Radford et al., 2021; Sun et al., 2023). We calculated the cosine similarity between all pairs of image embeddings within each category to construct a GRAM matrix $G$ , where $G_{i,j} = \\mathrm{Cosine}(E_i^c,E_j^c)$ . Additionally, we computed the image-text similarity for each image as $\\mathrm{Cosine}(E_i^c,T_c)$ , alongside statistical metrics such as the percentile, mean, and variance of the average similarity within each category.",
|
| 356 |
+
"bbox": [
|
| 357 |
+
112,
|
| 358 |
+
599,
|
| 359 |
+
489,
|
| 360 |
+
854
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 2
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "The complete feature set includes image embeddings, GRAM percentiles (25th, 50th, and 75th), GRAM mean and variance, the instance's mean similarity with other images, and the percentiles of",
|
| 367 |
+
"bbox": [
|
| 368 |
+
112,
|
| 369 |
+
857,
|
| 370 |
+
489,
|
| 371 |
+
921
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 2
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "image",
|
| 377 |
+
"img_path": "images/766e6b66afdd9ab692d8b2f66b4707124e5b06e3f3099aea6b017377400b4985.jpg",
|
| 378 |
+
"image_caption": [
|
| 379 |
+
"Figure 2: With MMD, we can retrieve harder negative examples and construct higher-quality test instances."
|
| 380 |
+
],
|
| 381 |
+
"image_footnote": [],
|
| 382 |
+
"bbox": [
|
| 383 |
+
521,
|
| 384 |
+
79,
|
| 385 |
+
694,
|
| 386 |
+
250
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 2
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "image",
|
| 392 |
+
"img_path": "images/963c7614d4b68d951a398098f8366cc8a1023d1d458b36f49a1c498bd886d0c5.jpg",
|
| 393 |
+
"image_caption": [],
|
| 394 |
+
"image_footnote": [],
|
| 395 |
+
"bbox": [
|
| 396 |
+
702,
|
| 397 |
+
80,
|
| 398 |
+
880,
|
| 399 |
+
250
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 2
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "its pairwise similarities. Additionally, it incorporates image-text similarity metrics, corresponding percentiles, z-scores, and the instance label.",
|
| 406 |
+
"bbox": [
|
| 407 |
+
507,
|
| 408 |
+
313,
|
| 409 |
+
882,
|
| 410 |
+
362
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 2
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "Using these computed features, we applied an XGBoost classifier to label each image instance. This classifier was trained on manually cleaned data from 500 categories to distinguish between high-quality and low-quality instances based on their similarity scores.",
|
| 417 |
+
"bbox": [
|
| 418 |
+
507,
|
| 419 |
+
363,
|
| 420 |
+
882,
|
| 421 |
+
458
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 2
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "We optimized our XGBoost classifier (Chen and Guestrin, 2016) through 5-fold cross-validation and grid search to identify the best hyperparameters. The optimal configuration consisted of a maximum tree depth of 6, 200 estimators, a learning rate of 0.15, a subsample ratio of 1.0, gamma value of 0.1, and a colsample-bytree of 1.0. Additionally, the regularization parameters included reg-lambda of 1.5 and reg-alpha of 0.0, with a minimum child weight of 1.0.",
|
| 428 |
+
"bbox": [
|
| 429 |
+
507,
|
| 430 |
+
461,
|
| 431 |
+
882,
|
| 432 |
+
620
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 2
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "The classifier achieved an accuracy of 0.8754 on cross-validation, closely aligning with human judgment, and exhibited Macro-Average Precision, Recall, and F1-Score of 0.8631, 0.8353, and 0.8460, respectively.",
|
| 439 |
+
"bbox": [
|
| 440 |
+
507,
|
| 441 |
+
621,
|
| 442 |
+
882,
|
| 443 |
+
702
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 2
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "4 Test Instances Generation",
|
| 450 |
+
"text_level": 1,
|
| 451 |
+
"bbox": [
|
| 452 |
+
507,
|
| 453 |
+
715,
|
| 454 |
+
766,
|
| 455 |
+
732
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 2
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "Background Removal and Decontextualization Connectionist neural networks (including VLMs) are notoriously known for their tendency of overfitting to spurious correlations present in the training data. For instance, in our collected data, bulldozers are often seen in construction scenes laden with materials such as sand, concrete, and bricks. This high co-occurrence can lead models to rely on these contextual cues rather than truly understanding and recognizing the bulldozer itself. To mitigate this issue and ensure that models focus on the objects rather",
|
| 462 |
+
"bbox": [
|
| 463 |
+
507,
|
| 464 |
+
744,
|
| 465 |
+
882,
|
| 466 |
+
920
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 2
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "page_number",
|
| 472 |
+
"text": "6434",
|
| 473 |
+
"bbox": [
|
| 474 |
+
480,
|
| 475 |
+
928,
|
| 476 |
+
519,
|
| 477 |
+
940
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 2
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "than their typical environments, we implement a robust background removal process to decontextualize all candidate objects in our dataset. To achieve effective background removal, we utilize a state-of-the-art, off-the-shelf background removal model (BRIA-AI, 2024).",
|
| 484 |
+
"bbox": [
|
| 485 |
+
112,
|
| 486 |
+
84,
|
| 487 |
+
489,
|
| 488 |
+
180
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "Testing Instances Generation To assess the performance of Vision-Language Models on our UOVO benchmark, we generated challenging test instances designed to probe the models' capabilities beyond common knowledge. Specifically, we employ the CLIP embeddings combined with the Maximum Mean Discrepancy (MMD) with a Gaussian RBF kernel (Dziugaite et al., 2015) to identify and retrieve hard negative examples.",
|
| 495 |
+
"bbox": [
|
| 496 |
+
112,
|
| 497 |
+
187,
|
| 498 |
+
487,
|
| 499 |
+
332
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "Let $\\mathbf{x}$ and $\\mathbf{y}$ be the sets of CLIP embeddings for two different object categories, each of shape $(n,d)$ , where $n$ is the number of embeddings and $d$ is the embedding dimension.",
|
| 506 |
+
"bbox": [
|
| 507 |
+
112,
|
| 508 |
+
332,
|
| 509 |
+
487,
|
| 510 |
+
398
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 3
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "The Maximum Mean Discrepancy (MMD) between sets of embeddings $\\mathbf{x}$ and $\\mathbf{y}$ is calculated as follows:",
|
| 517 |
+
"bbox": [
|
| 518 |
+
112,
|
| 519 |
+
398,
|
| 520 |
+
487,
|
| 521 |
+
445
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 3
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "equation",
|
| 527 |
+
"text": "\n$$\n\\operatorname {M M D} (\\mathbf {x}, \\mathbf {y}) = k (\\mathbf {x}, \\mathbf {x}) + k (\\mathbf {y}, \\mathbf {y}) - 2 \\cdot k (\\mathbf {x}, \\mathbf {y})\n$$\n",
|
| 528 |
+
"text_format": "latex",
|
| 529 |
+
"bbox": [
|
| 530 |
+
122,
|
| 531 |
+
454,
|
| 532 |
+
478,
|
| 533 |
+
472
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 3
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "where the Gaussian Radial Basis Function (RBF) kernel value $k(\\mathbf{a},\\mathbf{b})$ is defined as:",
|
| 540 |
+
"bbox": [
|
| 541 |
+
112,
|
| 542 |
+
479,
|
| 543 |
+
487,
|
| 544 |
+
512
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 3
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "equation",
|
| 550 |
+
"text": "\n$$\nk (\\mathbf {a}, \\mathbf {b}) = \\frac {1}{n ^ {2}} \\sum_ {i = 1} ^ {n} \\sum_ {j = 1} ^ {n} \\exp \\left(- \\frac {1}{2 \\sigma^ {2}} \\left\\| \\mathbf {a} _ {i} - \\mathbf {b} _ {j} \\right\\| ^ {2}\\right)\n$$\n",
|
| 551 |
+
"text_format": "latex",
|
| 552 |
+
"bbox": [
|
| 553 |
+
117,
|
| 554 |
+
518,
|
| 555 |
+
478,
|
| 556 |
+
561
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 3
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "For our calculations, we set $\\sigma = 10$",
|
| 563 |
+
"bbox": [
|
| 564 |
+
112,
|
| 565 |
+
568,
|
| 566 |
+
384,
|
| 567 |
+
581
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 3
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "We use the Mosaic Image Augmentation Technique (Ge et al., 2021) to generate testing data in a scalable way. Each testing data point is created from four images, each background-removed. The four images contain objects of different categories but share some similar visual properties such as structures, colors, or textures. The selection of these images is determined by the Maximum Mean Discrepancy (MMD) distance between the categories they belong to. The closer the MMD distance, the more similar in features they might appear. We create an $800 \\times 800$ canvas large enough to accommodate all four images. Then, each of the four images is augmented and positioned on the canvas's top-left, top-right, bottom-left, or bottom-right. The ground-truth bounding box for the object grounding is generated from the segmentation mask of background removal and normalized to be dimension-insensitive, accounting for potential differences in the VLM's rescaling process. Figure 2 showcases an exemplar test instance.",
|
| 574 |
+
"bbox": [
|
| 575 |
+
112,
|
| 576 |
+
583,
|
| 577 |
+
489,
|
| 578 |
+
921
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 3
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "table",
|
| 584 |
+
"img_path": "images/a017c16dfcf550f87196c2cfe2c6c3821219ffe8026860a5a0348407f5403de0.jpg",
|
| 585 |
+
"table_caption": [],
|
| 586 |
+
"table_footnote": [],
|
| 587 |
+
"table_body": "<table><tr><td>Model</td><td>mIoU-mmd</td><td>mIoU-rand</td><td>acc-mmd</td><td>acc-rand</td></tr><tr><td>llava-v1.5-7b</td><td>0.18</td><td>0.41</td><td>0.42</td><td>0.70</td></tr><tr><td>llava-v1.5-13b</td><td>0.23</td><td>0.47</td><td>0.44</td><td>0.73</td></tr><tr><td>llava-v1.6-vicuna-7b</td><td>0.28</td><td>0.48</td><td>0.49</td><td>0.75</td></tr><tr><td>llava-v1.6-vicuna-13b</td><td>0.28</td><td>0.49</td><td>0.52</td><td>0.78</td></tr><tr><td>llava-v1.6-34b</td><td>0.38</td><td>0.55</td><td>0.57</td><td>0.83</td></tr><tr><td>cogvlm-llama3-chat-19b</td><td>0.49</td><td>0.69</td><td>0.43</td><td>0.60</td></tr><tr><td>gemini-1.5-pro</td><td>0.27</td><td>0.27</td><td>0.63</td><td>0.80</td></tr><tr><td>gpt-4-turbo</td><td>0.34</td><td>0.38</td><td>0.67</td><td>0.90</td></tr><tr><td>gpt-4o</td><td>0.33</td><td>0.35</td><td>0.68</td><td>0.88</td></tr></table>",
|
| 588 |
+
"bbox": [
|
| 589 |
+
510,
|
| 590 |
+
80,
|
| 591 |
+
873,
|
| 592 |
+
166
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 3
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Table 1: Mosaic Grounding Performance Metrics",
|
| 599 |
+
"bbox": [
|
| 600 |
+
527,
|
| 601 |
+
175,
|
| 602 |
+
862,
|
| 603 |
+
190
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 3
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "5 Experiment",
|
| 610 |
+
"text_level": 1,
|
| 611 |
+
"bbox": [
|
| 612 |
+
507,
|
| 613 |
+
206,
|
| 614 |
+
648,
|
| 615 |
+
223
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 3
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Procedures Following the aforementioned test instance generation, we test both open source VLMs that are trained to perform grounding, including: llava-v1.5-7b, llava-v1.5-13b (Liu et al., 2023), llava-v1.6-vicuna-7b, llava-v1.6-vicuna-13b, llava-v1.6-34b (Li et al., 2024), cogglm-v1.5-vicuna-7b (Wang et al., 2023), and proprietary VLMs including: gemini-1.5-pro (Team, 2024), gpt-4-turbo, gpt-4o (OpenAI, 2024).",
|
| 622 |
+
"bbox": [
|
| 623 |
+
507,
|
| 624 |
+
233,
|
| 625 |
+
884,
|
| 626 |
+
378
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 3
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "We test VLMs' performance on both randomly generated test instances and the MMD-augmented hard instances. We employ two metrics to quantify the performance: $mIoU$ - Mean IoU (Intersection over Union), a standard metric for object segmentation; and Accuracy, which we prompt the VLM to output one positions from \"top-left, top-right, bottom-left, bottom-right\", and directly evaluate whether the answer matches the ground truth. The prompts used in this experiment can be found in Appendix A.",
|
| 633 |
+
"bbox": [
|
| 634 |
+
507,
|
| 635 |
+
379,
|
| 636 |
+
884,
|
| 637 |
+
556
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 3
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "Observations and Analysis We present all experimental results in Table 1. (a) Comparing horizontally across columns, we observe significant performance drops of smaller-scale models in both mIoU and Accuracy with the application of MMD-based hard instance generation. Notably, the performance drops of many of them are around $30\\%$ . This provides solid support for our initial hypothesis that smaller-scale models have some, but insufficient fitness to the long-tail distribution objects. Furthermore, the drastic performance change showcases MMD's effectiveness in generating hard instances and non-robustness of existing grounding models. (b) Comparing vertically within columns, the central tendency is that larger scale models (except Genimi which might not be trained to perform grounding) perform much better than small-scale models in accuracy. This reveals the concealed gap of knowledge horizon of small- and large- scale models, which is usually unobservable in benchmarks consist of common objects. (c) The observation that GPT-4 series can still handle the task",
|
| 644 |
+
"bbox": [
|
| 645 |
+
507,
|
| 646 |
+
567,
|
| 647 |
+
884,
|
| 648 |
+
920
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 3
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "page_number",
|
| 654 |
+
"text": "6435",
|
| 655 |
+
"bbox": [
|
| 656 |
+
480,
|
| 657 |
+
928,
|
| 658 |
+
519,
|
| 659 |
+
940
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 3
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "image",
|
| 665 |
+
"img_path": "images/b51991b040de317c10856fcf2bfa5048a31576fa7079136d1d5bbdbfdd39183f.jpg",
|
| 666 |
+
"image_caption": [],
|
| 667 |
+
"image_footnote": [],
|
| 668 |
+
"bbox": [
|
| 669 |
+
126,
|
| 670 |
+
77,
|
| 671 |
+
868,
|
| 672 |
+
231
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 4
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "image",
|
| 678 |
+
"img_path": "images/d8f8db19821976746a200574caa8288bf9ae784f4f1c101b0f16257204308e8c.jpg",
|
| 679 |
+
"image_caption": [
|
| 680 |
+
"Figure 3: A glimpse into COCO and UOUO, with demo images of COCO cited from official website."
|
| 681 |
+
],
|
| 682 |
+
"image_footnote": [],
|
| 683 |
+
"bbox": [
|
| 684 |
+
127,
|
| 685 |
+
236,
|
| 686 |
+
868,
|
| 687 |
+
394
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 4
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "remarkably well (near $90\\%$ and $70\\%$ on random and MMD settings, respectively) showcases the task's solvability, revealing the soundness of our automatically constructed test instances.",
|
| 694 |
+
"bbox": [
|
| 695 |
+
112,
|
| 696 |
+
455,
|
| 697 |
+
487,
|
| 698 |
+
519
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 4
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "6 Conclusion",
|
| 705 |
+
"text_level": 1,
|
| 706 |
+
"bbox": [
|
| 707 |
+
112,
|
| 708 |
+
533,
|
| 709 |
+
245,
|
| 710 |
+
546
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 4
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "In our work, we introduced the UOUO benchmark to assess VLMs on objects out of everyday distributions. Our findings show that while smaller VLMs perform well on tasks of common objects, they struggle significantly with uncommon objects, unlike larger models which handle these challenges much better. This highlights the need to consider long-tail distributions in evaluations. The systematic data curation, filtering, and hard test instance generation pipeline for UOUO construction has high extensibility, paving the road of future research of long-tail distribution objects. UOUO itself could also be expanded in this way, extending beyond the domain of manufacturing and to other broad category of objects.",
|
| 717 |
+
"bbox": [
|
| 718 |
+
112,
|
| 719 |
+
558,
|
| 720 |
+
489,
|
| 721 |
+
802
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 4
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "7 Limitations",
|
| 728 |
+
"text_level": 1,
|
| 729 |
+
"bbox": [
|
| 730 |
+
112,
|
| 731 |
+
814,
|
| 732 |
+
248,
|
| 733 |
+
829
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 4
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "One limitation of our work is the reliance on automated data collection and cleaning processes, though efficient, may introduce biases or fail to capture nuanced representations compared to fully manual curation. We also note that the Mosaic",
|
| 740 |
+
"bbox": [
|
| 741 |
+
112,
|
| 742 |
+
841,
|
| 743 |
+
489,
|
| 744 |
+
919
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 4
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "Image Augmentation was applied with the assumption that the model takes single-image inputs. Our preliminary experiment showed most VLMs have limited to none multi-image inference support, thus multi-image inputs results are not included in UOUO benchmark. The UOUO benchmark currently emphasizes static images, potentially overlooking the dynamic and context-dependent nature of object recognition in real-world scenarios. Future extensions should explore a wider range of uncommon objects across various fields and consider the inclusion of video or sequential data to better reflect real-world applications. Addressing these limitations will enhance the comprehensiveness and applicability of the UOUO benchmark.",
|
| 751 |
+
"bbox": [
|
| 752 |
+
507,
|
| 753 |
+
455,
|
| 754 |
+
884,
|
| 755 |
+
697
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 4
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "Acknowledgement",
|
| 762 |
+
"text_level": 1,
|
| 763 |
+
"bbox": [
|
| 764 |
+
509,
|
| 765 |
+
714,
|
| 766 |
+
672,
|
| 767 |
+
730
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 4
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "This work was supported by DARPA ECOLE HR00112390063 and by the National Science Foundation grants NSF CNS 19-00875, NSF CNS 21-06592, NSF OAC 18-35834 KN, NSF CCF 22-17144. This research used the Delta advanced computing and data resource which is supported by the National Science Foundation (award OAC 2005572) and the State of Illinois. Any results and opinions are our own and do not represent views of National Science Foundation.",
|
| 774 |
+
"bbox": [
|
| 775 |
+
507,
|
| 776 |
+
744,
|
| 777 |
+
882,
|
| 778 |
+
904
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 4
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "page_number",
|
| 784 |
+
"text": "6436",
|
| 785 |
+
"bbox": [
|
| 786 |
+
480,
|
| 787 |
+
928,
|
| 788 |
+
519,
|
| 789 |
+
940
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 4
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "References",
|
| 796 |
+
"text_level": 1,
|
| 797 |
+
"bbox": [
|
| 798 |
+
115,
|
| 799 |
+
84,
|
| 800 |
+
213,
|
| 801 |
+
98
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 5
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "list",
|
| 807 |
+
"sub_type": "ref_text",
|
| 808 |
+
"list_items": [
|
| 809 |
+
"Aishwarya Agrawal, Jiasen Lu, Stanislaw Antol, Margaret Mitchell, C. Lawrence Zitnick, Dhruv Batra, and Devi Parikh. 2016. Vqa: Visual question answering. Preprint, arXiv:1505.00468.",
|
| 810 |
+
"Harsh Agrawal, Karan Desai, Yufei Wang, Xinlei Chen, Rishabh Jain, Mark Johnson, Dhruv Batra, Devi Parikh, Stefan Lee, and Peter Anderson. 2019. nocaps: novel object captioning at scale. In Proceedings of the IEEE International Conference on Computer Vision, pages 8948-8957.",
|
| 811 |
+
"Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katie Millican, Malcolm Reynolds, Roman Ring, Eliza Rutherford, Serkan Cabi, Tengda Han, Zhitao Gong, Sina Samangooei, Marianne Monteiro, Jacob Menick, Sebastian Borgeaud, Andrew Brock, Aida Nematzadeh, Sahand Sharifzadeh, Mikolaj Binkowski, Ricardo Barreira, Oriol Vinyals, Andrew Zisserman, and Karen Simonyan. 2022. Flamingo: a visual language model for few-shot learning. Preprint, arXiv:2204.14198.",
|
| 812 |
+
"Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. 2023. Qwen-vl: A versatile vision-language model for understanding, localization, text reading, and beyond. Preprint, arXiv:2308.12966.",
|
| 813 |
+
"BRIA-AI. 2024. Bria background removal v1.4 model card. https://huggingface.co/briaai/RMBG-1. 4. Accessed: 2024-06-13.",
|
| 814 |
+
"Tianqi Chen and Carlos Guestrin. 2016. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD '16. ACM.",
|
| 815 |
+
"Aaron Clauset, Cosma Rohilla Shalizi, and Mark EJ Newman. 2009. Power-law distributions in empirical data. SIAM review, 51(4):661-703.",
|
| 816 |
+
"Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. 2022. Glm: General language model pretraining with autoregressive blank infilling. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 320-335.",
|
| 817 |
+
"Gintare Karolina Dziugaite, Daniel M Roy, and Zoubin Ghahramani. 2015. Training generative neural networks via maximum mean discrepancy optimization. arXiv preprint arXiv:1505.03906.",
|
| 818 |
+
"Chaoyou Fu, Peixian Chen, Yunhang Shen, Yulei Qin, Mengdan Zhang, Xu Lin, Jinrui Yang, Xiawu Zheng, Ke Li, Xing Sun, Yunsheng Wu, and Rongrong Ji. 2024. Mme: A comprehensive evaluation benchmark for multimodal large language models. Preprint, arXiv:2306.13394."
|
| 819 |
+
],
|
| 820 |
+
"bbox": [
|
| 821 |
+
115,
|
| 822 |
+
108,
|
| 823 |
+
489,
|
| 824 |
+
919
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 5
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "list",
|
| 830 |
+
"sub_type": "ref_text",
|
| 831 |
+
"list_items": [
|
| 832 |
+
"Zheng Ge, Songtao Liu, Feng Wang, Zeming Li, and Jian Sun. 2021. Yolox: Exceeding yolo series in 2021. Preprint, arXiv:2107.08430.",
|
| 833 |
+
"Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. 2017. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. Preprint, arXiv:1612.00837.",
|
| 834 |
+
"Drew A. Hudson and Christopher D. Manning. 2019. Gqa: A new dataset for real-world visual reasoning and compositional question answering. *Preprint*, arXiv:1902.09506.",
|
| 835 |
+
"Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 2013. 3d object representations for fine-grained categorization. In 2013 IEEE International Conference on Computer Vision Workshops, pages 554-561.",
|
| 836 |
+
"Alina Kuznetsova, Hassan Rom, Neil Alldrin, Jasper Uijlings, Ivan Krasin, Jordi Pont-Tuset, Shahab Kamali, Stefan Popov, Matteo Malloci, Alexander Kolesnikov, Tom Duerig, and Vittorio Ferrari. 2020. The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. International Journal of Computer Vision, 128(7):1956-1981.",
|
| 837 |
+
"Bo Li, Kaichen Zhang, Hao Zhang, Dong Guo, Renrui Zhang, Feng Li, Yuanhan Zhang, Ziwei Liu, and Chunyuan Li. 2024. Llava-last: Stronger llms supercharge multimodal capabilities in the wild.",
|
| 838 |
+
"Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. 2023. Blip-2: Bootstrapping language-image pretraining with frozen image encoders and large language models. Preprint, arXiv:2301.12597.",
|
| 839 |
+
"Tsung-Yi Lin, Michael Maire, Serge Belongie, Lubomir Bourdev, Ross Girshick, James Hays, Pietro Perona, Deva Ramanan, C. Lawrence Zitnick, and Piotr Dolar. 2015. Microsoft coco: Common objects in context. Preprint, arXiv:1405.0312.",
|
| 840 |
+
"Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. 2023. Improved baselines with visual instruction tuning.",
|
| 841 |
+
"Yuan Liu, Haodong Duan, Yuanhan Zhang, Bo Li, Songyang Zhang, Wangbo Zhao, Yike Yuan, Jiaqi Wang, Conghui He, Ziwei Liu, Kai Chen, and Dahua Lin. 2024. Mmbench: Is your multi-modal model an all-around player? Preprint, arXiv:2307.06281.",
|
| 842 |
+
"S. Maji, J. Kannala, E. Rahtu, M. Blaschko, and A. Vedaldi. 2013. Fine-grained visual classification of aircraft. Technical report.",
|
| 843 |
+
"Kenneth Marino, Mohammad Rastegari, Ali Farhadi, and Roozbeh Mottaghi. 2019. Ok-vqa: A visual question answering benchmark requiring external knowledge. In Conference on Computer Vision and Pattern Recognition (CVPR).",
|
| 844 |
+
"OpenAI. 2024. Gpt-4 technical report. Preprint, arXiv:2303.08774."
|
| 845 |
+
],
|
| 846 |
+
"bbox": [
|
| 847 |
+
510,
|
| 848 |
+
85,
|
| 849 |
+
882,
|
| 850 |
+
919
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 5
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "page_number",
|
| 856 |
+
"text": "6437",
|
| 857 |
+
"bbox": [
|
| 858 |
+
480,
|
| 859 |
+
928,
|
| 860 |
+
519,
|
| 861 |
+
940
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 5
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "list",
|
| 867 |
+
"sub_type": "ref_text",
|
| 868 |
+
"list_items": [
|
| 869 |
+
"Steven T. Piantadosi. 2014. Zipf's word frequency law in natural language: a critical review and future directions. Psychonomic Bulletin & Review, 21(5):1112-1130.",
|
| 870 |
+
"Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision. Preprint, arXiv:2103.00020.",
|
| 871 |
+
"Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. 2015. Imagenet large scale visual recognition challenge. Preprint, arXiv:1409.0575.",
|
| 872 |
+
"Johannes Rückert, Louise Bloch, Raphael Brüngel, Ahmad Idrissi-Yaghir, Henning Schäfer, Cynthia S. Schmidt, Sven Koitka, Obioma Pelka, Asma Ben Abacha, Alba G. Seco de Herrera, Henning Müller, Peter A. Horn, Felix Nensa, and Christoph M. Friedrich. 2024. Rocov2: Radiology objects in context version 2, an updated multimodal image dataset. Preprint, arXiv:2405.10004.",
|
| 873 |
+
"Alzayat Saleh, Issam H Laradji, Dmitry A Konovalov, Michael Bradley, David Vazquez, and Marcus Sheaves. 2020. A realistic fish-habitat dataset to evaluate algorithms for underwater visual analysis. Scientific Reports, 10(1):14671.",
|
| 874 |
+
"Quan Sun, Yuxin Fang, Ledell Wu, Xinlong Wang, and Yue Cao. 2023. Eva-clip: Improved training techniques for clip at scale. Preprint, arXiv:2303.15389.",
|
| 875 |
+
"Gemini Team. 2024. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. Preprint, arXiv:2403.05530.",
|
| 876 |
+
"Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2023. Attention is all you need. Preprint, arXiv:1706.03762.",
|
| 877 |
+
"Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. 2011. The caltech-ucsd birds-200-2011 dataset.",
|
| 878 |
+
"Weihan Wang, Qingsong Lv, Wenmeng Yu, Wenyi Hong, Ji Qi, Yan Wang, Junhui Ji, Zhuoyi Yang, Lei Zhao, Xixuan Song, Jiazheng Xu, Bin Xu, Juanzi Li, Yuxiao Dong, Ming Ding, and Jie Tang. 2023. Cogvlm: Visual expert for pretrained language models. Preprint, arXiv:2311.03079.",
|
| 879 |
+
"David H Wolpert and William G Macready. 1997. No free lunch theorems for optimization. IEEE transactions on evolutionary computation, 1(1):67-82.",
|
| 880 |
+
"Peng Xu, Xiatian Zhu, and David A. Clifton. 2023. Multimodal learning with transformers: A survey. Preprint, arXiv:2206.06488."
|
| 881 |
+
],
|
| 882 |
+
"bbox": [
|
| 883 |
+
115,
|
| 884 |
+
85,
|
| 885 |
+
489,
|
| 886 |
+
919
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 6
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "list",
|
| 892 |
+
"sub_type": "ref_text",
|
| 893 |
+
"list_items": [
|
| 894 |
+
"Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. 2014. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics, 2:67-78.",
|
| 895 |
+
"Licheng Yu, Patrick Poirson, Shan Yang, Alexander C. Berg, and Tamara L. Berg. 2016. Modeling context in referring expressions. Preprint, arXiv:1608.00272.",
|
| 896 |
+
"Tianyu Yu, Yuan Yao, Haoye Zhang, Taiwen He, Yifeng Han, Ganqu Cui, Jinyi Hu, Zhiyuan Liu, Hai-Tao Zheng, Maosong Sun, et al. 2023a. Rlhf-v: Towards trustworthy mllms via behavior alignment from fine-grained correctional human feedback. arXiv preprint arXiv:2312.00849.",
|
| 897 |
+
"Weihao Yu, Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Zicheng Liu, Xinchao Wang, and Lijuan Wang. 2023b. Mm-vet: Evaluating large multimodal models for integrated capabilities. Preprint, arXiv:2308.02490."
|
| 898 |
+
],
|
| 899 |
+
"bbox": [
|
| 900 |
+
510,
|
| 901 |
+
85,
|
| 902 |
+
882,
|
| 903 |
+
360
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 6
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Appendix",
|
| 910 |
+
"text_level": 1,
|
| 911 |
+
"bbox": [
|
| 912 |
+
510,
|
| 913 |
+
370,
|
| 914 |
+
596,
|
| 915 |
+
387
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 6
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "A Prompt Details",
|
| 922 |
+
"text_level": 1,
|
| 923 |
+
"bbox": [
|
| 924 |
+
510,
|
| 925 |
+
395,
|
| 926 |
+
678,
|
| 927 |
+
411
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 6
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "mIoU Prompt Please provide the bounding box coordinate (x1,y1,x2,y2) of {object name} in the image with the format \\n item1:(x1,y1,x2,y2).",
|
| 934 |
+
"bbox": [
|
| 935 |
+
509,
|
| 936 |
+
420,
|
| 937 |
+
880,
|
| 938 |
+
468
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 6
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Accuracy Prompt Identify the location of the given object in this 2x2 mosaic image. The possible answers are: 'top left', 'top right', 'bottom left', 'bottom right', or 'none'. Only give a deterministic response as one of the possible answers. If the object is not present, the response should be 'none'. Please do not give more than one response. $\\backslash n$ object name: {object name} $\\backslash n$ Location:",
|
| 945 |
+
"bbox": [
|
| 946 |
+
509,
|
| 947 |
+
476,
|
| 948 |
+
882,
|
| 949 |
+
605
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 6
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "Prefix setting All other settings follow the model's defaults. For instance, in the case of llava, the prompt prefix is: A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions. USER: <image>\\n{question} ASSISTANT:",
|
| 956 |
+
"bbox": [
|
| 957 |
+
509,
|
| 958 |
+
613,
|
| 959 |
+
882,
|
| 960 |
+
725
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 6
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "B Instructions for manual annotation",
|
| 967 |
+
"text_level": 1,
|
| 968 |
+
"bbox": [
|
| 969 |
+
510,
|
| 970 |
+
737,
|
| 971 |
+
848,
|
| 972 |
+
752
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 6
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "Consider removing individual images, or removing the entire category completely. Any category or image meeting the following criterion should be removed.",
|
| 979 |
+
"bbox": [
|
| 980 |
+
509,
|
| 981 |
+
760,
|
| 982 |
+
880,
|
| 983 |
+
824
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 6
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "Category Exclusion Principles",
|
| 990 |
+
"text_level": 1,
|
| 991 |
+
"bbox": [
|
| 992 |
+
532,
|
| 993 |
+
834,
|
| 994 |
+
786,
|
| 995 |
+
850
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 6
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "1. Lack of Sufficiently Uniform Images",
|
| 1002 |
+
"text_level": 1,
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
564,
|
| 1005 |
+
857,
|
| 1006 |
+
873,
|
| 1007 |
+
872
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 6
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Categories should be excluded if the collected images do not show enough consistency in appearance.",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
584,
|
| 1016 |
+
873,
|
| 1017 |
+
884,
|
| 1018 |
+
920
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 6
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "page_number",
|
| 1024 |
+
"text": "6438",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
480,
|
| 1027 |
+
928,
|
| 1028 |
+
519,
|
| 1029 |
+
940
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 6
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "list",
|
| 1035 |
+
"sub_type": "text",
|
| 1036 |
+
"list_items": [
|
| 1037 |
+
"2. Ambiguous Collections of Objects Categories representing a collection multiple objects (e.g. Wax Work Tools, Tools, Kits, etc.) should be cluded.",
|
| 1038 |
+
"3. Insufficient Number of Images Collected Categories should be removed if there are not enough images available.",
|
| 1039 |
+
"4. Not a Tool Items that are not standalone tools (e.g. pastes or liquids that always need to be stored in a container) should be excluded."
|
| 1040 |
+
],
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
164,
|
| 1043 |
+
84,
|
| 1044 |
+
489,
|
| 1045 |
+
312
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 7
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "- Image Sample Exclusion Principles",
|
| 1052 |
+
"text_level": 1,
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
136,
|
| 1055 |
+
323,
|
| 1056 |
+
431,
|
| 1057 |
+
340
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 7
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "list",
|
| 1063 |
+
"sub_type": "text",
|
| 1064 |
+
"list_items": [
|
| 1065 |
+
"1. Distinctive Image Images that are significantly different from other images within the same category should be excluded.",
|
| 1066 |
+
"2. Cluttered Composition Images with cluttered backgrounds that make it difficult or impossible to isolate the tool.",
|
| 1067 |
+
"3. Partial Display Images that only show part of the object should be excluded.",
|
| 1068 |
+
"4. Not a Real Object Images that depict diagrams, 3D renders, or other non-realistic representations should be excluded.",
|
| 1069 |
+
"5. Excessive Text Images that contain excessive text, which obscures the main object, should be excluded."
|
| 1070 |
+
],
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
166,
|
| 1073 |
+
347,
|
| 1074 |
+
489,
|
| 1075 |
+
659
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 7
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "C Important statistics of UOUO",
|
| 1082 |
+
"text_level": 1,
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
114,
|
| 1085 |
+
670,
|
| 1086 |
+
410,
|
| 1087 |
+
686
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 7
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "Number of categories:",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
136,
|
| 1096 |
+
696,
|
| 1097 |
+
329,
|
| 1098 |
+
711
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 7
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "list",
|
| 1104 |
+
"sub_type": "text",
|
| 1105 |
+
"list_items": [
|
| 1106 |
+
"- Number of categories originally: 27,926",
|
| 1107 |
+
"- Number of categories kept: 25,864",
|
| 1108 |
+
"Percentage of categories kept: $92.6\\%$"
|
| 1109 |
+
],
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
168,
|
| 1112 |
+
719,
|
| 1113 |
+
485,
|
| 1114 |
+
771
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 7
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "- Total number of images:",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
136,
|
| 1123 |
+
800,
|
| 1124 |
+
347,
|
| 1125 |
+
816
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 7
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "list",
|
| 1131 |
+
"sub_type": "text",
|
| 1132 |
+
"list_items": [
|
| 1133 |
+
"- Number of images originally: 956,167",
|
| 1134 |
+
"- Number of images kept: 678,535",
|
| 1135 |
+
"- Percentage of images kept: $71.0\\%$"
|
| 1136 |
+
],
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
168,
|
| 1139 |
+
824,
|
| 1140 |
+
473,
|
| 1141 |
+
876
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 7
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Images per category stats:",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
136,
|
| 1150 |
+
904,
|
| 1151 |
+
359,
|
| 1152 |
+
921
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 7
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "- Original dataset:",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
564,
|
| 1161 |
+
84,
|
| 1162 |
+
729,
|
| 1163 |
+
99
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 7
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "list",
|
| 1169 |
+
"sub_type": "text",
|
| 1170 |
+
"list_items": [
|
| 1171 |
+
"* Average: 34.382",
|
| 1172 |
+
"* Minimum: 11",
|
| 1173 |
+
"* Maximum: 48"
|
| 1174 |
+
],
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
594,
|
| 1177 |
+
103,
|
| 1178 |
+
736,
|
| 1179 |
+
151
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 7
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "text",
|
| 1185 |
+
"text": "-Filtered dataset:",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
564,
|
| 1188 |
+
156,
|
| 1189 |
+
715,
|
| 1190 |
+
168
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 7
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "list",
|
| 1196 |
+
"sub_type": "text",
|
| 1197 |
+
"list_items": [
|
| 1198 |
+
"* Average: 26.235",
|
| 1199 |
+
"* Minimum: 5",
|
| 1200 |
+
"* Maximum: 48"
|
| 1201 |
+
],
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
594,
|
| 1204 |
+
175,
|
| 1205 |
+
734,
|
| 1206 |
+
223
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 7
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "- Average percentage of images kept in each category: $76.0\\%$",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
532,
|
| 1215 |
+
255,
|
| 1216 |
+
880,
|
| 1217 |
+
287
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 7
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "D Wikipedia Industry List",
|
| 1224 |
+
"text_level": 1,
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
509,
|
| 1227 |
+
298,
|
| 1228 |
+
756,
|
| 1229 |
+
315
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 7
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "See figure 4.",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
509,
|
| 1238 |
+
324,
|
| 1239 |
+
606,
|
| 1240 |
+
338
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 7
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "E Randomly sampled 100 categories",
|
| 1247 |
+
"text_level": 1,
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
509,
|
| 1250 |
+
351,
|
| 1251 |
+
840,
|
| 1252 |
+
369
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 7
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "text",
|
| 1258 |
+
"text": "See table 2.",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
509,
|
| 1261 |
+
376,
|
| 1262 |
+
600,
|
| 1263 |
+
391
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 7
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "page_number",
|
| 1269 |
+
"text": "6439",
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
480,
|
| 1272 |
+
928,
|
| 1273 |
+
519,
|
| 1274 |
+
940
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 7
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "table",
|
| 1280 |
+
"img_path": "images/7bd38cf9d8aa350a94ad687668f6d022f6cbfea3b242152e0edf2305066190f6.jpg",
|
| 1281 |
+
"table_caption": [],
|
| 1282 |
+
"table_footnote": [],
|
| 1283 |
+
"table_body": "<table><tr><td colspan=\"3\">V·T·E Major industries [hide]</td></tr><tr><td colspan=\"3\">Natural sector [hide]</td></tr><tr><td rowspan=\"3\">Biotic</td><td>Agriculture</td><td>Arable farming (Cereals · Legumes · Vegetables · Fiber crops · Oilseeds · Sugar · Tobacco) · Permanent crops (Apples et al · Berries · Citrus · Stone fruits · Tropical fruit · Viticulture · Cocoa · Coffee · Tea · Nuts · Olives · Medicinal plants · Spices) · Horticulture (Flowers · Seeds) · Animal husbandry (Beef cattle · Dairy farming · Fur farming · Horses · Other livestock · Pig · Wool · Poultry · Beekeeping · Cochineal · Shellac · Silk) · Hunting (Fur trapping)</td></tr><tr><td>Forestry</td><td>Silviculture (Bamboo) · Logging (Firewood) · Rattan · Tree tapping (Frankincense · Gum arabic · Gutta-percha · Maple syrup · Mastic · Natural rubber · Palm sugar, syrup, & wine · Pine resin) · Wild mushrooms (Fungiculture · Truffles)</td></tr><tr><td>Aquatic</td><td>Fishing (Anchovies · Herring · Sardines · Cod · Haddock · Pollock · Mackerel · Shark · Swordfish · Tuna · Crabs · Lobsters · Sea urchins · Squid · Whaling) · Aquaculture (Carp · Catfish · Tilapia · Abalone · Mussels · Oysters · Pearls · Microalgae · Seaweed) · Both (Clams · Sea cucumbers · Scallops · Salmon · Shrimp)</td></tr><tr><td>Geological</td><td colspan=\"2\">Fossil fuels (Coal · Peat · Natural gas · Oil shale · Petroleum · Tar sands) · Mining of ores (Aluminum · Copper · Iron · Gold · Silver · Palladium · Platinum · Lithium · Rare-earth metals · Uranium) · Other minerals (Gemstones · Phosphorus · Potash · Salt · Sulfur) · Quarrying (Gravel · Sand · Chalk · Clay · Gypsum · Limestone · Dimension stone · Granite · Marble)</td></tr><tr><td colspan=\"3\">Industrial sector [hide]</td></tr><tr><td rowspan=\"5\">Manufacturing</td><td>Light industry</td><td>Food (Animal feed · Baking · Canning · Dairy products · Flour · Meat · Prepared · Preserved · Sweets · Vegetable oils) · Beverages (Beer · Bottled water · Liquor · Soft drinks · Wine) · Textiles (Carding · Dyeing · Pins · Spinning · Weaving · Carpets · Lace · Linens · Rope) · Clothing (Accessories · Dressmaking · Furs · Hatmaking · Sewing · Shoemaking · Tailoring) · Printing (Bookbinding · Embossing · Engraving · Secure · Typesetting) · Media reproduction (Cassette tapes · Phonographs · Optical discs) · Metal fabrication (Boilermaking · Builders' & household hardware · Cutlery · Gunsmithing · Locksmithing · Machining · Other smithing · Powder metallurgy · Prefabrication · Surface finishing) · Other fabrication (3D printing · Blowing molding · Drawing · Extrusion · Glassblowing · Injection moulding · Pottery · Sintering · Stonemasonry · Woodworking) · Furniture · Other goods (Baggage · Bicycles · Jewellery · Medical supplies · Musical instruments · Office supplies · Outdoors & sports equipment · Personal protective equipment · Toys)</td></tr><tr><td>Electrical & optical</td><td>Electronics (Components · Circuit boards · Semiconductors) · Computers (Computer systems · Parts & peripherals · Blank storage media) · Communications equipment (Mobile phones · Network infrastructure) · Consumer electronics (Televisions · Video game consoles) · Instrumentation (Clocks & watches · GPS devices · Scientific instruments) · Medical imaging systems · Optical instruments (Cameras · Gun & spotting scopes · Laser construction · Lens grinding · Microscopes · Telescopes) · Electrical equipment (Batteries · Electrical & fiber optic cables · Electric lighting · Electric motors · Home appliances · Transformers)</td></tr><tr><td>Chemicals</td><td>Coal & oil refining (Bitumen · Coke · Diesel fuel · Fuel oil · Gasoline · Jet fuel · Kerosene · Mineral oil · Paraffin wax · Petrochemicals · Petroleum jelly · Propane · Synthetic oil · Tar) · Commodity chemicals (Fertilizers · Industrial gases · Pigments · Pure elements) · Speciality chemicals (Adhesives · Agrochemicals · Aroma compounds · Cleaning products · Cosmetics · Explosives · Fireworks · Paints & inks · Perfumes · Soap · Toiletries) · Fine chemicals · Pharmaceuticals (Antibiotics · Blood products · Chemical & hormonal contraceptives · Generic drugs · Illegal drugs · Supplements · Vaccines)</td></tr><tr><td>Materials</td><td>Leather (Liming & delimining · Tanning · Currying & oiling) · Wood (Drying · Sawmillings · Engineered · Lumber · Composite) · Paper (Sizing · Cardboard · Pulp · Tissue) · Rubber (Tires · Vulcanized rubber) · Plastics (Commodity · Engineered · Specialty · Pellets · Synthetic fibers · Thermoplastics & thermosets) · Glass (Borosilicate · Fused quartz · Soda-lime · Float glass · Glass fiber · Glass wool & fiberglass · Safety glass) · Ceramics (Brick · Earthenware · Porcelain · Refractory · Tile) · Cement (Mortar · Plaster · Ready-mix concrete) · Other mineral (Abraxives · Carbon fibers & advanced materials · Mineral wool · Synthetic gems) · Metal refining (Iron · Aluminum · Copper) · Alloys (Steel) · Formed metal (Rolled · Forged) · Cast metal</td></tr><tr><td>Heavy industry</td><td>Machinery (Conveyors · Heavy · Hydraulic · Machine tools · Power & wind turbines) · Automobiles · Other heavy vehicles (Aerospace & space · Rail vehicles · Ships & offshore platforms) · Weapons</td></tr><tr><td>Utilities</td><td colspan=\"2\">Power (Electric · Gas distribution · Renewable) · Water (Sewage) · Waste management (Collection · Dumping · Hazardous · Recycling) · Remediation · Telecom networks (Cable TV · Internet · Mobile · Satellite · Telephone)</td></tr><tr><td>Construction</td><td colspan=\"2\">Buildings (Commercial · Industrial · Residential) · Civil engineering (Bridges · Railways · Roads · Tunnels · Canals · Dams · Shedding · Harbors) · Specialty trades (Cabinetry · Demolition · Electrical wiring · Elevators · HVAC · Painting and decorating · Plumbing · Site preparation)</td></tr><tr><td colspan=\"3\">Service sector [hide]</td></tr><tr><td>Sales</td><td colspan=\"2\">Retail (Car dealership · Consumer goods · General store · Grocery store · Department store · Mail order · Online shopping · Specialty store) · Wholesale (Auction · Brokerage · Distribution)</td></tr><tr><td>Transport & Storage</td><td colspan=\"2\">Cargo (Air cargo · Intermodal · Mail · Moving company · Rail · Trucking) · Passenger transport (Airlines · Car rentals · Passenger rail · Rideshaaring · Taxis) · Warehousing (Self storage)</td></tr><tr><td>Hospitality</td><td colspan=\"2\">Foodservice (Drink service · Cafés · Catering · Fast food · Food delivery · Restaurants · Teahouses) · Hotels</td></tr><tr><td>Asset management</td><td colspan=\"2\">Financial services (Banking · Credit · Financial advice · Holding company · Money transfer · Payment cards · Risk management · Securities) · Insurance (Health · Life · Pension funding · Property · Reinsurance) · Real estate (Brokerage · Property management)</td></tr><tr><td>Professional</td><td colspan=\"2\">Accounting (Assurance · Audit · Bookkeeping · Tax advice) · Architecture & engineering (Inspection · Surveying · Physical, product, & system testing) · Design (Fashion · Interior · Product) · Legal services · Management (Consulting · Public relations) · Marketing (Advertising)</td></tr><tr><td>Healthcare</td><td colspan=\"2\">Medicine (Dentist offices · Hospitals · Nursing) · Residential care · Veterinary medicine</td></tr><tr><td>Entertainment & leisure</td><td colspan=\"2\">Gambling (Online) · Sport · Venues (Arcades · Amusement parks · Fairgrounds · Nightclubs)</td></tr><tr><td>Other</td><td colspan=\"2\">Administrative (Customer service · Leasing · Renting · Staffing · Private investigation & security) · Maintenance (Janitors · Landscaping) · Repairs · Personal services (Beauty · Dry cleaning · Funeral · Maid service · Pet care · Sex) · Poverty · Travel (Business travel · Cruise lines · Tourism)</td></tr><tr><td colspan=\"3\">Information sector [hide]</td></tr><tr><td>Publishing & Mass media</td><td colspan=\"2\">Written (Books · Periodicals · Software) · Audio-visual (Film · Music · Video games) · Broadcasting (News · Radio · Television) · Internet (Hosting · Social networks · Streaming · Websites)</td></tr><tr><td>Education</td><td colspan=\"2\">Primary · Secondary · Tertiary (Vocational school · University) · Testing · Tutoring</td></tr><tr><td>Other</td><td colspan=\"2\">Creative · Language · Research and development (Basic research)</td></tr></table>",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
213,
|
| 1286 |
+
80,
|
| 1287 |
+
786,
|
| 1288 |
+
925
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 8
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Figure 4: Wikipedia Industry List",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
384,
|
| 1297 |
+
938,
|
| 1298 |
+
613,
|
| 1299 |
+
951
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 8
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "page_number",
|
| 1305 |
+
"text": "6440",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
480,
|
| 1308 |
+
928,
|
| 1309 |
+
519,
|
| 1310 |
+
940
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 8
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "table",
|
| 1316 |
+
"img_path": "images/b0aa3b0228c2c422f90aaa393d567f4cf7f5901d3a7a8bfff026256f53b6f669.jpg",
|
| 1317 |
+
"table_caption": [],
|
| 1318 |
+
"table_footnote": [],
|
| 1319 |
+
"table_body": "<table><tr><td>2D pantograph</td><td>AC Recharge Kit</td><td>Adhesive scale</td><td>Aluminum dross pro-cessing machine</td></tr><tr><td>Artificial insemination gun</td><td>Ballistic clipboard</td><td>Ballot Box (for collect-ing anonymous feed-back)</td><td>Banjo rim lathe</td></tr><tr><td>Bingo balls</td><td>Broodstock tanks</td><td>Broom</td><td>Burnishing Stone</td></tr><tr><td>Cable Retention Sleeve</td><td>Carding Machine</td><td>Cattle Curtain</td><td>Cell Model</td></tr><tr><td>Climbing rope</td><td>Coal centrifuge</td><td>Coffee roaster</td><td>Cold Storage Back-pack</td></tr><tr><td>Compressor (hard-ware)</td><td>Cooling Incubator</td><td>Copy Stand</td><td>Culture trays</td></tr><tr><td>Dehooking tool</td><td>Deposit Slip Printer</td><td>Disc golf basket welder</td><td>Disc repair kit</td></tr><tr><td>Display Turntables</td><td>Distillation column</td><td>Electronic rate board</td><td>Evaporating Dish</td></tr><tr><td>Extrusion laminator</td><td>Fiber disc</td><td>Fishing rod holders</td><td>Flange spreader</td></tr><tr><td>Flower press</td><td>Foundation crack ruler</td><td>Fume Extraction Hood</td><td>Goniophotometer</td></tr><tr><td>Graduated cylinders</td><td>Granule Filler</td><td>Inductively Coupled Plasma (ICP) Spectrometer</td><td>Irrigation pipelayer</td></tr><tr><td>Lacquer polishing brush</td><td>Leachate Collection Pipe</td><td>Live Feed Incubator</td><td>Longlines and ropes</td></tr><tr><td>Martingale</td><td>Metal scribe</td><td>Mobile manufacturing unit (MMU)</td><td>Mushroom grow tent</td></tr><tr><td>Music on hold player</td><td>Network Firewall Hardware</td><td>Offshore aquaculture cage</td><td>Ore skip</td></tr><tr><td>Oscillating shaker</td><td>Oxygen concentrators</td><td>Packing Gauge</td><td>Pellets coating system</td></tr><tr><td>Pellicle Formation Tool</td><td>Pillory</td><td>Pin beater</td><td>Pointer stick</td></tr><tr><td>Portable battery booster</td><td>Pressure vessels</td><td>Print Quality Inspection Scope</td><td>Pulling post</td></tr><tr><td>Purging compound dispenser</td><td>Queue stanchion</td><td>Quick release hook</td><td>Roll Coating Paint Line</td></tr><tr><td>Rope pump</td><td>Rotary drum bauxite washer</td><td>Rotary impeller feeder</td><td>Sand filter</td></tr><tr><td>Scale Breaker</td><td>Schlenk flask</td><td>Security drone</td><td>Security token device</td></tr><tr><td>Shear Line</td><td>Shock Absorber</td><td>Sign language interpreter gloves</td><td>Slab Tongs</td></tr><tr><td>Slush ice machines</td><td>Soap scum remover</td><td>Spin Welder</td><td>Spoke cutting machine</td></tr><tr><td>Spot meter</td><td>Springform pan</td><td>Tabbing shears for composite test specimens</td><td>Texture sprayer</td></tr><tr><td>Tower Climbing Harness</td><td>Violin varnish brush</td><td>Vixen Plate</td><td>Wall Hooks for Art</td></tr><tr><td>Waste basket</td><td>Water jet cutter for stone</td><td>Whalebone Scaper</td><td>Wire Mesh Cable Trays</td></tr></table>",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
121,
|
| 1322 |
+
117,
|
| 1323 |
+
875,
|
| 1324 |
+
856
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 9
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "Table 2: List of 100 Randomly Sampled Categories",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
321,
|
| 1333 |
+
866,
|
| 1334 |
+
672,
|
| 1335 |
+
881
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 9
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "page_number",
|
| 1341 |
+
"text": "6441",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
480,
|
| 1344 |
+
928,
|
| 1345 |
+
517,
|
| 1346 |
+
940
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 9
|
| 1349 |
+
}
|
| 1350 |
+
]
|